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

<title>G-Index</title>
<meta name="date" content="2016-09-29">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes

A B C D E F G H I J K L M N O P R S T U V W

G

generateTaskId() - Method in class io.parallec.core.ParallelTask

Gen job id.

generateUpdateExecuteTask(ParallelTask) - Method in class io.parallec.core.task.ParallelTaskManager

key function to execute a parallel task.

genErrorResponse(Exception) - Method in class io.parallec.core.commander.workflow.ssh.SshProvider

Gen error response.

genNodeDataMap(ParallelTask) - Method in class io.parallec.core.commander.workflow.InternalDataProvider

Generate node data map.

getAcceptedIssuers() - Method in class io.parallec.core.resources.AsyncHttpClientFactoryEmbed.CustomTrustManager

Gets the accepted issuers.

getActorMaxOperationTimeoutSec() - Method in class io.parallec.core.bean.TaskRequest

Gets the actor max operation timeout sec.

getActorMaxOperationTimeoutSec() - Method in class io.parallec.core.config.ParallelTaskConfig

getAggregatedResultHuman(Map<String, LinkedHashSet<String>>) - Static method in class io.parallec.core.util.PcStringUtils

Get the aggregated result human readable string for easy display.

getAggregatedResultHumanStr() - Method in class io.parallec.core.ParallelTask

Gets the aggregated result human str.

getAggregateResultCountSummary() - Method in class io.parallec.core.ParallelTask

Gets the aggregate result count summary.

getAggregateResultFullSummary() - Method in class io.parallec.core.ParallelTask

Aggregate results to see the status code distribution with target hosts.

getAggregateResultMap() - Method in class io.parallec.core.ParallelTask

Gets the aggregate result map.

getAll - Variable in class io.parallec.core.bean.ResponseHeaderMeta

If true, will get all the entries in the response headers.

getAsstManagerRetryIntervalMillis() - Method in class io.parallec.core.actor.message.RequestToBatchSenderAsstManager

Gets the asst manager retry interval millis.

getAsstManagerRetryIntervalMillis() - Method in class io.parallec.core.config.ParallelTaskConfig

getAsyncHttpClient() - Method in class io.parallec.core.bean.HttpMeta

Gets the async http client.

getAsyncHttpClient() - Method in class io.parallec.core.ParallelTask

Gets the async http client.

getAsyncHttpClient() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the async http client.

getChannelFactory() - Method in class io.parallec.core.bean.tcp.TcpMeta

getChannelFactory() - Method in class io.parallec.core.bean.udp.UdpMeta

getChannelFactory() - Method in class io.parallec.core.resources.TcpUdpSshPingResourceStore

getClientByType(HttpClientType) - Method in class io.parallec.core.resources.HttpClientStore

Gets the client by type.

getCommand() - Method in class io.parallec.core.bean.tcp.TcpMeta

getCommand() - Method in class io.parallec.core.bean.udp.UdpMeta

getCommandLine() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the command line.

getCommandMeta() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the command meta.

getConcurrency() - Method in class io.parallec.core.ParallelTask

Gets the concurrency.

getConcurrency() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the concurrency.

getConfig() - Method in class io.parallec.core.ParallelTask

Gets the config.

getConfig() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the config.

getContentFromPath(String, HostsSourceType) - Method in class io.parallec.core.taskbuilder.targethosts.TargetHostsBuilder

note that for read from file, this will just load all to memory.

getCount() - Method in class io.parallec.core.bean.SetAndCount

Gets the count.

getCurrentDefaultClient() - Method in class io.parallec.core.resources.HttpClientStore

Gets the current default client.

getCurrentProgress() - Method in class io.parallec.core.actor.poll.PollerData

Gets the current progress.

getCustomClientFast() - Method in class io.parallec.core.resources.HttpClientStore

Gets the custom client fast.

getCustomClientSlow() - Method in class io.parallec.core.resources.HttpClientStore

Gets the custom client slow.

getDatagramChannelFactory() - Method in class io.parallec.core.resources.TcpUdpSshPingResourceStore

getDateFromConciseStr(String) - Static method in class io.parallec.core.util.PcDateUtils

20130512 Converts the sdsm string generated above to Date format.

getDateTimeStr(Date) - Static method in class io.parallec.core.util.PcDateUtils

Gets the date time str.

getDateTimeStrConcise(Date) - Static method in class io.parallec.core.util.PcDateUtils

Gets the date time str concise.

getDateTimeStrConciseNoZone(Date) - Static method in class io.parallec.core.util.PcDateUtils

20141027: same as getDateTimeStrConcise but no timezone.

getDateTimeStrStandard(Date) - Static method in class io.parallec.core.util.PcDateUtils

Gets the date time str standard.

getDetails() - Method in class io.parallec.core.task.TaskErrorMeta

Gets the details.

getDurationSec() - Method in class io.parallec.core.ParallelTask

Gets the duration sec.

getDurationSec() - Method in class io.parallec.core.task.ParallelTaskBean

getEmbedClientFast() - Method in class io.parallec.core.resources.HttpClientStore

default fast is the default.

getEmbedClientSlow() - Method in class io.parallec.core.resources.HttpClientStore

Gets the embed client slow.

getEntityBody() - Method in class io.parallec.core.bean.HttpMeta

Gets the request content template.

getError() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the error.

getErrorMessage() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the error message.

getErrorMessage() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the error message.

getErrorTime() - Method in class io.parallec.core.task.TaskErrorMeta

Gets the error time.

getExecuteStartTime() - Method in class io.parallec.core.ParallelTask

Gets the execute start time.

getExecuteStartTime() - Method in class io.parallec.core.task.ParallelTaskBean

getExecutionEndTime() - Method in class io.parallec.core.ParallelTask

Gets the execution end time.

getExecutionEndTime() - Method in class io.parallec.core.task.ParallelTaskBean

getFailureRegex() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the failure regex.

getFastClient() - Method in class io.parallec.core.resources.AsyncHttpClientFactoryEmbed

Gets the fast client.

getFQDNValueListCMS(JSONObject, String) - Static method in class io.parallec.core.taskbuilder.targethosts.TargetHostsBuilderHelperCms

20141022.

getHandler() - Method in class io.parallec.core.bean.TaskRequest

Gets the handler.

getHandler() - Method in class io.parallec.core.ParallelTask

Gets the handler.

getHandler() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the handler.

getHandlerExecutionLocation() - Method in class io.parallec.core.config.ParallelTaskConfig

getHeaderMap() - Method in class io.parallec.core.ParallecHeader

Gets the header map.

getHeaderMetadata() - Method in class io.parallec.core.bean.HttpMeta

Gets the header metadata.

getHeaderStr() - Method in class io.parallec.core.ParallecHeader

Gets the header str.

getHealthMemory() - Method in class io.parallec.core.monitor.MonitorProvider

Gets the health memory.

getHost() - Method in class io.parallec.core.bean.TaskRequest

Gets the host.

getHost() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the host.

getHostName() - Method in class io.parallec.core.actor.message.NodeReqResponse

Gets the host name.

getHosts() - Method in class io.parallec.core.bean.TargetHostMeta

Gets the node list.

getHostUniform() - Method in class io.parallec.core.bean.TaskRequest

Gets the host uniform.

getHttpClientFactoryEmbed() - Method in class io.parallec.core.resources.HttpClientStore

Gets the http client factory embed.

getHttpClientStore() - Method in class io.parallec.core.ParallelClient

Gets the http client store.

getHttpClientTypeCurrentDefault() - Method in class io.parallec.core.resources.HttpClientStore

Gets the http client type current default.

getHttpHeaderMap() - Method in class io.parallec.core.bean.TaskRequest

Gets the http header map.

getHttpMeta() - Method in class io.parallec.core.ParallelTask

Gets the command meta.

getHttpMeta() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the HttpMeta.

getHttpMethod() - Method in class io.parallec.core.bean.HttpMeta

Gets the http method.

getHttpMethod() - Method in class io.parallec.core.bean.TaskRequest

Gets the http method.

getHttpPollerProcessor() - Method in class io.parallec.core.bean.HttpMeta

Gets the http poller processor.

getHttpPollerProcessor() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the http poller processor.

getInprogressTaskMap() - Method in class io.parallec.core.task.ParallelTaskManager

Gets the inprogress task map.

getInstance() - Static method in class io.parallec.core.commander.workflow.InternalDataProvider

Gets the single instance of InternalDataProvider.

getInstance() - Static method in class io.parallec.core.commander.workflow.ping.PingProvider

getInstance() - Static method in class io.parallec.core.commander.workflow.VarReplacementProvider

Gets the single instance of VarReplacementProvider.

getInstance() - Static method in class io.parallec.core.monitor.MonitorProvider

Gets the single instance of MonitorProvider.

getInstance() - Static method in class io.parallec.core.resources.HttpClientStore

getInstance() - Static method in class io.parallec.core.resources.TcpUdpSshPingResourceStore

