text:
package org.pentaho.hadoop.sample.wordcount;

import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.FileInputFormat;
import org.apache.hadoop.mapred.FileOutputFormat;
import org.apache.hadoop.mapred.JobClient;
import org.apache.hadoop.mapred.JobConf;

public class WordCount {
  public static void main(String[] args) throws Exception {
    String hdfsHost = "localhost:9000";
    String jobTrackerHost = "localhost:9001";

    String dirInput = "/wordcount/input";
    String dirOutput = "/wordcount/output";

    if (args.length == 1 && (
          args[0].equals("--help") ||
          args[0].equals("-h") ||
          args[0].equals("/?")
        )) {
      System.out.println("Usage: WordCount <options>");
      System.out.println();
      System.out.println("Options:");
      System.out.println();
      System.out.println("--input=DIR                   The directory containing the input files for the");
      System.out.println("                              WordCount Hadoop job");
      System.out.println("--output=DIR                  The directory where the results of the WordCount");
      System.out.println("                              Hadoop job will be stored");
      System.out.println("--hdfsHost=HOST               The host<:port> of the HDFS service");
      System.out.println("                              e.g.- localhost:9000");
      System.out.println("--jobTrackerHost=HOST         The host<:port> of the job tracker service");
      System.out.println("                              e.g.- localhost:9001");
      System.out.println();
      System.out.println();
      System.out.println("If an option is not provided through the command prompt the following defaults");
      System.out.println("will be used:");
      System.out.println("--input='/wordcount/input'");
      System.out.println("--output='/wordcount/output'");
      System.out.println("--hdfsHost=localhost:9000");
      System.out.println("--jobTrackerHost=localhost:9001");

    } else {
      if(args.length > 0){
        for(String arg : args) {
          if(arg.startsWith("--input=")) {
            dirInput = WordCount.getArgValue(arg);
          } else if(arg.startsWith("--output=")) {
            dirOutput = WordCount.getArgValue(arg);
          } else if(arg.startsWith("--hdfsHost=")) {
            hdfsHost = WordCount.getArgValue(arg);
          } else if(arg.startsWith("--jobTrackerHost=")) {
            jobTrackerHost = WordCount.getArgValue(arg);
          }
        }
      }

      JobConf conf = new JobConf(WordCount.class);
      conf.setJobName("WordCount");

      String hdfsBaseUrl = "hdfs://" + hdfsHost;
      conf.set("fs.default.name", hdfsBaseUrl);
      conf.set("mapred.job.tracker", jobTrackerHost);

      FileInputFormat.setInputPaths(conf, new Path[] { new Path(hdfsBaseUrl + dirInput) });
      FileOutputFormat.setOutputPath(conf, new Path(hdfsBaseUrl + dirOutput));

      conf.setMapperClass(WordCountMapper.class);
      conf.setReducerClass(WordCountReducer.class);

      conf.setMapOutputKeyClass(Text.class);
      conf.setMapOutputValueClass(IntWritable.class);

      conf.setOutputKeyClass(Text.class);
      conf.setOutputValueClass(IntWritable.class);

      JobClient.runJob(conf);
    }
  }

  private static String getArgValue(String arg) {
    String result = null;

    String[] tokens = arg.split("=");
    if(tokens.length > 1) {
      result = tokens[1].replace("'", "").replace("\"", "");
    }

    return result;
  }
}


text:
/**
 * AST Node.
 * ASTNode is a ViewModel-like object that connects to both code and view.
 *
 * @class ASTNode
 */
declare class ASTNode {
  /**
   * lc-if flag.
   *
   * @type {boolean}
   * @memberof ASTNode
   */
  $if: boolean

  /**
   * Anchor element for lc-if.
   *
   * @type {Comment}
   * @memberof ASTNode
   */
  $ifAnchor: Comment

  /**
   * AST that contains this node.
   *
   * @type {AST}
   * @memberof ASTNode
   */
  ast: AST

  /**
   * ID.
   *
   * @type {string}
   * @memberof ASTNode
   */
  id: string

  /**
   * Attributes of this node.
   *
   * @type {ASTNodeElementAttribute}
   * @memberof ASTNode
   */
  attributes: ASTNodeElementAttribute

  /**
   * Directives reference.
   *
   * @type {Directive[]}
   * @memberof ASTNode
   */
  directives: Directive[]

  /**
   * Element of this node in view.
   *
   * @type {(Element | Text | Comment)}
   * @memberof ASTNode
   */
  element: Element | Text | Comment

  /**
   * ASTNode type.
   *
   * @type {ASTNodeType}
   * @memberof ASTNode
   */
  nodeType: ASTNodeType

  /**
   * Parent ASTNode of this node.
   *
   * @type {ASTNode}
   * @memberof ASTNode
   */
  parentNode: ASTNode

  /**
   * TagName of this node in view.
   *
   * @type {string}
   * @memberof ASTNode
   */
  tagName: string

  /**
   * Find ancesstor for this node.
   *
   * @returns {ASTNode}
   * @memberof ASTNode
   */
  findAncesstor (): ASTNode

  /**
   * Pre-update funciton.
   * If a "true" is given, go continue to update.
   *
   * @param {string} [specificExpression] The expression that is given specifically.
   * @param {*} [newValue] New value for specific expression.
   * @returns {boolean} If do further updates.
   * @memberof ASTNode
   */
  preUpdate (specificExpression?: string, newValue?: any): boolean

  /**
   * Update this ASTNode by given expression and new value.
   * Then the element of this ASTNode will be updated.
   * If a specific expression is given, update the element if it contains this expression.
   *
   * @param {string} [specificExpression] The expression that is given specifically.
   * @param {*} [newValue] New value for specific expression.
   * @return {boolean} Tell child class if go continue.
   * @memberof ASTNode
   */
  update (specificExpression?: string, newValue?: any): void

  /**
   * Creates an instance of ASTNode.
   *
   * @param {IASTNodeOption} param
   * @memberof ASTNode
   */
  constructor (param: IASTNodeOption)
}

/**
 * ASTNode constructor param.
 *
 * @interface IASTNodeOption
 */
interface IASTNodeOption {
  ast: AST
  attributes?: ASTNodeElementAttribute
  parentNode?: ASTNode
  tagName?: string
}

/**
 * Type of ASTNode.
 */
type ASTNodeTypes = ASTNodeComponent | ASTNodeElement | ASTNodeText

/**
 * AST Node Attribute.
 */
type ASTNodeElementAttribute = {[attribute: string]: {
  value: string
  decorators: string[]
}}

/**
 * AST Node type.
 * Same as HTML Node type.
 *  - 1: Element
 *  - 3: TextNode
 *  - 9: Comment
 */
type ASTNodeType = number

/**
 * AST Node props.
 * @example
 *  {
 *    :name: 'login ? myName : '',
 *    :isLogin: 'isLogin'
 *  }
 */
type ASTNodeProps = {[propName: string]: string}

redpajama_set_name: RedPajamaGithub


text:
require 'base64'

