text:
package org.zaproxy.zap.extension.script;

import java.awt.EventQueue;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import java.nio.charset.MalformedInputException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.InvalidParameterException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.script.Invocable;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.table.AbstractTableModel;
import javax.swing.tree.TreeNode;

import org.apache.log4j.Logger;
import org.jdesktop.swingx.JXTable;
import org.parosproxy.paros.CommandLine;
import org.parosproxy.paros.Constant;
import org.parosproxy.paros.control.Control.Mode;
import org.parosproxy.paros.extension.CommandLineArgument;
import org.parosproxy.paros.extension.CommandLineListener;
import org.parosproxy.paros.extension.ExtensionAdaptor;
import org.parosproxy.paros.extension.ExtensionHook;
import org.parosproxy.paros.extension.SessionChangedListener;
import org.parosproxy.paros.model.Session;
import org.parosproxy.paros.network.HttpMessage;
import org.parosproxy.paros.network.HttpSender;
import org.parosproxy.paros.view.View;
import org.zaproxy.zap.control.ExtensionFactory;

public class ExtensionScript extends ExtensionAdaptor implements CommandLineListener {

	public static final int EXTENSION_ORDER = 60;
	public static final String NAME = "ExtensionScript";

	/**
	 * @deprecated (2.7.0) Use {@link #getScriptIcon()} instead.
	 */
	@Deprecated
	public static final ImageIcon ICON = View.isInitialised() ? getScriptIcon() : null;

	/**
	 * The {@code Charset} used to load/save the scripts from/to the file.
	 *

	 * While the scripts can be loaded with any {@code Charset} (defaulting to this one) they are always saved with this
	 * {@code Charset}.
	 *
	 * @since 2.7.0
	 * @see #loadScript(ScriptWrapper)
	 * @see #loadScript(ScriptWrapper, Charset)
	 * @see #saveScript(ScriptWrapper)
	 */
	public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;

	/**
	 * The script icon.
	 *

	 * Lazily initialised.
	 *
	 * @see #getScriptIcon()
	 */
	private static ImageIcon scriptIcon;

	public static final String SCRIPTS_DIR = "scripts";
	public static final String TEMPLATES_DIR = SCRIPTS_DIR + File.separator + "templates";
	private static final String LANG_ENGINE_SEP = " : ";
	protected static final String SCRIPT_CONSOLE_HOME_PAGE = "https://github.com/zaproxy/zaproxy/wiki/ScriptConsole";
	protected static final String SCRIPT_NAME_ATT = "zap.script.name";

	public static final String TYPE_HTTP_SENDER = "httpsender";
	public static final String TYPE_PROXY = "proxy";
	public static final String TYPE_STANDALONE = "standalone";
	public static final String TYPE_TARGETED = "targeted";

	private ScriptEngineManager mgr = new ScriptEngineManager();
	private ScriptParam scriptParam = null;
	private OptionsScriptPanel optionsScriptPanel = null;

	private ScriptTreeModel treeModel = null;
	private List


text:
<!DOCTYPE HTML>

<meta charset="UTF-8"/>
<title> Wat is nieuw in Barcode Scanner </title>
<link href="../style.css" rel="stylesheet" type="text/css"/>

 Nieuw in versie 4.5.1:

 Kleine fixes en verbeteringen.

Vertaald door Google Translate.

redpajama_set_name: RedPajamaGithub


text:
{{showProfileCtrl.editButtonText}}

  <profile-top ng-if="showProfileCtrl.editToggle === false" profile="showProfileCtrl.profile"></profile-top>
  <profile-status-feed ng-repeat="status in showProfileCtrl.userProfiles" status="status"></profile-status-feed>
  <edit-profile ng-if="showProfileCtrl.editToggle === true" profile="showProfileCtrl.profile"></edit-profile>


text:
<?php

namespace PharIo\Manifest;

use DOMDocument;

class AuthorElementCollectionTest extends \PHPUnit_Framework_TestCase {
    public function testAuthorElementCanBeRetrievedFromCollection() {
        $dom = new DOMDocument();
        $dom->loadXML('<?xml version="1.0" ?><author xmlns="https://phar.io/xml/manifest/1.0" name="Reiner Zufall" email="reiner@zufall.de" />');
        $collection = new AuthorElementCollection($dom->childNodes);

        foreach($collection as $authorElement) {
            $this->assertInstanceOf(AuthorElement::class, $authorElement);
        }
    }

}


text: """Tests for the mobile app integration."""


text:
namespace ForumSystem.Web.Logic
{
    using System.Collections.Generic;
    using System.Linq;
    using ForumSystem.Models;

