text:
// This file was generated by Mendix Modeler.
//
// WARNING: Code you write here will be lost the next time you deploy the project.

package cassandra.proxies;

public class ResultObject
{
	private final com.mendix.systemwideinterfaces.core.IMendixObject resultObjectMendixObject;

	private final com.mendix.systemwideinterfaces.core.IContext context;

	/**
	 * Internal name of this entity
	 */
	public static final java.lang.String entityName = "Cassandra.ResultObject";

	/**
	 * Enum describing members of this entity
	 */
	public enum MemberNames
	{
		type_ascii("type_ascii"),
		type_boolean("type_boolean"),
		type_smallint("type_smallint"),
		type_decimal("type_decimal"),
		type_inet("type_inet"),
		type_int("type_int"),
		type_timestamp("type_timestamp"),
		type_varchar("type_varchar"),
		type_varint("type_varint"),
		type_timeuuid("type_timeuuid"),
		type_date("type_date"),
		type_time("type_time"),
		name("name"),
		recipe("recipe"),
		type_uuid("type_uuid"),
		type_bigint("type_bigint"),
		type_tinyint("type_tinyint"),
		type_text("type_text"),
		ResultObject_Query("Cassandra.ResultObject_Query");

		private java.lang.String metaName;

		MemberNames(java.lang.String s)
		{
			metaName = s;
		}

		@Override
		public java.lang.String toString()
		{
			return metaName;
		}
	}

	public ResultObject(com.mendix.systemwideinterfaces.core.IContext context)
	{
		this(context, com.mendix.core.Core.instantiate(context, "Cassandra.ResultObject"));
	}

	protected ResultObject(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject resultObjectMendixObject)
	{
		if (resultObjectMendixObject == null)
			throw new java.lang.IllegalArgumentException("The given object cannot be null.");
		if (!com.mendix.core.Core.isSubClassOf("Cassandra.ResultObject", resultObjectMendixObject.getType()))
			throw new java.lang.IllegalArgumentException("The given object is not a Cassandra.ResultObject");

		this.resultObjectMendixObject = resultObjectMendixObject;
		this.context = context;
	}

	/**
	 * @deprecated Use 'ResultObject.load(IContext, IMendixIdentifier)' instead.
	 */
	@Deprecated
	public static cassandra.proxies.ResultObject initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException
	{
		return cassandra.proxies.ResultObject.load(context, mendixIdentifier);
	}