getInstance() - Static method in class io.parallec.core.task.ParallelTaskManager

Gets the single instance of ParallelTaskManager.

getInstance() - Static method in class io.parallec.core.util.DaemonThreadFactory

Gets the single instance of DaemonThreadFactory.

getJobId() - Method in class io.parallec.core.actor.poll.PollerData

Gets the job id.

getJobIdPlaceHolder() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the job id place holder.

getJobIdRegex() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the job id regex.

getJVMMemoryUsage() - Method in class io.parallec.core.monitor.MonitorProvider

Gets the JVM memory usage.

getKeys() - Method in class io.parallec.core.bean.ResponseHeaderMeta

Gets the keys.

getListFromLineByLineText(String, HostsSourceType) - Static method in class io.parallec.core.util.PcFileNetworkIoUtils

getLiveThreadCount() - Method in class io.parallec.core.monitor.MonitorProvider

Gets the live thread count.

getLogger() - Static method in class io.parallec.core.actor.HttpWorker

Gets the logger.

getLogger() - Static method in class io.parallec.core.actor.PingWorker

Gets the logger.

getLogger() - Static method in class io.parallec.core.actor.SshWorker

Gets the logger.

getLogger() - Static method in class io.parallec.core.actor.TcpWorker

Gets the logger.

getLogger() - Static method in class io.parallec.core.actor.UdpWorker

Gets the logger.

getMap() - Method in class io.parallec.core.bean.StrStrMap

Gets the map.

getMap() - Method in class io.parallec.core.resources.HttpClientStore

Gets the map.

getMaxConcurrency() - Method in class io.parallec.core.actor.message.RequestToBatchSenderAsstManager

Gets the max concurrency.

getMaxPollError() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the max poll error.

getMetadata() - Method in class io.parallec.core.actor.poll.PollerData

Gets the metadata.

getMode() - Method in class io.parallec.core.bean.ping.PingMeta

getMode() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the mode of either sync or async.

getNodeListCompleteURLForCMS(String, String) - Method in class io.parallec.core.taskbuilder.targethosts.TargetHostsBuilderHelperCms

TODO : will be removed .

getNodeListFromStringLineSeperateOrSpaceSeperate(String, boolean) - Static method in class io.parallec.core.util.PcTargetHostsUtils

Gets the node list from string line seperate or space seperate.

getNowDateTimeStr() - Static method in class io.parallec.core.util.PcDateUtils

Gets the now date time str.

getNowDateTimeStrConcise() - Static method in class io.parallec.core.util.PcDateUtils

Gets the now date time str concise.

getNowDateTimeStrConciseNoZone() - Static method in class io.parallec.core.util.PcDateUtils

Gets the now date time str concise no zone.

getNowDateTimeStrStandard() - Static method in class io.parallec.core.util.PcDateUtils

Gets the now date time str standard.

getNumRetries() - Method in class io.parallec.core.bean.ping.PingMeta

getOperationTimeMillis() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the operation time millis.

getParallelTaskResult() - Method in class io.parallec.core.ParallelTask

Gets the parallel task result.

getParallelTaskResult() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the parallel task result.

getPassphrase() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the passphrase.

getPassword() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the password.

getPingMeta() - Method in class io.parallec.core.bean.TaskRequest

Gets the ping meta.

getPingMeta() - Method in class io.parallec.core.ParallelTask

Gets the ping meta.

getPingTimeoutMillis() - Method in class io.parallec.core.bean.ping.PingMeta

getPipeline() - Method in class io.parallec.core.actor.TcpWorker.MyPipelineFactory

getPipeline() - Method in class io.parallec.core.actor.UdpWorker.UdpPipelineFactory

getPollerRequestTemplate() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the poller request template.

getPollerRequestUrl(String) - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Important.

getPollerType() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the poller type.

getPollingHistory() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the polling history.

getPollingHistoryMap() - Method in class io.parallec.core.actor.poll.PollerData

Gets the polling history map.

getPollingHistoryMap() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the polling history map.

getPollIntervalMillis() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the poll interval millis.

getPort() - Method in class io.parallec.core.bean.TaskRequest

Gets the port.

getPostData() - Method in class io.parallec.core.bean.TaskRequest

Gets the post data.

getPrivKeyAbsPath() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the priv key abs path.

getPrivKeyRelativePath() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the priv key relative path.

getProgress() - Method in class io.parallec.core.ParallelTask

Gets the progress.

getProgressFromResponse(ResponseOnSingeRequest) - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the progress from response.

getProgressRegex() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the progress regex.

getProgressStuckTimeoutSeconds() - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the progress stuck timeout seconds.

getProtocol() - Method in class io.parallec.core.bean.TaskRequest

Gets the protocol.

getReceiveTime() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the receive time.

getReceiveTime() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the receive time.

getReceiveTimeInManager() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the receive time in manager.

getRegex() - Method in class io.parallec.core.FilterRegex

Gets the regex.

getRemainingCapacity() - Method in class io.parallec.core.task.ParallelTaskManager

Gets the remaining capacity.

getReplacementVarMap() - Method in class io.parallec.core.ParallelTask

Gets the replacement var map.

getReplacementVarMap() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the replacement var map.

getReplacementVarMap() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the replacement var map.

getReplacementVarMapNodeSpecific() - Method in class io.parallec.core.ParallelTask

Gets the replacement var map node specific.

getReplacementVarMapNodeSpecific() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the replacement var map node specific.

getReplacementVarMapNodeSpecific() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the replacement var map node specific.

getRequest() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the request.

getRequestContent() - Method in class io.parallec.core.bean.TaskRequest

Gets the request content.

getRequestNum() - Method in class io.parallec.core.ParallelTask

Gets the request num.

getRequestNum() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the request num.

getRequestNumActual() - Method in class io.parallec.core.ParallelTask

Gets the request num actual.

getRequestNumActual() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the request num actual.

getRequestParameters() - Method in class io.parallec.core.actor.message.NodeReqResponse

Gets the request parameters.

getRequestPort() - Method in class io.parallec.core.bean.HttpMeta

Gets the request port.

getRequestProtocol() - Method in class io.parallec.core.ParallelTask

Gets the request protocol.

getRequestProtocol() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the request protocol.

getRequestReplacementType() - Method in class io.parallec.core.ParallelTask

Gets the request replacement type.

getRequestReplacementType() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the request replacement type.

getRequestReplacementType() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the request replacement type.

getRequestUrlPostfix() - Method in class io.parallec.core.bean.HttpMeta

Gets the request url postfix.

getResourcePath() - Method in class io.parallec.core.bean.TaskRequest

Gets the resource path.

getResponseBody() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the response body.

getResponseContent() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the response content.

getResponseContext() - Method in class io.parallec.core.bean.TaskRequest

Gets the response context.

getResponseContext() - Method in class io.parallec.core.ParallelTask

Gets the response context.

getResponseContext() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the response context.

getResponseContext() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the response context.

getResponseCount() - Method in class io.parallec.core.actor.message.ResponseCountToBatchSenderAsstManager

Gets the response count.

getResponseCount() - Method in class io.parallec.core.actor.message.ResponseFromManager

getResponsedNum() - Method in class io.parallec.core.ParallelTask

Gets the responsed num.

getResponsedNum() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the responsed num.

getResponseFuture() - Method in class io.parallec.core.actor.PingWorker

Gets the response future.

getResponseFuture() - Method in class io.parallec.core.actor.SshWorker

Gets the response future.

getResponseHeaderMeta() - Method in class io.parallec.core.bean.HttpMeta

Gets the response header meta.

getResponseHeaderMeta() - Method in class io.parallec.core.bean.TaskRequest

Gets the response header meta.

getResponseHeaders() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the response headers.

getResponseHeaders() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the response headers.

getRunningJobCount() - Method in class io.parallec.core.ParallelClient

Gets the running job count.

getSender() - Method in class io.parallec.core.actor.message.RequestToBatchSenderAsstManager

Gets the sender.

getSet() - Method in class io.parallec.core.bean.SetAndCount

Gets the sets the.

getSingleTaskResponse() - Method in class io.parallec.core.actor.message.NodeReqResponse

Gets the single task response.

getSlowClient() - Method in class io.parallec.core.resources.AsyncHttpClientFactoryEmbed

Gets the slow client.

getSshConnectionTimeoutMillis() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the ssh connection timeout millis.

getSshLoginType() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the ssh login type.

getSshMeta() - Method in class io.parallec.core.bean.TaskRequest

Gets the ssh meta.

getSshMeta() - Method in class io.parallec.core.commander.workflow.ssh.SshProvider

Gets the ssh meta.

getSshMeta() - Method in class io.parallec.core.ParallelTask

Gets the ssh meta.

getSshMeta() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the ssh meta.

getSshPort() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the ssh port.

getStackTrace() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the stack trace.

getStackTrace() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the stack trace.

getState() - Method in class io.parallec.core.ParallelTask

