idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,298,977 | public static <T> List<List<T>> parseArrayOfArrays(String fieldName, CheckedFunction<XContentParser, T, IOException> valueParser, XContentParser parser) throws IOException {<NEW_LINE>if (parser.currentToken() != XContentParser.Token.START_ARRAY) {<NEW_LINE>throw new IllegalArgumentException("unexpected token [" + parse... | values = new ArrayList<>(); |
1,718,216 | public void run() {<NEW_LINE>Iterator<Map.Entry<HomematicBindingConfig, Long>> iterator = itemsToDisable.entrySet().iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Map.Entry<HomematicBindingConfig, Long<MASK><NEW_LINE>long diff = System.currentTimeMillis() - entry.getValue();<NEW_LINE>if (diff > MIN_AGE) {<N... | > entry = iterator.next(); |
947,974 | final DescribeIndexResult executeDescribeIndex(DescribeIndexRequest describeIndexRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeIndexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | false), new DescribeIndexResultJsonUnmarshaller()); |
1,626,142 | protected void addSubElements(JRPrintElementContainer printContainer, JRFillElement element, Collection<? extends JRPrintElement> printElements) {<NEW_LINE>if (printContainer instanceof OffsetElementsContainer) {<NEW_LINE>// adding the subelements as whole lists to bands so that we don't need<NEW_LINE>// another virtua... | ) + printElement.getX()); |
1,259,969 | public void completeS3FileUploadViaShare(CompleteS3ShareUploadRequest body, String accessKey, String uploadId) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required pa... | localVarAccept, localVarContentType, localVarAuthNames, null); |
220,586 | final GetCodeBindingSourceResult executeGetCodeBindingSource(GetCodeBindingSourceRequest getCodeBindingSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCodeBindingSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,639,390 | static DirectCompactDoublesSketch createFromUpdateSketch(final UpdateDoublesSketch sketch, final WritableMemory dstMem) {<NEW_LINE>final long memCap = dstMem.getCapacity();<NEW_LINE>final int k = sketch.getK();<NEW_LINE>final long n = sketch.getN();<NEW_LINE>checkDirectMemCapacity(k, n, memCap);<NEW_LINE>// initialize ... | Family.QUANTILES.getID()); |
956,374 | public CreateIdentityProviderResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateIdentityProviderResult createIdentityProviderResult = new CreateIdentityProviderResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | int originalDepth = context.getCurrentDepth(); |
1,452,919 | final ListJobsResult executeListJobs(ListJobsRequest listJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListJobsRequest> request = null;<NEW_LINE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
666,159 | public Request<CreateBackupRequest> marshall(CreateBackupRequest createBackupRequest) {<NEW_LINE>if (createBackupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CreateBackupRequest)");<NEW_LINE>}<NEW_LINE>Request<CreateBackupRequest> request = new DefaultRequest<CreateBa... | String backupName = createBackupRequest.getBackupName(); |
953,047 | // Finding the blocking flow<NEW_LINE>// `minflow` is a minimal capacity on the path of the level graph<NEW_LINE>// remaining[u] is a number of [u's] neighbors in adjacency list, that was not removed<NEW_LINE>int dfs(final int u, final int minflow, final int[] remaining) {<NEW_LINE>if (minflow == 0) {<NEW_LINE>return 0... | get(vId).flow += pushed; |
1,001,930 | private void sendBinaryContent(final MongoRequest request, final MongoResponse response, final GridFSBucket gridFSBucket, final GridFSFile file, final HttpServerExchange exchange) throws IOException {<NEW_LINE>LOGGER.trace(<MASK><NEW_LINE>LOGGER.trace("Content length = {}", file.getLength());<NEW_LINE>if (file.getMetad... | "Filename = {}", file.getFilename()); |
430,598 | private void emitClassVtableInitialization(TypeDeclaration typeDeclaration) {<NEW_LINE>WasmTypeLayout wasmTypeLayout = environment.getWasmTypeLayout(typeDeclaration);<NEW_LINE>emitBeginCodeComment(typeDeclaration, "vtable.init");<NEW_LINE>builder.newLine();<NEW_LINE>// Create the class vtable for this type (which is ei... | .collect(toImmutableList())); |
434,336 | public static Single<WebServer> startFrontendServer() {<NEW_LINE>// configure logging in order to not have the standard JVM defaults<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>Config config = Config.builder().sources(ConfigSources.environmentVariables()).build();<NEW_LINE>WebServer webServer = WebServer.builder(Ro... | t.printStackTrace(System.err); |
1,544,875 | public StatisticsConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StatisticsConfiguration statisticsConfiguration = new StatisticsConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | )).unmarshall(context)); |
460,229 | final DescribeCodeRepositoryResult executeDescribeCodeRepository(DescribeCodeRepositoryRequest describeCodeRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCodeRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); |
1,116,306 | private DeploymentRoutingStatus deploymentStatus(String upstreamName) {<NEW_LINE>Instant changedAt = clock.instant();<NEW_LINE>Path path = deploymentStatusPath(upstreamName);<NEW_LINE>Optional<byte[]> data = curator.getData(path);<NEW_LINE>if (data.isEmpty()) {<NEW_LINE>return new DeploymentRoutingStatus(RoutingStatus.... | status, agent, reason, changedAt); |
251,722 | private void generateOfflineMap() {<NEW_LINE>// cancel previous job request<NEW_LINE>if (mGenerateOfflineMapJob != null) {<NEW_LINE>mGenerateOfflineMapJob.cancel();<NEW_LINE>}<NEW_LINE>mTakeMapOfflineButton.setEnabled(false);<NEW_LINE>// delete any offline map already in the cache<NEW_LINE>String tempDirectoryPath = ge... | Log.e(TAG, error); |
590,404 | private static final void transformSideInputForSdk(RunnerApi.Pipeline pipeline, RunnerApi.PTransform originalPTransform, String sideInputTag, ProcessBundleDescriptor.Builder processBundleDescriptor, RunnerApi.PTransform.Builder updatedPTransform) {<NEW_LINE>RunnerApi.PCollection sideInputPCollection = pipeline.getCompo... | getWindowingStrategiesOrThrow(sideInputPCollection.getWindowingStrategyId()); |
1,495,889 | public void CompleteGetFiles() {<NEW_LINE>// Add click listener and add the FileItem objects to the layout.<NEW_LINE>LinearLayout root = this.chooser.getRootLayout();<NEW_LINE>LinearLayout layout = (LinearLayout) root.findViewById(R.id.linearLayoutFiles);<NEW_LINE>// Add the parent folder.<NEW_LINE>if (this.currentFold... | (m_linkedList.get(i)); |
1,411,887 | public static Map<PartitionKey, HashIndicesView> split(int[] indices, List<PartitionKey> parts) {<NEW_LINE>Map<PartitionKey, HashIndicesView> ret = new HashMap<>();<NEW_LINE>Map<Integer, IntArrayList> partIndex2Indices = new HashMap<>();<NEW_LINE>SortedMap<Integer, Integer> <MASK><NEW_LINE>for (int i = 0; i < parts.siz... | key2partIndex = new TreeMap<>(); |
1,483,467 | public Request<RegisterTargetsRequest> marshall(RegisterTargetsRequest registerTargetsRequest) {<NEW_LINE>if (registerTargetsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RegisterTargetsRequest> request = new DefaultRequest<RegisterTarg... | (registerTargetsRequest.getTargetGroupArn())); |
1,359,365 | private void updateControlButtons(MapActivity mapActivity, View mainView) {<NEW_LINE>if (mapActivity == null || mainView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OsmandApplication app = mapActivity.getMyApplication();<NEW_LINE>final RoutingHelper helper = app.getRoutingHelper();<NEW_LINE>final TargetPoints... | setOnClickListener(v -> clickRouteCancel()); |
57,156 | private Mono<Response<BlockBlobItem>> uploadFileChunks(long fileSize, ParallelTransferOptions parallelTransferOptions, Long originalBlockSize, BlobHttpHeaders headers, Map<String, String> metadata, Map<String, String> tags, AccessTier tier, BlobRequestConditions requestConditions, AsynchronousFileChannel channel, Block... | null, finalRequestConditions.getLeaseId()); |
623,418 | private void addCustomClaimToBuilder(VerifiedJwt token, String name, JwtToken.Builder builder) throws JwtInvalidException {<NEW_LINE>// We do not know the type, so we just try them one by one.<NEW_LINE>if (token.isNullClaim(name)) {<NEW_LINE>builder.putCustomClaims(name, JwtClaimValue.newBuilder().setNullValue(NullValu... | .NULL_VALUE).build()); |
142,880 | public synchronized boolean connect() throws NotConnectedException {<NEW_LINE>connectCancelled = false;<NEW_LINE>if (serverHandle != null) {<NEW_LINE>if (verifyConnection()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Throwable cause = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>serverHandle = ClientUtil.co... | String msg = e.getMessage(); |
1,260,640 | public CompletableFuture<ReadHandle> readOffloaded(long ledgerId, UUID uuid, Map<String, String> offloadDriverMetadata) {<NEW_LINE>CompletableFuture<ReadHandle> <MASK><NEW_LINE>String storagePath = getStoragePath(storageBasePath, offloadDriverMetadata.get(MANAGED_LEDGER_NAME));<NEW_LINE>String dataFilePath = getDataFil... | promise = new CompletableFuture<>(); |
695,950 | private void prepare(UploadCheckPoint uploadCheckPoint, UploadFileRequest uploadFileRequest) {<NEW_LINE>uploadCheckPoint.magic = UploadCheckPoint.UPLOAD_MAGIC;<NEW_LINE>uploadCheckPoint.uploadFile = uploadFileRequest.getUploadFile();<NEW_LINE>uploadCheckPoint.key = uploadFileRequest.getKey();<NEW_LINE>uploadCheckPoint.... | Payer payer = uploadFileRequest.getRequestPayer(); |
1,098,735 | private static URI findArtefactURI(Collection<String> repositoryURIs, String relativeURIString) throws URISyntaxException {<NEW_LINE>final String[] archiveTypes = new String[] { ".jar", ".war", ".ear", ".rar" };<NEW_LINE>// For each URI...<NEW_LINE>for (String repositoryURI : repositoryURIs) {<NEW_LINE>URI artefactURI ... | throw new URISyntaxException(relativeURIString, "No artefact can be found for relative URI"); |
649,020 | public static boolean isJSAttribute(String elementName, String attributeName) {<NEW_LINE>if (elementName == null || attributeName == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Support HTML "data-" attributes which mostly used with JavaScript<NEW_LINE>if (attributeName.matches("^(data-[a-zA-Z-])$")) {<NEW_LIN... | new HTMLIndexQueryHelper().getEvents(); |
1,563,639 | private void appendImageInfo(Map<String, Object> result) {<NEW_LINE>try {<NEW_LINE>List<Map<String, Object>> list = new ArrayList<>();<NEW_LINE>Map<String, Object> checkPoint = new HashMap<>();<NEW_LINE>Storage storage = new Storage(Config.meta_dir + "/image");<NEW_LINE>checkPoint.put("Name", "Version");<NEW_LINE>check... | Date date = new Date(lastCheckpointTime); |
1,062,447 | public Filters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Filters filters = new Filters();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE... | JsonToken token = context.getCurrentToken(); |
272,935 | public void visit(SwitchStatement statement) {<NEW_LINE>IdentifiedStatement oldDefaultBreakTarget = defaultBreakTarget;<NEW_LINE>defaultBreakTarget = statement;<NEW_LINE>int statementId = registerIdentifiedStatement(statement);<NEW_LINE>pushLocation(statement.getValue().getLocation());<NEW_LINE>writer.print("switch (")... | statementId + ":;").indent(); |
1,152,445 | public // From java.lang.Comparable<NEW_LINE>// From java.lang.Comparable<NEW_LINE>int // From java.lang.Comparable<NEW_LINE>compareTo(com.zeroc.IceInternal.EndpointI obj) {<NEW_LINE>if (!(obj instanceof EndpointI)) {<NEW_LINE>return type() < obj.<MASK><NEW_LINE>}<NEW_LINE>EndpointI p = (EndpointI) obj;<NEW_LINE>if (th... | type() ? -1 : 1; |
629,929 | private SubtitleStreamInfo GetSubtitleStreamInfo(MediaStream stream, String baseUrl, String accessToken, long startPositionTicks, SubtitleProfile[] subtitleProfiles) {<NEW_LINE>SubtitleProfile subtitleProfile = StreamBuilder.GetSubtitleProfile(stream, subtitleProfiles, getPlayMethod());<NEW_LINE>SubtitleStreamInfo temp... | setIndex(stream.getIndex()); |
1,778,747 | static // eventually should have the model problems coming from either the Mavenproject or the modelBuilder result.<NEW_LINE>List<ModelProblem> runMavenValidationImpl(final File pom) {<NEW_LINE>// TODO profiles based on current configuration??<NEW_LINE>MavenEmbedder embedder = EmbedderFactory.getProjectEmbedder();<NEW_... | addAll(result.getProblems()); |
1,185,249 | public void assertSameContentAs(AssertionInfo info, File actual, Charset actualCharset, File expected, Charset expectedCharset) {<NEW_LINE>verifyIsFile(expected);<NEW_LINE>assertIsFile(info, actual);<NEW_LINE>try {<NEW_LINE>List<Delta<String>> diffs = diff.diff(actual, actualCharset, expected, expectedCharset);<NEW_LIN... | (expected.toPath())); |
1,546,986 | public static QueryTimeInterval parse(String value) {<NEW_LINE>Objects.requireNonNull(value);<NEW_LINE>String[] parts = value.split("/");<NEW_LINE>if (parts.length == 1) {<NEW_LINE>// duration<NEW_LINE>Duration duration = parseDuration(parts[0]);<NEW_LINE>if (duration == null || parts[0].length() + 1 == value.length())... | format(ERROR_MESSAGE, value))); |
63,705 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void iconButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_iconButtonActionPerformed<NEW_LINE>JFileChooser chooser = WizardUtils.getIconFileChooser(icon.getText());<NEW_LINE>int ret = chooser.showDialog(this, getMessage("LBL_Se... | setText(iconFile.getAbsolutePath()); |
840,207 | public Process read(final Path jobRoot, final String configFilename, final String configContents, final String catalogFilename, final String catalogContents, final String stateFilename, final String stateContents) throws WorkerException {<NEW_LINE>final List<String> arguments = Lists.newArrayList("read", "--config", co... | files.put(catalogFilename, catalogContents); |
404,142 | public static String calculateSessionState(String clientId, String state, String salt) {<NEW_LINE>// Session state = hash(client ID + current state + salt)<NEW_LINE>StringBuilder stateBuilder = new StringBuilder();<NEW_LINE>stateBuilder = stateBuilder.append<MASK><NEW_LINE>if (salt != null && !salt.isEmpty()) {<NEW_LIN... | (clientId).append(state); |
1,211,950 | public BrowseResult browse(String objectId, BrowseFlag browseFlag, String filter, long firstResult, long maxResults, SortCriterion[] orderby) throws ContentDirectoryException {<NEW_LINE>LOG.info("UPnP request - objectId: " + objectId + ", browseFlag: " + browseFlag + ", filter: " + filter + ", firstResult: " + firstRes... | CANNOT_PROCESS, x.toString()); |
1,346,810 | protected void emitForeignCallOp(ForeignCallLinkage linkage, Value targetAddress, Value result, Value[] arguments, Value[] temps, LIRFrameState info) {<NEW_LINE>SubstrateForeignCallLinkage callTarget = (SubstrateForeignCallLinkage) linkage;<NEW_LINE>SharedMethod targetMethod = (SharedMethod) callTarget.getMethod();<NEW... | .getLIRKind(getLIRKindTool())); |
810,056 | private double solve_quadratic(double a, double b, double c) {<NEW_LINE>double s1 = (-b + Math.sqrt(b * b - 4 * a * c<MASK><NEW_LINE>double s2 = (-b - Math.sqrt(b * b - 4 * a * c)) / (2 * a);<NEW_LINE>if (s1 > .0 && s1 <= 1.0 && s2 > .0 && s2 <= 1.0) {<NEW_LINE>if (s1 < s2)<NEW_LINE>return s1 + 1e-30;<NEW_LINE>else<NEW... | )) / (2 * a); |
292,445 | public // to update the GUI.<NEW_LINE>void stepped(boolean done, Simulator.Reason reason, SimulationException pe) {<NEW_LINE>executePane.getRegistersWindow().updateRegisters();<NEW_LINE>executePane.getFloatingPointWindow().updateRegisters();<NEW_LINE>executePane.getControlAndStatusWindow().updateRegisters();<NEW_LINE>e... | .getMessagesPane().selectRunMessageTab(); |
883,288 | public void error(String message, @Nullable Throwable t, String... details) {<NEW_LINE>org.apache.logging.log4j.Logger logger = logger();<NEW_LINE>if (t instanceof ControlFlowException) {<NEW_LINE>logger.error(new Throwable("Do not log ProcessCanceledException").initCause(t));<NEW_LINE>throw (RuntimeException) t;<NEW_L... | "Do not log ReparsedSuccessfullyException").initCause(t)); |
473,901 | public boolean matches(final MatchDifference context, final String matched) {<NEW_LINE>boolean result = false;<NEW_LINE>boolean alreadyLoggedMatchFailure = false;<NEW_LINE>if (xPathEvaluator == null) {<NEW_LINE>if (context != null) {<NEW_LINE>context.addDifference(mockServerLogger, "xpath match failed expected:{}found:... | matched, throwable.getMessage()); |
1,300,402 | synchronized public boolean applyTo(DomainObject obj, TaskMonitor monitor) {<NEW_LINE>Program program = (Program) obj;<NEW_LINE>disassemblyPerformed = false;<NEW_LINE>unalignedStart = false;<NEW_LINE>// get the ISA_MODE register and set accordingly<NEW_LINE>Register m16modeReg = program.getProgramContext().getRegister(... | Address max = range.getMaxAddress(); |
1,273,994 | public static DescribePropertyUserDetailResponse unmarshall(DescribePropertyUserDetailResponse describePropertyUserDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePropertyUserDetailResponse.setRequestId(_ctx.stringValue("DescribePropertyUserDetailResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new Page... | ("DescribePropertyUserDetailResponse.Propertys[" + i + "].Status")); |
540,180 | final CreateSchemaResult executeCreateSchema(CreateSchemaRequest createSchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSchemaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,437,810 | public PersistenceManager createPersistenceManager(com.google.firebase.database.core.Context firebaseContext, String firebaseId) {<NEW_LINE>String sessionId = firebaseContext.getSessionPersistenceKey();<NEW_LINE>String cacheId = firebaseId + "_" + sessionId;<NEW_LINE>// TODO[persistence]: Do this at a higher level (e.g... | DatabaseException("SessionPersistenceKey '" + sessionId + "' has already been used."); |
1,788,569 | protected void execute(final Event e) {<NEW_LINE>for (Entity entity : entities.getArray(e)) {<NEW_LINE>if (entity instanceof EnderDragonPart) {<NEW_LINE>entity = ((EnderDragonPart) entity).getParent();<NEW_LINE>}<NEW_LINE>if (entity instanceof Damageable) {<NEW_LINE>final boolean creative = entity instanceof Player && ... | ).setGameMode(GameMode.CREATIVE); |
1,094,590 | public void compareJSONArray(String prefix, JSONArray expected, JSONArray actual, JSONCompareResult result) throws JSONException {<NEW_LINE>String arrayPrefix = prefix + "[]";<NEW_LINE>if (expected.length() < 1 || expected.length() > 2) {<NEW_LINE>result.fail(MessageFormat.format("{0}: invalid expectation: expected arr... | expected.get(0))); |
1,513,993 | final ListJobsResult executeListJobs(ListJobsRequest listJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListJobs"); |
886,748 | public void commitBlock(long sessionId, long blockId, boolean pinOnCreate) throws BlockAlreadyExistsException, BlockDoesNotExistException, InvalidWorkerStateException, IOException, WorkerOutOfSpaceException {<NEW_LINE>long lockId = BlockWorker.INVALID_LOCK_ID;<NEW_LINE>try {<NEW_LINE>lockId = mLocalBlockStore.commitBlo... | String mediumType = loc.mediumType(); |
1,582,333 | private void processService(String srv, ZipOutputStream jarOut) throws IOException {<NEW_LINE>ClassLoader cl = Thread.currentThread().getContextClassLoader();<NEW_LINE>Set<String> imps = new TreeSet<String>();<NEW_LINE>String sd = "META-INF/services/" + srv;<NEW_LINE>Enumeration<URL> en = cl.getResources(sd);<NEW_LINE>... | toLines(url.openStream()); |
202,454 | public static QueryMpsSchedulerListResponse unmarshall(QueryMpsSchedulerListResponse queryMpsSchedulerListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMpsSchedulerListResponse.setRequestId(_ctx.stringValue("QueryMpsSchedulerListResponse.RequestId"));<NEW_LINE>queryMpsSchedulerListResponse.setResultMessage(_ctx.s... | ("QueryMpsSchedulerListResponse.ResultContent.Data.List[" + i + "].Type")); |
170,819 | ImmutableSortedMap<String, String> createSuppressionMap() {<NEW_LINE>Set<String> validSuppressions = new HashSet<>(this.validSuppressions);<NEW_LINE>// deprecated in favor of "visibility"<NEW_LINE>validSuppressions.remove("accessControls");<NEW_LINE>LinkedHashMap<DiagnosticType, String> diagnosticToSuppression = new Li... | String suppression = entry.getKey(); |
1,334,067 | public void uncaughtException(Thread thread, Throwable exception) {<NEW_LINE>Timber.e(exception, "ExceptionHandler caught UncaughtException");<NEW_LINE>StringWriter stackTrace = new StringWriter();<NEW_LINE>exception.printStackTrace(new PrintWriter(stackTrace));<NEW_LINE>StringBuilder errorReport = new StringBuilder();... | errorReport.append(Build.ID); |
709,678 | private void writePerformanceData(InfoflowPerformanceData performanceData, XMLStreamWriter writer) throws XMLStreamException {<NEW_LINE>writePerformanceEntry(XmlConstants.Values.PERF_CALLGRAPH_SECONDS, <MASK><NEW_LINE>writePerformanceEntry(XmlConstants.Values.PERF_TAINT_PROPAGATION_SECONDS, performanceData.getTaintProp... | performanceData.getCallgraphConstructionSeconds(), writer); |
1,728,806 | static Controller newInstance(@NonNull Bundle bundle) {<NEW_LINE>final String className = bundle.getString(KEY_CLASS_NAME);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>Class cls = ClassUtils.classForName(className, false);<NEW_LINE>Constructor[] constructors = cls.getConstructors();<NEW_LINE>Constructor bundle... | args = bundle.getBundle(KEY_ARGS); |
1,130,167 | private ASTRewrite doAddParam(CompilationUnit cu) {<NEW_LINE>AST ast = cu.getAST();<NEW_LINE>SimpleName node = fOriginalNode;<NEW_LINE>BodyDeclaration decl = ASTResolving.findParentBodyDeclaration(node);<NEW_LINE>if (decl instanceof MethodDeclaration) {<NEW_LINE>MethodDeclaration methodDeclaration = (MethodDeclaration)... | newTagElement.setTagName(TagElement.TAG_PARAM); |
1,371,215 | // JDBC operations. These are all blocking<NEW_LINE>private Void jdbcConnect(com.oracle.adbaoverjdbc.Operation<Void> op) {<NEW_LINE>try {<NEW_LINE>Properties info = (Properties) properties.get(JdbcConnectionProperties.JDBC_CONNECTION_PROPERTIES);<NEW_LINE>info = (Properties) (info == null ? JdbcConnectionProperties.JDB... | ) : info.clone()); |
547,229 | private Binding findSingleStaticImport(char[][] compoundName, int mask) {<NEW_LINE>Binding binding = findImport(compoundName, compoundName.length - 1);<NEW_LINE>if (!binding.isValidBinding())<NEW_LINE>return binding;<NEW_LINE>char[] name = compoundName[compoundName.length - 1];<NEW_LINE>if (binding instanceof PackageBi... | compoundName, type, ProblemReasons.NotFound); |
724,042 | private void handlePutAndGetOps(AbstractConstantPoolInfoJava poolRef, Record res, String op) {<NEW_LINE>int name_and_type_index = ((ConstantPoolFieldReferenceInfo) poolRef).getNameAndTypeIndex();<NEW_LINE>ConstantPoolNameAndTypeInfo fieldNameAndType = (ConstantPoolNameAndTypeInfo) constantPool[name_and_type_index];<NEW... | = (ConstantPoolClassInfo) constantPool[class_index]; |
828,476 | protected Key buildDocKey() {<NEW_LINE>if (log.isTraceEnabled())<NEW_LINE>log.trace("building doc key for {} {}", currentPartition, currentDocID);<NEW_LINE>int zeroIndex = currentDocID.find("\0");<NEW_LINE>if (zeroIndex < 0)<NEW_LINE>throw new IllegalArgumentException("bad current docID");<NEW_LINE>Text colf = new Text... | append(nullByte, 0, 1); |
641,599 | public void verifyInstructorRowContent(InstructorAttributes instructor, AccountAttributes account, String expectedManageAccountLink, String expectedHomePageLink) {<NEW_LINE>WebElement instructorRow = getInstructorRow(instructor);<NEW_LINE>String actualCourseId = getInstructorCourseId(instructorRow);<NEW_LINE>String act... | String expectedCourseId = instructor.getCourseId(); |
1,238,535 | protected static int unsignedDifference(final CharBuffer set1, final int length1, final CharBuffer set2, final int length2, final char[] buffer) {<NEW_LINE>int pos = 0;<NEW_LINE><MASK><NEW_LINE>if (0 == length2) {<NEW_LINE>set1.get(buffer, 0, length1);<NEW_LINE>return length1;<NEW_LINE>}<NEW_LINE>if (0 == length1) {<NE... | int k1 = 0, k2 = 0; |
873,807 | final DescribeDomainResult executeDescribeDomain(DescribeDomainRequest describeDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,433,660 | public static Uri storeAudio(Context context, File srcFile, String mime) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {<NEW_LINE>File dstFile = new File(context.getExternalFilesDir(Environment.DIRECTORY_MOVIES), srcFile.getName());<NEW_LINE>boolean succeed = <MASK><NEW_LINE>if (succeed) {<NEW_LINE>Cont... | FileUtils.copyFile(srcFile, dstFile); |
381,255 | final CreateSceneResult executeCreateScene(CreateSceneRequest createSceneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSceneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); |
1,360,194 | final GetRoomSkillParameterResult executeGetRoomSkillParameter(GetRoomSkillParameterRequest getRoomSkillParameterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRoomSkillParameterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
536,639 | private void initializeButtons() {<NEW_LINE>Button upDirButton = (Button) this.findViewById(R.id.upDirectoryButton);<NEW_LINE>upDirButton.setOnClickListener(new OnClickListener() {<NEW_LINE><NEW_LINE>public void onClick(View v) {<NEW_LINE>Log.d(LOGTAG, "onclick for upDirButton");<NEW_LINE>loadDirectoryUp();<NEW_LINE>lo... | findViewById(R.id.selectCurrentDirectoryButton); |
928,690 | Pair<AggregatedPartitionClassStorageStats, AggregatedPartitionClassStorageStats> aggregateHostPartitionClassStorageStatsWrappers(Map<String, HostPartitionClassStorageStatsWrapper> statsWrappers) throws IOException {<NEW_LINE>Map<String, Map<Long, Map<Short, Map<Short, ContainerStorageStats>>>> combinedHostPartitionClas... | partitionPhysicalStorageMap = new HashMap<>(); |
999,054 | public String genericSignature(Object type) {<NEW_LINE>Type.TypeVar generic = (Type.TypeVar) type;<NEW_LINE>String name = generic.tsym.name.toString();<NEW_LINE>if (typeVariableNameStack == null) {<NEW_LINE>typeVariableNameStack = new HashSet<>();<NEW_LINE>}<NEW_LINE>if (!typeVariableNameStack.add(name)) {<NEW_LINE>ret... | (" extends ").append(boundSigStr); |
217,727 | private void loadNode97() {<NEW_LINE>UaObjectTypeNode node = new UaObjectTypeNode(this.context, Identifiers.LimitAlarmType, new QualifiedName(0, "LimitAlarmType"), new LocalizedText("en", "LimitAlarmType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), false);<NEW_LINE>node.addReference(new Refere... | this.nodeManager.addNode(node); |
1,446,506 | public void marshall(FileSystem fileSystem, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fileSystem == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fileSystem.getOwnerId(), OWNERID_BINDING);<NEW_LINE>pr... | fileSystem.getOntapConfiguration(), ONTAPCONFIGURATION_BINDING); |
1,829,355 | static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {<NEW_LINE>HashMap<String, Integer> returnValue = new HashMap<>();<NEW_LINE>Statement select = primarykeyCQL(keyspace, table);<NEW_LINE>ResultSet rs = session.execute(select.toString());<NEW_LINE>TreeMap<String, String> sortedMa... | sortedMap.put(position, columnName); |
260,075 | private void routeWithMultipleTables(final RouteContext routeContext, final ShardingRule shardingRule) throws ShardingSphereConfigurationException {<NEW_LINE>List<RouteMapper> tableMappers = new ArrayList<>(logicTables.size());<NEW_LINE>Set<String> availableDatasourceNames = Collections.emptySet();<NEW_LINE>boolean fir... | dataSourceName, dataSourceName), tableMappers)); |
1,491,744 | public synchronized void start() {<NEW_LINE>if (isRunning())<NEW_LINE>return;<NEW_LINE>// Configure the server.<NEW_LINE>ServerBootstrap bootstrap = new ServerBootstrap().channel(useEpoll ? EpollServerSocketChannel.class : NioServerSocketChannel.class).childOption(ChannelOption.TCP_NODELAY, true).childOption(ChannelOpt... | childHandler(new Initializer(this)); |
394,058 | // type cannot be known ahead<NEW_LINE>@SuppressWarnings("java:S3740")<NEW_LINE>private boolean pullSnapshot(int nodeIndex) throws InterruptedException, TException {<NEW_LINE>Node node = descriptor.getPreviousHolders().get(nodeIndex);<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Pulling slot {} and ot... | .getSlotManager().save(); |
920,783 | public Dialog createDialog(Activity activity, Bundle args) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(mapActivity);<NEW_LINE>builder.setTitle(R.string.gps_status);<NEW_LINE>LinearLayout ll = new LinearLayout(activity);<NEW_LINE>final ListView lv = new ListView(activity);<NEW_LINE>final int dp24 = ... | int layout = R.layout.list_menu_item_native; |
6,830 | private static Properties jdbcUrl(Config conf, String database) {<NEW_LINE>Properties hikari = new Properties();<NEW_LINE>if ("mem".equals(database)) {<NEW_LINE>hikari.setProperty("dataSource.url", "jdbc:h2:mem:@mem" + rnd() + ";DB_CLOSE_DELAY=-1");<NEW_LINE>hikari.setProperty("dataSource.user", "sa");<NEW_LINE>hikari.... | hikari.setProperty("dataSource.user", "sa"); |
1,841,597 | public CreateTemplateAliasResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateTemplateAliasResult createTemplateAliasResult = new CreateTemplateAliasResult();<NEW_LINE>createTemplateAliasResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = context.ge... | class).unmarshall(context)); |
1,467,345 | /*<NEW_LINE>* @see org.springframework.session.web.http.CookieWriter#writeCookieValue(org.<NEW_LINE>* springframework.session.web.http.CookieWriter.CookieValue)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void writeCookieValue(CookieValue cookieValue) {<NEW_LINE>HttpServletRequest request = cookieValue.getRequest();... | append(cookieValue.getCookieMaxAge()); |
653,837 | public void translate(PTransform<PBegin, PCollection<T>> transform, TransformHierarchy.Node node, TranslationContext ctx) {<NEW_LINE>final PCollection<T> output = ctx.getOutput(transform);<NEW_LINE>final Coder<WindowedValue<T>> coder = SamzaCoders.of(output);<NEW_LINE>final Source<?> source = transform instanceof Split... | id = ctx.getIdForPValue(output); |
248,251 | public void testAuthenticateMethodBA_UnprotectedServlet1() throws Exception {<NEW_LINE>METHODS = "testMethod=authenticate,logout,login";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/basicauth/UnprotectedProgrammaticAPIServlet?" + METHODS + "&user=" + managerUser + "&pas... | validUser, validPassword, url, PROGRAMMATIC_API_SERVLET); |
708,783 | private void flush(boolean force) throws IOException {<NEW_LINE>assert force != triggerFlush();<NEW_LINE>final int chunkDocs = pendingDocs.size();<NEW_LINE>assert chunkDocs > 0 : chunkDocs;<NEW_LINE>numChunks++;<NEW_LINE>if (force) {<NEW_LINE>// incomplete: we had to force this flush<NEW_LINE>numDirtyChunks++;<NEW_LINE... | chunkDocs, vectorsStream.getFilePointer()); |
1,616,296 | /* ===========<NEW_LINE>* SEARCH VIEW<NEW_LINE>* =========== */<NEW_LINE>@Override<NEW_LINE>public void initSearchView(final Menu menu) {<NEW_LINE>// Associate searchable configuration with the SearchView<NEW_LINE>Log.d("onCreateOptionsMenu setup SearchView!");<NEW_LINE>SearchManager searchManager = (SearchManager) get... | EditorInfo.IME_ACTION_DONE | EditorInfo.IME_FLAG_NO_FULLSCREEN); |
463,332 | public Execution execute(CommandContext commandContext) {<NEW_LINE>ExecutionEntity execution = commandContext.getExecutionEntityManager().findById(executionId);<NEW_LINE>if (execution == null) {<NEW_LINE>throw new ActivitiObjectNotFoundException("No execution found for id '" + executionId + "'", ExecutionEntity.class);... | getExecutionEntityManager().createChildExecution(execution); |
1,549,509 | final StartQueryResult executeStartQuery(StartQueryRequest startQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | endClientExecution(awsRequestMetrics, request, response); |
150,077 | public void run() {<NEW_LINE>if (!factory.canAddTestStepToTestCase(testCase)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int ix = testStepList.getTestStepList().getSelectedIndex();<NEW_LINE>String name;<NEW_LINE>if (factory.promptForName()) {<NEW_LINE>name = UISupport.prompt("Specify name for new step", ix == -1 ? "Add Ste... | "Insert Step", factory.getTestStepName()); |
1,655,474 | protected Clustering<KMeansModel> buildResultWithNoise() {<NEW_LINE>// create noisecluster if wanted<NEW_LINE>ModifiableDoubleDBIDList noiseids = null;<NEW_LINE>if (noiseFlag && heapsize > 0) {<NEW_LINE>clusters.add(noiseids = DBIDUtil.newDistanceDBIDList((<MASK><NEW_LINE>double tresh = minHeap.peek();<NEW_LINE>for (in... | minHeap.size()))); |
473,446 | final DisassociateTeamMemberResult executeDisassociateTeamMember(DisassociateTeamMemberRequest disassociateTeamMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateTeamMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
510,989 | public void onActivityCreated(final Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>mEventsListener = new MXEventListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onPresenceUpdate(final Event event, final User user) {<NEW_LINE>mAdapter.updateKnownContact(user);<N... | .getBoolean(MATRIX_USER_ONLY_PREF_KEY, false)); |
740,210 | public Map<Integer, Integer> loadJobRankDistributionByAllZkCluster() throws SaturnJobConsoleException {<NEW_LINE>Map<Integer, Integer> jobDegreeCountMap = new HashMap<>();<NEW_LINE>Collection<ZkCluster> zkClusterList = registryCenterService.getOnlineZkClusterList();<NEW_LINE>for (ZkCluster zkCluster : zkClusterList) {<... | Integer> temp = loadJobRankDistribution(zkAddr); |
604,921 | public MdiEntry createMDiEntry(MultipleDocumentInterface mdi, String id, Object datasource, Map params) {<NEW_LINE>if (datasource instanceof Tag) {<NEW_LINE>Tag tag = (Tag) datasource;<NEW_LINE>return sb_transfers.setupTag(tag);<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>// id format is "Tag." + tag.getTagType().getTagT... | .parseInt(bits[1]); |
463,595 | private void addAndroidLibraryDependencies(@NotNull Project androidProject, @NotNull Module androidModule, @NotNull Module flutterModule) {<NEW_LINE>AndroidSdkUtils.setupAndroidPlatformIfNecessary(androidModule, true);<NEW_LINE>Sdk currentSdk = ModuleRootManager.getInstance(androidModule).getSdk();<NEW_LINE>if (current... | getInstance().getLibraryTable(androidProject); |
569,815 | public void finalizeDependencies() {<NEW_LINE>Path lintCache = project.file(LINT_DEPS_CACHE).toPath();<NEW_LINE>FileUtil.deleteQuietly(lintCache);<NEW_LINE>if (dependencies != null && dependencies.size() > 0) {<NEW_LINE>lintCache.toFile().mkdirs();<NEW_LINE>new JvmBinaryRule().mainClassName("").excludes(LINT_BINARY_EXC... | new ImmutableList.Builder<>(); |
691,034 | public StmtForgeMethodResult make(String packageName, String classPostfix, StatementCompileTimeServices services) throws ExprValidationException {<NEW_LINE>StatementSpecCompiled statementSpec = base.getStatementSpec();<NEW_LINE>CreateSchemaDesc spec = statementSpec.getRaw().getCreateSchemaDesc();<NEW_LINE>if (services.... | CREATEOBJECTNAME, spec.getSchemaName()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.