idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
273,120 | public void addDataRecord(@NonNull final I_MD_Cockpit cockpitRecord) {<NEW_LINE>final IProductBL productBL = Services.get(IProductBL.class);<NEW_LINE>final I_C_UOM uom = productBL.getStockUOM(cockpitRecord.getM_Product_ID());<NEW_LINE>pmmQtyPromised = addToNullable(pmmQtyPromised, cockpitRecord.getPMM_QtyPromised_OnDat... | cockpitRecord.getQtyDemand_PP_Order(), uom); |
1,834,566 | public MappeableContainer ior(final MappeableBitmapContainer b2) {<NEW_LINE>if (!BufferUtil.isBackedBySimpleArray(bitmap)) {<NEW_LINE>throw new RuntimeException("Should not happen. Internal bug.");<NEW_LINE>}<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>this.cardinality = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpl... | cardinality += Long.bitCount(w); |
759,908 | private boolean isPolygonContains(List<LatLng> path, LatLng point) {<NEW_LINE>int wn = 0;<NEW_LINE>VisibleRegion visibleRegion = projection.getVisibleRegion();<NEW_LINE>LatLngBounds bounds = visibleRegion.latLngBounds;<NEW_LINE>Point sw = projection.toScreenLocation(bounds.southwest);<NEW_LINE>Point touchPoint = projec... | = sw.y - touchPoint.y; |
1,346,925 | public void init() throws IOException {<NEW_LINE>LOG.info("Test Inputs: ");<NEW_LINE>LOG.info(" Test Operation: " + operation);<NEW_LINE>LOG.info(" Start time: " + sdf.format(new Date(startTime)));<NEW_LINE>if (!local) {<NEW_LINE>LOG.info(" Number of maps: " + numberOfMaps);<NEW_LINE>}... | LOG.info(" Number of files: " + numberOfFiles); |
732,587 | private void updateToolbarSwitch() {<NEW_LINE>View view = getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean checked = !settings.VOICE_MUTE.getModeValue(getSelectedAppMode());<NEW_LINE>int color = checked ? getActiveProfileColor() : ContextCompat.getColor(<MASK><NEW_LINE>View switchCon... | app, R.color.preference_top_switch_off); |
1,292,754 | protected IAllocationResult loadHU(final I_M_HU luHU, final IAllocationRequest request) {<NEW_LINE>final IMutableAllocationResult result = AllocationUtils.createMutableAllocationResult(request);<NEW_LINE>// 06647: create and add a HU-trx just so that HULoader.load0() will later on transfer the source's attributes also ... | createLUTransactionForAttributeTransfer(luHU, luItemPI, request); |
398,271 | private int quicksortPartition(final float[] values, int lower, int upper, short[] originalIndices) {<NEW_LINE>float value = values[lower];<NEW_LINE>int up = upper;<NEW_LINE>int down = lower + 2;<NEW_LINE>float tempValue;<NEW_LINE>short tempIndex;<NEW_LINE>while (down < up) {<NEW_LINE>while (down < up && values[down] <... | originalIndices[up / 2] = tempIndex; |
14,123 | private void untar(InputStream is, Path dir, boolean gzip) throws IOException {<NEW_LINE>InputStream bis;<NEW_LINE>if (gzip) {<NEW_LINE>bis = new GzipCompressorInputStream(new BufferedInputStream(is));<NEW_LINE>} else {<NEW_LINE>bis = new BufferedInputStream(is);<NEW_LINE>}<NEW_LINE>bis = new CloseShieldFilterInputStre... | tis, file, StandardCopyOption.REPLACE_EXISTING); |
1,513,282 | private void run() {<NEW_LINE>int regSz = ssaMeth.getRegCount();<NEW_LINE>ArrayList<TypedConstant> constantList = getConstsSortedByCountUse();<NEW_LINE>int toCollect = Math.min(<MASK><NEW_LINE>SsaBasicBlock start = ssaMeth.getEntryBlock();<NEW_LINE>// Constant to new register containing the constant<NEW_LINE>HashMap<Ty... | constantList.size(), MAX_COLLECTED_CONSTANTS); |
424,157 | @SchedulerSupport(SchedulerSupport.NONE)<NEW_LINE>public static <@NonNull T> Observable<T> just(@NonNull T item1, @NonNull T item2, @NonNull T item3, @NonNull T item4, @NonNull T item5, @NonNull T item6, @NonNull T item7, @NonNull T item8, @NonNull T item9, @NonNull T item10) {<NEW_LINE>Objects.requireNonNull(item1, "i... | Objects.requireNonNull(item10, "item10 is null"); |
1,720,643 | public void populateTable(Context context, String password) {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>SQLiteDatabase.loadLibs(context);<NEW_LINE>String dbPath = context.getDatabasePath("Members.db").getPath();<NEW_LINE><MASK><NEW_LINE>if (!dbPathFile.exists()) {<NEW_LINE>dbPathFile.getParentFile().mkdirs();<NEW_LINE>}<N... | File dbPathFile = new File(dbPath); |
456,143 | public static void main(String[] arg) {<NEW_LINE>System.setProperty("fst.unsafe", "true");<NEW_LINE>Unsafe un = FSTUtil.getUnsafe();<NEW_LINE><MASK><NEW_LINE>FSTClazzInfo cl = conf.getClassInfo(Sample.class);<NEW_LINE>Sample test = new Sample();<NEW_LINE>System.out.println("fioff " + cl.getFieldInfo("fastTime", Date.cl... | FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration(); |
1,304,335 | public com.amazonaws.services.eks.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.eks.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.eks.model.ServiceUnavailableException(null);<NEW_LI... | JsonToken token = context.getCurrentToken(); |
814,561 | private static ExprAclLine.Builder toIpAccessListLine(ExtendedAccessListLine line, Map<String, ObjectGroup> objectGroups) {<NEW_LINE>IpSpace srcIpSpace = line.getSourceAddressSpecifier().toIpSpace();<NEW_LINE>IpSpace dstIpSpace = line.getDestinationAddressSpecifier().toIpSpace();<NEW_LINE>AclLineMatchExpr matchService ... | setName(line.getName()); |
415,596 | private String checkOrUncheck(SysSite site, SysUser admin, boolean uncheck, Long[] ids, HttpServletRequest request) {<NEW_LINE>if (CommonUtils.notEmpty(ids)) {<NEW_LINE>List<CmsContent> entityList;<NEW_LINE>if (uncheck) {<NEW_LINE>entityList = service.uncheck(site.getId(), admin, ids);<NEW_LINE>} else {<NEW_LINE>entity... | publish(site, entity, admin); |
487,129 | public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricActivityInstanceEntityManager historicActivityInstanceEntityManager = processEngineConfiguration.getHistoricActivityInstanceEntityManager();<NEW_LINE>HistoricActivityInstanceEntity historicActivi... | (historicalData, HistoryJsonConstants.PROCESS_DEFINITION_ID)); |
1,813,482 | final CreateSnapshotResult executeCreateSnapshot(CreateSnapshotRequest createSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSnapshotRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateSnapshotRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
668,469 | void SavitzkyGolay7() {<NEW_LINE>final int len = 7;<NEW_LINE>double[] window = new double[len];<NEW_LINE>init(window, data[0]);<NEW_LINE>final int mid = (<MASK><NEW_LINE>for (int i = 0; i < data.length && i <= mid; i++) {<NEW_LINE>window[i + mid] = data[i];<NEW_LINE>}<NEW_LINE>for (int i = 0; i < data.length; i++) {<NE... | window.length - 1) / 2; |
1,125,828 | public void run() {<NEW_LINE>// check for non-writeable app dir on non-vista platforms (vista we've got a chance of<NEW_LINE>// elevating perms when updating) and warn user. Particularly useful on OSX when<NEW_LINE>// users haven't installed properly<NEW_LINE>if (!(Constants.isWindowsVistaOrHigher || Constants.isUnix |... | String app_str = SystemProperties.getApplicationPath(); |
716,464 | public void draw(int x, int y) {<NEW_LINE>// Draw background<NEW_LINE>drawBackground(x, y);<NEW_LINE>// Draw icon<NEW_LINE>Minecraft.getMinecraft().renderEngine.bindTexture(TEXTURES);<NEW_LINE>drawIcon(CoreIconProvider.ENERGY.getSprite(), x + 3, y + 4);<NEW_LINE>if (!isFullyOpened()) {<NEW_LINE>return;<NEW_LINE>}<NEW_L... | 22, y + 32, textColour); |
372,126 | public OKCoinWithdraw withdraw(String currencySymbol, String withdrawAddress, BigDecimal amount, String target) throws IOException {<NEW_LINE>String fee = null;<NEW_LINE>if (target.equals("address")) {<NEW_LINE>// External address<NEW_LINE>if (currencySymbol.startsWith("btc"))<NEW_LINE>fee = "0.002";<NEW_LINE>else if (... | withdrawAddress, amount, target, fee); |
1,605,022 | protected void execute(final Event e) {<NEW_LINE>if (potionEffect) {<NEW_LINE>for (LivingEntity livingEntity : entities.getArray(e)) {<NEW_LINE>PotionEffect[] potionEffects = this.potionEffects.getArray(e);<NEW_LINE>PotionEffectUtils.addEffects(livingEntity, potionEffects);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>final P... | dur = duration.getSingle(e); |
412,549 | public <T> Field<T> create(int number, String name, final java.lang.reflect.Field f, IdStrategy strategy) {<NEW_LINE>final long <MASK><NEW_LINE>return new Field<T>(FieldType.BYTES, number, name, f.getAnnotation(Tag.class)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void mergeFrom(Input input, T message) throws IOEx... | offset = us.objectFieldOffset(f); |
18,768 | private AbstractExecutionStep createAssetLibrariesMetadataStep(Path libSubdirectory, String metadataFilename, APKModule module, ImmutableSortedSet.Builder<Path> inputAssetLibrariesBuilder) {<NEW_LINE>return new AbstractExecutionStep("write_metadata_for_asset_libraries_" + module.getName()) {<NEW_LINE><NEW_LINE>@Overrid... | > metadata = metadataLines.build(); |
456,280 | protected // Contrib Manager was opened.) [fry 220311]<NEW_LINE>void updateContributionListing() {<NEW_LINE>Editor editor = base.getActiveEditor();<NEW_LINE>if (editor != null) {<NEW_LINE>List<Library> libraries = new ArrayList<>(editor.getMode().contribLibraries);<NEW_LINE>// Only add Foundation libraries that are ins... | .getSketchbookLibrariesFolder().getAbsolutePath(); |
1,397,839 | public SelectAttributesActivity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SelectAttributesActivity selectAttributesActivity = new SelectAttributesActivity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | )).unmarshall(context)); |
1,588,503 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE><MASK><NEW_LINE>getListView().setSelector(android.R.color.transparent);<NEW_LINE>developersLoader = Single.create((SingleOnSubscribe<ArrayList<SimpleIconListAdapter.ListI... | getListView().setDivider(null); |
335,119 | private static void quickSort1(long[] x, int off, int len, LongComparator comp) {<NEW_LINE>// Insertion sort on smallest arrays<NEW_LINE>if (len < SMALL) {<NEW_LINE>for (int i = off; i < len + off; i++) for (int j = i; j > off && comp.compare(x[j - 1], x[j]) > 0; j--) swap(x, j, j - 1);<NEW_LINE>return;<NEW_LINE>}<NEW_... | (x, a++, b); |
1,310,973 | protected void writeSkipData(int level, DataOutput skipBuffer) throws IOException {<NEW_LINE>int <MASK><NEW_LINE>skipBuffer.writeVInt(delta);<NEW_LINE>lastSkipDoc[level] = curDoc;<NEW_LINE>skipBuffer.writeVLong(curDocPointer - lastSkipDocPointer[level]);<NEW_LINE>lastSkipDocPointer[level] = curDocPointer;<NEW_LINE>if (... | delta = curDoc - lastSkipDoc[level]; |
593,585 | private void initialize(Dimension dim, String[] tabLabels) {<NEW_LINE>this.setLayout(new GridBagLayout());<NEW_LINE>this.setSize(dim);<NEW_LINE>if (tabLabels == null) {<NEW_LINE>this.initializeSinglePane(dim);<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LI... | this.initializeTabbed(dim, tabLabels); |
209,518 | static Map<String, BitSet> readCapabilities(File sysPath) {<NEW_LINE>Map<String, BitSet> capsMap = new HashMap<String, BitSet>();<NEW_LINE>File[] capsFiles = new File(sysPath, "device/capabilities").listFiles();<NEW_LINE>if (capsFiles == null) {<NEW_LINE>return capsMap;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < capsFiles... | bb = ByteBuffer.wrap(b); |
1,832,612 | public void slotsChanged(Container inventory) {<NEW_LINE>final NullMenu cn = new NullMenu();<NEW_LINE>final CraftingContainer ic = new CraftingContainer(cn, 3, 3);<NEW_LINE>for (int x = 0; x < 9; x++) {<NEW_LINE>ic.setItem(x, this.craftingSlots[x].getItem());<NEW_LINE>}<NEW_LINE>Level level = this.getPlayerInventory().... | , level).orElse(null); |
625,714 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "s0price", "s1price" };<NEW_LINE>String text = "@name('s0') select irstream s0.price as s0price, " + " (select price from SupportMarketDataBean(symbol='S1')#length(10) s1" + " where s0.volume = s1.volume) as s1price " + " from Suppo... | , -10.0 } }, null); |
1,330,624 | final CreateEnvironmentResult executeCreateEnvironment(CreateEnvironmentRequest createEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
666,491 | private static void recreateCheckpoint(final Path pageFile, final int number) throws IOException {<NEW_LINE>final ByteBuffer buffer = ByteBuffer.allocateDirect(<MASK><NEW_LINE>LOGGER.info("Recreating missing checkpoint for page {}", pageFile);<NEW_LINE>try (final FileChannel page = FileChannel.open(pageFile)) {<NEW_LIN... | MmapPageIOV2.SEQNUM_SIZE + MmapPageIOV2.LENGTH_SIZE); |
1,081,116 | public ListKeyPoliciesResult listKeyPolicies(ListKeyPoliciesRequest listKeyPoliciesRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listKeyPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMet... | JsonUnmarshallerContext> unmarshaller = new ListKeyPoliciesResultJsonUnmarshaller(); |
419,741 | public static GetMonitorListResponse unmarshall(GetMonitorListResponse getMonitorListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMonitorListResponse.setRequestId(_ctx.stringValue("GetMonitorListResponse.RequestId"));<NEW_LINE>getMonitorListResponse.setCode(_ctx.stringValue("GetMonitorListResponse.Code"));<NEW_LIN... | ("GetMonitorListResponse.Data.Records[" + i + "].Expression")); |
338,409 | private void initCurrentStep(boolean forward) {<NEW_LINE>final AbstractCustomizeWizardStep <MASK><NEW_LINE>boolean disableBack = myCurrentStep.beforeShown(forward);<NEW_LINE>myCardLayout.swipe(myContentPanel, myCurrentStep.getTitle(), JBCardLayout.SwipeDirection.AUTO, new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_L... | myCurrentStep = mySteps.get(myIndex); |
1,377,612 | protected void configureGraphicalViewer() {<NEW_LINE>super.configureGraphicalViewer();<NEW_LINE>this.getGraphicalViewer().getControl().setBackground(UIUtils.getColorRegistry().get(ERDUIConstants.COLOR_ERD_DIAGRAM_BACKGROUND));<NEW_LINE>GraphicalViewer graphicalViewer = getGraphicalViewer();<NEW_LINE>DBPPreferenceStore ... | ZoomManager zoomManager = rootPart.getZoomManager(); |
1,114,253 | public void marshall(DescribeApplicableIndividualAssessmentsRequest describeApplicableIndividualAssessmentsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (describeApplicableIndividualAssessmentsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>... | describeApplicableIndividualAssessmentsRequest.getReplicationInstanceArn(), REPLICATIONINSTANCEARN_BINDING); |
657,333 | private void init() {<NEW_LINE>byte[] magic = this.buffer.readByteArray(MAGIC.length);<NEW_LINE>if (CompareUtils.uArrCompare(magic, MAGIC) != 0) {<NEW_LINE>throw new IllegalStateException("bad dex patch file magic: " + Arrays.toString(magic));<NEW_LINE>}<NEW_LINE>this.version = this.buffer.readShort();<NEW_LINE>if (Com... | = this.buffer.readInt(); |
1,448,201 | protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec) {<NEW_LINE>final int specWidthSize = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>final int specWidthMode = MeasureSpec.getMode(widthMeasureSpec);<NEW_LINE>final int specHeightSize = MeasureSpec.getSize(heightMeasureSpec);<NEW_LINE>fin... | makeMeasureSpec(measureTileHeight, MeasureSpec.EXACTLY); |
1,289,276 | public void convert(@Nonnull final String rawDataDirectoryPath, @Nullable final String outputPath, @Nonnull final Map<String, Tools> tools, @Nonnull final List<File> inspectionsResults) throws InspectionsReportConverter.ConversionException {<NEW_LINE>if (outputPath == null) {<NEW_LINE>throw new ConversionException("Out... | "Folder isn't expected here: " + inspectionData.getName()); |
1,438,938 | private int serialize(final int activePathIndex) {<NEW_LINE>expandBuffers();<NEW_LINE>final int newState = _size;<NEW_LINE>final int start = _activePath[activePathIndex];<NEW_LINE>final int len = _nextArcOffset[activePathIndex] - start;<NEW_LINE>if (len > ConstantArcSizeFST.ARC_SIZE) {<NEW_LINE>assert len % ConstantArc... | start, _serialized, newState, len); |
626,863 | public CompletableFuture<Void> cancelScheduledMessageAsync(Long[] sequenceNumbers, Duration timeout) {<NEW_LINE>if (TRACE_LOGGER.isDebugEnabled()) {<NEW_LINE>TRACE_LOGGER.debug("Cancelling scheduled message(s) '{}' to '{}'", Arrays.toString(sequenceNumbers), this.sendPath);<NEW_LINE>}<NEW_LINE>return this.createRequest... | statusCode = RequestResponseUtils.getResponseStatusCode(responseMessage); |
1,827,652 | public static Table downLoadFromUrl(String urlStr, String charset, String method, String content, ArrayList<String> headers) throws IOException {<NEW_LINE>URL url = new URL(urlStr);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.openConnection();<NEW_LINE>conn.setConnectTimeout(3 * 1000);<NEW_LINE>conn.setRe... | write(content.getBytes()); |
75,255 | void updateMonitoredServices() {<NEW_LINE>Set<ServiceDescriptor> online = selector.selectAllServices().stream().filter(descriptor -> !nodeInfo.getNodeId().equals(descriptor.getNodeId())).collect(ImmutableCollectors.toImmutableSet());<NEW_LINE>Set<UUID> onlineIds = online.stream().map(ServiceDescriptor::getId).collect(I... | ).forEach(MonitoringTask::disable); |
627,021 | // Returns the indices that satisfy both comparator1, val1 and comparator2, val2<NEW_LINE>public static int[] findAnd(double[] x, int comparator1, double val1, int comparator2, double val2) {<NEW_LINE>int[] indices = null;<NEW_LINE>int[] indices1 = find(x, comparator1, val1);<NEW_LINE>int[] indices2 = find(x, comparato... | count++] = indices1[i]; |
99,767 | void init(RunTime rt) {<NEW_LINE>runTime = rt;<NEW_LINE>setResizable(false);<NEW_LINE>setUndecorated(true);<NEW_LINE>Container pane = getContentPane();<NEW_LINE>((JComponent) pane).setBorder(BorderFactory.createLineBorder<MASK><NEW_LINE>pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));<NEW_LINE>pane.add(new JLabel... | (Color.lightGray, 5)); |
688,895 | private Data buildResourceData() {<NEW_LINE>if (parentResource != null && parentResource.isExtended()) {<NEW_LINE>this.extended = true;<NEW_LINE>}<NEW_LINE>processMethodBuilders();<NEW_LINE>processChildResourceBuilders();<NEW_LINE>final List<Data> mergedChildResources = mergeResources(childResources);<NEW_LINE>Set<Clas... | = new HashSet<>(handlerInstances); |
447,333 | public void init(ClientCapabilities clientCapabilities, ServerCapabilities severCapabilities) {<NEW_LINE>SemanticTokensCapabilities semanticTokens = clientCapabilities != null && clientCapabilities.getTextDocument() != null ? clientCapabilities.getTextDocument().getSemanticTokens() : null;<NEW_LINE>if (semanticTokens !... | setFull(new SemanticTokensServerFull(false)); |
1,235,615 | private boolean isClinitAlreadyDesugared(ImmutableList<String> companionsToAccessToTriggerInterfaceClinit) {<NEW_LINE>InsnList instructions = clInitMethodNode.instructions;<NEW_LINE>if (instructions.size() <= companionsToAccessToTriggerInterfaceClinit.size()) {<NEW_LINE>// The <clinit> must end with RETURN, so if the i... | methodInsnNode.desc, InterfaceDesugaring.COMPANION_METHOD_TO_TRIGGER_INTERFACE_CLINIT_DESC); |
1,007,721 | private InputStream openContentStream() {<NEW_LINE>Document document = new Document(XmlConstants.MYBATIS_GENERATOR_CONFIG_PUBLIC_ID, XmlConstants.MYBATIS_GENERATOR_CONFIG_SYSTEM_ID);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>XmlElement generatorConfiguration = new XmlElement("generatorConfiguration");<NEW_LINE>document.setRootE... | new Attribute("targetProject", "???")); |
587,076 | public FLClientStatus pwCreateMask() {<NEW_LINE>LOGGER.info(String.format("[PairWiseMask] ==============request flID: %s =============="<MASK><NEW_LINE>// round 0<NEW_LINE>if (localFLParameter.isStopJobFlag()) {<NEW_LINE>LOGGER.info(Common.addTag("the stopJObFlag is set to true, the job will be stop"));<NEW_LINE>return... | , localFLParameter.getFlID())); |
532,133 | public void registerShortcut(GlobalShortcutListener listener, AWTKeyStroke keyStroke, boolean add) {<NEW_LINE>synchronized (mapActions) {<NEW_LINE>List<AWTKeyStroke> <MASK><NEW_LINE>boolean ok = false;<NEW_LINE>if (keyStroke == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (keystrokes == null) {<NEW_LINE>keystrokes =... | keystrokes = mapActions.get(listener); |
1,641,852 | private static void generic(AccountService accountService) throws IOException {<NEW_LINE>System.out.println("----------GENERIC----------");<NEW_LINE>System.out.println(accountService.requestDepositAddress(Currency.BTC));<NEW_LINE>System.out.println(accountService.getAccountInfo());<NEW_LINE>System.out.println(accountSe... | * 60 * 60 * 1000)); |
1,785,089 | JournalSegment<E> createSegment(JournalSegmentDescriptor descriptor) {<NEW_LINE>File segmentFile = JournalSegmentFile.createSegmentFile(name, directory, descriptor.id());<NEW_LINE>RandomAccessFile raf;<NEW_LINE>FileChannel channel;<NEW_LINE>try {<NEW_LINE>raf <MASK><NEW_LINE>raf.setLength(descriptor.maxSegmentSize());<... | = new RandomAccessFile(segmentFile, "rw"); |
1,102,687 | public static int importFromTargetPath(String host, int port, String username, String password, String targetPath, String timeZone) throws IoTDBConnectionException {<NEW_LINE>try {<NEW_LINE>session = new Session(host, port, username, password, false);<NEW_LINE>session.open(false);<NEW_LINE>timeZoneID = timeZone;<NEW_LI... | "Encounter an error when connecting to server, because " + e.getMessage()); |
1,733,735 | void syncClose() {<NEW_LINE>logger.info("Sync close file: {}, will firstly async close it", tsFileResource.getTsFile().getAbsolutePath());<NEW_LINE>if (shouldClose) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>synchronized (flushingMemTables) {<NEW_LINE>try {<NEW_LINE>asyncClose();<NEW_LINE>logger.info("Start to wait until f... | getTsFile().getAbsolutePath()); |
1,565,011 | public Object calculate(Context ctx) {<NEW_LINE>if (prevRank == null) {<NEW_LINE>prepare(param, ctx);<NEW_LINE>if (gexps != null) {<NEW_LINE>int gcount = gexps.length;<NEW_LINE>prevGroupVals = new Object[gcount];<NEW_LINE>for (int i = 0; i < gcount; ++i) {<NEW_LINE>prevGroupVals[i] = gexps[i].calculate(ctx);<NEW_LINE>}... | val = exp.calculate(ctx); |
981,949 | private Slime patchTenant(RestApi.RequestContext requestContext, Slime body) {<NEW_LINE>var security = requestContext.attributes().get(SecurityContext.ATTRIBUTE_NAME).map(SecurityContext.class::cast).orElseThrow(() -> new RestApiException.Forbidden("Must be logged in"));<NEW_LINE>var tenantName = TenantName.from(reques... | var cursor = response.setObject(); |
484,864 | final GetThingShadowResult executeGetThingShadow(GetThingShadowRequest getThingShadowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getThingShadowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | endClientExecution(awsRequestMetrics, request, response); |
247,358 | private void printLocals(final Callback callback) {<NEW_LINE>Type[] args = Type.getArgumentTypes(callback.getDescriptorWithAllLocals());<NEW_LINE>SignaturePrinter methodSig = new SignaturePrinter(callback.target.method, callback.argNames);<NEW_LINE>SignaturePrinter handlerSig = new SignaturePrinter(this.info.getMethodN... | (" * Expected callback signature").add(" * /"); |
1,160,360 | protected void forkedProcess(int id, int processors, RelationshipRecord[] batch) {<NEW_LINE>int <MASK><NEW_LINE>int start = forwards ? 0 : batch.length - 1;<NEW_LINE>int end = forwards ? batch.length : -1;<NEW_LINE>int localChangeCount = 0;<NEW_LINE>for (int i = start; i != end; i += stride) {<NEW_LINE>RelationshipReco... | stride = forwards ? 1 : -1; |
162,429 | private Mono<Response<Flux<ByteBuffer>>> enableAzureMonitorWithResponseAsync(String resourceGroupName, String clusterName, AzureMonitorRequest parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is ... | error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); |
166,364 | // NOSONAR<NEW_LINE>@Override<NEW_LINE>public Message<?> toMessage(List<ConsumerRecord<?, ?>> records, @Nullable Acknowledgment acknowledgment, Consumer<?, ?> consumer, Type type) {<NEW_LINE>KafkaMessageHeaders kafkaMessageHeaders = new KafkaMessageHeaders(this.generateMessageId, this.generateTimestamp);<NEW_LINE>Map<S... | offsets = new ArrayList<>(); |
134,343 | public synchronized void openHeapWalker(final HeapWalker hw) {<NEW_LINE>if (!heapWalkers.contains(hw)) {<NEW_LINE>heapWalkers.add(hw);<NEW_LINE>}<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>final TopComponent tc = getTopComponent(hw);<NEW_LINE>if (tc == null) {<N... | hw.getHeapDumpFile() + "]"); |
1,576,536 | public void updatedHealthStatus(String namespaceId, String serviceName, String serverIP) {<NEW_LINE>Message msg = synchronizer.get(serverIP, UtilsAndCommons.assembleFullServiceName(namespaceId, serviceName));<NEW_LINE>JSONObject serviceJson = JSON.parseObject(msg.getData());<NEW_LINE>JSONArray ipList = serviceJson.getJ... | (instance.toIPAddr())); |
247,168 | public H264QvbrSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>H264QvbrSettings h264QvbrSettings = new H264QvbrSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | JsonToken token = context.getCurrentToken(); |
1,191,477 | protected EventSubscriptionDeclaration parseSignalEventDefinition(Element signalEventDefinitionElement, boolean isThrowing, String signalElementId) {<NEW_LINE>String signalRef = signalEventDefinitionElement.attribute("signalRef");<NEW_LINE>if (signalRef == null) {<NEW_LINE>addError("signalEventDefinition does not have ... | signalRef + "'", signalEventDefinitionElement, signalElementId); |
502,797 | public StopThingRegistrationTaskResult stopThingRegistrationTask(StopThingRegistrationTaskRequest stopThingRegistrationTaskRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopThingRegistrationTaskRequest);<NEW_LINE>AWSRequestMetrics aws... | new JsonResponseHandler<StopThingRegistrationTaskResult>(unmarshaller); |
1,810,613 | public void deleteOrder(String orderId) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'orderId' is set<NEW_LINE>if (orderId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");<NEW_LINE>}<NEW_LINE... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
277,946 | public static void registerType(final ModelBuilder bpmnModelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = bpmnModelBuilder.defineType(Definitions.class, BPMN_ELEMENT_DEFINITIONS).namespaceUri(BPMN20_NS).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<Definitions>() {<NEW_LINE><N... | stringAttribute(BPMN_ATTRIBUTE_EXPORTER).build(); |
235,885 | public void init() {<NEW_LINE>Map <MASK><NEW_LINE>props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrap_servers);<NEW_LINE>props.put(ProducerConfig.MAX_BLOCK_MS_CONFIG, 50000);<NEW_LINE>try (final AdminClient adminClient = KafkaAdminClient.create(props)) {<NEW_LINE>try {<NEW_LINE>final NewTopic newTopic = new Ne... | props = new HashMap<>(); |
1,547,855 | private String readString() throws IOException, NoOutputException {<NEW_LINE>StringBuilder line = new StringBuilder();<NEW_LINE>while (true) {<NEW_LINE>String subline = processOut.readLine();<NEW_LINE>if (subline == null) {<NEW_LINE>StringBuilder errorMessage = new StringBuilder();<NEW_LINE>errorMessage.append("Pipe to... | NoOutputException(errorMessage.toString()); |
150,318 | public static boolean isManaged(URI uri) {<NEW_LINE>java.util.Objects.requireNonNull(uri);<NEW_LINE>boolean asserts = false;<NEW_LINE>assert asserts = true;<NEW_LINE>if (asserts) {<NEW_LINE>URI normUri = BaseUtilities.normalizeURI(uri);<NEW_LINE>if (!uri.equals(normUri)) {<NEW_LINE>throw new IllegalArgumentException("M... | new Object[] { uri }); |
819,967 | public ISeq<Phenotype<G, C>> select(final Seq<Phenotype<G, C>> population, final int count, final Optimize opt) {<NEW_LINE>final var random = RandomRegistry.random();<NEW_LINE>final CrowdedComparator<Phenotype<G, C>> cc = new CrowdedComparator<>(population, opt, _dominance, _comparator, _distance, _dimension);<NEW_LINE... | S = new ArrayList<>(); |
482,152 | public CodegenExpression underlyingGetCodegen(CodegenExpression underlyingExpression, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod method = codegenMethodScope.makeChild(EPTypePremade.OBJECT.getEPType(), this.getClass(), codegenClassScope).addParam(EPTypePremade.OB... | (method, ref("und")); |
1,046,091 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().<MASK><NEW_LINE>final IOperandTreeNode... | getChildren().get(0); |
255,450 | private void fillOutMemoryPoolData(GenerationalGCPauseEvent event, GenerationalForwardReference values) {<NEW_LINE>int map = 0;<NEW_LINE>map |= (values.getHeap() != null) ? 1 : 0;<NEW_LINE>map |= (values.getYoung() != null) ? 2 : 0;<NEW_LINE>map |= (values.getTenured() != null) ? 4 : 0;<NEW_LINE>switch(map) {<NEW_LINE>... | ), values.getHeap()); |
1,639,592 | final CreateAppResult executeCreateApp(CreateAppRequest createAppRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateAppRequest> request = null;<NE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
512,317 | final UpdateConnectorDefinitionResult executeUpdateConnectorDefinition(UpdateConnectorDefinitionRequest updateConnectorDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateConnectorDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
444,989 | private void handleResult(Reconciliation reconciliation, AsyncResult<Void> result, Timer.Sample reconciliationTimerSample) {<NEW_LINE>if (result.succeeded()) {<NEW_LINE><MASK><NEW_LINE>successfulReconciliationsCounter(reconciliation.namespace()).increment();<NEW_LINE>reconciliationTimerSample.stop(reconciliationsTimer(... | updateResourceState(reconciliation, true, null); |
1,354,312 | final ListAvailableSolutionStacksResult executeListAvailableSolutionStacks(ListAvailableSolutionStacksRequest listAvailableSolutionStacksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAvailableSolutionStacksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,083,321 | private static String generateWrapperException(File dir, Class jdiException) throws IOException {<NEW_LINE>String name = jdiException.getSimpleName();<NEW_LINE>String cName = name + "Wrapper";<NEW_LINE>String eName = jdiException.getName();<NEW_LINE>File cf = new File(dir, cName + ".java");<NEW_LINE>Writer w = new Buff... | w.write(getLicense()); |
103,629 | public Request<CreateConfigurationSetTrackingOptionsRequest> marshall(CreateConfigurationSetTrackingOptionsRequest createConfigurationSetTrackingOptionsRequest) {<NEW_LINE>if (createConfigurationSetTrackingOptionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_L... | (trackingOptions.getCustomRedirectDomain())); |
328,555 | public static void fire(TriggerEvent event, InsertTabletPlan insertTabletPlan, int firePosition) throws TriggerExecutionException {<NEW_LINE>IMeasurementMNode[] mNodes = insertTabletPlan.getMeasurementMNodes();<NEW_LINE>int size = mNodes.length;<NEW_LINE>long[] timestamps = insertTabletPlan.getTimes();<NEW_LINE>Object[... | TriggerExecutor executor = mNode.getTriggerExecutor(); |
1,253,480 | public static IStatus copyDirectoryWithProgress(File source, File destination, IProgressMonitor monitor, boolean cancelable) {<NEW_LINE>if (source.isDirectory()) {<NEW_LINE>int updateSize = 2;<NEW_LINE>// Setup the progress monitor<NEW_LINE>if (monitor != null) {<NEW_LINE>// Batch up operations so we don't constantly u... | { 0 }, updateSize, cancelable); |
1,513,436 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(listTagsForResourceRequest)); |
211,388 | static void readFromStream(DataInputStream dis, HprofHeap heap, TagBounds[] heapTagBounds) throws IOException {<NEW_LINE>int tags = dis.readInt();<NEW_LINE>for (int i = 0; i < tags; i++) {<NEW_LINE>int tag = dis.readInt();<NEW_LINE>long startOffset = dis.readLong();<NEW_LINE>long endOffset = dis.readLong();<NEW_LINE>Ta... | StringSegment(heap, startOffset, endOffset); |
1,202,941 | public Set<Permission> fetchAllPermissions(String resouceName) throws IOException, GeneralSecurityException {<NEW_LINE>logger.atInfo().log("Fetching all permissions from " + resouceName);<NEW_LINE>QueryTestablePermissionsRequest requestBody = new QueryTestablePermissionsRequest();<NEW_LINE>requestBody.setFullResourceNa... | setPageToken(response.getNextPageToken()); |
1,248,102 | public boolean configured(AttachSettings settings) {<NEW_LINE>// no settings provided<NEW_LINE>if (settings == null)<NEW_LINE>return false;<NEW_LINE>if (settings.isRemote()) {<NEW_LINE>String host = settings.getHost();<NEW_LINE>// remote settings valid if host provided<NEW_LINE>return host != null && !host.trim().isEmp... | ] vms = JpsProxy.getRunningVMs(); |
1,585,520 | public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {<NEW_LINE>FontRenderer fr = minecraft.fontRenderer;<NEW_LINE>fr.drawString(Lang.GRINDING_BALL_2.get("", LangPower.toPercent(ball.getGrindingMultiplier())), 48, 4, 0x404040);<NEW_LINE>fr.drawString(Lang.GRINDIN... | int dura = ball.getDurability(); |
633,246 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (channel != null) {<NEW_LINE>channel.writeAndFlush(new NetworkMessage("+##Receiv... | .charAt(0) == '1'); |
769,930 | private void processApplicationReferences(EARApplicationInfo appInfo, Application app) throws StateChangeException {<NEW_LINE>Map<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>> allRefs = new EnumMap<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>>(JNDIEnvironmentRefType.class);<NEW_LINE>boolean ... | HashMap<String, String>(); |
1,837,913 | static long doPMmapI64(PMMap mmap, long byteIdx, @Exclusive @Cached LookupInheritedAttributeNode.Dynamic lookupGetItemNode, @Exclusive @Cached CallNode callGetItemNode, @Cached PyLongAsLongNode asLongNode) {<NEW_LINE>long len = mmap.getLength();<NEW_LINE>Object attrGetItem = lookupGetItemNode.execute(mmap, SpecialMetho... | long shift = Byte.SIZE * j; |
1,093,103 | public final Xor_exprContext xor_expr() throws RecognitionException {<NEW_LINE>Xor_exprContext _localctx = new Xor_exprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 124, RULE_xor_expr);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1162);<NEW_LINE>_localc... | .result = _localctx.and_expr.result; |
869,996 | private boolean visitDocComment(VName node, VName absNode, JCModifiers modifiers) {<NEW_LINE>Optional<String> deprecation = Optional.empty();<NEW_LINE>boolean documented = false;<NEW_LINE>if (docScanner != null) {<NEW_LINE>DocCommentVisitResult result = docScanner.visitDocComment(treePath, node, absNode);<NEW_LINE>docu... | a, node.getPath()); |
378,199 | public static HierarchyBrowser createAndAddToPanel(@Nonnull Project project, @Nonnull final HierarchyProvider provider, @Nonnull PsiElement target) {<NEW_LINE>final HierarchyBrowser hierarchyBrowser = provider.createHierarchyBrowser(target);<NEW_LINE>final Content content;<NEW_LINE>final HierarchyBrowserManager hierarc... | Component component = content.getComponent(); |
868,993 | private Map<String, List<InLongIdObject>> reloadInlongId() {<NEW_LINE>// parse group<NEW_LINE>Map<String, InlongGroupId> groupIdMap = new HashMap<>();<NEW_LINE>clusterSetMapper.selectInlongGroupId().forEach(value -> groupIdMap.put(value.getInlongGroupId(), value));<NEW_LINE>// parse stream<NEW_LINE>Map<String, List<InL... | streamIdObj, groupParams, streamParams, inlongIdMap); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.