text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>9</version>
	</parent>
	<groupId>org.bigtester</groupId>
	<artifactId>org.bigtester.ate.core</artifactId>
	<version>0.0.3-SNAPSHOT</version>
	<packaging>jar</packaging>

	<name>Automation Test Engine Core</name>
	<description>The Automation Test Engine Core project</description>
	<url>http://maven.apache.org</url>

	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<url>https://github.com/bigtester/automation-test-engine/tree/master/org.bigtester.ate.core</url>
	</scm>

	<repositories>
		<!-- <repository> -->
		<!-- <id>github-repo</id> -->
		<!-- <url>https://github.com/kpelykh/mvnrepo/raw/master/releases</url> -->
		<!-- </repository> -->
		<!-- <repository> -->
		<!-- <id>ProjectRepo</id> -->
		<!-- <name>ProjectRepo</name> -->
		<!-- <url>file://${project.basedir}/src/lib</url> -->
		<!-- </repository> -->

	</repositories>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven-compiler-plugin.version>3.0</maven-compiler-plugin.version>
		<slf4j.version>1.7.7</slf4j.version>
		<logback.version>1.1.2</logback.version>
	</properties>
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-gpg-plugin</artifactId>
					<version>1.5</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.4.2</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.7</version>
				<configuration>
					<downloadSources>true</downloadSources>
					<downloadJavadocs>false</downloadJavadocs>
					<wtpversion>2.0</wtpversion>
					<additionalBuildcommands>
						<buildCommand>
							<name>org.springframework.ide.eclipse.core.springbuilder</name>
						</buildCommand>
					</additionalBuildcommands>
					<additionalProjectnatures>
						<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
					</additionalProjectnatures>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>${maven-compiler-plugin.version}</version>
				<configuration>
					<!-- or whatever version you use -->
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
			<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>exec-maven-plugin</artifactId>
	<version>1.1.1</version>
	<executions>
		<execution>
			<phase>install</phase>
			<goals>
				<goal>java</goal>
			</goals>
			<configuration>

				<mainClass>org.bigtester.ate.TestProjectRunner</mainClass>
				<arguments>
					<argument>dentistSmokeTest/testproject.xml</argument>
				</arguments>
			</configuration>
		</execution>
	</executions>
</plugin>

			<!-- <plugin> -->
			<!-- <groupId>org.apache.maven.plugins</groupId> -->
			<!-- <artifactId>maven-shade-plugin</artifactId> -->
			<!-- <version>2.1</version> -->

			<!-- <executions> -->
			<!-- <execution> -->
			<!-- <phase>package</phase> -->
			<!-- <goals> -->
			<!-- <goal>shade</goal> -->
			<!-- </goals> -->
			<!-- <configuration> -->
			<!-- <finalName>ate</finalName> -->
			<!-- <shadedArtifactAttached>true</shadedArtifactAttached> -->
			<!-- <shadedClassifierName>jar-with-dependencies</shadedClassifierName> -->
			<!-- <transformers> -->
			<!-- <transformer -->
			<!-- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> -->
			<!-- <mainClass>org.bigtester.ate.TestProjectRunner</mainClass> -->
			<!-- </transformer> -->
			<!-- <transformer -->
			<!-- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> -->
			<!-- <resource>META-INF/spring.handlers</resource> -->
			<!-- </transformer> -->
			<!-- <transformer -->
			<!-- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> -->
			<!-- <resource>META-INF/spring.schemas</resource> -->
			<!-- </transformer> -->
			<!-- <transformer -->
			<!-- implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> -->
			<!-- <resource>META-INF/spring.tooling</resource> -->
			<!-- </transformer> -->
			<!-- </transformers> -->
			<!-- <filters> -->
			<!-- <filter> -->
			<!-- <artifact>*:*</artifact> -->
			<!-- <excludes> -->
			<!-- <exclude>META-INF/*.SF</exclude> -->
			<!-- <exclude>META-INF/*.DSA</exclude> -->
			<!-- <exclude>META-INF/*.RSA</exclude> -->
			<!-- </excludes> -->
			<!-- </filter> -->
			<!-- </filters> -->
			<!-- </configuration> -->
			<!-- </execution> -->
			<!-- </executions> -->
			<!-- </plugin> -->

		</plugins>

	</build>
	<dependencies>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-entitymanager</artifactId>
			<version>4.3.6.Final</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-orm</artifactId>
			<version>4.0.5.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>org.hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
			<version>2.3.2</version>
		</dependency>
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>6.8.8</version>
		</dependency>
		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-java</artifactId>
			<version>2.43.1</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>4.0.5.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>4.0.5.RELEASE</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>1.7.7</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.7</version>
		</dependency>
		<!-- <dependency> -->
		<!-- <groupId>org.slf4j</groupId> -->
		<!-- <artifactId>slf4j-log4j12</artifactId> -->
		<!-- <version>1.7.7</version> -->
		<!-- <scope>runtime</scope> -->
		<!-- </dependency> -->
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.1.2</version>
		</dependency>

		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-core</artifactId>
			<version>1.1.2</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-access</artifactId>
			<version>1.1.2</version>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.14</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</artifactId>
			<version>4.0.5.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>com.jamonapi</groupId>
			<artifactId>jamon</artifactId>
			<version>2.78</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aspects</artifactId>
			<version>4.0.5.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib</artifactId>
			<version>2.2</version>
		</dependency>
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
			<version>1.7.3</version>
		</dependency>
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjweaver</artifactId>
			<version>1.7.3</version>
		</dependency>
<!-- 		<dependency> -->
<!-- 			<groupId>org.bigtester</groupId> -->
<!-- 			<artifactId>org.bigtester.general.problomatic2</artifactId> -->
<!-- 			<version>0.0.1-SNAPSHOT</version> -->
<!-- 		</dependency> -->
		<!-- <dependency> -->
		<!-- <groupId>net.xeon</groupId> -->
		<!-- <artifactId>jspf.core</artifactId> -->
		<!-- <version>1.0.3</version> -->
		<!-- </dependency> -->
		<dependency>
			<groupId>org.springframework.plugin</groupId>
			<artifactId>spring-plugin-core</artifactId>
			<version>1.1.0.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.plugin</groupId>
			<artifactId>spring-plugin-integration</artifactId>
			<version>1.0.0.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.plugin</groupId>
			<artifactId>spring-plugin-metadata</artifactId>
			<version>1.1.0.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>xml-apis</groupId>
			<artifactId>xml-apis</artifactId>
			<version>1.4.01</version>
		</dependency>
		<dependency>
			<groupId>org.codehaus.janino</groupId>
			<artifactId>janino</artifactId>
			<version>2.5.16</version>
		</dependency>

<!-- 		<dependency> -->
<!-- 			<groupId>org.projectlombok</groupId> -->
<!-- 			<artifactId>lombok</artifactId> -->
<!-- 			<version>1.14.8</version> -->
<!-- 		</dependency> -->

		<dependency>
			<groupId>org.dbunit</groupId>
			<artifactId>dbunit</artifactId>
			<version>2.5.0</version>
		</dependency>
		<dependency>
    <groupId>org.eclipse.jdt</groupId>
    <artifactId>org.eclipse.jdt.annotation</artifactId>
    <version>1.1.0</version>
</dependency>
<dependency>
    <groupId>com.google.inject</groupId>
    <artifactId>guice</artifactId>
    <version>4.0-beta5</version>
</dependency>
<dependency>
    <groupId>net.jodah</groupId>
    <artifactId>typetools</artifactId>
    <version>0.4.0</version>
</dependency>
<dependency>
    <groupId>com.github.javaparser</groupId>
    <artifactId>javaparser-core</artifactId>
    <version>2.0.0</version>
</dependency>

<dependency>
	<groupId>org.jodd</groupId>
	<artifactId>jodd</artifactId>
	<version>3.3.8</version>
</dependency>
<dependency>
    <groupId>org.eclipse.aether</groupId>
    <artifactId>aether-api</artifactId>
    <version>1.0.2.v20150114</version>
</dependency>
<dependency>
    <groupId>org.apache.maven</groupId>
    <artifactId>maven-aether-provider</artifactId>
    <version>3.2.5</version>
</dependency>
<dependency>
    <groupId>org.eclipse.aether</groupId>
    <artifactId>aether-connector-basic</artifactId>
    <version>1.0.2.v20150114</version>
</dependency>
<dependency>
    <groupId>org.eclipse.aether</groupId>
    <artifactId>aether-transport-http</artifactId>
    <version>1.0.2.v20150114</version>
</dependency>
<dependency>
    <groupId>org.eclipse.aether</groupId>
    <artifactId>aether-transport-file</artifactId>
    <version>1.0.2.v20150114</version>
</dependency>

<dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>3.0.21</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-compat</artifactId>
      <version>3.2.5</version>
      <exclusions>
        <exclusion>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-utils</artifactId>
        </exclusion>
        <exclusion>
          <artifactId>sisu-inject-plexus</artifactId>
          <groupId>org.sonatype.sisu</groupId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>org.apache.maven.wagon</groupId>
      <artifactId>wagon-http-lightweight</artifactId>
      <version>2.8</version>
      <exclusions>
        <exclusion>
          <groupId>nekohtml</groupId>
          <artifactId>nekohtml</artifactId>
        </exclusion>
        <exclusion>
          <groupId>nekohtml</groupId>
          <artifactId>xercesMinimal</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

	</dependencies>

</project>


text:
package com.github.scribejava.apis.examples;

import java.util.Scanner;
import com.github.scribejava.core.builder.ServiceBuilder;
import com.github.scribejava.apis.VkontakteApi;
import com.github.scribejava.core.model.OAuth2AccessToken;
import com.github.scribejava.core.model.OAuthRequest;
import com.github.scribejava.core.model.Response;
import com.github.scribejava.core.model.Verb;
import com.github.scribejava.core.oauth.OAuth20Service;
import com.github.scribejava.httpclient.ahc.AhcHttpClient;
import java.io.IOException;
import java.util.concurrent.ExecutionException;
import org.asynchttpclient.DefaultAsyncHttpClient;
import org.asynchttpclient.DefaultAsyncHttpClientConfig;

public class VkontakteExternalHttpExample {

    private static final String NETWORK_NAME = "Vkontakte.ru";
    private static final String PROTECTED_RESOURCE_URL = "https://api.vk.com/method/users.get?v="
            + VkontakteApi.VERSION;

    private VkontakteExternalHttpExample() {
    }

    @SuppressWarnings("PMD.SystemPrintln")
    public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
        // Replace these with your client id and secret
        final String clientId = "your client id";
        final String clientSecret = "your client secret";

        //create any http client externally
        final DefaultAsyncHttpClientConfig httpClientConfig = new DefaultAsyncHttpClientConfig.Builder()
                .setMaxConnections(5)
                .setRequestTimeout(10_000)
                .setPooledConnectionIdleTimeout(1_000)
                .setReadTimeout(1_000)
                .build();
        //wrap it
        try (DefaultAsyncHttpClient ahcHttpClient = new DefaultAsyncHttpClient(httpClientConfig)) {
            //wrap it
            final AhcHttpClient wrappedAHCHttpClient = new AhcHttpClient(ahcHttpClient);

            final OAuth20Service service = new ServiceBuilder(clientId)
                    .httpClient(wrappedAHCHttpClient)
                    .apiSecret(clientSecret)
                    .defaultScope("wall,offline") // replace with desired scope
                    .callback("http://your.site.com/callback")
                    .build(VkontakteApi.instance());
            final Scanner in = new Scanner(System.in);

            System.out.println("=== " + NETWORK_NAME + "'s OAuth Workflow ===");
            System.out.println();

            // Obtain the Authorization URL
            System.out.println("Fetching the Authorization URL...");
            final String authorizationUrl = service.getAuthorizationUrl();
            System.out.println("Got the Authorization URL!");
            System.out.println("Now go and authorize ScribeJava here:");
            System.out.println(authorizationUrl);
            System.out.println("And paste the authorization code here");
            System.out.print(">>");
            final String code = in.nextLine();
            System.out.println();

            System.out.println("Trading the Authorization Code for an Access Token...");
            final OAuth2AccessToken accessToken = service.getAccessToken(code);
            System.out.println("Got the Access Token!");
            System.out.println("(The raw response looks like this: " + accessToken.getRawResponse()
                    + "')");
            System.out.println();

            // Now let's go and ask for a protected resource!
            System.out.println("Now we're going to access a protected resource...");
            final OAuthRequest request = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL);
            service.signRequest(accessToken, request);
            final Response response = service.execute(request);
            System.out.println("Got it! Lets see what we found...");
            System.out.println();
            System.out.println(response.getCode());
            System.out.println(response.getBody());

            System.out.println();
            System.out.println("Thats it man! Go and build something awesome with ScribeJava! :)");
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
var ObjectId = require('@carbon-io/carbon-core').leafnode.mongodb.ObjectId
var uuid = require('uuid')

var oo = require('@carbon-io/carbon-core').atom.oo(module)

module.exports = oo({

  /*****************************************************************************
   * _type
   */
  _type: './IdGenerator',
  _ctorName: 'UUIDGenerator',

  /*****************************************************************************
   * @constructs UUIDGenerator
   * @description Generates UUIDs
   * @memberof carbond
   * @extends carbond.IdGenerator
   */
  _C: function() {

    // -----------------------------
    // Computed read-only properties
    // -----------------------------

    /***************************************************************************
     * @property {Function} [_uuid] -- xxx
     * @ignore
     */
    this._uuid = undefined

    // -----------------------
    // Configurable properties
    // -----------------------

    /***************************************************************************
     * @property {number} version -- The UUID version to to use [choices: 1, 4]
     */
    this.version = 1
  },

  /*****************************************************************************
   * @property {Array.<string>} _frozenProperties
   * @description The list of properties to freeze after initialization
   * @readonly
   */
  _frozenProperties: [
    '_uuid'
  ],

   /****************************************************************************
    * @method _init
    * @description Initializes the internal UUID generation function
    * @returns {undefined}
    * @throws {RangeError}
    */
  _init: function() {
    switch (this.version) {
      case 1:
        this._uuid = uuid.v1
        break
      case 4:
        this._uuid = uuid.v4
        break
      default:
        throw new RangeError(
          'UUID versions 1 and 4 are supported, got: ' + this.version)
    }
  },

  /*****************************************************************************
   * @method generateId
   * @description Generates an ID
   * @returns {string}
   */
  generateId: function() {
    return this._uuid()
  }
})


