text:
#ifndef __CCOBJECT_H__
#define __CCOBJECT_H__

#include "CCDataVisitor.h"
#include "ccMacros.h"
#include "CCConsole.h"

#ifdef EMSCRIPTEN
#include <GLES2/gl2.h>
#endif // EMSCRIPTEN

NS_CC_BEGIN

/**
 * @addtogroup base_nodes
 * @{
 */

class Object;
class Node;

/** Interface that defines how to clone an object */
class CC_DLL Clonable
{
public:
	/** returns a copy of the object */
    virtual Clonable* clone() const = 0;
    /**
     * @js NA
     * @lua NA
     */
	virtual ~Clonable() {};

    /** returns a copy of the object.
     @deprecated Use clone() instead
     */
    CC_DEPRECATED_ATTRIBUTE Object* copy() const
    {
        // use "clone" instead
        CC_ASSERT(false);
        return nullptr;
    }
};

class CC_DLL Object
{
public:
    /// object id, ScriptSupport need public _ID
    unsigned int _ID;
    /// Lua reference id
    int _luaID;
protected:
    /// count of references
    unsigned int _referenceCount;
public:
    /**
     * Constructor
     *
     * The object's reference count is 1 after construction.
     * @js NA
     */
    Object();

    /**
     * @js NA
     * @lua NA
     */
    virtual ~Object();

    /**
     * Release the ownership immediately.
     *
     * This decrements the object's reference count.
     *
     * If the reference count reaches 0 after the descrement, this object is
     * destructed.
     *
     * @see retain, autorelease
     * @js NA
     */
    void release();

    /**
     * Retains the ownership.
     *
     * This increases the object's reference count.
     *
     * @see release, autorelease
     * @js NA
     */
    inline void retain()
    {
        CCASSERT(_referenceCount > 0, "reference count should greater than 0");
        ++_referenceCount;
    }

    /**
     * Release the ownership sometime soon automatically.
     *
     * This descrements the object's reference count at the end of current
     * autorelease pool block.
     *
     * If the reference count reaches 0 after the descrement, this object is
     * destructed.
     *
     * @returns The object itself.
     *
     * @see AutoreleasePool, retain, release
     * @js NA
     * @lua NA
     */
    Object* autorelease();

    /**
     * Returns a boolean value that indicates whether there is only one
     * reference to the object. That is, whether the reference count is 1.
     *
     * @returns Whether the object's reference count is 1.
     * @js NA
     */
    CC_DEPRECATED_ATTRIBUTE bool isSingleReference() const;

    /**
     * Returns the object's current reference count.
     *
     * @returns The object's reference count.
     * @js NA
     */
    CC_DEPRECATED_ATTRIBUTE unsigned int retainCount() const { return getReferenceCount(); };
    unsigned int getReferenceCount() const;

    /**
     * Returns a boolean value that indicates whether this object and a given
     * object are equal.
     *
     * @param object    The object to be compared to this object.
     *
     * @returns True if this object and @p object are equal, otherwise false.
     * @js NA
     * @lua NA
     */
    virtual bool isEqual(const Object* object);
    /**
     * @js NA
     * @lua NA
     */
    virtual void acceptVisitor(DataVisitor &visitor);
    /**
     * @js NA
     * @lua NA
     */
    virtual void update(float dt) {CC_UNUSED_PARAM(dt);};

    friend class AutoreleasePool;
};

typedef void (Object::*SEL_SCHEDULE)(float);
typedef void (Object::*SEL_CallFunc)();
typedef void (Object::*SEL_CallFuncN)(Node*);
typedef void (Object::*SEL_CallFuncND)(Node*, void*);
typedef void (Object::*SEL_CallFuncO)(Object*);
typedef void (Object::*SEL_MenuHandler)(Object*);
typedef int (Object::*SEL_Compare)(Object*);

#define schedule_selector(_SELECTOR) static_cast<cocos2d::SEL_SCHEDULE>(&_SELECTOR)
#define callfunc_selector(_SELECTOR) static_cast<cocos2d::SEL_CallFunc>(&_SELECTOR)
#define callfuncN_selector(_SELECTOR) static_cast<cocos2d::SEL_CallFuncN>(&_SELECTOR)
#define callfuncND_selector(_SELECTOR) static_cast<cocos2d::SEL_CallFuncND>(&_SELECTOR)
#define callfuncO_selector(_SELECTOR) static_cast<cocos2d::SEL_CallFuncO>(&_SELECTOR)
#define menu_selector(_SELECTOR) static_cast<cocos2d::SEL_MenuHandler>(&_SELECTOR)
#define event_selector(_SELECTOR) static_cast<cocos2d::SEL_EventHandler>(&_SELECTOR)
#define compare_selector(_SELECTOR) static_cast<cocos2d::SEL_Compare>(&_SELECTOR)

// new callbacks based on C++11
#define CC_CALLBACK_0(__selector__,__target__, ...) std::bind(&__selector__,__target__, ##__VA_ARGS__)
#define CC_CALLBACK_1(__selector__,__target__, ...) std::bind(&__selector__,__target__, std::placeholders::_1, ##__VA_ARGS__)
#define CC_CALLBACK_2(__selector__,__target__, ...) std::bind(&__selector__,__target__, std::placeholders::_1, std::placeholders::_2, ##__VA_ARGS__)
#define CC_CALLBACK_3(__selector__,__target__, ...) std::bind(&__selector__,__target__, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3 ##__VA_ARGS__)

// end of base_nodes group
/// @}

NS_CC_END

#endif // __CCOBJECT_H__


text:
package eu.andymel.timecollector.performancetests;

import java.time.Instant;
import java.util.ArrayList;
import java.util.List;

import eu.andymel.timecollector.graphs.GraphNode;
import eu.andymel.timecollector.graphs.NodePermissions;
import eu.andymel.timecollector.graphs.PermissionNode;

public class PerformanceTestContains {

	private enum e {a}

	public static void main(String[] args) {

		int amount = 50_000;

		// fill a list and an array
		List<GraphNode<e, NodePermissions>> list = new ArrayList<>(amount);
		for(int i=0;i <amount; i++){
			list.add(PermissionNode.create(e.a, NodePermissions.NO_CHECKS));
		}
		GraphNode<?,?>[] array = list.toArray(new PermissionNode[amount]);

		// ask for every added PermissionNode if it's contained in the list
		Instant start = Instant.now();
		for(int i=0; i<amount; i++){
			if(!list.contains(array[i]))throw new RuntimeException("wtf?");
		}
		PerformanceTestsUtils.end("list.contains", amount, start);

		// ask for every added PermissionNode if it's contained in the array
		start = Instant.now();
		for(int i=0; i<amount; i++){
			// classic way of searching p in an array
			for(int x=0; x<amount; x++){
				if(array[x] == array[i])break;
				if(x==amount-1)throw new RuntimeException("wtf?");
			}
		}
		PerformanceTestsUtils.end("array.contains", amount, start);

	}

}

redpajama_set_name: RedPajamaGithub


text:
from sklearn.feature_extraction import DictVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2

class Relationship():
    def __init__(self, training_dict, training_label):
        self.training_dict = training_dict
        #self.test_dict = test_dict
        self.training_label = training_label
        self.clf = MultinomialNB()
        self.vectorizer = DictVectorizer()
        self.tfidf_transformer = TfidfTransformer()

    def train_data(self):

        training_data = self.vectorizer.fit_transform(self.training_dict)
        train_tfidf = self.tfidf_transformer.fit_transform(training_data)

        #clf = MultinomialNB()
        self.clf.fit(train_tfidf,self.training_label)

    def predict_data(self,test_dict):
        test_data = self.vectorizer.transform(test_dict)
        test_tfidf = self.tfidf_transformer.transform(test_data)

        predictions = self.clf.predict(test_data)
        return predictions


text:
<!DOCTYPE html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>ScreenTime</title>

	<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
	<link href="css/st.css" rel="stylesheet">

[control panel]

[loading screenshots]

					<button type="button" class="btn btn-default prev">

					</button>
					<button type="button" class="btn btn-default next">

					</button>

				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>


text:
'use strict';

var gulp = require('gulp'),
    sass = require('gulp-sass'),
    concat = require('gulp-concat'),
    autoprefixer = require('gulp-autoprefixer'),
    uglify = require('gulp-uglify');

var config = {
    path: './src/assets/'
};

gulp.task('scripts', function () {
    return gulp.src(config.path + 'jquery.fileloader.js')
        .pipe(uglify())
        .pipe(concat('jquery.fileloader.min.js'))
        .pipe(gulp.dest(config.path));
});

gulp.task('styles', function () {
    return gulp.src(config.path + '/fileloader.scss')
        .pipe(sass())
        .pipe(autoprefixer())
        .pipe(concat('fileloader.css'))
        .pipe(gulp.dest(config.path))
        .pipe(sass({
            errLogToConsole: true,
            outputStyle: 'compressed'
        }))
        .pipe(autoprefixer())
        .pipe(concat('fileloader.min.css'))
        .pipe(gulp.dest(config.path));
});

gulp.task('default', ['scripts', 'styles']);


text:
echo "Content-type: text/html"
echo ""

echo "<TITLE>Last 150 lines of CP log</TITLE>"
echo ""
echo "
"
echo "
"
date
sudo -n tail -150 /opt/osdp-conformance/run/CP/osdp.log
echo ""


text:
package it.uniroma3.dia.alfred.mpi.model.serializer;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import it.uniroma3.dia.alfred.mpi.model.XPathHolder;

import java.util.List;
import java.util.Random;
import java.util.UUID;

import org.junit.Before;
import org.junit.Test;

import com.google.common.collect.Lists;

public class XPathHolderSerializableTest {
	private static final int MAX_VALUES = 100;
	private Random randomGen;
	private XPathHolder xPathData;

	@Before
	public void setUp() throws Exception {
		randomGen = new Random(System.nanoTime());
		xPathData = new XPathHolder();

		List<String> attributes;
		List<String> xpaths;

		attributes = randomStringList(randomGen.nextInt(MAX_VALUES));
		for(String currAttr: attributes) {
			xpaths = randomStringList(randomGen.nextInt(MAX_VALUES));
			for(String currXpath: xpaths) {
				xPathData.addXpathToAttr(currAttr, currXpath);
			}
		}
	}

	@Test
	public void checkIfSerializedIsNotNull() {
		assertNotNull(XPathHolderSerializable.toJson(xPathData));
	}

	@Test
	public void checkIfSerializedIsNotEmpty() {
		assertTrue(XPathHolderSerializable.toJson(xPathData).length() > 0);
	}

	@Test
	public void checkIfDeserializedIsNotNull() {
		assertNotNull( XPathHolderSerializable.fromJson(XPathHolderSerializable.toJson(xPathData)) );
	}

	@Test
	public void checkIfDeserializedIsSame() {
		assertEquals(xPathData, XPathHolderSerializable.fromJson(XPathHolderSerializable.toJson(xPathData)) );
	}

	private static List<String> randomStringList(int qty) {
		List<String> lstOutput = Lists.newArrayList();

		for (int i = 0; i < qty; ++i) {
			lstOutput.add(UUID.randomUUID().toString());
		}

		return lstOutput;
	}
}