Gets the state.

getState() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the state.

getStatusCode() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the status code.

getStatusCode() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the status code.

getStatusCodeInt() - Method in class io.parallec.core.actor.message.ResponseOnSingeRequest

Gets the status code int.

getStatusCodeInt() - Method in class io.parallec.core.ResponseOnSingleTask

Gets the status code int.

getStringFromDouble(double) - Static method in class io.parallec.core.util.PcNumberUtils

Gets the string from double.

getSubmitTime() - Method in class io.parallec.core.ParallelTask

Gets the submit time.

getSubmitTime() - Method in class io.parallec.core.task.ParallelTaskBean

getSummary() - Method in class io.parallec.core.monitor.MonitorProvider.PerformUsage

Gets the summary.

getTargetHost() - Method in class io.parallec.core.commander.workflow.ssh.SshProvider

Gets the target host.

getTargetHostBuilder() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the TargetHostsBuilder.

getTargetHostId() - Method in class io.parallec.core.bean.TargetHostMeta

getTargetHostMeta() - Method in class io.parallec.core.ParallelTask

Gets the target host meta.

getTargetHostMeta() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the target host meta.

getTargetHostMeta() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the target host meta.

getTargetHosts() - Method in class io.parallec.core.actor.message.CancelTaskOnHostRequest

getTargetHosts() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the target hosts.

getTaskErrorMetas() - Method in class io.parallec.core.ParallelTask

Gets the task error metas.

getTaskErrorMetas() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the task error metas.

getTaskFromInProgressMap(String) - Method in class io.parallec.core.task.ParallelTaskManager

Gets the task from in progress map.

getTaskId() - Method in class io.parallec.core.actor.message.RequestToBatchSenderAsstManager

Gets the task id.

getTaskId() - Method in class io.parallec.core.ParallelTask

Gets the task id.

getTaskId() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the task id.

getTcpConnectTimeoutMillis() - Method in class io.parallec.core.bean.tcp.TcpMeta

getTcpIdleTimeoutSec() - Method in class io.parallec.core.bean.tcp.TcpMeta

getTcpMeta() - Method in class io.parallec.core.bean.TaskRequest

Gets the tcp meta.

getTcpMeta() - Method in class io.parallec.core.ParallelTask

Gets the tcp meta.

getTcpMeta() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the tcp meta.

getTcpMeta() - Method in class io.parallec.core.task.ParallelTaskBean

getTcpPort() - Method in class io.parallec.core.bean.tcp.TcpMeta

getThreadDump() - Method in class io.parallec.core.monitor.MonitorProvider

Gets the thread dump.

getThreadPoolForSshPing() - Method in class io.parallec.core.resources.TcpUdpSshPingResourceStore

getThreadUsage() - Method in class io.parallec.core.monitor.MonitorProvider

Gets the thread usage.

getThrowable() - Method in class io.parallec.core.task.TaskErrorMeta

Gets the throwable.

getTimeoutAskManagerSec() - Method in class io.parallec.core.config.ParallelTaskConfig

getTimeoutduration() - Static method in class io.parallec.core.actor.ActorConfig

Gets the timeoutduration.

getTimeoutInManagerSec() - Method in class io.parallec.core.config.ParallelTaskConfig

getTimer() - Method in class io.parallec.core.resources.TcpUdpSshPingResourceStore

getTimeStamp() - Method in class io.parallec.core.task.ParallelTaskBean

Gets the time stamp.

getTotalUsedCapacity() - Method in class io.parallec.core.task.ParallelTaskManager

get current total used capacity.

getType() - Method in exception io.parallec.core.exception.ExecutionManagerExecutionException

Gets the type.

getType() - Method in class io.parallec.core.task.TaskErrorMeta

Gets the type.

getUdpIdleTimeoutSec() - Method in class io.parallec.core.bean.udp.UdpMeta

getUdpMeta() - Method in class io.parallec.core.bean.TaskRequest

Gets the udp meta.

getUdpMeta() - Method in class io.parallec.core.ParallelTask

getUdpMeta() - Method in class io.parallec.core.ParallelTaskBuilder

Gets the udp meta.

getUdpPort() - Method in class io.parallec.core.bean.udp.UdpMeta

getUserName() - Method in class io.parallec.core.bean.ssh.SshMeta

Gets the user name.

getUuidFromResponse(ResponseOnSingeRequest) - Method in class io.parallec.core.actor.poll.HttpPollerProcessor

Gets the uuid from response.

getWaitQ() - Method in class io.parallec.core.task.ParallelTaskManager

Gets the wait q.

getWorkers() - Method in class io.parallec.core.actor.message.RequestToBatchSenderAsstManager

Gets the workers.

A B C D E F G H I J K L M N O P R S T U V W

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes


text:
<?php

namespace Symfony\Component\HttpKernel\Tests\Debug;

use Symfony\Component\HttpKernel\Debug\ErrorHandler;
use Symfony\Component\HttpKernel\Debug\ErrorException;

/**
 * ErrorHandlerTest
 *
 * @author Robert Schönthal <seroscho@googlemail.com>
 */
class ErrorHandlerTest extends \PHPUnit_Framework_TestCase
{

    public function testConstruct()
    {
        $handler = ErrorHandler::register(3);

        $level = new \ReflectionProperty($handler, 'level');
        $level->setAccessible(true);

        $this->assertEquals(3, $level->getValue($handler));

        restore_error_handler();
    }

    public function testHandle()
    {
        $handler = ErrorHandler::register(0);
        $this->assertFalse($handler->handle(0, 'foo', 'foo.php', 12, 'foo'));

        restore_error_handler();

        $handler = ErrorHandler::register(3);
        $this->assertFalse($handler->handle(4, 'foo', 'foo.php', 12, 'foo'));

        restore_error_handler();

        $handler = ErrorHandler::register(3);
        try {
            $handler->handle(1, 'foo', 'foo.php', 12, 'foo');
        } catch (\ErrorException $e) {
            $this->assertSame('1: foo in foo.php line 12', $e->getMessage());
            $this->assertSame(1, $e->getSeverity());
            $this->assertSame('foo.php', $e->getFile());
            $this->assertSame(12, $e->getLine());
        }

        restore_error_handler();
    }
}

redpajama_set_name: RedPajamaGithub


text:
require "tmpgem-rails/version"

module Tmpgem
  module Rails
	  class Engine < ::Rails::Engine
	  end
  end
end


text:
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr-w32-bld/build/content/base/public/nsIScriptLoaderObserver.idl
 */

#ifndef __gen_nsIScriptLoaderObserver_h__
#define __gen_nsIScriptLoaderObserver_h__

#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIScriptElement; /* forward declaration */

class nsIURI; /* forward declaration */

/* starting interface:    nsIScriptLoaderObserver */
#define NS_ISCRIPTLOADEROBSERVER_IID_STR "7b787204-76fb-4764-96f1-fb7a666db4f4"

#define NS_ISCRIPTLOADEROBSERVER_IID \
  {0x7b787204, 0x76fb, 0x4764, \
    { 0x96, 0xf1, 0xfb, 0x7a, 0x66, 0x6d, 0xb4, 0xf4 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptLoaderObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTLOADEROBSERVER_IID)

  /* void scriptAvailable (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline, in nsIURI aURI, in PRInt32 aLineNo); */
  NS_SCRIPTABLE NS_IMETHOD ScriptAvailable(nsresult aResult, nsIScriptElement *aElement, bool aIsInline, nsIURI *aURI, PRInt32 aLineNo) = 0;

  /* void scriptEvaluated (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline); */
  NS_SCRIPTABLE NS_IMETHOD ScriptEvaluated(nsresult aResult, nsIScriptElement *aElement, bool aIsInline) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptLoaderObserver, NS_ISCRIPTLOADEROBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCRIPTLOADEROBSERVER \
  NS_SCRIPTABLE NS_IMETHOD ScriptAvailable(nsresult aResult, nsIScriptElement *aElement, bool aIsInline, nsIURI *aURI, PRInt32 aLineNo); \
  NS_SCRIPTABLE NS_IMETHOD ScriptEvaluated(nsresult aResult, nsIScriptElement *aElement, bool aIsInline);

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCRIPTLOADEROBSERVER(_to) \
  NS_SCRIPTABLE NS_IMETHOD ScriptAvailable(nsresult aResult, nsIScriptElement *aElement, bool aIsInline, nsIURI *aURI, PRInt32 aLineNo) { return _to ScriptAvailable(aResult, aElement, aIsInline, aURI, aLineNo); } \
  NS_SCRIPTABLE NS_IMETHOD ScriptEvaluated(nsresult aResult, nsIScriptElement *aElement, bool aIsInline) { return _to ScriptEvaluated(aResult, aElement, aIsInline); }

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCRIPTLOADEROBSERVER(_to) \
  NS_SCRIPTABLE NS_IMETHOD ScriptAvailable(nsresult aResult, nsIScriptElement *aElement, bool aIsInline, nsIURI *aURI, PRInt32 aLineNo) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScriptAvailable(aResult, aElement, aIsInline, aURI, aLineNo); } \
  NS_SCRIPTABLE NS_IMETHOD ScriptEvaluated(nsresult aResult, nsIScriptElement *aElement, bool aIsInline) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScriptEvaluated(aResult, aElement, aIsInline); }

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsScriptLoaderObserver : public nsIScriptLoaderObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISCRIPTLOADEROBSERVER

  nsScriptLoaderObserver();

