text:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2014 Unicode, Inc.
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
For terms of use, see http://www.unicode.org/copyright.html
-->
<ldml>
	<identity>
		<version number="$Revision: 11323 $"/>
		<generation date="$Date: 2015-02-26 13:25:28 -0800 (Thu, 26 Feb 2015) $"/>
		<language type="zh"/>
		<script type="Hans"/>
		<territory type="HK"/>
	</identity>
	<localeDisplayNames>
		<types>
			<type type="dictionary" key="collation" draft="contributed">字典排序</type>
			<type type="phonebook" key="collation" draft="contributed">电话簿排序</type>
			<type type="reformed" key="collation" draft="contributed">改良排序</type>
			<type type="traditional" key="collation" draft="contributed">传统排序</type>
		</types>
	</localeDisplayNames>
	<dates>
		<calendars>
			<calendar type="buddhist">
				<dateFormats>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern draft="contributed">Gd/M/yy</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
				<dateTimeFormats>
					<availableFormats>
						<dateFormatItem id="M" draft="contributed">L</dateFormatItem>
						<dateFormatItem id="MEd" draft="contributed">M/dE</dateFormatItem>
					</availableFormats>
				</dateTimeFormats>
			</calendar>
			<calendar type="chinese">
				<dateFormats>
					<dateFormatLength type="full">
						<dateFormat>
							<pattern numbers="hanidec" draft="contributed">U年MMMd日EEEE</pattern>
						</dateFormat>
					</dateFormatLength>
					<dateFormatLength type="long">
						<dateFormat>
							<pattern numbers="hanidec" draft="contributed">U年MMMd日</pattern>
						</dateFormat>
					</dateFormatLength>
					<dateFormatLength type="medium">
						<dateFormat>
							<pattern numbers="hanidec" draft="contributed">U年MMMd日</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
			</calendar>
			<calendar type="generic">
				<dateFormats>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern draft="contributed">d/M/yyGGGGG</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
				<dateTimeFormats>
					<availableFormats>
						<dateFormatItem id="HHmm" draft="contributed">HH:mm</dateFormatItem>
						<dateFormatItem id="M" draft="contributed">L</dateFormatItem>
						<dateFormatItem id="Md" draft="contributed">d/M</dateFormatItem>
						<dateFormatItem id="MEd" draft="contributed">E, d/M</dateFormatItem>
						<dateFormatItem id="MMM" draft="contributed">M月</dateFormatItem>
						<dateFormatItem id="MMMMdd" draft="contributed">M月d日</dateFormatItem>
						<dateFormatItem id="yyyyM" draft="contributed">M/yGGGGG</dateFormatItem>
						<dateFormatItem id="yyyyMd" draft="contributed">d/M/yGGGGG</dateFormatItem>
						<dateFormatItem id="yyyyMEd" draft="contributed">E, d/M/yGGGGG</dateFormatItem>
					</availableFormats>
					<intervalFormats>
						<intervalFormatFallback draft="contributed">{0}–{1}</intervalFormatFallback>
						<intervalFormatItem id="h">
							<greatestDifference id="h" draft="contributed">ah至h时</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="Hmv">
							<greatestDifference id="H" draft="contributed">vHH:mm–HH:mm</greatestDifference>
							<greatestDifference id="m" draft="contributed">vHH:mm–HH:mm</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="Hv">
							<greatestDifference id="H" draft="contributed">vHH–HH</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="MMM">
							<greatestDifference id="M" draft="contributed">M月至M月</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yM">
							<greatestDifference id="M" draft="contributed">y年M月至y年M月</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yMd">
							<greatestDifference id="d" draft="contributed">d/M/y至d/M/y</greatestDifference>
							<greatestDifference id="M" draft="contributed">d/M/y至d/M/y</greatestDifference>
							<greatestDifference id="y" draft="contributed">d/M/y至d/M/y</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yMEd">
							<greatestDifference id="d" draft="contributed">d/M/yE至d/M/yE</greatestDifference>
							<greatestDifference id="M" draft="contributed">d/M/yE至d/M/yE</greatestDifference>
							<greatestDifference id="y" draft="contributed">d/M/yE至d/M/yE</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yMMMEd">
							<greatestDifference id="d" draft="contributed">y年M月d日E至M月d日E</greatestDifference>
						</intervalFormatItem>
					</intervalFormats>
				</dateTimeFormats>
			</calendar>
			<calendar type="gregorian">
				<dateFormats>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern draft="contributed">d/M/yy</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
				<dateTimeFormats>
					<availableFormats>
						<dateFormatItem id="HHmm" draft="contributed">HH:mm</dateFormatItem>
						<dateFormatItem id="Md" draft="contributed">d/M</dateFormatItem>
						<dateFormatItem id="MEd" draft="contributed">E, d/M</dateFormatItem>
						<dateFormatItem id="MMdd" draft="contributed">dd/MM</dateFormatItem>
						<dateFormatItem id="MMMMdd" draft="contributed">M月d日</dateFormatItem>
						<dateFormatItem id="yM" draft="contributed">M/y</dateFormatItem>
						<dateFormatItem id="yMd" draft="contributed">d/M/y</dateFormatItem>
						<dateFormatItem id="yMEd" draft="contributed">d/M/y(E)</dateFormatItem>
						<dateFormatItem id="yMM" draft="contributed">MM/y</dateFormatItem>
					</availableFormats>
					<intervalFormats>
						<intervalFormatFallback draft="contributed">{0}–{1}</intervalFormatFallback>
						<intervalFormatItem id="h">
							<greatestDifference id="h" draft="contributed">ah至h时</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="Hmv">
							<greatestDifference id="H" draft="contributed">vHH:mm–HH:mm</greatestDifference>
							<greatestDifference id="m" draft="contributed">vHH:mm–HH:mm</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="Hv">
							<greatestDifference id="H" draft="contributed">vHH–HH</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yM">
							<greatestDifference id="M" draft="contributed">y年M月至y年M月</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yMd">
							<greatestDifference id="d" draft="contributed">d/M/y至d/M/y</greatestDifference>
							<greatestDifference id="M" draft="contributed">d/M/y至d/M/y</greatestDifference>
							<greatestDifference id="y" draft="contributed">d/M/y至d/M/y</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yMEd">
							<greatestDifference id="d" draft="contributed">d/M/yE至d/M/yE</greatestDifference>
							<greatestDifference id="M" draft="contributed">d/M/yE至d/M/yE</greatestDifference>
							<greatestDifference id="y" draft="contributed">d/M/yE至d/M/yE</greatestDifference>
						</intervalFormatItem>
						<intervalFormatItem id="yMMMEd">
							<greatestDifference id="d" draft="contributed">y年M月d日E至M月d日E</greatestDifference>
						</intervalFormatItem>
					</intervalFormats>
				</dateTimeFormats>
			</calendar>
			<calendar type="islamic">
				<dateFormats>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern draft="contributed">Gd/M/yy</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
			</calendar>
			<calendar type="japanese">
				<dateFormats>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern draft="contributed">Gd/M/yy</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
				<dateTimeFormats>
					<availableFormats>
						<dateFormatItem id="Md" draft="contributed">M/d</dateFormatItem>
						<dateFormatItem id="MEd" draft="contributed">M/dE</dateFormatItem>
					</availableFormats>
				</dateTimeFormats>
			</calendar>
			<calendar type="roc">
				<dateFormats>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern draft="contributed">Gd/M/yy</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>
				<dateTimeFormats>
					<availableFormats>
						<dateFormatItem id="M" draft="contributed">L</dateFormatItem>
						<dateFormatItem id="Md" draft="contributed">M-d</dateFormatItem>
						<dateFormatItem id="MMM" draft="contributed">M月</dateFormatItem>
					</availableFormats>
				</dateTimeFormats>
			</calendar>
		</calendars>
		<fields>
			<field type="second">
				<relativeTime type="future">
					<relativeTimePattern count="other">{0}秒后</relativeTimePattern>
				</relativeTime>
				<relativeTime type="past">
					<relativeTimePattern count="other">{0}秒前</relativeTimePattern>
				</relativeTime>
			</field>
		</fields>
	</dates>
	<numbers>
		<decimalFormats numberSystem="latn">
			<decimalFormatLength type="long">
				<decimalFormat>
					<pattern type="1000000000000" count="other" draft="contributed">0万亿</pattern>
					<pattern type="10000000000000" count="other" draft="contributed">00万亿</pattern>
					<pattern type="100000000000000" count="other" draft="contributed">000万亿</pattern>
				</decimalFormat>
			</decimalFormatLength>
			<decimalFormatLength type="short">
				<decimalFormat>
					<pattern type="1000000000000" count="other" draft="contributed">0万亿</pattern>
					<pattern type="10000000000000" count="other" draft="contributed">00万亿</pattern>
					<pattern type="100000000000000" count="other" draft="contributed">000万亿</pattern>
				</decimalFormat>
			</decimalFormatLength>
		</decimalFormats>
		<currencyFormats numberSystem="latn">
			<currencyFormatLength>
				<currencyFormat type="standard">
					<pattern draft="contributed">¤#,##0.00</pattern>
				</currencyFormat>
			</currencyFormatLength>
			<unitPattern count="other" draft="contributed">{0} {1}</unitPattern>
		</currencyFormats>
		<currencies>
			<currency type="AWG">
				<displayName draft="contributed">阿鲁巴弗罗林</displayName>
				<displayName count="other" draft="contributed">阿鲁巴弗罗林</displayName>
			</currency>
			<currency type="CNY">
				<symbol draft="contributed">CN¥</symbol>
			</currency>
			<currency type="KYD">
				<displayName draft="contributed">开曼群岛元</displayName>
				<displayName count="other" draft="contributed">开曼群岛元</displayName>
			</currency>
			<currency type="NIO">
				<displayName>尼加拉瓜科多巴</displayName>
				<displayName count="other">尼加拉瓜科多巴</displayName>
			</currency>
			<currency type="XAG">
				<displayName draft="contributed">白银</displayName>
			</currency>
		</currencies>
	</numbers>
	<units>
		<unitLength type="long">
			<compoundUnit type="per">
				<compoundUnitPattern draft="contributed">{0}/{1}</compoundUnitPattern>
			</compoundUnit>
			<unit type="duration-second">
				<unitPattern count="other" draft="contributed">{0}秒</unitPattern>
			</unit>
			<unit type="proportion-karat">
				<displayName draft="unconfirmed">开</displayName>
				<unitPattern count="other" draft="unconfirmed">{0}开</unitPattern>
			</unit>
			<unit type="temperature-kelvin">
				<displayName draft="contributed">开氏度</displayName>
				<unitPattern count="other" draft="contributed">{0}开氏度</unitPattern>
			</unit>
		</unitLength>
		<unitLength type="short">
			<unit type="acceleration-g-force">
				<unitPattern count="other" draft="unconfirmed">{0}G力</unitPattern>
			</unit>
			<unit type="length-light-year">
				<unitPattern count="other" draft="unconfirmed">{0}光年</unitPattern>
			</unit>
			<unit type="length-meter">
				<unitPattern count="other" draft="unconfirmed">{0}米</unitPattern>
			</unit>
			<unit type="length-picometer">
				<unitPattern count="other" draft="unconfirmed">{0}皮米</unitPattern>
			</unit>
			<unit type="length-yard">
				<unitPattern count="other" draft="unconfirmed">{0}码</unitPattern>
			</unit>
			<unit type="proportion-karat">
				<displayName draft="unconfirmed">开</displayName>
				<unitPattern count="other" draft="unconfirmed">{0}开</unitPattern>
			</unit>
			<unit type="temperature-kelvin">
				<displayName draft="unconfirmed">开氏度</displayName>
				<unitPattern count="other" draft="contributed">{0}°K</unitPattern>
			</unit>
		</unitLength>
		<unitLength type="narrow">
			<unit type="length-foot">
				<unitPattern count="other" draft="unconfirmed">{0}英尺</unitPattern>
			</unit>
			<unit type="length-inch">
				<unitPattern count="other" draft="unconfirmed">{0}英寸</unitPattern>
			</unit>
			<unit type="length-light-year">
				<unitPattern count="other" draft="unconfirmed">{0}光年</unitPattern>
			</unit>
			<unit type="length-mile">
				<unitPattern count="other" draft="unconfirmed">{0}英里</unitPattern>
			</unit>
			<unit type="length-picometer">
				<unitPattern count="other" draft="unconfirmed">{0}皮米</unitPattern>
			</unit>
			<unit type="length-yard">
				<unitPattern count="other" draft="unconfirmed">{0}码</unitPattern>
			</unit>
			<unit type="temperature-celsius">
				<unitPattern count="other" draft="contributed">{0}°C</unitPattern>
			</unit>
		</unitLength>
	</units>