text:
Stratus5

### Stateful Applications that you are running on OpenEBS

* Redis
* Ceryx
* MySQL, MariaDB
* Wordpress

### Type of OpenEBS Storage Engines behind the above application - cStor, Jiva or Local PV?

cStor

### Are you evaluating or already using in development, CI/CD, production

Already using in dev and next release will be use in production

### Are you using for home use or for your organization

Using for the organization

### A brief description of the use case or details on how OpenEBS is helping your projects.

We are using OpenEBS to store certificates for Ceryx router-loadbalancer with NFS on OpenEBS cstor volumes. Also for Redis for the same setup of API programmable routing clusters (ceryx+redis+custom agent). We also experimenting with Wordpress and MySQL, MariaDB setup with persistent volumes on OpenEBS.


text:
namespace Hudl.FFmpeg.Enums
{
    public enum SetPtsExpressionType
    {
        /// <summary>
        /// sets the expression type as reset timestamps
        /// </summary>
        ResetTimestamp,
    }
}


text:
angular.module('numeric-keyboard')
    .controller('numericKeyboardController', ['$scope', 'numericKeyboardService',
        function ($scope, numericKeyboardService) {
            'use strict';

            var self = this;

            self.decimalSeparator =  $scope.commaSeparator ? ',' : '.'; // COMMA or DOT

            // CONFIG SERVICE
            numericKeyboardService.setDecimalSeparator(self.decimalSeparator);

            // Detection for touch devices
            self.isTouchDevice = function isTouchDevice() {
                return window['ontouchstart'] !== undefined ||
                    (navigator.maxTouchPoints > 0) ||
                    (navigator.msMaxTouchPoints > 0);
            };

            // API
            self.keyboardVisibility    = numericKeyboardService.isKeyboardVisible;
            self.toggleVisibility      = numericKeyboardService.toggleKeyboardVisibility;
            self.clickNumber           = numericKeyboardService.clickNumber;
            self.clickDecimalSeparator = numericKeyboardService.clickDecimalSeparator;
            self.clickConfirm          = numericKeyboardService.clickConfirm;
            self.clickDelete           = numericKeyboardService.clickDelete;
            self.startDelete           = numericKeyboardService.startDelete;
            self.stopDelete            = numericKeyboardService.stopDelete;
        }]);


text:
package loader

import (
	"encoding/xml"
	r "github.com/jteeuwen/go-pkg-rss"
	"io/ioutil"
	"net/http"
	"strings"
)

type RSS struct {
	XMLName xml.Name `xml:"rss"`
	Items   Items    `xml:"channel"`
}

type RDF struct {
	XMLName xml.Name `xml:"RDF"`
	Channel *Channel `xml:"channel"`
	Item    []*Item  `xml:"item"`
}

type Items struct {
	XMLName  xml.Name `xml:"channel"`
	ItemList []Item   `xml:"item"`
}

type Channel struct {
	Title       string `xml:"title"`
	Description string `xml:"description"`
	Link        string `xml:"link"`
	Date        string `xml:"date"`
}

type Item struct {
	Title       string `xml:"title"`
	Link        string `xml:"link"`
	Description string `xml:"description"`
}

func getXMLDataFromUrl(url string) (xmlRes RSS) {
	resp, err := http.Get(url)
	perror(err)
	xmlDataFromHttp, err := ioutil.ReadAll(resp.Body)
	perror(err)
	err = xml.Unmarshal([]byte(xmlDataFromHttp), &xmlRes)
	perror(err)
	return xmlRes
}

func getRDFDataFromUrl(url string) (rdfRes RDF) {
	resp, err := http.Get(url)
	perror(err)
	rdfDataFromHttp, err := ioutil.ReadAll(resp.Body)
	perror(err)
	err = xml.Unmarshal([]byte(rdfDataFromHttp), &rdfRes)
	perror(err)
	return rdfRes
}

func GetRssFeed(name string, url string, rss chan ResultData) {
	var result ResultData
	var RSSTitle, RSSUrl []string

	xml := getXMLDataFromUrl(url)
	for _, item := range xml.Items.ItemList[0:5] {
		RSSTitle = append(RSSTitle, strings.Replace(item.Title, "\n", "", -1))
		RSSUrl = append(RSSUrl, strings.Replace(item.Link, "\n", "", -1))
	}
	result.Setter(name, RSSTitle, RSSUrl)
	rss <- result
}

func GetRdfFeed(name string, url string, rdf chan ResultData) {
	var result ResultData
	var RDFTitle, RDFUrl []string

	xml := getRDFDataFromUrl(url)
	for _, item := range xml.Item[0:5] {
		RDFTitle = append(RDFTitle, strings.Replace(item.Title, "\n", "", -1))
		RDFUrl = append(RDFUrl, strings.Replace(item.Link, "\n", "", -1))
	}
	result.Setter(name, RDFTitle, RDFUrl)
	rdf <- result
}

func GetRssFeedWithDesc(name string, url string, rss chan ResultData) {
	var result ResultData
	var RSSTitle, RSSUrl []string

	xml := getXMLDataFromUrl(url)
	for _, item := range xml.Items.ItemList[0:5] {
		RSSTitle = append(RSSTitle, strings.Replace(item.Title+": "+removeBreak(item.Description), "\n", "", -1))
		RSSUrl = append(RSSUrl, strings.Replace(item.Link, "\n", "", -1))
	}
	result.Setter(name, RSSTitle, RSSUrl)
	rss <- result
}

func GetRdfFeedWithDesc(name string, url string, rdf chan ResultData) {
	var result ResultData
	var RDFTitle, RDFUrl []string

	xml := getRDFDataFromUrl(url)
	for _, item := range xml.Item[0:5] {
		RDFTitle = append(RDFTitle, strings.Replace(item.Title+": "+removeBreak(item.Description), "\n", "", -1))
		RDFUrl = append(RDFUrl, strings.Replace(item.Link, "\n", "", -1))
	}
	result.Setter(name, RDFTitle, RDFUrl)
	rdf <- result
}

func itemHandler(feed *r.Feed, ch *r.Channel, newitems []*r.Item) {
	for _, item := range newitems[0:5] {
		pp(" - " + item.Title + "\n")
		pp("   - " + item.Links[0].Href + "\n")
	}
	pp("\n")
}

func itemHandlerWithDescription(feed *r.Feed, ch *r.Channel, newitems []*r.Item) {
	for _, item := range newitems[0:5] {
		pp(" - " + item.Title + ": " + removeBreak(item.Description) + "\n")
		pp("   - " + item.Links[0].Href + "\n")
	}
	pp("\n")
}

func GetUnitRssFeed(uri string) {
	timeout := 5
	feed := r.New(timeout, true, nil, itemHandler)
	err := feed.Fetch(uri, nil)
	perror(err)
}

func GetUnitRssFeedWithDesc(uri string) {
	timeout := 5
	feed := r.New(timeout, true, nil, itemHandlerWithDescription)
	err := feed.Fetch(uri, nil)
	perror(err)
}


text:
from django.conf.urls.defaults import *
urlpatterns = patterns('',
	url(r'remove_field/?', 'dataviewer.views.tables.remove_field', name='dataviewer.remove_field_from_table'),
    url(r'new/?', 'dataviewer.views.tables.new', name='dataviewer.new_table'),
	url(r'create/?', 'dataviewer.views.tables.create', name='dataviewer.create_table'),
	url(r'edit/(?P<table_id>\d+)/?', 'dataviewer.views.tables.edit', name='dataviewer.edit_table'),
	url(r'update/(?P<table_id>\d+)/?', 'dataviewer.views.tables.update', name='dataviewer.update_table'),
	url(r'delete/(?P<table_id>\d+)/?', 'dataviewer.views.tables.delete', name='dataviewer.delete_table'),
	url(r'(?P<table_id>\d+)/?', 'dataviewer.views.tables.view', name='dataviewer.view_table'),
	url(r'/?', 'dataviewer.views.tables.list', name='dataviewer.list_tables'),

)


text:
package vulkan.wrapper.registry.vtype

import vulkan.wrapper.registry.venum.VulkanEnum
import vulkan.wrapper.registry.{Registry, VulkanComponentMappedData}

import scala.xml.Node

class VulkanEnumType(registry: Registry, node: Node) extends VulkanType(registry,node) {
  lazy val enum: VulkanEnum = registry.enums.byName(name)
}

object VulkanEnumType {
  def apply(registry: Registry): VulkanComponentMappedData[VulkanEnumType] =
    VulkanComponentMappedData(registry,(registry.xml \ "types" \ "type").filter(t => t \@ "category" == "enum").map(new VulkanEnumType(registry,_)))
}


