text:
namespace Microsoft
{
    namespace AspNetCore
    {
        namespace Routing
        {
            // Generated from `Microsoft.AspNetCore.Routing.IOutboundParameterTransformer` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public interface IOutboundParameterTransformer : Microsoft.AspNetCore.Routing.IParameterPolicy
            {
                string TransformOutbound(object value);
            }

            // Generated from `Microsoft.AspNetCore.Routing.IParameterPolicy` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public interface IParameterPolicy
            {
            }

            // Generated from `Microsoft.AspNetCore.Routing.IRouteConstraint` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public interface IRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy
            {
                bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection);
            }

            // Generated from `Microsoft.AspNetCore.Routing.IRouteHandler` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public interface IRouteHandler
            {
                Microsoft.AspNetCore.Http.RequestDelegate GetRequestHandler(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData);
            }

            // Generated from `Microsoft.AspNetCore.Routing.IRouter` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public interface IRouter
            {
                Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context);
                System.Threading.Tasks.Task RouteAsync(Microsoft.AspNetCore.Routing.RouteContext context);
            }

            // Generated from `Microsoft.AspNetCore.Routing.IRoutingFeature` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public interface IRoutingFeature
            {
                Microsoft.AspNetCore.Routing.RouteData RouteData { get; set; }
            }

            // Generated from `Microsoft.AspNetCore.Routing.LinkGenerator` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public abstract class LinkGenerator
            {
                public abstract string GetPathByAddress<TAddress>(Microsoft.AspNetCore.Http.HttpContext httpContext, TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions));
                public abstract string GetPathByAddress<TAddress>(TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions));
                public abstract string GetUriByAddress<TAddress>(Microsoft.AspNetCore.Http.HttpContext httpContext, TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions));
                public abstract string GetUriByAddress<TAddress>(TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions));
                protected LinkGenerator() => throw null;
            }

            // Generated from `Microsoft.AspNetCore.Routing.LinkOptions` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public class LinkOptions
            {
                public bool? AppendTrailingSlash { get => throw null; set => throw null; }
                public LinkOptions() => throw null;
                public bool? LowercaseQueryStrings { get => throw null; set => throw null; }
                public bool? LowercaseUrls { get => throw null; set => throw null; }
            }

            // Generated from `Microsoft.AspNetCore.Routing.RouteContext` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public class RouteContext
            {
                public Microsoft.AspNetCore.Http.RequestDelegate Handler { get => throw null; set => throw null; }
                public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; }
                public RouteContext(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null;
                public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set => throw null; }
            }

            // Generated from `Microsoft.AspNetCore.Routing.RouteData` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public class RouteData
            {
                // Generated from `Microsoft.AspNetCore.Routing.RouteData+RouteDataSnapshot` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
                public struct RouteDataSnapshot
                {
                    public void Restore() => throw null;
                    // Stub generator skipped constructor
                    public RouteDataSnapshot(Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, System.Collections.Generic.IList<Microsoft.AspNetCore.Routing.IRouter> routers, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null;
                }

                public Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; }
                public Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot PushState(Microsoft.AspNetCore.Routing.IRouter router, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null;
                public RouteData() => throw null;
                public RouteData(Microsoft.AspNetCore.Routing.RouteData other) => throw null;
                public RouteData(Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null;
                public System.Collections.Generic.IList<Microsoft.AspNetCore.Routing.IRouter> Routers { get => throw null; }
                public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; }
            }

            // Generated from `Microsoft.AspNetCore.Routing.RouteDirection` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public enum RouteDirection : int
            {
                IncomingRequest = 0,
                UrlGeneration = 1,
            }

            // Generated from `Microsoft.AspNetCore.Routing.RoutingHttpContextExtensions` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public static class RoutingHttpContextExtensions
            {
                public static Microsoft.AspNetCore.Routing.RouteData GetRouteData(this Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null;
                public static object GetRouteValue(this Microsoft.AspNetCore.Http.HttpContext httpContext, string key) => throw null;
            }

            // Generated from `Microsoft.AspNetCore.Routing.VirtualPathContext` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public class VirtualPathContext
            {
                public Microsoft.AspNetCore.Routing.RouteValueDictionary AmbientValues { get => throw null; }
                public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; }
                public string RouteName { get => throw null; }
                public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; set => throw null; }
                public VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null;
                public VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string routeName) => throw null;
            }

            // Generated from `Microsoft.AspNetCore.Routing.VirtualPathData` in `Microsoft.AspNetCore.Routing.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
            public class VirtualPathData
            {
                public Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; }
                public Microsoft.AspNetCore.Routing.IRouter Router { get => throw null; set => throw null; }
                public string VirtualPath { get => throw null; set => throw null; }
                public VirtualPathData(Microsoft.AspNetCore.Routing.IRouter router, string virtualPath) => throw null;
                public VirtualPathData(Microsoft.AspNetCore.Routing.IRouter router, string virtualPath, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null;
            }

        }
    }
}


text:
<?php

namespace DeicerTestAsset\Query;

use Deicer\Query\AbstractInvariableQuery;

/**
 * Deicer Test Invariable Query
 *
 * Represents a concrete implementation of a Deicer Invariable Query with
 * an invalid implementation of fetchData() that returns a empty array
 *
 * @category   DeicerTestAsset
 * @package    Query
 * @version    $id$
 * @copyright  2013 Alex Butucea <alex826@gmail.com>
 * @author     Alex Butucea <alex826@gmail.com>
 * @license    The MIT License (MIT) {@link http://opensource.org/licenses/MIT}
 */
class TestableInvariableQueryWithEmptyArrayReturningFetchData extends
 AbstractInvariableQuery
{
    /**
     * {@inheritdoc}
     */
    protected function fetchData()
    {
        return array ();
    }
}

redpajama_set_name: RedPajamaGithub


text:
package old.modules;

import old.datatypes.DataType;

public class TestModule implements Module{

	@Override
	public Class<? extends DataType>[] getRequiredArgs() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Class<? extends DataType>[] getOptionalArgs() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public DataType run(DataType[] required, DataType[] optional) {
		// TODO Auto-generated method stub
		return null;
	}

}


text:
Selon les normes NF EN 14175 ou XP X 15-203

Examen visuel de l'état de la sorbonne de laboratoire

Descriptif de la configuration du local d'implantation de la sorbonne

Descriptif de la configuration de la sorbonne de laboratoire contrôlée

Relevé des paramètres ambiants

Visualisation du débit d'air par test fumigène visible

Le test a pour objectif de visualiser de manière nette les flux d'air extrait par la sorbonne au niveau de la façade mobile afin de l'étudier et de collecter des informations qualitatives sur le débit d'extraction d'air et d'étudier les interactions entre les débits d'air extrait par la sorbonne et les débits d'air issus de la compensation d'air du local.

Mesure des vitesses d'air frontales

Norme NF EN 14175 (Sorbonne installée après 2005)

L'objectif des mesures lors du contrôle de routine est de déterminer tous écarts de valeurs des vitesses d'air frontales par rapport aux mesures relevées lors de l'essai de réception pour se rendre compte de l'évolution dans le temps des performances de l'équipement.

Norme XP X 15-203 (Sorbonne installée avant 2005)

L'objectif des mesures lors du contrôle de routine est de comparer les valeurs des vitesses d'air frontales par rapport à une valeur seuil de référence de 0,4 m/s en tous points de mesure.


text:
package org.apache.commons.jcs.engine.memory.lru;

import org.apache.commons.jcs.engine.behavior.ICacheElement;
import org.apache.commons.jcs.engine.memory.AbstractDoubleLinkedListMemoryCache;
import org.apache.commons.jcs.engine.memory.util.MemoryElementDescriptor;

import java.io.IOException;

/**
 * A fast reference management system. The least recently used items move to the end of the list and
 * get spooled to disk if the cache hub is configured to use a disk cache. Most of the cache
 * bottlenecks are in IO. There are no io bottlenecks here, it's all about processing power.
 *

 * Even though there are only a few adjustments necessary to maintain the double linked list, we
 * might want to find a more efficient memory manager for large cache regions.
 *

 * The LRUMemoryCache is most efficient when the first element is selected. The smaller the region,
 * the better the chance that this will be the case. < .04 ms per put, p3 866, 1/10 of that per get
 */
public class LRUMemoryCache<K, V>
    extends AbstractDoubleLinkedListMemoryCache<K, V>
{
    /**
     * Puts an item to the cache. Removes any pre-existing entries of the same key from the linked
     * list and adds this one first.
     *

     * @param ce The cache element, or entry wrapper
     * @return MemoryElementDescriptor the new node
     * @throws IOException
     */
    @Override
    protected MemoryElementDescriptor<K, V> adjustListForUpdate( ICacheElement<K, V> ce )
        throws IOException
    {
        return addFirst( ce );
    }

    /**
     * Makes the item the first in the list.
     *

     * @param me
     */
    @Override
    protected void adjustListForGet( MemoryElementDescriptor<K, V> me )
    {
        list.makeFirst( me );
    }
}


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">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Globatime - Create global event maps</title>

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

   	<link href='css/google_merriweather.css' rel='stylesheet' type='text/css'>
   	<link href='css/google_opensans.css' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css">

    <link rel="stylesheet" href="css/animate.min.css" type="text/css">
    <link rel="stylesheet" href="css/datepicker.css">
  	<link rel="stylesheet" href="css/bootstrap-select.css">
  	<link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css" />
	<link rel="stylesheet" href="css/feedback.css" />

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

                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    Toggle navigation

                </button>
                Globatime

				  	<form class="navbar-form" role="search">

							<input type="text" class="form-control" placeholder="Search event" name="srch-term" id="srch-term">

								<button class="btn btn-default" onclick="searchMap()"></button>

					</form>

                    	About

					    Preview

						Latest

						<form method="POST" action="/feedback" class="form panel-body" role="form">

							<input class="form-control" id="emailInput" name="email" autofocus placeholder="Your e-mail" type="email" />

							<textarea class="form-control" id="feedBackInput" name="body" required placeholder="Please write your feedback here..." rows="5"></textarea>

							<button class="btn btn-default pull-right btn-border" id="feedBackSubmit" type="submit">Send</button>
						</form>

Feedback

Oops!

404 not found

								Sorry, an error has occured, requested page not found!

								 Take Me Home

			Copyright © 2015-2016 globatime.com
Globatime isn't responsible for any of the created maps.
Disclaimer


text:
var diameter = 960,
format = d3.format(",d"),
color = d3.scale.category20c();

var bubble = d3.layout.pack()
.sort(null)
.size([diameter, diameter])
.padding(1.5);

