text:
# Makefile.in generated by automake 1.10 from Makefile.am.
# include/tclap/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

pkgdatadir = $(datadir)/tclap
pkglibdir = $(libdir)/tclap
pkgincludedir = $(includedir)/tclap
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = include/tclap
DIST_COMMON = $(libtclapinclude_HEADERS) $(srcdir)/Makefile.am \
	$(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/config/ac_cxx_have_long_long.m4 \
	$(top_srcdir)/config/ac_cxx_have_sstream.m4 \
	$(top_srcdir)/config/ac_cxx_have_strstream.m4 \
	$(top_srcdir)/config/ac_cxx_namespaces.m4 \
	$(top_srcdir)/config/ac_cxx_warn_effective_cxx.m4 \
	$(top_srcdir)/config/bb_enable_doxygen.m4 \
	$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config/config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libtclapincludedir)"
libtclapincludeHEADERS_INSTALL = $(INSTALL_HEADER)
HEADERS = $(libtclapinclude_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/missing --run aclocal-1.10
AMTAR = ${SHELL} /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/missing --run tar
AUTOCONF = ${SHELL} /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/missing --run autoconf
AUTOHEADER = ${SHELL} /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/missing --run autoheader
AUTOMAKE = ${SHELL} /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/missing --run automake-1.10
AWK = awk
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2 -Weffc++
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DOT = NO
DOXYGEN =
ECHO_C = \c
ECHO_N =
ECHO_T =
EGREP = /usr/bin/grep -E
EXEEXT =
GREP = /usr/bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS =
LIBOBJS =
LIBS =
LTLIBOBJS =
MAKEINFO = ${SHELL} /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/missing --run makeinfo
MKDIR_P = ../../config/install-sh -c -d
OBJEXT = o
PACKAGE = tclap
PACKAGE_BUGREPORT =
PACKAGE_NAME =
PACKAGE_STRING =
PACKAGE_TARNAME =
PACKAGE_VERSION =
PATH_SEPARATOR = :
RANLIB = ranlib
SET_MAKE =
SHELL = /bin/sh
STRIP =
VERSION = 1.2.1
WARN_EFFECTIVE_CXX = -Weffc++
WARN_NO_EFFECTIVE_CXX = -Wno-effc++
abs_builddir = /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/include/tclap
abs_srcdir = /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/include/tclap
abs_top_builddir = /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1
abs_top_srcdir = /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1
ac_ct_CXX = g++
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build_alias =
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE}
dvidir = ${docdir}
exec_prefix = ${prefix}
host_alias =
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /Users/fsedlaze/Documents/workspace/Sniffles/lib/tclap-1.2.1/config/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = $(top_builddir)/config/install-sh -c -d
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_builddir = ../..
top_srcdir = ../..
libtclapincludedir = $(includedir)/tclap
libtclapinclude_HEADERS = \
			 CmdLineInterface.h \
			 ArgException.h \
			 CmdLine.h \
			 XorHandler.h \
			 MultiArg.h \
			 UnlabeledMultiArg.h \
			 ValueArg.h \
			 UnlabeledValueArg.h \
			 Visitor.h Arg.h \
			 HelpVisitor.h \
			 SwitchArg.h \
			 MultiSwitchArg.h \
			 VersionVisitor.h \
			 IgnoreRestVisitor.h \
			 CmdLineOutput.h \
			 StdOutput.h \
			 DocBookOutput.h \
			 ZshCompletionOutput.h \
			 OptionalUnlabeledTracker.h \
			 Constraint.h \
			 ValuesConstraint.h \
			 ArgTraits.h \
			 StandardTraits.h

all: all-am

.SUFFIXES:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
		&& exit 0; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  include/tclap/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  include/tclap/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure:  $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-libtclapincludeHEADERS: $(libtclapinclude_HEADERS)
	@$(NORMAL_INSTALL)
	test -z "$(libtclapincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libtclapincludedir)"
	@list='$(libtclapinclude_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f=$(am__strip_dir) \
	  echo " $(libtclapincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libtclapincludedir)/$$f'"; \
	  $(libtclapincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libtclapincludedir)/$$f"; \
	done

uninstall-libtclapincludeHEADERS:
	@$(NORMAL_UNINSTALL)
	@list='$(libtclapinclude_HEADERS)'; for p in $$list; do \
	  f=$(am__strip_dir) \
	  echo " rm -f '$(DESTDIR)$(libtclapincludedir)/$$f'"; \
	  rm -f "$(DESTDIR)$(libtclapincludedir)/$$f"; \
	done

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	mkid -fID $$unique
tags: TAGS

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	    $$tags $$unique; \
	fi
ctags: CTAGS
CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(CTAGS_ARGS)$$tags$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$tags $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile $(HEADERS)
installdirs:
	for dir in "$(DESTDIR)$(libtclapincludedir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags

dvi: dvi-am

dvi-am:

html: html-am

info: info-am

info-am:

install-data-am: install-libtclapincludeHEADERS

install-dvi: install-dvi-am

install-exec-am:

install-html: install-html-am

install-info: install-info-am

install-man:

install-pdf: install-pdf-am

install-ps: install-ps-am

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-libtclapincludeHEADERS

.MAKE: install-am install-strip

.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
	ctags distclean distclean-generic distclean-tags distdir dvi \
	dvi-am html html-am info info-am install install-am \
	install-data install-data-am install-dvi install-dvi-am \
	install-exec install-exec-am install-html install-html-am \
	install-info install-info-am install-libtclapincludeHEADERS \
	install-man install-pdf install-pdf-am install-ps \
	install-ps-am install-strip installcheck installcheck-am \
	installdirs maintainer-clean maintainer-clean-generic \
	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
	uninstall uninstall-am uninstall-libtclapincludeHEADERS

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:


text:
package com.elixlogic.tifoon.application.config;

import com.elixlogic.tifoon.domain.model.core.AppSettings;
import com.elixlogic.tifoon.domain.model.core.CoreSettings;
import com.elixlogic.tifoon.domain.model.network.Network;
import com.elixlogic.tifoon.infrastructure.config.PluginConfiguration;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({AppSettings.class, CoreSettings.class, Network.class})
public class RootConfiguration {
    @Getter
    private final AppSettings appSettings;
    @Getter
    private final CoreSettings coreSettings;
    @Getter
    private final Network network;
    @Getter
    private final PluginConfiguration pluginConfiguration;

    @Autowired
    public RootConfiguration(final AppSettings _appSettings,
                             final CoreSettings _coreSettings,
                             final Network _network,
                             final PluginConfiguration _pluginConfiguration) {
        _appSettings.validate();
        _coreSettings.validate();
        _network.validate();
        _pluginConfiguration.validate();

        appSettings = _appSettings;
        coreSettings = _coreSettings;
        network = _network;
        pluginConfiguration = _pluginConfiguration;
    }
}

redpajama_set_name: RedPajamaGithub


