text:
.dijitRtl .dijitTab {
	margin-right:0;
	margin-left:5px;		/* space between one tab and the next in top/bottom mode */
}

.dijitRtl .dijitTab .dijitTabInnerDiv {
	border-left:none;
	border-right:1px solid #fff;
}

.dijitRtl .dijitTab .dijitClosable {
	padding: 6px 10px 4px 20px;
}

.dijitRtl .dijitTab .closeImage {
	position:static;
	padding: 0px 12px 0px 0px;
}

.dj_gecko .dijitTab .closeImage {
	position:relative;
	float:none;
	padding:0;
}

.dijitRtl .dijitTab .dijitClosable .closeImage {
	right:auto;
	left:3px;
	background-position: left top;
}

.dj_ie .dijitRtl .dijitTab .dijitClosable .closeImage {
	width:12px !important;
}

.dijitRtl .dijitAlignLeft .dijitTab,
.dijitRtl .dijitAlignRight .dijitTab {
	margin-left:0px;
}

.dijitRtl .dijitAlignBottom .dijitTab .dijitClosable .closeImage {
	right:auto;
	left:3px;
}

.dijitRtl .dijitAlignRight .dijitTab .dijitTabInnerDiv {
	padding-left:10px;
	padding-right:20px;
}

.dijitRtl .dijitAlignLeft .dijitTab .dijitTabInnerDiv {
	padding-left:20px;
	padding-right:10px;
}

.dj_ie .dijitRtl .dijitAlignLeft .dijitTab .dijitTabInnerDiv {
	padding-left:19px;
}

.dj_gecko .dijitRtl .dijitAlignLeft .dijitTab .dijitTabInnerDiv {
	padding-left:11px;
}

.dijitRtl .dijitAlignRight .dijitTab .dijitClosable .closeImage {
	left:auto;
	right:3px;
}

.dj_ie7 .dijitRtl .dijitAlignLeft .dijitTab  .dijitTabContent{
	position:relative;
}

.dj_ie7 .dijitRtl .dijitAlignLeft .dijitTab .dijitClosable .closeImage{
	position:absolute;
	top:2px;
	left:3px;
}

.dj_ie6 .dijitRtl .dijitAlignLeft .dijitTab .dijitClosable .closeImage{
	float:left;
}

.dj_ie6 .dijitRtl .dijitAlignLeft .dijitTab .dijitClosable .tabLabel{
	float:right;
}

.dj_ie .dijitTab .dijitTabInnerDiv{
	width : 1%;
}

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Csound API: Instantiation</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

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

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

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

Csound API
    6.07

Main Page

Modules

Data Structures

Files

          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>

Functions

Instantiation

Functions

PUBLIC int 	csoundInitialize (int flags)

 	Initialise Csound library with specific flags.  More...

PUBLIC CSOUND * 	csoundCreate (void *hostData)

 	Creates an instance of Csound.  More...

PUBLIC void 	csoundDestroy (CSOUND *)

 	Destroys an instance of Csound.  More...

PUBLIC int 	csoundGetVersion (void)

 	Returns the version number times 1000 (5.00.0 = 5000).  More...

PUBLIC int 	csoundGetAPIVersion (void)

 	Returns the API version number times 100 (1.00 = 100).  More...

Detailed Description

Function Documentation

          PUBLIC CSOUND* csoundCreate
          (
          void *
          hostData	)

Creates an instance of Csound.

Returns an opaque pointer that must be passed to most Csound API functions. The hostData parameter can be NULL, or it can be a pointer to any sort of data; this pointer can be accessed from the Csound instance that is passed to callback routines.

          PUBLIC void csoundDestroy
          (
          CSOUND *
          	)

Destroys an instance of Csound.

          PUBLIC int csoundGetAPIVersion
          (
          void
          	)

Returns the API version number times 100 (1.00 = 100).

          PUBLIC int csoundGetVersion
          (
          void
          	)

Returns the version number times 1000 (5.00.0 = 5000).

          PUBLIC int csoundInitialize
          (
          int
          flags	)

Initialise Csound library with specific flags.

This function is called internally by csoundCreate(), so there is generally no need to use it explicitly unless you need to avoid default initilization that sets signal handlers and atexit() callbacks. Return value is zero on success, positive if initialisation was done already, and negative on error.

Generated by

     1.8.11


text:
module Oddkyn
{

export class Splash
{
    private sprite: Phaser.Sprite
    private tween: Phaser.Tween

    constructor(game: Phaser.Game, key: string)
    {
        this.sprite = game.add.sprite(game.world.centerX, game.world.centerY, key);
        this.sprite.alpha = 0;
        this.sprite.anchor.set(0.5, 0.5);
        this.tween = game.add.tween(this.sprite).to({alpha: 1}, 3 * Phaser.Timer.SECOND,
            "Linear", true, 0, 0);
        this.tween.onComplete.add(this.end, this);
    }

    private end()
    {
        this.sprite.game.time.events.add(Phaser.Timer.SECOND, this.kill, this);
    }

    private kill()
    {
        this.sprite.game.cache.removeImage(this.sprite.name);
        this.sprite.kill();
    }

}

}


text:
<?php

// guess current application
if (!isset($app))
{
  $traces = debug_backtrace();
  $caller = $traces[0];

  $dirPieces = explode(DIRECTORY_SEPARATOR, dirname($caller['file']));
  $app = array_pop($dirPieces);
}

$_test_dir = realpath(dirname(__FILE__).'/..');
$_root_dir = realpath(file_exists($_test_dir.'/../symfony') ? ($_test_dir.'/..') : ($_test_dir.'/../../..'));

if (false !== strpos(file_get_contents($_root_dir.'/symfony'), 'ProjectConfiguration'))
{
  // symfony 1.1 bootstrap
  require_once $_root_dir.'/config/ProjectConfiguration.class.php';
  $configuration = ProjectConfiguration::getApplicationConfiguration($app, 'test', isset($debug) ? $debug : true);
  sfContext::createInstance($configuration);
  sfToolkit::clearDirectory(sfConfig::get('sf_app_cache_dir'));

  require $configuration->getSymfonyLibDir().'/vendor/lime/lime.php';
}
else
{
  // symfony 1.0 bootstrap
  define('SF_ROOT_DIR', $_root_dir);
  define('SF_APP', $app);
  define('SF_ENVIRONMENT', 'test');
  define('SF_DEBUG', isset($debug) ? $debug : true);
  require_once SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php';
  sfToolkit::clearDirectory(sfConfig::get('sf_cache_dir'));

  require $sf_symfony_lib_dir.'/vendor/lime/lime.php';
}


text:
<?php

namespace hatemile\util\html;

/**
 * The HTMLDOMNode interface contains the methods for access the Node.
 */
interface HTMLDOMNode
{

    /**
     * Returns the text content of node.
     * @return string The text content of node.
     */
    public function getTextContent();

    /**
     * Insert a node before this node.
     * @param \hatemile\util\html\HTMLDOMNode $newNode The node that be
     * inserted.
     * @return \hatemile\util\html\HTMLDOMNode This node.
     */
    public function insertBefore(HTMLDOMNode $newNode);

    /**
     * Insert a node after this node.
     * @param \hatemile\util\html\HTMLDOMNode $newNode The node that be
     * inserted.
     * @return \hatemile\util\html\HTMLDOMNode This node.
     */
    public function insertAfter(HTMLDOMNode $newNode);

    /**
     * Remove this node of the parser.
     * @return \hatemile\util\html\HTMLDOMNode The removed node.
     */
    public function removeNode();

