idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
186,225 | final AdminRemoveUserFromGroupResult executeAdminRemoveUserFromGroup(AdminRemoveUserFromGroupRequest adminRemoveUserFromGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminRemoveUserFromGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,268,829 | public void init() {<NEW_LINE>RhoBluetoothManager.logi(TAG, "init()");<NEW_LINE>// constructor<NEW_LINE>mActivity = RhodesActivity.getInstance();<NEW_LINE>if (mActivity == null)<NEW_LINE>throw new IllegalStateException("No rhodes activity instance at this moment");<NEW_LINE>mDeviceName = "NONAME";<NEW_LINE>mInputBuffer... | logi(TAG, "Bluetooth device name = " + mDeviceName); |
433,845 | public static void subscriptionAction(final CacheManager cm, final APIResponseHandler.ActionResponseHandler responseHandler, final RedditAccount user, final SubredditCanonicalId subredditId, @RedditSubredditAction final int action, final Context context) {<NEW_LINE>RedditSubredditManager.getInstance(context, user).getS... | postFields = new LinkedList<>(); |
237,356 | protected void zkInit() throws Exception {<NEW_LINE>bPartnerLabel.setText(Msg.getElement(Env.getCtx(), "C_BPartner_ID"));<NEW_LINE>orderLabel.setText(Msg.getElement(Env.getCtx(), "C_Order_ID", false));<NEW_LINE>shipmentLabel.setText(Msg.getElement(Env.getCtx(), "M_InOut_ID", false));<NEW_LINE>rmaLabel.setText(Msg.trans... | appendChild(rmaLabel.rightAlign()); |
1,069,605 | protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(SearchSourceBuilder.FROM_FIELD.getPreferredName(), from);<NEW_LINE>builder.field(SearchSourceBuilder.<MASK><NEW_LINE>builder.field(SearchSourceBuilder.VERSION_FI... | SIZE_FIELD.getPreferredName(), size); |
179,378 | public static <T1, T2, T3, R1, R2, R3, R> Mono<R> forEach4(Mono<? extends T1> value1, Function<? super T1, ? extends Mono<R1>> value2, BiFunction<? super T1, ? super R1, ? extends Mono<R2>> value3, Function3<? super T1, ? super R1, ? super R2, ? extends Mono<R3>> value4, Function4<? super T1, ? super R1, ? super R2, ? ... | (value2.apply(in)); |
1,334 | public <T extends IRecipeRoot> T readRoot(T target, String rootElement) throws XMLStreamException, InvalidRecipeConfigException {<NEW_LINE>T result = null;<NEW_LINE>while (eventReader.hasNext()) {<NEW_LINE>XMLEvent event = eventReader.nextEvent();<NEW_LINE>switch(event.getEventType()) {<NEW_LINE>case XMLStreamConstants... | StartElement startElement = event.asStartElement(); |
52,139 | public void onTextureStitchPre(ResourceLocation modelLocation, Set<ResourceLocation> toRegisterSprites) {<NEW_LINE>if (ModelHolderRegistry.DEBUG) {<NEW_LINE>BCLog.logger.info("[lib.model] The model " + modelLocation + " requires these sprites:");<NEW_LINE>}<NEW_LINE>ReloadSource srcModel = new ReloadSource(modelLocatio... | (textureLoc), SourceType.SPRITE); |
1,441,555 | private void handleServiceInfo(ServiceInfo info) throws UnsupportedEncodingException {<NEW_LINE>Inet4Address[] v4Addrs = info.getInet4Addresses();<NEW_LINE>Inet6Address[] v6Addrs = info.getInet6Addresses();<NEW_LINE>LimeLog.info("mDNS: " + info.getName() + " has " + v4Addrs.length + " IPv4 addresses");<NEW_LINE>LimeLog... | " has " + v6Addrs.length + " IPv6 addresses"); |
449,478 | // Get the public key associated with an asymmetric key.<NEW_LINE>public void signAsymmetric(String projectId, String locationId, String keyRingId, String keyId, String keyVersionId, String message) throws IOException, GeneralSecurityException {<NEW_LINE>// Initialize client that will be used to send requests. This cli... | locationId, keyRingId, keyId, keyVersionId); |
508,257 | private void waitUntilDownloadStarted(FileReferenceDownload fileReferenceDownload) {<NEW_LINE>Instant end = Instant.now().plus(downloadTimeout);<NEW_LINE>FileReference fileReference = fileReferenceDownload.fileReference();<NEW_LINE>int retryCount = 0;<NEW_LINE><MASK><NEW_LINE>do {<NEW_LINE>backoff(retryCount);<NEW_LINE... | Connection connection = connectionPool.getCurrent(); |
858,501 | private void buildGetWikipediaBanner(ViewGroup viewGroup) {<NEW_LINE>OsmAndFeature feature = OsmAndFeature.WIKIPEDIA;<NEW_LINE>LinearLayout view = buildCollapsableContentView(app, false, true);<NEW_LINE>View banner = UiUtilities.getInflater(app, !light).inflate(R.layout.get_wikipedia_context_menu_banner, view, false);<... | feature.getIconId(!light)); |
613,995 | static String builtClassesDirsForBootClassPath(FileObject testFile) {<NEW_LINE>File buildDir = BuildUtils.getBuildTargetDir(testFile);<NEW_LINE>Project prj = FileOwnerQuery.getOwner(testFile);<NEW_LINE>Settings settings = prj.getLookup(<MASK><NEW_LINE>boolean useLangtoolsBuild = settings == null || settings.isUseAntBui... | ).lookup(Settings.class); |
1,646,803 | public static GetSmsConfigResponse unmarshall(GetSmsConfigResponse getSmsConfigResponse, UnmarshallerContext context) {<NEW_LINE>getSmsConfigResponse.setRequestId(context.stringValue("GetSmsConfigResponse.RequestId"));<NEW_LINE>getSmsConfigResponse.setSuccess(context.booleanValue("GetSmsConfigResponse.Success"));<NEW_L... | ("GetSmsConfigResponse.SmsConfigs[" + i + "].GmtModified")); |
925,632 | public static void handleArchiveFileException(DataTypeManagerPlugin plugin, ResourceFile archiveFile, Throwable t) {<NEW_LINE>if (t instanceof FileNotFoundException) {<NEW_LINE>Msg.showError(plugin, plugin.getProvider().getComponent(), "File Not Found", archiveFile.getAbsolutePath() + " not found!");<NEW_LINE>} else if... | , "open", (VersionException) cause); |
379,106 | private boolean updateBound(boolean lb) throws ContradictionException {<NEW_LINE>boolean hasFiltered = false;<NEW_LINE>ISetIterator iterator;<NEW_LINE>for (int k = 0; k < topologicalTraversal.length; k++) {<NEW_LINE>int var = lb ? topologicalTraversal[k] : topologicalTraversal[topologicalTraversal.length - 1 - k];<NEW_... | getPredecessorsOf(var).iterator(); |
818,524 | public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.INTEGER);<NEW_LINE>error = validator.validate(this.roleId, convLabelName("Role Id"));<NEW_LINE>if (erro... | .deleteFlag, convLabelName("Delete Flag")); |
1,650,491 | final DeleteBackendStorageResult executeDeleteBackendStorage(DeleteBackendStorageRequest deleteBackendStorageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBackendStorageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
395,104 | private void init() {<NEW_LINE>LinearLayoutCompat container = new LinearLayoutCompat(getContext());<NEW_LINE>container.setOrientation(LinearLayoutCompat.VERTICAL);<NEW_LINE>MaterialCardView.LayoutParams containerLayoutParams = new MaterialCardView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams... | container.addView(mThemeMessage, messageLayoutParams); |
1,712,629 | public void onPageSelected(int position) {<NEW_LINE>logDebug("onTabChanged TabId: " + position);<NEW_LINE>if (position == CLOUD_TAB) {<NEW_LINE>tabShown = CLOUD_TAB;<NEW_LINE>cloudDriveProviderFragment = (CloudDriveProviderFragment) getSupportFragmentManager().findFragmentByTag(getFragmentTag(R.id.provider_tabs_pager, ... | .file_provider_title).toUpperCase()); |
253,497 | final DeleteRouteTableResult executeDeleteRouteTable(DeleteRouteTableRequest deleteRouteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRouteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
286,045 | public boolean execute(Object state, CircuitState cState) {<NEW_LINE>if (!valid)<NEW_LINE>return false;<NEW_LINE>RV32imState.ProcessorState cpuState = (RV32imState.ProcessorState) state;<NEW_LINE>int val1 = cpuState.getRegisterValue(source1);<NEW_LINE>int val2 = cpuState.getRegisterValue(source2);<NEW_LINE>BigInteger o... | opp2 = BigInteger.valueOf(val2); |
376,970 | private Position decodeBinary(ByteBuf buf, Channel channel, SocketAddress remoteAddress) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>boolean longId = buf.readableBytes() == 42;<NEW_LINE>// marker<NEW_LINE>buf.readByte();<NEW_LINE>String id;<NEW_LINE>if (longId) {<NEW_LINE>id = ByteBufUtil.h... | (flags & 0x02) != 0); |
1,475,056 | public <MT extends IBaseMetaType> MT metaAddOperation(IIdType theResourceId, MT theMetaAdd, RequestDetails theRequest) {<NEW_LINE>TransactionDetails transactionDetails = new TransactionDetails();<NEW_LINE>// Notify interceptors<NEW_LINE>if (theRequest != null) {<NEW_LINE>ActionRequestDetails requestDetails = new Action... | theMetaAdd, history, theRequest, transactionDetails); |
299,185 | public void start() throws LifecycleException {<NEW_LINE>// Validate and update our current component state<NEW_LINE>if (started) {<NEW_LINE>if (log.isLoggable(Level.INFO)) {<NEW_LINE>log.log(<MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!initialized)<NEW_LINE>init();<NEW_LINE>lifecycle.fireLifecycleEvent(... | Level.INFO, LogFacade.MANAGER_STARTED_INFO); |
1,274,224 | private static String assignFromBuilder(CNode child) {<NEW_LINE>final String name = child.getName();<NEW_LINE>final String className = nodeClass(child);<NEW_LINE>final boolean isArray = child.isArray;<NEW_LINE>final boolean isMap = child.isMap;<NEW_LINE>if (child instanceof FileLeaf && isArray) {<NEW_LINE><MASK><NEW_LI... | return name + " = LeafNodeVector.createFileNodeVector(builder." + name + ");"; |
351,397 | public static String optimizedPathFor(File path, File optimizedDirectory) {<NEW_LINE>if (ShareTinkerInternals.isAfterAndroidO()) {<NEW_LINE>// dex_location = /foo/bar/baz.jar<NEW_LINE>// odex_location = /foo/bar/oat/<isa>/baz.odex<NEW_LINE>String currentInstructionSet;<NEW_LINE>try {<NEW_LINE>currentInstructionSet = Sh... | fileName.substring(0, index); |
997,909 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String wor... | Utils.getValueFromIdByName(id, "resourceGroups"); |
1,324,661 | public void doSubSidebarNoLoad(final String subOverride) {<NEW_LINE>findViewById(R.id.loader).setVisibility(View.GONE);<NEW_LINE>invalidateOptionsMenu();<NEW_LINE>if (!subOverride.equalsIgnoreCase("all") && !subOverride.equalsIgnoreCase("frontpage") && !subOverride.equalsIgnoreCase("friends") && !subOverride.equalsIgno... | sync)).setTextColor(subColor); |
1,323,698 | private void fetchData() {<NEW_LINE>boolean portrait = <MASK><NEW_LINE>osmEdits = new ArrayList<>();<NEW_LINE>List<OpenstreetmapPoint> l1 = plugin.getDBPOI().getOpenstreetmapPoints();<NEW_LINE>List<OsmNotesPoint> l2 = plugin.getDBBug().getOsmbugsPoints();<NEW_LINE>osmEdits.addAll(l1);<NEW_LINE>osmEdits.addAll(l2);<NEW_... | AndroidUiHelper.isOrientationPortrait(getActivity()); |
1,312,001 | public String[] listPreparedTransactions() {<NEW_LINE>if (isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "getPreparedTransactions");<NEW_LINE>String[] col = null;<NEW_LINE>if (_manager != null) {<NEW_LINE>// Obtain array of in-doubt xids from the XidManager<NEW_LINE>Xid[] xids = null;<NEW_... | exit(this, tc, "getPreparedTransactions"); |
839,778 | private Process convertProcess(ProcessTraffic traffic) {<NEW_LINE>final Process process = new Process();<NEW_LINE>process.setId(traffic.id());<NEW_LINE>process.setName(traffic.getName());<NEW_LINE>final String serviceId = traffic.getServiceId();<NEW_LINE>process.setServiceId(serviceId);<NEW_LINE>process.setServiceName(... | (serviceId).getName()); |
405,942 | public static void main(String[] args) {<NEW_LINE>Exercise27_OneDimensionalIntervals oneDimensionalIntervals = new Exercise27_OneDimensionalIntervals();<NEW_LINE>Interval1D interval1 = oneDimensionalIntervals<MASK><NEW_LINE>Interval1D interval2 = oneDimensionalIntervals.new Interval1D(90, 95);<NEW_LINE>Interval1D inter... | .new Interval1D(40, 100); |
1,224,910 | public TiTableInfo copyTableWithRowId() {<NEW_LINE>// Support cluster index: need to exclude isPkHandle and isCommonHandle for they need not<NEW_LINE>// _tidb_rowid<NEW_LINE>if (!isPkHandle() && !isCommonHandle) {<NEW_LINE>ImmutableList.Builder<TiColumnInfo> newColumns = ImmutableList.builder();<NEW_LINE>for (TiColumnI... | true).size())); |
798,806 | public Map<ServerUUID, List<UserInfo>> processResults(ResultSet set) throws SQLException {<NEW_LINE>Map<ServerUUID, List<UserInfo>> serverMap = new HashMap<>();<NEW_LINE>while (set.next()) {<NEW_LINE>ServerUUID serverUUID = ServerUUID.fromString(set<MASK><NEW_LINE>UUID uuid = UUID.fromString(set.getString(UserInfoTable... | .getString(UserInfoTable.SERVER_UUID)); |
686,524 | public static void generateRelayConfig(String schemaRegistryLocation, String dbName, String uri, String outputDir, List<String> srcNames, SchemaMetaDataManager manager) throws Exception {<NEW_LINE>PhysicalSourceConfig config = new PhysicalSourceConfig();<NEW_LINE>FileSystemSchemaRegistryService s = FileSystemSchemaRegi... | setUri(dbName + "." + dbObjectName); |
249,768 | public static int findLongestSubarrayLessEqualK(List<Integer> A, int k) {<NEW_LINE>// Build the prefix sum according to A.<NEW_LINE>List<Integer> prefixSum = new ArrayList<>();<NEW_LINE>A.stream().reduce(0, (left, right) -> {<NEW_LINE>prefixSum.add(left + right);<NEW_LINE>return left + right;<NEW_LINE>});<NEW_LINE>// E... | , b = 0, maxLength = 0; |
1,499,494 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('ctx') @public create context MyCtx as initiated by SupportBean_S0 s0 terminated after 24 hours", path);<NEW_LINE>String[] fields = "mycontextvar".split(",");<NEW_LINE>env.compileDeploy("@... | env.compileDeploy("@name('upd') context MyCtx on SupportBean(theString = context.s0.p00) set mycontextvar = intPrimitive", path); |
1,598,055 | private List<DriverLibraryMavenArtifact> parseGradle() throws DBException {<NEW_LINE>final List<DriverLibraryMavenArtifact> artifacts = new ArrayList<>();<NEW_LINE>final Matcher matcher = REGEX_FOR_GRADLE.matcher(fieldText.getText());<NEW_LINE>while (matcher.find()) {<NEW_LINE>String <MASK><NEW_LINE>String name = match... | group = matcher.group(1); |
702,345 | public CodegenExpression makeCodegen(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(ViewableActivatorFilter.EPTYPE, this.getClass(), classScope);<NEW_LINE>CodegenMethod makeFilter = filterSpecCompiled.makeCodegen(method, symbols... | , "filterSpecCompiled", localMethod(makeFilter)); |
1,449,728 | private static void generateEditJsp(Project project, CompilationController controller, String entityClass, String simpleEntityName, String managedBean, String fieldName, String linkToIndex, BaseDocument doc, final FileObject jsfRoot, EmbeddedPkSupport embeddedPkSupport, String controllerClass, String styleAndScriptTags... | getElements().getTypeElement(entityClass); |
844,724 | public static void multiplyComplex(InterleavedF64 complexA, InterleavedF64 complexB, InterleavedF64 complexC) {<NEW_LINE>InputSanityCheck.<MASK><NEW_LINE>for (int y = 0; y < complexA.height; y++) {<NEW_LINE>int indexA = complexA.startIndex + y * complexA.stride;<NEW_LINE>int indexB = complexB.startIndex + y * complexB.... | checkSameShape(complexA, complexB, complexC); |
1,207,651 | private void processDisconnectedJvmstat(Host host, JvmstatConnection listener) {<NEW_LINE>HostIdentifier hostId = listener.monitoredHost.getHostIdentifier();<NEW_LINE>try {<NEW_LINE>listener.monitoredHost.removeHostListener(listener);<NEW_LINE>} catch (MonitorException ex) {<NEW_LINE>}<NEW_LINE>unregisterHostListener(h... | ).getDataSources(JvmstatApplication.class); |
1,248,873 | public Object postProcessAfterInitialization(final Object bean, final String beanName) throws BeansException {<NEW_LINE>// first sift through and get all the methods<NEW_LINE>// then get all the annotations<NEW_LINE>// then build the metadata and register the metadata<NEW_LINE>final Class<?> targetClass = AopUtils.getT... | HashMap<Integer, String>(); |
376,041 | public static SpawnEggRefl fromItemStack(final ItemStack item) throws Exception {<NEW_LINE>if (item == null)<NEW_LINE>throw new IllegalArgumentException("Item cannot be null");<NEW_LINE>if (item.getType() != Material.MONSTER_EGG)<NEW_LINE>throw new IllegalArgumentException("Item is not a monster egg");<NEW_LINE>final C... | ), "getCompound", String.class); |
884,154 | void contextPropagationExample_WithoutContextPropagator() {<NEW_LINE>ThreadPoolBulkheadConfig config = ThreadPoolBulkheadConfig.custom().maxThreadPoolSize(2).coreThreadPoolSize(1).queueCapacity(1).build();<NEW_LINE>ThreadPoolBulkheadRegistry registry = ThreadPoolBulkheadRegistry.of(config);<NEW_LINE>ThreadPoolBulkhead ... | .randomUUID().toString(); |
922,959 | // ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(available);<NEW_LINE>s... | (dm).append(timeToLive); |
338,680 | protected WeightedDiscreteUncertainObject filterSingleObject(NumberVector vec) {<NEW_LINE>final int dim = vec.getDimensionality();<NEW_LINE>if (dim % mod != 0) {<NEW_LINE>throw new AbortException("Vector length " + dim + " not divisible by the number of dimensions + 1 (for probability): " + mod);<NEW_LINE>}<NEW_LINE>fi... | ] samples = new DoubleVector[num]; |
1,086,971 | private PartialPath mergeSamePathFilter(QueryFilter filter) throws StatementAnalyzeException {<NEW_LINE>if (filter.isLeaf()) {<NEW_LINE>return filter.getSinglePath();<NEW_LINE>}<NEW_LINE>List<QueryFilter> children = filter.getChildren();<NEW_LINE>checkInnerFilterLen(children);<NEW_LINE>PartialPath childPath = mergeSame... | ret = new ArrayList<>(); |
144,989 | public static RubyClass createThreadClass(Ruby runtime) {<NEW_LINE>// FIXME: In order for Thread to play well with the standard 'new' behavior,<NEW_LINE>// it must provide an allocator that can create empty object instances which<NEW_LINE>// initialize then fills with appropriate data.<NEW_LINE>RubyClass threadClass = ... | getDefaultThreadGroup().addDirectly(rubyThread); |
284,254 | Optional<Candidate> fromCandidateRecord(final I_MD_Candidate candidateRecordOrNull) {<NEW_LINE>if (candidateRecordOrNull == null || isNew(candidateRecordOrNull) || candidateRecordOrNull.getMD_Candidate_ID() <= 0) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final CandidateBuilder builder = createAndInitializ... | = distributionDetailOrNull == null ? 0 : 1; |
226,785 | private void loadOrgAccess(boolean reload) {<NEW_LINE>if (!(reload || m_orgAccess == null))<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>ArrayList<OrgAccess> list = new ArrayList<OrgAccess>();<NEW_LINE>if (isUseUserOrgAccess())<NEW_LINE>loadOrgAccessUser(list);<NEW_LINE>else<NEW_LINE>loadOrgAccessRole(list);<NEW_LINE>m_orgAcc... | (reload ? " - reload" : "")); |
814,789 | private SpHost buildSpHost(CodeGenContext context, GenTaskByTableViewSp tableViewSp, String spName) throws Exception {<NEW_LINE>JavaCodeGenContext ctx = (JavaCodeGenContext) context;<NEW_LINE>String schema = "dbo";<NEW_LINE>String realSpName = spName;<NEW_LINE>if (spName.contains(".")) {<NEW_LINE>String[] splitSp = Str... | (tableViewSp.getAllInOneName())); |
117,887 | public void put(Collection<Map.Entry<Cell, byte[]>> data, long ts) {<NEW_LINE>List<Object[]> args = new ArrayList<<MASK><NEW_LINE>List<Object[]> overflowArgs = new ArrayList<>();<NEW_LINE>for (Map.Entry<Cell, byte[]> entry : data) {<NEW_LINE>Cell cell = entry.getKey();<NEW_LINE>byte[] val = entry.getValue();<NEW_LINE>i... | >(data.size()); |
103,731 | private List<RegionDescriptor> analyzeSection(MemoryBlock curMemBlock) throws MemoryAccessException, AddressOutOfBoundsException, ExceptionHandlerFrameException {<NEW_LINE>monitor.setMessage("Analyzing " + curMemBlock.getName() + " section");<NEW_LINE>monitor.setShowProgressValue(true);<NEW_LINE>monitor.setIndeterminat... | FrameDescriptionEntry(monitor, program, this); |
699,591 | private void releaseIrrelevantSearchContext(QuerySearchResult queryResult) {<NEW_LINE>// we only release search context that we did not fetch from, if we are not scrolling<NEW_LINE>// or using a PIT and if it has at least one hit that didn't make it to the global topDocs<NEW_LINE>if (queryResult.hasSearchContext() && c... | (queryResult.getShardIndex())); |
1,768,769 | public Promise<OneResult<?>, OneReject<Throwable>, Void> race(DeferredCallable<?, ?> callableV1, DeferredCallable<?, ?> callableV2, DeferredCallable<?, ?>... callables) {<NEW_LINE>assertNotNull(callableV1, CALLABLE_V1);<NEW_LINE>assertNotNull(callableV2, CALLABLE_V2);<NEW_LINE>DeferredFutureTask<?, ?>[] allTasks = new ... | <Object, Object>) callableV1); |
940,891 | void paintSeriesText(Graphics2D g, Map<String, Rectangle2D> seriesTextBounds, int markerSize, double x, double starty) {<NEW_LINE>g.setColor(chart.<MASK><NEW_LINE>g.setFont(chart.getStyler().getLegendFont());<NEW_LINE>double multiLineOffset = 0.0;<NEW_LINE>for (Map.Entry<String, Rectangle2D> entry : seriesTextBounds.en... | getStyler().getChartFontColor()); |
739,579 | <T extends OutputStream> EventBinding<T> addOutputBinding(EventBinding<T> binding, boolean errorOutput) {<NEW_LINE>if (TRACE) {<NEW_LINE>String kind = (errorOutput) ? "error" : "standard";<NEW_LINE>trace("BEGIN: Adding " + kind + " output binding %s%n", binding.getElement());<NEW_LINE>}<NEW_LINE>if (errorOutput) {<NEW_... | " output binding %s%n", binding.getElement()); |
627,906 | public Certificate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Certificate certificate = new Certificate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ... | String currentParentElement = context.getCurrentParentElement(); |
1,666,070 | /*<NEW_LINE>* @see com.sitewhere.grpc.service.BatchManagementGrpc.BatchManagementImplBase#<NEW_LINE>* listBatchElements(com.sitewhere.grpc.service.GListBatchElementsRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void listBatchElements(GListBatchElementsRequest request, S... | setResults(results.build()); |
1,477,516 | public ListRoutingProfileQueuesResult listRoutingProfileQueues(ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRoutingProfileQueuesRequest);<NEW_LINE>AWSRequestMetrics awsReque... | awsRequestMetrics.endEvent(Field.ClientExecuteTime); |
229,620 | /*<NEW_LINE>* private static String[] shift(String args[]) { if ((args == null) ||<NEW_LINE>* (args.length == 0)) return args; else { String[] newArgs = new<NEW_LINE>* String[args.length-1]; System.arraycopy(args, 1, newArgs, 0,<NEW_LINE>* args.length-1); return newArgs; } } public boolean JAR() { //Sun<NEW_LINE>* prop... | "rm \"" + path + ".jar\"", true); |
1,012,025 | public static MatchHighlighter.FieldValueHighlighter maxLeadingCharacters(int maxLeadingCharacters, String ellipsis, Set<String> fields) {<NEW_LINE>PassageSelector passageSelector = defaultPassageSelector();<NEW_LINE>PassageFormatter passageFormatter = new PassageFormatter(ellipsis, "", "");<NEW_LINE>return new Abstrac... | format(contiguousValue, bestPassages, valueRanges); |
474,954 | protected List<List<YTypedProperty>> sortIntoTiers(List<YTypedProperty> properties) {<NEW_LINE>boolean tieredOptionals = typeUtil.tieredOptionalPropertyProposals();<NEW_LINE>if (properties.isEmpty()) {<NEW_LINE>// Nothing to sort<NEW_LINE>return ImmutableList.of();<NEW_LINE>} else {<NEW_LINE>ImmutableList.Builder<YType... | ), tier2.build()); |
707,987 | private void doAppNamesWork(String m, io.grpc.stub.StreamObserver<com.ibm.test.g3store.grpc.NameResponse> responseObserver) {<NEW_LINE>log.info(m + " ------------------------------------------------------------");<NEW_LINE>log.<MASK><NEW_LINE>log.info(m + " ----- request received by StoreConsumer grpcService to return ... | info(" -----------------------" + m + " START-----------------------"); |
929,694 | public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLOtherNullPrimitive());<NEW_LINE>execs.add(new EPLOtherChainedInstance());<NEW_LINE>execs.add(new EPLOtherChainedStatic());<NEW_LINE>execs.add(new EPLOtherEscape());<NEW_LINE>exe... | .add(new EPLOtherArrayParameter()); |
1,247,429 | public void marshall(StartSnapshotRequest startSnapshotRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startSnapshotRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(startSnapshotRequest.get... | startSnapshotRequest.getTimeout(), TIMEOUT_BINDING); |
1,281,886 | public void showAtNotifications(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRenderer re... | ) recordCnt / (double) pageSize); |
324,263 | private static Documentation documentIndexedElement(final PhpElement indexedElement) {<NEW_LINE>PhpDocumentation phpDocumentation = PhpDocumentation.NONE;<NEW_LINE>final CCDocHtmlFormatter locationHeader = new CCDocHtmlFormatter();<NEW_LINE>CCDocHtmlFormatter header = new CCDocHtmlFormatter();<NEW_LINE>final String loc... | ElementQuery elementQuery = indexedElement.getElementQuery(); |
787,544 | private String determineContextRoot(Hk2TargetModuleID root, String moduleName) {<NEW_LINE>// incorrect falback<NEW_LINE>String retVal = "/" + moduleName;<NEW_LINE>int dex = moduleName.lastIndexOf('.');<NEW_LINE>if (dex > -1) {<NEW_LINE>retVal = "/" + moduleName.substring(0, dex);<NEW_LINE>}<NEW_LINE>// look for the app... | Level.INFO, null, ex); |
1,047,426 | public void deploy(@Nonnull final DeploymentTask<D> task, @Nonnull final ParameterizedRunnable<String> onDeploymentStarted) {<NEW_LINE>connectIfNeeded(new ConnectionCallbackBase<D>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void connected(@Nonnull ServerRuntimeInstance<D> instance) {<NEW_LINE>DeploymentSource sou... | DEPLOYING, null, null, task); |
484,567 | public int appendUnfragmentedMessage(final int termId, final int termOffset, final HeaderWriter header, final DirectBuffer bufferOne, final int offsetOne, final int lengthOne, final DirectBuffer bufferTwo, final int offsetTwo, final int lengthTwo, final ReservedValueSupplier reservedValueSupplier) {<NEW_LINE>final int ... | lengthOne, bufferTwo, offsetTwo, lengthTwo); |
1,035,919 | private static void generateAnnotationFileSingleSplit(Path vocab) throws IOException {<NEW_LINE>List<String> words = Files.readAllLines(vocab, StandardCharsets.UTF_8);<NEW_LINE>TurkishMorphology morphology = TurkishMorphology.createWithDefaults();<NEW_LINE>List<String> annotations = new ArrayList<>();<NEW_LINE>for (Str... | "Stem + Ending %s+%s does not match word %s", stem, ending, word); |
1,613,779 | private boolean nullSPNTest2(StringBuffer sb) {<NEW_LINE>boolean pass = false;<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>String token = SpnegoTokenHelper.buildSpnegoAuthorizationFromCallerSubject("", lifetime, delegate);<NEW_LINE>writeLine(sb, "Null SPN Test #2 failed. Expected exception was not thro... | writeLine(sb, "Null SPN Test #2 failed. Unexpected GSSException thrown Major=" + major); |
26,387 | private static String compoundSuggestion(@Nonnull String prefix, boolean upperCaseStyle, @Nonnull String[] words, int wordCount, @Nonnull String startWord, char c, boolean isArray, boolean skip_) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>buffer.append(prefix);<NEW_LINE>if (upperCaseStyle) {<NEW_LI... | word = StringUtil.capitalize(word); |
1,425,172 | public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String deviceName = Utils.getValueFromIdByName(id, "dataBoxEdgeDevices");<NEW_LINE>if (deviceName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path seg... | deviceName, name, resourceGroupName, context); |
670,631 | public CreateAliasResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAliasResult createAliasResult = new CreateAliasResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | ().unmarshall(context)); |
964,432 | public void marshall(UpdateIncidentRecordRequest updateIncidentRecordRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateIncidentRecordRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(upd... | updateIncidentRecordRequest.getImpact(), IMPACT_BINDING); |
472,977 | public static void interleavedToBuffered(InterleavedF32 src, DataBufferByte buffer, WritableRaster dst) {<NEW_LINE>if (src.getNumBands() != dst.getNumBands())<NEW_LINE>throw new IllegalArgumentException("Unequal number of bands src = " + src.getNumBands() + " dst = " + dst.getNumBands());<NEW_LINE>final byte[<MASK><NEW... | ] dstData = buffer.getData(); |
75,710 | private void readHeaders(ByteBuffer byteBuffer, StompHeaderAccessor headerAccessor, StompCommand command) {<NEW_LINE>boolean shouldUnescape = (command != StompCommand.CONNECT && command != StompCommand.CONNECTED && command != StompCommand.STOMP);<NEW_LINE>while (true) {<NEW_LINE><MASK><NEW_LINE>boolean headerComplete =... | ByteArrayOutputStream headerStream = new ByteArrayOutputStream(256); |
690,045 | public Void call(LocalDateTimePicker.LocalDateTimeRange viewedRange) {<NEW_LINE>startPicker.disabledLocalDateTimes().clear();<NEW_LINE>endPicker.disabledLocalDateTimes().clear();<NEW_LINE>try {<NEW_LINE>// all events in the case are contained in this interval<NEW_LINE>Interval spanningInterval = filteredEvents.getSpann... | ViewFrame_localDateDisabler_errorMessage()).showError(); |
703,908 | public OutlierResult run(Database database, Relation<O> relation) {<NEW_LINE>StepProgress stepprog = LOG.isVerbose() ? new StepProgress("CBLOF", 3) : null;<NEW_LINE>DBIDs ids = relation.getDBIDs();<NEW_LINE>LOG.beginStep(stepprog, 1, "Computing clustering.");<NEW_LINE>Clustering<MeanModel> clustering = clusteringAlgori... | MaterializedDoubleRelation("Cluster-Based Local Outlier Factor", ids, cblofs); |
603,831 | public static void main(String[] args) {<NEW_LINE>for (int i = 0; i < 1; i++) {<NEW_LINE>// final int f_i = i;<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>long cstart = SystemTime.getCurrentTime();<NEW_LINE><MASK><NEW_LINE>System.out.println("alter system clock to see diff... | long mstart = SystemTime.getMonotonousTime(); |
306,300 | public static ListTaskResponse unmarshall(ListTaskResponse listTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskResponse.setRequestId(_ctx.stringValue("ListTaskResponse.RequestId"));<NEW_LINE>listTaskResponse.setTotalCount(_ctx.integerValue("ListTaskResponse.TotalCount"));<NEW_LINE>listTaskResponse.setPageNum... | (_ctx.integerValue("ListTaskResponse.PageNumber")); |
6,194 | /*<NEW_LINE>* Flow go through a node, the output will be put into edgeMap, and also the changed succ will be in a list to return back.<NEW_LINE>*/<NEW_LINE>private List<Object> flowThrough(Object inValue, Object unit) {<NEW_LINE>ArrayList<Object> changedSuccs = new ArrayList<Object>();<NEW_LINE>WeightedDirectedSparseGr... | Unit s = block.getHead(); |
842,756 | public void find_Breaks(SETNode prev, SETNode cur) {<NEW_LINE>IterableSet naturalPreds = prev.get_NaturalExits();<NEW_LINE>Iterator pit = cur.get_EntryStmt().bpreds.iterator();<NEW_LINE>while (pit.hasNext()) {<NEW_LINE>AugmentedStmt pas = (AugmentedStmt) pit.next();<NEW_LINE>if (prev.get_Body().contains(pas) == false) ... | , prev.get_Label())); |
481,119 | private VirtualFile resolveAbsolutePath(@NotNull String path) {<NEW_LINE>VirtualFile asIsFile = pathToVirtualFile(path);<NEW_LINE>if (asIsFile != null) {<NEW_LINE>return asIsFile;<NEW_LINE>}<NEW_LINE>String projectBasePath = myProject.getBasePath();<NEW_LINE>if (projectBasePath != null) {<NEW_LINE>String projectBasedPa... | filenameMatcher = PATTERN_FILENAME.matcher(path); |
988,662 | public HtmlResponse delete(final EditForm form) {<NEW_LINE>verifyCrudMode(<MASK><NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asDetailsHtml);<NEW_LINE>verifyToken(this::asDetailsHtml);<NEW_LINE>final String id = form.id;<NEW_LINE>roleService.getRole(id).ifPresent(entity -> {<NEW_LINE>try {<NEW_LINE>roleServi... | form.crudMode, CrudMode.DETAILS); |
1,356,417 | private int run(PrioritySearcher<DBIDRef> priQuery, Relation<O> relation, Duration dur, MeanVariance mv, MeanVariance mvdist) {<NEW_LINE>int hash = 0;<NEW_LINE>final DBIDs sample = DBIDUtil.randomSample(relation.getDBIDs(), sampling, random);<NEW_LINE>FiniteProgress prog = LOG.isVeryVerbose() ? new FiniteProgress("kNN ... | put(knns.getKNNDistance()); |
157,224 | public static void convolveSmooth(final Kernel1D_F32 kernel, final float[] src, final float[] dst, final int length) {<NEW_LINE>int idx0 = kernel.offset;<NEW_LINE>int idx1 = length - kernel.width + kernel.offset;<NEW_LINE>// Convolve the inner array first where we don't need to worry about the border<NEW_LINE>for (int ... | int loc = i - kernel.offset; |
1,283,848 | // Show transaction statement.<NEW_LINE>private void handleShowTransaction() throws AnalysisException {<NEW_LINE>ShowTransactionStmt showStmt = (ShowTransactionStmt) stmt;<NEW_LINE>Database db = ctx.getCatalog().getDbOrAnalysisException(showStmt.getDbName());<NEW_LINE>TransactionStatus status = showStmt.getStatus();<NE... | Long txnId = showStmt.getTxnId(); |
1,087,396 | private static IpAccessList generateCrossZoneFilter(InterfaceOrZone fromZoneOrIface, InterfaceOrZone toZoneOrIface, Map<String, Policy> policies, Map<String, AclLine> convertedPolicies, String filename) {<NEW_LINE>checkArgument(fromZoneOrIface instanceof Interface || fromZoneOrIface instanceof Zone, String.format("Cann... | > lines = ImmutableList.builder(); |
1,742,167 | private RubyArray outputInfo(final ThreadContext context) {<NEW_LINE>final RubyArray result = context.runtime.newArray();<NEW_LINE>final IRubyObject outputs = <MASK><NEW_LINE>final Iterable<IRubyObject> outputIterable;<NEW_LINE>if (outputs instanceof Iterable) {<NEW_LINE>outputIterable = (Iterable<IRubyObject>) outputs... | pipeline.callMethod(context, "outputs"); |
1,680,766 | public void invokeSenderScript(ScriptWrapper script, HttpMessage msg, int initiator, HttpSender sender, boolean request) {<NEW_LINE>validateScriptType(script, TYPE_HTTP_SENDER);<NEW_LINE>Writer writer = getWriters(script);<NEW_LINE>try {<NEW_LINE>HttpSenderScript senderScript = this.getInterface(script, HttpSenderScrip... | handleScriptException(script, writer, e); |
698,227 | private void updateCatalogAfterCommitted(TransactionState transactionState, Database db) {<NEW_LINE>Set<Long> errorReplicaIds = transactionState.getErrorReplicas();<NEW_LINE>for (TableCommitInfo tableCommitInfo : transactionState.getIdToTableCommitInfos().values()) {<NEW_LINE>long tableId = tableCommitInfo.getTableId()... | OlapTable) db.getTable(tableId); |
1,692,879 | public void initialize(boolean parsingCompilationUnit) {<NEW_LINE>// positioning the parser for a new compilation unit<NEW_LINE>// avoiding stack reallocation and all that....<NEW_LINE>this.javadoc = null;<NEW_LINE>this.astPtr = -1;<NEW_LINE>this.astLengthPtr = -1;<NEW_LINE>this.expressionPtr = -1;<NEW_LINE>this.expres... | CompilerOptions.NonExternalizedString) != ProblemSeverities.Ignore; |
251,686 | public void endVisit(JsReturn x, JsContext ctx) {<NEW_LINE>if (outerFinallyBlock != null) {<NEW_LINE>// There is a finally block, so we need to set the early-exit flag<NEW_LINE>JsBinaryOperation asg = new JsBinaryOperation(x.getSourceInfo(), JsBinaryOperator.ASG, earlyExitRef(outerFinallyBlock), JsBooleanLiteral.get(tr... | getStatements().add(x); |
1,349,053 | public List<ColumnMetadata> extractColumnMetadata(TopicName topicName, SchemaInfo schemaInfo, PulsarColumnHandle.HandleKeyValueType handleKeyValueType) {<NEW_LINE>List<ColumnMetadata> columnMetadata;<NEW_LINE>String schemaJson = new String(schemaInfo.getSchema());<NEW_LINE>if (StringUtils.isBlank(schemaJson)) {<NEW_LIN... | topicName.toString() + " does not have a valid schema"); |
86,377 | void deleteSecret(final DeleteSecretForm form, final User user) throws DotSecurityException, DotDataException {<NEW_LINE>final String key = form.getKey();<NEW_LINE>if (!UtilMethods.isSet(key)) {<NEW_LINE>throw new IllegalArgumentException("Required param Key isn't set.");<NEW_LINE>}<NEW_LINE>final String siteId = form.... | appsAPI.getAppDescriptor(key, user); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.