idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
995,401 | void showDBPopulationProgressDialog(CancellationProgressTask<?> task) {<NEW_LINE>currentDialog = new ProgressDialog(task);<NEW_LINE>currentDialog.initModality(Modality.NONE);<NEW_LINE>currentDialog.setTitle(Bundle.PromptDialogManager_progressDialog_title());<NEW_LINE>setDialogIcons(currentDialog);<NEW_LINE>currentDialo... | failed -> currentDialog.close()); |
1,850,825 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.resource.spi.XATerminator#prepare(javax.transaction.xa.Xid)<NEW_LINE>*/<NEW_LINE>public int prepare(Xid xid) throws XAException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "prepare", xid);<NEW_LINE>final JCATranWrapper txWrapper;<NEW_LINE>try {<... | [] { "prepare threw XAException", e }); |
805,682 | private void informSubstrings(ParserRuleContext ctx, String name, boolean fakeChild, Splitter splitter) {<NEW_LINE>String text = getSourceText(ctx);<NEW_LINE>String path = inform(ctx, name, text, fakeChild);<NEW_LINE>Set<Range> ranges = analyzer.getRequiredInformRanges(path);<NEW_LINE>if (ranges.size() > 4) {<NEW_LINE>... | name + range, value, true); |
1,833,461 | public ActorFuture<Void> transitionTo(final PartitionTransitionContext context, final long term, final Role targetRole) {<NEW_LINE>final var currentRole = context.getCurrentRole();<NEW_LINE>final var concurrencyControl = context.getConcurrencyControl();<NEW_LINE>if (shouldInstallOnTransition(targetRole, currentRole) ||... | (!context.shouldProcess()); |
1,628,977 | public void start(Environment env) throws IOException {<NEW_LINE>try {<NEW_LINE>parseCommandLine();<NEW_LINE>if (Strings.isNullOrEmpty(commandName)) {<NEW_LINE>StringWriter msg = new StringWriter();<NEW_LINE><MASK><NEW_LINE>throw new UnloggedFailure(1, msg.toString());<NEW_LINE>}<NEW_LINE>BaseCommand cmd = getCommand()... | msg.write(usage()); |
1,630,802 | private void addOLCand0(@NonNull final OLCand candidate) {<NEW_LINE>if (currentOrderLine == null) {<NEW_LINE>currentOrderLine = newOrderLine(candidate);<NEW_LINE>}<NEW_LINE>currentOrderLine.setM_Warehouse_ID(WarehouseId.toRepoId(candidate.getWarehouseId()));<NEW_LINE>currentOrderLine.setM_Warehouse_Dest_ID(WarehouseId.... | currentQty, candidate.getQty()); |
1,648,046 | public int nextInterval() throws IOException {<NEW_LINE>lead = null;<NEW_LINE>// first, find a matching interval beyond the current start<NEW_LINE>while (this.proximityQueue.size() == minShouldMatch && proximityQueue.top().start() == start) {<NEW_LINE><MASK><NEW_LINE>if (it != null && it.nextInterval() != IntervalItera... | IntervalIterator it = proximityQueue.pop(); |
201,359 | public Model<Label> train(Dataset<Label> examples, Map<String, Provenance> runProvenance, int invocationCount) {<NEW_LINE>if (examples.getOutputInfo().getUnknownCount() > 0) {<NEW_LINE>throw new IllegalArgumentException("The supplied Dataset contained unknown Outputs, and this Trainer is supervised.");<NEW_LINE>}<NEW_L... | double curWeight = ex.getWeight(); |
1,509,828 | public final void update(EventBean[] newData, EventBean[] oldData) {<NEW_LINE>AgentInstanceContext agentInstanceContext = agentInstanceViewFactoryContext.getAgentInstanceContext();<NEW_LINE>agentInstanceContext.getAuditProvider().view(newData, oldData, agentInstanceContext, factory);<NEW_LINE>agentInstanceContext.getIn... | .getInstrumentationProvider().aViewIndicate(); |
393,317 | private void initDefaultRoutes(Router router) {<NEW_LINE>router.add(GET, "/", RootTask.class);<NEW_LINE>router.add(GET, "", RootRedirectTask.class);<NEW_LINE>router.add(POST, "/reset", ResetTask.class);<NEW_LINE>router.add(GET, "/mappings", GetAllStubMappingsTask.class);<NEW_LINE>router.add(POST, "/mappings", CreateStu... | POST, "/requests/remove-by-metadata", RemoveServeEventsByStubMetadataTask.class); |
463,304 | public void createResourceContent(String repositoryUrl, String commitMessage, String content) throws SourceConnectorException {<NEW_LINE>try {<NEW_LINE>String b64Content = Base64.encodeBase64String(content.getBytes(StandardCharsets.UTF_8));<NEW_LINE>GitHubResource resource = resolver.resolve(repositoryUrl);<NEW_LINE>Gi... | throw new SourceConnectorException("Error creating Github resource content.", e); |
456,251 | public void restoreFromSnapshot(@Nonnull Object key0, @Nonnull Object value) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Object key = ((BroadcastKey<Object>) key0).key();<NEW_LINE>if (PARTITION_COUNTS_SNAPSHOT_KEY.equals(key)) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, Integer> partitionCount... | topicPartition.topic() + "' is restored from the snapshot, but the topic is not supposed to be read, ignoring"); |
1,193,779 | public Object saveState(FacesContext context) {<NEW_LINE>UIViewRoot root = context.getViewRoot();<NEW_LINE>if (root != null && root.initialStateMarked()) {<NEW_LINE>if (stateMap != null) {<NEW_LINE>Object[] values = new Object[1];<NEW_LINE>values[0] = UIComponentBase.saveAttachedState(context, stateMap);<NEW_LINE>retur... | UIComponentBase.saveAttachedState(context, stateMap); |
1,550,926 | public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException {<NEW_LINE>Register reg = editorAdaptor.getRegisterManager().getRegister(registerName);<NEW_LINE>String text = reg.getContent().getText();<NEW_LINE>text = VimUtils.replaceNewLines(text, editorAdaptor.getConfiguration().getNewLine());<NEW_... | replace(offset, 0, text); |
1,591,049 | public void actionPerformed(ActionEvent e) {<NEW_LINE>JTextComponent target = getTextComponent(e);<NEW_LINE>if (target != null && target.getDocument() instanceof SyntaxDocument) {<NEW_LINE>SyntaxDocument sDoc = (SyntaxDocument) target.getDocument();<NEW_LINE>int dot = target.getCaretPosition();<NEW_LINE>Token token = s... | .replace("|", "")); |
1,316,543 | public AssignTapePoolResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssignTapePoolResult assignTapePoolResult = new AssignTapePoolResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
1,188,474 | public Mat run(Mat inputMat, ImageBlob imageBlob) {<NEW_LINE>int origin_w = inputMat.width();<NEW_LINE>int origin_h = inputMat.height();<NEW_LINE>imageBlob.getReshapeInfo().put("resize", new int[] { origin_w, origin_h });<NEW_LINE>int im_size_max = Math.max(origin_w, origin_h);<NEW_LINE>int im_size_min = Math.min(origi... | ) / (float) (im_size_max); |
997,445 | public UpdateDomainConfigurationResult updateDomainConfiguration(UpdateDomainConfigurationRequest updateDomainConfigurationRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainConfigurationRequest);<NEW_LINE>AWSRequestMetrics aws... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,091,032 | private FastBuildState updateBuild(BlazeContext context, Label label, FastBuildParameters buildParameters, @Nullable FastBuildState existingBuildState) {<NEW_LINE>context.output(FastBuildLogOutput.keyValue("label", label.toString()));<NEW_LINE>if (existingBuildState != null && !existingBuildState.newBuildOutput().isDon... | changedSources = changedFilesManager.getAndResetChangedSources(label); |
417,691 | private Mono<Response<Flux<ByteBuffer>>> refreshWithResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required a... | error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); |
1,680,235 | protected void addAllProductOptionsToModel(Map<String, Object> newModelVars, Product product) {<NEW_LINE>List<ProductOptionXref> productOptionXrefs = ListUtils.emptyIfNull(product.getProductOptionXrefs());<NEW_LINE>List<ProductOptionDTO> dtos = new ArrayList<>();<NEW_LINE>for (ProductOptionXref optionXref : productOpti... | Money priceAdjustment = value.getPriceAdjustment(); |
1,234,658 | final DeleteReceiptRuleResult executeDeleteReceiptRule(DeleteReceiptRuleRequest deleteReceiptRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReceiptRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
266,813 | public void registerProtocol(Protocol protocol, List<Integer> supportedClientVersion, int serverVersion) {<NEW_LINE>// Register the protocol's handlers<NEW_LINE>protocol.initialize();<NEW_LINE>// Clear cache as this may make new routes.<NEW_LINE>if (!pathCache.isEmpty()) {<NEW_LINE>pathCache.clear();<NEW_LINE>}<NEW_LIN... | new Int2ObjectOpenHashMap<>(2)); |
1,120,150 | private Paint createPaint() {<NEW_LINE>Paint paint = new Paint();<NEW_LINE>paint.setAntiAlias(true);<NEW_LINE><MASK><NEW_LINE>paint.setStrokeWidth(this.paintStrokeWidth);<NEW_LINE>paint.setStrokeCap(this.lineCap);<NEW_LINE>// fixed<NEW_LINE>paint.setStrokeJoin(Paint.Join.MITER);<NEW_LINE>// for Text<NEW_LINE>if (this.m... | paint.setStyle(this.paintStyle); |
1,436,076 | public ScrollResult scroll(String query, TimeRange range, int limit, int offset, List<String> fields, String filter, int batchSize) {<NEW_LINE>final Set<String> affectedIndices = determineAffectedIndices(range, filter);<NEW_LINE>final Set<String> indexWildcards = indexSetRegistry.getForIndices(affectedIndices).stream()... | scroll(scrollCommandBuilder.build()); |
920,313 | private /*<NEW_LINE>* StackFrame frame = getFrame(insn); Operand[] out = frame.out(); Operand dup, dup2 = null, dupd, dupd2 = null; if (out ==<NEW_LINE>* null) { dupd = popImmediate(); dup = new Operand(insn, dupd.stackOrValue()); if (dword) { dupd2 = peek(); if (dupd2 ==<NEW_LINE>* DWORD_DUMMY) { pop(); dupd2 = dupd; ... | insn, dupd2.stackOrValue()); |
76,240 | private void processOrphanModules() {<NEW_LINE>if (myProject.isDisposed())<NEW_LINE>return;<NEW_LINE>if (ExternalSystemDebugEnvironment.DEBUG_ORPHAN_MODULES_PROCESSING) {<NEW_LINE>LOG.info(String.format("Checking for orphan modules. External paths returned by external system: '%s'", myExternalModulePaths));<NEW_LINE>}<... | (String.format("External paths doesn't contain IDE module LINKED_PROJECT_PATH_KEY anymore => add to orphan IDE modules.")); |
722,180 | private Token parseOperator() throws ParseException {<NEW_LINE>int tokenStartIndex = currentColumnIndex;<NEW_LINE>StringBuilder tokenValue = new StringBuilder();<NEW_LINE>while (true) {<NEW_LINE>tokenValue.append((char) currentChar);<NEW_LINE>String tokenString = tokenValue.toString();<NEW_LINE>String possibleNextOpera... | operator = operatorDictionary.getPrefixOperator(tokenString); |
1,062,749 | private void split(MAsset asset) {<NEW_LINE>asset.changeStatus(MAsset.A_ASSET_STATUS_Preservation, getDateDoc());<NEW_LINE>// Update Product Balance<NEW_LINE>MAssetProduct assetProduct = MAssetProduct.getCreate(getCtx(), getA_Asset_ID(), asset.getM_Product_ID(), asset.getM_AttributeSetInstance_ID(), get_TrxName());<NEW... | assetBalance.setA_Accumulated_Depr(BigDecimal.ZERO); |
1,753,684 | private static XTextDocument selectDocumentDialog(List<XTextDocument> list, DialogService dialogService) {<NEW_LINE>class DocumentTitleViewModel {<NEW_LINE><NEW_LINE>private final XTextDocument xTextDocument;<NEW_LINE><NEW_LINE>private final String description;<NEW_LINE><NEW_LINE>public DocumentTitleViewModel(XTextDocu... | (Collectors.toList())); |
1,478,928 | /* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.dialogs.FilteredItemsSelectionDialog#fillContentProvider(org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.AbstractContentProvider, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter, org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>protected... | contentProvider.add(module, itemsFilter); |
56,668 | public void enterRoutePlanningModeGivenGpx(GPXFile gpxFile, ApplicationMode appMode, LatLon from, PointDescription fromName, boolean useIntermediatePointsByDefault, boolean showMenu, int menuState) {<NEW_LINE>settings.USE_INTERMEDIATE_POINTS_NAVIGATION.set(useIntermediatePointsByDefault);<NEW_LINE>TargetPointsHelper ta... | != null ? appMode : getRouteMode(); |
692,142 | public final void heredoc() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST heredoc_AST = null;<NEW_LINE>match(HERE_DOC_BEGIN);<NEW_LINE>{<NEW_LINE>switch(LA(1)) {<NEW_LINE>case HERE_DOC_CONTENT:<NEW_LINE>{<NEW_LINE>AST tmp293_AST ... | heredoc_AST = (AST) currentAST.root; |
2,835 | private <E> MetaResultSet createResultSet(Enumerable<E> enumerable, Class clazz, String... names) {<NEW_LINE>final List<ColumnMetaData> columns = new ArrayList<>();<NEW_LINE>final List<Field> fields = new ArrayList<>();<NEW_LINE>final List<String> fieldNames = new ArrayList<>();<NEW_LINE>for (String name : names) {<NEW... | (0, true, iterable)); |
307,502 | protected void sendAuthnRequest(HttpFacade httpFacade, SAML2AuthnRequestBuilder authnRequestBuilder, BaseSAML2BindingBuilder binding) {<NEW_LINE>try {<NEW_LINE>MessageFactory messageFactory = MessageFactory.newInstance();<NEW_LINE>SOAPMessage message = messageFactory.createMessage();<NEW_LINE>SOAPEnvelope envelope = me... | JBossSAMLURIConstants.ECP_PROFILE.get()); |
1,195,837 | protected void renderTransmissionDynamic(@Nonnull IConduit conduit, @Nonnull IConduitTexture tex, @Nullable Vector4f color, @Nonnull CollidableComponent component, float selfIllum) {<NEW_LINE>float filledRatio = ((GasConduit) conduit).getTank().getFilledRatio();<NEW_LINE>if (filledRatio <= 0 || !component.isDirectional... | )) == 1 ? 0 : shrink; |
785,765 | public void initJobHandlers() {<NEW_LINE>jobHandlers = new HashMap<>();<NEW_LINE>jobHandlers.put(TriggerTimerEventJobHandler.TYPE, new TriggerTimerEventJobHandler());<NEW_LINE>jobHandlers.put(AsyncActivatePlanItemInstanceJobHandler.TYPE, new AsyncActivatePlanItemInstanceJobHandler());<NEW_LINE>jobHandlers.put(AsyncInit... | TYPE, new ExternalWorkerTaskCompleteJobHandler(this)); |
1,283,387 | protected mxRectangle revalidateState(mxCellState parentState, mxCellState state, double dx, double dy) {<NEW_LINE>mxRectangle dirty = null;<NEW_LINE>if (state != null) {<NEW_LINE>mxGraph graph = graphComponent.getGraph();<NEW_LINE>mxIGraphModel model = graph.getModel();<NEW_LINE>Object cell = state.getCell();<NEW_LINE... | ).validatePoints(parentState, cell); |
694,288 | private void initModels() {<NEW_LINE>List<JSFConfigModel> mods = new LinkedList<JSFConfigModel>();<NEW_LINE>JSFConfigModel facesConfigMod = null;<NEW_LINE>FileObject facesConfig = getUnit().getApplicationFacesConfig();<NEW_LINE>if (facesConfig != null) {<NEW_LINE>facesConfigMod = createModel(facesConfig);<NEW_LINE>if (... | firePropertyChange("model-changed", null, null); |
225,064 | public void onSensorChanged(SensorEvent se) {<NEW_LINE>if (se.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {<NEW_LINE>// Update mapping at sensor rate, values are inverted to be coherent with iOS<NEW_LINE>dspFaust.propagateAcc(0, <MASK><NEW_LINE>dspFaust.propagateAcc(1, -se.values[1]);<NEW_LINE>dspFaust.propagateAcc(... | -se.values[0]); |
1,835,481 | private void renderUserIcons(Graphics g, int iconId, String header, int cy, float alpha) {<NEW_LINE>Fonts.MEDIUMBOLD.drawString(x + (width - Fonts.MEDIUMBOLD.getWidth(header)) / 2, cy, header, COLOR_WHITE);<NEW_LINE>cy += Fonts.MEDIUMBOLD.getLineHeight() + usersPaddingY;<NEW_LINE>int iconSize = UserButton.getIconSize()... | setX(cx + iconSize / 2); |
1,482,420 | public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) {<NEW_LINE>List<IHyperlink> hyperlinks = new ArrayList<IHyperlink>();<NEW_LINE>try {<NEW_LINE>IDocument doc = textViewer.getDocument();<NEW_LINE>String scope = CommonEditorPlugin.getDefault().getDocumentScope... | m = HTML_ID.matcher(line); |
1,585,603 | // when we cast yaml.load(fin)<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public static Map<String, Object> loadFile(String fileName) {<NEW_LINE>Map<String, Object> props = new HashMap<>();<NEW_LINE>if (fileName == null) {<NEW_LINE>LOG.warning("Config file name cannot be null");<NEW_LINE>return props;<NEW_LINE>} ... | path = Paths.get(fileName); |
645,901 | public LuaValue[] calculateSize(LuaValue[] p) {<NEW_LINE>int maxWidth = DimenUtil.dpiToPx((float) p[0].toDouble());<NEW_LINE>if (maxWidth < 0) {<NEW_LINE>if (MLSEngine.DEBUG) {<NEW_LINE>IllegalArgumentException e = new IllegalArgumentException("max width must be more than 0");<NEW_LINE>if (!Environment.hook(e, getGloba... | (globals, new Size()); |
121,051 | final StopReplicationTaskResult executeStopReplicationTask(StopReplicationTaskRequest stopReplicationTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopReplicationTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,640,326 | final GetPullRequestOverrideStateResult executeGetPullRequestOverrideState(GetPullRequestOverrideStateRequest getPullRequestOverrideStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPullRequestOverrideStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,058,140 | public okhttp3.Call subscribeForBotDetectionAlertsCall(BotDetectionAlertSubscriptionDTO botDetectionAlertSubscriptionDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = botDetectionAlertSubscriptionDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/ale... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
1,810,583 | protected Tuple4<String[], String[], TypeInformation<?>[], String[]> prepareIoSchema(TableSchema dataSchema, Params params) {<NEW_LINE>ArrayList<String> tensorCols = new ArrayList<>();<NEW_LINE>ArrayList<TypeInformation<?>> tensorColTypes = new ArrayList<>();<NEW_LINE>String[] names = dataSchema.getFieldNames();<NEW_LI... | tensorColTypes.add(Types.STRING); |
705,780 | public void marshall(OpsItemRelatedItemSummary opsItemRelatedItemSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (opsItemRelatedItemSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(opsItemRe... | opsItemRelatedItemSummary.getAssociationType(), ASSOCIATIONTYPE_BINDING); |
626,649 | public GenericRow decode(byte[] payload, int offset, int length, GenericRow destination) {<NEW_LINE>if (payload == null || payload.length == 0 || length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>System.arraycopy(payload, SCHEMA_HASH_START_OFFSET + offset, _reusableMD5Bytes, 0, SCHEMA_HASH_LENGTH);<NEW_LINE>bool... | LOGGER.info("Found schema for {} in cache", hashKey); |
321,777 | private void populateDialog() throws CryptoException {<NEW_LINE>KeyInfo keyInfo = KeyPairUtil.getKeyInfo(privateKey);<NEW_LINE>jtfAlgorithm.setText(keyInfo.getAlgorithm());<NEW_LINE>Integer keyLength = keyInfo.getSize();<NEW_LINE>if (keyLength != null) {<NEW_LINE>jtfKeySize.setText(MessageFormat.format(res.getString("D... | (16).toUpperCase()); |
301,273 | public List<Comic> parseCategory(String html, int page) {<NEW_LINE>List<Comic> list = new LinkedList<>();<NEW_LINE>try {<NEW_LINE>String decodeJsonString = UicodeBackslashU.unicodeToCn(html).replace("\\/", "/");<NEW_LINE>JSONArray array = new JSONArray(decodeJsonString);<NEW_LINE>for (int i = 0; i != array.length(); ++... | title = object.getString("comic_name"); |
1,443,861 | public void draw(BasinRecipe recipe, PoseStack matrixStack, double mouseX, double mouseY) {<NEW_LINE>if (type == PackingType.COMPACTING) {<NEW_LINE>super.draw(recipe, matrixStack, mouseX, mouseY);<NEW_LINE>} else {<NEW_LINE>NonNullList<Ingredient> ingredients2 = recipe.getIngredients();<NEW_LINE>int size = ingredients2... | = size == 4 ? 2 : 3; |
1,045,694 | final CreateOpsMetadataResult executeCreateOpsMetadata(CreateOpsMetadataRequest createOpsMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOpsMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,412,792 | public void aggregate(ByteBuffer buf, int position, int startRow, int endRow) {<NEW_LINE>// Save position, limit and restore later instead of allocating a new ByteBuffer object<NEW_LINE>final int oldPosition = buf.position();<NEW_LINE>final int oldLimit = buf.limit();<NEW_LINE>try {<NEW_LINE>final long[] vector = selec... | collector = HyperLogLogCollector.makeCollector(buf); |
857,631 | public void run() {<NEW_LINE>try {<NEW_LINE>logger.info("Policy [{}]: Running enrich policy", policyName);<NEW_LINE>task.setStatus(new ExecuteEnrichPolicyStatus(ExecuteEnrichPolicyStatus.PolicyPhases.RUNNING));<NEW_LINE>// Collect the source index information<NEW_LINE>final String[] sourceIndices = policy.getIndices().... | GetIndexRequest().indices(sourceIndices); |
12,292 | public com.amazonaws.services.shield.model.InvalidPaginationTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.shield.model.InvalidPaginationTokenException invalidPaginationTokenException = new com.amazonaws.services.shield.model.InvalidPaginationTok... | int originalDepth = context.getCurrentDepth(); |
485,758 | public // todo count1,count2 = could be the non-null values, intersection the values where both are non-null?<NEW_LINE>Stream<SimilarityResult> euclideanStream(@Name(value = "data", defaultValue = "null") Object rawData, @Name(value = "config", defaultValue = "{}") Map<String, Object> config) throws Exception {<NEW_LIN... | int topK = -getTopK(configuration); |
643,406 | public TransactGetItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TransactGetItem transactGetItem = new TransactGetItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken... | String currentParentElement = context.getCurrentParentElement(); |
720,976 | public JWSHeader convert(JoseHeader headers) {<NEW_LINE>JWSHeader.Builder builder = new JWSHeader.Builder(JWSAlgorithm.parse(headers.getAlgorithm<MASK><NEW_LINE>if (headers.getJwkSetUrl() != null) {<NEW_LINE>builder.jwkURL(convertAsURI(JoseHeaderNames.JKU, headers.getJwkSetUrl()));<NEW_LINE>}<NEW_LINE>Map<String, Objec... | ().getName())); |
1,356,958 | public void beanRemoveInTransaction() throws javax.ejb.RemoveException {<NEW_LINE>// Current the method is already in a global tx - TX_Required.<NEW_LINE>SFLa ejb2 = null;<NEW_LINE>SFLaHome fhome2 = (SFLaHome) getSessionContext().getEJBLocalHome();<NEW_LINE>try {<NEW_LINE>ejb2 = fhome2.create();<NEW_LINE>} catch (Throw... | getClass().getName()); |
77,721 | final DescribeGeofenceCollectionResult executeDescribeGeofenceCollection(DescribeGeofenceCollectionRequest describeGeofenceCollectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGeofenceCollectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | responseHandler, executionContext, null, endpointTraitHost); |
914,059 | public void writeExcel() throws IOException {<NEW_LINE>Workbook workbook = new XSSFWorkbook();<NEW_LINE>try {<NEW_LINE>Sheet sheet = workbook.createSheet("Persons");<NEW_LINE>sheet.setColumnWidth(0, 6000);<NEW_LINE>sheet.setColumnWidth(1, 4000);<NEW_LINE>Row header = sheet.createRow(0);<NEW_LINE>CellStyle headerStyle =... | cell = row.createCell(1); |
210,472 | BlazeWorkspace build(BlazeRuntime runtime, PackageFactory packageFactory, SubscriberExceptionHandler eventBusExceptionHandler) throws AbruptExitException {<NEW_LINE>// Set default values if none are set.<NEW_LINE>if (skyframeExecutorFactory == null) {<NEW_LINE>skyframeExecutorFactory = new SequencedSkyframeExecutorFact... | skyKeyStateReceiver, runtime.getBugReporter()); |
1,676,272 | final DeleteApplicationOutputResult executeDeleteApplicationOutput(DeleteApplicationOutputRequest deleteApplicationOutputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationOutputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
494,112 | public void paintInstance(InstancePainter painter) {<NEW_LINE>final <MASK><NEW_LINE>final var facing = painter.getAttributeValue(StdAttr.FACING);<NEW_LINE>painter.drawBounds();<NEW_LINE>final var bds = painter.getBounds();<NEW_LINE>g.setColor(Color.GRAY);<NEW_LINE>int x0;<NEW_LINE>int y0;<NEW_LINE>int halign;<NEW_LINE>... | var g = painter.getGraphics(); |
649,535 | private SWTSkinObject createImageLabel2(SWTSkinProperties properties, final String sConfigID, SWTSkinObject parentSkinObject) {<NEW_LINE>Composite createOn;<NEW_LINE>if (parentSkinObject == null) {<NEW_LINE>createOn = skinComposite;<NEW_LINE>} else {<NEW_LINE>createOn = (Composite) parentSkinObject.getControl();<NEW_LI... | Canvas(createOn, SWT.NO_BACKGROUND); |
1,651,498 | public void serialize(SerializationContext context, NestedSet<?> obj, CodedOutputStream codedOut) throws SerializationException, IOException {<NEW_LINE>context.serialize(obj.getOrder(), codedOut);<NEW_LINE>if (obj.isEmpty()) {<NEW_LINE>// If the NestedSet is empty, it needs to be assigned to the EMPTY_CHILDREN constant... | NestedSetSize.LEAF.ordinal()); |
1,017,143 | protected void genWriteAttr(Property a, String varName) throws IOException {<NEW_LINE>boolean isScalar = a.isScalar();<NEW_LINE>String dtdName = a.dtdName;<NEW_LINE>String namespace = a.getNamespace();<NEW_LINE>comment(dtdName + " is an attribute with namespace " + namespace);<NEW_LINE>if (!isScalar) {<NEW_LINE>gen("if... | dtdName = SchemaRep.removePrefix(dtdName); |
838,883 | public static void vertical7(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[... | (dataSrc[indexSrc]) * k7; |
84,984 | static String printTemplate(Template template) {<NEW_LINE>int[] columnWidths = new int[] { TABLE_WIDTH };<NEW_LINE>List<String> templateProperty = new ArrayList<String>();<NEW_LINE>templateProperty.add(template.getUID());<NEW_LINE>String titleRow = Utils.getRow(columnWidths, templateProperty);<NEW_LINE>List<String> tem... | = new ArrayList<String>(); |
397,648 | public FlowTemplateFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FlowTemplateFilter flowTemplateFilter = new FlowTemplateFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | class).unmarshall(context)); |
1,845,410 | private void loadNode449() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_Open_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments")... | .expanded(), true)); |
812,383 | private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>List<String> groupIds = business.expendGroupRoleToGroup(wi.getGroupList(), wi.getRoleList());<NEW_LINE>String str = Stri... | str + "%", StringTools.SQL_ESCAPE_CHAR); |
964,965 | public static void horizontal(GrayF64 src, GrayF64 dst) {<NEW_LINE>if (src.width < dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must be >= dst width");<NEW_LINE>if (src.height != dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must equal dst height");<NEW_LINE>float scale = src.... | = src.data[index++]; |
601,446 | final ListMailboxPermissionsResult executeListMailboxPermissions(ListMailboxPermissionsRequest listMailboxPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMailboxPermissionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,280,625 | public static Map<String, Long> queryDbGroupDataSize(String schema, List<GroupDetailInfoExRecord> groupRecords) {<NEW_LINE>Map<String, Long> groupDataSizeMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>groupRecords.stream().collect(Collectors.groupingBy(x -> x.storageInstId)).forEach((storageInstId, groups... | dataSizeKB * 1024, Long::sum); |
238,431 | private void checkIfIsoAttachable(String isoUuid) {<NEW_LINE>String psUuid = getSelfInventory().getRootVolume().getPrimaryStorageUuid();<NEW_LINE>String sql = "select count(i)" + " from ImageCacheVO i" + " where i.primaryStorageUuid = :psUuid" + " and i.imageUuid = :isoUuid";<NEW_LINE>TypedQuery<Long> q = dbf.getEntity... | Long count = q.getSingleResult(); |
301,015 | private List<Step> toSteps(Scenario scenario, List<KarateParser.StepContext> list) {<NEW_LINE>List<Step> steps = new ArrayList(list.size());<NEW_LINE>int index = 0;<NEW_LINE>for (KarateParser.StepContext sc : list) {<NEW_LINE>Step step = scenario == null ? new Step(feature, index++) : new Step(scenario, index++);<NEW_L... | toTable(sc.table()); |
1,047,078 | public void marshall(SendEmailRequest sendEmailRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sendEmailRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sendEmailRequest.getFromEmailAddress... | sendEmailRequest.getFeedbackForwardingEmailAddress(), FEEDBACKFORWARDINGEMAILADDRESS_BINDING); |
1,188,803 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (player == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Card card = player.getLibrary().getFromT... | GainAbilityTargetEffect(sa, Duration.WhileOnBattlefield); |
511,506 | private TIFFDirectory readLinkedIFDs(final ImageInputStream input) throws IOException {<NEW_LINE>long ifdOffset = readOffset(input);<NEW_LINE>List<IFD> <MASK><NEW_LINE>// Read linked IFDs<NEW_LINE>while (ifdOffset != 0) {<NEW_LINE>try {<NEW_LINE>if ((inputLength > 0 && ifdOffset >= inputLength) || !isValidOffset(input,... | ifds = new ArrayList<>(); |
1,452,275 | public static void main(String[] args) throws Exception {<NEW_LINE>String BASE_DIR = System.getProperty("user.dir");<NEW_LINE>String inputfilepath = BASE_DIR + "/sample-docs/sample-docx.docx";<NEW_LINE>boolean saveImages = true;<NEW_LINE>boolean saveResultingDoc = true;<NEW_LINE>String outputfilepath = BASE_DIR + "/OUT... | .Document) documentPart.getJaxbElement(); |
1,410,400 | private void updatePanel() {<NEW_LINE><MASK><NEW_LINE>// set the number of files and the number of functions<NEW_LINE>numFunctionsField.setText(Integer.toString(patternReader.getNumFuncs()));<NEW_LINE>numFilesField.setText(Integer.toString(patternReader.getNumFiles()));<NEW_LINE>// set the gathering info fields<NEW_LIN... | int selectedTab = tabbedPane.getSelectedIndex(); |
1,215,623 | public void addSendMetric(DispatchProfile currentRecord, String proxyClusterId) {<NEW_LINE>Map<String, String> dimensions = new HashMap<>();<NEW_LINE>dimensions.put(SdkMetricItem.KEY_NODE_ID, this.nodeId);<NEW_LINE>dimensions.put(SdkMetricItem.KEY_NODE_IP, this.nodeIp);<NEW_LINE>// metric<NEW_LINE>fillInlongId(currentR... | long auditFormatTime = msgTime - msgTime % auditFormatInterval; |
828,244 | private ByteBuffer writeBigPackageToBuffer(byte[] data, ByteBuffer buffer) {<NEW_LINE>int srcPos;<NEW_LINE>byte[] singlePacket;<NEW_LINE>singlePacket = new byte[MySQLPacket.MAX_PACKET_SIZE + MySQLPacket.PACKET_HEADER_SIZE];<NEW_LINE>System.arraycopy(data, 0, singlePacket, 0, MySQLPacket.MAX_PACKET_SIZE + MySQLPacket.PA... | MySQLPacket.MAX_PACKET_SIZE + MySQLPacket.PACKET_HEADER_SIZE]; |
316,694 | public void visitTag(Tag parseTag, IParseDictionary parseDictionary) throws LogParseException {<NEW_LINE>String currentMethod = null;<NEW_LINE>String holder = null;<NEW_LINE>List<Tag> allChildren = parseTag.getChildren();<NEW_LINE>for (Tag child : allChildren) {<NEW_LINE>String tagName = child.getName();<NEW_LINE>Map<S... | holder = attrs.get(ATTR_HOLDER); |
1,449,497 | private static void buildComplexCriteria(Map<String, String> dbColToObjectAttribute, ComplexCriteria criteriaToBuildOut, StringBuilder queryToAppendTo, String conditionToAppend, List<Object> params) {<NEW_LINE>List<Criteria<MASK><NEW_LINE>boolean first = true;<NEW_LINE>boolean open = false;<NEW_LINE>for (Criteria crite... | > cs = criteriaToBuildOut.getCriteria(); |
375,073 | File close(long hash) {<NEW_LINE>if (hasher.getValue() != hash) {<NEW_LINE>throw new RuntimeException("xxhash from content (" + currentHash + ") is not equal to xxhash in request (" + hash + ")");<NEW_LINE>}<NEW_LINE>File file = new File(fileReferenceDir, fileName);<NEW_LINE>try {<NEW_LINE>// Unpack if necessary<NEW_LI... | e.getMessage(), e); |
1,805,224 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 1) {<NEW_LINE>throw new RuntimeException("Specify topology name");<NEW_LINE>}<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>builder.setSpout("word"<MASK><NEW_LINE>builder.setBolt("count", new CountBolt(), 2).shuff... | , new AckingTestWordSpout(), 2); |
1,726,302 | private void declare(AncestorChain<Identifier> id, ScopeTree<S> scope) {<NEW_LINE>String symbolName = id.node.getName();<NEW_LINE>ScopeTree<S> declScope = hoist(id, scope);<NEW_LINE>for (ScopeTree<S> s = scope; s != declScope; s = s.outer) {<NEW_LINE>if (s.type != ScopeType.CATCH) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LI... | duplicate(id, declScope.scopeImpl); |
175,230 | public boolean deleteBackup(final Long backupId) {<NEW_LINE>final BackupVO backup = backupDao.findByIdIncludingRemoved(backupId);<NEW_LINE>if (backup == null) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>final Long vmId = backup.getVmId();<NEW_LINE>final VMInstanceVO vm = vmInstanceDao.findByIdIncludingRemoved(vmId)... | CloudRuntimeException("Backup " + backupId + " does not exist"); |
500,715 | public InternalAggregation[] buildAggregations(long[] owningBucketOrds) throws IOException {<NEW_LINE>int numClusters = collector.finalNumBuckets();<NEW_LINE>long[] bucketOrdsToCollect = new long[numClusters];<NEW_LINE>for (int i = 0; i < numClusters; i++) {<NEW_LINE>bucketOrdsToCollect[i] = i;<NEW_LINE>}<NEW_LINE>Inte... | bucketOrd, subAggregationResults[bucketOrd])); |
759,672 | public void decodeSelectionRowKeys(FacesContext context, DataTable table) {<NEW_LINE>Set<String> rowKeys = null;<NEW_LINE>ValueExpression selectionVE = table.getValueExpression(DataTableBase.PropertyKeys.selection.name());<NEW_LINE>if (selectionVE != null) {<NEW_LINE>Object selection = selectionVE.getValue(context.getE... | "Multiple selection reference must be an Array or a List for datatable " + table.getClientId()); |
122,459 | public static void bind(Class<?> c) {<NEW_LINE>Library library = c.getAnnotation(Library.class);<NEW_LINE>if (library != null) {<NEW_LINE>Runtime.loadLibrary(library);<NEW_LINE>}<NEW_LINE>for (Method method : c.getDeclaredMethods()) {<NEW_LINE>Bridge bridge = method.getAnnotation(Bridge.class);<NEW_LINE>if (bridge != n... | resolveGlobalValue(library, globalValue, method); |
823,024 | protected void updateToolbar(int verticalOffset) {<NEW_LINE>float absOffset = Math.abs(verticalOffset);<NEW_LINE>float totalScrollRange = appBar.getTotalScrollRange();<NEW_LINE>boolean collapsed = totalScrollRange > 0 && Math.abs(verticalOffset) == totalScrollRange;<NEW_LINE>float alpha = ColorUtilities.getProportional... | Window window = dialog.getWindow(); |
1,302,640 | public static DescribeLiveRealtimeDeliveryAccResponse unmarshall(DescribeLiveRealtimeDeliveryAccResponse describeLiveRealtimeDeliveryAccResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveRealtimeDeliveryAccResponse.setRequestId(_ctx.stringValue("DescribeLiveRealtimeDeliveryAccResponse.RequestId"));<NEW_LINE>Lis... | = new ArrayList<AccData>(); |
413,406 | public void marshall(ParameterDefinition parameterDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (parameterDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(parameterDefinition.getAllo... | parameterDefinition.getType(), TYPE_BINDING); |
362,332 | public Void execute(CommandContext commandContext) {<NEW_LINE>final Incident incident = commandContext.getIncidentManager().findIncidentById(incidentId);<NEW_LINE>EnsureUtil.ensureNotNull(NotFoundException.class, "Cannot find an incident with id '" + incidentId + "'", "incident", incident);<NEW_LINE>if (incident.getInc... | findExecutionById(incident.getExecutionId()); |
464,834 | private static // relation.<NEW_LINE>boolean relate(Envelope envelope_a, Envelope envelope_b, SpatialReference sr, int relation, ProgressTracker progress_tracker) {<NEW_LINE>if (envelope_a.isEmpty() || envelope_b.isEmpty()) {<NEW_LINE>if (relation == Relation.disjoint)<NEW_LINE>// Always true<NEW_LINE>return true;<NEW_... | env_a, env_b, tolerance, progress_tracker); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.