module Vault
  module SinatraHelpers
    # Public: Methods for including and serializing javascript and css files for HTML
    #
    # Examples
    #
    #   # = js 'foo'
    #   # <%= js 'foo', 'bar', 'foo/bar' %>
    #
    #   # = css 'foo'
    #   # <%= cssjs 'foo', 'bar', 'foo/bar' %>
    module HtmlSerializer

      # Public: create js markup by concatenating all javascript files
      #
      # files - one or many file names assuming settings.public_folder/js/ is the root
      #
      # Examples
      #
      #  # given: settings.public_folder/js/hello.js
      #
      #  js('hello')
      #  # => "
      #  #  <script type='text/javascript'>
      #  #  //<![CDATA[
      #  #    alert("hello, world")
      #  #  //]]>
      #  #  </script>"
      #
      # Returns the HTML String
      def js(*files)
        files.inject('') do |string, filename|
          filename = File.join('/js', filename) + '.js'
          string + %{
            <script type='text/javascript'>
            //<![CDATA[
              #{slurp(filename)}
            //]]>
            </script>
          }
        end
      end

      # Public: create css markup with file references replaced by data-urls
      #
      # files - one or many file names assuming settings.public_folder/css/ is the root
      #
      # Examples
      #
      #   # given: settings.public_folder/css/invoice.css
      #
      #   css('invoice')
      #   # => "
      #   # <style>
      #   #   h1{background:url(data:image/png;base64;DEADBEEF)}
      #   # </style>"
      #
      # Returns the HTML String
      def css(*files)
        files.inject('') do |string, filename|
          filename = File.join('/css', filename) + '.css'
          string + "<style>\n#{inject_data_urls(slurp(filename))}\n</style>"
        end
      end

      private
      def inject_data_urls(css_text)
        css_text.gsub(/url\('\/[^\)]+\)/) do |url|
          filename = url.sub(/^url\(["']*/,'').sub(/["']*\)$/,'')
          data = Base64.encode64(slurp(filename)).gsub(/\n/, '')
          if filename =~ /font/
            "url(data:font/opentype;base64,#{data})"
          else
            type = File.extname(filename)[1..-1]
            "url(data:image/#{type};base64,#{data})"
          end
        end
      end

      def slurp(file)
        File.read(File.join(settings.public_folder, file))
      end
    end
  end
end


text:
import * as React from 'react';
import { Router } from 'react-router';
import { mount } from 'enzyme';
import { createMemoryHistory } from 'history';

import { CohortBuilderApi, CohortsApi } from 'generated/fetch';

import {
  cohortsApi,
  registerApiClient,
} from 'app/services/swagger-fetch-clients';
import { currentWorkspaceStore } from 'app/utils/navigation';
import { cdrVersionStore, serverConfigStore } from 'app/utils/stores';

import defaultServerConfig from 'testing/default-server-config';
import { waitOneTickAndUpdate } from 'testing/react-test-helpers';
import { cdrVersionTiersResponse } from 'testing/stubs/cdr-versions-api-stub';
import { CohortBuilderServiceStub } from 'testing/stubs/cohort-builder-service-stub';
import { CohortsApiStub } from 'testing/stubs/cohorts-api-stub';
import { workspaceDataStub } from 'testing/stubs/workspaces';

import { CohortPage } from './cohort-page.component';

describe('CohortPage', () => {
  let history;

  beforeEach(() => {
    currentWorkspaceStore.next(workspaceDataStub);
    cdrVersionStore.set(cdrVersionTiersResponse);
    serverConfigStore.set({ config: defaultServerConfig });
    registerApiClient(CohortBuilderApi, new CohortBuilderServiceStub());
    registerApiClient(CohortsApi, new CohortsApiStub());
    history = createMemoryHistory();
  });

  const component = () => {
    return mount(
      <Router history={history}>
        <CohortPage
          setCohortChanged={() => {}}
          setShowWarningModal={() => {}}
          setUpdatingCohort={() => {}}
          hideSpinner={() => {}}
          showSpinner={() => {}}
        />
      </Router>
    );
  };

  it('should render', () => {
    const wrapper = component();
    expect(wrapper).toBeTruthy();
  });

  it('should render one search group for each includes/excludes item', async () => {
    const mockGetCohort = jest.spyOn(cohortsApi(), 'getCohort');
    const { id, namespace } = workspaceDataStub;
    const wrapper = component();
    await waitOneTickAndUpdate(wrapper);
    expect(mockGetCohort).toHaveBeenCalledTimes(0);
    expect(wrapper.find('[data-test-id="includes-search-group"]').length).toBe(
      0
    );
    expect(wrapper.find('[data-test-id="excludes-search-group"]').length).toBe(
      0
    );

    // Call cohort with 2 includes groups
    history.push('?cohortId=1');
    await waitOneTickAndUpdate(wrapper);
    expect(mockGetCohort).toHaveBeenCalledWith(namespace, id, 1);
    expect(wrapper.find('[data-test-id="includes-search-group"]').length).toBe(
      2
    );
    expect(wrapper.find('[data-test-id="excludes-search-group"]').length).toBe(
      0
    );

    // Call cohort with 2 includes groups and one excludes group
    history.push('?cohortId=2');
    await waitOneTickAndUpdate(wrapper);
    expect(mockGetCohort).toHaveBeenCalledWith(namespace, id, 2);
    expect(wrapper.find('[data-test-id="includes-search-group"]').length).toBe(
      2
    );
    expect(wrapper.find('[data-test-id="excludes-search-group"]').length).toBe(
      1
    );
  });
});


text:
'''
filedesc: helper script to launch GameServer
'''

from config import NO_GEVENT_MONKEYPATCH

if not NO_GEVENT_MONKEYPATCH:
    import psycogreen.gevent
    psycogreen.gevent.patch_psycopg()
    import gevent.monkey
    gevent.monkey.patch_all()

from noodles.app import startapp
import sys

if __name__ == '__main__':
    bindhost = len(sys.argv)>1 and sys.argv[1] or '0.0.0.0'
    print('binding on %s'%str(bindhost))
    startapp(host=bindhost)


text:
<?php

namespace Dez\Template\Core;

use Dez\Template\TemplateException;

/**
 * Class Directory
 * @package Dez\Template\Core
 */
class Directory
{

    /**
     * @var string
     */
    protected $path;

    /**
     * Directory constructor.
     * @param $path
     */
    public function __construct($path)
    {
        $this->setPath($path);
    }

    /**
     * @return mixed
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * @param mixed $path
     * @return $this
     * @throws TemplateException
     */
    public function setPath($path)
    {
        if (!is_dir($path)) {
            throw new TemplateException('Directory path [:path] not valid', ['path' => $path]);
        }

        $this->path = $path;

        return $this;
    }

}


text:
<?php

/* SonataAdminBundle:CRUD:base_list_field.html.twig */
class __TwigTemplate_2d1ce9feb2d9251f72f7cbada6775b39bdfbae4d4a503c84ac54ae2fb0595d11 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
            'field' => array($this, 'block_field'),
            'field_span_attributes' => array($this, 'block_field_span_attributes'),
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 11
        echo "
env, $this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "type", array()), "html", null, true);
        echo "\" objectId=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "id", array(0 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))), "method"), "html", null, true);
        echo "\">
    ";
        // line 13
        $context["route"] = (($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : null), "options", array(), "any", false, true), "route", array(), "any", false, true), "name", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : null), "options", array(), "any", false, true), "route", array(), "any", false, true), "name", array()), null)) : (null));
        // line 14
        echo "    ";
        $context["action"] = ((((isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")) == "show")) ? ("VIEW") : (twig_upper_filter($this->env, (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")))));
        // line 15
        echo "
    ";
        // line 16
        if ((((($this->getAttribute($this->getAttribute(        // line 17
(isset($context["field_description"]) ? $context["field_description"] : null), "options", array(), "any", false, true), "identifier", array(), "any", true, true) &&         // line 18
(isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"))) &&         // line 19
(isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"))) && $this->getAttribute(        // line 20
(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "hasRoute", array(0 => (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"))), "method")) && $this->getAttribute(        // line 21
(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "isGranted", array(0 => (isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")), 1 => ((twig_in_filter((isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")), array(0 => "VIEW", 1 => "EDIT"))) ? ((isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))) : (null))), "method"))) {
            // line 23
            echo "        env, $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "generateObjectUrl", array(0 => (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")), 1 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), 2 => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "options", array()), "route", array()), "parameters", array())), "method"), "html", null, true);
            echo "\">";
            // line 24
            $this->displayBlock('field', $context, $blocks);
            // line 25
            echo "
    ";
        } else {
            // line 27
            echo "        ";
            $context["isEditable"] = (($this->getAttribute($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : null), "options", array(), "any", false, true), "editable", array(), "any", true, true) && $this->getAttribute($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "options", array()), "editable", array())) && $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "isGranted", array(0 => "EDIT", 1 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))), "method"));
            // line 28
            echo "        ";
            $context["xEditableType"] = $this->env->getExtension('sonata_admin')->getXEditableType($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "type", array()));
            // line 29
            echo "
        ";
            // line 30
            if (((isset($context["isEditable"]) ? $context["isEditable"] : $this->getContext($context, "isEditable")) && (isset($context["xEditableType"]) ? $context["xEditableType"] : $this->getContext($context, "xEditableType")))) {
                // line 31
                echo "            ";
                $context["url"] = $this->env->getExtension('routing')->getPath("sonata_admin_set_object_field_value", array("context" => "list", "field" => $this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "name", array()), "objectId" => $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "id", array(0 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))), "method"), "code" => $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "code", array(0 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))), "method")));
                // line 32
                echo "            displayBlock('field_span_attributes', $context, $blocks);
                echo ">
                ";
                // line 33
                $this->displayBlock("field", $context, $blocks);
                echo "

        ";
            } else {
                // line 36
                echo "            ";
                $this->displayBlock("field", $context, $blocks);
                echo "
        ";
            }
            // line 38
            echo "    ";
        }
        // line 39
        echo "
";
    }

    // line 24
    public function block_field($context, array $blocks = array())
    {
        echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
    }

    // line 32
    public function block_field_span_attributes($context, array $blocks = array())
    {
        echo "class=\"x-editable\" data-type=\"";
        echo twig_escape_filter($this->env, (isset($context["xEditableType"]) ? $context["xEditableType"] : $this->getContext($context, "xEditableType")), "html", null, true);
        echo "\" data-value=\"";
        echo twig_escape_filter($this->env, (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")), "html", null, true);
        echo "\" data-title=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "label", array()), array(), $this->getAttribute((isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description")), "translationDomain", array())), "html", null, true);
        echo "\" data-pk=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "id", array(0 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))), "method"), "html", null, true);
        echo "\" data-url=\"";
        echo twig_escape_filter($this->env, (isset($context["url"]) ? $context["url"] : $this->getContext($context, "url")), "html", null, true);
        echo "\" ";
    }

    public function getTemplateName()
    {
        return "SonataAdminBundle:CRUD:base_list_field.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  100 => 32,  94 => 24,  89 => 39,  86 => 38,  80 => 36,  74 => 33,  69 => 32,  66 => 31,  64 => 30,  61 => 29,  58 => 28,  55 => 27,  51 => 25,  49 => 24,  45 => 23,  43 => 21,  42 => 20,  41 => 19,  40 => 18,  39 => 17,  38 => 16,  35 => 15,  32 => 14,  30 => 13,  24 => 12,  21 => 11,);
    }
}
/* {#*/
/* */
/* This file is part of the Sonata package.*/
/* */
/* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>*/
/* */
/* For the full copyright and license information, please view the LICENSE*/
/* file that was distributed with this source code.*/
/* */
/* #}*/
/* */
/* */
/*     {% set route = field_description.options.route.name|default(null) %}*/
/*     {% set action = route == 'show' ? 'VIEW' : route|upper %}*/
/* */
/*     {% if*/
/*         field_description.options.identifier is defined*/
/*         and route*/
/*         and action*/
/*         and admin.hasRoute(route)*/
/*         and admin.isGranted(action, action in ['VIEW', 'EDIT'] ? object : null)*/
/*     %}*/
/*         */
/*             {%- block field %}{{ value }}{% endblock -%}*/
/*         */
/*     {% else %}*/
/*         {% set isEditable = field_description.options.editable is defined and field_description.options.editable and admin.isGranted('EDIT', object) %}*/
/*         {% set xEditableType = field_description.type|sonata_xeditable_type %}*/
/* */
/*         {% if isEditable and xEditableType %}*/
/*             {% set url = path('sonata_admin_set_object_field_value', { 'context': 'list', 'field': field_description.name, 'objectId': admin.id(object), 'code': admin.code(object) })  %}*/
/*             */
/*                 {{ block('field') }}*/
/*             */
/*         {% else %}*/
/*             {{ block('field') }}*/
/*         {% endif %}*/
/*     {% endif %}*/
/* 	*/
/* */


text:
package biz.paluch.spinach.output;

import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;

import rx.Subscriber;
import biz.paluch.spinach.api.Job;

import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;

/**
 * @author Mark Paluch
 */
public class JobListOutput<K, V> extends CommandOutput<K, V, List<Job<K, V>>> implements SupportsObservables {

