idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,675,657 | private void supports(ClassWriter writer) {<NEW_LINE>MethodVisitor visitor = writer.visitMethod(ACC_PUBLIC, "supports", "(Ljava/lang/Class;)Z", null, null);<NEW_LINE>visitor.visitParameter("type", 0);<NEW_LINE>visitor.visitCode();<NEW_LINE>visitor.visitVarInsn(ALOAD, 1);<NEW_LINE>visitor.visitLdcInsn(Type.getObjectType... | visitor.visitMaxs(0, 0); |
285,115 | public static void main(final String[] args) throws IOException {<NEW_LINE>String remoteHost = "localhost";<NEW_LINE>if (1 <= args.length) {<NEW_LINE>remoteHost = args[0];<NEW_LINE>}<NEW_LINE>int packetSize = 16;<NEW_LINE>if (2 <= args.length) {<NEW_LINE>packetSize = min(Configuration.MTU_LENGTH_DEFAULT, max(packetSize... | InetSocketAddress(remoteHost, Common.PING_PORT); |
553,779 | public void bindTrackItem(TrackViewHolder viewHolder, SearchResult searchResult, int position) {<NEW_LINE>GPXInfo gpxInfo = (GPXInfo) searchResult.relatedObject;<NEW_LINE>QuickSearchListItem listItem = new QuickSearchListItem(app, searchResult);<NEW_LINE>QuickSearchListAdapter.bindGpxTrack(viewHolder.itemView, listItem... | listener.onItemSelected(searchResult, checked); |
1,275,548 | public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>String channel = wrapper.get(Type.STRING, 0);<NEW_LINE>if (channel.equals("minecraft:trader_list") || channel.equals("trader_list")) {<NEW_LINE>// Passthrough Window ID<NEW_LINE>wrapper.passthrough(Type.INT);<NEW_LINE>int size = wrapper.passthrough(T... | wrapper.passthrough(Type.BOOLEAN); |
561,090 | public JRCrosstabColumnGroup removeColumnGroup(String groupName) {<NEW_LINE>JRCrosstabColumnGroup removed = null;<NEW_LINE>Integer idx = columnGroupsMap.remove(groupName);<NEW_LINE>if (idx != null) {<NEW_LINE>removed = columnGroups.remove((int) idx);<NEW_LINE>for (ListIterator<JRCrosstabColumnGroup> it = columnGroups.l... | String columnTotalGroup = cell.getColumnTotalGroup(); |
695,751 | private void zip(ZipOutputStream out, File root, File file, TransferStatus status, HttpRange range) throws IOException {<NEW_LINE>// Exclude all hidden files starting with a "."<NEW_LINE>if (file.getName().startsWith(".")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String zipName = file.getCanonicalPath().substring(root.ge... | setCompressedSize(file.length()); |
187,463 | final DescribeAppInstanceAdminResult executeDescribeAppInstanceAdmin(DescribeAppInstanceAdminRequest describeAppInstanceAdminRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
650,245 | private void registerLeftWidgets(@NonNull MapActivity mapActivity, @NonNull RouteInfoWidgetsFactory routeWidgetsFactory) {<NEW_LINE>int settingsIconId = R.drawable.ic_action_next_turn;<NEW_LINE>WidgetsPanel leftPanel = WidgetsPanel.LEFT;<NEW_LINE>MapWidget bigInfoControl = routeWidgetsFactory.createNextInfoControl(mapA... | routeWidgetsFactory.createNextInfoControl(mapActivity, true); |
1,354,181 | final DescribeStreamProcessorResult executeDescribeStreamProcessor(DescribeStreamProcessorRequest describeStreamProcessorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStreamProcessorRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,251,498 | public EnumMap<LsMetricStats, ListStatistics> call() throws IOException {<NEW_LINE>final ListStatistics stats = new ListStatistics();<NEW_LINE>long count = 0L;<NEW_LINE>final ListStatistics counts = new ListStatistics();<NEW_LINE>final ListStatistics cpu = new ListStatistics();<NEW_LINE>final ListStatistics mem = new L... | final long newcount = newcounts[0]; |
210,189 | public void listAnomalyDimensionValuesWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorAsyncClient.listAnomalyDimensionValues#String-String-OffsetDateTime-OffsetDateTime-ListAnomalyDimensionValuesOptions<NEW_LINE>final String detectionConfigurationId = "c0f2539f-b804-4ab9-a70f-0da0c89c76d8";... | out.printf("DataFeedDimension Value: %s%n", dimensionValue); |
1,520,230 | private static void fillFromPortfolioTransaction(TransactionPair<PortfolioTransaction> transaction, JTransaction jtx) {<NEW_LINE>jtx.portfolio = transaction.getOwner().toString();<NEW_LINE>PortfolioTransaction.Type type = transaction.getTransaction().getType();<NEW_LINE>switch(type) {<NEW_LINE>case BUY:<NEW_LINE>jtx.ty... | .type = JTransaction.Type.SECURITY_TRANSFER; |
137,419 | private void initData() throws ParserConfigurationException, IOException, SAXException {<NEW_LINE>DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = dbFactory.newDocumentBuilder();<NEW_LINE>Document doc = builder.parse(ExternalExtensionsDialog.class.getResourceAs... | description, version, compatibility, uri); |
464,347 | protected void perform(@Nonnull final XDebugSession session, final DataContext dataContext) {<NEW_LINE>final XDebuggerEditorsProvider editorsProvider = session.getDebugProcess().getEditorsProvider();<NEW_LINE>final XStackFrame stackFrame = session.getCurrentStackFrame();<NEW_LINE>final XDebuggerEvaluator evaluator = se... | editorsProvider, stackFrame, evaluator, expression); |
981,050 | private void init(@Nonnull IModObject modObject) {<NEW_LINE>SmartModelAttacher.registerNoProps(this);<NEW_LINE>PaintRegistry.registerModel(MODEL_UP, new ResourceLocation("minecraft:block/stone_pressure_plate_up"), PaintRegistry.PaintMode.ALL_TEXTURES);<NEW_LINE>PaintRegistry.registerModel(MODEL_DOWN, new ResourceLocati... | (BlockPressurePlateWeighted.POWER, 1)); |
954,901 | public long execute(WithdrawRewardParam param, Repository repo) throws ContractExeException {<NEW_LINE>byte[<MASK><NEW_LINE>VoteRewardUtil.withdrawReward(ownerAddress, repo);<NEW_LINE>AccountCapsule accountCapsule = repo.getAccount(ownerAddress);<NEW_LINE>long oldBalance = accountCapsule.getBalance();<NEW_LINE>long all... | ] ownerAddress = param.getOwnerAddress(); |
271,552 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE><MASK><NEW_LINE>Table table = emc.flag(flag, Table.class);<NEW_LINE>... | Business business = new Business(emc); |
1,487,439 | public void run(FlowTrigger trigger, Map data) {<NEW_LINE>PrimaryStorageAllocationSpec spec = (PrimaryStorageAllocationSpec) data.get(AllocatorParams.SPEC);<NEW_LINE>List<PrimaryStorageVO> candidates = (List<PrimaryStorageVO>) data.get(AllocatorParams.CANDIDATES);<NEW_LINE>DebugUtils.Assert(candidates != null && !candi... | put(AllocatorParams.CANDIDATES, ret); |
832,832 | static void copyDirectory(final Path source, final Path target, final CopyOption... options) throws IOException {<NEW_LINE>final boolean foreign = source.getFileSystem().provider() != target.getFileSystem().provider();<NEW_LINE>FileVisitor<Path> visitor = new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>public FileVi... | log.trace("Copy DIR: $current -> " + newFolder); |
1,037,319 | // //////////////////////////////////////////////////////////////////////////<NEW_LINE>// Methods //<NEW_LINE>// //////////////////////////////////////////////////////////////////////////<NEW_LINE>Runner newRunner(final GlassFishServer srv, final Command cm... | CommandException(CommandException.RUNNER_INIT, nsme); |
664,069 | public static void untarOneFile(File inputFile, String fileName, File outputFile) throws IOException {<NEW_LINE>try (InputStream fileIn = Files.<MASK><NEW_LINE>InputStream bufferedIn = new BufferedInputStream(fileIn);<NEW_LINE>InputStream gzipIn = new GzipCompressorInputStream(bufferedIn);<NEW_LINE>ArchiveInputStream t... | newInputStream(inputFile.toPath()); |
1,524,293 | public void modifyTx(ClientDetailsModification[] clients) {<NEW_LINE>for (ClientDetailsModification client : clients) {<NEW_LINE>if (ClientDetailsModification.ADD.equals(client.getAction())) {<NEW_LINE>publish(new ClientCreateEvent(client, getPrincipal(), identityZoneManager.getCurrentIdentityZoneId()));<NEW_LINE>} els... | , identityZoneManager.getCurrentIdentityZoneId())); |
112,672 | // Could override this to provide a custom behavior.<NEW_LINE>protected void ensureEmailConstraint(List<UserEntity> users, RealmModel realm) {<NEW_LINE>UserEntity user = users.get(0);<NEW_LINE>if (users.size() > 1) {<NEW_LINE>// Realm settings have been changed from allowing duplicate emails to not allowing them<NEW_LI... | setEmailConstraint(user.getEmail()); |
366,646 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main_menu);<NEW_LINE>// Show App version and footer.<NEW_LINE>TextView tv = findViewById(R.id.textViewMainFooter);<NEW_LINE>tv.setText(getString(R.string.app_version) + ": " + Common.... | findViewById(R.id.buttonMainReadTag); |
1,178,321 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(game.getActivePlayerId());<NEW_LINE>Permanent permanent = game.<MASK><NEW_LINE>if (player == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Choice choice = new ChoiceImpl();<NEW_LINE>choice.setChoices(new ... | getPermanent(source.getSourceId()); |
354,553 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextNestedWithFilterUDF());<NEW_LINE>execs.add(new ContextNestedIterateTargetedCP());<NEW_LINE>execs.add(new ContextNestedInvalid());<NEW_LINE>execs.add(new ContextNe... | .add(new ContextNestedInitTermOverInitTermIterate()); |
658,586 | protected void buttonPressed(int buttonId) {<NEW_LINE>DataFormatterRegistry registry = DataFormatterRegistry.getInstance();<NEW_LINE>if (buttonId == NEW_ID) {<NEW_LINE>String profileName = EnterNameDialog.chooseName(getShell(), ResultSetMessages.dialog_data_format_profiles_dialog_name_chooser_title);<NEW_LINE>if (Commo... | , profileName), SWT.ICON_ERROR); |
1,460,560 | public void generateMultiCustomerInvoice(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>List<Map> stockMoveMap = (List<Map>) request.getContext().get("customerStockMoveToInvoice");<NEW_LINE>List<Long> stockMoveIdList = new ArrayList<>();<NEW_LINE>List<StockMove> stockMoveList = new ArrayList<... | .class).generateMultipleInvoices(stockMoveIdList); |
1,378,515 | public static synchronized void updateValues() {<NEW_LINE>// Only do this if either LiveWindow mode or telemetry is enabled.<NEW_LINE>if (!liveWindowEnabled && !telemetryEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SendableRegistry.foreachLiveWindow(dataHandle, cbdata -> {<NEW_LINE>if (cbdata.sendable == null || cbd... | ssTable.getSubTable(cbdata.name); |
1,436,349 | public ListAddonsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAddonsResult listAddonsResult = new ListAddonsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | class).unmarshall(context)); |
1,554,601 | // taken from http://www.docjar.com/html/api/org/apache/pdfbox/examples/util/RemoveAllText.java.html<NEW_LINE>private PDDocument removeText(PDPage page) throws IOException {<NEW_LINE>PDFStreamParser parser = new PDFStreamParser(page);<NEW_LINE>parser.parse();<NEW_LINE>List<Object> tokens = parser.getTokens();<NEW_LINE>... | newPage = document.importPage(page); |
717,482 | public void run() {<NEW_LINE>if (!LOG.isStatistics()) {<NEW_LINE>LOG.error("Logging level should be at least level STATISTICS (parameter -time) to see any output.");<NEW_LINE>}<NEW_LINE>Database database = inputstep.getDatabase();<NEW_LINE>Relation<O> relation = database.<MASK><NEW_LINE>final String key = getClass().ge... | getRelation(distance.getInputTypeRestriction()); |
700,112 | private static void flatten(String parentKey, String key, Object value, Map<String, String> results) {<NEW_LINE>String parent = (parentKey == null || parentKey.equals("")) ? "" : parentKey + addTheDot(parentKey);<NEW_LINE>if (value instanceof String) {<NEW_LINE>results.put(parent + key, (String) value);<NEW_LINE>return... | .replace(", ", " ")); |
503,325 | boolean canCreate(TemplateWizard wizard) {<NEW_LINE>if (webApp == null) {<NEW_LINE>// This case is considered as normal in other cases. So I keep it also as valid.<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (webApp.getStatus() == WebApp.STATE_INVALID_OLD_VERSION) {<NEW_LINE>wizard.putProperty(WizardDescriptor.PROP_ER... | (ServletData.class, "MSG_InvalidWebXml")); |
284,988 | public ContactGibberishImpl createVolatileContact(String contactAddress) {<NEW_LINE>// First create the new volatile contact;<NEW_LINE>ContactGibberishImpl newVolatileContact = new <MASK><NEW_LINE>newVolatileContact.setPersistent(false);<NEW_LINE>// Check whether a volatile group already exists and if not create<NEW_LI... | ContactGibberishImpl(contactAddress, this.parentProvider); |
1,252,154 | private void startDetect() {<NEW_LINE>ArrayList<String> result_list = FileUtils.ReadListFromFile(getActivity().getAssets(), RESULT_LIST);<NEW_LINE>final Bitmap originBitmap = FileUtils.readBitmapFromFile(getActivity().getAssets(), IMAGE);<NEW_LINE>final Bitmap scaleBitmap = Bitmap.createScaledBitmap(originBitmap, NET_I... | , "detect index " + indexArray[0]); |
1,828,640 | public ResponseEntity<Resource> exportToExcel(@PathVariable("windowId") final String windowIdStr, @PathVariable(PARAM_ViewId) final String viewIdStr, @RequestParam(name = "selectedIds", required = false) @ApiParam("comma separated IDs") final String selectedIdsListStr) throws Exception {<NEW_LINE>userSession.assertLogg... | ExcelFormat excelFormat = ExcelFormats.getDefaultFormat(); |
10,768 | // -------------------------------------------------------------------------<NEW_LINE>@VisibleForTesting<NEW_LINE>static ImmutableMap<Currency, HolidayCalendarId> loadDefaultsFromIni(String filename) {<NEW_LINE>List<ResourceLocator> resources = ResourceConfig.orderedResources(filename);<NEW_LINE>Map<Currency, HolidayCa... | of(resource.getCharSource()); |
67,110 | public // stack sections<NEW_LINE>void testEquals(Object ddrObject, Object jextractObject, int members) {<NEW_LINE>ImageThread ddrImageThread = (ImageThread) ddrObject;<NEW_LINE>ImageThread jextractImageThread = (ImageThread) jextractObject;<NEW_LINE>// getID()<NEW_LINE>if ((ID & members) != 0)<NEW_LINE>testJavaEquals(... | jextractImageThread, "getRegisters", ImageRegister.class); |
325,474 | public KmsConfig createAuthConfig(UUID customerUUID, String configName, ObjectNode config) {<NEW_LINE>ObjectNode maskedConfig = EncryptionAtRestUtil.maskConfigData(customerUUID, config, this.keyProvider);<NEW_LINE>KmsConfig result = KmsConfig.createKMSConfig(customerUUID, <MASK><NEW_LINE>UUID configUUID = result.config... | this.keyProvider, maskedConfig, configName); |
338,688 | private void whileStatement() {<NEW_LINE>move(true);<NEW_LINE>// prepare to call __reducer_callcc(LOOP, iterator, statements)<NEW_LINE>getCodeGeneratorWithTimes().onMethodName(Constants.ReducerFn);<NEW_LINE>getCodeGeneratorWithTimes().onConstant(Constants.REDUCER_LOOP);<NEW_LINE>getCodeGeneratorWithTimes().onMethodPara... | ).onMethodParameter(this.lookhead); |
646,179 | public ResponseEntity<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws RestClientException {<NEW_LINE>Object localVarPostBody = param;<NEW_LINE>// verify the required parameter 'param' is set<NEW_LINE>if (param == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUE... | LinkedMultiValueMap<String, Object>(); |
29,170 | protected void changedUpdateImpl(@Nonnull DocumentEvent e) {<NEW_LINE>// todo Denis Zhdanov<NEW_LINE>DocumentEventImpl event = (DocumentEventImpl) e;<NEW_LINE>final boolean shouldTranslateViaDiff = isValid() && PersistentRangeMarkerUtil.shouldTranslateViaDiff(event, <MASK><NEW_LINE>boolean wasTranslatedViaDiff = should... | getStartOffset(), getEndOffset()); |
748,988 | protected boolean onSignInteract(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException, ChargeException {<NEW_LINE>final Trade charge = getTrade(sign, 3, ess);<NEW_LINE>charge.isAffordableFor(player);<NEW_LINE>final String chapter = sign.getLine(1);<NEW_LINE>final Strin... | player.getSource(), ess); |
850,303 | public void replaceSelection(String text) {<NEW_LINE>// It's legal for null to be used here...<NEW_LINE>if (text == null) {<NEW_LINE>handleReplaceSelection(text);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getTabsEmulated()) {<NEW_LINE>int firstTab = text.indexOf('\t');<NEW_LINE>if (firstTab > -1) {<NEW_LINE>int docOffs ... | Element map = doc.getDefaultRootElement(); |
1,355,938 | private void init() {<NEW_LINE>setLayout(new BorderLayout(0, 5));<NEW_LINE>setBorder(makeBorder());<NEW_LINE>// $NON-NLS-1$<NEW_LINE>clearEachIteration = new JCheckBox(JMeterUtils<MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>controlledByThreadGroup = new JCheckBox(JMeterUtils.getResString("cache_clear_controlled_by_threadgro... | .getResString("clear_cache_per_iter"), false); |
1,834,666 | private Node put(Node node, int key, Value value) {<NEW_LINE>if (node == null) {<NEW_LINE>return new Node(key, value, 1, RED);<NEW_LINE>}<NEW_LINE>if (key < node.key) {<NEW_LINE>node.left = put(node.left, key, value);<NEW_LINE>} else if (key > node.key) {<NEW_LINE>node.right = put(<MASK><NEW_LINE>} else {<NEW_LINE>node... | node.right, key, value); |
39,019 | public void shutDown() {<NEW_LINE>// NON-NLS<NEW_LINE>logger.log(Level.INFO, "Keyword search ingest module instance {0} shutting down", instanceNum);<NEW_LINE>if ((initialized == false) || (context == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (context.fileIngestIsCancelled()) {<NEW_LINE>// NON-NLS<NEW_LINE>logge... | getInstance().endJob(jobId); |
1,094,705 | private static void decodeAnsiX12Segment(BitSource bits, ECIStringBuilder result) throws FormatException {<NEW_LINE>// Three ANSI X12 values are encoded in a 16-bit value as<NEW_LINE>// (1600 * C1) + (40 * C2) + C3 + 1<NEW_LINE>int[<MASK><NEW_LINE>do {<NEW_LINE>// If there is only one byte left then it will be encoded ... | ] cValues = new int[3]; |
867,881 | public void dumpReplayData(PrintStream out) {<NEW_LINE>out.println("JvmtiExport can_access_local_variables " + (JvmtiExport.canAccessLocalVariables() ? '1' : '0'));<NEW_LINE>out.println("JvmtiExport can_hotswap_or_post_breakpoint " + (JvmtiExport.canHotswapOrPostBreakpoint() ? '1' : '0'));<NEW_LINE>out.println("JvmtiEx... | "# ciMetadata" + i + " @ " + o); |
617,681 | final CreateStudioResult executeCreateStudio(CreateStudioRequest createStudioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStudioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
236,802 | public SearchCostResult isCheapEnoughToSearch(@Nonnull String name, @Nonnull final GlobalSearchScope scope, @Nullable final PsiFile fileToIgnoreOccurrencesIn, @Nullable final ProgressIndicator progress) {<NEW_LINE>final AtomicInteger count = new AtomicInteger();<NEW_LINE>final ProgressIndicator indicator = progress == ... | int value = count.incrementAndGet(); |
987,924 | private void fixupPinnedSymbolsAfterRebase(Address oldBase, Address base, Address minAddr, Address maxAddr) {<NEW_LINE>List<SymbolDB> fixupPinnedSymbols = findPinnedSymbols(minAddr, maxAddr);<NEW_LINE>Set<Address> primaryFixups = new HashSet<>();<NEW_LINE>for (SymbolDB symbol : fixupPinnedSymbols) {<NEW_LINE>Address cu... | (currentAddress.subtract(base)); |
1,333,696 | private void checkBelongsToTheTree(@Nonnull T interval, boolean assertInvalid) {<NEW_LINE>IntervalNode<T> root = lookupNode(interval);<NEW_LINE>if (root == null)<NEW_LINE>return;<NEW_LINE>// noinspection NumberEquality<NEW_LINE>assert root.getTree() == this : root.getTree() + "; this: " + this;<NEW_LINE>if (!VERIFY)<NE... | get(i).get(); |
1,484,676 | public static PubsubSubscription fromPath(String path) {<NEW_LINE>if (path.startsWith(SUBSCRIPTION_RANDOM_TEST_PREFIX) || path.startsWith(SUBSCRIPTION_STARTING_SIGNAL)) {<NEW_LINE>return new PubsubSubscription(PubsubSubscription.Type.FAKE, "", path);<NEW_LINE>}<NEW_LINE>String projectName, subscriptionName;<NEW_LINE>Ma... | projectName = v1beta1Match.group(1); |
470,306 | public ASTNode visitCloneAction(final CloneActionContext ctx) {<NEW_LINE>CloneActionSegment result = new CloneActionSegment(ctx.start.getStartIndex(), ctx.stop.getStopIndex());<NEW_LINE>if (null != ctx.cloneInstance()) {<NEW_LINE><MASK><NEW_LINE>CloneInstanceSegment cloneInstanceSegment = new CloneInstanceSegment(clone... | CloneInstanceContext cloneInstance = ctx.cloneInstance(); |
1,244,437 | public com.amazonaws.services.codedeploy.model.ApplicationAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.ApplicationAlreadyExistsException applicationAlreadyExistsException = new com.amazonaws.services.codedeploy.model.Ap... | int originalDepth = context.getCurrentDepth(); |
29,983 | // Step4: aggregation functions are available in the view output<NEW_LINE>private void checkAggregationFunction(OlapTable table, Set<FunctionCallExpr> aggregatedColumnsInQueryOutput, Map<Long, MaterializedIndexMeta> candidateIndexIdToMeta) throws AnalysisException {<NEW_LINE>Iterator<Map.Entry<Long, MaterializedIndexMe... | > entry = iterator.next(); |
551,710 | public com.amazonaws.services.codedeploy.model.DeploymentDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.DeploymentDoesNotExistException deploymentDoesNotExistException = new com.amazonaws.services.codedeploy.model.Deployme... | int originalDepth = context.getCurrentDepth(); |
354,064 | private static byte[] decryptCbcDesEde3(SSL2ServerVerifyMessage message, TlsContext context) {<NEW_LINE>byte[] clientReadKey = new byte[24];<NEW_LINE>byte[] keyMaterial0 = makeKeyMaterial(context, "0");<NEW_LINE>System.arraycopy(keyMaterial0, 0, clientReadKey, 0, keyMaterial0.length);<NEW_LINE>byte[] keyMaterial1 = mak... | clientReadKey, keyMaterial0.length, 8); |
977,524 | // Looking for a model worker<NEW_LINE>public Pair<Set<Long>, Integer> findModelWorkerStores(final int above) {<NEW_LINE>final Set<Map.Entry<Long, Set<Long>>> values = this.leaderTable.entrySet();<NEW_LINE>if (values.isEmpty()) {<NEW_LINE>return Pair.of(Collections.emptySet(), 0);<NEW_LINE>}<NEW_LINE>final Map.Entry<Lo... | .getValue().size(); |
537,946 | public Match findBestList(List<Object> pList) {<NEW_LINE>Debug.log(lvl, "findBest: enter");<NEW_LINE>if (pList == null || pList.size() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Match mResult = null;<NEW_LINE>List<Match> mList = findAnyCollect(pList);<NEW_LINE>if (mList.size() > 0) {<NEW_LINE>Collections.sort(mL... | () - m1.getScore(); |
591,090 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.request.MonitorWaitedRequest createMonitorWaitedRequest(com.sun.jdi.request.EventRequestManager a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedException... | sun.jdi.request.MonitorWaitedRequest ret; |
931,625 | private void changeLetter(final WebuiLetter letter, final WebuiLetter.WebuiLetterBuilder newLetterBuilder, final JSONDocumentChangedEvent event) {<NEW_LINE>if (!event.isReplace()) {<NEW_LINE>throw new AdempiereException("Unsupported event").setParameter("event", event);<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>if (PAT... | String fieldName = event.getPath(); |
599,088 | public Mono<Response<Void>> deleteBackupConfigurationWithResponseAsync(String resourceGroupName, String name) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter resourceGr... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
976,538 | private Object jpql(Statement statement, Runtime runtime) throws Exception {<NEW_LINE>Object data = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE><MASK><NEW_LINE>Class<? extends JpaObject> cls = this.clazz(business, statement);<NEW_LINE>EntityManager em;<... | Business business = new Business(emc); |
531,816 | public DescribeRootFoldersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeRootFoldersResult describeRootFoldersResult = new DescribeRootFoldersResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | int originalDepth = context.getCurrentDepth(); |
112,357 | public static void syncCheckSums(Map<String, String> checksumMap, String server) {<NEW_LINE>try {<NEW_LINE>Map<String, String> headers = new HashMap<>(128);<NEW_LINE>headers.put("Client-Version", UtilsAndCommons.SERVER_VERSION);<NEW_LINE>headers.<MASK><NEW_LINE>headers.put("Connection", "Keep-Alive");<NEW_LINE>HttpClie... | put("User-Agent", UtilsAndCommons.SERVER_VERSION); |
1,305,165 | public ReplicaRegionType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReplicaRegionType replicaRegionType = new ReplicaRegionType();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
286,231 | private <T> T[] readObjectArrayField(@Nonnull String fieldName, FieldType fieldType, Function<Integer, T[]> constructor, Reader<ObjectDataInput, T> reader) {<NEW_LINE>int currentPos = in.position();<NEW_LINE>try {<NEW_LINE>int <MASK><NEW_LINE>if (isNullOrEmpty(position)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>in.p... | position = readPosition(fieldName, fieldType); |
658,057 | public AbstractIntegrationMessageBuilder<T> popSequenceDetails() {<NEW_LINE>List<List<Object>> incomingSequenceDetails = getSequenceDetails();<NEW_LINE>if (incomingSequenceDetails == null) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>incomingSequenceDetails = new ArrayList<>(incomingSequenceDetails);<NEW_LINE>}<N... | (sequenceDetails.get(0)); |
535,752 | public ListAssociationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAssociationsResult listAssociationsResult = new ListAssociationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | JsonToken token = context.getCurrentToken(); |
1,392,453 | public void writeConfig() throws ExecutionException, TimeoutException, InterruptedException {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>FutureCallback<None> <MASK><NEW_LINE>_store.start(callback);<NEW_LINE>callback.get(_timeout, _timeoutUnit);<NEW_LINE>final Semaphore outstandingPutSemaphore = new ... | callback = new FutureCallback<>(); |
897,716 | public String amt(final Properties ctx, final int WindowNo, final GridTab mTab, final GridField mField, final Object value) {<NEW_LINE>if (isCalloutActive() || value == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>// temporary<NEW_LINE>final int StdPrecision = 2;<NEW_LINE>// get values<NEW_LINE>BigDecimal QtyEntered... | calculateTax(LineNetAmt, IsTaxIncluded, StdPrecision); |
1,394,822 | private void execFilterMethod(RpcConnection rpcConnection, Request<JsonObject> request) {<NEW_LINE>Participant participant;<NEW_LINE>try {<NEW_LINE>participant = sanityCheckOfSession(rpcConnection, "execFilterMethod");<NEW_LINE>} catch (OpenViduException e) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String streamId = <MASK... | getStringParam(request, ProtocolElements.FILTER_STREAMID_PARAM); |
1,365,086 | public Variable emitIntegerTestMove(Value left, Value right, Value trueValue, Value falseValue) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.OpenCL, "emitIntegerTestMove: " + left + " " + "&" + right + " ? " + trueValue + " : " + falseValue);<NEW_LINE>assert left.getPlatformKind() == right.getPlatformKind() && ((OCLK... | .combine(trueValue, falseValue)); |
22,551 | private SecurityContext readSecurityContextFromSession(HttpSession httpSession) {<NEW_LINE>if (httpSession == null) {<NEW_LINE>this.logger.trace("No HttpSession currently exists");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Session exists, so try to obtain a context from it.<NEW_LINE>Object contextFromSession = <MASK... | httpSession.getAttribute(this.springSecurityContextKey); |
404,287 | final GetEventPredictionResult executeGetEventPrediction(GetEventPredictionRequest getEventPredictionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEventPredictionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new GetEventPredictionResultJsonUnmarshaller()); |
796,854 | private Mono<Response<SignaturesOverridesListInner>> listWithResponseAsync(String resourceGroupName, String firewallPolicyName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null... | error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); |
245,189 | // Explicitly checking for named null.<NEW_LINE>@SuppressWarnings("ReferenceEquality")<NEW_LINE>@Override<NEW_LINE>@Nullable<NEW_LINE>public File dumpHeap() {<NEW_LINE>File heapDumpFile = leakDirectoryProvider.newHeapDumpFile();<NEW_LINE>if (heapDumpFile == RETRY_LATER) {<NEW_LINE>return RETRY_LATER;<NEW_LINE>}<NEW_LIN... | notificationManager.notify(notificationId, notification); |
515,952 | public void initPreferences() {<NEW_LINE>mJpMonitorActivePref = (WPSwitchPreference) getChangePref(R.string.pref_key_jetpack_monitor_uptime);<NEW_LINE>mJpMonitorEmailNotesPref = (WPSwitchPreference) getChangePref(R.string.pref_key_jetpack_send_email_notifications);<NEW_LINE>mJpMonitorWpNotesPref = (WPSwitchPreference) ... | getChangePref(R.string.pref_key_jetpack_require_two_factor); |
842,103 | private DeleteByQueryRequest buildDeleteByQuery(List<JobForecastId> ids) {<NEW_LINE>DeleteByQueryRequest request = new DeleteByQueryRequest();<NEW_LINE>request.setSlices(AbstractBulkByScrollRequest.AUTO_SLICES);<NEW_LINE>request.setTimeout(DEFAULT_MAX_DURATION);<NEW_LINE>request.indices(RESULTS_INDEX_PATTERN);<NEW_LINE... | ).sort(ElasticsearchMappings.ES_DOC); |
1,743,440 | public Dimension preferredLayoutSize(final Container container) {<NEW_LINE>final JSplitPane splitPane = (JSplitPane) container;<NEW_LINE>int prePrimary = 0;<NEW_LINE>int preSecondary = 0;<NEW_LINE>final Insets insets = splitPane.getInsets();<NEW_LINE>for (int counter = 0; counter < 3; counter++) {<NEW_LINE>if (componen... | ) + getSizeForPrimaryAxis(insets, false); |
547,372 | private static Map<String, Policy> parseRules(List<Map<String, ?>> objects, String name) throws IllegalArgumentException {<NEW_LINE>Map<String, Policy> policies = new LinkedHashMap<String, Policy>();<NEW_LINE>for (Map<String, ?> object : objects) {<NEW_LINE>String policyName = JsonUtil.getString(object, "name");<NEW_LI... | permissions = new ArrayList<>(); |
1,772,472 | public static CreateDataTasksResponse unmarshall(CreateDataTasksResponse createDataTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>createDataTasksResponse.setRequestId(_ctx.stringValue("CreateDataTasksResponse.RequestId"));<NEW_LINE>List<ResultItem> result = new ArrayList<ResultItem>();<NEW_LINE>for (int i = 0; i <... | ("CreateDataTasksResponse.Result[" + i + "].sourceCluster.vpcInstancePort")); |
665,979 | public void readFrom(StreamInput in) throws IOException {<NEW_LINE>super.readFrom(in);<NEW_LINE>cause = in.readString();<NEW_LINE>name = in.readString();<NEW_LINE>if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) {<NEW_LINE>indexPatterns = in.readStringList();<NEW_LINE>} else {<NEW_LINE>indexPatterns = Collections... | int customSize = in.readVInt(); |
1,194,724 | public static byte[] encrypt(CipherSuite suite, SecretKey key, SecretKey macKey, byte[] additionalData, byte[] payload) throws GeneralSecurityException {<NEW_LINE>DatagramWriter plainMessage = new DatagramWriter(payload.length + suite.getMacLength() + suite.getRecordIvLength(), true);<NEW_LINE>plainMessage.writeBytes(p... | ] plaintext = plainMessage.toByteArray(); |
1,374,937 | final UpdateCrawlerResult executeUpdateCrawler(UpdateCrawlerRequest updateCrawlerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCrawlerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Glue"); |
348,316 | public Uni<SecurityIdentity> authenticate(RoutingContext routingContext, IdentityProviderManager identityProviderManager) {<NEW_LINE>MultiMap qheaders = routingContext<MASK><NEW_LINE>if (qheaders instanceof QuarkusHttpHeaders) {<NEW_LINE>Map<Class<?>, Object> contextObjects = ((QuarkusHttpHeaders) qheaders).getContextO... | .request().headers(); |
756,049 | private ApiCallMonitoringEvent generateApiCallMonitoringEvent(Request<?> request) {<NEW_LINE>String apiName = request.getHandlerContext(HandlerContextKey.OPERATION_NAME);<NEW_LINE>String serviceId = request.getHandlerContext(HandlerContextKey.SERVICE_ID);<NEW_LINE>String region = request.getHandlerContext(HandlerContex... | withFinalHttpStatusCode(lastApiCallAttempt.getHttpStatusCode()); |
525,226 | public static void rgbToLab_U8(Planar<GrayU8> rgb, Planar<GrayF32> lab) {<NEW_LINE>GrayU8 R = rgb.getBand(0);<NEW_LINE>GrayU8 G = rgb.getBand(1);<NEW_LINE>GrayU8 <MASK><NEW_LINE>GrayF32 L_ = lab.getBand(0);<NEW_LINE>GrayF32 A_ = lab.getBand(1);<NEW_LINE>GrayF32 B_ = lab.getBand(2);<NEW_LINE>// CONCURRENT_BELOW BoofConc... | B = rgb.getBand(2); |
1,744,861 | public static void main(String[] args) {<NEW_LINE>// Fermat's little theorem, b^-1 = b^{m-2} (mod m)<NEW_LINE>// example 1, output 2<NEW_LINE>System.out.println((27 % 7 * modPow(3, 5, 7)) % 7);<NEW_LINE>// example 2, output 5<NEW_LINE>System.out.println((27 % 7 * modPow(4, <MASK><NEW_LINE>// example 3, wrong answer, do... | 5, 7)) % 7); |
1,110,174 | private void recomputeLOFs(DBIDs ids, LOFResult<O> lofResult) {<NEW_LINE>WritableDoubleDataStore new_lofs = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP);<NEW_LINE>DoubleMinMax new_lofminmax = new DoubleMinMax();<NEW_LINE>computeLOFs(lofResult.getKNNRefer(), ids, lofResult... | , new_lofs.doubleValue(iter)); |
942,536 | private void removeAfterInFile(int fileId, long untilLogId) {<NEW_LINE>String oldFilePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + fileId);<NEW_LINE>File oldFile = new File(oldFilePath);<NEW_LINE>String newFilePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + fileId) + "_te... | oldFile.toString() + "_copy"); |
1,779,459 | void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + decoder.state_zs_extraRegisterBase + baseReg);<NEW_LINE>instruction.setOp1Register(decoder.state_vvvv + baseReg);<NEW_LINE>if (decoder.state_mod == 3) {<NEW_LINE>instructio... | instruction.setOp2Kind(OpKind.MEMORY); |
1,749,223 | /*<NEW_LINE>* Find javadoc block tags for a given completion javadoc tag node<NEW_LINE>*/<NEW_LINE>private void findJavadocBlockTags(CompletionOnJavadocTag javadocTag) {<NEW_LINE>char[][] possibleTags = javadocTag.getPossibleBlockTags();<NEW_LINE>if (possibleTags == null)<NEW_LINE>return;<NEW_LINE>int length = possible... | this.tokenEnd - this.offset); |
788,458 | public boolean onPreferenceClick(Preference preference) {<NEW_LINE>String prefId = preference.getKey();<NEW_LINE>if (prefId.equals(BACKUP_TO_FILE)) {<NEW_LINE>MapActivity activity = getMapActivity();<NEW_LINE>if (AndroidUtils.isActivityNotDestroyed(activity)) {<NEW_LINE>ApplicationMode mode = getSelectedAppMode();<NEW_... | SearchHistorySettingsFragment.showInstance(fragmentManager, this); |
856,555 | public static void saveUserDetails(final Context context, final UserDetails profile) {<NEW_LINE>final SharedPreferences preferences = context.getSharedPreferences(PrefConstants.PREFERENCES, 0);<NEW_LINE>final Editor edit = preferences.edit();<NEW_LINE>edit.putInt(PrefConstants.USER_AVERAGE_STORIES_PER_MONTH, profile.av... | PrefConstants.USER_FOLLOWER_COUNT, profile.followerCount); |
1,332,254 | final DescribeClusterResult executeDescribeCluster(DescribeClusterRequest describeClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
412,461 | /*@Override<NEW_LINE>public String getMenuName() {//KS TODO not implemented<NEW_LINE>return getString(R.string.snooze_alert);<NEW_LINE>}*/<NEW_LINE>public void addListenerOnButton() {<NEW_LINE>buttonSnooze = (Button) <MASK><NEW_LINE>// low alerts<NEW_LINE>disableLowAlerts = (Button) findViewById(R.id.button_disable_low... | findViewById(R.id.button_snooze); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.