text:
package org.createnet.raptor.objects;

import com.fasterxml.jackson.databind.JsonNode;
import java.io.IOException;
import org.createnet.raptor.models.data.RecordSet;
import org.createnet.raptor.models.data.ResultSet;
import org.createnet.raptor.models.objects.Device;
import org.createnet.raptor.models.objects.RaptorComponent;
import org.createnet.raptor.models.objects.Stream;
import org.createnet.raptor.utils.TestUtils;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Luca Capra <lcapra@fbk.eu>
 */
public class RecordsetTest extends TestUtils {

    public RecordsetTest() {

    }

    @BeforeClass
    public static void setUpClass() {

    }

    @AfterClass
    public static void tearDownClass() {
    }

    @Before
    public void setUp() {
        loadObject();
    }

    @After
    public void tearDown() {

    }

    /**
     * Test of parse method, of class Device.
     *
     * @throws org.createnet.raptor.models.exception.RecordsetException
     * @throws com.fasterxml.jackson.core.JsonProcessingException
     */
    @Test
    public void testParseRecord() throws IOException {

        JsonNode data = loadData("record");

        Stream stream = device.streams().get("mylocation");
        RecordSet records = mapper.readValue(data.toString(), RecordSet.class);

        records.userId("Mr. foobar");

        Boolean channel = records.value("happy").getBoolean();
        assertTrue(channel.equals(true));

        String strjson = records.toJson();
        JsonNode json = mapper.readTree(strjson);

        assertTrue(json.get("channels").get("happy").isBoolean());
        assertTrue(!json.get("userId").isNull());

    }

    @Test
    public void testParseRecordNewTypes() throws IOException {

        JsonNode devjson = loadData("device2");
        Device dev = Device.fromJSON(devjson);

        JsonNode data = loadData("record2");

        Stream stream = device.streams().get("data");
        RecordSet record = mapper.readValue(data.toString(), RecordSet.class);

        assertTrue(record.channel("foobar").getObject() != null);
        assertTrue(record.channel("list").getList().size() == 5);
        assertTrue(record.channel("position").getPosition().getX() == 11.45);

    }

    @Test
    public void testParseStreamData() throws IOException {

        JsonNode data1 = loadData("record1");
        RecordSet records = mapper.readValue(data1.toString(), RecordSet.class);

        String strjson = records.toJson();
        JsonNode json = mapper.readTree(strjson);

        assertTrue(json.has("channels"));
        assertTrue(json.has("timestamp"));

    }

    @Test
    public void testParseResultSet() throws IOException {

        JsonNode resultset = loadData("resultset");
        ResultSet results = mapper.readValue(resultset.toString(), ResultSet.class);

        String strjson = results.toJson();
        JsonNode json = mapper.readTree(strjson);

        assertTrue(json.size() == results.size());

    }

    @Test(expected = RaptorComponent.ValidationException.class)
    public void testParseRecordSet() throws IOException {

        JsonNode resultset = loadData("resultset");
        JsonNode json = resultset.get(0);

        device.parse(jsonDevice);

        Stream stream = device.streams().getOrDefault(defaultStreamName, null);

        assertNotNull("Stream " + defaultStreamName + " not found in model", stream);

        RecordSet recordSet = new RecordSet(stream, json);
        // should not throw exception
        recordSet.validate();

        JsonNode invalidRecord = loadData("recordset_invalid");

        recordSet = mapper.convertValue(invalidRecord, RecordSet.class);

        // should not throw exception
        recordSet.validate();

        recordSet.setStream(stream);

        // should throw an exception now, as there are additional channels
        recordSet.validate();

    }

//    @Test(expected = RaptorComponent.ValidationException.class)
    public void testParseRecordSet2() throws IOException {

        JsonNode resultset = loadData("resultset");
        JsonNode json = resultset.get(0);

        device.parse(jsonDevice);

        Stream stream = device.streams().getOrDefault(defaultStreamName, null);

        assertNotNull("Stream " + defaultStreamName + " not found in model", stream);

        RecordSet recordSet = new RecordSet(stream, json);

        // should throw an exception now, as there are additional channels
        recordSet.validate();

    }

}


text:
require 'ostruct'
require 'yaml'

module Confucius
  class Setup
    def initialize(block)
      @block = block
    end

    def then(&block)
      @then = block
    end

    def call(config)
      @block.call(config).tap{|res|
        @then.call(res) if @then
      }
    end
  end

  def from_yaml(path)
    from_hash(YAML.load(File.read(path)))
  end

  def from_hash(hash)
    hash.each_pair{|key, value|
      key = key.to_sym
      if (setup = setups[key])
        set :"#{key}_config", value
        set key, setup.call(value)
      else
        set key, value
      end
    }
  end

  def setups; @setups ||= {} end

  def setup(key, &block)
    setups[key] = Setup.new(block)
  end

  def self.extended(host)
    ensure_method(host, :settings){@settings ||= OpenStruct.new}
    ensure_method(host, :set){|key, value| settings.send("#{key}=", value)}
  end

  class << self
    private

    def ensure_method(host, sym, &block)
      host.respond_to?(sym) or host.define_singleton_method(sym, &block)
    end
  end
end

redpajama_set_name: RedPajamaGithub


text:
package ch.epfl.bbp.uima.projects.brainregions.bams;

import static ch.epfl.bbp.uima.LexicaHelper.getConceptMapper;
import static ch.epfl.bbp.uima.ae.OpenNlpHelper.getSentenceSplitter;
import static ch.epfl.bbp.uima.ae.OpenNlpHelper.getTokenizer;
import static ch.epfl.bbp.uima.testutils.UimaTests.getTestCas;
import static ch.epfl.bbp.uima.xml.bams.BamsOntologyParser.parse;
import static org.apache.uima.fit.util.JCasUtil.select;

import java.util.List;

import org.apache.uima.jcas.JCas;
import org.python.google.common.collect.Lists;

import ch.epfl.bbp.uima.types.BrainRegionDictTerm;
import ch.epfl.bbp.uima.uimafit.JcasPipelineBuilder;
import ch.epfl.bbp.uima.xml.bams.BamsOntology;
import ch.epfl.bbp.uima.xml.bams.BrainPart;

/**
 * Compare bams2013 and bams2004
 *
 * @author renaud.richardet@epfl.ch
 */
public class FindSynonyms4 {

	public static void main(String[] args) throws Exception {

		BamsOntology bamsOnto = parse();

		for (String b2004 : bams2004) {

			boolean found = false;
			for (BrainPart bp : bamsOnto.getBrainParts().values()) {
				if (b2004.equalsIgnoreCase(bp.getName()))
					found = true;
			}
			if (!found)
				System.err.println("not found\t" + b2004);
		}
	}

	public static void main2(String[] args) throws Exception {

		JcasPipelineBuilder p = new JcasPipelineBuilder();
		p.add(getSentenceSplitter());
		p.add(getTokenizer());
		p.add(getConceptMapper("/brainregions/bams2004"));

		BamsOntology bamsOnto = parse();

		for (BrainPart bp : bamsOnto.getBrainParts().values()) {

			JCas jCas = getTestCas(bp.getName());
			p.process(jCas);

			// System.out.println(bp);
			boolean found = false;
			for (BrainRegionDictTerm br : select(jCas,
					BrainRegionDictTerm.class)) {
				found = true;
				// System.out.println(" found: " + br.getCoveredText());
			}
			if (!found)
				System.err.println("not found\t" + bp.getName());
		}
	}

