idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
620,294 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
976,867 | static private void onnxTypeToJson(JsonGenerator g, Onnx.ValueInfoProto valueInfo) throws IOException {<NEW_LINE>g.writeStartObject();<NEW_LINE>g.writeStringField("name", valueInfo.getName());<NEW_LINE>g.writeStringField("type", onnxValueTypeToString(valueInfo.getType().getTensorType().getElemType()));<NEW_LINE>g.write... | "size", dim.getDimValue()); |
685,300 | protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>p = tcp.<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>} finally {<NEW_LINE>TcpProxy.putTcpProxy... | getSingle(RequestCmd.LOAD_APICALL_SUMMARY, param); |
1,040,451 | private static Pair<String, ArrayList<String>> build(Where where) {<NEW_LINE>StringBuilder selectionBuilder = new StringBuilder();<NEW_LINE>ArrayList<String> selectionArgsBuilder = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < where.whereSpecs.size(); i++) {<NEW_LINE>Object obj = <MASK><NEW_LINE>boolean and;<NE... | where.whereSpecs.get(i); |
1,717,037 | private void analyzeNonStdOutSink(final Sink sink) {<NEW_LINE>final CreateSourceAsProperties props = sink.getProperties();<NEW_LINE>analysis.setProperties(props);<NEW_LINE>if (!sink.shouldCreateSink()) {<NEW_LINE>final DataSource existing = metaStore.getSource(sink.getName());<NEW_LINE>if (existing == null) {<NEW_LINE>... | .getDataSource().getKsqlTopic(); |
1,289,257 | private void drawArrows(Point[] point, Canvas canvas, Paint paint) {<NEW_LINE>float[] points = new float[8];<NEW_LINE>points[0] = point[0].x;<NEW_LINE>points[1] = point[0].y;<NEW_LINE>points[2<MASK><NEW_LINE>points[3] = point[1].y;<NEW_LINE>points[4] = point[2].x;<NEW_LINE>points[5] = point[2].y;<NEW_LINE>points[6] = p... | ] = point[1].x; |
677,901 | public boolean extractFrom(@Nonnull AdvancedGasConduit advancedGasConduit, @Nonnull EnumFacing dir, int maxExtractPerTick) {<NEW_LINE>if (tank.isFull()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IGasHandler extTank = getTankContainer(advancedGasConduit, dir);<NEW_LINE>if (extTank != null) {<NEW_LINE>int maxExtract =... | maxExtractPerTick, tank.getNeeded()); |
1,448,091 | public static BeanComponentDefinition parseInnerHandlerDefinition(Element element, ParserContext parserContext) {<NEW_LINE>// parses out the inner bean definition for concrete implementation if defined<NEW_LINE>List<Element> childElements = DomUtils.getChildElementsByTagName(element, "bean");<NEW_LINE>BeanComponentDefi... | , parserContext.extractSource(element)); |
1,196,921 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent minionLeshrac = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (controller != null && minionLeshrac != null) {<NEW_LINE>FilterControlledPermanent filterCreatu... | TargetControlledPermanent target = new TargetControlledPermanent(filterCreature); |
1,623,680 | public static void HtoRt(CvMat H, CvMat R, CvMat t) {<NEW_LINE>CvMat M = M3x2.get(), S = S2x2.get(), U = U3x2.get()<MASK><NEW_LINE>M.put(H.get(0), H.get(1), H.get(3), H.get(4), H.get(6), H.get(7));<NEW_LINE>cvSVD(M, S, U, V, CV_SVD_V_T);<NEW_LINE>double lambda = S.get(3);<NEW_LINE>t.put(H.get(2) / lambda, H.get(5) / la... | , V = V2x2.get(); |
1,322,222 | public Group createAdministrators(Context context, Community community) throws SQLException, AuthorizeException {<NEW_LINE>// Check authorisation - Must be an Admin to create more Admins<NEW_LINE>AuthorizeUtil.authorizeManageAdminGroup(context, community);<NEW_LINE><MASK><NEW_LINE>if (admins == null) {<NEW_LINE>// turn... | Group admins = community.getAdministrators(); |
1,243,298 | public ClassicLinkDnsSupport unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ClassicLinkDnsSupport classicLinkDnsSupport = new ClassicLinkDnsSupport();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<... | ().unmarshall(context)); |
1,227,752 | public Vector ifilter(double threshold) {<NEW_LINE>if (storage.isDense()) {<NEW_LINE>int[] values = ((LongIntVectorStorage) storage).getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (Math.abs(values[i]) <= threshold) {<NEW_LINE>values[i] = 0;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else if (storage.... | LongIntVectorStorage) storage).getValues(); |
569,712 | /*<NEW_LINE>* Public Instance Methods<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void handleInsert(@NotNull InsertionContext context, @NotNull LookupElement item) {<NEW_LINE>int tailOffset = context.getTailOffset();<NEW_LINE>Document document = context.getDocument();<NEW_LINE>int documentTextLength = document.getTe... | ).insertString(tailOffset, "()"); |
5,889 | public SingularSortedSet2<T> build() {<NEW_LINE>java.util.SortedSet<java.lang.Object> rawTypes = new java.util.TreeSet<java.lang.Object>();<NEW_LINE>if (this.rawTypes != null)<NEW_LINE>rawTypes.addAll(this.rawTypes);<NEW_LINE>rawTypes = java.util.Collections.unmodifiableSortedSet(rawTypes);<NEW_LINE>java.util.SortedSet... | util.TreeSet<Integer>(); |
281,008 | public void handleEvent(@NonNull final PPOrderChangedEvent ppOrderChangedEvent) {<NEW_LINE>updateMainData(ppOrderChangedEvent);<NEW_LINE>final List<PPOrderLine> newPPOrderLines = ppOrderChangedEvent.getNewPPOrderLines();<NEW_LINE>final OrgId orgId = ppOrderChangedEvent<MASK><NEW_LINE>final ZoneId timeZone = orgDAO.getT... | .getEventDescriptor().getOrgId(); |
1,080,330 | private void createMapView(IArchimateModel smodel) {<NEW_LINE>diagramModel = IArchimateFactory.eINSTANCE.createArchimateDiagramModel();<NEW_LINE>diagramModel.setName(Messages.CreateMapViewCheatSheetAction_6);<NEW_LINE>// Add diagram model *first* to get id!<NEW_LINE>parentFolder = model.getDefaultFolderForObject(diagra... | 20, y, 400, 100); |
1,344,854 | public void propagate(InstanceState state) {<NEW_LINE>// get attributes<NEW_LINE>final var dataWidth = state.getAttributeValue(StdAttr.FP_WIDTH);<NEW_LINE>// compute outputs<NEW_LINE>final var a = state.getPortValue(IN0);<NEW_LINE>final var b = state.getPortValue(IN1);<NEW_LINE>final var a_val = dataWidth.getWidth() ==... | getWidth() + 2) * PER_DELAY; |
1,544,670 | private void checkForm() {<NEW_LINE>File selFile = platformChooser.getSelectedFile();<NEW_LINE>boolean invalid = true;<NEW_LINE>if (selFile != null) {<NEW_LINE>// #73123<NEW_LINE>File <MASK><NEW_LINE>if (/* #60133 */<NEW_LINE>NbPlatform.isPlatformDirectory(plafDir)) {<NEW_LINE>try {<NEW_LINE>setPlafLabel(cleanupLabel(N... | plafDir = FileUtil.normalizeFile(selFile); |
557,778 | private void configureKeepAliveVisualizer() {<NEW_LINE>final KeepAliveMonitor kaMonitor = monitor.getKeepAliveMonitor();<NEW_LINE>SimpleXYChartDescriptor desc = SimpleXYChartDescriptor.decimal(10, false, 500);<NEW_LINE>desc.addLineItems("Refused", "Flushed", "Timed Out");<NEW_LINE>keepAliveChart = ChartFactory.createSi... | sharedInstance().unschedule(kaRefreshTask); |
1,439,346 | private Sendung createGODeliveryOrder(final DeliveryOrder request, final GOOrderStatus status) {<NEW_LINE>final <MASK><NEW_LINE>final GoDeliveryOrderData goDeliveryOrderData = GoDeliveryOrderData.ofDeliveryOrder(request);<NEW_LINE>final HWBNumber hwbNumber = goDeliveryOrderData.getHwbNumber();<NEW_LINE>final Sendung.Ab... | OrderId orderId = request.getOrderId(); |
729,144 | public static LookupDataSourceContext mergeToMultipleIds(@NonNull final Collection<LookupDataSourceContext> contexts) {<NEW_LINE>Check.assumeNotEmpty(contexts, "empty contexts not allowed");<NEW_LINE>LookupDataSourceContext templateContext = null;<NEW_LINE>IdsToFilter idsToFilter = null;<NEW_LINE>for (final LookupDataS... | .withIdToFilter(IdsToFilter.NO_VALUE)); |
519,340 | public static ElementDeclaration fromJson(JsonObject jsonObject) {<NEW_LINE>String name = jsonObject.get("name").getAsString();<NEW_LINE>String kind = jsonObject.get("kind").getAsString();<NEW_LINE>int fileIndex = jsonObject.get("fileIndex").getAsInt();<NEW_LINE>int offset = jsonObject.get("offset").getAsInt();<NEW_LIN... | codeLength, className, mixinName, parameters); |
42,297 | public void run(RegressionEnvironment env) {<NEW_LINE>SupportBean bean = new SupportBean();<NEW_LINE>bean.setTheString("a\nc");<NEW_LINE>bean.setIntPrimitive(1);<NEW_LINE>bean.setIntBoxed(992);<NEW_LINE>bean.setCharPrimitive('x');<NEW_LINE>bean.setEnumValue(SupportEnum.ENUM_VALUE_2);<NEW_LINE>env.compileDeploy("@name('... | + " <longPrimitive>0</longPrimitive>\n" + " <shortPrimitive>0</shortPrimitive>\n" + " <theString>a\\u000ac</theString>\n" + "</supportBean>"; |
1,665,476 | private JDBCCollection convertStringToCollection(@NotNull DBCSession session, @NotNull DBSTypedObject arrayType, @NotNull PostgreDataType itemType, @NotNull String value) throws DBCException {<NEW_LINE>String delimiter;<NEW_LINE>PostgreDataType arrayDataType = PostgreUtils.findDataType(session, (PostgreDataSource) sess... | itemType, itemString, false, false); |
1,531,736 | private void editSelectedPolicyMapping() {<NEW_LINE>int selectedRow = jtPolicyMappings.getSelectedRow();<NEW_LINE>if (selectedRow != -1) {<NEW_LINE>PolicyMapping policyMapping = (PolicyMapping) jtPolicyMappings.getValueAt(selectedRow, 0);<NEW_LINE>Container container = getTopLevelAncestor();<NEW_LINE>DPolicyMappingChoo... | PolicyMappingsUtil.add(newPolicyMapping, policyMappings); |
760,828 | private Header parseHeader(InputStream stream) throws IOException {<NEW_LINE>DataInputStream dis = new DataInputStream(stream);<NEW_LINE>// Check if the stream starts with the expected header<NEW_LINE>String header = dis.readUTF();<NEW_LINE>if (!header.equals(HEADER)) {<NEW_LINE>throw new IllegalArgumentException("Coul... | String strategyClassName = dis.readUTF(); |
1,659,581 | public String generateResultsDataUpdateScript(@NotNull DBRProgressMonitor monitor, @NotNull WebSQLContextInfo contextInfo, @NotNull String resultsId, @Nullable List<WebSQLResultsRow> updatedRows, @Nullable List<WebSQLResultsRow> deletedRows, @Nullable List<WebSQLResultsRow> addedRows, @Nullable WebDataFormat dataFormat... | addedRows, dataFormat, resultBatches, null); |
1,656,111 | static GatewayObserver compose(GatewayObserver first, GatewayObserver second) {<NEW_LINE>if (first == GatewayObserver.NOOP_LISTENER) {<NEW_LINE>return second;<NEW_LINE>}<NEW_LINE>if (second == GatewayObserver.NOOP_LISTENER) {<NEW_LINE>return first;<NEW_LINE>}<NEW_LINE>final GatewayObserver[] combinedObservers;<NEW_LINE... | ((CompositeGatewayObserver) second).observers; |
802,321 | public void read(org.apache.thrift.protocol.TProtocol iprot, EchoReplyMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == or... | struct.header = new AsyncMessageHeader(); |
1,002,630 | private ExecutionPlan buildPlanForBackfillDuplicateCheck(TableMeta tableMeta, List<String> outputColumns, List<String> filterColumns, boolean useHint) {<NEW_LINE>initParams(0);<NEW_LINE>// Build select list<NEW_LINE>final SqlNodeList selectList = new SqlNodeList(outputColumns.stream().map(c -> new SqlIdentifier(c, SqlP... | ()), SqlParserPos.ZERO); |
1,628,612 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>@Override<NEW_LINE>public void initializeDefaultPreferences() {<NEW_LINE>IEclipsePreferences prefs = DefaultScope.I... | INSTANCE.getNode(CorePlugin.PLUGIN_ID); |
197,162 | private Event toEvent(Object event) {<NEW_LINE>SerializedObject<byte[]> serializedPayload;<NEW_LINE>MetaData metadata;<NEW_LINE>String requestId = null;<NEW_LINE>if (event instanceof EventMessage<?>) {<NEW_LINE>serializedPayload = ((EventMessage<?>) event).serializePayload(serializer, byte[].class);<NEW_LINE>metadata =... | .getInstance().generateIdentifier(); |
1,564,994 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>if (controller.chooseUse(Outcome.PutCreatureInPlay, choiceText, source, game)) {<NEW_LINE>TargetCardInHand target = new TargetCardInHand(StaticFilters.FILT... | DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(sacrificeEffect); |
1,641,733 | public void onReadRemoteRssi(@NonNull final BluetoothGatt gatt, @IntRange(from = -128, to = 20) final int rssi, final int status) {<NEW_LINE>if (status == BluetoothGatt.GATT_SUCCESS) {<NEW_LINE>log(Log.INFO, () -> "Remote RSSI received: " + rssi + " dBm");<NEW_LINE>if (request instanceof ReadRssiRequest) {<NEW_LINE>((R... | notifySuccess(gatt.getDevice()); |
66,864 | public ArrayList<Ring> combineToRings(List<Way> ways) {<NEW_LINE>// make a list of multiLines (connecter pieces of way)<NEW_LINE>TLongObjectHashMap<List<Way>> multilineStartPoint = new TLongObjectHashMap<List<Way>>();<NEW_LINE>TLongObjectHashMap<List<Way>> multilineEndPoint = new TLongObjectHashMap<List<Way>>();<NEW_LI... | , getLastId(changedWay), changedWay); |
885,050 | public void run() {<NEW_LINE>BufferedReader br = null;<NEW_LINE>try {<NEW_LINE>br = new BufferedReader(new InputStreamReader(externalProcess.getInputStream()));<NEW_LINE>String line;<NEW_LINE>while ((line = br.readLine()) != null) {<NEW_LINE>processOutput.append(line).append("\n");<NEW_LINE>if (line.indexOf("SCRIPT_SUC... | debug(e.getMessage()); |
1,556,070 | public synchronized static ImageNameSubstitutor instance() {<NEW_LINE>if (instance == null) {<NEW_LINE>final String configuredClassName = TestcontainersConfiguration.getInstance().getImageSubstitutorClassName();<NEW_LINE>if (configuredClassName != null) {<NEW_LINE>log.debug("Attempting to instantiate an ImageNameSubsti... | "Image name substitution will be performed by: {}", instance.getDescription()); |
1,242,597 | private StringBuilder genQuery() {<NEW_LINE>int columnCount = 0;<NEW_LINE>StringBuilder sb = new StringBuilder(INSERT_INTO);<NEW_LINE>sb.append(keyspace + <MASK><NEW_LINE>sb.append(OPEN_PARA);<NEW_LINE>Iterator<ColumnDefinition> iter = cfDef.getPartitionKeyColumnDefinitionList().iterator();<NEW_LINE>while (iter.hasNext... | "." + cfDef.getName()); |
1,200,361 | private Mono<StatefulRedisMasterReplicaConnection<K, V>> initializeConnection(RedisCodec<K, V> codec, Tuple2<RedisURI, StatefulRedisConnection<K, V>> connectionAndUri) {<NEW_LINE>ReplicaTopologyProvider topologyProvider = new ReplicaTopologyProvider(connectionAndUri.getT2(), connectionAndUri.getT1());<NEW_LINE>MasterRe... | refreshFuture = refresh.getNodes(redisURI); |
153,511 | private List<SettingsItem> processItems(@NonNull File file, @Nullable List<SettingsItem> items) throws IllegalArgumentException, IOException {<NEW_LINE>boolean collecting = items == null;<NEW_LINE>if (collecting) {<NEW_LINE>items = getItemsFromJson(file);<NEW_LINE>}<NEW_LINE>if (items.isEmpty()) {<NEW_LINE>throw new Il... | checkEntryName(entry.getName()); |
415,531 | public void fill() throws JRException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>File sourceFile = new File("build/reports/AlterDesignReport.jasper");<NEW_LINE>System.err.println(" : " + sourceFile.getAbsolutePath());<NEW_LINE>JasperReport jasperReport = (JasperReport) JRLoader.loadObject(sourceFile);... | getTitle().getElementByKey("third.rectangle"); |
1,477,187 | public void layoutContainer(Container parent) {<NEW_LINE>final var in = parent.getInsets();<NEW_LINE>final var maxWidth = parent.getWidth() - (in.left + in.right);<NEW_LINE>final var maxHeight = parent.getHeight() - (in.top + in.bottom);<NEW_LINE>int split;<NEW_LINE>if (fraction <= 0.0) {<NEW_LINE>split = 0;<NEW_LINE>d... | comp0.getMinimumSize().height); |
962,225 | private void showRouteOnMap(List<WptPt> points) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (points.size() > 0 && mapActivity != null) {<NEW_LINE>OsmandMapTileView mapView = mapActivity.getMapView();<NEW_LINE>double left = 0, right = 0;<NEW_LINE>double top = 0, bottom = 0;<NEW_LINE>Location myLoc... | bottom, pt.getLatitude()); |
1,494,061 | public IoBuffer encodePing(Ping ping) {<NEW_LINE>int len;<NEW_LINE>short type = ping.getEventType();<NEW_LINE>switch(type) {<NEW_LINE>case Ping.CLIENT_BUFFER:<NEW_LINE>len = 10;<NEW_LINE>break;<NEW_LINE>case Ping.PONG_SWF_VERIFY:<NEW_LINE>len = 44;<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>len = 6;<NEW_LINE>}<NEW_LINE... | getValue2().intValue()); |
453,405 | public void configure(Parameterization config) {<NEW_LINE>//<NEW_LINE>new ObjectListParameter<SpatialSorter>(CURVES_ID, SpatialSorter.class).grab(config, x -> curvegen = x);<NEW_LINE>//<NEW_LINE>new DoubleParameter(WINDOW_ID, 10.0).grab(config, x -> window = x);<NEW_LINE>//<NEW_LINE>//<NEW_LINE>new IntParameter(VARIANT... | config, x -> random = x); |
1,745,621 | protected static void start(Remote remote) throws Exception {<NEW_LINE>setupRMI();<NEW_LINE>banJNDI();<NEW_LINE>if (ourRemote != null)<NEW_LINE>throw new AssertionError("Already started");<NEW_LINE>ourRemote = remote;<NEW_LINE>Registry registry;<NEW_LINE>int port;<NEW_LINE>for (Random random = new Random(); ; ) {<NEW_L... | waitTime = deadHand.ping(id); |
469,932 | public static Download from(Cursor cursor) {<NEW_LINE>Download download = new Download();<NEW_LINE>download.mId = cursor.getLong(cursor.getColumnIndex(DownloadManager.COLUMN_ID));<NEW_LINE>download.mUri = cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_URI));<NEW_LINE>int status = cursor.getInt(cursor.get... | .getColumnIndex(DownloadManager.COLUMN_REASON)); |
1,738,315 | protected Long createAclListForNetworkAndReturnAclListId(CreateNetworkACLCmd aclItemCmd, Network network) {<NEW_LINE>s_logger.debug("Network " + network.getId() + " is not associated with any ACL. Creating an ACL before adding acl item");<NEW_LINE>if (!networkModel.areServicesSupportedByNetworkOffering(network.getNetwo... | ), aclItemCmd.isDisplay()); |
474,631 | private void altCommitToOriginal(@Nonnull DocumentEvent e) {<NEW_LINE>final PsiFile origPsiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(myOrigDocument);<NEW_LINE>String newText = myNewDocument.getText();<NEW_LINE>// prepare guarded blocks<NEW_LINE>Map<String, String> replacementMap = new LinkedHashMap<>(... | fixDocumentQuotes(myOrigDocument, hostStartOffset - 1); |
1,426,708 | final DeleteScheduledAuditResult executeDeleteScheduledAudit(DeleteScheduledAuditRequest deleteScheduledAuditRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteScheduledAuditRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteScheduledAudit"); |
600,483 | public Mono<MatchResult> matches(ServerWebExchange exchange) {<NEW_LINE>List<MediaType> httpRequestMediaTypes;<NEW_LINE>try {<NEW_LINE>httpRequestMediaTypes = resolveMediaTypes(exchange);<NEW_LINE>} catch (NotAcceptableStatusException ex) {<NEW_LINE>this.logger.debug("Failed to parse MediaTypes, returning false", ex);<... | isCompatibleWith = matchingMediaType.isCompatibleWith(httpRequestMediaType); |
260,590 | public static DescribeCacheAnalysisReportListResponse unmarshall(DescribeCacheAnalysisReportListResponse describeCacheAnalysisReportListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCacheAnalysisReportListResponse.setRequestId(_ctx.stringValue("DescribeCacheAnalysisReportListResponse.RequestId"));<NEW_LINE>des... | = new ArrayList<DailyTask>(); |
624,417 | private void registerMetadata(final String rpcType, final String contextPath, final MetaDataRegisterDTO metadata) {<NEW_LINE>String metadataNodeName = buildMetadataNodeName(metadata);<NEW_LINE>String metaDataPath = RegisterPathConstants.buildMetaDataParentPath(rpcType, contextPath);<NEW_LINE>if (!zkClient.exists(metaDa... | RegisterPathConstants.buildRealNode(metaDataPath, metadataNodeName); |
1,380,819 | public Project doInTransaction(TransactionStatus status) {<NEW_LINE>// Create an account associated with the project<NEW_LINE>StringBuilder acctNm = new StringBuilder("PrjAcct-");<NEW_LINE>acctNm.append(name).append("-").<MASK><NEW_LINE>Account projectAccount = _accountMgr.createAccount(acctNm.toString(), Account.Type.... | append(ownerFinal.getDomainId()); |
717,821 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.<MASK><NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>FilterControlledPermanent filter = new FilterControlledPermanent("creature");<NEW_LINE>filter.add(CardType.CREATURE.getPredicate());<NEW... | getTargets().getFirstTarget()); |
772,623 | void collectDbStats(ArrayList<DbStats> dbStatsList) {<NEW_LINE>// Get information about the main database.<NEW_LINE>int lookaside = nativeGetDbLookaside(mConnectionPtr);<NEW_LINE>long pageCount = 0;<NEW_LINE>long pageSize = 0;<NEW_LINE>try {<NEW_LINE>pageCount = executeForLong("PRAGMA page_count;", null, null);<NEW_LIN... | (lookaside, pageCount, pageSize)); |
70,424 | void createOAuth2ClientFilter(BeanReference requestCache, BeanReference authenticationManager, BeanReference authenticationFilterSecurityContextRepositoryRef) {<NEW_LINE>Element oauth2ClientElt = DomUtils.getChildElementByTagName(this.httpElt, Elements.OAUTH2_CLIENT);<NEW_LINE>if (oauth2ClientElt == null) {<NEW_LINE>re... | (this.authorizationCodeGrantFilter, authorizationCodeGrantFilterId)); |
1,358,347 | public com.amazonaws.services.lexruntimev2.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lexruntimev2.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.lexruntimev2.model.ResourceNotFoundExce... | int originalDepth = context.getCurrentDepth(); |
1,396,145 | final DeleteFileShareResult executeDeleteFileShare(DeleteFileShareRequest deleteFileShareRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFileShareRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Storage Gateway"); |
1,508,774 | final UpdateLoggingConfigurationResult executeUpdateLoggingConfiguration(UpdateLoggingConfigurationRequest updateLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | endClientExecution(awsRequestMetrics, request, response); |
1,010,615 | private static LinkedHashMap<String, List<RestLogFileHandle>> sortHandles(List<RestLogFileHandle> handles) {<NEW_LINE>// group by taskName<NEW_LINE>Map<String, List<RestLogFileHandle>> group = new HashMap<>();<NEW_LINE>for (RestLogFileHandle handle : handles) {<NEW_LINE>List<RestLogFileHandle> list = group.get(handle.g... | handle.getTaskName(), list); |
1,274,346 | private GraphQLResponse process(final String requestJson, final String operationName, final Map<String, Object> variables) {<NEW_LINE>Map<GraphQLContextType, Object> contextMap = new ConcurrentHashMap<>();<NEW_LINE>contextMap.putAll(graphQlContextMap);<NEW_LINE>contextMap.put(GraphQLContextType.IS_ALIVE_HANDLER, new Is... | > toSpecificationResult = result.toSpecification(); |
193,161 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int xValue = source.getManaCostsToPay().getX();<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary()<MASK><NEW_LINE>player.lo... | .getTopCards(game, xValue)); |
1,256,275 | public SwitchCase convert(org.eclipse.jdt.internal.compiler.ast.CaseStatement statement) {<NEW_LINE>SwitchCase switchCase = new SwitchCase(this.ast);<NEW_LINE>if (this.ast.apiLevel >= AST.JLS14_INTERNAL) {<NEW_LINE>org.eclipse.jdt.internal.compiler.ast.Expression[] expressions = statement.constantExpressions;<NEW_LINE>... | 0 ? constantExpressions[0] : null; |
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... | , "Perform property substitution. Use the specified file " + "as a source of properties, and replace keys identified with {$[property name]} with the value defined " + "in the properties file.")); |
1,137,336 | public void acaoBotaoPickColor(WebButton botao, String tema, PainelCor pc) {<NEW_LINE>botao.addActionListener(new AbstractAction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>Color cor = JColorChooser.showDialog(null, "Selecione a cor", pc.getSelectedColor());<NEW_LINE>... | ColorController.COR_LETRA_TITULO, 1, true); |
252,443 | @Consume(HibernateEnhancersRegisteredBuildItem.class)<NEW_LINE>void build(PanacheHibernateOrmRecorder recorder, CombinedIndexBuildItem index, BuildProducer<BytecodeTransformerBuildItem> transformers, List<PanacheEntityClassBuildItem> entityClasses, Optional<JpaModelPersistenceUnitMappingBuildItem> jpaModelPersistenceUn... | ), methodCustomizers, JavaJpaTypeBundle.BUNDLE); |
617,993 | public static String obfuscate(String s) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>byte[] b = s.getBytes(StandardCharsets.UTF_8);<NEW_LINE>buf.append(__OBFUSCATE);<NEW_LINE>for (int i = 0; i < b.length; i++) {<NEW_LINE>byte b1 = b[i];<NEW_LINE>byte b2 = b[b.length - (i + 1)];<NEW_LINE>if (b1 < 0 || b... | + j2 - 254) / 2); |
1,684,225 | public Response<Void> deleteByIdWithResponse(String id, Boolean deleteRunningTasks, Context context) {<NEW_LINE>String groupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (groupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s... | format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); |
721,980 | private void cleanConfig() {<NEW_LINE>removeInvalidTags("tagtabs");<NEW_LINE>List<String> tags = configManager.getConfigurationKeys(CONFIG_GROUP + ".item_");<NEW_LINE>tags.forEach(s -> {<NEW_LINE>String[] split = s.split("\\.", 2);<NEW_LINE>removeInvalidTags(split[1]);<NEW_LINE>});<NEW_LINE>List<String> icons = configM... | (CONFIG_GROUP, split[1]); |
1,383,071 | public int compare(DLNAResource o1, DLNAResource o2) {<NEW_LINE>if (getDiscNum(o1) == null || getDiscNum(o2) == null || getDiscNum(o1).equals(getDiscNum(o2))) {<NEW_LINE>if (o1 != null && o1.getFormat() != null && o1.getFormat().isAudio()) {<NEW_LINE>if (o2 != null && o2.getFormat() != null && o2.getFormat().isAudio())... | compareTo(o2.getDisplayNameBase()); |
617,951 | // return true if commit success and publish success, return false if publish timeout<NEW_LINE>private boolean loadTxnCommitImpl(TLoadTxnCommitRequest request) throws UserException {<NEW_LINE><MASK><NEW_LINE>if (Strings.isNullOrEmpty(cluster)) {<NEW_LINE>cluster = SystemInfoService.DEFAULT_CLUSTER;<NEW_LINE>}<NEW_LINE>... | String cluster = request.getCluster(); |
407,573 | void compileSingleFile(Path filePath, Path outputDir, AvroOptions options) throws CodeGenException {<NEW_LINE>try (Idl parser = new Idl(filePath.toFile())) {<NEW_LINE>Protocol idlProtocol = parser.CompilationUnit();<NEW_LINE>String json = idlProtocol.toString(false);<NEW_LINE>Protocol protocol = Protocol.parse(json);<N... | toString() + " to Java", e); |
849,339 | private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>supertypePanel = new javax.swing.JPanel();<NEW_LINE>supertypeCombo = new javax.swing.JComboBox();<NEW_LINE>supertypeLabel = new javax.swing.JLabel();<NEW_LINE>chooseLabel = <MASK... | new javax.swing.JLabel(); |
1,011,094 | // submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 1) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>Path in_path = new Path(args[0]);<NEW_LINE>System.out.println("\n-----===[PEGASUS: A Peta-Scale Graph Mining System]===-----\n");<NEW_LINE>Syst... | in_path.getName() + "\n"); |
1,570,926 | private void generateWritesGroup() {<NEW_LINE>GridData gridData;<NEW_LINE>Group gCacheWrites = new Group(panel, SWT.NULL);<NEW_LINE>Messages.setLanguageText(gCacheWrites, "CacheView.writes.title");<NEW_LINE>gCacheWrites.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));<NEW_LINE>GridLayout layoutGeneral = new GridL... | Messages.setLanguageText(lbl, "CacheView.writes.toFile"); |
326,827 | private void deleteDataInFiles(Collection<TsFileResource> tsFileResourceList, Deletion deletion, Set<PartialPath> devicePaths, List<ModificationFile> updatedModFiles, long planIndex, TimePartitionFilter timePartitionFilter) throws IOException {<NEW_LINE>for (TsFileResource tsFileResource : tsFileResourceList) {<NEW_LIN... | .getModFile().close(); |
94,561 | private void attachCluster(final APIAttachPrimaryStorageToClusterMsg msg, final NoErrorCompletion completion) {<NEW_LINE>final APIAttachPrimaryStorageToClusterEvent evt = new APIAttachPrimaryStorageToClusterEvent(msg.getId());<NEW_LINE>try {<NEW_LINE>extpEmitter.preAttach(self, msg.getClusterUuid());<NEW_LINE>} catch (... | self, msg.getClusterUuid()); |
707,379 | private static GeoJsonFeature parseFeature(JSONObject geoJsonFeature) {<NEW_LINE>String id = null;<NEW_LINE>LatLngBounds boundingBox = null;<NEW_LINE>Geometry geometry = null;<NEW_LINE>HashMap<String, String> properties = new HashMap<String, String>();<NEW_LINE>try {<NEW_LINE>if (geoJsonFeature.has(FEATURE_ID)) {<NEW_L... | "Feature could not be successfully parsed " + geoJsonFeature.toString()); |
1,713,209 | protected void registerTables() {<NEW_LINE>registerHemp();<NEW_LINE>register(StoneDecoration.concreteSprayed, LootTable.lootTable());<NEW_LINE>register(WoodenDevices.windmill, LootTable.lootTable().withPool(createPoolBuilder().add(LootItem.lootTableItem(WoodenDevices.windmill).apply(new WindmillLootFunction.Builder()))... | MetalDevices.toolbox, tileDrop()); |
1,786,207 | public void generateEvidence(IndentWriter writer) {<NEW_LINE>writer.println("BT announce:");<NEW_LINE>try {<NEW_LINE>writer.indent();<NEW_LINE>writer.println("state: " + tracker_state + ", in_progress=" + update_in_progress);<NEW_LINE>writer.println("current: " + (lastUsedUrl == null ? "null" : lastUsedUrl.toString()))... | "stopped: " + stopped + ", for_q=" + stopped_for_queue); |
903,094 | public ListAppsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAppsResult listAppsResult = new ListAppsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | )).unmarshall(context)); |
1,658,810 | private ArrayDBIDs updateKNNsAfterInsertion(DBIDs ids) {<NEW_LINE>ArrayModifiableDBIDs rkNN_ids = DBIDUtil.newArray();<NEW_LINE>DBIDs oldids = DBIDUtil.difference(relation.getDBIDs(), ids);<NEW_LINE>for (DBIDIter iter = oldids.iter(); iter.valid(); iter.advance()) {<NEW_LINE>KNNList kNNs = storage.get(iter);<NEW_LINE>d... | distanceQuery.distance(iter, iter2); |
1,277,296 | public static void main(String[] args) {<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.out.println("Usage: java twitter4j.examples.list.CreateUserList [list name] [list description]");<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Twitter twitter = new TwitterFactory().getInstance();<NEW_LINE>String de... | [0], true, description); |
671,460 | protected void evaluateTables(List<SlimAssertion> assertions, Map<String, Object> instructionResults) throws SlimCommunicationException {<NEW_LINE>for (SlimAssertion a : assertions) {<NEW_LINE>final String key = a.getInstruction().getId();<NEW_LINE>final Object returnValue = instructionResults.get(key);<NEW_LINE>// Exc... | getExpectation().evaluateExpectation(returnValue); |
1,064,835 | private void handleLineWithFlags(String line, List<String> result) {<NEW_LINE>String[] parts = cleanTagsAndEscapeChars<MASK><NEW_LINE>if (parts.length != 2) {<NEW_LINE>throw new IllegalArgumentException("Unexpected line format, expected at most one slash: " + line);<NEW_LINE>}<NEW_LINE>String word = parts[0];<NEW_LINE>... | (line).split("/"); |
82,371 | private KubernetesSupportedVersionResponse createKubernetesSupportedVersionResponse(final KubernetesSupportedVersion kubernetesSupportedVersion) {<NEW_LINE>KubernetesSupportedVersionResponse response = new KubernetesSupportedVersionResponse();<NEW_LINE>response.setObjectName("kubernetessupportedversion");<NEW_LINE>resp... | setSemanticVersion(kubernetesSupportedVersion.getSemanticVersion()); |
1,451,404 | public static Optional<ServerInterceptor> toServerInterceptor(File configFile, Class<?> grpcServiceClass) {<NEW_LINE>// From a global rate metering config file, create a specific gRPC service<NEW_LINE>// interceptor configuration in the form of an interceptor constructor argument,<NEW_LINE>// a map<method-name, rate-me... | (grpcServiceClass)).findFirst(); |
53,510 | public Map<String, Object> doGetLiveReports(String full) {<NEW_LINE>Map<String, Object> returnMap = new HashMap<>();<NEW_LINE>Map<String, Object> ingestionStatsAndErrors = new HashMap<>();<NEW_LINE>Map<String, Object> payload = new HashMap<>();<NEW_LINE>Pair<Map<String, Object>, Map<String, Object>> rowStatsAndUnparseb... | (IndexTask) currentSubTaskHolder.getTask(); |
938,702 | public static APIAddImageEvent __example__() {<NEW_LINE>APIAddImageEvent event = new APIAddImageEvent();<NEW_LINE>ImageInventory inv = new ImageInventory();<NEW_LINE><MASK><NEW_LINE>ImageBackupStorageRefInventory ref = new ImageBackupStorageRefInventory();<NEW_LINE>ref.setBackupStorageUuid(uuid());<NEW_LINE>ref.setImag... | inv.setUuid(uuid()); |
273,735 | // ManagedService<NEW_LINE>@Override<NEW_LINE>public void init(NodeEngine engine, Properties hzProperties) {<NEW_LINE>this.nodeEngine = (NodeEngineImpl) engine;<NEW_LINE>this.config = <MASK><NEW_LINE>jetInstance = new JetInstanceImpl((HazelcastInstanceImpl) engine.getHazelcastInstance(), config);<NEW_LINE>taskletExecut... | findJetServiceConfig(engine.getConfig()); |
57,765 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>public RestConditionValue update(@Context HttpServletRequest request, @Context final HttpServletResponse response, @PathParam("siteId") String siteId, @PathParam("conditionId") String conditionId, @PathParam("valueId") String ... | siteId, BadRequestException.class, "Site Id is required."); |
866,071 | private void printStartupInfo() {<NEW_LINE>boolean corsEnabled = _config.getBoolean(WebServerConfig.WEBSERVER_HTTP_CORS_ENABLED_CONFIG);<NEW_LINE>String webApiUrlPrefix = <MASK><NEW_LINE>String uiUrlPrefix = _config.getString(WebServerConfig.WEBSERVER_UI_URLPREFIX_CONFIG);<NEW_LINE>String webDir = _config.getString(Web... | _config.getString(WebServerConfig.WEBSERVER_API_URLPREFIX_CONFIG); |
730,058 | public static ListSuccessInstanceAmountResponse unmarshall(ListSuccessInstanceAmountResponse listSuccessInstanceAmountResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSuccessInstanceAmountResponse.setRequestId(_ctx.stringValue("ListSuccessInstanceAmountResponse.RequestId"));<NEW_LINE>InstanceStatusTrend instanceStatu... | ("ListSuccessInstanceAmountResponse.InstanceStatusTrend.AvgTrend[" + i + "].TimePoint")); |
1,467,332 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6, String path7, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Work work = null;<NEW_LINE>tr... | effectivePerson, work, WoControl.class); |
1,047,260 | // endregion Active call<NEW_LINE>// region Call setup<NEW_LINE>@NonNull<NEW_LINE>protected final WebRtcServiceState handleSendIceCandidates(@NonNull WebRtcServiceState currentState, @NonNull CallMetadata callMetadata, boolean broadcast, @NonNull List<byte[]> iceCandidates) {<NEW_LINE>Log.i(tag, "handleSendIceCandidate... | , null)).toList(); |
497,996 | private static HandshakeMessage fromReader(HandshakeType type, DatagramReader reader, HandshakeParameter parameter) throws HandshakeException {<NEW_LINE>HandshakeMessage body;<NEW_LINE>switch(type) {<NEW_LINE>case HELLO_REQUEST:<NEW_LINE>body = new HelloRequest();<NEW_LINE>break;<NEW_LINE>case CLIENT_HELLO:<NEW_LINE>bo... | reader, parameter.getKeyExchangeAlgorithm()); |
144,475 | public void expandRaggedSelection() {<NEW_LINE>if (!inMultiSelectMode())<NEW_LINE>return;<NEW_LINE>// TODO: It looks like we need to use an alternative API when<NEW_LINE>// using Vim mode.<NEW_LINE>if (isVimModeOn())<NEW_LINE>return;<NEW_LINE>boolean hasSelection = hasSelection();<NEW_LINE>Range[] ranges = widget_.getE... | getStart().getRow()); |
1,147,093 | private static void addBoxSetCounts(Context context, BaseItemDto item, LinearLayout layout) {<NEW_LINE>boolean hasSpecificCounts = false;<NEW_LINE>if (item.getMovieCount() != null && item.getMovieCount() > 0) {<NEW_LINE>TextView amt = new TextView(context);<NEW_LINE>amt.setTextSize(textSize);<NEW_LINE>amt.setText(item.... | .string.lbl_item) + " "); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.