text:
// Global polygon mesh
var boxMesh;
// Global scene object
var scene;
// Global camera object
var camera;
// The cube has to rotate around all three axes, so we need three rotation values.
// x, y and z rotation
var xRotation = 0.0;
var yRotation = 0.0;
// Rotation speed around x and y axis
var xSpeed = 0.0;
var ySpeed = 0.0;
// Translation along the z axis
var zTranslation = 5;

const imageCount = 42;
const channelCount = 7;

var channels = {
	"path":[
		"images/coloredmovie_4datasets/",
		"images/coloredmovie_4datasets/grayscale/nuclei",
		"images/coloredmovie_4datasets/grayscale/dpERK",
		"images/coloredmovie_4datasets/grayscale/twist",
		"images/coloredmovie_4datasets/grayscale/dorsal",
		"images/coloredmovie_4datasets/grayscale/ind",
		"images/coloredmovie_4datasets/grayscale/rhomboid",
	],
	"name":[
		"all ",
		"nuclei ",
		"dpERK ",
		"twist ",
		"dorsal ",
		"ind ",
		"rhomboid ",
	]
};

// Texture and flag for current texture filter
var textureArray = {};
var channelLoaded = [];
var manager = [];
for (ch = 0; ch < channelCount; ++ch) {
	channelLoaded[ch] = false;
	manager.push(new THREE.LoadingManager());
	manager[ch].ch = ch;
	manager[ch].onLoad = function() {
		channelLoaded[this.ch] = true;
		if (this.ch == 0) {
			selectTexture(0, 0);
		}
	};
}

var slider;

// Initialize the scene
initializeScene();

// Instead of calling 'renderScene()', we call a new function: 'animateScene()'. It will
// update the rotation values and call 'renderScene()' in a loop.
// Animate the scene
animateScene();

/**
 * Initialize the scene
 */
function initializeScene() {
	// Check whether the browser supports WebGL. If so, instantiate the hardware accelerated
	// WebGL renderer. For antialiasing, we have to enable it. The canvas renderer uses
	// antialiasing by default.
	// The approach of multiple renderers is quite nice, because your scene can also be
	// viewed in browsers, which don't support WebGL. The limitations of the canvas renderer
	// in contrast to the WebGL renderer will be explained in the tutorials, when there is a
	// difference.
	webGLAvailable = false;
	if (Detector.webgl) {
		renderer = new THREE.WebGLRenderer({antialias:true});
		webGLAvailable = true;
		// document.getElementById("overlaytext").innerHTML += "WebGL Renderer";
		// If its not supported, instantiate the canvas renderer to support all non WebGL
		// browsers
	} else {
		renderer = new THREE.CanvasRenderer();
		//document.getElementById("overlaytext").innerHTML += "Canvas Renderer";
	}

	// Set the background color
	renderer.setClearColor(0xc000000);

	// Get the size of the inner window (content area) to create a full size renderer
	canvasWidth = window.innerWidth/1.5;
	canvasHeight = window.innerHeight/1.5;

	// Set the renderers size to the content areas size
	renderer.setSize(canvasWidth, canvasHeight);

	// Get the DIV element from the HTML document by its ID and append the renderers DOM
	// object to it
	document.getElementById("WebGLCanvas").appendChild(renderer.domElement);

	// Create the scene, in which all objects are stored (e. g. camera, lights,
	// geometries, ...)
	scene = new THREE.Scene();

	// Now that we have a scene, we want to look into it. Therefore we need a camera.
	// Three.js offers three camera types:
	//  - PerspectiveCamera (perspective projection)
	//  - OrthographicCamera (parallel projection)
	//  - CombinedCamera (allows to switch between perspective / parallel projection
	//    during runtime)
	// In this example we create a perspective camera. Parameters for the perspective
	// camera are ...
	// ... field of view (FOV),
	// ... aspect ratio (usually set to the quotient of canvas width to canvas height)
	// ... near and
	// ... far.
	// Near and far define the cliping planes of the view frustum. Three.js provides an
	// example (http://mrdoob.github.com/three.js/examples/
	// -> canvas_camera_orthographic2.html), which allows to play around with these
	// parameters.
	// The camera is moved 10 units towards the z axis to allow looking to the center of
	// the scene.
	// After definition, the camera has to be added to the scene.
	camera = new THREE.PerspectiveCamera(45, canvasWidth / canvasHeight, 1, 100);
	camera.position.set(0, 0, 10);
	camera.lookAt(scene.position);
	scene.add(camera);

	var boxMaterial = new THREE.MeshBasicMaterial({
		 side:THREE.DoubleSide
	});
	// Create the cube
	boxGeometry = new THREE.BoxGeometry(2.0, 2.0, 2.0);
	// Create a mesh and insert the geometry and the material. Translate the whole mesh
	// by 1.5 on the x axis and by 4 on the z axis and add the mesh to the scene.
	boxMesh = new THREE.Mesh(boxGeometry, boxMaterial);
	boxMesh.position.set(0.0, 0.0, 4.0);
	scene.add(boxMesh);

	// Load an image as texture
	for (ch = 0; ch < channelCount; ++ch) {
		var textureLoader = new THREE.TextureLoader(manager[ch]);
		for (img = 0; img < imageCount; ++img) {
			textureArray[ch * imageCount + img] = textureLoader.load(channels.path[ch].concat(img+1,".png"));
		}
	}

	// // Ambient light has no direction, it illuminates every object with the same
	// // intensity. If only ambient light is used, no shading effects will occur.
	// var ambientLight = new THREE.AmbientLight(0x101010, 1.0);
	// scene.add(ambientLight);

	// // Directional light has a source and shines in all directions, like the sun.
	// // This behaviour creates shading effects.
	// directionalLight = new THREE.DirectionalLight(0xffffff, 1.0);
	// directionalLight.position.set(0.0, 0.0, 1.0);
	// scene.add(directionalLight);

	// Add a listener for 'keydown' events. By this listener, all key events will be
	// passed to the function 'onDocumentKeyDown'. There's another event type 'keypress'.
	// It will report only the visible characters like 'a', but not the function keys
	// like 'cursor up'.
	document.addEventListener("keydown", onDocumentKeyDown, false);

	// Add a listener for input with slider -> change time step
	document.addEventListener("input", onSlide, false);

	// Add a listener for double click -> change channel
	document.addEventListener('dblclick', onDblClick, false);

	// // Ambient light has no direction, it illuminates every object with the same
	// // intensity. If only ambient light is used, no shading effects will occur.
	// ambientLight = new THREE.AmbientLight(0x404040);
	// scene.add(ambientLight);

	// // Directional light has a source and shines in all directions, like the sun.
	// // This behaviour creates shading effects.

	// directionalLight = new THREE.PointLight(0xffffff);
	// directionalLight.position.set(250,250,250);
	// scene.add(directionalLight);
}

/**
 * Select current texture to display in loaded texture arrays
 */
function selectTexture(channel, image) {
	boxMesh.material.map = textureArray[channel * imageCount + image];
	document.getElementById("overlaytext").innerHTML = channels.name[channel].concat(image+1);
	document.getElementById("myRange").value = image;
}

/**
 * This function is called, when a key is pushed down.
 */
function onDocumentKeyDown(event) {
	this.currentImage = this.currentImage || 0;
	this.currentChannel = this.currentChannel || 0;

	// Get the key code of the pressed key
	var keyCode = event.which;
	if (keyCode == enums.keyboard.SPACE) {	// SWITCH CHANNEL
		if (this.currentChannel < channelCount - 1 && channelLoaded[this.currentChannel+1]) {
			++this.currentChannel;
		} else {
			this.currentChannel = 0;
		}

	} else if(keyCode == enums.keyboard.KEY_W) {	// ROTATE UP
		xSpeed -= 0.01;
	} else if(keyCode == enums.keyboard.KEY_S) {	// ROTATE DOWN
		xSpeed += 0.01;
	} else if(keyCode == enums.keyboard.KEY_A) {	// ROTATE LEFT
		ySpeed -= 0.01;
	} else if(keyCode == enums.keyboard.KEY_D) {	// ROTATE RIGHT
		ySpeed += 0.01;

	} else if(keyCode == enums.keyboard.LEFT_ARROW) {	// NEXT IMAGE
		if (this.currentImage > 0) {
			--this.currentImage;
		} else {
			this.currentImage = imageCount - 1;
		}

	} else if(keyCode == enums.keyboard.RIGHT_ARROW) {	// PREVIOUS IMAGE
		if (this.currentImage < imageCount - 1) {
			++this.currentImage;
		} else {
			this.currentImage = 0;
		}

		// Page up
	} else if(keyCode == enums.keyboard.UP_ARROW) {	// ZOOM IN
		zTranslation += 0.2;
		// Page down
	} else if(keyCode == enums.keyboard.DOWN_ARROW) {	// ZOOM OUT
		zTranslation -= 0.2;
	}
	else if(keyCode == enums.keyboard.KEY_R) {	// RESET VIEW
		xRotation = 0.0;
		yRotation = 0.0;
		xSpeed = 0.0;
		ySpeed = 0.0;
		zTranslation = 5;
 }
	selectTexture(this.currentChannel, this.currentImage);
}

function onSlide(event){
	this.currentImage = this.currentImage || 0;
	this.currentChannel = this.currentChannel || 0;
	this.currentImage = parseInt(document.getElementById("myRange").value);
	selectTexture(this.currentChannel, this.currentImage);
}

function onDblClick(event) {
	this.currentImage = this.currentImage || 0;
	this.currentChannel = this.currentChannel || 0;
	if (this.currentChannel < channelCount - 1 && channelLoaded[this.currentChannel+1]) {
			++this.currentChannel;
		} else {
			this.currentChannel = 0;
	}
	selectTexture(this.currentChannel, this.currentImage);
}

/**
* Animate the scene and call rendering.
*/
function animateScene() {
	//directionalLight.position = camera.position;
	if (channelLoaded[0]) {
		// Increase the x, y and z rotation of the cube
	  xRotation += xSpeed;
	  yRotation += ySpeed;
	  boxMesh.rotation.set(xRotation, yRotation, 0.0);

	  // Apply the the translation along the z axis
	  boxMesh.position.z = zTranslation;
		// Map the 3D scene down to the 2D screen (render the frame)
		renderScene();
	}

	// Define the function, which is called by the browser supported timer loop. If the
	// browser tab is not visible, the animation is paused. So 'animateScene()' is called
	// in a browser controlled loop.
	requestAnimationFrame(animateScene);
}