    /**
     * Replace this node for other node.
     * @param \hatemile\util\html\HTMLDOMNode $newNode The node that replace
     * this node.
     * @return \hatemile\util\html\HTMLDOMNode This node.
     */
    public function replaceNode(HTMLDOMNode $newNode);

    /**
     * Append a text content in node.
     * @param string $text The text content.
     * @return \hatemile\util\html\HTMLDOMNode This node.
     */
    public function appendText($text);

    /**
     * Prepend a text content in node.
     * @param string $text The text content.
     * @return \hatemile\util\html\HTMLDOMNode This node.
     */
    public function prependText($text);

    /**
     * Returns the parent element of this node.
     * @return \hatemile\util\html\HTMLDOMElement The parent element of this
     * node.
     */
    public function getParentElement();

    /**
     * Returns the native object of this node.
     * @return object The native object of this node.
     */
    public function getData();

    /**
     * Modify the native object of this node.
     * @param object $data The native object of this node.
     */
    public function setData($data);

    /**
     * Indicates whether some other object is "equal to" this one.
     * @param object $obj The reference object with which to compare.
     * @return bool True if this object is the same as the obj argument or false
     * otherwise.
     */
    public function equals($obj);
}


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.smsc.usuario.conexion;

import android.util.Base64;
import com.smsc.usuario.entidades.clsIncidente;
import com.smsc.usuario.entidades.clsUsuario;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;

public class http {

    private static String url="http://serviciostecnologicosintegrales.com/seguridad/servicio/servicio_usuario.jsp";
//    private static String url="http://192.168.1.5:8084/servicio/servicio_usuario.jsp";
    private static HttpClient client;
    private static HttpResponse responseGet;
    private static HttpEntity resEntityGet;

    public static String loginUsuario(String dni,String clave)
    {
    client = new DefaultHttpClient();
    HttpPost httppost = new HttpPost(url);

    try {
        List<NameValuePair> Value = new ArrayList<NameValuePair>(3);
        Value.add(new BasicNameValuePair("IdServicio","1"));
        Value.add(new BasicNameValuePair("dni",dni));
        Value.add(new BasicNameValuePair("clave",clave));
        httppost.setEntity(new UrlEncodedFormEntity(Value));
        responseGet = client.execute(httppost);
        resEntityGet = responseGet.getEntity();
        if (resEntityGet != null) {
                return  EntityUtils.toString(resEntityGet).trim();
        }
        } catch (ClientProtocolException e) {
            return "-1";
        } catch (IOException e) {
            return "-1";
        }
     return "-1";
    }

    public static String insertarUsuario(clsUsuario entidad)
    {
    client = new DefaultHttpClient();
    HttpPost httppost = new HttpPost(url);

    try {
        List<NameValuePair> Value = new ArrayList<NameValuePair>(9);
        Value.add(new BasicNameValuePair("IdServicio","2"));
        Value.add(new BasicNameValuePair("nombre",entidad.getStr_nombre()));
        Value.add(new BasicNameValuePair("apellido",entidad.getStr_apellido()));
        Value.add(new BasicNameValuePair("email",entidad.getStr_dni()));
        Value.add(new BasicNameValuePair("celular",entidad.getStr_celular()));
        Value.add(new BasicNameValuePair("dni",entidad.getStr_dni()));
        Value.add(new BasicNameValuePair("sexo",""+entidad.isBool_sexo()));
        Value.add(new BasicNameValuePair("nacimiento",""+entidad.getDat_fecha_nacimiento().getTime()));
        Value.add(new BasicNameValuePair("clave",entidad.getStr_clave()));
        httppost.setEntity(new UrlEncodedFormEntity(Value));
        responseGet = client.execute(httppost);
        resEntityGet = responseGet.getEntity();
        if (resEntityGet != null) {
                return  EntityUtils.toString(resEntityGet).trim();
        }
        } catch (ClientProtocolException e) {
            return "-1";
        } catch (IOException e) {
            return "-1";
        }
     return "-1";
    }
       public static String insertarIncidente(clsIncidente entidad)
    {
    client = new DefaultHttpClient();
    HttpPost httppost = new HttpPost(url);

    try {
        List<NameValuePair> Value = new ArrayList<NameValuePair>(6);
        Value.add(new BasicNameValuePair("IdServicio","3"));
        Value.add(new BasicNameValuePair("idUsuario",""+entidad.getInt_id_usuario()));
        Value.add(new BasicNameValuePair("idTipo",""+entidad.getInt_id_tipo_incidente()));
        Value.add(new BasicNameValuePair("latitud",""+entidad.getDou_latitud()));
        Value.add(new BasicNameValuePair("longitud",""+entidad.getDou_longitud()));
        Value.add(new BasicNameValuePair("detalle",entidad.getStr_detalle()));
        if(entidad.getByte_foto()!=null)
        Value.add(new BasicNameValuePair("foto",Base64.encodeToString(entidad.getByte_foto(),Base64.NO_WRAP|Base64.URL_SAFE)));
        httppost.setEntity(new UrlEncodedFormEntity(Value));
        responseGet = client.execute(httppost);
        resEntityGet = responseGet.getEntity();
        if (resEntityGet != null) {
                return  EntityUtils.toString(resEntityGet).trim();
        }
        } catch (ClientProtocolException e) {
            return "-1";
        } catch (IOException e) {
            return "-1";
        }
     return "-1";
}

    public static String listarXEstadoIncidente(int  IdUsuario)
    {
    client = new DefaultHttpClient();
    HttpPost httppost = new HttpPost(url);

    try {
        List<NameValuePair> Value = new ArrayList<NameValuePair>(2);
        Value.add(new BasicNameValuePair("IdServicio","4"));
        Value.add(new BasicNameValuePair("IdUsuario",""+IdUsuario));
        httppost.setEntity(new UrlEncodedFormEntity(Value));
        responseGet = client.execute(httppost);
        resEntityGet = responseGet.getEntity();
        if (resEntityGet != null) {
                return  EntityUtils.toString(resEntityGet).trim();
        }
        } catch (ClientProtocolException e) {
            return "-1";
        } catch (IOException e) {
            return "-1";
        }
     return "-1";
}

}


text:
package io.github.jeddict.db.accessor;

import io.github.jeddict.jcode.util.AttributeType;
import org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.IdAccessor;
import io.github.jeddict.jpa.spec.Id;
import io.github.jeddict.jpa.spec.Inheritance;
import io.github.jeddict.jpa.spec.extend.Attribute;
import java.io.Serializable;

/**
 *
 * @author Gaurav Gupta
 */
public class IdSpecAccessor extends IdAccessor {

    private final Id id;
    private boolean inherit;

    private IdSpecAccessor(Id id) {
        this.id = id;
    }

    public static IdSpecAccessor getInstance(Id id, boolean inherit) {
        IdSpecAccessor accessor = new IdSpecAccessor(id);
        accessor.inherit = inherit;
        accessor.setName(id.getName());

        String attributeType = id.getAttributeType();
        if (!AttributeType.isJavaType(attributeType)) {
            attributeType = Serializable.class.getName();
        }
        accessor.setAttributeType(attributeType);

        if (id.getColumn() != null) {
            accessor.setColumn(id.getColumn().getAccessor());
        }
        if (id.getGeneratedValue() != null && id.getGeneratedValue().getStrategy()!=null) {
            accessor.setGeneratedValue(id.getGeneratedValue().getAccessor());
        }
        if (id.getSequenceGenerator()!= null) {
            accessor.setSequenceGenerator(id.getSequenceGenerator().getAccessor());
        }
        if (id.getTableGenerator() != null) {
            accessor.setTableGenerator(id.getTableGenerator().getAccessor());
        }

        return accessor;
    }

