idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,363,720 | private NodeMap createNodeMap(Optional<CatalogName> catalogName) {<NEW_LINE>Set<InternalNode> nodes = catalogName.map(nodeManager::getActiveConnectorNodes).orElseGet(() -> nodeManager.getNodes(ACTIVE));<NEW_LINE>Set<String> coordinatorNodeIds = nodeManager.getCoordinators().stream().map(InternalNode::getNodeIdentifier)... | ImmutableSetMultimap.of(), coordinatorNodeIds); |
313,932 | public StatusInfo build() {<NEW_LINE>if (result.instanceInfo == null) {<NEW_LINE>throw new IllegalStateException("instanceInfo can not be null");<NEW_LINE>}<NEW_LINE>result.generalStats.put("server-uptime", getUpTime());<NEW_LINE>if (ARCHAIUS_EXISTS) {<NEW_LINE>result.generalStats.put("environment", ConfigurationManage... | getDeploymentContext().getDeploymentEnvironment()); |
57,516 | public </* https://bugs.openjdk.java.net/browse/JDK-8155591 */<NEW_LINE>R> Try<R> of(CheckedFunction7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f) {<NEW_LINE>return Try.of(() -> {<NEW_LINE>try (T1 t1 = t1Supplier.apply();<NEW_LINE>T2 t2 = t2Supplier.apply();<NEW_LI... | t4, t5, t6, t7); |
630,974 | private Object executeCollator() throws ExecutionException, Exception {<NEW_LINE>if (collator == null) {<NEW_LINE>if (timeout > 0) {<NEW_LINE>redisson.<MASK><NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Callable<Object> collatorTask = new CollatorTask<KOut, VOut, Object>(redisson, collator, resultMapName, objec... | getMap(resultMapName).clearExpire(); |
1,010,267 | public Request<CreateCustomAvailabilityZoneRequest> marshall(CreateCustomAvailabilityZoneRequest createCustomAvailabilityZoneRequest) {<NEW_LINE>if (createCustomAvailabilityZoneRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateCustomA... | (createCustomAvailabilityZoneRequest.getExistingVpnId())); |
762,419 | public void marshall(WriteCampaignRequest writeCampaignRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (writeCampaignRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(writeCampaignRequest.get... | writeCampaignRequest.getTemplateConfiguration(), TEMPLATECONFIGURATION_BINDING); |
188,137 | static String cellValue(Node theRowXml, int theCellIndex) {<NEW_LINE>NodeList cells = ((Element) theRowXml).getElementsByTagName("Cell");<NEW_LINE>for (int i = 0, currentCell = 0; i < cells.getLength(); i++) {<NEW_LINE>Element nextCell = (Element) cells.item(i);<NEW_LINE>String indexVal = nextCell.getAttributeNS("urn:s... | dataElems = nextCell.getElementsByTagName("Data"); |
640,720 | private static Map<Class<?>, long[]> makeMIN_MAX() {<NEW_LINE>final Map<Class<?>, long[]> minMaxPairs = new HashMap<Class<?>, long[]>();<NEW_LINE>long[] minMaxPair = new long[] { Byte.MIN_VALUE, Byte.MAX_VALUE };<NEW_LINE>minMaxPairs.put(byte.class, minMaxPair);<NEW_LINE>minMaxPairs.put(Byte.class, minMaxPair);<NEW_LIN... | put(int.class, minMaxPair); |
598,920 | protected void doExecute(Task task, GetBucketsAction.Request request, ActionListener<GetBucketsAction.Response> listener) {<NEW_LINE>jobManager.jobExists(request.getJobId(), ActionListener.wrap(ok -> {<NEW_LINE>BucketsQueryBuilder query = new BucketsQueryBuilder().expand(request.isExpand()).includeInterim(request.isExc... | end(request.getEnd()); |
673,452 | protected void initializeTable() {<NEW_LINE>methodColumn.setCellValueFactory(data -> new ReadOnlyStringWrapper(data.getValue() == null ? null : data.getValue().getValue().getKey()));<NEW_LINE>methodColumn.setCellFactory(col -> new MethodNameTreeTableCell<>(appCtx()));<NEW_LINE>// The column configuration methods should... | (), getText(COLUMN_SELF_TIME_PCT)); |
1,097,833 | public int andCardinality(ArrayContainer x) {<NEW_LINE>if (this.nbrruns == 0) {<NEW_LINE>return x.cardinality;<NEW_LINE>}<NEW_LINE>int rlepos = 0;<NEW_LINE>int arraypos = 0;<NEW_LINE>int andCardinality = 0;<NEW_LINE>int rleval = <MASK><NEW_LINE>int rlelength = (this.getLength(rlepos));<NEW_LINE>while (arraypos < x.card... | (this.getValue(rlepos)); |
1,276,363 | public void stopNode(NodeSpec nodeSpec) throws Exception {<NEW_LINE>String clientKey = getNodeClientKey(nodeSpec);<NEW_LINE>NodeClient client = nodeClientCache.getOrDefault(clientKey, null);<NEW_LINE>if (null == client) {<NEW_LINE>client = new NodeClient(nodeSpec.getIp(<MASK><NEW_LINE>nodeClientCache.put(clientKey, cli... | ), nodeSpec.getClientPort()); |
375,543 | public ApiResponse<Void> syncDeleteSyncClientWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling syncDeleteSyncClient... | final String[] localVarAccepts = {}; |
341,679 | public Request<DescribeStreamSummaryRequest> marshall(DescribeStreamSummaryRequest describeStreamSummaryRequest) {<NEW_LINE>if (describeStreamSummaryRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeStreamSummaryRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeStrea... | <DescribeStreamSummaryRequest>(describeStreamSummaryRequest, "AmazonKinesis"); |
1,107,998 | // This method is used to update expiration times in disk entry header<NEW_LINE>public synchronized boolean updateExpirationInHeader(Object key, long expirationTime, long validatorExpirationTime) throws IOException, EOFException, FileManagerException, ClassNotFoundException, HashtableOnDiskException {<NEW_LINE>if (file... | (key, RETRIEVE_KEY, !CHECK_EXPIRED); |
1,823,830 | public static Value SortSeq(Value s, Value cmp) {<NEW_LINE>TupleValue seq = (TupleValue) s.toTuple();<NEW_LINE>if (seq == null) {<NEW_LINE>throw new EvalException(EC.TLC_MODULE_ARGUMENT_ERROR, new String[] { "first", "SortSeq", "natural number", Values.ppr(s.toString()) });<NEW_LINE>}<NEW_LINE>if (!(cmp instanceof Appl... | [j] = args[0]; |
1,496,104 | public void marshall(Backup backup, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (backup == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(backup.getBackupId(), BACKUPID_BINDING);<NEW_LINE>protocolMarshall... | backup.getProgressPercent(), PROGRESSPERCENT_BINDING); |
552,061 | public void init(String title) {<NEW_LINE>assert !htmldoc.getDocumentElement().hasChildNodes();<NEW_LINE>// head<NEW_LINE>Element head = htmldoc.createElement(HTMLUtil.HTML_HEAD_TAG);<NEW_LINE>head.appendChild<MASK><NEW_LINE>htmldoc.getDocumentElement().appendChild(head);<NEW_LINE>// meta with charset information<NEW_L... | (htmldoc.createComment(MODIFICATION_WARNING)); |
108,707 | public void run() {<NEW_LINE>try {<NEW_LINE>uploading = true;<NEW_LINE>removeAllLineHighlights();<NEW_LINE>if (serialMonitor != null) {<NEW_LINE>serialMonitor.suspend();<NEW_LINE>}<NEW_LINE>if (serialPlotter != null) {<NEW_LINE>serialPlotter.suspend();<NEW_LINE>}<NEW_LINE>boolean <MASK><NEW_LINE>if (success) {<NEW_LINE... | success = sketchController.exportApplet(usingProgrammer); |
178,968 | void maybeReady() {<NEW_LINE>assertIsDispatchThread();<NEW_LINE>if (isReleased())<NEW_LINE>return;<NEW_LINE>boolean ready = isReady(true);<NEW_LINE>if (!ready)<NEW_LINE>return;<NEW_LINE>myRevalidatedObjects.clear();<NEW_LINE>setCancelRequested(false);<NEW_LINE>myResettingToReadyNow.set(false);<NEW_LINE>myInitialized.se... | = getTree().getSelectionPaths(); |
940,527 | private static void parseAttributes(String attributesInfo, JsonObject configuration) {<NEW_LINE>if (attributesInfo == null || attributesInfo.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, String> properties = new HashMap<>();<NEW_LINE>for (String parameterPair : attributesInfo.split("&")) {<NEW_LINE>if (... | 0, indexOfDelimiter).toLowerCase(); |
1,814,959 | private void scheduleTasks() {<NEW_LINE>// Periodic save timer (Saves every 10 minutes by default)<NEW_LINE>long second = 20;<NEW_LINE>long minute = second * 60;<NEW_LINE>long saveIntervalTicks = Math.max(minute, generalConfig.getSaveInterval() * minute);<NEW_LINE>new SaveTimerTask().runTaskTimer(this, saveIntervalTick... | TICK_CONVERSION_FACTOR, 2 * Misc.TICK_CONVERSION_FACTOR); |
1,378,047 | public static void deleteGlobalFunctionComment(final AbstractSQLProvider provider, final INaviFunction function, final Integer commentId, final Integer userId) throws CouldntDeleteException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE01243: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull... | deleteCommentStatement.setInt(5, userId); |
789,964 | public void doLeave(ActivityExecution execution) {<NEW_LINE>LOG.leavingActivity(execution.<MASK><NEW_LINE>PvmTransition outgoingSeqFlow = null;<NEW_LINE>String defaultSequenceFlow = (String) execution.getActivity().getProperty("default");<NEW_LINE>Iterator<PvmTransition> transitionIterator = execution.getActivity().get... | getActivity().getId()); |
839,962 | // [9,6,-3,null,null,-6,2,null,null,2,null,-6,-6,-6]<NEW_LINE>private Result helper(TreeNode root) {<NEW_LINE>if (root == null) {<NEW_LINE>return new Result(0, Integer.MIN_VALUE);<NEW_LINE>}<NEW_LINE>if (root.left == null && root.right == null) {<NEW_LINE>return new Result(root.val, root.val);<NEW_LINE>}<NEW_LINE>Resul... | right = helper(root.right); |
700,056 | public void storeRecentLocations() {<NEW_LINE>Preferences prefs = PreferencesManager.getInstance().getApplicationPreferences(ProtegeOWL.ID);<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>DefaultListModel model = ((DefaultListModel) recentLocations.getModel());<NEW_LINE>// Add in current file<NEW_LINE>if (get... | URI uri = file.toURI(); |
322,155 | public void execute(NativeViewHierarchyManager nvhm) {<NEW_LINE>AirMapView view = (AirMapView) nvhm.resolveView(tag);<NEW_LINE>if (view == null) {<NEW_LINE>promise.reject("AirMapView not found");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (view.map == null) {<NEW_LINE>promise.reject("AirMapView.map is not valid");<NEW_LIN... | "subAdministrativeArea", address.getSubAdminArea()); |
1,414,024 | public void run() {<NEW_LINE>TokenSequence<CssTokenId> ts = LexerUtils.getJoinedTokenSequence(document, caretOffset, CssTokenId.language());<NEW_LINE>if (ts == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Token<CssTokenId> token = ts.token();<NEW_LINE>switch(token.id()) {<NEW_LINE>case STRING:<NEW_LINE>// check if ther... | ).length() - quotesDiff); |
1,634,328 | // Useful for monitoring and debugging<NEW_LINE>public boolean checkIntegrity() {<NEW_LINE>boolean integrity = true;<NEW_LINE>Double E = graphWeightSum;<NEW_LINE>Double e_in = communities.stream().mapToDouble(c -> c.internalWeightSum).sum();<NEW_LINE>Double e_out = E - e_in;<NEW_LINE>Double B = Double.valueOf(communiti... | double) v).sum(); |
619,698 | private <T> BsonDocument generateGauge(Gauge<T> gauge) {<NEW_LINE>try {<NEW_LINE>T value = gauge.getValue();<NEW_LINE>final BsonValue valueAsBson;<NEW_LINE>if (value instanceof Double) {<NEW_LINE>valueAsBson = new BsonDouble((Double) value);<NEW_LINE>} else if (value instanceof Float) {<NEW_LINE>valueAsBson = new BsonD... | ).append("value", valueAsBson); |
710,354 | public static RelNode convertLogicalSort(LogicalSort sort, RelNode input) {<NEW_LINE>final boolean hasOrdering = sort.withOrderBy();<NEW_LINE>final <MASK><NEW_LINE>if (hasOrdering && !hasLimit) {<NEW_LINE>RelDistribution relDistribution = sort.getTraitSet().getDistribution();<NEW_LINE>return convert(input, input.getTra... | boolean hasLimit = sort.withLimit(); |
1,486,864 | private boolean hasSchemaAnnotationHandler() {<NEW_LINE>int expectedHandlersNumber = ((DefaultConfiguration) _handlerJarPath)<MASK><NEW_LINE>// skip if no handlers configured<NEW_LINE>if (expectedHandlersNumber == 0) {<NEW_LINE>getLogger().info("no schema annotation handlers configured for schema annotation compatibili... | .getAllDependencies().size(); |
1,748,301 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Setting IpAddress To Log and taking header for original IP if forwarded from proxy<NEW_LINE>ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));<NEW_... | Getter.getFeedback(ApplicationRoot, moduleId); |
285,437 | protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 10), 0, 0);<NEW_LINE>JLabel patternLabel = new JLabel<MASK><NEW_L... | (IdeBundle.message("label.todo.pattern")); |
500,473 | public void rollFiles(final File file) {<NEW_LINE>File parent = file.getParentFile();<NEW_LINE>LogLog.debug("roll over folder -> " + parent.getAbsolutePath());<NEW_LINE>final Date removeDate = new Date(rc.getRemoveMillis(now, maxBackupIndex));<NEW_LINE>String[] removedFiles = parent.list(new FilenameFilter() {<NEW_LINE... | parsedDate = sdf.parse(patternSuffix); |
391,089 | private void deletePartition(int partitionIndex) {<NEW_LINE>final int offset = partitionIndex * PARTITIONS_SLOT_SIZE;<NEW_LINE>long partitionTimestamp = openPartitionInfo.getQuick(offset);<NEW_LINE>long partitionSize = openPartitionInfo.getQuick(offset + PARTITIONS_SLOT_OFFSET_SIZE);<NEW_LINE>int columnBase = getColumn... | $ts(partitionTimestamp).I$(); |
834,264 | private void measureRoundTrip(final Histogram histogram, final InetSocketAddress sendAddress, final ByteBuffer buffer, final DatagramChannel sendChannel, final Selector selector, final AtomicBoolean running) throws IOException {<NEW_LINE>for (sequenceNumber = 0; sequenceNumber < Common.NUM_MESSAGES; sequenceNumber++) {... | attachment()).getAsInt(); |
262,416 | private void toggleCollapsibleContent(final VH holder, final Item item, int lineCount) {<NEW_LINE>if (item.isContentExpanded() || lineCount <= mContentMaxLines) {<NEW_LINE>holder.mContentTextView.setMaxLines(Integer.MAX_VALUE);<NEW_LINE>holder.mReadMoreTextView.setVisibility(View.GONE);<NEW_LINE>return;<NEW_LINE>}<NEW_... | .string.read_more, lineCount)); |
529,101 | public void actionPerformedImpl(ActionEvent e, RTextArea textArea) {<NEW_LINE>try {<NEW_LINE>// find current color at caret<NEW_LINE>int caretPosition = textArea.getCaretPosition();<NEW_LINE>int start;<NEW_LINE>int len = 0;<NEW_LINE>String oldStr;<NEW_LINE>int[] <MASK><NEW_LINE>if (result != null) {<NEW_LINE>start = re... | result = findColorAt(textArea, caretPosition); |
1,507,505 | public void testThrowExceptionInTxBMTTimeout() {<NEW_LINE>final String method = "testThrowExceptionInTxBMTTimeout";<NEW_LINE>ivBMTBean.prepThrowExceptionInTxBMTTimeout();<NEW_LINE>try {<NEW_LINE>svLogger.info("Waiting on latch for timer to expire for " + TimeoutFailureLocal.MAX_TIMER_WAIT + "ms");<NEW_LINE>TimeoutFailu... | CLASSNAME, method, "Unexpected exception during sleep", ex); |
104,262 | private static String detectDeclaredEncoding(byte[] data, String baseEncoding, int size) throws IOException {<NEW_LINE>char delimiter = '"';<NEW_LINE>String s = new String(data, 0, size, baseEncoding);<NEW_LINE>int iend = s.indexOf("?>");<NEW_LINE>iend = iend == -1 ? s.length() : iend;<NEW_LINE>int iestart = s.indexOf(... | chars, ivalstart, i - ivalstart); |
1,501,413 | public void serialize(StringBody stringBody, JsonGenerator jgen, SerializerProvider provider) throws IOException {<NEW_LINE>boolean notFieldSetAndNotDefault = stringBody.getNot() != null && stringBody.getNot();<NEW_LINE>boolean optionalFieldSetAndNotDefault = stringBody.getOptional() != null && stringBody.getOptional()... | writeString(stringBody.getValue()); |
75,441 | public final void releaseFromWrite(final OCacheEntry cacheEntry, final OWriteCache writeCache, final boolean changed) {<NEW_LINE>final OCachePointer cachePointer = cacheEntry.getCachePointer();<NEW_LINE>assert cachePointer != null;<NEW_LINE>final PageKey pageKey = new PageKey(cacheEntry.getFileId(<MASK><NEW_LINE>if (ca... | ), cacheEntry.getPageIndex()); |
1,137,411 | public static FileStateValue createWithStatNoFollow(RootedPath rootedPath, FileStatusWithDigest statNoFollow, boolean digestWillBeInjected, XattrProvider xattrProvider, @Nullable TimestampGranularityMonitor tsgm) throws IOException {<NEW_LINE>Path path = rootedPath.asPath();<NEW_LINE>if (statNoFollow.isFile()) {<NEW_LI... | statNoFollow, digestWillBeInjected, xattrProvider, tsgm); |
1,286,753 | private Settings parseAsSettings() {<NEW_LINE>TomlValidator settingsTomlValidator;<NEW_LINE>try {<NEW_LINE>settingsTomlValidator = new TomlValidator(Schema.from(FileUtils.readFileAsString("settings-toml-schema.json")));<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new ProjectException("Failed to read the Settings.... | getStringValueFromProxyNode(proxyNode, USERNAME, ""); |
427,322 | public void run(RegressionEnvironment env) {<NEW_LINE>// Assure destroy order ESPER-489<NEW_LINE>assertEquals(2, SupportPluginLoader.getNames().size());<NEW_LINE>assertEquals(2, SupportPluginLoader.getPostInitializes().size());<NEW_LINE>assertEquals("MyLoader", SupportPluginLoader.getNames().get(0));<NEW_LINE>assertEqu... | 0).get("name")); |
1,085,270 | protected static void handleException(ActionType actionType, RestRequest request, RestChannel channel, Exception e) {<NEW_LINE>logger.debug(new ParameterizedMessage("{} failed for REST request [{}]", actionType, request.uri()), e);<NEW_LINE>final RestStatus <MASK><NEW_LINE>try {<NEW_LINE>channel.sendResponse(new BytesR... | restStatus = ExceptionsHelper.status(e); |
1,050,652 | public void renameRollup(Database db, OlapTable table, RollupRenameClause renameClause) throws DdlException {<NEW_LINE>if (table.getState() != OlapTableState.NORMAL) {<NEW_LINE>throw new DdlException("Table[" + table.getName() + "] is under " + table.getState());<NEW_LINE>}<NEW_LINE>String rollupName = renameClause.get... | indexNameToIdMap.put(newRollupName, indexId); |
1,459,211 | protected static void displayCommandLineHelp(SelfExtractor extractor) {<NEW_LINE>// This method takes a SelfExtractor in case we want to tailor the help to the current archive<NEW_LINE>// Get the name of the JAR file to display in the command syntax");<NEW_LINE>String jarName = System.getProperty("sun.java.command", "w... | + SelfExtract.format("helpVerbose")); |
373,802 | public static void renderTestReport(List<TestClassResult> testResults, File outputDir) {<NEW_LINE>GoTestResultsProvider provider = new GoTestResultsProvider(testResults);<NEW_LINE>try {<NEW_LINE>String executorClassName = isGradle4() ? "org.gradle.internal.operations.BuildOperationExecutor" : "org.gradle.internal.opera... | buildOperationProcessorClass }, new BuildOperationExecutorOrProcessor()); |
1,378,596 | static <T> T convertTo(@NonNull String value, @NonNull Class<T> type) {<NEW_LINE>Assert.notNull(value, "Value must not be null");<NEW_LINE>Assert.notNull(type, "Type must not be null");<NEW_LINE>if (type.isAssignableFrom(String.class)) {<NEW_LINE>return (T) value;<NEW_LINE>}<NEW_LINE>if (type.isAssignableFrom(Integer.c... | T) Boolean.valueOf(value); |
1,347,325 | public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}".re... | HashMap<String, String>(); |
1,290,137 | public void verifyCertificatesSubject(ServerNames serverNames, InetSocketAddress peer, X509Certificate certificate) throws HandshakeException {<NEW_LINE>if (certificate == null) {<NEW_LINE>throw new NullPointerException("Certficate must not be null!");<NEW_LINE>}<NEW_LINE>if (serverNames == null && peer == null) {<NEW_... | InetAddress destination = peer.getAddress(); |
1,746,971 | protected JDialog createDialog(Component parent) throws HeadlessException {<NEW_LINE>FileChooserUI ui = getUI();<NEW_LINE>String title = ui.getDialogTitle(this);<NEW_LINE>putClientProperty(AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY, title);<NEW_LINE>JDialog dialog;<NEW_LINE>Window window = getWindowForComponent(... | Frame) window, title, true); |
1,822,906 | protected boolean processNode(Node node, PEReadEliminationBlockState state, GraphEffectList effects, FixedWithNextNode lastFixedNode) {<NEW_LINE>if (super.processNode(node, state, effects, lastFixedNode)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (currentMode != EffectsClosureMode.REGULAR_VIRTUALIZATION) {<NEW_LIN... | RawStoreNode) node, state, effects); |
163,755 | private void init(Context context, AttributeSet attrs) {<NEW_LINE>TypedArray ta = getContext().obtainStyledAttributes(attrs, R.styleable.SmoothCheckBox);<NEW_LINE>int tickColor = ThemeStore.accentColor(context);<NEW_LINE>mCheckedColor = context.getResources().getColor(R.color.background_card);<NEW_LINE>mUnCheckedColor ... | setStyle(Paint.Style.FILL); |
1,619,517 | public synchronized boolean init(final PlacementDriverServerOptions opts) {<NEW_LINE>if (this.started) {<NEW_LINE>LOG.info("[PlacementDriverServer] already started.");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>final RheaKVStoreOptions rheaOpts = opts.getRheaKVStoreOptions();<NEW_LINE>Requires.requireNon... | Requires.requireNonNull(opts, "opts"); |
179,628 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Wo> wos = emc.fe... | collect(Collectors.toList()); |
582,352 | public void initView() {<NEW_LINE>Array<AttributeVO> gridAttributes = new Array<>();<NEW_LINE>gridAttributes.add(new AttributeVO("Width", currentParameters.gridWidth));<NEW_LINE>gridAttributes.add(new AttributeVO("Height", currentParameters.gridHeight));<NEW_LINE>CategoryVO gridVO = new CategoryVO("Grid size: ", gridAt... | facade.sendNotification(OK_BTN_CLICKED, currentParameters); |
26,811 | private HttpPipeline createHttpPipeline() {<NEW_LINE>Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;<NEW_LINE>if (httpLogOptions == null) {<NEW_LINE>httpLogOptions = new HttpLogOptions();<NEW_LINE>}<NEW_LINE>List<HttpPipelinePolicy> policies = new Arr... | policies.addAll(this.pipelinePolicies); |
908,925 | public static AcceptableMediaType valueOf(HttpHeaderReader reader) throws ParseException {<NEW_LINE>// Skip any white space<NEW_LINE>reader.hasNext();<NEW_LINE>// Get the type<NEW_LINE>String type = reader.nextToken().toString();<NEW_LINE>String subType = "*";<NEW_LINE>// Some HTTP implements use "*" to mean "*/*"<NEW_... | .nextToken().toString(); |
932,017 | private DatabaseTransactionLogModule buildTransactionLogs(LogFiles logFiles, Config config, LogProvider logProvider, JobScheduler scheduler, CheckPointerImpl.ForceOperation forceOperation, LogEntryReader logEntryReader, MetadataProvider metadataProvider, Monitors monitors, Dependencies databaseDependencies) {<NEW_LINE>... | return new DatabaseTransactionLogModule(checkPointer, transactionAppender); |
1,317,015 | private TaskProvider<BootWar> configureBootWarTask(Project project) {<NEW_LINE>Configuration developmentOnly = project.getConfigurations().getByName(SpringBootPlugin.DEVELOPMENT_ONLY_CONFIGURATION_NAME);<NEW_LINE>Configuration productionRuntimeClasspath = project.getConfigurations(<MASK><NEW_LINE>Callable<FileCollectio... | ).getByName(SpringBootPlugin.PRODUCTION_RUNTIME_CLASSPATH_CONFIGURATION_NAME); |
794,557 | public IAllocationRequest requestQtyToAllocate(final IAllocationRequest request) {<NEW_LINE>assertQtyAllocationDeallocationAllowed();<NEW_LINE>// Check: Qty shall be positive or zero<NEW_LINE>final <MASK><NEW_LINE>Check.assume(qtyRequired.signum() >= 0, "qtyRequired({}) >= 0", qtyRequired);<NEW_LINE>//<NEW_LINE>// Zero... | BigDecimal qtyRequired = request.getQty(); |
1,191,891 | private ReferenceDB addRef(Address fromAddr, Address toAddr, RefType type, SourceType sourceType, int opIndex, boolean isOffset, boolean isShifted, long offsetOrShift) throws IOException {<NEW_LINE>if (isOffset && isShifted) {<NEW_LINE>throw new IllegalArgumentException("Reference may not be both shifted and offset");<... | ()).translateAddress(toAddr); |
941,341 | private void renderStream(Context context, Publisher<? extends ServerSentEvent> events) {<NEW_LINE>Response response = context.getResponse();<NEW_LINE>response.getHeaders().add(HttpHeaderConstants.CONTENT_TYPE, HttpHeaderConstants.TEXT_EVENT_STREAM_CHARSET_UTF_8);<NEW_LINE>response.getHeaders().add(<MASK><NEW_LINE>Byte... | HttpHeaderConstants.TRANSFER_ENCODING, HttpHeaderConstants.CHUNKED); |
194,005 | public void handleCommand(ChannelUID channelUID, Command command) {<NEW_LINE>if (RefreshType.REFRESH.equals(command)) {<NEW_LINE>updateDeviceState(new DeviceChannelState(latestDeviceState));<NEW_LINE>updateTransitionState(new TransitionChannelState(latestTransitionState));<NEW_LINE>updateActionState(new ActionsChannelS... | command.toString()))); |
918,010 | private Mono<Response<RoleEligibilityScheduleRequestInner>> createWithResponseAsync(String scope, String roleEligibilityScheduleRequestName, RoleEligibilityScheduleRequestInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Param... | error(new IllegalArgumentException("Parameter roleEligibilityScheduleRequestName is required and cannot be null.")); |
153,156 | private void traverseView(View view, Map<Class<? extends Entity>, List<CrossDataStoreProperty>> crossPropertiesMap, Set<View> visited) {<NEW_LINE>if (visited.contains(view))<NEW_LINE>return;<NEW_LINE>visited.add(view);<NEW_LINE>String storeName = metadataTools.getStoreName(metaClass);<NEW_LINE>Class<? extends Entity> e... | new CrossDataStoreProperty(metaProperty, viewProperty)); |
941,697 | private void doRoll(Map<String, String> config) throws Exception {<NEW_LINE>long elapsed = System.currentTimeMillis() - lastRollCheck.get();<NEW_LINE>if (elapsed < (exhibitor.getConfigManager().getConfig().getInt(IntConfigs.BACKUP_MAX_STORE_MS) / 3)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>exhibitor.getLog().add(Activit... | deleteBackup(exhibitor, backup, config); |
1,598,911 | List<UserAgentShare> userAgentSearchShares(final StatsRequest statsRequest) {<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>logger.debug("Calculating user agent search shares");<NEW_LINE>String sql = "SELECT\n" + " user_agent,\n" + " count(*)\n" + "FROM SEARCH\n" + "WHERE user_agent IS NOT NULL\n... | = (String) o2[0]; |
364,295 | public TypeBinding resolveType(BlockScope scope) {<NEW_LINE>if (this.actualReceiverType != null) {<NEW_LINE>this.binding = scope.getField(this.actualReceiverType, this.token, this);<NEW_LINE>if (this.binding != null && this.binding.isValidBinding()) {<NEW_LINE>throw new SelectionNodeFound(this.binding);<NEW_LINE>}<NEW_... | throw new SelectionNodeFound(this.binding); |
1,500,472 | GeometryCursor intersectEx(Geometry input_geom) {<NEW_LINE>assert (m_dimensionMask != -1);<NEW_LINE>Geometry dst_geom = tryNativeImplementation_(input_geom);<NEW_LINE>if (dst_geom != null) {<NEW_LINE>Geometry[] res_vec = new Geometry[3];<NEW_LINE>res_vec[dst_geom.getDimension()] = dst_geom;<NEW_LINE>return prepareVecto... | getDescription(), m_dimensionMask, res_vec); |
471,331 | private void checkImageNumQuota(String currentAccountUuid, String resourceTargetOwnerAccountUuid, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>long imageNumQuota = pairs.get(ImageQuotaConstant.IMAGE_NUM).getValue();<NEW_LINE>long imageNumUsed = new <MASK><NEW_LINE>long imageNumAsked = 1;<NEW_LINE>QuotaUtil.QuotaCompa... | ImageQuotaUtil().getUsedImageNum(resourceTargetOwnerAccountUuid); |
1,184,225 | public ListenableFuture<Pair<byte[], String>> wrapKeyAsync(final byte[] key, final String algorithm) throws NoSuchAlgorithmException {<NEW_LINE>if (key == null) {<NEW_LINE>throw new IllegalArgumentException("key");<NEW_LINE>}<NEW_LINE>// Interpret the requested algorithm<NEW_LINE>String algorithmName = (Strings.isNullO... | ) ? getDefaultKeyWrapAlgorithm() : algorithm); |
616,018 | public Iterator<Map.Entry<String, String>> iterator() {<NEW_LINE>Iterator<Map.Entry<CharSequence, CharSequence>> i = headers.iterator();<NEW_LINE>return new Iterator<Map.Entry<String, String>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() {<NEW_LINE>return i.hasNext();<NEW_LINE>}<NEW_LINE><NEW_LINE... | .getValue().toString(); |
962,225 | private void showRouteOnMap(List<WptPt> points) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (points.size() > 0 && mapActivity != null) {<NEW_LINE>OsmandMapTileView mapView = mapActivity.getMapView();<NEW_LINE>double left = 0, right = 0;<NEW_LINE>double top = 0, bottom = 0;<NEW_LINE>Location myLoc... | .getCurrentRotatedTileBox().copy(); |
797,800 | protected Object doWork() {<NEW_LINE>final Resource pythonScriptResource = new <MASK><NEW_LINE>List<String> arguments = new ArrayList<>(Arrays.asList("--reference_fasta", reference, "--input_vcf", inputVcf, "--bam_file", bamFile, "--train_vcf", truthVcf, "--bed_file", truthBed, "--tensor_name", tensorType.name(), "--an... | Resource("training.py", CNNVariantWriteTensors.class); |
579,689 | private void bindView(View view) {<NEW_LINE>View llContent = view.findViewById(R.id.ll_content);<NEW_LINE>llContent.setOnClickListener(null);<NEW_LINE>searchView = view.findViewById(R.id.searchView);<NEW_LINE>atvTitle = view.findViewById(R.id.atv_title);<NEW_LINE>ibtStop = view.findViewById(R.id.ibt_stop);<NEW_LINE>rvS... | .build().list(); |
132,080 | public void showHomeFollowingArticles(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject user = (JSONObject) context.attr(User.USER);<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "home/following-articles.ftl");<NEW_LINE>fina... | put(Follow.FOLLOWING_ID, followingId); |
1,343,683 | public void validatePrototype(IndexPrototype prototype) {<NEW_LINE>IndexType indexType = prototype.getIndexType();<NEW_LINE>if (indexType != IndexType.LOOKUP) {<NEW_LINE>throw new IllegalArgumentException("The '" + getProviderDescriptor().name() + "' index provider does not support " + indexType + " indexes: " + protot... | name() + "' index provider does not support uniqueness indexes: " + prototype); |
653,620 | protected void doExecute(Task task, final MultiGetRequest request, final ActionListener<MultiGetResponse> listener) {<NEW_LINE>ClusterState clusterState = clusterService.state();<NEW_LINE>clusterState.blocks().globalBlockedRaiseException(ClusterBlockLevel.READ);<NEW_LINE>final AtomicArray<MultiGetItemResponse> response... | shardRequests.put(shardId, shardRequest); |
33,343 | public ThirdPartyFirewallMissingFirewallViolation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThirdPartyFirewallMissingFirewallViolation thirdPartyFirewallMissingFirewallViolation = new ThirdPartyFirewallMissingFirewallViolation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_... | class).unmarshall(context)); |
237,497 | private void handle(CreateVipMsg msg) {<NEW_LINE>CreateVipReply reply = new CreateVipReply();<NEW_LINE>APICreateVipMsg amsg = new APICreateVipMsg();<NEW_LINE>amsg.setName(msg.getName());<NEW_LINE>amsg.setDescription(msg.getDescription());<NEW_LINE>amsg.setL3NetworkUuid(msg.getL3NetworkUuid());<NEW_LINE>amsg.setAllocato... | amsg.setIpVersion(IPv6Constants.IPv4); |
99,117 | private Map<String, AviatorFunction> load() {<NEW_LINE>InputStream in = null;<NEW_LINE>InputStreamReader inreader = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>Map<String, AviatorFunction> ret = new HashMap<String, AviatorFunction>();<NEW_LINE>try {<NEW_LINE>in = ClassPathConfigFunctionLoader.class.<MASK><NEW... | getClassLoader().getResourceAsStream(CUSTOM_FUNCTION_LIST_FILE); |
1,163,829 | public void logBackendInit() {<NEW_LINE>String logInitProperty = System.getProperty(ND4JSystemProperties.LOG_INITIALIZATION, "true");<NEW_LINE>boolean logInit = Boolean.parseBoolean(logInitProperty);<NEW_LINE>if (logInit) {<NEW_LINE>try {<NEW_LINE>Nd4jCuda.Environment e = Nd4jCuda.Environment.getInstance();<NEW_LINE>in... | .getExecutioner().getEnvironmentInformation(); |
115,154 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new ListTagsForResourceResultJsonUnmarshaller()); |
799,273 | private void processException(Thread thread, Throwable ex) {<NEW_LINE>Optional<File> optional = getDir();<NEW_LINE>if (optional.isPresent()) {<NEW_LINE>Date date = new Date();<NEW_LINE>File file = new File(getDir().get(), "error-" + date.getTime() + "-" + BuildConfig.VERSION_CODE + ".log");<NEW_LINE>try {<NEW_LINE>@Cle... | PrintWriter printWriter = new PrintWriter(file); |
1,511,578 | public com.squareup.okhttp.Call apisApiIdDocumentsDocumentIdPutAsync(String apiId, String documentId, Document body, String contentType, String ifMatch, String ifUnmodifiedSince, final ApiCallback<Document> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>... | onDownloadProgress(bytesRead, contentLength, done); |
870,813 | private void writeFeatureChangeMessages(long startTime, ProvisioningMode provisioningMode) {<NEW_LINE>String time = TimestampUtils.getElapsedTimeNanos(startTime);<NEW_LINE>if (provisioningMode == ProvisioningMode.UPDATE) {<NEW_LINE>Tr.audit(tc, "COMPLETE_AUDIT", time);<NEW_LINE>} else {<NEW_LINE>if (tc.isInfoEnabled())... | "CLIENT_STARTED", locationService.getServerName()); |
1,820,735 | public <Model> void inject(@NotNull Model model) {<NEW_LINE>try {<NEW_LINE>for (Class<?> type = model.getClass(); type != null && type != Object.class && type != Enum.class; type = type.getSuperclass()) {<NEW_LINE>MasterContext defaultContext = type.getAnnotation(MasterContext.class);<NEW_LINE>for (Field field : type.g... | dataStore.injectField(model, field); |
760,729 | public static DescribeTemplateResponse unmarshall(DescribeTemplateResponse describeTemplateResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTemplateResponse.setRequestId(_ctx.stringValue("DescribeTemplateResponse.RequestId"));<NEW_LINE>describeTemplateResponse.setId(_ctx.stringValue("DescribeTemplateResponse.Id")... | ("DescribeTemplateResponse.TransConfigs[" + i + "].VideoCodec")); |
1,114,399 | public static void inventoryAttributes(Map<String, Inventory> attributes) {<NEW_LINE>String m = CardiovascularDiseaseModule.class.getSimpleName();<NEW_LINE>// Read<NEW_LINE>Attributes.inventory(attributes, m, Person.GENDER, true, false, "M");<NEW_LINE>Attributes.inventory(attributes, m, Person.GENDER, true, false, "F")... | "stroke_risk", true, false, null); |
1,788,579 | public ListDeploymentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDeploymentsResult listDeploymentsResult = new ListDeploymentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
968,549 | public void addCamera(Se3_F32 cameraToCommon, LensDistortionWideFOV factory, int width, int height) {<NEW_LINE>Point2Transform3_F32 p2s = factory.undistortPtoS_F32();<NEW_LINE>Point3Transform2_F32 s2p = factory.distortStoP_F32();<NEW_LINE>EquiToCamera equiToCamera = new EquiToCamera(cameraToCommon.getR(), s2p);<NEW_LIN... | = new GrayF32(equiWidth, equHeight); |
1,233,861 | private IFhirResourceDao<? extends IBaseResource> toDao(UrlUtil.UrlParts theParts, String theVerb, String theUrl) {<NEW_LINE>RuntimeResourceDefinition resType;<NEW_LINE>try {<NEW_LINE>resType = myContext.<MASK><NEW_LINE>} catch (DataFormatException e) {<NEW_LINE>String msg = myContext.getLocalizer().getMessage(BaseStor... | getResourceDefinition(theParts.getResourceType()); |
1,813,927 | private Completable cleanMostPlayedPlaylist() {<NEW_LINE>if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {<NEW_LINE>return Completable.complete();<NEW_LINE>}<NEW_LINE>return Completable.fromAction(() -> {<NEW_LINE>List<Integer> playCountIds = ... | )).toList())); |
1,151,134 | public static WorkerReportRequest buildWorkerReportRequest(Worker worker) {<NEW_LINE>WorkerReportRequest.Builder builder = WorkerReportRequest.newBuilder();<NEW_LINE>builder.setWorkerAttemptId(worker.getWorkerAttemptIdProto());<NEW_LINE>if (!worker.isWorkerInitFinished()) {<NEW_LINE>return builder.build();<NEW_LINE>}<N... | .getTaskManager().getRunningTask(); |
1,304,246 | public void copy4x4(Matrix4x3d src, double[] dest, int off) {<NEW_LINE>dest[off + 0] = src.m00();<NEW_LINE>dest[off + 1] = src.m01();<NEW_LINE>dest[off + 2] = src.m02();<NEW_LINE>dest[off + 3] = 0.0;<NEW_LINE>dest[off + 4] = src.m10();<NEW_LINE>dest[off + <MASK><NEW_LINE>dest[off + 6] = src.m12();<NEW_LINE>dest[off + 7... | 5] = src.m11(); |
1,190,127 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String agentPoolName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.e... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.