text:
package de.peeeq.wurstio.objectreader;

import java.io.IOException;
import java.util.List;

import com.google.common.collect.Lists;

public class ObjectTable {

	private List<ObjectDefinition> objectDefinitions = Lists.newArrayList();
	private ObjectFileType fileType;

	public ObjectTable(ObjectFileType fileType2) {
		this.fileType = fileType2;
	}

	public void add(ObjectDefinition objDef) {
		objectDefinitions.add(objDef);
	}

	static ObjectTable readFromStream(BinaryDataInputStream in, ObjectFileType fileType) throws IOException {
		ObjectTable objectTable = new ObjectTable(fileType);

		int numberOfObjects = in.readInt();

		for (int i = 0; i < numberOfObjects; i++) {
			ObjectDefinition objDef = ObjectDefinition.readFromStream(in, objectTable);
			objectTable.add(objDef);
		}

		return objectTable;
	}

	public List<ObjectDefinition> getObjectDefinitions() {
		return objectDefinitions;
	}

	public void writeToStream(BinaryDataOutputStream out, ObjectFileType fileType) throws IOException {

		// write number of objects
		out.writeInt(objectDefinitions.size());

		for (ObjectDefinition od : objectDefinitions) {
			od.writeToStream(out, fileType);
		}

	}

	public void prettyPrint(StringBuilder sb) {
		for (ObjectDefinition od : objectDefinitions) {
			od.prettyPrint(sb);
		}

	}

	public void exportToWurst(Appendable out) throws IOException {
		for (ObjectDefinition od : objectDefinitions) {
			od.exportToWurst(out);
		}

	}

	public ObjectFileType getFileType() {
		return fileType;
	}

	public boolean isEmpty() {
		return objectDefinitions.isEmpty();
	}

}


text:
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace CnSharp.VisualStudio.NuPack.Util
{
    public class XmlSerializerHelper
    {
        public static T Copy<T>(T t)
        {
            return LoadObjectFromXmlString<T>(GetXmlStringFromObject(t));
        }

        public static string GetXmlStringFromObject<T>(T obj)
        {
            string str2;
            using (var stream = new MemoryStream())
            {
                using (var writer = new XmlTextWriter(stream, Encoding.UTF8))
                {
                    writer.Indentation = 3;
                    writer.IndentChar = ' ';
                    writer.Formatting = Formatting.Indented;
                    new XmlSerializer(obj.GetType()).Serialize(writer, obj);
                    var str = Encoding.UTF8.GetString(stream.ToArray());
                    var index = str.IndexOf("?>");
                    if (index > 0)
                    {
                        str = str.Substring(index + 2);
                    }
                    str2 = str.Trim();
                }
            }
            return str2;
        }

        public static T LoadObjectFromXml<T>(string filename)
        {
            using (var reader = new StreamReader(filename, Encoding.UTF8))
            {
                var serializer = new XmlSerializer(typeof (T));
                return (T) serializer.Deserialize(reader);
            }
        }

        public static T LoadObjectFromXmlString<T>(string xml)
        {
            var serializer = new XmlSerializer(typeof (T));
            using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
            {
                return (T) serializer.Deserialize(stream);
            }
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
import React, { Component } from 'react';
import ReactTable from 'react-table';
import 'react-table/react-table.css';
import PropTypes from 'prop-types';

class MovetextViewer extends Component {
	shouldComponentUpdate(nextProps) {
		if (this.props.rows.length !== nextProps.rows.length ||
        this.props.halfMove !== nextProps.halfMove) {
			return true;
		}
		return false;
	}

	componentDidMount() {
		this._scrollToActiveMove();
	}

	componentDidUpdate() {
		this._scrollToActiveMove();
	}

	_scrollToActiveMove() {
		if (this.activeMove)
			this.pgnContainer.scrollTop = this.activeMove.offsetTop;
		else
      this.pgnContainer.scrollTop = 0;
	}

	render () {
    // return a fn that renders a cell w/ appropriate highlighting, 1 for white 2 for black
		const renderCell = (color) => {
			return ({value, row}) => {
				const cellMove = (row[0]-1)*2 + color;
				const backgroundColor = cellMove === this.props.halfMove ? 'yellow' : '#FFF';
				return (
           this.props.moveHead(cellMove)}
            ref={(cell) => {if (cellMove === this.props.halfMove){this.activeMove = cell;}}}
            style={{backgroundColor}}
          >
            {value}

				);
			};
		};
		const columnDefaults = {
			sortable: false
		};
		const columns = [{
			accessor: '0',
			id: 'move',
			width: 40
		},{
			accessor: '1',
			id: 'white',
			width: 90,
			render: renderCell(1)
		}, {
			accessor: '2',
			id: 'black',
			width: 90,
			render: renderCell(2)
		}].map(column => Object.assign({}, columnDefaults, column));
		return (

 {this.pgnContainer = pgnContainer;}}
        style={{height: 200, overflowY: 'scroll'}}
      >
        <ReactTable
          data={this.props.rows}
          columns={columns}
          showPagination={false}
          pageSize={this.props.rows.length}
        />

		);
	}
}

MovetextViewer.propTypes = {
	rows: PropTypes.array,
	halfMove: PropTypes.number,
	moveHead: PropTypes.func
};

class PgnControls extends Component {
	render() {
		return (

        <button value={-Infinity} onClick={this.props.moveHead}>{"|<"}</button>
        <button value={-1} onClick={this.props.moveHead}>{"<"}</button>
        <button value={1} onClick={this.props.moveHead}>{">"}</button>
        <button value={Infinity} onClick={this.props.moveHead}>{">|"}</button>

		);
	}
}

PgnControls.propTypes = {
	moveHead: PropTypes.func.isRequired
};

class GameHistory extends Component {

	constructor(props) {
		super(props);
		const movetext = props.getMovetext(props.pgn, props.newlineChar);
		const rows = props.getRows(movetext, props.newlineChar);
		const maxMove = props.pgn ? (rows.length - 1) * 2 + (rows[rows.length - 1].length - 1) : 0;
		this.state = {
			header: props.getHeader(props.pgn, props.newlineChar),
			movetext,
			maxMove: maxMove,
			rows
		};
	}

	componentWillReceiveProps(nextProps) {
		if (nextProps.pgn !== this.props.pgn) {
			const movetext = nextProps.getMovetext(nextProps.pgn, nextProps.newlineChar);
			const rows = nextProps.getRows(movetext, nextProps.newlineChar);
			const maxMove = nextProps.pgn ? (rows.length - 1) * 2 + (rows[rows.length - 1].length - 1) : 0;
			this.setState({
				header: nextProps.getHeader(nextProps.pgn, nextProps.newlineChar),
				maxMove,
				movetext,
				rows
			});
		}
	}

	_onMovePgnHead(evt) {
		const limit = Number(evt.target.value);
		let currentHalfMove = this.props.currentMove;
		const direction = limit > 0 ? 1 : -1;
		let target;
		if (direction === 1) {
			target = Math.min(currentHalfMove + limit, this.state.maxMove);
		} else {
			target = Math.max(currentHalfMove + limit, 0); // Limit will be negative
		}
		this.props.moveHead(target);

	}

	render () {
		return (

        <MovetextViewer
          halfMove={this.props.currentMove}
          moveHead={this.props.moveHead}
          pgnHeight={this.props.pgnHeight}
          pgnWidth={this.props.pgnWidth}
          rows={this.props.getRows(this.props.getMovetext(this.props.pgn, this.props.newlineChar), this.props.newlineChar)}
        />
        <PgnControls moveHead={this._onMovePgnHead.bind(this)}/>

		);
	}
}

GameHistory.propTypes = {
	currentMove: PropTypes.number,
	getHeader: PropTypes.func,
	getMovetext: PropTypes.func,
	getResult: PropTypes.func,
	getRows: PropTypes.func,
	moveHead: PropTypes.func,
	newlineChar: PropTypes.string.isRequired,
	pgn: PropTypes.string,
	pgnHeight: PropTypes.number,
	pgnWidth: PropTypes.number,
	sloppy: PropTypes.bool
};

const defaultGetHeader = (pgn, newlineChar) => {
	const headerRegex = new RegExp('^(' + newlineChar + '|.)*' +
																	'(?:' + newlineChar + '){2}');
	const result = headerRegex.exec(pgn);
	return result ? result[0] : '';
};

const defaultGetMovetext = (pgn, newlineChar) => {
	const movetextRegex = new RegExp('(?:' + newlineChar + '){2}' +
																		'(' + newlineChar + '|.)*$');
	const result = movetextRegex.exec(pgn);
	return result ? result[0] : '';
};

const defaultGetRows = (movetext, newlineChar) => { // eslint-diable-line no-unused-vars
	newlineChar;
	let ms = movetext;
	// console.log('movetext ==', movetext);
	if (!ms) {
		return [];
	}
	/* delete comments */
	ms = ms.replace(/(\{[^}]+\})+?/g, '');

	/* delete recursive annotation variations */
	const ravRegex = /(\([^\(\)]+\))+?/g;
	while (ravRegex.test(ms)) {
		ms = ms.replace(ravRegex, '');
	}

	/* delete numeric annotation glyphs */
	ms = ms.replace(/\$\d+/g, '');

	/* Delete result */
	ms = ms.replace(/(?:1-0|0-1|1\/2-1\/2|\*)$/, '');

	/* Delete any double spaces */
	ms = ms.replace(/\s\s/g, ' ').trim();

	/* Split into rows */
	const rows = [];
	const rowRegex = /\d+\.\s?\S+(?:\s+\S+)?/g;
	while (true) {
		const result = rowRegex.exec(ms);
		if (!result) {break;}
		const row = result[0].split(/\s|\.\s?/g);
		row[0] = parseInt(row[0]);
		rows.push(row);
	}
	return rows;
};

const defaultGetResult = (pgn, newlineChar) => { // eslint-diable-line no-unused-vars
	newlineChar;
	/* Return the game termination marker, which will be one of:
  *  	1-0 | 0-1 | 1/2-1/2 | *
  */
	const regex = new RegExp(/(?:1-0|0-1|1\/2-1\/2|\*)$/);
	return pgn.match(regex)[0];
};

GameHistory.defaultProps = {
	getHeader: defaultGetHeader,
	getMovetext: defaultGetMovetext,
	getResult: defaultGetResult,
	getRows: defaultGetRows,
	newlineChar: '\r?\n',
	sloppy: false
};

export default GameHistory;


text:
package www.yunpan.com.domain;

import java.util.List;

//http://blog.csdn.net/driverking/article/details/6769553
public class RoleDomain {

    private String id;

    private String name;

    private String description;

    private List<PermissionDomain> permissions;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

	public List<PermissionDomain> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<PermissionDomain> permissions) {
		this.permissions = permissions;
	}

}


text:
class AsnOrderStatus < ActiveRecord::Base
  def shipped?
    self.code == '00'
  end

  def partial_shipment?
    self.code == '28'
  end

  def canceled?
    self.code == '26'
  end
end


text:
namespace tensorflow {
REGISTER3(UnaryOp, CPU, "Inv", functor::inverse, float, double, complex64);
#if GOOGLE_CUDA
REGISTER3(UnaryOp, GPU, "Inv", functor::inverse, float, double, int64);
#endif
}  // namespace tensorflow


