idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
114,247 | final AddFlowSourcesResult executeAddFlowSources(AddFlowSourcesRequest addFlowSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addFlowSourcesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AddFlowSourcesRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
513,144 | public Range unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Range range = new Range();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>XMLE... | ().unmarshall(context)); |
1,685,991 | public static QualifiedName toQualifiedName(ASTNode node, boolean type) {<NEW_LINE>QualifiedName retval = null;<NEW_LINE>if (node instanceof FunctionInvocation) {<NEW_LINE>FunctionInvocation fi = (FunctionInvocation) node;<NEW_LINE>retval = QualifiedName.create(fi.getFunctionName().getName());<NEW_LINE>} else if (node ... | getClassName().getName()); |
656,713 | public void submitApplication(ApplicationSubmissionContext appContext) throws YarnException, IOException {<NEW_LINE>String appName = tonyConf.get(TonyConfigurationKeys.APPLICATION_NAME, TonyConfigurationKeys.DEFAULT_APPLICATION_NAME);<NEW_LINE>appContext.setApplicationName(appName);<NEW_LINE>String appType = tonyConf.g... | amRequest.setResourceName(ResourceRequest.ANY); |
330,784 | public static WorkspaceEdit handleWillRenameFiles(RenameFilesParams params, IProgressMonitor monitor) {<NEW_LINE>List<FileRename> files = params.getFiles();<NEW_LINE>if (files == null || files.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FileRename[<MASK><NEW_LINE>FileRename[] renameFolders = new FileRename[0... | ] renameFiles = new FileRename[0]; |
1,192,131 | public void recordBrokerStats(BrokerStats brokerStats) {<NEW_LINE>try {<NEW_LINE>int brokerId = brokerStats.getId();<NEW_LINE>LinkedList<BrokerStats> brokerStatsList = brokerStatsMap.computeIfAbsent(brokerId, i -> new LinkedList<>());<NEW_LINE>// multiple PastReplicaStatsProcessor/BrokerStatsProcessor may be processing... | ()).add(topicPartition); |
587,942 | public void testTemplate(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) {<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.fail("AnnotationOverrideTestLogic.testTemplate(): Missing context and/or re... | fail("Invalid Entity-A type specified ('" + entityAName + "'). Cannot execute the test."); |
927,667 | private void loadNode909() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerType_ServerDiagnostics_ServerDiagnosticsSummary_CumulatedSessionCount, new QualifiedName(0, "CumulatedSessionCount"), new LocalizedText("en", "CumulatedSessionCount"), LocalizedText.NULL_VA... | .expanded(), true)); |
396,471 | private void copyUIElementGroups(final CopyContext copyCtx, final I_AD_UI_Column targetUIColumn, final I_AD_UI_Column sourceUIColumn) {<NEW_LINE>final Map<String, I_AD_UI_ElementGroup> existingUIElementGroups = retrieveUIElementGroupsQuery(targetUIColumn).create().map(I_AD_UI_ElementGroup.class, I_AD_UI_ElementGroup::g... | copyCtx, targetUIColumn, existingUIElementGroup, sourceUIElementGroup); |
12,451 | public Request<DescribeSpotFleetRequestHistoryRequest> marshall(DescribeSpotFleetRequestHistoryRequest describeSpotFleetRequestHistoryRequest) {<NEW_LINE>if (describeSpotFleetRequestHistoryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<D... | request.addParameter("Action", "DescribeSpotFleetRequestHistory"); |
245,683 | private int readIntSlow() {<NEW_LINE>int value = 0;<NEW_LINE>int remaining = 4;<NEW_LINE>for (final Iterator<ByteBuf> it = queue.iterator(); it.hasNext(); ) {<NEW_LINE>final ByteBuf buf = it.next();<NEW_LINE>final <MASK><NEW_LINE>final int readSize = Math.min(remaining, readableBytes);<NEW_LINE>value <<= 8 * readSize;<... | int readableBytes = buf.readableBytes(); |
1,735,141 | public RFuture<Map<StreamMessageId, Map<K, V>>> readAsync(StreamReadArgs args) {<NEW_LINE>StreamReadParams rp = ((StreamReadSource) args).getParams();<NEW_LINE>List<Object> params = new ArrayList<Object>();<NEW_LINE>if (rp.getCount() > 0) {<NEW_LINE>params.add("COUNT");<NEW_LINE>params.add(rp.getCount());<NEW_LINE>}<NE... | XREAD_SINGLE, params.toArray()); |
1,798,432 | protected Object handleRequestMessage(Message<?> message) {<NEW_LINE>String tableName = this.tableNameExpression.getValue(this.evaluationContext, message, String.class);<NEW_LINE>FormatOptions formatOptions = this.formatOptionsExpression.getValue(this.evaluationContext, message, FormatOptions.class);<NEW_LINE>Schema sc... | tableName, inputStream, formatOptions, schema); |
10,816 | public int compare(File file1, File file2) {<NEW_LINE>if (sortBy == SORT_BY_NAME || sortBy == SORT_BY_SIZE) {<NEW_LINE>if (model.isDirectory(file1)) {<NEW_LINE>if (model.isDirectory(file2)) {<NEW_LINE>int value = file1.getAbsolutePath().compareToIgnoreCase(file2.getAbsolutePath());<NEW_LINE>return value;<NEW_LINE>}<NEW... | ), file2.lastModified()); |
811,364 | public double expectedValue() {<NEW_LINE>// zero all the variables<NEW_LINE>double s = 0;<NEW_LINE>aux = new double[probConds.length];<NEW_LINE>for (int i = 0; i < probConds.length; i++) {<NEW_LINE>for (int j = 0; j < probConds[i].length; j++) {<NEW_LINE>probConds[i][j] = 0;<NEW_LINE>}<NEW_LINE>zlambda[i] = 0;<NEW_LINE... | y] += (val * fLambda); |
1,371,247 | public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (event.getPlayerId().equals(this.getControllerId())) {<NEW_LINE>if (game.isActivePlayer(this.getControllerId()) && this.lastTriggeredTurn != game.getTurnNum()) {<NEW_LINE>Card card = game.getCard(event.getTargetId());<NEW_LINE>Player controller = gam... | .getEffects().clear(); |
1,051,836 | public void marshall(CreateRuleGroupRequest createRuleGroupRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createRuleGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>pr... | createRuleGroupRequest.getName(), NAME_BINDING); |
289,170 | public void actionPerformed(ActionEvent e) {<NEW_LINE>// XXX should have utility API to parse stack traces<NEW_LINE>// NOI18N<NEW_LINE>final Matcher m = Pattern.compile("\tat (.+[.])[^.]+[.][^.]+[(]([^.]+[.]java):([0-9]+)[)]").matcher(frameInfo);<NEW_LINE>if (m.matches()) {<NEW_LINE>final String resource = m.group(1).r... | [] { resource, f }); |
1,192,828 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Log.v("MainActivity", "onCreate");<NEW_LINE>activityMainBinding = DataBindingUtil.setContentView(this, R.layout.activity_main);<NEW_LINE>NavHostFragment navHostFragment = (NavHostFragment) getSupportFragmentManager()... | addObserver(mainActivityViewModel.getBillingLifecycleObserver()); |
158,274 | public boolean put(@NonNull final InOutLineId shipmentLineId, @NonNull final Integer lineNo) {<NEW_LINE>if (lineNo <= 0) {<NEW_LINE>logger.debug("Ignoring lineNo={} is associated with shipmentLineId={}; -> ignore, i.e. no collission; return true", lineNo, shipmentLineId);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>shipm... | lineNoToShipmentLineId.put(lineNo, shipmentLineId); |
992,483 | private static void sortSam(final File input, final File output, final File reference, final ValidationStringency stringency) {<NEW_LINE>final SortSam sort = new SortSam();<NEW_LINE>// We can't use ArgumentsBuilder since it assumes GATK argument names, but we're running a Picard<NEW_LINE>// tool, which uses upper case ... | SortOrder.coordinate.name()); |
1,387,948 | protected void onStarted(@NonNull ActionHolder holder, @Nullable MeteringRectangle area) {<NEW_LINE>boolean changed = false;<NEW_LINE>int maxRegions = <MASK><NEW_LINE>if (area != null && maxRegions > 0) {<NEW_LINE>holder.getBuilder(this).set(CaptureRequest.CONTROL_AF_REGIONS, new MeteringRectangle[] { area });<NEW_LINE... | readCharacteristic(CameraCharacteristics.CONTROL_MAX_REGIONS_AF, 0); |
285,603 | final GetAdministratorAccountResult executeGetAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAdministratorAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,338,206 | public Tuple3<Params, Iterable<String>, Iterable<Row>> serializeModel(Tuple3<Strategy, TableSummary, String> modelData) {<NEW_LINE>Strategy strategy = modelData.f0;<NEW_LINE>TableSummary summary = modelData.f1;<NEW_LINE>String fillValue = modelData.f2;<NEW_LINE>double[] values = null;<NEW_LINE>Params meta = new Params(... | .max(selectedColNames[i]); |
416,639 | private Runnable createRssReadCommand() {<NEW_LINE>return new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>GPLogger.log("Starting RSS check...");<NEW_LINE>HttpClient httpClient = new DefaultHttpClient();<NEW_LINE>String url = RSS_URL;<NEW_LINE>HttpGet getRssUrl = new HttpGet(url);<NEW... | result = httpClient.execute(getRssUrl); |
1,068,995 | private void updateDisplay(boolean announce) {<NEW_LINE>if (mDayOfWeekView != null) {<NEW_LINE>mDayOfWeekView.setText(mCalendar.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.getDefault()).toUpperCase(Locale.getDefault()));<NEW_LINE>}<NEW_LINE>mSelectedMonthTextView.setText(mCalendar.getDisplayName(Calendar... | = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR; |
978,545 | private LoadedResourceModelSource loadResourceModelSource(String type, Properties configuration, boolean useCache, String ident, int index) throws ExecutionServiceException {<NEW_LINE>configuration.put("project", projectConfig.getName());<NEW_LINE>CloseableProvider<ResourceModelSource> sourceForConfiguration;<NEW_LINE>... | + " (" + type + ")")); |
1,209,803 | public ReadableCategory convert(Category source, MerchantStore store, Language language) {<NEW_LINE>if (Objects.isNull(language)) {<NEW_LINE>ReadableCategoryFull target = new ReadableCategoryFull();<NEW_LINE>List<com.salesmanager.shop.model.catalog.category.CategoryDescription> descriptions = source.getDescriptions().s... | this::convertDescription).findAny(); |
892,950 | public void fix(FixedHandle hand, ParserWalker walker) {<NEW_LINE>if (ptrspace.getType() == ConstTpl.REAL) {<NEW_LINE>// The export is unstarred, but this doesn't mean<NEW_LINE>// the varnode being exported isn't dynamic<NEW_LINE>space.fillinSpace(hand, walker);<NEW_LINE>hand.size = (int) size.fix(walker);<NEW_LINE>ptr... | temp_offset = temp_offset.fix(walker); |
206,255 | public AdditionalServletWithClassLoader load(AdditionalServletMetadata metadata, String narExtractionDirectory) throws IOException {<NEW_LINE>final File narFile = metadata.getArchivePath().toAbsolutePath().toFile();<NEW_LINE>NarClassLoader ncl = NarClassLoaderBuilder.builder().narFile(narFile).parentClassLoader(Additio... | loadClass(def.getAdditionalServletClass()); |
598,233 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
64,235 | public void generateMoves(BankOrder bankOrder) throws AxelorException {<NEW_LINE>if (bankOrder.getBankOrderLineList() == null || bankOrder.getBankOrderLineList().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>paymentMode = bankOrder.getPaymentMode();<NEW_LINE>if (paymentMode == null || !paymentMode.getGenerateMoveAu... | getPaymentModeAccount(paymentMode, senderCompany, senderBankDetails); |
1,236,317 | public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {<NEW_LINE>if (RePluginFramework.mHostInitialized) {<NEW_LINE>try {<NEW_LINE>ProxyLocalBroadcastManagerVar.registerReceiver.call(sOrigInstance, receiver, filter);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_L... | mActions.put(action, entries); |
834,344 | private boolean doReleaseLock(String xid, Long branchId) {<NEW_LINE>try (Jedis jedis = JedisPooledFactory.getJedisInstance()) {<NEW_LINE>String xidLockKey = buildXidLockKey(xid);<NEW_LINE>final List<String> rowKeys = new ArrayList<>();<NEW_LINE>if (null == branchId) {<NEW_LINE>Map<String, String> rowKeyMap = jedis.hget... | , branchId.toString())); |
1,412,256 | public AutoScalingData provision() {<NEW_LINE>final String project = envConfig.getProjectId();<NEW_LINE>final <MASK><NEW_LINE>final int numInstances = envConfig.getNumInstances();<NEW_LINE>final String managedInstanceGroupName = envConfig.getManagedInstanceGroupName();<NEW_LINE>try {<NEW_LINE>List<String> before = getR... | String zone = envConfig.getZoneName(); |
587,415 | private <T> void submitOperation(CheckedSupplier<T, Exception> operation, BiConsumer<T, Exception> handler) {<NEW_LINE>autodetectWorkerExecutor.execute(new AbstractRunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFailure(Exception e) {<NEW_LINE>if (processKilled) {<NEW_LINE>handler.accept(null, Exceptio... | , job.getId())); |
1,267,183 | public static Vector combineServerRowSplits(List<ServerRow> rowSplits, int matrixId, int rowIndex) {<NEW_LINE>MatrixMeta matrixMeta = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>RowType rowType = matrixMeta.getRowType();<NEW_LINE>switch(rowType) {<NEW_LINE>case T_DOUBLE_DENSE:<NEW_LINE... | combineServerIntLongRowSplits(rowSplits, matrixMeta, rowIndex); |
1,189,274 | protected DescriptiveUrl toUrl(final Path file, final Scheme scheme, final int port) {<NEW_LINE>final StringBuilder url = new StringBuilder(scheme.name());<NEW_LINE>url.append("://");<NEW_LINE>if (file.isRoot()) {<NEW_LINE>url.append(session.<MASK><NEW_LINE>if (port != scheme.getPort()) {<NEW_LINE>url.append(":").appen... | getHost().getHostname()); |
706,573 | private VpnProfile VpnProfileFromCursor(Cursor cursor) {<NEW_LINE>VpnProfile profile = new VpnProfile();<NEW_LINE>profile.setId(cursor.getLong(cursor.getColumnIndex(KEY_ID)));<NEW_LINE>profile.setUUID(UUID.fromString(cursor.getString(cursor.getColumnIndex(KEY_UUID))));<NEW_LINE>profile.setName(cursor.getString(cursor.g... | cursor.getColumnIndex(KEY_USERNAME))); |
1,154,121 | private void createTables(Connection conn, int id) throws ServletException {<NEW_LINE>System.out.println("Executing createTables id = " + id);<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>String sql = "CREATE TABLE DEFDSENTITY (ID INTEGER NOT NULL, STRDATA VARCHAR(255), PRIMARY KEY (ID))";<NEW_LINE>Sys... | int updateCount = ps.getUpdateCount(); |
204,707 | private static Sld extractFromLayout(SldLayout sldLayout) {<NEW_LINE>Sld sld = Context.getpmlObjectFactory().createSld();<NEW_LINE>// Clone first<NEW_LINE>sld.setCSld(XmlUtils.deepCopy(sldLayout.getCSld<MASK><NEW_LINE>sld.setClrMapOvr(XmlUtils.deepCopy(sldLayout.getClrMapOvr(), Context.jcPML));<NEW_LINE>// Then delete ... | (), Context.jcPML)); |
945,802 | public PerServerContainer executeQuery(SQLDB db) {<NEW_LINE>PerServerContainer perServerContainer = new PerServerContainer();<NEW_LINE>userInformation(db, perServerContainer);<NEW_LINE>lastSeen(db, perServerContainer);<NEW_LINE>playerKillCount(db, perServerContainer);<NEW_LINE>mobKillCount(db, perServerContainer);<NEW_... | putRawData(PerServerKeys.SESSIONS, serverSessions); |
1,723,440 | public void printArgs() {<NEW_LINE>if (Debug.getDebugLevel() < lvl) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] xargs = getSikuliArgs();<NEW_LINE>if (xargs.length > 0) {<NEW_LINE>Debug.log(lvl, "--- Sikuli parameters ---");<NEW_LINE>for (int i = 0; i < xargs.length; i++) {<NEW_LINE>Debug.log(lvl, "%d: %s", i <MASK>... | + 1, xargs[i]); |
373,956 | private void convert(OutputStream outputStream, File docs, EPackage ePackage) throws IOException {<NEW_LINE>IfcDoc ifcDoc = null;<NEW_LINE>if (docs != null) {<NEW_LINE>ifcDoc = new IfcDoc(docs);<NEW_LINE>}<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>ObjectNode root = objectMapper.createObjectNode(... | classifierNode.put("domain", domain); |
1,797,182 | public final void init(StreamDefinition streamDefinition, String mapType, OptionHolder mapOptionHolder, List<AttributeMapping> attributeMappings, String sourceType, SourceSyncCallback sourceSyncCallback, List<AttributeMapping> transportMappings, SourceHandler sourceHandler, OptionHolder sourceOptionHolder, ConfigReader... | ), sourceSyncCallback, streamDefinition, siddhiAppContext); |
742,393 | final ListPermissionsResult executeListPermissions(ListPermissionsRequest listPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,091,279 | final ListAcceptedPortfolioSharesResult executeListAcceptedPortfolioShares(ListAcceptedPortfolioSharesRequest listAcceptedPortfolioSharesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAcceptedPortfolioSharesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,723,544 | private Fact foldComparisonToFalsey(ParseTreeNode n) {<NEW_LINE>if (!(n instanceof Operation)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Operation op = (Operation) n;<NEW_LINE>Operator o = op.getOperator();<NEW_LINE>boolean eq;<NEW_LINE>boolean strict;<NEW_LINE>switch(o) {<NEW_LINE>case EQUAL:<NEW_LINE>case STRICTLY_... | ? Fact.FALSE : Fact.TRUE; |
355,662 | protected AttributedString systemHighlight(LineReader reader, String buffer) {<NEW_LINE>AttributedString out;<NEW_LINE>Parser parser = reader.getParser();<NEW_LINE>ParsedLine pl = parser.parse(buffer, 0, Parser.ParseContext.SPLIT_LINE);<NEW_LINE>String command = pl.words().size() > 0 ? parser.getCommand(pl.words().get(... | reset().highlight(buffer); |
1,491,182 | private void registerTextSynchronizationForCustomUriSchemes() {<NEW_LINE>LanguageClient client = <MASK><NEW_LINE>LSClientCapabilities clientCapabilities = serverContext.get(LSClientCapabilities.class);<NEW_LINE>DocumentFilter balaFilter = new DocumentFilter();<NEW_LINE>balaFilter.setScheme(CommonUtil.URI_SCHEME_BALA);<... | serverContext.get(ExtendedLanguageClient.class); |
1,334,052 | void performMigration0To1() {<NEW_LINE><MASK><NEW_LINE>String deviceID = storage.getDeviceID();<NEW_LINE>// update the device ID type<NEW_LINE>// noinspection StatementWithEmptyBody<NEW_LINE>if (deviceIDType.equals(DeviceIdType.OPEN_UDID.toString())) {<NEW_LINE>// current device ID is OPEN_UDID<NEW_LINE>// nothing shou... | String deviceIDType = storage.getDeviceIDType(); |
899,071 | public com.amazonaws.services.migrationhubconfig.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.migrationhubconfig.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.<MASK><NEW_LINE>int o... | migrationhubconfig.model.ServiceUnavailableException(null); |
1,662,076 | public CreateAccessResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAccessResult createAccessResult = new CreateAccessResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | class).unmarshall(context)); |
83,902 | void deliverMessage(@Nonnull Message message) {<NEW_LINE>final Message messageOnLocalQueue = myPendingMessages.get().poll();<NEW_LINE>assert messageOnLocalQueue == message;<NEW_LINE>Topic<?> topic = message.getTopic();<NEW_LINE>Object handler = mySubscriptions.get(topic);<NEW_LINE>try {<NEW_LINE>if (handler == myDefaul... | e : e.getCause()); |
1,438,282 | public void start(Stage stage) {<NEW_LINE>Scene scene = new Scene(new Group(), 400.0f, 300.0f);<NEW_LINE>scene.setCamera(new PerspectiveCamera());<NEW_LINE>Group group = new Group();<NEW_LINE>Group group2 = new Group();<NEW_LINE>group2.setRotate(60.0F);<NEW_LINE>group2.setRotationAxis(Rotate.Y_AXIS);<NEW_LINE>Ellipse e... | 50.0F, 25.0F, 45.0F, 270.0F); |
1,267,807 | private void createElementsActions() {<NEW_LINE>fAllElementActions = new ArrayList<IAction>();<NEW_LINE>// The "All" option<NEW_LINE>fNoneElementAction = createElementAction(null);<NEW_LINE>fAllElementActions.add(fNoneElementAction);<NEW_LINE>// Strategy<NEW_LINE>fStrategyElementActions = createElementActionsGroup(Arch... | createElementActionsGroup(ArchimateModelUtils.getTechnologyClasses()); |
1,122,868 | private List<Result> findStaticModels(SmallRyeOpenApiConfig openApiConfig, List<Pattern> ignorePatterns, Path target) {<NEW_LINE>List<Result> results = new ArrayList<>();<NEW_LINE>// First check for the file in both META-INF and WEB-INF/classes/META-INF<NEW_LINE>addStaticModelIfExist(results, ignorePatterns, Format.YAM... | ignorePatterns, Format.JSON, META_INF_OPENAPI_JSON); |
1,708,587 | protected Element writeItem(Element design, T item, DesignContext context) {<NEW_LINE>Element element = design.appendElement("option");<NEW_LINE>String caption = <MASK><NEW_LINE>if (caption != null) {<NEW_LINE>element.html(DesignFormatter.encodeForTextNode(caption));<NEW_LINE>} else {<NEW_LINE>element.html(DesignFormat... | getItemCaptionGenerator().apply(item); |
1,632,570 | public void read(org.apache.thrift.protocol.TProtocol prot, startGetSummaries_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.... | .dataImpl.thrift.TSummaries(); |
161,188 | public void process(ResultSet rs) {<NEW_LINE>try {<NEW_LINE>// Create a temporary map of object ID to ResultFile<NEW_LINE>Map<Long, ResultFile> tempMap = new HashMap<>();<NEW_LINE>for (Result result : results) {<NEW_LINE>if (result.getType() == SearchData.Type.DOMAIN) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ResultFile f... | (objId).addHashSetName(hashSetName); |
1,389,427 | public Clustering<Model> run(Relation<O> relation) {<NEW_LINE>SimilarityQuery<O> snnInstance = similarityFunction.instantiate(relation);<NEW_LINE>FiniteProgress objprog = LOG.isVerbose() ? new FiniteProgress("SNNClustering", relation.size(), LOG) : null;<NEW_LINE>IndefiniteProgress clusprog = LOG.isVerbose() ? new Inde... | resultList = new ArrayList<>(); |
1,745,444 | public void kill(DataSegment segment) throws SegmentLoadingException {<NEW_LINE><MASK><NEW_LINE>Map<String, Object> loadSpec = segment.getLoadSpec();<NEW_LINE>final String containerName = MapUtils.getString(loadSpec, "containerName");<NEW_LINE>final String blobPath = MapUtils.getString(loadSpec, "blobPath");<NEW_LINE>f... | log.info("Killing segment [%s]", segment); |
1,176,158 | public void write(JmeExporter ex) throws IOException {<NEW_LINE>OutputCapsule oc = ex.getCapsule(this);<NEW_LINE>oc.write(true, "pointSprite", false);<NEW_LINE>oc.write(wireframe, "wireframe", false);<NEW_LINE>oc.write(cullMode, "cullMode", FaceCullMode.Back);<NEW_LINE>oc.write(depthWrite, "depthWrite", true);<NEW_LINE... | write(applyLineWidth, "applyLineWidth", true); |
1,005,203 | public Predicate addPredicate(String theResourceName, RuntimeSearchParam theSearchParam, List<? extends IQueryParameterType> theList, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>From<?, ResourceIndexedSearchParamCoords> join = myQueryStack.createJoin(SearchBuil... | theSearchParam, myCriteriaBuilder, join, theRequestPartitionId); |
48,780 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field("name", nodeName);<NEW_LINE>builder.field("cluster_name", clusterName.value());<NEW_LINE>builder.field("cluster_uuid", clusterUuid);<NEW_LINE>builder.startObject("version... | toString()).endObject(); |
1,017,650 | public void rcr(AsmMemoryOperand dst, int imm) {<NEW_LINE>int code;<NEW_LINE>if (imm == 1) {<NEW_LINE>if (dst.size == MemoryOperandSize.QWORD) {<NEW_LINE>code = Code.RCR_RM64_1;<NEW_LINE>} else if (dst.size == MemoryOperandSize.DWORD) {<NEW_LINE>code = Code.RCR_RM32_1;<NEW_LINE>} else if (dst.size == MemoryOperandSize.... | Mnemonic.RCR, dst, imm); |
1,850,205 | private Map<String, Boolean> filterUpdatableEntity(DalHints hints, List<T> rawPojos) {<NEW_LINE>Set<String> qualifiedColumns = filterColumns(hints);<NEW_LINE>Map<String, Boolean> columnStatus = new HashMap<String, Boolean>();<NEW_LINE>for (String column : qualifiedColumns) columnStatus.put(column, false);<NEW_LINE>if (... | String> updatedColumns = getUpdatedColumns(pojo); |
587,955 | public OSSAsyncTask<ListObjectsResult> listObjects(ListObjectsRequest request, OSSCompletedCallback<ListObjectsRequest, ListObjectsResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>requestMessage.setIsAuthorizationRequired(request.isAuthorizationRequired());<NEW_LINE>r... | requestMessage.setMethod(HttpMethod.GET); |
445,501 | private void validateLwm2mServersCredentialOfBootstrapForClient(LwM2MBootstrapServerCredential bootstrapServerConfig) {<NEW_LINE>String server;<NEW_LINE>switch(bootstrapServerConfig.getSecurityMode()) {<NEW_LINE>case NO_SEC:<NEW_LINE>case PSK:<NEW_LINE>break;<NEW_LINE>case RPK:<NEW_LINE>RPKLwM2MBootstrapServerCredentia... | throw new DeviceCredentialsValidationException(server + " X509 certificate must be specified!"); |
315,849 | public static String compileQuery(FAFQueryMethodForge query, String classPostfix, CompilerAbstractionClassCollection compilerState, ModuleCompileTimeServices compileTimeServices, CompilerPath path) throws StatementSpecCompileException {<NEW_LINE>String statementFieldsClassName = CodeGenerationIDGenerator.<MASK><NEW_LIN... | generateClassNameSimple(StatementFields.class, classPostfix); |
648,896 | static GHRateLimit fromRecord(@Nonnull Record record, @Nonnull RateLimitTarget rateLimitTarget) {<NEW_LINE>if (rateLimitTarget == RateLimitTarget.CORE || rateLimitTarget == RateLimitTarget.NONE) {<NEW_LINE>return new GHRateLimit(record, UnknownLimitRecord.DEFAULT, UnknownLimitRecord.DEFAULT, UnknownLimitRecord.DEFAULT)... | "Unknown rate limit target: " + rateLimitTarget.toString()); |
1,223,832 | public com.amazonaws.services.dynamodbv2.model.ExportNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dynamodbv2.model.ExportNotFoundException exportNotFoundException = new com.amazonaws.services.dynamodbv2.model.ExportNotFoundException(null);<N... | JsonToken token = context.getCurrentToken(); |
1,221,836 | protected double assignToNearestCluster(ArrayDBIDs means) {<NEW_LINE><MASK><NEW_LINE>double cost = 0.;<NEW_LINE>for (DBIDIter iditer = ids.iter(); iditer.valid(); iditer.advance()) {<NEW_LINE>double mindist = Double.POSITIVE_INFINITY, mindist2 = Double.POSITIVE_INFINITY;<NEW_LINE>int minindx = -1;<NEW_LINE>for (miter.s... | DBIDArrayIter miter = means.iter(); |
808,825 | final ImportStacksToStackSetResult executeImportStacksToStackSet(ImportStacksToStackSetRequest importStacksToStackSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importStacksToStackSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,144,321 | private void create(Properties ctx, TransformerHandler document, PO entity, boolean includeParents, List<String> excludedParentList, boolean isFromParent) throws SAXException {<NEW_LINE>int tableId = 0;<NEW_LINE>String tableName = null;<NEW_LINE>int recordId = 0;<NEW_LINE>if (entity != null) {<NEW_LINE>tableId = entity... | createBinding(ctx, entity, defaultAttributes); |
1,361,527 | public String orderLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_OrderLine_ID = (Integer) value;<NEW_LINE>if (C_OrderLine_ID == null || C_OrderLine_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>// Get Details<NEW_LINE>MOrderLine ol = new MOrderLine(ctx, C_Order... | mTab.setValue("MovementQty", MovementQty); |
1,069,260 | private static List<String> makeQueries(List<String> queries, QueryMode queryMode, int queryCount) {<NEW_LINE>int numQueries = queries.size();<NEW_LINE>switch(queryMode) {<NEW_LINE>case FULL:<NEW_LINE>if (queryCount > 0 && queryCount < numQueries) {<NEW_LINE>return queries.subList(0, queryCount);<NEW_LINE>} else {<NEW_... | random.nextInt(numQueries))); |
304,709 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "sym,avgp".split(",");<NEW_LINE>String epl = "@name('s0') select irstream avg(price) as avgp, sym " + "from SupportPriceEvent#groupwin(sym)#length(2)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportPriceEv... | [] { "A", 1.0 }); |
587,404 | public static InspectionResultsView showOfflineView(@Nonnull Project project, @Nonnull Map<String, Map<String, Set<OfflineProblemDescriptor>>> resMap, @Nonnull InspectionProfile inspectionProfile, @Nonnull String title) {<NEW_LINE>final AnalysisScope scope = new AnalysisScope(project);<NEW_LINE>final InspectionManagerE... | new ArrayList<Tools>()); |
162,729 | public void leave(Element element) {<NEW_LINE>if (canonical) {<NEW_LINE>c14nNamespaceStack.poll();<NEW_LINE>c14nAttrStack.poll();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (element.hasChildNodes()) {<NEW_LINE>if (needIndentInClosing(element)) {<NEW_LINE>indentation.pop();<NEW_LINE>buffer.append(indentation.peek());<NEW_LI... | String name = element.getTagName(); |
834,336 | public Object buildPostIDPInitiatedRequest(String testcase, WebClient webClient, SAMLTestSettings settings, List<validationData> expectations) throws Exception {<NEW_LINE>String thisMethod = "buildPostIDPInitiatedRequest";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>setMarkEndOfLogs();<NEW_LINE>URL url = Au... | testSAMLOIDCServer, testOIDCServer, testAppServer, testIDPServer); |
1,618,783 | private static Function checkInsideThunkJump(Program program, Address address, TaskMonitor monitor) throws CancelledException {<NEW_LINE>Listing listing = program.getListing();<NEW_LINE>List<Reference> refList = getReferencesTo(program, address, monitor);<NEW_LINE>if (refList.size() != 1) {<NEW_LINE>// sanity check...<... | ), thunkInstr.getMaxAddress()); |
508,336 | public static void main(String[] args) {<NEW_LINE>App app = new App(args, "secret=YOUR-SECRET");<NEW_LINE>Log.info("Starting application");<NEW_LINE>// provide beans (controllers, services etc.)<NEW_LINE>app.beans(new MyCtrl());<NEW_LINE>app.get("/books").json(() -> {<NEW_LINE>// TODO get all books<NEW_LINE>return U.li... | .login(username, password)); |
933,887 | public Map.Entry<K, V> next() {<NEW_LINE>try {<NEW_LINE>Document <MASK><NEW_LINE>String val = "";<NEW_LINE>if (definition.getFields().size() > 0) {<NEW_LINE>for (String field : definition.getFields()) {<NEW_LINE>val += doc.get(field);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>val = doc.get(OLuceneIndexEngineAbstract.KEY);<... | doc = reader.document(currentIdx); |
285,936 | final CreateDeviceFleetResult executeCreateDeviceFleet(CreateDeviceFleetRequest createDeviceFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDeviceFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
618,014 | private void reportDiagnostic(PackageID packageID, DiagnosticCode diagnosticCode, Location location, String msg, DiagnosticSeverity severity, Object[] args) {<NEW_LINE>if (severity == DiagnosticSeverity.ERROR) {<NEW_LINE>this.errorCount++;<NEW_LINE>}<NEW_LINE>if (this.isMute) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Diag... | DiagnosticInfo(null, msg, severity); |
15,584 | public SmithWatermanAlignment align(final byte[] reference, final byte[] alternate, final SWParameters parameters, final SWOverhangStrategy overhangStrategy) {<NEW_LINE>long startTime = System.nanoTime();<NEW_LINE>Utils.nonNull(parameters);<NEW_LINE>Utils.nonNull(overhangStrategy);<NEW_LINE>// avoid running full Smith-... | Utils.lastIndexOf(reference, alternate); |
745,072 | public void annotate(Annotation annotation) {<NEW_LINE>if (VERBOSE) {<NEW_LINE>System.err.<MASK><NEW_LINE>}<NEW_LINE>Pattern paragraphSplit = null;<NEW_LINE>if (PARAGRAPH_BREAK.equals("two")) {<NEW_LINE>paragraphSplit = Pattern.compile("\\n\\n+");<NEW_LINE>} else if (PARAGRAPH_BREAK.equals("one")) {<NEW_LINE>paragraphS... | print("Adding paragraph index annotation (" + PARAGRAPH_BREAK + ") ..."); |
81,135 | final PutSigningProfileResult executePutSigningProfile(PutSigningProfileRequest putSigningProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putSigningProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutSigningProfile"); |
1,635,524 | private ProducerImpl.OpSendMsg createOpSendMsg(KeyedBatch keyedBatch) throws IOException {<NEW_LINE>ByteBuf encryptedPayload = producer.encryptMessage(keyedBatch.messageMetadata, keyedBatch.getCompressedBatchMetadataAndPayload());<NEW_LINE>if (encryptedPayload.readableBytes() > ClientCnx.getMaxMessageSize()) {<NEW_LINE... | keyedBatch.sequenceId, keyedBatch.firstCallback); |
788,182 | public void beforePreCap(InvokeChainContext context, Object[] args) {<NEW_LINE>String clazz = "com.lambdaworks.redis.RedisAsyncConnectionImpl";<NEW_LINE>int num = -1;<NEW_LINE>StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();<NEW_LINE>for (int i = 0; i < stacktrace.length; i++) {<NEW_LINE>if (sta... | getProperty("com.creditease.uav.invokechain.code.redis.lettuce.key.2"), 0)); |
287,656 | public Object launch(String[] args, String classpath, Method method) throws Exception {<NEW_LINE>if (!ArkConfigs.isEmbedEnable()) {<NEW_LINE>JarFile.registerUrlProtocolHandler();<NEW_LINE>}<NEW_LINE>ClassLoader classLoader = createContainerClassLoader(getContainerArchive());<NEW_LINE>List<String> attachArgs = new Array... | , method.getName())); |
1,772,482 | public TextBlock asBig(final TextBlock title, final HorizontalAlignment labelAlignment, final TextBlock stereotype, final double width, final double height, final SymbolContext symbolContext, final HorizontalAlignment stereoAlignment) {<NEW_LINE>return new AbstractTextBlock() {<NEW_LINE><NEW_LINE>public void drawU(UGra... | dimStereo.getWidth()) / 2; |
370,955 | public List<String> idToIpLookup(List<String> nodeIds) {<NEW_LINE>log.info("Asked IDs -> IPs for: [%s]", String.join(",", nodeIds));<NEW_LINE>if (nodeIds.isEmpty()) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>final String project = envConfig.getProjectId();<NEW_LINE>final String zone = envConfig.getZoneNam... | .buildFilter(nodeIds, "name")); |
3,635 | public static void resolveSymbolMetaData(Type type, Symbol symbol) {<NEW_LINE>ModuleID moduleID = symbol.getModule().isPresent() ? symbol.getModule().get().id() : null;<NEW_LINE>if (moduleID != null) {<NEW_LINE>type.moduleName = moduleID.moduleName();<NEW_LINE>type<MASK><NEW_LINE>type.version = moduleID.version();<NEW_... | .orgName = moduleID.orgName(); |
190,627 | public UpdateNetworkSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateNetworkSettingsResult updateNetworkSettingsResult = new UpdateNetworkSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
188,620 | public Object[] next() {<NEW_LINE>if (!hasNext()) {<NEW_LINE>throw new NoSuchElementException();<NEW_LINE>}<NEW_LINE>if (i == pEnd) {<NEW_LINE>pStart = i;<NEW_LINE>idxInPartition = 0;<NEW_LINE>pEnd = findFirstNonPeer(sortedRows, pStart, end, cmpPartitionBy);<NEW_LINE>}<NEW_LINE>int wBegin = computeFrameStart.apply(pSta... | pStart, pEnd, wBegin, wEnd); |
981,210 | protected Query[] prepareQueries() throws Exception {<NEW_LINE>final int maxQueries = config.get("query.file.maxQueries", 1000);<NEW_LINE>Config srcConfig = <MASK><NEW_LINE>srcConfig.set("docs.file", config.get("query.file", null));<NEW_LINE>srcConfig.set("line.parser", config.get("query.file.line.parser", null));<NEW_... | new Config(new Properties()); |
1,062,992 | private void parseSocksProxyOptions() {<NEW_LINE>String <MASK><NEW_LINE>int port;<NEW_LINE>String version;<NEW_LINE>boolean useDns = getBoolean(SOCKS_PROXY_DNS_KEY, DEFAULT_SOCKS_PROXY.isUseDns());<NEW_LINE>if (host != null && !host.isEmpty()) {<NEW_LINE>port = parseSocksPort(System.getProperty("socksProxyPort"));<NEW_... | host = System.getProperty("socksProxyHost"); |
411,231 | public static Map<MD5Key, Asset> findAllAssetsNotInRepositories(List<String> repos) {<NEW_LINE>// For performance reasons, we calculate the size of the Set in advance...<NEW_LINE>int size = 0;<NEW_LINE>for (String repo : repos) {<NEW_LINE>size += assetLoader.getRepositoryMap(repo).size();<NEW_LINE>}<NEW_LINE>// Now cre... | = new HashSet<>(size); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.