function drawBubbleChart(data, index) {
  var root = data.map(d => {
    if(index) {
      d.value = d.valueByMonth[index];
    }
    return d;
  })

  $("#chart").empty();

  var svg = d3.select("#chart").append("svg")
  .attr("width", diameter)
  .attr("height", diameter)
  .attr("class", "bubble");

  var node = svg.selectAll(".node")
  .data(bubble.nodes({children: root})
    .filter(function(d) { return !d.children; }))
  .enter().append("g")
  .attr("class", "node")
  .attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });

  node.append("title")
  .text(function(d) { return d.className + ": " + format(d.value); });

  node.append("circle")
  .attr("r", function(d) { return d.r; })
  .style("fill", function(d) { return color(d.packageName); });

  node.append("text")
  .attr("dy", ".3em")
  .style("text-anchor", "middle")
  .text(function(d) { return d.className.substring(0, d.r / 3); });

  d3.select(self.frameElement).style("height", diameter + "px");

}


text:
\chapter{Beispiele}
\label{chap:anh_beispiele}

\section{Allgemein}
\label{sec:anh_beispiel_1}
\subsection{Allgemein}
\label{ssec:anh_beispiel_a_1}

\begin{lstlisting}[caption={Abfragen auf Relationswerte},captionpos=b,language=SQL]
?p a owl:Class?
	rdfs:subClassOf pg:Programm?
	rdfs:subClassOf ?restriction.
		?restriction owl:onProperty pg:verwendetProgrammiersprache.
		?restriction owl:hasValue pg:Deklarativ.
?p a owl:Class?
	rdfs:subClassOf pg:Programm?
	rdfs:subClassOf ?restriction.
		?restriction owl:onProperty pg:bestehtAus.
		?restriction owl:someValuesFrom pg:Axiom.
\end{lstlisting}

\subsection{Abfragen auf Relationswerte}
\label{ssec:anh_beispiel_a_2}

\begin{lstlisting}[caption={Alle Programmiersprachen, welche von einem Programm
verwendet werden, welches aus Axiomen besteht},captionpos=b,language=SQL]
PREFIX rdf: <http://www.w3.org/1999/02/22rdfsyntaxns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdfschema#>
PREFIX pg:
<http://www.semanticweb.org/sosterwalder/ontologies/2014/9/programming#>
SELECT *
WHERE {
	?ps pg:wirdVerwendetVon ?o.
	?o pg:bestehtAus pg:axiom.
#pg:Programm ?xx ?object
}
\end{lstlisting}

\subsection{Alle Einsatzgebiete welche in Programmen zum Einsatz kommen,
welche aus Axiome bestehen}
\label{ssec:anh_beispiel_a_3}

\begin{lstlisting}[caption={Alle Einsatzgebiete welche in Programmen zum Einsatz kommen,
welche aus Axiome bestehen},captionpos=b,language=SQL]
PREFIX rdf: <http://www.w3.org/1999/02/22rdfsyntaxns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdfschema#>
PREFIX pg:
<http://www.semanticweb.org/sosterwalder/ontologies/2014/9/programming#>
SELECT *
	WHERE {
	?es a owl:Class?
		rdfs:subClassOf pg:Einsatzgebiet.
	?r a owl:Restriction?
		owl:onProperty pg:hatEinsatzgebiet?
		owl:allValuesFrom ?es.
	?x a ?es.
	?p a pg:Programm?
		a ?r?
		pg:bestehtAus pg:axiom.
}
\end{lstlisting}

\subsection{Alle Einsatzgebiete welche in deklarativen Programmen zum
Einsatz kommen}
\label{ssec:anh_beispiel_a_4}

\begin{lstlisting}[caption={Alle Einsatzgebiete welche in deklarativen Programmen zum
Einsatz kommen},captionpos=b,language=SQL]
PREFIX rdf: <http://www.w3.org/1999/02/22rdfsyntaxns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdfschema#>
PREFIX pg:
<http://www.semanticweb.org/sosterwalder/ontologies/2014/9/programming#>
SELECT Distinct ?x
	WHERE {
	?es a owl:Class? rdfs:subClassOf pg:Einsatzgebiet.
	?r a owl:Restriction?
		owl:onProperty pg:hatEinsatzgebiet?
		owl:allValuesFrom ?es.
	?x a ?es.
	?p a pg:Programm?
		a ?r.
		#pg:bestehtAus pg:axiom.
	FILTER (regex(str(?p), "deklarativesProgramm","i"))
}
\end{lstlisting}

\section{Wie ist Prolog aufgebaut?}
\label{sec:anh_beispiel_b}

\subsection{Aus was besteht Prolog?}
\label{ssec:anh_beispiel_b_1}
\begin{lstlisting}[caption={Aus was besteht Prolog?},captionpos=b,language=SQL]
PREFIX rdf: <http://www.w3.org/1999/02/22rdfsyntaxns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdfschema#>
PREFIX pl:
<http://www.semanticweb.org/mira/ontologies/2014/9/untitledontology7#>
SELECT * WHERE {
	?x rdfs:subClassOf pl:Programmiersprache.
	?r a owl:Restriction?
		owl:onProperty pl:hatSyntaxElement?
		owl:someValuesFrom ?t.
	?e rdfs:subClassOf ?t.
}
\end{lstlisting}

\newpage
\subsection{Aus was bestehen logische Elemente?}
\label{ssec:anh_beispiel_b_2}
\begin{lstlisting}[caption={Aus was bestehen logische Elemente?},captionpos=b,language=SQL]
PREFIX rdf: <http://www.w3.org/1999/02/22rdfsyntaxns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdfschema#>
PREFIX pl:
<http://www.semanticweb.org/mira/ontologies/2014/9/untitledontology7#>
SELECT * WHERE {
	?x rdfs:subClassOf pl:Programmiersprache.
	?r a owl:Restriction?
		owl:onProperty pl:hatSyntaxElement?
		owl:someValuesFrom ?t.
	?e rdfs:subClassOf ?t.
}
\end{lstlisting}

\subsection{Was für sprachliche Elemente verwendet Prolog?}
\label{ssec:anh_beispiel_b_3}
\begin{lstlisting}[caption={Was für sprachliche Elemente verwendet Prolog?},captionpos=b,language=SQL]
PREFIX rdf: <http://www.w3.org/1999/02/22rdfsyntaxns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdfschema#>
PREFIX pl:
<http://www.semanticweb.org/mira/ontologies/2014/9/untitledontology7#>
SELECT * WHERE {
	?x rdfs:subClassOf pl:Programmiersprache.
	?r a owl:Restriction?
		owl:onProperty pl:hatSyntaxElement?
		owl:someValuesFrom ?t.
	?e rdfs:subClassOf ?t.
	?el rdfs:subClassOf ?e.
	?xa a ?el.
}
\end{lstlisting}

\section{Wie funktioniert Unifkation?}
\label{sec:anh_beispiel_c}

\textit{Erwartete Antwort: In Prolog wird versucht mit Hilfe von Unifikation Anfragen mit Regeln oder Fakten identisch zu machen.}

Da wir von der Fragestellung her wissen, dass wir die Klasse Unifikation wollen, geben wir diese bereits als Filter an.

\subsection{Schritt 1: Beziehungen der Klasse Unifikation nach oben herausfinden}
\label{ssec:anh_beispiel_c_1}