    @Override
    public void process() {
        super.process();
        getMapping().setProperty(Attribute.class, id);
        getMapping().setProperty(Inheritance.class, inherit);//Remove inherit functionality , once eclipse support dynamic mapped super class
    }

}


text:
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: grafeas/v1/intoto_statement.proto

namespace Grafeas\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Spec defined at
 * https://github.com/in-toto/attestation/tree/main/spec#statement The
 * serialized InTotoStatement will be stored as Envelope.payload.
 * Envelope.payloadType is always "application/vnd.in-toto+json".
 *
 * Generated from protobuf message grafeas.v1.InTotoStatement
 */
class InTotoStatement extends \Google\Protobuf\Internal\Message
{
    /**
     * Always `https://in-toto.io/Statement/v0.1`.
     *
     * Generated from protobuf field string type = 1 [json_name = "_type"];
     */
    private $type = '';
    /**
     * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;
     */
    private $subject;
    /**
     * `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
     *
     * Generated from protobuf field string predicate_type = 3;
     */
    private $predicate_type = '';
    protected $predicate;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $type
     *           Always `https://in-toto.io/Statement/v0.1`.
     *     @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject
     *     @type string $predicate_type
     *           `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
     *     @type \Grafeas\V1\InTotoProvenance $provenance
     *     @type \Grafeas\V1\SlsaProvenance $slsa_provenance
     *     @type \Grafeas\V1\SlsaProvenanceZeroTwo $slsa_provenance_zero_two
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce();
        parent::__construct($data);
    }

    /**
     * Always `https://in-toto.io/Statement/v0.1`.
     *
     * Generated from protobuf field string type = 1 [json_name = "_type"];
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Always `https://in-toto.io/Statement/v0.1`.
     *
     * Generated from protobuf field string type = 1 [json_name = "_type"];
     * @param string $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkString($var, True);
        $this->type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSubject()
    {
        return $this->subject;
    }

    /**
     * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2;
     * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSubject($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class);
        $this->subject = $arr;

        return $this;
    }

    /**
     * `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
     *
     * Generated from protobuf field string predicate_type = 3;
     * @return string
     */
    public function getPredicateType()
    {
        return $this->predicate_type;
    }

