text:
package quickfix.fix44.component;
import quickfix.FieldNotFound;

import quickfix.Group;

public class PositionQty extends quickfix.MessageComponent
{

  static final long serialVersionUID = 20050617;
  public static final String MSGTYPE = "";

  private int[] componentFields = {  };
  protected int[] getFields() { return componentFields; }
  private int[] componentGroups = { 702,  };
  protected int[] getGroupFields() { return componentGroups; }

  public PositionQty()
  {
    super();
  }

  public void set(quickfix.field.NoPositions value)
  {
    setField(value);
  }

  public quickfix.field.NoPositions get(quickfix.field.NoPositions  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NoPositions getNoPositions() throws FieldNotFound
  {
    quickfix.field.NoPositions value = new quickfix.field.NoPositions();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NoPositions field)
  {
    return isSetField(field);
  }

  public boolean isSetNoPositions()
  {
    return isSetField(702);
  }

  public static class NoPositions extends Group {
    static final long serialVersionUID = 20050617;
    public NoPositions() {
        super(702, 703,
            new int[] {703, 704, 705, 706, 539,  0 } );
    }

  public void set(quickfix.field.PosType value)
  {
    setField(value);
  }

  public quickfix.field.PosType get(quickfix.field.PosType  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.PosType getPosType() throws FieldNotFound
  {
    quickfix.field.PosType value = new quickfix.field.PosType();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.PosType field)
  {
    return isSetField(field);
  }

  public boolean isSetPosType()
  {
    return isSetField(703);
  }

  public void set(quickfix.field.LongQty value)
  {
    setField(value);
  }

  public quickfix.field.LongQty get(quickfix.field.LongQty  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.LongQty getLongQty() throws FieldNotFound
  {
    quickfix.field.LongQty value = new quickfix.field.LongQty();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.LongQty field)
  {
    return isSetField(field);
  }

  public boolean isSetLongQty()
  {
    return isSetField(704);
  }

  public void set(quickfix.field.ShortQty value)
  {
    setField(value);
  }

  public quickfix.field.ShortQty get(quickfix.field.ShortQty  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.ShortQty getShortQty() throws FieldNotFound
  {
    quickfix.field.ShortQty value = new quickfix.field.ShortQty();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.ShortQty field)
  {
    return isSetField(field);
  }

  public boolean isSetShortQty()
  {
    return isSetField(705);
  }

  public void set(quickfix.field.PosQtyStatus value)
  {
    setField(value);
  }

  public quickfix.field.PosQtyStatus get(quickfix.field.PosQtyStatus  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.PosQtyStatus getPosQtyStatus() throws FieldNotFound
  {
    quickfix.field.PosQtyStatus value = new quickfix.field.PosQtyStatus();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.PosQtyStatus field)
  {
    return isSetField(field);
  }

  public boolean isSetPosQtyStatus()
  {
    return isSetField(706);
  }

  public void set(quickfix.fix44.component.NestedParties component)
  {
    setComponent(component);
  }

  public quickfix.fix44.component.NestedParties get(quickfix.fix44.component.NestedParties  component) throws FieldNotFound
  {
    getComponent(component);
    return component;
  }

  public quickfix.fix44.component.NestedParties getNestedParties() throws FieldNotFound
  {
    quickfix.fix44.component.NestedParties component = new quickfix.fix44.component.NestedParties();
    getComponent(component);
    return component;
  }

  public void set(quickfix.field.NoNestedPartyIDs value)
  {
    setField(value);
  }

  public quickfix.field.NoNestedPartyIDs get(quickfix.field.NoNestedPartyIDs  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound
  {
    quickfix.field.NoNestedPartyIDs value = new quickfix.field.NoNestedPartyIDs();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NoNestedPartyIDs field)
  {
    return isSetField(field);
  }

  public boolean isSetNoNestedPartyIDs()
  {
    return isSetField(539);
  }

  public static class NoNestedPartyIDs extends Group {
    static final long serialVersionUID = 20050617;
    public NoNestedPartyIDs() {
        super(539, 524,
            new int[] {524, 525, 538, 804,  0 } );
    }

  public void set(quickfix.field.NestedPartyID value)
  {
    setField(value);
  }

  public quickfix.field.NestedPartyID get(quickfix.field.NestedPartyID  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NestedPartyID getNestedPartyID() throws FieldNotFound
  {
    quickfix.field.NestedPartyID value = new quickfix.field.NestedPartyID();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NestedPartyID field)
  {
    return isSetField(field);
  }

  public boolean isSetNestedPartyID()
  {
    return isSetField(524);
  }

  public void set(quickfix.field.NestedPartyIDSource value)
  {
    setField(value);
  }

  public quickfix.field.NestedPartyIDSource get(quickfix.field.NestedPartyIDSource  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NestedPartyIDSource getNestedPartyIDSource() throws FieldNotFound
  {
    quickfix.field.NestedPartyIDSource value = new quickfix.field.NestedPartyIDSource();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NestedPartyIDSource field)
  {
    return isSetField(field);
  }

  public boolean isSetNestedPartyIDSource()
  {
    return isSetField(525);
  }

  public void set(quickfix.field.NestedPartyRole value)
  {
    setField(value);
  }

  public quickfix.field.NestedPartyRole get(quickfix.field.NestedPartyRole  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NestedPartyRole getNestedPartyRole() throws FieldNotFound
  {
    quickfix.field.NestedPartyRole value = new quickfix.field.NestedPartyRole();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NestedPartyRole field)
  {
    return isSetField(field);
  }

  public boolean isSetNestedPartyRole()
  {
    return isSetField(538);
  }

  public void set(quickfix.field.NoNestedPartySubIDs value)
  {
    setField(value);
  }

  public quickfix.field.NoNestedPartySubIDs get(quickfix.field.NoNestedPartySubIDs  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NoNestedPartySubIDs getNoNestedPartySubIDs() throws FieldNotFound
  {
    quickfix.field.NoNestedPartySubIDs value = new quickfix.field.NoNestedPartySubIDs();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NoNestedPartySubIDs field)
  {
    return isSetField(field);
  }

  public boolean isSetNoNestedPartySubIDs()
  {
    return isSetField(804);
  }

  public static class NoNestedPartySubIDs extends Group {
    static final long serialVersionUID = 20050617;
    public NoNestedPartySubIDs() {
        super(804, 545,
            new int[] {545, 805,  0 } );
    }

  public void set(quickfix.field.NestedPartySubID value)
  {
    setField(value);
  }

  public quickfix.field.NestedPartySubID get(quickfix.field.NestedPartySubID  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NestedPartySubID getNestedPartySubID() throws FieldNotFound
  {
    quickfix.field.NestedPartySubID value = new quickfix.field.NestedPartySubID();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NestedPartySubID field)
  {
    return isSetField(field);
  }

  public boolean isSetNestedPartySubID()
  {
    return isSetField(545);
  }

  public void set(quickfix.field.NestedPartySubIDType value)
  {
    setField(value);
  }

  public quickfix.field.NestedPartySubIDType get(quickfix.field.NestedPartySubIDType  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NestedPartySubIDType getNestedPartySubIDType() throws FieldNotFound
  {
    quickfix.field.NestedPartySubIDType value = new quickfix.field.NestedPartySubIDType();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NestedPartySubIDType field)
  {
    return isSetField(field);
  }

  public boolean isSetNestedPartySubIDType()
  {
    return isSetField(805);
  }

  }

  }

  }

}


text:
package goshopify

import (
	"reflect"
	"testing"

	"gopkg.in/jarcoal/httpmock.v1"
)

func assetTests(t *testing.T, asset Asset) {
	expectedKey := "templates/index.liquid"
	if asset.Key != expectedKey {
		t.Errorf("Asset.Key returned %+v, expected %+v", asset.Key, expectedKey)
	}
}

func TestAssetList(t *testing.T) {
	setup()
	defer teardown()

	httpmock.RegisterResponder(
		"GET",
		"https://fooshop.myshopify.com/admin/themes/1/assets.json",
		httpmock.NewStringResponder(
			200,
			`{"assets": [{"key":"assets\/1.liquid"},{"key":"assets\/2.liquid"}]}`,
		),
	)

	assets, err := client.Asset.List(1, nil)
	if err != nil {
		t.Errorf("Asset.List returned error: %v", err)
	}

	expected := []Asset{{Key: "assets/1.liquid"}, {Key: "assets/2.liquid"}}
	if !reflect.DeepEqual(assets, expected) {
		t.Errorf("Asset.List returned %+v, expected %+v", assets, expected)
	}
}

func TestAssetGet(t *testing.T) {
	setup()
	defer teardown()

	httpmock.RegisterResponder(
		"GET",
		"https://fooshop.myshopify.com/admin/themes/1/assets.json?asset%5Bkey%5D=foo%2Fbar.liquid&theme_id=1",
		httpmock.NewStringResponder(
			200,
			`{"asset": {"key":"foo\/bar.liquid"}}`,
		),
	)

	asset, err := client.Asset.Get(1, "foo/bar.liquid")
	if err != nil {
		t.Errorf("Asset.Get returned error: %v", err)
	}

	expected := &Asset{Key: "foo/bar.liquid"}
	if !reflect.DeepEqual(asset, expected) {
		t.Errorf("Asset.Get returned %+v, expected %+v", asset, expected)
	}
}

func TestAssetUpdate(t *testing.T) {
	setup()
	defer teardown()

	httpmock.RegisterResponder(
		"PUT",
		"https://fooshop.myshopify.com/admin/themes/1/assets.json",
		httpmock.NewBytesResponder(
			200,
			loadFixture("asset.json"),
		),
	)

	asset := Asset{
		Key:   "templates/index.liquid",
		Value: "content",
	}

	returnedAsset, err := client.Asset.Update(1, asset)
	if err != nil {
		t.Errorf("Asset.Update returned error: %v", err)
	}
	if returnedAsset == nil {
		t.Errorf("Asset.Update returned nil")
	}
}

func TestAssetDelete(t *testing.T) {
	setup()
	defer teardown()

	httpmock.RegisterResponder(
		"DELETE",
		"https://fooshop.myshopify.com/admin/themes/1/assets.json?asset[key]=foo/bar.liquid",
		httpmock.NewStringResponder(200, "{}"),
	)

	err := client.Asset.Delete(1, "foo/bar.liquid")
	if err != nil {
		t.Errorf("Asset.Delete returned error: %v", err)
	}
}

redpajama_set_name: RedPajamaGithub


text:
from __future__ import (print_function, absolute_import, division,
                        unicode_literals)

import numpy as np
from astropy.convolution import Gaussian2DKernel, Kernel2D
from astropy.convolution.kernels import _round_up_to_odd_integer
from astropy.modeling import Fittable2DModel, Parameter
from collections import OrderedDict
from astropy import units as u

def core_kernel(lag, x_size, y_size):
    '''
    Core Kernel for convolution.

    Parameters
    ----------

    lag : int
        Size of the lag. Set the kernel size.
    x_size : int
        Grid size to use in the x direction
    y_size_size : int
        Grid size to use in the y_size direction

    Returns
    -------

    kernel : numpy.ndarray
        Normalized kernel.
    '''

    return Gaussian2DKernel(lag / (2 * np.sqrt(2)))

def annulus_kernel(lag, diam_ratio, x_size, y_size):
    '''

    Annulus Kernel for convolution.

    Parameters
    ----------
    lag : int
        Size of the lag. Set the kernel size.
    diam_ratio : float
                 Ratio between kernel diameters.

    Returns
    -------

    kernel : numpy.ndarray
        Normalized kernel.
    '''

    diff_factor = 2 * np.sqrt(2)

    return AnnulusKernel(lag / diff_factor, diam_ratio)

class AnnulusKernel(Kernel2D):
    """
    Two-dimensional Annulus with a Gaussian profile.
    """
    _separable = True
    _is_bool = False

    def __init__(self, stddev, ratio,
                 support_scaling=8, **kwargs):

        amp = 1. / (2 * np.pi * stddev**2 * (ratio**2 - 1))
        self._model = GaussianAnnulus2D(amp, 0, 0, stddev, ratio)

        self._default_size = _round_up_to_odd_integer(8 * stddev)
        super(AnnulusKernel, self).__init__(**kwargs)
        self._truncation = np.abs(1. - self._array.sum())

class GaussianAnnulus2D(Fittable2DModel):
    r"""
    Two dimensional Annulus model with a Gaussian profile.

    Parameters
    ----------
    amplitude : float
        Amplitude of the Gaussian.
    x_mean : float
        Mean of the Gaussian in x.
    y_mean : float
        Mean of the Gaussian in y.
    stddev : float or None
        Standard deviation of the Gaussian.
    ratio : float, optional
        Ratio between the inner and outer widths. This sets the width of the
        annulus.

    Notes
    -----

    """

    amplitude = Parameter(default=1)
    x_mean = Parameter(default=0)
    y_mean = Parameter(default=0)
    stddev = Parameter(default=1)
    ratio = Parameter(default=1.0)

    def __init__(self, amplitude=amplitude.default, x_mean=x_mean.default,
                 y_mean=y_mean.default, stddev=None, ratio=None,
                 **kwargs):

        if stddev is None:
            stddev = self.__class__.stddev.default

        # kwargs.setdefault('bounds', {})
        # kwargs['bounds'].setdefault('stddev', (FLOAT_EPSILON, None))

        super(GaussianAnnulus2D, self).__init__(
            amplitude=amplitude, x_mean=x_mean, y_mean=y_mean,
            stddev=stddev, ratio=ratio, **kwargs)

    def bounding_box(self, factor=5.5):
        """
        Tuple defining the default ``bounding_box`` limits in each dimension,
        ``((y_low, y_high), (x_low, x_high))``

        The default offset from the mean is 5.5-sigma, corresponding
        to a relative error < 1e-7. The limits are adjusted for rotation.

        Parameters
        ----------
        factor : float, optional
            The multiple of `stddev` used to define the limits.
            The default is 5.5.

        """

        a = factor * self.stddev

        dy = dx = a

        return ((self.y_mean - dy, self.y_mean + dy),
                (self.x_mean - dx, self.x_mean + dx))

    @staticmethod
    def evaluate(x, y, amplitude, x_mean, y_mean, stddev, ratio):
        """Two dimensional Gaussian Annulus function"""

        inner = np.exp(-(x ** 2. + y ** 2.) / (2 * stddev**2))
        outer = np.exp(-(x ** 2. + y ** 2.) / (2 * (ratio * stddev)**2))

        return amplitude * (outer - inner)

    @property
    def input_units(self):
        if self.x_mean.unit is None and self.y_mean.unit is None:
            return None
        else:
            return {'x': self.x_mean.unit,
                    'y': self.y_mean.unit}

    def _parameter_units_for_data_units(self, inputs_unit, outputs_unit):
        # Note that here we need to make sure that x and y are in the same
        # units otherwise this can lead to issues since rotation is not well
        # defined.
        if inputs_unit['x'] != inputs_unit['y']:
            raise u.UnitsError("Units of 'x' and 'y' inputs should match")
        return OrderedDict([('x_mean', inputs_unit['x']),
                            ('y_mean', inputs_unit['x']),
                            ('stddev', inputs_unit['x']),
                            ('ratio', u.dimensionless_unscaled),
                            ('amplitude', outputs_unit['z'])])


text:
<?php

namespace app\controllers;

use app\components\SocioService;
use app\models\Socio;
use app\models\Debito;
use app\models\SocioDebito;
use app\models\Movimiento;
use app\models\SocioSearch;
use mPDF;
use Yii;
use yii\filters\VerbFilter;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\web\UploadedFile;
use yii\helpers\ArrayHelper;
use yii\filters\AccessControl;

/**
 * SocioController implements the CRUD actions for Socio model.
 */
class SocioController extends BaseController {

	public function behaviors() {
		return [
			'access' => [
                'class' => AccessControl::className(),
                //'only' => ['logout'],
                'rules' => [
                    [
                        //'actions' => ['logout'],
                        'allow' => true,
                        'roles' => ['@'],
                    ],
                ],
            ],
			'verbs' => [
				'class' => VerbFilter::className(),
				'actions' => [
					'delete' => ['post'],
				],
			],
		];
	}

	public function actionIndex() {
		$searchModel = new SocioSearch();
		$dataProvider = $searchModel->search(Yii::$app->request->queryParams);

		return $this->render('index', [
			'searchModel' => $searchModel,
			'dataProvider' => $dataProvider,
		]);
	}

	public function actionView($id) {

		$model = $this->findModel($id);
		$service = new SocioService();

		//trae todos los debitos de los socios
		$dataProviderSocioDebito = $service->findSocioDebitoById($id);

		//calcular edad
		$model->edad = $service->calcularEdad($model->fecha_nacimiento);
		//calcular antiguedad
		$model->antiguedad = $service->calcularAntiguedad($model->fecha_alta);

		//doy vuelta las fechas
		$model->fecha_nacimiento = date('d-m-Y', strtotime($model->fecha_nacimiento));
		$model->fecha_alta = date('d-m-Y', strtotime($model->fecha_alta));

        $aSearch = array(
            'idSocio' => $model->id,
        );

		//estado de cuenta
		$modelM = new Movimiento();
		$dataProvider = $modelM->buscarSocio($aSearch);
    	$deuda = $modelM->getDeudaTotalBySocio($model->id,"codigo_socio");

		return $this->render('view', [
			'model' => $model,
			'dataProviderSocioDebito' => $dataProviderSocioDebito,
			'dataProvider' => $dataProvider,
			'deuda' => $deuda,
		]);
	}

	/**
	 * Creates a new Socio model.
	 * If creation is successful, the browser will be redirected to the 'view' page.
	 * @return mixed
	 */
	public function actionCreate() {

		$model = new Socio();

		$service = new SocioService();

		if ($model->load(Yii::$app->request->post())) {

			/*** SUBIR FOTO ***/
			$model->file = UploadedFile::getInstance($model, 'file');

			if ($model->file!=""){

				$model->file->saveAs(Yii::$app->basePath . '/web/fotos/' . $model->dni . '.' . $model->file->extension);

				$model->nombre_foto = $model->dni . '.' . $model->file->extension;
			}
			/*--FIN---*/

			$model->fecha_alta = date('Y-m-d', strtotime($model->fecha_alta)); // da vuelta la fecha a mysql

			$model->fecha_nacimiento = date('Y-m-d', strtotime($model->fecha_nacimiento)); // da vuelta la fecha a mysql

			if (!$model->save()) {
				// si no guarda tira error
				throw new \yii\web\HttpException(400, 'Error al guardar Socio');

			}
			else{

				try {

						// guardo la matricula con el mismo id del socio
						$socioM = Socio::find()->where(['id' => $model->id])->one();
						$socioM->matricula = $model->id;
						$socioM->save();

						// GUARDO LOS DEBITOS EN LA TABLA SOCIO DEBITO
						$post = Yii::$app->request->post();

						if (!empty($post['concepto'])){

							foreach ($post['concepto'] as $key => $value) {
								$socioDebito = new SocioDebito();
								$socioDebito->id_socio = $model->id;
								$socioDebito->id_debito = $post['id'][$key];
								$socioDebito->save();

							}

						}

				} catch (Exception $e) {

					echo "ERROR GUARDAR DEBITOS SOCIOS" . $e->menssage;die;
				}

				return $this->redirect(['view', 'id' => $model->id]);
			}

		} else {

			//fecha de alta
			date_default_timezone_set('America/Buenos_Aires');

       		$model->fecha_alta = date('d-m-Y',time());

			return $this->render('create', [
				'model' => $model,
			]);
		}
	}

	public function actionAgregarSocioDebito() {

		$post = Yii::$app->request->post();

		$model = new SocioDebito();

		$model->id_debito = $post['id_debito'];
		$model->id_socio = $post['id_socio'];

		if (!$model->save()){
			throw new NotFoundHttpException('The requested page does not exist.');die;
		}
	}

	public function actionDeleteds() {

		$post = Yii::$app->request->post();

		$id = $post['id'];
		SocioDebito::deleteAll(array('id' => $id));

		//return $this->redirect(['create']);
	}

	/**
	 * Updates an existing Socio model.
	 * If update is successful, the browser will be redirected to the 'view' page.
	 * @param integer $id
	 * @return mixed
	 */
	public function actionUpdate($id) {

		$model = $this->findModel($id);

		$service = new SocioService();

		if ($model->load(Yii::$app->request->post())) {

			/*** SUBIR FOTO ***/
			$model->file = UploadedFile::getInstance($model, 'file');

			if ($model->file!=""){

				$model->file->saveAs(Yii::$app->basePath . '/web/fotos/' . $model->dni . '.' . $model->file->extension);

				$model->nombre_foto = $model->dni . '.' . $model->file->extension;

			}
			/*--FIN---*/

			if ($model->fecha_alta!=""){

				$model->fecha_alta = date('Y-m-d', strtotime($model->fecha_alta)); // da vuelta la fecha a mysql

			}

			if ($model->fecha_baja!=""){

				$model->fecha_baja = date('Y-m-d', strtotime($model->fecha_baja)); // da vuelta la fecha a mysql

			}

			if ($model->fecha_nacimiento!=""){

				$model->fecha_nacimiento = date('Y-m-d', strtotime($model->fecha_nacimiento)); // da vuelta la fecha a mysql

			}

			$model->save();

			//PRIMERO BORRO TODOS LOS CONCEPTOS PARA DESPUES AGREGARLOS (PARA QUE NO SE VUELVAN AGREGAR)
			SocioDebito::deleteAll(['id_socio'=>$model->id]);

			// GUARDO LOS DEBITOS EN LA TABLA SOCIO DEBITO
			$post = Yii::$app->request->post();

			if (!empty($post['concepto'])){

				foreach ($post['concepto'] as $key => $value) {

					$socioDebito = new SocioDebito();

					$socioDebito->id_socio = $model->id;

					$socioDebito->id_debito = $post['id'][$key];

					$socioDebito->save();

				}

			}

			return $this->redirect(['view', 'id' => $model->id]);

		} else {

			$nombre_img = $model->nombre_foto;

			$socioDebitos = $service->findSocioDebitoByIdJson($id);
			//calcular edad
			$model->edad = $service->calcularEdad($model->fecha_nacimiento);
			//calcular antiguedad
			$model->antiguedad = $service->calcularAntiguedad($model->fecha_alta);

			return $this->render('update', [
				'model' => $model,
				'nombre_img' => $nombre_img,
				'socioDebitos' => $socioDebitos,
			]);
		}
	}

	/**
	 * Deletes an existing Socio model.
	 * If deletion is successful, the browser will be redirected to the 'index' page.
	 * @param integer $id
	 * @return mixed
	 */
	public function actionDelete($id) {

		$this->findModel($id)->delete();

		return $this->redirect(['index']);
	}

	/**
	 * Deletes an existing Socio debito.
	 */
	public function actionDeleteDebito() {

		$post = Yii::$app->request->post();

		$model = SocioDebito::findOne($post['id']);

		if (!$model->delete()) {
			throw new \yii\web\HttpException(400, 'Error al borrar debito');
		}
	}

	/**
	 * Finds the Socio model based on its primary key value.
	 * If the model is not found, a 404 HTTP exception will be thrown.
	 * @param integer $id
	 * @return Socio the loaded model
	 * @throws NotFoundHttpException if the model cannot be found
	 */
	protected function findModel($id) {
		if (($model = Socio::findOne($id)) !== null) {
			return $model;
		} else {
			throw new NotFoundHttpException('The requested page does not exist.');
		}
	}

	public function actionFichaSocioPdf($id) {

		$service = new SocioService();
		$dataProviderSocioDebito = $service->findSocioDebitoById($id);
		$model = $this->findModel($id);

		//calcular edad
		$model->edad = $service->calcularEdad($model->fecha_nacimiento);

		//calcular antiguedad
		$model->antiguedad = $service->calcularAntiguedad($model->fecha_alta);

		//doy vuelta las fechas
		$model->fecha_nacimiento = date('d-m-Y', strtotime($model->fecha_nacimiento));
		$model->fecha_alta = date('d-m-Y', strtotime($model->fecha_alta));

		$mpdf = new mPDF('utf-8', 'A4');
		$mpdf->WriteHTML($this->renderPartial('_imprimir_socio_ficha', [
			'dataProviderSocioDebito' => $dataProviderSocioDebito,
			'model' => $model,
		]));

		$mpdf->Output();
		exit;
	}

	public function actionCredencial() {

		$model = new Socio();

		$service = new SocioService();

		if ($model->load(Yii::$app->request->post())) {

			$codigo_desde = $model->codigo_desde;

			$codigo_hasta = $model->codigo_hasta;

			$listSocios = $service->findSocioByCodigo($codigo_desde, $codigo_hasta);

			$mpdf = new mPDF('utf-8', 'A4');

			$mpdf->WriteHTML($this->renderPartial('_imprimir_socio_credencial', [
				'listSocios' => $listSocios,
			]));

			$mpdf->Output();

			exit;
		}

		return $this->render('credencial', [
			'model' => $model,
		]);

	}

	public function actionImprimirEstadoCuenta($id) {
		//model socio
		$model = $this->findModel($id);
		//model movimiento
		$modelM = new Movimiento();

		$deuda = $modelM->getDeudaTotalBySocio($id,'codigo_socio');

		$dataProvider = $modelM->getAllEstadoCuentaByCodigoSocio($id);

		$mpdf = new mPDF('utf-8', 'A4');

		$mpdf->WriteHTML($this->renderPartial('_imprimir_estado_cuenta_socio', [
			'model' => $model,
			'dataProvider' => $dataProvider,
			'deuda' => $deuda,
		]));

		$mpdf->Output();

		exit;
	}

	public function actionListadoSocio(){

		if (Yii::$app->request->post()) {

			$post = Yii::$app->request->post();

			// PARAMETROS

			$deporte = $post['deportes'];

			$categoria_desde = $post['categoria_desde'];

			$categoria_hasta = $post['categoria_hasta'];

			$check = $post['check'];

			$this->imprimirListadoSocios($deporte,$categoria_desde,$categoria_hasta,$check);

		}

		$consultaDebitos = Debito::find()->asArray()->all();

		$deportes = ArrayHelper::map($consultaDebitos, 'id', 'concepto');

		return $this->render('_form_listado', [
			'deportes' => $deportes,
		]);

	}

	private function imprimirListadoSocios($deporte,$categoria_desde,$categoria_hasta,$check){

        if ($deporte!=""){ // si seleciona un deporte

        	// busco el concepto del debito
			$debito = Debito::findOne($deporte);

            if ($check == 1){ //todos los socios activos

            	$estado = "ACTIVOS";

                $sql = "SELECT * FROM socio  s
                        JOIN socio_debito sd ON sd.id_socio = s.id
                        WHERE YEAR(fecha_nacimiento) >= '".$categoria_desde."' AND YEAR(fecha_nacimiento) <= '".$categoria_hasta."' AND sd.id_debito = ". $deporte ." AND fecha_baja IS NULL ORDER BY s.matricula ASC" ;

            }else{ // todos los socios dados de baja

            	$estado = "DADOS DE BAJA";

                $sql = "SELECT * FROM socio  s
                        JOIN socio_debito sd ON sd.id_socio = s.id
                        WHERE YEAR(fecha_nacimiento) >= '".$categoria_desde."' AND YEAR(fecha_nacimiento) <= '".$categoria_hasta."' AND sd.id_debito = ". $deporte ." AND fecha_baja IS NOT NULL ORDER BY  s.matricula ASC" ;

            }

        }else{ // si no selecciono deporte (TODOS LOS DEPORTES)

            if ($check == 1){ //todos los socios activos

            	$estado = "ACTIVOS";

                $sql = "SELECT * FROM socio  s
                        WHERE YEAR(fecha_nacimiento) >= '".$categoria_desde."' AND YEAR(fecha_nacimiento) <= '".$categoria_hasta."'  AND fecha_baja IS NULL ORDER BY s.matricula ASC" ;

            }else{ // todos los socios dados de baja

            	$estado = "DADOS DE BAJA";

                $sql = "SELECT * FROM socio  s
                        WHERE YEAR(fecha_nacimiento) >= '".$categoria_desde."' AND YEAR(fecha_nacimiento) <= '".$categoria_hasta."' AND fecha_baja IS NOT NULL ORDER BY s.matricula ASC" ;

            }

        }

        $socio = Socio::findBySql($sql)->all();

        /**
        ****** IMPRIMIR
        **/
        $mpdf = new mPDF('utf-8', 'A4-L');

        $mpdf->WriteHTML($this->renderPartial('_imprimir_listado_socios', [
            'deporte' => $deporte,
            'socio' => $socio,
            'titulo' => $titulo,
            'estado' => $estado,
            'debito' => $debito,
        ]));

        $mpdf->Output();

        exit;

    }

}


text:
module Stupidedi
  module Versions
    module FunctionalGroups
      module FortyTen
        module SegmentDefs

          s = Schema
          e = ElementDefs
          r = ElementReqs

          AK9 = s::SegmentDef.build(:AK9, "Functional Group Response Trailer",
            "To acknowledge acceptance or rejection of a functional group and report the number of included transaction sets from the original trailer, the accepted sets, and the received sets in this functional group",
            e::E715 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
            e::E97  .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
            e::E123 .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
            e::E2   .simple_use(r::Mandatory,  s::RepeatCount.bounded(1)),
            e::E716 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            e::E716 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            e::E716 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            e::E716 .simple_use(r::Optional,   s::RepeatCount.bounded(1)),
            e::E716 .simple_use(r::Optional,   s::RepeatCount.bounded(1)))

        end
      end
    end
  end
end


text:
/*
 *
 * MatchesPage constants
 *
 */

export const DEFAULT_ACTION = 'app/MatchesPage/DEFAULT_ACTION';


text: require('./out/khamake.js');


text:
class AddWmapTables < ActiveRecord::Migration
	def self.up
		create_table :wmap_targets do |t|
			t.string  :host                  # vhost
			t.string  :address, :limit => 16 # unique
			t.string  :address6
			t.integer :port
			t.integer :ssl
			t.integer :selected
		end

		create_table :wmap_requests do |t|
			t.string  :host                  # vhost
			t.string  :address, :limit => 16 # unique
			t.string  :address6
			t.integer :port
			t.integer :ssl
			t.string  :meth, :limit => 32
			t.text    :path
			t.text    :headers
			t.text    :query
			t.text    :body
			t.string  :respcode, :limit => 16
			t.text    :resphead
			t.text    :response
			t.timestamp :created
		end
	end

	def self.down
		drop_table :wmap_targets
		drop_table :wmap_requests
	end
end


text:
'use strict';

var _Object$keys = require('babel-runtime/core-js/object/keys')['default'];

var GraphQLStoreDataHandler = require('./GraphQLStoreDataHandler');
var RelayConnectionInterface = require('./RelayConnectionInterface');
var RelayNodeInterface = require('./RelayNodeInterface');
var RelayQuery = require('./RelayQuery');

var forEachObject = require('fbjs/lib/forEachObject');
var invariant = require('fbjs/lib/invariant');
var warning = require('fbjs/lib/warning');

var ARGUMENTS = /^(\w+)(?:\((.+?)\))?$/;
var ARGUMENT_NAME = /(\w+)(?=\s*:)/;
var DEPRECATED_CALLS = /^\w+(?:\.\w+\(.*?\))+$/;
var DEPRECATED_CALL = /^(\w+)\((.*?)\)$/;
var NODE = RelayConnectionInterface.NODE;
var EDGES = RelayConnectionInterface.EDGES;
var ID = RelayNodeInterface.ID;
var NODE_TYPE = RelayNodeInterface.NODE_TYPE;

/**
 * @internal
 *
 * Given a record-like object, infers fields that could be used to fetch them.
 * Properties that are fetched via fields with arguments can be encoded by
 * serializing the arguments in property keys.
 */
function inferRelayFieldsFromData(data) {
  var fields = [];
  forEachObject(data, function (value, key) {
    if (!GraphQLStoreDataHandler.isMetadataKey(key)) {
      fields.push(inferField(value, key));
    }
  });
  return fields;
}

function inferField(value, key) {
  var metadata = {
    isPlural: false,
    parentType: NODE_TYPE
  };
  var children = undefined;
  if (Array.isArray(value)) {
    var element = value[0];
    if (element && typeof element === 'object') {
      children = inferRelayFieldsFromData(element);
    } else {
      children = [];
    }
    metadata.isPlural = true;
  } else if (typeof value === 'object' && value !== null) {
    children = inferRelayFieldsFromData(value);
  } else {
    children = [];
  }
  if (key === NODE) {
    children.push(RelayQuery.Field.build(ID, null, null, {
      parentType: NODE_TYPE
    }));
  } else if (key === EDGES) {
    children.push(RelayQuery.Field.build('cursor'));
  }
  return buildField(key, children, metadata);
}

function buildField(key, children, metadata) {
  var fieldName = key;
  var calls = null;
  if (DEPRECATED_CALLS.test(key)) {
    process.env.NODE_ENV !== 'production' ? warning(false, 'inferRelayFieldsFromData(): Encountered an optimistic payload with ' + 'a deprecated field call string, `%s`. Use valid GraphQL OSS syntax.', key) : undefined;
    var parts = key.split('.');
    if (parts.length > 1) {
      fieldName = parts.shift();
      calls = parts.map(function (callString) {
        var captures = callString.match(DEPRECATED_CALL);
        !captures ? process.env.NODE_ENV !== 'production' ? invariant(false, 'inferRelayFieldsFromData(): Malformed data key, `%s`.', key) : invariant(false) : undefined;
        var value = captures[2].split(',');
        return {
          name: captures[1],
          value: value.length === 1 ? value[0] : value
        };
      });
    }
  } else {
    var captures = key.match(ARGUMENTS);
    !captures ? process.env.NODE_ENV !== 'production' ? invariant(false, 'inferRelayFieldsFromData(): Malformed data key, `%s`.', key) : invariant(false) : undefined;
    fieldName = captures[1];
    if (captures[2]) {
      try {
        (function () {
          // Relay does not currently have a GraphQL argument parser, so...
          var args = JSON.parse('{' + captures[2].replace(ARGUMENT_NAME, '"$1"') + '}');
          calls = _Object$keys(args).map(function (name) {
            return { name: name, value: args[name] };
          });
        })();
      } catch (error) {
        !false ? process.env.NODE_ENV !== 'production' ? invariant(false, 'inferRelayFieldsFromData(): Malformed or unsupported data key, ' + '`%s`. Only booleans, strings, and numbers are currenly supported, ' + 'and commas are required. Parse failure reason was `%s`.', key, error.message) : invariant(false) : undefined;
      }
    }
  }
  return RelayQuery.Field.build(fieldName, calls, children, metadata);
}

module.exports = inferRelayFieldsFromData;


text:
/**
 * AdGroupCriterion.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
 */

package com.google.api.ads.adwords.axis.v201506.cm;

/**
 * Represents a criterion in an ad group, used with AdGroupCriterionService.
 */
public class AdGroupCriterion  implements java.io.Serializable {
    /* The ad group this criterion is in.
     *                 This field is required
     * and should not be {@code null}. */
    private java.lang.Long adGroupId;

    /* This field is read only and
     * will be ignored when sent to the API. */
    private com.google.api.ads.adwords.axis.v201506.cm.CriterionUse criterionUse;

    /* The criterion part of the ad group criterion.
     *                 This field is required
     * and should not be {@code null}. */
    private com.google.api.ads.adwords.axis.v201506.cm.Criterion criterion;

    /* Labels that are attached to the AdGroupCriterion. To associate
     * an existing {@link Label} to an
     *                 existing {@link AdGroupCriterion}, use {@link AdGroupCriterionService#mutateLabel}
     * with ADD
     *                 operator. To remove an associated {@link Label} from
     * the {@link AdGroupCriterion}, use
     *                 {@link AdGroupCriterionService#mutateLabel} with REMOVE
     * operator. To filter on {@link Label}s,
     *                 use one of {@link Predicate.Operator#CONTAINS_ALL},
     * {@link Predicate.Operator#CONTAINS_ANY},
     *                 {@link Predicate.Operator#CONTAINS_NONE} operators
     * with a list of {@link Label} ids.
     *                 This field is read
     * only and will be ignored when sent to the API for the following {@link
     * Operator}s: REMOVE and SET. */
    private com.google.api.ads.adwords.axis.v201506.cm.Label[] labels;

    /* This Map provides a place to put new features and settings
     * in older versions
     *                 of the AdWords API in the rare instance we need to
     * introduce a new feature in
     *                 an older version.
     *
     *                 It is presently unused.  Do not set a value. */
    private com.google.api.ads.adwords.axis.v201506.cm.String_StringMapEntry[] forwardCompatibilityMap;

    /* Indicates that this instance is a subtype of AdGroupCriterion.
     * Although this field is returned in the response, it is ignored on
     * input
     *                 and cannot be selected. Specify xsi:type instead. */
    private java.lang.String adGroupCriterionType;

    public AdGroupCriterion() {
    }

    public AdGroupCriterion(
           java.lang.Long adGroupId,
           com.google.api.ads.adwords.axis.v201506.cm.CriterionUse criterionUse,
           com.google.api.ads.adwords.axis.v201506.cm.Criterion criterion,
           com.google.api.ads.adwords.axis.v201506.cm.Label[] labels,
           com.google.api.ads.adwords.axis.v201506.cm.String_StringMapEntry[] forwardCompatibilityMap,
           java.lang.String adGroupCriterionType) {
           this.adGroupId = adGroupId;
           this.criterionUse = criterionUse;
           this.criterion = criterion;
           this.labels = labels;
           this.forwardCompatibilityMap = forwardCompatibilityMap;
           this.adGroupCriterionType = adGroupCriterionType;
    }

    /**
     * Gets the adGroupId value for this AdGroupCriterion.
     *
     * @return adGroupId   * The ad group this criterion is in.
     *                 This field is required
     * and should not be {@code null}.
     */
    public java.lang.Long getAdGroupId() {
        return adGroupId;
    }

    /**
     * Sets the adGroupId value for this AdGroupCriterion.
     *
     * @param adGroupId   * The ad group this criterion is in.
     *                 This field is required
     * and should not be {@code null}.
     */
    public void setAdGroupId(java.lang.Long adGroupId) {
        this.adGroupId = adGroupId;
    }

    /**
     * Gets the criterionUse value for this AdGroupCriterion.
     *
     * @return criterionUse   * This field is read only and
     * will be ignored when sent to the API.
     */
    public com.google.api.ads.adwords.axis.v201506.cm.CriterionUse getCriterionUse() {
        return criterionUse;
    }

    /**
     * Sets the criterionUse value for this AdGroupCriterion.
     *
     * @param criterionUse   * This field is read only and
     * will be ignored when sent to the API.
     */
    public void setCriterionUse(com.google.api.ads.adwords.axis.v201506.cm.CriterionUse criterionUse) {
        this.criterionUse = criterionUse;
    }

    /**
     * Gets the criterion value for this AdGroupCriterion.
     *
     * @return criterion   * The criterion part of the ad group criterion.
     *                 This field is required
     * and should not be {@code null}.
     */
    public com.google.api.ads.adwords.axis.v201506.cm.Criterion getCriterion() {
        return criterion;
    }

    /**
     * Sets the criterion value for this AdGroupCriterion.
     *
     * @param criterion   * The criterion part of the ad group criterion.
     *                 This field is required
     * and should not be {@code null}.
     */
    public void setCriterion(com.google.api.ads.adwords.axis.v201506.cm.Criterion criterion) {
        this.criterion = criterion;
    }

    /**
     * Gets the labels value for this AdGroupCriterion.
     *
     * @return labels   * Labels that are attached to the AdGroupCriterion. To associate
     * an existing {@link Label} to an
     *                 existing {@link AdGroupCriterion}, use {@link AdGroupCriterionService#mutateLabel}
     * with ADD
     *                 operator. To remove an associated {@link Label} from
     * the {@link AdGroupCriterion}, use
     *                 {@link AdGroupCriterionService#mutateLabel} with REMOVE
     * operator. To filter on {@link Label}s,
     *                 use one of {@link Predicate.Operator#CONTAINS_ALL},
     * {@link Predicate.Operator#CONTAINS_ANY},
     *                 {@link Predicate.Operator#CONTAINS_NONE} operators
     * with a list of {@link Label} ids.
     *                 This field is read
     * only and will be ignored when sent to the API for the following {@link
     * Operator}s: REMOVE and SET.
     */
    public com.google.api.ads.adwords.axis.v201506.cm.Label[] getLabels() {
        return labels;
    }

    /**
     * Sets the labels value for this AdGroupCriterion.
     *
     * @param labels   * Labels that are attached to the AdGroupCriterion. To associate
     * an existing {@link Label} to an
     *                 existing {@link AdGroupCriterion}, use {@link AdGroupCriterionService#mutateLabel}
     * with ADD
     *                 operator. To remove an associated {@link Label} from
     * the {@link AdGroupCriterion}, use
     *                 {@link AdGroupCriterionService#mutateLabel} with REMOVE
     * operator. To filter on {@link Label}s,
     *                 use one of {@link Predicate.Operator#CONTAINS_ALL},
     * {@link Predicate.Operator#CONTAINS_ANY},
     *                 {@link Predicate.Operator#CONTAINS_NONE} operators
     * with a list of {@link Label} ids.
     *                 This field is read
     * only and will be ignored when sent to the API for the following {@link
     * Operator}s: REMOVE and SET.
     */
    public void setLabels(com.google.api.ads.adwords.axis.v201506.cm.Label[] labels) {
        this.labels = labels;
    }

    public com.google.api.ads.adwords.axis.v201506.cm.Label getLabels(int i) {
        return this.labels[i];
    }

    public void setLabels(int i, com.google.api.ads.adwords.axis.v201506.cm.Label _value) {
        this.labels[i] = _value;
    }

    /**
     * Gets the forwardCompatibilityMap value for this AdGroupCriterion.
     *
     * @return forwardCompatibilityMap   * This Map provides a place to put new features and settings
     * in older versions
     *                 of the AdWords API in the rare instance we need to
     * introduce a new feature in
     *                 an older version.
     *
     *                 It is presently unused.  Do not set a value.
     */
    public com.google.api.ads.adwords.axis.v201506.cm.String_StringMapEntry[] getForwardCompatibilityMap() {
        return forwardCompatibilityMap;
    }

    /**
     * Sets the forwardCompatibilityMap value for this AdGroupCriterion.
     *
     * @param forwardCompatibilityMap   * This Map provides a place to put new features and settings
     * in older versions
     *                 of the AdWords API in the rare instance we need to
     * introduce a new feature in
     *                 an older version.
     *
     *                 It is presently unused.  Do not set a value.
     */
    public void setForwardCompatibilityMap(com.google.api.ads.adwords.axis.v201506.cm.String_StringMapEntry[] forwardCompatibilityMap) {
        this.forwardCompatibilityMap = forwardCompatibilityMap;
    }

    public com.google.api.ads.adwords.axis.v201506.cm.String_StringMapEntry getForwardCompatibilityMap(int i) {
        return this.forwardCompatibilityMap[i];
    }

    public void setForwardCompatibilityMap(int i, com.google.api.ads.adwords.axis.v201506.cm.String_StringMapEntry _value) {
        this.forwardCompatibilityMap[i] = _value;
    }

    /**
     * Gets the adGroupCriterionType value for this AdGroupCriterion.
     *
     * @return adGroupCriterionType   * Indicates that this instance is a subtype of AdGroupCriterion.
     * Although this field is returned in the response, it is ignored on
     * input
     *                 and cannot be selected. Specify xsi:type instead.
     */
    public java.lang.String getAdGroupCriterionType() {
        return adGroupCriterionType;
    }

    /**
     * Sets the adGroupCriterionType value for this AdGroupCriterion.
     *
     * @param adGroupCriterionType   * Indicates that this instance is a subtype of AdGroupCriterion.
     * Although this field is returned in the response, it is ignored on
     * input
     *                 and cannot be selected. Specify xsi:type instead.
     */
    public void setAdGroupCriterionType(java.lang.String adGroupCriterionType) {
        this.adGroupCriterionType = adGroupCriterionType;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AdGroupCriterion)) return false;
        AdGroupCriterion other = (AdGroupCriterion) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
            ((this.adGroupId==null && other.getAdGroupId()==null) ||
             (this.adGroupId!=null &&
              this.adGroupId.equals(other.getAdGroupId()))) &&
            ((this.criterionUse==null && other.getCriterionUse()==null) ||
             (this.criterionUse!=null &&
              this.criterionUse.equals(other.getCriterionUse()))) &&
            ((this.criterion==null && other.getCriterion()==null) ||
             (this.criterion!=null &&
              this.criterion.equals(other.getCriterion()))) &&
            ((this.labels==null && other.getLabels()==null) ||
             (this.labels!=null &&
              java.util.Arrays.equals(this.labels, other.getLabels()))) &&
            ((this.forwardCompatibilityMap==null && other.getForwardCompatibilityMap()==null) ||
             (this.forwardCompatibilityMap!=null &&
              java.util.Arrays.equals(this.forwardCompatibilityMap, other.getForwardCompatibilityMap()))) &&
            ((this.adGroupCriterionType==null && other.getAdGroupCriterionType()==null) ||
             (this.adGroupCriterionType!=null &&
              this.adGroupCriterionType.equals(other.getAdGroupCriterionType())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getAdGroupId() != null) {
            _hashCode += getAdGroupId().hashCode();
        }
        if (getCriterionUse() != null) {
            _hashCode += getCriterionUse().hashCode();
        }
        if (getCriterion() != null) {
            _hashCode += getCriterion().hashCode();
        }
        if (getLabels() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getLabels());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getLabels(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getForwardCompatibilityMap() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getForwardCompatibilityMap());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getForwardCompatibilityMap(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getAdGroupCriterionType() != null) {
            _hashCode += getAdGroupCriterionType().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(AdGroupCriterion.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "AdGroupCriterion"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("adGroupId");
        elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "adGroupId"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("criterionUse");
        elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "criterionUse"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "CriterionUse"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("criterion");
        elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "criterion"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "Criterion"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("labels");
        elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "labels"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "Label"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("forwardCompatibilityMap");
        elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "forwardCompatibilityMap"));
        elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "String_StringMapEntry"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("adGroupCriterionType");
        elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201506", "AdGroupCriterion.Type"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType,
           java.lang.Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType,
           java.lang.Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}


text:
<?php namespace Rancherize\Blueprint\ExternalService\EventListener;

use Rancherize\Blueprint\ExternalService\ExternalServiceParser\ExternalServiceNameParser;
use Rancherize\Commands\Events\PushCommandInServiceUpgradeEvent;
use Rancherize\Commands\Events\PushCommandStartEvent;

/**
 * Class ExternalServicePushListener
 * @package Rancherize\Blueprint\ExternalService\EventListener
 */
class ExternalServicePushListener {
	/**
	 * @var ExternalServiceNameParser
	 */
	private $nameParser;

	/**
	 * ExternalServicePushListener constructor.
	 * @param ExternalServiceNameParser $nameParser
	 */
	public function __construct( ExternalServiceNameParser $nameParser) {
		$this->nameParser = $nameParser;
	}

	/**
	 * @param PushCommandInServiceUpgradeEvent $event
	 */
	public function inServiceUpgrade( PushCommandInServiceUpgradeEvent $event ) {

		$configuration = $event->getConfiguration();

		$serviceNames = $event->getServiceNames();
		$externalServiceNames = $this->nameParser->parseNames( $configuration );

		$allServicesNames = array_merge($externalServiceNames, $serviceNames);
		$event->setServiceNames($allServicesNames);
		//$event->setForceUpgrade( true );

	}

	/**
	 * @param PushCommandStartEvent $event
	 */
	public function startService( PushCommandStartEvent $event ) {

		$configuration = $event->getConfiguration();

		$serviceNames = $event->getServiceNames();
		$externalServiceNames = $this->nameParser->parseNames( $configuration );

		$allServicesNames = array_merge($externalServiceNames, $serviceNames);
		$event->setServiceNames($allServicesNames);
		//$event->setForceUpgrade( true );

	}
}


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.qmain.MainActivity">
    <!--
    <Button android:id="@+id/start"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Log In"
        android:onClick="start"/>
        !-->

    <com.google.android.gms.common.SignInButton
        android:id="@+id/sign_in_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"/>
    <!-- center !-->

</RelativeLayout>


text:
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using Xunit;

namespace SimplyFast.Expressions.Dynamic.Tests
{
    public class EBuilderInstanceTests
    {
        [SuppressMessage("ReSharper", "UnusedMember.Global")]
        [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
        public class SomeClass
        {
            public Action<bool> SomeAction;
            public int SomeField;

            public string SomeProp
            {
                get => SomeField.ToString(CultureInfo.InvariantCulture);
                set => SomeField = int.Parse(value);
            }

            public int this[int index]
            {
                get => SomeField * index;
                set => SomeField = value / index;
            }

            public bool IsOk()
            {
                return true;
            }

            public double SomeMethod(float param)
            {
                return SomeField * param;
            }

            public static explicit operator int(SomeClass a)
            {
                return a.SomeField;
            }

            public static explicit operator SomeClass(int a)
            {
                return new SomeClass {SomeField = a};
            }
        }

        [Fact]
        public void ActionOk()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), a =>
            {
                var eBuilder = a.EBuilder();
                return eBuilder.SomeAction(true);
            });
            Assert.Equal("(SomeClass p_0) => p_0.SomeAction(True)", lambda.ToDebugString());
        }

        [Fact]
        public void BinaryOk()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), a =>
            {
                var eBuilder = a.EBuilder();
                return eBuilder.SomeField + 2;
            });
            Assert.Equal("(SomeClass p_0) => (p_0.SomeField + 2)", lambda.ToDebugString());
        }

        [Fact]
        public void GetSetFieldOk()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), typeof(SomeClass), (a, b) =>
            {
                var p0 = a.EBuilder();
                var p1 = b.EBuilder();
                return p0.SomeField = p1.SomeField;
            });
            Assert.Equal("(SomeClass p_0, SomeClass p_1) => (p_0.SomeField = p_1.SomeField)", lambda.ToDebugString());
        }

        [Fact]
        public void GetSetIndexOk()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), typeof(SomeClass), (a, b) =>
            {
                var p0 = a.EBuilder();
                var p1 = b.EBuilder();
                return p0[3] = p1[2];
            });
            Assert.Equal("(SomeClass p_0, SomeClass p_1) => (p_0.Item[3] = p_1.Item[2])", lambda.ToDebugString());
        }

        [Fact]
        public void GetSetPropertyOk()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), typeof(SomeClass), (a, b) =>
            {
                var p0 = a.EBuilder();
                var p1 = b.EBuilder();
                return p0.SomeProp = p1.SomeProp;
            });
            Assert.Equal("(SomeClass p_0, SomeClass p_1) => (p_0.SomeProp = p_1.SomeProp)", lambda.ToDebugString());
        }

        [Fact]
        public void InvokeOk()
        {
            var lambda = EBuilder.Lambda(typeof(Func<int, bool>), typeof(SomeClass), (a, b) =>
            {
                var p0 = a.EBuilder();
                var p1 = b.EBuilder();
                return !p0(p1.SomeField);
            });
            Assert.Equal("(Func<Int32, Boolean> p_0, SomeClass p_1) => !p_0(p_1.SomeField)", lambda.ToDebugString());
        }

        [Fact]
        public void MethodOk()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), a =>
            {
                var p = a.EBuilder();
                return p.SomeMethod(2.0f);
            });
            Assert.Equal("(SomeClass p_0) => p_0.SomeMethod(2F)", lambda.ToDebugString());
        }

        [Fact]
        public void UnaryOk()
        {
            var lambda = EBuilder.Lambda(typeof(bool), a =>
            {
                var p = a.EBuilder();
                return !p;
            });
            Assert.Equal("(Boolean p_0) => !p_0", lambda.ToDebugString());
        }

        [Fact]
        public void UnaryOk2()
        {
            var lambda = EBuilder.Lambda(typeof(SomeClass), a =>
            {
                var p = a.EBuilder();
                return --p.SomeField;
            });
            Assert.Equal("(SomeClass p_0) => --p_0.SomeField", lambda.ToDebugString());
        }
    }
}