\begin{lstlisting}[caption={Beziehungen der Klasse Unifikation nach oben herausfinden},captionpos=b,language=SQL]
SELECT DISTINCT * WHERE {
	?u a owl:Class.
	?p ?b ?u.
	?t ?a ?p.

	FILTER (?u=pl:Unifikation)
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Prolog_1.jpg}}}
\caption{Output: Beziehungen der Klasse Unifikation nach oben herausfinden.\label{fig:prolog_1}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\subsection{Schritt 2: Beziehungen der Klasse Unifikation nach unten herausfinden}
\label{ssec:anh_beispiel_c_2}

\begin{lstlisting}[caption={Beziehungen der Klasse Unifikation nach unten herausfinden},captionpos=b,language=SQL]
SELECT DISTINCT * WHERE {
	?u a owl:Class.
	?u rdfs:subClassOf ?y.

	FILTER  (?u=pl:Unifikation)
}

\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Prolog_2.jpg}}}
\caption{Output: Beziehungen der Klasse Unifikation nach unten herausfinden.\label{fig:prolog_2}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\subsection{Schritt 3: Details der Beziehungen anzeigen}
\label{ssec:anh_beispiel_c_3}

\begin{lstlisting}[caption={Details der Beziehungen anzeigen},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?u a owl:Class.
	?u rdfs:subClassOf ?y.
	?y owl:onProperty ?y3.
	?y owl:someValuesFrom ?v.
	FILTER  (?u=pl:Unifikation)
}

\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Prolog_3.jpg}}}
\caption{Output: Details der Beziehungen anzeigen.\label{fig:prolog_3}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\ Die Beziehungen setztGleich und wirdAngewendetAuf scheinen keine weiteren Relationen zu haben.

\subsubsection{Zwischenfazit}
\label{sssec:anh_beispiel_c_3_1}

Mit den Schritten 1 bis 3 haben wir festgestellt, dass Unifikation auf Anfragen angewendet wird und diese Fakten und Regeln gleich setzt.\\
Als Verfahren scheint dabei Substitution zum Einsatz zu kommen. Dies muss aber in weiteren Schritten genauer analysiert werden.

\subsection{Schritt 4: Beziehungen der Klasse Substitution herausfinden}
\label{ssec:anh_beispiel_c_4}

\begin{lstlisting}[caption={ Beziehungen der Klasse Substitution herausfinden},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?u a owl:Class.
	?u rdfs:subClassOf ?y.
	?y owl:onProperty ?y3.
	?y owl:someValuesFrom ?v.
	?v rdfs:subClassOf ?v2.
	FILTER  (?u=pl:Unifikation)
}

\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Prolog_4.jpg}}}
\caption{Output: Beziehungen der Klasse Substitution herausfinden.\label{fig:prolog_4}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\subsection{Schritt 5: Details der Beziehungen anzeigen}
\label{ssec:anh_beispiel_c_5}

\begin{lstlisting}[caption={ Details der Beziehungen anzeigen},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?u a owl:Class.
	?u rdfs:subClassOf ?y.
	?y owl:onProperty ?y3.
	?y owl:someValuesFrom ?v.
	?v rdfs:subClassOf ?v2.
	?v2 owl:onProperty ?y3.
	FILTER  (?u=pl:Unifikation)
}

\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Prolog_5.jpg}}}
\caption{Output: Details der Beziehungen anzeigen.\label{fig:prolog_5}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\ Die Beziehungen substituiert und substituiertMit scheinen keine weiteren Relationen zu haben.

\subsubsection{Zwischenfazit}
\label{sssec:anh_beispiel_c_5_1}

Mit den Schritten 4 und 5 haben wir festgestellt, dass Substitution Variablen mit Atomen substituiert.

\subsection{Schritt 6: Individuen extrahieren}
\label{ssec:anh_beispiel_c_6}

\begin{lstlisting}[caption={Individuen extrahieren},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?u a owl:Class.
	?u rdfs:subClassOf ?y.
	?y owl:onProperty ?y3.
	?y owl:someValuesFrom ?v.
	?v rdfs:subClassOf ?v2.
	?v2 owl:hasValue ?v4.

	FILTER  (?u=pl:Unifikation )
}

\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Prolog_6.jpg}}}
\caption{Output: Individuen extrahieren.\label{fig:prolog_6}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\subsubsection{Fazit}
\label{sssec:anh_beispiel_c_6_1}

Dadurch, dass keine weitere Beziehungen vorhanden sind, haben wir somit alle Beziehungen/Informationen der Unifikation erhalten.

Es stellt sich nun die Frage, wie weitere Informationen zu den Individuen (Variable, Atom, Fakt, Regel und Anfrage) abgerufen werden können.

\section{Was sind Atome?}
\label{sec:anh_beispiel_d}

\textit{Erwartete sparql'sche Antwort: Bei den Atomen handelt es sich um einfache Tokens, wobei diese wiederum Sprachelemente sind. Sprachelemente sind Tokens, woraus Prolog besteht.}

\textit{Erwartete menschliche Antwort: Atome sind Sprachelemente von Prolog, welche mit einem Kleinbuchstaben oder einem Apostrophen beginnen. Atome sind einfache Tokens.
}

Da wir von der Fragestellung her wissen, dass es sich bei Atom um ein sog. owl:NamedIndividual handelt, selektieren wir dieses direkt per Filter.

\subsection{Schritt 1: Atom-Objekt selektieren}
\label{ssec:anh_beispiel_d_1}

\begin{lstlisting}[caption={Atom-Objekt selektieren},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.

	FILTER  (regex(str(?i),"atom","i") )
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_1.jpg}}}
\caption{Output: Atom-Objekt selektieren.\label{fig:atom_1}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\newpage
\subsection{Schritt 2: Klasse/Typ des Individuums herausfinden}
\label{ssec:anh_beispiel_f_2}

\begin{lstlisting}[caption={Klasse/Typ des Individuums herausfinden},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.

	FILTER  (regex(str(?i),"atom","i") )
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_2.jpg}}}
\caption{Output: Klasse/Typ des Individuums herausfinden.\label{fig:atom_2}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\  Bei den Atomen handelt es sich um einfache Tokens (und um eine NamedIndividual, was aber bereits im Vorfeld klar war).

\subsection{Schritt 3: Beziehungen des einfachen Token herausfinden}
\label{ssec:anh_beispiel_f_2}

\begin{lstlisting}[caption={Beziehungen des einfachen Token herausfinden},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.
	?c ?xx ?z. 	# Gibt alle Beziehungen aus

	FILTER  (regex(str(?i),"atom","i") && ?c=pl:EinfachesToken)
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_3.jpg}}}
\caption{Output: Beziehungen des einfachen Token herausfinden.\label{fig:atom_3}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\ Wir sehen, dass einfache Tokens die Prädikate type und subClassOf mit den Subjekten Class bzw. SprachElement hat. Dies erlaubt nun die Einschränkung des Queries auf den Teil von Interesse, also subClassOf.

\begin{lstlisting}[caption={Beziehungen des einfachen Token herausfinden 2},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.
	?c rdfs:subClassOf ?z.

	FILTER  (regex(str(?i),"atom","i") && ?c=pl:EinfachesToken)
}

\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_3_b.jpg}}}
\caption{Output: Beziehungen des einfachen Token herausfinden 2.\label{fig:atom_3_b}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\  Einfache Tokens scheinen also Sprachelemente zu sein.

\subsection{Schritt 4: Beziehungen der Klasse SprachElement herausfinden}
\label{ssec:anh_beispiel_f_4}

\begin{lstlisting}[caption={Beziehungen der Klasse SprachElement herausfinden},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.

	?c rdfs:subClassOf ?z.
	?z rdfs:subClassOf ?e.

	FILTER  (regex(str(?i),"atom","i") && ?c=pl:EinfachesToken)
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_4.jpg}}}
\caption{Output: Beziehungen der Klasse SprachElement herausfinden.\label{fig:atom_4}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\subsection{Schritt 5: Beziehungen zu Token}
\label{ssec:anh_beispiel_f_5}

Nachdem wir festgestellt haben, dass Token selbst keine weiteren Relationen mehr hat, wird in diesem Schritt die Anfrage umgedreht.

\begin{lstlisting}[caption={Beziehungen zu Token},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.

	?c rdfs:subClassOf ?z.
	?z rdfs:subClassOf ?e.
	?o ?w ?e.

	FILTER  (regex(str(?i),"atom","i") && ?c=pl:EinfachesToken)
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_5.jpg}}}
\caption{Output: Beziehungen zu Token.\label{fig:atom_5}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\  Token wird von einer Klasse/einem Objekt mittels der Beziehung hatSyntaxElement als range verwendet.

\subsection{Schritt 6: Objekt(e) mit Relation hatSyntaxElement herausfinden}
\label{ssec:anh_beispiel_f_6}

Es soll herausgefunden werden, welche Objekte das Prädikat hatSyntaxElement als Eigenschaft und Token als Wert einer Einschränkung verwenden.

\begin{lstlisting}[caption={Objekt(e) mit Relation hatSyntaxElement herausfinden},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.
	?c rdfs:subClassOf ?z.
	?z rdfs:subClassOf ?e.
	?bez rdfs:range ?e.
	?r a owl:Restriction;
		owl:onProperty ?bez;
		owl:someValuesFrom ?e.
	?cl rdfs:subClassOf ?r.

	FILTER  (regex(str(?i),"atom","i") && ?c=pl:EinfachesToken)
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_6.jpg}}}
\caption{Output: Objekt(e) mit Relation hatSyntaxElement herausfinden.\label{fig:atom_6}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\  Es handelt sich bei dem gefunden Objekt um Prolog!

\subsection{Schritt 7: Beziehungen zu Prolog herausfinden}
\label{ssec:anh_beispiel_f_7}

Es soll herausgefunden werden, welche Objekte das Prädikat hatSyntaxElement als Eigenschaft und Token als Wert einer Einschränkung verwenden.

\begin{lstlisting}[caption={Beziehungen zu Prolog herausfinden},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i a ?c.
	?c rdfs:subClassOf ?z.
	?z rdfs:subClassOf ?e.
	?bez rdfs:range ?e.
	?r a owl:Restriction;
		owl:onProperty ?bez;
		owl:someValuesFrom ?e.
	?cl rdfs:subClassOf ?r.
	?cl rdfs:subClassOf ?ccl.
	FILTER  (regex(str(?i),"atom","i") && ?c=pl:EinfachesToken)
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_7.jpg}}}
\caption{Output: Beziehungen zu Prolog herausfinden.\label{fig:atom_7}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

\textbf{Feststellung:}\\  Prolog hat als übergeordnetes Objekt die Klasse Programmiersprache, ist als Unterklasse von dieser. Weiter ist ersichtlich, dass Prolog aus Token Elementen besteht und Unifikation verwendet.

\subsubsection{Zwischenfazit}
\label{sssec:anh_beispiel_c_7_1}

Die gewonnen Erkenntnisse decken die Fragestellung grösstenteils ab, was aber nicht ersichtlich ist, ist, dass Atome über einen kleinen Anfangsbuchstaben verfügen.

\subsection{Schritt 8: Kommentar(e) der Individuen ausgeben}
\label{ssec:anh_beispiel_f_8}

Als Idee zur Lösung zum Zwischenfazit wird die Annotation comment von allen NamedIndividual Objekten ausgegeben.

\begin{lstlisting}[caption={Kommentar(e) der Individuen ausgeben},captionpos=b,language=SQL]
SELECT distinct * WHERE {
	?i a owl:NamedIndividual.
	?i rdfs:comment ?x.
	FILTER  (regex(str(?i),"atom","i"))
}
\end{lstlisting}

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Atom_8.jpg}}}
\caption{Output: Kommentar(e) der Individuen ausgeben.\label{fig:atom_8}\protect\footnotemark}
\end{figure}
\footnotetext{Output Abfrage Protégé}

Analog kann dies natürlich in der Abfrage von Schritt 7 verwendet werden..

\subsubsection{Fazit}
\label{sssec:anh_beispiel_c_8_1}

Die ursprüngliche Frage konnte also erfolgreich wie folgt beantwortet werden:

\begin{itemize}
		\item Atome sind Sprachelemente \\
		Schritt 4
		\item von Prolog\\
		Schritt 6
		\item welche mit einem Kleinbuchstaben oder einem Apostrophen beginnen.\\
		Schritt 8
		\item Atome sind einfache Tokens.\\
		Schritt 3
\end{itemize}

\section{Familienbeispiel}
\label{sec:anh_beispiel_g}

Damit wir eine Bestätigung bekommen, dass unser Semantisches System die gleiche Mächtigkeit wie Prolog (also alle notwendigen Funktionalitäten) besitzt, haben wir ein FamilienProlog Beispiel abgebildet.

Die Situation aus family.pl (siehe \ref{ssec:anh_beispiel_g_prolog}) soll abgebildet werden.

Fakten werden mit Klassen resp. Objekt oder Data Properties abgebildet. Die Argumente in Prolog werden als Individuen abgebildet. (siehe \ref{ssec:anh_beispiel_g_owl}).
Die Regel können eins zu eins übernommen werden.

Die Beispielanfragen wurden genau gleich wie in Prolog beantwortet.

\begin{lstlisting}[caption={Familienbeispiel in Prolog},captionpos=b,language=SQL]
ASK WHERE {
  	:hans :isAncestor :tea.
 }
\end{lstlisting}

\subsection{Alle Nachfahren von Doris}
\label{ssec:anh_beispiel_g_1}
\begin{lstlisting}[caption={Alle Nachfahren von Doris},captionpos=b,language=SQL]
SELECT
	*
WHERE {
	?subject :isAncestor ?object.
  	#FILTER regex(?subject, "doris", "i")
}
\end{lstlisting}

\subsection{Ist hans vorfahre von tea?}
\label{ssec:anh_beispiel_g_2}
\begin{lstlisting}[caption={Ist hans vorfahre von tea?},captionpos=b,language=SQL]
ASK WHERE {
  	:hans :isAncestor :tea.
 }
\end{lstlisting}

Zusätzlich zu der Möglichkeit anfragen zu stellen zeigt der Reasoner in Protégé seine Folgerungen direkt bei den Objekten an. Der Reasoner konnte in diesem Beispiel dank unserer Regeln direkt erkennen das doris eine Mutter ist und Verfahre von lisa, hans, luca, tea.

\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.5}[0.5]{\includegraphics{anhang/bilder/Family.jpg}}}
\caption{Output: Familienbeispiel Anzeige.\label{fig:family}\protect\footnotemark}
\end{figure}
\footnotetext{Reasoning in Protégé}

\subsection{Familienbeispiel in Prolog}
\label{ssec:anh_beispiel_g_prolog}
\lstinputlisting{anhang/family.pl}