text:
<!DOCTYPE HTML>

		<meta charset="UTF-8">

		<title>Buscar Trabajos Especiales de Grado.</title>

		<link rel="shortcut icon" type="image/x-icon" href="../imagenes/inicio.bmp">

		<link rel="stylesheet" type="text/css" href="../../vista/css/estilos.css">

		<link rel="stylesheet" type="text/css" href="../../vista/css/menu.css">

		<link rel="stylesheet" type="text/css" href="../../vista/css/fuentes.css">

		<?php
			include("../../controlador/php/validar_sesion.php");
		?>

			<?php
				include("banner.php");
				include("menu.php");
			?>

Buscar Trabajos Especiales de Grado.

							<form action="../../controlador/php/trabajos_buscar.php" method="POST">

Buscar:

								<input type="text" name="cod_asignacion" class="input3 placeholder2" placeholder="Ingrese código" maxlength="8" required autofocus autocomplete="off" onKeyPress="return SoloNumeros(event);">

					<input class="a6" type="submit" value="Ingresar">
					<input class="a7" type="reset" value="Borrar">

				</form>

Proyectos Socio - Integradores.


text:
/**
 * @class
 * Initializes a new instance of the ApplyArtifactsRequest class.
 * @constructor
 * Request body for applying artifacts to a virtual machine.
 * @member {array} [artifacts] The list of artifacts to apply.
 *
 */
export interface ApplyArtifactsRequest {
    artifacts?: ArtifactInstallProperties[];
}

/**
 * @class
 * Initializes a new instance of the ArtifactInstallProperties class.
 * @constructor
 * Properties of an artifact.
 * @member {string} [artifactId] The artifact's identifier.
 *
 * @member {array} [parameters] The parameters of the artifact.
 *
 */
export interface ArtifactInstallProperties {
    artifactId?: string;
    parameters?: ArtifactParameterProperties[];
}

/**
 * @class
 * Initializes a new instance of the ArtifactParameterProperties class.
 * @constructor
 * Properties of an artifact parameter.
 * @member {string} [name] The name of the artifact parameter.
 *
 * @member {string} [value] The value of the artifact parameter.
 *
 */
export interface ArtifactParameterProperties {
    name?: string;
    value?: string;
}

/**
 * @class
 * Initializes a new instance of the ArmTemplateInfo class.
 * @constructor
 * Information about a generated ARM template.
 * @member {object} [template] The template's contents.
 *
 * @member {object} [parameters] The parameters of the ARM template.
 *
 */
export interface ArmTemplateInfo {
    template?: any;
    parameters?: any;
}

/**
 * @class
 * Initializes a new instance of the Artifact class.
 * @constructor
 * An artifact.
 * @member {string} [title] The title of the artifact.
 *
 * @member {string} [description] The description of the artifact.
 *
 * @member {string} [filePath] The file path of the artifact.
 *
 * @member {string} [icon] The icon of the artifact.
 *
 * @member {string} [targetOsType] Gets or sets the type of the target os.
 *
 * @member {object} [parameters] The parameters of the artifact.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface Artifact extends BaseResource {
    title?: string;
    description?: string;
    filePath?: string;
    icon?: string;
    targetOsType?: string;
    parameters?: any;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the ArtifactDeploymentStatusProperties class.
 * @constructor
 * Properties of an artifact deployment.
 * @member {string} [deploymentStatus] The deployment status of the artifact.
 *
 * @member {number} [artifactsApplied] The total count of the artifacts that
 * were successfully applied.
 *
 * @member {number} [totalArtifacts] The total count of the artifacts that
 * were tentatively applied.
 *
 */
export interface ArtifactDeploymentStatusProperties {
    deploymentStatus?: string;
    artifactsApplied?: number;
    totalArtifacts?: number;
}

/**
 * @class
 * Initializes a new instance of the ArtifactSource class.
 * @constructor
 * Properties of an artifact source.
 * @member {string} [displayName] The display name of the artifact source.
 *
 * @member {string} [uri] The URI of the artifact source.
 *
 * @member {string} [sourceType] The type of the artifact source. Possible
 * values include: 'VsoGit', 'GitHub'
 *
 * @member {string} [folderPath] The folder path of the artifact source.
 *
 * @member {string} [branchRef] The branch reference of the artifact source.
 *
 * @member {string} [securityToken] The security token of the artifact source.
 *
 * @member {string} [status] The status of the artifact source. Possible
 * values include: 'Enabled', 'Disabled'
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface ArtifactSource extends BaseResource {
    displayName?: string;
    uri?: string;
    sourceType?: string;
    folderPath?: string;
    branchRef?: string;
    securityToken?: string;
    status?: string;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the Cost class.
 * @constructor
 * A cost item.
 * @member {string} [currencyCode] The currency code of the cost.
 *
 * @member {array} [costs] The per-day costs items of the cost.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface Cost extends BaseResource {
    currencyCode?: string;
    costs?: CostPerDayProperties[];
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the CostPerDayProperties class.
 * @constructor
 * The per-day properties of a cost item.
 * @member {date} [date] The date of the cost item.
 *
 * @member {number} [cost] The cost of the cost item.
 *
 * @member {string} [costType] The type of the cost. Possible values include:
 * 'Unavailable', 'Reported', 'Projected'
 *
 */
export interface CostPerDayProperties {
    date?: Date;
    cost?: number;
    costType?: string;
}

/**
 * @class
 * Initializes a new instance of the CostInsight class.
 * @constructor
 * @member {string} [currencyCode]
 *
 * @member {array} [vmCosts]
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface CostInsight extends BaseResource {
    currencyCode?: string;
    vmCosts?: VMCostProperties[];
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the VMCostProperties class.
 * @constructor
 * @member {string} [name]
 *
 * @member {string} [resourceGroupName]
 *
 * @member {number} [cost]
 *
 */
export interface VMCostProperties {
    name?: string;
    resourceGroupName?: string;
    cost?: number;
}

/**
 * @class
 * Initializes a new instance of the CustomImage class.
 * @constructor
 * A custom image.
 * @member {object} [vm]
 *
 * @member {string} [vm.sourceVmId] The source vm identifier.
 *
 * @member {boolean} [vm.sysPrep] Indicates whether sysprep has been run on
 * the VHD.
 *
 * @member {object} [vm.windowsOsInfo] The Windows OS information of the VM.
 *
 * @member {string} [vm.windowsOsInfo.windowsOsState] The state of the Windows
 * OS. Possible values include: 'NonSysprepped', 'SysprepRequested',
 * 'SysprepApplied'
 *
 * @member {object} [vm.linuxOsInfo] The Linux OS information of the VM.
 *
 * @member {string} [vm.linuxOsInfo.linuxOsState] The state of the Linux OS.
 * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested',
 * 'DeprovisionApplied'
 *
 * @member {object} [vhd] The VHD from which the image is to be created.
 *
 * @member {string} [vhd.imageName] The image name.
 *
 * @member {boolean} [vhd.sysPrep] Indicates whether sysprep has been run on
 * the VHD.
 *
 * @member {string} [description] The description of the custom image.
 *
 * @member {string} [osType] The OS type of the custom image. Possible values
 * include: 'Windows', 'Linux', 'None'
 *
 * @member {string} [author] The author of the custom image.
 *
 * @member {date} [creationDate] The creation date of the custom image.
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface CustomImage extends BaseResource {
    vm?: CustomImagePropertiesFromVm;
    vhd?: CustomImagePropertiesCustom;
    description?: string;
    osType?: string;
    author?: string;
    creationDate?: Date;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the CustomImagePropertiesFromVm class.
 * @constructor
 * Properties for creating a custom image from a virtual machine.
 * @member {string} [sourceVmId] The source vm identifier.
 *
 * @member {boolean} [sysPrep] Indicates whether sysprep has been run on the
 * VHD.
 *
 * @member {object} [windowsOsInfo] The Windows OS information of the VM.
 *
 * @member {string} [windowsOsInfo.windowsOsState] The state of the Windows
 * OS. Possible values include: 'NonSysprepped', 'SysprepRequested',
 * 'SysprepApplied'
 *
 * @member {object} [linuxOsInfo] The Linux OS information of the VM.
 *
 * @member {string} [linuxOsInfo.linuxOsState] The state of the Linux OS.
 * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested',
 * 'DeprovisionApplied'
 *
 */
export interface CustomImagePropertiesFromVm {
    sourceVmId?: string;
    sysPrep?: boolean;
    windowsOsInfo?: WindowsOsInfo;
    linuxOsInfo?: LinuxOsInfo;
}

/**
 * @class
 * Initializes a new instance of the WindowsOsInfo class.
 * @constructor
 * Information about a Windows OS.
 * @member {string} [windowsOsState] The state of the Windows OS. Possible
 * values include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied'
 *
 */
export interface WindowsOsInfo {
    windowsOsState?: string;
}

/**
 * @class
 * Initializes a new instance of the LinuxOsInfo class.
 * @constructor
 * Information about a Linux OS.
 * @member {string} [linuxOsState] The state of the Linux OS. Possible values
 * include: 'NonDeprovisioned', 'DeprovisionRequested', 'DeprovisionApplied'
 *
 */
export interface LinuxOsInfo {
    linuxOsState?: string;
}

/**
 * @class
 * Initializes a new instance of the CustomImagePropertiesCustom class.
 * @constructor
 * Properties for creating a custom image from a VHD.
 * @member {string} [imageName] The image name.
 *
 * @member {boolean} [sysPrep] Indicates whether sysprep has been run on the
 * VHD.
 *
 */
export interface CustomImagePropertiesCustom {
    imageName?: string;
    sysPrep?: boolean;
}

/**
 * @class
 * Initializes a new instance of the DayDetails class.
 * @constructor
 * Properties of a daily schedule.
 * @member {string} [time]
 *
 */
export interface DayDetails {
    time?: string;
}

/**
 * @class
 * Initializes a new instance of the EvaluatePoliciesProperties class.
 * @constructor
 * Properties for evaluating a policy set.
 * @member {string} [factName] The fact name.
 *
 * @member {string} [factData] The fact data.
 *
 * @member {string} [valueOffset] The value offset.
 *
 */
export interface EvaluatePoliciesProperties {
    factName?: string;
    factData?: string;
    valueOffset?: string;
}

/**
 * @class
 * Initializes a new instance of the EvaluatePoliciesRequest class.
 * @constructor
 * Request body for evaluating a policy set.
 * @member {array} [policies] Policies to evaluate.
 *
 */
export interface EvaluatePoliciesRequest {
    policies?: EvaluatePoliciesProperties[];
}

/**
 * @class
 * Initializes a new instance of the EvaluatePoliciesResponse class.
 * @constructor
 * Response body for evaluating a policy set.
 * @member {array} [results] Results of evaluating a policy set.
 *
 */
export interface EvaluatePoliciesResponse {
    results?: PolicySetResult[];
}

/**
 * @class
 * Initializes a new instance of the PolicySetResult class.
 * @constructor
 * Result of a policy set evaluation.
 * @member {boolean} [hasError] A value indicating whether this policy set
 * evaluation has discovered violations.
 *
 * @member {array} [policyViolations] The list of policy violations.
 *
 */