	final static List<String> bams2004 = Lists
			.newArrayList(
					"Brain",//
					"Spinal Cord",//
					"Cerebrum",//
					"Cerebellum",//
					"Brainstem",//
					"Interbrain",//
					"Cerebral cortex",//
					"Cerebral cortex, layers1-6a [cortical plate]",//
					"Olfactory areas",//
					"Main olfactory bulb",//
					"Main olfactory bulb, glomerular layer",//
					"Main olfactory bulb, outer plexiform layer",//
					"Main olfactory bulb, mitral layer",//
					"Main olfactory bulb, inner plexiform layer",//
					"Main olfactory bulb, granule layer",//
					"Accessory olfactory bulb",//
					"Accessory olfactory bulb, glomerular layer",//
					"Accessory olfactory bulb, mitral layer",//
					"Accessory olfactory bulb, granular layer",//
					"Hippocampal formation",//
					"Retrohippocampal region",//
					"Entorhinal area",//
					"Entorhinal area, lateral part",//
					"Entorhinal area, lateral part layers 1-6",//
					"Entorhinal area medial part, dorsal zone",//
					"Entorhinal area medial part, dorsal zone layers 1-6",//
					"Entorhinal area medial part, ventral zone",//
					"Presubiculum",//
					"Presubiculum, layers 1-6",//
					"Postsubiculum",//
					"Postsubiculum layers 1-6",//
					"Thalamus",//
					"Dorsal Thalamus",//
					"Anterior group of the dorsal thalamus",//
					"Anteroventral nucleus of thalamus",//
					"Anteromedial nucleus of thalamus",//
					"Anteromedial nucleus of thalamus dorsal part",//
					"Anteromedial nucleus of thalamus ventral part",//
					"Anterodorsal nucleus of the thalamus",//
					"Interanteromedial nucleus of the thalamus",//
					"Interanterodorsal nucleus of the thalamus",//
					"Lateral dorsal nucleus of thalamus",//
					"Medial group of the dorsal thalamus",//
					"Mediodorsal nucleus of the thalamus",//
					"Mediodorsal nucleus of the thalamus medial part",//
					"Mediodorsal nucleus of the thalamus central part",//
					"Mediodorsal nucleus of the thalamus lateral part",//
					"Intermediodorsal nucleus of the thalamus",//
					"Submedial nucleus of the thalamus",//
					"Perireunensis nucleus",//
					"Midline group of the dorsal thalamus",//
					"Paraventricular nucleus of the thalamus",//
					"Parataenial nucleus",//
					"Nucleus reuniens",//
					"Nucleus reuniens rostral division",//
					"Nucleus reuniens rostral division rostral part",//
					"Nucleus reuniens rostral division dorsal part",//
					"Nucleus reuniens rostral division ventral part",//
					"Nucleus reuniens rostral division lateral part",//
					"Nucleus reuniens rostral division median part",//
					"Nucleus reuniens caudal division",//
					"Nucleus reuniens caudal division caudal part",//
					"Nucleus reuniens caudal division dorsal part",//
					"Nucleus reuniens caudal division median part",//
					"Intralaminar nuclei of the dorsal thalamus",//
					"Rhomboid nucleus",//
					"Central medial nucleus of the thalamus",//
					"Paracentral nucleus of the thalamus",//
					"Central lateral nucleus of the thalamus",//
					"Parafascicular nucleus",//
					"Lateral group of the dorsal thalamus",//
					"Lateral posterior nucleus of the thalamus",//
					"Posterior complex of the thalamus",//
					"Suprageniculate nucleus",//
					"Posterior limiting nucleus of the thalamus",//
					"Ventral group of the dorsal thalamus",//
					"Ventral anterior-lateral complex of the thalamus",//
					"Ventral medial nucleus of the thalamus",//
					"Ventral posterior complex of the thalamus",//
					"Basal Nuclei",//
					"Striatum",//
					"Pallidum rostral region",//
					"Bed nuclei of the stria terminalis",//
					"Bed nuclei of the stria terminalis anterior division",//
					"Bed nuclei of the stria terminalis anterior division anterodorsal area",//
					"Bed nuclei of the stria terminalis anterolateral area",//
					"Bed nuclei of the stria terminalis anterior division anteroventral area",//
					"Bed nuclei of the stria terminalis oval nucleus",//
					"Bed nuclei of the stria terminalis juxtacapsular nucleus",//
					"Bed nuclei of the stria terminalis rhomboid nucleus",//
					"Bed nuclei of the stria terminalis anterior division dorsomedial nucleus",//
					"Bed nuclei of the stria terminalis anterior division dorsolateral nucleus",//
					"Bed nuclei of the stria terminalis anterior division fusiform nucleus",//
					"Bed nuclei of the stria terminalis anterior division ventral nucleus",//
					"Bed nuclei of the stria terminalis anterior division magnocellular nucleus",//
					"Bed nuclei of the stria terminalis posterior division",//
					"Bed nuclei of the stria terminalis posterior division principal nucleus",//
					"Bed nuclei of the stria terminalis posterior division interfascicular  nucleus",//
					"Bed nuclei of the stria terminalis posterior division transverse nucleus",//
					"Bed nuclei of the stria terminalis posterior division premedullary nucleus",//
					"Bed nuclei of the stria terminalis posterior division dorsal nucleus",//
					"Bed nuclei of the stria terminalis posterior division strial extension",//
					"Bed nuclei of the stria terminalis posterior division cell-sparse zone",//
					"Bed nucleus of the anterior commissure",//
					"Bed nucleus of the stria medularis",//
					"Pallidum",//
					"Striatum dorsal region",//
					"Caudoputamen",//
					"Striatum ventral region",//
					"Nucleus accumbens",//
					"Hypothalamus",//
					"Epithalamus",//
					"Lateral forebrain bundle system",//
					"Corpus callosum",//
					"Corpus callosum anterior forceps",//
					"Corpus callosum external capsule",//
					"Corpus callosum extreme capsule",//
					"Genu of corpus callosum",//
					"Corpus callosum posterior forceps",//
					"Rostrum of corpus callosum",//
					"Splenium of corpus callosum",//
					"Medial forebrain bundle system",//
					"Amygdalar capsule",//
					"Ansa peduncularis",//
					"Anterior commissure, temporal limb",//
					"Fornix system",//
					"Alveus of fornix",//
					"Dorsal fornix",//
					"Fimbria",//
					"Precommissural fornix",//
					"Postcommissural fornix",//
					"Medial corticohypothalamic tract",//
					"Columns of the fornix",//
					"Hippocampal commissures",//
					"Dorsal hippocampal commissure",//
					"Dorsal hippocampal commissure angular bundle",//
					"Ventral hippocampal commissure",//
					"Perforant path",//
					"Lateral ventricle",//
					"Rhinocele",//
					"Subependymal zone",//
					"Interventricular foramen",//
					"Third ventricle",//
					"Third ventricle preoptic recess",//
					"Third ventricle periventricular recess",//
					"Third ventricle mamillary recess",//
					"Cerebral aqueduct",//
					"Cerebral aqueduct collicular recess",//
					"Cerebral aqueduct subcommissural organ",//
					"Fourth ventricle",//
					"Fourth ventricle median aperture",//
					"Fourth ventricle lateral aperture",//
					"Fourth ventricle lateral recess",//
					"Rostral medullary velum",//
					"Caudal medullary velum",//
					"Corticospinal tract",//
					"Internal capsule",//
					"Cerebral peduncle",//
					"Thalamic peduncles",//
					"Corticotectal tract",//
					"Corticorubral tract",//
					"Corticopontine tract",//
					"Corticobulbar tract",//
					"Pyramidal decussation",//
					"Pyramidal tract, crossed",//
					"Retina",//
					"Periventricular zone of the hypothalamus",//
					"Vascular organ of the lamina terminalis",//
					"Suprachiasmatic preoptic nucleus",//
					"Median preoptic nucleus",//
					"Anteroventral periventricular nucleus",//
					"Preoptic periventricular nucleus",//
					"Supraoptic nucleus",//
					"Supraoptic nucleus, retrochiasmatic part",//
					"Supraoptic nucleus, accessory supraoptic group",//
					"Supraoptic nucleus, accessory supraoptic group, nucleus circularis",//
					"Paraventricular nucleus of the hypothalamus",//
					"Paraventricular nucleus of the hypothalamus, descending division",//
					"Paraventricular nucleus of the hypothalamus, descending division, medial parvicellular part, ventral zone",//
					"Paraventricular nucleus of the hypothalamus, descending division, dorsal parvicellular part",//
					"Paraventricular nucleus of the hypothalamus, descending division, lateral parvicellular part",//
					"Paraventricular nucleus of the hypothalamus, descending division, forniceal part",//
					"Paraventricular nucleus of the hypothalamus, magnocellular division",//
					"Paraventricular nucleus of the hypothalamus, magnocellular division, anterior magnocellular part",//
					"Paraventricular nucleus of the hypothalamus, magnocellular division, medial magnocellular part",//
					"Paraventricular nucleus of the hypothalamus, magnocellular division, posterior magnocellular part",//
					"Paraventricular nucleus of the hypothalamus, magnocellular division, posterior magnocellular part, medial zone",//
					"Paraventricular nucleus of the hypothalamus, magnocellular division, posterior magnocellular part, lateral zone",//
					"Paraventricular nucleus of the hypothalamus, parvicellular division",//
					"Paraventricular nucleus of the hypothalamus, parvicellular division, anterior parvicellular part",//
					"Paraventricular nucleus of the hypothalamus, parvicellular division, medial parvicellular part, dorsal zone",//
					"Paraventricular nucleus of the hypothalamus, parvicellular division, periventricular part",//
					"Striatum caudal (amygdalar) region",//
					"Anterior amygdaloid area",//
					"Central nucleus of amygdala",//
					"Central nucleus of amygdala medial part",//
					"Central nucleus of amygdala lateral part",//
					"Central nucleus of amygdala capsular part",//
					"Medial nucleus of the amygdala",//
					"Medial nucleus of the amygdala anterodorsal part",//
					"Medial nucleus of the amygdala anteroventral part",//
					"Medial nucleus of the amygdala posterodorsal part",//
					"Medial nucleus of the amygdala posterodorsal part,sublayer a",//
					"Medial nucleus of the amygdala posterodorsal part,sublayer b",//
					"Medial nucleus of the amygdala posterodorsal part,sublayer c",//
					"Medial nucleus of the amygdala posteroventral part",//
					"Bed nucleus of the accessory olfactory part",//
					"Intercalated nuclei of the amygdala",//
					"Anterior periventricular nucleus of the hypothalamus",//
					"Dorsomedial nucleus of the hypothalamus",//
					"Dorsomedial nucleus of the hypothalamus anterior part",//
					"Dorsomedial nucleus of the hypothalamus posterior part",//
					"Dorsomedial nucleus of the hypothalamus ventral part",//
					"Intermediate periventricular nucleus of the hypothalamus",//
					"Arcuate nucleus of the hypothalamus",//
					"Posterior periventricular nucleus of the hypothalamus",//
					"Medial zone of the hypothalamus",//
					"Medial preoptic area",//
					"Medial preoptic nucleus",//
					"Medial preoptic nucleus lateral part",//
					"Medial preoptic nucleus medial part",//
					"Medial preoptic nucleus central part",//
					"Anterodorsal preoptic nucleus",//
					"Anteroventral preoptic nucleus",//
					"Posterodorsal preoptic nucleus",//
					"Parastrial nucleus",//
					"Anterior hypothalamic area",//
					"Anterior hypothalamic nucleus",//
					"Anterior hypothalamic nucleus anterior part",//
					"Anterior hypothalamic central part",//
					"Anterior hypothalamic posterior part",//
					"Anterior hypothalamic dorsal part",//
					"Suprachiasmatic nucleus",//
					"Suprachiasmatic nucleus dorsomedial part",//
					"Suprachiasmatic nucleus ventrolateral part",//
					"Subparaventricular zone",//
					"Retrochiasmatic area",//
					"Tuberal area of the hypothalamus",//
					"Ventromedial nucleus of the hypothalamus",//
					"Ventromedial nucleus of the hypothalamus anterior part",//
					"Ventromedial nucleus of the hypothalamus dorsomedial part",//
					"Ventromedial nucleus of the hypothalamus central part",//
					"Ventromedial nucleus of the hypothalamus ventrolateral part",//
					"Ventral premammillary nucleus",//
					"Mammillary body",//
					"Tuberomammillary nucleus",//
					"Tuberomammillary nucleus dorsal part",//
					"Tuberomammillary nucleus ventral part",//
					"Supramammillary nucleus",//
					"Supramammillary nucleus lateral part",//
					"Supramammillary nucleus medial part",//
					"Dorsal premammillary nucleus",//
					"Medial mammillary nucleus",//
					"Medial mammillary nucleus median part",//
					"Lateral mammillary nucleus",//
					"Posterior hypothalamic nucleus",//
					"Lateral zone of the hypothalamus",//
					"Lateral preoptic area",//
					"Lateral hypothalamic area",//
					"Tuberal nucleus",//
					"Subthalamic nucleus",//
					"Ventral posterolateral nucleus of the thalamus",//
					"Ventral posterolateral nucleus of the thalamus parvicellular part",//
					"Ventral posteromedial nucleus of the thalamus",//
					"Ventral posteromedial nucleus of the thalamus parvicellular part",//
					"Geniculate group of the dorsal thalamus",//
					"Medial geniculate complex",//
					"Medial geniculate complex dorsal part",//
					"Medial geniculate complex ventral part",//
					"Medial geniculate complex medial part",//
					"Dorsal part of the lateral geniculate complex",//
					"Subfornical organ",//
					"Medial habenula",//
					"Medial habenula dorsal part",//
					"Medial habenula ventral part",//
					"Lateral habenula",//
					"Ventral thalamus",//
					"Reticular nucleus of the thalamus",//
					"Geniculate group of the ventral thalamus",//
					"Intergeniculate leaflet of the lateral geniculate complex",//
					"Ventral part of the lateral geniculate complex",//
					"Ventral part of the lateral geniculate complex lateral zone",//
					"Ventral part of the lateral geniculate complex medial zone",//
					"Zona incerta",//
					"Zona incerta dopaminergic group",//
					"Fields of Forel",//
					"Zona incerta proper",//
					"Peripeduncular nucleus",//
					"Subparafascicular nucleus",//
					"Subparafascicular nucleus magnocellular part",//
					"Subparafascicular nucleus parvicellular part",//
					"Fundus of the striatum",//
					"Olfactory tubercle",//
					"Olfactory tubercle molecular layer",//
					"Olfactory tubercle pyramidal layer",//
					"Olfactory tubercle polymorph layer",//
					"Islands of Calleja",//
					"Major island of Calleja",//
					"Striatum medial (septal) region",//
					"Lateral septal complex",//
					"Lateral septal nucleus",//
					"Lateral septal nucleus caudal (caudodorsal) part",//
					"Lateral septal nucleus caudal (caudodorsal) part dorsal zone",//
					"Lateral septal nucleus caudal (caudodorsal) part dorsal zone rostral region",//
					"Lateral septal nucleus caudal (caudodorsal) part dorsal zone dorsal region",//
					"Lateral septal nucleus caudal (caudodorsal) part dorsal zone lateral region",//
					"Lateral septal nucleus caudal (caudodorsal) part dorsal zone ventral region",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone medial region",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone medial region dorsal domain",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone medial region ventral domain",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone intermediate region",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone lateral region",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone lateral region dorsal domain",//
					"Lateral septal nucleus caudal (caudodorsal) part ventral zone lateral region ventral domain",//
					"Lateral septal nucleus rostral (rostroventral) part",//
					"Lateral septal nucleus rostral (rostroventral) part medial zone",//
					"Lateral septal nucleus rostral (rostroventral) part medial zone dorsal region",//
					"Lateral septal nucleus rostral (rostroventral) part medial zone ventral region",//
					"Lateral septal nucleus rostral (rostroventral) part medial zone ventral region rostral domain",//
					"Lateral septal nucleus rostral (rostroventral) part medial zone ventral region caudal domain",//
					"Lateral septal nucleus rostral (rostroventral) part ventrolateral zone",//
					"Lateral septal nucleus rostral (rostroventral) part ventrolateral zone dorsal region",//
					"Lateral septal nucleus rostral (rostroventral) part ventrolateral zone dorsal region medial domain",//
					"Lateral septal nucleus rostral (rostroventral) part ventrolateral zone dorsal region lateral domain",//
					"Lateral septal nucleus rostral (rostroventral) part ventrolateral zone ventral region",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone medial region",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone medial region dorsal domain",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone medial region ventral domain",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone lateral region",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone lateral region dorsal domain",//
					"Lateral septal nucleus rostral (rostroventral) part dorsolateral zone lateral region ventral domain",//
					"Lateral septal nucleus ventral part",//
					"Septofimbrial nucleus",//
					"Septohippocampal nucleus",//
					"Pallidum dorsal region",//
					"Globus pallidus",//
					"Globus pallidus lateral segment",//
					"Globus pallidus medial segment",//
					"Pallidum ventral region",//
					"Substantia innominata",//
					"Magnocellular preoptic nucleus",//
					"Medial septal complex",//
					"Medial septal nucleus",//
					"Nucleus of the diagonal band",//
					"Triangular nucleus of the septum",//
					"Midbrain-Hindbrain",//
					"Midbrain-Hindbrain, Sensory",//
					"Midbrain-Hindbrain, Sensory, Visual",//
					"Superior colliculus",//
					"Superior colliculus zonal layer",//
					"Superior colliculus superficial gray layer",//
					"Superior colliculus optic layer",//
					"Superior colliculus intermediate gray layer",//
					"Superior colliculus intermediate gray layer sublayer a",//
					"Superior colliculus intermediate gray layer sublayer b",//
					"Superior colliculus intermediate gray layer sublayer c",//
					"Superior colliculus intermediate white layer",//
					"Superior colliculus intermediate deep gray layer",//
					"Superior colliculus intermediate deep white layer",//
					"Parageminal nucleus",//
					"Pretectal region",//
					"Olivary pretectal nucleus",//
					"Nucleus of the optic tract",//
					"Posterior pretectal nucleus",//
					"Nucleus of the posterior commissure",//
					"Anterior pretectal nucleus",//
					"Medial pretectal area",//
					"Medial terminal nucleus of the accessory optic tract",//
					"Lateral terminal nucleus of the accessory optic tract",//
					"Dorsal terminal nucleus of the accessory optic tract",//
					"Midbrain-Hindbrain, Sensory, Somatosensory",//
					"Trigeminal ganglion",//
					"Mesencephalic nucleus of the trigeminal",//
					"Principal sensory nucleus of the trigeminal",//
					"Spinal nucleus of the trigeminal",//
					"Spinal nucleus of the trigeminal oral part",//
					"Spinal nucleus of the trigeminal oral part ventrolateral part",//
					"Spinal nucleus of the trigeminal oral part rostral dorsomedial part",//
					"Spinal nucleus of the trigeminal oral part middle dorsomedial part, dorsal zone",//
					"Spinal nucleus of the trigeminal oral part middle dorsomedial part, ventral zone",//
					"Spinal nucleus of the trigeminal oral part caudal dorsomedial part",//
					"Spinal nucleus of the trigeminal interpolar part",//
					"Spinal nucleus of the trigeminal caudal part",//
					"Paratrigeminal nucleus",//
					"Dorsal column nuclei",//
					"Gracile nucleus",//
					"Gracile nucleus median part",//
					"Gracile nucleus proper",//
					"Cuneate nucleus",//
					"Nucleus z",//
					"External cuneate nucleus",//
					"Midbrain-Hindbrain, Sensory, Auditory",//
					"Cochlear nuclei",//
					"Dorsal coclear nucleus",//
					"Ventral coclear nucleus",//
					"Ventral coclear nucleus anterior part",//
					"Ventral coclear nucleus posterior part",//
					"Subpeduncular granular region of the cochlear nuclei",//
					"Granular lamina of the cochlear nuclei",//
					"Interstitial nucleus of the auditory nerve",//
					"Nucleus of the trapezoid body",//
					"Superior olivary complex",//
					"Superior olivary complex medial part",//
					"Superior olivary complex lateral part",//
					"Superior olivary complex periolivary region",//
					"Nucleus of the lateral lemniscus",//
					"Inferior colliculus",//
					"Inferior colliculus external nucleus",//
					"Inferior colliculus dorsal nucleus",//
					"Inferior colliculus central nucleus",//
					"Nucleus of the brachium of the inferior colliculus",//
					"Nucleus sagulum",//
					"Midbrain-Hindbrain, Sensory, Vestibular",//
					"Vestibular nuclei",//
					"Medial vestibular nucleus",//
					"Lateral vestibular nucleus",//
					"Superior vestibular nucleus",//
					"Spinal vestibular nucleus",//
					"Perihypoglossal nuclei",//
					"Nucleus intercalatus",//
					"Nucleus prepositus",//
					"Nucleus of Roller",//
					"Interstitial nucleus of the vestibular nerve",//
					"Nucleus x",//
					"Nucleus y",//
					"Infracerebellar nucleus",//
					"Midbrain-Hindbrain, Sensory, Gustatory-Visceral",//
					"Nucleus of the solitary tract",//
					"Nucleus of the solitary tract central part",//
					"Nucleus of the solitary tract commissural part",//
					"Nucleus of the solitary tract gelatinous part",//
					"Nucleus of the solitary tract lateral part",//
					"Nucleus of the solitary tract medial part",//
					"Nucleus of the solitary tract medial part rostral zone",//
					"Nucleus of the solitary tract medial part caudal zone",//
					"Area postrema",//
					"Parabrachial nucleus",//
					"Parabrachial nucleus lateral division",//
					"Parabrachial nucleus lateral division central lateral part",//
					"Parabrachial nucleus lateral division dorsal lateral part",//
					"Parabrachial nucleus lateral division external lateral part",//
					"Parabrachial nucleus lateral division extreme lateral part",//
					"Parabrachial nucleus lateral division internal lateral part",//
					"Parabrachial nucleus lateral division superior lateral part",//
					"Parabrachial nucleus lateral division ventral lateral part",//
					"Kolliker-Fuse subnucleus",//
					"Parabrachial nucleus medial division",//
					"Parabrachial nucleus medial division medial medial part",//
					"Parabrachial nucleus medial division external medial part",//
					"Parabrachial nucleus medial division ventral medial part",//
					"Midbrain-Hindbrain, Motor",//
					"Midbrain-Hindbrain, Motor, Eye",//
					"Oculomotor nucleus",//
					"Medial accessory nucleus",//
					"Oculomotor nucleus proper",//
					"Trochlear nucleus",//
					"Abducens nucleus",//
					"Accesory abducens nucleus",//
					"Abducens nucleus proper",//
					"Midbrain-Hindbrain, Motor, Jaw",//
					"Motor nucleus of the trigeminal",//
					"Motor nucleus of the trigeminal parvicellular part",//
					"Motor nucleus of the trigeminal proper",//
					"Midbrain-Hindbrain, Motor, Extrapyramidal",//
					"Substantia nigra",//
					"Substantia nigra compact part",//
					"Substantia nigra reticular part",//
					"Ventral tegmental area",//
					"Reticular core",//
					"Central gray of the brain",//
					"Periaqueductal gray",//
					"Precommissural nucleus",//
					"Commissural nucleus",//
					"Periaqueductal gray rostromedial division",//
					"Periaqueductal gray rostrolateral division",//
					"Periaqueductal gray medial division",//
					"Periaqueductal gray dorsal division",//
					"Periaqueductal gray ventrolateral division",//
					"Periaqueductal gray dorsolateral division",//
					"Interstitial nucleus of Cajal",//
					"Nucleus of Darkschewitsch",//
					"Dorsal tegmental nucleus",//
					"Ventral tegmental nucleus",//
					"Anterior tegmental nucleus",//
					"Lateral tegmental nucleus",//
					"Laterodorsal tegmental nucleus",//
					"Sublaterodorsal nucleus",//
					"Locus coeruleus",//
					"Subcoeruleus nucleus",//
					"Barrington nucleus",//
					"Supargenual nucleus",//
					"Pontine central gray",//
					"Raphe of mesenchephalon",//
					"Interfascicular nucleus raphe",//
					"Rostral linear nucleus raphe",//
					"Central linear nucleus raphe",//
					"Superior central nucleus raphe",//
					"Superior central nucleus raphe medial part",//
					"Superior central nucleus raphe lateral part",//
					"Dorsal nucleus raphe",//
					"Nucleus incertus",//
					"Nucleus incertus compact part",//
					"Nucleus incertus diffuse part",//
					"Nucleus raphe pontis",//
					"Nucleus raphe magnus",//
					"Nucleus raphe pallidus",//
					"Nucleus raphe obscurus",//
					"Interpeduncular nucleus",//
					"Interpeduncular nucleus rostral subnucleus",//
					"Interpeduncular nucleus apical subnucleus",//
					"Interpeduncular nucleus dorsomedial subnucleus",//
					"Interpeduncular nucleus lateral subnucleus",//
					"Interpeduncular nucleus lateral subnucleus dorsal part",//
					"Interpeduncular nucleus lateral subnucleus intermediate part",//
					"Interpeduncular nucleus lateral subnucleus ventral part",//
					"Interpeduncular nucleus lateral subnucleus rostral part",//
					"Interpeduncular nucleus intermediate subnucleus",//
					"Interpeduncular nucleus central subnucleus",//
					"Reticular formation",//
					"Mesencephalic reticular nucleus",//
					"Retrorubral area",//
					"Pedunculopontine nucleus",//
					"Cuneiform nucleus",//
					"Pontine reticular nucleus",//
					"Pontine reticular nucleus caudal part",//
					"Pontine reticular nucleus rostral part",//
					"Gigantocellular reticular nucleus",//
					"Paragigantocellular reticular nucleus",//
					"Paragigantocellular reticular nucleus dorsal part",//
					"Paragigantocellular reticular nucleus lateral part",//
					"Parapyramidal nucleus",//
					"Parapyramidal nucleus deep part",//
					"Parapyramidal nucleus superficial part",//
					"Magnocellular reticular nucleus",//
					"Supratrigeminal nucleus",//
					"Medullary reticular nucleus",//
					"Medullary reticular nucleus dorsal part",//
					"Medullary reticular nucleus ventral part",//
					"Dorsal horn of the spinal cord",//
					"Marginal zone of the spinal cord",//
					"Substantia gelatinosa of the spinal cord",//
					"Nucleus proprius of the spinal cord",//
					"Reticular nucleus of the spinal cord",//
					"Basal nucleus of the dorsal horn",//
					"Lateral cervical nucleus",//
					"Lateral spinal nucleus",//
					"Intermediate Gray of the Spinal Cord",//
					"Central cervical nucleus",//
					"Dorsal nucleus of the spinal cord",//
					"Dorsal nucleus of the spinal cord caudal part",//
					"Intermediomedial column of the spinal cord",//
					"Intermediolateral column of the spinal cord",//
					"Dorsal commissural nucleus",//
					"Intercalated nucleus of the spinal cord",//
					"Intermediolateral column of the spinal cord sympathetic column",//
					"Intermediolateral column of the spinal cord parasympathetic column",//
					"Central gray of the spinal cord",//
					"Ventral horn of the spinal cord",//
					"Nucleus of the bulbocavernosus",//
					"Onuf nucleus",//
					"Phrenic nucleus",//
					"Somatic motor areas",//
					"Primary motor area",//
					"Secondary motor area",//
					"Auditory areas",//
					"Primary auditory area",//
					"Dorsal auditory areas",//
					"Ventral auditory areas",//
					"Gustatory areas",//
					"Anterior olfactory nucleus",//
					"Anterior olfactory nucleus dorsal part",//
					"Anterior olfactory nucleus dorsal part molecular layer",//
					"Anterior olfactory nucleus dorsal part pyramidal layer",//
					"Anterior olfactory nucleus external part",//
					"Anterior olfactory nucleus external part molecular layer",//
					"Anterior olfactory nucleus external part pyramidal layer",//
					"Anterior olfactory nucleus lateral part",//
					"Anterior olfactory nucleus lateral part molecular layer",//
					"Anterior olfactory nucleus lateral part pyramidal layer",//
					"Anterior olfactory nucleus medial part",//
					"Anterior olfactory nucleus medial part molecular layer",//
					"Anterior olfactory nucleus medial part pyramidal layer",//
					"Anterior olfactory nucleus posteroventral part",//
					"Anterior olfactory nucleus posteroventral part molecular layer",//
					"Anterior olfactory nucleus posteroventral part pyramidal layer",//
					"Taenia tecta",//
					"Taenia tecta dorsal part",//
					"Taenia tecta dorsal part layer 1",//
					"Taenia tecta dorsal part layer 2",//
					"Taenia tecta dorsal part layer 3",//
					"Taenia tecta dorsal part layer 4",//
					"Taenia tecta ventral part",//
					"Taenia tecta ventral part layer1",//
					"Taenia tecta ventral part layer2",//
					"Taenia tecta ventral part layer3",//
					"Piriform area",//
					"Piriform area molecular layer",//
					"Piriform area pyramidal layer",//
					"Piriform area polymorph layer",//
					"Postpiriform transition area",//
					"Piriform-amygdaloid area",//
					"Nucleus of the lateral olfactory tract",//
					"Nucleus of the lateral olfactory tract molecular layer",//
					"Nucleus of the lateral olfactory tract pyramidal layer",//
					"Nucleus of the lateral olfactory tract dorsal cap",//
					"Cortical nucleus of the amygdala",//
					"Cortical nucleus of the amygdala anterior part",//
					"Cortical nucleus of the amygdala posterior part",//
					"Cortical nucleus of the amygdala posterior part lateral zone",//
					"Cortical nucleus of the amygdala posterior part medial zone",//
					"Somatosensory areas",//
					"Primary somatosensory area",//
					"Primary somatosensory area barrel field",//
					"Primary somatosensory area lower limb",//
					"Primary somatosensory area mouth",//
					"Primary somatosensory area nose",//
					"Primary somatosensory area trunk",//
					"Primary somatosensory area upper limb",//
					"Supplemental somatosensory area",//
					"Visceral area",//
					"Visual areas",//
					"Anterior laterolateral visual area",//
					"Anterolateral visual area",//
					"Anteromedial visual area",//
					"Intermediolateral visual area",//
					"Laterolateral visual area",//
					"Mediolateral visual area",//
					"Posterolateral visual area",//
					"Primary visual area",//
					"Rostrolateral visual area",//
					"Agranular insular area",//
					"Agranular insular area dorsal part",//
					"Agranular insular area ventral part",//
					"Agranular insular area posterior part",//
					"Anterior cingulate area",//
					"Anterior cingulate area dorsal part",//
					"Anterior cingulate area ventral part",//
					"Ectorhinal area",//
					"Parasubiculum",//
					"Parasubiculum layer 1",//
					"Parasubiculum layer 2",//
					"Parasubiculum layer 3",//
					"Parasubiculum layer 4",//
					"Parasubiculum layer 5",//
					"Parasubiculum layer 6",//
					"Subiculum",//
					"Subiculum dorsal part",//
					"Subiculum dorsal part molecular layer",//
					"Subiculum dorsal part stratum radiatum",//
					"Subiculum dorsal part pyramidal layer",//
					"Subiculum ventral part",//
					"Subiculum ventral part molecular layer",//
					"Subiculum ventral part stratum radiatum",//
					"Subiculum ventral part pyramidal layer",//
					"Hippocampal region",//
					"Ammon Horn",//
					"Field CA1",//
					"Field CA1 stratum lacunosum-moleculare",//
					"Field CA1 stratum radiatum",//
					"Field CA1 pyramidal layer",//
					"Field CA1 pyramidal layer, deep",//
					"Field CA1 pyramidal layer, superficial",//
					"Field CA1 stratum oriens",//
					"Field CA2",//
					"Field CA2 stratum lacunosum-moleculare",//
					"Field CA2 stratum radiatum",//
					"Field CA2 pyramidal layer",//
					"Field CA2 stratum oriens",//
					"Field CA3",//
					"Field CA3 stratum lacunosum-moleculare",//
					"Field CA3 stratum lucidum",//
					"Field CA3 stratum oriens",//
					"Field CA3 pyramidal layer",//
					"Dentate gyrus",//
					"Dentate gyrus crest",//
					"Dentate gyrus crest molecular layer",//
					"Dentate gyrus crest granule cell  layer",//
					"Dentate gyrus crest polymorph  layer",//
					"Dentate gyrus lateral blade",//
					"Dentate gyrus lateral blade molecular layer",//
					"Dentate gyrus lateral blade granule cell layer",//
					"Dentate gyrus lateral blade polymorph layer",//
					"Dentate gyrus medial blade",//
					"Dentate gyrus medial blade molecular layer",//
					"Dentate gyrus medial blade granule cell layer",//
					"Dentate gyrus medial blade polymorph layer",//
					"Induseum griseum",//
					"Fasciola cinerea",//
					"Infralimbic area",//
					"Orbital area",//
					"Orbital area lateral part",//
					"Orbital area medial part",//
					"Orbital area ventral part",//
					"Orbital area ventrolateral part",//
					"Perirhinal area",//
					"Posterior parietal association areas",//
					"Prelimbic area",//
					"Retrosplenial area",//
					"Retrosplenial area dorsal part",//
					"Retrosplenial area lateral agranular part",//
					"Retrosplenial area ventral part",//
					"Retrosplenial area ventral part zone a",//
					"Retrosplenial area ventral part zone b/c",//
					"Ventral temporal association areas",//
					"Layer 6b(layer 7, subplate, deep cortex, claustral complex)",//
					"Layer 6b, isocortex",//
					"Claustrum",//
					"Endopiriform nucleus",//
					"Endopiriform nucleus dorsal part",//
					"Endopiriform nucleus ventral part",//
					"Lateral nucleus of the amygdala",//
					"Basolateral nucleus of the amygdala",//
					"Basolateral nucleus of the amygdala anterior part",//
					"Basolateral nucleus of the amygdala posterior part",//
					"Basomedial nucleus of the amygdala",//
					"Basomedial nucleus of the amygdala anterior part",//
					"Basomedial nucleus of the amygdala posterior part",//
					"Posterior nucleus of the amygdala",//
					"Cerebellar cortex",//
					"Vermal regions",//
					"Lingula (l)",//
					"Central lobule",//
					"Central lobule, lobule II",//
					"Central lobule, lobule II sublobule a",//
					"Central lobule, lobule II sublobule b",//
					"Central lobule, lobule III",//
					"Central lobule, lobule III sublobule a",//
					"Central lobule, lobule III sublobule b",//
					"Culmen",//
					"Culmen lobule IV",//
					"Culmen lobule V",//
					"Declive (VI)",//
					"Declive, sublobule a",//
					"Declive, sublobule b",//
					"Declive, sublobule c",//
					"Declive, sublobule d",//
					"Folium-tuber vermis (VII)",//
					"Pyramus",//
					"Pyramus sublobule a",//
					"Pyramus sublobule b",//
					"Uvula (IX)",//
					"Uvula (IX) sublobule ab",//
					"Uvula (IX) sublobule c",//
					"Nodulus (X)",//
					"Nodulus sublobule a",//
					"Nodulus sublobule b",//
					"Hemispheric regions",//
					"Simple lobule",//
					"Simple lobule sublobule a",//
					"Simple lobule sublobule b",//
					"Ansiform lobule",//
					"Ansiform lobule crus 1",//
					"Ansiform lobule crus 1 sublobule a",//
					"Ansiform lobule crus 1 sublobule b",//
					"Ansiform lobule crus 1 sublobule c",//
					"Ansiform lobule crus 1 sublobule d",//
					"Ansiform lobule crus 2",//
					"Ansiform lobule crus 2 sublobule a",//
					"Ansiform lobule crus 2 sublobule b",//
					"Paramedian lobule",//
					"Copula pyramidis",//
					"Copula pyramidis sublobule a",//
					"Copula pyramidis sublobule b",//
					"Paraflocculus",//
					"Flocculus",//
					"Deep cerebellar nuclei",//
					"Fastigial nucleus",//
					"Interposed nucleus",//
					"Interposed nucleus parvicellular part",//
					"Interposed nucleus proper",//
					"Dentate nucleus",//
					"Dentate nucleus parvicellular part",//
					"Dentate nucleus proper",//
					"Retina, outer nuclear layer",//
					"Retina, outer plexiform layer",//
					"Retina, inner nuclear layer",//
					"Retina, inner plexiform layer",//
					"Retina, ganglion cell layer",//
					"Pre-Post Cerebellar nuclei",//
					"Pontine gray",//
					"Tegmental reticular nucleus",//
					"Pontine gray proper",//
					"Inferior olivary complex",//
					"Dorsal accessory olive",//
					"Medial accessory olive",//
					"Principal olive",//
					"Lateral reticular nucleus",//
					"Lateral reticular nucleus magnocellular part",//
					"Lateral reticular nucleus parvicellular part",//
					"Linear nucleus of the medulla",//
					"Paramedian reticular nucleus",//
					"Parasolitary nucleus",//
					"Red nucleus",//
					"Midbrain-Hindbrain, Motor, Face",//
					"Facial nucleus",//
					"Accessory facial nucleus",//
					"Facial nucleus_proper",//
					"Midbrain-Hindbrain, Motor, Labyrinth",//
					"Efferent cochlear group",//
					"Efferent vesstibular nucleus",//
					"Midbrain-Hindbrain, Motor, Pharynx-Larynx-Esophagus",//
					"Nucleus ambiguus dorsal division",//
					"Nucleus ambiguus dorsal division, stylopharyngeal motoneurons",//
					"Nucleus ambiguus dorsal division proper",//
					"Midbrain-Hindbrain, Motor, Neck",//
					"Nucleus of the spinal accessory nerve",//
					"Midbrain-Hindbrain, Motor, Tongue",//
					"Hypoglossal nucleus",//
					"Midbrain-Hindbrain, Motor, Viscera",//
					"Edinger-Westphal nucleus",//
					"Superior salivatory nucleus",//
					"Inferior salivatory nucleus",//
					"Dorsal motor nucleus of the vagus nerve",//
					"Nucleus ambiguus, ventral division",//
					"Cranial and Spinal Nerves (and Related)",//
					"Terminal nerve",//
					"Olfactory nerve",//
					"Vomeronasal nerve",//
					"Lateral olfactory tract",//
					"Lateral olfactory tract dorsal limb",//
					"Anterior commissure, olfactory limb",//
					"Optic nerve",//
					"Accessory optic tract",//
					"Brachium of the superior colliculus",//
					"Commissure of the superior colliculus",//
					"Optic chiasm",//
					"Optic tract",//
					"Techtothalamic pathway",//
					"Oculomotor nerve",//
					"Medial longitudinal fascicle",//
					"Posterior commissure",//
					"Trochlear nerve",//
					"Decussation of the trochlear nerve",//
					"Trochlear nerve proper",//
					"Abducens nerve",//
					"Trigeminal nerve",//
					"Motor root of the trigeminal nerve",//
					"Sensory root of the trigeminal nerve",//
					"Mesencephalic tract of the trigeminal nerve",//
					"Spinal tract of the trigeminal nerve",//
					"Facial nerve",//
					"Intermediate nerve",//
					"Genu of the facial nerve",//
					"Vestibulocochlear nerve",//
					"Efferent cochleovestibular bundle",//
					"Vestibular nerve",//
					"Cochlear nerve",//
					"Trapezoid body",//
					"Intermediate acoustic stria",//
					"Dorsal acoustic stria",//
					"Lateral lemniscus",//
					"Commissure of the inferior colliculus",//
					"Brachium of the inferior colliculus",//
					"Glossopharyngeal nerve",//
					"Vagus nerve",//
					"Solitary tract",//
					"Accessory spinal nerve",//
					"Hypoglossal nerve",//
					"Ventral roots",//
					"Dorsal roots",//
					"Cervicothalamic tract",//
					"Dorsolateral fascicle",//
					"Ventral commissure of the spinal cord",//
					"Dorsal columns",//
					"Cuneate fascicle",//
					"Gracile fascicle",//
					"Internal arcuate fibers",//
					"Medial lemniscus",//
					"Spinothalamic tract",//
					"Lateral spinothalamic tract",//
					"Ventral spinothalamic tract",//
					"Spinocervical tract",//
					"Spino-olivary pathway",//
					"Spinoreticular pathway",//
					"Spinovestibular pathway",//
					"Spinotectal pathway",//
					"Spinohypothalamic pathway",//
					"Spinotelencephalic pathway",//
					"Hypothalamohypophysial tract",//
					"Cerebellar commissure",//
					"Cerebellar peduncles",//
					"Superior cerebellar peduncle",//
					"Descussation of the scp",//
					"Uncinate fascicle",//
					"Ventral spinocerebellar tract",//
					"Middle cerebellar peduncle",//
					"Inferior cerebellar peduncle",//
					"Dorsal spinocerebellar tract",//
					"Cuneocerebellar tract",//
					"Juxtarestiform body",//
					"Bulbocerebellar tract",//
					"Olivocerebellar tract",//
					"Reticulocerebellar tract",//
					"Trigeminocerebellar tract",//
					"Arbor vitae",//
					"Extrapyramidal fiber systems",//
					"Extrapyramidal fiber systems, basal-nuclei related",//
					"Pallidothalamic pathway",//
					"Nigrostriatal tract",//
					"Nigrothalamic fibers",//
					"Pallidotegmental fascicle",//
					"Striatonigral pathway",//
					"Subthalamic fascicle",//
					"Tectospinal pathway",//
					"Direct tectospinal pathway",//
					"Dorsal tegmental decussation",//
					"Crossed tectospinal pathway",//
					"Rubrospinal tract",//
					"Ventral tegmental decussation",//
					"Rubroreticular tract",//
					"Central tegmental bundle",//
					"Reticulospinal tract",//
					"Reticulospinal tract, lateral part",//
					"Reticulospinal tract, medial part",//
					"Vestibulospinal pathway",//
					"Cingulum bundle",//
					"Medial forebrain bundle",//
					"Supraoptic commissures",//
					"Supraoptic commissures, anterior",//
					"Supraoptic commissures, dorsal",//
					"Supraoptic commissures, ventral",//
					"Supramammillary decussation",//
					"Periventricular bundle of the hypothalamus",//
					"Principal mammillary tract",//
					"Mammillothalamic tract",//
					"Mammillotegmental tract",//
					"Mammillary peduncle",//
					"Periventricular bundle of the thalamus",//
					"Stria medularis",//
					"Fasciculus retroflexus",//
					"Habenular commisure",//
					"Dorsal longitudinal fascicle",//
					"Dorsal tegmental tract",//
					"Dorsal commissure of the spinal cord",//
					"Lateral hypothalamic area proper",//
					"Bed nuclei of the stria terminalis, anterior division, subcommisural zone",//
					"Medial preoptic area proper",//
					"Anterior hypothalamic area proper",//
					"Supraoptic nucleus proper",//
					"Nucleus reuniens caudal division posterior part",//
					"Parvicellular reticular nucleus",//
					"Mesencephalic reticular nucleus proper",//
					"Locus coeruleus proper",//
					"Stria terminalis",//
					"Bed nuclei of the stria terminalis anterior division anterodorsal area proper",//
					"Bed nuclei of the stria terminalis anterior division anterodorsal area central core",//
					"Laterodorsal tegmental nucleus proper",//
					"Field CA3 stratum radiatum",//
					"Pituitary gland, neural lobe",//
					"Pituitary gland",//
					"Median eminence",//
					"Median eminence external lamina",//
					"Median eminence internal lamina",//
					"Infundibulum",//
					"Infundibulum external lamina",//
					"Infundibulum internal lamina",//
					"Pituitary gland, anterior lobe",//
					"Pituitary gland, intermediate lobe",//
					"Central canal",//
					"Nucleus reuniens rostral division anterior part");
}