    public static class GetUserWithTheBestResult
    {
        private const int DefaultLengthForRating = 7;
        public static IList<ApplicationUser> RatingByPoints(IList<ApplicationUser> allUser)
        {
            var result = allUser
                .OrderByDescending(u => u.Points)
                .Take(DefaultLengthForRating)
                .ToList();

            return result;
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <androidx.cardview.widget.CardView
            style="@style/Widget.MaterialComponents.CardView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="8dp"
            android:layout_marginBottom="4dp"
            app:cardUseCompatPadding="true">

            <LinearLayout
                android:id="@+id/container"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical" />

        </androidx.cardview.widget.CardView>
    </LinearLayout>
</layout>


text:
<?php

namespace Ayamel\ResourceBundle\Repository;

use Ayamel\ResourceBundle\Document\Resource;
use Doctrine\ODM\MongoDB\DocumentRepository;

/**
 * Custom query methods for managing Resource documents.
 *
 * @package AyamelResourceBundle
 * @author Evan Villemez
 */
class ResourceRepository extends DocumentRepository
{
    public function getQBForResources($filters = [])
    {
        $qb = $this->createQueryBuilder('Resource');

        //and optionally other fields
        foreach ($filters as $field => $val) {
            if (is_array($val)) {
                $qb->field($field)->in($val);
            } else {
                $qb->field($field)->equals($val);
            }
        }

        return $qb;
    }

    /**
     * Deleting a resource does not actually remove it from storage, instead
     * it clears most fields, and stores the date on which it was deleted.
     *
     * @param  Resource $resource
     * @return Resource
     */
    public function deleteResource(Resource $resource)
    {
        $whitelist = ['id'];
        $reflObj = new \ReflectionClass($resource);

        //null out all fields not in the whitelist
        foreach ($reflObj->getProperties() as $prop) {
            if (!in_array($prop->getName(), $whitelist)) {
                $prop->setAccessible(true);
                $prop->setValue($resource, null);
            }
        }

        //set delete date and status
        $resource->setDateDeleted(new \DateTime());
        $resource->setStatus(Resource::STATUS_DELETED);

        return $resource;
    }
}


text:
title: "GreenWay"
layout: game
permalink: /games/green-way
created: 20-11-2021
team: w84death, czlowiekimadlo, WrmZ
genre: Realtime Puzzle
platforms: Windows 64, Linux 32/64, HTML5
status: released

screenshots:
  - small: title_thumb.jpg
    big: title.jpg

  - small: how-to_thumb.jpg
    big: how-to.jpg

  - small: screen1_thumb.jpg
    big: screen1.jpg

  - small: screen2_thumb.jpg
    big: screen2.jpg

  - small: screen3_thumb.jpg
    big: screen3.jpg

  - small: screen4_thumb.jpg
    big: screen4.jpg

resources:
  - title: itch.io Store Page
    url: https://w84death.itch.io/greenway
    humanUrl: w84death.itch.io/greenway

  - title: Game Source Code
    url: https://github.com/P1X-in/green-way
    humanUrl: github.com/P1X-in/green-way

  - title: Gameplay Video
    url: https://player.vimeo.com/video/637632823
    humanUrl: player.vimeo.com/video/637632823
---

### A simple, zen like puzzle game. Design perfect recycling infrastructure.

- Connect houses with utilization centers.
- There are 4 different trash bin colour codes.
- Towns will grown over time. They need space to grow!
- Pay attention to the road tiles available to build (bottom-left)
- Too many un serviced trash ends the game
- Well working city with enough recicled material will mark a mission success

## Play
Play HTML5 version (or download Windows builds) [at our itch.io page](https://w84death.itch.io/greenway).

Gamepad (recommended):

- [Thumbs] to move / rotate camera (rotation only in third camera mode)
- [SELECT] to change camera modes
- [A][B] build/remove road tile
- [X][Y] show latest building/utilization center

Mouse:

- [Left Mouse] to move and build road
- [Right Mouse] to remove road
- [F] to change camera


text:
package com.ctrip.framework.apollo.configservice.wrapper;

import java.util.Map;

/**
 * @author Jason Song(song_s@ctrip.com)
 */
public class CaseInsensitiveMapWrapper<T> {
  private final Map<String, T> delegate;

  public CaseInsensitiveMapWrapper(Map<String, T> delegate) {
    this.delegate = delegate;
  }

  public T get(String key) {
    return delegate.get(key.toLowerCase());
  }

  public T put(String key, T value) {
    return delegate.put(key.toLowerCase(), value);
  }

  public T remove(String key) {
    return delegate.remove(key.toLowerCase());
  }
}


text:
require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/automl/v1beta1/data_stats.proto", :syntax => :proto3) do
    add_message "google.cloud.automl.v1beta1.DataStats" do
      optional :distinct_value_count, :int64, 1
      optional :null_value_count, :int64, 2
      optional :valid_value_count, :int64, 9
      oneof :stats do
        optional :float64_stats, :message, 3, "google.cloud.automl.v1beta1.Float64Stats"
        optional :string_stats, :message, 4, "google.cloud.automl.v1beta1.StringStats"
        optional :timestamp_stats, :message, 5, "google.cloud.automl.v1beta1.TimestampStats"
        optional :array_stats, :message, 6, "google.cloud.automl.v1beta1.ArrayStats"
        optional :struct_stats, :message, 7, "google.cloud.automl.v1beta1.StructStats"
        optional :category_stats, :message, 8, "google.cloud.automl.v1beta1.CategoryStats"
      end
    end
    add_message "google.cloud.automl.v1beta1.Float64Stats" do
      optional :mean, :double, 1
      optional :standard_deviation, :double, 2
      repeated :quantiles, :double, 3
      repeated :histogram_buckets, :message, 4, "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket"
    end
    add_message "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket" do
      optional :min, :double, 1
      optional :max, :double, 2
      optional :count, :int64, 3
    end
    add_message "google.cloud.automl.v1beta1.StringStats" do
      repeated :top_unigram_stats, :message, 1, "google.cloud.automl.v1beta1.StringStats.UnigramStats"
    end
    add_message "google.cloud.automl.v1beta1.StringStats.UnigramStats" do
      optional :value, :string, 1
      optional :count, :int64, 2
    end
    add_message "google.cloud.automl.v1beta1.TimestampStats" do
      map :granular_stats, :string, :message, 1, "google.cloud.automl.v1beta1.TimestampStats.GranularStats"
    end
    add_message "google.cloud.automl.v1beta1.TimestampStats.GranularStats" do
      map :buckets, :int32, :int64, 1
    end
    add_message "google.cloud.automl.v1beta1.ArrayStats" do
      optional :member_stats, :message, 2, "google.cloud.automl.v1beta1.DataStats"
    end
    add_message "google.cloud.automl.v1beta1.StructStats" do
      map :field_stats, :string, :message, 1, "google.cloud.automl.v1beta1.DataStats"
    end
    add_message "google.cloud.automl.v1beta1.CategoryStats" do
      repeated :top_category_stats, :message, 1, "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats"
    end
    add_message "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats" do
      optional :value, :string, 1
      optional :count, :int64, 2
    end
    add_message "google.cloud.automl.v1beta1.CorrelationStats" do
      optional :cramers_v, :double, 1
    end
  end
end

module Google
  module Cloud
    module AutoML
      module V1beta1
        DataStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DataStats").msgclass
        Float64Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Float64Stats").msgclass
        Float64Stats::HistogramBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Float64Stats.HistogramBucket").msgclass
        StringStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StringStats").msgclass
        StringStats::UnigramStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StringStats.UnigramStats").msgclass
        TimestampStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimestampStats").msgclass
        TimestampStats::GranularStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimestampStats.GranularStats").msgclass
        ArrayStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ArrayStats").msgclass
        StructStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StructStats").msgclass
        CategoryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CategoryStats").msgclass
        CategoryStats::SingleCategoryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats").msgclass
        CorrelationStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CorrelationStats").msgclass
      end
    end
  end
end


text:
#include "setup.hpp"
#include "table_type.hpp"
#define TEST_UDT

#include <boost/math/special_functions/math_fwd.hpp>
#include "libs/math/test/test_erf.hpp"

void expected_results()
{
   //
   // Define the max and mean errors expected for
   // various compilers and platforms.
   //
   add_expected_result(
      ".*",                          // compiler
      ".*",                          // stdlib
      ".*",                          // platform
      ".*gmp_float<18>.*",           // test type(s)
      "Erf Function:.*",             // test data group
      "boost::math::erfc?", 2200, 1500);// test function
   add_expected_result(
      ".*",                          // compiler
      ".*",                          // stdlib
      ".*",                          // platform
      ".*gmp_float<18>.*",           // test type(s)
      "Inverse Erf.*",               // test data group
      "boost::math::erfc?_inv", 2200, 1500);  // test function
#ifdef BOOST_INTEL
      add_expected_result(
      ".*",                          // compiler
      ".*",                          // stdlib
      ".*",                          // platform
      "float128",                          // test type(s)
      "Erf Function:.*",             // test data group
      "boost::math::erfc?", 15000, 1000); // test function
#endif
   add_expected_result(
      ".*",                          // compiler
      ".*",                          // stdlib
      ".*",                          // platform
      ".*cpp_bin_float.*",           // test type(s)
      "Erf Function:.*",             // test data group
      "boost::math::erfc?", 3000, 1000); // test function
   add_expected_result(
      ".*",                          // compiler
      ".*",                          // stdlib
      ".*",                          // platform
      ".*",                          // test type(s)
      "Erf Function:.*",             // test data group
      "boost::math::erfc?", 300, 200); // test function
   add_expected_result(
      ".*",                          // compiler
      ".*",                          // stdlib
      ".*",                          // platform
      ".*",                          // test type(s)
      "Inverse Erf.*",               // test data group
      "boost::math::erfc?_inv", 60, 20);  // test function
   //
   // Finish off by printing out the compiler/stdlib/platform names,
   // we do this to make it easier to mark up expected error rates.
   //
   std::cout << "Tests run with " << BOOST_COMPILER << ", "
      << BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}

template <class T>
void test(T t, const char* p)
{
   test_erf(t, p);
}

BOOST_AUTO_TEST_CASE( test_main )
{
   using namespace boost::multiprecision;
   expected_results();
   //
   // Test at:
   // 18 decimal digits: tests 80-bit long double approximations
   // 30 decimal digits: tests 128-bit long double approximations
   // 35 decimal digits: tests arbitrary precision code
   //
   ALL_TESTS
}


text:
<?php

namespace Mockery;

class CompositeExpectation implements ExpectationInterface
{
    /**
     * Stores an array of all expectations for this composite
     *
     * @var array
     */
    protected $_expectations = array();

    /**
     * Add an expectation to the composite
     *
     * @param \Mockery\Expectation|\Mockery\CompositeExpectation $expectation
     * @return void
     */
    public function add($expectation)
    {
        $this->_expectations[] = $expectation;
    }

    /**
     * @param mixed ...
     */
    public function andReturn()
    {
        return $this->__call(__FUNCTION__, func_get_args());
    }

    /**
     * Intercept any expectation calls and direct against all expectations
     *
     * @param string $method
     * @param array $args
     * @return self
     */
    public function __call($method, array $args)
    {
        foreach ($this->_expectations as $expectation) {
            call_user_func_array(array($expectation, $method), $args);
        }
        return $this;
    }

    /**
     * Return order number of the first expectation
     *
     * @return int
     */
    public function getOrderNumber()
    {
        reset($this->_expectations);
        $first = current($this->_expectations);
        return $first->getOrderNumber();
    }

    /**
     * Return the parent mock of the first expectation
     *
     * @return \Mockery\MockInterface
     */
    public function getMock()
    {
        reset($this->_expectations);
        $first = current($this->_expectations);
        return $first->getMock();
    }

    /**
     * Mockery API alias to getMock
     *
     * @return \Mockery\MockInterface
     */
    public function mock()
    {
        return $this->getMock();
    }

    /**
     * Starts a new expectation addition on the first mock which is the primary
     * target outside of a demeter chain
     *
     * @param mixed ...
     * @return \Mockery\Expectation
     */
    public function shouldReceive()
    {
        $args = func_get_args();
        reset($this->_expectations);
        $first = current($this->_expectations);
        return call_user_func_array(array($first->getMock(), 'shouldReceive'), $args);
    }

    /**
     * Return the string summary of this composite expectation
     *
     * @return string
     */
    public function __toString()
    {
        $return = '[';
        $parts = array();
        foreach ($this->_expectations as $exp) {
            $parts[] = (string) $exp;
        }
        $return .= implode(', ', $parts) . ']';
        return $return;
    }
}


text:
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var BABYLON;
(function (BABYLON) {
    var maxSimultaneousLights = 4;
    var TriPlanarMaterialDefines = (function (_super) {
        __extends(TriPlanarMaterialDefines, _super);
        function TriPlanarMaterialDefines() {
            _super.call(this);
            this.DIFFUSEX = false;
            this.DIFFUSEY = false;
            this.DIFFUSEZ = false;
            this.BUMPX = false;
            this.BUMPY = false;
            this.BUMPZ = false;
            this.CLIPPLANE = false;
            this.ALPHATEST = false;
            this.POINTSIZE = false;
            this.FOG = false;
            this.LIGHT0 = false;
            this.LIGHT1 = false;
            this.LIGHT2 = false;
            this.LIGHT3 = false;
            this.SPOTLIGHT0 = false;
            this.SPOTLIGHT1 = false;
            this.SPOTLIGHT2 = false;
            this.SPOTLIGHT3 = false;
            this.HEMILIGHT0 = false;
            this.HEMILIGHT1 = false;
            this.HEMILIGHT2 = false;
            this.HEMILIGHT3 = false;
            this.DIRLIGHT0 = false;
            this.DIRLIGHT1 = false;
            this.DIRLIGHT2 = false;
            this.DIRLIGHT3 = false;
            this.POINTLIGHT0 = false;
            this.POINTLIGHT1 = false;
            this.POINTLIGHT2 = false;
            this.POINTLIGHT3 = false;
            this.SHADOW0 = false;
            this.SHADOW1 = false;
            this.SHADOW2 = false;
            this.SHADOW3 = false;
            this.SHADOWS = false;
            this.SHADOWVSM0 = false;
            this.SHADOWVSM1 = false;
            this.SHADOWVSM2 = false;
            this.SHADOWVSM3 = false;
            this.SHADOWPCF0 = false;
            this.SHADOWPCF1 = false;
            this.SHADOWPCF2 = false;
            this.SHADOWPCF3 = false;
            this.SPECULARTERM = false;
            this.NORMAL = false;
            this.VERTEXCOLOR = false;
            this.VERTEXALPHA = false;
            this.BONES = false;
            this.BONES4 = false;
            this.BonesPerMesh = 0;
            this.INSTANCES = false;
            this._keys = Object.keys(this);
        }
        return TriPlanarMaterialDefines;
    }(BABYLON.MaterialDefines));
    var TriPlanarMaterial = (function (_super) {
        __extends(TriPlanarMaterial, _super);
        function TriPlanarMaterial(name, scene) {
            _super.call(this, name, scene);
            this.tileSize = 1;
            this.diffuseColor = new BABYLON.Color3(1, 1, 1);
            this.specularColor = new BABYLON.Color3(0.2, 0.2, 0.2);
            this.specularPower = 64;
            this.disableLighting = false;
            this._worldViewProjectionMatrix = BABYLON.Matrix.Zero();
            this._scaledDiffuse = new BABYLON.Color3();
            this._scaledSpecular = new BABYLON.Color3();
            this._defines = new TriPlanarMaterialDefines();
            this._cachedDefines = new TriPlanarMaterialDefines();
            this._cachedDefines.BonesPerMesh = -1;
        }
        TriPlanarMaterial.prototype.needAlphaBlending = function () {
            return (this.alpha < 1.0);
        };
        TriPlanarMaterial.prototype.needAlphaTesting = function () {
            return false;
        };
        TriPlanarMaterial.prototype.getAlphaTestTexture = function () {
            return null;
        };
        // Methods
        TriPlanarMaterial.prototype._checkCache = function (scene, mesh, useInstances) {
            if (!mesh) {
                return true;
            }
            if (this._defines.INSTANCES !== useInstances) {
                return false;
            }
            if (mesh._materialDefines && mesh._materialDefines.isEqual(this._defines)) {
                return true;
            }
            return false;
        };
        TriPlanarMaterial.prototype.isReady = function (mesh, useInstances) {
            if (this.checkReadyOnlyOnce) {
                if (this._wasPreviouslyReady) {
                    return true;
                }
            }
            var scene = this.getScene();
            if (!this.checkReadyOnEveryCall) {
                if (this._renderId === scene.getRenderId()) {
                    if (this._checkCache(scene, mesh, useInstances)) {
                        return true;
                    }
                }
            }
            var engine = scene.getEngine();
            var needNormals = false;
            this._defines.reset();
            // Textures
            if (scene.texturesEnabled) {
                if (BABYLON.StandardMaterial.DiffuseTextureEnabled) {
                    var textures = [this.diffuseTextureX, this.diffuseTextureY, this.diffuseTextureZ];
                    var textureDefines = ["DIFFUSEX", "DIFFUSEY", "DIFFUSEZ"];
                    for (var i = 0; i < textures.length; i++) {
                        if (textures[i]) {
                            if (!textures[i].isReady()) {
                                return false;
                            }
                            else {
                                this._defines[textureDefines[i]] = true;
                            }
                        }
                    }
                }
                if (BABYLON.StandardMaterial.BumpTextureEnabled) {
                    var textures = [this.normalTextureX, this.normalTextureY, this.normalTextureZ];
                    var textureDefines = ["BUMPX", "BUMPY", "BUMPZ"];
                    for (var i = 0; i < textures.length; i++) {
                        if (textures[i]) {
                            if (!textures[i].isReady()) {
                                return false;
                            }
                            else {
                                this._defines[textureDefines[i]] = true;
                            }
                        }
                    }
                }
            }
            // Effect
            if (scene.clipPlane) {
                this._defines.CLIPPLANE = true;
            }
            if (engine.getAlphaTesting()) {
                this._defines.ALPHATEST = true;
            }
            // Point size
            if (this.pointsCloud || scene.forcePointsCloud) {
                this._defines.POINTSIZE = true;
            }
            // Fog
            if (scene.fogEnabled && mesh && mesh.applyFog && scene.fogMode !== BABYLON.Scene.FOGMODE_NONE && this.fogEnabled) {
                this._defines.FOG = true;
            }
            var lightIndex = 0;
            if (scene.lightsEnabled && !this.disableLighting) {
                for (var index = 0; index < scene.lights.length; index++) {
                    var light = scene.lights[index];
                    if (!light.isEnabled()) {
                        continue;
                    }
                    // Excluded check
                    if (light._excludedMeshesIds.length > 0) {
                        for (var excludedIndex = 0; excludedIndex < light._excludedMeshesIds.length; excludedIndex++) {
                            var excludedMesh = scene.getMeshByID(light._excludedMeshesIds[excludedIndex]);
                            if (excludedMesh) {
                                light.excludedMeshes.push(excludedMesh);
                            }
                        }
                        light._excludedMeshesIds = [];
                    }
                    // Included check
                    if (light._includedOnlyMeshesIds.length > 0) {
                        for (var includedOnlyIndex = 0; includedOnlyIndex < light._includedOnlyMeshesIds.length; includedOnlyIndex++) {
                            var includedOnlyMesh = scene.getMeshByID(light._includedOnlyMeshesIds[includedOnlyIndex]);
                            if (includedOnlyMesh) {
                                light.includedOnlyMeshes.push(includedOnlyMesh);
                            }
                        }
                        light._includedOnlyMeshesIds = [];
                    }
                    if (!light.canAffectMesh(mesh)) {
                        continue;
                    }
                    needNormals = true;
                    this._defines["LIGHT" + lightIndex] = true;
                    var type;
                    if (light instanceof BABYLON.SpotLight) {
                        type = "SPOTLIGHT" + lightIndex;
                    }
                    else if (light instanceof BABYLON.HemisphericLight) {
                        type = "HEMILIGHT" + lightIndex;
                    }
                    else if (light instanceof BABYLON.PointLight) {
                        type = "POINTLIGHT" + lightIndex;
                    }
                    else {
                        type = "DIRLIGHT" + lightIndex;
                    }
                    this._defines[type] = true;
                    // Specular
                    if (!light.specular.equalsFloats(0, 0, 0)) {
                        this._defines.SPECULARTERM = true;
                    }
                    // Shadows
                    if (scene.shadowsEnabled) {
                        var shadowGenerator = light.getShadowGenerator();
                        if (mesh && mesh.receiveShadows && shadowGenerator) {
                            this._defines["SHADOW" + lightIndex] = true;
                            this._defines.SHADOWS = true;
                            if (shadowGenerator.useVarianceShadowMap || shadowGenerator.useBlurVarianceShadowMap) {
                                this._defines["SHADOWVSM" + lightIndex] = true;
                            }
                            if (shadowGenerator.usePoissonSampling) {
                                this._defines["SHADOWPCF" + lightIndex] = true;
                            }
                        }
                    }
                    lightIndex++;
                    if (lightIndex === maxSimultaneousLights)
                        break;
                }
            }
            // Attribs
            if (mesh) {
                if (needNormals && mesh.isVerticesDataPresent(BABYLON.VertexBuffer.NormalKind)) {
                    this._defines.NORMAL = true;
                }
                if (mesh.useVertexColors && mesh.isVerticesDataPresent(BABYLON.VertexBuffer.ColorKind)) {
                    this._defines.VERTEXCOLOR = true;
                    if (mesh.hasVertexAlpha) {
                        this._defines.VERTEXALPHA = true;
                    }
                }
                if (mesh.useBones && mesh.computeBonesUsingShaders) {
                    this._defines.BONES = true;
                    this._defines.BonesPerMesh = (mesh.skeleton.bones.length + 1);
                    this._defines.BONES4 = true;
                }
                // Instances
                if (useInstances) {
                    this._defines.INSTANCES = true;
                }
            }
            // Get correct effect
            if (!this._defines.isEqual(this._cachedDefines)) {
                this._defines.cloneTo(this._cachedDefines);
                scene.resetCachedMaterial();
                // Fallbacks
                var fallbacks = new BABYLON.EffectFallbacks();
                if (this._defines.FOG) {
                    fallbacks.addFallback(1, "FOG");
                }
                for (lightIndex = 0; lightIndex < maxSimultaneousLights; lightIndex++) {
                    if (!this._defines["LIGHT" + lightIndex]) {
                        continue;
                    }
                    if (lightIndex > 0) {
                        fallbacks.addFallback(lightIndex, "LIGHT" + lightIndex);
                    }
                    if (this._defines["SHADOW" + lightIndex]) {
                        fallbacks.addFallback(0, "SHADOW" + lightIndex);
                    }
                    if (this._defines["SHADOWPCF" + lightIndex]) {
                        fallbacks.addFallback(0, "SHADOWPCF" + lightIndex);
                    }
                    if (this._defines["SHADOWVSM" + lightIndex]) {
                        fallbacks.addFallback(0, "SHADOWVSM" + lightIndex);
                    }
                }
                if (this._defines.BONES4) {
                    fallbacks.addFallback(0, "BONES4");
                }
                //Attributes
                var attribs = [BABYLON.VertexBuffer.PositionKind];
                if (this._defines.NORMAL) {
                    attribs.push(BABYLON.VertexBuffer.NormalKind);
                }
                if (this._defines.VERTEXCOLOR) {
                    attribs.push(BABYLON.VertexBuffer.ColorKind);
                }
                if (this._defines.BONES) {
                    attribs.push(BABYLON.VertexBuffer.MatricesIndicesKind);
                    attribs.push(BABYLON.VertexBuffer.MatricesWeightsKind);
                }
                if (this._defines.INSTANCES) {
                    attribs.push("world0");
                    attribs.push("world1");
                    attribs.push("world2");
                    attribs.push("world3");
                }
                // Legacy browser patch
                var shaderName = "triplanar";
                var join = this._defines.toString();
                this._effect = scene.getEngine().createEffect(shaderName, attribs, ["world", "view", "viewProjection", "vEyePosition", "vLightsType", "vDiffuseColor", "vSpecularColor",
                    "vLightData0", "vLightDiffuse0", "vLightSpecular0", "vLightDirection0", "vLightGround0", "lightMatrix0",
                    "vLightData1", "vLightDiffuse1", "vLightSpecular1", "vLightDirection1", "vLightGround1", "lightMatrix1",
                    "vLightData2", "vLightDiffuse2", "vLightSpecular2", "vLightDirection2", "vLightGround2", "lightMatrix2",
                    "vLightData3", "vLightDiffuse3", "vLightSpecular3", "vLightDirection3", "vLightGround3", "lightMatrix3",
                    "vFogInfos", "vFogColor", "pointSize",
                    "mBones",
                    "vClipPlane",
                    "shadowsInfo0", "shadowsInfo1", "shadowsInfo2", "shadowsInfo3",
                    "tileSize"
                ], ["diffuseSamplerX", "diffuseSamplerY", "diffuseSamplerZ",
                    "normalSamplerX", "normalSamplerY", "normalSamplerZ",
                    "shadowSampler0", "shadowSampler1", "shadowSampler2", "shadowSampler3"
                ], join, fallbacks, this.onCompiled, this.onError);
            }
            if (!this._effect.isReady()) {
                return false;
            }
            this._renderId = scene.getRenderId();
            this._wasPreviouslyReady = true;
            if (mesh) {
                if (!mesh._materialDefines) {
                    mesh._materialDefines = new TriPlanarMaterialDefines();
                }
                this._defines.cloneTo(mesh._materialDefines);
            }
            return true;
        };
        TriPlanarMaterial.prototype.bindOnlyWorldMatrix = function (world) {
            this._effect.setMatrix("world", world);
        };
        TriPlanarMaterial.prototype.bind = function (world, mesh) {
            var scene = this.getScene();
            // Matrices
            this.bindOnlyWorldMatrix(world);
            this._effect.setMatrix("viewProjection", scene.getTransformMatrix());
            // Bones
            if (mesh && mesh.useBones && mesh.computeBonesUsingShaders) {
                this._effect.setMatrices("mBones", mesh.skeleton.getTransformMatrices(mesh));
            }
            this._effect.setFloat("tileSize", this.tileSize);
            if (scene.getCachedMaterial() !== this) {
                // Textures
                if (this.diffuseTextureX) {
                    this._effect.setTexture("diffuseSamplerX", this.diffuseTextureX);
                }
                if (this.diffuseTextureY) {
                    this._effect.setTexture("diffuseSamplerY", this.diffuseTextureY);
                }
                if (this.diffuseTextureZ) {
                    this._effect.setTexture("diffuseSamplerZ", this.diffuseTextureZ);
                }
                if (this.normalTextureX) {
                    this._effect.setTexture("normalSamplerX", this.normalTextureX);
                }
                if (this.normalTextureY) {
                    this._effect.setTexture("normalSamplerY", this.normalTextureY);
                }
                if (this.normalTextureZ) {
                    this._effect.setTexture("normalSamplerZ", this.normalTextureZ);
                }
                // Clip plane
                if (scene.clipPlane) {
                    var clipPlane = scene.clipPlane;
                    this._effect.setFloat4("vClipPlane", clipPlane.normal.x, clipPlane.normal.y, clipPlane.normal.z, clipPlane.d);
                }
                // Point size
                if (this.pointsCloud) {
                    this._effect.setFloat("pointSize", this.pointSize);
                }
                this._effect.setVector3("vEyePosition", scene._mirroredCameraPosition ? scene._mirroredCameraPosition : scene.activeCamera.position);
            }
            this._effect.setColor4("vDiffuseColor", this._scaledDiffuse, this.alpha * mesh.visibility);
            if (this._defines.SPECULARTERM) {
                this._effect.setColor4("vSpecularColor", this.specularColor, this.specularPower);
            }
            if (scene.lightsEnabled && !this.disableLighting) {
                var lightIndex = 0;
                for (var index = 0; index < scene.lights.length; index++) {
                    var light = scene.lights[index];
                    if (!light.isEnabled()) {
                        continue;
                    }
                    if (!light.canAffectMesh(mesh)) {
                        continue;
                    }
                    if (light instanceof BABYLON.PointLight) {
                        // Point Light
                        light.transferToEffect(this._effect, "vLightData" + lightIndex);
                    }
                    else if (light instanceof BABYLON.DirectionalLight) {
                        // Directional Light
                        light.transferToEffect(this._effect, "vLightData" + lightIndex);
                    }
                    else if (light instanceof BABYLON.SpotLight) {
                        // Spot Light
                        light.transferToEffect(this._effect, "vLightData" + lightIndex, "vLightDirection" + lightIndex);
                    }
                    else if (light instanceof BABYLON.HemisphericLight) {
                        // Hemispheric Light
                        light.transferToEffect(this._effect, "vLightData" + lightIndex, "vLightGround" + lightIndex);
                    }
                    light.diffuse.scaleToRef(light.intensity, this._scaledDiffuse);
                    this._effect.setColor4("vLightDiffuse" + lightIndex, this._scaledDiffuse, light.range);
                    if (this._defines.SPECULARTERM) {
                        light.specular.scaleToRef(light.intensity, this._scaledSpecular);
                        this._effect.setColor3("vLightSpecular" + lightIndex, this._scaledSpecular);
                    }
                    // Shadows
                    if (scene.shadowsEnabled) {
                        var shadowGenerator = light.getShadowGenerator();
                        if (mesh.receiveShadows && shadowGenerator) {
                            this._effect.setMatrix("lightMatrix" + lightIndex, shadowGenerator.getTransformMatrix());
                            this._effect.setTexture("shadowSampler" + lightIndex, shadowGenerator.getShadowMapForRendering());
                            this._effect.setFloat3("shadowsInfo" + lightIndex, shadowGenerator.getDarkness(), shadowGenerator.getShadowMap().getSize().width, shadowGenerator.bias);
                        }
                    }
                    lightIndex++;
                    if (lightIndex === maxSimultaneousLights)
                        break;
                }
            }
            // View
            if (scene.fogEnabled && mesh.applyFog && scene.fogMode !== BABYLON.Scene.FOGMODE_NONE) {
                this._effect.setMatrix("view", scene.getViewMatrix());
            }
            // Fog
            if (scene.fogEnabled && mesh.applyFog && scene.fogMode !== BABYLON.Scene.FOGMODE_NONE) {
                this._effect.setFloat4("vFogInfos", scene.fogMode, scene.fogStart, scene.fogEnd, scene.fogDensity);
                this._effect.setColor3("vFogColor", scene.fogColor);
            }
            _super.prototype.bind.call(this, world, mesh);
        };
        TriPlanarMaterial.prototype.getAnimatables = function () {
            var results = [];
            if (this.mixTexture && this.mixTexture.animations && this.mixTexture.animations.length > 0) {
                results.push(this.mixTexture);
            }
            return results;
        };
        TriPlanarMaterial.prototype.dispose = function (forceDisposeEffect) {
            if (this.mixTexture) {
                this.mixTexture.dispose();
            }
            _super.prototype.dispose.call(this, forceDisposeEffect);
        };
        TriPlanarMaterial.prototype.clone = function (name) {
            var _this = this;
            return BABYLON.SerializationHelper.Clone(function () { return new TriPlanarMaterial(name, _this.getScene()); }, this);
        };
        TriPlanarMaterial.prototype.serialize = function () {
            var serializationObject = BABYLON.SerializationHelper.Serialize(this);
            serializationObject.customType = "BABYLON.TriPlanarMaterial";
            return serializationObject;
        };
        // Statics
        TriPlanarMaterial.Parse = function (source, scene, rootUrl) {
            return BABYLON.SerializationHelper.Parse(function () { return new TriPlanarMaterial(source.name, scene); }, source, scene, rootUrl);
        };
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "mixTexture", void 0);
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "diffuseTextureX", void 0);
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "diffuseTextureY", void 0);
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "diffuseTextureZ", void 0);
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "normalTextureX", void 0);
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "normalTextureY", void 0);
        __decorate([
            BABYLON.serializeAsTexture()
        ], TriPlanarMaterial.prototype, "normalTextureZ", void 0);
        __decorate([
            BABYLON.serialize()
        ], TriPlanarMaterial.prototype, "tileSize", void 0);
        __decorate([
            BABYLON.serializeAsColor3()
        ], TriPlanarMaterial.prototype, "diffuseColor", void 0);
        __decorate([
            BABYLON.serializeAsColor3()
        ], TriPlanarMaterial.prototype, "specularColor", void 0);
        __decorate([
            BABYLON.serialize()
        ], TriPlanarMaterial.prototype, "specularPower", void 0);
        __decorate([
            BABYLON.serialize()
        ], TriPlanarMaterial.prototype, "disableLighting", void 0);
        return TriPlanarMaterial;
    }(BABYLON.Material));
    BABYLON.TriPlanarMaterial = TriPlanarMaterial;
})(BABYLON || (BABYLON = {}));


