text:
__Changes__
- added phylogenetic marker library App

### Version 1.6.0
__Changes__
- updated HMMER to v3.3.2
- allow multiple target inputs to HMMER_Model_Group_Search()
- fixed bug with EnvBioelement 'backconverted subseq didn't end at expected length' by removing MSA output

### Version 1.5.0
__Changes__
- changed heatmap cells to DIV
- updated dbCAN to v8
- updated dbCAN defaults to match dbCAN2 server E-Value < 1e-15, coverage > 0.35
- added descriptions to dbCAN HMMs in key and link to key from column title
- added option to dbCAN to save hits to explicitly requested or ALL models in a category
- changed gene overlap_perc to model_cov_perc
- made addition of new model groups much easier. Method now general in Utils/HmmerUtils.py
- added EnvBioelement
- added genes hit to rollover behavior in report

### Version 1.4.5
__Changes__
- updated HMMER to v3.3.1

### Version 1.4.4
__Changes__
- added low_val option to heatmap containing methods to set color scale
- fixed bug with display of MSA Groups where columns shifted left

### Version 1.4.3
__Changes__
- add support for AnnotatedMetagenomeAssembly as target
- removed coalesce option for HMMER_Local_MSA_Group()

### Version 1.4.2
__Changes__
- add configuration for genome display name

### Version 1.4.1
__Changes__
- changed heatmap colors to make easier to distinguish and extend to black for max value

### Version 1.4.0
__Changes__
- updated HMMER to v3.3

### Version 1.3.0
__Changes__
- added App HMMER_EnvBioelement_Search()

### Version 1.2.2
__Changes__
- made protein sequence checking stricter
- changed base docker image to sdkbase2

### Version 1.2.1
__Changes__
- changed citation to PLOS format

### Version 1.2.0
__Changes__
- added App HMMER_dbCAN_Search()

### Version 1.1.2
__Changes__
- added HTML profile output for GenomeSet input to HMMER_Local_MSA_Group_Search()
- added overlap threshold to HMMER_MSA_Search() and HMMER_Local_MSA_Group_Search()

### Version 1.1.1
__Changes__
- added selectable MSAs to HMMER_Local_MSA_Group_Search()

### Version 1.1.0
__Changes__
- added HMMER_Local_MSA_Group_Search()

### Version 1.0.3
__Changes__
- changed kbase help contact

### Version 1.0.0
- Initial release


text:
describe Limited::Actor::Identifier do
  before(:all) do
    @identifier = Limited::Actor::Identifier.new
  end
  describe "constructor" do
    it "should take a series of symbols used as keys for identification of the actor" do
      expect do
        Limited::Actor::Identifier.new :id
        Limited::Actor::Identifier.new :id, :ip
        Limited::Actor::Identifier.new :id, :ip, :page
      end.not_to raise_error
    end

    it "should not allow two symbols with the same name" do
      expect { Limited::Actor.new :id, :id }.to raise_error(ArgumentError)
    end
  end

  describe "keys" do
    it { @identifier.should respond_to(:keys) }
    it "should return all the symbols given in the connstructor as an array" do
      Limited::Actor::Identifier.new(:id).keys.should eq [:id]
      Limited::Actor::Identifier.new(:id, :ip).keys.should eq [:id, :ip]
      Limited::Actor::Identifier.new(:id, :ip, :page).keys.should eq [:id, :ip, :page]
    end
  end

  describe "empty_hash" do
    it { @identifier.should respond_to(:hash_keys) }
    it "should return all the symbols given in the connstructor used as key in a hash" do
      Limited::Actor::Identifier.new(:id).hash_keys.should eq({ id: nil })
      Limited::Actor::Identifier.new(:id, :ip).hash_keys.should eq({ id: nil, ip: nil })
      Limited::Actor::Identifier.new(:id, :ip, :page).hash_keys.should eq({ id: nil, ip: nil, page: nil })
    end
  end
end

redpajama_set_name: RedPajamaGithub


text:
package com.fit2cloud.aliyun.slb.model.response;

import com.fit2cloud.aliyun.Response;
import com.fit2cloud.aliyun.slb.model.BackendServersHealthStatus;

public class DescribeHealthStatusResponse extends Response {
	private BackendServersHealthStatus BackendServers;

	public BackendServersHealthStatus getBackendServers() {
		return BackendServers;
	}

	public void setBackendServers(BackendServersHealthStatus backendServers) {
		BackendServers = backendServers;
	}
}


text:
int main(int argc, const char *argv[]) {
	dfheader(stdout);
	DockRobot d(stdin);
	search<DockRobot>(d, argc, argv);
	dffooter(stdout);
	return 0;
}


text:
title: Syntax
layout: default
categories: php-basics

breadcrumb_url: php-basics/index.html
breadcrumb_name: PHP Basics
permalink: php-basics/:title.html

next_url: php-basics/variables.html
next_name: Variables

prev_url: php-basics/index.html
prev_name: PHP Basics

---