text: const char CrashUploadList::kReporterLogFilename[] = "uploads.log";


text:
[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

> An easily internationalizable, accessible, mobile-friendly datepicker library for the web.

![react-dates in action](https://raw.githubusercontent.com/react-dates/react-dates/HEAD/react-dates-demo.gif)

## Live Playground

For examples of the datepicker in action, go to [react-dates.github.io](https://react-dates.github.io/react-dates/).

OR

To run that demo on your own computer:
* Clone this repository
* `npm install`
* `npm run storybook`
* Visit http://localhost:6006/

## Getting Started
### Install dependencies
Ensure packages are installed with correct version numbers by running (from your command line):
  ```sh
  (
    export PKG=react-dates;
    npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g; s/ *//g' | xargs npm install --save "$PKG"
  )
  ```

  Which produces and runs a command like:

  ```sh
  npm install --save react-dates moment@>=#.## react@>=#.## react-dom@>=#.##
  ```

  > If you are running Windows, that command will not work, but if you are running npm 5 or higher, you can run `npx install-peerdeps react-dates` on any platform

### Initialize
```js
import 'react-dates/initialize';
```

As of v13.0.0 of `react-dates`, this project relies on `react-with-styles`. If you want to continue using CSS stylesheets and classes, there is a little bit of extra set-up required to get things going. As such, you need to import `react-dates/initialize` to set up class names on our components. This import should go at the top of your application as you won't be able to import any `react-dates` components without it.

Note: This component assumes `box-sizing: border-box` is set globally in your page's CSS.

### Include component
```js
import { DateRangePicker, SingleDatePicker, DayPickerRangeController } from 'react-dates';
```

#### Webpack
Using Webpack with CSS loader, add the following import to your app:
```js
import 'react-dates/lib/css/_datepicker.css';
```

#### Without Webpack:
Create a CSS file with the contents of `require.resolve('react-dates/lib/css/_datepicker.css')` and include it in your html `<head>` section.

To see this in action, you can check out https://github.com/majapw/react-dates-demo which adds `react-dates` on top of a simple `create-react-app` setup.

#### Overriding Base Class
By default `react-dates` will use `PureComponent` conditionally if it is available.  However, it is possible to override this setting and use `Component` and `shouldComponentUpdate` instead. It is also possible to override the logic in `build/util/baseClass` if you know that you are using a React version with `PureComponent`.
  ```javascript
    import React from 'react';
    export default React.PureComponent;
    export const pureComponentAvailable = true;
  ```

#### Overriding styles
Right now, the easiest way to tweak `react-dates` to your heart's content is to create another stylesheet to override the default react-dates styles. For example, you could create a file named `react_dates_overrides.css` with the following contents (Make sure when you import said file to your `app.js`, you import it after the `react-dates` styles):

```css
// NOTE: the order of these styles DO matter

// Will edit everything selected including everything between a range of dates
.CalendarDay__selected_span {
  background: #82e0aa; //background
  color: white; //text
  border: 1px solid $light-red; //default styles include a border
}

// Will edit selected date or the endpoints of a range of dates
.CalendarDay__selected {
  background: $dark-red;
  color: white;
}

// Will edit when hovered over. _span style also has this property
.CalendarDay__selected:hover {
  background: orange;
  color: white;
}

// Will edit when the second date (end date) in a range of dates
// is not yet selected. Edits the dates between your mouse and said date
.CalendarDay__hovered_span:hover,
.CalendarDay__hovered_span {
  background: brown;
}
```

This would override the background and text colors applied to highlighted calendar days. You can use this method with the default set-up to override any aspect of the calendar to have it better fit to your particular needs. If there are any styles that you need that aren't listed here, you can always check the source css of each element.

### Make some awesome datepickers

We provide a handful of components for your use. If you supply essential props to each component, you'll get a full featured interactive date picker. With additional optional props, you can customize the look and feel of the inputs, calendar, etc. You can see what each of the props do in the [live demo](http://airbnb.io/react-dates/) or explore
how to properly wrap the pickers in the [examples folder](https://github.com/react-dates/react-dates/tree/HEAD/examples).

#### DateRangePicker
The `DateRangePicker` is a fully controlled component that allows users to select a date range. You can control the selected
dates using the `startDate`, `endDate`, and `onDatesChange` props as shown below. The `DateRangePicker` also manages internal
state for partial dates entered by typing (although `onDatesChange` will not trigger until a date has been entered
completely in that case). Similarly, you can control which input is focused as well as calendar visibility (the calendar is
only visible if `focusedInput` is defined) with the `focusedInput` and `onFocusChange` props as shown below.

Here is the minimum *REQUIRED* setup you need to get the `DateRangePicker` working:
```jsx
<DateRangePicker
  startDate={this.state.startDate} // momentPropTypes.momentObj or null,
  startDateId="your_unique_start_date_id" // PropTypes.string.isRequired,
  endDate={this.state.endDate} // momentPropTypes.momentObj or null,
  endDateId="your_unique_end_date_id" // PropTypes.string.isRequired,
  onDatesChange={({ startDate, endDate }) => this.setState({ startDate, endDate })} // PropTypes.func.isRequired,
  focusedInput={this.state.focusedInput} // PropTypes.oneOf([START_DATE, END_DATE]) or null,
  onFocusChange={focusedInput => this.setState({ focusedInput })} // PropTypes.func.isRequired,
/>
```

The following is a list of other *OPTIONAL* props you may provide to the `DateRangePicker` to customize appearance and behavior to your heart's desire. All constants (indicated by `ALL_CAPS`) are provided as named exports in `react-dates/constants`. Please explore the [storybook](http://airbnb.io/react-dates/?selectedKind=DRP%20-%20Input%20Props&selectedStory=default&full=0&down=1&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel) for more information on what each of these props do.
```js
// input related props
startDatePlaceholderText: PropTypes.string,
endDatePlaceholderText: PropTypes.string,
startDateAriaLabel: PropTypes.string,
endDateAriaLabel: PropTypes.string,
startDateTitleText: PropTypes.string,
endDateTitleText: PropTypes.string,
disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf([START_DATE, END_DATE])]),
required: PropTypes.bool,
readOnly: PropTypes.bool,
screenReaderInputMessage: PropTypes.string,
showClearDates: PropTypes.bool,
showDefaultInputIcon: PropTypes.bool,
customInputIcon: PropTypes.node,
customArrowIcon: PropTypes.node,
customCloseIcon: PropTypes.node,
inputIconPosition: PropTypes.oneOf([ICON_BEFORE_POSITION, ICON_AFTER_POSITION]),
noBorder: PropTypes.bool,
block: PropTypes.bool,
small: PropTypes.bool,
regular: PropTypes.bool,
autoComplete: PropTypes.string,

// calendar presentation and interaction related props
renderMonthText: mutuallyExclusiveProps(PropTypes.func, 'renderMonthText', 'renderMonthElement'), // (month) => PropTypes.string,
orientation: PropTypes.oneOf([HORIZONTAL_ORIENTATION, VERTICAL_ORIENTATION]),
anchorDirection: PropTypes.oneOf([ANCHOR_LEFT, ANCHOR_RIGHT]),
openDirection: PropTypes.oneOf([OPEN_DOWN, OPEN_UP]),
horizontalMargin: PropTypes.number,
withPortal: PropTypes.bool,
withFullScreenPortal: PropTypes.bool,
appendToBody: PropTypes.bool,
disableScroll: PropTypes.bool,
daySize: nonNegativeInteger,
isRTL: PropTypes.bool,
initialVisibleMonth: PropTypes.func,
firstDayOfWeek: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]),
numberOfMonths: PropTypes.number,
keepOpenOnDateSelect: PropTypes.bool,
reopenPickerOnClearDates: PropTypes.bool,
renderCalendarInfo: PropTypes.func,
renderMonthElement: mutuallyExclusiveProps(PropTypes.func, 'renderMonthText', 'renderMonthElement'), PropTypes.func, // ({ month, onMonthSelect, onYearSelect, isVisible }) => PropTypes.node,
hideKeyboardShortcutsPanel: PropTypes.bool,
verticalSpacing: PropTypes.number,

// navigation related props
navPrev: PropTypes.node,
navNext: PropTypes.node,
onPrevMonthClick: PropTypes.func,
onNextMonthClick: PropTypes.func,
onClose: PropTypes.func,
transitionDuration: nonNegativeInteger, // milliseconds

// day presentation and interaction related props
renderCalendarDay: PropTypes.func,
renderDayContents: PropTypes.func,
minimumNights: PropTypes.number,
minDate: momentPropTypes.momentObj,
maxDate: momentPropTypes.momentObj,
enableOutsideDays: PropTypes.bool,
isDayBlocked: PropTypes.func,
isOutsideRange: PropTypes.func,
isDayHighlighted: PropTypes.func,

// internationalization props
displayFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
monthFormat: PropTypes.string,
weekDayFormat: PropTypes.string,
phrases: PropTypes.shape(getPhrasePropTypes(DateRangePickerPhrases)),
dayAriaLabelFormat: PropTypes.string,
```

#### SingleDatePicker
The `SingleDatePicker` is a fully controlled component that allows users to select a single date. You can control the selected
date using the `date` and `onDateChange` props as shown below. The `SingleDatePicker` also manages internal
state for partial dates entered by typing (although `onDateChange` will not trigger until a date has been entered
completely in that case). Similarly, you can control whether or not the input is focused (calendar visibility is also
controlled with the same props) with the `focused` and `onFocusChange` props as shown below.

Here is the minimum *REQUIRED* setup you need to get the `SingleDatePicker` working:
```jsx
<SingleDatePicker
  date={this.state.date} // momentPropTypes.momentObj or null
  onDateChange={date => this.setState({ date })} // PropTypes.func.isRequired
  focused={this.state.focused} // PropTypes.bool
  onFocusChange={({ focused }) => this.setState({ focused })} // PropTypes.func.isRequired
  id="your_unique_id" // PropTypes.string.isRequired,
/>
```

The following is a list of other *OPTIONAL* props you may provide to the `SingleDatePicker` to customize appearance and behavior to your heart's desire. All constants (indicated by `ALL_CAPS`) are provided as named exports in `react-dates/constants`. Please explore the [storybook](http://airbnb.io/react-dates/?selectedKind=SDP%20-%20Input%20Props&selectedStory=default&full=0&down=1&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel) for more information on what each of these props do.
```js
// input related props
placeholder: PropTypes.string,
ariaLabel: PropTypes.string,
titleText: PropTypes.string,
disabled: PropTypes.bool,
required: PropTypes.bool,
readOnly: PropTypes.bool,
screenReaderInputMessage: PropTypes.string,
showClearDate: PropTypes.bool,
customCloseIcon: PropTypes.node,
showDefaultInputIcon: PropTypes.bool,
customInputIcon: PropTypes.node,
inputIconPosition: PropTypes.oneOf([ICON_BEFORE_POSITION, ICON_AFTER_POSITION]),
noBorder: PropTypes.bool,
block: PropTypes.bool,
small: PropTypes.bool,
regular: PropTypes.bool,
autoComplete: PropTypes.string,

// calendar presentation and interaction related props
renderMonthText: mutuallyExclusiveProps(PropTypes.func, 'renderMonthText', 'renderMonthElement'), // (month) => PropTypes.string,
orientation: PropTypes.oneOf([HORIZONTAL_ORIENTATION, VERTICAL_ORIENTATION]),
anchorDirection: PropTypes.oneOf([ANCHOR_LEFT, ANCHOR_RIGHT]),
openDirection: PropTypes.oneOf([OPEN_DOWN, OPEN_UP]),
horizontalMargin: PropTypes.number,
withPortal: PropTypes.bool,
withFullScreenPortal: PropTypes.bool,
appendToBody: PropTypes.bool,
disableScroll: PropTypes.bool,
initialVisibleMonth: PropTypes.func,
firstDayOfWeek: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]),
numberOfMonths: PropTypes.number,
keepOpenOnDateSelect: PropTypes.bool,
reopenPickerOnClearDate: PropTypes.bool,
renderCalendarInfo: PropTypes.func,
renderMonthElement: mutuallyExclusiveProps(PropTypes.func, 'renderMonthText', 'renderMonthElement'), // ({ month, onMonthSelect, onYearSelect, isVisible }) => PropTypes.node,
hideKeyboardShortcutsPanel: PropTypes.bool,
daySize: nonNegativeInteger,
isRTL: PropTypes.bool,
verticalSpacing: PropTypes.number,

// navigation related props
navPrev: PropTypes.node,
navNext: PropTypes.node,
onPrevMonthClick: PropTypes.func,
onNextMonthClick: PropTypes.func,
onClose: PropTypes.func,
transitionDuration: nonNegativeInteger, // milliseconds

// day presentation and interaction related props
renderCalendarDay: PropTypes.func,
renderDayContents: PropTypes.func,
enableOutsideDays: PropTypes.bool,
isDayBlocked: PropTypes.func,
isOutsideRange: PropTypes.func,
isDayHighlighted: PropTypes.func,

// internationalization props
displayFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
monthFormat: PropTypes.string,
weekDayFormat: PropTypes.string,
phrases: PropTypes.shape(getPhrasePropTypes(SingleDatePickerPhrases)),
dayAriaLabelFormat: PropTypes.string,
```

#### DayPickerRangeController
The `DayPickerRangeController` is a calendar-only version of the `DateRangePicker`. There are no inputs (which also means
that currently, it is not keyboard accessible) and the calendar is always visible, but you can select a date range much in the same way you would with the `DateRangePicker`. You can control the selected
dates using the `startDate`, `endDate`, and `onDatesChange` props as shown below. Similarly, you can control which input is focused with the `focusedInput` and `onFocusChange` props as shown below. The user will only be able to select a date if `focusedInput` is provided.

Here is the minimum *REQUIRED* setup you need to get the `DayPickerRangeController` working:
```jsx
<DayPickerRangeController
  startDate={this.state.startDate} // momentPropTypes.momentObj or null,
  endDate={this.state.endDate} // momentPropTypes.momentObj or null,
  onDatesChange={({ startDate, endDate }) => this.setState({ startDate, endDate })} // PropTypes.func.isRequired,
  focusedInput={this.state.focusedInput} // PropTypes.oneOf([START_DATE, END_DATE]) or null,
  onFocusChange={focusedInput => this.setState({ focusedInput })} // PropTypes.func.isRequired,
  initialVisibleMonth={() => moment().add(2, "M")} // PropTypes.func or null,
/>
```

The following is a list of other *OPTIONAL* props you may provide to the `DayPickerRangeController` to customize appearance and behavior to your heart's desire. Again, please explore the [storybook](http://airbnb.io/react-dates/?selectedKind=DayPickerRangeController&selectedStory=default&full=0&down=1&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel) for more information on what each of these props do.
```js
  // calendar presentation and interaction related props
  enableOutsideDays: PropTypes.bool,
  numberOfMonths: PropTypes.number,
  orientation: ScrollableOrientationShape,
  withPortal: PropTypes.bool,
  initialVisibleMonth: PropTypes.func,
  renderCalendarInfo: PropTypes.func,
  renderMonthElement: mutuallyExclusiveProps(PropTypes.func, 'renderMonthText', 'renderMonthElement'), // ({ month, onMonthSelect, onYearSelect, isVisible }) => PropTypes.node,
  onOutsideClick: PropTypes.func,
  keepOpenOnDateSelect: PropTypes.bool,
  noBorder: PropTypes.bool,

  // navigation related props
  navPrev: PropTypes.node,
  navNext: PropTypes.node,
  onPrevMonthClick: PropTypes.func,
  onNextMonthClick: PropTypes.func,
  transitionDuration: nonNegativeInteger, // milliseconds

  // day presentation and interaction related props
  renderCalendarDay: PropTypes.func,
  renderDayContents: PropTypes.func,
  minimumNights: PropTypes.number,
  isOutsideRange: PropTypes.func,
  isDayBlocked: PropTypes.func,
  isDayHighlighted: PropTypes.func,

  // internationalization props
  monthFormat: PropTypes.string,
  weekDayFormat: PropTypes.string,
  phrases: PropTypes.shape(getPhrasePropTypes(DayPickerPhrases)),
  dayAriaLabelFormat: PropTypes.string,
/>
```

## Localization

[Moment.js](http://momentjs.com) is a peer dependency of `react-dates`. The latter then uses a single instance of `moment` which is imported in one's project. Loading a locale is done by calling `moment.locale(..)` in the component where `moment` is imported, with the [locale key](http://momentjs.com/docs/#/i18n/) of choice. For instance:

```js
moment.locale('pl'); // Polish
```

However, this only solves date localization. For complete internationalization of the components, `react-dates` defines a certain amount of [user interface strings](https://github.com/react-dates/react-dates/blob/HEAD/src/defaultPhrases.js) in English which can be changed through the `phrases` prop (explore the [storybook](http://airbnb.io/react-dates/?selectedKind=DateRangePicker%20%28DRP%29&selectedStory=non-english%20locale&full=0&addons=1&stories=1&panelRight=0&addonPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel) for examples). For accessibility and usability concerns, **all these UI elements should be translated**.

## Advanced

`react-dates` no longer relies strictly on CSS, but rather relies on `react-with-styles` as an abstraction layer between how styles are applied and how they are written. The instructions above will get the project working out of the box, but there's a lot more customization that can be done.

### Interfaces

The `react-dates/initialize` script actually relies on [react-with-styles-interface-css](https://github.com/airbnb/react-with-styles-interface-css) under the hood. If you are interested in a different solution for styling in your project, you can do your own initialization of a another [interface](https://github.com/airbnb/react-with-styles/blob/HEAD/README.md#interfaces). At Airbnb, for instance, we rely on [Aphrodite](https://github.com/Khan/aphrodite) under the hood and therefore use the Aphrodite interface for `react-with-styles`. If you want to do the same, you would use the following pattern:
```js
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet';
import aphroditeInterface from 'react-with-styles-interface-aphrodite';
import DefaultTheme from 'react-dates/lib/theme/DefaultTheme';

ThemedStyleSheet.registerInterface(aphroditeInterface);
ThemedStyleSheet.registerTheme(DefaultTheme);
```

The above code has to be run before any `react-dates` component is imported. Otherwise, you will get an error. Also note that if you register any custom interface manually, you *must* also manually register a theme.

### Theming
`react-dates` also now supports a different way to theme. You can see the default theme values in [this file](https://github.com/react-dates/react-dates/blob/HEAD/src/theme/DefaultTheme.js) and you would override them in the following manner:
```js
import ThemedStyleSheet from 'react-with-styles/lib/ThemedStyleSheet';
import aphroditeInterface from 'react-with-styles-interface-aphrodite';
import DefaultTheme from 'react-dates/lib/theme/DefaultTheme';

ThemedStyleSheet.registerInterface(aphroditeInterface);
ThemedStyleSheet.registerTheme({
  reactDates: {
    ...DefaultTheme.reactDates,
    color: {
      ...DefaultTheme.reactDates.color,
      highlighted: {
        backgroundColor: '#82E0AA',
        backgroundColor_active: '#58D68D',
        backgroundColor_hover: '#58D68D',
        color: '#186A3B',
        color_active: '#186A3B',
        color_hover: '#186A3B',
      },
    },
  },
});
```

The above code would use shades of green instead of shades of yellow for the highlight color on `CalendarDay` components. Note that you *must* register an interface if you manually register a theme. One will not work without the other.

#### A note on using `react-with-styles-interface-css`
The default interface that `react-dates` ships with is the [CSS interface](https://github.com/airbnb/react-with-styles-interface-css). If you want to use this interface along with the theme registration method, you will need to rebuild the core `_datepicker.css` file. We do not currently expose a utility method to build this file, but you can follow along with the code in https://github.com/react-dates/react-dates/blob/HEAD/scripts/buildCSS.js to build your own custom themed CSS file.

[package-url]: https://npmjs.org/package/react-dates
[npm-version-svg]: http://versionbadg.es/react-dates/react-dates.svg
[travis-svg]: https://travis-ci.org/react-dates/react-dates.svg
[travis-url]: https://travis-ci.org/react-dates/react-dates
[deps-svg]: https://david-dm.org/react-dates/react-dates.svg
[deps-url]: https://david-dm.org/react-dates/react-dates
[dev-deps-svg]: https://david-dm.org/react-dates/react-dates/dev-status.svg
[dev-deps-url]: https://david-dm.org/react-dates/react-dates#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/react-dates.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/react-dates.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/react-dates.svg
[downloads-url]: http://npm-stat.com/charts.html?package=react-dates


text:
TITLE = [rcompressor]
MOCHA_PATH = ./node_modules/.bin/mocha

all: install

install:
	@/bin/echo -e "${TITLE} installing dependencies ..." \
	&& npm install \
	&& /bin/echo -e "${TITLE} dependencies installed"

update:
	@/bin/echo -e "${TITLE} updating dependencies ..." \
	&& npm update \
	&& /bin/echo -e "${TITLE} dependencies updated"

test:
	@/bin/echo -e "${TITLE} testing suite started..." \
	&& NODE_ENV=test $(MOCHA_PATH) \
		--recursive \
		--reporter dot

test-spec:
	@/bin/echo -e "${TITLE} testing suite started..." \
	&& NODE_ENV=test $(MOCHA_PATH) \
		--recursive \
		--reporter spec

test-w:
	@/bin/echo -e "${TITLE} testing suite started..." \
	&& NODE_ENV=test $(MOCHA_PATH) \
		--recursive \
		--reporter dot \
		--growl \
		--watch

.PHONY: all
.PHONY: install update
.PHONY: test test-spec test-w


text:
package expo.modules.interfaces.sensors.services;

import expo.modules.interfaces.sensors.SensorServiceInterface;

public interface LinearAccelerationSensorServiceInterface extends SensorServiceInterface {
}


text:
package edu.mit.rewire.view;

import java.awt.geom.Point2D;

import processing.core.PFont;
import processing.core.PGraphics;
import processing.core.PShape;
import edu.mit.rewire.model.Item;

public class Bubble implements Drawable, MouseAware {

    public enum State {
        SMALL, MEDIUM, EXPANDED, TRANSITIONING
    }

    public boolean starred;

    /** Model instance that this bubble represents */
    private final Item item;

    /** State of this bubble */
    private State state;

    /** Default state of the bubble */
    private State defaultState;
    private float originalX, originalY;

    /** Position in pixels */
    private float x, y;

    /** Radius in pixels */
    private float r;

    /** Velocity in pixels / second */
    private float dx = 0, dy = 0;

    /** Background image for the bubble */
    private PShape bubble;
    private final PShape defaultBubble;
    private final PShape hoverBubble;

    /** Fonts for the title and body */
    private PFont titleFont;
    private PFont bodyFont;

    /** Icon representing the type of item */
    private PShape favIcon;

    private PShape popButton;
    private PShape bubbleButton;
    private PShape starButton;
    //private PShape openButton;
    private PShape trashButton;

    public Bubble(float x, float y, float r) {
        this(null, x, y, r, null, null, null);
    }

    public Bubble(Item item, float x, float y, float r, PShape backImage, PShape hoverImage, PShape icon) {
        this.item = item;

        this.x = x;
        this.y = y;

//        this.dx = (float) ((0.5 - Math.random()) * 1);
//        this.dy = (float) ((0.5 - Math.random()) * 1);

        this.dx = 0;
        this.dy = 0;

        this.bubble = backImage;
        this.defaultBubble = backImage;
        this.hoverBubble = hoverImage;
        this.titleFont = ViewResources.loadFont("titleFont");
        this.bodyFont = ViewResources.loadFont("bodyFont");
        this.favIcon = icon;
        this.state = State.SMALL;
//        this.state = Math.random() > .4 ? State.SMALL : State.MEDIUM;
        this.defaultState = state;
        this.r = state == State.SMALL ? 75 : 150;
        this.starred = false;

        this.popButton = ViewResources.loadShape("popButton");
        this.bubbleButton = ViewResources.loadShape("bubbleButton");
        this.starButton = ViewResources.loadShape("starButton");
        //this.openButton = ViewResources.loadShape("openButton");
        this.trashButton = ViewResources.loadShape("trashButton");
    }

    //@Override
    public void draw(PGraphics graphics) {

        graphics.shape(bubble, x - r, y - r, 2 * r, 2 * r);
        graphics.fill(136);
        //graphics.textAlign(CENTER);
        switch (state) {
        case SMALL:
            graphics.shape(favIcon, x - r * 3 / 10, y - r * 3 / 5, r * 3 / 5,
                    r * 3 / 5);
            graphics.textFont(bodyFont,10);
            graphics.text(item.getTitle(), x - r * 3 / 5, y,
            		r * 4 / 3, r * 4 / 5);
            break;
        case MEDIUM:
            graphics.shape(favIcon, x - r * 1 / 4, y - r * 4 / 5, r * 1 / 2,
                    r * 1 / 2);
            graphics.textFont(titleFont,20);
            graphics.text(item.getTitle(), x - r * 3 / 5, y - r * 1 / 5,
            	r * 7 / 5, r * 3 / 5);
            graphics.textFont(bodyFont);
            graphics.text(item.getHeader(), x - r * 2 / 5, y + r * 2 / 5, r * 5 / 5, r * 2 / 5);
            break;
        case EXPANDED:
            graphics.shape(favIcon, x - r * 1 / 4, y - r * 4 / 5, r * 1 / 2,
                    r * 1 / 2);
            graphics.textFont(titleFont,20);
            graphics.text(item.getTitle(), x - r * 7 / 10, y - r * 2 / 5,
            	r, r * 2 / 10);
            graphics.textFont(bodyFont);
            graphics.text(item.getHeader(), x - r * 3 / 5, y - r * 2 / 10, r * 9 / 10, r * 1 / 5);
            graphics.textFont(bodyFont, 12);
            graphics.text(item.getBody(), x - r * 7 / 10, y - r * 1 / 10, r * 11 / 10, r * 7 / 10);
            break;
        }
    }

    public Item getItem() {
        return item;
    }

    //@Override
    public float getR() {
        return r;
    }

    public void setR(float r) {
        this.r = r;
    }

    //@Override
    public float getX() {
        return x;
    }

    //@Override
    public void setX(float x) {
        this.x = x;
    }

    public void setOriginalX(float x) {
    	this.originalX = x;
    }

    public float getOriginalX() {
    	return originalX;
    }

    //@Override
    public float getY() {
        return y;
    }

    //@Override
    public void setY(float y) {
        this.y = y;
    }

    public void setOriginalY(float y) {
    	this.originalY = y;
    }

    public float getOriginalY() {
    	return originalY;
    }

    //@Override
    public float getDx() {
        return dx;
    }

    //@Override
    public void setDx(float dx) {
        this.dx = dx;
    }

    //@Override
    public float getDy() {
        return dy;
    }

    //@Override
    public void setDy(float dy) {
        this.dy = dy;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public State getDefaultState() {
    	return defaultState;
    }

    public void setDefaultState(State state) {
    	this.defaultState = state;
    }

    public void clearState() {
        this.state = defaultState;
    }

    public boolean isStarred() {
    	return starred;
    }

    public void setStarred(boolean b) {
    	this.starred = b;
    }

    public void dispatchDown(ProcessingView view, int x, int y) {
        this.r -= 4;
    }

    public void dispatchUp(ProcessingView view, int x, int y) {
        this.r += 4;
        if (this.state != State.EXPANDED && this.state != State.TRANSITIONING) {
            this.bubble = defaultBubble;
        	view.maximizeBubble(this);
        }
    }

    public void dispatchIn(ProcessingView view, int x, int y) {

    	if (this.state != State.EXPANDED && this.state != State.TRANSITIONING) {
    		this.bubble = hoverBubble;
    	}

    }

    public void dispatchOut(ProcessingView view, int x, int y) {

    	if (this.state != State.EXPANDED && this.state != State.TRANSITIONING) {
    		this.bubble = defaultBubble;
    	}

    }

    public void dispatchDrag(ProcessingView view, int x, int y) {

    }

    public boolean hits(int x, int y) {
        return Point2D.distance(x, y, this.x, this.y) <= this.r;
    }

}


text:
using std::cout;
using std::endl;
using namespace MathTL;

int main()
{
  cout << "Testing decomposable matrices ..." << endl;

  DecomposableMatrix<double> N(2);
  cout << "- a default decomposable matrix N:" << endl
       << N;

  DecomposableMatrix<double> A(Matrix<double>(4, 3, "0 1 2 3 4 5 6 7 9 0 1 0"));
  cout << "- a rectangular matrix A:" << endl
       << A;

  A.decompose(DecomposableMatrix<double>::LU);
  A.decompose(DecomposableMatrix<double>::none);

  cout << "- after LU decomposition and reversion:" << endl
       << A;

  DecomposableMatrix<double> M(Matrix<double>(3, 3, "2 -1 0 -1 2 -1 0 -1 2"));
  cout << "- the standard matrix M_3:" << endl
       << M;
  Vector<double> b(3, "3 0 -1"), x;
  M.solve(b, x);
  cout << "- solving Mx=" << b << " yields x=" << x << endl;

  DecomposableMatrix<double> B(Matrix<double>(3, 3, "0 -1 2 2 -1 0 -1 2 -1"));
  cout << "- the standard matrix B=PM_3:" << endl
       << B;
  b = Vector<double>(3, "-1 3 0");
  B.solve(b, x);
  cout << "- solving Bx=" << b << " yields x=" << x << endl;

  A = Matrix<double>(4, 3, "2 2 1 0 0 1 1 -1 0 -2 0 1");
  cout << "- a rectangular matrix A:" << endl
       << A;

  A.decompose(DecomposableMatrix<double>::QU);
  A.decompose(DecomposableMatrix<double>::none);

  cout << "- after QU decomposition and reversion:" << endl
       << A;

  cout << "- the standard matrix again:" << endl
       << M;

  M.decompose(DecomposableMatrix<double>::QU);
  M.decompose(DecomposableMatrix<double>::none);

  cout << "- after QU decomposition and reversion:" << endl
       << M;

  b = Vector<double>(3, "3 0 -1");
  M.solve(b, x);
  cout << "- solving Mx=" << b << " with QU decomposition yields x=" << x << endl;

  return 0;
}


text:
(function () {
  "use strict";

  $(".questionBtn").click(function () {
    $(".introText").slideUp();
    $(this).hide();
    $(".checkingWinterBeerConditions").fadeIn(1200);
    determineLocation();
  });

  function determineLocation() {
    $.getJSON("http://ip-api.com/json")
      .done(function (ipLocation) {
        determineWeather(ipLocation.zip, ipLocation.countryCode);
      })
      .fail(function () {
        console.log("Unable to determine location. Continuing program for demonstration purposes.");
        determineWeather(97206, "US");
      });
  }

  function determineWeather(zip, country) {
    var weatherAPI = "http://api.openweathermap.org/data/2.5/weather?zip={" + zip + "},{" + country + "}";
    var userKey = "&units=imperial&appid=0f3a5dd0d9770b5bd04f4b7b47819d10";
    $.getJSON(weatherAPI + userKey)
      .done(function queryLocalWeather(weatherData) {
        runEachCheckSequentially(weatherData.main.temp.toFixed(), weatherData.weather[0].description);
      })
      .fail(function () {
        console.log("Unable to determine weather. Continuing program for demonstration purposes.");
        runEachCheckSequentially(50, "");
      });
  }

  function runEachCheckSequentially(temperature, weatherDescription) {
    seasonCheck(function () {
      afterFiveCheck(function () {
        coldOutsideCheck(temperature, function () {
          snowBonusCheck(weatherDescription, function () {
            determineAnswer();
          });
        });
      });
    });
  }

  var qualifiersCount = 0;
  var date = new Date();

  function seasonCheck(callback) {
    var month = date.getMonth() + 1;
    var conditionMet = month >= 10 || month === 1;
    if (!conditionMet) {
      qualifiersCount -= 1; // Ensures beer is in season for a "yes" answer
    }
    styleQualifier("season", conditionMet, callback);
  }

  function afterFiveCheck(callback) {
    var hours = date.getHours();
    var conditionMet = hours >= 17 || hours < 3;
    styleQualifier("afterFive", conditionMet, callback);
  }

  function coldOutsideCheck(temperature, callback) {
    var conditionMet = temperature <= 40;
    styleQualifier("coldOutside", conditionMet, callback);
  }

  function snowBonusCheck(weatherDescription, callback) {
    var conditionMet = weatherDescription.indexOf("snow") > -1;
    styleQualifier("snowBonus", conditionMet, callback);
  }

  function determineAnswer() {
    $(".checkingWinterBeerConditions").hide();
    if (qualifiersCount >= 3) {
      $(".answer").html("The answer is yes!");
      $(".afterIntroText").css("width", "60%");
      $(".bottle").show().animate({ "left": "0%" }, "slow");
      if (qualifiersCount === 4) {
        $(".answer").html("Why hell yes.
In fact, drink two!");
      }
    } else {
      $(".answer").html("Not quite yet.");
      displayScrewItBtn();
    }
  }

  function displayScrewItBtn() {
    $(".screwItBtn").show();
    $(".screwItBtn").click(function () {
      $(".answer").html("Happy Winter!");
      $(".bottle").css("width", "100%");
      $(".bottle").show().animate({ "left": "0%" }, "slow");
      $(".allQualifiers").hide();
      $(".screwItBtn").hide();
    });
  }

  function styleQualifier(qualifier, conditionMet, callback) {
    $("." + qualifier).prepend(' ');
    $("." + qualifier).show();
    setTimeout(function () {
      $("." + qualifier + "Fa").removeClass("fa-snowflake-o fa-spin");
      if (conditionMet) {
        $("." + qualifier + "Fa").addClass("fa-check-square-o").hide().fadeIn();
        qualifiersCount++;
      } else {
        $("." + qualifier + "Fa").addClass("fa-square-o").hide().fadeIn();
        $("." + qualifier).css("opacity", "0.4");
      }
      callback();
    }, 1500);
  }
})();


text:
<?php

// This line loads the library
require '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Token at twilio.com/user/account
// To set up environmental variables, see http://twil.io/secure
$sid = getenv('TWILIO_ACCOUNT_SID');
$token = getenv('TWILIO_AUTH_TOKEN');

// Initialize the client
$client = new Client($sid, $token);

// Update the credential
$credential = $client->chat
    ->credentials("CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
    ->update(
        array(
            "apiKey" => getenv('TWILIO_API_KEY_SECRET')
        )
    );

print $credential->friendlyName;


text: """Tests for the directv component."""


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

<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 version="1.0"
        >
    <table-generator name="EMP_GEN" table="GENERATOR_TABLE"
                     pk-column-name="pkey" pk-column-value="EMP"
                     value-column-name="hi" allocation-size="20"/>
</entity-mappings>