text:
import { BrowserWindow } from "electron";
import { Store } from "redux";
import { ActionCommand } from "./types";

export const dispatchCommandInMain = <
  STORE extends Store, // <- renderer store type, different from main
  COMMAND extends ActionCommand<STORE, PROPS>,
  PROPS
>(
  command: COMMAND,
  props: PROPS,
) => {
  if (command.runInMainThread) {
    command.runInMainThread(props);
  }

  const focusedWindow = BrowserWindow.getFocusedWindow();
  if (focusedWindow) {
    focusedWindow.webContents.send("command", command.name, props);
  }
};

export const dispatchCommandInRenderer = <
  STORE extends Store<any, any>,
  COMMAND extends ActionCommand<STORE, PROPS>,
  PROPS
>(
  store: STORE,
  command: COMMAND,
  props: PROPS,
) => {
  if (command.makeAction) {
    store.dispatch(command.makeAction(props));
  }

  if (command.makeActions) {
    const actions = command.makeActions(store, props);
    Promise.resolve(actions).then(
      async result => {
        for await (const action of result) {
          store.dispatch(await action);
        }
      },
    );
  }
};


text:
package com.battlelancer.seriesguide.loaders;

import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import com.battlelancer.seriesguide.R;
import com.battlelancer.seriesguide.SgApp;
import com.battlelancer.seriesguide.settings.TraktCredentials;
import com.battlelancer.seriesguide.traktapi.SgTrakt;
import com.uwetrottmann.androidutils.AndroidUtils;
import com.uwetrottmann.androidutils.GenericSimpleLoader;
import com.uwetrottmann.trakt5.entities.HistoryEntry;
import com.uwetrottmann.trakt5.services.Users;
import dagger.Lazy;
import java.io.IOException;
import java.util.List;
import javax.inject.Inject;
import retrofit2.Call;
import retrofit2.Response;