	/**
	 * Initialize a proxy using context (recommended). This context will be used for security checking when the get- and set-methods without context parameters are called.
	 * The get- and set-methods with context parameter should be used when for instance sudo access is necessary (IContext.createSudoClone() can be used to obtain sudo access).
	 */
	public static cassandra.proxies.ResultObject initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)
	{
		return new cassandra.proxies.ResultObject(context, mendixObject);
	}

	public static cassandra.proxies.ResultObject load(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException
	{
		com.mendix.systemwideinterfaces.core.IMendixObject mendixObject = com.mendix.core.Core.retrieveId(context, mendixIdentifier);
		return cassandra.proxies.ResultObject.initialize(context, mendixObject);
	}

	/**
	 * Commit the changes made on this proxy object.
	 */
	public final void commit() throws com.mendix.core.CoreException
	{
		com.mendix.core.Core.commit(context, getMendixObject());
	}

	/**
	 * Commit the changes made on this proxy object using the specified context.
	 */
	public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException
	{
		com.mendix.core.Core.commit(context, getMendixObject());
	}

	/**
	 * Delete the object.
	 */
	public final void delete()
	{
		com.mendix.core.Core.delete(context, getMendixObject());
	}

	/**
	 * Delete the object using the specified context.
	 */
	public final void delete(com.mendix.systemwideinterfaces.core.IContext context)
	{
		com.mendix.core.Core.delete(context, getMendixObject());
	}
	/**
	 * @return value of type_ascii
	 */
	public final java.lang.String gettype_ascii()
	{
		return gettype_ascii(getContext());
	}

	/**
	 * @param context
	 * @return value of type_ascii
	 */
	public final java.lang.String gettype_ascii(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_ascii.toString());
	}

	/**
	 * Set value of type_ascii
	 * @param type_ascii
	 */
	public final void settype_ascii(java.lang.String type_ascii)
	{
		settype_ascii(getContext(), type_ascii);
	}

	/**
	 * Set value of type_ascii
	 * @param context
	 * @param type_ascii
	 */
	public final void settype_ascii(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_ascii)
	{
		getMendixObject().setValue(context, MemberNames.type_ascii.toString(), type_ascii);
	}

	/**
	 * @return value of type_boolean
	 */
	public final java.lang.Boolean gettype_boolean()
	{
		return gettype_boolean(getContext());
	}

	/**
	 * @param context
	 * @return value of type_boolean
	 */
	public final java.lang.Boolean gettype_boolean(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.Boolean) getMendixObject().getValue(context, MemberNames.type_boolean.toString());
	}

	/**
	 * Set value of type_boolean
	 * @param type_boolean
	 */
	public final void settype_boolean(java.lang.Boolean type_boolean)
	{
		settype_boolean(getContext(), type_boolean);
	}

	/**
	 * Set value of type_boolean
	 * @param context
	 * @param type_boolean
	 */
	public final void settype_boolean(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean type_boolean)
	{
		getMendixObject().setValue(context, MemberNames.type_boolean.toString(), type_boolean);
	}

	/**
	 * @return value of type_smallint
	 */
	public final java.lang.Integer gettype_smallint()
	{
		return gettype_smallint(getContext());
	}

	/**
	 * @param context
	 * @return value of type_smallint
	 */
	public final java.lang.Integer gettype_smallint(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.Integer) getMendixObject().getValue(context, MemberNames.type_smallint.toString());
	}

	/**
	 * Set value of type_smallint
	 * @param type_smallint
	 */
	public final void settype_smallint(java.lang.Integer type_smallint)
	{
		settype_smallint(getContext(), type_smallint);
	}

	/**
	 * Set value of type_smallint
	 * @param context
	 * @param type_smallint
	 */
	public final void settype_smallint(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer type_smallint)
	{
		getMendixObject().setValue(context, MemberNames.type_smallint.toString(), type_smallint);
	}

	/**
	 * @return value of type_decimal
	 */
	public final java.math.BigDecimal gettype_decimal()
	{
		return gettype_decimal(getContext());
	}

	/**
	 * @param context
	 * @return value of type_decimal
	 */
	public final java.math.BigDecimal gettype_decimal(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.math.BigDecimal) getMendixObject().getValue(context, MemberNames.type_decimal.toString());
	}

	/**
	 * Set value of type_decimal
	 * @param type_decimal
	 */
	public final void settype_decimal(java.math.BigDecimal type_decimal)
	{
		settype_decimal(getContext(), type_decimal);
	}

	/**
	 * Set value of type_decimal
	 * @param context
	 * @param type_decimal
	 */
	public final void settype_decimal(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal type_decimal)
	{
		getMendixObject().setValue(context, MemberNames.type_decimal.toString(), type_decimal);
	}

	/**
	 * @return value of type_inet
	 */
	public final java.lang.String gettype_inet()
	{
		return gettype_inet(getContext());
	}

	/**
	 * @param context
	 * @return value of type_inet
	 */
	public final java.lang.String gettype_inet(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_inet.toString());
	}

	/**
	 * Set value of type_inet
	 * @param type_inet
	 */
	public final void settype_inet(java.lang.String type_inet)
	{
		settype_inet(getContext(), type_inet);
	}

	/**
	 * Set value of type_inet
	 * @param context
	 * @param type_inet
	 */
	public final void settype_inet(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_inet)
	{
		getMendixObject().setValue(context, MemberNames.type_inet.toString(), type_inet);
	}

	/**
	 * @return value of type_int
	 */
	public final java.lang.Integer gettype_int()
	{
		return gettype_int(getContext());
	}

	/**
	 * @param context
	 * @return value of type_int
	 */
	public final java.lang.Integer gettype_int(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.Integer) getMendixObject().getValue(context, MemberNames.type_int.toString());
	}

	/**
	 * Set value of type_int
	 * @param type_int
	 */
	public final void settype_int(java.lang.Integer type_int)
	{
		settype_int(getContext(), type_int);
	}

	/**
	 * Set value of type_int
	 * @param context
	 * @param type_int
	 */
	public final void settype_int(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer type_int)
	{
		getMendixObject().setValue(context, MemberNames.type_int.toString(), type_int);
	}

	/**
	 * @return value of type_timestamp
	 */
	public final java.util.Date gettype_timestamp()
	{
		return gettype_timestamp(getContext());
	}

	/**
	 * @param context
	 * @return value of type_timestamp
	 */
	public final java.util.Date gettype_timestamp(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.util.Date) getMendixObject().getValue(context, MemberNames.type_timestamp.toString());
	}

	/**
	 * Set value of type_timestamp
	 * @param type_timestamp
	 */
	public final void settype_timestamp(java.util.Date type_timestamp)
	{
		settype_timestamp(getContext(), type_timestamp);
	}

	/**
	 * Set value of type_timestamp
	 * @param context
	 * @param type_timestamp
	 */
	public final void settype_timestamp(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date type_timestamp)
	{
		getMendixObject().setValue(context, MemberNames.type_timestamp.toString(), type_timestamp);
	}

	/**
	 * @return value of type_varchar
	 */
	public final java.lang.String gettype_varchar()
	{
		return gettype_varchar(getContext());
	}

	/**
	 * @param context
	 * @return value of type_varchar
	 */
	public final java.lang.String gettype_varchar(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_varchar.toString());
	}

	/**
	 * Set value of type_varchar
	 * @param type_varchar
	 */
	public final void settype_varchar(java.lang.String type_varchar)
	{
		settype_varchar(getContext(), type_varchar);
	}

	/**
	 * Set value of type_varchar
	 * @param context
	 * @param type_varchar
	 */
	public final void settype_varchar(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_varchar)
	{
		getMendixObject().setValue(context, MemberNames.type_varchar.toString(), type_varchar);
	}

	/**
	 * @return value of type_varint
	 */
	public final java.math.BigDecimal gettype_varint()
	{
		return gettype_varint(getContext());
	}

	/**
	 * @param context
	 * @return value of type_varint
	 */
	public final java.math.BigDecimal gettype_varint(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.math.BigDecimal) getMendixObject().getValue(context, MemberNames.type_varint.toString());
	}

	/**
	 * Set value of type_varint
	 * @param type_varint
	 */
	public final void settype_varint(java.math.BigDecimal type_varint)
	{
		settype_varint(getContext(), type_varint);
	}

	/**
	 * Set value of type_varint
	 * @param context
	 * @param type_varint
	 */
	public final void settype_varint(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal type_varint)
	{
		getMendixObject().setValue(context, MemberNames.type_varint.toString(), type_varint);
	}

	/**
	 * @return value of type_timeuuid
	 */
	public final java.lang.String gettype_timeuuid()
	{
		return gettype_timeuuid(getContext());
	}

	/**
	 * @param context
	 * @return value of type_timeuuid
	 */
	public final java.lang.String gettype_timeuuid(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_timeuuid.toString());
	}

	/**
	 * Set value of type_timeuuid
	 * @param type_timeuuid
	 */
	public final void settype_timeuuid(java.lang.String type_timeuuid)
	{
		settype_timeuuid(getContext(), type_timeuuid);
	}

	/**
	 * Set value of type_timeuuid
	 * @param context
	 * @param type_timeuuid
	 */
	public final void settype_timeuuid(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_timeuuid)
	{
		getMendixObject().setValue(context, MemberNames.type_timeuuid.toString(), type_timeuuid);
	}

	/**
	 * @return value of type_date
	 */
	public final java.lang.String gettype_date()
	{
		return gettype_date(getContext());
	}

	/**
	 * @param context
	 * @return value of type_date
	 */
	public final java.lang.String gettype_date(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_date.toString());
	}

	/**
	 * Set value of type_date
	 * @param type_date
	 */
	public final void settype_date(java.lang.String type_date)
	{
		settype_date(getContext(), type_date);
	}

	/**
	 * Set value of type_date
	 * @param context
	 * @param type_date
	 */
	public final void settype_date(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_date)
	{
		getMendixObject().setValue(context, MemberNames.type_date.toString(), type_date);
	}

	/**
	 * @return value of type_time
	 */
	public final java.lang.Long gettype_time()
	{
		return gettype_time(getContext());
	}

	/**
	 * @param context
	 * @return value of type_time
	 */
	public final java.lang.Long gettype_time(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.Long) getMendixObject().getValue(context, MemberNames.type_time.toString());
	}

	/**
	 * Set value of type_time
	 * @param type_time
	 */
	public final void settype_time(java.lang.Long type_time)
	{
		settype_time(getContext(), type_time);
	}

	/**
	 * Set value of type_time
	 * @param context
	 * @param type_time
	 */
	public final void settype_time(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Long type_time)
	{
		getMendixObject().setValue(context, MemberNames.type_time.toString(), type_time);
	}

	/**
	 * @return value of name
	 */
	public final java.lang.String getname()
	{
		return getname(getContext());
	}

	/**
	 * @param context
	 * @return value of name
	 */
	public final java.lang.String getname(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.name.toString());
	}

	/**
	 * Set value of name
	 * @param name
	 */
	public final void setname(java.lang.String name)
	{
		setname(getContext(), name);
	}

	/**
	 * Set value of name
	 * @param context
	 * @param name
	 */
	public final void setname(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String name)
	{
		getMendixObject().setValue(context, MemberNames.name.toString(), name);
	}

	/**
	 * @return value of recipe
	 */
	public final java.lang.String getrecipe()
	{
		return getrecipe(getContext());
	}

	/**
	 * @param context
	 * @return value of recipe
	 */
	public final java.lang.String getrecipe(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.recipe.toString());
	}

	/**
	 * Set value of recipe
	 * @param recipe
	 */
	public final void setrecipe(java.lang.String recipe)
	{
		setrecipe(getContext(), recipe);
	}

	/**
	 * Set value of recipe
	 * @param context
	 * @param recipe
	 */
	public final void setrecipe(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String recipe)
	{
		getMendixObject().setValue(context, MemberNames.recipe.toString(), recipe);
	}

	/**
	 * @return value of type_uuid
	 */
	public final java.lang.String gettype_uuid()
	{
		return gettype_uuid(getContext());
	}

	/**
	 * @param context
	 * @return value of type_uuid
	 */
	public final java.lang.String gettype_uuid(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_uuid.toString());
	}

	/**
	 * Set value of type_uuid
	 * @param type_uuid
	 */
	public final void settype_uuid(java.lang.String type_uuid)
	{
		settype_uuid(getContext(), type_uuid);
	}

	/**
	 * Set value of type_uuid
	 * @param context
	 * @param type_uuid
	 */
	public final void settype_uuid(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_uuid)
	{
		getMendixObject().setValue(context, MemberNames.type_uuid.toString(), type_uuid);
	}

	/**
	 * @return value of type_bigint
	 */
	public final java.lang.Long gettype_bigint()
	{
		return gettype_bigint(getContext());
	}

	/**
	 * @param context
	 * @return value of type_bigint
	 */
	public final java.lang.Long gettype_bigint(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.Long) getMendixObject().getValue(context, MemberNames.type_bigint.toString());
	}

	/**
	 * Set value of type_bigint
	 * @param type_bigint
	 */
	public final void settype_bigint(java.lang.Long type_bigint)
	{
		settype_bigint(getContext(), type_bigint);
	}

	/**
	 * Set value of type_bigint
	 * @param context
	 * @param type_bigint
	 */
	public final void settype_bigint(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Long type_bigint)
	{
		getMendixObject().setValue(context, MemberNames.type_bigint.toString(), type_bigint);
	}

	/**
	 * @return value of type_tinyint
	 */
	public final java.lang.Integer gettype_tinyint()
	{
		return gettype_tinyint(getContext());
	}

	/**
	 * @param context
	 * @return value of type_tinyint
	 */
	public final java.lang.Integer gettype_tinyint(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.Integer) getMendixObject().getValue(context, MemberNames.type_tinyint.toString());
	}

	/**
	 * Set value of type_tinyint
	 * @param type_tinyint
	 */
	public final void settype_tinyint(java.lang.Integer type_tinyint)
	{
		settype_tinyint(getContext(), type_tinyint);
	}

	/**
	 * Set value of type_tinyint
	 * @param context
	 * @param type_tinyint
	 */
	public final void settype_tinyint(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer type_tinyint)
	{
		getMendixObject().setValue(context, MemberNames.type_tinyint.toString(), type_tinyint);
	}

	/**
	 * @return value of type_text
	 */
	public final java.lang.String gettype_text()
	{
		return gettype_text(getContext());
	}

	/**
	 * @param context
	 * @return value of type_text
	 */
	public final java.lang.String gettype_text(com.mendix.systemwideinterfaces.core.IContext context)
	{
		return (java.lang.String) getMendixObject().getValue(context, MemberNames.type_text.toString());
	}

	/**
	 * Set value of type_text
	 * @param type_text
	 */
	public final void settype_text(java.lang.String type_text)
	{
		settype_text(getContext(), type_text);
	}

	/**
	 * Set value of type_text
	 * @param context
	 * @param type_text
	 */
	public final void settype_text(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String type_text)
	{
		getMendixObject().setValue(context, MemberNames.type_text.toString(), type_text);
	}

	/**
	 * @return value of ResultObject_Query
	 */
	public final cassandra.proxies.Query getResultObject_Query() throws com.mendix.core.CoreException
	{
		return getResultObject_Query(getContext());
	}

	/**
	 * @param context
	 * @return value of ResultObject_Query
	 */
	public final cassandra.proxies.Query getResultObject_Query(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException
	{
		cassandra.proxies.Query result = null;
		com.mendix.systemwideinterfaces.core.IMendixIdentifier identifier = getMendixObject().getValue(context, MemberNames.ResultObject_Query.toString());
		if (identifier != null)
			result = cassandra.proxies.Query.load(context, identifier);
		return result;
	}

	/**
	 * Set value of ResultObject_Query
	 * @param resultobject_query
	 */
	public final void setResultObject_Query(cassandra.proxies.Query resultobject_query)
	{
		setResultObject_Query(getContext(), resultobject_query);
	}

	/**
	 * Set value of ResultObject_Query
	 * @param context
	 * @param resultobject_query
	 */
	public final void setResultObject_Query(com.mendix.systemwideinterfaces.core.IContext context, cassandra.proxies.Query resultobject_query)
	{
		if (resultobject_query == null)
			getMendixObject().setValue(context, MemberNames.ResultObject_Query.toString(), null);
		else
			getMendixObject().setValue(context, MemberNames.ResultObject_Query.toString(), resultobject_query.getMendixObject().getId());
	}

	/**
	 * @return the IMendixObject instance of this proxy for use in the Core interface.
	 */
	public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject()
	{
		return resultObjectMendixObject;
	}

	/**
	 * @return the IContext instance of this proxy, or null if no IContext instance was specified at initialization.
	 */
	public final com.mendix.systemwideinterfaces.core.IContext getContext()
	{
		return context;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (obj == this)
			return true;

		if (obj != null && getClass().equals(obj.getClass()))
		{
			final cassandra.proxies.ResultObject that = (cassandra.proxies.ResultObject) obj;
			return getMendixObject().equals(that.getMendixObject());
		}
		return false;
	}

	@Override
	public int hashCode()
	{
		return getMendixObject().hashCode();
	}

	/**
	 * @return String name of this class
	 */
	public static java.lang.String getType()
	{
		return "Cassandra.ResultObject";
	}

	/**
	 * @return String GUID from this object, format: ID_0000000000
	 * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object.
	 */
	@Deprecated
	public java.lang.String getGUID()
	{
		return "ID_" + getMendixObject().getId().toLong();
	}
}


