text:
/**
 * @fileOverview Defines the {@link CKEDITOR.lang} object, for the
 * Dutch language.
 */

/**#@+
   @type String
   @example
*/

/**
 * Constains the dictionary of language entries.
 * @namespace
 */
CKEDITOR.lang['nl'] =
{
	/**
	 * The language reading direction. Possible values are "rtl" for
	 * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
	 * languages (like English).
	 * @default 'ltr'
	 */
	dir : 'ltr',

	/*
	 * Screenreader titles. Please note that screenreaders are not always capable
	 * of reading non-English words. So be careful while translating it.
	 */
	editorTitle : 'Rich text editor, %1, press ALT 0 for help.', // MISSING

	// ARIA descriptions.
	toolbar	: 'Toolbar', // MISSING
	editor	: 'Rich Text Editor', // MISSING

	// Toolbar buttons without dialogs.
	source			: 'Code',
	newPage			: 'Nieuwe pagina',
	save			: 'Opslaan',
	preview			: 'Voorbeeld',
	cut				: 'Knippen',
	copy			: 'Kopiëren',
	paste			: 'Plakken',
	print			: 'Printen',
	underline		: 'Onderstreept',
	bold			: 'Vet',
	italic			: 'Schuingedrukt',
	selectAll		: 'Alles selecteren',
	removeFormat	: 'Opmaak verwijderen',
	strike			: 'Doorhalen',
	subscript		: 'Subscript',
	superscript		: 'Superscript',
	horizontalrule	: 'Horizontale lijn invoegen',
	pagebreak		: 'Pagina-einde invoegen',
	unlink			: 'Link verwijderen',
	undo			: 'Ongedaan maken',
	redo			: 'Opnieuw uitvoeren',

	// Common messages and labels.
	common :
	{
		browseServer	: 'Bladeren op server',
		url				: 'URL',
		protocol		: 'Protocol',
		upload			: 'Upload',
		uploadSubmit	: 'Naar server verzenden',
		image			: 'Afbeelding',
		flash			: 'Flash',
		form			: 'Formulier',
		checkbox		: 'Aanvinkvakje',
		radio			: 'Selectievakje',
		textField		: 'Tekstveld',
		textarea		: 'Tekstvak',
		hiddenField		: 'Verborgen veld',
		button			: 'Knop',
		select			: 'Selectieveld',
		imageButton		: 'Afbeeldingsknop',
		notSet			: '<niet ingevuld>',
		id				: 'Kenmerk',
		name			: 'Naam',
		langDir			: 'Schrijfrichting',
		langDirLtr		: 'Links naar rechts (LTR)',
		langDirRtl		: 'Rechts naar links (RTL)',
		langCode		: 'Taalcode',
		longDescr		: 'Lange URL-omschrijving',
		cssClass		: 'Stylesheet-klassen',
		advisoryTitle	: 'Aanbevolen titel',
		cssStyle		: 'Stijl',
		ok				: 'OK',
		cancel			: 'Annuleren',
		close			: 'Close', // MISSING
		preview			: 'Preview', // MISSING
		generalTab		: 'Algemeen',
		advancedTab		: 'Geavanceerd',
		validateNumberFailed : 'Deze waarde is geen geldig getal.',
		confirmNewPage	: 'Alle aangebrachte wijzigingen gaan verloren. Weet u zeker dat u een nieuwe pagina wilt openen?',
		confirmCancel	: 'Enkele opties zijn gewijzigd. Weet u zeker dat u dit dialoogvenster wilt sluiten?',
		options			: 'Options', // MISSING
		target			: 'Target', // MISSING
		targetNew		: 'New Window (_blank)', // MISSING
		targetTop		: 'Topmost Window (_top)', // MISSING
		targetSelf		: 'Same Window (_self)', // MISSING
		targetParent	: 'Parent Window (_parent)', // MISSING

		// Put the voice-only part of the label in the span.
		unavailable		: '%1, niet beschikbaar'
	},

	// Special char dialog.
	specialChar		:
	{
		toolbar		: 'Speciaal teken invoegen',
		title		: 'Selecteer speciaal teken'
	},

	// Link dialog.
	link :
	{
		toolbar		: 'Link invoegen/wijzigen',
		menu		: 'Link wijzigen',
		title		: 'Link',
		info		: 'Linkomschrijving',
		target		: 'Doel',
		upload		: 'Upload',
		advanced	: 'Geavanceerd',
		type		: 'Linktype',
		toUrl		: 'URL', // MISSING
		toAnchor	: 'Interne link in pagina',
		toEmail		: 'E-mail',
		targetFrame		: '<frame>',
		targetPopup		: '<popup window>',
		targetFrameName	: 'Naam doelframe',
		targetPopupName	: 'Naam popupvenster',
		popupFeatures	: 'Instellingen popupvenster',
		popupResizable	: 'Herschaalbaar',
		popupStatusBar	: 'Statusbalk',
		popupLocationBar: 'Locatiemenu',
		popupToolbar	: 'Menubalk',
		popupMenuBar	: 'Menubalk',
		popupFullScreen	: 'Volledig scherm (IE)',
		popupScrollBars	: 'Schuifbalken',
		popupDependent	: 'Afhankelijk (Netscape)',
		popupWidth		: 'Breedte',
		popupLeft		: 'Positie links',
		popupHeight		: 'Hoogte',
		popupTop		: 'Positie boven',
		id				: 'Id',
		langDir			: 'Schrijfrichting',
		langDirLTR		: 'Links naar rechts (LTR)',
		langDirRTL		: 'Rechts naar links (RTL)',
		acccessKey		: 'Toegangstoets',
		name			: 'Naam',
		langCode		: 'Schrijfrichting',
		tabIndex		: 'Tabvolgorde',
		advisoryTitle	: 'Aanbevolen titel',
		advisoryContentType	: 'Aanbevolen content-type',
		cssClasses		: 'Stylesheet-klassen',
		charset			: 'Karakterset van gelinkte bron',
		styles			: 'Stijl',
		selectAnchor	: 'Kies een interne link',
		anchorName		: 'Op naam interne link',
		anchorId		: 'Op kenmerk interne link',
		emailAddress	: 'E-mailadres',
		emailSubject	: 'Onderwerp bericht',
		emailBody		: 'Inhoud bericht',
		noAnchors		: '(Geen interne links in document gevonden)',
		noUrl			: 'Geef de link van de URL',
		noEmail			: 'Geef een e-mailadres'
	},

	// Anchor dialog
	anchor :
	{
		toolbar		: 'Interne link',
		menu		: 'Eigenschappen interne link',
		title		: 'Eigenschappen interne link',
		name		: 'Naam interne link',
		errorName	: 'Geef de naam van de interne link op'
	},

	// Find And Replace Dialog
	findAndReplace :
	{
		title				: 'Zoeken en vervangen',
		find				: 'Zoeken',
		replace				: 'Vervangen',
		findWhat			: 'Zoeken naar:',
		replaceWith			: 'Vervangen met:',
		notFoundMsg			: 'De opgegeven tekst is niet gevonden.',
		matchCase			: 'Hoofdlettergevoelig',
		matchWord			: 'Hele woord moet voorkomen',
		matchCyclic			: 'Doorlopend zoeken',
		replaceAll			: 'Alles vervangen',
		replaceSuccessMsg	: '%1 resulaten vervangen.'
	},

	// Table Dialog
	table :
	{
		toolbar		: 'Tabel',
		title		: 'Eigenschappen tabel',
		menu		: 'Eigenschappen tabel',
		deleteTable	: 'Tabel verwijderen',
		rows		: 'Rijen',
		columns		: 'Kolommen',
		border		: 'Breedte rand',
		align		: 'Uitlijning',
		alignLeft	: 'Links',
		alignCenter	: 'Centreren',
		alignRight	: 'Rechts',
		width		: 'Breedte',
		widthPx		: 'pixels',
		widthPc		: 'procent',
		widthUnit	: 'width unit', // MISSING
		height		: 'Hoogte',
		cellSpace	: 'Afstand tussen cellen',
		cellPad		: 'Ruimte in de cel',
		caption		: 'Naam',
		summary		: 'Samenvatting',
		headers		: 'Koppen',
		headersNone		: 'Geen',
		headersColumn	: 'Eerste kolom',
		headersRow		: 'Eerste rij',
		headersBoth		: 'Beide',
		invalidRows		: 'Het aantal rijen moet een getal zijn groter dan 0.',
		invalidCols		: 'Het aantal kolommen moet een getal zijn groter dan 0.',
		invalidBorder	: 'De rand breedte moet een getal zijn.',
		invalidWidth	: 'De tabel breedte moet een getal zijn.',
		invalidHeight	: 'De tabel hoogte moet een getal zijn.',
		invalidCellSpacing	: 'Afstand tussen cellen moet een getal zijn.',
		invalidCellPadding	: 'Ruimte in de cel moet een getal zijn.',

		cell :
		{
			menu			: 'Cel',
			insertBefore	: 'Voeg cel in voor',
			insertAfter		: 'Voeg cel in achter',
			deleteCell		: 'Cellen verwijderen',
			merge			: 'Cellen samenvoegen',
			mergeRight		: 'Voeg samen naar rechts',
			mergeDown		: 'Voeg samen naar beneden',
			splitHorizontal	: 'Splits cellen horizontaal',
			splitVertical	: 'Splits cellen verticaal',
			title			: 'Cel eigenschappen',
			cellType		: 'Cel type',
			rowSpan			: 'Rijen samenvoegen',
			colSpan			: 'Kolommen samenvoegen',
			wordWrap		: 'Automatische terugloop',
			hAlign			: 'Horizontale uitlijning',
			vAlign			: 'Verticale uitlijning',
			alignTop		: 'Boven',
			alignMiddle		: 'Midden',
			alignBottom		: 'Onder',
			alignBaseline	: 'Basislijn',
			bgColor			: 'Achtergrondkleur',
			borderColor		: 'Kleur rand',
			data			: 'Inhoud',
			header			: 'Kop',
			yes				: 'Ja',
			no				: 'Nee',
			invalidWidth	: 'De celbreedte moet een getal zijn.',
			invalidHeight	: 'De celhoogte moet een getal zijn.',
			invalidRowSpan	: 'Rijen samenvoegen moet een heel getal zijn.',
			invalidColSpan	: 'Kolommen samenvoegen moet een heel getal zijn.',
			chooseColor		: 'Kies'
		},

		row :
		{
			menu			: 'Rij',
			insertBefore	: 'Voeg rij in voor',
			insertAfter		: 'Voeg rij in achter',
			deleteRow		: 'Rijen verwijderen'
		},

		column :
		{
			menu			: 'Kolom',
			insertBefore	: 'Voeg kolom in voor',
			insertAfter		: 'Voeg kolom in achter',
			deleteColumn	: 'Kolommen verwijderen'
		}
	},

	// Button Dialog.
	button :
	{
		title		: 'Eigenschappen knop',
		text		: 'Tekst (waarde)',
		type		: 'Soort',
		typeBtn		: 'Knop',
		typeSbm		: 'Versturen',
		typeRst		: 'Leegmaken'
	},

	// Checkbox and Radio Button Dialogs.
	checkboxAndRadio :
	{
		checkboxTitle : 'Eigenschappen aanvinkvakje',
		radioTitle	: 'Eigenschappen selectievakje',
		value		: 'Waarde',
		selected	: 'Geselecteerd'
	},

	// Form Dialog.
	form :
	{
		title		: 'Eigenschappen formulier',
		menu		: 'Eigenschappen formulier',
		action		: 'Actie',
		method		: 'Methode',
		encoding	: 'Codering'
	},

	// Select Field Dialog.
	select :
	{
		title		: 'Eigenschappen selectieveld',
		selectInfo	: 'Informatie',
		opAvail		: 'Beschikbare opties',
		value		: 'Waarde',
		size		: 'Grootte',
		lines		: 'Regels',
		chkMulti	: 'Gecombineerde selecties toestaan',
		opText		: 'Tekst',
		opValue		: 'Waarde',
		btnAdd		: 'Toevoegen',
		btnModify	: 'Wijzigen',
		btnUp		: 'Omhoog',
		btnDown		: 'Omlaag',
		btnSetValue : 'Als geselecteerde waarde instellen',
		btnDelete	: 'Verwijderen'
	},

	// Textarea Dialog.
	textarea :
	{
		title		: 'Eigenschappen tekstvak',
		cols		: 'Kolommen',
		rows		: 'Rijen'
	},

	// Text Field Dialog.
	textfield :
	{
		title		: 'Eigenschappen tekstveld',
		name		: 'Naam',
		value		: 'Waarde',
		charWidth	: 'Breedte (tekens)',
		maxChars	: 'Maximum aantal tekens',
		type		: 'Soort',
		typeText	: 'Tekst',
		typePass	: 'Wachtwoord'
	},

	// Hidden Field Dialog.
	hidden :
	{
		title	: 'Eigenschappen verborgen veld',
		name	: 'Naam',
		value	: 'Waarde'
	},

	// Image Dialog.
	image :
	{
		title		: 'Eigenschappen afbeelding',
		titleButton	: 'Eigenschappen afbeeldingsknop',
		menu		: 'Eigenschappen afbeelding',
		infoTab		: 'Informatie afbeelding',
		btnUpload	: 'Naar server verzenden',
		upload		: 'Upload',
		alt			: 'Alternatieve tekst',
		width		: 'Breedte',
		height		: 'Hoogte',
		lockRatio	: 'Afmetingen vergrendelen',
		unlockRatio	: 'Unlock Ratio', // MISSING
		resetSize	: 'Afmetingen resetten',
		border		: 'Rand',
		hSpace		: 'HSpace',
		vSpace		: 'VSpace',
		align		: 'Uitlijning',
		alignLeft	: 'Links',
		alignRight	: 'Rechts',
		alertUrl	: 'Geef de URL van de afbeelding',
		linkTab		: 'Link',
		button2Img	: 'Wilt u de geselecteerde afbeeldingsknop vervangen door een eenvoudige afbeelding?',
		img2Button	: 'Wilt u de geselecteerde afbeelding vervangen door een afbeeldingsknop?',
		urlMissing	: 'De URL naar de afbeelding ontbreekt.',
		validateWidth	: 'Width must be a whole number.', // MISSING
		validateHeight	: 'Height must be a whole number.', // MISSING
		validateBorder	: 'Border must be a whole number.', // MISSING
		validateHSpace	: 'HSpace must be a whole number.', // MISSING
		validateVSpace	: 'VSpace must be a whole number.' // MISSING
	},

	// Flash Dialog
	flash :
	{
		properties		: 'Eigenschappen Flash',
		propertiesTab	: 'Eigenschappen',
		title			: 'Eigenschappen Flash',
		chkPlay			: 'Automatisch afspelen',
		chkLoop			: 'Herhalen',
		chkMenu			: 'Flashmenu\'s inschakelen',
		chkFull			: 'Schermvullend toestaan',
 		scale			: 'Schaal',
		scaleAll		: 'Alles tonen',
		scaleNoBorder	: 'Geen rand',
		scaleFit		: 'Precies passend',
		access			: 'Script toegang',
		accessAlways	: 'Altijd',
		accessSameDomain: 'Zelfde domeinnaam',
		accessNever		: 'Nooit',
		align			: 'Uitlijning',
		alignLeft		: 'Links',
		alignAbsBottom	: 'Absoluut-onder',
		alignAbsMiddle	: 'Absoluut-midden',
		alignBaseline	: 'Basislijn',
		alignBottom		: 'Beneden',
		alignMiddle		: 'Midden',
		alignRight		: 'Rechts',
		alignTextTop	: 'Boven tekst',
		alignTop		: 'Boven',
		quality			: 'Kwaliteit',
		qualityBest		: 'Beste',
		qualityHigh		: 'Hoog',
		qualityAutoHigh	: 'Automatisch hoog',
		qualityMedium	: 'Gemiddeld',
		qualityAutoLow	: 'Automatisch laag',
		qualityLow		: 'Laag',
		windowModeWindow: 'Venster',
		windowModeOpaque: 'Ondoorzichtig',
		windowModeTransparent : 'Doorzichtig',
		windowMode		: 'Venster modus',
		flashvars		: 'Variabelen voor Flash',
		bgcolor			: 'Achtergrondkleur',
		width			: 'Breedte',
		height			: 'Hoogte',
		hSpace			: 'HSpace',
		vSpace			: 'VSpace',
		validateSrc		: 'Geef de link van de URL',
		validateWidth	: 'De breedte moet een getal zijn.',
		validateHeight	: 'De hoogte moet een getal zijn.',
		validateHSpace	: 'De HSpace moet een getal zijn.',
		validateVSpace	: 'De VSpace moet een getal zijn.'
	},

	// Speller Pages Dialog
	spellCheck :
	{
		toolbar			: 'Spellingscontrole',
		title			: 'Spellingscontrole',
		notAvailable	: 'Excuses, deze dienst is momenteel niet beschikbaar.',
		errorLoading	: 'Er is een fout opgetreden bij het laden van de diesnt: %s.',
		notInDic		: 'Niet in het woordenboek',
		changeTo		: 'Wijzig in',
		btnIgnore		: 'Negeren',
		btnIgnoreAll	: 'Alles negeren',
		btnReplace		: 'Vervangen',
		btnReplaceAll	: 'Alles vervangen',
		btnUndo			: 'Ongedaan maken',
		noSuggestions	: '-Geen suggesties-',
		progress		: 'Bezig met spellingscontrole...',
		noMispell		: 'Klaar met spellingscontrole: geen fouten gevonden',
		noChanges		: 'Klaar met spellingscontrole: geen woorden aangepast',
		oneChange		: 'Klaar met spellingscontrole: één woord aangepast',
		manyChanges		: 'Klaar met spellingscontrole: %1 woorden aangepast',
		ieSpellDownload	: 'De spellingscontrole niet geïnstalleerd. Wilt u deze nu downloaden?'
	},

	smiley :
	{
		toolbar	: 'Smiley',
		title	: 'Smiley invoegen'
	},

	elementsPath :
	{
		eleLabel : 'Elements path', // MISSING
		eleTitle : '%1 element'
	},

	numberedlist	: 'Genummerde lijst',
	bulletedlist	: 'Opsomming',
	indent			: 'Inspringen vergroten',
	outdent			: 'Inspringen verkleinen',

	justify :
	{
		left	: 'Links uitlijnen',
		center	: 'Centreren',
		right	: 'Rechts uitlijnen',
		block	: 'Uitvullen'
	},

	blockquote : 'Citaatblok',

	clipboard :
	{
		title		: 'Plakken',
		cutError	: 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl+X van het toetsenbord.',
		copyError	: 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl+C van het toetsenbord.',
		pasteMsg	: 'Plak de tekst in het volgende vak gebruik makend van uw toetsenbord (Ctrl+V) en klik op OK.',
		securityMsg	: 'Door de beveiligingsinstellingen van uw browser is het niet mogelijk om direct vanuit het klembord in de editor te plakken. Middels opnieuw plakken in dit venster kunt u de tekst alsnog plakken in de editor.',
		pasteArea	: 'Paste Area' // MISSING
	},

	pastefromword :
	{
		confirmCleanup	: 'De tekst die u plakte lijkt gekopieerd te zijn vanuit Word. Wilt u de tekst opschonen voordat deze geplakt wordt?',
		toolbar			: 'Plakken als Word-gegevens',
		title			: 'Plakken als Word-gegevens',
		error			: 'Het was niet mogelijk om de geplakte tekst op te schonen door een interne fout'
	},

	pasteText :
	{
		button	: 'Plakken als platte tekst',
		title	: 'Plakken als platte tekst'
	},

	templates :
	{
		button			: 'Sjablonen',
		title			: 'Inhoud sjabonen',
		insertOption	: 'Vervang de huidige inhoud',
		selectPromptMsg	: 'Selecteer het sjabloon dat in de editor geopend moet worden (de actuele inhoud gaat verloren):',
		emptyListMsg	: '(Geen sjablonen gedefinieerd)'
	},

	showBlocks : 'Toon blokken',

	stylesCombo :
	{
		label		: 'Stijl',
		panelTitle	: 'Formatting Styles', // MISSING
		panelTitle1	: 'Blok stijlen',
		panelTitle2	: 'In-line stijlen',
		panelTitle3	: 'Object stijlen'
	},

	format :
	{
		label		: 'Opmaak',
		panelTitle	: 'Opmaak',

		tag_p		: 'Normaal',
		tag_pre		: 'Met opmaak',
		tag_address	: 'Adres',
		tag_h1		: 'Kop 1',
		tag_h2		: 'Kop 2',
		tag_h3		: 'Kop 3',
		tag_h4		: 'Kop 4',
		tag_h5		: 'Kop 5',
		tag_h6		: 'Kop 6',
		tag_div		: 'Normaal (DIV)'
	},

	div :
	{
		title				: 'Div aanmaken',
		toolbar				: 'Div aanmaken',
		cssClassInputLabel	: 'Stylesheet klassen',
		styleSelectLabel	: 'Stijl',
		IdInputLabel		: 'Id',
		languageCodeInputLabel	: ' Taalcode',
		inlineStyleInputLabel	: 'Inline stijl',
		advisoryTitleInputLabel	: 'informatieve titel',
		langDirLabel		: 'Schrijfrichting',
		langDirLTRLabel		: 'Links naar rechts (LTR)',
		langDirRTLLabel		: 'Rechts naar links (RTL)',
		edit				: 'Div wijzigen',
		remove				: 'Div verwijderen'
  	},

	font :
	{
		label		: 'Lettertype',
		voiceLabel	: 'Lettertype',
		panelTitle	: 'Lettertype'
	},

	fontSize :
	{
		label		: 'Lettergrootte',
		voiceLabel	: 'Lettergrootte',
		panelTitle	: 'Lettergrootte'
	},

	colorButton :
	{
		textColorTitle	: 'Tekstkleur',
		bgColorTitle	: 'Achtergrondkleur',
		panelTitle		: 'Colors', // MISSING
		auto			: 'Automatisch',
		more			: 'Meer kleuren...'
	},

	colors :
	{
		'000' : 'Zwart',
		'800000' : 'Kastanjebruin',
		'8B4513' : 'Chocoladebruin',
		'2F4F4F' : 'Donkerleigrijs',
		'008080' : 'Blauwgroen',
		'000080' : 'Marine',
		'4B0082' : 'Indigo',
		'696969' : 'Donkergrijs',
		'B22222' : 'Baksteen',
		'A52A2A' : 'Bruin',
		'DAA520' : 'Donkergeel',
		'006400' : 'Donkergroen',
		'40E0D0' : 'Turquoise',
		'0000CD' : 'Middenblauw',
		'800080' : 'Paars',
		'808080' : 'Grijs',
		'F00' : 'Rood',
		'FF8C00' : 'Donkeroranje',
		'FFD700' : 'Goud',
		'008000' : 'Groen',
		'0FF' : 'Cyaan',
		'00F' : 'Blauw',
		'EE82EE' : 'Violet',
		'A9A9A9' : 'Donkergrijs',
		'FFA07A' : 'Lichtzalm',
		'FFA500' : 'Oranje',
		'FFFF00' : 'Geel',
		'00FF00' : 'Felgroen',
		'AFEEEE' : 'Lichtturquoise',
		'ADD8E6' : 'Lichtblauw',
		'DDA0DD' : 'Pruim',
		'D3D3D3' : 'Lichtgrijs',
		'FFF0F5' : 'Linnen',
		'FAEBD7' : 'Ivoor',
		'FFFFE0' : 'Lichtgeel',
		'F0FFF0' : 'Honingdauw',
		'F0FFFF' : 'Azuur',
		'F0F8FF' : 'Licht hemelsblauw',
		'E6E6FA' : 'Lavendel',
		'FFF' : 'Wit'
	},

	scayt :
	{
		title			: 'Controleer de spelling tijdens het typen',
		enable			: 'SCAYT inschakelen',
		disable			: 'SCAYT uitschakelen',
		about			: 'Over SCAYT',
		toggle			: 'SCAYT in/uitschakelen',
		options			: 'Opties',
		langs			: 'Talen',
		moreSuggestions	: 'Meer suggesties',
		ignore			: 'Negeren',
		ignoreAll		: 'Alles negeren',
		addWord			: 'Woord toevoegen',
		emptyDic		: 'De naam van het woordenboek mag niet leeg zijn.',
		optionsTab		: 'Opties',
		languagesTab	: 'Talen',
		dictionariesTab	: 'Woordenboeken',
		aboutTab		: 'Over'
	},

	about :
	{
		title		: 'Over CKEditor',
		dlgTitle	: 'Over CKEditor',
		moreInfo	: 'Voor licentie informatie, bezoek onze website:',
		copy		: 'Copyright © $1. Alle rechten voorbehouden.'
	},

	maximize : 'Maximaliseren',
	minimize : 'Minimaliseren',

	fakeobjects :
	{
		anchor	: 'Anker',
		flash	: 'Flash animatie',
		div		: 'Pagina einde',
		unknown	: 'Onbekend object'
	},

	resize : 'Sleep om te herschalen',

	colordialog :
	{
		title		: 'Selecteer kleur',
		highlight	: 'Actief',
		selected	: 'Geselecteerd',
		clear		: 'Wissen'
	},

	toolbarCollapse	: 'Werkbalk inklappen',
	toolbarExpand	: 'Werkbalk uitklappen'
};


