text:
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<parent>
		<groupId>uk.co.datumedge</groupId>
		<artifactId>datumedge-base</artifactId>
		<version>0.3-SNAPSHOT</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>redis-launcher</artifactId>
	<version>0.4-SNAPSHOT</version>
	<packaging>jar</packaging>

	<prerequisites>
		<maven>2.2.1</maven>
	</prerequisites>

	<properties>
		<commons-exec.version>1.1</commons-exec.version>
		<commons-io.version>1.3.2</commons-io.version>
		<junit.version>4.11</junit.version>
		<hamcrest.version>1.3</hamcrest.version>
		<jmock.version>2.5.1</jmock.version>
		<jedis.version>2.1.0</jedis.version>
		<guava.version>13.0.1</guava.version>

		<maven-release-plugin.version>2.3.2</maven-release-plugin.version>
		<maven-eclipse-plugin.version>2.9</maven-eclipse-plugin.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-exec</artifactId>
			<version>${commons-exec.version}</version>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-core</artifactId>
			<version>${hamcrest.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-library</artifactId>
			<version>${hamcrest.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.jmock</groupId>
			<artifactId>jmock-junit4</artifactId>
			<version>${jmock.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.jmock</groupId>
			<artifactId>jmock-legacy</artifactId>
			<version>${jmock.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>redis.clients</groupId>
			<artifactId>jedis</artifactId>
			<version>${jedis.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-io</artifactId>
			<version>${commons-io.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>${guava.version}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>${maven-release-plugin.version}</version>
				<configuration>
					<arguments>-Dredislauncher.command=${redislauncher.command} -Dgpg.passphrase=${gpg.passphrase}</arguments>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>${maven-eclipse-plugin.version}</version>
				<configuration>
					<additionalConfig>
						<file>
							<name>.settings/org.eclipse.jdt.core.prefs</name>
							<location>eclipse/org.eclipse.jdt.core.prefs</location>
						</file>
						<file>
							<name>.settings/org.eclipse.jdt.ui.prefs</name>
							<location>eclipse/org.eclipse.jdt.ui.prefs</location>
						</file>
					</additionalConfig>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<name>Redis Launcher</name>
	<description>A Java library for controlling a redis server programmatically</description>
	<url>https://github.com/hertzsprung/redis-launcher</url>
	<inceptionYear>2011</inceptionYear>

	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/hertzsprung/redis-launcher/issues</url>
	</issueManagement>
	<scm>
		<connection>scm:git:git://github.com/hertzsprung/redis-launcher.git</connection>
		<developerConnection>scm:git:git@github.com:hertzsprung/redis-launcher.git</developerConnection>
		<url>http://github.com/hertzsprung/redis-launcher</url>
	</scm>
	<distributionManagement>
		<site>
			<id>datumedge-site</id>
			<name>DatumEdge website</name>
			<url>scp://pepperfish.net/home/jshaw/websites/datumedge.co.uk/www/html/redis-launcher</url>
		</site>
	</distributionManagement>
</project>


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">

  <bean id="reportService" class="vtk.web.service.ServiceImpl">
    <property name="parent" ref="manageService" />
    <property name="attributes">
      <map>
        <entry key="tabOrder">
          <value type="java.lang.Integer">300</value>
        </entry>
      </map>
    </property>
    <property name="assertions">
      <list>
        <ref bean="reports.viewPermissionAssertion" />
        <ref bean="resourceInCollection" />
        <bean class="vtk.web.service.RequestParameterAssertion">
          <property name="parameterName" value="mode" />
          <property name="parameterValue" value="report" />
        </bean>
      </list>
    </property>
    <property name="handler" ref="reportHandler" />
  </bean>

  <bean parent="manage.tabsBuilder">
    <property name="arguments" ref="reportService" />
  </bean>

  <bean id="brokenLinksToTsvReportService" class="vtk.web.service.ServiceImpl">
    <property name="parent" ref="reportService" />
    <property name="assertions">
      <list>
        <ref bean="reports.viewPermissionAssertion" />
        <ref bean="resourceInCollection" />
        <bean class="vtk.web.service.RequestParameterAssertion">
          <property name="parameterName" value="report-type" />
          <property name="parameterValue" value="broken-links" />
        </bean>
        <bean class="vtk.web.service.RequestParameterAssertion">
          <property name="parameterName" value="export-report" />
          <property name="parameterValue" value="broken-links-to-tsv" />
        </bean>
      </list>
    </property>
    <property name="handler" ref="brokenLinksToTsvReportHandler" />
  </bean>

  <bean id="reports.viewPermissionAssertion" parent="abstractResourcePrincipalPermissionAssertion">
    <property name="permission" value="READ_WRITE" />
    <property name="considerLocks" value="false" />
  </bean>

  <bean id="abstractReportHandler" abstract="true"
        class="vtk.web.report.ReportHandler" parent="repositoryAware">
    <property name="viewName" value="reportView" />
    <property name="localeResolver" ref="manageLocaleResolver" />
    <property name="documentPrincipalMetadataRetriever" ref="documentPrincipalMetadataRetriever" />
    <property name="viewReportService" ref="viewReportService" />
    <property name="primaryReporters">
      <list>
        <ref bean="listResourcesReporter" />
        <ref bean="diagramReport" />
        <ref bean="myDocumentsReporter" />
        <ref bean="brokenLinksReport" />
      </list>
    </property>
    <property name="reporters">
      <list>
        <ref bean="lastModifiedReporter" />
        <ref bean="unpublishedReporter" />
        <ref bean="lastCreatedReporter" />
      </list>
    </property>
    <property name="hiddenReporters">
      <list>
        <ref bean="webpageReporter" />
        <ref bean="otherReporter" />
        <ref bean="webOtherReporter" />
        <ref bean="imageReporter" />
        <ref bean="audioReporter" />
        <ref bean="videoReporter" />
        <ref bean="pdfReporter" />
        <ref bean="docReporter" />
        <ref bean="pptReporter" />
        <ref bean="xlsReporter" />
        <ref bean="textReporter" />
        <ref bean="frontpageReporter" />
        <ref bean="folderReporter" />
        <ref bean="fileReporter" />
        <ref bean="structured-articleReporter" />
        <ref bean="structured-eventReporter" />
        <ref bean="structured-messageReporter" />
        <ref bean="personReporter" />
        <ref bean="structured-projectReporter" />
        <ref bean="structured-masterReporter" />
        <ref bean="research-groupReporter" />
        <ref bean="organizational-unitReporter" />
        <ref bean="contact-supervisorReporter" />
        <ref bean="managed-xmlReporter" />
        <ref bean="htmlReporter" />
        <ref bean="phpReporter" />
        <ref bean="queryReporter" />
      </list>
    </property>
  </bean>

  <!-- Default report handler -->
  <bean id="reportHandler" parent="abstractReportHandler" />

  <bean id="brokenLinksToTsvReportHandler" class="vtk.web.report.BrokenLinksToTsvController">
    <property name="reportService" ref="reportService" />
    <property name="brokenLinksReporter" ref="brokenLinksReport" />
    <property name="webHostName" value="${webHostName}" />
  </bean>

  <bean id="reporter" abstract="true" class="vtk.web.report.AbstractReporter" parent="repositoryAware">
    <property name="searcher" ref="systemIndexSearcher" />
  </bean>

  <bean id="listResourcesReporter" class="vtk.web.report.ListResourcesReporter"
        parent="reporter">
    <property name="name" value="list-resources" />
    <property name="viewName" value="listResourcesView" />
  </bean>

  <bean id="diagramReport" class="vtk.web.report.DiagramReport" parent="reporter">
    <property name="name" ref="diagramReportName" />
    <property name="viewName" value="diagramReportView" />
    <property name="baseWebpageTypes" ref="baseWebpageTypes" />
    <property name="webpageTypes" ref="webpageTypes" />
    <property name="fileTypes" ref="fileTypes" />
  </bean>

  <bean id="diagramReportName" class="java.lang.String">
    <constructor-arg value="diagram"/>
  </bean>

  <bean id="baseWebpageTypes" class="org.springframework.beans.factory.config.MapFactoryBean">
    <property name="targetMapClass">
      <value>java.util.LinkedHashMap</value>
    </property>
    <property name="sourceMap">
      <map>
        <entry key="apt-resource" value="IN" />
        <entry key="php" value="IN" />
        <entry key="html" value="IN" />
        <entry key="managed-xml" value="IN" />
        <entry key="json-resource" value="IN" />
      </map>
    </property>
  </bean>

  <bean id="webpageTypes" class="org.springframework.beans.factory.config.MapFactoryBean">
    <property name="targetMapClass">
      <value>java.util.LinkedHashMap</value>
    </property>
    <property name="sourceMap">
      <map>
        <entry key="structured-article" value="IN" />
        <entry key="structured-event" value="IN" />
        <entry key="person" value="IN" />
        <entry key="structured-project" value="IN" />
        <entry key="structured-master" value="IN" />
        <entry key="research-group" value="IN" />
        <entry key="organizational-unit" value="IN" />
        <entry key="contact-supervisor" value="IN" />
        <entry key="frontpage" value="IN" />
        <entry key="structured-message" value="IN" />
        <entry key="managed-xml" value="IN" />
        <entry key="html" value="IN" />
        <entry key="php" value="IN" />
      </map>
    </property>
  </bean>

  <bean id="fileTypes" class="org.springframework.beans.factory.config.MapFactoryBean">
    <property name="targetMapClass">
      <value>java.util.LinkedHashMap</value>
    </property>
    <property name="sourceMap">
      <map>
        <entry key="image" value="IN" />
        <entry key="audio" value="IN" />
        <entry key="video" value="IN" />
        <entry key="pdf" value="IN" />
        <entry key="doc" value="IN" />
        <entry key="ppt" value="IN" />
        <entry key="xls" value="IN" />
        <entry key="text" value="EQ" />
      </map>
    </property>
  </bean>

  <bean id="brokenLinksReport" class="vtk.web.report.BrokenLinksReport" parent="reporter">
    <property name="name" value="broken-links" />
    <property name="viewName" value="brokenLinksReportView" />
    <property name="alternativeName" value="broken-links-collection" />
    <property name="alternativeViewName" value="brokenLinksCollectionReportView" />
    <property name="manageService" ref="manageService" />
    <property name="reportService" ref="reportService" />
    <property name="pageSize" value="25" />
    <property name="linkStatusPropDef" ref="linkStatusPropDef" />
    <property name="linkCheckPropDef" ref="linkCheckPropDef" />
    <property name="brokenLinksCountPropDef" ref="brokenLinksCountPropDef"/>
    <!--property name="sortPropDef" ref="lastModifiedPropDef" /-->
    <property name="publishedPropDef" ref="publishedPropDef" />
    <property name="indexFilePropDef" ref="collection.indexFilePropDef" />
    <property name="unpublishedCollectionPropDef" ref="unpublishedCollectionPropDef" />
    <property name="sortOrder" ref="SORT_ORDER.ASC" />
    <property name="parser" ref="searchParser"/>
    <property name="queryFilterExpression" value="${systemjob.linkcheck.queryFilterExpression}"/>
    <property name="enabled" value="${report.brokenLinks.enabled}" />
    <property name="brokenLinksToTsvReportService" ref="brokenLinksToTsvReportService" />
  </bean>

  <bean id="myDocumentsReporter" class="vtk.web.report.MyDocumentsReporter" parent="documentReporter">
    <property name="name" value="my-documents" />
    <property name="createdByPropDef" ref="createdByPropDef" />
    <property name="sortPropDef" ref="creationTimePropDef" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="documentReporter" abstract="true" class="vtk.web.report.DocumentReporter" parent="reporter">
    <property name="manageService" ref="manageService" />
    <property name="reportService" ref="reportService" />
    <property name="viewName" value="documentReportView" />
    <property name="resolvePrincipalLink" value="true" />
    <property name="aclTooltipHelper" ref="aclTooltipHelper" />
  </bean>

  <bean id="lastModifiedReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="last-modified" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="file" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="lastCreatedReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="last-created" />
    <property name="sortPropDef" ref="creationTimePropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="file" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
    <property name="viewName" value="documentLastCreatedReportView" />
  </bean>

  <bean id="unpublishedReporter" class="vtk.web.report.UnpublishedReporter" parent="documentReporter">
    <property name="name" value="unpublished" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="resource" />
    <property name="publishedPropDef" ref="publishedPropDef" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="webpageReporter" class="vtk.web.report.WebpageReporter" parent="documentReporter">
    <property name="name" value="webpageReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
    <property name="baseWebpageTypes" ref="baseWebpageTypes" />
  </bean>

  <bean id="otherReporter" class="vtk.web.report.OtherReporter" parent="documentReporter">
    <property name="name" value="otherReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
    <property name="baseWebpageTypes" ref="baseWebpageTypes" />
    <property name="fileTypes" ref="fileTypes" />
  </bean>

  <bean id="webOtherReporter" class="vtk.web.report.WebOtherReporter" parent="documentReporter">
    <property name="name" value="webOtherReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
    <property name="baseWebpageTypes" ref="baseWebpageTypes" />
    <property name="webpageTypes" ref="webpageTypes" />
  </bean>

  <bean id="imageReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="imageReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="image" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="audioReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="audioReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="audio" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="videoReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="videoReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="video" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="pdfReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="pdfReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="pdf" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="docReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="docReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="doc" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="pptReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="pptReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="ppt" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="xlsReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="xlsReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="xls" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="textReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="textReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="text" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="termOperator" value="EQ" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="frontpageReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="frontpageReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="frontpage" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="folderReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="folderReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="collection" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="fileReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="fileReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="file" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="structured-articleReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="structured-articleReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="structured-article" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="structured-eventReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="structured-eventReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="structured-event" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="structured-messageReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="structured-messageReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="structured-message" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="personReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="personReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="person" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="structured-projectReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="structured-projectReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="structured-project" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="structured-masterReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="structured-masterReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="structured-master" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="research-groupReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="research-groupReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="research-group" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="organizational-unitReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="organizational-unitReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="organizational-unit" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="contact-supervisorReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="contact-supervisorReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="contact-supervisor" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="managed-xmlReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="managed-xmlReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="managed-xml" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="htmlReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="htmlReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="html" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="phpReporter" class="vtk.web.report.SortedResourceTypeDocumentReporter" parent="documentReporter">
    <property name="name" value="phpReporter" />
    <property name="sortPropDef" ref="lastModifiedPropDef" />
    <property name="titlePropDef" ref="titlePropDef" />
    <property name="type" value="php" />
    <property name="backReportName" ref="diagramReportName" />
    <property name="sortOrder" ref="SORT_ORDER.DESC" />
  </bean>

  <bean id="queryReporter" class="vtk.web.report.QueryReporter" parent="documentReporter">
    <constructor-arg ref="queryParserFactory" />
    <property name="name" value="query" />
  </bean>

  <bean id="reportView" parent="freemarkerView">
    <property name="url" value="pages/report/report.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="listResourcesView" parent="freemarkerView">
    <property name="url" value="pages/report/list-resources.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/jquery.treeview.css</value>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
        <entry key="jsURLs">
          <list>
            <value>${webResources.baseURL}/jquery/plugins/jquery.treeview.js</value>
            <value>${webResources.baseURL}/jquery/plugins/jquery.treeview.async.js</value>
          </list>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="documentReportView" parent="freemarkerView">
    <property name="url" value="pages/report/document-report.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
      </map>
    </property>
  </bean>
  <!-- Similar to "documentReportView", but with different result columns. -->
  <bean id="documentLastCreatedReportView" parent="freemarkerView">
    <property name="url" value="pages/report/document-last-created-report.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="diagramReportView" parent="freemarkerView">
    <property name="url" value="pages/report/diagram-report.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="brokenLinksCollectionReportView" parent="freemarkerView">
    <property name="url" value="pages/report/broken-links-collection.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
      </map>
    </property>
    <property name="referenceDataProviders">
      <list>
        <bean class="vtk.web.referencedata.provider.StaticURIServiceURLProvider">
          <property name="service" ref="staticResourceService" />
          <property name="path" value="${editor.fck.resourcesURL}" />
          <property name="modelName" value="fckeditorBase" />
        </bean>
        <bean class="vtk.web.referencedata.provider.StaticURIServiceURLProvider">
          <property name="service" ref="filebrowser.fckconnector" />
          <property name="path" value="${editor.fck.browseURL}" />
          <property name="modelName" value="fckBrowse" />
        </bean>
        <ref bean="resourceContextProvider" />
      </list>
    </property>
  </bean>

  <bean id="brokenLinksReportView" parent="freemarkerView">
    <property name="url" value="pages/report/broken-links.ftl" />
    <property name="attributesMap">
      <map>
        <entry key="cssURLs">
          <list>
            <value>${themeBaseURL}/report/report.css</value>
          </list>
        </entry>
      </map>
    </property>
    <property name="referenceDataProviders">
      <list>
        <ref bean="resourceContextProvider" />
        <bean class="vtk.web.referencedata.provider.StaticURIServiceURLProvider">
          <property name="service" ref="staticResourceService" />
          <property name="path" value="${editor.fck.resourcesURL}" />
          <property name="modelName" value="fckeditorBase" />
        </bean>
        <bean class="vtk.web.referencedata.provider.StaticURIServiceURLProvider">
          <property name="service" ref="filebrowser.fckconnector" />
          <property name="path" value="${editor.fck.browseURL}" />
          <property name="modelName" value="fckBrowse" />
        </bean>
      </list>
    </property>
  </bean>

  <bean parent="messageSource.addBasenames">
    <property name="arguments" value="vtk.i18n.report.report" />
  </bean>

</beans>

redpajama_set_name: RedPajamaGithub


text:
<?php
namespace SPHERE\System\Authenticator;

/**
 * Class Authenticator
 *
 * @package SPHERE\System\Authenticator
 */
class Authenticator
{

    /** @var ITypeInterface $Type */
    private $Type = null;

    /**
     * @param ITypeInterface $Type
     *
     * @throws \Exception
     */
    function __construct(ITypeInterface $Type)
    {

        $this->Type = $Type;
        if ($this->Type->getConfiguration() !== null) {
            $Configuration = parse_ini_file(__DIR__.'/Configuration.ini', true);
            if (isset( $Configuration[$this->Type->getConfiguration()] )) {
                $this->Type->setConfiguration($Configuration[$this->Type->getConfiguration()]);
            }
        }
    }

    /**
     * @return ITypeInterface
     */
    public function getAuthenticator()
    {

        return $this->Type;
    }
}


text:
<?php

class ContactForm7Datepicker_DateTime {

	static $inline_js = array();

	public static function register() {
		// Register shortcodes
        add_action('wpcf7_init', array(__CLASS__, 'add_shortcodes'));

		// Validations
		add_filter('wpcf7_validate_datetime', array(__CLASS__, 'validation_filter'), 10, 2);
		add_filter('wpcf7_validate_datetime*', array(__CLASS__, 'validation_filter'), 10, 2);

		// Tag generator
		add_action('wpcf7_admin_init', array(__CLASS__, 'tag_generator'), 70);

		// Messages
		add_filter('wpcf7_messages', array(__CLASS__, 'messages'));

		// Print inline javascript
		add_action('wp_print_footer_scripts', array(__CLASS__, 'print_inline_js'), 99999);
	}

	public static function shortcode_handler($tag) {
		$tag = new WPCF7_Shortcode($tag);

		if (empty($tag->name))
			return '';

		$validation_error = wpcf7_get_validation_error($tag->name);

		$class = wpcf7_form_controls_class($tag->type, 'wpcf7-date');

		if ($validation_error)
			$class .= ' wpcf7-not-valid';

		$atts = array();

		$atts['size'] = $tag->get_size_option('40');
		$atts['maxlength'] = $tag->get_maxlength_option();
		$atts['class'] = $tag->get_class_option($class);
		$atts['id'] = $tag->get_option('id', 'id', true);
		$atts['tabindex'] = $tag->get_option('tabindex', 'int', true);
		$atts['type'] = 'text';

		if ($tag->has_option('readonly'))
			$atts['readonly'] = 'readonly';

		if ($tag->is_required())
			$atts['aria-required'] = 'true';

		$value = (string)reset($tag->values);

		if ($tag->has_option('placeholder') || $tag->has_option('watermark')) {
			$atts['placeholder'] = $value;
			$value = '';
		}

		if (wpcf7_is_posted() && isset($_POST[$tag->name]))
			$value = stripslashes_deep($_POST[$tag->name]);

		$atts['value'] = $value;

		$dpOptions = array();
		$dpOptions['dateFormat'] = str_replace('_', ' ', $tag->get_option('date-format', '', true));
		$dpOptions['timeFormat'] = str_replace('_', ' ', $tag->get_option('time-format', '', true));
		$dpOptions['minDate'] = $tag->get_option('min-date', '', true);
		$dpOptions['maxDate'] = $tag->get_option('max-date', '', true);
		$dpOptions['firstDay'] = (int)$tag->get_option('first-day', 'int', true);
		$dpOptions['showAnim'] = $tag->get_option('animate', '', true);
		$dpOptions['yearRange'] = str_replace('-', ':', $tag->get_option('year-range', '', true));
		$dpOptions['numberOfMonths'] = $tag->get_option('months', 'int', true);
		$dpOptions['controlType'] = $tag->get_option('control-type', '', true);

		$dpOptions['showButtonPanel'] = $tag->has_option('buttons');
		$dpOptions['changeMonth'] = $tag->has_option('change-month');
		$dpOptions['changeYear'] = $tag->has_option('change-year');
		$dpOptions['noWeekends'] = $tag->has_option('no-weekends');

		foreach (array('minute', 'hour', 'second') as $s) {
			foreach (array('min', 'max') as $m) {
				$dpOptions[$s . ucfirst($m)] = (int)$tag->get_option("$m-$s", 'int', true);
			}

			$dpOptions['step' . ucfirst($s)] = (int)$tag->get_option("step-$s", 'int', true);
		}

		$inline = $tag->has_option('inline');

		if ($inline) {
			$dpOptions['altField'] = "#{$tag->name}_alt";
			$atts['id'] = "{$tag->name}_alt";
		}

		$atts['type'] = $inline ? 'hidden' : 'text';
		$atts['name'] = $tag->name;

		$atts = wpcf7_format_atts($atts);

		$html = sprintf(
			'<input %2$s />%3$s %4$s',
			$tag->name, $atts, $validation_error,
			$inline ? "
name}_datetimepicker\">
" : '');

		$html = apply_filters('cf7dp_datetime_input', $html);

		$dp_selector = $inline ? '#' . $tag->name . '_datetimepicker' : $tag->name;

		$dp = new CF7_DateTimePicker('datetime', $dp_selector, $dpOptions);

		self::$inline_js[] = $dp->generate_code($inline);

		return $html;
	}

	public static function validation_filter($result, $tag) {
		$type = $tag['type'];
		$name = $tag['name'];

		$value = trim($_POST[$name]);

		if ('datetime*' == $type && empty($value)) {
            		$result->invalidate($tag, wpcf7_get_message('invalid_required'));
		}

		if (! empty($value) && ! self::is_valid_date($value)) {
            		$result->invalidate($tag, wpcf7_get_message('invalid_datetime'));
		}

		return $result;
	}

	public static function tag_generator() {
        if (! class_exists( 'WPCF7_TagGenerator' ))
            return;

        $tag_generator = WPCF7_TagGenerator::get_instance();
        $tag_generator->add( 'datetime', __( 'datetime', 'contact-form-7' ),
            array(__CLASS__, 'tg_pane') );
	}

	public static function tg_pane($contact_form, $args = '') {
        $args = wp_parse_args( $args, array() );
        $type = 'datetime';

		require_once dirname(__FILE__) . '/generators/datetime.php';
	}

	public static function add_shortcodes() {
		if (function_exists('wpcf7_add_form_tag')) {
			wpcf7_add_form_tag(array('datetime', 'datetime*'), array(__CLASS__, 'shortcode_handler'), true);
		}
	}

	public static function messages($messages) {
		$messages['invalid_datetime'] = array(
			'description' => __('The date and time that the sender entered is invalid'),
			'default' => __('Invalid date and time supplied.'),
		);

		return $messages;
	}

	public static function print_inline_js() {
		if (! wp_script_is('jquery-ui-timepicker', 'done') || empty(self::$inline_js))
			return;

		$out = implode("\n\t", self::$inline_js);
		$out = "jQuery(function($){\n\t$out\n});";

		echo "\n\n";
	}

	private static function animate_dropdown() {
		$html = "<select id=\"animate\">\n";

		foreach (CF7_DateTimePicker::$effects as $val) {
			$html .= '<option value="' . esc_attr($val) . '">' . ucfirst($val) . '</option>';
		}

		$html .= "</select>";

		echo $html;
	}

	private static function is_valid_date($value) {
		$valid = strtotime($value) ? true : false;

		if (! $valid) {
			// Validate dd/mm/yy
			$new_value = str_replace('/', '-', $value);
			$valid = strtotime($new_value) ? true : false;
		}

		return apply_filters( 'cf7dp_is_valid_datetime', $valid, $value );
	}

}

ContactForm7Datepicker_DateTime::register();


text:
The Helenus Driver Project enables annotation of POJO classes and a driver layer to create statements (e.g. creating, updating, selecting from Cassandra tables, ...) by converting annotated POJO objects into actual CQL statements. It uses a JPA-like syntax for annotating POJO classes.

It defines a driver layer with a similar syntax to Cassandra's own Java driver.

It's current implementation actually sits on top of Cassandra Java layer.


text:
namespace base {

class BASE_EXPORT SysInfo {
 public:
  // Return the number of logical processors/cores on the current machine.
  static int NumberOfProcessors();

  // Return the number of bytes of physical memory on the current machine.
  static int64_t AmountOfPhysicalMemory();

  // Return the number of bytes of current available physical memory on the
  // machine.
  static int64_t AmountOfAvailablePhysicalMemory();

  // Return the number of bytes of virtual memory of this process. A return
  // value of zero means that there is no limit on the available virtual
  // memory.
  static int64_t AmountOfVirtualMemory();

  // Return the number of megabytes of physical memory on the current machine.
  static int AmountOfPhysicalMemoryMB() {
    return static_cast<int>(AmountOfPhysicalMemory() / 1024 / 1024);
  }

  // Return the number of megabytes of available virtual memory, or zero if it
  // is unlimited.
  static int AmountOfVirtualMemoryMB() {
    return static_cast<int>(AmountOfVirtualMemory() / 1024 / 1024);
  }

  // Return the available disk space in bytes on the volume containing |path|,
  // or -1 on failure.
  static int64_t AmountOfFreeDiskSpace(const FilePath& path);

  // Returns system uptime.
  static TimeDelta Uptime();

  // Returns a descriptive string for the current machine model or an empty
  // string if the machine model is unknown or an error occured.
  // e.g. "MacPro1,1" on Mac, or "Nexus 5" on Android. Only implemented on OS X,
  // Android, and Chrome OS. This returns an empty string on other platforms.
  static std::string HardwareModelName();

  // Returns the name of the host operating system.
  static std::string OperatingSystemName();

  // Returns the version of the host operating system.
  static std::string OperatingSystemVersion();

  // Retrieves detailed numeric values for the OS version.
  // TODO(port): Implement a Linux version of this method and enable the
  // corresponding unit test.
  // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release
  // for OS version-specific feature checks and workarounds. If you must use
  // an OS version check instead of a feature check, use the base::mac::IsOS*
  // family from base/mac/mac_util.h, or base::win::GetVersion from
  // base/win/windows_version.h.
  static void OperatingSystemVersionNumbers(int32_t* major_version,
                                            int32_t* minor_version,
                                            int32_t* bugfix_version);

  // Returns the architecture of the running operating system.
  // Exact return value may differ across platforms.
  // e.g. a 32-bit x86 kernel on a 64-bit capable CPU will return "x86",
  //      whereas a x86-64 kernel on the same CPU will return "x86_64"
  static std::string OperatingSystemArchitecture();

  // Avoid using this. Use base/cpu.h to get information about the CPU instead.
  // http://crbug.com/148884
  // Returns the CPU model name of the system. If it can not be figured out,
  // an empty string is returned.
  static std::string CPUModelName();

  // Return the smallest amount of memory (in bytes) which the VM system will
  // allocate.
  static size_t VMAllocationGranularity();

#if defined(OS_POSIX) && !defined(OS_MACOSX)
  // Returns the maximum SysV shared memory segment size, or zero if there is no
  // limit.
  static uint64_t MaxSharedMemorySize();
#endif  // defined(OS_POSIX) && !defined(OS_MACOSX)

#if defined(OS_CHROMEOS)
  typedef std::map<std::string, std::string> LsbReleaseMap;

  // Returns the contents of /etc/lsb-release as a map.
  static const LsbReleaseMap& GetLsbReleaseMap();

  // If |key| is present in the LsbReleaseMap, sets |value| and returns true.
  static bool GetLsbReleaseValue(const std::string& key, std::string* value);

  // Convenience function for GetLsbReleaseValue("CHROMEOS_RELEASE_BOARD",...).
  // Returns "unknown" if CHROMEOS_RELEASE_BOARD is not set.
  static std::string GetLsbReleaseBoard();

  // Returns the creation time of /etc/lsb-release. (Used to get the date and
  // time of the Chrome OS build).
  static Time GetLsbReleaseTime();

  // Returns true when actually running in a Chrome OS environment.
  static bool IsRunningOnChromeOS();

  // Test method to force re-parsing of lsb-release.
  static void SetChromeOSVersionInfoForTest(const std::string& lsb_release,
                                            const Time& lsb_release_time);
#endif  // defined(OS_CHROMEOS)

#if defined(OS_ANDROID)
  // Returns the Android build's codename.
  static std::string GetAndroidBuildCodename();

  // Returns the Android build ID.
  static std::string GetAndroidBuildID();

  static int DalvikHeapSizeMB();
  static int DalvikHeapGrowthLimitMB();
#endif  // defined(OS_ANDROID)

  // Returns true if this is a low-end device.
  // Low-end device refers to devices having less than 512M memory in the
  // current implementation.
  static bool IsLowEndDevice();
};

}  // namespace base

#endif  // BASE_SYS_INFO_H_


text:
'use strict';

import {getHTMLTagProvider, getWmlTagProvider, IWMLTagProvider} from '../parser/wmlTags';

export let allTagProviders : IWMLTagProvider[] = [
	getWmlTagProvider(),
	getHTMLTagProvider()
];

export function getAllTagProviders(pTag:string):IWMLTagProvider[]{

	if(pTag){
		return allTagProviders;
	}else{
		return [getWmlTagProvider()];
	}

}


text:
Basic example, compatible with ESLint 2.x and 3.x.

## Usage
- Clone this repo
- Optional: delete the `.git` directory and `git init` a new repo
- Run `npm install`
- Rename `lib/rules/example.js` and `tests/lib/rules/example.js` to use your rule's name
- Modify your rule, probably using [AST Explorer](http://astexplorer.net/) to know what you're looking for
- Run `npm test` to make sure everything works
- Update `index.js` to export the new rule name and any additional rules
- Run the rule against a real codebase to flush out unexpected patterns that might error your code
- Update the `package.json` with:
  - `author`
  - `repository`
  - `version`
  - Optional: `"private": true` if you're keeping this private
- Publish to npm easily using the included release scripts that will bump the version, `npm publish` and push the repo to the git remote with tags published. Ex. `npm run minor-release` (bumps 0.1.0 => 0.2.0)

## Contributing

This was written pretty quickly and has room for improvement. Your help is welcome! Some of the things I can think of:
- Richer examples. Multiple examples, even duplicating existing rules, with comments explaining how different things work.
- A better guide, expanding on the Usage section with more detailed steps on how to approach writing a rule.
- Additional boilerplate for docs, see [yannickcr/eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) for a great example.


text:
using System;
using System.Collections.Generic;
using ImageCircle.Forms.Plugin.Abstractions;
using Xamarin.Forms;

namespace CarouselDotsGenerator
{
	public partial class LittleDotView : CircleImage, IDot
	{
		public LittleDotView()
		{
			InitializeComponent();
		}

		public void ChangeFillColorTo(Color to)
		{
			FillColor = to;
		}
	}
}


text:
package prefux.visual.sort;

import prefux.Visualization;
import prefux.visual.AggregateItem;
import prefux.visual.DecoratorItem;
import prefux.visual.EdgeItem;
import prefux.visual.NodeItem;
import prefux.visual.VisualItem;

/**
 * ItemSorter that sorts items by tree depths. By default items deeper
 * in the tree are given lower scores, so that parent nodes are drawn
 * on top of child nodes. This ordering can be reversed using the
 * appropriate constructor arguments.
 *
 * @author jeffrey heer
 */
public class TreeDepthItemSorter extends ItemSorter {

    protected static final int AGGREGATE = 0;
    protected static final int EDGE      = 1;
    protected static final int ITEM      = 2;
    protected static final int NODE      = 3;
    protected static final int DECORATOR = 4;

    private int m_childrenAbove;
    private int m_hover;
    private int m_highlight;
    private int m_depth;

    /**
     * Create a new TreeDepthItemSorter that orders nodes such that parents
     * are placed above their children.
     */
    public TreeDepthItemSorter() {
        this(false);
    }

    /**
     * Create a new TreeDepthItemSorter with the given sort ordering by depth.
     * @param childrenAbove true if children should be ordered above their
     * parents, false if parents should be ordered above their children.
     */
    public TreeDepthItemSorter(boolean childrenAbove) {
        if ( childrenAbove ) {
            m_childrenAbove = 1;
            m_hover = 13;
            m_highlight = 12;
            m_depth = 14;
        } else {
            m_childrenAbove = -1;
            m_hover = 24;
            m_highlight = 23;
            m_depth = 12;
        }
    }

    /**
     * Score items similarly to {@link ItemSorter}, but additionally
     * ranks items based on their tree depth.
     * @see prefux.visual.sort.ItemSorter#score(prefux.visual.VisualItem)
     */
    public int score(VisualItem item) {
        int type = ITEM;
        if ( item instanceof EdgeItem ) {
            type = EDGE;
        } else if ( item instanceof AggregateItem ) {
            type = AGGREGATE;
        } else if ( item instanceof DecoratorItem ) {
            type = DECORATOR;
        }

        int score = (1<<(25+type));
        if ( item instanceof NodeItem ) {
            int depth = ((NodeItem)item).getDepth();
            score += m_childrenAbove*(depth<<m_depth);
        }
        if ( item.isHover() ) {
            score += (1<<m_hover);
        }
        if ( item.isHighlighted() ) {
            score += (1<<m_highlight);
        }
        if ( item.isInGroup(Visualization.FOCUS_ITEMS) ) {
            score += (1<<11);
        }
        if ( item.isInGroup(Visualization.SEARCH_ITEMS) ) {
            score += (1<<10);
        }

        return score;
//        int score = 0;
//        if ( item.isHover() ) {
//            score += (1<<m_hover);
//        }
//        if ( item.isHighlighted() ) {
//            score += (1<<m_highlight);
//        }
//        if ( item instanceof NodeItem ) {
//            score += (1<<27); // nodes before edges
//            score += m_childrenAbove*(((NodeItem)item).getDepth()<<m_depth);
//        }
//        if ( item.isInGroup(Visualization.FOCUS_ITEMS) ) {
//            score += (1<<11);
//        }
//        if ( item.isInGroup(Visualization.SEARCH_ITEMS) ) {
//            score += (1<<10);
//        }
//        if ( item instanceof DecoratorItem ) {
//            score += (1<<9);
//        }
//        return score;
    }

} // end of class TreeDepthItemSorter


text:
\hypertarget{interface_s_c_general_store_set_default}{}\section{S\+C\+General\+Store\+Set\+Default Class Reference}
\label{interface_s_c_general_store_set_default}\index{S\+C\+General\+Store\+Set\+Default@{S\+C\+General\+Store\+Set\+Default}}
Inheritance diagram for S\+C\+General\+Store\+Set\+Default\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{interface_s_c_general_store_set_default}
\end{center}
\end{figure}
\subsection*{Properties}
\begin{DoxyCompactItemize}
\item
N\+S\+String $\ast$ {\bfseries reason}\hypertarget{interface_s_c_general_store_set_default_ab74796fa23c136bdec7f019500b25940}{}\label{interface_s_c_general_store_set_default_ab74796fa23c136bdec7f019500b25940}

\end{DoxyCompactItemize}

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item
Pod/\+Classes/\+Model/\+General/S\+C\+General\+Store\+Set\+Default.\+h\end{DoxyCompactItemize}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Uber.Models
{
    public enum TokenTypes
    {
        Server,
        Access
    }
}


text:
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, forin: true, maxerr: 50, regexp: true */
/*global define, $, window */

/**
 * RemoteFunctions define the functions to be executed in the browser. This
 * modules should define a single function that returns an object of all
 * exported functions.
 */
function RemoteFunctions() {
    "use strict";

    var _body = window.document.getElementsByTagName("body")[0]; // the document body
    var _sourceHighlight; // the highlighted element in the source
    var _highlight = []; // the highlighted elements
    var _dialog; // the active dialog
    var _target; // the active target element of a dialog
    var _editor; // the editor
    var _editText; // the original editor text

    // prevent an event
    function _preventEventWhenMeta(event) {
        if (event.metaKey) {
            event.preventDefault();
            event.stopPropagation();
        }
    }

    // compute the screen offset of an element
    function _screenOffset(element, key) {
        var value = 0;
        while (element) {
            value += element[key];
            element = element.offsetParent;
        }
        return value;
    }

    // hide dialog
    function _hideDialog() {
        if (_dialog) {
            var dialog = _dialog;
            _dialog = undefined;
            _body.removeChild(dialog);
        }
    }

    // show dialog
    function _createDialog(element, drawBackground) {
        _hideDialog();

        // compute the position on screen
        var x = _screenOffset(element, "offsetLeft");
        var y = _screenOffset(element, "offsetTop") + element.offsetHeight;
        var width = element.offsetWidth;

        // create the container
        _dialog = window.document.createElement("div");
        _dialog.style.setProperty("z-index", 2147483647);
        _dialog.style.setProperty("position", "absolute");
        _dialog.style.setProperty("left", x + "px");
        _dialog.style.setProperty("top", y + "px");
        _dialog.style.setProperty("font-size", "11pt");
        if (drawBackground) {
            _dialog.style.setProperty("background", "#fff");
            _dialog.style.setProperty("border", "1px solid #888");
            _dialog.style.setProperty("-webkit-box-shadow", "2px 2px 6px 0px #ccc");
            _dialog.style.setProperty("border-radius", "6px");
            _dialog.style.setProperty("padding", "6px");
        }

        return _dialog;
    }

    // row background color
    function _backgroundColorForType(type, highlight) {
        switch (type) {
        case "html":
            return highlight ? "#eec" : "#ffe";
        case "css":
            return highlight ? "#cee" : "#eff";
        case "js":
            return highlight ? "#ccf" : "#eef";
        }
    }

    // set an event on a element
    function _trigger(element, name, value, autoRemove) {
        var key = "data-ld-" + name;
        if (value !== undefined && value !== null) {
            element.setAttribute(key, value);
            if (autoRemove) {
                window.setTimeout(element.removeAttribute.bind(element, key));
            }
        } else {
            element.removeAttribute(key);
        }
    }

    // low level node highlighting
    function _highlightNode(info) {
        if (!(info instanceof Array)) {
            info = [info, "#ecc"];
        }
        var prevColor = info[0].style.getPropertyValue("background-color");
        info[0].style.setProperty("background-color", info[1]);
        return [info[0], prevColor];
    }

    // editor key press
    function _onEditKeyUp(event) {
        switch (event.which) {
        case 13:
            // return
            _editor.blur();
            break;
        case 27:
            // esc
            _trigger(_target, "edit", _editText, true);
            _editor.blur();
            break;
        case 18:
            // nothing
            break;
        default:
            _trigger(_target, "edit", _editor.value);
        }
    }

    // open the editor
    function _showEdit(text) {
        _editText = text;
        var dialog = _createDialog(_target);
        _editor = window.document.createElement("input");
        _editor.setAttribute("value", text);
        _editor.setAttribute("width", _target.attributes.width);
        _editor.addEventListener("keyup", _onEditKeyUp);
        _editor.addEventListener("blur", _hideDialog);
        dialog.appendChild(_editor);
        _body.appendChild(dialog);
        _editor.focus();
    }

    /** Event Handlers ***********************************************************/

    // remove highlight on release of the meta key
    function _onKeyUp(event) {
        if (!event.metaKey && _sourceHighlight) {
            _trigger(_sourceHighlight[0], "highlight", 0, true);
            _highlightNode(_sourceHighlight);
            _sourceHighlight = undefined;
        }
    }

    // trigger highlight on mouse move
    function _onMouse(event) {
        if (!event.metaKey || event.type !== "mousemove" || !event.toElement) {
            if (_sourceHighlight) {
                _trigger(_sourceHighlight[0], "highlight", 0, true);
                _highlightNode(_sourceHighlight);
                _sourceHighlight = undefined;
            }
            return;
        }
        if (_sourceHighlight) {
            if (_sourceHighlight[0] === event.toElement) {
                return;
            }
            _trigger(_sourceHighlight[0], "highlight");
            _highlightNode(_sourceHighlight);
        }
        _trigger(event.toElement, "highlight", 1);
        _sourceHighlight = _highlightNode(event.toElement);
    }

    // trigger goto on alt-click
    function _onClick(event) {
        _hideDialog();
        if (event.metaKey && event.toElement) {
            event.preventDefault();
            event.stopPropagation();
            _target = event.toElement;
            _trigger(_target, "showgoto", 1, true);
        } else if (event.altKey && event.toElement && event.toElement.childNodes.length === 1) {
            event.preventDefault();
            event.stopPropagation();
            _target = event.toElement;
            _showEdit(_target.childNodes[0].nodeValue);
        }
    }

    // Goto dialog highlighting
    function _onGotoMouse(row, type, event) {
        if (event.type === "mouseover") {
            row.style.setProperty("background", _backgroundColorForType(type, true));
        } else {
            row.style.setProperty("background", _backgroundColorForType(type));
        }
    }

    // Goto dialog click
    function _onGotoClick(url, event) {
        _hideDialog();
        _trigger(_target, "goto", url, true);
    }

    /** Public Commands **********************************************************/

    // show goto
    function showGoto(targets) {
        var dialog = _createDialog(_target, true);
        var i, target, row, file;
        for (i in targets) {
            target = targets[i];
            row = window.document.createElement("div");
            row.style.setProperty("padding", "6px 12px");
            row.style.setProperty("display", "block");
            row.style.setProperty("border-bottom", "1px solid #ccc");
            row.style.setProperty("cursor", "pointer");
            row.style.setProperty("background", _backgroundColorForType(target.type));
            row.innerHTML = target.name;
            row.addEventListener("click", _onGotoClick.bind(undefined, target.url));
            row.addEventListener("mouseover", _onGotoMouse.bind(undefined, row, target.type));
            row.addEventListener("mouseout", _onGotoMouse.bind(undefined, row, target.type));
            if (target.file) {
                file = window.document.createElement("i");
                file.style.setProperty("float", "right");
                file.style.setProperty("margin-left", "12px");
                file.innerHTML = " " + target.file;
                row.appendChild(file);
            }
            dialog.appendChild(row);
        }
        _body.appendChild(dialog);
    }

    // remove active highlights
    function hideHighlight() {
        if (_highlight.length === 0) {
            return;
        }
        var i;
        for (i in _highlight) {
            _highlightNode(_highlight[i]);
        }
        _highlight = [];
    }

    // highlight a node
    function highlight(node) {
        _highlight.push(_highlightNode(node));
    }

    // highlight a rule
    function highlightRule(rule) {
        hideHighlight();
        var i, nodes = window.document.querySelectorAll(rule);
        for (i = 0; i < nodes.length; i++) {
            highlight(nodes[i]);
        }
    }

    // insert a node
    function insertNode(payload, parent, index) {
        var node;
        if (payload.value) {
            node = window.document.createTextNode(payload.value);
        } else {
            node = window.document.createElement(payload.nodeName);
        }
        var sibling;
        if (index !== undefined) {
            sibling = parent.childNodes[index];
        }
        if (sibling) {
            parent.insertBefore(node, sibling);
        } else {
            parent.appendChild(node);
        }
        return node;
    }

    // log something (for testing)
    function log() {
        var i;
        for (i in arguments) {
            console.info(arguments[i]);
        }
    }

    // install event listeners

    /* FUTURE
    window.document.addEventListener("keyup", _onKeyUp);
    window.document.addEventListener("mousemove", _onMouse);
    window.document.addEventListener("mouseout", _onMouse);
    window.document.addEventListener("mousedown", _preventEventWhenMeta, true);
    window.document.addEventListener("mouseup", _preventEventWhenMeta, true);
    window.document.addEventListener("click", _onClick, true);
    */

    return {
        "showGoto": showGoto,
        "hideHighlight": hideHighlight,
        "highlight": highlight,
        "highlightRule": highlightRule,
        "insertNode": insertNode,
        "log": log
    };
}


text:
<layerconfig>
      <!-- Options to control lighting for static lights -->
      <staticlights>
	<!-- Don't draw static lights for meshes which have the
	     CS_ENTITY_STATICLIGHT flag set -->
	<nodraw />
	<!-- We could use <specularonly/> to only get specular
	     lighting from static lights, but lighter2 can provide
	     data for that, too -->
      </staticlights>
      <!-- @@@ Right now, with simple shaders, CPU overhead from the extra
	   pass may trump any early Z optimizations the HW could do -->
      <layer config="RenderManager.ZOnly.Enabled">
            <defaultshader name="z_only" file="/shader/early_z/z_only.xml" />
            <ambient />
            <shadertype>depthwrite</shadertype>
      </layer>
	<layer>
		<defaultshader name="lighting_default" file="/shader/lighting/lighting_default.xml" />
		<!-- Tells the shader ambient should be taken into account -
		     this should only happen on the first pass -->
		<shadervar name="pass do_ambient" type="integer">1</shadervar>
	        <!-- Draw layer, even if no lights are present -->
		<ambient />
		<maxlightpasses>1</maxlightpasses>
		<shadertype>base</shadertype>
		<shadertype>ambient</shadertype>
		<shadertype>standard</shadertype>
		<!-- Rendering order of splatting terrain should be ensured by splat render priority -->
		<shadertype>splatting ambient</shadertype>
		<shadertype>terrain splat</shadertype>
	</layer>
	<layer>
	        <defaultshader name="lighting_default" file="/shader/lighting/lighting_default.xml" />
	        <shadertype>diffuse</shadertype>
		<!-- Practically unlimited passes -->
		<maxlightpasses>2147483647</maxlightpasses>
		<!-- Rendering order of splatting terrain should be ensured by splat render priority -->
		<shadertype>terrain splat</shadertype>
	</layer>
</layerconfig>


text:
<title>
Election-year war on immigrants
</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>

<?php include "../../legacy-includes/TopLogo.htmlf" ?>

<?php include "../../legacy-includes/TopAd.htmlf" ?>

<?php include "../../legacy-includes/LeftButtons.htmlf" ?>

<?php include "../../legacy-includes/BodyInsert.htmlf" ?>

WHICH SIDE ARE YOU ON?

Election-year war on immigrants

By Sharon Smith | September 22, 2006 | Page 7

WITH THE November election hanging in the balance, politicians from both parties are jostling for votes on this year's key "wedge" issue. "Securing our borders" is a vague phrase that teeters conveniently between the "patriotic" virtues of cracking down on Latino migration and vilifying Arabs and Muslims in the name of fighting terrorism.

Congress' antics reached full swing on September 14, when the House of Representatives voted 283-138 for yet more sweeping border control measures, including the construction of a 700-mile wall along the U.S.-Mexico border--a meaningless provision, since it was already included in the notoriously repressive H.R. 4437 bill passed last December.

But lawmakers seemed eager to demonstrate that, as the Los Angeles Times commented, "bipartisan support exists for significantly toughening border security--especially as the November election nears."

California Sen. Dianne Feinstein, in a nod to her xenophobic supporters, announced that she was "delighted" that the House included a provision to criminalize the construction of border tunnels for transporting immigrants, while noting that she has proposed a similar measure in the Senate. Looking over her other shoulder at her agribusiness backers, Feinstein also mouthed disappointment that the bill did not include a guest-worker program for farmworkers.

This is not the first election year in which opportunist politicians have whipped up racism against immigrants as a campaign ploy. In October 1996, just weeks before his re-election, Bill Clinton signed the Illegal Immigration Reform and Immigrant Responsibility Act (IIRAIRA).

IIRAIRA is notable for its multifold expansion of deportable immigrant "criminals"--including those convicted of an "aggravated felony" or an act of "moral turpitude."

But under Clinton's watch, the crime of shoplifting rose to aggravated felony status. Crimes of moral turpitude suddenly included jumping a subway turnstile. One Cambodian man was designated a "sex offender" for the crime of indecent exposure after urinating on a construction site.

This Clinton-era legislation also targeted legal immigrants, deported for offences committed decades earlier--even if the crime was then defined as a misdemeanor, not a felony, and the immigrant had already served time for it. By 1997, the number of detained immigrants nearly doubled from the 1996 figure of 8,500.

Many of the provisions credited to the Bush Administration's USA PATRIOT Act were included in the 1996 legislation. Most notably, the Clinton-era law, not the Patriot Act, first required detention during deportation proceedings, while imposing no time limit on the duration of detention. The Patriot Act went on to authorize the indefinite detention of any non-citizen suspected of suspected "terrorist" activities.

Deportations have since risen to 200,000 in 2005, according to the Department of Homeland Security. Nearly 1.4 million immigrants have been deported since 1996.

To demonstrate its resolve, the Department of Homeland Security's Immigration and Customs Enforcement (ICE) has moved into overdrive. In its "Operation Return to Sender" exercise, ICE has arrested and deported thousands of immigrants since June.

On September 7 and 8, ICE arrested 107 immigrants in Northern California, which ICE described as "criminal aliens, foreign nationals with final orders of deportation, and other immigration violators." Yet only 19 of the 107 people arrested had prior criminal convictions. Most had arrived in the U.S. as children.

Immigration officials refused to allow Mohammad Ramadan Hassan Salama, an Egyptian-born professor at San Francisco State University, to return to his wife and children after he traveled to Canada in June to update his temporary scholar visa.

Officials told Salama that his name was similar to one of the men convicted in the 1993 World Trade Center bombings, Mohammed A. Salameh. "If we look for somebody with the last name McVeigh," the professor remarked, "should we just arrest them and harass them?"

In early September, Georgia's Republican Gov. Sonny Perdue--up for re-election--pledged a statewide crackdown on undocumented immigrants. Within days, federal agents descended on the small town of Stillmore, rounding up more than 120 immigrants for deportation.

Stillmore Mayor Marilyn Slater observed, "This reminds me of what I read about Nazi Germany, the Gestapo coming in and yanking people up."

<?php include "../../legacy-includes/BottomNavLinks.htmlf" ?>

<?php include "../../legacy-includes/RightAdFolder.htmlf" ?>


text:
{% if results == None %}

Please select the criteria for your trace lookup.

{% elif results and results|length == 0 %}

No traces found for choosen criteria.

{% endif %}


text:
using Xunit;
using Xunit.Extensions;

namespace Bugsnag.Test
{
    public class ConfigurationTests
    {
        [Theory]
        [InlineData("Random API Key")]
        [InlineData(null)]
        [InlineData("")]
        [InlineData("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ")]
        public void Constructor_CheckApiKeyIsRecordedCorrectly(string apiKey)
        {
            // Arrange + Act
            var testConfig = new Configuration(apiKey);

            // Assert
            Assert.Equal(apiKey, testConfig.ApiKey);
        }

        [Theory]
        [InlineData("https://another.point.com/")]
        [InlineData("https://end.random.com/")]
        public void EndpointUrl_UrlIsCreatedCorrectly(string url)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.Endpoint = url;

            // Assert
            Assert.Equal(url, testConfig.EndpointUrl.AbsoluteUri);
        }

        [Theory]
        [InlineData("stage 1")]
        [InlineData("stage 2")]
        [InlineData("stage 4")]
        [InlineData("stage 7")]
        [InlineData(null)]
        public void ReleaseStage_IdentifiesReleaseStagesToNotifyOn(string stage)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.NotifyReleaseStages = new[] { "stage 1", "stage 2", "stage 4", "stage 7" };
            testConfig.ReleaseStage = stage;

            // Assert
            Assert.True(testConfig.IsNotifyReleaseStage());
        }

        [Theory]
        [InlineData("stage 3")]
        [InlineData("stage 5")]
        [InlineData("stage 6")]
        [InlineData("stage 8")]
        [InlineData("")]
        public void ReleaseStage_IdentifiesReleaseStagesToNotNotifyOn(string stage)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.NotifyReleaseStages = new[] { "stage 1", "stage 2", "stage 4", "stage 7" };
            testConfig.ReleaseStage = stage;

            // Assert
            Assert.False(testConfig.IsNotifyReleaseStage());
        }

        [Theory]
        [InlineData("stage 1")]
        [InlineData("stage 2")]
        [InlineData("stage 3")]
        [InlineData("")]
        public void ReleaseStage_AllReleaseStageNotifyByDefault(string stage)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.ReleaseStage = stage;

            // Assert
            Assert.True(testConfig.IsNotifyReleaseStage());
        }

        [Theory]
        [InlineData(@"C:\MyProj\file1.cs")]
        [InlineData(@"H:\Path\To\file2.cs")]
        [InlineData(@"E:\file3.cs")]
        [InlineData(null)]
        [InlineData("")]
        public void FilePrefixes_LeaveFilenamesUntouchedIfNotSet(string fileName)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            var actFileName = testConfig.RemoveFileNamePrefix(fileName);

            // Assert
            Assert.Equal(fileName, actFileName);
        }

        [Theory]
        [InlineData(@"C:\MyProj\file1.cs", @"file1.cs")]
        [InlineData(@"H:\Path\To\file2.cs", @"Path\To\file2.cs")]
        [InlineData(@"E:\file3.cs", @"E:\file3.cs")]
        [InlineData(null, null)]
        [InlineData("", "")]
        public void FilePrefixes_RemovePrefixesSuccessfully(string fileName, string expFileName)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.FilePrefixes = new[] { @"C:\MyProj\", @"H:\", @"C:\MyOtherProj\Data" };
            var actFileName = testConfig.RemoveFileNamePrefix(fileName);

            // Assert
            Assert.Equal(expFileName, actFileName);
        }

        [Theory]
        [InlineData("ComA.ComB.Call()")]
        [InlineData("ComC.MyCall()")]
        [InlineData("ComD.ComA.ComB.Call()")]
        [InlineData(null)]
        [InlineData("")]
        public void ProjectNamespaces_AllMethodsAreNotInNamespaceIfNotBeenSet(string methodName)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            var actInProject = testConfig.IsInProjectNamespace(methodName);

            // Assert
            Assert.False(actInProject);
        }

        [Theory]
        [InlineData("ComA.ComB.Call()", true)]
        [InlineData("ComC.MyCall()", true)]
        [InlineData("ComD.ComA.ComB.Call()", false)]
        [InlineData(null, false)]
        [InlineData("", false)]
        public void ProjectNamespaces_ProjectMethodCallsAreIdentifiedCorrectly(string methodName, bool expInProject)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.ProjectNamespaces = new[] { "ComA", "ComC" };
            var actInProject = testConfig.IsInProjectNamespace(methodName);

            // Assert
            Assert.Equal(expInProject, actInProject);
        }

        [Theory]
        [InlineData("Class1")]
        [InlineData("Class2")]
        [InlineData("Class3")]
        [InlineData("Class4")]
        [InlineData("Class5")]
        [InlineData(null)]
        [InlineData("")]
        public void IgnoreClasses_AllClassesAreNotIgnoredIfNotBeenSet(string className)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            var actIgnoreClass = testConfig.IsClassToIgnore(className);

            // Assert
            Assert.False(actIgnoreClass);
        }

        [Theory]
        [InlineData("Class1", false)]
        [InlineData("Class2", true)]
        [InlineData("Class3", false)]
        [InlineData("Class4", false)]
        [InlineData("Class5", true)]
        [InlineData(null, false)]
        [InlineData("", false)]
        public void IgnoreClasses_ClassesToIgnoreAreIdentifiedCorrectly(string className, bool expIgnoreClass)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.IgnoreClasses = new[] { "Class2", "Class5" };
            var actIgnoreClass = testConfig.IsClassToIgnore(className);

            // Assert
            Assert.Equal(expIgnoreClass, actIgnoreClass);
        }

        [Theory]
        [InlineData("Entry1")]
        [InlineData("Entry2")]
        [InlineData("Entry3")]
        [InlineData("Entry4")]
        [InlineData("Entry5")]
        [InlineData(null)]
        [InlineData("")]
        public void Filters_AllEntriesAreNotFilteredIfNotBeenSet(string entryKey)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            var actFilterEntry = testConfig.IsEntryFiltered(entryKey);

            // Assert
            Assert.False(actFilterEntry);
        }

        [Theory]
        [InlineData("Entry1", true)]
        [InlineData("Entry2", false)]
        [InlineData("Entry3", true)]
        [InlineData("Entry4", false)]
        [InlineData("Entry5", true)]
        [InlineData(null, false)]
        [InlineData("", false)]
        public void Filters_EntriesToFilterAreIdentifiedCorrectly(string entryKey, bool expFilterEntry)
        {
            // Arrange
            var testConfig = new Configuration("123456");

            // Act
            testConfig.MetadataFilters = new[] { "Entry1", "Entry3", "Entry5" };
            var actFilterEntry = testConfig.IsEntryFiltered(entryKey);

            // Assert
            Assert.Equal(expFilterEntry, actFilterEntry);
        }

        [Fact]
        public void RunBeforeNotifyCallbacks_WillReturnIfCallbackExceptions()
        {
            // Arrange
            var testConfig = new Configuration("123456");
            var testExp = new System.Exception("Test Stack Overflow");
            var testEvent = new Event(testExp);

            bool callbackHasRun = false;
            testConfig.BeforeNotify(err =>
            {
                callbackHasRun = true;
                Assert.Equal(testEvent, err);
                throw new System.AccessViolationException("Invalid Access");
            });

            // Act
            bool returnValue = testConfig.RunBeforeNotifyCallbacks(testEvent);

            // Assert
            Assert.True(returnValue);
            Assert.True(callbackHasRun);
        }

        [Fact]
        public void RunBeforeNotifyCallbacks_WillRunMultipleCallbacks()
        {
            // Arrange
            var testConfig = new Configuration("123456");
            var testExp = new System.Exception("Test Stack Overflow");
            var testEvent = new Event(testExp);

            bool firstCallbackHasRun = false;
            bool secondCallbackHasRun = false;
            testConfig.BeforeNotify(err =>
            {
                firstCallbackHasRun = true;
                Assert.Equal(testEvent, err);
                return true;
            });
            testConfig.BeforeNotify(err =>
            {
                secondCallbackHasRun = true;
                Assert.Equal(testEvent, err);
                return true;
            });

            // Act
            bool returnValue = testConfig.RunBeforeNotifyCallbacks(testEvent);

            // Assert
            Assert.True(returnValue);
            Assert.True(firstCallbackHasRun);
            Assert.True(secondCallbackHasRun);
        }

        [Fact]
        public void RunBeforeNotifyCallbacks_WillStopRunning()
        {
            // Arrange
            var testConfig = new Configuration("123456");
            var testExp = new System.Exception("Test Stack Overflow");
            var testEvent = new Event(testExp);

            bool firstCallbackHasRun = false;
            bool secondCallbackHasRun = false;
            testConfig.BeforeNotify(err =>
            {
                firstCallbackHasRun = true;
                Assert.Equal(testEvent, err);
                return false;
            });
            testConfig.BeforeNotify(err =>
            {
                secondCallbackHasRun = true;
                Assert.Equal(testEvent, err);
                return true;
            });

            // Act
            bool returnValue = testConfig.RunBeforeNotifyCallbacks(testEvent);

            // Assert
            Assert.False(returnValue);
            Assert.True(firstCallbackHasRun);
            Assert.False(secondCallbackHasRun);
        }
    }
}