    /**
     * `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
     *
     * Generated from protobuf field string predicate_type = 3;
     * @param string $var
     * @return $this
     */
    public function setPredicateType($var)
    {
        GPBUtil::checkString($var, True);
        $this->predicate_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4;
     * @return \Grafeas\V1\InTotoProvenance|null
     */
    public function getProvenance()
    {
        return $this->readOneof(4);
    }

    public function hasProvenance()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4;
     * @param \Grafeas\V1\InTotoProvenance $var
     * @return $this
     */
    public function setProvenance($var)
    {
        GPBUtil::checkMessage($var, \Grafeas\V1\InTotoProvenance::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5;
     * @return \Grafeas\V1\SlsaProvenance|null
     */
    public function getSlsaProvenance()
    {
        return $this->readOneof(5);
    }

    public function hasSlsaProvenance()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5;
     * @param \Grafeas\V1\SlsaProvenance $var
     * @return $this
     */
    public function setSlsaProvenance($var)
    {
        GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;
     * @return \Grafeas\V1\SlsaProvenanceZeroTwo|null
     */
    public function getSlsaProvenanceZeroTwo()
    {
        return $this->readOneof(6);
    }

    public function hasSlsaProvenanceZeroTwo()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;
     * @param \Grafeas\V1\SlsaProvenanceZeroTwo $var
     * @return $this
     */
    public function setSlsaProvenanceZeroTwo($var)
    {
        GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getPredicate()
    {
        return $this->whichOneof("predicate");
    }

}


text:
package ixa.kaflib;

import ixa.kaflib.KAFDocument.AnnotationType;
import ixa.kaflib.KAFDocument.Utils;

import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;

/** Class for representing terms. Terms refer to previous word forms (and groups multi-words) and attach lemma, part of speech, synset and name entity information. */
public class Term extends IdentifiableAnnotation implements SentenceLevelAnnotation {

    /** Type of the term (optional). Currently, 2 values are possible: open and close. */
    private String type;

    /** Lemma of the term (optional) */
    private String lemma;

    /** Part of speech (optional). Possible values are:
     * - common noun (N)
     * - proper noun (R)
     * - adjective (G)
     * - verb (V)
     * - preposition (P)
     * - adverb (A)
     * - conjunction (C)
     * - determiner (D)
     * - other (O)
     **/
    private String pos;

    /** Morphosyntactic feature encoded as a single attribute (optional) */
    private String morphofeat;

    /** Declension case of the term (optional) */
    private String termcase;

    /** Sentiment features (optional) */
    private Sentiment sentiment;

    /** If it's a compound term, it's components (optional) */
    private List<Term> components;

    /** Head component (optional) */
    private Term head;

    /** Target elements are used to refer to the target word. If the term is a multiword, multiple target elements are used. (required)*/
    private Span<WF> span;

    /** ExternalReferences are used to associate terms to external lexical or semantic resources, such as elements of a Knowledge base: semantic lexicon  (like WordNet) or an ontology (optional) */
    private List<ExternalRef> externalReferences;

    private boolean isComponent;
    private Term compound; // Parent compound term of this component

    /** The term layer represents sentiment information which is context-independent and that can be found in a sentiment lexicon.
     * It is related to concepts expressed by words/ terms (e.g. beautiful) or multi-word expressions (e. g. out of order).
     * We provide possibilities to store sentiment information at word level and at sense/synset level. In the latter case, the sentiment information
     * is included in the "external_reference" section and a WSD process may identify the correct sense with its sentiment information. The extension contains the following information categories.
     */
    public static class Sentiment extends Annotation {

	/** Identifier and reference to an external sentiment resource (optional) */
	private String resource;

	/** Refers to the property of a word to express positive, negative or no sentiment (optional). These values are possible:
	 * - Positive
	 * - Negative
	 * - Neutral
	 * - Or numerical value on a numerical scale
	 */
	private String polarity;

	/** Refers to the strength of the polarity (optional). These values are possible:
	 * - Weak
	 * - Average
	 * - Strong
	 * - Or Numerical value
	 */
	private String strength;

	/** Refers to the property of a words to express an opionion (or not) (optional).
	 * - Subjective/Objective
	 * - Factual/opinionated
	 */
	private String subjectivity;

	/** Refers to a sentiment-related semantic type (optional):
	 * - Aesthetics_evaluation
	 * - Moral_judgment
	 * - Emotion
	 * - etc
	 */
	private String sentimentSemanticType;

	/** Refers to words which modify the polarity of another word (optional):
	 * - Intensifier/weakener polarity shifter
	 */
	private String sentimentModifier;

	/** Refers to words which themselves do not carry polarity, but are kind of vehicles of it (optional):
	 * - Find, think, in my opinion, according to...
	 */
	private String sentimentMarker;

	/** Refers to a domain; mainly used in feature-based sentiment analysis (optional):
	 * - Values are related to specific domain. For the tourist domain, for example, staff, cleanliness, beds, bathroom, transportation, location, etc...
	 */
	private String sentimentProductFeature;

	Sentiment() {
	}

	Sentiment(Sentiment sentiment) {
	    this.resource = sentiment.resource;
	    this.polarity = sentiment.polarity;
	    this.strength = sentiment.strength;
	    this.subjectivity = sentiment.subjectivity;
	    this.sentimentSemanticType = sentiment.sentimentSemanticType;
	    this.sentimentModifier = sentiment.sentimentModifier;
	    this.sentimentMarker = sentiment.sentimentMarker;
	    this.sentimentProductFeature = sentiment.sentimentProductFeature;
	}

	public boolean hasResource() {
	    return resource != null;
	}

	public String getResource() {
	    return resource;
	}

	public void setResource(String val) {
	    resource = val;
	}

	public boolean hasPolarity() {
	    return polarity != null;
	}

	public String getPolarity() {
	    return polarity;
	}

	public void setPolarity(String val) {
	    polarity = val;
	}

	public boolean hasStrength() {
	    return strength != null;
	}

	public String getStrength() {
	    return strength;
	}

	public void setStrength(String val) {
	    strength = val;
	}

	public boolean hasSubjectivity() {
	    return subjectivity != null;
	}

	public String getSubjectivity() {
	    return subjectivity;
	}

	public void setSubjectivity(String val) {
	    subjectivity = val;
	}

	public boolean hasSentimentSemanticType() {
	    return sentimentSemanticType != null;
	}

	public String getSentimentSemanticType() {
	    return sentimentSemanticType;
	}

	public void setSentimentSemanticType(String val) {
	    sentimentSemanticType = val;
	}

	public boolean hasSentimentModifier() {
	    return sentimentModifier != null;
	}

	public String getSentimentModifier() {
	    return sentimentModifier;
	}

	public void setSentimentModifier(String val) {
	    sentimentModifier = val;
	}

	public boolean hasSentimentMarker() {
	    return sentimentMarker != null;
	}

	public String getSentimentMarker() {
	    return sentimentMarker;
	}

	public void setSentimentMarker(String val) {
	    sentimentMarker = val;
	}

	public boolean hasSentimentProductFeature() {
	    return sentimentProductFeature != null;
	}

	public String getSentimentProductFeature() {
	    return sentimentProductFeature;
	}

	public void setSentimentProductFeature(String val) {
	    sentimentProductFeature = val;
	}

	Map<AnnotationType, List<Annotation>> getReferencedAnnotations() {
	    return new HashMap<AnnotationType, List<Annotation>>();
	}

	@Override
	public boolean equals(Object o) {
	    if (this == o) return true;
	    if (!(o instanceof Sentiment)) return false;
	    Sentiment ann = (Sentiment) o;
	    return Utils.areEquals(this.resource, ann.resource) &&
		    Utils.areEquals(this.polarity, ann.polarity) &&
		    Utils.areEquals(this.strength, ann.strength) &&
		    Utils.areEquals(this.subjectivity, ann.subjectivity) &&
		    Utils.areEquals(this.sentimentSemanticType, ann.sentimentSemanticType) &&
		    Utils.areEquals(this.sentimentModifier, ann.sentimentModifier) &&
		    Utils.areEquals(this.sentimentMarker, ann.sentimentMarker) &&
		    Utils.areEquals(this.sentimentProductFeature, ann.sentimentProductFeature);
	}
    }

    Term(String id, Span<WF> span, boolean isComponent) {
	/*
	if (span.size() < 1) {
	    throw new IllegalStateException("A Term must have at least one WF");
	}
	*/
	super(id);
	this.components = new ArrayList();
	this.span = span;
	this.externalReferences = new ArrayList<ExternalRef>();
	this.isComponent = isComponent;
    }

    /* Copy constructor */
    Term(Term term, HashMap<String, WF> wfs) {
	// Copy simple fields
	super(term.getId());
	this.type = term.type;
	this.lemma = term.lemma;
	this.pos = term.pos;
	this.morphofeat = term.morphofeat;
	this.termcase = term.termcase;
	// Copy sentiment
	if (term.hasSentiment()) {
	    this.sentiment = new Sentiment(term.sentiment);
	}
	// Copy components and head
	HashMap<String, Term> newComponents =
	    new HashMap<String, Term>();
	this.components = new ArrayList<Term>();
	for (Term component : term.components) {
	    Term copyComponent = new Term(component, wfs);
	    this.components.add(copyComponent);
	    newComponents.put(component.getId(), copyComponent);
	}
	if (term.hasHead()) {
	    this.head = newComponents.get(term.head.getId());
	}
	// Copy span
	List<WF> targets = term.span.getTargets();
	List<WF> copiedTargets = new ArrayList<WF>();
	for (WF wf : targets) {
	    WF copiedWf = wfs.get(wf.getId());
	    if (copiedWf == null) {
		throw new IllegalStateException("WF not found when copying Term " + term.getId());
	    }
	    copiedTargets.add(copiedWf);
	}
	if (term.span.hasHead()) {
	    WF copiedHead = wfs.get(term.span.getHead().getId());
	    this.span = new Span<WF>(copiedTargets, copiedHead);
	}
	else {
	    this.span = new Span<WF>(copiedTargets);
	}
	// Copy external references
	this.externalReferences = new ArrayList<ExternalRef>();
	for (ExternalRef externalRef : term.getExternalRefs()) {
	    this.externalReferences.add(new ExternalRef(externalRef));
	}
    }

    public boolean hasType() {
	return type != null;
    }

    public String getType() {
	return type;
    }

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

    public boolean hasLemma() {
	return lemma != null;
    }

    public String getLemma() {
	return lemma;
    }

    public void setLemma(String lemma) {
	this.lemma = lemma;
    }

    public boolean hasPos() {
	return pos != null;
    }

    public String getPos() {
	return pos;
    }

    public void setPos(String pos) {
	this.pos = pos;
    }

    public boolean hasMorphofeat() {
	return morphofeat != null;
    }

    public String getMorphofeat() {
	return morphofeat;
    }

    public void setMorphofeat(String morphofeat) {
	this.morphofeat = morphofeat;
    }

    public boolean hasCase() {
	return termcase != null;
    }

    public String getCase() {
	return termcase;
    }

    public void setCase(String termcase) {
	this.termcase = termcase;
    }

    public String getForm() {
	String str = "";
	for (WF wf : span.getTargets()) {
	    if (!str.isEmpty()) {
		str += " ";
	    }
	    str += wf.getForm();
	}
	return str;
    }

   public String getStr() {
       String strValue = this.getForm();
       boolean valid = false;
       while (!valid) {
	   if (strValue.startsWith("-") || strValue.endsWith("-")) {
	       strValue = strValue.replace("-", " - ");
	   }
	   else if (strValue.contains("--")) {
	       strValue = strValue.replace("--", "-");
	   }
	   else {
	       valid = true;
	   }
       }
       return strValue;
    }

    public boolean hasHead() {
	return (this.head != null);
    }

    public Term getHead() {
        return this.head;
    }

    /** Creates and adds a Sentiment object.
     * @return a new sentiment.
     */
    public Sentiment createSentiment() {
	Sentiment newSentiment = new Sentiment();
	this.setSentiment(newSentiment);
	return newSentiment;
    }

    public boolean hasSentiment() {
	return (this.sentiment != null);
    }

    public Sentiment getSentiment() {
	return sentiment;
    }

    public void setSentiment(Sentiment sentiment) {
        this.sentiment = sentiment;
    }

    public List<Term> getComponents() {
	return this.components;
    }

    public void addComponent(Term component) {
	components.add(component);
    }

    public void addComponent(Term component, boolean isHead) {
	components.add(component);
	if (isHead) {
	    this.head = component;
	}
    }

    public List<WF> getWFs() {
	return this.span.getTargets();
    }

    public WF getHeadWF() {
	return this.span.getHead();
    }

    public void addWF(WF wf) {
	this.span.addTarget(wf);
    }

    public void addWF(WF wf, boolean isHead) {
	this.span.addTarget(wf, isHead);
    }

    public Span<WF> getSpan() {
	return this.span;
    }

    public void setSpan(Span<WF> span) {
	this.span = span;
    }

    public Integer getSent() {
	Span<WF> wfs = this.getSpan();
	List<WF> wfl = wfs.getTargets();
	WF wf = wfl.get(0);
	//
	if (wf == null) System.out.println(wfl.size());
	Integer sent = wf.getSent();
	return this.getSpan().getTargets().get(0).getSent();
	/*
	if (!this.isComponent()) {
	    return this.getSpan().getTargets().get(0).getSent();
	} else {
	    return this.getCompound().getSent();
	}
	*/
    }

    public Integer getPara() {
	return this.getSpan().getTargets().get(0).getPara();
    }

    public List<ExternalRef> getExternalRefs() {
	return externalReferences;
    }

    public void addExternalRef(ExternalRef externalRef) {
	externalReferences.add(externalRef);
    }

    public void addExternalRefs(List<ExternalRef> externalRefs) {
	externalReferences.addAll(externalRefs);
    }

    boolean isComponent() {
	return this.isComponent;
    }

    public void setCompound(Term compound) {
	this.compound = compound;
    }

    public Term getCompound() {
	return this.compound;
    }

    Map<AnnotationType, List<Annotation>> getReferencedAnnotations() {
	Map<AnnotationType, List<Annotation>> referenced = new HashMap<AnnotationType, List<Annotation>>();
	referenced.put(AnnotationType.WF, (List<Annotation>)(List<?>) this.getSpan().getTargets());
	return referenced;
    }

    @Override
    public boolean equals(Object o) {
	if (this == o) return true;
	if (!(o instanceof Term)) return false;
	Term ann = (Term) o;
	return Utils.areEquals(this.type, ann.type) &&
		Utils.areEquals(this.lemma, ann.lemma) &&
		Utils.areEquals(this.pos, ann.pos) &&
		Utils.areEquals(this.morphofeat, ann.morphofeat) &&
		Utils.areEquals(this.termcase, ann.termcase) &&
		Utils.areEquals(this.sentiment, ann.sentiment) &&
		Utils.areEquals(this.components, ann.components) &&
		Utils.areEquals(this.head, ann.head) &&
		Utils.areEquals(this.span, ann.span) &&
		Utils.areEquals(this.externalReferences, ann.externalReferences) &&
		Utils.areEquals(this.isComponent, ann.isComponent) &&
		Utils.areEquals(this.compound, ann.compound);
    }
}


text:
<wg-panel header="{{mainCtrl.widget.label}}">

		Facets

		<wg-datatable items="datatableCtrl.fixedData">

        	<wg-facet name="header">
            	List of Cars
			</wg-facet>

			<wg-column value="brand" headerText="Brand"></wg-column>
			<wg-column value="year" headerText="Year"></wg-column>
			<wg-column value="color" headerText="Color"></wg-column>

			<wg-facet name="footer">
				In total there are  cars.
			</wg-facet>

		</wg-datatable>

	<wg-fieldset id="Source" legend="Source" style="margin-bottom:20px">
		<wg-tabview id="sourceTabs">
			<wg-tab header="HTML" id="d_html">
				<demo-source language="html">
<wg-datatable items="datatableCtrl.fixedData">

	<wg-facet name="header">
		List of Cars
	</wg-facet>

	<wg-column value="brand" headerText="Brand"></wg-column>
	<wg-column value="year" headerText="Year"></wg-column>
	<wg-column value="color" headerText="Color"></wg-column>

	<wg-facet name="footer">
		In total there are  cars.
	</wg-facet>

</wg-datatable>
				</demo-source>
			</wg-tab>
			<wg-tab header="Controller" id="d_script">
				<demo-source language="javascript">
function DatatableController($wgGrowl) {

	var vm = this;

	vm.fixedData = [
		{'brand':'Volkswagen','year': 2012, 'color':'White', 'vin':'dsad231ff'},
		{'brand':'Audi','year': 2011, 'color':'Black', 'vin':'gwregre345'},
		{'brand':'Renault','year': 2005, 'color':'Gray', 'vin':'h354htr'},
		{'brand':'Bmw','year': 2003, 'color':'Blue', 'vin':'j6w54qgh'},
		{'brand':'Mercedes','year': 1995, 'color':'White', 'vin':'hrtwy34'},
		{'brand':'Opel','year': 2005, 'color':'Black', 'vin':'jejtyj'},
		{'brand':'Honda','year': 2012, 'color':'Yellow', 'vin':'g43gr'},
		{'brand':'Chevrolet','year': 2013, 'color':'White', 'vin':'greg34'},
		{'brand':'Opel','year': 2000, 'color':'Black', 'vin':'h54hw5'},
		{'brand':'Mazda','year': 2013, 'color':'Red', 'vin':'245t2s'}
	];
};
				</demo-source>
			</wg-tab>
		</wg-tabview>
	</wg-fieldset>
</wg-panel>


text:
var util = require('util');
var fs = require('fs');
var path = require('path');
var pwd = process.cwd();
var isUtf8 = require('./is-utf8');
var iconv = require('iconv-lite');
var http = require('http');
var joinbuffers = require('joinbuffers');

var reg = '--#(chunk)(\\s([a-z]+)=[\'"](.+?)[\'"])*--';

// p:绝对路径
// return:结果
function parseOne(chunk,callback){
	var chunk = parseChunk2String(chunk);
	var firstInclude = hasIncludes(chunk);
	console.log(firstInclude);
	if(firstInclude){
		parseFirstIncludes(chunk,function(newchunk){
			parseOne(newchunk,callback);
		});
	} else {
		callback(chunk);
	}
}

function hasIncludes(chunk){
	var content = parseChunk2String(chunk);
	var r = content.match(new RegExp(reg,'i'));
	if(r){
		var f = RegExp.$4;
		return f;
	} else {
		return false;
	}
}

function parseFirstIncludes(content,callback){
	var content = parseChunk2String(content);
	var includefile = hasIncludes(content);

	http.get(('http://'+includefile).replace(/^http:\/\/http:\/\//i,'http://'), function(res) {
		var buffs = [];
		res.on('data',function(chunk){
			buffs.push(chunk);
		}).on('end',function(){
            var buff = joinbuffers(buffs);
			var newchunk = content.replace(new RegExp(reg,'i'),parseChunk2String(buff));
			callback(newchunk);
		});
		console.log("Got response: " + res.statusCode + ' '+ includefile);
	}).on('error', function(e) {
		console.log("Got error: " + e.message);
		callback('socket error');
	});
}

function parseChunk2String(content){
	if(!(content instanceof Buffer)){
		content = new Buffer(content);
	}
	encoding = isUtf8(content)?'utf8':'gbk';
	if(encoding == 'gbk'){
		content = iconv.encode(iconv.decode(content, 'gbk'),'utf8');
	}
	content = content.toString('utf8');
	return content;
}

exports.parse = parseOne;


text:
'use strict'
var test = require('test-runner')
var cliArgs = require('../')
var a = require('core-assert')

test('err-invalid-definition: throws when no definition.name specified', function () {
  var optionDefinitions = [
    { something: 'one' },
    { something: 'two' }
  ]
  var argv = [ '--one', '--two' ]
  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'NAME_MISSING')
  }
})

test('err-invalid-definition: throws if dev set a numeric alias', function () {
  var optionDefinitions = [
    { name: 'colours', alias: '1' }
  ]
  var argv = [ '--colours', 'red' ]

  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'INVALID_ALIAS')
  }
})

test('err-invalid-definition: throws if dev set an alias of "-"', function () {
  var optionDefinitions = [
    { name: 'colours', alias: '-' }
  ]
  var argv = [ '--colours', 'red' ]

  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'INVALID_ALIAS')
  }
})

