idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
800,086 | public void marshall(MediaCapturePipeline mediaCapturePipeline, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mediaCapturePipeline == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mediaCapturePipeline.get... | mediaCapturePipeline.getCreatedTimestamp(), CREATEDTIMESTAMP_BINDING); |
1,637,314 | public Request<ModifyCurrentDBClusterCapacityRequest> marshall(ModifyCurrentDBClusterCapacityRequest modifyCurrentDBClusterCapacityRequest) {<NEW_LINE>if (modifyCurrentDBClusterCapacityRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<Modif... | (modifyCurrentDBClusterCapacityRequest.getTimeoutAction())); |
411,962 | public com.amazonaws.services.workspacesweb.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.workspacesweb.model.ThrottlingException throttlingException = new com.amazonaws.services.workspacesweb.model.ThrottlingException(null);<NEW_LINE... | class).unmarshall(context)); |
1,559,032 | final BatchDisassociateScramSecretResult executeBatchDisassociateScramSecret(BatchDisassociateScramSecretRequest batchDisassociateScramSecretRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDisassociateScramSecretRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
756,798 | public static void convert(GrayF32 input, GrayS64 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = input.getIndex(0, y);<NEW_LINE>int indexDst = <MASK... | output.getIndex(0, y); |
1,676,840 | private Tuple<Manifest, Metadata> loadFullStateBWC() throws IOException {<NEW_LINE>Map<Index, Long> indices = new HashMap<>();<NEW_LINE>Metadata.Builder metadataBuilder;<NEW_LINE>Tuple<Metadata, Long> metadataAndGeneration = Metadata.FORMAT.loadLatestStateWithGeneration(logger, namedXContentRegistry, nodeEnv.nodeDataPa... | metadataBuilder = Metadata.builder(globalMetadata); |
212,573 | protected static void writeSBTreeRidbag(BytesContainer bytes, ORidBag ridbag, UUID ownerUuid) {<NEW_LINE>((OSBTreeRidBag) ridbag.getDelegate()).applyNewEntries();<NEW_LINE>OBonsaiCollectionPointer pointer = ridbag.getPointer();<NEW_LINE>final ORecordSerializationContext context;<NEW_LINE>boolean remoteMode = ODatabaseR... | bytes, ridbag.size()); |
1,831,552 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static int suspendPolicy(com.sun.jdi.request.EventRequest a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda... | Mirror) a).virtualMachine(); |
1,350,703 | private static List<ResolveInfo> queryEmailApps(@NonNull Context context, Boolean excludeCategoryEmailApps) {<NEW_LINE>PackageManager packageManager = context.getPackageManager();<NEW_LINE>List<<MASK><NEW_LINE>// Get all apps with category email<NEW_LINE>Intent emailAppIntent = Intent.makeMainSelectorActivity(Intent.AC... | ResolveInfo> intentsInfoList = new ArrayList(); |
1,367 | private static void fastutilMap() {<NEW_LINE>Int2BooleanMap int2BooleanMap = new Int2BooleanOpenHashMap();<NEW_LINE>int2BooleanMap.put(1, true);<NEW_LINE>int2BooleanMap.put(7, false);<NEW_LINE><MASK><NEW_LINE>boolean value = int2BooleanMap.get(1);<NEW_LINE>// Lambda style iteration<NEW_LINE>Int2BooleanMaps.fastForEach(... | int2BooleanMap.put(4, true); |
1,326,403 | /*<NEW_LINE>* @see com.sitewhere.rdb.spi.ITransactionCallback#process()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public RdbArea process() throws SiteWhereException {<NEW_LINE>RdbArea existing = getEntityManagerProvider().findById(id, RdbArea.class);<NEW_LINE>if (existing != null) {<NEW_LINE>// Look up area type if updat... | ErrorCode.InvalidAreaToken, ErrorLevel.ERROR); |
232,302 | final GetLoadBalancerTlsCertificatesResult executeGetLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest getLoadBalancerTlsCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoadBalancerTlsCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
771,625 | public Map<String, Object> toMap() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("active", this.getActive());<NEW_LINE>map.put("actualCompanyId", this.getActualCompanyId());<NEW_LINE>map.put("birthday", this.g... | "modificationDate", this.getModificationDate()); |
1,372,095 | private void findEnumConstantsFromSwithStatement(char[] enumConstantName, SwitchStatement switchStatement) {<NEW_LINE>TypeBinding expressionType = switchStatement.expression.resolvedType;<NEW_LINE>if (expressionType != null && expressionType.isEnum()) {<NEW_LINE>ReferenceBinding enumType = (ReferenceBinding) expression... | ), alreadyUsedConstants, alreadyUsedConstantCount, false); |
119,980 | public void renderForeground(PoseStack matrix, int mouseX, int mouseY) {<NEW_LINE>super.renderForeground(matrix, mouseX, mouseY);<NEW_LINE>FREQ frequency = frequencySelector.getFrequency();<NEW_LINE>if (frequency == null) {<NEW_LINE>MutableComponent noneComponent = MekanismLang.NONE.translateColored(EnumColor.DARK_RED)... | yStart + 87, titleTextColor()); |
887,859 | public List<HtmlTagAttr> attrs() {<NEW_LINE>List<HtmlTagAttr> result = new ArrayList<JavaDocParser.HtmlTagAttr>();<NEW_LINE>while (true) {<NEW_LINE>int start = idx;<NEW_LINE>SourceString key = ident();<NEW_LINE>if (key == null) {<NEW_LINE>idx = start;<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>optWhitespace();<NEW_LIN... | , value, start, idx)); |
1,680,255 | public void load() {<NEW_LINE>water = new Liquid("water", Color.valueOf("596ab8")) {<NEW_LINE><NEW_LINE>{<NEW_LINE>heatCapacity = 0.4f;<NEW_LINE>alwaysUnlocked = true;<NEW_LINE>effect = StatusEffects.wet;<NEW_LINE>}<NEW_LINE>};<NEW_LINE>slag = new Liquid("slag", Color.valueOf("ffa166")) {<NEW_LINE><NEW_LINE>{<NEW_LINE>... | ("f0511d").a(0.4f); |
1,620,544 | private static Result<MqttSubscribePayload> decodeSubscribePayload(ByteBuf buffer, int bytesRemainingInVariablePart) {<NEW_LINE>final List<MqttTopicSubscription> subscribeTopics = new ArrayList<MqttTopicSubscription>();<NEW_LINE>int numberOfBytesConsumed = 0;<NEW_LINE>while (numberOfBytesConsumed < bytesRemainingInVari... | optionByte & 0x30) >> 4); |
1,755,686 | private static AudioFormat convertAudioFormat(javax.sound.sampled.AudioFormat audioFormat) {<NEW_LINE>String container = AudioFormat.CONTAINER_WAVE;<NEW_LINE>String codec = audioFormat.getEncoding().toString();<NEW_LINE>Boolean bigEndian = Boolean.valueOf(audioFormat.isBigEndian());<NEW_LINE>// In bytes<NEW_LINE>int fr... | : Integer.valueOf(bitsPerFrame)); |
1,574,372 | private Map<String, Object> convertReportIssue(ReportIssue reportIssue) {<NEW_LINE>Map<String, Object> root = new HashMap<>();<NEW_LINE>root.put("reportedOnDiff", reportIssue.isReportedOnDiff());<NEW_LINE>root.put(<MASK><NEW_LINE>root.put("componentKey", reportIssue.getIssue().getComponentKey());<NEW_LINE>root.put("sev... | "url", reportIssue.getUrl()); |
1,394,104 | final ListApplicationsResult executeListApplications(ListApplicationsRequest listApplicationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApplicationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
377,740 | final CompleteMultipartUploadResult executeCompleteMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(completeMultipartUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
513,973 | static String toCommandLineFormat(String cmdDoc) {<NEW_LINE>// Replace html <br> tags with line breaks<NEW_LINE>cmdDoc = cmdDoc.replaceAll("(<br>|<br[\\s]*/>)", "\n") + "\n";<NEW_LINE>// Replace other links <a href=".*">s with human readable links<NEW_LINE>cmdDoc = <MASK><NEW_LINE>// Delete other html tags<NEW_LINE>cmd... | cmdDoc.replaceAll("\\<a href=\"([^\"]+)\">[^\\<]*\\</a\\>", "$1"); |
764,802 | private void addCSSClasses(SVGPlot svgp) {<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>final ColorLibrary colors = style.getColorSet(StyleLibrary.PLOT);<NEW_LINE>for (int i = 0; i < tree.getHeight(); i++) {<NEW_LINE>if (!svgp.getCSSClassManager().contains(INDEX + i)) {<NEW_LINE>CSSClass cls ... | ) / tree.getHeight()); |
1,557,860 | private List<RecordQueryResult.Record> findRetryRecords(String subject, BackupMessageMeta meta, byte type) {<NEW_LINE>final List<RecordQueryResult.Record> records = Lists.newArrayList();<NEW_LINE>try {<NEW_LINE>final long sequence = meta.getSequence();<NEW_LINE>final String sequenceId = generateDecimalFormatKey19(seque... | brokerGroupId = dicService.name2Id(brokerGroup); |
1,120,161 | public void onBindViewHolder(ViewHolder holder, int position) {<NEW_LINE>Wrapper wrapper = mItems.get(holder.getAdapterPosition());<NEW_LINE>if (wrapper.item instanceof IMessage) {<NEW_LINE>((BaseMessageViewHolder) holder).mPosition = holder.getAdapterPosition();<NEW_LINE>((BaseMessageViewHolder) holder).mContext = thi... | holder.onBind(wrapper.item); |
264,690 | public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance) {<NEW_LINE>if (relation.size() < k) {<NEW_LINE>throw new IllegalArgumentException("Cannot choose k=" + k + " means from N=" + relation.size() + " < k objects.");<NEW_LINE>}<NEW_LINE>DBIDs ids = relat... | putDouble(best, Double.NaN); |
1,187,018 | private static boolean sprintableAscend(IPlayerContext ctx, MovementTraverse current, MovementAscend next, IMovement nextnext) {<NEW_LINE>if (!Baritone.settings().sprintAscends.value) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!current.getDirection().equals(next.getDirection().down())) {<NEW_LINE>return false;<NE... | 2)).getBlock()); |
1,445,639 | public int processBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff) {<NEW_LINE>if (fpeParameters == null) {<NEW_LINE>throw new IllegalStateException("FPE engine not initialized");<NEW_LINE>}<NEW_LINE>if (length < 0) {<NEW_LINE>throw new IllegalArgumentException("input length cannot be negative");<NE... | inOff, length, outBuf, outOff); |
670,609 | private File extract(String module, String dirName, String lang, String code) throws IOException {<NEW_LINE>String dirNamePattern = dirName.replaceAll("/|\\\\", "(/|\\\\\\\\)");<NEW_LINE>List<URL> files = new ArrayList<>();<NEW_LINE>files.addAll(MetaScanner.findAll(module, dirNamePattern, code + "(-+.*)?" + CONFIG_PATT... | openStream(), tmp, name); |
357,481 | public List<AppListModel> load(@NonNull CategoryIndex index) {<NEW_LINE>AppListItemDescriptionComposer composer = new AppListItemDescriptionComposer(context);<NEW_LINE>ThanosManager thanos = ThanosManager.from(context);<NEW_LINE>if (!thanos.isServiceInstalled()) {<NEW_LINE>return Lists.newArrayListWithCapacity(0);<NEW_... | appInfo.compareTo(o2.appInfo); |
1,597,042 | private void addQuickComponentHotkeys(JTree treevar) {<NEW_LINE><MASK><NEW_LINE>InputMap inputMap = treevar.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);<NEW_LINE>KeyStroke[] keyStrokes = new KeyStroke[] { KeyStrokes.CTRL_0, KeyStrokes.CTRL_1, KeyStrokes.CTRL_2, KeyStrokes.CTRL_3, KeyStrokes.CTRL_4, KeyStrokes.CTRL_5... | Action quickComponent = new QuickComponent("Quick Component"); |
1,568,033 | public Future<Void> restart(Reconciliation reconciliation, Pod pod, long timeoutMs) {<NEW_LINE>long pollingIntervalMs = 1_000;<NEW_LINE>String namespace = pod.getMetadata().getNamespace();<NEW_LINE>String podName = pod<MASK><NEW_LINE>Promise<Void> deleteFinished = Promise.promise();<NEW_LINE>LOGGER.infoCr(reconciliatio... | .getMetadata().getName(); |
1,577,535 | public ClusterPrototypeMergeHistory run(ArrayDBIDs ids, ClusterDistanceMatrix mat, ClusterMergeHistoryBuilder builder, DistanceQuery<?> dq) {<NEW_LINE>final int size = mat.size;<NEW_LINE>this.mat = mat;<NEW_LINE>this.builder = builder;<NEW_LINE>this.end = size;<NEW_LINE>this.clusters = new Int2ObjectOpenHashMap<>(size)... | (ClusterPrototypeMergeHistory) builder.complete(); |
1,116,942 | public StructObjectInspector initialize(ObjectInspector[] argOIs) throws UDFArgumentException {<NEW_LINE>if (argOIs.length != 2) {<NEW_LINE>throw new UDFArgumentException("conditional_emit takes 2 arguments, array<boolean>, array<string>");<NEW_LINE>}<NEW_LINE>if (argOIs[0].getCategory() != Category.LIST) {<NEW_LINE>t... | = (ListObjectInspector) argOIs[0]; |
30,061 | public static void startFragmentInternal(FragmentActivity activity, Fragment fragment, String tag, @Nullable View sharedElement, @Nullable String sharedElementName) {<NEW_LINE>FragmentTransaction transaction = activity.getSupportFragmentManager().beginTransaction();<NEW_LINE>if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPO... | transform.setFadeMode(MaterialContainerTransform.FADE_MODE_THROUGH); |
1,557,484 | private static void visitFieldGetterSetterInitializer(PersistentProperty<?> property, MethodVisitor mv, List<Class<?>> entityClasses, String internalClassName) {<NEW_LINE>// field = <entity>.class.getDeclaredField()<NEW_LINE>Field field = property.getField();<NEW_LINE>if (field != null) {<NEW_LINE>mv.visitVarInsn(ALOAD... | visitLdcInsn(field.getName()); |
647,898 | public CreateGlobalTableResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateGlobalTableResult createGlobalTableResult = new CreateGlobalTableResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | ().unmarshall(context)); |
270,933 | public static ModifyHichinaDomainDNSResponse unmarshall(ModifyHichinaDomainDNSResponse modifyHichinaDomainDNSResponse, UnmarshallerContext _ctx) {<NEW_LINE>modifyHichinaDomainDNSResponse.setRequestId(_ctx.stringValue("ModifyHichinaDomainDNSResponse.RequestId"));<NEW_LINE>List<String> originalDnsServers <MASK><NEW_LINE>... | = new ArrayList<String>(); |
774,214 | public IExpression visitDynamicParam(RexDynamicParam dynamicParam) {<NEW_LINE>if (dynamicParam.getIndex() == -3) {<NEW_LINE>DynamicParamExpression dynamicParamExpression = null;<NEW_LINE>if (dynamicParam.getSubqueryKind() == null) {<NEW_LINE>dynamicParamExpression = new DynamicParamExpression(dynamicParam.getRel());<NE... | dynamicParam.getSubqueryOp(), iExpressionList); |
622,474 | public void generate(DdlWrite writer, CreateTable createTable) {<NEW_LINE>reset();<NEW_LINE>String tableName = createTable.getName();<NEW_LINE>List<Column> columns = createTable.getColumn();<NEW_LINE>List<Column> pk = determinePrimaryKeyColumns(columns);<NEW_LINE>DdlIdentity identity = DdlIdentity.NONE;<NEW_LINE>if ((p... | writer, createTable.getName()); |
1,022,668 | private Object commitChanges0() {<NEW_LINE>int currentIndex = editorsCombo.getSelectedIndex();<NEW_LINE>PropertyEditor currentEditor = currentIndex > -1 ? allEditors[currentIndex] : null;<NEW_LINE>if (currentEditor != null) {<NEW_LINE>// assuming the editor already has the new value set through PropertyEnv listener<NEW... | .getPropertyEnv().getBeans(); |
706,030 | protected List<Contentlet> findContentlets(final List<String> inodes) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>final HashMap<String, Contentlet> <MASK><NEW_LINE>for (String i : inodes) {<NEW_LINE>final Contentlet contentlet = contentletCache.get(i);<NEW_LINE>if (contentlet != null && ... | conMap = new HashMap<>(); |
1,147,975 | // -------------------------------------------------------------------------<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public MarketDataRequirements requirements(ReferenceData refData) {<NEW_LINE>// determine market data requirements of the function<NEW_LINE>FunctionRequirements functionRequirements = function.r... | cell.reportingCurrency(this, refData); |
1,822,927 | private BlockNode processMonitorEnter(IRegion curRegion, BlockNode block, InsnNode insn, RegionStack stack) {<NEW_LINE>SynchronizedRegion synchRegion = new SynchronizedRegion(curRegion, insn);<NEW_LINE>synchRegion.getSubBlocks().add(block);<NEW_LINE>curRegion.getSubBlocks().add(synchRegion);<NEW_LINE>Set<BlockNode> exi... | insnBlock.add(AFlag.DONT_GENERATE); |
1,751,823 | public Result preprocessEnter(@Nonnull final PsiFile file, @Nonnull final Editor editor, @Nonnull final Ref<Integer> caretOffset, @Nonnull final Ref<Integer> caretAdvance, @Nonnull final DataContext dataContext, final EditorActionHandler originalHandler) {<NEW_LINE>Result res = shouldSkipWithResult(file, editor, dataCo... | Document document = editor.getDocument(); |
577,151 | public boolean apply(Game game, Ability source, Ability abilityToModify) {<NEW_LINE>int reduceAmount;<NEW_LINE>if (game.inCheckPlayableState()) {<NEW_LINE>// checking state (search max possible targets)<NEW_LINE>reduceAmount = getMaxPossibleTargetCreatures(abilityToModify, game);<NEW_LINE>} else {<NEW_LINE>// real cast... | add(permanent.getId()); |
1,169,695 | public ListResourcesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResourcesResult listResourcesResult = new ListResourcesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context... | String currentParentElement = context.getCurrentParentElement(); |
809,815 | public void explain(int p, ExplanationForSignedClause explanation) {<NEW_LINE>IntIterableRangeSet set;<NEW_LINE>int m;<NEW_LINE>if (explanation.readVar(p) == vars[0]) {<NEW_LINE>// case a. (see javadoc)<NEW_LINE>m = explanation.readDom(vars[1]).min();<NEW_LINE>set = explanation.complement(vars[1]);<NEW_LINE>set.retainB... | .complement(vars[0]); |
1,200,508 | protected static Configuration restrictTo(final Configuration config, final String... fixedUmbrella) {<NEW_LINE>Preconditions.checkArgument(fixedUmbrella != null && fixedUmbrella.length > 0, "No fixedUmbrella is given");<NEW_LINE>return new Configuration() {<NEW_LINE><NEW_LINE>private String[] concat(String... others) ... | join, 0, fixedUmbrella.length); |
693,635 | private MessageExtBrokerInner toMessageExtBrokerInner(MessageExt msgExt) {<NEW_LINE>TopicConfig topicConfig = this.getBrokerController().getTopicConfigManager().createTopicOfTranCheckMaxTime(TCMT_QUEUE_NUMS, PermName.PERM_READ | PermName.PERM_WRITE);<NEW_LINE>int queueId = ThreadLocalRandom.current().nextInt(99999999) ... | setTopic(topicConfig.getTopicName()); |
557,480 | public ApiResponse<RegistrationInformation> registrationRegisterAccountWithHttpInfo(String partnerId, String salepackageId, String retailerId, String trialId, String campaignId, String storageId, String multiId, String backupId, String syncId, String bankIDId, Boolean direct) throws ApiException {<NEW_LINE>Object local... | HashMap<String, String>(); |
1,300,644 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("token"), convLabel... | ValidatorFactory.getInstance(Validator.REQUIRED); |
414,413 | public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>if (mIsDialog) {<NEW_LINE>setDialogSize(getActivity().getResources());<NEW_LINE>applyDialogParams();<NEW_LINE>}<NEW_LINE>mIsPaused = false;<NEW_LINE>if (mDismissOnResume) {<NEW_LINE>mHandler.post(onDeleteRunnable);<NEW_LINE>}<NEW_LINE>// Display the "delete c... | mDeleteHelper.setOnDismissListener(createDeleteOnDismissListener()); |
416,555 | public static void dumpProfilingResults(final Log log) {<NEW_LINE>assert Options.AllocationProfiling.getValue();<NEW_LINE>long totalAllocatedSize = 0;<NEW_LINE>long totalAllocatedObjectCnt = 0;<NEW_LINE>List<AllocationSite> sortedSites = getSites();<NEW_LINE>List<AllocationCounter> counters = new ArrayList<>();<NEW_LIN... | string("Allocation site;Allocation class;Allocation count;Allocation size in bytes").newline(); |
887,625 | public static void runSample() {<NEW_LINE>System.out.println("\n================================================================");<NEW_LINE>System.out.println(" Starting Text Analytics Sample");<NEW_LINE>System.out.println("================================================================");<NEW_LINE>// Instantiate a c... | ), sentenceScores.getNegative()); |
831,494 | private HttpResponse fetchHttpResponse(String method, String url, String body, Map<String, String> headers) throws IOException {<NEW_LINE>if (headers != null && headers.containsKey(USER_AGENT)) {<NEW_LINE>System.setProperty("http.agent"<MASK><NEW_LINE>}<NEW_LINE>// connection<NEW_LINE>URL u = new URL(url);<NEW_LINE>Htt... | , headers.get(USER_AGENT)); |
742,039 | public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateBinaryStream(columnIndex, x);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateBinaryStream", "3157", this);<NEW_LINE>throw WSJdbcUt... | ) + ".updateBinaryStream", "3579", this); |
205,839 | public Object clone() {<NEW_LINE>Object clone = null;<NEW_LINE>try {<NEW_LINE>clone = super.clone();<NEW_LINE>} catch (CloneNotSupportedException e) {<NEW_LINE>FFDCFilter.processException(e, "com.ibm.ws.sib.ra.impl.SibRaConnectionRequestInfo.clone", "1:371:1.13", this);<NEW_LINE>if (TRACE.isEventEnabled()) {<NEW_LINE>S... | exception(this, TRACE, e); |
1,637,028 | // Register a callback for shutdown. Verify that it gets invoked for both shutdown and shutdownNow methods.<NEW_LINE>// Also, the callback should be invoked when shutdownNow is indirectly invoked via the shutdownNowByIdentifierPrefix<NEW_LINE>// method of the policy executor provider.<NEW_LINE>@Test<NEW_LINE>public voi... | task1started, task1released, TIMEOUT_NS * 2); |
397,561 | public static CodegenExpression codegenGetterWCoerce(EventPropertyGetterSPI getter, EPType getterType, EPType optionalCoercionType, CodegenMethod method, Class generator, CodegenClassScope classScope) {<NEW_LINE><MASK><NEW_LINE>CodegenExpressionNewAnonymousClass anonymous = newAnonymousClass(method.getBlock(), EventPro... | getterType = JavaClassHelper.getBoxedType(getterType); |
1,791,984 | /*<NEW_LINE>* @see<NEW_LINE>* javax.ws.rs.container.ContainerRequestFilter#filter(javax.ws.rs.container.<NEW_LINE>* ContainerRequestContext)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void filter(ContainerRequestContext context) throws IOException {<NEW_LINE>// Do not service request if microservice is not complete... | LOGGER.warn("Error authenticating user for JWT token request.", e); |
925,506 | static JLabel addMessageRow(JPanel panel, GridBagLayout gridbagLayout, GridBagConstraints constraints, Insets insets, String messageString, int gridx) {<NEW_LINE>// create label<NEW_LINE>javax.swing.JLabel messageLabel = new javax.swing.JLabel();<NEW_LINE>constraints.gridy++;<NEW_LINE>constraints.gridx = gridx < MAX_CO... | - 1 ? gridx : MAX_COLS - 2; |
1,034,637 | public InternalAggregation reduce(InternalAggregation aggregation, AggregationReduceContext reduceContext) {<NEW_LINE>@SuppressWarnings({ "rawtypes", "unchecked" })<NEW_LINE>InternalMultiBucketAggregation<InternalMultiBucketAggregation, InternalMultiBucketAggregation.InternalBucket> originalAgg = (InternalMultiBucketAg... | ordered = new ArrayList<>(); |
1,167,778 | private static void parseCoreCache(final ObjectNode data, @NonNull final Geocache cache) {<NEW_LINE>cache.setCacheId(data.get(CACHE_ID).asText());<NEW_LINE>cache.setName(data.get(CACHE_NAME).asText());<NEW_LINE>cache.setType(parseType(data.get(CACHE_TYPE).asInt()));<NEW_LINE>cache.setGeocode(data.get(CACHE_CODE).asText... | new Geopoint(latitude, longitude)); |
1,792,626 | public void openNextFile() {<NEW_LINE>if (inputFilePath == null || inputMethod != InputMethod.IMAGE)<NEW_LINE>return;<NEW_LINE>String path;<NEW_LINE>try {<NEW_LINE>// need to remove annoying %20 from the path is there is whitespace<NEW_LINE>path = URLDecoder.decode(inputFilePath, UTF8);<NEW_LINE>} catch (UnsupportedEnc... | .replace("%20", " ")); |
494,325 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Item item = <MASK><NEW_LINE>if (item == null) {<NEW_LINE>finish();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>supportRequestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>setContentView(R.layout.activity_thread_previe... | getIntent().getParcelableExtra(EXTRA_ITEM); |
763,190 | public static void init(OsmandApplication app) {<NEW_LINE>if (!init && NativeCore.isAvailable()) {<NEW_LINE>if (!NativeCore.isLoaded())<NEW_LINE>NativeCore.load(CoreResourcesFromAndroidAssets.loadFromCurrentApplication(app));<NEW_LINE>if (NativeCore.isLoaded()) {<NEW_LINE>File directory = app.getAppPath("");<NEW_LINE>L... | ).getAbsolutePath(), false); |
1,346,460 | private void reserveCapacityWithChecking(String hostUuid, long requestCpu, long requestMemory) {<NEW_LINE>HostCapacityUpdater updater = new HostCapacityUpdater(hostUuid);<NEW_LINE>HostVO host = dbf.findByUuid(hostUuid, HostVO.class);<NEW_LINE>HostReservedCapacityExtensionPoint ext = exts.get(host.getHypervisorType());<... | ratioMgr.calculateMemoryByRatio(hostUuid, requestMemory); |
669,588 | protected JFreeChart createHighLowChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createHighLowChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRHighLowPlot) getPlot()).getTime... | getDataset(), isShowLegend()); |
444,553 | // To get records having itemName in 'Skate Board', 'Paint' and 'Glue'<NEW_LINE>public String[] inCriteria() {<NEW_LINE>final Session session = HibernateUtil.getHibernateSession();<NEW_LINE>final CriteriaBuilder cb = session.getCriteriaBuilder();<NEW_LINE>final CriteriaQuery<Item> cr = cb.createQuery(Item.class);<NEW_L... | > inItemsList = query.getResultList(); |
944,203 | public EPPreparedQueryResult execute(FAFQueryMethodSelect select, ContextPartitionSelector[] contextPartitionSelectors, FAFQueryMethodAssignerSetter assignerSetter, ContextManagementService contextManagementService) {<NEW_LINE>FireAndForgetProcessor processor = select.getProcessors()[0];<NEW_LINE>ContextPartitionSelect... | select.getEventType(), distinct); |
435,360 | final DeleteApplicationsResult executeDeleteApplications(DeleteApplicationsRequest deleteApplicationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Application Discovery Service"); |
879,335 | public static void formatImportStatements(final SourceFile sourceFile, final AbstractSchemaNode schemaNode, final Class baseType) {<NEW_LINE>sourceFile.importLine(baseType.getName());<NEW_LINE>sourceFile.importLine(DateArrayPropertyParser.class.getName());<NEW_LINE>sourceFile.importLine(ConfigurationProvider.class.getN... | StringUtils.class.getName()); |
1,708,587 | protected Element writeItem(Element design, T item, DesignContext context) {<NEW_LINE>Element element = design.appendElement("option");<NEW_LINE>String caption = getItemCaptionGenerator().apply(item);<NEW_LINE>if (caption != null) {<NEW_LINE>element.html(DesignFormatter.encodeForTextNode(caption));<NEW_LINE>} else {<NE... | (item.toString())); |
1,516,682 | public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException {<NEW_LINE>switch(code) {<NEW_LINE>case INTERFACE_TRANSACTION:<NEW_LINE>{<NEW_LINE>reply.writeString(DESCRIPTOR);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>case TRANSACTION_checkLicense:<NEW... | android.vending.licensing.ILicenseResultListener _arg2; |
1,577,781 | public final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args) {<NEW_LINE>if (args.length != arity) {<NEW_LINE>throw context.runtime.newArgumentError(args.length, arity);<NEW_LINE>}<NEW_LINE>switch(args.length) {<NEW_LINE>case 0:<NEW_LINE>return call(context, s... | 1], args[2]); |
1,210,964 | public Result<Void> apply(AdvancedValidationContext context) {<NEW_LINE>Optional<TicketFieldConfiguration> vatField = context.ticketFieldConfigurations.stream().filter(TicketFieldConfiguration::isEuVat).filter(f -> context.updateTicketOwnerForm.getAdditional() != null && context.updateTicketOwnerForm.getAdditional().co... | )).get(0)); |
1,592,814 | public GetRelationalDatabaseResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRelationalDatabaseResult getRelationalDatabaseResult = new GetRelationalDatabaseResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | int originalDepth = context.getCurrentDepth(); |
1,795,032 | public static Cardinality create(String image) {<NEW_LINE>int min = -1;<NEW_LINE>int max = -1;<NEW_LINE>switch(image) {<NEW_LINE>case "*":<NEW_LINE>min = 0;<NEW_LINE>max = UNBOUNDED;<NEW_LINE>break;<NEW_LINE>case "?":<NEW_LINE>min = 0;<NEW_LINE>max = 1;<NEW_LINE>break;<NEW_LINE>case "+":<NEW_LINE>min = 1;<NEW_LINE>max ... | matcher = repeatRange.matcher(image); |
1,159,980 | private void drop(final DruidCoordinatorRuntimeParams params, final DataSegment segment, final CoordinatorStats stats) {<NEW_LINE>final DruidCluster druidCluster = params.getDruidCluster();<NEW_LINE>// This enforces that loading is completed before we attempt to drop stuffs as a safety measure.<NEW_LINE>if (loadingInPr... | "No holders found for tier[%s]", tier).emit(); |
41,051 | public Object execute(VirtualFrame frame) {<NEW_LINE>Object callable = getCallable.execute(frame);<NEW_LINE>Object argument1 = argumentNodes<MASK><NEW_LINE>Object argument2 = argumentNodes[1].execute(frame);<NEW_LINE>Object argument3 = argumentNodes[2].execute(frame);<NEW_LINE>Object argument4 = argumentNodes[3].execut... | [0].execute(frame); |
1,233,701 | public static ListOutboundStrategiesResponse unmarshall(ListOutboundStrategiesResponse listOutboundStrategiesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOutboundStrategiesResponse.setRequestId(_ctx.stringValue("ListOutboundStrategiesResponse.RequestId"));<NEW_LINE>listOutboundStrategiesResponse.setMessage(_ctx.s... | ("ListOutboundStrategiesResponse.OutboundStrategies[" + i + "].CreatorId")); |
879,202 | final UpdateAccountSettingsResult executeUpdateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAccountSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,291,121 | public String changePass(@RequestParam String email, @RequestParam(required = false) String newpassword, @RequestParam(required = false) String token, HttpServletRequest req, Model model) {<NEW_LINE>boolean approvedDomain = utils.isEmailDomainApproved(email);<NEW_LINE>boolean validCaptcha = HttpUtils.isValidCaptcha(req... | "captchakey", CONF.captchaSiteKey()); |
1,373,879 | public void update(Map<String, Object> cssData) {<NEW_LINE>Object cssUrlObj = cssData.get(HEADER_CSS_URL_KEY);<NEW_LINE>try {<NEW_LINE>Map<String, Object> filesToUpdate = new HashMap<String, Object>();<NEW_LINE>// Add CSS content<NEW_LINE>String cssContent = (String) cssData.get(HEADER_CSS_CONTENT_KEY);<NEW_LINE>filesT... | String) cssUrlObj, cssContent, filesToUpdate); |
554,674 | public static RelDataType deriveRowType(RelDataTypeFactory typeFactory, final RelDataType inputRowType, boolean indicator, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, final List<AggregateCall> aggCalls) {<NEW_LINE>final List<Integer> groupList = groupSet.asList();<NEW_LINE>assert groupList.size() == grou... | builder.add(name, booleanType); |
1,815,374 | public static ListPersonTraceResponse unmarshall(ListPersonTraceResponse listPersonTraceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPersonTraceResponse.setRequestId(_ctx.stringValue("ListPersonTraceResponse.RequestId"));<NEW_LINE>listPersonTraceResponse.setTotalCount(_ctx.integerValue("ListPersonTraceResponse.To... | ("ListPersonTraceResponse.Data[" + i + "].DeviceId")); |
1,566,244 | private void parseBody(Body body, PostmanRequest requestDesc) {<NEW_LINE>JSONObject postmanBody = requestDesc.getBody();<NEW_LINE>if (postmanBody == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String bodyMode = postmanBody.getString("mode");<NEW_LINE>if (StringUtils.isBlank(bodyMode)) {<NEW_LINE>return;<NEW_LINE>}<NEW... | body.setType(Body.BINARY); |
812,688 | public void loadImages() {<NEW_LINE>// gameplay-specific images<NEW_LINE>if (isGameplay()) {<NEW_LINE>// combo burst images<NEW_LINE>if (GameImage.COMBO_BURST.hasBeatmapSkinImages() || (!GameImage.COMBO_BURST.hasBeatmapSkinImage() && GameImage.COMBO_BURST.getImages() != null))<NEW_LINE>comboBurstImages = GameImage.COMB... | GameImage.SCORE_1.getImage()); |
343,864 | private Mono<Response<Void>> updateSubscriptionLevelStateToActivateWithResponseAsync(String ascLocation, String alertName) {<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_L... | error(new IllegalArgumentException("Parameter alertName is required and cannot be null.")); |
963,811 | protected void succeeded() {<NEW_LINE>AutoSetFileLinksUtil.LinkFilesResult result = getValue();<NEW_LINE>if (!result.getFileExceptions().isEmpty()) {<NEW_LINE>dialogService.showWarningDialogAndWait(Localization.lang("Automatically set file links"), Localization.lang("Problem finding files. See error log for details."))... | ).size()))); |
1,467,443 | public org.python.Object __le__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Tuple) {<NEW_LINE>org.python.types.Tuple otherTuple = (org.python.types.Tuple) other;<NEW_LINE>int size = this.value.size();<NEW_LINE>int otherSize = otherTuple.value.size();<NEW_LINE>int count = Math.min(size, oth... | .value.get(i)); |
456,992 | /*<NEW_LINE>* @see ghidra.framework.store.FileSystem#moveItem(java.lang.String, java.lang.String, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized void moveItem(String folderPath, String name, String newFolderPath, String newName) throws IOException, InvalidNameException {<NEW_LINE>if (read... | indexJournal.moveItem(oldPath, newPath); |
636,480 | static boolean isOverlapPreventedInOtherDimension(LayoutInterval addingInterval, LayoutInterval existingInterval, int dimension) {<NEW_LINE>int otherDim = dimension ^ 1;<NEW_LINE>Iterator<LayoutInterval> addIt = getComponentIterator(addingInterval);<NEW_LINE>do {<NEW_LINE>LayoutInterval otherDimAdd = addIt.next().getCo... | while (exIt.hasNext()); |
985,067 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); |
1,275,639 | public ListCustomLineItemsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListCustomLineItemsResult listCustomLineItemsResult = new ListCustomLineItemsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | )).unmarshall(context)); |
566,444 | public Request<DecreaseStreamRetentionPeriodRequest> marshall(DecreaseStreamRetentionPeriodRequest decreaseStreamRetentionPeriodRequest) {<NEW_LINE>if (decreaseStreamRetentionPeriodRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DecreaseStreamRetentionPeriodRequest)");<N... | setContent(new StringInputStream(snippet)); |
1,621,566 | public void handle(final HttpRequest request, final HttpResponse response, final HttpContext context) throws HttpException, IOException {<NEW_LINE>try {<NEW_LINE>Header[] tmp = request.getHeaders("Host");<NEW_LINE>Address serverAddressAtClient = getServerAddressAtClient(tmp[0].getValue());<NEW_LINE>String uri = request... | throw new MethodNotSupportedException(method + " method not supported"); |
538,818 | final UpdateWorkspaceResult executeUpdateWorkspace(UpdateWorkspaceRequest updateWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoTTwinMaker"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.