export interface PolicySetResult {
    hasError?: boolean;
    policyViolations?: PolicyViolation[];
}

/**
 * @class
 * Initializes a new instance of the PolicyViolation class.
 * @constructor
 * Policy violation.
 * @member {string} [code] The code of the policy violation.
 *
 * @member {string} [message] The message of the policy violation.
 *
 */
export interface PolicyViolation {
    code?: string;
    message?: string;
}

/**
 * @class
 * Initializes a new instance of the Formula class.
 * @constructor
 * A formula.
 * @member {string} [description] The description of the formula.
 *
 * @member {string} [author] The author of the formula.
 *
 * @member {string} [osType] The OS type of the formula.
 *
 * @member {date} [creationDate] The creation date of the formula.
 *
 * @member {object} [formulaContent] The content of the formula.
 *
 * @member {string} [formulaContent.notes] The notes of the virtual machine.
 *
 * @member {string} [formulaContent.ownerObjectId] The object identifier of
 * the owner of the virtual machine.
 *
 * @member {string} [formulaContent.createdByUserId] The object identifier of
 * the creator of the virtual machine.
 *
 * @member {string} [formulaContent.createdByUser] The email address of
 * creator of the virtual machine.
 *
 * @member {string} [formulaContent.computeId] The resource identifier
 * (Microsoft.Compute) of the virtual machine.
 *
 * @member {string} [formulaContent.customImageId] The custom image identifier
 * of the virtual machine.
 *
 * @member {string} [formulaContent.osType] The OS type of the virtual machine.
 *
 * @member {string} [formulaContent.size] The size of the virtual machine.
 *
 * @member {string} [formulaContent.userName] The user name of the virtual
 * machine.
 *
 * @member {string} [formulaContent.password] The password of the virtual
 * machine administrator.
 *
 * @member {string} [formulaContent.sshKey] The SSH key of the virtual machine
 * administrator.
 *
 * @member {boolean} [formulaContent.isAuthenticationWithSshKey] A value
 * indicating whether this virtual machine uses an SSH key for authentication.
 *
 * @member {string} [formulaContent.fqdn] The fully-qualified domain name of
 * the virtual machine.
 *
 * @member {string} [formulaContent.labSubnetName] The lab subnet name of the
 * virtual machine.
 *
 * @member {string} [formulaContent.labVirtualNetworkId] The lab virtual
 * network identifier of the virtual machine.
 *
 * @member {boolean} [formulaContent.disallowPublicIpAddress] Indicates
 * whether the virtual machine is to be created without a public IP address.
 *
 * @member {array} [formulaContent.artifacts] The artifacts to be installed on
 * the virtual machine.
 *
 * @member {object} [formulaContent.artifactDeploymentStatus] The artifact
 * deployment status for the virtual machine.
 *
 * @member {string} [formulaContent.artifactDeploymentStatus.deploymentStatus]
 * The deployment status of the artifact.
 *
 * @member {number} [formulaContent.artifactDeploymentStatus.artifactsApplied]
 * The total count of the artifacts that were successfully applied.
 *
 * @member {number} [formulaContent.artifactDeploymentStatus.totalArtifacts]
 * The total count of the artifacts that were tentatively applied.
 *
 * @member {object} [formulaContent.galleryImageReference] The Microsoft Azure
 * Marketplace image reference of the virtual machine.
 *
 * @member {string} [formulaContent.galleryImageReference.offer] The offer of
 * the gallery image.
 *
 * @member {string} [formulaContent.galleryImageReference.publisher] The
 * publisher of the gallery image.
 *
 * @member {string} [formulaContent.galleryImageReference.sku] The SKU of the
 * gallery image.
 *
 * @member {string} [formulaContent.galleryImageReference.osType] The OS type
 * of the gallery image.
 *
 * @member {string} [formulaContent.galleryImageReference.version] The version
 * of the gallery image.
 *
 * @member {string} [formulaContent.provisioningState] The provisioning status
 * of the resource.
 *
 * @member {string} [formulaContent.id] The identifier of the resource.
 *
 * @member {string} [formulaContent.name] The name of the resource.
 *
 * @member {string} [formulaContent.type] The type of the resource.
 *
 * @member {string} [formulaContent.location] The location of the resource.
 *
 * @member {object} [formulaContent.tags] The tags of the resource.
 *
 * @member {object} [vm] Information about a VM from which a formula is to be
 * created.
 *
 * @member {string} [vm.labVmId] The identifier of the VM from which a formula
 * is to be created.
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface Formula extends BaseResource {
    description?: string;
    author?: string;
    osType?: string;
    creationDate?: Date;
    formulaContent?: LabVirtualMachine;
    vm?: FormulaPropertiesFromVm;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the LabVirtualMachine class.
 * @constructor
 * A virtual machine.
 * @member {string} [notes] The notes of the virtual machine.
 *
 * @member {string} [ownerObjectId] The object identifier of the owner of the
 * virtual machine.
 *
 * @member {string} [createdByUserId] The object identifier of the creator of
 * the virtual machine.
 *
 * @member {string} [createdByUser] The email address of creator of the
 * virtual machine.
 *
 * @member {string} [computeId] The resource identifier (Microsoft.Compute) of
 * the virtual machine.
 *
 * @member {string} [customImageId] The custom image identifier of the virtual
 * machine.
 *
 * @member {string} [osType] The OS type of the virtual machine.
 *
 * @member {string} [size] The size of the virtual machine.
 *
 * @member {string} [userName] The user name of the virtual machine.
 *
 * @member {string} [password] The password of the virtual machine
 * administrator.
 *
 * @member {string} [sshKey] The SSH key of the virtual machine administrator.
 *
 * @member {boolean} [isAuthenticationWithSshKey] A value indicating whether
 * this virtual machine uses an SSH key for authentication.
 *
 * @member {string} [fqdn] The fully-qualified domain name of the virtual
 * machine.
 *
 * @member {string} [labSubnetName] The lab subnet name of the virtual machine.
 *
 * @member {string} [labVirtualNetworkId] The lab virtual network identifier
 * of the virtual machine.
 *
 * @member {boolean} [disallowPublicIpAddress] Indicates whether the virtual
 * machine is to be created without a public IP address.
 *
 * @member {array} [artifacts] The artifacts to be installed on the virtual
 * machine.
 *
 * @member {object} [artifactDeploymentStatus] The artifact deployment status
 * for the virtual machine.
 *
 * @member {string} [artifactDeploymentStatus.deploymentStatus] The deployment
 * status of the artifact.
 *
 * @member {number} [artifactDeploymentStatus.artifactsApplied] The total
 * count of the artifacts that were successfully applied.
 *
 * @member {number} [artifactDeploymentStatus.totalArtifacts] The total count
 * of the artifacts that were tentatively applied.
 *
 * @member {object} [galleryImageReference] The Microsoft Azure Marketplace
 * image reference of the virtual machine.
 *
 * @member {string} [galleryImageReference.offer] The offer of the gallery
 * image.
 *
 * @member {string} [galleryImageReference.publisher] The publisher of the
 * gallery image.
 *
 * @member {string} [galleryImageReference.sku] The SKU of the gallery image.
 *
 * @member {string} [galleryImageReference.osType] The OS type of the gallery
 * image.
 *
 * @member {string} [galleryImageReference.version] The version of the gallery
 * image.
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface LabVirtualMachine extends BaseResource {
    notes?: string;
    ownerObjectId?: string;
    createdByUserId?: string;
    createdByUser?: string;
    computeId?: string;
    customImageId?: string;
    osType?: string;
    size?: string;
    userName?: string;
    password?: string;
    sshKey?: string;
    isAuthenticationWithSshKey?: boolean;
    fqdn?: string;
    labSubnetName?: string;
    labVirtualNetworkId?: string;
    disallowPublicIpAddress?: boolean;
    artifacts?: ArtifactInstallProperties[];
    artifactDeploymentStatus?: ArtifactDeploymentStatusProperties;
    galleryImageReference?: GalleryImageReference;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the GalleryImageReference class.
 * @constructor
 * The reference information for an Azure Marketplace image.
 * @member {string} [offer] The offer of the gallery image.
 *
 * @member {string} [publisher] The publisher of the gallery image.
 *
 * @member {string} [sku] The SKU of the gallery image.
 *
 * @member {string} [osType] The OS type of the gallery image.
 *
 * @member {string} [version] The version of the gallery image.
 *
 */
export interface GalleryImageReference {
    offer?: string;
    publisher?: string;
    sku?: string;
    osType?: string;
    version?: string;
}

/**
 * @class
 * Initializes a new instance of the FormulaPropertiesFromVm class.
 * @constructor
 * Information about a VM from which a formula is to be created.
 * @member {string} [labVmId] The identifier of the VM from which a formula is
 * to be created.
 *
 */
export interface FormulaPropertiesFromVm {
    labVmId?: string;
}

/**
 * @class
 * Initializes a new instance of the GalleryImage class.
 * @constructor
 * A gallery image.
 * @member {string} [author] The author of the gallery image.
 *
 * @member {date} [createdDate] The creation date of the gallery image.
 *
 * @member {string} [description] The description of the gallery image.
 *
 * @member {object} [imageReference] The image reference of the gallery image.
 *
 * @member {string} [imageReference.offer] The offer of the gallery image.
 *
 * @member {string} [imageReference.publisher] The publisher of the gallery
 * image.
 *
 * @member {string} [imageReference.sku] The SKU of the gallery image.
 *
 * @member {string} [imageReference.osType] The OS type of the gallery image.
 *
 * @member {string} [imageReference.version] The version of the gallery image.
 *
 * @member {string} [icon] The icon of the gallery image.
 *
 * @member {boolean} [enabled] Indicates whether this gallery image is enabled.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface GalleryImage extends BaseResource {
    author?: string;
    createdDate?: Date;
    description?: string;
    imageReference?: GalleryImageReference;
    icon?: string;
    enabled?: boolean;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the GenerateArmTemplateRequest class.
 * @constructor
 * Parameters for generating an ARM template for deploying artifacts.
 * @member {string} [virtualMachineName] The resource name of the virtual
 * machine.
 *
 * @member {array} [parameters] The parameters of the ARM template.
 *
 * @member {string} [location] The location of the virtual machine.
 *
 */
export interface GenerateArmTemplateRequest {
    virtualMachineName?: string;
    parameters?: ParameterInfo[];
    location?: string;
}

/**
 * @class
 * Initializes a new instance of the ParameterInfo class.
 * @constructor
 * @member {string} [name]
 *
 * @member {string} [value]
 *
 */
export interface ParameterInfo {
    name?: string;
    value?: string;
}

/**
 * @class
 * Initializes a new instance of the GenerateUploadUriParameter class.
 * @constructor
 * Properties for generating an upload URI.
 * @member {string} [blobName] The blob name of the upload URI.
 *
 */
export interface GenerateUploadUriParameter {
    blobName?: string;
}

/**
 * @class
 * Initializes a new instance of the GenerateUploadUriResponse class.
 * @constructor
 * Reponse body for generating an upload URI.
 * @member {string} [uploadUri] The upload URI for the VHD.
 *
 */
export interface GenerateUploadUriResponse {
    uploadUri?: string;
}