test('err-invalid-definition: multi-character alias', function () {
  var optionDefinitions = [
    { name: 'one', alias: 'aa' }
  ]
  var argv = [ '--one', 'red' ]

  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'INVALID_ALIAS')
  }
})

test('err-invalid-definition: invalid type values', function () {
  var argv = [ '--one', 'something' ]
  try {
    cliArgs([ { name: 'one', type: 'string' } ], argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'INVALID_TYPE')
  }

  try {
    cliArgs([ { name: 'one', type: 234 } ], argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'INVALID_TYPE')
  }

  try {
    cliArgs([ { name: 'one', type: {} } ], argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'INVALID_TYPE')
  }

  a.doesNotThrow(function () {
    cliArgs([ { name: 'one', type: function () {} } ], argv)
  }, /invalid/i)
})

test('err-invalid-definition: value without option definition', function () {
  var optionDefinitions = [
    { name: 'one', type: Number }
  ]

  a.deepStrictEqual(
    cliArgs(optionDefinitions, [ '--one', '1' ]),
    { one: 1 }
  )

  try {
    cliArgs(optionDefinitions, [ '--one', '--two' ])
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'UNKNOWN_OPTION')
  }

  try {
    cliArgs(optionDefinitions, [ '--one', '2', '--two', 'two' ])
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'UNKNOWN_OPTION')
  }

  try {
    cliArgs(optionDefinitions, [ '-a', '2' ])
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'UNKNOWN_OPTION')
  }

  try {
    cliArgs(optionDefinitions, [ '-sdf' ])
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'UNKNOWN_OPTION', 'getOpts')
  }
})