text:
function MU_print_tcase_summary(tc_summary, mode)
% MU_print_tcase_summary -- Print a test case summary.
%
%****f* lib.report/MU_print_tcase_summary
%
% NAME
%   MU_print_tcase_summary -- Print a test case summary.
%
% SYNOPSIS
%   MU_print_tcase_summary(tc_summary)
%
% INPUTS
%   tc_summary     = test case summary struct.
%
% OUTPUTS
%   (none)
%
% SIDE EFFECTS
%   Test case summary printed to display or log file.
%
%
% DESCRIPTION
%   Function prints a summary of a test case run.
%
%   See MUnit_Variables for a description of mode.
%
% TOOLBOX
%     munit/munit
%
% CATEGORY
%   MUNIT Library:  Reporting Functions
%
%***

% AUTHOR
%   Charlie Cornish
%
% CREATION DATE
%   2004-Apr-27
%
% COPYRIGHT
%
%
% CREDITS
%
%
% REVISION
%   $Revision: 89 $
%

%   $Id: MU_print_tcase_summary.m 89 2005-02-28 23:47:28Z ccornish $

switch(lower(mode))
 case {'minimal', 'normal', 'verbose', 'details'}
  str = ['Summary for Test Case:  ', tc_summary.tcname];
  disp(str);
  str = '';
  str = ['Pass Rate: ', int2str(tc_summary.percentPassed), '%'];
  str = [str, ': ', 'Tests: ', int2str(tc_summary.ntests)];
  str = [str, ', ', 'Failures: ', int2str(tc_summary.nfails)];
  str = [str, ', ', 'Errors: ', int2str(tc_summary.nerrs)];
   disp(str);

 otherwise
   % Do nothing.
end

return

redpajama_set_name: RedPajamaGithub


text:
from __future__ import unicode_literals

from django.db import migrations

class Migration(migrations.Migration):

    dependencies = [
        ('redditpoller', '0014_auto_20170304_1513'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='WatchedSubredditThreads',
            new_name='WatchedSubredditThread',
        ),
    ]


text:
'''
pyverse.bin.clean -- cleans all objects from selected DB

pyverse.bin.clean
While drop handles only objects that are defined in the assests folder, clean
will remove ALL objects in the database, regardless if they came from assets or
where created there manually by others.
U can use dry run to see what will be dropped.

@author:     Itay Moav

@copyright:  2014 Itay Moav. All rights reserved.

@license:    license

@contact:    itay.malimovka@gmail.com
@deffield    updated: Updated
'''

import sys
import os
import traceback
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..')
from app import parser as parser
import app.cleaner

def main(parser):
    '''Command line options.'''

    try:
        # Setup argument parser
        parser.add_argument("-s","--stored_proc", dest="stored_proc", action="store",nargs='?',                     \
                             default=False, const='All', help="drop all stored procedures, or from just the selected DB. in that case, specify DB name.")

        parser.add_argument("-w","--views", dest="views", action="store",nargs='?',                                 \
                            default=False, const='All', help="drop all views, or from just the selected DB. in that case, specify DB name.")

        parser.add_argument("-t","--triggers", dest="triggers", action="store",nargs='?',                           \
                            default=False, const='All', help="drop all triggers, or from just the selected DB. in that case, specify DB name.")

        parser.add_argument("-f","--functions", dest="functions", action="store",nargs='?',                         \
                            default=False, const='All', help="drop all functions, or from just the selected DB. in that case, specify DB name.")

        parser.add_argument("--dryrun", dest="dry_run", action="store_true",                                        \
                            default=False, help="Specifying this flag will generate a list of drop commands, but not execute them.")

        args = app.init(parser)
        Builder = app.cleaner.AllDBObj(args)
        Builder.run()

    except Exception:
        traceback.print_exc()
        return 1

#++++++++++++++++++++++++++++++++++++ MAIN ENTRY POINT ++++++++++++++++++++++++++++++++++
sys.exit(main(parser))


text:
Support

<?php if ($page->errorCount() > 0) { ?>

<?=$page->errorString()?>

<?php	} else if ($page->success) { ?>

<?=$page->success?>

<?php	} ?>

All Tickets

<a href="/_support/ticket/<?=$item->id?>" class="value">Ticket #<?=$item->id?>

<form name="requestForm" method="post">
	<input type="hidden" name="item_id" value="<?=$item->id?>" />
	<input type="hidden" name="csrfToken" value="<?=$GLOBALS['_SESSION_']->getCSRFToken()?>">
	<?php	if ($page->errorCount()) { ?>
<?=$page->errorString()?>
<?php	} ?>
	<?php	if ($page->success) { ?>
<?=$page->success?>
<?php	} ?>

Requestor

Status

Product

Date

Serial #

Requestor: <?=$request->customer()->full_name()?>

Status: <?=$request->date_request?>

Product: <?=$item->status?>

Date: <?=$request->date_request?>

Serial #: <a href="/_monitor/asset/<?=$item->serial_number?>"><?=$item->serial_number?>

Description

<?=strip_tags($item->description)?>

						<input type="button" name="btn_add_note" class="button iconButton addIcon" value="Add Comment" onclick="showForm('comment');" />
        		<?php	if ($item->status == 'CLOSED') { ?>
		        <input type="submit" name="btn_reopen_item" class="button iconButton openIcon" value="Reopen Item" />
        		<?php	} else { ?>
		        <input type="submit" name="btn_close_item" class="button iconButton closeIcon" value="Close Item" />
        		<?php	} ?>

</form>

	<form id="commentForm" name="commentForm" method="post" action="/_support/ticket">
		<input type="hidden" name="csrfToken" value="<?=$GLOBALS['_SESSION_']->getCSRFToken()?>">
		<input type="hidden" name="item_id" value="<?=$item->id?>" />

Insert Comment:

					<textarea class="value input" wrap="hard" style="width: 50%; height: 70px; margin: 0;" name="content"></textarea>

				<input type="button" name="btn_cancel_comment" value="Cancel" class="button" onclick="hideForm('comment');" />
				<input type="submit" name="btn_add_comment" value="Add Comment" class="button" />

	</form>

Documents

	<?php
	if ($filesUploaded) {
	?>

File Name

User

Organization

Uploaded

			<?php	foreach ($filesUploaded as $fileUploaded) {	?>

File Name: <a href="/_storage/downloadfile?file_id=<?=$fileUploaded->id?>" target="_blank"><?=$fileUploaded->name?>

User: <?=$fileUploaded->user->first_name?> <?=$fileUploaded->user->last_name?>

Organization: <?=$fileUploaded->user->organization->name?>

Uploaded: <?=date("M. j, Y, g:i a", strtotime($fileUploaded->date_created))?>

			<?php	}	?>

	<?php } else { ?>
		No Uploads Found
	<?php	} ?>

<?php	if (is_array($actions) && count($actions) > 0) { ?>

Actions

		<?php	foreach ($actions as $action) {
			if (isset($action->requestedBy)) { $requested_by = $action->requestedBy->full_name();
			} else { $requested_by = "Unknown";	}

			if (isset($action->assignedTo) && isset($action->assignedTo->id)) {	$assigned_to = $action->assignedTo->full_name();
			} else { $assigned_to = "Unassigned";	}

			if ($action->type == "Note") {
		?>

Action Note

Posted On

Posted By

Date requested: <?=$action->date_requested?>

Requested by: <?=$requested_by?>

Note

Description:
<?=strip_tags($action->description)?>

    <?php	} else { ?>

Date Requested

Requestor

Assigned To

Type

Status

Date requested: <a href="/_support/action/<?=$action->id?>"><?=$action->date_requested?>

Requested by: <?=$requested_by?>

Assigned to: <?=$assigned_to?>

Type: <?=$action->type?>

Status: <?=$action->status?>

Description

Description:
<?=strip_tags($action->description)?>

		<?php	}	$actionEvents = $action->getEvents();	?>

		<?php
			if (!empty($actionEvents)) {
				foreach ($actionEvents as $actionEvent) { ?>

Event Date

User

Description

Event Date: <?=$actionEvent->date_event?>

User: <?=$actionEvent->user->full_name()?>

Description: <?=strip_tags($actionEvent->description)?>

				<?php	}
    	} else {
			?>

No Events

			<?php	} ?>

		<?php	}	?>

<?php } ?>

	<?php	if (isset($rmalist) && $rmalist->count() > 0) { ?>

Authorized Returns

Number

Date Approved

Approved By

				<?php		foreach ($rmas as $rma) { ?>

Number: <a href="/_support/rma_form/<?=$rma->code?>"><?=$rma->number()?>

Date approved: <?=$rma->date_approved?>

Approved by: <?=$rma->approvedBy()->full_name()?>

				<?php		} ?>

	<?php	} ?>

	<?php	if (is_array($comments) && count($comments) > 0) { ?>

Comments

Date entered

Author

Comment

			<?php		foreach ($comments as $comment) { ?>

Date: <?=$comment->date_comment?>

Author: <?=$comment->author->full_name()?>

Comment: <?=$comment->content?>

			<?php		} ?>

	<?php	} ?>