\subsection{Familienbeispiel in OWL}
\label{ssec:anh_beispiel_g_owl}
%\lstinputlisting[breaklines=true]{anhang/family.owl}
\begin{figure}[H]
\centering \rotatebox{0}{\scalebox{0.3}[0.3]{\includegraphics{anhang/bilder/Familiennetz.png}}}
\caption{Semantisches Netz für das Familienbeispiel\label{fig:familiennetz}\protect\footnotemark}
\end{figure}
\footnotetext{Eigene Darstellung mittels yEd.}


text:
<?php

namespace ZendTest\View\Helper;

use PHPUnit_Framework_TestCase as TestCase;
use stdClass;
use Zend\View\Helper\EscapeUrl as EscapeHelper;

class EscapeUrlTest extends TestCase
{

    protected $supportedEncodings = array(
        'iso-8859-1',   'iso8859-1',    'iso-8859-5',   'iso8859-5',
        'iso-8859-15',  'iso8859-15',   'utf-8',        'cp866',
        'ibm866',       '866',          'cp1251',       'windows-1251',
        'win-1251',     '1251',         'cp1252',       'windows-1252',
        '1252',         'koi8-r',       'koi8-ru',      'koi8r',
        'big5',         '950',          'gb2312',       '936',
        'big5-hkscs',   'shift_jis',    'sjis',         'sjis-win',
        'cp932',        '932',          'euc-jp',       'eucjp',
        'eucjp-win',    'macroman'
    );

    public function setUp()
    {
        $this->helper = new EscapeHelper;
    }

    public function testUsesUtf8EncodingByDefault()
    {
        $this->assertEquals('UTF-8', $this->helper->getEncoding());
    }

    /**
     * @expectedException \Zend\View\Exception\InvalidArgumentException
     */
    public function testEncodingIsImmutable()
    {
        $this->helper->setEncoding('BIG5-HKSCS');
        $this->helper->getEscaper();
        $this->helper->setEncoding('UTF-8');
    }

    public function testGetEscaperCreatesDefaultInstanceWithCorrectEncoding()
    {
        $this->helper->setEncoding('BIG5-HKSCS');
        $escaper = $this->helper->getEscaper();
        $this->assertTrue($escaper instanceof \Zend\Escaper\Escaper);
        $this->assertEquals('big5-hkscs', $escaper->getEncoding());
    }

    public function testSettingEscaperObjectAlsoSetsEncoding()
    {
        $escaper = new \Zend\Escaper\Escaper('big5-hkscs');
        $this->helper->setEscaper($escaper);
        $escaper = $this->helper->getEscaper();
        $this->assertTrue($escaper instanceof \Zend\Escaper\Escaper);
        $this->assertEquals('big5-hkscs', $escaper->getEncoding());
    }

    public function testEscapehtmlCalledOnEscaperObject()
    {
        $escaper = $this->getMock('\\Zend\\Escaper\\Escaper');
        $escaper->expects($this->any())->method('escapeUrl');
        $this->helper->setEscaper($escaper);
        $this->helper->__invoke('foo');
    }

    public function testAllowsRecursiveEscapingOfArrays()
    {
        $original = array(
            'foo' => 'bar',
            'baz' => array(
                'bat',
                'second' => array(
                    'third',
                ),
            ),
        );
        $expected = array(
            'foo' => '%3Cb%3Ebar%3C%2Fb%3E',
            'baz' => array(
                '%3Cem%3Ebat%3C%2Fem%3E',
                'second' => array(
                    '%3Ci%3Ethird%3C%2Fi%3E',
                ),
            ),
        );
        $test = $this->helper->__invoke($original, EscapeHelper::RECURSE_ARRAY);
        $this->assertEquals($expected, $test);
    }

    public function testWillCastObjectsToStringsBeforeEscaping()
    {
        $object = new TestAsset\Stringified;
        $test = $this->helper->__invoke($object);
        $this->assertEquals(
            'ZendTest%5CView%5CHelper%5CTestAsset%5CStringified',
            $test
        );
    }

    public function testCanRecurseObjectImplementingToArray()
    {
        $original = array(
            'foo' => 'bar',
            'baz' => array(
                'bat',
                'second' => array(
                    'third',
                ),
            ),
        );
        $object = new TestAsset\ToArray();
        $object->array = $original;

        $expected = array(
            'foo' => '%3Cb%3Ebar%3C%2Fb%3E',
            'baz' => array(
                '%3Cem%3Ebat%3C%2Fem%3E',
                'second' => array(
                    '%3Ci%3Ethird%3C%2Fi%3E',
                ),
            ),
        );
        $test = $this->helper->__invoke($object, EscapeHelper::RECURSE_OBJECT);
        $this->assertEquals($expected, $test);
    }

    public function testCanRecurseObjectProperties()
    {
        $original = array(
            'foo' => 'bar',
            'baz' => array(
                'bat',
                'second' => array(
                    'third',
                ),
            ),
        );
        $object = new stdClass();
        foreach ($original as $key => $value) {
            $object->$key = $value;
        }

        $expected = array(
            'foo' => '%3Cb%3Ebar%3C%2Fb%3E',
            'baz' => array(
                '%3Cem%3Ebat%3C%2Fem%3E',
                'second' => array(
                    '%3Ci%3Ethird%3C%2Fi%3E',
                ),
            ),
        );
        $test = $this->helper->__invoke($object, EscapeHelper::RECURSE_OBJECT);
        $this->assertEquals($expected, $test);
    }

    /**
     * @expectedException \Zend\Escaper\Exception\InvalidArgumentException
     *
     * PHP 5.3 instates default encoding on empty string instead of the expected
     * warning level error for htmlspecialchars() encoding param. PHP 5.4 attempts
     * to guess the encoding or take it from php.ini default_charset when an empty
     * string is set. Both are insecure behaviours.
     */
    public function testSettingEncodingToEmptyStringShouldThrowException()
    {
        $this->helper->setEncoding('');
        $this->helper->getEscaper();
    }

    public function testSettingValidEncodingShouldNotThrowExceptions()
    {
        foreach ($this->supportedEncodings as $value) {
            $helper = new EscapeHelper;
            $helper->setEncoding($value);
            $helper->getEscaper();
        }
    }

    /**
     * @expectedException \Zend\Escaper\Exception\InvalidArgumentException
     *
     * All versions of PHP - when an invalid encoding is set on htmlspecialchars()
     * a warning level error is issued and escaping continues with the default encoding
     * for that PHP version. Preventing the continuation behaviour offsets display_errors
     * off in production env.
     */
    public function testSettingEncodingToInvalidValueShouldThrowException()
    {
        $this->helper->setEncoding('completely-invalid');
        $this->helper->getEscaper();
    }
}


text:
Version 2 is a compete rebuild from scratch to bring the Race2GED app into the current Android Design Guidelines and to make sure
the app maintains a high quality standard.

Companion App for students in the Southwest Virginia/Northeast Tennessee area that need help in getting their GED® Credential.
Regional Adult Education Program of Lee, Scott, Wise, and Norton Public Schools : 877-RACE 2 GED

Some Facts:
+ Services are offered to adults over 18 that live in the counties of Lee, Scott, Wise and Norton, VA.
+ All adult education classes are free, have open entry and open exit.
+ Adults enter at any class meeting and finish when they meet their goals.
+ Adults have free textbooks, supplies, and at most sites, access to the Internet.
+ All Virginia adults that pass a free GED practice test receive a free GED Exam.
+ Classes are offered for basic reading, GED preparation, English as a Second Language, and distance learning.
+ Classes follow the Mountain Empire Community College schedule for inclement weather.
+ All students are assessed for their ability in reading and math.
+ Working with the teacher, adults complete lessons in their areas of weakness.
+ The GED is given at least monthly in Wise, Norton, and Jonesville.
+ On-Demand or near daily GED testing is available in Gate City.

*GED and the GED Testing Service are registered trademarks of the American Council of Education and may not be used or reproduced without the express written permission of the ACE.*

---

##[License] (https://raw.github.com/RegionalAdultEducation/Race2GED2/master/LICENSE)


text:
/*
 * Dialog
 */

.builderShare .modal-dialog {
	width: 900px;
	max-width: 100%;
}

.builderShare .modal-body {
	overflow: visible;
}

.builderShare .modal-logo {
	position: absolute;
	top: -20px;
	left: -20px;
	width: 48px;
	height: 48px;
	background: url(../_resources/icons/builder-share.png);
	background-position: 0 -42px;
	background-repeat: no-repeat;
	border: 4px solid #FFF;
	border-radius: 24px;
}

.builderShare .modal-footer {
	margin-top: 15px;
}

.builderShare .hide {
	display: none;
}

/*
 * Sharing buttons
 */

.builderShare .app-sharing-container {
	display: block;
	text-align: center;
	font-size: 1.5em;
}

.builderShare .app-sharing-wrapper {
	position: relative;
	display: none;
	text-align: center;
	margin-left: -6px;
}

.builderShare .app-sharing-wrapper.enabled {
	display: inline-block;
}

.builderShare .app-sharing-wrapper:first-child .app-sharing-icon {
	border-left-width: 1px;
	border-radius: 6px 0 0 6px;
	padding: 3px 8px 6px 8px;
	vertical-align: 1px;
}

.builderShare .app-sharing-wrapper.lastBtn .app-sharing-icon {
	border-right-width: 1px;
	border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.builderShare .locked {
	cursor: default;
	opacity: 0.5;
	pointer-events: none;
}

.builderShare .app-sharing-icon {
	background: transparent;
	border-width: 1px;
	border-style: solid;
	border-color: #C1CCD2;
	border-radius: 0px;
	border-left-width: 0px;
	border-right-width: 1px;
	color: #396e8b;
	display: inline-block;
	font-size: 2.4rem;
	padding: 1px 6px 1px;
}

.builderShare .app-sharing-icon.active {
    background: #396e8b;
    color: white;
}

.builderShare .tooltip-content {
	font-size: 1.8em;
}

/* the user icon */
.builderShare .glyphicon-user:before {
	font-size: 2rem;
	margin-right: 4px;
}

.builderShare .app-sharing-private {
	font-family: 'open_sansregular', sans-serif;
}

.builderShare .app-sharing-loading {
	position: absolute;
	display: none;
	top: 0px;
	left: 50%;
	width: 33px;
	height: 39px;
	margin-left: -17px;
	background: url(../../../../resources/tpl/viewer/icons/loading-light.gif);
	background-size: 33px 39px;
	background-repeat: no-repeat;
}

.builderShare .app-sharing-container .tooltip-inner {
	text-align: center;
}

/*
 * Preview / view live
 */

.builderShare .preview-container {
	position: absolute;
	margin-top: 5px;
}

/*
 * Sharing action result
 */

.builderShare .sharing-action-result {
	display: inline-block;
	padding: 5px;
	border-radius: 4px;
	margin-top: 4px;
	color: #a94442;
	background-color: #f2dede;
	border-color: #ebccd1;
	font-weight: bold;
}

.builderShare .sharing-action-result.status-ok {
	color: #3c763d;
	background-color: #dff0d8;
	border-color: #d6e9c6;
}

/*
 * Story Status
 */

.builderShare .story-status {
	width: 85%;
	text-align: center;
	font-size: 120%;
	margin-top: 30px;
	margin-left: auto;
	margin-right: auto;
	color: #CC3333;
}

/*
 * Views
 */

.builderShare .views {
	width: 100%;
	height: 300px;
	padding-top: 30px;
}

.builderShare .views .view {
	display: none;
	width: 100%;
}

.builderShare .views .view.active {
	display: block;
}

/*
 * View toggle
 */

.builderShare .view-toggle-container {
	width: 100%;
	text-align: center;
	margin: 40px 0 -10px 0;
}

/*
 * View: private story call to action
 */

.builderShare .private-story-call-to-action {
	text-align: center;
	font-size: 1.8em;
	color: #339933;
	margin-top: 85px;
}

/*
 * View: My Stories
 */

.builderShare .sharing-container {
	width: 100%;
	text-align: center;
	margin: 5px 0 0 0;
}

.builderShare #my-stories-frame {
	width: 100%;
	height: 285px;
	border: none;
}

