idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
574,935
private static void fetchLatestInfo() throws IOException {<NEW_LINE>URL updateURL = new URL(API);<NEW_LINE>String content = IOUtils.toString(updateURL.openStream(), StandardCharsets.UTF_8);<NEW_LINE>JsonObject updateJson = Json.parse(content).asObject();<NEW_LINE>// compare versions<NEW_LINE>latestVersion = <MASK><NEW_...
updateJson.getString("tag_name", "2.0.0");
1,581
public void registerClasses(final Kryo kryo) {<NEW_LINE>kryo.register(Entity.class, new EntityKryoSerializer());<NEW_LINE>kryo.register(Edge.class, new EdgeKryoSerializer());<NEW_LINE>kryo.register(Properties.class);<NEW_LINE>kryo.register(FreqMap.class, new FreqMapKryoSerializer());<NEW_LINE>kryo.register(HyperLogLogP...
.class, new TypeValueKryoSerializer());
669,350
public int compare1(final PageTreeNode node1, final PageTreeNode node2) {<NEW_LINE>final int cp = viewState.pages.currentIndex;<NEW_LINE>final int viewIndex1 = node1.page.index.viewIndex;<NEW_LINE>final int viewIndex2 = node2.page.index.viewIndex;<NEW_LINE>final boolean v1 = viewState.isNodeVisible(node1, viewState.get...
s1.left, s2.left);
1,609,550
public void export(OutputStream os, boolean signed, String scoreName, boolean compressed) throws Exception {<NEW_LINE>Objects.requireNonNull(os, "Trying to export a score to a null output stream");<NEW_LINE>// Build the ScorePartwise proxy<NEW_LINE>ScorePartwise scorePartwise = PartwiseBuilder.build(score);<NEW_LINE>//...
= new Mxl.Output(os);
155,613
public static void scrollSelectionToVisible(@Nonnull JTable table) {<NEW_LINE>ListSelectionModel selectionModel = table.getSelectionModel();<NEW_LINE>int maxSelectionIndex = selectionModel.getMaxSelectionIndex();<NEW_LINE><MASK><NEW_LINE>final int maxColumnSelectionIndex = Math.max(0, table.getColumnModel().getSelectio...
int minSelectionIndex = selectionModel.getMinSelectionIndex();
396,353
private static ResourceBundle loadBundleClass(String name, String sname, Locale locale, List<String> suffixes, ClassLoader l) {<NEW_LINE>if (l != null && l.getResource(sname + ".class") == null) {<NEW_LINE>// NOI18N<NEW_LINE>// No chance - no base bundle. Don't waste time catching CNFE.<NEW_LINE>return null;<NEW_LINE>}...
MergedBundle(locale, b, master);
30,514
protected Auth directGrantAuth(String username, String password) throws IOException, VerificationException {<NEW_LINE>String authServerBaseUrl = deployment.getAuthServerBaseUrl();<NEW_LINE>HttpPost post = new HttpPost(deployment.getTokenUrl());<NEW_LINE>List<NameValuePair> formparams = new ArrayList<NameValuePair>();<N...
InputStream is = entity.getContent();
877,353
private void scheduleNextBatchAsync() {<NEW_LINE>List<WaitingTask<T, R>> waitingNodes = takeAllWaitingTasksOrFreeLock();<NEW_LINE>if (waitingNodes.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>List<T> commandsInBatch = new ArrayList<>(waitingNodes.size());<NEW_LINE>for (WaitingTask<T, R> waitingNode ...
waitingNode.future.completeExceptionally(e);
1,105,349
private boolean checkCategories(SearchRequest<Amenity> req, PoiRegion region) throws IOException {<NEW_LINE>while (true) {<NEW_LINE>int t = codedIS.readTag();<NEW_LINE>int tag = WireFormat.getTagFieldNumber(t);<NEW_LINE>switch(tag) {<NEW_LINE>case 0:<NEW_LINE>return false;<NEW_LINE>// case OsmandOdb.OsmAndPoiCategories...
subtype = subcats.get(subcatId);
928,665
public void generateNormalAppearance() {<NEW_LINE>PDAnnotationMarkup ink = (PDAnnotationMarkup) getAnnotation();<NEW_LINE>// PDF spec does not mention /Border for ink annotations, but it is used if /BS is not available<NEW_LINE>AnnotationBorder ab = AnnotationBorder.getAnnotationBorder(ink, ink.getBorderStyle());<NEW_L...
cs.lineTo(x, y);
1,094,083
public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {<NEW_LINE>for (int i = 0; i < iterations; ++i) {<NEW_LINE>final long block0 = blocks[blocksOffset++];<NEW_LINE>values[valuesOffset++] = (int) (block0 >>> 52);<NEW_LINE>values[valuesOffset++] = (int) ((block0 >>> 40) & 4...
long block2 = blocks[blocksOffset++];
1,433,263
public static long[] broadcastOutputShape(long[] left, long[] right) {<NEW_LINE>if (left.length == 1 && right.length > 1) {<NEW_LINE>return right;<NEW_LINE>} else if (right.length == 1 && left.length > 1) {<NEW_LINE>return left;<NEW_LINE>}<NEW_LINE>if (containsZeros(left))<NEW_LINE>return left;<NEW_LINE>else if (contai...
.add(left[leftIdx]);
1,150,963
public static void down(GrayS8 input, GrayI8 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input<MASK><NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex + (y / 2) * output.st...
.width - input.width % 2;
663,785
public String render(DataObjectModel model, int index, int size, Map<String, Object> session) {<NEW_LINE>StringWriter buffer = new StringWriter();<NEW_LINE>PrintWriter writer = new PrintWriter(buffer);<NEW_LINE>String visibility = model.isPublicConverter() ? "public" : "";<NEW_LINE>formatter = getCase(model, "formatter...
).getSimpleName() + "} original class using Vert.x codegen.\n");
1,795,542
static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R> Seq<R> zip(Seq<? extends T1> s1, Seq<? extends T2> s2, Seq<? extends T3> s3, Seq<? extends T4> s4, Seq<? extends T5> s5, Seq<? extends T6> s6, Seq<? extends T7> s7, Seq<? extends T8> s8, Seq<? exte...
> it10 = s10.iterator();
1,745,754
public Request<CreateDBParameterGroupRequest> marshall(CreateDBParameterGroupRequest createDBParameterGroupRequest) {<NEW_LINE>if (createDBParameterGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateDBParameterGroupRequest> reques...
<CreateDBParameterGroupRequest>(createDBParameterGroupRequest, "AmazonNeptune");
753,965
private void testClassLevelPermitAll(final String baseUri) throws Exception {<NEW_LINE>LOG.entering(clz, "entered testClassLevelPermitAll");<NEW_LINE>String url = baseUri + "/ClassPermitAll";<NEW_LINE>// create the resource instance to interact with<NEW_LINE>LOG.info("testClassLevelPermitAll about to invoke the resourc...
accept("text/plain").get();
135,297
public static DescribeDcdnDomainWebsocketBpsDataResponse unmarshall(DescribeDcdnDomainWebsocketBpsDataResponse describeDcdnDomainWebsocketBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainWebsocketBpsDataResponse.setRequestId<MASK><NEW_LINE>describeDcdnDomainWebsocketBpsDataResponse.setDomainName(...
(_ctx.stringValue("DescribeDcdnDomainWebsocketBpsDataResponse.RequestId"));
953,990
public void testPostCollectionGenericEntityAsEntity(Map<String, String> param, StringBuilder ret) throws Exception {<NEW_LINE>String endpointAddress = getAddress("bookstore/collections3");<NEW_LINE>WebClient wc = WebClient.create(endpointAddress);<NEW_LINE>wc.accept("application/xml");<NEW_LINE>GenericEntity<List<Book>...
), book.getName());
672,419
protected void download() throws SubscriptionException {<NEW_LINE>log("Downloading");<NEW_LINE>Map map = JSONUtils.decodeJSON(subs.getJSON());<NEW_LINE>Long engine_id = (Long) map.get("engine_id");<NEW_LINE>String search_term = (String) map.get("search_term");<NEW_LINE>String networks = (String) map.get("networks");<NE...
results = result_filter.filter(results);
1,461,167
private AlgorithmBlocks.Stats runCS(int i) {<NEW_LINE>int hit = 0;<NEW_LINE>int miss = 0;<NEW_LINE>List<Integer> path = dataset.getDataset().get(i);<NEW_LINE>TreeSet<Integer> set = new TreeSet<>();<NEW_LINE>Location rloc = new Location("", "");<NEW_LINE>ArrayList<AlgorithmBlocks.StatsItem> items = new ArrayList<Algorit...
= new Location("", "");
741,333
public DocAttachmentInfo mergeDocAttachment(Documentation other) {<NEW_LINE>String description = other.description().orElse(this.description);<NEW_LINE>// NOTE: we prioritize current markdown attachment's params since it has the correct order and correct positions<NEW_LINE>LinkedHashMap<String, String> newParamsMap = n...
).orElse(this.deprecatedDesc);
1,449,743
private static void write_wire(PolylineTrace p_wire, BasicBoard p_board, IdentifierType p_identifier_type, CoordinateTransform p_coordinate_transform, IndentFileWriter p_file) throws java.io.IOException {<NEW_LINE>int layer_no = p_wire.get_layer();<NEW_LINE>app.freerouting.board.Layer board_layer = p_board.layer_struct...
p_file, p_wire.get_fixed_state());
1,222,554
private void onSendCallback(DatastreamRecordMetadata metadata, Exception exception, SendCallback sendCallback, long eventSourceTimestamp, long eventSendTimestamp) {<NEW_LINE>SendFailedException sendFailedException = null;<NEW_LINE>try {<NEW_LINE>if (exception != null) {<NEW_LINE>sendFailedException = createSendFailedEx...
null ? createSendFailedException(e) : sendFailedException;
445,229
public boolean onQueryTextChange(String newText) {<NEW_LINE>Cursor cursor = DatabaseHelper.get().getSearchHistoryCursor(newText);<NEW_LINE>if (cursor.getCount() != 0) {<NEW_LINE>String[] columns = new String[] { TomahawkSQLiteHelper.SEARCHHISTORY_COLUMN_ENTRY };<NEW_LINE>int[] columnTextId = new int[] { android.R.id.te...
.getCursor().close();
1,558,626
protected CostDetailCreateResult createCostForMaterialReceipt(final CostDetailCreateRequest request) {<NEW_LINE>final Quantity qty = request.getQty();<NEW_LINE>final UomId qtyUOMId = qty.getUomId();<NEW_LINE>final InOutLineId receiptInOutLineId = InOutLineId.ofRepoId(request.getDocumentRef().getRecordId());<NEW_LINE>fi...
(request).toCostAmount());
269,176
public void dropMetadataPartitions(List<MetadataPartitionType> metadataPartitions) throws IOException {<NEW_LINE>Set<String> completedIndexes = <MASK><NEW_LINE>Set<String> inflightIndexes = getInflightMetadataPartitions(dataMetaClient.getTableConfig());<NEW_LINE>for (MetadataPartitionType partitionType : metadataPartit...
getCompletedMetadataPartitions(dataMetaClient.getTableConfig());
1,802,324
public void readState(String prefix, Map<String, ?> config) {<NEW_LINE>if (prefix == null) {<NEW_LINE>prefix = "";<NEW_LINE>} else {<NEW_LINE>prefix += this.prefix;<NEW_LINE>}<NEW_LINE>ivDataDirectory = getLogDirectory().getAbsolutePath();<NEW_LINE>Object obj = config.get(prefix + HpelConstants.PURGE_MAXSIZE);<NEW_LINE...
get(prefix + HpelConstants.FILESWITCH_TIME);
1,352,663
public MLModelProperties apply(@NonNull final com.linkedin.ml.metadata.MLModelProperties mlModelProperties) {<NEW_LINE>final MLModelProperties result = new MLModelProperties();<NEW_LINE>result.setDate(mlModelProperties.getDate());<NEW_LINE>result.setDescription(mlModelProperties.getDescription());<NEW_LINE>if (mlModelP...
setTags(mlModelProperties.getTags());
680,607
public boolean optimize(int numIterations) {<NEW_LINE>int iterations;<NEW_LINE>double[] params = new double[maxable.getNumParameters()];<NEW_LINE>double[] gis = new double[maxable.getNumParameters()];<NEW_LINE>double[] old_params = new double[maxable.getNumParameters()];<NEW_LINE>double[] updates = new double[maxable.g...
plusEquals(params, updates, eta);
160,473
protected void installDefaults(AbstractButton b) {<NEW_LINE>super.installDefaults(b);<NEW_LINE>if (!defaults_initialized) {<NEW_LINE>String prefix = getPropertyPrefix();<NEW_LINE>minimumWidth = UIManager.getInt(prefix + "minimumWidth");<NEW_LINE>iconTextGap = FlatUIUtils.getUIInt(prefix + "iconTextGap", 4);<NEW_LINE>ba...
paintShadow = UIManager.getBoolean("Button.paintShadow");
23,925
public int trap(int[] heights) {<NEW_LINE>int left[] = new int[heights.length], right[] = new int[heights.length], max = heights[0], c = 0;<NEW_LINE>for (int i = 0; i < heights.length; i++) {<NEW_LINE>left[i] = Math.max<MASK><NEW_LINE>max = left[i];<NEW_LINE>}<NEW_LINE>max = heights[heights.length - 1];<NEW_LINE>for (i...
(heights[i], max);
17,595
private static Text[][] makeOptionList(OptionSpec option, ColorScheme scheme) {<NEW_LINE>// assumes every option has a short option<NEW_LINE>String shortOption = option.shortestName();<NEW_LINE>// assumes every option has a short and a long option<NEW_LINE>String longOption = option.longestName();<NEW_LINE>if (option.n...
] description = option.description();
1,475,356
private void push(Vector3ic pos, byte value) {<NEW_LINE>byte regenValue = value;<NEW_LINE>Block block = regenWorld.getBlockAt(pos);<NEW_LINE>Vector3i position = new Vector3i(pos);<NEW_LINE>while (regenRules.canSpreadOutOf(block, Side.BOTTOM)) {<NEW_LINE>regenValue = regenRules.propagateValue(regenValue, Side.BOTTOM, bl...
) (regenValue - Chunks.SUNLIGHT_REGEN_THRESHOLD);
1,753,759
private boolean writeDefMethod(CssDefinitionNode definitionNode, TreeLogger logger, JMethod userMethod, SourceWriter sw) throws UnableToCompleteException {<NEW_LINE>String name = userMethod.getName();<NEW_LINE>JClassType classReturnType = userMethod.getReturnType().isClass();<NEW_LINE>List<CssValueNode> params = defini...
writeSimpleGetter(userMethod, returnExpr, sw);
7,397
private void handleReference(OpenTag tnode) {<NEW_LINE>// XXX This is HTML specific - USE TagMetadata!!!<NEW_LINE>// TODO this is a funny way how to figure out if the attribute contains<NEW_LINE>// a file reference or not. The code needs to be generified later.<NEW_LINE>Map<String, ValueCompletion<HtmlCompletionItem>> ...
CharSequence unquotedValue = attr.unquotedValue();
373,770
private ConfigurationDBAdapter fromExternalFile() {<NEW_LINE>// obtain config file name<NEW_LINE>String configFile = context.getProperties().getProperty(ESPERIO_DB_CONFIG_FILE);<NEW_LINE>if (configFile == null) {<NEW_LINE>String message = "Required initialization property '" + ESPERIO_DB_CONFIG_FILE + "' is not provide...
throw new RuntimeException(message, ex);
1,397,227
public void scrutinize(Statement statement, EntityIdValue entityId, boolean added) {<NEW_LINE>if (!added) {<NEW_LINE>// TODO support for deleted statements<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Snak mainSnak = statement<MASK><NEW_LINE>if (!(mainSnak instanceof ValueSnak)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Value mai...
.getClaim().getMainSnak();
843,497
private final I_C_Order createCompesationOrder(@NonNull final I_C_Flatrate_Term currentTerm, @NonNull final I_C_Contract_Change changeConditions, final Timestamp changeDate) {<NEW_LINE>final I_C_OrderLine currentTermOl = currentTerm.getC_OrderLine_Term();<NEW_LINE>final I_C_Order currentTermOrder = currentTermOl.getC_O...
.build().execute();
1,055,769
public static void radixSort2(long[] data, long[] copy, int[] histogram, int length, int shift) {<NEW_LINE>int hlen = Math.min(HIST_SIZE, histogram.length - 1);<NEW_LINE>int dlen = Math.min(length, Math.min(data.length, copy.length));<NEW_LINE>Arrays.fill(histogram, 0, hlen, 0);<NEW_LINE>long loMask = 0xFFL << shift;<N...
histogram, length, shift + RADIX);
949,145
private ClientMessage invokeGetInternal(List<Member> excludedAddresses, HazelcastException lastException, Member target) {<NEW_LINE>if (target == null) {<NEW_LINE>throw lastException != null ? lastException : new NoDataMemberInClusterException("Cannot invoke operations on a CRDT because the cluster does not contain any...
invokeGetInternal(excludedAddresses, e, newTarget);
1,357,747
public long handle(Emulator<?> emulator) {<NEW_LINE><MASK><NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>int start = context.getIntArg(2);<NEW_LINE>int length = context.getIntArg(3);<NEW_LINE>Pointer buf = context.getPointerArg(4);<NEW_LINE>ByteArray array = getObject(object.toIntPeer());<NEW_LINE>...
RegisterContext context = emulator.getContext();
1,237,884
protected void doExecute(Task task, ImportDanglingIndexRequest importRequest, ActionListener<AcknowledgedResponse> importListener) {<NEW_LINE>findDanglingIndex(importRequest, new ActionListener<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponse(IndexMetadata indexMetaDataToImport) {<NEW_LINE>// This fla...
.getIndex().getName();
1,316,305
public static // SqlLiteral<NEW_LINE>LocalDateTime timestampAdd(String unit, Long interval, LocalDateTime datetime_expr) {<NEW_LINE>if (unit == null || interval == null || datetime_expr == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// MICROSECOND, SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or YEAR.<NEW_LIN...
datetime_expr.plusMonths(3 * interval);
374,987
protected static void export(final Subscription subs) {<NEW_LINE>Utils.execSWTThread(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>FileDialog dialog = new FileDialog(Utils.findAnyShell(), SWT.SYSTEM_MODAL | SWT.SAVE);<NEW_LINE>dialog.setFilterPath(TorrentOpener.getFilterPa...
setFilterNames(VuzeFileHandler.getVuzeFileFilterExtensions());
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...
item = stack.getStackItem(0);
1,563,122
protected GoVisitor buildGoVisitor(@NotNull ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new GoVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitVarDefinition(@NotNull GoVarDefinition o) {<NEW_LINE>if (o.isBlank())<NEW_LINE>return;<NEW_LINE>GoCompositeElement va...
.getVarAssign().getStartOffsetInParent();
1,507,416
public Map<String, Set<Map<String, List<String>>>> convertPolicyToRoleMap(List<IamPolicySearchResult> iamPolicySearchResults) {<NEW_LINE>logger.atInfo().log("Converting IAM policies to role resource binding map.");<NEW_LINE>Map<String, Set<Map<String, List<String>>>> map = new HashMap<String, Set<Map<String, List<Strin...
resourceToMembersMap.put(resouce, members);
55,761
public void accept(ShardedRequests<TReq, TItem> shardedRequests, Row row) {<NEW_LINE>for (int i = 0; i < sourceInfoExpressions.size(); i++) {<NEW_LINE>sourceInfoExpressions.get(i).setNextRow(row);<NEW_LINE>}<NEW_LINE>if (hasSourceUriFailure.test(shardedRequests)) {<NEW_LINE>// source uri failed processing (reading)<NEW...
sizeEstimate = estimateRowSize.applyAsLong(row);
1,549,363
private boolean interpreterCall() {<NEW_LINE>boolean bypassedInstalledCode = false;<NEW_LINE>if (isValid()) {<NEW_LINE>// Native entry stubs were deoptimized => reinstall.<NEW_LINE><MASK><NEW_LINE>bypassedInstalledCode = true;<NEW_LINE>}<NEW_LINE>ensureInitialized();<NEW_LINE>int intCallCount = this.callCount;<NEW_LINE...
runtime().bypassedInstalledCode(this);
913,293
private JPanel parallelTab(final ComponentAssembly boosters) {<NEW_LINE>JPanel motherPanel = new JPanel(new MigLayout("fill"));<NEW_LINE>// radial distance method<NEW_LINE>JLabel radiusMethodLabel = new JLabel(trans.get("RocketComponent.Position.Method.Radius.Label"));<NEW_LINE>motherPanel.add(radiusMethodLabel, "align...
motherPanel.add(radiusLabel, "align left");
1,771,913
public static int executeShell(String taskCommand, long timeout, Map<String, String> env, String errorFilePath, String standardFilePath) throws IOException, InterruptedException {<NEW_LINE>LOG.info("Executing command: " + taskCommand);<NEW_LINE>String executablePath = taskCommand.trim().split(" ")[0];<NEW_LINE>File exe...
redirectError(ProcessBuilder.Redirect.INHERIT);
236,430
public void marshall(FieldStats fieldStats, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fieldStats == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fieldStats.getMin(), MIN_BINDING);<NEW_LINE>protocolMa...
fieldStats.getSum(), SUM_BINDING);
1,676,444
public static ListEmailVerificationResponse unmarshall(ListEmailVerificationResponse listEmailVerificationResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEmailVerificationResponse.setRequestId(_ctx.stringValue("ListEmailVerificationResponse.RequestId"));<NEW_LINE>listEmailVerificationResponse.setTotalItemNum<MASK><N...
(_ctx.integerValue("ListEmailVerificationResponse.TotalItemNum"));
345,920
public static byte[] convertDate11(Timestamp v) {<NEW_LINE>ByteArrayOutputStream bb = new ByteArrayOutputStream(12 + 1);<NEW_LINE>LittleEndianDataOutputStream out = new LittleEndianDataOutputStream(bb);<NEW_LINE>try {<NEW_LINE>if (isZero(v)) {<NEW_LINE>return new byte[] { 0 };<NEW_LINE>}<NEW_LINE>if (v instanceof Origi...
writeByte(v.getMinutes());
1,790,444
public static String makeConcreteConstructorProxy(ClassWriter cw, PositionAware initPosition, boolean hasRuby, ConcreteJavaReifier cjr, Class[] ctorTypes, boolean nested) {<NEW_LINE>String sig = hasRuby ? sig(void.class, cjr.join(ctorTypes, Ruby.class, RubyClass.class)) : sig(void.class, ctorTypes);<NEW_LINE>SkinnyMeth...
, ci(Ruby.class));
1,264,590
private CompletableFuture<Void> processScale(String scope, String stream, int numSegments, VersionedMetadata<EpochTransitionRecord> etr, EpochRecord activeEpoch, OperationContext context, long requestId) {<NEW_LINE>// First reset the existing epoch transition (any submitted but unattempted scale<NEW_LINE>// request is ...
debug("{} Scaling stream to update minimum number of segments to {}", requestId, numSegments);
1,518,792
protected double parseStringToDouble(String text) {<NEW_LINE>if (text.endsWith("Mb/s")) {<NEW_LINE>double value = Double.parseDouble(text.replaceAll("Mb/s", ""));<NEW_LINE>return value * 60 * 1024 * 1024;<NEW_LINE>} else if (text.endsWith("Gb/s")) {<NEW_LINE>double value = Double.parseDouble(text.replaceAll("Gb/s", "")...
* 60 * 1024 * 1024 * 8;
585,232
protected void masterOperation(Task task, Request request, ClusterState clusterState, ActionListener<AcknowledgedResponse> listener) {<NEW_LINE>XPackPlugin.checkReadyForXPackCustomMetadata(clusterState);<NEW_LINE>// set headers to run transform as calling user<NEW_LINE>Map<String, String> filteredHeaders = ClientHelper...
String transformId = config.getId();
783,562
protected TrimResult result(RelNode r, final Mapping mapping) {<NEW_LINE>final RexBuilder rexBuilder = relBuilder.getRexBuilder();<NEW_LINE>for (final CorrelationId correlation : r.getVariablesSet()) {<NEW_LINE>r = r.accept(new CorrelationReferenceFinder() {<NEW_LINE><NEW_LINE>protected RexNode handle(RexFieldAccess fi...
(RexCorrelVariable) fieldAccess.getReferenceExpr();
364,432
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) {<NEW_LINE>// most common case<NEW_LINE>if (!doesFileExist(binaryFileName, qualifiedPackageName, qualifiedBinaryFileName...
externalAnnotationPath, fileNameWithoutExtension, this.annotationZipFile);
106,081
public Maybe<Symbol> parse(Symbol current, Parser parser) {<NEW_LINE>if (!parser.moveNext(1).isType(SymbolType.Whitespace))<NEW_LINE>return Symbol.nothing;<NEW_LINE>String option = parseOption(parser);<NEW_LINE>if (!parser.getCurrent().isType(SymbolType.Whitespace))<NEW_LINE>return Symbol.nothing;<NEW_LINE>current.add(...
return new Maybe<>(current);
530,511
private Properties synthesizeSpringComponents() {<NEW_LINE>Properties p = new Properties();<NEW_LINE>List<Entry<Type, List<Type>>> components = ts.scanForSpringComponents();<NEW_LINE>List<Entry<Type, List<Type>>> filteredComponents = filterOutNestedConfigurationTypes(components);<NEW_LINE>for (Entry<Type, List<Type>> f...
p.store(baos, "");
1,395,581
void updateFromBuffer(BufferedImage bimg, Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan) {<NEW_LINE>PixelGetter getter = getGetter(format);<NEW_LINE>PixelConverter converter = PixelUtils.getConverter(getter, setter);<NEW_LINE>if (PrismSettings.debug) {<NEW_LI...
+ srcx * getter.getNumElements();
1,703,162
public void updateSearchItemQA() {<NEW_LINE>if (mQa != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// render question and answer<NEW_LINE>TemplateRenderOutput qa = getCard().render_output(true, true);<NEW_LINE>// Render full question / answer if the bafmt (i.e. "browser appearance") setting forced blank result<NEW_LIN...
substring(q.length());
1,042,060
public void ensureUOMsAreNotNull(@NonNull final InvoiceId invoiceId) {<NEW_LINE>final IProductBL productBL = Services.get(IProductBL.class);<NEW_LINE>final IInvoiceDAO invoiceDAO = Services.get(IInvoiceDAO.class);<NEW_LINE>// // TODO tbp: create this method!<NEW_LINE>final List<I_C_InvoiceLine> <MASK><NEW_LINE>for (fin...
lines = invoiceDAO.retrieveLines(invoiceId);
705,638
public String toCss() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (bold.isPresent()) {<NEW_LINE>if (bold.get()) {<NEW_LINE>sb.append("-fx-font-weight: bold;");<NEW_LINE>} else {<NEW_LINE>sb.append("-fx-font-weight: normal;");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (italic.isPresent()) {<NEW_LINE>if (itali...
+ cssColor(color) + ";");
1,080,649
private CMSEncryptedData doGenerate(CMSTypedData content, OutputEncryptor contentEncryptor) throws CMSException {<NEW_LINE>AlgorithmIdentifier encAlgId;<NEW_LINE>ASN1OctetString encContent;<NEW_LINE>ByteArrayOutputStream bOut = new ByteArrayOutputStream();<NEW_LINE>try {<NEW_LINE>OutputStream cOut = contentEncryptor.ge...
getContentType(), encAlgId, encContent);
102,137
private void printStats() {<NEW_LINE>if (snapshotList.size() >= 10) {<NEW_LINE>Long[] begin = snapshotList.getFirst();<NEW_LINE>Long[] end = snapshotList.getLast();<NEW_LINE>final long sendTps = (long) (((end[1] - begin[1]) / (double) (end[0] - begin[0])) * 1000L);<NEW_LINE>final long sendMps = (long) (((end[3] - begin...
3] - begin[3]);
649,868
public FloatBuffer readFloatBuffer(String name, FloatBuffer defVal) throws IOException {<NEW_LINE>try {<NEW_LINE>Element tmpEl;<NEW_LINE>if (name != null) {<NEW_LINE>tmpEl = findChildElement(currentElem, name);<NEW_LINE>} else {<NEW_LINE>tmpEl = currentElem;<NEW_LINE>}<NEW_LINE>if (tmpEl == null) {<NEW_LINE>return defV...
(Float.parseFloat(s));
637,776
private void updateFutvars(Propagator<?> p, Element elt, int i) {<NEW_LINE>assert (p.getVar(elt.ws[i]).isInstantiated());<NEW_LINE>// look for another free and unwatched variable<NEW_LINE>assert i == 0 || i == 1;<NEW_LINE>int w = next(p, elt.ws[i], elt<MASK><NEW_LINE>// if it could find one<NEW_LINE>if (w != elt.ws[i])...
.ws[1 - i]);
633,597
public static Map<String, Object> render(final Context velocityContext, final PageMode mode, final ContainerRaw containerRaw) {<NEW_LINE>final Map<String, Object> rendered = Maps.newHashMap();<NEW_LINE>for (final String uuid : containerRaw.getContentlets().keySet()) {<NEW_LINE>final VelocityResourceKey key = new Veloci...
("dotJSON", new DotJSON());
1,152,124
// snippet-end:[s3.java2.s3_bucket_ops.create_bucket]<NEW_LINE>public static void performOperations(S3Client s3, String bucket) {<NEW_LINE>// snippet-start:[s3.java2.s3_bucket_ops.list_bucket]<NEW_LINE>// List buckets<NEW_LINE>ListBucketsRequest listBucketsRequest = ListBucketsRequest.builder().build();<NEW_LINE>ListBu...
listBucketsResponse = s3.listBuckets(listBucketsRequest);
1,831,639
public static ArrayList<Box> createStackDP(Box[] boxes, Box bottom, HashMap<Box, ArrayList<Box>> stack_map) {<NEW_LINE>if (bottom != null && stack_map.containsKey(bottom)) {<NEW_LINE>return (ArrayList<Box>) stack_map.<MASK><NEW_LINE>}<NEW_LINE>int max_height = 0;<NEW_LINE>ArrayList<Box> max_stack = null;<NEW_LINE>for (...
get(bottom).clone();
844,537
private void startSingleBackupTask(String taskToken, SingleBackupTaskConfig config) {<NEW_LINE>if (config.exportMode() && !supportsApkExport()) {<NEW_LINE>notifyBackupTaskStatusChanged(BackupTaskStatus.queued(taskToken, config));<NEW_LINE>notifyBackupTaskStatusChanged(BackupTaskStatus.inProgress(taskToken<MASK><NEW_LIN...
, config, 0, 1));
251,332
static void createJsonDatabase() {<NEW_LINE>final var pathToJsonFile = JSON.resolve("complex1.json");<NEW_LINE>final var databaseFile = Constants.SIRIX_DATA_LOCATION.resolve("json-database");<NEW_LINE>if (Files.exists(databaseFile))<NEW_LINE>Databases.removeDatabase(databaseFile);<NEW_LINE>final var dbConfig = new Data...
manager = database.openResourceManager("resource");
1,278,558
public List<? extends Location> findImplementations(TextDocumentPositionParams param, IProgressMonitor monitor) {<NEW_LINE>List<Location> locations = null;<NEW_LINE>IJavaElement elementToSearch = null;<NEW_LINE>ITypeRoot typeRoot = null;<NEW_LINE>IRegion region = null;<NEW_LINE>try {<NEW_LINE>boolean returnCompilationU...
elementToSearch, typeRoot.getJavaProject());
519,557
private void writeHandleXMIFlattenedNodes(PrintWriter out, String indent, ModelElement element, boolean elements, boolean nillable, String nameVar) {<NEW_LINE>if (element.xmiFlattenType != null) {<NEW_LINE>// Attribute indentation has an extra level. writeHandleAttribute<NEW_LINE>// already does that, so we only need ...
, (ModelElement) node, object);
873,866
public static GalenActionMutateArguments parse(String[] args) {<NEW_LINE>args = ArgumentsUtils.processSystemProperties(args);<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("i", "include", true, "Tags for sections that should be included in test run");<NEW_LINE>options.addOption("e", "exclude", tr...
"h", "htmlreport", true, "Path for html output report");
1,313,593
public int compareTo(final DatabaseVersion version) {<NEW_LINE>// Each BinNavi version is made from three parts:<NEW_LINE>// - Main Version Number<NEW_LINE>// - Sub Version Number<NEW_LINE>// - Build Version number<NEW_LINE>final String[] naviSplit = this.version.split("\\.");<NEW_LINE>final String[] dbSplit = version....
.parseInt(dbSplit[2]);
1,834,476
private void initVirtualTransformations() {<NEW_LINE>// Note the use of reverseOrder() comparator. This iteration order allows for efficient<NEW_LINE>// construction of chained transformations later on.<NEW_LINE>// incoming transformations<NEW_LINE>ImmutableSortedMap.Builder<String, SimpleTransformation> virtualIncomin...
put(virtualName, transformation)));
432,776
public double score(Mention antecedent, Mention anaphor, Counter<String> antecedentFeatures, Counter<String> anaphorFeatures, Counter<String> pairFeatures, Map<Integer, SimpleMatrix> antecedentCache, Map<Integer, SimpleMatrix> anaphorCache) {<NEW_LINE>SimpleMatrix antecedentVector = NARepresentation;<NEW_LINE>if (antec...
.get(i + 1));
1,238,828
public void writeIndex(IndexingValue indexingValue) throws Exception {<NEW_LINE>synchronized (FIELD_LABEL_TYPE) {<NEW_LINE>boolean create = true;<NEW_LINE>File indexDir = new File(getIndexPath());<NEW_LINE>if (!indexDir.exists()) {<NEW_LINE>indexDir.mkdirs();<NEW_LINE>} else {<NEW_LINE>String[<MASK><NEW_LINE>if (childr...
] children = indexDir.list();
579,736
public void handleMessage(int group, byte cmd1a, Msg msg, DeviceFeature f, String fromPort) {<NEW_LINE>byte cmd = 0x00;<NEW_LINE>byte cmd2 = 0x00;<NEW_LINE>try {<NEW_LINE>cmd = msg.getByte("Cmd");<NEW_LINE>cmd2 = msg.getByte("command2");<NEW_LINE>} catch (FieldException e) {<NEW_LINE>logger.debug("{} no cmd found, drop...
publish(oc, StateChangeType.CHANGED);
1,217,361
private DocumentLayoutElementDescriptor.Builder layoutElement(@NonNull final I_AD_UI_Element uiElement) {<NEW_LINE>logger.trace("Building layout element for {}", uiElement);<NEW_LINE>if (!uiElement.isActive()) {<NEW_LINE>logger.trace("Skip building layout element for {} because it's not active", uiElement);<NEW_LINE>re...
trace("Built layout element for {}: {}", uiElement, layoutElementBuilder);
1,807,633
public static EntityResolver createEntityResolver() {<NEW_LINE>return new EntityResolver() {<NEW_LINE><NEW_LINE>public InputSource resolveEntity(final String publicId, final String systemId) {<NEW_LINE>if (publicId.equals(DTD_PROJECT_DOCUMENT_1_0_EN)) {<NEW_LINE>final InputStream in = ResourceXMLParser.class.<MASK><NEW...
getClassLoader().getResourceAsStream(PROJECT_DTD_RESOURCE_PATH);
863,867
// The Main function<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int number_of_nodes, source;<NEW_LINE>Scanner scanner = new Scanner(System.in);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>number_of_nodes = scanner.nextInt();<NEW_LINE>int[][] adjacency_matrix = new int[number_of_nodes + 1][number_of_nodes + ...
System.out.println("Enter the number of nodes in the graph");
322,865
public Map<Event, Position> updateMotionState(DeviceState deviceState, Position position, boolean newMotion) {<NEW_LINE>Map<Event, Position> result = null;<NEW_LINE>Boolean oldMotion = deviceState.getMotionState();<NEW_LINE>long currentTime = position.getFixTime().getTime();<NEW_LINE>if (newMotion != oldMotion) {<NEW_L...
calculateDistance(motionPosition, position, false);
1,853,508
private static void zip(String destFile, String directory, boolean storeOnly) throws IOException {<NEW_LINE>ZipOutputStream zipOut = new ZipOutputStream(Files.newOutputStream(Paths.get(destFile)));<NEW_LINE>if (storeOnly) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>zipOut.setLevel(Deflater.BEST_COMPRESSION);<NEW_LINE>Path ba...
zipOut.setMethod(ZipOutputStream.STORED);
1,763,699
public void drawTranslate(UGraphic ug, UTranslate translate1, UTranslate translate2) {<NEW_LINE>final Snake snake = Snake.create(skinParam(), getInLinkRenderingColor(), Arrows.asToDown()).withLabel(textBlock, HorizontalAlignment.LEFT);<NEW_LINE>final Point2D p1 = pos1.getTranslated(gpoint1.getPoint2D());<NEW_LINE>final...
mp1a.getX(), middle);
663,651
public DescribeTrunkInterfaceAssociationsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeTrunkInterfaceAssociationsResult describeTrunkInterfaceAssociationsResult = new DescribeTrunkInterfaceAssociationsResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
int originalDepth = context.getCurrentDepth();
205,444
private List<RebaseTodoLine> prepareCommand(ObjectId head) throws GitException, IOException {<NEW_LINE>Repository repository = getRepository();<NEW_LINE><MASK><NEW_LINE>RevWalk walk = new RevWalk(or);<NEW_LINE>List<RevCommit> commits = new ArrayList<>(revisions.length);<NEW_LINE>for (String rev : revisions) {<NEW_LINE>...
ObjectReader or = repository.newObjectReader();
903,846
public static ListFirewallRulesResponse unmarshall(ListFirewallRulesResponse listFirewallRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFirewallRulesResponse.setRequestId(_ctx.stringValue("ListFirewallRulesResponse.RequestId"));<NEW_LINE>listFirewallRulesResponse.setPageNumber(_ctx.integerValue("ListFirewallRu...
("ListFirewallRulesResponse.FirewallRules[" + i + "].RuleProtocol"));
489,475
public void execute(String sql, Object[] params) throws IOException {<NEW_LINE>try {<NEW_LINE>final net.rim.device.api.database.Statement statement = db.createStatement(sql);<NEW_LINE>statement.prepare();<NEW_LINE>if (params != null) {<NEW_LINE>for (int i = 0; i < params.length; i++) {<NEW_LINE>Object p = params[i];<NE...
, (byte[]) p);
1,588,009
public void onAnimationStart(Animation animation) {<NEW_LINE>ListView lv = (ListView) parent;<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>HashMap<String, String> item = (HashMap<String, String>) lv.getItemAtPosition(position);<NEW_LINE>Log.d(TAG, "Item clicked " + lv.getItemAtPosition(position) + item.get("uuid"))...
checkForcedEnglish(xdrip.getAppContext());
923,518
private CompletableFuture<UaObjectNode> createObjectNodeFromBaseAttributes(NodeId nodeId, List<DataValue> baseAttributeValues) {<NEW_LINE>Set<AttributeId> remainingAttributes = Sets.difference(AttributeId.OBJECT_ATTRIBUTES, AttributeId.BASE_ATTRIBUTES);<NEW_LINE>CompletableFuture<ReadResponse> <MASK><NEW_LINE>Completab...
attributesFuture = readAttributes(nodeId, remainingAttributes);
1,844,908
public SQLStatement parseCreateFullTextStatement() {<NEW_LINE>Lexer.SavePoint mark = lexer.mark();<NEW_LINE>accept(Token.CREATE);<NEW_LINE>accept(Token.FULLTEXT);<NEW_LINE>if (lexer.identifierEquals(FnvHash.Constants.CHARFILTER)) {<NEW_LINE>lexer.nextToken();<NEW_LINE>return parseFullTextCharFilter();<NEW_LINE>} else i...
"TODO " + lexer.info());
1,806,530
public Object execute(String className, String method, Object... params) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {<NEW_LINE>LOGGER.error("Start");<NEW_LINE>PluginManager.getInstance().initClassLoader(appClassLoader, protectionDomain...
params[i].getClass();
259,302
private byte[] decryptData(byte[] iv, byte[] cipherText, int offset, int count) throws MicrosoftDataEncryptionException {<NEW_LINE>assert (cipherText != null);<NEW_LINE>assert (iv != null);<NEW_LINE>byte[] plainText = null;<NEW_LINE>// key to be used for decryption<NEW_LINE>SecretKeySpec skeySpec = new SecretKeySpec(co...
Cipher.DECRYPT_MODE, skeySpec, ivector);
1,429,437
private static Request prepareReindexRequest(ReindexRequest reindexRequest, boolean waitForCompletion) {<NEW_LINE>String endpoint = new EndpointBuilder().addPathPart("_reindex").build();<NEW_LINE>Request request = new Request(HttpMethod.POST.name(), endpoint);<NEW_LINE>Params params = new Params(request).withWaitForCom...
(reindexRequest.getMaxDocs()));