text:
package com.vmware.vim25;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for VAppCloneSpecResourceMap complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="VAppCloneSpecResourceMap">
 *   <complexContent>
 *     <extension base="{urn:vim25}DynamicData">
 *       <sequence>
 *         <element name="source" type="{urn:vim25}ManagedObjectReference"/>
 *         <element name="parent" type="{urn:vim25}ManagedObjectReference" minOccurs="0"/>
 *         <element name="resourceSpec" type="{urn:vim25}ResourceConfigSpec" minOccurs="0"/>
 *         <element name="location" type="{urn:vim25}ManagedObjectReference" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VAppCloneSpecResourceMap", propOrder = {
    "source",
    "parent",
    "resourceSpec",
    "location"
})
public class VAppCloneSpecResourceMap
    extends DynamicData
{

    @XmlElement(required = true)
    protected ManagedObjectReference source;
    protected ManagedObjectReference parent;
    protected ResourceConfigSpec resourceSpec;
    protected ManagedObjectReference location;

    /**
     * Gets the value of the source property.
     *
     * @return
     *     possible object is
     *     {@link ManagedObjectReference }
     *
     */
    public ManagedObjectReference getSource() {
        return source;
    }

    /**
     * Sets the value of the source property.
     *
     * @param value
     *     allowed object is
     *     {@link ManagedObjectReference }
     *
     */
    public void setSource(ManagedObjectReference value) {
        this.source = value;
    }

    /**
     * Gets the value of the parent property.
     *
     * @return
     *     possible object is
     *     {@link ManagedObjectReference }
     *
     */
    public ManagedObjectReference getParent() {
        return parent;
    }

    /**
     * Sets the value of the parent property.
     *
     * @param value
     *     allowed object is
     *     {@link ManagedObjectReference }
     *
     */
    public void setParent(ManagedObjectReference value) {
        this.parent = value;
    }

    /**
     * Gets the value of the resourceSpec property.
     *
     * @return
     *     possible object is
     *     {@link ResourceConfigSpec }
     *
     */
    public ResourceConfigSpec getResourceSpec() {
        return resourceSpec;
    }

    /**
     * Sets the value of the resourceSpec property.
     *
     * @param value
     *     allowed object is
     *     {@link ResourceConfigSpec }
     *
     */
    public void setResourceSpec(ResourceConfigSpec value) {
        this.resourceSpec = value;
    }

    /**
     * Gets the value of the location property.
     *
     * @return
     *     possible object is
     *     {@link ManagedObjectReference }
     *
     */
    public ManagedObjectReference getLocation() {
        return location;
    }

    /**
     * Sets the value of the location property.
     *
     * @param value
     *     allowed object is
     *     {@link ManagedObjectReference }
     *
     */
    public void setLocation(ManagedObjectReference value) {
        this.location = value;
    }

}


text:
@interface DoraemonDeleteLocalDataViewController : DoraemonBaseViewController

@end


text:
<!DOCTYPE html>

  Tests moving layers inside with fixed position nodes.
  The test passes if it completes without failing any assertions in Debug mode.

</html


text:
package com.thoughtworks.go.config.exceptions;

import com.thoughtworks.go.config.AgentConfig;
import org.apache.commons.lang.StringUtils;

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

public class ElasticAgentsResourceUpdateException extends Exception {
    public ElasticAgentsResourceUpdateException(ArrayList<String> elasticAgents) {
        super(String.format("Can not update resources on Elastic Agents [%s]", StringUtils.join(elasticAgents, ", ")));
    }
}


text:
package feh.tec.rubik

import feh.tec.rubik.RubikCube._
import feh.tec.rubik.RubikCubeImage.Side
import feh.util._

case class RubikCubeImage[T](sides: Seq[Side[T]]){
  def map[R](f: T => R): RubikCubeImage[R] = copy(sides.map(_.map(f)))

  def merge[T2](that: RubikCubeImage[T2]): RubikCubeImage[(T, T2)] = RubikCubeImage(
    this.sides zip that.sides map { case (Side(c1, _), Side(c2, _)) => Side(c1 zipByKey c2) }
  )
}

object RubikCubeImage{
  case class Side[T](colors: Map[(Int, Int), T], name: Option[SideName] = None){
    def map[R](f: T => R): Side[R] = copy(colors.mapValues(f))
  }

  case class ColorMap[T, C](colorFor: PartialFunction[T, C])
  case class ColorMapCreationError(reason: String) extends RuntimeException("Failed to create color map: " + reason)

  case class ReadSide(name: SideName,
                      flipX: Boolean = false,
                      flipY: Boolean = false,
                      transposed: Boolean = false
                       )
  case class SidesMap(readOrder: Seq[ReadSide])

  object SidesMap{
    def ordering(m: SidesMap): Ordering[SideName] = {
      val sideNames = m.readOrder.map(_.name)
      Ordering.by(sideNames.indexOf[SideName])
    }
  }

  case class CubeSide[C](cubeId: CubeId, orientation: SideName, color: C){
    def id = cubeId -> orientation
  }

  def apply[T](inst: RubikCubeInstance[T]): RubikCubeImage[T] = RubikCubeImage(
    inst.rawSides.toSeq.map{
      case (side, contents) => Side(contents.mapValues(_.selectSideByOrientation(side)), Some(side))
    }
  )

  def toString[T](img: RubikCubeImage[T], sm: SidesMap) =
    img.sides.zip(sm.readOrder).flatMap{
      case (RubikCubeImage.Side(colors, _), readSide) =>
        val cStrs = colors.toSeq.map{ case ((x, y), color) => Seq(x, y, color).mkString(", ") }
        ("-- " + readSide.name) +: cStrs
    }.mkString("\n")

  def toString[T](img: RubikCubeImage[T]) =
    img.sides.flatMap{
      case RubikCubeImage.Side(colors, Some(name)) =>
        val cStrs = colors.toSeq.map{ case ((x, y), color) => Seq(x, y, color).mkString(", ") }
        ("-- " + name) +: cStrs
    }.mkString("\n")

  def groupCubes[T: WithSideName](cubesSides: Iterable[(CubeId, (SideName, T))]): Map[CubeId, CubeWithOrientation[T]] =
    groupCubes(
      cubesSides.toSeq.map{
        case (id,(o, c)) => CubeSide(id, o, c)
      }
    )
  def groupCubes[T: WithSideName](cubesSides: Seq[CubeSide[T]]): Map[CubeId, CubeWithOrientation[T]] =
    cubesSides.groupBy(_.cubeId).mapValues{
      case Seq(CubeSide(_, o1, c1), CubeSide(_, o2, c2), CubeSide(_, o3, c3))=>
        Corner(c1, c2, c3) -> CubeOrientation(o1, o2, o3)
      case Seq(CubeSide(_, o1, c1), CubeSide(_, o2, c2)) =>
        Middle(c1, c2) -> CubeOrientation(o1, o2, null)
      case Seq(CubeSide(_, o, c)) =>
        Center(c) -> CubeOrientation(o, null, null)
    }

  // todo: SidesMap not always used
  def readCubes[C: WithSideName](img: RubikCubeImage[C]): Map[CubeId, CubeWithOrientation[C]] =
  {
    val RubikCubeImage(sides) = img

    val cubesSides = sides flatMap {
      case Side(colors, Some(side)) => mkSide(side, colors)
    }

    groupCubes(cubesSides)
  }

  // todo: SidesMap not always used
  def readCubesWithMap[C: WithSideName](img: RubikCubeImage[C])
                                       (implicit sMap: SidesMap): Map[CubeId, CubeWithOrientation[C]] =
  {
    val RubikCubeImage(sides) = img

    def flip(x: Int) = x match{
      case 2 => 0
      case 1 => 1
      case 0 => 2
    }

    val cubesSides = sMap.readOrder zip sides flatMap {

      case (ReadSide(side, false, false, false), Side(colors, _)) =>
        mkSide(side, colors)

      case (ReadSide(side, flipX, flipY, transpose), Side(colors, _)) =>
        val idsMap = sideCubes(side)
        val flipped =
          if(flipX || flipY) colors.mapKeys{
            case (x, y) => (if (flipX) flip(x) else x, if (flipY) flip(y) else y )
          }
          else colors

        val transposed =
          if(transpose) flipped.mapKeys(_.swap)
          else flipped

        mkSide(side, transposed)
    }

    groupCubes(cubesSides)
  }

  def mkSide[C](side: SideName, colors: Map[(Int, Int), C]) = {
    val idsMap = sideCubes(side)
    colors.map{ case (pos, c) => CubeSide(idsMap(pos), side, c) }
  }

}


text:
@implementation GXShareCellModel

