text:
[![NPM version](https://badge.fury.io/js/redux-immutable-combine-reducers.svg)](https://badge.fury.io/js/redux-immutable-combine-reducers) [![Build Status](https://travis-ci.org/dustinspecker/redux-immutable-combine-reducers.svg)](https://travis-ci.org/dustinspecker/redux-immutable-combine-reducers) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/redux-immutable-combine-reducers.svg)](https://coveralls.io/r/dustinspecker/redux-immutable-combine-reducers?branch=master)

[![Code Climate](https://codeclimate.com/github/dustinspecker/redux-immutable-combine-reducers/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/redux-immutable-combine-reducers) [![Dependencies](https://david-dm.org/dustinspecker/redux-immutable-combine-reducers.svg)](https://david-dm.org/dustinspecker/redux-immutable-combine-reducers/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/redux-immutable-combine-reducers/dev-status.svg)](https://david-dm.org/dustinspecker/redux-immutable-combine-reducers/#info=devDependencies&view=table)

> A [Redux combineReducers](http://redux.js.org/docs/api/combineReducers.html) that returns an [Immutable Map](https://facebook.github.io/immutable-js/docs/#/Map)

## Install
```
npm install --save redux-immutable-combine-reducers
```

## Purpose

To have a root that is also an Immutable Map. Redux's combineReducers works with Immutable, but the root is still a plain object. This utility will return an Immutable Map instead.

## Usage
```javascript
import combineReducers from 'redux-immutable-combine-reducers';
import {Map} from 'immutable';

function counter(state = 0, action = {}) {
  switch (action.type) {
    case 'INCREMENT':
      return state + 1;
    case 'DECREMENT':
      return state - 1;
    default:
      return state;
  }
}

function filter(state = '', action = {}) {
  switch (action.type) {
    case 'SET_FILTER':
      return action.filter;
    default:
      return state;
  }
}

const objReducer = combineReducer({counter, filter});
const objState = objReducer();
console.log(objState.get('counter'));
// => 0

const mapReducer = combineReducer(Map({counter, filter}));
const mapState = mapReducer();
console.log(mapState.get('counter'));
// => 0
```

## API

### combineReducers(reducers)

Returns a reducer function that always returns an Immutable.Map.

### reducers
Type: `object` | `Immutable.Map`

An `object` or `Immutable.Map` with all keys or entries being functions.

## LICENSE
MIT © [Dustin Specker](https://github.com/dustinspecker)


text:
<?php

namespace Renovate\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Estimation
 *
 * @ORM\Table(name="estimations")
 * @ORM\Entity
 */
class Estimation
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="estimation_number", type="string", length=255)
     */
    private $estimationNumber;

    /**
     * @var string
     *
     * @ORM\Column(name="contract_number", type="string", length=255)
     */
    private $contractNumber;

    /**
     * @var string
     *
     * @ORM\Column(name="customer", type="string", length=255)
     */
    private $customer;

    /**
     * @var string
     *
     * @ORM\Column(name="performer", type="string", length=255)
     */
    private $performer;

    /**
     * @var float
     *
     * @ORM\Column(name="materials_amount", type="float")
     */
    private $materialsAmount;

    /**
     * @var float
     *
     * @ORM\Column(name="works_amount", type="float")
     */
    private $worksAmount;

    /**
     * @var float
     *
     * @ORM\Column(name="discount", type="float")
     */
    private $discount;

    /**
     * @var float
     *
     * @ORM\Column(name="total_amount", type="float")
     */
    private $totalAmount;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created", type="datetime")
     */
    private $created;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated", type="datetime")
     */
    private $updated;

    /**
     * @ORM\OneToMany(targetEntity="EstimationCost", mappedBy="estimation")
     * @var array
     */
    private $estimationCosts;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set estimationNumber
     *
     * @param string $estimationNumber
     * @return Estimation
     */
    public function setEstimationNumber($estimationNumber)
    {
    	$this->estimationNumber = $estimationNumber;

    	return $this;
    }

    /**
     * Get estimationNumber
     *
     * @return string
     */
    public function getEstimationNumber()
    {
    	return $this->estimationNumber;
    }

    /**
     * Set contractNumber
     *
     * @param string $contractNumber
     * @return Estimation
     */
    public function setContractNumber($contractNumber)
    {
    	$this->contractNumber = $contractNumber;

    	return $this;
    }

    /**
     * Get contractNumber
     *
     * @return string
     */
    public function getContractNumber()
    {
    	return $this->contractNumber;
    }

    public function generateNumbers($em)
    {
    	$now = new \DateTime();
    	$from = $now->format('Y-m-00 00:00:00');

    	$qb = $em->getRepository("RenovateMainBundle:Estimation")
    	->createQueryBuilder('e');

    	$qb->select('COUNT(e.id)');

    	$qb->andWhere('e.created > :from')
    	->setParameter('from', $from);

    	$total = $qb->getQuery()->getSingleScalarResult();

    	$number = $now->format('y').$now->format('m').sprintf("%03d",$total);
    	$this->setEstimationNumber('К'.$number);
    	$this->setContractNumber('Д'.$number);
    }

    /**
     * Set customer
     *
     * @param string $customer
     * @return Estimation
     */
    public function setCustomer($customer)
    {
        $this->customer = $customer;

        return $this;
    }

    /**
     * Get customer
     *
     * @return string
     */
    public function getCustomer()
    {
        return $this->customer;
    }

    /**
     * Set performer
     *
     * @param string $performer
     * @return Estimation
     */
    public function setPerformer($performer)
    {
        $this->performer = $performer;

        return $this;
    }

    /**
     * Get performer
     *
     * @return string
     */
    public function getPerformer()
    {
        return $this->performer;
    }

    /**
     * Set materialsAmount
     *
     * @param float $materialsAmount
     * @return Estimation
     */
    public function setMaterialsAmount($materialsAmount)
    {
        $this->materialsAmount = $materialsAmount;

        return $this;
    }

    /**
     * Get materialsAmount
     *
     * @return float
     */
    public function getMaterialsAmount()
    {
        return $this->materialsAmount;
    }

    /**
     * Set worksAmount
     *
     * @param float $worksAmount
     * @return Estimation
     */
    public function setWorksAmount($worksAmount)
    {
        $this->worksAmount = $worksAmount;

        return $this;
    }

    /**
     * Get worksAmount
     *
     * @return float
     */
    public function getWorksAmount()
    {
        return $this->worksAmount;
    }

    /**
     * Set discount
     *
     * @param float $discount
     * @return Estimation
     */
    public function setDiscount($discount)
    {
    	$this->discount = $discount;

    	return $this;
    }

    /**
     * Get discount
     *
     * @return float
     */
    public function getDiscount()
    {
    	return $this->discount;
    }

    /**
     * Set totalAmount
     *
     * @param float $totalAmount
     * @return Estimation
     */
    public function setTotalAmount($totalAmount)
    {
        $this->totalAmount = $totalAmount;

        return $this;
    }

    /**
     * Get totalAmount
     *
     * @return float
     */
    public function getTotalAmount()
    {
        return $this->totalAmount;
    }

    public function calculateAmount()
    {
    	$worksAmount = 0;
    	$materialsAmount = 0;

    	foreach ($this->getEstimationCosts() as $estimationCost){
    		switch ($estimationCost->getCategoryType()){
    			case "works": $worksAmount = $worksAmount + $estimationCost->getTotal(); break;
    			case "materials": $materialsAmount = $materialsAmount + $estimationCost->getTotal(); break;
    		}
    	}

    	$this->setWorksAmount($worksAmount);
    	$this->setMaterialsAmount($materialsAmount);
    	$this->setTotalAmount($worksAmount+$materialsAmount-$this->getDiscount());
    	$this->setUpdated(new \DateTime());
    }

    /**
     * Set created
     *
     * @param \DateTime $created
     * @return Estimation
     */
    public function setCreated($created)
    {
    	$this->created = $created;

    	return $this;
    }

    /**
     * Get created
     *
     * @return \DateTime
     */
    public function getCreated()
    {
    	return $this->created;
    }

    /**
     * Set updated
     *
     * @param \DateTime $updated
     * @return Estimation
     */
    public function setUpdated($updated)
    {
        $this->updated = $updated;

        return $this;
    }

    /**
     * Get updated
     *
     * @return \DateTime
     */
    public function getUpdated()
    {
        return $this->updated;
    }

    /**
     * Add estimationCosts
     *
     * @param \Renovate\MainBundle\Entity\EstimationCost $estimationCosts
     * @return Estimation
     */
    public function addEstimationCost(\Renovate\MainBundle\Entity\EstimationCost $estimationCosts)
    {
    	$this->estimationCosts[] = $estimationCosts;

    	return $this;
    }

    /**
     * Remove estimationCosts
     *
     * @param \Renovate\MainBundle\Entity\EstimationCost $estimationCosts
     */
    public function removeEstimationCost(\Renovate\MainBundle\Entity\EstimationCost $estimationCosts)
    {
    	$this->estimationCosts->removeElement($estimationCosts);
    }

    /**
     * Get estimationCosts
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getEstimationCosts()
    {
    	return $this->estimationCosts;
    }

    public function getCostCategories()
    {
    	$categories = array();
    	foreach ($this->estimationCosts as $estimationCost){
    		if (!in_array($estimationCost->getCategoryType(),array_map(function($category){ return $category['name'];},$categories))){
    			$categories[] = array('name' => $estimationCost->getCategoryType(), 'items' => array());
    		}

    		foreach ($categories as $key=>$category){
    			if ($category['name'] === $estimationCost->getCategoryType()){
    				array_push($categories[$key]['items'], $estimationCost);
    			}
    		}
    	}

    	return $categories;
    }

    /**
     * Constructor
     */
    public function __construct()
    {
    	$this->estimationCosts = new \Doctrine\Common\Collections\ArrayCollection();
    }

    public function getInArray()
    {
    	return array(
    			'id' => $this->getId(),
    			'estimationNumber' => $this->getEstimationNumber(),
    			'contractNumber' => $this->getContractNumber(),
    			'customer' => $this->getCustomer(),
    			'performer' => $this->getPerformer(),
    			'materialsAmount' => $this->getMaterialsAmount(),
    			'worksAmount' => $this->getWorksAmount(),
    			'discount' => $this->getDiscount(),
    			'totalAmount' => $this->getTotalAmount(),
    			'created' => $this->getCreated()->getTimestamp()*1000,
    			'updated' => $this->getUpdated()->getTimestamp()*1000,
    			'estimationCosts' => ($this->getEstimationCosts() == null ) ? array() : array_map(function($estimationCost){return $estimationCost->getInArray();}, $this->getEstimationCosts()->toArray())
    	);
    }

    public static function getEstimations($em, $parameters, $inArray = false)
    {
    	$qb = $em->getRepository("RenovateMainBundle:Estimation")
    	->createQueryBuilder('e');

    	$qb->select('e')
    	->addOrderBy('e.updated', 'DESC');

    	if (isset($parameters['offset']) && isset($parameters['limit']))
    	{
    		$qb->setFirstResult($parameters['offset'])
    		->setMaxResults($parameters['limit']);
    	}

    	if (isset($parameters['from']))
    	{
    		$qb->andWhere('e.updated > :from')
    		->setParameter('from', $parameters['from']);
    	}

    	if (isset($parameters['to']))
    	{
    		$qb->andWhere('e.updated < :to')
    		->setParameter('to', $parameters['to']);
    	}

    	if (isset($parameters['search']))
    	{
    		$qb->andWhere($qb->expr()->orX(
    				$qb->expr()->like('e.id', $qb->expr()->literal('%'.$parameters['search'].'%')),
    				$qb->expr()->like('e.customer', $qb->expr()->literal('%'.$parameters['search'].'%')),
    				$qb->expr()->like('e.performer', $qb->expr()->literal('%'.$parameters['search'].'%'))
    		));
    	}

    	$result = $qb->getQuery()->getResult();

    	if ($inArray)
    	{
    		return array_map(function($estimation){
    			return $estimation->getInArray();
    		}, $result);
    	}else return $result;
    }

    public static function getEstimationsCount($em, $parameters)
    {
    	$qb = $em->getRepository("RenovateMainBundle:Estimation")
    	->createQueryBuilder('e');

    	$qb->select('COUNT(e.id)');

    	if (isset($parameters['from']))
    	{
    		$qb->andWhere('e.updated > :from')
    		->setParameter('from', $parameters['from']);
    	}

    	if (isset($parameters['to']))
    	{
    		$qb->andWhere('e.updated < :to')
    		->setParameter('to', $parameters['to']);
    	}

    	if (isset($parameters['search']))
    	{
    		$qb->andWhere($qb->expr()->orX(
    				$qb->expr()->like('e.id', $qb->expr()->literal('%'.$parameters['search'].'%')),
    				$qb->expr()->like('e.customer', $qb->expr()->literal('%'.$parameters['search'].'%')),
    				$qb->expr()->like('e.performer', $qb->expr()->literal('%'.$parameters['search'].'%'))
    		));
    	}

    	$total = $qb->getQuery()->getSingleScalarResult();

    	return $total;
    }

    public static function saveEstimation($em, $parameters)
    {
    	if (isset($parameters->id)){
    		$estimation = $em->getRepository("RenovateMainBundle:Estimation")->find($parameters->id);
    		$estimation->setEstimationNumber($parameters->estimationNumber);
    		$estimation->setContractNumber($parameters->contractNumber);
    		$estimation->setDiscount($parameters->discount);
    		$estimation->calculateAmount();
    		$estimation->setUpdated(new \DateTime($parameters->updated));
    	}else{
    		$estimation = new Estimation();
    		$estimation->setMaterialsAmount(0);
    		$estimation->setWorksAmount(0);
    		$estimation->setDiscount(0);
    		$estimation->setTotalAmount(0);
    		$estimation->generateNumbers($em);
    		$estimation->setCreated(new \DateTime());
    		$estimation->setUpdated(new \DateTime());
    	}

    	$estimation->setCustomer($parameters->customer);
    	$estimation->setPerformer($parameters->performer);

    	$em->persist($estimation);
    	$em->flush();

    	return $estimation;
    }

    public static function removeEstimationById($em, $id)
    {
    	$estimation = $em->getRepository("RenovateMainBundle:Estimation")->find($id);

    	foreach($estimation->getEstimationCosts() as $estimationCost){
    		$em->remove($estimationCost);
    		$em->flush();
    	}

    	$em->remove($estimation);
    	$em->flush();

    	return true;
    }

    public static function copyEstimationById($em, $id)
    {
    	$estimation = $em->getRepository("RenovateMainBundle:Estimation")->find($id);

    	$estimationCopy = new Estimation();
    	$estimationCopy->setEstimationNumber($estimation->getEstimationNumber());
    	$estimationCopy->setContractNumber($estimation->getContractNumber());
    	$estimationCopy->setCustomer($estimation->getCustomer());
    	$estimationCopy->setPerformer($estimation->getPerformer());
    	$estimationCopy->setMaterialsAmount($estimation->getMaterialsAmount());
    	$estimationCopy->setWorksAmount($estimation->getWorksAmount());
    	$estimationCopy->setDiscount($estimation->getDiscount());
    	$estimationCopy->setTotalAmount($estimation->getTotalAmount());
    	$estimationCopy->setCreated(new \DateTime());
    	$estimationCopy->setUpdated(new \DateTime());
    	$em->persist($estimationCopy);
    	$em->flush();

    	foreach($estimation->getEstimationCosts() as $estimationCost){
    		$estimationCostCopy = new EstimationCost();
    		$estimationCostCopy->setEstimationid($estimationCopy->getId());
    		$estimationCostCopy->setEstimation($estimationCopy);
    		$estimationCostCopy->setCategoryType($estimationCost->getCategoryType());
    		$estimationCostCopy->setName($estimationCost->getName());
    		$estimationCostCopy->setUnits($estimationCost->getUnits());
    		$estimationCostCopy->setPrice($estimationCost->getPrice());
    		$estimationCostCopy->setCount($estimationCost->getCount());
    		$estimationCostCopy->setTotal($estimationCost->getTotal());
    		$em->persist($estimationCostCopy);
    		$em->flush();
    	}

    	return $estimationCopy->getId();
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="avoid_type">
        <item>@string/state_close</item>
        <item>@string/avoid_enable_smart</item>
        <item>@string/avoid_enable_time</item>
    </string-array>
    <string-array name="avoid_type_sub">
        <item></item>
        <item>@string/avoid_enable_smart_sub</item>
        <item>@string/avoid_enable_time_sub</item>
    </string-array>
    <string-array name="colors">
        <item>@string/blue</item>
        <item>@string/orange</item>
        <item>@string/green</item>
        <item>@string/red</item>
    </string-array>
    <string-array name="hr_sport_new">
        <item>Hafif</item>
        <item>Ağır</item>
        <item>Aerobik</item>
        <item>Anaerobik</item>
        <item>Azami VO₂</item>
    </string-array>
    <string-array name="lock_screen_type">
        <item>Kapalı</item>
        <item>Yakın</item>
        <item>Uzak</item>
    </string-array>
    <string-array name="long_sit_items">
        <item>60 dakika</item>
        <item>90 dakika</item>
        <item>120 dakika</item>
    </string-array>
    <string-array name="mili_help_tips">
        <item>Bilekliğinizin şarj olduğundan ve pilin bitmemiş olduğundan emin olun.</item>
        <item>Öncelikle Bluetooth aygıtını kapatıp daha sonra mevcut cihaz ile eşleştirin.</item>
        <item>"Bileklik şarj edildiği halde telefon; bilekliği bulamıyorsa; telefonun Bluetooth'unu kapatıp-açmayı deneyin."</item>
        <item>"Bluetooth'u yeniden başlatmak sorunu çözmediyse; telefonunuzu yeniden başlatmayı deneyin."</item>
    </string-array>
    <string-array name="mili_help_title">
        <item>Bilekliğiniz şarj edildi mi?</item>
        <item>Bu bileklik başka bir cihazla mı eşleştirildi?</item>
        <item>"Bluetooth'u yeniden başlatmayı denediniz mi?"</item>
        <item>Telefonunuzu yeniden başlatmayı denediniz mi?</item>
    </string-array>
    <string-array name="mili_pro_display_items">
        <item>Süre</item>
        <item>Adım</item>
        <item>Mesafe</item>
        <item>Kalori</item>
        <item>Nabız</item>
        <item>Kalan Pil</item>
    </string-array>
    <string-array name="month_list">
        <item>Oca</item>
        <item>Şub</item>
        <item>Mar</item>
        <item>Nis</item>
        <item>May</item>
        <item>Haz</item>
        <item>Tem</item>
        <item>Ağu</item>
        <item>Eyl</item>
        <item>Eki</item>
        <item>Kas</item>
        <item>Ara</item>
    </string-array>
    <string-array name="normandy_help_tips">
        <item>Huami sensörünün pil ömrü 6 aydır. Sensörü 6 aydan daha uzun süredir kullanıyorsanız, sensörün pili bitmiş olabilir.</item>
        <item>"Öncelikle diğer cihazda Bluetooth'u kapatın, ardından telefonunuzla eşleştirin."</item>
        <item>Telefonunuzu yeniden başlatmayı deneyin, ardından bilekliği eşleştirin.</item>
        <item>"Bluetooth'u yeniden başlatmak sorunu çözmediyse; telefonunuzu yeniden başlatmayı deneyin."</item>
        <item>Mi Fit uygulamasını her açışınızda uygulama verileri otomatik olarak eşitlenmeye çalışacak</item>
    </string-array>
    <string-array name="normandy_help_title">
        <item>Huami sensörünün şarjı var mı?</item>
        <item>Huami sensörü başka bir cihazla mı eşleştirildi?</item>
        <item>"Bluetooth'u yeniden başlatmayı denediniz mi?"</item>
        <item>Telefonunuzu yeniden başlatmayı denediniz mi?</item>
        <item>Verilerimi sensör ile nasıl eşitleyebilirim?</item>
    </string-array>
    <string-array name="running_months">
        <item>Oca</item>
        <item>Şub</item>
        <item>Mar</item>
        <item>Nis</item>
        <item>May</item>
        <item>Haz</item>
        <item>Tem</item>
        <item>Ağu</item>
        <item>Eyl</item>
        <item>Eki</item>
        <item>Kas</item>
        <item>Ara</item>
    </string-array>
    <string-array name="shoes_help_tips">
        <item>Huami sensörünü uzun bir süre kullanmazsanız uyku moduna geçer. Sensörü sallamayı deneyin.</item>
        <item>Huami sensörünün pil ömrü 1 yıldır. Sensörü bir yıldan uzun süredir kullanıyorsanız, sensörün pili bitmiş olabilir.</item>
        <item>Öncelikle Bluetooth aygıtını kapatın, ardından mevcut cihaz ile eşleştirin.</item>
        <item>Telefonunuzu yeniden başlatmayı deneyin, ardından bilekliği eşleştirin.</item>
        <item>"Bluetooth'u yeniden başlatmak problemi çözmüyorsa, telefonunuzu yeniden başlatmayı deneyin."</item>
        <item>Mi Fit uygulamasını her açışınızda uygulama verileri otomatik olarak eşitlenmeye çalışacak.</item>
    </string-array>
    <string-array name="shoes_help_title">
        <item>Huami sensörünü sallayın</item>
        <item>Huami sensörü şarj edildi mi?</item>
        <item>Huami sensörü başka bir cihazla mı eşleştirildi?</item>
        <item>"Bluetooth'u yeniden başlatmayı deneyin"</item>
        <item>Telefonunuzu yeniden başlatmayı deneyin</item>
        <item>Ayakkabı verileri nasıl eşitleyebilirim?</item>
    </string-array>
    <string-array name="unbind_device_description">
        <item>Mi Band</item>
        <item>Mi Tartı</item>
        <item>Ayakkabı</item>
    </string-array>
    <string-array name="wear_type">
        <item>@string/left_hand</item>
        <item>@string/right_hand</item>
    </string-array>
    <string-array name="wear_type_body">
        <item>@string/left_hand</item>
        <item>@string/right_hand</item>
        <item>@string/body</item>
    </string-array>
    <string-array name="weeks">
        <item>Pazartesi</item>
        <item>Salı</item>
        <item>Çarşamba</item>
        <item>Perşembe</item>
        <item>Cuma</item>
        <item>Cumartesi</item>
        <item>Pazar</item>
    </string-array>
    <string-array name="weeks_short">
        <item>Pzt</item>
        <item>Sal</item>
        <item>Çrş</item>
        <item>Prş</item>
        <item>Cum</item>
        <item>Cts</item>
        <item>Paz</item>
    </string-array>
    <string-array name="weight_body_figures">
        <item>Zayıf</item>
        <item>Normal</item>
        <item>Kilolu</item>
        <item>Obez I</item>
    </string-array>
    <string-array name="weight_body_figures_for_child">
        <item>Normal</item>
        <item>Kilolu</item>
        <item>Obez</item>
    </string-array>
    <string-array name="weight_body_figures_for_not_chinese">
        <item>Zayıf</item>
        <item>Normal</item>
        <item>Kilolu</item>
        <item>Obez I</item>
        <item>Obez II</item>
    </string-array>
    <string-array name="weight_help_tips">
        <item>Ağırlığınızın görüntülenip, görüntülemediğini kontrol etmek için tartının üzerine çıkabilirsiniz. Tartı üzerinde düşük pil ikonu görüntüleniyorsa, lütfen tartının pillerini değiştirin.</item>
        <item>Tartının üzerine çıktığınızda tepki vermiyorsa, pillerin doğru bir şekilde takılıp takılmadığını kontrol edin.</item>
        <item>"Bileklik şarj edildiği halde telefon bilekliği bulamıyorsa, telefonun Bluetooth'unu açıp kapatmayı deneyin."</item>
        <item>"Bluetooth'u yeniden başlatmak problemi çözmüyorsa, telefonunuzu yeniden başlatmayı deneyin."</item>
        <item>Mi Fit uygulamasını her açışınızda uygulama verileri otomatik olarak eşitlemeye çalışacak.</item>
    </string-array>
    <string-array name="weight_help_title">
        <item>Yeteri kadar pil var mı?</item>
        <item>Piller doğru şekilde takıldı mı?</item>
        <item>"Bluetooth'u yeniden başlatmayı denediniz mi?"</item>
        <item>Telefonunuzu yeniden başlatmayı denediniz mi?</item>
        <item>Mi Tartı verileri nasıl eşitleyebilirim?</item>
    </string-array>
    <string-array name="weight_unit">
        <item>" kg"</item>
        <item>" Jin"</item>
        <item>" lbs"</item>
    </string-array>
    <string-array name="timeline_type">
        <item>Etkinlik</item>
        <item>Yürüyüş</item>
        <item>Yürü</item>
        <item>Hızlı Git</item>
        <item>Koş</item>
        <item>Ayakta</item>
        <item>Sessiz Oturuş</item>
        <item>Ufak Vakalar</item>
        <item>Bileklik takılı değil</item>
        <item>Bileklik şarjda</item>
        <item>Yaslandı</item>
    </string-array>
</resources>


text:
/** Entrée de la souris
 * O876 Raycaster project
 * @date 2012-01-01
 * @author Raphaël Marandet
 * Mémorise les coordonnée de la souris et les touche enfoncées
 */
O2.createClass('O876_Raycaster.MouseDevice', {
	nButtons: 0,
	aEventBuffer: null,
	nKeyBufferSize: 16,
	bUseBuffer: true,
	nSecurityDelay: 0,
	oElement: null,
	vMouse: null,
	oHandlers: null,

	__construct: function() {
		this.aEventBuffer = [];
		this.oHandlers = {};
		this.vMouse = {clientX: 0, clientY: 0};
	},

	clearBuffer: function() {
		this.aEventBuffer = [];
	},

	getElementPosition: function() {
		var e = this.oElement;
		var x = e.offsetLeft;
		var y = e.offsetTop;
		while (e.offsetParent) {
			e = e.offsetParent;
			x += e.offsetLeft;
			y += e.offsetTop;
		}
		return {x: x, y: y};
	},

	getMousePosition: function(oEvent) {
		var cx = oEvent.clientX || oEvent.x;
		var cy = oEvent.clientY || oEvent.y;
		var p = this.getElementPosition();
		var x = cx - p.x;
		var y = cy - p.y;
		var e = this.oElement;
		var xReal = x * e.width / e.offsetWidth | 0;
		var yReal = y * e.height / e.offsetHeight | 0;
		return {x: xReal, y: yReal};
	},

	eventMouseUp: function(oEvent) {
		this.nButtons = oEvent.buttons;
		if (this.bUseBuffer && this.aEventBuffer.length < this.nKeyBufferSize) {
			var p = this.getMousePosition(oEvent);
			this.aEventBuffer.push([0, p.x, p.y, oEvent.button]);
		}
		return false;
	},

	eventMouseDown: function(oEvent) {
		this.nButtons = oEvent.buttons;
		if (this.bUseBuffer && this.aEventBuffer.length < this.nKeyBufferSize) {
			var p = this.getMousePosition(oEvent);
			this.aEventBuffer.push([1, p.x, p.y, oEvent.button]);
		}
		if (oEvent.button === 2) {
			if (oEvent.stopPropagation) {
				oEvent.stopPropagation();
			}
			oEvent.cancelBubble = true;
		}
		return false;
	},

	eventMouseMove: function(oEvent) {
		this.vMouse.x = oEvent.clientX;
		this.vMouse.y = oEvent.clientY;
	},

	eventMouseClick: function(oEvent) {
		if (oEvent.button === 2) {
			if (oEvent.stopPropagation) {
				oEvent.stopPropagation();
			}
			oEvent.cancelBubble = true;
		}
		return false;
	},

	/**
	 * Renvoie la position du curseur de la souris dans le context du canvas associé
	 * @return {*}
	 */
	getPixelPointer: function() {
		return this.getMousePosition(this.vMouse);
	},

	/**
	 * Renvoie le prochain message souris précédemment empilé
	 * ou renvoie "undefined" s'il n'y a pas de message
	 * un message prend ce format :
	 * [ nUpOrDown, X, Y, Button ]
	 * nUpOrDown vaut 0 quand le bouton de la souris est relaché et vaut 1 quand le bouton est enfoncé
	 * il vaut 3 quand la molette de la souris est roulée vers le haut, et -3 vers le bas
	 */
	readMouse: function() {
		if (this.nSecurityDelay > 0) {
			--this.nSecurityDelay;
			this.clearBuffer();
			return null;
		} else {
			return this.aEventBuffer.shift();
		}
	},

	mouseWheel: function(e) {
		var oEvent = window.event ? window.event : e;
		var nDelta = 0;
		if (oEvent.wheelDelta) {
			nDelta = oEvent.wheelDelta;
		} else {
			nDelta = -40 * oEvent.detail;
		}
		if (this.bUseBuffer && this.aEventBuffer.length < this.nKeyBufferSize) {
			if (e.wheelDelta) {
				nDelta = oEvent.wheelDelta > 0 ? 3 : -3;
				this.aEventBuffer.push([nDelta, 0, 0, 3]);
			} else {
				nDelta = oEvent.detail > 0 ? -3 : 3;
				this.aEventBuffer.push([nDelta, 0, 0, 3]);
			}
		}
	},

	/**
	 * Will add event listener and keep track of it for future remove
	 * @param sEvent DOM Event name
	 * @param pHandler event handler function
	 */
	plugHandler: function(sEvent, pHandler) {
		var p = pHandler.bind(this);
		this.oHandlers[sEvent] = p;
		this.oElement.addEventListener(sEvent, p, false);
	},

	/**
	 * Will remove previously added event handler
	 * Will do nothing if handler has not been previously added
	 * @param sEvent DOM event name
	 */
	unplugHandler: function(sEvent) {
		if (sEvent in this.oHandlers) {
			var p = this.oHandlers[sEvent];
			this.oElement.removeEventListener(sEvent, p);
			delete this.oHandlers[sEvent];
		}
	},

	/**
	 * Branche le handler de leture souris à l"élément spécifié
	 */
	plugHandlers: function(oElement) {
		this.oElement = oElement;
		this.plugHandler('mousedown', this.eventMouseDown);
		this.plugHandler('click', this.eventMouseClick);
		this.plugHandler('mouseup', this.eventMouseUp);
		this.plugHandler('mousewheel', this.mouseWheel);
		this.plugHandler('DOMMouseScroll', this.mouseWheel);
		this.plugHandler('mousemove', this.eventMouseMove);
	},

	unplugHandlers: function() {
		('mousedown click mouseup mousewheel DOMMouseScroll mousemove').split(' ').forEach(this.unplugHandler.bind(this));
	}
});


text:
package net.maritimecloud.portal.infrastructure.service;

import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import org.junit.Test;

/**
 * Please notice that the Shiro PasswordService must match this Hashing strategy
 *
 * @author Christoffer Børrild
 */
public class SHA512EncryptionServiceTest {

    @Test
    public void encryptedValueShouldContainHashType() {
        SHA512EncryptionService service = new SHA512EncryptionService();
        String encryptedValue = service.encryptedValue("secret");
        assertThat(encryptedValue, containsString("SHA-512"));
        // TODO: increase back to 500.000 iterations when out of development phase
        assertThat(encryptedValue, containsString("1000"));
    }

    @Test
    public void encryptedValueMethodShouldNotBeIdempotent() {
        SHA512EncryptionService service = new SHA512EncryptionService();
        String encryptedValue = service.encryptedValue("sharedSecret");
        String anotherEncryptedValue = service.encryptedValue("sharedSecret");
        assertThat(anotherEncryptedValue, not(equalTo(encryptedValue)));
    }

    @Test
    public void shouldMatchEncryptedValueWithItsPlainTextOrigin() {
        SHA512EncryptionService service = new SHA512EncryptionService();
        String encryptedValue = service.encryptedValue("sharedSecret");
        assertTrue(service.valuesMatch("sharedSecret", encryptedValue));
    }

}


text:
import sys
import time
import datetime

from  numpy import pi as pi
from numpy import shape,zeros,ones,hstack,dot,float32,reshape
import h5py
import getopt
import _pysar_utilities as ut

def reconstruct_igrams_from_timeseries(h5timeseries,h5igrams):

   ########################################################
  dateList = h5timeseries['timeseries'].keys()

  dateIndex={}
  for ni in range(len(dateList)):
    dateIndex[dateList[ni]]=ni

  dset = h5timeseries['timeseries'].get(h5timeseries['timeseries'].keys()[0])
  nrows,ncols=shape(dset)
  timeseries = zeros((len(h5timeseries['timeseries'].keys()),shape(dset)[0]*shape(dset)[1]),float32)
  for date in dateList:
    dset = h5timeseries['timeseries'].get(date)
    d = dset[0:dset.shape[0],0:dset.shape[1]]
    timeseries[dateIndex[date]][:]=d.flatten(0)
  del d

  lt,numpixels=shape(timeseries)
  A,B = ut.design_matrix(h5igrams)

  lam = float(h5timeseries['timeseries'].attrs['WAVELENGTH'])
  range2phase=-4*pi/lam
  timeseries=range2phase*timeseries

  p=-1*ones([A.shape[0],1])
  Ap=hstack((p,A))
  estData=dot(Ap,timeseries)

  return estData,nrows,ncols

def Usage():
  print '''
    ****************************************************************************************
    ****************************************************************************************
    reconstructs the interferograms from the time-series epochs

    usage:

       reconstruct_igrams.py simulatedIgrams.h5 timeseries.h5  [Out put Name]

    example:

       reconstruct_igrams.py Seeded_LoadedData_BajaT270EnvD2.h5 timeseries.h5

       reconstruct_igrams.py Seeded_LoadedData_BajaT270EnvD2.h5 timeseries.h5  reconstructedIgrams.h5

    ****************************************************************************************
    ****************************************************************************************
'''

def main(argv):

  try:
     igramFile=argv[0]
     tsFile=argv[1]
  except:
     Usage() ; sys.exit(1)

  try:
     h5igrams=h5py.File(igramFile,'r')
     h5timeseries=h5py.File(tsFile,'r')
  except:
     Usage() ; sys.exit(1)

  try:
     outName=argv[2]
  except:
     outName='reconstructed_'+igramFile

  estData,nrows,ncols=reconstruct_igrams_from_timeseries(h5timeseries,h5igrams)

  h5estIgram=h5py.File(outName,'w')
  igramList=h5igrams['interferograms'].keys()
  gg = h5estIgram.create_group('interferograms')
  for i in range(len(igramList)):
      print igramList[i]
      data=reshape(estData[i,:],(nrows,ncols))
      group = gg.create_group(igramList[i])
      dset = group.create_dataset(igramList[i], data=data, compression='gzip')
      for key, value in h5igrams['interferograms'][igramList[i]].attrs.iteritems():
          group.attrs[key] = value

  print '*****************************'
  print 'writing to ' + outName
  print '*****************************'

  h5estIgram.close()

if __name__ == '__main__':

  main(sys.argv[1:])


text:
// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

package com.microsoft.azure.management.notificationhubs.models;

/**
* Response of the CreateOrUpdate operation on the AuthorizationRules
*/
public class AuthorizationRulesCreateOrUpdateResponse {
    private AuthorizationRulesResource value;

    /**
    * Optional. Gets or Sets Namespace AuthorizationRules description
    * @return The Value value.
    */
    public AuthorizationRulesResource getValue() {
        return this.value;
    }

    /**
    * Optional. Gets or Sets Namespace AuthorizationRules description
    * @param valueValue The Value value.
    */
    public void setValue(final AuthorizationRulesResource valueValue) {
        this.value = valueValue;
    }
}


text:
$num_instances=3

# coreos-vagrant is configured through a series of configuration
# options (global ruby variables) which are detailed below. To modify
# these options, first copy this file to "config.rb". Then simply
# uncomment the necessary lines, leaving the $, and replace everything
# after the equals sign..

# Change the version of CoreOS to be installed
# To deploy a specific version, simply set $image_version accordingly.
# For example, to deploy version 709.0.0, set $image_version="709.0.0".
# The default value is "current", which points to the current version
# of the selected channel
$image_version = "current"

# Official CoreOS channel from which updates should be downloaded
$update_channel='stable'

# Log the serial consoles of CoreOS VMs to log/
# Enable by setting value to true, disable with false
# WARNING: Serial logging is known to result in extremely high CPU usage with
# VirtualBox, so should only be used in debugging situations
$enable_serial_logging=false

# Enable port forwarding of Docker TCP socket
# Set to the TCP port you want exposed on the *host* machine, default is 2375
# If 2375 is used, Vagrant will auto-increment (e.g. in the case of $num_instances > 1)
# You can then use the docker tool locally by setting the following env var:
#   export DOCKER_HOST='tcp://127.0.0.1:2375'
$expose_docker_tcp=2375

# Setting for VirtualBox VMs
$vb_gui = false
$vb_memory = 1048
$vb_cpus = 1

# Share additional folders to the CoreOS VMs
# For example,
# $shared_folders = {'/path/on/host' => '/path/on/guest', '/home/foo/app' => '/app'}
# or, to map host folders to guest folders of the same name,
# $shared_folders = Hash[*['/home/foo/app1', '/home/foo/app2'].map{|d| [d, d]}.flatten]
#$shared_folders = {}

# Enable port forwarding from guest(s) to host machine, syntax is: { 80 => 8080 }, auto correction is enabled by default.
$forwarded_ports = {2375 => 2377}


text:
<?php

class Google_Service_TagManager_Workspace extends Google_Model
{
  public $accountId;
  public $containerId;
  public $description;
  public $fingerprint;
  public $name;
  public $path;
  public $tagManagerUrl;
  public $workspaceId;

  public function setAccountId($accountId)
  {
    $this->accountId = $accountId;
  }
  public function getAccountId()
  {
    return $this->accountId;
  }
  public function setContainerId($containerId)
  {
    $this->containerId = $containerId;
  }
  public function getContainerId()
  {
    return $this->containerId;
  }
  public function setDescription($description)
  {
    $this->description = $description;
  }
  public function getDescription()
  {
    return $this->description;
  }
  public function setFingerprint($fingerprint)
  {
    $this->fingerprint = $fingerprint;
  }
  public function getFingerprint()
  {
    return $this->fingerprint;
  }
  public function setName($name)
  {
    $this->name = $name;
  }
  public function getName()
  {
    return $this->name;
  }
  public function setPath($path)
  {
    $this->path = $path;
  }
  public function getPath()
  {
    return $this->path;
  }
  public function setTagManagerUrl($tagManagerUrl)
  {
    $this->tagManagerUrl = $tagManagerUrl;
  }
  public function getTagManagerUrl()
  {
    return $this->tagManagerUrl;
  }
  public function setWorkspaceId($workspaceId)
  {
    $this->workspaceId = $workspaceId;
  }
  public function getWorkspaceId()
  {
    return $this->workspaceId;
  }
}


text:
TEST(Compiler, CompileCPPCode)
{
    Compiler compiler(CODE_TO_COMPILE_CPP, OUTPUT_PATH_CPP, CPP);
    StageOutput output;
    compiler.compile(output);
    ASSERT_TRUE(exist(OUTPUT_PATH_CPP));
    ASSERT_TRUE(isExecutable(OUTPUT_PATH_CPP));
    ASSERT_EQ(SUCCESS, output.getStatus());
    remove(OUTPUT_PATH_CPP);
}

TEST(Compiler, CompileANSI_CCode)
{
    Compiler compiler(CODE_TO_COMPILE_C, OUTPUT_PATH_C, ANSI_C);
    StageOutput output;
    compiler.compile(output);
    ASSERT_TRUE(exist(OUTPUT_PATH_C));
    ASSERT_TRUE(isExecutable(OUTPUT_PATH_C));
    ASSERT_EQ(SUCCESS, output.getStatus());
    remove(OUTPUT_PATH_C);
}

TEST(Compiler, CompileCPPCodeThatHaveToFail)
{
    Compiler compiler(CODE_TO_COMPILE_CPP_FAIL, OUTPUT_PATH_CPP, CPP);
    StageOutput output;
    compiler.compile(output);
    ASSERT_EQ(FAIL, output.getStatus());
    ASSERT_FALSE(output.getErrorMessage().empty());
}

TEST(Compiler, CompileANSI_CCodeThatHaveToFail)
{
    Compiler compiler(CODE_TO_COMPILE_C_FAIL, OUTPUT_PATH_C, ANSI_C);
    StageOutput output;
    compiler.compile(output);
    ASSERT_EQ(FAIL, output.getStatus());
    ASSERT_FALSE(output.getErrorMessage().empty());
}


text:
FROM ubuntu:16.04

MAINTAINER Alexander Ivanov alexander.radievich@gmail.com

RUN apt-get update && apt-get install
RUN apt-get install -yqq \
	python3 \
	python3-pip \
	python3-dev \
	build-essential \
	python3-setuptools \
	libxslt1-dev \
	zlib1g-dev \
  zip

RUN pip3 install -U pip
RUN pip3 install -U notebook

ADD . reskit

RUN pip3 install -r reskit/requirements.txt
RUN zip -r reskit.zip reskit
RUN pip3 install -U reskit.zip


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item type="id" name="hierarchy"/>

    <item type="id" name="isexpand"/>
</resources>


text:
using gax = Google.Api.Gax;
using sys = System;

namespace Google.Cloud.Run.V2
{
    /// Resource name for the <c>CryptoKey</c> resource.
    public sealed partial class CryptoKeyName : gax::IResourceName, sys::IEquatable<CryptoKeyName>
    {
        /// The possible contents of <see cref="CryptoKeyName"/>.
        public enum ResourceNameType
        {
            /// An unparsed resource name.
            Unparsed = 0,

            ///
            /// A resource name with pattern
            /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>.
            ///
            ProjectLocationKeyRingCryptoKey = 1,
        }

        private static gax::PathTemplate s_projectLocationKeyRingCryptoKey = new gax::PathTemplate("projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}");

        /// Creates a <see cref="CryptoKeyName"/> containing an unparsed resource name.
        /// <param name="unparsedResourceName">The unparsed resource name. Must not be <c>null</c>.</param>
        /// <returns>
        /// A new instance of <see cref="CryptoKeyName"/> containing the provided
        /// <paramref name="unparsedResourceName"/>.
        /// </returns>
        public static CryptoKeyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) =>
            new CryptoKeyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName)));

        ///
        /// Creates a <see cref="CryptoKeyName"/> with the pattern
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="keyRingId">The <c>KeyRing</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="cryptoKeyId">The <c>CryptoKey</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>A new instance of <see cref="CryptoKeyName"/> constructed from the provided ids.</returns>
        public static CryptoKeyName FromProjectLocationKeyRingCryptoKey(string projectId, string locationId, string keyRingId, string cryptoKeyId) =>
            new CryptoKeyName(ResourceNameType.ProjectLocationKeyRingCryptoKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId)));

        ///
        /// Formats the IDs into the string representation of this <see cref="CryptoKeyName"/> with pattern
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="keyRingId">The <c>KeyRing</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="cryptoKeyId">The <c>CryptoKey</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="CryptoKeyName"/> with pattern
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>.
        /// </returns>
        public static string Format(string projectId, string locationId, string keyRingId, string cryptoKeyId) =>
            FormatProjectLocationKeyRingCryptoKey(projectId, locationId, keyRingId, cryptoKeyId);

        ///
        /// Formats the IDs into the string representation of this <see cref="CryptoKeyName"/> with pattern
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="keyRingId">The <c>KeyRing</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="cryptoKeyId">The <c>CryptoKey</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="CryptoKeyName"/> with pattern
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>.
        /// </returns>
        public static string FormatProjectLocationKeyRingCryptoKey(string projectId, string locationId, string keyRingId, string cryptoKeyId) =>
            s_projectLocationKeyRingCryptoKey.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId)));

        /// Parses the given resource name string into a new <see cref="CryptoKeyName"/> instance.
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description>
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>
        /// </description>
        /// </item>
        /// </list>
        /// </remarks>
        /// <param name="cryptoKeyName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <returns>The parsed <see cref="CryptoKeyName"/> if successful.</returns>
        public static CryptoKeyName Parse(string cryptoKeyName) => Parse(cryptoKeyName, false);

        ///
        /// Parses the given resource name string into a new <see cref="CryptoKeyName"/> instance; optionally allowing
        /// an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description>
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>
        /// </description>
        /// </item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="cryptoKeyName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <returns>The parsed <see cref="CryptoKeyName"/> if successful.</returns>
        public static CryptoKeyName Parse(string cryptoKeyName, bool allowUnparsed) =>
            TryParse(cryptoKeyName, allowUnparsed, out CryptoKeyName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern.");

        ///
        /// Tries to parse the given resource name string into a new <see cref="CryptoKeyName"/> instance.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description>
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>
        /// </description>
        /// </item>
        /// </list>
        /// </remarks>
        /// <param name="cryptoKeyName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="CryptoKeyName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string cryptoKeyName, out CryptoKeyName result) => TryParse(cryptoKeyName, false, out result);

        ///
        /// Tries to parse the given resource name string into a new <see cref="CryptoKeyName"/> instance; optionally
        /// allowing an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description>
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>
        /// </description>
        /// </item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="cryptoKeyName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="CryptoKeyName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string cryptoKeyName, bool allowUnparsed, out CryptoKeyName result)
        {
            gax::GaxPreconditions.CheckNotNull(cryptoKeyName, nameof(cryptoKeyName));
            gax::TemplatedResourceName resourceName;
            if (s_projectLocationKeyRingCryptoKey.TryParseName(cryptoKeyName, out resourceName))
            {
                result = FromProjectLocationKeyRingCryptoKey(resourceName[0], resourceName[1], resourceName[2], resourceName[3]);
                return true;
            }
            if (allowUnparsed)
            {
                if (gax::UnparsedResourceName.TryParse(cryptoKeyName, out gax::UnparsedResourceName unparsedResourceName))
                {
                    result = FromUnparsed(unparsedResourceName);
                    return true;
                }
            }
            result = null;
            return false;
        }

        private CryptoKeyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string cryptoKeyId = null, string keyRingId = null, string locationId = null, string projectId = null)
        {
            Type = type;
            UnparsedResource = unparsedResourceName;
            CryptoKeyId = cryptoKeyId;
            KeyRingId = keyRingId;
            LocationId = locationId;
            ProjectId = projectId;
        }

        ///
        /// Constructs a new instance of a <see cref="CryptoKeyName"/> class from the component parts of pattern
        /// <c>projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}</c>
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="keyRingId">The <c>KeyRing</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="cryptoKeyId">The <c>CryptoKey</c> ID. Must not be <c>null</c> or empty.</param>
        public CryptoKeyName(string projectId, string locationId, string keyRingId, string cryptoKeyId) : this(ResourceNameType.ProjectLocationKeyRingCryptoKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId)))
        {
        }

        /// The <see cref="ResourceNameType"/> of the contained resource name.
        public ResourceNameType Type { get; }

        ///
        /// The contained <see cref="gax::UnparsedResourceName"/>. Only non-<c>null</c> if this instance contains an
        /// unparsed resource name.
        ///
        public gax::UnparsedResourceName UnparsedResource { get; }

        ///
        /// The <c>CryptoKey</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string CryptoKeyId { get; }

        ///
        /// The <c>KeyRing</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string KeyRingId { get; }

        ///
        /// The <c>Location</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string LocationId { get; }

        ///
        /// The <c>Project</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string ProjectId { get; }

        /// Whether this instance contains a resource name with a known pattern.
        public bool IsKnownPattern => Type != ResourceNameType.Unparsed;

        /// The string representation of the resource name.
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
                case ResourceNameType.Unparsed: return UnparsedResource.ToString();
                case ResourceNameType.ProjectLocationKeyRingCryptoKey: return s_projectLocationKeyRingCryptoKey.Expand(ProjectId, LocationId, KeyRingId, CryptoKeyId);
                default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }

        /// Returns a hash code for this resource name.
        public override int GetHashCode() => ToString().GetHashCode();

        /// <inheritdoc/>
        public override bool Equals(object obj) => Equals(obj as CryptoKeyName);

        /// <inheritdoc/>
        public bool Equals(CryptoKeyName other) => ToString() == other?.ToString();

        /// <inheritdoc/>
        public static bool operator ==(CryptoKeyName a, CryptoKeyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);

        /// <inheritdoc/>
        public static bool operator !=(CryptoKeyName a, CryptoKeyName b) => !(a == b);
    }

    /// Resource name for the <c>Secret</c> resource.
    public sealed partial class SecretName : gax::IResourceName, sys::IEquatable<SecretName>
    {
        /// The possible contents of <see cref="SecretName"/>.
        public enum ResourceNameType
        {
            /// An unparsed resource name.
            Unparsed = 0,

            /// A resource name with pattern <c>projects/{project}/secrets/{secret}</c>.
            ProjectSecret = 1,
        }

        private static gax::PathTemplate s_projectSecret = new gax::PathTemplate("projects/{project}/secrets/{secret}");

        /// Creates a <see cref="SecretName"/> containing an unparsed resource name.
        /// <param name="unparsedResourceName">The unparsed resource name. Must not be <c>null</c>.</param>
        /// <returns>
        /// A new instance of <see cref="SecretName"/> containing the provided <paramref name="unparsedResourceName"/>.
        /// </returns>
        public static SecretName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) =>
            new SecretName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName)));

        ///
        /// Creates a <see cref="SecretName"/> with the pattern <c>projects/{project}/secrets/{secret}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>A new instance of <see cref="SecretName"/> constructed from the provided ids.</returns>
        public static SecretName FromProjectSecret(string projectId, string secretId) =>
            new SecretName(ResourceNameType.ProjectSecret, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)));

        ///
        /// Formats the IDs into the string representation of this <see cref="SecretName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="SecretName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}</c>.
        /// </returns>
        public static string Format(string projectId, string secretId) => FormatProjectSecret(projectId, secretId);

        ///
        /// Formats the IDs into the string representation of this <see cref="SecretName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="SecretName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}</c>.
        /// </returns>
        public static string FormatProjectSecret(string projectId, string secretId) =>
            s_projectSecret.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)));

        /// Parses the given resource name string into a new <see cref="SecretName"/> instance.
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}</c></description></item>
        /// </list>
        /// </remarks>
        /// <param name="secretName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <returns>The parsed <see cref="SecretName"/> if successful.</returns>
        public static SecretName Parse(string secretName) => Parse(secretName, false);

        ///
        /// Parses the given resource name string into a new <see cref="SecretName"/> instance; optionally allowing an
        /// unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}</c></description></item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="secretName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <returns>The parsed <see cref="SecretName"/> if successful.</returns>
        public static SecretName Parse(string secretName, bool allowUnparsed) =>
            TryParse(secretName, allowUnparsed, out SecretName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern.");

        ///
        /// Tries to parse the given resource name string into a new <see cref="SecretName"/> instance.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}</c></description></item>
        /// </list>
        /// </remarks>
        /// <param name="secretName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="SecretName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string secretName, out SecretName result) => TryParse(secretName, false, out result);

        ///
        /// Tries to parse the given resource name string into a new <see cref="SecretName"/> instance; optionally
        /// allowing an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}</c></description></item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="secretName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="SecretName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string secretName, bool allowUnparsed, out SecretName result)
        {
            gax::GaxPreconditions.CheckNotNull(secretName, nameof(secretName));
            gax::TemplatedResourceName resourceName;
            if (s_projectSecret.TryParseName(secretName, out resourceName))
            {
                result = FromProjectSecret(resourceName[0], resourceName[1]);
                return true;
            }
            if (allowUnparsed)
            {
                if (gax::UnparsedResourceName.TryParse(secretName, out gax::UnparsedResourceName unparsedResourceName))
                {
                    result = FromUnparsed(unparsedResourceName);
                    return true;
                }
            }
            result = null;
            return false;
        }

        private SecretName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string secretId = null)
        {
            Type = type;
            UnparsedResource = unparsedResourceName;
            ProjectId = projectId;
            SecretId = secretId;
        }

        ///
        /// Constructs a new instance of a <see cref="SecretName"/> class from the component parts of pattern
        /// <c>projects/{project}/secrets/{secret}</c>
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        public SecretName(string projectId, string secretId) : this(ResourceNameType.ProjectSecret, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)))
        {
        }

        /// The <see cref="ResourceNameType"/> of the contained resource name.
        public ResourceNameType Type { get; }

        ///
        /// The contained <see cref="gax::UnparsedResourceName"/>. Only non-<c>null</c> if this instance contains an
        /// unparsed resource name.
        ///
        public gax::UnparsedResourceName UnparsedResource { get; }

        ///
        /// The <c>Project</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string ProjectId { get; }

        ///
        /// The <c>Secret</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string SecretId { get; }

        /// Whether this instance contains a resource name with a known pattern.
        public bool IsKnownPattern => Type != ResourceNameType.Unparsed;

        /// The string representation of the resource name.
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
                case ResourceNameType.Unparsed: return UnparsedResource.ToString();
                case ResourceNameType.ProjectSecret: return s_projectSecret.Expand(ProjectId, SecretId);
                default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }

        /// Returns a hash code for this resource name.
        public override int GetHashCode() => ToString().GetHashCode();

        /// <inheritdoc/>
        public override bool Equals(object obj) => Equals(obj as SecretName);

        /// <inheritdoc/>
        public bool Equals(SecretName other) => ToString() == other?.ToString();

        /// <inheritdoc/>
        public static bool operator ==(SecretName a, SecretName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);

        /// <inheritdoc/>
        public static bool operator !=(SecretName a, SecretName b) => !(a == b);
    }

    /// Resource name for the <c>SecretVersion</c> resource.
    public sealed partial class SecretVersionName : gax::IResourceName, sys::IEquatable<SecretVersionName>
    {
        /// The possible contents of <see cref="SecretVersionName"/>.
        public enum ResourceNameType
        {
            /// An unparsed resource name.
            Unparsed = 0,

            ///
            /// A resource name with pattern <c>projects/{project}/secrets/{secret}/versions/{version}</c>.
            ///
            ProjectSecretVersion = 1,
        }

        private static gax::PathTemplate s_projectSecretVersion = new gax::PathTemplate("projects/{project}/secrets/{secret}/versions/{version}");

        /// Creates a <see cref="SecretVersionName"/> containing an unparsed resource name.
        /// <param name="unparsedResourceName">The unparsed resource name. Must not be <c>null</c>.</param>
        /// <returns>
        /// A new instance of <see cref="SecretVersionName"/> containing the provided
        /// <paramref name="unparsedResourceName"/>.
        /// </returns>
        public static SecretVersionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) =>
            new SecretVersionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName)));

        ///
        /// Creates a <see cref="SecretVersionName"/> with the pattern
        /// <c>projects/{project}/secrets/{secret}/versions/{version}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="versionId">The <c>Version</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>A new instance of <see cref="SecretVersionName"/> constructed from the provided ids.</returns>
        public static SecretVersionName FromProjectSecretVersion(string projectId, string secretId, string versionId) =>
            new SecretVersionName(ResourceNameType.ProjectSecretVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), versionId: gax::GaxPreconditions.CheckNotNullOrEmpty(versionId, nameof(versionId)));

        ///
        /// Formats the IDs into the string representation of this <see cref="SecretVersionName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}/versions/{version}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="versionId">The <c>Version</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="SecretVersionName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}/versions/{version}</c>.
        /// </returns>
        public static string Format(string projectId, string secretId, string versionId) =>
            FormatProjectSecretVersion(projectId, secretId, versionId);

        ///
        /// Formats the IDs into the string representation of this <see cref="SecretVersionName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}/versions/{version}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="versionId">The <c>Version</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="SecretVersionName"/> with pattern
        /// <c>projects/{project}/secrets/{secret}/versions/{version}</c>.
        /// </returns>
        public static string FormatProjectSecretVersion(string projectId, string secretId, string versionId) =>
            s_projectSecretVersion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), gax::GaxPreconditions.CheckNotNullOrEmpty(versionId, nameof(versionId)));

        ///
        /// Parses the given resource name string into a new <see cref="SecretVersionName"/> instance.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}/versions/{version}</c></description></item>
        /// </list>
        /// </remarks>
        /// <param name="secretVersionName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <returns>The parsed <see cref="SecretVersionName"/> if successful.</returns>
        public static SecretVersionName Parse(string secretVersionName) => Parse(secretVersionName, false);

        ///
        /// Parses the given resource name string into a new <see cref="SecretVersionName"/> instance; optionally
        /// allowing an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}/versions/{version}</c></description></item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="secretVersionName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <returns>The parsed <see cref="SecretVersionName"/> if successful.</returns>
        public static SecretVersionName Parse(string secretVersionName, bool allowUnparsed) =>
            TryParse(secretVersionName, allowUnparsed, out SecretVersionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern.");

        ///
        /// Tries to parse the given resource name string into a new <see cref="SecretVersionName"/> instance.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}/versions/{version}</c></description></item>
        /// </list>
        /// </remarks>
        /// <param name="secretVersionName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="SecretVersionName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string secretVersionName, out SecretVersionName result) =>
            TryParse(secretVersionName, false, out result);

        ///
        /// Tries to parse the given resource name string into a new <see cref="SecretVersionName"/> instance;
        /// optionally allowing an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item><description><c>projects/{project}/secrets/{secret}/versions/{version}</c></description></item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="secretVersionName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="SecretVersionName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string secretVersionName, bool allowUnparsed, out SecretVersionName result)
        {
            gax::GaxPreconditions.CheckNotNull(secretVersionName, nameof(secretVersionName));
            gax::TemplatedResourceName resourceName;
            if (s_projectSecretVersion.TryParseName(secretVersionName, out resourceName))
            {
                result = FromProjectSecretVersion(resourceName[0], resourceName[1], resourceName[2]);
                return true;
            }
            if (allowUnparsed)
            {
                if (gax::UnparsedResourceName.TryParse(secretVersionName, out gax::UnparsedResourceName unparsedResourceName))
                {
                    result = FromUnparsed(unparsedResourceName);
                    return true;
                }
            }
            result = null;
            return false;
        }

        private SecretVersionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string secretId = null, string versionId = null)
        {
            Type = type;
            UnparsedResource = unparsedResourceName;
            ProjectId = projectId;
            SecretId = secretId;
            VersionId = versionId;
        }

        ///
        /// Constructs a new instance of a <see cref="SecretVersionName"/> class from the component parts of pattern
        /// <c>projects/{project}/secrets/{secret}/versions/{version}</c>
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="secretId">The <c>Secret</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="versionId">The <c>Version</c> ID. Must not be <c>null</c> or empty.</param>
        public SecretVersionName(string projectId, string secretId, string versionId) : this(ResourceNameType.ProjectSecretVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), versionId: gax::GaxPreconditions.CheckNotNullOrEmpty(versionId, nameof(versionId)))
        {
        }

        /// The <see cref="ResourceNameType"/> of the contained resource name.
        public ResourceNameType Type { get; }

        ///
        /// The contained <see cref="gax::UnparsedResourceName"/>. Only non-<c>null</c> if this instance contains an
        /// unparsed resource name.
        ///
        public gax::UnparsedResourceName UnparsedResource { get; }

        ///
        /// The <c>Project</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string ProjectId { get; }

        ///
        /// The <c>Secret</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string SecretId { get; }

        ///
        /// The <c>Version</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string VersionId { get; }

        /// Whether this instance contains a resource name with a known pattern.
        public bool IsKnownPattern => Type != ResourceNameType.Unparsed;

        /// The string representation of the resource name.
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
                case ResourceNameType.Unparsed: return UnparsedResource.ToString();
                case ResourceNameType.ProjectSecretVersion: return s_projectSecretVersion.Expand(ProjectId, SecretId, VersionId);
                default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }

        /// Returns a hash code for this resource name.
        public override int GetHashCode() => ToString().GetHashCode();

        /// <inheritdoc/>
        public override bool Equals(object obj) => Equals(obj as SecretVersionName);

        /// <inheritdoc/>
        public bool Equals(SecretVersionName other) => ToString() == other?.ToString();

        /// <inheritdoc/>
        public static bool operator ==(SecretVersionName a, SecretVersionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);

        /// <inheritdoc/>
        public static bool operator !=(SecretVersionName a, SecretVersionName b) => !(a == b);
    }

    /// Resource name for the <c>Connector</c> resource.
    public sealed partial class ConnectorName : gax::IResourceName, sys::IEquatable<ConnectorName>
    {
        /// The possible contents of <see cref="ConnectorName"/>.
        public enum ResourceNameType
        {
            /// An unparsed resource name.
            Unparsed = 0,

            ///
            /// A resource name with pattern <c>projects/{project}/locations/{location}/connectors/{connector}</c>.
            ///
            ProjectLocationConnector = 1,
        }

        private static gax::PathTemplate s_projectLocationConnector = new gax::PathTemplate("projects/{project}/locations/{location}/connectors/{connector}");

        /// Creates a <see cref="ConnectorName"/> containing an unparsed resource name.
        /// <param name="unparsedResourceName">The unparsed resource name. Must not be <c>null</c>.</param>
        /// <returns>
        /// A new instance of <see cref="ConnectorName"/> containing the provided
        /// <paramref name="unparsedResourceName"/>.
        /// </returns>
        public static ConnectorName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) =>
            new ConnectorName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName)));

        ///
        /// Creates a <see cref="ConnectorName"/> with the pattern
        /// <c>projects/{project}/locations/{location}/connectors/{connector}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="connectorId">The <c>Connector</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>A new instance of <see cref="ConnectorName"/> constructed from the provided ids.</returns>
        public static ConnectorName FromProjectLocationConnector(string projectId, string locationId, string connectorId) =>
            new ConnectorName(ResourceNameType.ProjectLocationConnector, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), connectorId: gax::GaxPreconditions.CheckNotNullOrEmpty(connectorId, nameof(connectorId)));

        ///
        /// Formats the IDs into the string representation of this <see cref="ConnectorName"/> with pattern
        /// <c>projects/{project}/locations/{location}/connectors/{connector}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="connectorId">The <c>Connector</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="ConnectorName"/> with pattern
        /// <c>projects/{project}/locations/{location}/connectors/{connector}</c>.
        /// </returns>
        public static string Format(string projectId, string locationId, string connectorId) =>
            FormatProjectLocationConnector(projectId, locationId, connectorId);

        ///
        /// Formats the IDs into the string representation of this <see cref="ConnectorName"/> with pattern
        /// <c>projects/{project}/locations/{location}/connectors/{connector}</c>.
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="connectorId">The <c>Connector</c> ID. Must not be <c>null</c> or empty.</param>
        /// <returns>
        /// The string representation of this <see cref="ConnectorName"/> with pattern
        /// <c>projects/{project}/locations/{location}/connectors/{connector}</c>.
        /// </returns>
        public static string FormatProjectLocationConnector(string projectId, string locationId, string connectorId) =>
            s_projectLocationConnector.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(connectorId, nameof(connectorId)));

        /// Parses the given resource name string into a new <see cref="ConnectorName"/> instance.
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description><c>projects/{project}/locations/{location}/connectors/{connector}</c></description>
        /// </item>
        /// </list>
        /// </remarks>
        /// <param name="connectorName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <returns>The parsed <see cref="ConnectorName"/> if successful.</returns>
        public static ConnectorName Parse(string connectorName) => Parse(connectorName, false);

        ///
        /// Parses the given resource name string into a new <see cref="ConnectorName"/> instance; optionally allowing
        /// an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description><c>projects/{project}/locations/{location}/connectors/{connector}</c></description>
        /// </item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="connectorName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <returns>The parsed <see cref="ConnectorName"/> if successful.</returns>
        public static ConnectorName Parse(string connectorName, bool allowUnparsed) =>
            TryParse(connectorName, allowUnparsed, out ConnectorName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern.");

        ///
        /// Tries to parse the given resource name string into a new <see cref="ConnectorName"/> instance.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description><c>projects/{project}/locations/{location}/connectors/{connector}</c></description>
        /// </item>
        /// </list>
        /// </remarks>
        /// <param name="connectorName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="ConnectorName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string connectorName, out ConnectorName result) => TryParse(connectorName, false, out result);

        ///
        /// Tries to parse the given resource name string into a new <see cref="ConnectorName"/> instance; optionally
        /// allowing an unparseable resource name.
        ///
        /// <remarks>
        /// To parse successfully, the resource name must be formatted as one of the following:
        /// <list type="bullet">
        /// <item>
        /// <description><c>projects/{project}/locations/{location}/connectors/{connector}</c></description>
        /// </item>
        /// </list>
        /// Or may be in any format if <paramref name="allowUnparsed"/> is <c>true</c>.
        /// </remarks>
        /// <param name="connectorName">The resource name in string form. Must not be <c>null</c>.</param>
        /// <param name="allowUnparsed">
        /// If <c>true</c> will successfully store an unparseable resource name into the <see cref="UnparsedResource"/>
        /// property; otherwise will throw an <see cref="sys::ArgumentException"/> if an unparseable resource name is
        /// specified.
        /// </param>
        /// <param name="result">
        /// When this method returns, the parsed <see cref="ConnectorName"/>, or <c>null</c> if parsing failed.
        /// </param>
        /// <returns><c>true</c> if the name was parsed successfully; <c>false</c> otherwise.</returns>
        public static bool TryParse(string connectorName, bool allowUnparsed, out ConnectorName result)
        {
            gax::GaxPreconditions.CheckNotNull(connectorName, nameof(connectorName));
            gax::TemplatedResourceName resourceName;
            if (s_projectLocationConnector.TryParseName(connectorName, out resourceName))
            {
                result = FromProjectLocationConnector(resourceName[0], resourceName[1], resourceName[2]);
                return true;
            }
            if (allowUnparsed)
            {
                if (gax::UnparsedResourceName.TryParse(connectorName, out gax::UnparsedResourceName unparsedResourceName))
                {
                    result = FromUnparsed(unparsedResourceName);
                    return true;
                }
            }
            result = null;
            return false;
        }

        private ConnectorName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string connectorId = null, string locationId = null, string projectId = null)
        {
            Type = type;
            UnparsedResource = unparsedResourceName;
            ConnectorId = connectorId;
            LocationId = locationId;
            ProjectId = projectId;
        }

        ///
        /// Constructs a new instance of a <see cref="ConnectorName"/> class from the component parts of pattern
        /// <c>projects/{project}/locations/{location}/connectors/{connector}</c>
        ///
        /// <param name="projectId">The <c>Project</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="locationId">The <c>Location</c> ID. Must not be <c>null</c> or empty.</param>
        /// <param name="connectorId">The <c>Connector</c> ID. Must not be <c>null</c> or empty.</param>
        public ConnectorName(string projectId, string locationId, string connectorId) : this(ResourceNameType.ProjectLocationConnector, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), connectorId: gax::GaxPreconditions.CheckNotNullOrEmpty(connectorId, nameof(connectorId)))
        {
        }

        /// The <see cref="ResourceNameType"/> of the contained resource name.
        public ResourceNameType Type { get; }

        ///
        /// The contained <see cref="gax::UnparsedResourceName"/>. Only non-<c>null</c> if this instance contains an
        /// unparsed resource name.
        ///
        public gax::UnparsedResourceName UnparsedResource { get; }

        ///
        /// The <c>Connector</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string ConnectorId { get; }

        ///
        /// The <c>Location</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string LocationId { get; }

        ///
        /// The <c>Project</c> ID. Will not be <c>null</c>, unless this instance contains an unparsed resource name.
        ///
        public string ProjectId { get; }

        /// Whether this instance contains a resource name with a known pattern.
        public bool IsKnownPattern => Type != ResourceNameType.Unparsed;

        /// The string representation of the resource name.
        /// <returns>The string representation of the resource name.</returns>
        public override string ToString()
        {
            switch (Type)
            {
                case ResourceNameType.Unparsed: return UnparsedResource.ToString();
                case ResourceNameType.ProjectLocationConnector: return s_projectLocationConnector.Expand(ProjectId, LocationId, ConnectorId);
                default: throw new sys::InvalidOperationException("Unrecognized resource-type.");
            }
        }

        /// Returns a hash code for this resource name.
        public override int GetHashCode() => ToString().GetHashCode();

        /// <inheritdoc/>
        public override bool Equals(object obj) => Equals(obj as ConnectorName);

        /// <inheritdoc/>
        public bool Equals(ConnectorName other) => ToString() == other?.ToString();

        /// <inheritdoc/>
        public static bool operator ==(ConnectorName a, ConnectorName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);

        /// <inheritdoc/>
        public static bool operator !=(ConnectorName a, ConnectorName b) => !(a == b);
    }

    public partial class SecretKeySelector
    {
        /// <see cref="SecretName"/>-typed view over the <see cref="Secret"/> resource name property.
        public SecretName SecretAsSecretName
        {
            get => string.IsNullOrEmpty(Secret) ? null : SecretName.Parse(Secret, allowUnparsed: true);
            set => Secret = value?.ToString() ?? "";
        }

        ///
        /// <see cref="SecretVersionName"/>-typed view over the <see cref="Version"/> resource name property.
        ///
        public SecretVersionName VersionAsSecretVersionName
        {
            get => string.IsNullOrEmpty(Version) ? null : SecretVersionName.Parse(Version, allowUnparsed: true);
            set => Version = value?.ToString() ?? "";
        }
    }
}


