idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,547,580 | public static <K> KTableHolder<K> build(final KTableHolder<K> left, final KTableHolder<K> right, final TableTableJoin<K> join) {<NEW_LINE>final LogicalSchema leftSchema;<NEW_LINE>final LogicalSchema rightSchema;<NEW_LINE>if (join.getJoinType().equals(RIGHT)) {<NEW_LINE>leftSchema = right.getSchema();<NEW_LINE>rightSche... | ), joinParams.getJoiner()); |
953,764 | public void run(RegressionEnvironment env) {<NEW_LINE>try {<NEW_LINE>XPathNamespaceContext ctx = new XPathNamespaceContext();<NEW_LINE><MASK><NEW_LINE>Node node = SupportXML.getDocument().getDocumentElement();<NEW_LINE>XPath pathOne = XPathFactory.newInstance().newXPath();<NEW_LINE>pathOne.setNamespaceContext(ctx);<NEW... | ctx.addPrefix("n0", "samples:schemas:simpleSchema"); |
1,288,349 | public EncryptedDataEncryptionKey wrap(byte[] secretKey) {<NEW_LINE>try {<NEW_LINE>Cipher etsiKem = helper.createCipher("ETSIKEMwithSHA256");<NEW_LINE>etsiKem.init(Cipher.WRAP_MODE, recipientKey, new IESKEMParameterSpec(recipientHash, true));<NEW_LINE>byte[] wrappedKey = etsiKem.wrap(new SecretKeySpec(secretKey, "AES")... | ex.getMessage(), ex); |
673,971 | public static GetAggregateResourceComplianceTimelineResponse unmarshall(GetAggregateResourceComplianceTimelineResponse getAggregateResourceComplianceTimelineResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAggregateResourceComplianceTimelineResponse.setRequestId<MASK><NEW_LINE>ResourceComplianceTimeline resourceCompli... | (_ctx.stringValue("GetAggregateResourceComplianceTimelineResponse.RequestId")); |
1,291,292 | public Optional<Long> createSyncJob(final SourceConnection source, final DestinationConnection destination, final StandardSync standardSync, final String sourceDockerImageName, final String destinationDockerImageName, final List<StandardSyncOperation> standardSyncOperations, @Nullable final ActorDefinitionResourceRequi... | ).toString(), jobConfig); |
995,527 | private void startGenerate() throws IOException {<NEW_LINE>String s;<NEW_LINE>int n;<NEW_LINE>// The first field is of the form start-end[/step]<NEW_LINE>// Regexes would be useful here.<NEW_LINE>s = st.getIdentifier();<NEW_LINE>n = s.indexOf("-");<NEW_LINE>if (n < 0) {<NEW_LINE>throw st.exception("Invalid $GENERATE ra... | String rdataSpec = st.getIdentifier(); |
211,314 | final UnclaimDeviceResult executeUnclaimDevice(UnclaimDeviceRequest unclaimDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unclaimDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,029,519 | public void error(String s) {<NEW_LINE>if (len <= 1) {<NEW_LINE>addNormalError(s);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Data pre = data[len - 2];<NEW_LINE>if (pre.errorType == ErrorType.LOG) {<NEW_LINE>addNormalError(s);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (s.equals(pre.getSB()) && pre.errorType == ErrorType.ERROR_... | adapter.notifyItemChanged(len - 1); |
588,035 | private boolean blockOnPipeLine() {<NEW_LINE>if (this.isKilled()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// For pipelining of jobs. Will watch other jobs.<NEW_LINE>if (!this.pipelineJobs.isEmpty()) {<NEW_LINE>String blockedList = "";<NEW_LINE>final ArrayList<BlockingStatus> blockingStatus = new ArrayList<>();<NEW_... | this.watcher.peekStatus(waitingJobId); |
1,442,052 | private List<ConfigWithMetadata<StandardWorkspace>> listStandardWorkspaceWithMetadata(final Optional<UUID> configId) throws IOException {<NEW_LINE>final Result<Record> result = database.query(ctx -> {<NEW_LINE>final SelectJoinStep<Record> query = ctx.select(asterisk()).from(WORKSPACE);<NEW_LINE>if (configId.isPresent()... | ())).fetch(); |
1,644,741 | final DescribeTransitGatewayAttachmentsResult executeDescribeTransitGatewayAttachments(DescribeTransitGatewayAttachmentsRequest describeTransitGatewayAttachmentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTransitGatewayAttachmentsRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
750,797 | public static void main(String[] args) throws Exception {<NEW_LINE>try {<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.out.println("Usage: LocalDLEmulator [<zk_host>] <zk_port>");<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>String zkHost = DEFAULT_ZK_HOST;<NEW_LINE>int zkPort = DEFAULT_ZK_PORT;<NEW_LINE>if (args.le... | zkPort(zkPort).build(); |
833,442 | // for when data flows to the data structure pointed to by a local<NEW_LINE>protected void handleFlowsToDataStructure(Value base, Value source) {<NEW_LINE>EquivalentValue sourcesOfBaseEqVal = new CachedEquivalentValue(new AbstractDataSource(base));<NEW_LINE>EquivalentValue baseEqVal = new CachedEquivalentValue(base);<N... | abbreviatedInfoFlowGraph.addEdge(sourceEqVal, sourcesOfBaseEqVal); |
173,659 | protected Document parse(InputStream is) throws Exception {<NEW_LINE>DocumentBuilder builder = getNsAwareDocumentBuilderFactory().newDocumentBuilder();<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>doc = builder.parse(is);<NEW_LINE>} catch (Exception e) {<NEW_LINE>if (configurationFile != null) {<NEW_LINE>String msg =... | e.getMessage(), e); |
84,811 | /* Init kernel with the ontology signature */<NEW_LINE>@Override<NEW_LINE>public void preprocessOntology(Collection<AxiomWrapper> axioms) {<NEW_LINE>exprMap.clear();<NEW_LINE>Signature s = new Signature();<NEW_LINE>for (AxiomWrapper q : axioms) {<NEW_LINE>if (q.isUsed()) {<NEW_LINE>exprMap.computeIfAbsent(q.getAxiom(),... | declarationAxioms = new HashSet<>(); |
1,280,055 | public static void vertical(Kernel1D_S32 kernel, InterleavedU16 input, InterleavedI16 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>final int numBands = input.getNumBands();<NEW_LINE>final int[] pixel = new ... | = startY + kernel.getWidth(); |
1,262,983 | private static ByteBuf encodeMessageWithOnlySingleByteFixedHeaderAndMessageId(ByteBufAllocator byteBufAllocator, MqttMessage message) {<NEW_LINE>MqttFixedHeader mqttFixedHeader = message.fixedHeader();<NEW_LINE>MqttMessageIdVariableHeader variableHeader = (MqttMessageIdVariableHeader) message.variableHeader();<NEW_LINE... | .writeByte(getFixedHeaderByte1(mqttFixedHeader)); |
394,643 | private void detachSingle(SQLiteDatabase db, InstanceAdapter entityAdapter) {<NEW_LINE>TaskAdapter original = entityAdapter.taskAdapter();<NEW_LINE>TaskAdapter cloneAdapter = original.duplicate();<NEW_LINE>// first prepare the original to resemble the same instance but as a new, detached task<NEW_LINE>original.set(Task... | set(TaskAdapter.SYNC_VERSION, null); |
797,171 | public final DropViewContext dropView() throws RecognitionException {<NEW_LINE>DropViewContext _localctx = new DropViewContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 154, RULE_dropView);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(2707);<NEW_LINE>match(D... | _la = _input.LA(1); |
810,765 | public List<String> resolve(String placeHolder, HttpFacade httpFacade) {<NEW_LINE>String source = placeHolder.substring(placeHolder.indexOf('.') + 1);<NEW_LINE>OIDCHttpFacade oidcHttpFacade = OIDCHttpFacade.class.cast(httpFacade);<NEW_LINE>KeycloakSecurityContext securityContext = oidcHttpFacade.getSecurityContext();<N... | RuntimeException("Invalid placeholder [" + placeHolder + "]"); |
601,944 | public AnalyticMoveLine createAnalyticMoveLine(AnalyticDistributionLine analyticDistributionLine, BigDecimal total, int typeSelect, LocalDate date) {<NEW_LINE>AnalyticMoveLine analyticMoveLine = new AnalyticMoveLine();<NEW_LINE>analyticMoveLine.setOriginalPieceAmount(total);<NEW_LINE>analyticMoveLine.<MASK><NEW_LINE>an... | setAnalyticAccount(analyticDistributionLine.getAnalyticAccount()); |
1,371,348 | public void associate() {<NEW_LINE>matchesAll.resize(listDst.size);<NEW_LINE>matchesAll.reset();<NEW_LINE>if (scoreRatioThreshold >= 1.0) {<NEW_LINE>BoofConcurrency.loopBlocks(0, listDst.size, new InnerConsumer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void innerAccept(Helper h, int index0, int index1) {<NEW_LIN... | h.result2.get(1); |
186,206 | private static CharSequence describeIssuerTrust(String contextName, @Nullable Map<String, List<X509Certificate>> trustedIssuers, X509Certificate certificate, String issuerName) {<NEW_LINE>if (trustedIssuers == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>StringBuilder message = new StringBuilder();<NEW_LINE>final Is... | (contextName).append("])"); |
1,690,095 | public void write(final PrintWriter writer, StatisticsTracker stats) {<NEW_LINE>Collection<String> keys = null;<NEW_LINE>DisposableStoredSortedMap<MASK><NEW_LINE>if (maxSortSize < 0 || maxSortSize > stats.serverCache.hostKeys().size()) {<NEW_LINE>hd = stats.calcReverseSortedHostsDistribution();<NEW_LINE>keys = hd.value... | <Long, String> hd = null; |
1,111,666 | public void metrics(Nimbus.Client client) throws Exception {<NEW_LINE>if (_interval <= 0) {<NEW_LINE>throw new IllegalArgumentException("poll interval must be positive");<NEW_LINE>}<NEW_LINE>if (_topology == null || _topology.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("topology name must be something");<N... | long now = System.currentTimeMillis(); |
1,748,809 | public final PatternEscapeContext patternEscape() throws RecognitionException {<NEW_LINE>PatternEscapeContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 66, RULE_patternEscape);<NEW_LINE>try {<NEW_LINE>setState(626);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case ESCAPE:<NEW_LI... | PatternEscapeContext(_ctx, getState()); |
106,452 | protected void handleApplicationEvent(RegisterCustomerEvent event) {<NEW_LINE>Customer customer = customerService.<MASK><NEW_LINE>if (customer == null) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Unable to send registration email for customer with id " + event.getCustomerId() + ". No such customer found.... | readCustomerById(event.getCustomerId()); |
559,717 | public void executeGet(BaseRequest request, BaseResponse response) {<NEW_LINE>getPageHeader(request, response.getContent());<NEW_LINE>String queryId = request.getSingleParameter("query_id");<NEW_LINE>if (Strings.isNullOrEmpty(queryId)) {<NEW_LINE>response.appendContent("");<NEW_LINE>response.appendContent("<p class=\"t... | request, response, HttpResponseStatus.NOT_FOUND); |
1,478,199 | public synchronized void close() {<NEW_LINE>logger.fine("Count of alreadyseen on close " + count.get());<NEW_LINE>Environment env = null;<NEW_LINE>if (this.alreadySeen != null) {<NEW_LINE>try {<NEW_LINE>env = this.alreadySeen.getEnvironment();<NEW_LINE>alreadySeen.sync();<NEW_LINE>} catch (DatabaseException e) {<NEW_LI... | severe(e.getMessage()); |
259,719 | private I_M_InOut createInTrx() {<NEW_LINE>Check.assume(!executed, "inout not already created");<NEW_LINE>executed = true;<NEW_LINE>final boolean doComplete = isComplete();<NEW_LINE>//<NEW_LINE>// Create and complete the material return<NEW_LINE>if (doComplete) {<NEW_LINE>// Create document lines<NEW_LINE>// NOTE: as a... | I_M_InOut inout = inoutRef.getValue(); |
1,032,874 | public void afterCommit(Operation op, Class<?>... entityClass) {<NEW_LINE>ESBulkBuilder bbuilder = new ESBulkBuilder();<NEW_LINE>for (Class<?> vo : entityClass) {<NEW_LINE>if (!triggerVOs.contains(vo)) {<NEW_LINE>logger.trace(String.format("Class[%s] is not annotated by @TriggerIndex, no index operation will be proceed... | bbuilder = addDocToIndexToESBuilder(bbuilder, toIndex); |
660,689 | public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) {<NEW_LINE>final Map<?, ?> map = (Map<?, ?>) source;<NEW_LINE>SingleValueConverter keyConverter = null;<NEW_LINE>SingleValueConverter valueConverter = null;<NEW_LINE>if (keyAsAttribute) {<NEW_LINE>final Sin... | singleValueConverter = getSingleValueConverter(keyType, "key"); |
671,290 | public Expr apply(List<Expr> args) {<NEW_LINE>if (args.size() != 1) {<NEW_LINE>throw new IAE("Function[%s] must have 1 argument", name());<NEW_LINE>}<NEW_LINE>class HllExpr extends ExprMacroTable.BaseScalarUnivariateMacroFunctionExpr {<NEW_LINE><NEW_LINE>public HllExpr(Expr arg) {<NEW_LINE>super(NAME, arg);<NEW_LINE>}<... | throw new IAE("Function[%s] must take a hyper-log-log collector as input", NAME); |
1,829,852 | public double convexityFromYield(ResolvedFixedCouponBond bond, LocalDate settlementDate, double yield) {<NEW_LINE>ImmutableList<FixedCouponBondPaymentPeriod> payments = bond.getPeriodicPayments();<NEW_LINE>int nCoupon = payments.size() - couponIndex(payments, settlementDate);<NEW_LINE>FixedCouponBondYieldConvention yie... | LocalDate maturityDate = bond.getUnadjustedEndDate(); |
1,043,274 | public void updateValues() {<NEW_LINE>Port port = getPort();<NEW_LINE>nameField.setText(port.getName());<NEW_LINE>labelField.setText(port.getDisplayLabel());<NEW_LINE>typeField.setText(port.getType());<NEW_LINE>descriptionField.setText(port.getDescription());<NEW_LINE>rangeBox.setSelectedItem(getHumanizedRange(port.get... | (menuItemsTable.getModel())); |
1,445,448 | public static StatisticsBundle input(final String inputString) {<NEW_LINE>final Map<String, String> loadedMap = JsonFactory.get().deserializeStringMap(inputString);<NEW_LINE>final StatisticsBundle bundle = new StatisticsBundle();<NEW_LINE>for (final Statistic loopStat : Statistic.values()) {<NEW_LINE>final String value... | avgMap.put(loopStat, avgBean); |
808,640 | public static String generateDefaultPolicy(UUID configUUID) {<NEW_LINE>ObjectNode policyBase = getPolicyBase();<NEW_LINE>GetCallerIdentityResult callerIdentity = getCallerIdentity(configUUID);<NEW_LINE>if (callerIdentity != null) {<NEW_LINE>String credentialsArn = callerIdentity.getArn();<NEW_LINE>if (credentialsArn.co... | credentialsArn, rootArn).toString(); |
423,560 | public Object createResultObject(List<Object> fields, ExecutionConfig config) throws MLException {<NEW_LINE>if (fields.size() != count()) {<NEW_LINE>throw new MLException("Invalid field number for create object for class " + originalTI.getTypeClass() + ". Needs " + count() + " fields, while having " + fields.size() + "... | .getTypeClass().newInstance(); |
779,083 | protected boolean prepareWarFile() {<NEW_LINE>// create file system first<NEW_LINE>if (createWarFileSystem()) {<NEW_LINE>String homePath = System.getProperty(SOAPUI_HOME) == null ? SOAPUI_BIN_FOLDER : System.getProperty(SOAPUI_HOME);<NEW_LINE>// copy all from bin/../lib to soapui.home/war/WEB-INF/lib/<NEW_LINE>File fro... | = new File(homePath, SOAPUI_LIB_FOLDER); |
744,950 | private static void withSerdeProducerProperties(boolean isKey, Map<String, String> options, Properties properties) {<NEW_LINE>String serializer = isKey ? KEY_SERIALIZER : VALUE_SERIALIZER;<NEW_LINE>String format = options.get(isKey ? OPTION_KEY_FORMAT : OPTION_VALUE_FORMAT);<NEW_LINE>if (format == null && isKey) {<NEW_... | resolvedClass = JavaClassNameResolver.resolveClassName(format); |
1,136,639 | private void addReference(MInOut inout, int referenceId) {<NEW_LINE>// Valid Reference<NEW_LINE>if (referenceId == 0)<NEW_LINE>return;<NEW_LINE>MOrder order = new MOrder(getCtx(), referenceId, get_TrxName());<NEW_LINE>inout.setC_Order_ID(order.getC_Order_ID());<NEW_LINE>inout.setAD_OrgTrx_ID(order.getAD_OrgTrx_ID());<N... | setC_Project_ID(order.getC_Project_ID()); |
1,107,710 | private static Pair<GCWebAPI.WebApiSearch, SearchResult> createSearchForFilter(final IConnector connector, @NonNull final GeocacheFilter filter, final int take, final int skip) {<NEW_LINE>final GCWebAPI.WebApiSearch search = new GCWebAPI.WebApiSearch();<NEW_LINE>search.setOrigin(Sensors.getInstance().currentGeo().getCo... | getAndChainIfPossible(), OriginGeocacheFilter.class); |
1,027,652 | protected RegionAssociable createRegionAssociable(Cause cause) {<NEW_LINE>Object rootCause = cause.getRootCause();<NEW_LINE>if (!cause.isKnown()) {<NEW_LINE>return Associables.constant(Association.NON_MEMBER);<NEW_LINE>} else if (rootCause instanceof Player) {<NEW_LINE>return getPlugin().wrapPlayer((Player) rootCause);... | .wrapOfflinePlayer((OfflinePlayer) rootCause); |
172,280 | final DeleteFunctionResult executeDeleteFunction(DeleteFunctionRequest deleteFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFunctionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteFunctionRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
50,269 | public void renderPDF(PDFTarget target, String label, float x, float y, Color color, float outlineSize, Color outlineColor) {<NEW_LINE>PdfContentByte cb = target.getContentByte();<NEW_LINE>cb.setRGBColorFill(color.getRed(), color.getGreen(), color.getBlue());<NEW_LINE>BaseFont bf = target.getBaseFont(font);<NEW_LINE>fl... | cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_STROKE); |
673,039 | private Predicate createPredicate(String theResourceName, List<List<IQueryParameterType>> theValues, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>Predicate nextPredicate = null;<NEW_LINE>Set<ResourcePersistentId> allOrPids = null;<NEW_LINE>for (List<? extends IQ... | theResourceName, valueAsId.getIdPart()); |
645,675 | private void createClassIfNotExists() {<NEW_LINE>final ODatabaseDocumentInternal currentDB = ODatabaseRecordThreadLocal.instance().getIfDefined();<NEW_LINE>ODatabaseDocumentInternal sysdb = null;<NEW_LINE>try {<NEW_LINE>sysdb = context.getSystemDatabase().openSystemDatabase();<NEW_LINE>OSchema schema = sysdb.getMetadat... | createProperty("database", OType.STRING); |
1,558,713 | public HttpClient createClientForHttp2() {<NEW_LINE>ExecutorService executor = executorFactory.getExecutorService("jetty-http2-client", configFactory.getIntProperty(CONSUMER_HTTP2_CLIENT_THREAD_POOL_SIZE), configFactory.getBooleanProperty(CONSUMER_HTTP2_CLIENT_THREAD_POOL_MONITORING));<NEW_LINE>HTTP2Client http2Client ... | (configFactory.getIntProperty(CONSUMER_HTTP2_CLIENT_MAX_REQUESTS_QUEUED_PER_DESTINATION)); |
1,192,050 | private void updateSourceDocument(final boolean isReversalParam) {<NEW_LINE>boolean isReversal = isReversalParam;<NEW_LINE>// Check if this document is reversed/voided<NEW_LINE>String docStatus = getDocStatus();<NEW_LINE>if (!isReversal && (DOCSTATUS_Reversed.equals(docStatus) || DOCSTATUS_Voided.equals(docStatus))) {<... | ifa.saveEx(get_TrxName()); |
271,891 | private void drawTextWithFont(DocumentData documentData, Font font, Canvas canvas) {<NEW_LINE>Typeface typeface = getTypeface(font);<NEW_LINE>if (typeface == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String text = documentData.text;<NEW_LINE>TextDelegate textDelegate = lottieDrawable.getTextDelegate();<NEW_LINE>if (... | float translateY = l * lineHeight - multilineTranslateY; |
515,321 | public static ListLogConfigsResponse unmarshall(ListLogConfigsResponse listLogConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLogConfigsResponse.setRequestId(_ctx.stringValue("ListLogConfigsResponse.RequestId"));<NEW_LINE>listLogConfigsResponse.setCode(_ctx.stringValue("ListLogConfigsResponse.Code"));<NEW_LIN... | (_ctx.integerValue("ListLogConfigsResponse.Data.PageSize")); |
645,715 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>> result =... | adjustPageSize = this.adjustSize(size); |
234,346 | public List<List<Vertex<Integer>>> simpleCyles(Graph<Integer> graph) {<NEW_LINE>blockedSet = new HashSet<>();<NEW_LINE>blockedMap = new HashMap<>();<NEW_LINE>stack = new LinkedList<>();<NEW_LINE><MASK><NEW_LINE>long startIndex = 1;<NEW_LINE>TarjanStronglyConnectedComponent tarjan = new TarjanStronglyConnectedComponent(... | allCycles = new ArrayList<>(); |
1,505,240 | void generate() {<NEW_LINE>File output = stubsOutputDir.get().getAsFile();<NEW_LINE>getLogger().info("Stubs output dir [{}]", output);<NEW_LINE>getLogger().info("Spring Cloud Contract Verifier Plugin: Invoking DSL to client stubs conversion");<NEW_LINE>getLogger().info("Contracts dir is [{}] output stubs dir is [{}]", ... | debug(os.toString()); |
930,131 | public static void vertical(GrayF32 input, GrayF32 output, int radius, boolean includeBorder) {<NEW_LINE>final int kernelWidth = radius * 2 + 1;<NEW_LINE>final int startX = includeBorder ? 0 : radius;<NEW_LINE>final int endX = includeBorder ? input.width : input.width - radius;<NEW_LINE>for (int x = startX; x < endX; x... | total += input.data[indexIn]; |
1,326,013 | private void applyFrom(final Map<String, Formula> traceExplorerExpressions, final Hashtable<String, TraceExpressionInformationHolder> traceExpressionDataTable, TLCState nextStateNewTrace, TLCVariable[] currentStateNewTraceVariables, TLCVariable[] nextStateNewTraceVariables) {<NEW_LINE>// iterate through the variables<N... | currentStateNewTraceVariables[i].getName(); |
944,423 | private static void encodeNumeric(ECIInput input, int startpos, int count, StringBuilder sb) {<NEW_LINE>int idx = 0;<NEW_LINE>StringBuilder tmp = new StringBuilder(count / 3 + 1);<NEW_LINE>BigInteger num900 = BigInteger.valueOf(900);<NEW_LINE>BigInteger num0 = BigInteger.valueOf(0);<NEW_LINE>while (idx < count) {<NEW_L... | !bigint.equals(num0)); |
1,615,481 | public static Tuple4<Integer, List<Tuple2<Double, ConfusionMatrix>>, Double, Double> calcOutlierStats(Iterable<Row> rows, String posValueStr) {<NEW_LINE>Tuple4<Integer, boolean[], boolean[], double[]> sampleStats = extractSampleInfo(rows, posValueStr);<NEW_LINE>int n = sampleStats.f0;<NEW_LINE>boolean[] labels = sample... | (maxNegScore, scores[k]); |
1,494,684 | public static void doPaint(Graphics2D g, int width, int height, float arc, boolean symmetric) {<NEW_LINE>float bw = UIUtil.isUnderDefaultMacTheme() ? JBUI.scale(3) : BW.getFloat();<NEW_LINE>float lw = UIUtil.isUnderDefaultMacTheme() ? JBUI.scale(UIUtil.isRetina(g) ? 0.5f : 1.0f) : LW.getFloat();<NEW_LINE>g.setRendering... | height, 0, height - outerArc); |
905,029 | private Component components() {<NEW_LINE>VerticalLayout layout = VerticalLayout.create();<NEW_LINE>FileChooserTextBoxBuilder builder = FileChooserTextBoxBuilder.create(null);<NEW_LINE>layout.add(builder.build());<NEW_LINE>ToggleSwitch toggleSwitch = ToggleSwitch.create(true);<NEW_LINE>toggleSwitch.addValueListener(eve... | intSlider = IntSlider.create(3); |
398,772 | protected void initContentBuffer(XMLStringBuffer suiteBuffer) {<NEW_LINE>Properties testAttrs = new Properties();<NEW_LINE>testAttrs.setProperty("name", m_className);<NEW_LINE>testAttrs.setProperty("verbose", String.valueOf(m_logLevel));<NEW_LINE><MASK><NEW_LINE>suiteBuffer.push("classes");<NEW_LINE>Properties classAtt... | suiteBuffer.push("test", testAttrs); |
1,403,721 | public Request<DescribeInstanceStorageConfigRequest> marshall(DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) {<NEW_LINE>if (describeInstanceStorageConfigRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeInstanceStorageConfigRequest)");<N... | (describeInstanceStorageConfigRequest.getInstanceId())); |
765,296 | private static TokenKind exec(StarlarkThread.Frame fr, Statement st) throws EvalException, InterruptedException {<NEW_LINE>if (fr.dbg != null) {<NEW_LINE>// not very precise<NEW_LINE>Location loc = st.getStartLocation();<NEW_LINE>fr.setLocation(loc);<NEW_LINE>// location is now redundant since it's in the thread<NEW_LI... | (fr, (IfStatement) st); |
1,793,827 | protected void initialize(Application app) {<NEW_LINE>this.backGroundColor = app.getViewPort().getBackgroundColor().clone();<NEW_LINE>final Camera[<MASK><NEW_LINE>final Texture2D[] textures = new Texture2D[6];<NEW_LINE>viewports = new ViewPort[6];<NEW_LINE>framebuffers = new FrameBuffer[6];<NEW_LINE>buffers = new ByteB... | ] cameras = new Camera[6]; |
1,720,626 | final DeleteAttachmentResult executeDeleteAttachment(DeleteAttachmentRequest deleteAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,661,719 | private void createSubjectAndPushItOnThreadAsNeeded(HttpServletRequest req, HttpServletResponse res) {<NEW_LINE>// We got a new instance of FormLogoutExtensionProcess every request.<NEW_LINE>logoutSubject = null;<NEW_LINE><MASK><NEW_LINE>if (subject == null || subjectHelper.isUnauthenticated(subject)) {<NEW_LINE>if (au... | Subject subject = subjectManager.getCallerSubject(); |
1,106,565 | final GetDiskSnapshotsResult executeGetDiskSnapshots(GetDiskSnapshotsRequest getDiskSnapshotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDiskSnapshotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<G... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,391,707 | final GetDeleteEventsByEventTypeStatusResult executeGetDeleteEventsByEventTypeStatus(GetDeleteEventsByEventTypeStatusRequest getDeleteEventsByEventTypeStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeleteEventsByEventTypeStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | (super.beforeMarshalling(getDeleteEventsByEventTypeStatusRequest)); |
1,047,236 | // ModelNode<NEW_LINE>static Object createDeploymentPathAddressAsModelNode(WildflyDeploymentFactory.WildFlyClassLoader cl, String name) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {<NEW_LINE>// NOI18N<NEW_LINE>Class <MASK><NEW_LINE>// NOI18N<NEW_LINE>Class peC... | paClazz = cl.loadClass("org.jboss.as.controller.PathAddress"); |
52,446 | private static void responseCompleteMetaData(PreparedStatement pstmt, FrontendConnection c) {<NEW_LINE>byte packetId = 0;<NEW_LINE>// write preparedOk packet<NEW_LINE>PreparedOkPacket preparedOk = new PreparedOkPacket();<NEW_LINE>preparedOk.packetId = ++packetId;<NEW_LINE>preparedOk.statementId = pstmt.getId();<NEW_LIN... | write(buffer, c, true); |
1,461,213 | void buildFunctionType() {<NEW_LINE>Scope t = BaseFunction.getTable();<NEW_LINE>for (String s : list("func_doc", "__doc__", "func_name", "__name__", "__module__")) {<NEW_LINE>t.update(s, new NUrl(DATAMODEL_URL), BaseStr, ATTRIBUTE);<NEW_LINE>}<NEW_LINE>NBinding b = synthetic(t, "func_closure", new NUrl(DATAMODEL_URL), ... | ), unknown(), ATTRIBUTE); |
1,594,245 | public static ListIsolationRulesOfAppResponse unmarshall(ListIsolationRulesOfAppResponse listIsolationRulesOfAppResponse, UnmarshallerContext _ctx) {<NEW_LINE>listIsolationRulesOfAppResponse.setRequestId(_ctx.stringValue("ListIsolationRulesOfAppResponse.RequestId"));<NEW_LINE>listIsolationRulesOfAppResponse.setCode(_ct... | ("ListIsolationRulesOfAppResponse.Data.Datas[" + i + "].Resource")); |
1,557,693 | public DeploymentCommand unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeploymentCommand deploymentCommand = new DeploymentCommand();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
984,103 | protected List<TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) {<NEW_LINE>List<TestSuite> derivedSuites = new ArrayList<>(super.createDerivedSuites(parentBuilder));<NEW_LINE>derivedSuites<MASK><NEW_LINE>if (!parentBuilder.getFea... | .add(createElementSetTestSuite(parentBuilder)); |
1,242,292 | private void initiateShutdown() {<NEW_LINE>assert (_state == StateClosing && _dispatchCount == 0);<NEW_LINE>if (_shutdownInitiated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>_shutdownInitiated = true;<NEW_LINE>if (!_endpoint.datagram()) {<NEW_LINE>//<NEW_LINE>// Before we shut down, we send a close connection message.<NEW... | writeBlob(IceInternal.Protocol.magic); |
1,591,034 | private void jbInit() {<NEW_LINE>dateFrom = new VDate("DateFrom", true, false, true, DisplayType.Date, "DateFrom");<NEW_LINE>dateTo = new VDate("DateTo", true, false, true, DisplayType.Date, "DateTo");<NEW_LINE>CPanel northPanel = new CPanel();<NEW_LINE>northPanel.setLayout(new java.awt.GridBagLayout());<NEW_LINE>north... | add(contentPanel, BorderLayout.CENTER); |
786,237 | public void run() {<NEW_LINE>org.apache.maven.shared.dependency.tree.DependencyNode rootnode = DependencyTreeFactory.createDependencyTree(data.getMavenProject(), EmbedderFactory.getOnlineEmbedder(), Artifact.SCOPE_TEST);<NEW_LINE>DependencyExcludeNodeVisitor nv = new DependencyExcludeNodeVisitor(data.art.getGroupId(), ... | getDefault().notify(dd); |
1,305,240 | private void fetchInAppPurchase(@NonNull InAppPurchase inAppPurchase, @NonNull ProductInfo productInfo, @Nullable InAppPurchaseData purchaseData) {<NEW_LINE>if (purchaseData != null) {<NEW_LINE>inAppPurchase.setPurchaseState(InAppPurchase.PurchaseState.PURCHASED);<NEW_LINE>inAppPurchase.setPurchaseInfo(ctx, getPurchase... | long introductoryPriceAmountMicros = productInfo.getSubSpecialPriceMicros(); |
1,627,658 | public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.knowledgeId, convLabelName("Knowledge Id"));<NEW_LI... | ValidatorFactory.getInstance(Validator.INTEGER); |
1,107,618 | protected void processSubElement(XMLEventReader xmlEventReader, ArtifactResponseType target, SAMLProtocolQNames element, StartElement elementDetail) throws ParsingException {<NEW_LINE>switch(element) {<NEW_LINE>case ISSUER:<NEW_LINE>target.setIssuer(SAMLParserUtil.parseNameIDType(xmlEventReader));<NEW_LINE>break;<NEW_L... | (extensionsParser.parse(xmlEventReader)); |
1,181,151 | protected void summary(BufferedWriter out) throws IOException {<NEW_LINE>String[] Archs = { "Unknown", "x86", "S390", "Power", <MASK><NEW_LINE>String[] SubTypes = { "i486", "i586", "Pentium II", "Pentium III", "Merced", "McKinley", "PowerRS", "PowerPC", "GigaProcessor", "ESA", "Pentium IV", "T-Rex", "Opteron", "RV64G" ... | "IA64", "S390X", "AMD64", "RISCV" }; |
1,681,339 | public static QueryTrademarkMonitorResultsResponse unmarshall(QueryTrademarkMonitorResultsResponse queryTrademarkMonitorResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTrademarkMonitorResultsResponse.setRequestId(_ctx.stringValue("QueryTrademarkMonitorResultsResponse.RequestId"));<NEW_LINE>queryTrademarkMoni... | ("QueryTrademarkMonitorResultsResponse.Data[" + i + "].ChesanEndDate")); |
1,853,017 | public void run() {<NEW_LINE>DialogDescriptor d = new DialogDescriptor(NbBundle.getMessage(BuildInstallersAction.class, "BuildInstallersAction.NotConfigured.Warning.Message"), NbBundle.getMessage(BuildInstallersAction.class, "BuildInstallersAction.NotConfigured.Warning.Title"));<NEW_LINE>d.setModal(true);<NEW_LINE>JBut... | d.setMessageType(NotifyDescriptor.WARNING_MESSAGE); |
1,849,627 | public void update(StoreClient<Map<String, Object>, Map<String, Object>> storeClient) {<NEW_LINE>if (numCalls > 0) {<NEW_LINE>// TODO jko maybe delete this if unnecessary<NEW_LINE>Versioned<Map<String, Object>> nextNodeMap = storeClient.get(_key.mapValue());<NEW_LINE>if (nextNodeMap == null)<NEW_LINE>throw new Obsolete... | ), nextNodeMap.getVersion()); |
1,343,817 | private CompletableFuture<Void> loadStatistics(Duration timeout) {<NEW_LINE>if (!this.maintainStatistics) {<NEW_LINE>// Disabled.<NEW_LINE>return CompletableFuture.completedFuture(null);<NEW_LINE>}<NEW_LINE>val s = this.state;<NEW_LINE>if (s.rootPageOffset == PagePointer.NO_OFFSET) {<NEW_LINE>this.statistics = Statisti... | debug("{}: Not loading stats due to legacy index not supporting stats.", this.traceObjectId); |
133,482 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>setTheme(UserPreferences.getTranslucentTheme());<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>viewBinding = SubscriptionSelectionActivityBinding.inflate(getLayoutInflater());<NEW_LINE>setContentView(viewBinding.getRoot());<NEW_LINE>setSupp... | setOnClickListener(v -> finish()); |
407,625 | public UnitsRelations init(ProcessingEnvironment env) {<NEW_LINE>elements = env.getElementUtils();<NEW_LINE>m = UnitsRelationsTools.buildAnnoMirrorWithDefaultPrefix(env, m.class);<NEW_LINE>km = UnitsRelationsTools.buildAnnoMirrorWithSpecificPrefix(env, m.class, Prefix.kilo);<NEW_LINE>mm = UnitsRelationsTools.buildAnnoM... | buildAnnoMirrorWithDefaultPrefix(env, N.class); |
795,859 | public void processRecordsCli(Dataset<Row> lines) throws ZinggClientException {<NEW_LINE>LOG.info("Processing Records for CLI Labelling");<NEW_LINE>printMarkedRecordsStat();<NEW_LINE>if (lines == null || lines.count() == 0) {<NEW_LINE>LOG.info("It seems there are no unmarked records at this moment. Please run findTrain... | format("\tCurrent labelling round : %d/%d pairs labelled\n", index, totalPairs); |
958,538 | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) {<NEW_LINE>// paint tab separators<NEW_LINE>if (clientPropertyBoolean(tabPane, TABBED_PANE_SHOW_TAB_SEPARATORS, showTabSeparators) && !isLastInRun(tabIndex)) {<NEW_LINE>if (getTabType() == TAB_TYPE_... | x, y, w, h); |
1,164,455 | private double[][] means(int[] assignment, double[][] means, ClusteringFeature[] cfs, int[] weights) {<NEW_LINE><MASK><NEW_LINE>double[][] newMeans = new double[k][];<NEW_LINE>for (int i = 0; i < assignment.length; i++) {<NEW_LINE>int c = assignment[i];<NEW_LINE>final ClusteringFeature cf = cfs[i];<NEW_LINE>if (newMean... | Arrays.fill(weights, 0); |
1,478,528 | protected Promise<List<T>> run(final Context context) throws Exception {<NEW_LINE>if (_tasks.length == 0) {<NEW_LINE>return Promises.<MASK><NEW_LINE>}<NEW_LINE>final SettablePromise<List<T>> result = Promises.settable();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final PromiseListener<?> listener = resolvedPromis... | value(Collections.emptyList()); |
467,789 | static ShellSession checkInputSection(JTextComponent component) {<NEW_LINE>Document doc = component.getDocument();<NEW_LINE>ShellSession session = ShellSession.get(doc);<NEW_LINE>if (session == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ConsoleModel model = session.getModel();<NEW_LINE>if (model == null) {<NEW_L... | ConsoleSection is = model.getInputSection(); |
31,170 | public SearchResult searchByNextPage(final Bundle context) {<NEW_LINE>final String filterConfig = context.getString(SEARCH_CONTEXT_FILTER);<NEW_LINE>GeocacheFilter filter = null;<NEW_LINE>if (filterConfig != null) {<NEW_LINE>filter = GeocacheFilter.createFromConfig(filterConfig);<NEW_LINE>final OriginGeocacheFilter ori... | GCParser.searchByNextPage(this, context); |
1,697,608 | public static Object loadConfigGuess(String path) throws Exception {<NEW_LINE>String input = FileUtils.readFileToString(new File(path));<NEW_LINE>// note here that we load json BEFORE YAML. YAML<NEW_LINE>// turns out to load just fine *accidentally*<NEW_LINE>try {<NEW_LINE>return MultiLayerConfiguration.fromJson(input)... | log.warn("Tried keras sequence config", e); |
1,148,765 | public static InputStream open(String resource, Configuration conf) {<NEW_LINE>ClassLoader loader = conf.getClassLoader();<NEW_LINE>if (loader == null) {<NEW_LINE>loader = Thread.currentThread().getContextClassLoader();<NEW_LINE>}<NEW_LINE>if (loader == null) {<NEW_LINE>loader = HadoopIOUtils.class.getClassLoader();<NE... | boolean trace = log.isTraceEnabled(); |
517,886 | static void writeConfig(final ContextManager contextManager, final StoredConfiguration storedConfiguration) throws PwmOperationalException, PwmUnrecoverableException {<NEW_LINE>final ConfigurationReader configReader = contextManager.getConfigReader();<NEW_LINE>final <MASK><NEW_LINE>try {<NEW_LINE>final StoredConfigurat... | PwmApplication pwmApplication = contextManager.getPwmApplication(); |
737,236 | static boolean renderDeploymentExportComments(final DOMNode thisNode, final AsyncBuffer out, final boolean isContentNode) {<NEW_LINE>final Set<String> instructions = new LinkedHashSet<>();<NEW_LINE>thisNode.getVisibilityInstructions(instructions);<NEW_LINE>thisNode.getLinkableInstructions(instructions);<NEW_LINE>thisNo... | String instruction = it.next(); |
295,758 | final DescribeAccountAttributesResult executeDescribeAccountAttributes(DescribeAccountAttributesRequest describeAccountAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | invoke(request, responseHandler, executionContext); |
323,495 | protected Cursor doInBackground(Void... params) {<NEW_LINE>ActivityUtils utils <MASK><NEW_LINE>update = utils.refreshActivity();<NEW_LINE>AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);<NEW_LINE>long now = new Date().getTime();<NEW_LINE>long alarm = now + DrawerActivity.settings.activi... | = new ActivityUtils(getActivity()); |
891,211 | private static void notifyUnresolvedCoreDumps(final Set<File> unresolvedCoreDumpsF, final Set<String> unresolvedCoreDumpsS) {<NEW_LINE>VisualVM.getInstance().runTask(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>JPanel messagePanel = new JPanel(new BorderLayout(5, 5));<NEW_LINE>// NOI18N<NEW_LINE>mes... | "MSG_Unresolved_CoreDumps")), BorderLayout.NORTH); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.