private:
  ~nsScriptLoaderObserver();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsScriptLoaderObserver, nsIScriptLoaderObserver)

nsScriptLoaderObserver::nsScriptLoaderObserver()
{
  /* member initializers and constructor code */
}

nsScriptLoaderObserver::~nsScriptLoaderObserver()
{
  /* destructor code */
}

/* void scriptAvailable (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline, in nsIURI aURI, in PRInt32 aLineNo); */
NS_IMETHODIMP nsScriptLoaderObserver::ScriptAvailable(nsresult aResult, nsIScriptElement *aElement, bool aIsInline, nsIURI *aURI, PRInt32 aLineNo)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void scriptEvaluated (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline); */
NS_IMETHODIMP nsScriptLoaderObserver::ScriptEvaluated(nsresult aResult, nsIScriptElement *aElement, bool aIsInline)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#endif /* __gen_nsIScriptLoaderObserver_h__ */


text:
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Activities** | [**[]TaskrouterV1Activity**](TaskrouterV1Activity.md) |  |[optional]
**Meta** | [**ListActivityResponseMeta**](ListActivityResponseMeta.md) |  |[optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


text:
//
//  LJButton.m
//  LJDemo
//
//  Created by 蔡万鸿 on 16/6/3.
//  Copyright © 2016年 黄花菜. All rights reserved.
//

#import "LJButton.h"

@implementation LJButton

/**
 *  调换图片和文字的位置
 */
-(void)layoutSubviews {
    [super layoutSubviews];

    //上左下右
    [self setTitleEdgeInsets:UIEdgeInsetsMake(0, -self.imageView.lj_width, 0, self.imageView.lj_width + 5)];
    [self setImageEdgeInsets:UIEdgeInsetsMake(0, self.titleLabel.bounds.size.width + 5, 0, -self.titleLabel.bounds.size.width)];

    self.titleLabel.textColor = [UIColor blackColor];
    self.titleLabel.font = [UIFont systemFontOfSize:13];

}

@end


text:
package com.google.security.zynamics.binnavi.Gui.Debug.BreakpointTable.Implementations;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

import com.google.common.base.Preconditions;
import com.google.common.collect.Sets;
import com.google.security.zynamics.binnavi.Gui.Debug.BreakpointTable.CBreakpointTableHelpers;
import com.google.security.zynamics.binnavi.Gui.GraphWindows.Implementations.CGraphDebugger;
import com.google.security.zynamics.binnavi.debug.debugger.BackEndDebuggerProvider;
import com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebugger;
import com.google.security.zynamics.binnavi.debug.models.breakpoints.Breakpoint;
import com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointAddress;
import com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointManager;
import com.google.security.zynamics.binnavi.debug.models.breakpoints.enums.BreakpointStatus;
import com.google.security.zynamics.binnavi.debug.models.breakpoints.enums.BreakpointType;
import com.google.security.zynamics.binnavi.disassembly.UnrelocatedAddress;
import com.google.security.zynamics.binnavi.disassembly.INaviFunction;
import com.google.security.zynamics.binnavi.disassembly.views.CViewHelpers;
import com.google.security.zynamics.binnavi.disassembly.views.INaviView;
import com.google.security.zynamics.zylib.general.Pair;
import com.google.security.zynamics.zylib.gui.CMessageBox;
import com.google.security.zynamics.zylib.types.lists.IFilledList;

/**
 * Contains methods for removing breakpoints.
 */
public final class CBreakpointRemoveFunctions {
  /**
   * You are not supposed to instantiate this class.
   */
  private CBreakpointRemoveFunctions() {
  }

  /**
   * Removes all breakpoints of a given breakpoint manager.
   *
   * @param manager The breakpoints manager whose breakpoints are removed.
   */
  private static void removeAll(final BreakpointManager manager) {
    final Set<BreakpointAddress> addresses = new HashSet<BreakpointAddress>();

    for (final Breakpoint breakpoint : manager.getBreakpoints(BreakpointType.REGULAR)) {
      addresses.add(breakpoint.getAddress());
    }
    CGraphDebugger.removeBreakpoints(addresses, manager);
  }

  /**
   * Removes all breakpoints of a given breakpoint manager that belong to a given view.
   *
   * @param manager The breakpoints manager whose breakpoints are removed.
   * @param view The view that decides what breakpoints are removed.
   */
  private static void removeAllView(final BreakpointManager manager, final INaviView view) {
    final Set<BreakpointAddress> addresses = new HashSet<BreakpointAddress>();

    for (int i = 0; i < manager.getNumberOfBreakpoints(BreakpointType.REGULAR); i++) {
      final BreakpointAddress address =
          manager.getBreakpoint(BreakpointType.REGULAR, i).getAddress();

      if (CViewHelpers.containsAddress(view, address.getAddress())) {
        addresses.add(address);
      }
    }

    CGraphDebugger.removeBreakpoints(addresses, manager);
  }

  /**
   * Deletes the breakpoints specified by the rows argument.
   *
   * @param debuggerProvider Provides the debuggers where breakpoints can be set.
   * @param rows Rows that identify the breakpoints.
   */
  public static void deleteBreakpoints(final BackEndDebuggerProvider debuggerProvider,
      final int[] rows) {
    Preconditions.checkNotNull(debuggerProvider,
        "IE01886: Debugger provider argument can not be null");
    Preconditions.checkNotNull(rows, "IE02253: Rows argument can't be null");

    final ArrayList<Pair<IDebugger, BreakpointAddress>> addresses =
        new ArrayList<Pair<IDebugger, BreakpointAddress>>();

    for (final int row : rows) {
      final Pair<IDebugger, Integer> breakpoint =
          CBreakpointTableHelpers.findBreakpoint(debuggerProvider, row);

      final BreakpointManager manager = breakpoint.first().getBreakpointManager();
      final int breakpointIndex = breakpoint.second();

      addresses.add(new Pair<IDebugger, BreakpointAddress>(breakpoint.first(), manager
          .getBreakpoint(BreakpointType.REGULAR, breakpointIndex).getAddress()));
    }

    for (final Pair<IDebugger, BreakpointAddress> p : addresses) {
      final BreakpointManager manager = p.first().getBreakpointManager();
      final BreakpointAddress address = p.second();

      manager.setBreakpointStatus(Sets.newHashSet(address), BreakpointType.REGULAR,
          BreakpointStatus.BREAKPOINT_DELETING);
    }
  }

  /**
   * Disables all breakpoints.
   *
   * @param debuggerProvider Provides the debuggers where breakpoints can be set.
   */
  public static void disableAll(final BackEndDebuggerProvider debuggerProvider) {
    Preconditions.checkNotNull(debuggerProvider,
        "IE01887: Debugger provider argument can not be null");

    for (final IDebugger debugger : debuggerProvider) {
      final BreakpointManager manager = debugger.getBreakpointManager();

      for (int i = 0; i < manager.getNumberOfBreakpoints(BreakpointType.REGULAR); i++) {
        manager
            .setBreakpointStatus(BreakpointType.REGULAR, BreakpointStatus.BREAKPOINT_DISABLED, i);
      }
    }
  }

  /**
   * Disables all breakpoints which are part of a view.
   *
   * @param debuggerProvider Provides the debuggers where breakpoints can be set.
   * @param view The view to consider when disabling the breakpoints.
   */
  public static void disableAllView(final BackEndDebuggerProvider debuggerProvider,
      final INaviView view) {
    Preconditions.checkNotNull(debuggerProvider,
        "IE01889: Debugger provider argument can not be null");
    Preconditions.checkNotNull(view, "IE02009: View argument can't be null");

    for (final IDebugger debugger : debuggerProvider) {
      final BreakpointManager manager = debugger.getBreakpointManager();
      final Set<BreakpointAddress> addressesToDisable = new HashSet<BreakpointAddress>();

      for (int i = 0; i < manager.getNumberOfBreakpoints(BreakpointType.REGULAR); i++) {
        final BreakpointAddress address =
            manager.getBreakpoint(BreakpointType.REGULAR, i).getAddress();

        if (CViewHelpers.containsAddress(view, address.getAddress())) {
          addressesToDisable.add(address);
        }
      }
      manager.setBreakpointStatus(addressesToDisable, BreakpointType.REGULAR,
          BreakpointStatus.BREAKPOINT_DISABLED);
    }
  }

  /**
   * Disables the breakpoints identified by the rows argument.
   *
   * @param debuggerProvider Provides the debuggers where breakpoints can be set.
   * @param rows Rows that identify the breakpoints.
   */
  public static void disableBreakpoints(final BackEndDebuggerProvider debuggerProvider,
      final int[] rows) {
    Preconditions.checkNotNull(debuggerProvider,
        "IE01919: Debugger provider argument can not be null");
    Preconditions.checkNotNull(rows, "IE02254: Rows argument can't be null");

    for (final int row : rows) {
      final Pair<IDebugger, Integer> breakpoint =
          CBreakpointTableHelpers.findBreakpoint(debuggerProvider, row);

      final BreakpointManager manager = breakpoint.first().getBreakpointManager();
      final int breakpointIndex = breakpoint.second();

      manager.setBreakpointStatus(BreakpointType.REGULAR, BreakpointStatus.BREAKPOINT_DISABLED,
          breakpointIndex);
    }
  }

  /**
   * Removes all breakpoints.
   *
   * @param parent Parent window used for dialogs.
   * @param debuggerProvider Provides the debuggers where breakpoints can be set.
   */
  public static void removeAll(final JFrame parent, final BackEndDebuggerProvider debuggerProvider) {
    Preconditions.checkNotNull(parent, "IE01360: Parent argument can't be null");
    Preconditions.checkNotNull(debuggerProvider,
        "IE01921: Debugger provider argument can not be null");

    if (JOptionPane.YES_OPTION == CMessageBox.showYesNoCancelQuestion(parent,
        "Do you really want to remove all breakpoints?")) {
      for (final IDebugger debugger : debuggerProvider) {
        removeAll(debugger.getBreakpointManager());
      }
    }
  }

  /**
   * Removes all breakpoints that are part of a given view.
   *
   * @param parent Parent window used for dialogs.
   * @param debuggerProvider Provides the debuggers where breakpoints can be set.
   * @param view The view to consider when removing breakpoints.
   */
  public static void removeAllView(final JFrame parent,
      final BackEndDebuggerProvider debuggerProvider, final INaviView view) {
    Preconditions.checkNotNull(parent, "IE01933: Parent argument can't be null");
    Preconditions.checkNotNull(debuggerProvider,
        "IE02251: Debugger provider argument can not be null");
    Preconditions.checkNotNull(view, "IE01956: View argument can't be null");

    if (JOptionPane.YES_OPTION == CMessageBox.showYesNoCancelQuestion(parent,
        "Do you really want to remove all breakpoints from this view?")) {
      for (final IDebugger debugger : debuggerProvider) {
        removeAllView(debugger.getBreakpointManager(), view);
      }
    }
  }

  /**
   * Removes breakpoints from all the functions in a given list.
   *
   * @param targets List of debugger/function pairs from which the breakpoints are removed.
   */
  public static void removeBreakpoints(final IFilledList<Pair<IDebugger, INaviFunction>> targets) {
    Preconditions.checkNotNull(targets, "IE01260: Targets argument can not be null");

    for (final Pair<IDebugger, INaviFunction> target : targets) {
      CGraphDebugger.removeBreakpoint(target.first().getBreakpointManager(), target.second()
          .getModule(), new UnrelocatedAddress(target.second().getAddress()));
    }
  }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using Hyak.Common;

namespace Microsoft.Azure.Management.Automation.Models
{
    /// <summary>
    /// The udpate deployment linux configuration.
    /// </summary>
    public partial class LinuxConfiguration
    {
        private IList<string> _excludedPackageNameMasks;

        /// <summary>
        /// Optional. Gets or sets the excluded packages of software update
        /// configuration.
        /// </summary>
        public IList<string> ExcludedPackageNameMasks
        {
            get { return this._excludedPackageNameMasks; }
            set { this._excludedPackageNameMasks = value; }
        }

        private string _includedPackageClassifications;

        /// <summary>
        /// Optional. Gets or sets the linux update package classifications of
        /// software update configuration.
        /// </summary>
        public string IncludedPackageClassifications
        {
            get { return this._includedPackageClassifications; }
            set { this._includedPackageClassifications = value; }
        }

        /// <summary>
        /// Initializes a new instance of the LinuxConfiguration class.
        /// </summary>
        public LinuxConfiguration()
        {
            this.ExcludedPackageNameMasks = new LazyList<string>();
        }
    }
}


text:
layout: post
title: Introducing NaughtyKeyboard, a keyboard to break your apps
date: '2015-08-17 18:53:10'
author: 'Romain Pouclet'
description: I created a custom keyboard for iOS to ease the life of QA engineers when they need to test apps with random strings.
keywords: Custom Keyboard, iOS, QA, NaughtyStrings
---

Earlier this week, [Rémi](http://www.exomel.com/en) shared a link to a github repository containing a bunch of weird strings you could use to test a web application. The given example was Twitter that gives you an internal server error when you try to post a tweet with one of those strings. Playing with the custom keyboard API of iOS was on my list but I had no idea what I could do with it until this repository. Last week I released a super-simple custom iOS keyboard to easily use these strings.

## The API
{% highlight swift %}
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
    let string = strings[indexPath.row]
    if let proxy  = textDocumentProxy as? UIKeyInput {
        proxy.insertText(string)
        proxy.insertText("\n")
    }
    tableView.deselectRowAtIndexPath(indexPath, animated: true)
}
{% endhighlight %}

The API is way simpler than I expected it to be. Everything happens in an `UIViewController` subclass from which you have access to a couple of objects and methods to fill the current text field with a string, go to the next available keyboard... Because all the strings are stored in a JSON file available in [Minimaxir's repository](https://github.com/minimaxir/big-list-of-naughty-strings), the whole project took me less than an hour to be completed.

## Open source is awesome

![Naughty Keyboard Logo](/assets/2015/08/naughty-logo.png)

When I started talking about this little project, it took a lunch break for my coworker [Emile](http://twitter.com/emilebelair) to open a pull-request with an icon for the application, based on [The Noun Project](https://thenounproject.com). I was super happy to see this because I tried to do something myself but ended up rage-quitting Sketch. I'm not a very patient man.

## Always be itching

I've always had trouble with the "always be shipping" motto. Most people (me included) have dozens of side projects sitting in Github Repositories. That's why I'm more an "always be itching" kind of guy where most of my side projects start from a technology, a language or a new API I want to play with.

This little project ended up on [last week's iOSDevWeekly](https://iosdevweekly.com/issues/211#start) and now has more than 350 stars on Github, so I guess some people though it could be useful. I'll try to make it better in the next few days, add a couple of features and make it prettier.


text: Rails.application.config.session_store :cookie_store, key: '_Trotter_session'


text:
package org.apache.camel.spring.example;

import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.spring.SpringTestSupport;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @version
 */
public class PojoConsumerTest extends SpringTestSupport {
    protected MockEndpoint resultEndpoint;

    public void testMessagesSentToConsumerArrive() throws Exception {
        String body = "<hello>world!</hello>";
        resultEndpoint.expectedBodiesReceived(body);

        template.sendBody("direct:start", body);

        resultEndpoint.assertIsSatisfied();
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();

        resultEndpoint = getMockEndpoint("mock:result");
    }

    protected AbstractXmlApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("org/apache/camel/spring/example/pojoConsumer.xml");
    }

    protected int getExpectedRouteCount() {
        return 0;
    }
}


text: export { default } from 'ember-cli-json-schema-validator/services/json-schema-validator';


text:
template <class T>
typename std::enable_if<std::is_unsigned<T>::value, T>::type
SafeIntAdd(const T a, const T b) {
  if (a > (std::numeric_limits<T>::max() - b)) {
    RAISE_EXCEPTION("Integer-overflow detected.");
  }

  return a + b;
}


text:
class CTWRAPPER_API CertificationRequestInfo;

#include "pki.h"

SSLOBJECT_free(X509_REQ_INFO, X509_REQ_INFO_free)

class CertificationRequestInfo : public SSLObject < X509_REQ_INFO > {
public:
	//Constructor
	SSLOBJECT_new(CertificationRequestInfo, X509_REQ_INFO){}
	SSLOBJECT_new_null(CertificationRequestInfo, X509_REQ_INFO, X509_REQ_INFO_new){}

	//Methods
	void setSubject(Handle<std::string> x509Name);
	void setSubjectPublicKey(Handle<Key> key);
	void setVersion(long version);

	Handle<std::string> getSubject();
	Handle<Key> getPublicKey();
	long getVersion();
};

#endif


text:
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/070f65e4b77e462ab3ba883162e5affe)](https://www.codacy.com/app/loic-carbonne-mail/histogram-based-image-retrieval?utm_source=github.com&utm_medium=referral&utm_content=loic-carbonne/histogram-based-image-retrieval&utm_campaign=badger)

Inspired by a school project, I created a library that permit :
- Creation of an image histogram based on grey level or RGB level
- Indexation of histograms in file
- Comparing histogram and search the closest in index.

To use it, simply add histogram-based-image-retrieval.jar to your project.

Documentation is available here :
https://loic-carbonne.github.io/histogram-based-image-retrieval/

DemoImageRetrieval is a demo project of a website using the library


text:
import {JArithmetic, JEquality, JRelational, JUnary} from '@j2se-js/java.lang.native.operator';
import {Jboolean, jboolean} from './jboolean_primitive';
import {Jdouble, jdouble} from './jdouble_primitive';
import {Jint, jint} from './jint_primitive'

/**
 * The char data type is a single 16-bit Unicode character.
 * It has a minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive).
 *
 * Note: To retrieve the actual numeric value wrapped in a Jchar you have to use <code>.value</code> syntax.
 */
export class Jchar implements JEquality<Jchar | Jint | Jdouble>,
                              JRelational<Jchar | Jint | Jdouble>,
                              JUnary<Jchar | Jint>,
                              JArithmetic<Jchar | Jint | Jdouble, Jint | Jdouble> {

  private static validate(value: string | Jint) {
    if (typeof value === 'string') {
      if (value.length > 1) {
        throw Error('incompatible types: string cannot be converted to char');
      }
    } else {
      if (value.value > 65535 || value.value < 0) {
        throw Error('incompatible types: possible lossy conversion from int to char');
      }
    }
  }

  private _value: string;

  public constructor(value: string | Jint) {
    Jchar.validate(value);

    if (typeof value === 'string') {
      this._value = value;
    } else {
      this._value = String.fromCharCode(value.value);
    }
  }

  /**
   * Retrieve the actual value wrapped by this Jchar.
   * @returns {string} value wrapped by this Jchar.
   */
  public get value(): number {
    return this._value.charCodeAt(0);
  }

  public toString(): string {
    return this._value;
  }

  // JEquality
  public eq(expr: Jchar | Jint | Jdouble): Jboolean {
    return jboolean((this.value === expr.value).toString());
  }

  public ne(expr: Jchar | Jint | Jdouble): Jboolean {
    return jboolean((this.value !== expr.value).toString());
  }

  // JRelational
  public lt(expr: Jchar | Jint | Jdouble): Jboolean {
    return jboolean((this.value < expr.value).toString());
  }

  public gt(expr: Jchar | Jint | Jdouble): Jboolean {
    return jboolean((this.value > expr.value).toString());
  }

  public le(expr: Jchar | Jint | Jdouble): Jboolean {
    return jboolean((this.value <= expr.value).toString());
  }

  public ge(expr: Jchar | Jint | Jdouble): Jboolean {
    return jboolean((this.value >= expr.value).toString());
  }

  // JUnary
  public plus(): Jint {
    return jint((+this.value).toString());
  }

  public inc(): Jchar {
    this._value = String.fromCharCode(this.value + 1);
    return jchar(this._value);
  }

  public dec(): Jchar {
    this._value = String.fromCharCode(this.value - 1);
    return jchar(this._value);
  }

  public minus(): Jint {
    return jint((-this.value).toString());
  }

  // JArithmetic
  public add(expr: Jchar | Jint): Jint;
  public add(expr: Jdouble): Jdouble;

  public add(expr: Jchar | Jint | Jdouble): Jint | Jdouble {
    if (expr instanceof Jdouble) {
      return jdouble((this.value + expr.value).toString());
    } else {
      return jint((this.value + expr.value).toString());
    }
  }

  public sub(expr: Jchar | Jint): Jint;
  public sub(expr: Jdouble): Jdouble;

  public sub(expr: Jchar | Jint | Jdouble): Jint | Jdouble {
    if (expr instanceof Jdouble) {
      return jdouble((this.value - expr.value).toString());
    } else {
      return jint((this.value - expr.value).toString());
    }
  }

  public mul(expr: Jchar | Jint): Jint;
  public mul(expr: Jdouble): Jdouble;

  public mul(expr: Jchar | Jint | Jdouble): Jint | Jdouble {
    if (expr instanceof Jdouble) {
      return jdouble((this.value * expr.value).toString());
    } else {
      return jint((this.value * expr.value).toString());
    }
  }

  public div(expr: Jchar | Jint): Jint;
  public div(expr: Jdouble): Jdouble;

  public div(expr: Jchar | Jint | Jdouble): Jint | Jdouble {
    if (expr instanceof Jdouble) {
      return jdouble((this.value / expr.value).toString());
    } else {
      return jint((this.value / expr.value).toString());
    }
  }

  public mod(expr: Jchar | Jint): Jint;
  public mod(expr: Jdouble): Jdouble;

  public mod(expr: Jchar | Jint | Jdouble): Jint | Jdouble {
    if (expr instanceof Jdouble) {
      return jdouble((this.value % expr.value).toString());
    } else {
      return jint((this.value % expr.value).toString());
    }
  }
}

/**
 * Factory for constructing a Jchar without use the new keyword
 * @param {number | string} value to be wrapped in the new Jchar.
 * @returns {Jchar} the Jchar created.
 */
export function jchar(value: string | Jint = jint('0')): Jchar {
  return new Jchar(value);
}


text:
<?php

class BWGViewUninstall_bwg {
  ////////////////////////////////////////////////////////////////////////////////////////
  // Events                                                                             //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Constants                                                                          //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Variables                                                                          //
  ////////////////////////////////////////////////////////////////////////////////////////
  private $model;

  ////////////////////////////////////////////////////////////////////////////////////////
  // Constructor & Destructor                                                           //
  ////////////////////////////////////////////////////////////////////////////////////////
  public function __construct($model) {
    $this->model = $model;
  }
  ////////////////////////////////////////////////////////////////////////////////////////
  // Public Methods                                                                     //
  ////////////////////////////////////////////////////////////////////////////////////////
  public function display() {
    global $wpdb;
    $prefix = $wpdb->prefix;
    ?>
    <form class="bwg_form" method="post" action="admin.php?page=uninstall_bwg" style="width:99%;">
      <?php wp_nonce_field( 'uninstall_bwg', 'bwg_nonce' ); ?>

<?php _e("Uninstall Photo Gallery", 'bwg_back'); ?>

          <?php
          $support_team = '' . __('support team', 'bwg_back') . '';
          $contact_us = '' . __('Contact us', 'bwg_back') . '';
          echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.

          However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "bwg_back"), $support_team, $contact_us); ?>

          <?php _e("Deactivating Photo Gallery plugin does not remove any data that may have been created. To completely remove this plugin, you can uninstall it here.", 'bwg_back'); ?>

          <?php _e("WARNING:", 'bwg_back'); ?>
          <?php _e("Once uninstalled, this can't be undone. You should use a Database Backup plugin of WordPress to back up all the data first.", 'bwg_back'); ?>

          <?php _e("The following Database Tables will be deleted:", 'bwg_back'); ?>

              <?php _e("Database Tables", 'bwg_back'); ?>

<?php echo $prefix; ?>bwg_album

<?php echo $prefix; ?>bwg_album_gallery

<?php echo $prefix; ?>bwg_gallery

<?php echo $prefix; ?>bwg_image

<?php echo $prefix; ?>bwg_image_comment

<?php echo $prefix; ?>bwg_image_rate

<?php echo $prefix; ?>bwg_image_tag

<?php echo $prefix; ?>bwg_option

<?php echo $prefix; ?>bwg_theme

<?php echo $prefix; ?>bwg_shortcode

                <input type="checkbox" name="bwg_delete_files" id="bwg_delete_files" style="vertical-align: middle;" />
                 <?php _e("Delete the folder containing uploaded images.", 'bwg_back'); ?>

          <?php _e("Do you really want to uninstall Photo Gallery?", 'bwg_back'); ?>

          <input type="checkbox" name="Photo Gallery" id="check_yes" value="yes" /> <?php _e("Yes", 'bwg_back'); ?>

          <input type="submit" value="<?php echo __('UNINSTALL','bwg_back'); ?>" class="wd-btn wd-btn-primary wd-not-image" onclick="if (check_yes.checked) {
                                                                                if (confirm('<?php echo addslashes(__("You are About to Uninstall Photo Gallery from WordPress. This Action Is Not Reversible.", 'bwg_back')); ?>')) {
                                                                                spider_set_input_value('task', 'uninstall');
                                                                                } else {
                                                                                return false;
                                                                                }
                                                                                }
                                                                                else {
                                                                                return false;
                                                                                }" />

      <input id="task" name="task" type="hidden" value="" />
    </form>
  <?php
  }

  public function uninstall() {
    $flag = TRUE;
    if (isset($_POST['bwg_delete_files'])) {
      function delfiles($del_file) {
        if (is_dir($del_file)) {
          $del_folder = scandir($del_file);
          foreach ($del_folder as $file) {
            if ($file != '.' and $file != '..') {
              delfiles($del_file . '/' . $file);
            }
          }
          if (!rmdir($del_file)) {
            $flag = FALSE;
          }
        }
        else {
          if (!unlink($del_file)) {
            $flag = FALSE;
          }
        }
      }
      global $WD_BWG_UPLOAD_DIR;
      if ($WD_BWG_UPLOAD_DIR) {
        if (is_dir(ABSPATH . $WD_BWG_UPLOAD_DIR)) {
          delfiles(ABSPATH . $WD_BWG_UPLOAD_DIR);
        }
      }
    }
    global $wpdb;
    $this->model->delete_db_tables();
    $prefix = $wpdb->prefix;
    $deactivate_url = wp_nonce_url('plugins.php?action=deactivate&plugin=' . WD_BWG_NAME . '/photo-gallery.php', 'deactivate-plugin_' . WD_BWG_NAME . '/photo-gallery.php');
    ?>

<?php _e("The following Database Tables successfully deleted:", 'bwg_back'); ?>

<?php echo $prefix; ?>bwg_album,

<?php echo $prefix; ?>bwg_album_gallery,

<?php echo $prefix; ?>bwg_gallery,

<?php echo $prefix; ?>bwg_image,

<?php echo $prefix; ?>bwg_image_comment,

<?php echo $prefix; ?>bwg_image_rate,

<?php echo $prefix; ?>bwg_image_tag,

<?php echo $prefix; ?>bwg_option,

<?php echo $prefix; ?>bwg_theme,

<?php echo $prefix; ?>bwg_shortcode.

    <?php
    if (isset($_POST['bwg_delete_files'])) {
    ?>
    <div class="<?php echo ($flag) ? 'wd_updated' : 'wd_error'?>">

<?php echo ($flag) ? __("The folder was successfully deleted.", 'bwg_back') : __("An error occurred when deleting the folder.", 'bwg_back')?>

    <?php
    }
    ?>

<?php _e("Uninstall Photo Gallery", 'bwg_back'); ?>

<a href="<?php echo $deactivate_url; ?>" class="bwg_deactivate_link" data-uninstall="1"><?php _e("Click Here", 'bwg_back'); ?> <?php _e("To Finish the Uninstallation and Photo Gallery will be Deactivated Automatically.", 'bwg_back'); ?>

      <input id="task" name="task" type="hidden" value="" />

  <?php
  }

  ////////////////////////////////////////////////////////////////////////////////////////
  // Getters & Setters                                                                  //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Private Methods                                                                    //
  ////////////////////////////////////////////////////////////////////////////////////////
  ////////////////////////////////////////////////////////////////////////////////////////
  // Listeners                                                                          //
  ////////////////////////////////////////////////////////////////////////////////////////
}