text:
<?php
/**
 * Created by PhpStorm.
 * User: C3-TKO <thomas.kolar@email.de>
 * Date: 18.03.15
 * Time: 21:32
 */

namespace AppBundle\Services\MatchScheduling;

use AppBundle\Entity\Game;
use Doctrine\Common\Collections\ArrayCollection;

class ScheduleSerializer {

    /**
     * Serializes a schedule into a json string
     *
     * @param ArrayCollection $schedule
     * @return string
     */
    public function serialize(ArrayCollection $schedule) {
        $games                  = $schedule->getValues();
        $serializedSchedule     = array();
        foreach($games as $game) {
            /**
             * @var $game Game
             */
            $serializedSchedule[] = array(
                                        'id'            => $game->getId(),
                                        'id_round'      => $game->getIdRound(),
                                        'id_team_a'     => $game->getTeamA()->getId(),
                                        'id_team_b'     => $game->getTeamB()->getId(),
                                        'team_a_score'  => $game->getTeamAScore(),
                                        'team_b_score'  => $game->getTeamBScore()
                                    );
        }

        return json_encode($serializedSchedule);
    }
}


text:
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import moment from 'moment'

// Import translations
import en from './en'
import fr from './fr'

Vue.use(VueI18n)

export function getBrowserLocales () {
    let langs = []

    if (navigator.languages) {
        // Chrome does not currently set navigator.language correctly
        // https://code.google.com/p/chromium/issues/detail?id=101138
        // but it does set the first element of navigator.languages correctly
        langs = navigator.languages
    } else if (navigator.userLanguage) {
        // IE only
        langs = [navigator.userLanguage]
    } else {
        // as of this writing the latest version of firefox + safari set this correctly
        langs = [navigator.language]
    }

    // Some browsers does not return uppercase for second part
    const locales = langs.map(function (lang) {
        const locale = lang.split('-')
        return locale[1] ? `${locale[0]}-${locale[1].toUpperCase()}` : lang
    })

    return locales
}

const messages = {
    'en': en,
    'fr': fr
}

const locales = getBrowserLocales()

var locale = 'en'  // Safe default
// Get best matching locale
for (var i = 0; i < locales.length; ++i) {
    if (messages[locales[i]]) {
        locale = locales[i]
        break  // Break at first matching locale
    }
}

// Set the locale for Moment.js
moment.locale(locale)

export default new VueI18n({
    locale: locale,
    messages
})


text:
import decimal

import pytest
from dask.dataframe.utils import tm  # noqa: E402
from pandas import Timestamp
from pytest import param

import ibis
import ibis.expr.datatypes as dt  # noqa: E402

from ...execution import execute

@pytest.mark.parametrize('from_', ['plain_float64', 'plain_int64'])
@pytest.mark.parametrize(
    ('to', 'expected'),
    [
        ('float16', 'float16'),
        ('float32', 'float32'),
        ('float64', 'float64'),
        ('double', 'float64'),
        ('float', 'float32'),
        ('int8', 'int8'),
        ('int16', 'int16'),
        ('int32', 'int32'),
        ('int64', 'int64'),
        ('string', 'object'),
    ],
)
def test_cast_numeric(t, df, from_, to, expected):
    c = t[from_].cast(to)
    result = c.execute()
    assert str(result.dtype) == expected

@pytest.mark.parametrize('from_', ['float64_as_strings', 'int64_as_strings'])
@pytest.mark.parametrize(
    ('to', 'expected'), [('double', 'float64'), ('string', 'object')]
)
def test_cast_string(t, df, from_, to, expected):
    c = t[from_].cast(to)
    result = c.execute()
    assert str(result.dtype) == expected

@pytest.mark.parametrize(
    ('to', 'expected'),
    [
        ('string', 'object'),
        ('int64', 'int64'),
        param('double', 'float64', marks=pytest.mark.xfail(raises=TypeError)),
        (
            dt.Timestamp('America/Los_Angeles'),
            'datetime64[ns, America/Los_Angeles]',
        ),
        (
            "timestamp('America/Los_Angeles')",
            'datetime64[ns, America/Los_Angeles]',
        ),
    ],
)
@pytest.mark.parametrize(
    'column',
    ['plain_datetimes_naive', 'plain_datetimes_ny', 'plain_datetimes_utc'],
)
def test_cast_timestamp_column(t, df, column, to, expected):
    c = t[column].cast(to)
    result = c.execute()
    assert str(result.dtype) == expected

@pytest.mark.parametrize(
    ('to', 'expected'),
    [
        ('string', str),
        ('int64', lambda x: x.value),
        param(
            'double',
            float,
            marks=pytest.mark.xfail(raises=NotImplementedError),
        ),
        (
            dt.Timestamp('America/Los_Angeles'),
            lambda x: x.tz_localize('America/Los_Angeles'),
        ),
    ],
)
def test_cast_timestamp_scalar_naive(to, expected):
    literal_expr = ibis.literal(Timestamp('now'))
    value = literal_expr.cast(to)
    result = execute(value)
    raw = execute(literal_expr)
    assert result == expected(raw)

@pytest.mark.parametrize(
    ('to', 'expected'),
    [
        ('string', str),
        ('int64', lambda x: x.value),
        param(
            'double',
            float,
            marks=pytest.mark.xfail(raises=NotImplementedError),
        ),
        (
            dt.Timestamp('America/Los_Angeles'),
            lambda x: x.tz_convert('America/Los_Angeles'),
        ),
    ],
)
@pytest.mark.parametrize('tz', ['UTC', 'America/New_York'])
def test_cast_timestamp_scalar(to, expected, tz):
    literal_expr = ibis.literal(Timestamp('now').tz_localize(tz))
    value = literal_expr.cast(to)
    result = execute(value)
    raw = execute(literal_expr)
    assert result == expected(raw)

def test_timestamp_with_timezone_is_inferred_correctly(t, df):
    assert t.plain_datetimes_naive.type().equals(dt.timestamp)
    assert t.plain_datetimes_ny.type().equals(dt.Timestamp('America/New_York'))
    assert t.plain_datetimes_utc.type().equals(dt.Timestamp('UTC'))

@pytest.mark.parametrize(
    'column',
    ['plain_datetimes_naive', 'plain_datetimes_ny', 'plain_datetimes_utc'],
)
def test_cast_date(t, df, column):
    expr = t[column].cast('date')
    result = expr.compile()
    expected = df[column].dt.normalize()
    tm.assert_series_equal(result.compute(), expected.compute())

@pytest.mark.parametrize('type', [dt.Decimal(9, 0), dt.Decimal(12, 3)])
def test_cast_to_decimal(t, df, type):
    expr = t.float64_as_strings.cast(type)
    result = expr.compile()
    context = decimal.Context(prec=type.precision)
    expected = df.float64_as_strings.apply(
        lambda x: context.create_decimal(x).quantize(
            decimal.Decimal(
                '{}.{}'.format(
                    '0' * (type.precision - type.scale), '0' * type.scale
                )
            )
        ),
        meta=("float64_as_strings", "object"),
    )
    tm.assert_series_equal(result.compute(), expected.compute())
    assert all(
        abs(element.as_tuple().exponent) == type.scale
        for element in result.compute().values
    )
    assert all(
        1 <= len(element.as_tuple().digits) <= type.precision
        for element in result.compute().values
    )

@pytest.mark.parametrize(
    'column',
    ['plain_int64', 'dup_strings', 'dup_ints', 'strings_with_nulls'],
)
def test_cast_to_category(t, df, column):
    test = t[column].cast('category').compile()
    tm.assert_series_equal(
        test.compute(), df[column].astype('category').compute()
    )


text:
/** @file cmdline.h
 *  @brief The header file for the command line option parser
 *  generated by GNU Gengetopt version 2.23
 *  http://www.gnu.org/software/gengetopt.
 *  DO NOT modify this file, since it can be overwritten
 *  @author GNU Gengetopt */

#ifndef CMDLINE_H
#define CMDLINE_H

/* If we use autoconf.  */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdio.h> /* for FILE */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#ifndef CMDLINE_PARSER_PACKAGE
/** @brief the program name (used for printing errors) */
#define CMDLINE_PARSER_PACKAGE "mcperf"
#endif

#ifndef CMDLINE_PARSER_PACKAGE_NAME
/** @brief the complete program name (used for help and version) */
#define CMDLINE_PARSER_PACKAGE_NAME "mcperf"
#endif

#ifndef CMDLINE_PARSER_VERSION
/** @brief the program version */
#define CMDLINE_PARSER_VERSION "0.4"
#endif