/*
 * My stories -- checking loading indicator
 */

.builderShare .story-checking-container {
	width: 100%;
	text-align: center;
	font-weight: bold;
	font-size: 130%;
	color: #396e8b;
	margin: 80px 0 110px 0;
}

/*
 * View: socialize
 */

.builderShare .view-share {
	margin-top: 25px;
}

.builderShare .view-share .socialize-title,
.builderShare .view-share .embed-title {
	font-size: 1.3em;
	color: #4B8BC9;
	margin: 15px 0 20px 0;
}

.builderShare .view-share .btn-bitlylink-open {
	display: none !important;
}

.builderShare .view-share .social-container {
	font-size: 2.8em;
	margin-top: 15px;
}

.builderShare .share-url-container {
	display: inline-block;
}

.builderShare .share-url-container .bitlylink {
	font-size: 26px;
	width: 340px;
	height: 46px;
	padding-left: 27px;
}

.builderShare .share-url-container .share-btn {
	height: 44px;
	padding-top: 6px;
}

.builderShare .social-container .shareIcon:nth-child(2) {
	margin-left: 10px;
}

.builderShare .share-embed-container .embedTextarea {
	height: 86px;
}

.builderShare .share-embed-container .embed-explain {
	display: none;
}

.builderShare .my-stories-call {
	margin-top: 25px;
	color: #555;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/*
 * Footer
 */

.builderShare .footer-msg {
	float: left;
}

.builderShare .footer-msg a {
	color: #428bca;
	font-weight: normal;
	vertical-align: -5px;
}

/*
 * Firefox trick
 */

#my-stories-hidden-container.active {
	display: block;
	z-index: 999;
	visibility: visible !important;
	bottom: inherit !important;
}

#my-stories-hidden-container #my-stories-frame {
	border: none;
	width: 100%;
	height: 100%;
}


text:
namespace Chromamboo.Providers.Notification
{
    using System.Threading.Tasks;

    public interface IPullRequestCountProvider
    {
        Task<int> GetAwaitingPullRequestCountAsync();
    }
}


text:
* Renamed to *clap* (**C**ommand **L**ine **A**rgument **P**arser)