text:
package com.bytewood.hermes.api;

import java.io.File;

public interface FileReceiver {

	/**
	 * receive a file for processing
	 * @param arg
	 */
	public void receive(File arg);
}


text:
ActiveRecord::Schema.define(version: 20140717175922) do

  create_table "ratings", force: true do |t|
    t.string   "description"
    t.string   "image"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end


text:
Mutations::CreatePost = GraphQL::Relay::Mutation.define do
  # Used to name derived types, eg `"AddCommentInput"`:
  name "CreatePost"

  #accessible from `inputs` in the resolve function:
  input_field :title, !types.String

  # the result has access to these fields,
  # resolve must return a hash with these keys.
  # on the client-side this would be configured
  # as RANGE_ADD mutation, so our returned fields
  # must conform to that API
  return_field :post, Types::PostType

  # the resolve proc is where you alter the system state.
  resolve -> (object, inputs, ctx) {
    new_post = Post.create!(title: inputs[:title])
    response = {
      post: new_post
    }
  }
end


text:
#include "DefaultMQProducer.h"

#include <assert.h>
#include "MessageExt.h"
#include "QueryResult.h"
#include "DefaultMQProducerImpl.h"
#include "MixAll.h"
#include "MQClientException.h"

namespace rmq
{

DefaultMQProducer::DefaultMQProducer()
    : m_producerGroup(MixAll::DEFAULT_PRODUCER_GROUP),
      m_createTopicKey(MixAll::DEFAULT_TOPIC),
  	  m_defaultTopicQueueNums(4),
      m_sendMsgTimeout(3000),
      m_compressMsgBodyOverHowmuch(1024 * 4),
	  m_retryTimesWhenSendFailed(2),
      m_retryAnotherBrokerWhenNotStoreOK(false),
      m_maxMessageSize(1024 * 128),
      m_compressLevel(5)
{
    m_pDefaultMQProducerImpl = new DefaultMQProducerImpl(this);
}

DefaultMQProducer::DefaultMQProducer(const std::string& producerGroup)
    : m_producerGroup(producerGroup),
      m_createTopicKey(MixAll::DEFAULT_TOPIC),
  	  m_defaultTopicQueueNums(4),
      m_sendMsgTimeout(3000),
      m_compressMsgBodyOverHowmuch(1024 * 4),
      m_retryTimesWhenSendFailed(2),
      m_retryAnotherBrokerWhenNotStoreOK(false),
      m_maxMessageSize(1024 * 128),
      m_compressLevel(5)
{
    m_pDefaultMQProducerImpl = new DefaultMQProducerImpl(this);
}

DefaultMQProducer::~DefaultMQProducer()
{
    // memleak: maybe core
    delete m_pDefaultMQProducerImpl;
}

void DefaultMQProducer::start()
{
    m_pDefaultMQProducerImpl->start();
}

void DefaultMQProducer::shutdown()
{
    m_pDefaultMQProducerImpl->shutdown();
}

std::vector<MessageQueue>* DefaultMQProducer::fetchPublishMessageQueues(const std::string& topic)
{
    return m_pDefaultMQProducerImpl->fetchPublishMessageQueues(topic);
}

SendResult DefaultMQProducer::send(Message& msg)
{
    return m_pDefaultMQProducerImpl->send(msg);
}

void DefaultMQProducer::send(Message& msg, SendCallback* pSendCallback)
{
    m_pDefaultMQProducerImpl->send(msg, pSendCallback);
}

void DefaultMQProducer::sendOneway(Message& msg)
{
    m_pDefaultMQProducerImpl->sendOneway(msg);
}

SendResult DefaultMQProducer::send(Message& msg, MessageQueue& mq)
{
    return m_pDefaultMQProducerImpl->send(msg, mq);
}

void DefaultMQProducer::send(Message& msg, MessageQueue& mq, SendCallback* pSendCallback)
{
    m_pDefaultMQProducerImpl->send(msg, mq, pSendCallback);
}

void DefaultMQProducer::sendOneway(Message& msg, MessageQueue& mq)
{
    m_pDefaultMQProducerImpl->sendOneway(msg, mq);
}

SendResult DefaultMQProducer::send(Message& msg, MessageQueueSelector* pSelector, void* arg)
{
    return m_pDefaultMQProducerImpl->send(msg, pSelector, arg);
}

void DefaultMQProducer::send(Message& msg,
                             MessageQueueSelector* pSelector,
                             void* arg,
                             SendCallback* pSendCallback)
{
    m_pDefaultMQProducerImpl->send(msg, pSelector, arg, pSendCallback);
}

void DefaultMQProducer::sendOneway(Message& msg, MessageQueueSelector* pSelector, void* arg)
{
    m_pDefaultMQProducerImpl->sendOneway(msg, pSelector, arg);
}

TransactionSendResult DefaultMQProducer::sendMessageInTransaction(Message& msg,
        LocalTransactionExecuter* tranExecuter, void* arg)
{
    THROW_MQEXCEPTION(MQClientException,
                      "sendMessageInTransaction not implement, please use TransactionMQProducer class", -1);
    TransactionSendResult result;

    return result;
}

void DefaultMQProducer::createTopic(const std::string& key, const std::string& newTopic, int queueNum)
{
    m_pDefaultMQProducerImpl->createTopic(key, newTopic, queueNum);
}

long long DefaultMQProducer::searchOffset(const MessageQueue& mq, long long timestamp)
{
    return m_pDefaultMQProducerImpl->searchOffset(mq, timestamp);
}

long long DefaultMQProducer::maxOffset(const MessageQueue& mq)
{
    return m_pDefaultMQProducerImpl->maxOffset(mq);
}

long long DefaultMQProducer::minOffset(const MessageQueue& mq)
{
    return m_pDefaultMQProducerImpl->minOffset(mq);
}

long long DefaultMQProducer::earliestMsgStoreTime(const MessageQueue& mq)
{
    return m_pDefaultMQProducerImpl->earliestMsgStoreTime(mq);
}

MessageExt* DefaultMQProducer::viewMessage(const std::string& msgId)
{
    return m_pDefaultMQProducerImpl->viewMessage(msgId);
}

QueryResult DefaultMQProducer::queryMessage(const std::string& topic,
        const std::string& key,
        int maxNum,
        long long begin,
        long long end)
{

    return m_pDefaultMQProducerImpl->queryMessage(topic, key, maxNum, begin, end);
}

std::string DefaultMQProducer::getProducerGroup()
{
    return m_producerGroup;
}

void DefaultMQProducer::setProducerGroup(const std::string& producerGroup)
{
    m_producerGroup = producerGroup;
}

std::string DefaultMQProducer::getCreateTopicKey()
{
    return m_createTopicKey;
}

void DefaultMQProducer::setCreateTopicKey(const std::string& createTopicKey)
{
    m_createTopicKey = createTopicKey;
}

int DefaultMQProducer::getSendMsgTimeout()
{
    return m_sendMsgTimeout;
}

void DefaultMQProducer::setSendMsgTimeout(int sendMsgTimeout)
{
    m_sendMsgTimeout = sendMsgTimeout;
}

int DefaultMQProducer::getCompressMsgBodyOverHowmuch()
{
    return m_compressMsgBodyOverHowmuch;
}

void DefaultMQProducer::setCompressMsgBodyOverHowmuch(int compressMsgBodyOverHowmuch)
{
    m_compressMsgBodyOverHowmuch = compressMsgBodyOverHowmuch;
}

DefaultMQProducerImpl* DefaultMQProducer::getDefaultMQProducerImpl()
{
    return m_pDefaultMQProducerImpl;
}

bool DefaultMQProducer::isRetryAnotherBrokerWhenNotStoreOK()
{
    return m_retryAnotherBrokerWhenNotStoreOK;
}

void DefaultMQProducer::setRetryAnotherBrokerWhenNotStoreOK(bool retryAnotherBrokerWhenNotStoreOK)
{
    m_retryAnotherBrokerWhenNotStoreOK = retryAnotherBrokerWhenNotStoreOK;
}

int DefaultMQProducer::getMaxMessageSize()
{
    return m_maxMessageSize;
}

void DefaultMQProducer::setMaxMessageSize(int maxMessageSize)
{
    m_maxMessageSize = maxMessageSize;
}

int DefaultMQProducer::getDefaultTopicQueueNums()
{
    return m_defaultTopicQueueNums;
}

void DefaultMQProducer::setDefaultTopicQueueNums(int defaultTopicQueueNums)
{
    m_defaultTopicQueueNums = defaultTopicQueueNums;
}

int DefaultMQProducer::getRetryTimesWhenSendFailed()
{
    return m_retryTimesWhenSendFailed;
}

void DefaultMQProducer::setRetryTimesWhenSendFailed(int retryTimesWhenSendFailed)
{
    m_retryTimesWhenSendFailed = retryTimesWhenSendFailed;
}

int DefaultMQProducer::getCompressLevel()
{
    return m_compressLevel;
}

void DefaultMQProducer::setCompressLevel(int compressLevel)
{
    assert(compressLevel >= 0 && compressLevel <= 9 || compressLevel == -1);

    m_compressLevel = compressLevel;
}

}


