idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
436,817 | public void run() {<NEW_LINE>parentCommand.parentCommand.configureLogging(false);<NEW_LINE>blockImportFiles.addAll(blockImportFileOption);<NEW_LINE>checkCommand(parentCommand);<NEW_LINE>checkNotNull(parentCommand.rlpBlockImporter);<NEW_LINE>checkNotNull(parentCommand.jsonBlockImporterFactory);<NEW_LINE>if (blockImportF... | LOG.info("Importing from {}", path); |
318,151 | int GetRepPrice(int repIndex, int len, int state, int posState) {<NEW_LINE>int price = _repMatchLenEncoder.GetPrice(len - Base.kMatchMinLen, posState);<NEW_LINE>if (repIndex == 0) {<NEW_LINE>price += SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_isRepG0[state]);<NEW_LINE>price += SevenZip.Compression.RangeCoder.En... | .GetPrice0(_isRepG1[state]); |
1,315,804 | private static void instantiateTransformerFactory() {<NEW_LINE>// docx4j requires real Xalan<NEW_LINE>// See further docs/JAXP_TransformerFactory_XSLT_notes.txt<NEW_LINE>String originalSystemProperty = System.getProperty("javax.xml.transform.TransformerFactory");<NEW_LINE>try {<NEW_LINE>System.setProperty("javax.xml.tr... | .transform.TransformerFactory.newInstance(); |
619,431 | public static Location calculateBoardPlacementLocation(BoardLocation bl, Location placementLocation) {<NEW_LINE>AffineTransform tx = bl.getPlacementTransform();<NEW_LINE>if (tx == null) {<NEW_LINE>tx = getDefaultBoardPlacementLocationTransform(bl);<NEW_LINE>}<NEW_LINE>// The affine calculations are always done in milli... | true, false, false, false); |
1,041,822 | public HeroicConfig.Builder build(final ExtraParameters params) throws Exception {<NEW_LINE>final BigtableMetricModule.Builder module = BigtableMetricModule.builder();<NEW_LINE>params.get("project").map(module::project);<NEW_LINE>params.get("instance").map(module::instance);<NEW_LINE>params.get("profile"<MASK><NEW_LINE... | ).map(module::profile); |
1,177,897 | static void vp8_auto_select_speed(Compressor cpi) {<NEW_LINE>int milliseconds_for_compress = (int<MASK><NEW_LINE>milliseconds_for_compress = milliseconds_for_compress * (16 - cpi.oxcf.getCpu_used()) / 16;<NEW_LINE>if (cpi.avg_pick_mode_time < milliseconds_for_compress && (cpi.avg_encode_time - cpi.avg_pick_mode_time) <... | ) (1000000 / cpi.framerate); |
1,852,362 | private static PointDouble calcOtherCoordinate(PointDouble stickablePoint, StickLine oldLine, StickLine newLine, int diffX, int diffY) {<NEW_LINE>PointDouble stickablePointWithDiff = new PointDouble(stickablePoint.getX() + diffX, stickablePoint.getY() + diffY);<NEW_LINE>// if the line length has not changed, the point ... | return new PointDouble(0, 0); |
564,514 | final CreateStreamingImageResult executeCreateStreamingImage(CreateStreamingImageRequest createStreamingImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStreamingImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "nimble"); |
884,528 | public void emptyDeletedNodes(Long nodeId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'nodeId' is set<NEW_LINE>if (nodeId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'nodeId' when calling emptyDeleted... | = new String[] { "oauth2" }; |
844,523 | protected Action process() throws Exception {<NEW_LINE>int requestId = _log.isDebugEnabled(<MASK><NEW_LINE>ServletInputStream input = request.getInputStream();<NEW_LINE>while (input.isReady()) {<NEW_LINE>int read = input.read(buffer);<NEW_LINE>if (_log.isDebugEnabled())<NEW_LINE>_log.debug("{} asynchronous read {} byte... | ) ? getRequestId(request) : 0; |
1,676,829 | public void authenticate() throws AlluxioStatusException {<NEW_LINE>LOG.debug("Authenticating channel: {}. AuthType: {}", mChannelKey.toStringShort(), mAuthType);<NEW_LINE>ChannelAuthenticationScheme authScheme = getChannelAuthScheme(mAuthType, mParentSubject, mChannelKey.getServerAddress().getSocketAddress());<NEW_LIN... | message).withCause(t)); |
367,467 | public Object toJson(AggregateCall node) {<NEW_LINE>final Map<String, Object> map = jsonBuilder.map();<NEW_LINE>map.put("agg", toJson(node.getAggregation()));<NEW_LINE>map.put("type", toJson(node.getType()));<NEW_LINE>map.put("distinct", node.isDistinct());<NEW_LINE>map.put("operands", node.getArgList());<NEW_LINE>map.... | "separator", groupConcatAggregateCall.getSeparator()); |
1,707,467 | public boolean replaceEvent(GameEvent event, Ability source, Game game) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Card sourceCard = game.getCard(source.getSourceId());<NEW_LINE>if (controller != null && sourceCard != null) {<NEW_LINE>if (!controller.chooseUse(outcome, "Exile all ... | drawCards(cardsHand, source, game); |
332,585 | // TODO(devoncarew): Re-implement this in terms of the generated vm service protocol library.<NEW_LINE>private void onOpenSourceLocationRequest(@NotNull String isolateId, @NotNull String scriptId, int tokenPos) {<NEW_LINE>myVmServiceWrapper.getObject(isolateId, scriptId, new GetObjectConsumer() {<NEW_LINE><NEW_LINE>@Ov... | (Script) response), tokenPos); |
1,074,620 | private void visit(MethodNode value) {<NEW_LINE>// Visit definition<NEW_LINE>MethodDefinitionAST def = new MethodDefinitionAST(0, 0, new NameAST(0, 0, value.name), new DescAST(0, 0, Type.getMethodType(value.desc).getReturnType().getDescriptor()));<NEW_LINE>for (AccessFlag flag : AccessFlag.values()) if (flag.getTypes()... | out.add("THROWS " + type); |
223,584 | protected Map<OsmPoint, String> doInBackground(OsmPoint... points) {<NEW_LINE>TrafficStats.setThreadStatsTag(THREAD_ID);<NEW_LINE>Map<OsmPoint, String> loadErrorsMap = new HashMap<>();<NEW_LINE>boolean uploaded = false;<NEW_LINE>for (OsmPoint point : points) {<NEW_LINE>if (interruptUploading) {<NEW_LINE>break;<NEW_LINE... | getComment(), false, null); |
294,706 | public void SetPrices(int posState, int numSymbols, int[] prices, int st) {<NEW_LINE>int a0 = com.mucommander.commons.file.archive.sevenzip.provider.SevenZip.Compression.RangeCoder.Encoder.GetPrice0(_choice[0]);<NEW_LINE>int a1 = com.mucommander.commons.file.archive.sevenzip.provider.SevenZip.Compression.RangeCoder.Enc... | GetPrice(i - Base.kNumLowLenSymbols); |
1,265,606 | public CreateProtectionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateProtectionResult createProtectionResult = new CreateProtectionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
1,841,784 | public ActionResult<Wo> call() throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Work work = emc.find(id, Work.class);<NEW_LINE>if (null == w... | persist(snap, CheckPersistType.all); |
1,462,000 | public void updateLayouts(Map<String, DockLayout> layouts) {<NEW_LINE>// Remove last session layout<NEW_LINE>layouts.remove("");<NEW_LINE>layoutsMenu.removeAll();<NEW_LINE>if (!layouts.isEmpty()) {<NEW_LINE>for (Map.Entry<String, DockLayout> entry : layouts.entrySet()) {<NEW_LINE>JMenu submenu = new <MASK><NEW_LINE>add... | JMenu(entry.getKey()); |
1,489,847 | private ThreadPoolExecutor createPriorityExecutor(ScanExecutorConfig sec, Map<String, Queue<Runnable>> scanExecQueues) {<NEW_LINE>BlockingQueue<Runnable> queue;<NEW_LINE>if (sec.prioritizerClass.orElse("").isEmpty()) {<NEW_LINE>queue = new LinkedBlockingQueue<>();<NEW_LINE>} else {<NEW_LINE>ScanPrioritizer factory = nu... | queue, sec.priority, true); |
824,787 | static void writeUpdateOfUpdaterJar(JarEntry updaterJarEntry, File zipFileWithUpdater, File targetCluster) throws IOException {<NEW_LINE>JarFile jf = new JarFile(zipFileWithUpdater);<NEW_LINE>String entryPath = updaterJarEntry.getName();<NEW_LINE>String entryName = entryPath.contains("/") ? entryPath.substring(entryPat... | ("/") + 1) : entryPath; |
1,448,665 | private static void jj_la1_6() {<NEW_LINE>jj_la1_6 = new int[] { 0x0, 0x0, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffffffff, 0x0, 0x0, 0x0, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ... | 0xffffffff, 0x0, 0x0, 0x0 }; |
735,942 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(2);<NEW_LINE>UnidbgPointer <MASK><NEW_LINE>UnidbgPointer va_list = context.getPointerArg(4);<NEW_LINE>if (lo... | jmethodID = context.getPointerArg(3); |
167,028 | public boolean prepareInternalAudio(int bitrate, int sampleRate, boolean isStereo, boolean echoCanceler, boolean noiseSuppressor) {<NEW_LINE>if (mediaProjection == null) {<NEW_LINE>mediaProjection = mediaProjectionManager.getMediaProjection(resultCode, data);<NEW_LINE>}<NEW_LINE>AudioPlaybackCaptureConfiguration config... | AudioAttributes.USAGE_UNKNOWN).build(); |
1,184,123 | // CHECKSTYLE_RULES.OFF: CyclomaticComplexity<NEW_LINE>@Override<NEW_LINE>public Pair<String, SqlType> visitComparisonExpression(final ComparisonExpression node, final Context context) {<NEW_LINE>// CHECKSTYLE_RULES.ON: CyclomaticComplexity<NEW_LINE>final Pair<String, SqlType> left = process(node.getLeft(), context);<N... | nullCheckPrefix(node.getType()); |
636,863 | public NetworkACLItemResponse createNetworkACLItemResponse(NetworkACLItem aclItem) {<NEW_LINE>NetworkACLItemResponse response = new NetworkACLItemResponse();<NEW_LINE>response.setId(aclItem.getUuid());<NEW_LINE>response.setProtocol(aclItem.getProtocol());<NEW_LINE>if (aclItem.getSourcePortStart() != null) {<NEW_LINE>re... | setIcmpType(aclItem.getIcmpType()); |
1,392,738 | final GetAuthorizerResult executeGetAuthorizer(GetAuthorizerRequest getAuthorizerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAuthorizerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,331,047 | public List<List<XMLEvent>> splitHtml(XMLEventReader reader, int maxLength) throws XMLStreamException {<NEW_LINE>this.headerElements = getHeaderElements(reader);<NEW_LINE>this.footerElements = getFooterElements();<NEW_LINE>footerCloseTagLength = calculateTotalTagStringLength(footerElements);<NEW_LINE>this.maxLength = (... | out = xmlOutputFactory.createXMLEventWriter(currentDoc); |
1,468,450 | private CompletableFuture<ExpandedNodeId> next(NodeId nodeId, RelativePathElement element) {<NEW_LINE>NodeId referenceTypeId = element.getReferenceTypeId();<NEW_LINE>boolean includeSubtypes = element.getIncludeSubtypes();<NEW_LINE>QualifiedName targetName = element.getTargetName();<NEW_LINE>if (targetName.isNull()) {<N... | ).browse(browseContext, nodeId); |
1,051,054 | public void computeBounds(JTextPane textPane, BoundsTranslator translator) {<NEW_LINE>Rectangle tpBounds = textPane.getBounds();<NEW_LINE><MASK><NEW_LINE>this.bounds = new Rectangle[length];<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>try {<NEW_LINE>Rectangle startr = tui.modelToView(textPane, docstart[i], Pos... | TextUI tui = textPane.getUI(); |
407,309 | public void testCompareToScheduledFutureTask() throws Exception {<NEW_LINE>ScheduledFuture<?> future5 = schedxsvcDefaultLookup.scheduleWithFixedDelay(new CounterTask(), 5, 1, TimeUnit.MINUTES);<NEW_LINE>try {<NEW_LINE>ScheduledFuture<?> future4 = daemon.schedule((Runnable) new CounterTask(), 4, TimeUnit.MINUTES);<NEW_L... | throw new Exception("Unexpected compare of future to self: " + compare); |
910,931 | public BlockStart tryStart(ParserState state, MatchedBlockParser matchedBlockParser) {<NEW_LINE>int nextNonSpace = state.getNextNonSpaceIndex();<NEW_LINE>CharSequence line = state.getLine().getContent();<NEW_LINE>if (state.getIndent() < 4 && line.charAt(nextNonSpace) == '<') {<NEW_LINE>for (int blockType = 1; blockType... | ())).find(); |
1,841,426 | public void update() {<NEW_LINE>removeAll();<NEW_LINE>int height = getIconHeight();<NEW_LINE>JBLabel firstLabel = null;<NEW_LINE>for (Map.Entry<VcsRefType, Collection<VcsRef>> typeAndRefs : myGroupedVisibleReferences.entrySet()) {<NEW_LINE>VcsRefType type = typeAndRefs.getKey();<NEW_LINE>Collection<VcsRef> refs = typeA... | (!myGroupedVisibleReferences.isEmpty()); |
1,101,764 | @Path("/{accountId:" + UUID_PATTERN + "}/" + CUSTOM_FIELDS)<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Add custom fields to account", response = CustomField.class, responseContainer = "List")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 201, message... | , request), uriInfo, request); |
797,032 | protected void ensureSyncIsEnabled() {<NEW_LINE>for (Entry<String, Volume> entry : volumesByName.entrySet()) {<NEW_LINE>FileSystem fs = entry.getValue().getFileSystem();<NEW_LINE>if (fs instanceof DistributedFileSystem) {<NEW_LINE>// Avoid use of DFSConfigKeys since it's private<NEW_LINE>final String DFS_SUPPORT_APPEND... | warn("{} set to false in hdfs-site.xml: data loss is possible" + " on hard system reset or power loss", DFS_DATANODE_SYNCONCLOSE); |
176,961 | private void restoreMeta(Connection metaDbConnection, ExecutionContext executionContext) {<NEW_LINE>PartitionGroupAccessor partitionGroupAccessor = new PartitionGroupAccessor();<NEW_LINE>TablePartitionAccessor tablePartitionAccessor = new TablePartitionAccessor();<NEW_LINE>TableGroupAccessor tableGroupAccessor = new Ta... | id, partitionSpec.getId()); |
344,162 | public boolean offer(final E e) {<NEW_LINE>if (null == e) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>long mask;<NEW_LINE>E[] buffer;<NEW_LINE>long pIndex;<NEW_LINE>while (true) {<NEW_LINE>long producerLimit = lvProducerLimit();<NEW_LINE>pIndex = lvProducerIndex();<NEW_LINE>// lower bit is indicati... | offerSlowPath(mask, pIndex, producerLimit); |
170,368 | public synchronized WebApplicationInfo[] listWebApplicationInfos(WebApplicationInfo keys) throws ConfigurationException {<NEW_LINE>if (!configurationExists())<NEW_LINE>return new WebApplicationInfo[0];<NEW_LINE>ArrayList<WebApplicationInfo> results = new ArrayList<>();<NEW_LINE>NamingEnumeration<SearchResult> ne = null... | String deviceName = keys.getDeviceName(); |
1,244,920 | private void reportIssueFromTranscript(String transcriptText, boolean addTermuxDebugInfo) {<NEW_LINE>Logger.showToast(mActivity, mActivity.getString(R<MASK><NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>StringBuilder reportString = new StringBuilder();<NEW_LINE>String title ... | .string.msg_generating_report), true); |
1,603,064 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String xml = (String) msg;<NEW_LINE>String id = getAttribute(xml, "id");<NEW_LINE>String data = getAttribute(xml, "data");<NEW_LINE>if (id != null && data != null) {<NEW_LINE>DeviceSession deviceSession = getDe... | parser.nextDouble(0))); |
809,412 | Object create(VirtualFrame frame, Object type, Object value, @SuppressWarnings("unused") @Cached IsTypeNode isTypeNode, @SuppressWarnings("unused") @Cached IsInstanceNode isInstanceNode, @SuppressWarnings("unused") @Cached IsSubClassNode isSubClassNode, @Cached CallNode callConstructor, @Cached BranchProfile noneValueP... | getRaiseNode().raiseExceptionObject(ex); |
558,497 | EncodedParameter encodeParameterValue(Object value, @Nullable PostgresTypeIdentifier dataType, @Nullable Object parameterValue) {<NEW_LINE>if (dataType == null) {<NEW_LINE>if (parameterValue == null) {<NEW_LINE>throw new IllegalArgumentException(String.format("Cannot encode null value %s using type inference", value));... | .getName(), parameterValue)); |
468,071 | protected void dispatchDraw(Canvas canvas) {<NEW_LINE>int y = scrollOffsetY - backgroundPaddingTop + AndroidUtilities.dp(6);<NEW_LINE>spansScrollView.setTranslationY(y + AndroidUtilities.dp(64));<NEW_LINE>float newEmptyViewOffset = additionalHeight + searchAdditionalHeight;<NEW_LINE>if (emptyView.getVisibility() != Vie... | emptyView.setTranslationY(scrollOffsetY + emptyViewOffset); |
484,765 | public void destroy(Contact c) {<NEW_LINE>Fixture fixtureA = c.getFixtureA();<NEW_LINE>Fixture fixtureB = c.getFixtureB();<NEW_LINE>Body bodyA = fixtureA.getBody();<NEW_LINE>Body bodyB = fixtureB.getBody();<NEW_LINE>if (m_contactListener != null && c.isTouching()) {<NEW_LINE>m_contactListener.endContact(c);<NEW_LINE>}<... | .next = c.m_nodeA.next; |
1,451,530 | private void retrieveWorkload(long timeInMs, long windowInMs, Map<String, Integer> topicsPartitions) throws IOException {<NEW_LINE>long current = System.currentTimeMillis();<NEW_LINE>Map<String, TopicWorkload> topicWorkloads = C3QueryUtils.retrieveTopicInRate(timeInMs, windowInMs, _c3Host, _c3Port, _srcKafkaCluster, ne... | (topicsPartitions.keySet())); |
1,397,331 | protected NDList forwardInternal(ParameterStore parameterStore, NDList inputs, boolean training, PairList<String, Object> params) {<NEW_LINE>if (first) {<NEW_LINE>synchronized (MxSymbolBlock.class) {<NEW_LINE>if (first) {<NEW_LINE>// create CachedOp is not thread-safe<NEW_LINE>// add synchronized block to avoid creatin... | ), array.getShape()); |
1,352,633 | private long readStreamChunk(ByteBufferStream buffer, long size, MessageDigest md5, MessageDigest sha256) throws IOException {<NEW_LINE>long totalBytesRead = 0;<NEW_LINE>if (this.oneByte != null) {<NEW_LINE>buffer.write(this.oneByte);<NEW_LINE>md5.update(this.oneByte);<NEW_LINE>if (sha256 != null)<NEW_LINE>sha256.updat... | this.buf16k, 0, bytesRead); |
682,381 | public TF_Session loadSavedModel(SavedModelConfig savedModelConfig, TF_SessionOptions options, TF_Buffer runOptions, TF_Graph graph, Map<String, String> inputsMap, Map<String, String> outputsMap, TF_Status status) {<NEW_LINE>TF_Buffer metaGraph = TF_Buffer.newBuffer();<NEW_LINE>TF_Session session = TF_LoadSessionFromSa... | > inputs = signatureDef.getInputsMap(); |
1,540,484 | public ExtensionJson toExtensionJson() {<NEW_LINE>var json = new ExtensionJson();<NEW_LINE>var extension = this.getExtension();<NEW_LINE>json.namespace = extension.getNamespace().getName();<NEW_LINE>json.name = extension.getName();<NEW_LINE>json.averageRating = extension.getAverageRating();<NEW_LINE>json.downloadCount ... | .homepage = this.getHomepage(); |
332,620 | @ApiOperation(value = "List available caches")<NEW_LINE>@RequiresPermissions(RestPermissions.LOOKUP_TABLES_READ)<NEW_LINE>public CachesPage caches(@ApiParam(name = "page") @QueryParam("page") @DefaultValue("1") int page, @ApiParam(name = "per_page") @QueryParam("per_page") @DefaultValue("50") int perPage, @ApiParam(nam... | dbQuery, sortBuilder, page, perPage); |
1,237,918 | protected int idamax(long N, INDArray X, int incX) {<NEW_LINE>Preconditions.checkArgument(X.dataType() == DataType.DOUBLE, "Double dtype expected");<NEW_LINE>Nd4j.getExecutioner().push();<NEW_LINE>CudaContext ctx = allocator.getFlowController().prepareAction(null, X);<NEW_LINE>int ret2;<NEW_LINE>CublasPointer xCPointer... | cublasHandle_t handle = ctx.getCublasHandle(); |
435,715 | final ListTestGridProjectsResult executeListTestGridProjects(ListTestGridProjectsRequest listTestGridProjectsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTestGridProjectsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | false), new ListTestGridProjectsResultJsonUnmarshaller()); |
108,869 | public static Props resolveProps(final Props props, final boolean allowUndefined) {<NEW_LINE>if (props == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Props resolvedProps = new Props();<NEW_LINE>final LinkedHashSet<String> visitedVariables = new LinkedHashSet<>();<NEW_LINE>for (final String key : props.getKe... | resolvedProps.put(key, expressedValue); |
298,565 | public ResultFrame unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResultFrame resultFrame = new ResultFrame();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | JsonToken token = context.getCurrentToken(); |
706,696 | final ListMembersResult executeListMembers(ListMembersRequest listMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMembersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | false), new ListMembersResultJsonUnmarshaller()); |
575,604 | protected void removeByUserId(String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM PortletPreferences IN CLASS com.liferay.portal.ejb.PortletPreferencesHBM WHERE ");<NEW_LIN... | (PortletPreferencesHBM) itr.next(); |
124,993 | private void handleCreateImageRampup(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final String jsonPayload = HttpRequestUtils.getBody(req);<NEW_LINE>final ImageRampupPlanRequestDTO imageRampupPlanRequest = this.conver... | getUser().getUserId()); |
916,327 | protected boolean doubleCheckOnlineStatus(String currentMemberId, HostSpec currentHostSpec) {<NEW_LINE><MASK><NEW_LINE>List<Future> futures = new ArrayList<>();<NEW_LINE>AtomicInteger onlineCount = new AtomicInteger(1);<NEW_LINE>AtomicInteger finishedCount = new AtomicInteger(1);<NEW_LINE>for (HostSpec hostSpec : confi... | CountDownLatch latch = new CountDownLatch(1); |
536,498 | final GetQueueAttributesResult executeGetQueueAttributes(GetQueueAttributesRequest getQueueAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQueueAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
408,935 | PBytesLike title(PBytesLike self, @CachedLibrary("self") PythonBufferAccessLibrary bufferLib, @Cached BytesNodes.CreateBytesNode create) {<NEW_LINE>int len = bufferLib.getBufferLength(self);<NEW_LINE>if (len == 0) {<NEW_LINE>return create.execute(factory(), self, PythonUtils.EMPTY_BYTE_ARRAY);<NEW_LINE>}<NEW_LINE>byte[... | c = BytesUtils.toLower(c); |
1,325,490 | public void testSFLocalEnvEntry_Short_InvalidValue() throws Exception {<NEW_LINE>SFLa ejb1 = fhome1.create();<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envShortInvalid".<NEW_LINE>Short tempShort = ejb1.getShortEnvVar("envShortBlankValue");<NEW_LINE>fail("Get environment invalid sh... | getClass().getName()); |
237,845 | public com.amazonaws.services.memorydb.model.NodeQuotaForCustomerExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.memorydb.model.NodeQuotaForCustomerExceededException nodeQuotaForCustomerExceededException = new com.amazonaws.services.<MASK><NEW_... | memorydb.model.NodeQuotaForCustomerExceededException(null); |
1,434,022 | static List<Block> splitBlockIntoFragments(@Nonnull Block block, @Nonnull List<TemplateLanguageBlock> subBlocks) {<NEW_LINE>final List<Block> children = new ArrayList<Block>(5);<NEW_LINE>final TextRange range = block.getTextRange();<NEW_LINE><MASK><NEW_LINE>TemplateLanguageBlock lastTLBlock = null;<NEW_LINE>for (Templa... | int childStartOffset = range.getStartOffset(); |
737,921 | private static void loadCreativeTab() {<NEW_LINE>var id = new AtomicInteger(CreativeCategory.values().length);<NEW_LINE>var newTypes = new ArrayList<CreativeCategory>();<NEW_LINE>var tabs = CreativeModeTab.TABS;<NEW_LINE>var map = new HashMap<CreativeModeTab, CreativeCategory>(Unsafe.getStatic(CraftCreativeCategory.cla... | ), List.of()); |
1,477,969 | public ResourceState unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceState resourceState = new ResourceState();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | JsonToken token = context.getCurrentToken(); |
968,295 | public List<DataObject> execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>Revision virtualRevision = getRevisionByRoid(roid);<NEW_LINE>IfcModelSet ifcModelSet = new IfcModelSet();<NEW_LINE>PackageMetaData lastPackageMetaData = null;<NEW_LINE>Map<Integer, Long> pidRoid... | eClass().getName()); |
646,808 | void free(File fileToReturn, long sizeInBytes, String storeId, boolean isSwapSegment) throws IOException {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>if (enablePooling && poolState != PoolState.INITIALIZED) {<NEW_LINE>logger.info("Freeing segment of size {} from {} before pool is full... | swapReserveFiles.add(sizeInBytes, fileToReturn); |
875,028 | public void populateMenu(JMenu modeMenu) {<NEW_LINE>debugMenu = modeMenu;<NEW_LINE>JMenuItem item;<NEW_LINE>debugItem = Toolkit.newJMenuItem(Language.text("menu.debug.enable"), 'D');<NEW_LINE>debugItem.addActionListener(new ActionListener() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>edit... | item = Toolkit.newJMenuItemExt("menu.debug.step_out"); |
77,835 | private void addEntry(StageFeedEntry feed, ElementBuilder builder, XmlWriterContext ctx) {<NEW_LINE>StageIdentifier identifier = feed.getStageIdentifier();<NEW_LINE>String entryUrl = ctx.stageDetailsPageLink(identifier.getStageLocator());<NEW_LINE>builder.cdataNode("title", feed.getTitle()).textNode("updated", feed.get... | = identifier.getPipelineName() + " Pipeline Detail"; |
506,744 | public io.kubernetes.client.proto.V2beta2Autoscaling.MetricSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V2beta2Autoscaling.MetricSpec result = new io.kubernetes.client.proto.V2beta2Autoscaling.MetricSpec(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_b... | .external_ = externalBuilder_.build(); |
1,821,384 | public boolean applyColumnRename(SQLName columnName, SQLColumnDefinition to) {<NEW_LINE>for (SQLSelectOrderByItem orderByItem : getColumns()) {<NEW_LINE>SQLExpr expr = orderByItem.getExpr();<NEW_LINE>if (expr instanceof SQLName && SQLUtils.nameEquals((SQLName) expr, columnName)) {<NEW_LINE>orderByItem.setExpr(to.getNam... | getName().clone()); |
115,160 | public Action onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) {<NEW_LINE>Action action = Action.CONTINUE;<NEW_LINE>final byte flags = header.flags();<NEW_LINE>if ((flags & UNFRAGMENTED) == UNFRAGMENTED) {<NEW_LINE>action = onMessage(buffer, offset, header);<NEW_LINE>} else... | append(buffer, offset, length); |
758,062 | private DocumentFieldDescriptor.Builder createProcessParaDescriptor(final WebuiProcessClassInfo webuiProcesClassInfo, @NonNull final I_AD_Process_Para adProcessParam) {<NEW_LINE>final String parameterName = adProcessParam.getColumnName();<NEW_LINE>//<NEW_LINE>// Ask the provider if it has some custom lookup descriptor<... | lookupDescriptorProvider = webuiProcesClassInfo.getLookupDescriptorProviderOrNull(parameterName); |
519,109 | private static void fillInputRepresentation(ObjectMapper m, Map<String, Map<String, Object>> representationSamples, Action action, Operation operation, MimeType ramlInRepresentation) {<NEW_LINE>ramlInRepresentation.setType(operation.getInputPayLoad().getType());<NEW_LINE>if (RamlUtils.isPrimitiveType(operation.getInput... | ).put(mediaType, ramlInRepresentationWithMediaType); |
380,741 | public Iterator<IntTaggedWord> ruleIteratorByWord(int word, int loc, String featureSpec) {<NEW_LINE>if (word == wordIndex.indexOf(BOUNDARY)) {<NEW_LINE>// Deterministic tagging of the boundary symbol<NEW_LINE>return <MASK><NEW_LINE>} else if (isKnown(word)) {<NEW_LINE>// Strict lexical tagging for seen *lemma* types<NE... | rulesWithWord[word].iterator(); |
1,115,985 | public void read(RelationshipGroupRecord record, PageCursor cursor, RecordLoad mode, int recordSize, int recordsPerPage) {<NEW_LINE>// [ , x] in use<NEW_LINE>// [ ,xxx ] high next id bits<NEW_LINE>// [ xxx, ] high firstOut bits<NEW_LINE>long headerByte = cursor.getByte();<NEW_LINE>boolean inUse = isInUse((by... | long highByte = cursor.getByte(); |
864,145 | public static List<Value> filter(List<Value> entities, String property, String compare, List<Value> refValues) {<NEW_LINE>List<Value> newEntities = new ArrayList<>();<NEW_LINE>for (Value v : refValues) checkType2(property, v);<NEW_LINE>for (Value obj : entities) {<NEW_LINE>if (!(obj instanceof NameValue))<NEW_LINE>cont... | match = intersects(values, refValues); |
800,791 | public void marshall(AccountModification accountModification, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (accountModification == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(accountModification.getModi... | e.getMessage(), e); |
974,553 | public static void main(String[] args) throws IOException, ParseException {<NEW_LINE>Config conf = new Config();<NEW_LINE>// loads the default configuration file<NEW_LINE>Map<String, Object> defaultSCConfig = Utils.findAndReadConfigFile("crawler-default.yaml", false);<NEW_LINE>conf.putAll<MASK><NEW_LINE>Options options... | (ConfUtils.extractConfigElement(defaultSCConfig)); |
289,710 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>private void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>gotoLabel = <MASK><NEW_LINE>gotoCombo = new javax.swing.JComboBox();<NEW_LINE>setLayout(new java.awt.GridBagLayout());<NEW_... | new javax.swing.JLabel(); |
1,277,831 | private void moveTo(int index, TaxonomyNode target) {<NEW_LINE>Classification classification = target.getClassification();<NEW_LINE>if (classification == null)<NEW_LINE>throw new UnsupportedOperationException();<NEW_LINE>// if node is assignment *and* target contains assignment for same<NEW_LINE>// investment vehicle *... | getParent().removeChild(this); |
1,613,173 | public Composite createTab(Composite parent) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>TableColumnLayout layout = new TableColumnLayout();<NEW_LINE>container.setLayout(layout);<NEW_LINE>tableViewer = new TableViewer(container, SWT.FULL_SELECTION | SWT.MULTI);<NEW_LINE>CopyPasteSupport.e... | .setContentProvider(new ArrayContentProvider()); |
198,056 | private boolean extractAnnotation(CoreMap sourceAnnotation, CoreMapAggregator aggregator) {<NEW_LINE>Class<TypesafeMap.Key<List<? extends CoreMap>>> tokensAnnotationKey = extractFunc.tokensAnnotationField;<NEW_LINE>if (chunkOffsets != null) {<NEW_LINE>annotation = aggregator.merge((List<? extends CoreMap>) sourceAnnota... | ), chunkOffsets.getEnd()); |
901,610 | final DescribeTargetGroupsResult executeDescribeTargetGroups(DescribeTargetGroupsRequest describeTargetGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTargetGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
548,348 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Context ctx = getContext();<NEW_LINE>EditTextPreferenceEx editTextPreference = getEditTextPreference();<NEW_LINE>if (ctx == null || editTextPreference == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>items.add(new TitleItem(editTextPreference.getDialogTit... | text = savedInstanceState.getString(EDIT_TEXT_PREFERENCE_KEY); |
1,029,171 | public String parseIdentifier(boolean allowReservedWords) throws ParseException {<NEW_LINE>Token<JsTokenType> t = tq.peek();<NEW_LINE>String s = t.text;<NEW_LINE>switch(t.type) {<NEW_LINE>case WORD:<NEW_LINE>if (!allowReservedWords) {<NEW_LINE>Keyword k = Keyword.fromString(decodeIdentifier(s));<NEW_LINE>if (null != k)... | tq.currentPosition(), k); |
680,900 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
43,036 | public String poolContent() {<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>for (int i = 1; i < maxPoolSize; i++) {<NEW_LINE>result.append(String.format("#%02x: ", i));<NEW_LINE>int pos = offsets[i];<NEW_LINE>switch(types[i]) {<NEW_LINE>case UTF8:<NEW_LINE>result.append("Utf8 ").append(utf8s[i]);<NEW_LI... | .append(getClassName(i)); |
1,687,772 | public List<SDVariable> diff(List<SDVariable> i_v1) {<NEW_LINE>List<SDVariable> vals = doDiff(i_v1);<NEW_LINE>if (vals == null) {<NEW_LINE>throw new IllegalStateException("Error executing diff operation: doDiff returned null for op: " + this.opName());<NEW_LINE>}<NEW_LINE>val outputVars = args();<NEW_LINE>boolean copie... | gradVar = vals.get(i); |
1,379,178 | public List<LdapMapObject> fetchQueryResults(LdapMapQuery identityQuery) {<NEW_LINE>List<LdapMapObject> results = new ArrayList<>();<NEW_LINE>StringBuilder filter = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>filter = createIdentityTypeSearchFilter(identityQuery);<NEW_LINE>List<SearchResult> search;<NEW_LINE>search =... | String baseDN = identityQuery.getSearchDn(); |
942,555 | public void deleteDatasetTags(DeleteDatasetTags request, StreamObserver<DeleteDatasetTags.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>// Request Parameter Validation<NEW_LINE>String errorMessage = null;<NEW_LINE>if (request.getId().isEmpty() && request.getTagsList().isEmpty() && !request.getDeleteAll()) {<NEW... | getId(), ModelDBServiceActions.UPDATE); |
1,164,586 | protected ErrorCode processFlow(WorkFlow flow, WorkFlowVO vo, int position) {<NEW_LINE>if (vo == null) {<NEW_LINE>vo = new WorkFlowVO();<NEW_LINE>}<NEW_LINE>vo.setChainUuid(chainvo.getUuid());<NEW_LINE>vo.setName(flow.getName());<NEW_LINE>vo.setState(WorkFlowState.Processing);<NEW_LINE>vo.setContext(context.toBytes());... | , getName()), t); |
738,647 | public void addContact(ContactGroupIcqImpl parent, String screenname) {<NEW_LINE>if (logger.isTraceEnabled())<NEW_LINE>logger.trace("Adding contact " + screenname + <MASK><NEW_LINE>// if the contact is already in the contact list and is not volatile,<NEW_LINE>// then only broadcast an event<NEW_LINE>final ContactIcqImp... | " to parent=" + parent.getGroupName()); |
950,599 | private DataValue createPrimitiveClassData(int size, ValueType type) {<NEW_LINE>DataValue value = classStructure.createValue();<NEW_LINE>value.setInt(CLASS_SIZE, size);<NEW_LINE>value.setInt(CLASS_FLAGS, RuntimeClass.PRIMITIVE);<NEW_LINE>value.setInt(<MASK><NEW_LINE>value.setAddress(CLASS_SIMPLE_NAME, 0);<NEW_LINE>valu... | CLASS_IS_INSTANCE, functionTable.size()); |
1,751,325 | private static void createSummaries(SummaryGenerator generator, List<String> classesToAnalyze, final boolean doForceOverwrite, String toAnalyze, File outputFolder) {<NEW_LINE>ClassSummaries summaries = generator.createMethodSummaries(toAnalyze, classesToAnalyze, new IClassSummaryHandler() {<NEW_LINE><NEW_LINE>@Override... | outputFolder, summaryFile).exists(); |
1,213,211 | public PDOptionalContentGroup appendFormAsLayer(PDPage targetPage, PDFormXObject form, AffineTransform transform, String layerName) throws IOException {<NEW_LINE>PDDocumentCatalog catalog = targetDoc.getDocumentCatalog();<NEW_LINE>PDOptionalContentProperties ocprops = catalog.getOCProperties();<NEW_LINE>if (ocprops == ... | PDOptionalContentGroup layer = new PDOptionalContentGroup(layerName); |
1,675,479 | private JPanel buildHeader() {<NEW_LINE>JPanel header = new JPanel(new BorderLayout());<NEW_LINE>JPanel leftSide = new JPanel(new BorderLayout());<NEW_LINE>JPanel rightSide = new JPanel(new BorderLayout());<NEW_LINE>pingHeader = new WorldTableHeader("Ping", orderIndex == WorldOrder.PING, ascendingOrder, plugin::refresh... | new Dimension(WORLD_COLUMN_WIDTH, 0)); |
1,035,879 | public void updateStoragePool(StoragePool storagePool, Map<String, String> details) {<NEW_LINE>StoragePoolVO storagePoolVo = storagePoolDao.findById(storagePool.getId());<NEW_LINE>String strCapacityBytes = details.get(PrimaryDataStoreLifeCycle.CAPACITY_BYTES);<NEW_LINE>Long capacityBytes = strCapacityBytes != null ? Lo... | details.get(PrimaryDataStoreLifeCycle.CAPACITY_IOPS); |
1,363,635 | private void paintChildrenImpl(Graphics g) {<NEW_LINE>// Paint to an image without alpha to preserve fonts subpixel antialiasing<NEW_LINE>// new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_RGB);<NEW_LINE>BufferedImage image = ImageUtil.createImage(g, getWidth(), getHeight(), BufferedImage.TYPE_INT_RGB... | 1 / JBUIScale.sysScale(g2d); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.