text:
int read_args(int, char**);

#endif


text:
FROM arhea/yarn:6

# set the working directory to our source root
WORKDIR /usr/src/app

# copy the package.json and yarn.lock file
COPY package.json /usr/src/app
COPY yarn.lock /usr/src/app

# install the dependencies
RUN yarn install

# copy source code
COPY . /usr/src/app

# replace this with your application's default port
EXPOSE 8888

CMD [ "yarn" , "run" ]
#


text:
package org.canova.cli.csv.statistics;

/**
 * Tracks statistics about the dataset being vectorized
 * - right now just focused on the CLI+CSV conversion stuff
 * Things to track
 * -	range for each column
 * -	avg for each column
 * -	median for each column
 * -
 *
 * Future ideas
 * -	outlier List
 * -	automatically flag suspect data (stasitically)
 * -	suggest settings for training based on dataset
 *
 * @author josh
 *
 */
public class DatasetSummaryStatistics {

}


text:
//-*- Mode: C++ -*-
// $Id$

#ifndef ALIHLTTPCEVE_H
#define ALIHLTTPCEVE_H
/

#include "AliHLTLogging.h"

class TEveManager;
class TEvePointSet;
class TEveElement;
class AliRawReader;
class AliHLTOUT;
class AliHLTTPCClusterData;
class AliHLTSpacePointContainer;

