idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
88,423 | public ListElasticsearchInstanceTypesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListElasticsearchInstanceTypesResult listElasticsearchInstanceTypesResult = new ListElasticsearchInstanceTypesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int... | String currentParentElement = context.getCurrentParentElement(); |
1,023,014 | final CreateSolutionVersionResult executeCreateSolutionVersion(CreateSolutionVersionRequest createSolutionVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSolutionVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSolutionVersion"); |
1,187,765 | final StartExperimentResult executeStartExperiment(StartExperimentRequest startExperimentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startExperimentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.SERVICE_ID, "fis"); |
348,856 | static Fix createSuppressWarningsFix(CompilationInfo compilationInfo, TreePath treePath, String... keys) {<NEW_LINE><MASK><NEW_LINE>Parameters.notNull("treePath", treePath);<NEW_LINE>Parameters.notNull("keys", keys);<NEW_LINE>if (keys.length == 0) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IllegalArgumentException("key mu... | Parameters.notNull("compilationInfo", compilationInfo); |
77,899 | public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled type = env.compile("@name('s0') @public @buseventtype create schema MyEvent(p string)");<NEW_LINE>EPCompiled selectMyEvent = env.compile("@name('s0') select * from MyEvent", new RegressionPath<MASK><NEW_LINE>EPCompiled selectSB = env.compile("@name('s0') ... | ().add(type)); |
356,443 | public void addTriple(@Name("subject") String subject, @Name("predicate") String predicate, @Name("object") String object, @Name("isLiteral") Boolean isLiteral, @Name("literalType") String literalType, @Name("literalLang") String literalLang, @Name(value = "sspo", defaultValue = "null") List<String> sspo) {<NEW_LINE>Re... | sspo.get(2))); |
1,745,345 | protected void load(String fileName, boolean tryMemoryMapping) throws IOException, BufferUnderflowException, MaryConfigurationException, NullPointerException {<NEW_LINE>requireNonNull(fileName, "filename is null");<NEW_LINE>RandomAccessFile file = new RandomAccessFile(fileName, "r");<NEW_LINE>FileChannel fc = file.getC... | || fileChannel != null && mappedBB == null; |
1,040,518 | private synchronized Optional<InternalNode> tryAcquireNode(NodeRequirements requirements) {<NEW_LINE>NodeSelector nodeSelector = nodeSelectorCache.computeIfAbsent(requirements.getCatalogName(), catalogName -> nodeScheduler.createNodeSelector(session, catalogName));<NEW_LINE>List<InternalNode> nodes = nodeSelector.allNo... | null ? 1 : value + 1); |
637,540 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " <clusterId> <masterUsername> <masterUserPassword> \n\n" + "Where:\n" + " clusterId - the id of the cluster to create. \n" + " masterUsername - the master user name. \n" + " masterUserPassword - the password that cor... | System.out.println(USAGE); |
616,777 | int process(SharpStream out, SharpStream... sources) throws IOException {<NEW_LINE>// check if the subtitle is already in srt and copy, this should never happen<NEW_LINE>String format = getArgumentAt(0, null);<NEW_LINE>boolean ignoreEmptyFrames = getArgumentAt(1, "true").equals("true");<NEW_LINE>if (format == null || f... | e(TAG, "subtitle parse failed", err); |
1,258,419 | private Conflict registerConflict(Collection<K> targets, K replacedBy) {<NEW_LINE>assert !targets.isEmpty();<NEW_LINE>// replacement candidates are the only important candidates<NEW_LINE>Collection<? extends T> candidates = elements.get(replacedBy);<NEW_LINE>assert candidates != null;<NEW_LINE>Set<K> participants = new... | c.participants.addAll(participants); |
336,515 | private I_C_Invoice_Candidate createCand(final Properties ctx, final I_C_Flatrate_Term term, final I_C_Flatrate_DataEntry dataEntry, final int productId, final BigDecimal priceActual, final String trxName) {<NEW_LINE>final I_C_Invoice_Candidate newCand = InterfaceWrapperHelper.create(ctx, I_C_Invoice_Candidate.class, t... | -> ContractLocationHelper.extractBillToLocationId(term)); |
11,377 | private static <K, V> LoadingCache<K, V> buildCache(OptionalLong expiresAfterWriteMillis, OptionalLong refreshMillis, Optional<Executor> refreshExecutor, long maximumSize, StatsRecording statsRecording, com.google.common.base.Function<K, V> loader) {<NEW_LINE>CacheLoader<K, V> cacheLoader = CacheLoader.from(loader);<NE... | -> new IllegalArgumentException("Executor not provided"))); |
1,404,702 | public void updateReservation(String reservationId, CustomerName customerName, String email, String billingAddressCompany, String billingAddressLine1, String billingAddressLine2, String billingAddressZip, String billingAddressCity, String billingAddressState, String vatCountryCode, String customerReference, String vatN... | billingAddressCity, billingAddressState, vatCountryCode, locale); |
1,263,217 | protected void lcsEqualMatching(MappingStore mappings, Tree src, Tree dst) {<NEW_LINE>List<Tree> unmappedSrcChildren = new ArrayList<>();<NEW_LINE>for (Tree c : src.getChildren()) if (!mappings.isSrcMapped(c))<NEW_LINE>unmappedSrcChildren.add(c);<NEW_LINE>List<Tree> unmappedDstChildren = new ArrayList<>();<NEW_LINE>for... | mappings.addMappingRecursively(t1, t2); |
1,594,718 | public static <In extends ImageBase<In>, Out extends ImageBase<Out>, K extends Kernel2D, B extends ImageBorder<In>> void convolve(K kernel, In input, Out output, B border) {<NEW_LINE>switch(input.getImageType().getFamily()) {<NEW_LINE>case GRAY -><NEW_LINE>{<NEW_LINE>if (input instanceof GrayF32) {<NEW_LINE>ConvolveIma... | ) output, (ImageBorder_F32) border); |
418,706 | public void show(final RootPaneContainer frame) {<NEW_LINE>if (title == null) {<NEW_LINE>title = TextUtils.getText("edit_long_node");<NEW_LINE>}<NEW_LINE>final EditDialog editor = new LongNodeDialog(frame, title, getBackground());<NEW_LINE>redispatchKeyEvents(textComponent, firstEvent);<NEW_LINE>if (firstEvent == null)... | getMapViewManager().scrollNodeToVisible(node); |
1,236,927 | protected boolean drawChild(Canvas canvas, View child, long drawingTime) {<NEW_LINE>final LayoutParams lp = (LayoutParams) child.getLayoutParams();<NEW_LINE>boolean result;<NEW_LINE>final int save = canvas.save();<NEW_LINE>boolean drawScrim = false;<NEW_LINE>if (mCanSlide && !lp.slideable && mSlideableView != null) {<N... | baseAlpha * (1 - mSlideOffset)); |
558,081 | public DescribeProvisionedProductResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeProvisionedProductResult describeProvisionedProductResult = new DescribeProvisionedProductResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = o... | String currentParentElement = context.getCurrentParentElement(); |
312,100 | private STNode mergeQualifiedNameWithTypeDesc(STNode qualifiedName, STNode typeDesc) {<NEW_LINE>switch(typeDesc.kind) {<NEW_LINE>case SIMPLE_NAME_REFERENCE:<NEW_LINE>return qualifiedName;<NEW_LINE>case ARRAY_TYPE_DESC:<NEW_LINE>STArrayTypeDescriptorNode arrayTypeDesc = (STArrayTypeDescriptorNode) typeDesc;<NEW_LINE>STN... | mergeQualifiedNameWithTypeDesc(qualifiedName, optionalType.typeDescriptor); |
447,166 | public Mono<Response<Void>> validateMoveWithResponseAsync(String resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
823,645 | public void caseIdentityStmt(IdentityStmt stmt) {<NEW_LINE>Value l = stmt.getLeftOp();<NEW_LINE>Value r = stmt.getRightOp();<NEW_LINE>if (l instanceof Local) {<NEW_LINE>TypeVariableBV left = resolver.typeVariable((Local) l);<NEW_LINE>if (!(r instanceof CaughtExceptionRef)) {<NEW_LINE>TypeVariableBV right = resolver.<MA... | typeVariable(r.getType()); |
1,467,478 | public void run() {<NEW_LINE>super.run();<NEW_LINE>if (parent.isDirty()) {<NEW_LINE>try {<NEW_LINE>Object value = parent.extractEditorValue();<NEW_LINE>if (value instanceof Date) {<NEW_LINE>editor.setValue((Date) value);<NEW_LINE>}<NEW_LINE>} catch (DBException e) {<NEW_LINE>DBWorkbench.getPlatformUI().showError(Result... | dialog_value_view_dialog_error_updating_title, ResultSetMessages.dialog_value_view_dialog_error_updating_message, e); |
1,732,384 | final GetKeyspaceResult executeGetKeyspace(GetKeyspaceRequest getKeyspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getKeyspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
188,906 | private int[] computeVisibleSpan() {<NEW_LINE>Component parent = pane.getParent();<NEW_LINE>if (parent instanceof JLayeredPane) {<NEW_LINE>parent = parent.getParent();<NEW_LINE>}<NEW_LINE>if (parent instanceof JViewport) {<NEW_LINE>JViewport vp = (JViewport) parent;<NEW_LINE><MASK><NEW_LINE>Dimension size = vp.getExten... | Point start = vp.getViewPosition(); |
173,614 | public void load(final TreeNode parent, int level) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Enumeration<DefaultMutableTreeNode> children = (Enumeration<DefaultMutableTreeNode>) parent.children();<NEW_LINE>while (children.hasMoreElements()) {<NEW_LINE>final DefaultMutableTreeNode child = children.nextElement()... | path.size() - 1); |
438,330 | private static Vector combineServerLongFloatRowSplits(List<ServerRow> rowSplits, MatrixMeta matrixMeta, int rowIndex) {<NEW_LINE>long colNum = matrixMeta.getColNum();<NEW_LINE>int elemNum = 0;<NEW_LINE>int size = rowSplits.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>elemNum += rowSplits.get(i).size();<NE... | get(i).getClock(); |
1,212,417 | // handle accessor aggregation (direct data window by-group access to properties)<NEW_LINE>public static AggregationMultiFunctionAnalysisResult analyzeAccessAggregations(List<AggregationServiceAggExpressionDesc> aggregations, ExprNode[] groupByNodes, boolean join) {<NEW_LINE>int currentSlot = 0;<NEW_LINE>Deque<Aggregat... | stateFactoryForges = new ArrayList<>(); |
439,885 | public Queue<T> insertAll(int index, Iterable<? extends T> elements) {<NEW_LINE>Objects.requireNonNull(elements, "elements is null");<NEW_LINE>if (index < 0) {<NEW_LINE>throw new IndexOutOfBoundsException("insertAll(" + index + ", elements)");<NEW_LINE>}<NEW_LINE>final int length = front.length();<NEW_LINE>if (index <=... | (elements).reverse()); |
435,896 | private List<BaseMessage> deserializeBaseMessage(ByteBuf input) {<NEW_LINE>if (input.readableBytes() == 0)<NEW_LINE>return Collections.emptyList();<NEW_LINE>List<BaseMessage> result = Lists.newArrayList();<NEW_LINE>long pullLogOffset = input.readLong();<NEW_LINE>// ignore consumer offset<NEW_LINE>input.readLong();<NEW_... | input.skipBytes(8 + 8); |
1,391,202 | private static void sanityCheck(File file, int expectedSize) throws IOException {<NEW_LINE>FileInputStream fis = new FileInputStream(file);<NEW_LINE>CheckpointManager manager;<NEW_LINE>try {<NEW_LINE>manager = new CheckpointManager(params, fis);<NEW_LINE>} finally {<NEW_LINE>fis.close();<NEW_LINE>}<NEW_LINE>checkState(... | test.getHeight() == 72576); |
1,007,375 | public void init() {<NEW_LINE><MASK><NEW_LINE>Font boldFont = FontUtils.getSansBoldFont();<NEW_LINE>Font regularFont = FontUtils.getSansFont();<NEW_LINE>workCoordinateFont.add(font.deriveFont(Font.PLAIN, 18));<NEW_LINE>workCoordinateFont.add(font.deriveFont(Font.PLAIN, 24));<NEW_LINE>workCoordinateFont.add(font.deriveF... | Font font = FontUtils.getLcdFont(); |
1,847,521 | public static void createInstanceTemplateWithDiskType(String projectId, String templateName) throws IOException, ExecutionException, InterruptedException {<NEW_LINE>try (InstanceTemplatesClient instanceTemplatesClient = InstanceTemplatesClient.create();<NEW_LINE>GlobalOperationsClient globalOperationsClient = GlobalOpe... | out.println("Instance Template creation failed ! ! " + response); |
307,272 | protected MeasureValue[][][] retrieveTotals(List<Bucket> vals, List<BucketMap> bucketMaps) {<NEW_LINE>MeasureValue[][][] totals = new MeasureValue[rowBucketCount + 1][colBucketCount + 1][];<NEW_LINE>for (int row = rowRetrTotalMax; row >= rowRetrTotalMin; --row) {<NEW_LINE>if (!rowRetrTotals[row]) {<NEW_LINE>continue;<N... | (BucketMap) totalEntry.getValue(); |
245,189 | // Explicitly checking for named null.<NEW_LINE>@SuppressWarnings("ReferenceEquality")<NEW_LINE>@Override<NEW_LINE>@Nullable<NEW_LINE>public File dumpHeap() {<NEW_LINE>File heapDumpFile = leakDirectoryProvider.newHeapDumpFile();<NEW_LINE>if (heapDumpFile == RETRY_LATER) {<NEW_LINE>return RETRY_LATER;<NEW_LINE>}<NEW_LIN... | LeakCanaryInternals.buildNotification(context, builder); |
274,797 | public void startAdminHttpService() {<NEW_LINE>try {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.load(this.getClass().getResource("build.properties").openStream());<NEW_LINE>LOG.info("build.properties build_revision: {}", properties<MASK><NEW_LINE>} catch (Throwable t) {<NEW_LINE>LOG.warn("Fa... | .getProperty("build_revision", "unknown")); |
1,760,955 | private void showHintInEditor(AbstractPopup hint, Editor editor, Context context) {<NEW_LINE>closeHint();<NEW_LINE>myMouseMovementTracker.reset();<NEW_LINE>myKeepPopupOnMouseMove = false;<NEW_LINE>editor.putUserData(PopupFactoryImpl.ANCHOR_POPUP_POSITION<MASK><NEW_LINE>try {<NEW_LINE>PopupPositionManager.positionPopupI... | , context.getPopupPosition(editor)); |
913,612 | public StringBuffer printStatement(int indent, StringBuffer output) {<NEW_LINE>int length = this.resources.length;<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$<NEW_LINE>printIndent(indent, output).append("try" + (length == 0 ? "\n" : " ("));<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>Statement stmt = t... | printStatement(indent + 1, output); |
620,477 | public FactLine balanceSource() {<NEW_LINE>if (!m_acctSchema.isSuspenseBalancing() || m_doc.isMultiCurrency())<NEW_LINE>return null;<NEW_LINE>BigDecimal diff = getSourceBalance();<NEW_LINE>log.finer("Diff=" + diff);<NEW_LINE>// new line<NEW_LINE>FactLine line = new FactLine(m_doc.getCtx(), m_doc.get_Table_ID(), m_doc.g... | m_acctSchema, m_acctSchema.getSuspenseBalancing_Acct()); |
373,312 | private void loadNode85() {<NEW_LINE>UaObjectTypeNode node = new UaObjectTypeNode(this.context, Identifiers.ConditionType, new QualifiedName(0, "ConditionType"), new LocalizedText("en", "ConditionType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true);<NEW_LINE>node.addReference(new Reference(... | .expanded(), true)); |
367,115 | public void compute(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>Context context = request.getContext();<NEW_LINE>InvoiceLine invoiceLine = context.asType(InvoiceLine.class);<NEW_LINE>Invoice invoice = this.getInvoice(context);<NEW_LINE>if (invoice == null || invoiceLine.getPrice() ... | response.setValue("companyExTaxTotal", companyExTaxTotal); |
889,679 | public NetworkAclAssociation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>NetworkAclAssociation networkAclAssociation = new NetworkAclAssociation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<... | ().unmarshall(context)); |
500,043 | public boolean createEdgeFirewall(String tenantName, String publicIp, String insideIp, String publicSubnet, String insideSubnet) throws ExecutionException {<NEW_LINE>String xml = VnmcXml.CREATE_EDGE_FIREWALL.getXml();<NEW_LINE>String service = VnmcXml.CREATE_EDGE_FIREWALL.getService();<NEW_LINE>xml = replaceXmlValue(xm... | , "edgefwname", getNameForEdgeFirewall(tenantName)); |
1,800,018 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<TagResourceRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
644,960 | final ListProjectsResult executeListProjects(ListProjectsRequest listProjectsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProjectsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
829,842 | protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {<NEW_LINE>if (state() == State.HEADER) {<NEW_LINE>int nLoc = in.bytesBefore((byte) '\n');<NEW_LINE>ByteBuf headerBuf = in.readBytes(nLoc + 1);<NEW_LINE>String headerLine = headerBuf.toString(UTF8).trim();<NEW_LINE>nLoc = in... | get("command").asText(); |
1,072,237 | final DeleteFrameworkResult executeDeleteFramework(DeleteFrameworkRequest deleteFrameworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFrameworkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFramework"); |
1,698,324 | private // is thrown.<NEW_LINE>Trait loadOrDeriveProtocolTrait(Model model, ServiceShape service) {<NEW_LINE>ServiceIndex serviceIndex = ServiceIndex.of(model);<NEW_LINE>Set<ShapeId> serviceProtocols = serviceIndex.getProtocols(service).keySet();<NEW_LINE>if (config.getProtocol() != null) {<NEW_LINE>ShapeId protocolTra... | .getId(), serviceProtocols)); |
837,411 | public static NbPlatform addPlatform(final String id, final File destdir, final File harness, final String label) throws IOException {<NEW_LINE>try {<NEW_LINE>ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void run() throws IOException {<NEW_LINE>if (... | Level.FINE, "NbPlatform added: {0}", plaf); |
575,103 | private Mono<PagedResponse<VirtualMachineSizeInner>> listAvailableSizesSinglePageAsync(String resourceGroupName, String vmName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null... | error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); |
117,541 | public static GetDBListFromAgentResponse unmarshall(GetDBListFromAgentResponse getDBListFromAgentResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDBListFromAgentResponse.setRequestId(_ctx.stringValue("GetDBListFromAgentResponse.RequestId"));<NEW_LINE>getDBListFromAgentResponse.setSuccess(_ctx.booleanValue("GetDBListFr... | (_ctx.stringValue("GetDBListFromAgentResponse.ErrCode")); |
1,763,940 | private static Builder createPackingInstructionFieldBuilder() {<NEW_LINE>return //<NEW_LINE>DocumentFieldDescriptor.builder(IForecastLineQuickInput.COLUMNNAME_M_HU_PI_Item_Product_ID).setCaption(Services.get(IMsgBL.class).translatable(IForecastLineQuickInput.COLUMNNAME_M_HU_PI_Item_Product_ID)).setWidgetType(DocumentFi... | ).addCharacteristic(Characteristic.PublicField); |
1,016,689 | public void onStartup(Set<Class<?>> setOfClassesInterestedIn, ServletContext context) throws ServletException {<NEW_LINE>System.out.println("--- Servlet A CONTAINER INITIALIZER! ---");<NEW_LINE>// going to add a context attribute to show the set of classes that were passed in<NEW_LINE>if (setOfClassesInterestedIn != n... | setAttribute("Sci_A_RanMsg", sciName + " actually ran! "); |
640,391 | protected Map<Object, Object> convertToParameters(Object... iArgs) {<NEW_LINE>final Map<Object, Object> params;<NEW_LINE>if (iArgs.length == 1 && iArgs[0] instanceof Map) {<NEW_LINE>params = (Map<Object, Object>) iArgs[0];<NEW_LINE>} else {<NEW_LINE>if (iArgs.length == 1 && iArgs[0] != null && iArgs[0].getClass().isArr... | Object[]) iArgs[0]; |
1,396,027 | private static long triggerNotification() {<NEW_LINE>long maxMemory = tenuredGenPool.getUsage().getMax();<NEW_LINE>long usedMemory = tenuredGenPool.getUsage().getUsed();<NEW_LINE><MASK><NEW_LINE>long usedMem = runtime.totalMemory() - runtime.freeMemory();<NEW_LINE>synchronized (warningSystems) {<NEW_LINE>Iterator<Memor... | Runtime runtime = Runtime.getRuntime(); |
536,364 | private void processDeletion(SortByVcsRoots<FilePath> sortByVcsRoots) {<NEW_LINE>final MultiMap<VcsRoot, FilePath> map = sortByVcsRoots.sort(myDeleted);<NEW_LINE>myPreparedDeletion = new MultiMap<>();<NEW_LINE>for (VcsRoot vcsRoot : map.keySet()) {<NEW_LINE>if (vcsRoot != null && vcsRoot.getVcs() != null) {<NEW_LINE>fi... | files = map.get(vcsRoot); |
1,310,095 | public Forwardable<? extends ThingVertex, Order.Asc> branch(GraphManager graphMgr, Vertex<?, ?> fromVertex, Traversal.Parameters params) {<NEW_LINE>assert fromVertex.isThing() && fromVertex.asThing().isAttribute();<NEW_LINE>Forwardable<ThingVertex, Order.Asc> iter;<NEW_LINE>AttributeVertex<?> att = fromVertex.asThing()... | ).from(), ASC); |
1,352,112 | public Result uploadFile(Http.Request request, Long petId) throws Exception {<NEW_LINE>String[] valueadditionalMetadata = request.body().asMultipartFormData().asFormUrlEncoded().get("additionalMetadata");<NEW_LINE>String additionalMetadata;<NEW_LINE>if (valueadditionalMetadata != null) {<NEW_LINE>additionalMetadata = v... | result = mapper.valueToTree(obj); |
1,537,432 | private void removeSingleRefFromNodeMap(Ref ref) {<NEW_LINE>Node refNode = checkNotNull(<MASK><NEW_LINE>if (ref.getTwin() != null) {<NEW_LINE>removeTwinRefsFromNodeMap(ref);<NEW_LINE>Ref twinRef = ref.getTwin();<NEW_LINE>// break the twin relationship<NEW_LINE>ref.twin = null;<NEW_LINE>twinRef.twin = null;<NEW_LINE>// ... | ref.getNode(), ref); |
454,558 | public Builder mergeFrom(voldemort.client.protocol.pb.VAdminProto.RebalanceStateChangeRequest other) {<NEW_LINE>if (other == voldemort.client.protocol.pb.VAdminProto.RebalanceStateChangeRequest.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.rebalanceTaskList_.isEmpty()) {<NEW_LINE>if (result.rebalanceT... | setChangeClusterMetadata(other.getChangeClusterMetadata()); |
1,094,446 | void cleanup(PassThroughThenCleanup.ContextContainer c) throws Exception {<NEW_LINE>PipelineOptions options = c.getPipelineOptions();<NEW_LINE>BigQueryOptions bqOptions = <MASK><NEW_LINE>String jobUuid = c.getJobId();<NEW_LINE>final String extractDestinationDir = resolveTempLocation(bqOptions.getTempLocation(), "BigQue... | options.as(BigQueryOptions.class); |
889,355 | public static CheckLoaFillResponse unmarshall(CheckLoaFillResponse checkLoaFillResponse, UnmarshallerContext _ctx) {<NEW_LINE>checkLoaFillResponse.setRequestId(_ctx.stringValue("CheckLoaFillResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setStampFill(_ctx.booleanValue("CheckLoaFillResponse.Data.St... | (_ctx.booleanValue("CheckLoaFillResponse.Data.CountryFill")); |
165,276 | private static Structure transformToStruct(final ContentType type) throws DotStateException {<NEW_LINE>final Structure struct = new Structure();<NEW_LINE>struct.setDefaultStructure(type.defaultType());<NEW_LINE>struct.setDescription(type.description());<NEW_LINE>struct.setDetailPage(type.detailPage());<NEW_LINE>struct.... | setPublishDateVar(type.publishDateVar()); |
1,169,300 | public TransferResult<CFValue, CFStore> visitNumericalAddition(NumericalAdditionNode n, TransferInput<CFValue, CFStore> in) {<NEW_LINE>// type of leftNode + rightNode is glb(t, s) where<NEW_LINE>// t = minusOffset(type(leftNode), rightNode) and<NEW_LINE>// s = minusOffset(type(rightNode), leftNode)<NEW_LINE>UBQualifi... | ) left, (LessThanLengthOf) right); |
12,271 | private List<WrapProcess> listProcess(Business business, Application application, Wi wi) throws Exception {<NEW_LINE>List<WrapProcess> wos = new ArrayList<>();<NEW_LINE>for (String id : ListTools.trim(wi.listProcessId(), true, true)) {<NEW_LINE>Process process = business.entityManagerContainer().find(id, Process.class)... | process.getId()))); |
1,674,359 | public Map<PackageIdentifier, Package> bulkGetPackages(Iterable<PackageIdentifier> pkgIds) throws NoSuchPackageException, InterruptedException {<NEW_LINE>Set<SkyKey> pkgKeys = ImmutableSet.copyOf(PackageValue.keys(pkgIds));<NEW_LINE>ImmutableMap.Builder<PackageIdentifier, Package> pkgResults = ImmutableMap.builder();<N... | pkgKeys, packages.keySet()); |
886,008 | protected String createConfigFileIfNeeded(String serverDir, String[] commandLine, String xmlSnippet) {<NEW_LINE>String utilityName = this.scriptName;<NEW_LINE>String taskName = this.getTaskName();<NEW_LINE>final String MAGICAL_SENTINEL = "@!$#%$#%32543265k425k4/3nj5k43n?m2|5k4\\n5k2345";<NEW_LINE>String targetFilepath ... | utilityName, taskName, serverDir, targetFilepath); |
1,667,010 | private void configureDataSources(List<DataSource> dataSources) {<NEW_LINE>Map<String, ConfigItem<DataSource>> dataSourceConfigItemMap = configurator.getConfigItemMap("data-source");<NEW_LINE>for (DataSource dataSource : dataSources) {<NEW_LINE><MASK><NEW_LINE>if (name == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>... | String name = dataSource.getName(); |
1,057,161 | private void readBadges(String url, Map<String, Map<String, Badge>> badgeMap) {<NEW_LINE>try {<NEW_LINE>JSONObject globalBadgeSets = new JSONObject(Service.urlToJSONString(url)).getJSONObject("badge_sets");<NEW_LINE>for (Iterator<String> it = globalBadgeSets.keys(); it.hasNext(); ) {<NEW_LINE><MASK><NEW_LINE>Map<String... | String badgeSet = it.next(); |
1,329,884 | private boolean fetchCallbackUrl(final String callbackUrl) {<NEW_LINE>// Do not handle redirects as we must expect that the passed<NEW_LINE>// in callback url on meeting create must be working.<NEW_LINE>// String finalUrl = followRedirect(callbackUrl, 0, callbackUrl);<NEW_LINE>// log.info("Calling callback url {}", fin... | ).getStatusCode() < 300); |
1,786,202 | final boolean doOpenProject(ProjectLocator projectLocator) {<NEW_LINE>String status = "Opened project: " + projectLocator.getName();<NEW_LINE>Project project = null;<NEW_LINE>boolean openStatus = false;<NEW_LINE>try {<NEW_LINE>// first close the active project (if there is one)<NEW_LINE>// but if user cancels operation... | Msg.error(this, status); |
1,262,912 | private static void buildPublicBeanType(BeanEventTypeStemService beanEventTypeStemService, EventTypeRepository repo, String eventTypeName, EPTypeClass clazz, BeanEventTypeFactoryPrivate privateFactory, Map<String, ConfigurationCommonEventTypeBean> configs) {<NEW_LINE>// check existing type<NEW_LINE>EventType existingTy... | " versus " + beanEventType.getUnderlyingType()); |
864,664 | public static boolean update(Map<String, Object> source, Map<String, Object> changes, boolean checkUpdatesAreUnequal) {<NEW_LINE>boolean modified = false;<NEW_LINE>for (Map.Entry<String, Object> changesEntry : changes.entrySet()) {<NEW_LINE>if (!source.containsKey(changesEntry.getKey())) {<NEW_LINE>// safe to copy, cha... | get(changesEntry.getKey()); |
1,459,736 | private ServiceModuleEnum cover(Business business, Wi wi) throws Exception {<NEW_LINE>List<JpaObject> persistObjects = new ArrayList<>();<NEW_LINE>List<JpaObject> removeObjects = new ArrayList<>();<NEW_LINE>ServiceModuleEnum serviceModuleEnum = ServiceModuleEnum.getEnumByValue(wi.getId());<NEW_LINE>if (null == serviceM... | entityManagerContainer().remove(o); |
1,396,636 | public ValidationResult validateConfig(KeycloakSession session, ValidatorConfig config) {<NEW_LINE>Set<ValidationError> <MASK><NEW_LINE>if (config == null || config == ValidatorConfig.EMPTY || !config.containsKey(CFG_PATTERN)) {<NEW_LINE>errors.add(new ValidationError(ID, CFG_PATTERN, ValidatorConfigValidator.MESSAGE_C... | errors = new LinkedHashSet<>(); |
174,569 | public static Color fromHSV(int h, int s, int v) {<NEW_LINE>if (s == 0) {<NEW_LINE>return new Color(v / 255.0, v / 255.0, v / 255.0);<NEW_LINE>}<NEW_LINE>final int region = h / 30;<NEW_LINE>final int remainder = (h - (region * 30)) * 6;<NEW_LINE>final int p = (v * (255 - s)) >> 8;<NEW_LINE>final int q = (v * (255 - ((s... | > 8))) >> 8; |
372,637 | private static EnumActionResult rotateChest(World world, BlockPos pos, IBlockState state, EnumFacing sideWrenched) {<NEW_LINE>if (state.getBlock() instanceof BlockChest) {<NEW_LINE>BlockPos otherPos = null;<NEW_LINE>for (EnumFacing facing : EnumFacing.Plane.HORIZONTAL) {<NEW_LINE>BlockPos candidate = pos.offset(facing)... | state, BlockChest.FACING, ROTATE_HORIZONTAL); |
464,232 | public Optional<CatalogSchemaTableName> redirectTable(ConnectorSession session, SchemaTableName tableName) {<NEW_LINE>requireNonNull(session, "session is null");<NEW_LINE>requireNonNull(tableName, "tableName is null");<NEW_LINE>if (isHiveSystemSchema(tableName.getSchemaName())) {<NEW_LINE>return Optional.empty();<NEW_L... | ), tableNameSplit.getBaseTableName()); |
1,383,203 | private Mono<Response<TriggerQueryResponseInner>> queryByFactoryWithResponseAsync(String resourceGroupName, String factoryName, TriggerFilterParameters filterParameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.ge... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,492,023 | public IHarvestResult harvestBlock(@Nonnull IFarmer farm, @Nonnull BlockPos bc, @Nonnull IBlockState state) {<NEW_LINE>setupHarvesting(farm, bc);<NEW_LINE>if (!hasAxe) {<NEW_LINE>farm.setNotification(FarmNotification.NO_AXE);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final World world = farm.getWorld();<NEW_LINE>final ... | getHarvestedBlocks().addAll(actualHarvests); |
156,147 | public synchronized void open() throws MonopriceAudioException {<NEW_LINE>logger.debug("Opening serial connection on port {}", serialPortName);<NEW_LINE>try {<NEW_LINE>SerialPortIdentifier portIdentifier = serialPortManager.getIdentifier(serialPortName);<NEW_LINE>if (portIdentifier == null) {<NEW_LINE>setConnected(fals... | throw new MonopriceAudioException("Opening serial connection failed: Unsupported Comm Operation Exception", e); |
918,088 | public void write(DataOutput out) throws IOException {<NEW_LINE>final byte[] integerBuffer = new byte[5];<NEW_LINE>serialize();<NEW_LINE>byte hasValues = (values == null) ? 0 : (byte) 1;<NEW_LINE>if (!replicationSources.isEmpty()) {<NEW_LINE>// Use 2nd least-significant bit for whether or not we have replication source... | out, integerBuffer, val.length); |
1,427,248 | public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String vaultName = Utils.getValueFromIdByName(id, "vaults");<NEW_LINE>if (vaultName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment... | format("The resource ID '%s' is not valid. Missing path segment 'protectedItems'.", id))); |
1,141,089 | private void initData(JSONObject data) {<NEW_LINE>if (data == null)<NEW_LINE>return;<NEW_LINE>JSONObject info = data.optJSONObject("game_info");<NEW_LINE>int size = info.optInt("boardSize", 19);<NEW_LINE>boardSize = size;<NEW_LINE>Lizzie.board.reopen(boardSize, boardSize);<NEW_LINE>// TODO boardSize<NEW_LINE>history = ... | getGameInfo().setKomi(komi); |
1,405,435 | private void actOnJoinEvent(PlayerJoinEvent event) {<NEW_LINE>Player player = event.getPlayer();<NEW_LINE>UUID playerUUID = player.getUniqueId();<NEW_LINE>ServerUUID serverUUID = serverInfo.getServerUUID();<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>BukkitAFKListener.afkTracker.performedAction(playerUUID... | config.isTrue(DataGatheringSettings.GEOLOCATIONS); |
1,757,591 | public boolean exists(AlluxioURI path, ExistsContext context) throws AccessControlException, IOException {<NEW_LINE>try (RpcContext rpcContext = createRpcContext(context);<NEW_LINE>FileSystemMasterAuditContext auditContext = createAuditContext("exists", path, null, null)) {<NEW_LINE>syncMetadata(rpcContext, path, conte... | .READ, inodePath), false); |
273,917 | private static void initContext(DubboSpringInitContext context, BeanDefinitionRegistry registry, ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>context.setRegistry(registry);<NEW_LINE>context.setBeanFactory(beanFactory);<NEW_LINE>// customize context, you can change the bind module model via DubboSpringInitCus... | ("Use default module model of target application: " + safeGetModelDesc(moduleModel)); |
1,222,150 | public Void execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>ModelCheckerInstance modelCheckerInstance = getDatabaseSession().get(modelCheckerInstanceOid, OldQuery.getDefault());<NEW_LINE>ModelCheckerPlugin modelCheckerPlugin = bimServer.getPluginManager().getModelCh... | getDatabaseSession().store(modelCheckerInstance); |
549,268 | public static // the local variables exist before the class instance is constructed.<NEW_LINE>EditTemplateDialogModel create(final BootDashModel section) {<NEW_LINE>final RunTargetType type = section.getRunTarget().getType();<NEW_LINE>return new EditTemplateDialogModel() {<NEW_LINE><NEW_LINE>{<NEW_LINE>template.setValu... | setNameTemplate(template.getValue()); |
586,605 | public WebResponse invokeJwtConsumer(String testcase, WebConversation wc, String tokenValue, TestSettings settings, List<validationData> expectations) throws Exception {<NEW_LINE>String thisMethod = "invokeJwtConsumer";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>WebConversation newWC = (wc == null<MASK><NE... | ) ? new WebConversation() : wc; |
524,799 | public void run() {<NEW_LINE>try {<NEW_LINE>Universe universe = getUniverse();<NEW_LINE>for (String nodeIp : params().nodeIpList) {<NEW_LINE>List<String> command = new ArrayList<>();<NEW_LINE>command.add("timeout");<NEW_LINE>command.add(String.valueOf(DEFAULT_COMMMAND_TIMEOUT_SEC));<NEW_LINE>command.add("cat /proc/memi... | node = universe.getNodeByPrivateIP(nodeIp); |
516,489 | public static byte[] toImage(String fileName, byte[] bytes, String stamp, Integer page) throws Exception {<NEW_LINE>Config.collect().validate();<NEW_LINE>URL serverUrl = new URL(Config.collect().url() + "/o2_collect_assemble/jaxrs/document/to/image");<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) serverUr... | writer.write(twoHyphens + boundary); |
489,102 | public static PickRay computePerspectivePickRay(double x, double y, boolean fixedEye, double viewWidth, double viewHeight, double fieldOfViewRadians, boolean verticalFieldOfView, Affine3D cameraTransform, double nearClip, double farClip, PickRay pickRay) {<NEW_LINE>if (pickRay == null) {<NEW_LINE>pickRay = new PickRay(... | double halfViewDim = verticalFieldOfView ? halfViewHeight : halfViewWidth; |
467,159 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl <MASK><NEW_LINE>env.compileDeploy(epl).addListener("s0").addListener("s1");<NEW_LINE>sendManyArray(env, new int[] { 1, 2 }, new int[] { 3, 4 });<NEW_LINE>sendManyArray(env, new int[] { 3, 4 }, new int[] { 1, 2 });<NEW_LINE>sendManyArray(env, new int[] { 1... | = "@public create window MyWindow#keepall as SupportEventWithManyArray;\n" + "insert into MyWindow select * from SupportEventWithManyArray;\n" + "@name('s0') on SupportBean_S0 select distinct intOne from MyWindow;\n" + "@name('s1') on SupportBean_S1 select distinct intOne, intTwo from MyWindow;\n"; |
1,312,953 | public JSONObject toJSON() {<NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>if (originalLocation != null) {<NEW_LINE>json.put("lat", String.format(Locale.US, "%.5f", originalLocation.getLatitude()));<NEW_LINE>json.put("lon", String.format(Locale.US, "%.5f", originalLocation.getLongitude()));<NEW_LINE>}<NEW_LINE>... | json.put("totalLimit", totalLimit); |
1,285,855 | public MergeCartResponse mergeCart(Customer customer, Order anonymousCart, boolean priceOrder) throws PricingException {<NEW_LINE>MergeCartResponse mergeCartResponse = new MergeCartResponse();<NEW_LINE>// reconstruct cart items (make sure they are valid)<NEW_LINE>ReconstructCartResponse reconstructCartResponse = recons... | setEmailAddress(customer.getEmailAddress()); |
935,976 | void validate(final ParameterContext ctx) {<NEW_LINE>for (final Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> entry : ctx.anno().getElementValues().entrySet()) {<NEW_LINE>if (entry.getKey().getSimpleName().contentEquals("value")) {<NEW_LINE>final TypeElement key = ctx.elements().getTypeElement("org.... | "Could not find a context key matching the provided name", entry.getValue()); |
986,154 | private static ClassifiedTasks classifyTasks(ImmutableSet<TaskHandle> tasks, ImmutableSet<String> tlds) {<NEW_LINE>ClassifiedTasks.Builder classifiedTasksBuilder = ClassifiedTasks.builder();<NEW_LINE>// Read all tasks on the DNS pull queue and load them into the refresh item multimap.<NEW_LINE>for (TaskHandle task : ta... | typeString = params.get(DNS_TARGET_TYPE_PARAM); |
872,377 | private void decompressNextBlock() throws IOException {<NEW_LINE>outputBufferSize = 0;<NEW_LINE>outputBufferPos = 0;<NEW_LINE>fillInputBuffer();<NEW_LINE>assert (inputBufferPos == 0);<NEW_LINE>if (inputBufferSize != 0) {<NEW_LINE>bgzipHeader = new BGzipHeader(inputBuffer, inputBufferPos, inputBufferSize);<NEW_LINE>} el... | .bsize, isize = bgzipHeader.isize; |
697,081 | private void applyState(InetAddressAndPort endpoint, ApplicationState state, VersionedValue value, EndpointState epState) {<NEW_LINE>switch(state) {<NEW_LINE>case RELEASE_VERSION:<NEW_LINE>StargateSystemKeyspace.updatePeerInfo(endpoint, "release_version", value.value);<NEW_LINE>break;<NEW_LINE>case DC:<NEW_LINE>Stargat... | StargateSystemKeyspace.updatePeerNativeAddress(endpoint, address); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.