text:
cask "microsoft-auto-update" do
  version "4.27.20091302"
  sha256 "b04fc2b3f01d1948623c3cadb60f269a0ecc559ed6f99f9dd29236d08fa8395f"

  # officecdn-microsoft-com.akamaized.net/ was verified as official when first introduced to the cask
  url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_AutoUpdate_#{version}_Updater.pkg"
  appcast "https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://go.microsoft.com/fwlink/?linkid=830196"
  name "Microsoft Auto Update"
  homepage "https://docs.microsoft.com/officeupdates/release-history-microsoft-autoupdate"

  pkg "Microsoft_AutoUpdate_#{version}_Updater.pkg"

  uninstall quit:      [
    "com.microsoft.autoupdate2",
    "com.microsoft.autoupdate.fba",
    "com.microsoft.errorreporting",
  ],
            launchctl: [
              "com.microsoft.autoupdate.helpertool",
              "com.microsoft.autoupdate.helper",
              "com.microsoft.update.agent",
            ],
            pkgutil:   [
              "com.microsoft.package.Microsoft_AutoUpdate.app",
              "com.microsoft.package.Microsoft_AU_Bootstrapper.app",
            ],
            delete:    "/Library/PrivilegedHelperTools/com.microsoft.autoupdate.helper"

  zap trash: [
    "~/Library/Application Support/Microsoft AutoUpdate",
    "~/Library/Caches/Microsoft/uls/com.microsoft.autoupdate.fba",
    "~/Library/Caches/Microsoft/uls/com.microsoft.autoupdate2",
    "~/Library/Caches/com.microsoft.autoupdate.fba",
    "~/Library/Caches/com.microsoft.autoupdate2",
    "~/Library/Cookies/com.microsoft.autoupdate.fba.binarycookies",
    "~/Library/Cookies/com.microsoft.autoupdate2.binarycookies",
    "~/Library/Preferences/com.microsoft.autoupdate.fba.plist",
    "~/Library/Preferences/com.microsoft.autoupdate2.plist",
    "~/Library/Saved Application State/com.microsoft.autoupdate2.savedState",
  ],
      rmdir: [
        "~/Library/Caches/Microsoft/uls",
        "~/Library/Caches/Microsoft",
      ]
end


