idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
556,941 | public void replayAddBackend(Backend newBackend) {<NEW_LINE>// update idToBackend<NEW_LINE>Map<Long, Backend> copiedBackends = Maps.newHashMap(idToBackendRef);<NEW_LINE>copiedBackends.put(newBackend.getId(), newBackend);<NEW_LINE>ImmutableMap<Long, Backend> newIdToBackend = ImmutableMap.copyOf(copiedBackends);<NEW_LINE... | ), new AtomicLong(0L)); |
62,192 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_gameplay, container, false);<NEW_LINE>final int[] clickableIds = { R.id.digit_button_0, R.id.digit_button_1, R.id.digit_button_2, R.id.digit_button_3, R.id.digit_bu... | (clickableId).setOnClickListener(this); |
864,268 | public void printExportMoveLine(ActionRequest request, ActionResponse response) {<NEW_LINE>AccountingReport accountingReport = request.getContext().asType(AccountingReport.class);<NEW_LINE>accountingReport = Beans.get(AccountingReportRepository.class).find(accountingReport.getId());<NEW_LINE>AccountingReportService acc... | .get(IExceptionMessage.ACCOUNTING_REPORT_4)); |
468,704 | protected void addTradeInfoBlock() {<NEW_LINE>TitledGroupBg tradeInfoTitledGroupBg = addTitledGroupBg(gridPane, gridRow, 3, Res.get("portfolio.pending.tradeInformation"));<NEW_LINE>GridPane.setColumnSpan(tradeInfoTitledGroupBg, 2);<NEW_LINE>final Tuple3<Label, TxIdTextField, VBox> labelTxIdTextFieldVBoxTuple3 = addTopL... | getChildren().add(timeLeftProgressBar); |
402,055 | public int callUpdateRichtextChildAttr(String instanceId, String ref, HashMap<String, String> attrs, String parentRef, String richTextRef) {<NEW_LINE>if (TextUtils.isEmpty(instanceId) || TextUtils.isEmpty(ref)) {<NEW_LINE>if (WXEnvironment.isApkDebugable()) {<NEW_LINE>WXLogUtils.d("[WXBridgeManager] call callUpdateRich... | ref, attrs, parentRef, richTextRef); |
232,126 | private void handleWhereCondition(SQLExpr whereExpr) {<NEW_LINE>MySQLItemVisitor mev = new MySQLItemVisitor(this.currentDb, this.charsetIndex, this.metaManager, this.usrVariables, this.hintPlanInfo);<NEW_LINE>whereExpr.accept(mev);<NEW_LINE>if (this.tableNode != null) {<NEW_LINE>if (tableNode instanceof JoinInnerNode) ... | ErrorCode.ER_OPTIMIZER, "", "from expression is null,check the sql!"); |
1,750,209 | private static void printHelpExit(CmdLineParser parser) {<NEW_LINE>parser.getProperties().withUsageWidth(120);<NEW_LINE>parser.printUsage(System.out);<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("Document Types");<NEW_LINE>for (PaperSize p : PaperSize.values()) {<NEW_LINE>System.out.printf(" %12s %5.0f... | System.out.println("-t \"http://boofcv.org\" -t \"Hello There!\" -p LETTER -w 5 --GridFill -o document.pdf"); |
250,218 | public static void onEnter(@Advice.This Object source, @Advice.Argument(2) HttpServletRequest request, @Advice.Argument(3) HttpServletResponse response, @Advice.Local("otelRequest") ServletRequestContext<HttpServletRequest> requestContext, @Advice.Local("otelContext") Context context, @Advice.Local("otelScope") Scope s... | ).start(parentContext, requestContext); |
1,611,866 | public void onLoadFinished(@NonNull Loader<List<Extension>> loader, @NonNull List<Extension> all) {<NEW_LINE>if (all.size() == 0) {<NEW_LINE>Timber.d("Did not find any extension");<NEW_LINE>} else {<NEW_LINE>Timber.d("Found %d extensions", all.size());<NEW_LINE>}<NEW_LINE>// find all disabled extensions<NEW_LINE>List<C... | ).getEnabledExtensions(getContext()); |
404,428 | private MemcachedBackupSession loadBackupSession(final String requestedSessionId, final String newNodeId) {<NEW_LINE>try {<NEW_LINE>final SessionValidityInfo <MASK><NEW_LINE>if (validityInfo == null || !validityInfo.isValid()) {<NEW_LINE>if (_log.isDebugEnabled())<NEW_LINE>_log.debug("No validity info (or no valid one)... | validityInfo = _lockingStrategy.loadBackupSessionValidityInfo(requestedSessionId); |
1,101,196 | protected void onInitialize() {<NEW_LINE>super.onInitialize();<NEW_LINE>final String diffStat = MessageFormat.format(getString("gb.diffStat"), "" + insertions, "" + deletions);<NEW_LINE>WicketUtils.setHtmlTooltip(this, diffStat);<NEW_LINE>final NormalizedDiffStat n = DiffUtils.normalizeDiffStat(5, insertions, deletions... | WicketUtils.setCssClass(this, "diffstat"); |
1,594,946 | public ParameterizedExecutableType constructorFromUse(NewClassTree tree) {<NEW_LINE>AnnotatedTypeMirror type = fromNewClass(tree);<NEW_LINE>addComputedTypeAnnotations(tree, type);<NEW_LINE>ExecutableElement ctor = TreeUtils.constructor(tree);<NEW_LINE>// get unsubstituted type<NEW_LINE>AnnotatedExecutableType con = get... | ), con.getTypeVariables()); |
1,295,396 | void animateSettle(int targetOffset, float initialVelocity) {<NEW_LINE>if (settling)<NEW_LINE>return;<NEW_LINE>if (sheetOffsetHelper.getTopAndBottomOffset() == targetOffset) {<NEW_LINE>if (targetOffset >= dismissOffset) {<NEW_LINE>dispatchDismissCallback();<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>settling = tru... | ).setMinimumVisibleChange(DynamicAnimation.MIN_VISIBLE_CHANGE_PIXELS); |
1,655,060 | public ECPoint twicePlus(ECPoint b) {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if (b.isInfinity()) {<NEW_LINE>return twice();<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own a... | (B).multiply(Z1Sq); |
1,652,830 | public void export(Collection<Metric> metrics) {<NEW_LINE>samples.ensureCapacity(metrics.size());<NEW_LINE>for (Metric metric : metrics) {<NEW_LINE>MetricDescriptor metricDescriptor = metric.getMetricDescriptor();<NEW_LINE>if (containsDisallowedLeLabelForHistogram(convertToLabelNames(metricDescriptor.getLabelKeys()), g... | .createMetricFamilySamples(metric, namespace)); |
1,741,497 | static GitHub connect() {<NEW_LINE><MASK><NEW_LINE>final Encoder encoder = new GsonEncoder();<NEW_LINE>return Feign.builder().encoder(encoder).decoder(decoder).errorDecoder(new GitHubErrorDecoder(decoder)).logger(new Logger.ErrorLogger()).logLevel(Logger.Level.BASIC).requestInterceptor(template -> {<NEW_LINE>// not ava... | final Decoder decoder = new GsonDecoder(); |
1,595,869 | public Bucket updateBucketState(Bucket bucket, Bucket.State desiredState) {<NEW_LINE>LOGGER.debug("Updating bucket {} state {}", new Object[] { bucket, desiredState });<NEW_LINE>try {<NEW_LINE>bucketAccessor.updateState(desiredState.name(), bucket.getExperimentID().getRawID(), bucket.<MASK><NEW_LINE>Result<com.intuit.w... | getLabel().toString()); |
867,811 | public AbstractParquetGroupScan build() {<NEW_LINE>AbstractParquetGroupScan newScan = getNewScan();<NEW_LINE>newScan.tableMetadata = tableMetadata;<NEW_LINE>// updates common row count and nulls counts for every column<NEW_LINE>if (newScan.getTableMetadata() != null && rowGroups != null && newScan.getRowGroupsMetadata(... | ), rowGroups.values()); |
1,233,553 | private void readNext() {<NEW_LINE>final List<String> scans = new ArrayList<>();<NEW_LINE>while (tsIter.hasNext()) {<NEW_LINE>final String tserver = tsIter.next();<NEW_LINE>try {<NEW_LINE>final List<ActiveScan> asl = instanceOps.getActiveScans(tserver);<NEW_LINE>for (ActiveScan as : asl) {<NEW_LINE>var dur = new Durati... | as.getLastContactTime(), ""); |
255,457 | public static Object jlrConstructorNewInstance(Constructor<?> c, Object... params) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SecurityException, NoSuchMethodException {<NEW_LINE>// Note: unlike for methods we don't need to handle the reloadable but not re... | CurrentLiveVersion clv = rtype.getLiveVersion(); |
1,195,600 | private long recover() {<NEW_LINE>String oldFilePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + info.currentFileNum);<NEW_LINE>File oldFile = new File(oldFilePath);<NEW_LINE>String newFilePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + info.currentFileNum) + "_temp";<NEW_LI... | File newFile = new File(newFilePath); |
1,064,971 | public ModbusSlaveConnection create(ModbusSlaveEndpoint endpoint) throws Exception {<NEW_LINE>return endpoint.accept(new ModbusSlaveEndpointVisitor<ModbusSlaveConnection>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ModbusSlaveConnection visit(ModbusSerialSlaveEndpoint modbusSerialSlavePoolingKey) {<NEW_LINE>Serial... | trace("Created connection {} for endpoint {}", connection, modbusSerialSlavePoolingKey); |
893,132 | public AnnotationMirror convertAnnotationMirror(StringToJavaExpression stringToJavaExpr, AnnotationMirror anno) {<NEW_LINE>if (!isExpressionAnno(anno)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<ExecutableElement, List<JavaExpression>> newElements = new HashMap<>();<NEW_LINE>for (ExecutableElement element : getLis... | class, Collections.emptyList()); |
217,934 | public <R> R commit(Callable<R> callable) {<NEW_LINE>this.groups.autoCommit(false);<NEW_LINE>this.access.autoCommit(false);<NEW_LINE>this.targets.autoCommit(false);<NEW_LINE>this.project.autoCommit(false);<NEW_LINE>this.belong.autoCommit(false);<NEW_LINE>this.users.autoCommit(false);<NEW_LINE>try {<NEW_LINE>R result = ... | this.project.autoCommit(true); |
332,056 | public void headersRead(final Metadata headers) {<NEW_LINE><MASK><NEW_LINE>final Link link = PerfMark.linkOut();<NEW_LINE>final class HeadersRead extends ContextRunnable {<NEW_LINE><NEW_LINE>HeadersRead() {<NEW_LINE>super(context);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runInContext() {<NEW_LINE>P... | PerfMark.startTask("ClientStreamListener.headersRead", tag); |
497,860 | private void validateInfo() {<NEW_LINE>// check repo id<NEW_LINE>String id = txtRepoId.getText().trim();<NEW_LINE>if (id.length() == 0) {<NEW_LINE>btnOK.setEnabled(false);<NEW_LINE>lblValidate.setText(LBL_Repo_id_Error1());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (id.indexOf('/') != -1) {<NEW_LINE>btnOK.setEnabled(fals... | setText(info.getName()); |
430,011 | public String toJson() {<NEW_LINE>JsonObject json = new JsonObject();<NEW_LINE>if (mArtists != null) {<NEW_LINE>JsonArray artists = new JsonArray();<NEW_LINE>for (Pair<Artist, String> artist : mArtists) {<NEW_LINE>JsonObject o = new JsonObject();<NEW_LINE>o.addProperty("artist", artist.first.getName());<NEW_LINE>o.addP... | json.add("artists", artists); |
92,311 | private // ------------------//<NEW_LINE>List<CLinker> lookupOtherHeads() {<NEW_LINE>if (head.isVip()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>final List<CLinker> list = new ArrayList<>();<NEW_LINE>// Last ordinate before candidates<NEW_LINE>final double yLast = refPt.getY() + yDir * params.minHeadHeadDy;<NEW_LINE>// Fil... | logger.info("VIP {} lookupOtherHeads", this); |
1,138,908 | public ObjectFieldNode transform(ObjectFieldNode objectFieldNode) {<NEW_LINE>MetadataNode metadata = formatNode(objectFieldNode.metadata().orElse(null), 0, 1);<NEW_LINE>Token visibilityQualifier = formatToken(objectFieldNode.visibilityQualifier().orElse(null), 1, 0);<NEW_LINE>NodeList<Token> qualifierList = formatNodeL... | 1, 0, 1, 0); |
1,086,407 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response createContentPortlet(@Context final HttpServletRequest request, final CustomPortletForm formData) {<NEW_LINE>final InitDataObject initData =... | requiredPortlet("roles").init(); |
1,752,431 | private static int mapActions(SQLite3GlobalState globalState, Action a) {<NEW_LINE>int nrPerformed = 0;<NEW_LINE>Randomly r = globalState.getRandomly();<NEW_LINE>switch(a) {<NEW_LINE>case CREATE_VIEW:<NEW_LINE>nrPerformed = r.getInteger(0, 2);<NEW_LINE>break;<NEW_LINE>case DELETE:<NEW_LINE>case DROP_VIEW:<NEW_LINE>case... | r.getInteger(1, 10); |
765,672 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLInsertIntoEventPrecConstantInfraMergeInsertInto(false));<NEW_LINE>execs.<MASK><NEW_LINE>execs.add(new EPLInsertIntoEventPrecConstantInsertInto());<NEW_LINE>execs.add(new EPLInse... | add(new EPLInsertIntoEventPrecConstantInfraMergeInsertInto(true)); |
959,075 | private void validateTransparent(ShieldedTransferContract shieldedTransferContract, long fee) throws ContractValidateException {<NEW_LINE>boolean hasTransparentFrom;<NEW_LINE>boolean hasTransparentTo;<NEW_LINE>byte[] toAddress = shieldedTransferContract.getTransparentToAddress().toByteArray();<NEW_LINE>byte[] ownerAddr... | e.getMessage(), e); |
323,868 | final CreateCloudFormationTemplateResult executeCreateCloudFormationTemplate(CreateCloudFormationTemplateRequest createCloudFormationTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCloudFormationTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
948,218 | protected void onHandleIntent(@Nullable Intent intent) {<NEW_LINE>if (intent == null) {<NEW_LINE>sendResults(Activity.RESULT_CANCELED, null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>op = intent.getIntExtra(EXTRA_OP, BatchOpsManager.OP_NONE);<NEW_LINE>packages = intent.getStringArrayListExtra(EXTRA_OP_PKG);<NEW_LINE>if (pa... | sendResults(Activity.RESULT_OK, null); |
516,959 | private void updateAnimation() {<NEW_LINE>int playTime;<NEW_LINE>if (getListView() != null && getListView().getFirstVisiblePosition() == 0 && getListView().getListChildAt(0) != null) {<NEW_LINE>FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) getListView().getLayoutParams();<NEW_LINE>float delta = getListVi... | .getTop() + params.topMargin; |
342,766 | private static void addRoutingTable(RoutingSpec routing, RoutingTableSpec from) {<NEW_LINE>RoutingTableSpec to = getRoutingTable(routing, from.getProtocol());<NEW_LINE>if (to != null) {<NEW_LINE>Set<String> <MASK><NEW_LINE>for (int i = 0, len = to.getNumHops(); i < len; ++i) {<NEW_LINE>names.add(to.getHop(i).getName())... | names = new HashSet<>(); |
1,721,484 | public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType) {<NEW_LINE>initializeInterceptionModel(annotatedType);<NEW_LINE>InterceptionModel interceptionModel = null;<NEW_LINE>if (isInterceptionCandidate()) {<NEW_LINE>interceptionModel = beanManager.getInterceptorModelRegistry().get(getType());<NE... | , getBean(), decorators)); |
313,055 | public void run() {<NEW_LINE>if (stopFlush) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (flushError != null) {<NEW_LINE>OLogManager.instance().errorNoDb(this, "Can not flush data because of issue during data write, %s", null, flushError.getMessage());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (writeCachePage... | long ewcSize = exclusiveWriteCacheSize.get(); |
649,934 | final DescribeResourcePolicyResult executeDescribeResourcePolicy(DescribeResourcePolicyRequest describeResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
758,291 | final ListApplicationsResult executeListApplications(ListApplicationsRequest listApplicationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApplicationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | invoke(request, responseHandler, executionContext); |
1,466,546 | public void appendItemToService(int service, EcuDataItem newItem) {<NEW_LINE>// check if service existes already<NEW_LINE>HashMap<Integer, Vector<EcuDataItem>> currSvc = get(service);<NEW_LINE>// if not - create it<NEW_LINE>if (currSvc == null) {<NEW_LINE>currSvc = new HashMap<>();<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$... | currVec = new Vector<>(); |
599,297 | private void layoutGridLines(CompositeSize columnWidths, CompositeSize rowHeights, double x, double y, double columnHeight, double rowWidth) {<NEW_LINE>if (!isGridLinesVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!gridLines.getChildren().isEmpty()) {<NEW_LINE>gridLines.getChildren().clear();<NEW_LINE>}<NEW_LIN... | linex += columnWidths.getSize(i); |
1,452,455 | public void registerMap() {<NEW_LINE>// Entity ID<NEW_LINE>map(Type.INT);<NEW_LINE>// Hardcore<NEW_LINE>map(Type.BOOLEAN);<NEW_LINE>// Gamemode<NEW_LINE>map(Type.UNSIGNED_BYTE);<NEW_LINE>// Previous Gamemode<NEW_LINE>map(Type.BYTE);<NEW_LINE>// World List<NEW_LINE>map(Type.STRING_ARRAY);<NEW_LINE>// Registry<NEW_LINE>m... | ) dimension).get("element"); |
1,330,795 | protected void doUpdate(Session session) {<NEW_LINE>final MongoDbSession dbSession = mongoDBSessionService.load(session.<MASK><NEW_LINE>if (null == dbSession) {<NEW_LINE>throw new RuntimeException("Couldn't load session");<NEW_LINE>}<NEW_LINE>LOG.debug("Updating session");<NEW_LINE>dbSession.setHost(session.getHost());... | getId().toString()); |
323,752 | private Instant figureEstimatedCompletion(final ProgressTracker tracker, final Collection<ProgressRecord> progressRecords) {<NEW_LINE>final Instant minCompletionTime = minCompletionTime(tracker);<NEW_LINE>final Instant maxCompletionTime = maxCompletionTime(tracker);<NEW_LINE>final Instant estimatedCompletion;<NEW_LINE>... | , () -> "percent complete: " + pctComplete); |
155,272 | final ModifyDBProxyResult executeModifyDBProxy(ModifyDBProxyRequest modifyDBProxyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBProxyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,826,095 | private void upsertContentlet(final Contentlet contentlet, final String inode) throws DotDataException {<NEW_LINE>final UpsertCommand upsertContentletCommand = UpsertCommandFactory.getUpsertCommand();<NEW_LINE>final SimpleMapAppContext replacements = new SimpleMapAppContext();<NEW_LINE>replacements.setAttribute(QueryRe... | .addAll(getParamsToSaveUpdateContent(contentlet)); |
1,842,186 | public static Collection<? extends PersistenceUnitInfo> parse(URL persistenceXml) {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>// Buffer the InputStream so we can mark it, though we'll be in<NEW_LINE>// trouble if we have to read more than 8192 characters before finding<NEW_LINE>// the schema!<NEW_LINE>is ... | .substring(0, endIndex)); |
1,454,392 | public static boolean scrollToVisible(@Nonnull JTree tree, @Nonnull TreePath path, boolean centered) {<NEW_LINE>assert UIAccess.isUIThread();<NEW_LINE>Rectangle bounds = tree.getPathBounds(path);<NEW_LINE>if (bounds == null) {<NEW_LINE>LOG.debug("cannot scroll to: ", path);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Co... | x -= JBUI.scale(20); |
1,518,641 | private static boolean forName(JNIEnvironment jni, Breakpoint bp, InterceptedState state) {<NEW_LINE>JNIObjectHandle callerClass = state.getDirectCallerClass();<NEW_LINE>JNIObjectHandle name = getObjectArgument(0);<NEW_LINE>String className = fromJniString(jni, name);<NEW_LINE>boolean classLoaderValid = true;<NEW_LINE>... | , classLoaderPtr) == JvmtiError.JVMTI_ERROR_NONE); |
921,531 | public static void takeSignature(IMethodResult result, String imgFormat, Bitmap bitmap, String filePath, int penColor, int bgColor) {<NEW_LINE>Logger.D(TAG, "takeSignature+");<NEW_LINE>try {<NEW_LINE>String outputFilePath;<NEW_LINE>if (imgFormat.equals("jpg")) {<NEW_LINE>outputFilePath = saveJpg(bitmap, filePath);<NEW_... | results.put("imageUri", "only read sdcard permission is there in build.yml"); |
1,650,756 | public static DescribeCustomerFlowByLocationOfflineResponse unmarshall(DescribeCustomerFlowByLocationOfflineResponse describeCustomerFlowByLocationOfflineResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCustomerFlowByLocationOfflineResponse.setRequestId(_ctx.stringValue("DescribeCustomerFlowByLocationOfflineRespo... | = new ArrayList<CustomerFlowItem>(); |
1,432,835 | protected void configure() {<NEW_LINE>bindForSupportedVersion(CountsAdapter.class).to(CountsAdapterES7.class);<NEW_LINE>bindForSupportedVersion(ClusterAdapter.class).to(ClusterAdapterES7.class);<NEW_LINE>bindForSupportedVersion(IndicesAdapter.class<MASK><NEW_LINE>bindForSupportedVersion(IndexFieldTypePollerAdapter.clas... | ).to(IndicesAdapterES7.class); |
301,781 | private VName defineTypeParameters(TreeContext ownerContext, VName owner, List<JCTypeParameter> params, List<VName> wildcards, MarkedSource markedSource) {<NEW_LINE>if (params.isEmpty() && wildcards.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<VName> typeParams = new ArrayList<>();<NEW_LINE>for (JCTypePa... | null)).orElse(null); |
1,629,627 | private void verifyType(TypeElement type, PackageElement pkg) throws CannotGenerateCodeException {<NEW_LINE>if (pkg.isUnnamed()) {<NEW_LINE>messager.printMessage(ERROR, "FreeBuilder does not support types in unnamed packages", type);<NEW_LINE>throw new CannotGenerateCodeException();<NEW_LINE>}<NEW_LINE>switch(type.getN... | "Unexpected element kind " + type.getKind()); |
690,816 | public Object calculate(Context ctx) {<NEW_LINE>if (cursor instanceof ClusterCursor) {<NEW_LINE>return memory((ClusterCursor) cursor, param, ctx);<NEW_LINE>}<NEW_LINE>Sequence seq;<NEW_LINE>String[] keys = null;<NEW_LINE>String distribute = null;<NEW_LINE>Integer partition = null;<NEW_LINE>;<NEW_LINE>TableMetaData tmd ... | MemoryTable result = new MemoryTable(table); |
680,764 | public Iterator<O> iterator() {<NEW_LINE>final Connection searchConnection = connectionManager.getConnection(SQLiteIndex.this, queryOptions);<NEW_LINE>// eliminates duplicates<NEW_LINE>final java.sql.ResultSet searchResultSet = DBQueries.search(query, tableName, searchConnection);<NEW_LINE>closeableResourceGroup.add(DB... | searchResultSet, primaryKeyAttribute.getAttributeType()); |
552,664 | private Class<?> urlToDefineClass(String name, URL res, boolean resolve) throws ClassNotFoundException {<NEW_LINE>byte[] b;<NEW_LINE>int p = 0;<NEW_LINE>try {<NEW_LINE>InputStream in = res.openStream();<NEW_LINE>try {<NEW_LINE>b = new byte[65536];<NEW_LINE>while (true) {<NEW_LINE>int r = in.read(b, p, b.length - p);<NE... | byte[b.length * 2]; |
1,220,926 | public static double calculateMaxExtent(Geometry geom) throws InternalServerException {<NEW_LINE>try {<NEW_LINE>// https://gis.stackexchange.com/questions/265481/geotools-unexpected-result-reprojecting-bounding-box-to-epsg3035<NEW_LINE>System.setProperty("org.geotools.referencing.forceXY", "true");<NEW_LINE>Polygon pol... | ), envelope.getWidth()); |
265,283 | private void loadNode850() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditHistoryEventUpdateEventType_PerformInsertReplace, new QualifiedName(0, "PerformInsertReplace"), new LocalizedText("en", "PerformInsertReplace"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.value... | .expanded(), true)); |
10,819 | private void updateQueue(QueueTask qt) {<NEW_LINE>if (System.currentTimeMillis() - qt.order.createdTime >= this.queueTime) {<NEW_LINE>// since payment time is lesser than queuetime it would have already failed..<NEW_LINE>// additional check not needed<NEW_LINE>LOG.trace(ORDER_ID + ": Queue time for order over, failed..... | id, qt1.getType()); |
1,746,133 | private void addDestroyChildNodesCommand(ICompositeCommand cmd) {<NEW_LINE>View view = (View) getHost().getModel();<NEW_LINE>for (Iterator nit = view.getChildren().iterator(); nit.hasNext(); ) {<NEW_LINE>Node node = <MASK><NEW_LINE>switch(OpenDDSDcpsLibVisualIDRegistry.getVisualID(node)) {<NEW_LINE>case Period4EditPart... | (Node) nit.next(); |
1,275,818 | private void testLookupCombinationsHelperRemote(Context context, String contextString, String lookupName, String BindingName, String beanNum, String passingCases) {<NEW_LINE>try {<NEW_LINE>System.out.println("Testing " + lookupName + " with context " + contextString + " against " + BindingName);<NEW_LINE>Object lookup ... | e.printStackTrace(System.out); |
1,778,878 | public IfcModelInterface execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException, ServerException {<NEW_LINE>DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.READ_ONLY);<NEW_LINE>try {<NEW_LINE>SerializerPluginConfiguration serializerPluginConfigurati... | ).createServerModel(packageMetaData, null); |
404,887 | final ListDatasetsResult executeListDatasets(ListDatasetsRequest listDatasetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
619,909 | private void drawPathScreenTicks(Graphics2D g2d, float x, float y, int viewWidth, int viewHeight, int layoutWidth, int layoutHeight) {<NEW_LINE>float x1 = 0;<NEW_LINE>float y1 = 0;<NEW_LINE>float x2 = 1;<NEW_LINE>float y2 = 1;<NEW_LINE>float minx = 0;<NEW_LINE>float maxy = 0;<NEW_LINE>float xgap = x;<NEW_LINE>float yga... | .max(y1, y2)); |
1,110,353 | protected String doSubmitAction(@ModelAttribute("command") GeneralSettingsCommand command, RedirectAttributes redirectAttributes) {<NEW_LINE>int themeIndex = Integer.parseInt(command.getThemeIndex());<NEW_LINE>Theme theme = settingsService.getAvailableThemes()[themeIndex];<NEW_LINE>int localeIndex = Integer.parseInt(co... | setWelcomeSubtitle(command.getWelcomeSubtitle()); |
880,536 | private String handleParameters(HttpServletRequest request) {<NEW_LINE>List<InternetRadio> radios = settingsService.getAllInternetRadios(true);<NEW_LINE>for (InternetRadio radio : radios) {<NEW_LINE>Integer id = radio.getId();<NEW_LINE>String streamUrl = getParameter(request, "streamUrl", id);<NEW_LINE>String homepageU... | getParameter(request, "name", id); |
1,010,685 | static <T, W extends BoundedWindow, ViewT> PCollectionView<ViewT> applyForIterableLike(DataflowRunner runner, PCollection<T> input, PCollectionView<ViewT> view) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Coder<W> windowCoder = (Coder<W>) input.getWindowingStrategy().getWindowFn().windowCoder();<NEW_LINE>IsmReco... | new ToIsmRecordForGlobalWindowDoFn<>())); |
334,295 | public synchronized void open() throws IOException {<NEW_LINE>HugeConfig config = this.config();<NEW_LINE>String hosts = config.get(HbaseOptions.HBASE_HOSTS);<NEW_LINE>int port = <MASK><NEW_LINE>String znodeParent = config.get(HbaseOptions.HBASE_ZNODE_PARENT);<NEW_LINE>boolean isEnableKerberos = config.get(HbaseOptions... | config.get(HbaseOptions.HBASE_PORT); |
318,343 | public Object doQuery(Object[] objs) {<NEW_LINE>try {<NEW_LINE>if (objs.length < 2) {<NEW_LINE>throw new RQException("dyna_query missingParam");<NEW_LINE>}<NEW_LINE>ImOpen imOpen = null;<NEW_LINE>String strSql = null;<NEW_LINE>if (objs[0] instanceof ImOpen) {<NEW_LINE>imOpen = (ImOpen) objs[0];<NEW_LINE>}<NEW_LINE>if (... | imOpen.m_client, strSql, parameters); |
620,691 | public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {<NEW_LINE>try {<NEW_LINE>CertStore certStore = CertStore.getInstance("Collection", new CollectionCertStoreParameters(Arrays.asList(x509Certificates)), "BC");<NEW_LINE>CertPathBuilder pathBuilder = CertPathBuilder.g... | = new PKIXBuilderParameters(anchors, constraints); |
1,619,531 | protected RecoveryResponse newResponse(RecoveryRequest request, int totalShards, int successfulShards, int failedShards, List<RecoveryState> responses, List<DefaultShardOperationFailedException> shardFailures, ClusterState clusterState) {<NEW_LINE>Map<String, List<RecoveryState>> shardResponses = new HashMap<>();<NEW_L... | , new ArrayList<>()); |
1,114,270 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>// widen to long<NEW_LINE>String stmtTextCreate = namedWindow ? "@public create window MyInfraW#keepall as (f1 long, f2 string)" : "@public create table MyInfraW as (f1 long primary key, f2 string primary key)";<N... | env.compileExecuteFAF("select * from MyInfraW where f1=10", path); |
1,401,453 | public void read(org.apache.thrift.protocol.TProtocol iprot, contiuneGetSummaries_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TT... | apache.thrift.protocol.TField schemeField; |
1,563,384 | static void localeDataComputeScript(byte[] out, final byte[] language, final byte[] region) {<NEW_LINE>if (language[0] == '\0') {<NEW_LINE>// memset(out, '\0', SCRIPT_LENGTH);<NEW_LINE>Arrays.fill(out, (byte) 0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int lookup_key = packLocale(language, region);<NEW_LINE>Byte lookup_re... | (out, (byte) 0); |
63,142 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>getCompletedCompactions_result result = new getCompletedCompactions_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportExcepti... | _LOGGER.error("Exception writing to internal frame buffer", ex); |
1,688,188 | public void apply(Project project) {<NEW_LINE>project.getPlugins(<MASK><NEW_LINE>project.getPlugins().apply(JavaPlugin.class);<NEW_LINE>project.getPlugins().apply(CheckstyleConvention.class);<NEW_LINE>project.getPlugins().apply(JacocoConvention.class);<NEW_LINE>project.getPlugins().apply(SpotbugsConvention.class);<NEW_... | ).apply(JavaBaseConvention.class); |
156,129 | public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serviceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.... | )).readOnly())); |
1,305,702 | static void mergeIntoSource(Map<String, Object> source, Map<String, Object> mappingUpdate, List<String> path) {<NEW_LINE>for (Map.Entry<String, Object> updateEntry : mappingUpdate.entrySet()) {<NEW_LINE>String key = updateEntry.getKey();<NEW_LINE>Object updateValue = updateEntry.getValue();<NEW_LINE>if (source.contains... | sourceValue = source.get(key); |
844,260 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>String groupId = req.getParameter("groupId");<NEW_LINE>String imageId = req.getParameter("imageId");<NEW_LINE>if (groupId == null || imageId == null) {<NEW_LINE>resp.sendError(HttpServletResponse.SC_NO... | groupId, imageId, 0, 0); |
566,813 | protected void renderGrid(Graphics2D g2, double scale) {<NEW_LINE>List<SquareGrid> grids = getGrids();<NEW_LINE>for (int i = 0; i < grids.size(); i++) {<NEW_LINE>SquareGrid g = grids.get(i);<NEW_LINE>int a = grids.size() == 1 ? 0 : 255 * i / (grids.size() - 1);<NEW_LINE>int rgb = a << 16 | (255 - a) << 8;<NEW_LINE>g2.s... | square, true, scale, g2); |
756,654 | public void marshall(CreateMeetingWithAttendeesRequest createMeetingWithAttendeesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createMeetingWithAttendeesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | createMeetingWithAttendeesRequest.getClientRequestToken(), CLIENTREQUESTTOKEN_BINDING); |
1,093,772 | protected String toTypescriptTypeName(final String name, String safePrefix) {<NEW_LINE>ArrayList<String> exceptions = new ArrayList<String>(Arrays.asList("\\|", " "));<NEW_LINE>String sanName = sanitizeName(name, "(?![| ])\\W", exceptions);<NEW_LINE>sanName = camelize(sanName);<NEW_LINE>// model name cannot use reserve... | warn("{} (model name matches existing language type) cannot be used as a model name. Renamed to {}", sanName, modelName); |
180,057 | public void run() {<NEW_LINE>while (rpcService != null) {<NEW_LINE>try {<NEW_LINE>// Batch up sync tasks so we use fewer, larger messages<NEW_LINE>// XXX - todo - handle hints targeted to specific nodes<NEW_LINE>storeRegistry.takeHints(tasks, 50);<NEW_LINE>for (Hint task : tasks) {<NEW_LINE>counterHints.increment();<NE... | ), task.getValues()); |
1,299,710 | void postIngestMessage(IngestMessage message) {<NEW_LINE>synchronized (this.ingestMessageBoxLock) {<NEW_LINE>if (ingestMessageBox != null && RuntimeProperties.runningWithGUI()) {<NEW_LINE>if (message.getMessageType() != IngestMessage.MessageType.ERROR && message.getMessageType() != IngestMessage.MessageType.WARNING) {<... | long errorPosts = ingestErrorMessagePosts.incrementAndGet(); |
370,617 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Context context = getActivity();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(context);<NEW_LINE>View view = LayoutInflater.from(context).inflate(R.layout.fragment_dialog_list, null, false);<NEW_LINE>mListView = (ListView) view.findVie... | , (i + 1))); |
1,658,259 | private static void testComposite() {<NEW_LINE>// Note that we created two copies of each class to increase variety and avoid potential<NEW_LINE>// optimizations that wouldn't applicable in the real life.<NEW_LINE>ComponentA componentA = new AutoValue_ComponentA(1, false, "hello", 42d, new int[] { 1, 2, 3 });<NEW_LINE>... | .getArrayField()[1]); |
240,035 | private void processSetTemplate(SetTemplatePlan setTemplatePlan, LocalSchemaProcessor schemaProcessor, Map<String, Map<String, SetTemplatePlan>> setTemplatePlanAboveSG) throws MetadataException {<NEW_LINE>PartialPath path = new PartialPath(setTemplatePlan.getPrefixPath());<NEW_LINE>List<PartialPath> storageGroupPathLis... | String templateName = setTemplatePlan.getTemplateName(); |
400,538 | public File locatePom(final File dir) {<NEW_LINE>assert manager != null;<NEW_LINE>File pomFile = manager.findPom(dir);<NEW_LINE>if (pomFile == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (pomFile.getName().equals(DEFAULT_POM_FILE) && pomFile.getParentFile().equals(dir)) {<NEW_LINE>// behave like proper maven in case... | return new File(dir, DEFAULT_POM_FILE); |
1,357,887 | public ContractLine compute(ContractLine contractLine, Contract contract, Product product) throws AxelorException {<NEW_LINE>Preconditions.checkNotNull(contract, I18n.get("Contract can't be " + "empty for compute contract line price."));<NEW_LINE>Preconditions.checkNotNull(product, "Product can't be " + "empty for comp... | (contract.getCompany())); |
191,187 | void maybeAddPartitions(final int requiredMinPartitionNum) throws ExecutionException, InterruptedException, CancellationException, TimeoutException {<NEW_LINE>if (!_topicAddPartitionEnabled) {<NEW_LINE>LOGGER.info("Adding partition to {} topic is not enabled in a cluster with Zookeeper URL {}. " + "Refer to config: {}"... | ), _topic, currPartitionNum, requiredMinPartitionNum); |
714,729 | public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>updateColors();<NEW_LINE>GL11.glDisable(GL11.GL_CULL_FACE);<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>// GL11.glShadeModel(GL11.GL_SMOOTH);<... | window.dragTo(mouseX, mouseY); |
1,321,189 | public static List<TraceView> decodeFromTraceTransData(String key, MessageExt messageExt) {<NEW_LINE>List<TraceView> messageTraceViewList = new ArrayList<TraceView>();<NEW_LINE>String messageBody = new String(messageExt.getBody(), StandardCharsets.UTF_8);<NEW_LINE>if (messageBody == null || messageBody.length() <= 0) {... | getTraceBeans().get(0); |
989,736 | protected WireFeed createRealFeed(final String type, final SyndFeed syndFeed) {<NEW_LINE>final Channel channel = (Channel) super.createRealFeed(type, syndFeed);<NEW_LINE>// c<NEW_LINE>channel.setLanguage(syndFeed.getLanguage());<NEW_LINE>// c<NEW_LINE>channel.setCopyright(syndFeed.getCopyright());<NEW_LINE>// c<NEW_LIN... | setPubDate(syndFeed.getPublishedDate()); |
1,508,937 | private void onMoodsListChange(String text) throws JsonSyntaxException {<NEW_LINE>LxControlMood[] array = getGson().fromJson(text, LxControlMood[].class);<NEW_LINE>Map<Integer, LxControlMood> newMoodList = new HashMap<>();<NEW_LINE>Integer minMoodId = null;<NEW_LINE>Integer maxMoodId = null;<NEW_LINE>for (LxControlMood... | (m -> addControl(m)); |
490,872 | void readItemsFromJson(@NonNull JSONObject json) throws IllegalArgumentException {<NEW_LINE>try {<NEW_LINE>if (!json.has("items")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JSONArray jsonArray = json.getJSONArray("items");<NEW_LINE>for (int i = 0; i < jsonArray.length(); i++) {<NEW_LINE>JSONObject object = jsonArray.getJS... | direction = object.optDouble("direction"); |
569,614 | public void configurarCores() {<NEW_LINE><MASK><NEW_LINE>paineInferior.setBackground(ColorController.FUNDO_ESCURO);<NEW_LINE>painelTitleIssue.setBackground(ColorController.FUNDO_MEDIO);<NEW_LINE>labelTitleIssue.setForeground(ColorController.COR_LETRA);<NEW_LINE>painelTxtIssue.setBackground(ColorController.FUNDO_CLARO);... | mainpanel.setBackground(ColorController.FUNDO_MEDIO); |
457,608 | public void doRun(String testId, BuildExperimentSpec experiment, MeasuredOperationList results) {<NEW_LINE>MavenBuildExperimentSpec experimentSpec = (MavenBuildExperimentSpec) experiment;<NEW_LINE><MASK><NEW_LINE>File workingDirectory = invocationSpec.getWorkingDirectory();<NEW_LINE>InvocationSettings invocationSetting... | MavenInvocationSpec invocationSpec = experimentSpec.getInvocation(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.