- (instancetype)initWitnDict:(NSDictionary *)dict {
    if(self = [super init]) {
        if([dict objectForKey:kSNSTypeKey] && [[dict objectForKey:kSNSTypeKey] isKindOfClass:[NSString class]]) {
            _shareType = [dict objectForKey:kSNSTypeKey];
        }
        if([dict objectForKey:kSNSTitleKey] && [[dict objectForKey:kSNSTitleKey] isKindOfClass:[NSString class]]) {
            _desc = [dict objectForKey:kSNSTitleKey];
        }
        if([dict objectForKey:kSNSImageStrKey] && [[dict objectForKey:kSNSImageStrKey] isKindOfClass:[NSString class]]) {
            _imageName = [dict objectForKey:kSNSImageStrKey];
        }
        if([dict objectForKey:kSNSRequestTitleKey] && [[dict objectForKey:kSNSRequestTitleKey] isKindOfClass:[NSString class]]) {
            _requestTitle = [dict objectForKey:kSNSRequestTitleKey];
        }
        if([dict objectForKey:kSNSRequestVideoKey] && [[dict objectForKey:kSNSRequestVideoKey] isKindOfClass:[NSString class]]) {
            _requestTitleForVideo = [dict objectForKey:kSNSRequestVideoKey];
        }
        if([dict objectForKey:kSNSRequestDescKey] && [[dict objectForKey:kSNSRequestDescKey] isKindOfClass:[NSString class]]) {
            _requestDesc = [dict objectForKey:kSNSRequestDescKey];
        }
        if([dict objectForKey:kSNSConfirmKey] && [[dict objectForKey:kSNSConfirmKey] isKindOfClass:[NSString class]]) {
            _confirmStr = [dict objectForKey:kSNSConfirmKey];
        }
        if([dict objectForKey:kSNSCancelKey] && [[dict objectForKey:kSNSCancelKey] isKindOfClass:[NSString class]]) {
            _cancelStr = [dict objectForKey:kSNSCancelKey];
        }
        if([dict objectForKey:kSNSDelayKey] && [[dict objectForKey:kSNSDelayKey] isKindOfClass:[NSNumber class]]) {
            _delayInterval = [[dict objectForKey:kSNSDelayKey] unsignedIntegerValue];
        }

    }
    return self;
}

@end


text:
/* More information about these options at jshint.com/docs/options */

/* exported setUpFullScreen, fullScreenElement, isFullScreen,
   requestIceServers, sendAsyncUrlRequest, sendSyncUrlRequest,
   randomString, trace, $, queryStringToDictionary */
/* globals chrome */

'use strict';

function $(selector) {
  return document.querySelector(selector);
}

// Returns the URL query key-value pairs as a dictionary object.
function queryStringToDictionary(queryString) {
  var pairs = queryString.slice(1).split('&');

  var result = {};
  pairs.forEach(function(pair) {
    if (pair) {
      pair = pair.split('=');
      if (pair[0]) {
        result[pair[0]] = decodeURIComponent(pair[1] || '');
      }
    }
  });
  return result;
}

// Sends the URL request and returns a Promise as the result.
function sendAsyncUrlRequest(method, url, body) {
  return sendUrlRequest(method, url, true, body);
}

// If async is true, returns a Promise and executes the xhr request
// async. If async is false, the xhr will be executed sync and a
// resolved promise is returned.
function sendUrlRequest(method, url, async, body) {
  return new Promise(function(resolve, reject) {
    var xhr;
    var reportResults = function() {
      if (xhr.status !== 200) {
        reject(
            Error('Status=' + xhr.status + ', response=' +
                  xhr.responseText));
        return;
      }
      resolve(xhr.responseText);
    };

    xhr = new XMLHttpRequest();
    if (async) {
      xhr.onreadystatechange = function() {
        if (xhr.readyState !== 4) {
          return;
        }
        reportResults();
      };
    }
    xhr.open(method, url, async);
    xhr.send(body);

    if (!async) {
      reportResults();
    }
  });
}

// Returns a list of ICE servers after requesting it from the ICE server
// provider.
// Example response (iceServerRequestResponse) from the ICE server provider
// containing two TURN servers and one STUN server:
// {
//   lifetimeDuration: '43200.000s',
//   iceServers: [
//     {
//       urls: ['turn:1.2.3.4:19305', 'turn:1.2.3.5:19305'],
//       username: 'username',
//       credential: 'credential'
//     },
//     {
//       urls: ['stun:stun.example.com:19302']
//     }
//   ]
// }
function requestIceServers(iceServerRequestUrl, iceTransports) {
  return new Promise(function(resolve, reject) {
    sendAsyncUrlRequest('POST', iceServerRequestUrl).then(function(response) {
      var iceServerRequestResponse = parseJSON(response);
      if (!iceServerRequestResponse) {
        reject(Error('Error parsing response JSON: ' + response));
        return;
      }
      if (iceTransports !== '') {
        filterIceServersUrls(iceServerRequestResponse, iceTransports);
      }
      trace('Retrieved ICE server information.');
      resolve(iceServerRequestResponse.iceServers);
    }).catch(function(error) {
      reject(Error('ICE server request error: ' + error.message));
      return;
    });
  });
}

// Parse the supplied JSON, or return null if parsing fails.
function parseJSON(json) {
  try {
    return JSON.parse(json);
  } catch (e) {
    trace('Error parsing json: ' + json);
  }
  return null;
}

// Filter a peerConnection config to only contain ice servers with
// transport=|protocol|.
function filterIceServersUrls(config, protocol) {
  var transport = 'transport=' + protocol;
  var newIceServers = [];
  for (var i = 0; i < config.iceServers.length; ++i) {
    var iceServer = config.iceServers[i];
    var newUrls = [];
    for (var j = 0; j < iceServer.urls.length; ++j) {
      var url = iceServer.urls[j];
      if (url.indexOf(transport) !== -1) {
        newUrls.push(url);
      } else if (
        url.indexOf('?transport=') === -1) {
        newUrls.push(url + '?' + transport);
      }
    }
    if (newUrls.length !== 0) {
      iceServer.urls = newUrls;
      newIceServers.push(iceServer);
    }
  }
  config.iceServers = newIceServers;
}

// Start shims for fullscreen
function setUpFullScreen() {
  if (isChromeApp()) {
    document.cancelFullScreen = function() {
      chrome.app.window.current().restore();
    };
  } else {
    document.cancelFullScreen = document.webkitCancelFullScreen ||
        document.mozCancelFullScreen || document.cancelFullScreen;
  }

  if (isChromeApp()) {
    document.body.requestFullScreen = function() {
      chrome.app.window.current().fullscreen();
    };
  } else {
    document.body.requestFullScreen = document.body.webkitRequestFullScreen ||
        document.body.mozRequestFullScreen || document.body.requestFullScreen;
  }

  document.onfullscreenchange = document.onfullscreenchange ||
        document.onwebkitfullscreenchange || document.onmozfullscreenchange;
}

function isFullScreen() {
  if (isChromeApp()) {
    return chrome.app.window.current().isFullscreen();
  }

  return !!(document.webkitIsFullScreen || document.mozFullScreen ||
    document.isFullScreen); // if any defined and true
}

function fullScreenElement() {
  return document.webkitFullScreenElement ||
      document.webkitCurrentFullScreenElement ||
      document.mozFullScreenElement ||
      document.fullScreenElement;
}

// End shims for fullscreen

// Return a random numerical string.
function randomString(strLength) {
  var result = [];
  strLength = strLength || 5;
  var charSet = '0123456789';
  while (strLength--) {
    result.push(charSet.charAt(Math.floor(Math.random() * charSet.length)));
  }
  return result.join('');
}

// Returns true if the code is running in a packaged Chrome App.
function isChromeApp() {
  return (typeof chrome !== 'undefined' &&
          typeof chrome.storage !== 'undefined' &&
          typeof chrome.storage.local !== 'undefined');
}

function trace(text) {
  // This function is used for logging.
  if (text[text.length - 1] === '\n') {
    text = text.substring(0, text.length - 1);
  }
  if (window.performance) {
    var now = (window.performance.now() / 1000).toFixed(3);
    console.log(now + ': ' + text);
  } else {
    console.log(text);
  }
}


text:
package com.example.project_spring.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@Entity
@NamedQueries({
	@NamedQuery(name = "toorder.all", query = "Select t from ToOrder t")
})
public class ToOrder {

	private Long id;

	private int orderedAmount;
	private float price;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getOrderedAmount() {
		return orderedAmount;
	}

	public void setOrderedAmount(int orderedAmount) {
		this.orderedAmount = orderedAmount;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

}


text:
using System;
using MvvmCross.Platform.Plugins;

namespace g0rdan.MvvmCross.Plugins.iOS
{
    public class SimpleEmailPluginBootstrap
        : MvxLoaderPluginBootstrapAction<g0rdan.MvvmCross.Plugin.SimpleEmail.PluginLoader, g0rdan.MvvmCross.Plugin.SimpleEmail.iOS.Plugin>
    {
    }
}


text:
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>

		<meta charset="utf-8">
		<title><?php if(!empty($seo_title)): echo ($seo_title); ?>_<?php endif; echo ($CONFIG["site"]["sitename"]); ?>会员中心</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
		<?php if($CONFIG[site][concat] != 1): ?><link rel="stylesheet" href="/static/default/wap/css/base.css">
		<link rel="stylesheet" href="/static/default/wap/css/mcenter.css"/>

		<?php else: ?>
		<link rel="stylesheet" href="/static/default/wap/css/??base.css,mcenter.css" />
		<?php endif; ?>

		<a class="top-addr" href="<?php echo U('index/index');?>">

			<a class="block button" href="<?php echo LinkTo('tuan/index',array('aready'=>0));?>">订单
			<a class="block button active" href="<?php echo LinkTo('tuancode/index');?>">抢购劵

		<?php if($msg_day > 0): ?><a href="<?php echo U('mcenter/message/index');?>">

<?php echo ($msg_day); ?>

<?php else: ?>
    <?php if(empty($sign_day)): ?><a href="<?php echo U('mobile/sign/signed');?>" class="top-addr icon-plus"> 签到
    <?php else: ?>
    <a href="<?php echo U('mobile/passport/logout');?>" class="top-addr icon-sign-out"><?php endif; endif; ?>

<a href="<?php echo LinkTo('tuancode/index');?>" <?php if(($aready) == ""): ?>class="on"<?php endif; ?>>全部

<a href="<?php echo LinkTo('tuancode/index',array('aready'=>1));?>" <?php if(($aready) == "1"): ?>class="on"<?php endif; ?>>未使用

<a href="<?php echo LinkTo('tuancode/index',array('aready'=>2));?>" <?php if(($aready) == "2"): ?>class="on"<?php endif; ?>>已使用

<?php if($CONFIG[other][footer] == 1): ?>