/**
* Render the scene. Map the 3D world to the 2D screen.
*/
function renderScene() {
	renderer.render(scene, camera);
}


text:
package org.oyach.jvm.parse.attribute;

import org.oyach.jvm.parse.Attributes;

import java.util.List;

/**
 * description
 *
 * @author oyach
 * @since 0.0.1
 */
public class Code extends Attribute {

    private final int maxStack;

    private final int maxLocals;

    private final byte[] code;

    private final List<CodeException> codeExceptions;

    private final Attributes attributes;

    Code(int maxStack, int maxLocals, byte[] code, List<CodeException> codeExceptions, Attributes attributes) {
        super(AttributeType.CODE);
        this.maxStack = maxStack;
        this.maxLocals = maxLocals;
        this.code = code;
        this.codeExceptions = codeExceptions;
        this.attributes = attributes;
    }

    public byte[] getCode() {
        return code;
    }

    public int getMaxLocals() {
        return maxLocals;
    }

    public List<CodeException> getCodeExceptions() {
        return codeExceptions;
    }
}

redpajama_set_name: RedPajamaGithub


text:
Expired deprecation of multidimensional indexing with non-tuple values
----------------------------------------------------------------------

Multidimensional indexing with anything but a tuple was
deprecated in NumPy 1.15.

Previously, code such as ``arr[ind]`` where ``ind = [[0, 1], [0, 1]]``
produced a ``FutureWarning`` and was interpreted as a multidimensional
index (i.e., ``arr[tuple(ind)]``). Now this example is treated like an
array index over a single dimension (``arr[array(ind)]``).


text:
#ifndef SERIAL_H
#define SERIAL_H

#include <stdint.h>

void init_serial_port(void);
void write_debug_char(uint8_t ch);
void write_debug_str(char *str);

#endif /* SERIAL_H */


text:
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level2/version3" level="2" version="3">
  <model id="case00938" name="case00938">
    <notes>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p> Originally created by libAntimony 1.4 (using libSBML 5.0.0-a1) </p>
      </body>
    </notes>
    <listOfUnitDefinitions>
      <unitDefinition id="volume">
        <listOfUnits>
          <unit kind="litre"/>
        </listOfUnits>
      </unitDefinition>
      <unitDefinition id="substance">
        <listOfUnits>
          <unit kind="mole"/>
        </listOfUnits>
      </unitDefinition>
      <unitDefinition id="time">
        <listOfUnits>
          <unit kind="second"/>
        </listOfUnits>
      </unitDefinition>
    </listOfUnitDefinitions>
    <listOfCompartments>
      <compartment id="default_compartment" size="1" units="volume"/>
    </listOfCompartments>
    <listOfSpecies>
      <species id="x" compartment="default_compartment" substanceUnits="substance"/>
    </listOfSpecies>
    <listOfParameters>
      <parameter id="y" constant="false"/>
    </listOfParameters>
    <listOfInitialAssignments>
      <initialAssignment symbol="x">
        <math xmlns="http://www.w3.org/1998/Math/MathML">
          <apply>
            <times/>
            <cn type="integer"> 1 </cn>
            <apply>
              <sin/>
              <apply>
                <times/>
                <cn type="integer"> 10 </cn>
                <csymbol encoding="text" definitionURL="http://www.sbml.org/sbml/symbols/time"> time </csymbol>
              </apply>
            </apply>
          </apply>
        </math>
      </initialAssignment>
    </listOfInitialAssignments>
    <listOfRules>
      <assignmentRule variable="y">
        <math xmlns="http://www.w3.org/1998/Math/MathML">
          <apply>
            <plus/>
            <cn type="integer"> 2 </cn>
            <apply>
              <csymbol encoding="text" definitionURL="http://www.sbml.org/sbml/symbols/delay"> delay </csymbol>
              <ci> x </ci>
              <cn> 0.2 </cn>
            </apply>
          </apply>
        </math>
      </assignmentRule>
    </listOfRules>
    <listOfReactions>
      <reaction reversible="false" id="_J0" fast="false">
        <listOfProducts>
          <speciesReference species="x"/>
        </listOfProducts>
        <kineticLaw>
          <math xmlns="http://www.w3.org/1998/Math/MathML">
            <cn type="integer"> 1 </cn>
          </math>
        </kineticLaw>
      </reaction>
    </listOfReactions>
  </model>
</sbml>


text:
import Ember from 'ember';

export default Ember.Controller.extend({
  session: Ember.inject.service(),
  sessionAccount: Ember.inject.service(),
});


text:
import os
import warnings
import logging

logger = logging.getLogger('RMD_READER')

from pelican import readers
from pelican import signals
from pelican import settings

knitr = None
rmd = False
fig_path = None

def initsignal(pelicanobj):
    global knitr, rmd, fig_path, robjects
    try:
        with warnings.catch_warnings():
            warnings.simplefilter("ignore")
            from rpy2.robjects.packages import importr
            import rpy2.robjects as robjects
        knitr = importr('knitr')
        idx = knitr.opts_knit.names.index('set')
        PATH = pelicanobj.settings.get('PATH','%s/content' % settings.DEFAULT_CONFIG.get('PATH'))
        logger.debug("RMD_READER PATH = %s", PATH)
        knitr.opts_knit[idx](**{'base.dir': PATH})
        knitroptsknit = pelicanobj.settings.get('RMD_READER_KNITR_OPTS_KNIT', None)
        if knitroptsknit:
            knitr.opts_knit[idx](**{str(k): v for k,v in knitroptsknit.items()})
        idx = knitr.opts_chunk.names.index('set')
        knitroptschunk = pelicanobj.settings.get('RMD_READER_KNITR_OPTS_CHUNK', None)
        if knitroptschunk:
            fig_path = knitroptschunk['fig.path'] if 'fig.path' in knitroptschunk else 'figure/'
            knitr.opts_chunk[idx](**{str(k): v for k,v in knitroptschunk.items()})
        rmd = True
    except ImportError as ex:
        rmd = False

class RmdReader(readers.BaseReader):
    file_extensions = ['Rmd', 'rmd']

    @property
    def enabled():
        return rmd

    # You need to have a read method, which takes a filename and returns
    # some content and the associated metadata.
    def read(self, filename):
        """Parse content and metadata of markdown files"""
        QUIET = self.settings.get('RMD_READER_KNITR_QUIET', True)
        ENCODING = self.settings.get('RMD_READER_KNITR_ENCODING', 'UTF-8')
        CLEANUP = self.settings.get('RMD_READER_CLEANUP', True)
        RENAME_PLOT = self.settings.get('RMD_READER_RENAME_PLOT', 'chunklabel')
        if type(RENAME_PLOT) is bool:
            logger.error("RMD_READER_RENAME_PLOT takes a string value (either chunklabel or directory), please see the readme.")
            if RENAME_PLOT:
                RENAME_PLOT = 'chunklabel'
                logger.error("Defaulting to chunklabel")
            else:
                RENAME_PLOT = 'disabled'
                logger.error("Disabling plot renaming")
        logger.debug("RMD_READER_KNITR_QUIET = %s", QUIET)
        logger.debug("RMD_READER_KNITR_ENCODING = %s", ENCODING)
        logger.debug("RMD_READER_CLEANUP = %s", CLEANUP)
        logger.debug("RMD_READER_RENAME_PLOT = %s", RENAME_PLOT)
        # replace single backslashes with double backslashes
        filename = filename.replace('\\', '\\\\')
        # parse Rmd file - generate md file
        md_filename = filename.replace('.Rmd', '.aux').replace('.rmd', '.aux')
        if RENAME_PLOT == 'chunklabel' or RENAME_PLOT == 'directory':
            if RENAME_PLOT == 'chunklabel':
                chunk_label = os.path.splitext(os.path.basename(filename))[0]
                logger.debug('Chunk label: %s', chunk_label)
            elif RENAME_PLOT == 'directory':
                chunk_label = 'unnamed-chunk'
                PATH = self.settings.get('PATH','%s/content' % settings.DEFAULT_CONFIG.get('PATH'))
                src_name = os.path.splitext(os.path.relpath(filename, PATH))[0]
                idx = knitr.opts_chunk.names.index('set')
                knitroptschunk = { 'fig.path': '%s-' % os.path.join(fig_path, src_name) }
                knitr.opts_chunk[idx](**{str(k): v for k,v in knitroptschunk.items()})
                logger.debug('Figures path: %s, chunk label: %s', knitroptschunk['fig.path'], chunk_label)
            robjects.r('''
opts_knit$set(unnamed.chunk.label="{unnamed_chunk_label}")
render_markdown()
hook_plot <- knit_hooks$get('plot')
knit_hooks$set(plot=function(x, options) hook_plot(paste0("{{filename}}/", x), options))
            '''.format(unnamed_chunk_label=chunk_label))
        knitr.knit(filename, md_filename, quiet=QUIET, encoding=ENCODING)
        # read md file - create a MarkdownReader
        md_reader = readers.MarkdownReader(self.settings)
        content, metadata = md_reader.read(md_filename)
        # remove md file
        if CLEANUP:
            os.remove(md_filename)
        return content, metadata

def add_reader(readers):
    readers.reader_classes['rmd'] = RmdReader

def register():
    signals.readers_init.connect(add_reader)
    signals.initialized.connect(initsignal)


text:
using Microsoft.PowerBI.Api.V2.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Threading.Tasks;

namespace gbrueckl.PowerBI.API.PowerBIObjects
{
    public class PBIRow : Row, IPBIObject
    {
        #region Constructors
        public PBIRow(Dictionary<string, object> values)
        {
            Values = values;
        }
        #endregion
        #region Public Properties
        [JsonProperty(PropertyName = "id", NullValueHandling = NullValueHandling.Ignore)]
        public new string Id { get { return null; } set { } }

        [JsonExtensionData]
        private Dictionary<string, object> Values { get; set; }
        [JsonIgnore]
        public PBITable ParentTable { get; set; }

