idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
403,514 | final ListPagesByContactResult executeListPagesByContact(ListPagesByContactRequest listPagesByContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPagesByContactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
755,546 | public void startBlock(String block) {<NEW_LINE>if (block.equals("paging")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object node;<NEW_LINE>if (stack.size() == 0) {<NEW_LINE>if (root == null) {<NEW_LINE>root = "entry";<NEW_LINE>}<NEW_LINE>node = new Vector() {<NEW_LINE><NEW_LINE>public synchronized void addElement(Object ... | Hashtable) responseDestination.getItemAt(responseOffset); |
493,170 | public void remove(Entity entity) {<NEW_LINE>if (entity instanceof Player) {<NEW_LINE>MobEffectPacket pk = new MobEffectPacket();<NEW_LINE>pk.eid = entity.getId();<NEW_LINE>pk<MASK><NEW_LINE>pk.eventId = MobEffectPacket.EVENT_REMOVE;<NEW_LINE>((Player) entity).dataPacket(pk);<NEW_LINE>if (this.id == Effect.SPEED) {<NEW... | .effectId = this.getId(); |
1,298,816 | final PutPolicyResult executePutPolicy(PutPolicyRequest putPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,796,604 | private void addBufferPoints(List<Coordinate> points, Quadtree tree, double lon0, double lat0, double lon1, double lat1, boolean addLast, boolean checkNeighbours, double bufferSize) {<NEW_LINE><MASK><NEW_LINE>double dy = (lat0 - lat1);<NEW_LINE>double normLength = Math.sqrt((dx * dx) + (dy * dy));<NEW_LINE>double scale... | double dx = (lon0 - lon1); |
666,042 | private JPanel createEmptyPanel() {<NEW_LINE>JPanel panelWithText = <MASK><NEW_LINE>String helpText = "<html>\n" + "<body>" + "</div>" + "<div style=\"text-align:center\"><b>Not Yet Configured</b>" + "<br>Authorization has not been set for protected services." + "<br>Use the <i>Authorization</i> drop down to configure.... | new JPanel(new BorderLayout()); |
310,502 | protected void runJobLogic(ExternalWorkerJobEntity externalWorkerJob, CommandContext commandContext) {<NEW_LINE>externalWorkerJob.setJobHandlerConfiguration("terminate:");<NEW_LINE>if (variables != null && !variables.isEmpty()) {<NEW_LINE>CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngin... | variableType = variableTypes.findVariableType(varValue); |
839,898 | public void decode(CodeDecodeState state) {<NEW_LINE>DataReader reader = state.reader();<NEW_LINE>JavaInsnData insn = state.insn();<NEW_LINE>int opcode = reader.readU1();<NEW_LINE>if (opcode == IINC) {<NEW_LINE>int varNum = reader.readU2();<NEW_LINE>int constValue = reader.readS2();<NEW_LINE>state.local(0, varNum).loca... | + Integer.toHexString(opcode)); |
1,356,386 | private void downloadArabicSearchDb() {<NEW_LINE>if (downloadReceiver == null) {<NEW_LINE>downloadReceiver = new DefaultDownloadReceiver(this, QuranDownloadService.DOWNLOAD_TYPE_ARABIC_SEARCH_DB);<NEW_LINE>LocalBroadcastManager.getInstance(this).registerReceiver(downloadReceiver, new IntentFilter(QuranDownloadNotifier.... | EXTRA_OUTPUT_FILE_NAME, QuranDataProvider.QURAN_ARABIC_DATABASE + extension); |
488,321 | public void visit(ClassDeclaration node) {<NEW_LINE>String name = node.getName().getName();<NEW_LINE>ClassElementAttribute ce = (ClassElementAttribute) global.enterWrite(name, Kind.CLASS, node);<NEW_LINE>node2Element.put(node, ce);<NEW_LINE>Identifier superClsName = (node.getSuperClass() != null) ? CodeUtils.extractUnq... | getName(), Kind.CLASS); |
992,652 | protected void encodeList(FacesContext context, SelectOneListbox listbox, List<SelectItem> selectItems) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>Converter converter = listbox.getConverter();<NEW_LINE>Object values = getValues(listbox);<NEW_LINE>Object submittedValues =... | selectItem = selectItems.get(i); |
800,405 | public Boolean doWithAnnotations(Object requiredType, int aggregateIndex, @Nullable Object source, Annotation[] annotations) {<NEW_LINE>for (Annotation annotation : annotations) {<NEW_LINE>if (annotation != null) {<NEW_LINE>Class<? extends Annotation> type = annotation.annotationType();<NEW_LINE>if (type != null && !th... | requiredType, aggregateIndex, source, repeatedAnnotations); |
1,323,372 | public ImmutableMap<String, IModelTranslation> retriveAllById(final POTrlInfo trlInfo, final int recordId) {<NEW_LINE>final String sql = trlInfo.getSqlSelectTrlById().get();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>final Object[] params = new Object[] { recordId };<NEW_LINE>try {<... | translations.put(adLanguage, trl); |
1,197,924 | public int compareTo(compactionFailed_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE... | this.extent, other.extent); |
642,155 | private void registerButtonBinds(ModuleEnvironment environment) {<NEW_LINE>Iterable<Class<?>> classes = environment.getTypesAnnotatedWith(RegisterBindButton.class);<NEW_LINE>for (Class<?> registerBindClass : classes) {<NEW_LINE>RegisterBindButton info = registerBindClass.getAnnotation(RegisterBindButton.class);<NEW_LIN... | logger.error("Failed to register button bind \"{}\", does not extend BindButtonEvent", bindUri); |
501,030 | final ListTagsForResourceOutput executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
299,939 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is re... | error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); |
260,103 | public void menuDetected(MenuDetectEvent e) {<NEW_LINE>Composite comp = tv.getTableComposite();<NEW_LINE>Point mapped = comp.getDisplay().map(null, comp, new Point(e.x, e.y));<NEW_LINE>TableColumnCore tc = tv.getTableColumnByOffset(mapped.x);<NEW_LINE>TableCellCore cell = tv.getTableCell(mapped.x, mapped.y);<NEW_LINE>i... | = clientArea.x + mapped.x; |
1,206,013 | protected Void doInBackground(Void... params) {<NEW_LINE>JSONObject requestBody = new JSONObject();<NEW_LINE>JSONObject data = new JSONObject();<NEW_LINE>try {<NEW_LINE>data.put("url", streamUrl);<NEW_LINE>data.put("position", streamPosition);<NEW_LINE>data.put("stream_duration", streamDuration);<NEW_LINE>// data.put("... | ResponseBody resBody = response.body(); |
712,886 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof File) {<NEW_LINE>final File file <MASK><NEW_LINE>if (file.getSize() == 0) {<NEW_LINE>... | = (File) sources[0]; |
649,795 | public void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>String idValue = entity.findProperty("id").getValue();<NEW_LINE>String userLoginToRemove = entity.findProperty("lo... | AdminUser persistentAdminUser = adminRemoteSecurityService.getPersistentAdminUser(); |
642,088 | final StartIncidentResult executeStartIncident(StartIncidentRequest startIncidentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startIncidentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | invoke(request, responseHandler, executionContext); |
764,224 | T join() {<NEW_LINE>if (uniq.contains(zeroValue)) {<NEW_LINE>return zeroValue;<NEW_LINE>}<NEW_LINE>if (requireSpecialJoining != null) {<NEW_LINE>Iterator<Map.Entry<JoinStrategy<SJ>, Set<SJ>>> entryIterator = requireSpecialJoining.entrySet().iterator();<NEW_LINE>while (entryIterator.hasNext()) {<NEW_LINE>Map.Entry<JoinS... | > toJoin = e.getValue(); |
1,289,205 | private boolean putMarker(IResource resource, TextLocation location, MethodReference method, String text, TeaVMProfile profile, boolean force) throws CoreException {<NEW_LINE>Integer lineNumber = location != null ? location.getLine() : null;<NEW_LINE>if (lineNumber == null) {<NEW_LINE>lineNumber = findMethodLocation(me... | setAttribute(IMarker.LINE_NUMBER, lineNumber); |
595,654 | public void visitAfter(JavaClass obj) {<NEW_LINE>for (MethodDescriptor method : fieldsModifyingMethods) {<NEW_LINE>List<MethodCall> calls = callGraph.get(method);<NEW_LINE>SideEffectStatus prevStatus = statusMap.get(method);<NEW_LINE>status = prevStatus.toSure();<NEW_LINE>calledMethods = new ArrayList<>();<NEW_LINE>for... | statusMap.put(method, status); |
1,410,873 | public void parseDetail(ByteBuffer bb) throws IOException {<NEW_LINE>objectTypeIndication = IsoTypeReader.readUInt8(bb);<NEW_LINE>int data = IsoTypeReader.readUInt8(bb);<NEW_LINE>streamType = data >>> 2;<NEW_LINE>upStream = (data >> 1) & 0x1;<NEW_LINE>bufferSizeDB = IsoTypeReader.readUInt24(bb);<NEW_LINE>maxBitRate = I... | descriptor.getSize() : null); |
1,031,600 | public BlockDocIdIterator iterator() {<NEW_LINE>int numDocIdSets = _docIdSets.size();<NEW_LINE>BlockDocIdIterator[] allDocIdIterators = new BlockDocIdIterator[numDocIdSets];<NEW_LINE>List<SortedDocIdIterator> sortedDocIdIterators = new ArrayList<>();<NEW_LINE>List<BitmapBasedDocIdIterator> bitmapBasedDocIdIterators = n... | int numRemainingDocIdIterators = remainingDocIdIterators.size(); |
148,071 | public Request<DeleteResourcePolicyRequest> marshall(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>if (deleteResourcePolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteResourcePolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteResourcePoli... | <DeleteResourcePolicyRequest>(deleteResourcePolicyRequest, "AmazonCloudWatchLogs"); |
1,274,921 | public Comment createNodeComment(CreateNodeCommentRequest body, Long nodeId, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify the ... | throw new ApiException(400, "Missing the required parameter 'body' when calling createNodeComment"); |
193,941 | protected void buildActionMapping() {<NEW_LINE>mapping.clear();<NEW_LINE>Class<?> dc;<NEW_LINE>InterceptorManager interMan = InterceptorManager.me();<NEW_LINE>for (Routes routes : getRoutesList()) {<NEW_LINE>for (Route route : routes.getRouteItemList()) {<NEW_LINE>Class<? extends Controller> controllerClass = route.get... | ) + "." + methodName + "(): The argument of ActionKey can not be blank."); |
108,545 | private void commitModel(final ModuleModelImpl moduleModel, final Runnable runnable) {<NEW_LINE>myModuleModel.myModulesCache = null;<NEW_LINE>myModificationCount++;<NEW_LINE>ApplicationManager.getApplication().assertWriteAccessAllowed();<NEW_LINE>final Collection<Module> oldModules = myModuleModel.myModules;<NEW_LINE>f... | , String> modulesToNewNamesMap = moduleModel.myModuleToNewName; |
1,657,184 | public GetPredictiveScalingForecastResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetPredictiveScalingForecastResult getPredictiveScalingForecastResult = new GetPredictiveScalingForecastResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalD... | XMLEvent xmlEvent = context.nextEvent(); |
1,771,646 | public void insertControlContents(Control control, String contents, int cursorPosition) {<NEW_LINE>Text text = (Text) control;<NEW_LINE>String curValue = text.getText().toUpperCase();<NEW_LINE>Point selection = text.getSelection();<NEW_LINE>if (selection.x == selection.y) {<NEW_LINE>// Try to replace text under cursor ... | ch = curValue.charAt(i); |
1,248,993 | protected RestLiResponseException buildPreRoutingError(Throwable throwable, Request request) {<NEW_LINE>Map<String, String> requestHeaders = request.getHeaders();<NEW_LINE>Map<String, String> headers = new <MASK><NEW_LINE>headers.put(RestConstants.HEADER_RESTLI_PROTOCOL_VERSION, ProtocolVersionUtil.extractProtocolVersi... | TreeMap<>(String.CASE_INSENSITIVE_ORDER); |
884,541 | public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricActivityInstanceEntityManager historicActivityInstanceEntityManager = processEngineConfiguration.getHistoricActivityInstanceEntityManager();<NEW_LINE>HistoricActivityInstanceEntity historicActivi... | (FlowableEngineEventType.HISTORIC_ACTIVITY_INSTANCE_CREATED, historicActivityInstanceEntity)); |
377,359 | public Boolean isVulnerable() {<NEW_LINE>Config tlsConfig = getTlsConfig();<NEW_LINE>WorkflowTrace trace = new WorkflowConfigurationFactory(tlsConfig).createWorkflowTrace(WorkflowTraceType.HELLO, RunningModeType.CLIENT);<NEW_LINE>trace.addTlsAction(new SendDynamicClientKeyExchangeAction());<NEW_LINE>trace.addTlsAction(... | HeartbeatMessage message = new HeartbeatMessage(tlsConfig); |
1,826,130 | void resolveDependencies(DependencyResolution dependencyResolution) {<NEW_LINE>Set<ModuleDependency> moduleDependencies = new HashSet<>();<NEW_LINE>if (this.project.kind() == ProjectKind.BALA_PROJECT) {<NEW_LINE>for (ModuleDescriptor dependencyModDesc : moduleDescDependencies) {<NEW_LINE>// Dependencies loaded from cac... | .orgName().get(); |
610,809 | public RowData toInternal(Map<String, Object> input) throws Exception {<NEW_LINE>if (fieldConfList.size() == 1 && StringUtils.equals(ConstantValue.STAR_SYMBOL, fieldConfList.get(0).getName())) {<NEW_LINE>ColumnRowData result = new ColumnRowData(fieldNameList.size());<NEW_LINE>for (int i = 0; i < fieldNameList.size(); i... | ColumnRowData(fieldConfList.size()); |
1,172,053 | final PutFunctionCodeSigningConfigResult executePutFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest putFunctionCodeSigningConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putFunctionCodeSigningConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | invoke(request, responseHandler, executionContext); |
1,509,294 | public static PGPKeyPair lookupKeyPair(PGPPublicKeyRingCollection publics, PGPSecretKeyRingCollection privates, String query, KeyRequirement want) {<NEW_LINE>PGPPublicKey publicKey = lookupPublicKey(publics, query, want);<NEW_LINE>PGPPrivateKey privateKey;<NEW_LINE>try {<NEW_LINE>PGPSecretKey secret = verifyNotNull(pri... | publicKey.getKeyID(), query); |
117,779 | private void collectOptionalGroups(final GraphPatternGroup<IGroupMemberNode> group, final Collection<JoinGroupNode> optionalGroups) {<NEW_LINE>if (group instanceof JoinGroupNode && group.isOptional() && group.getParent() != null) {<NEW_LINE>optionalGroups<MASK><NEW_LINE>}<NEW_LINE>for (IGroupMemberNode child : group) {... | .add((JoinGroupNode) group); |
190,209 | private ModuleLayer synthesizeRuntimeBootLayer(ImageClassLoader cl, Set<String> reachableModules, Set<Module> syntheticModules) {<NEW_LINE>NativeImageClassLoaderSupport classLoaderSupport = cl.classLoaderSupport;<NEW_LINE>ModuleFinder beforeFinder = classLoaderSupport.modulepathModuleFinder;<NEW_LINE>ModuleFinder after... | moduleLayerFeatureUtils.patchModuleLayerField(runtimeSyntheticModule, runtimeBootLayer); |
247,771 | public static boolean intersectSegmentCircle(Vector2 start, Vector2 end, Circle circle, MinimumTranslationVector mtv) {<NEW_LINE>v2a.set(end).sub(start);<NEW_LINE>v2b.set(circle.x - start.x, circle.y - start.y);<NEW_LINE><MASK><NEW_LINE>float u = v2b.dot(v2a.nor());<NEW_LINE>if (u <= 0) {<NEW_LINE>v2c.set(start);<NEW_L... | float len = v2a.len(); |
427,463 | public void doRun(String testId, BuildExperimentSpec experiment, MeasuredOperationList results) {<NEW_LINE>InvocationSpec invocationSpec = experiment.getInvocation();<NEW_LINE>File workingDirectory = invocationSpec.getWorkingDirectory();<NEW_LINE>if (!(invocationSpec instanceof GradleInvocationSpec)) {<NEW_LINE>throw n... | createInvocationSettings(testId, buildSpec, gradleExperiment); |
226,432 | private Expression findLeafNode(final Expression expression) {<NEW_LINE>if (expression instanceof BinaryExpression) {<NEW_LINE>Token operator = ((BinaryExpression) expression).getOperation();<NEW_LINE>if (operator.isA(Types.MATH_OPERATOR) && !operator.isA(Types.LOGICAL_OPERATOR))<NEW_LINE>return findLeafNode(((BinaryEx... | ) expression).getExpression()); |
1,182,492 | private WorkflowTrace createFalseStartWorkflow(AliasedConnection connection) {<NEW_LINE>if (config.getHighestProtocolVersion().isTLS13()) {<NEW_LINE>throw new ConfigurationException("The false start workflow is not implemented for TLS 1.3");<NEW_LINE>}<NEW_LINE>WorkflowTrace workflowTrace = this.createHandshakeWorkflow... | (TlsAction) workflowTrace.getLastSendingAction(); |
1,761,409 | public void validate() throws org.apache.thrift.TException {<NEW_LINE>// check for required fields<NEW_LINE>if (!is_set_topology()) {<NEW_LINE>throw new org.apache.thrift.protocol.TProtocolException("Required field 'topology' is unset! Struct:" + toString());<NEW_LINE>}<NEW_LINE>if (!is_set_components()) {<NEW_LINE>thr... | TProtocolException("Required field 'metrics' is unset! Struct:" + toString()); |
224,599 | public AudioInputStream synthesizeUsingImposedF0(int sourceIndex, int targetIndex, AudioFileFormat aft) throws SynthesisException {<NEW_LINE>if (!f0ContourImposeSupport) {<NEW_LINE>throw new SynthesisException("Mary configuration of this voice doesn't support intonation contour imposition");<NEW_LINE>}<NEW_LINE>int num... | = this.vIntonationReader.getSkipSizeInSeconds(); |
1,144,321 | private void create(Properties ctx, TransformerHandler document, PO entity, boolean includeParents, List<String> excludedParentList, boolean isFromParent) throws SAXException {<NEW_LINE>int tableId = 0;<NEW_LINE>String tableName = null;<NEW_LINE>int recordId = 0;<NEW_LINE>if (entity != null) {<NEW_LINE>tableId = entity... | ctx, tableId, recordId, null); |
624,775 | public synchronized boolean start(Context context) {<NEW_LINE>if (refreshInProgress) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!SkyTubeApp.isConnected(context)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>SkyTubeApp.getSettings().setRefreshSubsFeedFull(false);<NEW_LINE>refreshInProgress = true;<NEW_LINE>composi... | ).notifyChannelVideoFetchingFinished(newVideos > 0); |
1,445,665 | final DeregisterFromWorkMailResult executeDeregisterFromWorkMail(DeregisterFromWorkMailRequest deregisterFromWorkMailRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterFromWorkMailRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,385,740 | public void marshall(Workspace workspace, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workspace == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(workspace.getWorkspaceId(), WORKSPACEID_BINDING);<NEW_LIN... | workspace.getErrorMessage(), ERRORMESSAGE_BINDING); |
1,395,162 | public DataFrame limit(final int numRows) {<NEW_LINE>if (numRows < 0 || numRows >= this.numRows) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>final DataFrame result = new DataFrame();<NEW_LINE>result.schema = this.schema.copy();<NEW_LINE>result.indexToTypeIndex = new ArrayList<>(this.indexToTypeIndex);<NEW_LINE>result.n... | ] newCol = new double[numRows]; |
1,359,074 | private <T extends HttpMessage> String registerWebSocketClient(ExpectationCallback<T> expectationCallback, ExpectationForwardAndResponseCallback expectationForwardResponseCallback) {<NEW_LINE>try {<NEW_LINE>String clientId = UUIDService.getUUID();<NEW_LINE><MASK><NEW_LINE>LocalCallbackRegistry.registerCallback(clientId... | LocalCallbackRegistry.registerCallback(clientId, expectationCallback); |
74,122 | protected Object[] convertValuesToKeyType(Object[] values) {<NEW_LINE>if (values == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Object[] res = new Object[values.length];<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>Object v = values[i];<NEW_LINE>if (v instanceof String) {<NEW_LINE>res[i] = keyConve... | collect(Collectors.toList()); |
677,845 | public void process(final Context ctx) throws Exception {<NEW_LINE>final FileObject file = ctx.file();<NEW_LINE>if (!file.getPath().startsWith(PANELS_FOLDER)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Object instanceCreate = ctx.instanceAttribute(file);<NEW_LINE>if (instanceCreate != null) {<NEW_LINE>ctx.addStandard... | canon, canon + "s", params); |
260,032 | public void run() throws IOException {<NEW_LINE>// h[0] = createProject(dirFO, name, "src", "test", preloaderClassName, // NOI18N<NEW_LINE>// JavaFXProjectWizardIterator.MANIFEST_FILE, librariesDefinition,<NEW_LINE>// platformName, null, WizardType.PRELOADER);<NEW_LINE>// NOI18N<NEW_LINE>h[0] = // NOI18N<NEW_LINE>creat... | final ReferenceHelper refHelper = getReferenceHelper(p); |
733,412 | public static ListDpiConfigErrorResponse unmarshall(ListDpiConfigErrorResponse listDpiConfigErrorResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDpiConfigErrorResponse.setRequestId(_ctx.stringValue("ListDpiConfigErrorResponse.RequestId"));<NEW_LINE>listDpiConfigErrorResponse.setNextToken(_ctx.stringValue("ListDpiCon... | + "].DpiGroupIds[" + k + "]")); |
22,196 | public boolean consumed(final MessageExt msg, final String group) throws RemotingException, MQClientException, InterruptedException, MQBrokerException {<NEW_LINE>ConsumeStats <MASK><NEW_LINE>ClusterInfo ci = this.examineBrokerClusterInfo();<NEW_LINE>Iterator<Entry<MessageQueue, OffsetWrapper>> it = cstats.getOffsetTabl... | cstats = this.examineConsumeStats(group); |
614,038 | protected void onCreate(final Bundle b) {<NEW_LINE>super.onCreate(b);<NEW_LINE>if (Build.VERSION.SDK_INT >= 26) {<NEW_LINE>API26Wrapper.startForegroundService(this, new Intent(this, SensorListener.class));<NEW_LINE>} else {<NEW_LINE>startService(new Intent(this, SensorListener.class));<NEW_LINE>}<NEW_LINE>if (b == null... | .permission.WRITE_EXTERNAL_STORAGE }, 0); |
1,578,977 | private static void updatePresentation(@Nullable ExecutionTarget target, @Nullable RunnerAndConfigurationSettings settings, @Nullable Project project, @Nonnull Presentation presentation) {<NEW_LINE>if (project != null && target != null && settings != null) {<NEW_LINE>String name = settings.getName();<NEW_LINE>if (targe... | += " | " + target.getDisplayName(); |
1,125,040 | private static List<String> unzipFile(final ZipFile zipFile, File targetDirectory) throws IOException {<NEW_LINE>List<String> files = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>// Zip Slip fix courtesy of snyk.io/research/zip-slip-vulnerability.<NEW_LINE>String canonicalDirPath = targetDirectory.getCanonicalPath() + Fi... | add(targetFile.getAbsolutePath()); |
74,461 | public void marshall(BehaviorCriteria behaviorCriteria, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (behaviorCriteria.getComparisonOperator() != null) {<NEW_LINE>String comparisonOperator = behaviorCriteria.getComparisonOperator();<NEW_LINE>jsonWriter.name("comparisonOper... | ).marshall(mlDetectionConfig, jsonWriter); |
464,643 | public int handleBasePlanEvent(final DefaultSubscriptionBase subscription, final SubscriptionBaseEvent event, final SubscriptionCatalog catalog, final CallContext context) throws CatalogApiException {<NEW_LINE>final InternalCallContext internalCallContext = createCallContextFromBundleId(subscription.getBundleId(), cont... | = new LinkedList<SubscriptionBaseEvent>(); |
1,670,448 | final BatchStopUpdateActionResult executeBatchStopUpdateAction(BatchStopUpdateActionRequest batchStopUpdateActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchStopUpdateActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
535,708 | public int transform(UserConnection user, CompoundTag tag) {<NEW_LINE>BlockStorage storage = user.get(BlockStorage.class);<NEW_LINE>Position position = new Position((int) getLong(tag.get("x")), (short) getLong(tag.get("y")), (int) getLong(<MASK><NEW_LINE>if (!storage.contains(position)) {<NEW_LINE>Via.getPlatform().get... | tag.get("z"))); |
1,731,861 | final CompleteLifecycleActionResult executeCompleteLifecycleAction(CompleteLifecycleActionRequest completeLifecycleActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(completeLifecycleActionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,693,442 | public void writeExternal(Element rootElement) {<NEW_LINE>checkDisposed();<NEW_LINE><MASK><NEW_LINE>if (myName != null) {<NEW_LINE>element.setAttribute(LIBRARY_NAME_ATTR, myName);<NEW_LINE>}<NEW_LINE>if (myKind != null) {<NEW_LINE>element.setAttribute(LIBRARY_TYPE_ATTR, myKind.getKindId());<NEW_LINE>LOG.assertTrue(myPr... | Element element = new Element(ELEMENT); |
677,318 | public static void main(final String[] args) throws Exception {<NEW_LINE>final String s = "\nPGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+V2UncmUgcHJvcG9zaW5nIDxhIGhy\n" + "ZWY9Imh0dHA6Ly93d3cuZ29vZ2xlLmNvbS9jb3Jwb3JhdGUvc29mdHdhcmVfcHJpbmNpcGxlcy5odG1sIj5z\n" + "b21lIGd1aWRlbGluZXMgPC9hPnRvIGhlbHAgY3VyYiB0a... | + "dGhhdCB0aGVyZSBiZSBzb21lIGNsZWFyIHN0YW5kYXJkcyBpbiBvdXIgaW5kdXN0cnkuIExldCB1cyBrbm93\n" + "IGlmIHlvdSB0aGluayB0aGVzZSBndWlkZWxpbmVzIGFyZSB1c2VmdWwgb3IgaWYgeW91IGhhdmUgc3VnZ2Vz\n" + "dGlvbnMgdG8gaW1wcm92ZSB0aGVtLgo8YnIgLz4KPGJyIC8+Sm9uYXRoYW4gUm9zZW5iZXJnCjxiciAvPgo8\n" + "L2Rpdj4K\n"; |
91,168 | protected void consumeNormalAnnotation(boolean isTypeAnnotation) {<NEW_LINE>// NormalTypeAnnotation ::= TypeAnnotationName '(' MemberValuePairsopt ')'<NEW_LINE>// NormalAnnotation ::= AnnotationName '(' MemberValuePairsopt ')'<NEW_LINE>NormalAnnotation normalAnnotation = null;<NEW_LINE>int oldIndex = this.identifierPtr... | ).addAnnotation(normalAnnotation, oldIndex); |
1,122,798 | public synchronized void addTLCOutputSource(ITLCOutputSource source) {<NEW_LINE>Assert.isNotNull(source);<NEW_LINE>// TLCUIActivator.getDefault().logDebug("adding source " + source.getSourceName() + " " + source.getSourcePrio());<NEW_LINE>ITLCOutputSource existingSource = this.sources.get(source.getModel());<NEW_LINE>/... | source.getModel(), source); |
1,752,892 | private static void printManagamentStatistic() {<NEW_LINE>OperatingSystemMXBean osMxBean = ManagementFactory.getOperatingSystemMXBean();<NEW_LINE>int processors = osMxBean.getAvailableProcessors();<NEW_LINE><MASK><NEW_LINE>Logger logger = STATISTIC_LOGGER;<NEW_LINE>logger.info("{} processors, started {}, up {}", proces... | RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean(); |
1,700,668 | byte[] toArray() {<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(MAX_POSSIBLE_NODE_DATA_SIZE);<NEW_LINE>// Write data (compatible with version 0)<NEW_LINE>buffer.putInt(this.processingStatus);<NEW_LINE>buffer.putInt(this.priority);<NEW_LINE>buffer.putInt(this.numberOfCrashes);<NEW_LINE>buffer.putLong(this.completedD... | processingStageDetailsDescription, buffer, TypeKind.BYTE); |
621,595 | private InetSocketAddress slowSearchClientIP(final RegionClient client) {<NEW_LINE>String hostport = null;<NEW_LINE>synchronized (ip2client) {<NEW_LINE>for (final Map.Entry<String, RegionClient> e : ip2client.entrySet()) {<NEW_LINE>if (e.getValue() == client) {<NEW_LINE>hostport = e.getKey();<NEW_LINE>break;<NEW_LINE>}... | "WTF? Should never happen! Couldn't find " + client + " in " + copy); |
1,065,377 | private static int createEmptyBPT(BPTStateMgr stateMgr, BPTreeNodeMgr nodeManager, BPTreeRecordsMgr recordsMgr) {<NEW_LINE>// Create an empty records block.<NEW_LINE>nodeManager.startUpdate();<NEW_LINE>recordsMgr.startUpdate();<NEW_LINE>// Empty tree.<NEW_LINE>stateMgr.setState(0, 0, 0);<NEW_LINE>try {<NEW_LINE>BPTreeR... | nodeManager.createNode(BPlusTreeParams.RootParent); |
266,276 | private void prepareForUpdate(DeploymentExtendedInner inner) {<NEW_LINE>deploymentCreateUpdateParameters = new DeploymentInner();<NEW_LINE>deploymentCreateUpdateParameters.withLocation(inner.location());<NEW_LINE>deploymentCreateUpdateParameters.withTags(inner.tags());<NEW_LINE>if (inner.properties() != null) {<NEW_LIN... | properties().mode()); |
50,261 | // RA-Lifecycle ///////////////////////////////////////////////////<NEW_LINE>public void start(BootstrapContext ctx) throws ResourceAdapterInternalException {<NEW_LINE>try {<NEW_LINE>Class.forName(ORG_CAMUNDA_BPM_ENGINE_PROCESS_ENGINE);<NEW_LINE>} catch (Exception e) {<NEW_LINE>log.info("ProcessEngine classes not found... | log(Level.INFO, "Camunda Platform executor service started."); |
1,363,256 | public static int compareEventDates(Event one, Event two) {<NEW_LINE><MASK><NEW_LINE>ZonedDateTime startDate = DateUtils.getDate(one.getStartsAt());<NEW_LINE>ZonedDateTime endDate = DateUtils.getDate(one.getEndsAt());<NEW_LINE>ZonedDateTime otherStartDate = DateUtils.getDate(two.getStartsAt());<NEW_LINE>ZonedDateTime o... | ZonedDateTime now = ZonedDateTime.now(); |
606,400 | private JPanel createScrollPanes() {<NEW_LINE>final JPanel panel = new JPanel();<NEW_LINE>panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));<NEW_LINE>panel.setOpaque(false);<NEW_LINE>for (final Map.Entry<String, List<ProcessInformations>> entry : processInformationsByTitle.entrySet()) {<NEW_LINE>final String titl... | ("user", getString("Utilisateur")); |
1,237,445 | public ListOperationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListOperationsResult listOperationsResult = new ListOperationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
500,798 | private void declareConfigMethods() {<NEW_LINE>supervisor.addMethod(JRTMethods.createConfigV3GetConfigMethod(this::getConfigV3));<NEW_LINE>supervisor.addMethod(new Method("ping", "", "i", this::ping).methodDesc("ping").returnDesc(0, "ret code", "return code, 0 is OK"));<NEW_LINE>supervisor.addMethod(new Method("listCac... | (0, "data", "0 if success, 1 otherwise")); |
1,174,947 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.int32_t, NativeType.SINT); |
446,290 | public static List<ErrorDescription> computeWarning(HintContext ctx) {<NEW_LINE>Result tags = TagParser.parseTags(ctx.getInfo());<NEW_LINE>List<ErrorDescription> result = new ArrayList<>();<NEW_LINE>for (Tag tag : tags.getTags()) {<NEW_LINE>if (!"compile".equals(tag.getName())) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>... | , end).toEditorFix()); |
1,136,252 | public FixResult fix() {<NEW_LINE>Position errorPosition = err.getErrorPosition();<NEW_LINE>Pair<IToken, IToken> tokens = queryTokenProcessor.getNearbyTokens(query, errorPosition.getRow(), errorPosition.getColumn());<NEW_LINE>// Find the similar keywords that can replace the right token.<NEW_LINE>List<String> rightToke... | ), tokens.getRight()); |
359,803 | public void updateCells() {<NEW_LINE>int rowIndex = getSkinnable().getIndex();<NEW_LINE>if (rowIndex >= 0) {<NEW_LINE>GridView<T> gridView = getSkinnable().getGridView();<NEW_LINE>int maxCellsInRow = ((GridViewSkin<?>) gridView.getSkin()).computeMaxCellsInRow();<NEW_LINE>int totalCellsInGrid = gridView.getItems().size(... | T> cell = getCellAtIndex(cacheIndex); |
528,720 | protected void onLayout(boolean changed, int left, int top, int right, int bottom) {<NEW_LINE>super.onLayout(changed, left, top, right, bottom);<NEW_LINE>final float density = getContext().getResources().getDisplayMetrics().density;<NEW_LINE>mDiameter = Math.min(getMeasuredWidth(), getMeasuredHeight());<NEW_LINE>if (mD... | (int) (density * X_OFFSET); |
1,211,694 | protected void renderAsyncOutput(HttpServletRequest request, HttpServletResponse response, App app, RenderContext renderContext, DOMNode rootElement, final long requestStartTime) throws IOException {<NEW_LINE>final AsyncContext async = request.startAsync();<NEW_LINE>final ServletOutputStream out = async<MASK><NEW_LINE>... | .getResponse().getOutputStream(); |
942,475 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select 1 in (longBoxed, intArr, longMap, intCol) as resOne, 1 not in (longBoxed, intArr, longMap, intCol) as resTwo from SupportBeanArrayCollMap";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>String[] fields = "resOne, resTwo... | [] { false, true }); |
680,076 | // DELETE /api/admin/elevateword/setting/{id}<NEW_LINE>@Execute<NEW_LINE>public JsonResponse<ApiResult> delete$setting(final String id) {<NEW_LINE>try {<NEW_LINE>elevateWordService.getElevateWord(id).ifPresent(entity -> {<NEW_LINE>try {<NEW_LINE>elevateWordService.delete(entity);<NEW_LINE>suggestHelper.deleteElevateWor... | .addErrorsCrudCouldNotFindCrudTable(GLOBAL, id)); |
448,214 | public Object initHtmlComponent(JComponent c, Consumer<String> titleDisplayer) {<NEW_LINE>JFXPanel p = (JFXPanel) c;<NEW_LINE>Platform.setImplicitExit(false);<NEW_LINE>WebView webView = new WebView();<NEW_LINE>BorderPane bp = new BorderPane();<NEW_LINE>Scene scene = new <MASK><NEW_LINE>class X implements ChangeListener... | Scene(bp, Color.ALICEBLUE); |
1,583,140 | public Request<UpdateScalingParametersRequest> marshall(UpdateScalingParametersRequest updateScalingParametersRequest) {<NEW_LINE>if (updateScalingParametersRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<UpdateScalingParametersRequest> r... | ScalingParameters scalingParameters = updateScalingParametersRequest.getScalingParameters(); |
1,021,367 | boolean isACloudstackUser(final LdapUserResponse ldapUser) {<NEW_LINE>if (s_logger.isTraceEnabled()) {<NEW_LINE>s_logger.trace("checking response : " + ldapUser.toString());<NEW_LINE>}<NEW_LINE>final List<UserResponse> cloudstackUsers = getCloudstackUsers();<NEW_LINE>if (cloudstackUsers != null && cloudstackUsers.size(... | , cloudstackUser.getUsername())); |
1,181,492 | protected void activateChannel(@Nullable BluetoothCharacteristic characteristic, ChannelTypeUID channelTypeUID, @Nullable String name) {<NEW_LINE>if (characteristic != null) {<NEW_LINE>String channelId = name != null ? name : characteristic.getGattCharacteristic().name();<NEW_LINE>if (channelId == null) {<NEW_LINE>// u... | withType(channelTypeUID).build(); |
559,044 | private Properties loadConfig() {<NEW_LINE>Properties properties = defaultProperties();<NEW_LINE>Iterator<String> it = Config.getKeys();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>final String key = it.next();<NEW_LINE>if (key == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (key.startsWith("felix.")) {<NEW_LINE>fina... | "Found property " + felixKey + "=" + value); |
1,713,823 | public ComponentPreset extractTubeCoupler() {<NEW_LINE>TypedPropertyMap props = new TypedPropertyMap();<NEW_LINE>try {<NEW_LINE>props.put(ComponentPreset.TYPE, ComponentPreset.Type.TUBE_COUPLER);<NEW_LINE>props.put(ComponentPreset.OUTER_DIAMETER, tcOuterDia.getValue());<NEW_LINE>props.put(ComponentPreset.INNER_DIAMETER... | LENGTH, tcLength.getValue()); |
1,440,934 | public static PairOrientation of(final SAMRecord sam) {<NEW_LINE>final ReadOrdinality ordinality = ReadOrdinality.of(sam);<NEW_LINE>final ReadDirection direction = ReadDirection.of(sam);<NEW_LINE>// Make sure that the read is paired<NEW_LINE>if (!sam.getReadPairedFlag()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// i... | matePositiveStrand = !sam.getMateNegativeStrandFlag(); |
152,592 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>boolean cookieExists = false;<NEW_LINE>String cookieValue = null;<NEW_LINE>Cookie[] cookies = req.getCookies();<NEW_LINE>if (null != cookies) {<NEW_LINE>// Iterate over cookies until we find one named ... | 200, 1, BufferedImage.TYPE_INT_ARGB); |
503,483 | public Response<Void> deleteByIdWithResponse(String id, String ifMatch, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID... | format("The resource ID '%s' is not valid. Missing path segment 'namedValues'.", id))); |
572,244 | private void findProposals(CharSequence pattern, int maxDistance, int node, StringBuffer word, ProposalAcceptor result) {<NEW_LINE>int entries = readInt(node + 1);<NEW_LINE>for (int currentEntry = 0; currentEntry < entries; currentEntry++) {<NEW_LINE>char ac = readChar(node + 5 + currentEntry * 6);<NEW_LINE>word.append... | 5 + currentEntry * 6 + 2); |
561,536 | private void passThrough(ImageMessage msg) {<NEW_LINE>ImageVO vo = dbf.findByUuid(msg.getImageUuid(), ImageVO.class);<NEW_LINE>if (vo == null && allowedMessageAfterDeletion.contains(msg.getClass())) {<NEW_LINE>ImageEO eo = dbf.findByUuid(msg.getImageUuid(), ImageEO.class);<NEW_LINE>vo = ObjectUtils.newAndCopy(eo, Image... | .handleMessage((Message) msg); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.