/**
 * @class
 * Initializes a new instance of the HourDetails class.
 * @constructor
 * Properties of an hourly schedule.
 * @member {number} [minute] Minutes of the hour the schedule will run.
 *
 */
export interface HourDetails {
    minute?: number;
}

/**
 * @class
 * Initializes a new instance of the Lab class.
 * @constructor
 * A lab.
 * @member {string} [defaultStorageAccount] The lab's default storage account.
 *
 * @member {string} [artifactsStorageAccount] The artifact storage account of
 * the lab.
 *
 * @member {array} [storageAccounts] The storage accounts of the lab.
 *
 * @member {string} [vaultName] The name of the key vault of the lab.
 *
 * @member {string} [labStorageType] The type of the lab storage. Possible
 * values include: 'Standard', 'Premium'
 *
 * @member {string} [defaultVirtualNetworkId] The default virtual network
 * identifier of the lab.
 *
 * @member {date} [createdDate] The creation date of the lab.
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface Lab extends BaseResource {
    defaultStorageAccount?: string;
    artifactsStorageAccount?: string;
    storageAccounts?: string[];
    vaultName?: string;
    labStorageType?: string;
    defaultVirtualNetworkId?: string;
    createdDate?: Date;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the LabVhd class.
 * @constructor
 * Properties of a VHD in the lab.
 * @member {string} [id] The absolute URI of the VHD.
 *
 */
export interface LabVhd {
    id?: string;
}

/**
 * @class
 * Initializes a new instance of the Policy class.
 * @constructor
 * A Policy.
 * @member {string} [description] The description of the policy.
 *
 * @member {string} [status] The status of the policy. Possible values
 * include: 'Enabled', 'Disabled'
 *
 * @member {string} [factName] The fact name of the policy. Possible values
 * include: 'UserOwnedLabVmCount', 'LabVmCount', 'LabVmSize', 'GalleryImage',
 * 'UserOwnedLabVmCountInSubnet'
 *
 * @member {string} [factData] The fact data of the policy.
 *
 * @member {string} [threshold] The threshold of the policy.
 *
 * @member {string} [evaluatorType] The evaluator type of the policy. Possible
 * values include: 'AllowedValuesPolicy', 'MaxValuePolicy'
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface Policy extends BaseResource {
    description?: string;
    status?: string;
    factName?: string;
    factData?: string;
    threshold?: string;
    evaluatorType?: string;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the Schedule class.
 * @constructor
 * A schedule.
 * @member {string} [status] The status of the schedule. Possible values
 * include: 'Enabled', 'Disabled'
 *
 * @member {string} [taskType] The task type of the schedule. Possible values
 * include: 'LabVmsShutdownTask', 'LabVmsStartupTask', 'LabBillingTask'
 *
 * @member {object} [weeklyRecurrence] The weekly recurrence of the schedule.
 *
 * @member {array} [weeklyRecurrence.weekdays] The days of the week.
 *
 * @member {string} [weeklyRecurrence.time] The time of the day.
 *
 * @member {object} [dailyRecurrence] The daily recurrence of the schedule.
 *
 * @member {string} [dailyRecurrence.time]
 *
 * @member {object} [hourlyRecurrence] The hourly recurrence of the schedule.
 *
 * @member {number} [hourlyRecurrence.minute] Minutes of the hour the schedule
 * will run.
 *
 * @member {string} [timeZoneId] The time zone id.
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface Schedule extends BaseResource {
    status?: string;
    taskType?: string;
    weeklyRecurrence?: WeekDetails;
    dailyRecurrence?: DayDetails;
    hourlyRecurrence?: HourDetails;
    timeZoneId?: string;
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the WeekDetails class.
 * @constructor
 * Properties of a weekly schedule.
 * @member {array} [weekdays] The days of the week.
 *
 * @member {string} [time] The time of the day.
 *
 */
export interface WeekDetails {
    weekdays?: string[];
    time?: string;
}

/**
 * @class
 * Initializes a new instance of the VirtualNetwork class.
 * @constructor
 * A virtual network.
 * @member {array} [allowedSubnets] The allowed subnets of the virtual network.
 *
 * @member {string} [description] The description of the virtual network.
 *
 * @member {string} [externalProviderResourceId] The Microsoft.Network
 * resource identifier of the virtual network.
 *
 * @member {array} [subnetOverrides] The subnet overrides of the virtual
 * network.
 *
 * @member {string} [provisioningState] The provisioning status of the
 * resource.
 *
 * @member {string} [id] The identifier of the resource.
 *
 * @member {string} [name] The name of the resource.
 *
 * @member {string} [type] The type of the resource.
 *
 * @member {string} [location] The location of the resource.
 *
 * @member {object} [tags] The tags of the resource.
 *
 */
export interface VirtualNetwork extends BaseResource {
    allowedSubnets?: Subnet[];
    description?: string;
    externalProviderResourceId?: string;
    subnetOverrides?: SubnetOverride[];
    provisioningState?: string;
    id?: string;
    name?: string;
    type?: string;
    location?: string;
    tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the Subnet class.
 * @constructor
 * @member {string} [resourceId]
 *
 * @member {string} [labSubnetName]
 *
 * @member {string} [allowPublicIp] Possible values include: 'Default',
 * 'Deny', 'Allow'
 *
 */
export interface Subnet {
    resourceId?: string;
    labSubnetName?: string;
    allowPublicIp?: string;
}

/**
 * @class
 * Initializes a new instance of the SubnetOverride class.
 * @constructor
 * Property overrides on a subnet of a virtual network.
 * @member {string} [resourceId] The resource identifier of the subnet.
 *
 * @member {string} [labSubnetName] The name given to the subnet within the
 * lab.
 *
 * @member {string} [useInVmCreationPermission] Indicates whether this subnet
 * can be used during virtual machine creation. Possible values include:
 * 'Default', 'Deny', 'Allow'
 *
 * @member {string} [usePublicIpAddressPermission] Indicates whether public IP
 * addresses can be assigned to virtual machines on this subnet. Possible
 * values include: 'Default', 'Deny', 'Allow'
 *
 */
export interface SubnetOverride {
    resourceId?: string;
    labSubnetName?: string;
    useInVmCreationPermission?: string;
    usePublicIpAddressPermission?: string;
}

/**
 * @class
 * Initializes a new instance of the SubscriptionNotification class.
 * @constructor
 * @member {string} [registrationDate]
 *
 * @member {string} [state] Possible values include: 'NotDefined',
 * 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted'
 *
 * @member {object} [properties]
 *
 * @member {string} [properties.tenantId]
 *
 */
export interface SubscriptionNotification {
    registrationDate?: string;
    state?: string;
    properties?: SubscriptionNotificationProperties;
}

/**
 * @class
 * Initializes a new instance of the SubscriptionNotificationProperties class.
 * @constructor
 * @member {string} [tenantId]
 *
 */
export interface SubscriptionNotificationProperties {
    tenantId?: string;
}


text:
Welcome to the Stringlate online help. Please select the language you know best:
- [English](en.md)
- [Spanish](es.md)


text:
<!DOCTYPE html>

    <title>InjectorDerivingFromMutableInjector Protocol Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset="utf-8">

          EasyInject 1.3.0 Docs

         (97% documented)

        <form role="search" action="../search.json">
          <input type="text" placeholder="Search documentation" data-typeahead>
        </form>

            View on GitHub

            Install in Dash

      EasyInject Reference

      InjectorDerivingFromMutableInjector Protocol Reference

            Guides

                1. Overview

                CHANGELOG

                LICENSE

            Classes

                GlobalInjector

                LazilyInjectedProvider

            Enumerations

                ComposedInjectionError

                InjectedProviderResolveState

                InjectionError

            Protocols

                InjectedProvider

                Injector

                InjectorDerivingFromMutableInjector

                MutableInjector

            Structures

                AnyInjector

                ComposedInjector

                GenericProvidableKey

                LazyInjector

                Provider

                StrictInjector

                StrictlyInjectedProvider

            Type Aliases

                Providable

                ProvidableKey

InjectorDerivingFromMutableInjector

public protocol InjectorDerivingFromMutableInjector : MutableInjector

Derives Injector#providing for structs by using Injector.provide.

                    copy()

Creates a copy of the current instance.

Declaration

Swift

func copy() -> Self

                    providing(key:<wbr>usingFactory:<wbr>)

                        Extension method

Implements Injector.providing(key:usingFactory:)
by using InjectorDerivingFromMutableInjector.copy() and MutableInjector.provide(key:usingFactory:).

Declaration

Swift

public func providing(
  key: Self.Key, usingFactory factory: @escaping (inout Self) throws -> Providable
) -> Self

                    resolving(key:<wbr>)

                        Extension method

Implements Injector.resolving(key:)
by using InjectorDerivingFromMutableInjector.copy() and MutableInjector.resolve(key:).

Declaration

Swift

public func resolving(key: Self.Key) throws -> Providable

                    revoking(key:<wbr>)

                        Extension method

Implements Injector.revoking(key:)
by using InjectorDerivingFromMutableInjector.copy() and MutableInjector.revoke(key:).

Declaration

Swift

public func revoking(key: Self.Key) -> Self

© 2020 Valentin Knabel. All rights reserved. (Last updated: 2020-12-05)

Generated by jazzy ♪♫ v0.13.5, a Realm project.


text:
<!DOCTYPE html>
<html lang="en">

  {% include 2017head.html %}

  <body class="grid">

    {% include 2017header.html %}

    <main role="main" id="content" class="container {% if page.slug %}{{ page.slug }}{% endif %}">

      {{ content }}

    </main>

    {% include footer.html %}