</ldml>


text:
from base import Task
from common import phases
import volume

class Create(Task):
	description = 'Creating a loopback volume'
	phase = phases.volume_creation
	successors = [volume.Attach]

	@classmethod
	def run(cls, info):
		import os.path
		image_path = os.path.join(info.workspace, 'volume.{ext}'.format(ext=info.volume.extension))
		info.volume.create(image_path)

class MoveImage(Task):
	description = 'Moving volume image'
	phase = phases.image_registration

	@classmethod
	def run(cls, info):
		image_name = info.manifest.image['name'].format(**info.manifest_vars)
		filename = '{image_name}.{ext}'.format(image_name=image_name, ext=info.volume.extension)

		import os.path
		destination = os.path.join(info.manifest.bootstrapper['workspace'], filename)
		import shutil
		shutil.move(info.volume.image_path, destination)
		import logging
		log = logging.getLogger(__name__)
		log.info('The volume image has been moved to {image_path}'.format(image_path=destination))

redpajama_set_name: RedPajamaGithub


text:
package main;

public class CurrentConditionsDisplay implements Observer, DisplayElement {

	private float temperature;
	private float humidity;
	private Subject weatherData;

	public CurrentConditionsDisplay(Subject weatherData) {
		this.weatherData = weatherData;
		weatherData.registerObserver(this);
	}

	@Override
	public void display() {
		System.out.println("Current conditions: " + temperature + "°F and " + humidity + "% humidity");
	}

	@Override
	public void update(float temp, float humidity, float preasure) {
		this.temperature = temp;
		this.humidity = humidity;
		display();
	}

}


text:
namespace media {

// Handy-dandy wrapper struct that kills MediaFoundation on destruction.
struct MF_INITIALIZER_EXPORT MFSession {
  ~MFSession();
};

using MFSessionLifetime = std::unique_ptr<MFSession>;

// Make sure that MFShutdown is called for each MFStartup that is successful.
// The public documentation stating that it needs to have a corresponding
// shutdown for all startups (even failed ones) is wrong.
MF_INITIALIZER_EXPORT MFSessionLifetime InitializeMediaFoundation()
    WARN_UNUSED_RESULT;

}  // namespace media

#endif  // MEDIA_BASE_WIN_MF_INITIALIZER_H_


text:
external help file: Microsoft.Azure.Commands.Network.dll-Help.xml
Module Name: AzureRM.Network
ms.assetid: B6E55944-1B78-463F-9FC9-98097FEEC278
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.network/new-azurermexpressroutecircuitauthorization
schema: 2.0.0
---

# New-AzureRmExpressRouteCircuitAuthorization

## SYNOPSIS
Creates an ExpressRoute circuit authorization.

## SYNTAX

```
New-AzureRmExpressRouteCircuitAuthorization -Name <String> [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]
```

## DESCRIPTION
The **New-AzureRmExpressRouteCircuitAuthorization** cmdlet creates a circuit authorization that can
be added to an ExpressRoute circuit. ExpressRoute circuits connect your on-premises network to the
Microsoft cloud by using a connectivity provider instead of the public Internet. The owner of an
ExpressRoute circuit can create as many as 10 authorizations for each circuit; these authorizations
generate an authorization key that can be used by a virtual network owner to connect a network to
the circuit. There can only one authorization per virtual network.

After you create an ExpressRoute circuit you can use
**Add-AzureRmExpressRouteCircuitAuthorization** to add an authorization to that circuit.
Alternatively, you can use **New-AzureRmExpressRouteCircuitAuthorization** to create an
authorization that can be added to a new circuit at the same time the circuit is created.

## EXAMPLES

### Example 1: Create a new circuit authorization
```
$Authorization = New-AzureRmExpressRouteCircuitAuthorization -Name "ContosoCircuitAuthorization"
```

This command creates a new circuit authorization named ContosoCircuitAuthorization and then stores
that object in a variable named $Authorization. Saving the object to a variable is important:
although **New-AzureRmExpressRouteCircuitAuthorization** can create a circuit authorization it
cannot add that authorization to a circuit route. Instead, the variable $Authorization is used
New-AzureRmExpressRouteCircuit when creating a brand-new ExpressRoute circuit.

For more information, see the documentation for the New-AzureRmExpressRouteCircuit cmdlet.

## PARAMETERS

### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.