/**
 * Loads the last few episodes watched on trakt.
 */
public class TraktEpisodeHistoryLoader
        extends GenericSimpleLoader<TraktEpisodeHistoryLoader.Result> {

    public static class Result {
        public List<HistoryEntry> results;
        public String emptyText;

        public Result(List<HistoryEntry> results, String emptyText) {
            this.results = results;
            this.emptyText = emptyText;
        }
    }

    @Inject Lazy<Users> traktUsers;

    public TraktEpisodeHistoryLoader(Activity activity) {
        super(activity);
        SgApp.from(activity).getServicesComponent().inject(this);
    }

    @Override
    public Result loadInBackground() {
        if (!TraktCredentials.get(getContext()).hasCredentials()) {
            return buildResultFailure(R.string.trakt_error_credentials);
        }

        List<HistoryEntry> history = null;
        try {
            Response<List<HistoryEntry>> response = buildCall().execute();
            if (response.isSuccessful()) {
                history = response.body();
            } else {
                if (SgTrakt.isUnauthorized(getContext(), response)) {
                    return buildResultFailure(R.string.trakt_error_credentials);
                }
                SgTrakt.trackFailedRequest(getContext(), getAction(), response);
            }
        } catch (IOException e) {
            SgTrakt.trackFailedRequest(getContext(), getAction(), e);
            return AndroidUtils.isNetworkConnected(getContext())
                    ? buildResultFailure() : buildResultFailure(R.string.offline);
        }

        if (history == null) {
            return buildResultFailure();
        } else {
            return new Result(history, getContext().getString(getEmptyText()));
        }
    }

    @NonNull
    protected String getAction() {
        return "get user episode history";
    }

    @StringRes
    protected int getEmptyText() {
        return R.string.user_stream_empty;
    }

    protected Call<List<HistoryEntry>> buildCall() {
        return TraktRecentEpisodeHistoryLoader.buildUserEpisodeHistoryCall(traktUsers.get());
    }

    private Result buildResultFailure() {
        return new Result(null, getContext().getString(R.string.api_error_generic,
                getContext().getString(R.string.trakt)));
    }

    private Result buildResultFailure(@StringRes int emptyTextResId) {
        return new Result(null, getContext().getString(emptyTextResId));
    }
}