text:
package org.apache.skywalking.e2e.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.apache.skywalking.e2e.SkyWalkingExtension;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Fields of type {@link String} annotated with {@link ContainerHost @ContainerHost} can be initialized by {@link
 * SkyWalkingExtension} with the real host of the docker container, whose original {@link #name() service name} and
 * {@link #port() exposed port} defined in {@code docker-compose.yml} are given, for more details and examples, refer to
 * the JavaDoc of {@link SkyWalkingExtension}.
 */
@Documented
@Target(FIELD)
@Retention(RUNTIME)
public @interface ContainerHost {
    /**
     * @return the original name that is defined in {@code docker-compose.yml}.
     */
    String name();

    /**
     * @return the original port that is exposed in {@code docker-compose.yml}.
     */
    int port();
}


text:
/* $OpenBSD: eng_all.c,v 1.30 2018/03/17 16:20:01 beck Exp $ */
/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL
 * project 2000.
 */
/* ====================================================================
 * Copyright (c) 2000-2001 The OpenSSL Project.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. All advertising materials mentioning features or use of this
 *    software must display the following acknowledgment:
 *    "This product includes software developed by the OpenSSL Project
 *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
 *
 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please contact
 *    licensing@OpenSSL.org.
 *
 * 5. Products derived from this software may not be called "OpenSSL"
 *    nor may "OpenSSL" appear in their names without prior written
 *    permission of the OpenSSL Project.
 *
 * 6. Redistributions of any form whatsoever must retain the following
 *    acknowledgment:
 *    "This product includes software developed by the OpenSSL Project
 *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
 *
 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 * ====================================================================
 *
 * This product includes cryptographic software written by Eric Young
 * (eay@cryptsoft.com).  This product includes software written by Tim
 * Hudson (tjh@cryptsoft.com).
 *
 */

#include <pthread.h>

#include <openssl/opensslconf.h>

#include "cryptlib.h"
#include "eng_int.h"

void
ENGINE_load_builtin_engines_internal(void)
{
#ifndef OPENSSL_NO_STATIC_ENGINE
#ifndef OPENSSL_NO_HW
#ifndef OPENSSL_NO_HW_PADLOCK
	ENGINE_load_padlock();
#endif
#endif
#endif
	ENGINE_register_all_complete();
}

void
ENGINE_load_builtin_engines(void)
{
	static pthread_once_t once = PTHREAD_ONCE_INIT;

	/* Prayer and clean living lets you ignore errors, OpenSSL style */
	(void) OPENSSL_init_crypto(0, NULL);

	(void) pthread_once(&once, ENGINE_load_builtin_engines_internal);
}


text:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <title>File: labeled_form_helper.rb</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />

labeled_form_helper.rb

      Path:
      lib/labeled_form_helper.rb

      Last Update:
      Thu Oct 09 20:11:14 -0500 2008

this is mixed into ActionView::Base on init

[Validate]


text:
var searchData=
[
  ['xmlattribute',['xmlAttribute',['../structxml_attribute.html',1,'']]]
];


text:
Creates a new Idea Model and it's associated test case

### Example

```
yo idea:model <name>
yo idea:model Customer
```

The above example produces the following files

* src/js/app/models/CustomerModel.js
* test/js/app/models/CustomerModelTest.js


text:
var app = angular.module('gegen-fremdenfeindlichkeit', ['mgo-angular-wizard', 'ngAnimate', 'countTo']);
app.controller('appCtrl', function ($scope, $rootScope, WizardHandler, $window) {
    $scope.value = 0;
    $scope.number = 5;
    $scope.i = 0;
    $scope.values = [];
    $scope.introStep=1;
    $scope.$on('valueSet', function (event, data) {
        $scope.values.push(data);
        if ($scope.values.length == 8) {
            //  $scope.finished = true
        }
    });

    $scope.nextIntroStep = function(){
              $scope.introStep= $scope.introStep+1;

    }

    $scope.init = function () {

        $scope.is_touch_device = $scope.is_touch_device();
        $scope.browser = $scope.getBrowser();
        if (($scope.browser[0] == "Safari" && $scope.browser[1] > 8) || ($scope.browser[0] == "Chrome" && $scope.browser[1] > 40))  {
            $scope.changeBrowser = false;
            $window.ga('send', 'event', 'Browser', 'allowed', $scope.browser[0] + "/" + $scope.browser[0]);
        }
        else {
            $scope.changeBrowser = true;
            $window.ga('send', 'event', 'Browser', 'not allowed', $scope.browser[0] + "/" + $scope.browser[0]);
            //$analytics.eventTrack('Browser not allowed', {  category: 'Browser', label: 'Allowed' });
        }
    };
    $scope.is_touch_device = function () {
        try {
            document.createEvent("TouchEvent");
            return true;
        }
        catch (e) {
            return false;
        }
    }
    $scope.getBrowser = function () {
        var ua = navigator.userAgent,
            tem,
            M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
        if (/trident/i.test(M[1])) {
            tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
            return 'IE ' + (tem[1] || '');
        }
        if (M[1] === 'Chrome') {
            tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
            if (tem != null) return tem.slice(1)
                .join(' ')
                .replace('OPR', 'Opera');
        }
        M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];
        if ((tem = ua.match(/version\/(\d+)/i)) != null) M.splice(1, 1, tem[1]);
        M[1] = parseInt(M[1]);
        return M;
    };
    $scope.questions = [    {
        min: 0,
            max: 100,
            result: 51,
            unit: " %",
            question: "Wie viel Prozent der Flüchtlinge weltweit sind jünger als 18 Jahre?",
        color: "#A468BD",
            charttemplate: "templates/charts/children.html",
            source: "https://www.uno-fluechtlingshilfe.de/fluechtlinge/themen/fluechtlingskinder.html",
        value: 40,
            sourcetitle: "Uno Flüchtlingshilfe – Oktober 2015"
    },     {
        min: 0,
            max: 12,
            result: 12,
            unit: " Monate",
            question: "Wie lang ist die durchschnittliche Bearbeitungsdauer für einen Asylantrag in Deutschland?",
        color: "#52BE80",
            charttemplate: "templates/charts/application_duration.html",
            source: "http://www.welt.de/politik/deutschland/article145595071/So-wird-die-Dauer-von-Asylverfahren-verschleiert.html",
        value: 5,
            sourcetitle: "Die Welt – August 2015"
    }, {
        min: 0,
            max: 100,
            result: 45,
            unit: " %",
            question: "Wie viele Asylanträge blieben in Deutschland 2015 unbearbeitet?",
            color: "#16a086",
            charttemplate: "templates/charts/unfinished.html",
            source: "http://www.rp-online.de/politik/deutschland/asylantraege-unbearbeitet-bundesamt-fuer-fluechtlinge-im-rueckstand-aid-1.5381979",
        value: 40,
            sourcetitle: "RP Online – September 2015"
    }, {
        min: 0,
            max: 6,
            result: 3,
            unit: " Monate",
            question: "Wie lange dürfen Flüchtlinge nach ihrer Ankunft nicht Arbeiten?",
            color: "#576474",
            charttemplate: "templates/charts/work.html",
            source: "http://www.proasyl.de/de/themen/basics/basiswissen/rechte-der-fluechtlinge/",
        value: 2,
            sourcetitle: "Proasyl – Oktober 2015"
    }, {
        min: 0,
            max: 4000,
            result: 3300,
            unit: " EUR",
            question: "Wie viel Steuern verdient Deutschland jährlich mehr an einem Asylanten, als es für diesen ausgibt?",
            color: "#7e8c8d",
            charttemplate: "templates/charts/tax.html",
            source: "http://www.badische-zeitung.de/fakten-check-deutschland-geht-es-immer-schlechter",
        value: 1345,
            sourcetitle: "Badische Zeitung – Dezember 2014"
    }, {
        min: 100,
            max: 600,
            result: 243,
            unit: " Mio EUR",
            question: "Wie viel Geld vom Bundeshaushalt wurde 2015 für das Bundesamt für Migration und Flüchtlinge ausgegeben?",
        color: "#eb6f63",
            charttemplate: "templates/charts/bundeshaushalt.html",
            source: "http://www.bundeshaushalt-info.de/#/2015/soll/ausgaben/einzelplan.html",
        value: 500,
            sourcetitle: "Bundeshaushalt – Oktober 2015"
    }, {
        min: 0,
            max: 1000,
            result: 143,
            unit: " EUR",
            question: "Wie viel Geld bekommt ein Asylbewerber monatlich in einer Erstaufnahmeinrichtung?",
        color: "#f39c11",
            charttemplate: "templates/charts/money.html",
            source: "http://www.spiegel.de/politik/deutschland/fluechtlinge-in-deutschland-antworten-zum-taschengeld-a-1048432.html",
        value: 567,
            sourcetitle: "Spiegel – August 2015"
    }, {
        min: 0,
            max: 2000,
            result: 2000,
            unit: " Tote",
            question: "Wie viele Flüchtlinge starben 2015 bei der Flucht über das Mittelmeer?",
        color: "#2980B9",
            charttemplate: "templates/charts/deaths.html",
            source: "http://www.tagesspiegel.de/politik/ertrunkene-fluechtlinge-2015-schon-30-mal-mehr-tote-im-mittelmeer-als-im-vorjahreszeitraum/11664838.html",
        value: 345,
            sourcetitle: "tagessschau.de – August 2015"
    } ];
    $scope.toStep = function (i) {
        WizardHandler.wizard()
            .goTo(i);
        $scope.questionNumber = parseInt(i.substr(2));
        if (i == "q_0") {
            $scope.started = true;
        }
        if (i == "q_8") {
            $scope.showresults = true;
        }
    };
    $scope.getNumber = function (num) {
        return new Array(num);
    };
    $scope.setValue = function ($event, i) {
        var question = $scope.questions[i];
        $window.ga('send', 'event', 'Question', 'Frage ' + (i + 1), question.value);
        console.log(question.value);
        question.clicked = true;
        setTimeout(function () {
            question.showchart = true;
            $scope.$apply();
        }, 800);
    };
    $scope.cursorMousedown = function ($event) {
        $($event.currentTarget)
            .addClass("mousedown");
    };
    $scope.changeValue = function ($event, i) {
        var question = $scope.questions[i];
        $($event.currentTarget)
            .find(".cursor")
            .css({
                top: ($event.pageY - 30) + "px",
                left: ($event.pageX - 30) + "px",
            })
            .removeClass("mouseNotMoved");
        wh = $(window)
            .height();
        y = wh - $event.pageY;
        perc = y / wh;
        delta = question.max - question.min;
        //scope.value = 10 * Math.round((delta * perc + attr.min) / 10);
        question.value = Math.round((delta * perc + question.min));
        question.slider_height = y;
        question.innerAnswerOffset = -1 * (wh-y )+30 ;
    };
    $scope.bar_options = {
        scaleBeginAtZero: true,
        scaleShowGridLines: false,
        scaleGridLineColor: "#ffffff",
        scaleGridLineWidth: 0,
        scaleShowHorizontalLines: false,
        scaleShowVerticalLines: false,
        scaleShowLabels: false,
        barShowStroke: false,
        barStrokeWidth: 2,
        barValueSpacing: 5,
        showTooltips: false,
        barDatasetSpacing: 20,
        showScale: false,
        legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%>
<span style=\"background-color:<%=datasets[i].fillColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%>
<%}%>
"
    };
    $scope.pi_options = {
        responsive: false,
        maintainAspectRatio: false,
        segmentShowStroke: false,
        percentageInnerCutout: 70, // This is 0 for Pie charts
        animationSteps: 60,
        animationEasing: "easeOutQuart",
        animateRotate: true,
        animateScale: false,
        showTooltips: false,
        legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%>
<span style=\"background-color:<%=segments[i].fillColor%>\"><%if(segments[i].label){%><%=segments[i].label%><%}%>
<%}%>
",
    };
    $scope.result_1 = function () {
        var canvas = $("#result_1");
        var color = (canvas.parents(".question")
            .find(".slider")
            .css("background-color"));
        var ctx = canvas.get(0)
            .getContext("2d");
        var data = {
            labels: [''],
            datasets: [{
                fillColor: "#ffffff",
                strokeColor: false,
                highlightFill: color,
                highlightStroke: false,
                data: [1600]
            }, {
                fillColor: color,
                strokeColor: false,
                highlightFill: color,
                highlightStroke: false,
                data: [2000]
            }],
        };
        chart = new Chart(ctx)
            .Bar(data, $scope.bar_options);
    };
    $scope.chart_children = function () {
        var canvas = $("#chart_children");
        var color = (canvas.parents(".question")
            .find(".slider")
            .css("background-color"));
        var ctx = canvas.get(0)
            .getContext("2d");
        var data_pi = [{
            value: 30600000,
            color: color,
            label: "Kinderflüchtlinge"
        }, {
            value: 29400000,
            color: "#2E2E2E",
            label: "Volljährige Flüchtlinge"
        }];
        pi_chart = new Chart(ctx)
            .Doughnut(data_pi, $scope.pi_options);
    };
    $scope.chart_bundeshaushalt = function () {
        var canvas = $("#chart_bundeshaushalt");
        var color = (canvas.parents(".question")
            .find(".slider")
            .css("background-color"));
        var ctx = canvas.get(0)
            .getContext("2d");
        var data_bundeshaushalt = [{
            value: 243528000,
            color: color,
        }, {
            value: 301600000000,
            color: "#2E2E2E",
        }];
        chart_bundeshaushalt = new Chart(ctx)
            .Doughnut(data_bundeshaushalt, $scope.pi_options);
    };
    $scope.chart_unfinished = function () {
        var canvas = $("#chart_unfinished");
        var color = (canvas.parents(".question")
            .find(".slider")
            .css("background-color"));
        var ctx = canvas.get(0)
            .getContext("2d");
        var data_bundeshaushalt = [{
            value: 45,
            color: color,
        }, {
            value: 55,
            color: "#2E2E2E",
        }];
        chart_unfinished = new Chart(ctx)
            .Doughnut(data_bundeshaushalt, $scope.pi_options);
    };
    $scope.chart_deaths = function () {
        var canvas = $("#chart_deaths");
        var color = (canvas.parents(".question")
            .find(".slider")
            .css("background-color"));
        var ctx = canvas.get(0)
            .getContext("2d");
        var data = {
            labels: [''],
            datasets: [{
                fillColor: "#ffffff",
                strokeColor: false,
                highlightFill: color,
                highlightStroke: false,
                data: [1600]
            }, {
                fillColor: color,
                strokeColor: false,
                highlightFill: color,
                highlightStroke: false,
                data: [2000]
            }],
        };
        chart = new Chart(ctx)
            .Bar(data, $scope.bar_options);
    };
    $scope.chart_tax = function () {
        var canvas = $("#chart_tax");
        var color = (canvas.parents(".question")
            .find(".slider")
            .css("background-color"));
        var ctx = canvas.get(0)
            .getContext("2d");
        var data = {
            labels: [''],
            datasets: [{
                fillColor: "#ffffff",
                strokeColor: false,
                highlightFill: color,
                highlightStroke: false,
                data: [12000]
            }, {
                fillColor: color,
                strokeColor: false,
                highlightFill: color,
                highlightStroke: false,
                data: [15300]
            }],
        };
        chart = new Chart(ctx)
            .Bar(data, $scope.bar_options);
    };
    $scope.result_chart = function (index) {
        var options = bar_options = {
            scaleBeginAtZero: true,
            scaleShowGridLines: false,
            scaleGridLineColor: "#ffffff",
            scaleGridLineWidth: 0,
            scaleShowHorizontalLines: false,
            scaleShowVerticalLines: false,
            scaleShowLabels: true,
            barShowStroke: false,
            barStrokeWidth: 2,
            barValueSpacing: 5,
            showTooltips: false,
            barDatasetSpacing: 10,
            showScale: false,
            responsive: false,
            maintainAspectRatio: false,
        };
        setTimeout(function () {
            var canvas = $(".result_chart");
            var color = $scope.questions[index].color;
            var ctx = canvas.get(index)
                .getContext("2d");
            var data = {
                labels: [''],
                datasets: [{
                    fillColor: "#ffffff",
                    strokeColor: false,
                    highlightFill: color,
                    highlightStroke: false,
                    data: [$scope.questions[index].value]
                }, {
                    fillColor: "#2980B9",
                    strokeColor: false,
                    highlightFill: color,
                    highlightStroke: false,
                    data: [$scope.questions[index].result]
                }],
            };
            chart = new Chart(ctx)
                .Bar(data, options);
        }, 800);
    };
    $scope.refresh = function () {
        location.reload();
    };
});