    private K defaultQueue;
    private K queue;
    private String id;
    private V body;
    private Subscriber<Object> subscriber;

    public JobListOutput(RedisCodec<K, V> codec) {
        super(codec, new ArrayList<Job<K, V>>());
    }

    public JobListOutput(RedisCodec<K, V> codec, K defaultQueue) {
        super(codec, new ArrayList<Job<K, V>>());
        this.defaultQueue = defaultQueue;
    }

    @Override
    public void set(ByteBuffer bytes) {

        if (queue == null) {
            if (defaultQueue != null) {
                queue = defaultQueue;
            } else {
                queue = codec.decodeKey(bytes);
                return;
            }
        }

        if (id == null) {
            id = decodeAscii(bytes);
            return;
        }

        body = codec.decodeValue(bytes);
    }

    @Override
    public void complete(int depth) {

        if (id != null && body != null) {
            Job<K, V> job = new Job<K, V>(queue, id, body);
            if (subscriber != null && !subscriber.isUnsubscribed()) {
                subscriber.onNext(job);
            }

            output.add(job);

            queue = null;
            id = null;
            body = null;
        }

    }

    @Override
    public <T> void setSubscriber(Subscriber<T> subscriber) {
        this.subscriber = (Subscriber<Object>) subscriber;
    }
}


text:
<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "{{%company}}".
 *
 * @property integer $id
 * @property string $name
 * @property string $address
 * @property string $email
 * @property string $phone
 * @property string $id_kel
 */
class Company extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%company}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'email', 'id_kel'], 'required'],
            [['email'], 'email'],
            [['email'], 'unique'],
            [['phone'], 'number'],
            [['address'], 'string'],
            [['name', 'email', 'phone'], 'string', 'max' => 255],
            [['id_kel'], 'string', 'max' => 10],
            [['email'], 'unique']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'name' => Yii::t('app', 'Name'),
            'address' => Yii::t('app', 'Address'),
            'email' => Yii::t('app', 'Email'),
            'phone' => Yii::t('app', 'Phone'),
            'id_kel' => Yii::t('app', 'Kelurahan Name'),
        ];
    }

    /**
     * @inheritdoc
     * @return CompanyQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new CompanyQuery(get_called_class());
    }

    public function getKelurahan()
	{
		return $this->hasOne(Kelurahan::className(), ['id_kel'=>'id_kel']);
	}

}


text:
var siteFns = require('./site-functions.js');
var fs = require('fs');

var allArtists = {};

allArtists.article = function() {
  var html = '' +

    '
' +
    '
' +
    '' +
    '      ' +
    '
' +
    buildScrollSpyNavLIs() +
// '
' +
// '            Artist Name' +
// '
' +
    '
' +
    '      ' +
    '' +
    '
' +
    buildArtistInfoforAllArtists() +
// '
' +
// '
Arist So and So!
' +
// '
This is some information about the artist lorem Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.
' +
// '
' +
    '' +
    '
' +
    '' +
    '' +
    '
' +
    '
';

  return html;

};

function buildScrollSpyNavLIs() {
  var artists = siteFns.getArtistsObj();
  var html = '';

  artists.forEach(function(artist) {
    html += '' +
      '
' +
      ' ' + artist.name + '' +
      '
';
  });
  return html;
}

function buildArtistInfoforAllArtists() {
  var artists = siteFns.getArtistsObj();
  var artistImgPath = 'img/artists/';
  var artworkImgPath = 'img/artwork/';
  var html = '';

  artists.forEach(function(artist) {
    html += '' +
      '
' +
      '
' + artist.name + '
' +
      '  ' +
      '
' +
      artist.bio +
      '
' +
      '
Artwork
' +
      buildArtistArtworkTNs(artist, artworkImgPath) +
      // '      ' +
      // '      ' +
      // '      ' +
      // '      ' +
      // '      ' +
      // '      ' +
      '
' +
      '
' +
      '
';
  });

  return html;
}

function buildArtistArtworkTNs(artist, path) {
  var allFiles = fs.readdirSync('./public/' + path);
  var html = '';

  //filter files for artist and thumbnail version
  var files = [];
  allFiles.filter(function(f) {
    if (f.indexOf(artist.shortname) === -1) return;
    if (f.indexOf('_tn.jpg') != -1) {
      files.push(f);
    }
  });

  //return an empty string and skip this artist if he has no artwork files
  if (typeof files === 'undefined' || files.length < 1) {
    console.log('No artwork for this artist: ', artist.name);
    return '';
  }

  for (var i = 0; i < files.length; i++) {
    var num = i + 1; //images are not 0 indexed
    //turn 5 into 05, etc;
    if (num < 10) {
      num = '0' + num.toString();
    }
    //example markup:
    html += '';
  }

  return html;
}

module.exports = allArtists;


text:
<?php

namespace Ekino\Metric\Writer;

interface WriterInterface
{
    /**
     * Open Stream
     *
     * @return mixed
     */
    function open();

    /**
     * Write data to stream
     *
     * @param $data
     *
     * @return void
     */
    function write($data);

    /**
     * Close Stream
     *
     * @return mixed
     */
    function close();
}


text:
package com.vaadin.tests.components.tabsheet;

import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Notification;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.SelectedTabChangeEvent;
import com.vaadin.ui.TabSheet.SelectedTabChangeListener;

/**
 * TabSheet test in case user selects a tab and on the selection listener the
 * selected tab is changed to another one.
 *
 * This test used to cause nonfunctional TabSheet if the current tab was 1, user
 * selects 5, then the selection listener will revert the selected tab to 1.
 *
 * @since
 * @author Vaadin Ltd
 */
public class TabSelectionRevertedByServer extends AbstractReindeerTestUI {

    @Override
    protected void setup(VaadinRequest request) {

        final TabSheet tabsheet = new TabSheet();
        tabsheet.setWidth("400px");

        Component lastLabel = null;

        for (int i = 1; i <= 5; i++) {
            String caption = "Tab " + i;
            Label label = new Label(caption);
            tabsheet.addTab(label, caption);

            lastLabel = label;
        }

        tabsheet.setSelectedTab(0);

        final Component lastTab = lastLabel;

        tabsheet.addSelectedTabChangeListener(new SelectedTabChangeListener() {

            @Override
            public void selectedTabChange(SelectedTabChangeEvent event) {
                if (tabsheet.getSelectedTab().equals(lastTab)) {

                    // Set focus back to first tab in tabsheet
                    tabsheet.setSelectedTab(0);
                    Notification.show("Focus set back to tab at position 0");
                }
            }
        });

        addComponent(tabsheet);

        addButton("Select Last Tab", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                tabsheet.setSelectedTab(lastTab);
            }
        });
    }

    @Override
    protected String getTestDescription() {
        return "Clicking on Tab 5 will revert to Tab 1. The action is handled on the server side and will set the selected tab to 1 if Tab 5 is selected.";
    }

    @Override
    protected Integer getTicketNumber() {
        return 14710;
    }

}


text:
package camelinaction;

import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.junit.Test;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringOrderRouterWithMulticastTest extends CamelSpringTestSupport {

    @Override
    public void setUp() throws Exception {
        deleteDirectory("activemq-data");
        super.setUp();
    }

    @Override
    protected AbstractXmlApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("camelinaction/SpringOrderRouterWithMulticastTest.xml");
    }

    @Test
    public void testPlacingOrders() throws Exception {
        getMockEndpoint("mock:accounting").expectedMessageCount(1);
        getMockEndpoint("mock:production").expectedMessageCount(1);
        assertMockEndpointsSatisfied();
    }
}


text:
			©2015 - 2016 SlIKeR-Dev & Schakimacky
			The page load for 0.002.


text:
/* LIB */

const radial = require('../../radial');
const authenticate = require('./authenticate');

/* MODULES */

const xmlConvert = require('xml-js');

/* CONSTRUCTOR */

(function () {

  var PaymentSettlementStatus = {};

  /* PRIVATE VARIABLES */

  /* PUBLIC VARIABLES */

  /* PUBLIC FUNCTIONS */

  PaymentSettlementStatus.parse = function (req, fn) {
    authenticate('paymentSettlementStatus', req, function (err) {
      if (err) {
        return fn({
          status: 403,
          type: 'Authentication Failed',
          message: err.message
        });
      }

      var body = req.body;
      var reply = body.paymentsettlementstatuslist;

      if (!reply) {
        return fn({
          status: 400,
          type: 'Invalid Parameters',
          message: 'The message body for this endpoint seems to be empty'
        });
      }

      var list = reply.paymentsettlementstatus;

      var replyList = [];
      list.forEach(function (item) {
        var reply = {};

        reply.storeId = item.storeid[0];

        reply.paymentContext = {
          orderId: item.paymentcontextbase ?
            item.paymentcontextbase[0].orderid[0] : item.paymentcontext[0].orderid[0],
        };

        if (item.paymentcontext && item.paymentcontext.paymentaccountuniqueid) {
          reply.paymentContext.paymentAccountUniqueId =
            item.paymentcontext.paymentaccountuniqueid[0]._;
          reply.paymentContext.paymentAccountUniqueIdIsToken =
            item.paymentcontext.paymentaccountuniqueid[0].$.isToken;
        }

        reply.tenderType = item.tendertype[0];
        reply.amount = parseFloat(item.amount[0]._);
        reply.currencyCode = item.amount[0].$.currencyCode;
        reply.settlementType = item.settlementtype[0];
        reply.settlementStatus = item.settlementstatus[0];

        if (item.declinereason) {
          reply.declineReason = item.declinereason[0];
        }

        replyList.push(reply);
      });

      return fn(null, replyList);
    });
  };

  /* NPM EXPORT */

  if (typeof module === 'object' && module.exports) {
    module.exports = PaymentSettlementStatus.parse;
  } else {
    throw new Error('This module only works with NPM in NodeJS environments.');
  }

}());


text:
<?php declare(strict_types=1);

namespace DrdPlus\Tests\Skills\Physical;

use DrdPlus\Codes\Properties\PropertyCode;
use DrdPlus\Tests\Skills\SkillTest;

class PhysicalSkillTest extends SkillTest
{