/**
 * @class AliHLTTPCEVE
 * AliEVE bindings for the HLT TPC.
 * The class provides methods to convert HLT TPC proprietary data structures
 * to EVE objects.
 *
 * @ingroup alihlt_tpc
 */
class AliHLTTPCEVE : public AliHLTLogging {
 public:
  /** standard constructor */
  AliHLTTPCEVE();
  /** standard destructor */
  virtual ~AliHLTTPCEVE();

  /**
   * Create EVE point collection from HLTOUT of HLT.Digits.root
   * Calls ::MakePointSetFromHLTOUT(AliHLTOUT*, TEveElement*, Float_t)
   * @param path        path of the digit file
   * @param eventNo     event number to be displayed
   * @param cont        EVE element collection
   * @param maxR        geometrical cut, maximum radius of clusters
   */
  TEvePointSet* MakePointSetFromHLTDigits(const char* path, int eventNo, TEveElement* cont=0, Float_t maxR=270) const;

  /**
   * Create EVE point collection from HLTOUT from RawReader.
   * Calls ::MakePointSetFromHLTOUT(AliHLTOUT*, TEveElement*, Float_t)
   * @param pRawReader  the RawReader
   * @param cont        EVE element collection
   * @param maxR        geometrical cut, maximum radius of clusters
   */
  TEvePointSet* MakePointSetFromHLTOUT(AliRawReader* pRawReader, TEveElement* cont=0, Float_t maxR=270) const;