text:
#ifndef __ASM_MACH_ATH25_DMA_COHERENCE_H
#define __ASM_MACH_ATH25_DMA_COHERENCE_H

#include <linux/device.h>

/*
 * We need some arbitrary non-zero value to be programmed to the BAR1 register
 * of PCI host controller to enable DMA. The same value should be used as the
 * offset to calculate the physical address of DMA buffer for PCI devices.
 */
#define AR2315_PCI_HOST_SDRAM_BASEADDR	0x20000000

static inline dma_addr_t ath25_dev_offset(struct device *dev)
{
#ifdef CONFIG_PCI
	extern struct bus_type pci_bus_type;

	if (dev && dev->bus == &pci_bus_type)
		return AR2315_PCI_HOST_SDRAM_BASEADDR;
#endif
	return 0;
}

static inline dma_addr_t
plat_map_dma_mem(struct device *dev, void *addr, size_t size)
{
	return virt_to_phys(addr) + ath25_dev_offset(dev);
}

static inline dma_addr_t
plat_map_dma_mem_page(struct device *dev, struct page *page)
{
	return page_to_phys(page) + ath25_dev_offset(dev);
}

static inline unsigned long
plat_dma_addr_to_phys(struct device *dev, dma_addr_t dma_addr)
{
	return dma_addr - ath25_dev_offset(dev);
}

static inline void
plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, size_t size,
		   enum dma_data_direction direction)
{
}

static inline int plat_dma_supported(struct device *dev, u64 mask)
{
	return 1;
}

static inline int plat_device_is_coherent(struct device *dev)
{
#ifdef CONFIG_DMA_COHERENT
	return 1;
#endif
#ifdef CONFIG_DMA_NONCOHERENT
	return 0;
#endif
}

static inline void plat_post_dma_flush(struct device *dev)
{
}

#endif /* __ASM_MACH_ATH25_DMA_COHERENCE_H */


text:
package org.rh.db;

import javax.naming.InitialContext;
import javax.sql.DataSource;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.Serializable;
import java.sql.Connection;
import java.util.HashMap;
import java.util.Map;

public class ConnectionPool implements Serializable {

    private final Map<String, DataSource> dataSourceMap = new HashMap<String, DataSource>();

    public static ConnectionPool instance;

    public static ConnectionPool getInstance() throws Exception {
        if (instance == null) {
            instance = new ConnectionPool();
        }
        return instance;
    }

    private ConnectionPool() throws Exception {
        BufferedReader reader = new BufferedReader(new FileReader("/etc/singularity/datasource.txt"));
        InitialContext initialContext = new InitialContext();
        String line;
        while ((line = reader.readLine()) != null) {
            line = line.trim();
            if (line.length() > 0) {
                DataSource dataSource = (DataSource) initialContext.lookup("java:jboss/" + line);
                dataSourceMap.put(line, dataSource);
            }
        }
        initialContext.close();
        reader.close();
    }

    public Connection getConnection() throws Exception {
        return dataSourceMap.get("singularity").getConnection();
    }

    public Connection getConnection(String jndi) throws Exception {
        return dataSourceMap.get(jndi).getConnection();
    }

}


text:
module DTK
  class Component::Instance
    class WithAttributes
      attr_reader :component, :attributes
      def initialize(component, attributes)
        @component  = component
        @attributes = attributes
      end
      private :initialize

      def self.components_with_attributes(components)
        ndx_attributes = ndx_attributes(components)
        components.map { |component| new(component, ndx_attributes[component.id]) }
      end

      def attribute(name)
        @ndx_attributes[name] || fail(Error, "Unexpected that attribute '#{name}' does not exist")
      end

      private

      ATTRIBUTE_COLS = [:id, :group_id, :display_name, :attribute_value, :component_component_id]

      def self.ndx_attributes(components)
        ndx_attributes = {}
        Component::Instance.get_attributes(components.map(&:id_handle), cols: ATTRIBUTE_COLS).each do |attribute|
          (ndx_attributes[attribute[:component_component_id]] ||= []) << attribute
        end
        ndx_attributes
      end

    end
  end
end