text:
#include <jni.h>
#include "common_tools.h"
#include "org_lwjgl_opengles_EGLNVSync.h"
#include "extgl_egl.h"

static PFNEGLCREATEFENCESYNCNVPROC eglCreateFenceSyncNV;
static PFNEGLDESTROYSYNCNVPROC eglDestroySyncNV;
static PFNEGLFENCENVPROC eglFenceNV;
static PFNEGLCLIENTWAITSYNCNVPROC eglClientWaitSyncNV;
static PFNEGLSIGNALSYNCNVPROC eglSignalSyncNV;
static PFNEGLGETSYNCATTRIBNVPROC eglGetSyncAttribNV;

JNIEXPORT jlong JNICALL Java_org_lwjgl_opengles_EGLNVSync_neglCreateFenceSyncNV(JNIEnv *env, jclass clazz, jlong dpy_ptr, jint condition, jlong attrib_list) {
    EGLDisplay dpy = (EGLDisplay)(intptr_t)dpy_ptr;
    const EGLint *attrib_list_address = (EGLint *)(intptr_t)attrib_list;

    return (intptr_t)eglCreateFenceSyncNV(dpy, condition, attrib_list_address);
}

JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengles_EGLNVSync_neglDestroySyncNV(JNIEnv *env, jclass clazz, jlong sync_ptr) {
    EGLSyncNV sync = (EGLSyncNV)(intptr_t)sync_ptr;

    return eglDestroySyncNV(sync);
}

JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengles_EGLNVSync_neglFenceNV(JNIEnv *env, jclass clazz, jlong sync_ptr) {
    EGLSyncNV sync = (EGLSyncNV)(intptr_t)sync_ptr;

    return eglFenceNV(sync);
}

JNIEXPORT jint JNICALL Java_org_lwjgl_opengles_EGLNVSync_neglClientWaitSyncNV(JNIEnv *env, jclass clazz, jlong sync_ptr, jint flags, jlong timeout) {
    EGLSyncNV sync = (EGLSyncNV)(intptr_t)sync_ptr;

    return eglClientWaitSyncNV(sync, flags, timeout);
}

JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengles_EGLNVSync_neglSignalSyncNV(JNIEnv *env, jclass clazz, jlong sync_ptr, jint mode) {
    EGLSyncNV sync = (EGLSyncNV)(intptr_t)sync_ptr;

    return eglSignalSyncNV(sync, mode);
}

JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengles_EGLNVSync_neglGetSyncAttribNV(JNIEnv *env, jclass clazz, jlong sync_ptr, jint attribute, jlong value) {
    EGLSyncNV sync = (EGLSyncNV)(intptr_t)sync_ptr;
    EGLint *value_address = (EGLint *)(intptr_t)value;

    return eglGetSyncAttribNV(sync, attribute, value_address);
}

JNIEXPORT void JNICALL Java_org_lwjgl_opengles_EGLNVSync_initNativeStubs(JNIEnv *env, jclass clazz) {
	JavaMethodAndExtFunction functions[] = {
		{"neglCreateFenceSyncNV", "(JIJ)J", (void *)&Java_org_lwjgl_opengles_EGLNVSync_neglCreateFenceSyncNV, "eglCreateFenceSyncNV", (void *)&eglCreateFenceSyncNV, false},
		{"neglDestroySyncNV", "(J)Z", (void *)&Java_org_lwjgl_opengles_EGLNVSync_neglDestroySyncNV, "eglDestroySyncNV", (void *)&eglDestroySyncNV, false},
		{"neglFenceNV", "(J)Z", (void *)&Java_org_lwjgl_opengles_EGLNVSync_neglFenceNV, "eglFenceNV", (void *)&eglFenceNV, false},
		{"neglClientWaitSyncNV", "(JIJ)I", (void *)&Java_org_lwjgl_opengles_EGLNVSync_neglClientWaitSyncNV, "eglClientWaitSyncNV", (void *)&eglClientWaitSyncNV, false},
		{"neglSignalSyncNV", "(JI)Z", (void *)&Java_org_lwjgl_opengles_EGLNVSync_neglSignalSyncNV, "eglSignalSyncNV", (void *)&eglSignalSyncNV, false},
		{"neglGetSyncAttribNV", "(JIJ)Z", (void *)&Java_org_lwjgl_opengles_EGLNVSync_neglGetSyncAttribNV, "eglGetSyncAttribNV", (void *)&eglGetSyncAttribNV, false}
	};
	int num_functions = NUMFUNCTIONS(functions);
	extgl_InitializeClass(env, clazz, num_functions, functions);
}


text:
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright 2016 Juliane Lehmann <jl@lambdasoup.com>
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~    limitations under the License.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/edit_duration"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:gravity="center"
    android:orientation="horizontal">

    <NumberPicker
        android:id="@+id/calories_picker"
        android:layout_width="60dp"
        android:layout_height="wrap_content"
        android:layout_marginEnd="4dp" />

    <TextView
        android:id="@+id/calories_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/calories_label" />

</LinearLayout>


text:
using HomeSeerAPI;
using NullGuard;
using Scheduler.Classes;
using System.Collections.Generic;
using System.Xml.XPath;

namespace Hspi
{
    [NullGuard(ValidationFlags.Arguments | ValidationFlags.NonPublic)]
    internal sealed class TemperatureMinMaxDeviceData : ScaledNumberDeviceData
    {
        public TemperatureMinMaxDeviceData(string name, XmlPathData pathData) :
            base(name, pathData)
        {
        }

        public override string GetDeviceSuffix(Unit unit)
        {
            return WUWeatherData.GetStringDescription(unit, DeviceUnitType.Temperature);
        }

        public override void UpdateDeviceData(IHSApplication HS, DeviceClass device, [AllowNull]XPathNodeIterator value)
        {
            UpdateFirstNodeAsNumber(HS, device, value);
        }

        public override IList<VSVGPairs.VGPair> GraphicsPairs => GetSingleGraphicsPairs("thermometers.png");
    }
}


text:
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.

#ifndef PXV_PARTICLE_SYSTEM_CORE_H
#define PXV_PARTICLE_SYSTEM_CORE_H

#include "PxvConfig.h"
#include "PxvParticleSystemFlags.h"
#include "particles/PxParticleReadData.h"
#include "PxBounds3.h"
#include "CmBitMap.h"
#include "PxStrideIterator.h"

namespace physx
{

class PxParticleCreationData;
typedef size_t PxvShapeHandle;
typedef size_t PxvBodyHandle;
class PxSerializationContext;

/*!
Particle system / particle fluid parameter. API + internal.
*/
struct PxvParticleSystemParameter
{
//= ATTENTION! =====================================================================================
// Changing the data layout of this class breaks the binary serialization format.  See comments for
// PX_BINARY_SERIAL_VERSION.  If a modification is required, please adjust the getBinaryMetaData
// function.  If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION
// accordingly.
//==================================================================================================

	PxvParticleSystemParameter(const PxEMPTY&) : particleReadDataFlags(PxEmpty) {}
	PxvParticleSystemParameter() {}

	PxReal						restParticleDistance;
	PxReal						kernelRadiusMultiplier;
	PxReal						viscosity;
	PxReal						surfaceTension;
	PxReal						fadeInTime;
	PxU32						flags;
	PxU32						packetSizeMultiplierLog2;
	PxReal						restitution;
	PxReal						dynamicFriction;
	PxReal						staticFriction;
	PxReal						restDensity;
	PxReal						damping;
	PxReal						stiffness;
	PxReal						maxMotionDistance;
	PxReal						restOffset;
	PxReal						contactOffset;
	PxPlane						projectionPlane;
	PxParticleReadDataFlags		particleReadDataFlags;
	PxU32						noiseCounter;				// Needed for deterministic temporal noise
};

/*!
Descriptor for particle retrieval
*/
struct PxvParticleSystemStateDataDesc
{
	PxU32										maxParticles;
	PxU32										numParticles;
	PxU32										validParticleRange;
	const Cm::BitMap*							bitMap;
	PxStrideIterator<const PxVec3>				positions;
	PxStrideIterator<const PxVec3>				velocities;
	PxStrideIterator<const PxvParticleFlags>	flags;
	PxStrideIterator<const PxF32>				restOffsets;
};

/*!
Descriptor for particle retrieval: TODO
*/
struct PxvParticleSystemSimDataDesc
{
	PxStrideIterator<const PxF32> densities;				//! Particle densities
	PxStrideIterator<const PxVec3> collisionNormals;		//! Particle collision normals
	PxStrideIterator<const PxVec3> collisionVelocities;		//! Particle collision velocities
	PxStrideIterator<const PxVec3> twoWayImpluses;			//! collision impulses(for two way interaction)
	PxStrideIterator<PxvBodyHandle> twoWayBodies;			//! Colliding rigid bodies each particle (zero if no collision)
};

class PxvParticleSystemState
{
public:
    virtual ~PxvParticleSystemState() {}
	virtual	bool		addParticlesV(const PxParticleCreationData& creationData)																			= 0;
	virtual	void		removeParticlesV(PxU32 count, const PxStrideIterator<const PxU32>& indices)															= 0;
	virtual	void		removeParticlesV()																													= 0;

	/**
	If fullState is set, the entire particle state is read, ignoring PxParticleReadDataFlags
	*/
	virtual	void		getParticlesV(PxvParticleSystemStateDataDesc& particles, bool fullState, bool devicePtr) const										= 0;
	virtual	void		setPositionsV(PxU32 numParticles, const PxStrideIterator<const PxU32>& indices, const PxStrideIterator<const PxVec3>& positions)	= 0;
	virtual	void		setVelocitiesV(PxU32 numParticles, const PxStrideIterator<const PxU32>& indices, const PxStrideIterator<const PxVec3>& velocities)	= 0;
	virtual	void		setRestOffsetsV(PxU32 numParticles, const PxStrideIterator<const PxU32>& indices, const PxStrideIterator<const PxF32>& restOffsets)	= 0;
	virtual	void		addDeltaVelocitiesV(const Cm::BitMap& bufferMap, const PxVec3* buffer, PxReal multiplier)											= 0;

	virtual	PxBounds3	getWorldBoundsV() const																												= 0;
	virtual	PxU32		getMaxParticlesV() const																											= 0;
	virtual	PxU32		getParticleCountV()	const																											= 0;
};

}

#endif // PXV_PARTICLE_SYSTEM_CORE_H