text:
var User = function(id, name, address, fbId, avatar, lang){
    this._id = '';
    this.id = id;
    this.name = name;
    this.avatar = avatar;
    this.address = address;
    this.fbId = fbId;
    this.room = '';     // current room id
    this.score = 0;
    this.totalScore = 0;
    this.lang = lang;
    this.isAutoBot = false;

    this.toString = function () {
        return this.id + '#' + name;
    }
};

module.exports = User;

redpajama_set_name: RedPajamaGithub


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

	<string name="app_name">SAW Monitor Tile</string>
	<string name="msg_detected">SYSTEM_ALERT_WINDOW Detected</string>
	<string name="msg_requested">You %1$s %2$s!</string>
	<string name="msg_upgraded">upgraded</string>
	<string name="msg_installed">installed</string>
	<string name="msg_whitelist">Whitelist</string>
	<string name="msg_settings">Settings</string>
	<string name="msg_enable">Enable monitoring</string>
	<string name="app_name_short">SAW Monitor</string>

</resources>


text:
package org.asciicerebrum.neocortexengine.domain.core.particles;

/**
 *
 * @author species8472
 */
public class AdvancementNumber extends LongParticle {

    /**
     * Constant for adv number 0.
     */
    public static final AdvancementNumber ADV_NO_0 = new AdvancementNumber(0L);