    <a class="foot-item <?php if(($ctl == 'index') AND ($act != 'more')): ?>active<?php endif; ?>" href="<?php echo u('mobile/index/index');?>">

    首页

    <a class="foot-item   <?php if(($ctl == 'tuan') || ($ctl == 'goods') || ($ctl == 'eleorder') || ($ctl == 'ding') ): ?>active<?php endif; ?>" href="      <?php echo LinkTo('tuan/index');?>">
    订单

     <a class="foot-item  <?php if(($ctl == 'tuancode')): ?>active<?php endif; ?>" href="<?php echo u('mcenter/tuancode/index');?>">
    抢购劵

    <a class="foot-item  <?php if(($ctl == 'message') ||($act == 'xiaoxizhongxin')): ?>active<?php endif; ?>" href="<?php echo u('mcenter/message/someone');?>">
    消息

    <a class="foot-item  <?php if(($ctl == 'money') || ($ctl == 'logs') || ($ctl == 'cash') ||($act == 'zijinguanli')): ?>active<?php endif; ?>" href="<?php echo u('mcenter/information/index');?>">
    设置

    <?php endif; ?>


text:
**Namespace:** [OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml](OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.md)
**Assembly:** OfficeDevPnP.Core.dll
## Syntax
```C#
public override ProvisioningTemplate GetTemplate(String uri, String identifier, ITemplateFormatter formatter)
```
### Parameters
#### uri
  Type: System.String

#### identifier
  Type: System.String

#### formatter
  Type: [OfficeDevPnP.Core.Framework.Provisioning.Providers.ITemplateFormatter](OfficeDevPnP.Core.Framework.Provisioning.Providers.ITemplateFormatter.md)

### Return Value
Type: [ProvisioningTemplate](OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate.md)

## See also
- [XMLTemplateProvider](OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.XMLTemplateProvider.md)
- [OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml](OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.md)


text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/holo_blue_dark"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="org.aztekpridec.login.MainActivity" >

    <EditText
        android:id="@+id/txtUser"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/textView1"
        android:layout_alignBottom="@+id/textView1"
        android:layout_alignParentRight="true"
        android:background="@android:color/background_light"
        android:ems="10"
        android:hint="usuario??" />

    <TextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/txtUser"
        android:layout_marginTop="35dp"
        android:text="@string/Contra"
        android:textColor="@android:color/background_light" />

    <EditText
        android:id="@+id/txtContra"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/textView2"
        android:layout_alignBottom="@+id/textView2"
        android:layout_alignParentRight="true"
        android:layout_toRightOf="@+id/textView2"
        android:background="@android:color/background_light"
        android:ems="10"
        android:inputType="textPassword"
        android:textColor="@android:color/background_light" >

        <requestFocus />
    </EditText>

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_marginTop="49dp"
        android:layout_toLeftOf="@+id/txtUser"
        android:text="@string/Nombre"
        android:textColor="@android:color/background_light" />