/** @brief Where the command line options are stored */
struct gengetopt_args_info
{
  const char *help_help; /**< @brief Print help and exit help description.  */
  const char *version_help; /**< @brief Print version and exit help description.  */
  unsigned int verbose_min; /**< @brief Verbosity. Repeat for more verbose.'s minimum occurreces */
  unsigned int verbose_max; /**< @brief Verbosity. Repeat for more verbose.'s maximum occurreces */
  const char *verbose_help; /**< @brief Verbosity. Repeat for more verbose. help description.  */
  const char *quiet_help; /**< @brief Disable log messages. help description.  */
  char ** server_arg;	/**< @brief Memcached server hostname[:port[-end_port]].  Repeat to specify multiple servers. .  */
  char ** server_orig;	/**< @brief Memcached server hostname[:port[-end_port]].  Repeat to specify multiple servers.  original value given at command line.  */
  unsigned int server_min; /**< @brief Memcached server hostname[:port[-end_port]].  Repeat to specify multiple servers. 's minimum occurreces */
  unsigned int server_max; /**< @brief Memcached server hostname[:port[-end_port]].  Repeat to specify multiple servers. 's maximum occurreces */
  const char *server_help; /**< @brief Memcached server hostname[:port[-end_port]].  Repeat to specify multiple servers.  help description.  */
  const char *binary_help; /**< @brief Use binary memcached protocol instead of ASCII. help description.  */
  int qps_arg;	/**< @brief Target aggregate QPS. 0 = peak QPS. (default='0').  */
  char * qps_orig;	/**< @brief Target aggregate QPS. 0 = peak QPS. original value given at command line.  */
  const char *qps_help; /**< @brief Target aggregate QPS. 0 = peak QPS. help description.  */
  int time_arg;	/**< @brief Maximum time to run (seconds). (default='5').  */
  char * time_orig;	/**< @brief Maximum time to run (seconds). original value given at command line.  */
  const char *time_help; /**< @brief Maximum time to run (seconds). help description.  */
  int profile_arg;	/**< @brief Select one of several predefined profiles..  */
  char * profile_orig;	/**< @brief Select one of several predefined profiles. original value given at command line.  */
  const char *profile_help; /**< @brief Select one of several predefined profiles. help description.  */
  char * keysize_arg;	/**< @brief Length of memcached keys (distribution). (default='30').  */
  char * keysize_orig;	/**< @brief Length of memcached keys (distribution). original value given at command line.  */
  const char *keysize_help; /**< @brief Length of memcached keys (distribution). help description.  */
  char * keyorder_arg;	/**< @brief Selection of memcached keys to use (distribution). (default='none').  */
  char * keyorder_orig;	/**< @brief Selection of memcached keys to use (distribution). original value given at command line.  */
  const char *keyorder_help; /**< @brief Selection of memcached keys to use (distribution). help description.  */
  char * valuesize_arg;	/**< @brief Length of memcached values (distribution). (default='200').  */
  char * valuesize_orig;	/**< @brief Length of memcached values (distribution). original value given at command line.  */
  const char *valuesize_help; /**< @brief Length of memcached values (distribution). help description.  */
  int records_arg;	/**< @brief Number of memcached records to use.  If multiple memcached servers are given, this number is divided by the number of servers. (default='10000').  */
  char * records_orig;	/**< @brief Number of memcached records to use.  If multiple memcached servers are given, this number is divided by the number of servers. original value given at command line.  */
  const char *records_help; /**< @brief Number of memcached records to use.  If multiple memcached servers are given, this number is divided by the number of servers. help description.  */
  float update_arg;	/**< @brief Ratio of set:get commands. (default='0.0').  */
  char * update_orig;	/**< @brief Ratio of set:get commands. original value given at command line.  */
  const char *update_help; /**< @brief Ratio of set:get commands. help description.  */
  char * username_arg;	/**< @brief Username to use for SASL authentication..  */
  char * username_orig;	/**< @brief Username to use for SASL authentication. original value given at command line.  */
  const char *username_help; /**< @brief Username to use for SASL authentication. help description.  */
  char * password_arg;	/**< @brief Password to use for SASL authentication..  */
  char * password_orig;	/**< @brief Password to use for SASL authentication. original value given at command line.  */
  const char *password_help; /**< @brief Password to use for SASL authentication. help description.  */
  int threads_arg;	/**< @brief Number of threads to spawn. (default='1').  */
  char * threads_orig;	/**< @brief Number of threads to spawn. original value given at command line.  */
  const char *threads_help; /**< @brief Number of threads to spawn. help description.  */
  const char *affinity_help; /**< @brief Set CPU affinity for threads, round-robin help description.  */
  int connections_arg;	/**< @brief Connections to establish per server. (default='1').  */
  char * connections_orig;	/**< @brief Connections to establish per server. original value given at command line.  */
  const char *connections_help; /**< @brief Connections to establish per server. help description.  */
  int depth_arg;	/**< @brief Maximum depth to pipeline requests. (default='1').  */
  char * depth_orig;	/**< @brief Maximum depth to pipeline requests. original value given at command line.  */
  const char *depth_help; /**< @brief Maximum depth to pipeline requests. help description.  */
  const char *roundrobin_help; /**< @brief Assign threads to servers in round-robin fashion.  By default, each thread connects to every server. help description.  */
  char * iadist_arg;	/**< @brief Inter-arrival distribution (distribution).  Note: The distribution will automatically be adjusted to match the QPS given by --qps. (default='exponential').  */
  char * iadist_orig;	/**< @brief Inter-arrival distribution (distribution).  Note: The distribution will automatically be adjusted to match the QPS given by --qps. original value given at command line.  */
  const char *iadist_help; /**< @brief Inter-arrival distribution (distribution).  Note: The distribution will automatically be adjusted to match the QPS given by --qps. help description.  */
  const char *skip_help; /**< @brief Skip transmissions if previous requests are late.  This harms the long-term QPS average, but reduces spikes in QPS after long latency requests. help description.  */
  const char *moderate_help; /**< @brief Enforce a minimum delay of ~1/lambda between requests. help description.  */
  const char *noload_help; /**< @brief Skip database loading. help description.  */
  const char *loadonly_help; /**< @brief Load database and then exit. help description.  */
  const char *blocking_help; /**< @brief Use blocking epoll().  May increase latency. help description.  */
  const char *no_nodelay_help; /**< @brief Don't use TCP_NODELAY. help description.  */
  int warmup_arg;	/**< @brief Warmup time before starting measurement..  */
  char * warmup_orig;	/**< @brief Warmup time before starting measurement. original value given at command line.  */
  const char *warmup_help; /**< @brief Warmup time before starting measurement. help description.  */
  int wait_arg;	/**< @brief Time to wait after startup to start measurement..  */
  char * wait_orig;	/**< @brief Time to wait after startup to start measurement. original value given at command line.  */
  const char *wait_help; /**< @brief Time to wait after startup to start measurement. help description.  */
  char * save_arg;	/**< @brief Record latency samples to given file..  */
  char * save_orig;	/**< @brief Record latency samples to given file. original value given at command line.  */
  const char *save_help; /**< @brief Record latency samples to given file. help description.  */
  char * search_arg;	/**< @brief Search for the QPS where N-order statistic < Xus.  (i.e. --search 95:1000 means find the QPS where 95% of requests are faster than 1000us)..  */
  char * search_orig;	/**< @brief Search for the QPS where N-order statistic < Xus.  (i.e. --search 95:1000 means find the QPS where 95% of requests are faster than 1000us). original value given at command line.  */
  const char *search_help; /**< @brief Search for the QPS where N-order statistic < Xus.  (i.e. --search 95:1000 means find the QPS where 95% of requests are faster than 1000us). help description.  */
  char * scan_arg;	/**< @brief Scan latency across QPS rates from min to max..  */
  char * scan_orig;	/**< @brief Scan latency across QPS rates from min to max. original value given at command line.  */
  const char *scan_help; /**< @brief Scan latency across QPS rates from min to max. help description.  */
  const char *trace_help; /**< @brief To enable server tracing based on client activity, will issue special start_trace/stop_trace commands. Requires memcached to support these commands. help description.  */
  int getq_size_arg;	/**< @brief Size of queue for multiget requests. (default='100').  */
  char * getq_size_orig;	/**< @brief Size of queue for multiget requests. original value given at command line.  */
  const char *getq_size_help; /**< @brief Size of queue for multiget requests. help description.  */
  float getq_freq_arg;	/**< @brief Frequency of multiget requests, 0 for no multi-get, 100 for only multi-get. (default='0.0').  */
  char * getq_freq_orig;	/**< @brief Frequency of multiget requests, 0 for no multi-get, 100 for only multi-get. original value given at command line.  */
  const char *getq_freq_help; /**< @brief Frequency of multiget requests, 0 for no multi-get, 100 for only multi-get. help description.  */
  int keycache_capacity_arg;	/**< @brief Cached key capacity. (default 10000) (default='10000').  */
  char * keycache_capacity_orig;	/**< @brief Cached key capacity. (default 10000) original value given at command line.  */
  const char *keycache_capacity_help; /**< @brief Cached key capacity. (default 10000) help description.  */
  int keycache_reuse_arg;	/**< @brief Number of times to reuse key cache before generating new req sequence. (Default 100) (default='100').  */
  char * keycache_reuse_orig;	/**< @brief Number of times to reuse key cache before generating new req sequence. (Default 100) original value given at command line.  */
  const char *keycache_reuse_help; /**< @brief Number of times to reuse key cache before generating new req sequence. (Default 100) help description.  */
  int keycache_regen_arg;	/**< @brief When regenerating control number of requests to regenerate. (Default 1%) (default='1').  */
  char * keycache_regen_orig;	/**< @brief When regenerating control number of requests to regenerate. (Default 1%) original value given at command line.  */
  const char *keycache_regen_help; /**< @brief When regenerating control number of requests to regenerate. (Default 1%) help description.  */
  const char *plot_all_help; /**< @brief Create plot/csv of latency histogram at each step when using gnuplot and loghistogram sampler help description.  */
  const char *agentmode_help; /**< @brief Run client in agent mode. help description.  */
  char ** agent_arg;	/**< @brief Enlist remote agent, with optional agent port to support multiple agents per host..  */
  char ** agent_orig;	/**< @brief Enlist remote agent, with optional agent port to support multiple agents per host. original value given at command line.  */
  unsigned int agent_min; /**< @brief Enlist remote agent, with optional agent port to support multiple agents per host.'s minimum occurreces */
  unsigned int agent_max; /**< @brief Enlist remote agent, with optional agent port to support multiple agents per host.'s maximum occurreces */
  const char *agent_help; /**< @brief Enlist remote agent, with optional agent port to support multiple agents per host. help description.  */
  char * agent_port_arg;	/**< @brief Agent port, ignored when it is part of the agent option (default='5556').  */
  char * agent_port_orig;	/**< @brief Agent port, ignored when it is part of the agent option original value given at command line.  */
  const char *agent_port_help; /**< @brief Agent port, ignored when it is part of the agent option help description.  */
  int lambda_mul_arg;	/**< @brief Lambda multiplier.  Increases share of QPS for this client. (default='1').  */
  char * lambda_mul_orig;	/**< @brief Lambda multiplier.  Increases share of QPS for this client. original value given at command line.  */
  const char *lambda_mul_help; /**< @brief Lambda multiplier.  Increases share of QPS for this client. help description.  */
  int measure_connections_arg;	/**< @brief Master client connections per server, overrides --connections..  */
  char * measure_connections_orig;	/**< @brief Master client connections per server, overrides --connections. original value given at command line.  */
  const char *measure_connections_help; /**< @brief Master client connections per server, overrides --connections. help description.  */
  int measure_qps_arg;	/**< @brief Explicitly set master client QPS, spread across threads and connections..  */
  char * measure_qps_orig;	/**< @brief Explicitly set master client QPS, spread across threads and connections. original value given at command line.  */
  const char *measure_qps_help; /**< @brief Explicitly set master client QPS, spread across threads and connections. help description.  */
  int measure_depth_arg;	/**< @brief Set master client connection depth..  */
  char * measure_depth_orig;	/**< @brief Set master client connection depth. original value given at command line.  */
  const char *measure_depth_help; /**< @brief Set master client connection depth. help description.  */
  int poll_freq_arg;	/**< @brief Set frequency in seconds for agent protocol recv polling. (default='1').  */
  char * poll_freq_orig;	/**< @brief Set frequency in seconds for agent protocol recv polling. original value given at command line.  */
  const char *poll_freq_help; /**< @brief Set frequency in seconds for agent protocol recv polling. help description.  */
  int poll_max_arg;	/**< @brief Set timeout for agent protocol recv polling. An agent not responding within time limit will be dropped. (default='120').  */
  char * poll_max_orig;	/**< @brief Set timeout for agent protocol recv polling. An agent not responding within time limit will be dropped. original value given at command line.  */
  const char *poll_max_help; /**< @brief Set timeout for agent protocol recv polling. An agent not responding within time limit will be dropped. help description.  */