    /**
     * Constant for adv number 1.
     */
    public static final AdvancementNumber ADV_NO_1 = new AdvancementNumber(1L);

    /**
     * Constant for adv number 2.
     */
    public static final AdvancementNumber ADV_NO_2 = new AdvancementNumber(2L);

    /**
     * Constant for adv number 3.
     */
    public static final AdvancementNumber ADV_NO_3 = new AdvancementNumber(3L);

    /**
     * Constant for adv number 4.
     */
    public static final AdvancementNumber ADV_NO_4 = new AdvancementNumber(4L);

    /**
     * Constant for adv number 5.
     */
    public static final AdvancementNumber ADV_NO_5 = new AdvancementNumber(5L);

    /**
     * Constant for adv number 6.
     */
    public static final AdvancementNumber ADV_NO_6 = new AdvancementNumber(6L);

    /**
     * Constant for adv number 7.
     */
    public static final AdvancementNumber ADV_NO_7 = new AdvancementNumber(7L);

    /**
     * Constant for adv number 8.
     */
    public static final AdvancementNumber ADV_NO_8 = new AdvancementNumber(8L);

    /**
     * Constant for adv number 9.
     */
    public static final AdvancementNumber ADV_NO_9 = new AdvancementNumber(9L);

    /**
     * Constant for adv number 10.
     */
    public static final AdvancementNumber ADV_NO_10
            = new AdvancementNumber(10L);

    /**
     * Constant for adv number 11.
     */
    public static final AdvancementNumber ADV_NO_11
            = new AdvancementNumber(11L);

    /**
     * Constant for adv number 12.
     */
    public static final AdvancementNumber ADV_NO_12
            = new AdvancementNumber(12L);

    /**
     * Constant for adv number 13.
     */
    public static final AdvancementNumber ADV_NO_13
            = new AdvancementNumber(13L);

    /**
     * Constant for adv number 14.
     */
    public static final AdvancementNumber ADV_NO_14
            = new AdvancementNumber(14L);

    /**
     * Constant for adv number 15.
     */
    public static final AdvancementNumber ADV_NO_15
            = new AdvancementNumber(15L);

    /**
     * Constant for adv number 16.
     */
    public static final AdvancementNumber ADV_NO_16
            = new AdvancementNumber(16L);

    /**
     * Constant for adv number 17.
     */
    public static final AdvancementNumber ADV_NO_17
            = new AdvancementNumber(17L);

    /**
     * Constant for adv number 18.
     */
    public static final AdvancementNumber ADV_NO_18
            = new AdvancementNumber(18L);

    /**
     * Constant for adv number 19.
     */
    public static final AdvancementNumber ADV_NO_19
            = new AdvancementNumber(19L);

    /**
     * Constructs the adv number from a string.
     *
     * @param advNumberString the adv number as string.
     */
    public AdvancementNumber(final String advNumberString) {
        this.setValue(advNumberString);
    }

    /**
     * Constructs the adv number from a long.
     *
     * @param advNumberLong the adv number as long.
     */
    public AdvancementNumber(final long advNumberLong) {
        this.setValue(advNumberLong);
    }

    /**
     * Constructs the adv number from a default value.
     *
     */
    public AdvancementNumber() {
    }

    /**
     *
     * @param advNumberString the adv number.
     */
    public final void setValue(final String advNumberString) {
        super.setValue(Long.parseLong(advNumberString));
    }

    @Override
    public final boolean equals(final Object o) {
        if (!(o instanceof AdvancementNumber)) {
            return false;
        }
        return this.equalsHelper(o);
    }

    @Override
    public final int hashCode() {
        return this.hashCodeHelper();
    }

    @Override
    public final LongParticle getNewInstanceOfSameType() {
        return new AdvancementNumber();
    }
}


text:
import { fork } from 'redux-saga/effects'
import { watchLoginUserRequest, watchLogoutUserRequest, watchChangePasswordRequest } from './user'
import { watchLoadUsersRequest, watchAddUserRequest, watchGetUserRequest, watchUpdateUserRequest, watchDeleteUserRequest } from './users'
import { watchShowMessageRequest } from './messages'