text:
module RuboCop
  module Cop
    module Performance
      # This cop is used to identify usages of `count` on an
      # `Enumerable` and change them to `size`.
      #
      # @example
      #   # bad
      #   [1, 2, 3].select { |e| e > 2 }.size
      #   [1, 2, 3].reject { |e| e > 2 }.size
      #   [1, 2, 3].select { |e| e > 2 }.length
      #   [1, 2, 3].reject { |e| e > 2 }.length
      #   [1, 2, 3].select { |e| e > 2 }.count { |e| e.odd? }
      #   [1, 2, 3].reject { |e| e > 2 }.count { |e| e.even? }
      #   array.select(&:value).count
      #
      #   # good
      #   [1, 2, 3].count { |e| e > 2 }
      #   [1, 2, 3].count { |e| e < 2 }
      #   [1, 2, 3].count { |e| e > 2 && e.odd? }
      #   [1, 2, 3].count { |e| e < 2 && e.even? }
      #   Model.select('field AS field_one').count
      #   Model.select(:value).count
      class Count < Cop
        MSG = 'Use `count` instead of `%s...%s`.'

        SELECTORS = [:reject, :select]
        COUNTERS = [:count, :length, :size]

        def on_send(node)
          selector, selector_loc, params, counter = parse(node)
          return unless COUNTERS.include?(counter)
          return unless SELECTORS.include?(selector)
          return if params && !params.block_pass_type?
          return if node.parent && node.parent.block_type?

          range = Parser::Source::Range.new(node.loc.expression.source_buffer,
                                            selector_loc.begin_pos,
                                            node.loc.expression.end_pos)

          add_offense(node, range, format(MSG, selector, counter))
        end

        def autocorrect(node)
          selector, selector_loc = parse(node)

          return if selector == :reject

          range = Parser::Source::Range.new(node.loc.expression.source_buffer,
                                            node.loc.dot.begin_pos,
                                            node.loc.expression.end_pos)

          lambda do |corrector|
            corrector.remove(range)
            corrector.replace(selector_loc, 'count')
          end
        end

        private

        def parse(node)
          left, counter = *node
          expression, selector, params = *left

          selector_loc =
            if selector.is_a?(Symbol)
              if expression && expression.parent.loc.respond_to?(:selector)
                expression.parent.loc.selector
              else
                left.loc.selector if left.loc.respond_to?(:selector)
              end
            else
              _enumerable, selector, params = *expression

              expression.loc.selector if contains_selector?(expression)
            end

          [selector, selector_loc, params, counter]
        end

        def contains_selector?(node)
          node.respond_to?(:loc) && node.loc.respond_to?(:selector)
        end
      end
    end
  end
end


text:
package ru.job4j.carstorage.servlets.userservlets;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Servlet for exit from app.
 */
@WebServlet(name = "exit", urlPatterns = "/carstorage/exit")
public class ExitAppServlet extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getSession().invalidate();
        resp.sendRedirect(String.format("%s/carstorage/login.html", req.getContextPath()));
    }
}


text:
package org.eclipse.winery.repository;

import java.io.IOException;

import org.junit.BeforeClass;

/**
 * @deprecated Switch to AbstractResourceTest
 */
@Deprecated
public abstract class TestWithRepositoryConnection {

	@BeforeClass
	public static void connectToProvider() throws IOException {
		// Initialize preferences
		// We do not need them, but constructing them has the side effect that Repository.INSTANCE is != null
		new PrefsTestEnabledUsingConfiguredRepository();
	}

}


text:
<?php

namespace GraphAware\Common\Tests\Graph;

use GraphAware\Common\Graph\Label;

/**
 * @group unit
 * @group graph
 */
class LabelUnitTest extends \PHPUnit_Framework_TestCase
{
    public function testInstance()
    {
        $label = new Label("User");
        $this->assertInstanceOf(Label::class, $label);
        $this->assertEquals("User", $label->getName());
    }

    public function testStatic()
    {
        $label = Label::label("User");
        $this->assertInstanceOf(Label::class, $label);
        $this->assertEquals("User", $label->getName());
    }

    public function testClassImplementsToString()
    {
        $label = Label::label("User");
        $this->assertEquals("User", (string) $label);
    }
}


text:
package org.apache.kafka.clients.admin;

import java.util.LinkedList;
import java.util.List;
import java.util.Optional;

import org.apache.kafka.common.annotation.InterfaceStability;
import org.apache.kafka.common.security.auth.KafkaPrincipal;

/**
 * Options for {@link Admin#createDelegationToken(CreateDelegationTokenOptions)}.
 *
 * The API of this class is evolving, see {@link Admin} for details.
 */
@InterfaceStability.Evolving
public class CreateDelegationTokenOptions extends AbstractOptions<CreateDelegationTokenOptions> {
    private long maxLifeTimeMs = -1;
    private List<KafkaPrincipal> renewers =  new LinkedList<>();
    private KafkaPrincipal owner = null;

    public CreateDelegationTokenOptions renewers(List<KafkaPrincipal> renewers) {
        this.renewers = renewers;
        return this;
    }

    public List<KafkaPrincipal> renewers() {
        return renewers;
    }

    public CreateDelegationTokenOptions owner(KafkaPrincipal owner) {
        this.owner = owner;
        return this;
    }

    public Optional<KafkaPrincipal> owner() {
        return Optional.ofNullable(owner);
    }

    public CreateDelegationTokenOptions maxlifeTimeMs(long maxLifeTimeMs) {
        this.maxLifeTimeMs = maxLifeTimeMs;
        return this;
    }

    public long maxlifeTimeMs() {
        return maxLifeTimeMs;
    }
}


text:
import contrib from 'blessed-contrib';

const gauge = contrib.gauge({label: 'Progress', stroke: 'green', fill: 'white'});

export default gauge;


text:
@interface ANLoginViewController : UIViewController<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *email;
@property (weak, nonatomic) IBOutlet UITextField *password;

- (IBAction)login:(id)sender;

@end


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectFork
{
    class DataManager
    {
        public static DataManager INSTANCE
        {
            get
            {
                if (_instance == null) _instance = new DataManager();
                return _instance;
            }
        }

        public static string DictPath = "DICT\\";

        private static DataManager _instance;
        private Dictionary<string, string> _vars;
        private Dictionary<string, List<string>> _lists;
        private Dictionary<string, bool> _flags;
        private Dictionary<string, string> _dict;
        private string _dictpath;

        public DataManager()
        {
            this._dictpath = new DirectoryInfo(DictPath).FullName;
            this._lists = new Dictionary<string, List<string>>();
            this._vars = new Dictionary<string, string>();
            this._flags = new Dictionary<string, bool>();
            this._dict = new Dictionary<string, string>();
        }

        public void Start()
        {
            DirectoryInfo di = new DirectoryInfo(this._dictpath);
            if (!di.Exists) di.Create();
            foreach(var i in di.GetFiles("*.zd"))
            {
                this.AddToDict(i.FullName);
            }
        }

        public string GetVars(string key)
        {
            return _vars.ContainsKey(key) ? _vars[key] : null;
        }

        public List<string> GetList(string key)
        {
            if (!_lists.ContainsKey(key))
                _lists.Add(key, new List<string>());
            return _lists[key];

        }

        public void SetVars(string key, string value)
        {
            if (_vars.ContainsKey(key))
                _vars[key] = value;
            else
                _vars.Add(key, value);
        }

        public void AddToList(string key, string value)
        {
            if (!_lists.ContainsKey(key)) _lists.Add(key, new List<string>());
            _lists[key].Add(value);
        }

        public void DelFromList(string key, string value)
        {
            if (!_lists.ContainsKey(key)) return;
            _lists[key].Remove(value);
        }

        public void SetFlag(string key, bool flag)
        {
            if (_flags.ContainsKey(key))
                _flags[key] = flag;
            else
                _flags.Add(key, flag);
        }

        public bool GetFlag(string key)
        {
            return _flags.ContainsKey(key) ? _flags[key] : false;
        }

        public Dictionary<string, string> GetVarsDictionary()
        {
            return this._vars;
        }

        public Dictionary<string, bool> GetFlagsDictionary()
        {
            return this._flags;
        }

        public Dictionary<string, string> GetDictDictionary()
        {
            return this._dict;
        }

        public Dictionary<string, List<string>> GetListsDictionary()
        {
            return this._lists;
        }

        private void AddToDict(string filename)
        {
            string[] r = File.ReadAllLines(filename);
            foreach(string i in r)
            {
                string[] a = Helper.Split(i);
                this._dict.Add(a[0], a[1]);
            }
        }
    }
}


text:
<?php

namespace utest\toolkit\mock;