    protected function getExpectedRelatedPropertyCodes(): array
    {
        return [PropertyCode::STRENGTH, PropertyCode::AGILITY];
    }

}


text:
package com.caul.modules.account.controller;

import cn.easybuild.core.exceptions.BusinessException;
import cn.easybuild.core.utils.DateUtils;
import cn.easybuild.pojo.DataSet;
import com.caul.modules.account.Account;
import com.caul.modules.account.AccountQueryParam;
import com.caul.modules.account.SendState;
import com.caul.modules.account.service.AccountService;
import com.caul.modules.base.AdminBaseController;
import com.caul.sys.view.Grid;
import com.caul.sys.view.GridAdapter;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;

/**
 * Created by BlueDream on 2016-03-23.
 */
@Controller
public class AdminAccountController extends AdminBaseController {

    private static final String MODULE_NAME = "/account";
    private static final String VIEW_PATH = ADMIN_BASE_URI + MODULE_NAME;

    private AccountService accountService;

    @Autowired(required = false)
    public void setAccountService(AccountService accountService) {
        this.accountService = accountService;
    }

    @RequestMapping(value = MODULE_NAME + "/manage")
    public String toManage() {
        return VIEW_PATH + "/accountMgr";
    }

    @RequestMapping(value = MODULE_NAME + "/to-add")
    public String toAdd() {
        checkPermission("您没有增加记录的权限!");
        return VIEW_PATH + "/accountAdd";
    }

    @RequestMapping(value = MODULE_NAME + "/to-edit")
    public String toEdit() {
        checkPermission("您没有修改记录的权限!");
        return VIEW_PATH + "/accountEdit";
    }

    @RequestMapping(value = MODULE_NAME + "/import-clear")
    public String importAndClear() {
        checkPermission("您没有导入和清理记录的权限!");
        return VIEW_PATH + "/accountImportClear";
    }

    @RequestMapping(value = MODULE_NAME + "/list", method = RequestMethod.POST)
    @ResponseBody
    public Grid<Account> list(AccountQueryParam queryParam) {
        boolean flag = checkListPermission(queryParam);
        DataSet<Account> dataSet = new DataSet<>();
        if (flag) {
            dataSet = accountService.queryByParam(queryParam);
        }
        return new GridAdapter<>(dataSet);
    }

    @RequestMapping(value = MODULE_NAME + "/add", method = RequestMethod.POST)
    @ResponseBody
    public JSONObject add(Account account) {
        checkPermission("您没有增加记录的权限!");
        accountService.save(account);
        return jsonWithStandardStatus();
    }

    @RequestMapping(value = MODULE_NAME + "/edit", method = RequestMethod.POST)
    @ResponseBody
    public JSONObject edit(Account account) {
        checkPermission("您没有修改记录的权限!");
        accountService.update(account);
        return jsonWithStandardStatus();
    }

    @RequestMapping(value = MODULE_NAME + "/batch-delete")
    @ResponseBody
    public JSONObject batchDelete(String ids) {
        checkPermission("您没有删除记录的权限!");
        accountService.batchDelete(Arrays.asList(ids.split(",")));
        return jsonWithStandardStatus();
    }

    @RequestMapping(value = MODULE_NAME + "/detail")
    @ResponseBody
    public Account detail(String id) {
        return accountService.getById(id);
    }

    /**
     * 设置为未派送
     *
     * @param ids
     * @return
     */
    @RequestMapping(value = MODULE_NAME + "/set-unsent")
    @ResponseBody
    public JSONObject batchSetUnsent(String ids) {
        checkPermission("您没有设置为'未派送'的权限!");
        accountService.batchUpdate(Arrays.asList(ids.split(",")),
                SendState.Unsent, null);
        return jsonWithStandardStatus();
    }

    /**
     * 设置为已派送
     *
     * @param ids
     * @return
     */
    @RequestMapping(value = MODULE_NAME + "/set-sent")
    @ResponseBody
    public JSONObject batchSetSent(String ids) {
        accountService.batchUpdate(Arrays.asList(ids.split(",")),
                SendState.Sent, null);
        return jsonWithStandardStatus();
    }

    /**
     * 设置为拒绝
     *
     * @param ids
     * @return
     */
    @RequestMapping(value = MODULE_NAME + "/set-rejected")
    @ResponseBody
    public JSONObject batchSetRejected(String ids) {
        accountService.batchUpdate(Arrays.asList(ids.split(",")),
                SendState.Rejected, null);
        return jsonWithStandardStatus();
    }

    /**
     * 设置为套利
     *
     * @param ids
     * @return
     */
    @RequestMapping(value = MODULE_NAME + "/set-arbitrage")
    @ResponseBody
    public JSONObject batchSetArbitrage(String ids) {
        accountService.batchUpdate(Arrays.asList(ids.split(",")),
                SendState.Rejected, true);
        return jsonWithStandardStatus();
    }

    /**
     * 设置为未套利
     *
     * @param ids
     * @return
     */
    @RequestMapping(value = MODULE_NAME + "/set-unarbitrage")
    @ResponseBody
    public JSONObject batchSetUnArbitrage(String ids) {
        checkPermission("您没有设置为'未套利'的权限!");
        accountService.batchUpdate(Arrays.asList(ids.split(",")),
                SendState.Unsent, false);
        return jsonWithStandardStatus();
    }

    @RequestMapping(value = MODULE_NAME + "/import", method = RequestMethod.POST)
    @ResponseBody
    public JSONObject importAccount(MultipartFile file, HttpServletRequest request) {
        try {
            accountService.importAccount(file.getInputStream(), true);
        } catch (Exception e) {
            throw new BusinessException("导入文件失败:" + e.getMessage(), e);
        }
        return jsonWithStandardStatus();
    }

    @RequestMapping(value = MODULE_NAME + "/clear", method = RequestMethod.POST)
    @ResponseBody
    public JSONObject clear(String dateStr, HttpServletRequest request) {
        accountService.clear(DateUtils.getDate(dateStr, "yyyy-MM-dd"));
        return jsonWithStandardStatus();
    }

    /**
     * 检查参数
     *
     * @param queryParam
     * @return
     */
    private boolean checkListPermission(AccountQueryParam queryParam) {
        if (isManager() || !queryParam.isEmpty()) {
            return true;
        }
        return false;
    }
}


text:
namespace gpdxl
{
using namespace gpos;

// fwd declarations
class CDXLTableDescr;
class CXMLSerializer;

//---------------------------------------------------------------------------
//	@class:
//		CDXLPhysicalDynamicBitmapTableScan
//
//	@doc:
//		Class for representing DXL bitmap table scan operators
//
//---------------------------------------------------------------------------
class CDXLPhysicalDynamicBitmapTableScan : public CDXLPhysicalAbstractBitmapScan
{
private:
	// id of partition index structure
	ULONG m_part_index_id;

	// printable partition index id
	ULONG m_part_index_id_printable;

	// private copy ctor
	CDXLPhysicalDynamicBitmapTableScan(
		const CDXLPhysicalDynamicBitmapTableScan &);

public:
	// ctor
	CDXLPhysicalDynamicBitmapTableScan(CMemoryPool *mp,
									   CDXLTableDescr *table_descr,
									   ULONG part_idx_id,
									   ULONG part_idx_id_printable)
		: CDXLPhysicalAbstractBitmapScan(mp, table_descr),
		  m_part_index_id(part_idx_id),
		  m_part_index_id_printable(part_idx_id_printable)
	{
		GPOS_ASSERT(NULL != table_descr);
	}

	// dtor
	virtual ~CDXLPhysicalDynamicBitmapTableScan()
	{
	}

	// operator type
	virtual Edxlopid
	GetDXLOperator() const
	{
		return EdxlopPhysicalDynamicBitmapTableScan;
	}

	// operator name
	virtual const CWStringConst *GetOpNameStr() const;

	// partition index id
	ULONG
	GetPartIndexId() const
	{
		return m_part_index_id;
	}

	// printable partition index id
	ULONG
	GetPartIndexIdPrintable() const
	{
		return m_part_index_id_printable;
	}

	// serialize operator in DXL format
	virtual void SerializeToDXL(CXMLSerializer *xml_serializer,
								const CDXLNode *node) const;

	// conversion function
	static CDXLPhysicalDynamicBitmapTableScan *
	Cast(CDXLOperator *dxl_op)
	{
		GPOS_ASSERT(NULL != dxl_op);
		GPOS_ASSERT(EdxlopPhysicalDynamicBitmapTableScan ==
					dxl_op->GetDXLOperator());

		return dynamic_cast<CDXLPhysicalDynamicBitmapTableScan *>(dxl_op);
	}

};	// class CDXLPhysicalDynamicBitmapTableScan
}  // namespace gpdxl

#endif	// !GPDXL_CDXLPhysicalDynamicBitmapTableScan_H

// EOF


text:
package com.example.cts_raghu_android_test;

import java.util.ArrayList;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.NetworkImageView;

/** Adapter for managing DataModelRow*/
public class DataAdapter extends BaseAdapter{

	private ArrayList<DataModelRow> arrNews ;
	private LayoutInflater lf;
	private ImageLoader imageLoader;

	public DataAdapter(LayoutInflater lf2, ArrayList<DataModelRow> arrNews2,
			ImageLoader imageLoader2) {
		this.lf = lf2;
		this.arrNews = arrNews2;
		this.imageLoader = imageLoader2;
	}

	public void clearAdapter() {
		arrNews.clear();
	}

	@Override
	public int getCount() {
		return arrNews.size();
	}

	@Override
	public Object getItem(int i) {
		return arrNews.get(i);
	}

	@Override
	public long getItemId(int i) {
		return 0;
	}

