idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
661,847 | public Map<String, Object> toMap(final String filter) {<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>final int <MASK><NEW_LINE>final String prefix = filter.substring(0, splitPos >= 0 ? splitPos : filter.length());<NEW_LINE>if ("dos".equals(prefix)) {<NEW_LINE>map.put("hidden", isHidden());<NEW_LIN... | splitPos = filter.indexOf(":"); |
1,831,627 | protected void applyDiffNode(final LayoutStateContext current, final LithoLayoutResult result, @Nullable final LithoLayoutResult parent) {<NEW_LINE>final LayoutState state = current.getLayoutState();<NEW_LINE>if (state == null) {<NEW_LINE>// Cannot apply diff nodes without a LayoutState<NEW_LINE>return;<NEW_LINE>}<NEW_... | getNode().getChildIndex(this); |
46,442 | public void onCurrencyChange(final I_C_Payment payment) {<NEW_LINE>final int C_Invoice_ID = payment.getC_Invoice_ID();<NEW_LINE>final int C_Order_ID = payment.getC_Order_ID();<NEW_LINE>// Get Currency Info<NEW_LINE>final CurrencyId currencyId = CurrencyId.ofRepoIdOrNull(payment.getC_Currency_ID());<NEW_LINE>final Curre... | (PayAmt.multiply(currencyRate)); |
413,331 | private void loadClasses(@Nonnull ComponentConfig config, List<Class> notLazyServices, InjectingContainerBuilder builder) {<NEW_LINE>ClassLoader loader = config.getClassLoader();<NEW_LINE>try {<NEW_LINE>final Class interfaceClass = Class.forName(config.getInterfaceClass(), false, loader);<NEW_LINE>final Class implement... | getImplementationClass(), false, loader); |
1,359,988 | public Request<AcceptCertificateTransferRequest> marshall(AcceptCertificateTransferRequest acceptCertificateTransferRequest) {<NEW_LINE>if (acceptCertificateTransferRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AcceptCertificateTransferRequest)");<NEW_LINE>}<NEW_LINE>R... | (acceptCertificateTransferRequest.getCertificateId())); |
1,527,271 | private void executeScript(final ScriptTab tab, final String script, final Project<BufferedImage> project, final ImageData<BufferedImage> imageData) {<NEW_LINE>if (!(tab.getLanguage() instanceof RunnableLanguage))<NEW_LINE>return;<NEW_LINE>RunnableLanguage runnableLanguage = (RunnableLanguage) tab.getLanguage();<NEW_LI... | t.getLocalizedMessage(), t); |
461,096 | public String awaitResponses(long timeout, TimeUnit unit) {<NEW_LINE>Iterator<Entry<Integer, MapValues>> itr = streamidMap.entrySet().iterator();<NEW_LINE>String response = null;<NEW_LINE>while (itr.hasNext()) {<NEW_LINE>Entry<Integer, MapValues> entry = itr.next();<NEW_LINE>ChannelFuture writeFuture = entry.getValue()... | RuntimeException(writeFuture.cause()); |
983,708 | private static BatchOperator<?> preOrderSerialize(StageNode[] stages, BatchOperator<?> packed, final TableSchema schema, final int offset) {<NEW_LINE>if (stages == null || stages.length == 0) {<NEW_LINE>return packed;<NEW_LINE>}<NEW_LINE>final int len = schema.getFieldTypes().length;<NEW_LINE>final long[] id = new long... | (schema.getFieldTypes())); |
136,511 | public void draw() {<NEW_LINE>super.draw();<NEW_LINE>// draw glowing center<NEW_LINE>if (warmup > 0f && flameColor.a > 0.001f) {<NEW_LINE>float g = 0.3f;<NEW_LINE>float r = 0.06f;<NEW_LINE>float cr = Mathf.random(0.1f);<NEW_LINE>Draw.z(Layer.block + 0.01f);<NEW_LINE>Draw.alpha(((1f - g) + Mathf.absin(Time.time, 8f, g) ... | r) - r) * warmup); |
685,148 | final StopMultiplexResult executeStopMultiplex(StopMultiplexRequest stopMultiplexRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopMultiplexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopMultiplex"); |
1,692,820 | public Double eval(Row row, ExpressionEvalContext context) {<NEW_LINE>Object value = <MASK><NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>assert value instanceof Number;<NEW_LINE>double valueDouble = ((Number) value).doubleValue();<NEW_LINE>switch(type) {<NEW_LINE>case COS:<NEW_LINE>return Mat... | operand.eval(row, context); |
427,090 | private String createKeyValue(String key, String value) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// no quoting the key; "Keys are alphanumeric strings which may contain periods (.) and hyphens (-)"<NEW_LINE>sb.append<MASK><NEW_LINE>if (value == null || value.isEmpty()) {<NEW_LINE>return sb.append("\"... | (key).append('='); |
647,114 | private static void addNewFieldProposals(ICompilationUnit cu, CompilationUnit astRoot, ITypeBinding binding, ITypeBinding declaringTypeBinding, SimpleName simpleName, boolean isWriteAccess, Collection<ChangeCorrectionProposal> proposals) throws JavaModelException {<NEW_LINE>// new variables<NEW_LINE>ICompilationUnit ta... | anonymDecl = astRoot.findDeclaringNode(senderDeclBinding); |
1,537,355 | public void attachValidate(EventType parentEventType, ViewForgeEnv viewForgeEnv) throws ViewParameterException {<NEW_LINE>final String windowName = getViewName();<NEW_LINE>ExprNode[] validated = ViewForgeSupport.validate(windowName, parentEventType, viewParameters, true, viewForgeEnv);<NEW_LINE>if (viewParameters.size(... | throw new ViewParameterException(getViewParamMessage()); |
769,107 | public int minDistance(String word1, String word2) {<NEW_LINE>int m = word1.length(), n = word2.length();<NEW_LINE>int[][] dp = new int[m + 1][n + 1];<NEW_LINE>for (int i = 0; i <= m; ++i) {<NEW_LINE>dp[i][0] = i;<NEW_LINE>}<NEW_LINE>for (int j = 0; j <= n; ++j) {<NEW_LINE>dp[0][j] = j;<NEW_LINE>}<NEW_LINE>for (int i =... | return dp[m][n]; |
398,172 | public CheckDomainAvailabilityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CheckDomainAvailabilityResult checkDomainAvailabilityResult = new CheckDomainAvailabilityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | JsonToken token = context.getCurrentToken(); |
528,300 | public static boolean findCsrfAttackUrl(String theUrl, String csrfAttackPath, String userIdParameterName, String userIdParameterValue) {<NEW_LINE>boolean validAttack = false;<NEW_LINE>try {<NEW_LINE>URL theAttack = new URL(theUrl);<NEW_LINE>log.debug("csrfAttackPath: " + csrfAttackPath);<NEW_LINE>log.debug("theAttack H... | "Invalid URL Submitted: " + e.toString()); |
414,988 | final DeleteTableResult executeDeleteTable(DeleteTableRequest deleteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,252,794 | public void processBuildable(JDefinedClass clazz) {<NEW_LINE>try {<NEW_LINE>JAnnotationUse buildable = clazz.annotate(Buildable.class).param("editableEnabled", false).param("validationEnabled", false).param("generateBuilderPackage", false).param("lazyCollectionInitEnabled", false).param("builderPackage", "io.fabric8.ku... | ()._class("io.fabric8.kubernetes.api.model.ObjectReference")); |
523,580 | public void decode16x8(MBlock mBlock, Picture mb, Frame[][] refs, PartPred p0, PartPred p1) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = mapper.leftAvailable(mBlock.mbIdx);<NEW_LINE>boolean topAvailable = mapper.topAvailable(mBlock.mb... | x, p0, p1, list); |
835,215 | final DeleteTagsResult executeDeleteTags(DeleteTagsRequest deleteTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | endClientExecution(awsRequestMetrics, request, response); |
266,112 | private TypeUpdateResult arrayGetListener(TypeUpdateInfo updateInfo, InsnNode insn, InsnArg arg, ArgType candidateType) {<NEW_LINE>if (isAssign(insn, arg)) {<NEW_LINE>TypeUpdateResult result = updateTypeChecked(updateInfo, insn.getArg(0), ArgType.array(candidateType));<NEW_LINE>if (result == REJECT) {<NEW_LINE>ArgType ... | getArg(0).getType(); |
333,565 | public void testCaptureDebuggerBreakpointMarkerPlugin() throws Throwable {<NEW_LINE>ListingPanel panel = listing.getListingPanel();<NEW_LINE>mb.createTestModel();<NEW_LINE>modelService.addModel(mb.testModel);<NEW_LINE>mb.createTestProcessesAndThreads();<NEW_LINE>TestDebuggerTargetTraceMapper mapper = new TestDebuggerTa... | Trace trace = recorder.getTrace(); |
366,233 | final UpdateCustomVerificationEmailTemplateResult executeUpdateCustomVerificationEmailTemplate(UpdateCustomVerificationEmailTemplateRequest updateCustomVerificationEmailTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCustomVerificationEmailTemplateRequest);<NEW_LINE>AWSReque... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,608,769 | private void start(ApolloWSMessage message) {<NEW_LINE>String opId = message.content().getString("id");<NEW_LINE>// Unsubscribe if it's subscribed<NEW_LINE>if (subscriptions.containsKey(opId)) {<NEW_LINE>stop(opId);<NEW_LINE>}<NEW_LINE>GraphQLQuery payload = new GraphQLQuery(message.content().getJsonObject("payload"));... | > beforeExecute = apolloWSHandler.getBeforeExecute(); |
1,751,369 | // Builds an ordered map of timezones sorted first by the timezone offset (keys of the TreeMap) and then<NEW_LINE>// alphabetically the timezones in that specific offset. Iterating over the map and keys maintains that order<NEW_LINE>@SuppressForbidden("Intentionally use system default timezone")<NEW_LINE>private static... | , new ArrayList<>()); |
1,384,992 | public void visit(BIRNode.BIRFunction birFunction) {<NEW_LINE>BIROptimizer.OptimizerEnv <MASK><NEW_LINE>// Get basic blocks vs predecessors map<NEW_LINE>populatePredecessorMap(birFunction.basicBlocks);<NEW_LINE>// Remove unnecessary goto basic blocks<NEW_LINE>Set<BIRBasicBlock> removableGOTOBasicBlocks = getRemovableBa... | funcEnv = new BIROptimizer.OptimizerEnv(); |
1,159,770 | public byte[] read_size_and_inflate() throws IOException {<NEW_LINE>final int size = read4BE();<NEW_LINE>final byte[] buf = new byte[size];<NEW_LINE>final java.util.zip.Inflater inflater = new java<MASK><NEW_LINE>final java.util.zip.InflaterInputStream is = new java.util.zip.InflaterInputStream(this, inflater);<NEW_LIN... | .util.zip.Inflater(); |
1,276,997 | protected TableType tableTypeFor(Connection connection, TableId tableId) throws SQLException {<NEW_LINE><MASK><NEW_LINE>String[] tableTypes = tableTypes(metadata, this.tableTypes);<NEW_LINE>String tableTypeDisplay = displayableTableTypes(tableTypes, "/");<NEW_LINE>glog.info("Checking {} dialect for type of {} {}", this... | DatabaseMetaData metadata = connection.getMetaData(); |
1,164,983 | public Mono<? extends Connection> acquire(TransportConfig config, ConnectionObserver observer, @Nullable Supplier<? extends SocketAddress> remoteAddress, @Nullable AddressResolverGroup<?> resolverGroup) {<NEW_LINE>return Mono.create(sink -> {<NEW_LINE>SocketAddress remote = null;<NEW_LINE>if (remoteAddress != null) {<N... | , container).subscribe(disposableConnect); |
691,215 | public static void configureJVMSettings(IJavaProject javaProject, IVMInstall vmInstall) {<NEW_LINE>if (javaProject == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String version = "";<NEW_LINE>if (vmInstall instanceof AbstractVMInstall) {<NEW_LINE>AbstractVMInstall jvm = (AbstractVMInstall) vmInstall;<NEW_LINE>version ... | JavaCore.COMPILER_PB_REPORT_PREVIEW_FEATURES, JavaCore.IGNORE); |
51,984 | private ColumnState buildSingleMap(ContainerState parent, ColumnMetadata columnSchema) {<NEW_LINE>final ProjectionFilter projFilter = parent.projection();<NEW_LINE>final ProjResult projResult = projFilter.projection(columnSchema);<NEW_LINE>final MapVector vector;<NEW_LINE>final VectorState vectorState;<NEW_LINE>if (pro... | vectorState, parent.isVersioned()); |
125,720 | private static Optional<String> containerIdReferencing(ModelElement nodesElement) {<NEW_LINE>var element = nodesElement.getXml();<NEW_LINE>var services = findParentByTag("services", element);<NEW_LINE>if (services.isEmpty())<NEW_LINE>return Optional.empty();<NEW_LINE>var <MASK><NEW_LINE>if (content.isEmpty())<NEW_LINE>... | content = findParentByTag("content", element); |
846,373 | private void initializeDefaultToolbox() {<NEW_LINE>// Create default tool order based on the catalog contents<NEW_LINE>List<ToolEntry> toolEntries <MASK><NEW_LINE>for (FeatureTool tool : catalog.getFeatureTools()) {<NEW_LINE>toolEntries.add(new ToolEntry(tool.getId(), tool.getType()));<NEW_LINE>}<NEW_LINE>for (Bookmark... | = new ArrayList<ToolEntry>(); |
1,407,012 | protected static KodoUnderFileSystem creatInstance(AlluxioURI uri, UnderFileSystemConfiguration conf) {<NEW_LINE>String bucketName = UnderFileSystemUtils.getBucketName(uri);<NEW_LINE>Preconditions.checkArgument(conf.isSet(PropertyKey.KODO_ACCESS_KEY), "Property %s is required to connect to Kodo", PropertyKey.KODO_ACCES... | .Builder okHttpBuilder = initializeKodoClientConfig(conf); |
1,350,636 | private void indexerGeneratorCleanupJob(boolean indexGeneratorJobAttempted, boolean indexGeneratorJobSuccess, String hadoopIngestionSpecStr) {<NEW_LINE>if (!indexGeneratorJobAttempted) {<NEW_LINE>log.info("No need for cleanup as index generator job did not even run");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ClassLoa... | .currentThread().getContextClassLoader(); |
197,300 | public void parseFromJson(Map<String, Object> topJsonObject) {<NEW_LINE>Object regexRules = topJsonObject.get("regexRules");<NEW_LINE>if (regexRules != null) {<NEW_LINE>List<Object> <MASK><NEW_LINE>List<Pattern>[] patterns = new List[Inclusion.values().length];<NEW_LINE>for (Inclusion inclusion : Inclusion.values()) {<... | patternList = asList(regexRules, "Field 'regexRules' must be a list of objects."); |
508,581 | public void bootstrap() {<NEW_LINE>try {<NEW_LINE>Launch.classLoader.hashCode();<NEW_LINE>} catch (Throwable th) {<NEW_LINE>throw new ServiceInitialisationException(<MASK><NEW_LINE>}<NEW_LINE>// Essential ones<NEW_LINE>Launch.classLoader.addClassLoaderExclusion(MixinServiceLaunchWrapperBootstrap.SERVICE_PACKAGE);<NEW_L... | this.getName() + " is not available"); |
721,930 | public static String detailString(Checker checker, List<Pair<ParameterContext, byte[]>> primaryRow, List<Pair<ParameterContext, byte[]>> gsiRow) {<NEW_LINE>final Map<String, Map<String, Object>> details = new HashMap<>();<NEW_LINE>if (primaryRow != null) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>for (int i = 0; i ... | primaryData = new HashMap<>(); |
1,249,463 | final CreateExperimentTemplateResult executeCreateExperimentTemplate(CreateExperimentTemplateRequest createExperimentTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createExperimentTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | invoke(request, responseHandler, executionContext); |
384,143 | public long readMetricsValue(final MetricsCondition condition, String valueColumnName, final Duration duration) throws IOException {<NEW_LINE>int defaultValue = ValueColumnMetadata.INSTANCE.getDefaultValue(condition.getName());<NEW_LINE>final Function function = ValueColumnMetadata.INSTANCE.getValueFunction(condition.g... | "<=?" + " group by " + Metrics.ENTITY_ID); |
1,588,098 | public void writeState(StringBuilder sb) {<NEW_LINE>sb.append(prefix).append(HpelConstants.DATA_DIRECTORY).append("=").append(ivDataDirectory).append(",");<NEW_LINE>sb.append(prefix).append(HpelConstants.PURGE_MAXSIZE).append("=").append(Long.toString(ivPurgeMaxSize)).append(",");<NEW_LINE>sb.append(prefix).append(Hpel... | (Integer.toString(ivFileSwitchTime)); |
1,016,432 | public static TrainingResult runExample(String[] args) throws IOException, ModelException, TranslateException {<NEW_LINE>Arguments arguments = new Arguments().parseArgs(args);<NEW_LINE>if (arguments == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try (Model model = getModel(arguments)) {<NEW_LINE>// get training d... | result.getValidateEvaluation("Accuracy"))); |
1,571,503 | public Iterable<? extends ErrorDescription> analyze() {<NEW_LINE>Preferences settings = context.getSettings();<NEW_LINE>if (settings != null && !settings.getBoolean(PHPStanCustomizerPanel.ENABLED, false)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>PHPStan phpStan = getValidPHPStan();<NEW_LINE>if (ph... | ).setMemoryLimit(getValidPHPStanMemoryLimit()); |
1,705,903 | public void widgetSelected(final SelectionEvent se) {<NEW_LINE>final String selectedText = tlcProfileCombo.getText();<NEW_LINE>final boolean needReset = TLC_PROFILE_LOCAL_SEPARATOR.equals(selectedText) || TLC_PROFILE_REMOTE_SEPARATOR.equals(selectedText);<NEW_LINE>if (needReset) {<NEW_LINE>tlcProfileCombo.select(lastSe... | set(profile.getWorkerThreads()); |
1,490,568 | public boolean reassociateInvariants() {<NEW_LINE>int count = 0;<NEW_LINE>StructuredGraph graph = loopBegin().graph();<NEW_LINE>InvariantPredicate invariant = new InvariantPredicate();<NEW_LINE><MASK><NEW_LINE>for (BinaryArithmeticNode<?> binary : whole().nodes().filter(BinaryArithmeticNode.class)) {<NEW_LINE>if (!bina... | NodeBitMap newLoopNodes = graph.createNodeBitMap(); |
826,096 | public AnnotatedTypeMirror visitWildcard_Typevar(AnnotatedWildcardType type, AnnotatedTypeVariable superType, Void p) {<NEW_LINE>boolean oldIsUninferredTypeArgument = isUninferredTypeArgument;<NEW_LINE>if (type.isUninferredTypeArgument()) {<NEW_LINE>isUninferredTypeArgument = true;<NEW_LINE>}<NEW_LINE>AnnotatedTypeMirr... | ), superType.getLowerBound()); |
1,039,721 | final DescribeFolderContentsResult executeDescribeFolderContents(DescribeFolderContentsRequest describeFolderContentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFolderContentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,039,105 | final ListEventIntegrationAssociationsResult executeListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest listEventIntegrationAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventIntegrationAssociationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
728,841 | private String processElement(ICompilationUnit unit, char[] source) {<NEW_LINE>Document document = new Document(new String(source));<NEW_LINE>CompilerOptions options = new CompilerOptions(unit.getJavaProject().getOptions(true));<NEW_LINE>ASTParser parser = ASTParser.newParser(this.apiLevel);<NEW_LINE>parser.<MASK><NEW_... | setCompilerOptions(options.getMap()); |
252,404 | private void replace(final HolderAccessor holderAccessor, boolean selectedOnly) {<NEW_LINE>final String searchString = (String) mFilterTextSearchField.getSelectedItem();<NEW_LINE>if (searchString == null)<NEW_LINE>return;<NEW_LINE>final String replaceString = (String) mFilterTextReplaceField.getSelectedItem();<NEW_LINE... | holderAccessor.changeString(textHolder, replaceResult); |
1,540,287 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsFo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
496,161 | private boolean checkJWT(String jwtString) {<NEW_LINE>boolean result = true;<NEW_LINE>try {<NEW_LINE>String jwksURL = appSettings.getJwksURL();<NEW_LINE>if (jwksURL != null && !jwksURL.isEmpty()) {<NEW_LINE>DecodedJWT jwt = JWT.decode(jwtString);<NEW_LINE>JwkProvider provider = new <MASK><NEW_LINE>Jwk jwk = provider.ge... | UrlJwkProvider(appSettings.getJwksURL()); |
262,496 | @ConditionalOnBean(CorrelationScopeDecorator.Builder.class)<NEW_LINE>@ConditionalOnProperty(value = "spring.sleuth.baggage.correlation-enabled", matchIfMissing = true)<NEW_LINE>ScopeDecorator correlationScopeDecorator(@Qualifier(WHITELISTED_MDC_KEYS) List<String> whiteListedMDCKeys, SleuthBaggageProperties sleuthBaggag... | Builder builder = MDCScopeDecorator.newBuilder(); |
1,213,640 | private void validateNewLinePosition(DetailAST brace, DetailAST startToken, String braceLine) {<NEW_LINE>// not on the same line<NEW_LINE>if (startToken.getLineNo() + 1 == brace.getLineNo()) {<NEW_LINE>if (CommonUtil.hasWhitespaceBefore(brace.getColumnNo(), braceLine)) {<NEW_LINE>log(brace, MSG_KEY_LINE_PREVIOUS, OPEN_... | brace.getColumnNo() + 1); |
1,736,301 | public static ListStoreResponse unmarshall(ListStoreResponse listStoreResponse, UnmarshallerContext _ctx) {<NEW_LINE>listStoreResponse.setRequestId(_ctx.stringValue("ListStoreResponse.RequestId"));<NEW_LINE>listStoreResponse.setErrorCode<MASK><NEW_LINE>listStoreResponse.setErrorMessage(_ctx.stringValue("ListStoreRespon... | (_ctx.stringValue("ListStoreResponse.ErrorCode")); |
712,300 | public void createPriceListSchemaLine(@NonNull final CreatePriceListSchemaRequest request) {<NEW_LINE>final I_M_DiscountSchemaLine schemaLine = InterfaceWrapperHelper.newInstance(I_M_DiscountSchemaLine.class);<NEW_LINE>schemaLine.setM_DiscountSchema_ID(getRepoIdOrDefault(request.getDiscountSchemaId()));<NEW_LINE>schema... | (request.getBPartnerId())); |
1,100,588 | public void postConstruct() {<NEW_LINE>commandName = myself.getName();<NEW_LINE>String parentTypeName = getOne(GenerateServiceFromMethod.PARENT_CONFIGURED, myself.getMetadata());<NEW_LINE>LOGGER.log(level, "Generic method parent targeted type is {0}", parentTypeName);<NEW_LINE>try {<NEW_LINE>parentType = loadClass(pare... | throw new RuntimeException(msg, e); |
1,693,572 | public synchronized void createTweet(Status status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>long id = status.getId();<NEW_LINE>if (status.isRetweet()) {<NEW_LINE>originalName = status.getUser().... | put(HomeSQLiteHelper.COLUMN_USERS, users); |
404,915 | public static ListGatewayTupleOrdersResponse unmarshall(ListGatewayTupleOrdersResponse listGatewayTupleOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGatewayTupleOrdersResponse.setRequestId(_ctx.stringValue("ListGatewayTupleOrdersResponse.RequestId"));<NEW_LINE>listGatewayTupleOrdersResponse.setSuccess(_ctx.b... | ("ListGatewayTupleOrdersResponse.Data.List[" + i + "].CreatedMillis")); |
1,187,950 | private String readIdentification(Buffer.PlainBuffer lineBuffer) throws Buffer.BufferException, TransportException {<NEW_LINE>byte[] bytes = new byte[lineBuffer.available()];<NEW_LINE>lineBuffer.readRawBytes(bytes);<NEW_LINE>if (bytes.length > 255) {<NEW_LINE>log.error("Incorrect identification String received, line wa... | log.info("Will treat the identification of this server '{}' leniently", ident); |
1,610,018 | private void updateHeader() {<NEW_LINE>int titleColor;<NEW_LINE>String title;<NEW_LINE>String description;<NEW_LINE>long expireTime = app.getSettings().MAPPER_LIVE_UPDATES_EXPIRE_TIME.get();<NEW_LINE>boolean isAvailable = expireTime > System.currentTimeMillis();<NEW_LINE>if (isAvailable) {<NEW_LINE>titleColor = ColorUt... | OsmAndFormatter.getFormattedDate(app, expireTime); |
589,424 | private void collectTypeValidationProblems(Class<?> topLevelBean, TypeValidationContext validationContext) {<NEW_LINE>// Skip this for now<NEW_LINE>if (topLevelBean.equals(TaskInternal.class)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TypeMetadataStore metadataStore = null;<NEW_LINE>for (TypeScheme typeScheme : typeScheme... | TypeToken.of(topLevelBean))); |
212,520 | public boolean test(Person person, long time) {<NEW_LINE>if (this.codes != null) {<NEW_LINE>for (Code code : this.codes) {<NEW_LINE>if (checkCode(person, code)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (person.hasMultipleRecords) {<NEW_LINE>HealthRecord.Entry entry = findItemWhenMultipleRecords(person, code);<NEW... | addItemWhenDataIsDuplicated(person, time, entry); |
1,700,352 | public static Size adjustedElementSize(Size contentSize, Size minimumSize, int contentPad, int clientMargin) {<NEW_LINE>// add the padding<NEW_LINE>contentSize = new Size(contentSize.width + contentPad, contentSize.height + contentPad);<NEW_LINE>// enforce the minimum (if specified)<NEW_LINE>if (minimumSize != null) {<... | return new Size(width, height); |
1,039,917 | final DescribeHealthServiceStatusForOrganizationResult executeDescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest describeHealthServiceStatusForOrganizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHealthServiceStatusForOrganizationRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeHealthServiceStatusForOrganization"); |
750,824 | private DeploymentBuilder extractDeploymentInformation(MultipartFormData payload) {<NEW_LINE>DeploymentBuilder deploymentBuilder = getProcessEngine().getRepositoryService().createDeployment();<NEW_LINE>Set<String> partNames = payload.getPartNames();<NEW_LINE>for (String name : partNames) {<NEW_LINE>FormPart part = payl... | source(deploymentSource.getTextContent()); |
1,464,650 | public String testGetPersonName() throws Exception {<NEW_LINE>_ut.begin();<NEW_LINE>long personId = <MASK><NEW_LINE>_ut.commit();<NEW_LINE>String[] psNames = consumer.getPersonName(personId);<NEW_LINE>if (psNames[0] == null || psNames[1] == null) {<NEW_LINE>throw new Exception("Found a null name. " + Arrays.toString(ps... | consumer.persistPerson(false, 10); |
1,191,943 | private void replace(boolean replaceAll) {<NEW_LINE>searchBar.updateIncSearchComboBoxHistory(searchBar.getIncSearchTextField().getText());<NEW_LINE>this.updateReplaceComboBoxHistory(replaceTextField.getText());<NEW_LINE>EditorFindSupport findSupport = EditorFindSupport.getInstance();<NEW_LINE>Map<String, Object> findPr... | FIND_BACKWARD_SEARCH, backwardsCheckBox.isSelected()); |
1,262,307 | private CloseSafeProducer<K, V> doCreateTxProducer(String prefix, String suffix, BiPredicate<CloseSafeProducer<K, V>, Duration> remover) {<NEW_LINE>Producer<K, V> newProducer = createRawProducer(getTxProducerConfigs(prefix + suffix));<NEW_LINE>try {<NEW_LINE>newProducer.initTransactions();<NEW_LINE>} catch (RuntimeExce... | this.epoch.get()); |
193,361 | final CreateConfigurationSetEventDestinationResult executeCreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest createConfigurationSetEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigurationSetEventDestinationRequest);<NEW_LINE>AWS... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,405,042 | public void doCommand(String[] args) {<NEW_LINE>Long address;<NEW_LINE>String param = args[0];<NEW_LINE>address = Utils.longFromStringWithPrefix(param);<NEW_LINE>if (null == address) {<NEW_LINE>out.println("invalid hex address specify; address must be specified as " + "\"0x<hex_address>\"");<NEW_LINE>return;<NEW_LINE>}... | (Utils.toHex(currAddr)); |
850,292 | private void createOrder(MOrderLine returnOrderLine, BigDecimal qtyEntered, int uomId) {<NEW_LINE>MOrder order = getOrder(returnOrderLine);<NEW_LINE>MOrderLine orderLine = new MOrderLine(order);<NEW_LINE>orderLine.setC_UOM_ID(uomId);<NEW_LINE>//<NEW_LINE>BigDecimal qtyOrdered = null;<NEW_LINE>// Precision of Qty UOM<NE... | setScale(precision, BigDecimal.ROUND_HALF_DOWN); |
902,620 | private // ----------------------------------------------------------------------<NEW_LINE>AttributeSet findAttribs(TokenItem tokenItem) {<NEW_LINE>synchronized (this) {<NEW_LINE>AttributeSet attribs = attribsCache.get(tokenItem.getTokenID());<NEW_LINE>if (attribs == null) {<NEW_LINE>FontColorSettings fcs = MimeLookup.... | ).lookup(FontColorSettings.class); |
481,038 | public static List<TupleDomain<ColumnHandle>> splitPredicate(TupleDomain<ColumnHandle> predicate) {<NEW_LINE>ImmutableMap.Builder<ColumnHandle, Domain> partitionColumnPredicates = ImmutableMap.builder();<NEW_LINE>ImmutableMap.Builder<ColumnHandle, Domain> regularColumnPredicates = ImmutableMap.builder();<NEW_LINE>Optio... | ), domainPair.getValue()); |
920,734 | protected void playImpl() {<NEW_LINE>if (isVideo && nativePlayerMode) {<NEW_LINE>// To simulate native player mode, we will show a form with the player.<NEW_LINE>final Form currForm = Display.getInstance().getCurrent();<NEW_LINE>Form playerForm = new Form("Video Player", new com.codename1.ui.layouts.BorderLayout()) {<N... | layouts.BorderLayout.CENTER, videoComponent); |
98,652 | private int writeServiceSection() {<NEW_LINE><MASK><NEW_LINE>// header; * Eyecatcher, version etc<NEW_LINE>int offset = writeUtDataHeader("XXXX", 0xDEADBEEF);<NEW_LINE>// #define UT_TRACE_SERVICE_SECTION_NAME "UTSS"<NEW_LINE>// struct utServiceSection {<NEW_LINE>// UtDataHeader header; ... | int utDataHeaderPos = headerBytes.position(); |
1,531,746 | public String WSTXLPS113FVT() {<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>boolean result1 = false, result2 = false, result3 = false;<NEW_LINE>try {<NEW_LINE>XAResourceImpl onePhaseXAResource = new OnePhaseXAResourceImpl();... | xaRes2.setExpectedDirection(XAResourceImpl.DIRECTION_ROLLBACK); |
140,769 | protected void updateBaseUrl() {<NEW_LINE>Log.d(IMapView.LOGTAG, "updateBaseUrl");<NEW_LINE>final String subDomain = mImageryData.getSubDomain();<NEW_LINE>final int idx = <MASK><NEW_LINE>if (idx > 0) {<NEW_LINE>mBaseUrl = mImageryData.m_imageUrl.substring(0, idx);<NEW_LINE>} else {<NEW_LINE>mBaseUrl = mImageryData.m_im... | mImageryData.m_imageUrl.lastIndexOf("/"); |
1,373,373 | private void initComponents() {<NEW_LINE>// labels panel<NEW_LINE>JPanel labelsPanel = new TransparentPanel(new GridLayout(2, 1));<NEW_LINE>JLabel formatsLabel = new JLabel(resources.getI18NString("plugin.callrecordingconfig.SUPPORTED_FORMATS"));<NEW_LINE>saveCallsToCheckBox = new SIPCommCheckBox(resources.getI18NStrin... | new TransparentPanel(new BorderLayout()); |
1,424,754 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | invoke(request, responseHandler, executionContext); |
1,245,730 | public static org.python.types.Str chr(org.python.Object i) {<NEW_LINE>if (i instanceof org.python.types.Float) {<NEW_LINE>throw new org.python.exceptions.TypeError("integer argument expected, got " + <MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!(i instanceof org.python.types.Int)) {<NEW_LINE>i.__index__();<NEW_LINE>... | i.typeName() + ""); |
1,158,971 | private Mono<java.net.http.HttpRequest> toJdkHttpRequest(HttpRequest request) {<NEW_LINE>return Mono.fromCallable(() -> {<NEW_LINE>final java.net.http.HttpRequest.Builder builder = java.net.http.HttpRequest.newBuilder();<NEW_LINE>try {<NEW_LINE>builder.uri(request.getUrl().toURI());<NEW_LINE>} catch (URISyntaxException... | String headerName = header.getName(); |
454,265 | private void doRegisterBookie(String regPath, BookieServiceInfo bookieServiceInfo) throws BookieException {<NEW_LINE>// ZK ephemeral node for this Bookie.<NEW_LINE>try {<NEW_LINE>if (!checkRegNodeAndWaitExpired(regPath)) {<NEW_LINE>// Create the ZK ephemeral node for this Bookie.<NEW_LINE>zk.create(regPath, serializeBo... | ), zkAcls, CreateMode.EPHEMERAL); |
286,695 | final ListCustomVerificationEmailTemplatesResult executeListCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest listCustomVerificationEmailTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCustomVerificationEmailTemplatesRequest);<NEW_LINE>AWSRequestMet... | invoke(request, responseHandler, executionContext); |
319,177 | public void doCommitAndDispose(boolean notifyEvents) {<NEW_LINE>assert isWritable();<NEW_LINE>RootModelImpl sourceModel = getSourceModel();<NEW_LINE>ModuleRootLayerListener layerListener = getModule().getProject().getMessageBus(<MASK><NEW_LINE>boolean extensionListenerAlreadyCalled = false;<NEW_LINE>if (!Comparing.equa... | ).syncPublisher(ProjectTopics.MODULE_LAYERS); |
1,829,716 | public int addProvider(IResourceProvider theProvider, Class<? extends IResourceProvider> theProviderInterface) throws ConfigurationException {<NEW_LINE>int count = 0;<NEW_LINE>for (Method m : ReflectionUtil.getDeclaredMethods(theProviderInterface)) {<NEW_LINE>BaseMethodBinding<?> foundMethodBinding = BaseMethodBinding.... | > allowableParams = foundMethodBinding.getAllowableParamAnnotations(); |
380,124 | public <S extends T> NodeInitializer initializer(final ModelType<S> type, Spec<ModelType<?>> constraints) {<NEW_LINE>return new NodeInitializer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Multimap<ModelActionRole, ModelAction> getActions(ModelReference<?> subject, ModelRuleDescriptor descriptor) {<NEW_LINE>return ... | transform(modelNode.getParent()); |
335,356 | public void generateValues(StringBuilder sql, InsertStatement statement, Database database) {<NEW_LINE>sql.append("(");<NEW_LINE>for (String column : statement.getColumnValues().keySet()) {<NEW_LINE>Object newValue = statement.getColumnValues().get(column);<NEW_LINE>if ((newValue == null) || "NULL".equalsIgnoreCase(new... | .objectToSql(newValue, database)); |
1,373,332 | private boolean openDialog(JPanel additionalOptions, String helpCtx) {<NEW_LINE>ShelveChangesPanel panel = new ShelveChangesPanel(additionalOptions);<NEW_LINE>initializePatchName(panel.txtPatchName);<NEW_LINE>panel.lblError.setVisible(false);<NEW_LINE>JButton okButton = new JButton();<NEW_LINE>// NOI18N<NEW_LINE>Mnemon... | (ShelveChangesSupport.class, "CTL_ShelveChangesPanel.okButton.text")); |
870,783 | private synchronized void compileAndSendDiagnostics(ExtendedLanguageClient client, Path projectRoot, PackageCompilation compilation, WorkspaceManager workspaceManager) {<NEW_LINE>Map<String, List<Diagnostic>> diagnosticMap = toDiagnosticsMap(compilation.diagnosticResult().diagnostics(false), projectRoot, workspaceManag... | lastDiagnosticMap.put(projectRoot, diagnosticMap); |
917,016 | final ListInstanceTypeDetailsResult executeListInstanceTypeDetails(ListInstanceTypeDetailsRequest listInstanceTypeDetailsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInstanceTypeDetailsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInstanceTypeDetails"); |
1,850,556 | final DescribeServicesResult executeDescribeServices(DescribeServicesRequest describeServicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServicesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeServicesRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
693,283 | private void loadData() {<NEW_LINE>DefaultTableModel model = <MASK><NEW_LINE>try {<NEW_LINE>CentralRepository dbManager = CentralRepository.getInstance();<NEW_LINE>correlationTypes.clear();<NEW_LINE>correlationTypes.addAll(dbManager.getDefinedCorrelationTypes());<NEW_LINE>} catch (CentralRepoException ex) {<NEW_LINE>LO... | (DefaultTableModel) tbCorrelatableTypes.getModel(); |
937,919 | void addNameEntries(String period, InputFactory cldrFactory) {<NEW_LINE>addEntries(period + "-abbrev", cldrFactory, "//ldml/dates/calendars/calendar[@type=\"gregorian\"]/" + period + "s/" + period + "Context[@type=\"format\"]/" + period + "Width[@type=\"abbreviated\"]", period, "type");<NEW_LINE>addEntries(period + "-n... | period + "Width[@type=\"abbreviated\"]", period, "type"); |
638,382 | public void itemClick(int position) {<NEW_LINE>if (adapter.isMultipleSelect()) {<NEW_LINE>logDebug("multiselect ON");<NEW_LINE>adapter.toggleSelection(position);<NEW_LINE>List<MegaNode<MASK><NEW_LINE>if (selectedNodes.size() > 0) {<NEW_LINE>updateActionModeTitle();<NEW_LINE>}<NEW_LINE>} else if (nodes.get(position).isF... | > selectedNodes = adapter.getSelectedNodes(); |
1,633,201 | public String stringify(Object o) {<NEW_LINE>if (o == null) {<NEW_LINE>return ("null");<NEW_LINE>}<NEW_LINE>final ObjectName on = (ObjectName) o;<NEW_LINE>final StringBuilder buf = new StringBuilder();<NEW_LINE>if (!mOmitDomain) {<NEW_LINE>buf.append(on.getDomain()).append(":");<NEW_LINE>}<NEW_LINE>final Map<String, St... | value)).append(","); |
1,484,755 | public void initialize(InputSplit split, TaskAttemptContext ctx) throws IOException, InterruptedException {<NEW_LINE>msgBuilder = Protobufs.getMessageBuilder(typeRef.getRawClass());<NEW_LINE>msgInstance = msgBuilder.getDefaultInstanceForType();<NEW_LINE>protoWritable = ProtobufWritable.newInstance(typeRef.getRawClass()... | ColumnProjectionUtils.setReadColumnIDs(conf, columnsBeingRead); |
48,043 | protected int deleteLanguageById(final Language language) {<NEW_LINE>if (!UtilMethods.isSet(language)) {<NEW_LINE>throw new IllegalArgumentException("language is expected to be different from null.");<NEW_LINE>}<NEW_LINE>int rowsAffected;<NEW_LINE>final long id = language.getId();<NEW_LINE>try {<NEW_LINE>Logger.debug(t... | e.toString(), e); |
366,016 | /* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.navigation.actions.ModelActionStrategy#invokeModelAction(org.netbeans.modules.web.beans.api.model.WebBeansModel, org.netbeans.modules.j2ee.metadata.model.api.MetadataModel, java.lang.Object[], javax.swing.text.JTextComponent, org.openide.filesystems.FileOb... | .getSimpleName().toString(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.