use umi\toolkit\factory\IFactory;
use umi\toolkit\factory\TFactory;

class TestFactory implements IFactory
{

    use TFactory;

    public $option;

    protected $name;

    public function __construct($name = 'TestFactory')
    {
        $this->name = $name;
    }

    public function getName()
    {
        return $this->name;
    }
}


text:
package com.chuangtc.config;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration.Dynamic;

import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

public class SpringWebInitializer implements WebApplicationInitializer {

	public void onStartup(ServletContext servletContext)throws ServletException {

		AnnotationConfigWebApplicationContext ctx = new AnnotationConfigWebApplicationContext();
		ctx.register(AppConfig.class);
		ctx.setServletContext(servletContext);

		Dynamic servlet = servletContext.addServlet("dispatcher",new DispatcherServlet(ctx));
		servlet.addMapping("/");
		servlet.setLoadOnStartup(1);

	}

}


text:
class CefFindHandlerCppToC
    : public CefCppToC<CefFindHandlerCppToC, CefFindHandler,
        cef_find_handler_t> {
 public:
  explicit CefFindHandlerCppToC(CefFindHandler* cls);
};

#endif  // USING_CEF_SHARED
#endif  // CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_


text:
NinjaFluentLeniumTest
=====================

Introduction
------------

Fluentlenium is a great tool that facilitates the usage of Selenium a lot. Selenium is the best
tool to test your application on HTML level. Click on elements, submit forms, make sure
CSS styles are present and so on.

Ninja integrates FluentLenium via the NinjaFluentLeniumTest.
Simply extend the class and you are ready to go:

public class ApplicationControllerFluentLeniumTest extends NinjaFluentLeniumTest {

    @Test
    public void testThatHomepageWorks() {

        goTo(getBaseUrl() + "/");

        System.out.println("title: " + window().title());

        assertTrue(window().title().contains("Home page"));

        $("#login").click();

        assertTrue(url().contains("login"));

    }

}

But FluentLenium can do a lot more. Check out https://github.com/FluentLenium/FluentLenium

From 0.10.3 to 3.2.0
--------------------

Prior to Ninja 6.0.0, FluentLenium 0.10.3 was used. Upgrading to version 3.2.0 breaks backward compatibility
of older tests. If you are facing this case, you can either follow the migration guide proposed by FluentLenium
(http://fluentlenium.org/migration/from-0.13.2-to-1.0-or-3.0/) ; or you can force your project to use
the older version of FluentLenium by setting up that version in your project pom.xml dependencies.

<dependency>
    <groupId>org.fluentlenium</groupId>
    <artifactId>fluentlenium-core</artifactId>
    <version>0.10.3</version>
    <scope>test</scope>
    <exclusions>
        <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
        </exclusion>
    </exclusions>
</dependency>


text:
package eu.tripledframework.eventstore.domain;

/**
 * Marker interface that provides hooks into the reconstruction process to perform specific actions that the domain entity requires.
 */
public interface ConstructionAware {

  /**
   * Method which will be called after the reconstruction process. If this method is called, the object is fully reconstructed the full
   * object state is available.
   */
  void postConstruct();
}


text:
package com.WSParser.WebServices.EidssService;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;
import java.util.Hashtable;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;

import android.content.ContentValues;

public class GisBaseReferenceRaw implements KvmSerializable {

    public String NAMESPACE =" http://bv.com/eidss";
    public long idfsBaseReference;
    public long idfsReferenceType;
    public long idfsCountry;
    public long idfsRegion;
    public long idfsRayon;
    public String strDefault;

    public ContentValues ContentValues()
    {
    	ContentValues ret = new ContentValues();
        ret.put("idfsBaseReference", idfsBaseReference);
        ret.put("idfsReferenceType", idfsReferenceType);
        ret.put("idfsCountry", idfsCountry);
        ret.put("idfsRegion", idfsRegion);
        ret.put("idfsRayon", idfsRayon);
        ret.put("strDefault", strDefault);
        return ret;
    }

    public GisBaseReferenceRaw(){}

    public GisBaseReferenceRaw(SoapObject soapObject){

        if (soapObject.hasProperty("idfsBaseReference"))
        {
            Object obj = soapObject.getProperty("idfsBaseReference");
            if (obj != null && obj.getClass().equals(SoapPrimitive.class)){
                SoapPrimitive j16 =(SoapPrimitive) soapObject.getProperty("idfsBaseReference");
                idfsBaseReference = Long.parseLong(j16.toString());
            }
        }
        if (soapObject.hasProperty("idfsReferenceType"))
        {
            Object obj = soapObject.getProperty("idfsReferenceType");
            if (obj != null && obj.getClass().equals(SoapPrimitive.class)){
                SoapPrimitive j17 =(SoapPrimitive) soapObject.getProperty("idfsReferenceType");
                idfsReferenceType = Long.parseLong(j17.toString());
            }
        }
        if (soapObject.hasProperty("idfsCountry"))
        {
            Object obj = soapObject.getProperty("idfsCountry");
            if (obj != null && obj.getClass().equals(SoapPrimitive.class)){
                SoapPrimitive j18 =(SoapPrimitive) soapObject.getProperty("idfsCountry");
                idfsCountry = Long.parseLong(j18.toString());
            }
        }
        if (soapObject.hasProperty("idfsRegion"))
        {
            Object obj = soapObject.getProperty("idfsRegion");
            if (obj != null && obj.getClass().equals(SoapPrimitive.class)){
                SoapPrimitive j19 =(SoapPrimitive) soapObject.getProperty("idfsRegion");
                idfsRegion = Long.parseLong(j19.toString());
            }
        }
        if (soapObject.hasProperty("idfsRayon"))
        {
            Object obj = soapObject.getProperty("idfsRayon");
            if (obj != null && obj.getClass().equals(SoapPrimitive.class)){
                SoapPrimitive j20 =(SoapPrimitive) soapObject.getProperty("idfsRayon");
                idfsRayon = Long.parseLong(j20.toString());
            }
        }
        if (soapObject.hasProperty("strDefault"))
        {
            Object obj = soapObject.getProperty("strDefault");
            if (obj != null && obj.getClass().equals(SoapPrimitive.class)){
                SoapPrimitive j21 =(SoapPrimitive) soapObject.getProperty("strDefault");
                strDefault = j21.toString();
            }
        }
    }
    @Override
    public Object getProperty(int arg0) {
    switch(arg0){
        case 0:
            return idfsBaseReference;
        case 1:
            return idfsReferenceType;
        case 2:
            return idfsCountry;
        case 3:
            return idfsRegion;
        case 4:
            return idfsRayon;
        case 5:
            return strDefault;
    }
    return null;
    }
    @Override
    public int getPropertyCount() {
        return 6;
    }
    @Override
    public void getPropertyInfo(int index, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo info) {
    switch(index){
        case 0:
            info.type = Long.class;
            info.name = "idfsBaseReference";
            break;
        case 1:
            info.type = Long.class;
            info.name = "idfsReferenceType";
            break;
        case 2:
            info.type = Long.class;
            info.name = "idfsCountry";
            break;
        case 3:
            info.type = Long.class;
            info.name = "idfsRegion";
            break;
        case 4:
            info.type = Long.class;
            info.name = "idfsRayon";
            break;
        case 5:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "strDefault";
            break;
    }
    }
    @Override
    public void setProperty(int index, Object value) {
    switch(index){
        case 0:
        idfsBaseReference = Long.parseLong(value.toString()) ;
        break;
        case 1:
        idfsReferenceType = Long.parseLong(value.toString()) ;
        break;
        case 2:
        idfsCountry = Long.parseLong(value.toString()) ;
        break;
        case 3:
        idfsRegion = Long.parseLong(value.toString()) ;
        break;
        case 4:
        idfsRayon = Long.parseLong(value.toString()) ;
        break;
        case 5:
        strDefault = value.toString() ;
        break;
}
}
}


text:
package au.com.scds.chats.datamigration.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.sql.Timestamp;
import java.math.BigInteger;

/**
 * The persistent class for the jurisdictions_persons database table.
 *
 */
@Entity
@Table(name="jurisdictions_persons")
public class JurisdictionsPerson implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	@Column(name="createdby_user_id")
	private BigInteger createdbyUserId;

	private Timestamp createdDTTM;

	@Temporal(TemporalType.TIMESTAMP)
	private Date deletedDTTM;

	@Column(name="jurisdiction_id")
	private BigInteger jurisdictionId;

	@Column(name="lastmodifiedby_user_id")
	private BigInteger lastmodifiedbyUserId;

	private Timestamp lastmodifiedDTTM;

	@Column(name="person_id")
	private BigInteger personId;

	private int region;

	public JurisdictionsPerson() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigInteger getCreatedbyUserId() {
		return this.createdbyUserId;
	}

	public void setCreatedbyUserId(BigInteger createdbyUserId) {
		this.createdbyUserId = createdbyUserId;
	}

	public Timestamp getCreatedDTTM() {
		return this.createdDTTM;
	}

	public void setCreatedDTTM(Timestamp createdDTTM) {
		this.createdDTTM = createdDTTM;
	}

	public Date getDeletedDTTM() {
		return this.deletedDTTM;
	}

	public void setDeletedDTTM(Date deletedDTTM) {
		this.deletedDTTM = deletedDTTM;
	}

	public BigInteger getJurisdictionId() {
		return this.jurisdictionId;
	}

	public void setJurisdictionId(BigInteger jurisdictionId) {
		this.jurisdictionId = jurisdictionId;
	}

	public BigInteger getLastmodifiedbyUserId() {
		return this.lastmodifiedbyUserId;
	}

	public void setLastmodifiedbyUserId(BigInteger lastmodifiedbyUserId) {
		this.lastmodifiedbyUserId = lastmodifiedbyUserId;
	}

	public Timestamp getLastmodifiedDTTM() {
		return this.lastmodifiedDTTM;
	}

	public void setLastmodifiedDTTM(Timestamp lastmodifiedDTTM) {
		this.lastmodifiedDTTM = lastmodifiedDTTM;
	}

	public BigInteger getPersonId() {
		return this.personId;
	}

	public void setPersonId(BigInteger personId) {
		this.personId = personId;
	}

	public int getRegion() {
		return this.region;
	}

	public void setRegion(int region) {
		this.region = region;
	}

}