  </body>

</html>


text:
package com.esri.gpt.server.csw.client;

import com.esri.gpt.framework.request.Criteria;
import com.esri.gpt.framework.util.Val;

/**
 * The Class CswSearchCriteria.
 *
 * Minimal used for a for a csw search
 *
 */
@SuppressWarnings("serial")
public class CswSearchCriteria extends Criteria {

// instance variables ==========================================================
/** The _envelope. */
private Envelope _envelope;

/** The _live data and maps only. */
private boolean _liveDataAndMapsOnly;

/** The _max records. */
private int _maxRecords;

/** The _search text. */
private String _searchText;

/** The _start position. */
private int _startPosition;

private boolean envelopeIntersects;

private boolean envelopeContains;

private boolean useGeographicExtent;

// constructors ================================================================
/**
 * Instantiates a new csw search criteria.
 */
public CswSearchCriteria() {
  // set DEFAULT start position and max records.
  _startPosition = 1;
  _maxRecords = 10;
}

// properties ==================================================================
/**
 * Accessor methods.
 *
 * @return the envelope
 */
public Envelope getEnvelope() {
  return _envelope;
}

/**
 * Sets the envelope.
 *
 * @param envelope the new envelope
 */
public void setEnvelope(Envelope envelope) {
  _envelope = envelope;
}

/**
 * Checks if is live data and maps only.
 *
 * @return true, if is live data and maps only
 */
public boolean isLiveDataAndMapsOnly() {
  return _liveDataAndMapsOnly;
}

/**
 * Sets the live data and maps only.
 *
 * @param liveDataAndMapsOnly the new live data and maps only
 */
public void setLiveDataAndMapsOnly(boolean liveDataAndMapsOnly) {
  _liveDataAndMapsOnly = liveDataAndMapsOnly;
}

/**
 * Gets the max records.
 *
 * @return the max records
 */
public int getMaxRecords() {
  return _maxRecords;
}

/**
 * Sets the max records.
 *
 * @param maxRecords the new max records
 */
public void setMaxRecords(int maxRecords) {
  _maxRecords = maxRecords;
}

/**
 * Gets the search text.
 *
 * @return the search text
 */
public String getSearchText() {
  return _searchText;
}

/**
 * Sets the search text.
 *
 * @param text the new search text
 */
public void setSearchText(String text) {
  _searchText = text;
}

/**
 * Gets the start position.
 *
 * @return the start position
 */
public int getStartPosition() {
  return _startPosition;
}

/**
 * Sets the start position.
 *
 * @param position the new start position
 */
public void setStartPosition(int position) {
  _startPosition = position;
}

/**
 * @return
 */

public boolean isEnvelopeIntersects() {
	return envelopeIntersects;
}

public void setEnvelopeIntersects(boolean envelopeIntersects) {
	this.envelopeIntersects = envelopeIntersects;
}

public boolean isEnvelopeContains() {
	return envelopeContains;
}

public void setEnvelopeContains(boolean envelopeContains) {
	this.envelopeContains = envelopeContains;
}

public boolean isUseGeographicExtent() {
	return useGeographicExtent;
}

public void setUseGeographicExtent(boolean useGeographicExtent) {
	this.useGeographicExtent = useGeographicExtent;
}

// methods ================================================================================================================

/**
 * To xml.
 *
 * @return the string
 */
public String toXml() {
  CswSearchCriteria search = this;
  String request = "<?xml version='1.0' encoding='UTF-8' ?>";
  request += "<GetRecords>" + "<StartPosition>" + search.getStartPosition()
      + "</StartPosition>";
  request += "<MaxRecords>" + search.getMaxRecords() + "</MaxRecords>";
  request += "<KeyWord>" + Val.escapeXml(search.getSearchText()) + "</KeyWord>";
  request += ("<LiveDataMap>" + search.isLiveDataAndMapsOnly() + "</LiveDataMap>");
  if (search.getEnvelope() != null) {
    request += ("<Envelope>");
    request += "<MinX>" + search.getEnvelope().getMinX() + "</MinX>";
    request += "<MinY>" + search.getEnvelope().getMinY() + "</MinY>";
    request += "<MaxX>" + search.getEnvelope().getMaxX() + "</MaxX>";
    request += "<MaxY>" + search.getEnvelope().getMaxY() + "</MaxY>";
    request += "</Envelope>";
    request += "<RecordsFullyWithinEnvelope>"+ this.isEnvelopeContains() +"</RecordsFullyWithinEnvelope>";
    request += "<RecordsIntersectWithEnvelope>"+ this.isEnvelopeIntersects() +"</RecordsIntersectWithEnvelope>";

  }
  request += "</GetRecords>";

  return request;

}

/*
 * Reset of criteria
 *
 * @see com.esri.gpt.framework.request.Criteria#reset()
 */
@Override
public void reset() {
  this.setSearchText("");
  this.setEnvelope(null);
  this.setLiveDataAndMapsOnly(false);
  this.setMaxRecords(-1);

}

}


text:
#ifndef _Pineapple_Material_BRDF
#define _Pineapple_Material_BRDF

#include "Pineapple/Material.hpp"

#include <glm/glm.hpp>

#include <stack>
#include <string>
#include "Pineapple/Util/FastStack.hpp"
#include "Pineapple/Util/Sampler.hpp"

#include "Pineapple/Globals.hpp"

class BRDF: public Material {
    protected:
        /**
         * Diffuse color of the material.
         */
        glm::vec4 diffuseColor;
        /**
         * Emissive color of the material.
         */
        glm::vec4 emissiveColor;
        /**
         * Emissive intensity of the material, or negative if not emissive.
         */
        float emissiveIntensity;
        /**
         * Probability of sampling emissive light. Negative if not emissive.
         */
        float emissiveProbability;
        /**
         * Max recursion depth.
         */
        int maxDepth;
    public:
        /**
         * Initialize a new BRDF.
         */
        BRDF(std::map<std::string, std::string> parameters = std::map<std::string, std::string>());

        /**
         * Destructor.
         */
        ~BRDF();

        /**
         * Sample a color from this material from an intersection result.
         *
         * @param rays      The stack of rays being processed
         * @param ray       The current intersected ray
         * @param result    The intersection result
         * @param scene     The intersected scene
         * @return      The sampled color
         */
        glm::vec4 sampleColor(FastStack<Ray> & rays, const Ray ray, const Intersection & result, Scene * scene);
};

#endif


text:
"""Base class for the generation of loaders from schema-salad definitions."""
from collections import OrderedDict
from typing import Any, Dict, List, MutableSequence, Optional, Set, Union

class TypeDef:  # pylint: disable=too-few-public-methods
    """Schema Salad type description."""

    __slots__ = [
        "name",
        "init",
        "is_uri",
        "scoped_id",
        "ref_scope",
        "loader_type",
        "instance_type",
        "abstract",
    ]

    # switch to class-style typing.NamedTuple once support for Python < 3.6
    # is dropped
    def __init__(
        self,  # pylint: disable=too-many-arguments
        name: str,
        init: str,
        is_uri: bool = False,
        scoped_id: bool = False,
        ref_scope: Optional[int] = 0,
        loader_type: Optional[str] = None,
        instance_type: Optional[str] = None,
        abstract: bool = False,
    ) -> None:
        self.name = name
        self.init = init
        self.is_uri = is_uri
        self.scoped_id = scoped_id
        self.ref_scope = ref_scope
        self.abstract = abstract
        # Follow attributes used by Java but not Python.
        self.loader_type = loader_type
        self.instance_type = instance_type

class CodeGenBase:
    """Abstract base class for schema salad code generators."""

    def __init__(self) -> None:
        self.collected_types: OrderedDict[str, TypeDef] = OrderedDict()
        self.vocab: Dict[str, str] = {}

    def declare_type(self, declared_type: TypeDef) -> TypeDef:
        """Add this type to our collection, if needed."""
        if declared_type not in self.collected_types.values():
            self.collected_types[declared_type.name] = declared_type
        return declared_type

    def add_vocab(self, name: str, uri: str) -> None:
        """Add the given name as an abbreviation for the given URI."""
        self.vocab[name] = uri

    def prologue(self) -> None:
        """Trigger to generate the prolouge code."""
        raise NotImplementedError()

    @staticmethod
    def safe_name(name: str) -> str:
        """Generate a safe version of the given name."""
        raise NotImplementedError()

    def begin_class(
        self,  # pylint: disable=too-many-arguments
        classname: str,
        extends: MutableSequence[str],
        doc: str,
        abstract: bool,
        field_names: MutableSequence[str],
        idfield: str,
        optional_fields: Set[str],
    ) -> None:
        """Produce the header for the given class."""
        raise NotImplementedError()

    def end_class(self, classname: str, field_names: List[str]) -> None:
        """Signal that we are done with this class."""
        raise NotImplementedError()

    def type_loader(
        self, type_declaration: Union[List[Any], Dict[str, Any]]
    ) -> TypeDef:
        """Parse the given type declaration and declare its components."""
        raise NotImplementedError()

    def declare_field(
        self,
        name: str,
        fieldtype: TypeDef,
        doc: Optional[str],
        optional: bool,
        subscope: str,
    ) -> None:
        """Output the code to load the given field."""
        raise NotImplementedError()

    def declare_id_field(
        self,
        name: str,
        fieldtype: TypeDef,
        doc: str,
        optional: bool,
    ) -> None:
        """Output the code to handle the given ID field."""
        raise NotImplementedError()

    def uri_loader(
        self,
        inner: TypeDef,
        scoped_id: bool,
        vocab_term: bool,
        ref_scope: Optional[int],
    ) -> TypeDef:
        """Construct the TypeDef for the given URI loader."""
        raise NotImplementedError()

    def idmap_loader(
        self, field: str, inner: TypeDef, map_subject: str, map_predicate: Optional[str]
    ) -> TypeDef:
        """Construct the TypeDef for the given mapped ID loader."""
        raise NotImplementedError()

    def typedsl_loader(self, inner: TypeDef, ref_scope: Optional[int]) -> TypeDef:
        """Construct the TypeDef for the given DSL loader."""
        raise NotImplementedError()

    def epilogue(self, root_loader: TypeDef) -> None:
        """Trigger to generate the epilouge code."""
        raise NotImplementedError()

    def secondaryfilesdsl_loader(self, inner: TypeDef) -> TypeDef:
        """Construct the TypeDef for secondary files."""
        raise NotImplementedError()


text:
from __future__ import unicode_literals

from django.db import models, migrations
import ckeditor.fields

class Migration(migrations.Migration):

    dependencies = [
        ('core', '0005_auto_20150302_2210'),
    ]

    operations = [
        migrations.AlterField(
            model_name='post',
            name='content',
            field=ckeditor.fields.RichTextField(verbose_name='conte\xfado'),
            preserve_default=True,
        ),
    ]


text:
<!DOCTYPE html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Limitless - Responsive Web Application Kit by Eugene Kopyov</title>

	<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
	<link href="assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
	<link href="assets/css/bootstrap.css" rel="stylesheet" type="text/css">
	<link href="assets/css/core.css" rel="stylesheet" type="text/css">
	<link href="assets/css/components.css" rel="stylesheet" type="text/css">
	<link href="assets/css/colors.css" rel="stylesheet" type="text/css">

						Git updates
						9

							Git updates

									Drop the IE specific hacks for temporal inputs

4 minutes ago

									Add full font overrides for popovers and tooltips

36 minutes ago

									Chris Arney created a new Design branch

2 hours ago

									Eugene Kopyov merged Master and Dev branches

Dec 18, 18:36

									Have Carousel ignore keyboard events

Dec 12, 05:46

				Online

							Users

								Users online

										Jordana Ansley
										Lead web developer

										Will Brason
										Marketing manager

										Hanna Walden
										Project manager

										Dori Laperriere
										Business developer

										Vanessa Aurelius
										UX expert

							Messages
							2

								Messages

										5

											James Alexander
											04:58

										who knows, maybe that would be the best thing for me...

										4

											Margo Baker
											12:16

										That was something he was unable to do because...

											Jeremy Victorino
											22:48

										But that would be extremely strained and suspicious...

											Beatrix Diaz
											Tue

										What a strenuous career it is that I've chosen...

											Richard Vango
											Mon

										Other travelling salesmen live a life of luxury...

							Victoria

 My profile

 My balance

58  Messages

 Account settings

 Logout

									Victoria Baker

										  Santa Ana, CA

Main

 Dashboard

									 Page layouts

Fixed navbar

Fixed navbar & sidebar

Fixed sidebar native scroll

Hideable navbar

Hideable & fixed sidebar

Fixed footer

Boxed with default sidebar

Boxed with mini sidebar

Boxed full width

									 Layouts

Layout 1

Layout 2 Current

Layout 3

Layout 4

Layout 5

Layout 6 Coming soon

									 Color system

Primary palette

Danger palette

Success palette

Warning palette

Info palette

Pink palette

Violet palette

Purple palette

Indigo palette

Blue palette

Teal palette

Green palette

Orange palette

Brown palette

Grey palette

Slate palette