  unsigned int help_given ;	/**< @brief Whether help was given.  */
  unsigned int version_given ;	/**< @brief Whether version was given.  */
  unsigned int verbose_given ;	/**< @brief Whether verbose was given.  */
  unsigned int quiet_given ;	/**< @brief Whether quiet was given.  */
  unsigned int server_given ;	/**< @brief Whether server was given.  */
  unsigned int binary_given ;	/**< @brief Whether binary was given.  */
  unsigned int qps_given ;	/**< @brief Whether qps was given.  */
  unsigned int time_given ;	/**< @brief Whether time was given.  */
  unsigned int profile_given ;	/**< @brief Whether profile was given.  */
  unsigned int keysize_given ;	/**< @brief Whether keysize was given.  */
  unsigned int keyorder_given ;	/**< @brief Whether keyorder was given.  */
  unsigned int valuesize_given ;	/**< @brief Whether valuesize was given.  */
  unsigned int records_given ;	/**< @brief Whether records was given.  */
  unsigned int update_given ;	/**< @brief Whether update was given.  */
  unsigned int username_given ;	/**< @brief Whether username was given.  */
  unsigned int password_given ;	/**< @brief Whether password was given.  */
  unsigned int threads_given ;	/**< @brief Whether threads was given.  */
  unsigned int affinity_given ;	/**< @brief Whether affinity was given.  */
  unsigned int connections_given ;	/**< @brief Whether connections was given.  */
  unsigned int depth_given ;	/**< @brief Whether depth was given.  */
  unsigned int roundrobin_given ;	/**< @brief Whether roundrobin was given.  */
  unsigned int iadist_given ;	/**< @brief Whether iadist was given.  */
  unsigned int skip_given ;	/**< @brief Whether skip was given.  */
  unsigned int moderate_given ;	/**< @brief Whether moderate was given.  */
  unsigned int noload_given ;	/**< @brief Whether noload was given.  */
  unsigned int loadonly_given ;	/**< @brief Whether loadonly was given.  */
  unsigned int blocking_given ;	/**< @brief Whether blocking was given.  */
  unsigned int no_nodelay_given ;	/**< @brief Whether no_nodelay was given.  */
  unsigned int warmup_given ;	/**< @brief Whether warmup was given.  */
  unsigned int wait_given ;	/**< @brief Whether wait was given.  */
  unsigned int save_given ;	/**< @brief Whether save was given.  */
  unsigned int search_given ;	/**< @brief Whether search was given.  */
  unsigned int scan_given ;	/**< @brief Whether scan was given.  */
  unsigned int trace_given ;	/**< @brief Whether trace was given.  */
  unsigned int getq_size_given ;	/**< @brief Whether getq_size was given.  */
  unsigned int getq_freq_given ;	/**< @brief Whether getq_freq was given.  */
  unsigned int keycache_capacity_given ;	/**< @brief Whether keycache_capacity was given.  */
  unsigned int keycache_reuse_given ;	/**< @brief Whether keycache_reuse was given.  */
  unsigned int keycache_regen_given ;	/**< @brief Whether keycache_regen was given.  */
  unsigned int plot_all_given ;	/**< @brief Whether plot_all was given.  */
  unsigned int agentmode_given ;	/**< @brief Whether agentmode was given.  */
  unsigned int agent_given ;	/**< @brief Whether agent was given.  */
  unsigned int agent_port_given ;	/**< @brief Whether agent_port was given.  */
  unsigned int lambda_mul_given ;	/**< @brief Whether lambda_mul was given.  */
  unsigned int measure_connections_given ;	/**< @brief Whether measure_connections was given.  */
  unsigned int measure_qps_given ;	/**< @brief Whether measure_qps was given.  */
  unsigned int measure_depth_given ;	/**< @brief Whether measure_depth was given.  */
  unsigned int poll_freq_given ;	/**< @brief Whether poll_freq was given.  */
  unsigned int poll_max_given ;	/**< @brief Whether poll_max was given.  */

} ;

/** @brief The additional parameters to pass to parser functions */
struct cmdline_parser_params
{
  int override; /**< @brief whether to override possibly already present options (default 0) */
  int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */
  int check_required; /**< @brief whether to check that all required options were provided (default 1) */
  int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */
  int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
} ;

/** @brief the purpose string of the program */
extern const char *gengetopt_args_info_purpose;
/** @brief the usage string of the program */
extern const char *gengetopt_args_info_usage;
/** @brief the description string of the program */
extern const char *gengetopt_args_info_description;
/** @brief all the lines making the help output */
extern const char *gengetopt_args_info_help[];

/**
 * The command line parser
 * @param argc the number of command line options
 * @param argv the command line options
 * @param args_info the structure where option information will be stored
 * @return 0 if everything went fine, NON 0 if an error took place
 */
int cmdline_parser (int argc, char **argv,
  struct gengetopt_args_info *args_info);

/**
 * The command line parser (version with additional parameters - deprecated)
 * @param argc the number of command line options
 * @param argv the command line options
 * @param args_info the structure where option information will be stored
 * @param override whether to override possibly already present options
 * @param initialize whether to initialize the option structure my_args_info
 * @param check_required whether to check that all required options were provided
 * @return 0 if everything went fine, NON 0 if an error took place
 * @deprecated use cmdline_parser_ext() instead
 */
int cmdline_parser2 (int argc, char **argv,
  struct gengetopt_args_info *args_info,
  int override, int initialize, int check_required);

/**
 * The command line parser (version with additional parameters)
 * @param argc the number of command line options
 * @param argv the command line options
 * @param args_info the structure where option information will be stored
 * @param params additional parameters for the parser
 * @return 0 if everything went fine, NON 0 if an error took place
 */
int cmdline_parser_ext (int argc, char **argv,
  struct gengetopt_args_info *args_info,
  struct cmdline_parser_params *params);

/**
 * Save the contents of the option struct into an already open FILE stream.
 * @param outfile the stream where to dump options
 * @param args_info the option struct to dump
 * @return 0 if everything went fine, NON 0 if an error took place
 */
int cmdline_parser_dump(FILE *outfile,
  struct gengetopt_args_info *args_info);

/**
 * Save the contents of the option struct into a (text) file.
 * This file can be read by the config file parser (if generated by gengetopt)
 * @param filename the file where to save
 * @param args_info the option struct to save
 * @return 0 if everything went fine, NON 0 if an error took place
 */
int cmdline_parser_file_save(const char *filename,
  struct gengetopt_args_info *args_info);

/**
 * Print the help
 */
void cmdline_parser_print_help(void);
/**
 * Print the version
 */
void cmdline_parser_print_version(void);

/**
 * Initializes all the fields a cmdline_parser_params structure
 * to their default values
 * @param params the structure to initialize
 */
void cmdline_parser_params_init(struct cmdline_parser_params *params);

/**
 * Allocates dynamically a cmdline_parser_params structure and initializes
 * all its fields to their default values
 * @return the created and initialized cmdline_parser_params structure
 */
struct cmdline_parser_params *cmdline_parser_params_create(void);

/**
 * Initializes the passed gengetopt_args_info structure's fields
 * (also set default values for options that have a default)
 * @param args_info the structure to initialize
 */
void cmdline_parser_init (struct gengetopt_args_info *args_info);
/**
 * Deallocates the string fields of the gengetopt_args_info structure
 * (but does not deallocate the structure itself)
 * @param args_info the structure to deallocate
 */
void cmdline_parser_free (struct gengetopt_args_info *args_info);

/**
 * The config file parser (deprecated version)
 * @param filename the name of the config file
 * @param args_info the structure where option information will be stored
 * @param override whether to override possibly already present options
 * @param initialize whether to initialize the option structure my_args_info
 * @param check_required whether to check that all required options were provided
 * @return 0 if everything went fine, NON 0 if an error took place
 * @deprecated use cmdline_parser_config_file() instead
 */
int cmdline_parser_configfile (const char *filename,
  struct gengetopt_args_info *args_info,
  int override, int initialize, int check_required);

/**
 * The config file parser
 * @param filename the name of the config file
 * @param args_info the structure where option information will be stored
 * @param params additional parameters for the parser
 * @return 0 if everything went fine, NON 0 if an error took place
 */
int cmdline_parser_config_file (const char *filename,
  struct gengetopt_args_info *args_info,
  struct cmdline_parser_params *params);

/**
 * Checks that all the required options were specified
 * @param args_info the structure to check
 * @param prog_name the name of the program that will be used to print
 *   possible errors
 * @return
 */
int cmdline_parser_required (struct gengetopt_args_info *args_info,
  const char *prog_name);

#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* CMDLINE_H */


text:
<?php

    namespace papalapa\yiistart\assets;

    use yii\web\AssetBundle;

    /**
     * Class CDN_Carhartl_JqueryCookie_Asset
     * @link    https://github.com/artpolikarpov/fotorama
     * @link    https://cdnjs.com/libraries/fotorama
     * @package common\assets
     */
    class CDN_Carhartl_JqueryCookie_Asset extends AssetBundle
    {
        public $js      = [
            'https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js',
        ];
        public $depends = [
            'yii\web\JqueryAsset',
        ];
    }


text:
#ifndef	_CAVIUM_OCTE_OCTEBUSVAR_H_
#define	_CAVIUM_OCTE_OCTEBUSVAR_H_

struct octebus_softc {
	device_t sc_dev;

	struct resource *sc_rx_irq;
	void *sc_rx_intr_cookie;

	struct resource *sc_rgmii_irq;
	struct resource *sc_spi_irq;
};

#endif /* !_CAVIUM_OCTE_OCTEBUSVAR_H_ */


text:
<?php

namespace undefinedstudio\yii2\angular;

use yii\web\AssetBundle;

class AngularAriaAsset extends AssetBundle
{
    public $sourcePath = '@bower/angular-aria';
    public $js = [
        'angular-aria.js',
    ];

    public $depends = [
        'undefinedstudio\yii2\angular\AngularAsset'
    ];
}


text:
โอนย้ายรถ

        <select id="branchID" name="branchID">
            <option>สำนักงานใหญ่</option>
            <option>บางปู</option>
            <option>รังสิต</option>
        </select>
        สาขาที่รับโอนย้าย

        <input type="text" name="moveDate" id="moveDate" class="datepicker" placeholder="">
        วันที่โอนย้าย

        <textarea id="description" name="description" class="materialize-textarea" placeholder=""></textarea>
        รายละเอียดเพิ่มเติม

        <button class="btn waves-effect waves-light right" type="submit" name="action">บันทึก
            send
        </button>


text:
package org.gradle.api.internal.tasks.testing.junit;

import java.util.Set;

public class JUnitSpec extends AbstractJUnitSpec {
    private final Set<String> includeCategories;
    private final Set<String> excludeCategories;

    public JUnitSpec(
        Set<String> includeCategories,
        Set<String> excludeCategories,
        Set<String> includedTests,
        Set<String> excludedTests,
        Set<String> includedTestsCommandLine
    ) {
        super(includedTests, excludedTests, includedTestsCommandLine);
        this.includeCategories = includeCategories;
        this.excludeCategories = excludeCategories;
    }

    public Set<String> getIncludeCategories() {
        return includeCategories;
    }

    public Set<String> getExcludeCategories() {
        return excludeCategories;
    }

    public boolean hasCategoryConfiguration() {
        return !(excludeCategories.isEmpty() && includeCategories.isEmpty());
    }
}


text:
package io.gravitee.am.repository.management.api;

import io.gravitee.am.model.Policy;
import io.gravitee.am.repository.common.CrudRepository;
import io.reactivex.Completable;
import io.reactivex.Flowable;
import io.reactivex.Single;

import java.util.List;