text:
"""Test utils for tensorflow."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import contextlib
import math
import random
import re
import tempfile
import threading

import numpy as np
import six

_portpicker_import_error = None
try:
  import portpicker  # pylint: disable=g-import-not-at-top
except ImportError as _error:
  _portpicker_import_error = _error
  portpicker = None

# pylint: disable=g-import-not-at-top
from google.protobuf import descriptor_pool
from google.protobuf import text_format

from tensorflow.core.framework import graph_pb2
from tensorflow.core.protobuf import config_pb2
from tensorflow.core.protobuf import rewriter_config_pb2
from tensorflow.python import pywrap_tensorflow
from tensorflow.python.client import device_lib
from tensorflow.python.client import session
from tensorflow.python.eager import context
from tensorflow.python.framework import device as pydev
from tensorflow.python.framework import errors
from tensorflow.python.framework import ops
from tensorflow.python.framework import random_seed
from tensorflow.python.framework import versions
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import resource_variable_ops
from tensorflow.python.platform import googletest
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.training import server_lib
from tensorflow.python.util import compat
from tensorflow.python.util.protobuf import compare

def gpu_device_name():
  """Returns the name of a GPU device if available or the empty string."""
  for x in device_lib.list_local_devices():
    if x.device_type == "GPU" or x.device_type == "SYCL":
      return compat.as_str(x.name)
  return ""

def assert_ops_in_graph(expected_ops, graph):
  """Assert all expected operations are found.

  Args:
    expected_ops: `dict<string, string>` of op name to op type.
    graph: Graph to check.
  Returns:
    `dict<string, node>` of node name to node.

  Raises:
    ValueError: If the expected ops are not present in the graph.
  """
  actual_ops = {}
  gd = graph.as_graph_def()
  for node in gd.node:
    if node.name in expected_ops:
      if expected_ops[node.name] != node.op:
        raise ValueError("Expected op for node %s is different. %s vs %s" %
                         (node.name, expected_ops[node.name], node.op))
      actual_ops[node.name] = node
  if set(expected_ops.keys()) != set(actual_ops.keys()):
    raise ValueError("Not all expected ops are present. Expected %s, found %s" %
                     (expected_ops.keys(), actual_ops.keys()))
  return actual_ops

def assert_equal_graph_def(actual, expected, checkpoint_v2=False):
  """Asserts that two `GraphDef`s are (mostly) the same.

  Compares two `GraphDef` protos for equality, ignoring versions and ordering of
  nodes, attrs, and control inputs.  Node names are used to match up nodes
  between the graphs, so the naming of nodes must be consistent.

  Args:
    actual: The `GraphDef` we have.
    expected: The `GraphDef` we expected.
    checkpoint_v2: boolean determining whether to ignore randomized attribute
        values that appear in V2 checkpoints.

  Raises:
    AssertionError: If the `GraphDef`s do not match.
    TypeError: If either argument is not a `GraphDef`.
  """
  if not isinstance(actual, graph_pb2.GraphDef):
    raise TypeError("Expected tf.GraphDef for actual, got %s" %
                    type(actual).__name__)
  if not isinstance(expected, graph_pb2.GraphDef):
    raise TypeError("Expected tf.GraphDef for expected, got %s" %
                    type(expected).__name__)

  if checkpoint_v2:
    _strip_checkpoint_v2_randomized(actual)
    _strip_checkpoint_v2_randomized(expected)

  diff = pywrap_tensorflow.EqualGraphDefWrapper(actual.SerializeToString(),
                                                expected.SerializeToString())
  if diff:
    raise AssertionError(compat.as_str(diff))

def assert_meta_graph_protos_equal(tester, a, b):
  """Compares MetaGraphDefs `a` and `b` in unit test class `tester`."""
  # Carefully check the collection_defs
  tester.assertEqual(set(a.collection_def), set(b.collection_def))
  collection_keys = a.collection_def.keys()
  for k in collection_keys:
    a_value = a.collection_def[k]
    b_value = b.collection_def[k]
    proto_type = ops.get_collection_proto_type(k)
    if proto_type:
      a_proto = proto_type()
      b_proto = proto_type()
      # Number of entries in the collections is the same
      tester.assertEqual(len(a_value.bytes_list.value),
                         len(b_value.bytes_list.value))
      for (a_value_item, b_value_item) in zip(
          a_value.bytes_list.value,
          b_value.bytes_list.value):
        a_proto.ParseFromString(a_value_item)
        b_proto.ParseFromString(b_value_item)
        tester.assertProtoEquals(a_proto, b_proto)
    else:
      tester.assertEquals(a_value, b_value)
  # Compared the fields directly, remove their raw values from the
  # proto comparison below.
  a.ClearField("collection_def")
  b.ClearField("collection_def")
  tester.assertProtoEquals(a, b)

# Matches attributes named via _SHARDED_SUFFIX in
# tensorflow/python/training/saver.py
_SHARDED_SAVE_OP_PATTERN = "_temp_[0-9a-z]{32}/part"

def _strip_checkpoint_v2_randomized(graph_def):
  for node in graph_def.node:
    delete_keys = []
    for attr_key in node.attr:
      attr_tensor_value = node.attr[attr_key].tensor
      if attr_tensor_value and len(attr_tensor_value.string_val) == 1:
        attr_tensor_string_value = attr_tensor_value.string_val[0]
        if (attr_tensor_string_value and
            re.match(_SHARDED_SAVE_OP_PATTERN, attr_tensor_string_value)):
          delete_keys.append(attr_key)
    for attr_key in delete_keys:
      del node.attr[attr_key]

def IsGoogleCudaEnabled():
  return pywrap_tensorflow.IsGoogleCudaEnabled()

def CudaSupportsHalfMatMulAndConv():
  return pywrap_tensorflow.CudaSupportsHalfMatMulAndConv()

def NHWCToNCHW(input_tensor):
  """Converts the input from the NHWC format to NCHW.

  Args:
    input_tensor: a 4- or 5-D tensor, or an array representing shape

  Returns:
    converted tensor or shape array
  """
  # tensor dim -> new axis order
  new_axes = {
      4: [0, 3, 1, 2],
      5: [0, 4, 1, 2, 3]
  }
  if isinstance(input_tensor, ops.Tensor):
    ndims = input_tensor.shape.ndims
    return array_ops.transpose(input_tensor, new_axes[ndims])
  else:
    ndims = len(input_tensor)
    return [input_tensor[a] for a in new_axes[ndims]]

def NCHWToNHWC(input_tensor):
  """Converts the input from the NCHW format to NHWC.

  Args:
    input_tensor: a 4- or 5-D tensor, or an array representing shape

  Returns:
    converted tensor or shape array
  """
  # tensor dim -> new axis order
  new_axes = {
      4: [0, 2, 3, 1],
      5: [0, 2, 3, 4, 1]
  }
  if isinstance(input_tensor, ops.Tensor):
    ndims = input_tensor.shape.ndims
    return array_ops.transpose(input_tensor, new_axes[ndims])
  else:
    ndims = len(input_tensor)
    return [input_tensor[a] for a in new_axes[ndims]]

# TODO(skyewm): remove this eventually
# pylint: disable=protected-access
def _use_c_api_wrapper(fn, use_c_api, *args, **kwargs):
  prev_value = ops._USE_C_API
  ops._USE_C_API = use_c_api
  try:
    with ops.Graph().as_default():
      fn(*args, **kwargs)
  finally:
    ops._USE_C_API = prev_value
# pylint: disable=protected-access

# TODO(skyewm): remove this eventually
def disable_c_api(fn):
  """Decorator for disabling the C API on a test.

  Note this disables the C API after running the test class's setup/teardown
  methods.

  Args:
    fn: the function to be wrapped

  Returns:
    The wrapped function
  """
  return lambda *args, **kwargs: _use_c_api_wrapper(fn, False, *args, **kwargs)

# TODO(skyewm): remove this eventually
def enable_c_api(fn):
  """Decorator for enabling the C API on a test.

  Note this enables the C API after running the test class's setup/teardown
  methods.

  Args:
    fn: the function to be wrapped

  Returns:
    The wrapped function
  """
  return lambda *args, **kwargs: _use_c_api_wrapper(fn, True, *args, **kwargs)

def run_in_graph_and_eager_modes(__unused__=None, graph=None, config=None,
                                 use_gpu=False, force_gpu=False,
                                 reset_test=True):
  """Runs the test in both graph and eager modes.

  Args:
    __unused__: Prevents sliently skipping tests.
    graph: Optional graph to use during the returned session.
    config: An optional config_pb2.ConfigProto to use to configure the
      session.
    use_gpu: If True, attempt to run as many ops as possible on GPU.
    force_gpu: If True, pin all ops to `/device:GPU:0`.
    reset_test: If True, tearDown and SetUp the test case again.

  Returns:
    Returns a decorator that will run the decorated test function
        using both a graph and using eager execution.
  """

  assert not __unused__, "Add () after run_in_graph_and_eager_modes."

  def decorator(f):
    """Test method decorator."""
    def decorated(self, **kwargs):
      """Decorated the test method."""
      with context.graph_mode():
        with self.test_session(graph, config, use_gpu, force_gpu):
          f(self, **kwargs)

      if reset_test:
        # This decorator runs the wrapped test twice.
        # Reset the test environment between runs.
        self.tearDown()
        self.setUp()

      def run_eager_mode():
        if force_gpu:
          gpu_name = gpu_device_name()
          if not gpu_name:
            gpu_name = "/device:GPU:0"
          with context.device(gpu_name):
            f(self)
        elif use_gpu:
          # TODO(xpan): Support softplacement and gpu by default when available.
          f(self, **kwargs)
        else:
          with context.device("/device:CPU:0"):
            f(self, **kwargs)

      eager_graph = graph or ops.Graph()
      with context.eager_mode():
        with eager_graph.as_default():
          run_eager_mode()

    return decorated
  return decorator

def is_gpu_available(cuda_only=False, min_cuda_compute_capability=None):
  """Returns whether TensorFlow can access a GPU.

  Args:
    cuda_only: limit the search to CUDA gpus.
    min_cuda_compute_capability: a (major,minor) pair that indicates the minimum
      CUDA compute capability required, or None if no requirement.

  Returns:
    True iff a gpu device of the requested kind is available.
  """

  def compute_capability_from_device_desc(device_desc):
    # TODO(jingyue): The device description generator has to be in sync with
    # this file. Another option is to put compute capability in
    # DeviceAttributes, but I avoided that to keep DeviceAttributes
    # target-independent. Reconsider this option when we have more things like
    # this to keep in sync.
    # LINT.IfChange
    match = re.search(r"compute capability: (\d+)\.(\d+)", device_desc)
    # LINT.ThenChange(//tensorflow/core/\
    #                 common_runtime/gpu/gpu_device.cc)
    if not match:
      return 0, 0
    return int(match.group(1)), int(match.group(2))

  for local_device in device_lib.list_local_devices():
    if local_device.device_type == "GPU":
      if (min_cuda_compute_capability is None or
          compute_capability_from_device_desc(local_device.physical_device_desc)
          >= min_cuda_compute_capability):
        return True
    if local_device.device_type == "SYCL" and not cuda_only:
      return True
  return False

@contextlib.contextmanager
def device(use_gpu):
  """Uses gpu when requested and available."""
  if use_gpu and is_gpu_available():
    dev = "/device:GPU:0"
  else:
    dev = "/device:CPU:0"
  with ops.device(dev):
    yield

class TensorFlowTestCase(googletest.TestCase):
  """Base class for tests that need to test TensorFlow.
  """

  def __init__(self, methodName="runTest"):  # pylint: disable=invalid-name
    super(TensorFlowTestCase, self).__init__(methodName)
    self._threads = []
    self._tempdir = None
    self._cached_session = None

  def setUp(self):
    logging.info("SET UP: %s" % str(self))
    self._ClearCachedSession()
    random.seed(random_seed.DEFAULT_GRAPH_SEED)
    np.random.seed(random_seed.DEFAULT_GRAPH_SEED)
    # Note: The following line is necessary because some test methods may error
    # out from within nested graph contexts (e.g., via assertRaises and
    # assertRaisesRegexp), which may leave ops._default_graph_stack non-empty
    # under certain versions of Python. That would cause
    # ops.reset_default_graph() to throw an exception if the stack were not
    # cleared first.
    ops._default_graph_stack.reset()  # pylint: disable=protected-access
    ops.reset_default_graph()
    ops.get_default_graph().seed = random_seed.DEFAULT_GRAPH_SEED

  def tearDown(self):
    logging.info("TEAR DOWN: %s" % str(self))
    for thread in self._threads:
      self.assertFalse(thread.is_alive(), "A checkedThread did not terminate")

    self._ClearCachedSession()

  def _ClearCachedSession(self):
    if self._cached_session is not None:
      self._cached_session.close()
      self._cached_session = None

  def get_temp_dir(self):
    """Returns a unique temporary directory for the test to use.

    If you call this method multiple times during in a test, it will return the
    same folder. However, across different runs the directories will be
    different. This will ensure that across different runs tests will not be
    able to pollute each others environment.
    If you need multiple unique directories within a single test, you should
    use tempfile.mkdtemp as follows:
      tempfile.mkdtemp(dir=self.get_temp_dir()):

    Returns:
      string, the path to the unique temporary directory created for this test.
    """
    if not self._tempdir:
      self._tempdir = tempfile.mkdtemp(dir=googletest.GetTempDir())
    return self._tempdir

  def _AssertProtoEquals(self, a, b):
    """Asserts that a and b are the same proto.

    Uses ProtoEq() first, as it returns correct results
    for floating point attributes, and then use assertProtoEqual()
    in case of failure as it provides good error messages.

    Args:
      a: a proto.
      b: another proto.
    """
    if not compare.ProtoEq(a, b):
      compare.assertProtoEqual(self, a, b, normalize_numbers=True)

  def assertProtoEquals(self, expected_message_maybe_ascii, message):
    """Asserts that message is same as parsed expected_message_ascii.

    Creates another prototype of message, reads the ascii message into it and
    then compares them using self._AssertProtoEqual().

    Args:
      expected_message_maybe_ascii: proto message in original or ascii form.
      message: the message to validate.
    """

    if isinstance(expected_message_maybe_ascii, type(message)):
      expected_message = expected_message_maybe_ascii
      self._AssertProtoEquals(expected_message, message)
    elif isinstance(expected_message_maybe_ascii, str):
      expected_message = type(message)()
      text_format.Merge(expected_message_maybe_ascii, expected_message,
                        descriptor_pool=descriptor_pool.Default())
      self._AssertProtoEquals(expected_message, message)
    else:
      assert False, ("Can't compare protos of type %s and %s" %
                     (type(expected_message_maybe_ascii), type(message)))

  def assertProtoEqualsVersion(
      self,
      expected,
      actual,
      producer=versions.GRAPH_DEF_VERSION,
      min_consumer=versions.GRAPH_DEF_VERSION_MIN_CONSUMER):
    expected = "versions { producer: %d min_consumer: %d };\n%s" % (
        producer, min_consumer, expected)
    self.assertProtoEquals(expected, actual)

  def assertStartsWith(self, actual, expected_start, msg=None):
    """Assert that actual.startswith(expected_start) is True.

    Args:
      actual: str
      expected_start: str
      msg: Optional message to report on failure.
    """
    if not actual.startswith(expected_start):
      fail_msg = "%r does not start with %r" % (actual, expected_start)
      fail_msg += " : %r" % (msg) if msg else ""
      self.fail(fail_msg)

  def _eval_helper(self, tensors):
    if isinstance(tensors, ops.EagerTensor):
      return tensors.numpy()
    if isinstance(tensors, resource_variable_ops.ResourceVariable):
      return tensors.read_value().numpy()

    if isinstance(tensors, tuple):
      return tuple([self._eval_helper(t) for t in tensors])
    elif isinstance(tensors, list):
      return [self._eval_helper(t) for t in tensors]
    elif isinstance(tensors, dict):
      assert not tensors, "Only support empty dict now."
      return dict()
    else:
      raise ValueError("Unsupported type.")

  def evaluate(self, tensors):
    """Evaluates tensors and returns numpy values.

    Args:
      tensors: A Tensor or a nested list/tuple of Tensors.

    Returns:
      tensors numpy values.
    """
    if context.in_eager_mode():
      return self._eval_helper(tensors)
    else:
      sess = ops.get_default_session()
      return sess.run(tensors)

  # pylint: disable=g-doc-return-or-yield
  @contextlib.contextmanager
  def test_session(self,
                   graph=None,
                   config=None,
                   use_gpu=False,
                   force_gpu=False):
    """Returns a TensorFlow Session for use in executing tests.

    This method should be used for all functional tests.

    This method behaves different than session.Session: for performance reasons
    `test_session` will by default (if `graph` is None) reuse the same session
    across tests. This means you may want to either call the function
    `reset_default_graph()` before tests, or if creating an explicit new graph,
    pass it here (simply setting it with `as_default()` won't do it), which will
    trigger the creation of a new session.

    Use the `use_gpu` and `force_gpu` options to control where ops are run. If
    `force_gpu` is True, all ops are pinned to `/device:GPU:0`. Otherwise, if `use_gpu`
    is True, TensorFlow tries to run as many ops on the GPU as possible. If both
    `force_gpu and `use_gpu` are False, all ops are pinned to the CPU.

    Example:
    ```python
    class MyOperatorTest(test_util.TensorFlowTestCase):
      def testMyOperator(self):
        with self.test_session(use_gpu=True):
          valid_input = [1.0, 2.0, 3.0, 4.0, 5.0]
          result = MyOperator(valid_input).eval()
          self.assertEqual(result, [1.0, 2.0, 3.0, 5.0, 8.0]
          invalid_input = [-1.0, 2.0, 7.0]
          with self.assertRaisesOpError("negative input not supported"):
            MyOperator(invalid_input).eval()
    ```

    Args:
      graph: Optional graph to use during the returned session.
      config: An optional config_pb2.ConfigProto to use to configure the
        session.
      use_gpu: If True, attempt to run as many ops as possible on GPU.
      force_gpu: If True, pin all ops to `/device:GPU:0`.

    Returns:
      A Session object that should be used as a context manager to surround
      the graph building and execution code in a test case.
    """
    if self.id().endswith(".test_session"):
      self.skipTest("Not a test.")

    def prepare_config(config):
      """Returns a config for sessions.

      Args:
        config: An optional config_pb2.ConfigProto to use to configure the
          session.
      Returns:
        A config_pb2.ConfigProto object.
      """
      if config is None:
        config = config_pb2.ConfigProto()
        config.allow_soft_placement = not force_gpu
        config.gpu_options.per_process_gpu_memory_fraction = 0.3
      elif force_gpu and config.allow_soft_placement:
        config = config_pb2.ConfigProto().CopyFrom(config)
        config.allow_soft_placement = False
      # Don't perform optimizations for tests so we don't inadvertently run
      # gpu ops on cpu
      config.graph_options.optimizer_options.opt_level = -1
      config.graph_options.rewrite_options.constant_folding = (
          rewriter_config_pb2.RewriterConfig.OFF)
      config.graph_options.rewrite_options.arithmetic_optimization = (
          rewriter_config_pb2.RewriterConfig.OFF)
      return config

    if graph is None:
      if self._cached_session is None:
        self._cached_session = session.Session(
            graph=None, config=prepare_config(config))
      sess = self._cached_session
      with sess.graph.as_default(), sess.as_default():
        if force_gpu:
          # Use the name of an actual device if one is detected, or '/device:GPU:0'
          # otherwise
          gpu_name = gpu_device_name()
          if not gpu_name:
            gpu_name = "/device:GPU:0"
          with sess.graph.device(gpu_name):
            yield sess
        elif use_gpu:
          yield sess
        else:
          with sess.graph.device("/cpu:0"):
            yield sess
    else:
      with session.Session(graph=graph, config=prepare_config(config)) as sess:
        if force_gpu:
          # Use the name of an actual device if one is detected, or '/device:GPU:0'
          # otherwise
          gpu_name = gpu_device_name()
          if not gpu_name:
            gpu_name = "/device:GPU:0"
          with sess.graph.device(gpu_name):
            yield sess
        elif use_gpu:
          yield sess
        else:
          with sess.graph.device("/cpu:0"):
            yield sess

  # pylint: enable=g-doc-return-or-yield

  class _CheckedThread(object):
    """A wrapper class for Thread that asserts successful completion.

    This class should be created using the TensorFlowTestCase.checkedThread()
    method.
    """

    def __init__(self, testcase, target, args=None, kwargs=None):
      """Constructs a new instance of _CheckedThread.

      Args:
        testcase: The TensorFlowTestCase for which this thread is being created.
        target: A callable object representing the code to be executed in the
          thread.
        args: A tuple of positional arguments that will be passed to target.
        kwargs: A dictionary of keyword arguments that will be passed to target.
      """
      self._testcase = testcase
      self._target = target
      self._args = () if args is None else args
      self._kwargs = {} if kwargs is None else kwargs
      self._thread = threading.Thread(target=self._protected_run)
      self._exception = None

    def _protected_run(self):
      """Target for the wrapper thread. Sets self._exception on failure."""
      try:
        self._target(*self._args, **self._kwargs)
      except Exception as e:  # pylint: disable=broad-except
        self._exception = e

    def start(self):
      """Starts the thread's activity.

      This must be called at most once per _CheckedThread object. It arranges
      for the object's target to be invoked in a separate thread of control.
      """
      self._thread.start()

    def join(self):
      """Blocks until the thread terminates.

      Raises:
        self._testcase.failureException: If the thread terminates with due to
          an exception.
      """
      self._thread.join()
      if self._exception is not None:
        self._testcase.fail("Error in checkedThread: %s" % str(self._exception))

    def is_alive(self):
      """Returns whether the thread is alive.

      This method returns True just before the run() method starts
      until just after the run() method terminates.

      Returns:
        True if the thread is alive, otherwise False.
      """
      return self._thread.is_alive()

  def checkedThread(self, target, args=None, kwargs=None):
    """Returns a Thread wrapper that asserts 'target' completes successfully.

    This method should be used to create all threads in test cases, as
    otherwise there is a risk that a thread will silently fail, and/or
    assertions made in the thread will not be respected.

    Args:
      target: A callable object to be executed in the thread.
      args: The argument tuple for the target invocation. Defaults to ().
      kwargs: A dictionary of keyword arguments for the target invocation.
        Defaults to {}.

    Returns:
      A wrapper for threading.Thread that supports start() and join() methods.
    """
    ret = TensorFlowTestCase._CheckedThread(self, target, args, kwargs)
    self._threads.append(ret)
    return ret

# pylint: enable=invalid-name

  def assertNear(self, f1, f2, err, msg=None):
    """Asserts that two floats are near each other.

    Checks that |f1 - f2| < err and asserts a test failure
    if not.

    Args:
      f1: A float value.
      f2: A float value.
      err: A float value.
      msg: An optional string message to append to the failure message.
    """
    self.assertTrue(
        math.fabs(f1 - f2) <= err,
        "%f != %f +/- %f%s" % (f1, f2, err, " (%s)" % msg
                               if msg is not None else ""))

  def assertArrayNear(self, farray1, farray2, err):
    """Asserts that two float arrays are near each other.

    Checks that for all elements of farray1 and farray2
    |f1 - f2| < err.  Asserts a test failure if not.

    Args:
      farray1: a list of float values.
      farray2: a list of float values.
      err: a float value.
    """
    self.assertEqual(len(farray1), len(farray2))
    for f1, f2 in zip(farray1, farray2):
      self.assertNear(float(f1), float(f2), err)

  def _NDArrayNear(self, ndarray1, ndarray2, err):
    return np.linalg.norm(ndarray1 - ndarray2) < err

  def assertNDArrayNear(self, ndarray1, ndarray2, err):
    """Asserts that two numpy arrays have near values.

    Args:
      ndarray1: a numpy ndarray.
      ndarray2: a numpy ndarray.
      err: a float. The maximum absolute difference allowed.
    """
    self.assertTrue(self._NDArrayNear(ndarray1, ndarray2, err))

  def _GetNdArray(self, a):
    if not isinstance(a, np.ndarray):
      a = np.array(a)
    return a

  def _assertArrayLikeAllClose(self, a, b, rtol=1e-6, atol=1e-6, msg=None):
    a = self._GetNdArray(a)
    b = self._GetNdArray(b)
    self.assertEqual(a.shape, b.shape, "Shape mismatch: expected %s, got %s." %
                     (a.shape, b.shape))
    if not np.allclose(a, b, rtol=rtol, atol=atol):
      # Prints more details than np.testing.assert_allclose.
      #
      # NOTE: numpy.allclose (and numpy.testing.assert_allclose)
      # checks whether two arrays are element-wise equal within a
      # tolerance. The relative difference (rtol * abs(b)) and the
      # absolute difference atol are added together to compare against
      # the absolute difference between a and b.  Here, we want to
      # print out which elements violate such conditions.
      cond = np.logical_or(
          np.abs(a - b) > atol + rtol * np.abs(b), np.isnan(a) != np.isnan(b))
      if a.ndim:
        x = a[np.where(cond)]
        y = b[np.where(cond)]
        print("not close where = ", np.where(cond))
      else:
        # np.where is broken for scalars
        x, y = a, b
      print("not close lhs = ", x)
      print("not close rhs = ", y)
      print("not close dif = ", np.abs(x - y))
      print("not close tol = ", atol + rtol * np.abs(y))
      print("dtype = %s, shape = %s" % (a.dtype, a.shape))
      np.testing.assert_allclose(a, b, rtol=rtol, atol=atol, err_msg=msg)

  def assertAllClose(self, a, b, rtol=1e-6, atol=1e-6):
    """Asserts that two numpy arrays, or dicts of same, have near values.

    This does not support nested dicts.

    Args:
      a: The expected numpy ndarray (or anything can be converted to one), or
        dict of same. Must be a dict iff `b` is a dict.
      b: The actual numpy ndarray (or anything can be converted to one), or
        dict of same. Must be a dict iff `a` is a dict.
      rtol: relative tolerance.
      atol: absolute tolerance.

    Raises:
      ValueError: if only one of `a` and `b` is a dict.
    """
    is_a_dict = isinstance(a, dict)
    if is_a_dict != isinstance(b, dict):
      raise ValueError("Can't compare dict to non-dict, %s vs %s." % (a, b))
    if is_a_dict:
      self.assertItemsEqual(
          a.keys(), b.keys(),
          msg="mismatched keys, expected %s, got %s" % (a.keys(), b.keys()))
      for k in a:
        self._assertArrayLikeAllClose(
            a[k], b[k], rtol=rtol, atol=atol,
            msg="%s: expected %s, got %s." % (k, a, b))
    else:
      self._assertArrayLikeAllClose(a, b, rtol=rtol, atol=atol)

  def assertAllCloseAccordingToType(self,
                                    a,
                                    b,
                                    rtol=1e-6,
                                    atol=1e-6,
                                    float_rtol=1e-6,
                                    float_atol=1e-6,
                                    half_rtol=1e-3,
                                    half_atol=1e-3):
    """Like assertAllClose, but also suitable for comparing fp16 arrays.

    In particular, the tolerance is reduced to 1e-3 if at least
    one of the arguments is of type float16.

    Args:
      a: the expected numpy ndarray or anything can be converted to one.
      b: the actual numpy ndarray or anything can be converted to one.
      rtol: relative tolerance.
      atol: absolute tolerance.
      float_rtol: relative tolerance for float32.
      float_atol: absolute tolerance for float32.
      half_rtol: relative tolerance for float16.
      half_atol: absolute tolerance for float16.
    """
    a = self._GetNdArray(a)
    b = self._GetNdArray(b)
    if (a.dtype == np.float32 or b.dtype == np.float32 or
        a.dtype == np.complex64 or b.dtype == np.complex64):
      rtol = max(rtol, float_rtol)
      atol = max(atol, float_atol)
    if a.dtype == np.float16 or b.dtype == np.float16:
      rtol = max(rtol, half_rtol)
      atol = max(atol, half_atol)

    self.assertAllClose(a, b, rtol=rtol, atol=atol)

  def assertAllEqual(self, a, b):
    """Asserts that two numpy arrays have the same values.

    Args:
      a: the expected numpy ndarray or anything can be converted to one.
      b: the actual numpy ndarray or anything can be converted to one.
    """
    a = self._GetNdArray(a)
    b = self._GetNdArray(b)
    self.assertEqual(a.shape, b.shape, "Shape mismatch: expected %s, got %s." %
                     (a.shape, b.shape))
    same = (a == b)

    if a.dtype == np.float32 or a.dtype == np.float64:
      same = np.logical_or(same, np.logical_and(np.isnan(a), np.isnan(b)))
    if not np.all(same):
      # Prints more details than np.testing.assert_array_equal.
      diff = np.logical_not(same)
      if a.ndim:
        x = a[np.where(diff)]
        y = b[np.where(diff)]
        print("not equal where = ", np.where(diff))
      else:
        # np.where is broken for scalars
        x, y = a, b
      print("not equal lhs = ", x)
      print("not equal rhs = ", y)
      np.testing.assert_array_equal(a, b)

  # pylint: disable=g-doc-return-or-yield
  @contextlib.contextmanager
  def assertRaisesWithPredicateMatch(self, exception_type,
                                     expected_err_re_or_predicate):
    """Returns a context manager to enclose code expected to raise an exception.

    If the exception is an OpError, the op stack is also included in the message
    predicate search.

    Args:
      exception_type: The expected type of exception that should be raised.
      expected_err_re_or_predicate: If this is callable, it should be a function
        of one argument that inspects the passed-in exception and
        returns True (success) or False (please fail the test). Otherwise, the
        error message is expected to match this regular expression partially.

    Returns:
      A context manager to surround code that is expected to raise an
      exception.
    """
    if callable(expected_err_re_or_predicate):
      predicate = expected_err_re_or_predicate
    else:

      def predicate(e):
        err_str = e.message if isinstance(e, errors.OpError) else str(e)
        op = e.op if isinstance(e, errors.OpError) else None
        while op is not None:
          err_str += "\nCaused by: " + op.name
          op = op._original_op  # pylint: disable=protected-access
        logging.info("Searching within error strings: '%s' within '%s'",
                     expected_err_re_or_predicate, err_str)
        return re.search(expected_err_re_or_predicate, err_str)

    try:
      yield
      self.fail(exception_type.__name__ + " not raised")
    except Exception as e:  # pylint: disable=broad-except
      if not isinstance(e, exception_type) or not predicate(e):
        raise AssertionError("Exception of type %s: %s" % (str(type(e)),
                                                           str(e)))

  # pylint: enable=g-doc-return-or-yield

  def assertRaisesOpError(self, expected_err_re_or_predicate):
    return self.assertRaisesWithPredicateMatch(errors.OpError,
                                               expected_err_re_or_predicate)

  def assertShapeEqual(self, np_array, tf_tensor):
    """Asserts that a Numpy ndarray and a TensorFlow tensor have the same shape.

    Args:
      np_array: A Numpy ndarray or Numpy scalar.
      tf_tensor: A Tensor.

    Raises:
      TypeError: If the arguments have the wrong type.
    """
    if not isinstance(np_array, (np.ndarray, np.generic)):
      raise TypeError("np_array must be a Numpy ndarray or Numpy scalar")
    if not isinstance(tf_tensor, ops.Tensor):
      raise TypeError("tf_tensor must be a Tensor")
    self.assertAllEqual(np_array.shape, tf_tensor.get_shape().as_list())

  def assertDeviceEqual(self, device1, device2):
    """Asserts that the two given devices are the same.

    Args:
      device1: A string device name or TensorFlow `DeviceSpec` object.
      device2: A string device name or TensorFlow `DeviceSpec` object.
    """
    device1 = pydev.canonical_name(device1)
    device2 = pydev.canonical_name(device2)
    self.assertEqual(device1, device2,
                     "Devices %s and %s are not equal" % (device1, device2))

  # Fix Python 3 compatibility issues
  if six.PY3:
    # pylint: disable=invalid-name

    # Silence a deprecation warning
    assertRaisesRegexp = googletest.TestCase.assertRaisesRegex

    # assertItemsEqual is assertCountEqual as of 3.2.
    assertItemsEqual = googletest.TestCase.assertCountEqual

    # pylint: enable=invalid-name

def create_local_cluster(num_workers, num_ps, protocol="grpc",
                         worker_config=None, ps_config=None):
  """Create and start local servers and return the associated `Server` objects.

  Example:
  ```python
  workers, _ = tf.test.create_local_cluster(num_workers=2, num_ps=2)

  worker_sessions = [tf.Session(w.target) for w in workers]

  with tf.device("/job:ps/task:0"):
    ...
  with tf.device("/job:ps/task:1"):
    ...
  with tf.device("/job:worker/task:0"):
    ...
  with tf.device("/job:worker/task:1"):
    ...

  worker_sessions[0].run(...)
  ```

  Args:
    num_workers: Number of worker servers to start.
    num_ps: Number of PS servers to start.
    protocol: Communication protocol.  Allowed values are documented in
      the documentation of `tf.train.Server`.
    worker_config: (optional) ConfigProto to initialize workers. Can be used
      to instantiate multiple devices etc.
    ps_config: (optional) ConfigProto to initialize PS servers.

  Returns:
    A tuple `(worker_servers, ps_servers)`.  `worker_servers` is a list
    of `num_workers` objects of type `tf.train.Server` (all running locally);
    and `ps_servers` is a list of `num_ps` objects of similar type.

  Raises:
    ImportError: if portpicker module was not found at load time
  """
  if _portpicker_import_error:
    raise _portpicker_import_error  # pylint: disable=raising-bad-type
  worker_ports = [portpicker.pick_unused_port() for _ in range(num_workers)]
  ps_ports = [portpicker.pick_unused_port() for _ in range(num_ps)]
  cluster_dict = {
      "worker": ["localhost:%s" % port for port in worker_ports],
      "ps": ["localhost:%s" % port for port in ps_ports]
  }
  cs = server_lib.ClusterSpec(cluster_dict)

  workers = [
      server_lib.Server(
          cs, job_name="worker", protocol=protocol, task_index=ix,
          config=worker_config, start=True)
      for ix in range(num_workers)
  ]
  ps_servers = [
      server_lib.Server(
          cs, job_name="ps", protocol=protocol, task_index=ix,
          config=ps_config, start=True)
      for ix in range(num_ps)
  ]

  return workers, ps_servers


text:
GuavaJS.Strings.Splitter = GuavaJS.Strings.Splitter || (function(){
	var Strings = GuavaJS.Strings;
	var isString = GuavaJS.isString;

	var _evalPart = function(trimResults, omitEmptyStrs, part){
		part = Strings.nullToEmpty(part);

		if(trimResults){
			part = Strings.trim(part);
		}

		if(!omitEmptyStrs || !Strings.isNullOrEmpty(part)){
			return part;
		}

		return null;
	}

	var _splitter = function(charmatcher){
		var matcher = charmatcher;
		var trimResults = false;
		var omitEmptyStrs = false;

		var evalPart = function(part){return _evalPart(trimResults, omitEmptyStrs, part);};

		return {
			trimResults: function(){
				trimResults=true;
				return this;
			},
			omitEmptyStrings: function(){
				omitEmptyStrs=true;
				return this;
			},
			split: function(value){
				var parts = new Array();

				if(!Strings.isNullOrEmpty(value)){
					var part = "";
					for(i=0; i<value.length; i++){
						var char = value.charAt(i);
						if(matcher.matches(char)){
							part = evalPart(part);
							if(part != null){
								parts.push(part);
							}
							part = "";
						} else {
							part += char;
						}
					}

					part = evalPart(part);
					if(part != null){
						parts.push(part);
					}
				}

				return parts;
			},
			withKeyValueSeparator: function(value){
				var kvMatcher = value
				if(isString(value)){
					kvMatcher = GuavaJS.Strings.CharMatcher.anyOf(value);
				}

				return _mapSplitter(kvMatcher, matcher, trimResults, omitEmptyStrs);
			}
		}
	}

	var _mapSplitter = function(_kvMatcher, _matcher, _trimResults, _omitEmptyStrs){
		var MultiMap = GuavaJS.Collect.Multimap;

		var kvMatcher = _kvMatcher;
		var matcher = _matcher;
		var trimResults = _trimResults;
		var omitEmptyStrs = _omitEmptyStrs;

		var evalPart = function(part){return _evalPart(trimResults, omitEmptyStrs, part);};

		return {
			trimResults: function(){
				trimResults=true;
				return this;
			},
			omitEmptyStrings: function(){
				omitEmptyStrs=true;
				return this;
			},
			split: function(value){
				var parts = MultiMap.FlatListMultimap();

				if(!Strings.isNullOrEmpty(value)){
					var cKey = null;
					var part = "";
					for(i=0; i<value.length; i++){
						var char = value.charAt(i);
						if(kvMatcher.matches(char)){
							cKey = part;
							part = "";
						} else if(matcher.matches(char)){
							part = evalPart(part);
							if(cKey != null && part != null){
								parts.push(cKey, part);
							}
							part = "";
							cKey = null;
						} else {
							part += char;
						}
					}

					part = evalPart(part);
					if(part != null){
						if(cKey != null){
							parts.push(cKey, part);
						}
					}
				}

				return parts;
			}
		}
	}

	return {
		on: function(value){
			if(isString(value)){
				var matcher = GuavaJS.Strings.CharMatcher.anyOf(value);
				return _splitter(matcher);
			} else {
				return _splitter(value);
			}
		}
	}
})();


text:
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
 * Build: http://modernizr.com/download/#-prefixed-testprop-testallprops-prefixes-domprefixes-requestanimationframe
 */
;

if (typeof window !== 'undefined') {
  var Modernizr = (function( window, document, undefined ) {

      var version = '2.8.3',

      Modernizr = {},

      docElement = document.documentElement,

      mod = 'modernizr',
      modElem = document.createElement(mod),
      mStyle = modElem.style,

      inputElem  ,

      toString = {}.toString,

      prefixes = ' -webkit- -moz- -o- -ms- '.split(' '),

      omPrefixes = 'Webkit Moz O ms',

      cssomPrefixes = omPrefixes.split(' '),

      domPrefixes = omPrefixes.toLowerCase().split(' '),

      tests = {},
      inputs = {},
      attrs = {},

      classes = [],

      slice = classes.slice,

      featureName,

      _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp;

      if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) {
        hasOwnProp = function (object, property) {
          return _hasOwnProperty.call(object, property);
        };
      }
      else {
        hasOwnProp = function (object, property) {
          return ((property in object) && is(object.constructor.prototype[property], 'undefined'));
        };
      }

      if (!Function.prototype.bind) {
        Function.prototype.bind = function bind(that) {

          var target = this;

          if (typeof target != "function") {
              throw new TypeError();
          }

          var args = slice.call(arguments, 1),
              bound = function () {

              if (this instanceof bound) {

                var F = function(){};
                F.prototype = target.prototype;
                var self = new F();

                var result = target.apply(
                    self,
                    args.concat(slice.call(arguments))
                );
                if (Object(result) === result) {
                    return result;
                }
                return self;

              } else {

                return target.apply(
                    that,
                    args.concat(slice.call(arguments))
                );

              }

          };

          return bound;
        };
      }

      function setCss( str ) {
          mStyle.cssText = str;
      }

      function setCssAll( str1, str2 ) {
          return setCss(prefixes.join(str1 + ';') + ( str2 || '' ));
      }

      function is( obj, type ) {
          return typeof obj === type;
      }

      function contains( str, substr ) {
          return !!~('' + str).indexOf(substr);
      }

      function testProps( props, prefixed ) {
          for ( var i in props ) {
              var prop = props[i];
              if ( !contains(prop, "-") && mStyle[prop] !== undefined ) {
                  return prefixed == 'pfx' ? prop : true;
              }
          }
          return false;
      }

      function testDOMProps( props, obj, elem ) {
          for ( var i in props ) {
              var item = obj[props[i]];
              if ( item !== undefined) {

                              if (elem === false) return props[i];

                              if (is(item, 'function')){
                                  return item.bind(elem || obj);
                  }

                              return item;
              }
          }
          return false;
      }

      function testPropsAll( prop, prefixed, elem ) {

          var ucProp  = prop.charAt(0).toUpperCase() + prop.slice(1),
              props   = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' ');

              if(is(prefixed, "string") || is(prefixed, "undefined")) {
            return testProps(props, prefixed);

              } else {
            props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' ');
            return testDOMProps(props, prefixed, elem);
          }
      }    for ( var feature in tests ) {
          if ( hasOwnProp(tests, feature) ) {
                                      featureName  = feature.toLowerCase();
              Modernizr[featureName] = tests[feature]();

              classes.push((Modernizr[featureName] ? '' : 'no-') + featureName);
          }
      }

      tests['csstransitions'] = function() {
          return testPropsAll('transition');
      };

      for ( var feature in tests ) {
          if ( hasOwnProp(tests, feature) ) {
              // run the test, throw the return value into the Modernizr,
              //   then based on that boolean, define an appropriate className
              //   and push it into an array of classes we'll join later.
              featureName  = feature.toLowerCase();
              Modernizr[featureName] = tests[feature]();
          }
      }

       Modernizr.addTest = function ( feature, test ) {
         if ( typeof feature == 'object' ) {
           for ( var key in feature ) {
             if ( hasOwnProp( feature, key ) ) {
               Modernizr.addTest( key, feature[ key ] );
             }
           }
         } else {

           feature = feature.toLowerCase();

           if ( Modernizr[feature] !== undefined ) {
                                                return Modernizr;
           }

           test = typeof test == 'function' ? test() : test;

           if (typeof enableClasses !== "undefined" && enableClasses) {
             docElement.className += ' ' + (test ? '' : 'no-') + feature;
           }
           Modernizr[feature] = test;

         }

         return Modernizr;
       };

      setCss('');
      modElem = inputElem = null;

      Modernizr._version      = version;

      Modernizr._prefixes     = prefixes;
      Modernizr._domPrefixes  = domPrefixes;
      Modernizr._cssomPrefixes  = cssomPrefixes;

      Modernizr.testProp      = function(prop){
          return testProps([prop]);
      };

      Modernizr.testAllProps  = testPropsAll;

      Modernizr.prefixed      = function(prop, obj, elem){
        if(!obj) {
          return testPropsAll(prop, 'pfx');
        } else {
              return testPropsAll(prop, obj, elem);
        }
      };

      return Modernizr;
  })(window, window.document);
  // END Modernizr Code

  var vendors = ['webkit', 'moz'];
  var requestAnimationFrame = undefined;
  var cancelAnimationFrame = undefined;

  for(var x = 0; x < vendors.length && !requestAnimationFrame; ++x) {
      requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
      cancelAnimationFrame = (window[vendors[x]+'CancelAnimationFrame'] ||
                              window[vendors[x]+'CancelRequestAnimationFrame']);
  }

  if (!requestAnimationFrame) {
    requestAnimationFrame = window.requestAnimationFrame;
    cancelAnimationFrame = window.cancelAnimationFrame;
  }

  module.exports.cssTransition = Modernizr.csstransitions;
  module.exports.requestAnimationFrame = requestAnimationFrame;
  module.exports.cancelAnimationFrame = cancelAnimationFrame;
  module.exports.prefixed = function(prop, obj, elem) {
    return Modernizr.prefixed(prop, obj, elem);
  }
}


text:
<?php

namespace INCES\ComedorBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;

class MenuTodayType extends AbstractType
{
  public function buildForm(FormBuilderInterface $builder, array $options)
  {
    $builder
      ->add('seco')
      ->add('sopa')
      ->add('salado')
      ->add('jugo')
      ->add('ensalada')
      ->add('postre')
      ->add('dia', 'date', array(
        'widget'        => 'single_text',
        'format'        => 'dd/MM/yyyy',
      ));
    }

    public function getName()
    {
      return 'inces_comedorbundle_menutodaytype';
    }
}


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="Albert Szczesny">
    <link rel="icon" href="<?= base_url();?>assets/favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <link href="<?php echo base_url();?>assets/css/bootstrap.min.css" rel="stylesheet">

    <link href="<?php echo base_url();?>assets/css/dashboard.css" rel="stylesheet">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            Toggle navigation

          </button>
          iQuTrack

Dashboard

<?php echo anchor('auth/logout', 'Signout');?>

Profile

Help

          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form>

Overview (current)

                <?php echo anchor('receiving/index', 'Receiving');?>

Testing

Stock

Nav item

Nav item again

One more nav

Another nav item

More navigation

Nav item again

<?php echo anchor('diy_customer/index', 'Customers');?>

<?php echo anchor('auth/index', 'Users');?>

            <?php
            if(!isset($module)){
                $module = $this->uri->segment(1);
            }
            if(!isset($view_file)){
                $view_file = $this->uri->segment(2);
            }
            if(($module != "") && ($view_file !="")){
                $path = $module."/".$view_file;
                $this->load->view($path);
            };
            ?>


text:
package com.stratio.sparta.testat.embedded

import java.io.File

import org.elasticsearch.client.Client
import org.elasticsearch.common.settings.ImmutableSettings
import org.elasticsearch.common.unit.TimeValue
import org.elasticsearch.node.Node
import org.elasticsearch.node.NodeBuilder.nodeBuilder

object ElasticsearchEmbeddedServer {

  val DefaultDataDirectory = "target/elasticsearch-data"
  val ClusterName = "sparta-elasticsearch"
  var node: Node = _

  def start: Unit= {
    val elasticsearchSettings: ImmutableSettings.Builder = ImmutableSettings.settingsBuilder()
      .put("cluster.name", ClusterName)
      .put("node.name", "nodeAT")
      .put("http.cors.enabled", "true")
      .put("http.enabled", "true")
      .put("index.number_of_shards","1")
      .put("index.number_of_replicas","0")
      .put("node.master","true")
      .put("index.cache.field.type", "soft")
      .put("index.cache.field.max_size", "10000")
      .put("threadpool.index.queue_size", "300")
      .put("path.data", DefaultDataDirectory)
      .put("discovery.zen.ping.multicast.enabled", "false")

    node = nodeBuilder()
      .local(true)
      .settings(elasticsearchSettings.build())
      .node()

    getClient.admin.cluster.prepareHealth().setWaitForGreenStatus.setTimeout(TimeValue.timeValueMinutes(1))
      .execute.actionGet
  }

  def getClient : Client = node.client()

  def shutdown: Unit = {
    node.close
  }

  def cleanData :Unit ={
    val folders = Seq("data", ElasticsearchEmbeddedServer.DefaultDataDirectory)
    folders.foreach(folder => {
      val file = new File(folder)
      deleteFiles(file)
    })
  }

  private def deleteFiles(file: File): Unit = {
    if (file.exists() && file.isDirectory)
      Option(file.listFiles).map(_.toList).getOrElse(Nil).foreach(deleteFiles(_))
    file.delete()
  }

}


text:
class TestItemID: public QObject
{
    Q_OBJECT

public:
    Q_INVOKABLE TestItemID() {}

private slots:

    void testClass();
    void testSet();
    void testMap();
};

namespace QTest {
    template<>
    inline char *toString(const Qi::GridID& id)
    {
        QByteArray ba = "ID(";
        ba += QByteArray::number(id.row) + ", " + QByteArray::number(id.column);
        ba += ")";
        return qstrdup(ba.data());
    }
}

#endif // TEST_ITEM_ID_H


text:
<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Services\ModelQueries;
use App\Services\Auditorias;
use App\Repository\EmpaqueRepository;

class Empaque extends Model {

	/**
	 * Consultas encapsuladas
	 *
	 * Actualiza los campos de Auditoria
	 */
	use ModelQueries, Auditorias, EmpaqueRepository;

	/**
	 * Los atributos agregados del formato JSON del Modelo
	 *
	 * @var array
	 */
	protected $with = [];

	/**
	 * Los atributos excluidos del formato JSON del Modelo
	 *
	 * @var array
	 */
	protected $hidden = ['activo', 'created_at', 'updated_at',  'created_by', 'updated_by'];

	/**
	 * Empaque pertenece a muchos Taller
	 */
	public function taller()
	{
		return $this->belongsToMany('App\Taller', 'empaque_taller');
	}

}


text:
<?php

namespace ZendTest\Application\TestAsset;

use Zend\Application\Bootstrap;

/**
 * @category   Zend
 * @package    Zend_Application
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class ZfAppBootstrap extends Bootstrap
{
    public $barExecuted = 0;
    public $fooExecuted = 0;
    public $executedFooResource = false;
    public $executedFooBarResource = false;

    protected $_arbitraryValue;

    public function run()
    {
    }

    protected function _initFoo()
    {
        $this->fooExecuted++;
    }

    protected function _initBar()
    {
        $this->barExecuted++;
    }

    protected function _initBarbaz()
    {
        $o = new \stdClass();
        $o->baz = 'Baz';
        return $o;
    }

    public function setArbitrary($value)
    {
        $this->_arbitraryValue = $value;
        return $this;
    }

    public function getArbitrary()
    {
        return $this->_arbitraryValue;
    }

}


text:
package com.google.cloud.security.privateca.v1beta1.samples;

// [START privateca_v1beta1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync]
import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient;
import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList;
import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName;
import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest;

public class SyncGetCertificateRevocationList {

  public static void main(String[] args) throws Exception {
    syncGetCertificateRevocationList();
  }

  public static void syncGetCertificateRevocationList() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (CertificateAuthorityServiceClient certificateAuthorityServiceClient =
        CertificateAuthorityServiceClient.create()) {
      GetCertificateRevocationListRequest request =
          GetCertificateRevocationListRequest.newBuilder()
              .setName(
                  CertificateRevocationListName.of(
                          "[PROJECT]",
                          "[LOCATION]",
                          "[CERTIFICATE_AUTHORITY]",
                          "[CERTIFICATE_REVOCATION_LIST]")
                      .toString())
              .build();
      CertificateRevocationList response =
          certificateAuthorityServiceClient.getCertificateRevocationList(request);
    }
  }
}
// [END privateca_v1beta1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync]


text:
<!DOCTYPE html>

    <title>
    </title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

    <link rel="stylesheet" href="css/index.css">

基本地图功能

地图操作功能

UI控制功能

覆盖物功能

位置功能

地理编码

POI搜索

路径规划


text:
describe("ReactCompatService", () => {
    let reactCompatService;

    beforeEach(module("BitriseWorkflowEditor"));
    beforeEach(inject((_reactCompatService_) => {
        reactCompatService = _reactCompatService_;
    }));

    describe("cachedFn", () => {
        it("should return same reference when underlying object is the same", () => {
            const mockFn = reactCompatService.cachedFn(() => ([1, 3, 4 ,5]));

            const first = mockFn();
            const second = mockFn();

            expect(first).toBe(second);
        });

        it("should return different reference when underlying object changed", () => {
            let i = 0;
            const mockFn = reactCompatService.cachedFn(() => ([1, 3, 4, 5, ++i]));

            const first = mockFn();
            const second = mockFn();

            expect(first).not.toBe(second);
        });
    });
});


text:
import { keys } from './object';

function badExports ( option, keys ) {
	throw new Error( `'${option}' was specified for options.exports, but entry module has following exports: ${keys.join(', ')}` );
}

export default function getExportMode ( bundle, exportMode ) {
	const exportKeys = keys( bundle.entryModule.exports ).concat( keys( bundle.entryModule.reexports ) );

	if ( exportMode === 'default' ) {
		if ( exportKeys.length !== 1 || exportKeys[0] !== 'default' ) {
			badExports( 'default', exportKeys );
		}
	} else if ( exportMode === 'none' && exportKeys.length ) {
		badExports( 'none', exportKeys );
	}

	if ( !exportMode || exportMode === 'auto' ) {
		if ( exportKeys.length === 0 ) {
			exportMode = 'none';
		} else if ( exportKeys.length === 1 && exportKeys[0] === 'default' ) {
			exportMode = 'default';
		} else {
			exportMode = 'named';
		}
	}

	if ( !/(?:default|named|none)/.test( exportMode ) ) {
		throw new Error( `options.exports must be 'default', 'named', 'none', 'auto', or left unspecified (defaults to 'auto')` );
	}

	return exportMode;
}


text:
package io.selendroid;

import org.openqa.selenium.remote.CommandInfo;
import org.openqa.selenium.remote.HttpCommandExecutor;
import org.openqa.selenium.remote.http.HttpMethod;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;

public class SelendroidCommandExecutor extends HttpCommandExecutor {
  private final static String VENDOR_PREFIX = "/session/:sessionId/selendroid/";
  private final static Map<String, CommandInfo> SELENDROID_COMMANDS =
      new HashMap<String, CommandInfo>() {
        {
          // TODO remove network connection once 2.42 is released for Selenium
          put("getNetworkConnection", new CommandInfo("/session/:sessionId/network_connection",
              HttpMethod.GET));
          put("setNetworkConnection", new CommandInfo("/session/:sessionId/network_connection",
                  HttpMethod.POST));
          put("actions", new CommandInfo("/session/:sessionId/actions", HttpMethod.POST));

          put("selendroid-getBrightness", newVendorCommand("screen/brightness", HttpMethod.GET));
          put("selendroid-setBrightness", newVendorCommand("screen/brightness", HttpMethod.POST));

          put("selendroid-getCommandConfiguration",
                  newVendorCommand("configure/command/:command", HttpMethod.GET));
          put("selendroid-setCommandConfiguration",
                  newVendorCommand("configure/command/:command", HttpMethod.POST));

          put("selendroid-adb-sendKeyEvent",newVendorCommand("adb/sendKeyEvent", HttpMethod.POST));
          put("selendroid-adb-sendText", newVendorCommand("adb/sendText", HttpMethod.POST));
          put("selendroid-adb-tap", newVendorCommand("adb/tap", HttpMethod.POST));
          put("selendroid-adb-executeShellCommand",
                  newVendorCommand("adb/executeShellCommand", HttpMethod.POST));

          put("selendroid-handleByExtension", newVendorCommand("extension", HttpMethod.POST));

          put("backgroundApp", newVendorCommand("background", HttpMethod.POST));
          put("resumeApp", newVendorCommand("resume", HttpMethod.POST));

          put("addCallLog", newVendorCommand("addCallLog", HttpMethod.POST));
          put("readCallLog", newVendorCommand("readCallLog", HttpMethod.POST));

          put("-selendroid-forceGcExplicitly", newVendorCommand("gc", HttpMethod.POST));
          put("-selendroid-setAndroidOsSystemProperty",
                  newVendorCommand("systemProperty", HttpMethod.POST));
        }
      };

  private static CommandInfo newVendorCommand(String path, HttpMethod method) {
    return new CommandInfo(VENDOR_PREFIX + path, method);
  }

  public SelendroidCommandExecutor(URL url) throws MalformedURLException {
    super(SELENDROID_COMMANDS, url);
  }

  public SelendroidCommandExecutor() throws MalformedURLException {
    super(SELENDROID_COMMANDS, null);
  }
}


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Mycol. Writ. 6: 1052 (1921)

#### Original name
Hypoxylon rostratum Lloyd, 1921

### Remarks
null


text:
//
//  UITextField+CMKit.m
//  CMKit-HCCategory
//
//  Created by HC on 16/10/25.
//  Copyright © 2016年 HC. All rights reserved.
//

#import "UITextField+CMKit.h"

@implementation UITextField (CMKit)

/**
 *  设置UITextField左边距
 *
 *  @param leftWidth 边距
 */
- (void)setTextFieldLeftPadding:(CGFloat)leftWidth
{
    CGRect frame = self.frame;
    frame.size.width = leftWidth;
    UIView *leftview = [[UIView alloc] initWithFrame:frame];
    self.leftViewMode = UITextFieldViewModeAlways;
    self.leftView = leftview;

}

/**
 设置UITextField 右侧清除按钮图片

 @param normalButtonName      常规图片名
 @param highlightedButtonName 高亮图片名
 */
- (void)setTextFieldClearButtonNormal:(NSString *)normalButtonName Highlighted:(NSString *)highlightedButtonName
{
    UIButton *clearButton = [self valueForKey:@"_clearButton"];
    [clearButton setImage:[UIImage imageNamed:normalButtonName] forState:UIControlStateNormal];
    [clearButton setImage:[UIImage imageNamed:highlightedButtonName] forState:UIControlStateHighlighted];
    self.clearButtonMode = UITextFieldViewModeAlways;

}

/**
 *  设置UITextField Placeholder颜色
 *
 *  @param color 颜色值
 */
- (void)setTextFieldPlaceholderColor:(UIColor *)color
{
    [self setValue:color forKeyPath:@"_placeholderLabel.textColor"];

}

/**
 *  设置全局共用UITextField对象的指定格式
 */
+ (void)setTextFieldSpecifiedformat
{
    //设置全局共用UITextField对象的指定格式(在实际开发中自定义)
    [[self alloc] setTextFieldLeftPadding:10];

    // TODO:需要设置具体的图片
    [[self alloc] setTextFieldClearButtonNormal:@"" Highlighted:@""];

    [[self alloc] setTextFieldPlaceholderColor:[UIColor grayColor]];

}

@end


text:
<!DOCTYPE html>

    <meta http-equiv="refresh" content="0;URL=../../openssl_sys/fn.SSL_CTX_callback_ctrl.html">

Redirecting to ../../openssl_sys/fn.SSL_CTX_callback_ctrl.html...


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Mycotaxon 23: 397 (1985)

#### Original name
Hygrophorus pyrophilus Largent

### Remarks
null


text:
#import "PRProfile.h"
#import "Common/QLJsonSerializable.h"

@interface PRProfile (Json) <QLJsonSerializable>

@end