text:
var Goblin = Entity.extend({
    isNpc: true,
    causesDamage: true,

    init: function() {
        this._super();

        this.width = 28;
        this.height = 18;

        this.sprite = Gfx.load('goblin');
        this.spriteShadow = Gfx.load('goblin_shadow');

        this.setCoord(9, 9);

        this.weapon = new SwordTroll();

        this.movementSpeed = 1.5;

        this.generateHurtSprite();
    },

    deathDelayer: 0,

    moveDirection: 0,
    canContinue: true,
    attentionSpan: 0,
    restTimer: 0,

    killMode: false,

    damage: function (val) {
        this.killMode = true;
        this._super(val);
    },

    update: function () {
        this._super();

        if (!this.dead) {
            if (!this.canContinue) {
                this.moveDirection = Math.round(Math.random() * 3) + 1;
                this.attentionSpan = Math.round(Math.random() * 300);
                this.canContinue = true;
            }

            if (this.attentionSpan > 0) {
                this.attentionSpan--;
            }
            if (this.attentionSpan <= 0) {
                this.canContinue = false;
            }

            if (this.restTimer > 0) {
                this.restTimer--;
            }

            this.velocityX = 0;
            this.velocityY = 0;

            var player = Game.map.player;

            if (this.killMode)
            {
                // Want to kill the player
                var diffX = Math.abs(this.posX - player.posX);
                var diffY = Math.abs(this.posY - player.posY);

                if (diffX + diffY <= 32 && this.restTimer <= 0 && !this.isAttacking) {
                    this.attack();
                    this.restTimer = 30;
                }

                if (this.restTimer == 0) {
                    if (player.posY < this.posY && diffY > 16) {
                        this.direction = Direction.UP;
                        this.velocityY = -this.movementSpeed;
                    }
                    else if (player.posY > this.posY && diffY > 16) {
                        this.direction = Direction.DOWN;
                        this.velocityY = +this.movementSpeed;
                    }

                    if (player.posX < this.posX && diffX > 16) {
                        this.direction = Direction.LEFT;
                        this.velocityX = -this.movementSpeed;
                    }
                    else if (player.posX > this.posX && diffX > 16) {
                        this.direction = Direction.RIGHT;
                        this.velocityX = +this.movementSpeed;
                    }
                }
            }
            else
            {
                // Feeling bloodlust yet?
                var diffX = Math.abs(this.posX - player.posX);
                var diffY = Math.abs(this.posY - player.posY);

                if (diffX + diffY <= 255) {
                    this.killMode = true;
                }

                // Wander mode
                if (this.canContinue && this.attentionSpan > 0 && this.restTimer <= 0) {
                    switch (this.moveDirection) {
                        default:
                        case Direction.UP:
                            this.velocityY = -this.movementSpeed;
                            this.direction = Direction.UP;
                            if (!this.canMoveUp()) {
                                this.canContinue = false;
                            }
                            break;
                        case Direction.DOWN:
                            this.velocityY = +this.movementSpeed;
                            this.direction = Direction.DOWN;
                            if (!this.canMoveDown()) {
                                this.canContinue = false;
                            }
                            break;
                        case Direction.LEFT:
                            this.velocityX = -this.movementSpeed;
                            this.direction = Direction.LEFT;
                            if (!this.canMoveLeft()) {
                                this.canContinue = false;
                            }
                            break;
                        case Direction.RIGHT:
                            this.velocityX = +this.movementSpeed;
                            this.direction = Direction.RIGHT;
                            if (!this.canMoveRight()) {
                                this.canContinue = false;
                            }
                            break;
                    }
                }
            }

            if (!this.canContinue) {
                this.restTimer = Math.round(Math.random() * 100);
            }
        }

        if (this.dead) {
            this.hurtTimer = Infinity;

            if (this.deathDelayer > 0) {
                this.deathDelayer--;

                if (this.deathDelayer == 0) {
                    Game.map.remove(this);
                }
            }
            else if (this.drewHurtFrame) {
                this.deathDelayer = 3;
            }
        }
    }
});


text:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Csla;
using Csla.Data;
using SelfLoadSoftDelete.DataAccess;
using SelfLoadSoftDelete.DataAccess.ERCLevel;

namespace SelfLoadSoftDelete.DataAccess.Sql.ERCLevel
{
    /// <summary>
    /// DAL SQL Server implementation of <see cref="IH04_SubContinentDal"/>
    /// </summary>
    public partial class H04_SubContinentDal : IH04_SubContinentDal
    {
        /// <summary>
        /// Inserts a new H04_SubContinent object in the database.
        /// </summary>
        /// <param name="h04_SubContinent">The H04 Sub Continent DTO.</param>
        /// <returns>The new <see cref="H04_SubContinentDto"/>.</returns>
        public H04_SubContinentDto Insert(H04_SubContinentDto h04_SubContinent)
        {
            using (var ctx = ConnectionManager<SqlConnection>.GetManager("DeepLoad"))
            {
                using (var cmd = new SqlCommand("AddH04_SubContinent", ctx.Connection))
                {
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.AddWithValue("@Parent_Continent_ID", h04_SubContinent.Parent_Continent_ID).DbType = DbType.Int32;
                    cmd.Parameters.AddWithValue("@SubContinent_ID", h04_SubContinent.SubContinent_ID).Direction = ParameterDirection.Output;
                    cmd.Parameters.AddWithValue("@SubContinent_Name", h04_SubContinent.SubContinent_Name).DbType = DbType.String;
                    cmd.ExecuteNonQuery();
                    h04_SubContinent.SubContinent_ID = (int)cmd.Parameters["@SubContinent_ID"].Value;
                }
            }
            return h04_SubContinent;
        }