/**
 * NOTE: only use for the PoliciesToFlowsUpgrader Upgrader
 * Use the {@link io.gravitee.am.repository.management.api.FlowRepository} for the flow management
 *
 * @author Titouan COMPIEGNE (titouan.compiegne at graviteesource.com)
 * @author GraviteeSource Team
 */
@Deprecated
public interface PolicyRepository {

    Flowable<Policy> findAll();

    Single<Boolean> collectionExists();

    Completable deleteCollection();
}


text:
namespace srook {
namespace iterator {
SROOK_INLINE_NAMESPACE(fundamentals_v2)

template <class Delim, typename CharT = char, class Traits = std::char_traits<CharT>>
struct ostream_joiner {
    typedef CharT char_type;
    typedef Traits traits_type;
    typedef std::basic_ostream<CharT, Traits> ostream_type;
    typedef std::output_iterator_tag iterator_category;
    typedef void value_type;
    typedef void difference_type;
    typedef void pointer;
    typedef void reference;

    ostream_joiner(ostream_type& os, Delim delimiter) SROOK_NOEXCEPT(std::is_nothrow_copy_constructible<Delim>::value)
	    : out(srook::addressof(os)), delim(srook::move(delimiter)) {}

    template <typename T>
    ostream_joiner<Delim, CharT, Traits>& operator=(const T &value)
    SROOK_NOEXCEPT(declval<std::basic_ostream<CharT, Traits>*>() << declval<Delim>())
    {
        if (!first) *out << delim;
        first = false;
        *out << value;
        return *this;
    }

    ostream_joiner<Delim, CharT, Traits>& operator*() SROOK_NOEXCEPT_TRUE { return *this; }
    ostream_joiner<Delim, CharT, Traits>& operator++() SROOK_NOEXCEPT_TRUE { return *this; }
    ostream_joiner<Delim, CharT, Traits>& operator++(int) SROOK_NOEXCEPT_TRUE { return *this; }
private:
	bool first = true;
    std::basic_ostream<CharT, Traits>* out;
    const Delim delim;
};

template <typename CharT, class Traits, class Delim>
SROOK_FORCE_INLINE ostream_joiner<SROOK_DEDUCED_TYPENAME decay<Delim>::type, CharT, Traits>
make_ostream_joiner(std::basic_ostream<CharT, Traits>& os, Delim&& delimiter)
{
    return ostream_joiner<SROOK_DEDUCED_TYPENAME decay<Delim>::type>(os, srook::forward<Delim>(delimiter));
}

SROOK_INLINE_NAMESPACE_END
} // namespace iterator

using iterator::ostream_joiner;
using iterator::make_ostream_joiner;

} // namespace srook

#endif
#endif


