idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
81,904 | public Request decodeRequest(Object packet) throws Exception {<NEW_LINE>Request request = new RpcRequest();<NEW_LINE>DubboPacket dubboPacket = (DubboPacket) packet;<NEW_LINE>request.setCorrelationId(dubboPacket.getHeader().getCorrelationId());<NEW_LINE>// check if it is heartbeat request<NEW_LINE>byte flag = dubboPacke... | e.getMessage(), e); |
1,740,022 | public boolean onNavigationItemSelected(@NonNull MenuItem item) {<NEW_LINE>super.onNavigationItemSelected(item);<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.settings:<NEW_LINE>mSettingsLauncher.launch(null);<NEW_LINE>return true;<NEW_LINE>case R.id.search:<NEW_LINE>startActivity(SearchActivity.makeIntent(thi... | (this, TimelineActivity.class)); |
1,664,879 | public static SearchRequest<Amenity> buildSearchPoiRequest(List<Location> route, double radius, SearchPoiTypeFilter poiTypeFilter, ResultMatcher<Amenity> resultMatcher) {<NEW_LINE>SearchRequest<Amenity> request <MASK><NEW_LINE>float coeff = (float) (radius / MapUtils.getTileDistanceWidth(SearchRequest.ZOOM_TO_SEARCH_PO... | = new SearchRequest<Amenity>(); |
1,704,663 | final DeleteNotificationResult executeDeleteNotification(DeleteNotificationRequest deleteNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNotificationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteNotificat... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
870,973 | private Map<String, String> extractAllAttributes(JsonNode productDetailsJson) {<NEW_LINE>Map<String, String> productAttrs = new HashMap<>();<NEW_LINE>productAttrs.put("sku", productDetailsJson.get("sku").textValue());<NEW_LINE>productAttrs.put("productFamily", productDetailsJson.get("productFamily") != null ? productDe... | info(sb.toString()); |
57,614 | private synchronized EncodedSnippets encodeSnippets(OptionValues options) {<NEW_LINE>GraphBuilderConfiguration.Plugins plugins = originalReplacements.getGraphBuilderPlugins();<NEW_LINE>InvocationPlugins invocationPlugins = plugins.getInvocationPlugins();<NEW_LINE>GraphBuilderConfiguration.Plugins copy = new GraphBuilde... | .appendInlineInvokePlugin(new SnippetInlineInvokePlugin()); |
1,790,128 | protected boolean advanceQueue() {<NEW_LINE>if (heap.isEmpty()) {<NEW_LINE>candidates = DoubleDBIDListIter.EMPTY;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>curdist = heap.peekKey();<NEW_LINE>if (curdist > threshold) {<NEW_LINE>heap.clear();<NEW_LINE>candidates = DoubleDBIDListIter.EMPTY;<NEW_LINE>return false;<NEW_LIN... | = cur.vp.iter(); |
1,004,231 | public void marshall(BatchPutGeofenceSuccess batchPutGeofenceSuccess, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (batchPutGeofenceSuccess.getCreateTime() != null) {<NEW_LINE>java.util.Date createTime = batchPutGeofenceSuccess.getCreateTime();<NEW_LINE>jsonWriter.name("Cr... | (DateUtils.formatISO8601Date(createTime)); |
1,088,684 | final DeleteIdentityResult executeDeleteIdentity(DeleteIdentityRequest deleteIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
69,247 | public List<ImageStoreJoinVO> searchByIds(Long... spIds) {<NEW_LINE>// set detail batch query size<NEW_LINE>int DETAILS_BATCH_SIZE = 2000;<NEW_LINE>String batchCfg = _configDao.getValue("detail.batch.query.size");<NEW_LINE>if (batchCfg != null) {<NEW_LINE>DETAILS_BATCH_SIZE = Integer.parseInt(batchCfg);<NEW_LINE>}<NEW_... | > sc = dsSearch.create(); |
645,728 | protected void writeLocBundleAttrs(PrintWriter ps) {<NEW_LINE>FileInputStream fis;<NEW_LINE>Properties p = new Properties();<NEW_LINE>String s;<NEW_LINE>boolean hadone = false;<NEW_LINE>try {<NEW_LINE>fis = new FileInputStream(locBundle);<NEW_LINE>p.load(fis);<NEW_LINE>fis.close();<NEW_LINE>} catch (Exception e) {<NEW_... | s = p.getProperty("OpenIDE-Module-Name"); |
1,432,872 | private void addTypes(EnumSet<ElementKind> kinds, DeclaredType baseType, Set<? extends Element> toExclude, String prefix, int substitutionOffset, JavadocContext jdctx) {<NEW_LINE>if (queryType == CompletionProvider.COMPLETION_ALL_QUERY_TYPE) {<NEW_LINE>if (baseType == null) {<NEW_LINE>addAllTypes(jdctx, kinds, toExclud... | = jdctx.javac.getElements(); |
1,784,680 | protected void onRequest(RoutingContext context) {<NEW_LINE>URLMappedConfigurationItem configurationItem = findConfigurationItem(context.request().uri());<NEW_LINE>if (configurationItem == null) {<NEW_LINE>context.next();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String uri = Utils.findActualPath(context.request().uri(), co... | ), failure.getMessage()); |
678,053 | private List<ChunkRange> splitUnevenlySizedChunks(JdbcConnection jdbc, TableId tableId, String splitColumnName, Object min, Object max, int chunkSize) throws SQLException {<NEW_LINE>LOG.info("Use unevenly-sized chunks for table {}, the chunk size is {}", tableId, chunkSize);<NEW_LINE>final List<ChunkRange> splits = new... | tableId, splitColumnName, max, chunkSize); |
694,773 | public StaxEventItemReader<T> build() {<NEW_LINE>StaxEventItemReader<T> reader = new StaxEventItemReader<>();<NEW_LINE>if (this.resource == null) {<NEW_LINE>logger.debug("The resource is null. This is only a valid scenario when " + "injecting resource later as in when using the MultiResourceItemReader");<NEW_LINE>}<NEW... | fragmentRootElements.size()])); |
1,509,025 | private void expireStatistic() {<NEW_LINE>List<Long> dbIds = Catalog.getCurrentCatalog().getDbIds();<NEW_LINE>List<Long> tables = Lists.newArrayList();<NEW_LINE>for (Long dbId : dbIds) {<NEW_LINE>Database db = Catalog.getCurrentCatalog().getDb(dbId);<NEW_LINE>if (null == db || StatisticUtils.statisticDatabaseBlackListC... | ).forEach(tables::add); |
1,279,422 | public static ClientMessage encodeRequest(java.lang.String name, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value, @Nullable com.hazelcast.internal.serialization.Data expiryPolicy, boolean get, int completionId) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createF... | DataCodec.encode(clientMessage, value); |
1,770,437 | protected void acceptEquals(T model) {<NEW_LINE>requireNonNull(model);<NEW_LINE>if (importer != null) {<NEW_LINE>importer.add(Import.of(Objects.class));<NEW_LINE>importer.add(Import.of(Optional.class));<NEW_LINE>}<NEW_LINE>model.add(Method.of(EQUALS, boolean.class).set(Javadoc.of("Compares this object with the specifie... | >) model).getSupertype(); |
879,862 | public static FindOrderableListResponse unmarshall(FindOrderableListResponse findOrderableListResponse, UnmarshallerContext _ctx) {<NEW_LINE>findOrderableListResponse.setRequestId(_ctx.stringValue("FindOrderableListResponse.RequestId"));<NEW_LINE>findOrderableListResponse.setCode(_ctx.integerValue("FindOrderableListRes... | ("FindOrderableListResponse.Data.ServiceList[" + i + "].Id")); |
870,244 | final DescribeFileSystemAssociationsResult executeDescribeFileSystemAssociations(DescribeFileSystemAssociationsRequest describeFileSystemAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFileSystemAssociationsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEven... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,439,243 | public IngestDocument execute(IngestDocument ingestDocument) {<NEW_LINE>Object obj = ingestDocument.getFieldValue(field, Object.class);<NEW_LINE>String value = null;<NEW_LINE>if (obj != null) {<NEW_LINE>// Not use Objects.toString(...) here, because null gets changed to "null" which may confuse some date parsers<NEW_LI... | ()).apply(value); |
552,282 | public void encode(ProtoWriter writer, ShapeStyle value) throws IOException {<NEW_LINE>if (value.fill != null)<NEW_LINE>RGBAColor.ADAPTER.encodeWithTag(writer, 1, value.fill);<NEW_LINE>if (value.stroke != null)<NEW_LINE>RGBAColor.ADAPTER.encodeWithTag(writer, 2, value.stroke);<NEW_LINE>if (value.strokeWidth != null)<NE... | writer, 4, value.lineCap); |
30,441 | private void updateDownloadSize() {<NEW_LINE>String downloadedString = getString(R.string.shared_string_download_successful);<NEW_LINE>String downloadedSize = getSizeMb(downloadedSizeMb);<NEW_LINE>String expectedSize = MessageFormat.format("(~{0})", getSizeMb(approxSizeMb));<NEW_LINE>String fullText;<NEW_LINE>if (progr... | findViewById(R.id.downloaded_size); |
1,004,745 | public Request<RevokeTokenRequest> marshall(RevokeTokenRequest revokeTokenRequest) {<NEW_LINE>if (revokeTokenRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(RevokeTokenRequest)");<NEW_LINE>}<NEW_LINE>Request<RevokeTokenRequest> request = new DefaultRequest<RevokeTokenReq... | String snippet = stringWriter.toString(); |
494,171 | final GetDeviceResult executeGetDevice(GetDeviceRequest getDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetDeviceRequest> request = null;<NEW_LINE>Response<GetDevic... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
128,311 | public static void checkDifferentDocuments(@Nonnull ContentDiffRequest request) {<NEW_LINE>// Actually, this should be a valid case. But it has little practical sense and will require explicit checks everywhere.<NEW_LINE>// Some listeners will be processed once instead of 2 times, some listeners will cause illegal docu... | content2 = contents.get(j); |
1,211,120 | private Mono<Response<List<ApplicationInsightsComponentProactiveDetectionConfigurationInner>>> listWithResponseAsync(String resourceGroupName, String resourceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpo... | error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); |
941,099 | public boolean handleHTTP2DirectConnect(HttpInboundLink link) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "handleHTTP2DirectConnect entry");<NEW_LINE>}<NEW_LINE>initialHttpInboundLink = link;<NEW_LINE>Integer streamID = new Integer(0);<NEW_LINE>H2VirtualConnection... | httpInboundChannel, h2VC, streamID, this); |
1,577,855 | private void renderMemoryInfo() {<NEW_LINE>final MemoryUsage heapusage = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage();<NEW_LINE>final MemoryUsage offheapusage = ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage();<NEW_LINE>final float pctmemory = (float) heapusage.getUsed<MASK><NEW_LINE>String memor... | () / heapusage.getMax(); |
71,369 | private void createContextMenu() {<NEW_LINE>MenuManager manager = new MenuManager();<NEW_LINE>table.setMenu<MASK><NEW_LINE>manager.add(new Action("&Add DBSpaceInfo", ImageDescriptor.createFromImage(Images.add)) {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>IWorkbenchWindow window = PlatformUI.getWorkbench().getActi... | (manager.createContextMenu(table)); |
168,954 | Input newInput(Span span, UUID ts_uuid) {<NEW_LINE>boolean traceIdHigh = !strictTraceId && span.traceId().length() == 32;<NEW_LINE>String annotation_query = searchEnabled ? CassandraUtil.annotationQuery(span) : null;<NEW_LINE>return new AutoValue_InsertSpan_Input(ts_uuid, traceIdHigh ? span.traceId().substring(0, 16) :... | (span.shared())); |
1,635,028 | public void run(OpcUaClient client, CompletableFuture<OpcUaClient> future) throws Exception {<NEW_LINE>client.connect().get();<NEW_LINE>final CountDownLatch eventLatch = new CountDownLatch(3);<NEW_LINE>ManagedSubscription subscription = ManagedSubscription.create(client);<NEW_LINE>subscription.addEventChangeListener((e... | "Event Received from {}", eventItem.getNodeId()); |
199,716 | private void smartIndent(int startOffset, int endOffset) {<NEW_LINE>int startLineNum = myDocument.getLineNumber(startOffset);<NEW_LINE>int endLineNum = myDocument.getLineNumber(endOffset);<NEW_LINE>if (endLineNum == startLineNum) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int selectionIndent = -1;<NEW_LINE>int selectionSta... | ) - myDocument.getLineStartOffset(indentLineNum); |
1,788,241 | public boolean apply(Game game, Ability source) {<NEW_LINE>// Store for each player the cards to exile, that's important because all exile shall happen at the same time<NEW_LINE>Map<UUID, Cards> cardsToExile = new HashMap<>();<NEW_LINE>// Each player chooses 2 cards to discard<NEW_LINE>for (UUID playerId : game.getStat... | Zone.EXILED, source, game); |
1,575,109 | public RoleList requestGroupRoles(Long groupId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'groupId' is set<NEW_LINE>if (groupId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'groupId' when calling requ... | = new ArrayList<Pair>(); |
881,442 | public void sendCommand(PlexBindingConfig config, Command command) throws IOException {<NEW_LINE>String cmd = null;<NEW_LINE>String property = config.getProperty();<NEW_LINE>if (property.equals(PlexProperty.VOLUME.getName())) {<NEW_LINE>cmd = getVolumeCommand(config, command);<NEW_LINE>} else if (property.equals(PlexPr... | "Cannot send command, host is unknown for machine ID {}", config.getMachineIdentifier()); |
1,663,218 | public static void copyEmptyNodes(SemanticGraph source, SemanticGraph target) {<NEW_LINE>for (IndexedWord node : source.vertexSet()) {<NEW_LINE>if (isEmptyNode(node)) {<NEW_LINE>target.addVertex(node);<NEW_LINE>System.err.println("added vertex" + node);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// remove all orphan dependencies<N... | ), edge.isExtra()); |
867,504 | protected void processEntry(ByteArray key, Versioned<byte[]> value) throws IOException {<NEW_LINE>KeyLockHandle<byte[]> handle = null;<NEW_LINE>try {<NEW_LINE>handle = storageEngine.getAndLock(key);<NEW_LINE>// determine if there is a version already with a greater ts.<NEW_LINE>boolean foundGreaterTs = false;<NEW_LINE>... | logger.error("Error in time based update entries", e); |
612,887 | private boolean isNodeSource(String firstLine, String text) {<NEW_LINE>boolean hasCorretSheBang = firstLine.startsWith(SHEBANG_START) && firstLine.indexOf(NODE) > -1 && SINGLETON_FUNCTION_START.length() < firstLine.length();<NEW_LINE>if (hasCorretSheBang) {<NEW_LINE>int lineOffsetBegin = firstLine.length() + 1;<NEW_LIN... | text.indexOf('\n', lineOffsetBegin); |
1,102,857 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String clusterName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,040,883 | public static QueryHotlineSessionResponse unmarshall(QueryHotlineSessionResponse queryHotlineSessionResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryHotlineSessionResponse.setRequestId(_ctx.stringValue("QueryHotlineSessionResponse.RequestId"));<NEW_LINE>queryHotlineSessionResponse.setMessage(_ctx.stringValue("QueryH... | (_ctx.stringValue("QueryHotlineSessionResponse.Code")); |
896,150 | public HoldingContainer visitFunctionHolderExpression(FunctionHolderExpression holderExpr, ClassGenerator<?> generator) throws RuntimeException {<NEW_LINE>// Reference to the function definition.<NEW_LINE>AbstractFuncHolder fnHolder = (AbstractFuncHolder) holderExpr.getHolder();<NEW_LINE>// Define (internal) workspace ... | holderExpr.args.size()]; |
1,286,393 | final StopEngagementResult executeStopEngagement(StopEngagementRequest stopEngagementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopEngagementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
388,691 | public static void horizontal7(Kernel1D_S32 kernel, GrayS16 image, GrayI16 dest) {<NEW_LINE>final short[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int <MASK><NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3];<NE... | k2 = kernel.data[1]; |
1,663,966 | private static void tryAssertionCrontab(RegressionEnvironment env, int days) {<NEW_LINE>String[] fields = "symbol".split(",");<NEW_LINE>sendEvent(env, "S1", 0);<NEW_LINE>env.assertListenerNotInvoked("s0");<NEW_LINE>sendTimeEvent(env, days, 17, 14, 59, 0);<NEW_LINE>sendEvent(env, "S2", 0);<NEW_LINE>env.assertListenerNot... | 18, 1, 0, 0); |
1,174,947 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.fsfilcnt_t, NativeType.ULONG); |
1,279,874 | protected void makeInitialSet() {<NEW_LINE>final Body body = ((<MASK><NEW_LINE>// Find all locals of reference type<NEW_LINE>List<Local> refLocals = new ArrayList<Local>();<NEW_LINE>for (Local l : body.getLocals()) {<NEW_LINE>if (l.getType() instanceof RefType) {<NEW_LINE>refLocals.add(l);<NEW_LINE>}<NEW_LINE>}<NEW_LIN... | UnitGraph) graph).getBody(); |
420,596 | public int compareTo(RemoteDaemonicCellState other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetAllRawNodesJsons()).compareTo(other.... | compareTo(other.isSetBuildFileEnv()); |
1,547,310 | final DetachElasticLoadBalancerResult executeDetachElasticLoadBalancer(DetachElasticLoadBalancerRequest detachElasticLoadBalancerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachElasticLoadBalancerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | (super.beforeMarshalling(detachElasticLoadBalancerRequest)); |
840,112 | public void addComposite(FormatterBlockWithBeginEndNode formatNode, JSONNode node) {<NEW_LINE>int startingOffset = node.getStartingOffset();<NEW_LINE>int endingOffset = node.getEndingOffset();<NEW_LINE>IFormatterTextNode textNode = createTextNode(_document, startingOffset, startingOffset + 1);<NEW_LINE>formatNode.setBe... | ().getEndingOffset() : startingOffset; |
1,111,250 | public void execute() throws CoreException {<NEW_LINE>final Logger log = Logger.getLogger(this.getClass().getName());<NEW_LINE>if (log.isLoggable(Level.FINE)) {<NEW_LINE>Map<String, String> attrs = query.getAttributes();<NEW_LINE>// NOI18N<NEW_LINE>log.// NOI18N<NEW_LINE>log(// NOI18N<NEW_LINE>Level.FINE, "executing Si... | (CoreException) status.getException(); |
975,913 | public void testSkipLastExecutionNoAutoPurge(PrintWriter out) throws Exception {<NEW_LINE>DBIncrementTask task = new DBIncrementTask("testSkipLastExecutionNoAutoPurge");<NEW_LINE>task.getExecutionProperties().put(AutoPurge.PROPERTY_NAME, AutoPurge.NEVER.toString());<NEW_LINE>Trigger trigger = new FixedRepeatTrigger(2, ... | throw new Exception("Expecting task to show as SUCCESSFUL even though the final execution was skipped. Instead found: " + successfulTasks); |
1,312,441 | public Request build() {<NEW_LINE>updateCharset();<NEW_LINE>RequestBuilderBase<?> rb = executeSignatureCalculator();<NEW_LINE>Uri finalUri = rb.computeUri();<NEW_LINE>// make copies of mutable internal collections<NEW_LINE>List<Cookie> cookiesCopy = rb.cookies == null ? Collections.emptyList() : new ArrayList<>(rb.cook... | ArrayList<>(rb.formParams); |
793,671 | public BigInteger bruteForceWithAdditionalOracleEquations(int[] usedOracleEquations, BigInteger[] congs, BigInteger[] modulis, int pointer) {<NEW_LINE>int[] eq = Arrays.<MASK><NEW_LINE>int maxValue = (pointer == usedOracleEquations.length - 1) ? (congs.length) : (usedOracleEquations[pointer + 1]);<NEW_LINE>int minValue... | copyOf(usedOracleEquations, usedOracleEquations.length); |
739,825 | protected void configure() {<NEW_LINE>LOGGER.debug("installing module: {}", AssignmentsModule.class.getSimpleName());<NEW_LINE>install(new ExportModule());<NEW_LINE>install(new CassandraRepositoryModule());<NEW_LINE>install(new ExperimentsModule());<NEW_LINE>Properties properties = create(PROPERTY_NAME, AssignmentsModu... | String.class, AssignmentIngestionExecutor.class); |
1,560,305 | protected void doCollectElementEvaluations(JRPrintPage page, List<JRPrintElement> elements, final ElementEvaluationsCollector collector, boolean clearEmpty) {<NEW_LINE>FillPageKey pageKey = new FillPageKey(page);<NEW_LINE>for (Map.Entry<JREvaluationTime, LinkedHashMap<FillPageKey, LinkedMap<Object, EvaluationBoundActio... | element, action.element, evaluationTime); |
930,131 | public static void vertical(GrayF32 input, GrayF32 output, int radius, boolean includeBorder) {<NEW_LINE>final int kernelWidth = radius * 2 + 1;<NEW_LINE>final <MASK><NEW_LINE>final int endX = includeBorder ? input.width : input.width - radius;<NEW_LINE>for (int x = startX; x < endX; x++) {<NEW_LINE>int indexIn = input... | int startX = includeBorder ? 0 : radius; |
1,639,874 | public static CoordinatorLogEntry fromJson(String coordinatorLogEntryStr) throws DeserializationException {<NEW_LINE>try {<NEW_LINE>String jsonContent = coordinatorLogEntryStr.trim();<NEW_LINE>validateJsonContent(jsonContent);<NEW_LINE>Map<String, String> header = extractHeader(jsonContent);<NEW_LINE>String coordinator... | (CoordinatorLogEntry.STATE)))); |
1,313,395 | public static String colorToHTML(Color color) {<NEW_LINE>String r = Integer.toHexString(color.getRed());<NEW_LINE>if (r.isEmpty()) {<NEW_LINE>r = "00";<NEW_LINE>} else if (r.length() == 1) {<NEW_LINE>r = "0" + r;<NEW_LINE>} else if (r.length() > 2) {<NEW_LINE>throw new IllegalArgumentException("invalid hex color for re... | toHexString(color.getGreen()); |
1,443,478 | private void addRouteWalk(TransportRouteResultSegment s1, TransportRouteResultSegment s2, LatLon start, LatLon end, List<Way> res, List<GeometryWayStyle<?>> styles) {<NEW_LINE>final RouteCalculationResult walkingRouteSegment = transportHelper.getWalkingRouteSegment(s1, s2);<NEW_LINE>if (walkingRouteSegment != null && w... | = new Way(TransportRoutePlanner.GEOMETRY_WAY_ID); |
1,032,572 | protected void extractNullPoints(DMatrixRMaj M) {<NEW_LINE>// compute MM and find its null space<NEW_LINE>MM.reshape(M.numRows, M.numRows, false);<NEW_LINE>CommonOps_DDRM.multTransB(M, M, MM);<NEW_LINE>if (!solverNull.process(MM, numControl, nullspace))<NEW_LINE>throw new IllegalArgumentException("SVD failed?!?!");<NEW... | [i].get(j); |
1,824,695 | public void generateEnd(OptimizedTagContext context) {<NEW_LINE>// PK65013 - start<NEW_LINE>String pageContextVar = Constants.JSP_PAGE_CONTEXT_ORIG;<NEW_LINE>JspOptions jspOptions = context.getJspOptions();<NEW_LINE>if (jspOptions != null) {<NEW_LINE>if (context.isTagFile() && jspOptions.isModifyPageContextVariable()) ... | writeSource(" out = " + pageContextVar + ".popBody();"); |
1,164,122 | private Problem findUsagesAndDelete(Set<TreePathHandle> refactoredObjects, RefactoringSession usages, Collection<? extends FileObject> files, RefactoringElementsBag refactoringElements) throws IllegalArgumentException {<NEW_LINE>fireProgressListenerStart(AbstractRefactoring.PARAMETERS_CHECK, whereUsedQueries.length + 1... | OverriddenAbsMethodFinder finder = new OverriddenAbsMethodFinder(allMethods); |
560,420 | public static String base64Encode(byte[] bytes) {<NEW_LINE>if (bytes == null) {<NEW_LINE>throw new IllegalArgumentException("Input bytes must not be null.");<NEW_LINE>}<NEW_LINE>if (bytes.length >= BASE64_UPPER_BOUND) {<NEW_LINE>throw new IllegalArgumentException("Input bytes length must not exceed " + BASE64_UPPER_BOU... | = new char[triples << 2]; |
124,341 | public void rewriteAggDistinctFirstStageFunction(List<FunctionCallExpr> aggregateExprList) {<NEW_LINE>int singleDistinctCount = 0;<NEW_LINE>int singleDistinctIndex = 0;<NEW_LINE>FunctionCallExpr functionCallExpr = null;<NEW_LINE>for (int i = 0; i < aggregateExprList.size(); ++i) {<NEW_LINE>FunctionCallExpr <MASK><NEW_L... | callExpr = aggregateExprList.get(i); |
838,295 | public static void main(String[] args) throws DataFormatException, IOException {<NEW_LINE>// START SNIPPET: resourceExtension<NEW_LINE>// Create an example patient<NEW_LINE>Patient patient = new Patient();<NEW_LINE>patient.addIdentifier().setUse(Identifier.IdentifierUse.OFFICIAL).setSystem<MASK><NEW_LINE>// Create an e... | ("urn:example").setValue("7000135"); |
247,269 | final BatchAssociateAssessmentReportEvidenceResult executeBatchAssociateAssessmentReportEvidence(BatchAssociateAssessmentReportEvidenceRequest batchAssociateAssessmentReportEvidenceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchAssociateAssessmentReportEvidenceRequest);<NEW_LINE>AWS... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
124,024 | private void addPwListSelector() {<NEW_LINE>JRadioButton rbDefaultList = new JRadioButton("default", true);<NEW_LINE>rbDefaultList.setLocation(4, 24);<NEW_LINE>rbDefaultList.<MASK><NEW_LINE>add(rbDefaultList);<NEW_LINE>JRadioButton rbTXTList = new JRadioButton("TXT file", false);<NEW_LINE>rbTXTList.setLocation(rbDefaul... | setSize(rbDefaultList.getPreferredSize()); |
352,573 | protected void addImage(Image img) throws EmptyStackException {<NEW_LINE>// if there is an element on the stack...<NEW_LINE>Element current = stack.pop();<NEW_LINE>// ...and it's a Chapter or a Section, the Image can be<NEW_LINE>// added directly<NEW_LINE>if (current instanceof Section || current instanceof Cell) {<NEW... | ) current).add(img); |
1,557,754 | public void run() {<NEW_LINE>String dn;<NEW_LINE>File f = new File((String) o);<NEW_LINE>if (f.exists()) {<NEW_LINE>FileObject fo = FileUtil.toFileObject(f);<NEW_LINE>Project p = FileOwnerQuery.getOwner(fo);<NEW_LINE>if (p != null) {<NEW_LINE>ProjectInformation pi = (ProjectInformation) ProjectUtils.getInformation(p);<... | "CTL_SourcesModel_Column_Name_LibrarySources", f.getPath()); |
1,115,225 | public void runJob() {<NEW_LINE>try {<NEW_LINE>if (configuration.hasOption(OptionEnum.HELP)) {<NEW_LINE>printHelpMessage();<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>if (configuration.hasOption(OptionEnum.WORKSPACE)) {<NEW_LINE>String directory = configuration.getOptionValue(OptionEnum.WORKSPACE);<NEW_LINE>setWorksp... | .getOptionValue(OptionEnum.DRIVER)); |
131,211 | public static LoadBalancerListenerInventory valueOf(LoadBalancerListenerVO vo) {<NEW_LINE>LoadBalancerListenerInventory inv = new LoadBalancerListenerInventory();<NEW_LINE>inv.setUuid(vo.getUuid());<NEW_LINE>inv.setLoadBalancerUuid(vo.getLoadBalancerUuid());<NEW_LINE>inv.setCreateDate(vo.getCreateDate());<NEW_LINE>inv.... | setDescription(vo.getDescription()); |
123,901 | private void add(Container parent, String key, JComponent widget, int x, int y) {<NEW_LINE>JLabel label = new JLabel(UIManager.getString(key + "Text", getLocale()));<NEW_LINE>String mnemonic = (String) UIManager.get(key + "Mnemonic", getLocale());<NEW_LINE>if (mnemonic != null) {<NEW_LINE>try {<NEW_LINE>label.setDispla... | key + "MnemonicIndex", getLocale()); |
1,136,332 | public boolean updateSplit(@NonNull GpxDataItem item, int splitType, double splitInterval) {<NEW_LINE>SQLiteConnection db = openConnection(false);<NEW_LINE>if (db != null) {<NEW_LINE>try {<NEW_LINE>String <MASK><NEW_LINE>String fileDir = getFileDir(item.file);<NEW_LINE>db.execSQL("UPDATE " + GPX_TABLE_NAME + " SET " + ... | fileName = getFileName(item.file); |
788,058 | public void exportDownload(File parent_dir) throws DownloadManagerException {<NEW_LINE>if (!canExportDownload()) {<NEW_LINE>throw (new DownloadManagerException("Not in correct state"));<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>FileUtil.runAsTask(CoreOperation.OP_DOWNLOAD_EXPORT, new CoreOperationTask() {<NEW_LINE><NEW_LINE>p... | (getAbsoluteSaveLocation(), parent_dir)); |
532,459 | public static int appendLocalFunctionNodeComment(final SQLProvider provider, final INaviFunctionNode functionNode, final String commentText, final Integer userId) throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE02457: provider argument can not be null");<NEW_LINE>Preconditions.checkNo... | appendCommentFunction.setInt(2, moduleId); |
464,052 | private CloseableHttpResponse execute(CloseableHttpClient httpClient, ClassicHttpRequest method) throws IOException {<NEW_LINE>HttpCacheContext context = HttpCacheContext.create();<NEW_LINE>CloseableHttpResponse response = httpClient.execute(method, context);<NEW_LINE>try {<NEW_LINE>CacheResponseStatus responseStatus =... | log(Level.CONFIG, "The response was generated from the cache after validating the entry with the origin server"); |
302,127 | public static void createAndRegister() {<NEW_LINE><MASK><NEW_LINE>SubstrateRegisterConfig registerConfig = new SubstrateAMD64RegisterConfig(SubstrateRegisterConfig.ConfigKind.NORMAL, null, target, SubstrateOptions.PreserveFramePointer.getValue());<NEW_LINE>Register frameRegister = registerConfig.getFrameRegister();<NEW... | SubstrateTargetDescription target = ConfigurationValues.getTarget(); |
1,378,092 | public void marshall(Meeting meeting, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (meeting == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(meeting.getMeetingId(), MEETINGID_BINDING);<NEW_LINE>protocolMa... | meeting.getMediaRegion(), MEDIAREGION_BINDING); |
868,717 | private final void bootstrap(InputStream rawIn, OutputStream out, String embeddedStageName, String[] stageParameters) throws Exception {<NEW_LINE>try {<NEW_LINE>final DataInputStream in = new DataInputStream(rawIn);<NEW_LINE>Class clazz;<NEW_LINE>final Permissions permissions = new Permissions();<NEW_LINE>permissions.a... | ] classfile = new byte[length]; |
4,381 | public <V, R> RFuture<R> async(boolean readOnlyMode, NodeSource nodeSource, Codec codec, RedisCommand<V> command, Object[] params, boolean ignoreRedirect, boolean noRetry) {<NEW_LINE>CompletableFuture<R> mainPromise = createPromise();<NEW_LINE>if (isRedisBasedQueue()) {<NEW_LINE>boolean isReadOnly = options.getExecutio... | index, executed, referenceType, noRetry); |
909,387 | public List<?> applyOnIndex(IndexMap indexMap) {<NEW_LINE>Comparable comparable = getComparable();<NEW_LINE>List<NavigableMap<Comparable<?>, Object>> subMap = new ArrayList<>();<NEW_LINE>List<NitriteId> nitriteIds = new ArrayList<>();<NEW_LINE>Comparable <MASK><NEW_LINE>while (ceilingKey != null) {<NEW_LINE>// get the ... | ceilingKey = indexMap.floorKey(comparable); |
806,101 | final ListDomainsResult executeListDomains(ListDomainsRequest listDomainsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListDomainsRequest> request = null;<NEW_LINE>Respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
763,855 | private void readNameIdMapV2(FileChannel nameIdMapHolder) throws IOException, InterruptedException {<NEW_LINE>nameIdMap.clear();<NEW_LINE>long localFileCounter = -1;<NEW_LINE>nameIdMapHolder.position(0);<NEW_LINE>NameFileIdEntry nameFileIdEntry;<NEW_LINE>final Map<Integer, String> idFileNameMap = new HashMap<>(1_000);<... | nameFileIdEntry.fileId, nameFileIdEntry.name); |
629,300 | void assign(String raIdentifier, String baseChildAliasName) {<NEW_LINE>for (Map.Entry<MetatypeOcd, List<String>> entry : rankings.entrySet()) {<NEW_LINE>MetatypeOcd ocd = entry.getKey();<NEW_LINE>String suffix = null;<NEW_LINE>// Can run out of entries if there are two items with the exact same list of possibilities,<N... | getValue().get(0); |
185,247 | private void createHierarchy(CreateSubHierarchyWizard wizard) throws IOException {<NEW_LINE>List<OWLOntologyChange> <MASK><NEW_LINE>String termPrefix = wizard.getPrefix();<NEW_LINE>String termSuffix = wizard.getSuffix();<NEW_LINE>String tabIndentedHierarchy = wizard.getHierarchy();<NEW_LINE>TabIndentedHierarchyParser p... | changes = new ArrayList<>(); |
983,400 | private MergeableNode mergeWithObject(ObjectNodeImpl node) {<NEW_LINE>Set<String> unprocessedPeerNames = new HashSet<>(node.keySet());<NEW_LINE>final ListNodeBuilderImpl builder = new ListNodeBuilderImpl(Function.identity());<NEW_LINE>if (node.hasValue()) {<NEW_LINE>builder.value(node.value());<NEW_LINE>} else if (hasV... | ), formatFrom(description))); |
1,721,882 | protected ShellResponse execCommand(UUID regionUUID, UUID providerUUID, Common.CloudType cloudType, String command, List<String> commandArgs, List<String> cloudArgs, Map<String, String> envVars, Map<String, String> sensitiveData) {<NEW_LINE>List<String> commandList = new ArrayList<>();<NEW_LINE>commandList.add(YBCLOUD_... | provider = Provider.get(providerUUID); |
1,753,701 | public void initialize(RubyFiber fiber, boolean blocking, RubyProc block, Node currentNode) {<NEW_LINE>final SourceSection sourceSection = block.sharedMethodInfo.getSourceSection();<NEW_LINE>fiber.sourceLocation = RubyLanguage.fileLine(sourceSection);<NEW_LINE>fiber.blocking = blocking;<NEW_LINE>final TruffleContext tr... | .getEnv().getContext(); |
1,556,094 | public GPToolbar build() {<NEW_LINE><MASK><NEW_LINE>final GPToolbar result = new GPToolbar(myToolbar, myButtons, myBaseHeight, myButtonsSquared, myDpiOption);<NEW_LINE>if (myLafOption != null) {<NEW_LINE>ChangeValueListener lafListener = new ChangeValueListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void chan... | UIUtil.setBackgroundTree(myToolbar, myBackground); |
545,328 | public void launchSpecAndWait(JobLaunchSpecAndWaitRequest request, StreamObserver<JobLaunchSpecAndWaitResponse> responseObserver) {<NEW_LINE>try {<NEW_LINE>JobSpec spec = jobLauncher.parse(request.getSpec());<NEW_LINE>jobLauncher.launch(spec);<NEW_LINE>JobSeq.Builder jobSeqBuilder = JobSeq.newBuilder();<NEW_LINE>for (B... | (e).asRuntimeException()); |
1,217,294 | private void addDebugRects(float currentX, float currentY, float width, float height) {<NEW_LINE>clearDebugRects();<NEW_LINE>if (debug == Debug.table || debug == Debug.all) {<NEW_LINE>// Table actor bounds.<NEW_LINE>addDebugRect(0, 0, getWidth(), getHeight(), debugTableColor);<NEW_LINE>// Table bounds.<NEW_LINE>addDebu... | -= c.computedPadLeft + c.computedPadRight; |
1,514,418 | ParsingStage doParse() {<NEW_LINE>long port = Long.parseLong(connectionUri.substring(beginIdx, endIdx));<NEW_LINE>if (port > 65535 || port <= 0) {<NEW_LINE>throw new VertxException("The port can only range in 1-65535", true);<NEW_LINE>}<NEW_LINE>configuration.put("port", port);<NEW_LINE>if (endIdx == connectionUri.leng... | connectionUri, endIdx + 1, configuration); |
692,868 | private void copyFileToPrivateStorage(File file, Uri uri) throws FileCopyException {<NEW_LINE>Log.d(Config.LOGTAG, "copy file (" + uri.toString() + ") to private storage " + file.getAbsolutePath());<NEW_LINE>file.getParentFile().mkdirs();<NEW_LINE>try {<NEW_LINE>file.createNewFile();<NEW_LINE>} catch (IOException e) {<... | FileCopyException(R.string.error_unable_to_create_temporary_file); |
623,765 | private void handle(final LockVmInstanceMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return syncThreadName;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(final SyncTaskChain chain) {<NEW_LINE>logger.debug(S... | , msg.getReason())); |
38,529 | public final ClassBodyDeclarationContext classBodyDeclaration(int t) throws RecognitionException {<NEW_LINE>ClassBodyDeclarationContext _localctx = new ClassBodyDeclarationContext(_ctx, getState(), t);<NEW_LINE>enterRule(_localctx, 46, RULE_classBodyDeclaration);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(566);... | _la = _input.LA(1); |
1,221,394 | private void init(EditorPatternButton imgBtn, boolean exact, float similarity, int numMatches) {<NEW_LINE>setTitle(_I("winPatternSettings"));<NEW_LINE>setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);<NEW_LINE>_imgBtn = imgBtn;<NEW_LINE>takeScreenshot();<NEW_LINE>Container c = getContentPane();<NEW_LINE>c.setLayout(new Bo... | - 2 * pOff) * 0.95); |
925,768 | private void storeInstancePriceComponent(InitializationContext context, String sku, String instanceCode, String regionName, JsonNode onDemandJson) {<NEW_LINE>// First check that region exists<NEW_LINE>Region region = Region.find.query().where().eq("provider_uuid", context.provider.uuid).eq("name", regionName).findOne()... | get("description").textValue(); |
1,837,798 | public static void generate(final String sourceRef, String additionalText) {<NEW_LINE>final GeneratedResults gr = generate(null, new DebugPrompterListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean promptUser(GeneratedResults gr) {<NEW_LINE>UIDebugGenerator.promptUser(false, gr);<NEW_LINE>if (gr.message =... | gr.file.getAbsolutePath()); |
1,502,054 | public WritableByteChannel create(GcsPath path, CreateOptions options) throws IOException {<NEW_LINE>AsyncWriteChannelOptions wcOptions = googleCloudStorageOptions.getWriteChannelOptions();<NEW_LINE>@Nullable<NEW_LINE>Integer uploadBufferSizeBytes = options.getUploadBufferSizeBytes() != null ? options.getUploadBufferSi... | this.storageClient, this.credentials); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.