text:
Work Experience

Add something here

Product Manager

Micro Focus  /  2016 - Present

1 Year

Developed product initiatives and strategies for Application, Mobile, and Virtualization solutions. Defined feature-functionality for release candidates, POVs, priorities, and roadmaps across core teams.

Product Manager

Softlayer, an IBM Company  /  2012 - 2016

4 Years

Drove new product creation from ideation to adoption for sophisticated cloud ecosystems and services. Outlined marketing investments against key competitors, steered courses for technology initiatives, and delivered product offerings to market.

Senior Product Manager

Neopost  /  2007 - 2012

5 Years

Cultivated pipelines to new digital, e-commerce, and cloud-based markets. Researched market needs, designed product offerings, and drove the product vision, value proposition, messaging, and go-to-market planning for customer-facing products.

Technical Product Manager

Neopost  /  2003 - 2017

4 Years

Orchestrated software releases, implementations, and launch efforts. Served as the technical interface between Software Development, Quality Assurance, and Release Management.


text:
export class FefResponsiveHelper {

    /**
     * Returns true if current breakpoint is 'smartphone'
     *
     * @returns {boolean}
     */
    static isSmartphone() {
        return this.getBreakpoint() === 'smartphone';
    }

    /**
     * Returns true if current breakpoint is 'tablet'
     *
     * @returns {boolean}
     */
    static isTablet() {
        return this.getBreakpoint() === 'tablet';
    }

    /**
     * Returns true if current breakpoint is NOT 'smartphone'
     *
     * @returns {boolean}
     */
    static isTabletUp() {
        return !this.isSmartphone();
    }

    /**
     * Returns true if current breakpoint is 'desktop'
     *
     * @returns {boolean}
     */
    static isDesktop() {
        return this.getBreakpoint() === 'desktop';
    }

    /**
     * Returns true if current breakpoint is 'desktop' or 'desktop-wide'
     *
     * @returns {boolean}
     */
    static isDesktopUp() {
        return this.isDesktop() || this.isDesktopWide();
    }

    /**
     * Returns true if current breakpoint is 'desktop-wide'
     *
     * @returns {boolean}
     */
    static isDesktopWide() {
        return this.getBreakpoint() === 'desktop-wide';
    }

    /**
     * Returns the content of the body::before pseudo-element which contains the
     * breakpoint string set via css media queries in _breakpoints.scss
     *
     * @returns {string}
     */
    static getBreakpoint() {
        return window.getComputedStyle(document.querySelector('body'), '::before').getPropertyValue('content').replace(/\"/g, '');
    }
}


text:
package com.jecelyin.common.github;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * GitHub issue model class.
 */
public class Issue implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 6358575015023539051L;

    private int id;
    private int number;

    private String body;
    private List<String> labels;
    private String title;

    /**
     * @return body
     */
    public String getBody() {
        return body;
    }

    /**
     * @param body
     * @return this issue
     */
    public Issue setBody(String body) {
        this.body = body;
        return this;
    }

    /**
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title
     * @return this issue
     */
    public Issue setTitle(String title) {
        this.title = title;
        return this;
    }

    public int getId() {
        return id;
    }

    public Issue setId(int id) {
        this.id = id;
        return this;
    }

    public int getNumber() {
        return number;
    }

    public Issue setNumber(int number) {
        this.number = number;
        return this;
    }

    /**
     * @return labels
     */
    public List<String> getLabels() {
        return labels;
    }

    /**
     * @param labels
     * @return this issue
     */
    public Issue setLabels(List<String> labels) {
        this.labels = labels != null ? new ArrayList<String>(labels) : null;
        return this;
    }

    public Issue setLabel(String label) {
        if (this.labels == null)
            this.labels = new ArrayList<>();
        labels.add(label);
        return this;
    }
}


text:
#ifndef WebSocketHandleClient_h
#define WebSocketHandleClient_h

#include "WebCommon.h"
#include "WebString.h"
#include "public/platform/WebSocketHandle.h"

namespace blink {

class WebSocketHandshakeRequestInfo;
class WebSocketHandshakeResponseInfo;

class WebSocketHandleClient {
public:
    // Called when the handle is opened.
    virtual void didConnect(WebSocketHandle*, const WebString& selectedProtocol, const WebString& extensions) = 0;
    // FIXME: Remove this once content side change is committed.
    virtual void didConnect(WebSocketHandle* handle, bool fail, const WebString& selectedProtocol, const WebString& extensions)
    {
        if (fail) {
            didFail(handle, WebString());
        } else {
            didConnect(handle, selectedProtocol, extensions);
        }
    }

    // Called when the browser starts the opening handshake.
    // This notification can be omitted when the inspector is not active.
    virtual void didStartOpeningHandshake(WebSocketHandle*, const WebSocketHandshakeRequestInfo&) = 0;

    // Called when the browser finishes the opening handshake.
    // This notification precedes didConnect.
    // This notification can be omitted when the inspector is not active.
    virtual void didFinishOpeningHandshake(WebSocketHandle*, const WebSocketHandshakeResponseInfo&) = 0;

    // Called when the browser is required to fail the connection.
    // |message| can be displayed in the inspector, but should not be passed
    // to scripts.
    // This message also implies that channel is closed with
    // (wasClean = false, code = 1006, reason = "") and
    // |handle| becomes unavailable.
    virtual void didFail(WebSocketHandle* /* handle */, const WebString& message) = 0;

    // Called when data are received.
    virtual void didReceiveData(WebSocketHandle*, bool fin, WebSocketHandle::MessageType, const char* data, size_t /* size */) = 0;

    // Called when the handle is closed.
    // |handle| becomes unavailable once this notification arrives.
    virtual void didClose(WebSocketHandle* /* handle */, bool wasClean, unsigned short code, const WebString& reason) = 0;

    virtual void didReceiveFlowControl(WebSocketHandle*, int64_t quota) = 0;

    // Called when the browser receives a Close frame from the remote
    // server. Not called when the renderer initiates the closing handshake.
    virtual void didStartClosingHandshake(WebSocketHandle*) = 0;
};

} // namespace blink

#endif // WebSocketHandleClient_h


text:
package io.puntanegra.fhir.index;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;

import java.io.File;
import java.io.FileReader;
import java.util.Calendar;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.hl7.fhir.dstu3.model.CodeableConcept;
import org.hl7.fhir.dstu3.model.Coding;
import org.hl7.fhir.dstu3.model.ContactPoint;
import org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem;
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender;
import org.hl7.fhir.dstu3.model.HumanName;
import org.hl7.fhir.dstu3.model.Identifier;
import org.hl7.fhir.dstu3.model.Patient;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.junit.Test;

import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
import io.puntanegra.fhir.index.search.SearchParamExtractorHelper;
import io.puntanegra.fhir.index.search.datatypes.AbstractSearchParam;
import io.puntanegra.fhir.index.search.datatypes.SearchParamDates;
import io.puntanegra.fhir.index.search.datatypes.SearchParamToken;
import io.puntanegra.fhir.index.search.datatypes.SearchParamTypes;

public class SearchParamExtractorTest {
	private FhirVersionEnum fhirVersion = FhirVersionEnum.DSTU3;
	private FhirContext ctx = new FhirContext(fhirVersion);
	private SearchParamExtractorHelper helper = new SearchParamExtractorHelper(FhirVersionEnum.DSTU3);

	@Test
	public void testExtractParam() throws Exception {
		FileReader fileReader = new FileReader(
				new File(this.getClass().getClassLoader().getResource("fhir/observation_example001.json").getPath()));
		IBaseResource resource = ctx.newJsonParser().parseResource(fileReader);

		Set<String> parameters = new HashSet<String>();
		parameters.add("code");
		parameters.add("value-quantity");
		parameters.add("date");

		Set<AbstractSearchParam> values = helper.extractParametersValues(resource, parameters);

		assertNotNull(values);
		assertFalse(values.isEmpty());

		for (AbstractSearchParam entry : values) {
			String ename = entry.getName();
			SearchParamTypes type = entry.getType();

			if (SearchParamTypes.TOKEN == type) {
				SearchParamToken token = (SearchParamToken) entry;
				if (ename.equals("code") && "http://loinc.org".equals(token.getSystem())) {
					assertEquals("12345-5", token.getCode());
				}
			}if (SearchParamTypes.DATE == type) {
				SearchParamDates dates = (SearchParamDates) entry;
				if (ename.equals("date")) {
					Calendar date= Calendar.getInstance();
					date.setTime(dates.getValue());
					assertEquals(4, date.get(Calendar.MONTH));
				}
			}
		}
	}

