idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,849,119 | private JobDetailPresentationModel presenter(JobInstance current) {<NEW_LINE>String pipelineName = current.getIdentifier().getPipelineName();<NEW_LINE>String stageName = current.getIdentifier().getStageName();<NEW_LINE>JobInstances recent25 = jobInstanceService.latestCompletedJobs(pipelineName, stageName, current.getNa... | stage = stageService.getStageByBuild(current); |
1,755,486 | SoftwareSystemInstance parse(DeploymentNodeDslContext context, Tokens tokens) {<NEW_LINE>// softwareSystemInstance <identifier> [tags]<NEW_LINE>// softwareSystemInstance <identifier> [deploymentGroup] [tags]<NEW_LINE>if (tokens.hasMoreThan(TAGS_INDEX)) {<NEW_LINE>throw new RuntimeException("Too many tokens, expected: "... | new String[] {})); |
1,678,913 | public void createSourceWithParams(final ReadableMap options, final Promise promise) {<NEW_LINE>SourceParams sourceParams = extractSourceParams(options);<NEW_LINE>ArgCheck.nonNull(sourceParams);<NEW_LINE>mStripe.createSource(sourceParams, new ApiResultCallback<Source>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public vo... | .reject(toErrorCode(error)); |
181,606 | public HttpResponse fakeOuterBooleanSerializeForHttpResponse(Boolean body, Map<String, Object> params) throws IOException {<NEW_LINE>UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/boolean");<NEW_LINE>// Copy the params argument if present, to allow passing in immutable maps<NEW_LINE>M... | = apiClient.new JacksonJsonHttpContent(body); |
708,491 | public int compareTo(Record arg) {<NEW_LINE>if (this == arg) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int n = name.compareTo(arg.name);<NEW_LINE>if (n != 0) {<NEW_LINE>return n;<NEW_LINE>}<NEW_LINE>n = dclass - arg.dclass;<NEW_LINE>if (n != 0) {<NEW_LINE>return n;<NEW_LINE>}<NEW_LINE>n = type - arg.type;<NEW_LINE>if (n... | return rdata1.length - rdata2.length; |
1,473,113 | private void storeInstancePriceComponents(InitializationContext context, String instanceTypeCode, JsonNode instanceTypeToDetailsMap) {<NEW_LINE>JsonNode regionToPriceMap = instanceTypeToDetailsMap.get("prices");<NEW_LINE>String now = DateTimeFormatter.ISO_INSTANT.format(Instant.now());<NEW_LINE>Iterator<String> regionC... | String regionCode = regionCodeItr.next(); |
314,843 | public CruiseConfig update(CruiseConfig preprocessedConfig) throws Exception {<NEW_LINE>String pluginId = pluginDescriptor.id();<NEW_LINE>List<ClusterProfile> clusterProfiles = clusterProfilesService.getPluginProfiles().findByPluginId(pluginId);<NEW_LINE>List<ElasticProfile> elasticAgentProfiles = elasticProfileService... | > migratedElasticAgentProfiles = migratedElasticAgentInformation.getElasticAgentProfiles(); |
953,846 | public void onSpeechButtonClicked(View v) {<NEW_LINE>// 'hello' is the ID of your text view<NEW_LINE>TextView txt = (TextView) this.findViewById(R.id.hello);<NEW_LINE>try {<NEW_LINE>SpeechConfig config = SpeechConfig.fromSubscription(speechSubscriptionKey, serviceRegion);<NEW_LINE>assert (config != null);<NEW_LINE>Stri... | = new SpeechRecognizer(config, ac); |
288,686 | public void encodeMoreText(FacesContext context, AutoComplete ac) throws IOException {<NEW_LINE>int colSize = ac.getColums().size();<NEW_LINE>String moreText = ac.getMoreText();<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>if (colSize > 0) {<NEW_LINE>writer.startElement("tr", null);<NEW_LINE>w... | writer.startElement("td", null); |
1,629,760 | public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UUID sid;<NEW_LINE>try {<NEW_LINE>sid = UUID.f... | setInError(HttpStatus.SC_NOT_ACCEPTABLE, "Invalid session id"); |
1,200,746 | public SshResult run() {<NEW_LINE>SshResult ret = new SshResult();<NEW_LINE>String cmd = getCommand();<NEW_LINE>ret.setCommandToExecute(cmd);<NEW_LINE>try {<NEW_LINE>ChannelSftp channel = null;<NEW_LINE>try {<NEW_LINE>channel = (ChannelSftp) session.openChannel("sftp");<NEW_LINE>channel.connect(getTimeoutInMilli(timeou... | channel.get(src, dst); |
1,592,974 | public PolicyError validate(RealmModel realm, UserModel user, String password) {<NEW_LINE>PasswordPolicy policy = session.getContext().getRealm().getPasswordPolicy();<NEW_LINE>int passwordHistoryPolicyValue = policy.getPolicyConfig(PasswordPolicy.PASSWORD_HISTORY_ID);<NEW_LINE>if (passwordHistoryPolicyValue != -1) {<NE... | hash.verify(password, passwordCredential); |
1,433,377 | public static int patchBitSequence(int original, int value, int[] bitsUsed, int[] offsets) {<NEW_LINE>assert bitsUsed.length == 4 && offsets.length == 4 : "bitsUsed and offsets parameter should be of length 4";<NEW_LINE>int result = 0;<NEW_LINE>int curValue = value;<NEW_LINE>for (int i = 0; i < bitsUsed.length; i++) {<... | mask) << offset) & 0xFF); |
542,884 | final ListStudioLifecycleConfigsResult executeListStudioLifecycleConfigs(ListStudioLifecycleConfigsRequest listStudioLifecycleConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStudioLifecycleConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,036,439 | public boolean isTagFilterMatching(Map<String, String> tags) {<NEW_LINE>if (tagFilter == null || tagFilter.size() == 0) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>boolean matching = false;<NEW_LINE>for (Map.Entry<String, List<String>> e : tagFilter.entrySet()) {<NEW_LINE>List<String<MASK><NEW_LINE>for (String matchStr... | > matchStrList = e.getValue(); |
1,163,311 | public final void execute(EnforcerRuleHelper helper) throws EnforcerRuleException {<NEW_LINE>logger = helper.getLog();<NEW_LINE>MavenProject project;<NEW_LINE>try {<NEW_LINE>project = (<MASK><NEW_LINE>} catch (ExpressionEvaluationException e) {<NEW_LINE>throw new IllegalStateException("Failed to get project from Enforc... | MavenProject) helper.evaluate("${project}"); |
1,808,090 | Bundle encode(@NonNull JobParameters jobParameters, @NonNull Bundle data) {<NEW_LINE>if (data == null) {<NEW_LINE>throw new IllegalArgumentException("Unexpected null Bundle provided");<NEW_LINE>}<NEW_LINE>Bundle userExtras = jobParameters.getExtras();<NEW_LINE>if (userExtras != null) {<NEW_LINE>data.putAll(userExtras);... | PACKED_PARAM_SERVICE, jobParameters.getService()); |
733,150 | protected Object doNoClosure(VirtualFrame frame, PFunction callee, @SuppressWarnings("unused") PythonObject globals, @SuppressWarnings("unused") PCell[] closure, Object[] arguments, @Cached ConditionProfile generatorFunctionProfile) {<NEW_LINE>RootCallTarget ct = (RootCallTarget) callNode.getCurrentCallTarget();<NEW_LI... | IndirectCalleeContext.exit(threadState, state); |
999,120 | public static List<BrokerDiskTopicVO> convert2BrokerDiskTopicVOList(List<TopicDiskLocation> locationList) {<NEW_LINE>if (ValidateUtils.isEmptyList(locationList)) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>List<BrokerDiskTopicVO> <MASK><NEW_LINE>for (TopicDiskLocation location : locationList) {<NEW_LINE>Br... | voList = new ArrayList<>(); |
562,050 | public void load() {<NEW_LINE>if (!hasSize) {<NEW_LINE>waitingDocumentConfigurator = this;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PDFView.this.recycle();<NEW_LINE>PDFView.this.callbacks.setOnLoadComplete(onLoadCompleteListener);<NEW_LINE>PDFView.this.callbacks.setOnError(onErrorListener);<NEW_LINE>PDFView.this.callbacks.... | PDFView.this.setDefaultPage(defaultPage); |
1,615,284 | private List<Vrf> initVrfsIfAbsent(Set<String> names, ParserRuleContext ctx, @Nonnull CumulusStructureUsage usage) {<NEW_LINE>ImmutableList.Builder<Vrf> vrfsBuilder = ImmutableList.builder();<NEW_LINE>ImmutableList.Builder<String> newVrfs = ImmutableList.builder();<NEW_LINE>for (String name : names) {<NEW_LINE>Vrf vrf ... | .getStart().getLine(); |
708,086 | public void addStartPaths(FST.Arc<T> node, T startOutput, boolean allowEmptyString, IntsRefBuilder input, float boost, CharSequence context, int payload) throws IOException {<NEW_LINE>// De-dup NO_OUTPUT since it must be a singleton:<NEW_LINE>if (startOutput.equals(fst.outputs.getNoOutput())) {<NEW_LINE>startOutput = f... | readNextArc(path.arc, bytesReader); |
553,392 | private void drawInternal(UGraphic ug) throws IOException {<NEW_LINE>double x = 0;<NEW_LINE>double y = 0;<NEW_LINE>double rawHeight = 0;<NEW_LINE>final Stdlib <MASK><NEW_LINE>final CommandFactorySprite factorySpriteCommand = new CommandFactorySprite();<NEW_LINE>Command<WithSprite> cmd = factorySpriteCommand.createMulti... | folder = Stdlib.retrieve(name); |
363,656 | public Matrix4f mul(float r00, float r01, float r02, float r03, float r10, float r11, float r12, float r13, float r20, float r21, float r22, float r23, float r30, float r31, float r32, float r33, Matrix4f dest) {<NEW_LINE>if ((properties & PROPERTY_IDENTITY) != 0)<NEW_LINE>return dest.set(r00, r01, r02, r03, r10, r11, ... | r30, r31, r32, r33); |
503,690 | protected ContentSearchCluster doBuild(DeployState deployState, AbstractConfigProducer<?> ancestor, Element producerSpec) {<NEW_LINE>ModelElement clusterElem = new ModelElement(producerSpec);<NEW_LINE>String clusterName = ContentCluster.getClusterId(clusterElem);<NEW_LINE>Boolean flushOnShutdownElem = clusterElem.child... | deployState, clusterElem, clusterName, search); |
243,389 | public boolean apply(Game game, Ability source) {<NEW_LINE>Map<UUID, Integer> playerMap = game.getBattlefield().getActivePermanents(StaticFilters.FILTER_LAND, source.getControllerId(), source, game).stream().map(Controllable::getControllerId).collect(Collectors.toMap(Function.identity(), x -> 1, Integer::sum));<NEW_LIN... | true, false, false, null); |
1,183,647 | public com.amazonaws.services.clouddirectory.model.FacetNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.clouddirectory.model.FacetNotFoundException facetNotFoundException = new com.amazonaws.services.clouddirectory.model.FacetNotFoundException(... | String currentParentElement = context.getCurrentParentElement(); |
1,314,203 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>properties.forEach(p <MASK><NEW_LINE>invokerPackage = PACKAGE_PROPERTY.getInvokerPackage(additionalProperties);<NEW_LINE>apiPackage = PACKAGE_PROPERTY.getApiPackage(additionalProperties);<NEW_LINE>modelPackage = PACKAGE_PROPERTY.getModelPackage(addition... | -> p.updateAdditionalProperties(additionalProperties)); |
870,118 | public void read(JmeImporter im) throws IOException {<NEW_LINE>InputCapsule ic = im.getCapsule(this);<NEW_LINE>c = (char) <MASK><NEW_LINE>x = ic.readInt("x", 0);<NEW_LINE>y = ic.readInt("y", 0);<NEW_LINE>width = ic.readInt("width", 0);<NEW_LINE>height = ic.readInt("height", 0);<NEW_LINE>xOffset = ic.readInt("xOffset", ... | ic.readInt("c", 0); |
276,953 | public void i_putFieldAnnotation(String i_className, String i_fieldName, String i_annotationClassName, String annotationDetail) {<NEW_LINE>Map<String, Map<String, String>> i_fieldAnnotationSuite = i_fieldDetails.get(i_className);<NEW_LINE>if (i_fieldAnnotationSuite == null) {<NEW_LINE>i_fieldAnnotationSuite = new Ident... | IdentityHashMap<String, String>(); |
232,055 | public void create(String emailAddress, String firstName, String lastName, String eventId, int daysInAdvance) throws DotDataException {<NEW_LINE>daysInAdvance = (daysInAdvance < 0 ? daysInAdvance : -daysInAdvance);<NEW_LINE>// Create the user if it doesn't exist<NEW_LINE>User user = null;<NEW_LINE>if (UtilMethods.isSet... | class, ex.getMessage()); |
1,491,323 | private Map<String, Object> metricsInfo() {<NEW_LINE>Map<String, Object> metrics = InsertionOrderUtil.newMap();<NEW_LINE>metrics.put(BackendMetrics.MEM_UNIT, "MB");<NEW_LINE>metrics.put(BackendMetrics.DISK_UNIT, "GB");<NEW_LINE>// NOTE: the unit of rocksdb memory property is bytes<NEW_LINE>long memUsed = (long) this.ge... | this.appendMetricsNumber(metrics, COMPACTION_PENDINF); |
1,556,236 | public Version parse(String text) {<NEW_LINE>Assert.notNull(text, "Text must not be null");<NEW_LINE>Matcher matcher = VERSION_REGEX.matcher(text.trim());<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>throw new InvalidVersionException("Could not determine version based on '" + <MASK><NEW_LINE>}<NEW_LINE>Integer major = I... | text + "': version format " + "is Major.Minor.Patch and an optional Qualifier " + "(e.g. 1.0.5.RELEASE)"); |
1,105,015 | public void visit(Page page) {<NEW_LINE>String url = page.getWebURL().getURL();<NEW_LINE>stats.incrementProcessedPageCount();<NEW_LINE>if (page.getParseData() instanceof HtmlParseData) {<NEW_LINE>HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();<NEW_LINE>String title = htmlParseData.getTitle();<NEW_LIN... | " Text length: %d %n", text.length()); |
1,635,527 | protected Object encodingConverterLastError(RubyEncodingConverter encodingConverter, @Cached StringNodes.MakeStringNode makeStringNode) {<NEW_LINE>final EConv ec = encodingConverter.econv;<NEW_LINE>final EConv.LastError lastError = ec.lastError;<NEW_LINE>if (lastError.getResult() != EConvResult.InvalidByteSequence && l... | eConvResultToSymbol(lastError.getResult()); |
1,647,156 | final ListStackInstancesForProvisionedProductResult executeListStackInstancesForProvisionedProduct(ListStackInstancesForProvisionedProductRequest listStackInstancesForProvisionedProductRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStackInstancesForProvisionedProductRequest);<NEW_LIN... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,693,030 | Object invoke(HookParams theParams) {<NEW_LINE>Object[] args = new Object[myParameterTypes.length];<NEW_LINE>for (int i = 0; i < myParameterTypes.length; i++) {<NEW_LINE>Class<?> nextParamType = myParameterTypes[i];<NEW_LINE>if (nextParamType.equals(Pointcut.class)) {<NEW_LINE>args[i] = myPointcut;<NEW_LINE>} else {<NE... | targetException.toString(), targetException); |
1,452,826 | private void doActionInitial() {<NEW_LINE>List<CalDavEvent> events = calDavLoader.getEvents(new CalDavQuery(this.readCalendars, DateTime.now(), Sort.ASCENDING));<NEW_LINE>Map<String, EventUtils.EventContent> map = new HashMap<String, EventUtils.EventContent>();<NEW_LINE>for (CalDavEvent calDavEvent : events) {<NEW_LINE... | calDavEvent, this.itemRegistry, null); |
890,521 | public void start(Stage st) throws Exception {<NEW_LINE>startupLatch.countDown();<NEW_LINE>log.debug("Started JavaFX");<NEW_LINE>webView = new WebView();<NEW_LINE>// Fix blank pages for WebKit > 609.1<NEW_LINE>// See also https://github.com/qzind/tray/issues/778<NEW_LINE>if (getWebkitVersion() == null || getWebkitVersi... | exceptionProperty().addListener(exceptListener); |
736,897 | private void execute(NotifyConfigDTO notifyConfig, String title, String text, List<String> mobiles) {<NEW_LINE>String serverUrl = DingAlarmConstants.DING_ROBOT_SERVER_URL + notifyConfig.getSecretKey();<NEW_LINE>String secret = notifyConfig.getSecret();<NEW_LINE>if (StringUtil.isNotBlank(secret)) {<NEW_LINE>long timesta... | mac = Mac.getInstance("HmacSHA256"); |
964,356 | private void initResumableStream() throws IOException {<NEW_LINE>final WriteChannel writeChannel = SocketAccess.doPrivilegedIOException(() -> client().writer(blobInfo, writeOptions));<NEW_LINE>channelRef.set(writeChannel);<NEW_LINE>resumableStream = new FilterOutputStream(Channels.newOutputStream(new WritableBlobChanne... | b, off + written, toWrite); |
1,211,037 | final UpdateOrganizationConfigurationResult executeUpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateOrganizationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
5,511 | public int resolveAttributeReference(Ref<Res_value> inOutValue, int blockIndex, Ref<Integer> outLastRef, final Ref<Integer> inoutTypeSpecFlags, Ref<ResTable_config> inoutConfig) {<NEW_LINE>// printf("Resolving type=0x%x\n", inOutValue->dataType);<NEW_LINE>if (inOutValue.get().dataType == TYPE_ATTRIBUTE) {<NEW_LINE>fina... | inOutValue.get().data); |
1,198,053 | public List<OperationArgument> buildResolverArguments(ArgumentBuilderParams params) {<NEW_LINE>Method resolverMethod = params.getResolverMethod();<NEW_LINE>List<OperationArgument> operationArguments = new ArrayList<>(resolverMethod.getParameterCount());<NEW_LINE>AnnotatedType[] parameterTypes = ClassUtils.getParameterT... | resolverMethod.getParameters()[i]; |
1,786,664 | private static Type unboxType(Type t) {<NEW_LINE>if (t instanceof ClassType) {<NEW_LINE>String name = ((ClassType) t).name();<NEW_LINE>if (name.equals("java.lang.Boolean")) {<NEW_LINE>t = t.virtualMachine().mirrorOf(true).type();<NEW_LINE>} else if (name.equals("java.lang.Byte")) {<NEW_LINE>t = t.virtualMachine().mirro... | short) 10).type(); |
218,470 | private List populateData(EntityMetadata m, List<KeySlice> keySlices, List<Object> entities, boolean isRelational, List<String> relationNames) {<NEW_LINE>try {<NEW_LINE>if (m.getType().isSuperColumnFamilyMetadata()) {<NEW_LINE>List<Object> rowKeys = ThriftDataResultHelper.getRowKeys(keySlices, m);<NEW_LINE>Object[] row... | ] key = keySlice.getKey(); |
1,557,276 | public void showContextMenuPopup(int left, int top) {<NEW_LINE>if (this.customContextMenu instanceof HasWidgets) {<NEW_LINE>if (!((HasWidgets) this.customContextMenu).iterator().hasNext()) {<NEW_LINE>// there are no actions to show<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Store the currently focused element, ... | customContextMenuPopup.setWidget(this.customContextMenu); |
618,555 | public static void main(String[] args) throws Exception {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>final Cmd cmd = MainUtils.parseArguments(args, flags);<NEW_LINE>if (cmd.argsLength() < 2) {<NEW_LINE>MainUtils.printHelpCmd("trim", flags, Arrays.asList(new String[] { "in movie", "?out movie" }));<N... | long finishTime = System.currentTimeMillis(); |
526,706 | public AdminGetDeviceResult adminGetDevice(AdminGetDeviceRequest adminGetDeviceRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminGetDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(... | awsRequestMetrics.endEvent(Field.ClientExecuteTime); |
470,946 | public FsInfo stats(FsInfo previous, @Nullable ClusterInfo clusterInfo) throws IOException {<NEW_LINE>if (!nodeEnv.hasNodeFile()) {<NEW_LINE>return new FsInfo(System.currentTimeMillis(), null, new FsInfo.Path[0]);<NEW_LINE>}<NEW_LINE>NodePath[] dataLocations = nodeEnv.nodePaths();<NEW_LINE>FsInfo.Path[] paths = new FsI... | get(nodeEnv.nodeId()); |
307,949 | public boolean voidIt() {<NEW_LINE>log.info(toString());<NEW_LINE>// Before Void<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_VOID);<NEW_LINE>if (m_processMsg != null)<NEW_LINE>return false;<NEW_LINE>if (DOCSTATUS_Closed.equals(getDocStatus()) || DOCSTATUS_Rever... | line.save(get_TrxName()); |
1,520,184 | public void run(final JobExecutionContext jobContext) {<NEW_LINE>this.jobContext = jobContext;<NEW_LINE>final JobDataMap jobDataMap = this.jobContext.getJobDetail().getJobDataMap();<NEW_LINE>final String requesterKey = (String) jobDataMap.get(IntegrityUtil.REQUESTER_KEY);<NEW_LINE>IntegrityUtil.cleanUpIntegrityData(req... | IntegrityDataGenerationJob.class, "Error generating data to check", e); |
805,946 | private List<SharingTarget> findItems(BaseShareable data) {<NEW_LINE>Set<String> missed = new HashSet<<MASK><NEW_LINE>Intent it = data.getTargetIntent(null);<NEW_LINE>PackageManager pm = MwmApplication.from(mContext).getPackageManager();<NEW_LINE>List<ResolveInfo> rlist = pm.queryIntentActivities(it, 0);<NEW_LINE>final... | >(mItems.keySet()); |
333,101 | public void init() throws DBException {<NEW_LINE>Properties props = getProperties();<NEW_LINE>String url = props.getProperty(URL_PROPERTY, "http://127.0.0.1:8091/pools");<NEW_LINE>String bucket = props.getProperty(BUCKET_PROPERTY, "default");<NEW_LINE>String password = props.getProperty(PASSWORD_PROPERTY, "");<NEW_LINE... | , "true").equals("true"); |
307,434 | static RegularCriterion and(final RegularCriterion a, final RegularCriterion b) {<NEW_LINE>if ("".equals(a.toRegularExpression())) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if ("".equals(b.toRegularExpression())) {<NEW_LINE>return a;<NEW_LINE>}<NEW_LINE>return new RegularCriterion() {<NEW_LINE><NEW_LINE>public String to... | stripDelims(b.toRegularExpression()); |
1,510,552 | public static UpdatePrometheusAlertRuleResponse unmarshall(UpdatePrometheusAlertRuleResponse updatePrometheusAlertRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>updatePrometheusAlertRuleResponse.setRequestId(_ctx.stringValue("UpdatePrometheusAlertRuleResponse.RequestId"));<NEW_LINE>PrometheusAlertRule prometheusAle... | (_ctx.longValue("UpdatePrometheusAlertRuleResponse.PrometheusAlertRule.AlertId")); |
442,508 | final CreateImageRecipeResult executeCreateImageRecipe(CreateImageRecipeRequest createImageRecipeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createImageRecipeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new CreateImageRecipeResultJsonUnmarshaller()); |
1,420,419 | protected BigDecimal computeBalance(Year year, Account account, Partner partner, boolean allocatePerPartner) {<NEW_LINE><MASK><NEW_LINE>if (allocatePerPartner && account.getUseForPartnerBalance()) {<NEW_LINE>if (partner != null) {<NEW_LINE>prepareQuery += " AND self.partner = ?4";<NEW_LINE>} else {<NEW_LINE>prepareQuer... | String prepareQuery = "select SUM(self.debit - self.credit) FROM MoveLine as self " + "WHERE self.move.ignoreInAccountingOk = false AND self.move.period.year = ?1 AND self.account = ?2 " + "AND self.move.statusSelect = ?3 AND self.move.autoYearClosureMove is not true"; |
1,515,545 | protected void clueAnswerFeatures(AnswerFV afv, Clue clue) {<NEW_LINE>afv.setFeature(clueFeaturePrefix + clue.getType().getShortName(), 1.0);<NEW_LINE>if (clue instanceof ClueSubject) {<NEW_LINE>afv.setFeature(clueFeaturePrefix + "ClueSubject", 1.0);<NEW_LINE>} else if (clue instanceof ClueConcept) {<NEW_LINE>double be... | setFeature(clueFeaturePrefix + "ClueLAT", 1.0); |
464,873 | public J visitBinary(J.Binary binary, P p) {<NEW_LINE>J.Binary b = binary;<NEW_LINE>b = b.withPrefix(visitSpace(b.getPrefix(), Space.Location.BINARY_PREFIX, p));<NEW_LINE>b = b.withMarkers(visitMarkers(b<MASK><NEW_LINE>Expression temp = (Expression) visitExpression(b, p);<NEW_LINE>if (!(temp instanceof J.Binary)) {<NEW... | .getMarkers(), p)); |
1,103,809 | private State checkH(State state) throws DatatypeException, IOException {<NEW_LINE>if (state.context.length() == 0) {<NEW_LINE>state = appendToContext(state);<NEW_LINE>}<NEW_LINE>state.current <MASK><NEW_LINE>state = appendToContext(state);<NEW_LINE>state = skipSpaces(state);<NEW_LINE>boolean expectNumber = true;<NEW_L... | = state.reader.read(); |
325,522 | private // the shared allocation optimization.<NEW_LINE>void addArcInitialization(EnumDeclaration node) {<NEW_LINE>List<Statement> stmts = node.getClassInitStatements().subList(0, 0);<NEW_LINE>int i = 0;<NEW_LINE>for (EnumConstantDeclaration constant : node.getEnumConstants()) {<NEW_LINE><MASK><NEW_LINE>ClassInstanceCr... | VariableElement varElement = constant.getVariableElement(); |
915,450 | public void reportProcesses(EBPFProcessReportList request, StreamObserver<EBPFReportProcessDownstream> responseObserver) {<NEW_LINE>final String agentId = request.getEbpfAgentID();<NEW_LINE>// build per process data<NEW_LINE>final ArrayList<Tuple2<Process, EBPFProcessDownstream>> processes = new ArrayList<>();<NEW_LINE... | Builder builder = EBPFReportProcessDownstream.newBuilder(); |
976,309 | public void doProxyInstall(ClassLoader webapploader, final String appid) {<NEW_LINE>dpInstaller.setTargetClassLoader(webapploader);<NEW_LINE>dpInstaller.defineField("mMap", <MASK><NEW_LINE>dpInstaller.installProxy("org.aredis.cache.RedisCommandObject", new String[] { "com.creditease.uav.hook.redis.aredis.interceptors" ... | Map.class, "org.aredis.cache.RedisCommandObject", "new java.util.HashMap()"); |
1,163,837 | private void doFilter(ClientRequestContext requestContext) {<NEW_LINE>// find the context - if not cannot propagate<NEW_LINE>Optional<SecurityContext> securityContext = findContext(requestContext);<NEW_LINE>if (securityContext.isPresent()) {<NEW_LINE>outboundSecurity(requestContext, securityContext.get());<NEW_LINE>} e... | (context.id())); |
1,582,887 | public void initialise() {<NEW_LINE>setLayout(new BorderLayout(7, 7));<NEW_LINE>JPanel previewPanel = new JPanel(new BorderLayout(3, 3));<NEW_LINE>previewLabel = new FormLabel("Axioms: Computing... ");<NEW_LINE>previewPanel.add(previewLabel, BorderLayout.NORTH);<NEW_LINE>previewList = new OWLObjectList<>(getEditorKit()... | = new OWLCellRenderer(getEditorKit()); |
835,921 | static public Change load(LineNumberReader reader, Pool pool) throws Exception {<NEW_LINE>List<Row> oldRows = null;<NEW_LINE>List<Row> newRows = null;<NEW_LINE>String line;<NEW_LINE>while ((line = reader.readLine()) != null && !"/ec/".equals(line)) {<NEW_LINE>int equal = line.indexOf('=');<NEW_LINE>CharSequence field =... | .load(line, pool)); |
363,155 | private static WlCoef_F32 computeInnerInverseBiorthogonal(WlCoef_F32 coef) {<NEW_LINE>WlCoef_F32 ret = new WlCoef_F32();<NEW_LINE>// center at zero<NEW_LINE>ret.offsetScaling = -coef.wavelet.length / 2;<NEW_LINE>// center at one<NEW_LINE>ret.offsetWavelet = 1 - coef.scaling.length / 2;<NEW_LINE>ret.scaling = new <MASK>... | float[coef.wavelet.length]; |
193,089 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UntagResourceReq... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
921,991 | public static <T, A, R> Collector<T, ?, R> filtering(Predicate<? super T> predicate, Collector<T, A, R> downstream) {<NEW_LINE>Objects.requireNonNull(predicate);<NEW_LINE>BiConsumer<A, T> downstreamAccumulator = downstream.accumulator();<NEW_LINE>BiConsumer<A, T> accumulator = (acc, t) -> {<NEW_LINE>if (predicate.test(... | A> finished = finished(downstream); |
870,366 | public FrameCaptureSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FrameCaptureSettings frameCaptureSettings = new FrameCaptureSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
1,206,114 | private void eatFuel() {<NEW_LINE>final ItemStack is = <MASK><NEW_LINE>if (!is.isEmpty()) {<NEW_LINE>final int newBurnTime = getBurnTime(is);<NEW_LINE>if (newBurnTime > 0 && is.getCount() > 0) {<NEW_LINE>this.setBurnTime(this.getBurnTime() + newBurnTime);<NEW_LINE>this.setMaxBurnTime(this.getBurnTime());<NEW_LINE>final... | this.inv.getStackInSlot(0); |
1,767,136 | private TreeEntry<E> addEntry(E entry) {<NEW_LINE>Objects.requireNonNull(entry, "null entry is not supported");<NEW_LINE>String id = entry.getId();<NEW_LINE>if (entryIDs.contains(id)) {<NEW_LINE>// TODO: reactivate this check, currently does not work when the start and end time<NEW_LINE>// of an entry get changed insid... | (entry), t.low); |
1,263,886 | private static WatchingInsertionContext insertItemHonorBlockSelection(CompletionProcessEx indicator, LookupElement item, char completionChar, StatisticsUpdate update) {<NEW_LINE>final Editor editor = indicator.getEditor();<NEW_LINE>final int caretOffset = indicator.getCaret().getOffset();<NEW_LINE>final int idEndOffset... | caret, wasInjected, topLevelOffsets, hostEditor); |
1,298,290 | public void marshall(BGPPeer bGPPeer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (bGPPeer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(bGPPeer.getBgpPeerId(), BGPPEERID_BINDING);<NEW_LINE>protocolMa... | bGPPeer.getAddressFamily(), ADDRESSFAMILY_BINDING); |
1,219,089 | private // * is a dot product). Unfortunately, we have to solve a cubic.<NEW_LINE>int perpendiculardfddf(float[] pts, int off) {<NEW_LINE>assert pts.length >= off + 4;<NEW_LINE>// these are the coefficients of some multiple of g(t) (not g(t),<NEW_LINE>// because the roots of a polynomial are not changed after multiplic... | pts, off, 0f, 1f); |
1,852,559 | protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {<NEW_LINE>final Channel channel <MASK><NEW_LINE>channel.setStyleSheet(getStyleSheet(rssRoot.getDocument()));<NEW_LINE>final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());<NEW_LINE>final Element title = eChannel.getChild("ti... | = new Channel(getType()); |
106,427 | public void postProcessFile(File file, String fileType) {<NEW_LINE><MASK><NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String tsPostProcessFile = System.getenv("TS_POST_PROCESS_FILE");<NEW_LINE>if (StringUtils.isEmpty(tsPostProcessFile)) {<NEW_LINE>// skip if TS_POST_PROCESS_FILE env variable is no... | super.postProcessFile(file, fileType); |
1,294,265 | public static void run(String[] args) {<NEW_LINE>String agentFilePath = "/home/adi/Desktop/agent-1.0.0-jar-with-dependencies.jar";<NEW_LINE>String applicationName = "MyAtmApplication";<NEW_LINE>// iterate all jvms and get the first one that matches our application name<NEW_LINE>Optional<String> jvmProcessOpt = Optional... | get().id()); |
214,443 | public DiffSectionSpecModel createModel(Elements elements, Types types, TypeElement element, Messager messager, @Nullable DependencyInjectionHelper dependencyInjectionHelper, EnumSet<RunMode> runMode) {<NEW_LINE>ImmutableList<SpecMethodModel<DelegateMethod, Void>> unsupportedMethods = DelegateMethodExtractor.getDelegat... | , FieldsExtractor.extractFields(element)); |
121,590 | public void buildMenu(Menu menuBrowse) {<NEW_LINE>final MenuItem itemBrowsePublic = new MenuItem(menuBrowse, SWT.PUSH);<NEW_LINE>itemBrowsePublic.setText(MessageText.getString("label.public") + "...");<NEW_LINE>itemBrowsePublic.addListener(SWT.Selection, new ListenerDMTask(dms, false) {<NEW_LINE><NEW_LINE>@Override<NEW... | MenuItem(menuBrowse, SWT.CHECK); |
930,437 | private void attachActionListener(Object comp, ActionListener l) {<NEW_LINE>// on JButtons attach simply by method call<NEW_LINE>if (comp instanceof JButton) {<NEW_LINE>JButton b = (JButton) comp;<NEW_LINE>b.addActionListener(l);<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>// we will have to use dynamic method invocati... | m.invoke(comp, l); |
1,076,386 | public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) {<NEW_LINE>BakedModel baseModel = baseGeometry.bake(owner, bakery, spriteGetter, modelTransform, overrides, model... | , bakery, owner), transformMap); |
679,706 | private void _updateDescription() {<NEW_LINE>if (!lblDescription.isValid()) {<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>updateDescription();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Item item = table.getSelectedItem();<NEW... | getDefault().setStatusText(statusText); |
1,331,053 | private DimensionTable createDimensionTable() throws Exception {<NEW_LINE>Map<PrimaryKey, GenericRow> map = new HashMap<>();<NEW_LINE>List<SegmentDataManager> segmentManagers = acquireAllSegments();<NEW_LINE>try {<NEW_LINE>for (SegmentDataManager segmentManager : segmentManagers) {<NEW_LINE>IndexSegment indexSegment = ... | > primaryKeyColumns = tableSchema.getPrimaryKeyColumns(); |
1,116,992 | public void eventPostCommitAdd(Transaction transaction) throws SevereMessageStoreException {<NEW_LINE>super.eventPostCommitAdd(transaction);<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "eventPostCommitAdd", transaction);<NEW_LINE><MASK><NEW_LINE>ConsumerDispatcher ... | HashMap durableSubsTable = _destinationManager.getDurableSubscriptionsTable(); |
42,217 | @Operation(summary = "List device commands by namespace", description = "List device commands by namespace")<NEW_LINE>public Response listAllDeviceCommandsByNamespace(@Parameter(description = "Device type token", required = false) @QueryParam("deviceTypeToken") String deviceTypeToken) throws SiteWhereException {<NEW_LI... | listDeviceCommands(criteria).getResults(); |
789,804 | private <T> void executeShardSnapshotUpdate(ImmutableOpenMap<T, ShardSnapshotStatus> existingStates, Supplier<ImmutableOpenMap.Builder<T, ShardSnapshotStatus>> newStates, ShardSnapshotUpdate updateSnapshotState, T updatedShard) {<NEW_LINE>assert updateSnapshotState.snapshot.equals(entry.snapshot());<NEW_LINE>final Shar... | put(updatedShard, updateSnapshotState.updatedState); |
445,759 | public AuthenticatedUser convertBuiltInUserToRemoteUser(AuthenticatedUser builtInUserToConvert, String newProviderId, UserIdentifier newUserIdentifierInLookupTable) {<NEW_LINE>logger.info("converting user " + builtInUserToConvert.getId() + " from builtin to remote");<NEW_LINE>String builtInUserIdentifier = builtInUserT... | oldTokens = passwordResetServiceBean.findPasswordResetDataByDataverseUser(builtin); |
740,728 | protected void translateItem(TermedStatementEntityEdit item, Writer writer) throws IOException {<NEW_LINE>String qid = item<MASK><NEW_LINE>if (item.isNew()) {<NEW_LINE>writer.write("CREATE\n");<NEW_LINE>qid = "LAST";<NEW_LINE>item = item.normalizeLabelsAndAliases();<NEW_LINE>}<NEW_LINE>translateNameDescr(qid, item.getL... | .getEntityId().getId(); |
384,236 | public void update() {<NEW_LINE>boolean value = getValue() && false;<NEW_LINE><MASK><NEW_LINE>if (doNotTranslateCellAnimation != null) {<NEW_LINE>doNotTranslateCellAnimation.cancel();<NEW_LINE>}<NEW_LINE>showButtonCheck.setDivider(value);<NEW_LINE>ArrayList<String> langCodes = getRestrictedLanguages();<NEW_LINE>String ... | showButtonCheck.setChecked(getValue()); |
350,598 | public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>Object model = mModelList.get(viewType);<NEW_LINE>if (model instanceof Integer) {<NEW_LINE>if (((Integer) model) == 1) {<NEW_LINE>return new HeaderHolder(mActivity, LayoutInflater.from(parent.getContext()).inflate(R.layout.item_abo... | .item_about_library, parent, false)); |
305,679 | public ImmutableList<Replacement> format(SnippetKind kind, String source, List<Range<Integer>> ranges, int initialIndent, boolean includeComments) throws FormatterException {<NEW_LINE>RangeSet<Integer> rangeSet = TreeRangeSet.create();<NEW_LINE>for (Range<Integer> range : ranges) {<NEW_LINE>rangeSet.add(range);<NEW_LIN... | - source.length())); |
1,830,112 | final DeleteInboundCrossClusterSearchConnectionResult executeDeleteInboundCrossClusterSearchConnection(DeleteInboundCrossClusterSearchConnectionRequest deleteInboundCrossClusterSearchConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInboundCrossClusterSearchConnectionRequest... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteInboundCrossClusterSearchConnection"); |
1,513,543 | public static String formatToLocalDateAndDay(Context context, Date dateTime) {<NEW_LINE>StringBuilder date = new StringBuilder();<NEW_LINE>// date, e.g. "2014/05/31"<NEW_LINE>date.append(DateFormat.getDateFormat(context).format(dateTime));<NEW_LINE>date.append(" ");<NEW_LINE>// device time zone, e.g. "CEST"<NEW_LINE>Ti... | date.toString(), day); |
1,012,607 | private static void checkTrial(final PwmRequest pwmRequest) throws PwmUnrecoverableException {<NEW_LINE>if (PwmConstants.TRIAL_MODE) {<NEW_LINE>final StatisticsService statisticsManager = pwmRequest.getPwmDomain().getStatisticsManager();<NEW_LINE>final String currentAuthString = statisticsManager.getStatBundleForKey(St... | ).getStatistic(Statistic.AUTHENTICATIONS); |
528,806 | void draw(boolean drawEmptyInfo, List<GridElement> gridElements, Selector selector, boolean forceRedraw) {<NEW_LINE>if (SharedConfig.getInstance().isDev_mode()) {<NEW_LINE>CanvasUtils.drawGridOn(getContext2d());<NEW_LINE>}<NEW_LINE>if (drawEmptyInfo && gridElements.isEmpty()) {<NEW_LINE>drawEmptyInfoText(getScaling());... | ).drawLasso(getContext2d()); |
1,674,680 | static DTLSRequest readClientRequest(byte[] data, int dataOff, int dataLen, OutputStream dtlsOutput) throws IOException {<NEW_LINE>// TODO Support the possibility of a fragmented ClientHello datagram<NEW_LINE>byte[] message = DTLSRecordLayer.receiveClientHelloRecord(data, dataOff, dataLen);<NEW_LINE>if (null == message... | TlsUtils.readUint24(message, 6); |
1,340,220 | private static ILaunchConfigurationWorkingCopy createLaunchConfig(String command, IPath workingDir, String... args) throws CoreException {<NEW_LINE>ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();<NEW_LINE>ILaunchConfigurationType configType = manager.getLaunchConfigurationType(IGitLaunchConfigurat... | setAttribute(IGitLaunchConfigurationConstants.ATTR_SHOW_CONSOLE, true); |
754,528 | private boolean measure(Measurer measurer, ConstraintWidget widget, int measureStrategy) {<NEW_LINE>mMeasure.horizontalBehavior = widget.getHorizontalDimensionBehaviour();<NEW_LINE>mMeasure.verticalBehavior = widget.getVerticalDimensionBehaviour();<NEW_LINE>mMeasure.horizontalDimension = widget.getWidth();<NEW_LINE>mMe... | widget.setBaselineDistance(mMeasure.measuredBaseline); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.