* [PHP](#php)
* [Tags](#tags)
* [Problema com as Tags](#problema-com-as-tags)
* [Aspas](#aspas)
* [Concatenação de Strings](#concatenao-de-strings)
* [Comentários](#comentrios)
* [Bloco de código](#bloco-de-codigo)
* [O interpretador PHP](#o-interpretador-php)

***

### PHP
O PHP (um acrônimo recursivo para PHP: Hypertext Preprocessor) é uma linguagem de script open source de uso geral, muito utilizada, e especialmente adequada para o desenvolvimento web. A melhor coisa em usar o PHP é que ele é extremamente simples para um iniciante, mas oferece muitos recursos para um programador profissional.

***

### Tags
O PHP tem como sintaxe básica, tags de abertura representado por `<?php` e fechamento `?>` como default do interpretador. O interpretador busca por essas tags dentro do arquivo e se achar ele interpreta os comandos dentro das tags e retorna a resposta na saída do documento. Com essa forma de interpretar, o PHP possui a possibilidade de ser facilmente incluído em vários tipos de documento.

Exemplo da mesclagem com HTML:

<script src="https://gist.github.com/alefcastelo/cfbe2e7a3b25825dd3e9a3a46e39cf14.js"></script>

A saída desse código é:

<script src="https://gist.github.com/alefcastelo/d63afe9cf4ce4fd1c3eb23e997b47121.js"></script>

Repare também que foi usado duas formas diferente de exibir uma string na saída do interpretador. A primeira foi `<?php print "Titulo da pagina" ?>` e a segunda foi `<?= "conteúdo do site" ?>`.
Isso só é possível por que o PHP possui outros tipos de tags a qual o interpretador entende que naquele bloco é um código php.

**Standard Tags or Open Tags**
`<?php ?>`
O mais usado usado, e com certeza a melhor solução, por causa da compatibilidade com versões anteriores, e é garantido que não poderão ser desabilitado alterando o arquivo de configuração do php.

**Short Open Tags**
`<? ?>`
Seu uso é desencorajado pois esse recurso só está disponível quando é habilitado a diretiva `short_open_tag` no _php.ini_.

**Echo tag**
`<?= ?>`
Comummente usado em arquivo de template. A parti da versão 5.4.0 sempre estará disponível, independente do da configuração `short_open_tag` no _php.ini_.

**ASP Tags**
`<% %>`
É considerado obsoleto, e seu uso é desencorajado pois na verão 7 ele foi removido, por motivos de causar conflitos com linguagens de marcação como XML.

**Script Tags**
`<script language="php"></script>`
Também foi removido da versão 7 do  PHP.

***

### Problema com as Tags

Ao criar arquivos PHP que não se misturam com HTML ou arquivos de template, geralmente em arquivos de classes, configurações e etc, recomenda-se não usar tag de fechamento `?>`. Pois caso exista um espaço ou quebra de linha após a tag de fechamento, essa espaço ou quebra de linha será exibido na resposta da requisição, e é algo bem difícil de se acha quando se tem um projeto com muitos arquivos, e isso pode trazer algumas horas de dor de cabeça.

***

### Aspas

No PHP para exibir um texto qualquer, você pode usar tanto aspas duplas `"` quanto aspas simples `'`, exemplo:

* `<?="PHP BOOK"?>` saida: `PHP BOOK`
* `<?='PHP BOOK'?>` saida: `PHP BOOK`

A diferença acontece quando você tenta mescla esse texto com uma variável, exemplo:

<script src="https://gist.github.com/alefcastelo/4705de72268d3d683946c2b1806598c5.js"></script>

Repare que na primeira exibição, a variável foi reconhecida e seu valor foi impresso na resposta junto com o texto, já na segunda exibição, foi impresso o texto puro e a variável não foi reconhecida. Quando se usa aspas duplas, você consegue mesclar variáveis em strings.

O PHP consegue identificar a variável fazendo com que seu valor seja retornado na exibição, assim evitando está concatenando string com variáveis.
Outra forma valida e a mais usada é quando se usa chaves envolvendo a variável.

<script src="https://gist.github.com/alefcastelo/decedac228ccebbf7bc4d05da0be9405.js"></script>

> As palavas reservadas `print` e `echo` são as mais usadas para exibir algo na resposta da requisição.

***

### Concatenação de Strings
Para fazer uso da concatenação (ou junção de strings), você precisa usar o ponto `.`, sempre colocando entre duas variáveis ou entre duas strings, entre uma string e o retorno de uma função/método.

<script src="https://gist.github.com/alefcastelo/5a992f8b52f2b35d2915a1e0f195c1a2.js"></script>

***

### Comentários
Assim como em outras linguagens, o PHP possui dois tipo de comentários, de "uma linha" e de "varias linhas". O PHP suporta comentários no estilo 'C', 'C++' e do Unix shell (estilo Perl). Por exemplo:

<script src="https://gist.github.com/alefcastelo/f3efe2f030ce2d7d6ba71eee259351a2.js"></script>

Os comentários de estilo "uma linha" apenas comentam até o final da linha ou do bloco PHP de código corrente

Ao tentar comentar grandes blocos de código, podemos cometer o seguinte equivoco:

<script src="https://gist.github.com/alefcastelo/40d7d75e9757a1a1f974b17973c6d62c.js"></script>

***

### Bloco de codigo

O PHP usa como delimitador de bloco de código as chaves `{}` exemplo:

<script src="https://gist.github.com/alefcastelo/f67996fd770329e3c7d898cd30bbd0bd.js"></script>

***

### O interpretador PHP

Como já foi dito PHP consegue se mistura com outros tipos de arquivos ou documentos e o interpretador consegue detectar comandos PHP dentro desse arquivo, até mesmo não sendo um arquivo com a extensão `.php` veja:

syntax-example-8.xml

<script src="https://gist.github.com/alefcastelo/ad5212bdf1e8ca395ecf95fbc645a010.js"></script>

syntax-example-9.php

<script src="https://gist.github.com/alefcastelo/547e4aec365dd6595181b58fa07745af.js"></script>

Saída:

<script src="https://gist.github.com/alefcastelo/accaabffdb26cac8127098226b239340.js"></script>


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

public class debug_string : MonoBehaviour {

	public int inicio, fim, altura, i, j, y, x, cont;
	public int w, h;
	public RectTransform aux;
	public bool Flag;
	public GameObject programa;
	public GameObject[] botao = new GameObject[9];
	public GameObject[] condicao = new GameObject[5];
	public Text sucesso;
	public string [] parametro = new string[2];

	void Start () {
		parametro[0]= "         ";
		parametro[1]= "         ";
		sucesso = GameObject.Find ("sucesso").GetComponent<Text> ();
		sucesso.text = "";
		altura = (int)programa.transform.position.y;
		w = (int)aux.rect.width;
		h = (int)aux.rect.height;
	}

	public void copilar(){
		for (i = 0; i < 5; i++) {
			for (j = 0; j < 9; j++) {
				cont = GameObject.Find ("botoes").GetComponent<transporta_botao_string> ().b_opcao [j];
				if (cont == i)
					condicao [i] = botao [j];
			}
		}
		Flag=true;
		if(condicao[0].tag != "variavel" && condicao[0].tag != "valor")
			Flag=false;
		if(condicao[1].tag != "comparacao")
			Flag=false;
		if(condicao[2].tag != "variavel" && condicao[2].tag != "valor")
			Flag=false;
		if(condicao[3].tag != "operacao")
			Flag=false;
		if(condicao[4].tag != "variavel" && condicao[2].tag != "valor")
			Flag=false;
		if (Flag) {
			parametro[0] = condicao [0].GetComponentInChildren<Text> ().text;
			parametro[0] += condicao [1].GetComponentInChildren<Text> ().text;
			parametro[0] += condicao [2].GetComponentInChildren<Text> ().text;
			parametro[1] = condicao [3].GetComponentInChildren<Text> ().text;
			parametro[1] += condicao [4].GetComponentInChildren<Text> ().text;
			sucesso.text = "Sintaxe Correta\nMas Condição Errada";
			//comp.op1=condicao[0].GetComponent<mover_botao>().cod;
			//comp.op2=condicao[1].GetComponent<mover_botao>().cod;
			//comp.op3=condicao[2].GetComponent<mover_botao>().cod;
			//comp.op4=condicao[3].GetComponent<mover_botao>().cod;
			//comp.op5=condicao[4].GetComponent<mover_botao>().cod;
		} else {
			sucesso.text = " Erro na Sintaxe ";
		}
	}
}


text:
param([int] $iterations = 50000)

$url = "http://localhost:8080/plaintext"
& loadtest -k -n $iterations -c 100 $url


text:
package org.apache.calcite.sql;

import org.apache.calcite.avatica.util.TimeUnitRange;
import org.apache.calcite.sql.parser.SqlParserPos;
import org.apache.calcite.sql.type.SqlTypeName;

import org.checkerframework.checker.nullness.qual.Nullable;

/**
 * Defines the name of the types which can occur as a type argument
 * in a JDBC <code>{fn CONVERT(value, type)}</code> function.
 * (This function has similar functionality to {@code CAST}, and is not to be
 * confused with the SQL standard
 * {@link org.apache.calcite.sql.fun.SqlConvertFunction CONVERT} function.)
 *
 * @see SqlJdbcFunctionCall
 */
public enum SqlJdbcDataTypeName implements Symbolizable {
  SQL_CHAR(SqlTypeName.CHAR),
  SQL_VARCHAR(SqlTypeName.VARCHAR),
  SQL_DATE(SqlTypeName.DATE),
  SQL_TIME(SqlTypeName.TIME),
  SQL_TIME_WITH_LOCAL_TIME_ZONE(SqlTypeName.TIME_WITH_LOCAL_TIME_ZONE),
  SQL_TIMESTAMP(SqlTypeName.TIMESTAMP),
  SQL_TIMESTAMP_WITH_LOCAL_TIME_ZONE(SqlTypeName.TIMESTAMP_WITH_LOCAL_TIME_ZONE),
  SQL_DECIMAL(SqlTypeName.DECIMAL),
  SQL_NUMERIC(SqlTypeName.DECIMAL),
  SQL_BOOLEAN(SqlTypeName.BOOLEAN),
  SQL_INTEGER(SqlTypeName.INTEGER),
  SQL_BINARY(SqlTypeName.BINARY),
  SQL_VARBINARY(SqlTypeName.VARBINARY),
  SQL_TINYINT(SqlTypeName.TINYINT),
  SQL_SMALLINT(SqlTypeName.SMALLINT),
  SQL_BIGINT(SqlTypeName.BIGINT),
  SQL_REAL(SqlTypeName.REAL),
  SQL_DOUBLE(SqlTypeName.DOUBLE),
  SQL_FLOAT(SqlTypeName.FLOAT),
  SQL_INTERVAL_YEAR(TimeUnitRange.YEAR),
  SQL_INTERVAL_YEAR_TO_MONTH(TimeUnitRange.YEAR_TO_MONTH),
  SQL_INTERVAL_MONTH(TimeUnitRange.MONTH),
  SQL_INTERVAL_DAY(TimeUnitRange.DAY),
  SQL_INTERVAL_DAY_TO_HOUR(TimeUnitRange.DAY_TO_HOUR),
  SQL_INTERVAL_DAY_TO_MINUTE(TimeUnitRange.DAY_TO_MINUTE),
  SQL_INTERVAL_DAY_TO_SECOND(TimeUnitRange.DAY_TO_SECOND),
  SQL_INTERVAL_HOUR(TimeUnitRange.HOUR),
  SQL_INTERVAL_HOUR_TO_MINUTE(TimeUnitRange.HOUR_TO_MINUTE),
  SQL_INTERVAL_HOUR_TO_SECOND(TimeUnitRange.HOUR_TO_SECOND),
  SQL_INTERVAL_MINUTE(TimeUnitRange.MINUTE),
  SQL_INTERVAL_MINUTE_TO_SECOND(TimeUnitRange.MINUTE_TO_SECOND),
  SQL_INTERVAL_SECOND(TimeUnitRange.SECOND);

  private final @Nullable TimeUnitRange range;
  private final @Nullable SqlTypeName typeName;

  SqlJdbcDataTypeName(SqlTypeName typeName) {
    this(typeName, null);
  }

  SqlJdbcDataTypeName(TimeUnitRange range) {
    this(null, range);
  }

  SqlJdbcDataTypeName(@Nullable SqlTypeName typeName, @Nullable TimeUnitRange range) {
    assert (typeName == null) != (range == null);
    this.typeName = typeName;
    this.range = range;
  }

  /** Creates a parse tree node for a type identifier of this name. */
  public SqlNode createDataType(SqlParserPos pos) {
    if (typeName != null) {
      assert range == null;
      return new SqlDataTypeSpec(new SqlBasicTypeNameSpec(typeName, pos), pos);
    } else {
      assert range != null;
      return new SqlIntervalQualifier(range.startUnit, range.endUnit, pos);
    }
  }
}


text:
package android.animation;

import android.view.animation.AnimationUtils;

/**
 * This class provides a simple callback mechanism to listeners that is synchronized with all
 * other animators in the system. There is no duration, interpolation, or object value-setting
 * with this Animator. Instead, it is simply started, after which it proceeds to send out events
 * on every animation frame to its TimeListener (if set), with information about this animator,
 * the total elapsed time, and the elapsed time since the previous animation frame.
 */
public class TimeAnimator extends ValueAnimator {

    private TimeListener mListener;
    private long mPreviousTime = -1;

    @Override
    public void start() {
        mPreviousTime = -1;
        super.start();
    }

    @Override
    boolean animateBasedOnTime(long currentTime) {
        if (mListener != null) {
            long totalTime = currentTime - mStartTime;
            long deltaTime = (mPreviousTime < 0) ? 0 : (currentTime - mPreviousTime);
            mPreviousTime = currentTime;
            mListener.onTimeUpdate(this, totalTime, deltaTime);
        }
        return false;
    }

    @Override
    public void setCurrentPlayTime(long playTime) {
        long currentTime = AnimationUtils.currentAnimationTimeMillis();
        mStartTime = Math.max(mStartTime, currentTime - playTime);
        mStartTimeCommitted = true; // do not allow start time to be compensated for jank
        animateBasedOnTime(currentTime);
    }

    /**
     * Sets a listener that is sent update events throughout the life of
     * an animation.
     *
     * @param listener the listener to be set.
     */
    public void setTimeListener(TimeListener listener) {
        mListener = listener;
    }

    @Override
    void animateValue(float fraction) {
        // Noop
    }

    @Override
    void initAnimation() {
        // noop
    }

    /**
     * Implementors of this interface can set themselves as update listeners
     * to a TimeAnimator instance to receive callbacks on every animation
     * frame to receive the total time since the animator started and the delta time
     * since the last frame. The first time the listener is called,
     * deltaTime will be zero. The same is true for totalTime, unless the animator was
     * set to a specific {@link ValueAnimator#setCurrentPlayTime(long) currentPlayTime}
     * prior to starting.
     */
    public static interface TimeListener {
        /**
         *
Notifies listeners of the occurrence of another frame of the animation,
         * along with information about the elapsed time.

         *
         * @param animation The animator sending out the notification.
         * @param totalTime The total time elapsed since the animator started, in milliseconds.
         * @param deltaTime The time elapsed since the previous frame, in milliseconds.
         */
        void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime);

    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

	<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
		p:driverClassName="org.hsqldb.jdbcDriver" p:url="jdbc:hsqldb:mem:transactional_tests" p:username="sa" p:password="" />

	<bean id="txMgr" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
		p:data-source-ref="dataSource" />

	<bean id="databaseSetup"
		class="org.springframework.test.context.junit4.DefaultRollbackFalseTransactionalSpringRunnerTests$DatabaseSetup" />

</beans>


text:
'use strict';

import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import * as vizUtil from '@hms-dbmi-bgm/shared-portal-components/es/components/viz/utilities';
import { console, isServerSide, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { barplot_color_cycler } from './../ColorCycler';
import { CursorViewBounds } from './../ChartDetailCursor';

/**
 * Outputs a section of a bar.
 *
 * @class BarSection
 * @type {Component}
 */
class BarSection extends React.PureComponent {

    constructor(props){
        super(props);
        _.bindAll(this, 'mouseEnter', 'mouseLeave', 'click');
        this.barSectionElemRef = React.createRef();
    }

    /**
     * Call the `onMouseLeave` prop callback fxn in preparation
     * to dismount in order to clean up if necessary.
     *
     * @todo Maybe check for `props.isHoveredOver` first?
     */
    componentWillUnmount(){
        var { isSelected, isHoveredOver, onMouseLeave, node } = this.props;
        if (this.barSectionElemRef.current && (isSelected || isHoveredOver)){
            onMouseLeave(node, { 'relatedTarget' : this.barSectionElemRef.current });
        }
    }

    mouseEnter(e){
        const { onMouseEnter, node } = this.props;
        return onMouseEnter && onMouseEnter(node, e);
    }

    mouseLeave(e){
        const { onMouseLeave, node } = this.props;
        return onMouseLeave && onMouseLeave(node, e);
    }

    click(e){
        const { onClick, node } = this.props;
        return onClick && onClick(node, e);
    }

    /**
     * @returns {Element} - A div element representing a bar section.
     */
    render(){
        const { node: d, isSelected, isHoveredOver, canBeHighlighted } = this.props;
        const color           = d.color || barplot_color_cycler.colorForNode(d);
        let className = "bar-part";

        if (d.parent)           className += ' multiple-parts';
        if (isSelected)         className += ' selected';
        if (isHoveredOver)      className += ' hover';
        if (!canBeHighlighted)  className += ' no-highlight';
        else                    className += ' no-highlight-color';

        var height;
        if (!d.parent) { // No sub-buckets
            height = '100%';
        } else {
            // Use a percentage for styling purposes because we want the outermost bar height
            // to transition and child bar sections to stay aligned to it.
            height = (d.count / d.parent.count) * 100 + '%';
        }

        return (
            <div className={className} ref={this.barSectionElemRef}
                style={{
                    height, 'backgroundColor' : color
                    //width: '100%', //(this.props.isNew && d.pastWidth) || (d.parent || d).attr.width,
                }}
                data-key={this.props['data-key'] || null} data-term={d.parent ? d.term : null}
                data-count={d.count} data-color={color} data-target-height={d.attr.height}
                key={'bar-part-' + (d.parent ? d.parent.term + '~' + d.term : d.term)}
                onMouseEnter={this.mouseEnter} onMouseLeave={this.mouseLeave} onClick={this.click}
            />
        );
    }
}

/**
 * Outputs a vertical bar containing bar sections.
 *
 * @class Bar
 * @type {Component}
 */
class Bar extends React.PureComponent {

    constructor(props){
        super(props);
        this.verifyCounts = this.verifyCounts.bind(this);
        this.barStyle = this.barStyle.bind(this);
        this.renderBarSection = this.renderBarSection.bind(this);
        this.state = {
            'mounted' : false
        };
        this.barElemRef = React.createRef();
    }

    componentDidMount(){
        this.verifyCounts();
    }

    componentDidUpdate(pastProps){
        if (this.props.node !== pastProps.node){
            this.verifyCounts();
        }
    }

    /**
     * Double check sum of bar parts and report an Exception to Google Analytics if doesn't match.
     * Do this in a setTimeout because it doesn't affect rendering or site UI.
     */
    verifyCounts(){
        var d = this.props.node;
        if (!d.bars) return;
        setTimeout(()=>{
            var combinedChildrenCount = _.reduce(d.bars, function(sum, bar){
                return sum + bar.count;
            }, 0);
            if (combinedChildrenCount && d.count !== combinedChildrenCount){
                var errorMsg = (
                    "Data Error: 1 or more ExperimentSets was counted multiple times for 'group by' field '" +
                    d.bars[0].field + "'."
                );
                logger.error(errorMsg);
            }
        }, 0);
    }

    barStyle(){
        const { node, styleOptions } = this.props;
        const style = {};

        // Position bar's x coord via translate3d CSS property for CSS3 transitioning.
        style.transform = vizUtil.style.translate3d(node.attr.x, 0, 0);
        style.left = styleOptions.offset.left;
        style.bottom = styleOptions.offset.bottom;
        style.width = node.attr.width;
        style.height = node.attr.height;

        return style;
    }

    renderBarSection(d, i, all){
        var { hoverTerm, hoverParentTerm, selectedTerm, selectedParentTerm, onBarPartClick,
                onBarPartMouseEnter, onBarPartMouseOver, onBarPartMouseLeave,
                aggregateType, canBeHighlighted } = this.props,
            key = d.term || d.name || i,
            isHoveredOver   = CursorViewBounds.isSelected(d, hoverTerm, hoverParentTerm),
            isSelected      = CursorViewBounds.isSelected(d, selectedTerm, selectedParentTerm);

        return (
            <BarSection {...{ isHoveredOver, isSelected, key, aggregateType, canBeHighlighted }} data-key={key} node={d}
                onClick={onBarPartClick} onMouseEnter={onBarPartMouseEnter} onMouseLeave={onBarPartMouseLeave} isRemoving={d.removing} />
        );
    }

    render(){
        const { canBeHighlighted, showBarCount, node: d } = this.props;
        const hasSubSections = Array.isArray(d.bars);
        const barSections = (hasSubSections ?
            // If needed, remove sort + reverse to keep order of heaviest->lightest aggs regardless of color
            barplot_color_cycler.sortObjectsByColorPalette(d.bars).reverse() : [_.extend({}, d, { color : 'rgb(139, 114, 142)' })]
        );
        let className = "chart-bar";
        const topLabel = showBarCount ? { d.count } : null;

        if (!canBeHighlighted)  className += ' no-highlight';
        else                    className += ' no-highlight-color';

        return (

 0 ? d.bars[0].field : null}
                key={"bar-" + d.term}
                style={this.barStyle()}
                ref={this.barElemRef}>
                { topLabel }
                { _.map(barSections, this.renderBarSection) }

        );
    }
}

/**
 * React Component for wrapping the generated markup of BarPlot.Chart.
 * Also contains Components Bar and BarSection as static children, for wrapping output bar and bar parts.
 *
 * The top-level ViewContainer component contains state for interactivity of the generated chart mark-up.
 * The child Bar and BarSection components are stateless and utilize the state passed down from ViewContainer.
 */
export class ViewContainer extends React.Component {

    static Bar = Bar
    static BarSection = BarSection

    static defaultProps = {
        'canBeHighlighted' : true
    };

    constructor(props){
        super(props);
        this.verifyCounts = this.verifyCounts.bind(this);
        this.renderBars = this.renderBars.bind(this);
    }

    componentDidMount(){
        this.verifyCounts();
    }

    componentDidUpdate(pastProps){
        if (this.props.bars !== pastProps.bars || this.props.aggregateType !== pastProps.aggregateType || this.props.topLevelField !== pastProps.topLevelField){
            this.verifyCounts();
        }
    }

    /**
     * Double check sum of bar parts and report an Exception to Google Analytics if doesn't match.
     * Do this in a setTimeout because it doesn't affect rendering or site UI.
     */
    verifyCounts(){
        var { bars, topLevelField, aggregateType } = this.props,
            totalCount = topLevelField && topLevelField.total && topLevelField.total[aggregateType];

        if (!totalCount || !bars) return;

        setTimeout(()=>{
            var combinedChildrenCount = _.reduce(bars, function(sum, bar){
                return sum + bar.count;
            }, 0);
            if (combinedChildrenCount && totalCount !== combinedChildrenCount){
                var errorMsg = (
                    "Data Error: 1 or more ExperimentSets was counted multiple times for 'group by' field '" +
                    bars[0].field + "'."
                );
                logger.error(errorMsg);
            }
        }, 0);
    }

    /**
     * Passes props to and renders child 'Bar' Components.
     * Passes in own state, high-level props if child prop not set, and extends event handlers.
     *
     * @returns {Component[]} Array of 'Bar' React Components.
     */
    renderBars(){
        var { bars, onNodeMouseEnter, onNodeMouseLeave, onNodeClick } = this.props,
            barsToRender, currentBars;

        return _.map(bars.sort(function(a,b){ // key will be term or name, if available
            return (a.term || a.name) < (b.term || b.name) ? -1 : 1;
        }), (d,i,a) =>
            <CSSTransition classNames="barplot-transition" unmountOnExit timeout={{ enter: 10, exit: 750 }} key={d.term || d.name || i}>
                <Bar key={d.term || d.name || i} node={d}
                    showBarCount={true /*!allExpsBarDataContainer */}
                    {..._.pick(this.props, 'selectedParentTerm', 'selectedTerm', 'hoverParentTerm', 'hoverTerm', 'styleOptions',
                        'aggregateType', 'showType', 'canBeHighlighted')}
                    onBarPartMouseEnter={onNodeMouseEnter} onBarPartMouseLeave={onNodeMouseLeave} onBarPartClick={onNodeClick} />
            </CSSTransition>
        );
    }

    render(){
        var { topLevelField, width, height, bars } = this.props,
            anyHiddenOtherTerms = topLevelField.other_doc_count || _.any(_.values(topLevelField.terms), function(tV){
                return tV.other_doc_count;
            });
        return (

{
                    if (ChartDetailCursor.isTargetDetailCursor(evt.relatedTarget)){
                        return false;
                    }
                    var newState = {};
                    if (this.state.hoverBarSectionTerm) {
                        newState.hoverBarSectionParentTerm = newState.hoverBarSectionTerm = null;
                    }
                    if (this.state.selectedBarSectionTerm) {
                        newState.selectedBarSectionParentTerm = newState.selectedBarSectionTerm = null;
                    }
                    if (_.keys(newState).length > 0){
                        this.setState(newState);
                    }
                }}
                */
            >
                { anyHiddenOtherTerms ?

* Only up to the top 30 terms are shown.

                    : null }
                { this.props.leftAxis }
                {/* allExpsBarDataContainer && allExpsBarDataContainer.component */}
                <TransitionGroup>{ this.renderBars() }</TransitionGroup>
                { this.props.bottomAxis }

        );

    }

}

/**
 * Wraps ViewContainer with PopoverViewBounds, which feeds it
 * props.onNodeMouseEnter(node, evt), props.onNodeMouseLeave(node, evt), props.onNodeClick(node, evt),
 * props.selectedTerm, props.selectedParentTerm, props.hoverTerm, and props.hoverParentTerm.
 *
 * @export
 * @class PopoverViewContainer
 * @extends {React.Component}
 */
export class PopoverViewContainer extends React.PureComponent {

    static propTypes = {
        'height' : PropTypes.number,
        'width'  : PropTypes.number,
        'cursorDetailActions': PropTypes.arrayOf(PropTypes.shape({
            'title' : PropTypes.oneOfType([PropTypes.string, PropTypes.func]).isRequired,
            'function' : PropTypes.oneOfType([PropTypes.string, PropTypes.func]).isRequired,
            'disabled' : PropTypes.oneOfType([PropTypes.bool, PropTypes.func]).isRequired,
        }))
    };

    static defaultProps = {
        'cursorContainerMargin' : 100
    };

    constructor(props){
        super(props);
        this.getCoordsCallback = this.getCoordsCallback.bind(this);
    }

    getCoordsCallback(node, containerPosition, boundsHeight){
        var bottomOffset = (this.props && this.props.styleOptions && this.props.styleOptions.offset && this.props.styleOptions.offset.bottom) || 0;
        var leftOffset = (this.props && this.props.styleOptions && this.props.styleOptions.offset && this.props.styleOptions.offset.left) || 0;

        var barYPos = node.attr.height;

        if (node.parent){
            var done = false;
            barYPos = _.reduce(
                node.parent.bars,//.slice(0).reverse(),
                //_.sortBy(node.parent.bars, 'term').reverse(),
                function(m, siblingNode){
                    if (done) return m;
                    if (siblingNode.term === node.term){
                        done = true;
                    }
                    return m + siblingNode.attr.height;
                },
                0
            );
        }

        return {
            'x' : containerPosition.left + leftOffset + (node.parent || node).attr.x + ((node.parent || node).attr.width / 2),
            'y' : containerPosition.top + boundsHeight - bottomOffset - barYPos,
        };
    }

    render(){
        return (
            <CursorViewBounds {..._.pick(this.props, 'height', 'width', 'cursorContainerMargin', 'actions', 'href', 'context', 'schemas')}
                eventCategory="BarPlot" // For Analytics events
                highlightTerm={false} clickCoordsFxn={this.getCoordsCallback}>
                <ViewContainer {...this.props} />
            </CursorViewBounds>
        );
    }
}


text:
`@fluent/syntax` is a parser for Fluent translation files, FTL. Project
Fluent is a localization framework designed to unleash the expressive power
of the natural language.

## Installation

`@fluent/syntax` can be used both on the client-side and the server-side. You
can install it from the npm registry or use it as a standalone script (as the
`FluentSyntax` global).

    npm install @fluent/syntax

## How to use

```javascript
import {parse, Resource} from "@fluent/syntax";

const res = parse(`
-brand-name = Foo 3000
welcome = Welcome, {$name}, to {-brand-name}!
`);

assert(res instanceof Resource);
```

The API reference is available at https://projectfluent.org/fluent.js/syntax.

## Compatibility

For legacy browsers, the `compat` build has been transpiled using Babel's [env
preset][]:

```javascript
import "@fluent/syntax/compat";
```

## Learn more

Find out more about Project Fluent at [projectfluent.org][], including
documentation of the Fluent file format ([FTL][]), links to other packages and
implementations, and information about how to get involved.

[env preset]: https://babeljs.io/docs/plugins/preset-env/
[projectfluent.org]: https://projectfluent.org
[FTL]: https://projectfluent.org/fluent/guide/


text:
package net.mewk.pem;

import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
import org.bouncycastle.openssl.PEMKeyPair;
import org.bouncycastle.openssl.PEMParser;
import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter;

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.io.*;
import java.security.*;

public class PEMUtils {

    /**
     * Loads a private key in the PEM format.
     *
     * @param fileName The filename of the private key
     * @return The key pair containing the private and public key
     * @throws IOException
     */
    public static KeyPair loadPrivateKey(String fileName) throws IOException {
        Reader bufferedReader = null;
        PEMParser pemParser = null;

        try {
            bufferedReader = new BufferedReader(new InputStreamReader(PEMUtils.class.getResourceAsStream(fileName)));
            pemParser = new PEMParser(bufferedReader);
            PEMKeyPair pemPair = (PEMKeyPair) pemParser.readObject();

            return new JcaPEMKeyConverter().setProvider("BC").getKeyPair(pemPair);
        } finally {
            if (bufferedReader != null) {
                bufferedReader.close();
            }
            if (pemParser != null) {
                pemParser.close();
            }
        }
    }

    /**
     * Loads a public key in the PEM format.
     *
     * @param fileName The filename of the public key
     * @return The public key
     * @throws IOException
     */
    public static PublicKey loadPublicKey(String fileName) throws IOException {
        Reader bufferedReader = null;
        PEMParser pemParser = null;

        try {
            bufferedReader = new BufferedReader(new InputStreamReader(PEMUtils.class.getResourceAsStream(fileName)));
            pemParser = new PEMParser(bufferedReader);
            SubjectPublicKeyInfo subjectPublicKeyInfo = (SubjectPublicKeyInfo) pemParser.readObject();

            return new JcaPEMKeyConverter().setProvider("BC").getPublicKey(subjectPublicKeyInfo);
        } finally {
            if (bufferedReader != null) {
                bufferedReader.close();
            }
            if (pemParser != null) {
                pemParser.close();
            }
        }
    }

    /**
     * Encrypts a message.
     *
     * @param text The message to be encrypted
     * @param key The public key
     * @param algorithm The encryption algorithm
     * @return The encrypted message
     * @throws NoSuchPaddingException
     * @throws NoSuchAlgorithmException
     * @throws InvalidKeyException
     * @throws BadPaddingException
     * @throws IllegalBlockSizeException
     */
    public static byte[] encrypt(String text, PublicKey key, String algorithm) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException {
        final Cipher cipher = Cipher.getInstance(algorithm);
        cipher.init(Cipher.ENCRYPT_MODE, key);

        return cipher.doFinal(text.getBytes());
    }

    /**
     * Decrypts a message.
     *
     * @param text The message to be decrypted
     * @param key The private key
     * @param algorithm The encryption algorithm
     * @return The decrypted message
     * @throws NoSuchPaddingException
     * @throws NoSuchAlgorithmException
     * @throws InvalidKeyException
     * @throws BadPaddingException
     * @throws IllegalBlockSizeException
     */
    public static String decrypt(byte[] text, PrivateKey key, String algorithm) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException {
        final Cipher cipher = Cipher.getInstance(algorithm);
        cipher.init(Cipher.DECRYPT_MODE, key);

        return new String(cipher.doFinal(text));
    }
}


text:
var path = require('path'),

    cli = require('commander'),
    colors = require('cli-color'),

    Linter = require('./linter.js'),
    project = require('../package.json'),

    ramllinter = new Linter();

cli
  .option('-l, --level <level>', 'logging level: error|warning|info')
  .usage('[options] <api.raml>')
  .version(project.version)
  .parse(process.argv);

cli.args[0] = path.resolve(cli.args[0] || 'api.raml');

ramllinter.lint(cli.args[0], function outputFn() {
  'use strict';

  var STATUS;

  if (ramllinter.results(cli.level).length === 0) {
    console.log(colors.green('\nLooking good; no error(s) found.'));
  } else {
    STATUS = {
      'error': colors.redBright,
      'info': colors.cyanBright,
      'warning': colors.magentaBright
    };

    ramllinter.results(cli.level)
      .forEach(function entryFormat(entry) {
        var output;

        output = '\n' +
          STATUS[entry.level](entry.level) + ' ' +
          entry.rule + '\n' +
          '  ' + colors.white(entry.message) +
          colors.blackBright(' [' + entry.code + ']') +
          (entry.hint ? colors.cyanBright('\nHINT:\n') + entry.hint : '');

        console.log(output);
      });
  }
});


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

namespace TestApp\Model\Table;

use Cake\ORM\Table;

/**
 * Tag table class
 */
class ArticlesTagsTable extends Table
{
    public function initialize(array $config): void
    {
        $this->belongsTo('Articles');
        $this->belongsTo('Tags');
    }
}


text:
package org.apache.tomcat.util.http;

import java.text.DateFormat;
import java.text.FieldPosition;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

import javax.servlet.http.Cookie;

/**
 * Support class for generating Set-Cookie header values.
 */
public class SetCookieSupport {
    // Other fields
    private static final String OLD_COOKIE_PATTERN = "EEE, dd-MMM-yyyy HH:mm:ss z";
    private static final ThreadLocal<DateFormat> OLD_COOKIE_FORMAT =
        new ThreadLocal<DateFormat>() {
        @Override
        protected DateFormat initialValue() {
            DateFormat df =
                new SimpleDateFormat(OLD_COOKIE_PATTERN, Locale.US);
            df.setTimeZone(TimeZone.getTimeZone("GMT"));
            return df;
        }
    };
    private static final String ancientDate;

    static {
        ancientDate = OLD_COOKIE_FORMAT.get().format(new Date(10000));
    }

    public static String generateHeader(Cookie cookie) {

        StringBuffer buf = new StringBuffer(); // can't use StringBuilder due to DateFormat

        // Servlet implementation checks name
        buf.append(cookie.getName());
        buf.append("=");
        // Servlet implementation does not check anything else

        /*
         * The spec allows some latitude on when to send the version attribute
         * with a Set-Cookie header. To be nice to clients, we'll make sure the
         * version attribute is first. That means checking the various things
         * that can cause us to switch to a v1 cookie first.
         *
         * Note that by checking for tokens we will also throw an exception if a
         * control character is encountered.
         */

        String value = cookie.getValue();
        String path = cookie.getPath();
        String domain = cookie.getDomain();
        String comment = cookie.getComment();

        // Start by using the version we were asked for
        int newVersion = cookie.getVersion();

        // If it is v0, check if we need to switch
        if (newVersion == 0 &&
                (!CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 &&
                 isHttpToken(value) ||
                 CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 &&
                 isV0Token(value))) {
            // HTTP token in value - need to use v1
            newVersion = 1;
        }

        if (newVersion == 0 && comment != null) {
            // Using a comment makes it a v1 cookie
           newVersion = 1;
        }

        if (newVersion == 0 &&
                (!CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 &&
                 isHttpToken(path) ||
                 CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 &&
                 isV0Token(path))) {
            // HTTP token in path - need to use v1
            newVersion = 1;
        }

        if (newVersion == 0 &&
                (!CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 &&
                 isHttpToken(domain) ||
                 CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 &&
                 isV0Token(domain))) {
            // HTTP token in domain - need to use v1
            newVersion = 1;
        }

        // Now build the cookie header
        // Value
        maybeQuote(buf, value);
        // Add version 1 specific information
        if (newVersion == 1) {
            // Version=1 ... required
            buf.append ("; Version=1");

            // Comment=comment
            if ( comment!=null ) {
                buf.append ("; Comment=");
                maybeQuote(buf, comment);
            }
        }

        // Add domain information, if present
        if (domain!=null) {
            buf.append("; Domain=");
            maybeQuote(buf, domain);
        }

        // Max-Age=secs ... or use old "Expires" format
        int maxAge = cookie.getMaxAge();
        if (maxAge >= 0) {
            if (newVersion > 0) {
                buf.append ("; Max-Age=");
                buf.append (maxAge);
            }
            // IE6, IE7 and possibly other browsers don't understand Max-Age.
            // They do understand Expires, even with V1 cookies!
            if (newVersion == 0 || CookieSupport.ALWAYS_ADD_EXPIRES) {
                // Wdy, DD-Mon-YY HH:MM:SS GMT ( Expires Netscape format )
                buf.append ("; Expires=");
                // To expire immediately we need to set the time in past
                if (maxAge == 0) {
                    buf.append( ancientDate );
                } else {
                    OLD_COOKIE_FORMAT.get().format(
                            new Date(System.currentTimeMillis() + maxAge * 1000L),
                            buf,
                            new FieldPosition(0));
                }
            }
        }

        // Path=path
        if (path!=null) {
            buf.append ("; Path=");
            maybeQuote(buf, path);
        }

        // Secure
        if (cookie.getSecure()) {
          buf.append ("; Secure");
        }

        // HttpOnly
        if (cookie.isHttpOnly()) {
            buf.append("; HttpOnly");
        }
        return buf.toString();
    }

    /**
     * Quotes values if required.
     * @param buf
     * @param value
     */
    private static void maybeQuote (StringBuffer buf, String value) {
        if (value==null || value.length()==0) {
            buf.append("\"\"");
        } else if (alreadyQuoted(value)) {
            buf.append('"');
            buf.append(escapeDoubleQuotes(value,1,value.length()-1));
            buf.append('"');
        } else if (isHttpToken(value) &&
                !CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0 ||
                isV0Token(value) &&
                CookieSupport.ALLOW_HTTP_SEPARATORS_IN_V0) {
            buf.append('"');
            buf.append(escapeDoubleQuotes(value,0,value.length()));
            buf.append('"');
        } else {
            buf.append(value);
        }
    }

    /**
     * Escapes any double quotes in the given string.
     *
     * @param s the input string
     * @param beginIndex start index inclusive
     * @param endIndex exclusive
     * @return The (possibly) escaped string
     */
    private static String escapeDoubleQuotes(String s, int beginIndex, int endIndex) {

        if (s == null || s.length() == 0 || s.indexOf('"') == -1) {
            return s;
        }

        StringBuffer b = new StringBuffer();
        for (int i = beginIndex; i < endIndex; i++) {
            char c = s.charAt(i);
            if (c == '\\' ) {
                b.append(c);
                //ignore the character after an escape, just append it
                if (++i>=endIndex) {
                    throw new IllegalArgumentException("Invalid escape character in cookie value.");
                }
                b.append(s.charAt(i));
            } else if (c == '"') {
                b.append('\\').append('"');
            } else {
                b.append(c);
            }
        }

        return b.toString();
    }

    private static boolean isV0Token(String value) {
        if( value==null) {
            return false;
        }

        int i = 0;
        int len = value.length();

        if (alreadyQuoted(value)) {
            i++;
            len--;
        }

        for (; i < len; i++) {
            char c = value.charAt(i);

            if (CookieSupport.isV0Separator(c)) {
                return true;
            }
        }
        return false;
    }

    private static boolean isHttpToken(String value) {
        if( value==null) {
            return false;
        }

        int i = 0;
        int len = value.length();

        if (alreadyQuoted(value)) {
            i++;
            len--;
        }

        for (; i < len; i++) {
            char c = value.charAt(i);

            if (CookieSupport.isHttpSeparator(c)) {
                return true;
            }
        }
        return false;
    }

    private static boolean alreadyQuoted (String value) {
        if (value==null || value.length() < 2) {
            return false;
        }
        return (value.charAt(0)=='\"' && value.charAt(value.length()-1)=='\"');
    }
}


text:
  <link rel="stylesheet" href="maven-theme.css">
  <title>AppSecInc. MSI Extensions</title>

Main Page

Related Pages

Namespaces

Classes

Files

Class List

Class Hierarchy

Class Members

Wix

Extensions

DataSource

ODBCExecuteFile

Wix::Extensions::DataSource::ODBCExecuteFile Member List

This is the complete list of members for Wix::Extensions::DataSource::ODBCExecuteFile, including all inherited members.

BasePath	Wix::Extensions::DataSource::ODBCExecuteFile

ConnectionId	Wix::Extensions::DataSource::ODBCExecuteFile

Delimiter	Wix::Extensions::DataSource::ODBCExecuteFile

EvaluateProperties	Wix::Extensions::DataSource::ODBCExecuteFile

ExecuteOnInstall	Wix::Extensions::DataSource::ODBCExecuteFile

ExecuteOnUnInstall	Wix::Extensions::DataSource::ODBCExecuteFile

Filename	Wix::Extensions::DataSource::ODBCExecuteFile

Id	Wix::Extensions::DataSource::ODBCExecuteFile

OutputFilename	Wix::Extensions::DataSource::ODBCExecuteFile

Type	Wix::Extensions::DataSource::ODBCExecuteFile

XsltFilename	Wix::Extensions::DataSource::ODBCExecuteFile

     © Application Security Inc. - All Rights Reserved

     http://msiext.codeplex.com

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


text:
package realmrelay.packets.server;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import realmrelay.data.Entity;
import realmrelay.data.Tile;
import realmrelay.packets.Packet;

public class UpdatePacket extends Packet {

	public Tile[] tiles = new Tile[0];
	public Entity[] newObjs = new Entity[0];
	public int[] drops = new int[0];

	@Override
	public void parseFromInput(DataInput in) throws IOException {
		this.tiles = new Tile[in.readShort()];
		for (int i = 0; i < this.tiles.length; i++) {
			Tile tile = new Tile();
			tile.parseFromInput(in);
			this.tiles[i] = tile;
		}
		this.newObjs = new Entity[in.readShort()];
		for (int i = 0; i < this.newObjs.length; i++) {
			Entity Entity = new Entity();
			Entity.parseFromInput(in);
			this.newObjs[i] = Entity;
		}
		this.drops = new int[in.readShort()];
		for (int i = 0; i < this.drops.length; i++) {
			this.drops[i] = in.readInt();
		}
	}

	@Override
	public void writeToOutput(DataOutput out) throws IOException {
		out.writeShort(this.tiles.length);
		for (Tile tile: this.tiles) {
			tile.writeToOutput(out);
		}
		out.writeShort(this.newObjs.length);
		for (Entity obj: this.newObjs) {
			obj.writeToOutput(out);
		}
		out.writeShort(this.drops.length);
		for (int drop: this.drops) {
			out.writeInt(drop);
		}
	}

}


text:
require 'spec_helper'

RSpec.describe Oneview::Api::Emails do
  describe "creating" do
    let(:email_params) { { from: "from@email.com", to: "to@email.com", body: "body", subject: "subject", schedule: "14/05/2014 15:30", access_token: "abc" } }
    let(:header) { { "Content-Type" => "application/json", "Accept" => "application/json" } }

    before(:each) do
      @email = Oneview::Entity::Email.new
      @email.from = "from@email.com"
      @email.to = "to@email.com"
      @email.body = "body"
      @email.subject = "subject"
      @email.schedule = "14/05/2014 15:30"

      stub_request(:post, "https://oneview.com.br/api/senders/send_email/").to_return(status: 200)
    end

    describe "with raw parameters" do
      it "issues a post to the send email url" do
        expect(Oneview::Api::Emails).to receive(:post).with("/", body: email_params.to_json, headers: header).and_call_original

        Oneview.new("abc").emails.create(email_params)
      end
    end

    describe "with entity parameter" do
      it "issues a post to the send email url" do
        expect(Oneview::Api::Emails).to receive(:post).with("/", body: @email.as_parameter.merge(access_token: "abc").to_json, headers: header).and_call_original

        Oneview.new("abc").emails.create(@email)
      end
    end

    describe "with invalid parameter" do
      it "raises ArgumentError when passing neither a Hash nor an Email" do
        expect { Oneview.new("abc").emails.create(Array.new) }.to raise_error(ArgumentError)
      end
    end
  end
end


text:
using System;
using NUnit.Framework;
using strange.extensions.injector.api;
using strange.extensions.injector.impl;
using strange.framework.api;
using strange.framework.impl;

namespace strange.unittests
{
	[TestFixture]
	public class TestInjector
	{
		IInjectionBinder binder;

		[SetUp]
		public void SetUp()
		{
			binder = new InjectionBinder ();
		}

		[Test]
		public void TestTaggedConstructor ()
		{
			binder.Bind<ClassWithConstructorParameters> ().To<ClassWithConstructorParameters> ();
			binder.Bind<int> ().ToValue (42);
			binder.Bind<string> ().ToValue ("Liberator");
			ClassWithConstructorParameters instance =
				binder.GetInstance<ClassWithConstructorParameters> () as ClassWithConstructorParameters;
			Assert.IsNotNull (instance);
			Assert.AreEqual (42, instance.intValue);
			Assert.AreEqual ("Liberator", instance.stringValue);
		}

		[Test]
		public void TestForcedParameterConstruction ()
		{
			binder.Bind<ClassWithConstructorParametersOnlyOneConstructor> ().To<ClassWithConstructorParametersOnlyOneConstructor> ();
			binder.Bind<string> ().ToValue ("Zaphod");
			ClassWithConstructorParametersOnlyOneConstructor instance =
				binder.GetInstance<ClassWithConstructorParametersOnlyOneConstructor> () as ClassWithConstructorParametersOnlyOneConstructor;
			Assert.IsNotNull (instance);
			Assert.That (instance.stringVal == "Zaphod");
		}

		[Test]
		public void TestPostConstruct ()
		{
			binder.Bind<PostConstructClass> ().To<PostConstructClass> ();
			binder.Bind<float> ().ToValue ((float)Math.PI);
			PostConstructClass instance = binder.GetInstance<PostConstructClass> () as PostConstructClass;
			Assert.IsNotNull (instance);
			Assert.That (instance.floatVal == (float)Math.PI * 2f);
		}

		//RE: Issue #23. A value-mapped object must never attempt to re-instantiate
		[Test]
		public void TestValueMappingWithConstructorArguments()
		{
			string stringVal = "Ender Wiggin";
			ClassWithConstructorParametersOnlyOneConstructor instance = new ClassWithConstructorParametersOnlyOneConstructor (stringVal);
			binder.Bind<ClassWithConstructorParametersOnlyOneConstructor> ().ToValue (instance);
			//If this class attempts to construct, with no string mapped, there'll be an error
			ClassWithConstructorParametersOnlyOneConstructor instance2 = binder.GetInstance<ClassWithConstructorParametersOnlyOneConstructor> () as ClassWithConstructorParametersOnlyOneConstructor;
			Assert.AreSame (instance, instance2);
			Assert.AreEqual (stringVal, instance2.stringVal);
		}

		[Test]
		public void TestMultiplePostConstructs ()
		{
			binder.Bind<PostConstructTwo> ().To<PostConstructTwo> ();
			binder.Bind<float> ().ToValue ((float)Math.PI);
			PostConstructTwo instance = binder.GetInstance<PostConstructTwo> () as PostConstructTwo;
			Assert.IsNotNull (instance);
			Assert.That (instance.floatVal == (float)Math.PI * 4f);
		}

		[Test]
		public void TestPostConstructOrdering()
		{
			binder.Bind<PostConstructSeveralOrdered> ().To<PostConstructSeveralOrdered> ();
			PostConstructSeveralOrdered instance = binder.GetInstance<PostConstructSeveralOrdered> () as PostConstructSeveralOrdered;
			Assert.IsNotNull (instance);
			//Post-Constructs are ordered to spell this word
			Assert.AreEqual ("ZAPHOD", instance.stringVal);
		}

		[Test]
		public void TestNamedInstances ()
		{
			InjectableSuperClass testValue = new InjectableSuperClass ();
			float defaultFloatValue = testValue.floatValue;
			testValue.floatValue = 3.14f;

			binder.Bind<int> ().ToValue (20);
			binder.Bind<InjectableSuperClass> ().ToSingleton().ToName (SomeEnum.ONE);
			binder.Bind<InjectableSuperClass> ().ToName<MarkerClass> ().ToValue(testValue);
			binder.Bind<HasNamedInjections> ().To<HasNamedInjections> ();
			HasNamedInjections instance = binder.GetInstance<HasNamedInjections> () as HasNamedInjections;
			Assert.IsNotNull (instance);
			Assert.IsNotNull (instance.injectionOne);
			Assert.IsNotNull (instance.injectionTwo);
			Assert.AreEqual (20, instance.injectionOne.intValue);
			Assert.AreEqual (20, instance.injectionTwo.intValue);
			Assert.That (instance.injectionOne.floatValue == defaultFloatValue);
			Assert.That (instance.injectionTwo.floatValue == 3.14f);
		}

		[Test]
		public void TestEmptyUntaggedConstructorNeverInvoked()
		{
			binder.Bind<int> ().ToValue (42);
			binder.Bind<string> ().ToValue ("Zaphod");
			binder.Bind<ISimpleInterface> ().To<SimpleInterfaceImplementer> ();
			binder.Bind<MultipleConstructorsOneThreeFour> ().ToSingleton ();

			TestDelegate testDelegate = delegate()
			{
				binder.GetInstance<MultipleConstructorsOneThreeFour>();
			};

			Assert.DoesNotThrow (testDelegate);
		}

		[Test]
		public void TestNamedFactories ()
		{
			binder.Bind<int> ().ToValue (20);
			binder.Bind<ISimpleInterface> ().To<SimpleInterfaceImplementer>().ToName (SomeEnum.ONE);
			binder.Bind<ISimpleInterface> ().To<SimpleInterfaceImplementerTwo>().ToName (SomeEnum.TWO);

			ISimpleInterface valueOneOne = binder.GetInstance<ISimpleInterface> (SomeEnum.ONE) as ISimpleInterface;
			ISimpleInterface valueOneTwo = binder.GetInstance<ISimpleInterface> (SomeEnum.ONE) as ISimpleInterface;

			ISimpleInterface valueTwoOne = binder.GetInstance<ISimpleInterface> (SomeEnum.TWO) as ISimpleInterface;
			ISimpleInterface valueTwoTwo = binder.GetInstance<ISimpleInterface> (SomeEnum.TWO) as ISimpleInterface;

			//Of course nothing should return null
			Assert.NotNull (valueOneOne);
			Assert.NotNull (valueOneTwo);
			Assert.NotNull (valueTwoOne);
			Assert.NotNull (valueTwoTwo);

			//All four instances should be unique.
			Assert.AreNotSame (valueOneOne, valueOneTwo);
			Assert.AreNotSame (valueOneTwo, valueTwoOne);
			Assert.AreNotSame (valueTwoOne, valueTwoTwo);
			Assert.AreNotSame (valueOneOne, valueTwoTwo);
			//First pair should be of type SimpleInterfaceImplementer.
			Assert.IsInstanceOf<SimpleInterfaceImplementer> (valueOneOne);
			Assert.IsInstanceOf<SimpleInterfaceImplementer> (valueOneTwo);
			//Second pair should be of type SimpleInterfaceImplementerTwo.
			Assert.IsInstanceOf<SimpleInterfaceImplementerTwo> (valueTwoOne);
			Assert.IsInstanceOf<SimpleInterfaceImplementerTwo> (valueTwoTwo);
		}

		[Test]
		public void TestCircularDependencies()
		{
			binder.Bind<CircularDependencyOne> ().To<CircularDependencyOne> ();
			binder.Bind<CircularDependencyTwo> ().To<CircularDependencyTwo> ();

			TestDelegate testDelegate = delegate()
			{
				binder.GetInstance<CircularDependencyOne>();
			};
			InjectionException ex = Assert.Throws<InjectionException>(testDelegate);
			Assert.That (ex.type == InjectionExceptionType.CIRCULAR_DEPENDENCY);
		}

		// ISSUE #45. This is a rather complex test which essentially validates that a Singleton is a Singleton,
		// whether it's injected via constructor injection or property injection.
		[Test]
		public void TestConstructorAndSetterSingletonsAreSame()
		{
			binder.Bind<IMapConfig>().ToValue(new MapConfig());
			binder.Bind<IMap>().To<Map>().ToSingleton();
			binder.Bind<IRenderer>().To<Renderer>().ToSingleton();
			binder.Bind<Phred> ().ToSingleton ();

			var m = binder.GetInstance<IMap>() as IMap;
			var m2 = binder.GetInstance<IMap>() as IMap;
			var r = binder.GetInstance<IRenderer>() as IRenderer;
			var p = binder.GetInstance<Phred>() as Phred;

			Assert.AreSame (m, p.map);
			Assert.AreSame (m, m2);
			Assert.AreSame (m, r.map);
		}
	}

	public interface IMapConfig
	{}

	public class MapConfig : IMapConfig
	{}

	public interface IMap
	{
	}

	public class Map : IMap
	{
		public Map(IMapConfig config)
		{
			Console.WriteLine("Test map " + GetHashCode());
		}
	}

	public interface IRenderer
	{
		IMap map {get;set;}
	}

	public class Renderer : IRenderer
	{
		public IMap map{get;set;}

		public Renderer(IMap map)
		{
			this.map = map;
		}
	}

	public class Phred
	{
		[Inject]
		public IMap map{get;set;}

		public Phred()
		{
		}
	}
}


text:
#ifndef N_RPXMLPARSER_H
#define N_RPXMLPARSER_H
//------------------------------------------------------------------------------
/**
    @class nRpXmlParser
    @ingroup Scene
    @brief Configure a nRenderPath2 object from an XML file.

    (C) 2004 RadonLabs GmbH
*/
#include "kernel/ntypes.h"
#include "mathlib/vector.h"
#include "variable/nvariable.h"
#include "gfx2/nshaderstate.h"
#include "util/nstring.h"
#include "util/narray.h"
#include <TinyXML2/Src/tinyxml2.h>

class nRenderPath2;
class nRpSection;
class nRpPass;
class nRpPhase;
class nRpSequence;

//------------------------------------------------------------------------------
class nRpXmlParser
{
public:
    /// constructor
    nRpXmlParser();
    /// destructor
    ~nRpXmlParser();
    /// set pointer to render path object to initialize
    void SetRenderPath(nRenderPath2* rp);
    /// get pointer to render path object
    nRenderPath2* GetRenderPath() const;
    /// open the XML document
    bool OpenXml();
    /// close the XML document
    void CloseXml();
    /// parse the XML data and initialize the render path object
    bool ParseXml();
    /// get the shader path, valid after OpenXml()
    const nString& GetShaderPath() const;

private:
    /// return true if XML attribute exists
    bool HasAttr(tinyxml2::XMLElement* elm, const char* name);
    /// get an integer attribute from an xml element
    int GetIntAttr(tinyxml2::XMLElement* elm, const char* name, int defaultValue);
    /// get a float attribute from an xml element
    float GetFloatAttr(tinyxml2::XMLElement* elm, const char* name, float defaultValue);
    /// get a vector4 attribute from an xml element
    vector4 GetVector4Attr(tinyxml2::XMLElement* elm, const char* name, const vector4& defaultValue);
    /// get a float4 attribute from an xml element
    nFloat4 GetFloat4Attr(tinyxml2::XMLElement* elm, const char* name, const nFloat4& defaultValue);
    /// get a bool attribute from an xml element
    bool GetBoolAttr(tinyxml2::XMLElement* elm, const char* name, bool defaultValue);
    /// parse a shader XML element
    void ParseShader(tinyxml2::XMLElement* elm, nRenderPath2* renderPath);
    ///
    void ParseShaders(tinyxml2::XMLElement* elm);
    /// parse RenderTarget XML element
    void ParseRenderTarget(tinyxml2::XMLElement* elm);
    /// create a variable from an XML element
    nVariable ParseVariable(nVariable::Type dataType, tinyxml2::XMLElement* elm);
    /// parse a global variable under RenderPath
    void ParseGlobalVariable(nVariable::Type dataType, tinyxml2::XMLElement* elm, nRenderPath2* renderPath);
    /// parse a Section XML element
    void ParseSection(tinyxml2::XMLElement* elm, nRenderPath2* renderPath);
    /// parse a Pass XML element
    void ParsePass(tinyxml2::XMLElement* elm, nRpSection* section);
    /// parse a shader state inside a pass
    void ParseShaderState(nShaderState::Type type, tinyxml2::XMLElement* elm, nRpPass* pass);
    /// parse a shader state inside a pass
    void ParseShaderState(nShaderState::Type type, tinyxml2::XMLElement* elm, nRpSequence* seq);
    /// parse a phase
    void ParsePhase(tinyxml2::XMLElement* elm, nRpPass* pass);
    /// parse a sequence
    void ParseSequence(tinyxml2::XMLElement* elm, nRpPhase* phase);

    tinyxml2::XMLDocument* xmlDocument;
    nRenderPath2* renderPath;
    nString shaderPath;
    nString mangledPath;
};

//------------------------------------------------------------------------------
/**
*/
inline
void
nRpXmlParser::SetRenderPath(nRenderPath2* rp)
{
    n_assert(rp);
    this->renderPath = rp;
}

//------------------------------------------------------------------------------
/**
*/
inline
nRenderPath2*
nRpXmlParser::GetRenderPath() const
{
    return this->renderPath;
}

//------------------------------------------------------------------------------
/**
*/
inline
bool
nRpXmlParser::HasAttr(tinyxml2::XMLElement* elm, const char* name)
{
    n_assert(elm && name);
    return (elm->Attribute(name) != 0);
}

//------------------------------------------------------------------------------
/**
*/
inline
int
nRpXmlParser::GetIntAttr(tinyxml2::XMLElement* elm, const char* name, int defaultValue)
{
    n_assert(elm && name);
    int value;
    int ret = elm->QueryIntAttribute(name, &value);
	if (tinyxml2::XML_SUCCESS == ret)
    {
        return value;
    }
    else
    {
        return defaultValue;
    }
}

//------------------------------------------------------------------------------
/**
*/
inline
float
nRpXmlParser::GetFloatAttr(tinyxml2::XMLElement* elm, const char* name, float defaultValue)
{
    n_assert(elm && name);
    double value;
    int ret = elm->QueryDoubleAttribute(name, &value);
    if (tinyxml2::XML_SUCCESS == ret)
    {
        return float(value);
    }
    else
    {
        return defaultValue;
    }
}

//------------------------------------------------------------------------------
/**
*/
inline
vector4
nRpXmlParser::GetVector4Attr(tinyxml2::XMLElement* elm, const char* name, const vector4& defaultValue)
{
    n_assert(elm && name);
    nString valStr = elm->Attribute(name);
    if (!valStr.IsEmpty())
    {
        nArray<nString> tokens;
        valStr.Tokenize(" ", tokens);
        vector4 value;
        value.x = tokens[0].AsFloat();
        value.y = tokens[1].AsFloat();
        value.z = tokens[2].AsFloat();
        value.w = tokens[3].AsFloat();
        return value;
    }
    else
    {
        return defaultValue;
    }
}

//------------------------------------------------------------------------------
/**
*/
inline
nFloat4
nRpXmlParser::GetFloat4Attr(tinyxml2::XMLElement* elm, const char* name, const nFloat4& defaultValue)
{
    n_assert(elm && name);
    nString valStr = elm->Attribute(name);
    if (!valStr.IsEmpty())
    {
        nArray<nString> tokens;
        valStr.Tokenize(" ", tokens);
        nFloat4 value;
        value.x = tokens[0].AsFloat();
        value.y = tokens[1].AsFloat();
        value.z = tokens[2].AsFloat();
        value.w = tokens[3].AsFloat();
        return value;
    }
    else
    {
        return defaultValue;
    }
}

//------------------------------------------------------------------------------
/**
*/
inline
bool
nRpXmlParser::GetBoolAttr(tinyxml2::XMLElement* elm, const char* name, bool defaultValue)
{
    n_assert(elm && name);
    nString valStr = elm->Attribute(name);
    if (!valStr.IsEmpty())
    {
        if ((valStr == "true") || (valStr == "True") ||
            (valStr == "on") || (valStr == "On") ||
            (valStr == "yes") || (valStr == "Yes"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }
    else
    {
        return defaultValue;
    }
}

//------------------------------------------------------------------------------
#endif


text:
<!DOCTYPE html>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>API Documentation » \Crawler\Export\GEXFExport</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">

API Documentation

                                    API Documentation

Namespaces

 Crawler

 siteResearch

Packages

 Default

 siteResearch

                                    Charts

 Class hierarchy diagram

                                    Reports

 Errors
                92

 Markers

 Deprecated elements
                0

Back to top

                            Javascript is disabled; several features are only available
                            if Javascript is enabled.

<button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button>

<button class="btn details" title="Show descriptions and method names"></button><button class="btn simple" title="Show only method names"></button>

 Methods

create csvexport object
__construct()

write gefx file
export()

» Private

generateData()

generateData()

get a listing of the crawler table
generateList()

setDB()

setDB()

csv file name
setFilename()

 Properties

» Protected

$db

$filename

$list

$output

\

Crawler

\Export

\GEXFExport

exports crawler table to gexf file
takes a filename as imput an exports the table to "output/filename.gexf"

 Methods

create csvexport object

__construct(string $filename, \Crawler\DB\DatabaseResultInterface $db)

Parameters

$filename

string

$db

write gefx file

export()

example
file
 <?xml version="1.0" encoding="UTF-8"?>
     <gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
         <graph mode="static" defaultedgetype="directed">
             <nodes>
                 <node id="0" label="Hello" />
                 <node id="1" label="Word" />
             </nodes>
             <edges>
                 <edge id="0" source="0" target="1" />
             </edges>
         </graph>
     </gexf>

Examples

generateData()

generateData()

get a listing of the crawler table

generateList()

setDB()

setDB($db)

Parameters

$db

csv file name

setFilename(string $name)

Parameters

$name

string

 Properties

holds crawerlresultdb object

$db : \Crawler\Export\CrawlerResultDB

Default

filename for csv file

$filename : string

Default

holds list containing content of crawler table

$list : array

Default

path to output direcotry

$output : string

Default

"Output/"

            Template is built using Twitter Bootstrap 2 and icons provided by Glyphicons.

            Documentation is powered by phpDocumentor 2.0.1
 and

            generated on 2014-06-11T22:40:14+02:00.


text:
package com.twitter.scrooge

import org.apache.thrift.transport.TTransport
import org.apache.thrift.TByteArrayOutputStream

object TReusableMemoryTransport {

  def apply(initialSize: Int = 512): TReusableMemoryTransport = {
    new TReusableMemoryTransport(new TUnboundedByteArrayOutputStream(initialSize))
  }

}

/**
 * A version of TMemoryTransport that allows for reuse in order to minimize
 * object allocations.
 */
class TReusableMemoryTransport(baos: TByteArrayOutputStream) extends TTransport {

  private[this] var readPos = 0

  /**
   * Resets both reads and writes.
   */
  def reset(): Unit = {
    baos.reset()
    readPos = 0
  }

  def numWrittenBytes: Int = baos.len()

  // Here for drop-in api compatibility with TMemoryBuffer
  def length(): Int = numWrittenBytes

  // Here for drop-in api compatibility with TMemoryBuffer
  def getArray(): Array[Byte] = baos.get()

  /**
   * Total bytes currently allowed in the struct.
   *
   * Note: more writes beyond this length will cause the struct to grow.
   */
  def currentCapacity: Int = baos.get().length

  override def isOpen: Boolean = true

  override def close(): Unit = {}

  override def open(): Unit = {}

  override def write(from: Array[Byte], off: Int, len: Int): Unit = {
    baos.write(from, off, len)
  }

  override def read(into: Array[Byte], off: Int, len: Int): Int = {
    val bytesToRead = if (len > baos.len() - readPos) {
      baos.len() - readPos
    } else {
      len
    }
    if (bytesToRead > 0) {
      System.arraycopy(baos.get(), readPos, into, off, bytesToRead)
      readPos += bytesToRead
    }
    bytesToRead
  }

}


text:
@implementation OrganizationResponse

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.results = [NSMutableDictionary dictionary];
    }

    return self;
}

- (id)objectForKeyedSubscript:(id <NSCopying>)key
{
    return [self.results valueForKey:(NSString *)key];
}

- (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key;
{
    [self.results setValue:obj forKey:(NSString *)key];
}

+ (instancetype)instanceWithObject:(NSObject *)obj
{
    NSArray *array = (NSArray *)obj;

    NSString *responseName = (NSString *)[SOAPMapper oneForKey:@"ResponseName" inArray:array];
    NSString *responseClassName = [NSString stringWithFormat:@"%@Response", responseName];

    OrganizationResponse *instance = (OrganizationResponse *)[[NSClassFromString(responseClassName) alloc] init];

    NSArray *results = (NSArray *)[SOAPMapper oneForKey:@"Results" inArray:array];
    if (results != nil) {
        [SOAPMapper forKey:@"KeyValuePairOfstringanyType" inArray:results with:^(NSObject *keyValuePair) {
            NSString *key = (NSString *)[SOAPMapper oneForKey:@"key" inArray:(NSArray *)keyValuePair];
            NSObject *value = [SOAPMapper oneForKey:@"value" inArray:(NSArray *)keyValuePair];

            NSArray *attributes = [SOAPMapper attributesForKey:@"value" inArray:(NSArray *)keyValuePair];
            NSString *type = (NSString *)[SOAPMapper oneForKey:@"type" inArray:attributes];

            if (value != nil && type != nil) {
                Class class = [SOAPMapper classForType:type];
                instance.results[key] = [class instanceWithObject:value];
            }
        }];
    }

    return instance;
}

@end


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

<title>F-Index</title>
<meta name="date" content="2017-12-04">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes

A B C D E F G H I L M N O P Q R S T U V W Z

F

failedLoginMainActivity() - Method in class h4bit.h4bit.LoginActivityEspressoTest

fcm_fallback_notification_channel_label - Static variable in class h4bit.h4bit.R.string

FeatureParam - Static variable in class h4bit.h4bit.R.styleable

Attributes that can be used with a FeatureParam.

FeatureParam_paramName - Static variable in class h4bit.h4bit.R.styleable

This symbol is the offset where the R.attr.paramName
 attribute's value can be found in the R.styleable.FeatureParam array.

FeatureParam_paramValue - Static variable in class h4bit.h4bit.R.styleable

This symbol is the offset where the R.attr.paramValue
 attribute's value can be found in the R.styleable.FeatureParam array.

featureType - Static variable in class h4bit.h4bit.R.attr

Must be one of the following constant values.

FLAVOR - Static variable in class h4bit.h4bit.BuildConfig

Follow - Class in h4bit.h4bit.Models

Follow class
 version 1.0
 2017-10-20.

Follow() - Constructor for class h4bit.h4bit.Models.Follow

follow - Static variable in class h4bit.h4bit.R.string

followButton - Static variable in class h4bit.h4bit.R.id

followerList - Static variable in class h4bit.h4bit.R.id

followerText - Static variable in class h4bit.h4bit.R.id

followingText - Static variable in class h4bit.h4bit.R.id

FollowTest - Class in h4bit.h4bit

Created by benhl on 2017-11-13.

FollowTest() - Constructor for class h4bit.h4bit.FollowTest

FollowUserDialog - Class in h4bit.h4bit.Views

FollowUserDialog
 Version 1.0
 November 1st 2017
 Copyright 2017 Team 32, CMPUT 301, University of Alberta - All Rights Reserved.

FollowUserDialog() - Constructor for class h4bit.h4bit.Views.FollowUserDialog

FollowUserDialog.OnCompleteListener - Interface in h4bit.h4bit.Views

followUsernameText - Static variable in class h4bit.h4bit.R.id

foreground_material_dark - Static variable in class h4bit.h4bit.R.color

foreground_material_light - Static variable in class h4bit.h4bit.R.color

fragmentMode - Static variable in class h4bit.h4bit.R.attr

Must be one of the following constant values.

fragmentStyle - Static variable in class h4bit.h4bit.R.attr

May be a reference to another resource, in the form
 "@[+][package:]type/name" or a theme
 attribute in the form
 "?[package:]type/name".

fri - Static variable in class h4bit.h4bit.R.string

fridaytoggle - Static variable in class h4bit.h4bit.R.id

A B C D E F G H I L M N O P Q R S T U V W Z

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes


text:
<!doctype html>

  <meta charset="UTF-8">
  <title>Scott The Nath</title>
  <meta name="viewport" content="initial-scale=1.0">
  <link rel="stylesheet" href="css/scott.css">

Scott Nath

About The Nath

Scott is a web developer and sometime actor living in Brooklyn.

The Webs

Scott has a bunch of sites he owns. They generally look terrible and use bad code. He has allowed us to list a couple anyway.

scottnath.com

triphere.net

howspotdoing.com

youchase.me

The Acts

Scott Nath had a HUGE career as an actor! You can check it out right here!

Scott Nath, what a fun guy!