text:
package com.cloud.storage.template;

import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;

import org.apache.log4j.Logger;

import com.cloud.storage.StorageLayer;
import com.cloud.utils.exception.CloudRuntimeException;
import com.trilead.ssh2.SCPClient;

public class ScpTemplateDownloader extends TemplateDownloaderBase implements TemplateDownloader {
    private static final Logger s_logger = Logger.getLogger(ScpTemplateDownloader.class);

    public ScpTemplateDownloader(StorageLayer storageLayer, String downloadUrl, String toDir, long maxTemplateSizeInBytes, DownloadCompleteCallback callback) {
        super(storageLayer, downloadUrl, toDir, maxTemplateSizeInBytes, callback);

        URI uri;
        try {
            uri = new URI(_downloadUrl);
        } catch (URISyntaxException e) {
            s_logger.warn("URI syntax error: " + _downloadUrl);
            _status = Status.UNRECOVERABLE_ERROR;
            return;
        }

        String path = uri.getPath();
        String filename = path.substring(path.lastIndexOf("/") + 1);
        _toFile = toDir + File.separator + filename;
    }

    @Override
    public long download(boolean resume, DownloadCompleteCallback callback) {
        if (_status == Status.ABORTED ||
            _status == Status.UNRECOVERABLE_ERROR ||
            _status == Status.DOWNLOAD_FINISHED) {
            return 0;
        }

        _resume = resume;

        _start = System.currentTimeMillis();

        URI uri;
        try {
            uri = new URI(_downloadUrl);
        } catch (URISyntaxException e1) {
            _status = Status.UNRECOVERABLE_ERROR;
            return 0;
        }

        String username = uri.getUserInfo();
        String queries = uri.getQuery();
        String password = null;
        if (queries != null) {
            String[] qs = queries.split("&");
            for (String q : qs) {
                String[] tokens = q.split("=");
                if (tokens[0].equalsIgnoreCase("password")) {
                    password = tokens[1];
                    break;
                }
            }
        }
        int port = uri.getPort();
        if (port == -1) {
            port = 22;
        }
        long length = 0;
        File file = new File(_toFile);

        com.trilead.ssh2.Connection sshConnection = new com.trilead.ssh2.Connection(uri.getHost(), port);
        try {
        	if (_storage != null) {
        		file.createNewFile();
            	_storage.setWorldReadableAndWriteable(file);
            }

            sshConnection.connect(null, 60000, 60000);
            if (!sshConnection.authenticateWithPassword(username, password)) {
                throw new CloudRuntimeException("Unable to authenticate");
            }

            SCPClient scp = new SCPClient(sshConnection);

            String src = uri.getPath();

            _status = Status.IN_PROGRESS;
            scp.get(src, _toDir);

            if (!file.exists()) {
                _status = Status.UNRECOVERABLE_ERROR;
                s_logger.debug("unable to scp the file " + _downloadUrl);
                return 0;
            }

            _status = Status.DOWNLOAD_FINISHED;

            _totalBytes = file.length();

            String downloaded = "(download complete)";

            _errorString = "Downloaded " + _remoteSize + " bytes " + downloaded;
            _downloadTime += System.currentTimeMillis() - _start;
            return _totalBytes;

        } catch (Exception e) {
            s_logger.warn("Unable to download " + _downloadUrl, e);
            _status = TemplateDownloader.Status.UNRECOVERABLE_ERROR;
            _errorString = e.getMessage();
            return 0;
        } finally {
            sshConnection.close();
            if (_status == Status.UNRECOVERABLE_ERROR && file.exists()) {
                file.delete();
            }
            if (callback != null) {
                callback.downloadComplete(_status);
            }
        }
    }

    @Override
    public int getDownloadPercent() {
        if (_status == Status.DOWNLOAD_FINISHED) {
            return 100;
        } else if (_status == Status.IN_PROGRESS) {
            return 50;
        } else {
            return 0;
        }
    }

    public static void main(String[] args) {
        String url ="scp://root@sol10-2/root/alex/agent.zip?password=password";
        TemplateDownloader td = new ScpTemplateDownloader(null, url,"/tmp/mysql", TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES, null);
        long bytes = td.download(true, null);
        if (bytes > 0) {
            System.out.println("Downloaded  (" + bytes + " bytes)" + " in " + td.getDownloadTime()/1000 + " secs");
        } else {
            System.out.println("Failed download");
        }

    }
}


text:
package com.kbhit.orangebox.trading.security;

public final class AuthoritiesConstants {

    public static final String ADMIN = "ROLE_ADMIN";

    public static final String USER = "ROLE_USER";

    public static final String ANONYMOUS = "ROLE_ANONYMOUS";

    private AuthoritiesConstants() {
    }
}

redpajama_set_name: RedPajamaGithub


text:
export default class RoutingResult {
  constructor(routeSearch, matchedRoute) {
    this.routeSearch = routeSearch;
    this.matchedRoute = matchedRoute;
    this.handler = matchedRoute && matchedRoute.handler;
  }

  isSuccess() {
    // TODO: There's probably a better check for a route's success.
    return this.matchedRoute !== null;
  }
}


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="The unofficial group of developers working on SF's Clipper Card technology">
    <meta name="author" content="Trent Oswald (@therebelrobot)">

    <title>ClipperCardDevs</title>

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

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css">

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

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

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

                </button>
                ClipperCardDevs

                        About

                        Why

                        How

                        Contact

Transit Tech at your fingertips

Find info and technology surrounding the MTC Clipper Card here.

                Find Out More

Who are we?

ClipperCardDevs is an informal group of developers gathering around resources and technologies to
                    improve usage of the MTC Clipper Card. We are unofficial (NOT endorsed by MTC nor clippercard.com)
                    but enthusiastic about making the lives of transit users easier.

                     Visit our Github Org!

Why?

Improve Access to Clipper Data

We aim to collect current technology to make development around the Clipper card easier.

Improve Future Policy

We aim to communicate with MTC and lobby for pro-tech changes to policy and usage.

Developer Support

We aim to assist developers looking to integrate Clipper data into their applications.

Open and Transparent

We aim to release all our work open source. Visit our Github Org to take a look.

                                    Docs

                                    Current API Documentation Project

                                    Proposals

                                    2019 API proposal

                                    Python

                                    clippercard-python

                                    Ruby

                                    clippercard-ruby

                                    Node / Javascript

                                    clippercard-node

Want to help?

                 Visit our github org!

Let's Get In Touch!

Feel free to reach out to us with any questions or concerns.


text:
These samples demonstrate basic usage of the DoubleClick Ad Exchange Seller
REST API.

The DoubleClick Ad Exchange Seller API Client Libraries makes it easier to
write clients to programmatically access Ad Exchange Seller accounts.
The complete documentation for the DoubleClick Ad Exchange Seller API is
available from <https://developers.google.com/ad-exchange/seller-rest/>.

##Announcements and updates

For API and client library updates and news, please follow our Google+ Ads
Developers page: <https://plus.google.com/+GoogleAdsDevelopers/posts>
and our Google Ads Developers blog: <http://googleadsdeveloper.blogspot.com/>.