									 Starter kit

Horizontal navigation

1 column

2 columns

											3 columns

Dual sidebars

Double sidebars

4 columns

											Detached layout

Left sidebar

Right sidebar

Sticky sidebar

Boxed layout

Fixed main navbar

Fixed secondary navbar

Both navbars fixed

Fixed layout

 Changelog 1.4

 RTL version

Forms

									 Form components

Basic inputs

Checkboxes & radios

Input groups

Extended controls

Floating labels

											Selects

Select2 selects

Bootstrap multiselect

SelectBoxIt selects

Bootstrap selects

Tag inputs

Dual Listboxes

Editable forms

Validation

Inputs grid

									 JSON forms

Basic inputs

Advanced inputs

Controls

									 Wizards

Steps wizard

Form wizard

Stepy wizard

									 Editors

Summernote editor

CKEditor

WYSIHTML5 editor

Code editor

									 Pickers

Date & time pickers

Color pickers

Location pickers

									 Form layouts

Vertical form

Horizontal form

Appearance

									 Components

Modals

Dropdown menus

Tabs component

Pills component

Accordion and navs

Buttons

PNotify notifications

Other notifications

Tooltips and popovers

Alerts

Pagination

Labels and badges

Loaders and bars

Thumbnails

Page header

Breadcrumbs

Media objects

Affix and Scrollspy

									 Content appearance

Content panels

Panel heading elements

Panel footer elements

Draggable panels

Text styling

Typography

Helper classes

Syntax highlighter

Grid system

									 Extra components

NoUI sliders

Ion range sliders

Session timeout

Idle timeout

Dynamic tree views

Context menu

Floating action buttons

									 Animations

CSS3 animations

											Velocity animations

Basic usage

UI pack effects

Advanced examples

									 Icons

Glyphicons

Icomoon

Font awesome

Layout

									 Sidebars

Default collapsible

Default hideable

Mini collapsible

Mini hideable

											Dual sidebar

Dual sidebar

Dual double collapse

Dual double hide

Swap sidebars

											Double sidebar

Collapse main sidebar

Hide main sidebar

Fix default width

Fix mini width

Opposite sidebar visible

											Detached sidebar

Left position

Right position

Sticky (custom scroll)

Sticky (native scroll)

Separate categories

Hidden sidebar

Light sidebar

Sidebar components

									 Vertical navigation

Collapsible menu

Accordion menu

Navigation sizing

Bordered navigation

Right icons

Labels and badges

Disabled navigation links

									 Horizontal navigation

Submenu on click

Submenu on hover

With custom elements

Tabbed navigation

Disabled navigation links

Horizontal mega menu

									 Navbars

Single navbar

											Multiple navbars

Navbar + navbar

Navbar + header

Header + navbar

Top + bottom

Color options

Sizing options

Hide on scroll

Navbar components

									 Menu levels

 Second level

											 Second level with child

 Third level

													 Third level with child

 Fourth level

 Fourth level

 Third level

 Second level

Data visualization

									 Echarts library

Lines and areas

Columns and waterfalls

Bars and tornados

Scatter charts

Pies and donuts

Funnels and chords

Candlesticks and others

Chart combinations

									 D3 library

Simple lines

Advanced lines

Simple bars

Advanced bars

Pie charts

Circle diagrams

Tree layout

Other charts

									 Dimple library

											Line charts

Horizontal orientation

Vertical orientation

											Bar charts

Horizontal orientation

Vertical orientation

											Area charts

Horizontal orientation

Vertical orientation

											Step charts

Horizontal orientation

Vertical orientation

Pie charts

Ring charts

Scatter charts

Bubble charts

									 C3 library

Lines and areas

Bars and pies

Advanced examples

Chart axis

Grid options

									 Google visualization

Line charts

Bar charts

Pie charts

Bubble & scatter charts

Other charts

									 Maps integration

											Google maps

Basics

Controls

Markers

Map drawings

Layers

Vector maps

Extensions

									 Extensions

Image cropper

Block UI

Drag and drop

									 JQuery UI

Interactions

Forms

Components

Sliders

Navigation

									 File uploaders

Plupload

Bootstrap file uploader

Dropzone

									 Event calendars

Basic views

Event styling

Language and time

Advanced usage

									 Internationalization

Direct translation

Querystring parameter

Set language on init

Set language after init

Language fallback

Callbacks

Tables

									 Basic tables

Basic examples

Table sizing

Table borders

Table styling

Table elements

									 Data tables

Basic initialization

Basic styling

Advanced examples

Sorting options

Using API

Data sources

									 Data tables extensions

Columns reorder

Row reorder

Fixed columns

Fixed header

Auto fill

Key table

Scroller

Select

											Buttons

Initialization

Flash buttons

Print buttons

HTML5 buttons

Columns visibility

									 Handsontable

Basic configuration

Advanced setup

Column features

Cell features

Basic cell types

Custom & checkboxes

Autocomplete & password

Search

Context menu

									 Responsive options

Responsive basic tables

Responsive data tables

Page kits

									 Task manager

Task grid

Task list

Task detailed

									 Invoicing

Invoice template

Invoice grid

Invoice archive

									 User pages

User cards

User list

Simple profile

Profile with cover

									 Login & registration

Simple login

More login info

Simple registration

More registration info

Unlock user

Reset password

Hide navbar

Transparent box

Background option

With validation

Tabbed form

Inside modals

									 Timelines

Left timeline

Right timeline

Centered timeline

									 Support

Conversation layouts

Conversation options

Knowledgebase

FAQ page

									 Search

Basic search results

User search results

Image search results

Video search results

									 Gallery

Media grid

Media with titles

Media with description

Media library

									 Error pages

Error 403

Error 404

Error 405

Error 500

Error 503

Offline page

 Pickers - Date & Time

								Statistics
								 Invoices
								 Schedule

 Home

Pickers

Date & time

 Support

									Settings

 Account security

 Analytics

 Accessibility

 All settings

Daterange picker

This date range picker component for Bootstrap creates a dropdown menu from which a user can select a range of dates. If invoked with no options, it will present two calendars to choose a start and end date from. Optionally, you can provide a list of date ranges the user can select from instead of choosing dates from the calendars.

										Basic date range picker:

											<input type="text" class="form-control daterange-basic" value="01/01/2015 - 01/31/2015">

										Display week numbers:

											<input type="text" class="form-control daterange-weeknumbers" value="03/18/2013 - 03/23/2013">

										Display time picker:

											<input type="text" class="form-control daterange-time" value="03/18/2013 - 03/23/2013">

										Basic single date picker:

											<input type="text" class="form-control daterange-single" value="03/18/2013">

										Simple text field attachment:
										<input type="text" class="form-control daterange-basic" value="03/18/2013 - 03/23/2013">

										Button class options:
										<input type="text" class="form-control daterange-buttons" value="03/18/2013 - 03/23/2013">

										Show calendars on left:

											<input type="text" class="form-control daterange-left" value="03/18/2013 - 03/23/2013">

										Display date dropdowns:

											<input type="text" class="form-control daterange-datemenu" value="03/18/2013 - 03/23/2013">

										10 minute increments:

											<input type="text" class="form-control daterange-increments" value="08/01/2013 1:00 PM - 08/01/2013 1:30 PM">

										Localization (ru):

											<input type="text" class="form-control daterange-locale" value="08/01/2013 1:00 PM - 08/01/2013 1:30 PM">

										Pre-defined ranges & callback:
										<button type="button" class="btn btn-default daterange-predefined">

										</button>

										Date picker inside button:
										<button type="button" class="btn btn-danger daterange-ranges">

										</button>

Pick-a-Date picker

Pickadate.js is a very powerful, mobile-friendly, responsive, and lightweight jQuery date & time input picker. The basic setup requires targetting an input element and invoking the picker. Basically this plugin includes 2 main parts: date picker and time picker. Time picker examples demonstrated below.

Basic options

The basic setup requires targetting an input element and invoking the picker.

											<input type="text" class="form-control pickadate" placeholder="Try me…">

Strings

Change the month and weekday labels as you find suitable.

											<input type="text" class="form-control pickadate-strings" placeholder="Try me…">

Buttons

Change the text or hide a button completely by passing a false-y value.

											<input type="text" class="form-control pickadate-buttons" placeholder="Try me…">

Formats

Display a human-friendly format and use an alternate one to submit to the server.

											<input type="text" class="form-control pickadate-format" placeholder="Try me…">

Year selector

You can also specify the number of years to show in the dropdown using an even integer.

											<input type="text" class="form-control pickadate-year" placeholder="Try me…">

First weekday

The first day of the week can be set to either Sunday or Monday.

											<input type="text" class="form-control pickadate-weekday" placeholder="Try me…">

Date limits

Set the minimum and maximum selectable dates on the picker.

											<input type="text" class="form-control pickadate-limits" placeholder="Try me…">

Accessibility labels

Change the title attributes to several elements within the picker

											<input type="text" class="form-control pickadate-accessibility" placeholder="Try me…">

Editable input

By default, typing into the input is disabled by giving it a readOnly attribute.

											<input type="text" class="form-control pickadate-editable" placeholder="Try me…">

Dropdown selectors

Display select menus to pick the month and year.

											<input type="text" class="form-control pickadate-selectors" placeholder="Try me…">

Translations

The picker supports translations for 39 languages, available out of the box.

											<input type="text" class="form-control pickadate-translated" placeholder="Try me…">

Disable ranges

Enable dates that fall within a range of disabled dates by adding the inverted parameter.

											<input type="text" class="form-control pickadate-disable-range" placeholder="Try me…">

Events

Fire off events as the user interacts with the picker.

											<input type="text" class="form-control pickadate-events" placeholder="Open your console and try me…">

Disable dates

Disable a specific or arbitrary set of dates selectable on the picker.

											<input type="text" class="form-control pickadate-disable" placeholder="Try me…">

Pick-a-Time time picker

Basic options

The basic setup requires targetting an input element and invoking the picke.r

											<input type="text" class="form-control pickatime" placeholder="Try me…">

Clear button

Change the text or hide the button completely by passing a false-y value.

											<input type="text" class="form-control pickatime-clear" placeholder="Try me…">

Timepicker formats

Display a human-friendly label and input format and use an alternate one to submit.

											<input type="text" class="form-control pickatime-format" placeholder="Try me…">

Send the hidden value only

Sometimes the value that needs to be sent to the server is just the hidden value – and not the visible one.

											<input type="text" class="form-control pickatime-hidden" placeholder="Try me…">

Time limits

Set the minimum and maximum selectable times on the picker.

											<input type="text" class="form-control pickatime-limits" placeholder="Try me…">

Using integers as hours

Set the minimum and maximum selectable times on the picker using integers as hours.

											<input type="text" class="form-control pickatime-limits-integers" placeholder="Try me…">

Disable times

Disable a specific or arbitrary set of times selectable on the picker

											<input type="text" class="form-control pickatime-disabled" placeholder="Try me…">

Disabling ranges

Enable times that fall within a range of disabled times by adding the inverted parameter.

											<input type="text" class="form-control pickatime-range" placeholder="Try me…">

Editable input

By default, text input has a readOnly attribute to hide virtual keyboards on touch devices.