text:
using UnityEngine;
using System.Collections;
using System;
using UnityEngine.UI;

public class DockToolButtonController : ToolButtonController {

	public MapController mapController;
	public ToolSelector toolSelector;

	public override void SelectTool(string setting) {
		CreateDockTool tool = null;
        switch (setting) {
		case "Cruise":
			tool = new CreateDockTool(mapController, IndustryType.Cruise);
			break;

		case "Breakbulk":
			tool = new CreateDockTool(mapController, IndustryType.BreakBulk);
			break;

		case "Bulk":
			tool = new CreateDockTool(mapController, IndustryType.Bulk);
			break;

		case "Petro":
			tool = new CreateDockTool(mapController, IndustryType.Petro);
			break;

		default:
			return;
		}
		toolSelector.SelectTool(tool);
		gameObject.GetComponent<Button>().image.color = Color.white;
    }

	// Use this for initialization
	void Start () {

	}

	// Update is called once per frame
	void Update () {

	}
}


text:
package com.github.symulakr.gwt.generators.client.celltable.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.google.gwt.user.cellview.client.CellTable.Resources;

@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface TableResources
{
   Class<? extends Resources> value() default Resources.class;
}


text:
var BrowserWindow, app, assert, crashReporter, http, multiparty, path, ref, remote, url;

