idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,256,319 | private void makeImage(float scaleFactor, int maxHeight, CachedImageUser user) {<NEW_LINE>CachedImage<Emoticon> emoteImage = super.getIcon(scaleFactor, <MASK><NEW_LINE>if (alreadyMade.contains(emoteImage)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Debugging.println("combinedemotes", "Make: %s [%s]", emotes, System.identit... | maxHeight, ImageType.STATIC, user); |
88,468 | Map<String, ?> toSerializable() {<NEW_LINE>Map<String, Object> map = new LinkedHashMap<>();<NEW_LINE>map.put("displayName", displayName);<NEW_LINE>map.put("id", id);<NEW_LINE>if (parentId != null) {<NEW_LINE>map.put("parentId", parentId);<NEW_LINE>}<NEW_LINE>map.put("startTime", startTime);<NEW_LINE><MASK><NEW_LINE>map... | map.put("endTime", endTime); |
7,206 | public void onResult(SQLQueryResult<Map<String, String>> result) {<NEW_LINE>// SQLQueryResult<Map<String, String>> queryRestl=new SQLQueryResult<Map<String, String>>(this.result,!failed, dataNode,errorMsg);<NEW_LINE>if (result.isSuccess()) {<NEW_LINE>// recovery log<NEW_LINE>LOGGER.debug("onResult success on xa commit ... | i].txState = TxState.TX_COMMITED_STATE; |
344,222 | public void dump(String tag, int maxConnections, int remainingCapacity, int pendingWithoutVerify) {<NEW_LINE>try {<NEW_LINE>if (isEnabled()) {<NEW_LINE>connections.transferCounter();<NEW_LINE>connections.set(maxConnections - remainingCapacity);<NEW_LINE>if (isUsed() && LOGGER.isDebugEnabled()) {<NEW_LINE>String eol = S... | (sentRecords).append(eol); |
1,822,114 | public static void main(String[] args) {<NEW_LINE>Node root = null;<NEW_LINE>int val;<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>RedBlackTree redBlackTree = new RedBlackTree();<NEW_LINE>do {<NEW_LINE>System.out.println("OPTIONS \n 1) INSERT VALUES \n 2) Display Tree Structure \n 3) Inorder Traversal \n 4) E... | System.out.println("Insert Node Value(s)"); |
718,918 | public final InternalAggregation doReduce(Aggregations aggregations, AggregationReduceContext context) {<NEW_LINE>preCollection();<NEW_LINE>List<String> bucketsPath = AggregationPath.parse(bucketsPaths()[0]).getPathElementsAsStringList();<NEW_LINE>for (Aggregation aggregation : aggregations) {<NEW_LINE>if (aggregation.... | 1, bucketsPath.size()); |
231,097 | static ArrayList<Long> timings(List<RoaringBitmap> bitmaps, int maxvalue) {<NEW_LINE>long successive_and = 0;<NEW_LINE>long successive_or = 0;<NEW_LINE>long total_or = 0;<NEW_LINE>long start, stop;<NEW_LINE>ArrayList<Long> timings = new ArrayList<Long>();<NEW_LINE>start = System.nanoTime();<NEW_LINE>for (int i = 0; i <... | iterator()).getCardinality(); |
35,022 | public void populateCache(File input, File out) throws Exception {<NEW_LINE>FileCache cache = getBuildCache(input, true, userLevelCache);<NEW_LINE>if (cache != null) {<NEW_LINE>FileCache.Inputs buildCacheInputs = AtlasDexArchiveBuilderCacheHander.getBuildCacheInputs(input, <MASK><NEW_LINE>FileCache.QueryResult result =... | dexOptions, dexer, minSdkVersion, isDebuggable); |
778,817 | private static GetterMethod findGetter(JavacNode field) {<NEW_LINE>JCVariableDecl decl = (JCVariableDecl) field.get();<NEW_LINE>JavacNode typeNode = field.up();<NEW_LINE>for (String potentialGetterName : toAllGetterNames(field)) {<NEW_LINE>for (JavacNode potentialGetter : typeNode.down()) {<NEW_LINE>if (potentialGetter... | (JCMethodDecl) potentialGetter.get(); |
364,558 | public void doOperation(final ImportJavaRDDOfElements operation, final Context context, final AccumuloStore store) throws OperationException {<NEW_LINE>final String outputPath = operation.getOption(OUTPUT_PATH);<NEW_LINE>if (null == outputPath || outputPath.isEmpty()) {<NEW_LINE>throw new OperationException("Option out... | getInput().flatMapToPair(func); |
678,084 | private <T extends JpaObject> String idleAliasWithAppInfo(Business business, String appId, String alias, Class<T> cls, String excludeId) throws Exception {<NEW_LINE>if (StringUtils.isEmpty(alias)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>list.add(alias);<NEW_LINE>for (in... | CriteriaBuilder cb = em.getCriteriaBuilder(); |
1,378,004 | public void execute(PreparedStatementFactory factory) throws DatabaseException {<NEW_LINE>// build the sql statement<NEW_LINE>List<ColumnConfig> cols = new ArrayList<>(getColumns().size());<NEW_LINE>String sql = generateSql(cols);<NEW_LINE>for (SqlListener listener : Scope.getCurrentScope().getListeners(SqlListener.cla... | stmt = factory.create(sql); |
1,269,590 | private static void createItems() {<NEW_LINE>Table table = dynamoDB.getTable(tableName);<NEW_LINE>try {<NEW_LINE>Item item = new Item().withPrimaryKey("Id", 120).withString("Title", "Book 120 Title").withString("ISBN", "120-1111111111").withStringSet("Authors", new HashSet<String>(Arrays.asList("Author12", "Author22"))... | ).withString("ProductCategory", "Book"); |
1,491,553 | private void transferBundleDataFromTransaction(final BundleTransferData bundleTransferData, final EntitySqlDao transactional, final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory, final InternalCallContext context) throws EntityPersistenceException {<NEW_LINE>final SubscriptionSqlDao transSubDao = entitySqlDaoWr... | new SubscriptionEventModelDao(curEvent), context); |
1,672,723 | NewznabXmlItem buildRssItem(SearchResultItem searchResultItem, boolean isNzb) {<NEW_LINE>NewznabXmlItem rssItem = new NewznabXmlItem();<NEW_LINE>String link = nzbHandler.getDownloadLinkForResults(searchResultItem.getSearchResultId(), false, isNzb ? DownloadType.NZB : DownloadType.TORRENT);<NEW_LINE>rssItem.setLink(link... | ).getScore()))); |
1,083,527 | public ResultSet drillthrough(String queryName, int maxrows, String returns) {<NEW_LINE>OlapStatement stmt = null;<NEW_LINE>try {<NEW_LINE>ThinQuery query = context.<MASK><NEW_LINE>final OlapConnection con = olapDiscoverService.getNativeConnection(query.getCube().getConnection());<NEW_LINE>stmt = con.createStatement();... | get(queryName).getOlapQuery(); |
1,312,082 | private static Vector PartitionStatesSetForAscii(int[] states, int byteNum) {<NEW_LINE>int[] cardinalities = new int[states.length];<NEW_LINE>Vector original = new Vector();<NEW_LINE>Vector partition = new Vector();<NEW_LINE>NfaState tmp;<NEW_LINE>original.setSize(states.length);<NEW_LINE>int cnt = 0;<NEW_LINE>for (int... | NfaState) original.get(j); |
106,678 | ColumnDefinition decodeColumnDefinitionPacketPayload(ByteBuf payload) {<NEW_LINE>String catalog = BufferUtils.readLengthEncodedString(payload, StandardCharsets.UTF_8);<NEW_LINE>String schema = BufferUtils.readLengthEncodedString(payload, StandardCharsets.UTF_8);<NEW_LINE>String table = BufferUtils.readLengthEncodedStri... | readLengthEncodedString(payload, StandardCharsets.UTF_8); |
1,361,532 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field("model_id", modelId);<NEW_LINE>if (inferenceThreads != null) {<NEW_LINE>builder.field(StartTrainedModelDeploymentAction.TaskParams.INFERENCE_THREADS.getPreferredName(), i... | builder.field("inference_count", totalInferenceCount); |
418,007 | public void changeKeyStorePassword(File keyStore, String storeType, char[] oldPw, char[] newPw, boolean changeKeyPasswords) throws KeyStoreException {<NEW_LINE>enforcePasswordComplexity(newPw, "invalidPassword");<NEW_LINE>KeyStore ks = openKeyStore(keyStore, storeType, oldPw);<NEW_LINE>if (changeKeyPasswords) {<NEW_LIN... | alias, k, newPw, certChain); |
843,710 | private static void internalDeepMerge(Map left, Map right) {<NEW_LINE>for (Object key : right.keySet()) {<NEW_LINE>Object rightValue = right.get(key);<NEW_LINE>Object leftValue = left.get(key);<NEW_LINE>if (rightValue instanceof Map && leftValue instanceof Map) {<NEW_LINE>internalDeepMerge((Map<MASK><NEW_LINE>} else if... | ) leftValue, (Map) rightValue); |
1,285,510 | private void displayVerificationWarningDialog(final Contact contact, final Invite invite) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.verify_omemo_keys);<NEW_LINE>View view = getLayoutInflater().inflate(R.layout.dialog_verify_fingerprints, null);<NEW_LINE>f... | findViewById(R.id.warning); |
218,319 | protected void initInput() {<NEW_LINE>Input input = getInput();<NEW_LINE>input.addAction(new UserAction("Left") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onActionBegin() {<NEW_LINE>player.getComponent(PhysicsComponent.class).setVelocityX(-200);<NEW_LINE>}<NEW_LINE>}, KeyCode.A, VirtualButton.LEFT);<NEW_LIN... | player.getScaleX() * 1.25); |
1,031,810 | public static <T, V> Function2<MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> sumByDoubleFunction(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) {<NEW_LINE>return new Function2<MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>>() {<NEW_LINE><NEW_LINE>private static final l... | groupKey, nextSum - currentSum - adjustedValue); |
773,210 | final ListFunctionsResult executeListFunctions(ListFunctionsRequest listFunctionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFunctionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListFunctionsRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
210,911 | public void write(DataOutput dataOutput) throws IOException {<NEW_LINE>int length1 = (first != <MASK><NEW_LINE>int length2 = (second != null ? second.length : 0);<NEW_LINE>byte[] s1Bytes = (uriFirst != null ? uriFirst.getBytes(StandardCharsets.UTF_8) : null);<NEW_LINE>byte[] s2Bytes = (uriSecond != null ? uriSecond.get... | null ? first.length : 0); |
886,429 | public void PEval(IFragment<Long, Long, Long, Double> fragment, ParallelContextBase<Long, Long, Long, Double> contextBase, ParallelMessageManager mm) {<NEW_LINE>SSSPContext context = (SSSPContext) contextBase;<NEW_LINE>mm.initChannels(context.thread_num());<NEW_LINE>context.nextModified.clear();<NEW_LINE>Vertex<Long> s... | partialResults.get(vertex))); |
599,607 | public static RecordChangeLog createBPartnerLocationChangeLog(@NonNull final I_C_BPartner_Location bpartnerLocationRecord, @NonNull final CompositeRelatedRecords relatedRecords) {<NEW_LINE>final List<RecordChangeLogEntry> domainEntries = new ArrayList<>();<NEW_LINE>final ImmutableListMultimap<TableRecordReference, Reco... | new AdempiereException("No location found in cache for " + locationId)); |
1,161,983 | public void write(JsonWriter writer, Session value) throws IOException {<NEW_LINE>if (value == null) {<NEW_LINE>writer.nullValue();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writer.beginObject();<NEW_LINE>if (value.getSessionId() != null) {<NEW_LINE>writer.name("sid").value(value.getSessionId().toString());<NEW_LINE>}<NEW_L... | int errorCount = value.errorCount(); |
60,436 | private void hbCreateDecodeTables(int[] limit, int[] base, int[] perm, byte[] length, int minLen, int maxLen, int alphaSize) {<NEW_LINE>int i, j, vec;<NEW_LINE>int pp = 0;<NEW_LINE>for (i = minLen; i <= maxLen; i++) {<NEW_LINE>for (j = 0; j < alphaSize; j++) {<NEW_LINE>if ((length[j] & 0xFF) == i) {<NEW_LINE>perm[pp] =... | ] += base[i - 1]; |
213,573 | private void convertBinOpAppHoles(Concrete.BinOpSequenceExpression expr, List<Concrete.Parameter> parameters) {<NEW_LINE>boolean isLastElemInfix = true;<NEW_LINE>for (Concrete.BinOpSequenceElem elem : expr.getSequence()) {<NEW_LINE>if (elem.expression instanceof Concrete.ApplyHoleExpression)<NEW_LINE>elem.expression = ... | convertRecursively(elem.expression, parameters); |
1,851,985 | protected void doExecute() throws SQLException {<NEW_LINE>if (getConnectionProperties().getDriverType() != DriverTypeEnum.POSTGRES_9_4) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String tableName = getTableName();<NEW_LINE>String columnName = getColumnName();<NEW_LINE>JdbcUtils.ColumnType columnType = JdbcUtils.getColumnTy... | info("Table {} column {} is already of type LONG, no migration needed", tableName, columnName); |
822,505 | protected void analyze(CrawlURI curi, CharSequence cs) {<NEW_LINE>for (Object offset : curi.getDataList(ExtractorHTML.A_FORM_OFFSETS)) {<NEW_LINE>int offsetInt = (Integer) offset;<NEW_LINE>CharSequence relevantSequence = cs.subSequence(<MASK><NEW_LINE>String method = findAttributeValueGroup("(?i)^[^>]*\\smethod\\s*=\\s... | offsetInt, cs.length()); |
1,768,799 | public DescribeNodeConfigurationOptionsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeNodeConfigurationOptionsResult describeNodeConfigurationOptionsResult = new DescribeNodeConfigurationOptionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetD... | ().unmarshall(context)); |
678,369 | public static VKey<? extends HistoryEntry> createVKey(Key<HistoryEntry> key) {<NEW_LINE>String repoId = key<MASK><NEW_LINE>long id = key.getId();<NEW_LINE>Key<EppResource> parent = key.getParent();<NEW_LINE>String parentKind = parent.getKind();<NEW_LINE>if (parentKind.equals(getKind(DomainBase.class))) {<NEW_LINE>retur... | .getParent().getName(); |
1,707,759 | public void start() throws Exception {<NEW_LINE>System.out.println("Main verticle has started, let's deploy some others...");<NEW_LINE>// Different ways of deploying verticles<NEW_LINE>// Deploy a verticle and don't wait for it to start<NEW_LINE>vertx.deployVerticle("io.vertx.example.core.verticle.deploy.OtherVerticle"... | System.out.println("Undeployed ok!"); |
240,008 | private static void testSimpleBridges() {<NEW_LINE>class Parent<T> {<NEW_LINE><NEW_LINE>public String foo(T t) {<NEW_LINE>return "Parent";<NEW_LINE>}<NEW_LINE>}<NEW_LINE>class Child extends Parent<String> {<NEW_LINE><NEW_LINE>// a bridge method should be generated for Parent.foo(T).<NEW_LINE>@Override<NEW_LINE>public S... | , ac.foo("String")); |
577,021 | private Result<TracePoint> splitResultIfNeeded(String agentRollupId, TraceQuery query, int limit, DelegateResultAction action) throws Exception {<NEW_LINE>TraceQueryPlan plan = getPlan(agentRollupId, query);<NEW_LINE>TraceQuery queryV09 = plan.queryV09();<NEW_LINE>TraceQuery queryPostV09 = plan.queryPostV09();<NEW_LINE... | addAll(resultV09.records()); |
1,495,397 | public ResponseEntity<ValidatedResponse<String>> reserveTickets(@PathVariable("eventName") String eventName, @RequestParam("lang") String lang, @RequestBody ReservationForm reservation, BindingResult bindingResult, ServletWebRequest request, Principal principal) {<NEW_LINE>Optional<ResponseEntity<ValidatedResponse<Stri... | LocaleUtil.forLanguageTag(lang, event); |
504,054 | private void createPreferences() {<NEW_LINE>final MModeController modeController = (MModeController) Controller.getCurrentModeController();<NEW_LINE>final OptionPanelBuilder optionPanelBuilder = modeController.getOptionPanelBuilder();<NEW_LINE>optionPanelBuilder.addCreator("Environment/load", new IPropertyControlCreato... | new LinkedList<String>(charsets); |
1,472,240 | public List<OptExpression> transform(OptExpression input, OptimizerContext context) {<NEW_LINE>LogicalApplyOperator apply = (LogicalApplyOperator) input.getOp();<NEW_LINE>OptExpression child = input.getInputs().get(1);<NEW_LINE>LogicalProjectOperator project = (LogicalProjectOperator) child.getOp();<NEW_LINE>ReplaceCol... | ().get(0)); |
562,828 | private static Object parseEntityStringKey(final String stringKey, final RoutingResult routingResult) {<NEW_LINE>ResourceModel resourceModel = routingResult.getResourceMethod().getResourceModel();<NEW_LINE>ServerResourceContext resourceContext = routingResult.getContext();<NEW_LINE>ProtocolVersion version = resourceCon... | ()), altKeyName, resourceModel); |
860,923 | public static QueryGroupUsersResponse unmarshall(QueryGroupUsersResponse queryGroupUsersResponse, UnmarshallerContext context) {<NEW_LINE>queryGroupUsersResponse.setRequestId<MASK><NEW_LINE>queryGroupUsersResponse.setCode(context.integerValue("QueryGroupUsersResponse.Code"));<NEW_LINE>queryGroupUsersResponse.setMessage... | (context.stringValue("QueryGroupUsersResponse.RequestId")); |
543,304 | public static void validateJsr289(Document sipXmlDocument) throws SAXException, IOException {<NEW_LINE>// do the actual validation against the parsed document<NEW_LINE>SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);<NEW_LINE>String <MASK><NEW_LINE>// the prefix is for the sar2war ... | wasRoot = System.getProperty("was.install.root"); |
980,699 | public void predictVertical(int[] residual, boolean topLeftAvailable, boolean topRightAvailable, byte[] topLeft, byte[] topLine, int mbOffX, int blkX, int blkY, byte[] pixOut) {<NEW_LINE>interpolateTop(topLeftAvailable, topRightAvailable, topLeft, topLine, mbOffX + blkX, blkY, topBuf);<NEW_LINE>int pixOff = (blkY << 4)... | 2], -128, 127); |
1,459,183 | public static Filter pull(Filter rex) {<NEW_LINE>final LinkedHashSet<Filter> operands;<NEW_LINE>if (rex instanceof AndFilter) {<NEW_LINE>operands = ((AndFilter) rex).getFilters();<NEW_LINE>return and(pullList(operands));<NEW_LINE>} else if (rex instanceof OrFilter) {<NEW_LINE>operands = ((OrFilter) rex).getFilters();<N... | list = new ArrayList<>(); |
491,520 | // @see com.biglybt.pif.ui.tables.TableCellMouseListener#cellMouseTrigger(com.biglybt.pif.ui.tables.TableCellMouseEvent)<NEW_LINE>@Override<NEW_LINE>public void cellMouseTrigger(TableCellMouseEvent event) {<NEW_LINE>if (event.data instanceof ColumnImageClickArea && event.cell != null) {<NEW_LINE>DownloadManager dm = (D... | .getTableColumn().invalidateCells(); |
802,766 | File compressImage(final Context context, final ReadableMap options, final String originalImagePath, final BitmapFactory.Options bitmapOptions) throws IOException {<NEW_LINE>Integer maxWidth = options.hasKey("compressImageMaxWidth") ? options.getInt("compressImageMaxWidth") : null;<NEW_LINE>Integer maxHeight = options.... | "image/jpg", "image/png", "image/gif", "image/tiff"); |
798,400 | public void startUp() {<NEW_LINE>keyManager.registerKeyListener(chatKeyboardListener);<NEW_LINE>chatCommandManager.registerCommandAsync(TOTAL_LEVEL_COMMAND_STRING, this::playerSkillLookup);<NEW_LINE>chatCommandManager.registerCommandAsync(CMB_COMMAND_STRING, this::combatLevelLookup);<NEW_LINE>chatCommandManager.registe... | this::personalBestLookup, this::personalBestSubmit); |
898,954 | public static String lastGreenDate(Context context, int minutesAgo) {<NEW_LINE>// minutesAgo = 1442;<NEW_LINE>Calendar calGreen = Calendar.getInstance();<NEW_LINE>calGreen.add(Calendar.MINUTE, -minutesAgo);<NEW_LINE>Calendar calToday = Calendar.getInstance();<NEW_LINE>Calendar calYesterday = Calendar.getInstance();<NEW... | TimeZone tz = calGreen.getTimeZone(); |
1,401,489 | private void cmd_find() {<NEW_LINE>//<NEW_LINE>// Use the embedded find panel if available (metas-2009_0021_AP1_G113)<NEW_LINE>final FindPanelContainer findPanel = m_curGC != null ? m_curGC.getFindPanel() : null;<NEW_LINE>if (findPanel != null) {<NEW_LINE>// toggle expanded flag<NEW_LINE>findPanel.setExpanded(!findPane... | MQuery query = find.getQuery(); |
827,277 | protected TlsCredentials selectClientCredentials13(Principal[] issuers, byte[] certificateRequestContext) throws IOException {<NEW_LINE>LinkedHashMap<String, SignatureSchemeInfo> keyTypeMap = new LinkedHashMap<String, SignatureSchemeInfo>();<NEW_LINE>for (SignatureSchemeInfo signatureSchemeInfo : jsseSecurityParameters... | keyTypeMap.put(keyType, signatureSchemeInfo); |
507,444 | public String login(HttpServletRequest httpServletRequest, HttpServletResponse response, @RequestParam String userName, @RequestParam String password) {<NEW_LINE>ExtensionLoader<LoginAuthentication> extensionLoader = ExtensionLoader.getExtensionLoader(LoginAuthentication.class);<NEW_LINE>Set<LoginAuthentication> suppor... | > iterator = supportedExtensionInstances.iterator(); |
838,191 | public // name that is already set on the message being sent.<NEW_LINE>void testSetLongProperty_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1);<NEW_LINE>JMSConsumer <M... | jmsConsumer = jmsContextQCFBindings.createConsumer(queue1); |
708,969 | public void notifyTextAvailable(@Nonnull String line, @Nonnull Key outputType) {<NEW_LINE>if (outputType == ProcessOutputTypes.STDERR) {<NEW_LINE>LOG.warn(line);<NEW_LINE>}<NEW_LINE>if (outputType != ProcessOutputTypes.STDOUT) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (LOG.isTraceEnabled())<NEW_LINE>LOG.trace(">> " + l... | , '\n'), File.separator); |
508,280 | private List<Pair<String, MapSqlParameterSource>> collectASMigrationData(String srcPriceCtsParam, boolean eventVatIncluded, BigDecimal vatPercentage, Map<String, Integer> eventIdParam) {<NEW_LINE>return jdbc.queryForList("select id, price_cts, vat_type from additional_service where event_id_fk = :eventId and fix_price ... | ) as.get("vat_type")); |
728,101 | private BucketReduceResult addEmptyBuckets(BucketReduceResult current, AggregationReduceContext reduceContext) {<NEW_LINE>List<Bucket> list = current.buckets;<NEW_LINE>if (list.isEmpty()) {<NEW_LINE>return current;<NEW_LINE>}<NEW_LINE>int roundingIdx = getAppropriateRounding(list.get(0).key, list.get(list.size() - 1).k... | (bucketInfo.emptySubAggregations), reduceContext); |
860,606 | public ActionReport process(final ActionReport report, final String filter) {<NEW_LINE>if (monitoringService != null) {<NEW_LINE>String level = monitoringService.getMonitoringLevel("jvm");<NEW_LINE>if ((level != null) && (level.equals(ContainerMonitoring.LEVEL_OFF))) {<NEW_LINE>report.setActionExitCode(ActionReport.Exi... | .getLocalString("mrdr.null", "MonitoringRuntimeDataRegistry server node is null")); |
1,001,879 | private JComponent buildResolutionCombo() {<NEW_LINE>resolutionCombo = new JComboBox(new String[] { "data", "250", "500", "1000" });<NEW_LINE>resolutionCombo.setEditable(true);<NEW_LINE>resolutionCombo.setToolTipText("Sets update interval of graph in milliseconds");<NEW_LINE>long resolution = historyGraph.getResolution... | : String.valueOf(resolution)); |
1,630,102 | public void marshall(AwsElbLoadBalancerDetails awsElbLoadBalancerDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsElbLoadBalancerDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsElbLoa... | awsElbLoadBalancerDetails.getCanonicalHostedZoneNameID(), CANONICALHOSTEDZONENAMEID_BINDING); |
375,411 | private static synchronized File createFallbackPOM(String groupId, String artifactId, String version) throws IOException {<NEW_LINE>String k = groupId + ':' + artifactId + ':' + version;<NEW_LINE>File fallbackPOM = fallbackPOMs.get(k);<NEW_LINE>if (fallbackPOM == null) {<NEW_LINE>fallbackPOM = File.createTempFile("fall... | println("<name>" + FALLBACK_NAME + "</name>"); |
1,267,217 | public List<Map<String, Object>> executeFix() throws DotDataException, DotRuntimeException {<NEW_LINE>Logger.info(FixTask00080DeleteOrphanedContentTypeFields.class, "Beginning DeleteOrphanedContentTypeFields");<NEW_LINE>List<Map<String, Object>> returnValue = new ArrayList<Map<String, Object>>();<NEW_LINE>if (!FixAsset... | ? modifiedData.size() : 0; |
728,221 | final VerifyEmailIdentityResult executeVerifyEmailIdentity(VerifyEmailIdentityRequest verifyEmailIdentityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(verifyEmailIdentityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,373,477 | private static void tryAssertionInvalid(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum) {<NEW_LINE>String expectedOne = !eventRepresentationEnum.isAvroEvent() ? "Nestable type configuration encountered an unexpected property type name 'xxxx' for property 'col1', expected java.lang.Class or... | tryInvalidCompile(prefix + " create schema MyEventTypeT1 as () inherit ABC", "Expected 'inherits', 'starttimestamp', 'endtimestamp' or 'copyfrom' keyword after create-schema clause but encountered 'inherit' ["); |
1,574,716 | public PyObject __call__(PyObject arg) {<NEW_LINE>PyCursor cursor = (PyCursor) __self__;<NEW_LINE>switch(index) {<NEW_LINE>case 0:<NEW_LINE>return cursor.<MASK><NEW_LINE>case 5:<NEW_LINE>cursor.execute(arg, Py.None, Py.None, Py.None);<NEW_LINE>return Py.None;<NEW_LINE>case 6:<NEW_LINE>case 7:<NEW_LINE>return Py.None;<N... | fetchmany(arg.asInt()); |
1,412,484 | private void writeQuery(String code, XMLStreamWriter writer, FilterModelImpl model, Query query, int parentId) throws XMLStreamException {<NEW_LINE>Serialization serialization = new Serialization(model.getGraphModel());<NEW_LINE>writer.writeStartElement(code);<NEW_LINE>int id = queryId++;<NEW_LINE>writer.writeAttribute... | , String.valueOf(id)); |
143,923 | // TODO need review it with rpc.build-participant<NEW_LINE>private HmilyParticipant buildHmilyParticipant(final ProceedingJoinPoint point, final Long participantId, final Long participantRefId, final Long transId) {<NEW_LINE>HmilyParticipant hmilyParticipant = new HmilyParticipant();<NEW_LINE>if (null == participantId)... | .getTarget().getClass(); |
1,743,441 | public List<Product> listByStore(MerchantStore store) {<NEW_LINE>StringBuilder qs = new StringBuilder();<NEW_LINE>qs.append("select p from Product as p ");<NEW_LINE>qs.append("join fetch p.merchantStore merch ");<NEW_LINE>qs.append("join fetch p.availabilities pa ");<NEW_LINE>qs.append("left join fetch pa.prices pap ")... | "mid", store.getId()); |
344,185 | public void parseFormatString(final Map<String, SchemaNode> schemaNodes, final Schema entity, final String expression) throws FrameworkException {<NEW_LINE>final StreamTokenizer tokenizer = new <MASK><NEW_LINE>final StringBuilder buf = new StringBuilder();<NEW_LINE>tokenizer.wordChars('_', '_');<NEW_LINE>String token =... | StreamTokenizer(new StringReader(expression)); |
869,335 | protected void deleteJobs(ExecutionEntity executionEntity, CommandContext commandContext, boolean enableExecutionRelationshipCounts, boolean eventDispatcherEnabled) {<NEW_LINE>// Jobs have byte array references that don't store the execution id.<NEW_LINE>// This means a bulk delete is not done for jobs. Generally there... | .getIdentityLinkServiceConfiguration().getIdentityLinkService(); |
1,803,254 | public void loadProperties(Properties properties) {<NEW_LINE>Reader reader = new Reader(properties);<NEW_LINE>this.server = reader.get("ebean.redis.server", server);<NEW_LINE>this.port = reader.getInt("ebean.redis.port", port);<NEW_LINE>this.ssl = reader.getBool("ebean.redis.ssl", ssl);<NEW_LINE>this.minIdle = reader.g... | reader.getLong("ebean.redis.maxWaitMillis", maxWaitMillis); |
805,319 | private static Parser_return parse(String sql, int bracket_cnt) {<NEW_LINE>int index = 0;<NEW_LINE>boolean in_quote = false;<NEW_LINE>do {<NEW_LINE>if (sql.charAt(index) == '\'') {<NEW_LINE>in_quote = !in_quote;<NEW_LINE>} else if (sql.charAt(index) == '{' && !in_quote) {<NEW_LINE>if (index + 1 == sql.length()) {<NEW_L... | index < sql.length()); |
726,675 | public ListFHIRExportJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFHIRExportJobsResult listFHIRExportJobsResult = new ListFHIRExportJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | )).unmarshall(context)); |
711,438 | public AbstractObjectArray toNonHoles(JSDynamicObject object, long index, Object value) {<NEW_LINE>assert !containsHoles(object, index);<NEW_LINE>Object[] array = getArray(object);<NEW_LINE>int length = lengthInt(object);<NEW_LINE>int usedLength = getUsedLength(object);<NEW_LINE>int arrayOffset = getArrayOffset(object)... | this, newArray, index, value); |
1,113,301 | public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>this.preAssertInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo);<NEW_LINE>Constant cst = this.assertExpression.optimizedBooleanConstant();<NEW_LINE>this.assertExpression.checkNPEbyU... | CompilerOptions compilerOptions = currentScope.compilerOptions(); |
269,925 | private void buildHashPattern(Label testEnd, Variable result, Variable deconstructed, HashPatternNode pattern, Operand obj, boolean inAlteration) {<NEW_LINE>Variable d = deconstructHashPatternKeys(testEnd, pattern, result, obj);<NEW_LINE>label(endHashCheck -> {<NEW_LINE>addInstr(new EQQInstr(scope, result, manager.getH... | testEnd, result, tru()); |
309,885 | public StartDeploymentResponse startDeployment(@NonNull final StartDeploymentRequest request) throws ResourceNotFoundException, InternalServiceException {<NEW_LINE>try {<NEW_LINE>final EnvironmentId environmentId = apiModelMapper.toModelEnvironmentId(request.getEnvironmentId());<NEW_LINE>final Environment environment =... | e.getMessage(), e); |
1,326,247 | Object withDecoder(VirtualFrame frame, PNLDecoder self, PTuple state, @Shared("o") @Cached SequenceNodes.GetObjectArrayNode getObjectArrayNode, @Shared("i") @Cached PyIndexCheckNode indexCheckNode, @Shared("s") @Cached PyNumberAsSizeNode asSizeNode, @Cached PyObjectCallMethodObjArgs callMethod) {<NEW_LINE>Object[] <MAS... | objects = getObjectArrayNode.execute(state); |
667,093 | private void addSubcache(String path, String cacheName, byte[] data) {<NEW_LINE>Lock writeLock = subcacheLock.writeLock();<NEW_LINE>writeLock.lock();<NEW_LINE>try {<NEW_LINE>logger.debug("Adding cache for path {}; Cache name: {}; Depth: {}; InstanceId: {}", path, cacheName, currentDepth, Integer.toHexString(hashCode())... | logger.warn("Removing path {} due to no data in the znode", path); |
114,229 | final DescribeLoadBalancerAttributesResult executeDescribeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest describeLoadBalancerAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBalancerAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,605,462 | public void testRetryFourWithOneSkip(PrintWriter out) throws Exception {<NEW_LINE>List<Instruction> instructions = new ArrayList<Instruction>(6);<NEW_LINE>instructions.addAll(Arrays.asList(Instruction.FAIL, Instruction.FAIL, Instruction.FAIL, Instruction<MASK><NEW_LINE>ProgrammableTriggerTask task = new ProgrammableTri... | .SKIP, Instruction.PASS)); |
960,045 | public void createBackingStore(String persistenceType, String storeName, Class<T> metadataClass, Map<String, Object> vendorMap) {<NEW_LINE>if (_logger.isLoggable(Level.FINE)) {<NEW_LINE>_logger.fine("Create backing store invoked with persistence type " + persistenceType + " and store name " + storeName);<NEW_LINE>}<NEW... | getVendorSpecificSettings().putAll(vendorMap); |
346,520 | private static void loadDetails(View dialogLayout, ThemedActivity activity, MediaDetailsMap<String, String> metadata) {<NEW_LINE>LinearLayout detailsTable = dialogLayout.findViewById(R.id.ll_list_details);<NEW_LINE>int tenPxInDp = Measure.pxToDp(10, activity);<NEW_LINE>// more or less an hundred. Did not used weight fo... | TextView(activity.getApplicationContext()); |
59,900 | public com.amazonaws.services.inspector2.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.inspector2.model.BadRequestException badRequestException = new com.amazonaws.services.inspector2.model.BadRequestException(null);<NEW_LINE>int orig... | JsonToken token = context.getCurrentToken(); |
1,777,577 | private Executor onEnd(Executor executor) {<NEW_LINE>Execution newExecution = executor.getExecution().withState(executor.getExecution().guessFinalState(executor.getFlow()));<NEW_LINE>Logger logger = executor.getFlow().logger();<NEW_LINE>logger.info("[namespace: {}] [flow: {}] [execution: {}] Flow completed with state {... | getState().humanDuration()); |
1,659,661 | private void wakeUpApplication(String uuid, String number, String displayName) {<NEW_LINE>Log.d(TAG, "[VoiceConnectionService] wakeUpApplication, uuid:" + uuid + ", number :" + number + ", displayName:" + displayName);<NEW_LINE>// Avoid to call wake up the app again in wakeUpAfterReachabilityTimeout.<NEW_LINE>this.curr... | getApplicationContext(), RNCallKeepBackgroundMessagingService.class); |
926,937 | public void addBlockEntity(Coordinate3D location, SpecificTag tag) {<NEW_LINE>CompoundTag entity = (CompoundTag) tag;<NEW_LINE>// validate entity identifer<NEW_LINE>if (!entity.get("id").isError()) {<NEW_LINE>String id = entity.get("id").stringValue();<NEW_LINE>if (id.split(":").length < 2) {<NEW_LINE>id = "minecraft:"... | Coordinate3D offset = location.offsetGlobal(); |
1,154,857 | private Optional<NodePermissioningController> buildNodePermissioningController(final List<EnodeURL> bootnodesAsEnodeURLs, final Synchronizer synchronizer, final TransactionSimulator transactionSimulator, final Bytes localNodeId, final Blockchain blockchain) {<NEW_LINE>final Collection<EnodeURL> fixedNodes = getFixedNod... | blockchain, permissioningService.getConnectionPermissioningProviders()); |
249,027 | protected void updateAppRegistration(JdbcTemplate jdbcTemplate, List<AppRegistrationMigrationData> data) {<NEW_LINE>// check and do same fix as in R__Hibernate_Sequence<NEW_LINE>// needed if we're coming from classic mode and skipper is not<NEW_LINE>// started first<NEW_LINE>boolean fixHibernateSequence = false;<NEW_LI... | queryForObject("select next value for hibernate_sequence", Long.class); |
1,559,324 | public static List<Interval> toIntervals(final RangeSet<Long> rangeSet) {<NEW_LINE>final List<Interval> retVal = new ArrayList<>();<NEW_LINE>for (Range<Long> range : rangeSet.asRanges()) {<NEW_LINE>final long start;<NEW_LINE>final long end;<NEW_LINE>if (range.hasLowerBound()) {<NEW_LINE>final long millis = range.lowerE... | .eternity().getEndMillis(); |
445,044 | protected void redirectWithBlankHtmlPage(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>BufferedWriter page = new BufferedWriter(new OutputStreamWriter(response.getOutputStream(), StandardCharsets.UTF_8));<NEW_LINE>StringBuilder stringBuilder = new StringBuilder();<NEW_LINE>stri... | throw new IllegalStateException("Unable to get redirect page template: " + REDIRECT_PAGE_TEMPLATE_PATH); |
1,166,190 | public InfraOnExprBaseViewResult determineOnExprView(AgentInstanceContext agentInstanceContext, List<AgentInstanceMgmtCallback> stopCallbacks, boolean isRecoveringReslient) {<NEW_LINE>ResultSetProcessor[] processors = new ResultSetProcessor[items.length];<NEW_LINE>for (int i = 0; i < processors.length; i++) {<NEW_LINE>... | getTableInstance(agentInstanceContext.getAgentInstanceId()); |
1,833,392 | public static PasswordEncoder createDelegatingPasswordEncoder() {<NEW_LINE>// copy from PasswordEncoderFactories, and it's should follow the upgrade of the PasswordEncoderFactories<NEW_LINE>String encodingId = "bcrypt";<NEW_LINE>Map<String, PasswordEncoder> encoders = new HashMap<>();<NEW_LINE>encoders.put(encodingId, ... | ("pbkdf2", new Pbkdf2PasswordEncoder()); |
107,269 | void notifyExceptionWithOwnedPermission(Throwable exception) {<NEW_LINE>logException(exception);<NEW_LINE>if (!lifecycleService.isRunning()) {<NEW_LINE>completeExceptionally(new HazelcastClientNotActiveException("Client is shutting down", exception));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!shouldRetry(exception)) {<... | new OperationTimeoutException(msg, exception)); |
1,818,777 | public static boolean scrollToVisible(JViewport viewport, Rectangle fieldArea) {<NEW_LINE>Rectangle viewArea = viewport.getViewRect();<NEW_LINE>if (viewArea.contains(fieldArea)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Point pos = new Point();<NEW_LINE>pos.x = viewArea.x;<NEW_LINE>if (fieldArea.x + fieldArea.width ... | .y - 5 : pos.y; |
1,024,443 | public Response keycloakInitiatedBrowserLogout(KeycloakSession session, UserSessionModel userSession, UriInfo uriInfo, RealmModel realm) {<NEW_LINE>String singleLogoutServiceUrl = getConfig().getSingleLogoutServiceUrl();<NEW_LINE>if (singleLogoutServiceUrl == null || singleLogoutServiceUrl.trim().equals(""))<NEW_LINE>r... | .getDestination().toString(); |
1,102,789 | public SpanCallTree corrupted(final String title, final long parentSpanId, final long spanId, final long startTimeMillis) {<NEW_LINE>final SpanBo rootSpan = new SpanBo();<NEW_LINE>rootSpan.setParentSpanId(parentSpanId);<NEW_LINE>rootSpan.setSpanId(spanId);<NEW_LINE>rootSpan.setStartTime(startTimeMillis);<NEW_LINE>rootS... | errorMessage = getErrorMessage(title, startTimeMillis); |
1,583,950 | protected void checkScrollForReport() {<NEW_LINE>if (!mEnableScrollForReport) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int startEdgePos = (int) PixelUtil.px2dp(mParentRecyclerView.mOffsetY);<NEW_LINE>int endEdgePos = (int) PixelUtil.px2dp(mParentRecyclerView.getHeight() + mParentRecyclerView.mOffsetY);<NEW_LINE>int first... | px2dp(getItemWidth(i))); |
1,406,501 | public <T> void declareField(BiConsumer<Value, T> consumer, ContextParser<Context, T> parser, ParseField parseField, ValueType type) {<NEW_LINE>if (consumer == null) {<NEW_LINE>throw new IllegalArgumentException("[consumer] is required");<NEW_LINE>}<NEW_LINE>if (parser == null) {<NEW_LINE>throw new IllegalArgumentExcep... | position = addConstructorArg(consumer, parseField); |
1,763,041 | public static String friendlyEncodeHTML(String text, boolean skipLeadingWhitespace) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>int i = 0;<NEW_LINE>int col = 0;<NEW_LINE>if (skipLeadingWhitespace) {<NEW_LINE>for (i = 0; i < text.length(); i++) {<NEW_LINE>// skip leading spaces.<NEW_LINE>if (!Charact... | = TAB_SIZE - (col % TAB_SIZE); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.