idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,472,824
// BracesMatcherFactory implementation<NEW_LINE>public BracesMatcher createMatcher(final MatcherContext context) {<NEW_LINE>final JspBracesMatching[] ret = { null };<NEW_LINE>context.getDocument().render(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TokenHierarchy<Document> hierarchy = TokenHierarchy...
get(context.getDocument());
758,356
final StopContinuousExportResult executeStopContinuousExport(StopContinuousExportRequest stopContinuousExportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopContinuousExportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
1,608,257
public void doSetup() throws Exception {<NEW_LINE>final byte[] password = "password".getBytes(StandardCharsets.UTF_8);<NEW_LINE>crc32 = DigestManager.instantiate(ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE), password, DigestType.CRC32, PooledByteBufAllocator.DEFAULT, true);<NEW_LINE>crc32c = DigestManager.in...
CRC32C, PooledByteBufAllocator.DEFAULT, true);
893,108
/*<NEW_LINE>* <requestTiming slowRequestThreshold="9s" hungRequestThreshold="20s"><NEW_LINE>* <timing<NEW_LINE>* eventType="websphere.servlet.service"<NEW_LINE>* slowRequestThreshold="5s"<NEW_LINE>* hungRequestThreshold="7s"><NEW_LINE>* </timing><NEW_LINE>* </requestTiming><NEW_LINE>*/<NEW_LINE>@Test<NEW_LINE>public vo...
writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 9s , hung : 20s> <timing - Slow : 5s , hung : 7s>");
785,986
public TSStatus forwardPlanSync(PhysicalPlan plan, Node receiver, RaftNode header, Client client) {<NEW_LINE>try {<NEW_LINE>ExecutNonQueryReq req = new ExecutNonQueryReq();<NEW_LINE>req.setPlanBytes(PlanSerializer.getInstance().serialize(plan));<NEW_LINE>if (header != null) {<NEW_LINE>req.setHeader(header);<NEW_LINE>}<...
.getTransport().close();
973,310
public ExitStatus afterStep(StepExecution stepExecution) {<NEW_LINE>if (!(stepExecution.getStatus() == BatchStatus.COMPLETED)) {<NEW_LINE>return ExitStatus.EXECUTING;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>boolean timedOut;<NEW_LINE>try {<NEW_LINE>logger.debug("Waiting for results in step listener...");<NEW_LINE>timedOut ...
long expecting = localState.getExpecting();
1,100,622
private void changePasswordUsingAttributeModification(DistinguishedName userDn, String oldPassword, String newPassword) {<NEW_LINE>ModificationItem[] passwordChange = new ModificationItem[] { new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute(<MASK><NEW_LINE>if (oldPassword == null) {<NEW_LINE>this.t...
this.passwordAttributeName, newPassword)) };
800,752
final DescribeServersResult executeDescribeServers(DescribeServersRequest describeServersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "OpsWorksCM");
1,326,796
public void onClick(View view) {<NEW_LINE>switch(view.getId()) {<NEW_LINE>case R.id.digit_button_clear:<NEW_LINE>setScore(0);<NEW_LINE>break;<NEW_LINE>case R.id.digit_button_0:<NEW_LINE>case R.id.digit_button_1:<NEW_LINE>case R.id.digit_button_2:<NEW_LINE>case R.id.digit_button_3:<NEW_LINE>case R.id.digit_button_4:<NEW...
* 10 + x) % 10000);
1,644,652
protected void fillBand(JRPrintBand band) {<NEW_LINE>if (isReorderBandElements()) {<NEW_LINE>List<JRPrintElement> elements = new ArrayList<>();<NEW_LINE>for (Iterator<JRPrintElement> it = band.iterateElements(); it.hasNext(); ) {<NEW_LINE>JRPrintElement element = it.next();<NEW_LINE>element.setX(element.getX() + offset...
int contentsWidth = band.getContentsWidth();
884,492
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE...
error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
1,038,948
private void parseHeader(ByteBuf frame, Packet packet, PacketType innerType) {<NEW_LINE>int endIndex = frame.bytesBefore((byte) '[');<NEW_LINE>if (endIndex <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int attachmentsDividerIndex = frame.bytesBefore(endIndex, (byte) '-');<NEW_LINE>boolean hasAttachments = attachmentsDiv...
frame.readerIndex() + 1);
667,326
public void emitHtml(Map<String, String> queryMap, OutputStream outputStream) {<NEW_LINE>// PrintStream for emitting HTML contents<NEW_LINE>try (PrintStream out = new PrintStream(outputStream, /* autoFlush= */<NEW_LINE>false, "UTF-8")) {<NEW_LINE>out.print("<!DOCTYPE html>");<NEW_LINE>out.print("<html lang=\"en\">");<N...
Level.WARNING, "error while generating HTML", t);
574,188
public static void main(String[] args) throws Exception {<NEW_LINE>NioEventLoopGroup group = new NioEventLoopGroup();<NEW_LINE>group.setMemoryPoolCapacity(1024 * 64);<NEW_LINE>group.setMemoryPoolUnit(512);<NEW_LINE><MASK><NEW_LINE>ChannelAcceptor acceptor = new ChannelAcceptor(context, group);<NEW_LINE>context.setProto...
ChannelContext context = new ChannelContext(8087);
926,059
static SSLSession validateSslContext(SslContext sslContext) {<NEW_LINE>if (!sslContext.isServer()) {<NEW_LINE>throw new IllegalArgumentException("sslContext: " + sslContext + " (expected: server context)");<NEW_LINE>}<NEW_LINE>SSLEngine serverEngine = null;<NEW_LINE>SSLEngine clientEngine = null;<NEW_LINE>final SSLSess...
sslContextClient.newEngine(ByteBufAllocator.DEFAULT);
606,287
public void showTables(UUID roomId) {<NEW_LINE>this.roomId = roomId;<NEW_LINE>UUID chatRoomId = null;<NEW_LINE>if (SessionHandler.getSession() != null) {<NEW_LINE>btnQuickStartDuel.setVisible(SessionHandler.isTestMode());<NEW_LINE>btnQuickStartCommander.setVisible(SessionHandler.isTestMode());<NEW_LINE>btnQuickStartMCT...
), 300, TimeUnit.MILLISECONDS);
1,256,558
public void evict(byte[] id) {<NEW_LINE>try {<NEW_LINE>Leadership<byte[]> oldLeadership = leadership();<NEW_LINE>Optional<Registration> registration = registrations.stream().filter(r -> Arrays.equals(r.id, id)).findFirst();<NEW_LINE>if (registration.isPresent()) {<NEW_LINE>List<Registration> updatedRegistrations = regi...
.term = termCounter.incrementAndGet();
200,053
final CreateRuleGroupResult executeCreateRuleGroup(CreateRuleGroupRequest createRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(createRuleGroupRequest));
1,015,953
private static long parsePositiveIntAsciiOverflowCheck(final CharSequence cs, final int index, final int length, final int startIndex, final int end) {<NEW_LINE>if ((end - startIndex) > INT_MAX_DIGITS) {<NEW_LINE>throwParseIntOverflowError(cs, index, length);<NEW_LINE>}<NEW_LINE>int i = startIndex;<NEW_LINE>long tally ...
octet = readEightBytesLittleEndian(cs, i);
348,000
public static CreateContactFlowResponse unmarshall(CreateContactFlowResponse createContactFlowResponse, UnmarshallerContext context) {<NEW_LINE>createContactFlowResponse.setRequestId(context.stringValue("CreateContactFlowResponse.RequestId"));<NEW_LINE>createContactFlowResponse.setSuccess(context.booleanValue("CreateCo...
("CreateContactFlowResponse.ContactFlow.PhoneNumbers[" + i + "].RemainingTime"));
1,737,622
public int compare(Mapping m1, Mapping m2) {<NEW_LINE>if (m1.first.getParent() == m2.first.getParent() && m1.second.getParent() == m2.second.getParent())<NEW_LINE>return 0;<NEW_LINE>srcAncestors.putIfAbsent(m1.first, m1.first.getParents());<NEW_LINE>dstAncestors.putIfAbsent(m1.second, m1.second.getParents());<NEW_LINE>...
, cachedSimilarities.get(m1));
150,082
public Request<DescribeReplicationGroupsRequest> marshall(DescribeReplicationGroupsRequest describeReplicationGroupsRequest) {<NEW_LINE>if (describeReplicationGroupsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeReplicationGroups...
<DescribeReplicationGroupsRequest>(describeReplicationGroupsRequest, "AmazonElastiCache");
1,161,991
private void run() throws IOException, OtrException {<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>while (true) {<NEW_LINE>System.out.print(">");<NEW_LINE>String line = reader.readLine().trim();<NEW_LINE>if ("/quit".equals(line)) {<NEW_LINE>disconnect();<NEW_LINE>retur...
System.err.println("missing arguments");
83,483
// TODO: Move this to a more appropriate mixin<NEW_LINE>@Inject(method = "render", at = @At("RETURN"))<NEW_LINE>public void iris$displayBigSodiumWarning(PoseStack poseStack, float tickDelta, CallbackInfo ci) {<NEW_LINE>if (Iris.isSodiumInstalled() || Minecraft.getInstance().options.renderDebug || !Iris.getCurrentPack()...
= Minecraft.getInstance().font;
868,231
public static String replaceNonUnicodeChars(String text) {<NEW_LINE>StringBuilder newString = new <MASK><NEW_LINE>for (int offset = 0; offset < text.length(); ) {<NEW_LINE>int codePoint = text.codePointAt(offset);<NEW_LINE>offset += Character.charCount(codePoint);<NEW_LINE>// Replace invisible control characters and un...
StringBuilder(text.length());
34,531
public void broadcastMessageToChannel(String channel, Component message) {<NEW_LINE>// get instance of TownyChat plugin<NEW_LINE>Chat instance = (Chat) Bukkit.getPluginManager().getPlugin("TownyChat");<NEW_LINE>// return if TownyChat is disabled<NEW_LINE>if (instance == null)<NEW_LINE>return;<NEW_LINE>// get the destin...
).replace("%message%", legacy);
543,133
public MongoDBTarget unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MongoDBTarget mongoDBTarget = new MongoDBTarget();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
JsonToken token = context.getCurrentToken();
472,529
public void paint(Graphics g) {<NEW_LINE>Label target = (Label) _target;<NEW_LINE>Dimension sz = target.getSize();<NEW_LINE>g.setColor(target.getBackground());<NEW_LINE>g.fillRect(0, 0, <MASK><NEW_LINE>String label = target.getText();<NEW_LINE>if (label == null)<NEW_LINE>return;<NEW_LINE>g.setFont(target.getFont());<NE...
sz.width, sz.height);
1,713,001
final UpdateClusterKafkaVersionResult executeUpdateClusterKafkaVersion(UpdateClusterKafkaVersionRequest updateClusterKafkaVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterKafkaVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
137,223
final BatchGetReportGroupsResult executeBatchGetReportGroups(BatchGetReportGroupsRequest batchGetReportGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetReportGroupsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Batch...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
624,269
protected void performRewrite(TransformationContext ctx) throws Exception {<NEW_LINE>// path should be the typecast expression<NEW_LINE>TreePath path = ctx.getPath();<NEW_LINE>TreePath exprPath = exprHandle.resolve(ctx.getWorkingCopy());<NEW_LINE>if (path.getLeaf().getKind() != Tree.Kind.TYPE_CAST || exprPath == null |...
(ExpressionTree) exprPath.getLeaf();
1,165,714
protected void EnsembleWaterfallModel() throws Exception {<NEW_LINE>if (this.recommendedItemListOfAlgs.isEmpty()) {<NEW_LINE>System.out.print("The result of algorithms is null.");<NEW_LINE>return;<NEW_LINE>} else if (this.recommendedItemListResult.isEmpty() && !this.recommendedItemListOfAlgs.isEmpty()) {<NEW_LINE>this....
this.recommendedItemListOfAlgs.get(0);
1,689,794
static PolystarShape parse(JsonReader reader, LottieComposition composition, int d) throws IOException {<NEW_LINE>String name = null;<NEW_LINE>PolystarShape.Type type = null;<NEW_LINE>AnimatableFloatValue points = null;<NEW_LINE>AnimatableValue<PointF, PointF> position = null;<NEW_LINE>AnimatableFloatValue rotation = n...
parseFloat(reader, composition, false);
1,453,410
private void performPreAssignmentCleanup(List<DatastreamGroup> datastreamGroups) {<NEW_LINE>// Map between instance to tasks assigned to the instance.<NEW_LINE>Map<String, Set<DatastreamTask>> previousAssignmentByInstance = _adapter.getAllAssignedDatastreamTasks();<NEW_LINE>_log.info("performPreAssignmentCleanup: start...
strategy.getTasksToCleanUp(datastreamsPerConnectorType, previousAssignmentByInstance);
554,761
final DescribeStackResourceDriftsResult executeDescribeStackResourceDrifts(DescribeStackResourceDriftsRequest describeStackResourceDriftsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStackResourceDriftsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
DescribeStackResourceDriftsResult>(new DescribeStackResourceDriftsResultStaxUnmarshaller());
1,068,424
public void markJobStarted(long key, Timestamp startTS) {<NEW_LINE>logger.entering(CLASSNAME, "markJobStarted", new Object[] { key, startTS });<NEW_LINE>final int retryMax = Integer.getInteger(P_MJS_RETRY_MAX, MJS_RETRY_MAX_DEFAULT);<NEW_LINE>final int retryDelay = Integer.getInteger(P_MJS_RETRY_DELAY, MJS_RETRY_DELAY_...
BatchStatus.STARTED.name());
403,988
private ChiSquareTestResults toResult(List<Row> rows) {<NEW_LINE>ChiSquareTestResult[] result = new <MASK><NEW_LINE>for (Row row : rows) {<NEW_LINE>int id = Integer.parseInt(String.valueOf(row.getField(0)));<NEW_LINE>result[id] = JsonConverter.fromJson((String) row.getField(1), ChiSquareTestResult.class);<NEW_LINE>}<NE...
ChiSquareTestResult[rows.size()];
227,839
public static List<Style> parseListImageStyle(InputStream responseBody) throws ResponseParseException {<NEW_LINE>try {<NEW_LINE>Element root = getXmlRootElement(responseBody);<NEW_LINE>List<Style> styleList = new ArrayList<Style>();<NEW_LINE>List<Element> styleElems = root.getChildren("Style");<NEW_LINE>for (Element e ...
e.getMessage(), e);
1,050,143
public void testAsyncRetryAroundBulkheadFail() throws Exception {<NEW_LINE>syntheticTaskManager.runTest(() -> {<NEW_LINE>// First two tasks should start<NEW_LINE>SyntheticTask<Void> task1 = syntheticTaskManager.newTask();<NEW_LINE>SyntheticTask<Void> task2 = syntheticTaskManager.newTask();<NEW_LINE>Future<Void> future1...
future3 = bean1.runTaskWithFastRetries(task3);
1,237,791
public ListenableFuture<?> execute(RenameSchema statement, TransactionManager transactionManager, Metadata metadata, AccessControl accessControl, Session session, List<Expression> parameters, WarningCollector warningCollector) {<NEW_LINE>CatalogSchemaName source = createCatalogSchemaName(session, statement, Optional.of...
getTarget().getValue());
1,494,652
public static void main(String[] args) {<NEW_LINE>Regions clientRegion = Regions.DEFAULT_REGION;<NEW_LINE>String bucketName = "*** Bucket name ***";<NEW_LINE>String keyName = "*** Object key ***";<NEW_LINE>String filePath = "*** File path ***";<NEW_LINE>try {<NEW_LINE>AmazonS3 s3Client = AmazonS3ClientBuilder.standard(...
= new ArrayList<Tag>();
407,778
private static void printNodeInternal(List<TreeNode> list, int level, int maxLevel) {<NEW_LINE>if (list.isEmpty() || CommonUtils.isAllElementsNull(list)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int floor = maxLevel - level;<NEW_LINE>int endgeLines = (int) Math.pow(2, (Math.max(<MASK><NEW_LINE>int firstSpaces = (int) Mat...
floor - 1, 0)));
1,695,208
public void call(FullAccessIntArrPointer dst, int stride, ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer left) {<NEW_LINE>dst = dst.shallowCopy();<NEW_LINE>PositionableIntArrPointer <MASK><NEW_LINE>final short I = pLeft.getAndInc();<NEW_LINE>final short J = pLeft.getAndInc();<NEW_LINE>final short K = pLeft.getAndIn...
pLeft = PositionableIntArrPointer.makePositionable(left);
1,816,234
protected Consumer<?> loadValidator(Element validatorElement) {<NEW_LINE>String className = validatorElement.attributeValue("class");<NEW_LINE>String scriptPath = validatorElement.attributeValue("script");<NEW_LINE>String script = validatorElement.getText();<NEW_LINE>Consumer<?> validator = null;<NEW_LINE>if (StringUti...
validatorElement, context.getMessagesPack());
1,516,161
static long lsnToLong(final String lsn) {<NEW_LINE>final int slashIndex = lsn.lastIndexOf('/');<NEW_LINE><MASK><NEW_LINE>final String logicalXLogStr = lsn.substring(0, slashIndex);<NEW_LINE>// parses as a long but then cast to int. this allows us to retain the full 32 bits of the integer<NEW_LINE>// as opposed to the r...
Preconditions.checkArgument(slashIndex >= 0);
1,764,965
public Collection<ThingUID> removeOlderResults(final DiscoveryService source, final long timestamp, @Nullable final Collection<ThingTypeUID> thingTypeUIDs, @Nullable ThingUID bridgeUID) {<NEW_LINE>Set<ThingUID> removedResults = new HashSet<>();<NEW_LINE>for (final DiscoveryListener listener : listeners) {<NEW_LINE>try ...
source, timestamp, thingTypeUIDs, bridgeUID);
588,950
final DeprovisionByoipCidrResult executeDeprovisionByoipCidr(DeprovisionByoipCidrRequest deprovisionByoipCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deprovisionByoipCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
1,328,094
private void init(String instanceType, String amiID, String bidPrice, String securityGroup) throws Exception {<NEW_LINE>AWSCredentials credentials = null;<NEW_LINE>try {<NEW_LINE>credentials = <MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new AmazonClientException("Cannot load the credentials from the credenti...
new ProfileCredentialsProvider().getCredentials();
1,158,095
public HistoricalOptions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HistoricalOptions historicalOptions = new HistoricalOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
367,096
public APIGatewayProxyResponseEvent insertUser(Map<String, Object> event, Context context) {<NEW_LINE>if (Utils.warmup(event)) {<NEW_LINE>LOGGER.info("Warming up");<NEW_LINE>return new APIGatewayProxyResponseEvent().withHeaders(CORS).withStatusCode(200);<NEW_LINE>}<NEW_LINE>long startTimeMillis = System.currentTimeMill...
("body"), User.class);
634,680
private void loadNode2() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_ServerDiagnosticsSummaryDataType, new QualifiedName(0, "ServerDiagnosticsSummaryDataType"), new LocalizedText("en", "ServerDiagnosticsSumma...
this.nodeManager.addNode(node);
1,337,682
public void onItemLongClick(int position, View v, TimelineModel item) {<NEW_LINE>if (getView() == null || getView().getPullRequest() == null)<NEW_LINE>return;<NEW_LINE>if (item.getType() == TimelineModel.COMMENT || item.getType() == TimelineModel.HEADER) {<NEW_LINE>if (v.getId() == R.id.commentMenu && item.getType() ==...
), comment.getBody());
1,439,423
public void emitInvoke(Invoke x) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.PTX, "emitInvoke: x=%s ", x);<NEW_LINE>LoweredCallTargetNode callTarget = (LoweredCallTargetNode) x.callTarget();<NEW_LINE>final Stamp stamp = x.asNode().stamp(NodeView.DEFAULT);<NEW_LINE>LIRKind lirKind = resolveStamp(stamp);<NEW_LINE>Allo...
= new CallingConvention(0, result);
1,633,609
public Pair<Double, Double> calculateContaminationFromHoms(final List<PileupSummary> tumorSites) {<NEW_LINE>for (double minMaf = INITIAL_MAF_THRESHOLD; minMaf >= 0; minMaf -= MAF_STEP_SIZE) {<NEW_LINE>final Pair<Double, Double> result;<NEW_LINE>if (minMaf > MAF_TO_SWITCH_TO_HOM_REF) {<NEW_LINE>result = calculateContami...
Strategy.UNSCRUPULOUS_HOM_REF, tumorSites, minMaf);
735,127
public HelidonServiceLoader<T> build() {<NEW_LINE>// first merge the lists together<NEW_LINE>List<ServiceWithPriority<T>> services = new LinkedList<>(customServices);<NEW_LINE>if (useSystemServiceLoader) {<NEW_LINE>Set<String> uniqueImplementations = new HashSet<>();<NEW_LINE>if (replaceImplementations) {<NEW_LINE>cust...
<>(orderByPriority(withoutExclusions));
1,323,066
public synchronized void save() throws IOException {<NEW_LINE>if (savingQueue.isEmpty())<NEW_LINE>return;<NEW_LINE>List<Product4<String, byte[], Long, Integer>> list = new ArrayList<>();<NEW_LINE>while (!savingQueue.isEmpty()) {<NEW_LINE>list.add(savingQueue.poll());<NEW_LINE>}<NEW_LINE>try (OutputStream outIndex = Fil...
.wrap(product4._2));
624,018
public void transition(PSAttempt psAttempt, PSAttemptEvent event) {<NEW_LINE>psAttempt.setFinishTime();<NEW_LINE>// send PS_ATTEMPT_FAILED to AMParameterServer, AMParameterServer will retry another attempt<NEW_LINE>// or failed<NEW_LINE>switch(finishState) {<NEW_LINE>case FAILED:<NEW_LINE>psAttempt.getContext().getEven...
getContainerToken(), ContainerLauncherEventType.CONTAINER_REMOTE_CLEANUP);
1,004,370
public void marshall(Patch patch, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (patch == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(patch.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marshall(patc...
patch.getArch(), ARCH_BINDING);
827,101
final DescribeTrackerResult executeDescribeTracker(DescribeTrackerRequest describeTrackerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTrackerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
311,152
protected void validateLine(String fmt, Pairs argPairs) {<NEW_LINE>initValidator(fmt);<NEW_LINE>if (argPairs != null) {<NEW_LINE>validateLineWithPositionalArgs(fmt, argPairs);<NEW_LINE>} else {<NEW_LINE>if (positionalPlaceholders.size() > 0)<NEW_LINE>abort("#E004: No positional arguments, but expected {{2}} for '{{1}}'...
fmt, positionalPlaceholders.size());
1,753,053
protected synchronized void addFromCheckpoint(ManagedObject managedObject, Transaction transaction) throws ObjectManagerException {<NEW_LINE>final String methodName = "addFromCheckpoint";<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.entry(this, cclass, methodName, new Object[] { ...
owningToken, new Long(0));
1,500,056
private static Bundle toBundle(@Nullable RemoteMessage.Notification notification) {<NEW_LINE>if (notification == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Bundle serializedNotification = new Bundle();<NEW_LINE>serializedNotification.putString("body", notification.getBody());<NEW_LINE>serializedNotification.putS...
"vibrateTimings", notification.getVibrateTimings());
94,226
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player != null) {<NEW_LINE>Target target = new TargetControlledCreaturePermanent(0, Integer.MAX_VALUE, new FilterControlledCreaturePermanent(), true);<NEW_LINE>player.chooseTarget(Outcome.Sa...
opponent = game.getPlayer(uuid);
312,893
private String unpackOva(String templatePath, String templateName, long processTimeout) throws InternalErrorException {<NEW_LINE>LOGGER.info("Template processing - untar OVA package. templatePath: " + templatePath + ", templateName: " + templateName);<NEW_LINE>String templateFileFullPath = templatePath + File.separator...
setWorkDir(templateFile.getParent());
963,297
static Sort create(Context ctx, long obj) {<NEW_LINE>Z3_sort_kind sk = Z3_sort_kind.fromInt(Native.getSortKind(ctx.nCtx(), obj));<NEW_LINE>switch(sk) {<NEW_LINE>case Z3_ARRAY_SORT:<NEW_LINE>return new ArraySort<>(ctx, obj);<NEW_LINE>case Z3_BOOL_SORT:<NEW_LINE>return new BoolSort(ctx, obj);<NEW_LINE>case Z3_BV_SORT:<NE...
DatatypeSort<>(ctx, obj);
191,562
private void initParametersAndDoExperiment() {<NEW_LINE>int[] numberOfSizesAndQueries = { 100000, 1000000, 10000000, 100000000 };<NEW_LINE>int maxSize = numberOfSizesAndQueries[numberOfSizesAndQueries.length - 1];<NEW_LINE>int[] randomIntKeys = new int[maxSize];<NEW_LINE>double[] randomDoubleKeys = new double[maxSize];...
] queriesInt = new int[maxSize];
680,401
public StreamEvent find(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder, StreamEventCloner storeEventCloner) {<NEW_LINE>Collection<StreamEvent> notStreamEvents = notCollectionExecutor.findEvents(matchingEvent, indexedEventHolder);<NEW_LINE>if (notStreamEvents == null) {<NEW_LINE>return exhaustiveCollect...
= new ComplexEventChunk<StreamEvent>();
1,411,745
private static void testQualifierEvaluation() {<NEW_LINE>// Variable reference<NEW_LINE>String variable = "Hello";<NEW_LINE>Producer<String> stringProducer = variable::toLowerCase;<NEW_LINE>variable = "GoodBye";<NEW_LINE>// Check that the evaluation of variable happens at taking the reference not at the evaluation<NEW_...
) : returnSequenceAsString())::toLowerCase;
178,515
public void clear() {<NEW_LINE>events.clear();<NEW_LINE>events.put(COMMAND_SUCCESSFUL, new Semaphore(MAX_EVENTS));<NEW_LINE>events.put(COMMAND_FAILED, new Semaphore(MAX_EVENTS));<NEW_LINE>events.put(COMMAND_ENQUEUED, new Semaphore(MAX_EVENTS));<NEW_LINE>events.put(COMMAND_NOT_ENQUEUED, new Semaphore(MAX_EVENTS));<NEW_L...
event = events.keyAt(i);
1,334,791
protected List<VoD> sortAndCropVodList(List<VoD> vodList, int offset, int size, String sortBy, String orderBy) {<NEW_LINE>if (("name".equals(sortBy) || "date".equals(sortBy)) && orderBy != null) {<NEW_LINE>Collections.sort(vodList, (vod1, vod2) -> {<NEW_LINE>Comparable c1 = null;<NEW_LINE>Comparable c2 = null;<NEW_LINE...
valueOf(vod2.getCreationDate());
752,610
public void loadSettings() {<NEW_LINE>DBPConnectionConfiguration connectionInfo = site.getActiveDataSource().getConnectionConfiguration();<NEW_LINE>DBPDriver driver = getSite().getDriver();<NEW_LINE>super.loadSettings();<NEW_LINE>// Load values from new connection info<NEW_LINE>if (hostText != null) {<NEW_LINE>if (!Com...
getDriver().getDefaultPort());
695,955
private void jbInit() throws Exception {<NEW_LINE>CompiereColor.setBackground(panel);<NEW_LINE>newBorder = new TitledBorder("");<NEW_LINE>accountBorder = new TitledBorder("");<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>newPanel.setBorder(newBorder);<NEW_LINE>newPanel.setLayout(newLayout);<NEW_LINE>newBorder.set...
add(accountOKPanel, BorderLayout.SOUTH);
1,560,832
public StorageObject upload(final Path file, Local local, final BandwidthThrottle throttle, final StreamListener listener, final TransferStatus status, final ConnectionCallback prompt) throws BackgroundException {<NEW_LINE>if (status.getLength() >= threshold) {<NEW_LINE>if (!new HostPreferences(session.getHost()).getBo...
throttle, listener, status, prompt);
1,369,380
private void scheduleConfigurableTask(final long initialDelay, final ConfigPropertyConstants enabledConstraint, final ConfigPropertyConstants constraint, final Event event) {<NEW_LINE>try (QueryManager qm = new QueryManager()) {<NEW_LINE>final ConfigProperty enabledProperty = qm.getConfigProperty(enabledConstraint.getG...
) 60 * (long) 1000);
514,288
public void train(TimeSeries.DataSequence data) {<NEW_LINE>this.data = data;<NEW_LINE>int n = data.size();<NEW_LINE>DataPoint dp = null;<NEW_LINE>DataSet observedData = new DataSet();<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>dp = new Observation(data.get(i).value);<NEW_LINE>dp.setIndependentValue("x", i);<NEW_LI...
TripleExponentialSmoothingModel(alpha, beta, gamma);
533,892
public static Map<Payment, PointSensitivityBuilder> normalize(Map<Payment, PointSensitivityBuilder> input) {<NEW_LINE>Map<Payment, PointSensitivityBuilder> output = new HashMap<>(input);<NEW_LINE>// copy for sorting<NEW_LINE>List<Payment> sortedPayments = new ArrayList<>(input.keySet());<NEW_LINE>Collections.sort(sorte...
previousPayment = sortedPayments.get(0);
45,775
private void writeTaskProperties(TransformerHandler handler, CustomPropertyManager customPropertyManager) throws SAXException {<NEW_LINE>writeTaskProperty(handler, "tpd0", "type", "default", "icon");<NEW_LINE>writeTaskProperty(handler, "tpd1", "priority", "default", "icon");<NEW_LINE>writeTaskProperty(handler, "tpd2", ...
"tpd8", "coordinator", "default", "text");
1,786,402
public ItemStack craft(ItemStack input, List<ItemStack> expansions, boolean preview) {<NEW_LINE><MASK><NEW_LINE>output.stackSize = 1;<NEW_LINE>int expansionsAdded = 0;<NEW_LINE>for (ItemStack chipset : expansions) {<NEW_LINE>if (StackUtil.isMatchingItem(EnumRedstoneChipset.RED.getStack(), chipset, true, true)) {<NEW_LI...
ItemStack output = input.copy();
712,127
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final I...
String shifterOperand = shifterPair.first();
641,610
private synchronized void updateProgressNotification() {<NEW_LINE>// refresh UI every 1 seconds to avoid too much workload on main thread<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>if (now - lastUpdated > ONTRANSFERUPDATE_REFRESH_MILLIS) {<NEW_LINE>lastUpdated = now;<NEW_LINE>} else {<NEW_LINE>return;<NEW...
long totalSizeTransferred = megaApi.getTotalUploadedBytes();
1,561,358
private void buildCharClass() {<NEW_LINE>if (!silent) {<NEW_LINE>if (getLocalFlags().isIgnoreCase()) {<NEW_LINE>List<Pair<Integer, int[]>> multiCodePointExpansions = caseClosureMultiCodePoint();<NEW_LINE>if (multiCodePointExpansions.size() > 0) {<NEW_LINE>pushGroup();<NEW_LINE>addCharClass(curCharClass.toCodePointSet()...
] to = pair.getRight();
1,011,438
public static String computeConfigRootDocFileName(String configRootClassName, String rootName) {<NEW_LINE>String sanitizedClassName;<NEW_LINE>final Matcher matcher = Constants.PKG_PATTERN.matcher(configRootClassName);<NEW_LINE>if (!matcher.find()) {<NEW_LINE>sanitizedClassName = rootName + Constants.DASH + hyphenate(co...
+ Constants.RUNTIME + Constants.DOT;
130,903
private void makeConstructor() {<NEW_LINE>this.mv = this.classWriter.visitMethod(ACC_PUBLIC, CONSTRUCTOR_METHOD_NAME, "(Lcom/googlecode/aviator/AviatorEvaluatorInstance;Ljava/util/List;Lcom/googlecode/aviator/lexer/SymbolTable;)V", null, null);<NEW_LINE>this.mv.visitCode();<NEW_LINE>this.mv.visitVarInsn(ALOAD, 0);<NEW_...
INVOKESPECIAL, JAVA_TYPE_OWNER, CONSTRUCTOR_METHOD_NAME, "(Ljava/lang/String;Lcom/googlecode/aviator/lexer/SymbolTable;)V");
891,024
public static String toHexString(byte[] array, String separator, int offset, int length) {<NEW_LINE>validateBounds(array, offset, length);<NEW_LINE>char[] hexChars;<NEW_LINE>if (separator.length() != 0) {<NEW_LINE>char[] sepChars = separator.toCharArray();<NEW_LINE>hexChars = new char[length * 2 + sepChars.length * (le...
HEX_CHARS[v >>> 4];
1,323,012
public static ListAlbumsResponse unmarshall(ListAlbumsResponse listAlbumsResponse, UnmarshallerContext context) {<NEW_LINE>listAlbumsResponse.setRequestId(context.stringValue("ListAlbumsResponse.RequestId"));<NEW_LINE>listAlbumsResponse.setCode(context.stringValue("ListAlbumsResponse.Code"));<NEW_LINE>listAlbumsRespons...
(context.integerValue("ListAlbumsResponse.TotalCount"));
1,633,078
public void fingerprint(Fingerprint fp) {<NEW_LINE>fp.addBoolean(legacyExternalRunfiles);<NEW_LINE>fp.addPath(suffix);<NEW_LINE>Map<PathFragment, Artifact> symlinks = getSymlinksAsMap(null);<NEW_LINE>fp.addInt(symlinks.size());<NEW_LINE>for (Map.Entry<PathFragment, Artifact> symlink : symlinks.entrySet()) {<NEW_LINE>fp...
addPath(artifact.getExecPath());
1,726,581
public void enter(VirtualFrame frame) {<NEW_LINE>// TODO: assert PythonLanguage.getContext().ownsGil() :<NEW_LINE>// PythonContext.dumpStackOnAssertionHelper("callee w/o GIL");<NEW_LINE>// tfel: Create our frame reference here and store it so that<NEW_LINE>// there's no reference to it from the caller side.<NEW_LINE>PF...
PArguments.setCurrentFrameInfo(frame, thisFrameRef);
385,387
private CompletableFuture<String> authorize() {<NEW_LINE>HttpClient.DerivedClientBuilder builder = client.newBuilder();<NEW_LINE>builder.addOrReplaceInterceptor(TokenRefreshInterceptor.NAME, null);<NEW_LINE>HttpClient clone = builder.build();<NEW_LINE>URL url;<NEW_LINE>try {<NEW_LINE>url = new URL(URLUtils.join(config....
) + "), to the authorization request. Missing header:[" + LOCATION + "]!");
869,955
final DeleteLayerResult executeDeleteLayer(DeleteLayerRequest deleteLayerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLayerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new DeleteLayerResultJsonUnmarshaller());
562,626
private static ExprInfo createExprInfo(String s) throws IllegalArgumentException, SkriptAPIException {<NEW_LINE>final ExprInfo r = new ExprInfo(StringUtils.count(s, '/') + 1);<NEW_LINE>r.isOptional = s.startsWith("-");<NEW_LINE>if (r.isOptional)<NEW_LINE>s = "" + s.substring(1);<NEW_LINE>if (s.startsWith("*")) {<NEW_LI...
getClassInfo(p.getFirst());
729,361
public PolicyAttributeTypeDescription unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PolicyAttributeTypeDescription policyAttributeTypeDescription = new PolicyAttributeTypeDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
().unmarshall(context));
1,286,233
public static void down(GrayS32 input, GrayS32 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
+ y * input.stride + maxX;
955,769
private String addM2OBinding(ActionBuilderLine line, boolean search, boolean filter) {<NEW_LINE>String fname = "setVar" + varCount;<NEW_LINE>varCount += 1;<NEW_LINE>String tModel = getTargetModel(line);<NEW_LINE>String srcModel = getSourceModel(line);<NEW_LINE>StringBuilder stb = new StringBuilder();<NEW_LINE>fbuilder....
(format("if (!val) {", 2));
452,971
public static void main(String[] arg) throws IOException {<NEW_LINE>String version = arg[0];<NEW_LINE>String inputFilePath = arg[1];<NEW_LINE>String outputFilePath = arg[2];<NEW_LINE>String inputHighResolutionFilePath = arg[3];<NEW_LINE>String outputHighResolutionFilePath = arg[4];<NEW_LINE>String fullText = String.for...
read(new File(inputFilePath));
1,763,000
public Response update(final ClientRepresentation rep) {<NEW_LINE>auth.clients().requireConfigure(client);<NEW_LINE>try {<NEW_LINE>session.setAttribute(ClientSecretConstants.CLIENT_SECRET_ROTATION_ENABLED, Boolean.FALSE);<NEW_LINE>session.clientPolicy().triggerOnEvent(new AdminClientUpdateContext(rep, client, auth.admi...
.noContent().build();
716,074
public static EncodingType chooseBest(List<AcceptEncoding> entries) {<NEW_LINE>Collections.sort(entries);<NEW_LINE>HashSet<EncodingType> bannedEncoding = new HashSet<>();<NEW_LINE>// Add the banned entries to the disallow list<NEW_LINE>int lastEntry = entries.size() - 1;<NEW_LINE>while (lastEntry >= 0 && entries.get(la...
removed = entries.remove(lastEntry);
1,765,055
public UserManager start() {<NEW_LINE>if (this.userService == null) {<NEW_LINE>String realm = settings.getString(Keys.realm.userService, "${baseFolder}/users.conf");<NEW_LINE>IUserService service = null;<NEW_LINE>if (legacyBackingServices.containsKey(realm)) {<NEW_LINE>// create the user service from the legacy config<...
logger.warn(Constants.BORDER2);
1,316,150
// returns how much to add to offset<NEW_LINE>private int generatePropertyEncodeDecode(final Token token, final String typeName, final StringBuilder encode, final StringBuilder decode, final int currentOffset) {<NEW_LINE>final char varName = Character.toLowerCase(typeName.charAt(0));<NEW_LINE>final String propertyName ...
+ "\t}\n", varName, propertyName));
662,397
public HoodiePairData<HoodieKey, HoodieRecordLocation> findMatchingFilesForRecordKeys(HoodieWriteConfig config, HoodieEngineContext context, HoodieTable hoodieTable, HoodiePairData<String, String> partitionRecordKeyPairs, HoodieData<Pair<String, HoodieKey>> fileComparisonPairs, Map<String, List<BloomIndexFileInfo>> par...
inputParallelism, config.getBloomIndexParallelism());
1,154,626
public void valueChanged(ListSelectionEvent e) {<NEW_LINE>if (e.getValueIsAdjusting() || firingTableDataChanged) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>helpButton.setEnabled(false);<NEW_LINE>String fullActionName = getSelectedActionName();<NEW_LINE>if (fullActionName == null) {<NEW_LINE>statusLabel.setText("");<NEW_LIN...
ks = keyStrokesByFullName.get(fullActionName);