idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,295,375
public BoundStorageHandle bind(Attributes attributes) {<NEW_LINE>AggregatorHandle<T> aggregatorHandle = activeCollectionStorage.get(attributes);<NEW_LINE>if (aggregatorHandle != null && aggregatorHandle.acquire()) {<NEW_LINE>// At this moment it is guaranteed that the Bound is in the map and will not be removed.<NEW_LI...
activeCollectionStorage.putIfAbsent(attributes, aggregatorHandle);
584,916
public void performOperation(POMModel mdl) {<NEW_LINE>Reporting rep = mdl.getProject().getReporting();<NEW_LINE>if (rep == null) {<NEW_LINE>rep = mdl<MASK><NEW_LINE>mdl.getProject().setReporting(rep);<NEW_LINE>}<NEW_LINE>ReportPlugin plg = rep.findReportPluginById(Constants.GROUP_APACHE_PLUGINS, Constants.PLUGIN_CHECKS...
.getFactory().createReporting();
365,420
protected OAuth2Authentication deserializeOauth2Authentication(byte[] data) {<NEW_LINE>Map<String, Object> map = JsonUtils.readValue(data, new TypeReference<Map<String, Object>>() {<NEW_LINE>});<NEW_LINE>Authentication userAuthentication = null;<NEW_LINE>if (map.get(USER_AUTHENTICATION_UAA_AUTHENTICATION) != null) {<NE...
String) map.get(OAUTH2_REQUEST_CLIENT_ID);
953,676
private void initSmilies() {<NEW_LINE>// Load the smilies<NEW_LINE>Properties smileyProps = new Properties();<NEW_LINE>try {<NEW_LINE>smileyProps.loadFromXML(ChatProcessor.class.getClassLoader().getResourceAsStream("net/rptools/maptool/client/ui/chat/smileyMap.xml"));<NEW_LINE>} catch (IOException ioe) {<NEW_LINE>log.e...
(String) e.nextElement();
855,083
private void initTabAndPager() {<NEW_LINE>mPageAdapter = new QDRecyclerViewAdapter();<NEW_LINE>mPageAdapter.setItemCount(mCurrentItemCount);<NEW_LINE>mContentViewPager.setAdapter(mPageAdapter);<NEW_LINE>mContentViewPager.setCurrentItem(mDestPage.getPosition(), false);<NEW_LINE>QMUITabBuilder tabBuilder = mTabSegment.ta...
2), false, true));
1,408,615
public void marshall(CreatePipelineRequest createPipelineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createPipelineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createPipelineRequest...
createPipelineRequest.getRole(), ROLE_BINDING);
1,821,421
public static void init(PluginManager pluginManager, PluginConfiguration pluginConfiguration, ClassLoader appClassLoader) {<NEW_LINE><MASK><NEW_LINE>// synthetic classloader, skip<NEW_LINE>if (appClassLoader instanceof WatchResourcesClassLoader.UrlOnlyClassLoader)<NEW_LINE>return;<NEW_LINE>// init only if the classload...
LOGGER.debug("Init plugin at classLoader {}", appClassLoader);
1,104,014
public final void structuredType() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST structuredType_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case PACKED:<NEW_LINE>{<NEW_LINE>PascalAST tmp44_AST = null;<NEW_LINE>tmp44_AST =...
astFactory.addASTChild(currentAST, returnAST);
843,403
private static void appendBzlGlobals(Builtins.Builder builtins, Map<String, Object> starlarkGlobals) {<NEW_LINE>for (Entry<String, Object> entry : starlarkGlobals.entrySet()) {<NEW_LINE>Object obj = entry.getValue();<NEW_LINE>Value.Builder value = Value.newBuilder();<NEW_LINE>if (obj instanceof StarlarkCallable) {<NEW_...
getStarlarkBuiltin(obj.getClass());
286,068
PollerFlux<RenderingSession, RenderingSession> beginSessionInternal(String sessionId, BeginSessionOptions options, Context context) {<NEW_LINE>Objects.requireNonNull(sessionId, "'sessionId' cannot be null.");<NEW_LINE>Objects.requireNonNull(options, "'options' cannot be null.");<NEW_LINE>Objects.requireNonNull(context,...
().getValue()));
1,343,588
public Request<DeletePolicyVersionRequest> marshall(DeletePolicyVersionRequest deletePolicyVersionRequest) {<NEW_LINE>if (deletePolicyVersionRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeletePolicyVersionRequest)");<NEW_LINE>}<NEW_LINE>Request<DeletePolicyVersionRequ...
request.setHttpMethod(HttpMethodName.DELETE);
898,156
public void repair(final ODatabaseSession graph, final OCommandOutputListener outputListener, final Map<String, List<String>> options) {<NEW_LINE>message(outputListener, "Repair of graph '" + graph.getURL() + "' is started ...\n");<NEW_LINE>final long beginTime = System.currentTimeMillis();<NEW_LINE>final ORepairStats ...
" repairedVertices.: " + stats.repairedVertices + "\n");
704,981
public final <B> Value<B> lens(Lambda1<A, B> getter, Lambda2<A, B, A> setter) {<NEW_LINE>Value<A> va = this;<NEW_LINE>return new Value<B>() {<NEW_LINE><NEW_LINE>public ValueOutput<B> construct(Stream<B> sWriteB) {<NEW_LINE>return Transaction.run(() -> {<NEW_LINE>StreamLoop<A> <MASK><NEW_LINE>ValueOutput<A> out = va.con...
sWriteA = new StreamLoop<>();
290,795
private static String formatCoordinate(double coordinate, int outputType) {<NEW_LINE>if (coordinate < -180.0 || coordinate > 180.0 || Double.isNaN(coordinate)) {<NEW_LINE>return "Error. Wrong coordinates data!";<NEW_LINE>}<NEW_LINE>if ((outputType != FORMAT_DEGREES) && (outputType != FORMAT_MINUTES) && (outputType != F...
))).append(DELIMITER_MINUTES);
405,782
public void actionPerformed(AnActionEvent e) {<NEW_LINE>Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null)<NEW_LINE>return;<NEW_LINE>OccurenceNavigator navigator = <MASK><NEW_LINE>if (navigator == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!hasOccurenceToGo(navigator)) {<NEW_LINE>r...
getNavigator(e.getDataContext());
1,699,076
private void earlyBindStateIfNeeded() throws IllegalArgumentException, IllegalAccessException {<NEW_LINE>if (keyCoder != null) {<NEW_LINE>if (doFn != null) {<NEW_LINE>DoFnSignature signature = DoFnSignatures.getSignature(doFn.getClass());<NEW_LINE>FlinkStateInternals.EarlyBinder earlyBinder = new FlinkStateInternals.Ea...
field().get(doFn);
361,502
public BatchOperator<?> transform(BatchOperator<?> input) {<NEW_LINE>List<PipelineModel> pipelineModels = splitPipelineModel(true);<NEW_LINE>int maxNumThread = getMaxNumThread(this);<NEW_LINE>for (PipelineModel model : pipelineModels) {<NEW_LINE>if (model.transformers.length == 1) {<NEW_LINE>input = model.transformers[...
> pipelineExpandModel = model.save();
845,814
public void benchmark(int sizeInK) {<NEW_LINE>String[<MASK><NEW_LINE>for (int i = 0; i < l.length; i++) {<NEW_LINE>l[i] = "typical ascii string" + i;<NEW_LINE>}<NEW_LINE>System.out.println("Warming up...");<NEW_LINE>// warm-up<NEW_LINE>utf8encode(l, 10000);<NEW_LINE>utf8encodeFast(l, 10000);<NEW_LINE>long startTime, en...
] l = new String[1000];
836,970
public io.kubernetes.client.proto.V2beta2Autoscaling.ObjectMetricStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V2beta2Autoscaling.ObjectMetricStatus result = new io.kubernetes.client.proto.V2beta2Autoscaling.ObjectMetricStatus(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = ...
.describedObject_ = describedObjectBuilder_.build();
1,226,120
void performRecovery() throws StoreException {<NEW_LINE>try {<NEW_LINE>readCleanupTokenAndPopulateRecoveryRange();<NEW_LINE>if (hardDeleteRecoveryRange.getSize() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StoreMessageReadSet readSet = new StoreMessageReadSet(readOptionsList);<NEW_LINE>Iterator<HardDeleteInfo> hardDel...
) + " occurred while performing hard delete ", e, errorCode);
1,541,601
final DBClusterSnapshot executeCopyDBClusterSnapshot(CopyDBClusterSnapshotRequest copyDBClusterSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyDBClusterSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,677,260
protected void doRunCacheCommand(KeycloakSession session, Cache<String, SessionEntityWrapper> cache) {<NEW_LINE>String realmName = getArg(1);<NEW_LINE>String clientId = getArg(2);<NEW_LINE>String username = getArg(3);<NEW_LINE>int count = getIntArg(4);<NEW_LINE>int batchCount = getIntArg(5);<NEW_LINE>BatchTaskRunner.ru...
client = realm.getClientByClientId(clientId);
376,079
public void customLayout(View v) {<NEW_LINE>final TextView tvSubmit = (TextView) v.findViewById(R.id.tv_finish);<NEW_LINE>final TextView tvAdd = (TextView) v.<MASK><NEW_LINE>ImageView ivCancel = (ImageView) v.findViewById(R.id.iv_cancel);<NEW_LINE>tvSubmit.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_L...
findViewById(R.id.tv_add);
1,791,949
final CreateThemeResult executeCreateTheme(CreateThemeRequest createThemeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createThemeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
430,704
protected boolean checkUserPassword(String user, @Sensitive String password, UserRegistry registry, String realmName, Subject clientSubject) throws EntryNotFoundException, CustomRegistryException, RemoteException {<NEW_LINE>String userSecurityName;<NEW_LINE>try {<NEW_LINE>userSecurityName = registry.checkPassword(user,...
groupNames = registry.getGroupsForUser(userSecurityName);
1,482,186
public String convertAuditRecordToMessage(final PwmApplication pwmApplication, final AuditRecord auditRecord) throws PwmUnrecoverableException {<NEW_LINE>final AppConfig domainConfig = pwmApplication.getConfig();<NEW_LINE>final Settings settings = Settings.fromConfiguration(domainConfig);<NEW_LINE>final String auditRec...
cefOutput.append(CEFAuditFormatter.CEF_EXTENSION_SEPARATOR);
38,375
private static boolean dontUseIp(String nonProxyHosts, String host) {<NEW_LINE>if (host == null)<NEW_LINE>return false;<NEW_LINE>String ip = null;<NEW_LINE>try {<NEW_LINE>ip = InetAddress.getByName(host).getHostAddress();<NEW_LINE>} catch (UnknownHostException ex) {<NEW_LINE>log.log(Level.FINE, ex.getLocalizedMessage()...
"]. Host's IP " + ip + " found in nonProxyHosts: " + nonProxyHosts);
886,134
final PutEmailIdentityFeedbackAttributesResult executePutEmailIdentityFeedbackAttributes(PutEmailIdentityFeedbackAttributesRequest putEmailIdentityFeedbackAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEmailIdentityFeedbackAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutEmailIdentityFeedbackAttributes");
1,120,088
private static void findNestedClasses(Class<?> clazz, Predicate<Class<?>> predicate, Set<Class<?>> candidates) {<NEW_LINE>if (!isSearchable(clazz)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isInnerClass(clazz) && predicate.test(clazz)) {<NEW_LINE>detectInnerClassCycle(clazz);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Cand...
getSuperclass(), predicate, candidates);
326,284
private Map<String, Request> extractRequestBodies(JsonNode verbNode) {<NEW_LINE>Map<String, Request> results = new HashMap<>();<NEW_LINE>JsonNode requestBody = verbNode.path("requestBody");<NEW_LINE>Iterator<String> contentTypeNames = requestBody.path("content").fieldNames();<NEW_LINE>while (contentTypeNames.hasNext())...
String contentTypeName = contentTypeNames.next();
1,752,773
private SqlNode expandCovariance(final SqlBasicCall proj_call, RelDataTypeFactory typeFactory) {<NEW_LINE>// Expand covariance aggregates<NEW_LINE>if (proj_call.operandCount() != 2) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean pop;<NEW_LINE>boolean flt;<NEW_LINE>if (proj_call.getOperator().isName("COVAR_POP", fa...
operand1, pop, flt, typeFactory);
364,678
public void invoke(Object... args) {<NEW_LINE>int[] results = (int[]) args[0];<NEW_LINE>PermissionAwareActivity activity = (PermissionAwareActivity) args[1];<NEW_LINE>boolean[] rationaleStatuses = (boolean[]) args[2];<NEW_LINE>for (int j = 0; j < permissionsToCheck.size(); j++) {<NEW_LINE>String permission = permission...
output.putString(permission, DENIED);
523,317
public final Conditional_termContext conditional_term() throws RecognitionException {<NEW_LINE>Conditional_termContext _localctx = new Conditional_termContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 48, RULE_conditional_term);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NE...
_errHandler.reportError(this, re);
662,292
public static void preCheckPrePareSQL(Configuration originalConfig, DataBaseType type) {<NEW_LINE>Configuration connConf = originalConfig.getListConfiguration(Key<MASK><NEW_LINE>String table = connConf.getList(Key.TABLE, String.class).get(0);<NEW_LINE>List<String> preSqls = originalConfig.getList(Key.PRE_SQL, String.cl...
.CONNECTION).get(0);
638,201
public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException, RuleErrorException, ActionConflictException {<NEW_LINE>PlatformOptions platformOptions = ruleContext.getConfiguration().getOptions().get(PlatformOptions.class);<NEW_LINE>PlatformInfo.Builder platformBuilder = PlatformInfo.builder().set...
PlatformRule.EXEC_PROPS_ATTR, Type.STRING_DICT);
222,813
public <T> void encode(T t, ByteBuf out) {<NEW_LINE>MergedWarpMessage mergedWarpMessage = (MergedWarpMessage) t;<NEW_LINE>List<AbstractMessage> msgs = mergedWarpMessage.msgs;<NEW_LINE>List<Integer> msgIds = mergedWarpMessage.msgIds;<NEW_LINE>final ByteBuf buffer = Unpooled.buffer(1024);<NEW_LINE>// write placeholder fo...
setInt(0, length - 4);
231,719
private void init() {<NEW_LINE>this.adminClient = new AdminClient(this.url);<NEW_LINE>this.newAdminClient = new AdminClient(this.newUrl);<NEW_LINE>this.cluster = adminClient.getAdminClientCluster();<NEW_LINE>// Validate node exists in the old cluster<NEW_LINE>this.cluster.getNodeById(nodeId);<NEW_LINE>this<MASK><NEW_LI...
.newCluster = newAdminClient.getAdminClientCluster();
1,484,335
public void createBindings() {<NEW_LINE>super.createBindings();<NEW_LINE>AbstractMachine machine = (AbstractMachine) Configuration<MASK><NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LIN...
.get().getMachine();
643,605
public void logging(Calendar calendar) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append(calendar.getTimeInMillis()).append(" ");<NEW_LINE>builder.append(calendar.get(Calendar.YEAR)).append("/").append(calendar.get(Calendar.MONTH) + 1).append("/").appen...
DATE)).append(" ");
220,739
protected Command installCommands(Command clear, Command t9) {<NEW_LINE>Form f = getComponentForm();<NEW_LINE>if (f != null) {<NEW_LINE><MASK><NEW_LINE>if (original instanceof CommandHandler) {<NEW_LINE>original = originalClearCommand;<NEW_LINE>}<NEW_LINE>if (replaceMenu && originalCommands == null) {<NEW_LINE>original...
Command original = f.getClearCommand();
1,136,639
private void addReference(MInOut inout, int referenceId) {<NEW_LINE>// Valid Reference<NEW_LINE>if (referenceId == 0)<NEW_LINE>return;<NEW_LINE>MOrder order = new MOrder(getCtx(), referenceId, get_TrxName());<NEW_LINE>inout.setC_Order_ID(order.getC_Order_ID());<NEW_LINE>inout.setAD_OrgTrx_ID(order.getAD_OrgTrx_ID());<N...
setUser4_ID(order.getUser4_ID());
1,021,681
public Map<String, BlobMetadata> listBlobsByPrefix(String container, String keyPath, String prefix) throws URISyntaxException, StorageException {<NEW_LINE>// NOTE: this should be here: if (prefix == null) prefix = "";<NEW_LINE>// however, this is really inefficient since deleteBlobsByPrefix enumerates everything and<NE...
, properties.getLength()));
1,211,915
public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws DDParser.ParseException {<NEW_LINE>if (nsURI == null) {<NEW_LINE>if (xmi && "timeout".equals(localName)) {<NEW_LINE>if (this.time_out == null) {<NEW_LINE>this.time_out = new com.ibm.ws.javaee.ddmodel.ejbext.TimeOutType(tru...
parser, nsURI, localName, index);
805,093
private static void testVarargs_method() {<NEW_LINE>Integer i1 = new Integer(1);<NEW_LINE>Integer i2 = new Integer(2);<NEW_LINE>Integer i3 = new Integer(3);<NEW_LINE>Integer i = new Integer(4);<NEW_LINE>// varargs with mulitple arguments.<NEW_LINE>int a = bar(i1, i2, i3, i);<NEW_LINE>assertTrue((a == 10));<NEW_LINE>// ...
assertTrue((d == 10));
352,744
protected void checkException() throws IOException, ServiceException, ClientException {<NEW_LINE>if (mContext.getCancellationHandler().isCancelled()) {<NEW_LINE>if (mRequest.deleteUploadOnCancelling()) {<NEW_LINE>abortThisUpload();<NEW_LINE>if (mRecordFile != null) {<NEW_LINE>mRecordFile.delete();<NEW_LINE>}<NEW_LINE>}...
), eTag.getCRC64());
559,746
private HighlightInfo createHighlightInfo(@Nonnull ProblemDescriptor descriptor, @Nonnull LocalInspectionToolWrapper tool, @Nonnull HighlightInfoType level, @Nonnull Set<Pair<TextRange, String>> emptyActionRegistered, @Nonnull PsiElement element) {<NEW_LINE>@NonNls<NEW_LINE>String message = <MASK><NEW_LINE>final Highli...
ProblemDescriptorUtil.renderDescriptionMessage(descriptor, element);
1,550,247
private void postInitComponents(List<UpdateElement> signedVerified, List<UpdateElement> signedUnverified, List<UpdateElement> unsigned, List<UpdateElement> modified, int total) {<NEW_LINE>DefaultMutableTreeNode signedAndValidNode = new DefaultMutableTreeNode("Signed and Valid (" + signedVerified.size() + ")");<NEW_LINE...
signedUnverified.size() + ")");
693,532
public static ShortBuffer stbi_load_16(@NativeType("char const *") CharSequence filename, @NativeType("int *") int[] x, @NativeType("int *") int[] y, @NativeType("int *") int[] channels_in_file, int desired_channels) {<NEW_LINE>if (CHECKS) {<NEW_LINE>check(x, 1);<NEW_LINE>check(y, 1);<NEW_LINE>check(channels_in_file, 1...
desired_channels : channels_in_file[0]));
1,021,550
public int uniquePaths(int rows, int cols) {<NEW_LINE>int[][] uniquePathsToPosition = new int[rows][cols];<NEW_LINE>// 1 unique way to get to left wall cells (go straight down)<NEW_LINE>for (int row = 0; row < rows; row++) {<NEW_LINE>uniquePathsToPosition[row][0] = 1;<NEW_LINE>}<NEW_LINE>// 1 unique way to get to the t...
][col] = uniqueWaysToAboveCell + uniqueWaysToLeftCell;
1,815,560
final UpdateUserProfileResult executeUpdateUserProfile(UpdateUserProfileRequest updateUserProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
1,077,980
protected void evolve() {<NEW_LINE>List<TestChromosome> newGeneration = new ArrayList<>();<NEW_LINE>while (!isNextPopulationFull(newGeneration)) {<NEW_LINE>TestChromosome parent1 = selectionFunction.select(population);<NEW_LINE>TestChromosome parent2 = selectionFunction.select(population);<NEW_LINE>TestChromosome offsp...
crossoverFunction.crossOver(offspring1, offspring2);
1,844,710
private static ObjectParser<TrainedModelDefinition.Builder, Void> createParser(boolean ignoreUnknownFields) {<NEW_LINE>ObjectParser<TrainedModelDefinition.Builder, Void> parser = new ObjectParser<>(NAME, ignoreUnknownFields, TrainedModelDefinition.Builder::builderForParser);<NEW_LINE>parser.declareNamedObject(TrainedMo...
.setProcessorsInOrder(true), PREPROCESSORS);
758,795
protected <T> void invokeMethod(RemoteServiceRequest request, RemoteServiceMethod method, CompletableFuture<RemoteServiceCancelRequest> cancelRequestFuture, CompletableFuture<RRemoteServiceResponse> responsePromise) {<NEW_LINE>startedListeners.forEach(l -> l.onStarted(request.getId()));<NEW_LINE>if (taskTimeout > 0) {<...
error("Can't execute: " + request, e);
541,708
private float calculateTranslationPhase(RecyclerView.ViewHolder draggingItem, RecyclerView.ViewHolder swapTargetItem) {<NEW_LINE>final View swapItemView = swapTargetItem.itemView;<NEW_LINE>final int pos1 = draggingItem.getLayoutPosition();<NEW_LINE>final <MASK><NEW_LINE>CustomRecyclerViewUtils.getDecorationOffsets(mRec...
int pos2 = swapTargetItem.getLayoutPosition();
1,107,007
private String makeRequestWithCheckForCertificate(TaskOutput output, String response, String[] reqParams) {<NEW_LINE>boolean tryAgain = false;<NEW_LINE>do {<NEW_LINE>response = makeRequest(output, response, reqParams);<NEW_LINE>if (output.taskResult == TaskResult.IO_EXCEPTION && output.taskError instanceof IOException)...
output.taskError.getMessage());
710,976
public void checkPackage() {<NEW_LINE>if (epack == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EPUBVersion version = epack.getVersion();<NEW_LINE>if (version != null && version.equals(EPUBVersion.VERSION_3)) {<NEW_LINE>factory.newInstance(report, ValidationType.RENDITION, epack).validate();<NEW_LINE>factory.newInstanc...
LANG, epack).validate();
273,234
private static String[] splitMultipartHeader(String sb) {<NEW_LINE>ArrayList<String> headers = new ArrayList<>(1);<NEW_LINE>int nameStart;<NEW_LINE>int nameEnd;<NEW_LINE>int colonEnd;<NEW_LINE>int valueStart;<NEW_LINE>int valueEnd;<NEW_LINE>nameStart = QuarkusHttpPostBodyUtil.findNonWhitespace(sb, 0);<NEW_LINE>for (nam...
sb.substring(valueStart, valueEnd);
1,739,983
private int seekBestOverlapPosition(float[] inputBuffer, int postion) {<NEW_LINE>int bestOffset;<NEW_LINE>double bestCorrelation, currentCorrelation;<NEW_LINE>int tempOffset;<NEW_LINE>int comparePosition;<NEW_LINE>// Slopes the amplitude of the 'midBuffer' samples<NEW_LINE>precalcCorrReferenceMono();<NEW_LINE>bestCorre...
calcCrossCorr(pRefMidBuffer, inputBuffer, comparePosition);
732,738
public SimulationEvent apply(FlowableEvent event) {<NEW_LINE>if (FlowableEngineEventType.ENTITY_INITIALIZED == event.getType() && (event instanceof FlowableEntityEvent) && ((FlowableEntityEvent) event).getEntity() instanceof ProcessInstance && ((ExecutionEntity) ((FlowableEntityEvent) event).getEntity()).isProcessInsta...
processDefinitionIdKey, processInstance.getProcessDefinitionId());
1,502,937
protected <T> Mono<T> doFindAndModify(String collectionName, Document query, Document fields, Document sort, Class<T> entityClass, UpdateDefinition update, FindAndModifyOptions options) {<NEW_LINE>MongoPersistentEntity<?> entity = mappingContext.getPersistentEntity(entityClass);<NEW_LINE>UpdateContext updateContext = q...
serializeToJsonSafely(mappedUpdate), collectionName));
1,380,712
public void initialize() {<NEW_LINE>metricsPublisherForThreadPool.initialize();<NEW_LINE>Gauge.builder(metricName("threads.active.current.count"), metrics::getCurrentActiveCount).description("The approximate number of threads that are actively executing tasks.").tags(tags).register(meterRegistry);<NEW_LINE>FunctionCoun...
(tags).register(meterRegistry);
666,065
final SendCommandResult executeSendCommand(SendCommandRequest sendCommandRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendCommandRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<SendCommandRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
791,770
final GetFunctionConcurrencyResult executeGetFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFunctionConcurrencyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetFunctionConcurrency");
1,502,695
public ResponseEntity<Void> deleteOrderWithHttpInfo(String orderId) throws RestClientException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'orderId' is set<NEW_LINE>if (orderId == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required p...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
879,939
public okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
157,595
private static void deletePrimaryAndUniqueConstraints(Handle handle, Map<String, Map.Entry<String, Set<String>>> tableWisePrimarySet) {<NEW_LINE>for (Map.Entry<String, Map.Entry<String, Set<String>>> primaryKey : tableWisePrimarySet.entrySet()) {<NEW_LINE>var constraintName = primaryKey.getKey();<NEW_LINE>var tableName...
.getValue().getKey();
35,552
private static CpxAndReInterpretedSimpleVariants extractCpxVariants(final JavaSparkContext ctx, final JavaRDD<AssemblyContigWithFineTunedAlignments> contigsWithCpxAln, final SvDiscoveryInputMetaData svDiscoveryInputMetaData, final JavaRDD<GATKRead> assemblyRawAlignments, final String outputPrefixWithSampleName) {<NEW_L...
.getReferenceSequenceDictionaryBroadcast().getValue();
1,470,755
public void receiveResponse(final Response response, final EndpointReceiver receiver) {<NEW_LINE>Object peer = endpointContextMatcher.getEndpointIdentity(response.getSourceContext());<NEW_LINE>final KeyToken idByToken = tokenGenerator.getKeyToken(response.getToken(), peer);<NEW_LINE>Exchange tempExchange = exchangeStor...
response.getSourceContext(), response);
775,210
public OpenAPI parse(io.swagger.v3.oas.annotations.Operation apiOperation, Operation operation, OpenAPI openAPI, MethodAttributes methodAttributes) {<NEW_LINE>Components components = openAPI.getComponents();<NEW_LINE>Locale locale = methodAttributes.getLocale();<NEW_LINE>if (StringUtils.isNotBlank(apiOperation.summary(...
.forEach(operation::addServersItem));
351,022
private void updateCursorPositionToolTip() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("<html>");<NEW_LINE>if (caretPosition == null) {<NEW_LINE>builder.append(Translator.get("binary_viewer.status.cursorPositionLabel.toolTipText"));<NEW_LINE>} else {<NEW_LINE>String octLabel = Transl...
"binary_viewer.status.cursorPositionLabel.toolTipText")).append(BR_TAG);
406,689
final DeleteAcceleratorResult executeDeleteAccelerator(DeleteAcceleratorRequest deleteAcceleratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAcceleratorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
204,747
private boolean isCloseToCurve(int x, int y, double maxRunDistance, int index) {<NEW_LINE>final double maxD2 = maxRunDistance * maxRunDistance;<NEW_LINE>for (int ip = index; ip < points.size(); ip++) {<NEW_LINE>Point point = points.get(ip);<NEW_LINE>double dx = point.x - x;<NEW_LINE>double dy = point.y - y;<NEW_LINE>do...
double dx = point.x - x;
1,556,181
public ResponseEntity<Void> createUserWithHttpInfo(User body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when...
String, Object>emptyMap());
10,143
private void cleanAndSave(Business business, ProcessVersion processVersion, Integer count) throws Exception {<NEW_LINE>List<String> keepIds = this.keepIds(business, processVersion, count);<NEW_LINE>EntityManager em = business.entityManagerContainer().get(ProcessVersion.class);<NEW_LINE>CriteriaBuilder cb = em.getCriter...
cb.createQuery(ProcessVersion.class);
306,657
private boolean findSpeaker(int utterNum, int sentNum, List<CoreMap> sentences, int startIndex, int endIndex, Dictionaries dict) {<NEW_LINE>List<CoreLabel> sent = sentences.get(sentNum).<MASK><NEW_LINE>for (int i = startIndex; i < endIndex; i++) {<NEW_LINE>if (sent.get(i).get(CoreAnnotations.UtteranceAnnotation.class) ...
get(CoreAnnotations.TokensAnnotation.class);
44,829
boolean show() {<NEW_LINE>panel.cbUpdateIndex.addActionListener(this);<NEW_LINE>// NOI18N<NEW_LINE>okButton = new JButton(NbBundle.getMessage(CheckoutPaths.class, "LBL_CheckoutPaths.OKButton.text"));<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(okButton, okButton.getText());<NEW_LINE>dd = new // NOI18N<NEW_LINE>...
(evt.getNewValue()));
894,247
public ImageData create(HSB backgroundColor, boolean rotated) {<NEW_LINE>ImageData source = null;<NEW_LINE>if (!rotated) {<NEW_LINE>source = CoreImages.getImageDescriptor(CoreImages.FRAME).getImageData();<NEW_LINE>} else {<NEW_LINE>source = CoreImages.getImageDescriptor(CoreImages.FRAME_ROTATED).getImageData();<NEW_LIN...
copy.mixWith(backgroundColor, 0.6f);
1,443,369
public BytesBuffer writeVInt(int value) {<NEW_LINE>// NOTE: negative numbers are not compressed<NEW_LINE>if (value > 0x0fffffff || value < 0) {<NEW_LINE>this.write(0x80 | ((value >>> 28) & 0x7f));<NEW_LINE>}<NEW_LINE>if (value > 0x1fffff || value < 0) {<NEW_LINE>this.write(0x80 | ((value >>> 21) & 0x7f));<NEW_LINE>}<NE...
>> 14) & 0x7f));
260,185
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.sitewhere.grpc.service.AssetManagementGrpc.AssetManagementImplBase#<NEW_LINE>* listAssets(com.sitewhere.grpc.service.GListAssetsRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void listAssets(GListAssetsRequest re...
Builder response = GListAssetsResponse.newBuilder();
604,080
PsiReference resolveTypeName(GraphQLReferenceMixin element) {<NEW_LINE>final String logicalTypeName = GraphQLPsiUtil.getFileName(element.getContainingFile()) + ":" + element.getName();<NEW_LINE>// intentionally not using computeIfAbsent here to avoid locking during long-running write actions<NEW_LINE>// it's better to ...
psiReference != null ? psiReference : NULL_REFERENCE);
1,419,524
public void queryDatabase(DatastoreMetricQuery query, QueryCallback queryCallback) throws DatastoreException {<NEW_LINE>GenOrmQueryResultSet<? extends MetricIdResults> idQuery = getMetricIdsForQuery(query);<NEW_LINE>try {<NEW_LINE>while (idQuery.next()) {<NEW_LINE>MetricIdResults result = idQuery.getRecord();<NEW_LINE>...
String metricId = result.getMetricId();
380,244
private static Optional<Path> determineWatchmanTransportPath(ListeningProcessExecutor executor, ImmutableMap<String, String> env, ExecutableFinder exeFinder, Console console, Clock clock, long timeoutMillis) throws IOException, InterruptedException {<NEW_LINE>Optional<Path> watchmanPathOpt = exeFinder.getOptionalExecut...
.get().toAbsolutePath();
929,154
private void decodeMBlockP(MBlock mBlock, Picture mb, Frame[][] references) {<NEW_LINE>if (P_16x16 == mBlock.curMbType) {<NEW_LINE>decoderInter.decode16x16(<MASK><NEW_LINE>} else if (P_16x8 == mBlock.curMbType) {<NEW_LINE>decoderInter.decode16x8(mBlock, mb, references, L0, L0);<NEW_LINE>} else if (P_8x16 == mBlock.curM...
mBlock, mb, references, L0);
415,924
private int interInstanceConnect(InetSocketAddress sockAddr, String[] args) {<NEW_LINE>try {<NEW_LINE>Socket interInstanceSocket = new Socket(sockAddr.getAddress(), sockAddr.getPort());<NEW_LINE>LockClient lockClient = new LockClient(interInstanceSocket);<NEW_LINE>lockClient.start();<NEW_LINE>PrintStream printStream = ...
serverReadArgCount = Integer.parseInt(serverReadArgCountStr);
1,209,909
public State apply(final char ch, final StringBuilder out) {<NEW_LINE>State state = this;<NEW_LINE>if (Character.isJavaIdentifierPart(ch)) {<NEW_LINE>state = IDENTIFIER;<NEW_LINE>state._start = out.length() - 1;<NEW_LINE>} else if (ch == '"') {<NEW_LINE>state = STRING_LITERAL;<NEW_LINE>out.insert(out.length() - <MASK><...
1, "<font color=\"" + STRING_COLOR + "\">");
1,300,531
public static void response(ShardingService shardingService) {<NEW_LINE><MASK><NEW_LINE>// writeDirectly header<NEW_LINE>ResultSetHeaderPacket header = PacketUtil.getHeader(FIELD_COUNT);<NEW_LINE>byte packetId = header.getPacketId();<NEW_LINE>buffer = header.write(buffer, shardingService, true);<NEW_LINE>// writeDirect...
ByteBuffer buffer = shardingService.allocate();
1,446,511
final RemoveTagsFromResourceResult executeRemoveTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
785,329
public void after(Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.afterInterceptor(target, args);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!validate(args))...
responseHeaderRecorder.recordHeader(recorder, response);
213,043
public void execute(AdminCommandContext context) {<NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>try {<NEW_LINE>deleteResourceRef();<NEW_LINE>if (refContainer instanceof Cluster) {<NEW_LINE>// delete ResourceRef for all instances of Cluster<NEW_LINE>Target tgt = <MASK><NEW_LINE>List<Server> i...
habitat.getService(Target.class);
1,680,236
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String tmpRm7to0 = environment.getNextVariableString();
959,045
protected void withField(Object bean, String beanName, Class<?> targetClass, Field field) {<NEW_LINE>final Metric annotation = field.getAnnotation(Metric.class);<NEW_LINE>final String metricName = Util.forMetricField(targetClass, field, annotation);<NEW_LINE>final Class<?> type = field.getType();<NEW_LINE>if (!com.coda...
metrics.register(metricName, metric);
1,824,046
public static String encrypt(String password, String saltString, byte[] payload) {<NEW_LINE>try {<NEW_LINE>byte[] salt = Base64.decode(saltString);<NEW_LINE>SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256");<NEW_LINE>KeySpec spec = new PBEKeySpec(password.toCharArray(), salt, 100, 128);<NE...
tmp = factory.generateSecret(spec);
930,552
private List<String> generateDropStatementsForRoutines(char kind, String objType, String cascade) throws SQLException {<NEW_LINE>List<Map<String, String>> rows = // Search for all functions<NEW_LINE>jdbcTemplate.// Search for all functions<NEW_LINE>queryForList(// that don't depend on an extension<NEW_LINE>"SELECT pron...
("args") + ") " + cascade);
1,158,982
public void process(PlatformImage img) throws Exception {<NEW_LINE>this.img = img;<NEW_LINE>lines.clear();<NEW_LINE>words.clear();<NEW_LINE>int center = img.getWidth() / 2;<NEW_LINE>for (int dx = -minSpaceSize; dx < minSpaceSize; dx++) {<NEW_LINE>for (int y = 0; y < img.getHeight(); y++) {<NEW_LINE>if (img.isBlackPixel...
ImageUtils.removeWhiteBegin(img, l);
1,514,187
public Void visitMemberDeclaration(final MemberDeclarationContext ctx) {<NEW_LINE>ClassNode classNode = ctx.getNodeMetaData(CLASS_DECLARATION_CLASS_NODE);<NEW_LINE>Objects.requireNonNull(classNode, "classNode should not be null");<NEW_LINE>if (asBoolean(ctx.methodDeclaration())) {<NEW_LINE>ctx.methodDeclaration().putNo...
).putNodeMetaData(CLASS_DECLARATION_CLASS_NODE, classNode);
104,540
public void add(byte[] packedValue, int docID) throws IOException {<NEW_LINE>if (packedValue.length != config.packedBytesLength) {<NEW_LINE>throw new IllegalArgumentException("packedValue should be length=" + config.packedBytesLength + " (got: " + packedValue.length + ")");<NEW_LINE>}<NEW_LINE>if (pointCount >= totalPo...
minPackedValue, offset, config.bytesPerDim);
732,563
private static Object convertValueForAvroLogicalTypes(Schema fieldSchema, Object fieldValue, boolean consistentLogicalTimestampEnabled) {<NEW_LINE>if (fieldSchema.getLogicalType() == LogicalTypes.date()) {<NEW_LINE>return LocalDate.ofEpochDay(Long.parseLong(fieldValue.toString()));<NEW_LINE>} else if (fieldSchema.getLo...
, dc.getScale()));
1,458,017
private Flux<TextMessage> handleResponse(WebSocketSession session, String id, WebGraphQlResponse response) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Execution result ready" + (!CollectionUtils.isEmpty(response.getErrors()) ? " with errors: " + response.getErrors<MASK><NEW_LINE>}<NEW_LINE>Flux<Map...
() : "") + ".");
1,492,189
public void resourceChanged(IResourceChangeEvent event) {<NEW_LINE>try {<NEW_LINE>if (event.getDelta() == null && event.getSource() != ResourcesPlugin.getWorkspace()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<IPath, IProject> renamedFrom = new HashMap<>();<NEW_LINE>Map<IPath, IProject> renamedTo = new HashMap<>();<NEW...
removedProjects = new ArrayList<>();
1,295,566
private Message createCycleDependenciesMessage(ListMultimap<Thread, Key<?>> locksCycle, @Nullable Message proxyCreationError) {<NEW_LINE>// this is the main thing that we'll show in an error message,<NEW_LINE>// current thread is populate by Guice<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE><MASK><NEW_LIN...
Formatter fmt = new Formatter(sb);