	@Test
	public void testLoadPatient() throws Exception {
		FileReader fileReader = new FileReader(
				new File(this.getClass().getClassLoader().getResource("fhir/patient_f001.json").getPath()));
		IBaseResource resource = ctx.newJsonParser().parseResource(fileReader);

		Set<String> parameters = new HashSet<String>();
		parameters.add("name");
		parameters.add("email");

		Set<AbstractSearchParam> values = helper.extractParametersValues(resource, parameters);

		assertNotNull(values);
		assertFalse(values.isEmpty());

		for (AbstractSearchParam entry : values) {
			String ename = entry.getName();
			SearchParamTypes type = entry.getType();

			if (SearchParamTypes.STRING == type) {
				if (ename.equals("name")) {
					assertEquals("van de Heuvel Pieter", entry.getValue());
				}
			}

			if (SearchParamTypes.TOKEN == type) {
				SearchParamToken token = (SearchParamToken) entry;
				if (ename.equals("email")) {
					assertEquals("email", token.getSystem());

					List<ContactPoint> contacts = ((Patient) resource).getTelecom();
					for (ContactPoint contactPoint : contacts) {
						if (ContactPointSystem.EMAIL == contactPoint.getSystem()) {
							assertEquals(contactPoint.getValue(), token.getCode());
						}
					}
				}
			}
		}
	}

	@Test
	public void testSearchParamValues() {

		Patient patient = new Patient();
		patient.setId("253345");

		Calendar c = Calendar.getInstance();
		c.set(1998, 3, 3);
		patient.setBirthDate(c.getTime());

		CodeableConcept language = patient.addCommunication().getLanguage();
		language.setText("Nederlands");

		Coding coding = language.addCoding();
		coding.setSystem("urn:ietf:bcp:47");
		coding.setCode("nl");
		coding.setDisplay("Dutch");
		patient.addCommunication().setLanguage(language);

		HumanName name = patient.addName();
		name.addFamily("Smith");
		name.addGiven("Rob").addGiven("Jon");

		Identifier id = new Identifier();
		id.setValue("253345");
		id.setSystem("urn:mrns");
		patient.addIdentifier(id);
		// patient.getManagingOrganization().setReference("Organization/124362");

		patient.setGender(AdministrativeGender.MALE);
		ContactPoint cp = new ContactPoint();
		cp.setSystem(ContactPointSystem.EMAIL);
		cp.setValue("rob@gmail.com");
		patient.addTelecom(cp);

		// Coded types can naturally be set using plain strings
		Coding statusCoding = patient.getMaritalStatus().addCoding();
		statusCoding.setSystem("http://hl7.org/fhir/v3/MaritalStatus");
		statusCoding.setCode("M");
		statusCoding.setDisplay("Married");

		Set<String> parameters = new HashSet<String>();
		parameters.add("family");
		parameters.add("email");
		parameters.add("identifier");
		parameters.add("birthdate");
		parameters.add("name");
		parameters.add("language");

		Set<AbstractSearchParam> values = helper.extractParametersValues(patient, parameters);

		assertNotNull(values);
		assertFalse(values.isEmpty());

		for (AbstractSearchParam entry : values) {
			String ename = entry.getName();
			SearchParamTypes type = entry.getType();

			if (SearchParamTypes.STRING == type) {
				if (ename.equals("family")) {
					assertEquals("Smith", entry.getValue());
				}

				if (ename.equals("identifier")) {
					assertEquals("253345", entry.getValue());
				}
			}

			if (SearchParamTypes.TOKEN == type) {
				SearchParamToken token = (SearchParamToken) entry;
				if (ename.equals("email")) {
					assertEquals("email", token.getSystem());
					assertEquals("rob@gmail.com", token.getCode());
				}

				if (ename.equals("identifier")) {
					assertEquals("urn:mrns", token.getSystem());
				}

				if (ename.equals("language")) {
					assertEquals("nl", token.getCode());
					assertEquals("urn:ietf:bcp:47", token.getSystem());
				}
			}

			if (SearchParamTypes.DATE == type) {
				SearchParamDates dates = (SearchParamDates) entry;

				if (ename.equals("birthdate")) {
					assertEquals(c.getTime().getTime(), dates.getValue().getTime());
				}
			}
		}
	}

}


text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/services/shared_set_service.proto

package com.google.ads.googleads.v10.services;

public interface MutateSharedSetResultOrBuilder extends
    // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.MutateSharedSetResult)
    com.google.protobuf.MessageOrBuilder {

  /**
   *

   * Returned for successful operations.
   *

   *
   * string resource_name = 1 [(.google.api.resource_reference) = { ... }
   * @return The resourceName.
   */
  java.lang.String getResourceName();
  /**
   *

   * Returned for successful operations.
   *

   *
   * string resource_name = 1 [(.google.api.resource_reference) = { ... }
   * @return The bytes for resourceName.
   */
  com.google.protobuf.ByteString
      getResourceNameBytes();

  /**
   *

   * The mutated shared set with only mutable fields after mutate. The field
   * will only be returned when response_content_type is set to
   * "MUTABLE_RESOURCE".
   *

   *
   * .google.ads.googleads.v10.resources.SharedSet shared_set = 2;
   * @return Whether the sharedSet field is set.
   */
  boolean hasSharedSet();
  /**
   *

   * The mutated shared set with only mutable fields after mutate. The field
   * will only be returned when response_content_type is set to
   * "MUTABLE_RESOURCE".
   *

   *
   * .google.ads.googleads.v10.resources.SharedSet shared_set = 2;
   * @return The sharedSet.
   */
  com.google.ads.googleads.v10.resources.SharedSet getSharedSet();
  /**
   *

   * The mutated shared set with only mutable fields after mutate. The field
   * will only be returned when response_content_type is set to
   * "MUTABLE_RESOURCE".
   *

   *
   * .google.ads.googleads.v10.resources.SharedSet shared_set = 2;
   */
  com.google.ads.googleads.v10.resources.SharedSetOrBuilder getSharedSetOrBuilder();
}


text:
package com.waka.workspace.wakapedometer.weather;

import java.util.List;

/**
 * 天气基本信息
 * <p/>
 * Created by waka on 2016/4/9.
 */
public class WeatherBean {

    /**
     * 请求下来的JSON总字段
     */
    public static final String TOTAL_NAME = "HeWeather data service 3.0";

    private String status;//接口状态,参考http://www.heweather.com/documents/api

    private Basic basic;//基本信息

    private Now now;//实况天气

    private AirQuality aqi;//空气质量

    private List<DailyForecast> daily_forecast;//7天天气预报

    private List<HourlyForecast> hourly_forecast;//每三小时天气预报,全能版为每小时预报

    private Suggestion suggestion;//生活指数,仅限国内城市,国际城市无此字段

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Basic getBasic() {
        return basic;
    }

    public void setBasic(Basic basic) {
        this.basic = basic;
    }

    public Now getNow() {
        return now;
    }

    public void setNow(Now now) {
        this.now = now;
    }

    public AirQuality getAqi() {
        return aqi;
    }

    public void setAqi(AirQuality aqi) {
        this.aqi = aqi;
    }

    public List<DailyForecast> getDaily_forecast() {
        return daily_forecast;
    }

    public void setDaily_forecast(List<DailyForecast> daily_forecast) {
        this.daily_forecast = daily_forecast;
    }

    public List<HourlyForecast> getHourly_forecast() {
        return hourly_forecast;
    }

    public void setHourly_forecast(List<HourlyForecast> hourly_forecast) {
        this.hourly_forecast = hourly_forecast;
    }

    public Suggestion getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(Suggestion suggestion) {
        this.suggestion = suggestion;
    }

    /**
     * 空气质量
     */
    public class AirQuality {

        private City city;

        public City getCity() {
            return city;
        }

        public void setCity(City city) {
            this.city = city;
        }

        /**
         * 空气质量中的城市
         */
        public class City {

            private String aqi;//空气质量指数
            private String co;//一氧化碳1小时平均值(ug/m³)
            private String no2;//二氧化氮1小时平均值(ug/m³)
            private String o3;//臭氧1小时平均值(ug/m³)
            private String pm10;//PM10 1小时平均值(ug/m³)
            private String pm25;//PM2.5 1小时平均值(ug/m³)
            private String qlty;//空气质量类别
            private String so2;//二氧化硫1小时平均值(ug/m³)

            public String getAqi() {
                return aqi;
            }

            public void setAqi(String aqi) {
                this.aqi = aqi;
            }

            public String getCo() {
                return co;
            }

            public void setCo(String co) {
                this.co = co;
            }

            public String getNo2() {
                return no2;
            }

            public void setNo2(String no2) {
                this.no2 = no2;
            }

            public String getO3() {
                return o3;
            }

            public void setO3(String o3) {
                this.o3 = o3;
            }

            public String getPm10() {
                return pm10;
            }

            public void setPm10(String pm10) {
                this.pm10 = pm10;
            }

            public String getPm25() {
                return pm25;
            }

            public void setPm25(String pm25) {
                this.pm25 = pm25;
            }

            public String getQlty() {
                return qlty;
            }

            public void setQlty(String qlty) {
                this.qlty = qlty;
            }

            public String getSo2() {
                return so2;
            }

            public void setSo2(String so2) {
                this.so2 = so2;
            }
        }
    }

    /**
     * 基本信息
     */
    public class Basic {

        private String city;//城市名称
        private String cnty;//国家
        private String id;//城市ID,参见http://www.heweather.com/documents/cn-city-list
        private String lat;//城市维度
        private String lon;//城市经度
        private Update update;//更新时间

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getCnty() {
            return cnty;
        }

        public void setCnty(String cnty) {
            this.cnty = cnty;
        }