text:
.in {
	-webkit-animation-timing-function: ease-out;
	-webkit-animation-duration: 350ms;
	animation-timing-function: ease-out;
	animation-duration: 350ms;
}
.out {
	-webkit-animation-timing-function: ease-in;
	-webkit-animation-duration: 225ms;
	animation-timing-function: ease-in;
	animation-duration: 225ms;
}
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-webkit-keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}
.fade.out {
	opacity: 0;
	-webkit-animation-duration: 125ms;
	-webkit-animation-name: fadeout;
	animation-duration: 125ms;
	animation-name: fadeout;
}
.fade.in {
	opacity: 1;
	-webkit-animation-duration: 225ms;
	-webkit-animation-name: fadein;
	animation-duration: 225ms;
	animation-name: fadein;
}
.pop {
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}
.pop.in {
	-webkit-transform: scale(1);
	transform: scale(1);
    opacity: 1;
	-webkit-animation-name: popin;
	animation-name: popin;
	-webkit-animation-duration: 350ms;
	animation-duration: 350ms;
}
.pop.out {
	-webkit-animation-name: fadeout;
	animation-name: fadeout;
	opacity: 0;
	-webkit-animation-duration: 100ms;
	animation-duration: 100ms;
}
.pop.in.reverse {
	-webkit-animation-name: fadein;
	animation-name: fadein;
}
.pop.out.reverse {
	-webkit-transform: scale(.8);
	transform: scale(.8);
	-webkit-animation-name: popout;
	animation-name: popout;
}
@-webkit-keyframes popin {
    from {
        -webkit-transform: scale(.8);
        opacity: 0;
    }
    to {
        -webkit-transform: scale(1);
        opacity: 1;
    }
}
@keyframes popin {
    from {
        transform: scale(.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@-webkit-keyframes popout {
    from {
        -webkit-transform: scale(1);
        opacity: 1;
    }
    to {
        -webkit-transform: scale(.8);
        opacity: 0;
    }
}
@keyframes popout {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(.8);
        opacity: 0;
    }
}
@-webkit-keyframes slideinfromright {
    from { -webkit-transform: translateX(100%); }
    to { -webkit-transform: translateX(0); }
}
@keyframes slideinfromright {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@-webkit-keyframes slideinfromleft {
    from { -webkit-transform: translateX(-100%); }
    to { -webkit-transform: translateX(0); }
}
@keyframes slideinfromleft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@-webkit-keyframes slideouttoleft {
    from { -webkit-transform: translateX(0); }
    to { -webkit-transform: translateX(-100%); }
}
@keyframes slideouttoleft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@-webkit-keyframes slideouttoright {
    from { -webkit-transform: translateX(0); }
    to { -webkit-transform: translateX(100%); }
}
@keyframes slideouttoright {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}
.slide.out, .slide.in {
	-webkit-animation-timing-function: ease-out;
	-webkit-animation-duration: 350ms;
	animation-timing-function: ease-out;
	animation-duration: 350ms;
}
.slide.out {
	-webkit-transform: translateX(-100%);
	-webkit-animation-name: slideouttoleft;
	transform: translateX(-100%);
	animation-name: slideouttoleft;
}
.slide.in {
	-webkit-transform: translateX(0);
	-webkit-animation-name: slideinfromright;
	transform: translateX(0);
	animation-name: slideinfromright;
}
.slide.out.reverse {
	-webkit-transform: translateX(100%);
	-webkit-animation-name: slideouttoright;
	transform: translateX(100%);
	animation-name: slideouttoright;
}
.slide.in.reverse {
	-webkit-transform: translateX(0);
	-webkit-animation-name: slideinfromleft;
	transform: translateX(0);
	animation-name: slideinfromleft;
}
.slidefade.out {
	-webkit-transform: translateX(-100%);
	-webkit-animation-name: slideouttoleft;
	transform: translateX(-100%);
	animation-name: slideouttoleft;
	-webkit-animation-duration: 225ms;
	animation-duration: 225ms;
}
.slidefade.in {
	-webkit-transform: translateX(0);
	-webkit-animation-name: fadein;
	transform: translateX(0);
	animation-name: fadein;
	-webkit-animation-duration: 200ms;
	animation-duration: 200ms;
}
.slidefade.out.reverse {
	-webkit-transform: translateX(100%);
	-webkit-animation-name: slideouttoright;
	transform: translateX(100%);
	animation-name: slideouttoright;
	-webkit-animation-duration: 200ms;
	animation-duration: 200ms;
}
.slidefade.in.reverse {
	-webkit-transform: translateX(0);
	-webkit-animation-name: fadein;
	transform: translateX(0);
	animation-name: fadein;
	-webkit-animation-duration: 200ms;
	animation-duration: 200ms;
}
.slidedown.out {
	-webkit-animation-name: fadeout;
	animation-name: fadeout;
	-webkit-animation-duration: 100ms;
	animation-duration: 100ms;
}
.slidedown.in {
	-webkit-transform: translateY(0);
	-webkit-animation-name: slideinfromtop;
	transform: translateY(0);
	animation-name: slideinfromtop;
	-webkit-animation-duration: 250ms;
	animation-duration: 250ms;
}
.slidedown.in.reverse {
	-webkit-animation-name: fadein;
	animation-name: fadein;
	-webkit-animation-duration: 150ms;
	animation-duration: 150ms;
}
.slidedown.out.reverse {
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
	-webkit-animation-name: slideouttotop;
	animation-name: slideouttotop;
	-webkit-animation-duration: 200ms;
	animation-duration: 200ms;
}
@-webkit-keyframes slideinfromtop {
    from { -webkit-transform: translateY(-100%); }
    to { -webkit-transform: translateY(0); }
}
@keyframes slideinfromtop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
@-webkit-keyframes slideouttotop {
    from { -webkit-transform: translateY(0); }
    to { -webkit-transform: translateY(-100%); }
}
@keyframes slideouttotop {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}
.slideup.out {
	-webkit-animation-name: fadeout;
	animation-name: fadeout;
	-webkit-animation-duration: 100ms;
	animation-duration: 100ms;
}
.slideup.in {
	-webkit-transform: translateY(0);
	-webkit-animation-name: slideinfrombottom;
	transform: translateY(0);
	animation-name: slideinfrombottom;
	-webkit-animation-duration: 250ms;
	animation-duration: 250ms;
}
.slideup.in.reverse {
	-webkit-animation-name: fadein;
	animation-name: fadein;
	-webkit-animation-duration: 150ms;
	animation-duration: 150ms;
}
.slideup.out.reverse {
	-webkit-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-animation-name: slideouttobottom;
	animation-name: slideouttobottom;
	-webkit-animation-duration: 200ms;
	animation-duration: 200ms;
}
@-webkit-keyframes slideinfrombottom {
    from { -webkit-transform: translateY(100%); }
    to { -webkit-transform: translateY(0); }
}
@keyframes slideinfrombottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@-webkit-keyframes slideouttobottom {
    from { -webkit-transform: translateY(0); }
    to { -webkit-transform: translateY(100%); }
}
@keyframes slideouttobottom {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}
.viewport-flip {
	-webkit-perspective: 1000px;
	perspective: 1000px;
	position: absolute;
}
.flip {
	-webkit-backface-visibility:hidden;
	-webkit-transform:translateX(0);
	backface-visibility:hidden;
	transform:translateX(0);
}
.flip.out {
	-webkit-transform: rotateY(-90deg) scale(.9);
	-webkit-animation-name: flipouttoleft;
	-webkit-animation-duration: 175ms;
	transform: rotateY(-90deg) scale(.9);
	animation-name: flipouttoleft;
	animation-duration: 175ms;
}
.flip.in {
	-webkit-animation-name: flipintoright;
	-webkit-animation-duration: 225ms;
	animation-name: flipintoright;
	animation-duration: 225ms;
}
.flip.out.reverse {
	-webkit-transform: rotateY(90deg) scale(.9);
	-webkit-animation-name: flipouttoright;
	transform: rotateY(90deg) scale(.9);
	animation-name: flipouttoright;
}
.flip.in.reverse {
	-webkit-animation-name: flipintoleft;
	animation-name: flipintoleft;
}
@-webkit-keyframes flipouttoleft {
    from { -webkit-transform: rotateY(0); }
    to { -webkit-transform: rotateY(-90deg) scale(.9); }
}
@keyframes flipouttoleft {
    from { transform: rotateY(0); }
    to { transform: rotateY(-90deg) scale(.9); }
}
@-webkit-keyframes flipouttoright {
    from { -webkit-transform: rotateY(0) ; }
    to { -webkit-transform: rotateY(90deg) scale(.9); }
}
@keyframes flipouttoright {
    from { transform: rotateY(0); }
    to { transform: rotateY(90deg) scale(.9); }
}
@-webkit-keyframes flipintoleft {
    from { -webkit-transform: rotateY(-90deg) scale(.9); }
    to { -webkit-transform: rotateY(0); }
}
@keyframes flipintoleft {
    from { transform: rotateY(-90deg) scale(.9); }
    to { transform: rotateY(0); }
}
@-webkit-keyframes flipintoright {
    from { -webkit-transform: rotateY(90deg) scale(.9); }
    to { -webkit-transform: rotateY(0); }
}
@keyframes flipintoright {
    from { transform: rotateY(90deg) scale(.9); }
    to { transform: rotateY(0); }
}
.viewport-turn {
	-webkit-perspective: 1000px;
	perspective: 1000px;
	position: absolute;
}
.turn {
	-webkit-backface-visibility:hidden;
	-webkit-transform:translateX(0);
	-webkit-transform-origin: 0;

	backface-visibility:hidden;
	transform:translateX(0);
	transform-origin: 0;
}
.turn.out {
	-webkit-transform: rotateY(-90deg);
	-webkit-animation-name: turnouttoleft;
	transform: rotateY(-90deg);
	animation-name: turnouttoleft;
	-webkit-animation-duration: 125ms;
	animation-duration: 125ms;
}
.turn.in {
	-webkit-animation-name: turnintoright;
	animation-name: turnintoright;
	-webkit-animation-duration: 250ms;
	animation-duration: 250ms;

}
.turn.out.reverse {
	-webkit-transform: rotateY(90deg);
	-webkit-animation-name: turnouttoright;
	transform: rotateY(90deg);
	animation-name: turnouttoright;
}
.turn.in.reverse {
	-webkit-animation-name: turnintoleft;
	animation-name: turnintoleft;
}
@-webkit-keyframes turnouttoleft {
    from { -webkit-transform: rotateY(0); }
    to { -webkit-transform: rotateY(-90deg); }
}
@keyframes turnouttoleft {
    from { transform: rotateY(0); }
    to { transform: rotateY(-90deg); }
}
@-webkit-keyframes turnouttoright {
    from { -webkit-transform: rotateY(0) ; }
    to { -webkit-transform: rotateY(90deg); }
}
@keyframes turnouttoright {
    from { transform: rotateY(0); }
    to { transform: rotateY(90deg); }
}
@-webkit-keyframes turnintoleft {
    from { -webkit-transform: rotateY(-90deg); }
    to { -webkit-transform: rotateY(0); }
}
@keyframes turnintoleft {
    from { transform: rotateY(-90deg); }
    to { transform: rotateY(0); }
}
@-webkit-keyframes turnintoright {
    from { -webkit-transform: rotateY(90deg); }
    to { -webkit-transform: rotateY(0); }
}
@keyframes turnintoright {
    from { transform: rotateY(90deg); }
    to { transform: rotateY(0); }
}
.flow {
	-webkit-transform-origin: 50% 30%;
	transform-origin: 50% 30%;
}
.flow.out {
	-webkit-transform: translateX(-100%) scale(.7);
	-webkit-animation-name: flowouttoleft;
	-webkit-animation-timing-function: ease;
	-webkit-animation-duration: 350ms;
	transform: translateX(-100%) scale(.7);
	animation-name: flowouttoleft;
	animation-timing-function: ease;
	animation-duration: 350ms;
}
.flow.in {
	-webkit-transform: translateX(0) scale(1);
	-webkit-animation-name: flowinfromright;
	-webkit-animation-timing-function: ease;
	-webkit-animation-duration: 350ms;
	transform: translateX(0) scale(1);
	animation-name: flowinfromright;
	animation-timing-function: ease;
	animation-duration: 350ms;
}
.flow.out.reverse {
	-webkit-transform: translateX(100%);
	-webkit-animation-name: flowouttoright;
	transform: translateX(100%);
	animation-name: flowouttoright;
}
.flow.in.reverse {
	-webkit-animation-name: flowinfromleft;
	animation-name: flowinfromleft;
}
@-webkit-keyframes flowouttoleft {
    0% { -webkit-transform: translateX(0) scale(1); }
	60%, 70% { -webkit-transform: translateX(0) scale(.7); }
    100% { -webkit-transform: translateX(-100%) scale(.7); }
}
@keyframes flowouttoleft {
    0% { transform: translateX(0) scale(1); }
	60%, 70% { transform: translateX(0) scale(.7); }
    100% { transform:  translateX(-100%) scale(.7); }
}
@-webkit-keyframes flowouttoright {
    0% { -webkit-transform: translateX(0) scale(1); }
	60%, 70% { -webkit-transform: translateX(0) scale(.7); }
    100% { -webkit-transform:  translateX(100%) scale(.7); }
}
@keyframes flowouttoright {
    0% { transform: translateX(0) scale(1); }
	60%, 70% { transform: translateX(0) scale(.7); }
    100% { transform:  translateX(100%) scale(.7); }
}
@-webkit-keyframes flowinfromleft {
    0% { -webkit-transform: translateX(-100%) scale(.7); }
	30%, 40% { -webkit-transform: translateX(0) scale(.7); }
    100% { -webkit-transform: translateX(0) scale(1); }
}
@keyframes flowinfromleft {
    0% { transform: translateX(-100%) scale(.7); }
	30%, 40% { transform: translateX(0) scale(.7); }
    100% { transform: translateX(0) scale(1); }
}
@-webkit-keyframes flowinfromright {
    0% { -webkit-transform: translateX(100%) scale(.7); }
	30%, 40% { -webkit-transform: translateX(0) scale(.7); }
    100% { -webkit-transform: translateX(0) scale(1); }
}
@keyframes flowinfromright {
    0% { transform: translateX(100%) scale(.7); }
	30%, 40% { transform: translateX(0) scale(.7); }
    100% { transform: translateX(0) scale(1); }
}


text:
<?php

namespace Ibuildings\QaTools\Core\Task;

use Ibuildings\QaTools\Core\Assert\Assertion;

final class WriteFileTask implements Task
{
    /**
     * @var string
     */
    private $filePath;

    /**
     * @var string
     */
    private $fileContents;

    /**
     * @var int
     */
    private $mode;

    /**
     * @param string $filePath
     * @param string $fileContents
     * @param int    $mode
     */
    public function __construct($filePath, $fileContents, $mode = 0644)
    {
        Assertion::string($filePath, 'File path ought to be a string');
        Assertion::string($fileContents, 'File contents ought to be a string');
        Assertion::greaterThan(1, 'File mode should be greater than one');
        Assertion::true((0777 & $mode) === $mode, 'File mode should be a valid change mode');

        $this->filePath = $filePath;
        $this->fileContents = $fileContents;
        $this->mode = $mode;
    }

    /**
     * @return string
     */
    public function getFilePath()
    {
        return $this->filePath;
    }

    /**
     * @return string
     */
    public function getFileContents()
    {
        return $this->fileContents;
    }

    /**
     * @return int
     */
    public function getMode()
    {
        return $this->mode;
    }

    public function __toString()
    {
        return sprintf(
            'WriteFileTask(filePath="%s", fileContents="%s, mode="%o")',
            $this->filePath,
            substr($this->fileContents, 0, 20),
            $this->mode
        );
    }
}


text:
from tests import BaseTestCase
from redash.models import QuerySnippet

class TestQuerySnippetResource(BaseTestCase):
    def test_get_snippet(self):
        snippet = self.factory.create_query_snippet()

        rv = self.make_request('get', '/api/query_snippets/{}'.format(snippet.id))

        for field in ('snippet', 'description', 'trigger'):
            self.assertEqual(rv.json[field], getattr(snippet, field))

    def test_update_snippet(self):
        snippet = self.factory.create_query_snippet()

        data = {
            'snippet': 'updated',
            'trigger': 'updated trigger',
            'description': 'updated description'
        }

        rv = self.make_request('post', '/api/query_snippets/{}'.format(snippet.id), data=data)

        for field in ('snippet', 'description', 'trigger'):
            self.assertEqual(rv.json[field], data[field])

    def test_delete_snippet(self):
        snippet = self.factory.create_query_snippet()
        rv = self.make_request('delete', '/api/query_snippets/{}'.format(snippet.id))

        self.assertIsNone(QuerySnippet.query.get(snippet.id))

class TestQuerySnippetListResource(BaseTestCase):
    def test_create_snippet(self):
        data = {
            'snippet': 'updated',
            'trigger': 'updated trigger',
            'description': 'updated description'
        }

        rv = self.make_request('post', '/api/query_snippets', data=data)
        self.assertEqual(rv.status_code, 200)

    def test_list_all_snippets(self):
        snippet1 = self.factory.create_query_snippet()
        snippet2 = self.factory.create_query_snippet()
        snippet_diff_org = self.factory.create_query_snippet(org=self.factory.create_org())

        rv = self.make_request('get', '/api/query_snippets')
        ids = [s['id'] for s in rv.json]

        self.assertIn(snippet1.id, ids)
        self.assertIn(snippet2.id, ids)
        self.assertNotIn(snippet_diff_org.id, ids)


text:
package pw.mario.journal.validator.impl;

import javax.enterprise.context.ApplicationScoped;

import pw.mario.common.exception.ValidationError;
import pw.mario.journal.model.dictionary.ValidationRule;
import pw.mario.journal.qualifiers.Validator;
import pw.mario.journal.service.article.ExecutionContext;
import pw.mario.journal.validator.ArticleValidator;
import pw.mario.journal.validator.ArticleValidatorBuilder;

@Validator
@ApplicationScoped
public class ToManyAcceptorsValidator implements ArticleValidatorBuilder {

	private static class ToManyAcceptorsValidatorInstance extends AbstractValidator {

		protected ToManyAcceptorsValidatorInstance(ValidationRule validation) {
			super(validation);
		}

		@Override
		public boolean validate(ExecutionContext ctx) {
			if (ctx.getAcceptors() != null && ctx.getAcceptors().size() > validation.getNAttr2()) {
				ctx.addError(new ValidationError(ctx, validation));
				return false;
			}
			return true;
		}
	}

	@Override
	public ArticleValidator build(ValidationRule rule) {
		return new ToManyAcceptorsValidatorInstance(rule);
	}

	@Override
	public String name() {
		return "TOO_MANY_ACC";
	}
}


text:
package codechicken.wirelessredstone.addons;

public class ClientMapInfo
{
    public ClientMapInfo(int xCenter, int zCenter, byte scale)
    {
        this.xCenter = xCenter;
        this.zCenter = zCenter;
        this.scale = scale;
    }

    int xCenter;
    int zCenter;
    byte scale;
    int dimension;
}


text:
namespace {
static bool s_settingsInitialized = false;

static bool s_perTilePaintingEnabled = false;
static bool s_partialSwapEnabled = false;
static bool s_acceleratedAnimationEnabled = false;
static bool s_pageScalePinchZoomEnabled = false;
static bool s_jankInsteadOfCheckerboard = false;
static bool s_backgroundColorInsteadOfCheckerboard = false;

void reset()
{
    s_settingsInitialized = true;

    s_perTilePaintingEnabled = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnablePerTilePainting);
    s_partialSwapEnabled = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnablePartialSwap);
    s_acceleratedAnimationEnabled = !CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kDisableThreadedAnimation);
    s_pageScalePinchZoomEnabled = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnablePinchInCompositor);
    s_jankInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kJankInsteadOfCheckerboard);
    s_backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kBackgroundColorInsteadOfCheckerboard);
}

}