assert = require('assert');

path = require('path');

http = require('http');

url = require('url');

multiparty = require('multiparty');

remote = require('electron').remote;

ref = remote.require('electron'), app = ref.app, crashReporter = ref.crashReporter, BrowserWindow = ref.BrowserWindow;

describe('crash-reporter module', function() {
  var fixtures, isCI, w;
  fixtures = path.resolve(__dirname, 'fixtures');
  w = null;
  beforeEach(function() {
    return w = new BrowserWindow({
      show: false
    });
  });
  afterEach(function() {
    return w.destroy();
  });
  if (process.mas) {
    return;
  }
  isCI = remote.getGlobal('isCi');
  if (isCI) {
    return;
  }
  it('should send minidump when renderer crashes', function(done) {
    var called, port, server;
    this.timeout(120000);
    called = false;
    server = http.createServer(function(req, res) {
      var form;
      server.close();
      form = new multiparty.Form();
      return form.parse(req, function(error, fields, files) {
        if (called) {
          return;
        }
        called = true;
        assert.equal(fields['prod'], 'Electron');
        assert.equal(fields['ver'], process.versions['electron']);
        assert.equal(fields['process_type'], 'renderer');
        assert.equal(fields['platform'], process.platform);
        assert.equal(fields['extra1'], 'extra1');
        assert.equal(fields['extra2'], 'extra2');
        assert.equal(fields['_productName'], 'Zombies');
        assert.equal(fields['_companyName'], 'Umbrella Corporation');
        assert.equal(fields['_version'], app.getVersion());
        res.end('abc-123-def');
        return done();
      });
    });
    port = remote.process.port;
    return server.listen(port, '127.0.0.1', function() {
      port = server.address().port;
      remote.process.port = port;
      url = url.format({
        protocol: 'file',
        pathname: path.join(fixtures, 'api', 'crash.html'),
        search: "?port=" + port
      });
      if (process.platform === 'darwin') {
        crashReporter.start({
          companyName: 'Umbrella Corporation',
          submitURL: "http://127.0.0.1:" + port
        });
      }
      return w.loadURL(url);
    });
  });
  return describe(".start(options)", function() {
    return it('requires that the companyName and submitURL options be specified', function() {
      assert.throws(function() {
        return crashReporter.start({
          companyName: 'Missing submitURL'
        });
      });
      return assert.throws(function() {
        return crashReporter.start({
          submitURL: 'Missing companyName'
        });
      });
    });
  });
});