        public String getId() {
            return id;
        }

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

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getLon() {
            return lon;
        }

        public void setLon(String lon) {
            this.lon = lon;
        }

        public Update getUpdate() {
            return update;
        }

        public void setUpdate(Update update) {
            this.update = update;
        }

        /**
         * 更新时间
         */
        public class Update {

            private String loc;//当地时间
            private String utc;//UTC时间

            public String getLoc() {
                return loc;
            }

            public void setLoc(String loc) {
                this.loc = loc;
            }

            public String getUtc() {
                return utc;
            }

            public void setUtc(String utc) {
                this.utc = utc;
            }
        }

    }

    /**
     * 实况天气
     */
    public class Now {

        private String fl;//体感温度
        private String hum;//相对湿度(%)
        private String pcpn;//降水量(mm)
        private String pres;//气压
        private String tmp;//温度
        private String vis;//能见度(km)

        private Condition cond;//天气状况
        private Wind wind;//风力风向

        public String getFl() {
            return fl;
        }

        public void setFl(String fl) {
            this.fl = fl;
        }

        public String getHum() {
            return hum;
        }

        public void setHum(String hum) {
            this.hum = hum;
        }

        public String getPcpn() {
            return pcpn;
        }

        public void setPcpn(String pcpn) {
            this.pcpn = pcpn;
        }

        public String getPres() {
            return pres;
        }

        public void setPres(String pres) {
            this.pres = pres;
        }

        public String getTmp() {
            return tmp;
        }

        public void setTmp(String tmp) {
            this.tmp = tmp;
        }

        public String getVis() {
            return vis;
        }

        public void setVis(String vis) {
            this.vis = vis;
        }

        public Condition getCond() {
            return cond;
        }

        public void setCond(Condition cond) {
            this.cond = cond;
        }

        public Wind getWind() {
            return wind;
        }

        public void setWind(Wind wind) {
            this.wind = wind;
        }

        /**
         * 天气状况
         */
        public class Condition {

            private String code;//天气状况代码
            private String txt;//天气状况描述

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getTxt() {
                return txt;
            }

            public void setTxt(String txt) {
                this.txt = txt;
            }
        }

        /**
         * 风力风向
         */
        public class Wind {

            private String deg;//风向(360度)
            private String dir;//风向
            private String sc;//风力
            private String spd;//风速(kmph)

            public String getDeg() {
                return deg;
            }

            public void setDeg(String deg) {
                this.deg = deg;
            }

            public String getDir() {
                return dir;
            }

            public void setDir(String dir) {
                this.dir = dir;
            }

            public String getSc() {
                return sc;
            }

            public void setSc(String sc) {
                this.sc = sc;
            }

            public String getSpd() {
                return spd;
            }

            public void setSpd(String spd) {
                this.spd = spd;
            }
        }
    }

    /**
     * 7天天气预报
     */
    public class DailyForecast {

        private String date;//预报日期
        private String hum;//相对湿度(%)
        private String pcpn;//降水量(mm)
        private String pop;//降水概率
        private String pres;//气压
        private String vis;//能见度(km)

        private AstronomicalData astro;//天文数值
        private Condition cond;//天气状况
        private Temperature tmp;//温度
        private Wind wind;//风力风向

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getHum() {
            return hum;
        }

        public void setHum(String hum) {
            this.hum = hum;
        }

        public String getPcpn() {
            return pcpn;
        }

        public void setPcpn(String pcpn) {
            this.pcpn = pcpn;
        }

        public String getPop() {
            return pop;
        }

        public void setPop(String pop) {
            this.pop = pop;
        }

        public String getPres() {
            return pres;
        }

        public void setPres(String pres) {
            this.pres = pres;
        }

        public String getVis() {
            return vis;
        }

        public void setVis(String vis) {
            this.vis = vis;
        }

        public AstronomicalData getAstro() {
            return astro;
        }

        public void setAstro(AstronomicalData astro) {
            this.astro = astro;
        }

        public Condition getCond() {
            return cond;
        }

        public void setCond(Condition cond) {
            this.cond = cond;
        }

        public Temperature getTmp() {
            return tmp;
        }

        public void setTmp(Temperature tmp) {
            this.tmp = tmp;
        }

        public Wind getWind() {
            return wind;
        }

        public void setWind(Wind wind) {
            this.wind = wind;
        }

        /**
         * 天文数值
         */
        public class AstronomicalData {

            private String sr;//日出时间
            private String ss;//日落时间

            public String getSr() {
                return sr;
            }

            public void setSr(String sr) {
                this.sr = sr;
            }

            public String getSs() {
                return ss;
            }

            public void setSs(String ss) {
                this.ss = ss;
            }
        }

        /**
         * 天气状况
         */
        public class Condition {

            private String code_d;//白天天气状况代码,参考http://www.heweather.com/documents/condition-code
            private String code_n;//夜间天气状况代码
            private String txt_d;//白天天气状况描述
            private String txt_n;//夜间天气状况描述

            public String getCode_d() {
                return code_d;
            }

            public void setCode_d(String code_d) {
                this.code_d = code_d;
            }

            public String getCode_n() {
                return code_n;
            }

            public void setCode_n(String code_n) {
                this.code_n = code_n;
            }

            public String getTxt_d() {
                return txt_d;
            }

            public void setTxt_d(String txt_d) {
                this.txt_d = txt_d;
            }

            public String getTxt_n() {
                return txt_n;
            }

            public void setTxt_n(String txt_n) {
                this.txt_n = txt_n;
            }
        }

        /**
         * 温度
         */
        public class Temperature {

            private String max; //最高温度
            private String min; //最低温度

            public String getMax() {
                return max;
            }

            public void setMax(String max) {
                this.max = max;
            }

            public String getMin() {
                return min;
            }

            public void setMin(String min) {
                this.min = min;
            }
        }

        /**
         * 风力风向
         */
        public class Wind {

            private String deg;//风向(360度)
            private String dir;//风向
            private String sc;//风力
            private String spd;//风速(kmph)

            public String getDeg() {
                return deg;
            }

            public void setDeg(String deg) {
                this.deg = deg;
            }

            public String getDir() {
                return dir;
            }

            public void setDir(String dir) {
                this.dir = dir;
            }

            public String getSc() {
                return sc;
            }

            public void setSc(String sc) {
                this.sc = sc;
            }

            public String getSpd() {
                return spd;
            }

            public void setSpd(String spd) {
                this.spd = spd;
            }
        }
    }

    /**
     * 每三小时天气预报
     */
    public class HourlyForecast {

        private String date;//时间
        private String hum;//相对湿度(%)
        private String pop;//降水概率
        private String pres;//气压
        private String tmp;//温度

        private Wind wind;//风力风向

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getHum() {
            return hum;
        }

        public void setHum(String hum) {
            this.hum = hum;
        }

        public String getPop() {
            return pop;
        }

        public void setPop(String pop) {
            this.pop = pop;
        }

        public String getPres() {
            return pres;
        }

        public void setPres(String pres) {
            this.pres = pres;
        }

        public String getTmp() {
            return tmp;
        }

        public void setTmp(String tmp) {
            this.tmp = tmp;
        }

        public Wind getWind() {
            return wind;
        }

        public void setWind(Wind wind) {
            this.wind = wind;
        }

        /**
         * 风力风向
         */
        public class Wind {

            private String deg;//风向(360度)
            private String dir;//风向
            private String sc;//风力
            private String spd;//风速(kmph)

            public String getDeg() {
                return deg;
            }

            public void setDeg(String deg) {
                this.deg = deg;
            }

            public String getDir() {
                return dir;
            }

            public void setDir(String dir) {
                this.dir = dir;
            }

            public String getSc() {
                return sc;
            }

            public void setSc(String sc) {
                this.sc = sc;
            }

            public String getSpd() {
                return spd;
            }

            public void setSpd(String spd) {
                this.spd = spd;
            }
        }
    }

    /**
     * 生活指数,仅限国内城市,国际城市无此字段
     */
    public class Suggestion {

        private Level comf;//舒适度指数
        private Level cw;//洗车指数
        private Level drsg;//穿衣指数
        private Level flu;//感冒指数
        private Level sport;//运动指数
        private Level trav;//旅游指数
        private Level uv;//紫外线指数

        public Level getComf() {
            return comf;
        }

        public void setComf(Level comf) {
            this.comf = comf;
        }

        public Level getCw() {
            return cw;
        }

        public void setCw(Level cw) {
            this.cw = cw;
        }

        public Level getDrsg() {
            return drsg;
        }

        public void setDrsg(Level drsg) {
            this.drsg = drsg;
        }

        public Level getFlu() {
            return flu;
        }

        public void setFlu(Level flu) {
            this.flu = flu;
        }

        public Level getSport() {
            return sport;
        }

        public void setSport(Level sport) {
            this.sport = sport;
        }

        public Level getTrav() {
            return trav;
        }

        public void setTrav(Level trav) {
            this.trav = trav;
        }

        public Level getUv() {
            return uv;
        }

        public void setUv(Level uv) {
            this.uv = uv;
        }

        /**
         * 各种指数
         */
        public class Level {

            private String type;//类型,不在JSON数据中,本地新增字段
            private int iconId;//图片id,不在JSON数据中,本地新增字段
            private String brf;//简介
            private String txt;//详细描述

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public int getIconId() {
                return iconId;
            }

            public void setIconId(int iconId) {
                this.iconId = iconId;
            }

            public String getBrf() {
                return brf;
            }

            public void setBrf(String brf) {
                this.brf = brf;
            }

            public String getTxt() {
                return txt;
            }

            public void setTxt(String txt) {
                this.txt = txt;
            }
        }
    }
}


text:
<app-toolbar [appTitle]="appTitle"
             [appVersion]="appVersion"
             (onLogout)="logout()"
             isSignedIn>

  <nav md-tab-nav-bar
       class="content">
    <a md-tab-link
       class="vertical-aligned"
       *ngFor="let link of navLinks"
       [routerLink]="link.link"
       routerLinkActive #rla="routerLinkActive"
       [active]="rla.isActive"
       [class.active]="rla.isActive">
      {{ link.label.toUpperCase() }}
    </a>

    <button md-button
            routerLink="/home/upload"
            class="vertical-aligned btn-upload"
            color="accent">UPLOAD</button>
  </nav>