  /**
   * Create EVE point collection from HLTOUT instance.
   * Base method to create EVE point list from HLTOUT.
   * @param pHLTOUT     the HLTOUT instance
   * @param cont        EVE element collection
   * @param maxR        geometrical cut, maximum radius of clusters
   */
  TEvePointSet* MakePointSetFromHLTOUT(AliHLTOUT* pHLTOUT, TEveElement* cont=0, Float_t maxR=270) const;

  /**
   * Add clusters from AliHLTTPCClusterData set to EVE point collection.
   * @param clusters    EVE point collection
   * @param data        AliHLTTPCClusterData set
   * @param sizeInByte  size of the buffer of the data set in byte
   * @param slice       TPC slice number, determines ratotion of space points
   * @param maxR        geometrical cut, maximum radius of clusters
   */
  int AddClusters(TEvePointSet* clusters, const AliHLTTPCClusterData* data, unsigned int sizeInByte, int slice, Float_t maxR) const;

  int AddClusters(TEvePointSet* clusters, const AliHLTSpacePointContainer* points, Float_t maxR=5000) const;

  int AddPointSet(TEveManager* pEve, const AliHLTSpacePointContainer* points, Float_t maxR=5000, const char* title=NULL) const;

 protected:

 private:
  /** copy constructor prohibited */
  AliHLTTPCEVE(const AliHLTTPCEVE&);
  /** assignment operator prohibited */
  AliHLTTPCEVE& operator=(const AliHLTTPCEVE&);