text:
package org.jboss.weld.injection;

import java.io.ObjectStreamException;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.reflect.Member;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.Set;

import jakarta.enterprise.inject.spi.Annotated;
import jakarta.enterprise.inject.spi.Bean;
import jakarta.enterprise.inject.spi.InjectionPoint;

public class EmptyInjectionPoint implements InjectionPoint, Serializable {

    private static final long serialVersionUID = -2041468540191211977L;

    public static final InjectionPoint INSTANCE = new EmptyInjectionPoint();

    protected EmptyInjectionPoint() {
    }

    public Type getType() {
        return Object.class;
    }

    public Set<Annotation> getQualifiers() {
        return Collections.emptySet();
    }

    public Bean<?> getBean() {
        return null;
    }

    public Member getMember() {
        return null;
    }

    public Annotated getAnnotated() {
        return null;
    }

    public boolean isDelegate() {
        return false;
    }

    public boolean isTransient() {
        return false;
    }

    private Object readResolve() throws ObjectStreamException {
        return INSTANCE;
    }
}


text:
package com.kevinrmann.photoviewer;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;

import java.io.File;

public class PhotoDetailActivity extends AppCompatActivity {

    ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_photo_detail);

        Intent intent = getIntent();
        String imagePath = intent.getStringExtra(PhotoListActivity.IMAGE_PATH);
        String fileName = imagePath.substring(imagePath.lastIndexOf("/")+1);
        setTitle(fileName);
        imageView = (ImageView)findViewById(R.id.fullScreenImage);
        File imageFile = new File(imagePath);
        if(imageFile.exists()){
            Bitmap myBitmap = BitmapFactory.decodeFile(imageFile.getAbsolutePath());
            imageView.setImageBitmap(myBitmap);
        }

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_image_detail, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}


text:
#ifndef LED_H
#define LED_H
#include <stdint.h>

	/**
	  * Sets pin direction to output
	  * @param base_address port base address (FIODIR)
	  * @param pin number
	  */
	void led_init(volatile uint32_t* base_address, uint8_t pin);
	/**
	  * Turn the led on
	  * @param base_address port base address (FIODIR)
	  * @param pin number
	  */
	void on(volatile uint32_t* base_address, uint8_t pin);
	/**
	  * Turn the led off
	  * @param base_address port base address (FIODIR)
	  * @param pin number
	  */
	void off(volatile uint32_t* base_address, uint8_t pin);
	/**
	  * Toggle the led
	  * @param base_address port base address (FIODIR)
	  * @param pin number
	  */
	void toggle(volatile uint32_t* base_address, uint8_t pin);

#endif


text:
package apple.avfoundation;

import apple.NSObject;
import apple.foundation.NSArray;
import apple.foundation.NSMethodSignature;
import apple.foundation.NSSet;
import org.moe.natj.c.ann.FunctionPtr;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.Pointer;
import org.moe.natj.general.ann.Generated;
import org.moe.natj.general.ann.Library;
import org.moe.natj.general.ann.Mapped;
import org.moe.natj.general.ann.NInt;
import org.moe.natj.general.ann.NUInt;
import org.moe.natj.general.ann.Owned;
import org.moe.natj.general.ann.Runtime;
import org.moe.natj.general.ptr.VoidPtr;
import org.moe.natj.objc.Class;
import org.moe.natj.objc.ObjCRuntime;
import org.moe.natj.objc.SEL;
import org.moe.natj.objc.ann.ObjCClassBinding;
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.map.ObjCObjectMapper;

/**
 * AVAssetSegmentReport
 *

 * This class provides information on a segment data.
 *

 * Clients may get an instance of AVAssetSegmentReport through the
 * -assetWriter:didOutputSegmentData:segmentType:segmentReport: delegate method, which is defined in AVAssetWriter.h.
 */
@Generated
@Library("AVFoundation")
@Runtime(ObjCRuntime.class)
@ObjCClassBinding
public class AVAssetSegmentReport extends NSObject {
    static {
        NatJ.register();
    }

    @Generated
    protected AVAssetSegmentReport(Pointer peer) {
        super(peer);
    }

    @Generated
    @Selector("accessInstanceVariablesDirectly")
    public static native boolean accessInstanceVariablesDirectly();

    @Generated
    @Owned
    @Selector("alloc")
    public static native AVAssetSegmentReport alloc();

    @Owned
    @Generated
    @Selector("allocWithZone:")
    public static native AVAssetSegmentReport allocWithZone(VoidPtr zone);

    @Generated
    @Selector("automaticallyNotifiesObserversForKey:")
    public static native boolean automaticallyNotifiesObserversForKey(String key);

    @Generated
    @Selector("cancelPreviousPerformRequestsWithTarget:")
    public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget);

    @Generated
    @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:")
    public static native void cancelPreviousPerformRequestsWithTargetSelectorObject(
            @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector,
            @Mapped(ObjCObjectMapper.class) Object anArgument);

    @Generated
    @Selector("classFallbacksForKeyedArchiver")
    public static native NSArray<String> classFallbacksForKeyedArchiver();

    @Generated
    @Selector("classForKeyedUnarchiver")
    public static native Class classForKeyedUnarchiver();

    @Generated
    @Selector("debugDescription")
    public static native String debugDescription_static();

    @Generated
    @Selector("description")
    public static native String description_static();

    @Generated
    @Selector("hash")
    @NUInt
    public static native long hash_static();

    @Generated
    @Selector("init")
    public native AVAssetSegmentReport init();

    @Generated
    @Selector("instanceMethodForSelector:")
    @FunctionPtr(name = "call_instanceMethodForSelector_ret")
    public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector);

    @Generated
    @Selector("instanceMethodSignatureForSelector:")
    public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector);

    @Generated
    @Selector("instancesRespondToSelector:")
    public static native boolean instancesRespondToSelector(SEL aSelector);

    @Generated
    @Selector("isSubclassOfClass:")
    public static native boolean isSubclassOfClass(Class aClass);

    @Generated
    @Selector("keyPathsForValuesAffectingValueForKey:")
    public static native NSSet<String> keyPathsForValuesAffectingValueForKey(String key);

    @Generated
    @Owned
    @Selector("new")
    public static native AVAssetSegmentReport new_objc();

    @Generated
    @Selector("resolveClassMethod:")
    public static native boolean resolveClassMethod(SEL sel);

    @Generated
    @Selector("resolveInstanceMethod:")
    public static native boolean resolveInstanceMethod(SEL sel);

    /**
     * [@property] segmentType
     *

     * A segment type of the segment data.
     */
    @Generated
    @Selector("segmentType")
    @NInt
    public native long segmentType();

    @Generated
    @Selector("setVersion:")
    public static native void setVersion_static(@NInt long aVersion);

    @Generated
    @Selector("superclass")
    public static native Class superclass_static();

    /**
     * [@property] trackReports
     *

     * Provides an array of AVAssetSegmentTrackReport in the segment data.
     */
    @Generated
    @Selector("trackReports")
    public native NSArray<? extends AVAssetSegmentTrackReport> trackReports();

    @Generated
    @Selector("version")
    @NInt
    public static native long version_static();
}