</app-toolbar>

<div class="upload">
  <button md-fab
          *ngIf="!isUpload"
          color="warn"
          routerLink="/home/upload">
    <md-icon aria-label="Upload">add</md-icon>
  </button>
</div>

<router-outlet></router-outlet>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Uses of Class org.apache.fop.afp.AFPResourceLevel (Apache FOP 1.0 API)
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

fop 1.0

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Class
org.apache.fop.afp.AFPResourceLevel

Packages that use AFPResourceLevel

org.apache.fop.afp
Contains an AFP library.

org.apache.fop.render.afp
An AFP Renderer implementation and supporting classes.

Uses of AFPResourceLevel in org.apache.fop.afp

Fields in org.apache.fop.afp declared as AFPResourceLevel

static AFPResourceLevel
AFPResourceInfo.DEFAULT_LEVEL

          the general default resource level

Methods in org.apache.fop.afp that return AFPResourceLevel

 AFPResourceLevel
AFPResourceLevelDefaults.getDefaultResourceLevel(byte type)

          Returns the default resource level for a particular resource type.

static AFPResourceLevel
AFPResourceLevel.valueOf(java.lang.String levelString)

          Sets the resource placement level within the AFP output

 AFPResourceLevel
AFPResourceInfo.getLevel()

          Returns the resource level

Methods in org.apache.fop.afp with parameters of type AFPResourceLevel

 ResourceGroup
AFPStreamer.getResourceGroup(AFPResourceLevel level)

          Returns the resource group for a given resource info

 void
AFPResourceLevelDefaults.setDefaultResourceLevel(java.lang.String type,
                        AFPResourceLevel level)

          Sets the default resource level for a particular resource type.

 void
AFPResourceLevelDefaults.setDefaultResourceLevel(byte type,
                        AFPResourceLevel level)

          Sets the default resource level for a particular resource type.

 ResourceGroup
DataStream.getResourceGroup(AFPResourceLevel level)

          Returns the resource group for a given resource info

 void
AFPResourceInfo.setLevel(AFPResourceLevel resourceLevel)

          Sets the resource level

Uses of AFPResourceLevel in org.apache.fop.render.afp

Methods in org.apache.fop.render.afp that return AFPResourceLevel

 AFPResourceLevel
AFPForeignAttributeReader.getResourceLevel(java.util.Map foreignAttributes)

          Returns the resource level

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

fop 1.0

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.


text:
package com.facebook.buck.cxx;

import com.facebook.buck.cxx.toolchain.linker.Linker;
import com.facebook.buck.model.Flavor;
import com.facebook.buck.util.immutables.BuckStylePackageVisibleTuple;
import org.immutables.value.Value;

@Value.Immutable
@BuckStylePackageVisibleTuple
abstract class AbstractNativeLinkableCacheKey {
  public abstract Flavor getFlavor();

  public abstract Linker.LinkableDepType getType();

  public abstract boolean getForceLinkWhole();
};


text:
/*
 * File: main.c
 * Author: GAndaLF
 * Brief: Main file for hw_test_template target.
 */

#include "platform_specific.h"

/* Project includes */
#include "core_init/core_init.h"
#include "logger/logger.h"
#include "vbat/vbat.h"

#include "initial_states_task.h"

int main(void)
{
    core_init();

    /* Place your initialisation code here. */
    vbat_task_init();
    initial_states_test_task_init();
    logger_task_init();

    /* Place your application code here. */
    vTaskStartScheduler();

    while (1)
        ;
}


text:
<?php

// @codingStandardsIgnoreFile

namespace Magento\Framework\File\Transfer\Adapter;

class Http
{
    /**
     * @var \Magento\Framework\HTTP\PhpEnvironment\Response
     */
    private $response;

    /**
     * @var \Magento\Framework\File\Mime
     */
    private $mime;

    /**
     * @param \Magento\Framework\App\Response\Http
     * @param \Magento\Framework\File\Mime $mime
     */
    public function __construct(\Magento\Framework\HTTP\PhpEnvironment\Response $response, \Magento\Framework\File\Mime $mime)
    {
        $this->response = $response;
        $this->mime = $mime;
    }

    /**
     * Send the file to the client (Download)
     *
     * @param  string|array $options Options for the file(s) to send
     * @throws \UnexpectedValueException
     * @throws \InvalidArgumentException
     * @return void
     */
    public function send($options = null)
    {
        if (is_string($options)) {
            $filepath = $options;
        } elseif (is_array($options) && isset($options['filepath'])) {
            $filepath = $options['filepath'];
        } else {
            throw new \InvalidArgumentException("Filename is not set.");
        }

        if (!is_file($filepath) || !is_readable($filepath)) {
            throw new \InvalidArgumentException("File '{$filepath}' does not exists.");
        }

        $mimeType = $this->mime->getMimeType($filepath);

        $this->response->setHeader('Content-length', filesize($filepath));
        $this->response->setHeader('Content-Type', $mimeType);

        $this->response->sendHeaders();

        $handle = fopen($filepath, 'r');
        if ($handle) {
            while (($buffer = fgets($handle, 4096)) !== false) {
                echo $buffer;
            }
            if (!feof($handle)) {
                throw new \UnexpectedValueException("Unexpected end of file");
            }
            fclose($handle);
        }
    }
}


text:
<?php

namespace Symfony\Bridge\Twig;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;

/**
 * Exposes some Symfony parameters and services as an "app" global variable.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class AppVariable
{
    private $tokenStorage;
    private $requestStack;
    private $environment;
    private $debug;

    public function setTokenStorage(TokenStorageInterface $tokenStorage)
    {
        $this->tokenStorage = $tokenStorage;
    }

    public function setRequestStack(RequestStack $requestStack)
    {
        $this->requestStack = $requestStack;
    }

    public function setEnvironment($environment)
    {
        $this->environment = $environment;
    }

    public function setDebug($debug)
    {
        $this->debug = (bool) $debug;
    }

    /**
     * Returns the current token.
     *
     * @return TokenInterface|null
     *
     * @throws \RuntimeException When the TokenStorage is not available
     */
    public function getToken()
    {
        if (null === $tokenStorage = $this->tokenStorage) {
            throw new \RuntimeException('The "app.token" variable is not available.');
        }

        return $tokenStorage->getToken();
    }

    /**
     * Returns the current user.
     *
     * @return mixed
     *
     * @see TokenInterface::getUser()
     */
    public function getUser()
    {
        if (null === $tokenStorage = $this->tokenStorage) {
            throw new \RuntimeException('The "app.user" variable is not available.');
        }

        if (!$token = $tokenStorage->getToken()) {
            return;
        }

        $user = $token->getUser();
        if (\is_object($user)) {
            return $user;
        }
    }

    /**
     * Returns the current request.
     *
     * @return Request|null The HTTP request object
     */
    public function getRequest()
    {
        if (null === $this->requestStack) {
            throw new \RuntimeException('The "app.request" variable is not available.');
        }

        return $this->requestStack->getCurrentRequest();
    }

    /**
     * Returns the current session.
     *
     * @return Session|null The session
     */
    public function getSession()
    {
        if (null === $this->requestStack) {
            throw new \RuntimeException('The "app.session" variable is not available.');
        }

        if ($request = $this->getRequest()) {
            return $request->getSession();
        }
    }

    /**
     * Returns the current app environment.
     *
     * @return string The current environment string (e.g 'dev')
     */
    public function getEnvironment()
    {
        if (null === $this->environment) {
            throw new \RuntimeException('The "app.environment" variable is not available.');
        }

        return $this->environment;
    }

    /**
     * Returns the current app debug mode.
     *
     * @return bool The current debug mode
     */
    public function getDebug()
    {
        if (null === $this->debug) {
            throw new \RuntimeException('The "app.debug" variable is not available.');
        }

        return $this->debug;
    }

    /**
     * Returns some or all the existing flash messages:
     *  * getFlashes() returns all the flash messages
     *  * getFlashes('notice') returns a simple array with flash messages of that type
     *  * getFlashes(['notice', 'error']) returns a nested array of type => messages.
     *
     * @return array
     */
    public function getFlashes($types = null)
    {
        try {
            $session = $this->getSession();
            if (null === $session) {
                return [];
            }
        } catch (\RuntimeException $e) {
            return [];
        }

        if (null === $types || '' === $types || [] === $types) {
            return $session->getFlashBag()->all();
        }

        if (\is_string($types)) {
            return $session->getFlashBag()->get($types);
        }

        $result = [];
        foreach ($types as $type) {
            $result[$type] = $session->getFlashBag()->get($type);
        }

        return $result;
    }
}


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.sas.brd.dao.hibernate;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.search.Query;
import org.hibernate.Session;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author tzuhsien
 */
public class HibernateSearchToolsTest {

    public HibernateSearchToolsTest() {
    }

    @BeforeClass
    public static void setUpClass() {
    }

    @AfterClass
    public static void tearDownClass() {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of generateQuery method, of class HibernateSearchTools.
     * @throws java.lang.Exception
     */
    @Test
    public void testGenerateQuery() throws Exception {
        System.out.println("generateQuery");
        String searchTerm = "";
        Class searchedEntity = null;
        Session sess = null;
        Analyzer defaultAnalyzer = null;
        Query expResult = null;
        Query result = HibernateSearchTools.generateQuery(searchTerm, searchedEntity, sess, defaultAnalyzer);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of reindex method, of class HibernateSearchTools.
     */
    @Test
    public void testReindex() {
        System.out.println("reindex");
        Class clazz = null;
        Session sess = null;
        HibernateSearchTools.reindex(clazz, sess);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of reindexAll method, of class HibernateSearchTools.
     */
    @Test
    public void testReindexAll() {
        System.out.println("reindexAll");
        boolean async = false;
        Session sess = null;
        HibernateSearchTools.reindexAll(async, sess);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

}