test('err-invalid-definition: duplicate name', function () {
  var optionDefinitions = [
    { name: 'colours' },
    { name: 'colours' }
  ]
  var argv = [ '--colours', 'red' ]

  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'DUPLICATE_NAME')
  }
})

test('err-invalid-definition: duplicate alias', function () {
  var optionDefinitions = [
    { name: 'one', alias: 'a' },
    { name: 'two', alias: 'a' }
  ]
  var argv = [ '--one', 'red' ]

  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'DUPLICATE_ALIAS')
  }
})

test('err-invalid-definition: multiple defaultOption', function () {
  var optionDefinitions = [
    { name: 'one', defaultOption: true },
    { name: 'two', defaultOption: true }
  ]
  var argv = [ '--one', 'red' ]

  try {
    cliArgs(optionDefinitions, argv)
    a.fail()
  } catch (err) {
    a.strictEqual(err.name, 'DUPLICATE_DEFAULT_OPTION')
  }
})


text:
import mimetypes
import ray.dashboard.modules.log.log_consts as log_consts

def register_mimetypes():
    for _type, extensions in log_consts.MIME_TYPES.items():
        for ext in extensions:
            mimetypes.add_type(_type, ext)


text:
    <title>Backbone.js Tests</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="../../../notes/test/js/lib/mocha.css" />


text:
layout: post
title: "Book Review: Never Eat Alone"
---

Recently I read Never Eat Alone by Steve Ferazzi.
The book starts with good story telling and actual great advice to build and extend your own personal network.

This is to help brand yourself, but mostly to connect and help people.
With the main idea being that the more people you know, the more people you can connect.
Thus the more people can connect you with other people, too.
Which itself can lead to new projects, new job positions, possibly new friendships, etc.

Unfortunately the writing style is… how should I phrase it?
Very _american_.
Everything is great, the author is great, and following the advice given you will be great, too.

By saying that I don't imply that the content is bad.
To the contrary actually.
I think there's some really good advice in the book.

It's just that it gets boring for me after continously reading stories like:
- _"When I was CEO at company X, I used this technique to connect to some high profile politician."_
- _"When I was COO at company Y, I made sure that I position myself at the right spots at all the conferences I travelled to."_
- _"I have my assistant prepare background information papers about all important people speaking at the conference, so that I have an angle for a short introduction."_
- _"I throw dinner parties at least once every month, and this is what you can do to have an interesting anchor tennant to draw more interesting people to your parties, too."_

It might be a cultural thing between the United States and Europe, but all the self-praise in the book just shadows the good parts for me.

Many chapters are also written from a relatively high position of status.
Not everyone has a C-level title, not everyone can spend the majority of their waking ours travelling and meeting people, not everyone has an assitant they can task with gathering background information about people they're going to meet.

But I'm not bashing the content per se.
I'd still recomment the book to anyone who wants to learn more about building a network around themselves.
I got good new ideas out of it, that's for sure.

And as usual it's not intended to carbon copy everything you read in the book, but to get inspiration to approach the next important meeting or conference in a different way for example.


text:
import React from 'react';
import DisposableStack from './DisposableStack';

/**
 * Base view to be implemented by all React Views utilizing this Flux framework.
 */
class View extends React.Component {
	constructor(props) {
		super(props);

		this._disposableStack = new DisposableStack();
	}

	get disposableStack() {
		return this._disposableStack;
	}

	/**
	 * Base method intended to be overridden for initialization functionality.
	 * This is a convenience on top of componentWillMount.
	 *
	 * @param  {DisposableStack} disposableStack Stack to register listeners
	 *                                           with so they are automatically cleared when
	 *                                           this view is unmounted.
	 * @return {Void}                 undefined
	 */
	initialize(disposableStack) {

	}

	componentWillMount() {
		this.initialize(this._disposableStack);
	}

	componentWillUnmount() {
		this._disposableStack.dispose();
		this._disposableStack = new DisposableStack();
	}
}

export default View;


text:
package org.apache.toree.dependencies

import java.io.{File, PrintStream}
import java.net.{URI, URL}
import java.nio.file.Files

abstract class DependencyDownloader {
  /**
   * Retrieves the dependency and all of its dependencies as jars.
   *
   * @param groupId The group id associated with the main dependency
   * @param artifactId The id of the dependency artifact
   * @param version The version of the main dependency
   * @param transitive If true, downloads all dependencies of the specified
   *                   dependency
   * @param excludeBaseDependencies If true, will exclude any dependencies
   *                                included in the build of the kernel
   * @param ignoreResolutionErrors If true, ignores any errors on resolving
   *                               dependencies and attempts to download all
   *                               successfully-resolved dependencies
   * @param extraRepositories Additional repositories to use only for this
   *                          dependency
   * @param verbose If true, prints out additional information
   * @param trace If true, prints trace of download process
   *
   * @return The sequence of URIs represented downloaded (even from cache)
   *         dependencies
   */
  def retrieve(
    groupId: String,
    artifactId: String,
    version: String,
    transitive: Boolean = true,
    excludeBaseDependencies: Boolean = true,
    ignoreResolutionErrors: Boolean = true,
    extraRepositories: Seq[URL] = Nil,
    verbose: Boolean = false,
    trace: Boolean = false
  ): Seq[URI]