text:
SRCROOT=${HOME}/Projects/third-party/SDL2_image.hg/Xcode

# installation prefix
TARGET_DIR=/private/tmp/SDL2_image

if [[ -d $SRCROOT ]]; then

  echo "SRCROOT: ${SRCROOT}"
  echo "TARGET_DIR: ${TARGET_DIR}"

  cd ${SRCROOT}

  if [[ -d $TARGET_DIR ]]; then
    rm -rf "${TARGET_DIR}/*"
  else
    mkdir -p "${TARGET_DIR}"
  fi

  xcodebuild clean
  rm -rf build/*
  # If the build fails, this file needs to be deleted before we can restart
  # the build again
  rm -rf Frameworks/Frameworks

  xcodebuild -configuration Debug -scheme Framework \
  SYMROOT="${TARGET_DIR}" \
  BUILD_DIR="${TARGET_DIR}" \
  USER_HEADER_SEARCH_PATHS="${HOME}/Projects/nomlib.git/third-party/osx/SDL2.framework/Headers" FRAMEWORK_SEARCH_PATHS="${HOME}/Projects/nomlib.git/third-party/osx ${SRCROOT}/Frameworks"

  xcodebuild clean
  rm -rf build/*
  rm -rf Frameworks/Frameworks

  xcodebuild -configuration Release -scheme Framework \
  SYMROOT="${TARGET_DIR}" \
  BUILD_DIR="${TARGET_DIR}" \
  USER_HEADER_SEARCH_PATHS="${HOME}/Projects/nomlib.git/third-party/osx/SDL2.framework/Headers" FRAMEWORK_SEARCH_PATHS="${HOME}/Projects/nomlib.git/third-party/osx ${SRCROOT}/Frameworks"
else
  echo "ERROR: Directory path does not exist: ${SRCROOT}"
fi


text:
'use strict';

// exports

module.exports = _mainMap;

// private

var _separator = '.';

/**
 * Main map function
 * Returns a new object with its new aspect given by the schema
 * @param data
 * @param schema
 * @param options
 * @returns {*}
 * @private
 */
function _mainMap(data, schema, options) {
    options = options || {};
    var mapping = _map(data, schema, options);
    if (options.removeChanged) {
        var mappedFields = _getMappedFields(schema);
        mappedFields.forEach(function (field) {
            _removeMappedFields(mapping, field);
        });
        mapping = _cleanArrays(mapping);
    }
    return mapping;
}

/**
 * Returns a new object with its new aspect given by the schema
 * @param data Object to map
 * @param schema Fields to map
 * @param options Options
 * @returns {*}
 * @private
 */
function _map(data, schema, options) {
    options = options || {};
    if (!schema || data === null) {
        return data;
    }
    if (schema instanceof Array) {
        return _mapArray(data, schema, options);
    }
    if (typeof schema === 'object') {
        return _mapObject(data, schema, options);
    }
    return schema;
}

/**
 *
 * @param mapping
 * @returns {*}
 * @private
 */
function _cleanArrays(mapping) {
    if (!mapping) {
        return mapping;
    }
    if (mapping instanceof Array) {
        return mapping
            .filter(function (value) {
                return value !== undefined;
            })
            .map(function (value) {
                return _cleanArrays(value);
            });
    }
    if (typeof mapping === 'object') {
        return Object
            .keys(mapping)
            .reduce(function (memo, key) {
                memo[key] = _cleanArrays(mapping[key]);
                return memo;
            }, {});
    }
    return mapping;
}

/**
 * !! Function with side effects !!
 * Removes given fields of a dataset
 * @param mapping Data to clean
 * @param path Path to field to delete
 * @returns {*}
 * @private
 */
function _removeMappedFields(mapping, path) {
    if (typeof path === 'number') {
        delete mapping[path];
        return mapping;
    }
    var keys = path.split(_separator);
    if (keys.length <= 1) {
        delete mapping[path];
        return mapping;
    }
    return _removeMappedFields(
        mapping[path[0]],
        keys
            .slice(1)
            .join(_separator)
    );
}

/**
 * Returns the fields which are used in the final object
 * @param schema Target schema
 * @returns {*}
 * @private
 */
function _getMappedFields(schema) {
    if (schema === undefined ||
        schema === null) {
        return;
    }
    if (schema instanceof Array) {
        return schema
            .reduce(function (memo, key) {
                var mappedField = _getMappedFields(key);
                if (mappedField !== undefined) {
                    memo = memo.concat(mappedField);
                }
                return memo;
            }, []);
    }
    if (typeof schema === 'object') {
        return Object
            .keys(schema)
            .reduce(function (memo, key) {
                var mappedField = _getMappedFields(schema[key]);
                if (mappedField !== undefined) {
                    memo = memo.concat(mappedField);
                }
                return memo;
            }, []);
    }
    if (typeof schema === 'string' ||
        typeof schema === 'number') {
        return schema;
    }
}

/**
 * Returns a new object with its new aspect from an array schema
 * @param data Object to map
 * @param schema Fields to map
 * @param options Options
 * @returns {*}
 * @private
 */
function _mapArray(data, schema, options) {
    var base = [];
    if (data instanceof Array && options.keep) {
        base = _clone(data);
    }
    if (typeof data === 'object' && options.keep) {
        base = Object
            .keys(data)
            .map(function(key) {
                return data[key];
            });
    }
    return schema
        .reduce(function (memo, nestedSchema) {
            memo.push(_mapDataValue(data, nestedSchema));
            return memo;
        }, base);
}

/**
 * Returns a new object with its new aspect from an object schema
 * @param data Object to map
 * @param schema Fields to map
 * @param options Options
 * @returns {*}
 * @private
 */
function _mapObject(data, schema, options) {
    return Object
        .keys(schema)
        .reduce(function (memo, key) {
            memo[key] = _mapDataValue(data, schema[key]);
            return memo;
        }, options.keep ? _clone(data) : {});
}

/**
 * Returns the value of an object from a nested schema
 * @param data Object to map
 * @param nestedSchema Path to value, function to execute or nested schema
 * @returns {*}
 * @private
 */
function _mapDataValue(data, nestedSchema) {
    if (typeof nestedSchema === 'function') {
        return nestedSchema.apply(data);
    } else if (typeof nestedSchema === 'object') {
        return _map(data, nestedSchema);
    } else {
        return _getDataValue(data, nestedSchema);
    }
}

/**
 * Returns the value of an object from its path
 * @param data Object to map
 * @param path Path to value in object
 * @returns {*}
 * @private
 */
function _getDataValue(data, path) {
    if (data === undefined) {
        return undefined;
    }
    if (typeof path === 'number') {
        return data[path];
    }
    if (typeof path === 'string') {
        var keys = path.split(_separator);
        if (keys.length <= 1) {
            return data[keys[0]];
        }
        return _getDataValue(
            data[keys[0]],
            keys
                .slice(1)
                .join(_separator)
        );
    }
    return undefined;
}

/**
 * Clone an object
 * @param data Object to clone
 * @private
 */
function _clone(data) {
    return JSON.parse(JSON.stringify(data));
}


text:
package com.redshape.utils.tests;

import junit.framework.TestCase;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractTest<V> extends TestCase {
	private Map<V, Object> attributes = new HashMap<V, Object>();

	protected void setAttribute( V key, Object value ) {
		this.attributes.put(key, value);
	}

	@SuppressWarnings("unchecked")
	protected <T> T getAttribute( V key ) {
		return (T) this.attributes.get(key);
	}

}


text:
days=10
entries_per_day=100000
# file size calculations
#  format     entries_per_day     file_size in MB
#  csv       10000000             830 M file
#  json      1000000              169 M
#  json      3200000              500 M

log_format="csv"
#log_format="json"
## --- end config

import os
import datetime as dt
import random
import json

domains = ['facebook.com',  'yahoo.com',   'google.com',   'zynga.com',    'wikipedia.org',   'sf.craigslist.org',   'twitter.com',    'amazon.com',    'flickr.com',    'cnn.com',      'usatoday.com',      'npr.org',    'foxnews.com',    'comedycentral.com',   'youtube.com',   'hulu.com',   'bbc.co.uk',  'nytimes.com',   'sfgate.com',   'funnyordie.com']

actions = ['viewed', 'clicked', 'blocked']
total_users = 100000
total_ips = 1000
total_sessions = 100
total_campaigns = 20

# overwrite this function to customize log generation
def generate_log(timestamp):
  user = "user_%d" % random.randint(1,total_users)
  action = random.choice(actions)
  domain = random.choice(domains)
  ip_address = "ip_%d" % random.randint(1,total_ips)
  campaign = "campaign_%d" % random.randint(1,total_campaigns)
  session = "session_%s" % random.randint(1,total_sessions)
  #cost is in cents, could be zero
  cost = random.randint(1,200) - 20
  if (cost < 0):
    cost = 0

  #csv
  if (log_format == 'csv'):
    logline = "%s,%s,%s,%s,%s,%s,%s,%s" % (timestamp, ip_address, user, action, domain, campaign, cost, session)

  # generate JSON format
  if (log_format == 'json'):
    dict={'timestamp': timestamp, 'ip': ip_address, 'user': user, 'action': action, 'domain': domain,  'campaign':campaign, 'cost': cost,  'session': session}
    logline = json.dumps(dict)

  #print logline
  return logline

#main
## --- script main
if __name__ == '__main__':
  time_inc_ms = int ((24.0*3600*1000)/entries_per_day)
  #print "time inc ms", time_inc_ms
  #epoch = dt.datetime.fromtimestamp(0)
  epoch = dt.datetime(1970,1,1)

  year_start = dt.datetime(2015, 1, 1)
  for day in range(0, days):
    day_delta = dt.timedelta(days=day)
    start_ts = year_start + day_delta
    #end_ts = dt.datetime(start_ts.year, start_ts.month, start_ts.day, 23, 59, 59)
    end_ts = dt.datetime(start_ts.year, start_ts.month, start_ts.day+1, 0, 0, 0)
    filename = "clickstream-" + start_ts.strftime("%Y-%m-%d")
    if (log_format == 'csv'):
      filename = filename + ".csv"
    if (log_format == 'json'):
      filename = filename + ".json"

    #print start_ts
    #print end_ts
    last_ts = start_ts

    with open(filename, "w") as fout:
      print "generating log ", filename
      while (last_ts < end_ts):
        delta_since_epoch = last_ts - epoch
        millis = int((delta_since_epoch.microseconds + (delta_since_epoch.seconds + delta_since_epoch.days * 24 * 3600) * 10**6) / 1e3)
        #print "last ts", last_ts
        #print "millis",  millis
        logline = generate_log(millis)
        fout.write(logline + "\n")

        last_ts = last_ts + dt.timedelta(milliseconds=time_inc_ms)