        [JsonIgnore]
        public string JSON { get { return PBIJsonHelper.SerializeObject(this); } }

        public string ApiURL
        {
            get { return null; }
        }

        public PBIGroup ParentGroup
        {
            get
            {
                return ((IPBIObject)ParentTable).ParentGroup;
            }
        }

        public IPBIObject ParentObject
        {
            get
            {
                return ((IPBIObject)ParentTable).ParentObject;
            }
        }

        public PBIAPIClient ParentPowerBIAPI
        {
            get
            {
                return ((IPBIObject)ParentTable).ParentPowerBIAPI;
            }
            set {
                throw new NotImplementedException("Cannot set the ParentPowerBIAPI of a Row. It is always derived from its ParentTable!");
            }
        }
        #endregion

        #region Public Functions
        public void PublishToPowerBI(PBIAPIClient powerBiAPI = null)
        {
            if (ParentTable == null)
                throw new Exception("Cannot add row to PowerBI table as the object is not linked to a Table in PowerBI!");

            ParentTable.PushRowToPowerBI(this, powerBiAPI);
        }

        public void SetValue(string key, object value)
        {
            if (!Values.ContainsKey(key))
                throw new KeyNotFoundException(string.Format("The key '{0}' was not found in the Row!"));

            Values[key] = value;
        }

        public void SetValues(Dictionary<string, object> newValues)
        {
            if(newValues.Count != Values.Count)
                throw new IndexOutOfRangeException(string.Format("The number of new Values does not match the number of Columns in the Row!"));

            foreach(KeyValuePair<string, object> kvp in newValues)
            {
                Values[kvp.Key] = kvp.Value;
            }
        }

        public void AddValue(string key, object value)
        {
            if (!Values.ContainsKey(key))
                throw new KeyNotFoundException(string.Format("The key '{0}' was not found in the Row!"));

            Values.Add(key, value);
        }
        #endregion
    }
}


text:
<?php

namespace Google\Service\CloudSearch;

class Filter extends \Google\Model
{
  protected $compositeFilterType = CompositeFilter::class;
  protected $compositeFilterDataType = '';
  protected $valueFilterType = ValueFilter::class;
  protected $valueFilterDataType = '';

  /**
   * @param CompositeFilter
   */
  public function setCompositeFilter(CompositeFilter $compositeFilter)
  {
    $this->compositeFilter = $compositeFilter;
  }
  /**
   * @return CompositeFilter
   */
  public function getCompositeFilter()
  {
    return $this->compositeFilter;
  }
  /**
   * @param ValueFilter
   */
  public function setValueFilter(ValueFilter $valueFilter)
  {
    $this->valueFilter = $valueFilter;
  }
  /**
   * @return ValueFilter
   */
  public function getValueFilter()
  {
    return $this->valueFilter;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Filter::class, 'Google_Service_CloudSearch_Filter');


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.alan.kutilssample.MainActivity">

    <include
        android:id="@+id/actionbarss"
        style="@style/actionbar"
        layout="@layout/actionbar_"/>

    <android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/sw"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/actionbarss">

        <android.support.v7.widget.RecyclerView
            android:id="@+id/rv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            ></android.support.v7.widget.RecyclerView>