        /// <summary>
        /// Updates in the database all changes made to the H04_SubContinent object.
        /// </summary>
        /// <param name="h04_SubContinent">The H04 Sub Continent DTO.</param>
        /// <returns>The updated <see cref="H04_SubContinentDto"/>.</returns>
        public H04_SubContinentDto Update(H04_SubContinentDto h04_SubContinent)
        {
            using (var ctx = ConnectionManager<SqlConnection>.GetManager("DeepLoad"))
            {
                using (var cmd = new SqlCommand("UpdateH04_SubContinent", ctx.Connection))
                {
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.AddWithValue("@SubContinent_ID", h04_SubContinent.SubContinent_ID).DbType = DbType.Int32;
                    cmd.Parameters.AddWithValue("@SubContinent_Name", h04_SubContinent.SubContinent_Name).DbType = DbType.String;
                    var rowsAffected = cmd.ExecuteNonQuery();
                    if (rowsAffected == 0)
                        throw new DataNotFoundException("H04_SubContinent");
                }
            }
            return h04_SubContinent;
        }

        /// <summary>
        /// Deletes the H04_SubContinent object from database.
        /// </summary>
        /// <param name="subContinent_ID">The Sub Continent ID.</param>
        public void Delete(int subContinent_ID)
        {
            using (var ctx = ConnectionManager<SqlConnection>.GetManager("DeepLoad"))
            {
                using (var cmd = new SqlCommand("DeleteH04_SubContinent", ctx.Connection))
                {
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.AddWithValue("@SubContinent_ID", subContinent_ID).DbType = DbType.Int32;
                    cmd.ExecuteNonQuery();
                }
            }
        }
    }
}