export default function* rootSaga() {
  yield [
    fork(watchLoginUserRequest),
    fork(watchLogoutUserRequest),
    fork(watchChangePasswordRequest),
    fork(watchLoadUsersRequest),
    fork(watchAddUserRequest),
    fork(watchGetUserRequest),
    fork(watchUpdateUserRequest),
    fork(watchDeleteUserRequest),
    fork(watchShowMessageRequest),
  ]
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Bootstrap Grid - SB Admin</title>

    <link href="css/bootstrap.css" rel="stylesheet">

    <link href="css/sb-admin.css" rel="stylesheet">
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">

          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            Toggle navigation

          </button>
          SB Admin

 Dashboard

 Charts

 Tables

 Forms

 Typography

 Bootstrap Elements

 Bootstrap Grid

 Blank Page

               Dropdown

Dropdown Item

Another Item

Third Item

Last Item

               Messages 7

7 New Messages

                    John Smith:
                    Hey there, I wanted to ask you something...
                     4:34 PM

                    John Smith:
                    Hey there, I wanted to ask you something...
                     4:34 PM

                    John Smith:
                    Hey there, I wanted to ask you something...
                     4:34 PM

View Inbox 7

               Alerts 3

Default Default

Primary Primary

Success Success

Info Info

Warning Warning

Danger Danger

View All

               John Smith

 Profile

 Inbox 7

 Settings

 Log Out

Bootstrap Grid Built-In Bootstrap Grid

 Dashboard

 Bootstrap Grid

              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
              Be sure to visit Bootstrap's grid documentation for more information.

                .col-lg-12

                .col-lg-6

                .col-lg-6

                .col-lg-4

                .col-lg-4

                .col-lg-4

                .col-lg-3

                .col-lg-3

                .col-lg-3

                .col-lg-3

                .col-lg-2

                .col-lg-2

                .col-lg-2

                .col-lg-2

                .col-lg-2

                .col-lg-2

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-1

                .col-lg-8

                .col-lg-4

                .col-lg-3

                .col-lg-6

                .col-lg-3


text:
[project page](https://github.com/IdentityServer/IdentityServer2/wiki)

Thinktecture IdentityServer is a light-weight security token service built with .NET 4.5, MVC 4, Web API and WCF.

**Status: This project is no longer maintained.**

## High level features

- Multiple protocols support (WS-Trust, WS-Federation, OAuth2, HTTP GET)
- Multiple token support (SAML 1.1/2.0, JWT)
- Out of the box integration with ASP.NET membership, roles and profile
- Can be integrated with arbitrary account and attribute stores
- Support for username/password and client certificates authentication
- Support for WS-Federation metadata
- Support for WS-Trust identity delegation
- Extensibility points to customize configuration and user management handling


text:
"# Smart-Game-Object"
# Smart-Game-Object


text:
package org.jasig.portlet.calendar.util;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ViewRendererServlet;
import org.springframework.web.servlet.view.AbstractView;

public class MockView extends AbstractView {

  /** Default content type. Copied from AbstractView. */
  private static final String DEFAULT_CONTENT_TYPE = "text/html;charset=ISO-8859-1";

  private Map<String, Object> model;

  @Override
  public String getContentType() {
    return DEFAULT_CONTENT_TYPE;
  }

  @Override
  protected void renderMergedOutputModel(
      Map<String, Object> model, HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    this.model = model;

    System.out.println(request.getAttribute(ViewRendererServlet.MODEL_ATTRIBUTE));
  }

  public Map<String, Object> getModel() {
    if (model == null) {
      return new HashMap<String, Object>();
    }
    return model;
  }
}


text:
@implementation WLCHomeDataTool

+(void)getStatusesWithSinceId:(long long)sinceId maxId:(long long)maxId success:(void (^)(WLCStatusesResult *))success failure:(void (^)(NSError *))failure {

    NSString *urlStr = @"https://api.weibo.com/2/statuses/home_timeline.json";
    WLCAccessToken *access = [WLCAccessTool readAccessFromLocal];

    NSMutableDictionary *parameter = [NSMutableDictionary dictionary];
    parameter[@"access_token"] = access.access_token;
    parameter[@"since_id"] = @(sinceId);

    [WLCBaseDataTool HTTPRequestWithMethod:@"GET" andURL:urlStr parameters:parameter classs:[WLCStatusesResult class] success:success failure:failure];

}

+ (void)getMoreStatusesWithSinceId:(long long)sinceId maxId:(long long)maxId success:(void (^)(WLCStatusesResult *))success failure:(void (^)(NSError *))failure {

    NSString *urlStr = @"https://api.weibo.com/2/statuses/home_timeline.json";
    WLCAccessToken *access = [WLCAccessTool readAccessFromLocal];

    NSMutableDictionary *parameter = [NSMutableDictionary dictionary];
    parameter[@"access_token"] = access.access_token;
    //不获取相同内容的微博
    parameter[@"max_id"] = @(maxId);

    [WLCBaseDataTool HTTPRequestWithMethod:@"GET" andURL:urlStr parameters:parameter classs:[WLCStatusesResult class] success:success failure:failure];
}

+ (void)getUserInfoWithUid:(NSString *)uid success:(void (^)(WLCUser *))success failure:(void (^)(NSError *))failure {

    NSString *urlStr = @"https://api.weibo.com/2/users/show.json";
    WLCAccessToken *access = [WLCAccessTool readAccessFromLocal];

    NSMutableDictionary *parameter = [NSMutableDictionary dictionary];
    parameter[@"access_token"] = access.access_token;
    parameter[@"uid"] = uid;

    [WLCBaseDataTool HTTPRequestWithMethod:@"GET" andURL:urlStr parameters:parameter classs:[WLCUser class] success:success failure:failure];
}

+(void)getUnreadMessageNumberWithUid:(NSString *)uid success:(void (^)(WLCStatusesResult *))success failure:(void (^)(NSError *))failure {
    NSString *urlStr = @"https://rm.api.weibo.com/2/remind/unread_count.json";
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    WLCAccessToken *access = [WLCAccessTool readAccessFromLocal];
    parameters[@"access_token"] = access.access_token;
    parameters[@"uid"] = uid;

    [WLCBaseDataTool HTTPRequestWithMethod:@"GET" andURL:urlStr parameters:parameters classs:[WLCStatusesResult class] success:success failure:failure];
}

+ (void)downloadSingleImageWithModelArray:(NSArray *)statusModel finished:(void (^)())finish{
    for (WLCStatuses *status in statusModel) {
        if (status.pic_urls.count == 1 || status.retweeted_status.pic_urls.count == 1) {

//            NSLog(@"外面的%@",status.picturesURLs.lastObject);
            dispatch_group_t group = dispatch_group_create();
            dispatch_group_enter(group);
            NSURL *statusURL = [[NSURL alloc]init];
            if (status.pic_urls.count == 1 ) {
                statusURL = status.picturesURLs.lastObject;
            } else {
                statusURL = status.retweeted_status.picturesURLs.lastObject;
            }
            [[SDWebImageManager sharedManager]downloadImageWithURL:statusURL options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
                //单张图片下载成功
                dispatch_group_leave(group);

                //                    [self.tableView reloadData];

            }];

            dispatch_group_notify(group, dispatch_get_main_queue(), ^{
                //完成
                if (finish) {
                    finish();
                }
            });
        }
    }

}

@end


text:
/**
 * Created by IntelliJ IDEA.
 * User: Jean-Guillaume Fages
 * Date: 13/02/13
 * Time: 22:08
 */

package org.chocosolver.graphsolver.variables;

import org.chocosolver.solver.ICause;
import org.chocosolver.solver.exception.ContradictionException;
import org.chocosolver.util.objects.setDataStructures.ISet;

public interface IncidentSet {

	ISet getPotSet(GraphVar graph, int i);

	ISet getMandSet(GraphVar graph, int i);

	boolean enforce(GraphVar g, int from, int to, ICause cause) throws ContradictionException;

	boolean remove(GraphVar g, int from, int to, ICause cause) throws ContradictionException;

	class SuccOrNeighSet implements IncidentSet {

		@Override
		public ISet getPotSet(GraphVar graph, int i) {
			return graph.getPotSuccOrNeighOf(i);
		}

		@Override
		public ISet getMandSet(GraphVar graph, int i) {
			return graph.getMandSuccOrNeighOf(i);
		}

		@Override
		public boolean enforce(GraphVar g, int from, int to, ICause cause) throws ContradictionException {
			return g.enforceArc(from, to, cause);
		}

		@Override
		public boolean remove(GraphVar g, int from, int to, ICause cause) throws ContradictionException {
			return g.removeArc(from, to, cause);
		}
	}

	class PredOrNeighSet implements IncidentSet {
		@Override
		public ISet getPotSet(GraphVar graph, int i) {
			return graph.getPotPredOrNeighOf(i);
		}

		@Override
		public ISet getMandSet(GraphVar graph, int i) {
			return graph.getMandPredOrNeighOf(i);
		}

		@Override
		public boolean enforce(GraphVar g, int from, int to, ICause cause) throws ContradictionException {
			return g.enforceArc(to, from, cause);
		}

		@Override
		public boolean remove(GraphVar g, int from, int to, ICause cause) throws ContradictionException {
			return g.removeArc(to, from, cause);
		}
	}
}


text:
/*
 * @author David Gay
 */
#ifndef ADC_H
#define ADC_H

#include "Atm128Adc.h"

/* Read and ReadNow share client ids */
#define UQ_ADC_READ "adc.read"
#define UQ_ADC_READNOW UQ_ADC_READ
#define UQ_ADC_READSTREAM "adc.readstream"

#endif


text:
package org.rdgie.digitalarchive.impl;

import org.rdgie.digitalarchive.service.FsServiceConfig;

public class DefaultFsServiceConfig implements FsServiceConfig
{
	private int _tmbWidth;

	public void setTmbWidth(int tmbWidth)
	{
		_tmbWidth = tmbWidth;
	}

	@Override
	public int getTmbWidth()
	{
		return _tmbWidth;
	}
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Approve.RuleCenter;
using System.Data;

public partial class Government_AppXZYJS_QueryZSTJ : System.Web.UI.Page
{
    private RCenter rc = new RCenter();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ShowInfo(DeptId);
        }
    }
    private void ShowInfo(string deptId)
    {
        if (string.IsNullOrEmpty(deptId))
            deptId = "51";
        string sql = string.Format("select FNumber,FName from CF_Sys_ManageDept where FNumber='{0}' or FParentId='{0}'",deptId);
        DataTable table = rc.GetTable(sql);
        List<YWItem> listItem = new List<YWItem>();
        List<ManageDept> listDept = new List<ManageDept>();
        List<ManageDept> listSource = new List<ManageDept>();
        if (table != null && table.Rows.Count > 0)
        {
            for (int i = 0; i < table.Rows.Count; i++)
            {
                DataRow row = table.Rows[i];
                listDept.Add(new ManageDept() { FNumber = row["FNumber"].ToString(), FName = row["FName"].ToString() });
            }
        }
        sql = @"select  XMSD,
                        sum(dbo.IsNumberOrResultNum(JSGMMJ)) JSGMMJ,
                        sum(dbo.IsNumberOrResultNum(JSMJ)) JSMJ,
                        sum(case SFSW when 1 then 1 else 0 end) SFSW,
                        sum(case ProjectType when 1 then 1 else 0 end) FangJian,
                        sum(case ProjectType when 2 then 1 else 0 end) ShiZheng
              from YW_XZYJS group by XMSD";
        DataTable dt = rc.GetTable(sql);
        if (dt != null && dt.Rows.Count > 0)
        {
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                DataRow row = dt.Rows[i];
                YWItem item = new YWItem();
                item.XMSD = row["XMSD"].ToString();
                item.JSGMMJ = Convert.ToDouble(row["JSGMMJ"]);
                item.JSMJ = Convert.ToDouble(row["JSMJ"]);
                item.SFSW = Convert.ToInt32(row["SFSW"]);
                item.FangJian = Convert.ToInt32(row["FangJian"]);
                item.ShiZheng = Convert.ToInt32(row["ShiZheng"]);
                listItem.Add(item);
            }
        }
        if (listDept.Any())
        {
            listDept.ForEach(item =>
            {
                var listData = listItem.FindAll(x => x.XMSD == item.FNumber);
                if (listData.Count > 0)
                {
                    ManageDept dept = new ManageDept();
                    dept.FNumber = item.FNumber;
                    dept.FName = item.FName;
                    dept.JSGMMJ = listData.Sum(x => x.JSGMMJ);
                    dept.JSMJ = listData.Sum(x => x.JSMJ);
                    dept.SFSW = listData.Sum(x => x.SFSW);
                    dept.FangJian = listData.Sum(x => x.FangJian);
                    dept.ShiZheng = listData.Sum(x => x.ShiZheng);
                    listSource.Add(dept);
                }
                else {
                    ManageDept dept = new ManageDept();
                    dept.FNumber = item.FNumber;
                    dept.FName = item.FName;
                    dept.JSGMMJ = 0.00;
                    dept.JSMJ = 0.00;
                    dept.SFSW = 0;
                    listSource.Add(dept);
                }
            });
            listSource = listSource.OrderBy(x => x.FNumber).ToList();
            ManageDept dept1 = new ManageDept();
            dept1.FName = "合计";
            dept1.JSGMMJ = listSource.Sum(x => x.JSGMMJ);
            dept1.JSMJ = listSource.Sum(x => x.JSMJ);
            dept1.SFSW = listSource.Sum(x => x.SFSW);
            dept1.FangJian = listSource.Sum(x => x.FangJian);
            dept1.ShiZheng = listSource.Sum(x => x.ShiZheng);
            listSource.Add(dept1);
        }
        dgList.DataSource = listSource;
        dgList.DataBind();
    }
    private string DeptId {
        get {
           return Request.QueryString["deptId"];
        }
    }
    protected void dgList_ItemDataBound(object sender, DataGridItemEventArgs e)
    {

        if (e.Item.ItemIndex > -1)
        {
            e.Item.Cells[0].Text = (e.Item.ItemIndex + 1).ToString();
            if (string.IsNullOrEmpty(DeptId) && e.Item.ItemIndex > 0)
            {
                string deptId = EConvert.ToString(DataBinder.Eval(e.Item.DataItem, "FNumber"));
                if (!string.IsNullOrEmpty(deptId))
                    e.Item.Cells[1].Text = string.Format("{0}", e.Item.Cells[1].Text, deptId);
            }
        }
    }
}
public class ManageDept
{
    public string FNumber { get; set; }
    public string FName { get; set; }
    public string XMSD { get; set; }
    public double JSGMMJ { get; set; }
    public double JSMJ { get; set; }
    public int SFSW { get; set; }
    public int FangJian { get; set; }
    public int ShiZheng { get; set; }
}
public class YWItem
{
    public string XMSD { get; set; }
    public double JSGMMJ { get; set; }
    public double JSMJ { get; set; }
    public int SFSW { get; set; }
    public int FangJian { get; set; }
    public int ShiZheng { get; set; }
}


text:
/*
 * $Id$
 */
package lia.util.net.copy.monitoring.lisa;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.logging.Logger;
import java.util.regex.Pattern;

/**
 * This class was taken more or less from MonALISA
 *
 * @author Ciprian Dobre
 * @author ramiro
 */

// FIXME - UPDATE!!! this class with latest version from ML!!!
public class cmdExec {

    /**
     * structure for command output
     */
    public static CommandResult NullCommandResult = new CommandResult(null, true);
    private static cmdExec _instance = null;
    public final transient Logger logger = Logger.getLogger("monalisa.util.cmdExec");
    public String full_cmd;
    public Process pro;
    protected LinkedList streams = null;
    protected LinkedList streamsReal = null;

    //protected boolean isError = false;

    /* These varibles are set to true when we want to destroy the streams pool */
    protected boolean stopStreams = false;
    protected boolean stopStreamsReal = false;
    String osname;
    String exehome = "";

    private cmdExec() {
        osname = System.getProperty("os.name");
        exehome = System.getProperty("user.home");
        streams = new LinkedList();
        streamsReal = new LinkedList();
    }

    public static synchronized cmdExec getInstance() {
        if (_instance == null)
            _instance = new cmdExec();
        return _instance;
    }