	@Override
	public View getView(int i, View view, ViewGroup viewGroup) {
		ViewHolder vh ;
		if(view == null){
			vh = new ViewHolder();
			view = lf.inflate(R.layout.row_listview,null);
			vh.tvImage = (NetworkImageView) view.findViewById(R.id.imgImage);
			vh.tvTitle = (TextView) view.findViewById(R.id.txtTitle);
			vh.tvDesc = (TextView) view.findViewById(R.id.txtDesc);
			view.setTag(vh);
		}
		else{
			vh = (ViewHolder) view.getTag();
		}

		//DataModelRow nm = arrNews.get(i);
		DataModelRow nm = (DataModelRow) getItem(i);

		//If Image URI is null then hide corresponding Imageview
		String url = nm.getImageHref();
		if(url!=null)
		{
			vh.tvImage.setVisibility(View.VISIBLE);
			vh.tvImage.setImageUrl(nm.getImageHref(), imageLoader);
			vh.tvImage.setDefaultImageResId(R.drawable.no_image);
			vh.tvImage.setErrorImageResId(R.drawable.error_image1);
		}
		else
		{
			vh.tvImage.setVisibility(View.GONE);
		}
		vh.tvTitle.setText(nm.getTitle());
		vh.tvDesc.setText(nm.getDescription());
		return view;
	}

	//To Hold views in a Listview
	class ViewHolder{
		//This ImageView is Volley Library special ImageView
		NetworkImageView tvImage;
		TextView tvTitle;
		TextView tvDesc;
	}
}


text:
body {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  background-color: #F3EADC;
}

.accordion{
 background-color: #B1662D;
 color: #F3EADC;

}

p {
  font-size: 20px;
}
p.small {
  font-size: 16px;
}
a,
a:hover,
a:focus,
a:active,
a.active {
  color: #B1662D;
  outline: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}
hr.star-light,
hr.star-primary {
  padding: 0;
  border: none;
  border-top: solid 5px;
  text-align: center;
  max-width: 250px;
  margin: 25px auto 30px;
}
hr.star-light:after,
hr.star-primary:after {
  content: "\f005";
  font-family: FontAwesome;
  display: inline-block;
  position: relative;
  top: -0.8em;
  font-size: 2em;
  padding: 0 0.25em;
}
hr.star-light {
  border-color: #F3EADC;
}
hr.star-light:after {
  background-color: #B1662D;
  color: #F3EADC;
}
hr.star-primary {
  border-color: #272C39;
}
hr.star-primary:after {
  background-color: #F3EADC;
  color: #272C39;
}
.img-centered {
  margin: 0 auto;
}
header {
  text-align: center;
  background: #6B2D31;
  color: #F3EADC;
}
header .container {
  padding-top: 100px;
  padding-bottom: 50px;
}
header img {
  display: block;
  margin: 0 auto 20px;
}
header .intro-text .name {
  display: block;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2em;
}
header .intro-text .skills {
  font-size: 1.25em;
  font-weight: 300;
}
@media (min-width: 768px) {
  header .container {
    padding-top: 200px;
    padding-bottom: 100px;
  }
  header .intro-text .name {
    font-size: 4.75em;
  }
  header .intro-text .skills {
    font-size: 1.75em;
  }
}
.navbar-custom {
  background: #272C39;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
}
.navbar-custom a:focus {
  outline: none;
}
.navbar-custom .navbar-brand {
  color: #F3EADC;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-brand:active,
.navbar-custom .navbar-brand.active {
  color: #B1662D;
}
.navbar-custom .navbar-nav {
  letter-spacing: 1px;
}
.navbar-custom .navbar-nav li a {
  color: #F3EADC;
}
.navbar-custom .navbar-nav li a:hover {
  color: #B1662D;
  outline: none;
}
.navbar-custom .navbar-nav li a:focus,
.navbar-custom .navbar-nav li a:active {
  color: #F3EADC;
}
.navbar-custom .navbar-nav li.active a {
  color: #F3EADC;
  background: #B1662D;
}
.navbar-custom .navbar-nav li.active a:hover,
.navbar-custom .navbar-nav li.active a:focus,
.navbar-custom .navbar-nav li.active a:active {
  color: #F3EADC;
  background: #B1662D;
}
.navbar-custom .navbar-toggle {
  color: #F3EADC;
  text-transform: uppercase;
  font-size: 10px;
  border-color: #F3EADC;
}
.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
  background-color: #B1662D;
  color: #F3EADC;
  border-color: #6B2D31;
}
@media (min-width: 768px) {
  .navbar-custom {
    padding: 25px 0;
    -webkit-transition: padding 0.3s;
    -moz-transition: padding 0.3s;
    transition: padding 0.3s;
  }
  .navbar-custom .navbar-brand {
    font-size: 2em;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
  }
  .navbar-custom.affix {
    padding: 10px 0;
  }
  .navbar-custom.affix .navbar-brand {
    font-size: 1.5em;
  }
}
section {
  padding: 100px 0;
}
section h2 {
  margin: 0;
  font-size: 3em;
}
section.success {
  background: #6B2D31;
  color: #F3EADC;
}
@media (max-width: 767px) {
  section {
    padding: 75px 0;
  }
  section.first {
    padding-top: 75px;
  }
}
#portfolio .portfolio-item {
  margin: 0 0 15px;
  right: 0;
}
#portfolio .portfolio-item .portfolio-link {
  display: block;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
#portfolio .portfolio-item .portfolio-link .caption {
  background: #B1662D;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all ease 0.5s;
  -webkit-transition: all ease 0.5s;
  -moz-transition: all ease 0.5s;
}
#portfolio .portfolio-item .portfolio-link .caption:hover {
  opacity: 1;
}
#portfolio .portfolio-item .portfolio-link .caption .caption-content {
  position: absolute;
  width: 100%;
  height: 20px;
  font-size: 20px;
  text-align: center;
  top: 50%;
  margin-top: -12px;
  color: #F3EADC;
}
#portfolio .portfolio-item .portfolio-link .caption .caption-content i {
  margin-top: -12px;
}
#portfolio .portfolio-item .portfolio-link .caption .caption-content h3,
#portfolio .portfolio-item .portfolio-link .caption .caption-content h4 {
  margin: 0;
}
#portfolio * {
  z-index: 2;
}
@media (min-width: 767px) {
  #portfolio .portfolio-item {
    margin: 0 0 30px;
  }
}
.floating-label-form-group {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eeeeee;
}
.floating-label-form-group input,
.floating-label-form-group textarea {
  z-index: 1;
  position: relative;
  padding-right: 0;
  padding-left: 0;
  border: none;
  border-radius: 0;
  font-size: 1.5em;
  background: none;
  box-shadow: none !important;
  resize: none;
}
.floating-label-form-group label {
  display: block;
  z-index: 0;
  position: relative;
  top: 2em;
  margin: 0;
  font-size: 0.85em;
  line-height: 1.764705882em;
  vertical-align: middle;
  vertical-align: baseline;
  opacity: 0;
  -webkit-transition: top 0.3s ease,opacity 0.3s ease;
  -moz-transition: top 0.3s ease,opacity 0.3s ease;
  -ms-transition: top 0.3s ease,opacity 0.3s ease;
  transition: top 0.3s ease,opacity 0.3s ease;
}
.floating-label-form-group:not(:first-child) {
  padding-left: 14px;
  border-left: 1px solid #eeeeee;
}
.floating-label-form-group-with-value label {
  top: 0;
  opacity: 1;
}
.floating-label-form-group-with-focus label {
  color: #6B2D31;
}
form .row:first-child .floating-label-form-group {
  border-top: 1px solid #eeeeee;
}
footer {
  color: #F3EADC;
}
footer h3 {
  margin-bottom: 30px;
}
footer .footer-above {
  padding-top: 50px;
  background-color: #272C39;
}
footer .footer-col {
  margin-bottom: 50px;
}
footer .footer-below {
  padding: 25px 0;
  background-color: #233140;
}
.btn-outline {
  color: #F3EADC;
  font-size: 20px;
  border: solid 2px #F3EADC;
  background: transparent;
  transition: all 0.3s ease-in-out;
  margin-top: 15px;
}
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active,
.btn-outline.active {
  color: #6B2D31;
  background: #F3EADC;
  border: solid 2px #F3EADC;
}
.btn-primary {
  color: #F3EADC;
  background-color: #272C39;
  border-color: #272C39;
  font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  color: #F3EADC;
  background-color: #1a242f;
  border-color: #161f29;
}
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: #272C39;
  border-color: #272C39;
}
.btn-primary .badge {
  color: #272C39;
  background-color: #F3EADC;
}
.btn-success {
  color: #F3EADC;
  background-color: #6B2D31;
  border-color: #6B2D31;
  font-weight: 700;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  color: #F3EADC;
  background-color: #128f76;
  border-color: #11866f;
}
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  background-image: none;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
  background-color: #6B2D31;
  border-color: #6B2D31;
}
.btn-success .badge {
  color: #6B2D31;
  background-color: #F3EADC;
}
.btn-social {
  display: inline-block;
  height: 50px;
  width: 50px;
  border: 2px solid #F3EADC;
  border-radius: 100%;
  text-align: center;
  font-size: 20px;
  line-height: 45px;
}
.btn:focus,
.btn:active,
.btn.active {
  outline: none;
}
.scroll-top {
  position: fixed;
  right: 2%;
  bottom: 2%;
  width: 50px;
  height: 50px;
  z-index: 1049;
}
.scroll-top .btn {
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  line-height: 28px;
}
.scroll-top .btn:focus {
  outline: none;
}
.portfolio-modal .modal-content {
  border-radius: 0;
  background-clip: border-box;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: none;
  min-height: 100%;
  padding: 100px 0;
  text-align: center;
}
.portfolio-modal .modal-content h2 {
  margin: 0;
  font-size: 3em;
}
.portfolio-modal .modal-content img {
  margin-bottom: 30px;
}
.portfolio-modal .modal-content .item-details {
  margin: 30px 0;
}
.portfolio-modal .close-modal {
  position: absolute;
  width: 75px;
  height: 75px;
  background-color: transparent;
  top: 25px;
  right: 25px;
  cursor: pointer;
}
.portfolio-modal .close-modal:hover {
  opacity: 0.3;
}
.portfolio-modal .close-modal .lr {
  height: 75px;
  width: 1px;
  margin-left: 35px;
  background-color: #272C39;
  transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  /* IE 9 */
  -webkit-transform: rotate(45deg);
  /* Safari and Chrome */
  z-index: 1051;
}
.portfolio-modal .close-modal .lr .rl {
  height: 75px;
  width: 1px;
  background-color: #272C39;
  transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  /* IE 9 */
  -webkit-transform: rotate(90deg);
  /* Safari and Chrome */
  z-index: 1052;
}
.portfolio-modal .modal-backdrop {
  opacity: 0;
  display: none;
}