  /**
   * Sets the printstream to log to.
   *
   * @param printStream The new print stream to use for output logging
   */
  def setPrintStream(printStream: PrintStream): Unit

  /**
   * Adds the specified resolver url as an additional search option.
   *
   * @param url The url of the repository
   */
  def addMavenRepository(url: URL): Unit

  /**
   * Remove the specified resolver url from the search options.
   *
   * @param url The url of the repository
   */
  def removeMavenRepository(url: URL): Unit

  /**
   * Returns a list of all repositories used by the downloader.
   *
   * @return The list of repositories as URIs
   */
  def getRepositories: Seq[URI]

  /**
   * Sets the directory where all downloaded jars will be stored.
   *
   * @param directory The directory to use
   *
   * @return True if successfully set directory, otherwise false
   */
  def setDownloadDirectory(directory: File): Boolean

  /**
   * Returns the current directory where dependencies will be downloaded.
   *
   * @return The directory as a string
   */
  def getDownloadDirectory: String
}

object DependencyDownloader {
  /** Default Maven repository to use with downloaders. */
  val DefaultMavenRepository = new URL("https://repo1.maven.org/maven2")

  /** Default download directory for dependencies. */
  val DefaultDownloadDirectory =
    Files.createTempDirectory("toree-dependency-downloads-").toFile
}


text:
require 'rubygems'
require 'rake'
require 'rake/testtask'

task :default => [:test]

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/*_test.rb']
  t.verbose = true
end


text:
<?xml version="1.0" encoding="UTF-8"?><sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="labels">
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
    <sv:value>hippostd:folder</sv:value>
  </sv:property>
  <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
    <sv:value>mix:referenceable</sv:value>
  </sv:property>
  <sv:property sv:name="jcr:uuid" sv:type="String">
    <sv:value>8e010dd2-0260-4a76-9751-80aee349fe03</sv:value>
  </sv:property>
  <sv:property sv:name="hippostd:foldertype" sv:type="String" sv:multiple="true">
    <sv:value>new-resource-bundle</sv:value>
    <sv:value>new-untranslated-folder</sv:value>
  </sv:property>
  <sv:node sv:name="global">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>hippo:handle</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
      <sv:value>hippo:named</sv:value>
      <sv:value>mix:referenceable</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>955308d1-bcc7-4b25-ab2c-a8e4c5f8271c</sv:value>
    </sv:property>
    <sv:property sv:name="hippo:name" sv:type="String">
      <sv:value>Global</sv:value>
    </sv:property>
    <sv:node sv:name="global">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>resourcebundle:resourcebundle</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
        <sv:value>mix:referenceable</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:uuid" sv:type="String">
        <sv:value>229454c9-f3a0-4a29-b797-93af17a69e01</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:availability" sv:type="String" sv:multiple="true">
        <sv:value>live</sv:value>
        <sv:value>preview</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:related___pathreference" sv:type="String">
        <sv:value>labels/global</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:state" sv:type="String">
        <sv:value>published</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:stateSummary" sv:type="String">
        <sv:value>live</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:createdBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:creationDate" sv:type="Date">
        <sv:value>2014-08-21T22:10:13.443+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModificationDate" sv:type="Date">
        <sv:value>2014-08-21T22:10:52.812+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModifiedBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:publicationDate" sv:type="Date">
        <sv:value>2014-08-21T22:10:54.657+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:id" sv:type="String">
        <sv:value>1c579718-84c1-4bc8-ad68-a5f5befff7bf</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:locale" sv:type="String">
        <sv:value>document-type-locale</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:descriptions" sv:type="String" sv:multiple="true">
        <sv:value>Text shown in the global page footer.</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:id" sv:type="String">
        <sv:value>essentials.global</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:keys" sv:type="String" sv:multiple="true">
        <sv:value>footer.text</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:messages" sv:type="String" sv:multiple="true">
        <sv:value>©2016</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="homepage">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>hippo:handle</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
      <sv:value>hippo:named</sv:value>
      <sv:value>mix:referenceable</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>cb80cced-e445-4cc8-afd8-aecb6c707f9a</sv:value>
    </sv:property>
    <sv:property sv:name="hippo:name" sv:type="String">
      <sv:value>Homepage</sv:value>
    </sv:property>
    <sv:node sv:name="homepage">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>resourcebundle:resourcebundle</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
        <sv:value>mix:referenceable</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:uuid" sv:type="String">
        <sv:value>9f4682b4-4072-48b8-95ac-26591228895e</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:availability" sv:type="String" sv:multiple="true">
        <sv:value>live</sv:value>
        <sv:value>preview</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:related___pathreference" sv:type="String">
        <sv:value>labels/homepage</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:state" sv:type="String">
        <sv:value>published</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:stateSummary" sv:type="String">
        <sv:value>live</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:createdBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:creationDate" sv:type="Date">
        <sv:value>2014-08-21T17:08:08.703+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModificationDate" sv:type="Date">
        <sv:value>2014-08-21T17:11:53.242+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModifiedBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:publicationDate" sv:type="Date">
        <sv:value>2014-08-21T17:11:55.239+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:id" sv:type="String">
        <sv:value>802cc977-02ba-494d-b404-abfed2e54605</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:locale" sv:type="String">
        <sv:value>document-type-locale</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:descriptions" sv:type="String" sv:multiple="true">
        <sv:value>Title displayed on homepage.</sv:value>
        <sv:value>Text displayed on homepage.</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:id" sv:type="String">
        <sv:value>essentials.homepage</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:keys" sv:type="String" sv:multiple="true">
        <sv:value>homepage.title</sv:value>
        <sv:value>homepage.text</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:messages" sv:type="String" sv:multiple="true">
        <sv:value>Home Page</sv:value>
        <sv:value>Every website comes with its own styling requirements. Hippo's setup application can therefore not address site styling. Instead, the generated pages use minimal styling to render the content. It is the task of the Hippo developer to adjust the front-end to the site's needs.</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="pagenotfound">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>hippo:handle</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
      <sv:value>hippo:named</sv:value>
      <sv:value>mix:referenceable</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>f4a34ee7-f699-45e2-b36b-a632cc603af0</sv:value>
    </sv:property>
    <sv:property sv:name="hippo:name" sv:type="String">
      <sv:value>Page not found</sv:value>
    </sv:property>
    <sv:node sv:name="pagenotfound">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>resourcebundle:resourcebundle</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
        <sv:value>mix:referenceable</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:uuid" sv:type="String">
        <sv:value>eb14da8c-1edb-43cb-bf25-656c6a32e85c</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:availability" sv:type="String" sv:multiple="true">
        <sv:value>live</sv:value>
        <sv:value>preview</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:related___pathreference" sv:type="String">
        <sv:value>labels/pagenotfound</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:state" sv:type="String">
        <sv:value>published</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:stateSummary" sv:type="String">
        <sv:value>live</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:createdBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:creationDate" sv:type="Date">
        <sv:value>2014-08-21T17:08:08.703+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModificationDate" sv:type="Date">
        <sv:value>2014-08-21T17:11:53.242+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModifiedBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:publicationDate" sv:type="Date">
        <sv:value>2014-08-21T17:11:55.239+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:id" sv:type="String">
        <sv:value>5ccfb100-ae57-47bd-b6be-b911a69c0d6e</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:locale" sv:type="String">
        <sv:value>document-type-locale</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:descriptions" sv:type="String" sv:multiple="true">
        <sv:value>Title displayed when page is not found.</sv:value>
        <sv:value>Text displayed when page is not found.</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:id" sv:type="String">
        <sv:value>essentials.pagenotfound</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:keys" sv:type="String" sv:multiple="true">
        <sv:value>pagenotfound.title</sv:value>
        <sv:value>pagenotfound.text</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:messages" sv:type="String" sv:multiple="true">
        <sv:value>Page not found (404)</sv:value>
        <sv:value>The page you requested was not found. - [This text can be edited here.]</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="pagination">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>hippo:handle</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
      <sv:value>hippo:named</sv:value>
      <sv:value>mix:referenceable</sv:value>
    </sv:property>
    <sv:property sv:name="jcr:uuid" sv:type="String">
      <sv:value>ed97734b-f1d6-49a1-8caa-fb139d10e522</sv:value>
    </sv:property>
    <sv:property sv:name="hippo:name" sv:type="String">
      <sv:value>Pagination</sv:value>
    </sv:property>
    <sv:node sv:name="pagination">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>resourcebundle:resourcebundle</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true">
        <sv:value>mix:referenceable</sv:value>
      </sv:property>
      <sv:property sv:name="jcr:uuid" sv:type="String">
        <sv:value>89f056ca-8795-475a-941f-f8ee59ccfac8</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:availability" sv:type="String" sv:multiple="true">
        <sv:value>live</sv:value>
        <sv:value>preview</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:related___pathreference" sv:type="String">
        <sv:value>labels/pagination</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:state" sv:type="String">
        <sv:value>published</sv:value>
      </sv:property>
      <sv:property sv:name="hippostd:stateSummary" sv:type="String">
        <sv:value>live</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:createdBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:creationDate" sv:type="Date">
        <sv:value>2014-08-21T14:30:14.382+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModificationDate" sv:type="Date">
        <sv:value>2014-08-21T17:03:32.811+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:lastModifiedBy" sv:type="String">
        <sv:value>admin</sv:value>
      </sv:property>
      <sv:property sv:name="hippostdpubwf:publicationDate" sv:type="Date">
        <sv:value>2014-08-21T17:06:47.420+02:00</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:id" sv:type="String">
        <sv:value>2f32b339-70fe-4cc1-a824-8f1ab2226adc</sv:value>
      </sv:property>
      <sv:property sv:name="hippotranslation:locale" sv:type="String">
        <sv:value>document-type-locale</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:descriptions" sv:type="String" sv:multiple="true">
        <sv:value>Used in the indication, how many results were found. The label is appended to the number of results.</sv:value>
        <sv:value>Label used for the link to the previous page.</sv:value>
        <sv:value>Label used for the link to the next page.</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:id" sv:type="String">
        <sv:value>essentials.pagination</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:keys" sv:type="String" sv:multiple="true">
        <sv:value>results.indication</sv:value>
        <sv:value>page.previous</sv:value>
        <sv:value>page.next</sv:value>
      </sv:property>
      <sv:property sv:name="resourcebundle:messages" sv:type="String" sv:multiple="true">
        <sv:value>document(s)</sv:value>
        <sv:value>previous</sv:value>
        <sv:value>next</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
</sv:node>


text:
package org.alien4cloud.tosca.editor.operations.groups;

import lombok.Getter;
import lombok.Setter;
import org.alien4cloud.tosca.editor.operations.AbstractEditorOperation;
import org.alien4cloud.tosca.editor.operations.nodetemplate.AbstractNodeOperation;

/**
 * Remove a node from a group.
 */