##Prerequisites
- [`PHP 5.2.1+`](http://php.net/)
- [`PHP Client library for Google APIs`](https://developers.google.com/api-client-library/php/start/installation)

##Setup

###Download the repository contents

To download the contents of the repository, you can use the command

```
git clone https://github.com/googleads/googleads-adxseller-examples
```

or browse to <https://github.com/googleads/googleads-adxseller-examples> and
 download a zip.

###Authorization Setup
The API uses OAuth2 for security, you can read about the options for connecting
 at <https://developers.google.com/ad-exchange/seller-rest/getting_started#auth>

 * Launch the Google Developers Console <https://console.developers.google.com>
 * select a project
 * click **APIs & auth**
 * click the **Credentials** tab
 * if you need to create a ```Client ID for native application```
  * click **Create a new client ID**
  * select **Installed Application**
 * Click **Download JSON** for a ```Client ID for native application```
 * copy this file to ```php-clientlib-1.x /v1.x/client_secrets.json```.

## Running the Examples

Change the include path in ```adexchangeseller-sample.php``` to your client library installation

Open the sample (http://your/path/adexchangeseller-sample.php) in your browser

This will start an authentication flow, redirect back to your server, and then print data about your Ad Exchange Seller account.


text:
import sys
import os.path
from os.path import join as jp
here = os.path.dirname(__file__)
sys.path.insert(0, jp(here, '..'))

from multiconf import mc_config, ConfigItem, ConfigException, ConfigDefinitionException, MC_REQUIRED, RepeatableConfigItem, ConfigBuilder
from multiconf.decorators import nested_repeatables, named_as, required
from multiconf.envs import EnvFactory
from test.utils.utils import line_num
from test.utils.check_containment import check_containment

ef = EnvFactory()
prod = ef.Env('prod')
pp = ef.Env('pp')

class ItemWithAA(ConfigItem):
    def __init__(self):
        self.aa = None

@mc_config(ef, load_now=True)
def config(_):
    with ItemWithAA() as cr:
        print("here1")
        cr.setattr('aa', default=None, prod=1, pp=2)
        print("here2")

    print("here3")
print("here4")
cr = config(prod).ItemWithAA
assert cr.aa == 1


text:
using Microsoft.Azure.Mobile.Server;

namespace CloudBread.DataObjects
{
    public class TodoItem : EntityData
    {
        public string Text { get; set; }

        public bool Complete { get; set; }
    }
}


text:
package com.adamroughton.concentus.service.spark

import com.adamroughton.concentus.cluster.worker.ClusterService
import com.adamroughton.concentus.data.cluster.kryo.ServiceState
import com.adamroughton.concentus.cluster.worker.StateData
import com.adamroughton.concentus.cluster.worker.ClusterHandle
import org.apache.commons.io.FileUtils
import java.nio.file.Paths
import java.nio.file.Files
import spark.Logging

private case class ArgList(list: List[String]) {

	def ::(condAndArg: (Boolean, String)): ArgList = {
		if (condAndArg._1) {
	    	new ArgList(condAndArg._2 :: list)
	    } else {
	    	this
	    }
	}

	def :::(condAndArg: (Boolean, List[String])): ArgList = {
		if (condAndArg._1) {
			new ArgList(condAndArg._2 ::: list)
		} else {
			this
		}
	}

	def ::(item: String) : ArgList = {
		new ArgList(item :: list)
	}

	def toList(): List[String] = {
		list
	}
}

class ConcentusSparkConfig(var _sparkHome: String, var _scratchDir: String, var _isDistributed: Boolean,
    var _memoryProperty: String = "2g", var _logLifecycleEvents: Boolean = false) {

  // for Kryo
  private[this] def this() = this(null, null, false, null, false)

  def sparkHome = _sparkHome
  def scratchDir = _scratchDir
  def isDistributed = _isDistributed
  def memoryProperty = _memoryProperty
  def logLifecycleEvents = _logLifecycleEvents

}

trait ScratchSpaceUser extends ClusterService[ServiceState] with Logging {

  def config: ConcentusSparkConfig
  val manageDir = this.isInstanceOf[SparkMasterService] || config.isDistributed
  val scratchPath = Paths.get(config.scratchDir)

  abstract protected override def onStateChanged(newServiceState: ServiceState, stateChangeIndex: Int,
      stateData: StateData, cluster: ClusterHandle) = {
    newServiceState match {
      case ServiceState.INIT if manageDir => {
    	// create directory before initialising
        logInfo("Creating scratch dir " + scratchPath.toString)
	    FileUtils.deleteQuietly(scratchPath.toFile)
	    Files.createDirectory(scratchPath)

	    super.onStateChanged(newServiceState, stateChangeIndex, stateData, cluster)
      }
      case ServiceState.SHUTDOWN if manageDir => {
        super.onStateChanged(newServiceState, stateChangeIndex, stateData, cluster)

        // remove directory after shutting down service
        logInfo("Removing scratch dir " + scratchPath.toString)
        FileUtils.deleteQuietly(scratchPath.toFile)
      }
      case _ => super.onStateChanged(newServiceState, stateChangeIndex, stateData, cluster)
    }
  }

}


text:
#ifndef DB_QUERY_PARAMETERS_H_
#define DB_QUERY_PARAMETERS_H_

#include "apr_dbd.h"
#include "apr_tables.h"
#include "apr.h"

#include "database/db_config.h"

typedef enum{
	EQUAL =0,
	LIKE,
	GREATER,
	LESS,
	BETWEEN,
	IN
}condition_operator;

typedef enum{
	LIMIT = 0,
	OFFSET,
	GROUP_BY,
	ORDER_BY
}sql_clauses;

#define NUM_SQL_CLAUSES 4

//SQL Where conditions
struct query_where_condition_{
	db_table_column_t* column;
	condition_operator operator;
	const char* condition;
};

//SQL clauses struct (Limit, Group By, ...)
struct query_sql_clasuses_{
	const char* freindly_name;
	const char* value;
};

struct custom_parameter_{
	const char* freindly_name;
	const char* type;
	const char* value;
};

//Query parameters including SQL Clauses and Custom parameters
struct db_query_parameters_{
	apr_pool_t* pool;

	char num_columns;

	apr_array_header_t* where_conditions;

	query_sql_clauses_t* sql_clauses;

	char num_custom_parameters;
	apr_array_header_t* custom_parameters;
};

int db_query_parameters_init (apr_pool_t* pool, db_query_parameters_t** db_query_parameters);
int db_query_parameters_add_where(db_query_parameters_t* db_query_parameters, db_table_column_t* column, const char* condition);

int db_query_parameters_find_custom_by_friendly(db_query_parameters_t* db_query_parameters, const char* friendly_name, custom_parameter_t** custom_parameter);
#endif /* DB_QUERY_PARAMETERS_H_ */


text:
#include <thrift/test/gen-cpp2/reflection_fatal_struct.h>

#include <thrift/lib/cpp2/fatal/internal/test_helpers.h>

#include <gtest/gtest.h>

FATAL_STR(struct1s, "struct1");
FATAL_STR(field0s, "field0");
FATAL_STR(field1s, "field1");
FATAL_STR(field2s, "field2");
FATAL_STR(field3s, "field3");
FATAL_STR(field4s, "field4");
FATAL_STR(field5s, "field5");
FATAL_STR(fieldAs, "fieldA");
FATAL_STR(fieldBs, "fieldB");
FATAL_STR(fieldCs, "fieldC");
FATAL_STR(fieldDs, "fieldD");
FATAL_STR(fieldEs, "fieldE");
FATAL_STR(fieldFs, "fieldF");
FATAL_STR(fieldGs, "fieldG");

template <apache::thrift::field_id_t Id>
using field_id = std::integral_constant<apache::thrift::field_id_t, Id>;

template <apache::thrift::optionality Optionality>
using required = std::integral_constant<
  apache::thrift::optionality,
  Optionality
>;

namespace test_cpp2 {
namespace cpp_reflection {

TEST(fatal_struct, struct1_sanity_check) {
  using traits = apache::thrift::reflect_struct<struct1>;

  EXPECT_SAME<struct1, traits::type>();
  EXPECT_SAME<struct1s, traits::name>();
  EXPECT_SAME<reflection_tags::module, traits::module>();

  EXPECT_SAME<traits, apache::thrift::try_reflect_struct<struct1, void>>();
  EXPECT_SAME<void, apache::thrift::try_reflect_struct<int, void>>();

  EXPECT_SAME<field0s, traits::names::field0>();
  EXPECT_SAME<field1s, traits::names::field1>();
  EXPECT_SAME<field2s, traits::names::field2>();
  EXPECT_SAME<field3s, traits::names::field3>();
  EXPECT_SAME<field4s, traits::names::field4>();
  EXPECT_SAME<field5s, traits::names::field5>();

  EXPECT_SAME<
    fatal::build_type_map<
      field0s, std::int32_t,
      field1s, std::string,
      field2s, enum1,
      field3s, enum2,
      field4s, union1,
      field5s, union2
    >,
    traits::types
  >();

  EXPECT_SAME<
    fatal::build_type_map<
      field0s, field_id<1>,
      field1s, field_id<2>,
      field2s, field_id<3>,
      field3s, field_id<4>,
      field4s, field_id<5>,
      field5s, field_id<6>
    >,
    traits::ids
  >();

  EXPECT_SAME<
    fatal::type_list<
      field0s,
      field1s,
      field2s,
      field3s,
      field4s,
      field5s
    >,
    traits::getters::keys
  >();

  struct1 pod;
  pod.field0 = 19;
  pod.field1 = "hello";
  pod.field2 = enum1::field2;
  pod.field3 = enum2::field1_2;
  pod.field4.set_ud(5.6);
  pod.field5.set_us_2("world");

  EXPECT_EQ(pod.field0, traits::getters::get<traits::names::field0>::ref(pod));
  EXPECT_EQ(pod.field1, traits::getters::get<traits::names::field1>::ref(pod));
  EXPECT_EQ(pod.field2, traits::getters::get<traits::names::field2>::ref(pod));
  EXPECT_EQ(pod.field3, traits::getters::get<traits::names::field3>::ref(pod));
  EXPECT_EQ(pod.field4, traits::getters::get<traits::names::field4>::ref(pod));
  EXPECT_EQ(pod.field5, traits::getters::get<traits::names::field5>::ref(pod));

  traits::getters::get<traits::names::field0>::ref(pod) = 98;
  EXPECT_EQ(98, pod.field0);

  traits::getters::get<traits::names::field1>::ref(pod) = "test";
  EXPECT_EQ("test", pod.field1);

  traits::getters::get<traits::names::field2>::ref(pod) = enum1::field0;
  EXPECT_EQ(enum1::field0, pod.field2);

  traits::getters::get<traits::names::field3>::ref(pod) = enum2::field2_2;
  EXPECT_EQ(enum2::field2_2, pod.field3);

  traits::getters::get<traits::names::field4>::ref(pod).set_ui(56);
  EXPECT_EQ(union1::Type::ui, pod.field4.getType());
  EXPECT_EQ(56, pod.field4.get_ui());

  traits::getters::get<traits::names::field5>::ref(pod).set_ue_2(enum1::field1);
  EXPECT_EQ(union2::Type::ue_2, pod.field5.getType());
  EXPECT_EQ(enum1::field1, pod.field5.get_ue_2());

  EXPECT_SAME<field0s, traits::members::get<field0s>::name>();
  EXPECT_SAME<field1s, traits::members::get<field1s>::name>();
  EXPECT_SAME<field2s, traits::members::get<field2s>::name>();
  EXPECT_SAME<field3s, traits::members::get<field3s>::name>();
  EXPECT_SAME<field4s, traits::members::get<field4s>::name>();
  EXPECT_SAME<field5s, traits::members::get<field5s>::name>();

  EXPECT_SAME<std::int32_t, traits::members::get<field0s>::type>();
  EXPECT_SAME<std::string, traits::members::get<field1s>::type>();
  EXPECT_SAME<enum1, traits::members::get<field2s>::type>();
  EXPECT_SAME<enum2, traits::members::get<field3s>::type>();
  EXPECT_SAME<union1, traits::members::get<field4s>::type>();
  EXPECT_SAME<union2, traits::members::get<field5s>::type>();

  EXPECT_SAME<field_id<1>, traits::members::get<field0s>::id>();
  EXPECT_SAME<field_id<2>, traits::members::get<field1s>::id>();
  EXPECT_SAME<field_id<3>, traits::members::get<field2s>::id>();
  EXPECT_SAME<field_id<4>, traits::members::get<field3s>::id>();
  EXPECT_SAME<field_id<5>, traits::members::get<field4s>::id>();
  EXPECT_SAME<field_id<6>, traits::members::get<field5s>::id>();

  EXPECT_SAME<
    required<apache::thrift::optionality::required>,
    traits::members::get<field0s>::optional
  >();
  EXPECT_SAME<
    required<apache::thrift::optionality::optional>,
    traits::members::get<field1s>::optional
  >();
  EXPECT_SAME<
    required<apache::thrift::optionality::required_of_writer>,
    traits::members::get<field2s>::optional
  >();
  EXPECT_SAME<
    required<apache::thrift::optionality::required>,
    traits::members::get<field3s>::optional
  >();
  EXPECT_SAME<
    required<apache::thrift::optionality::optional>,
    traits::members::get<field4s>::optional
  >();
  EXPECT_SAME<
    required<apache::thrift::optionality::required_of_writer>,
    traits::members::get<field5s>::optional
  >();

  EXPECT_EQ(
    98,
    traits::members::get<traits::names::field0>::getter::ref(pod)
  );
  EXPECT_EQ(
    "test",
    traits::members::get<traits::names::field1>::getter::ref(pod)
  );
  EXPECT_EQ(
    enum1::field0,
    traits::members::get<traits::names::field2>::getter::ref(pod)
  );
  EXPECT_EQ(
    enum2::field2_2,
    traits::members::get<traits::names::field3>::getter::ref(pod)
  );
  EXPECT_EQ(
    union1::Type::ui,
    traits::members::get<traits::names::field4>::getter::ref(pod).getType()
  );
  EXPECT_EQ(
    56,
    traits::members::get<traits::names::field4>::getter::ref(pod).get_ui()
  );
  EXPECT_EQ(
    union2::Type::ue_2,
    traits::members::get<traits::names::field5>::getter::ref(pod).getType()
  );
  EXPECT_EQ(
    enum1::field1,
    traits::members::get<traits::names::field5>::getter::ref(pod).get_ue_2()
  );

  EXPECT_SAME<
    apache::thrift::type_class::integral,
    traits::members::get<field0s>::type_class
  >();
  EXPECT_SAME<
    apache::thrift::type_class::string,
    traits::members::get<field1s>::type_class
  >();
  EXPECT_SAME<
    apache::thrift::type_class::enumeration,
    traits::members::get<field2s>::type_class
  >();
  EXPECT_SAME<
    apache::thrift::type_class::enumeration,
    traits::members::get<field3s>::type_class
  >();
  EXPECT_SAME<
    apache::thrift::type_class::variant,
    traits::members::get<field4s>::type_class
  >();
  EXPECT_SAME<
    apache::thrift::type_class::variant,
    traits::members::get<field5s>::type_class
  >();

  EXPECT_SAME<
    std::int32_t,
    decltype(std::declval<traits::members::get<field0s>::pod<>>().field0)
  >();
  EXPECT_SAME<
    std::string,
    decltype(std::declval<traits::members::get<field1s>::pod<>>().field1)
  >();
  EXPECT_SAME<
    enum1,
    decltype(std::declval<traits::members::get<field2s>::pod<>>().field2)
  >();
  EXPECT_SAME<
    enum2,
    decltype(std::declval<traits::members::get<field3s>::pod<>>().field3)
  >();
  EXPECT_SAME<
    union1,
    decltype(std::declval<traits::members::get<field4s>::pod<>>().field4)
  >();
  EXPECT_SAME<
    union2,
    decltype(std::declval<traits::members::get<field5s>::pod<>>().field5)
  >();

  EXPECT_SAME<
    bool,
    decltype(std::declval<traits::members::get<field0s>::pod<bool>>().field0)
  >();
  EXPECT_SAME<
    bool,
    decltype(std::declval<traits::members::get<field1s>::pod<bool>>().field1)
  >();
  EXPECT_SAME<
    bool,
    decltype(std::declval<traits::members::get<field2s>::pod<bool>>().field2)
  >();
  EXPECT_SAME<
    bool,
    decltype(std::declval<traits::members::get<field3s>::pod<bool>>().field3)
  >();
  EXPECT_SAME<
    bool,
    decltype(std::declval<traits::members::get<field4s>::pod<bool>>().field4)
  >();
  EXPECT_SAME<
    bool,
    decltype(std::declval<traits::members::get<field5s>::pod<bool>>().field5)
  >();

  EXPECT_SAME<
    traits::member<>::field0,
    traits::members::get<traits::names::field0>
  >();
  EXPECT_SAME<
    traits::member<>::field1,
    traits::members::get<traits::names::field1>
  >();
  EXPECT_SAME<
    traits::member<>::field2,
    traits::members::get<traits::names::field2>
  >();
  EXPECT_SAME<
    traits::member<>::field3,
    traits::members::get<traits::names::field3>
  >();
  EXPECT_SAME<
    traits::member<>::field4,
    traits::members::get<traits::names::field4>
  >();
  EXPECT_SAME<
    traits::member<>::field5,
    traits::members::get<traits::names::field5>
  >();
}

FATAL_STR(structB_annotation1k, "some.annotation");
FATAL_STR(structB_annotation1v, "this is its value");
FATAL_STR(structB_annotation2k, "some.other.annotation");
FATAL_STR(structB_annotation2v, "this is its other value");

TEST(fatal_struct, annotations) {
  EXPECT_SAME<
    fatal::type_map<>,
    apache::thrift::reflect_struct<struct1>::annotations::map
  >();

  EXPECT_SAME<
    fatal::type_map<>,
    apache::thrift::reflect_struct<struct2>::annotations::map
  >();

  EXPECT_SAME<
    fatal::type_map<>,
    apache::thrift::reflect_struct<struct3>::annotations::map
  >();

  EXPECT_SAME<
    fatal::type_map<>,
    apache::thrift::reflect_struct<structA>::annotations::map
  >();

  using structB_annotations = apache::thrift::reflect_struct<structB>
    ::annotations;

  EXPECT_SAME<
    structB_annotation1k,
    structB_annotations::keys::some_annotation
  >();
  EXPECT_SAME<
    structB_annotation1v,
    structB_annotations::values::some_annotation
  >();
  EXPECT_SAME<
    structB_annotation2k,
    structB_annotations::keys::some_other_annotation
  >();
  EXPECT_SAME<
    structB_annotation2v,
    structB_annotations::values::some_other_annotation
  >();
  EXPECT_SAME<
    fatal::build_type_map<
      structB_annotation1k, structB_annotation1v,
      structB_annotation2k, structB_annotation2v
    >,
    structB_annotations::map
  >();

  EXPECT_SAME<
    fatal::type_map<>,
    apache::thrift::reflect_struct<structC>::annotations::map
  >();
}

FATAL_STR(structBd_annotation1k, "another.annotation");
FATAL_STR(structBd_annotation1v, "another value");
FATAL_STR(structBd_annotation2k, "some.annotation");
FATAL_STR(structBd_annotation2v, "some value");

TEST(fatal_struct, member_annotations) {
  using info = apache::thrift::reflect_struct<structB>;

  EXPECT_SAME<fatal::build_type_map<>, info::members_annotations::c::map>();
  EXPECT_SAME<
    fatal::build_type_map<>,
    info::members::get<info::names::c>::annotations::map
  >();

  using annotations_d = info::members::get<info::names::d>::annotations;
  using expected_d_map = fatal::build_type_map<
    structBd_annotation1k, structBd_annotation1v,
    structBd_annotation2k, structBd_annotation2v
  >;

  EXPECT_SAME<expected_d_map, info::members_annotations::d::map>();
  EXPECT_SAME<expected_d_map, annotations_d::map>();

  EXPECT_SAME<
    structBd_annotation1k,
    info::members_annotations::d::keys::another_annotation
  >();
  EXPECT_SAME<
    structBd_annotation1v,
    info::members_annotations::d::values::another_annotation
  >();
  EXPECT_SAME<
    structBd_annotation2k,
    info::members_annotations::d::keys::some_annotation
  >();
  EXPECT_SAME<
    structBd_annotation2v,
    info::members_annotations::d::values::some_annotation
  >();

  EXPECT_SAME<
    structBd_annotation1k,
    annotations_d::keys::another_annotation
  >();
  EXPECT_SAME<
    structBd_annotation1v,
    annotations_d::values::another_annotation
  >();
  EXPECT_SAME<
    structBd_annotation2k,
    annotations_d::keys::some_annotation
  >();
  EXPECT_SAME<
    structBd_annotation2v,
    annotations_d::values::some_annotation
  >();
}

TEST(fatal_struct, set_methods) {
  using info = apache::thrift::reflect_struct<struct4>;
  using req_field = info::members::get<info::names::field0>;
  using opt_field = info::members::get<info::names::field1>;
  using def_field = info::members::get<info::names::field2>;

  using ref_field = info::members::get<info::names::field3>;

  struct4 a;
  EXPECT_EQ(true, req_field::is_set(a));
  req_field::mark_set(a);
  EXPECT_EQ(true, req_field::is_set(a));
  // can't test that req_field::unmark_set doesn't compile,
  // but trust me, it shoudln't
  // req_field::unmark_set(a);

  EXPECT_EQ(false, opt_field::is_set(a));
  opt_field::mark_set(a);
  EXPECT_EQ(true, opt_field::is_set(a));
  opt_field::unmark_set(a);
  EXPECT_EQ(false, opt_field::is_set(a));

  EXPECT_EQ(false, def_field::is_set(a));
  def_field::mark_set(a);
  EXPECT_EQ(true, def_field::is_set(a));
  def_field::unmark_set(a);
  EXPECT_EQ(false, def_field::is_set(a));

  EXPECT_EQ(true, ref_field::is_set(a));
  ref_field::mark_set(a);
  EXPECT_EQ(true, req_field::is_set(a));
}

} // namespace cpp_reflection {
} // namespace test_cpp2 {


text:
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import {GraphView} from './GraphView.js';

// A class that maps each context to its corresponding graph.
// It controls which graph to render when the context is switched or updated.
export class GraphManager {
  private readonly graphMapByContextId = new Map<string, GraphView>();

  createContext(contextId: string): void {
    const graph = new GraphView(contextId);
    this.graphMapByContextId.set(contextId, graph);
  }

  destroyContext(contextId: string): void {
    if (!this.graphMapByContextId.has(contextId)) {
      return;
    }

    const graph = this.graphMapByContextId.get(contextId);
    if (!graph) {
      return;
    }

    this.graphMapByContextId.delete(contextId);
  }

  hasContext(contextId: string): boolean {
    return this.graphMapByContextId.has(contextId);
  }

  clearGraphs(): void {
    this.graphMapByContextId.clear();
  }

  /**
   * Get graph by contextId.
   * If the user starts listening for WebAudio events after the page has been running a context for awhile,
   * the graph might be undefined.
   */
  getGraph(contextId: string): GraphView|null {
    return this.graphMapByContextId.get(contextId) || null;
  }
}


text:
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE.md)

Introduction
============

ArcticKit is a useful collection of classes for creating games (or similar projects) fast and easy. This Kit needs Arctic in order to work correctly!

Platforms
=========

All classes in ArcticKit are tested on the follwing platforms:

 * Windows
 * Android
 * HTML5

Flash is also supported, but perform not very well (Arctic needs a special renderer for Flash, planned)

License
=======

Arctic is free, open-source software under the [MIT License](http://opensource.org/licenses/MIT).


text:
package uk.co.real_logic.message_code_bench.protobuf;

import org.openjdk.jmh.annotations.GenerateMicroBenchmark;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import uk.co.real_logic.protobuf.examples.Examples;
import uk.co.real_logic.protobuf.examples.Examples.Car.Model;
import uk.co.real_logic.protobuf.examples.Examples.PerformanceFigures;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

public class CarBenchmark
{
    private static final String VEHICLE_CODE = "abcdef";
    private static final String ENG_MAN_CODE = "abc";
    private static final String MAKE = "AUDI";
    private static final String MODEL = "R8";

    @State(Scope.Benchmark)
    public static class MyState
    {
        final Examples.Car.Builder car = Examples.Car.newBuilder();
        final byte[] decodeBuffer;

        final ByteArrayInputStream in;
        final ByteArrayOutputStream out = new ByteArrayOutputStream();

        {
            try
            {
                encode(car, out);
            }
            catch (final Exception ex)
            {
                throw new RuntimeException(ex);
            }

            decodeBuffer = out.toByteArray();
            in = new ByteArrayInputStream(decodeBuffer);
        }
    }

    @GenerateMicroBenchmark
    public int testEncode(final MyState state) throws Exception
    {
        final Examples.Car.Builder car = state.car;
        final ByteArrayOutputStream out = state.out;

        return encode(car,  out);
    }

    @GenerateMicroBenchmark
    public int testDecode(final MyState state) throws Exception
    {
        final Examples.Car.Builder car = state.car;
        final ByteArrayInputStream in = state.in;

        return decode(car, in);
    }

    private static int encode(final Examples.Car.Builder car, final ByteArrayOutputStream out) throws Exception
    {
        out.reset();

        car.clear()
           .setCode(Model.A)
           .setModelYear(2005)
           .setSerialNumber(12345)
           .setAvailable(true)
           .setVehicleCode(VEHICLE_CODE);

        for (int i = 0, size = 5; i < size; i++)
        {
            car.addSomeNumbers(i);
        }

        car.addOptionalExtras(Examples.Car.Extras.SPORTS_PACK)
           .addOptionalExtras(Examples.Car.Extras.SUN_ROOF);

        car.getEngineBuilder().setCapacity(4200)
                              .setNumCylinders(8)
                              .setManufacturerCode(ENG_MAN_CODE);

        car.addFuelFiguresBuilder().setSpeed(30).setMpg(35.9F);
        car.addFuelFiguresBuilder().setSpeed(30).setMpg(49.0F);
        car.addFuelFiguresBuilder().setSpeed(30).setMpg(40.0F);

        final PerformanceFigures.Builder perf1 = car.addPerformanceBuilder().setOctaneRating(95);
        perf1.addAccelerationBuilder().setMph(30).setSeconds(4.0f);
        perf1.addAccelerationBuilder().setMph(60).setSeconds(7.5f);
        perf1.addAccelerationBuilder().setMph(100).setSeconds(12.2f);

        final PerformanceFigures.Builder perf2 = car.addPerformanceBuilder().setOctaneRating(95);
        perf2.addAccelerationBuilder().setMph(30).setSeconds(3.8f);
        perf2.addAccelerationBuilder().setMph(60).setSeconds(7.1f);
        perf2.addAccelerationBuilder().setMph(100).setSeconds(11.8f);

        car.setMake(MAKE);
        car.setModel(MODEL);

        car.build().writeTo(out);

        return out.size();
    }

    private static int decode(final Examples.Car.Builder car,
                              final ByteArrayInputStream in) throws Exception
    {
        in.mark(in.available());

        car.clear();
        car.mergeFrom(in);

        car.getSerialNumber();
        car.getModelYear();
        car.hasAvailable();
        car.getCode();

        for (int i = 0, size = car.getSomeNumbersCount(); i < size; i++)
        {
            car.getSomeNumbers(i);
        }

        car.getVehicleCode();

        for (int i = 0, size = car.getOptionalExtrasCount(); i < size; i++)
        {
            car.getOptionalExtras(i);
        }

        final Examples.Engine engine = car.getEngine();
        engine.getCapacity();
        engine.getNumCylinders();
        engine.getMaxRpm();
        engine.getManufacturerCode();
        engine.getFuel();

        for (final Examples.FuelFigures fuelFigures : car.getFuelFiguresList())
        {
            fuelFigures.getSpeed();
            fuelFigures.getMpg();
        }

        for (final PerformanceFigures performanceFigures : car.getPerformanceList())
        {
            performanceFigures.getOctaneRating();

            for (final Examples.Acceleration acceleration : performanceFigures.getAccelerationList())
            {
                acceleration.getMph();
                acceleration.getSeconds();
            }
        }

        car.getMake();
        car.getModel();

        in.reset();

        return in.available();
    }

    /*
     * Benchmarks to allow execution outside of JMH.
     */

    public static void main(final String[] args) throws Exception
    {
        for (int i = 0; i < 10; i++)
        {
            perfTestEncode(i);
            perfTestDecode(i);
        }
    }

    private static void perfTestEncode(final int runNumber) throws Exception
    {
        final int reps = 1 * 1000 * 1000;
        final MyState state = new MyState();
        final CarBenchmark benchmark = new CarBenchmark();

        final long start = System.nanoTime();
        for (int i = 0; i < reps; i++)
        {
            benchmark.testEncode(state);
        }

        final long totalDuration = System.nanoTime() - start;

        System.out.printf("%d - %d(ns) average duration for %s.testEncode() - message size %d\n",
                          Integer.valueOf(runNumber),
                          Long.valueOf(totalDuration / reps),
                          benchmark.getClass().getName(),
                          Integer.valueOf(state.car.getSomeNumbersCount()));
    }

    private static void perfTestDecode(final int runNumber) throws Exception
    {
        final int reps = 1 * 1000 * 1000;
        final MyState state = new MyState();
        final CarBenchmark benchmark = new CarBenchmark();

        final long start = System.nanoTime();
        for (int i = 0; i < reps; i++)
        {
            benchmark.testDecode(state);
        }

        final long totalDuration = System.nanoTime() - start;

        System.out.printf("%d - %d(ns) average duration for %s.testDecode() - message size %d\n",
                          Integer.valueOf(runNumber),
                          Long.valueOf(totalDuration / reps),
                          benchmark.getClass().getName(),
                          Integer.valueOf(state.car.getSomeNumbersCount()));
    }
}


text:
from django.db import models
from taggit.managers import TaggableManager
from django.conf import settings
from autoslug import AutoSlugField

'''
La intencion basica del app es brindar un espacio del tipo Stack-Overflow donde
los integrantes de la comunidad tengan la posibilidad de exponer sus dudas, y
que la misma comunidad pueda contestar y aportar, con un debate sano y
constructivo.
'''

class ForoManager(models.Manager):
    '''Manager generico para los modelos del app, siguiendo los lineamientos de
    buenas practicas de Django, al separar las funcionalidades de los modelos y
    la interaccion con la base de datos.'''

    # Estoy poniendo las funciones vacias para planear las interacciones y
    # posteriormente definer la forma de interaccion.

    def get_unanswered_questions():
        pass

    def get_answered_questions():
        pass

    def get_questions_answers():
        pass

    def get_answers():
        pass

class Pregunta(models.Model):
    '''La meta es crear un espacio donde sea posible hacer una pregunta a la
    comunidad, y esta responda, apoyando a la construccion de conocimiento
    colaborativo.
    '''
    creado_en = models.DateTimeField(auto_now_add=True, editable=False)
    modificado_en = models.DateTimeField(auto_now=True)
    autor = models.ForeignKey(settings.AUTH_USER_MODEL)
    titulo = models.CharField(max_length=255)
    descripcion = models.TextField(max_length=3000)
    slug = AutoSlugField(populate_from='titulo', unique=True, editable=False)
    tags = TaggableManager()
    objects = ForoManager()

    class Meta:
        verbose_name = 'Pregunta'
        verbose_name_plural = 'Preguntas'
        ordering = ('-creado_en',)

    def __str__(self):
        return self.titulo

class Respuesta(models.Model):
    '''Las respuestas seran calificadas por la misma comunidad, buscando con
    eso dar mayor visibilidad a aquellas mejores respuestas. Adicionalmente las
    respuestas podran ser aceptadas por el usuario que hizo la pregunta, para
    calificar esas respuestas y destacar las que adicionalmente funcionaron o
    clarificaron lo que se buscaba.
    '''
    creado_en = models.DateTimeField(auto_now_add=True, editable=False)
    modificado_en = models.DateTimeField(auto_now=True)
    autor = models.ForeignKey(settings.AUTH_USER_MODEL)
    pregunta = models.ForeignKey(Pregunta)
    descripcion = models.TextField(max_length=2000)
    votos = models.IntegerField(default=0)
    aceptada = models.BooleanField(default=False)
    slug = AutoSlugField(populate_from='titulo', unique=True, editable=False)
    tags = TaggableManager()
    objects = ForoManager()

    class Meta:
        verbose_name = 'Respuesta'
        verbose_name_plural = 'Respuestas'
        ordering = ('-aceptada', '-votos', 'creado_en',)

    def __str__(self):
        return self.descripcion


text:
from .component import Entity, Spritable, Killable
from .player import Player


text:
class Neg01 {
    interface IA { default int m() { return Neg01.m1(this); } }
    interface IB { default int m() { return Neg01.m2(this); } }

    static class A implements IA {}
    static class B implements IB {}

    static class AB implements IA, IB {}

    static int m1(IA a) { return 0; }
    static int m2(IB b) { return 0; }
}


text:
layout: page
title: "Paul Jason Maxon"
comments: true
description: "blanks"
keywords: "Paul Jason Maxon,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src="../assets/js/highcharts.js"></script> -->
<style type="text/css">@font-face {
	font-family: "Bebas Neue";
	src: url(https://www.filehosting.org/file/details/544349/BebasNeue Regular.otf) format("opentype");
	}
	h1.Bebas {
		font-family: "Bebas Neue", Verdana, Tahoma;
	}
</style>
</head>

#### TEACHING INFORMATION

**College**: University of Colorado Law School

**Classes taught**: LAWS 7541

#### LAWS 7541: Employment Discrimination

**Terms taught**: Spring 2016

**Instructor rating**: 3.57

**Standard deviation in instructor rating**: 0.0

**Average grade** (4.0 scale): 3.49

**Standard deviation in grades** (4.0 scale): 0.0

**Average workload** (raw): 3.0

**Standard deviation in workload** (raw): 0.0


text:
package org.apache.wicket.proxy.jdk;

import java.io.ObjectStreamException;
import java.io.Serializable;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;

import org.apache.wicket.Application;
import org.apache.wicket.proxy.ILazyInitProxy;
import org.apache.wicket.proxy.IProxyFactory;
import org.apache.wicket.proxy.IProxyTargetLocator;
import org.apache.wicket.proxy.LazyInitProxyFactory;
import org.apache.wicket.proxy.LazyInitProxyFactory.IWriteReplace;
import org.apache.wicket.proxy.LazyInitProxyFactory.ProxyReplacement;

/**
 * A factory class that creates jdk dynamic proxies.
 */
public class JdkProxyFactory implements IProxyFactory
{
	/**
	 * Create a lazy init proxy for the specified type. The target object will be located using the
	 * provided locator upon first method invocation.
	 *
	 * @param type
	 *            type that proxy will represent
	 *
	 * @param locator
	 *            object locator that will locate the object the proxy represents
	 *
	 * @return lazily initializable proxy
	 */
	@SuppressWarnings("unchecked")
	public <T> T createProxy(final Class<T> type, final IProxyTargetLocator locator)
	{
		JdkHandler handler = new JdkHandler(type, locator);

		try
		{
			return (T) Proxy.newProxyInstance(resolveClassLoader(),
				new Class[] { type, Serializable.class, ILazyInitProxy.class,
						IWriteReplace.class }, handler);
		}
		catch (IllegalArgumentException e)
		{
			/*
			 * STW: In some clustering environments it appears the context classloader fails to
			 * load the proxied interface (currently seen in BEA WLS 9.x clusters). If this
			 * happens, we can try and fall back to the classloader (current) that actually
			 * loaded this class.
			 */
			return (T) Proxy.newProxyInstance(LazyInitProxyFactory.class.getClassLoader(),
				new Class[] { type, Serializable.class, ILazyInitProxy.class,
						IWriteReplace.class }, handler);
		}
	}

	private ClassLoader resolveClassLoader()
	{
		ClassLoader classLoader = null;
		if (Application.exists())
		{
			classLoader = Application.get().getApplicationSettings()
					.getClassResolver().getClassLoader();
		}

		if (classLoader == null) {
			classLoader = Thread.currentThread().getContextClassLoader();
		}

		return classLoader;
	}

	/**
	 * Invocation handler for proxies representing interface based object. For interface backed
	 * objects dynamic jdk proxies are used.
	 *
	 * @author Igor Vaynberg (ivaynberg)
	 *
	 */
	private static class JdkHandler
		implements
			InvocationHandler,
			ILazyInitProxy,
			Serializable,
			IWriteReplace
	{
		private static final long serialVersionUID = 1L;

		private final IProxyTargetLocator locator;

		private final String typeName;

		private transient Object target;

		/**
		 * Constructor
		 *
		 * @param type
		 *            class of object this handler will represent
		 *
		 * @param locator
		 *            object locator used to locate the object this proxy represents
		 */
		public JdkHandler(final Class<?> type, final IProxyTargetLocator locator)
		{
			super();
			this.locator = locator;
			typeName = type.getName();
		}

		/**
		 * @see java.lang.reflect.InvocationHandler#invoke(java.lang.Object,
		 *      java.lang.reflect.Method, java.lang.Object[])
		 */
		@Override
		public Object invoke(final Object proxy, final Method method, final Object[] args)
			throws Throwable
		{
			if (LazyInitProxyFactory.isFinalizeMethod(method))
			{
				// swallow finalize call
				return null;
			}
			else if (LazyInitProxyFactory.isEqualsMethod(method))
			{
				return (equals(args[0])) ? Boolean.TRUE : Boolean.FALSE;
			}
			else if (LazyInitProxyFactory.isHashCodeMethod(method))
			{
				return hashCode();
			}
			else if (LazyInitProxyFactory.isToStringMethod(method))
			{
				return toString();
			}
			else if (method.getDeclaringClass().equals(ILazyInitProxy.class))
			{
				return getObjectLocator();
			}
			else if (LazyInitProxyFactory.isWriteReplaceMethod(method))
			{
				return writeReplace();
			}

			if (target == null)
			{

				target = locator.locateProxyTarget();
			}
			try
			{
				method.setAccessible(true);
				return method.invoke(target, args);
			}
			catch (InvocationTargetException e)
			{
				throw e.getTargetException();
			}
		}

		/**
		 * @see org.apache.wicket.proxy.ILazyInitProxy#getObjectLocator()
		 */
		@Override
		public IProxyTargetLocator getObjectLocator()
		{
			return locator;
		}

		/**
		 * @see org.apache.wicket.proxy.LazyInitProxyFactory.IWriteReplace#writeReplace()
		 */
		@Override
		public Object writeReplace() throws ObjectStreamException
		{
			return new ProxyReplacement(typeName, locator);
		}
	}
}


text:
from django import forms
from django.core.exceptions import ValidationError

from fulmine.models import parse_scope

class SeparatedValuesField(forms.CharField):
    def __init__(self, *args, **kwargs):
        self.separator = kwargs.pop('separator', ' ')
        super(SeparatedValuesField, self).__init__(*args, **kwargs)

    def clean(self, value):
        if not value:
            return []
        return value.split(self.separator)

class AuthorizationForm(forms.Form):
    response_type = forms.ChoiceField(
        choices=[('code', 'code'), ('token', 'token')])
    client_id = forms.CharField()
    redirect_uri = forms.CharField(required=False)
    scope = SeparatedValuesField(required=False)
    state = forms.CharField(required=False)

    def clean_scope(self):
        scope = self.cleaned_data['scope']
        return parse_scope(scope)

def clean_scope(form):
    scope = form.cleaned_data['scope']
    return parse_scope(scope)

def make_token_form(grant_type, required_fields=[], optional_fields=[],
                    django_fields={}):

    class_dict = dict()

    for field_name in optional_fields:
        if field_name == 'scope':
            field = SeparatedValuesField(required=False)
        else:
            field = forms.CharField(required=False)

        class_dict[field_name] = field

    for field_name in required_fields:
        if field_name == 'scope':
            field = SeparatedValuesField(required=True)
        else:
            field = forms.CharField(required=True)

        class_dict[field_name] = field

    for field_name, field in django_fields.iteritems():
        class_dict[field_name] = field

    class_dict['clean_scope'] = clean_scope

    cls = type('%sTokenForm' % grant_type,
               (forms.Form, ),
               class_dict
              )

    return cls

AuthorizationCodeTokenForm = make_token_form('authorization_code',
    required_fields=[
        'code',
    ],
    optional_fields=[
        'redirect_uri',
        'client_id',
        'scope',
    ]
)

PasswordTokenForm = make_token_form('password',
    required_fields=[
        'username',
        'password',
        'scope',
    ]
)

ClientCredentialsTokenForm = make_token_form('client_credentials',
    required_fields=['scope'],
)

RefreshTokenTokenForm = make_token_form('refresh_token',
    required_fields=['refresh_token'],
    optional_fields=['scope']
)


text:
<html>
<body>

The requirements part of SLA definition allowing to control where a certain processing unit can be
deployed (based on the requirements defined).

</body>
</html>


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Coq bench</title>
    <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
    <link href="../../../../../bootstrap.min.css" rel="stylesheet">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.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>
             Coq bench

Unstable

8.5beta1 / contrib:firing-squad dev

2015-01-29 21:10:17

About

            « Up

              contrib:firing-squad

                dev
                Error

 (2015-01-29 21:10:17 UTC)

Lint

Command

ruby lint.rb unstable ../unstable/packages/coq:contrib:firing-squad/coq:contrib:firing-squad.dev

Return code

0

Duration

0 s

Output

The package is valid.

Dry install

Dry install with the current Coq version:

Command

opam install -y --dry-run coq:contrib:firing-squad.dev coq.8.5beta1

Return code

0

Duration

1 s

Output

[NOTE] Package coq is already installed (current version is 8.5beta1).
The following actions will be performed:
 - install   coq:contrib:firing-squad.dev
=== 1 to install ===
=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Building coq:contrib:firing-squad.dev:
  coq_makefile -f Make -o Makefile
  make -j4
  make install
Installing coq:contrib:firing-squad.dev.

Dry install without Coq, to test if the problem was incompatibility with the current Coq version:

Command

true

Return code

0

Duration

0 s

Install dependencies

Command

ulimit -Sv 2000000; timeout 5m opam install -y --deps-only coq:contrib:firing-squad.dev

Return code

0

Duration

2 s

Install

Command

ulimit -Sv 2000000; timeout 5m opam install -y --verbose coq:contrib:firing-squad.dev

Return code

1024

Duration

19 s

Output

The following actions will be performed:
 - install   coq:contrib:firing-squad.dev
=== 1 to install ===
=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[coq:contrib:firing-squad] Fetching https://gforge.inria.fr/git/coq-contribs/firing-squad.git#trunk
Initialized empty Git repository in /home/bench/.opam/packages.dev/coq:contrib:firing-squad.dev/.git/
[master (root-commit) b2b4685] opam-git-init
From https://gforge.inria.fr/git/coq-contribs/firing-squad
 * [new branch]      trunk      -> opam-ref
 * [new branch]      trunk      -> origin/trunk
.cvsignore
LICENSE
Make
Makefile
README
algo.v
autom.v
basic.v
bib.v
bord.v
constr.v
description
double_diag.v
extract.v
final.v
fire.ml
geom.v
nmax.ml
reflection.v
sommet.v
trapeze.v
vertical.v
HEAD is now at f1c4371 FiringSquad : update extraction test (no more Extraction Library)
=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Building coq:contrib:firing-squad.dev:
  coq_makefile -f Make -o Makefile
  make -j4
  make install
"coqdep" -c -R "." FiringSquad "autom.v" > "autom.v.d" || ( RV=$?; rm -f "autom.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "basic.v" > "basic.v.d" || ( RV=$?; rm -f "basic.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "bib.v" > "bib.v.d" || ( RV=$?; rm -f "bib.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "bord.v" > "bord.v.d" || ( RV=$?; rm -f "bord.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "constr.v" > "constr.v.d" || ( RV=$?; rm -f "constr.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "double_diag.v" > "double_diag.v.d" || ( RV=$?; rm -f "double_diag.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "final.v" > "final.v.d" || ( RV=$?; rm -f "final.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "geom.v" > "geom.v.d" || ( RV=$?; rm -f "geom.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "reflection.v" > "reflection.v.d" || ( RV=$?; rm -f "reflection.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "sommet.v" > "sommet.v.d" || ( RV=$?; rm -f "sommet.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "trapeze.v" > "trapeze.v.d" || ( RV=$?; rm -f "trapeze.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "vertical.v" > "vertical.v.d" || ( RV=$?; rm -f "vertical.v.d"; exit ${RV} )
"coqdep" -c -R "." FiringSquad "algo.v" > "algo.v.d" || ( RV=$?; rm -f "algo.v.d"; exit ${RV} )
"coqc"  -q  -R "." FiringSquad   bib
Debug: (* info auto : *)
"coqc"  -q  -R "." FiringSquad   autom
"coqc"  -q  -R "." FiringSquad   geom
"coqc"  -q  -R "." FiringSquad   constr
"coqc"  -q  -R "." FiringSquad   basic
"coqc"  -q  -R "." FiringSquad   reflection
"coqc"  -q  -R "." FiringSquad   bord
"coqc"  -q  -R "." FiringSquad   double_diag
"coqc"  -q  -R "." FiringSquad   vertical
"coqc"  -q  -R "." FiringSquad   trapeze
"coqc"  -q  -R "." FiringSquad   sommet
"coqc"  -q  -R "." FiringSquad   final
"coqc"  -q  -R "." FiringSquad   algo
coqtop -q  -R "." FiringSquad   -silent -batch -load-vernac-source extract.v
coqtop -q  -R "." FiringSquad   -silent -batch -load-vernac-source extract.v
/usr/local/bin/ocamlopt -o fire unix.cmxa graphics.cmxa extracted.mli extracted.ml fire.ml
File "fire.ml", line 65, characters 0-13:
Error: Unbound module Graphics
make: *** [fire] Error 2
Makefile:230: recipe for target 'fire' failed
[ERROR] The compilation of coq:contrib:firing-squad.dev failed.
Removing coq:contrib:firing-squad.dev.
  rm -R /home/bench/.opam/system/lib/coq/user-contrib/firing-squad
rm: cannot remove '/home/bench/.opam/system/lib/coq/user-contrib/firing-squad': No such file or directory
#=== ERROR while installing coq:contrib:firing-squad.dev ======================#
# opam-version         1.2.0
# os                   linux
# command              make -j4
# path                 /home/bench/.opam/system/build/coq:contrib:firing-squad.dev
# compiler             system (4.01.0)
# exit-code            2
# env-file             /home/bench/.opam/system/build/coq:contrib:firing-squad.dev/coq:contrib:firing-squad-21867-d2c37b.env
# stdout-file          /home/bench/.opam/system/build/coq:contrib:firing-squad.dev/coq:contrib:firing-squad-21867-d2c37b.out
# stderr-file          /home/bench/.opam/system/build/coq:contrib:firing-squad.dev/coq:contrib:firing-squad-21867-d2c37b.err
### stdout ###
# ...[truncated]
# "coqc"  -q  -R "." FiringSquad   double_diag
# "coqc"  -q  -R "." FiringSquad   vertical
# "coqc"  -q  -R "." FiringSquad   trapeze
# "coqc"  -q  -R "." FiringSquad   sommet
# "coqc"  -q  -R "." FiringSquad   final
# "coqc"  -q  -R "." FiringSquad   algo
# coqtop -q  -R "." FiringSquad   -silent -batch -load-vernac-source extract.v
# coqtop -q  -R "." FiringSquad   -silent -batch -load-vernac-source extract.v
# /usr/local/bin/ocamlopt -o fire unix.cmxa graphics.cmxa extracted.mli extracted.ml fire.ml
# Makefile:230: recipe for target 'fire' failed
### stderr ###
# File "fire.ml", line 65, characters 0-13:
# Error: Unbound module Graphics
# make: *** [fire] Error 2
'opam install -y --verbose coq:contrib:firing-squad.dev' failed.

Installation size

No files were installed.

Uninstall

Command

true

Return code

0

Duration

0 s

Missing removes

                none

Wrong removes

                none

          Sources are on GitHub. © Guillaume Claret.


text:
pip install numdifftools==0.9.14
if errorlevel 1 exit 1


text:
package gov.hhs.onc.dcdt.web.handler.impl;

import gov.hhs.onc.dcdt.beans.impl.AbstractToolOrderedBean;
import gov.hhs.onc.dcdt.utils.ToolOrderUtils.PriorityOrderedQueue;
import gov.hhs.onc.dcdt.web.handler.OrderedHandlerComponentComposite;
import javax.annotation.Nullable;
import org.springframework.core.Ordered;

public abstract class AbstractOrderedHandlerComponentComposite<T> extends AbstractToolOrderedBean implements OrderedHandlerComponentComposite<T> {
    protected abstract static class AbstractOrderedHandlerComponentWrapper<T> extends AbstractToolOrderedBean {
        protected T handlerComp;

        protected AbstractOrderedHandlerComponentWrapper(T handlerComp) {
            this.handlerComp = handlerComp;
        }
    }

    protected PriorityOrderedQueue<T> handlerComps = new PriorityOrderedQueue<>();

    protected AbstractOrderedHandlerComponentComposite() {
        this(null);
    }

    protected AbstractOrderedHandlerComponentComposite(@Nullable Iterable<T> handlerComps) {
        this.setHandlerComponents(handlerComps);
    }

    protected abstract T wrapUnorderedHandlerComponent(T handlerComp);

    @Override
    public boolean hasHandlerComponents() {
        return !this.handlerComps.isEmpty();
    }

    @Override
    public PriorityOrderedQueue<T> getHandlerComponents() {
        return this.handlerComps;
    }

    @Override
    public void setHandlerComponents(@Nullable Iterable<T> handlerComps) {
        this.handlerComps.clear();

        if (handlerComps != null) {
            for (T handlerComp : handlerComps) {
                if (!(handlerComp instanceof Ordered)) {
                    handlerComp = this.wrapUnorderedHandlerComponent(handlerComp);
                }

                this.handlerComps.add(handlerComp);
            }
        }
    }
}


text:
$output.javaTest($Root,"ApplicationTests")##

$output.require("org.junit.Test")##
$output.require("org.junit.runner.RunWith")##
$output.require("org.springframework.boot.test.SpringApplicationConfiguration")##
$output.require("org.springframework.test.context.junit4.SpringJUnit4ClassRunner")##
$output.require("org.springframework.boot.test.IntegrationTest")##
$output.require("org.springframework.test.context.web.WebAppConfiguration")##

$output.require("org.springframework.beans.factory.annotation.Autowired")##
$output.require("org.springframework.beans.factory.annotation.Value")##

$output.require("org.junit.After")##
$output.require("org.junit.Before")##
$output.require("org.springframework.web.context.WebApplicationContext")##
$output.require("org.springframework.test.web.servlet.MockMvc")##
$output.require("org.springframework.test.web.servlet.setup.MockMvcBuilders")##

$output.require("com.jaxio.demo.config.ApplicationProperties")##
$output.require("org.junit.Assert")##
$output.require("javax.inject.Inject")##

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
@WebAppConfiguration
@IntegrationTest("server.port:0")
public class ApplicationTests {

	@Value("${dollar}{local.server.port}")
    int port;

    @Inject
    private ApplicationProperties applicationProperties;

	final String BASE_URL = "http://localhost:8080/myApp";

    @Autowired
    private WebApplicationContext wac;

    private MockMvc mockMvc;

    @Before
    public void setup() {
        this.mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    }

    @After
    public  void downUp(){
    	this.mockMvc = null;
    }

    @Test
    public void testProperties() throws Exception {
    	Assert.assertNotNull(applicationProperties.getMail().getFrom());
    }

    @Test
    public void contextLoads() {
    }
}


text:
/**
 */
package org.mobadsl.semantic.model.moba.impl;

import org.eclipse.emf.ecore.EClass;
import org.mobadsl.semantic.model.moba.MobaEmailTrigger;
import org.mobadsl.semantic.model.moba.MobaPackage;

/**
 *
 * An implementation of the model object 'Email Trigger'.
 *
 *
 * @generated
 */
public class MobaEmailTriggerImpl extends MobaTriggerImpl implements MobaEmailTrigger {
	/**
	 *
	 *
	 * @generated
	 */
	protected MobaEmailTriggerImpl() {
		super();
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return MobaPackage.Literals.MOBA_EMAIL_TRIGGER;
	}

} //MobaEmailTriggerImpl


text:
<?xml version="1.0" encoding="UTF-8"?>
<project name="jSoup" default="default" basedir=".">
    <description>Builds, tests, and runs the project jSoup.</description>
    <import file="nbproject/build-impl.xml" />
    <!--
    Set project properties
    -->
    <property name="libs" location="${basedir}/libs"/>
    <property name="src" location="${basedir}/src"/>
    <property name="test" location="${basedir}/test"/>
    <property name="bin" location="${basedir}/build"/>
    <property name="bin.src" location="${bin}/classes"/>
    <property name="bin.test" location="${bin}/test/classes"/>
    <property name="test.reports" location="${bin}/reports"/>
    <!--
    Cleanup previous builds
    -->
    <target name="init">
        <echo>cleaning old files</echo>
        <tstamp/>
        <delete dir="${bin}" />
        <delete dir="${test.reports}" />
        <mkdir dir="${bin}"/>
        <mkdir dir="${bin.src}"/>
        <mkdir dir="${bin.test}"/>
        <mkdir dir="${test.reports}"/>
    </target>
    <!--
    create the libs classpath
    -->
    <path id="libs-classpath" description="classpath to libs">
        <pathelement path="${bin.src}"/>
        <pathelement path="${bin.test}"/>
        <fileset dir="${libs}">
            <include name="**/*.jar"/>
        </fileset>
    </path>
    <!--
    run junit
    -->
    <target name="junit-batch" depends="compile-src">
        <echo>running junit batch tests</echo>
        <junit  fork="true"
                forkmode="perTest"
                haltonfailure="false"
                haltonerror="true"
                failureproperty="tests.failures"
                errorproperty="tests.errors"
                includeantruntime="true"
                showoutput="true"
                printsummary="true">
            <classpath>
                <path refid="libs-classpath"/>
            </classpath>
            <batchtest fork="yes" todir="${test.reports}">
                <formatter type="xml" />
                <fileset dir="${test}">
                    <include name="**/*Test*.java" />
                </fileset>
            </batchtest>
        </junit>
    </target>
    <!--
        creates a combine junit report
    -->
    <target name="junit" depends="junit-batch">
        <echo>running junitreport batch results</echo>
        <junitreport tofile="TESTS-CombinedReports.xml" todir="${test.reports}">
            <fileset dir="${test.reports}">
                <include name="*TEST*.xml" />
                <exclude name="TESTS-CombinedReports.xml" />
            </fileset>
            <report format="noframes" todir="${test.reports}" />
        </junitreport>
    </target>
    <!--
        compile the tests
    -->
    <target name="compile-src" depends="init">
        <echo>compiling src and tests to classes</echo>
        <javac fork="true" srcdir="${src}" destdir="${bin.src}" includes="**/*.java">
            <classpath refid="libs-classpath"/>
        </javac>
        <javac fork="true" srcdir="${test}" destdir="${bin.test}" includes="**/*.java">
            <classpath refid="libs-classpath"/>
        </javac>
    </target>

    <!--
        test the conversion process
    -->
    <target name="test-taskdef" depends="compile-src">
        <taskdef name="side-transform" classname="ant.SeleniumTransformTask" classpathref="libs-classpath" />
        <side-transform transformer="./test/assets/java.webdriver.xml" testcase="./test/assets/testCase.html" />
    </target>

</project>


text:
package com.cowboysmall.insight.object;

import com.cowboysmall.insight.Level;
import com.cowboysmall.insight.Profilable;
import org.springframework.stereotype.Component;

/**
 * jerry
 */

@Component
public class SomeOtherService {

    @Profilable(Level.INFO)
    public void doSomething() {

    }

    @Profilable(Level.INFO)
    public void doSomethingWithArgs(String first, Long second) {

    }

    @Profilable(Level.INFO)
    public Integer doSomethingWithReturn() {

        return Integer.MAX_VALUE;
    }

    @Profilable(Level.INFO)
    public Integer doSomethingWithArgsAndReturn(String first, Long second, Double third) {

        return Integer.MIN_VALUE;
    }
}


text:
if callfunc == "initialize":
  # Make sure the file exists.
  open("junk_test.out", 'w').close()

  fobj = open("junk_test.out", 'rb')
  try:
    for arg in [3.0, "hi"]:
      try:
        fobj.read(arg)
      except Exception, e:
        if "TypeError" in str(type(e)):
          pass
        else:
          raise Exception("fobj.read() should raise TypeError when given a bad len argument")
  finally:
    fobj.close()


text:
"""Auto-generated file, do not edit by hand. IM metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_IM = PhoneMetadata(id='IM', country_code=None, international_prefix=None,
    general_desc=PhoneNumberDesc(national_number_pattern='[189]\\d{2,5}', possible_number_pattern='\\d{3,6}', possible_length=(3, 5, 6)),
    toll_free=PhoneNumberDesc(),
    premium_rate=PhoneNumberDesc(),
    emergency=PhoneNumberDesc(national_number_pattern='999', possible_number_pattern='\\d{3}', example_number='999', possible_length=(3,)),
    short_code=PhoneNumberDesc(national_number_pattern='1\\d{2}(?:\\d{3})?|8(?:6444|9887)|999', possible_number_pattern='\\d{3,6}', example_number='150', possible_length=(3, 5, 6)),
    standard_rate=PhoneNumberDesc(),
    carrier_specific=PhoneNumberDesc(),
    short_data=True)


text:
<?php
/** @version	2012-12-09-1 */

use Tester\Assert,
	Heymaster\Adapters\NeonAdapter as Adapter;

require __DIR__ . '/../bootstrap.php';

require __DIR__ . '/../../../src/Adapters/IAdapter.php';
require __DIR__ . '/../../../src/Adapters/BaseAdapter.php';
require __DIR__ . '/../../../src/Adapters/NeonAdapter.php';

Assert::same(Adapter::extractCommandName('commandName'), array(
	'name' => 'commandName',
	'description' => FALSE,
));

Assert::same(Adapter::extractCommandName('commandName any description'), array(
	'name' => 'commandName',
	'description' => 'any description',
));

Assert::same(Adapter::extractCommandName('commandName      any description   '), array(
	'name' => 'commandName',
	'description' => 'any description',
));

Assert::same(Adapter::extractCommandName("commandName \tany description"), array(
	'name' => 'commandName',
	'description' => 'any description',
));


text:
#pragma once

#include <regex>
#include <string>

#include "envoy/config/filter/http/squash/v2/squash.pb.h"
#include "envoy/server/filter_config.h"

#include "common/config/well_known_names.h"

namespace Envoy {
namespace Server {
namespace Configuration {

/**
 * Config registration for the squash filter. @see NamedHttpFilterConfigFactory.
 */
class SquashFilterConfig : public NamedHttpFilterConfigFactory {
public:
  HttpFilterFactoryCb createFilterFactory(const Json::Object& json_config, const std::string&,
                                          FactoryContext& context) override;

  HttpFilterFactoryCb createFilterFactoryFromProto(const Protobuf::Message& proto_config,
                                                   const std::string&,
                                                   FactoryContext& context) override;

  ProtobufTypes::MessagePtr createEmptyConfigProto() override {
    return ProtobufTypes::MessagePtr{new envoy::config::filter::http::squash::v2::Squash()};
  }

  std::string name() override { return Config::HttpFilterNames::get().SQUASH; }

private:
  HttpFilterFactoryCb
  createFilter(const envoy::config::filter::http::squash::v2::Squash& proto_config,
               FactoryContext& context);
};

} // namespace Configuration
} // namespace Server
} // namespace Envoy


text:
title: Google Chrome Apps
eyecatch: fa-chrome
description: "Google Chrome Apps"
date: 2012-05-02
tags: [code, google-chrome]
---

Ich habe mich in der letzten Zeit ein wenig mit Google Chrome Apps
beschäftigt und sogleich 4 erstellt.

2 davon kann man schon herunterladen und ausprobieren.

### App für diesen Blog

niklas-Heer.de

### App für die Jusos Schwäbisch Hall und Hohenlohe

JusosSHOK

Die anderen beiden werden gerade noch erstellt und sind erst in einer
Beta-Version in der ich sie der Öffentlichkeit leider noch nicht
präsentieren kann. Aber sobald sie fertig sind und ich alle Rechte daran
habe (Bild :D) werde ich euch darüber informieren! ;)


text:
<?php

/**
 * Allow themes to alter the theme-specific settings form.
 *
 * With this hook, themes can alter the theme-specific settings form in any way
 * allowable by Drupal's Forms API, such as adding form elements, changing
 * default values and removing form elements. See the Forms API documentation on
 * api.drupal.org for detailed information.
 *
 * Note that the base theme's form alterations will be run before any sub-theme
 * alterations.
 *
 * @param $form
 *   Nested array of form elements that comprise the form.
 * @param $form_state
 *   A keyed array containing the current state of the form.
 */
function fusion_core_form_system_theme_settings_alter(&$form, $form_state) {
  global $base_url;

  // Get theme name.
  $theme_name = $GLOBALS['theme_key'];

  // Get default theme settings from .info file.
  $theme_data = list_themes();
  $defaults = ($theme_name && isset($theme_data[$theme_name]->info['settings'])) ? $theme_data[$theme_name]->info['settings'] : array();

  // Calculate sidebar width options.
  $width_options = fusion_core_get_width_options($theme_name);

  // Fusion theme settings container
  $form['tnt_container'] = array(
    '#type' => 'fieldset',
    '#title' => t('Fusion theme settings'),
    '#description' => t('Use these settings to enhance the appearance and functionality of your Fusion theme.'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#weight' => -1,
    '#attached' => array(
      'css' => array(drupal_get_path('theme', 'fusion_core') . '/css/settings-form.fusion-core.css'),
    ),
  );

  // General Settings
  $form['tnt_container']['general_settings'] = array(
    '#type' => 'vertical_tabs',
  );

  // Grid settings
  $form['tnt_container']['general_settings']['theme_grid_config'] = array(
    '#type' => 'fieldset',
    '#title' => t('Grid Settings'),
    '#description' => t("These settings control the number of columns that will comprise your grid."),
    '#weight' => -15,
  );

  /**
   * Default layout.  Used for large screens in responsive, and for fluid grids and themes with responsive turned off.
   */
  $form['tnt_container']['general_settings']['theme_responsive_desktop'] = array(
    '#type' => 'fieldset',
    '#title' => t('Layout: Desktop'),
    '#description' => t('Only this layout will be used.  For tablet and smartphone layouts, enable the Fusion Accelerator module.',
      array('@accelerator' =>
        url('http://drupal.org/project/fusion_accelerator',
        array('external' => TRUE))
      )
    ),
    '#weight' => -6,
  );

  // sidebar layout
  $form['tnt_container']['general_settings']['theme_responsive_desktop']['sidebar_layout'] = array(
    '#type'          => 'radios',
    '#title'         => t('Sidebar layout for desktops'),
    '#default_value' => theme_get_setting('sidebar_layout'),
    '#options'       => array(
      'sidebars-split' => t('Split sidebars'),
      'sidebars-both-first' => t('Both sidebars first'),
      'sidebars-both-last' => t('Both sidebars last'),
    ),
    '#attributes' => array('class' => array('clearfix', 'responsive')),
    '#weight'         => -5,
  );

  // sidebar widths
  // @todo - once "adjusted regions" have been removed, add settings for widebar widths to every layout.
  $form['tnt_container']['general_settings']['theme_grid_config']['sidebar_first_width'] = array(
    '#type'          => 'select',
    '#title'         => t('First sidebar width'),
    '#default_value' => theme_get_setting('sidebar_first_width'),
    '#options'       => $width_options,
    '#weight'        => 5,
  );
  $form['tnt_container']['general_settings']['theme_grid_config']['sidebar_first_width']['#options'][$defaults['sidebar_first_width']] .= t(' (default)');
  $form['tnt_container']['general_settings']['theme_grid_config']['sidebar_second_width'] = array(
    '#type'          => 'select',
    '#title'         => t('Second sidebar width'),
    '#default_value' => theme_get_setting('sidebar_second_width'),
    '#options'       => $width_options,
    '#weight'        => 6,
  );
  $form['tnt_container']['general_settings']['theme_grid_config']['sidebar_second_width']['#options'][$defaults['sidebar_second_width']] .= t(' (default)');

  /**
   * If Fusion Accelerator is unavailable, provide Fusion 1.x style grid options.
   * Toggles are based of FAPI #states, but the description is slightly modified
   * based on module availability.
   */
  if (!module_exists('fusion_accelerator')) {
    $form['tnt_container']['general_settings']['theme_grid_config']['#description'] .= ' ' .
      t('
Currently you can choose from either a fluid grid that will resize using width percentages,
      or a fixed grid that remains the same across all devices and browser sizes.

Pro tip: Download and enable
      the Fusion Accelerator module to support responsive layouts.
',
      array('@accelerator' =>
        url('http://drupal.org/project/fusion_accelerator',
        array('external' => TRUE))
        )
      );
  }

  // Generate grid type options based on info files
  $grid_options = array();
  if (isset($defaults['theme_grid_options'])) {
    foreach ($defaults['theme_grid_options'] as $grid_option) {
      $grid_type = (substr($grid_option, 7) == 'fluid') ? t('fluid') : t('fixed');
      $grid_options[$grid_option] = (int)substr($grid_option, 4, 2) . t(' column ') . ' - ' . $grid_type;
    }
  }
  $form['tnt_container']['general_settings']['theme_grid_config']['theme_grid'] = array(
    '#type'          => 'radios',
    '#title'         => t('Select a non-responsive grid layout for your theme'),
    '#default_value' => theme_get_setting('theme_grid'),
    '#options'       => $grid_options,
  );
  $form['tnt_container']['general_settings']['theme_grid_config']['theme_grid']['#options'][$defaults['theme_grid']] .= t(' (default)');
  $form['tnt_container']['general_settings']['theme_grid_config']['theme_grid']['#states'] = array(
    'visible' => array(
      ':input[name=responsive_enabled]' => array('value' => '0')
    ),
  );

  // Fluid grid width
  $form['tnt_container']['general_settings']['theme_grid_config']['fluid_grid_width'] = array(
    '#type'          => 'select',
    '#title'         => t('If using a fluid layout, select the maximum width'),
    '#default_value' => theme_get_setting('fluid_grid_width'),
    '#options'       => array(
      'fluid-100' => t('100%'),
      'fluid-95' => t('95%'),
      'fluid-90' => t('90%'),
      'fluid-85' => t('85%'),
    ),
  );
  $form['tnt_container']['general_settings']['theme_grid_config']['fluid_grid_width']['#options'][$defaults['fluid_grid_width']] .= t(' (default)');
  $form['tnt_container']['general_settings']['theme_grid_config']['fluid_grid_width']['#states'] = array(
    'visible' => array(
      ':input[name="responsive_enabled"]' => array('value' => 0)
    ),
  );

  /**
   * Typography
   */
  $form['tnt_container']['general_settings']['theme_font_config'] = array(
    '#type' => 'fieldset',
    '#title' => t('Typography'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['tnt_container']['general_settings']['theme_font_config']['theme_font'] = array(
    '#type'          => 'select',
    '#title'         => t('Select a new font family'),
    '#default_value' => theme_get_setting('theme_font'),
    '#options'       => array(
      'none' => t('Theme default'),
      'font-family-sans-serif-sm' => t('Sans serif - smaller (Helvetica Neue, Arial, Helvetica, sans-serif)'),
      'font-family-sans-serif-lg' => t('Sans serif - larger (Verdana, Geneva, Arial, Helvetica, sans-serif)'),
      'font-family-serif-sm' => t('Serif - smaller (Garamond, Perpetua, Nimbus Roman No9 L, Times New Roman, serif)'),
      'font-family-serif-lg' => t('Serif - larger (Baskerville, Georgia, Palatino, Palatino Linotype, Book Antiqua, URW Palladio L, serif)'),
      'font-family-myriad' => t('Myriad (Myriad Pro, Myriad, Trebuchet MS, Arial, Helvetica, sans-serif)'),
      'font-family-lucida' => t('Lucida (Lucida Sans, Lucida Grande, Lucida Sans Unicode, Verdana, Geneva, sans-serif)'),
      'font-family-tahoma' => t('Tahoma (Tahoma, Arial, Verdana, sans-serif)'),
    ),
  );
  $form['tnt_container']['general_settings']['theme_font_config']['theme_font_size'] = array(
    '#type'          => 'select',
    '#title'         => t('Change the base font size'),
    '#description'   => t('Adjusts all text in proportion to your base font size.'),
    '#default_value' => theme_get_setting('theme_font_size'),
    '#options'       => array(
      'font-size-10' => t('10px'),
      'font-size-11' => t('11px'),
      'font-size-12' => t('12px'),
      'font-size-13' => t('13px'),
      'font-size-14' => t('14px'),
      'font-size-15' => t('15px'),
      'font-size-16' => t('16px'),
      'font-size-17' => t('17px'),
      'font-size-18' => t('18px'),
    ),
  );
  $form['tnt_container']['general_settings']['theme_font_config']['theme_font_size']['#options'][$defaults['theme_font_size']] .= t(' (default)');

  // Navigation
  $form['tnt_container']['general_settings']['navigation'] = array(
    '#type' => 'fieldset',
    '#title' => t('Navigation'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  // Breadcrumb
  $form['tnt_container']['general_settings']['navigation']['breadcrumb_display'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display breadcrumb'),
    '#default_value' => theme_get_setting('breadcrumb_display'),
  );

  // Search Settings
  if (module_exists('search')) {
    $form['tnt_container']['general_settings']['search_container'] = array(
      '#type' => 'fieldset',
      '#title' => t('Search results'),
      '#description' => t('What additional information should be displayed on your search results page?'),
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
    );
    $form['tnt_container']['general_settings']['search_container']['search_results']['search_snippet'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display text snippet'),
      '#default_value' => theme_get_setting('search_snippet'),
    );
    $form['tnt_container']['general_settings']['search_container']['search_results']['search_info_type'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display content type'),
      '#default_value' => theme_get_setting('search_info_type'),
    );
    $form['tnt_container']['general_settings']['search_container']['search_results']['search_info_user'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display author name'),
      '#default_value' => theme_get_setting('search_info_user'),
    );
    $form['tnt_container']['general_settings']['search_container']['search_results']['search_info_date'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display posted date'),
      '#default_value' => theme_get_setting('search_info_date'),
    );
    $form['tnt_container']['general_settings']['search_container']['search_results']['search_info_comment'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display comment count'),
      '#default_value' => theme_get_setting('search_info_comment'),
    );
    $form['tnt_container']['general_settings']['search_container']['search_results']['search_info_upload'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display attachment count'),
      '#default_value' => theme_get_setting('search_info_upload'),
    );
  }

  // Return theme settings form
  return $form;
}

/**
 * @param (string) $theme
 *    Machine name of fusion theme.
 * @return
 *    Array of sidebar widths options.
 */
function fusion_core_get_width_options($theme) {
  $grid_width = (int)substr(theme_get_setting('theme_grid', $theme), 4, 2);

  $grid_type = substr(theme_get_setting('theme_grid', $theme), 7);
  $width_options = array();
  for ($i = 1; $i <= floor($grid_width / 2); $i++) {
    $grid_units = $i . t(' of @total available units', array('@total'=>$grid_width));
    $width_options[$i] = $grid_units;
  }
  return $width_options;
}


text:
package com.danisola.bandit;

import java.util.ArrayList;
import java.util.Random;

import static com.google.common.base.Preconditions.checkArgument;

/**
 * {@link com.danisola.bandit.BanditAlgorithm} that chooses a random lever with epsilon-frequency,
 * and otherwise chooses the lever with the highest estimated mean, based on the rewards observed thus far.
 *
 * http://en.wikipedia.org/wiki/Multi-armed_bandit#Semi-uniform_strategies
 */
public class EpsilonGreedyAlgorithm extends AbstractBanditAlgorithm {

    private final double epsilon;
    private final Random random = new Random();

    public EpsilonGreedyAlgorithm(int numArms, double epsilon) {
        super(numArms);

        checkArgument(epsilon >= 0 && epsilon <= 1, "Epsilon must be between 0 and 1");
        this.epsilon = epsilon;
    }

    @Override
    public int selectArm() {
        if (random.nextDouble() > epsilon) {
            return getArmWithHigherValue();
        }

        return random.nextInt(counts.length);
    }

    private int getArmWithHigherValue() {
        ArrayList<Integer> bestArms = new ArrayList<>(values.length);
        bestArms.add(0);

        double maxValue = values[0];
        for (int i = 1; i < values.length; i++) {
            double value = values[i];
            if (value > maxValue) {
                bestArms.clear();
                bestArms.add(i);
                maxValue = value;
            } else if (value == maxValue) {
                bestArms.add(i);
            }
        }

        return bestArms.get(random.nextInt(bestArms.size()));
    }

    @Override
    public String toString() {
        return "EpsilonGreedy {epsilon=" + epsilon + "}";
    }
}


text:
/**
 * @class SimpleTasks.ux.StatusColumn
 * @extends Ext.grid.column.Column
 *
A Header subclass which renders a checkbox in each column cell which toggles the truthiness of the associated data field on click.

 *
Note. As of Ext JS 3.3 this no longer has to be configured as a plugin of the GridPanel.

 *
Example usage:

 *

// create the grid
var grid = Ext.create('Ext.grid.Panel', {
    ...
    columns: [{
           text: 'Foo',
           ...
        },{
           xtype: 'statuscolumn',
           text: 'Indoor?',
           dataIndex: 'indoor',
           width: 55
        }
    ]
    ...
});
 *

 * In addition to toggling a Boolean value within the record data, this
 * class adds or removes a css class <tt>'x-grid-checked'</tt> on the td
 * based on whether or not it is checked to alter the background image used
 * for a column.
 */
Ext.define('SimpleTasks.ux.StatusColumn', {
    extend: 'Ext.grid.column.Column',
    xtype: 'statuscolumn',

    tdCls: Ext.baseCSSPrefix + 'grid-cell-statuscolumn',

    /**
     * @event checkchange
     * Fires when the checked state of a row changes
     * @param {SimpleTasks.ux.StatusColumn} this
     * @param {Number} rowIndex The row index
     * @param {Boolean} checked True if the box is checked
     */

    /**
     * @private
     * Process and refire events routed from the GridView's processEvent method.
     */
    processEvent: function(type, view, cell, recordIndex, cellIndex, e) {
        var me = this,
            cssPrefix = Ext.baseCSSPrefix,
            target = Ext.get(e.getTarget()),
            dataIndex, record, checked;

        if (target.hasCls(cssPrefix + 'grid-statusheader-inner')) {
            if(type === 'mousedown' && e.button === 0) {
                record = view.panel.store.getAt(recordIndex);
                dataIndex = me.dataIndex;
                checked = !record.get(dataIndex);
                record.set(dataIndex, checked);
                me.fireEvent('checkchange', me, recordIndex, checked);
                // cancel selection.
                return false;
            } else if(type === 'mouseover') {
                target.parent().addCls(cssPrefix + 'grid-statusheader-over');
            } else if(type === 'mouseout') {
                target.parent().removeCls(cssPrefix + 'grid-statusheader-over');
            }
        } else {
            return me.callParent(arguments);
        }
    },

    // Note: class names are not placed on the prototype bc renderer scope
    // is not in the header.
    renderer : function(value){
        var cssPrefix = Ext.baseCSSPrefix,
            cls = [cssPrefix + 'grid-statusheader'];

        if (value) {
            cls.push(cssPrefix + 'grid-statusheader-checked');
        }
        return '

';
    }
});


text:
.. _`HttpFileService`: apidocs/index.html?com/linecorp/armeria/server/http/file/HttpFileService.html
.. _`HttpFileServiceBuilder`: apidocs/index.html?com/linecorp/armeria/server/http/file/HttpFileServiceBuilder.html

Serving static files
====================
For more information, please refer to the API documentation of `HttpFileService`_ and `HttpFileServiceBuilder`_.

.. code-block:: java

    VirtualHostBuilder vhb = new VirtualHostBuilder();
    vhb.serviceUnder("/images/",
                     HttpFileService.forFileSystem("/var/lib/www/images"));

    vhb.serviceUnder("/",
                     HttpFileService.forClassPath("/com/example/files"));


text:
require File.expand_path("#{File.dirname __FILE__}/../command")
require File.expand_path("#{File.dirname __FILE__}/../http_method_command")
require File.expand_path("#{File.dirname __FILE__}/http_get")

module HTTY; end

class HTTY::CLI; end

module HTTY::CLI::Commands; end

# Encapsulates the _http-trace_ command.
class HTTY::CLI::Commands::HttpTrace < HTTY::CLI::Command

  include HTTY::CLI::HTTPMethodCommand

  # Returns the help text for the _http-trace_ command.
  def self.help
    'Issues an HTTP TRACE using the current request'
  end

  # Returns the extended help text for the _http-trace_ command.
  def self.help_extended
    "Issues an HTTP TRACE using the current request.\n"                      +
    "\n"                                                                     +
    'Any request body you may set is ignored (i.e., it is not sent as part ' +
    'of the request).'
  end

  # Returns related command classes for the _http-trace_ command.
  def self.see_also_commands
    [HTTY::CLI::Commands::HttpGet]
  end

end


text:
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

# cache

Gets, or when options are provided sets, the limits of _libvips'_ operation cache.
Existing entries in the cache will be trimmed after any change in limits.
This method always returns cache statistics,
useful for determining how much working memory is required for a particular task.

**Parameters**

-   `options` **([Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean))** Object with the following attributes, or Boolean where true uses default cache settings and false removes all caching.
    -   `options.memory` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** is the maximum memory in MB to use for this cache (optional, default `50`)
    -   `options.files` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** is the maximum number of files to hold open (optional, default `20`)
    -   `options.items` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** is the maximum number of operations to cache (optional, default `100`)

**Examples**

```javascript
const stats = sharp.cache();
```

```javascript
sharp.cache( { items: 200 } );
sharp.cache( { files: 0 } );
sharp.cache(false);
```

Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**

# concurrency

Gets, or when a concurrency is provided sets,
the number of threads _libvips'_ should create to process each image.
The default value is the number of CPU cores.
A value of `0` will reset to this default.

The maximum number of images that can be processed in parallel
is limited by libuv's `UV_THREADPOOL_SIZE` environment variable.

This method always returns the current concurrency.

**Parameters**

-   `concurrency` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?**

**Examples**

```javascript
const threads = sharp.concurrency(); // 4
sharp.concurrency(2); // 2
sharp.concurrency(0); // 4
```

Returns **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** concurrency

# counters

Provides access to internal task counters.

-   queue is the number of tasks this module has queued waiting for _libuv_ to provide a worker thread from its pool.
-   process is the number of resize tasks currently being processed.

**Examples**

```javascript
const counters = sharp.counters(); // { queue: 2, process: 4 }
```

Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**

# simd

Get and set use of SIMD vector unit instructions.
Requires libvips to have been compiled with liborc support.

Improves the performance of `resize`, `blur` and `sharpen` operations
by taking advantage of the SIMD vector unit of the CPU, e.g. Intel SSE and ARM NEON.

This feature is currently off by default but future versions may reverse this.
Versions of liborc prior to 0.4.25 are known to segfault under heavy load.

**Parameters**

-   `simd` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**  (optional, default `false`)

**Examples**

```javascript
const simd = sharp.simd();
// simd is `true` if SIMD is currently enabled
```

```javascript
const simd = sharp.simd(true);
// attempts to enable the use of SIMD, returning true if available
```

Returns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**


text:
haskell-bitcoin-script
==================

[![Build Status](https://travis-ci.org/solatis/haskell-bitcoin-script.png?branch=master)](https://travis-ci.org/solatis/haskell-bitcoin-script)
[![Coverage Status](https://coveralls.io/repos/solatis/haskell-bitcoin-script/badge.svg?branch=master)](https://coveralls.io/r/solatis/haskell-bitcoin-script?branch=master)
[![MIT](http://b.repl.ca/v1/license-MIT-blue.png)](http://en.wikipedia.org/wiki/MIT_License)
[![Haskell](http://b.repl.ca/v1/language-haskell-lightgrey.png)](http://haskell.org)

This library provides utilities for compiling, manipulation and decompiling of
Bitcoin scripts.


text:
using Shouldly;
using System.Collections.Generic;
using Xunit;

namespace Maestro.Tests.Factories
{
	public class type_instance_factory
	{
		[Fact]
		public void should_instantiate_type_with_no_dependencies()
		{
			var container = new Container(x => x.Add<INoDependencies>().Type<NoDependencies>());
			container.GetService<INoDependencies>();
		}

		[Fact]
		public void should_instantiate_type_with_dependencies()
		{
			var container = new Container(x =>
			{
				x.Add<INoDependencies>().Type<NoDependencies>();
				x.Add<IOneDependency<INoDependencies>>().Type<RequiredDependency<INoDependencies>>();
			});

			var instance = container.GetService<IOneDependency<INoDependencies>>();

			instance.Dependency.ShouldNotBe(null);
		}

		[Fact]
		public void should_use_constructor_with_most_resolvable_dependencies()
		{
			var container = new Container(x =>
			{
				x.Add<INoDependencies>().Type<NoDependencies>();
				x.Add<IOneDependency<INoDependencies>>().Type<OptionalDependency<INoDependencies>>();
			});

			var instance = container.GetService<IOneDependency<INoDependencies>>();

			instance.Dependency.ShouldNotBe(null);
		}

		[Fact]
		public void should_reevaluate_constructor_to_use_when_config_changes()
		{
			var container = new Container(x => x.Add<IOneDependency<INoDependencies>>().Type<OptionalDependency<INoDependencies>>());
			var instance = container.GetService<IOneDependency<INoDependencies>>();
			instance.Dependency.ShouldBe(null);

			container.Configure(x => x.Add<INoDependencies>().Type<NoDependencies>());
			instance = container.GetService<IOneDependency<INoDependencies>>();
			instance.Dependency.ShouldNotBe(null);
		}

		[Fact]
		public void should_instantiate_open_generic_type()
		{
			var container = new Container(x => x.Add(typeof(INoDependencies<>)).Type(typeof(NoDependencies<>)));
			container.GetService<INoDependencies<NoDependencies>>();
		}

		[Fact]
		public void should_get_type_with_empty_enumerable_dependency()
		{
			var container = new Container();

			var instance = container.GetService<OptionalDependency<IEnumerable<INoDependencies>>>();

			instance.Dependency.ShouldBeEmpty();
		}

		[Fact]
		public void should_get_type_with_enumerable_dependency()
		{
			var dependency = new NoDependencies();
			var container = new Container(x => x.Add<INoDependencies>().Instance(dependency));

			var instance = container.GetService<OptionalDependency<IEnumerable<INoDependencies>>>();

			instance.Dependency.ShouldBe(new INoDependencies[] { dependency });
		}

		[Fact]
		public void should_use_constructor_with_enumerable_struct_or_string_dependency_if_dependency_is_explicitly_configured()
		{
			var ints = new[] { 1, 2, 3 };
			var strings = new[] { "1", "2", "3" };
			var container = new Container(x =>
													{
														x.Add<IEnumerable<int>>().Instance(ints);
														x.Add<IEnumerable<string>>().Instance(strings);
													});

			var instanceWithInts = container.GetService<OptionalDependency<IEnumerable<int>>>();
			var instanceWithStrings = container.GetService<OptionalDependency<IEnumerable<string>>>();

			instanceWithInts.Dependency.ShouldBe(ints);
			instanceWithStrings.Dependency.ShouldBe(strings);
		}

		[Fact]
		public void should_use_custom_parameter_values()
		{
			var container = new Container(x =>
			{
				x.Add<string>().Instance("Object");

				x.Add<OptionalDependency<object>>().Self().CtorArg(typeof(object), "Object");
				x.Add<OptionalDependency<object>>().Self().CtorArg(typeof(object), () => "Object");
				x.Add<OptionalDependency<object>>().Self().CtorArg(typeof(object), ctx => ctx.GetService<string>());
				x.Add(typeof(OptionalDependency<>)).Self().CtorArg(typeof(object), "Object");

				x.Add<OptionalDependency<object>>().Self().CtorArg<object>("Object");
				x.Add<OptionalDependency<object>>().Self().CtorArg<object>(() => "Object");
				x.Add<OptionalDependency<object>>().Self().CtorArg<object>(ctx => ctx.GetService<string>());
				x.Add(typeof(OptionalDependency<>)).Self().CtorArg<object>("Object");
			});

			container.GetServices<OptionalDependency<object>>().ShouldAllBe(x => "Object".Equals(x.Dependency));
		}

		interface INoDependencies
		{ }

		class NoDependencies : INoDependencies { }

		interface INoDependencies<T>
		{ }

		class NoDependencies<T> : INoDependencies<T>
		{ }

		interface IOneDependency<T>
		{
			T Dependency { get; }
		}

		class OptionalDependency<T> : IOneDependency<T>
		{
			public OptionalDependency() { }

			public OptionalDependency(T dependency)
			{
				Dependency = dependency;
			}

			public T Dependency { get; }
		}

		class RequiredDependency<T> : OptionalDependency<T>
		{
			public RequiredDependency(T dependency) : base(dependency) { }
		}

		[Fact]
		public void should_not_try_to_invoke_static_constructor()
		{
			var container = new Container(x => x.Add<Unresolvable>().Self());

			Should.Throw<ActivationException>(() => container.GetService<Unresolvable>());
		}

		class Unresolvable
		{
			static Unresolvable() { }
			public Unresolvable(int i) { }
		}
	}
}


text:
<?php

namespace Misd\Highcharts\Renderer;

use Misd\Highcharts\ChartInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

interface RendererInterface
{
    /**
     * Gets the event dispatcher.
     *
     * @return EventDispatcherInterface|null Event dispatcher, or `null` if not set.
     */
    public function getDispatcher();

    /**
     * Sets the event dispatcher.
     *
     * @param EventDispatcherInterface $dispatcher Event dispatcher.
     */
    public function setDispatcher(EventDispatcherInterface $dispatcher);

    /**
     * @param ChartInterface $chart
     * @param string         $element
     * @param array          $attributes
     *
     * @return string
     */
    public function renderContainer(ChartInterface $chart, $element = 'div', $attributes = array());

    /**
     * @param ChartInterface $chart
     *
     * @return string
     */
    public function render(ChartInterface $chart);
}


text:
var git = require('gulp-git');

module.exports = function(gulp, config) {
  gulp.task('commit:version', function() {
    return gulp.src(config.files)
      .pipe(git.add())
      .pipe(git.commit('v' + config.version));
  });

  gulp.task('push', function() {
    git.push('origin', 'master', function(err) {
      if (err) throw err;
    });
  });
};


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Uses of Class soot.jimple.parser.node.PThrowsClause (Soot API)
</TITLE>

<META NAME="date" CONTENT="2012-01-22">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Class
soot.jimple.parser.node.PThrowsClause

Packages that use PThrowsClause

soot.jimple.parser.node

Uses of PThrowsClause in soot.jimple.parser.node

Subclasses of PThrowsClause in soot.jimple.parser.node

 class
AThrowsClause

Methods in soot.jimple.parser.node that return PThrowsClause

 PThrowsClause
AMethodMember.getThrowsClause()

Methods in soot.jimple.parser.node with parameters of type PThrowsClause

 void
AMethodMember.setThrowsClause(PThrowsClause node)

Constructors in soot.jimple.parser.node with parameters of type PThrowsClause

AMethodMember(List<PModifier> _modifier_,
              PType _type_,
              PName _name_,
              TLParen _lParen_,
              PParameterList _parameterList_,
              TRParen _rParen_,
              PThrowsClause _throwsClause_,
              PMethodBody _methodBody_)

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes