text:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>org.lightcouch</groupId>
  <artifactId>lightcouch</artifactId>
  <versioning>
    <latest>0.1.8</latest>
    <release>0.1.8</release>
    <versions>
      <version>0.1.6</version>
      <version>0.1.8</version>
    </versions>
    <lastUpdated>20170320175520</lastUpdated>
  </versioning>
</metadata>

redpajama_set_name: RedPajamaGithub


text:
package fakes

import (
	"sync"

	"github.com/cloudfoundry/yagnats"
)

type FakeConnectionProvider struct {
	ProvideConnectionStub        func() (*yagnats.Connection, error)
	provideConnectionMutex       sync.RWMutex
	provideConnectionArgsForCall []struct{}
	provideConnectionReturns     struct {
		result1 *yagnats.Connection
		result2 error
	}
	provideConnectionReturnsOnCall map[int]struct {
		result1 *yagnats.Connection
		result2 error
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}

func (fake *FakeConnectionProvider) ProvideConnection() (*yagnats.Connection, error) {
	fake.provideConnectionMutex.Lock()
	ret, specificReturn := fake.provideConnectionReturnsOnCall[len(fake.provideConnectionArgsForCall)]
	fake.provideConnectionArgsForCall = append(fake.provideConnectionArgsForCall, struct{}{})
	fake.recordInvocation("ProvideConnection", []interface{}{})
	fake.provideConnectionMutex.Unlock()
	if fake.ProvideConnectionStub != nil {
		return fake.ProvideConnectionStub()
	}
	if specificReturn {
		return ret.result1, ret.result2
	}
	return fake.provideConnectionReturns.result1, fake.provideConnectionReturns.result2
}

func (fake *FakeConnectionProvider) ProvideConnectionCallCount() int {
	fake.provideConnectionMutex.RLock()
	defer fake.provideConnectionMutex.RUnlock()
	return len(fake.provideConnectionArgsForCall)
}

func (fake *FakeConnectionProvider) ProvideConnectionReturns(result1 *yagnats.Connection, result2 error) {
	fake.ProvideConnectionStub = nil
	fake.provideConnectionReturns = struct {
		result1 *yagnats.Connection
		result2 error
	}{result1, result2}
}

func (fake *FakeConnectionProvider) ProvideConnectionReturnsOnCall(i int, result1 *yagnats.Connection, result2 error) {
	fake.ProvideConnectionStub = nil
	if fake.provideConnectionReturnsOnCall == nil {
		fake.provideConnectionReturnsOnCall = make(map[int]struct {
			result1 *yagnats.Connection
			result2 error
		})
	}
	fake.provideConnectionReturnsOnCall[i] = struct {
		result1 *yagnats.Connection
		result2 error
	}{result1, result2}
}

func (fake *FakeConnectionProvider) Invocations() map[string][][]interface{} {
	fake.invocationsMutex.RLock()
	defer fake.invocationsMutex.RUnlock()
	fake.provideConnectionMutex.RLock()
	defer fake.provideConnectionMutex.RUnlock()
	return fake.invocations
}

func (fake *FakeConnectionProvider) recordInvocation(key string, args []interface{}) {
	fake.invocationsMutex.Lock()
	defer fake.invocationsMutex.Unlock()
	if fake.invocations == nil {
		fake.invocations = map[string][][]interface{}{}
	}
	if fake.invocations[key] == nil {
		fake.invocations[key] = [][]interface{}{}
	}
	fake.invocations[key] = append(fake.invocations[key], args)
}

var _ yagnats.ConnectionProvider = new(FakeConnectionProvider)


text:
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/7/26.
 */
public class LightTest {

    public enum Light {
        RED(1,"red"), GREEN(2,"green"), YELLOW(3,"yellow");

        private int code;
        private String name;

        public String getName() {
            return name;
        }

        private Light(int code, String name) {
            this.code = code;
            this.name=name;
        }

        public static Light getValueOfEnum(String name){

            Light[] lights = values();
            for (Light light : lights) {
                if(light.getName()==name){
                    return light;
                }
            }
            return null;
        }

    }

    public static void main(String[] args) {
//        System.out.println(Light.RED.compareTo(Light.GREEN)==0);
//        System.out.println(Light.GREEN.compareTo(Light.GREEN)==0);
//        System.out.println(Light.getValueOfEnum("yellow"));
        List list = new ArrayList<>();
        list.add(null);
        list.add(null);
        System.out.println(list.get(0));
        System.out.println(list.get(1));
    }
}


text:
"""Retriever script for Zanne et al. Global wood density database.

"""

import os
import sys
import xlrd
from retriever.lib.templates import Script
from retriever.lib.models import Table
from retriever.lib.excel import Excel

class main(Script):
    def __init__(self, **kwargs):
        Script.__init__(self, **kwargs)
        self.name = "Zanne et al. Global wood density database."
        self.shortname = "GWDD"
        self.urls = {"GWDD": "http://datadryad.org/bitstream/handle/10255/dryad.235/GlobalWoodDensityDatabase.xls?sequence=1"}
        self.tags = ["Taxon > Plants", "Spatial Scale > Global",
                     "Data Type > Observational"]
        self.ref = "http://datadryad.org/resource/doi:10.5061/dryad.234"
        self.description = "A collection  and collation of data on the major wood functional traits, including the largest wood density database to date (8412 taxa), mechanical strength measures and anatomical features, as well as clade-specific features such as secondary chemistry."
        self.citation = "Chave J, Coomes DA, Jansen S, Lewis SL, Swenson NG, Zanne AE (2009) Towards a worldwide wood economics spectrum. Ecology Letters 12(4): 351-366. http://dx.doi.org/10.1111/j.1461-0248.2009.01285.x"
        self.addendum = """ *Correspondence for updates to the database: G.Lopez-Gonzalez@leeds.ac.uk
        For descriptions of the database, see Chave et al. 2009. Towards a worldwide wood economics spectrum. Ecology Letters. Identifier: http://hdl.handle.net/10255/dryad.234

        Below we list the rules of use for the Global wood density database.
        These are developed based on the rules of use for the Glopnet dataset (www.nature.com/nature/journal/v428/n6985/full/nature02403.html) and Cedar Creek LTER and Related Data (http://www.lter.umn.edu/cgi-bin/register).
        If you would like to use the Global wood density database, we request that you:
        1. Notify the main address of correspondence (Gaby Lopez-Gonzalo) if you plan to use the database in a publication.
        2. Provide recognition of the efforts of this group in the assembly of the data by using the citation for the database above.
        3. Recognize that these data were assembled by the group for various analyses and research questions. If any of these uses overlap with your interests, you recognize that group has precedence in addressing these questions."""

    def download(self, engine=None, debug=False):
        Script.download(self, engine, debug)

        self.engine.download_file(self.urls["GWDD"], "GlobalWoodDensityDatabase.xls")
        filename = os.path.basename("GlobalWoodDensityDatabase.xls")

        book = xlrd.open_workbook(self.engine.format_filename(filename))
        sh = book.sheet_by_index(1)
        rows = sh.nrows

        #Creating data table
        lines = []
        for i in range(1, rows):
            row = sh.row(i)
            if not all(Excel.empty_cell(cell) for cell in row):
                this_line = {}
                def format_value(s):
                    s = Excel.cell_value(s)
                    return str(s).title().replace("\\", "/").replace('"', '')
                for num, label in enumerate(["Number", "Family", "Binomial", "Wood_Density",
                            "Region", "Reference_Number"]):
                    this_line[label] = format_value(row[num])
                lines.append(this_line)

        table = Table("data", delimiter="\t")
        table.columns=[("Number"                ,   ("pk-int",) ),
                       ("Family"                ,   ("char",)   ),
                       ("Binomial"              ,   ("char",)   ),
                       ("Wood_Density"          ,   ("double",) ),
                       ("Region"                ,   ("char",)   ),
                       ("Reference_Number"      ,   ("int",)    )]
        table.pk = 'Number'
        table.contains_pk = True

        gwdd = []
        for line in lines:
            gwdd_data = [line["Number"],
                         line["Family"],
                         line["Binomial"],
                         line["Wood_Density"],
                         line["Region"],
                         line["Reference_Number"]]
            gwdd.append(gwdd_data)

        data = ['\t'.join(gwdd_line) for gwdd_line in gwdd]
        self.engine.table = table
        self.engine.create_table()
        self.engine.add_to_table(data)

        #Creating reference table
        lines = []
        sh = book.sheet_by_index(2)
        rows = sh.nrows
        for i in range(1, rows):
            row = sh.row(i)
            if not all(Excel.empty_cell(cell) for cell in row):
                this_line = {}
                def format_value(s):
                    s = Excel.cell_value(s)
                    return str(s).title().replace("\\", "/").replace('"', '')
                for num, label in enumerate(["Reference_Number", "Reference"]):
                    this_line[label] = format_value(row[num])
                lines.append(this_line)

        table = Table("reference", delimiter="\t")
        table.columns=[("Reference_Number"  ,   ("pk-int",) ),
                       ("Reference"         ,   ("char",)   )]
        table.pk = 'Reference_Number'
        table.contains_pk = True

        gwdd = []
        for line in lines:
            gwdd_ref = [line["Reference_Number"],
                        line["Reference"]]
            gwdd.append(gwdd_ref)

        data = ['\t'.join(gwdd_line) for gwdd_line in gwdd]
        self.engine.table = table
        self.engine.create_table()
        self.engine.add_to_table(data)

        return self.engine

SCRIPT = main()


text:
<?xml version="1.0" encoding="utf-8"?>
<parameters>
  <parameter name="IIS Web Application Name" description="" value="forloop.dk" tags="IisApp">
    <parameterEntry kind="ProviderPath" scope="IisApp" match="^C:\\Users\\BlueOceanRobotics\\Source\\Repos\\Yatzy\\YatzyOnline\\YatzyWebApp\\obj\\Release\\Package\\PackageTmp$" />
    <parameterEntry kind="ProviderPath" scope="setAcl" match="^C:\\Users\\BlueOceanRobotics\\Source\\Repos\\Yatzy\\YatzyOnline\\YatzyWebApp\\obj\\Release\\Package\\PackageTmp$" />
  </parameter>
  <parameter name="Add write permission to App_Data Folder" description="Add write permission to App_Data folder" value="forloop.dk/App_Data" tags="Hidden">
    <parameterEntry kind="ProviderPath" scope="setAcl" match="^C:\\Users\\BlueOceanRobotics\\Source\\Repos\\Yatzy\\YatzyOnline\\YatzyWebApp\\obj\\Release\\Package\\PackageTmp\\App_Data$" />
  </parameter>
</parameters>


text:
def good_guess?(x)
  if x == 42
    return true
  else
    return false
  end
  good_guess?(42)

# Your Solution Below
end


text:
namespace chromeos {

UserAddingScreenInputMethodsController::UserAddingScreenInputMethodsController(
    UserAddingScreen* screen)
    : screen_(screen), active_user_on_show_(NULL) {
  screen_->AddObserver(this);
}

UserAddingScreenInputMethodsController::
    ~UserAddingScreenInputMethodsController() {
  screen_->RemoveObserver(this);
}

void UserAddingScreenInputMethodsController::OnUserAddingStarted() {
  active_user_on_show_ = user_manager::UserManager::Get()->GetActiveUser();
  input_method::InputMethodManager* imm =
      input_method::InputMethodManager::Get();
  saved_ime_state_ = imm->GetActiveIMEState();
  imm->SetState(saved_ime_state_->Clone());
  imm->GetActiveIMEState()->EnableLockScreenLayouts();
}

void UserAddingScreenInputMethodsController::OnUserAddingFinished() {
  if (user_manager::UserManager::Get()->GetActiveUser() == active_user_on_show_)
    input_method::InputMethodManager::Get()->SetState(saved_ime_state_);

  saved_ime_state_ = NULL;
}

}  // namespace chromeos


text:
package metrics

import (
	"errors"
	"fmt"
)

// DataDogLambdaPublisher creates a publisher that sends metrics to the datadog-lambda-go library.
//
// All metrics reported will be submitted as distribution metrics (https://docs.datadoghq.com/metrics/distributions/).
//
// Submitting events is not supported.
//
// Callers will typically pass `ddlambda.Metric` in the `f` argument of the constructor. The func type is introduced to avoid adding a dependency with the DataDog library.
//
// The documentation and implementation of the DataDog library for Lambda can be found in https://github.com/DataDog/datadog-lambda-go
func DataDogLambdaPublisher(f DataDogLambdaFunc, eh ErrorHandler) Metrics {
	if eh == nil {
		eh = DiscardErrors
	}

	return &dataDogLambdaPublisher{f: f, eh: eh}
}

// DataDogLambdaFunc is the signature of the function to send metrics to the DataDog Lambda library.
type DataDogLambdaFunc = func(metric string, value float64, tags ...string)

type dataDogLambdaPublisher struct {
	f  DataDogLambdaFunc
	eh ErrorHandler
}

// Counter returns a new counter with the provided name and tags
func (p *dataDogLambdaPublisher) Counter(name string, tags ...Tag) Counter {
	return &publisherCounter{publisherMetric{name: name, tags: tags, nf: p.notify}}
}

// Gauge returns a new Gauge with the provided name and tags
func (p *dataDogLambdaPublisher) Gauge(name string, tags ...Tag) Gauge {
	return &publisherGauge{publisherMetric{name: name, tags: tags, nf: p.notify}}
}

// Event returns a new Event with the provided title and tags
// Sending events is not supported, a no-op implementation is provided for compatibility
func (p *dataDogLambdaPublisher) Event(title string, tags ...Tag) Event {
	return &publisherEvent{publisherMetric{name: title, tags: tags, nf: p.notify}}
}

// Timer returns a new Timer with the provided name and tags
func (p *dataDogLambdaPublisher) Timer(name string, tags ...Tag) Timer {
	return &timerEvent{publisherMetric: publisherMetric{name: name, tags: tags, nf: p.notify}}
}

// Histogram returns a new Histogram with the provided name and tags
func (p *dataDogLambdaPublisher) Histogram(name string, tags ...Tag) Histogram {
	return &publisherHistogram{publisherMetric{name: name, tags: tags, nf: p.notify}}
}

func (p *dataDogLambdaPublisher) notify(op Op, name string, value interface{}, tags Tags) {
	if op == OpEventSend {
		p.eh(errors.New("sending event is not supported in the DataDog Lambda Publisher"))
		return
	}

	v, err := valueAsFloat64(value)
	if err != nil {
		p.eh(fmt.Errorf("could not publish metric `%s`: %w", name, err))
		return
	}

	p.f(name, v, tagsToStrings(tags)...)
}

func valueAsFloat64(value interface{}) (float64, error) {
	switch v := value.(type) {
	case float64:
		return v, nil
	case float32:
		return float64(v), nil
	case int64:
		return float64(v), nil
	case int32:
		return float64(v), nil
	case int16:
		return float64(v), nil
	case int8:
		return float64(v), nil
	case int:
		return float64(v), nil
	case uint64:
		return float64(v), nil
	case uint32:
		return float64(v), nil
	case uint16:
		return float64(v), nil
	case uint8:
		return float64(v), nil
	case uint:
		return float64(v), nil
	}

	return 0, fmt.Errorf("value `%v` cannot be casted to float64", value)
}

func tagsToStrings(tags Tags) []string {
	ss := make([]string, len(tags))

	for n, tag := range tags {
		ss[n] = fmt.Sprintf("%s:%s", tag.Key, tag.Value)
	}

	return ss
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Revis. gen. pl. (Leipzig) 3: 454 (1898)

#### Original name
Sphaeria juncina Auersw., 1865

### Remarks
null


text:
#ifndef SIGAR_H
#define SIGAR_H

/* System Information Gatherer And Reporter */

#include <limits.h>

#ifdef __cplusplus
extern "C" {
#endif

#if defined(_LP64)         || \
    defined(__LP64__)      || \
    defined(__64BIT__)     || \
    defined(__powerpc64__) || \
    defined(__osf__)
#define SIGAR_64BIT
#endif

/* for printf sigar_uint64_t */
#ifdef SIGAR_64BIT
# define SIGAR_F_U64 "%lu"
#else
# define SIGAR_F_U64 "%Lu"
#endif

#if defined(WIN32)

typedef unsigned __int32 sigar_uint32_t;

typedef unsigned __int64 sigar_uint64_t;

typedef __int32 sigar_int32_t;

typedef __int64 sigar_int64_t;

#elif ULONG_MAX > 4294967295UL

typedef unsigned int sigar_uint32_t;

typedef unsigned long sigar_uint64_t;

typedef int sigar_int32_t;

typedef long sigar_int64_t;

#else

typedef unsigned int sigar_uint32_t;

typedef unsigned long long sigar_uint64_t;

typedef int sigar_int32_t;

typedef long long sigar_int64_t;

#endif

#define SIGAR_FIELD_NOTIMPL -1

#define SIGAR_OK 0
#define SIGAR_START_ERROR 20000
#define SIGAR_ENOTIMPL       (SIGAR_START_ERROR + 1)
#define SIGAR_OS_START_ERROR (SIGAR_START_ERROR*2)

#ifdef WIN32
#   define SIGAR_ENOENT ERROR_FILE_NOT_FOUND
#   define SIGAR_EACCES ERROR_ACCESS_DENIED
#   define SIGAR_ENXIO  ERROR_BAD_DRIVER_LEVEL
#else
#   define SIGAR_ENOENT ENOENT
#   define SIGAR_EACCES EACCES
#   define SIGAR_ENXIO  ENXIO
#endif

#ifdef WIN32
#   define SIGAR_DECLARE(type) \
        __declspec(dllexport) type __stdcall
#else
#   define SIGAR_DECLARE(type) type
#endif

#if defined(PATH_MAX)
#   define SIGAR_PATH_MAX PATH_MAX
#elif defined(MAXPATHLEN)
#   define SIGAR_PATH_MAX MAXPATHLEN
#else
#   define SIGAR_PATH_MAX 4096
#endif

#ifdef WIN32
typedef sigar_uint64_t sigar_pid_t;
typedef unsigned long sigar_uid_t;
typedef unsigned long sigar_gid_t;
#else
#include <sys/types.h>
typedef pid_t sigar_pid_t;
typedef uid_t sigar_uid_t;
typedef gid_t sigar_gid_t;
#endif

typedef struct sigar_t sigar_t;

SIGAR_DECLARE(int) sigar_open(sigar_t **sigar);

SIGAR_DECLARE(int) sigar_close(sigar_t *sigar);

SIGAR_DECLARE(sigar_pid_t) sigar_pid_get(sigar_t *sigar);

SIGAR_DECLARE(int) sigar_proc_kill(sigar_pid_t pid, int signum);

SIGAR_DECLARE(int) sigar_signum_get(char *name);

SIGAR_DECLARE(char *) sigar_strerror(sigar_t *sigar, int err);

/* system memory info */

typedef struct {
    sigar_uint64_t
        ram,
        total,
        used,
        free,
        actual_used,
        actual_free;
    double used_percent;
    double free_percent;
} sigar_mem_t;

SIGAR_DECLARE(int) sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem);

typedef struct {
    sigar_uint64_t
        total,
        used,
        free,
        page_in,
        page_out;
} sigar_swap_t;

SIGAR_DECLARE(int) sigar_swap_get(sigar_t *sigar, sigar_swap_t *swap);

typedef struct {
    sigar_uint64_t
        user,
        sys,
        nice,
        idle,
        wait,
        irq,
        soft_irq,
        stolen,
        total;
} sigar_cpu_t;

SIGAR_DECLARE(int) sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu);

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_cpu_t *data;
} sigar_cpu_list_t;

SIGAR_DECLARE(int) sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist);

SIGAR_DECLARE(int) sigar_cpu_list_destroy(sigar_t *sigar,
                                          sigar_cpu_list_t *cpulist);

typedef struct {
    char vendor[128];
    char model[128];
    int mhz;
    sigar_uint64_t cache_size;
    int total_sockets;
    int total_cores;
    int cores_per_socket;
} sigar_cpu_info_t;

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_cpu_info_t *data;
} sigar_cpu_info_list_t;

SIGAR_DECLARE(int)
sigar_cpu_info_list_get(sigar_t *sigar,
                        sigar_cpu_info_list_t *cpu_infos);

SIGAR_DECLARE(int)
sigar_cpu_info_list_destroy(sigar_t *sigar,
                            sigar_cpu_info_list_t *cpu_infos);

typedef struct {
    double uptime;
} sigar_uptime_t;

SIGAR_DECLARE(int) sigar_uptime_get(sigar_t *sigar,
                                    sigar_uptime_t *uptime);

typedef struct {
    double loadavg[3];
} sigar_loadavg_t;

SIGAR_DECLARE(int) sigar_loadavg_get(sigar_t *sigar,
                                     sigar_loadavg_t *loadavg);

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_pid_t *data;
} sigar_proc_list_t;

typedef struct {
    /* RLIMIT_CPU */
    sigar_uint64_t cpu_cur, cpu_max;
    /* RLIMIT_FSIZE */
    sigar_uint64_t file_size_cur, file_size_max;
    /* PIPE_BUF */
    sigar_uint64_t pipe_size_cur, pipe_size_max;
    /* RLIMIT_DATA */
    sigar_uint64_t data_cur, data_max;
    /* RLIMIT_STACK */
    sigar_uint64_t stack_cur, stack_max;
    /* RLIMIT_CORE */
    sigar_uint64_t core_cur, core_max;
    /* RLIMIT_RSS */
    sigar_uint64_t memory_cur, memory_max;
    /* RLIMIT_NPROC */
    sigar_uint64_t processes_cur, processes_max;
    /* RLIMIT_NOFILE */
    sigar_uint64_t open_files_cur, open_files_max;
    /* RLIMIT_AS */
    sigar_uint64_t virtual_memory_cur, virtual_memory_max;
} sigar_resource_limit_t;

SIGAR_DECLARE(int) sigar_resource_limit_get(sigar_t *sigar,
                                            sigar_resource_limit_t *rlimit);

SIGAR_DECLARE(int) sigar_proc_list_get(sigar_t *sigar,
                                       sigar_proc_list_t *proclist);

SIGAR_DECLARE(int) sigar_proc_list_destroy(sigar_t *sigar,
                                           sigar_proc_list_t *proclist);

typedef struct {
    sigar_uint64_t total;
    sigar_uint64_t sleeping;
    sigar_uint64_t running;
    sigar_uint64_t zombie;
    sigar_uint64_t stopped;
    sigar_uint64_t idle;
    sigar_uint64_t threads;
} sigar_proc_stat_t;

SIGAR_DECLARE(int) sigar_proc_stat_get(sigar_t *sigar,
                                       sigar_proc_stat_t *procstat);

typedef struct {
    sigar_uint64_t
        size,
        resident,
        share,
        minor_faults,
        major_faults,
        page_faults;
} sigar_proc_mem_t;

SIGAR_DECLARE(int) sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
                                      sigar_proc_mem_t *procmem);

typedef struct {
    sigar_uid_t uid;
    sigar_gid_t gid;
    sigar_uid_t euid;
    sigar_gid_t egid;
} sigar_proc_cred_t;

SIGAR_DECLARE(int) sigar_proc_cred_get(sigar_t *sigar, sigar_pid_t pid,
                                       sigar_proc_cred_t *proccred);

#define SIGAR_CRED_NAME_MAX 512

typedef struct {
    char user[SIGAR_CRED_NAME_MAX];
    char group[SIGAR_CRED_NAME_MAX];
} sigar_proc_cred_name_t;

SIGAR_DECLARE(int)
sigar_proc_cred_name_get(sigar_t *sigar, sigar_pid_t pid,
                         sigar_proc_cred_name_t *proccredname);

typedef struct {
    sigar_uint64_t
        start_time,
        user,
        sys,
        total;
} sigar_proc_time_t;

SIGAR_DECLARE(int) sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid,
                                       sigar_proc_time_t *proctime);

typedef struct {
    /* must match sigar_proc_time_t fields */
    sigar_uint64_t
        start_time,
        user,
        sys,
        total;
    sigar_uint64_t last_time;
    double percent;
} sigar_proc_cpu_t;

SIGAR_DECLARE(int) sigar_proc_cpu_get(sigar_t *sigar, sigar_pid_t pid,
                                      sigar_proc_cpu_t *proccpu);

#define SIGAR_PROC_STATE_SLEEP  'S'
#define SIGAR_PROC_STATE_RUN    'R'
#define SIGAR_PROC_STATE_STOP   'T'
#define SIGAR_PROC_STATE_ZOMBIE 'Z'
#define SIGAR_PROC_STATE_IDLE   'D'

#define SIGAR_PROC_NAME_LEN 128

typedef struct {
    char name[SIGAR_PROC_NAME_LEN];
    char state;
    sigar_pid_t ppid;
    int tty;
    int priority;
    int nice;
    int processor;
    sigar_uint64_t threads;
} sigar_proc_state_t;

SIGAR_DECLARE(int) sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
                                        sigar_proc_state_t *procstate);

typedef struct {
    unsigned long number;
    unsigned long size;
    char **data;
} sigar_proc_args_t;

SIGAR_DECLARE(int) sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
                                       sigar_proc_args_t *procargs);

SIGAR_DECLARE(int) sigar_proc_args_destroy(sigar_t *sigar,
                                           sigar_proc_args_t *procargs);

typedef struct {
    void *data; /* user data */

    enum {
        SIGAR_PROC_ENV_ALL,
        SIGAR_PROC_ENV_KEY
    } type;

    /* used for SIGAR_PROC_ENV_KEY */
    const char *key;
    int klen;

    int (*env_getter)(void *, const char *, int, char *, int);
} sigar_proc_env_t;

SIGAR_DECLARE(int) sigar_proc_env_get(sigar_t *sigar, sigar_pid_t pid,
                                      sigar_proc_env_t *procenv);

typedef struct {
    sigar_uint64_t total;
    /* XXX - which are files, sockets, etc. */
} sigar_proc_fd_t;

SIGAR_DECLARE(int) sigar_proc_fd_get(sigar_t *sigar, sigar_pid_t pid,
                                     sigar_proc_fd_t *procfd);

typedef struct {
    char name[SIGAR_PATH_MAX+1];
    char cwd[SIGAR_PATH_MAX+1];
    char root[SIGAR_PATH_MAX+1];
} sigar_proc_exe_t;

SIGAR_DECLARE(int) sigar_proc_exe_get(sigar_t *sigar, sigar_pid_t pid,
                                      sigar_proc_exe_t *procexe);

typedef struct {
    void *data; /* user data */

    int (*module_getter)(void *, char *, int);
} sigar_proc_modules_t;

SIGAR_DECLARE(int) sigar_proc_modules_get(sigar_t *sigar, sigar_pid_t pid,
                                          sigar_proc_modules_t *procmods);

typedef struct {
    sigar_uint64_t user;
    sigar_uint64_t sys;
    sigar_uint64_t total;
} sigar_thread_cpu_t;

SIGAR_DECLARE(int) sigar_thread_cpu_get(sigar_t *sigar,
                                        sigar_uint64_t id,
                                        sigar_thread_cpu_t *cpu);

typedef enum {
    SIGAR_FSTYPE_UNKNOWN,
    SIGAR_FSTYPE_NONE,
    SIGAR_FSTYPE_LOCAL_DISK,
    SIGAR_FSTYPE_NETWORK,
    SIGAR_FSTYPE_RAM_DISK,
    SIGAR_FSTYPE_CDROM,
    SIGAR_FSTYPE_SWAP,
    SIGAR_FSTYPE_MAX
} sigar_file_system_type_e;

#define SIGAR_FS_NAME_LEN SIGAR_PATH_MAX
#define SIGAR_FS_INFO_LEN 256

typedef struct {
    char dir_name[SIGAR_FS_NAME_LEN];
    char dev_name[SIGAR_FS_NAME_LEN];
    char type_name[SIGAR_FS_INFO_LEN];     /* e.g. "local" */
    char sys_type_name[SIGAR_FS_INFO_LEN]; /* e.g. "ext3" */
    char options[SIGAR_FS_INFO_LEN];
    sigar_file_system_type_e type;
    unsigned long flags;
} sigar_file_system_t;

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_file_system_t *data;
} sigar_file_system_list_t;

SIGAR_DECLARE(int)
sigar_file_system_list_get(sigar_t *sigar,
                           sigar_file_system_list_t *fslist);

SIGAR_DECLARE(int)
sigar_file_system_list_destroy(sigar_t *sigar,
                               sigar_file_system_list_t *fslist);

typedef struct {
    sigar_uint64_t reads;
    sigar_uint64_t writes;
    sigar_uint64_t write_bytes;
    sigar_uint64_t read_bytes;
    sigar_uint64_t rtime;
    sigar_uint64_t wtime;
    sigar_uint64_t qtime;
    sigar_uint64_t time;
    sigar_uint64_t snaptime;
    double service_time;
    double queue;
} sigar_disk_usage_t;

/* XXX for sigar_file_system_usage_t compat */
#define disk_reads disk.reads
#define disk_writes disk.writes
#define disk_write_bytes disk.write_bytes
#define disk_read_bytes disk.read_bytes
#define disk_queue disk.queue
#define disk_service_time disk.service_time

typedef struct {
    sigar_disk_usage_t disk;
    double use_percent;
    sigar_uint64_t total;
    sigar_uint64_t free;
    sigar_uint64_t used;
    sigar_uint64_t avail;
    sigar_uint64_t files;
    sigar_uint64_t free_files;
} sigar_file_system_usage_t;

#undef SIGAR_DISK_USAGE_T

SIGAR_DECLARE(int)
sigar_file_system_usage_get(sigar_t *sigar,
                            const char *dirname,
                            sigar_file_system_usage_t *fsusage);

SIGAR_DECLARE(int) sigar_disk_usage_get(sigar_t *sigar,
                                        const char *name,
                                        sigar_disk_usage_t *disk);

SIGAR_DECLARE(int)
sigar_file_system_ping(sigar_t *sigar,
                       sigar_file_system_t *fs);

typedef struct {
    enum {
        SIGAR_AF_UNSPEC,
        SIGAR_AF_INET,
        SIGAR_AF_INET6,
        SIGAR_AF_LINK
    } family;
    union {
        sigar_uint32_t in;
        sigar_uint32_t in6[4];
        unsigned char mac[8];
    } addr;
} sigar_net_address_t;

#define SIGAR_INET6_ADDRSTRLEN 46

#define SIGAR_MAXDOMAINNAMELEN 256
#define SIGAR_MAXHOSTNAMELEN 256

typedef struct {
    char default_gateway[SIGAR_INET6_ADDRSTRLEN];
    char host_name[SIGAR_MAXHOSTNAMELEN];
    char domain_name[SIGAR_MAXDOMAINNAMELEN];
    char primary_dns[SIGAR_INET6_ADDRSTRLEN];
    char secondary_dns[SIGAR_INET6_ADDRSTRLEN];
} sigar_net_info_t;

SIGAR_DECLARE(int)
sigar_net_info_get(sigar_t *sigar,
                   sigar_net_info_t *netinfo);

#define SIGAR_RTF_UP      0x1
#define SIGAR_RTF_GATEWAY 0x2
#define SIGAR_RTF_HOST    0x4

typedef struct {
    sigar_net_address_t destination;
    sigar_net_address_t gateway;
    sigar_net_address_t mask;
    sigar_uint64_t
        flags,
        refcnt,
        use,
        metric,
        mtu,
        window,
        irtt;
    char ifname[16];
} sigar_net_route_t;

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_net_route_t *data;
} sigar_net_route_list_t;

SIGAR_DECLARE(int) sigar_net_route_list_get(sigar_t *sigar,
                                            sigar_net_route_list_t *routelist);

SIGAR_DECLARE(int) sigar_net_route_list_destroy(sigar_t *sigar,
                                                sigar_net_route_list_t *routelist);

/*
 * platforms define most of these "standard" flags,
 * but of course, with different values in some cases.
 */
#define SIGAR_IFF_UP          0x1
#define SIGAR_IFF_BROADCAST   0x2
#define SIGAR_IFF_DEBUG       0x4
#define SIGAR_IFF_LOOPBACK    0x8
#define SIGAR_IFF_POINTOPOINT 0x10
#define SIGAR_IFF_NOTRAILERS  0x20
#define SIGAR_IFF_RUNNING     0x40
#define SIGAR_IFF_NOARP       0x80
#define SIGAR_IFF_PROMISC     0x100
#define SIGAR_IFF_ALLMULTI    0x200
#define SIGAR_IFF_MULTICAST   0x800
#define SIGAR_IFF_SLAVE       0x1000

#define SIGAR_NULL_HWADDR "00:00:00:00:00:00"

typedef struct {
    char name[16];
    char type[64];
    char description[256];
    sigar_net_address_t hwaddr;
    sigar_net_address_t address;
    sigar_net_address_t destination;
    sigar_net_address_t broadcast;
    sigar_net_address_t netmask;
    sigar_uint64_t
        flags,
        mtu,
        metric;
} sigar_net_interface_config_t;

SIGAR_DECLARE(int)
sigar_net_interface_config_get(sigar_t *sigar,
                               const char *name,
                               sigar_net_interface_config_t *ifconfig);

SIGAR_DECLARE(int)
sigar_net_interface_config_primary_get(sigar_t *sigar,
                                       sigar_net_interface_config_t *ifconfig);

typedef struct {
    sigar_uint64_t
        /* received */
        rx_packets,
        rx_bytes,
        rx_errors,
        rx_dropped,
        rx_overruns,
        rx_frame,
        /* transmitted */
        tx_packets,
        tx_bytes,
        tx_errors,
        tx_dropped,
        tx_overruns,
        tx_collisions,
        tx_carrier,
        speed;
} sigar_net_interface_stat_t;

SIGAR_DECLARE(int)
sigar_net_interface_stat_get(sigar_t *sigar,
                             const char *name,
                             sigar_net_interface_stat_t *ifstat);

typedef struct {
    unsigned long number;
    unsigned long size;
    char **data;
} sigar_net_interface_list_t;

SIGAR_DECLARE(int)
sigar_net_interface_list_get(sigar_t *sigar,
                             sigar_net_interface_list_t *iflist);

SIGAR_DECLARE(int)
sigar_net_interface_list_destroy(sigar_t *sigar,
                                 sigar_net_interface_list_t *iflist);

#define SIGAR_NETCONN_CLIENT 0x01
#define SIGAR_NETCONN_SERVER 0x02

#define SIGAR_NETCONN_TCP  0x10
#define SIGAR_NETCONN_UDP  0x20
#define SIGAR_NETCONN_RAW  0x40
#define SIGAR_NETCONN_UNIX 0x80

enum {
    SIGAR_TCP_ESTABLISHED = 1,
    SIGAR_TCP_SYN_SENT,
    SIGAR_TCP_SYN_RECV,
    SIGAR_TCP_FIN_WAIT1,
    SIGAR_TCP_FIN_WAIT2,
    SIGAR_TCP_TIME_WAIT,
    SIGAR_TCP_CLOSE,
    SIGAR_TCP_CLOSE_WAIT,
    SIGAR_TCP_LAST_ACK,
    SIGAR_TCP_LISTEN,
    SIGAR_TCP_CLOSING,
    SIGAR_TCP_IDLE,
    SIGAR_TCP_BOUND,
    SIGAR_TCP_UNKNOWN
};

typedef struct {
    unsigned long local_port;
    sigar_net_address_t local_address;
    unsigned long remote_port;
    sigar_net_address_t remote_address;
    sigar_uid_t uid;
    unsigned long inode;
    int type;
    int state;
    unsigned long send_queue;
    unsigned long receive_queue;
} sigar_net_connection_t;

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_net_connection_t *data;
} sigar_net_connection_list_t;

SIGAR_DECLARE(int)
sigar_net_connection_list_get(sigar_t *sigar,
                              sigar_net_connection_list_t *connlist,
                              int flags);

SIGAR_DECLARE(int)
sigar_net_connection_list_destroy(sigar_t *sigar,
                                  sigar_net_connection_list_t *connlist);

typedef struct sigar_net_connection_walker_t sigar_net_connection_walker_t;

/* alternative to sigar_net_connection_list_get */
struct sigar_net_connection_walker_t {
    sigar_t *sigar;
    int flags;
    void *data; /* user data */
    int (*add_connection)(sigar_net_connection_walker_t *walker,
                          sigar_net_connection_t *connection);
};

SIGAR_DECLARE(int)
sigar_net_connection_walk(sigar_net_connection_walker_t *walker);

typedef struct {
    int tcp_states[SIGAR_TCP_UNKNOWN];
    sigar_uint32_t tcp_inbound_total;
    sigar_uint32_t tcp_outbound_total;
    sigar_uint32_t all_inbound_total;
    sigar_uint32_t all_outbound_total;
} sigar_net_stat_t;

SIGAR_DECLARE(int)
sigar_net_stat_get(sigar_t *sigar,
                   sigar_net_stat_t *netstat,
                   int flags);

SIGAR_DECLARE(int)
sigar_net_stat_port_get(sigar_t *sigar,
                        sigar_net_stat_t *netstat,
                        int flags,
                        sigar_net_address_t *address,
                        unsigned long port);

/* TCP-MIB */
typedef struct {
    sigar_uint64_t active_opens;
    sigar_uint64_t passive_opens;
    sigar_uint64_t attempt_fails;
    sigar_uint64_t estab_resets;
    sigar_uint64_t curr_estab;
    sigar_uint64_t in_segs;
    sigar_uint64_t out_segs;
    sigar_uint64_t retrans_segs;
    sigar_uint64_t in_errs;
    sigar_uint64_t out_rsts;
} sigar_tcp_t;

SIGAR_DECLARE(int)
sigar_tcp_get(sigar_t *sigar,
              sigar_tcp_t *tcp);

typedef struct {
    sigar_uint64_t null;
    sigar_uint64_t getattr;
    sigar_uint64_t setattr;
    sigar_uint64_t root;
    sigar_uint64_t lookup;
    sigar_uint64_t readlink;
    sigar_uint64_t read;
    sigar_uint64_t writecache;
    sigar_uint64_t write;
    sigar_uint64_t create;
    sigar_uint64_t remove;
    sigar_uint64_t rename;
    sigar_uint64_t link;
    sigar_uint64_t symlink;
    sigar_uint64_t mkdir;
    sigar_uint64_t rmdir;
    sigar_uint64_t readdir;
    sigar_uint64_t fsstat;
} sigar_nfs_v2_t;

typedef sigar_nfs_v2_t sigar_nfs_client_v2_t;
typedef sigar_nfs_v2_t sigar_nfs_server_v2_t;

SIGAR_DECLARE(int)
sigar_nfs_client_v2_get(sigar_t *sigar,
                        sigar_nfs_client_v2_t *nfs);

SIGAR_DECLARE(int)
sigar_nfs_server_v2_get(sigar_t *sigar,
                        sigar_nfs_server_v2_t *nfs);

typedef struct {
    sigar_uint64_t null;
    sigar_uint64_t getattr;
    sigar_uint64_t setattr;
    sigar_uint64_t lookup;
    sigar_uint64_t access;
    sigar_uint64_t readlink;
    sigar_uint64_t read;
    sigar_uint64_t write;
    sigar_uint64_t create;
    sigar_uint64_t mkdir;
    sigar_uint64_t symlink;
    sigar_uint64_t mknod;
    sigar_uint64_t remove;
    sigar_uint64_t rmdir;
    sigar_uint64_t rename;
    sigar_uint64_t link;
    sigar_uint64_t readdir;
    sigar_uint64_t readdirplus;
    sigar_uint64_t fsstat;
    sigar_uint64_t fsinfo;
    sigar_uint64_t pathconf;
    sigar_uint64_t commit;
} sigar_nfs_v3_t;

typedef sigar_nfs_v3_t sigar_nfs_client_v3_t;
typedef sigar_nfs_v3_t sigar_nfs_server_v3_t;

SIGAR_DECLARE(int)
sigar_nfs_client_v3_get(sigar_t *sigar,
                        sigar_nfs_client_v3_t *nfs);

SIGAR_DECLARE(int)
sigar_nfs_server_v3_get(sigar_t *sigar,
                        sigar_nfs_server_v3_t *nfs);

SIGAR_DECLARE(int)
sigar_net_listen_address_get(sigar_t *sigar,
                             unsigned long port,
                             sigar_net_address_t *address);

typedef struct {
    char user[32];
    char device[32];
    char host[256];
    sigar_uint64_t time;
} sigar_who_t;

typedef struct {
    unsigned long number;
    unsigned long size;
    sigar_who_t *data;
} sigar_who_list_t;

SIGAR_DECLARE(int) sigar_who_list_get(sigar_t *sigar,
                                      sigar_who_list_t *wholist);

SIGAR_DECLARE(int) sigar_who_list_destroy(sigar_t *sigar,
                                          sigar_who_list_t *wholist);

SIGAR_DECLARE(int) sigar_proc_port_get(sigar_t *sigar,
                                       int protocol, unsigned long port,
                                       sigar_pid_t *pid);

typedef struct {
    const char *build_date;
    const char *scm_revision;
    const char *version;
    const char *archname;
    const char *archlib;
    const char *binname;
    const char *description;
    int major, minor, maint, build;
} sigar_version_t;

SIGAR_DECLARE(sigar_version_t *) sigar_version_get(void);

#define SIGAR_SYS_INFO_LEN SIGAR_MAXHOSTNAMELEN /* more than enough */

typedef struct {
    char name[SIGAR_SYS_INFO_LEN]; /* canonicalized sysname */
    char version[SIGAR_SYS_INFO_LEN]; /* utsname.release */
    char arch[SIGAR_SYS_INFO_LEN];
    char machine[SIGAR_SYS_INFO_LEN];
    char description[SIGAR_SYS_INFO_LEN];
    char patch_level[SIGAR_SYS_INFO_LEN];
    char vendor[SIGAR_SYS_INFO_LEN];
    char vendor_version[SIGAR_SYS_INFO_LEN];
    char vendor_name[SIGAR_SYS_INFO_LEN];  /* utsname.sysname */
    char vendor_code_name[SIGAR_SYS_INFO_LEN];
} sigar_sys_info_t;

SIGAR_DECLARE(int) sigar_sys_info_get(sigar_t *sigar, sigar_sys_info_t *sysinfo);

#define SIGAR_FQDN_LEN 512

SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen);

SIGAR_DECLARE(int) sigar_rpc_ping(char *hostname,
                                  int protocol,
                                  unsigned long program,
                                  unsigned long version);

SIGAR_DECLARE(char *) sigar_rpc_strerror(int err);

SIGAR_DECLARE(char *) sigar_password_get(const char *prompt);

#ifdef __cplusplus
}
#endif

#endif


text:
using System;

namespace SignalRest
{
    public class SessionManagementExceptionEventArgs : EventArgs
    {
        public SessionManagementExceptionEventArgs(Exception exception, string connectionId, string hubName)
        {
            ConnectionId = connectionId;
            Exception = exception;
            HubName = hubName;
        }

        public string ConnectionId { get; }
        public Exception Exception { get; }
        public string HubName { get; }
    }
}


text:
"""
Created on 01. June 214 16:34
@author: <'Daniel Fängström'> daniel.fengstrom@gmail.com

"""

import Box2D
from Box2D import *
import pygame
from pygame.locals import *

boxScreen = pygame.display.set_mode((640, 480), 0, 32)
pygame.display.set_caption('Just a pygame test')
boxClock = pygame.time.Clock()

exampleWorld = b2World()
#exampleWorld.lowerBound.Set(-100, -100)
#exampleWorld.upperBound.Set(100, 100)
gravity = (0, -10)
doSleep = True
boxWorld = b2World(gravity, doSleep)

#groundBodyDef = b2BodyDef()
#groundBodyDef.position = (10, -10)
groundBody = boxWorld.CreateStaticBody(position=(10, 2), shapes=b2PolygonShape(box=(50, 5)))
groundBox = b2PolygonShape(box=(50, 10))
groundBoxFixture = b2FixtureDef(shape=groundBox)
groundBody.CreateFixture(groundBoxFixture)

#groundShapeDef = b2JointDef()
#groundShapeDef.SetAsBox(50, 10)
#groundBody.CreateShape(groundShapeDef)

#dynBodyDef = b2BodyDef()
#dynBodyDef.position = (0, 4)
dynBody = boxWorld.CreateDynamicBody(position=(10, 35))
dynBox = dynBody.CreatePolygonFixture(box=(1, 1), density=1, friction=0.3)
#dynShapeDef = b2JointDef()
#dynShapeDef.SetAsBox(1, 1)
#dynShapeDef.density = 1
#dynShapeDef.friction = 0.3
#dynBody.CreateShape(dynShapeDef)
#dynBody.SetMassFromShapes()
#dynBodyDef.allowSleep = True
#dynBodyDef.isSleeping = False
#dynBox = dynBody.CreatePolygonFixture(box=(2, 1), density=1, friction=0.3)

secBody = boxWorld.CreateDynamicBody(position=(11, 4))
secBox = secBody.CreatePolygonFixture(box=(1, 1), density=0.1, friction=0.1)

timeStep = 1.0/60.0
velocityIterations = 6
positionIterations = 2

colors = {
    groundBody: (255, 255, 255, 255),
    dynBody: (127, 127, 127, 255),
    secBody: (64, 190, 100, 255),
}

simRunning = True
while simRunning:
    for event in pygame.event.get():
        if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
            simRunning = False

    boxScreen.fill((0, 0, 0, 0))
    for body in (groundBody, dynBody, secBody):
        #positionBody = body.position()
        #massBody = body.GetMass()
        #for otherBody in (groundBody, dynBody, secBody):
        #    otherPosition = otherBody.GetWorldCenter()
        #    otherMass = otherBody.GetMass()
        #    diffPosition = otherPosition - positionBody
        #    lengthDiff = diffPosition.Length()
        #    endForce = (massBody * otherMass / (lengthDiff*lengthDiff))
        #    diffPosition.Normalize()
        #    body.ApplyForce(endForce * diffPosition, positionBody)
        #    otherBody.ApplyForce(-endForce * diffPosition, otherPosition)
        for fixture in body.fixtures:
            shape = fixture.shape
            vertices = [(body.transform*v)*20.0 for v in shape.vertices]
            vertices = [(v[0], 640-v[1]) for v in vertices]
            #print(boxScreen)
            #print(colors[dynBody])
            #print(body)
            #print(vertices)
            pygame.draw.polygon(boxScreen, colors[body], vertices)

    boxWorld.Step(timeStep, 10, 10)
    pygame.display.flip()
    boxClock.tick(60.0)

pygame.quit()
print('Done!')

#for dynBody in boxWorld:
#    dynBody.WakeUp()
#    dynBody = dynBody.GetNext()

#for i in range(60):
#    boxWorld.Step(timeStep, velocityIterations, positionIterations)
#    print dynBody.position, dynBody.angle


text:
"""Example of using Context events for work flow.

This example creates a context with events, then adds a few Async jobs to the
Context.
"""

import logging

import webapp2

class ContextEventsHandler(webapp2.RequestHandler):
    """Demonstrate using Context Events to make work flows."""
    def get(self):
        from furious.async import Async
        from furious import context

        count = int(self.request.get('tasks', 5))

        # Create a new furious Context.
        with context.new() as ctx:
            # Set a completion event handler.
            ctx.set_event_handler('complete',
                                  Async(context_complete, args=[ctx.id]))

            # Insert some Asyncs.
            for i in xrange(count):
                ctx.add(target=async_worker, args=[ctx.id, i])
                logging.info('Added job %d to context.', i)

        # When the Context is exited, the tasks are inserted (if there are no
        # errors).

        logging.info('Async jobs for context batch inserted.')

        self.response.out.write('Successfully inserted a group of Async jobs.')

def async_worker(*args, **kwargs):
    """This function is called by furious tasks to demonstrate usage."""
    logging.info('Context %s, function %s', *args)

    return args

def context_complete(context_id):
    """Log out that the context is complete."""
    logging.info('Context %s is.......... DONE.', context_id)

    return context_id


text:
#ifndef PSH_UTILS_H
#define PSH_UTILS_H

/* Environment variable for home directory */
#define HOME_DIR_ENV "HOME"

char *
__get_home_dir(void);

void
__replace_env(char **args);

#endif


text:
<?php
require 'vendor/autoload.php'; // If you're using Composer (recommended)
// comment out the above line if not using Composer
// require("./sendgrid-php.php");
// If not using Composer, uncomment the above line

$apiKey = getenv('SENDGRID_API_KEY');
$sg = new \SendGrid($apiKey);

////////////////////////////////////////////////////
// Create a Sender Identity #
// POST /senders #

$request_body = json_decode('{
  "address": "123 Elm St.",
  "address_2": "Apt. 456",
  "city": "Denver",
  "country": "United States",
  "from": {
    "email": "from@example.com",
    "name": "Example INC"
  },
  "nickname": "My Sender ID",
  "reply_to": {
    "email": "replyto@example.com",
    "name": "Example INC"
  },
  "state": "Colorado",
  "zip": "80202"
}');

try {
    $response = $sg->client->senders()->post($request_body);
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}

////////////////////////////////////////////////////
// Get all Sender Identities #
// GET /senders #

try {
    $response = $sg->client->senders()->get();
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}

////////////////////////////////////////////////////
// Update a Sender Identity #
// PATCH /senders/{sender_id} #

$request_body = json_decode('{
  "address": "123 Elm St.",
  "address_2": "Apt. 456",
  "city": "Denver",
  "country": "United States",
  "from": {
    "email": "from@example.com",
    "name": "Example INC"
  },
  "nickname": "My Sender ID",
  "reply_to": {
    "email": "replyto@example.com",
    "name": "Example INC"
  },
  "state": "Colorado",
  "zip": "80202"
}');
$sender_id = "test_url_param";

try {
    $response = $sg->client->senders()->_($sender_id)->patch($request_body);
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}

////////////////////////////////////////////////////
// View a Sender Identity #
// GET /senders/{sender_id} #

$sender_id = "test_url_param";

try {
    $response = $sg->client->senders()->_($sender_id)->get();
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}

////////////////////////////////////////////////////
// Delete a Sender Identity #
// DELETE /senders/{sender_id} #

$sender_id = "test_url_param";

try {
    $response = $sg->client->senders()->_($sender_id)->delete();
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}

////////////////////////////////////////////////////
// Resend Sender Identity Verification #
// POST /senders/{sender_id}/resend_verification #

$sender_id = "test_url_param";

try {
    $response = $sg->client->senders()->_($sender_id)->resend_verification()->post();
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}


text:
#import <WebKitLegacy/WebBackForwardList.h>
#import <wtf/PassRefPtr.h>

namespace WebCore {
class BackForwardList;
}

WebCore::BackForwardList* core(WebBackForwardList *);
WebBackForwardList *kit(WebCore::BackForwardList*);

@interface WebBackForwardList (WebBackForwardListInternal)
- (id)initWithBackForwardList:(PassRefPtr<WebCore::BackForwardList>)backForwardList;
@end


text:
<!DOCTYPE html>

		<meta charset="utf-8">
		<title> SmartAdmin </title>
		<meta name="description" content="">
		<meta name="author" content="">

		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/font-awesome.min.css">

		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-production-plugins.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-production.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-skins.min.css">

		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-rtl.min.css">

		<link rel="stylesheet" type="text/css" media="screen" href="css/demo.min.css">

		<link rel="shortcut icon" href="img/favicon/favicon.ico" type="image/x-icon">
		<link rel="icon" href="img/favicon/favicon.ico" type="image/x-icon">

		<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700">

		<link rel="apple-touch-icon" href="img/splash/sptouch-icon-iphone.png">
		<link rel="apple-touch-icon" sizes="76x76" href="img/splash/touch-icon-ipad.png">
		<link rel="apple-touch-icon" sizes="120x120" href="img/splash/touch-icon-iphone-retina.png">
		<link rel="apple-touch-icon" sizes="152x152" href="img/splash/touch-icon-ipad-retina.png">

		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="apple-touch-startup-image" href="img/splash/ipad-landscape.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)">
		<link rel="apple-touch-startup-image" href="img/splash/ipad-portrait.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)">
		<link rel="apple-touch-startup-image" href="img/splash/iphone.png" media="screen and (max-device-width: 320px)">

				   21

							<input type="radio" name="activity" id="ajax/notify/mail.html">
							Msgs (14)

							<input type="radio" name="activity" id="ajax/notify/notifications.html">
							notify (3)

							<input type="radio" name="activity" id="ajax/notify/tasks.html">
							Tasks (4)

Click a button to show messages here

							This blank page message helps protect your privacy, or you can show the first message here automatically.

					 Last updated on: 12/12/2013 9:43AM
						<button type="button" data-loading-text=" Loading..." class="btn btn-xs btn-default pull-right">

						</button>

				Projects:
				Recent projects

						Online e-merchant management system - attaching integration with the iOS

						Notes on pipeline upgradee

						Assesment Report for merchant account

						 Clear

								 Setting

								  Profile

								 Shortcut

								 Full Screen

								 Logout

				<form action="search.html" class="header-search pull-right">
					<input id="search-fld"  type="text" name="param" placeholder="Find reports and more" data-autocomplete='[
					"ActionScript",
					"AppleScript",
					"Asp",
					"BASIC",
					"C",
					"C++",
					"Clojure",
					"COBOL",
					"ColdFusion",
					"Erlang",
					"Fortran",
					"Groovy",
					"Haskell",
					"Java",
					"JavaScript",
					"Lisp",
					"Perl",
					"PHP",
					"Python",
					"Ruby",
					"Scala",
					"Scheme"]'>
					<button type="submit">

					</button>

				</form>

Voice command activated
Please speak clearly into the mic

									 Voice command failed

Must "Allow" Microphone

Must have Internet Connection

								See Commands
								Close Popup

						   English (US)

								 English (US)

								 Français

								 Español

								 Deutsch

								 日本語

								 中文

								 Italiano

								 Portugal

								 Русский язык

								 한국어

							john.doe

						 Dashboard

						 Inbox14

						 Graphs

								Flot Chart

								Morris Charts

								Inline Charts

								Dygraphs

								Chart.js new

						 Tables

								Normal Tables

								Data Tables v1.10

								Jquery Grid

						 Forms

								Smart Form Elements

								Smart Form Layouts

								Smart Form Validation

								Bootstrap Form Elements

								Bootstrap Form Validation

								Form Plugins

								Wizards

								Bootstrap Editors

								Dropzone

								Image Cropping new

						 UI Elements

								General Elements

								Buttons

								Icons

										 Font Awesome

										 Glyph Icons

										 Flags

								Grid

								Tree View

								Nestable Lists

								JQuery UI

								Typography

								Six Level Menu

										 Item #2

												 Sub #2.1

														 Item #2.1.1

														 Expand

																 File

																 Delete

										 Item #3

												 3ed Level

														 File

														 File

						3 Calendar

						 Widgets

						 App Views

								 Projects

								 Blog

								 Gallery

								 Forum Layout

General View

Topic View

Post View

								 Profile

								 Timeline

						 GMap Skins9

						 Miscellaneous

								Landing Page

								Pricing Tables

								Invoice

								Login

								Register

								Locked Screen

								Error 404

								Error 500

								Blank Page

								Email Template

								Search Page

								CK Editor

						 SmartAdmin Intel

								 Different Versions

								 App Settings

								 Documentation

								 Bug Tracker

						! Smart Chat API beta

									<input class="form-control chat-user-filter" placeholder="Filter" type="text">

								  	<a href="#" class="usr"
									  	data-chat-id="cha1"
									  	data-chat-fname="Sadi"
									  	data-chat-lname="Orlaf"
									  	data-chat-status="busy"
									  	data-chat-alertmsg="Sadi Orlaf is in a meeting. Please do not disturb!"
									  	data-chat-alertshow="true"
									  	data-rel="popover-hover"
									  	data-placement="right"
									  	data-html="true"
									  	data-content="

Sadi Orlaf

Marketing Executive

										">
									  	Sadi Orlaf

									<a href="#" class="usr"
										data-chat-id="cha2"
									  	data-chat-fname="Jessica"
									  	data-chat-lname="Dolof"
									  	data-chat-status="online"
									  	data-chat-alertmsg=""
									  	data-chat-alertshow="false"
									  	data-rel="popover-hover"
									  	data-placement="right"
									  	data-html="true"
									  	data-content="

Jessica Dolof

Sales Administrator

										">
									  	Jessica Dolof

									<a href="#" class="usr"
									  	data-chat-id="cha3"
									  	data-chat-fname="Zekarburg"
									  	data-chat-lname="Almandalie"
									  	data-chat-status="online"
									  	data-rel="popover-hover"
									  	data-placement="right"
									  	data-html="true"
									  	data-content="

Zekarburg Almandalie

Sales Admin

										">
									  	Zekarburg Almandalie

									<a href="#" class="usr"
									  	data-chat-id="cha4"
									  	data-chat-fname="Barley"
									  	data-chat-lname="Krazurkth"
									  	data-chat-status="away"
									  	data-rel="popover-hover"
									  	data-placement="right"
									  	data-html="true"
									  	data-content="

Barley Krazurkth

Sales Director

										">
									  	Barley Krazurkth

									<a href="#" class="usr offline"
									  	data-chat-id="cha5"
									  	data-chat-fname="Farhana"
									  	data-chat-lname="Amrin"
									  	data-chat-status="incognito"
									  	data-rel="popover-hover"
									  	data-placement="right"
									  	data-html="true"
									  	data-content="

Farhana Amrin

Support Admin  Playing Beethoven Classics

										">
									  	Farhana Amrin (offline)

									<a href="#" class="usr offline"
										data-chat-id="cha6"
									  	data-chat-fname="Lezley"
									  	data-chat-lname="Jacob"
									  	data-chat-status="incognito"
									  	data-rel="popover-hover"
									  	data-placement="right"
									  	data-html="true"
									  	data-content="

Lezley Jacob

Sales Director

										">
									  	Lezley Jacob (offline)

									About the API

					<span id="refresh" class="btn btn-ribbon" data-action="resetWidgets" data-title="refresh"  rel="tooltip" data-placement="bottom" data-original-title=" Warning! This will reset all your widget settings." data-html="true">

Home

Forms

Image Cropping

 Forms >
							Image Editor

								Please note:
								This plugin is non-responsive

jcrop

											 API

											 Default

											 Basic

											 Aspect Ratio

											 Animations

											 Styling

API Interface — real-time API example

													Experimental shader active.
													Jcrop now includes a shading mode that facilitates building
													better transparent Jcrop instances. The experimental shader is less
													robust than Jcrop's default shading method and should only be
													used if you require this functionality.

													View jcrop's documentation by going to: http://deepliquid.com/content/Jcrop.html

													<fieldset>

														<legend>
															Option Toggles
														</legend>

															<button id="setSelect" class="btn btn-default btn-sm">
																setSelect
															</button>
															<button id="animateTo" class="btn btn-default btn-sm">
																animateTo
															</button>
															<button id="release" class="btn btn-default btn-sm">
																Release
															</button>
															<button id="disable" class="btn btn-default btn-sm">
																Disable
															</button>

														<button id="enable" class="btn btn-default btn-sm" style="display:none;">
															Re-Enable
														</button>
														<button id="unhook" class="btn btn-default btn-sm">
															Destroy!
														</button>
														<button id="rehook" class="btn btn-default btn-sm" style="display:none;">
															Attach Jcrop
														</button>
													</fieldset>

													<fieldset class="optdual requiresjcrop">
														<legend>
															Option Toggles
														</legend>

															  <input type="checkbox" class="checkbox style-0" id="ar_lock">
															  Aspect ratio

															  <input type="checkbox" class="checkbox style-0" id="size_lock">
															  minSize/maxSize setting

															  <input type="checkbox" class="checkbox style-0" id="can_click">
															  Allow new selections

															  <input type="checkbox" class="checkbox style-0" id="can_move">
															  Selection can be moved

															  <input type="checkbox" class="checkbox style-0" id="can_size">
															  Resizable selection

													</fieldset>

													<fieldset class="requiresjcrop">
														<legend>
															Change Image
														</legend>

															<button class="btn btn-default" id="img2">
																Lego
															</button>
															<button class="btn btn-default active" id="img1">
																Breakdance
															</button>
															<button class="btn btn-default" id="img3">
																Dragon Fly
															</button>

													</fieldset>

Default Behaviour

													This example demonstrates the default behavior of Jcrop.

													Since no event handlers have been attached it only performs
													the cropping behavior.

Basic Handler — basic form integration

													An example with a basic event handler. Here we've tied
													several form values together with a simple event handler invocation.
													The result is that the form values are updated in real-time as
													the selection is changed using Jcrop's onChange handler.

												<form id="coords"
												class="coords margin-top-10"
												onsubmit="return false;"
												action="http://example.com/post.php">

														X1
															<input type="text" size="4" id="x1" name="x1" />

														Y1
															<input type="text" size="4" id="y1" name="y1" />

														X2
															<input type="text" size="4" id="x2" name="x2" />

														Y2
															<input type="text" size="4" id="y2" name="y2" />

														W
															<input type="text" size="4" id="w" name="w" />

														H
															<input type="text" size="4" id="h" name="h" />

												</form>

Aspect Ratio w/ Preview Pane — nice visual example

													An example implementing a preview pane.
													Obviously the most visual demo, the preview pane is accomplished
													entirely outside of Jcrop with a simple jQuery-flavored callback.
													This type of interface could be useful for creating a thumbnail
													or avatar. The onChange event handler is used to update the
													view in the preview pane.

Animation/Transitions — animation/fading demo

													Experimental shader active.
													Jcrop now includes a shading mode that facilitates building
													better transparent Jcrop instances. The experimental shader is less
													robust than Jcrop's default shading method and should only be
													used if you require this functionality.

															  <input type="checkbox" class="checkbox style-0" id="fadetog">
															  Enable fading (bgFade: true)

															  <input type="checkbox" class="checkbox style-0" id="shadetog">
															  Use experimental shader (shade: true)

Styling Example — style Jcrop dynamically with CSS

													<fieldset>
														<legend>
															Manipulate classes
														</legend>

															<button class="btn btn-default active" data-setclass="jcrop-light" id="radio1">
																jcrop-light
															</button>
															<button class="btn btn-default" data-setclass="jcrop-dark" id="radio2">
																jcrop-dark
															</button>
															<button class="btn btn-default" data-setclass="jcrop-normal" id="radio3">
																normal
															</button>

													</fieldset>

					SmartAdmin 1.6  - Web Application Framework © 2014-2015

						Last account activity  52 mins ago

							<button class="btn btn-xs dropdown-toggle bg-color-blue txt-color-white" data-toggle="dropdown">

							</button>

Download Progress

Server Load

Memory Load *critical*

										<button class="btn btn-block btn-default">refresh</button>

					   Mail 14

					   Calendar

					   Maps

					   Invoice 99

					   Gallery

					   My Profile


text:
from kol.request.GenericRequest import GenericRequest

class DynamicRequest(GenericRequest):
    "A dynamic request to the Kingdom of Loathing servers. Especially useful for a relay browser."
    def __init__(self, session, url, arguments=None):
        super(DynamicRequest, self).__init__(session)
        self.url = session.serverURL + url

        if arguments != None:
            k = arguments.split('&')
            for x in k:
                temp = x.split('=')
                self.requestData[temp[0]] = temp[1]


text:
<?php
/**
 * Input Attributes Trait
 * Attributes that are for form input fields
 * @package SimplaForm
 * @author Jeremy Simkins <jpsimkins@gmail.com>
 */

namespace SimplaForm\Traits;
use SimplaForm\Input;

/**
 * Class InputAttributes
 * @package SimplaForm
 * @link http://dev.w3.org/html5/markup/global-attributes.html
 */
trait InputAttributes {

    /**
     * Specifies the types of files that the server accepts (only for type="file")
     * Note: The accept attribute of the <input> tag is not supported in Internet Explorer 9 and earlier versions.
     * @param string $string
     * @return $this
     */
    public function setAccept($string) {
        return $this->setAttribute('accept', $string);
    }

    /**
     * Fetch element attribute value
     * @return string
     */
    public function getAccept() {
        return $this->getAttribute('accept');
    }

    /**
     * Fetch element attribute value
     * The <input> align attribute is not supported in HTML5. Use CSS instead.
     * @return string
     */
    public function getAlign() {
        return $this->getAttribute('align');
    }

    /**
     * Set element attribute value
     * @param string $string
     * @return $this
     */
    public function setAlign($string) {
        switch(strtolower($string)) {
            case 'left':
            case 'right':
            case 'top':
            case 'middle':
            case 'bottom':
                return $this->setAttribute('align', $string);
                break;
        }
        return $this; // maintain chainability
    }

    /**
     * Fetch element attribute value
     * @return string
     */
    public function getAlt() {
        return $this->getAttribute('alt');
    }

    /**
     * Set element attribute value
     * @param string $string
     * @return $this
     */
    public function setAlt($string) {
        return $this->setAttribute('alt', $string);
    }

    /**
     * Sets the form checked attribute
     * @param bool $bool
     * @return $this
     */
    public function setChecked($bool=true) {
        if ($bool) {
            return $this->setAttribute('checked', 'checked');
        }
        return $this->removeAttribute('checked');
    }

    /**
     * Checks is the element is checked
     * @return mixed
     */
    public function isChecked() {
        return $this->hasAttribute('checked');
    }

    /**
     * Sets the form disabled attribute
     * @param bool $bool
     * @return $this
     */
    public function setDisabled($bool=true) {
        if ($bool) {
            return $this->setAttribute('disabled', 'disabled');
        } else {
            return $this->removeAttribute('disabled');
        }
    }

    /**
     * Set element attribute value
     * @param string $value
     * @return $this
     */
    public function setMaxLength($value) {
        return $this->setAttribute('maxlength', $value);
    }

    /**
     * Set name of element
     * @link http://www.w3schools.com/TAGS/att_input_name.asp
     * @param string $name
     * @return $this
     */
    public function setName($name) {
        return $this->setAttribute('name', $name);
    }

    /**
     * Get element name
     * @return array
     */
    public function getName() {
        return $this->getAttribute('name');
    }

    /**
     * Sets the form readonly attribute
     * @param bool $bool
     * @return $this
     */
    public function setReadOnly($bool=true) {
        if ($bool) {
            return $this->setAttribute('readonly', 'readonly');
        } else {
            return $this->removeAttribute('readonly');
        }
    }

    /**
     * Set element attribute value
     * @param string $value
     * @return $this
     */
    public function setSize($value) {
        return $this->setAttribute('size', $value);
    }

    /**
     * Set element attribute value
     * @param string $value
     * @return $this
     */
    public function setSource($value) {
        return $this->setAttribute('src', $value);
    }

    /**
     * Alias of setSource
     * @param string$value
     * @return $this
     */
    public function setSrc($value) {
        return $this->setSource($value); // maintain chainability
    }

    /**
     * Set the element type
     * @link http://www.w3schools.com/tags/att_input_type.asp
     * @param int $type
     * @return $this
     */
    public function setType($type) {
        $type = strtolower($type);
        switch ($type) {
            case self::TYPE_BUTTON:
                $this->setAttribute('type', 'button');
                break;
            case self::TYPE_CHECKBOX:
                $this->setAttribute('type', 'checkbox');
                break;
            case self::TYPE_FILE:
                $this->setAttribute('type', 'file');
                break;
            case self::TYPE_HIDDEN:
                $this->setAttribute('type', 'hidden');
                break;
            case self::TYPE_IMAGE:
                $this->setAttribute('type', 'image');
                break;
            case self::TYPE_PASSWORD:
                $this->setAttribute('type', 'password');
                break;
            case self::TYPE_RADIO:
                $this->setAttribute('type', 'radio');
                break;
            case self::TYPE_RESET:
                $this->setAttribute('type', 'reset');
                break;
            case self::TYPE_SUBMIT:
                $this->setAttribute('type', 'submit');
                break;
            case self::TYPE_TEXT:
                $this->setAttribute('type', 'text');
                break;
        }
        return $this; // maintain chainability
    }

    /**
     * Returns the attribute type
     * @return string
     */
    public function getType() {
        return $this->getAttribute('type');
    }

    /**
     * Fetch element attribute value
     * @return string
     */
    public function getValue() {
        return $this->getAttribute('value', '');
    }

    /**
     * Set element attribute value
     * @param string $value
     * @return $this
     */
    public function setValue($value) {
        return $this->setAttribute('value', $value);
    }

}


text:
package com.asakusafw.utils.java.model.syntax;

/**
 * An interface which represents class literals.
 *

 *
 Specified In:

 *
 {@code [JLS3:15.8.2] Class Literals}

 *

 *

 */
public interface ClassLiteral
        extends Expression {

    /**
     * Returns the target type.
     * @return the target type
     */
    Type getType();
}


text:
"""Create the asset."""

import argparse
import common
import multiprocessing
import os
import shutil
import subprocess
import utils

def create_asset(target_dir):
  """Create the asset."""
  # Check out and build the Intel NEO driver. Following instructions here:
  # https://github.com/intel/compute-runtime/blob/master/documentation/BUILD_Ubuntu.md
  with utils.tmp_dir():
    # Install build deps.
    neo_build_deps = ['ccache', 'flex', 'bison', 'clang-4.0', 'cmake', 'g++',
                      'git', 'patch', 'zlib1g-dev', 'autoconf', 'xutils-dev',
                      'libtool', 'pkg-config', 'libpciaccess-dev']
    apt_get_cmd = ['sudo', 'apt-get', 'install'] + neo_build_deps
    print 'Running "%s"' % ' '.join(apt_get_cmd)
    subprocess.check_call(apt_get_cmd)
    # Check out repos.
    for [repo, branch, local_name] in [
        ['llvm-mirror/clang',             'release_40', 'clang_source'],
        ['intel/opencl-clang',            'master',     'common_clang'],
        ['intel/llvm-patches',            'master',     'llvm_patches'],
        ['llvm-mirror/llvm',              'release_40', 'llvm_source'],
        ['intel/gmmlib',                  'master',     'gmmlib'],
        ['intel/intel-graphics-compiler', 'master',     'igc'],
        ['KhronosGroup/OpenCL-Headers',   'master',     'opencl_headers'],
        ['intel/compute-runtime',         'master',     'neo']
    ]:
      subprocess.check_call(['git', 'clone', '--depth', '1', '--branch', branch,
                             'https://github.com/' + repo, local_name])
    # Configure the build.
    build_dir = os.path.join(os.getcwd(), 'build')
    os.mkdir(build_dir)
    os.chdir(build_dir)
    subprocess.check_call(['cmake', '-DBUILD_TYPE=Release',
                           '-DCMAKE_BUILD_TYPE=Release', '../neo'])
    # Build and package the library.
    subprocess.check_call(['make', '-j%d' % multiprocessing.cpu_count(),
                           'package'])
    # Extract library and move necessary files to target_dir. We ignore the ICD
    # file because it's generated on the bot after we know the path to the CIPD
    # package.
    subprocess.check_call(['dpkg-deb', '--extract',
                           'intel-opencl-1.0-0.x86_64-igdrcl.deb', build_dir])
    lib_dir = os.path.join(build_dir, 'usr', 'local', 'lib')
    for f in os.listdir(lib_dir):
      shutil.move(os.path.join(lib_dir, f), target_dir)

def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--target_dir', '-t', required=True)
  args = parser.parse_args()
  create_asset(args.target_dir)

if __name__ == '__main__':
  main()


text:
package org.cloudfoundry.uaa.groups;

import reactor.core.publisher.Mono;

/**
 * Main entry point to the UAA Group Management Client API
 */
public interface Groups {

    /**
     * Makes the Add Member request
     *
     * @param request the Add Member request
     * @return the response from the Add Member request
     */
    Mono<AddMemberResponse> addMember(AddMemberRequest request);

    /**
     * Makes the Check Membership request
     *
     * @param request the Check Membership request
     * @return the response from the Check Membership request
     */
    Mono<CheckMembershipResponse> checkMembership(CheckMembershipRequest request);

    /**
     * Makes the Create Group request
     *
     * @param request the Create Group request
     * @return the response from the Create Group request
     */
    Mono<CreateGroupResponse> create(CreateGroupRequest request);

    /**
     * Makes the Delete a Group request
     *
     * @param request the Delete Group request
     * @return the response from the Delete Group request
     */
    Mono<DeleteGroupResponse> delete(DeleteGroupRequest request);

    /**
     * Makes the Retrieve a Group request
     *
     * @param request the Get Group request
     * @return the response from the Get Group request
     */
    Mono<GetGroupResponse> get(GetGroupRequest request);

    /**
     * Makes the List Groups request
     *
     * @param request the List Groups request
     * @return the response from the List Groups request
     */
    Mono<ListGroupsResponse> list(ListGroupsRequest request);

    /**
     * Makes the List External Group Mappings request
     *
     * @param request the List External Group Mappings request
     * @return the response from the List External Group Mappings request
     */
    Mono<ListExternalGroupMappingsResponse> listExternalGroupMappings(ListExternalGroupMappingsRequest request);

    /**
     * Makes the List Members request
     *
     * @param request the List Members request
     * @return the response from the List Members request
     */
    Mono<ListMembersResponse> listMembers(ListMembersRequest request);

    /**
     * Makes the Map External Group request
     *
     * @param request the Map External Group request
     * @return the response from the Map External Group request
     */
    Mono<MapExternalGroupResponse> mapExternalGroup(MapExternalGroupRequest request);

    /**
     * Makes the Remove Member request
     *
     * @param request the Remove Member request
     * @return the response from the Remove Member request
     */
    Mono<RemoveMemberResponse> removeMember(RemoveMemberRequest request);

    /**
     * Makes the Unmap External Group By Group Display Name request
     *
     * @param request the Unmap External Group By Group Display Name request
     * @return the response from the Unmap External Group By Group Display Name request
     */
    Mono<UnmapExternalGroupByGroupDisplayNameResponse> unmapExternalGroupByGroupDisplayName(UnmapExternalGroupByGroupDisplayNameRequest request);

    /**
     * Makes the Unmap External Group By Group Id request
     *
     * @param request the Unmap External Group By Group Id request
     * @return the response from the Unmap External Group By Group Id request
     */
    Mono<UnmapExternalGroupByGroupIdResponse> unmapExternalGroupByGroupId(UnmapExternalGroupByGroupIdRequest request);

    /**
     * Makes the Update Group request
     *
     * @param request the Update Group request
     * @return the response from the Update Group request
     */
    Mono<UpdateGroupResponse> update(UpdateGroupRequest request);

}


text:
<element name="b-line-series">
    <script src="../node_modules/d3/d3.js"></script>
    <script>
        ({
            get property() {
                return this.getAttribute('property');
            },

            get interpolation() {
                return this.getAttribute('interpolation');
            }
        });
    </script>
</element>


text:
YUI.add('jsonp-tests', function(Y) {

var suite = new Y.Test.Suite("JSONP"),

    // For the tests, replace Y.Get.js with an object that calls the
    // appropriate callback based on the url and sets a _getConfig property
    // on the test object for inspection. This test suite is not testing
    // the Get module. Asynchronicity is removed from the operations as well,
    // but maybe it should be reinserted.
    setup = function () {
        var test = this;
        this._GetJS = Y.Get.js;

        Y.Get.js = function (url, config) {
            test._getConfig = config;

            return {
                execute: function () {
                    var proxy = url.match(/YUI\.Env\.JSONP\.(\w+)/)[1],
                        callback;

                    test._proxyName = proxy;

                    if (url.indexOf('404') > -1) {
                        callback = config.onFailure;
                    // for the timeout + success test, where one request should
                    // timeout and others succeed
                    } else if (url.indexOf('wait=') > -1
                           && (test._remainingTimeouts === undefined
                               || test._remainingTimeouts--)) {
                        callback = config.onTimeout;
                    } else {
                        callback = YUI.Env.JSONP[proxy];
                    }

                    // Support async simulation by setting the test's _asyncGet
                    if (test._asyncGet) {
                        setTimeout(function () {
                            callback({ url: url, callback: proxy });
                        }, 0);
                    } else {
                        callback({ url: url, callback: proxy });
                    }
                }
            };
        };
    },

    teardown = function () {
        Y.Get.js = this._GetJS;
    };

suite.add(new Y.Test.Case({
    name: "send",

    setUp   : setup,
    tearDown: teardown,

    _should: {
        ignore: {
            "config charset should be set via Y.Get.js": 'Not testing Get behavior'
        }
    },

    "config charset should be set via Y.Get.js": function () {
        Y.jsonp("echo/jsonp?callback={callback}", {
            on: { success: function () {} }
        });

        Y.Assert.areSame('utf-8', this._getConfig.charset);

        Y.jsonp("echo/jsonp?callback={callback}", {
            on: { success: function () {} },
            charset: "GBK"
        });

        Y.Assert.areSame('GBK', this._getConfig.charset);
    },

    "config attributes should be set via Y.Get.js": function () {
        Y.jsonp("echo/jsonp?callback={callback}", {
            on: { success: function () {} },
            attributes: {
                // passing an attribute that is less likely to be skipped over
                // by browser whitelisting (if they do that now or will later)
                language: "javascript"
            }
        });

        Y.Assert.isObject(this._getConfig.attributes);
        Y.Assert.areSame("javascript", this._getConfig.attributes.language);
    },

    "async config should be set via Y.Get.js": function () {
        Y.jsonp("echo/jsonp?callback={callback}", {
            on: { success: function () {} },
            async: true
        });

        Y.Assert.isTrue(this._getConfig.async);
    }
}));

suite.add(new Y.Test.Case({
    name : "callbacks",

    setUp   : setup,
    tearDown: teardown,

    "callback function as second arg should be success handler": function () {
        Y.jsonp("echo/jsonp?&callback={callback}", function (json) {
            Y.Assert.isObject(json);
        });
    },

    "success handler in callback object should execute": function () {
        Y.jsonp("echo/jsonp?&callback={callback}", {
            on: {
                success: function (json) {
                    Y.Assert.isObject(json);
                }
            }
        });
    },

    "failure handler in callback object should execute": function () {
        Y.jsonp("status/404?callback={callback}", {
            on: {
                success: function (json) {
                    Y.Assert.fail("Success handler called from 404 response");
                },
                failure: function () {
                    Y.Assert.isTrue(true);
                }
            }
        });
    },

    "failure handler in callback object should not execute for successful io": function () {
        Y.jsonp("echo/jsonp?&callback={callback}", {
            on: {
                success: function (json) {
                    Y.Assert.isTrue(true);
                },
                failure: function () {
                    Y.Assert.fail("Failure handler called after successful response");
                }
            }
        });
    },

    "test multiple send() from an instance of Y.JSONPRequest": function () {
        var count = 0,
            service;

        service = new Y.JSONPRequest("echo/jsonp?callback={callback}", {
            on: {
                success: function (json) {
                    count++;
                }
            }
        });

        service.send().send().send();

        Y.Assert.areSame(count, 3);
    },

    "test otherparam={callback}": function () {
        var url, called;

        Y.jsonp("echo/jsonp?foo={callback}", function (data) {
            called = true;
            url = data.url;
        });

        Y.Assert.isTrue(called);
        Y.Assert.areSame(-1, url.indexOf('callback'));
    }

    // failure for bogus response data (not yet implemented)
    // missing {callback} (not sure how to test. No callback would be attached.
    //      Maybe have the service create a property on YUI and have the test
    //      look for that after a time?)
    // missing success handler (logs a warning)
    // JSONPRequest + send
    // JSONPRequest + send with config overrides (not yet implemented)
}));

suite.add(new Y.Test.Case({
    name : "allowCache",

    setUp   : setup,
    tearDown: teardown,

    "allowCache should preserve the same callback": function () {
        var test = this,
            callback = [],
            jsonp;

        jsonp = new Y.JSONPRequest('echo/jsonp?&callback={callback}', {
            allowCache: true,
            on: {
                success: function (data) {
                    callback.push(data.callback);
                }
            }
        });

        jsonp.send().send();

        Y.Assert.areSame(2, callback.length);
        Y.Assert.isString(callback[0]);
        Y.Assert.areSame(callback[0], callback[1]);
    },

    "allowCache should not clear proxy if another send() is pending response": function () {
        var test = this,
            callbacks = [],
            jsonp;

        // Make the Y.Get.js shim execute asynchronously
        test._asyncGet = true;

        jsonp = new Y.JSONPRequest('echo/jsonp?&callback={callback}', {
            allowCache: true,
            on: {
                success: function (data) {
                    callbacks.push(data.callback);

                    if (callbacks.length > 2) {
                        test.resume(function () {
                            Y.Assert.areSame(callbacks[0], callbacks[1]);
                            Y.Assert.areSame(callbacks[1], callbacks[2]);
                            Y.Assert.isUndefined(YUI.Env.JSONP[callbacks[0]]);
                        });
                    } else if (!YUI.Env.JSONP[data.callback]) {
                        test.resume(function () {
                            Y.Assert.fail("proxy cleared prematurely");
                        });
                    }

                }
            }
        });

        jsonp.send().send().send();

        this.wait();
    }

}));

suite.add(new Y.Test.Case({
    name : "timeout",

    setUp   : setup,
    tearDown: teardown,

    "timeout should not flush the global proxy": function () {
        var timeoutCalled = false,
            jsonp;

        jsonp = new Y.JSONPRequest('echo/jsonp?&wait=2&callback={callback}', {
            timeout: 1000,
            on: {
                success: function (data) {
                    Y.Assert.fail("Success callback executed after timeout");
                },
                timeout: function () {
                    timeoutCalled = true;
                }
            }
        });

        jsonp.send();

        Y.Assert.isTrue(timeoutCalled);
        Y.Assert.isFunction(YUI.Env.JSONP[this._proxyName]);
    },

    "timeout should not flush the global proxy across multiple send calls": function () {
        var test = this,
            callbacks = [],
            timeoutCalled = false,
            jsonp;

        test._remainingTimeouts = 1;

        jsonp = new Y.JSONPRequest('echo/jsonp?wait=2&callback={callback}', {
            allowCache: true,
            timeout: 1000,
            on: {
                success: function (data) {
                    callbacks.push(data.callback);
                },
                timeout: function () {
                    callbacks.push(test._proxyName);
                    timeoutCalled = true;
                }
            }
        });

        jsonp.send().send();

        Y.Assert.isTrue(timeoutCalled);
        Y.Assert.areSame(2, callbacks.length);
        Y.Assert.areSame(callbacks[0], callbacks[1]);
        Y.Assert.isFunction(YUI.Env.JSONP[callbacks[0]]);
    }
}));

suite.add(new Y.Test.Case({
    name : "Should not have TypeError when both `timeout` and `failure` handlers are set.",

    "Having timeout and failure handles should not cause a TypeError": function () {
        var error = false,
            windowOnError = window.onerror,
            jsonp;

        window.onerror = function(e) {
            error = e;
        };

        jsonp = new Y.JSONPRequest('echo/jsonp?wait=2&callback={callback}', {
            timeout: 1,
            on: {
                success: function (data) {
                    //success logic
                },
                timeout: function () {
                    //timeout logic
                },
                failure: function() {
                    //failure logic
                }
            }
        });

        jsonp.send();

        this.wait(function() {
           window.onerror = windowOnError;
           if(error) {
               Y.Assert.fail(error);
           } else {
               Y.Assert.isTrue(true);
           }
        }, 3000);
    }
}));

Y.Test.Runner.add(suite);

}, '@VERSION@' ,{requires:['jsonp', 'test'] });


text:
void
roctracer_activity_translate
(
 gpu_activity_t *entry,
 roctracer_record_t *record
);

#endif


text:
jQuery.fn.definePlugin('Slider', function ($) {
	'use strict';

	var names = {
		sliderClass: 'uilib-slider',
		pinClass: 'uilib-slider-pin',
		disabledClass: 'disabled',
		textClass:'uilib-text'
	};

	return {
		init: function(){
			this.markup();
			this.bindEvents();
			this.options.create.call(this);
			this.setValue(this.options.value);
		},
		getDefaults: function(){
			return {
				minValue: 0,
				maxValue: 100,
				value: 0,
				width: 80,
				preLabel: '',
				postLabel: '',
				className: 'default-uilib-slider-ui',
				toolTip: false,
				supportClick: true,
				slide: function () {},
				create: function () {}
			};
		},
		markup: function () {
			var leftOffset = this.$el.css('left');
			var style = {
				width : this.options.width
			};

			if(!this.$el.hasClass(names.sliderClass)){
				this.$el.addClass(names.sliderClass);
			}

			if(this.options.preLabel){
				this.$el.prepend('' + this.options.preLabel + '');
				style.left = 14;
			}

			this.$pin = $('
');
			this.$el.append(this.$pin);

			if(this.options.postLabel){
				this.$el.append('' + this.options.postLabel + '');
			}

			this.$el.addClass(names.sliderClass).css(style).addClass(this.options.className);

			this.$pin.addClass(names.pinClass);
			this.$pin.width(19);

			if(this.options.toolTip){
				this.$toolTip = $(_toolTipHtml());
				this.$pin.append(this.$toolTip.hide());
			}
		},
		getXFromEvent: function(event){
			var x = event.offsetX !== undefined
					? event.offsetX
					: event.clientX - event.target.getBoundingClientRect().left;
			return x / this.$el.width();
		},
		bindEvents: function () {
			var $body = $(window);
			var slider = this;
			if (slider.options.supportClick){
				this.$el.on('click', function(evt){
					if(evt.target === slider.$el[0]){
						var x = slider.getXFromEvent(evt);
						slider.setValue(slider.transform(x));
						slider.triggerChangeEvent(slider.getValue());
					}
				});
			}
			this.$pin.on('mousedown', function (evt) {
                if(slider.$toolTip && !slider.$toolTip.is(":visible")){
                    slider.$toolTip.show();
                }
				slider.currentPos = slider.$pin.position().left;
				slider.startDragPos = evt.pageX;
				slider.disableTextSelection(evt);
				function mousemove_handler(evt) {
					slider.setPosition(evt);
				}
				function mouseup_handler(evt) {
                    if(slider.$toolTip){
                        slider.$toolTip.hide();
                    }
					slider.enableTextSelection();
					$body.off('mousemove', mousemove_handler);
					$body.off('mouseup', mouseup_handler);
					slider.triggerChangeEvent(slider.getValue());
				}
				$body.on('mousemove', mousemove_handler);
				$body.on('mouseup', mouseup_handler);
			});
		},
		getValue: function () {
			return this.transform(this.options.value);
		},
		setValue: function (valueInRange) {
			var val;
			this.options.value = this.valueInRangeToInnerRange(valueInRange);
			if (this.options.value !== this.last_value) {
				this.last_value = this.options.value;
				val = this.getValue();
				this.$el.trigger('slide', val);
				if(this.options.toolTip){
					this.$toolTip.find('.'+names.textClass).text(Math.round(val));
				}
				this.options.slide.call(this, val);
			}
			return this.update();
		},
		transform: function (valueInRange) {
			return this.options.minValue + valueInRange * (this.options.maxValue - this.options.minValue);
		},
		valueInRangeToInnerRange: function (value) {
			value = value < this.options.minValue ? this.options.minValue : value;
			value = value > this.options.maxValue ? this.options.maxValue : value;
			return (value - this.options.minValue) / (this.options.maxValue - this.options.minValue);
		},
		disableTextSelection: function (evt) {
			document.body.focus();
			//prevent text selection in IE
			document.onselectstart = function () { return false; };
			//evt.target.ondragstart = function() { return false; };
		},
		enableTextSelection: function () {
			document.onselectstart = null;
		},
		setPosition: function (evt) {
			if (this.isDisabled()) { return; }
			var x = evt.pageX - this.startDragPos;
			var pos = this.currentPos + x;
			var width = this.$el.width() - this.$pin.width();
			if (pos < 0) { pos = 0; }
			if (pos > width) { pos = width; }
			this.options.value = this.transform(pos / width);
			this.setValue(this.options.value);
			this.startDragPos = evt.pageX;
			this.currentPos = pos;
		},
		update: function () {
			this.$pin.css({
				left : this.options.value * (this.$el.width() - this.$pin.width())
			});
			return this;
		},
		disable: function () {
			this.$el.addClass(names.disabledClass);
		},
		enable: function () {
			this.$el.removeClass(names.disabledClass);
		},
		isDisabled: function () {
			return this.$el.hasClass(names.disabledClass);
		}
	};

	function _toolTipHtml() {
        return '
' +
            '

' +
            '

' +
            '
';
    }

});


text:
<!DOCTYPE html>

    <title>UC Davis Library Pattern Lab</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width" />

    <link rel="stylesheet" href="../../css/style.css?1474914948216" media="all" />
    <link rel="stylesheet" href="../../css/pattern-scaffolding.css?1474914948216" media="all" />

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

<link rel="stylesheet" href="../../styleguide/css/styleguide.min.css?1474914948216" media="all">
<link rel="stylesheet" href="../../styleguide/css/prism-typeahead.min.css?1474914948216" media="all" />

Primary font: "proxima-nova", "Lucida Grande", "Lucida Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

Primary font italic: "proxima-nova", "Lucida Grande", "Lucida Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

Primary font bold: "proxima-nova", "Lucida Grande", "Lucida Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

Secondary font: Georgia, "Times New Roman", Times, serif;

Secondary font italic: Georgia, "Times New Roman", Times, serif;

Secondary font bold: Georgia, "Times New Roman", Times, serif;

Monospace font: Georgia, "Times New Roman", Times, serif;


text:
require(['core'], function (CherryForms) {
    "use strict";
    $('.chf-form').each(function(n, el) {
        (new CherryForms.Form({el: el})).render();
    });
});


text:
<!doctype html>

    <meta charset="utf-8">
    <title>DomainModel.stream()</title>
    <meta name="description" content="DomainModel.stream()">
    <meta name="author" content="Julien BAUDRY">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="bower_components/reveal.js/css/reveal.css">
    <link rel="stylesheet" href="bower_components/reveal.js/lib/css/zenburn.css">
    <link rel="stylesheet" href="css/lesfurets-theme.css" id="theme">

DomainModel.stream()

            https://github.com/lesfurets/model-map

Welcome to the Furets !

@gdigugli – Gilles Di Guglielmo

Designer of sweet cooked software since 1999

Software Architect at LesFurets.com

@dubreuia – Alexandre Dubreuil

Full Stack Developer since 2010

Software Architect at LesFurets.com

Sept 2007 - Broker Desktop Application

Sept 2008 - Broker Website Widget

Jun 2009 - Broker Directory : Assuremieux.com

Jan 2010 - Insurance Aggregator

Apr 2012 - New brand : LesFurets.com

Sep 2012 - First TV advertising

Sep 2015 - Toys Launch

Sep 2016 - Market Leader

1 website, 5 Insurance Products : Car, Health, Home, Bike, Loan

1 codebase, 450k lines of code, 60k unit tests, 150 selenium tests

20 Developers, 2 DevOps, 4 Architects

20 production servers including Load balancers, Frontend, Backend, Databases, BI

1 release per day

9 years of code history

2.5M quotes/year, 31% of market share

Domain Model, what do you mean ?

Moving the architecture

What you have ...

What you want ...

Que faire ?

Architect at work ...

Keying everything !

A bit of livecoding

Live code 1 : Introduction to key value API

Live code 2 : Mixing with java.util.Map

Live code 3 : Tag filtering

Live code 4 : Generate CQL

Live code 5 : Diff two models

Usages are unlimited

Where we use it at LesFurets.com

Simple UI binding by replacing JSON model by a Dictionary (80% less code)

Use JSON Dictionary for client/server RPC

Batch and ETL with an email provider (90% less code)

Persistence in cassandra (from scratch with 200 lines of code for a whole model)

Injecting user data in selenium (40% less code)

Mocking our domain model in thousand of unit tests

... everything in iterative fashion during the past 2 years.

Future and ideas

Push as OSS our Cassandra serialisation code

Push some Spark samples

JEP 276: Dynamic Linking of Language-Defined Object Models

We need a new name ?

Model-Map is cool, keep it

YAMF: Yet Another Mapping Framework

OWKF: Obi Wan Kenobi Framework

Submit your ideas

Model-Map available on Github

http://github.com/lesfurets/model-map

Framework and examples

Apache Licence

Try it and contribute !

Thank You!


text:
% clear

path = ['D:\Pedro\Google Drive Mestrado\Cadeiras\'...
    'Processamento de imagens\projeto processamento de imagens'...
    '\Dados\testDataset\background01\datasheet001.avi'];

meta.color = 'gray';
meta.scale = 0.3;
meta.resize = 'bicubic';
meta.lineLength = 0;
meta.thickness = 0;
meta.angleThreshold = 10;

frame = 0;

options.doPlot = 1;
options.makeNewVideo = 0;
options.plotWaitbar = 1;
options.save = 0;
options.waitButtonPress = 1;

[result, groundTruth, distance] = getDocumentPosition(path,meta,frame,options);


text:
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.devtools.build.lib.rules.test;

import com.google.common.collect.ImmutableMap;
import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
import com.google.devtools.build.lib.packages.NativeClassObjectConstructor;
import com.google.devtools.build.lib.packages.SkylarkClassObject;
import java.util.Map;

/**
 * This provider can be implemented by rules which need special environments to run in (especially
 * tests).
 */
@Immutable
public final class ExecutionInfoProvider extends SkylarkClassObject {

  /** Skylark constructor and identifier for ExecutionInfoProvider. */
  public static final NativeClassObjectConstructor<ExecutionInfoProvider> SKYLARK_CONSTRUCTOR =
      new NativeClassObjectConstructor<ExecutionInfoProvider>(
          ExecutionInfoProvider.class, "ExecutionInfo") {};

  private final ImmutableMap<String, String> executionInfo;

  public ExecutionInfoProvider(Map<String, String> requirements) {
    super(SKYLARK_CONSTRUCTOR, ImmutableMap.<String, Object>of("requirements", requirements));
    this.executionInfo = ImmutableMap.copyOf(requirements);
  }

  /**
   * Returns a map to indicate special execution requirements, such as hardware
   * platforms, etc. Rule tags, such as "requires-XXX", may also be added
   * as keys to the map.
   */
  public ImmutableMap<String, String> getExecutionInfo() {
    return executionInfo;
  }
}


text:
<?php

namespace GraphAware\Neo4jBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle,
    Symfony\Component\DependencyInjection\ContainerBuilder;
use Neoxygen\NeoClient\DependencyInjection\Compiler\ConnectionRegistryCompilerPass,
    Neoxygen\NeoClient\DependencyInjection\Compiler\NeoClientExtensionsCompilerPass;
use GraphAware\Neo4jBundle\DependencyInjection\Compiler\EventSubscribersCompilerPass;

class GraphAwareNeo4jBundle extends Bundle
{
    public function build(ContainerBuilder $container)
    {
        parent::build($container);
        $container->addCompilerPass(new ConnectionRegistryCompilerPass());
        $container->addCompilerPass(new NeoClientExtensionsCompilerPass());
        $container->addCompilerPass(new EventSubscribersCompilerPass());
    }
}