    public void setCmd(String cmd) {
        osname = System.getProperty("os.name");
        full_cmd = cmd; // local
    }

    public BufferedReader procOutput(String cmd) {
        try {

            if (osname.startsWith("Linux") || osname.startsWith("Mac")) {
                pro =
                        Runtime.getRuntime().exec(
                                new String[]{"/bin/sh", "-c", cmd});
            } else if (osname.startsWith("Windows")) {
                pro = Runtime.getRuntime().exec(exehome + cmd);
            }

            InputStream out = pro.getInputStream();
            BufferedReader br = new BufferedReader(new InputStreamReader(out));
            BufferedReader err = new BufferedReader(new InputStreamReader(pro.getErrorStream()));

            String buffer = "";
            String ret = "";
            while ((buffer = err.readLine()) != null) {
                ret += buffer + "\n'";
            }

            if (ret.length() != 0) {
                return null;
            }

            return br;

        } catch (Exception e) {
            logger.warning("FAILED to execute cmd = " + exehome + cmd);
            Thread.currentThread().interrupt();
        }

        return null;
    }

    public BufferedReader exeHomeOutput(String cmd) {

        try {
            pro =
                    Runtime.getRuntime().exec(
                            new String[]{"/bin/sh", "-c", exehome + cmd});
            InputStream out = pro.getInputStream();
            BufferedReader br = new BufferedReader(new InputStreamReader(out));

            BufferedReader err = new BufferedReader(new InputStreamReader(pro.getErrorStream()));

            String buffer = "";
            String ret = "";
            while ((buffer = err.readLine()) != null) {
                ret += buffer + "\n'";
            }

            if (ret.length() != 0) {
                return null;
            }
            return br;
        } catch (Exception e) {
            logger.warning("FAILED to execute cmd = " + exehome + cmd);
            Thread.currentThread().interrupt();
        }
        return null;
    }

    public void stopModule() {
        if (this.pro != null)
            this.pro.destroy();
    }

    public BufferedReader readProc(String filePath) {
        try {
            return new BufferedReader(new FileReader(filePath));
        } catch (Exception e) {

            return null;
        }
    }

    public CommandResult executeCommand(String command, String expect) {
        return executeCommand(command, expect, 60 * 1000);
    }

    public CommandResult executeCommand(String command, String expect, long timeout) {

        StreamGobbler output = null;
        StreamGobbler error = null;
        boolean isError = false;
        try {
            String osName = System.getProperty("os.name");
            Process proc = null;

            if (osName.indexOf("Win") != -1) {
                proc = Runtime.getRuntime().exec(command);
            } else if (osName.indexOf("Linux") != -1 || osName.indexOf("Mac") != -1) {
                String[] cmd = new String[3];
                cmd[0] = "/bin/sh";
                cmd[1] = "-c";
                cmd[2] = command;
                proc = Runtime.getRuntime().exec(cmd);
            } else {
                isError = true;
                return null;
            }

            error = getStreamGobbler();
            output = getStreamGobbler();

            // any error message?
            error.setInputStream(proc.getErrorStream());

            // any output?
            output.setInputStream(proc.getInputStream());

            String out = "";

            // any error???
            long startTime = System.currentTimeMillis();
            while (true) {
                try {
                    out = error.getOutput();
                    if (out != null && out.length() != 0 && proc.exitValue() != 0) {
                        isError = true;
                        break;
                    }
                } catch (IllegalThreadStateException ex) {
                }
                if (expect != null) {
                    out = output.getOutput();
                    if (out != null && out.length() != 0 && out.indexOf(expect) != -1) {
                        isError = false;
                        break;
                    }
                }
                long endTime = System.currentTimeMillis();
                if (endTime - startTime > timeout) {
                    isError = true;
                    break;
                }
                Thread.sleep(100);
            }

            proc.destroy();
            proc.waitFor();

            if (out.length() == 0 || proc.exitValue() == 0)
                out = output.getOutput();

            error.stopIt();
            output.stopIt();

            addStreamGobbler(error);
            addStreamGobbler(output);

            error = null;
            output = null;

            return new CommandResult(out, isError);

        } catch (Exception e) {
            e.printStackTrace();

            if (error != null) {
                addStreamGobbler(error);
                error.stopIt();
                error = null;
            }

            if (output != null) {
                addStreamGobbler(output);
                output.stopIt();
                output = null;
            }
            isError = true;
            return new CommandResult("", true);
        }
    }

    public CommandResult executeCommand(String command, Pattern expect) {
        return executeCommand(command, expect, 60 * 1000);
    }

    public CommandResult executeCommand(String command, Pattern expect, long timeout) {

        StreamGobbler output = null;
        StreamGobbler error = null;
        boolean isError = false;
        try {
            String osName = System.getProperty("os.name");
            Process proc = null;

            if (osName.indexOf("Win") != -1) {
                proc = Runtime.getRuntime().exec(command);
            } else if (osName.indexOf("Linux") != -1 || osName.indexOf("Mac") != -1) {
                String[] cmd = new String[3];
                cmd[0] = "/bin/sh";
                cmd[1] = "-c";
                cmd[2] = command;
                proc = Runtime.getRuntime().exec(cmd);
            } else {
                isError = true;
                return null;
            }

            error = getStreamGobbler();
            output = getStreamGobbler();

            // any error message?
            error.setInputStream(proc.getErrorStream());

            // any output?
            output.setInputStream(proc.getInputStream());

            String out = "";

            // any error???
            long startTime = System.currentTimeMillis();
            while (true) {
                try {
                    out = error.getOutput();
                    if (out != null && out.length() != 0 && proc.exitValue() != 0) {
                        isError = true;
                        break;
                    }
                } catch (IllegalThreadStateException ex) {
                }
                if (expect != null) {
                    out = output.getOutput();
                    if (out != null && out.length() != 0) {
                        if (expect.matcher(out).matches()) {
                            isError = false;
                            break;
                        }
                    }
                }
                long endTime = System.currentTimeMillis();
                if (endTime - startTime > timeout) {
                    isError = true;
                    break;
                }
                Thread.sleep(100);
            }

            proc.destroy();
            proc.waitFor();

            if (out.length() == 0 || proc.exitValue() == 0)
                out = output.getOutput();

            error.stopIt();
            output.stopIt();

            addStreamGobbler(error);
            addStreamGobbler(output);

            error = null;
            output = null;

            return new CommandResult(out, isError);

        } catch (Exception e) {
            e.printStackTrace();

            if (error != null) {
                addStreamGobbler(error);
                error.stopIt();
                error = null;
            }

            if (output != null) {
                addStreamGobbler(output);
                output.stopIt();
                output = null;
            }
            return new CommandResult("", true);
        }
    }

    public CommandResult executeCommand(String command, String expect, int howManyTimes) {
        return executeCommand(command, expect, howManyTimes, 60 * 1000);
    }

    public CommandResult executeCommand(String command, String expect, int howManyTimes, long timeout) {

        StreamGobbler output = null;
        StreamGobbler error = null;
        int nr = 0; // how many times the expect string occured
        boolean isError = false;
        try {
            String osName = System.getProperty("os.name");
            Process proc = null;

            if (osName.indexOf("Win") != -1) {
                proc = Runtime.getRuntime().exec(command);
            } else if (osName.indexOf("Linux") != -1 || osName.indexOf("Mac") != -1) {
                String[] cmd = new String[3];
                cmd[0] = "/bin/sh";
                cmd[1] = "-c";
                cmd[2] = command;
                proc = Runtime.getRuntime().exec(cmd);
            } else {
                return NullCommandResult;
            }

            error = getStreamGobbler();
            output = getStreamGobbler();

            error.setInputStream(proc.getErrorStream());

            output.setInputStream(proc.getInputStream());

            String out = "";

            long startTime = System.currentTimeMillis();
            while (true) {
                try {
                    out = error.getOutput();
                    if (out != null && out.length() != 0 && proc.exitValue() != 0) {
                        isError = true;
                        break;
                    }
                } catch (IllegalThreadStateException ex) {
                }
                if (expect != null) {
                    out = output.getOutput();
                    if (out != null && out.length() != 0 && out.indexOf(expect) != -1) {
                        nr = getStringOccurences(out, expect);
                        if (nr >= howManyTimes) {
                            isError = false;
                            break;
                        }
                    }
                }
                long endTime = System.currentTimeMillis();
                if (endTime - startTime > timeout) {
                    isError = true;
                    break;
                }
                Thread.sleep(100);
            }

            proc.destroy();
            proc.waitFor();

            if (out.length() == 0 || proc.exitValue() == 0)
                out = output.getOutput();

            error.stopIt();
            output.stopIt();

            addStreamGobbler(error);
            addStreamGobbler(output);

            error = null;
            output = null;

            return new CommandResult(out, isError);

        } catch (Exception e) {
            e.printStackTrace();

            if (error != null) {
                addStreamGobbler(error);
                error.stopIt();
                error = null;
            }

            if (output != null) {
                addStreamGobbler(output);
                output.stopIt();
                output = null;
            }
            return NullCommandResult;
        }
    }

    protected int getStringOccurences(String text, String token) {

        if (text.indexOf(token) < 0) return 0;
        int nr = 0;
        String str = text;
        while (str.indexOf(token) >= 0) {
            str = str.substring(str.indexOf(token) + token.length());
            nr++;
        }
        return nr;
    }

    public CommandResult executeCommandReality(String command, String expect, String path) {
        return executeCommandReality(command, expect, 60 * 1000, path);
    }

    public CommandResult executeCommandReality(String command, String expect, long timeout, String path) {

        StreamRealGobbler error = null;
        StreamRealGobbler output = null;
        boolean isError = false;
        try {
            String osName = System.getProperty("os.name");
            Process proc = null;

            if (osName.indexOf("Win") != -1) {
                proc = Runtime.getRuntime().exec(command);
            } else if (osName.indexOf("Linux") != -1) {
                String[] cmd = new String[3];
                cmd[0] = "/bin/sh";
                cmd[1] = "-c";
                cmd[2] = command;
                if (path != null && path.length() != 0)
                    proc = Runtime.getRuntime().exec(cmd, new String[]{"PATH=" + path});
                else
                    proc = Runtime.getRuntime().exec(cmd);
            } else {
                return NullCommandResult;
            }

            error = getStreamRealGobbler(timeout);
            output = getStreamRealGobbler(timeout);

            // any error message?
            error.setInputStream(proc.getErrorStream());

            // any output?
            output.setInputStream(proc.getInputStream());

            String out = "";

            // any error???
            long startTime = System.currentTimeMillis();
            boolean timeoutOccured = false;
            while (true) {
                try {
                    out = error.forceAllOutput();
                    if (proc.exitValue() != 0) {
                        isError = true;
                    }
                    break; // also if exitValue did not throw exception than we're done running
                } catch (IllegalThreadStateException ex) {
                }
                if (expect != null) {
                    out = output.forceAllOutput();
                    if (out != null && out.length() != 0 && out.indexOf(expect) != -1) {
                        isError = false;
                        proc.destroy();
                        break;
                    }
                }
                long endTime = System.currentTimeMillis();
                if (endTime - startTime > timeout) {
                    isError = true;
                    timeoutOccured = true;
                    proc.destroy();
                    break;
                }
                Thread.sleep(100);
            }

            if (!timeoutOccured) {
                proc.waitFor();
            } else {
                try {
                    Thread.sleep(2000);
                    proc.getOutputStream().close();
                    proc.getInputStream().close();
                    proc.getErrorStream().close();
                } catch (Exception ex) {
                }
            }

            if (out != null && out.length() == 0 || proc.exitValue() == 0) {
                out = output.forceAllOutput();
            }

            if (timeoutOccured)
                out += "...Timeout";

            error.stopIt();
            output.stopIt();

            addStreamRealGobbler(error);
            addStreamRealGobbler(output);

            error = null;
            output = null;

            return new CommandResult(out, isError);

        } catch (Exception e) {
            e.printStackTrace();

            if (error != null) {
                addStreamRealGobbler(error);
                error.stopIt();
                error = null;
            }

            if (output != null) {
                addStreamRealGobbler(output);
                output.stopIt();
                output = null;
            }
            return NullCommandResult;
        }
    }

    public void executeCommandRealityForFinish(String command, String path) {
        executeCommandRealityForFinish(command, false, path);
    }

    public void executeCommandRealityForFinish(String command, final boolean showOutput, String path) {
        executeCommandRealityForFinish(command, showOutput, 60 * 60 * 1000, path);
    }

    public boolean executeCommandRealityForFinish(String command, final boolean showOutput, long timeout, String path) {

        StreamRealGobbler error = null;
        StreamRealGobbler output = null;
        boolean isError = false;
        try {
            String osName = System.getProperty("os.name");
            Process proc = null;
            if (osName.indexOf("Win") != -1) {
                proc = Runtime.getRuntime().exec(command);
            } else if (osName.indexOf("Linux") != -1) {
                String[] cmd = new String[3];
                cmd[0] = "/bin/sh";
                cmd[1] = "-c";
                cmd[2] = command;
                if (path != null && path.length() != 0)
                    proc = Runtime.getRuntime().exec(cmd, new String[]{"PATH=" + path});
                else
                    proc = Runtime.getRuntime().exec(cmd);
            } else {
                return true;
            }

            if (showOutput) {
                error = getStreamRealGobbler(timeout);
                output = getStreamRealGobbler(timeout);
                error.setProgress(true);
                output.setProgress(true);
                // any error message?
                error.setInputStream(proc.getErrorStream());
                // any output?
                output.setInputStream(proc.getInputStream());
                error.setProgress(false);
                output.setProgress(false);
            }

            long startTime = System.currentTimeMillis();
            boolean timeoutOccured = false;
            while (true) {
                try {
                    if (proc.exitValue() != 0) {
                        isError = true;
                    }
                    break; // also if exitValue did not throw exception than we're done running
                } catch (IllegalThreadStateException ex) {
                }
                long endTime = System.currentTimeMillis();
                if (endTime - startTime > timeout) {
                    isError = true;
                    timeoutOccured = true;
                    proc.destroy();
                    break;
                }
                Thread.sleep(100);
            }

            if (!timeoutOccured) {
                proc.waitFor();
            } else {
                try {
                    Thread.sleep(2000);
                    proc.getOutputStream().close();
                    proc.getInputStream().close();
                    proc.getErrorStream().close();
                } catch (Exception ex) {
                }
            }

            if (showOutput) {
                error.setProgress(false);
                output.setProgress(false);
                error.stopIt();
                output.stopIt();
                addStreamRealGobbler(error);
                addStreamRealGobbler(output);
                error = null;
                output = null;
            }

        } catch (Exception e) {
            e.printStackTrace();
            isError = true;
            if (error != null) {
                addStreamRealGobbler(error);
                error.stopIt();
                error = null;
            }

            if (output != null) {
                addStreamRealGobbler(output);
                output.stopIt();
                output = null;
            }

        }
        return isError;
    }

    public CommandResult executeCommandReality(String command, String expect, int howManyTimes, String path) {
        return executeCommandReality(command, expect, howManyTimes, 60 * 1000, path);
    }

    public CommandResult executeCommandReality(String command, String expect, int howManyTimes, long timeout, String path) {

        StreamRealGobbler error = null;
        StreamRealGobbler output = null;
        boolean isError = false;
        try {
            String osName = System.getProperty("os.name");
            Process proc = null;

            if (osName.indexOf("Win") != -1) {
                proc = Runtime.getRuntime().exec(command);
            } else if (osName.indexOf("Linux") != -1) {
                String[] cmd = new String[3];
                cmd[0] = "/bin/sh";
                cmd[1] = "-c";
                cmd[2] = command;
                if (path != null && path.length() != 0)
                    proc = Runtime.getRuntime().exec(cmd, new String[]{"PATH=" + path});
                else
                    proc = Runtime.getRuntime().exec(cmd);
            } else {
                return NullCommandResult;
            }

            error = getStreamRealGobbler(timeout);
            output = getStreamRealGobbler(timeout);

            error.setInputStream(proc.getErrorStream());

            output.setInputStream(proc.getInputStream());

            String out = "";

            long startTime = System.currentTimeMillis();
            boolean timeoutOccured = false;
            while (true) {
                try {
                    out = error.forceAllOutput();
                    if (out != null && out.length() != 0 && proc.exitValue() != 0) {
                        isError = true;
                    }
                    break;
                } catch (IllegalThreadStateException ex) {
                }
                if (expect != null) {
                    out = output.forceAllOutput();
                    if (out != null && out.length() != 0 && out.indexOf(expect) != -1) {
                        int nr = getStringOccurences(out, expect);
                        if (nr >= howManyTimes) {
                            isError = false;
                            proc.destroy();
                            break;
                        }
                    }
                }
                long endTime = System.currentTimeMillis();
                if (endTime - startTime > timeout) {
                    isError = true;
                    timeoutOccured = true;
                    proc.destroy();
                    break;
                }
                Thread.sleep(100);
            }

            if (!timeoutOccured) {
                proc.waitFor();
            } else {
                try {
                    Thread.sleep(2000);
                    proc.getOutputStream().close();
                    proc.getInputStream().close();
                    proc.getErrorStream().close();
                } catch (Exception ex) {
                }
            }

            if (out != null && out.length() == 0 || proc.exitValue() == 0)
                out = output.forceAllOutput();

            error.stopIt();
            output.stopIt();

            addStreamRealGobbler(error);
            addStreamRealGobbler(output);

            error = null;
            output = null;
            return new CommandResult(out, isError);

        } catch (Exception e) {
            e.printStackTrace();

            if (error != null) {
                addStreamRealGobbler(error);
                error.stopIt();
                error = null;
            }

            if (output != null) {
                addStreamRealGobbler(output);
                output.stopIt();
                output = null;
            }
            return NullCommandResult;
        }
    }

    public StreamGobbler getStreamGobbler() {

        synchronized (streams) {
            if (streams.size() == 0) {
                StreamGobbler stream = new StreamGobbler(null);
                stream.start();
                return stream;
            }
            return (StreamGobbler) streams.removeFirst();
        }
    }

    public void addStreamGobbler(StreamGobbler stream) {

        synchronized (streams) {
            if (!stopStreams)
                streams.addLast(stream);
            else
                stream.stopItForever();
        }
    }

    public StreamRealGobbler getStreamRealGobbler(long timeout) {

        synchronized (streamsReal) {
            if (streamsReal.size() == 0) {
                StreamRealGobbler stream = new StreamRealGobbler(null, timeout);
                stream.start();
                return stream;
            }
            StreamRealGobbler st = (StreamRealGobbler) streamsReal.removeFirst();
            st.setTimeout(timeout);
            return st;
        }
    }

    public void addStreamRealGobbler(StreamRealGobbler stream) {

        synchronized (streamsReal) {
            if (!stopStreamsReal)
                streamsReal.addLast(stream);
            else
                stream.stopItForever();
        }
    }

    public void stopIt() {
        synchronized (streams) {
            stopStreams = true;

            while (streams.size() > 0) {
                StreamGobbler sg = (StreamGobbler) (streams.removeFirst());
                sg.stopItForever();
            }
        }
        synchronized (streamsReal) {
            stopStreamsReal = true;

            while (streamsReal.size() > 0) {
                StreamRealGobbler sg = (StreamRealGobbler) (streamsReal.removeFirst());
                sg.stopItForever();
            }
        }
    }

    public static class CommandResult {
        private final String output;
        private final boolean failed;

        public CommandResult(String output, boolean wasError) {
            this.output = output;
            this.failed = wasError;
        }

        /**
         * @return Returns the output.
         */
        public String getOutput() {
            return output == null ? "" : output;
        }

        /**
         * @return Returns the failed.
         */
        public boolean failed() {
            return failed;
        }

    }

    class StreamGobbler extends Thread {

        InputStream is;
        StringBuilder output;
        boolean stop = false;
        boolean stopForever = false;
        boolean doneReading = false;

        public StreamGobbler(InputStream is) {

            super("Stream Gobler");
            this.is = is;
            this.output = new StringBuilder();
            this.setDaemon(true);
        }

        public void setInputStream(InputStream is) {

            this.is = is;
            output = new StringBuilder();
            stop = false;
            synchronized (this) {
                doneReading = false;
                notify();
            }
        }

        public String getOutput() {
            return output == null ? null : output.toString();
        }

        public synchronized String forceAllOutput() {

            if (!doneReading)
                return null;
            doneReading = false;
            return output == null ? null : output.toString();
        }

        public void stopIt() {

            stop = true;
        }

        public void stopItForever() {
            synchronized (this) {
                stopForever = true;
                notify();
            }
        }

        public void run() {

            while (true) {

                synchronized (this) {
                    while (is == null && !stopForever) {
                        try {
                            wait();
                        } catch (Exception e) {
                        }
                    }
                }

                if (stopForever) {
                    break;
                }

                try {
                    InputStreamReader isr = new InputStreamReader(is);
                    BufferedReader br = new BufferedReader(isr);
                    String line = null;
                    while (!stop && (line = br.readLine()) != null) {
                        output.append(line);
                    }
                    synchronized (this) {
                        doneReading = true;
                    }
                    is.close();
                } catch (Exception ioe) {
                    output = new StringBuilder();
                }
                is = null;
            }
        }
    }

    class StreamRealGobbler extends Thread {

        final char[] buf;
        InputStream is;
        InputStreamReader isr;
        StringBuilder output = new StringBuilder();
        boolean stop = false;
        boolean doneReading = false;
        boolean stopForever = false;

        private Thread thread = null;
        private boolean showProgress = false;

        private long timeout;

        public StreamRealGobbler(InputStream is, long timeout) {

            super("Stream Real Gobler");
            this.timeout = timeout;
            this.is = is;
            this.setDaemon(true);
            buf = new char[32];
        }

        public void setTimeout(long timeout) {
            this.timeout = timeout;
        }

        public void setInputStream(InputStream is) {

            this.is = is;
            output = new StringBuilder();
            stop = false;
            synchronized (buf) {
                doneReading = false;
                buf.notifyAll();
            }
        }

        public void setProgress(boolean showProgress) {
            this.showProgress = showProgress;
        }

        public String getOutput() {

            return output == null ? null : output.toString();
        }

        public String forceAllOutput() {

            if (!doneReading) {
                try {
                    if (!isr.ready()) {
                        return null;
                    }
                } catch (Exception ex) {
                }

                try {
                    thread.interrupt(); // force the thread out of sleep
                } catch (Exception ex) {
                }
                synchronized (buf) {
                    buf.notifyAll();
                }
                // otherwise let's give the output a chance to complete
                long start = System.currentTimeMillis();
                while (!doneReading) {
                    try {
                        Thread.sleep(200);
                    } catch (Exception ex) {
                    }
                    if (doneReading) {
                        return output == null ? null : output.toString();
                    }
                    long now = System.currentTimeMillis();
                    if ((now - start) >= timeout) {
                        return null; // last chance
                    }
                }
            }
            return output == null ? null : output.toString();
        }

        public void stopIt() {
            try {
                is.close();
            } catch (Exception ex) {
            }
            try {
                isr.close();
            } catch (Exception ex) {
            }
            stop = true;
        }

        public void stopItForever() {
            synchronized (buf) {
                stopIt();
                stopForever = true;
                buf.notifyAll();
            }
        }