* Addressed [Issue #1][]:

  1. In the usage display, options are now sorted so that the POSIX-style
     single-character option names always precede any longer GNU-style
     synonyms.
  2. The `Argot` constructor now supports an `sortOptions` parameter, which
     defaults to `true`. If set to `true`, the options in the usage output
     are sorted lexically. If set to `false`, the options are displayed in
     the order they were specified in the code.

[Issue #1]: https://github.com/bmc/argot/issues#issue/1


text:
from django.forms import ClearableFileInput, CheckboxInput
from django.template.defaultfilters import urlencode
from django.template.loader import render_to_string

class CropImageWidget(ClearableFileInput):
    """ ClearableFileInput with thumbnails and crop. """

    class Media:
        css = {
            "all": ("cropper/widgets.css",),
        }

    def render(self, name, value, attrs=None):

        link = None
        if value and hasattr(value, "url"):
            link = value.url

        checkbox_name = self.clear_checkbox_name(name)
        checkbox_id = self.clear_checkbox_id(checkbox_name)
        context = {
            'initial_text': self.initial_text,
            'input_text': self.input_text,
            'clear_template': '',
            'clear_checkbox_label': self.clear_checkbox_label,
            'required': self.is_required,
            'input': super(ClearableFileInput, self).render(name, value, attrs),
            'value': value,
            'link': link,
            'attrs': attrs,
            'crop_url': self.attrs.get('data-crop-url'),
            'crop_redirect': urlencode(self.attrs.get('post-save-redirect') or ""),
            'clear': CheckboxInput().render(checkbox_name, False, attrs={'id': checkbox_id}),
            'required': self.is_required,
        }

        return render_to_string('cropper/crop_widget.html', context)


text:
@interface PodsDummy_CocoaLumberjack_iOS : NSObject
@end
@implementation PodsDummy_CocoaLumberjack_iOS
@end


text:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
	<solid android:color="@android:color/background_light" />
</shape>


text:
package controllers

// externals
import jp.t2v.lab.play2.auth.{AuthConfig, CookieTokenAccessor}
import play.api.data.validation.{Constraint, Valid}
import play.api.mvc.Results._
import play.api.mvc.{RequestHeader, Result}
import scala.concurrent.{ExecutionContext, Future}
import scala.reflect._

// internals
import models.{Account, Entity}
import models.db.{AccountRole, Tables}
import services.DBService
import utils.db.TetraoPostgresDriver.api._

private[controllers] trait AuthConfigTrait extends AuthConfig {

  /**
    * Reference to the database service to be run
    */
  def database: DBService

  /**
    * A type that is used to identify a user.
    * `String`, `Int`, `Long` and so on.
    */
  type Id = Int

  /**
    * A type that representss a user in your application.
    * `User`, `Account` and so on.
    */
  type User = Entity[Account]

  /**
    * A type that is defined by every action for authorization.
    */
  type Authority = AccountRole.Value

  /**
    * A `ClassTag` is used to retrieve an id from the Cache API.
    * Use something like this:
    */
  val idTag: ClassTag[Id] = classTag[Id]

  /**
    * The session timeout in seconds
    */
  val sessionTimeoutInSeconds: Int = 3600

  /**
    * A function that returns a `User` object from an `Id`.
    * You can alter the procedure to suit your application.
    */
  def resolveUser(id: Id)(implicit ctx: ExecutionContext): Future[Option[User]] = {
    database
      .runAsync(Tables.Account.filter(_.id === id).take(1).result.headOption)
      .map(_.map(models.Account(_)))
  }

  /**
    * Where to redirect the user after a successful login.
    */
  def loginSucceeded(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result] = {
    Future.successful(Redirect(routes.PoloniexController.markets()))
  }

  /**
    * Where to redirect the user after logging out
    */
  def logoutSucceeded(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result] = {
    Future.successful(Redirect(routes.Application.index()))
  }

  /**
    * If the user is not logged in and tries to access a protected resource then redirect them as follows:
    */
  def authenticationFailed(request: RequestHeader)(implicit ctx: ExecutionContext): Future[Result] =
    Future.successful(Redirect(routes.Authentication.login()))

  /**
    * If authorization failed (usually incorrect password) redirect the user as follows:
    */
  override def authorizationFailed(request: RequestHeader, user: User, authority: Option[Authority])(implicit context: ExecutionContext): Future[Result] = {
    Future.successful(Redirect(routes.Authentication.login()))
  }

  /**
    * A function that determines what `Authority` a user has.
    * You should alter this procedure to suit your application.
    */
  def authorize(user: User, authority: Authority)(implicit ctx: ExecutionContext): Future[Boolean] = Future.successful {
    (user.data.role, authority) match {
      case (AccountRole.admin, _) => true
      case (AccountRole.normal, AccountRole.normal) => true
      case _ => false
    }
  }

  /**
    * (Optional)
    * You can custom SessionID Token handler.
    * Default implementation use Cookie.
    */
  override lazy val tokenAccessor = new CookieTokenAccessor(
    cookieSecureOption = false,
    cookieMaxAge = None
  )
}


text:
import unittest, jmespath, unicodedata
from eventregistry import *

class DataValidator(unittest.TestCase):
    def removeAccents(self, inputStr):
        nfkdForm = unicodedata.normalize('NFKD', inputStr)
        return "".join([c for c in nfkdForm if not unicodedata.combining(c)])

    def __init__(self, *args, **kwargs):
        super(DataValidator, self).__init__(*args, **kwargs)

        # load settings from the current folder. use different instance than for regular ER requests
        currPath = os.path.split(os.path.realpath(__file__))[0]
        settPath = os.path.join(currPath, "settings.json")
        self.er = EventRegistry(verboseOutput = True, settingsFName = settPath, allowUseOfArchive = False, minDelayBetweenRequests=0)

        self.articleInfo = ArticleInfoFlags(bodyLen = -1, concepts = True, storyUri = True, originalArticle = True, categories = True,
                links = True, videos = True, image = True, location = True, extractedDates = True, socialScore = True, sentiment = True, includeArticleDuplicateList = True)
        self.sourceInfo = SourceInfoFlags(title = True, description = True, location = True, ranking = True, image = True, socialMedia = True)
        self.conceptInfo = ConceptInfoFlags(type=["entities"], lang = ["eng", "spa"], synonyms = True, image = True, description = True,
                includeConceptConceptClassMembership = True, maxConceptsPerType = 50)
        self.locationInfo = LocationInfoFlags(wikiUri = True, label = True, geoNamesId = True, geoLocation = True, population = True,
                countryArea = True, countryDetails = True, countryContinent = True,
                placeFeatureCode = True, placeCountry = True)
        self.categoryInfo = CategoryInfoFlags(includeCategoryParentUri = True, includeCategoryChildrenUris = True)
        self.eventInfo = EventInfoFlags(commonDates = True, stories = True, socialScore = True, imageCount = 2)
        self.storyInfo = StoryInfoFlags(categories = True, date = True, concepts = True, title = True, summary = True,
                                        medoidArticle = True, commonDates = True, socialScore = True, imageCount = 2)
        self.returnInfo = ReturnInfo(articleInfo = self.articleInfo, conceptInfo = self.conceptInfo, eventInfo = self.eventInfo, storyInfo = self.storyInfo,
            sourceInfo = self.sourceInfo, locationInfo = self.locationInfo, categoryInfo = self.categoryInfo)

    def ensureValidConcept(self, concept, testName):
        for prop in [ "uri", "label", "synonyms", "image"]:
            self.assertTrue(prop in concept, "Property '%s' was expected in concept for test %s" % (prop, testName))
        self.assertTrue(concept.get("type") in ["person", "loc", "org"], "Expected concept to be an entity type, but got %s" % (concept.get("type")))
        if concept.get("location"):
            self.ensureValidLocation(concept.get("location"), testName)

    def ensureValidArticle(self, article, testName):
        for prop in ["url", "uri", "title", "body", "source", "time", "date", "lang", "image", "links", "videos", "categories", "location", "duplicateList", "originalArticle", "extractedDates", "concepts", "shares", "sentiment"]:
            self.assertTrue(prop in article, "Property '%s' was expected in article for test %s" % (prop, testName))
        for concept in article.get("concepts"):
            self.ensureValidConcept(concept, testName)
        self.assertTrue(article.get("isDuplicate") or "eventUri" in article, "Nonduplicates should have event uris")

    def ensureValidSource(self, source, testName):
        for prop in ["uri", "title", "description", "image", "thumbImage", "favicon", "location", "ranking", "socialMedia"]:
            self.assertTrue(prop in source, "Property '%s' was expected in source for test %s" % (prop, testName))

    def ensureValidCategory(self, category, testName):
        for prop in ["uri", "parentUri"]:
            self.assertTrue(prop in category, "Property '%s' was expected in source for test %s" % (prop, testName))

    def ensureValidLocation(self, location, testName):
        for prop in ["wikiUri", "label", "lat", "long", "geoNamesId", "population"]:
            self.assertTrue(prop in location, "Property '%s' was expected in a location for test %s" % (prop, testName))
        if location.get("type") == "country":
            for prop in ["area", "code2", "code3", "webExt", "continent"]:
                self.assertTrue(prop in location, "Property '%s' was expected in a location for test %s" % (prop, testName))
        if location.get("type") == "place":
            for prop in ["featureCode", "country"]:
                self.assertTrue(prop in location, "Property '%s' was expected in a location for test %s" % (prop, testName))

    def ensureValidEvent(self, event, testName):
        for prop in ["uri", "title", "summary", "articleCounts", "concepts", "categories", "location", "eventDate", "commonDates", "stories", "socialScore", "images"]:
            self.assertTrue(prop in event, "Property '%s' was expected in event for test %s" % (prop, testName))
        for concept in event.get("concepts"):
            self.ensureValidConcept(concept, testName)
        for story in event.get("stories"):
            self.ensureValidStory(story, testName)
        for category in event.get("categories"):
            self.ensureValidCategory(category, testName)
        if event.get("location"):
            self.ensureValidLocation(event.get("location"), testName)

    def ensureValidStory(self, story, testName):
        for prop in ["uri", "title", "summary", "concepts", "categories", "location",
                     "storyDate", "averageDate", "commonDates", "socialScore", "images"]:
            self.assertTrue(prop in story, "Property '%s' was expected in story for test %s" % (prop, testName))
        if story.get("location"):
            self.ensureValidLocation(story.get("location"), testName)

    def ensureArticleBodyContainsText(self, article, text):
        self.assertTrue("body" in article, "Article did not contain body")
        if re.search("(^|\s|\W)" + text + "($|'|\s|\W)", article["body"], re.IGNORECASE) == None:
            self.fail("Article body did not contain text '%s'" % (text))

    def ensureArticleBodyDoesNotContainText(self, article, text):
        if "body" in article:
            if re.search("(^|\s|\W)" + text + "($|'|\s|\W)", article["body"], re.IGNORECASE) != None:
                self.fail("Article body contained text '%s' and it shouldn't" % (text))

    def ensureArticleHasConcept(self, article, conceptUri):
        self.assertTrue("concepts" in article, "Article did not contain concept array")
        for concept in article["concepts"]:
            if conceptUri == concept["uri"]:
                return
        self.fail("Article concepts did not contain concept '%s'" % (conceptUri))

    def ensureArticleHasNotConcept(self, article, conceptUri):
        if "concepts" in article:
            for concept in article["concepts"]:
                if conceptUri == concept["uri"]:
                    self.fail("Article concepts contained concept '%s'" % (conceptUri))

    def ensureArticleHasCategory(self, article, categoryUri):
        """
        ensure that the article has the given category or ANY child category
        """
        self.assertTrue("categories" in article, "Article did not contain category array")
        for category in article["categories"]:
            if category["uri"].find(categoryUri) == 0:
                return
        self.fail("Article categories did not contain category '%s'" % (categoryUri))

    def ensureArticleHasNotCategory(self, article, categoryUri):
        """
        ensure that the article does not have the given category or ANY child category
        """
        for category in article["categories"]:
            if category["uri"].find(categoryUri) != -1:
                self.fail("Article categories contained an incorrect category '%s'" % (categoryUri))

    def ensureArticleSource(self, article, sourceUri):
        self.assertTrue(article.get("source").get("uri") == sourceUri, "Article source is not '%s'" % sourceUri)

    def ensureArticleNotFromSource(self, article, sourceUri):
        self.assertFalse(article.get("source").get("uri") == sourceUri, "Article source is not '%s'" % sourceUri)

    def ensureArticlesContainText(self, articles, keyword):
        """assure that at least one article contains the given keyword"""
        hasKw = [True for art in articles if
            re.search("(^|\s|\W)" + keyword + "($|'|\s|\W)", art["body"], re.IGNORECASE) != None]
        if len(hasKw) == 0:
            self.fail("None of the articles contained given keyword '%s'" % keyword)

    def ensureArticlesDoNotContainText(self, articles, keyword):
        """assure that at least one article contains the given keyword"""
        for article in articles:
            self.ensureArticleBodyDoesNotContainText(article, keyword)

    def ensureArticlesNotFromSource(self, articles, sourceUri):
        """assure that none of the articles are from the given source"""
        for article in articles:
            self.ensureArticleNotFromSource(article, sourceUri)

    def ensureEventHasConcept(self, event, conceptUri):
        self.assertTrue("concepts" in event, "Event did not contain concept array")
        for concept in event["concepts"]:
            if conceptUri == concept["uri"]:
                return
        self.fail("Event concepts did not contain concept '%s'" % (conceptUri))

    def ensureEventHasNotConcept(self, event, conceptUri):
        if "concepts" in event:
            for concept in event["concepts"]:
                if conceptUri == concept["uri"]:
                    self.fail("Event concepts contained concept '%s'" % (conceptUri))

    def ensureEventHasCategory(self, event, categoryUri):
        """
        ensure that the event has the given category or ANY child category
        """
        self.assertTrue("categories" in event, "Event did not contain category array")
        for category in event["categories"]:
            if category["uri"].find(categoryUri) == 0:
                return
        self.fail("Event categories did not contain category '%s'" % (categoryUri))

    def ensureEventHasNotCategory(self, event, categoryUri):
        """
        ensure that the event does not have the given category or ANY child category
        """
        for category in event["categories"]:
            if category["uri"].find(categoryUri) != -1:
                self.fail("Event categories contained an incorrect category '%s'" % (categoryUri))

    def ensureSameResults(self, res1, res2, queryStr):
        arr1 = jmespath.compile(queryStr).search(res1)
        arr2 = jmespath.compile(queryStr).search(res2)
        if not isinstance(arr1, list) or not isinstance(arr2, list):
            return
        if arr1 != [] and arr2 != []:
            if arr1[0] != arr2[0]:
                self.fail("Found different results for query %s" % (queryStr))
        elif len(arr1) != len(arr2):
            self.fail("Found different number of results for query %s" % (queryStr))


text:
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics.Contracts;

namespace Microsoft.Research.CodeAnalysis
{
  [ContractVerification(true)]
  public class SimplePreconditionDispatcher<Local, Parameter, Method, Field, Property, Event, Type, Attribute, Assembly, Expression, Variable, LogOptions>
    : IPreconditionDispatcher
    where LogOptions : IFrameworkLogOptions
    where Variable : IEquatable<Variable>
    where Expression : IEquatable<Expression>
    where Type : IEquatable<Type>
  {
    #region Invariant

    [ContractInvariantMethod]
    private void ObjectInvariant()
    {
      Contract.Invariant(this.mdriver != null);
      Contract.Invariant(this.output != null);
      Contract.Invariant(this.preconditions != null);
    }

    #endregion

    #region State

    private const string ContractPreconditionTemplate = "Contract.Requires({0});";

    readonly private IMethodDriver<Local, Parameter, Method, Field, Property, Event, Type, Attribute, Assembly, Expression, Variable, LogOptions> mdriver;
    readonly private IOutputResults output;
    readonly private InferredPreconditionDB preconditions;

    #endregion

    #region Constructor

    public SimplePreconditionDispatcher(
      IMethodDriver<Local, Parameter, Method, Field, Property, Event, Type, Attribute, Assembly, Expression, Variable, LogOptions> mdriver,
      IOutputResults output)
    {
      Contract.Requires(mdriver != null);

      this.mdriver = mdriver;
      this.output = output;
      this.preconditions = new InferredPreconditionDB();
    }

    #endregion

    #region IPreconditionDispatcher Members

    public ProofOutcome AddPrecondition(APC pc, BoxedExpression precondition)
    {
      ProofOutcome outcome;

      // 1. Have we already seen this precondition?
      if (this.preconditions.TryLookUp(precondition, out outcome))
      {
        return outcome;
      }
      else
      {
        outcome = ProofOutcome.Top;
      }

      // 2. Simplify the expression
      precondition = SimplifyAndFix(pc, precondition);

      // 3. See if it is valid
      if (precondition != null && this.mdriver.CanAddRequires())
      {
        if (mdriver.IsExistingPrecondition(precondition.ToString())
          ||
          output.LogOptions.PropagateInferredRequires(mdriver.MetaDataDecoder.IsPropertyGetterOrSetter(mdriver.CurrentMethod)))
        {
          outcome = ProofOutcome.True;
        }

        this.preconditions.Add(precondition, outcome);
      }

      return outcome;
    }

    public List<BoxedExpression> GeneratePreconditions()
    {
      return preconditions.ComputeMinimal();
    }

    public void SuggestPreconditions()
    {
      var pc = this.GetPCForMethodEntry();

      foreach(var precondition in this.GeneratePreconditions())
      {
        output.Suggestion("requires", pc, MakePreconditionString(precondition.ToString()));
      }
    }

    public void PropagatePreconditions()
    {
      var pc = this.GetPCForMethodEntry();

      foreach (var precondition in this.GeneratePreconditions())
      {
        this.mdriver.AddPreCondition(precondition, precondition.ToString(), pc);
      }
    }

    #endregion

    #region Private

    private BoxedExpression SimplifyAndFix(APC pc, BoxedExpression precondition)
    {
      Contract.Requires(precondition != null);

      var decompiler = new AnalysisWrapper.TypeBindings<Local, Parameter, Method, Field, Property, Event, Type, Attribute, Assembly, Expression, Variable>.BooleanExpressionsDecompiler<LogOptions>(mdriver);

      BoxedExpression result;
      if (decompiler.FixIt(pc, precondition, out result))
      {
        return result;
      }
      else
      {
        return null; // doesn't type check and is not fixable, ignore
      }
    }

    private APC GetPCForMethodEntry()
    {
      var entry = this.mdriver.Context.MethodContext.CFG.EntryAfterRequires;
      for (int count = 0; count < 10; count++)
      {
        if (entry.PrimaryMethodLocation().HasRealSourceContext) return entry.PrimaryMethodLocation();
        entry = this.mdriver.Context.MethodContext.CFG.Post(entry);
      }
      return this.mdriver.Context.MethodContext.CFG.Entry;
    }

    private static string MakePreconditionString(string condition)
    {
      return string.Format(ContractPreconditionTemplate, condition);
    }

    #endregion

    #region State for the inferred preconditions

    class InferredPreconditionDB
    {
      #region Invariant

      [ContractInvariantMethod]
      private void ObjectInvariant()
      {
        Contract.Invariant(this.inferred != null);
      }

      #endregion

      #region State

      // we keep the string for optimization
      readonly List<Tuple<BoxedExpression, string, ProofOutcome>> inferred;
      List<BoxedExpression> preconditions;

      #endregion

      #region Constructor

      public InferredPreconditionDB()
      {
        this.inferred = new List<Tuple<BoxedExpression, string, ProofOutcome>>();
      }

      #endregion

      #region Instance methods

      public bool TryLookUp(BoxedExpression exp, out ProofOutcome outcome)
      {
        Contract.Requires(exp != null);

        var expStr = exp.ToString();
        foreach (var triple in this.inferred)
        {
          if (triple.Item2 == expStr)
          {
            outcome = triple.Item3;
            return true;
          }
        }
        outcome = ProofOutcome.Top;

        return false;
      }

      public void Add(BoxedExpression exp, ProofOutcome outcome)
      {
        this.inferred.Add(new Tuple<BoxedExpression, string, ProofOutcome>(exp, exp.ToString(), outcome));
      }

      public List<BoxedExpression> ComputeMinimal()
      {
        Contract.Ensures(Contract.Result<List<BoxedExpression>>() != null);

        if (this.preconditions != null)
          return preconditions;

        var buckets = new Dictionary<Tuple<BinaryOperator, BoxedExpression>, List<Tuple<BoxedExpression, BoxedExpression>>>();
        var result = new List<BoxedExpression>(this.inferred.Count);

        // First we group expressions by upper bounds.
        // If not lower bound is found, we just continue
        foreach (var triple in this.inferred)
        {
          BoxedExpression e1, e2;
          if (triple.Item1.IsCheckExp1LEQExp2(out e1, out e2))
          {
            Add(buckets,
              new Tuple<BinaryOperator, BoxedExpression>(BinaryOperator.Cle, e2),
              e1, triple.Item1);
          }
          else if (triple.Item1.IsCheckExp1LTExp2(out e1, out e2))
          {
            Add(buckets,
              new Tuple<BinaryOperator, BoxedExpression>(BinaryOperator.Cle, e2),
              e1, triple.Item1);
          }
          else
          {
            result.Add(triple.Item1);
          }
        }

        // Now we filter redundant expressions, according to their upper bound
        foreach (var pair in buckets)
        {
          Contract.Assume(pair.Value != null);
          Contract.Assume(pair.Value.Count  > 0);

          if (pair.Value.Count == 1)
          {
            // no doubt, just emit it
            result.Add(pair.Value[0].Item2);
          }
          else
          {
            // the same variable is an upper bound for two or more expressions. Let's try to filter them
            int minIndex;
            if (TryGetSubsumingExpression(pair.Value, out minIndex))
            {
              result.Add(pair.Value[minIndex].Item2);
            }
            else
            {
              foreach (var innerPair in pair.Value)
              {
                result.Add(innerPair.Item2);
              }
            }
          }
        }

        return (this.preconditions = result);
      }

      #endregion

      #region Privates

      private void Add(
        Dictionary<Tuple<BinaryOperator, BoxedExpression>, List<Tuple<BoxedExpression, BoxedExpression>>> where,
        Tuple<BinaryOperator, BoxedExpression> key, BoxedExpression value, BoxedExpression precondition)
      {
        Contract.Requires(where != null);
        Contract.Requires(key != null);
        Contract.Requires(value != null);
        Contract.Requires(precondition != null);

        List<Tuple<BoxedExpression, BoxedExpression>> values;
        var pair = new Tuple<BoxedExpression, BoxedExpression>(value, precondition);
        if (where.TryGetValue(key, out values))
        {
          // use aliasing here to save one lookup
          values.Add(pair);
        }
        else
        {
          values = new List<Tuple<BoxedExpression, BoxedExpression>>() { pair };
          where[key] = values;
        }
      }

      private bool TryGetSubsumingExpression(List<Tuple<BoxedExpression, BoxedExpression>> list, out int minIndex)
      {
        Contract.Requires(list != null);
        Contract.Requires(list.Count > 1);
        Contract.Ensures(!Contract.Result<bool>() || Contract.ValueAtReturn(out minIndex) >= 0);
        Contract.Ensures(!Contract.Result<bool>() || Contract.ValueAtReturn(out minIndex) < list.Count);

        var max = list[0].Item1;
        minIndex = 0;
        for (var i = 1; i < list.Count; i++)
        {
          var curr = list[i].Item1;
          Contract.Assume(curr != null);
          var compare = SyntacticComparison(curr, max);

          switch (compare)
          {
            case SyntacticComparisonOutcome.LessEqual:
            case SyntacticComparisonOutcome.Equal:
              {
                continue;
              }

            case SyntacticComparisonOutcome.GreaterEqual:
              {
                max = curr;
                minIndex = i;

                continue;
              }

            case SyntacticComparisonOutcome.Top:
              {
                minIndex = -1;
                return false;
              }
          }
        }

        return true;
      }

      private SyntacticComparisonOutcome SyntacticComparison(BoxedExpression left, BoxedExpression right)
      {
        Contract.Requires(left != null);
        Contract.Requires(right != null);

        if (left.Equals(right))
        {
          return SyntacticComparisonOutcome.Equal;
        }

        int leftK, rightK;
        if (left.IsConstantInt(out leftK) && right.IsConstantInt(out rightK))
        {
          if (leftK == rightK)
            return SyntacticComparisonOutcome.Equal;
          if (leftK < rightK)
            return SyntacticComparisonOutcome.LessEqual;
          if (leftK > rightK)
            return SyntacticComparisonOutcome.GreaterEqual;
        }

        BinaryOperator bopLeft, bopRight;
        BoxedExpression bLeftLeft, bLeftRight, bRightLeft, bRightRight;

        var isLeftBin = left.IsBinaryExpression(out bopLeft, out bLeftLeft, out bLeftRight);
        var isRightBin = right.IsBinaryExpression(out bopRight, out bRightLeft, out bRightRight);

        // case "a + b" compared with "a' + b'"
        if (isLeftBin && isRightBin && bopLeft == bopRight)
        {
          switch (bopLeft)
          {
            case BinaryOperator.Add:
              {
                var compareLeft = SyntacticComparison(bLeftLeft, bRightLeft);
                var compareRight = SyntacticComparison(bLeftRight, bRightRight);

                return Join(compareLeft, compareRight);
              }

            // TODO: other cases?
          }
          return SyntacticComparisonOutcome.Top;
        }

        // case "a + b" compared with "a"
        if (isLeftBin && bLeftLeft.Equals(right))
        {
          switch (bopLeft)
          {
            case BinaryOperator.Add:
              {
                if (bLeftRight.IsConstantInt(out leftK))
                {
                  if (leftK == 0)
                    return SyntacticComparisonOutcome.Equal;
                  if (leftK > 0)
                    return SyntacticComparisonOutcome.GreaterEqual;
                  if (leftK < 0)
                    return SyntacticComparisonOutcome.LessEqual;
                }
                break;
              }
          }
          return SyntacticComparisonOutcome.Top;
        }

        // case "a" compared with "a+b"
        if (isRightBin && bRightLeft.Equals(left))
        {
          switch (bopRight)
          {
            case BinaryOperator.Add:
              {
                if (bRightRight.IsConstantInt(out rightK))
                {
                  if (rightK == 0)
                    return SyntacticComparisonOutcome.Equal;
                  if (rightK > 0)
                    return SyntacticComparisonOutcome.GreaterEqual;
                  if (rightK < 0)
                    return SyntacticComparisonOutcome.LessEqual;
                }
                break;
              }
          }
          return SyntacticComparisonOutcome.Top;
        }

        return SyntacticComparisonOutcome.Top;
      }

      private SyntacticComparisonOutcome Join(SyntacticComparisonOutcome compareLeft, SyntacticComparisonOutcome compareRight)
      {
        if (compareLeft == compareRight)
        {
          return compareLeft;
        }
        if (compareLeft == SyntacticComparisonOutcome.Equal)
        {
          return compareRight;
        }
        if (compareRight == SyntacticComparisonOutcome.Equal)
        {
          return compareLeft;
        }

        return SyntacticComparisonOutcome.Top;
      }

      enum SyntacticComparisonOutcome { Top, LessEqual, Equal, GreaterEqual }

      #endregion
    }

    #endregion

  }
}


text:
export class ContactInfo {
	id:number;
	name:string;
}


text:
less-plugin-cardinal
========================

Imports the Less code for [Cardinal](http://cardinalcss.com/) before your custom Less code.

## lessc usage

Install..

Requires Less v2.4.0

```
npm install -g less-plugin-cardinal
```

and then on the command line,

```
lessc file.less --cardinal
```

## Programmatic usage

```
var LessPlugincardinal = require('less-plugin-cardinal'),
    cardinalPlugin = new LessPlugincardinal();
less.render(lessString, { plugins: [cardinalPlugin] })
  .then(
```

## Browser usage

Browser usage is not supported at this time.


text:
package com.moonlightpixels.jrpg.internal.plugin;

public interface Plugin {
    void init(PluginHandlerRegistry handlerRegistry);
}


text:
local img = canvas:new('runner.png')
local dx, dy = img:attrSize()
local runner = { img=img, frame=0, x=50-dx/2, y=10, dx=dx, dy=dy }

-- Funcao de redesenho:
-- chamada a cada ciclo de animacao
local dx, dy = canvas:attrSize()
local INI, END = 50, dx-58
function redraw ()
	-- fundo
	--canvas:attrColor('black')
	--canvas:drawRect('fill', 0,0, dx,dy)

	-- linha de largada e chegada
	canvas:attrColor('white')
	canvas:drawRect('fill', INI,0, 8,dy)
	canvas:drawRect('fill', END,0, 8,dy)

	-- corredor
	local dx2 = runner.dx/2
    runner.img:attrCrop(runner.frame*dx2,0, dx2,runner.dy)
	canvas:compose(runner.x, runner.y, runner.img)
	canvas:flush()
end

-- Funcao de tratamento de eventos:
function handler (evt)
	-- a animacao comeca no *start* e eh realimentada por eventos da classe *user*
	if (evt.class == 'ncl' and evt.type == 'presentation' and evt.action == 'start') or
	   (evt.class == 'user') then
		local now = event.uptime()

		-- movimenta o corredor caso tempo ja tenha passado
		if evt.time then
			local dt = now - evt.time
			runner.x = runner.x + dt/50
		end

		-- caso nao tenha chegado a linha de chegada, continua dando ciclos a animacao
		if runner.x < END then
			event.post('in', { class='user', time=now })
		end

		-- muda o frame do corredor a cada 5 pixels
		runner.frame = math.floor(runner.x/5) % 2

		redraw()
	end
end

event.register(handler)


text:
@class MLNeuron;

@interface MLNeuronLayer : MLLayer

#pragma mark -
#pragma mark Initialization

- (nonnull instancetype) initWithIndex:(NSUInteger)index
                                  size:(NSUInteger)size
                                       NS_UNAVAILABLE;

- (nonnull instancetype) initWithIndex:(NSUInteger)index
                                  size:(NSUInteger)size
                               useBias:(BOOL)useBias
                activationFunctionType:(MLActivationFunctionType)funcType
                                       NS_DESIGNATED_INITIALIZER;

#pragma mark -
#pragma mark Randomization

- (void) randomizeWeights;

#pragma mark -
#pragma mark Operations

- (void) feedForward;

- (void) fetchErrorFromNextLayer;

- (void) backPropagateWithAlgorithm:(MLBackPropagationType)backPropType
                       learningRate:(MLReal)learningRate
                       costFunction:(MLCostFunctionType)costType;

- (void) updateWeights;

#pragma mark -
#pragma mark Properties

@property (nonatomic, readonly) MLActivationFunctionType funcType;

@property (nonatomic, readonly, nonnull) MLReal *errorBuffer;
@property (nonatomic, readonly, nonnull) MLReal *deltaBuffer;

@property (nonatomic, readonly, nonnull) MLReal *outputBuffer;

@property (nonatomic, readonly) BOOL usingBias;
@property (nonatomic, readonly, nonnull) NSArray<MLNeuron *> *neurons;

@end


text:
package com.bstek.bdf3.profile.provider;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.bstek.dorado.core.el.Expression;
import com.bstek.dorado.core.el.ExpressionHandler;

/**
 * @author Kevin Yang (mailto:kevin.yang@bstek.com)
 * @since 2017年7月18日
 */
@Component
public class ProfileKeyProviderImpl implements ProfileKeyProvider {

	@Autowired
	@Qualifier("dorado.expressionHandler")
	private ExpressionHandler expressionHandler;

	@Value("${bdf3.profile.profileKeyEl}")
	private String profileKeyEl;

	@Override
	public String getProfileKey() {
		Expression expression = expressionHandler.compile("${" + profileKeyEl + "}");
		if (expression == null) {
			return profileKeyEl;
		}
        return (String) expression.evaluate();
	}

}


text:
require 'rubygems'
require 'f'
require 'erb'

# Generates new files for a new view.
#
# See YMDP::Generator::Base for more.
#
module YMDP
  module Generator
    # Pieces of code which will be added to existing files by the Modifications class.
    #
    module Snippets
      # Creates a method which will launch the new view from within any other view.
      #
      def launcher_method(view)
        view = view.downcase
        class_name = view.capitalize
<<-OUTPUT

Launcher.launch#{class_name} = function() {
  Launcher.launchTab("#{view}", "#{class_name}");
};
OUTPUT
      end
    end

    module Templates
      # Basic processing of templates (ERB by default).
      #
      class Base
        attr_accessor :view, :template_path, :application_path

        # View name should be a single word that's valid as a filename.
        #
        def initialize(view, params={})
          @view = view
          @template_path = params[:template_path]
          @application_path = params[:application_path]

          raise ArgumentError.new("template_path is required") unless @template_path
          raise ArgumentError.new("application_path is required") unless @application_path
        end

        # Write the template to its destination_path after it has been processed.
        #
        def generate
          write_processed_template
        end

        # PROCESSING

        # Process this template. By default templates are processed with ERB.
        #
        # Override this in a child to change this behavior.
        #
        # _content_ should be a string, which contains the unprocessed source code
        # of the file.
        #
        def process_template(content)
          ERB.new(content, 0, "%<>").result(binding)
        end

        # Return the content of this file after it has been processed.
        #
        # Read the unprocessed content from the source_path and pass it to
        # process_template and return the result.
        #
        def processed_template
          unprocessed_content = ""
          File.open(source_path) do |f|
            unprocessed_content = f.read
          end
          process_template(unprocessed_content)
        end

        # FILE I/O

        # Write the result of processed_template to the destination path.
        #
        def write_processed_template
          if confirm_overwrite(destination_path)
            append_to_file(destination_path, processed_template)
          end
        end

        # Append the content to a file and log that it's happening.
        #
        def append_to_file(file, content)
          File.open(file, "a") do |f|
            $stdout.puts "  #{display_path(file)} writing . . ."
            f.puts content
          end
        end

        # PATH HELPERS

        # Generate the destination path for this file from its destination directory
        # and its filename.
        #
        def destination_path
          "#{destination_dir}/#{destination_filename}"
        end

        # Generate the source path from the template directory and the source filename.
        #
        def source_path
          "#{template_path}/#{source_filename}"
        end

        # The source filename for the blank template file.
        #
        def source_filename
          raise "Define in child"
        end

        # The destination filename based on the view name of this object.
        #
        def destination_filename
          raise "Define in child"
        end

        # The destination directory based on the application_path and type of this object.
        #
        def destination_dir
          raise "Define in child"
        end

        # friendlier display of paths
        def display_path(path)
          path = File.expand_path(path)
          path.gsub(BASE_PATH, "")
        end

        def confirm_overwrite(path)
          if File.exists?(path)
            $stdout.puts "File exists: #{File.expand_path(path)}"
            $stdout.print "  overwrite? (y/n)"
            answer = $stdin.gets

            answer =~ /^y/i
          else
            true
          end
        end
      end

      # A View is an HTML file, located at "#{BASE_PATH}/app/views/_view_.html.haml".
      #
      # The source template for new view files is located at "generator/templates/view.html.haml".
      #
      # ERB is also supported, but is not recommended.
      #
      class View < Base
        def source_filename
          "view.html.haml"
        end

        def destination_filename
          "#{view}.html.haml"
        end

        def destination_dir
          "#{application_path}/views"
        end
      end

      # JavaScripts are located at "#{BASE_PATH}/app/javascripts/_view_.js".
      #
      # The source templates are found at "generator/templates/javascript.js"
      #
      class JavaScript < Base
        def source_filename
          "javascript.js"
        end

        def destination_filename
          "#{view}.js"
        end

        def destination_dir
          "#{application_path}/javascripts"
        end
      end

      # Stylesheets are located at "#{BASE_PATH}/app/stylesheets/_view_.css".
      #
      # The source templates are found at "generator/templates/stylesheet.css"
      #
      class Stylesheet < Base
        def source_filename
          "stylesheet.css"
        end

        def destination_filename
          "#{view}.css"
        end

        def destination_dir
          "#{application_path}/stylesheets"
        end
      end

      # Translations are located at "#{BASE_PATH}/app/assets/yrb/en-US/new_view_en-US.pres".
      #
      # The source templates are found at "generator/templates/translation.pres"
      #
      class Translation < Base
        def source_filename
          "translation.pres"
        end

        def destination_filename
          "new_#{view}_en-US.pres"
        end

        def destination_dir
          "#{application_path}/assets/yrb/en-US"
        end
      end

      # Modifications cover anything that needs to be done to existing files when a
      # new view is added.
      #
      class Modifications < Base
        include Snippets

        def generate
          content = launcher_method(view)
          append_to_file(destination_path, content)
        end

        def destination_filename
          "launcher.js"
        end

        def destination_dir
          "#{application_path}/javascripts"
        end
      end
    end
  end
end


text:
package main

import(
	"time"
	"fmt"
	"math/rand"
)

// function uses time as a seed to generate a random number
func randGen(min, max int) int{
	rand.Seed(time.Now().UTC().UnixNano())
	return min + rand.Intn(max-min)
}

func main(){
	randNo:= randGen(1,30)
	var guess int
	var lastGuess int
	var counter int

	fmt.Print("Enter a number between 1 and 30: ")

	// use counter as loop control
	for counter = 1; counter < 30; counter++{
		// prompt and read user input
		fmt.Scanf("%d", &guess)
		fmt.Scanf("%d")

		// if to check if guess is the same as the last
		if guess == lastGuess {
			fmt.Print("You just guessed that! Try again: ")
			counter--
		} else {
			// if the guess is a new one, then check the guess against the answer
			if guess == randNo {
				fmt.Print("Correctamundo! And it only took you ", counter, " guesses!\n")
				break
			} else if guess < randNo {
				fmt.Print("Wrong! Try a higher number: ")
			} else if guess > randNo {
				fmt.Print("Wrong! Try a lower number: ")
			}
		}// else if
		lastGuess = guess
	}// for

	if counter == 29 {
		// Let's you know you lose if you manage to enter everything but the answer
		fmt.Print("\nToo took to long! You lose!")
	}

}// main


text:
#import <iWorkImport/TSKCommand.h>

@class TSKCommand<TSDPropagatableCommand>;

// Not exported
@interface TSAPropagatePresetChangeCommand : TSKCommand
{
    TSKCommand<TSDPropagatableCommand> *mPresetChangeCommand;
    _Bool mAlwaysPreserveAppearance;
}

- (void)saveToArchive:(struct PropagatePresetCommandArchive *)arg1 archiver:(id)arg2;
- (void)saveToArchiver:(id)arg1;
- (void)loadFromArchive:(const struct PropagatePresetCommandArchive *)arg1 unarchiver:(id)arg2;
- (id)initFromUnarchiver:(id)arg1;
- (void)redo;
- (void)undo;
- (void)commit;
- (id)makeChangePropagationVisitor;
- (Class)changePropagationVisitorClass;
- (_Bool)process;
- (void)dealloc;
- (id)initWithPresetChangeCommand:(id)arg1 alwaysPreserveAppearance:(_Bool)arg2;

@end


text:
// BookStoreApiService.SwaggerHelpers.scripts.swagger-basic-auth.js

//swaggerUi.api.clientAuthorizations.add("basic", new SwaggerClient.ApiKeyAuthorization("Authorization", "Basic U3dhZ2dlcjpUZXN0", "header"));

swaggerUi.api.clientAuthorizations.add("custom1", new SwaggerClient.ApiKeyAuthorization("X-Org", "SwaggerTest", "header"));
swaggerUi.api.clientAuthorizations.add("custom2", new SwaggerClient.ApiKeyAuthorization("X-Version", "1", "header"));
swaggerUi.api.clientAuthorizations.add("custom3", new SwaggerClient.ApiKeyAuthorization("X-UserId", "Test", "header"));


text:
MyGameEngine
============

A project which aims to improve myself in many game programming areas


text: CREATE SYNONYM [SqlNet].[IsNumber] FOR [SqlNet].[CharIsNumber];


text:
DAYS_IN_YEAR = 365.242 #this is a constant

def hours_in_year
  return DAYS_IN_YEAR * 24
end

def minutes_in_decade
  return 10 * DAYS_IN_YEAR * 24 * 60
end

p hours_in_year
p minutes_in_decade