text:
The facter plugin enables mcollective to use external command as a source for facts about your system.
External command should produce output in yaml format.

##Configuration
The following options can be set in server.cfg
* plugin.command - command used to get facts. Default is not defined.
* plugin.command.timeout - command execution timeout. Default is 10 seconds.

Sample configuration:

```
plugin.command = "/usr/bin/facter --puppet --yaml"
plugin.command.timeout = 10
```


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Nova Hedwigia 88(3-4): 498 (2009)

#### Original name
Russula caeruleoanulata Douanla-Meli

### Remarks
null


text:
package org.apache.causeway.applib.layout.grid.bootstrap;

import java.io.Serializable;

/**
 * @since 1.x {@index}
 */
public interface BSElement extends WithinGrid, Serializable {

    /**
     * Any additional CSS classes to render on the page element corresponding to this object,
     * eg as per the Bootstrap mixins or just for
     * custom styling.
     */
    String getCssClass();

    void setCssClass(final String cssClass);

}


text:
package com.intellij.ui.tabs;

import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.openapi.project.Project;
import com.intellij.ui.FileColorManager;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import org.jdom.Element;

import javax.annotation.Nonnull;

/**
 * @author spleaner
 */
@Singleton
@State(name = "SharedFileColors", storages = @Storage("fileColors.xml"))
public class FileColorSharedConfigurationManager implements PersistentStateComponent<Element> {
  private final Project myProject;

  @Inject
  public FileColorSharedConfigurationManager(@Nonnull final Project project) {
    myProject = project;
  }

  @Override
  public Element getState() {
    return ((FileColorManagerImpl)FileColorManager.getInstance(myProject)).getState(true);
  }

  @Override
  public void loadState(Element state) {
    ((FileColorManagerImpl)FileColorManager.getInstance(myProject)).loadState(state, true);
  }
}


text:
using System;
using System.Threading;
using FilesTree.Model;
using FilesTree.Presenter.Events;
using FilesTree.View;

namespace FilesTree.Presenter
{
    internal sealed class FilesTreePresenter
    {
        private readonly FilesTreeModel _model;
        private readonly IFilesTreeView _view;

        public FilesTreePresenter(IFilesTreeView view, FilesTreeModel model)
        {
            _view = view;
            _model = model;

            _view.TreeBuildingStarted += TreeBuildingStartedHandler;
            _view.TreeBuildingCanceled += TreeBuildingCanceledHandler;
            _view.ViewExceptionOccurred += ErrorOccurredHandler;
            view.TreeNodeSelected += TreeNodeSelectedHandler;

            _view.ResetFilesTree();

            _model.ErrorOccurred += ErrorOccurredHandler;
            _model.TreeBuildingFinished += TreeBuildingFinishedHandler;
            _model.TreeElementAdded += TreeElementAddedHandler;
        }

        private void TreeBuildingStartedHandler(object sender, SelectedFolderEventArgs e)
        {
            _view.ShowTreeBuildingProgress();
            _model.StartTreeBuilding(e.TargetFolderPath, e.OutputFilePath);
        }

        private void TreeBuildingCanceledHandler(object sender, EventArgs e)
        {
            _model.AbortTreeBuilding();
            _view.ResetFilesTree();
        }

        private void ErrorOccurredHandler(object sender, ErrorEventArgs e)
        {
            _model.AbortTreeBuilding();
            _view.ShowError(e.ErrorMessage, e.Exception != null ? e.Exception.Message : null, Thread.CurrentThread.Name);
            _view.ResetFilesTree();
        }

        private void TreeNodeSelectedHandler(object sender, FileSystemObjectEventArgs e)
        {
            _view.ShowElementProperties(e.FileSystemObjectData);
        }

        private void TreeBuildingFinishedHandler(object sender, EventArgs e)
        {
            _view.ShowTreeBuildingEnded();
        }

        private void TreeElementAddedHandler(object sender, FileSystemObjectEventArgs e)
        {
            _view.AddTreeNode(e.FileSystemObjectData);
        }
    }
}


text:
$category@: ads-analytics
formats:
  - ads
teaser:
  text: Alternative way to serve valid AMPHTML ads.
---

# AMP Template Ad Integration Guidelines

## Overview

AMP template ads are an alternative way to serve valid AMPHTML ads without the complexity of serving time validation and signing. The high level idea is to load an ad template that is written in AMP and served from an authorized AMP proxy server, and render the ad client-side with fetched ad data in JSON format from an ad server.

For any ad network to serve AMPHTML template ads, the integration consists of 3 parts:

-   AMPHTML Ad template creation
-   Ad server change: ad serving endpoint
-   Ads tag in AMP

## AMPHTML Ad Template Creation

Ad network creates ad templates in AMP format and hosts them on their own domain similar to canonical AMP pages.

For example, adnetwork.com could host a template at the following URL:
`https://adnetwork.com/amp_template_1.html`
The corresponding AMP proxy URL is:
`https://adnetwork-com.cdn.ampproject.org/ad/s/adnetwork.com/amp_template_1.html.`

The ad network's domain name (origin) serves as a namespace, and the URL path serves as its ID.

The proxy server caches the template on the first request. It follows the same stale-while-revalidate caching policy as normal AMP pages, meaning a syncing request is made in the background after every cache hit.