text:
find_package(PkgConfig)
pkg_check_modules(PC_LEVMAR QUIET levmar)
set(LEVMAR_DEFINITIONS ${PC_LEVMAR_CFLAGS_OTHER})

find_path(LEVMAR_INCLUDE_DIR levmar.h
          HINTS ${PC_LEVMAR_INCLUDEDIR} ${PC_LEVMAR_INCLUDE_DIRS})

find_library(LEVMAR_LIBRARY NAMES levmar liblevmar
             HINTS ${PC_LEVMAR_LIBDIR} ${PC_LEVMAR_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LEVMAR_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(levmar DEFAULT_MSG
                                  LEVMAR_LIBRARY LEVMAR_INCLUDE_DIR)

mark_as_advanced(LEVMAR_INCLUDE_DIR LEVMAR_LIBRARY)

set(LEVMAR_LIBRARIES ${LEVMAR_LIBRARY})
set(LEVMAR_INCLUDE_DIRS ${LEVMAR_INCLUDE_DIR})


text:
"""
Given an array nums of integers, for each integer nums[i] we may choose any x with -k <= x <= k, and add x to nums[i].

After this process, we have some array result.

Return the smallest possible difference between the maximum value of result and the minimum value of result.

Example 1:

Input: nums = [1], k = 0
Output: 0
Explanation: result = [1]
Example 2:

Input: nums = [0,10], k = 2
Output: 6
Explanation: result = [2,8]
Example 3:

Input: nums = [1,3,6], k = 3
Output: 0
Explanation: result = [3,3,3] or result = [4,4,4]

Note:

1 <= nums.length <= 10000
0 <= nums[i] <= 10000
0 <= k <= 10000
"""

class Solution:
    def smallestRangeI(self, A: List[int], K: int) -> int:
        if K == 0:
            return max(A) - min(A)
        r = max(A) - min(A) - K * 2
        return r if r > 0 else 0


text:
<?php

namespace Panza\Library\Bridge\Git\Event;

use GitWrapper\Event\GitEvent;
use Psr\Log\LoggerInterface;

/**
 * Class OutputListener
 * @package Panza\Library\Bridge\Git
 */
class OutputListener
{
    /**
     * Commands which should not be logged.
     *
     * @var array
     */
    private $commandToIgnore = array(
        'branch -a',
    );

    /**
     * Logger.
     *
     * @var \Psr\Log\LoggerInterface
     */
    private $logger;

    /**
     * Ctor.
     *
     * @param LoggerInterface $logger
     */
    public function __construct(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }

    /**
     * Event handler for GitEvents::GIT_PREPARE event.
     *
     * @param GitEvent $event
     */
    public function handlePrepare(GitEvent $event)
    {
        $this->logger->info(
            sprintf(
                'Command processing started: %s %s',
                $event->getWrapper()->getGitBinary(),
                $event->getCommand()->getCommandLine()
            )
        );
    }

    /**
     * Event handler for GitEvents::GIT_SUCCESS event.
     *
     * @param GitEvent $event
     */
    public function handleSuccess(GitEvent $event)
    {
        $this->handleFinish($event);
    }

    /**
     * Event handler for GitEvents::GIT_ERROR event.
     *
     * @param GitEvent $event
     */
    public function handleError(GitEvent $event)
    {
        $this->handleFinish($event);
        $this->logger->error(
            sprintf("Git error output:\n%s", $event->getProcess()->getErrorOutput())
        );
    }

    /**
     * Event handler for GitEvents::GIT_BYPASS event.
     *
     * @param GitEvent $event
     */
    public function handleBypass(GitEvent $event)
    {
        $this->logger->info(
            sprintf(
                'Command processing bypassed: %s %s',
                $event->getWrapper()->getGitBinary(),
                $event->getCommand()->getCommandLine()
            )
        );
    }

    /**
     * Handles any kind of git process finish.
     *
     * @param GitEvent $event
     */
    protected function handleFinish(GitEvent $event)
    {
        $command = $event->getCommand()->getCommandLine();
        if (!in_array($command, $this->commandToIgnore)) {
            $this->logger->debug(
                sprintf("Git std output:\n%s", $event->getProcess()->getOutput())
            );
        }
        $this->logger->info(
            sprintf(
                'Command processing finished (exit code = %s): %s %s',
                $event->getProcess()->getExitCode(),
                $event->getWrapper()->getGitBinary(),
                $command
            )
        );
    }
}


text:
import React, { Component, PropTypes } from 'react'
import cx from 'classnames'

// @REF: https://ant.design/components/upload/
import { Upload as AntUpload } from 'antd'

import config from 'config'
import { request } from 'utils'

const UPLOAD_HOST = `${config.FILE_HOST}/upload`

// @TODO: Custom request client & handle error
export class Upload extends Component {

  static propTypes = {
    url: PropTypes.string.isRequired,
    ...AntUpload.propTypes
  }

  static defaultProps = {
    prefixCls: 'upload',
    showUploadList: false
  }

  getHeaders () {
    return {
      Authorization: request.options.headers.Authorization
    }
  }

  getRootClassNames () {
    return cx(
      this.props.className
    )
  }

  render () {
    const {
      url,
      ...props
    } = this.props

    return (
      <AntUpload
        className={this.getRootClassNames()}
        action={`${UPLOAD_HOST}/${url}`}
        headers={this.getHeaders()}
        {...props}
      />
    )
  }
}


text:
FROM ubuntu:14.04

MAINTAINER dev@seldon.io

ENV ZOOKEEPER_VERSION 3.4.8

EXPOSE 2181 2888 3888

RUN apt-get update && apt-get -y upgrade && \
	apt-get -y install wget openjdk-7-jre-headless && \
	wget -q -O - http://apache.mirrors.pair.com/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz | tar -xzf - -C /opt && \
	mv /opt/zookeeper-${ZOOKEEPER_VERSION} /opt/zookeeper && \
	mkdir -p /opt/zookeeper/data && \
	mkdir -p /opt/zookeeper/log

WORKDIR /opt/zookeeper

VOLUME ["/opt/zookeeper/conf", "/opt/zookeeper/data", "/opt/zookeeper/log"]

COPY config-and-run.sh ./bin/

CMD ["/opt/zookeeper/bin/config-and-run.sh"]


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" type="text/css" href="css/main.css">
    <title>Vali Admin</title>

      Vali

You have 4 new notifications.

Lisa sent you a mail2min ago

Server Not Working2min ago

Transaction xyz complete2min ago

See all notifications.

 Settings

 Profile

 Logout

John Doe

Frontend Developer

Dashboard

UI Elements

 Bootstrap Elements

 Font Icons

 Cards

 Widgets

Charts

Forms

 Form Componants

 Custom Componants

 Form Samples

 Form Notifications

Tables

 Basic Tables

 Data Tables

Pages

 Blank Page

 Login Page

 User Page

 Lockscreen Page

 Error Page

 Invoice Page

 Calendar Page

 Mailbox

MultiLavel Menu

 Level One

 Level One

 Level Two

 Level Two

 Mailbox

Mailbox

Compose Mail

Folders

 Inbox12

 Sent

 Drafts

 Junk 65

 Trash

                    <input type="checkbox">

                  <button class="btn btn-primary btn-sm" type="button"></button>
                  <button class="btn btn-primary btn-sm" type="button"></button>
                  <button class="btn btn-primary btn-sm" type="button"></button>
                  <button class="btn btn-primary btn-sm" type="button"></button>

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      8 mins ago

                            <input type="checkbox">

                      John Doe
                      A report on some good project - Lorem ipsum dolor sit amet adipisicing elit...

                      15 mins ago

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      30 mins ago

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      25 December

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      20 December

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      20 December

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      20 December

                            <input type="checkbox">

                      John Doe
                      A report on project almanac - Lorem ipsum dolor sit amet adipisicing elit...

                      20 December

Showing 1-15 out of 60

                  <button class="btn btn-primary btn-sm" type="button"></button>
                  <button class="btn btn-primary btn-sm" type="button"></button>