text:
<?php
// This class was automatically generated by a giiant build task
// You should not change it manually as it will be overwritten on next build

namespace common\models\base;

use Yii;

/**
 * This is the base-model class for table "kontragent_persons".
 *
 * @property integer $id
 * @property string $fname
 * @property string $lname
 * @property string $oname
 * @property string $date_new
 * @property string $date_edit
 * @property string $passport_ser
 * @property string $passport_num
 * @property string $contacts
 * @property string $other
 *
 * @property \common\models\BusReservation[] $busReservations
 * @property \common\models\MmKontragentPersonsHasKontragentOrg[] $mmKontragentPersonsHasKontragentOrgs
 * @property \common\models\KontragentOrg[] $kontragentOrgIdKontragentOrgs
 * @property \common\models\TourInfoHasKontragentPersons[] $tourInfoHasKontragentPersons
 * @property \common\models\TourInfo[] $tourInfos
 * @property string $aliasModel
 */
abstract class KontragentPersons extends \yii\db\ActiveRecord
{

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'kontragent_persons';
    }

    /**
     * Alias name of table for crud viewsLists all Area models.
     * Change the alias name manual if needed later
     * @return string
     */
    public function getAliasModel($plural=false)
    {
        if($plural){
            return Yii::t('app', 'KontragentPersons');
        }else{
            return Yii::t('app', 'KontragentPersons');
        }
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['fname', 'lname', 'date_new'], 'required'],
            [['contacts', 'other'], 'string'],
            [['fname', 'lname'], 'string', 'max' => 150],
            [['oname'], 'string', 'max' => 155],
            [['date_new', 'date_edit'], 'string', 'max' => 45],
            [['passport_ser'], 'string', 'max' => 10],
            [['passport_num'], 'string', 'max' => 15]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'Первичный ключ. Информация о пользоателях, являющихся физическими лицами.'),
            'fname' => Yii::t('app', 'Фамилия'),
            'lname' => Yii::t('app', 'Имя'),
            'oname' => Yii::t('app', 'Отчество, необязательно'),
            'date_new' => Yii::t('app', 'Date New'),
            'date_edit' => Yii::t('app', 'Date Edit'),
            'passport_ser' => Yii::t('app', 'Passport Ser'),
            'passport_num' => Yii::t('app', 'Passport Num'),
            'contacts' => Yii::t('app', 'Contacts'),
            'other' => Yii::t('app', 'Other'),
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeHints()
    {
        return array_merge(
            parent::attributeHints(),
            [
            'id' => Yii::t('app', 'Первичный ключ. Информация о пользоателях, являющихся физическими лицами.'),
            'fname' => Yii::t('app', 'Фамилия'),
            'lname' => Yii::t('app', 'Имя'),
            'oname' => Yii::t('app', 'Отчество, необязательно'),
            'date_new' => Yii::t('app', 'Date New'),
            'date_edit' => Yii::t('app', 'Date Edit'),
            'passport_ser' => Yii::t('app', 'Passport Ser'),
            'passport_num' => Yii::t('app', 'Passport Num'),
            'contacts' => Yii::t('app', 'Contacts'),
            'other' => Yii::t('app', 'Other'),
            ]);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getBusReservations()
    {
        return $this->hasMany(\common\models\BusReservation::className(), ['kontragent_persons_id' => 'id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getMmKontragentPersonsHasKontragentOrgs()
    {
        return $this->hasMany(\common\models\MmKontragentPersonsHasKontragentOrg::className(), ['kontragent_persons_id_kontragent_persons' => 'id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getKontragentOrgIdKontragentOrgs()
    {
        return $this->hasMany(\common\models\KontragentOrg::className(), ['id' => 'kontragent_org_id_kontragent_org'])->viaTable('mm_kontragent_persons_has_kontragent_org', ['kontragent_persons_id_kontragent_persons' => 'id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getTourInfoHasKontragentPersons()
    {
        return $this->hasMany(\common\models\TourInfoHasKontragentPersons::className(), ['kontragent_persons_id' => 'id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getTourInfos()
    {
        return $this->hasMany(\common\models\TourInfo::className(), ['id' => 'tour_info_id'])->viaTable('tour_info_has_kontragent_persons', ['kontragent_persons_id' => 'id']);
    }

}


text:
<?php
/**
 * File XboxApiException.php
 */

namespace Nerdery\Xbox\Bundle\ApiBundle\Exception;

/**
 * Class XboxApiException
 *
 * Throw this exception for errors occurring during communication with the api
 *
 * @author Nate Brunette <n@tebru.net>
 * @package Nerdery\Xbox\Bundle\ApiBundle\Exception
 */
class XboxApiException extends \RuntimeException
{
    /**
     * Error is a Soap error
     */
    const ERROR_CODE_SOAP = 1;

    /**
     * Error is an api error
     */
    const ERROR_CODE_API = 2;

    /**#@+
     * Api error messages
     */
    const ERROR_API_KEY_INVALID = 'The api key is invalid';
    const ERROR_ID_INVALID = 'The id is invalid';
    /**#@-*/
}

redpajama_set_name: RedPajamaGithub


text:
package pubsub

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	_ "github.com/hellodudu/Ultimate/proto/arena"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package


text:
/* globals define, $ */
/*jshint browser: true*/

define([
    'css!./styles/GenericAttributeEditorWidget.css'
], function (
) {
    'use strict';

    var GenericAttributeEditorWidget,
        WIDGET_CLASS = 'generic-attribute-editor';

    GenericAttributeEditorWidget = function (logger, container) {
        this._logger = logger.fork('Widget');

        this.$el = container;
        this.$table = $('<table>');
        this.$content = $('<tbody>');

        this.$table.addClass('table table-hover');
        this.$el.append(this.$table);
        this.$table.append(this.$content);

        this._initialize();

        this._logger.debug('ctor finished');
    };

    GenericAttributeEditorWidget.prototype._initialize = function () {
        // set widget class
        this.$el.addClass(WIDGET_CLASS);
    };

    GenericAttributeEditorWidget.prototype.addRow = function (name, content) {
        var row = $('<tr>');
        var data = $('<td>');
        data.text(name);
        row.append(data);

        data = $('<td>');
        data.text(content);
        row.append(data.text(content));
        this.$content.append(row);

        // Add click listener
        data.on('click', () => this.editValue(name, content, data));
        return row;
    };

    GenericAttributeEditorWidget.prototype.editValue = function (attr, value, html) {
        var position = html[0].getBoundingClientRect();
        var width = Math.max(position.right-position.left, 20);

        html.editInPlace({
            enableEmpty: true,
            value: value,
            css: {
                'z-index': 10000,
                'width': width,
                'xmlns': 'http://www.w3.org/1999/xhtml'
            },
            onChange: (oldValue, newValue) => {
                this.setAttribute(attr, newValue);
            }
        });

    };

    // Adding/Removing/Updating items
    GenericAttributeEditorWidget.prototype.addNode =
    GenericAttributeEditorWidget.prototype.updateNode = function (desc) {
        this.$content.empty();

        // Render the attributes in a table
        var names = Object.keys(desc.attributes);
        names.forEach(name => {
            var value = desc.attributes[name].value;
            this.addRow(name, value);
        });

        // add 'no attributes' msg if needed
        if (names.length === 0) {
            var row = this.addRow('no configurable attributes');
            row.addClass('empty-msg');
        }
    };

    GenericAttributeEditorWidget.prototype.removeNode = function () {
        this.$content.empty();
        var row = this.addRow('The current node has been deleted');
        row.addClass('empty-msg');
    };

    /* * * * * * * * Visualizer life cycle callbacks * * * * * * * */
    GenericAttributeEditorWidget.prototype.destroy = function () {
    };

    GenericAttributeEditorWidget.prototype.onActivate = function () {
        this._logger.debug('GenericAttributeEditorWidget has been activated');
    };

    GenericAttributeEditorWidget.prototype.onDeactivate = function () {
        this._logger.debug('GenericAttributeEditorWidget has been deactivated');
    };

    return GenericAttributeEditorWidget;
});


text:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

    <item
        android:left="@dimen/tab_space"
        android:right="@dimen/tab_space">
        <shape android:shape="rectangle" >
            <gradient
                android:angle="-90"
                android:endColor="@color/tabDark"
                android:startColor="@color/tabMedium" />
        </shape>
    </item>
    <!-- draw tab background -->
    <item
        android:bottom="26sp"
        android:top="1sp">
        <shape android:shape="rectangle" >
            <solid android:color="@color/tabTransparent" />
        </shape>
    </item>
    <item
        android:bottom="2sp"
        android:left="2sp"
        android:right="2sp"
        android:top="3sp">
        <shape android:shape="rectangle" >
            <corners
                android:bottomLeftRadius="@dimen/corner_radius"
                android:bottomRightRadius="@dimen/corner_radius"
                android:topLeftRadius="@dimen/corner_radius"
                android:topRightRadius="@dimen/corner_radius" />

            <gradient
                android:angle="-90"
                android:endColor="#20ffffff"
                android:startColor="#20ffffff" />
        </shape>
    </item>

</layer-list>