idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
216,751 | private static void generateBOM(boolean isWebsphereLiberty, String version, File outputDir, Map<String, LibertyFeature> allFeatures, Constants.ArtifactType type) throws MavenRepoGeneratorException, IOException {<NEW_LINE>String groupId = isWebsphereLiberty ? Constants.WEBSPHERE_LIBERTY_FEATURES_GROUP_ID : Constants.OPE... | , Utils.getRepositorySubpath(coordinates)); |
1,715,018 | public static PresentationE fromJson(String presentationJson) {<NEW_LINE>if (StringUtils.isBlank(presentationJson)) {<NEW_LINE>logger.error("create PresentationE with JSON String failed, " + "the presentation JSON String is null");<NEW_LINE>throw new DataTypeCastException("the presentation JSON String is null");<NEW_LI... | (presentationString), PresentationE.class); |
1,483,488 | public void renderFaces(Tesselator tessellator, BufferBuilder bufferBuilder, double cx, double cy, double cz, float partialTick) {<NEW_LINE>if (shape.fa == 0.0)<NEW_LINE>return;<NEW_LINE>Vec3 v1 = shape.relativiseRender(client.<MASK><NEW_LINE>Vec3 v2 = shape.relativiseRender(client.level, shape.to, partialTick);<NEW_LI... | level, shape.from, partialTick); |
950,441 | private void runAssertionSubquery(RegressionEnvironment env, RegressionPath path) {<NEW_LINE>// test expression reuse<NEW_LINE>String epl = "@name('s0') expression q {" + " x => (select * from Win where intPrimitive = x.p00)" + "}" + "select " + "q(st0).where(x => theString = key0) as val0, " + "q(st0).where(x => theS... | = System.currentTimeMillis() - start; |
872,196 | private void validateFields(int line, boolean isConfig, FileTab fileTab) throws IOException, ClassNotFoundException {<NEW_LINE>List<String> relationalFieldList = fileTab.getFileFieldList().stream().filter(field -> !Strings.isNullOrEmpty(field.getSubImportField())).map(field -> field.getImportField().getName() + "." + f... | getName(), fileField, null); |
648,095 | public final void takeVideoSnapshot(@NonNull final VideoResult.Stub stub, @NonNull final File file) {<NEW_LINE>getOrchestrator().scheduleStateful("take video snapshot", CameraState.BIND, new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>LOG.i("takeVideoSnapshot:", "running. isTakingVid... | (getPreviewSurfaceSize(Reference.OUTPUT)); |
511,530 | public static List<VolumeResponse> createVolumeResponse(ResponseView view, VolumeJoinVO... volumes) {<NEW_LINE>Hashtable<Long, VolumeResponse> vrDataList = new Hashtable<Long, VolumeResponse>();<NEW_LINE>DecimalFormat df = new DecimalFormat("0.0%");<NEW_LINE>for (VolumeJoinVO vr : volumes) {<NEW_LINE>VolumeResponse vrD... | long psz = vs.getPhysicalSize(); |
1,614,712 | protected Map<String, Object> initializeCommandLineModel(InitializrMetadata metadata, String serviceUrl) {<NEW_LINE>Map<String, Object> model = new LinkedHashMap<>();<NEW_LINE>model.put("logo", LOGO);<NEW_LINE>model.put("serviceUrl", serviceUrl);<NEW_LINE>model.put("dependencies", generateDependencyTable(metadata));<NE... | String) parametersDescription.get(id); |
106,458 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.transaction.Synchronization#afterCompletion(int)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void afterCompletion(int status) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "afterCompletion : " + status + ... | Tr.exit(tc, "afterCompletion"); |
69,408 | public EdgeLabel readEdgeLabel(HugeGraph graph, BackendEntry backendEntry) {<NEW_LINE>if (backendEntry == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TableBackendEntry entry = this.convertEntry(backendEntry);<NEW_LINE>Number id = schemaColumn(entry, HugeKeys.ID);<NEW_LINE>String name = schemaColumn(entry, HugeKey... | (this.toIdArray(sortKeys)); |
156,072 | public static void renderSelections(ISelection[] selections) {<NEW_LINE>float opacity = settings.selectionOpacity.value;<NEW_LINE>boolean ignoreDepth = settings.renderSelectionIgnoreDepth.value;<NEW_LINE>float lineWidth = settings.selectionLineWidth.value;<NEW_LINE>if (!settings.renderSelection.value) {<NEW_LINE>return... | 1, 1, 1))); |
1,455,221 | public <R extends Record, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> MergeKeyStep13<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> mergeInto(Table<R> table, Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> fi... | field10, field11, field12, field13); |
200,806 | private static void checkUpdateServerResources(File sunResourcesXml, Hk2DeploymentManager dm) {<NEW_LINE>Map<String, String> changedData = new HashMap<String, String>();<NEW_LINE>List<TreeParser.Path> pathList = new ArrayList<TreeParser.Path>();<NEW_LINE>// NOI18N<NEW_LINE>ResourceFinder cpFinder = new ResourceFinder("... | allRemoteData = getResourceData("resources.*", dm); |
577,021 | private Result<TracePoint> splitResultIfNeeded(String agentRollupId, TraceQuery query, int limit, DelegateResultAction action) throws Exception {<NEW_LINE>TraceQueryPlan plan = getPlan(agentRollupId, query);<NEW_LINE>TraceQuery queryV09 = plan.queryV09();<NEW_LINE>TraceQuery queryPostV09 = plan.queryPostV09();<NEW_LINE... | TraceDaoImpl.applyLimitByDurationNanosAndThenSortByCaptureTime(tracePoints, limit); |
292,448 | public String revertToSnapshot(final Connection conn, final VM vmSnapshot, final String vmName, final String oldVmUuid, final Boolean snapshotMemory, final String hostUUID) throws Types.XenAPIException, XmlRpcException {<NEW_LINE>final String results = callHostPluginAsync(conn, "vmopsSnapshot", "revert_memory_snapshot"... | toString(), "hostUUID", hostUUID); |
562,062 | protected static void readConfig() {<NEW_LINE>send_peer_ids = COConfigurationManager.getBooleanParameter("Tracker Send Peer IDs");<NEW_LINE>max_peers_to_send = COConfigurationManager.getIntParameter("Tracker Max Peers Returned");<NEW_LINE>scrape_cache_period = COConfigurationManager.getIntParameter("Tracker Scrape Cach... | net = AENetworkClassifier.AT_NETWORKS[i]; |
141,697 | private void postProcessCaches() {<NEW_LINE>IClassPath classPath = analysisCache.getClassPath();<NEW_LINE>Map<ClassDescriptor, Object> classAnalysis = analysisCache.getClassAnalysis(ClassData.class);<NEW_LINE>if (classAnalysis == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Entry<ClassDescriptor, Object>> entrySet ... | <ClassDescriptor, Object>(classAnalysis); |
1,730,959 | public com.amazonaws.services.lambda.model.ServiceException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lambda.model.ServiceException serviceException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String... | lambda.model.ServiceException(null); |
164,843 | final GetWebhookResult executeGetWebhook(GetWebhookRequest getWebhookRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWebhookRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,655,288 | public Optional<DocumentLayoutDetailDescriptor.Builder> layoutDetail() {<NEW_LINE>final DocumentEntityDescriptor.Builder entityDescriptor = documentEntity();<NEW_LINE>logger.trace("Generating layout detail for {}", entityDescriptor);<NEW_LINE>// If the detail is never displayed then don't add it to layout<NEW_LINE>fina... | newRecordInputMode(entityDescriptor.getIncludedTabNewRecordInputMode()); |
91,595 | public static QueryResult queryExpr(FilterOperator operator, String database, String measurement, ServiceProvider serviceProvider, Map<String, Integer> fieldOrders, Long sessionId) throws AuthException {<NEW_LINE>if (operator == null) {<NEW_LINE>List<IExpression> <MASK><NEW_LINE>return queryByConditions(expressions, da... | expressions = new ArrayList<>(); |
1,744,000 | protected final void bindValues(SQLiteStatement stmt, Message entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>Long id = entity.getId();<NEW_LINE>if (id != null) {<NEW_LINE>stmt.bindLong(1, id);<NEW_LINE>}<NEW_LINE>String entityID = entity.getEntityID();<NEW_LINE>if (entityID != null) {<NEW_LINE>stmt.bindString(2, ent... | stmt.bindLong(7, threadId); |
1,230,104 | public XMLObject unmarshallMessage(InputStream messageStream) throws MessageDecodingException {<NEW_LINE>try {<NEW_LINE>Document messageDoc = parserPool.parse(messageStream);<NEW_LINE>Element messageElem = messageDoc.getDocumentElement();<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Resultant DOM message ... | Tr.debug(tc, "Message succesfully unmarshalled"); |
397,956 | public ComponentSelector desugarSelector(ComponentSelector selector) {<NEW_LINE>if (selector instanceof ModuleComponentSelector) {<NEW_LINE>ModuleComponentSelector module = (ModuleComponentSelector) selector;<NEW_LINE><MASK><NEW_LINE>if (!moduleAttributes.isEmpty()) {<NEW_LINE>ImmutableAttributes attributes = ((Attribu... | AttributeContainer moduleAttributes = module.getAttributes(); |
1,381,336 | public Void call() throws Exception {<NEW_LINE>if (log.isInfoEnabled())<NEW_LINE>log.info(<MASK><NEW_LINE>// returns once synchronous overflow is complete.<NEW_LINE>dataService.forceOverflow(true, /* immediate */<NEW_LINE>compactingMerge);<NEW_LINE>if (log.isInfoEnabled())<NEW_LINE>log.info("Synchronous overflow is don... | "dataService: " + dataService.getServiceName()); |
1,232,455 | final DeleteThingGroupResult executeDeleteThingGroup(DeleteThingGroupRequest deleteThingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteThingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
47,440 | // http://localhost:9000/aaa/asset?screen_name=loklak_app&id_str=123&file=image.jpg&data=<NEW_LINE>@Override<NEW_LINE>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>Query post = RemoteAccess.evaluate(request);<NEW_LINE>// manage DoS<NEW_LI... | m = RemoteAccess.getPostMap(request); |
1,107,518 | public Haplotype composeHaplotypeBasedOnReference(final int index, final int paddingSize, final ReferenceMultiSparkSource reference) {<NEW_LINE>Utils.nonNull(reference, "the input reference cannot be null");<NEW_LINE><MASK><NEW_LINE>ParamUtils.inRange(index, 0, 1, "the input allele index must be 0 or 1");<NEW_LINE>fina... | ParamUtils.isPositiveOrZero(paddingSize, "the input padding must be 0 or greater"); |
492,633 | public GetSystemTemplateRevisionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetSystemTemplateRevisionsResult getSystemTemplateRevisionsResult = new GetSystemTemplateRevisionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte... | JsonToken token = context.getCurrentToken(); |
1,849,374 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.formatter.ui.FormatterModifyTabPage#createOptions(com.aptana.formatter.ui.IFormatterControlManager,<NEW_LINE>* org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void createOptions(IFormatterControlManager manager, Compo... | JSFormatterConstants.INDENT_GROUP_BODY, Messages.JSFormatterIndentationTabPage_statementsWithinJSGroups); |
1,258,341 | private void _buildPramatiXML() throws Exception {<NEW_LINE>Map tableNames = new HashMap();<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.append("<?xml version=\"1.0\"?>\n");<NEW_LINE>sb.append("<!DOCTYPE pramati-j2ee-server PUBLIC \"-//Pramati Technologies //DTD Pramati J2ee Server 3.5 SP5//EN\" \"http://... | (Element) itr.next(); |
1,813,036 | public static void main(String[] args) {<NEW_LINE>EdgeWeightedGraph edgeWeightedGraph = new EdgeWeightedGraph(5);<NEW_LINE>edgeWeightedGraph.addEdge(new Edge<MASK><NEW_LINE>edgeWeightedGraph.addEdge(new Edge(0, 3, 0.5));<NEW_LINE>edgeWeightedGraph.addEdge(new Edge(1, 2, 0.12));<NEW_LINE>edgeWeightedGraph.addEdge(new Ed... | (0, 1, 0.42)); |
869,644 | void circuitBreakerOpenAndThenClose() {<NEW_LINE>CircuitBreakerConfig config = CircuitBreakerConfig.custom().slidingWindowType(SlidingWindowType.COUNT_BASED).slidingWindowSize(10).failureRateThreshold(25.0f).waitDurationInOpenState(Duration.ofSeconds(10)).permittedNumberOfCallsInHalfOpenState(4).build();<NEW_LINE>Circu... | SearchRequest("NYC", "LAX", "12/31/2020"); |
928,552 | private boolean isEqualToInitalRequestMethod(SipServletMessage message) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { _tuWrapper.getAppName(), _tuWrapper.getId() };<NEW_LINE>c_logger.traceEntry(this, " isEqualToInitalRequestMethod", params);<NEW_LINE>}<NEW_LINE>boolean isEqual = fals... | "_initialDialogMethod is null. Is dialog ? " + _tuWrapper.isTUDialog()); |
396,062 | protected FilterResults performFiltering(CharSequence constraint) {<NEW_LINE>FilterResults results = new FilterResults();<NEW_LINE>ArrayList<Label> filteredArrayList = new ArrayList<>();<NEW_LINE>if (labels == null) {<NEW_LINE>labels <MASK><NEW_LINE>}<NEW_LINE>if (constraint == null || constraint.length() == 0) {<NEW_L... | = new ArrayList<>(displayedLabels); |
1,021,035 | protected <T extends com.x.base.core.project.organization.Role> T convert(Business business, Role role, Class<T> clz) throws Exception {<NEW_LINE>T t = clz.newInstance();<NEW_LINE>t.setName(role.getName());<NEW_LINE>t.setDescription(role.getDescription());<NEW_LINE>t.setUnique(role.getUnique());<NEW_LINE>t.setDistingui... | group().pick(str); |
1,848,397 | private int doSerialTasksWithRate() throws Exception {<NEW_LINE>initTasksArray();<NEW_LINE>long delayStep = (perMin ? 60000 : 1000) / rate;<NEW_LINE>long nextStartTime = System.currentTimeMillis();<NEW_LINE>int count = 0;<NEW_LINE>final long t0 = System.currentTimeMillis();<NEW_LINE>for (int k = 0; (repetitions == REPE... | () - t0) / logByTimeMsec); |
144,074 | public boolean onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {<NEW_LINE>if (payPromise == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>switch(requestCode) {<NEW_LINE>case LOAD_PAYMENT_DATA_REQUEST_CODE:<NEW_LINE>switch(resultCode) {<NEW_LINE>case Activity.RESULT_OK:<NEW_LINE>Pa... | paymentData = PaymentData.getFromIntent(data); |
1,792,279 | public boolean checkNode(final NodeModel node) {<NEW_LINE>final NodeLinks <MASK><NEW_LINE>if (nodeLinks != null) {<NEW_LINE>for (final NodeLinkModel l : nodeLinks.getLinks()) {<NEW_LINE>if (!(l instanceof ConnectorModel)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (checkLink((ConnectorModel) l)) {<NEW_LINE>return true... | nodeLinks = NodeLinks.getLinkExtension(node); |
1,048,380 | public Builder mergeFrom(com.databricks.api.proto.mlflow.DatabricksArtifacts.GetCredentialsForRead.Response other) {<NEW_LINE>if (other == com.databricks.api.proto.mlflow.DatabricksArtifacts.GetCredentialsForRead.Response.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (credentialInfosBuilder_ == null) {<NEW_LI... | credentialInfosBuilder_.addAllMessages(other.credentialInfos_); |
1,731,546 | protected void poll() throws IOException {<NEW_LINE>boolean downloaded = AwsUtils.downloadFileIfChanged(config.workS3BucketName, config.workS3BucketPrefix, file, 0);<NEW_LINE>if (downloaded || tagGroups == null) {<NEW_LINE><MASK><NEW_LINE>DataInputStream in = new DataInputStream(new FileInputStream(file));<NEW_LINE>try... | logger.info("trying to read from " + file); |
724,147 | public static void main(String[] args) throws Exception {<NEW_LINE>BasicConfigurator.configure();<NEW_LINE>initTracing();<NEW_LINE>initStatsExporter();<NEW_LINE>// Create http client that will trace requests. By default trace context is propagated using<NEW_LINE>// w3c TraceContext propagator.<NEW_LINE>// To use B3 pro... | SslContextFactory(), null, null); |
1,569,763 | private void saveLog(final SaveMode saveMode) {<NEW_LINE>try (ContextLogger cLog = new ContextLogger("LogCacheActivity.saveLog(mode=%s)", saveMode)) {<NEW_LINE>final OfflineLogEntry logEntry = getEntryFromView();<NEW_LINE>final boolean logChanged = logEntry.hasSaveRelevantChanges(lastSavedState);<NEW_LINE>final boolean... | add("log=%s", logEntry.log); |
732,422 | public static Object toPrimitiveFromForeign(Object tObj, TruffleString hint) {<NEW_LINE>assert isForeignObject(tObj);<NEW_LINE>InteropLibrary interop = InteropLibrary.<MASK><NEW_LINE>if (interop.isNull(tObj)) {<NEW_LINE>return Null.instance;<NEW_LINE>} else if (JSInteropUtil.isBoxedPrimitive(tObj, interop)) {<NEW_LINE>... | getFactory().getUncached(tObj); |
1,709,969 | public org.mlflow.api.proto.Service.ListArtifacts.Response buildPartial() {<NEW_LINE>org.mlflow.api.proto.Service.ListArtifacts.Response result = new org.mlflow.api.proto.Service.ListArtifacts.Response(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x0... | util.Collections.unmodifiableList(files_); |
1,651,117 | public Map.Entry<String, Integer> convert(String input) throws OptionsParsingException {<NEW_LINE>int pos = input.indexOf('=');<NEW_LINE>if (pos == 0 || input.length() == 0) {<NEW_LINE>throw new OptionsParsingException("Specify either 'value' or 'name=value', where 'value' is an integer");<NEW_LINE>} else if (pos < 0) ... | "'" + value + "' is not an int", e); |
579,644 | // -----------------------------------------------------<NEW_LINE>// Actually Crud<NEW_LINE>// -------------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE })<NEW_LINE>public HtmlResponse create(final CreateForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.CREATE);<NEW_LINE>validate(form, messages -> {<NEW_LINE>... | (GLOBAL), this::asEditHtml); |
1,693,217 | final PutStorageConfigurationResult executePutStorageConfiguration(PutStorageConfigurationRequest putStorageConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putStorageConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
447,508 | public void populateItem(final Item<RepositoryCommit> commitItem) {<NEW_LINE>final RepositoryCommit commit = commitItem.getModelObject();<NEW_LINE>// author gravatar<NEW_LINE>commitItem.add(new AvatarImage("commitAuthor", commit.getAuthorIdent(), null, 16, false));<NEW_LINE>// merge icon<NEW_LINE>if (commit.getParentCo... | commitHash, commit.getName()); |
716,300 | public PutEmailIdentityDkimSigningAttributesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutEmailIdentityDkimSigningAttributesResult putEmailIdentityDkimSigningAttributesResult = new PutEmailIdentityDkimSigningAttributesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<... | )).unmarshall(context)); |
1,693,876 | final DescribeLocationHdfsResult executeDescribeLocationHdfs(DescribeLocationHdfsRequest describeLocationHdfsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLocationHdfsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,167,088 | public boolean copyDatastoreFile(String srcFilePath, ManagedObjectReference morSrcDc, ManagedObjectReference morDestDs, String destFilePath, ManagedObjectReference morDestDc, boolean forceOverwrite) throws Exception {<NEW_LINE>String srcDsName = getName();<NEW_LINE>DatastoreMO destDsMo = new DatastoreMO(_context, morDe... | .getTaskFailureInfo(_context, morTask)); |
1,613,260 | public Body visitBody(Body body) {<NEW_LINE>if (body instanceof IntervalElim) {<NEW_LINE>IntervalElim intervalElim = (IntervalElim) body;<NEW_LINE>List<IntervalElim.CasePair> cases = intervalElim.getCases();<NEW_LINE>for (int i = 0; i < cases.size(); i++) {<NEW_LINE>Pair<Expression, Expression> <MASK><NEW_LINE>cases.se... | pair = cases.get(i); |
1,609,732 | public Mono<Response<Flux<ByteBuffer>>> whatIfAtManagementGroupScopeWithResponseAsync(String groupId, String deploymentName, ScopedDeploymentWhatIf parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and... | error(new IllegalArgumentException("Parameter groupId is required and cannot be null.")); |
532,087 | public FreeTrialAccountInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FreeTrialAccountInfo freeTrialAccountInfo = new FreeTrialAccountInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
1,698,104 | public void startExecutor() throws InvalidTopologyException {<NEW_LINE>LOG.log(Level.INFO, "Preparing evaluator for running executor-id: {0}", heronExecutorId);<NEW_LINE>String[] executorCmd = getExecutorCommand();<NEW_LINE>processTarget = Thread.currentThread();<NEW_LINE>// Log the working directory, this will make pe... | String> executorEnvironment = getEnvironment(cwdPath); |
1,261,078 | public static void bufferedToGray(BufferedImage src, float[] data, int dstStartIndex, int dstStride) {<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>if (src.getType() == BufferedImage.TYPE_BYTE_GRAY) {<NEW_LINE>// If the buffered image is a gray scale image there is a ... | src.getRGB(x, y); |
981,590 | public synchronized void createTweet(Status status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>long id = status.getId();<NEW_LINE>if (status.isRetweet()) {<NEW_LINE>originalName = status.getUser().... | put(SavedTweetSQLiteHelper.COLUMN_TWEET_ID, id); |
1,294,240 | final DeleteFHIRDatastoreResult executeDeleteFHIRDatastore(DeleteFHIRDatastoreRequest deleteFHIRDatastoreRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFHIRDatastoreRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
1,226,270 | private Version computeMinCompatVersion() {<NEW_LINE>if (major == 6) {<NEW_LINE>// force the minimum compatibility for version 6 to 5.6 since we don't reference version 5 anymore<NEW_LINE>return Version.fromId(5060099);<NEW_LINE>} else if (major == 7) {<NEW_LINE>// force the minimum compatibility for version 7 to 6.8 s... | DeclaredVersionsHolder.DECLARED_VERSIONS.get(i); |
636,451 | public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance) {<NEW_LINE>if (relation.size() < k) {<NEW_LINE>throw new AbortException("Database has less than k objects.");<NEW_LINE>}<NEW_LINE>// Ugly cast; but better than code duplication.<NEW_LINE>@SuppressWar... | rel.getDBIDs(), distQ); |
1,135,827 | public List<FieldChange> cleanup(BibEntry entry) {<NEW_LINE>List<LinkedFile> fileList = entry.getFiles();<NEW_LINE>List<LinkedFile> <MASK><NEW_LINE>boolean changed = false;<NEW_LINE>for (LinkedFile fileEntry : fileList) {<NEW_LINE>String oldFileName = fileEntry.getLink();<NEW_LINE>String newFileName = null;<NEW_LINE>if... | newFileList = new ArrayList<>(); |
1,186,349 | public boolean touchUp(float x, float y, int pointer, int button) {<NEW_LINE>if (pointer > 1)<NEW_LINE>return false;<NEW_LINE>// check if we are still tapping.<NEW_LINE>if (inTapRectangle && !isWithinTapRectangle(x, y, tapRectangleCenterX, tapRectangleCenterY))<NEW_LINE>inTapRectangle = false;<NEW_LINE>boolean wasPanni... | getVelocityY(), button) || handled; |
706,802 | private void loadNode509() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NonExclusiveLimitAlarmType_LowLowState_Id, new QualifiedName(0, "Id"), new LocalizedText("en", "Id"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identi... | .expanded(), true)); |
1,307,047 | public // update delete menu<NEW_LINE>void removeTable() {<NEW_LINE>// NOI18N<NEW_LINE>Log.getLogger().entering("QueryBuilderGraphFrame", "removeTable");<NEW_LINE>QueryBuilder.showBusyCursor(true);<NEW_LINE>// Important: suppress bogus regeneration of the text query<NEW_LINE>_queryBuilder._updateText = false;<NEW_LINE>... | getQueryBuilderSqlTextArea().setRunQueryMenuEnabled(false); |
1,819,252 | // ActivityLifecycleCallbacks<NEW_LINE>@SuppressLint("LongLogTag")<NEW_LINE>@Override<NEW_LINE>public void onActivityResumed(@NonNull Activity activity) {<NEW_LINE>if (mIsInBackground) {<NEW_LINE>AnalyticsTracker.track(AnalyticsTracker.Stat.APPLICATION_OPENED, AnalyticsTracker.CATEGORY_USER, "application_opened");<NEW_... | SYNC, "Started tag bucket (" + activitySimpleName + ")"); |
174,390 | public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>ResourceLoader resourceLoader = new DefaultResourceLoader(context.getClassLoader());<NEW_LINE>ClassLoader classLoader = context.getClassLoader();<NEW_LINE>Class<?> applicationClass;<NEW_LINE>String applicationClassName = context.getApplicati... | SourceFiles.fromJavaFile(javaFile))); |
640,152 | private void loadAliases() {<NEW_LINE>String currentDisplayName = txtDisplayName.getText();<NEW_LINE>String currentAlias = cboAlias.getSelectedItem() == null ? null : cboAlias<MASK><NEW_LINE>try {<NEW_LINE>cboAlias.removeAllItems();<NEW_LINE>Enumeration<String> e = keyStore.aliases();<NEW_LINE>while (e.hasMoreElements(... | .getSelectedItem().toString(); |
1,587,026 | private AWSCredentials credentials(String tag) {<NEW_LINE>SecretProvider awsSecrets = context.getSecrets().getSecrets("aws");<NEW_LINE>SecretProvider emrSecrets = awsSecrets.getSecrets("emr");<NEW_LINE>String accessKeyId = emrSecrets.getSecretOptional("access_key_id").or(() -> awsSecrets.getSecret("access_key_id"));<NE... | = new BasicAWSCredentials(accessKeyId, secretAccessKey); |
1,493,205 | public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId(context.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setPageSize<MASK><NEW_LINE>describeInstan... | (context.integerValue("DescribeInstancesResponse.PageSize")); |
90,696 | static void dfs(int u) {<NEW_LINE>dfs_num[u] <MASK><NEW_LINE>for (int v : adjList[u]) if (dfs_num[v] == 0) {<NEW_LINE>parent[v] = u;<NEW_LINE>if (u == root)<NEW_LINE>++rootChildren;<NEW_LINE>dfs(v);<NEW_LINE>if (dfs_low[v] >= dfs_num[u])<NEW_LINE>artPoints[u] = true;<NEW_LINE>if (dfs_low[v] > dfs_num[u])<NEW_LINE>Syste... | = dfs_low[u] = ++counter; |
336,625 | public void shutDown(Runnable shutDownCompleteHandler) {<NEW_LINE>log.info("NetworkNode shutdown started");<NEW_LINE>if (!shutDownInProgress) {<NEW_LINE>shutDownInProgress = true;<NEW_LINE>if (server != null) {<NEW_LINE>server.shutDown();<NEW_LINE>server = null;<NEW_LINE>}<NEW_LINE>Set<MASK><NEW_LINE>int numConnections... | <Connection> allConnections = getAllConnections(); |
2,382 | public int testClockwise() {<NEW_LINE>if (points.size() < 3) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>final int size = points.size();<NEW_LINE>// Count the number of positive and negative oriented angles<NEW_LINE>int c = 0;<NEW_LINE>// TODO: faster when using an iterator?<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_L... | .get(j)[1]; |
521,921 | private boolean executeCachedSql(String sql, int flags, String @Nullable [] columnNames) throws SQLException {<NEW_LINE>PreferQueryMode preferQueryMode = connection.getPreferQueryMode();<NEW_LINE>// Simple statements should not replace ?, ? with $1, $2<NEW_LINE>boolean shouldUseParameterized = false;<NEW_LINE>QueryExec... | cachedQuery = queryExecutor.createQueryByKey(key); |
1,135,099 | public KeyPair generateKeyPair() {<NEW_LINE>if (!initialised) {<NEW_LINE>throw new IllegalStateException("EC Key Pair Generator not initialised");<NEW_LINE>}<NEW_LINE>AsymmetricCipherKeyPair pair = engine.generateKeyPair();<NEW_LINE>ECPublicKeyParameters pub = <MASK><NEW_LINE>ECPrivateKeyParameters priv = (ECPrivateKey... | (ECPublicKeyParameters) pair.getPublic(); |
1,577,129 | private void threadSequence(final SequenceForKmers seqForKmers) {<NEW_LINE>final int startPos = findStart(seqForKmers);<NEW_LINE>if (startPos == -1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MultiDeBruijnVertex startingVertex = getOrCreateKmerVertex(seqForKmers.sequence, startPos);<NEW_LINE>// increase the counts of... | seqForKmers.count, seqForKmers.isRef); |
533,256 | public void visitModuleDef(JCModuleDecl tree) {<NEW_LINE>toLeftMargin();<NEW_LINE>printAnnotations(tree.mods.annotations);<NEW_LINE>if (tree.getModuleType() == ModuleTree.ModuleKind.OPEN) {<NEW_LINE>print("open ");<NEW_LINE>}<NEW_LINE>print("module ");<NEW_LINE>print(fullName(tree.qualId));<NEW_LINE>int old = cs.indent... | bcol += (indentSize >> 1); |
624,128 | final DeleteBrowserSettingsResult executeDeleteBrowserSettings(DeleteBrowserSettingsRequest deleteBrowserSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBrowserSettingsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,303,498 | protected void throwable(BodyWriter w, Throwable throwable, boolean isCause) {<NEW_LINE>if (throwable != null) {<NEW_LINE>if (isCause) {<NEW_LINE>w.escape("Caused by: ");<NEW_LINE>}<NEW_LINE>w.escapeln(throwable.toString());<NEW_LINE>for (StackTraceElement ste : throwable.getStackTrace()) {<NEW_LINE><MASK><NEW_LINE>if ... | String className = ste.getClassName(); |
673,354 | private byte[] encodeBlock(ArrayList<Point> list) {<NEW_LINE>// Quantification<NEW_LINE><MASK><NEW_LINE>int[] index = new int[m];<NEW_LINE>long[] value = new long[m];<NEW_LINE>double eps = Math.pow(2, beta);<NEW_LINE>for (int i = 0; i < m; i++) {<NEW_LINE>Point p = list.get(i);<NEW_LINE>index[i] = p.getIndex();<NEW_LIN... | int m = list.size(); |
1,702,262 | public final void mouseReleased(MouseEvent e) {<NEW_LINE>if (e.getSource() == textView && SwingUtilities.isLeftMouseButton(e)) {<NEW_LINE>int pos = textView.<MASK><NEW_LINE>if (pos != -1 && pos == lastPressedPos) {<NEW_LINE>int line = textView.getDocument().getDefaultRootElement().getElementIndex(pos);<NEW_LINE>if (lin... | viewToModel(e.getPoint()); |
390,226 | public void addSyntheticFieldWriteAccessMethod(SyntheticMethodBinding methodBinding) {<NEW_LINE>generateMethodInfoHeader(methodBinding);<NEW_LINE>int methodAttributeOffset = this.contentsOffset;<NEW_LINE>// this will add exception attribute, synthetic attribute, deprecated attribute,...<NEW_LINE>int attributeNumber = g... | this.codeStream.init(this); |
393,822 | public static TextEdit generateAccessors(IType type, AccessorField[] accessors, boolean generateComments, Range cursor, IProgressMonitor monitor) {<NEW_LINE>if (type == null || type.getCompilationUnit() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ASTNode declarationNode = null;<NEW_LINE>Compilat... | JavaLanguageServerPlugin.logException("Failed to generate the accessors.", e); |
1,719,391 | protected void dynamicUpdateBrokerConfig(int podId, Admin ac, KafkaBrokerConfigurationDiff configurationDiff, KafkaBrokerLoggingConfigurationDiff logDiff) throws ForceableProblem, InterruptedException {<NEW_LINE>Map<ConfigResource, Collection<AlterConfigOp>> updatedConfig = new HashMap<>(2);<NEW_LINE>updatedConfig.put(... | infoCr(reconciliation, "Dynamic reconfiguration for broker {} was successful.", podId); |
799,225 | private void commandStos(Instruction instruction, int flags) {<NEW_LINE>int addressSize;<NEW_LINE>int rDI, rCX;<NEW_LINE>switch(instruction.getOp0Kind()) {<NEW_LINE>case OpKind.MEMORY_ESDI:<NEW_LINE>addressSize = CodeSize.CODE16;<NEW_LINE>rDI = Register.DI;<NEW_LINE>rCX = Register.CX;<NEW_LINE>break;<NEW_LINE>case OpKi... | ] = (byte) OpAccess.COND_READ; |
1,575,042 | final RenderUiTemplateResult executeRenderUiTemplate(RenderUiTemplateRequest renderUiTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(renderUiTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "RenderUiTemplate"); |
283,699 | private void buildMetatype() throws InvalidPropertyException, UnavailableException, ResourceAdapterInternalException, ClassNotFoundException {<NEW_LINE>MetaGenInstance instance = config.getInstance();<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(this, tc, "Building metat... | setIbmuiGroupOrder(ibmuiGroups.getGroupOrder()); |
1,490,782 | public MediaContainerDetectionResult probe(AudioReference reference, SeekableInputStream inputStream) throws IOException {<NEW_LINE>if (!checkNextBytes(inputStream, M3U_HEADER_TAG) && !checkNextBytes(inputStream, M3U_ENTRY_TAG)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>log.debug("Track {} is an M3U playlist file.", ... | hlsStreamUrl = HlsStreamSegmentUrlProvider.findHlsEntryUrl(lines); |
1,663,046 | public static void main(String[] args) throws Exception {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption(option(0, "l", OPTION_LOCAL, "Run the topology in local mode."));<NEW_LINE>options.addOption(option(0, "r", OPTION_REMOTE, "Deploy the topology to a remote cluster."));<NEW_LINE>options.addOpti... | , OPTION_DRY_RUN, "Do not run or deploy the topology. Just build, validate, " + "and print information about the topology.")); |
187,902 | private void warnAboutPerformanceOnUnqualifiedResources(String theParamName, RequestDetails theRequest, @Nullable List<String> theCandidateTargetTypes) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("This search uses an unqualified resource(a parameter in a chain without a resource type... | Collectors.joining(" or "))); |
1,641,137 | public boolean performOk() {<NEW_LINE>getPreferenceStore().setValue(BACKUP_ON_SAVE, fBackupOnSaveButton.getSelection());<NEW_LINE>getPreferenceStore().setValue(OPEN_DIAGRAMS_ON_LOAD, fOpenDiagramsOnLoadButton.getSelection());<NEW_LINE>getPreferenceStore().setValue(MRU_MAX, fMRUSizeSpinner.getSelection());<NEW_LINE>getP... | HINTS_BROWSER_EXTERNAL_HOSTS_ENABLED, fEnableExternalHostsHintsButton.getSelection()); |
897,632 | private void unsollicitedUpdate(String data) {<NEW_LINE>// Example of<NEW_LINE>// I=00000000000000000000000000000000&O=10000000000000000000000000000000&\<NEW_LINE>// A0=0&A1=0&A2=0&A3=0&A4=0&A5=0&A6=0&A7=0&A8=0&A9=0&A10=0&A11=0&A12=0&A13=0&A14=0&A15=0&C1=47&C2=0&C3=0&C4=0&C5=0&C6=0&C7=0&C8=0<NEW_LINE>final Pattern VALI... | logger.debug("Command : " + completeCommand); |
1,718,429 | // @see https://gist.github.com/viperwarp/2beb6bbefcc268dee7ad<NEW_LINE>public static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException {<NEW_LINE>WritableMap map = new WritableNativeMap();<NEW_LINE>Iterator<String> iterator = jsonObject.keys();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Stri... | (key, (String) value); |
60,691 | public Event copyToAsync(CommandQueue queue, Image dest, long[] srcOrigin, long[] destOrigin, long[] region) {<NEW_LINE>if (srcOrigin.length != 3 || destOrigin.length != 3 || region.length != 3) {<NEW_LINE>throw new IllegalArgumentException("origin and region must both be arrays of length 3");<NEW_LINE>}<NEW_LINE>Utils... | [0].get(0); |
914,332 | private void delete(Table table) throws IOException {<NEW_LINE>final byte[] rowToBeDeleted = Bytes.toBytes("RowToBeDeleted");<NEW_LINE>System.out.println("\n*** DELETE ~Insert data and then delete it~ ***");<NEW_LINE>System.out.println("Inserting a data to be deleted later.");<NEW_LINE>Put put = new Put(rowToBeDeleted)... | family1.getBytes(), qualifier1); |
654,515 | public FlipperObject toFlipperObject(@Nullable RoundingParams roundingParams) {<NEW_LINE>if (roundingParams == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FlipperObject.Builder optionsJson = new FlipperObject.Builder();<NEW_LINE>optionsJson.put("borderWidth", roundingParams.getBorderWidth());<NEW_LINE>optionsJson... | , roundingParams.getOverlayColor())); |
1,854,343 | public PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE>ArgChecker.notNull(yValues, "yValues");<NEW_LINE>ArgChecker.isTrue(xValues.length == yValues.length | xValues.length + 2 == yValues.length, "(xValues length = yValues ... | yValues[i]), "yValues containing Infinity"); |
356,073 | private void update(CopyOnWriteList<UIUpdatable> updateables, boolean is_visible) {<NEW_LINE>long start = 0;<NEW_LINE>Map<UIUpdatable, Long> mapTimeMap = DEBUG_TIMER ? new HashMap<UIUpdatable, Long>() : null;<NEW_LINE>Display display = Utils.getDisplay();<NEW_LINE>if (display == null || display.isDisposed()) {<NEW_LINE... | updateable, new Long(diff)); |
1,790,400 | public void store(DomRepresentation mailRep) throws IOException {<NEW_LINE>// Parses and normalizes the DOM document<NEW_LINE>Document doc = mailRep.getDocument();<NEW_LINE>Element mailElt = doc.getDocumentElement();<NEW_LINE>Element statusElt = (Element) mailElt.getElementsByTagName("status").item(0);<NEW_LINE>Element... | ("subject").item(0); |
1,357,556 | final GetQueryStateResult executeGetQueryState(GetQueryStateRequest getQueryStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQueryStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.