idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,341,296 | public static QueryCardFlowInfoResponse unmarshall(QueryCardFlowInfoResponse queryCardFlowInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryCardFlowInfoResponse.setRequestId(_ctx.stringValue("QueryCardFlowInfoResponse.RequestId"));<NEW_LINE>queryCardFlowInfoResponse.setCode(_ctx.stringValue("QueryCardFlowInfoResp... | ("QueryCardFlowInfoResponse.CardFlowInfos[" + i + "].ExpireDate")); |
1,678,991 | public Response fixMissingOriginalSizes(@QueryParam("limit") Integer limit) {<NEW_LINE>JsonObjectBuilder info = Json.createObjectBuilder();<NEW_LINE>List<Long> affectedFileIds = fileService.selectFilesWithMissingOriginalSizes();<NEW_LINE>if (affectedFileIds.isEmpty()) {<NEW_LINE>info.add("message", "All the tabular fil... | int howmany = affectedFileIds.size(); |
1,767,129 | private void generate_subtract_mel_scale() {<NEW_LINE>double[] hz_points = new double[nFilt + 2];<NEW_LINE>double[] enorm = new double[nFilt];<NEW_LINE>double[][] ramps = new double[nFilt + 2][nFFT / 2 + 1];<NEW_LINE>double mel_max = hzToMel(sampleRate / 2.0);<NEW_LINE>filterBank = new double[nFilt<MASK><NEW_LINE>hz_po... | ][nFFT / 2 + 1]; |
1,252,724 | public IRubyObject initialize(IRubyObject[] args, Block block) {<NEW_LINE>if (args.length > 0) {<NEW_LINE>final IRubyObject arg = args[0];<NEW_LINE>if (arg instanceof RubyFixnum) {<NEW_LINE>this.status = arg;<NEW_LINE>// (status, message)<NEW_LINE>if (args.length > 1)<NEW_LINE>this.message = args[1];<NEW_LINE>} else if... | RubyFixnum.zero(getRuntime()); |
917,925 | final GetCommentsForPullRequestResult executeGetCommentsForPullRequest(GetCommentsForPullRequestRequest getCommentsForPullRequestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCommentsForPullRequestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | invoke(request, responseHandler, executionContext); |
987,006 | protected Object doDataView(JSDataViewObject dataView, Object byteOffset, Object value, Object littleEndian, @Cached("create()") JSToIndexNode toIndexNode, @Cached("createClassProfile()") ValueProfile bufferTypeProfile, @Cached("createClassProfile()") ValueProfile arrayTypeProfile) {<NEW_LINE>long getIndex = toIndexNod... | buffer), true, isInteropBuffer)); |
335,383 | private static String findJavaVersionString(MavenProject project, String property) {<NEW_LINE>do {<NEW_LINE>String value = project.getProperties().getProperty("maven.compiler." + property);<NEW_LINE>if (value != null) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>PluginManagement management = project.getPluginManagement... | ()).getChild(property); |
1,497,246 | public void updateUserStats(List<UserStatisticsVO> userStats) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>String sql = UPDATE_USER_STATS;<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>// in reality I just want CLOUD_USAGE dataSource connection<NEW... | 4, userStat.getCurrentBytesSent()); |
330,216 | private byte[] generateLambdaFormInterpreterEntryPointBytes() {<NEW_LINE>classFilePrologue();<NEW_LINE>methodPrologue();<NEW_LINE>// Suppress this method in backtraces displayed to the user.<NEW_LINE>mv.visitAnnotation(LF_HIDDEN_SIG, true);<NEW_LINE>// Don't inline the interpreter entry.<NEW_LINE>mv.visitAnnotation(DON... | (Wrapper.forPrimitiveType(ptype)); |
1,201,170 | void writeOpStat(Writer w, String name, DataSketchesOpStatsLogger opStat) {<NEW_LINE>// Example:<NEW_LINE>// # TYPE bookie_journal_JOURNAL_ADD_ENTRY summary<NEW_LINE>// bookie_journal_JOURNAL_ADD_ENTRY{success="false",quantile="0.5",} NaN<NEW_LINE>// bookie_journal_JOURNAL_ADD_ENTRY{success="false",quantile="0.75",} Na... | opStat, name, true, 0.9999); |
1,264,029 | final DeleteApplicationResult executeDeleteApplication(DeleteApplicationRequest deleteApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
999,794 | private void doQueryForMBeanOperations(JMXSecurityMBean jmxSec, Map<String, Map<String, Object>> domains, Map<String, Map<String, Object>> rbacCache, Map<String, List<String>> queryForMBeanOperations) throws Exception {<NEW_LINE>TabularData dataForMBeanOperations = jmxSec.canInvoke(queryForMBeanOperations);<NEW_LINE>Co... | canInvoke, mBeanInfoOrKey.toString()); |
1,386,686 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.runtime.SIMPRemoteMessageControllable#removeMessage(boolean)<NEW_LINE>*/<NEW_LINE>public void moveMessage(boolean discard) throws SIMPControllableNotFoundException, SIMPRuntimeOperationFailedException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isE... | SibTr.exit(tc, "moveMessage"); |
156,512 | public void updatePrivateContactPresenceStatus(Contact contact) {<NEW_LINE>OperationSetPersistentPresenceJabberImpl presenceOpSet = (OperationSetPersistentPresenceJabberImpl) provider.getOperationSet(OperationSetPersistentPresence.class);<NEW_LINE>if (contact == null)<NEW_LINE>return;<NEW_LINE>PresenceStatus oldContact... | JabberStatusEnum.OFFLINE : JabberStatusEnum.AVAILABLE); |
1,188,593 | public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>if (holder instanceof HeaderStatusViewHolder) {<NEW_LINE>HeaderStatusViewHolder viewHolder = (HeaderStatusViewHolder) holder;<NEW_LINE>viewHolder.bindView(this, status, nightMode);<NEW_LINE>} else if (holder instanceof WarningViewHolder) ... | backup, fragment, uploadItemsVisible, nightMode); |
80,439 | default Constraint path(IntVar[] vars, IntVar start, IntVar end, int offset) {<NEW_LINE>assert start != null <MASK><NEW_LINE>switch(vars.length) {<NEW_LINE>case 0:<NEW_LINE>throw new SolverException("|vars| Should be strictly greater than 0");<NEW_LINE>case 1:<NEW_LINE>return Constraint.merge(ConstraintsName.PATH, arit... | && end != null && vars != null; |
1,252,550 | protected void matchGap(int start1, int end1, int start2, int end2) {<NEW_LINE>Range expand = expand(myLines1, myLines2, start1, start2, end1, end2);<NEW_LINE>List<Line> inner1 = myLines1.subList(<MASK><NEW_LINE>List<Line> inner2 = myLines2.subList(expand.start2, expand.end2);<NEW_LINE>FairDiffIterable innerChanges = d... | expand.start1, expand.end1); |
1,614,284 | public byte[] put(ByteBuffer key, byte[] value) {<NEW_LINE>numBytes.addAndGet(key.remaining() + value.length);<NEW_LINE>Iterator<Map.Entry<ByteBuffer, byte[]>> it = entrySet().iterator();<NEW_LINE>List<ByteBuffer> keysToRemove = new ArrayList<>();<NEW_LINE>long totalEvictionSize = 0L;<NEW_LINE>while (numBytes.get() - t... | + next.getValue().length; |
1,565,415 | public Vector2 localToParentCoordinates(Vector2 localCoords) {<NEW_LINE>final float rotation = -this.rotation;<NEW_LINE>final float scaleX = this.scaleX;<NEW_LINE>final float scaleY = this.scaleY;<NEW_LINE>final float x = this.x;<NEW_LINE>final float y = this.y;<NEW_LINE>if (rotation == 0) {<NEW_LINE>if (scaleX == 1 &&... | originX) * scaleX + originX + x; |
1,733,090 | public Object createResultObject(List<Object> fields) throws CodingException {<NEW_LINE>if (fields.size() != count()) {<NEW_LINE>throw new CodingException("Invalid field number for create object " + ". Needs " + count() + " fields, while having " + fields.size() + " fields.");<NEW_LINE>}<NEW_LINE>switch(objectType) {<N... | throw new CodingException("Failed to create Tuple object for type ", e); |
687,573 | public IRubyObject angleBetween(ThreadContext context, IRubyObject other) {<NEW_LINE>Ruby runtime = context.getRuntime();<NEW_LINE>Vec3 vec = (Vec3) other.toJava(Vec3.class);<NEW_LINE>// We get NaN if we pass in a zero vector which can cause problems<NEW_LINE>// Zero seems like a reasonable angle between a (0,0,0) vect... | vec.jz * vec.jz); |
1,516,938 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
338,299 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "order by price";<NEW_LINE>SymbolPr... | createAndSend(env, epl, milestone); |
1,840,023 | private void drawWithClipPathImplementation(Canvas canvas, Rect bounds) {<NEW_LINE>if (mDirty) {<NEW_LINE>buildClippingCorners();<NEW_LINE>mDirty = false;<NEW_LINE>}<NEW_LINE>canvas.drawRect(bounds, mBackgroundPaint);<NEW_LINE>if ((mDisableClipCorners & TOP_LEFT) == 0) {<NEW_LINE>int saved = canvas.save();<NEW_LINE>can... | bounds.left, bounds.top); |
1,358,088 | private void createApiScenarioWithBLOBs(SaveHistoricalDataUpgrade saveHistoricalDataUpgrade, String id, String name, int total, String scenarioDefinition, ApiScenarioMapper mapper, int num) {<NEW_LINE>ApiScenarioWithBLOBs scenario = getScenario(id, mapper);<NEW_LINE>if (scenario != null) {<NEW_LINE>scenario.setName(nam... | ()).getId()); |
123,009 | public void transfer(final Session<?> source, final Session<?> destination, final Path file, final Local local, final TransferOptions options, final TransferStatus overall, final TransferStatus segment, final ConnectionCallback connectionCallback, final ProgressListener listener, final StreamListener streamListener) th... | source.getFeature(Symlink.class); |
1,125,672 | public void propagateQualifiedExports(String fromTargetModule, String toTargetModule) {<NEW_LINE>Optional<Module> optFromTarget = moduleLayerForImageBuild.findModule(fromTargetModule);<NEW_LINE>Optional<Module> optToTarget = moduleLayerForImageBuild.findModule(toTargetModule);<NEW_LINE>VMError.guarantee(optFromTarget.i... | ) && optToTarget.isPresent()); |
1,389,683 | final UpdateResourceEventConfigurationResult executeUpdateResourceEventConfiguration(UpdateResourceEventConfigurationRequest updateResourceEventConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceEventConfigurationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
203,516 | public Drawable buildErrorDrawable(Resources resources, ImageOptions imageOptions) {<NEW_LINE>if (FrescoSystrace.isTracing()) {<NEW_LINE>FrescoSystrace.beginSection("HierarcherImpl#buildErrorDrawable");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Drawable drawable = imageOptions.getErrorDrawable();<NEW_LINE>if (drawable == null... | getDrawable(imageOptions.getErrorRes()); |
1,684,282 | private boolean checkConnection() {<NEW_LINE>boolean dbStatus = false;<NEW_LINE>if (!connected) {<NEW_LINE>logger.error("checkConnection: database is not connected");<NEW_LINE>dbStatus = false;<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>Pong pong = influxDB.ping();<NEW_LINE>String version = pong.getVersion();<NEW_LINE>/... | version, pong.getResponseTime()); |
903,457 | protected void render(Map params, String body, Writer writer) throws Exception {<NEW_LINE>SimpleHash activeweb = (SimpleHash) get("activeweb");<NEW_LINE>if (activeweb == null || !(params.containsKey("controller") || activeweb.toMap().containsKey("controller")))<NEW_LINE>throw new ViewException("could not render this fo... | get("controller").toString(); |
281,929 | final ListBackupPlansResult executeListBackupPlans(ListBackupPlansRequest listBackupPlansRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBackupPlansRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
424,727 | ArrayTagSet add(String k, String v) {<NEW_LINE>Preconditions.checkNotNull(k, "key");<NEW_LINE>Preconditions.checkNotNull(v, "value");<NEW_LINE>if (length == 0) {<NEW_LINE>return new ArrayTagSet(new String[] { k, v });<NEW_LINE>} else {<NEW_LINE>String[] newTags = new String[length + 2];<NEW_LINE>int i = 0;<NEW_LINE>for... | newTags[i + 1] = v; |
256,588 | protected void updateContent() {<NEW_LINE>headerContainer = view.findViewById(R.id.header);<NEW_LINE>tvHeaderTitle = view.findViewById(R.id.title);<NEW_LINE>tvHeaderSubtitle = view.findViewById(R.id.subtitle);<NEW_LINE>chipsView = view.findViewById(R.id.selection_menu);<NEW_LINE>tvDescription = view.findViewById(R.id.d... | findViewById(R.id.checkbox); |
1,814,538 | public void storeValues(StringToStringMap httpValues, Settings settings) {<NEW_LINE>settings.setString(HttpSettings.HTTP_VERSION, httpValues.get(HTTP_VERSION));<NEW_LINE>settings.setString(HttpSettings.CHUNKING_THRESHOLD, httpValues.get(CHUNKING_THRESHOLD));<NEW_LINE>settings.setString(HttpSettings.USER_AGENT, httpValu... | , httpValues.get(DISABLE_RESPONSE_DECOMPRESSION)); |
214,422 | private Range createPeak(int pMin, int main, int pMax) {<NEW_LINE>int total = function.getValue(main);<NEW_LINE>int lower = main;<NEW_LINE>int upper = main;<NEW_LINE>boolean modified;<NEW_LINE>logger.debug("{} starting at {} w/ {}", name, main, total);<NEW_LINE>do {<NEW_LINE>modified = false;<NEW_LINE>// Inspect both s... | debug(" going on at {} w/ {}", upper, gainRatio); |
1,127,370 | private void buildInferenceStep(DataFrameAnalyticsTask task, DataFrameAnalyticsConfig config, ActionListener<InferenceStep> listener) {<NEW_LINE>ParentTaskAssigningClient parentTaskClient = new ParentTaskAssigningClient(client, task.getParentTaskId());<NEW_LINE>ActionListener<ExtractedFieldsDetector> extractedFieldsDet... | auditor, config, threadPool, inferenceRunner); |
160,022 | public void addOverlays() {<NEW_LINE>super.addOverlays();<NEW_LINE>// prompt for a WMS server<NEW_LINE>AlertDialog.Builder alert = new AlertDialog.Builder(getContext());<NEW_LINE>final EditText edittext = new EditText(getContext());<NEW_LINE>edittext.setText(getDefaultUrl());<NEW_LINE>alert.setMessage("Enter WMS Server... | .getText().toString(); |
715,214 | private void mapInvoicedQty(@NonNull final DETAILXrech detailXrech, @NonNull final EDICctopInvoic500VType xmlCctopInvoic500V, @NonNull final InvoicSettings settings, @NonNull final DecimalFormat decimalFormat) {<NEW_LINE>final String lineNumber = formatNumber(xmlCctopInvoic500V.getLine(), decimalFormat);<NEW_LINE>final... | measurementUnit = MeasurementUnit.fromMetasfreshUOM(eanComUom); |
604,384 | public ConnectorSpecification run(final JobGetSpecConfig config, final Path jobRoot) throws WorkerException {<NEW_LINE>try {<NEW_LINE>process = integrationLauncher.spec(jobRoot);<NEW_LINE>LineGobbler.gobble(process.getErrorStream(), LOGGER::error);<NEW_LINE>final Optional<ConnectorSpecification> spec;<NEW_LINE>try (fin... | process, 30, TimeUnit.MINUTES); |
47,675 | // Run the preprocessing job and set up the common env variables for worker jobs.<NEW_LINE>private int doPreprocessingJob() throws Exception {<NEW_LINE>Utils.extractResources(appIdString);<NEW_LINE>HashMap<String, String> extraEnv = new HashMap<>(shellEnv);<NEW_LINE>if (singleNode) {<NEW_LINE>ServerSocket tbSocket = ne... | , String.valueOf(tbPort)); |
1,332,109 | private DocumentFilterDescriptor createFilterDescriptor0(@NonNull final IUserQuery userQuery, final int sortNo) {<NEW_LINE>final DocumentFilterDescriptor.Builder filter = DocumentFilterDescriptor.builder().setFilterId("userquery-" + userQuery.getId()).setSortNo(sortNo).setDisplayName(userQuery.getCaption()).setFrequent... | Join join = queryRestriction.getJoin(); |
1,300,012 | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>int featuresLength;<NEW_LINE>int version = in.readInt();<NEW_LINE>data = (ArrayList<Topication>) in.readObject();<NEW_LINE>alphabet = (Alphabet) in.readObject();<NEW_LINE>topicAlphabet = (LabelAlphabet) in.readObject();<... | int numDocs = data.size(); |
1,691,854 | private Object readResolve() throws ObjectStreamException {<NEW_LINE>try {<NEW_LINE>ByteArrayInputStream bis = new ByteArrayInputStream(serializedMock);<NEW_LINE>ObjectInputStream objectInputStream = new MockitoMockObjectInputStream(bis, typeToMock, extraInterfaces);<NEW_LINE>Object deserializedMock = objectInputStream... | (), "If you are still unsure what is the reason of this exception, feel free to contact us on the mailing list."), cce); |
1,831,677 | private static Object copyRefData(final CdmObjectReference instance, Object copy, final Object refTo, final ResolveOptions resOpt, final CopyOptions options) {<NEW_LINE>switch(instance.getObjectType()) {<NEW_LINE>case AttributeGroupRef:<NEW_LINE>final AttributeGroupReferenceDefinition agrd = new AttributeGroupReference... | .MAP.valueToTree(refTo)); |
301,047 | private void updateDisclosureNodeAndGraphic() {<NEW_LINE>if (getSkinnable().isEmpty()) {<NEW_LINE>getChildren().remove(graphic);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check for graphic missing<NEW_LINE>ObjectProperty<Node> graphicProperty = graphicProperty();<NEW_LINE>Node newGraphic = graphicProperty == null ? null ... | getChildren().remove(disclosureNode); |
1,852,523 | final ListDetectorsResult executeListDetectors(ListDetectorsRequest listDetectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDetectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,054,355 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,065,475 | public StatusPageResponse fetchStatusPage(StatusPageServer.HttpRequest httpRequest) {<NEW_LINE>verifyInControllerThread();<NEW_LINE>StatusPageResponse.ResponseCode responseCode;<NEW_LINE>String message;<NEW_LINE>final String hiddenMessage;<NEW_LINE>try {<NEW_LINE>StatusPageServer.RequestHandler handler = statusRequestR... | httpRequest.getRequest() + " -->\n"); |
83,029 | public static void onBlockActivated(PlayerInteractEvent.RightClickBlock event) {<NEW_LINE>Level world = event.getWorld();<NEW_LINE><MASK><NEW_LINE>Player player = event.getPlayer();<NEW_LINE>InteractionHand hand = event.getHand();<NEW_LINE>if (player.isShiftKeyDown() || player.isSpectator())<NEW_LINE>return;<NEW_LINE>F... | BlockPos pos = event.getPos(); |
1,188,807 | private I_C_OrderLine createPurchaseOrderLine(final I_C_OrderLine salesOrderLine) {<NEW_LINE>final I_M_AttributeSetInstance poASI;<NEW_LINE>if (salesOrderLine.getM_AttributeSetInstance_ID() > 0) {<NEW_LINE>final I_M_AttributeSetInstance soASI = salesOrderLine.getM_AttributeSetInstance();<NEW_LINE>poASI = attributeDAO.c... | purchaseOrderLine.setQtyEntered(BigDecimal.ZERO); |
79,016 | public void postConfig() {<NEW_LINE>// We use java.util.Random here because SplittableRandom doesn't have nextGaussian yet.<NEW_LINE>Random rng = new Random(seed);<NEW_LINE>if (weights.length != 4) {<NEW_LINE>throw new PropertyException("", "weights", "Must supply 4 weights, found " + weights.length);<NEW_LINE>}<NEW_LI... | examples = Collections.unmodifiableList(examples); |
940,751 | private void test(int substringSearchMethodId) {<NEW_LINE>String text = "abcdrenetestreneabdreneabcdd";<NEW_LINE>String pattern1 = "rene";<NEW_LINE>SubstringSearch substringSearch1 = createSubstringSearch(substringSearchMethodId, pattern1);<NEW_LINE>if (substringSearch1 == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>S... | StringJoiner offsets3 = new StringJoiner(", "); |
13,619 | private static <T, P extends PersistentProperty<P>> PreferredConstructor<T, P> buildPreferredConstructor(Constructor<?> constructor, TypeInformation<T> typeInformation, @Nullable PersistentEntity<T, P> entity) {<NEW_LINE>if (constructor.getParameterCount() == 0) {<NEW_LINE>return new PreferredConstructor<>((Constructor... | name, type, annotations, entity); |
1,228,070 | public HttpEndpointBufferingHints unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HttpEndpointBufferingHints httpEndpointBufferingHints = new HttpEndpointBufferingHints();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI... | String currentParentElement = context.getCurrentParentElement(); |
1,646,390 | private void buildCheckList(List<CheckListItem> list) {<NEW_LINE>mBuilding = true;<NEW_LINE>int count = 0;<NEW_LINE>for (CheckListItem item : list) {<NEW_LINE>ViewGroup vg = (ViewGroup) mContainer.getChildAt(count);<NEW_LINE>CheckItemTag tag;<NEW_LINE>if (vg != null) {<NEW_LINE>tag = (CheckItemTag) vg.getTag();<NEW_LIN... | = new CheckItemTag(vg, count); |
71,518 | public Image find(String id) throws IOException {<NEW_LINE>ByteBuffer buf = findMetadataFor(toByteArray(id));<NEW_LINE>if (buf == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IntBuffer ibuf = buf.asIntBuffer();<NEW_LINE>int[] intEntries = new int[3];<NEW_LINE>ibuf.get(intEntries);<NEW_LINE>assert id.length() == in... | buf.position() + 12); |
1,220,046 | private boolean waitForVolumeMigrationToComplete(final String volumeTreeId, int waitTimeoutInSecs) {<NEW_LINE>LOG.debug("Waiting for the migration to complete for the volume-tree " + volumeTreeId);<NEW_LINE>if (StringUtils.isEmpty(volumeTreeId)) {<NEW_LINE>LOG.warn("Invalid volume-tree id, unable to check the migration... | " - " + ex.getLocalizedMessage()); |
1,823,238 | private void addPrefetchAttribute(Attribute attribute, SDField field, Schema schema) {<NEW_LINE>if (attribute.getPrefetchValue() == null) {<NEW_LINE>// Prefetch by default - unless any summary makes this dynamic<NEW_LINE>// Check if there is an implicit dynamic definition<NEW_LINE>SummaryField fieldSummaryField = field... | getExplicitSummaryField(attribute.getName()); |
1,372,672 | protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException, NoSuchAlgorithmException {<NEW_LINE>// TODO: add support for other types.<NEW_LINE>if (wrappedKeyType != Cipher.SECRET_KEY) {<NEW_LINE>throw new InvalidKeyException("only SECRET_KEY supported");<NEW... | FrodoKEMExtractor(unwrapKey.getKeyParams()); |
93,004 | public static DescribeSecurityGroupAttributeResponse unmarshall(DescribeSecurityGroupAttributeResponse describeSecurityGroupAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSecurityGroupAttributeResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.RequestId"));<NEW_LINE>describe... | ("DescribeSecurityGroupAttributeResponse.Permissions[" + i + "].SourcePrefixListId")); |
1,583,867 | private void encodeHeadersAndParams(CharBuf buf, MultiMap<String, String> headerOrParams) {<NEW_LINE>if (headerOrParams == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Map<? extends String, ? extends Collection<String><MASK><NEW_LINE>final Set<? extends Map.Entry<? extends String, ? extends Collection<String>>> e... | > map = headerOrParams.baseMap(); |
615,992 | private String streamAttachment(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>// Get Note ID<NEW_LINE>int C_RfQ_ID = WebUtil.getParameterAsInt(request, "C_RfQ_ID");<NEW_LINE>if (C_RfQ_ID == 0) {<NEW_LINE>log.fine("streamAttachment - no ID)");<NEW_LINE>return "No RfQ ID";<NEW_LINE>}<NEW_LINE>// Ge... | = System.currentTimeMillis() - time; |
1,013,562 | protected void recreateBitmaps() {<NEW_LINE>super.recreateBitmaps();<NEW_LINE>float walkCircleH = attrsW.paint.getStrokeWidth() * 1.33f;<NEW_LINE>float walkCircleW = attrsW.paint.getStrokeWidth();<NEW_LINE>float walkCircleRadius = attrsW.paint.getStrokeWidth() / 2f;<NEW_LINE>float routeShieldRadius = attrsPT.paint3.get... | width - margin, height - margin); |
1,227,934 | private void addPostsToMessagingStyle(NotificationCompat.MessagingStyle messagingStyle, List<Post> unviewedPosts) {<NEW_LINE>final int maxLines = 25;<NEW_LINE>if (unviewedPosts.size() > maxLines) {<NEW_LINE>unviewedPosts = unviewedPosts.subList(unviewedPosts.size() - <MASK><NEW_LINE>}<NEW_LINE>for (Post post : unviewed... | maxLines, unviewedPosts.size()); |
1,305,101 | private void calculateSCL(double[] x) {<NEW_LINE>// System.out.println("Checking at: "+x[0]+" "+x[1]+" "+x[2]);<NEW_LINE>value = 0.0;<NEW_LINE>Arrays.fill(derivative, 0.0);<NEW_LINE>double[] sums = new double[numClasses];<NEW_LINE>double[] probs = new double[numClasses];<NEW_LINE>// double[] counts = new double[numClas... | total = ArrayMath.logSum(sums); |
288,247 | public final List<I_C_BP_BankAccount> retrieveQRBPBankAccounts(@NonNull final String IBAN) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryFilter<I_C_BP_BankAccount> esrAccountmatichingIBANorQR_IBAN = queryBL.createCompositeQueryFilter(I_C_BP_BankAccount.class).setJoinOr().addEqua... | addEqualsFilter(I_C_BP_BankAccount.COLUMNNAME_QR_IBAN, IBAN); |
83,715 | Executable detectBeanInstanceExecutable(BeanDefinition beanDefinition) {<NEW_LINE>Supplier<ResolvableType> beanType = () -> getBeanType(beanDefinition);<NEW_LINE>List<ResolvableType> valueTypes = beanDefinition.hasConstructorArgumentValues() ? determineParameterValueTypes(beanDefinition.getConstructorArgumentValues()) ... | resolvedFactoryMethod = resolveFactoryMethod(beanDefinition, valueTypes); |
1,460,360 | public void createFileWithLease() {<NEW_LINE>ShareClient shareClient = createClientWithSASToken();<NEW_LINE>// BEGIN: com.azure.storage.file.share.ShareClient.createFileWithResponse#String-long-ShareFileHttpHeaders-FileSmbProperties-String-Map-ShareRequestConditions-Duration-Context<NEW_LINE>ShareFileHttpHeaders httpHe... | ("no-transform").setContentDisposition("attachment"); |
1,362,575 | public void run() {<NEW_LINE>checkArgument(!(runInEmpty && (forEachTestTld || forEachRealTld)), "runInEmpty and forEach*Tld are mutually exclusive");<NEW_LINE>checkArgument(runInEmpty || forEachTestTld || forEachRealTld, "At least one of runInEmpty, forEachTestTld, forEachRealTld must be given");<NEW_LINE>checkArgument... | .size(), queue)); |
1,535,252 | public void keyReleased(KeyEvent e) {<NEW_LINE>int keyCode = e.getKeyCode();<NEW_LINE>if (keyCode == KeyEvent.VK_UP || keyCode == KeyEvent.VK_DOWN) {<NEW_LINE>JTree tree = (JTree) e.getSource();<NEW_LINE>int row = tree.getSelectionRows()[0];<NEW_LINE>TreePath path = tree.getSelectionPath();<NEW_LINE>if (path != null) {... | Object o = node.getUserObject(); |
1,227,545 | private String newBody(String subject, String rule, String applicationId, String serviceType, String currentTime) {<NEW_LINE>StringBuilder body = new StringBuilder();<NEW_LINE>body.append("<strong>").append(subject).append("</strong>");<NEW_LINE>body.append(LINE_FEED);<NEW_LINE>body.append(LINE_FEED);<NEW_LINE>body.app... | append(agentChecker.getEmailMessage()); |
738,126 | public void updateUI() {<NEW_LINE>removeAllViews();<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getContext());<NEW_LINE>// Inflate this data binding layout<NEW_LINE>mBinding = DataBindingUtil.inflate(inflater, R.layout.prompt_save_login, this, true);<NEW_LINE>mBinding.neverButton.setOnClickListener(view -> {... | dismiss(mBinding.getLogin()); |
656,939 | public ResultStatus updateByAppId(AppDTO dto, String operator, Boolean adminApi) {<NEW_LINE>try {<NEW_LINE>AppDO appDO = appDao.getByAppId(dto.getAppId());<NEW_LINE>if (ValidateUtils.isNull(appDO)) {<NEW_LINE>return ResultStatus.APP_NOT_EXIST;<NEW_LINE>}<NEW_LINE>if (!adminApi && !ListUtils.string2StrList(appDO.getPrin... | "appId", appDO.getAppId()); |
46,431 | Object addValue(String name, String value, boolean isDefault, boolean validate, int currentIndex) {<NEW_LINE>p("Adding " + (isDefault ? "default " : "") + "value:" + value + " to parameter:" + parameterized.getName());<NEW_LINE>if (name == null) {<NEW_LINE>name = wrappedParameter.names()[0];<NEW_LINE>}<NEW_LINE>if (cur... | value, currentIndex, type, subParameters); |
1,722,807 | public static void toJSON(OutputWriter jsonWriter, Task task) {<NEW_LINE>if (!task.errors().isEmpty()) {<NEW_LINE>jsonWriter.addChild("errors", errorWriter -> {<NEW_LINE>HashMap<String, String> errorMapping = new HashMap<>();<NEW_LINE>errorMapping.put("buildFile", "build_file");<NEW_LINE>errorMapping.put("onCancelConfi... | errorMapping.put("src", "source"); |
1,668,004 | protected Object invokeInternal(Object key, Data epData, Object... arguments) {<NEW_LINE>Data keyData = toData(key);<NEW_LINE>List<Data> argumentsData;<NEW_LINE>if (arguments != null) {<NEW_LINE>argumentsData = new <MASK><NEW_LINE>for (Object argument : arguments) {<NEW_LINE>argumentsData.add(toData(argument));<NEW_LIN... | ArrayList<>(arguments.length); |
569,450 | public void refresh() {<NEW_LINE>final HashMap<Integer, MapValue> values = new HashMap<Integer, MapValue>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>ListValue counterList = param.newList("counter");<N... | , valueLv.get(i)); |
1,053,445 | public static long[] shiftLeftI(long[] v, int off) {<NEW_LINE>if (off == 0) {<NEW_LINE>return v;<NEW_LINE>}<NEW_LINE>if (off < 0) {<NEW_LINE>return shiftRightI(v, -off);<NEW_LINE>}<NEW_LINE>// Break shift into integers to shift and bits to shift<NEW_LINE>final <MASK><NEW_LINE>final int shiftBits = off & LONG_LOG2_MASK;... | int shiftWords = off >>> LONG_LOG2_SIZE; |
1,299,506 | /* private */<NEW_LINE>void scrollToItem(int item, boolean smoothScroll, int animDuration, int velocity, boolean dispatchSelected, boolean touching) {<NEW_LINE>final ItemInfo curInfo = infoForPosition(item);<NEW_LINE>int dest = 0;<NEW_LINE>if (curInfo != null) {<NEW_LINE>final int size = getClientSize();<NEW_LINE>dest ... | curInfo.offset, mLastOffset))); |
169,370 | // Cleanup: default<NEW_LINE>public int updateChannel(GroupInfoUpdate groupInfoUpdate) {<NEW_LINE>if (groupInfoUpdate.getImageUrl() == null && groupInfoUpdate.getNewName() == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int rowUpdated = 0;<NEW_LINE>try {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>i... | getChannelByClientGroupId(groupInfoUpdate.getClientGroupId()); |
1,169,132 | public void onError(Throwable t) {<NEW_LINE>if (payloadSubscriber != null) {<NEW_LINE>// We have a subscriber that has seen onNext()<NEW_LINE>payloadSubscriber.onError(t);<NEW_LINE>} else {<NEW_LINE>final Object maybeSubscriber = maybePayloadSubUpdater.getAndSet(this, t);<NEW_LINE>if (maybeSubscriber == CANCELED || !me... | ("Duplicate Subscribers are not allowed. Existing: " + maybeSubscriber + ", failed the race with a duplicate, but neither has seen onNext()")); |
1,849,841 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>supportingFiles.add(new SupportingFile("ApiException.mustache", toSrcPath(invokerPackage, srcBasePath), "ApiException.php"));<NEW_LINE>supportingFiles.add(new SupportingFile("Configuration.mustache", toSrcPath(invokerPackage, srcBasePath), "Configuratio... | modelPackage, srcBasePath), "ModelInterface.php")); |
408,245 | private void initDefaultRoutes(Router router) {<NEW_LINE>router.add(GET, "/", RootTask.class);<NEW_LINE>router.add(GET, "", RootRedirectTask.class);<NEW_LINE>router.add(POST, "/reset", ResetTask.class);<NEW_LINE>router.add(GET, "/mappings", GetAllStubMappingsTask.class);<NEW_LINE>router.add(POST, "/mappings", CreateStu... | POST, "/shutdown", ShutdownServerTask.class); |
310,102 | private JavaCompiler buildJavaCompiler() {<NEW_LINE>Class<?> clazz;<NEW_LINE>try {<NEW_LINE>if (isJava9Compatible) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>JavaCompiler compiler = (JavaCompiler) clazz.getDeclaredMethod("getSystemJavaCompiler").invoke(null);<NEW_LINE>if (compiler == null) {<NEW_LINE>// We were trying t... | clazz = isolatedToolsLoader.loadClass("javax.tools.ToolProvider"); |
774,744 | private CheckConnectionStatusResult request(GrpcAgentConnection grpcAgentConnection, int checkCount) {<NEW_LINE>logger.info("Ping message will be sent. collector => {}.", grpcAgentConnection.getDestAgentInfo().getAgentKey());<NEW_LINE>Future<ResponseMessage> response = null;<NEW_LINE>try {<NEW_LINE>response = request0... | e.getMessage(), e); |
1,746,235 | private Supplier<? extends BPartnerLocation> inferLocationForBpartner(@NonNull final BPartnerComposite bpartnerComposite, @Nullable final Boolean isShipTo, @Nullable final Boolean isBillTo) {<NEW_LINE>Optional<BPartnerLocation> location = Optional.empty();<NEW_LINE>if (Boolean.TRUE.equals(isBillTo)) {<NEW_LINE>location... | final Optional<BPartnerLocation> result = location; |
1,468,962 | private // if md5Sum not eq previous value, be change its storage policy.<NEW_LINE>String calcPropertiesMd5() {<NEW_LINE>List<String> calcKey = Arrays.asList(COOLDOWN_DATETIME, COOLDOWN_TTL, S3Resource.S3_MAX_CONNECTIONS, S3Resource.S3_REQUEST_TIMEOUT_MS, S3Resource.S3_CONNECTION_TIMEOUT_MS, S3Resource.S3_ACCESS_KEY, S... | (COOLDOWN_DATETIME, dateTimeToSecondTimestamp[0]); |
1,686,900 | public static DetailAST createBlockCommentNode(CommonToken token) {<NEW_LINE><MASK><NEW_LINE>blockComment.initialize(TokenTypes.BLOCK_COMMENT_BEGIN, BLOCK_MULTIPLE_COMMENT_BEGIN);<NEW_LINE>blockComment.setColumnNo(token.getCharPositionInLine());<NEW_LINE>blockComment.setLineNo(token.getLine());<NEW_LINE>final DetailAst... | final DetailAstImpl blockComment = new DetailAstImpl(); |
265,157 | private Duration determineSyncCommitTimeout() {<NEW_LINE>Duration syncTimeout <MASK><NEW_LINE>if (syncTimeout != null) {<NEW_LINE>return syncTimeout;<NEW_LINE>} else {<NEW_LINE>Object timeout = this.containerProperties.getKafkaConsumerProperties().get(ConsumerConfig.DEFAULT_API_TIMEOUT_MS_CONFIG);<NEW_LINE>if (timeout ... | = this.containerProperties.getSyncCommitTimeout(); |
1,606,081 | private void prepareRecordDigest(EncryptedServerNameIndicationExtensionMessage msg) {<NEW_LINE>byte[] recordDigest;<NEW_LINE>byte[] record = msg.getEncryptedSniComputation().getEsniRecordBytes().getValue();<NEW_LINE>CipherSuite cipherSuite = CipherSuite.getCipherSuite(msg.<MASK><NEW_LINE>DigestAlgorithm algorithm = Alg... | getCipherSuite().getValue()); |
332,136 | private void generateAnnotatedSourceFile(final MutationTestSummaryData mutationMetaData) {<NEW_LINE>final String fileName = mutationMetaData.getPackageName() + File.separator + mutationMetaData.getFileName() + ".html";<NEW_LINE>try (Writer writer = this.outputStrategy.createWriterForFile(fileName)) {<NEW_LINE>final Str... | "mutatedClasses", mutationMetaData.getMutatedClasses()); |
1,359,061 | protected String doInBackground(String... params) {<NEW_LINE>String host = params[0];<NEW_LINE>String message = params[1];<NEW_LINE>String portStr = params[2];<NEW_LINE>int port = TextUtils.isEmpty(portStr) ? 0 : Integer.valueOf(portStr);<NEW_LINE>try {<NEW_LINE>channel = OkHttpChannelBuilder.forAddress(host, port).tra... | reply = stub.sayHello(request); |
387,531 | private void writeDataFlowConfig(Document document, Element parentElement) {<NEW_LINE>Element dataFlowConfigTag = document.createElement(XMLConstants.TAG_DATA_FLOW_CONFIGURATION);<NEW_LINE>parentElement.appendChild(dataFlowConfigTag);<NEW_LINE>PathConfiguration pathConfig = config.getPathConfiguration();<NEW_LINE>Solve... | (config.getEnableReflection())); |
904,568 | public void testCriteriaQuery_int(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.f... | , em.contains(findEntity)); |
281,487 | public void marshall(AutomationExecution automationExecution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (automationExecution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(automationExecution.getAuto... | automationExecution.getTargetLocations(), TARGETLOCATIONS_BINDING); |
1,185,317 | public static TradeStatistics3 from(Trade trade, @Nullable String referralId, boolean isTorNetworkNode) {<NEW_LINE>Map<String, String> extraDataMap = new HashMap<>();<NEW_LINE>if (referralId != null) {<NEW_LINE>extraDataMap.put(OfferPayload.REFERRAL_ID, referralId);<NEW_LINE>}<NEW_LINE>NodeAddress mediatorNodeAddress =... | 4) : refundAgentNodeAddress.getFullAddress(); |
698,333 | private void loadUri(Uri uri) {<NEW_LINE>showFloatingActionButton(false);<NEW_LINE>if (mTaskUri != null) {<NEW_LINE>mAppContext.getContentResolver().unregisterContentObserver(mObserver);<NEW_LINE>persistTask();<NEW_LINE>}<NEW_LINE>Uri oldUri = mTaskUri;<NEW_LINE>mTaskUri = uri;<NEW_LINE>if (uri != null) {<NEW_LINE>mCon... | registerContentObserver(uri, false, mObserver); |
1,440,403 | private Method findMethod(Class<?> type, Method method, Map<Method, Method> cache) {<NEW_LINE>Method result = cache.get(method);<NEW_LINE>if (result != null && result != NULL_MARKER_METHOD) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>Class<?>[<MASK><NEW_LINE>if (method.getName().equals("dispatch")) {<NEW_LINE>// re-r... | ] parameterTypes = method.getParameterTypes(); |
1,720,097 | public void restartJobExecution(long jobExecutionId) throws NoSuchJobExecutionException {<NEW_LINE>logger.info("Restarting Job with Id " + jobExecutionId);<NEW_LINE>final TaskJobExecution taskJobExecution = this.getJobExecution(jobExecutionId);<NEW_LINE>final JobExecution jobExecution = taskJobExecution.getJobExecution... | launcherList = new ArrayList<>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.