idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,547,728 | final void executeDeprecateActivityType(DeprecateActivityTypeRequest deprecateActivityTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deprecateActivityTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.start... | addHandlerContext(HandlerContextKey.SERVICE_ID, "SWF"); |
1,798,397 | protected static List<Method> collectValidatorMethods(Class annotationClass, Class... argTypes) {<NEW_LINE>if (argTypes == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>List<Method> methods = new ArrayList<>();<NEW_LINE>Set<Method> ms = Platform.getReflections().getMethodsAnnotatedWith(annotationClass);<NEW_LINE>for (Met... | argTypes = new Class[] {}; |
711,515 | private void showInputDialog(ActionEvent event) {<NEW_LINE>EscapeDialog messageDialog = new // $NON-NLS-1$<NEW_LINE>EscapeDialog(// $NON-NLS-1$<NEW_LINE>getParentFrame(event), JMeterUtils.getResString("curl_import"), false);<NEW_LINE>Container contentPane = messageDialog.getContentPane();<NEW_LINE>contentPane.setLayout... | add(filePanel, BorderLayout.CENTER); |
340,978 | public StopSentimentDetectionJobResult stopSentimentDetectionJob(StopSentimentDetectionJobRequest stopSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopSentimentDetectionJobRequest);<NEW_LINE>AWSRequestMetrics aws... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,216,574 | final CreateFargateProfileResult executeCreateFargateProfile(CreateFargateProfileRequest createFargateProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFargateProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,772,240 | public static DataSource<VehicleRentalPlace> create(VehicleRentalDataSourceParameters source) {<NEW_LINE>switch(source.getSourceType()) {<NEW_LINE>// There used to be a lot more updaters and corresponding config variables here, but since<NEW_LINE>// the industry has largely moved towards GBFS, they were removed.<NEW_LI... | "Unknown vehicle rental source type: " + source.getSourceType()); |
1,323,822 | AggregatedCostAmount createCostDetails(final AcctSchema as) {<NEW_LINE>final I_M_InOutLine receiptLine = getReceiptLine();<NEW_LINE>Check.assumeNotNull(receiptLine, "Parameter receiptLine is not null");<NEW_LINE>final I_C_OrderLine orderLine = getOrderLine();<NEW_LINE>final CurrencyConversionTypeId currencyConversionTy... | .getM_InOut().getDateAcct(); |
98,083 | public final void cook(Parser[] parsers) throws CompileException, IOException {<NEW_LINE>int count = parsers.length;<NEW_LINE>this.setScriptCount(count);<NEW_LINE>final Parser parser = count == 1 ? parsers[0] : null;<NEW_LINE>// Create compilation unit.<NEW_LINE>Java.AbstractCompilationUnit.ImportDeclaration[] <MASK><N... | importDeclarations = this.parseImports(parser); |
1,102,145 | protected void processProgramVars() {<NEW_LINE>if (program.getLanguage().getProcessor() == Processor.findOrPossiblyCreateProcessor("PowerPC")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SymbolTable symbolTable = program.getSymbolTable();<NEW_LINE>int defaultPointerSize = program.getDefaultPointerSize();<NEW_LINE>DataType i... | "NXArgc", namespace, SourceType.IMPORTED); |
537,133 | public void renderCalendar(boolean updateDate) {<NEW_LINE>super.setStylePrimaryName(parent.getStylePrimaryName() + "-calendarpanel");<NEW_LINE>if (focusedDate == null) {<NEW_LINE>Date now = new Date();<NEW_LINE>// focusedDate must have zero hours, mins, secs, millisecs<NEW_LINE>focusedDate = new FocusedDate(now.getYear... | setColSpan(2, 0, 5); |
157,296 | private boolean completeSatisfiedVersionDependentTasks() {<NEW_LINE>int publishedVersion = systemStateBroadcaster.lastClusterStateVersionInSync();<NEW_LINE>long queueSizeBefore = taskCompletionQueue.size();<NEW_LINE>// Note: although version monotonicity of tasks in queue always should hold,<NEW_LINE>// deadline monoto... | long now = timer.getCurrentTimeInMillis(); |
1,674,878 | public void replaceAllChildren(List<C> values, SelectionModel<? super C> selectionModel, boolean stealFocus) {<NEW_LINE>// Render the children.<NEW_LINE>SafeHtmlBuilder sb = new SafeHtmlBuilder();<NEW_LINE>render(sb, values, 0, selectionModel);<NEW_LINE>// Hide the child container so we can animate it.<NEW_LINE>if (nod... | ).setDisplay(Display.NONE); |
88,439 | private boolean readSamples() throws IOException {<NEW_LINE>if (readSamples) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>readSamples = true;<NEW_LINE>byte[] header = new byte[15];<NEW_LINE>boolean ret = false;<NEW_LINE>inputStream.mark(15);<NEW_LINE>while (-1 != inputStream.read(header)) {<NEW_LINE>ret = true;<NEW_LINE... | brb.getPosition() / 8.0); |
1,826,292 | private static final byte[] doExpansion(Mac hmac, byte[] label, byte[] seed, int length) {<NEW_LINE>int offset = 0;<NEW_LINE>final int macLength = hmac.getMacLength();<NEW_LINE>final byte[] aAndSeed = new byte[macLength + label.length + seed.length];<NEW_LINE>final byte[] expansion = new byte[length];<NEW_LINE>try {<NE... | expansion, offset, length - offset); |
141,044 | public static DescribeParametersResponse unmarshall(DescribeParametersResponse describeParametersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeParametersResponse.setRequestId(_ctx.stringValue("DescribeParametersResponse.RequestId"));<NEW_LINE>describeParametersResponse.setEngine(_ctx.stringValue("DescribeParam... | = new ArrayList<DBInstanceParameter>(); |
388,858 | public JsNode transformProgram(JProgram program) {<NEW_LINE>// Handle the visiting here as we need to slightly change the order.<NEW_LINE>// 1.1 (preamble) Immortal code gentypes.<NEW_LINE>// 1.2 (preamble) Classes in the preamble, i.e. all the classes that are needed<NEW_LINE>// to support creation of class literals (... | (Arrays.asList(type)); |
15,664 | public Recording startRecording(String sessionId, RecordingProperties properties) throws OpenViduJavaClientException, OpenViduHttpException {<NEW_LINE>HttpPost request = new HttpPost(this.hostname + API_RECORDINGS_START);<NEW_LINE>JsonObject json = properties.toJson();<NEW_LINE><MASK><NEW_LINE>StringEntity params = new... | json.addProperty("session", sessionId); |
60,604 | public void onResp(BaseResp baseResp) {<NEW_LINE><MASK><NEW_LINE>map.putInt("errCode", baseResp.errCode);<NEW_LINE>map.putString("errStr", baseResp.errStr);<NEW_LINE>map.putString("openId", baseResp.openId);<NEW_LINE>map.putString("transaction", baseResp.transaction);<NEW_LINE>if (baseResp instanceof SendAuth.Resp) {<N... | WritableMap map = Arguments.createMap(); |
1,560,742 | public static void run(JavaPlatform javaPlatform, FileObject js, boolean debug) throws IOException, UnsupportedOperationException {<NEW_LINE>LifecycleManager.getDefault().saveAll();<NEW_LINE>Map<String, Object> properties = new HashMap<>();<NEW_LINE>properties.put(JavaRunner.PROP_PLATFORM, javaPlatform);<NEW_LINE>final... | getBoolean(Settings.PREF_NASHORN, false); |
1,412,442 | /* Build call for apisApiIdGet */<NEW_LINE>private com.squareup.okhttp.Call apisApiIdGetCall(String apiId, String accept, String ifNoneMatch, String ifModifiedSince, String xWSO2Tenant, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListene... | String[] localVarAccepts = { "application/json" }; |
841,686 | private void rewriteRulesExport(String rulesTableName) {<NEW_LINE>String inFile = StringUtils.format(<MASK><NEW_LINE>String outFile = StringUtils.format("%s/%s.csv", outputPath, rulesTableName);<NEW_LINE>try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(inFile), StandardCharsets.... | ("%s/%s_raw.csv"), outputPath, rulesTableName); |
1,053,533 | public void onEnterStage(MySQLResponseService service) {<NEW_LINE>TxState state = service.getXaStatus();<NEW_LINE>RouteResultsetNode rrn = (RouteResultsetNode) service.getAttachment();<NEW_LINE>// if conn is closed or has been rollback, release conn<NEW_LINE>if (state == TxState.TX_INITIALIZE_STATE || state == TxState.... | rrn.getName(), xaTxId); |
216,847 | private static void processXML(PrintData pd, Document document, Element root) {<NEW_LINE>for (int r = 0; r < pd.getRowCount(); r++) {<NEW_LINE>pd.setRowIndex(r);<NEW_LINE>Element row = document.createElement(PrintData.XML_ROW_TAG);<NEW_LINE>row.setAttribute(XML_ATTRIBUTE_NO, String.valueOf(r));<NEW_LINE>if (pd.isFuncti... | document.createElement(PrintDataElement.XML_TAG); |
1,066,949 | public void introspectFramework(String timestamp, Set<JavaDumpAction> javaDumpActions) {<NEW_LINE>Tr.audit(tc, "info.introspect.request.received");<NEW_LINE>File dumpDir = config.getOutputFile(BootstrapConstants.SERVER_DUMP_FOLDER_PREFIX + timestamp + "/");<NEW_LINE>if (!dumpDir.exists()) {<NEW_LINE>throw new IllegalSt... | File(dumpDir, BootstrapConstants.SERVER_DUMPED_FLAG_FILE_NAME); |
321,961 | /*<NEW_LINE>* The basic idea here is to create a few different versions of the<NEW_LINE>* LinearConvolve hardware effect peers, based on the kernel size.<NEW_LINE>* The LinearConvolveRenderState state class contains the algorithm that<NEW_LINE>* determines how many peers should be generated and at which optimized<NEW_L... | .peerName = name + "_" + peersize; |
1,535,885 | public void activate(final BundleContext bundleContext, final Map<String, Object> config) {<NEW_LINE>String offsetString = (String) config.get("offset");<NEW_LINE>if (StringUtils.isNotBlank(offsetString)) {<NEW_LINE>try {<NEW_LINE>offset = Integer.valueOf(offsetString);<NEW_LINE>} catch (IllegalArgumentException iae) {... | String) config.get("executescript"); |
1,033,981 | File[] guessPath(String input) {<NEW_LINE>List<File> results = new ArrayList<>();<NEW_LINE>String apkPathRoot = "/data/app/";<NEW_LINE>for (String potential : splitPathList(input)) {<NEW_LINE>if (!potential.startsWith(apkPathRoot)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>int end = potential.lastIndexOf(".apk");<NEW_LI... | potential.indexOf("-", startSlash); |
519,414 | private ConfigParameters mergeWithDefaultConfig(ConfigParameters config) {<NEW_LINE>Properties p = new Properties();<NEW_LINE>p.put(BOX_ATTRIBUTES_KEY + '/' + Factory.CLASS_NAME_KEY, ShapeAttributes.class.getName());<NEW_LINE>p.put(BOX_ATTRIBUTES_KEY + <MASK><NEW_LINE>p.put(BOX_ATTRIBUTES_KEY + '/' + ShapeAttributes.LI... | '/' + ShapeAttributes.FILL_COLOR_KEY, "0xffffff"); |
1,406,857 | protected Object execute(final OETLExtractedItem source) {<NEW_LINE>int retry = 0;<NEW_LINE>do {<NEW_LINE>try (ODatabaseDocument db = acquire()) {<NEW_LINE>try {<NEW_LINE>Object current = source.payload;<NEW_LINE>context.setVariable("extractedNum", source.num);<NEW_LINE>context.setVariable("extractedPayload", source.pa... | .getStats().incrementErrors(); |
369,675 | public WebElement findElement(RemoteWebDriver driver, SearchContext context, BiFunction<String, Object, CommandPayload> createPayload, By locator) {<NEW_LINE>Require.nonNull("WebDriver", driver);<NEW_LINE>Require.nonNull("Context for finding elements", context);<NEW_LINE><MASK><NEW_LINE>Require.nonNull("Locator", locat... | Require.nonNull("Method for creating remote requests", createPayload); |
105,031 | public List<FixedAsset> createFixedAssets(Invoice invoice) throws AxelorException {<NEW_LINE>List<FixedAsset> fixedAssetList = new ArrayList<>();<NEW_LINE>if (invoice == null || CollectionUtils.isEmpty(invoice.getInvoiceLineList())) {<NEW_LINE>return fixedAssetList;<NEW_LINE>}<NEW_LINE>AccountConfig accountConfig = acc... | setPartner(invoice.getPartner()); |
368,341 | void addOrderItem(List<SqlNode> orderByList, RelFieldCollation field) {<NEW_LINE>boolean added = false;<NEW_LINE>if (field.nullDirection != RelFieldCollation.NullDirection.UNSPECIFIED) {<NEW_LINE>final boolean first = field.nullDirection == RelFieldCollation.NullDirection.FIRST;<NEW_LINE>SqlNode nullDirectionNode = dia... | field.direction.isDescending()); |
994,652 | public boolean appendEntry(final LogEntry entry) {<NEW_LINE>if (entry.getType() == EntryType.ENTRY_TYPE_CONFIGURATION) {<NEW_LINE>return executeBatch(batch -> addConfBatch(entry, batch));<NEW_LINE>} else {<NEW_LINE>this.readLock.lock();<NEW_LINE>try {<NEW_LINE>if (this.db == null) {<NEW_LINE>LOG.warn("DB not initialize... | .currentThread().interrupt(); |
817,698 | private Bootstrap createClientBootstrap(EventLoopGroup eventLoopGroup) {<NEW_LINE>final Bootstrap bootstrap = new Bootstrap();<NEW_LINE>bootstrap.group(eventLoopGroup);<NEW_LINE>bootstrap.channel(NettyBootstrap.clientChannel());<NEW_LINE>bootstrap.option(ChannelOption.TCP_NODELAY, TransportSettings.TCP_NO_DELAY.get(set... | (tcpReceiveBufferSize.getBytes())); |
195,985 | default LongColumn timeWindow(ChronoUnit unit, int n, LocalDateTime start) {<NEW_LINE>String newColumnName = "" + n + " " + unit.toString() <MASK><NEW_LINE>long packedStartDate = pack(start);<NEW_LINE>LongColumn numberColumn = LongColumn.create(newColumnName, size());<NEW_LINE>for (int i = 0; i < size(); i++) {<NEW_LIN... | + " window [" + name() + "]"; |
184,170 | final GetUserAttributeVerificationCodeResult executeGetUserAttributeVerificationCode(GetUserAttributeVerificationCodeRequest getUserAttributeVerificationCodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUserAttributeVerificationCodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,790,534 | protected Node createUndecoratedEditor() {<NEW_LINE><MASK><NEW_LINE>final Node wrappedCb = ItemUtil.lockDecorator(cbNull, document, ItemUtil.DATABASE_RELATION_TOOLTIP);<NEW_LINE>final Label label = new Label(IMPLEMENTATION_TITLE);<NEW_LINE>final ChoiceBox<ImplementAs> cbImpl = new ChoiceBox<>(observableArrayList(Implem... | final CheckBox cbNull = new CheckBox(); |
1,517,219 | void notifyContextClosed() {<NEW_LINE>assert Thread.holdsLock(context);<NEW_LINE>assert !context.isActive() || context.state == PolyglotContextImpl.State.CLOSED_CANCELLED || context.state <MASK><NEW_LINE>if (intervalTimer != null) {<NEW_LINE>intervalTimer.cancel();<NEW_LINE>}<NEW_LINE>if (!activeEvents.isEmpty()) {<NEW... | == PolyglotContextImpl.State.CLOSED_EXITED : "context is still active, cannot flush safepoints"; |
1,799,751 | private void writeBinaryFile(OutputStreamWriter writer, OutputStream output, File file) throws IOException {<NEW_LINE>writer.append("--" + multipartBoundary).append(NEWLINE);<NEW_LINE>writer.append("Content-Disposition: form-data; name=\"warFile\"; filename=\"" + file.getAbsolutePath() + "\"").append(NEWLINE);<NEW_LINE... | = new byte[1024 * 1024]; |
105,568 | static List<ChunkDescriptor> buildChunkDescriptors(Torrent torrent, long transferBlockSize, long totalSize, long chunkSize, int chunksTotal, List<List<TorrentFile>> pieceNumToFile, Map<StorageUnit, TorrentFile> storageUnitsToFilesMap, List<StorageUnit> nonEmptyStorageUnits) {<NEW_LINE>Iterator<byte[]> chunkHashes = tor... | .getChunkHashes().iterator(); |
673,032 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_draft_box);<NEW_LINE>mDraftBox = PLDraftBox.getInstance(this);<NEW_LINE>mDrafts = mDraftBox.getAllDrafts();<NEW_LINE>mAdapter = new DraftAdapter(this);<NEW_LINE>mNullView = <MASK><... | findViewById(R.id.tv_null_view); |
458,971 | static void checkMatchParent(ConstraintWidgetContainer container, LinearSystem system, ConstraintWidget widget) {<NEW_LINE>widget.mHorizontalResolution = UNKNOWN;<NEW_LINE>widget.mVerticalResolution = UNKNOWN;<NEW_LINE>if (container.mListDimensionBehaviors[DIMENSION_HORIZONTAL] != ConstraintWidget.DimensionBehaviour.WR... | () - widget.mBottom.mMargin; |
871,593 | private String parseMessageListener(Element element, ParserContext parserContext, BeanDefinition adapterBeanDefinition) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(ChannelPublishingJmsMessageListener.class);<NEW_LINE>builder.addPropertyValue("expectReply", this.expectReply);<N... | "', or '" + DEFAULT_REPLY_TOPIC_NAME_ATTRIB + "' may be provided.", element); |
947,934 | final GetExportSnapshotRecordsResult executeGetExportSnapshotRecords(GetExportSnapshotRecordsRequest getExportSnapshotRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExportSnapshotRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,420,994 | private void addCSSClasses(SVGPlot svgp) {<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>if (!svgp.getCSSClassManager().contains(SELECTAXISVISIBILITY)) {<NEW_LINE>CSSClass cls = new CSSClass(this, SELECTAXISVISIBILITY);<NEW_LINE>cls.setStatement(SVGConstants.CSS_OPACITY_PROPERTY, 0.1);<NEW_LIN... | SVGConstants.CSS_STROKE_PROPERTY, SVGConstants.CSS_BLACK_VALUE); |
1,577,309 | private RefactoringStatus addWarnings(final Set<Warning> warnings) {<NEW_LINE>RefactoringStatus status = new RefactoringStatus();<NEW_LINE>// Remove deleted ripple methods from user selection and add warnings<NEW_LINE>for (Iterator<Warning> iter = warnings.iterator(); iter.hasNext(); ) {<NEW_LINE>final Warning warning ... | ), JavaElementLabels.ALL_DEFAULT) }); |
1,258,048 | public WriteFilesResult<DestinationT> expand(PCollection<UserT> input) {<NEW_LINE>Write.Builder<DestinationT, UserT> resolvedSpec = new AutoValue_FileIO_Write.Builder<>();<NEW_LINE>resolvedSpec.setDynamic(getDynamic());<NEW_LINE>checkArgument(getSinkFn() != null, ".via() is required");<NEW_LINE>resolvedSpec.setSinkFn(g... | resolvedSpec.setCompression(getCompression()); |
1,470,712 | public static void main(String[] args) throws Exception {<NEW_LINE>String inputfilepath = System.getProperty("user.dir") + "/one.docx";<NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputfilepath));<NEW_LINE>StyleDefinitionsPart stylesPart = wordMLPackage.getMainDocument... | report(styles.getStyle()); |
1,593,077 | public CategoricalDistribution likelihoodWeighting(RandomVariable[] X, AssignmentProposition[] e, BayesianNetwork bn, int N) {<NEW_LINE>// local variables: W, a vector of weighted counts for each value of X,<NEW_LINE>// initially zero<NEW_LINE>double[] W = new double[ProbUtil.expectedSizeOfCategoricalDistribution(X)];<... | x_w = weightedSample(bn, e); |
1,306,523 | static void displayErrorMessage(DiscoveryDialog dialog) {<NEW_LINE>// check if modules run and assemble message<NEW_LINE>try {<NEW_LINE>SleuthkitCase skCase = Case.getCurrentCaseThrows().getSleuthkitCase();<NEW_LINE>Map<Long, DataSourceModulesWrapper> dataSourceIngestModules = new HashMap<>();<NEW_LINE>for (DataSource ... | ()).updateModulesRun(jobInfo); |
1,653,677 | public void run() {<NEW_LINE>switch(opCode) {<NEW_LINE>case FIND_LINE_NUMBER:<NEW_LINE>{<NEW_LINE>Element paragraphsParent = findLineRootElement(doc);<NEW_LINE>// argInt is offset<NEW_LINE>retInt = paragraphsParent.getElementIndex(argInt);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case FIND_LINE_COLUMN:<NEW_LINE>{<NEW_LINE>E... | IndexOutOfBoundsException("Index=" + argInt + " is out of bounds."); |
331,900 | void store() {<NEW_LINE>UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));<NEW_LINE>storeTempDir();<NEW_LINE>if (!agencyLogoPathField.getText().isEmpty()) {<NEW_LINE>File file = new <MASK><NEW_LINE>if (file.exists()) {<NEW_LINE>reportBranding.setAgencyLogoPath(agencyLogoPathField.getText());<NEW... | File(agencyLogoPathField.getText()); |
1,151,781 | /* (non-Javadoc)<NEW_LINE>* @see com.webank.weid.service.impl.engine.AuthorityIssuerController<NEW_LINE>* #removeAuthorityIssuer(com.webank.weid.protocol.request.RemoveAuthorityIssuerArgs)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ResponseData<Boolean> removeAuthorityIssuer(RemoveAuthorityIssuerArgs args) {<NEW_LI... | String weId = args.getWeId(); |
571,601 | public void run() {<NEW_LINE>// We need to synchronize access to (and overwriting of) the latch to avoid race conditions<NEW_LINE>synchronized (WPAndroidGlueCode.this) {<NEW_LINE>mGetContentCountDownLatch = new CountDownLatch(1);<NEW_LINE>mRnReactNativeGutenbergBridgePackage.getRNReactNativeGutenbergBridgeModule().getH... | e(T.EDITOR, "Timeout reached before response from requestGetHtml."); |
745,917 | protected void removeNode(final NodeType node) {<NEW_LINE>if (node.getNode().getGraph() == null) {<NEW_LINE>m_graph.reInsertNode(node.getNode());<NEW_LINE>}<NEW_LINE>final HierarchyManager manager = m_graph.getHierarchyManager();<NEW_LINE>final Node n = node.getNode();<NEW_LINE>if (manager.isNormalNode(n)) {<NEW_LINE>m... | removeNode(node.getNode()); |
1,784,932 | public synchronized void updateView(OView view, ODatabaseDocumentInternal db) {<NEW_LINE>lastUpdateTimestampForView.put(view.getName(<MASK><NEW_LINE>int cluster = db.addCluster(getNextClusterNameFor(view, db));<NEW_LINE>String viewName = view.getName();<NEW_LINE>String query = view.getQuery();<NEW_LINE>String originRid... | ), System.currentTimeMillis()); |
851,865 | private LambdaParameters parseLambdaParameters() throws CompileException, IOException {<NEW_LINE>// Identifier<NEW_LINE>String identifier = this.peekRead(TokenType.IDENTIFIER);<NEW_LINE>if (identifier != null)<NEW_LINE>return new IdentifierLambdaParameters(identifier);<NEW_LINE>this.read("(");<NEW_LINE>// '(' ')'<NEW_L... | .read(TokenType.IDENTIFIER)); |
308,886 | public Map<String, Object> perform() {<NEW_LINE>// Keeps a list of users<NEW_LINE>ArrayList<Map<String, String>> list = null;<NEW_LINE>// Keeps the objects in container needed by the Ajax proxy (client-side)<NEW_LINE>Map<String, Object> results = new HashMap<String, Object>(2);<NEW_LINE>// Keeps the grand total of item... | String, String>>(0); |
1,724,066 | public void deserializeWorld(EntityData.GlobalStore world) {<NEW_LINE>entityManager.<MASK><NEW_LINE>Map<Class<? extends Component>, Integer> componentIdTable = Maps.newHashMap();<NEW_LINE>for (int index = 0; index < world.getComponentClassCount(); ++index) {<NEW_LINE>ComponentMetadata<?> componentMetadata = componentLi... | setNextId(world.getNextEntityId()); |
521,778 | protected int writeValueAndFinal(int i, boolean isFinal) {<NEW_LINE>if (0 <= i && i <= BytesTrie.kMaxOneByteValue) {<NEW_LINE>return write(((BytesTrie.kMinOneByteValueLead + i) << 1) | (isFinal ? 1 : 0));<NEW_LINE>}<NEW_LINE>int length = 1;<NEW_LINE>if (i < 0 || i > 0xffffff) {<NEW_LINE>intBytes[0] = (byte) BytesTrie.k... | (isFinal ? 1 : 0)); |
1,612,591 | private void init() {<NEW_LINE>initFile(PhpUnitPreferences.isBootstrapEnabled(phpModule), PhpUnitPreferences.getBootstrapPath(phpModule), bootstrapCheckBox, bootstrapTextField);<NEW_LINE>bootstrapForCreateTestsCheckBox.setSelected(PhpUnitPreferences.isBootstrapForCreateTests(phpModule));<NEW_LINE>initFile(PhpUnitPrefer... | configurationLabel, configurationTextField, configurationGenerateButton, configurationBrowseButton); |
1,820,386 | public void prepare(FlinkEnvironment env) {<NEW_LINE>String path = config.getString(PATH);<NEW_LINE>FormatType format = FormatType.from(config.getString(SOURCE_FORMAT).trim().toLowerCase());<NEW_LINE>Path filePath = new Path(path);<NEW_LINE>switch(format) {<NEW_LINE>case JSON:<NEW_LINE>JSONObject jsonSchemaInfo = JSONO... | (SCHEMA), null, DEFAULT_BATCH_SIZE); |
1,441,083 | public byte[] readFully() throws IOException, RemoteException {<NEW_LINE>try (ProxyInputStream stream = openRead()) {<NEW_LINE>int pos = 0;<NEW_LINE>int avail = stream.available();<NEW_LINE>byte[] data = new byte[avail];<NEW_LINE>while (true) {<NEW_LINE>int amt = stream.read(data, <MASK><NEW_LINE>// Log.i("foo", "Read ... | pos, data.length - pos); |
1,854,858 | private void checkWorld() throws ContradictionException {<NEW_LINE>int currentworld = model.getEnvironment().getWorldIndex();<NEW_LINE>long currentbt = model<MASK><NEW_LINE>long currentrestart = model.getSolver().getRestartCount();<NEW_LINE>// System.err.println("TIME STAMP : "+currentbt+" BT COUNT : "+solver.getBack... | .getSolver().getBackTrackCount(); |
1,241,132 | protected void performAction(final Node[] activatedNodes) {<NEW_LINE>RequestProcessor.getDefault().post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final TableNode node = activatedNodes[0].getLookup().lookup(TableNode.class);<NEW_LINE>final DatabaseConnection connection = node.ge... | exc.getLocalizedMessage(), exc); |
827,073 | public void update() {<NEW_LINE>panel.executablePathTextField.setText(SvnModuleConfig.getDefault().getExecutableBinaryPath());<NEW_LINE>panel.javahlPathTextField.setText(SvnModuleConfig.getDefault().getExecutableBinaryPath());<NEW_LINE>panel.annotationTextField.setText(SvnModuleConfig.getDefault().getAnnotationFormat()... | getDefault().isGetRemoteLocks()); |
75,705 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String certificateName, 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 this.client.getSubscriptionId() is required and cannot be null.")); |
563,186 | public static void discard(Nozzle nozzle) throws Exception {<NEW_LINE>if (nozzle.getPart() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Object> globals = new HashMap<>();<NEW_LINE><MASK><NEW_LINE>Configuration.get().getScripting().on("Job.BeforeDiscard", globals);<NEW_LINE>Location discardLocation = Conf... | globals.put("nozzle", nozzle); |
593,884 | public UserSearchResults performMultiUserSearchFromForm(final Locale locale, final SearchConfiguration searchConfiguration, final int maxResults, final List<FormConfiguration> formItem, final SessionLabel sessionLabel) throws PwmUnrecoverableException, PwmOperationalException {<NEW_LINE>final Map<String, String> attrib... | UserIdentity loopUser = entry.getKey(); |
37,497 | protected boolean afterSave(boolean newRecord, boolean success) {<NEW_LINE>if (!success)<NEW_LINE>return false;<NEW_LINE>//<NEW_LINE>String sql = "SELECT count(*) FROM AD_Package_Exp_Detail WHERE AD_Package_Exp_ID = ?";<NEW_LINE>int recordCount = DB.getSQLValue(get_TrxName(), sql, getAD_Package_Exp_ID());<NEW_LINE>if (... | prepareStatement(sql, get_TrxName()); |
885,929 | private Optional<SqlType> resolveCommonStructType(final TypedExpression exp, final SqlType targetType) {<NEW_LINE>final SqlType sourceType = exp.type().orElse(null);<NEW_LINE>if (targetType.baseType() != SqlBaseType.STRUCT) {<NEW_LINE>throw coercionFailureException(exp.expression(), sourceType, targetType, Optional.emp... | , Optional.of(e)); |
829,518 | private void doShow(boolean navigate) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode())<NEW_LINE>return;<NEW_LINE>removeHighlighter();<NEW_LINE>OpenFileDescriptor fileDescriptor = myOpenFileDescriptor;<NEW_LINE>if (!navigate && my... | getSelectedEditor(fileDescriptor.getFile()); |
1,271,036 | public Integer call() throws Exception {<NEW_LINE>try {<NEW_LINE>output.debug("Creating a new project with initial parameters: %s", this);<NEW_LINE>output.throwIfUnmatchedArguments(spec.commandLine());<NEW_LINE>setSingleProjectGAV(gav);<NEW_LINE>setTestOutputDirectory(output.getTestDirectory());<NEW_LINE>if (checkProje... | ).qualifiedName() + " dev"); |
1,546,170 | public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {<NEW_LINE>AMD64Kind kind = (AMD64Kind) source.getPlatformKind();<NEW_LINE>assert AVXKind.getRegisterSize(kind) == ZMM : "Can only extract 256 bits from ZMM register";<NEW_LINE>VexMRIOp op;<NEW_LINE>switch(kind.getScalar()) {<NEW_LINE>case DOU... | , asRegister(source), selector); |
287,051 | public void visitClassContext(ClassContext classContext) {<NEW_LINE>JavaClass javaClass = classContext.getJavaClass();<NEW_LINE>// The class extends WebChromeClient<NEW_LINE>boolean isWebChromeClient = InterfaceUtils.isSubtype(javaClass, "android.webkit.WebChromeClient");<NEW_LINE>// Not the target of this detector<NEW... | ] methodList = javaClass.getMethods(); |
195,735 | private void checkForAreaUpdate() {<NEW_LINE>if (client.getLocalPlayer() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int playerRegionID = WorldPoint.fromLocalInstance(client, client.getLocalPlayer().getLocalLocation()).getRegionID();<NEW_LINE>if (playerRegionID == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>fin... | > worldType = client.getWorldType(); |
1,592,283 | final DescribeDomainChangeProgressResult executeDescribeDomainChangeProgress(DescribeDomainChangeProgressRequest describeDomainChangeProgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainChangeProgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDomainChangeProgress"); |
1,106,256 | public DescribeVpcAttributeResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeVpcAttributeResult describeVpcAttributeResult = new DescribeVpcAttributeResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i... | ().unmarshall(context)); |
1,606,428 | public void populateItem(final Item<PathModel> item) {<NEW_LINE>PathModel entry = item.getModelObject();<NEW_LINE>item.add(WicketUtils.newImage("docIcon", "file_world_16x16.png"));<NEW_LINE>item.add(new Label("docSize", byteFormat.format(entry.size)));<NEW_LINE>item.add(new LinkPanel("docName", "list", StringUtils.stri... | new ExternalLink("raw", rawUrl)); |
1,184,227 | private AlertDialog.Builder buildRemoteDeleteConfirmationDialog(Set<MessageRecord> messageRecords) {<NEW_LINE>Context context = requireActivity();<NEW_LINE>int messagesCount = messageRecords.size();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());<NEW_LINE>builder.setTitle(getActivity().ge... | which) -> handleDeleteForEveryone(messageRecords)); |
573,357 | public GeometricResult triangulate(List<Point2D_F64> observations, List<DMatrixRMaj> cameraMatrices, Point4D_F64 found) {<NEW_LINE>if (observations.size() != cameraMatrices.size())<NEW_LINE>throw new IllegalArgumentException("Number of observations must match the number of motions");<NEW_LINE>LowLevelMultiViewOps.compu... | found.w = ns[3]; |
1,689,526 | public void encodeValues(Buffer valueBuffer, List<T> statDataPointList) {<NEW_LINE>Assert.isTrue(CollectionUtils.hasLength(statDataPointList), "statDataPointList must not be empty");<NEW_LINE>final int numValues = statDataPointList.size();<NEW_LINE>valueBuffer.putVInt(numValues);<NEW_LINE>List<Long> startTimestamps = n... | AgentStatDataPointCodec codec = codecFactory.getCodec(); |
1,657,640 | private synchronized byte[] readExternalPage(long pos, ReadType readType) throws IOException {<NEW_LINE>long pageStart = pos - (pos % mPageSize);<NEW_LINE>FileInStream stream = getExternalFileInStream(pageStart);<NEW_LINE>int pageSize = (int) Math.min(mPageSize, mStatus.getLength() - pageStart);<NEW_LINE>byte[<MASK><NE... | ] page = new byte[pageSize]; |
1,163,356 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | Context.NONE).getValue(); |
1,127,494 | private static boolean multiplyAndSubtractUnsignedMultiPrecision(int[] left, int leftOffset, int[] right, int length, int multiplier) {<NEW_LINE>long unsignedMultiplier = multiplier & LONG_MASK;<NEW_LINE>int leftIndex = leftOffset - length;<NEW_LINE>long multiplyAccumulator = 0;<NEW_LINE>long subtractAccumulator = INT_... | = (multiplyAccumulator >>> 32); |
972,250 | protected int xPositionForValue(final int value) {<NEW_LINE>final int min = component.getMinimum();<NEW_LINE>final int max = component.getMaximum();<NEW_LINE>final int trackLength = trackRect.width;<NEW_LINE>final double valueRange = (double) max - (double) min;<NEW_LINE>final double pixelsPerValue = (double) trackLeng... | (double) value - min)); |
134,493 | public Request<DescribeListenersRequest> marshall(DescribeListenersRequest describeListenersRequest) {<NEW_LINE>if (describeListenersRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeListenersRequest> request = new DefaultRequest<De... | , StringUtils.fromString(listenerArnsListValue)); |
888,952 | public void associate(final FastAccess<D> src, final FastAccess<D> dst) {<NEW_LINE>setupForAssociate(<MASK><NEW_LINE>final double ratioTest = this.ratioTest;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, src.size, i -> {<NEW_LINE>for (int i = 0; i < src.size; i++) {<NEW_LINE>D a = src.data[i];<NEW_LINE>double... | src.size, dst.size); |
1,261,432 | public static String doPost(String url, String paramStr, Map<String, String> headers, String method) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>HttpURLConnection conn = (HttpURLConnection) u.openConnection();<NEW_LINE>addHeaders(conn, headers);<NEW_LINE>if (StringUtils.isBlank(method)) {<NEW_LINE>conn.setRequestMethod("... | URL u = new URL(url); |
883,135 | public static void requestPermissions(PermissionsSettings settings, com.ansca.corona.CoronaActivity.OnRequestPermissionsResultHandler resultHandler, PermissionsServices services) {<NEW_LINE>// Validate arguments!<NEW_LINE>if (settings == null || resultHandler == null || services == null) {<NEW_LINE>android.util.Log.i("... | .registerRequestPermissionsResultHandler(resultHandler, settings)); |
706,066 | final BatchGetCommitsResult executeBatchGetCommits(BatchGetCommitsRequest batchGetCommitsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetCommitsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | false), new BatchGetCommitsResultJsonUnmarshaller()); |
1,527,846 | public void marshall(RoutingProfile routingProfile, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (routingProfile == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(routingProfile.getInstanceId(), INSTANCEID... | routingProfile.getMediaConcurrencies(), MEDIACONCURRENCIES_BINDING); |
1,076,437 | public static void vertical7(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int... | y - radius) * input.stride; |
1,210,290 | private Mono<PagedResponse<ExternalSecuritySolutionInner>> listByHomeRegionSinglePageAsync(String ascLocation, 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."));<NEW_LINE>}<... | .nextLink(), null)); |
1,085,405 | private BuildResult run(Action<GradleExecutionResult> resultVerification) {<NEW_LINE>if (projectDirectory == null) {<NEW_LINE>throw new InvalidRunnerConfigurationException("Please specify a project directory before executing the build");<NEW_LINE>}<NEW_LINE>if (environment != null && debug) {<NEW_LINE>throw new Invalid... | StartParameterBuildOptions.WatchFileSystemOption.GRADLE_PROPERTY + "=false"); |
1,490,252 | private static void generateShadowsToXML2(LayersBridge layersBridge, StringBuffer sb, Map<String, ShortcutAction> shortcutToAction, String indentation) {<NEW_LINE>Iterator<String> it = shortcutToAction.keySet().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String key = it.next();<NEW_LINE>ShortcutAction value = ... | "stringvalue", fo.getPath()); |
1,136,159 | private void onConfigExport() {<NEW_LINE>FileDialog dialog = new FileDialog(getControl().getShell(), SWT.SAVE);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String proposal = TextUtil.sanitizeFilename(currentConfigLabel != null ? currentConfigLabel : "csv-config");<NEW_LINE>// $NON-NLS-1$<NEW_LINE>dialog.setFileName(proposal + ".j... | currentConfigLabel : file.getName()); |
608,592 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>AppLog.d(T.MAIN, "LoginActivity: onActivity Result - requestCode" + requestCode);<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>switch(requestCode) {<NEW_LINE>case RequestCodes.SHOW_LOGIN_EPILOGUE_AND_RET... | AppLog.T.NUX, "Credentials save cancelled"); |
1,487,260 | private void assignRole(RoleAssignee ra, DataverseRole r) {<NEW_LINE>try {<NEW_LINE>String privateUrlToken = null;<NEW_LINE>commandEngine.submit(new AssignRoleCommand(ra, r, dvObject, dvRequestService.getDataverseRequest(), privateUrlToken));<NEW_LINE>List<String> args = Arrays.asList(r.getName(), ra.getDisplayInfo().g... | .getStringFromBundle("permission.roleAssignedToFor", args)); |
1,728,397 | public static boolean initWalk(JavaStackWalk walk, IsolateThread thread) {<NEW_LINE>assert thread.notEqual(CurrentIsolate.getCurrentThread()) : "Cannot walk the current stack with this method, it would miss all frames after the last frame anchor";<NEW_LINE>assert VMOperation.isInProgressAtSafepoint() : "Walking the sta... | (CodeInfoTable.lookupCodeInfo(ip)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.