											<input type="text" class="form-control pickatime-editable" placeholder="Try me…">

Timepicker events

Fire off events as the user interacts with the picker

											<input type="text" class="form-control pickatime-events" placeholder="Open your console and try me…">

Disabling all with exeptions

Enable only a specific or arbitrary set of times by setting true as the first item in the collection.

											<input type="text" class="form-control pickatime-disableall" placeholder="Try me…">

Timepicker intervals

Choose the minutes interval between each time in the list.

											<input type="text" class="form-control pickatime-intervals" placeholder="Try me…">

Anytime pickers

The Any+Time™ JavaScript Library includes a highly-customizable, jQuery-compatible datepicker/ timepicker (calendar/ clock widget) and a powerful Date/String parse/format utility. Anytime allows you to create a date/time picker with advanced features and options not found in other calendar/clock widgets, also to format dates and times in different ways.

Basic usage

Basic text field specifies that the week begins with Monday.

											<input type="text" class="form-control" id="anytime-date" value="Sunday, July 30th in the Year 1967 CE">

Month and day

Month and day only picker format

											<input type="text" class="form-control" id="anytime-month-day" value="4th of June">

Time picker

Current example displays hours and minutes only. Seconds can be added via plugin options.

											<input type="text" class="form-control" id="anytime-time" value="12:34">

Display hours only

Current example demonstrates simple time picker with hours only in AM/PM format.

											<input type="text" class="form-control" id="anytime-time-hours" value="9 PM">

Date and time pickers

The first field specifies that the week begins with Monday. The second field demonstrates a time picker.

											<input type="text" class="form-control" id="anytime-both" value="June 4th 08:47">

Custom display format

Custom display format can be specified via plugin options

											<input type="text" class="form-control" id="anytime-weekday" value="Wednesday, 4th of June, 2014">

Numeric date

Current example demonstrates custom DD/MM/YYYY date format

											<input type="text" class="form-control" id="anytime-month-numeric" value="04/06/2014">

Date range

In the following example, AnyTime.Converter and jQuery work together to provide date-range selection. The value for the second ("Finish") field must be at least one day after the date in the first ("Start") field, but no more than 90 days later.

<input type="text" class="form-control" id="rangeDemoStart" placeholder="Start date">

<input type="text" class="form-control" id="rangeDemoFinish" placeholder="Finish date" disabled="disabled">

										<input type="button" id="rangeDemoToday" class="btn btn-primary" value="today">
										<input type="button" id="rangeDemoClear" class="btn btn-default" value="clear">

On-Demand Picker

The following example shows how to create a field that initially does not have a picker, followed by a button that creates a picker for the field. This would be useful if you want to allow manual entry into the field, but it does not prevent the user from entering a value in the wrong format.

												<button type="button" class="btn btn-default btn-icon" id="ButtonCreationDemoButton"></button>

											<input type="text" class="form-control" id="ButtonCreationDemoInput" placeholder="Select a date">

										Format must be YYYY-MM-DD HH:MM:SS

						© 2015. Limitless Web App Kit by Eugene Kopyov


text:
/***************************************************************************//**
* \file cyhal_lptimer.c
*
* \brief
* Provides a high level interface for interacting with the Cypress Low-Power Timer.
* This interface abstracts out the chip specific details. If any chip specific
* functionality is necessary, or performance is critical the low level functions
* can be used directly.
*
********************************************************************************
* \copyright
* Copyright 2018-2019 Cypress Semiconductor Corporation
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/

#include "cmsis_compiler.h"
#include "cy_mcwdt.h"
#include "cy_syslib.h"
#include "cy_sysint.h"
#include "cyhal_lptimer.h"
#include "cyhal_hwmgr.h"
#include "cyhal_system_impl.h"
#include "cyhal_utils.h"

#ifdef CY_IP_MXS40SRSS_MCWDT_INSTANCES

#if defined(__cplusplus)
extern "C" {
#endif

static MCWDT_STRUCT_Type * const CYHAL_LPTIMER_BASE_ADDRESSES[] = {
#if CY_IP_MXS40SRSS_MCWDT_INSTANCES >= 1
    MCWDT_STRUCT0,
#endif
#if CY_IP_MXS40SRSS_MCWDT_INSTANCES >= 2
    MCWDT_STRUCT1,
#endif
#if CY_IP_MXS40SRSS_MCWDT_INSTANCES >= 3
#error "CY_IP_MXS40SRSS_MCWDT_INSTANCES > 2 not supported"
#endif
};

#define CY_MCWDT_MAX_DELAY_TICKS    (0xfff0ffffUL) /* ~36hours, Not set to 0xffffffff to avoid C0 and C1 both overflowing */
#define CY_MCWDT_LPTIMER_CTRL       (CY_MCWDT_CTR0 | CY_MCWDT_CTR1 | CY_MCWDT_CTR2)

#define CY_MCWDT_MIN_DELAY          3 /* minimum amount of lfclk cycles of that LPTIMER can delay for. */

#define CY_DEFAULT_MCWDT_PRIORITY   3

static const uint16_t CY_MCWDT_RESET_TIME_US = 62;
static const uint16_t CY_MCWDT_SETMATCH_NOWAIT_TIME_US = 0;

static cyhal_lptimer_t *cyhal_lptimer_config_structs[CY_IP_MXS40SRSS_MCWDT_INSTANCES];

static void cyhal_lptimer_irq_handler(void)
{
    uint32_t instance = CYHAL_GET_CURRENT_IRQN() - (uint32_t) srss_interrupt_mcwdt_0_IRQn;
    cyhal_lptimer_t *obj = cyhal_lptimer_config_structs[instance];

    Cy_MCWDT_ClearInterrupt(obj->base, CY_MCWDT_CTR0 | CY_MCWDT_CTR1 | CY_MCWDT_CTR2);

    if (NULL != obj->callback_data.callback)
    {
        cyhal_lptimer_event_callback_t callback = (cyhal_lptimer_event_callback_t) obj->callback_data.callback;
        (callback)(obj->callback_data.callback_arg, CYHAL_LPTIMER_COMPARE_MATCH);
    }
}

cy_rslt_t cyhal_lptimer_init(cyhal_lptimer_t *obj)
{
    CY_ASSERT(NULL != obj);

    obj->resource.type = CYHAL_RSC_INVALID;

    cy_rslt_t rslt = cyhal_hwmgr_allocate(CYHAL_RSC_LPTIMER, &(obj->resource));
    if (CY_RSLT_SUCCESS == rslt)
    {
        obj->base = CYHAL_LPTIMER_BASE_ADDRESSES[obj->resource.block_num];

        const cy_stc_mcwdt_config_t cfg = {
                .c0Match = 0xFFFF,
                .c1Match = 0xFFFF,
                .c0Mode = CY_MCWDT_MODE_INT,
                .c1Mode = CY_MCWDT_MODE_INT,
                .c2Mode = CY_MCWDT_MODE_NONE,
                .c2ToggleBit = 0,
                .c0ClearOnMatch = false,
                .c1ClearOnMatch = false,
                .c0c1Cascade = true,
                .c1c2Cascade = false
        };
        rslt = (cy_rslt_t) Cy_MCWDT_Init(obj->base, &cfg);
    }

    if (CY_RSLT_SUCCESS == rslt)
    {
        obj->callback_data.callback = NULL;
        obj->callback_data.callback_arg = NULL;
        cyhal_lptimer_config_structs[obj->resource.block_num] = obj;
    }

    if (CY_RSLT_SUCCESS == rslt)
    {
        IRQn_Type irqn = (IRQn_Type) (srss_interrupt_mcwdt_0_IRQn + obj->resource.block_num);
        cy_stc_sysint_t irqCfg = { irqn, CY_DEFAULT_MCWDT_PRIORITY };
        rslt = (cy_rslt_t) Cy_SysInt_Init(&irqCfg, &cyhal_lptimer_irq_handler);
        if (CY_RSLT_SUCCESS == rslt)
        {
            NVIC_EnableIRQ(irqn);
            Cy_MCWDT_Enable(obj->base, CY_MCWDT_LPTIMER_CTRL, CY_MCWDT_RESET_TIME_US);
        }
    }

    if (CY_RSLT_SUCCESS != rslt)
    {
        cyhal_lptimer_free(obj);
    }

    return rslt;
}

void cyhal_lptimer_free(cyhal_lptimer_t *obj)
{
    if (CYHAL_RSC_INVALID != obj->resource.type)
    {
        IRQn_Type irqn = (IRQn_Type)(srss_interrupt_mcwdt_0_IRQn + obj->resource.block_num);
        NVIC_DisableIRQ(irqn);

        cyhal_hwmgr_free(&(obj->resource));
        obj->resource.type = CYHAL_RSC_INVALID;
    }
    if (NULL != obj->base)
    {
        Cy_MCWDT_Disable(obj->base, CY_MCWDT_LPTIMER_CTRL, CY_MCWDT_RESET_TIME_US);
        Cy_MCWDT_DeInit(obj->base);
        obj->base = NULL;
    }
}

cy_rslt_t cyhal_lptimer_reload(cyhal_lptimer_t *obj)
{
    Cy_MCWDT_ResetCounters(obj->base, CY_MCWDT_CTR2, CY_MCWDT_RESET_TIME_US);
    return CY_RSLT_SUCCESS;
}

cy_rslt_t cyhal_lptimer_set_match(cyhal_lptimer_t *obj, uint32_t ticks)
{
    return cyhal_lptimer_set_delay(obj, ticks - cyhal_lptimer_read(obj));
}

cy_rslt_t cyhal_lptimer_set_delay(cyhal_lptimer_t *obj, uint32_t delay)
{
    /**
     * 16 bit C0/C1 are cascaded to generated a 32 bit counter.
     * Counter0 continues counting after reaching its match value
     * Interrupt is generated on Counter1 match.
     *
     * Supposed T=C0=C1=0, and we need to trigger an interrupt at T=0x28000.
     * We set C0_match to 0x8000 and C1 match to 1.
     * At T = 0x8000, C0_value matches C0_match so C1 get incremented. C1/C0=0x18000.
     * At T = 0x18000, C0_value matches C0_match again so C1 get incremented from 1 to 2.
     * When C1 get incremented from 1 to 2 theinterrupt is generated.
     * At T = 0x18000, C1/C0 = 0x28000.
     */

    if (delay <= CY_MCWDT_MIN_DELAY)
    {
        delay = CY_MCWDT_MIN_DELAY;
    }
    if (delay > CY_MCWDT_MAX_DELAY_TICKS)
    {
        delay = CY_MCWDT_MAX_DELAY_TICKS;
    }

    uint16_t c0_increment = (uint16_t)delay;
    uint16_t c1_increment = (uint16_t)(delay >> 16);

    Cy_MCWDT_ClearInterrupt(obj->base, CY_MCWDT_CTR1);

    uint16_t c0_old_match = Cy_MCWDT_GetMatch(obj->base, CY_MCWDT_COUNTER0);

    uint32_t critical_section = cyhal_system_critical_section_enter();

    /* Cascading from C0 match into C1 is queued and can take 1 full LF clk cycle.
     * There are 3 cases:
     * Case 1: if c0 = match0 then the cascade into C1 will happen 1 cycle from now. The value c1_current_ticks is 1 lower than expected.
     * Case 2: if c0 = match0 -1 then cascade may or not happen before new match value would occur. Match occurs on rising clock edge.
     *          Synching match value occurs on falling edge. Wait until c0 = match0 to ensure cascade occurs.
     * Case 3: everything works as expected.
     */
    uint16_t c0_current_ticks;
    while ((c0_current_ticks = (Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER0))) == c0_old_match) {}

