text:
/*
	Papa Parse
	v3.1.2
	https://github.com/mholt/PapaParse
*/
(function(global)
{
	"use strict";

	var IS_WORKER = !global.document, SCRIPT_PATH;
	var workers = {}, workerIdCounter = 0;

	// A configuration object from which to draw default settings
	var DEFAULTS = {
		delimiter: "",	// empty: auto-detect
		header: false,
		dynamicTyping: false,
		preview: 0,
		step: undefined,
		encoding: "",	// browser should default to "UTF-8"
		worker: false,
		comments: false,
		complete: undefined,
		error: undefined,
		download: false,
		chunk: undefined,
		keepEmptyRows: false
	};

	global.Papa = {};

	global.Papa.parse = CsvToJson;
	global.Papa.unparse = JsonToCsv;

	global.Papa.RECORD_SEP = String.fromCharCode(30);
	global.Papa.UNIT_SEP = String.fromCharCode(31);
	global.Papa.BYTE_ORDER_MARK = "\ufeff";
	global.Papa.BAD_DELIMITERS = ["\r", "\n", "\"", global.Papa.BYTE_ORDER_MARK];
	global.Papa.WORKERS_SUPPORTED = !!global.Worker;

	// Configurable chunk sizes for local and remote files, respectively
	global.Papa.LocalChunkSize = 1024 * 1024 * 10;	// 10 MB
	global.Papa.RemoteChunkSize = 1024 * 1024 * 5;	// 5 MB
	global.Papa.DefaultDelimiter = ",";				// Used if not specified and detection fails

	// Exposed for testing and development only
	global.Papa.Parser = Parser;
	global.Papa.ParserHandle = ParserHandle;
	global.Papa.NetworkStreamer = NetworkStreamer;
	global.Papa.FileStreamer = FileStreamer;

	if (global.jQuery)
	{
		var $ = global.jQuery;
		$.fn.parse = function(options)
		{
			var config = options.config || {};
			var queue = [];

			this.each(function(idx)
			{
				var supported = $(this).prop('tagName').toUpperCase() == "INPUT"
								&& $(this).attr('type').toLowerCase() == "file"
								&& global.FileReader;

				if (!supported || !this.files || this.files.length == 0)
					return true;	// continue to next input element

				for (var i = 0; i < this.files.length; i++)
				{
					queue.push({
						file: this.files[i],
						inputElem: this,
						instanceConfig: $.extend({}, config)
					});
				}
			});

			parseNextFile();	// begin parsing
			return this;		// maintains chainability

			function parseNextFile()
			{
				if (queue.length == 0)
					return;

				var f = queue[0];

				if (isFunction(options.before))
				{
					var returned = options.before(f.file, f.inputElem);

					if (typeof returned === 'object')
					{
						if (returned.action == "abort")
						{
							error("AbortError", f.file, f.inputElem, returned.reason);
							return;	// Aborts all queued files immediately
						}
						else if (returned.action == "skip")
						{
							fileComplete();	// parse the next file in the queue, if any
							return;
						}
						else if (typeof returned.config === 'object')
							f.instanceConfig = $.extend(f.instanceConfig, returned.config);
					}
					else if (returned == "skip")
					{
						fileComplete();	// parse the next file in the queue, if any
						return;
					}
				}

				// Wrap up the user's complete callback, if any, so that ours also gets executed
				var userCompleteFunc = f.instanceConfig.complete;
				f.instanceConfig.complete = function(results)
				{
					if (isFunction(userCompleteFunc))
						userCompleteFunc(results, f.file, f.inputElem);
					fileComplete();
				};

				Papa.parse(f.file, f.instanceConfig);
			}

			function error(name, file, elem, reason)
			{
				if (isFunction(options.error))
					options.error({name: name}, file, elem, reason);
			}

			function fileComplete()
			{
				queue.splice(0, 1);
				parseNextFile();
			}
		}
	}

	if (IS_WORKER)
		global.onmessage = workerThreadReceivedMessage;
	else if (Papa.WORKERS_SUPPORTED)
		SCRIPT_PATH = getScriptPath();

	function CsvToJson(_input, _config)
	{
		var config = IS_WORKER ? _config : copyAndValidateConfig(_config);
		var useWorker = config.worker && Papa.WORKERS_SUPPORTED && SCRIPT_PATH;

		if (useWorker)
		{
			var w = newWorker();

			w.userStep = config.step;
			w.userChunk = config.chunk;
			w.userComplete = config.complete;
			w.userError = config.error;

			config.step = isFunction(config.step);
			config.chunk = isFunction(config.chunk);
			config.complete = isFunction(config.complete);
			config.error = isFunction(config.error);
			delete config.worker;	// prevent infinite loop

			w.postMessage({
				input: _input,
				config: config,
				workerId: w.id
			});
		}
		else
		{
			if (typeof _input === 'string')
			{
				if (config.download)
				{
					var streamer = new NetworkStreamer(config);
					streamer.stream(_input);
				}
				else
				{
					var ph = new ParserHandle(config);
					var results = ph.parse(_input);
					return results;
				}
			}
			else if (_input instanceof File)
			{
				if (config.step || config.chunk)
				{
					var streamer = new FileStreamer(config);
					streamer.stream(_input);
				}
				else
				{
					var ph = new ParserHandle(config);

					if (IS_WORKER)
					{
						var reader = new FileReaderSync();
						var input = reader.readAsText(_input, config.encoding);
						return ph.parse(input);
					}
					else
					{
						reader = new FileReader();
						reader.onload = function(event)
						{
							var ph = new ParserHandle(config);
							var results = ph.parse(event.target.result);
						};
						reader.onerror = function()
						{
							if (isFunction(config.error))
								config.error(reader.error, _input);
						};
						reader.readAsText(_input, config.encoding);
					}
				}
			}
		}
	}

	function JsonToCsv(_input, _config)
	{
		var _output = "";
		var _fields = [];

		// Default configuration
		var _quotes = false;	// whether to surround every datum with quotes
		var _delimiter = ",";	// delimiting character
		var _newline = "\r\n";	// newline character(s)

		unpackConfig();

		if (typeof _input === 'string')
			_input = JSON.parse(_input);

		if (_input instanceof Array)
		{
			if (!_input.length || _input[0] instanceof Array)
				return serialize(null, _input);
			else if (typeof _input[0] === 'object')
				return serialize(objectKeys(_input[0]), _input);
		}
		else if (typeof _input === 'object')
		{
			if (typeof _input.data === 'string')
				_input.data = JSON.parse(_input.data);

			if (_input.data instanceof Array)
			{
				if (!_input.fields)
					_input.fields = _input.data[0] instanceof Array
									? _input.fields
									: objectKeys(_input.data[0]);

				if (!(_input.data[0] instanceof Array) && typeof _input.data[0] !== 'object')
					_input.data = [_input.data];	// handles input like [1,2,3] or ["asdf"]
			}

			return serialize(_input.fields || [], _input.data || []);
		}

		// Default (any valid paths should return before this)
		throw "exception: Unable to serialize unrecognized input";

		function unpackConfig()
		{
			if (typeof _config !== 'object')
				return;

			if (typeof _config.delimiter === 'string'
				&& _config.delimiter.length == 1
				&& global.Papa.BAD_DELIMITERS.indexOf(_config.delimiter) == -1)
			{
				_delimiter = _config.delimiter;
			}

			if (typeof _config.quotes === 'boolean'
				|| _config.quotes instanceof Array)
				_quotes = _config.quotes;

			if (typeof _config.newline === 'string')
				_newline = _config.newline;
		}

		// Turns an object's keys into an array
		function objectKeys(obj)
		{
			if (typeof obj !== 'object')
				return [];
			var keys = [];
			for (var key in obj)
				keys.push(key);
			return keys;
		}

		// The double for loop that iterates the data and writes out a CSV string including header row
		function serialize(fields, data)
		{
			var csv = "";

			if (typeof fields === 'string')
				fields = JSON.parse(fields);
			if (typeof data === 'string')
				data = JSON.parse(data);

			var hasHeader = fields instanceof Array && fields.length > 0;
			var dataKeyedByField = !(data[0] instanceof Array);

			// If there a header row, write it first
			if (hasHeader)
			{
				for (var i = 0; i < fields.length; i++)
				{
					if (i > 0)
						csv += _delimiter;
					csv += safe(fields[i], i);
				}
				if (data.length > 0)
					csv += _newline;
			}

			// Then write out the data
			for (var row = 0; row < data.length; row++)
			{
				var maxCol = hasHeader ? fields.length : data[row].length;

				for (var col = 0; col < maxCol; col++)
				{
					if (col > 0)
						csv += _delimiter;
					var colIdx = hasHeader && dataKeyedByField ? fields[col] : col;
					csv += safe(data[row][colIdx], col);
				}

				if (row < data.length - 1)
					csv += _newline;
			}

			return csv;
		}

		// Encloses a value around quotes if needed (makes a value safe for CSV insertion)
		function safe(str, col)
		{
			if (typeof str === "undefined" || str === null)
				return "";

			str = str.toString().replace(/"/g, '""');

			var needsQuotes = (typeof _quotes === 'boolean' && _quotes)
							|| (_quotes instanceof Array && _quotes[col])
							|| hasAny(str, global.Papa.BAD_DELIMITERS)
							|| str.indexOf(_delimiter) > -1
							|| str.charAt(0) == ' '
							|| str.charAt(str.length - 1) == ' ';

			return needsQuotes ? '"' + str + '"' : str;
		}

		function hasAny(str, substrings)
		{
			for (var i = 0; i < substrings.length; i++)
				if (str.indexOf(substrings[i]) > -1)
					return true;
			return false;
		}
	}

	// TODO: Many of the functions of NetworkStreamer and FileStreamer are similar or the same. Consolidate?
	function NetworkStreamer(config)
	{
		config = config || {};
		if (!config.chunkSize)
			config.chunkSize = Papa.RemoteChunkSize;

		var start = 0, fileSize = 0;
		var aggregate = "";
		var partialLine = "";
		var xhr, nextChunk;
		var handle = new ParserHandle(copy(config));

		this.stream = function(url)
		{
			if (IS_WORKER)
			{
				nextChunk = function()
				{
					readChunk();
					chunkLoaded();
				};
			}
			else
			{
				nextChunk = function()
				{
					readChunk();
				};
			}

			nextChunk();	// Starts streaming

			function readChunk()
			{
				xhr = new XMLHttpRequest();
				if (!IS_WORKER)
				{
					xhr.onload = chunkLoaded;
					xhr.onerror = chunkError;
				}
				xhr.open("GET", url, !IS_WORKER);
				if (config.step)
				{
					var end = start + config.chunkSize - 1;	// minus one because byte range is inclusive
					if (fileSize && end > fileSize) // Hack around a Chrome bug: http://stackoverflow.com/q/24745095/1048862
						end = fileSize;
					xhr.setRequestHeader("Range", "bytes="+start+"-"+end);
				}
				xhr.send();
				if (IS_WORKER && xhr.status == 0)
					chunkError();
				else
					start += config.chunkSize;
			}

			function chunkLoaded()
			{
				if (xhr.readyState != 4)
					return;

				if (xhr.status < 200 || xhr.status >= 400)
				{
					chunkError();
					return;
				}

				// Rejoin the line we likely just split in two by chunking the file
				aggregate += partialLine + xhr.responseText;
				partialLine = "";

				var finishedWithEntireFile = !config.step || start > getFileSize(xhr);

				if (!finishedWithEntireFile)
				{
					var lastLineEnd = aggregate.lastIndexOf("\n");

					if (lastLineEnd < 0)
						lastLineEnd = aggregate.lastIndexOf("\r");

					if (lastLineEnd > -1)
					{
						partialLine = aggregate.substring(lastLineEnd + 1);	// skip the line ending character
						aggregate = aggregate.substring(0, lastLineEnd);
					}
					else
					{
						// For chunk sizes smaller than a line (a line could not fit in a single chunk)
						// we simply build our aggregate by reading in the next chunk, until we find a newline
						nextChunk();
						return;
					}
				}

				var results = handle.parse(aggregate);
				aggregate = "";

				if (IS_WORKER)
				{
					global.postMessage({
						results: results,
						workerId: Papa.WORKER_ID,
						finished: finishedWithEntireFile
					});
				}
				else if (isFunction(config.chunk))
				{
					config.chunk(results);
					results = undefined;
				}

				if (!finishedWithEntireFile && !results.meta.paused)
					nextChunk();
			}

			function chunkError()
			{
				if (isFunction(config.error))
					config.error(xhr.statusText);
				else if (IS_WORKER && config.error)
				{
					global.postMessage({
						workerId: Papa.WORKER_ID,
						error: xhr.statusText,
						finished: false
					});
				}
			}

			function getFileSize(xhr)
			{
				var contentRange = xhr.getResponseHeader("Content-Range");
				return parseInt(contentRange.substr(contentRange.lastIndexOf("/") + 1));
			}
		};
	}

	function FileStreamer(config)
	{
		config = config || {};
		if (!config.chunkSize)
			config.chunkSize = Papa.LocalChunkSize;

		var start = 0;
		var aggregate = "";
		var partialLine = "";
		var reader, nextChunk, slice;
		var handle = new ParserHandle(copy(config));

		// FileReader is better than FileReaderSync (even in worker) - see http://stackoverflow.com/q/24708649/1048862
		// But Firefox is a pill, too - see issue #76: https://github.com/mholt/PapaParse/issues/76
		var usingAsyncReader = typeof FileReader === 'function';

		this.stream = function(file)
		{
			var slice = file.slice || file.webkitSlice || file.mozSlice;

			if (usingAsyncReader)
			{
				reader = new FileReader();		// Preferred method of reading files, even in workers
				reader.onload = chunkLoaded;
				reader.onerror = chunkError;
			}
			else
				reader = new FileReaderSync();	// Hack for running in a web worker in Firefox

			nextChunk();	// Starts streaming

			function nextChunk()
			{
				if (start < file.size)
					readChunk();
			}

			function readChunk()
			{
				var end = Math.min(start + config.chunkSize, file.size);
				var txt = reader.readAsText(slice.call(file, start, end), config.encoding);
				if (!usingAsyncReader)
					chunkLoaded({ target: { result: txt } });	// mimic the async signature
			}

			function chunkLoaded(event)
			{
				// Very important to increment start each time before handling results
				start += config.chunkSize;

				// Rejoin the line we likely just split in two by chunking the file
				aggregate += partialLine + event.target.result;
				partialLine = "";

				var finishedWithEntireFile = start >= file.size;

				if (!finishedWithEntireFile)
				{
					var lastLineEnd = aggregate.lastIndexOf("\n");

					if (lastLineEnd < 0)
						lastLineEnd = aggregate.lastIndexOf("\r");

					if (lastLineEnd > -1)
					{
						partialLine = aggregate.substring(lastLineEnd + 1);	// skip the line ending character
						aggregate = aggregate.substring(0, lastLineEnd);
					}
					else
					{
						// For chunk sizes smaller than a line (a line could not fit in a single chunk)
						// we simply build our aggregate by reading in the next chunk, until we find a newline
						nextChunk();
						return;
					}
				}

				var results = handle.parse(aggregate);
				aggregate = "";

				if (IS_WORKER)
				{
					global.postMessage({
						results: results,
						workerId: Papa.WORKER_ID,
						finished: finishedWithEntireFile
					});
				}
				else if (isFunction(config.chunk))
				{
					config.chunk(results, file);
					results = undefined;
				}

				if (!finishedWithEntireFile && !results.meta.paused)
					nextChunk();
			}

			function chunkError()
			{
				if (isFunction(config.error))
					config.error(reader.error, file);
				else if (IS_WORKER && config.error)
				{
					global.postMessage({
						workerId: Papa.WORKER_ID,
						error: reader.error,
						file: file,
						finished: false
					});
				}
			}
		};
	}

	// Use one ParserHandle per entire CSV file or string
	function ParserHandle(_config)
	{
		// One goal is to minimize the use of regular expressions...
		var FLOAT = /^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i;

		var self = this;
		var _input;				// The input being parsed
		var _parser;			// The core parser being used
		var _paused = false;	// Whether we are paused or not
		var _delimiterError;	// Temporary state between delimiter detection and processing results
		var _fields = [];		// Fields are from the header row of the input, if there is one
		var _results = {		// The last results returned from the parser
			data: [],
			errors: [],
			meta: {}
		};
		_config = copy(_config);

		this.parse = function(input)
		{
			_delimiterError = false;
			if (!_config.delimiter)
			{
				var delimGuess = guessDelimiter(input);
				if (delimGuess.successful)
					_config.delimiter = delimGuess.bestDelimiter;
				else
				{
					_delimiterError = true;	// add error after parsing (otherwise it would be overwritten)
					_config.delimiter = Papa.DefaultDelimiter;
				}
				_results.meta.delimiter = _config.delimiter;
			}

			if (isFunction(_config.step))
			{
				var userStep = _config.step;
				_config.step = function(results)
				{
					_results = results;
					if (needsHeaderRow())
						processResults();
					else
						userStep(processResults(), self);
				};
			}

			if (_config.preview && _config.header)
				_config.preview++;	// to compensate for header row

			_input = input;
			_parser = new Parser(_config);
			_results = _parser.parse(_input);
			processResults();
			if (isFunction(_config.complete) && !_paused)
				_config.complete(_results);
			return _paused ? { meta: { paused: true } } : _results;
		};

		this.pause = function()
		{
			_paused = true;
			_parser.abort();
			_input = _input.substr(_parser.getCharIndex());
		};

		this.resume = function()
		{
			_paused = false;
			_parser = new Parser(_config);
			_parser.parse(_input);
			if (isFunction(_config.complete) && !_paused)
				_config.complete(_results);
		};

		this.abort = function()
		{
			_parser.abort();
			if (isFunction(_config.complete))
				_config.complete(_results);
			_input = "";
		}

		function processResults()
		{
			if (_results && _delimiterError)
			{
				addError("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '"+Papa.DefaultDelimiter+"'");
				_delimiterError = false;
			}

			if (needsHeaderRow())
				fillHeaderFields();

			return applyHeaderAndDynamicTyping();
		}

		function needsHeaderRow()
		{
			return _config.header && _fields.length == 0;
		}

		function fillHeaderFields()
		{
			if (!_results)
				return;
			for (var i = 0; needsHeaderRow() && i < _results.data.length; i++)
				for (var j = 0; j < _results.data[i].length; j++)
					_fields.push(_results.data[i][j]);
			_results.data.splice(0, 1);
		}

		function applyHeaderAndDynamicTyping()
		{
			if (!_results || (!_config.header && !_config.dynamicTyping))
				return _results;

			for (var i = 0; i < _results.data.length; i++)
			{
				var row = {};
				for (var j = 0; j < _results.data[i].length; j++)
				{
					if (_config.dynamicTyping)
					{
						var value = _results.data[i][j];
						if (value == "true")
							_results.data[i][j] = true;
						else if (value == "false")
							_results.data[i][j] = false;
						else
							_results.data[i][j] = tryParseFloat(value);
					}

					if (_config.header)
					{
						if (j >= _fields.length)
						{
							if (!row["__parsed_extra"])
								row["__parsed_extra"] = [];
							row["__parsed_extra"].push(_results.data[i][j]);
						}
						else
							row[_fields[j]] = _results.data[i][j];
					}
				}

				if (_config.header)
				{
					_results.data[i] = row;
					if (j > _fields.length)
						addError("FieldMismatch", "TooManyFields", "Too many fields: expected " + _fields.length + " fields but parsed " + j, i);
					else if (j < _fields.length)
						addError("FieldMismatch", "TooFewFields", "Too few fields: expected " + _fields.length + " fields but parsed " + j, i);
				}
			}

			if (_config.header && _results.meta)
				_results.meta.fields = _fields;

			return _results;
		}

		function guessDelimiter(input)
		{
			var delimChoices = [",", "\t", "|", ";", Papa.RECORD_SEP, Papa.UNIT_SEP];
			var bestDelim, bestDelta, fieldCountPrevRow;

			for (var i = 0; i < delimChoices.length; i++)
			{
				var delim = delimChoices[i];
				var delta = 0, avgFieldCount = 0;
				fieldCountPrevRow = undefined;

				var preview = new Parser({
					delimiter: delim,
					preview: 10
				}).parse(input);

				for (var j = 0; j < preview.data.length; j++)
				{
					var fieldCount = preview.data[j].length;
					avgFieldCount += fieldCount;

					if (typeof fieldCountPrevRow === 'undefined')
					{
						fieldCountPrevRow = fieldCount;
						continue;
					}
					else if (fieldCount > 1)
					{
						delta += Math.abs(fieldCount - fieldCountPrevRow);
						fieldCountPrevRow = fieldCount;
					}
				}

				avgFieldCount /= preview.data.length;

				if ((typeof bestDelta === 'undefined' || delta < bestDelta)
					&& avgFieldCount > 1.99)
				{
					bestDelta = delta;
					bestDelim = delim;
				}
			}

			_config.delimiter = bestDelim;

			return {
				successful: !!bestDelim,
				bestDelimiter: bestDelim
			}
		}

		function tryParseFloat(val)
		{
			var isNumber = FLOAT.test(val);
			return isNumber ? parseFloat(val) : val;
		}

		function addError(type, code, msg, row)
		{
			_results.errors.push({
				type: type,
				code: code,
				message: msg,
				row: row
			});
		}
	}

	function Parser(config)
	{
		var EMPTY = /^\s*$/;

		var _input;		// The input text being parsed
		var _delimiter;	// The delimiting character
		var _comments;	// Comment character (default '#') or boolean
		var _step;		// The step (streaming) function
		var _callback;	// The callback to invoke when finished
		var _preview;	// Maximum number of lines (not rows) to parse
		var _ch;		// Current character
		var _i;			// Current character's positional index
		var _inQuotes;	// Whether in quotes or not
		var _lineNum;	// Current line number (1-based indexing)
		var _data;		// Parsed data (results)
		var _errors;	// Parse errors
		var _rowIdx;	// Current row index within results (0-based)
		var _colIdx;	// Current col index within result row (0-based)
		var _runningRowIdx;		// Cumulative row index, used by the preview feature
		var _aborted = false;	// Abort flag

		// Unpack the config object
		config = config || {};
		_delimiter = config.delimiter;
		_comments = config.comments;
		_step = config.step;
		_preview = config.preview;

		// Delimiter integrity check
		if (typeof _delimiter !== 'string'
			|| _delimiter.length != 1
			|| Papa.BAD_DELIMITERS.indexOf(_delimiter) > -1)
			_delimiter = ",";

		// Comment character integrity check
		if (_comments === true)
			_comments = "#";
		else if (typeof _comments !== 'string'
			|| _comments.length != 1
			|| Papa.BAD_DELIMITERS.indexOf(_comments) > -1
			|| _comments == _delimiter)
			_comments = false;

		this.parse = function(input)
		{
			if (typeof input !== 'string')
				throw "Input must be a string";
			reset(input);
			return parserLoop();
		};

		this.abort = function()
		{
			_aborted = true;
		};

		this.getCharIndex = function()
		{
			 return _i;
		};

		function parserLoop()
		{
			while (_i < _input.length)
			{
				if (_aborted) break;
				if (_preview > 0 && _runningRowIdx >= _preview) break;

				if (_ch == '"')
					parseQuotes();
				else if (_inQuotes)
					parseInQuotes();
				else
					parseNotInQuotes();

				nextChar();
			}

			return finishParsing();
		}

		function nextChar()
		{
			_i++;
			_ch = _input[_i];
		}

		function finishParsing()
		{
			if (_aborted)
				addError("Abort", "ParseAbort", "Parsing was aborted by the user's step function");
			if (_inQuotes)
				addError("Quotes", "MissingQuotes", "Unescaped or mismatched quotes");
			endRow();	// End of input is also end of the last row
			if (!isFunction(_step))
				return returnable();
		}

		function parseQuotes()
		{
			if (quotesOnBoundary() && !quotesEscaped())
				_inQuotes = !_inQuotes;
			else
			{
				saveChar();
				if (_inQuotes && quotesEscaped())
					_i++
				else
					addError("Quotes", "UnexpectedQuotes", "Unexpected quotes");
			}
		}

		function parseInQuotes()
		{
			if (twoCharLineBreak(_i) || oneCharLineBreak(_i))
				_lineNum++;
			saveChar();
		}

		function parseNotInQuotes()
		{
			if (_ch == _delimiter)
				newField();
			else if (twoCharLineBreak(_i))
			{
				newRow();
				nextChar();
			}
			else if (oneCharLineBreak(_i))
				newRow();
			else if (isCommentStart())
				skipLine();
			else
				saveChar();
		}

		function isCommentStart()
		{
			if (!_comments)
				return false;

			var firstCharOfLine = _i == 0
									|| oneCharLineBreak(_i-1)
									|| twoCharLineBreak(_i-2);
			return firstCharOfLine && _input[_i] === _comments;
		}

		function skipLine()
		{
			while (!twoCharLineBreak(_i)
				&& !oneCharLineBreak(_i)
				&& _i < _input.length)
			{
				nextChar();
			}
		}

		function saveChar()
		{
			_data[_rowIdx][_colIdx] += _ch;
		}

		function newField()
		{
			_data[_rowIdx].push("");
			_colIdx = _data[_rowIdx].length - 1;
		}

		function newRow()
		{
			endRow();

			_lineNum++;
			_runningRowIdx++;
			_data.push([]);
			_rowIdx = _data.length - 1;
			newField();
		}

		function endRow()
		{
			trimEmptyLastRow();
			if (isFunction(_step))
			{
				if (_data[_rowIdx])
					_step(returnable());
				clearErrorsAndData();
			}
		}

		function trimEmptyLastRow()
		{
			if (_data[_rowIdx].length == 1 && EMPTY.test(_data[_rowIdx][0]))
			{
				if (config.keepEmptyRows)
					_data[_rowIdx].splice(0, 1);	// leave row, but no fields
				else
					_data.splice(_rowIdx, 1);		// cut out row entirely
				_rowIdx = _data.length - 1;
			}
		}

		function twoCharLineBreak(i)
		{
			return i < _input.length - 1 &&
				((_input[i] == "\r" && _input[i+1] == "\n")
				|| (_input[i] == "\n" && _input[i+1] == "\r"))
		}

		function oneCharLineBreak(i)
		{
			return _input[i] == "\r" || _input[i] == "\n";
		}

		function quotesEscaped()
		{
			// Quotes as data cannot be on boundary, for example: ,"", are not escaped quotes
			return !quotesOnBoundary() && _i < _input.length - 1 && _input[_i+1] == '"';
		}

		function quotesOnBoundary()
		{
			return (!_inQuotes && isBoundary(_i-1)) || isBoundary(_i+1);
		}

		function isBoundary(i)
		{
			if (typeof i != 'number')
				i = _i;

			var ch = _input[i];

			return (i <= -1 || i >= _input.length)
				|| (ch == _delimiter
					|| ch == "\r"
					|| ch == "\n");
		}

		function addError(type, code, msg)
		{
			_errors.push({
				type: type,
				code: code,
				message: msg,
				line: _lineNum,
				row: _rowIdx,
				index: _i
			});
		}

		function reset(input)
		{
			_input = input;
			_inQuotes = false;
			_i = 0, _runningRowIdx = 0, _lineNum = 1;
			clearErrorsAndData();
			_data = [ [""] ];	// starting parsing requires an empty field
			_ch = _input[_i];
		}

		function clearErrorsAndData()
		{
			_data = [];
			_errors = [];
			_rowIdx = 0;
			_colIdx = 0;
		}

		function returnable()
		{
			return {
				data: _data,
				errors: _errors,
				meta: {
					lines: _lineNum,
					delimiter: _delimiter,
					aborted: _aborted,
					truncated: _preview > 0 && _i < _input.length
				}
			};
		}
	}

	function getScriptPath()
	{
		var id = "worker" + String(Math.random()).substr(2);
		document.write('<script id="'+id+'"></script>');
		return document.getElementById(id).previousSibling.src;
	}

	function newWorker()
	{
		if (!Papa.WORKERS_SUPPORTED)
			return false;
		var w = new global.Worker(SCRIPT_PATH);
		w.onmessage = mainThreadReceivedMessage;
		w.id = workerIdCounter++;
		workers[w.id] = w;
		return w;
	}

	// Callback when main thread receives a message
	function mainThreadReceivedMessage(e)
	{
		var msg = e.data;
		var worker = workers[msg.workerId];

		if (msg.error)
			worker.userError(msg.error, msg.file);
		else if (msg.results && msg.results.data)
		{
			if (isFunction(worker.userStep))
			{
				for (var i = 0; i < msg.results.data.length; i++)
				{
					worker.userStep({
						data: [msg.results.data[i]],
						errors: msg.results.errors,
						meta: msg.results.meta
					});
				}
				delete msg.results;	// free memory ASAP
			}
			else if (isFunction(worker.userChunk))
			{
				worker.userChunk(msg.results, msg.file);
				delete msg.results;
			}
		}

		if (msg.finished)
		{
			if (isFunction(workers[msg.workerId].userComplete))
				workers[msg.workerId].userComplete(msg.results);
			workers[msg.workerId].terminate();
			delete workers[msg.workerId];
		}
	}

	// Callback when worker thread receives a message
	function workerThreadReceivedMessage(e)
	{
		var msg = e.data;

		if (typeof Papa.WORKER_ID === 'undefined' && msg)
			Papa.WORKER_ID = msg.workerId;

		if (typeof msg.input === 'string')
		{
			global.postMessage({
				workerId: Papa.WORKER_ID,
				results: Papa.parse(msg.input, msg.config),
				finished: true
			});
		}
		else if (msg.input instanceof File)
		{
			var results = Papa.parse(msg.input, msg.config);
			if (results)
				global.postMessage({
					workerId: Papa.WORKER_ID,
					results: results,
					finished: true
				});
		}
	}

	// Replaces bad config values with good, default ones
	function copyAndValidateConfig(origConfig)
	{
		if (typeof origConfig !== 'object')
			origConfig = {};

		var config = copy(origConfig);

		if (typeof config.delimiter !== 'string'
			|| config.delimiter.length != 1
			|| Papa.BAD_DELIMITERS.indexOf(config.delimiter) > -1)
			config.delimiter = DEFAULTS.delimiter;

		if (typeof config.header !== 'boolean')
			config.header = DEFAULTS.header;

		if (typeof config.dynamicTyping !== 'boolean')
			config.dynamicTyping = DEFAULTS.dynamicTyping;

		if (typeof config.preview !== 'number')
			config.preview = DEFAULTS.preview;

		if (typeof config.step !== 'function')
			config.step = DEFAULTS.step;

		if (typeof config.complete !== 'function')
			config.complete = DEFAULTS.complete;

		if (typeof config.error !== 'function')
			config.error = DEFAULTS.error;

		if (typeof config.encoding !== 'string')
			config.encoding = DEFAULTS.encoding;

		if (typeof config.worker !== 'boolean')
			config.worker = DEFAULTS.worker;

		if (typeof config.download !== 'boolean')
			config.download = DEFAULTS.download;

		if (typeof config.keepEmptyRows !== 'boolean')
			config.keepEmptyRows = DEFAULTS.keepEmptyRows;

		return config;
	}

	function copy(obj)
	{
		if (typeof obj !== 'object')
			return obj;
		var cpy = obj instanceof Array ? [] : {};
		for (var key in obj)
			cpy[key] = copy(obj[key]);
		return cpy;
	}

	function isFunction(func)
	{
		return typeof func === 'function';
	}
})(this);


text:
<?php

namespace app\modules\sakila\models\search;

use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\sakila\models\Store;

/**
 * StoreSearch represents the model behind the search form about Store.
 */
class StoreSearch extends Model
{
	public $store_id;
	public $manager_staff_id;
	public $address_id;
	public $last_update;

	public function rules()
	{
		return [
			[['store_id', 'manager_staff_id', 'address_id'], 'integer'],
			[['last_update'], 'safe'],
		];
	}

	/**
	 * @inheritdoc
	 */
	public function attributeLabels()
	{
		return [
			'store_id' => 'Store ID',
			'manager_staff_id' => 'Manager Staff ID',
			'address_id' => 'Address ID',
			'last_update' => 'Last Update',
		];
	}

	public function search($params)
	{
		$query = Store::find();
		$dataProvider = new ActiveDataProvider([
			'query' => $query,
		]);

		if (!($this->load($params) && $this->validate())) {
			return $dataProvider;
		}

		$query->andFilterWhere([
            'store_id' => $this->store_id,
            'manager_staff_id' => $this->manager_staff_id,
            'address_id' => $this->address_id,
            'last_update' => $this->last_update,
        ]);

		return $dataProvider;
	}

	protected function addCondition($query, $attribute, $partialMatch = false)
	{
		$value = $this->$attribute;
		if (trim($value) === '') {
			return;
		}
		if ($partialMatch) {
			$value = '%' . strtr($value, ['%'=>'\%', '_'=>'\_', '\\'=>'\\\\']) . '%';
			$query->andWhere(['like', $attribute, $value]);
		} else {
			$query->andWhere([$attribute => $value]);
		}
	}
}

redpajama_set_name: RedPajamaGithub


text:
package net.apnic.rpki.protocol;

/**
 * Thrown when the requested module does not exist.
 *
 * @author bje
 * @since 0.9
 */
public class NoSuchModuleException extends Exception {
}


text:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<DesertBackSystem SystemName="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DesertIfaceBack.xsd">

  <Configuration id="1" name="Conf. no: 1">
    <AlternativeAssignment _id="idDD" alternative_end_="idDC" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="ide0" alternative_end_="idDF" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="idCe" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA1"/>
    <PropertyAssignment _id="idD0" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA2"/>
    <PropertyAssignment _id="idD1" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA3"/>
    <PropertyAssignment _id="idD2" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA4"/>
    <PropertyAssignment _id="idD3" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA5"/>
    <PropertyAssignment _id="idD4" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA6"/>
    <PropertyAssignment _id="idD5" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA7"/>
    <PropertyAssignment _id="idD6" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB5"/>
    <PropertyAssignment _id="idD7" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB6"/>
    <PropertyAssignment _id="idD8" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB7"/>
    <PropertyAssignment _id="idD9" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB8"/>
    <PropertyAssignment _id="idDA" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB9"/>
    <PropertyAssignment _id="idDB" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBA"/>
  </Configuration>

  <Configuration id="2" name="Conf. no: 2">
    <AlternativeAssignment _id="ideF" alternative_end_="idDC" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="idF1" alternative_end_="idF0" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="ide2" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA1"/>
    <PropertyAssignment _id="ide3" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA2"/>
    <PropertyAssignment _id="ide4" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA3"/>
    <PropertyAssignment _id="ide5" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA4"/>
    <PropertyAssignment _id="ide6" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA5"/>
    <PropertyAssignment _id="ide7" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA6"/>
    <PropertyAssignment _id="ide8" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA7"/>
    <PropertyAssignment _id="ide9" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBB"/>
    <PropertyAssignment _id="ideA" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBC"/>
    <PropertyAssignment _id="ideB" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBD"/>
    <PropertyAssignment _id="ideC" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBe"/>
    <PropertyAssignment _id="ideD" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBF"/>
    <PropertyAssignment _id="idee" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC0"/>
  </Configuration>

  <Configuration id="3" name="Conf. no: 3">
    <AlternativeAssignment _id="idFF" alternative_end_="idDC" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id101" alternative_end_="id100" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="idF2" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA1"/>
    <PropertyAssignment _id="idF3" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA2"/>
    <PropertyAssignment _id="idF4" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA3"/>
    <PropertyAssignment _id="idF5" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA4"/>
    <PropertyAssignment _id="idF6" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA5"/>
    <PropertyAssignment _id="idF7" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA6"/>
    <PropertyAssignment _id="idF8" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA7"/>
    <PropertyAssignment _id="idF9" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA8"/>
    <PropertyAssignment _id="idFA" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA9"/>
    <PropertyAssignment _id="idFB" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAA"/>
    <PropertyAssignment _id="idFC" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAB"/>
    <PropertyAssignment _id="idFD" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAC"/>
    <PropertyAssignment _id="idFe" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAD"/>
  </Configuration>

  <Configuration id="4" name="Conf. no: 4">
    <AlternativeAssignment _id="id10F" alternative_end_="idDC" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id111" alternative_end_="id110" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id102" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA1"/>
    <PropertyAssignment _id="id103" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA2"/>
    <PropertyAssignment _id="id104" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA3"/>
    <PropertyAssignment _id="id105" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA4"/>
    <PropertyAssignment _id="id106" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA5"/>
    <PropertyAssignment _id="id107" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA6"/>
    <PropertyAssignment _id="id108" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA7"/>
    <PropertyAssignment _id="id109" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC8"/>
    <PropertyAssignment _id="id10A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC9"/>
    <PropertyAssignment _id="id10B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCA"/>
    <PropertyAssignment _id="id10C" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCB"/>
    <PropertyAssignment _id="id10D" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCC"/>
    <PropertyAssignment _id="id10e" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCD"/>
  </Configuration>

  <Configuration id="5" name="Conf. no: 5">
    <AlternativeAssignment _id="id120" alternative_end_="id11F" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id121" alternative_end_="id100" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id112" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAe"/>
    <PropertyAssignment _id="id113" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAF"/>
    <PropertyAssignment _id="id114" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB0"/>
    <PropertyAssignment _id="id115" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB1"/>
    <PropertyAssignment _id="id116" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB2"/>
    <PropertyAssignment _id="id117" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB3"/>
    <PropertyAssignment _id="id118" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB4"/>
    <PropertyAssignment _id="id119" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA8"/>
    <PropertyAssignment _id="id11A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA9"/>
    <PropertyAssignment _id="id11B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAA"/>
    <PropertyAssignment _id="id11C" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAB"/>
    <PropertyAssignment _id="id11D" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAC"/>
    <PropertyAssignment _id="id11e" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAD"/>
  </Configuration>

  <Configuration id="6" name="Conf. no: 6">
    <AlternativeAssignment _id="id12F" alternative_end_="id11F" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id130" alternative_end_="idDF" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id122" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAe"/>
    <PropertyAssignment _id="id123" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAF"/>
    <PropertyAssignment _id="id124" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB0"/>
    <PropertyAssignment _id="id125" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB1"/>
    <PropertyAssignment _id="id126" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB2"/>
    <PropertyAssignment _id="id127" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB3"/>
    <PropertyAssignment _id="id128" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB4"/>
    <PropertyAssignment _id="id129" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB5"/>
    <PropertyAssignment _id="id12A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB6"/>
    <PropertyAssignment _id="id12B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB7"/>
    <PropertyAssignment _id="id12C" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB8"/>
    <PropertyAssignment _id="id12D" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB9"/>
    <PropertyAssignment _id="id12e" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBA"/>
  </Configuration>

  <Configuration id="7" name="Conf. no: 7">
    <AlternativeAssignment _id="id13e" alternative_end_="id11F" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id13F" alternative_end_="idF0" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id131" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAe"/>
    <PropertyAssignment _id="id132" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAF"/>
    <PropertyAssignment _id="id133" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB0"/>
    <PropertyAssignment _id="id134" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB1"/>
    <PropertyAssignment _id="id135" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB2"/>
    <PropertyAssignment _id="id136" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB3"/>
    <PropertyAssignment _id="id137" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB4"/>
    <PropertyAssignment _id="id138" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBB"/>
    <PropertyAssignment _id="id139" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBC"/>
    <PropertyAssignment _id="id13A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBD"/>
    <PropertyAssignment _id="id13B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBe"/>
    <PropertyAssignment _id="id13C" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBF"/>
    <PropertyAssignment _id="id13D" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC0"/>
  </Configuration>

  <Configuration id="8" name="Conf. no: 8">
    <AlternativeAssignment _id="id14e" alternative_end_="id14D" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id14F" alternative_end_="idDF" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id140" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC1"/>
    <PropertyAssignment _id="id141" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC2"/>
    <PropertyAssignment _id="id142" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC3"/>
    <PropertyAssignment _id="id143" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC4"/>
    <PropertyAssignment _id="id144" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC5"/>
    <PropertyAssignment _id="id145" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC6"/>
    <PropertyAssignment _id="id146" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC7"/>
    <PropertyAssignment _id="id147" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB5"/>
    <PropertyAssignment _id="id148" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB6"/>
    <PropertyAssignment _id="id149" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB7"/>
    <PropertyAssignment _id="id14A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB8"/>
    <PropertyAssignment _id="id14B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idB9"/>
    <PropertyAssignment _id="id14C" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBA"/>
  </Configuration>

  <Configuration id="9" name="Conf. no: 9">
    <AlternativeAssignment _id="id15D" alternative_end_="id14D" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id15e" alternative_end_="idF0" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id150" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC1"/>
    <PropertyAssignment _id="id151" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC2"/>
    <PropertyAssignment _id="id152" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC3"/>
    <PropertyAssignment _id="id153" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC4"/>
    <PropertyAssignment _id="id154" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC5"/>
    <PropertyAssignment _id="id155" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC6"/>
    <PropertyAssignment _id="id156" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC7"/>
    <PropertyAssignment _id="id157" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBB"/>
    <PropertyAssignment _id="id158" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBC"/>
    <PropertyAssignment _id="id159" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBD"/>
    <PropertyAssignment _id="id15A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBe"/>
    <PropertyAssignment _id="id15B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idBF"/>
    <PropertyAssignment _id="id15C" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC0"/>
  </Configuration>

  <Configuration id="10" name="Conf. no: 10">
    <AlternativeAssignment _id="id16C" alternative_end_="id14D" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id16D" alternative_end_="id100" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id15F" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC1"/>
    <PropertyAssignment _id="id160" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC2"/>
    <PropertyAssignment _id="id161" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC3"/>
    <PropertyAssignment _id="id162" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC4"/>
    <PropertyAssignment _id="id163" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC5"/>
    <PropertyAssignment _id="id164" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC6"/>
    <PropertyAssignment _id="id165" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC7"/>
    <PropertyAssignment _id="id166" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA8"/>
    <PropertyAssignment _id="id167" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idA9"/>
    <PropertyAssignment _id="id168" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAA"/>
    <PropertyAssignment _id="id169" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAB"/>
    <PropertyAssignment _id="id16A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAC"/>
    <PropertyAssignment _id="id16B" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idAD"/>
  </Configuration>

  <Configuration id="11" name="Conf. no: 11">
    <AlternativeAssignment _id="id17B" alternative_end_="id14D" alternative_of_end_="idDe" externalID="-1" id="-1" name="alternative assignment"/>
    <AlternativeAssignment _id="id17C" alternative_end_="id110" alternative_of_end_="ide1" externalID="-1" id="-1" name="alternative assignment"/>
    <PropertyAssignment _id="id16e" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC1"/>
    <PropertyAssignment _id="id16F" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC2"/>
    <PropertyAssignment _id="id170" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC3"/>
    <PropertyAssignment _id="id171" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC4"/>
    <PropertyAssignment _id="id172" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC5"/>
    <PropertyAssignment _id="id173" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC6"/>
    <PropertyAssignment _id="id174" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC7"/>
    <PropertyAssignment _id="id175" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC8"/>
    <PropertyAssignment _id="id176" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idC9"/>
    <PropertyAssignment _id="id177" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCA"/>
    <PropertyAssignment _id="id178" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCB"/>
    <PropertyAssignment _id="id179" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCC"/>
    <PropertyAssignment _id="id17A" externalID="2000" id="2000" name="" value_end_="idCF" value_of_end_="idCD"/>
  </Configuration>

  <Element _id="idDC" alternative_of="idDD ideF idFF id10F" externalID="19" id="19" name="Tire_w5">
    <VariableProperty _id="idA1" name="Cost" value="idCe ide2 idF2 id102"/>
    <VariableProperty _id="idA2" name="Volume" value="idD0 ide3 idF3 id103"/>
    <VariableProperty _id="idA3" name="Depth" value="idD1 ide4 idF4 id104"/>
    <VariableProperty _id="idA4" name="BoxVolume" value="idD2 ide5 idF5 id105"/>
    <VariableProperty _id="idA5" name="Width" value="idD3 ide6 idF6 id106"/>
    <VariableProperty _id="idA6" name="Height" value="idD4 ide7 idF7 id107"/>
    <VariableProperty _id="idA7" name="ContactPatch" value="idD5 ide8 idF8 id108"/>
  </Element>

  <Element _id="idDF" alternative_of="ide0 id130 id14F" externalID="7" id="7" name="Differential_w8">
    <VariableProperty _id="idB5" name="Cost" value="idD6 id129 id147"/>
    <VariableProperty _id="idB6" name="Width" value="idD7 id12A id148"/>
    <VariableProperty _id="idB7" name="BoxVolume" value="idD8 id12B id149"/>
    <VariableProperty _id="idB8" name="Volume" value="idD9 id12C id14A"/>
    <VariableProperty _id="idB9" name="Height" value="idDA id12D id14B"/>
    <VariableProperty _id="idBA" name="Depth" value="idDB id12e id14C"/>
  </Element>

  <Element _id="idDe" alternative="idDD ideF idFF id10F id120 id12F id13e id14e id15D id16C id17B" externalID="2" id="2" name="Tire"/>

  <Element _id="ide1" alternative="ide0 idF1 id101 id111 id121 id130 id13F id14F id15e id16D id17C" externalID="3" id="3" name="Differential"/>

  <Element _id="idF0" alternative_of="idF1 id13F id15e" externalID="6" id="6" name="Differential_w3">
    <VariableProperty _id="idBB" name="Cost" value="ide9 id138 id157"/>
    <VariableProperty _id="idBC" name="Width" value="ideA id139 id158"/>
    <VariableProperty _id="idBD" name="BoxVolume" value="ideB id13A id159"/>
    <VariableProperty _id="idBe" name="Volume" value="ideC id13B id15A"/>
    <VariableProperty _id="idBF" name="Height" value="ideD id13C id15B"/>
    <VariableProperty _id="idC0" name="Depth" value="idee id13D id15C"/>
  </Element>

  <Element _id="id100" alternative_of="id101 id121 id16D" externalID="8" id="8" name="Differential_w13">
    <VariableProperty _id="idA8" name="Cost" value="idF9 id119 id166"/>
    <VariableProperty _id="idA9" name="Width" value="idFA id11A id167"/>
    <VariableProperty _id="idAA" name="BoxVolume" value="idFB id11B id168"/>
    <VariableProperty _id="idAB" name="Volume" value="idFC id11C id169"/>
    <VariableProperty _id="idAC" name="Height" value="idFD id11D id16A"/>
    <VariableProperty _id="idAD" name="Depth" value="idFe id11e id16B"/>
  </Element>

  <Element _id="id110" alternative_of="id111 id17C" externalID="20" id="20" name="Differential_w15">
    <VariableProperty _id="idC8" name="Cost" value="id109 id175"/>
    <VariableProperty _id="idC9" name="Width" value="id10A id176"/>
    <VariableProperty _id="idCA" name="BoxVolume" value="id10B id177"/>
    <VariableProperty _id="idCB" name="Volume" value="id10C id178"/>
    <VariableProperty _id="idCC" name="Height" value="id10D id179"/>
    <VariableProperty _id="idCD" name="Depth" value="id10e id17A"/>
  </Element>

  <Element _id="id11F" alternative_of="id120 id12F id13e" externalID="4" id="4" name="Tire_w15">
    <VariableProperty _id="idAe" name="Cost" value="id112 id122 id131"/>
    <VariableProperty _id="idAF" name="Volume" value="id113 id123 id132"/>
    <VariableProperty _id="idB0" name="Depth" value="id114 id124 id133"/>
    <VariableProperty _id="idB1" name="BoxVolume" value="id115 id125 id134"/>
    <VariableProperty _id="idB2" name="Width" value="id116 id126 id135"/>
    <VariableProperty _id="idB3" name="Height" value="id117 id127 id136"/>
    <VariableProperty _id="idB4" name="ContactPatch" value="id118 id128 id137"/>
  </Element>

  <Element _id="id14D" alternative_of="id14e id15D id16C id17B" externalID="5" id="5" name="Tire_w10">
    <VariableProperty _id="idC1" name="Cost" value="id140 id150 id15F id16e"/>
    <VariableProperty _id="idC2" name="Volume" value="id141 id151 id160 id16F"/>
    <VariableProperty _id="idC3" name="Depth" value="id142 id152 id161 id170"/>
    <VariableProperty _id="idC4" name="BoxVolume" value="id143 id153 id162 id171"/>
    <VariableProperty _id="idC5" name="Width" value="id144 id154 id163 id172"/>
    <VariableProperty _id="idC6" name="Height" value="id145 id155 id164 id173"/>
    <VariableProperty _id="idC7" name="ContactPatch" value="id146 id156 id165 id174"/>
  </Element>

  <NaturalMember _id="idCF" value="0" value_of="idCe idD0 idD1 idD2 idD3 idD4 idD5 idD6 idD7 idD8 idD9 idDA idDB ide2 ide3 ide4 ide5 ide6 ide7 ide8 ide9 ideA ideB ideC ideD idee idF2 idF3 idF4 idF5 idF6 idF7 idF8 idF9 idFA idFB idFC idFD idFe id102 id103 id104 id105 id106 id107 id108 id109 id10A id10B id10C id10D id10e id112 id113 id114 id115 id116 id117 id118 id119 id11A id11B id11C id11D id11e id122 id123 id124 id125 id126 id127 id128 id129 id12A id12B id12C id12D id12e id131 id132 id133 id134 id135 id136 id137 id138 id139 id13A id13B id13C id13D id140 id141 id142 id143 id144 id145 id146 id147 id148 id149 id14A id14B id14C id150 id151 id152 id153 id154 id155 id156 id157 id158 id159 id15A id15B id15C id15F id160 id161 id162 id163 id164 id165 id166 id167 id168 id169 id16A id16B id16e id16F id170 id171 id172 id173 id174 id175 id176 id177 id178 id179 id17A"/>

</DesertBackSystem>


text:
package com.intellij.execution.configurations;

import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleManager;
import com.intellij.openapi.module.ModuleUtilCore;
import com.intellij.openapi.util.Computable;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.WriteExternalException;
import com.intellij.util.xmlb.annotations.Property;
import org.jdom.Element;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

/**
 * Base class for a configuration that is associated with a specific module. For example, Java run configurations use the selected module
 * to determine the run classpath.
 */
public abstract class ModuleBasedConfiguration<ConfigurationModule extends RunConfigurationModule> extends LocatableConfigurationBase implements Cloneable, ModuleRunConfiguration {
  private static final Logger LOG = Logger.getInstance("#com.intellij.execution.configurations.ModuleBasedConfiguration");

  @Property(surroundWithTag = false)
  private final ConfigurationModule myModule;

  @NonNls
  protected static final String TO_CLONE_ELEMENT_NAME = "toClone";

  public ModuleBasedConfiguration(final String name,
                                  @NotNull ConfigurationModule configurationModule, @NotNull ConfigurationFactory factory) {
    super(configurationModule.getProject(), factory, name);
    myModule = configurationModule;
  }

  public ModuleBasedConfiguration(final ConfigurationModule configurationModule, final ConfigurationFactory factory) {
    super(configurationModule.getProject(), factory, "");
    myModule = configurationModule;
  }

  public abstract Collection<Module> getValidModules();

  public ConfigurationModule getConfigurationModule() {
    return myModule;
  }

  public void setModule(final Module module) {
    myModule.setModule(module);
  }

  protected void readModule(final Element element) throws InvalidDataException {
    myModule.readExternal(element);
  }

  protected void writeModule(final Element element) throws WriteExternalException {
    myModule.writeExternal(element);
  }

  public Collection<Module> getAllModules() {
    return Arrays.asList(ModuleManager.getInstance(getProject()).getModules());
  }

  /**
   * @deprecated  method {@link com.intellij.execution.configurations.ConfigurationFactory#createTemplateConfiguration(com.intellij.openapi.project.Project)}
   * would be used instead to avoid wrong custom 'cloning'
   */
  protected ModuleBasedConfiguration createInstance() {
    ModuleBasedConfiguration<ConfigurationModule> configuration =
      (ModuleBasedConfiguration<ConfigurationModule>)getFactory().createTemplateConfiguration(getProject());
    configuration.setName(getName());
    return configuration;
  }

  @Override
  public ModuleBasedConfiguration clone() {
    final Element element = new Element(TO_CLONE_ELEMENT_NAME);
    try {
      writeExternal(element);
      RunConfiguration configuration = getFactory().createTemplateConfiguration(getProject());
      configuration.setName(getName());
      configuration.readExternal(element);

      return (ModuleBasedConfiguration)configuration;
    } catch (InvalidDataException e) {
      LOG.error(e);
      return null;
    } catch (WriteExternalException e) {
      LOG.error(e);
      return null;
    }
  }

  @Override
  @NotNull
  public Module[] getModules() {
    return ApplicationManager.getApplication().runReadAction(new Computable<Module[]>() {
      @Override
      @SuppressWarnings({"ConstantConditions"})
      public Module[] compute() {
        final Module module = getConfigurationModule().getModule();
        return module == null ? Module.EMPTY_ARRAY : new Module[] {module};
      }
    });
  }

  public void restoreOriginalModule(final Module originalModule) {
    if (originalModule == null) return;
    final Module[] classModules = getModules();
    final Set<Module> modules = new HashSet<Module>();
    for (Module classModule : classModules) {
      ModuleUtilCore.collectModulesDependsOn(classModule, modules);
    }
    if (modules.contains(originalModule)) setModule(originalModule);
  }

  public void onNewConfigurationCreated() {
    final RunConfigurationModule configurationModule = getConfigurationModule();
    if (configurationModule.getModule() == null) {
      final Module[] modules = ModuleManager.getInstance(getProject()).getModules();
      configurationModule.setModule(modules.length == 1 ? modules[0] : null);
    }
  }
}


text:
package archive

import (
	"context"
	"strconv"

	"go-common/app/interface/main/tv/model/view"
	arcwar "go-common/app/service/main/archive/api"
	"go-common/library/cache/memcache"
	"go-common/library/log"

	"github.com/pkg/errors"
)

const (
	_prefixRelate     = "al_"
	_prefixViewStatic = "avp_"
	_prefixArchive    = "a3p_"
)

func keyRl(aid int64) string {
	return _prefixRelate + strconv.FormatInt(aid, 10)
}

func keyView(aid int64) string {
	return _prefixViewStatic + strconv.FormatInt(aid, 10)
}

func keyArc(aid int64) string {
	return _prefixArchive + strconv.FormatInt(aid, 10)
}

// AddArcCache add arc cache
func (d *Dao) AddArcCache(aid int64, arc *arcwar.Arc) {
	d.addCache(func() {
		d.addArcCache(context.TODO(), aid, arc)
	})
}

// AddRelatesCache add relates
func (d *Dao) AddRelatesCache(aid int64, rls []*view.Relate) {
	d.addCache(func() {
		d.addRelatesCache(context.TODO(), aid, rls)
	})
}

// AddViewCache add view relates
func (d *Dao) AddViewCache(aid int64, vp *arcwar.ViewReply) {
	d.addCache(func() {
		d.addViewCache(context.TODO(), aid, vp)
	})
}

// addViewCache add relates cache.
func (d *Dao) addViewCache(c context.Context, aid int64, vp *arcwar.ViewReply) (err error) {
	conn := d.arcMc.Get(c)
	key := keyView(aid)
	item := &memcache.Item{Key: key, Object: vp, Flags: memcache.FlagJSON, Expiration: d.expireView}
	if err = conn.Set(item); err != nil {
		err = errors.Wrapf(err, "conn.Set(%s,%v,%d)", key, vp, d.expireView)
	}
	conn.Close()
	return
}

// RelatesCache get relates.
func (d *Dao) RelatesCache(c context.Context, aid int64) (rls []*view.Relate, err error) {
	conn := d.arcMc.Get(c)
	key := keyRl(aid)
	defer conn.Close()
	r, err := conn.Get(key)
	if err != nil {
		if err == memcache.ErrNotFound {
			err = nil
			return
		}
		err = errors.Wrapf(err, "conn.Get(%s)", key)
		return
	}
	if err = conn.Scan(r, &rls); err != nil {
		err = errors.Wrapf(err, "conn.Scan(%s)", r.Value)
	}
	return
}

// addRelatesCache add relates cache.
func (d *Dao) addRelatesCache(c context.Context, aid int64, rls []*view.Relate) (err error) {
	conn := d.arcMc.Get(c)
	key := keyRl(aid)
	item := &memcache.Item{Key: key, Object: rls, Flags: memcache.FlagJSON, Expiration: d.expireRlt}
	if err = conn.Set(item); err != nil {
		err = errors.Wrapf(err, "conn.Set(%s,%v,%d)", key, rls, d.expireRlt)
	}
	conn.Close()
	return
}

// addRelatesCache add relates cache.
func (d *Dao) addArcCache(c context.Context, aid int64, cached *arcwar.Arc) (err error) {
	conn := d.arcMc.Get(c)
	key := keyArc(aid)
	item := &memcache.Item{Key: key, Object: cached, Flags: memcache.FlagJSON, Expiration: d.expireArc}
	if err = conn.Set(item); err != nil {
		err = errors.Wrapf(err, "conn.Set(%s,%v,%d)", key, cached, d.expireArc)
	}
	conn.Close()
	return
}

// arcsCache get archives cache.
func (d *Dao) arcsCache(c context.Context, aids []int64) (cached map[int64]*arcwar.Arc, missed []int64, err error) {
	cached = make(map[int64]*arcwar.Arc, len(aids))
	conn := d.arcMc.Get(c)
	defer conn.Close()
	keys := make([]string, 0, len(aids))
	aidmap := make(map[string]int64, len(aids))
	for _, aid := range aids {
		k := keyArc(aid)
		if _, ok := aidmap[k]; !ok {
			keys = append(keys, k)
			aidmap[k] = aid
		}
	}
	rs, err := conn.GetMulti(keys)
	if err != nil {
		err = errors.Wrapf(err, "conn.GetMulti(%v)", keys)
		return
	}
	for k, r := range rs {
		a := &arcwar.Arc{}
		if err = conn.Scan(r, a); err != nil {
			log.Error("conn.Scan(%s) error(%v)", r.Value, err)
			err = nil
			continue
		}
		cached[aidmap[k]] = a
		// delete hit key
		delete(aidmap, k)
	}
	// missed key
	missed = make([]int64, 0, len(aidmap))
	for _, aid := range aidmap {
		missed = append(missed, aid)
	}
	return
}


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

<widget id="tizen.checkboxes" displayName="Check Boxes"
	smallIcon="checkboxes_small.png" icon.16="checkboxes_16.png"
	category="Form Elements"
	description="The check boxes widget shows on the screen a list of options where one or more can be selected."
	helpCategory="Tizen_Widget"
	helpContents="checkboxes"
	feedbackHeight="25" borderVisible="true"
	guideText="Drop a Check Box Item">

	<relations>
		<content ids="tizen.checkboxitem"/>
	</relations>

	<property name="id"   type="string" displayName="ID"   default="" category="Common">
		<condition name="string-id" error="string-id"/>
	</property>
	<property name="text" type="string" displayName="Text" default="" initValue="Choose:"/>
	<property name="group-text" type="group-text" displayName="Text Style" default="">
		<property name="font-family" type="font@family" displayName="Font Family" selector="#%id% .ui-controlgroup-label"/>
		<property name="font-size" type="font@size" displayName="Font Size" selector="#%id% .ui-controlgroup-label">
			<condition name="integer-min" value="0" error="integer-min"/>
			<condition name="integer-max" value="999" error="integer-max"/>
		</property>
		<property name="text-align" type="css-text-align" displayName="Text Align" selector="#%id% .ui-controlgroup-label"/>
		<property name="font-weight" type="css-font-weight" displayName="Font Weight" selector="#%id% .ui-controlgroup-label"/>
		<property name="font-style" type="css-font-style" displayName="Font Style" selector="#%id% .ui-controlgroup-label"/>
		<property name="text-decoration" type="css-text-decoration" displayName="Text Decoration" selector="#%id% .ui-controlgroup-label"/>
		<property name="color" type="css-color" displayName="Color" selector="#%id% .ui-controlgroup-label"/>
	</property>

	<event name="ontap" displayName="Tap" eventType="event.defaultevent" />
	<event name="ontaphold" displayName="TapHold" eventType="event.defaultevent" />
	<event name="onswipe" displayName="Swipe" eventType="event.defaultevent" />
	<event name="onswipeleft" displayName="SwipeLeft" eventType="event.defaultevent" />
	<event name="onswiperight" displayName="SwipeRight" eventType="event.defaultevent" />
	<!-- <event name="oncreate" displayName="Create" eventType="event.defaultevent" /> -->

	<xsl-for-output xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
		<xsl:template match="tizen.checkboxes">
			<div data-role="fieldcontain">
				<xsl:call-template name="print-part-id"/>
				<xsl:apply-templates select="@id" mode="simple-property"/>
				<fieldset data-role="controlgroup" data-type="vertical">
					<xsl:if test="@text[string-length(.) > 0]">
						<legend>
							<xsl:value-of select="@text"/>
						</legend>
					</xsl:if>
					<xsl:apply-templates select="html.text"/>
					<xsl:apply-templates select="tizen.checkboxitem"/>
				</fieldset>
			</div>
		</xsl:template>
	</xsl-for-output>
</widget>


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>net.nicoll.scratches</groupId>
	<artifactId>spring41-caching-improvements</artifactId>
	<version>0.1-SNAPSHOT</version>
	<packaging>jar</packaging>
	<name>Caching improvements in Spring 4.1</name>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

		<spring.version>4.1.3.RELEASE</spring.version>
		<slf4j.version>1.7.5</slf4j.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context-support</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.cache</groupId>
			<artifactId>cache-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-framework-bom</artifactId>
				<version>${spring.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>

			<dependency>
				<groupId>javax.cache</groupId>
				<artifactId>cache-api</artifactId>
				<version>1.0.0</version>
			</dependency>

			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-log4j12</artifactId>
				<version>${slf4j.version}</version>
			</dependency>
			<dependency>
				<groupId>log4j</groupId>
				<artifactId>log4j</artifactId>
				<version>1.2.17</version>
			</dependency>

			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.11</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
		</plugins>

		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<repositories>
		<repository>
			<id>spring-snapshot</id>
			<name>Springframework Snapshot Repository</name>
			<url>http://repo.spring.io/snapshot</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>

</project>


text:
package org.gedantic.analyzer.impl;

import java.util.ArrayList;
import java.util.List;

import org.gedantic.analyzer.AAnalyzer;
import org.gedantic.analyzer.AnalysisResult;
import org.gedantic.analyzer.AnalysisTag;
import org.gedcom4j.model.Gedcom;
import org.gedcom4j.model.Individual;
import org.gedcom4j.model.PersonalName;

/**
 * Analysis to find people with only a surname (no given name)
 *
 * @author frizbog
 */
public class PeopleWithOnlySurnamesAnalyzer extends AAnalyzer {

    /**
     * {@inheritDoc}
     */
    @Override
    public List<AnalysisResult> analyze(Gedcom g) {

        List<AnalysisResult> result = new ArrayList<>();

        for (Individual i : g.getIndividuals().values()) {
            if (i.getNames() == null || i.getNames().isEmpty()) {
                continue;
            }
            boolean hadSurname = false;
            boolean somethingOtherThanSurname = false;
            for (PersonalName pn : i.getNames()) {
                if (isSpecified(pn.getSurname())) {
                    // Don't count empty surnames
                    hadSurname = true;
                }

                if (pn.getBasic() != null) {

                    if (pn.getBasic().contains("/") && !pn.getBasic().contains("//")) {
                        hadSurname = true;
                    }

                    // Characters before a slash would be something other than a surname
                    int firstSlash = pn.getBasic().indexOf('/');
                    if (firstSlash > 0) {
                        somethingOtherThanSurname = true;
                        break; // Don't need to check any more names
                    }
                }

                // Check the name components too
                if (isSpecified(pn.getGivenName()) || isSpecified(pn.getNickname())) {
                    somethingOtherThanSurname = true;
                    break; // Don't need to check any more names
                }
            }
            if (somethingOtherThanSurname || !hadSurname) {
                // Next person
                continue;
            }
            result.add(new AnalysisResult("Individual", i.getFormattedName(), null, null, "No name other than surname available."));
        }

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getDescription() {
        return "People who have no given (first) names or nicknames, just surnames";
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getName() {
        return "People with only surnames";
    }

    @Override
    public AnalysisTag[] getTags() {
        return new AnalysisTag[] { AnalysisTag.MISSING_DATA, AnalysisTag.INDIVIDUALS };
    }

}


text:
<!doctype html>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<title>reveal.js</title>

		<link rel="stylesheet" href="dist/reset.css">
		<link rel="stylesheet" href="dist/reveal.css">
		<link rel="stylesheet" href="dist/theme/black.css" id="theme">

		<link rel="stylesheet" href="plugin/highlight/monokai.css" id="highlight-theme">

Slide 1

Slide 2


text:
class Geometry {
public:
    Geometry();
    ~Geometry();

    virtual void Render() = 0;

protected:
    virtual void GenerateVertexBuffer() = 0;
    virtual void GenerateVertexArray() = 0;
    virtual void GenerateIndexBuffer(unsigned int* indexData, unsigned int indexCount);

    /// Vertex buffer.
    GLuint vertexBuffer;

    /// Index buffer.
    GLuint indexBuffer;

    /// Vertex array.
    GLuint vertexArray;

private:
    unsigned int indexCount;

};


text:
require "concise_logging/version"
require "concise_logging/log_middleware"
require "concise_logging/log_subscriber"
require "concise_logging/railtie" if defined? Rails


text:
<?php

namespace Oro\Bundle\NoteBundle\Entity;

use Symfony\Component\Security\Core\User\UserInterface;

use Doctrine\ORM\Mapping as ORM;

use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
use Oro\Bundle\NoteBundle\Model\ExtendNote;
use Oro\Bundle\UserBundle\Entity\User;
use Oro\Bundle\OrganizationBundle\Entity\Organization;

/**
 * @ORM\Entity(repositoryClass="Oro\Bundle\NoteBundle\Entity\Repository\NoteRepository")
 * @ORM\Table(name="oro_note")
 * @Config(
 *      defaultValues={
 *          "entity"={
 *              "icon"="icon-comment-alt"
 *          },
 *          "ownership"={
 *              "owner_type"="USER",
 *              "owner_field_name"="owner",
 *              "owner_column_name"="user_owner_id",
 *              "organization_field_name"="organization",
 *              "organization_column_name"="organization_id"
 *          },
 *          "security"={
 *              "type"="ACL",
 *              "group_name"=""
 *          },
 *          "activity"={
 *              "immutable"=true
 *          }
 *      }
 * )
 */
class Note extends ExtendNote
{
    const ENTITY_NAME = 'Oro\Bundle\NoteBundle\Entity\Note';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="Oro\Bundle\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="user_owner_id", referencedColumnName="id", onDelete="SET NULL")
     */
    protected $owner;

    /**
     * @var Organization
     *
     * @ORM\ManyToOne(targetEntity="Oro\Bundle\OrganizationBundle\Entity\Organization")
     * @ORM\JoinColumn(name="organization_id", referencedColumnName="id", onDelete="SET NULL")
     */
    protected $organization;

    /**
     * @var string $message
     *
     * @ORM\Column(name="message", type="text", nullable=false)
     */
    protected $message;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="Oro\Bundle\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="updated_by_user_id", referencedColumnName="id", onDelete="SET NULL")
     */
    protected $updatedBy;

    /**
     * @var \Datetime $created
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
     * @ConfigField(
     *      defaultValues={
     *          "entity"={
     *              "label"="oro.ui.created_at"
     *          }
     *      }
     * )
     */
    protected $createdAt;

    /**
     * @var \Datetime $updated
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=false)
     * @ConfigField(
     *      defaultValues={
     *          "entity"={
     *              "label"="oro.ui.updated_at"
     *          }
     *      }
     * )
     */
    protected $updatedAt;

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

    /**
     * @param \Datetime $createdAt
     *
     * @return Note
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * @return \Datetime
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * @param string $message
     *
     * @return Note
     */
    public function setMessage($message)
    {
        $this->message = $message;

        return $this;
    }

    /**
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * @param \Datetime $updatedAt
     *
     * @return Note
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updatedAt = $updatedAt;

        return $this;
    }

    /**
     * @return \Datetime
     */
    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }

    /**
     * Not using type hint due to the fact that entity setter can be called when no logged user available
     * So $updatedBy will be null
     *
     * @param UserInterface|null $updatedBy
     *
     * @return Note
     */
    public function setUpdatedBy($updatedBy)
    {
        $this->updatedBy = $updatedBy;

        return $this;
    }

    /**
     * @return UserInterface
     */
    public function getUpdatedBy()
    {
        return $this->updatedBy;
    }

    /**
     * @param UserInterface|null $owningUser
     *
     * @return Note
     */
    public function setOwner($owningUser)
    {
        $this->owner = $owningUser;

        return $this;
    }

    /**
     * @return UserInterface
     */
    public function getOwner()
    {
        return $this->owner;
    }

    /**
     * Set organization
     *
     * @param Organization $organization
     * @return Note
     */
    public function setOrganization($organization)
    {
        $this->organization = $organization;

        return $this;
    }

    /**
     * Get organization
     *
     * @return Organization
     */
    public function getOrganization()
    {
        return $this->organization;
    }
}


text:
<?
  require_once('lib/session.php');

  if (!isset($_SESSION['username']) || !isset($_SESSION['password']))
  {
    header('Location: /');
    exit();
  }

  require_once('mysql.php');

  $username = $_SESSION['username'];
  $password = $_SESSION['password'];
  $res = mysql_query("SELECT id FROM users WHERE name='{$username}' AND password=MD5('{$password}')", $db);

  if (!@mysql_num_rows($res))
  {
    ClearSession();
    mysql_close($db);
    header('Location: /');
    exit();
  }
  $userid = mysql_result($res, 0, 0);

  require_once('config.php');
  $date = time();
  if (isset($_SESSION['last_activity']))
  {
    if ($date - $_SESSION['last_activity'] >= $config['session_timeout'])
    {
      /* TIMEOUT! */
      ClearSession();
      mysql_close($db);
      header('Location: /');
      exit();
    }
  }
  $_SESSION['last_activity'] = $date;
?>

    <title>DNS Control Panel - <?=$username?></title>
    <link rel="stylesheet" type="text/css" href="panel.css" />

<?
  /* Menu */
  require_once('lib/tasks.php');

  $domain = array();
  if (isset($_SESSION['domain']))
  {
    $res = mysql_query("SELECT id,domain FROM domains WHERE owner={$userid} AND id={$_SESSION['domain']}", $db);
    if (!@mysql_num_rows($res))
    {
      unset($_SESSION['domain']);
    }
    else
    {
      $domain['id'] = mysql_result($res, 0, 0);
      $domain['name'] = mysql_result($res, 0, 1);
    }
  }

  if (isset($domain['id']))
  {
    require_once('lib/domain.php');
  }
?>

<?
  /* Section */
  if (!isset($_GET['action']))
  {
    $action = 'select';
  }
  else
  {
    switch ($_GET['action'])
    {
      case 'select': $action = 'select'; break;
      case 'logs': $action = 'logs'; break;
      case 'logout': $action = 'logout'; break;
      case 'selectdomain': $action = 'selectdomain'; break;
      case 'reg': $action = 'reg'; break;
      case 'soa': $action = 'soa'; break;
      case 'mx': $action = 'mx'; break;
      default: $action = 'select'; break;
    }
  }
?>

<? require_once('lib/action.' . $action . '.php'); ?>

<?
  mysql_close($db);
?>


text:
require 'spec_helper'

# Write unit tests with ChefSpec - https://github.com/sethvargo/chefspec#readme
describe 'octohost::apt' do
  cached(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }

  it 'adds the packagecloud repo' do
    expect(chef_run).to create_packagecloud_repo('darron/octohost')
  end

  before do
    #
  end
end


text: ..\AutoGenXml\bin\Debug\AutoGenXml.exe -C %1 -T %2


text:
.modal-dialog{ z-index:9999;}

body{ font-family: Microsoft Yahei;}
ul,li{ padding: 0; margin: 0; list-style: none;}
.mergeRow{ margin-left: 0; margin-right: 0;}
.mergeRow [class^=col-]{ padding-left: 0; padding-right: 0;}

.col-red{ color: #f30;}
.col-blue{ color: #0862A8;}
.btn-darkblue{ background:#003865; color:#fff;}
.btn-darkblue.focus,.btn-darkblue:focus{color:#fff;background-color:#003865;}
.btn-darkblue:hover{color:#fff; background-color:#0F3E62;}
.navbar-toggle{ background:#eee;}
.navbar-toggle .icon-bar{ background:#fff;}

.imgBlock{ display: block; margin: 0 auto;}

.topwrap{ background:#19527F; }
.infos{ padding:42px 68px 0 68px;}
.page-header{border-left: 10px #95BBEC solid; font-size:18px; font-weight: bold; padding-left:20px;}

.company{ background:#f5f5f5;}

/*.goodsList{}*/
.goodsCenter{ width:202px; height: 222px; display:table;
    text-align:center; display: inline-block; vertical-align: top; margin:0 10px; margin-bottom:20px; -webkit-tap-highlight-color: transparent;}
.goodsCenter .goodsIteam{ width:200px; height: 180px; display:table;  vertical-align:middle; border:1px #ddd solid; margin-bottom:10px; overflow: hidden;}
.goodsCenter .goodsIteam:hover{ border-color: #95BBEC;}
.goodsCenter .goodsIteam span{ display:table-cell; vertical-align:middle;}
.goodsCenter .name{ display: block; text-align: center; font-weight: bold; height: 24px; overflow: hidden; color:#333;}
.goodsCenter .name:hover{color:#1A4374; text-decoration: none;}

/*.comanyList{}*/
.companyCenter{ width:182px; height: 120px;display:table;
    text-align:center; display: inline-block; vertical-align: top; margin:0 20px; margin-bottom:20px;-webkit-tap-highlight-color: transparent; overflow: hidden;}
.companyCenter .companyIteam{ width:180px; height: 118px; display:table;  vertical-align:middle; border:1px #ddd solid; overflow: hidden;}
.companyCenter .companyIteam span{ display:table-cell; vertical-align:middle;}

.contactBox{background:#f8f8f8;}
.contactUl{padding-top: 20px;}
.contactUl li{height: 34px;}
.contactUl li .name{ display: inline-block; width: 100px; font-family: Microsoft Yahei; font-weight:bold;}

.footer{ height: 34px; line-height: 30px; margin-top:30px; background:#19527F; color:#fff;}

.infos_pic,
.contact_pic{ height: 260px;}

.modalInfo {border-radius: 0; -webkit-border-radius: 0;}
.modalInfo .modal-header{ background:#2282CC; color: #fff;}
.modalInfoUl{padding-top: 20px;}
.modalInfoUl li{line-height: 34px;}
.modalInfoUl li .name{ display: inline-block; width:80px; font-family: Microsoft Yahei; font-weight:bold;}
.details{ margin-top: 20px;}
.extCon p{ padding:0 20px;}
.extCon img{ display: block; margin:0 auto; max-width: 100%;}

.go_back_top{width: 40px; height: 40px; position: fixed; right: 10px; bottom:10px;}

@media only screen and (min-width: 100px) and (max-width: 640px) {
	.infos{padding:20px;}
	.infos_pic,
	.contact_pic{ width: 100%; height: auto;}

	.goodsList,
	.comanyList{ text-align: center;}
	.contactUl{ padding:0 20px;}
}


text:
package com.lzy.okgo;

import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;

import com.lzy.okgo.cache.CacheEntity;
import com.lzy.okgo.cache.CacheMode;
import com.lzy.okgo.cookie.CookieJarImpl;
import com.lzy.okgo.https.HttpsUtils;
import com.lzy.okgo.interceptor.HttpLoggingInterceptor;
import com.lzy.okgo.model.HttpHeaders;
import com.lzy.okgo.model.HttpParams;
import com.lzy.okgo.request.DeleteRequest;
import com.lzy.okgo.request.GetRequest;
import com.lzy.okgo.request.HeadRequest;
import com.lzy.okgo.request.OptionsRequest;
import com.lzy.okgo.request.PatchRequest;
import com.lzy.okgo.request.PostRequest;
import com.lzy.okgo.request.PutRequest;
import com.lzy.okgo.request.TraceRequest;
import com.lzy.okgo.utils.HttpUtils;

import java.util.concurrent.TimeUnit;
import java.util.logging.Level;

import okhttp3.Call;
import okhttp3.OkHttpClient;

/**
 * ================================================
 * 作    者:jeasonlzy(廖子尧)Github地址:https://github.com/jeasonlzy
 * 版    本:1.0
 * 创建日期:2016/1/12
 * 描    述:网络请求的入口类
 * 修订历史:
 * ================================================
 */
public class OkGo {
    public static long DEFAULT_MILLISECONDS = 60000;      //默认的超时时间
    public static long REFRESH_TIME = 300;                      //回调刷新时间(单位ms)

    private Application context;            //全局上下文
    private Handler mDelivery;              //用于在主线程执行的调度器
    private OkHttpClient okHttpClient;      //ok请求的客户端
    private HttpParams mCommonParams;       //全局公共请求参数
    private HttpHeaders mCommonHeaders;     //全局公共请求头
    private int mRetryCount;                //全局超时重试次数
    private CacheMode mCacheMode;           //全局缓存模式
    private long mCacheTime;                //全局缓存过期时间,默认永不过期

    private OkGo() {
        mDelivery = new Handler(Looper.getMainLooper());
        mRetryCount = 3;
        mCacheTime = CacheEntity.CACHE_NEVER_EXPIRE;
        mCacheMode = CacheMode.NO_CACHE;

        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor("OkGo");
        loggingInterceptor.setPrintLevel(HttpLoggingInterceptor.Level.BODY);
        loggingInterceptor.setColorLevel(Level.INFO);
        builder.addInterceptor(loggingInterceptor);

        builder.readTimeout(OkGo.DEFAULT_MILLISECONDS, TimeUnit.MILLISECONDS);
        builder.writeTimeout(OkGo.DEFAULT_MILLISECONDS, TimeUnit.MILLISECONDS);
        builder.connectTimeout(OkGo.DEFAULT_MILLISECONDS, TimeUnit.MILLISECONDS);

        HttpsUtils.SSLParams sslParams = HttpsUtils.getSslSocketFactory();
        builder.sslSocketFactory(sslParams.sSLSocketFactory, sslParams.trustManager);
        builder.hostnameVerifier(HttpsUtils.UnSafeHostnameVerifier);
        okHttpClient = builder.build();
    }

    public static OkGo getInstance() {
        return OkGoHolder.holder;
    }

    private static class OkGoHolder {
        private static OkGo holder = new OkGo();
    }

    /** get请求 */
    public static <T> GetRequest<T> get(String url) {
        return new GetRequest<>(url);
    }

    /** post请求 */
    public static <T> PostRequest<T> post(String url) {
        return new PostRequest<>(url);
    }

    /** put请求 */
    public static <T> PutRequest<T> put(String url) {
        return new PutRequest<>(url);
    }

    /** head请求 */
    public static <T> HeadRequest<T> head(String url) {
        return new HeadRequest<>(url);
    }

    /** delete请求 */
    public static <T> DeleteRequest<T> delete(String url) {
        return new DeleteRequest<>(url);
    }

    /** options请求 */
    public static <T> OptionsRequest<T> options(String url) {
        return new OptionsRequest<>(url);
    }

    /** patch请求 */
    public static <T> PatchRequest<T> patch(String url) {
        return new PatchRequest<>(url);
    }

    /** trace请求 */
    public static <T> TraceRequest<T> trace(String url) {
        return new TraceRequest<>(url);
    }

    /** 根据Tag取消请求 */
    public static void cancelTag(OkHttpClient client, Object tag) {
        if (client == null || tag == null) return;
        for (Call call : client.dispatcher().queuedCalls()) {
            if (tag.equals(call.request().tag())) {
                call.cancel();
            }
        }
        for (Call call : client.dispatcher().runningCalls()) {
            if (tag.equals(call.request().tag())) {
                call.cancel();
            }
        }
    }

    /** 取消所有请求请求 */
    public static void cancelAll(OkHttpClient client) {
        if (client == null) return;
        for (Call call : client.dispatcher().queuedCalls()) {
            call.cancel();
        }
        for (Call call : client.dispatcher().runningCalls()) {
            call.cancel();
        }
    }

    public Handler getDelivery() {
        return mDelivery;
    }

    /** 必须在全局Application先调用,获取context上下文,否则缓存无法使用 */
    public OkGo init(Application app) {
        context = app;
        return this;
    }

    /** 获取全局上下文 */
    public Context getContext() {
        HttpUtils.checkNotNull(context, "please call OkGo.getInstance().init() first in application!");
        return context;
    }

    public OkHttpClient getOkHttpClient() {
        HttpUtils.checkNotNull(okHttpClient, "please call OkGo.getInstance().setOkHttpClient() first in application!");
        return okHttpClient;
    }

    /** 超时重试次数 */
    public OkGo setRetryCount(int retryCount) {
        if (retryCount < 0) throw new IllegalArgumentException("retryCount must > 0");
        mRetryCount = retryCount;
        return this;
    }

    /** 超时重试次数 */
    public int getRetryCount() {
        return mRetryCount;
    }

    /** 全局的缓存模式 */
    public OkGo setCacheMode(CacheMode cacheMode) {
        mCacheMode = cacheMode;
        return this;
    }

    /** 获取全局的缓存模式 */
    public CacheMode getCacheMode() {
        return mCacheMode;
    }

    /** 全局的缓存过期时间 */
    public OkGo setCacheTime(long cacheTime) {
        if (cacheTime <= -1) cacheTime = CacheEntity.CACHE_NEVER_EXPIRE;
        mCacheTime = cacheTime;
        return this;
    }

    /** 获取全局的缓存过期时间 */
    public long getCacheTime() {
        return mCacheTime;
    }

    /** 获取全局公共请求参数 */
    public HttpParams getCommonParams() {
        return mCommonParams;
    }

    /** 添加全局公共请求参数 */
    public OkGo addCommonParams(HttpParams commonParams) {
        if (mCommonParams == null) mCommonParams = new HttpParams();
        mCommonParams.put(commonParams);
        return this;
    }

    /** 获取全局公共请求头 */
    public HttpHeaders getCommonHeaders() {
        return mCommonHeaders;
    }

    /** 添加全局公共请求参数 */
    public OkGo addCommonHeaders(HttpHeaders commonHeaders) {
        if (mCommonHeaders == null) mCommonHeaders = new HttpHeaders();
        mCommonHeaders.put(commonHeaders);
        return this;
    }

    /** 必须设置 */
    public OkGo setOkHttpClient(OkHttpClient okHttpClient) {
        HttpUtils.checkNotNull(okHttpClient, "okHttpClient == null");
        this.okHttpClient = okHttpClient;
        return this;
    }

    /** 获取全局的cookie实例 */
    public CookieJarImpl getCookieJar() {
        return (CookieJarImpl) okHttpClient.cookieJar();
    }

    /** 取消所有请求请求 */
    public void cancelAll() {
        for (Call call : getOkHttpClient().dispatcher().queuedCalls()) {
            call.cancel();
        }
        for (Call call : getOkHttpClient().dispatcher().runningCalls()) {
            call.cancel();
        }
    }

    /** 根据Tag取消请求 */
    public void cancelTag(Object tag) {
        if (tag == null) return;
        for (Call call : getOkHttpClient().dispatcher().queuedCalls()) {
            if (tag.equals(call.request().tag())) {
                call.cancel();
            }
        }
        for (Call call : getOkHttpClient().dispatcher().runningCalls()) {
            if (tag.equals(call.request().tag())) {
                call.cancel();
            }
        }
    }
}


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

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Overview List (BurningImage)
</TITLE>

<META NAME="date" CONTENT="2010-06-27">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

All Classes

Packages

pl.burningice.plugins.image.ast

pl.burningice.plugins.image.ast.intarface


text:
"""BIG-IP® Local Traffic Manager (LTM) rule module.

REST URI
    ``http://localhost/mgmt/tm/ltm/rule``

GUI Path
    ``Local Traffic --> Rules``

REST Kind
    ``tm:ltm:rule:*``
"""

from f5.bigip.resource import Collection
from f5.bigip.resource import Resource

class Rules(Collection):
    """BIG-IP® LTM rule collection"""
    def __init__(self, ltm):
        super(Rules, self).__init__(ltm)
        self._meta_data['allowed_lazy_attributes'] = [Rule]
        self._meta_data['attribute_registry'] =\
            {'tm:ltm:rule:rulestate': Rule}

class Rule(Resource):
    """BIG-IP® LTM rule resource"""
    def __init__(self, rule_s):
        super(Rule, self).__init__(rule_s)
        self._meta_data['required_json_kind'] = 'tm:ltm:rule:rulestate'
        self._meta_data['required_creation_parameters'].update(
            ('name', 'partition', 'apiAnonymous'))


text:
#ifndef BOOST_ALIGN_DETAIL_MAX_ALIGN_HPP
#define BOOST_ALIGN_DETAIL_MAX_ALIGN_HPP

#include <cstddef>

namespace boost {
    namespace alignment {
        namespace detail {
            template<std::size_t A, std::size_t B>
            struct max_align {
                enum {
                    value = (A > B) ? A : B
                };
            };
        }
    }
}

#endif


text:
from datetime import datetime
import requests
from pychroner import PluginMeta, PluginType

@PluginMeta(PluginType.Schedule, twitterAccount="JPMCPvPNews", multipleHour=3, minutes=[0])
def do(pluginApi):
    api = pluginApi.getTwitterAccount().getTweepyHandler()

    text = f"【グラフ】{datetime.now().strftime('%H:%M')}現在のオンラインユーザー数推移グラフです。"

    url = "https://docs.google.com/spreadsheets/d/1Ri_KjvmwXV-ObLT6crHrUcKCSdmmBRgXHt6Xxlqat28/pubchart?oid=3&format=image"
    imagePath = f"{pluginApi.dirs.tmp}/online.png"
    with open(imagePath, "wb") as f:
        f.write(requests.get(url).content)

    api.update_with_media(status=text, filename=imagePath)


text:
package org.dspace.app.xmlui.aspect.submission.workflow;

import org.apache.avalon.framework.parameters.Parameters;
import org.apache.cocoon.acting.AbstractAction;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.log4j.Logger;
import org.dspace.app.xmlui.utils.ContextUtil;
import org.dspace.core.Context;
import org.dspace.core.LogManager;
import org.dspace.workflow.PoolTask;
import org.dspace.workflow.WorkflowItem;
import org.dspace.workflow.WorkflowManager;
import org.dspace.workflow.WorkflowRequirementsManager;

import java.util.Map;

/**
 * User: kevin (kevin at atmire.com)
 * Date: 13-aug-2010
 * Time: 15:30:53
 */
public class UnclaimTasksAction extends AbstractAction
{

    private static final Logger log = Logger.getLogger(UnclaimTasksAction.class);

    public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception {
        Request request = ObjectModelHelper.getRequest(objectModel);
        Context context = ContextUtil.obtainContext(objectModel);

    	// Or the user selected a checkbox full of workflow IDs
    	String[] workflowIDs = request.getParameterValues("workflowandstepID");
    	if (workflowIDs != null)
    	{
    		for (String workflowID : workflowIDs)
    		{
                WorkflowItem workflowItem = WorkflowItem.find(context, Integer.valueOf(workflowID.split(":")[0]));

                PoolTask pooledTask = PoolTask.findByWorkflowIdAndEPerson(context, workflowItem.getID(), context.getCurrentUser().getID());
                WorkflowManager.deletePooledTask(context, workflowItem, pooledTask);

                WorkflowRequirementsManager.removeClaimedUser(context, workflowItem, context.getCurrentUser(), workflowID.split(":")[1]);
                log.info(LogManager.getHeader(context, "unclaim_workflow", "workflow_id=" + workflowItem.getID()));

            }
        }
        return null;
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.viewpager.widget.ViewPager
        android:id="@+id/main_pager_search"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    </androidx.viewpager.widget.ViewPager>

</LinearLayout>