        public void run() {

            thread = Thread.currentThread();

            while (true) {

                synchronized (buf) {
                    while (is == null && !stopForever) {
                        try {
                            buf.wait();
                        } catch (Exception e) {
                        }
                    }
                }

                if (stopForever) {
                    synchronized (buf) {
                        doneReading = true;
                    }
                    break;
                }

                try {
                    isr = new InputStreamReader(is);
                    while (!stop) {
                        try {
                            final int ret = isr.read(buf);
                            if (ret > 0) {
                                final String nstr = new String(buf, 0, ret);
                                if (showProgress) {
                                    logger.info(nstr);
                                }
                                output.append(nstr);
                            } else {
                                break; // and of stream
                            }
                        } catch (Exception ex) {
                            break;
                        }
                    }

                    synchronized (buf) {
                        doneReading = true;
                    }
                } catch (Exception ioe) {
                    output = new StringBuilder();
                }
                try {
                    is.close();
                } catch (Exception ex) {
                }
                is = null;
            }
        }
    }

}


text:
describe('result-center-detail tests suit', function ()
{
	beforeEach(module('resultCenterDetail'));

	describe('result-center-detail controller when services work', function ()
	{
		var $httpBackend, $componentController, $routeParams;

		beforeEach(inject(function (_$componentController_, _$httpBackend_, _$routeParams_, AppConfig)
		{
			var center = {
				AutoId: 1,
				Code: '1',
				Description: 'Car',
				User: 'user',
				Presentation: 'Car',
				Version: 0,
				Response: { HasException: false, Exception: '' }
			}

			var centerAfterUpdate = {
				AutoId: 1,
				Code: '1',
				Description: 'Car',
				User: 'user',
				Presentation: 'Car',
				Version: 1,
				Response: { HasException: false, Exception: '' }
			}

			AppConfig.serverBaseUrl = 'http://test/api/';

			$httpBackend = _$httpBackend_;
			$httpBackend.whenGET('http://test/api/resultCenter/1').respond(center);
			$httpBackend.whenPOST('http://test/api/resultCenter/update').respond(centerAfterUpdate);
			$httpBackend.whenDELETE('http://test/api/resultCenter/1').respond(center);
			$routeParams = _$routeParams_;
			$componentController = _$componentController_;
		}));

		it("should load a center by id in the route params", function ()
		{
			$routeParams.id = 1;
			var ctrl = $componentController('resultCenterDetail');
			$httpBackend.flush();

			expect(ctrl.status).toBe('load ok');
			expect(ctrl.model).not.toBe(null);
			expect(ctrl.model.AutoId).toBe(1);
			expect(ctrl.model.Code).toBe('1');
			expect(ctrl.model.Description).toBe('Car');
			expect(ctrl.model.Version).toBe(0);
			expect(ctrl.isPersistent()).toBe(true);
		});

		it('should start empty, if an id is not given', function ()
		{
			$routeParams.id = 0;
			var ctrl = $componentController('resultCenterDetail');
			//$httpBackend.flush();

			expect(ctrl.status).toBe('nothing...');
			expectToResetModel(ctrl.model);
			expect(ctrl.isPersistent()).toBe(false);
		});

		it('should update an entity successfully, if everything is all right', function ()
		{
			$routeParams.id = 1;
			var ctrl = $componentController('resultCenterDetail');
			$httpBackend.flush();
			ctrl.save();
			$httpBackend.flush();
			expect(ctrl.model.Version).toBe(1);
			expect(ctrl.status).toContain('save ok');
			expect(ctrl.isPersistent()).toBe(true);
		});

		it('should reset model on new', function ()
		{
			$routeParams.id = 1;
			var ctrl = $componentController('resultCenterDetail');
			$httpBackend.flush();
			ctrl.new();

			expect(ctrl.status).toBe('new ok');
			expectToResetModel(ctrl.model);
			expect(ctrl.isPersistent()).toBe(false);
		});

		it('should save a new entity successfully, if everything is all right', function ()
		{
			$routeParams.id = 0;
			var ctrl = $componentController('resultCenterDetail');
			//ctrl.model.Codigo = '1'
			ctrl.save();
			$httpBackend.flush();
			expect(ctrl.model.Version).toBe(1);
			expect(ctrl.status).toContain('save ok');
			expect(ctrl.isPersistent()).toBe(true);
		});

		it('should complain about missing required fields on save', function ()
		{
		});

		it('should reset model on delete', function ()
		{
			$routeParams.id = 1;
			var ctrl = $componentController('resultCenterDetail');
			$httpBackend.flush();
			ctrl.delete();
			$httpBackend.flush();

			expect(ctrl.status).toBe('delete ok');
			expectToResetModel(ctrl.model);
			expect(ctrl.isPersistent()).toBe(false);
		});
	});

	describe('result-center-detail controller when services answer with errors messages', function ()
	{
		var $httpBackend, $componentController, $routeParams;

		beforeEach(inject(function (_$componentController_, _$httpBackend_, _$routeParams_, AppConfig)
		{
			var center = {
				AutoId: 0,
				Code: '',
				Description: '',
				User: '',
				Presentation: '',
				Version: '0',
				Response: { HasException: true, Exception: 'error... whatever...' }
			}

			AppConfig.serverBaseUrl = 'http://test/api/';

			$httpBackend = _$httpBackend_;
			$httpBackend.whenGET('http://test/api/resultCenter/2').respond(center);
			$httpBackend.whenPOST('http://test/api/resultCenter/update').respond(center);
			$httpBackend.whenDELETE('http://test/api/resultCenter').respond(center);
			$routeParams = _$routeParams_;
			$componentController = _$componentController_;
		}));

		it('should show error on load', function ()
		{
			$routeParams.id = 2;
			var ctrl = $componentController('resultCenterDetail');
			$httpBackend.flush();

			expect(ctrl.status).toBe('error... whatever...');
			expectToResetModel(ctrl.model);
			expect(ctrl.isPersistent()).toBe(false);
		});

		it('should show error on save and reset model', function ()
		{
			$routeParams.id = 2;
			var ctrl = $componentController('resultCenterDetail');
			$httpBackend.flush();
			ctrl.save();
			$httpBackend.flush();

			expect(ctrl.status).toBe('error... whatever...');
			expectToResetModel(ctrl.model);
			expect(ctrl.isPersistent()).toBe(false);
		});

		it('should show error on delete and reset model', function ()
		{
			$routeParams.id = 0;
			var ctrl = $componentController('resultCenterDetail');
			ctrl.delete();
			$httpBackend.flush();

			expect(ctrl.status).toBe('error... whatever...');
			expectToResetModel(ctrl.model);
			expect(ctrl.isPersistent()).toBe(false);
		});
	});

	function expectToResetModel(model)
	{
		expect(model).not.toBe(null);
		expect(model.AutoId).toBe(0);
		expect(model.Code).toBe('');
		expect(model.Description).toBe('');
	}

});


text:
//EBNF grammar visitor classes declarations.

#ifndef SYN_CORE_EBNF_VISITOR_DEC_H_INCLUDED
#define SYN_CORE_EBNF_VISITOR_DEC_H_INCLUDED

namespace synbin {

	template<class T>
	class SymbolDeclarationVisitor;

	template<class T>
	class DeclarationVisitor;

	template<class T>
	class SyntaxExpressionVisitor;

	template<class T>
	class ConstExpressionVisitor;

	template<class T>
	class AndExpressionMeaningVisitor;

}

#endif//SYN_CORE_EBNF_VISITOR_DEC_H_INCLUDED


text:
using System;
using System.Collections.Generic;
using System.Linq;
using AonWeb.FluentHttp.HAL.Serialization;
using Newtonsoft.Json;

namespace AonWeb.FluentHttp.Tests.Helpers
{
    public class TestListEmbeddedPropertyParentsResource : TestResource, IEquatable<TestListEmbeddedPropertyParentsResource>
    {
        [HalEmbedded("parent")]
        public IList<TestListEmbeddedPropertyParentResource> Results { get; set; }

        public int Count { get; set; }

        #region IEquatable<TestListEmbeddedPropertyParentsResource>

        public bool Equals(TestListEmbeddedPropertyParentsResource other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            if (Count != other.Count) return false;
            if (!base.Equals(other)) return false;
            if (ReferenceEquals(Results, other.Results)) return true;
            if (ReferenceEquals(null, other.Results)) return false;
            if (ReferenceEquals(null, Results)) return false;

            return !Results.Where((t, i) => !t.Equals(other.Results[i])).Any();
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != GetType()) return false;
            return Equals((TestListEmbeddedPropertyParentsResource)obj);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = base.GetHashCode();
                hashCode = (hashCode * 397) ^ Count;
                hashCode = (hashCode * 397) ^ (Results?.GetHashCode() ?? 0);
                return hashCode;
            }
        }

        #endregion

        #region HalDefaults

        [JsonIgnore]
        public new const string SerializedDefault1 = @"{
  ""count"": 2,
  ""stringProperty"": ""TestString"",
  ""intProperty"": 2,
  ""boolProperty"": true,
  ""dateOffsetProperty"": ""2000-01-01T00:00:00-05:00"",
  ""dateProperty"": ""2000-01-01T00:00:00"",
  ""_links"": {
    ""self"": {
      ""href"": ""http://link.com/1"",
      ""templated"": false
    },
    ""link2"": {
      ""href"": ""http://link.com/2"",
      ""templated"": false
    },
    ""link3"": {
      ""href"": ""http://link.com/3"",
      ""templated"": false
    }
  },
  ""_embedded"": {
    ""parent"": [
      {
        ""stringProperty"": ""TestString1"",
        ""intProperty"": 2,
        ""boolProperty"": true,
        ""dateOffsetProperty"": ""2000-01-01T00:00:00-05:00"",
        ""dateProperty"": ""2000-01-01T00:00:00"",
        ""_links"": {
          ""self"": {
            ""href"": ""http://link.com/1"",
            ""templated"": false
          }
        },
        ""_embedded"": {
          ""children"": {
            ""results"": [
              {
                ""result"": ""child-result1""
              },
              {
                ""result"": ""child-result2""
              }
            ],
            ""count"": 2,
            ""stringProperty"": ""TestString"",
            ""intProperty"": 2,
            ""boolProperty"": true,
            ""dateOffsetProperty"": ""2000-01-01T00:00:00-05:00"",
            ""dateProperty"": ""2000-01-01T00:00:00"",
            ""_links"": {
              ""self"": {
                ""href"": ""http://link.com/self/1"",
                ""templated"": false
              },
              ""template"": {
                ""href"": ""http://link.com/self/1/child/{child-id}"",
                ""templated"": true
              },
              ""nontemplate"": {
                ""href"": ""http://link.com/self/1/child/1"",
                ""templated"": false
              }
            }
          }
        }
      },
      {
        ""stringProperty"": ""TestString2"",
        ""intProperty"": 3,
        ""boolProperty"": false,
        ""dateOffsetProperty"": ""2000-01-02T00:00:00-05:00"",
        ""dateProperty"": ""2000-01-03T00:00:00"",
        ""_links"": {
          ""self"": {
            ""href"": ""http://link.com/1"",
            ""templated"": false
          }
        },
        ""_embedded"": {
          ""children"": {
            ""results"": [
              {
                ""result"": ""child-result1""
              },
              {
                ""result"": ""child-result2""
              },
              {
                ""result"": ""child-result3""
              }
            ],
            ""count"": 3,
            ""stringProperty"": ""TestString2"",
            ""intProperty"": 2,
            ""boolProperty"": false,
            ""dateOffsetProperty"": ""2000-01-02T00:00:00-05:00"",
            ""dateProperty"": ""2000-01-02T00:00:00"",
            ""_links"": {
              ""self"": {
                ""href"": ""http://link.com/self/2"",
                ""templated"": false
              },
              ""template"": {
                ""href"": ""http://link.com/self/2/child/{child-id}"",
                ""templated"": true
              },
              ""nontemplate"": {
                ""href"": ""http://link.com/self/2/child/2"",
                ""templated"": false
              }
            }
          }
        }
      }
    ]
  }
}";
        [JsonIgnore]
        public new const string SerializedDefault2 = "";

        public new static TestListEmbeddedPropertyParentsResource Default1()
        {
            return new TestListEmbeddedPropertyParentsResource
            {
                StringProperty = "TestString",
                IntProperty = 2,
                BoolProperty = true,
                DateOffsetProperty = new DateTimeOffset(2000, 1, 1, 0, 0, 0, TimeSpan.FromHours(-5)),
                DateProperty = new DateTime(2000, 1, 1, 0, 0, 0),
                Results = new List<TestListEmbeddedPropertyParentResource>
                {
                    TestListEmbeddedPropertyParentResource.Default1(),
                    TestListEmbeddedPropertyParentResource.Default2()
                },
                Count = 2,
                Links = new HyperMediaLinks
                {
                    new HyperMediaLink{ Rel = "self", Href="http://link.com/1"},
                    new HyperMediaLink{ Rel = "link2", Href="http://link.com/2"},
                    new HyperMediaLink{ Rel = "link3", Href="http://link.com/3"}
                }
            };
        }

        public new static TestListEmbeddedPropertyParentsResource Default2()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}


text:
travis-ci-example
=================

A simple example show how to use travis-ci

[![Build Status](https://travis-ci.org/lixianlin/travis-ci-example.svg?branch=master)](https://travis-ci.org/lixianlin/travis-ci-example)


text:
namespace CsvHelper.Excel
{
    using System;
    using System.Linq;
    using ClosedXML.Excel;
    using CsvHelper.Configuration;

    /// <summary>
    /// Parses an Excel file.
    /// </summary>
    public class ExcelParser : ICsvParser
    {
        private readonly bool shouldDisposeWorkbook;
        private readonly IXLRangeBase range;
        private bool isDisposed;

        /// <summary>
        /// Creates a new parser using a new <see cref="XLWorkbook"/> from the given <paramref name="path"/> and uses the given <paramref name="configuration"/>.
        /// </summary>
        /// <param name="path">The path.</param>
        /// <param name="configuration">The configuration.</param>
        public ExcelParser(string path, CsvConfiguration configuration = null)
            : this(new XLWorkbook(path, XLEventTracking.Disabled), configuration)
        {
            shouldDisposeWorkbook = true;
        }

        /// <summary>
        /// Creates a new parser using a new <see cref="XLWorkbook"/> from the given <paramref name="path"/> and uses the given <paramref name="configuration"/>.
        /// </summary>
        /// <param name="path">The path to the workbook.</param>
        /// <param name="sheetName">The name of the sheet to import data from.</param>
        /// <param name="configuration">The configuration.</param>
        public ExcelParser(string path, string sheetName, CsvConfiguration configuration = null)
            : this(new XLWorkbook(path, XLEventTracking.Disabled), sheetName, configuration)
        {
            shouldDisposeWorkbook = true;
        }

        /// <summary>
        /// Creates a new parser using the given <see cref="XLWorkbook"/> and <see cref="CsvConfiguration"/>.
        /// <remarks>
        /// Will attempt to read the data from the first worksheet in the workbook.
        /// </remarks>
        /// </summary>
        /// <param name="workbook">The <see cref="XLWorkbook"/> with the data.</param>
        /// <param name="configuration">The configuration.</param>
        public ExcelParser(XLWorkbook workbook, CsvConfiguration configuration = null) : this(workbook.Worksheets.First(), configuration) { }

        /// <summary>
        /// Creates a new parser using the given <see cref="XLWorkbook"/> and <see cref="CsvConfiguration"/>.
        /// <remarks>
        /// Will attempt to read the data from the first worksheet in the workbook.
        /// </remarks>
        /// </summary>
        /// <param name="workbook">The <see cref="XLWorkbook"/> with the data.</param>
        /// <param name="sheetName">The name of the sheet to import from.</param>
        /// <param name="configuration">The configuration.</param>
        public ExcelParser(XLWorkbook workbook, string sheetName, CsvConfiguration configuration = null) : this(workbook.Worksheet(sheetName), configuration) { }

        /// <summary>
        /// Creates a new parser using the given <see cref="IXLWorksheet"/> and <see cref="CsvConfiguration"/>.
        /// </summary>
        /// <param name="worksheet">The <see cref="IXLWorksheet"/> with the data.</param>
        /// <param name="configuration">The configuration.</param>
        public ExcelParser(IXLWorksheet worksheet, CsvConfiguration configuration = null) : this((IXLRangeBase)worksheet, configuration) { }

        /// <summary>
        /// Creates a new parser using the given <see cref="IXLRange"/> and <see cref="CsvConfiguration"/>.
        /// </summary>
        /// <param name="range">The <see cref="IXLRange"/> with the data.</param>
        /// <param name="configuration">The configuration.</param>
        public ExcelParser(IXLRange range, CsvConfiguration configuration = null) : this((IXLRangeBase)range, configuration) { }

        private ExcelParser(IXLRangeBase range, CsvConfiguration configuration)
        {
            Workbook = range.Worksheet.Workbook;
            this.range = range;
            Configuration = configuration ?? new CsvConfiguration();
            FieldCount = range.CellsUsed().Max(cell => cell.Address.ColumnNumber) - range.CellsUsed().Min(cell => cell.Address.ColumnNumber) + 1;
        }

        /// <summary>
        /// Gets the configuration.
        /// </summary>
        public CsvConfiguration Configuration { get; }

        /// <summary>
        /// Gets the workbook from which we are reading data.
        /// </summary>
        /// <value>
        /// The workbook.
        /// </value>
        public XLWorkbook Workbook { get; }

        /// <summary>
        /// Gets the field count.
        /// </summary>
        public int FieldCount { get; }

        /// <summary>
        /// Gets the character position that the parser is currently on.
        /// <remarks>This feature is unused.</remarks>
        /// </summary>
        public long CharPosition => -1;

        /// <summary>
        /// Gets the byte position that the parser is currently on.
        /// <remarks>This feature is unused.</remarks>
        /// </summary>
        public long BytePosition => -1;

        /// <summary>
        /// Gets the row of the Excel file that the parser is currently on.
        /// </summary>
        public int Row { get; private set; } = 1;

        /// <summary>
        /// Gets and sets the number of rows to offset the start position from.
        /// </summary>
        public int RowOffset { get; set; } = 0;

        /// <summary>
        /// Gets and sets the number of columns to offset the start position from.
        /// </summary>
        public int ColumnOffset { get; set; } = 0;

        /// <summary>
        /// Gets the raw row for the current record that was parsed.
        /// </summary>
        public virtual string RawRecord => range.AsRange().Row(Row).Cells(1, FieldCount).ToString();

        /// <summary>
        /// Reads a record from the Excel file.
        /// </summary>
        /// <returns>
        /// A <see cref="T:String[]" /> of fields for the record read.
        /// </returns>
        /// <exception cref="ObjectDisposedException">Thrown if the parser has been disposed.</exception>
        public virtual string[] Read()
        {
            CheckDisposed();
            var row = range.AsRange().Row(Row + RowOffset);
            if (row.CellsUsed().Any())
            {
                var result = row.Cells(1 + ColumnOffset, FieldCount + ColumnOffset)
                    .Select(cell => cell.Value.ToString())
                    .ToArray();
                Row++;
                return result;
            }
            return null;
        }

        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        /// <summary>
        /// Finalizes an instance of the <see cref="ExcelParser"/> class.
        /// </summary>
        ~ExcelParser()
        {
            Dispose(false);
        }

        /// <summary>
        /// Releases unmanaged and - optionally - managed resources.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (isDisposed) return;
            if (disposing)
            {
                if (shouldDisposeWorkbook) Workbook.Dispose();
            }
            isDisposed = true;
        }

        /// <summary>
        /// Checks if the instance has been disposed of.
        /// </summary>
        /// <exception cref="ObjectDisposedException" />
        protected virtual void CheckDisposed()
        {
            if (isDisposed)
            {
                throw new ObjectDisposedException(GetType().ToString());
            }
        }
    }
}


text:
<!--This file was generated from the python source
Please edit the source to make changes
-->
SignalfxHandler
=====

Send metrics to signalfx

#### Dependencies

 * urllib2

#### Configuration
Enable this handler

 * handlers = diamond.handler.signalfx.SignalfxHandler

 * auth_token = SIGNALFX_AUTH_TOKEN
 * batch_size = [optional | 300 ] will wait for this many requests before
     posting
 * filter_metrics_regex = [optional] comma separated list of collector:regex
     to limit metrics sent to signalfx,  default is to send everything
 * url = [optional | https://ingest.signalfx.com/v2/datapoint] where to send
     metrics

#### Options

Setting | Default | Description | Type
--------|---------|-------------|-----
auth_token |  | Org API token to use when sending metrics | str
batch | 300 | How many to store before sending | int
filter_metrics_regex | | Comma Separated collector:regex filters| str
get_default_config_help |  | get_default_config_help |
server_error_interval | 120 | How frequently to send repeated server errors | int
url | https://ingest.signalfx.com/v2/datapoint | Where to send metrics | str


text:
import json
import os
import re
import sys
import unittest

BASE_DIR = os.path.realpath(os.path.join(
    os.path.dirname(os.path.realpath(__file__)), '..'))

os.environ["PYWIKIBOT_DIR"] = BASE_DIR
import pywikibot

sys.path.append(BASE_DIR)
from config import config_page_name  # pylint: disable=E0611,W0614

os.environ["TZ"] = "UTC"

site = pywikibot.Site()
site.login()

config_page = pywikibot.Page(site, config_page_name)
cfg = config_page.text
cfg = json.loads(cfg)
print(json.dumps(cfg, indent=4, ensure_ascii=False))

def readfile(filename):
    with open(os.path.join(BASE_DIR, 'unit_tests/file/infobox/{0}.txt'.format(filename))) as f:
        result = f.read()
    return result

class TestInfoboxMethods(unittest.TestCase):

    def test_all(self):
        test_cnt = 3
        imagename = 'Example image.png'
        imagename_new = 'Example image new.png'
        imageregex = "[" + imagename[0].upper() + \
            imagename[0].lower() + "]" + re.escape(imagename[1:])
        imageregex = imageregex.replace("\\ ", "[ _]")
        print('imagename =', imagename)
        print('imageregex =', imageregex)
        regex = cfg['regex']['infobox']['pattern'].format(imageregex)

        for fid in range(1, test_cnt + 1):
            print(fid)
            text = readfile('{0}_in'.format(fid))

            # existother = 'en'
            existothername = '英文維基百科'

            # comment_other
            replace = cfg['regex']['infobox']['replace']['comment_other'].format(
                existothername)
            output1 = re.sub(regex, replace, text, flags=re.M)
            output2 = readfile('{0}_comment_other'.format(fid))
            self.assertEqual(output1, output2)

            # moved
            replace = cfg['regex']['infobox']['replace']['moved'].format(
                imagename_new)
            output1 = re.sub(regex, replace, text, flags=re.M)
            output2 = readfile('{0}_moved'.format(fid))
            self.assertEqual(output1, output2)

            # deleted_comment
            replace = cfg['regex']['infobox']['replace']['deleted_comment']
            output1 = re.sub(regex, replace, text, flags=re.M)
            output2 = readfile('{0}_deleted_comment'.format(fid))
            self.assertEqual(output1, output2)

            # deleted
            replace = cfg['regex']['infobox']['replace']['deleted']
            output1 = re.sub(regex, replace, text, flags=re.M)
            output2 = readfile('{0}_deleted'.format(fid))
            self.assertEqual(output1, output2)

            # comment
            replace = cfg['regex']['infobox']['replace']['comment']
            output1 = re.sub(regex, replace, text, flags=re.M)
            output2 = readfile('{0}_comment'.format(fid))
            self.assertEqual(output1, output2)

if __name__ == '__main__':
    unittest.main()