idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
858,241
void assertIsSorted(AssertionInfo info, Failures failures, Object array) {<NEW_LINE>assertNotNull(info, array);<NEW_LINE>if (comparisonStrategy instanceof ComparatorBasedComparisonStrategy) {<NEW_LINE>// instead of comparing array elements with their natural comparator, use the one set by client.<NEW_LINE>Comparator<?>...
(info, shouldHaveMutuallyComparableElements(array));
1,013,369
public static void writeCustomAttributes(Collection<List<ExtensionAttribute>> attributes, XMLStreamWriter xtw, Map<String, String> namespaceMap, List<ExtensionAttribute>... blackLists) throws XMLStreamException {<NEW_LINE>for (List<ExtensionAttribute> attributeList : attributes) {<NEW_LINE>if (attributeList != null && ...
), attribute.getNamespace());
1,066,708
protected boolean allSubmittedJobsRejected(JobAcquisitionContext context) {<NEW_LINE>for (Map.Entry<String, AcquiredJobs> acquiredJobsForEngine : context.getAcquiredJobsByEngine().entrySet()) {<NEW_LINE>String engineName = acquiredJobsForEngine.getKey();<NEW_LINE>List<List<String>> acquiredJobBatches = acquiredJobsForE...
getRejectedJobsByEngine().get(engineName);
1,422,782
Optional<AbstractOAuth2AuthenticationProvider> parseStateFromRequest(@NotNull String state) {<NEW_LINE>if (state == null || state.trim().equals("")) {<NEW_LINE>logger.<MASK><NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>String[] topFields = state.split("~", 2);<NEW_LINE>if (topFields.length != 2) {<NEW_LINE>log...
log(Level.INFO, "No state present in request");
906,095
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public Response indexSearch(@Context HttpServletRequest request, @Context final HttpServletResponse response, @PathParam("query") String query, @PathParam("sortby") String sortBy, @PathParam("limit") int limit, @PathParam("offset") int offset, @PathParam("type") String typ...
, cs.getIdentifier()));
1,261,721
private void renderCornerAxes(GLAutoDrawable drawable) {<NEW_LINE>final GL2 gl = drawable.getGL().getGL2();<NEW_LINE>gl.glLineWidth(4);<NEW_LINE>float ar = (float) xSize / ySize;<NEW_LINE>float size = 0.1f;<NEW_LINE>float size2 = size / 2;<NEW_LINE>float fromEdge = 0.8f;<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glTransl...
glColor3f(1, 0, 0);
1,669,022
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException {<NEW_LINE>if (!(example instanceof Catalog)) {<NEW_LINE>throw new UnexpectedLiquibaseException("Unexpected example type: " + example.getClass().getName());<NEW_LINE>}<NEW_LINE>Da...
Catalog catalog = new Catalog(potentialCatalogName);
1,082,103
private void output(final LazyElementCell elementCell, final Properties aggregatedProperties, final List<LazyElementCell> output) {<NEW_LINE>if (null == aggregatedProperties) {<NEW_LINE>if (null != elementCell) {<NEW_LINE>output.add(elementCell);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>final Cell firstCell...
.getTagArray(firstCell), 0);
1,308,262
public void updateContractStatusInOrder(final I_C_Flatrate_Term term) {<NEW_LINE>final IOrderDAO orderDAO = Services.get(IOrderDAO.class);<NEW_LINE>final IContractsDAO contractsDAO = Services.get(IContractsDAO.class);<NEW_LINE>final ISubscriptionBL subscriptionBL = Services.get(ISubscriptionBL.class);<NEW_LINE>final Or...
getById(orderId, I_C_Order.class);
1,036,583
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_INDEX, new ColumnMeta(COLUMN_INDEX, "int(11)", false, true));<NEW_LINE>columnsType.put(COLUMN_INDEX, Fields.FIELD_TYPE_LONG);<NEW_LINE>columns.put(COLUMN_CLUSTER, new ColumnMeta(COLUMN_CLUSTER, "varchar(20)", false));<NEW_LINE>columnsType.put(COLUMN_CLUST...
put(COLUMN_END_TYPE, Fields.FIELD_TYPE_VAR_STRING);
250,283
static ASelectableCondition load(final XMLElement element) {<NEW_LINE>final Object attr = AttributeConditionController.toAttributeObject(element.getAttribute(ATTRIBUTE, null));<NEW_LINE>Object value = element.<MASK><NEW_LINE>if (value == null) {<NEW_LINE>final String spec = element.getAttribute(CompareConditionAdapter....
getAttribute(CompareConditionAdapter.VALUE, null);
929,941
public CompletableFuture<Void> start(String[] args) {<NEW_LINE>state.set(<MASK><NEW_LINE>boolean create = true;<NEW_LINE>if (args.length == 0) {<NEW_LINE>engThread = new DbgModelClientThreadExecutor(() -> DbgModel.debugCreate());<NEW_LINE>} else {<NEW_LINE>String remoteOptions = String.join(" ", args);<NEW_LINE>engThre...
DbgState.STARTING, Causes.UNCLAIMED);
631,636
private static Pipeline substitutePipeline(String id, ElasticsearchParseException e) {<NEW_LINE>String tag = e.getHeaderKeys().contains("processor_tag") ? e.getHeader("processor_tag").get(0) : null;<NEW_LINE>String type = e.getHeaderKeys().contains("processor_type") ? e.getHeader("processor_type").get(0) : "unknown";<N...
+ e.getDetailedMessage() + "]";
1,359,612
public static long addMonths(final long micros, int months) {<NEW_LINE>if (months == 0) {<NEW_LINE>return micros;<NEW_LINE>}<NEW_LINE>int y = Timestamps.getYear(micros);<NEW_LINE>boolean l = Timestamps.isLeapYear(y);<NEW_LINE>int m = getMonthOfYear(micros, y, l);<NEW_LINE>int _y;<NEW_LINE>int _m = m - 1 + months;<NEW_L...
micros < 0 ? 1 : 0);
65,860
public void listOrder() {<NEW_LINE>String sql = new String("SELECT o.C_Order_ID " + "FROM C_Order o " + "WHERE o.IsSOTrx='Y' " + "AND o.Processed = 'N' " + "AND o.AD_Client_ID = ? " + "AND o.C_POS_ID = ? " + "AND o.SalesRep_ID = ? " + "ORDER BY o.Updated");<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>...
"SubOrder.listOrder: " + e + " -> " + sql);
897,676
// continue to trace the request that has been determined to be sampled on previous nodes<NEW_LINE>@Override<NEW_LINE>public Trace continueTraceObject(final TraceId traceId) {<NEW_LINE>// TODO need to modify how to bind a datasender<NEW_LINE>// always set true because the decision of sampling has been made on previous...
final ActiveTraceHandle handle = registerActiveTrace(traceRoot);
1,394,698
protected DeploymentManager createPippoDeploymentManager() {<NEW_LINE>DeploymentInfo info = Servlets.deployment();<NEW_LINE>info.setDeploymentName("Pippo");<NEW_LINE>info.setClassLoader(this.<MASK><NEW_LINE>info.setContextPath(getSettings().getContextPath());<NEW_LINE>info.setIgnoreFlush(true);<NEW_LINE>// inject appli...
getClass().getClassLoader());
620,237
private Subject authenticateRunAsUser(RunAs runAs) throws AuthenticationException {<NEW_LINE>String username = runAs.getUserid();<NEW_LINE>String password = PasswordUtil.passwordDecode(runAs.getPassword());<NEW_LINE>IdentityStoreHandlerService identityStoreHandlerService = getIdentityStoreHandlerService();<NEW_LINE>if ...
authenticationData = createAuthenticationData(username, password);
1,364,633
final CreateConfigResult executeCreateConfig(CreateConfigRequest createConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateConfig");
1,060,212
public void run() {<NEW_LINE>try {<NEW_LINE>Injector injector = makeInjector();<NEW_LINE>config = getHadoopDruidIndexerConfig();<NEW_LINE>MetadataStorageUpdaterJobSpec metadataSpec = config.getSchema().getIOConfig().getMetadataUpdateSpec();<NEW_LINE>// override metadata storage type based on HadoopIOConfig<NEW_LINE>Pre...
.getInstance(MetadataStorageUpdaterJobHandler.class));
1,724,112
public void testEventLoggingFeatureRemoval() throws Exception {<NEW_LINE>server.setMarkToEndOfLog();<NEW_LINE>CommonTasks.<MASK><NEW_LINE>server.setServerConfigurationFile("server_EL.xml");<NEW_LINE>waitForFeatureAddition();<NEW_LINE>createRequest(5000);<NEW_LINE>int end = fetchNoENDWarnings();<NEW_LINE>CommonTasks.wri...
writeLogMsg(Level.INFO, "$$$$ ---->Updating server configuration : ADDING EventLogging Feature");
520,845
public void handleRequest(final HttpServerExchange exchange) throws Exception {<NEW_LINE>if (exchange.isInIoThread()) {<NEW_LINE>exchange.dispatch(this);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isEnabled()) {<NEW_LINE>Map<String, Object> result = new LinkedHashMap<>();<NEW_LINE>// create rootDumper which will do dumpi...
Handler.next(exchange, next);
1,324,049
protected void runCheck() throws MojoExecutionException, MojoFailureException {<NEW_LINE>try (Engine engine = initializeEngine()) {<NEW_LINE>try {<NEW_LINE>if (!engine.getSettings().getBoolean(Settings.KEYS.AUTO_UPDATE)) {<NEW_LINE>engine.getSettings().setBoolean(Settings.KEYS.AUTO_UPDATE, true);<NEW_LINE>}<NEW_LINE>} ...
getLog().error(msg);
921,601
public static void planarToBuffered_U8(Planar<GrayU8> src, BufferedImage dst) {<NEW_LINE>if (src.getNumBands() != 3)<NEW_LINE>throw new IllegalArgumentException("src must have three bands");<NEW_LINE>final int width = dst.getWidth();<NEW_LINE>final int height = dst.getHeight();<NEW_LINE>byte[] band1 = src.getBand(0).da...
c3 = band3[indexSrc] & 0xFF;
875,803
public BuiltInScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, FunctionAndTypeManager functionAndTypeManager) {<NEW_LINE>ImmutableList.Builder<MethodHandle> argumentMethods = ImmutableList.builder();<NEW_LINE>Type type = boundVariables.getTypeVariable("T");<NEW_LINE>for (Type parameterT...
Optional.empty())));
1,122,933
public void write(Encoder encoder, CachedExternalResource value) throws Exception {<NEW_LINE>encoder.writeBoolean(value.getCachedFile() != null);<NEW_LINE>if (value.getCachedFile() != null) {<NEW_LINE>encoder.writeString(relativizeAndNormalizeFilePath(value.getCachedFile()));<NEW_LINE>}<NEW_LINE>encoder.<MASK><NEW_LINE...
writeLong(value.getCachedAt());
1,222,042
public static Map<String, List<Cluster>> fetchEMRInfo(BasicSessionCredentials temporaryCredentials, String skipRegions, String accountId, String accountName) {<NEW_LINE>Map<String, List<Cluster>> clusterList = new LinkedHashMap<>();<NEW_LINE>String expPrefix = InventoryConstants.ERROR_PREFIX_CODE + accountId + "\",\"Me...
clustersList = new ArrayList<>();
238,231
// Note: Do not call on the absolute root path '/'.<NEW_LINE>private void putDigest(Path path, String digest) {<NEW_LINE><MASK><NEW_LINE>String dirname;<NEW_LINE>if (parent != null) {<NEW_LINE>dirname = parent.toString();<NEW_LINE>} else if (path.isAbsolute()) {<NEW_LINE>// path.getFileName() below will return null on ...
Path parent = path.getParent();
636,663
public void call(String[] args) throws CmdException {<NEW_LINE>// process special commands<NEW_LINE>boolean refresh = false;<NEW_LINE>if (args.length > 0 && args[0].startsWith("-"))<NEW_LINE>switch(args[0]) {<NEW_LINE>case "-debug":<NEW_LINE>debugMode.setChecked(!debugMode.isChecked());<NEW_LINE>ChatUtils.message("Debu...
? "on" : "off") + ".");
752,966
public void updated(Dictionary<String, ?> config) throws ConfigurationException {<NEW_LINE>if (config != null) {<NEW_LINE>Enumeration<String<MASK><NEW_LINE>while (keys.hasMoreElements()) {<NEW_LINE>String key = keys.nextElement();<NEW_LINE>// the config-key enumeration contains additional keys that we<NEW_LINE>// don't...
> keys = config.keys();
718,238
// ================================== Edit Tab Functions =======================================<NEW_LINE>// Starting up MTV, or user clicked Create New Event from edit menu<NEW_LINE>@Action<NEW_LINE>public void edit_new_event() {<NEW_LINE>if (edit_not_saved) {<NEW_LINE>Object[] options = { "Yes, Forget current edits!"...
, "(", edit_event_name, " )"));
1,333,609
protected void onTaskConcurrentInc(final String key, final int hashcode) {<NEW_LINE>mCore.getHandler().post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Pair<? extends List<Integer>, Long> workingTasks;<NEW_LINE>synchronized (mTaskConcurrentTrace) {<NEW_LINE>workingTasks = mTaskCo...
workingTasks.first.add(hashcode);
572,435
protected Subscriber createSubscriber(boolean noLocal) throws JMSException {<NEW_LINE>try {<NEW_LINE>Logger logger = connection.getLogger();<NEW_LINE>SubscriberQosHolder holder = new SubscriberQosHolder(QosPolicies.newSubscriberQos());<NEW_LINE>DomainParticipant participant = connection.getParticipant();<NEW_LINE>parti...
.value.partition.name));
1,308,892
static GraphQLOutputType convertType(FieldDescriptor fieldDescriptor, SchemaOptions schemaOptions) {<NEW_LINE>final GraphQLOutputType type;<NEW_LINE>if (fieldDescriptor.getType() == Type.MESSAGE) {<NEW_LINE>type = getReference(fieldDescriptor.getMessageType());<NEW_LINE>} else if (fieldDescriptor.getType() == Type.GROU...
get(fieldDescriptor.getType());
1,826,202
public Object doWork() {<NEW_LINE>final Pair<String, List<PileupSummary>> sampleAndsites = PileupSummary.readFromFile(inputPileupSummariesTable);<NEW_LINE>final String sample = sampleAndsites.getLeft();<NEW_LINE>final List<PileupSummary> sites = filterSitesByCoverage(sampleAndsites.getRight());<NEW_LINE>// used the mat...
contaminationAndError = genotypingModel.calculateContaminationFromHoms(sites);
1,521,922
private void switchProfile(String profileKey) {<NEW_LINE>executor.execute(() -> {<NEW_LINE>// Current queued loot is for the previous profile, so save it first with the current profile key<NEW_LINE>submitLoot();<NEW_LINE>this.profileKey = profileKey;<NEW_LINE>log.debug("Switched to profile {}", profileKey);<NEW_LINE>if...
top = loots.remove(0);
1,020,997
public void save() throws IOException {<NEW_LINE>if (fFile == null || !fFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create Manifest as JDOM<NEW_LINE>Document doc = new Document();<NEW_LINE>Element root = new Element(ITemplateXMLTags.XML_TEMPLATE_ELEMENT_MANIFEST);<NEW_LINE>doc.setRootElement(root);<NEW_LIN...
, Charset.forName("UTF-8"));
1,800,942
/* (non-Javadoc)<NEW_LINE>* @see ghidra.app.merge.listing.ListingMerger#mergeConflicts(ghidra.app.merge.tool.ListingMergePanel, ghidra.program.model.address.Address, int, ghidra.util.task.TaskMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void mergeConflicts(ListingMergePanel listingPanel, Address addr, int ch...
list = conflicts.get(addr);
582,365
public Scalar<Integer> evaluate(final QueryElement<Scalar<Integer>> query) {<NEW_LINE>return new BaseScalar<Integer>(configuration.getWriteExecutor()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Integer evaluate() {<NEW_LINE>// doesn't use the query params, just maps to the parameterBinder callback<NEW_LINE>QueryBui...
String sql = output.toSql();
326,871
public void run() {<NEW_LINE>final <MASK><NEW_LINE>LOG.info("Starting MapCollections...");<NEW_LINE>int numThreads = args.threads;<NEW_LINE>final ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(numThreads);<NEW_LINE>final List segmentPaths = collection.getSegmentPaths();<NEW_LINE>final i...
long start = System.nanoTime();
811,322
public void generateProjectBuildScript(String projectName, InitSettings settings, BuildScriptBuilder buildScriptBuilder) {<NEW_LINE>buildScriptBuilder.repositories().mavenCentral("Use Maven Central for resolving dependencies.");<NEW_LINE>String pluginId = settings.getPackageName() + ".greeting";<NEW_LINE>String pluginC...
null, functionalTestConfiguration, "extendsFrom", testConfiguration);
1,389,013
public static void write(ServiceInfo dom, String dir) {<NEW_LINE>try {<NEW_LINE>makeSureCacheDirExists(dir);<NEW_LINE>File file = new File(dir, dom.getKeyEncoded());<NEW_LINE>if (!file.exists()) {<NEW_LINE>// add another !file.exists() to avoid conflicted creating-new-file from multi-instances<NEW_LINE>if (!file.create...
StringBuilder keyContentBuffer = new StringBuilder("");
1,507,007
public void accept(ProjectionResult result) {<NEW_LINE>if (result.isBroken()) {<NEW_LINE>// Write out validation errors as they occur.<NEW_LINE>failedProjections.add(result.getProjectionName());<NEW_LINE>StringBuilder message = new StringBuilder(System.lineSeparator());<NEW_LINE>message.append(result.getProjectionName(...
().getParent() : null;
806,921
protected void appendNullAnnotation(StringBuffer nameBuffer, CompilerOptions options) {<NEW_LINE>int oldSize = nameBuffer.length();<NEW_LINE><MASK><NEW_LINE>if (oldSize == nameBuffer.length()) {<NEW_LINE>// nothing appended in super.appendNullAnnotation()?<NEW_LINE>if (hasNullTypeAnnotations()) {<NEW_LINE>// see if the...
super.appendNullAnnotation(nameBuffer, options);
231,606
public void initialize(CmdLineOpts configuration) {<NEW_LINE>synchronized (tickers) {<NEW_LINE>LOG.info("Initializing CassandraStockTicker app...");<NEW_LINE>// If the datasources have already been created, we have already initialized the static<NEW_LINE>// variables, so nothing to do.<NEW_LINE>if (!tickers.isEmpty()) ...
System.out.print(".");
411,761
public static void onItemsRegistration(final RegistryEvent.Register<Item> itemRegisterEvent) {<NEW_LINE>// we create two new ItemGroups:<NEW_LINE>// - a simple one called mbe08_item_group which is used like normal vanilla ItemGroups<NEW_LINE>// - a more complicated one called mbe08_item_group_all_MBE which lists all mb...
(MAXIMUM_STACK_SIZE_TESTITEM).group(customItemGroup);
519,999
public boolean isDaylight(TimeZone timeZone) {<NEW_LINE>Date riseDate = getDailyForecast().get(0).sun().getRiseDate();<NEW_LINE>Date setDate = getDailyForecast().get(0).sun().getSetDate();<NEW_LINE>if (riseDate != null && setDate != null) {<NEW_LINE><MASK><NEW_LINE>calendar.setTimeZone(timeZone);<NEW_LINE>int time = 60...
Calendar calendar = Calendar.getInstance();
608,914
private static void writeByteArrayToArrowBufHelper(byte[] bytes, ArrowBuf bytebuf, int index, int byteWidth) {<NEW_LINE>final long startIndex = (long) index * byteWidth;<NEW_LINE>if (bytes.length > byteWidth) {<NEW_LINE>throw new UnsupportedOperationException("Decimal size greater than " + byteWidth + " bytes: " + byte...
0, byteWidth - bytes.length);
622,575
private void defaultPrefixes() {<NEW_LINE>mi2PrefixMap.put("-exec-interrupt", GdbCommandEchoInterruptEvent::new);<NEW_LINE>mi2PrefixMap.put("-", GdbCommandEchoEvent::new);<NEW_LINE>mi2PrefixMap.put("~", GdbConsoleOutputEvent::fromMi2);<NEW_LINE>mi2PrefixMap.put("@", GdbTargetOutputEvent::new);<NEW_LINE>mi2PrefixMap.put...
put("=thread-group-started", GdbThreadGroupStartedEvent::new);
1,234,669
public void testAfterApplyEnum() {<NEW_LINE>createEnum_myEnum();<NEW_LINE>AddressFactory addrFactory = program.getAddressFactory();<NEW_LINE>Address addr1 = addrFactory.getAddress("004019ac");<NEW_LINE>Address addr2 = addrFactory.getAddress("004019c2");<NEW_LINE>selectRange(addr1, addr2);<NEW_LINE>performAction(applyEn...
cb.getProvider(), false);
1,228,251
public void process(int row, float[] scores) {<NEW_LINE>int indexDisparity = imageDisparity.startIndex + row * imageDisparity.stride;<NEW_LINE>// Mark all pixels as invalid which can't be estimate due to disparityMin<NEW_LINE>for (int col = 0; col < disparityMin; col++) {<NEW_LINE>imageDisparity.data[indexDisparity++] ...
indexDisparity++] = (byte) bestDisparity;
1,133,159
private TimestampPeriod createNewCache(long timestampInMillis, String formatted) {<NEW_LINE>// Examples of the supported formats:<NEW_LINE>//<NEW_LINE>// ISO_OFFSET_DATE_TIME 2020-01-01T10:20:30.123+01:00<NEW_LINE>// ISO_ZONED_DATE_TIME 2020-01-01T10:20:30.123+01:00[Europe/Brussels]<NEW_LINE>// ISO_LOCAL_DATE_TIME...
"" : formatted.substring(pos);
150,703
public RemotingCommand processRequest(Channel channel, RemotingCommand request) throws RemotingCommandException {<NEW_LINE>BizLogSendRequest requestBody = request.getBody();<NEW_LINE>List<BizLog> bizLogs = requestBody.getBizLogs();<NEW_LINE>if (CollectionUtils.isNotEmpty(bizLogs)) {<NEW_LINE>for (BizLog bizLog : bizLog...
setLogTime(bizLog.getLogTime());
1,598,581
public void postAuthentication(RoutingContext ctx) {<NEW_LINE><MASK><NEW_LINE>Session session = ctx.session();<NEW_LINE>if (session != null) {<NEW_LINE>String returnURL = session.remove(returnURLParam);<NEW_LINE>if (returnURL != null) {<NEW_LINE>// Now redirect back to the original url<NEW_LINE>ctx.redirect(returnURL);...
HttpServerRequest req = ctx.request();
756,778
public StemmerOverrideItem write(final StemmerOverrideItem oldItem) {<NEW_LINE>try {<NEW_LINE>if ((item == null) || (item.getId() != oldItem.getId()) || !item.isUpdated()) {<NEW_LINE>writer.write(oldItem.toLineString());<NEW_LINE>writer.write(Constants.LINE_SEPARATOR);<NEW_LINE>return oldItem;<NEW_LINE>}<NEW_LINE>if (!...
oldItem + " -> " + item, e);
1,040,013
private void renderQuadsForGroups(String[] groups, IOBJModelCallback<ItemStack> callback, IESmartObjModel model, ItemStack stack, ShaderCase sCase, PoseStack matrix, MultiBufferSource buffer, Set<String> visible, int light, int overlay) {<NEW_LINE>List<ShadedQuads> quadsByLayer = new ArrayList<>();<NEW_LINE>for (String...
baseType = RenderType.entityCutout(atlas);
1,788,660
public void moveViewportAndContent(final double yDelta) {<NEW_LINE>if (yDelta == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double newTop = tBodyScrollTop + yDelta;<NEW_LINE>verticalScrollbar.setScrollPos(newTop);<NEW_LINE>final double defaultRowHeight = getDefaultRowHeight();<NEW_LINE>double rowPxDelta = yDelta - (yDel...
, getRowTop(tr) + rowPxDelta);
675,952
public RegisterDeviceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegisterDeviceResult registerDeviceResult = new RegisterDeviceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
1,162,198
private void buildAccountList() {<NEW_LINE>int i = 0;<NEW_LINE>int accountProviders = 0;<NEW_LINE>mGoogleAccounts = AccountManager.get(this).getAccountsByType(GTalkOAuth2.TYPE_GOOGLE_ACCT);<NEW_LINE>if (mGoogleAccounts.length > 0) {<NEW_LINE>// potentialProviders + google + create account + burner<NEW_LINE>accountProvi...
[i][2] = BONJOUR_ACCOUNT;
1,221,017
public void init() {<NEW_LINE>int threads = Math.max(1, apocConfig.getInt(ApocConfig.APOC_CONFIG_JOBS_POOL_NUM_THREADS, DEFAULT_POOL_THREADS));<NEW_LINE>int queueSize = Math.max(1, apocConfig.getInt(ApocConfig.APOC_CONFIG_JOBS_QUEUE_SIZE, threads * 5));<NEW_LINE>// ensure we use daemon threads everywhere<NEW_LINE>Threa...
10, 10, TimeUnit.SECONDS);
307,131
public void preferenceChange(PreferenceChangeEvent evt) {<NEW_LINE>String settingName = evt == null ? null : evt.getKey();<NEW_LINE>if (settingName == null || COMPLETION_CASE_SENSITIVE.equals(settingName)) {<NEW_LINE>caseSensitive = preferences.getBoolean(COMPLETION_CASE_SENSITIVE, COMPLETION_CASE_SENSITIVE_DEFAULT);<N...
preferences.getBoolean(JAVA_COMPLETION_EXCLUDER_METHODS, JAVA_COMPLETION_EXCLUDER_METHODS_DEFAULT);
1,217,538
private PCode readCode() {<NEW_LINE>String fileName = readString().intern();<NEW_LINE>int flags = readInt();<NEW_LINE>int codeLen = readSize();<NEW_LINE>byte[] codeString = new byte[codeLen + Long.BYTES];<NEW_LINE>try {<NEW_LINE>in.read(codeString, 0, codeLen);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw Compiler...
context = PythonContext.get(null);
595,464
private void computeCellInfos(XWPFTableRow row) {<NEW_LINE>if (nbColumns == null) {<NEW_LINE>nbColumns = XWPFTableUtil.computeColWidths(row.getTable()).length;<NEW_LINE>}<NEW_LINE>int rowIndex = table.getRows().indexOf(row);<NEW_LINE>boolean firstRow = rowIndex == 0;<NEW_LINE>boolean lastRow = rowIndex == (table.getRow...
firstRow, lastRow, firstCol, lastCol);
1,380,925
protected Event mapEventRow(Row row) {<NEW_LINE>Event e = new Event();<NEW_LINE>e.setAction(row.getString(AUDIT_ATT_ACTION));<NEW_LINE>e.setDuration(row.getInt(AUDIT_ATT_DURATION));<NEW_LINE>e.setHostName(row.getString(AUDIT_ATT_HOSTNAME));<NEW_LINE>e.setName(row.getString(AUDIT_ATT_NAME));<NEW_LINE>e.setSource(row.get...
(AUDIT_ATT_TIME).getEpochSecond());
1,616,592
protected OVFPropertyTO createOVFPropertyFromNode(Node node, int index, String category) {<NEW_LINE>Element element = (Element) node;<NEW_LINE>String key = ovfParser.getNodeAttribute(element, "key");<NEW_LINE>if (StringUtils.isBlank(key)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String value = ovfParser.getNodeAttri...
ovfParser.getChildNodeValue(node, "Description");
1,710,658
public void delete(final String path, final int version, final VoidCallback cb, final Object context) {<NEW_LINE>final Runnable proc = new ZkRetryRunnable(operationRetryPolicy, rateLimiter, deleteStats) {<NEW_LINE><NEW_LINE>final VoidCallback deleteCb = new VoidCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ...
that, worker.nextRetryWaitTime());
703,039
private // issue#9386<NEW_LINE>boolean findAndSetServletInfo(IFilterMapping fmInfo) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.logp(Level.FINE, CLASS_NAME, "findAndSetServletInfo", "filter mapping -> " + fmInfo);<NEW_LINE>}<NEW_LINE>String ser...
().getFilterName() });
225,045
protected Void visitQuery(Query node, Integer indent) {<NEW_LINE>node.getWith().ifPresent(with -> {<NEW_LINE>append(indent, "WITH");<NEW_LINE>if (with.isRecursive()) {<NEW_LINE>builder.append(" RECURSIVE");<NEW_LINE>}<NEW_LINE>builder.append("\n ");<NEW_LINE>Iterator<WithQuery> queries = with.getQueries().iterator();<...
(query.getName()));
1,277,836
protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>stateLayout.setEmptyText(R.string.no_search_results);<NEW_LINE>getLoadMore().initialize(getPresenter().getCurrentPage(), getPresenter().getPreviousTotal());<NEW_LINE>stateLayout.setOnReloadListener(this);<NEW_LINE>refre...
adapter.setListener(getPresenter());
1,556,810
private void init(String pluginsDirectories, String pluginsInclude) {<NEW_LINE>if (StringUtils.isEmpty(pluginsDirectories)) {<NEW_LINE>LOGGER.info("Env variable '{}' is not specified. Set this env variable to load additional plugins.", PLUGINS_DIR_PROPERTY_NAME);<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>try {<NEW_LI...
"#getPluginsToLoad has produced {} plugins to load", plugins.size());
877,307
final GetVpnConnectionDeviceTypesResult executeGetVpnConnectionDeviceTypes(GetVpnConnectionDeviceTypesRequest getVpnConnectionDeviceTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpnConnectionDeviceTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
(super.beforeMarshalling(getVpnConnectionDeviceTypesRequest));
244,669
public void configure(TestElement element) {<NEW_LINE>super.configure(element);<NEW_LINE>servername.setText(element.getPropertyAsString(LDAPSampler.SERVERNAME));<NEW_LINE>port.setText(element.getPropertyAsString(LDAPSampler.PORT));<NEW_LINE>rootdn.setText(element.getPropertyAsString(LDAPSampler.ROOTDN));<NEW_LINE>CardL...
cl.show(cards, "Modify");
1,479,817
protected String processTextRegex(Repository repository, String repositoryName, String text) {<NEW_LINE>Map<String, String> map = new <MASK><NEW_LINE>// global regex keys<NEW_LINE>if (settings.getBoolean(Keys.regex.global, false)) {<NEW_LINE>for (String key : settings.getAllKeys(Keys.regex.global)) {<NEW_LINE>if (!key....
HashMap<String, String>();
1,466,169
public synchronized void dropTable(HdfsContext context, String databaseName, String tableName) {<NEW_LINE>setShared();<NEW_LINE>// Dropping table with partition actions requires cleaning up staging data, which is not implemented yet.<NEW_LINE>checkNoPartitionAction(databaseName, tableName);<NEW_LINE>SchemaTableName sch...
oldTableAction = tableActions.get(schemaTableName);
374,494
private void buildOverlays() {<NEW_LINE>db.runTransaction("build overlays", () -> {<NEW_LINE>Set<String> userIds = getAllUserIds();<NEW_LINE>RemoteDocumentCache remoteDocumentCache = db.getRemoteDocumentCache();<NEW_LINE>for (String uid : userIds) {<NEW_LINE>User user = new User(uid);<NEW_LINE>MutationQueue mutationQue...
allDocumentKeys = new HashSet<>();
1,665,842
final DeleteUsagePlanResult executeDeleteUsagePlan(DeleteUsagePlanRequest deleteUsagePlanRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUsagePlanRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteUsagePlanRequest> reques...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,535,642
private <T> T singleHeader(String name, Function<String, T> converter, boolean convertNull) {<NEW_LINE>final List<String> values = this.headers.get(name);<NEW_LINE>if (values == null || values.isEmpty()) {<NEW_LINE>return convertNull ? converter.apply(null) : null;<NEW_LINE>}<NEW_LINE>if (values.size() > 1) {<NEW_LINE>...
exception(name, value, ex);
1,530,534
public void actionPerformed(ActionEvent e) {<NEW_LINE>// Create a file chooser<NEW_LINE>final JFileChooser fc = new JFileChooser();<NEW_LINE>if (doc.getFile() != null) {<NEW_LINE>fc.setCurrentDirectory(doc.getFile().getParentFile());<NEW_LINE>}<NEW_LINE>fc.setFileFilter(new FileNameExtensionFilter("Openrocket file", "o...
File importFile = fc.getSelectedFile();
22,270
public com.atlassian.jira.rpc.soap.beans.RemoteProjectRole createProjectRole(java.lang.String in0, com.atlassian.jira.rpc.soap.beans.RemoteProjectRole in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apache.axis....
.setOperation(_operations[28]);
1,395,620
public ExportEC2InstanceRecommendationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportEC2InstanceRecommendationsResult exportEC2InstanceRecommendationsResult = new ExportEC2InstanceRecommendationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String curr...
class).unmarshall(context));
857,048
public void importEbicsUsers(ActionRequest request, ActionResponse response) {<NEW_LINE>String config = "/data-import/import-ebics-user-config.xml";<NEW_LINE>try {<NEW_LINE>InputStream inputStream = this.getClass().getResourceAsStream(config);<NEW_LINE>File configFile = File.createTempFile("config", ".xml");<NEW_LINE>F...
"importLog", listner.getImportLog());
408,592
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) {<NEW_LINE>Map<String, Object<MASK><NEW_LINE>if (attrs == null)<NEW_LINE>return;<NEW_LINE>for (String a : attrs.keySet()) {<NEW_LINE>String descr;<NEW_LINE>if (st.debugState != null && st.debugState.addAttrEvents != null) {<NEW_LINE>List<Ad...
> attrs = st.getAttributes();
708,734
public SPluginConfiguration convertToSObject(PluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (input instanceof DeserializerPluginConfiguration) {<NEW_LINE><MASK><NEW_LINE>} else if (input instanceof InternalServicePluginConfiguration) {<NEW_LINE>return convertToSO...
return convertToSObject((DeserializerPluginConfiguration) input);
399,879
public DocumentData parse(JsonReader reader, float scale) throws IOException {<NEW_LINE>String text = null;<NEW_LINE>String fontName = null;<NEW_LINE>float size = 0f;<NEW_LINE>Justification justification = Justification.CENTER;<NEW_LINE>int tracking = 0;<NEW_LINE>float lineHeight = 0f;<NEW_LINE>float baselineShift = 0f...
(float) reader.nextDouble();
1,211,196
protected void invalidated() {<NEW_LINE>final Timeline t = get();<NEW_LINE>if (old != null) {<NEW_LINE>currentTimeAsPercentage.unbind();<NEW_LINE>end<MASK><NEW_LINE>}<NEW_LINE>if (t == null) {<NEW_LINE>setVisible(false);<NEW_LINE>} else {<NEW_LINE>setVisible(true);<NEW_LINE>currentTimeAsPercentage.bind(new DoubleBindin...
.textProperty().unbind();
795,761
private PdfPCell createStrip(final Streamer component) {<NEW_LINE>PdfPCell result = new PdfPCell();<NEW_LINE>Phrase p = new Phrase();<NEW_LINE>p.setLeading(12f);<NEW_LINE>result.setVerticalAlignment(Element.ALIGN_TOP);<NEW_LINE>result.setBorder(Rectangle.BOTTOM);<NEW_LINE>Chunk c = new Chunk();<NEW_LINE>c.setFont(Print...
(component.getStripWidth()));
1,380,738
// adapted from org.netbeans.modules.java.hints.declarative.conditionapi.Matcher.referencedIn<NEW_LINE>private static boolean uses(final HintContext ctx, Collection<? extends TreePath> statements, TreePath var) {<NEW_LINE>final Element e = ctx.getInfo().getTrees().getElement(var);<NEW_LINE>if (e == null) {<NEW_LINE>ret...
super.scan(tree, p);
204,776
static private List<JavaProblem> checkForMissingBraces(PreprocSketch ps) {<NEW_LINE>List<JavaProblem> problems = new ArrayList<>(0);<NEW_LINE>for (int tabIndex = 0; tabIndex < ps.tabStartOffsets.length; tabIndex++) {<NEW_LINE>int tabStartOffset = ps.tabStartOffsets[tabIndex];<NEW_LINE>int tabEndOffset = (tabIndex < ps....
get(0).getTabIndex();
1,302,165
protected void charBackspaced(BaseDocument document, int offset, Caret caret, char character) throws BadLocationException {<NEW_LINE>TokenSequence tokenSequence = Utils.getTokenSequence(document, offset);<NEW_LINE>if (tokenSequence != null) {<NEW_LINE>String mimeType = tokenSequence.language().mimeType();<NEW_LINE>try ...
length() - i - 1);
511,599
private void registerHideSqliteDbFileReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>final WeakReference<MapActivity> mapActivityRef = new WeakReference<>(mapActivity);<NEW_LINE>BroadcastReceiver hideSqliteDbFileReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Conte...
OsmandPlugin.getActivePlugin(OsmandRasterMapsPlugin.class);
1,828,725
public void validate(Mesh mesh) {<NEW_LINE>if (!(mesh instanceof TriangleMesh)) {<NEW_LINE>throw new AssertionError("Mesh is not TriangleMesh: " + mesh.getClass() + ", mesh = " + mesh);<NEW_LINE>}<NEW_LINE>TriangleMesh tMesh = (TriangleMesh) mesh;<NEW_LINE>int numPoints = tMesh.getPoints().size() / tMesh.getPointElemen...
"Incorrect point index: " + pIndex + ", numPoints = " + numPoints);
1,221,054
public boolean canClose() {<NEW_LINE>if (query != null) {<NEW_LINE>QuerySavable savable = getSavable();<NEW_LINE>if (savable != null) {<NEW_LINE>JButton save = new JButton(Bundle.CTL_Save());<NEW_LINE>JButton discard = new JButton(Bundle.CTL_Discard());<NEW_LINE>NotifyDescriptor nd = new NotifyDescriptor(Bundle.MSG_Has...
.getController().discardUnsavedChanges();
1,573,000
protected void _addEnumProps(Class<?> propClass, Schema property) {<NEW_LINE>final boolean useIndex = _mapper.isEnabled(SerializationFeature.WRITE_ENUMS_USING_INDEX);<NEW_LINE>final boolean useToString = _mapper.isEnabled(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);<NEW_LINE>Optional<Method> jsonValueMethod = Arr...
value()).findFirst();
1,284,585
private boolean prepareQueries() {<NEW_LINE>synchronized (db) {<NEW_LINE>final Database db = this.db.get();<NEW_LINE>assert db != null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>if (writeQuery != null)<NEW_LINE>writeQuery.close();<NEW_LINE>} catch (final SQLException e) {<NEW_LINE>}<NEW_LINE>writeQuery = db.prepare("REPLA...
"': " + e.getLocalizedMessage());
756,414
public static FastChecker create(String schemaName, String tableName, Map<String, String> sourceTargetGroup, Map<String, Set<String>> srcPhyDbAndTables, Map<String, Set<String>> dstPhyDbAndTables, long parallelism, ExecutionContext ec) {<NEW_LINE>final SchemaManager sm = OptimizerContext.getContext(schemaName).getLates...
tableMeta = sm.getTable(tableName);
951,986
private void updateMetadataLink(MetadataItem item) {<NEW_LINE>String methodName = "updateMetadataLink";<NEW_LINE>List<String> metadata = resolver.required() ? resolver.getItemGUIDs(item) : item.getSourceGuid();<NEW_LINE>Map<String, Relationship> itemReferences = new HashMap<>();<NEW_LINE>try {<NEW_LINE>List<Relationshi...
), srcGUID, null, methodName);
55,685
public void constructHistogram(final boolean useInstanceCount, final int nodeSize, final int validInstanceCount, BitSet featureValid, int[] nodeIdCache, int[] validFeatureOffset, int[] aligned, double[] gradients, double[] hessions, double[] weights, ExecutorService executorService, Future<?>[] futures, double[] featur...
+= gradients[aligned[j]];
405,601
public ActionRequestValidationException validate() {<NEW_LINE><MASK><NEW_LINE>if (version != Versions.MATCH_ANY && upsertRequest != null) {<NEW_LINE>validationException = addValidationError("can't provide both upsert request and a version", validationException);<NEW_LINE>}<NEW_LINE>if (upsertRequest != null && upsertRe...
ActionRequestValidationException validationException = super.validate();
106,829
private Picture decodeScan(ByteBuffer data, FrameHeader header, ScanHeader scan, VLC[] huffTables, int[][] quant, byte[][] data2, int field, int step) {<NEW_LINE>int blockW = header.getHmax();<NEW_LINE>int blockH = header.getVmax();<NEW_LINE>int mcuW = blockW << 3;<NEW_LINE>int mcuH = blockH << 3;<NEW_LINE>int width = ...
, 0, width, height));
898,275
private Map<String, Object> equalizerAudioEffectGetParameters() {<NEW_LINE>Equalizer equalizer = (Equalizer) audioEffectsMap.get("AndroidEqualizer");<NEW_LINE>ArrayList<Object> <MASK><NEW_LINE>for (short i = 0; i < equalizer.getNumberOfBands(); i++) {<NEW_LINE>rawBands.add(mapOf("index", i, "lowerFrequency", (double) e...
rawBands = new ArrayList<>();