text:
package com.zimbra.cs.filter.jsieve;

import org.apache.jsieve.Argument;
import org.apache.jsieve.Arguments;
import org.apache.jsieve.Block;
import org.apache.jsieve.SieveContext;
import org.apache.jsieve.StringListArgument;
import org.apache.jsieve.commands.AbstractActionCommand;
import org.apache.jsieve.exception.SieveException;
import org.apache.jsieve.exception.SyntaxException;
import org.apache.jsieve.mail.MailAdapter;

import java.util.List;

public class Reply extends AbstractActionCommand {

    @Override
    protected Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
            throws SieveException {
        String bodyTemplate = ((StringListArgument) arguments.getArgumentList().get(0)).getList().get(0);
        mail.addAction(new ActionReply(bodyTemplate));
        return null;
    }

    @Override
    protected void validateArguments(Arguments arguments, SieveContext context)
            throws SieveException {
        List<Argument> args = arguments.getArgumentList();
        if (args.size() != 1)
            throw new SyntaxException("Exactly 1 argument permitted. Found " + args.size());

        Argument argument = args.get(0);
        if (!(argument instanceof StringListArgument))
            throw new SyntaxException("Expected text");

        if (((StringListArgument) argument).getList().size() != 1)
            throw new SyntaxException("Expected exactly one text");
    }
}