namespace cc {

bool Settings::perTilePaintingEnabled()
{
    if (!s_settingsInitialized)
        reset();
    return s_perTilePaintingEnabled;
}

bool Settings::partialSwapEnabled()
{
    if (!s_settingsInitialized)
        reset();
    return s_partialSwapEnabled;
}

bool Settings::acceleratedAnimationEnabled()
{
    if (!s_settingsInitialized)
        reset();
    return s_acceleratedAnimationEnabled;
}

bool Settings::pageScalePinchZoomEnabled()
{
    if (!s_settingsInitialized)
        reset();
    return s_pageScalePinchZoomEnabled;
}

bool Settings::jankInsteadOfCheckerboard()
{
    if (!s_settingsInitialized)
        reset();
    return s_jankInsteadOfCheckerboard;
}

bool Settings::backgroundColorInsteadOfCheckerboard()
{
    if (!s_settingsInitialized)
        reset();
    return s_backgroundColorInsteadOfCheckerboard;
}

void Settings::resetForTest()
{
    reset();
}

void Settings::setPartialSwapEnabled(bool enabled)
{
    if (!s_settingsInitialized)
        reset();
    s_partialSwapEnabled = enabled;
}

void Settings::setPerTilePaintingEnabled(bool enabled)
{
    if (!s_settingsInitialized)
        reset();
    s_partialSwapEnabled = enabled;
}

void Settings::setAcceleratedAnimationEnabled(bool enabled)
{
    if (!s_settingsInitialized)
        reset();
    s_acceleratedAnimationEnabled = enabled;
}

void Settings::setPageScalePinchZoomEnabled(bool enabled)
{
    if (!s_settingsInitialized)
        reset();
    s_pageScalePinchZoomEnabled = enabled;
}

} // namespace cc


text:
import getQuerieString from 'utility/getQuerieString';
define(function(require) {
  function getDistributor() {
    let {productowner} = getQuerieString();
    var vendor = window.location.host.replace(/\..+/, '') || 'cavalier';
    var owner;
    var url;
    var distributor;
    var vendorNames;
    var prodcutOwnerQuery;
    switch (vendor) {
    case 'cavalier':
        vendor = "cavalier";
        url = 'http://cavbeer.com/';
        distributor = "cavalier";
        break;
    case 'jackieos':
        vendor = "Jackie O's";
        vendorNames=["jackie o's", "jackie o's", "jackieos", "jackieos"];
        owner = true;
        url = 'http://jackieos.com/';
        distributor = "cavalier";
        break;
    case 'fatheads':
        vendor = "Fat Head's Brewery";
        url = 'http://cavbeer.com/';
        owner = true;
        break;
    case 'localhost:8585':
        vendor = "cavalier";
        url = 'http://cavbeer.com/';
        distributor = "cavalier";
        break;
    }

    if (productowner) {
      const productownerTL = productowner.toLowerCase();
      vendorNames = [productownerTL.replace(/ /g, ''), productownerTL.replace("'", ''), productownerTL.replace('brewery', ''), productownerTL.replace('brewing', ''), productownerTL.replace('co.', ''),productownerTL.replace('co', ''), productownerTL.replace('company', '')]
      owner = true;
      vendor = productowner;
      prodcutOwnerQuery = true;
    }

    return {
      vendor: vendor,
      owner: owner,
      url: url,
      distributor: distributor,
      vendorNames: vendorNames,
      prodcutOwnerQuery: prodcutOwnerQuery
    };
  }

  return {
    getDistributor: getDistributor
  };

});


text:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE locale SYSTEM "../../../../../lib/pkp/dtd/locale.dtd">

<locale name="el_GR" full_name="Greek">
	<message key="plugins.generic.customBlockManager.displayName">Διαχείριση Custom Block</message>
	<message key="plugin.generic.customBlockManager.introduction"><![CDATA[Μπορείτε να χρησιμοποιήτε το plugin αυτό για να προσθέτετε ή διαγράφετε προσαρμοσμένα (custom) block plugins.  Μπορείτε να επεξεργαστείτε το περιεχόμενο μέσα από την σελίδα  Plugins Συστήματος (στην ενότητα Blocks Plugin).  Για να τοποθετήσετε το plugin σας στην επιθυμητή θέση στην πλαϊνή μπάρα, πηγαίνετε στο Βήμα 5.6.]]></message>
	<message key="plugins.generic.customBlockManager.settings">Ρυθμίσεις</message>
	<message key="plugins.generic.customBlockManager.blockName">Όνομα Block</message>
	<message key="plugins.generic.customBlockManager.action">Ενέργεια</message>
	<message key="plugins.generic.customBlockManager.delete">Διαγραφή</message>
	<message key="plugins.generic.customBlockManager.addBlock">Προσθήκη Block</message>

	<message key="plugins.generic.customBlock.content">Περιεχόμενο</message>
	<message key="plugins.generic.customBlock.saved">Το περιεχόμενο του Block έχει αποθηκευτεί.</message>
	<message key="plugins.generic.customBlock.nameSuffix">(Custom Block Plugin)</message>
	<message key="plugins.generic.customBlock.description">Αυτό είναι block δημιουργημένο από χρήστη.</message>
	<message key="plugins.generic.customBlock.editContent">Επεξεργασία περιεχομένου πλαϊνής μπάρας</message>
	<message key="plugins.generic.customBlock.contentRequired">Απαιτείται η ύπαρξη περιεχομένου. Αν επιθυμείτε να διαγράψετε αυτό το block, μπορείτε να το κάνετε με το Block Manager Plugin ή απο-επιλέγοντας το block στο Βήμα 5 στην Οργάνωση του περιοδικού.</message>
	<message key="plugins.generic.customBlock.edit">Επεξεργασία</message>
	<message key="plugins.generic.customBlockManager.description">Αυτό το Plugin σας επιτρέπει να διαμορφώνετε δικά σας block στην πλαϊνή μπάρα. Μπορείτε να διαμορφώσετε κατάλληλα τα block μέσω των ρυθμίσεων κάθε plugin που δημιουργείτε εδώ.</message>
</locale>


text:
 Browser based interface to manage your Vagrant environments

Boxupp is built over Vagrant and exposes all the functionalities offered by Vagrant and much more inside your web-browser.

Vagrant is an awesome tool to manage the development environments and we want to enhance the experience even further.

### Features:

#### 1) Inbuilt Vagrant Intelligence
You do not need to learn Vagrant syntax. Boxupp knows what vagrant commands to run to bring your dashboard box
states in sync with the real infrastructure at the backend. Forget infrastructure management issues and focus on coding instead.

#### 2) Puppet Forge Integration
Boxupp supports around 2.8k+ modules from Puppet Forge. You can search and download a required module from the Puppet Forge
repository and link it with any of the boxes defined in your Boxupp Dashboard.

#### 3) Manage multiple workspaces in your browser
Super easy to create workspaces using providers viz. Docker and VirtualBox. Navigate effortlessly from one workspace to the
other. Define boxes, modules, scripts within your workspaces and much more.

#### 4) Github integration
Share your infrastructure as code on Github from within your Boxupp's control panel. This will help you collaborate, get feedback,
get contributions from your team members or peer groups which will help in seamless development across teams.

### Usage Instructions

1) Clone the repository on your local machine

    git clone https://www.github.com/boxupp/boxupp.git
2) Change to the cloned directory

    cd boxupp
3) Package in Maven

    mvn package
4) Run the Boxupp program

    cd target\boxuppzipdir\bin
    startup.bat OR ./startup.sh

5) Start boxupp in your browser at

    http://localhost:<<PORT_NUMBER configured in config.xml>> (By Default 8585)


text:
<?php

use Oro\Bundle\WorkflowBundle\Form\Type\WorkflowStepType;
use Oro\Bundle\WorkflowBundle\Form\Type\WorkflowTransitionType;

return array(
    'first_workflow' => array(
        'label' => 'First Workflow',
        'enabled' => true,
        'start_step' => 'first_step',
        'steps' => array(
            'first_step' => array(
                'label' => 'First Step',
                'template' => 'My:Custom:template.html.twig',
                'order' => 1,
                'is_final' => true,
                'form_type' => WorkflowStepType::NAME,
                'form_options' => array(
                    'attribute_fields' => array(
                        'first_attribute' => array(
                            'label' => 'First Attribute',
                            'form_type' => 'text',
                            'options' => array(
                                'required' => 1
                            )
                        )
                    )
                ),
                'allowed_transitions' => array('first_transition'),
                'view_attributes' => array(
                    array('attribute' => 'first_attribute', 'view_type' => 'custom_view_type'),
                    array('path' => '$first_attribute.name', 'label' => 'Custom label'),
                    array('attribute' => 'first_attribute'),
                ),
            )
        ),
        'attributes' => array(
            'first_attribute' => array(
                'label' => 'First Attribute',
                'type' => 'object',
                'options' => array(
                    'class' => 'DateTime'
                )
            )
        ),
        'transitions' => array(
            'first_transition' => array(
                'label' => 'First Transition',
                'step_to' => 'first_step',
                'is_start' => true,
                'is_hidden' => true,
                'is_unavailable_hidden' => true,
                'message' => 'Test message',
                'transition_definition' => 'first_transition_definition',
                'frontend_options' => array(
                    'class' => 'foo'
                ),
                'form_type' => 'custom_workflow_transition',
                'form_options' => array(
                    'attribute_fields' => array(
                        'first_attribute' => array(
                            'label' => 'First Attribute',
                            'form_type' => 'text',
                            'options' => array(
                                'required' => 1
                            )
                        )
                    )
                ),
            )
        ),
        'transition_definitions' => array(
            'first_transition_definition' => array(
                'conditions' => array(
                    '@and' => array(
                        '@true' => null,
                        '@or' => array(
                            'parameters' => array(
                                '@true' => null,
                                '@equals' => array(
                                    'parameters' => array(1, 1),
                                    'message' => 'Not equals'
                                )
                            )
                        ),
                        'message' => 'Fail upper level'
                    )
                ),
                'post_actions' => array(
                    array(
                        '@custom_post_action' => null

                    )
                ),
                'init_actions' => array(
                    array(
                        '@custom_post_action' => null

                    )
                )
            )
        ),
        'type' => 'entity'
    ),
    'second_workflow' => array(
        'label' => 'Second Workflow',
        'enabled' => false,
        'start_step' => 'second_step',
        'steps' => array(
            'second_step' => array(
                'label' => 'Second Step',
                'template' => null,
                'order' => 1,
                'is_final' => false,
                'form_type' => 'custom_workflow_step',
                'allowed_transitions' => array(),
                'form_options' => array(),
                'view_attributes' => array(),
            )
        ),
        'attributes' => array(),
        'transitions' => array(
            'second_transition' => array(
                'label' => 'Second Transition',
                'step_to' => 'second_step',
                'is_start' => false,
                'is_hidden' => false,
                'is_unavailable_hidden' => false,
                'transition_definition' => 'second_transition_definition',
                'frontend_options' => array(
                    'icon' => 'bar'
                ),
                'form_type' => WorkflowTransitionType::NAME,
                'form_options' => array(),
            )
        ),
        'transition_definitions' => array(
            'second_transition_definition' => array(
                'conditions' => array(),
                'post_actions' => array(),
                'init_actions' => array()
            )
        ),
        'type' => 'wizard'
    )
);


