idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,508,324
public void rename(PartName newName) {<NEW_LINE>log.info("Renaming part " + this.getPartName().getName() + " to " + newName.getName());<NEW_LINE>// Rename in the part store<NEW_LINE>// @since 8.1.4<NEW_LINE>this.getPackage().getSourcePartStore().rename(this.getPartName(), newName);<NEW_LINE>// Remove this part<NEW_LINE...
log.debug("Result " + result);
355,767
protected Tuple4<String[], String[], TypeInformation<?>[], String[]> prepareIoSchema(TableSchema modelSchema, TableSchema dataSchema, Params params) {<NEW_LINE>FeatureClause[] featureClauses = FeatureClauseUtil.extractFeatureClauses(params.get(AggLookupParams.CLAUSE));<NEW_LINE>this.numAgg = featureClauses.length;<NEW_...
] = featureClauses[i].inColName;
309,294
public void removeContainers(Set<PackingPlan.ContainerPlan> containersToRemove) {<NEW_LINE>LOG.log(Level.INFO, "Kill {0} of {1} containers", new Object[] { containersToRemove.size(), processToContainer.size() });<NEW_LINE>synchronized (processToContainer) {<NEW_LINE>// Create a inverse map to be able to get process ins...
Level.WARNING, "Container for id:{0} not found.", containerId);
706,570
public static ListInboundOrderPreboxingsResponse unmarshall(ListInboundOrderPreboxingsResponse listInboundOrderPreboxingsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInboundOrderPreboxingsResponse.setRequestId(_ctx.stringValue("ListInboundOrderPreboxingsResponse.RequestId"));<NEW_LINE>listInboundOrderPreboxingsRe...
("ListInboundOrderPreboxingsResponse.InboundOrderPreboxings[" + i + "].CaseCode"));
789,249
protected void processEmbed(CrawlURI curi, final CharSequence value, CharSequence context, Hop hop) {<NEW_LINE>if (logger.isLoggable(Level.FINEST)) {<NEW_LINE>logger.finest("embed (" + hop.getHopChar() + "): " + value.toString() + " from " + curi);<NEW_LINE>}<NEW_LINE>if (context.equals(HTMLLinkContext.IMG_SRCSET.toStr...
curi, link, context, hop);
1,099,100
public final QualifiedClassNameListContext qualifiedClassNameList() throws RecognitionException {<NEW_LINE>QualifiedClassNameListContext _localctx = new QualifiedClassNameListContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 90, RULE_qualifiedClassNameList);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterA...
_errHandler.recover(this, re);
1,853,350
public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {<NEW_LINE>if (this.getChildNodes().length != 2) {<NEW_LINE>throw new ExprValidationException("Arithmatic node must have 2 parameters");<NEW_LINE>}<NEW_LINE>for (ExprNode child : this.getChildNodes()) {<NEW_LINE>ExprNodeUti...
resultType = JavaClassHelper.getBoxedType(rhsType);
868,106
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Create Trees<NEW_LINE>if (newRecord) {<NEW_LINE>MTree_Base tree = new MTree_Base(getCtx(), getName() + MTree_Base.TREETYPE_CMContainer, MTree_Base.TREETYPE_CMContainer, get_TrxName());<NEW_LINE>if (!tree.save())<NEW_LINE>return false;<NEW_LINE>setAD_TreeCMC_...
MTree_Base.TREETYPE_CMTemplate, get_TrxName());
317,805
public Object execute(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>executeCheckPassword(request, response);<NEW_LINE>checkGlobalAuth(ConnectContext.get().getCurrentUserIdentity(), PrivPredicate.ADMIN);<NEW_LINE>String dbName = request.getParameter(DB_KEY);<NEW_LINE>String tableName = request.get...
> createRollupStmt = Lists.newArrayList();
428,392
public R execute(Callable<R> callable, ExecutionContext executionContext) {<NEW_LINE>ExecutionContextImpl executionContextImpl = (ExecutionContextImpl) executionContext;<NEW_LINE>SyncFailsafe<R> failsafe = Failsafe.with(executionContextImpl.getRetry());<NEW_LINE>configureFailsafe(failsafe, executionContextImpl);<NEW_LI...
executionContextImpl.getMethod(), e);
1,820,131
public SaleOrder addPack(SaleOrder saleOrder, Pack pack, BigDecimal packQty) {<NEW_LINE>List<PackLine> packLineList = pack.getComponents();<NEW_LINE>if (ObjectUtils.isEmpty(packLineList)) {<NEW_LINE>return saleOrder;<NEW_LINE>}<NEW_LINE>packLineList.sort(Comparator.comparing(PackLine::getSequence));<NEW_LINE>Integer se...
, packQty, conversionRate, ++sequence);
1,650,400
/*<NEW_LINE>* implemented as per wiki suggested algo with minor adjustments.<NEW_LINE>*/<NEW_LINE>private void compactAndRemove(final E[] buffer, final int mask, int removeHashIndex) {<NEW_LINE>// remove(9a): [9a,9b,10a,9c,10b,11a,null] -> [9b,9c,10a,10b,null,11a,null]<NEW_LINE>removeHashIndex = removeHashIndex & mask;...
slotJ.hashCode()) & mask;
1,381,453
public void update() {<NEW_LINE>if (externalMetricsSupplier != null) {<NEW_LINE>Set<CompactionExecutorId> seenIds = new HashSet<>();<NEW_LINE>synchronized (exCeMetricsMap) {<NEW_LINE>externalMetricsSupplier.get().forEach(ecm -> {<NEW_LINE>seenIds.add(ecm.ceid);<NEW_LINE>ExMetrics exm = exCeMetricsMap.computeIfAbsent(ec...
), new AtomicInteger(0));
384,166
protected BiConsumer<Row, List<Span>> accumulator() {<NEW_LINE>return (row, result) -> {<NEW_LINE>String traceId = row.getString("trace_id");<NEW_LINE>String traceIdHigh = row.getString("trace_id_high");<NEW_LINE>if (traceIdHigh != null)<NEW_LINE>traceId = traceIdHigh + traceId;<NEW_LINE>Span.Builder builder = Span.new...
(row.getLong("ts"));
532,438
public int compareTo(add_filter_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetMid()).compareTo(other.isSetMid());<NEW_LINE...
compareTo(other.isSetFilterEx());
403,745
public void renderJSON(PrintWriter writer, Map<String, String> params) {<NEW_LINE>String clusterName = params.get("cluster");<NEW_LINE>String <MASK><NEW_LINE>JsonArray json = new JsonArray();<NEW_LINE>KafkaClusterManager clusterMananger = DoctorKMain.doctorK.getClusterManager(clusterName);<NEW_LINE>if (clusterMananger ...
topic = params.get("topic");
887,106
public MutablePair<CoreV1Event, V1Patch> observe(CoreV1Event event, String key) {<NEW_LINE>OffsetDateTime now = OffsetDateTime.now();<NEW_LINE>EventLog lastObserved = this.eventCache.getIfPresent(key);<NEW_LINE>V1Patch patch = null;<NEW_LINE>if (lastObserved != null && lastObserved.count != null && lastObserved.count >...
.getMetadata().getName();
1,538,149
private void visitPatterns(List<Concrete.Pattern> patterns, List<Concrete.Parameter> parameters, Map<String, Referable> usedNames, boolean resolvePatterns) {<NEW_LINE>int j = 0;<NEW_LINE>for (int i = 0; i < patterns.size(); i++) {<NEW_LINE>Concrete.Pattern pattern = patterns.get(i);<NEW_LINE>if (pattern == null) {<NEW_...
patterns.set(i, newPattern);
1,700,877
public void runSupport() {<NEW_LINE>FileDialog dialog = new FileDialog(Utils.findAnyShell(), SWT.SYSTEM_MODAL | SWT.SAVE);<NEW_LINE>dialog.setFilterPath(TorrentOpener.getFilterPathData());<NEW_LINE>dialog.setText(MessageText.getString("subscript.export.select.template.file"));<NEW_LINE>dialog.setFilterExtensions(VuzeFi...
path = VuzeFileHandler.getVuzeFileName(path);
1,638,399
final ListAuditMitigationActionsTasksResult executeListAuditMitigationActionsTasks(ListAuditMitigationActionsTasksRequest listAuditMitigationActionsTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAuditMitigationActionsTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
invoke(request, responseHandler, executionContext);
430,344
public boolean performOk() {<NEW_LINE>getPreferenceStore().setValue(GRID_SIZE, fGridSizeSpinner.getSelection());<NEW_LINE>getPreferenceStore().setValue(PALETTE_STATE, fPaletteStateButton.getSelection());<NEW_LINE>getPreferenceStore().setValue(VIEW_TOOLTIPS, fViewTooltipsButton.getSelection());<NEW_LINE>getPreferenceSto...
VIEWPOINTS_GHOST_DIAGRAM_ELEMENTS, fViewpointsGhostDiagramElementsButton.getSelection());
1,793,311
public void construct() {<NEW_LINE>try {<NEW_LINE>panel.wizardDescriptor.putProperty(WizardDescriptor.PROP_INFO_MESSAGE, "Contacting service...");<NEW_LINE>MicronautLaunchService service = MicronautLaunchService.getInstance();<NEW_LINE>String serviceUrl = getServiceUrl();<NEW_LINE>String <MASK><NEW_LINE>for (MicronautL...
micronautVersion = service.getMicronautVersion(serviceUrl);
1,397,149
public void appendHoverText(ItemStack stack, @Nullable Level world, List<Component> list, TooltipFlag flag) {<NEW_LINE>String tag = getRevolverDisplayTag(stack);<NEW_LINE>if (!tag.isEmpty())<NEW_LINE>list.add(new TranslatableComponent(Lib.DESC_FLAVOUR + "revolver." + tag));<NEW_LINE>else if (ItemNBTHelper.hasKey(stack,...
(Lib.DESC_FLAVOUR + "revolver"));
1,123,389
public MetastoreOperationResult renameColumn(MetastoreContext metastoreContext, String databaseName, String tableName, String oldColumnName, String newColumnName) {<NEW_LINE>com.amazonaws.services.glue.model.Table table = getGlueTableOrElseThrow(databaseName, tableName);<NEW_LINE>if (table.getPartitionKeys() != null &&...
throw new PrestoException(NOT_SUPPORTED, "Renaming partition columns is not supported");
6,959
protected void run() throws Exception {<NEW_LINE>// Error if not running on Windows<NEW_LINE>if (Platform.CURRENT_PLATFORM.getOperatingSystem() != OperatingSystem.WINDOWS) {<NEW_LINE>popup("Aborting: This script is for use on Windows only.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get appropriate pdb.exe file<NEW_LINE...
popup(ioe.getMessage());
1,588,941
GeckoResult<Integer> handleWebXRPermission(GeckoSession aGeckoSession, ContentPermission perm) {<NEW_LINE>Session session = SessionStore.get().getSession(aGeckoSession);<NEW_LINE>if (session == null || !SettingsStore.getInstance(mContext).isWebXREnabled()) {<NEW_LINE>return GeckoResult.fromValue(ContentPermission.VALUE...
GeckoResult.fromValue(ContentPermission.VALUE_DENY);
498,420
private void visualizeData() {<NEW_LINE>if (scienceLab.isConnected()) {<NEW_LINE>double ppm = <MASK><NEW_LINE>dustSensorMeter.setPointerColor(ppm > highLimit ? Color.WHITE : Color.RED);<NEW_LINE>dustValue.setText(String.format(Locale.getDefault(), "%.2f", ppm));<NEW_LINE>String status = ppm > highLimit ? "Good" : "Bad"...
scienceLab.getVoltage("CH1", 1);
183,311
public V replace(K key, V value) {<NEW_LINE>requireNonNull(value);<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>V[] oldValue = (V[]) new Object[1];<NEW_LINE>boolean[] done = { false };<NEW_LINE>for (; ; ) {<NEW_LINE>CompletableFuture<V> <MASK><NEW_LINE>if ((future == null) || future.isCompletedExcep...
future = delegate.getIfPresentQuietly(key);
1,362,152
public <T> CompletionStage<ReadResultSet<T>> readFromEventJournal(long startSequence, int minSize, int maxSize, int partitionId, java.util.function.Predicate<? super EventJournalMapEvent<K, V>> predicate, java.util.function.Function<? super EventJournalMapEvent<K, V>, ? extends T> projection) {<NEW_LINE>if (maxSize < m...
ManagedContext context = serializationService.getManagedContext();
840,805
public final // F49213<NEW_LINE>void formatTo(IncidentStream is) {<NEW_LINE>// -----------------------------------------------------------------------<NEW_LINE>// Indicate the start of the dump, and include the identity<NEW_LINE>// of InjectionProcessor, so this can easily be matched to a trace.<NEW_LINE>// -----------...
ivObjectFactoryMap.get(key)));
257,351
public BeanDefinition parse(Element element, ParserContext parserContext) {<NEW_LINE>Object source = parserContext.extractSource(element);<NEW_LINE>// Register component for the surrounding <rabbit:annotation-driven> element.<NEW_LINE>CompositeComponentDefinition compDefinition = new CompositeComponentDefinition(elemen...
parserContext, builder, RabbitListenerConfigUtils.RABBIT_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME);
147,093
private void createOrUpdateBpartnerProduct(@NonNull final JsonRequestBPartnerProductUpsert jsonRequestBPartnerProductUpsert, @NonNull final SyncAdvise effectiveSyncAdvise, @NonNull final ProductId productId, @NonNull final String orgCode) {<NEW_LINE>final ExternalIdentifier externalIdentifier = ExternalIdentifier.<MASK...
of(jsonRequestBPartnerProductUpsert.getBpartnerIdentifier());
573,173
public ScalarOperator rewriteSubqueryScalarOperator(Expr predicate, OptExprBuilder subOpt, List<ColumnRefOperator> correlation) {<NEW_LINE>ScalarOperator scalarPredicate = SqlToScalarOperatorTranslator.translate(predicate, subOpt.getExpressionMapping(), correlation);<NEW_LINE>ArrayList<InPredicate> <MASK><NEW_LINE>pred...
inPredicates = new ArrayList<>();
363,267
ArrayList<Object> new155() /* reduce AFieldSignature */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<MASK><NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList5 = pop();<NEW...
<Object> nodeArrayList6 = pop();
1,576,632
public void onBindViewHolder(@NonNull final GroupsViewHolder holder, int position) {<NEW_LINE>if (position == items.size()) {<NEW_LINE>holder.groupButton.setOnClickListener(view -> {<NEW_LINE>FragmentManager fragmentManager = getFragmentManager();<NEW_LINE>DialogFragment dialogFragment = createAddCategoryDialog();<NEW_...
ripple_solid_light_6dp, R.drawable.ripple_solid_dark_6dp);
593,979
public static void collectOverlayQuads(@Nonnull ModelBakeEvent event) {<NEW_LINE>final Block block = ModObject.block_machine_io.getBlockNN();<NEW_LINE>Map<IBlockState, ModelResourceLocation> locations = event.getModelManager().getBlockModelShapes().getBlockStateMapper().getVariants(block);<NEW_LINE>NNIterator<IOMode> m...
IOMode mode = modes.next();
49,108
private static Map<String, Tuple<String, List<Tuple<String, Supplier<DiscoveryNode>>>>> buildRemoteClustersDynamicConfig(final Settings settings, final Setting.AffixSetting<List<String>> seedsSetting) {<NEW_LINE>final Stream<Setting<List<String>>> allConcreteSettings = seedsSetting.getAllConcreteSettings(settings);<NEW...
.get(settings), nodes);
400,456
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "value = all (select sum(intPrimitive) from SupportBean#keepall) as c0, " + "value = any (select sum(intPrimitive) from SupportBean#keepall) as c1, " + "value = some (select sum(i...
env.compileDeployAddListenerMileZero(epl, "s0");
27,798
/* package */<NEW_LINE>Map<ArrayKey, List<I_AD_Table_ScriptValidator>> retrieveAllTableScriptValidators(@CacheCtx final Properties ctx) {<NEW_LINE>//<NEW_LINE>// Retrieve all table script validators<NEW_LINE>final IQueryBuilder<I_AD_Table_ScriptValidator> queryBuilder = Services.get(IQueryBL.class).createQueryBuilder(I...
, Collections.unmodifiableList(currentGroupValidators));
1,242,846
public Number parse(String text, ParsePosition parsePosition) {<NEW_LINE>long num = 0;<NEW_LINE>boolean sawNumber = false;<NEW_LINE>boolean negative = false;<NEW_LINE>int base = parsePosition.getIndex();<NEW_LINE>int offset = 0;<NEW_LINE>for (; base + offset < text.length(); offset++) {<NEW_LINE>char ch = text.charAt(b...
num * (-1) : num;
1,714,921
public void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {<NEW_LINE>if (suppressAllComments) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>method.addJavaDocLine("/**");<NEW_LINE>// $NON-NLS-1...
append(introspectedColumn.getActualColumnName());
1,225,418
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(Fields.TRANSPORT);<NEW_LINE>builder.array(Fields.BOUND_ADDRESS, (Object[]) address.boundAddresses());<NEW_LINE>builder.field(Fields.PUBLISH_ADDRESS, formatPublishAddressString("transport.publish_a...
+ entry.getKey() + ".publish_address";
328,842
final DeleteSchemaResult executeDeleteSchema(DeleteSchemaRequest deleteSchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSchemaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
872,019
public int compareTo(TSummarizerConfiguration other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetClassname(<MASK><NEW_LINE>if (lastC...
), other.isSetClassname());
635,413
public void replaceDexMerge(BaseVariantOutput vod) {<NEW_LINE>List<TransformTask> list = TransformManager.findTransformTaskByTransformType(variantContext, DexMergerTransform.class);<NEW_LINE>DexingType dexingType = variantContext.getScope().getDexingType();<NEW_LINE>if (variantContext.getScope().getInstantRunBuildConte...
.getScope().getDexMerger();
981,980
private static String addCommentsToDDL(DBRProgressMonitor monitor, OracleTableBase object, String ddl) {<NEW_LINE>StringBuilder ddlBuilder = new StringBuilder(ddl);<NEW_LINE>String objectFullName = object.getFullyQualifiedName(DBPEvaluationContext.DDL);<NEW_LINE>String objectComment = object.getComment(monitor);<NEW_LI...
).append(SQLConstants.DEFAULT_STATEMENT_DELIMITER);
1,489,917
private void addCell(TableRowBox row, TableCellBox cell, int cRow) {<NEW_LINE>int rSpan = cell.getStyle().getRowSpan();<NEW_LINE>int cSpan = cell.getStyle().getColSpan();<NEW_LINE>List<ColumnData> columns = getTable().getColumns();<NEW_LINE>int nCols = columns.size();<NEW_LINE>int cCol = 0;<NEW_LINE>ensureRows(cRow + r...
getTable().appendColumn(1);
1,648,755
public void visit(BLangWhile whileNode, AnalyzerData data) {<NEW_LINE>SymbolEnv whileEnv = SymbolEnv.createLoopEnv(whileNode, data.env);<NEW_LINE>data.loopAndDoClauseEnvs.add(whileEnv);<NEW_LINE>data.potentiallyInvalidAssignmentInLoopsInfo.add(new PotentiallyInvalidAssignmentInfo(new ArrayList<>(), data.env.enclInvokab...
.failureHandled = whileNode.onFailClause != null;
1,742,682
public void afterOpcode(int seen) {<NEW_LINE>super.afterOpcode(seen);<NEW_LINE>if (seen == Const.INVOKEINTERFACE || seen == Const.INVOKEVIRTUAL) {<NEW_LINE>if (fieldUnderClone != null) {<NEW_LINE>arrayFieldClones.put(stack.getStackItem(0), fieldUnderClone);<NEW_LINE>}<NEW_LINE>if (paramUnderClone != null) {<NEW_LINE>ar...
.getStackItem(0), paramUnderWrapToBuffer);
1,342,294
public static IRubyObject name_list(ThreadContext context, IRubyObject recv) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>EncodingService service = runtime.getEncodingService();<NEW_LINE>RubyArray result = runtime.newArray(service.getEncodings().size() + service.getAliases().size());<NEW_LINE>HashEntryIterator i...
p).freeze(context));
1,100,226
public void writeReference(Reference ref) {<NEW_LINE>out.lf();<NEW_LINE>// Prefix<NEW_LINE>if (!ref.prefix().isEmpty()) {<NEW_LINE>out.escaped(ref.prefix()).lf();<NEW_LINE>}<NEW_LINE>// Authors<NEW_LINE>//<NEW_LINE>// authors<NEW_LINE>out.append(//<NEW_LINE>ref.authors()).// Title<NEW_LINE>lf().append("**").escaped(ref...
append('>').lf();
1,508,591
private boolean isCurrentUserAdminJ() {<NEW_LINE>boolean adm = false;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>setEnvironmentVariable("LANG", "C", EnvironmentScope.PROCESS, false);<NEW_LINE>setEnvironmentVariable("LC_COLLATE", "C", EnvironmentScope.PROCESS, false);<NEW_LINE>setEnvironmentVariable("LC_CTYPE", "C", Environ...
"C", EnvironmentScope.PROCESS, false);
906,337
private void maybeInitializeAnimators() {<NEW_LINE>if (animator == null) {<NEW_LINE>// Instantiates an animator with the linear interpolator to control the animation progress.<NEW_LINE>animator = ObjectAnimator.ofFloat(this, ANIMATION_FRACTION, 0, 1);<NEW_LINE>animator.setDuration(TOTAL_DURATION_IN_MS);<NEW_LINE>animat...
1) % baseSpec.indicatorColors.length;
1,522,421
public IRubyObject squeeze_bang(ThreadContext context, IRubyObject[] args) {<NEW_LINE>if (value.getRealSize() == 0) {<NEW_LINE>modifyCheck();<NEW_LINE>return context.nil;<NEW_LINE>}<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>RubyString otherStr = args[0].convertToString();<NEW_LINE>Encoding enc = checkEnco...
boolean[StringSupport.TRANS_SIZE + 1];
680,475
public List<Interval> inTransaction(Handle handle, TransactionStatus status) {<NEW_LINE>Iterator<Interval> iter = handle.createQuery(StringUtils.format("SELECT start, %2$send%2$s FROM %1$s WHERE dataSource = :dataSource AND " + "%2$send%2$s <= :end AND used = false ORDER BY start, %2$send%2$s", getSegmentsTable(), conn...
result = Lists.newArrayListWithCapacity(limit);
12,681
static void branch_counts(int n, /* n = size of alphabet */<NEW_LINE>Token[] tok, ReadOnlyIntArrPointer tree, /* unsigned */<NEW_LINE>int[][] branch_ct, /* unsigned */<NEW_LINE>int[] num_events) {<NEW_LINE>final int tree_len = n - 1;<NEW_LINE>int t = 0;<NEW_LINE>assert (tree_len != 0);<NEW_LINE>do {<NEW_LINE>branch_ct[...
tree.getRel(i + b);
1,261,008
private void createConsumerGroupOpt(String masterUrl, String topicName, String consumerGroup, String token, String operator) {<NEW_LINE>LOGGER.info(String.format("begin to create consumer group %s for topic %s in master %s", consumerGroup, topicName, masterUrl));<NEW_LINE>String url = masterUrl + ADD_CONSUMER_PATH + TO...
", error: " + e.getMessage());
1,085,642
public Void visitFieldAccess(RexFieldAccess fieldAccess) {<NEW_LINE>final RexNode ref = fieldAccess.getReferenceExpr();<NEW_LINE>if (ref instanceof RexCorrelVariable) {<NEW_LINE>final RexCorrelVariable var = (RexCorrelVariable) ref;<NEW_LINE>if (mapFieldAccessToCorVar.containsKey(fieldAccess)) {<NEW_LINE>// for cases w...
mapFieldAccessToCorVar.put(fieldAccess, correlation);
845,251
protected boolean storeCheckpoint(DispatcherState curState, Checkpoint cp, SCN winScn) throws IOException {<NEW_LINE>boolean debugEnabled = _log.isDebugEnabled();<NEW_LINE>if (debugEnabled)<NEW_LINE>_log.debug("About to store checkpoint");<NEW_LINE>boolean success = true;<NEW_LINE>// processBatch - returns false ; then...
"Checkpoint " + cp + " not saved as callback returned " + callbackResult);
1,193,848
final PeerVpcResult executePeerVpc(PeerVpcRequest peerVpcRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(peerVpcRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PeerVpc");
1,128,391
private void fireDiagnosticData(IMethodResult result) {<NEW_LINE>if (result == null) {<NEW_LINE>Logger.<MASK><NEW_LINE>} else {<NEW_LINE>if (diagnosticData != null) {<NEW_LINE>HashMap<String, Object> resultMap = new HashMap<String, Object>();<NEW_LINE>resultMap.put(IBatterySingleton.HK_STATE_OF_HEALTH_PERCENT, diagnost...
D(TAG, "EMDK fireDiagnosticData result =" + result);
1,247,760
final ListResolverQueryLogConfigAssociationsResult executeListResolverQueryLogConfigAssociations(ListResolverQueryLogConfigAssociationsRequest listResolverQueryLogConfigAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResolverQueryLogConfigAssociationsRequest);<NEW_LINE>AWS...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,699,321
public void addInterfaceElements(Interface interfaze) {<NEW_LINE>Method method = new Method(introspectedTable.getInsertStatementId());<NEW_LINE>method.setReturnType(FullyQualifiedJavaType.getIntInstance());<NEW_LINE>method.setVisibility(JavaVisibility.PUBLIC);<NEW_LINE>method.setAbstract(true);<NEW_LINE>FullyQualifiedJ...
importedTypes = new TreeSet<>();
1,100,234
public static Response decrypt(OSCoreCtxDB db, Response response, int requestSequenceNr) throws OSException {<NEW_LINE>LOGGER.info("Removes E options from outer options which are not allowed there");<NEW_LINE>discardEOptions(response);<NEW_LINE>byte[] protectedData = response.getPayload();<NEW_LINE>Encrypt0Message enc ...
enc, response, ctx, requestSequenceNr);
630,101
public static long[] hash(final long[] key, final int offsetLongs, final int lengthLongs, final long seed) {<NEW_LINE>Objects.requireNonNull(key);<NEW_LINE>final int arrLen = key.length;<NEW_LINE>checkPositive(arrLen);<NEW_LINE>Util.checkBounds(offsetLongs, lengthLongs, arrLen);<NEW_LINE>final HashState hashState = new...
(i << 1) + 1];
582,474
public UserIdentity login(String username, Object credentials, ServletRequest request) {<NEW_LINE>if (!(credentials instanceof String)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Authenticate WebUser locally using UserAuthenticator. If WebServer is started that guarantees the PLAIN<NEW_LINE>// mechan...
SystemOptionManager sysOptions = drillbitContext.getOptionManager();
359,373
public void initialize(ServiceConfiguration config) throws IOException {<NEW_LINE>int port = config.port == null ? (config.port = config.secure ? 8883 : 1883) : config.port;<NEW_LINE>// Create MqttBrokerConnection<NEW_LINE>connection = <MASK><NEW_LINE>if (connection != null) {<NEW_LINE>// Close the existing connection ...
service.getBrokerConnection(Constants.CLIENTID);
625,691
public void install(@NotNull final C component) {<NEW_LINE>super.install(component);<NEW_LINE>// Installing ActionMap<NEW_LINE>final UIActionMap actionMap = new UIActionMap();<NEW_LINE>actionMap.put(new Action(component, Action.RESTORE));<NEW_LINE>actionMap.put(new Action(component, Action.CLOSE));<NEW_LINE>actionMap.p...
(component, Action.UP));
1,379,738
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
HashMap<String, Object>();
928,175
public boolean verifyMembers(boolean debugVerification) {<NEW_LINE>List<String> verificationProblems = new ArrayList<>();<NEW_LINE>// Fields<NEW_LINE>Set<String> typesInSignature = null;<NEW_LINE>List<Field> fields = getFields();<NEW_LINE>for (Field field : fields) {<NEW_LINE>typesInSignature = field.getTypesInSignatur...
<Method> methods = getMethods();
1,375,855
private static CigarBuilder.Result trimCigar(final Cigar cigar, final int start, final int end, final boolean byReference) {<NEW_LINE>ParamUtils.isPositiveOrZero(start, "start position can't be negative");<NEW_LINE>Utils.validateArg(end >= start, () -> "end " + end + " is before start " + start);<NEW_LINE>final CigarBu...
elt) : lengthOnRead(elt));
119,182
public GetDataflowGraphResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDataflowGraphResult getDataflowGraphResult = new GetDataflowGraphResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
)).unmarshall(context));
1,832,050
protected synchronized // the respective internal or external data.<NEW_LINE>void ensureExternalResults() {<NEW_LINE>String methodName = "ensureExternalResults";<NEW_LINE>if (externalTable != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.logp(Level.FINER, CLASS_NAME,...
methodName, "RETURN [ {0} ]", getHashName());
445,380
private ArrayList<ClusterCandidate> hardClustering(WritableDataStore<double[]> probClusterIGivenX, List<Signature> clusterCores, DBIDs dbids) {<NEW_LINE>final <MASK><NEW_LINE>// Initialize cluster sets.<NEW_LINE>ArrayList<ClusterCandidate> candidates = new ArrayList<>();<NEW_LINE>for (Signature sig : clusterCores) {<NE...
int k = clusterCores.size();
747,950
public ResourceDefinitionVersion unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceDefinitionVersion resourceDefinitionVersion = new ResourceDefinitionVersion();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
421,545
protected String doIt() {<NEW_LINE>final PPOrderLineRow ppOrderLineRow = getSingleSelectedRow();<NEW_LINE>final PPOrderBOMLineId ppOrderBomLineId = ppOrderLineRow.getOrderBOMLineId();<NEW_LINE>final ViewId ppOrderLineViewId = getView().getViewId();<NEW_LINE>final List<HuId> availableHUsIDs = retrieveHuIdsToShowInEditor...
()).build());
645,028
public void closing(CommandContext commandContext) {<NEW_LINE>// This logic needs to be done before the dbSqlSession is flushed<NEW_LINE>// which means it can't be done in the transaction pre-commit<NEW_LINE>Map<JobServiceConfiguration, AsyncHistorySessionData> sessionData = asyncHistorySession.getSessionData();<NEW_LI...
objectNodes = new ArrayList<>();
1,041,114
public static void deleteProject(String project, boolean waitStatus) {<NEW_LINE>new DeleteAction().performAPI(ProjectsTabOperator.invoke().getProjectRootNode(project));<NEW_LINE>// delete project<NEW_LINE>// NOI18N<NEW_LINE>NbDialogOperator deleteProject = new NbDialogOperator("Delete Project");<NEW_LINE>JCheckBoxOpera...
waitStatusText("Finished building " + project + " (clean)");
764,025
public static void tearDown() throws Exception {<NEW_LINE>try {<NEW_LINE>// Clean up database<NEW_LINE>try {<NEW_LINE>final Set<String> ddlSet <MASK><NEW_LINE>for (String ddlName : dropSet) {<NEW_LINE>ddlSet.add(ddlName.replace("${dbvendor}", getDbVendor().name()));<NEW_LINE>}<NEW_LINE>executeDDL(server, ddlSet, true);...
= new HashSet<String>();
572,226
public static void launchQuPath(HostServices hostServices, boolean isSwing) {<NEW_LINE>QuPathGUI instance = getInstance();<NEW_LINE>if (instance != null) {<NEW_LINE>logger.info("Request to launch QuPath - will try to show existing instance instead");<NEW_LINE>if (Platform.isFxApplicationThread())<NEW_LINE>instance.getS...
System.out.println("Calling Platform.runLater()...");
1,569,028
private void refillDocs() throws IOException {<NEW_LINE>final int left = docFreq - blockUpto;<NEW_LINE>assert left >= 0;<NEW_LINE>if (left >= BLOCK_SIZE) {<NEW_LINE>pforUtil.decodeAndPrefixSum(docIn, accum, docBuffer);<NEW_LINE>pforUtil.decode(docIn, freqBuffer);<NEW_LINE>blockUpto += BLOCK_SIZE;<NEW_LINE>} else if (do...
docBuffer, freqBuffer, left, true);
371,422
public Map<String, Object> queryProcessInstanceById(User loginUser, long projectCode, Integer processId) {<NEW_LINE>Project <MASK><NEW_LINE>// check user access for project<NEW_LINE>Map<String, Object> result = projectService.checkProjectAndAuth(loginUser, project, projectCode);<NEW_LINE>if (result.get(Constants.STATUS...
project = projectMapper.queryByCode(projectCode);
166,190
public void addElements(XmlElement parentElement) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>XmlElement answer = new XmlElement("update");<NEW_LINE>answer.addAttribute(new // $NON-NLS-1$<NEW_LINE>Attribute(// $NON-NLS-1$<NEW_LINE>"id", introspectedTable.getUpdateByPrimaryKeySelectiveStatementId()));<NEW_LINE>String parameterTy...
(sb.toString()));
706,493
public Map<String, BlobMetaData> listBlobsByPrefix(String account, String container, String keyPath, String prefix) throws URISyntaxException, StorageException, IOException {<NEW_LINE>// NOTE: this should be here: if (prefix == null) prefix = "";<NEW_LINE>// however, this is really inefficient since deleteBlobsByPrefix...
URI uri = blobItem.getUri();
1,599,769
public NToken sign(PrivateKey privateKey) {<NEW_LINE>// See https://github.com/AthenZ/athenz/blob/master/libs/go/zmssvctoken/token.go<NEW_LINE>var generationTime = clock.instant();<NEW_LINE>token.setLength(0);<NEW_LINE>append('v', "S1");<NEW_LINE>append('d', domain);<NEW_LINE>append('n', name);<NEW_LINE>append('k', key...
.toString(), privateKey));
1,334,844
public net.osmand.binary.OsmandOdb.TransportRouteScheduleException buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.TransportRouteScheduleException result = new net.osmand.binary.OsmandOdb.TransportRouteScheduleException(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if ...
util.Collections.unmodifiableList(stopIndexes_);
219,703
public int argb() {<NEW_LINE>if (mAlpha <= 0 || mAlpha > 254) {<NEW_LINE>return mTargetColor.argb();<NEW_LINE>}<NEW_LINE>int baseArgb = mBaseColor.argb();<NEW_LINE>int targetArgb = mTargetColor.argb();<NEW_LINE>int r1 = android.graphics.Color.red(baseArgb);<NEW_LINE>int g1 = android.graphics.Color.green(baseArgb);<NEW_...
graphics.Color.blue(targetArgb);
11,831
public void marshall(ChannelMessageSummary channelMessageSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (channelMessageSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(channelMessageSummary...
channelMessageSummary.getCreatedTimestamp(), CREATEDTIMESTAMP_BINDING);
591,771
public Void visitMethodInvocation(final MethodInvocationTree invocation, final Trees trees) {<NEW_LINE>PackageElement compilationUnitPackageElement = Util.getElement(compilationUnit.getPackage());<NEW_LINE>// TODO: same for static variables<NEW_LINE>if (invocation.getMethodSelect() instanceof IdentifierTree && JSweetCo...
super.visitMethodInvocation(invocation, trees);
78,147
public void deserialize(ByteBuf input) {<NEW_LINE>int <MASK><NEW_LINE>if (featsFlag > 0) {<NEW_LINE>feats = (IntFloatVector) ByteBufSerdeUtils.deserializeVector(input);<NEW_LINE>}<NEW_LINE>int neighborsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (neighborsFlag > 0) {<NEW_LINE>neighbors = ByteBufSerdeUti...
featsFlag = ByteBufSerdeUtils.deserializeInt(input);
787,290
public RunOutcome run(@Nonnull StepExecutionDetails<BulkImportJobParameters, VoidModel> theStepExecutionDetails, @Nonnull IJobDataSink<NdJsonFileJson> theDataSink) {<NEW_LINE>Integer maxBatchResourceCount = theStepExecutionDetails.getParameters().getMaxBatchResourceCount();<NEW_LINE>if (maxBatchResourceCount == null ||...
(nextLine).append('\n');
1,182,967
public void updateSchedule(@Context SecurityContext sc, @PathParam("envName") String envName, @PathParam("stageName") String stageName, @Valid ScheduleBean bean) throws Exception {<NEW_LINE>String operator = sc.getUserPrincipal().getName();<NEW_LINE>EnvironBean envBean = environDAO.getByStage(envName, stageName);<NEW_L...
, scheduleBean.toString()));
244,725
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_places_on_map);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE>editTextSearch.addTextChangedListener(this);<NEW_LINE>Intent intent = getIntent();<NEW_LINE>mCity = (City) intent.getSeria...
mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
582,352
public void initView() {<NEW_LINE>Array<AttributeVO> gridAttributes = new Array<>();<NEW_LINE>gridAttributes.add(new AttributeVO("Width", currentParameters.gridWidth));<NEW_LINE>gridAttributes.add(new AttributeVO("Height", currentParameters.gridHeight));<NEW_LINE>CategoryVO gridVO = new CategoryVO("Grid size: ", gridAt...
tiledPlugin.dataToSave.setParameterVO(currentParameters);
1,716,243
public void finishedToExecuteTask(Queueable msg) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>StringBuffer buff = new StringBuffer();<NEW_LINE>buff.append("QId=");<NEW_LINE>buff.append(getId());<NEW_LINE>buff.append(" Message = ");<NEW_LINE>buff.append(msg);<NEW_LINE>// buff.append("Queue size =");<NE...
()).append(" has ");
241,478
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Removes assignment of a vulnerability from a component")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 403, message = "Access to the specified c...
getObjectByUuid(Vulnerability.class, uuid);
1,853,066
public static void showEditInstance(final MapObject mapObject, final AppCompatActivity activity) {<NEW_LINE>final OsmEditingPlugin plugin = OsmandPlugin.getPlugin(OsmEditingPlugin.class);<NEW_LINE>if (plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OsmandApplication app = ((OsmandApplication) activity.getA...
EditPoiDialogFragment.createInstance(entityToEdit, false);
1,039,676
protected ActionResult<List<Wo>> execute(HttpServletRequest request, EffectivePerson effectivePerson, String subjectId) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<List<Wo>>();<NEW_LINE>List<Wo> wrapOutSubjectAttachmentList = null;<NEW_LINE>List<BBSSubjectAttachment> fileInfoList = null...
Wo.copier.copy(fileInfoList);
1,645,986
public void run() {<NEW_LINE>TcpProxy <MASK><NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("id", id);<NEW_LINE>param.put("pass", CipherUtil.sha256(password));<NEW_LINE>param.put("email", email);<NEW_LINE>param.put("group", selectedGroup);<NEW_LINE>MapPack p =...
tcp = TcpProxy.getTcpProxy(serverId);
1,012,407
public int execute(DalHints hints, Map<String, ?> fields, T rawPojo, DalTaskContext taskContext) throws SQLException {<NEW_LINE>List<Map<String, ?>> pojoList = new ArrayList<Map<String, ?>>();<NEW_LINE>List<T> rawPojos = new ArrayList<>();<NEW_LINE>pojoList.add(fields);<NEW_LINE>rawPojos.add(rawPojo);<NEW_LINE>Set<Stri...
identityFields = new ArrayList<>();