text:
<?php

namespace Sylius\Component\Grid\DataExtractor;

use Sylius\Component\Grid\Definition\Field;

/**
 * @author Paweł Jędrzejewski <pawel@sylius.org>
 */
interface DataExtractorInterface
{
    /**
     * @param Field $field
     * @param mixed $data
     *
     * @return mixed
     */
    public function get(Field $field, $data);
}


text:
//
//  MemoryMap.hpp
//  Clock Signal
//
//  Created by Thomas Harte on 04/10/2021.
//  Copyright © 2021 Thomas Harte. All rights reserved.
//

#ifndef MemoryMap_hpp
#define MemoryMap_hpp

#include "../../Analyser/Static/Amiga/Target.hpp"

#include <array>
#include <cassert>
#include <vector>

namespace Amiga {

class MemoryMap {
	private:
		static constexpr auto PermitRead = CPU::MC68000Mk2::Microcycle::PermitRead;
		static constexpr auto PermitWrite = CPU::MC68000Mk2::Microcycle::PermitWrite;
		static constexpr auto PermitReadWrite = PermitRead | PermitWrite;

	public:
		std::array<uint8_t, 512*1024> kickstart{0xff};
		std::vector<uint8_t> chip_ram{};

		struct MemoryRegion {
			uint8_t *contents = nullptr;
			unsigned int read_write_mask = 0;
		} regions[64];	// i.e. top six bits are used as an index.

