idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
121,590 | public void buildMenu(Menu menuBrowse) {<NEW_LINE>final MenuItem itemBrowsePublic = new MenuItem(menuBrowse, SWT.PUSH);<NEW_LINE>itemBrowsePublic.setText(MessageText.getString("label.public") + "...");<NEW_LINE>itemBrowsePublic.addListener(SWT.Selection, new ListenerDMTask(dms, false) {<NEW_LINE><NEW_LINE>@Override<NEW... | Messages.setLanguageText(itemBrowseURL, "label.copy.url.to.clip"); |
1,142,719 | protected <T> T doSave(String collectionName, T objectToSave, MongoWriter<T> writer) {<NEW_LINE>objectToSave = maybeEmitEvent(new BeforeConvertEvent<>(objectToSave<MASK><NEW_LINE>objectToSave = maybeCallBeforeConvert(objectToSave, collectionName);<NEW_LINE>AdaptibleEntity<T> entity = operations.forEntity(objectToSave, ... | , collectionName)).getSource(); |
666,070 | private CompletableFuture<Stream> newRequest(long streamId, HeadersFrame frame, Stream.Client.Listener listener) {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("new request stream #{} with {} on {}", streamId, frame, this);<NEW_LINE>ProtocolSession session = getProtocolSession();<NEW_LINE>QuicStreamEndPoint en... | frame.isLast(), true); |
566,247 | protected void filterTree(String text) {<NEW_LINE>filterText = text;<NEW_LINE>if (filterDelayTimer != null) {<NEW_LINE>filterDelayTimer.destroy();<NEW_LINE>}<NEW_LINE>filterDelayTimer = new Timer("Filter");<NEW_LINE>filterDelayTimer.addEvent(SystemTime.getCurrentTime() + 300, event -> {<NEW_LINE>filterDelayTimer.destro... | foundItems = new ArrayList<>(); |
1,162,372 | static IllegalStateException ensureVersionCompatibility(Version remoteVersion, Version currentVersion, boolean isHandshake) {<NEW_LINE>// for handshakes we are compatible with N-2 since otherwise we can't figure out our initial version<NEW_LINE>// since we are compatible with N-1 and N+1 so we always send our minCompat... | remoteVersion + "] minimal compatible version is: [" + minCompatibilityVersion + "]"); |
149,489 | public void runMayThrow() throws QueryProcessException, StorageEngineException, IOException, InterruptedException, QueryFilterOptimizationException, MetadataException, TException, SQLException {<NEW_LINE>// construct logical operator<NEW_LINE>final String sql = generateSQL();<NEW_LINE>Operator operator = LogicalGenerat... | continuousQueryPlan.getContinuousQueryName() + ": deduplicated paths empty."); |
1,193,295 | final ListVirtualRoutersResult executeListVirtualRouters(ListVirtualRoutersRequest listVirtualRoutersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVirtualRoutersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
910,480 | public boolean onOptionsItemSelected(@NonNull MenuItem item) {<NEW_LINE>if (item.getItemId() == R.id.action_search_subscribed_thing_listing_activity) {<NEW_LINE>item.setVisible(false);<NEW_LINE>searchEditText.setVisibility(View.VISIBLE);<NEW_LINE>searchEditText.requestFocus();<NEW_LINE>if (searchEditText.requestFocus()... | View view = this.getCurrentFocus(); |
1,087,993 | public AutoScaleVmGroupResponse createAutoScaleVmGroupResponse(AutoScaleVmGroup vmGroup) {<NEW_LINE>AutoScaleVmGroupResponse response = new AutoScaleVmGroupResponse();<NEW_LINE>response.setId(vmGroup.getUuid());<NEW_LINE>response.setMinMembers(vmGroup.getMinMembers());<NEW_LINE>response.setMaxMembers(vmGroup.getMaxMemb... | findFirewallRuleById(vmGroup.getLoadBalancerId()); |
1,843,601 | public void doRelockObject(Object obj, Object lockData) {<NEW_LINE>Target_java_util_concurrent_locks_ReentrantLock lock = SubstrateUtil.cast(lockData, Target_java_util_concurrent_locks_ReentrantLock.class);<NEW_LINE>Target_java_util_concurrent_locks_ReentrantLock_Sync lSync = lock.sync;<NEW_LINE>Target_java_util_concur... | Thread currentThread = Thread.currentThread(); |
595,180 | public void addConsent(RealmModel realm, String userId, UserConsentModel consent) {<NEW_LINE>createIndex(realm, userId);<NEW_LINE>String clientId = consent.getClient().getId();<NEW_LINE>FederatedUserConsentEntity consentEntity = getGrantedConsentEntity(userId, clientId, LockModeType.NONE);<NEW_LINE>if (consentEntity !=... | StorageId clientStorageId = new StorageId(clientId); |
1,611,579 | protected static double computeH(DBIDRef ignore, DoubleDBIDListIter it, double[] p, double mbeta) {<NEW_LINE>double sumP = 0.;<NEW_LINE>// Skip point "i", break loop in two:<NEW_LINE>it.seek(0);<NEW_LINE>for (int j = 0; it.valid(); j++, it.advance()) {<NEW_LINE>if (DBIDUtil.equal(ignore, it)) {<NEW_LINE>p[j] = 0;<NEW_L... | .doubleValue() * mbeta)); |
397,489 | public static void updateErrorMessageForVerifyNoMoreInteractions(AssertionError errorToUpdate) {<NEW_LINE>String verifyNoMoreInteractionsInvocation = null;<NEW_LINE>StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();<NEW_LINE>for (int i = stackTrace.length - 1; i >= 0; i--) {<NEW_LINE>final StackTr... | replace(startOfVerifyNoMoreInteractionsInvocation, endOfVerifyNoMoreInteractionsInvocation, verifyNoMoreInteractionsInvocation); |
1,327,583 | public synchronized void addVideo(HttpMetadata metadata, String file, String info) {<NEW_LINE>VideoPopupItem item = new VideoPopupItem();<NEW_LINE>item.setMetadata(metadata);<NEW_LINE>item.setInfo(info);<NEW_LINE>item.setFile(file);<NEW_LINE>item.setTimestamp(System.currentTimeMillis());<NEW_LINE>if (addItem(item)) {<N... | ), getScaledInt(30))); |
1,437,227 | public Set<byte[]> zRevRangeByLex(byte[] key, Range range, org.springframework.data.redis.connection.Limit limit) {<NEW_LINE>Assert.notNull(key, "Key must not be null!");<NEW_LINE>Assert.notNull(range, "Range for ZREVRANGEBYLEX must not be null!");<NEW_LINE>Assert.notNull(limit, "Limit must not be null! Use Limit.unlim... | ).get(LinkedHashSet::new); |
1,297,347 | private static Float convertStringToFloat(String numberString) {<NEW_LINE>// KTorrent has issues with formatting its numeric values as strings. It does not always<NEW_LINE>// adhere to the localization and never indicates which formatting it will use. We therefore<NEW_LINE>// have to assume an American style format unl... | .replace(",", ".")); |
1,704,206 | private List<DalGroup> sortGroups(List<DalGroup> groups, String userNo) throws SQLException {<NEW_LINE>List<DalGroup> result = new ArrayList<DalGroup>(groups.size());<NEW_LINE>LoginUser user = BeanGetter.getDaoOfLoginUser().getUserByNo(userNo);<NEW_LINE>List<UserGroup> joinedGroups = BeanGetter.getDalUserGroupDao().get... | > ite = groups.iterator(); |
1,357,648 | private List<Group> resolveSequence(Class<?> group, List<Class<?>> processedSequences) {<NEW_LINE>if (processedSequences.contains(group)) {<NEW_LINE>throw new GroupDefinitionException("Cyclic dependency in groups definition");<NEW_LINE>} else {<NEW_LINE>processedSequences.add(group);<NEW_LINE>}<NEW_LINE>List<Group> res... | tmpSequence = resolveSequence(clazz, processedSequences); |
1,406,073 | public Answer sendTo(final Long dcId, final HypervisorType type, final Command cmd) {<NEW_LINE>final List<ClusterVO> clusters = _clusterDao.listByDcHyType(<MASK><NEW_LINE>int retry = 0;<NEW_LINE>for (final ClusterVO cluster : clusters) {<NEW_LINE>final List<HostVO> hosts = _resourceMgr.listAllUpAndEnabledHosts(Host.Typ... | dcId, type.toString()); |
915,350 | public XContentBuilder toXContent(XContentBuilder builder, Params builderParams) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>String contentType = options == null ? <MASK><NEW_LINE>if (type == ScriptType.INLINE) {<NEW_LINE>if (contentType != null && builder.contentType().mediaType().equals(contentType)... | null : options.get(CONTENT_TYPE_OPTION); |
1,402,074 | static <T> ConstructorBindingImpl<T> create(InjectorImpl injector, Key<T> key, InjectionPoint constructorInjector, Object source, Scoping scoping, Errors errors, boolean failIfNotLinked, boolean atInjectRequired) throws ErrorsException {<NEW_LINE>int numErrors = errors.size();<NEW_LINE>Class<?> rawType = constructorInj... | key.getTypeLiteral(), atInjectRequired); |
848,464 | public final ChainableArrayContext chainableArray() throws RecognitionException {<NEW_LINE>ChainableArrayContext _localctx = new ChainableArrayContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 468, RULE_chainableArray);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>se... | _errHandler.recover(this, re); |
1,754,376 | public SchemaConfig doVisitorParse(SchemaConfig schema, RouteResultset rrs, SQLStatement stmt, ServerSchemaStatVisitor visitor, ShardingService service, boolean isExplain) throws SQLException {<NEW_LINE>String sql = rrs.getStatement();<NEW_LINE>vm = new ViewMeta(schema.getName(), sql, ProxyMeta.getInstance().getTmManag... | checkSchema(vm.getSchema()); |
1,824,344 | public double lentz(double... args) {<NEW_LINE>double f_n = getB(0, args);<NEW_LINE>if (f_n == 0.0)<NEW_LINE>f_n = 1e-30;<NEW_LINE>double c_n, c_0 = f_n;<NEW_LINE>double d_n, d_0 = 0;<NEW_LINE>double delta = 0;<NEW_LINE>int j = 0;<NEW_LINE>while (Math.abs(delta - 1) > 1e-15) {<NEW_LINE>j++;<NEW_LINE>d_n = getB(j, args)... | getA(j, args) / c_0; |
1,427,949 | public int dsyev(char jobz, char uplo, int N, INDArray A, INDArray R) {<NEW_LINE>DoublePointer dp = new DoublePointer(1);<NEW_LINE>int status = Nd4j.getBlasLapackDelegator().LAPACKE_dsyev_work(getColumnOrder(A), (byte) jobz, (byte) uplo, N, (DoublePointer) A.data().addressPointer(), getLda(A), (DoublePointer) R.data().... | ()).getFirst()); |
54,609 | public Status checkIndex(List<String> onlySegments) throws IOException {<NEW_LINE>ExecutorService executorService = null;<NEW_LINE>// if threadCount == 1, then no executor is created and use the main thread to do index checking<NEW_LINE>// sequentially<NEW_LINE>if (threadCount > 1) {<NEW_LINE>executorService = Executor... | threadCount, new NamedThreadFactory("async-check-index")); |
608,125 | protected void substitutedUserChanged(ValueChangeEvent<User> event) {<NEW_LINE>UserSessionSource uss = beanLocator.get(UserSessionSource.NAME);<NEW_LINE>User newUser = event.getValue();<NEW_LINE>UserSession userSession = uss.getUserSession();<NEW_LINE>if (userSession == null) {<NEW_LINE>throw new RuntimeException("No u... | () : userSession.getSubstitutedUser(); |
649,285 | private void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException {<NEW_LINE>SecurityContextHolder.clearContext();<NEW_LINE>// TODO<NEW_LINE>// The authorization server MAY return an HTTP 401 (Unauthorized) status code<NEW_LINE>// to ind... | write(errorResponse, null, httpResponse); |
1,328,714 | private SimpleMatrix randomTransformMatrix() {<NEW_LINE>SimpleMatrix matrix;<NEW_LINE>switch(op.trainOptions.transformMatrixType) {<NEW_LINE>case DIAGONAL:<NEW_LINE>matrix = SimpleMatrix.random_DDRM(numRows, numCols, -1.0 / Math.sqrt((double) numCols * 100.0), 1.0 / Math.sqrt((double) numCols * 100.0), rand).plus(ident... | rand.nextInt(3) - 1; |
630,739 | static // [START securitycenter_update_finding_source_properties]<NEW_LINE>Finding updateFinding(FindingName findingName) {<NEW_LINE>try (SecurityCenterClient client = SecurityCenterClient.create()) {<NEW_LINE>// FindingName findingName = FindingName.of(/*organization=*/"123234324",<NEW_LINE>// /*source=*/"423432321", ... | Instant eventTime = Instant.now(); |
1,144,440 | private void registerVarTranslations() {<NEW_LINE>assert Thread.holdsLock(this);<NEW_LINE>if (varTranslationsRegistered) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>varTranslationsRegistered = true;<NEW_LINE>SourceElementsQuery seq = Lookup.getDefault().lookup(SourceElementsQuery.class);<NEW_LINE>if (seq != null) {<NEW_LINE... | seq.getVarsAt(source, offset); |
1,760,097 | static AwsClient createAwsClient(AwsConfig awsConfig) {<NEW_LINE>Environment environment = new Environment();<NEW_LINE>AwsMetadataApi metadataApi = new AwsMetadataApi(awsConfig);<NEW_LINE>String region = resolveRegion(awsConfig, metadataApi, environment);<NEW_LINE>validateRegion(region);<NEW_LINE>AwsCredentialsProvider... | ecsApi = createEcsApi(awsConfig, region); |
60,885 | public static MailSettings fromUrl(String url) {<NEW_LINE>MailSettings settings = new MailSettings();<NEW_LINE>// Do not continue if given an invalid URL.<NEW_LINE>if ((url == null) || (url.length() <= 0)) {<NEW_LINE>return settings;<NEW_LINE>}<NEW_LINE>// Extract e-mail settings from the given "mailto:" URL.<NEW_LINE>... | setSubject(mailToConverter.getSubject()); |
1,755,874 | public void testTransactionContext(String contextSvcName, PrintWriter out) throws Exception {<NEW_LINE>BundleContext bundleContext = FrameworkUtil.getBundle(WSContextService.class).getBundleContext();<NEW_LINE>ServiceReference<TransactionManager> tranMgrRef = bundleContext.getServiceReference(TransactionManager.class);... | Transaction transaction = tranMgr.getTransaction(); |
61,348 | public static List<Granularity> granularitiesFinerThan(final Granularity gran0) {<NEW_LINE>final List<Granularity> retVal = new ArrayList<>();<NEW_LINE>final DateTime origin = (gran0 instanceof PeriodGranularity) ? ((PeriodGranularity) gran0).getOrigin() : null;<NEW_LINE>final DateTimeZone tz = (gran0 instanceof Period... | gran.create(origin, tz); |
1,408,624 | final GetImageResult executeGetImage(GetImageRequest getImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetImage"); |
1,441,286 | private void checkIncludesExistence(File scriptDir) throws IOException {<NEW_LINE>File incFolder = new File(scriptDir, "inc");<NEW_LINE>if (!incFolder.exists()) {<NEW_LINE>if (!incFolder.mkdirs()) {<NEW_LINE>throw new IOException("Can't create inc folder '" + incFolder.getAbsolutePath() + "'");<NEW_LINE>}<NEW_LINE>for ... | IOUtils.copyStream(fis, fos); |
701,467 | public void onNewLeader(final long clusterSessionId, final long leadershipTermId, final int leaderMemberId, final String ingressEndpoints) {<NEW_LINE>if (clusterSessionId != this.clusterSessionId) {<NEW_LINE>throw new ClusterException("invalid clusterSessionId=" + clusterSessionId + " expected " + this.clusterSessionId... | clusterSessionId, leadershipTermId, leaderMemberId, ingressEndpoints); |
814,054 | private JComponent buildWsdlContentTab() {<NEW_LINE>partTabs = new JTabbedPane();<NEW_LINE>partTabs.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);<NEW_LINE>rootNode = new DefaultMutableTreeNode(iface.getName());<NEW_LINE>treeModel = new DefaultTreeModel(rootNode);<NEW_LINE>tree = new JTree(treeModel);<NEW_LINE>tree... | Object userObject = treeNode.getUserObject(); |
387,928 | public PTuple run(VirtualFrame frame, @Cached GetClassNode getClassNode, @Cached GetCaughtExceptionNode getCaughtExceptionNode, @Cached GetTracebackNode getTracebackNode) {<NEW_LINE>PException currentException = getCaughtExceptionNode.execute(frame);<NEW_LINE>assert currentException != PException.NO_EXCEPTION;<NEW_LINE... | LazyTraceback lazyTraceback = currentException.getTraceback(); |
1,310,433 | protected String doInBackground(Void... params) {<NEW_LINE>boolean releaseLock = false;<NEW_LINE>try {<NEW_LINE>if (json_req == null)<NEW_LINE>return "Error creating the request!";<NEW_LINE>// check sdcard state<NEW_LINE>File root;<NEW_LINE>try {<NEW_LINE>root = AnyplaceUtils.getRadioMapFoler(ctx, mBuildID, mFloor_numb... | "Error Message: " + json.getString("message"); |
265,555 | private void storeVirtualMachineStatsInMemory(VmStatsEntry statsForCurrentIteration) {<NEW_LINE>VmStatsEntry statsInMemory = (VmStatsEntry) _VmStats.get(statsForCurrentIteration.getVmId());<NEW_LINE>boolean vmStatsIncrementMetrics = BooleanUtils.toBoolean(VM_STATS_INCREMENT_METRICS_IN_MEMORY.value());<NEW_LINE>if (stat... | setCPUUtilization(statsForCurrentIteration.getCPUUtilization()); |
838,554 | public Spec process(StringCharReader reader, String contextPath) {<NEW_LINE>SpecCentered.Alignment alignment = SpecCentered.Alignment.ALL;<NEW_LINE>SpecCentered.Location location = null;<NEW_LINE>String word = reader.readWord();<NEW_LINE>if (word.isEmpty()) {<NEW_LINE>throw new SyntaxException("Missing location and ali... | , location).withErrorRate(errorRate); |
832,384 | public List<GrokPattern> saveAll(Collection<GrokPattern> patterns, ImportStrategy importStrategy) throws ValidationException {<NEW_LINE>if (importStrategy == ABORT_ON_CONFLICT) {<NEW_LINE>for (GrokPattern pattern : loadAll()) {<NEW_LINE>final boolean patternExists = patterns.stream().anyMatch(p -> p.name().equals(patte... | collect(Collectors.toList()); |
1,398,163 | public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String integ... | format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); |
151,855 | public static DescribeVulListResponse unmarshall(DescribeVulListResponse describeVulListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVulListResponse.setRequestId(_ctx.stringValue("DescribeVulListResponse.RequestId"));<NEW_LINE>describeVulListResponse.setCurrentPage(_ctx.integerValue("DescribeVulListResponse.C... | ("DescribeVulListResponse.VulRecords[" + i + "].Name")); |
1,108,939 | public Request<DeleteSecurityProfileRequest> marshall(DeleteSecurityProfileRequest deleteSecurityProfileRequest) {<NEW_LINE>if (deleteSecurityProfileRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteSecurityProfileRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteSecurit... | (deleteSecurityProfileRequest.getSecurityProfileId())); |
1,573,313 | public PbBody.Builder serializeBody(Body argBody) {<NEW_LINE>PbBody.Builder builder = PbBody.newBuilder();<NEW_LINE>if (signer != null) {<NEW_LINE>Long id = signer.getTag(argBody);<NEW_LINE>if (id != null) {<NEW_LINE>builder.setTag(id);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>switch(argBody.getType()) {<NEW_LINE>case DYNAMIC:<N... | builder.setType(PbBodyType.DYNAMIC); |
1,834,045 | public <T> List<Pair<String, T>> fetchTop(int size, Type type) throws FailStoreException {<NEW_LINE>Snapshot snapshot = db.getSnapshot();<NEW_LINE>DBIterator iterator = null;<NEW_LINE>try {<NEW_LINE>List<Pair<String, T>> list = new ArrayList<Pair<String, T>>(size);<NEW_LINE>ReadOptions options = new ReadOptions();<NEW_... | > entry = iterator.peekNext(); |
171,508 | private void initSelectorTypes() {<NEW_LINE>Collection<Selector> selectors = NacosServiceLoader.load(Selector.class);<NEW_LINE>for (Selector selector : selectors) {<NEW_LINE>if (selectorTypes.containsKey(selector.getType())) {<NEW_LINE>Loggers.SRV_LOG.warn(<MASK><NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Class<? extends S... | "[SelectorManager] init Selectors, Selector type {} has value, ignore it.", selector.getType()); |
1,716,442 | // Submit tasks that attempt to get their own result while they are running. The executor should detect this and immediately raise InterruptedException<NEW_LINE>// to prevent a hang or lengthy timeout. This also tests the onSubmit callback, which is one convenient way for a task to obtain its own Future.<NEW_LINE>@Test... | toString(), result instanceof InterruptedException); |
715,049 | public void addPages() {<NEW_LINE>// Custom code begin<NEW_LINE>domainModelPage = new OpenDDSDiagramDomainModelWizardPage("DomainModel");<NEW_LINE>domainModelPage.setTitle("OpenDDS SDK Model");<NEW_LINE>domainModelPage.setDescription("Create a new OpenDDS SDK model");<NEW_LINE>addPage(domainModelPage);<NEW_LINE>// Cust... | domainModelFilePage.setTitle(Messages.OpenDDSCreationWizard_DomainModelFilePageTitle); |
1,642,339 | final CreateProductResult executeCreateProduct(CreateProductRequest createProductRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProductRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,825,074 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); |
549,951 | protected void checkFile(@NotNull GoFile file, @NotNull ProblemsHolder problemsHolder) {<NEW_LINE>if (!GoTestFinder.isTestFile(file))<NEW_LINE>return;<NEW_LINE>for (GoFunctionDeclaration function : file.getFunctions()) {<NEW_LINE>GoTestFunctionType type = GoTestFunctionType.fromName(function.getName());<NEW_LINE>if (ty... | GoSignature signature = function.getSignature(); |
779,272 | private RtpParameters.Encoding mapToEncoding(Map<String, Object> parameters) {<NEW_LINE>RtpParameters.Encoding encoding = new RtpParameters.Encoding((String) parameters.get<MASK><NEW_LINE>if (parameters.get("active") != null) {<NEW_LINE>encoding.active = (Boolean) parameters.get("active");<NEW_LINE>}<NEW_LINE>if (param... | ("rid"), true, 1.0); |
1,525,138 | public WebSession authenticate(SessionManagementMethod sessionManagementMethod, AuthenticationCredentials credentials, User user) {<NEW_LINE>// Check proper type<NEW_LINE>if (!(credentials instanceof ManualAuthenticationCredentials)) {<NEW_LINE>LogManager.getLogger(ManualAuthenticationMethod.class).error("Manual authen... | addCookie(v.getValue()); |
857,768 | public void renderTo(MethodDoc methodDoc, Element parent) {<NEW_LINE>Document document = parent.getOwnerDocument();<NEW_LINE>Element section = document.createElement("section");<NEW_LINE>parent.appendChild(section);<NEW_LINE>section.setAttribute("id", methodDoc.getId());<NEW_LINE>section.setAttribute("role", "detail");... | (document.createTextNode("(")); |
1,279,200 | private static MPrintFormat copy(Properties ctx, int from_AD_PrintFormat_ID, int to_AD_PrintFormat_ID, int to_Client_ID) {<NEW_LINE>s_log.info("From AD_PrintFormat_ID=" + from_AD_PrintFormat_ID + ", To AD_PrintFormat_ID=" + to_AD_PrintFormat_ID + ", To Client_ID=" + to_Client_ID);<NEW_LINE>if (from_AD_PrintFormat_ID ==... | " " + to.hashCode()); |
606,893 | public boolean execute(final OHttpRequest iRequest, OHttpResponse iResponse) throws Exception {<NEW_LINE>String[] urlParts = checkSyntax(iRequest.getUrl(), 4, "Syntax error: property/<database>/<class-name>/<property-name>");<NEW_LINE>iRequest.getData().commandInfo = "Delete property";<NEW_LINE>iRequest.getData().comma... | .getClass(urlParts[2]); |
1,768,915 | public static Tuples scalar(IntVar[] VARS, final int[] COEFFS, IntVar SCALAR, final int SCALAR_COEFF) {<NEW_LINE>Tuples left = generateTuples(TupleValidator.TRUE, true, VARS);<NEW_LINE>Tuples tuples = new Tuples(true);<NEW_LINE>int n = VARS.length;<NEW_LINE>for (int[] tleft : left.tuples) {<NEW_LINE>int right = 0;<NEW_... | = new int[n + 1]; |
489,672 | public TypecheckingResult toResult(CheckTypeVisitor typechecker) {<NEW_LINE>if (myParameters.isEmpty()) {<NEW_LINE>return new TypecheckingResult(getCoreDefCall(), myResultType);<NEW_LINE>}<NEW_LINE>List<SingleDependentLink> parameters = new ArrayList<>();<NEW_LINE>ExprSubstitution substitution = new ExprSubstitution();... | add(link.getName()); |
1,541,392 | public static int validate(String... argv) throws InterruptedException {<NEW_LINE>if (argv.length < 1) {<NEW_LINE>printHelp("Target not specified.");<NEW_LINE>return -2;<NEW_LINE>}<NEW_LINE>String command = argv[0];<NEW_LINE>String name = null;<NEW_LINE>String[] args;<NEW_LINE>int argsLength = 0;<NEW_LINE>// Find all n... | conf.getString(PropertyKey.MASTER_MOUNT_TABLE_ROOT_UFS); |
988,933 | public void run(RegressionEnvironment env) {<NEW_LINE>String soda = "@Name('create dataflow full')\n" + "create dataflow DFFull\n" + "create map schema ABC1 as (col1 int, col2 int),\n" + "create map schema ABC2 as (col1 int, col2 int),\n" + "MyOperatorOne(instream.one) -> outstream.one {}\n" + "MyOperatorTwo(instream.t... | model = env.eplToModel(soda); |
92,621 | private static BlockInputDecoder createForStruct(StandardStructObjectInspector structInspector, RowType rowType) {<NEW_LINE>List<? extends StructField> structFields = structInspector.getAllStructFieldRefs();<NEW_LINE>List<RowType.Field> rowFields = rowType.getFields();<NEW_LINE>checkArgument(rowFields.size(<MASK><NEW_L... | ) == structFields.size()); |
1,642,124 | final DisassociateWirelessDeviceFromThingResult executeDisassociateWirelessDeviceFromThing(DisassociateWirelessDeviceFromThingRequest disassociateWirelessDeviceFromThingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateWirelessDeviceFromThingRequest);<NEW_LINE>AWSRequestMetrics ... | false), new DisassociateWirelessDeviceFromThingResultJsonUnmarshaller()); |
1,277,458 | private Single<FilterableStreamingHttpConnection> createConnection(final Channel channel, final ConnectionObserver connectionObserver, final ReadOnlyTcpClientConfig tcpConfig) {<NEW_LINE>return new AlpnChannelSingle(channel, new TcpClientChannelInitializer(tcpConfig, connectionObserver), false).flatMap(protocol -> {<NE... | new IllegalStateException("Unknown ALPN protocol negotiated: " + protocol)); |
873,347 | public static void main(String[] args) throws IOException {<NEW_LINE>// TODO Use args for all parameters<NEW_LINE>// Load map.<NEW_LINE>MapDataStore mapData = new MapFile(DEFAULT_MAP_PATH);<NEW_LINE>// Assign tile.<NEW_LINE>final int ty = MercatorProjection.latitudeToTileY(LAT, ZOOM);<NEW_LINE>final int tx = MercatorPr... | Thread t = new Thread(rtf); |
357,779 | static RegistriesConfig initFromEnvironmentOrNull(Map<String, String> map) {<NEW_LINE>final String envRegistries = map.get(QUARKUS_REGISTRIES);<NEW_LINE>if (envRegistries == null || envRegistries.isBlank()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>RegistriesConfigImpl.Builder <MASK><NEW_LINE>for (String registryId :... | registriesConfigBuilder = new RegistriesConfigImpl.Builder(); |
1,117,942 | public boolean isEquivalentTo(@Nonnull OrderEntry other) {<NEW_LINE>LOGGER.assertTrue(this instanceof LibraryOrderEntry);<NEW_LINE>LibraryOrderEntry libraryOrderEntry1 = (LibraryOrderEntry) this;<NEW_LINE>LibraryOrderEntry libraryOrderEntry2 = (LibraryOrderEntry) other;<NEW_LINE>boolean equal = Comparing.equal(libraryO... | ), libraryOrderEntry2.getLibraryLevel()); |
4,047 | // Set or reset the changeable features of component for syntax style<NEW_LINE>private void initializeSyntaxStyleChangeables() {<NEW_LINE>for (int count = 0; count < samples.length; count++) {<NEW_LINE>int i = syntaxStyleIndex[count];<NEW_LINE>samples[count].setFont(previewFont);<NEW_LINE>samples[count].setForeground(i... | [i].getColor()); |
94,414 | public void paintInstance(InstancePainter painter) {<NEW_LINE>painter.drawBounds();<NEW_LINE>painter.drawLabel();<NEW_LINE>painter.drawPort(<MASK><NEW_LINE>Graphics2D g2 = (Graphics2D) painter.getGraphics();<NEW_LINE>Location loc = painter.getLocation();<NEW_LINE>Font f = g2.getFont();<NEW_LINE>g2.setFont(StdAttr.DEFAU... | 0, "Reset", Direction.EAST); |
1,273,355 | public boolean compare(String filterTypeOperator) {<NEW_LINE>boolean defaultResult = true, result = defaultResult, resultPart1 = true, resultPart2 = true;<NEW_LINE>try {<NEW_LINE>initValues();<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new JRRuntimeException(e);<NEW_LINE>}<NEW_LINE>boolean validComparison = compar... | .format(compareTo), compareToClass); |
1,353,178 | // findAvailableDefaultActionsBySchemes.<NEW_LINE>@GET<NEW_LINE>@Path("/initialactions/contenttype/{contentTypeId}")<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response findInitialAvailableActionsByContentType(@Context final HttpS... | (actions)).build(); |
628,920 | protected ByteBuffer control(EPID caller, int command, ByteBuffer cmd) throws Pausable {<NEW_LINE>switch(command) {<NEW_LINE>case INFLATE_INIT:<NEW_LINE>{<NEW_LINE>this.inflater = new Inflater();<NEW_LINE>this.inflater.inflateInit(true);<NEW_LINE>return reply_ok();<NEW_LINE>}<NEW_LINE>case INFLATE_INIT2:<NEW_LINE>{<NEW... | deflater.deflateParams(level, strategy); |
652,927 | public Size apply(MethodVisitor methodVisitor, Context implementationContext, MethodDescription instrumentedMethod) {<NEW_LINE>methodVisitor.visitMethodInsn(Opcodes.INVOKESTATIC, REFLECTION_FACTORY_INTERNAL_NAME, GET_REFLECTION_FACTORY_METHOD_NAME, GET_REFLECTION_FACTORY_METHOD_DESCRIPTOR, false);<NEW_LINE>methodVisito... | REFLECTION_FACTORY_INTERNAL_NAME, NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_NAME, NEW_CONSTRUCTOR_FOR_SERIALIZATION_METHOD_DESCRIPTOR, false); |
853,442 | /* (non-Javadoc)<NEW_LINE>* @see javax.jms.StreamMessage#readString()<NEW_LINE>*/<NEW_LINE>public String readString() throws JMSException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "readString");<NEW_LINE>Object obj = getNextField("readString");<NEW_LINE>S... | obj, "", "String", tc); |
1,759,783 | private void findInterfacesMethods(char[] selector, TypeBinding[] typeArgTypes, TypeBinding[] argTypes, ReferenceBinding receiverType, ReferenceBinding[] itsInterfaces, Scope scope, ObjectVector methodsFound, boolean onlyStaticMethods, boolean exactMatch, InvocationSite invocationSite, Scope invocationScope, boolean im... | ] methods = currentType.availableMethods(); |
822,818 | /*<NEW_LINE>* Serialize string. Need to take care of <code>null</code> value since<NEW_LINE>* {@link DataOutput#writeUTF(String)} does not handle it.<NEW_LINE>*/<NEW_LINE>private static void writeString(String str, DataOutput writer) throws IOException {<NEW_LINE>if (str == null) {<NEW_LINE>writer.writeByte(0);<NEW_LIN... | = (i + 1) << 15; |
814,960 | private static Object parseColorHSLIncreaseDecrease(int hslIndex, boolean increase, List<String> params, Function<String, String> resolver, boolean reportError) {<NEW_LINE>String colorStr = params.get(0);<NEW_LINE>int amount = parsePercentage(params.get(1));<NEW_LINE>boolean relative = false;<NEW_LINE>boolean autoInver... | function, derived, resolver, reportError); |
1,594,189 | final ListPipelinesResult executeListPipelines(ListPipelinesRequest listPipelinesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPipelinesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
872,238 | public BaseColumnChange addPositionChange(String srcName, String dsrName, ColumnPositionChange.ColumnPositionType orderType) {<NEW_LINE>Integer srcId = findIdByFullName(srcName);<NEW_LINE>Option<Integer> dsrIdOpt = dsrName.isEmpty() ? Option.empty() : Option.of(findIdByFullName(dsrName));<NEW_LINE>Integer srcParentId =... | HOODIE_META_COLUMNS.size() - 2); |
368,972 | final ListInstanceStorageConfigsResult executeListInstanceStorageConfigs(ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInstanceStorageConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | invoke(request, responseHandler, executionContext); |
17,522 | void initCartesian(MotionKeyPosition c, MotionPaths startTimePoint, MotionPaths endTimePoint) {<NEW_LINE>float position = c.mFramePosition / 100f;<NEW_LINE>MotionPaths point = this;<NEW_LINE>point.mTime = position;<NEW_LINE>mDrawPath = c.mDrawPath;<NEW_LINE>float scaleWidth = Float.isNaN(c.mPercentWidth) ? position : c... | mPercentHeight) ? position : c.mPercentHeight; |
1,275,829 | protected Query doToQuery(QueryShardContext context) throws IOException {<NEW_LINE>if (termsLookup != null || supplier != null) {<NEW_LINE>throw new UnsupportedOperationException("query must be rewritten first");<NEW_LINE>}<NEW_LINE>if (values == null || values.isEmpty()) {<NEW_LINE>return Queries.newMatchNoDocsQuery("... | return new TermInSetQuery(fieldName, filterValues); |
932,274 | public void trigger(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) {<NEW_LINE>if (!PlanItemInstanceState.ACTIVE.equals(planItemInstance.getState())) {<NEW_LINE>throw new FlowableIllegalStateException("Can only trigger a plan item that is in the ACTIVE state");<NEW_LINE>}<NEW_LINE>if (planItemIn... | findById(planItemInstance.getCaseInstanceId()); |
1,618,667 | public List<String> expendGroupRoleToRole(List<String> groupList, List<String> roleList) throws Exception {<NEW_LINE>List<String> groupIds = new ArrayList<>();<NEW_LINE>List<String> expendGroupIds = new ArrayList<>();<NEW_LINE>List<String> <MASK><NEW_LINE>if (ListTools.isNotEmpty(groupList)) {<NEW_LINE>for (String s : ... | roleIds = new ArrayList<>(); |
1,085,287 | public void marshall(AutoScalingGroupRecommendationOption autoScalingGroupRecommendationOption, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (autoScalingGroupRecommendationOption == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot... | autoScalingGroupRecommendationOption.getRank(), RANK_BINDING); |
1,087,500 | private void populateTargetMaps(Map<Object, Integer> targetCounts, Map<Object, String> targetSources) {<NEW_LINE>for (FieldMapping field : parsedFields) {<NEW_LINE>Object outputColumn = field.getIndex() == -1 ? field.getFieldName() : NormalizedString.valueOf("Column #" + field.getIndex());<NEW_LINE>Integer count = targ... | targetCounts.put(outputColumn, count); |
1,046,466 | // database lock should be held.<NEW_LINE>public void chooseSrcReplica(Map<Long, PathSlot> backendsWorkingSlots) throws SchedException {<NEW_LINE>List<Replica> candidates = Lists.newArrayList();<NEW_LINE>for (Replica replica : tablet.getReplicas()) {<NEW_LINE>if (replica.isBad()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LIN... | SchedException(Status.UNRECOVERABLE, "unable to find source replica"); |
1,625,415 | private ContentChannel putDocument(HttpRequest request, DocumentPath path, ResponseHandler rawHandler) {<NEW_LINE>ResponseHandler handler = new MeasuringResponseHandler(rawHandler, com.yahoo.documentapi.metrics.DocumentOperationType.UPDATE, clock.instant());<NEW_LINE>return new ForwardingContentChannel(in -> {<NEW_LINE... | ).ifPresent(update::setCreateIfNonExistent); |
1,319,131 | public static TransferDeviceInstanceResponse unmarshall(TransferDeviceInstanceResponse transferDeviceInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>transferDeviceInstanceResponse.setRequestId(_ctx.stringValue("TransferDeviceInstanceResponse.RequestId"));<NEW_LINE>transferDeviceInstanceResponse.setSuccess(_ctx.b... | (_ctx.stringValue("TransferDeviceInstanceResponse.ErrorMessage")); |
256,400 | /* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.target.iterator.spi.TargetPanelProvider#storeSettings(org.openide.loaders.TemplateWizard)<NEW_LINE>*/<NEW_LINE>public void storeSettings(TargetChooserPanel<FileType> panel) {<NEW_LINE>if (isFacelets()) {<NEW_LINE>Preferences preferences = ProjectUtils.getPreferences... | getUIManager().isSegment()); |
771,989 | private void recalculateDependencies(final String var) {<NEW_LINE>final VariableState state = Objects.requireNonNull(get(var));<NEW_LINE>final Set<String> newNeeds;<NEW_LINE>if (state.formula == null) {<NEW_LINE>newNeeds = Collections.emptySet();<NEW_LINE>} else {<NEW_LINE>newNeeds = state.formula.getNeededVariables();... | state.needs.addAll(newNeeds); |
1,543,771 | private Map<String, Object> writeMapInternal(Map<?, ?> source, Map<String, Object> sink, TypeInformation<?> propertyType) {<NEW_LINE>for (Map.Entry<?, ?> entry : source.entrySet()) {<NEW_LINE>Object key = entry.getKey();<NEW_LINE>Object value = entry.getValue();<NEW_LINE>if (isSimpleType(key.getClass())) {<NEW_LINE>Str... | .getMapValueType() : ClassTypeInformation.OBJECT; |
114,403 | private MethodTree genJAXPParseInputSourceMethod(TreeMaker make) {<NEW_LINE>// create the body<NEW_LINE>StringBuffer sb = new StringBuffer("{");<NEW_LINE>sb.<MASK><NEW_LINE>sb.append("}\n");<NEW_LINE>// method params<NEW_LINE>Tree tree = make.Identifier(SAX_INPUT_SOURCE);<NEW_LINE>VariableTree par1 = make.Variable(make... | append("\n" + M_PARSE + "(input, this);\n"); |
1,140,395 | private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Unit unit = business.unit().<MASK><NEW_LINE>if (null != unit) {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(UnitAttribute.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Criteri... | pick(wi.getUnit()); |
891,249 | public NameResolutionCollection resolveName(String nameToResolve, Iterable<FolderId> parentFolderIds, ResolveNameSearchLocation searchScope, boolean returnContactDetails, PropertySet contactDataPropertySet) throws Exception {<NEW_LINE>if (contactDataPropertySet != null) {<NEW_LINE>EwsUtilities.validateMethodVersion(thi... | getResponseAtIndex(0).getResolutions(); |
588,928 | private void drawMarkers(GraphicsWrap g) {<NEW_LINE>RectangleWrap field = g.getClipBounds();<NEW_LINE>if (mTickPositions == null) {<NEW_LINE>drawImplicitMarker(g);<NEW_LINE>} else {<NEW_LINE>drawExplicitMarkers(g);<NEW_LINE>}<NEW_LINE>// arrow<NEW_LINE>float[] arowheadPos = { plotSheet.xToGraphic(Math.min(plotSheet.get... | fm.stringWidth(this.name); |
430,133 | public void channelRead0(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {<NEW_LINE>if (HttpUtil.is100ContinueExpected(req)) {<NEW_LINE>ctx.write(new DefaultFullHttpResponse(HTTP_1_1, CONTINUE, ctx.alloc().buffer(0)));<NEW_LINE>}<NEW_LINE>boolean keepAlive = HttpUtil.isKeepAlive(req);<NEW_LINE>ByteBuf ... | ).set(CONTENT_TYPE, "text/plain; charset=UTF-8"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.