idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,352,626 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0".split(",");<NEW_LINE>String epl = "@name('s0') select nth(intPrimitive, 1, filter:theString like 'A%') as c0 from SupportBean";<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>sendEventAssert(env, "X1", 0, fields, new Object[] { null });<NEW_LINE>se... | (epl).addListener("s0"); |
435,855 | final DescribeJournalS3ExportResult executeDescribeJournalS3Export(DescribeJournalS3ExportRequest describeJournalS3ExportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJournalS3ExportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.SERVICE_ID, "QLDB"); |
421,374 | public static GuiButtonBoolean buildColorButton(GuiButtonBoolean[] buttons, int posX, int posY, boolean active, DyeColor color, Consumer<GuiButtonBoolean> onClick) {<NEW_LINE>return new GuiButtonBoolean(posX, posY, 12, 12, "", active, TEXTURE, 194, 0, 1, btn -> {<NEW_LINE>if (btn.getNextState())<NEW_LINE>onClick<MASK><... | .accept((GuiButtonBoolean) btn); |
1,532,863 | private void initializeFF4J(ServletConfig servletConfig) {<NEW_LINE>String className = servletConfig.getInitParameter(SERVLETPARAM_FF4JPROVIDER);<NEW_LINE>try {<NEW_LINE>Class<?> c = Class.forName(className);<NEW_LINE>Method <MASK><NEW_LINE>Object o = method.invoke(null);<NEW_LINE>ff4jProvider = (FF4jProvider) o;<NEW_L... | method = c.getMethod("getInstance"); |
52,576 | public SummaryField mergeWith(SummaryField merge) {<NEW_LINE>if (merge == null)<NEW_LINE>return this;<NEW_LINE>if (this.isImplicit())<NEW_LINE>return merge;<NEW_LINE>if (merge.isImplicit())<NEW_LINE>return this;<NEW_LINE>if (!merge.getName().equals(getName()))<NEW_LINE>throw new IllegalArgumentException(merge + " confl... | merge + " conflicts with " + this + ": different types"); |
711,181 | void processList(OrderedCompositeSpec spec, List<Object> inputList, WalkedPath walkedPath, Map<String, Object> output, Map<String, Object> context) {<NEW_LINE>Integer originalSize = walkedPath.lastElement()<MASK><NEW_LINE>for (int index = 0; index < inputList.size(); index++) {<NEW_LINE>Object subInput = inputList.get(... | .getOrigSize().get(); |
531,397 | public void delete(Iterable<AllValueTypesTestRow> rows) {<NEW_LINE>List<byte[]> rowBytes = Persistables.persistAll(rows);<NEW_LINE>Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size() * 11);<NEW_LINE>cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("c0")));<NEW_LINE>cells.addAll(C... | PtBytes.toCachedBytes("c8"))); |
160,052 | public ColumnVector upperBound(Table valueTable, OrderByArg... args) {<NEW_LINE>boolean[] areNullsSmallest = new boolean[args.length];<NEW_LINE>boolean[] descFlags <MASK><NEW_LINE>ColumnVector[] inputColumns = new ColumnVector[args.length];<NEW_LINE>ColumnVector[] searchColumns = new ColumnVector[args.length];<NEW_LINE... | = new boolean[args.length]; |
387,070 | public ConstraintProperties addToHorizontalChain(int leftId, int rightId) {<NEW_LINE>connect(LEFT, leftId, (leftId == PARENT_ID) ? LEFT : RIGHT, 0);<NEW_LINE>connect(RIGHT, rightId, (rightId == PARENT_ID) ? RIGHT : LEFT, 0);<NEW_LINE>if (leftId != PARENT_ID) {<NEW_LINE>View leftView = ((ViewGroup) (mView.getParent())).... | getId(), RIGHT, 0); |
524,636 | static Color[] topo(int n, float alpha) {<NEW_LINE>int j = n / 3;<NEW_LINE>int k = n / 3;<NEW_LINE>int i = n - j - k;<NEW_LINE>Color[] palette = new Color[n];<NEW_LINE>float h = 43 / 60.0f;<NEW_LINE>float hw = (31 / 60.0f - h) / (i - 1);<NEW_LINE>int l = 0;<NEW_LINE>for (; l < i; l++) {<NEW_LINE>palette[l] = hsv(h, 1.0... | h) / (k - 1); |
1,151,754 | private void addOtherVariants(Consumer<ResolvedVariantResult> consumer) {<NEW_LINE>if (metadata.getVariantsForGraphTraversal().isPresent()) {<NEW_LINE>for (ConfigurationMetadata configurationMetadata : metadata.getVariantsForGraphTraversal().get()) {<NEW_LINE>for (VariantResolveMetadata variant : configurationMetadata.... | capabilities = ImmutableList.copyOf(capabilities); |
1,804,134 | protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, Params params) throws IOException {<NEW_LINE>builder.field("type", contentType());<NEW_LINE>if (includeDefaults || fieldType().boost() != 1.0f) {<NEW_LINE>builder.field("boost", fieldType().boost());<NEW_LINE>}<NEW_LINE>if (includeDefaults ... | multiFields.toXContent(builder, params); |
484,927 | private ReturningRunnable<ListDevicesResult> _listDevices(final Integer limit, final String paginationToken) {<NEW_LINE>return new ReturningRunnable<ListDevicesResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ListDevicesResult run() throws Exception {<NEW_LINE>final ListDevicesRequest listDevicesRequest = new L... | listDevicesResult = userpoolLL.listDevices(listDevicesRequest); |
1,633,151 | public static GetIoTCloudConnectorGatewayResponse unmarshall(GetIoTCloudConnectorGatewayResponse getIoTCloudConnectorGatewayResponse, UnmarshallerContext _ctx) {<NEW_LINE>getIoTCloudConnectorGatewayResponse.setRequestId(_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.RequestId"));<NEW_LINE>getIoTCloudConnectorGat... | (_ctx.stringValue("GetIoTCloudConnectorGatewayResponse.Description")); |
1,661,806 | public void paint(Graphics g) {<NEW_LINE>List target = (List) _target;<NEW_LINE>Dimension sz = target.getSize();<NEW_LINE>int w = sz.width;<NEW_LINE>int h = sz.height;<NEW_LINE>g.setColor(target.getBackground());<NEW_LINE>FakePeerUtils.drawLoweredBox(g, 0, 0, w, h);<NEW_LINE>int n = target.getItemCount();<NEW_LINE>if (... | setColor(target.getForeground()); |
1,195,684 | private <T extends FragmentViewModel> FragmentViewModel create(@NonNull final Context context, @NonNull final Class<T> viewModelClass, @Nullable final Bundle savedInstanceState, @NonNull final String id) {<NEW_LINE>final KSApplication application = (KSApplication) context.getApplicationContext();<NEW_LINE>final Environ... | .component().environment(); |
1,535,772 | private static ValidationResult validate(String formatString, Object[] arguments) {<NEW_LINE>try {<NEW_LINE>String unused = String.format(formatString, arguments);<NEW_LINE>} catch (DuplicateFormatFlagsException e) {<NEW_LINE>return ValidationResult.create(e, String.format("duplicate format flags: %s", e.getFlags()));<... | e, e.getMessage()); |
1,423,263 | private Object retryMethod(RetriableMethod retryableMethod) throws StorageException {<NEW_LINE>tryCount = 0;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>if (tryCount > 0) {<NEW_LINE>logger.log(Level.WARNING, "Retrying method: " + <MASK><NEW_LINE>}<NEW_LINE>Object result = retryableMethod.execute();<NEW_LINE>tryCoun... | tryCount + "/" + retryMaxCount + " ..."); |
1,285,138 | public static DescribeFabricChaincodeDefinitionTaskResponse unmarshall(DescribeFabricChaincodeDefinitionTaskResponse describeFabricChaincodeDefinitionTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricChaincodeDefinitionTaskResponse.setRequestId(_ctx.stringValue("DescribeFabricChaincodeDefinitionTaskRespo... | (_ctx.stringValue("DescribeFabricChaincodeDefinitionTaskResponse.Result.Content.ChaincodeDefinition.Name")); |
439,212 | public static void displayAsBubble(@NonNull Context context, @NonNull RecipientId recipientId, long threadId) {<NEW_LINE>if (Build.VERSION.SDK_INT >= CONVERSATION_SUPPORT_VERSION) {<NEW_LINE>SignalExecutors.BOUNDED.execute(() -> {<NEW_LINE>if (canBubble(context, recipientId, threadId)) {<NEW_LINE>NotificationManager <M... | notificationManager = ServiceUtil.getNotificationManager(context); |
231,140 | public static DescribeDevicesResponse unmarshall(DescribeDevicesResponse describeDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDevicesResponse.setRequestId(_ctx.stringValue("DescribeDevicesResponse.RequestId"));<NEW_LINE>describeDevicesResponse.setErrorCode(_ctx.stringValue("DescribeDevicesResponse.Erro... | ("DescribeDevicesResponse.Devices[" + i + "].IpcName")); |
214,660 | public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {<NEW_LINE>final Map<Vault, Map<Path, TransferStatus>> vaults = new HashMap<>();<NEW_LINE>for (Map.Entry<Path, TransferStatus> file : files.entrySet()) {<NEW_LINE>final Vault vaul... | vaults.put(vault, sorted); |
1,170,458 | public static Connection initConnection(PropertyExpansionContext context, String driver, String connectionString, String password) throws SQLException, SoapUIException {<NEW_LINE>if (JdbcUtils.missingConnSettings(driver, connectionString)) {<NEW_LINE>throw new SoapUIException("Some connections settings are missing");<N... | context, driver).trim(); |
1,563,804 | protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException {<NEW_LINE>ClassLoader cl = null;<NEW_LINE>try {<NEW_LINE>cl = getClassLoaderIncludingProjectClasspath();<NEW_LINE>Thread.currentThread().setContextClassLoader(cl);<NEW_LINE>} catch (MojoExecutionException e) {<NEW_LINE>throw new Liquiba... | "Generating Change Log from database " + database.toString()); |
964,722 | public static ListAliyunRegionResponse unmarshall(ListAliyunRegionResponse listAliyunRegionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAliyunRegionResponse.setRequestId(_ctx.stringValue("ListAliyunRegionResponse.RequestId"));<NEW_LINE>listAliyunRegionResponse.setCode<MASK><NEW_LINE>listAliyunRegionResponse.setMe... | (_ctx.integerValue("ListAliyunRegionResponse.Code")); |
1,731,782 | public void printAllCriticalPaths(String[] precedenceConstraints) {<NEW_LINE>int jobs = precedenceConstraints.length;<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph = new EdgeWeightedDigraph(2 * jobs + 2);<NEW_LINE>int source = 2 * jobs;<NEW_LINE>int target = 2 * jobs + 1;<NEW_LINE>for (int job = 0; job < jobs; job++... | .parseInt(jobInformation[successors]); |
1,033,023 | public JavaInfo toJavaBinaryInfo(JavaInfo javaInfo, StarlarkThread thread) throws EvalException {<NEW_LINE>checkPrivateAccess(thread);<NEW_LINE>JavaRuleOutputJarsProvider ruleOutputs = JavaRuleOutputJarsProvider.builder().addJavaOutput(javaInfo.getJavaOutputs().stream().map(output -> JavaOutput.create(output.getClassJa... | = JavaInfo.Builder.create(); |
1,027,569 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Activity activity = requireActivity();<NEW_LINE>ContextThemeWrapper theme = ThemeChanger.getDialogThemeWrapper(activity);<NEW_LINE>CustomAlertDialogBuilder alert = new CustomAlertDialogBuilder(theme);<NEW_LINE>LayoutInflater layoutInflater = LayoutInfla... | findViewById(R.id.button_goto_openkeychain); |
1,692,428 | private void showPopup(@NonNull View view, @NonNull final LayoutElementParcelable rowItem) {<NEW_LINE>Context currentContext = this.context;<NEW_LINE>if (mainFrag.getMainActivity().getAppTheme().getSimpleTheme(mainFrag.requireContext()) == AppTheme.BLACK) {<NEW_LINE>currentContext = new ContextThemeWrapper(context, R.s... | inflate(R.menu.item_extras); |
702,422 | public MergeResult merge(String branch, Sequence<?> commits, Object msg) throws RepoException, ValidationException, EvalException, IOException {<NEW_LINE>ValidationException.checkCondition(!commits.isEmpty(), "At least one commit should be passed to merge");<NEW_LINE>GitRepository withWorktree = this.repo.withWorkTree<... | (dirFactory.newTempDir("mirror")); |
1,400,626 | public void init() {<NEW_LINE>if (initialized)<NEW_LINE>return;<NEW_LINE>initialized = true;<NEW_LINE>if (oname == null) {<NEW_LINE>try {<NEW_LINE>StandardContext ctx = (StandardContext) this.getContainer();<NEW_LINE>domain = ctx.getEngineName();<NEW_LINE>distributable = ctx.getDistributable();<NEW_LINE>StandardHost hs... | (StandardHost) ctx.getParent(); |
962,895 | private void createPrintPackage(final I_C_Print_Job_Instructions printjobInstructions) {<NEW_LINE>final IPrintPackageBL printPackageBL = Services.get(IPrintPackageBL.class);<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(printjobInstructions);<NEW_LINE>final I_C_Print_Package printPackage = InterfaceWrap... | save(printPackage, ITrx.TRXNAME_ThreadInherited); |
1,448,738 | public void updateFilters() {<NEW_LINE>updateList(R.id.domainlist, SettingValues.domainFilters, SettingValues.domainFilters::remove);<NEW_LINE>updateList(R.id.subredditlist, SettingValues.subredditFilters, SettingValues.subredditFilters::remove);<NEW_LINE>updateList(R.id.userlist, SettingValues.userFilters, SettingValu... | .flairlist)).removeAllViews(); |
1,618,307 | final UpdateScheduledAuditResult executeUpdateScheduledAudit(UpdateScheduledAuditRequest updateScheduledAuditRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateScheduledAuditRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | false), new UpdateScheduledAuditResultJsonUnmarshaller()); |
110,460 | final UpdateMultiplexProgramResult executeUpdateMultiplexProgram(UpdateMultiplexProgramRequest updateMultiplexProgramRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMultiplexProgramRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
637,718 | private List<MutationResultListener> createConfig(long t0, CoverageDatabase coverageData, HistoryStore history, MutationStatisticsListener stats, MutationEngine engine) {<NEW_LINE>final List<MutationResultListener> ls = new ArrayList<>();<NEW_LINE>ls.add(stats);<NEW_LINE>final ListenerArguments args = new ListenerArgum... | data.getFreeFormProperties(), args); |
1,757,481 | public void read(org.apache.thrift.protocol.TProtocol prot, revokeTablePermission_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incomin... | .principal = iprot.readString(); |
1,043,268 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.manage_workouts);<NEW_LINE>PHONE_STRING = getResources().getString(R.string.my_phone);<NEW_LINE>mDB = DBHelper.getReadableDatabase(this);<NEW_LINE>syncManager = new SyncManager(this);<NEW_LINE... | findViewById(R.id.expandable_list_view); |
1,410,994 | // --------------------------------------------- ServletInputStream Methods<NEW_LINE>@Override<NEW_LINE>public int read() throws IOException {<NEW_LINE>// Disallow operation if the object has gone out of scope<NEW_LINE>if (ib == null) {<NEW_LINE>throw new IllegalStateException(rb.getString(LogFacade.OBJECT_INVALID_SCOP... | Integer integer = ib.readByte(); |
1,277,966 | private int parseInclude(Context context, int resourceId) {<NEW_LINE>Resources res = context.getResources();<NEW_LINE>XmlPullParser includeParser = res.getXml(resourceId);<NEW_LINE>try {<NEW_LINE>for (int eventType = includeParser.getEventType(); eventType != XmlResourceParser.END_DOCUMENT; eventType = includeParser.ne... | " " + e.getMessage()); |
735,663 | static Component onCreateLayout(ComponentContext c, @State String selection, @State boolean isShowingDropDown, @Prop(resType = ResType.DIMEN_TEXT, optional = true) float selectedTextSize, @Prop(resType = ResType.COLOR, optional = true) int selectedTextColor, @Prop(resType = ResType.DRAWABLE, optional = true) @Nullable ... | getAndroidContext(), DEFAULT_CARET_COLOR) : caret; |
733,337 | public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {<NEW_LINE>final ListCalc listCalc = compiler.compileList<MASK><NEW_LINE>final DoubleCalc doubleCalc = call.getArgCount() > 1 ? compiler.compileDouble(call.getArg(1)) : new ValueCalc(call);<NEW_LINE>return new AbstractDoubleCalc(call, new Calc[] { list... | (call.getArg(0)); |
1,780,535 | public static BarPlot of(int[] data, int k, boolean prob, Color color) {<NEW_LINE>double[][] hist = smile.math.Histogram.of(data, k);<NEW_LINE>// The number of bins may be extended to cover all data.<NEW_LINE>k = hist[0].length;<NEW_LINE>double[][] freq = new double[k][2];<NEW_LINE>for (int i = 0; i < k; i++) {<NEW_LIN... | [i][1] /= n; |
1,346,791 | private void updateContext(Map<String, Object> value) {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object values = value.get("values");<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>if (values instanceof ContextEntity) {<NEW_LINE>map = ((ContextEntity) values).getContextMap();<NEW_LINE>} else if ... | map = new HashMap<>(); |
1,414,933 | // Display header<NEW_LINE>private static void header(Comparable[] array) {<NEW_LINE>StdDraw.setPenColor(StdDraw.BLACK);<NEW_LINE>StdDraw.text(array.length <MASK><NEW_LINE>for (int i = 0; i < array.length; i++) {<NEW_LINE>StdDraw.text(i, -2, String.valueOf(i));<NEW_LINE>}<NEW_LINE>StdDraw.text(-2.50, -2, "i");<NEW_LINE... | / 2.0, -3, "array[ ]"); |
1,462,603 | private void initComponents() {<NEW_LINE>lblAddress1 = new Label(Msg.getElement(Env.getCtx(), "Address1"));<NEW_LINE>lblAddress1.setStyle(LABEL_STYLE);<NEW_LINE>lblAddress2 = new Label(Msg.getElement(Env.getCtx(), "Address2"));<NEW_LINE>lblAddress2.setStyle(LABEL_STYLE);<NEW_LINE>lblAddress3 = new Label(Msg.getElement(... | .getCtx(), "PostalAdd")); |
1,373,873 | public void onEndPage(PdfWriter writer, com.itextpdf.text.Document document) {<NEW_LINE>PdfContentByte cb = writer.getDirectContent();<NEW_LINE>cb.saveState();<NEW_LINE>Date date = new Date();<NEW_LINE>String textLeft = "Page " + writer.getPageNumber() + " of ";<NEW_LINE>String textRight = date + " " + "Page... | helv.getWidthPoint(textRight, 8); |
1,058,348 | public TcpServer<R, W> start(final ConnectionHandler<R, W> connectionHandler) {<NEW_LINE>if (!serverStateRef.compareAndSet(ServerStatus.Created, ServerStatus.Starting)) {<NEW_LINE>throw new IllegalStateException("Server already started");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Action1<ChannelPipeline> handlerFactory = new ... | serverStateRef.set(ServerStatus.Started); |
1,058,878 | protected String formatPartlyValidTooltip(java.util.List<DeckValidatorError> sortedErrorsList) {<NEW_LINE>return sortedErrorsList.stream().reduce("<html><body>" + "<p>Deck is <span style='color:#b8860b;font-weight:bold;'>PARTLY VALID</span></p>" + "<u>The following problems have been found (click to select problem card... | String::concat) + "</table>" + "</body></html>"; |
74,179 | protected final OperatorFactory createTableScanOperator(int operatorId, PlanNodeId planNodeId, String tableName, String... columnNames) {<NEW_LINE>checkArgument(session.getCatalog().isPresent(), "catalog not set");<NEW_LINE>checkArgument(session.getSchema().isPresent(), "schema not set");<NEW_LINE>// look up the table<... | addOperatorContext(operatorId, planNodeId, "BenchmarkSource"); |
412,493 | private List<PrivateTransactionWithMetadata> retrievePrivateTransactions(final Bytes32 privacyGroupId, final List<PrivateTransactionMetadata> privateTransactionMetadataList, final String privacyUserId) {<NEW_LINE>final ArrayList<PrivateTransactionWithMetadata> privateTransactions = new ArrayList<>();<NEW_LINE>privateSt... | key.toBase64String()))); |
131,781 | public void delete(final Role role) throws DotDataException, DotStateException {<NEW_LINE>final Role roleFromDB = loadRoleById(role.getId());<NEW_LINE>for (final String uid : roleFactory.findUserIdsForRole(role, true)) {<NEW_LINE>CacheLocator.getRoleCache().remove(uid);<NEW_LINE>}<NEW_LINE>if (roleFromDB.isLocked()) {<... | "Error deleting Role: %s", e.getMessage()); |
95,911 | // Subroutine to register dependents<NEW_LINE>private void registerDependents(JMFType type) throws JMFSchemaIdException {<NEW_LINE>if (type instanceof JMFDynamicType) {<NEW_LINE>JMFSchema schema = ((JMFDynamicType) type).getExpectedSchema();<NEW_LINE>if (schema != null)<NEW_LINE>registerAll(schema);<NEW_LINE>} else if ... | ) type).getItemType()); |
1,181,705 | public static DescribeCasterLayoutsResponse unmarshall(DescribeCasterLayoutsResponse describeCasterLayoutsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCasterLayoutsResponse.setRequestId(_ctx.stringValue("DescribeCasterLayoutsResponse.RequestId"));<NEW_LINE>describeCasterLayoutsResponse.setTotal(_ctx.integerVa... | = new ArrayList<VideoLayer>(); |
1,582,229 | private void saveWorkflowTaskInternal(final WorkflowTask task, final WorkflowProcessor processor, final boolean doIndex) throws DotDataException {<NEW_LINE>if (doIndex) {<NEW_LINE>this.saveWorkflowTask(task);<NEW_LINE>} else {<NEW_LINE>this.saveWorkflowTaskWithoutIndexing(task);<NEW_LINE>}<NEW_LINE>final WorkflowHistor... | .setCreationDate(new Date()); |
95,085 | final DeleteVirtualMFADeviceResult executeDeleteVirtualMFADevice(DeleteVirtualMFADeviceRequest deleteVirtualMFADeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVirtualMFADeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
1,243,022 | public static CompIntFloatVector mergeSparseFloatCompVector(IndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>Map<PartitionKey, PartitionGetResult> partKeyToResultMap = mapPartKeyToResult(partResults);<NEW_LINE>List<PartitionKey> partKeys = getSortedPartKeys(param.matrixId, param.getRowId());<NEW_LI... | int size = partKeys.size(); |
517,824 | public UserWithPasswordAndQRCode insertUser(@RequestBody UserModification userModification, @RequestParam("baseUrl") String baseUrl, Principal principal) {<NEW_LINE>Role requested = Role.valueOf(userModification.getRole());<NEW_LINE>Validate.isTrue(userManager.getAvailableRoles(principal.getName()).stream().anyMatch(re... | return new UserWithPasswordAndQRCode(userWithPassword, qrCode); |
685,195 | public UpdateDomainConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateDomainConfigurationResult updateDomainConfigurationResult = new UpdateDomainConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g... | class).unmarshall(context)); |
1,723,566 | private void loadNode977() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_DeleteSubscriptionsCount, new QualifiedName(0, "DeleteSubscriptionsCount"), new LocalizedText("en", "DeleteSubscriptionsCount"), LocalizedText.NULL... | this.nodeManager.addNode(node); |
45,994 | public boolean tryOnNext(T t) {<NEW_LINE>if (done) {<NEW_LINE><MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>K k;<NEW_LINE>try {<NEW_LINE>k = Objects.requireNonNull(keyExtractor.apply(t), "The distinct extractor returned a null value.");<NEW_LINE>} catch (Throwable e) {<NEW_LINE>onError(Operators.onOperatorError(s, e... | Operators.onNextDropped(t, ctx); |
163,109 | private MInOut createReceipt(MOrderLine orderLine, MWMInOutBound outbound) {<NEW_LINE>MOrder order = orderLine.getParent();<NEW_LINE>MDocType orderDocumentType = MDocType.get(getCtx(), order.getC_DocTypeTarget_ID());<NEW_LINE>int docTypeId = 0;<NEW_LINE>if (orderDocumentType.getC_DocTypeShipment_ID() > 0) {<NEW_LINE>do... | setM_FreightCategory_ID(outbound.getM_FreightCategory_ID()); |
940,822 | public void onMessage(Message inMessage) {<NEW_LINE>// disposable exchange, swapped with real Exchange on correlation<NEW_LINE>inMessage.setExchange(new ExchangeImpl());<NEW_LINE>inMessage.getExchange().put(Bus.class, bus);<NEW_LINE>inMessage.put(DECOUPLED_CHANNEL_MESSAGE, Boolean.TRUE);<NEW_LINE>// REVISIT: how to get... | inMessage.remove(AbstractHTTPDestination.HTTP_REQUEST); |
241,912 | public void handleDatastream(List<DatastreamGroup> datastreamGroups) {<NEW_LINE>if (!_enablePartitionAssignment) {<NEW_LINE>// We do not need to handle the datastreamGroup if there is no callback registered<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (_partitionChangeCallback == null) {<NEW_LINE>throw new DatastreamRuntime... | _partitionDiscoveryThreadMap.keySet(), datastreamGroups); |
1,247,345 | protected Long handleInternally(DataObject content) {<NEW_LINE>long guildId = content.getLong("guild_id");<NEW_LINE>if (api.getGuildSetupController().isLocked(guildId))<NEW_LINE>return guildId;<NEW_LINE>final long threadId = content.getLong("id");<NEW_LINE>ThreadChannelImpl thread = (ThreadChannelImpl) getJDA().getThre... | userId = content.getLong("user_id"); |
1,405,178 | public <A> int choose(A options, ArrayAdapter<? extends SpatialComparable, A> getter, SpatialComparable obj, int height, int depth) {<NEW_LINE>final int size = getter.size(options);<NEW_LINE>assert (size > 0) : "Choose from empty set?";<NEW_LINE>// R*-Tree: overlap increase for leaves.<NEW_LINE>int best = -1;<NEW_LINE>... | SpatialUtil.volume(mbr) - area; |
1,346,639 | private Model mapModel(springfox.documentation.schema.Model source) {<NEW_LINE>ModelImpl model = new ModelImpl().description(source.getDescription()).discriminator(source.getDiscriminator()).example(source.getExample()).name(source.getName()).xml(mapXml(source.getXml()));<NEW_LINE>SortedMap<String, springfox.documentat... | ().getSimpleName())); |
350,323 | protected Excuse<Regressor> innerGetExcuse(Example<Regressor> e, double[][] allFeatureWeights) {<NEW_LINE>Prediction<Regressor> prediction = predict(e);<NEW_LINE>Map<String, List<Pair<String, Double>>> weightMap = new HashMap<>();<NEW_LINE>for (int i = 0; i < allFeatureWeights.length; i++) {<NEW_LINE>List<Pair<String, ... | mapping[i]], scores); |
384,438 | /*<NEW_LINE>* Initializes the FlowController for this aggregate.<NEW_LINE>*/<NEW_LINE>protected void initFlowController(FlowControllerDeclaration aFlowControllerDeclaration, UimaContextAdmin aParentContext, AnalysisEngineMetaData aAggregateMetadata) throws ResourceInitializationException {<NEW_LINE><MASK><NEW_LINE>if (... | String key = aFlowControllerDeclaration.getKey(); |
660,930 | public void copyToLocalFile(URI srcUri, File dstFile) throws Exception {<NEW_LINE>LOGGER.debug("starting to fetch segment from hdfs");<NEW_LINE>final String dstFilePath = dstFile.getAbsolutePath();<NEW_LINE>final Path remoteFile = new Path(srcUri);<NEW_LINE>final Path localFile = new Path(dstFile.toURI());<NEW_LINE>try... | srcUri.toString() + " is a direactory"); |
678,613 | private static String toHexString(BigInteger value) {<NEW_LINE>int signum = value.signum();<NEW_LINE>// obvious shortcut<NEW_LINE>if (signum == 0) {<NEW_LINE>return "0";<NEW_LINE>}<NEW_LINE>// we want to work in absolute numeric value (negative sign is added afterward)<NEW_LINE>byte[] input = value.abs().toByteArray();... | < 0 ? "-" + result : result; |
501,905 | private ImageVersionMetadataResponseDTO convertToVersionMetadataResponse(final ImageVersionMetadata versionMetadata) {<NEW_LINE>List<RampupMetadata> rampups = new ArrayList<>();<NEW_LINE>if (!CollectionUtils.isEmpty(versionMetadata.getImageRampups())) {<NEW_LINE>rampups = versionMetadata.getImageRampups().stream().map(... | ImageVersion imageVersion = versionMetadata.getImageVersion(); |
146,898 | public Table metacatToHiveTable(final TableDto dto) {<NEW_LINE><MASK><NEW_LINE>final QualifiedName name = dto.getName();<NEW_LINE>if (name != null) {<NEW_LINE>table.setTableName(name.getTableName());<NEW_LINE>table.setDbName(name.getDatabaseName());<NEW_LINE>}<NEW_LINE>final StorageDto storageDto = dto.getSerde();<NEW_... | final Table table = new Table(); |
231,679 | static List<Element> findSubElements(Element parent) throws IllegalArgumentException {<NEW_LINE>NodeList l = parent.getChildNodes();<NEW_LINE>List<Element> elements = new ArrayList<<MASK><NEW_LINE>for (int i = 0; i < l.getLength(); i++) {<NEW_LINE>Node n = l.item(i);<NEW_LINE>if (n.getNodeType() == Node.ELEMENT_NODE) {... | >(l.getLength()); |
259,857 | private void metricUnhealthyInstance(ClusterType clusterType, String dc, String activeDc, String cluster, String shard, HostPort hostPort, boolean isMaster) {<NEW_LINE>MetricData data = new MetricData(UNHEALTHY_INSTANCE_METRIC_TYPE, dc, cluster, shard);<NEW_LINE>data.setHostPort(hostPort);<NEW_LINE>data.setValue(1);<NE... | (dc) ? "1" : "0"); |
1,295,737 | private void cutCurrentCache() {<NEW_LINE>final File lock = Configuration.getInstance().getOsmdroidTileCache();<NEW_LINE>synchronized (lock) {<NEW_LINE>if (mUsedCacheSpace > Configuration.getInstance().getTileFileSystemCacheTrimBytes()) {<NEW_LINE>Log.d(IMapView.LOGTAG, "Trimming tile cache from " + mUsedCacheSpace + "... | "Cache trim deleting " + file.getAbsolutePath()); |
546,543 | public static void maybeAskDirectly(Context context) {<NEW_LINE>try {<NEW_LINE>if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M && !Prefs.getBooleanPreference(context, Prefs.DOZE_ASKED_DIRECTLY, false) && ContextCompat.checkSelfPermission(context, Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIM... | + context.getPackageName())); |
483,440 | public void init() {<NEW_LINE>ManagedContext managedContext = serializationService.getManagedContext();<NEW_LINE>if (managedContext != null) {<NEW_LINE>Processor toInit = processor instanceof ProcessorWrapper ? ((ProcessorWrapper) <MASK><NEW_LINE>Object initialized = null;<NEW_LINE>try {<NEW_LINE>initialized = managedC... | processor).getWrapped() : processor; |
671,472 | public static DeleteSipAgentGroupResponse unmarshall(DeleteSipAgentGroupResponse deleteSipAgentGroupResponse, UnmarshallerContext context) {<NEW_LINE>deleteSipAgentGroupResponse.setRequestId(context.stringValue("DeleteSipAgentGroupResponse.RequestId"));<NEW_LINE>deleteSipAgentGroupResponse.setSuccess(context.booleanVal... | (context.stringValue("DeleteSipAgentGroupResponse.Provider")); |
273,657 | // The tested exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC<NEW_LINE>public void launchConcurrentTCK() throws Exception {<NEW_LINE>String suiteXmlFile;<NEW_LINE>if (TestModeFilter.FRAMEWORK_TEST_MODE == Mode.TestMode.FULL) {<NEW_LINE>Log.info(getClass(), "launchConcurrentTCK", "Running full ... | additionalProps, Collections.emptySet()); |
482,396 | // debugging<NEW_LINE>private void printObjs(List<Long> changedIds, List<Long> oldDomIds, List<Long> newDomIds, List<Boolean> addedByDirtySet, List<Long> changedIdx) {<NEW_LINE>if (changedIds.size() > 20)<NEW_LINE>return;<NEW_LINE>TreeMap<Integer, String> m = new TreeMap();<NEW_LINE>for (int i = 0; i < changedIds.size(... | newDom = newDomIds.get(i); |
1,386,476 | public boolean initVRCompositor(boolean allowed) {<NEW_LINE>// clear the error store<NEW_LINE>hmdErrorStore.put(0, VR.EVRInitError_VRInitError_None);<NEW_LINE>if (allowed) {<NEW_LINE>long result = VR.VR_GetGenericInterface(VR.IVRCompositor_Version, hmdErrorStore);<NEW_LINE>if (result > 0) {<NEW_LINE>if (hmdErrorStore.g... | .get(0) + ")"); |
1,416,694 | protected Void doInBackground(String... urls) {<NEW_LINE>String url = urls[0];<NEW_LINE>if (url.endsWith("/")) {<NEW_LINE>url = url.substring(0, url.length() - 1);<NEW_LINE>}<NEW_LINE>String hash = url.substring(url.lastIndexOf("/"));<NEW_LINE>try {<NEW_LINE>URL newUrl = new URL("https://www.reddit.com/video" + hash);<... | ), contextActivity.get()); |
1,600,699 | public void adminForgetDevice(AdminForgetDeviceRequest adminForgetDeviceRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminForgetDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<N... | invoke(request, responseHandler, executionContext); |
376,924 | public void visitPhpTernaryExpression(@NotNull TernaryExpression expression) {<NEW_LINE>final PsiElement rawCondition = expression.getCondition();<NEW_LINE>if (rawCondition != null) {<NEW_LINE>final PsiElement condition = ExpressionSemanticUtil.getExpressionTroughParenthesis(rawCondition);<NEW_LINE>if (condition instan... | ) && PhpLanguageUtil.isBoolean(falseVariant); |
1,243,334 | public void visitListener(WebAppContext context, Descriptor descriptor, XmlParser.Node node) {<NEW_LINE>String className = node.<MASK><NEW_LINE>try {<NEW_LINE>if (className != null && className.length() > 0) {<NEW_LINE>// Servlet Spec 3.0 p 74<NEW_LINE>// Duplicate listener declarations don't result in duplicate listen... | getString("listener-class", false, true); |
547,420 | public static ListBarcodesResponse unmarshall(ListBarcodesResponse listBarcodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBarcodesResponse.setRequestId(_ctx.stringValue("ListBarcodesResponse.RequestId"));<NEW_LINE>listBarcodesResponse.setPageSize(_ctx.integerValue("ListBarcodesResponse.PageSize"));<NEW_LINE>lis... | ("ListBarcodesResponse.Barcodes[" + i + "].RetailPrice")); |
534,961 | public void marshall(OpenZFSFileSystemConfiguration openZFSFileSystemConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (openZFSFileSystemConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar... | openZFSFileSystemConfiguration.getCopyTagsToBackups(), COPYTAGSTOBACKUPS_BINDING); |
249,848 | private Array createArrayOf(Object implObject, Method createArrayOf, Object[] args) throws SQLException {<NEW_LINE>final <MASK><NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "createArrayOf", args[0]);<NEW_LINE>Array ra;<NEW_LINE>try {<NEW_LINE>activate();<NEW_LINE>ra = (Array) createArrayOf... | boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); |
436,500 | public boolean add(T value) {<NEW_LINE>if (value == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (root == null) {<NEW_LINE>root = new <MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>KdNode node = root;<NEW_LINE>while (true) {<NEW_LINE>if (KdNode.compareTo(node.getDepth(), value, node.getPoint()) <= 0) {<NEW_L... | KdNode(value, 0, null); |
1,613,924 | final StartConfigRulesEvaluationResult executeStartConfigRulesEvaluation(StartConfigRulesEvaluationRequest startConfigRulesEvaluationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startConfigRulesEvaluationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
206,961 | public void fire(ActionEvent event, ImageData<BufferedImage> imageData, DensityMapBuilder builder, String densityMapName) {<NEW_LINE>if (imageData == null || builder == null) {<NEW_LINE>Dialogs.showErrorMessage(title, "No density map found!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var densityServer = builder.buildServer... | minDensity, aboveThreshold, deleteExisting, peaksOnly); |
1,563,664 | private void loadQueues() {<NEW_LINE>File file = new File(Config.getInstance().getDataFolder(), "queues.txt");<NEW_LINE>DownloadQueue defaultQ = new DownloadQueue("", StringResource.get("DEF_QUEUE"));<NEW_LINE>queueList.add(defaultQ);<NEW_LINE>if (!file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SimpleDateFormat ... | String str = reader.readLine(); |
25,995 | public DescribeReplaceRootVolumeTasksResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReplaceRootVolumeTasksResult describeReplaceRootVolumeTasksResult = new DescribeReplaceRootVolumeTasksResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = o... | ().unmarshall(context)); |
1,789,655 | private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>GridPane createInfoPopover() {<NEW_LINE>GridPane infoGridPane = new GridPane();<NEW_LINE>infoGridPane.setHgap(5);<NEW_LINE>infoGridPane.setVgap(5);<NEW_LINE>infoGridPane.setPadding(new Insets(10, 10, 10, 10));<... | getChildren().add(separator); |
107,004 | private List<ContentProviderDescriptor> findMatchingProviders(URI uri) {<NEW_LINE>List<String> preferredProviderIds = preferenceManager.getPreferences().getPreferredContentProviderIds();<NEW_LINE>Set<ContentProviderDescriptor> descriptors = getDescriptors(preferredProviderIds);<NEW_LINE>if (descriptors.isEmpty()) {<NEW... | ? uri.toString() : null; |
1,124,431 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>// In the case that the enchantment is blinked<NEW_LINE>Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEF... | = (Integer) getValue("damage"); |
1,771,287 | protected WindowedValue<T> decodeMessage(Windmill.Message message) throws IOException {<NEW_LINE>Instant timestampMillis = WindmillTimeUtils.windmillToHarnessTimestamp(message.getTimestamp());<NEW_LINE>InputStream data = message.getData().newInput();<NEW_LINE>InputStream metadata = message.getMetadata().newInput();<NEW... | windowsCoder, message.getMetadata()); |
1,736,630 | public static void migrate() {<NEW_LINE>String configVersionRaw = DiscordSRV.config().getString("ConfigVersion");<NEW_LINE>if (configVersionRaw.contains("/"))<NEW_LINE>configVersionRaw = configVersionRaw.substring(0, configVersionRaw.indexOf("/"));<NEW_LINE>String pluginVersionRaw = DiscordSRV.getPlugin()<MASK><NEW_LIN... | .getDescription().getVersion(); |
1,318,259 | public static SaiExportedAppMeta2 createForPackage(Context context, String pkg, long exportTimestamp) throws PackageManager.NameNotFoundException {<NEW_LINE>PackageManager pm = context.getPackageManager();<NEW_LINE>PackageInfo packageInfo = context.getPackageManager().getPackageInfo(pkg, 0);<NEW_LINE>SaiExportedAppMeta... | .mVersionCode = packageInfo.getLongVersionCode(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.