		using FastRAM = Analyser::Static::Amiga::Target::FastRAM;
		using ChipRAM = Analyser::Static::Amiga::Target::ChipRAM;
		MemoryMap(ChipRAM chip_ram_size, FastRAM fast_ram_size) {
			// Address spaces that matter:
			//
			//	00'0000 – 08'0000:	chip RAM.	[or overlayed KickStart]
			//	– 10'0000: extended chip ram for ECS.
			//	– 20'0000: slow RAM and further chip RAM.
			//	– a0'0000: auto-config space (/fast RAM).
			//	...
			//	bf'd000 – c0'0000: 8250s.
			//	c0'0000 – d8'0000: pseudo-fast RAM.
			//	...
			//	dc'0000 – dd'0000: optional real-time clock.
			//	df'f000 - e0'0000: custom chip registers.
			//	...
			//	f0'0000 — : 512kb Kickstart (or possibly just an extra 512kb reserved for hypothetical 1mb Kickstart?).
			//	f8'0000 — : 256kb Kickstart if 2.04 or higher.
			//	fc'0000 – : 256kb Kickstart otherwise.
			set_region(0xfc'0000, 0x1'00'0000, kickstart.data(), PermitRead);

			switch(chip_ram_size) {
				default:
				case ChipRAM::FiveHundredAndTwelveKilobytes:
					chip_ram.resize(512 * 1024);
				break;
				case ChipRAM::OneMegabyte:
					chip_ram.resize(1 * 1024 * 1024);
				break;
				case ChipRAM::TwoMegabytes:
					chip_ram.resize(2 * 1024 * 1024);
				break;
			}

			switch(fast_ram_size) {
				default:
					fast_autoconf_visible_ = false;
				break;
				case FastRAM::OneMegabyte:
					fast_ram_.resize(1 * 1024 * 1024);
					fast_ram_size_ = 5;
				break;
				case FastRAM::TwoMegabytes:
					fast_ram_.resize(2 * 1024 * 1024);
					fast_ram_size_ = 6;
				break;
				case FastRAM::FourMegabytes:
					fast_ram_.resize(4 * 1024 * 1024);
					fast_ram_size_ = 7;
				break;
				case FastRAM::EightMegabytes:
					fast_ram_.resize(8 * 1024 * 1024);
					fast_ram_size_ = 0;
				break;
			}

			reset();
		}

		void reset() {
			set_overlay(true);
		}

		void set_overlay(bool enabled) {
			if(overlay_ == enabled) {
				return;
			}
			overlay_ = enabled;

			set_region(0x00'0000, uint32_t(chip_ram.size()), chip_ram.data(), PermitReadWrite);
			if(enabled) {
				set_region(0x00'0000, 0x08'0000, kickstart.data(), PermitRead);
			}
		}

		/// Performs the provided microcycle, which the caller guarantees to be a memory access,
		/// and in the Zorro register range.
		bool perform(const CPU::MC68000Mk2::Microcycle &cycle) {
			if(!fast_autoconf_visible_) return false;

			const uint32_t register_address = *cycle.address & 0xfe;

			using Microcycle = CPU::MC68000Mk2::Microcycle;
			if(cycle.operation & Microcycle::Read) {
				// Re: Autoconf:
				//
				// "All read registers physically return only the top 4 bits of data, on D31-D28";
				// (this is from Zorro III documentation; I'm assuming it to be D15–D11 for the
				// 68000's 16-bit bus);
				//
				// "Every AUTOCONFIG register is logically considered to be 8 bits wide; the
				// 8 bits actually being nybbles from two paired addresses."

				uint8_t value = 0xf;
				switch(register_address) {
					default: break;

					case 0x00:	// er_Type (high)
						value =
							0xc |	// Zoro II-style PIC.
							0x2;	// Memory will be linked into the free pool
					break;
					case 0x02:	// er_Type (low)
						value = fast_ram_size_;
					break;

					// er_Manufacturer
					//
					// On the manufacturer number: this is supposed to be assigned
					// by Commodore. TODO: find and crib a real fast RAM number, if it matters.
					//
					// (0xffff seems to be invalid, so _something_ needs to be supplied)
					case 0x10:	case 0x12:
						value = 0xa; // Manufacturer's number, high byte.
					break;
					case 0x14:	case 0x16:
						value = 0xb;		// Manufacturer's number, low byte.
					break;
				}

				// Shove the value into the top of the data bus.
				cycle.set_value16(uint16_t(0x0fff | (value << 12)));
			} else {
				fast_autoconf_visible_ &= !(register_address >= 0x4c && register_address < 0x50);

				switch(register_address) {
					default: break;

					case 0x48: {	// ec_BaseAddress (A23–A16)
						const auto address = uint32_t(cycle.value8_high()) << 16;
						set_region(address, uint32_t(address + fast_ram_.size()), fast_ram_.data(), PermitRead | PermitWrite);
						fast_autoconf_visible_ = false;
					} break;
				}
			}

			return true;
		}

	private:
		std::vector<uint8_t> fast_ram_{};
		uint8_t fast_ram_size_ = 0;

		bool fast_autoconf_visible_ = true;
		bool overlay_ = false;

		void set_region(uint32_t start, uint32_t end, uint8_t *base, unsigned int read_write_mask) {
			[[maybe_unused]] constexpr uint32_t precision_loss_mask = uint32_t(~0xfc'0000);
			assert(!(start & precision_loss_mask));
			assert(!((end - (1 << 18)) & precision_loss_mask));
			assert(end > start);

			if(base) base -= start;
			for(decltype(start) c = start >> 18; c < end >> 18; c++) {
				regions[c].contents = base;
				regions[c].read_write_mask = read_write_mask;
			}
		}
};

}
#endif /* MemoryMap_hpp */


text:
package com.intellij.ide.actions.searcheverywhere;

import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Objects;

public class PsiElementsEqualityProvider extends AbstractEqualityProvider {

  @Override
  public boolean areEqual(@NotNull SearchEverywhereFoundElementInfo newItemInfo, @NotNull SearchEverywhereFoundElementInfo alreadyFoundItemInfo) {
    PsiElement newElementPsi = toPsi(newItemInfo.getElement());
    PsiElement alreadyFoundPsi = toPsi(alreadyFoundItemInfo.getElement());

    return newElementPsi != null && alreadyFoundPsi != null
           && Objects.equals(newElementPsi, alreadyFoundPsi);
  }

  @Nullable
  public static PsiElement toPsi(Object o) {
    return PSIPresentationBgRendererWrapper.toPsi(o);
  }
}


text:
START_ATF_NAMESPACE
    struct _SECURITY_DESCRIPTOR_RELATIVE
    {
        char Revision;
        char Sbz1;
        unsigned __int16 Control;
        unsigned int Owner;
        unsigned int Group;
        unsigned int Sacl;
        unsigned int Dacl;
    };
END_ATF_NAMESPACE


text:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="benzm.yugiohlifepointcounter.LifePointFragment">

    <RelativeLayout
        android:id="@+id/topPanel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:id="@+id/LpView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginStart="10dp"
            android:layout_marginLeft="10dp"
            android:layout_toEndOf="@id/signButton"
            android:layout_toRightOf="@id/signButton"
            android:freezesText="true"
            android:text="8000"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:textSize="60sp" />

        <Button
            android:id="@+id/signButton"
            style="?android:attr/buttonStyleSmall"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:freezesText="true"
            android:minHeight="0px"
            android:text="-"
            android:textColor="#ff0000"
            android:textSize="30sp" />

        <TextView
            android:id="@+id/changeLpView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/LpView"
            android:layout_centerHorizontal="true"
            android:text=""
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="#bf1a1a"
            android:textSize="20sp" />

    </RelativeLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0px"
        android:layout_weight="1"
        android:gravity="center"
        android:orientation="vertical"
        android:padding="5dp">

        <Button
            android:id="@+id/changeLpLeftButton"
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1"
            android:freezesText="true"
            android:text="-1000"
            android:textColor="@color/negativeRed"
            android:textSize="30sp" />

        <Button
            android:id="@+id/changeLpMiddleButton"
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1"
            android:freezesText="true"
            android:text="-500"
            android:textColor="@color/negativeRed"
            android:textSize="30sp" />

        <Button
            android:id="@+id/changeLpRightButton"
            style="?android:attr/buttonStyleSmall"
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1"
            android:freezesText="true"
            android:text="-100"
            android:textColor="@color/negativeRed"
            android:textSize="30sp" />

    </LinearLayout>

    <TextView
        android:id="@+id/playerNameView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="10dp"
        android:clickable="true"
        android:freezesText="true"
        android:gravity="center"
        android:maxLines="1"
        android:text="testitest"
        android:textSize="18sp" />

</LinearLayout>