idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
387,776 | @SchedulerSupport(SchedulerSupport.NONE)<NEW_LINE>public static <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull R> Maybe<R> zip(@NonNull MaybeSource<? extends T1> source1, @NonNull MaybeSource<? extends T2> source2, @NonNull MaybeSource<? extends T3> source3, @NonNull MaybeSource<? extends T4... | Objects.requireNonNull(source2, "source2 is null"); |
1,325,427 | private void generateMethodBody(MethodVisitor mv, String initClass, String stopFuncName, AsyncDataCollector asyncDataCollector) {<NEW_LINE>// create FP value<NEW_LINE>JvmCodeGenUtil.createFunctionPointer(mv, initClass, stopFuncName);<NEW_LINE>// no parent strand<NEW_LINE>mv.visitInsn(ACONST_NULL);<NEW_LINE>jvmTypeGen.l... | futureIndex = indexMap.get(FUTURE_VAR); |
1,662,704 | public void build() {<NEW_LINE>int complexity = targetMethodComplexity(classScope);<NEW_LINE>if (values.size() < complexity) {<NEW_LINE>int index = 0;<NEW_LINE>for (V value : values) {<NEW_LINE>consumer.accept(value, index++, methodNode);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int count = 0;<NEW_LINE>Iterator<... | V value = it.next(); |
666,968 | final ListShardsResult executeListShards(ListShardsRequest listShardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listShardsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | invoke(request, responseHandler, executionContext); |
1,716,134 | static WritableArray cloneArray(ReadableArray source) {<NEW_LINE>WritableNativeArray result = new WritableNativeArray();<NEW_LINE>for (int i = 0; i < source.size(); i++) {<NEW_LINE>ReadableType <MASK><NEW_LINE>switch(indexType) {<NEW_LINE>case Null:<NEW_LINE>result.pushNull();<NEW_LINE>break;<NEW_LINE>case Boolean:<NEW... | indexType = source.getType(i); |
1,560,458 | private static PsiElement performReplace(@NotNull final String newName, @NotNull final PsiElement declaration, @NotNull ErlangExpression initializer, @NotNull final List<PsiElement> occurrences) {<NEW_LINE>Project project = declaration.getProject();<NEW_LINE>return WriteCommandAction.writeCommandAction(project, initial... | createdDeclaration = addDeclaration(declaration, occurrences); |
1,686,421 | public static DescribePerDateDataResponse unmarshall(DescribePerDateDataResponse describePerDateDataResponse, UnmarshallerContext context) {<NEW_LINE>describePerDateDataResponse.setRequestId(context.stringValue("DescribePerDateDataResponse.RequestId"));<NEW_LINE>List<DataViewItem> dataView = new ArrayList<DataViewItem>... | ("DescribePerDateDataResponse.DataView[" + i + "].IsNetAttack7d")); |
221,457 | public static Program heuristicJoinOrder(final Iterable<? extends RelOptRule> rules, final boolean bushy, final int minJoinCount) {<NEW_LINE>return (planner, rel, requiredOutputTraits, materializations, lattices) -> {<NEW_LINE>final int joinCount = RelOptUtil.countJoins(rel);<NEW_LINE>final Program program;<NEW_LINE>if... | final Program program2 = ofRules(list); |
1,790,082 | static void c_1_4() throws Exception {<NEW_LINE>StreamOperator<?> ratings = Chap24.getStreamSourceRatings();<NEW_LINE>ratings = ratings.filter("user_id=1 AND item_id<5");<NEW_LINE>ratings.print();<NEW_LINE>StreamOperator.execute();<NEW_LINE>ratings.link(new UDFStreamOp().setFunc(new FromUnixTimestamp()).setSelectedCols... | ("ts")).print(); |
366,099 | void updateUserPassword(final String userId, final String password) {<NEW_LINE>mScheduler.execute(() -> {<NEW_LINE>Connection connection = null;<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>try {<NEW_LINE>connection = DBUtil.getConnection();<NEW_LINE>String sql = "update t_user set `_passwd_md5` = ? where `_ui... | md5 = MessageDigest.getInstance("MD5"); |
836,610 | public PinotResourceManagerResponse createBrokerTenant(Tenant brokerTenant) {<NEW_LINE>List<MASK><NEW_LINE>int numberOfInstances = brokerTenant.getNumberOfInstances();<NEW_LINE>if (unTaggedInstanceList.size() < numberOfInstances) {<NEW_LINE>String message = "Failed to allocate broker instances to Tag : " + brokerTenant... | <String> unTaggedInstanceList = getOnlineUnTaggedBrokerInstanceList(); |
1,555,908 | private UpdateHostResponse resume(RestApi.RequestContext context) {<NEW_LINE>String hostNameString = context.pathParameters().getStringOrThrow("hostname");<NEW_LINE>HostName hostName = new HostName(hostNameString);<NEW_LINE>try {<NEW_LINE>orchestrator.resume(hostName);<NEW_LINE>} catch (HostNameNotFoundException e) {<N... | restApiExceptionFromTimeout("resume", hostName, e); |
129,929 | protected void paint(XYItem item, List<ItemSelection> highlighted, List<ItemSelection> selected, Graphics2D g, Rectangle dirtyArea, SynchronousXYChartContext context) {<NEW_LINE>if (!isPainting())<NEW_LINE>return;<NEW_LINE>if (item.getValuesCount() < 2)<NEW_LINE>return;<NEW_LINE>if (context.getViewWidth() == 0 || conte... | dirtyArea, context, type, maxValueOffset); |
815,234 | private boolean selectVictim(int bucketStart) {<NEW_LINE>byte victimOffset = (byte) rnd.nextInt(itemsPerSet);<NEW_LINE>int victimChain = indexing.getChainAtOffset(hashFunc.fpaux, chainIndex, lastIndex, victimOffset);<NEW_LINE>long victim = cache[bucketStart + victimOffset];<NEW_LINE>// this if is still for debugging an... | countItem(hashFunc.fpaux.value); |
1,702,991 | public static FitData<Circle2D_F64> averageCircle_I32(List<Point2D_I32> points, DogArray_F64 optional, @Nullable FitData<Circle2D_F64> outputStorage) {<NEW_LINE>if (outputStorage == null) {<NEW_LINE>outputStorage = new FitData<>(new Circle2D_F64());<NEW_LINE>}<NEW_LINE>if (optional == null) {<NEW_LINE>optional = new Do... | int N = points.size(); |
258,878 | public void buildModel() {<NEW_LINE>model = new Model("CarSequencing");<NEW_LINE>parse(data.source());<NEW_LINE>prepare();<NEW_LINE>int max = nClasses - 1;<NEW_LINE>cars = model.intVarArray("cars", nCars, 0, max, false);<NEW_LINE>IntVar[] expArray = new IntVar[nClasses];<NEW_LINE>for (int optNum = 0; optNum < options.l... | optNum][0], true); |
886,404 | public RecordError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecordError recordError = new RecordError();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok... | int originalDepth = context.getCurrentDepth(); |
232,446 | public static String generateTestTokenSWT(TokenRestrictionTemplate tokenTemplate, TokenVerificationKey signingKeyToUse, UUID keyIdForContentKeyIdentifierClaim, Date tokenExpiration) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>for (TokenClaim claim : tokenTemplate.getRequiredClaims()) {<NEW_LINE>Str... | (Base64.encode(signatureBytes)); |
851,644 | protected void parseTimerStartEventDefinitionForEventSubprocess(Element timerEventDefinition, ActivityImpl timerActivity, boolean interrupting) {<NEW_LINE>timerActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.START_EVENT_TIMER);<NEW_LINE>TimerDeclarationImpl timerDeclaration = parseTimer(<MASK><NEW_LINE>... | timerEventDefinition, timerActivity, TimerStartEventSubprocessJobHandler.TYPE); |
538,160 | public void enterRouter_eigrp(Router_eigrpContext ctx) {<NEW_LINE>Optional<String> processTagOrErr = toString(ctx, ctx.tag);<NEW_LINE>if (processTagOrErr.isPresent()) {<NEW_LINE>String processTag = processTagOrErr.get();<NEW_LINE>_currentEigrpProcess = _c.getOrCreateEigrpProcess(processTag);<NEW_LINE>_c.<MASK><NEW_LINE... | defineStructure(ROUTER_EIGRP, processTag, ctx); |
174,390 | public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>ResourceLoader resourceLoader = new DefaultResourceLoader(context.getClassLoader());<NEW_LINE>ClassLoader classLoader = context.getClassLoader();<NEW_LINE>Class<?> applicationClass;<NEW_LINE>String applicationClassName = context.getApplicati... | = new DefaultBootstrapWriterContext("org.springframework.aot", BOOTSTRAP_CLASS_NAME); |
15,250 | public <T> T run(Function<? super BuildTreeLifecycleController, T> buildAction) {<NEW_LINE>StartParameterInternal startParameter = buildDefinition.getStartParameter();<NEW_LINE>BuildRequestMetaData buildRequestMetaData = new DefaultBuildRequestMetaData(Time.currentTimeMillis());<NEW_LINE>BuildSessionState session = new... | .class).servicesForNestedBuildTree(startParameter); |
161,186 | public static List<ReassignTopicStatusVO> convert2ReassignTopicStatusVOList(List<ReassignStatus> dtoList) {<NEW_LINE>if (ValidateUtils.isNull(dtoList)) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>List<ReassignTopicStatusVO> voList = new ArrayList<>();<NEW_LINE>for (ReassignStatus elem : dtoList) {<NEW_LINE... | setDestReplicaIdList(elemData.getReplicas()); |
363,477 | public Entry proxyAuth(final RequestHeader header) {<NEW_LINE>Entry entry = null;<NEW_LINE>if (header == null) {<NEW_LINE>return entry;<NEW_LINE>}<NEW_LINE>final String authHeader = header.get(RequestHeader.AUTHORIZATION, "").trim();<NEW_LINE>if (authHeader.toUpperCase(Locale.ROOT).startsWith(HttpServletRequest.BASIC_A... | ()).split(":"); |
1,040,732 | public static UserTrades adaptTradeHistory(List<DsxOwnTrade> tradeHistoryRaw) {<NEW_LINE>List<UserTrade> trades = new ArrayList<>(tradeHistoryRaw.size());<NEW_LINE>for (DsxOwnTrade dsxOwnTrade : tradeHistoryRaw) {<NEW_LINE>OrderType type = adaptOrderType(dsxOwnTrade.getSide().getValue());<NEW_LINE>CurrencyPair pair = a... | String clientOrderId = dsxOwnTrade.getClientOrderId(); |
596,085 | final UpdateFirewallPolicyResult executeUpdateFirewallPolicy(UpdateFirewallPolicyRequest updateFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,648,452 | protected void init(@Nonnull Context context) {<NEW_LINE>InternalSerializationService serializationService = ((ProcCtx) context).serializationService();<NEW_LINE>// we clone the projection of key/value if configured so because some of the<NEW_LINE>// record-readers return the same object for `reader.getCurrentKey()`<NE... | >(configuration, splits, projectionFn); |
1,672,863 | public void start(BundleContext context) throws Exception {<NEW_LINE>super.start(context);<NEW_LINE>if (PATCH_ECLIPSE_CLASSES) {<NEW_LINE>activateHooks(context);<NEW_LINE>}<NEW_LINE>// Set notifications handler<NEW_LINE>DBeaverNotifications.setHandler(new DBeaverNotifications.NotificationHandler() {<NEW_LINE><NEW_LINE>... | + bundle.getVersion() + "]"; |
119,508 | protected MapRulType registerRuleType(MapRulType rt) {<NEW_LINE>String tag = rt.tagValuePattern.tag;<NEW_LINE>String val = rt.tagValuePattern.value;<NEW_LINE>String keyVal = constructRuleKey(tag, val);<NEW_LINE>if (types.containsKey(keyVal)) {<NEW_LINE>MapRulType mapRulType = types.get(keyVal);<NEW_LINE>if (mapRulType.... | rt.maxzoom, mapRulType.maxzoom); |
918,433 | private IEditorPart createUntitledFile(String editorType, String fileExtension, InputStream initialContent) {<NEW_LINE>FileOutputStream output = null;<NEW_LINE>try {<NEW_LINE>File file = // $NON-NLS-1$<NEW_LINE>File.// $NON-NLS-1$<NEW_LINE>createTempFile(// $NON-NLS-1$<NEW_LINE>Messages.NewUntitledFileTemplateMenuContr... | IOUtil.pipe(initialContent, output); |
73,525 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<NEW_LINE>output.writeMessage(1, getHandle());<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) != 0)) {<NEW_LINE>output.writeFloat(4, networkCost_);<NEW_LINE>}<NEW_LINE>if ((... | output.writeFloat(5, cpuCost_); |
487,224 | final CreateBackupResult executeCreateBackup(CreateBackupRequest createBackupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBackupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | responseHandler, executionContext, cachedEndpoint, null); |
115,011 | private static void maybeCleanUpQuery(final byte[] command, final KsqlConfig ksqlConfig) {<NEW_LINE>boolean queryIdFound = false;<NEW_LINE>final Map<String, Object> streamsProperties = new HashMap<>(ksqlConfig.getKsqlStreamConfigProps());<NEW_LINE>boolean sharedRuntimeQuery = false;<NEW_LINE>String queryId = "";<NEW_LI... | plan = jsonObject.getJSONObject("plan"); |
185,881 | private List<RDPLocalVariable> parseProperties(String scopeId, PropertyDescriptorDTO[] properties, PropertyDescriptorDTO[] getters) {<NEW_LINE>List<RDPLocalVariable> variables = new ArrayList<>();<NEW_LINE>if (properties != null) {<NEW_LINE>for (PropertyDescriptorDTO property : properties) {<NEW_LINE>RemoteObjectDTO re... | "null", "null", null, false); |
1,113,616 | public void restoreXml(XmlPullParser parser, SleighLanguage language) throws XmlParseException {<NEW_LINE>ArrayList<InjectParameter> inlist = new ArrayList<>();<NEW_LINE>ArrayList<InjectParameter> outlist = new ArrayList<>();<NEW_LINE>// The <pcode> tag<NEW_LINE>XmlElement el = parser.start();<NEW_LINE>String injectstr... | pshiftstr = el.getAttribute("paramshift"); |
1,187,814 | private IStatus performMove(final CommonDropAdapter dropAdapter, final IAdaptable[] sources) {<NEW_LINE>MultiStatus problems = new MultiStatus(IOUIPlugin.PLUGIN_ID, 1, Messages.FileDropAdapterAssistant_ERR_Moving, null);<NEW_LINE>IStatus validate = validateDrop(dropAdapter.getCurrentTarget(), dropAdapter.getCurrentOper... | refresh(dropAdapter.getCurrentTarget()); |
1,803,374 | public void render(CoresampleTileEntity tile, float partialTicks, PoseStack matrixStack, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {<NEW_LINE>if (!tile.getWorldNonnull().hasChunkAt(tile.getBlockPos()) || tile.coresample == null)<NEW_LINE>return;<NEW_LINE>matrixStack.pushPose();<NEW_LINE>ma... | ? 90 : 0, true)); |
521,301 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName, ManagementPolicyName managementPolicyName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ... | error(new IllegalArgumentException("Parameter managementPolicyName is required and cannot be null.")); |
1,297,947 | public Optional<VirtualFile> findBuckFileForVirtualFile(VirtualFile file) {<NEW_LINE>return mBuckCellManager.findCellByVirtualFile(file).flatMap(cell -> cell.getRootDirectory().map(VirtualFile::getCanonicalPath).map(cellRoot -> {<NEW_LINE>VirtualFile packageDir = file.isDirectory() ? file : file.getParent();<NEW_LINE>w... | findChild(cell.getBuildfileName()); |
936,309 | public void decodeJMTTImage(Bitmap sourceBitmap, CloseableReference<Bitmap> reference) {<NEW_LINE>String url = mImage.getUrl();<NEW_LINE>int scramble_id = 220980;<NEW_LINE>int chapterId = 0;<NEW_LINE>// if (url.contains("/Cimoc/download/72/")){<NEW_LINE>// chapterId = Integer.parseInt(Objects.requireNonNull(StringUtils... | * (x + 1) - remainder; |
1,096,980 | public static boolean isLUHN(String number) {<NEW_LINE>if (number == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>number = StringUtil.reverse(number);<NEW_LINE>int total = 0;<NEW_LINE>for (int i = 0; i < number.length(); i++) {<NEW_LINE>int x = 0;<NEW_LINE>if (((i + 1) % 2) == 0) {<NEW_LINE>x = Integer.parseInt(n... | (i, i + 1)); |
148,399 | public final MatchRecogMatchesAfterSkipContext matchRecogMatchesAfterSkip() throws RecognitionException {<NEW_LINE>MatchRecogMatchesAfterSkipContext _localctx = new MatchRecogMatchesAfterSkipContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 280, RULE_matchRecogMatchesAfterSkip);<NEW_LINE>try {<NEW_LINE>enterOute... | _localctx).i1 = keywordAllowedIdent(); |
374,976 | final DeleteSlotTypeResult executeDeleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSlotTypeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteSlotTypeRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
471,975 | private void createPoiFiltersItems(MapActivity mapActivity, Set<PoiUIFilter> poiFilters, LinearLayout optionsContainer) {<NEW_LINE>LinearLayout item = createToolbarOptionView(false, null, -1, -1, null);<NEW_LINE>if (item != null) {<NEW_LINE>item.findViewById(R.id.route_option_container).setVisibility(View.GONE);<NEW_LI... | PoiUIFilter poiUIFilter = it.next(); |
1,075,475 | public void removeOrderItemFromFullfillmentGroups(Order order, OrderItem orderItem) {<NEW_LINE>List<FulfillmentGroup> fulfillmentGroups = order.getFulfillmentGroups();<NEW_LINE>for (FulfillmentGroup fulfillmentGroup : fulfillmentGroups) {<NEW_LINE>Iterator<FulfillmentGroupItem> itr = fulfillmentGroup.getFulfillmentGrou... | FulfillmentGroupItem fulfillmentGroupItem = itr.next(); |
725,221 | private final Object removeLRU() {<NEW_LINE>int bucketIndex = next[BEFORE_LRU];<NEW_LINE>Object[] bucketValues = values[bucketIndex];<NEW_LINE>Object[] bucketKeys = keys[bucketIndex];<NEW_LINE><MASK><NEW_LINE>numEntries--;<NEW_LINE>// Choose an entry in the LRU bucket to remove. The numDiscards counter is used to<NEW_... | int bucketSize = --bucketSizes[bucketIndex]; |
982,828 | public static SearchTraceAppByNameResponse unmarshall(SearchTraceAppByNameResponse searchTraceAppByNameResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTraceAppByNameResponse.setRequestId(_ctx.stringValue("SearchTraceAppByNameResponse.RequestId"));<NEW_LINE>List<TraceApp> traceApps = new ArrayList<TraceApp>();<NEW_... | ("SearchTraceAppByNameResponse.TraceApps[" + i + "].AppId")); |
59,542 | public void releaseClient(HClient client) throws HectorException {<NEW_LINE>if (cassandraHost.getMaxActive() == 0) {<NEW_LINE>client.close();<NEW_LINE>}<NEW_LINE>boolean open = client.isOpen();<NEW_LINE>if (open) {<NEW_LINE>if (active.get()) {<NEW_LINE>addClientToPoolGently(client);<NEW_LINE>} else {<NEW_LINE>log.info(... | client.toString(), open); |
1,410,564 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.apache.jmeter.report.processor.AbstractSummaryConsumer#updateData<NEW_LINE>* (org.apache.jmeter.report.processor.AbstractSummaryConsumer.SummaryInfo,<NEW_LINE>* org.apache.jmeter.report.core.Sample)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected v... | long elapsedTime = sample.getElapsedTime(); |
1,721,117 | public String[] children(String f) {<NEW_LINE>// NOI18N<NEW_LINE>String fSlash = f.length() > 0 ? f + "/" : "";<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>URL url = new URL(baseURL, Utilities<MASK><NEW_LINE>URLConnection conn = new ConnectionBuilder().job(job).url(url).timeout(TIMEOUT).connection();<NEW_LINE>String con... | .uriEncode(fSlash) + "*plain*"); |
1,312,999 | public void fireSelectionChanged(EditorComposite newSelectedComposite) {<NEW_LINE>final Trinity<VirtualFile, FileEditor, FileEditorProvider> oldData = extract(SoftReference.dereference(myLastSelectedComposite));<NEW_LINE>final Trinity<VirtualFile, FileEditor, FileEditorProvider> newData = extract(newSelectedComposite);... | newData.second.getUIComponent()); |
366,829 | public double distance(SparseNumberVector v1, SparseNumberVector v2) {<NEW_LINE>// Get the bit masks<NEW_LINE>double accu = 0.;<NEW_LINE>int i1 = v1.iter(), i2 = v2.iter();<NEW_LINE>while (v1.iterValid(i1) && v2.iterValid(i2)) {<NEW_LINE>final int d1 = v1.iterDim(i1), d2 = v2.iterDim(i2);<NEW_LINE>if (d1 < d2) {<NEW_LI... | FastMath.pow(val, p); |
932,921 | public void testPurchaseValueOfSecurityPositionWithTransfers() throws IOException {<NEW_LINE>Client client = ClientFactory.load(// $NON-NLS-1$<NEW_LINE>IssueCurrencyGainsRoundingError.class.// $NON-NLS-1$<NEW_LINE>getResourceAsStream("IssueCurrencyGainsRoundingError.xml"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Interval // ... | .getValue(CategoryType.EARNINGS)); |
1,339,528 | protected void addHighlights(@Nonnull Map<TextRange, TextAttributes> ranges, @Nonnull Editor editor, @Nonnull Collection<RangeHighlighter> highlighters, @Nonnull HighlightManager highlightManager) {<NEW_LINE>final TextAttributes attributes = EditorColorsManager.getInstance().getGlobalScheme().getAttributes(EditorColors... | int startOffset = marker.getStartOffset(); |
1,284,967 | public static RowBaseIterator showInstances() {<NEW_LINE>MycatRouterConfig routerConfig = MetaClusterCurrent.wrapper(MycatRouterConfig.class);<NEW_LINE>ReplicaSelectorManager replicaSelectorRuntime = MetaClusterCurrent.wrapper(ReplicaSelectorManager.class);<NEW_LINE>ResultSetBuilder resultSetBuilder = ResultSetBuilder.... | addColumnInfo("ALIVE", JDBCType.VARCHAR); |
150,128 | public void applyToIndex(Index index) {<NEW_LINE>if (prefix.isPresent()) {<NEW_LINE>index.<MASK><NEW_LINE>}<NEW_LINE>for (String alias : aliases) {<NEW_LINE>index.addAlias(alias);<NEW_LINE>}<NEW_LINE>if (stemming.isPresent()) {<NEW_LINE>index.setStemming(Stemming.get(stemming.get()));<NEW_LINE>}<NEW_LINE>if (type.isPre... | setPrefix(prefix.get()); |
548,394 | private static void adjustScrollPaneSize(JScrollPane sp, JEditorPane editorPane) {<NEW_LINE>int height;<NEW_LINE>// logger.fine("createSingleLineEditor(): editorPane's margin = "+editorPane.getMargin());<NEW_LINE>// logger.fine("createSingleLineEditor(): editorPane's insets = "+editorPane.getInsets());<NEW_LINE>Dimensi... | "createSingleLineEditor(): editor UI's line height = " + eui.getLineHeight()); |
1,723,112 | private void renderCategoryMeasurements(final TimedOperationCategory category, final Map<String, TimedResult> labeledMeasurements, final Writer writer) throws IOException {<NEW_LINE>renderHeader(category.displayName(), writer);<NEW_LINE>final TimedResult grandTotal = new TimedResult();<NEW_LINE>final TreeSet<Map.Entry<... | displayName(), grandTotal, writer); |
639,061 | protected <T extends JpaObject> String idleQueryName(Business business, String name, String excludeId) throws Exception {<NEW_LINE>if (StringUtils.isEmpty(name)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>List<String> <MASK><NEW_LINE>list.add(name);<NEW_LINE>for (int i = 1; i < 99; i++) {<NEW_LINE>list.add(name + String... | list = new ArrayList<>(); |
1,117,228 | static ShapeFill parse(JsonReader reader, LottieComposition composition) throws IOException {<NEW_LINE>AnimatableColorValue color = null;<NEW_LINE>boolean fillEnabled = false;<NEW_LINE>AnimatableIntegerValue opacity = null;<NEW_LINE>String name = null;<NEW_LINE>int fillTypeInt = 1;<NEW_LINE>boolean hidden = false;<NEW_... | .WINDING : Path.FillType.EVEN_ODD; |
283,962 | private void saveOrUpdateTop10UnstableDomain(List<DomainStatistics> domainList, String zkAddr) {<NEW_LINE>try {<NEW_LINE>domainList = DashboardServiceHelper.sortDomainByShardingCount(domainList);<NEW_LINE>List<DomainStatistics> top10UnstableDomain = domainList.subList(0, domainList.size() > 9 ? 10 : domainList.size());... | e.getMessage(), e); |
834,964 | public void generateProjectBuildScript(String projectName, InitSettings settings, BuildScriptBuilder buildScriptBuilder) {<NEW_LINE>super.generateProjectBuildScript(projectName, settings, buildScriptBuilder);<NEW_LINE>if ("app".equals(projectName)) {<NEW_LINE>buildScriptBuilder.block(null, "application", b -> {<NEW_LIN... | (settings, mainClass), false); |
1,132,369 | final GetApplicationComponentStrategiesResult executeGetApplicationComponentStrategies(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getApplicationComponentStrategiesRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,172,479 | final UpdateResolverRuleResult executeUpdateResolverRule(UpdateResolverRuleRequest updateResolverRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResolverRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateResolverR... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
274,539 | public static boolean openDocument(Lookup.Provider provider, int line, int column, Line.ShowOpenType openType, Line.ShowVisibilityType visibilityType) {<NEW_LINE>assert provider != null;<NEW_LINE>LineCookie lc = provider.getLookup().lookup(LineCookie.class);<NEW_LINE>if ((lc != null) && (line >= 0) && (column >= -1)) {... | getLineSet().getCurrent(0); |
271,513 | private static RecursiveFilesystemTraversalValue resultForDirectory(TraversalRequest traversal, FileInfo rootInfo, ImmutableList<RecursiveFilesystemTraversalValue> subdirTraversals) {<NEW_LINE>// Collect transitive closure of files in subdirectories.<NEW_LINE>NestedSetBuilder<ResolvedFile<MASK><NEW_LINE>for (RecursiveF... | > paths = NestedSetBuilder.stableOrder(); |
1,543,467 | public static final void crop(final Response responseToCrop, final BlockOption requestedBlock, int maxTcpBertBulkBlocks) {<NEW_LINE>if (responseToCrop == null) {<NEW_LINE>throw new NullPointerException("response message must not be null");<NEW_LINE>} else if (requestedBlock == null) {<NEW_LINE>throw new NullPointerExce... | debug("cropping response body [size={}] to block {}", bodySize, requestedBlock); |
684,715 | public GeneratorResult generateJava() {<NEW_LINE>CompilationUnit cu = new CompilationUnit();<NEW_LINE>if (!pkg.isEmpty()) {<NEW_LINE>cu.setPackageDeclaration(pkg);<NEW_LINE>}<NEW_LINE>ClassOrInterfaceDeclaration clz = cu.addClass(className);<NEW_LINE>clz.addAnnotation(new SingleMemberAnnotationExpr(new Name("io.fabric8... | ClassOrInterfaceType().setName("java.lang.Void"); |
1,577,527 | public BackendAuthAppleProviderConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BackendAuthAppleProviderConfig backendAuthAppleProviderConfig = new BackendAuthAppleProviderConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | class).unmarshall(context)); |
612,519 | public MLModelGroup apply(@Nonnull final EntityResponse entityResponse) {<NEW_LINE>final MLModelGroup result = new MLModelGroup();<NEW_LINE>result.setUrn(entityResponse.getUrn().toString());<NEW_LINE>result.setType(EntityType.MLMODEL_GROUP);<NEW_LINE><MASK><NEW_LINE>MappingHelper<MLModelGroup> mappingHelper = new Mappi... | EnvelopedAspectMap aspectMap = entityResponse.getAspects(); |
430,533 | public static Point2D_F64 renderPixel(Se3_F64 worldToCamera, double fx, double skew, double cx, double fy, double cy, Point3D_F64 X, @Nullable Point2D_F64 pixel) {<NEW_LINE>Point3D_F64 X_cam = new Point3D_F64();<NEW_LINE>SePointOps_F64.transform(worldToCamera, X, X_cam);<NEW_LINE>// see if it's behind the camera<NEW_LI... | = X_cam.y / X_cam.z; |
577,900 | public void readConfiguration(Configuration conf) {<NEW_LINE>Property excludedMods = conf.get("blueprints", "excludedMods", new String[0], "mods that should be excluded from the builder.").setLanguageKey("config.blueprints.excludedMods").setRequiresMcRestart(true);<NEW_LINE>Property excludedBlocks = conf.get("blueprint... | ("config.blueprints.excludedBlocks").setRequiresMcRestart(true); |
817,445 | private static // range of bits and a value for those bits<NEW_LINE>PatternBlock buildBigBlock(int size, int bitstart, int bitend, long value) {<NEW_LINE>int startbit = 8 * size - 1 - bitend;<NEW_LINE>int endbit = 8 * size - 1 - bitstart;<NEW_LINE>PatternBlock block = null;<NEW_LINE>while (endbit >= startbit) {<NEW_LIN... | >>>= (endbit - tmpstart + 1); |
334,949 | protected void writeFields(JavaWriter writer) throws IOException {<NEW_LINE>for (Map.Entry<String, FieldData> entry : getIterator()) {<NEW_LINE>writer.emitStatement("instance.%s__IsList = %s", entry.getKey(), <MASK><NEW_LINE>String parseTypeString;<NEW_LINE>if (entry.getValue().mParseType == TypeUtils.ParseType.PARSABL... | entry.getValue().mIsList); |
1,086,439 | final DeleteVocabularyResult executeDeleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVocabularyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteVocabulary"); |
795,935 | public void marshall(GetLoadBalancerMetricDataRequest getLoadBalancerMetricDataRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getLoadBalancerMetricDataRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall... | getLoadBalancerMetricDataRequest.getLoadBalancerName(), LOADBALANCERNAME_BINDING); |
999,493 | final DeletePackagingConfigurationResult executeDeletePackagingConfiguration(DeletePackagingConfigurationRequest deletePackagingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePackagingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,045,350 | static public void writeFile(String path, String encoding, String data, final boolean append, final Promise promise) {<NEW_LINE>try {<NEW_LINE>int written = 0;<NEW_LINE>File f = new File(path);<NEW_LINE>File dir = f.getParentFile();<NEW_LINE>if (!dir.exists())<NEW_LINE>dir.mkdirs();<NEW_LINE>FileOutputStream fout = new... | write(buffer, 0, read); |
1,680,563 | // assumes that the path already has EPSILON as the last element.<NEW_LINE>public static void addOnePathToGraph(List path, double count, int markovOrder, TransducerGraph graph) {<NEW_LINE>Object source = graph.getStartNode();<NEW_LINE>for (int j = 0; j < path.size(); j++) {<NEW_LINE>Object input = path.get(j);<NEW_LINE... | output = Double.valueOf(count); |
425,919 | public void onEvents(Player player, Events events) {<NEW_LINE>if (events.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>maybeAddSessions(events);<NEW_LINE>for (String session : playbackStatsTrackers.keySet()) {<NEW_LINE>Pair<EventTime, Boolean> eventTimeAndBelongsToPlayback = findBestEventTime(events, session);<NE... | hasEvent(events, session, EVENT_DOWNSTREAM_FORMAT_CHANGED); |
131,034 | public SQLStatement parseWith() {<NEW_LINE>SQLWithSubqueryClause with = this.parseWithQuery();<NEW_LINE>// PGWithClause with = this.parseWithClause();<NEW_LINE>if (lexer.token() == Token.INSERT) {<NEW_LINE>PGInsertStatement stmt = this.parseInsert();<NEW_LINE>stmt.setWith(with);<NEW_LINE>return stmt;<NEW_LINE>}<NEW_LIN... | PGSelectStatement stmt = this.parseSelect(); |
729,918 | public void onBlockDispense(BlockDispenseEvent event) {<NEW_LINE><MASK><NEW_LINE>// Simulate right click event as players have it<NEW_LINE>if (dispenserBlock.getType() == Material.DISPENSER) {<NEW_LINE>Cause cause = create(event.getBlock());<NEW_LINE>ItemStack item = event.getItem();<NEW_LINE>if (Events.fireToCancel(ev... | Block dispenserBlock = event.getBlock(); |
1,260,114 | final DeleteWirelessGatewayTaskResult executeDeleteWirelessGatewayTask(DeleteWirelessGatewayTaskRequest deleteWirelessGatewayTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWirelessGatewayTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | invoke(request, responseHandler, executionContext); |
87,037 | public List<OrderEntry> createOrderEntries(@Nonnull ModifiableModuleRootLayer layer, @Nonnull VirtualFile[] value) {<NEW_LINE>List<VirtualFile> chosenFiles = FileChooserUtil.getChosenFiles(myFileChooserDescriptor, Arrays.asList(value));<NEW_LINE>if (chosenFiles.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_... | = new ArrayList<LibraryRootsComponentDescriptor>(); |
568,860 | private void grantDocActionAccess(@NonNull final I_AD_Role_PermRequest request) {<NEW_LINE>final DocTypeId docTypeId = DocTypeId.ofRepoId(request.getC_DocType_ID());<NEW_LINE>final String docAction = request.getDocAction();<NEW_LINE>final ADRefListItem docActionItem = Services.get(IADReferenceDAO.class).retrieveListIte... | assumeNotNull(docActionItem, "docActionItem is missing for {}", docAction); |
1,784,276 | private static void loadMetadata(FeedItem item, DocumentFile file, Context context) {<NEW_LINE>MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();<NEW_LINE>mediaMetadataRetriever.setDataSource(context, file.getUri());<NEW_LINE>String dateStr = mediaMetadataRetriever.extractMetadata(MediaMetada... | VorbisCommentMetadataReader reader = new VorbisCommentMetadataReader(inputStream); |
522,552 | private static Substitutions.EspressoRootNodeFactory createJniRootNodeFactory(Supplier<EspressoMethodNode> methodNodeSupplier, Method targetMethod) {<NEW_LINE>return new Substitutions.EspressoRootNodeFactory() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public EspressoRootNode createNodeIfValid(Method methodToSubstitute, b... | toDisplayString(givenLoader, false) + "\n"; |
749,067 | private FileIO io(String location) {<NEW_LINE>String impl = implFromLocation(location);<NEW_LINE>FileIO io = ioInstances.get(impl);<NEW_LINE>if (io != null) {<NEW_LINE>return io;<NEW_LINE>}<NEW_LINE>synchronized (ioInstances) {<NEW_LINE>// double check while holding the lock<NEW_LINE>io = ioInstances.get(impl);<NEW_LIN... | loadFileIO(FALLBACK_IMPL, properties, conf); |
749,561 | public void testDeliveryMultipleMsgsClassicApi_Tcp(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>QueueConnection con = jmsQCFTCP.createQueueConnection();<NEW_LINE>con.start();<NEW_LINE>QueueSession sessionSender = con.createQueueSession(false,... | TextMessage) rec.receive(30000); |
1,478,248 | public static CheckUpgradeVersionResponse unmarshall(CheckUpgradeVersionResponse checkUpgradeVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>checkUpgradeVersionResponse.setRequestId(_ctx.stringValue("CheckUpgradeVersionResponse.RequestId"));<NEW_LINE>checkUpgradeVersionResponse.setMessage(_ctx.stringValue("CheckU... | ("CheckUpgradeVersionResponse.Patches[" + i + "].Url")); |
595,227 | protected void consumeDurability(ItemStack stack, Level world, @Nullable BlockState state, @Nullable BlockPos pos, LivingEntity living) {<NEW_LINE>Preconditions.checkArgument((pos == null) == (state == null));<NEW_LINE>if (state == null || state.getDestroySpeed(world, pos) != 0.0f) {<NEW_LINE>int dmg = state == null ||... | shader = ShaderRegistry.getStoredShaderAndCase(stack); |
1,566,618 | final ListThingPrincipalsResult executeListThingPrincipals(ListThingPrincipalsRequest listThingPrincipalsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThingPrincipalsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
543,036 | public void liftEmbargo(Context context, Item item) throws SQLException, AuthorizeException, IOException {<NEW_LINE>// Since 3.0 the lift process for all embargoes is performed through the dates<NEW_LINE>// on the authorization process (see DS-2588)<NEW_LINE>// lifter.liftEmbargo(context, item);<NEW_LINE>itemService.cl... | "date", "available", Item.ANY); |
82,631 | public static GetMetaTableListByCategoryResponse unmarshall(GetMetaTableListByCategoryResponse getMetaTableListByCategoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaTableListByCategoryResponse.setRequestId(_ctx.stringValue("GetMetaTableListByCategoryResponse.RequestId"));<NEW_LINE>getMetaTableListByCategoryRe... | ("GetMetaTableListByCategoryResponse.Data.TableGuidList[" + i + "]")); |
1,758,934 | protected void updateClientSystemMessages(Locale locale) {<NEW_LINE>SystemMessages msgs = new SystemMessages();<NEW_LINE>Locale actualLocale = locale;<NEW_LINE>if (getApp() != null) {<NEW_LINE>Locale appLocale = getApp().getLocale();<NEW_LINE>if (appLocale != null && !Objects.equals(locale, appLocale)) {<NEW_LINE>log.d... | messages.getMainMessage("sessionExpiredErrorCaption", actualLocale); |
323,581 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.<MASK><NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) != 0)) {<NEW_LINE>output.writeInt32(2, quantifierSpanBegin_);<NEW_LINE... | writeString(output, 1, name_); |
1,633,738 | public void marshall(PublicEndpoint publicEndpoint, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (publicEndpoint == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(publicEndpoint.getAddress(), ADDRESS_BINDI... | publicEndpoint.getAttributes(), ATTRIBUTES_BINDING); |
1,396,824 | private static void printNestedObjectField(PrintStream out, int tabLevel, J9ClassPointer localClazz, U8Pointer dataStart, J9ClassPointer fromClass, J9ObjectFieldOffset objectFieldOffset, long address, String[] nestingHierarchy, J9ClassPointer containerClazz) throws CorruptDataException {<NEW_LINE>J9ROMFieldShapePointer... | ), fieldOffset.longValue()); |
1,784,182 | public Sequence execute(final StaticContext sctx, final QueryContext ctx, final Sequence[] args) {<NEW_LINE>final JsonDBItem item = (JsonDBItem) args[0];<NEW_LINE>final var resourceManager = item.getTrx().getResourceManager();<NEW_LINE>final Optional<RevisionReferencesNode> indexNode;<NEW_LINE>try (final var pageReadOn... | rtx, item.getCollection()); |
676,516 | final ListAttachedGroupPoliciesResult executeListAttachedGroupPolicies(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAttachedGroupPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | invoke(request, responseHandler, executionContext); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.