    <Button
        android:id="@+id/btnEntra"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:onClick="acepta"
        android:text="@string/Entrar" />

</RelativeLayout>


text:
[`src/cryptonote.php`](https://github.com/monero-integrations/monerophp/tree/master/src/cryptonote.php)

### Methods

 - [`keccak_256`](#keccak_256)
 - [`gen_new_hex_seed`](#gen_new_hex_seed)
 - [`sc_reduce`](#sc_reduce)
 - [`hash_to_scalar`](#hash_to_scalar)
 - [`derive_viewKey`](#derive_viewKey)
 - [`gen_private_keys`](#gen_private_keys)
 - [`pk_from_sk`](#pk_from_sk)
 - [`gen_key_derivation`](#gen_key_derivation)
 - [`encode_varint`](#encode_varint)
 - [`derivation_to_scalar`](#derivation_to_scalar)
 - [`stealth_payment_id`](#stealth_payment_id)
 - [`txpub_from_extra`](#txpub_from_extra)
 - [`derive_public_key`](#derive_public_key)
 - [`is_output_mine`](#is_output_mine)
 - [`encode_address`](#encode_address)
 - [`verify_checksum`](#verify_checksum)
 - [`decode_address`](#decode_address)
 - [`integrated_addr_from_keys`](#integrated_addr_from_keys)
 - [`address_from_seed`](#address_from_seed)

#### `keccak_256`

Derive a Keccak256 hash from a string

Parameters:

 - `$message <String>` Hex encoded string of the data to hash

Return: `<String>` Hex encoded string of the hashed data

[//]: # (TODO example)

#### `gen_new_hex_seed`

Generate a hexadecimal seed

Return: `<String>` A hex encoded string of 32 random bytes

[//]: # (TODO example)

#### `sc_reduce`

Parameters:

 - `$input <String>`

[//]: # (TODO return type and example)

#### `hash_to_scalar`

`Hs` in the cryptonote white paper

Parameters:

 - `$data <String>` Hex encoded data to hash

Return: `<String>` A 32 byte encoded integer

[//]: # (TODO example)

#### `derive_viewKey`

Derive a deterministic private view key from a private spend key

Parameters:

 - `$spendKey <String>` A deterministic private view key represented as a 32 byte hex string

Return: `<String>`

[//]: # (TODO example)

#### `gen_private_keys`

Generate a pair of random private keys

Parameters:

 - `$seed <String>` A hex string to be used as a seed (this should be random)

Return: `<Array>` An array containing a private spend key and a deterministic view key

[//]: # (TODO example)

#### `pk_from_sk`

Get a public key from a private key on the ed25519 curve

Parameters:

 - `$privKey <String>` A 32 byte hex encoded private key

Return: `<String>`

[//]: # (TODO example)

#### `gen_key_derivation`

Generate key derivation

Parameters:

 - `$public <String>` a 32 byte hex encoding of a point on the ed25519 curve used as a public key
 - `$private <String>` a 32 byte hex encoded private key

Return: `<String>` The hex encoded key derivation

[//]: # (TODO example)

#### `encode_varint`

Parameters:

 - `$der <>`
 - `$index <>`

[//]: # (TODO return type and example)

#### `derivation_to_scalar`

Parameters:

 - `$ <>`

[//]: # (TODO return type and example)

#### `stealth_payment_id`

A one way function used for both encrypting and decrypting 8 byte payment IDs

Parameters:

 - `$payment_id <String>`
 - `$tx_pub_key <String>`
 - `$viewkey <String>`

Return: `<String>`

[//]: # (TODO example)

#### `txpub_from_extra`

Takes transaction extra field as hex string and returns transaction public key 'R' as hex string

Parameters:

 - `$extra <String>`

Return: `<String>`

[//]: # (TODO example)

#### `derive_public_key`

Parameters:

 - `$der <>`
 - `$index <>`
 - `$pub <>`

Return: `<String>`

[//]: # (TODO example)

#### `is_output_mine`

Perform the calculation P = P' as described in the cryptonote whitepaper

Parameters:

 - `$txPublic <String>` 32 byte transaction public key R
 - `$privViewkey <String>` 32 byte receiver private view key a
 - `$publicSpendkey <String>` 32 byte receiver public spend key B
 - `$index <Number>` Otput index
 - `$P <String>` Output you want to check against P

Return: `<Boolean>`

[//]: # (TODO example)

#### `encode_address`

Create a valid base58 encoded Monero address from public keys

Parameters:

 - `$pSpendKey <String>` Public spend key
 - `$pViewKey <String>` Public view key

Return: `<String>` Base58 encoded Monero address

[//]: # (TODO example)

#### `verify_checksum`

Parameters:

 - `$address <>`

Return: `<Boolean>`

[//]: # (TODO example)

#### `decode_address`

Decode a base58 encoded Monero address

Parameters:

 - `$address <String>` A base58 encoded Monero address

Return: `<Array>` An array containing the Address network byte, public spend key, and public view key
[//]: # (TODO example)

#### `integrated_addr_from_keys`

Create an integrated address from public keys and a payment ID

Parameters:

 - `$public_spendkey <String>` A 32 byte hex encoded public spend key
 - `$public_viewkey <String>` A 32 byte hex encoded public view key
 - `$payment_id <String>` An 8 byte hex string to use as a payment id

Return: `<String>` Integrated address

[//]: # (TODO example)

#### `address_from_seed`

Derive Monero address from seed

Parameters:

 - `$hex_seed <String>` Hex string to use as seed

Return: `<String>` A base58 encoded Monero address

[//]: # (TODO example)


text:
![Azure Public Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/201-vnet-to-vnet-bgp/PublicLastTestDate.svg)
![Azure Public Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/201-vnet-to-vnet-bgp/PublicDeployment.svg)

![Azure US Gov Last Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/201-vnet-to-vnet-bgp/FairfaxLastTestDate.svg)
![Azure US Gov Last Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/201-vnet-to-vnet-bgp/FairfaxDeployment.svg)

![Best Practice Check](https://azurequickstartsservice.blob.core.windows.net/badges/201-vnet-to-vnet-bgp/BestPracticeResult.svg)
![Cred Scan Check](https://azurequickstartsservice.blob.core.windows.net/badges/201-vnet-to-vnet-bgp/CredScanResult.svg)

[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-vnet-to-vnet-bgp%2Fazuredeploy.json)
[![Deploy To Azure US Gov](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazuregov.svg?sanitize=true)](https://portal.azure.us/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-vnet-to-vnet-bgp%2Fazuredeploy.json)
[![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-vnet-to-vnet-bgp%2Fazuredeploy.json)

This template creates two VNETs in the same location, each containing a subnet and Gateway subnet. It creates two public IPs which are used to create two VPN Gateways in the two VNETs, both with BGP enabled using private ASNs. Finally it establishes a BGP enabled connection between the two gateways.

The Autonomous System Numbers (ASNs) can be private or public.

Enter the Pre-shared Key as a parameter. A default one is provided in the Parameters file, but do not use this in Production!

You can also enter a specific Gateway SKU as a parameter; choose from the following:
* VpnGw1 (default)
* VpnGw2
* VpnGw3
* Standard (legacy)
* HighPerformance (legacy)

More info on the Gateway SKUs can be found here: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways#a-namegwskuagateway-skus


text:
* This tutorial assumes you are familiar with use of the Runt API to create temporal expressions. If you're unfamiliar with how and why to write temporal expressions, take a look at the temporal expression [tutorial](tutorial_te.md).

* Starting with version 0.7.0, Runt provides some syntactic sugar for creating temporal expressions. Runt also provides a builder class for which can be used to create expressions in a more readable way than simply using `:new`.

First, let's look at some of the new shorcuts for creating individual expressions. If you look at the `lib/runt/sugar.rb` file you find that the `Runt` module has been re-opened and some nutty stuff happens when `:method_missing` is called.

For example, if you've included the `Runt` module, you can now create a `DIWeek` expression by calling a method whose name matches the following pattern:

```
/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)$/
```

So

    tuesday

is equivalent to

    DIWeek.new(Tuesday)

Here's a quick summary of patterns and the expressions they create.

### REDay

**regex**:   `/^daily_(d{1,2})_(d{2})([ap]m)*to*(d{1,2})_(d{2})([ap]m)$/`

**example**: `daily_8_30am_to_10_00pm`

**action**:  `REDay.new(8,30,22,00)`

### REWeek

**regex**:   `/^weekly_(sunday|monday|tuesday|wednesday|thursday|friday|saturday)_to_(sunday|monday|tuesday|wednesday|thursday|friday|saturday)$/`

**example**: `weekly_wednesday_to_friday`

**action**:  `REWeek.new(Wednesday, Friday)`

### REMonth

**regex**:   `/^monthly_(d{1,2})(?:st|nd|rd|th)_to_(d{1,2})(?:st|nd|rd|th)$/`

**example**: `monthly_2nd_to_24th`

**action**:  `REMonth.new(2,24)`

### REYear

**regex**:   `/^yearly_(january|february|march|april|may|june|july|august|september|october|november|december)_(d{1,2})_to_(january|february|march|april|may|june|july|august|september|october|november|december)_(d{1,2})`

**example**: `yearly_may_31_to_september_1`

**action**:  `REYear.new(May,31,September,1)`

### DIWeek

**regex**:   `/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)$/`

**example**: `friday`

**action**:  `DIWeek.new(Friday)`

### DIMonth

**regex**:   `/^(first|second|third|fourth|last|second_to_last)_(sunday|monday|tuesday|w ednesday|thursday|friday|saturday)$/`

**example**: `last_friday`

**action**:  `DIMonth.new(Last,Friday)`

There are also other methods defined (not via `:method_missing`) which provide shortcuts:

### AfterTE

**method**:  `after(date, inclusive=false)`

**action**:  `AfterTE.new(date, inclusive=false)`

### BeforeTE

**method**:  `before(date, inclusive=false)`

**action**:  `BeforeTE.new(date, inclusive=false)`

Now let's look at the new `ExpressionBuilder` class. This class uses some simple methods and `instance_eval` to allow one to create composite temporal expressions in a more fluid style than `:new` and friends. The idea is that you define a block where method calls add to a composite expression using either "and", "or", or "not".

```ruby
# Create a new builder
d = ExpressionBuilder.new

# Call define with a block
expression = d.define do
  on REDay.new(8,45,9,30)
  on DIWeek.new(Friday)              # "And"
  possibly DIWeek.new(Saturday)      # "Or"
  except DIMonth.new(Last, Friday)   # "Not"
end

# expression = "Daily 8:45am to 9:30 and Fridays or Saturday except not the last Friday of the month"
```

Hmmm, this is not really an improvement over

```ruby
REDay.new(8,45,9,30) & DIWeek.new(Friday) | DIWeek.new(Saturday) - DIMonth.new(Last, Friday)
```

I know, let's try the new constructor aliases defined above!

```ruby
expression = d.define do
  on daily_8_45am_to_9_30am
  on friday
  possibly saturday
  except last_friday
end
```

Much better, except "on daily..." seems  a little awkward. We can use `:occurs` which is aliased to `:on` for just such a scenario.

```ruby
expression = d.define do
  occurs daily_8_45am_to_9_30am
  on friday
  possibly saturday
  except last_friday
end
```

ExpressionBuilder creates expressions by evaluating a block passed to the `:define` method. From inside the block, methods `:occurs`, `:on`, `:every`, `:possibly`, and `:maybe` can be called with a temporal expression which will be added to a composite expression as follows:

**:on**        creates an "and" (`&`)

**:possibly**  creates an "or" (`|`)

**:except**    creates a "not" (`-`)

**:every**     alias for `:on` method

**:occurs**    alias for `:on` method

**:maybe**     alias for `:possibly` method

Of course it's easy to open the builder class and add you own aliases if the ones provided don't work for you:

```ruby
class ExpressionBuilder
  alias_method :potentially, :possibly
  # etc....
end
```

If there are shortcuts or macros that you think others would find useful, send in a pull request.

*See Also:*

* Temporal Expressions [tutorial](tutorial_te.md)
* Schedule [tutorial](tutorial_schedule.md)


text:
<?php

const BOOTSTRAP_VERSION = '4.5';
const BOOTSTRAP_URL = 'https://getbootstrap.com/docs/' . BOOTSTRAP_VERSION;
const ROOT_DIR = __DIR__ . '/..';
const USAGE_FILEPATH = ROOT_DIR . '/docs/usage/README.md';

file_put_contents(USAGE_FILEPATH, '# Usage

## Introduction

The following docs page shows how to render Twitter Boostrap elements. For each elements, you can see how to do it in "Source" tabs. These are supposed to be run into a view file.

## Rendering

');

$aDocumentationFiles = [];
foreach (new \DirectoryIterator(ROOT_DIR . '/tests/TestSuite/Documentation') as $oFileInfo) {
    // Ignore non php filesand current class file
    if (!$oFileInfo->isFile() || $oFileInfo->getExtension() !== 'php' || $oFileInfo->getFilename() === 'DocumentationTest.php') {
        continue;
    }
    $aDocumentationFiles[] = $oFileInfo->getRealPath();
}
natsort($aDocumentationFiles);

foreach ($aDocumentationFiles as $sFilePath) {
    if (false === ($aTestsConfig = include $sFilePath)) {
        throw new \LogicException('An error occured while including documentation test config file "' . $sFilePath . '"');
    }
    if (!is_array($aTestsConfig)) {
        throw new \LogicException('Documentation test config file "' . $sFilePath . '" expects returning an array, "' . (is_object($aTestsConfig) ? get_class($aTestsConfig) : gettype($aTestsConfig)) . '" retrieved');
    }
    try {
        parseTestsConfig($aTestsConfig, 4);
    } catch (\Exception $oException) {
        throw new \LogicException('An error occured while extracting test cases from documentation test config file "' . $sFilePath . '"', $oException->getCode(), $oException);
    }
}

/**
 * Extract test cases values for a given tests configuration
 */
function parseTestsConfig(array $aTestsConfig, int $iHeading)
{

    generateDocPageFromTest($aTestsConfig, $iHeading);

    if (isset($aTestsConfig['tests'])) {
        if (!is_array($aTestsConfig)) {
            throw new \InvalidArgumentException('Argument "$aTestsConfig[\'tests\']" for "' . $aTestsConfig['title'] . '" expects an array, "' . (is_object($aTestsConfig['tests']) ? get_class($aTestsConfig['tests']) : gettype($aTestsConfig['tests'])) . '" given');
        }
        $iHeading++;
        foreach ($aTestsConfig['tests'] as $aNestedTestsConfig) {
            parseTestsConfig($aNestedTestsConfig, $iHeading);
        }
    }
}

/**
 * Write the test content for the given params into the given demo page file
 */
function generateDocPageFromTest(array $aTestConfig, int $iHeading)
{
    $sTitle = $aTestConfig['title'];

    // Print title
    file_put_contents(
        USAGE_FILEPATH,
        str_repeat('#', $iHeading - 1) . ' ' . $sTitle . PHP_EOL,
        FILE_APPEND
    );

    // Print Twitter bootstrap Documentation url if any
    $sUrl = $aTestConfig['url'] ?? '';
    if ($sUrl) {
        $sPageDoc = '[Twitter bootstrap Documentation](' . str_replace('%bootstrap-url%', BOOTSTRAP_URL, $sUrl) . ')' . PHP_EOL;
        file_put_contents(USAGE_FILEPATH, $sPageDoc, FILE_APPEND);
    }

    if (isset($aTestConfig['rendering'])) {
        if (!isset($aTestConfig['expected'])) {
            throw new \InvalidArgumentException('Argument "$aTestConfig" does not have a defined "expected" key for "' . $sTitle . '"');
        }
    } elseif (isset($aTestConfig['expected'])) {
        throw new \InvalidArgumentException('Argument "$aTestConfig" does not have a defined "rendering" key for "' . $sTitle . '"');
    } else {
        return;
    }

    $oRendering = $aTestConfig['rendering'];
    $sExpected = $aTestConfig['expected'];

    // Extract rendering closure content
    $oReflectionFunction = new \ReflectionFunction($oRendering);
    $sRenderingContent = '';
    $aLines = file($oReflectionFunction->getFileName());
    $iIndentation = 0;
    for ($iLine = $oReflectionFunction->getStartLine(); $iLine < $oReflectionFunction->getEndLine() - 1; $iLine++) {
        $sLine = trim($aLines[$iLine]);
        $sLastChar = substr($sLine, -1);

        if (!$sLine && !$sRenderingContent) {
            continue;
        }
        if ($sRenderingContent) {
            $sRenderingContent .= PHP_EOL;
        }

        if (
            $iIndentation &&
            (preg_match('/^[\)|\]]+[;|,|\s].*$/', $sLine)
                || $sLine === '}'
                || in_array($sLastChar, [']'], true))
        ) {
            $iIndentation--;
        }

        $sRenderingContent .= str_repeat(' ', $iIndentation * 4) . $sLine;

        if (in_array($sLastChar, ['{', '(', '['], true)) {
            $iIndentation++;
        }
    }
    $sSource = str_replace(array('$oView'), array('$this'), $sRenderingContent);

    file_put_contents(
        USAGE_FILEPATH,
        '<!-- tabs:start -->

' . str_repeat('#', $iHeading) . ' **Result**

' . $sExpected . '

' . str_repeat('#', $iHeading) . ' **Source**

```php
' . $sSource . '
```

<!-- tabs:end -->

',
        FILE_APPEND
    );
}


text:
'use strict';

/**
 * @ngdoc function
 * @name lubriApp.controller:NotificationsCtrl
 * @description
 * # NotificationsCtrl
 * Controller of the lubriApp
 */
angular.module('lubriApp')

  .config(function($stateProvider) {
    $stateProvider.state('app.notifications', {
      abstract: true,
      url: '/notifications',
      templateUrl: 'views/notifications/main.html',
      controller: 'NotificationsCtrl'
    })
    .state('app.notifications.list', {
      url: '',
      templateUrl: 'views/notifications/list.html',
      controller: 'NotificationsCtrl'
    })
    .state('app.notifications.add', {
      url: '/add',
      templateUrl: 'views/notifications/form.html',
      controller: 'NotificationsCtrl'
    })
    .state('app.notifications.import', {
      url: '/import',
      templateUrl: 'views/notifications/import.html',
      controller: 'NotificationsCtrl'
    })
    .state('app.notifications.edit', {
      url: '/:id/edit',
      templateUrl: 'views/notifications/form.html',
      controller: 'NotificationsCtrl'
    })
    .state('app.notifications.view', {
      url: '/:id',
      templateUrl: 'views/notifications/view.html',
      controller: 'NotificationsCtrl'
    });
  })

  .controller('NotificationsCtrl', function($scope, $state, $stateParams, $q, $interval, toasty, Notification, SweetAlert, i18nService) {

  var notificationId = $stateParams.id;

  i18nService.setCurrentLang('zh-cn');

  $scope.importData = [];

  $scope.gridImportOptions = {
    enableGridMenu: true,
    importerDataAddCallback: function( grid, newObjects ) {
      $scope.importData = $scope.importData.concat( newObjects );
    },
    onRegisterApi: function(gridApi){
      $scope.gridImportApi = gridApi;
      gridApi.rowEdit.on.saveRow($scope, $scope.saveRow);
    },
    data: 'importData'
  };

  $scope.saveRow = function( rowEntity ) {
    // create a fake promise - normally you'd use the promise returned by $http or $resource
    var promise = $q.defer();
    $scope.gridImportApi.rowEdit.setSavePromise( $scope.gridImportApi.grid, rowEntity, promise.promise );

    $interval( function() {

        promise.resolve();

    }, 1000, 1);
  };

  $scope.saveImport = function () {
    if ($scope.importData.length > 0) {
      var notifications = $scope.importData;
      for (var i=0;i<notifications.length;i++) {
        var notification = notifications[i];
        notification.created = new Date();
        delete notification.$$hashKey;
        Notification.upsert(notification, function() {

        }, function(err) {
          console.log(err);
        });
      };
      toasty.pop.success({title: '会议室导入成功', msg: notifications.length + '个会议室成功导入到系统中!', sound: false});
      loadItems();
      $state.go('^.list');
    };
  };

  if (notificationId) {
    $scope.notification = Notification.findById({
      id: notificationId
    }, function() {}, function(err) {
      console.log(err);
    });
  } else {
    $scope.notification = {};
  }

  $scope.gridOptions = {
    data: 'notifications',
    enableFiltering: true,
    paginationPageSizes: [5, 10, 15],
    paginationPageSize: 10,
    headerRowHeight: 39,
    rowHeight: 39,
    columnFooterHeight: 39,
    gridFooterHeight: 39,
    selectionRowHeaderWidth: 39,
    columnDefs: [
  {
    name: 'Edit', width: 80, displayName: '编辑', enableSorting: false, enableFiltering: false, cellTemplate: '   '
  },
    {
      name: 'name', displayName: '房间号', cellTemplate: '
 {{ COL_FIELD }}
'}
    ,{
      name: 'building', displayName: '楼座'
    }
    , {
      name: 'floor', displayName: '楼层'
    }
    ],
    enableGridMenu: true,
    enableSelectAll: true,
    exporterCsvFilename: 'notifications.csv',
    exporterSuppressColumns: ['Edit'],
    exporterPdfDefaultStyle: {fontSize: 9},
    exporterPdfTableStyle: {margin: [30, 30, 30, 30]},
    exporterPdfTableHeaderStyle: {fontSize: 10, bold: true, italics: true, color: 'red'},
    exporterPdfHeader: { text: "Meeting Notification Information", style: 'headerStyle' },
    exporterPdfFooter: function ( currentPage, pageCount ) {
      return { text: currentPage.toString() + ' of ' + pageCount.toString(), style: 'footerStyle' };
    },
    exporterPdfCustomFormatter: function ( docDefinition ) {
      docDefinition.styles.headerStyle = { fontSize: 22, bold: true };
      docDefinition.styles.footerStyle = { fontSize: 10, bold: true };
      return docDefinition;
    },
    exporterPdfOrientation: 'portrait',
    exporterPdfPageSize: 'LETTER',
    exporterPdfMaxGridWidth: 500,
    exporterCsvLinkElement: angular.element(document.querySelectorAll(".custom-csv-link-location"))
  };

  $scope.gridOptions.onRegisterApi = function (gridApi) {
    $scope.gridApi = gridApi;
  };

  function loadItems() {
    $scope.notifications = Notification.find();
  }

  loadItems();

  $scope.viewActions = {
    delete : $scope.delete
  };

  $scope.delete = function(id) {
    SweetAlert.swal({
      title: '您确定要删除吗?',
      type: 'warning',
      showCancelButton: true,
      confirmButtonColor: '#DD6B55'
    }, function(isConfirm){
      if (isConfirm) {
        Notification.deleteById(id, function() {
          toasty.pop.success({title: '会议室被删除', msg: '您成功删除了会议室!', sound: false});
          loadItems();
          $state.go($state.current, {}, {reload: true});
          //$state.go('app.notifications.list');
        }, function(err) {
          toasty.pop.error({title: '删除会议室出错', msg: '删除会议室发生错误:' + err, sound: false});
        });
      } else {
        return false;
      }
    });
  };

  $scope.formFields = [{
    key: 'name',
    type: 'text',
    label: '名称',
    required: true
  }, {
    key: 'building',
    type: 'text',
    label: '楼座',
    required: true
  }, {
    key: 'floor',
    type: 'number',
    label: '楼层',
    required: true
  }];

  $scope.formOptions = {
      uniqueFormId: true,
      hideSubmit: false,
      submitCopy: '保存'
  };

  $scope.onSubmit = function() {
    if (($scope.notification.created === null) || ($scope.notification.created === undefined)){
      $scope.notification.created = new Date();
    };
    Notification.upsert($scope.notification, function() {
      toasty.pop.success({title: '会议室保存成功', msg: '会议室已成功保存到系统中!', sound: false});
      loadItems();
      $state.go('^.list');
    }, function(err) {
      console.log(err);
    });
  };

  });


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.jutility</groupId>
        <artifactId>jutility</artifactId>
        <version>0.1.6-SNAPSHOT</version>
        <relativePath>../</relativePath>
    </parent>

    <artifactId>jutility-all</artifactId>

    <name>jUtility Library Bundle</name>
    <description>The jutility-all bundle provides a full assembly of the modules of the jUtility library.</description>
    <url>http://jutility.org</url>

    <inceptionYear>2013</inceptionYear>

    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <appendAssemblyId>false</appendAssemblyId>

                    <descriptors>
                        <descriptor>assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id> <!-- this is used for inheritance merges -->
                        <phase>package</phase> <!-- bind to the packaging phase -->
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>

    <dependencies>

        <dependency>
            <groupId>org.jutility</groupId>
            <artifactId>jutility-common</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>org.jutility</groupId>
            <artifactId>jutility-io</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>org.jutility</groupId>
            <artifactId>jutility-javafx</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>org.jutility</groupId>
            <artifactId>jutility-math</artifactId>
            <version>${project.version}</version>
        </dependency>

    </dependencies>

</project>


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
Syst. orb. veg. (Lundae) 1: 183 (1825)

#### Original name
Dimera Fr.

### Remarks
null