idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
980,567
private void checkSQLServerTables() throws SQLException {<NEW_LINE>LOGGER.entering(CLASSNAME, "checkSQLServerTables");<NEW_LINE>setCreateSQLServerStringsMap();<NEW_LINE>createTableIfNotExists(tableNames.get(CHECKPOINT_TABLE_KEY), SQLServerCreateStrings.get(SQLSERVER_CREATE_TABLE_CHECKPOINTDATA));<NEW_LINE>createTableIf...
, SQLServerCreateStrings.get(SQLSERVER_CREATE_TABLE_JOBINSTANCEDATA));
1,204,591
/*<NEW_LINE>An endpoint uses the following algorithm to decompress a message.<NEW_LINE>1. Append 4 octets of 0x00 0x00 0xff 0xff to the tail end of the<NEW_LINE>payload of the message.<NEW_LINE>2. Decompress the resulting data using DEFLATE.<NEW_LINE>See, https://tools.ietf.org/html/rfc7692#section-7.2.2<NEW_LINE>*/<...
).array(), output);
548,104
public I_C_Print_Job_Instructions createPrintJobInstructions(@Nullable final UserId userToPrintId, final boolean createWithSpecificHostKey, @NonNull final I_C_Print_Job_Line firstLine, @NonNull final I_C_Print_Job_Line lastLine, final int copies) {<NEW_LINE>Check.assume(firstLine.getSeqNo() <= lastLine.getSeqNo(), "Fir...
ctx = InterfaceWrapperHelper.getCtx(instructions);
1,750,023
public void visitJDT(final IMethod method, final ITypeRequestor requestor) {<NEW_LINE>MethodNode methodNode = findMethodNode(method);<NEW_LINE>if (methodNode == null) {<NEW_LINE>// probably some sort of AST transformation is making this node invisible<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.requestor = requestor;<NEW...
getParent().getElementName());
1,054,373
// ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(businessCategory);<NEW...
0, dm.length());
244,086
public static QueryTaskInfoHistoryResponse unmarshall(QueryTaskInfoHistoryResponse queryTaskInfoHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTaskInfoHistoryResponse.setRequestId(_ctx.stringValue("QueryTaskInfoHistoryResponse.RequestId"));<NEW_LINE>queryTaskInfoHistoryResponse.setPageSize(_ctx.integerValue...
(_ctx.longValue("QueryTaskInfoHistoryResponse.PrePageCursor.CreateTimeLong"));
1,829,949
final DeleteTrafficMirrorFilterRuleResult executeDeleteTrafficMirrorFilterRule(DeleteTrafficMirrorFilterRuleRequest deleteTrafficMirrorFilterRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTrafficMirrorFilterRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTrafficMirrorFilterRule");
1,636,692
public void activate(Context context) {<NEW_LINE>ArrayList<AuthUI.IdpConfig> idps = getProviders(config.providers);<NEW_LINE>AuthUI.SignInIntentBuilder builder = authUI().createSignInIntentBuilder().setLogo(ChatSDK.config().logoDrawableResourceID).setTheme(UIModule.config().theme).setIsSmartLockEnabled(false).setAvaila...
UIModule.config().theme);
1,444,938
final ListFiltersResult executeListFilters(ListFiltersRequest listFiltersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFiltersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListFiltersRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
285,123
public org.apache.submarine.server.api.proto.TritonModelConfig.ModelOptimizationPolicy buildPartial() {<NEW_LINE>org.apache.submarine.server.api.proto.TritonModelConfig.ModelOptimizationPolicy result = new org.apache.submarine.server.api.<MASK><NEW_LINE>if (graphBuilder_ == null) {<NEW_LINE>result.graph_ = graph_;<NEW_...
proto.TritonModelConfig.ModelOptimizationPolicy(this);
1,591,962
public Expression visitPi(PiExpression expr, Expression expectedType) {<NEW_LINE>checkSort(expr.getResultSort(), expr);<NEW_LINE>UniverseExpression type = new UniverseExpression(expr.getResultSort());<NEW_LINE>Sort sort1 = checkDependentLinkWithResult(expr.getParameters(), expr.getResultSort().isProp() ? null : new Uni...
max(sort2.getPLevel());
1,810,519
protected void fillJobInfo(Job job) {<NEW_LINE>job.setCode(jobProps.get(LinkisJobTypeConf.COMMAND));<NEW_LINE>Map<String, Object> params = new HashMap<>();<NEW_LINE>if (jobProps.containsKey("run_date")) {<NEW_LINE>params.put("run_date", jobProps.get("run_date"));<NEW_LINE>}<NEW_LINE>job.setParams(params);<NEW_LINE>Map<...
.get(LinkisJobTypeConf.JOB_ID));
716,972
public FTPFile parseFTPEntry(final String line) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Parse %s", line));<NEW_LINE>}<NEW_LINE>if (current != null) {<NEW_LINE>final FTPFile <MASK><NEW_LINE>if (null != parsed) {<NEW_LINE>return parsed;<NEW_LINE>}<NEW_LINE>if (log.isInfoEnabled()) {<NEW_L...
parsed = current.parseFTPEntry(line);
1,148,288
public void run() {<NEW_LINE>List<MemoryPoolMXBean> memoryPoolMXBeans = ManagementFactory.getMemoryPoolMXBeans();<NEW_LINE>for (MemoryPoolMXBean memoryPoolMXBean : memoryPoolMXBeans) {<NEW_LINE>String poolName = memoryPoolMXBean.getName();<NEW_LINE>if (memoryPoolMXBean.getType() == MemoryType.HEAP && poolName.equals(he...
long currentCount = garbageCollectorMXBean.getCollectionCount();
444,847
public static QuerySecCheckLatestSummaryResponse unmarshall(QuerySecCheckLatestSummaryResponse querySecCheckLatestSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySecCheckLatestSummaryResponse.setRequestId(_ctx.stringValue("QuerySecCheckLatestSummaryResponse.RequestId"));<NEW_LINE>querySecCheckLatestSummaryRe...
("QuerySecCheckLatestSummaryResponse.Data.List[" + i + "].CheckType"));
1,609,509
public static void main(String[] args) {<NEW_LINE>Options options = createCommandLineOptions();<NEW_LINE>CommandLine cmd;<NEW_LINE>try {<NEW_LINE>CommandLineParser parser = new DefaultParser();<NEW_LINE>cmd = parser.parse(options, args);<NEW_LINE>} catch (ParseException e) {<NEW_LINE>System.out.println("ERROR: " + e.ge...
).forEach(launcher::addInputResource);
1,286,605
private long insertTaskEntryForExecution(HttpServletRequest request, String name) throws Exception {<NEW_LINE>InputStream input = request.getServletContext().getResourceAsStream("/WEB-INF/serialized/" + name + ".ser");<NEW_LINE>ObjectInputStream objectInput = new ObjectInputStream(input);<NEW_LINE>LinkedHashMap<String,...
getClass().getDeclaredMethod("getPartitionId");
99,113
protected void doProcess(final ITemplateContext context, final IProcessableElementTag tag, final AttributeName attributeName, final String attributeValue, final Object expressionResult, final IElementTagStructureHandler structureHandler) {<NEW_LINE>if (expressionResult != null) {<NEW_LINE>final String resultStr = expre...
"\": only 'all', 'tag', 'body', 'none' " + "and 'all-but-first' are allowed, but \"" + attributeValue + "\" was specified.");
1,342,036
public List<VMInstanceVO> listByHostOrLastHostOrHostPod(long hostId, long podId) {<NEW_LINE>SearchBuilder<VMInstanceVO> sb = createSearchBuilder();<NEW_LINE>sb.or().op("hostId", sb.entity().getHostId(), Op.EQ);<NEW_LINE>sb.or("lastHostId", sb.entity().getLastHostId(), Op.EQ);<NEW_LINE>sb.and().op("hostIdNull", sb.entit...
), SearchCriteria.Op.NULL);
1,611,312
private ArrayKey mkKey(final IHUTransactionAttribute trx) {<NEW_LINE>final AttributeId attributeId = trx.getAttributeId();<NEW_LINE>final HUTransactionAttributeOperation operation = trx.getOperation();<NEW_LINE>final Object referencedObject = trx.getReferencedObject();<NEW_LINE>final String referencedObjectTableName;<N...
referencedObjectTableName = InterfaceWrapperHelper.getModelTableName(referencedObject);
1,752,864
public static Object compressStringRawBytes(@Nonnull CharSequence string) {<NEW_LINE>int length = string.length();<NEW_LINE>if (length < STRING_COMPRESSION_THRESHOLD) {<NEW_LINE>if (string instanceof CharBuffer && ((CharBuffer) string).capacity() > STRING_COMPRESSION_THRESHOLD) {<NEW_LINE>// shrink to size<NEW_LINE>str...
c = string.charAt(i);
309,712
protected static Boolean withValidAccessModifiers(Symbol symbol, Package currentPackage, ModuleId currentModule, HoverContext context) {<NEW_LINE>Optional<Project> project = context.workspace().project(context.filePath());<NEW_LINE>Optional<ModuleSymbol> typeSymbolModule = symbol.getModule();<NEW_LINE>if (project.isEmp...
).contains(Qualifier.RESOURCE);
1,086,971
private PartialPath mergeSamePathFilter(QueryFilter filter) throws StatementAnalyzeException {<NEW_LINE>if (filter.isLeaf()) {<NEW_LINE>return filter.getSinglePath();<NEW_LINE>}<NEW_LINE>List<QueryFilter> children = filter.getChildren();<NEW_LINE>checkInnerFilterLen(children);<NEW_LINE>PartialPath childPath = mergeSame...
(children.get(i));
333,924
public void union(FlowSet<T> otherFlow, FlowSet<T> destFlow) {<NEW_LINE>if (sameType(otherFlow) && sameType(destFlow)) {<NEW_LINE>DavaFlowSet<T> other = (DavaFlowSet<T>) otherFlow;<NEW_LINE>DavaFlowSet<T> dest = (DavaFlowSet<T>) destFlow;<NEW_LINE>// For the special case that dest == other<NEW_LINE>if (dest == other) {...
super.union(otherFlow, destFlow);
840,839
private void initIDEbefore() {<NEW_LINE>log(lvl, "initIDEbefore: entering");<NEW_LINE>optionsIDE = Preferences.userNodeForPackage(Sikulix.class);<NEW_LINE>if (jreVersion.startsWith("1.6")) {<NEW_LINE>String jyversion = "";<NEW_LINE>Properties prop = new Properties();<NEW_LINE>String fp = "org/python/version.properties"...
System.setProperty("apple.laf.useScreenMenuBar", "true");
1,581,846
public boolean configure(FeatureContext context) {<NEW_LINE>if (oAuth1Provider != null) {<NEW_LINE>context.register(oAuth1Provider);<NEW_LINE>}<NEW_LINE>context.register(OAuth1ServerFilter.class);<NEW_LINE>if (!context.getConfiguration().isRegistered(OAuth1SignatureFeature.class)) {<NEW_LINE>context.register(OAuth1Sign...
path(accessUri).build();
1,654,186
protected void destroyBitmap() {<NEW_LINE>if (this.bitmap != null) {<NEW_LINE>// bitmap can be null if there is an error creating it<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {<NEW_LINE>final int tileSize = this.getHeight();<NEW_LINE>synchronized (reusableTileBitmaps) {<NEW_LINE>int hash = co...
Bitmap>(this.bitmap));
471,751
private void syncBPartnerToCandidate(@NonNull final NewManualInvoiceCandidateBuilder candidate, @NonNull final OrgId orgId, @NonNull final JsonCreateInvoiceCandidatesRequestItem item) {<NEW_LINE>final boolean noBPartnerIdentifier = isEmpty(item.getBillPartnerIdentifier(), true);<NEW_LINE>final <MASK><NEW_LINE>if (noBPa...
BPartnerInfoBuilder bpartnerInfo = BPartnerInfo.builder();
1,658,066
private ScanNode genScanNode() throws UserException {<NEW_LINE>ScanNode scanNode = null;<NEW_LINE>switch(exportTable.getType()) {<NEW_LINE>case OLAP:<NEW_LINE>scanNode = new OlapScanNode(new PlanNodeId(0), exportTupleDesc, "OlapScanNodeForExport");<NEW_LINE>scanNode.setColumnFilters(Maps.newHashMap());<NEW_LINE>((OlapS...
"Unsupported table type: " + exportTable.getType());
664,522
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (controller.getLibrary().hasCards()...
getLibrary().getFromTop(game);
1,813,660
public int doStartTag() throws JspException {<NEW_LINE>boolean getSize = ServletRequestUtils.getBooleanParameter(pageContext.getRequest(), param, false);<NEW_LINE>StringBuilder query = new StringBuilder();<NEW_LINE>query.append(param).append("=").append(!getSize);<NEW_LINE>String encoding = pageContext.getResponse().ge...
getOut().print(query);
1,671,792
private void writeNodeForBinarySearch(FSTCompiler<T> fstCompiler, FSTCompiler.UnCompiledNode<T> nodeIn, long startAddress, int maxBytesPerArc) {<NEW_LINE>// Build the header in a buffer.<NEW_LINE>// It is a false/special arc which is in fact a node header with node flags followed by node<NEW_LINE>// metadata.<NEW_LINE>...
copyBytes(srcPos, destPos, arcLen);
1,440,833
public Consumer<? super EmbedCreateSpec> build() {<NEW_LINE>if (this.doesExceedCharacterLimit()) {<NEW_LINE>throw new IllegalArgumentException("Embed exceeds character limit of " + TOTAL_MAX_CHAR + " (has " + <MASK><NEW_LINE>}<NEW_LINE>return (EmbedCreateSpec t) -> {<NEW_LINE>if (!title.isEmpty()) {<NEW_LINE>t.setTitle...
this.getTotalVisibleCharacters() + " chars)");
959,964
public static ListVpcEndpointConnectionsResponse unmarshall(ListVpcEndpointConnectionsResponse listVpcEndpointConnectionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVpcEndpointConnectionsResponse.setRequestId(_ctx.stringValue("ListVpcEndpointConnectionsResponse.RequestId"));<NEW_LINE>listVpcEndpointConnectionsRe...
("ListVpcEndpointConnectionsResponse.Connections[" + i + "].EndpointOwnerId"));
1,751,253
Proximity2DResult multiPathGetNearestCoordinate(MultiPath geom, Point2D inputPoint, boolean bTestPolygonInterior, boolean bCalculateLeftRightSide) {<NEW_LINE>if (geom.getType() == Geometry.Type.Polygon && bTestPolygonInterior) {<NEW_LINE>Envelope2D env = new Envelope2D();<NEW_LINE>geom.queryEnvelope2D(env);<NEW_LINE>do...
.getEndXY()) < 0);
416,749
private BatchFinderSchema createBatchFinderSchema(ResourceMethodDescriptor resourceMethodDescriptor) {<NEW_LINE>BatchFinderSchema batchFinder = new BatchFinderSchema();<NEW_LINE>batchFinder.setName(resourceMethodDescriptor.getBatchFinderName());<NEW_LINE>String doc = _docsProvider.<MASK><NEW_LINE>if (doc != null) {<NEW...
getMethodDoc(resourceMethodDescriptor.getMethod());
1,630,275
public void testAsyncBulkheadTimeout() throws Exception {<NEW_LINE>syntheticTaskManager.runTest(() -> {<NEW_LINE>// runTaskWithTimeout has a timeout of 2s<NEW_LINE>// These tasks should run in parallel but should time out after 2s<NEW_LINE>SyntheticTask<Void> task1 = syntheticTaskManager.newTask();<NEW_LINE>task1.onInt...
assertFalse(future2.isDone());
699,495
private Collection<? extends Permissionable> findFolderAssetContainers(final User user, final String hostId, final String orderByParam, final boolean includeArchived, final Optional<String> contentTypeId, final Collection<Object> filterByNameCollection) {<NEW_LINE>try {<NEW_LINE>final Host host = this.hostAPI.find(host...
contentTypeId.get(), user);
1,067,987
public String visitDeclared(DeclaredType type, Void v) {<NEW_LINE>String simpleName = simpleNameForType(type);<NEW_LINE>if (type.getTypeArguments().isEmpty()) {<NEW_LINE>return simpleName;<NEW_LINE>}<NEW_LINE>ImmutableList<String> typeArgumentNames = type.getTypeArguments().stream().map(t -> simpleNameForType(t)).colle...
, typeArgumentNames.get(1));
1,512,105
static <K> KStreamHolder<K> build(final KStreamHolder<K> stream, final StreamSelectKey<K> selectKey, final RuntimeBuildContext buildContext, final PartitionByParamsBuilder paramsBuilder) {<NEW_LINE>final LogicalSchema sourceSchema = stream.getSchema();<NEW_LINE>final QueryContext queryContext = selectKey.getProperties(...
> mapper = params.getMapper();
1,256,788
protected void sortArcs() {<NEW_LINE>int size = 0;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>p[i] = i;<NEW_LINE>rank[i] = 0;<NEW_LINE>ccTp[i] = i;<NEW_LINE>Tree.getNeighborsOf(i).clear();<NEW_LINE>ccTree.removeNode(i);<NEW_LINE>ccTree.addNode(i);<NEW_LINE>size += g.getNeighborsOf(i).size();<NEW_LINE>}<NEW_LINE>as...
nei = g.getNeighborsOf(i);
25,847
private void renderStatus(MolecularAssemblerBlockEntity molecularAssembler, PoseStack ms, MultiBufferSource bufferIn, int combinedLightIn, AssemblerAnimationStatus status) {<NEW_LINE>double centerX = molecularAssembler.getBlockPos().getX() + 0.5f;<NEW_LINE>double centerY = molecularAssembler.getBlockPos().getY() + 0.5f...
Minecraft minecraft = Minecraft.getInstance();
443,253
private void runExecutableNode(final ExecutableNode node) throws IOException {<NEW_LINE>// Collect output props from the job's dependencies.<NEW_LINE>prepareJobProperties(node);<NEW_LINE>node.setStatus(Status.QUEUED);<NEW_LINE>// Attach Ramp Props if there is any desired properties<NEW_LINE>final String jobId = node.ge...
final JobRunner runner = createJobRunner(node);
991,691
private void generateHeaderFile(Hashtable headerHashtable, File nlsFile, String headerPath, HeaderBuffer headerBuffer) throws IOException, FileNotFoundException {<NEW_LINE>if (!headerHashtable.containsKey(headerBuffer.getHeaderName())) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>buffer.append(headerBu...
headerPath + headerBuffer.getHeaderName());
543,258
public void encode(FacesContext context, DataTableRenderer renderer, DataTable table) throws IOException {<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String <MASK><NEW_LINE>String[] cellInfo = params.get(clientId + "_cellInfo").split(",");<NEW_LINE>int rowIndex...
clientId = table.getClientId(context);
82,620
public void recreate(int S_Resource_ID, Timestamp date) {<NEW_LINE>// Calculate Start Day<NEW_LINE>GregorianCalendar cal = new GregorianCalendar();<NEW_LINE>cal.setTime(date);<NEW_LINE>cal.set(Calendar.HOUR, 0);<NEW_LINE>cal.set(Calendar.MINUTE, 0);<NEW_LINE>cal.set(Calendar.SECOND, 0);<NEW_LINE>cal.<MASK><NEW_LINE>if ...
set(Calendar.MILLISECOND, 0);
1,478,133
private boolean attachVolumeToVM(Long zoneId, String restoredVolumeLocation, List<Backup.VolumeInfo> backedUpVolumes, String volumeUuid, VMInstanceVO vm, String datastoreUuid, Backup backup) throws Exception {<NEW_LINE>HypervisorGuru guru = hypervisorGuruManager.getGuru(vm.getHypervisorType());<NEW_LINE>Backup.VolumeIn...
pool.getId(), backup);
1,566,781
protected void internalRemoveOffloadPolicies(AsyncResponse asyncResponse) {<NEW_LINE>validateNamespacePolicyOperation(namespaceName, PolicyName.OFFLOAD, PolicyOperation.WRITE);<NEW_LINE>validatePoliciesReadOnlyAccess();<NEW_LINE>try {<NEW_LINE>namespaceResources().setPoliciesAsync(namespaceName, (policies) -> {<NEW_LIN...
clientAppId(), namespaceName, e);
123,397
private void addGroupingToPanel(JPanel destPanel) {<NEW_LINE>DefaultComboBoxModel<String> m = new DefaultComboBoxModel<>();<NEW_LINE>// Note: position of these elements in the menu *must* match the<NEW_LINE>// corresponding ProxyControl.GROUPING_* values.<NEW_LINE>// $NON-NLS-1$<NEW_LINE>m.addElement(JMeterUtils.getRes...
(JMeterUtils.getResString("grouping_mode"));
824,091
public void loadQueryPrerequisites() throws Exception {<NEW_LINE>if (QUERY_PREREQUISITES_CONFIG.exists()) {<NEW_LINE>Map<String, String> properties = new HashMap<>(loadProperties(QUERY_PREREQUISITES_CONFIG));<NEW_LINE>String factoryName = properties.remove(QUERY_PREREQUISITES_PROPERTY_NAME);<NEW_LINE>checkArgument(!isN...
queryPrerequisitesFactory = queryPrerequisitesFactories.get(factoryName);
753,201
public static void main(String[] args) {<NEW_LINE>final String resultsFolder = "target" + File.separatorChar + "results";<NEW_LINE>final String reportsFolder = "target" + File.separatorChar + "reports";<NEW_LINE>String longTermBenchmarkResultFilename = System.getProperty("longTermBenchmarkResultFile");<NEW_LINE>if (lon...
"number of threads;" + "duration;" + "throughput", longTermBenchmarkResultFilename);
1,426,132
public Node serialize(Map value, Set<Object> serializedObjects, NodeMapper mapper) {<NEW_LINE>Map<StringNode, Node> mappings = new LinkedHashMap<>();<NEW_LINE>Set<Map.Entry<Object, Object>> entries = (Set<Map.Entry<Object, Object>>) value.entrySet();<NEW_LINE>// Iterate over the map entries and populate map entries for...
ObjectNode(mappings, SourceLocation.NONE);
652,650
private void tryAutoInitParaApp() {<NEW_LINE>String rootSecret = null;<NEW_LINE>String confFile = System.getProperty("config.file", "application.conf");<NEW_LINE>if (!CONF.autoInitWithRootAppSecretKey().isBlank()) {<NEW_LINE>rootSecret = CONF.autoInitWithRootAppSecretKey().trim();<NEW_LINE>} else if (!CONF.autoInitWith...
(CONF.autoInitWithParaConfigFile()));
912,004
public Tag toTag(boolean force) {<NEW_LINE>int argSize = items.size();<NEW_LINE>if (argSize == 0)<NEW_LINE>return new ListTag();<NEW_LINE>ListTag tag = new ListTag();<NEW_LINE>if (argSize == 1) {<NEW_LINE>tag.add(items.get(0).toTag(force));<NEW_LINE>return tag;<NEW_LINE>}<NEW_LINE>// figuring out the types<NEW_LINE>Lis...
).getAsDouble())));
1,147,726
protected List<I_M_PriceList_Version> retrieveCustomPLVsToMutate(@NonNull final PriceListId basePriceListId) {<NEW_LINE>final String maxValidFromTypedFilter = I_M_PriceList_Version.Table_Name + "." + I_M_PriceList_Version.COLUMNNAME_ValidFrom + " = ( SELECT max (v." + I_M_PriceList_Version.COLUMNNAME_ValidFrom + ") FRO...
).list(I_M_PriceList_Version.class);
899,490
final DeleteEndpointResult executeDeleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEndpoint");
1,479,321
public PutAssetPropertyValueEntry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>PutAssetPropertyValueEntry putAssetPropertyValueEntry = new P...
().unmarshall(context));
959,793
public static void performMigration(final Context ctx, final Geocache cache, final Waypoint w, final Runnable actionAfterMigration) {<NEW_LINE>if (!needsMigration(w)) {<NEW_LINE>actionAfterMigration.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final CalculatedCoordinateMigrator mig = new CalculatedCoordinateMigrator(cac...
final CalculatedCoordinate cc = new CalculatedCoordinate();
1,571,922
public void init(IFilterConfig filterConfig) throws ServletException {<NEW_LINE>try {<NEW_LINE>// init the filter instance<NEW_LINE>_filterState = FILTER_STATE_INITIALIZING;<NEW_LINE>// LIDB-3598: begin<NEW_LINE>this._filterConfig = filterConfig;<NEW_LINE>if (_eventSource != null && _eventSource.hasFilterListeners()) {...
] { _filterName }), th);
809,778
public <E> void visitCtCase(CtCase<E> caseStatement) {<NEW_LINE>enterCtStatement(caseStatement);<NEW_LINE>if (caseStatement.getCaseExpression() != null) {<NEW_LINE>printer.writeKeyword("case").writeSpace();<NEW_LINE>List<CtExpression<E>> caseExpressions = caseStatement.getCaseExpressions();<NEW_LINE>for (int i = 0; i <...
writeSeparator(",").writeSpace();
358,242
private static AttributedStringBuilder _highlightSyntax(String syntax, StyleResolver resolver, boolean subcommand) {<NEW_LINE>StringBuilder indent = new StringBuilder();<NEW_LINE>for (char c : syntax.toCharArray()) {<NEW_LINE>if (c != ' ') {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>indent.append(c);<NEW_LINE>}<NEW_LINE>Attr...
(indent.length()));
1,722,017
private String mapToMetaCustomModelFields(List<String> fields, String modelName, String searchOperator, boolean multiple, String resultVar) throws ClassNotFoundException {<NEW_LINE>StringBuilder scriptBuilder = new StringBuilder();<NEW_LINE>scriptBuilder.append("def _query = null\n");<NEW_LINE>String varName = Beans.ge...
.class).getVarName(modelName);
575,174
public boolean isStringFieldEqual(int ordinal, int fieldIndex, String testValue) {<NEW_LINE>HollowObjectTypeDataElements currentData;<NEW_LINE>boolean result;<NEW_LINE>do {<NEW_LINE>int numBitsForField;<NEW_LINE>long endByte;<NEW_LINE>long startByte;<NEW_LINE>do {<NEW_LINE>currentData = this.currentDataVolatile;<NEW_LI...
1L << numBitsForField - 1) - 1;
1,223,688
public Regressor transformToOutput(List<OnnxValue> tensor, ImmutableOutputInfo<Regressor> outputIDInfo) {<NEW_LINE>float[]<MASK><NEW_LINE>if (predictions.length != 1) {<NEW_LINE>throw new IllegalArgumentException("Supplied tensor has too many results, predictions.length = " + predictions.length);<NEW_LINE>} else if (pr...
[] predictions = getBatchPredictions(tensor);
221,134
public double[] denoise(double[] data, int mixNumber) {<NEW_LINE>if (mixNumber <= 2) {<NEW_LINE>return data;<NEW_LINE>}<NEW_LINE>int number = data.length;<NEW_LINE>double[] result = new double[number];<NEW_LINE>boolean first = true;<NEW_LINE>boolean last = false;<NEW_LINE>for (int i = 0; i < number - mixNumber; i++) {<...
.add(data[position]);
498,784
public static int[] parse(String param) {<NEW_LINE>Matcher matcher = pattern.matcher(param);<NEW_LINE>if (matcher.matches() == false) {<NEW_LINE>throw new IllegalArgumentException("Invalid mvt formatter parameter [" + param + "]. Must have the form \"zoom/x/y\" or \"zoom/x/y@extent\" or \"zoom/x/y@extent:buffer\" or \"...
4).substring(1));
533,951
public static boolean hasSetter(CompilationInfo info, TypeElement typeElement, VariableElement field, Map<String, List<ExecutableElement>> methods, CodeStyle cs) {<NEW_LINE>CharSequence name = field.getSimpleName();<NEW_LINE>assert name.length() > 0;<NEW_LINE>TypeMirror type = field.asType();<NEW_LINE>boolean isStatic ...
computeSetterName(name, isStatic, cs);
120,591
public boolean isMethodConstrained(Method method, BeanDescriptor beanDescriptor, ClassLoader moduleClassLoader, String moduleUri) {<NEW_LINE>setupGlobalValidationSettings(moduleClassLoader);<NEW_LINE>if (!isExecutableValidationEnabled) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Method> overriddenAndImplementedMe...
method, correspondingProperty.get());
1,201,012
public void intercept(Invocation inv) {<NEW_LINE>Parameter[] parameters = inv.getMethod().getParameters();<NEW_LINE>for (int index = 0; index < parameters.length; index++) {<NEW_LINE>Size size = parameters[index<MASK><NEW_LINE>if (size != null) {<NEW_LINE>Object validObject = inv.getArg(index);<NEW_LINE>if (validObject...
].getAnnotation(Size.class);
236,588
private void paintString(Graphics2D g, int x, int y, int w, int h, int fillStart, int amountFull) {<NEW_LINE>String progressString = progressBar.getString();<NEW_LINE>g.<MASK><NEW_LINE>Point renderLocation = getStringPlacement(g, progressString, x, y, w, h);<NEW_LINE>Rectangle oldClip = g.getClipBounds();<NEW_LINE>if (...
setFont(progressBar.getFont());
719,986
public void writeComplete(int rc, long ledgerId, long entryId, BookieId addr, Object ctx) {<NEW_LINE>if (rc != BKException.Code.OK) {<NEW_LINE>LOG.error("BK error writing entry for ledgerId: {}, entryId: {}, bookie: {}", ledgerId, entryId, addr, BKException.create(rc));<NEW_LINE>if (completed.compareAndSet(false, true)...
processResult(rc, null, null);
122,206
// Get join two collection<NEW_LINE>private static void testUnion() {<NEW_LINE>Set<String> set1 = <MASK><NEW_LINE>Set<String> set2 = Sets.newHashSet("a4");<NEW_LINE>MutableSet<String> mutableSet1 = UnifiedSet.newSetWith("a1", "a2");<NEW_LINE>MutableSet<String> mutableSet2 = UnifiedSet.newSetWith("a4");<NEW_LINE>Collect...
Sets.newHashSet("a1", "a2");
794,768
final ListDeploymentTargetsResult executeListDeploymentTargets(ListDeploymentTargetsRequest listDeploymentTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDeploymentTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,731,913
public static List<CompressedXContent> collectMappings(final ComposableIndexTemplate template, final Map<String, ComponentTemplate> componentTemplates, final String indexName) throws Exception {<NEW_LINE><MASK><NEW_LINE>List<CompressedXContent> mappings = template.composedOf().stream().map(componentTemplates::get).filt...
Objects.requireNonNull(template, "Composable index template must be provided");
549,859
static // and insert would never happen<NEW_LINE>void postRollup(String agentRollupId, long captureTime, Set<String> keys, Set<UUID> uniquenessKeysForDeletion, @Nullable Long nextRollupIntervalMillis, @Nullable PreparedStatement insertNeedsRollup, PreparedStatement deleteNeedsRollup, int needsRollupAdjustedTTL, Session...
.setSet(i++, keys);
1,378,087
public static List<Class> fromInfos(List<PainlessContextClassInfo> infos, Map<String, String> javaNamesToDisplayNames, JavadocExtractor extractor) throws IOException {<NEW_LINE>List<Class> classes = new ArrayList<>(infos.size());<NEW_LINE>for (PainlessContextClassInfo info : infos) {<NEW_LINE>JavadocExtractor.ParsedJav...
parseClass(info.getName());
890,904
final DeleteRemoteAccessSessionResult executeDeleteRemoteAccessSession(DeleteRemoteAccessSessionRequest deleteRemoteAccessSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRemoteAccessSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
invoke(request, responseHandler, executionContext);
1,608,394
private static Pair<List<String>, List<String>> splitCommandline(Artifact paramFile, List<String> args, LinkTargetType linkTargetType) {<NEW_LINE>Preconditions.checkNotNull(paramFile);<NEW_LINE>if (linkTargetType.linkerOrArchiver() == LinkerOrArchiver.ARCHIVER) {<NEW_LINE>// Ar link commands can also generate huge comm...
paramFileArgs = new ArrayList<>();
1,799,802
public void handle(final org.mortbay.jetty.HttpConnection connection) throws IOException, ServletException {<NEW_LINE>final Request request = connection.getRequest();<NEW_LINE>if (request.getMethod().equals("CONNECT")) {<NEW_LINE>final String uri = request<MASK><NEW_LINE>final int c = uri.indexOf(':');<NEW_LINE>final S...
.getUri().toString();
1,822,107
private UserFunctionDescriptor userFunctionDescriptor(Node node) {<NEW_LINE>String statement = (String) node.getProperty(SystemPropertyKeys.statement.name());<NEW_LINE>String name = (String) node.getProperty(<MASK><NEW_LINE>String description = (String) node.getProperty(SystemPropertyKeys.description.name(), null);<NEW...
SystemPropertyKeys.name.name());
1,623,073
public BankOrder mergeBankOrders(Collection<BankOrder> bankOrders) throws AxelorException {<NEW_LINE>if (bankOrders == null || bankOrders.size() <= 1) {<NEW_LINE>throw new AxelorException(TraceBackRepository.CATEGORY_INCONSISTENCY, IExceptionMessage.BANK_ORDER_MERGE_AT_LEAST_TWO_BANK_ORDERS);<NEW_LINE>}<NEW_LINE>this.c...
findByBankOrder(bankOrderToRemove).fetch();
1,595,118
public Optional<LineageVerticesAndEdges> ultimateDestination(String guid) {<NEW_LINE>Vertex queriedVertex = graphHelper.getResult(this::getQueriedVertex, guid, this::handleGetQueriedVertexException);<NEW_LINE>String label = queriedVertex.label();<NEW_LINE>Optional<List<String>> edgeLabelsOptional = getEdgeLabelsForData...
this.lineageGraphQueryHelper.getLineageVertices(destinationsList);
36,408
public void paint(Graphics2D g, double xStart, double xEnd, double y) {<NEW_LINE>Shape clip = g.getClip();<NEW_LINE>final Rectangle2D rectangle = new Rectangle2D.Double(xStart, y - 3, xEnd - xStart, 3);<NEW_LINE>final Rectangle2D waveClip = clip != null ? clip.getBounds2D().createIntersection(rectangle) : rectangle;<NE...
g2d.setComposite(AlphaComposite.SrcOver);
1,003,373
static public void main(String[] args) {<NEW_LINE>FastReader rd = new FastReader();<NEW_LINE>int N = rd.nextInt();<NEW_LINE>Stack<String> stack = new Stack<>();<NEW_LINE>StringBuilder out = new StringBuilder();<NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>String[] Line = rd.nextLine().split(" ");<NEW_LINE>String cmd...
System.out.print(out);
882,586
public static void rotateCCW(GrayI8 image) {<NEW_LINE>if (image.width != image.height)<NEW_LINE>throw new IllegalArgumentException("Image must be square");<NEW_LINE>int w = image.height / 2 + image.height % 2;<NEW_LINE>int h = image.height / 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, h, y0->{<NEW_LINE>f...
[index3] = (byte) tmp0;
463,682
private NameEnvironmentAnswer[] askForTypeFromModules(ModuleBinding clientModule, ModuleBinding[] otherModules, Function<ModuleBinding, NameEnvironmentAnswer> oracle) {<NEW_LINE>if (clientModule != null && clientModule.nameForLookup().length == 0) {<NEW_LINE>NameEnvironmentAnswer answer = oracle.apply(clientModule);<NE...
NameEnvironmentAnswer[otherModules.length + 1];
1,199,570
private void addMessageConfig(Log log, WsdlRequest modelItem) throws MalformedURLException {<NEW_LINE>HttpMessageEntry requestMessage = HttpMessageEntry.Factory.newInstance();<NEW_LINE>requestMessage.addNewMessageContent().setStringValue(modelItem.getRequestContent());<NEW_LINE>requestMessage.setConversationID("1");<NE...
setSenderHostAndPort(requestMessage.getReceiverHostAndPort());
1,492,471
public void execute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) {<NEW_LINE>ProcessEngineConfigurationImpl engineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);<NEW_LINE>ManagementService managementService = engineConfiguration.getMan...
DeleteProcessInstanceBatchConstants.STATUS_FAILED).list();
790,192
private void applyConventions(Project project, TaskContainer tasks, ObjectFactory objects, ProjectLayout layout, GradleDocumentationExtension extension) {<NEW_LINE>TaskProvider<Sync> stageDocs = tasks.register("stageDocs", Sync.class, task -> {<NEW_LINE>// release notes goes in the root of the docs<NEW_LINE>task.from(e...
.class, Category.DOCUMENTATION));
1,176,349
public void onPrepareOptionsMenu(final Menu menu) {<NEW_LINE>final MenuItem scanAction = menu.findItem(R.id.send_coins_options_scan);<NEW_LINE>final PackageManager pm = activity.getPackageManager();<NEW_LINE>scanAction.setVisible(pm.hasSystemFeature(PackageManager.FEATURE_CAMERA) || pm.hasSystemFeature(PackageManager.F...
balance.getValue() != null);
666,396
public void translateLuceneOperator() {<NEW_LINE>if (operator instanceof OLuceneOperator) {<NEW_LINE>OExpression newLeft = new OExpression(-1);<NEW_LINE>newLeft.mathExpression = new OBaseExpression(-1);<NEW_LINE>OBaseIdentifier identifirer = new OBaseIdentifier(-1);<NEW_LINE>((OBaseExpression) newLeft.mathExpression).i...
right = new OExpression(-1);
1,818,372
public void marshall(Vocabulary vocabulary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vocabulary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(vocabulary...
vocabulary.getName(), NAME_BINDING);
348,857
private static void updateShipmentScheduleFromOrder(@NonNull final I_M_ShipmentSchedule shipmentSchedule, @NonNull final I_C_Order order) {<NEW_LINE>shipmentSchedule.setPriorityRule(order.getPriorityRule());<NEW_LINE>final BPartnerLocationAndCaptureId billToLocationId = orderBL.getBillToLocationId(order);<NEW_LINE>BPar...
billToContactId = orderBL.getBillToContactId(order);
1,221,438
final DescribeContainerInstancesResult executeDescribeContainerInstances(DescribeContainerInstancesRequest describeContainerInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeContainerInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
545,167
public ListTagsForResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsForResourceResult listTagsForResourceResult = new ListTagsForResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>J...
String currentParentElement = context.getCurrentParentElement();
1,684,463
public Collection<Diagnosis> diagnose(Collection<Symptom> symptoms) {<NEW_LINE>Collection<Diagnosis> diagnoses = new ArrayList<>();<NEW_LINE>SymptomsTable symptomsTable = SymptomsTable.of(symptoms);<NEW_LINE>SymptomsTable bp = symptomsTable.<MASK><NEW_LINE>if (bp.size() > 1) {<NEW_LINE>// TODO handle cases where multip...
type(SYMPTOM_COMP_BACK_PRESSURE.text());
792,726
private synchronized boolean isTrue(int x, int y, int z, @NotNull World world) {<NEW_LINE>CoordinateKey chunkKey = blockCoordinateToChunkKey(world.getUID(<MASK><NEW_LINE>// Get chunk, load from file if necessary<NEW_LINE>// Get/Load/Create chunkstore<NEW_LINE>ChunkStore check = chunkMap.computeIfAbsent(chunkKey, k -> {...
), x, y, z);
672
public void testUCPAndLibertyConnPool() throws Exception {<NEW_LINE>// first get a UCP connection<NEW_LINE>Connection ucpCon = ucpDS.getConnection();<NEW_LINE>Connection con1 = oracleDS.getConnection();<NEW_LINE>try {<NEW_LINE>// Need to request the second connection async since the getConnection request should hang<NE...
(10, TimeUnit.SECONDS));
1,632,097
private void dbgShrcWriteCacheByAreas(PrintStream out, J9SharedClassConfigPointer sharedClassConfig, String cacheDir, String cacheName) throws CorruptDataException {<NEW_LINE>CacheFileOutputStream fout = createDbgShrcCacheFile(out, sharedClassConfig, cacheDir, cacheName);<NEW_LINE>ShrcConfig config = dbgShrcReadConfig(...
helper.getLineNumberAreaEnd(), false);
656,991
void shutdown() {<NEW_LINE>if (starter != null && starter instanceof RMIConnectorStarter) {<NEW_LINE>((RMIConnectorStarter) starter).stopAndUnexport();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (connObjectName != null) {<NEW_LINE>mMBeanServer.unregisterMBean(connObjectName);<NEW_LINE>connObjectName = null;<NEW_LINE>}<NEW_L...
Level.SEVERE, JMX_INSTANCE_NOT_FOUND_EXCEPTION, ex);