    </android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>


text:
All URIs are relative to *https://api.pitneybowes.com/location-intelligence*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getCategoryCodeMetadata**](LIAPIGeoEnrichServiceApi.md#getCategoryCodeMetadata) | **GET** /geoenrich/v1/metadata/category | Returns Category Codes with their sub-categories (if exist), descriptions and SIC Codes mapping
[**getPOIById**](LIAPIGeoEnrichServiceApi.md#getPOIById) | **GET** /geoenrich/v1/poi/{id} | Point of Interest By Id.
[**getPOIsByAddress**](LIAPIGeoEnrichServiceApi.md#getPOIsByAddress) | **GET** /geoenrich/v1/poi/byaddress | Points of Interest By Address.
[**getPOIsByArea**](LIAPIGeoEnrichServiceApi.md#getPOIsByArea) | **GET** /geoenrich/v1/poi/byarea | Points of Interest By Area.
[**getPOIsByGeometry**](LIAPIGeoEnrichServiceApi.md#getPOIsByGeometry) | **POST** /geoenrich/v1/poi/byboundary | Point of Interests By Geometry.
[**getPOIsByLocation**](LIAPIGeoEnrichServiceApi.md#getPOIsByLocation) | **GET** /geoenrich/v1/poi/bylocation | Points of Interest By Location.
[**getPOIsCount**](LIAPIGeoEnrichServiceApi.md#getPOIsCount) | **POST** /geoenrich/v1/poicount | Point of Interests count By Geometry.
[**getPlaceByLocation**](LIAPIGeoEnrichServiceApi.md#getPlaceByLocation) | **GET** /geoenrich/v1/place/bylocation | Place By Location.
[**getSICMetadata**](LIAPIGeoEnrichServiceApi.md#getSICMetadata) | **GET** /geoenrich/v1/metadata/sic | Returns SIC Codes with their Industry Titles and Category Codes mapping
[**poisAutocomplete**](LIAPIGeoEnrichServiceApi.md#poisAutocomplete) | **GET** /geoenrich/v1/poi/autocomplete | Points of Interest Autocomplete.

# **getCategoryCodeMetadata**
> GeoEnrichMetadataResponse getCategoryCodeMetadata(categoryCode, level)

Returns Category Codes with their sub-categories (if exist), descriptions and SIC Codes mapping

Accepts first partial digits or full category codes to filter the response

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String categoryCode = "categoryCode_example"; // String | Specify starting digits or full category code to filter the response
String level = "level_example"; // String | Allowed values are 1,2,3. If level=1, then only 4 digits category codes will be returned, level=2 means only 6 digits category codes   will be returned, level=3 means only 11 digits category codes will be returned. Multiple comma-separated values will also be accepted. So level='1,2' means return 4 digits and 6 digits category codes.
try {
    GeoEnrichMetadataResponse result = apiInstance.getCategoryCodeMetadata(categoryCode, level);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getCategoryCodeMetadata");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **categoryCode** | **String**| Specify starting digits or full category code to filter the response | [optional]
 **level** | **String**| Allowed values are 1,2,3. If level=1, then only 4 digits category codes will be returned, level=2 means only 6 digits category codes   will be returned, level=3 means only 11 digits category codes will be returned. Multiple comma-separated values will also be accepted. So level='1,2' means return 4 digits and 6 digits category codes. | [optional]

### Return type

[**GeoEnrichMetadataResponse**](GeoEnrichMetadataResponse.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml, text/csv

# **getPOIById**
> POIPlaces getPOIById(id)

Point of Interest By Id.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String id = "id_example"; // String | POI unique Identifier. Accepts only numbers.
try {
    POIPlaces result = apiInstance.getPOIById(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPOIById");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| POI unique Identifier. Accepts only numbers. |

### Return type

[**POIPlaces**](POIPlaces.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml

# **getPOIsByAddress**
> GeoEnrichResponse getPOIsByAddress(address, country, name, type, categoryCode, sicCode, maxCandidates, searchRadius, searchRadiusUnit, travelTime, travelTimeUnit, travelDistance, travelDistanceUnit, travelMode, sortBy, fuzzyOnName, page)

Points of Interest By Address.

Accepts address as an input to retrieve nearby points of interest.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String address = "address_example"; // String | Address
String country = "country_example"; // String | Country
String name = "name_example"; // String | Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1)
String type = "type_example"; // String | Matched against the content which defines the type of the poi.
String categoryCode = "categoryCode_example"; // String | Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx
String sicCode = "sicCode_example"; // String | Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes.
String maxCandidates = "maxCandidates_example"; // String | Maximum number of POIs that can be retrieved.
String searchRadius = "searchRadius_example"; // String | Radius range within which search is performed.
String searchRadiusUnit = "searchRadiusUnit_example"; // String | Radius unit such as Feet, Kilometers, Miles or Meters.
String travelTime = "travelTime_example"; // String | Specifies the travel time within which method searches for results (POIs which can be reached within travel time)the search boundary in terms of time mentioned in 'travelTimeUnit'. The results are retrieved from the polygon formed based on the travel time specified. This means search can be done in the mentioned time results be from the mentioned time.
String travelTimeUnit = "travelTimeUnit_example"; // String | Specifies acceptable time units.Allowed values Minutes,Hours,Seconds and Milliseconds
String travelDistance = "travelDistance_example"; // String | Specifies the search boundary in terms of distance mentioned in 'travelDistanceUnit'. The results are retrieved from the polygon formed based on the travel distance specified.
String travelDistanceUnit = "travelDistanceUnit_example"; // String | Specifies acceptable time units.Allowed values Feet,Kilometers,Miles and Meters
String travelMode = "travelMode_example"; // String | Specifies the available mode of commute. This is required when u r trying to do search by travel distance or travel time. Allowed values driving and walking
String sortBy = "distance"; // String | Specifies the order in which POIs are retrieved.
String fuzzyOnName = "fuzzyOnName_example"; // String | Allowed values are Y/N. If N, the search on name will not allow fuzziness.
String page = "page_example"; // String | Will support pagination, by default 1st page with maxCandidates results are returned.
try {
    GeoEnrichResponse result = apiInstance.getPOIsByAddress(address, country, name, type, categoryCode, sicCode, maxCandidates, searchRadius, searchRadiusUnit, travelTime, travelTimeUnit, travelDistance, travelDistanceUnit, travelMode, sortBy, fuzzyOnName, page);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPOIsByAddress");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **address** | **String**| Address |
 **country** | **String**| Country | [optional]
 **name** | **String**| Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1) | [optional]
 **type** | **String**| Matched against the content which defines the type of the poi.  | [optional]
 **categoryCode** | **String**| Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx  | [optional]
 **sicCode** | **String**| Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes. | [optional]
 **maxCandidates** | **String**| Maximum number of POIs that can be retrieved. | [optional]
 **searchRadius** | **String**| Radius range within which search is performed. | [optional]
 **searchRadiusUnit** | **String**| Radius unit such as Feet, Kilometers, Miles or Meters. | [optional]
 **travelTime** | **String**| Specifies the travel time within which method searches for results (POIs which can be reached within travel time)the search boundary in terms of time mentioned in 'travelTimeUnit'. The results are retrieved from the polygon formed based on the travel time specified. This means search can be done in the mentioned time results be from the mentioned time. | [optional]
 **travelTimeUnit** | **String**| Specifies acceptable time units.Allowed values Minutes,Hours,Seconds and Milliseconds | [optional] [enum: minutes, hours, seconds and milliseconds]
 **travelDistance** | **String**| Specifies the search boundary in terms of distance mentioned in 'travelDistanceUnit'. The results are retrieved from the polygon formed based on the travel distance specified. | [optional]
 **travelDistanceUnit** | **String**| Specifies acceptable time units.Allowed values Feet,Kilometers,Miles and Meters | [optional] [enum: feet, kilometers, miles and meters]
 **travelMode** | **String**| Specifies the available mode of commute. This is required when u r trying to do search by travel distance or travel time. Allowed values driving and walking | [optional] [enum: driving, walking]
 **sortBy** | **String**| Specifies the order in which POIs are retrieved. | [optional] [default to distance] [enum: distance, relevance]
 **fuzzyOnName** | **String**| Allowed values are Y/N. If N, the search on name will not allow fuzziness. | [optional]
 **page** | **String**| Will support pagination, by default 1st page with maxCandidates results are returned. | [optional]

### Return type

[**GeoEnrichResponse**](GeoEnrichResponse.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml, text/csv

# **getPOIsByArea**
> GeoEnrichResponse getPOIsByArea(country, areaName3, postcode1, postcode2, name, type, categoryCode, sicCode, maxCandidates, fuzzyOnName, page)

Points of Interest By Area.

Accepts postcode or city as an input to retrieve nearby points of interest.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String country = "country_example"; // String | Country
String areaName3 = "areaName3_example"; // String | Either areaName3 or postcode is required
String postcode1 = "postcode1_example"; // String | Either areaName3 or postcode is required
String postcode2 = "postcode2_example"; // String | postcode extension
String name = "name_example"; // String | Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1)
String type = "type_example"; // String | Matched against the content which defines the type of the poi.
String categoryCode = "categoryCode_example"; // String | Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx
String sicCode = "sicCode_example"; // String | Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes.
String maxCandidates = "maxCandidates_example"; // String | Maximum number of POIs that can be retrieved.
String fuzzyOnName = "fuzzyOnName_example"; // String | Allowed values are Y/N. If N, the search on name will not allow fuzziness.
String page = "page_example"; // String | Will support pagination, by default 1st page with maxCandidates results are returned.
try {
    GeoEnrichResponse result = apiInstance.getPOIsByArea(country, areaName3, postcode1, postcode2, name, type, categoryCode, sicCode, maxCandidates, fuzzyOnName, page);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPOIsByArea");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **country** | **String**| Country |
 **areaName3** | **String**| Either areaName3 or postcode is required | [optional]
 **postcode1** | **String**| Either areaName3 or postcode is required | [optional]
 **postcode2** | **String**| postcode extension | [optional]
 **name** | **String**| Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1) | [optional]
 **type** | **String**| Matched against the content which defines the type of the poi.  | [optional]
 **categoryCode** | **String**| Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx  | [optional]
 **sicCode** | **String**| Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes. | [optional]
 **maxCandidates** | **String**| Maximum number of POIs that can be retrieved. | [optional]
 **fuzzyOnName** | **String**| Allowed values are Y/N. If N, the search on name will not allow fuzziness. | [optional]
 **page** | **String**| Will support pagination, by default 1st page with maxCandidates results are returned. | [optional]

### Return type

[**GeoEnrichResponse**](GeoEnrichResponse.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml, text/csv

# **getPOIsByGeometry**
> Pois getPOIsByGeometry(accept, contentType, body)

Point of Interests By Geometry.

Accepts geometry as an input to retrieve nearby point of interests.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String accept = "accept_example"; // String |
String contentType = "contentType_example"; // String |
POIByGeometryRequest body = new POIByGeometryRequest(); // POIByGeometryRequest |
try {
    Pois result = apiInstance.getPOIsByGeometry(accept, contentType, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPOIsByGeometry");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accept** | **String**|  | [optional]
 **contentType** | **String**|  | [optional]
 **body** | [**POIByGeometryRequest**](POIByGeometryRequest.md)|  | [optional]

### Return type

[**Pois**](Pois.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml, text/csv

# **getPOIsByLocation**
> GeoEnrichResponse getPOIsByLocation(longitude, latitude, searchText, type, categoryCode, sicCode, maxCandidates, searchRadius, searchRadiusUnit, travelTime, travelTimeUnit, travelDistance, travelDistanceUnit, travelMode, sortBy, fuzzyOnName, page, searchOnNameOnly)

Points of Interest By Location.

Accepts longitude and latitude as an input to retrieve nearby points of interest.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String longitude = "longitude_example"; // String | Longitude of the location.
String latitude = "latitude_example"; // String | Latitude of the location.
String searchText = "searchText_example"; // String | Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1)
String type = "type_example"; // String | Matched against the content which defines the type of the poi.
String categoryCode = "categoryCode_example"; // String | Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx
String sicCode = "sicCode_example"; // String | Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes.
String maxCandidates = "maxCandidates_example"; // String | Maximum number of POIs that can be retrieved.
String searchRadius = "searchRadius_example"; // String | Radius range within which search is performed.
String searchRadiusUnit = "searchRadiusUnit_example"; // String | Radius unit such as Feet, Kilometers, Miles or Meters.
String travelTime = "travelTime_example"; // String | Specifies the travel time within which method searches for results (POIs which can be reached within travel time)the search boundary in terms of time mentioned in 'travelTimeUnit'. The results are retrieved from the polygon formed based on the travel time specified. This means search can be done in the mentioned time results be from the mentioned time.
String travelTimeUnit = "travelTimeUnit_example"; // String | Specifies acceptable time units.Allowed values Minutes,Hours,Seconds and Milliseconds
String travelDistance = "travelDistance_example"; // String | Specifies the search boundary in terms of distance mentioned in 'travelDistanceUnit'. The results are retrieved from the polygon formed based on the travel distance specified.
String travelDistanceUnit = "travelDistanceUnit_example"; // String | Specifies acceptable time units.Allowed values Feet,Kilometers,Miles and Meters
String travelMode = "travelMode_example"; // String | Specifies the available mode of commute. This is required when u r trying to do search by travel distance or travel time. Allowed values driving and walking
String sortBy = "distance"; // String | Specifies the order in which POIs are retrieved.
String fuzzyOnName = "fuzzyOnName_example"; // String | Allowed values are Y/N. If N, the search on name will not allow fuzziness.
String page = "page_example"; // String | Will support pagination, by default 1st page with maxCandidates results are returned.
String searchOnNameOnly = "searchOnNameOnly_example"; // String | search name description
try {
    GeoEnrichResponse result = apiInstance.getPOIsByLocation(longitude, latitude, searchText, type, categoryCode, sicCode, maxCandidates, searchRadius, searchRadiusUnit, travelTime, travelTimeUnit, travelDistance, travelDistanceUnit, travelMode, sortBy, fuzzyOnName, page, searchOnNameOnly);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPOIsByLocation");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **longitude** | **String**| Longitude of the location. |
 **latitude** | **String**| Latitude of the location. |
 **searchText** | **String**| Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1) | [optional]
 **type** | **String**| Matched against the content which defines the type of the poi.  | [optional]
 **categoryCode** | **String**| Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx  | [optional]
 **sicCode** | **String**| Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes. | [optional]
 **maxCandidates** | **String**| Maximum number of POIs that can be retrieved. | [optional]
 **searchRadius** | **String**| Radius range within which search is performed. | [optional]
 **searchRadiusUnit** | **String**| Radius unit such as Feet, Kilometers, Miles or Meters. | [optional]
 **travelTime** | **String**| Specifies the travel time within which method searches for results (POIs which can be reached within travel time)the search boundary in terms of time mentioned in 'travelTimeUnit'. The results are retrieved from the polygon formed based on the travel time specified. This means search can be done in the mentioned time results be from the mentioned time. | [optional]
 **travelTimeUnit** | **String**| Specifies acceptable time units.Allowed values Minutes,Hours,Seconds and Milliseconds | [optional] [enum: minutes, hours, seconds and milliseconds]
 **travelDistance** | **String**| Specifies the search boundary in terms of distance mentioned in 'travelDistanceUnit'. The results are retrieved from the polygon formed based on the travel distance specified. | [optional]
 **travelDistanceUnit** | **String**| Specifies acceptable time units.Allowed values Feet,Kilometers,Miles and Meters | [optional] [enum: feet, kilometers, miles and meters]
 **travelMode** | **String**| Specifies the available mode of commute. This is required when u r trying to do search by travel distance or travel time. Allowed values driving and walking | [optional] [enum: driving, walking]
 **sortBy** | **String**| Specifies the order in which POIs are retrieved. | [optional] [default to distance] [enum: distance, relevance]
 **fuzzyOnName** | **String**| Allowed values are Y/N. If N, the search on name will not allow fuzziness. | [optional]
 **page** | **String**| Will support pagination, by default 1st page with maxCandidates results are returned. | [optional]
 **searchOnNameOnly** | **String**| search name description | [optional]

### Return type

[**GeoEnrichResponse**](GeoEnrichResponse.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml, text/csv

# **getPOIsCount**
> PoiCount getPOIsCount(contentType, body)

Point of Interests count By Geometry.

Accepts geometry/loc/address as an input to count nearby point of interests.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String contentType = "contentType_example"; // String |
PoiCountRequest body = new PoiCountRequest(); // PoiCountRequest |
try {
    PoiCount result = apiInstance.getPOIsCount(contentType, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPOIsCount");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **contentType** | **String**|  | [optional]
 **body** | [**PoiCountRequest**](PoiCountRequest.md)|  | [optional]

### Return type

[**PoiCount**](PoiCount.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml

# **getPlaceByLocation**
> PlaceByLocations getPlaceByLocation(longitude, latitude, levelHint)

Place By Location.

Identifies and retrieves the nearest neighborhood around a specific location. This GeoEnrich service accepts latitude & longitude as input and returns a place name.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String longitude = "longitude_example"; // String | Longitude of the location.
String latitude = "latitude_example"; // String | Latitude of the location.
String levelHint = "levelHint_example"; // String | Numeric code of geographic hierarchy level which is classified at six levels.Allowed values 1,2,3,4,5,6
try {
    PlaceByLocations result = apiInstance.getPlaceByLocation(longitude, latitude, levelHint);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getPlaceByLocation");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **longitude** | **String**| Longitude of the location. |
 **latitude** | **String**| Latitude of the location. |
 **levelHint** | **String**| Numeric code of geographic hierarchy level which is classified at six levels.Allowed values 1,2,3,4,5,6 | [optional] [enum: 1, 2, 3, 4, 5, 6]

### Return type

[**PlaceByLocations**](PlaceByLocations.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/xml, application/json

# **getSICMetadata**
> GeoEnrichMetadataResponse getSICMetadata(sicCode, level)

Returns SIC Codes with their Industry Titles and Category Codes mapping

Accepts first few partial digits or full SIC codes to filter the response

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String sicCode = "sicCode_example"; // String | Specify starting digits or full sic code to filter the response
String level = "level_example"; // String | Allowed values are 1,2. If level=1, then only 4 digits sic codes will be returned, level=2 means only 8 digits sic codes will be returned. Multiple comma-separated values will also be accepted. So level='1,2' means return both 4 digits and 8 digits sic codes.
try {
    GeoEnrichMetadataResponse result = apiInstance.getSICMetadata(sicCode, level);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#getSICMetadata");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **sicCode** | **String**| Specify starting digits or full sic code to filter the response | [optional]
 **level** | **String**| Allowed values are 1,2. If level=1, then only 4 digits sic codes will be returned, level=2 means only 8 digits sic codes will be returned. Multiple comma-separated values will also be accepted. So level='1,2' means return both 4 digits and 8 digits sic codes. | [optional]

### Return type

[**GeoEnrichMetadataResponse**](GeoEnrichMetadataResponse.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml, text/csv

# **poisAutocomplete**
> GeoEnrichResponse poisAutocomplete(longitude, latitude, searchText, searchRadius, searchRadiusUnit, travelTime, travelTimeUnit, travelDistance, travelDistanceUnit, travelMode, country, areaName1, areaName3, postcode1, postcode2, ipAddress, autoDetectLocation, type, categoryCode, sicCode, maxCandidates, sortBy, searchOnNameOnly)

Points of Interest Autocomplete.

POIs-Autocomplete will return POIs predictions based on the full or partial words specified in the search.The search can then be narrowed based on Location, IP Address or Country along with other supporting filters.

### Example
```java
// Import classes:
//import pb.ApiClient;
//import pb.ApiException;
//import pb.Configuration;
//import pb.auth.*;
//import pb.locationintelligence.LIAPIGeoEnrichServiceApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API_KEY and SECRET for authorization: oAuth2Password
 ApiClient defaultClient = Configuration.getDefaultApiClient();
 defaultClient.setoAuthApiKey("<YOUR API KEY>");
 defaultClient.setoAuthSecret("<YOUR SECRET>");

LIAPIGeoEnrichServiceApi apiInstance = new LIAPIGeoEnrichServiceApi();
String longitude = "longitude_example"; // String | Longitude of the location.
String latitude = "latitude_example"; // String | Latitude of the location.
String searchText = "searchText_example"; // String | Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1)
String searchRadius = "searchRadius_example"; // String | Radius range within which search is performed.
String searchRadiusUnit = "searchRadiusUnit_example"; // String | Radius unit such as Feet, Kilometers, Miles or Meters.
String travelTime = "travelTime_example"; // String | Specifies the travel time within which method searches for results (POIs which can be reached within travel time)the search boundary in terms of time mentioned in 'travelTimeUnit'. The results are retrieved from the polygon formed based on the travel time specified. This means search can be done in the mentioned time results be from the mentioned time.
String travelTimeUnit = "travelTimeUnit_example"; // String | Specifies acceptable time units.Allowed values Minutes,Hours,Seconds and Milliseconds
String travelDistance = "travelDistance_example"; // String | Specifies the search boundary in terms of distance mentioned in 'travelDistanceUnit'. The results are retrieved from the polygon formed based on the travel distance specified.
String travelDistanceUnit = "travelDistanceUnit_example"; // String | Specifies acceptable time units.Allowed values Feet,Kilometers,Miles and Meters
String travelMode = "travelMode_example"; // String | Specifies the available mode of commute. This is required when u r trying to do search by travel distance or travel time. Allowed values driving and walking
String country = "country_example"; // String | Country
String areaName1 = "areaName1_example"; // String | Specifies the largest geographical area, typically a state or province.
String areaName3 = "areaName3_example"; // String | Specifies the name of the city or town.
String postcode1 = "postcode1_example"; // String | Postal Code of the input to be searched
String postcode2 = "postcode2_example"; // String | Postcode2
String ipAddress = "ipAddress_example"; // String | IP address of network connected device in standard IPv4 octet and a valid external address.
String autoDetectLocation = "autoDetectLocation_example"; // String | Specifies whether to auto-detect location from IP address. If 'True' is set, the location is detected from the specified ip address. If 'False' is set. the search will happen according to country or location.
String type = "type_example"; // String | Matched against the content which defines the type of the poi.
String categoryCode = "categoryCode_example"; // String | Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx
String sicCode = "sicCode_example"; // String | Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes.
String maxCandidates = "maxCandidates_example"; // String | Maximum number of POIs that can be retrieved.
String sortBy = "distance"; // String | Specifies the order in which POIs are retrieved.
String searchOnNameOnly = "searchOnNameOnly_example"; // String | specifies search on name
try {
    GeoEnrichResponse result = apiInstance.poisAutocomplete(longitude, latitude, searchText, searchRadius, searchRadiusUnit, travelTime, travelTimeUnit, travelDistance, travelDistanceUnit, travelMode, country, areaName1, areaName3, postcode1, postcode2, ipAddress, autoDetectLocation, type, categoryCode, sicCode, maxCandidates, sortBy, searchOnNameOnly);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LIAPIGeoEnrichServiceApi#poisAutocomplete");
    e.printStackTrace();
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **longitude** | **String**| Longitude of the location. | [optional]
 **latitude** | **String**| Latitude of the location. | [optional]
 **searchText** | **String**| Matched against Name, BrandName and Trade Name. Partial terms are also matched with fuzziness (max edit distance is 1) | [optional]
 **searchRadius** | **String**| Radius range within which search is performed. | [optional]
 **searchRadiusUnit** | **String**| Radius unit such as Feet, Kilometers, Miles or Meters. | [optional]
 **travelTime** | **String**| Specifies the travel time within which method searches for results (POIs which can be reached within travel time)the search boundary in terms of time mentioned in 'travelTimeUnit'. The results are retrieved from the polygon formed based on the travel time specified. This means search can be done in the mentioned time results be from the mentioned time. | [optional]
 **travelTimeUnit** | **String**| Specifies acceptable time units.Allowed values Minutes,Hours,Seconds and Milliseconds | [optional] [enum: minutes, hours, seconds and milliseconds]
 **travelDistance** | **String**| Specifies the search boundary in terms of distance mentioned in 'travelDistanceUnit'. The results are retrieved from the polygon formed based on the travel distance specified. | [optional]
 **travelDistanceUnit** | **String**| Specifies acceptable time units.Allowed values Feet,Kilometers,Miles and Meters | [optional] [enum: feet, kilometers, miles and meters]
 **travelMode** | **String**| Specifies the available mode of commute. This is required when u r trying to do search by travel distance or travel time. Allowed values driving and walking | [optional] [enum: driving, walking]
 **country** | **String**| Country | [optional]
 **areaName1** | **String**| Specifies the largest geographical area, typically a state or province. | [optional]
 **areaName3** | **String**| Specifies the name of the city or town.  | [optional]
 **postcode1** | **String**| Postal Code of the input to be searched | [optional]
 **postcode2** | **String**| Postcode2 | [optional]
 **ipAddress** | **String**| IP address of network connected device in standard IPv4 octet and a valid external address. | [optional]
 **autoDetectLocation** | **String**| Specifies whether to auto-detect location from IP address. If 'True' is set, the location is detected from the specified ip address. If 'False' is set. the search will happen according to country or location. | [optional]
 **type** | **String**| Matched against the content which defines the type of the poi.  | [optional]
 **categoryCode** | **String**| Specific Category/Categories Codes for the desired POIs. Accepts a mix of 4 digit (Top Category), 6 digit (Second-Level Category) and 11 digit (Low-Level Category) Category Codes. https://locate.pitneybowes.com/downloads/location-intelligence/v1/CategoryCodes.xlsx  | [optional]
 **sicCode** | **String**| Specific SIC Codes/Codes for the desired POIs. Accepts a mix of 4 digit (Top Category) and 8 digit (Low-Level Category) SIC Codes. | [optional]
 **maxCandidates** | **String**| Maximum number of POIs that can be retrieved. | [optional]
 **sortBy** | **String**| Specifies the order in which POIs are retrieved. | [optional] [default to distance] [enum: distance, relevance]
 **searchOnNameOnly** | **String**| specifies search on name | [optional]

### Return type

[**GeoEnrichResponse**](GeoEnrichResponse.md)

### Authorization

[oAuth2Password](../README.md#oAuth2Password)

### HTTP request headers

 - **Content-Type**: application/json, application/xml
 - **Accept**: application/json, application/xml


text:
#import "IDEInspectorViewController.h"

@class NSArrayController;

@interface IBICAbstractMultipartImageInspector : IDEInspectorViewController
{
    NSArrayController *_multipartImageController;
}

+ (void)installPerSuggestionSetPropertiesIfNeeded;
+ (void)installKVODependencyForSuggestionSet:(id)arg1;
+ (void)installGetterForSuggestionSet:(id)arg1;
+ (void)installSetterForSuggestionSet:(id)arg1;
+ (id)propertyNameForPresentingValueForSuggestionSet:(id)arg1;
+ (id)inspectedArrayControllerKeyPaths;
+ (Class)imageRepClass;
+ (Class)imageSetClass;
+ (Class)imageRepSlotClass;
+ (id)slotSuggestionSets;
- (void).cxx_destruct;
- (id)sliceElement;
- (void)addPostSuggestionSetContent:(id)arg1 pusherStorage:(void)arg2;
- (void)setContent:(id)arg1;
- (id)initWithNibName:(id)arg1 bundle:(id)arg2;

@end


text:
If you just want to use KAMO, please jump to [KAMO documentation](doc/kamo-en.md#installation).

## Dependencies
* [Python 2.7](https://www.python.org/)
* [CCTBX](https://cctbx.github.io/) with [CBFlib](http://www.bernstein-plus-sons.com/software/CBF/)
* [DIALS](https://dials.github.io)
* [wxPython 2.8](http://www.wxpython.org/)
* [Numpy](http://www.numpy.org/)
* [Scipy](http://www.scipy.org/)
* [Matplotlib 1.3](http://matplotlib.org/)
* [Networkx](https://networkx.github.io/)

## Installation using bootstrap.py

CCTBX-provided bootstrap.py can prepare CCTBX+DIALS environment with the dependencies (For details see [Installation for Developers - DIALS](https://dials.github.io/documentation/installation_developer.html)).
Here we use this script and install yamtbx into the built environment.

Set `$PREFIX` to any location you like (e.g. `/usr/local/yamtbx`)

```
mkdir -p $PREFIX
cd $PREFIX
wget https://raw.githubusercontent.com/cctbx/cctbx_project/master/libtbx/auto_build/bootstrap.py
python bootstrap.py --builder=dials
git clone https://github.com/keitaroyam/yamtbx.git yamtbx-github
cd modules/
ln -s ../yamtbx-github/yamtbx .
cd ..
./build/bin/libtbx.configure --enable_openmp_if_possible=True yamtbx
#source setpaths.sh
make # To build C++ codes in yamtbx, you may need to fix SConscript etc.. instruction will be given later (sorry).
```

and you will find yamtbx.\* or kamo\* commands in $PREFIX/build/bin/.
This brings other commands including phenix.\* and dials.\* and you may not want these (you may rather want to use those commands in PHENIX or DIALS environment). Just remove unwanted command scripts from $PREFIX/build/bin/. The alternative way is to make bin2 directory and make links to yamtbx.\* and kamo\* there, and set PATH to bin2/.


text:
/**
 * Provides utility classes for the closure of open resources, Java reflection, read JSON and write JSON.
 */
package org.mashti.jetson.util;


text:
package com.hubspot.singularity;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class SingularityTaskCleanupResult {

  private final SingularityCreateResult result;
  private final SingularityTask task;

  @JsonCreator
  public SingularityTaskCleanupResult(@JsonProperty("result") SingularityCreateResult result, @JsonProperty("task") SingularityTask task) {
    this.result = result;
    this.task = task;
  }

  public SingularityCreateResult getResult() {
    return result;
  }

  public SingularityTask getTask() {
    return task;
  }

  @Override
  public String toString() {
    return "SingularityTaskCleanupResult{" +
        "result=" + result +
        ", task=" + task +
        '}';
  }
}


text:
package org.teavm.model.util;

import org.teavm.model.Variable;
import org.teavm.model.instructions.*;

/**
 *
 * @author Alexey Andreev
 */
public abstract class InstructionVariableMapper implements InstructionVisitor {
    protected abstract Variable map(Variable var);

    @Override
    public void visit(EmptyInstruction insn) {
    }

    @Override
    public void visit(ClassConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(NullConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(IntegerConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(LongConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(FloatConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(DoubleConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(StringConstantInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(BinaryInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setFirstOperand(map(insn.getFirstOperand()));
        insn.setSecondOperand(map(insn.getSecondOperand()));
    }

    @Override
    public void visit(NegateInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setOperand(map(insn.getOperand()));
    }

    @Override
    public void visit(AssignInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setAssignee(map(insn.getAssignee()));
    }

    @Override
    public void visit(CastInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setValue(map(insn.getValue()));
    }

    @Override
    public void visit(CastNumberInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setValue(map(insn.getValue()));
    }

    @Override
    public void visit(CastIntegerInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setValue(map(insn.getValue()));
    }

    @Override
    public void visit(BranchingInstruction insn) {
        insn.setOperand(map(insn.getOperand()));
    }

    @Override
    public void visit(BinaryBranchingInstruction insn) {
        insn.setFirstOperand(map(insn.getFirstOperand()));
        insn.setSecondOperand(map(insn.getSecondOperand()));
    }

    @Override
    public void visit(JumpInstruction insn) {
    }

    @Override
    public void visit(SwitchInstruction insn) {
        insn.setCondition(map(insn.getCondition()));
    }

    @Override
    public void visit(ExitInstruction insn) {
        if (insn.getValueToReturn() != null) {
            insn.setValueToReturn(map(insn.getValueToReturn()));
        }
    }

    @Override
    public void visit(RaiseInstruction insn) {
        insn.setException(map(insn.getException()));
    }

    @Override
    public void visit(ConstructArrayInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setSize(map(insn.getSize()));
    }

    @Override
    public void visit(ConstructInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(ConstructMultiArrayInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        for (int i = 0; i < insn.getDimensions().size(); ++i) {
            insn.getDimensions().set(i, map(insn.getDimensions().get(i)));
        }
    }

    @Override
    public void visit(GetFieldInstruction insn) {
        if (insn.getInstance() != null) {
            insn.setInstance(map(insn.getInstance()));
        }
        insn.setReceiver(map(insn.getReceiver()));
    }

    @Override
    public void visit(PutFieldInstruction insn) {
        if (insn.getInstance() != null) {
            insn.setInstance(map(insn.getInstance()));
        }
        insn.setValue(map(insn.getValue()));
    }

    @Override
    public void visit(ArrayLengthInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setArray(map(insn.getArray()));
    }

    @Override
    public void visit(CloneArrayInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setArray(map(insn.getArray()));
    }

    @Override
    public void visit(UnwrapArrayInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setArray(map(insn.getArray()));
    }

    @Override
    public void visit(GetElementInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setArray(map(insn.getArray()));
        insn.setIndex(map(insn.getIndex()));
    }

    @Override
    public void visit(PutElementInstruction insn) {
        insn.setValue(map(insn.getValue()));
        insn.setArray(map(insn.getArray()));
        insn.setIndex(map(insn.getIndex()));
    }

    @Override
    public void visit(InvokeInstruction insn) {
        if (insn.getReceiver() != null) {
            insn.setReceiver(map(insn.getReceiver()));
        }
        if (insn.getInstance() != null) {
            insn.setInstance(map(insn.getInstance()));
        }
        for (int i = 0; i < insn.getArguments().size(); ++i) {
            insn.getArguments().set(i, map(insn.getArguments().get(i)));
        }
    }

    @Override
    public void visit(IsInstanceInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setValue(map(insn.getValue()));
    }

    @Override
    public void visit(InitClassInstruction insn) {
    }

    @Override
    public void visit(NullCheckInstruction insn) {
        insn.setReceiver(map(insn.getReceiver()));
        insn.setValue(map(insn.getValue()));
    }

    @Override
    public void visit(MonitorEnterInstruction insn) {
        insn.setObjectRef(map(insn.getObjectRef()));
    }

    @Override
    public void visit(MonitorExitInstruction insn) {
        insn.setObjectRef(map(insn.getObjectRef()));
    }

}


text:
describe Knapsack::Allocator do
  let(:test_file_pattern) { nil }
  let(:args) do
    {
      ci_node_total: nil,
      ci_node_index: nil,
      test_file_pattern: test_file_pattern,
      report: nil
    }
  end
  let(:report_distributor) { instance_double(Knapsack::Distributors::ReportDistributor) }
  let(:leftover_distributor) { instance_double(Knapsack::Distributors::LeftoverDistributor) }
  let(:report_tests) { ['a_spec.rb', 'b_spec.rb'] }
  let(:leftover_tests) { ['c_spec.rb', 'd_spec.rb'] }
  let(:node_tests) { report_tests + leftover_tests }
  let(:allocator) { described_class.new(args) }

  before do
    expect(Knapsack::Distributors::ReportDistributor).to receive(:new).with(args).and_return(report_distributor)
    expect(Knapsack::Distributors::LeftoverDistributor).to receive(:new).with(args).and_return(leftover_distributor)
    allow(report_distributor).to receive(:tests_for_current_node).and_return(report_tests)
    allow(leftover_distributor).to receive(:tests_for_current_node).and_return(leftover_tests)
  end

  describe '#report_node_tests' do
    subject { allocator.report_node_tests }
    it { should eql report_tests }
  end

  describe '#leftover_node_tests' do
    subject { allocator.leftover_node_tests }
    it { should eql leftover_tests }
  end

  describe '#node_tests' do
    subject { allocator.node_tests }
    it { should eql node_tests }
  end

  describe '#stringify_node_tests' do
    subject { allocator.stringify_node_tests }
    it { should eql %{"a_spec.rb" "b_spec.rb" "c_spec.rb" "d_spec.rb"} }
  end

  describe '#test_dir' do
    subject { allocator.test_dir }

    context 'when ENV test_dir has value' do
      let(:test_dir) { "custom_dir" }

      before do
        expect(Knapsack::Config::Env).to receive(:test_dir).and_return(test_dir)
      end

      it { should eql 'custom_dir' }
    end

    context 'when ENV test_dir has no value' do
      let(:test_file_pattern) { "test_dir/**{,/*/**}/*_spec.rb" }

      before do
        expect(report_distributor).to receive(:test_file_pattern).and_return(test_file_pattern)
      end

      it { should eql 'test_dir' }
    end
  end
end


text:
module Graphene
  class AxisLabel
    include Renderable

    attr_accessor :name, :font_size, :axis, :align_with_axis, :rotation, :font_weight

    def initialize(axis)
      @axis = axis
      @font_size = 16
      @font_weight = 'normal'
      @align_with_axis = true
    end

    def layout(point_mapper, position = nil)
      Renderer.new(self, point_mapper, position)
    end

    class Renderer
      include Positioned

      def initialize(label, point_mapper, position)
        @label = label
        @point_mapper = point_mapper
        @layout_position = position || point_mapper.axis_positions[@label.axis.type]
        @rotation = @label.rotation || (@label.align_with_axis ^ horizontal? ? 270 : 0)
        @rotation_radians = @rotation * Math::PI / 180
      end

      def renderable_object
        @label
      end

      def preferred_width
        estimated_length(Math.cos(@rotation_radians)) if vertical?
      end

      def preferred_height
        estimated_length(Math.sin(@rotation_radians)) if horizontal?
      end

      def estimated_length(multiplier)
        @label.font_size * [multiplier * @label.name.to_s.length / 1.7, 1.2].max
      end

      def render(canvas, left, top, width, height)
        return unless @label.name
        # canvas.box(left, top, width, height, :fill => "#000000", "fill-opacity" => 0.2, :stroke => "red")

        opts = {:class => "axis-label", :font_size => @label.font_size, :font_weight => @label.font_weight}

        case @layout_position
        when :bottom
          left += width/2
          top  += height/1.2

        when :top
          left += width/2

        when :left
          left += @label.font_size
          top  += height/2

        when :right
          left += @label.font_size
          top  += height/2
        end

        # canvas.box(left-2,top-2,4,4,:fill => "blue")
        opts[:transform] = "rotate(#{@rotation} #{left} #{top})" unless @rotation == 0
        opts[:text_anchor] = "middle"

        canvas.text(left, top, @label.name, opts)
      end
    end
  end
end


text:
using System;

namespace XSharp.Launch.Hosts.IntelEdison
{
    public class IntelEdisonHost : IHost
    {
        public event EventHandler ShutDown;

        public IntelEdisonHost()
        {
        }

        public void Start()
        {
        }

        public void Kill()
        {
            ShutDown?.Invoke(this, EventArgs.Empty);
        }
    }
}


text:
<?php
?>
{if isset($aTotalGroups) and count($aTotalGroups) > 0}
	{foreach from=$aTotalGroups name=totalGroups item=totalGroups}

{phrase var=$totalGroups.group_name}

		{foreach from=$totalGroups name=aGroups item=aGroups}
			{if is_array($aGroups)}
				{$aGroups.html}
			{/if}
		{/foreach}
	{/foreach}
{/if}


text:
namespace OData2Poco;

public enum Language
{
    None,
    CS,
    TS
}


text:
/*!
 *
 * @file usb_cdc_pstn.c
 *
 * @author
 *
 * @version
 *
 * @date May-28-2009
 *
 * @brief The file contains USB CDC_PSTN Sub Class implementation.
 *
 *****************************************************************************/

/******************************************************************************
 * Includes
 *****************************************************************************/
 #include "usb_cdc_pstn.h"  /* USB CDC PSTN Sub Class Header File */

 /*****************************************************************************
 * Constant and Macro's
 *****************************************************************************/

/*****************************************************************************
 * Global Functions Prototypes
 *****************************************************************************/

/****************************************************************************
 * Global Variables
 ****************************************************************************/

/*****************************************************************************
 * Local Types - None
 *****************************************************************************/

/*****************************************************************************
 * Local Functions Prototypes
 *****************************************************************************/

/*****************************************************************************
 * Local Variables
 *****************************************************************************/
/* PSTN subclass callback pointer */
static USB_CLASS_CALLBACK g_pstn_callback = NULL;
/* data terminal equipment present or not */
static boolean g_dte_present = FALSE;
static uint_8 g_dte_status = 0; /* Status of DATA TERMINAL EQUIPMENT */
static uint_16 g_break_duration = 0; /* Length of time in milliseconds of the
                                                              break signal */
static uint_8 g_current_interface = 0;
static UART_BITMAP g_uart_bitmap;

#if CIC_NOTIF_ELEM_SUPPORT
static uint_8 g_serial_state_buf[NOTIF_PACKET_SIZE+UART_BITMAP_SIZE] =
{
    NOTIF_REQUEST_TYPE,SERIAL_STATE_NOTIF,
    0x00,0x00,/*wValue*/
    0x00,0x00,/*interface - modifies*/
    UART_BITMAP_SIZE,0x00,/* wlength*/
    0x00,0x00 /*data initialized - modifies*/
};/*uart bitmap*/
#endif
 /*****************************************************************************
 * Local Functions
 *****************************************************************************/

/*****************************************************************************
 * Global Functions
 *****************************************************************************/

/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_Pstn_Init
 *
 * @brief The function initializes the PSTN Module
 *
 * @param controller_ID     : Controller ID
 * @param callback          : PSTN Callback
 *
 * @return error
 *         USB_OK           : Always
 ******************************************************************************
 * PSTN Sub Class Initialization routine
 *****************************************************************************/
uint_8 USB_Class_CDC_Pstn_Init (
    uint_8    controller_ID,        /* [IN] Controller ID */
    USB_CLASS_CALLBACK callback     /* [IN] PSTN Callback */
)
{
    uint_8 error = USB_OK;
    UNUSED (controller_ID)

    /* save input parameters */
    g_pstn_callback = callback;
    return error;
}
/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Get_Line_Coding
 *
 * @brief  This function is called in response to GetLineCoding request
 *
 * @param controller_ID   : Controller ID
 * @param setup_packet    : Pointer to setup packet
 * @param data            : Pointer to Data to be send
 * @param size            : Pointer to Size of Data
 *
 * @return status:
 *          USB_OK : When Successfull
 *          USBERR_INVALID_REQ_TYPE: When  request for
 *                                   invalid Interface is presented
 ******************************************************************************
 * Calls application to receive Line Coding Information
 *****************************************************************************/
uint_8 USB_Class_CDC_PSTN_Get_Line_Coding (
    uint_8 controller_ID,               /* [IN] Controller ID */
    USB_SETUP_STRUCT * setup_packet,    /* [IN] Pointer to setup packet */
    uint_8_ptr *data,                   /* [OUT] Pointer to Data to be send */
    USB_PACKET_SIZE *size               /* [OUT] Pointer to Size of Data */
)
{
    uint_8 status;
    UNUSED (size)
    g_current_interface = (uint_8)setup_packet->index ;
    status = USB_Desc_Get_Line_Coding(controller_ID, g_current_interface,
        data);

    return status;
}

/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Set_Line_Coding
 *
 * @brief  This function is called in response to SetLineCoding request
 *
 * @param controller_ID   : Controller ID
 * @param setup_packet    : Pointer to setup packet
 * @param data            : Pointer to Data
 * @param size            : Pointer to Size of Data
 *
 * @return status:
 *      USB_OK                  : When Successfull
 *      USBERR_INVALID_REQ_TYPE : When  request for invalid
 *                                Interface is presented
 ******************************************************************************
 * Calls Applciation to update Line Coding Information
 *****************************************************************************/
uint_8 USB_Class_CDC_PSTN_Set_Line_Coding (
    uint_8 controller_ID,               /* [IN] Controller ID */
    USB_SETUP_STRUCT * setup_packet,    /* [IN] Pointer to setup packet */
    uint_8_ptr *data,                   /* [OUT] Pointer to Data */
    USB_PACKET_SIZE *size               /* [OUT] Pointer to Size of Data */
)
{
    uint_8 status;
    UNUSED(data)

    *size = 0;

    g_current_interface = (uint_8)setup_packet->index ;
    status = USB_Desc_Set_Line_Coding(controller_ID, g_current_interface,
        (uint_8_ptr *)&setup_packet);

    return status;
}

/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Set_Ctrl_Line_State
 *
 * @brief  This function is called in response to Set Control Line State
 *
 * @param controller_ID   : Controller ID
 * @param setup_packet    : Pointer to setup packet
 * @param data            : Pointer to Data
 * @param size            : Pointer to Size of Data
 *
 * @return status:
 *                        USB_OK : Always
 ******************************************************************************
 * Updates Control Line State
 *****************************************************************************/
uint_8 USB_Class_CDC_PSTN_Set_Ctrl_Line_State (
    uint_8 controller_ID,               /* [IN] Controller ID */
    USB_SETUP_STRUCT * setup_packet,    /* [IN] Pointer to setup packet */
    uint_8_ptr *data,                   /* [OUT] Pointer to Data  */
    USB_PACKET_SIZE *size               /* [OUT] Pointer to Size of Data */
)
{
    UNUSED(data)
    *size = 0;

    g_dte_status = (uint_8)setup_packet->value ;
    g_uart_bitmap._byte = 0x00; /* initialize */
    /* activate/deactivate Tx carrier */
    g_uart_bitmap.Bitmap_Uart.bTxCarrier = (g_dte_status &
        CARRIER_ACTIVATION_CHECK) ? 1 : 0 ;
     /* activate carrier and DTE */
    g_uart_bitmap.Bitmap_Uart.bRxCarrier = (g_dte_status &
        CARRIER_ACTIVATION_CHECK) ? 1 : 0 ;

    /* Indicates to DCE if DTE is present or not */
    g_dte_present = (boolean)((g_dte_status & DTE_PRESENCE_CHECK) ?
        TRUE : FALSE);
    UNUSED(g_dte_present);
#if CIC_NOTIF_ELEM_SUPPORT
    /* Send Notification to Host - Parameter on Device side has changed */
    USB_Class_CDC_PSTN_Send_Serial_State(controller_ID);
#endif
    if(g_pstn_callback != NULL)
    {
        if(g_dte_status & CARRIER_ACTIVATION_CHECK)
        {
            g_pstn_callback(controller_ID, USB_APP_CDC_CARRIER_ACTIVATED,
                NULL);
        }
        else
        {
            g_pstn_callback(controller_ID, USB_APP_CDC_CARRIER_DEACTIVATED,
                NULL);
        }
    }
    return USB_OK;
}

/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Send_Break
 *
 * @brief  This function is called in response to Set Config request
 *
 * @param controller_ID   : Controller ID
 * @param setup_packet    : Pointer to setup packet
 * @param data            : Pointer to Data
 * @param size            : Pointer to Size of Data
 *
 * @return status:
 *                        USB_OK : Always
 ******************************************************************************
 * Updates Break Duration Information from Host
 *****************************************************************************/
uint_8 USB_Class_CDC_PSTN_Send_Break (
    uint_8 controller_ID,               /* [IN] Controller ID */
    USB_SETUP_STRUCT * setup_packet,    /* [IN] Pointer to setup packet */
    uint_8_ptr *data,                   /* [OUT] Pointer to Data  */
    USB_PACKET_SIZE *size               /* [OUT] Pointer to Size of Data */
)
{
    UNUSED (controller_ID)
    UNUSED (data)
    *size = 0;

    g_break_duration = setup_packet->value;
    UNUSED(g_break_duration);

    return USB_OK;
}

/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Get_Comm_Feature
 *
 * @brief  This function is called in response to GetCommFeature request
 *
 * @param controller_ID   : Controller ID
 * @param setup_packet    : Pointer to setup packet
 * @param data            : Pointer to Data to be send
 * @param size            : Pointer to Size of Data
 *
 * @return status:
 *      USB_OK                  : When Successfull
 *      USBERR_INVALID_REQ_TYPE : When  request for invalid
 *                                Interface is presented
 ******************************************************************************
 * Returns the status of the get comm feature request
 *****************************************************************************/
uint_8 USB_Class_CDC_PSTN_Get_Comm_Feature (
    uint_8 controller_ID,               /* [IN] Controller ID */
    USB_SETUP_STRUCT * setup_packet,    /* [IN] Pointer to setup packet */
    uint_8_ptr *data,                   /* [OUT] Pointer to Data to send */
    USB_PACKET_SIZE *size               /* [OUT] Pointer to Size of Data */
)
{   uint_8 status;

    status = USB_OK;
    *size = COMM_FEATURE_DATA_SIZE;
    g_current_interface = (uint_8)setup_packet->index ;
    if(setup_packet->value == ABSTRACT_STATE_FEATURE)
    {
        status = USB_Desc_Get_Abstract_State(controller_ID,
            g_current_interface, data);
    }
    else if(setup_packet->value == COUNTRY_SETTING_FEATURE)
    {
        status = USB_Desc_Get_Country_Setting(controller_ID,
            g_current_interface, data);
    }
    else
    {
        *size = 0; /* for Reserved/Invalid Feature Selector Value */
    }
    return status;
}

/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Set_Comm_Feature
 *
 * @brief  This function is called in response to SetCommFeature request
 *
 * @param controller_ID   : Controller ID
 * @param setup_packet    : Pointer to setup packet
 * @param data            : Pointer to Data
 * @param size            : Pointer to Size of Data
 *
 * @return status:
 *      USB_OK                  : When Successfull
 *      USBERR_INVALID_REQ_TYPE : When  request for invalid
 *                                Interface is presented
 ******************************************************************************
 * Sets the comm feature specified by Host
 *****************************************************************************/
uint_8 USB_Class_CDC_PSTN_Set_Comm_Feature (
    uint_8 controller_ID,               /* [IN] Controller ID */
    USB_SETUP_STRUCT * setup_packet,    /* [IN] Pointer to setup packet */
    uint_8_ptr *data,                   /* [OUT] Pointer to Data */
    USB_PACKET_SIZE *size               /* [OUT] Pointer to Size of Data */
)
{
    uint_8 status;
    status = USB_OK;
    *size = COMM_FEATURE_DATA_SIZE;
    g_current_interface = (uint_8)setup_packet->index ;
    if(setup_packet->value == ABSTRACT_STATE_FEATURE)
    {
        status = USB_Desc_Set_Abstract_State(controller_ID,
            g_current_interface, data);
    }
    else if(setup_packet->value == COUNTRY_SETTING_FEATURE)
    {
        status = USB_Desc_Set_Country_Setting(controller_ID,
            g_current_interface, data);
    }
    else
    {
        *size = 0; /* for Reserved/Invalid Feature Selector Value */
    }
    return status;
}

#if CIC_NOTIF_ELEM_SUPPORT
/**************************************************************************//*!
 *
 * @name  USB_Class_CDC_PSTN_Send_Serial_State
 *
 * @brief  This function is called to send serial state notification
 *
 * @param controller_ID : Controller ID
 *
 * @return NONE
 ******************************************************************************
 * Returns the Serial State
 *****************************************************************************/
void USB_Class_CDC_PSTN_Send_Serial_State (
    uint_8 controller_ID               /* [IN] Controller ID */
)
{
    /* update array for current interface */
    g_serial_state_buf[4] = g_current_interface;
    /* Lower byte of UART BITMAP */
    g_serial_state_buf[NOTIF_PACKET_SIZE+UART_BITMAP_SIZE-2] =
        g_uart_bitmap._byte;
    (void)USB_Class_CDC_Interface_CIC_Send_Data(controller_ID,
        g_serial_state_buf, (NOTIF_PACKET_SIZE + UART_BITMAP_SIZE));
}
#endif


text:
/**
 * Based on work by Jim Ley
 */
var XHR = (function () {
    var getXHRObject = function () {
        var xmlhttp = false;
        /* @cc_on @ */
        /*
         * @if (@_jscript_version >= 5) try { xmlhttp = new
         * ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new
         * ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } }
         * @end @
         */
        if (!xmlhttp && typeof XMLHttpRequest != "undefined") {
            try {
                xmlhttp = new XMLHttpRequest();
            } catch (e) {
                xmlhttp = false;
            }
        }
        if (!xmlhttp && window.createRequest) {
            try {
                xmlhttp = window.createRequest();
            } catch (e) {
                xmlhttp = false;
            }
        }
        return xmlhttp;
    };

    function readResponse(prop, url, callback) {
        var XHRObj = getXHRObject();
        XHRObj.open("GET", url, true);
        XHRObj.onreadystatechange = function () {
            if (XHRObj.readyState == 4) {
                callback(XHRObj[prop]);
            }
        };
        XHRObj.send(null);
    }

    return {
        canRun: function () {
            return !!getXHRObject();
        },
        readText: function (url, callback) {
            readResponse("responseText", url, callback);
        },
        readXML: function (url, callback) {
            readResponse("responseXML", url, callback);
        }
    };
})();


text:
namespace OmniXaml.Services.Mvvm
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Reflection;

    public class ViewRegistration
    {
        public string Token { get; }
        public Type ViewType { get; }

        public ViewRegistration(string token, Type viewType)
        {
            Token = token;
            ViewType = viewType;
        }

        public static IEnumerable<ViewRegistration> FromTypes(IEnumerable<Type> types)
        {
            return from assembly in types
                   let attribute = assembly.GetTypeInfo().GetCustomAttribute<ViewTokenAttribute>()
                   where attribute != null
                   select new ViewRegistration(attribute.Token, attribute.ViewType);
        }
    }
}


text:
package dotd;

use Rex -base;

require Exporter;

our @EXPORT = qw|dotd|;

task "dotd", make {
	my $params = shift;
	my $root = $params->{root} || 0;
	my $conf = $params->{conf} || die 'Required parameter: conf';
	my $line = $params->{line} || die 'Required parameter: line';

	if (!is_file($conf)) {
		file $conf,
			ensure => "directory";
		$conf .= "/zz-rex";
		file $conf,
			ensure => "present";
	}
	append_if_no_such_line $conf, $line;
}, { dont_register => TRUE };

1;


text:
import org.specs2.mutable._
import play.api.test._
import play.api.test.Helpers._
class UserControllerSpec extends Specification {
  "respond to the entryInit Action" in {
    running(FakeApplication()) {
      //ルーティング情報を使う
      val Some(result) = route(FakeRequest(GET, "/user/entry"))
      //コントローラを直接使う
      //val result = controllers.UserController.entryInit()(FakeRequest())
      status(result) must equalTo(OK)
      contentType(result) must beSome("text/html")
      charset(result) must beSome("utf-8")
      contentAsString(result) must contain("Entry user")
    }
  }
}


text:
/* generate map */

var mapcenter = new google.maps.LatLng(-23.5194651,-46.7066272);
var mapOptions = {
	draggable: ("ontouchstart" in window) ? false : true,
	scrollwheel: false,
	zoom: 16,
	center: mapcenter,
	mapTypeId: google.maps.MapTypeId.ROADMAP,
	zoomControl: true,
	zoomControlOptions: {
		style: google.maps.ZoomControlStyle.SMALL
	},
	overviewMapControl: false,
	scaleControl: false
};

var map = new google.maps.Map(document.getElementById("map"), mapOptions);

var marker = new google.maps.Marker({
	position: mapcenter,
	map: map,
	draggable: false
});

var markerInfo = new google.maps.InfoWindow({
	content: '
Ver no Google Maps
'
});

google.maps.event.addListener(marker, "click", function() {
	markerInfo.open(map, marker);
});

var supportsOrientationChange = "onorientationchange" in window;
var orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";

google.maps.event.addDomListener(window, orientationEvent, function() {
	map.setCenter(mapcenter);
});


text:
import Controller (withYwitter)
import System.IO (hPutStrLn, stderr)
import Network.Wai.Middleware.Debug (debug)
import Network.Wai.Handler.Warp (run)

main :: IO ()
main = do
    let port = 3000
    hPutStrLn stderr $ "Application launched, listening on port " ++ show port
    withYwitter $ run port . debug


text:
using System;

namespace Pluton.Events
{
    public class ChatEvent : CountedInstance
    {
        public readonly ConsoleSystem.Arg Arg;

        [Obsolete("ChatEvent._arg is obsolete and will be removed, please use ChatEvent.Arg", true)]
        public ConsoleSystem.Arg _arg {
            get { return Arg; }
        }

        public readonly string OriginalText;
        public readonly Player User;
        public string BroadcastName;
        public string FinalText;
        public string Reply;

        public ChatEvent(Player player, ConsoleSystem.Arg args)
        {
            User = player;
            Arg = args;
            if (args.connection != null)
                BroadcastName = args.connection.username;
            else
                BroadcastName = Server.server_message_name;
            OriginalText = args.ArgsStr.Substring(1, args.ArgsStr.Length - 2).Replace("\\", "");
            FinalText = OriginalText.Replace('<', '[').Replace('>', ']');
            Reply = "chat.say was executed";
        }

        public void Cancel(string reply = "Your message was not sent")
        {
            FinalText = "";
            Reply = reply;
        }

        public void ReplyWith(string msg) => Reply = msg;
    }
}