text:
<!doctype html>

    <meta charset="utf-8">

<title>Layout: Header Image (External URL) - Witty AI</title>

<meta name="description" content="This post should display a header image, if the theme supports it.">

<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Witty AI">
<meta property="og:title" content="Layout: Header Image (External URL)">

  <link rel="canonical" href="http://localhost:4000/layout/uncategorized/layout-header-image-external/">
  <meta property="og:url" content="http://localhost:4000/layout/uncategorized/layout-header-image-external/">

  <meta property="og:description" content="This post should display a header image, if the theme supports it.">

  <meta name="twitter:site" content="@mmistakes">
  <meta name="twitter:title" content="Layout: Header Image (External URL)">
  <meta name="twitter:description" content="This post should display a header image, if the theme supports it.">
  <meta name="twitter:url" content="http://localhost:4000/layout/uncategorized/layout-header-image-external/">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:image" content="https://farm5.staticflickr.com/4140/4939863887_84705982fd_b.jpg">

  <meta property="og:image" content="https://farm5.staticflickr.com/4140/4939863887_84705982fd_b.jpg">

  <meta property="og:type" content="article">
  <meta property="article:published_time" content="2012-03-15T00:00:00-04:00">

  <meta name="google-site-verification" content="UQj93ERU9zgECodaaXgVpkjrFn9UrDMEzVamacSoQ8Y" />

<link href="http://localhost:4000/feed.xml" type="application/atom+xml" rel="alternate" title="Witty AI Feed">

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="http://localhost:4000/assets/css/main.css">

<meta http-equiv="cleartype" content="on">

        <button>

</button>

Witty AI

Quick-Start Guide

About

Sample Posts

Sample Collections

Terms & Privacy Policy

Ryan Skorupski

        Just another boring, tattooed, time traveling, designer.

    <button class="btn btn--inverse">Follow</button>

           Buffalo, NY

              Website

          Twitter

          Facebook

          Instagram

          Github

    <meta itemprop="headline" content="Layout: Header Image (External URL)">
    <meta itemprop="description" content="This post should display a header image, if the theme supports it.">
    <meta itemprop="datePublished" content="March 15, 2012">

Layout: Header Image (External URL)

	  less than 1 minute read

This post should display a header image, if the theme supports it.

Featured image is an external asset and should load.

     Tags:

      edge case,

      featured image,

      image,

      layout

     Categories:

      Layout,

      Uncategorized

 Updated: <time datetime="2012-03-15T00:00:00-04:00">March 15, 2012</time>

Share on

   Twitter

   Facebook

   Google+

   LinkedIn

      Previous

      Next

Leave a Comment

Your email address will not be published. Required fields are marked *

        <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/mmistakes/minimal-mistakes/master">

            Loading...

          <fieldset>
            Comment *
            <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>

Markdown is supported.

          </fieldset>
          <fieldset>
            Name *
            <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
          </fieldset>
          <fieldset>
            Email address *
            <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
          </fieldset>
          <fieldset>
            Website (optional)
            <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
          </fieldset>
          <fieldset class="hidden" style="display: none;">
            <input type="hidden" name="options[slug]" value="layout-header-image-external">
            Not used. Leave blank if you are a human.
            <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
          </fieldset>

          <fieldset>
            <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button>
          </fieldset>
        </form>

Follow:

 Twitter

 Facebook

 GitHub

 Feed

© 2016 Ryan Skorupski. Powered by Jekyll & Minimal Mistakes.


text:
<?php

namespace Magento\Variable\Test\Constraint;

use Magento\Variable\Test\Fixture\SystemVariable;
use Magento\Variable\Test\Page\Adminhtml\SystemVariableIndex;
use Magento\Mtf\Constraint\AbstractConstraint;

/**
 * Check that created custom variable is displayed on backend in custom variable grid and has correct data
 * according to dataset.
 */
class AssertCustomVariableInGrid extends AbstractConstraint
{
    /* tags */
    const SEVERITY = 'low';
    /* end tags */

    /**
     * Assert custom variable is displayed on backend in custom variable grid.
     *
     * @param SystemVariableIndex $systemVariableIndexNew
     * @param SystemVariable $customVariable
     * @return void
     */
    public function processAssert(
        SystemVariableIndex $systemVariableIndexNew,
        SystemVariable $customVariable
    ) {
        $filter = [
            'code' => $customVariable->getCode(),
            'name' => $customVariable->getName(),
        ];

        $systemVariableIndexNew->open();
        \PHPUnit_Framework_Assert::assertTrue(
            $systemVariableIndexNew->getSystemVariableGrid()->isRowVisible($filter),
            'Custom Variable with code \'' . $filter['code'] . '\' is absent in Custom Variable grid.'
        );
    }

    /**
     * Returns a string representation of successful assertion.
     *
     * @return string
     */
    public function toString()
    {
        return 'Custom System Variable is present in grid.';
    }
}


text:
import http from 'node:http';
import got from '../../dist/source/index.js';

// Wraps an existing Agent instance
class WrappedAgent {
	constructor(agent) {
		this.agent = agent;
	}

	addRequest(request, options) {
		return this.agent.addRequest(request, options);
	}

	get keepAlive() {
		return this.agent.keepAlive;
	}

	get maxSockets() {
		return this.agent.maxSockets;
	}

	get options() {
		return this.agent.options;
	}

	get defaultPort() {
		return this.agent.defaultPort;
	}

	get protocol() {
		return this.agent.protocol;
	}
}

class TransformHeadersAgent extends WrappedAgent {
	addRequest(request, options) {
		const headers = request.getHeaderNames();

		for (const header of headers) {
			request.setHeader(this.transformHeader(header), request.getHeader(header));
		}

		return super.addRequest(request, options);
	}

	transformHeader(header) {
		return header.split('-').map(part => {
			return part[0].toUpperCase() + part.slice(1);
		}).join('-');
	}
}

const agent = new http.Agent({
	keepAlive: true
});

const wrappedAgent = new TransformHeadersAgent(agent);

const main = async () => {
	const headers = await got(`http://localhost:${server.address().port}`, {
		agent: {
			http: wrappedAgent
		},
		headers: {
			foo: 'bar'
		}
	}).json();

	console.log(headers);

	agent.destroy();
	server.close();
};

const server = http.createServer((request, response) => {
	const {rawHeaders} = request;
	const headers = {};

	for (let i = 0; i < rawHeaders.length; i += 2) {
		headers[rawHeaders[i]] = rawHeaders[i + 1];
	}

	response.end(JSON.stringify(headers));
}).listen(0, main);


text:
/**
 *
 */
package org.jmresler.healthy.vitamins;

import static org.junit.Assert.fail;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * @author NonEu
 *
 */
public class MainTest {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link org.jmresler.healthy.vitamins.Main#main(java.lang.String[])}.
	 */
	@Test
	public void testMain() {
		fail("Not yet implemented"); // TODO
	}

}


text:
rfkill unblock bluetooth

# Upgrading nodejs from 0.10.38-r0 to 0.12.7-r1 on root.
# source: http://jeanbrito.com/2016/03/06/updating-intel-edisons-nodejs-to-0-12-7/
cat <<EOF > /etc/opkg/base-feeds.conf
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
EOF
opkg update && opkg install nodejs


text:
(function() {
  var global, p, predicates,
    __slice = [].slice;

  global = typeof window !== 'undefined' ? window : typeof exports !== 'undefined' ? exports : this;

  p = predicates = {
    tautology: function() {
      return true;
    },
    contradiction: function() {
      return false;
    },
    is_number: function(number) {
      return typeof number === 'number';
    },
    is_negative_number: function(number) {
      return p.is_number(number) && number < 0;
    },
    is_non_positive_number: function(number) {
      return p.is_number(number) && number <= 0;
    },
    is_non_negative_number: function(number) {
      return p.is_number(number) && number >= 0;
    },
    is_positive_number: function(number) {
      return p.is_number(number) && number > 0;
    },
    is_boolean: function(bool) {
      return typeof bool === 'boolean';
    },
    is_string: function(string) {
      return typeof string === 'string';
    },
    is_function: function(fn) {
      return typeof fn === 'function';
    },
    is_constructor: function(fn) {
      return p.is_function(fn) && p.is_object(fn.prototype);
    },
    is_null: function(value) {
      return value === null;
    },
    is_undefined: function(value) {
      return value === undefined;
    },
    is_defined: function(value) {
      return !p.is_undefined(value) && !p.is_null(value);
    },
    is_object: function(value) {
      return typeof value === 'object' && !p.is_null(value);
    },
    is_array: function(value) {
      return p.is_object(value) && p.is_non_negative_number(value.length);
    },
    has_arity: function(n) {
      return function(fn) {
        return fn.length === n;
      };
    },
    is_instance: function(type) {
      return function(instance) {
        return instance instanceof type;
      };
    },
    is_type: function(type) {
      return function(subtype) {
        return p.is_function(subtype) && subtype.prototype instanceof type;
      };
    },
    is_bounded: function(lower, upper) {
      return function(value) {
        return p.is_number(value) && (lower <= value && value <= upper);
      };
    },
    is_lt: function(n) {
      return function(value) {
        return p.is_number(value) && value < n;
      };
    },
    is_lte: function(n) {
      return function(value) {
        return p.is_number(value) && value <= n;
      };
    },
    is_eq: function(n) {
      return function(value) {
        return p.is_number(value) && value === n;
      };
    },
    is_gte: function(n) {
      return function(value) {
        return p.is_number(value) && value >= n;
      };
    },
    is_gt: function(n) {
      return function(value) {
        return p.is_number(value) && value > n;
      };
    },
    is_equal: function(target) {
      return function(value) {
        return value === target;
      };
    },
    there_exists: function(is_valid) {
      return function(elements) {
        var element, _i, _len;
        for (_i = 0, _len = elements.length; _i < _len; _i++) {
          element = elements[_i];
          if (is_valid.call(this, element) === true) {
            return true;
          }
        }
        return false;
      };
    },
    for_all: function(is_valid) {
      return function(elements) {
        var element, _i, _len;
        for (_i = 0, _len = elements.length; _i < _len; _i++) {
          element = elements[_i];
          if (is_valid.call(this, element) === false) {
            return false;
          }
        }
        return true;
      };
    },
    disjoin: function() {
      var f, fs, g, gs;
      fs = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
      switch (fs.length) {
        case 0:
          return p.tautology;
        case 1:
          f = fs[0];
          return function(value) {
            return f.call(this, value);
          };
        case 2:
          f = fs[0], g = fs[1];
          return function(value) {
            return f.call(this, value) || g.call(this, value);
          };
        default:
          f = fs[0], gs = 2 <= fs.length ? __slice.call(fs, 1) : [];
          g = p.disjoin.apply(null, gs);
          return function(value) {
            return f.call(this, value) || g.call(this, value);
          };
      }
    },
    conjoin: function() {
      var f, fs, g, gs;
      fs = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
      switch (fs.length) {
        case 0:
          return p.tautology;
        case 1:
          f = fs[0];
          return function(value) {
            return f.call(this, value);
          };
        case 2:
          f = fs[0], g = fs[1];
          return function(value) {
            return f.call(this, value) && g.call(this, value);
          };
        default:
          f = fs[0], gs = 2 <= fs.length ? __slice.call(fs, 1) : [];
          g = p.conjoin.apply(null, gs);
          return function(value) {
            return f.call(this, value) && g.call(this, value);
          };
      }
    }
  };

  global.vst || (global.vst = {});

  global.vst.predicates = predicates;

}).call(this);