text:
<?php

namespace phpDocumentor\Reflection\Php\Factory;

use Mockery as m;
use phpDocumentor\Reflection\Php\Property as PropertyElement;
use phpDocumentor\Reflection\Php\Constant as ConstantElement;
use phpDocumentor\Reflection\Php\Method as MethodElement;
use phpDocumentor\Reflection\Php\Class_ as ClassElement;
use phpDocumentor\Reflection\Fqsen;
use phpDocumentor\Reflection\Php\StrategyContainer;
use phpDocumentor\Reflection\DocBlock as DocBlockElement;
use PhpParser\Node\Const_;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_ as ClassNode;
use PhpParser\Node\Stmt\ClassConst;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Property as PropertyNode;
use PhpParser\Node\Stmt\PropertyProperty;
use PhpParser\Comment\Doc;
use PhpParser\Node\Stmt\TraitUse;

/**
 * Class Class_Test
 * @coversDefaultClass phpDocumentor\Reflection\Php\Factory\Class_
 * @covers ::<private>
 */
class Class_Test extends TestCase
{
    protected function setUp()
    {
        $this->fixture = new Class_();
    }

    /**
     * @covers ::matches
     */
    public function testMatches()
    {
        $this->assertFalse($this->fixture->matches(new \stdClass()));
        $this->assertTrue($this->fixture->matches(m::mock(ClassNode::class)));
    }

    /**
     * @covers ::create
     */
    public function testSimpleCreate()
    {
        $strategiesMock = m::mock(StrategyContainer::class);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertInstanceOf(ClassElement::class, $class);
        $this->assertEquals('\Space\MyClass', (string)$class->getFqsen());
        $this->assertNull($class->getParent());
        $this->assertTrue($class->isFinal());
        $this->assertTrue($class->isAbstract());
    }

    /**
     * @covers ::create
     */
    public function testClassWithParent()
    {
        $strategiesMock = m::mock(StrategyContainer::class);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();
        $classMock->extends = 'Space\MyParent';

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertInstanceOf(ClassElement::class, $class);
        $this->assertEquals('\Space\MyClass', (string)$class->getFqsen());
        $this->assertEquals('\Space\MyParent', (string)$class->getParent());
    }

    /**
     * @covers ::create
     */
    public function testClassImplementingInterface()
    {
        $strategiesMock = m::mock(StrategyContainer::class);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();
        $classMock->extends = 'Space\MyParent';
        $classMock->implements = [
            new Name('MyInterface')
        ];

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertInstanceOf(ClassElement::class, $class);
        $this->assertEquals('\Space\MyClass', (string)$class->getFqsen());

        $this->assertEquals(
            ['\MyInterface' => new Fqsen('\MyInterface')],
            $class->getInterfaces()
        );
    }

    /**
     * @covers ::create
     */
    public function testWithMethodMembers()
    {
        $method1 = new ClassMethod('MyClass::method1');
        $method1Descriptor = new MethodElement(new Fqsen('\MyClass::method1'));
        $strategiesMock = m::mock(StrategyContainer::class);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();
        $classMock->stmts = [
            $method1
        ];

        $strategiesMock->shouldReceive('findMatching->create')->with($method1, $strategiesMock)->andReturn($method1Descriptor);

        $this->fixture->create($classMock, $strategiesMock);

        /** @var ClassDescriptor $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertInstanceOf(ClassElement::class, $class);
        $this->assertEquals('\Space\MyClass', (string)$class->getFqsen());
        $this->assertEquals(
            ['\MyClass::method1' => $method1Descriptor],
            $class->getMethods()
        );
    }

    /**
     * @covers ::create
     */
    public function testWithPropertyMembers()
    {
        $propertyProperty = new PropertyProperty('\MyClass::$property');
        $property = new PropertyNode(1, [$propertyProperty] );
        $propertyDescriptor = new PropertyElement(new Fqsen('\MyClass::$property'));
        $strategiesMock = m::mock(StrategyContainer::class);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();
        $classMock->stmts = [
            $property
        ];

        $strategiesMock->shouldReceive('findMatching->create')->with(m::any(), $strategiesMock)->andReturn($propertyDescriptor);

        $this->fixture->create($classMock, $strategiesMock);

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertInstanceOf(ClassElement::class, $class);
        $this->assertEquals('\Space\MyClass', (string)$class->getFqsen());
        $this->assertEquals(
            ['\MyClass::$property' => $propertyDescriptor],
            $class->getProperties()
        );
    }

    /**
     * @covers ::create
     */
    public function testWithUsedTraits()
    {
        $trait = new TraitUse([new Name('MyTrait'), new Name('OtherTrait')]);
        $strategiesMock = m::mock(StrategyContainer::class);
        $strategiesMock->shouldReceive('findMatching')->never();
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();
        $classMock->stmts = [
            $trait
        ];

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertEquals(
            [
                '\MyTrait' => new Fqsen('\MyTrait'),
                '\OtherTrait' => new Fqsen('\OtherTrait'),
            ],
            $class->getUsedTraits()
        );
    }

    /**
     * @covers ::create
     */
    public function testWithConstants()
    {
        $const = new Const_('\Space\MyClass::MY_CONST', new Variable('a'));
        $constant = new ClassConst([$const]);

        $result = new ConstantElement(new Fqsen('\Space\MyClass::MY_CONST'));
        $strategiesMock = m::mock(StrategyContainer::class);
        $strategiesMock->shouldReceive('findMatching->create')
            ->with(m::type(ClassConstantIterator::class), $strategiesMock)
            ->andReturn($result);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturnNull();
        $classMock->stmts = [
            $constant
        ];

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $strategiesMock);

        $this->assertEquals(
            [
                '\Space\MyClass::MY_CONST' => $result,
            ],
            $class->getConstants()
        );
    }

    /**
     * @covers ::create
     */
    public function testCreateWithDocBlock()
    {
        $doc = m::mock(Doc::class);
        $classMock = $this->buildClassMock();
        $classMock->shouldReceive('getDocComment')->andReturn($doc);

        $docBlock = new DocBlockElement('');

        $containerMock = m::mock(StrategyContainer::class);
        $containerMock->shouldReceive('findMatching->create')
            ->once()
            ->with($doc, $containerMock)
            ->andReturn($docBlock);

        /** @var ClassElement $class */
        $class = $this->fixture->create($classMock, $containerMock);

        $this->assertSame($docBlock, $class->getDocBlock());
    }

    /**
     * @return m\MockInterface|ClassNode
     */
    private function buildClassMock()
    {
        $classMock = m::mock(ClassNode::class);
        $classMock->fqsen = new Fqsen('\Space\MyClass');
        $classMock->shouldReceive('isFinal')->andReturn(true);
        $classMock->shouldReceive('isAbstract')->andReturn(true);
        return $classMock;
    }
}


text:
use crate::syslog::Error;
use crate::syslog::Facility;
use crate::syslog::Log;
use crate::syslog::Syslog;
use crate::RawDescriptor;

pub struct PlatformSyslog {}

impl Syslog for PlatformSyslog {
    fn new(
        _proc_name: String,
        _facility: Facility,
    ) -> Result<(Option<Box<dyn Log + Send>>, Option<RawDescriptor>), Error> {
        Ok((None, None))
    }
}


text:
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1481639919.375693
_enable_loop = True
_template_filename = u'/home/ubuntu/isproject/map-of-innovation/mapofinnovation/templates/snippets/header.html'
_template_uri = u'/snippets/header.html'
_source_encoding = 'utf-8'
from markupsafe import escape
_exports = []

def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'
\n  \n    \n  \n
\n    MAP\n    ABOUT\n    DOCUMENTATION & LICENSING\n    WIKI\n\t
\n\t
\n\t\t\n    \t\n    \n\t
\n
\n')
        return ''
    finally:
        context.caller_stack._pop_frame()

"""
__M_BEGIN_METADATA
{"source_encoding": "utf-8", "line_map": {"17": 0, "28": 22, "22": 1}, "uri": "/snippets/header.html", "filename": "/home/ubuntu/isproject/map-of-innovation/mapofinnovation/templates/snippets/header.html"}
__M_END_METADATA
"""


text:
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="horizontal"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/item_bg"
              android:gravity="center"
              android:paddingRight="6dp">
    <LinearLayout
            android:layout_width="@dimen/thumbnail_width"
            android:layout_height="wrap_content"
            android:orientation="vertical">

        <ImageView
                android:id="@+id/equipmentImg"
                android:layout_width="@dimen/thumbnail_width"
                android:layout_height="@dimen/thumbnail_height"
                android:layout_gravity="center"
                android:scaleType="centerCrop"
                android:src="@mipmap/ic_action_search"
                android:contentDescription="@string/highlight_image"/>
    </LinearLayout>
    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingLeft="10dp"
            android:paddingTop="5dp"
            android:paddingBottom="5dp"
            android:orientation="vertical">

        <TextView
                android:id="@+id/room_id"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textStyle="bold"
                android:textColor="@color/font"
                android:textSize="@dimen/room_id_size"
                android:paddingBottom="5dp"
                android:text="Phòng 301"/>

        <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

            <TextView
                    android:id="@+id/equipment_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/font"
                    android:gravity="center"
                    android:textSize="@dimen/equipment_name_size"
                    android:text="Projector"/>

            <TextView
                    android:id="@+id/space"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/font"
                    android:gravity="center"
                    android:textSize="@dimen/equipment_name_size"
                    android:text=" - "/>
                <TextView
                android:id="@+id/reason"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="@color/font"
                android:gravity="center"
                android:textSize="@dimen/equipment_name_size"
                android:text="Projector can not start!"/>
        </LinearLayout>

        <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

            <TextView
                    android:id="@+id/time_report"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/font"
                    android:gravity="center"
                    android:textSize="@dimen/equipment_name_size"
                    android:text="15:30"/>

            <TextView
                    android:id="@+id/space1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/font"
                    android:gravity="center"
                    android:textSize="@dimen/equipment_name_size"
                    android:text=" - "/>
            <TextView
                    android:id="@+id/user_report"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="@color/font"
                    android:gravity="center"
                    android:textSize="@dimen/equipment_name_size"
                    android:text="Tran Vinh Quang!"/>
        </LinearLayout>

    </LinearLayout>

</LinearLayout>


text:
desc 'coteditor' do
  latest = github('coteditor', 'CotEditor').first
  version = latest.tag_name
  url = latest.assets.first.browser_download_url
  Latest.new(version: version, url: url)
end