    uint16_t c1_current_ticks = Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER1);
    if (c0_current_ticks == c0_old_match + 1)
    {
        c1_current_ticks++;
    }
    if (Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER0) != c0_current_ticks)
    {
        // Just in the very unlikely case that an increment occurred while previous instruction was running.
        c1_current_ticks = Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER1);
    }
    Cy_MCWDT_SetMatch(obj->base, CY_MCWDT_COUNTER0, c0_current_ticks + c0_increment, CY_MCWDT_SETMATCH_NOWAIT_TIME_US);
    Cy_MCWDT_SetMatch(obj->base, CY_MCWDT_COUNTER1, c1_current_ticks + c1_increment, CY_MCWDT_SETMATCH_NOWAIT_TIME_US);

    cyhal_system_critical_section_exit(critical_section);

    Cy_MCWDT_SetInterruptMask(obj->base, CY_MCWDT_CTR1);

    return CY_RSLT_SUCCESS;
}

uint32_t cyhal_lptimer_read(const cyhal_lptimer_t *obj)
{
    return Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER2);
}

void cyhal_lptimer_register_callback(cyhal_lptimer_t *obj, cyhal_lptimer_event_callback_t callback, void *callback_arg)
{
    CY_ASSERT_L2(CYHAL_RSC_INVALID != obj->resource.block_num);

    uint32_t savedIntrStatus = cyhal_system_critical_section_enter();
    obj->callback_data.callback = (cy_israddress) callback;
    obj->callback_data.callback_arg = callback_arg;
    cyhal_system_critical_section_exit(savedIntrStatus);
}

void cyhal_lptimer_enable_event(cyhal_lptimer_t *obj, cyhal_lptimer_event_t event, uint8_t intrPriority, bool enable)
{
    CY_ASSERT(event == CYHAL_LPTIMER_COMPARE_MATCH);
    Cy_MCWDT_ClearInterrupt(obj->base, CY_MCWDT_CTR1);
    Cy_MCWDT_SetInterruptMask(obj->base, enable ? CY_MCWDT_CTR1 : 0);

    IRQn_Type irqn = (IRQn_Type)(srss_interrupt_mcwdt_0_IRQn + obj->resource.block_num);
    NVIC_SetPriority(irqn, intrPriority);
}

void cyhal_lptimer_irq_trigger(cyhal_lptimer_t *obj)
{
    CY_ASSERT_L2(CYHAL_RSC_INVALID != obj->resource.block_num);
    IRQn_Type irqn = (IRQn_Type)(srss_interrupt_mcwdt_0_IRQn + obj->resource.block_num);
    NVIC_SetPendingIRQ(irqn);
}

#if defined(__cplusplus)
}
#endif

#endif /* CY_IP_MXS40SRSS_MCWDT_INSTANCES */


text:
	#pragma once
#endif
#ifndef oHLSLMacros_h
#define oHLSLMacros_h

#ifdef oHLSL
	#define oIN(Type, Param) in Type Param
	#define oOUT(Type, Param) out Type Param
	#define oINOUT(Type, Param) inout Type Param

	#define oHLSL_ALLOW_UAV_CONDITION [allow_uav_condition]
	#define oHLSL_LOOP [loop]
	#define oHLSL_UNROLL [unroll]
	#define oHLSL_UNROLL1(x) [unroll(x)]
	#define oHLSL_FASTOPT [fastopt]
#else
	#define oIN(Type, Param) const Type& Param
	#define oOUT(Type, Param) Type& Param
	#define oINOUT(Type, Param) Type& Param

	#define oHLSL_ALLOW_UAV_CONDITION
	#define oHLSL_LOOP
	#define oHLSL_UNROLL
	#define oHLSL_UNROLL1(x)
	#define oHLSL_FASTOP
#endif
#endif


text:
#ifndef TREIBER_STACK
#define TREIBER_STACK

#include <stdatomic.h>
#include <stdbool.h>

/**
 * Treiber, R.K.: Systems programming: Coping with parallelism. Technical Report
 * RJ 5118, IBM Almaden Research Center (1986)
 */

typedef int data_type;
#define EMPTY -1

typedef struct node_t {
  data_type d;
  struct node_t* n;
} node;

typedef struct stack_t {
  _Atomic(node*) top;
} stack;

void init_stack(stack* s);
void push(stack* s, data_type v);
data_type pop(stack* s);

int unsafe_size(stack* s);
void print(stack* s);

#endif


text:
libGPML
=============================================================================

[![Java CI with Maven](https://github.com/PathVisio/libGPML/actions/workflows/maven.yml/badge.svg)](https://github.com/PathVisio/libGPML/actions/workflows/maven.yml)[![codecov](https://codecov.io/gh/PathVisio/libGPML/branch/main/graph/badge.svg?token=xJbZhucQun)](https://codecov.io/gh/PathVisio/libGPML)
[![DOI](https://zenodo.org/badge/336210372.svg)](https://zenodo.org/badge/latestdoi/336210372)
[![Maven Central](https://img.shields.io/maven-central/v/org.pathvisio/org.pathvisio.libgpml.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.pathvisio%22%20AND%20a:%22org.pathvisio.libgpml%22)

libGPML is an open-source Java library for working with [GPML (Graphical Pathway Markup Language)](https://pathvisio.github.io/documentation/GPML).

How to cite
-----------------
If you use this software, please cite the article in JOSS:

*In progress...*

Table of contents
-----------------
* [Introduction](#introduction)
* [Dependencies](#dependencies)
* [Usage](#usage)
* [Library Architecture](#library-architecture)
* [Getting help](#getting-help)
* [Contributing](#contributing)
* [License](#license)
* [Authors and history](#authors-and-history)
* [Acknowledgments](#authors-and-acknowledgments)

Introduction
------------

libGPML is a Java programming library that helps you read, write, validate, manipulate, and convert files and data streams in the [GPML (Graphical Pathway Markup Language)](https://pathvisio.github.io/documentation/GPML) format.

Why not simply use a generic XML parsing library?  A specialized library such as libGPML offers many advantages over using a generic XML library directly.  Here are some:

* **Java object model**.  libGPML's object model and API are designed around GPML and the operations that are commonly needed when working with GPML.

* **Validation**. libGPML implements all the validation rules defined in the GPML specifications.

* **Conversion**: libGPML can convert between GPML2013a and GPML2021. Conversions between GPML2013a and older

libGPML works on Linux, Windows, and  MacOS X, and other operating systems.

Dependencies
------------
You need the following tools:

* Computer with Windows, Mac, or Linux
* [JDK 11](https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html)
* [Maven 3](https://maven.apache.org/) (Tested with 3.8.1)

Usage
-----
Documentation is available online at [libGPML Java Documentation](https://pathvisio.org/libgpml-javadoc/).

Library Architecture
------------
libGPML uses an object oriented Java model. In the libGPML Java model, GPML Pathway Elements are represented by Java Classes.  Pathway Element types are represented by Enum Java Classes.

  Figure 1: libGPML Java Object Model

libGPML consists of several packages:
- org.pathvisio.libgpml.debug - Debugging and logging utility classes
- org.pathvisio.libgpml.io - Import and export classes
- org.pathvisio.libgpml.model - Classes representing the pathway "model". Also includes classes for reading and writing.
- org.pathvisio.libgpml.model.connector - Line connectors classes
- org.pathvisio.libgpml.model.shape - Shape defining classes
- org.pathvisio.libgpml.model.type - Enum type classes
- org.pathvisio.libgpml.prop - Properties classes
- org.pathvisio.libgpml.util - Utility classes

Getting help
------------
You can report issues, suggestions and requests using the [GitHub issue tracker](https://github.com/libGPML/issues).

Contributing
------------
We welcome contributions to libGPML!  Please read our [contribution guidelines](CONTRIBUTING.md), and also feel free to contact the developers to coordinate your efforts.

License
-------
libGPML is available for free under the terms of the [Apache License, Version 2.0](LICENSE).

Authors and history
---------------------------
libGPML's main authors are [Finterly Hu](https://github.com/Finterly), [Martina Summer-Kutmon](https://github.com/mkutmon), with contributions from many others.  We especially thank the following (**in alphabetical order**):
* Alex Pico
* Anders Riutta
* Chris Evelo
* Denise Slenter
* Egon Willighagen
* Friederike Ehrhart
* Kristina Hanspers
* Luc de Meyer
* Nhung Pham
* Susan Coort

Acknowledgments
---------------

The development of libGPML was supported in largely by funding from WikiPathways-COVID19 ZonMW project.


text:
///
/// Copyright (c) 2016, bookrpg, All rights reserved.
/// @author llj <wwwllj1985@163.com>
/// @license The MIT License
///

using System;
using System.Collections;

namespace bookrpg.data
{
    public abstract class DataItemBase
    {
        protected object _key1;
        protected object _key2;

        public DataItemBase()
        {
        }

        public virtual bool ParseFrom(IDataParser parser)
        {
            throw new NotImplementedException();
        }

        public virtual object GetKey()
        {
            return _key1;
        }

        public virtual object GetSecondKey()
        {
            return _key2;
        }
    }
}


text:
#pragma once

#ifdef MMS_FEATURES_SHARED_PTR
#    error another shared_ptr have already been used
#else
#    define MMS_FEATURES_SHARED_PTR BOOST
#endif

#include <boost/shared_ptr.hpp>

namespace mms {
namespace impl {

template<class T>
struct shared_ptr_base {
    typedef boost::shared_ptr<T> type;
};

} // namespace impl
} // namespace mms


text:
module DataAbstraction::SensorData
  class UV_Figure < Generic
    STANDARD_UNIT = ""
    def initialize(data, meta_values = {}, unit = STANDARD_UNIT)
      super(data, meta_values, unit)
      @value = FigureValue.new(data['value'].to_f, @unit)
    end
    def self.unit_class
      FigureValue
    end
    def self.standard_unit
      STANDARD_UNIT
    end
  end
end


text:
package org.duracloud.domain;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

/**
 * Content - a stream of bits and properties to describe the stream.
 *
 * @author Bill Branan
 */
public class Content {
    private String id;
    private Map<String, String> properties = new HashMap<String, String>();
    private InputStream stream = null;

    /**
     *
Getter for the field id.

     */
    public String getId() {
        return id;
    }

    /**
     *
Setter for the field id.

     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     *
Getter for the field properties.

     */
    public Map<String, String> getProperties() {
        return properties;
    }

    /**
     *
Setter for the field properties.

     */
    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }

    /**
     *
Adds an item to the content properties map

     *
     * @param name  properties key
     * @param value properties value
     */
    public void addProperties(String name, String value) {
        properties.put(name, value);
    }

    /**
     *
Getter for the field stream.

     */
    public InputStream getStream() {
        return stream;
    }

    /**
     *
Setter for the field stream.

     */
    public void setStream(InputStream stream) {
        this.stream = stream;
    }
}