text:
namespace flutter {
namespace testing {

class ShellTestPlatformViewVulkan : public ShellTestPlatformView {
 public:
  ShellTestPlatformViewVulkan(PlatformView::Delegate& delegate,
                              TaskRunners task_runners,
                              std::shared_ptr<ShellTestVsyncClock> vsync_clock,
                              CreateVsyncWaiter create_vsync_waiter,
                              std::shared_ptr<ShellTestExternalViewEmbedder>
                                  shell_test_external_view_embedder);

  ~ShellTestPlatformViewVulkan() override;

  void SimulateVSync() override;

 private:
  class OffScreenSurface : public flutter::Surface {
   public:
    OffScreenSurface(fml::RefPtr<vulkan::VulkanProcTable> vk,
                     std::shared_ptr<ShellTestExternalViewEmbedder>
                         shell_test_external_view_embedder);

    ~OffScreenSurface() override;

    // |Surface|
    bool IsValid() override;

    // |Surface|
    std::unique_ptr<SurfaceFrame> AcquireFrame(const SkISize& size) override;

    SkMatrix GetRootTransformation() const override;

    // |Surface|
    GrDirectContext* GetContext() override;

   private:
    bool valid_;
    fml::RefPtr<vulkan::VulkanProcTable> vk_;
    std::shared_ptr<ShellTestExternalViewEmbedder>
        shell_test_external_view_embedder_;
    std::unique_ptr<vulkan::VulkanApplication> application_;
    std::unique_ptr<vulkan::VulkanDevice> logical_device_;
    sk_sp<GrDirectContext> context_;

    bool CreateSkiaGrContext();
    bool CreateSkiaBackendContext(GrVkBackendContext* context);

    FML_DISALLOW_COPY_AND_ASSIGN(OffScreenSurface);
  };

  CreateVsyncWaiter create_vsync_waiter_;

  std::shared_ptr<ShellTestVsyncClock> vsync_clock_;

  fml::RefPtr<vulkan::VulkanProcTable> proc_table_;

  std::shared_ptr<ShellTestExternalViewEmbedder>
      shell_test_external_view_embedder_;

  // |PlatformView|
  std::unique_ptr<Surface> CreateRenderingSurface() override;

  // |PlatformView|
  std::shared_ptr<ExternalViewEmbedder> CreateExternalViewEmbedder() override;

  // |PlatformView|
  std::unique_ptr<VsyncWaiter> CreateVSyncWaiter() override;

  // |PlatformView|
  PointerDataDispatcherMaker GetDispatcherMaker() override;

  FML_DISALLOW_COPY_AND_ASSIGN(ShellTestPlatformViewVulkan);
};

}  // namespace testing
}  // namespace flutter

#endif  // FLUTTER_SHELL_COMMON_SHELL_TEST_PLATFORM_VIEW_VULKAN_H_


text:
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotsitewise/model/TimeSeriesSummary.h>
#include <utility>

namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils
{
namespace Json
{
  class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTSiteWise
{
namespace Model
{
  class AWS_IOTSITEWISE_API ListTimeSeriesResult
  {
  public:
    ListTimeSeriesResult();
    ListTimeSeriesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
    ListTimeSeriesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

    /**
     *
One or more time series summaries to list.

     */
    inline const Aws::Vector<TimeSeriesSummary>& GetTimeSeriesSummaries() const{ return m_timeSeriesSummaries; }

    /**
     *
One or more time series summaries to list.

     */
    inline void SetTimeSeriesSummaries(const Aws::Vector<TimeSeriesSummary>& value) { m_timeSeriesSummaries = value; }

    /**
     *
One or more time series summaries to list.

     */
    inline void SetTimeSeriesSummaries(Aws::Vector<TimeSeriesSummary>&& value) { m_timeSeriesSummaries = std::move(value); }

    /**
     *
One or more time series summaries to list.

     */
    inline ListTimeSeriesResult& WithTimeSeriesSummaries(const Aws::Vector<TimeSeriesSummary>& value) { SetTimeSeriesSummaries(value); return *this;}

    /**
     *
One or more time series summaries to list.

     */
    inline ListTimeSeriesResult& WithTimeSeriesSummaries(Aws::Vector<TimeSeriesSummary>&& value) { SetTimeSeriesSummaries(std::move(value)); return *this;}

    /**
     *
One or more time series summaries to list.

     */
    inline ListTimeSeriesResult& AddTimeSeriesSummaries(const TimeSeriesSummary& value) { m_timeSeriesSummaries.push_back(value); return *this; }

    /**
     *
One or more time series summaries to list.

     */
    inline ListTimeSeriesResult& AddTimeSeriesSummaries(TimeSeriesSummary&& value) { m_timeSeriesSummaries.push_back(std::move(value)); return *this; }

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline const Aws::String& GetNextToken() const{ return m_nextToken; }

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline void SetNextToken(const char* value) { m_nextToken.assign(value); }

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline ListTimeSeriesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline ListTimeSeriesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}

    /**
     *
The token for the next set of results, or null if there are no additional
     * results.

     */
    inline ListTimeSeriesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}

  private:

    Aws::Vector<TimeSeriesSummary> m_timeSeriesSummaries;

    Aws::String m_nextToken;
  };

} // namespace Model
} // namespace IoTSiteWise
} // namespace Aws


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Phoma strelitziae var. strelitziae Thüm.

### Remarks
null


text:
package com.twu.biblioteca;

import java.util.ArrayList;

public class BibliotecaApp {

