idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,259,700 | private void updateButtonState(boolean next) {<NEW_LINE>if (showFilterItem != null) {<NEW_LINE>showFilterItem.setVisible(filter != null && !isNameSearch());<NEW_LINE>}<NEW_LINE>if (filter != null) {<NEW_LINE>int maxLength = 24;<NEW_LINE>String name = filter.getGeneratedName(maxLength);<NEW_LINE>// Next displays the act... | " " + filter.getSearchArea(next); |
584,141 | private void rrcurveTo(Number dx1, Number dy1, Number dx2, Number dy2, Number dx3, Number dy3) {<NEW_LINE>float x1 = (float) current<MASK><NEW_LINE>float y1 = (float) current.y + dy1.floatValue();<NEW_LINE>float x2 = x1 + dx2.floatValue();<NEW_LINE>float y2 = y1 + dy2.floatValue();<NEW_LINE>float x3 = x2 + dx3.floatVal... | .x + dx1.floatValue(); |
1,131,703 | public void marshall(Pipeline pipeline, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (pipeline == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(pipeline.getPipelineArn(), PIPELINEARN_BINDING);<NEW_LINE>pr... | pipeline.getPipelineDisplayName(), PIPELINEDISPLAYNAME_BINDING); |
562,967 | public PointSensitivityBuilder presentValueSensitivityModelParamsSabr(IborCapletFloorletPeriod period, RatesProvider ratesProvider, SabrIborCapletFloorletVolatilities volatilities) {<NEW_LINE>double expiry = volatilities.relativeTime(period.getFixingDateTime());<NEW_LINE>if (expiry < 0d) {<NEW_LINE>// option expired al... | IborCapletFloorletVolatilitiesName name = volatilities.getName(); |
317,215 | private void defineNilableIntegerLeftShiftOperations() {<NEW_LINE>BType[] intTypes = { intType, byteType, signed32IntType, signed16IntType, <MASK><NEW_LINE>BUnionType[] nilableIntTypes = new BUnionType[8];<NEW_LINE>for (int i = 0; i < intTypes.length; i++) {<NEW_LINE>nilableIntTypes[i] = getNilableBType(intTypes[i]);<N... | signed8IntType, unsigned32IntType, unsigned16IntType, unsigned8IntType }; |
451,421 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " <bucketARN> <roleARN> <streamName> \n\n" + "Where:\n" + " bucketARN - the ARN of the Amazon S3 bucket where the data stream is written. \n\n" + " roleARN - the ARN of the IAM role that has the permissions that Kinesis ... | region(region).build(); |
878,246 | private void updateChangesForDocument(@Nonnull final Document document) {<NEW_LINE>ApplicationManager.getApplication().assertIsWriteThread();<NEW_LINE>if (myProject.isDisposed())<NEW_LINE>return;<NEW_LINE>List<Pair<PsiElement, Boolean>> toUpdate = changedElements.get(document);<NEW_LINE>if (toUpdate == null) {<NEW_LINE... | updateByChange(element, document, whiteSpaceOptimizationAllowed); |
1,046,382 | public static void ToXContent(ReferenceDecoration referenceDecoration, XContentBuilderWrapper builder) {<NEW_LINE>start(referenceDecoration, builder);<NEW_LINE>FunctionRef ref = referenceDecoration.reference();<NEW_LINE>builder.field("interfaceMethodName", ref.interfaceMethodName);<NEW_LINE>builder.field("interfaceMeth... | ToXContent(ref.interfaceMethodType, builder); |
311,131 | private Query createDunningCandidatesSqlQuery(final IDunningContext context, final IDunningCandidateQuery query) {<NEW_LINE>final Properties ctx = context.getCtx();<NEW_LINE>final String trxName = context.getTrxName();<NEW_LINE>final StringBuilder wc = new StringBuilder();<NEW_LINE>final List<Object> params = new Array... | add(level.getC_DunningLevel_ID()); |
1,081,386 | private static Map<String, Object> generateParameters() {<NEW_LINE>Map<String, Object> params = new HashMap<String, Object>();<NEW_LINE>params.put("id", CloudCacheModel.getInstance().getRaspId());<NEW_LINE>params.put("version", BuildRASPModel.getRaspVersion());<NEW_LINE>params.put("hostname", OSUtil.getHostName());<NEW... | "os", OSUtil.getOs()); |
1,806,182 | private List<Pom> createPoms(Set<ResolvedArtifact> resolvedArtifacts, List<PomReference> pomReferences, PropertySource properties) {<NEW_LINE>Map<String, PomReference> referencesById = new HashMap<String, PomReference>();<NEW_LINE>for (PomReference pomReference : pomReferences) {<NEW_LINE>referencesById.put(createKey(p... | .getModuleVersion().getId(); |
59,049 | public static void populateSearchEntity(SearchParameterMap theParams, String theResourceType, String theSearchUuid, String theQueryString, Search theSearch, RequestPartitionId theRequestPartitionId) {<NEW_LINE>theSearch.setDeleted(false);<NEW_LINE>theSearch.setUuid(theSearchUuid);<NEW_LINE>theSearch.setCreated(new Date... | , next.isRecurse())); |
973,618 | private void genCheckAutoType(String classNameType, MethodWriter mw, int JSON_READER, int FIELD_TYPE, int FIELD_NAME, int FEATURES, int AUTO_TYPE_OBJECT_READER) {<NEW_LINE>Label checkArrayAutoTypeNull_ = new Label();<NEW_LINE>mw.visitVarInsn(Opcodes.ALOAD, THIS);<NEW_LINE>mw.visitVarInsn(Opcodes.ALOAD, JSON_READER);<NE... | GETFIELD, classNameType, "objectClass", "Ljava/lang/Class;"); |
37,496 | private OverloadReport generateOverloadReport(Object object, double reportSize, int reportType) {<NEW_LINE>OverloadReport overloadReport = new OverloadReport();<NEW_LINE>switch(reportType) {<NEW_LINE>case CapacityUpdater.HOURLY_TYPE:<NEW_LINE>overloadReport.setDomain(((HourlyReport) object).getDomain());<NEW_LINE>overl... | ) object).getName()); |
1,197,644 | public List<GroupByResult>[] trimFinalResults(Map<String, Comparable>[] finalResultMaps) {<NEW_LINE>int numAggregationFunctions = _aggregationFunctions.length;<NEW_LINE>List<GroupByResult>[] trimmedResults = new List[numAggregationFunctions];<NEW_LINE>for (int i = 0; i < numAggregationFunctions; i++) {<NEW_LINE>LinkedL... | ), entry.getValue()); |
1,722,790 | public static PsiFile createFileFromTemplate(@Nullable String name, @Nonnull FileTemplate template, @Nonnull PsiDirectory dir, @Nullable String defaultTemplateProperty, boolean openFile, @Nonnull Map<String, String> liveTemplateDefaultValues) {<NEW_LINE>if (name != null) {<NEW_LINE>CreateFileAction.MkDirs mkdirs = new ... | PsiFile psiFile = element.getContainingFile(); |
835,314 | public static GetPatentPlanInfoListResponse unmarshall(GetPatentPlanInfoListResponse getPatentPlanInfoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentPlanInfoListResponse.setRequestId(_ctx.stringValue("GetPatentPlanInfoListResponse.RequestId"));<NEW_LINE>getPatentPlanInfoListResponse.setPageNum(_ctx.integer... | (_ctx.integerValue("GetPatentPlanInfoListResponse.TotalPageNum")); |
44,986 | public static QualifiedName fromJson(@NonNull final JsonNode node) {<NEW_LINE>final JsonNode catalogNameNode = node.path("catalogName");<NEW_LINE>if (catalogNameNode.isMissingNode() || catalogNameNode.isNull() || !catalogNameNode.isTextual()) {<NEW_LINE>// If catalogName is not present try to load from the qualifiedNam... | String catalogName = catalogNameNode.asText(); |
512,310 | protected void writeToFile(File file) throws IOException {<NEW_LINE>try (CSVPrinter printer = new CSVPrinter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8), STRATEGY)) {<NEW_LINE>ITreeContentProvider provider = (ITreeContentProvider) viewer.getContentProvider();<NEW_LINE>int depth = depth(pr... | labels, depth, path, element); |
1,462,899 | // FIXME <REFACTOR> <S><NEW_LINE>@Override<NEW_LINE>public List<Integer> enqueueWrite(Object reference, long batchSize, long hostOffset, int[] events, boolean useDeps) {<NEW_LINE>final T array = cast(reference);<NEW_LINE>ArrayList<Integer> listEvents = new ArrayList<>();<NEW_LINE>if (array == null) {<NEW_LINE>throw new... | (useDeps) ? events : null); |
433,823 | public WebsiteCaSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WebsiteCaSummary websiteCaSummary = new WebsiteCaSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | class).unmarshall(context)); |
1,565,182 | public void marshall(ContainerDefinition containerDefinition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (containerDefinition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(containerDefinition.getCont... | e.getMessage(), e); |
1,055,131 | public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@JsonSchema(dynamic=true) @public @buseventtype create json schema JsonEvent();\n" + "@name('s0') select * from JsonEvent#keepall").addListener("s0");<NEW_LINE>String jsonOne = "{\n" + " \"a_string\": \"abc\",\n" + " \"a_number\": 1,\n" + " \"a... | jsonOne, it.next()); |
1,320,340 | public void selectPersistableFolder(final PersistableFolder folder) {<NEW_LINE>final ImmutableTriple<String, String, String> folderInfo = getInternationalizedFolderInfoStrings(folder.getFolder());<NEW_LINE>// create the message;<NEW_LINE>final String folderData = activity.getString(R.string.contentstorage_selectfolder_... | .create().show(); |
1,247,674 | public static RoundChangeArtifacts create(final Collection<RoundChange> roundChanges) {<NEW_LINE>final Comparator<RoundChange> preparedRoundComparator = (o1, o2) -> {<NEW_LINE>if (!o1.getPreparedCertificateRound().isPresent()) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (!o2.getPreparedCertificateRound().isPresent()) ... | stream().max(preparedRoundComparator); |
1,181,429 | // Draws the file name, prediction, and confidence on the image.<NEW_LINE>public void drawImageInfo(String[] imageLines) {<NEW_LINE>int indent = 10;<NEW_LINE>// Set up drawing.<NEW_LINE>Graphics2D g2d = image.createGraphics();<NEW_LINE>g2d.setColor(Color.GREEN);<NEW_LINE>g2d.setFont(new Font("Tahoma", Font.PLAIN, 80));... | g2d.setColor(Color.GREEN); |
1,669,767 | protected void configure() {<NEW_LINE>// TODO Add instrumentation to ExecutorService and ThreadFactory<NEW_LINE>final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(SCHEDULED_THREADS_POOL_SIZE, new ThreadFactoryBuilder().setNameFormat("scheduled-%d").setDaemon(false).setUncaughtExceptionHandler(n... | LOG)).build()); |
396,238 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetedPlayer = game.getPlayer(source.getTargets().getFirstTarget());<NEW_LINE>if (targetedPlayer == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// AI hint to discard/sacrifice before die<NEW_LINE>Outcome aiOutcome = (targetedPlayer.getLife() <= ... | Choice choice = new ChoiceImpl(true); |
379,855 | public void performCopyFrom(final DirDiffElementImpl element) {<NEW_LINE>final DiffElement<?<MASK><NEW_LINE>if (target != null) {<NEW_LINE>final String path = element.getParentNode().getPath();<NEW_LINE>if (target instanceof BackgroundOperatingDiffElement) {<NEW_LINE>final Ref<String> errorMessage = new Ref<>();<NEW_LI... | > target = element.getTarget(); |
1,287,632 | public static WritableComparable convertToWritableComparable(Object value, FieldSpec.DataType dataType) {<NEW_LINE>if (value instanceof Number) {<NEW_LINE>Number numberValue = (Number) value;<NEW_LINE>switch(dataType) {<NEW_LINE>case INT:<NEW_LINE>return new IntWritable(numberValue.intValue());<NEW_LINE>case LONG:<NEW_... | , value.getClass())); |
151,461 | public PbWorld.Builder serializeWorld(World argWorld) {<NEW_LINE>final PbWorld.Builder builder = PbWorld.newBuilder();<NEW_LINE>if (signer != null) {<NEW_LINE>Long tag = signer.getTag(argWorld);<NEW_LINE>if (tag != null) {<NEW_LINE>builder.setTag(tag);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>builder.setGravity(vecToPb(argWorld.... | HashMap<Joint, Integer>(); |
1,211,453 | private void loadNode1198() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NDimensionArrayItemType_AxisDefinition, new QualifiedName(0, "AxisDefinition"), new LocalizedText("en", "AxisDefinition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Varia... | (1), 0.0, false); |
92,877 | public static MappedKeyValue fromBytes(byte[] bytes, int[] lengths) {<NEW_LINE>// Lengths include: key, value, rangeBegin, rangeEnd, count * (underlying key, underlying value)<NEW_LINE>if (lengths.length < 4) {<NEW_LINE>throw new IllegalArgumentException("There needs to be at least 4 lengths to cover the metadata");<NE... | takeBytes(offset, bytes, lengths); |
363,883 | private void registerDefaultServices(ServicesConfig servicesConfig) {<NEW_LINE>if (!servicesConfig.isEnableDefaults()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.finest("Registering default services...");<NEW_LINE>registerService(MapService.SERVICE_NAME, createService(MapService.class));<NEW_LINE>registerService(Loc... | .SERVICE_NAME, new PNCounterService()); |
232,939 | private Zone createDynamicZone(final Zone staticZone, final DNSAccessRecord.Builder builder, final DNSRequest request) {<NEW_LINE>final Track track = StatTracker.getTrack();<NEW_LINE>try {<NEW_LINE>final DNSRouteResult result = trafficRouter.route(request, track);<NEW_LINE>if (result != null) {<NEW_LINE>final Zone dyna... | resultType(track.getResult()); |
570,955 | public void save(MethodEntity entity, OutputStream output) throws IOException {<NEW_LINE>DumpOutputStream print = new DumpOutputStream(output);<NEW_LINE><MASK><NEW_LINE>if (docComment != null) {<NEW_LINE>print.writeUTF(docComment.toString());<NEW_LINE>} else {<NEW_LINE>print.writeUTF("");<NEW_LINE>}<NEW_LINE>// static<... | DocumentComment docComment = entity.getDocComment(); |
1,758,934 | protected void updateClientSystemMessages(Locale locale) {<NEW_LINE>SystemMessages msgs = new SystemMessages();<NEW_LINE>Locale actualLocale = locale;<NEW_LINE>if (getApp() != null) {<NEW_LINE>Locale appLocale = getApp().getLocale();<NEW_LINE>if (appLocale != null && !Objects.equals(locale, appLocale)) {<NEW_LINE>log.d... | .getMainMessage("reconnectDialogText", actualLocale)); |
236,596 | List<HostRuleTO> mergeMultiHostRuleTO(Collection<HostRuleTO>... htos) {<NEW_LINE>Map<String, HostRuleTO> hostRuleTOMap = new HashMap<String, HostRuleTO>();<NEW_LINE>for (Collection<HostRuleTO> lst : htos) {<NEW_LINE>for (HostRuleTO hto : lst) {<NEW_LINE>HostRuleTO old = hostRuleTOMap.get(hto.getHostUuid());<NEW_LINE>if... | addAll(hostRuleTOMap.values()); |
232,269 | private static MetadataIndexNode generateRootNode(Queue<MetadataIndexNode> metadataIndexNodeQueue, TsFileOutput out, MetadataIndexNodeType type) throws IOException {<NEW_LINE>int queueSize = metadataIndexNodeQueue.size();<NEW_LINE>MetadataIndexNode metadataIndexNode;<NEW_LINE>MetadataIndexNode currentIndexNode = new Me... | serializeTo(out.wrapAsStream()); |
96,542 | public void exitRo_redistribute_connected(Ro_redistribute_connectedContext ctx) {<NEW_LINE>OspfProcess proc = _currentOspfProcess;<NEW_LINE>RoutingProtocol sourceProtocol = RoutingProtocol.CONNECTED;<NEW_LINE>OspfRedistributionPolicy r = new OspfRedistributionPolicy(sourceProtocol);<NEW_LINE>proc.getRedistributionPolic... | = ctx.map.getText(); |
1,600,940 | public void marshall(ServerDetail serverDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (serverDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(serv... | serverDetail.getAntipatternReportS3Object(), ANTIPATTERNREPORTS3OBJECT_BINDING); |
369,710 | public World[] updatesQueries(int totalQueries) {<NEW_LINE>final World[] worlds = new World[totalQueries];<NEW_LINE>Transaction txn = null;<NEW_LINE>try {<NEW_LINE>txn <MASK><NEW_LINE>// using write batching. See the data source properties provided in the<NEW_LINE>// configuration .yml file<NEW_LINE>int[] ids = Helper.... | = currentSession().beginTransaction(); |
1,208,108 | public static DescribeBackupsResponse unmarshall(DescribeBackupsResponse describeBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupsResponse.setRequestId(_ctx.stringValue("DescribeBackupsResponse.RequestId"));<NEW_LINE>describeBackupsResponse.setEnableStatus(_ctx.stringValue("DescribeBackupsResponse.E... | ("DescribeBackupsResponse.Backups[" + i + "].BackupDBNames")); |
1,816,418 | void visitCase(String methodName) {<NEW_LINE>MethodNode methodNode = methods.get(methodName);<NEW_LINE>String name = methodNode.name;<NEW_LINE>boolean isStatic = (methodNode.access & Opcodes.ACC_STATIC) != 0;<NEW_LINE>String newDesc = computeOverrideMethodDesc(methodNode.desc, isStatic);<NEW_LINE>if (TRACING_ENABLED) {... | visitVarInsn(Opcodes.ALOAD, 2); |
683,350 | private void parseConnectParam(QuicksqlConnectionImpl connection, String sql) {<NEW_LINE>connectParam = new ClientConnectParam();<NEW_LINE>if (StringUtils.isNotBlank(connection.getInfoByName("jdbcUrl"))) {<NEW_LINE>connectParam = new ClientConnectParam(connection.getInfoByName("jdbcUrl"), connection.getInfoByName("user... | getInfoByName("appName"), "")); |
314,123 | public Client filter(Client client) {<NEW_LINE>ReadOnlyClient pseudoClient = new ReadOnlyClient(client);<NEW_LINE>// create all pseudo accounts<NEW_LINE>Map<Account, ReadOnlyAccount> account2pseudo = new HashMap<>();<NEW_LINE>Function<Account, ReadOnlyAccount> computeReadOnlyAccount = a -> {<NEW_LINE>ReadOnlyAccount pa... | ()), usedSecurities, processedSecurityTx); |
1,169,389 | private RichSinkFunction createEsSinkFunction() {<NEW_LINE>// check whether id fields is exists in columns if not use position to generate doc's id<NEW_LINE>if (!usePosition && ids != null && ids.size() != 0) {<NEW_LINE>List<String> filedNamesLists = Arrays.asList(fieldNames);<NEW_LINE>Preconditions.checkState(filedNam... | (columnTypes), ids, usePosition); |
686,777 | public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.callee_must_accept_message_request_dialog_fragment);<NEW_LINE>boolean callingFixedToPortrait = getResources().getConfiguration().densityDpi < 480;<NEW_LINE>if (callingFixedToPortrait... | findViewById(R.id.avatar); |
1,283,459 | final CreateGrantResult executeCreateGrant(CreateGrantRequest createGrantRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createGrantRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,357,765 | public StopKeyPhrasesDetectionJobResult stopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest stopKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopKeyPhrasesDetectionJobRequest);<NEW_LINE><MASK><NEW_LINE>... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
661,949 | static Stmt addThrowAfter(Chain<Local> locals, Chain<Unit> units, Stmt target) {<NEW_LINE>int i = 0;<NEW_LINE>boolean canAddI;<NEW_LINE>do {<NEW_LINE>canAddI = true;<NEW_LINE>String name = "__throwee" + i;<NEW_LINE>for (Local l : locals) {<NEW_LINE>if (name.equals(l.getName())) {<NEW_LINE>canAddI = false;<NEW_LINE>}<NE... | units.insertAfter(newStmt, target); |
538,428 | protected TokenStreamComponents createComponents(String fieldName) {<NEW_LINE>Tokenizer source = new FeatureVectorsTokenizer();<NEW_LINE>TokenFilter truncate = new LexicalLshTruncateTokenFilter(source, decimals);<NEW_LINE>TokenFilter featurePos = new LexicalLshFeaturePositionTokenFilter(truncate);<NEW_LINE>TokenStream ... | bucketCount, hashSetSize, bucketCount > 1); |
1,496,354 | public static void start(String[] args) {<NEW_LINE>// create logger<NEW_LINE>final Logger logger = LoggerFactory.getLogger(Server.class);<NEW_LINE>// initialize the parameter parser<NEW_LINE>// Note that the parameter parser should always be the first line to execute.<NEW_LINE>// Because, here we need to parse the para... | init(parameterParser.getLockStoreMode()); |
1,636,959 | private static SequenceQuery<AbstractInsnNode> conditionalAtStart() {<NEW_LINE>final Slot<Integer> counterVariable = Slot.create(Integer.class);<NEW_LINE>final Slot<LabelNode> loopStart = <MASK><NEW_LINE>final Slot<LabelNode> loopEnd = Slot.create(LabelNode.class);<NEW_LINE>return // .then(anIntegerConstant().and(debug... | Slot.create(LabelNode.class); |
1,745,832 | public static boolean shouldFullUnroll(OptionValues options, LoopEx loop) {<NEW_LINE>if (!loop.isCounted() || !loop.counted().isConstantMaxTripCount()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>CountedLoopInfo counted = loop.counted();<NEW_LINE>long maxTrips = counted.constantMaxTripCount().asLong();<NEW_LINE>int ma... | graph().getNodeCount()); |
1,735,452 | public WARCRecordInfo buildRecord(CrawlURI curi, URI concurrentTo) throws IOException {<NEW_LINE>final String timestamp = ArchiveUtils.getLog14Date(curi.getFetchBeginTime());<NEW_LINE>// By default, truncate all data<NEW_LINE>long revisedLength = 0;<NEW_LINE>if (curi.getRevisitProfile().getProfileName().equals(PROFILE_... | recordInfo.setType(WARCRecordType.revisit); |
472,386 | protected void paintTabBorder(Graphics g, int index, int x, int y, int width, int height) {<NEW_LINE>boolean isFirst = index == 0;<NEW_LINE>boolean isHighlighted = isTabHighlighted(index);<NEW_LINE>g.translate(x, y);<NEW_LINE>ColorUtil.paintXpTabHeader(isHighlighted ? ColorUtil.XP_HIGHLIGHTED_TAB : ColorUtil.XP_REGULAR... | width - 1, height - 2); |
1,535,844 | public void initXxlJobExecutor() {<NEW_LINE>// load executor prop<NEW_LINE>Properties xxlJobProp = loadProperties("xxl-job-executor.properties");<NEW_LINE>// init executor<NEW_LINE>xxlJobExecutor = new XxlJobSimpleExecutor();<NEW_LINE>xxlJobExecutor.setAdminAddresses(xxlJobProp.getProperty("xxl.job.admin.addresses"));<... | (xxlJobProp.getProperty("xxl.job.executor.logpath")); |
161,829 | protected void determineLocalParallelism(int preferredLocalParallelism, Context context, boolean shouldMatchUpstreamParallelism) {<NEW_LINE>int defaultParallelism = context.defaultLocalParallelism();<NEW_LINE>int upstreamParallelism = LOCAL_PARALLELISM_USE_DEFAULT;<NEW_LINE>if (shouldMatchUpstreamParallelism) {<NEW_LIN... | currParallelism = min(preferredLocalParallelism, defaultParallelism); |
314,666 | private void addDiscoveredTaskToPendingCompletionTaskGroups(int groupId, String taskId, Map<PartitionIdType, SequenceOffsetType> startingPartitions) {<NEW_LINE>final CopyOnWriteArrayList<TaskGroup> taskGroupList = pendingCompletionTaskGroups.computeIfAbsent(groupId, k <MASK><NEW_LINE>for (TaskGroup taskGroup : taskGrou... | -> new CopyOnWriteArrayList<>()); |
762,630 | public final NumberContext number() throws RecognitionException {<NEW_LINE>NumberContext _localctx = new NumberContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(69);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>_la = _input.LA(1);... | enterRule(_localctx, 12, RULE_number); |
135,241 | public void updateAllCentralAdminConfig(AllCentralAdminConfig config, @Nullable String priorVersion) throws Exception {<NEW_LINE>validatePagerDutyConfig(config.pagerDuty());<NEW_LINE>validateSlackConfig(config.slack());<NEW_LINE>if (priorVersion == null) {<NEW_LINE>centralConfigDao.writeWithoutOptimisticLocking(GENERAL... | SLACK_KEY, config.slack()); |
992,143 | public void write(JsonWriter out, MixedPropertiesAndAdditionalPropertiesClass value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != nul... | Character) entry.getValue()); |
1,361,119 | private void openNewColumnFiles(CharSequence name, boolean indexFlag, int indexValueBlockCapacity) {<NEW_LINE>try {<NEW_LINE>// open column files<NEW_LINE>long partitionTimestamp = txWriter.getLastPartitionTimestamp();<NEW_LINE>setStateForTimestamp(path, partitionTimestamp, false);<NEW_LINE>final int plen = path.length... | columnNameTxn, indexValueBlockCapacity, plen, true); |
888,602 | public void refreshSource() {<NEW_LINE>if (!addonHandlers.stream().allMatch(MarketplaceAddonHandler::isReady)) {<NEW_LINE>logger.debug("Add-on service '{}' tried to refresh source before add-on handlers ready. Exiting.", getClass());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Addon> addons = new ArrayList<>();<NEW_LINE>... | ).forEach(addons::add); |
324,620 | public void testBMTXAOptionB() throws Exception {<NEW_LINE>String deliveryID = "MD_test6c";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("BMTJMS", 63);<NEW_LINE>// Add a FVTXAResourceImpl for this delivery.<NEW_LINE>message.addX... | baseProvider.sendDirectMessage(deliveryID, message); |
604,589 | static // [START securitycenter_group_active_findings_with_source_at_time]<NEW_LINE>ImmutableList<GroupResult> groupActiveFindingsWithSourceAtTime(SourceName sourceName) {<NEW_LINE>try (SecurityCenterClient client = SecurityCenterClient.create()) {<NEW_LINE>// SourceName sourceName = SourceName.of(/*organization=*/"123... | throw new RuntimeException("Couldn't create client.", e); |
944,240 | private void parseVersion(final File config, final Map<String, List<String>> toAdd) throws Exception {<NEW_LINE>class P extends DefaultHandler {<NEW_LINE><NEW_LINE>String name;<NEW_LINE><NEW_LINE>List<String> arr;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void startElement(String uri, String localName, String qName,... | arr = new ArrayList<>(); |
168,539 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(... | setHour(time / 100 / 100); |
915,742 | private void writeGloballyTrustedKeys(DependencyVerificationConfiguration configuration) throws IOException {<NEW_LINE>final List<DependencyVerificationConfiguration.TrustedKey> keys = configuration.getTrustedKeys();<NEW_LINE>if (keys.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writer.startElement(TRUSTED_KEYS);<... | , Collectors.toList())); |
468,024 | private long cleanupStaleIndices(Map<String, BlobContainer> foundIndices, Set<String> survivingIndexIds) {<NEW_LINE>long deleteResult = 0;<NEW_LINE>try {<NEW_LINE>for (Map.Entry<String, BlobContainer> indexEntry : foundIndices.entrySet()) {<NEW_LINE>final String indexSnId = indexEntry.getKey();<NEW_LINE>try {<NEW_LINE>... | .getValue().delete(); |
266,335 | protected List<ORID> walkRight(final OSQLFunctionShortestPath.OShortestPathContext ctx) {<NEW_LINE>final ArrayDeque<OrientVertex> nextLevelQueue = new ArrayDeque<OrientVertex>();<NEW_LINE>while (!ctx.queueRight.isEmpty()) {<NEW_LINE>ctx.currentRight = ctx.queueRight.poll();<NEW_LINE>Iterable<Vertex> neighbors;<NEW_LINE... | currentRight.getVertices(ctx.directionRight); |
1,648,944 | private Shader linearCS(float x0, float y0, float x1, float y1, int colorFrom, int colorTo, ColorSpace cs, int steps) {<NEW_LINE>Color4f from = ColorSpace.getSRGB().convert(cs, new Color4f(colorFrom));<NEW_LINE>Color4f to = ColorSpace.getSRGB().convert(cs, new Color4f(colorTo));<NEW_LINE>Color4f[] colors = new Color4f[... | ] = (float) i / steps; |
1,560,471 | private void decreaseWindow(double amount) {<NEW_LINE>checkState(amount >= 0.0);<NEW_LINE>if (maxWindow == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double quota = Math.min(amount, maxWindow);<NEW_LINE>int steps = (int) windowSize - (int) (windowSize - quota);<NEW_LINE>windowSize -= quota;<NEW_LINE>for (int i = 0; i < ... | steps, maxWindow + steps, maxWindow); |
326,919 | public static void addCopyToClipMenu(final Control control, final copyToClipProvider provider) {<NEW_LINE>MouseAdapter ml = (MouseAdapter) control.getData(MOUSE_LISTENER_KEY);<NEW_LINE>if (ml != null) {<NEW_LINE>control.removeMouseListener(ml);<NEW_LINE>}<NEW_LINE>ml = new MouseAdapter() {<NEW_LINE><NEW_LINE>@Override<... | (MessageText.getString(msg_text_id)); |
962,788 | final GetServiceLastAccessedDetailsWithEntitiesResult executeGetServiceLastAccessedDetailsWithEntities(GetServiceLastAccessedDetailsWithEntitiesRequest getServiceLastAccessedDetailsWithEntitiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceLastAccessedDetailsWithEntitiesRequest... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetServiceLastAccessedDetailsWithEntities"); |
276,093 | public static ListMergeRequestCommentsResponse unmarshall(ListMergeRequestCommentsResponse listMergeRequestCommentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMergeRequestCommentsResponse.setRequestId(_ctx.stringValue("ListMergeRequestCommentsResponse.RequestId"));<NEW_LINE>listMergeRequestCommentsResponse.setEr... | ("ListMergeRequestCommentsResponse.Result[" + i + "].Closed")); |
529,027 | public static void vp8_alloc_compressor_data(Compressor cpi) {<NEW_LINE>CommonData cm = cpi.common;<NEW_LINE>int width = cm.Width;<NEW_LINE>int height = cm.Height;<NEW_LINE>cm.vp8_alloc_frame_buffers(width, height);<NEW_LINE>if ((width & 0xf) != 0)<NEW_LINE>width <MASK><NEW_LINE>if ((height & 0xf) != 0)<NEW_LINE>height... | += 16 - (width & 0xf); |
755,211 | final CancelReplayResult executeCancelReplay(CancelReplayRequest cancelReplayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelReplayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | false), new CancelReplayResultJsonUnmarshaller()); |
336,334 | private JPanel createSearchFieldPanel() {<NEW_LINE>JPanel searchField = new JPanel();<NEW_LINE>JLabel lblSearch = new JLabel("Search");<NEW_LINE>searchField.add(lblSearch);<NEW_LINE>JTextField searchTextField = new JTextField();<NEW_LINE>searchTextField.getDocument().addDocumentListener(new DocumentListener() {<NEW_LIN... | searchText.toLowerCase()))); |
974,931 | private byte[] encryptPassword(String pwd) {<NEW_LINE>// Changed to handle non ascii passwords<NEW_LINE>if (pwd == null)<NEW_LINE>pwd = "";<NEW_LINE>int len = pwd.length();<NEW_LINE>byte[] data = new byte[len * 2];<NEW_LINE>for (int i1 = 0; i1 < len; i1++) {<NEW_LINE>int j1 = pwd.charAt(i1) ^ 0x5a5a;<NEW_LINE>j1 = (j1 ... | (j1 & 0xf000) >> 4; |
1,854,991 | private MTreeNode retrieveRootNodeModel() {<NEW_LINE>final UserMenuInfo userMenuInfo = getUserMenuInfo();<NEW_LINE>final AdTreeId adTreeId = userMenuInfo.getAdTreeId();<NEW_LINE>if (adTreeId == null) {<NEW_LINE>throw new AdempiereException("Menu tree not found");<NEW_LINE>}<NEW_LINE>final MTree mTree = MTree.builder().... | findNode(rootMenuIdEffective.getRepoId()); |
1,141,505 | public ValidationHandlerImpl create(OperationImpl operation) {<NEW_LINE>// TODO error handling of this function?<NEW_LINE>Map<ParameterLocation, List<ParameterProcessor>> parameterProcessors = new HashMap<>();<NEW_LINE>List<BodyProcessor> <MASK><NEW_LINE>GeneratorContext context = new GeneratorContext(this.schemaParser... | bodyProcessors = new ArrayList<>(); |
184,864 | final DBInstance executeStartDBInstance(StartDBInstanceRequest startDBInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDBInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<StartDBInstanceRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,017,945 | public void marshall(CreateBranchRequest createBranchRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBranchRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBranchRequest.getAppI... | createBranchRequest.getPullRequestEnvironmentName(), PULLREQUESTENVIRONMENTNAME_BINDING); |
1,114,795 | public TColumn toThrift() {<NEW_LINE>TColumn tColumn = new TColumn();<NEW_LINE>tColumn.setColumnName(this.name);<NEW_LINE>TColumnType tColumnType = new TColumnType();<NEW_LINE>tColumnType.setType(this.getDataType().toThrift());<NEW_LINE>tColumnType.setLen(this.getStrLen());<NEW_LINE>tColumnType.setPrecision(this.getPre... | setScale(this.getScale()); |
1,052,140 | public static DescribeLogItemsResponse unmarshall(DescribeLogItemsResponse describeLogItemsResponse, UnmarshallerContext context) {<NEW_LINE>describeLogItemsResponse.setRequestId(context.stringValue("DescribeLogItemsResponse.RequestId"));<NEW_LINE>describeLogItemsResponse.setTotalCount(context.integerValue("DescribeLog... | + "].MContents[" + j + "].MKey")); |
501,229 | public Integer call() throws Exception {<NEW_LINE>super.call();<NEW_LINE>MemoryRunner runner = applicationContext.getBean(MemoryRunner.class);<NEW_LINE>LocalFlowRepositoryLoader repositoryLoader = applicationContext.getBean(LocalFlowRepositoryLoader.class);<NEW_LINE>FlowRepositoryInterface flowRepository = applicationC... | ), e.getMessage()); |
522,090 | ArrayList<Object> new137() /* reduce AAdynamicinvokeexpr2InvokeExpr */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList9 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Arra... | <Object> nodeArrayList1 = pop(); |
768,417 | // to be removed before 2.0<NEW_LINE>@Deprecated<NEW_LINE>public static RelNode createNullFilter(RelNode rel, Integer[] fieldOrdinals) {<NEW_LINE>RexNode condition = null;<NEW_LINE>final RexBuilder rexBuilder = rel.getCluster().getRexBuilder();<NEW_LINE><MASK><NEW_LINE>int n;<NEW_LINE>if (fieldOrdinals != null) {<NEW_L... | RelDataType rowType = rel.getRowType(); |
1,791,717 | protected WSSecUsernameToken addUsernameToken(SoapMessage message, UsernameToken token) {<NEW_LINE>String userName = (String) message.getContextualProperty(SecurityConstants.USERNAME);<NEW_LINE>WSSConfig wssConfig = (WSSConfig) message.getContextualProperty(WSSConfig.class.getName());<NEW_LINE>if (wssConfig == null) {<... | WSSecUsernameToken utBuilder = new WSSecUsernameToken(wssConfig); |
1,323,803 | protected VariableDeclarationFragment convertToVariableDeclarationFragment(org.eclipse.jdt.internal.compiler.ast.LocalDeclaration localDeclaration) {<NEW_LINE>final VariableDeclarationFragment variableDeclarationFragment = new VariableDeclarationFragment(this.ast);<NEW_LINE>final SimpleName name = new SimpleName(this.a... | end - localDeclaration.sourceStart + 1); |
764,578 | public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (permanent != null && permanent.isCreature(game)) {<NEW_LINE>Player controller = game.getPlayer(permanent.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>TargetControlled... | .getColoredObjectIdNameForTooltip(chosen), game); |
865,471 | public boolean visit(MethodInvocation node) {<NEW_LINE>int lParen = this.tm.firstIndexAfter(node.getName(), TokenNameLPAREN);<NEW_LINE>int rParen = this.tm.lastIndexIn(node, TokenNameRPAREN);<NEW_LINE>handleParenthesesPositions(lParen, rParen, this.options.parenthesis_positions_in_method_invocation);<NEW_LINE>handleArg... | .getLocationInParent() != MethodInvocation.EXPRESSION_PROPERTY; |
782,611 | protected static Filter computeDistributedNormalForm(Filter filter) {<NEW_LINE>assertFieldFilterOrCompositeFilter(filter);<NEW_LINE>if (filter instanceof FieldFilter) {<NEW_LINE>return filter;<NEW_LINE>}<NEW_LINE>CompositeFilter compositeFilter = (CompositeFilter) filter;<NEW_LINE>if (compositeFilter.getFilters().size(... | ().get(0)); |
1,302,912 | final StartOnDemandAppReplicationResult executeStartOnDemandAppReplication(StartOnDemandAppReplicationRequest startOnDemandAppReplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startOnDemandAppReplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
971,294 | private void docTypeBuildAnnotationType(AnnotationType annotation, DocumentmanagerConfig.Doctype.Builder builder, IdxMap indexMap) {<NEW_LINE>if (indexMap.isDone(annotation)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>indexMap.setDone(annotation);<NEW_LINE>var annBuilder = new DocumentmanagerConfig.Doctype.Annotationtype.B... | (indexMap.idxOf(nested)); |
148,749 | public DescribeRouterConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeRouterConfigurationResult describeRouterConfigurationResult = new DescribeRouterConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c... | ().unmarshall(context)); |
515,684 | private void sendMembershipEvents(Collection<CPMemberInfo> currentMembers, Collection<CPMemberInfo> newMembers) {<NEW_LINE>if (!isMetadataGroupLeader()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EventService eventService = nodeEngine.getEventService();<NEW_LINE>Collection<CPMemberInfo> addedMembers = new LinkedHashSet<>(n... | CPMembershipEventImpl(member, EventType.REMOVED); |
721,467 | private void executeIteration(int[] rgb, Mask mask, int width, int height) {<NEW_LINE>Mask.MaskIterator <MASK><NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>int pixelIndex = iterator.next();<NEW_LINE>int x = pixelIndex % width;<NEW_LINE>int y = pixelIndex / width;<NEW_LINE>int r = 0, g = 0, b = 0;<NEW_LINE>int count =... | iterator = mask.new MaskIterator(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.