To make sure the template is valid AMPHTML, ad network must make an HTTP request to the cache URL, which returns a 4XX error, if invalid. This will also warm up the cache, and thereby speed up the first ad load. The cache URL can be converted from the canonical AMP URL following the rule described above (see detailed URL format here).

To update a template, an ad network just needs to update the page on their domain, then make another cache warm-up request.

Note: at this stage, domains need to be allowlisted manually in AMP Cache to experiment with the feature.

## Ad server

The ad network needs to provide a new serving endpoint that returns a CORS response in a JSON format:

```js
{
  templateUrl: "https://adexample.com/amp_template_1.html",
  data: {
    clickUrl: "https://buy.com/buy-1",
    buttonText: "Buy now"
  },
  analytics: {
    type: "googleanalytics",
    config: {
      ...
    }
  }
}
```

The response requires a couple of custom headers:

-   custom headers for CORS
-   AMP-Ad-Template-Extension: amp-mustache
-   Amp-Ad-Response-Type: template

## Ads tag

The `amp-ad-custom` extension can be used to quickly declare ad slots, using key-value pairs set on data attributes to form the ad request. An example slot might look like:

```html
<amp-ad-custom
  width="320"
  height="50"
  src="http://www.my-ad-network.com"
  data-request-param-{param_1}="{val_1}"
  data-request-param-{param_2}="{val_2}"
  .
  .
  .
  data-request-param-{param_N}="{val_N}"
>
</amp-ad-custom>
```

And the resultant ad request URL would be: `http://www.my-ad-network.com?{param_1}={val_1}&{param_2}={val_2}&...&{param_N}={val_N}`.


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Couchbase.Core;
using Couchbase.Linq.Extensions;
using Couchbase.Linq.UnitTests.Documents;
using Moq;
using NUnit.Framework;

namespace Couchbase.Linq.UnitTests.QueryGeneration
{
    [TestFixture]
    public class IsMissingTests : N1QLTestBase
    {
        [Test]
        public void Test_IsMissing_ByProperty()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsMissing(p.Age));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`age` IS MISSING";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsMissing_ByName()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsMissing(p, "test"));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`test` IS MISSING";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsNotMissing_ByProperty()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsNotMissing(p.Age));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`age` IS NOT MISSING";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsNotMissing_ByName()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsNotMissing(p, "test"));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`test` IS NOT MISSING";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsMissing_SubstiteWithDefault()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Select(p => new {age = N1QlFunctions.IsMissing(p.Age) ? 10 : p.Age});

            const string expected = "SELECT CASE WHEN `Extent1`.`age` IS MISSING THEN 10 ELSE `Extent1`.`age` END as `age` FROM `default` as `Extent1`";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsValued_ByProperty()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsValued(p.Age));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`age` IS VALUED";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsValued_ByName()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsValued(p, "test"));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`test` IS VALUED";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsNotValued_ByProperty()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsNotValued(p.Age));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`age` IS NOT VALUED";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsNotValued_ByName()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Where(p => N1QlFunctions.IsNotValued(p, "test"));

            const string expected = "SELECT RAW `Extent1` FROM `default` as `Extent1` WHERE `Extent1`.`test` IS NOT VALUED";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }

        [Test]
        public void Test_IsNotValued_SubstiteWithDefault()
        {
            var mockBucket = new Mock<IBucket>();
            mockBucket.SetupGet(e => e.Name).Returns("default");

            var query = QueryFactory.Queryable<Contact>(mockBucket.Object)
                .Select(p => new { age = N1QlFunctions.IsNotValued(p.Age) ? 10 : p.Age });

            const string expected = "SELECT CASE WHEN `Extent1`.`age` IS NOT VALUED THEN 10 ELSE `Extent1`.`age` END as `age` FROM `default` as `Extent1`";

            var n1QlQuery = CreateN1QlQuery(mockBucket.Object, query.Expression);

            Assert.AreEqual(expected, n1QlQuery);
        }
    }
}


text:
using Microsoft.ServiceBus.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ServiceBusWebFrontend
{
    public partial class _Default : Page
    {
        TopicClient m_tc = TopicClient.Create("obliczenia");
        QueueClient m_qc = QueueClient.Create("wynik");
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected async void cmdSend1_Click(object sender, EventArgs e)
        {
            byte[] dataArr = {1,2,3,4,5,6,7,8,9,10};
            BrokeredMessage msg = new BrokeredMessage(dataArr);
            msg.Properties.Add("suma", 1);
            msg.Properties.Add("srednia", 1);
            msg.ReplyToSessionId = Guid.NewGuid().ToString("N");
            await m_tc.SendAsync(msg);
            MessageSession session=m_qc.AcceptMessageSession(msg.ReplyToSessionId, TimeSpan.FromSeconds(60));
            List<BrokeredMessage> lst = new List<BrokeredMessage>();
            while (lst.Count<3)
			{
                msg = await session.ReceiveAsync();
                //Potem można: session.ReceiveAsync(msg.SequenceNumber + 1)
                if (msg != null)
                {
                    lst.Add(msg);
                    await msg.CompleteAsync();
                }

			}
            lblInfo.Text = "";
            foreach (var item in lst) lblInfo.Text += item.GetBody<string>();
        }

        protected async void cmdSend2_Click(object sender, EventArgs e)
        {
            byte[] dataArr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            BrokeredMessage msg = new BrokeredMessage(dataArr);
            msg.Properties.Add("suma", 1);
            msg.ReplyToSessionId = Guid.NewGuid().ToString("N");
            await m_tc.SendAsync(msg);
            MessageSession session = m_qc.AcceptMessageSession(msg.ReplyToSessionId, TimeSpan.FromSeconds(60));
            List<BrokeredMessage> lst = new List<BrokeredMessage>();
            while (lst.Count < 2)
            {
                msg = await session.ReceiveAsync();
                if (msg != null)
                {
                    lst.Add(msg);
                    await msg.CompleteAsync();
                }
            }
            lblInfo.Text = "";
            foreach (var item in lst) lblInfo.Text += item.GetBody<string>();
        }

    }
}


text:
package de.proteinms.omxparser.util;

import java.io.Serializable;

/**
 * List of modificatinos that can be used in search.
 *

 * Please see "OMSSA.mod.xsd" for further information:
 *

 * See http://www.ncbi.nlm.nih.gov/data_specs/schema/OMSSA.mod.xsd
 *
 * @author Steffen Huber
 * @author Harald Barsnes
 */
public class MSRequest_modset implements Serializable {

    /**
     * List of modificatinos that can be used in search.
     */
    public MSModSpecSet MSModSpecSet = new MSModSpecSet();

    /**
     * Sets the MSModSpecSet value.
     *
     * @param s the MSModSpecSet value
     */
    public void setMSModSpecSet(MSModSpecSet s) {
        this.MSModSpecSet = s;
    }
}


text:
var path = require('path');

//
exports.defaultLang = 'en';
exports.possibleLang = ['zh', 'es', 'ja'];

//
exports.dbPlugin = 'file';
exports.dbFilePath = './i18n';

//
exports.serverPort = 8080;
exports.serverCheckPaths = ['.', 'index.html', 'index.htm'];

/**
 *
 * @param conf
 */
exports.update = function (conf) {
	if (!conf.i18n) {
		return;
	}

	Object.keys(conf.i18n).forEach(function (key) {
		exports[key] = conf.i18n[key];
	});
};


text:
<!DOCTYPE html>

   <meta charset="utf-8">
   <title>{{ page.title }} - {{ site.title }}</title>

   <link rel="stylesheet" type="text/css" href="css/style.css" >

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            Toggle navigation

          </button>
          {{ site.title }}

Home

About

        {{ content }}