    public static void main(String[] args) {

        Library library = new Library();

        library.setUpLibrary();

        User user = new User();

        user.userProfile("Tanya B", "tanya@gmail.com", "0450111222");
        user.setUserLogin("111-2222", "chicken10");

        System.out.println("Hello, welcome to our library!");

        InputReader inputReader = new InputReader();

        String userInput = "";
        String userLibNum = "";
        String userPass = "";

        while (!userInput.equals("quit")) {

            while (!user.checkUserLogin(userLibNum, userPass)) {
                System.out.println("Please, login to library with your library number.");
                userLibNum = inputReader.getUserInput("Your library number: ");
                userPass = inputReader.getUserInput("Your password: ");
                user.getUserLogin();
                System.out.println(user.checkUserLogin(userLibNum, userPass));
            }

            userInput = inputReader.getUserInput("Please, choose an action you would like to take: list, checkout, return or quit: ");

            if (userInput.equals("list")) {

                ArrayList<LibItem> availableList;
                availableList = library.listItems();

                for(LibItem oneLibItem : availableList){
                    System.out.println("'" + oneLibItem.getTitle() + "' by " + oneLibItem.getAuthor() + ", " + oneLibItem.getYear());
                }

            } else if (userInput.equals("checkout")) {

                String userTitle = inputReader.getUserInput("Please, enter title: ");

                if (library.checkoutItem(library.findItem(userTitle))) {
                    System.out.println("Thank you, enjoy '" + userTitle + "'");
                } else {
                    System.out.println("Sorry, the item is not available, select a different item or correct the spelling.");
                }
            } else if (userInput.equals("return")) {
                String userTitle = inputReader.getUserInput("Please, enter title: ");

                if (library.returnItem(library.findItem(userTitle))) {
                    System.out.println("Thank you for returning '" + userTitle + "'");
                } else {
                    System.out.println("Sorry, that is not a valid item to return, try to check on your spelling.");
                }
            } else if (userInput.equals("quit")) {

                System.out.println("Thank you for visiting our library. Good bye!");

            } else {
                System.out.println("Please, choose valid option.");
            }
        }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Xml.Serialization;

namespace BtrieveWrapper.Orm.Models.Generator.Gui
{
    [Serializable]
    public class Settings : DependencyObject
    {
        public Settings() {
            this.ImportFilePathCollection = new ObservableCollection<string>();
        }

        public static readonly DependencyProperty ImportFilePathsProperty = DependencyProperty.Register(
            "ImportFilePaths", typeof(string[]), typeof(Settings));

        [XmlArrayItem]
        public string[] ImportFilePaths {
            get { return this.ImportFilePathCollection.ToArray(); }
            set {
                this.ImportFilePathCollection.Clear();
                foreach (var item in value) {
                    this.ImportFilePathCollection.Add(item);
                }
            }
        }

        [XmlIgnore]
        public ObservableCollection<string> ImportFilePathCollection { get; set; }
    }
}


text:
package apple.intentsui.protocol;

import org.moe.natj.general.ann.Generated;
import org.moe.natj.general.ann.Library;
import org.moe.natj.general.ann.Runtime;
import org.moe.natj.objc.ObjCRuntime;
import org.moe.natj.objc.ann.IsOptional;
import org.moe.natj.objc.ann.ObjCProtocolName;
import org.moe.natj.objc.ann.Selector;

@Generated
@Library("IntentsUI")
@Runtime(ObjCRuntime.class)
@ObjCProtocolName("INUIHostedViewSiriProviding")
public interface INUIHostedViewSiriProviding {
    @Generated
    @IsOptional
    @Selector("displaysMap")
    default boolean displaysMap() {
        throw new java.lang.UnsupportedOperationException();
    }

    @Generated
    @IsOptional
    @Selector("displaysMessage")
    default boolean displaysMessage() {
        throw new java.lang.UnsupportedOperationException();
    }

    @Generated
    @IsOptional
    @Selector("displaysPaymentTransaction")
    default boolean displaysPaymentTransaction() {
        throw new java.lang.UnsupportedOperationException();
    }
}


text:
SceneLoader::SceneLoader(std::string filename) {
	load(filename);
}

bool SceneLoader::load(std::string scene_file) {
	std::ifstream textfile(scene_file);
	if (!textfile) {
		std::cout << "Cannot find " << scene_file << std::endl;
		return false;
	}

	std::string line; //temp variable
	while (std::getline(textfile, line)) {
		if (line == "camera") {
			std::getline(textfile, line);
			setCameraPos(line);
			std::getline(textfile, line);
			setCameraFov(line);
			std::getline(textfile, line);
			setCameraF(line);
			std::getline(textfile, line);
			setCameraAspect(line);

			camera.reininitalize(camera_pos,camera_fov,camera_f,camera_a);
		}
		else if (line == "light") {
			std::getline(textfile, line);
			setLightPos(line);
			std::getline(textfile, line);
			setLightCol(line);

			Light newlight(light_pos,light_col);
			lights.emplace_back(std::move(newlight));
		}
		else if (line == "sphere") {
			std::getline(textfile, line);
			setSpherePos(line);
			std::getline(textfile, line);
			setSphereRad(line);
			std::getline(textfile, line);
			setSphereAmb(line);
			std::getline(textfile, line);
			setSphereDif(line);
			std::getline(textfile, line);
			setSphereSpe(line);
			std::getline(textfile, line);
			setSphereShi(line);

			Sphere newsphere(sphere_pos, sphere_rad,sphere_amb,sphere_dif,sphere_spe,sphere_shi);
			spheres.emplace_back(std::move(newsphere));
		}
		else if (line == "model") {
			std::getline(textfile, line);
			setModelName(line);
			std::getline(textfile, line);
			setModelAmb(line);
			std::getline(textfile, line);
			setModelDif(line);
			std::getline(textfile, line);
			setModelSpe(line);
			std::getline(textfile, line);
			setModelShi(line);

			Model newmodel(model_file, model_amb, model_dif, model_spe, model_shi);
			models.emplace_back(std::move(newmodel));
		}
		else if (line == "triangle") {//
			std::getline(textfile, line);
			setTriangleV1(line);
			std::getline(textfile, line);
			setTriangleV2(line);
			std::getline(textfile, line);
			setTriangleV3(line);
			std::getline(textfile, line);
			setTriangleAmb(line);
			std::getline(textfile, line);
			setTriangleDif(line);
			std::getline(textfile, line);
			setTriangleSpe(line);
			std::getline(textfile, line);
			setTriangleShi(line);

			Triangle newtriangle(triangle_v1, triangle_v2, triangle_v3, triangle_amb, triangle_dif, triangle_spe, triangle_shi);
			triangles.emplace_back(std::move(newtriangle));
		}
		else {
			std::cout << "The following line was ignored: " << line << std::endl;
		}
	}

	textfile.close();
	return true;
}//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//convert vertices to triangles
void SceneLoader::addOBJ(std::vector<glm::vec3> vertices, Model model) {
	for (int i = 0; i + 2 < vertices.size(); i += 3) {
		Triangle newtriangle(vertices.at(i), vertices.at(i + 1), vertices.at(i + 2), model.ambient(), model.diffuse(), model.specular(), model.shininess());
		triangles.emplace_back(newtriangle);
	}
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//split string
std::vector<std::string> SceneLoader::split(std::string s, std::string delimiter) {
	//using method from https://stackoverflow.com/questions/14265581/parse-split-a-string-in-c-using-string-delimiter-standard-c
	size_t pos = 0;
	std::vector<std::string> result;
	while ((pos = s.find(delimiter)) != std::string::npos) {
		result.emplace_back(s.substr(0, pos));
		s.erase(0, pos + delimiter.length());
	}
	result.emplace_back(s);
	return result;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//camera functions
void  SceneLoader::setCameraPos(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	camera_pos = glm::vec3(x, y, z);
	return;
}
void  SceneLoader::setCameraFov(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	camera_fov = std::stod(str_values[1]);
	return;

}
void SceneLoader::setCameraF(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	camera_f = std::stod(str_values[1]);
	return;
}
void SceneLoader::setCameraAspect(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	camera_a = std::stod(str_values[1]);
	return;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//Light functions
void SceneLoader::setLightPos(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	light_pos = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setLightCol(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	light_col = glm::vec3(x, y, z);
	return;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//Sphere functions
void SceneLoader::setSpherePos(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	sphere_pos = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setSphereRad(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	sphere_rad = std::stod(str_values[1]);
	return;
}
void SceneLoader::setSphereAmb(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	sphere_amb = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setSphereDif(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	sphere_dif = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setSphereSpe(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	sphere_spe = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setSphereShi(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	sphere_shi = std::stod(str_values[1]);
	return;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//model functions
void SceneLoader::setModelName(std::string input) {
	model_file = input;
	return;
}
void SceneLoader::setModelAmb(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	model_amb = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setModelDif(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	model_dif = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setModelSpe(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	model_spe = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setModelShi(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	model_shi = std::stod(str_values[1]);
	return;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//triangle functions
void SceneLoader::setTriangleV1(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	triangle_v1 = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setTriangleV2(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	triangle_v2 = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setTriangleV3(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	triangle_v3 = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setTriangleAmb(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	triangle_amb = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setTriangleDif(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	triangle_dif = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setTriangleSpe(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	float x, y, z;
	x = std::stod(str_values[1]);
	y = std::stod(str_values[2]);
	z = std::stod(str_values[3]);
	triangle_spe = glm::vec3(x, y, z);
	return;
}
void SceneLoader::setTriangleShi(std::string input) {
	std::vector<std::string> str_values = split(input, " ");
	triangle_shi = std::stod(str_values[1]);
	return;
}


text:
'''
Module for viewing and modifying sysctl parameters
'''
from __future__ import absolute_import

# Import python libs
import logging
import os
import re

# Import salt libs
import salt.ext.six as six
import salt.utils
from salt.ext.six import string_types
from salt.exceptions import CommandExecutionError
import salt.utils.systemd
import string

log = logging.getLogger(__name__)

# Define the module's virtual name
__virtualname__ = 'sysctl'

# TODO: Add unpersist() to remove either a sysctl or sysctl/value combo from
# the config

def __virtual__():
    '''
    Only run on Linux systems
    '''
    if __grains__['kernel'] != 'Linux':
        return (False, 'The linux_sysctl execution module cannot be loaded: only available on Linux systems.')
    return __virtualname__

def _check_systemd_salt_config():
    conf = '/etc/sysctl.d/99-salt.conf'
    if not os.path.exists(conf):
        sysctl_dir = os.path.split(conf)[0]
        if not os.path.exists(sysctl_dir):
            os.makedirs(sysctl_dir)
        salt.utils.fopen(conf, 'w').close()
    return conf

def default_config():
    '''
    Linux hosts using systemd 207 or later ignore ``/etc/sysctl.conf`` and only
    load from ``/etc/sysctl.d/*.conf``. This function will do the proper checks
    and return a default config file which will be valid for the Minion. Hosts
    running systemd >= 207 will use ``/etc/sysctl.d/99-salt.conf``.

    CLI Example:

    .. code-block:: bash

        salt -G 'kernel:Linux' sysctl.default_config
    '''
    if salt.utils.systemd.booted(__context__) \
            and salt.utils.systemd.version(__context__) >= 207:
        return _check_systemd_salt_config()
    return '/etc/sysctl.conf'

def show(config_file=False):
    '''
    Return a list of sysctl parameters for this minion

    config: Pull the data from the system configuration file
        instead of the live data.

    CLI Example:

    .. code-block:: bash

        salt '*' sysctl.show
    '''
    ret = {}
    if config_file:
        try:
            for line in salt.utils.fopen(config_file):
                if not line.startswith('#') and '=' in line:
                    # search if we have some '=' instead of ' = ' separators
                    SPLIT = ' = '
                    if SPLIT not in line:
                        SPLIT = SPLIT.strip()
                    key, value = line.split(SPLIT, 1)
                    key = key.strip()
                    value = value.lstrip()
                    ret[key] = value
        except (OSError, IOError):
            log.error('Could not open sysctl file')
            return None
    else:
        cmd = 'sysctl -a'
        out = __salt__['cmd.run_stdout'](cmd, output_loglevel='trace')
        for line in out.splitlines():
            if not line or ' = ' not in line:
                continue
            comps = line.split(' = ', 1)
            ret[comps[0]] = comps[1]
    return ret

def get(name):
    '''
    Return a single sysctl parameter for this minion

    CLI Example:

    .. code-block:: bash

        salt '*' sysctl.get net.ipv4.ip_forward
    '''
    cmd = 'sysctl -n {0}'.format(name)
    out = __salt__['cmd.run'](cmd, python_shell=False)
    return out

def assign(name, value):
    '''
    Assign a single sysctl parameter for this minion

    CLI Example:

    .. code-block:: bash

        salt '*' sysctl.assign net.ipv4.ip_forward 1
    '''
    value = str(value)
    trantab = ''.maketrans('./', '/.') if six.PY3 else string.maketrans('./', '/.')
    sysctl_file = '/proc/sys/{0}'.format(name.translate(trantab))
    if not os.path.exists(sysctl_file):
        raise CommandExecutionError('sysctl {0} does not exist'.format(name))

    ret = {}
    cmd = 'sysctl -w {0}="{1}"'.format(name, value)
    data = __salt__['cmd.run_all'](cmd, python_shell=False)
    out = data['stdout']
    err = data['stderr']

    # Example:
    #    # sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216"
    #    net.ipv4.tcp_rmem = 4096 87380 16777216
    regex = re.compile(r'^{0}\s+=\s+{1}$'.format(re.escape(name), re.escape(value)))

    if not regex.match(out) or 'Invalid argument' in str(err):
        if data['retcode'] != 0 and err:
            error = err
        else:
            error = out
        raise CommandExecutionError('sysctl -w failed: {0}'.format(error))
    new_name, new_value = out.split(' = ', 1)
    ret[new_name] = new_value
    return ret

def persist(name, value, config=None):
    '''
    Assign and persist a simple sysctl parameter for this minion. If ``config``
    is not specified, a sensible default will be chosen using
    :mod:`sysctl.default_config <salt.modules.linux_sysctl.default_config>`.

    CLI Example:

    .. code-block:: bash

        salt '*' sysctl.persist net.ipv4.ip_forward 1
    '''
    if config is None:
        config = default_config()
    running = show()
    edited = False
    # If the sysctl.conf is not present, add it
    if not os.path.isfile(config):
        try:
            with salt.utils.fopen(config, 'w+') as _fh:
                _fh.write('#\n# Kernel sysctl configuration\n#\n')
        except (IOError, OSError):
            msg = 'Could not write to file: {0}'
            raise CommandExecutionError(msg.format(config))

    # Read the existing sysctl.conf
    nlines = []
    try:
        with salt.utils.fopen(config, 'r') as _fh:
            # Use readlines because this should be a small file
            # and it seems unnecessary to indent the below for
            # loop since it is a fairly large block of code.
            config_data = _fh.readlines()
    except (IOError, OSError):
        msg = 'Could not read from file: {0}'
        raise CommandExecutionError(msg.format(config))

    for line in config_data:
        if line.startswith('#'):
            nlines.append(line)
            continue
        if '=' not in line:
            nlines.append(line)
            continue

        # Strip trailing whitespace and split the k,v
        comps = [i.strip() for i in line.split('=', 1)]

        # On Linux procfs, files such as /proc/sys/net/ipv4/tcp_rmem or any
        # other sysctl with whitespace in it consistently uses 1 tab.  Lets
        # allow our users to put a space or tab between multi-value sysctls
        # and have salt not try to set it every single time.
        if isinstance(comps[1], string_types) and ' ' in comps[1]:
            comps[1] = re.sub(r'\s+', '\t', comps[1])

        # Do the same thing for the value 'just in case'
        if isinstance(value, string_types) and ' ' in value:
            value = re.sub(r'\s+', '\t', value)

        if len(comps) < 2:
            nlines.append(line)
            continue
        if name == comps[0]:
            # This is the line to edit
            if str(comps[1]) == str(value):
                # It is correct in the config, check if it is correct in /proc
                if name in running:
                    if str(running[name]) != str(value):
                        assign(name, value)
                        return 'Updated'
                return 'Already set'
            nlines.append('{0} = {1}\n'.format(name, value))
            edited = True
            continue
        else:
            nlines.append(line)
    if not edited:
        nlines.append('{0} = {1}\n'.format(name, value))
    try:
        with salt.utils.fopen(config, 'w+') as _fh:
            _fh.writelines(nlines)
    except (IOError, OSError):
        msg = 'Could not write to file: {0}'
        raise CommandExecutionError(msg.format(config))

    assign(name, value)
    return 'Updated'


text:
namespace chrono {

class CH_SUBSYS_API ChSimplePowertrain : public ChPowertrain
{
public:

  ChSimplePowertrain();

  ~ChSimplePowertrain() {}

  /// Initialize the powertrain system.
  void Initialize();

  /// Return the current engine speed.
  virtual double GetMotorSpeed() const { return m_motorSpeed; }

  /// Return the current engine torque.
  virtual double GetMotorTorque() const { return m_motorTorque; }

  /// Return the value of slippage in the torque converter.
  /// This simplified model does not have a torque converter.
  virtual double GetTorqueConverterSlippage() const { return 0; }

  /// Return the input torque to the torque converter.
  /// This simplified model does not have a torque converter.
  virtual double GetTorqueConverterInputTorque() const { return 0; }

  /// Return the output torque from the torque converter.
  /// This simplified model does not have a torque converter.
  virtual double GetTorqueConverterOutputTorque() const { return 0; }

  /// Return the current transmission gear
  /// This simplified model does not have a transmission box.
  virtual int GetCurrentTransmissionGear() const { return 1; }

  /// Return the ouput torque from the powertrain.
  /// This is the torque that is passed to a vehicle system, thus providing the
  /// interface between the powertrain and vehcicle cosimulation modules.
  /// Since a ShaftsPowertrain is directly connected to the vehicle's driveline,
  /// this function returns 0.
  virtual double GetOutputTorque() const { return m_shaftTorque; }

  /// Use this function to set the mode of automatic transmission.
  /// This simplified model does not have a transmission box.
  virtual void SetDriveMode(ChPowertrain::DriveMode mmode);

  /// Update the state of this powertrain system at the current time.
  /// The powertrain system is provided the current driver throttle input, a
  /// value in the range [0,1], and the current angular speed of the transmission
  /// shaft (from the driveline).
  virtual void Update(
    double time,       ///< [in] current time
    double throttle,   ///< [in] current throttle input [0,1]
    double shaft_speed ///< [in] current angular speed of the transmission shaft
    );

  /// Advance the state of this powertrain system by the specified time step.
  /// This function does nothing for this simplified powertrain model.
  virtual void Advance(double step) {}

protected:

  /// Return the forward gear ratio (single gear transmission)
  virtual double GetForwardGearRatio() const = 0;

  /// Return the reverse gear ratio
  virtual double GetReverseGearRatio() const = 0;

  /// Return the maximum motor torque
  virtual double GetMaxTorque() const = 0;

  /// Return the maximum motor speed
  virtual double GetMaxSpeed() const = 0;

private:
  double  m_current_gear_ratio;
  double  m_motorSpeed;
  double  m_motorTorque;
  double  m_shaftTorque;
};

} // end namespace chrono

#endif


text:
namespace FluentWebControls.Mapping
{
	public interface IModelMap
	{
		object GetValueForModel();
	}
}


text:
{% extends 'barsystem/base.html' %}
{% load staticfiles %}
{% load i18n %}
{% load l10n %}
{% load money_display %}

{% block title %}Products{% endblock %}
{% block css %}
<link rel="stylesheet" type="text/css" href="{% static 'css/keyboard.css' %}" />
{% endblock %}
{% block javascript %}

{% endblock %}

{% block navright %}
{% if person %}

User: {{ person.nick_name }}, saldo: <span class="balance{% if person.amount < 0 %} negative{% endif %}">{{ person.amount|money_display }}

{% endif %}
{% endblock %}
{% block navbuttons %}
{% if bar %}
	<button id="btn-drawer" class="btn btn-default navbar-btn">Open drawer</button>
{% endif %}
{% if person %}
	<button id="btn-cash-deposit" class="btn btn-default navbar-btn">Cash deposit</button>
	{% trans 'Transactions' %}
{% endif %}
	{% trans 'Cancel' %}
{% endblock %}

{% block content %}

{% regroup products by category as products_by_category %}

	{% for group in products_by_category %}

{% if group.grouper == None %}{% trans 'Unsorted' %}{% else %}{{group.grouper.name}}{% endif %}

		{% with products=group.list %}
		{% include 'barsystem/products.inc.html' %}
		{% endwith %}

	{% endfor %}

<form id="cart" method="post" action="{% url 'products' %}">
	{% csrf_token %}
	<button class="btn btn-primary btn-lg btn-block" type="submit">{% trans 'Checkout' %}</button>

{% trans 'Total' %}:

</form>

{% endblock %}

{% block extracontent %}

				<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

{% trans 'Enter quantity' %}

							<input class="keyboard-input" type="text" name="value" maxlength="10" />

					<button type="button" class="btn btn-primary" name="ok">{% trans 'Confirm' %}</button>
					<button type="button" class="btn btn-default" data-dismiss="modal" name="cancel">{% trans 'Cancel' %}</button>

{% if false %}

				<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Help

					Command line interface:

help

this right here

ok

 checkout shopping cart

cancel

 cancel order

buy <var>quantity</var> <var>product</var>

 set the cart quantity of the product

<var>quantity</var> <var>product</var>

 add <var>quantity</var> products to cart

<var>product</var>

 add 1 of the product to the cart

					Currently there is a bug here which prevents you from closing the help window with the escape key...

{% endif %}

		<input>

<template id="templateCartItem">

{quantity} {unit} {name}

{price}
<input type="hidden" name="products[{id}][quantity]" value="{quantity}" />

</template>

{% endblock %}

{% block navextra %}

{% endblock %}


text:
colin
=====

Site for my son


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

namespace NBi.Core.Structure
{
    public abstract class StructureDiscoveryCommand : IStructureDiscoveryCommand
    {
        protected readonly IDbCommand command;
        protected readonly IEnumerable<IPostCommandFilter> postFilters;
        protected readonly CommandDescription description;

        public virtual CommandDescription Description
        {
            get { return description; }
        }

        protected internal StructureDiscoveryCommand(IDbCommand command, IEnumerable<IPostCommandFilter> postFilters, CommandDescription description)
        {
            this.command = command;
            this.postFilters = postFilters;
            this.description = description;
        }

        public abstract IEnumerable<string> Execute();

    }
}


text:
package poussecafe.jackson;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertTrue;

public class JacksonMessageAdapterTest {

    @Test
    public void jacksonSuccessfulEndToEnd() {
        givenInitialMessage();
        whenAdaptingEndToEnd();
        thenProducedMessageIsSameAsInitial();
    }

    private void givenInitialMessage() {
        initialMessage = new SimpleMessage();
        initialMessage.payload = "payload";
        initialMessage.date = LocalDate.now();
        initialMessage.bigDecimal = new BigDecimal(bigNumberString);
        initialMessage.polymorphicPayload = OffsetDateTime.now();
        initialMessage.intPrimitive = 42;
    }

    private String bigNumberString = "42424242424242424242.424242424242424242";

    private SimpleMessage initialMessage;

    private void whenAdaptingEndToEnd() {
        whenSerializing();
        whenUnserializing();
    }

    private void whenUnserializing() {
        producedMessage = (SimpleMessage) adapter.adaptSerializedMessage(serializedMessage);
    }

    private void whenSerializing() {
        serializedMessage = adapter.adaptMessage(initialMessage);
    }

    private String serializedMessage;

    private JacksonMessageAdapter adapter = new JacksonMessageAdapter();

    private SimpleMessage producedMessage;

    private void thenProducedMessageIsSameAsInitial() {
        assertThat(producedMessage, equalTo(initialMessage));
    }

    @Test
    public void bigDecimalSerializedAsString() {
        givenInitialMessage();
        whenSerializing();
        thenBigDecimalSerializedAsString();
    }

    private void thenBigDecimalSerializedAsString() {
        assertTrue(serializedMessage.contains("\"" + bigNumberString + "\""));
    }
}


text:
local zm = require'zbus.member'

local member = zm.new()

-- simply subscribe notification given as parameter or all notfifications for printout
member:listen_add(arg[1] or '.*', print)

member:loop()