  ClassDef(AliHLTTPCEVE, 0)
};
#endif


text:
from platformio.package.manager.base import BasePackageManager
from platformio.package.meta import PackageType
from platformio.project.config import ProjectConfig

class ToolPackageManager(BasePackageManager):  # pylint: disable=too-many-ancestors
    def __init__(self, package_dir=None):
        super().__init__(
            PackageType.TOOL,
            package_dir
            or ProjectConfig.get_instance().get("platformio", "packages_dir"),
        )

    @property
    def manifest_names(self):
        return PackageType.get_manifest_map()[PackageType.TOOL]


text:
import layout.managers.root as root
import layout.datatypes as datatypes

class Spacer(root.LayoutElement):
    """Reserves a specific amount of blank space.

    The space reserved is not proportional to the space provided, so this
    class is normally used with a scaling layout manager or to perform
    fine grained movement of elements on a page."""

    def __init__(self, width=0, height=0):
        self.width = width
        self.height = height

    def get_minimum_size(self, data):
        return datatypes.Point(self.width, self.height)

    def render(self, rect, data):
        pass


text:
<?xml version="1.0" encoding="utf-8"?>
<CrawlItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Text>Najlosije sto sam ikad pojeo.. Nikad vise .lose lose prelose</Text>
  <Rating>0.5</Rating>
  <Source>http://pauza.hr/menu/restoran-kruge</Source>
</CrawlItem>