```yaml
Type: IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
Specifies a unique name for the new ExpressRoute circuit authorization.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None
This cmdlet does not accept pipelined input.

## OUTPUTS

### PSExpressRouteCircuitAuthorization
This cmdlet creates instances of the **Microsoft.Azure.Commands.Network.Models.PSExpressRouteCircuitAuthorization** object.

## NOTES

## RELATED LINKS

[Add-AzureRmExpressRouteCircuitAuthorization](./Add-AzureRmExpressRouteCircuitAuthorization.md)

[Get-AzureRmExpressRouteCircuitAuthorization](./Get-AzureRmExpressRouteCircuitAuthorization.md)

[Remove-AzureRmExpressRouteCircuitAuthorization](./Remove-AzureRmExpressRouteCircuitAuthorization.md)


text:
package org.noear.weed;

import org.noear.weed.wrap.MethodWrap;
import org.noear.weed.xml.XmlSqlBlock;
import org.noear.weed.xml.XmlSqlFactory;

import java.lang.reflect.Parameter;
import java.util.LinkedHashMap;
import java.util.Map;

class MapperInvokeForXml implements IMapperInvoke {
    public Object call(Object proxy, DbContext db, String sqlid, Class<?> caller, MethodWrap mWrap, Object[] vals) throws Throwable {
        //1.获取代码块,并检测有效性
        XmlSqlBlock block = XmlSqlFactory.get(sqlid);
        if (block == null) {
            return MapperHandler.UOE;
        }

        //2.构建参数
        Map<String, Object> _map = new LinkedHashMap<>();
        Parameter[] names = mWrap.parameters;
        for (int i = 0, len = names.length; i < len; i++) {
            if (vals[i] != null) {
                String key = names[i].getName();
                Object val = vals[i];

                //如果是_map参数,则做特殊处理
                if ("_map".equals(key) && val instanceof Map) {
                    _map.putAll((Map<String, Object>) val);
                } else {
                    _map.put(key, val);
                }
            }
        }

        //3.确定输出类型
        return MapperUtil.exec(db, block, "@" + sqlid, _map, mWrap.returnType, mWrap.returnGenericType);
    }
}


text:
package com.clem.ipoca1.core;

/**
 * Callbacks for Chromecast support on the core module
 */
public interface CastCallbacks {
}


text:
package savers

/****************
 * Date: 30/05/16
 * Time: 6:46 PM
 ***************/

import (
	"github.com/stretchr/testify/assert"
	"github.com/twinj/uuid"
	"os"
	"path"
	"runtime"
	"testing"
	"time"
)

const (
	saveDuration = 3
)

func setupFileSystemStateSaver(pPath string, pReport bool) *FileSystemSaver {
	return &FileSystemSaver{Path: pPath, Report: pReport, Duration: saveDuration * time.Second}
}

// Tests that the schedule is run on the timeDuration
func TestFileSystemSaver_SaveSchedule(t *testing.T) {
	saver := setupFileSystemStateSaver(path.Join("github.com.twinj.uuid.generator-"+uuid.NewV4().String()+".gob"), true)

	// Read is always called first
	saver.Read()

	count := 0

	past := time.Now()
	for count == 10 {
		if uuid.Now() > saver.Timestamp {
			time.Sleep(saver.Duration)
			count++
		}
		store := uuid.Store{Timestamp: uuid.Now(), Sequence: 3, Node: []byte{0xff, 0xaa, 0x11}}
		saver.Save(store)
	}
	d := time.Since(past)

	assert.Equal(t, int(d/saver.Duration), count, "Should be as many saves as second increments")
}

func TestFileSystemSaver_Read(t *testing.T) {
	paths := []string{
		path.Join(os.TempDir(), "test", "github.com.twinj.uuid.generator-"+uuid.NewV4().String()+".gob"),
		path.Join(os.TempDir(), "github.com.twinj.uuid.generator-"+uuid.NewV4().String()+".gob"),
		path.Join("github.com.twinj.uuid.generator-" + uuid.NewV4().String() + ".gob"),
		path.Join("/github.com.twinj.uuid.generator-" + uuid.NewV4().String() + ".gob"),
		path.Join("/github.com.twinj.uuid.generator-" + uuid.NewV4().String()),
		path.Join("/generator-" + uuid.NewV4().String()),
	}

	for i := range paths {

		saver := setupFileSystemStateSaver(paths[i], true)
		err, _ := saver.Read()

		assert.NoError(t, err, "Path failure %d %s", i, paths[i])
	}

	// Empty path
	saver := setupFileSystemStateSaver("", true)
	err, _ := saver.Read()

	assert.Error(t, err, "Expect path failure")

	// No permissions
	if runtime.GOOS == "windows" {
		saver := setupFileSystemStateSaver("C:/windows/generator-delete.gob", true)
		err, _ := saver.Read()
		assert.Error(t, err, "Expect path failure")

		saver = setupFileSystemStateSaver(path.Join("C:/windows", uuid.NewV4().String(), "generator-delete.gob"), true)
		err, _ = saver.Read()
		assert.Error(t, err, "Expect path failure")
	}

	// No permissions
	if runtime.GOOS == "linux" {
		saver := setupFileSystemStateSaver("/root/generator-delete.gob", true)
		err, _ := saver.Read()
		assert.Error(t, err, "Expect path failure")

		saver = setupFileSystemStateSaver(path.Join("/root", uuid.NewV4().String(), "generator-delete.gob"), true)
		err, _ = saver.Read()
		assert.Error(t, err, "Expect path failure")
	}

}

func TestFileSystemSaver_Save(t *testing.T) {

	saver := setupFileSystemStateSaver(path.Join("github.com.twinj.uuid.generator-"+uuid.NewV4().String()+".gob"), true)

	// Read is always called first
	saver.Read()

	store := uuid.Store{Timestamp: 1, Sequence: 2, Node: []byte{0xff, 0xaa, 0x33, 0x44, 0x55, 0x66}}
	saver.Save(store)

	saver = setupFileSystemStateSaver(path.Join("/generator-"+uuid.NewV4().String()+".gob"), false)

	// Read is always called first
	saver.Read()

	store = uuid.Store{Timestamp: 1, Sequence: 2, Node: []byte{0xff, 0xaa, 0x33, 0x44, 0x55, 0x66}}
	saver.Save(store)
}

func TestFileSystemSaver_SaveAndRead(t *testing.T) {

	saver := setupFileSystemStateSaver(path.Join("github.com.twinj.uuid.generator-"+uuid.NewV4().String()+".gob"), true)

	// Read is always called first
	saver.Read()

	store := uuid.Store{Timestamp: 1, Sequence: 2, Node: []byte{0xff, 0xaa, 0x33, 0x44, 0x55, 0x66}}
	saver.Save(store)

	_, saved := saver.Read()

	assert.Equal(t, store.Timestamp, saved.Timestamp)
	assert.Equal(t, store.Sequence, saved.Sequence)
	assert.Equal(t, store.Node, saved.Node)

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>com.lochbridge.oath</groupId>
  <artifactId>oath-parent</artifactId>
  <versioning>
    <versions>
      <version>0.0.1-SNAPSHOT</version>
    </versions>
    <lastUpdated>20160926101330</lastUpdated>
  </versioning>
</metadata>


text:
require 5.6.0;
use strict;
use warnings;
use Thrift;

package EDAMErrors::EDAMErrorCode;
use constant UNKNOWN => 1;
use constant BAD_DATA_FORMAT => 2;
use constant PERMISSION_DENIED => 3;
use constant INTERNAL_ERROR => 4;
use constant DATA_REQUIRED => 5;
use constant LIMIT_REACHED => 6;
use constant QUOTA_REACHED => 7;
use constant INVALID_AUTH => 8;
use constant AUTH_EXPIRED => 9;
use constant DATA_CONFLICT => 10;
use constant ENML_VALIDATION => 11;
use constant SHARD_UNAVAILABLE => 12;
use constant LEN_TOO_SHORT => 13;
use constant LEN_TOO_LONG => 14;
use constant TOO_FEW => 15;
use constant TOO_MANY => 16;
use constant UNSUPPORTED_OPERATION => 17;
use constant TAKEN_DOWN => 18;
use constant RATE_LIMIT_REACHED => 19;
package EDAMErrors::EDAMUserException;
use base qw(Thrift::TException);
use base qw(Class::Accessor);
EDAMErrors::EDAMUserException->mk_accessors( qw( errorCode parameter ) );

sub new {
  my $classname = shift;
  my $self      = {};
  my $vals      = shift || {};
  $self->{errorCode} = undef;
  $self->{parameter} = undef;
  if (UNIVERSAL::isa($vals,'HASH')) {
    if (defined $vals->{errorCode}) {
      $self->{errorCode} = $vals->{errorCode};
    }
    if (defined $vals->{parameter}) {
      $self->{parameter} = $vals->{parameter};
    }
  }
  return bless ($self, $classname);
}

sub getName {
  return 'EDAMUserException';
}

sub read {
  my ($self, $input) = @_;
  my $xfer  = 0;
  my $fname;
  my $ftype = 0;
  my $fid   = 0;
  $xfer += $input->readStructBegin(\$fname);
  while (1)
  {
    $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
    if ($ftype == TType::STOP) {
      last;
    }
    SWITCH: for($fid)
    {
      /^1$/ && do{      if ($ftype == TType::I32) {
        $xfer += $input->readI32(\$self->{errorCode});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
      /^2$/ && do{      if ($ftype == TType::STRING) {
        $xfer += $input->readString(\$self->{parameter});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
        $xfer += $input->skip($ftype);
    }
    $xfer += $input->readFieldEnd();
  }
  $xfer += $input->readStructEnd();
  return $xfer;
}

sub write {
  my ($self, $output) = @_;
  my $xfer   = 0;
  $xfer += $output->writeStructBegin('EDAMUserException');
  if (defined $self->{errorCode}) {
    $xfer += $output->writeFieldBegin('errorCode', TType::I32, 1);
    $xfer += $output->writeI32($self->{errorCode});
    $xfer += $output->writeFieldEnd();
  }
  if (defined $self->{parameter}) {
    $xfer += $output->writeFieldBegin('parameter', TType::STRING, 2);
    $xfer += $output->writeString($self->{parameter});
    $xfer += $output->writeFieldEnd();
  }
  $xfer += $output->writeFieldStop();
  $xfer += $output->writeStructEnd();
  return $xfer;
}

package EDAMErrors::EDAMSystemException;
use base qw(Thrift::TException);
use base qw(Class::Accessor);
EDAMErrors::EDAMSystemException->mk_accessors( qw( errorCode message rateLimitDuration ) );

sub new {
  my $classname = shift;
  my $self      = {};
  my $vals      = shift || {};
  $self->{errorCode} = undef;
  $self->{message} = undef;
  $self->{rateLimitDuration} = undef;
  if (UNIVERSAL::isa($vals,'HASH')) {
    if (defined $vals->{errorCode}) {
      $self->{errorCode} = $vals->{errorCode};
    }
    if (defined $vals->{message}) {
      $self->{message} = $vals->{message};
    }
    if (defined $vals->{rateLimitDuration}) {
      $self->{rateLimitDuration} = $vals->{rateLimitDuration};
    }
  }
  return bless ($self, $classname);
}

sub getName {
  return 'EDAMSystemException';
}

sub read {
  my ($self, $input) = @_;
  my $xfer  = 0;
  my $fname;
  my $ftype = 0;
  my $fid   = 0;
  $xfer += $input->readStructBegin(\$fname);
  while (1)
  {
    $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
    if ($ftype == TType::STOP) {
      last;
    }
    SWITCH: for($fid)
    {
      /^1$/ && do{      if ($ftype == TType::I32) {
        $xfer += $input->readI32(\$self->{errorCode});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
      /^2$/ && do{      if ($ftype == TType::STRING) {
        $xfer += $input->readString(\$self->{message});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
      /^3$/ && do{      if ($ftype == TType::I32) {
        $xfer += $input->readI32(\$self->{rateLimitDuration});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
        $xfer += $input->skip($ftype);
    }
    $xfer += $input->readFieldEnd();
  }
  $xfer += $input->readStructEnd();
  return $xfer;
}

sub write {
  my ($self, $output) = @_;
  my $xfer   = 0;
  $xfer += $output->writeStructBegin('EDAMSystemException');
  if (defined $self->{errorCode}) {
    $xfer += $output->writeFieldBegin('errorCode', TType::I32, 1);
    $xfer += $output->writeI32($self->{errorCode});
    $xfer += $output->writeFieldEnd();
  }
  if (defined $self->{message}) {
    $xfer += $output->writeFieldBegin('message', TType::STRING, 2);
    $xfer += $output->writeString($self->{message});
    $xfer += $output->writeFieldEnd();
  }
  if (defined $self->{rateLimitDuration}) {
    $xfer += $output->writeFieldBegin('rateLimitDuration', TType::I32, 3);
    $xfer += $output->writeI32($self->{rateLimitDuration});
    $xfer += $output->writeFieldEnd();
  }
  $xfer += $output->writeFieldStop();
  $xfer += $output->writeStructEnd();
  return $xfer;
}

package EDAMErrors::EDAMNotFoundException;
use base qw(Thrift::TException);
use base qw(Class::Accessor);
EDAMErrors::EDAMNotFoundException->mk_accessors( qw( identifier key ) );

sub new {
  my $classname = shift;
  my $self      = {};
  my $vals      = shift || {};
  $self->{identifier} = undef;
  $self->{key} = undef;
  if (UNIVERSAL::isa($vals,'HASH')) {
    if (defined $vals->{identifier}) {
      $self->{identifier} = $vals->{identifier};
    }
    if (defined $vals->{key}) {
      $self->{key} = $vals->{key};
    }
  }
  return bless ($self, $classname);
}

sub getName {
  return 'EDAMNotFoundException';
}

sub read {
  my ($self, $input) = @_;
  my $xfer  = 0;
  my $fname;
  my $ftype = 0;
  my $fid   = 0;
  $xfer += $input->readStructBegin(\$fname);
  while (1)
  {
    $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
    if ($ftype == TType::STOP) {
      last;
    }
    SWITCH: for($fid)
    {
      /^1$/ && do{      if ($ftype == TType::STRING) {
        $xfer += $input->readString(\$self->{identifier});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
      /^2$/ && do{      if ($ftype == TType::STRING) {
        $xfer += $input->readString(\$self->{key});
      } else {
        $xfer += $input->skip($ftype);
      }
      last; };
        $xfer += $input->skip($ftype);
    }
    $xfer += $input->readFieldEnd();
  }
  $xfer += $input->readStructEnd();
  return $xfer;
}

sub write {
  my ($self, $output) = @_;
  my $xfer   = 0;
  $xfer += $output->writeStructBegin('EDAMNotFoundException');
  if (defined $self->{identifier}) {
    $xfer += $output->writeFieldBegin('identifier', TType::STRING, 1);
    $xfer += $output->writeString($self->{identifier});
    $xfer += $output->writeFieldEnd();
  }
  if (defined $self->{key}) {
    $xfer += $output->writeFieldBegin('key', TType::STRING, 2);
    $xfer += $output->writeString($self->{key});
    $xfer += $output->writeFieldEnd();
  }
  $xfer += $output->writeFieldStop();
  $xfer += $output->writeStructEnd();
  return $xfer;
}

1;


text:
package org.evilco.network.rcon.common.event;

/**
 * @author Johannes Donath <johannesd@evil-co.com>
 * @copyright Copyright (C) 2014 Evil-Co <http://www.evil-co.com>
 */
public abstract class AbstractEvent implements IEvent {}


text:
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;

import javax.swing.SwingWorker;

public class HeavyTask extends SwingWorker<String, String>{

	@Override
	protected String doInBackground() throws Exception {
		int progress = 0;

		while (progress < 100 & !isCancelled()){
			Thread.sleep(2000);
			progress += ThreadLocalRandom.current().nextInt(20);
			setProgress(progress);

		}
		return "Complete";
	}

	@Override
	protected void process(List<String> chunks) {
		// TODO Auto-generated method stub
		super.process(chunks);
	}

}


text:
from google.cloud import gaming_v1

def sample_list_realms():
    # Create a client
    client = gaming_v1.RealmsServiceClient()

    # Initialize request argument(s)
    request = gaming_v1.ListRealmsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_realms(request=request)

    # Handle the response
    for response in page_result:
        print(response)

# [END gameservices_v1_generated_RealmsService_ListRealms_sync]


text:
package br.com.softplan.security.zap.api.authentication;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;

import org.apache.commons.io.IOUtils;

import br.com.softplan.security.zap.commons.authentication.AuthenticationScripts;
import br.com.softplan.security.zap.commons.boot.ZapDockerBoot;

public class AuthenticationScript {

	private String name;
	private String description;
	private String fileName;
	private String relativePath;
	private String path;

	private File scriptTempFile;

	public AuthenticationScript(String name, String description) {
		this.name = name;
		this.description = description;
		this.fileName = name + AuthenticationScripts.EXTENSION;
		this.relativePath = AuthenticationScripts.RELATIVE_PATH + fileName;

		this.path = AuthenticationScript.class.getResource(relativePath).getPath();
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public String getFileName() {
		return fileName;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public String getPath(boolean isZapRunningOnDocker) throws IOException, URISyntaxException {
		if (isZapRunningOnDocker) {
			return ZapDockerBoot.CAS_AUTH_SCRIPT_DEFAULT_DOCKER_PATH + fileName;
		}
		if (scriptFileIsNotAccessible()) {
			return getCasAuthScriptTempFile().getAbsolutePath();
		}
		return path;
	}

	private boolean scriptFileIsNotAccessible() throws UnsupportedEncodingException {
		return !new File(path).exists();
	}

	private File getCasAuthScriptTempFile() throws IOException {
		if (scriptTempFile == null) {
			scriptTempFile = createCasAuthScriptTempFile();
		}
		return scriptTempFile;
	}

	private File createCasAuthScriptTempFile() throws IOException {
		File tempFile = File.createTempFile(name, AuthenticationScripts.EXTENSION);
		tempFile.deleteOnExit();

		InputStream casAuthScriptInputStream = AuthenticationScript.class.getResourceAsStream(relativePath);
		try (FileOutputStream fileOutputStream = new FileOutputStream(tempFile)) {
			IOUtils.copy(casAuthScriptInputStream, fileOutputStream);
		}
		return tempFile;
	}

}


text:
define(function (require) {
  'use strict';

  var modules = require('modules');
  var _ = require('lodash');

  modules.get('a4c-common-graph').factory('d3Service', function() {
    return {
      tooltipTextLenghtTrigger: 17,

      rect: function(d3AppendGroup, x, y, width, height, rx, ry) {
        return d3AppendGroup.append('rect').attr('x', x).attr('y', y).attr('width', width).attr('height', height).attr('rx', rx).attr('ry', ry);
      },

      rectWithTooltip: function(d3AppendGroup, x, y, width, height, rx, ry, tooltipText) {
        d3AppendGroup = this.rect(d3AppendGroup, x, y, width, height, rx, ry);
        if (tooltipText !== null) {
          // split the name to fit the default tooltip size
          if (tooltipText.length >= this.tooltipTextLenghtTrigger) {
            tooltipText = _.splitString(tooltipText, this.tooltipTextLenghtTrigger);
            d3AppendGroup.attr('title', tooltipText.join('\n'));
          }
        }

        // applying the tooltip for all <rect> tag (default top display)
        $(document).ready(function() {
          $('rect').tooltip({
            'container': 'body',
            'placement': 'top'
          });
        });

        // remove the tooltip
        $(document).on('hidden.bs.tooltip', function() {
          var tooltips = $('.tooltip').not('.in');
          if (tooltips) {
            tooltips.remove();
          }
        });

        return d3AppendGroup;
      }
    };
  }); // factory
}); // define


text:
package openmods.gui.misc;

import java.util.Map;

import net.minecraft.util.Vec3;
import net.minecraftforge.common.util.ForgeDirection;
import openmods.utils.render.ProjectionHelper;

import org.lwjgl.input.Mouse;

import com.google.common.collect.Maps;

public class SidePicker {

	private static final ProjectionHelper projectionHelper = new ProjectionHelper();

	public enum Side {
		XNeg,
		XPos,
		YNeg,
		YPos,
		ZNeg,
		ZPos;

		public static Side fromForgeDirection(ForgeDirection dir) {
			switch (dir) {
				case WEST:
					return XNeg;
				case EAST:
					return XPos;
				case DOWN:
					return YNeg;
				case UP:
					return YPos;
				case NORTH:
					return ZNeg;
				case SOUTH:
					return ZPos;
				default:
					break;
			}
			return null;
		}

		public ForgeDirection toForgeDirection() {
			switch (this) {
				case XNeg:
					return ForgeDirection.WEST;
				case XPos:
					return ForgeDirection.EAST;
				case YNeg:
					return ForgeDirection.DOWN;
				case YPos:
					return ForgeDirection.UP;
				case ZNeg:
					return ForgeDirection.NORTH;
				case ZPos:
					return ForgeDirection.SOUTH;
				default:
					return ForgeDirection.UNKNOWN;
			}
		}
	}

	public static class HitCoord {
		public final Side side;
		public final Vec3 coord;

		public HitCoord(Side side, Vec3 coord) {
			this.side = side;
			this.coord = coord;
		}
	}

	private final double negX, negY, negZ;
	private final double posX, posY, posZ;

	public SidePicker(double negX, double negY, double negZ, double posX, double posY, double posZ) {
		this.negX = negX;
		this.negY = negY;
		this.negZ = negZ;
		this.posX = posX;
		this.posY = posY;
		this.posZ = posZ;
	}

	public SidePicker(double halfSize) {
		negX = negY = negZ = -halfSize;
		posX = posY = posZ = +halfSize;
	}

	private static Vec3 getMouseVector(float z) {
		return projectionHelper.unproject(Mouse.getX(), Mouse.getY(), z);
	}

	private Vec3 calculateXPoint(Vec3 near, Vec3 diff, double x) {
		double p = (x - near.xCoord) / diff.xCoord;

		double y = near.yCoord + diff.yCoord * p;
		double z = near.zCoord + diff.zCoord * p;

		if (negY <= y && y <= posY && negZ <= z && z <= posZ) return Vec3.createVectorHelper(x, y, z);

		return null;
	}

	private Vec3 calculateYPoint(Vec3 near, Vec3 diff, double y) {
		double p = (y - near.yCoord) / diff.yCoord;

		double x = near.xCoord + diff.xCoord * p;
		double z = near.zCoord + diff.zCoord * p;

		if (negX <= x && x <= posX && negZ <= z && z <= posZ) return Vec3.createVectorHelper(x, y, z);

		return null;
	}

	private Vec3 calculateZPoint(Vec3 near, Vec3 diff, double z) {
		double p = (z - near.zCoord) / diff.zCoord;

		double x = near.xCoord + diff.xCoord * p;
		double y = near.yCoord + diff.yCoord * p;

		if (negX <= x && x <= posX && negY <= y && y <= posY) return Vec3.createVectorHelper(x, y, z);

		return null;
	}

	private static void addPoint(Map<Side, Vec3> map, Side side, Vec3 value) {
		if (value != null) map.put(side, value);
	}

	private Map<Side, Vec3> calculateHitPoints(Vec3 near, Vec3 far) {
		Vec3 diff = far.subtract(near);

		Map<Side, Vec3> result = Maps.newEnumMap(Side.class);
		addPoint(result, Side.XNeg, calculateXPoint(near, diff, negX));
		addPoint(result, Side.XPos, calculateXPoint(near, diff, posX));

		addPoint(result, Side.YNeg, calculateYPoint(near, diff, negY));
		addPoint(result, Side.YPos, calculateYPoint(near, diff, posY));

		addPoint(result, Side.ZNeg, calculateZPoint(near, diff, negZ));
		addPoint(result, Side.ZPos, calculateZPoint(near, diff, posZ));
		return result;
	}

	public Map<Side, Vec3> calculateMouseHits() {
		projectionHelper.updateMatrices();
		Vec3 near = getMouseVector(0);
		Vec3 far = getMouseVector(1);

		return calculateHitPoints(near, far);
	}

	public HitCoord getNearestHit() {
		projectionHelper.updateMatrices();
		Vec3 near = getMouseVector(0);
		Vec3 far = getMouseVector(1);

		Map<Side, Vec3> hits = calculateHitPoints(near, far);

		if (hits.isEmpty()) return null;

		Side minSide = null;
		double minDist = Double.MAX_VALUE;

		// yeah, I know there are two entries max, but... meh
		for (Map.Entry<Side, Vec3> e : hits.entrySet()) {
			double dist = e.getValue().subtract(near).lengthVector();
			if (dist < minDist) {
				minDist = dist;
				minSide = e.getKey();
			}
		}

		if (minSide == null) return null; // !?

		return new HitCoord(minSide, hits.get(minSide));
	}

}


text:
<?php

namespace Reservation\SystemBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Entity\User as BaseUser;

/**
 * @ORM\Entity
 * @ORM\Table(name="user")
 * @ORM\InheritanceType("JOINED")
 * @ORM\DiscriminatorColumn(name="type", type="string")
 * @ORM\DiscriminatorMap({"costumer" = "Costumer", "client" = "Client", "client_users" = "ClientUsers"})
 *
 */
abstract class User extends BaseUser
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

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


text:
package io.scribeapp.test;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import org.junit.runners.model.InitializationError;
import org.robolectric.AndroidManifest;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import org.robolectric.res.Fs;

public class RobolectricGradleTestRunner extends RobolectricTestRunner {
    public RobolectricGradleTestRunner(Class<?> testClass) throws InitializationError {
        super(testClass);
    }

    @Override
    protected AndroidManifest getAppManifest(Config config) {
        String manifestProperty = System.getProperty("android.manifest");
        if (config.manifest().equals(Config.DEFAULT) && manifestProperty != null) {
            String resProperty = System.getProperty("android.resources");
            String assetsProperty = System.getProperty("android.assets");
            return new AndroidManifest(Fs.fileFromPath(manifestProperty), Fs.fileFromPath(resProperty),
                    Fs.fileFromPath(assetsProperty));
        } else {
            String path = RobolectricGradleTestRunner.class.getProtectionDomain()
                    .getCodeSource()
                    .getLocation()
                    .getPath();
            String manifestPath = path + "../../manifests/debug/AndroidManifest.xml";
            String resPath = path + "";
            String assetPath = path + "";
            if (Fs.fileFromPath(manifestPath).exists()) {
                return new AndroidManifest(Fs.fileFromPath(manifestPath), Fs.fileFromPath(resPath), Fs.fileFromPath(assetPath));
            }
            else {
                return super.getAppManifest(config);
            }
        }
    }

    public static void startFragment(Fragment fragment) {
        FragmentActivity activity = Robolectric.buildActivity(FragmentActivity.class)
                .create()
                .start()
                .get();

        FragmentManager fragmentManager = activity.getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.add(fragment, null);
        fragmentTransaction.commit();
    }
}


text:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<servico xsi:schemaLocation="http://servicos.gov.br/v3/schema.../servico.xsd" xmlns="http://servicos.gov.br/v3/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <id>registrar-convencao-coletiva-de-trabalho-termo-aditivo-e-mediacao</id>
    <dbId>4530</dbId>
    <nome>Registrar Convenção Coletiva de Trabalho, Termo Aditivo e Mediação</nome>
    <sigla>CCT, TA CCT</sigla>
    <nomes-populares>
        <item id="3442">Instrumento Coletivo</item>
        <item id="3443">Negociação Coletiva</item>
        <item id="3444">Sistema Mediador</item>
        <item id="3445">Convenção Coletiva</item>
        <item id="3446">Mediação</item>
        <item id="3447">Termo Aditivo</item>
        <item id="3448">Acordo Coletivo</item>
    </nomes-populares>
    <descricao>Através deste serviço, os sindicatos representantes dos trabalhadores e os sindicatos representantes dos empregadores podem consultar, elaborar e solicitar o registro dos Acordos Coletivos de Trabalho assinados entre as partes. E quando necessário, podem solicitar reunião de Mediação para buscar resolver conflitos.

- Manual do Sistema Mediador [clique aqui: **BAIXAR MANUAL**](http://www3.mte.gov.br/sistemas/mediador/Content/docs/CARTILHA_DO_MEDIADOR_v20.pdf "clique aqui para BAIXAR O MANUAL")</descricao>
    <contato>- Por UF/Estado: **Para ver os pontos de atendimento do Ministério do Trabalho da sua região**, preferencialmente fale no Setor/Seção de Relações do Trabalho. [clique aqui: **TELEFONE E ENDEREÇO**](http://trabalho.gov.br/rede-de-atendimento "clique aqui **para ver os telefones e endereços**")

- Instrumento Coletivo Nacional: e-mail mediador.srt@mte.gov.br ou comparecendo ao Ministério do Trabalho Esplanada dos Ministérios, bloco F, Térreo, Atendimento da SRT, Brasília DF.</contato>
    <gratuito>true</gratuito>
    <porcentagem-manual>false</porcentagem-manual>
    <servico-digital>false</servico-digital>
    <link-servico-digital></link-servico-digital>
    <solicitantes>
        <solicitante id="5650">
            <tipo>1. PARA CADASTRAR O INSTRUMENTO:
- Entidade Sindical Representante dos Empregadores
- Entidade Sindical Representante dos Trabalhadores

1. PARA CONSULTAR O INSTRUMENTO REGISTRADO:
- Qualquer pessoa</tipo>
            <requisitos></requisitos>
        </solicitante>
    </solicitantes>
    <tempo-total-estimado>
        <entre min="10" max="60" unidade="dias-uteis"/>
        <descricao>Entre 10 e 60 dias é o tempo estimado para a análise da solicitação de registro do Acordo Coletivo e Termo Aditivo.</descricao>
    </tempo-total-estimado>
    <validade-documento>
        <descricao>O instrumento coletivo de trabalho tem vigência valida por no máximo 2 anos.</descricao>
    </validade-documento>
    <etapas>
        <etapa id="10081">
            <titulo>Requisitar Mediação quando houver conflito (Opicional)</titulo>
            <descricao>Qualquer uma das partes pode requisitar o serviço de mediação junto ao Ministério do Trabalho, sendo entidade sindical representante da categoria, desde que esteja atualizada junto ao Cadastro Nacional de Entidades Sindicais – CNES, ou o empregador da categoria de entidade sindical que o represente, para dirimir conflitos e formalizar as decisões.

[clique aqui: **SOLICITAR MEDIAÇÃO**](http://www3.mte.gov.br/sistemas/mediador/Mediacao "clique aqui para solicitar MEDIAÇÃO")</descricao>
            <documentos>
                <default>
                    <item id="14632">CNPJ / CEI</item>
                    <item id="15475">CPF do Signatário</item>
                    <item id="15476">Endereço completo</item>
                    <item id="15477">E-mail e Telefone</item>
                </default>
            </documentos>
            <custos>
                <default/>
            </custos>
            <tempo-total-estimado>
                <em-media max="1" unidade="meses"/>
            </tempo-total-estimado>
            <canais-de-prestacao>
                <default>
                    <canal-de-prestacao id="11759" tipo="presencial" tempo-estimado-periodo="horas" tempo-estimado-espera="1">
                        <descricao>Por UF/Estado: **Na Superintendência Regional do Trabalho**, fale na Seção de Relações do Trabalho. [clique aqui: **TELEFONE E ENDEREÇO**](http://trabalho.gov.br/rede-de-atendimento "clique aqui **para ver os telefones e endereços**")</descricao>
                    </canal-de-prestacao>
                    <canal-de-prestacao id="11771" tipo="e-mail">
                        <descricao>SUPORTE: e-mail mediador.srt@mte.gov.br ou comparecendo ao Ministério do Trabalho Esplanada dos Ministérios, bloco F, Térreo, Atendimento da SRT, Brasília DF.</descricao>
                    </canal-de-prestacao>
                    <canal-de-prestacao id="11940" tipo="web">
                        <descricao>http://www3.mte.gov.br/sistemas/mediador/Mediacao</descricao>
                    </canal-de-prestacao>
                </default>
            </canais-de-prestacao>
        </etapa>
        <etapa id="10082">
            <titulo>Cadastrar a Convenção Coletiva de Trabalho no sistema MEDIADOR</titulo>
            <descricao>Uma das partes irá acessar o sistema mediador e registrar ali os termos e informações da convenção coletiva de trabalho firmada entre as partes.

[clique aqui: **CADASTRAR ACORDO COLETIVO**](http://www3.mte.gov.br/sistemas/mediador/ConvencaoColetiva "clique aqui para solicitar o registro da CONVENÇÃO COLETIVA")</descricao>
            <documentos>
                <default>
                    <item id="14633">CNPJ/CEI</item>
                    <item id="15478">Informações do Acordo Coletivo de Trabalho</item>
                    <item id="15479">CPF do Signatário</item>
                    <item id="15480">Endereço</item>
                    <item id="15481">E-mail e Telefone</item>
                    <item id="15482">Data, Local e Ata da Assembleia</item>
                    <item id="15483">Categoria dos Trabalhadores abrangida</item>
                    <item id="15484">Abrangência (quais municípios, estado)</item>
                    <item id="15485">Data base</item>
                    <item id="15486">Cláusulas do instrumento coletivo</item>
                </default>
            </documentos>
            <custos>
                <default/>
            </custos>
            <tempo-total-estimado>
                <nao-estimado-ainda/>
            </tempo-total-estimado>
            <canais-de-prestacao>
                <default>
                    <canal-de-prestacao id="11772" tipo="presencial" tempo-estimado-periodo="horas" tempo-estimado-espera="1">
                        <descricao>Por UF/Estado: **Na Superintendência Regional do Trabalho**, fale na Seção de Relações do Trabalho. [clique aqui: **TELEFONE E ENDEREÇO**](http://trabalho.gov.br/rede-de-atendimento "clique aqui **para ver os telefones e endereços**")</descricao>
                    </canal-de-prestacao>
                    <canal-de-prestacao id="11760" tipo="e-mail">
                        <descricao>SUPORTE: e-mail mediador.srt@mte.gov.br ou comparecendo ao Ministério do Trabalho Esplanada dos Ministérios, bloco F, Térreo, Atendimento da SRT, Brasília DF.</descricao>
                    </canal-de-prestacao>
                </default>
            </canais-de-prestacao>
        </etapa>
        <etapa id="10083">
            <titulo>Protocolar o Requerimento de Solicitação de Registro da Convenção Coletiva</titulo>
            <descricao>Após finalizar o preenchimento e transmissão do instrumento coletivo no sistema Mediador, então protocolar o Requerimento gerado pelo sistema em uma das unidades do Ministério do Trabalho.

[clique aqui: **LOCAL DO PROTOCOLO**](http://trabalho.gov.br/rede-de-atendimento "clique aqui para visualizar o Telefone e Endereço")</descricao>
            <documentos>
                <default/>
            </documentos>
            <custos>
                <default/>
            </custos>
            <tempo-total-estimado>
                <nao-estimado-ainda/>
            </tempo-total-estimado>
            <canais-de-prestacao>
                <default>
                    <canal-de-prestacao id="11761" tipo="presencial" tempo-estimado-periodo="horas" tempo-estimado-espera="1">
                        <descricao>Por UF/Estado: **Na Superintendência Regional do Trabalho**, fale na Seção de Relações do Trabalho. [clique aqui: **TELEFONE E ENDEREÇO**](http://trabalho.gov.br/rede-de-atendimento "clique aqui **para ver os telefones e endereços**")</descricao>
                    </canal-de-prestacao>
                </default>
            </canais-de-prestacao>
        </etapa>
        <etapa id="10084">
            <titulo>Consultar Instrumento Coletivo Registrado</titulo>
            <descricao>Qualquer pessoa pode consultar os Instrumentos Coletivos já registrados no Ministério do Trabalho, para isso, basta acessar o [**SISTEMA MEDIADOR**](http://www3.mte.gov.br/sistemas/mediador/ConsultarInstColetivo "clique AQUI para acessar o sistema Mediador") e preencher as informações do filtro de busca.

[clique aqui **consultar no SISTEMA MEDIADOR**](http://www3.mte.gov.br/sistemas/mediador/ConsultarInstColetivo "clique AQUI para acessar o sistema Mediador")</descricao>
            <documentos>
                <default/>
            </documentos>
            <custos>
                <default/>
            </custos>
            <tempo-total-estimado>
                <nao-estimado-ainda/>
            </tempo-total-estimado>
            <canais-de-prestacao>
                <default>
                    <canal-de-prestacao id="11762" tipo="e-mail">
                        <descricao>SUPORTE: e-mail mediador.srt@mte.gov.br ou comparecendo ao Ministério do Trabalho Esplanada dos Ministérios, bloco F, Térreo, Atendimento da SRT, Brasília DF.</descricao>
                    </canal-de-prestacao>
                    <canal-de-prestacao id="11774" tipo="presencial" tempo-estimado-periodo="horas" tempo-estimado-espera="1">
                        <descricao>Por UF/Estado: **Na Superintendência Regional do Trabalho**, fale na Seção de Relações do Trabalho. [clique aqui: **TELEFONE E ENDEREÇO**](http://trabalho.gov.br/rede-de-atendimento "clique aqui **para ver os telefones e endereços**").</descricao>
                    </canal-de-prestacao>
                </default>
            </canais-de-prestacao>
        </etapa>
    </etapas>
    <orgao id="http://estruturaorganizacional.dados.gov.br/id/unidade-organizacional/2844" dbId="37546">
        <nomeOrgao>Ministério do Trabalho  (MTB)</nomeOrgao>
    </orgao>
    <segmentos-da-sociedade>
        <item idSegmento="2" idServicoSegmento="9708">Órgãos e entidades públicas</item>
        <item idSegmento="4" idServicoSegmento="9709">Demais segmentos (ONGs, organizações sociais, etc)</item>
        <item idSegmento="1" idServicoSegmento="9710">Cidadãos</item>
        <item idSegmento="3" idServicoSegmento="9711">Empresas</item>
    </segmentos-da-sociedade>
    <areas-de-interesse>
        <item>Relações de Trabalho</item>
    </areas-de-interesse>
    <palavras-chave>
        <item id="18680">TERMO ADITIVO</item>
        <item id="18681">SISTEMA MEDIADOR</item>
        <item id="18682">CONVENÇÃO COLETIVA</item>
        <item id="18683">ACORDO COLETIVO</item>
        <item id="18684">INSTRUMENTO COLETIVO</item>
        <item id="18685">CONVENÇÃO COLETIVA</item>
        <item id="18686">NEGOCIAÇÃO COLETIVA</item>
        <item id="18687">MEDIAÇÃO</item>
    </palavras-chave>
    <legislacoes>
        <item id="3509">**Instruções Normativas nº 16 de 2013 e nº 20 de 2015** [clique aqui: **VISUALIZAR IN's**](http://acesso.mte.gov.br/data/files/FF8080814F05451F014F17BB47716908/IN%2016%20DE%2015.10.2013.pdf)</item>
        <item id="3510">**Manual do Sistema Mediador** [clique aqui: **BAIXAR MANUAL**](http://www3.mte.gov.br/sistemas/mediador/Content/docs/CARTILHA_DO_MEDIADOR_v20.pdf "BAIXAR O MANUAL")</item>
        <item id="3421">**CLT**  [clique aqui: **VISUALIZAR CLT**](http://www.planalto.gov.br/ccivil_03/Decreto-Lei/Del5452.htm "clique aqui p/ VER A CLT")</item>
    </legislacoes>
    <condicoes-acessibilidade>O usuário do serviço público, conforme estabelecido pela lei nº13.460/17, tem direito a atendimento presencial, quando necessário, em instalações salubres, seguras, sinalizadas, acessíveis e adequadas ao serviço e ao atendimento.</condicoes-acessibilidade>
    <tratamento-prioritario>Tem direito a atendimento prioritário as pessoas com deficiência, os idosos com idade igual ou superior a 60 anos, as gestantes, as lactantes, as pessoas com crianças de colo e os obesos, conforme estabelecido pela lei 10.048, de 8 de novembro de 2000</tratamento-prioritario>
    <tratamento-dispensado-atendimento>O usuário deverá receber, conforme os princípios expressos na lei nº 13.460/17, um atendimento pautado nas seguintes diretrizes:
Urbanidade;
Respeito;
Acessibilidade;
Cortesia;
Presunção da boa-fé do usuário;
Igualdade;
Eficiência;
Segurança; e
Ética.</tratamento-dispensado-atendimento>
</servico>


text:
html a,body a, html a:visited,body a:visited, ul.dropdown li, ul.dropdown a:link, ul.dropdown a:visited {
	color: [[setting:linkcolor]];
}

html a:hover,body a:hover, ul.dropdown li.hover, ul.dropdown li:hover, ul.dropdown a:hover, ul.dropdown a:active {
	color: [[setting:linkhover]];
}

#logo {
	background: url([[setting:logo]]) no-repeat;
}

#page-header {
	background: [[setting:maincolor]] url([[pix:theme|header]]) repeat-x;
	border-bottom: 1px solid [[setting:maincolor]];
}

#nologo a,#nologo, #loggedinas, .block .header h2, .yui3-menu-content li a, #navigation li a {
	color: [[setting:maincolorlink]] !important;
}

div.block {
	background: [[setting:maincolor]] url([[pix:theme|block]]) no-repeat;
}

.block div.header {
	border-bottom: 1px solid [[setting:maincolor]];
}

.generalbox h2,h3.sectionname, h2.headingblock,h2.main,h3.main, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2, .forumpost .subject {
	color: [[setting:headingcolor]];
}

#nologo a, .yui3-menu-content li a, .headingtitle h1, .block .header h2 {
	text-shadow: -1px 1px 1px [[setting:maincolor]];
}

#dock .controls {
	background-color: [[setting:linkcolor]];
}

#dock .dockedtitle.activeitem {
	background-color: [[setting:maincolor]];
}

#dockeditempanel .dockeditempanel_content {
	border-color: [[setting:maincolor]];
}

#dockeditempanel .dockeditempanel_hd {
	background: [[setting:maincolor]];
}

div.custom_menu_submenu li a {
	color: [[setting:linkcolor]] !important;
}


text:
<?php @include('shared/header.php'); ?>
<?php
    class climate{
        public $name;
        public $port;
        public $icon;

        public function __construct($name, $port){
            $this->name = $name;
            $this->port = $port;
        }
    }
    $climi = array(
        new climate("caldo", "91"),
        new climate("freddo", "93")
    );
?>

<?php
    foreach($climi as $clima){
        echo "
name}'>";
            echo "
{$clima->name}, Spento
";
            echo "
";
                echo "
";
                echo "
";
                    echo "Temperatura: -
";
                echo "
";
                echo "
";
                    echo "Soglia:
";
                    echo "
";
                        echo "Cambia: <select class='sogliaSelect'>";
                            for($i=12; $i<37; $i+=0.5){
                                echo "<option value=\"{$i}\">{$i}</option>";
                            }
                        echo "</select>";
                        echo "<button onClick=\"climateManagement('{$clima->name}', 'update',{$clima->port})\">Salva</button>
";
                    echo "
";
                echo "
";
                echo "
";
                    echo "Automatico/Manuale
";
                    echo "
";
                        echo "
name}', 'automatic',{$clima->port})\"> Automatico
";
                        echo "
name}', 'manual',{$clima->port})\"> Manuale
";
                    echo "
";
                echo "
";
                echo "
";
            echo "
";
        echo "
";
    }
?>

<?php @include('shared/footer.php'); ?>


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.deviceupdate.models;

import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;

/** Resource collection API of PrivateEndpointConnections. */
public interface PrivateEndpointConnections {
    /**
     * List all private endpoint connections in a device update account.
     *
     * @param resourceGroupName The resource group name.
     * @param accountName Account name.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return list of private endpoint connection associated with the specified storage account as paginated response
     *     with {@link PagedIterable}.
     */
    PagedIterable<PrivateEndpointConnection> listByAccount(String resourceGroupName, String accountName);

    /**
     * List all private endpoint connections in a device update account.
     *
     * @param resourceGroupName The resource group name.
     * @param accountName Account name.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return list of private endpoint connection associated with the specified storage account as paginated response
     *     with {@link PagedIterable}.
     */
    PagedIterable<PrivateEndpointConnection> listByAccount(
        String resourceGroupName, String accountName, Context context);

    /**
     * Get the specified private endpoint connection associated with the device update account.
     *
     * @param resourceGroupName The resource group name.
     * @param accountName Account name.
     * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
     *     resource.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the specified private endpoint connection associated with the device update account.
     */
    PrivateEndpointConnection get(String resourceGroupName, String accountName, String privateEndpointConnectionName);

    /**
     * Get the specified private endpoint connection associated with the device update account.
     *
     * @param resourceGroupName The resource group name.
     * @param accountName Account name.
     * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
     *     resource.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the specified private endpoint connection associated with the device update account along with {@link
     *     Response}.
     */
    Response<PrivateEndpointConnection> getWithResponse(
        String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);

    /**
     * Deletes the specified private endpoint connection associated with the device update account.
     *
     * @param resourceGroupName The resource group name.
     * @param accountName Account name.
     * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
     *     resource.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName);

    /**
     * Deletes the specified private endpoint connection associated with the device update account.
     *
     * @param resourceGroupName The resource group name.
     * @param accountName Account name.
     * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
     *     resource.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);

    /**
     * Get the specified private endpoint connection associated with the device update account.
     *
     * @param id the resource ID.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the specified private endpoint connection associated with the device update account along with {@link
     *     Response}.
     */
    PrivateEndpointConnection getById(String id);

    /**
     * Get the specified private endpoint connection associated with the device update account.
     *
     * @param id the resource ID.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the specified private endpoint connection associated with the device update account along with {@link
     *     Response}.
     */
    Response<PrivateEndpointConnection> getByIdWithResponse(String id, Context context);

    /**
     * Deletes the specified private endpoint connection associated with the device update account.
     *
     * @param id the resource ID.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    void deleteById(String id);

    /**
     * Deletes the specified private endpoint connection associated with the device update account.
     *
     * @param id the resource ID.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    void deleteByIdWithResponse(String id, Context context);

    /**
     * Begins definition for a new PrivateEndpointConnection resource.
     *
     * @param name resource name.
     * @return the first stage of the new PrivateEndpointConnection definition.
     */
    PrivateEndpointConnection.DefinitionStages.Blank define(String name);
}


text:
machine_learning_matlab
=======================

A Small Collection of Machine Learning Algorithms for MATLAB / Octave


text:
class AddInfoToUsers < ActiveRecord::Migration[5.1]
  def change
    add_column :users, :first_name, :string, default: ""
    add_column :users, :last_name, :string, default: ""
    add_column :users, :address, :string, default: ""
    add_column :users, :born_on, :date, default: ""
    add_column :users, :born_at, :string, default: ""
    add_column :users, :telephone, :string, default: ""
    add_column :users, :website, :string, default: ""
    add_column :users, :social_number, :string, default: ""
    add_column :users, :id_number, :string, default: ""
    add_column :users, :license_number, :string, default: ""
    add_column :users, :car_plate, :string, default: ""
    add_column :users, :insurance_company, :string, default: ""
    add_column :users, :weight, :float, default: 0.0
    add_column :users, :height, :float, default: 0.0
    add_column :users, :blood_group, :string, default: ""
  end
end


text:
package elasta.webutils.query.string;

/**
 * Created by Jango on 2016-11-20.
 */
public interface ObjectToQueryStringConverter<T> {
    String convert(T t);
}


text:
#pragma once
#include <aws/cloudfront/CloudFront_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace CloudFront
{
namespace Model
{
  enum class EventType
  {
    NOT_SET,
    viewer_request,
    viewer_response,
    origin_request,
    origin_response
  };

namespace EventTypeMapper
{
AWS_CLOUDFRONT_API EventType GetEventTypeForName(const Aws::String& name);

AWS_CLOUDFRONT_API Aws::String GetNameForEventType(EventType value);
} // namespace EventTypeMapper
} // namespace Model
} // namespace CloudFront
} // namespace Aws


text:
@interface FLEXDefaultEditorViewController ()

@property (nonatomic, readonly) NSUserDefaults *defaults;
@property (nonatomic) NSString *key;

@end

@implementation FLEXDefaultEditorViewController

- (id)initWithDefaults:(NSUserDefaults *)defaults key:(NSString *)key
{
    self = [super initWithTarget:defaults];
    if (self) {
        self.key = key;
        self.title = @"Edit Default";
    }
    return self;
}

- (NSUserDefaults *)defaults
{
    return [self.target isKindOfClass:[NSUserDefaults class]] ? self.target : nil;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.fieldEditorView.fieldDescription = self.key;

    id currentValue = [self.defaults objectForKey:self.key];
    FLEXArgumentInputView *inputView = [FLEXArgumentInputViewFactory
        argumentInputViewForTypeEncoding:FLEXEncodeObject(currentValue)
        currentValue:currentValue
    ];
    inputView.backgroundColor = self.view.backgroundColor;
    inputView.inputValue = currentValue;
    self.fieldEditorView.argumentInputViews = @[inputView];
}

- (void)actionButtonPressed:(id)sender
{
    [super actionButtonPressed:sender];

    id value = self.firstInputView.inputValue;
    if (value) {
        [self.defaults setObject:value forKey:self.key];
    } else {
        [self.defaults removeObjectForKey:self.key];
    }
    [self.defaults synchronize];

    self.firstInputView.inputValue = [self.defaults objectForKey:self.key];
}

- (void)getterButtonPressed:(id)sender
{
    [super getterButtonPressed:sender];
    id returnedObject = [self.defaults objectForKey:self.key];
    [self exploreObjectOrPopViewController:returnedObject];
}

+ (BOOL)canEditDefaultWithValue:(id)currentValue
{
    return [FLEXArgumentInputViewFactory
        canEditFieldWithTypeEncoding:FLEXEncodeObject(currentValue)
        currentValue:currentValue
    ];
}

@end


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

  <title>To Do List for simulation/src/+edu/+stanford/+covert/+cell/+sim/+analysis</title>
  <meta name="keywords" content="todo, to do, list, simulation/src/+edu/+stanford/+covert/+cell/+sim/+analysis">
  <meta name="description" content="To Do List for simulation/src/+edu/+stanford/+covert/+cell/+sim/+analysis">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html v1.5 © 2003-2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../../../../../../../m2html.css">

<img alt="<" border="0" src="../../../../../../../../left.png"> Master index
Index for simulation/src/+edu/+stanford/+covert/+cell/+sim/+analysis " border="0" src="../../../../../../../../right.png">

To Do List for simulation/src/+edu/+stanford/+covert/+cell/+sim/+analysis

ChromosomePositionHistogram:

line 99:  Handle cases where we don't have one of monomers or complexes

ChromosomeSpaceTimePlot:

line 415:  Use loops rather than spaghetti code!

line 803:  Add an argument to the function definition to enable

<address>Generated on Thu 19-Jul-2012 18:32:10 by m2html © 2005</address>


text:
package concept.conssitenthash;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import concept.conssitenthash.strategy.IStrategy;

/**
 *
 * @author Mahesh
 *
 */
public class HashStrategy implements IStrategy {

	private MessageDigest instance;

	public static HashStrategy getAlgorithm(String algorithmName) {

		return new HashStrategy(algorithmName);
	}

	private HashStrategy(String algorithmName) {
		try {
			instance = MessageDigest.getInstance(algorithmName);
		} catch (NoSuchAlgorithmException e) {
			// doesn't matter
			throw new AssertionError(e);
		}
	}

	public long hash(String key) {

		instance.reset();

		instance.update(key.getBytes());

		byte[] digest = instance.digest();

		long h = 0;

		for (int i = 0; i < 4; i++) {

			h <<= 8;

			h |= ((int) digest[i]) & 0xFF;
		}
		return h;
	}
}


text:
// Copyright (c) Microsoft Technologies, Inc.  All rights reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.

namespace CompatCheckAndMigrate.Controls
{
    partial class MigrationSite
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.busyPictureBox = new System.Windows.Forms.PictureBox();
            this.checkPublishSettingsTimer = new System.Windows.Forms.Timer(this.components);
            this.btnPublish = new System.Windows.Forms.Button();
            this.BackButton = new System.Windows.Forms.Button();
            this.panel1 = new System.Windows.Forms.Panel();
            this.siteBrowser = new System.Windows.Forms.WebBrowser();
            this.panel2 = new System.Windows.Forms.Panel();
            ((System.ComponentModel.ISupportInitialize)(this.busyPictureBox)).BeginInit();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            //
            // busyPictureBox
            //
            this.busyPictureBox.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.busyPictureBox.Image = global::CompatCheckAndMigrate.Properties.Resources.AnimatedProgressBar;
            this.busyPictureBox.Location = new System.Drawing.Point(270, 150);
            this.busyPictureBox.Name = "busyPictureBox";
            this.busyPictureBox.Size = new System.Drawing.Size(105, 103);
            this.busyPictureBox.TabIndex = 11;
            this.busyPictureBox.TabStop = false;
            this.busyPictureBox.Visible = false;
            //
            // checkPublishSettingsTimer
            //
            this.checkPublishSettingsTimer.Interval = 1000;
            this.checkPublishSettingsTimer.Tick += new System.EventHandler(this.checkPublishSettingsTimer_Tick);
            //
            // btnPublish
            //
            this.btnPublish.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnPublish.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(203)))), ((int)(((byte)(234)))));
            this.btnPublish.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnPublish.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnPublish.ForeColor = System.Drawing.Color.White;
            this.btnPublish.Location = new System.Drawing.Point(654, 9);
            this.btnPublish.Name = "btnPublish";
            this.btnPublish.Size = new System.Drawing.Size(125, 41);
            this.btnPublish.TabIndex = 12;
            this.btnPublish.Text = "Begin Publish";
            this.btnPublish.UseVisualStyleBackColor = false;
            this.btnPublish.Click += new System.EventHandler(this.btnPublish_Click);
            //
            // BackButton
            //
            this.BackButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.BackButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(203)))), ((int)(((byte)(234)))));
            this.BackButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.BackButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BackButton.ForeColor = System.Drawing.Color.White;
            this.BackButton.Location = new System.Drawing.Point(543, 9);
            this.BackButton.Name = "BackButton";
            this.BackButton.Size = new System.Drawing.Size(105, 41);
            this.BackButton.TabIndex = 18;
            this.BackButton.Text = "Back";
            this.BackButton.UseVisualStyleBackColor = false;
            this.BackButton.Click += new System.EventHandler(this.BackButton_Click);
            //
            // panel1
            //
            this.panel1.Controls.Add(this.BackButton);
            this.panel1.Controls.Add(this.btnPublish);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel1.Location = new System.Drawing.Point(0, 371);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(792, 55);
            this.panel1.TabIndex = 20;
            //
            // siteBrowser
            //
            this.siteBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
            this.siteBrowser.Location = new System.Drawing.Point(0, 0);
            this.siteBrowser.MinimumSize = new System.Drawing.Size(20, 20);
            this.siteBrowser.Name = "siteBrowser";
            this.siteBrowser.Size = new System.Drawing.Size(790, 369);
            this.siteBrowser.TabIndex = 21;
            this.siteBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.siteBrowser_Navigated);
            this.siteBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.siteBrowser_Navigating);
            //
            // panel2
            //
            this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel2.Controls.Add(this.siteBrowser);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(792, 371);
            this.panel2.TabIndex = 22;
            //
            // MigrationSite
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.White;
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.busyPictureBox);
            this.Name = "MigrationSite";
            this.Size = new System.Drawing.Size(792, 426);
            ((System.ComponentModel.ISupportInitialize)(this.busyPictureBox)).EndInit();
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.PictureBox busyPictureBox;
        private System.Windows.Forms.Timer checkPublishSettingsTimer;
        private System.Windows.Forms.Button btnPublish;
        private System.Windows.Forms.Button BackButton;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.WebBrowser siteBrowser;
        private System.Windows.Forms.Panel panel2;
    }
}


text:
exports = module.exports = {
  getLogger: getLogger,
};

// npm-installed modules
const winston = require('winston');

/**
 * Return the main application logger
 *
 * @return {Object} logger
 */
function getLogger() {
  return winston;
}


text:
package com.simulator.controller.er.producer;

import com.simulator.model.messages.MsgExecutionReport;
import com.simulator.model.state.Order;
import com.simulator.model.tags.ExecType;

/**
 * Changes the order given to PENDING NEW state and generates an
 * {@link MsgExecutionReport} accordingly
 *
 * @author sunquan
 *
 */
public class ComfirmOrderImp implements ExecReportProducerInterf {

	private final Order order;

	public ComfirmOrderImp(Order targetOrder) {
		this.order = targetOrder;
		order.setOrdStatus(ExecType.NEW);
	}

	@Override
	public MsgExecutionReport getExecutionReport() {
		return (new MsgExecutionReport.Builder(order)).build();
	}

}


text:
<?php

/**
 * Class to handle the theme configuration.
 *
 * @package    sfHadoriThemePlugin
 * @subpackage generator
 * @author     Brent Shaffer <bshafs@gmail.com>
 */
class sfHadoriGeneratorConfiguration extends sfThemeGeneratorConfiguration
{
  protected
    $doctrineDefaults = array(),
    $availableConfigs = array(
        'actions' => array(),
        'fields'  => array(),
        'list'    => array(),
        'filter'  => array(),
        'form'    => array(),
        'edit'    => array(),
        'show'    => array(),
        'new'     => array(),
        'export'  => array(),
      );

  protected function compile($configs)
  {
    $depth = array(1 => array('list', 'filter', 'form', 'edit', 'show', 'new', 'export'), 2 => array('actions', 'fields'));
    $this->table   = Doctrine_Core::getTable($this->getOptionValue('model_class'));
    $configuration = $this->arrayDeepMerge($this->getDefaultConfiguration(), $configs, $depth);

    // Default values for list display
    if ($configuration['list']['display'] === true) {
      $configuration['list']['display'] = array_slice($this->getAllFieldNames(false), 0, 5);
    }

    // Default values for show display
    if ($configuration['show']['display'] === true) {
      $configuration['show']['display'] = $this->getAllFieldNames(false);
    }

    // Default values for export display
    if ($configuration['export']['display'] === true) {
      $configuration['export']['display'] = $this->getAllFieldNames(false);
    }

    // create "sfHadoriField" object from supplied options for all configurations of type "field"
    foreach ($configuration as $context => $config) {
      if (isset($config['display'])) {
        $display = array();
        foreach ($configuration[$context]['display'] as $key => $options) {
          $name = is_string($key) ? $key : (string) $options;

          // Merge in options if the field is defined in "fields"
          $options = isset($configuration['fields'][$name]) ? array_merge($configuration['fields'][$name], (array)$options) : $options;
          $display[$name] = $this->createFieldFromOptions($name, $options);
        }
        $configuration[$context]['display'] = $display;
      }
    }

    // merge in default "actions" configuration
    foreach ($configuration as $context => $config) {
      if (is_array($config)) {
        foreach ($config as $actionType => $value) {
          if (strpos($actionType, 'actions') !== false) {

            // if action names are set as values (i.e. [edit, new, save]) change them to values
            $configuredActions = array();
            foreach ($value as $action => $options) {
              if (is_int($action) && is_string($options)) {
                $configuredActions[(string)$options] = null;
              } else {
                $configuredActions[$action] = $options;
              }
            }

            $defaultActions = $configuration['actions'];

            // batch actions do not have the same configuration as the other actions
            if ($actionType == 'batch_actions') {
                $originalDefaults = $this->getDefaultConfiguration();
                $defaultActions = $originalDefaults['list']['batch_actions'];
            }

            // Merge in actions for configurations defined in "actions"
            $actions = Doctrine_Lib::arrayDeepMerge(
                // merge in null values first.  That way, if they don't exist as defaults, they don't get removed alltogether
                $configuredActions,
                // merge in default actions
                array_intersect_key($defaultActions, $configuredActions),
                // filter out null values so default actions take precedence.  In all other occasions, null values take precedence
                $this->filterNullValues($configuredActions)
            );

            // set "label" and "class" if not set in configuration
            foreach ($actions as $actionName => $actionConfig) {
              $actions[$actionName] = $this->getActionsConfig($actionName, $actionConfig, $actionType);
            }

            // set "credentials" if security.yml is defined and "use_security_yaml_credentials" is true
            if ($this->loadSecurityCredentials()) {
              foreach ($actions as $actionName => $actionConfig) {
                $actions[$actionName] = $this->addSecurityCredentials($actionName, $actionConfig);
              }
            }

            $configuration[$context][$actionType] = $actions;
          }
        }
      }
    }

    $this->configuration = $configuration;

    // unset export if export is disabled
    if (!$this->hasExporting()) {
      unset($this->configuration['list']['actions']['export']);
    }
  }

  public function hasExporting()
  {
    return isset($this->configuration['export']) && false !== $this->configuration['export'];
  }

  public function hasFilterForm()
  {
    return !isset($this->configuration['filter']['class']) || false !== $this->configuration['filter']['class'];
  }

  public function hasExportFilterForm()
  {
    return !isset($this->configuration['export']['filter']['class']) || false !== $this->configuration['export']['filter']['class'];
  }

  public function hasSortable()
  {
    return isset($this->options['sortable']) && $this->options['sortable'];
  }

  protected function getDefaultConfiguration()
  {
    $defaults = sfYaml::load(dirname(__FILE__).'/../config/config/generator.yml');

    $configDefaults = $defaults['generator']['param']['config'];

    // Defaults when sorting is enabled
    if ($this->hasSortable()) {
      $configDefaults['list']['object_actions']['promote'] = null;
      $configDefaults['list']['object_actions']['demote']  = null;
      $configDefaults['list']['sort'] = array('position', 'asc');
    }

    return $configDefaults;
  }

  public function addSecurityCredentials($name, $options = array())
  {
    $actionAction = isset($options['action']) ? $options['action'] : $name;
    if(isset($this->security[$actionAction]['credentials']))
    {
      $options['credentials'] = $this->security[$actionAction]['credentials'];
    }
    elseif(isset($this->security[$actionAction]['is_secure']) && $this->security[$actionAction]['is_secure'])
    {
      $options['credentials'] = true;
    }
    elseif(isset($this->security['all']['credentials']) && $this->security['all']['credentials'])
    {
      // If "All" credentials are set and the route is secure, set the credential accordingly
      $options['credentials'] = $this->security['all']['credentials'];
    }

    return $options;
  }

  protected function getActionsConfig($action, $options, $type = null)
  {
    if (!isset($options['class'])) {
      $options['class'] = $action;
    }

    if (!isset($options['label'])) {
      $options['label'] = sfInflector::humanize($action);
    }

    if (!isset($options['action']) && $type == 'batch_actions') {
      $options['action'] = $action;
    }

    return $options;
  }

  protected function loadSecurityCredentials()
  {
    if ($this->getConfigValue('use_security_yaml_credentials', true))
    {
      $path = sfConfig::get('sf_app_module_dir').'/'.sfContext::getInstance()->getRequest()->getParameter('module').'/config/security.yml';
      if (file_exists($path))
      {
        include(sfContext::getInstance()->getConfigCache()->checkConfig($path));

        return true;
      }
    }
  }

  protected function createFieldFromOptions($name, $options)
  {
    $cleanName = $name;

    switch ($name[0]) {
      case '_':
      case '~':
      case '=':
        $cleanName = substr($name, 1);
        break;
    }

    $options = array_merge($this->getDefaultFieldConfiguration($cleanName), (array) $options);

    return new sfHadoriField($name, $options);
  }

  public function getDefaultFieldConfiguration($name)
  {
    if (!$this->doctrineDefaults) {
      $this->doctrineDefaults = $this->getDoctrineFieldDefaultConfigurations();
    }

    return isset($this->doctrineDefaults[$name]) ? $this->doctrineDefaults[$name] : array(
      'label' => sfInflector::humanize(sfInflector::underscore($name)),
      'type'  => 'Text');
  }

  public function getDoctrineFieldDefaultConfigurations()
  {
    $fields = array();

    foreach ($this->getColumns() as $name => $column)
    {
      if ($column->isForeignKey())
      {
        $type = 'ForeignKey';
      }
      else {
        switch ($column->getDoctrineType())
        {
          case 'enum':
            $type = 'Enum';
            break;
          case 'boolean':
            $type = 'Boolean';
            break;
          case 'date':
          case 'timestamp':
            $type = 'Date';
            break;
          case 'time':
            $type = 'Time';
            break;
          default:
            $type = 'Text';
            break;
        }
      }

      $fields[$name] = array_merge(array(
        'is_link'      => (Boolean) $column->isPrimaryKey(),
        'is_real'      => true,
        'is_partial'   => false,
        'is_component' => false,
        'type'         => $type,
        'label'        => sfInflector::humanize(sfInflector::underscore($name)),
      ));
    }

    foreach ($this->getManyToManyTables() as $tables)
    {
      $name = sfInflector::underscore($tables['alias']).'_list';

      $fields[$name] = array_merge(array(
        'is_link'      => false,
        'is_real'      => false,
        'is_partial'   => false,
        'is_component' => false,
        'type'         => 'Text',
        'label'        => sfInflector::humanize(sfInflector::underscore($name)),
      ));
    }

    return $fields;
  }

  protected function getColumns()
  {
    $columns = array();

    foreach (array_keys($this->table->getColumns()) as $name)
    {
      $name = $this->table->getFieldName($name);
      $columns[$name] = new sfDoctrineColumn($name, $this->table);
    }

    return $columns;
  }

  protected function getManyToManyTables()
  {
    $manyToManyTables = array();

    // get many to many tables
    foreach ($this->table->getRelations() as $relation)
    {
      if ($relation->getType() === Doctrine_Relation::MANY && isset($relation['refTable']))
      {
        $manyToManyTables[] = $relation;
      }
    }

    return $manyToManyTables;
  }

  protected function getAllFieldNames($withM2M = true)
  {
    $names = array();
    foreach ($this->getColumns() as $name => $column)
    {
      $names[] = $name;
    }

    if ($withM2M)
    {
      foreach ($this->getManyToManyTables() as $tables)
      {
        $names[] = sfInflector::underscore($tables['alias']).'_list';
      }
    }

    return $names;
  }

  protected function filterNullValues($input, $depth = null)
  {
    if ($depth === 0) {
      return $input;
    }

    foreach ($input as $key => &$value)
    {
      if (is_array($value))
      {
        $nextDepth = null === $depth ? $depth : $depth - 1;
        $value = $this->filterNullValues($value, $nextDepth);
      }
      elseif($value === null) {
        unset($input[$key]);
      }
    }

    return $input;
  }

  protected function arrayDeepMerge($array1, $array2, $depth = null)
  {
    if ($depth === 0) {
      return $array2;
    }

    $merged = array();

    if (is_array($array1) && is_array($array2))
    {
        if ($array2 === array()) {
          return $array2;
        }

        foreach (array_unique(array_merge(array_keys($array1),array_keys($array2))) as $key)
        {
            $isKey0 = array_key_exists($key, $array1);
            $isKey1 = array_key_exists($key, $array2);

            if ($isKey0 && $isKey1 && is_array($array1[$key]) && is_array($array2[$key]))
            {
                $nextDepth = null;

                if (null !== $depth) {
                  if (is_array($depth)) {
                    foreach ($depth as $keyDepth => $keys) {
                      if (in_array($key, $keys)) {
                        $nextDepth = $keyDepth;
                      }
                    }
                  }
                  else {
                    $nextDepth = $depth - 1;
                  }
                }

                $merged[$key] = $this->arrayDeepMerge($array1[$key], $array2[$key], $nextDepth);
            } else if ($isKey0 && $isKey1 && $array2[$key] === null) {
                $merged[$key] = $array1[$key];
            }else if ($isKey0 && $isKey1) {
                $merged[$key] = $array2[$key];
            } else if ( ! $isKey1) {
                $merged[$key] = $array1[$key];
            } else if ( ! $isKey0) {
                $merged[$key] = $array2[$key];
            }
        }

        return $merged;
    } else {
        return $array2;
    }
  }
}


text:
var colors = require('colors');

process.on('uncaughtException', function(err) {
  console.log("\nERROR:".red.bold);
  if (err.message) {
    console.log('\nMessage: ' + err.message)
  }
  if (err.stack) {
    console.log('\nStacktrace:')
    console.log('====================')
    console.log(err.stack);
  }
});
process.addListener('uncaughtException', function (err) {
  console.log('uncaughtException: ' + err, err);
});