@Getter
@Setter
public class RemoveGroupMemberOperation extends AbstractNodeOperation {
    private String groupName;

    @Override
    public String commitMessage() {
        return "remove member <" + getNodeName() + "> from group <" + groupName + ">";
    }
}


text:
layout: page
title: Brennan - Anthony Wedding
date: 2016-05-24
author: Amber Hayes
tags: weekly links, java
status: published
summary: Cras finibus bibendum tortor sit amet porta. Sed gravida augue.
banner: images/banner/meeting-01.jpg
booking:
  startDate: 06/16/2018
  endDate: 06/21/2018
  ctyhocn: BOSNWHX
  groupCode: BAW
published: true
---
Maecenas ut euismod ex. Mauris rutrum dignissim sem nec fermentum. Praesent rhoncus eu nibh eget vestibulum. Pellentesque nulla libero, euismod id leo et, mollis vestibulum erat. Vestibulum ultrices maximus dui vitae fringilla. Fusce a mauris quam. Fusce sem nulla, consequat in sagittis a, dignissim lacinia nibh.

1 Morbi fermentum magna vitae volutpat rhoncus
1 Vivamus ac ex sed justo aliquet ornare.

Sed pretium ante a sapien lacinia viverra. Vestibulum lorem lacus, vestibulum sed ligula vel, accumsan maximus eros. Aenean rhoncus varius quam eu bibendum. In orci ante, varius eget ligula in, facilisis accumsan dui. Aliquam finibus iaculis augue. Curabitur sit amet accumsan erat. Nulla ornare diam lacus, vel imperdiet elit suscipit sed.


text:
'''
Created on Sep 24, 2016

@author: rtorres
'''
import datetime

from flask_login import UserMixin

from flaskiwsapp.database import Column, db
from flaskiwsapp.extensions import bcrypt
from sqlalchemy_utils.types.phone_number import PhoneNumberType

class UserCustomMixion(UserMixin):
    """A user mixin of the app."""

    email = Column(db.String(80), unique=True, nullable=False)
    password = Column(db.Binary(60), nullable=True)
    created_at = Column(db.DateTime, nullable=False, default=datetime.datetime.utcnow)
    first_name = Column(db.String(80), nullable=True)
    last_name = Column(db.String(80), nullable=True)
    active = Column(db.Boolean(), default=False)
    phone_number = Column(PhoneNumberType(), unique=True)

    def set_password(self, password):
        """Set password"""
        self.password = bcrypt.generate_password_hash(password)

    def check_password(self, value):
        """Check password."""
        return bcrypt.check_password_hash(self.password, value)

    @property
    def full_name(self):
        """Full user name."""
        return "{0} {1}".format(self.first_name, self.last_name)

    @property
    def is_active(self):
        """Active or non active user (required by flask-login)"""
        return self.active

    def has_role(self, *specified_role_names):
        """
        Return True if the user has one of the specified roles. Return False otherwise.
        """
        if hasattr(self, 'roles'):
            roles = self.roles
        else:
            if hasattr(self, 'user_profile') and hasattr(self.user_profile, 'roles'):
                roles = self.user_profile.roles
            else:
                roles = None
        if not roles:
            return False
        user_role_names = [role.name for role in roles]
        for role_name in specified_role_names:
            if role_name in user_role_names:
                return True
        return False


text:
package com.hbdworld.autocompletetextviewtest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.ListAdapter;
import android.widget.MultiAutoCompleteTextView;

public class MainActivity extends AppCompatActivity {

    AutoCompleteTextView auto;
    MultiAutoCompleteTextView mauto;
    String[] books = new String[]{
            "疯狂Java讲义",
            "疯狂Ajax讲义",
            "疯狂XML讲义",
            "疯狂Workflow讲义"};

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

        //--
        auto = (AutoCompleteTextView)this.findViewById(R.id.auto);
        mauto = (MultiAutoCompleteTextView)this.findViewById(R.id.mauto);

        ArrayAdapter listAdapter = new ArrayAdapter<String>(this,R.layout.support_simple_spinner_dropdown_item,books);
        auto.setAdapter(listAdapter);
        mauto.setAdapter(listAdapter);
        mauto.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
    }
}