idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
921,115
public void warmUpIdGenerators() {<NEW_LINE>Map<String, Future<Integer>> futures = new HashMap<>();<NEW_LINE>for (DatabaseSet dbSet : databaseSets.values()) {<NEW_LINE>final IIdGeneratorConfig config = dbSet.getIdGenConfig();<NEW_LINE>if (config != null) {<NEW_LINE>futures.put(dbSet.getName(), executor.submit(new Calla...
throw new DalRuntimeException(msg, t);
1,273,449
private void pollingConsumer(MessageChannel channel) {<NEW_LINE>PollingConsumer pollingConsumer = new PollingConsumer((PollableChannel) channel, this.handler);<NEW_LINE>if (this.pollerMetadata == null) {<NEW_LINE>this.pollerMetadata = PollerMetadata.getDefaultPollerMetadata(this.beanFactory);<NEW_LINE>Assert.notNull(th...
this.pollerMetadata.getTrigger());
1,531,325
public static BufferedImage applyExplicitOutline(BufferedImage baseImage, BufferedImage sMaskImage) {<NEW_LINE>// check to make sure the mask and the image are the same size.<NEW_LINE>BufferedImage[] images = scaleImagesToSameSize(baseImage, sMaskImage);<NEW_LINE>baseImage = images[0];<NEW_LINE>sMaskImage = images[1];<...
hasAlpha = ImageUtility.hasAlpha(baseImage);
1,150,718
private void updateConnectionMethod(String host, Integer port, String username, String password, File keyFile, String passphrase) {<NEW_LINE>ConnectionMethod cm = null;<NEW_LINE>if (host == null) {<NEW_LINE>host = getPlatform().getConnectionMethod().getHost();<NEW_LINE>}<NEW_LINE>if (port == null) {<NEW_LINE>port = get...
getAuthentification()).getPassPhrase();
1,528,371
/* The fingerprint method. */<NEW_LINE>@Override<NEW_LINE>public final long fingerPrint(long fp) {<NEW_LINE>try {<NEW_LINE>this.normalize();<NEW_LINE><MASK><NEW_LINE>fp = FP64.Extend(fp, FCNRCDVALUE);<NEW_LINE>fp = FP64.Extend(fp, flen);<NEW_LINE>if (this.intv == null) {<NEW_LINE>for (int i = 0; i < flen; i++) {<NEW_L...
int flen = this.values.length;
348,977
protected void doExecute(Task task, InvalidateApiKeyRequest request, ActionListener<InvalidateApiKeyResponse> listener) {<NEW_LINE>String[] apiKeyIds = request.getIds();<NEW_LINE>String apiKeyName = request.getName();<NEW_LINE>String username = request.getUserName();<NEW_LINE>String[] realms = Strings.hasText(request.g...
onFailure(new IllegalStateException("authentication is required"));
341,708
final DeleteMultiplexProgramResult executeDeleteMultiplexProgram(DeleteMultiplexProgramRequest deleteMultiplexProgramRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMultiplexProgramRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "MediaLive");
214,814
public Operand buildLocalAsgn(LocalAsgnNode localAsgnNode) {<NEW_LINE>Variable variable = getLocalVariable(localAsgnNode.getName(), localAsgnNode.getDepth());<NEW_LINE>Operand value = build(variable, localAsgnNode.getValueNode());<NEW_LINE>// no use copying a variable to itself<NEW_LINE>if (variable == value)<NEW_LINE>...
new CopyInstr(variable, value));
1,364,137
public void initWithNiwsConfig(IClientConfig clientConfig) {<NEW_LINE>super.initWithNiwsConfig(clientConfig);<NEW_LINE>this.ncc = clientConfig;<NEW_LINE>this.restClientName = ncc.getClientName();<NEW_LINE>this.isSecure = ncc.get(CommonClientConfigKey.IsSecure, this.isSecure);<NEW_LINE>this.isHostnameValidationRequired ...
setRetryHandler(new HttpClientLoadBalancerErrorHandler(ncc));
1,741,690
public void load() {<NEW_LINE>if (!Files.exists(this.file)) {<NEW_LINE>synchronized (this.mutex) {<NEW_LINE>this.log.clear();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>JsonArray array;<NEW_LINE>try (BufferedReader reader = Files.newBufferedReader(this.file, StandardCharsets.UTF_8)) {<NEW_LINE>array = PARSER.<MASK...
parse(reader).getAsJsonArray();
921,729
public void showTooltip(JComponent component, Point screenLocation) {<NEW_LINE>if (component == null || !component.isShowing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Dimension size;<NEW_LINE>Point location = new Point();<NEW_LINE>GraphicsConfiguration gc;<NEW_LINE>gc = component.getGraphicsConfiguration();<NEW_LINE>Re...
= screenLocation.y - size.height;
219,455
public ExecutionEntity createChildExecution(ExecutionEntity parentExecutionEntity) {<NEW_LINE>ExecutionEntity childExecution = dataManager.create();<NEW_LINE>inheritCommonProperties(parentExecutionEntity, childExecution);<NEW_LINE>childExecution.setParent(parentExecutionEntity);<NEW_LINE>childExecution.setProcessDefini...
), engineConfiguration.getEngineCfgKey());
808,156
public static void vertical5(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final <MASK><NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3];<...
short[] dataDst = output.data;
1,541,675
public void onRenderGUI(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glDisable(GL11.GL_CULL_FACE);<NEW_LINE>matrixStack.push();<NEW_LINE>Matrix4f matrix = matrixStack...
10, 0).next();
598,920
protected void doExecute(Task task, GetBucketsAction.Request request, ActionListener<GetBucketsAction.Response> listener) {<NEW_LINE>jobManager.jobExists(request.getJobId(), ActionListener.wrap(ok -> {<NEW_LINE>BucketsQueryBuilder query = new BucketsQueryBuilder().expand(request.isExpand()).includeInterim(request.isExc...
start(request.getStart());
510,873
public static void anotherListExample(S3Client s3, String bucketName) {<NEW_LINE>ListObjectsV2Request listReq = ListObjectsV2Request.builder().bucket(bucketName).maxKeys(1).build();<NEW_LINE>ListObjectsV2Iterable listRes = s3.listObjectsV2Paginator(listReq);<NEW_LINE>// Process response pages<NEW_LINE>listRes.stream()....
+ content.size()));
1,464,286
public void reduce(final IntWritable key, final Iterator<Text> values, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>int i, j;<NEW_LINE>long[][] out_vals = new long[block_width][nreplication];<NEW_LINE>int bs_count = 0;<NEW_LINE>for (i = 0; i < block_width; i++)...
[i][j] = 0;
1,476,997
private void documentToUserUpsert(@NonNull final Exchange exchange) throws ApiException {<NEW_LINE>final Document document = exchange.getIn().getBody(Document.class);<NEW_LINE>final GetAttachmentRouteContext routeContext = ProcessorHelper.getPropertyOrThrowError(exchange, GetAttachmentRouteConstants.ROUTE_PROPERTY_GET_...
getIn().setBody(null);
636,327
public boolean handleSelecting(DHCPInstance instance, IPv4Address requstIP, IPv4Address serverID, MacAddress chaddr) {<NEW_LINE>boolean sendACK = true;<NEW_LINE>// We're not the DHCP server that client wants<NEW_LINE>if (!serverID.equals(instance.getServerID())) {<NEW_LINE>sendACK = false;<NEW_LINE>} else {<NEW_LINE>Op...
getDHCPPool().cancelLeaseOfMac(chaddr);
708,475
public Broadcaster injectable(AtmosphereResource r) {<NEW_LINE>String named = nameLocal.get();<NEW_LINE>if (named == null) {<NEW_LINE>named = Broadcaster.ROOT_MASTER;<NEW_LINE>}<NEW_LINE>String s = (String) r.getRequest().getAttribute(Named.class.getName());<NEW_LINE>int indx = named.indexOf("{");<NEW_LINE>if (s != nul...
).lookup(named, true);
299,058
final ListInvitationsResult executeListInvitations(ListInvitationsRequest listInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
559,422
static IntegerFormatter prepareFormatter(Spec spec) throws PyException {<NEW_LINE>// Slight differences between format types<NEW_LINE>switch(spec.type) {<NEW_LINE>case 'c':<NEW_LINE>// Character data: specific prohibitions.<NEW_LINE>if (Spec.specified(spec.sign)) {<NEW_LINE>throw IntegerFormatter.<MASK><NEW_LINE>} else...
signNotAllowed("integer", spec.type);
714,771
public void onClick(View v) {<NEW_LINE>// Comment the line below if not using Google Analytics<NEW_LINE>app.send(this, "Action", "UNDO Pressed");<NEW_LINE>items.add(mIndexOfDeletedToDoItem, mJustDeletedToDoItem);<NEW_LINE>if (mJustDeletedToDoItem.getToDoDate() != null && mJustDeletedToDoItem.hasReminder()) {<NEW_LINE>I...
getContext(), TodoNotificationService.class);
1,675,865
private PwmService initService(final PwmServiceEnum pwmServiceEnum) throws PwmUnrecoverableException {<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final PwmService newServiceInstance;<NEW_LINE>final String serviceName = pwmServiceEnum.serviceName(domainID);<NEW_LINE>try {<NEW_LINE>final Class<? extends P...
"', service will remain unavailable, error: " + e.getMessage());
1,143,815
public static IsolationForest fit(double[][] data, int ntrees, int maxDepth, double subsample, int extensionLevel) {<NEW_LINE>if (ntrees < 1) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of trees: " + ntrees);<NEW_LINE>}<NEW_LINE>if (subsample <= 0 || subsample >= 1) {<NEW_LINE>throw new IllegalArgumen...
Math.round(n * subsample);
32,048
private int changeFieldLength(int columnID, String columnName, int length, String tableName) throws Exception {<NEW_LINE>int rowsEffected = -1;<NEW_LINE>// Select SQL<NEW_LINE>StringBuffer selectSql = new StringBuffer();<NEW_LINE>selectSql.append("SELECT FieldLength");<NEW_LINE>selectSql.append(" FROM AD_Column");<NEW_...
alterSql.append(length + ") ");
253,049
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.roleId, convLabelName("Role Id"));<NEW_LINE>if (err...
ValidatorFactory.getInstance(Validator.INTEGER);
943,087
private boolean login(String username, String password) throws IOException {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>String dbPath = this.getDatabasePath("Players.db").getPath();<NEW_LINE>SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbPath, dbPassword, null);<NEW_LINE>String query = ("SELECT * FROM Players WH...
.getText().clear();
343,805
public static DescribeCameraStatisticsResponse unmarshall(DescribeCameraStatisticsResponse describeCameraStatisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCameraStatisticsResponse.setRequestId(_ctx.stringValue("DescribeCameraStatisticsResponse.RequestId"));<NEW_LINE>describeCameraStatisticsResponse.setEr...
= new ArrayList<Rect>();
477,636
public // handleTransaction Handles request to execute a transaction.<NEW_LINE>void handleTransaction(ChaincodeMessage message) {<NEW_LINE>// The defer followed by triggering a go routine dance is needed to ensure that the previous state transition<NEW_LINE>// is completed before the next one is triggered. The previous...
message.getUuid(), this);
951,844
public void execute(Editor editor, DataContext dataContext) {<NEW_LINE>editor.setHeaderComponent(null);<NEW_LINE>Project project = dataContext.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project != null) {<NEW_LINE>HighlightManagerImpl highlightManager = (HighlightManagerImpl) HighlightManager.getInstance(project);<N...
getInstance().getStatusBar(project);
991,748
public void actionPerformed(AnActionEvent event) {<NEW_LINE>final OpenProjectFileChooserDescriptor descriptor = new OpenProjectFileChooserDescriptor(true) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) {<NEW_LINE>return super.isFileVisible(file, showHidde...
(VfsUtil.virtualToIoFile(file));
220,045
private static boolean putImageInfo(ContentResolver resolver, Cursor media, WritableMap node, int widthIndex, int heightIndex, int sizeIndex, int dataIndex, int mimeTypeIndex, boolean includeFilename, boolean includeFileSize, boolean includeImageSize, boolean includePlayableDuration) {<NEW_LINE>WritableMap image = new ...
image, photoUri, isVideo, includePlayableDuration);
1,084,982
public void execute(Nitrite nitrite) {<NEW_LINE>initialize(nitrite, collectionName);<NEW_LINE>try (IndexManager indexManager = new IndexManager(oldName, nitrite.getConfig())) {<NEW_LINE>Fields oldField = Fields.withNames(oldName);<NEW_LINE>Collection<IndexDescriptor> matchingIndexDescriptors = indexManager.findMatching...
document.put(newName, value);
722,017
public boolean process(Set<? extends TypeElement> elements, RoundEnvironment env) {<NEW_LINE>Console.reportErrors(env, processingEnv.getMessager());<NEW_LINE>try {<NEW_LINE>// each round of processing requires a clean state.<NEW_LINE>mState = new State();<NEW_LINE>gatherClassAnnotations(env);<NEW_LINE>if (!mOmitSomeMet...
(processingEnv.getMessager()));
990,357
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (!building || blockIndex >= positions.size())<NEW_LINE>return;<NEW_LINE>// scale and offset<NEW_LINE>float scale = 1.0F * 7.0F / 8.0F;<NEW_LINE>double offset <MASK><NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL1...
= (1.0 - scale) / 2.0;
150,856
public void detect() {<NEW_LINE>getPredictLabel().addAll(new int[getLen()]);<NEW_LINE>this.startTime = getTime().get(0);<NEW_LINE>int i = 0;<NEW_LINE>int windowSize = minLength / 2;<NEW_LINE>double[][] data = new double[windowSize][2];<NEW_LINE>SimpleRegression regression = new SimpleRegression();<NEW_LINE>while (i + w...
double alpha = regression.getRSquare();
1,846,354
public static void main(String[] args) throws Exception {<NEW_LINE>Client client = new Client(new URL(System.getenv("CHAIN_API_URL")));<NEW_LINE>MockHsm.Key mainKey = MockHsm.Key.create(client);<NEW_LINE>HsmSigner.addKey(mainKey, MockHsm.getSignerClient(client));<NEW_LINE>new Account.Builder().setAlias("alice").addRoot...
, HsmSigner.sign(spending));
867,047
public <M extends Model> M initPretrained(PretrainedType pretrainedType) throws IOException {<NEW_LINE>String remoteUrl = pretrainedUrl(pretrainedType);<NEW_LINE>if (remoteUrl == null)<NEW_LINE>throw new UnsupportedOperationException("Pretrained " + pretrainedType + " weights are not available for this model.");<NEW_LI...
= new File(rootCacheDir, localFilename);
1,276,491
public PointSensitivityBuilder presentValueSensitivity(ResolvedCdsIndex cdsIndex, CreditRatesProvider ratesProvider, LocalDate referenceDate, ReferenceData refData) {<NEW_LINE>if (isExpired(cdsIndex, ratesProvider)) {<NEW_LINE>return PointSensitivityBuilder.none();<NEW_LINE>}<NEW_LINE>ResolvedCds cds = cdsIndex.toSingl...
signedNotional * rates.getThird());
1,580,397
private static Version fromStringSlow(String version) {<NEW_LINE>if (version.endsWith("-SNAPSHOT")) {<NEW_LINE>throw new IllegalArgumentException("illegal version format - snapshot labels are not supported");<NEW_LINE>}<NEW_LINE>String[] parts = version.split("[.-]");<NEW_LINE>if (parts.length < 3 || parts.length > 4) ...
(buildStr.substring(5));
1,082,338
public synchronized LinearRegressionModelState modelState() {<NEW_LINE>Map<Integer, Double> detailCompleteness = new HashMap<>();<NEW_LINE>for (Map.Entry<Integer, AtomicInteger> entry : INDICES.entrySet()) {<NEW_LINE>detailCompleteness.put(entry.getKey(), Math.min((double) entry.getValue().get() / numObservationsPerUti...
[] sampleBytesRateData = aggregateSampleBytesRateData(ignoreLeaderBytesOutRate);
503,597
private static boolean compareSequence(String schemaName, String seqName, SequenceBean sequenceBean) {<NEW_LINE>SystemTableRecord existingSequenceRecord;<NEW_LINE>SequencesAccessor sequencesAccessor = new SequencesAccessor();<NEW_LINE>try (Connection metaDbConn = MetaDbUtil.getConnection()) {<NEW_LINE>sequencesAccessor...
sequencesAccessor.query(schemaName, seqName);
23,635
private void initialize() {<NEW_LINE>if (HostInfo.isInModuleProcess() || !SyncUtils.isMainProcess()) {<NEW_LINE>mNeedInterceptStartActivity = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// only in host main process<NEW_LINE>MobileQQ mqq = BaseApplicationImpl.sMobileQQ;<NEW_LINE>if (mqq instanceof BaseApplicationImpl) {...
Log.e("StartupDirector field not found", nfe);
1,038,303
private void validateSslConnection(ChannelHandlerContext ctx) throws Exception {<NEW_LINE>SslHandler sslHandler = ctx.pipeline().get(SslHandler.class);<NEW_LINE>if (sslHandler != null) {<NEW_LINE>sslHandler.handshakeFuture().addListener(future -> {<NEW_LINE>if (!future.isSuccess()) {<NEW_LINE>logger.error("SSL handshak...
.channel().close();
1,416,329
public void drawWall() {<NEW_LINE>if (currentWallTick++ != 20) {<NEW_LINE>// Only draw a wall once every second<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>currentWallTick = 0;<NEW_LINE>Vector3f entityPosition = session.getPlayerEntity().getPosition();<NEW_LINE>float particlePosX = entityPosition.getX();<NEW_LINE>float partic...
, particlePosY, particlePosZ), true);
906,798
private // <POIS><NEW_LINE>void displayPoisOnMap(Collection<PoisModel> collection) {<NEW_LINE>visiblePois.clearAll();<NEW_LINE>String currentFloor = userData.getSelectedFloorNumber();<NEW_LINE>// Display part of Description Text Only<NEW_LINE>// Make an approximation of available space based on map size<NEW_LINE>final ...
).getWidth() * 2);
729,989
private static Map<String, FileTypes> extractTypesByAbsolutePath(StructureXMLParser parser) {<NEW_LINE>Map<String, FileTypes> typesByFile = new HashMap<String, FileTypes>();<NEW_LINE>// Typedefs<NEW_LINE>for (Typedef typedef : parser.getTypedefs().values()) {<NEW_LINE>String filename = typedef.getDefinitionLocation() =...
FileTypes(new File(filename));
747,387
public void bootstrap() {<NEW_LINE>StringBuilder contentBuilder = new StringBuilder();<NEW_LINE>try {<NEW_LINE>final File tokenFile = getPrivateKeyFile();<NEW_LINE>if (tokenFile == null) {<NEW_LINE>LOGGER.warning("Couldn't find private key file, make sure it's configured.");<NEW_LINE>} else {<NEW_LINE>try (Stream<Strin...
"client_assertion", jwt.serialize());
272,685
public void refreshPreview() {<NEW_LINE>JEditorPane pane = (JEditorPane) getPreviewComponent();<NEW_LINE>try {<NEW_LINE>int rm = previewPrefs.getInt(RIGHT_MARGIN, getDefaultAsInt(RIGHT_MARGIN));<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>// Ignore it<NEW_LINE>}<NEW_LINE>Rec...
pane.putClientProperty("TextLimitLine", rm);
1,692,129
private void processRMI(InputStream ins, OutputStream outs) throws IOException {<NEW_LINE>ObjectInputStream in = new ObjectInputStream(ins);<NEW_LINE>int objectId = in.readInt();<NEW_LINE>int methodId = in.readInt();<NEW_LINE>Exception err = null;<NEW_LINE>Object rvalue = null;<NEW_LINE>try {<NEW_LINE>ExportedObject eo...
(eo.object, args));
1,146,672
private ControlNotFlushed createControlNotFlushed(SIBUuid12 stream, long reqID) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createControlNotFlushed", new Object[] { stream<MASK><NEW_LINE>ControlNotFlushed notFlushedMsg;<NEW_LINE>// Cre...
, new Long(reqID) });
1,336,264
public void beforeDocumentChange(@Nonnull DocumentEvent event) {<NEW_LINE>List<RangeMarker> scopes = getCurrentScopes(false);<NEW_LINE>if (scopes == null)<NEW_LINE>return;<NEW_LINE>int caretOffset = myEditor.getCaretModel().getOffset();<NEW_LINE>int changeStart = event.getOffset();<NEW_LINE>int changeEnd = event.getOff...
() + event.getOldLength();
602,265
public Function<RuleData, Publisher<?>> createExecutor(ExecutionContext context, Config config) {<NEW_LINE>if (config.isQuery()) {<NEW_LINE>return (data) -> Flux.defer(() -> {<NEW_LINE>String sql = config.getSql(data);<NEW_LINE>List<Flux<Map<String, Object>>> fluxes = new ArrayList<>();<NEW_LINE>data.acceptMap(map -> f...
ResultWrappers.map())));
1,801,588
static void computeEq20(DMatrixRMaj X, DMatrixRMaj P, double[] output) {<NEW_LINE>final int N = X.numRows;<NEW_LINE>double a00 = 0, a01 = 0, a10 = 0, a11 = 0;<NEW_LINE>for (int i = 0, index = 0; i < N; i++, index += 2) {<NEW_LINE>double <MASK><NEW_LINE>double x2 = X.data[index + 1];<NEW_LINE>double p1 = P.data[index];<...
x1 = X.data[index];
971,147
public ForEachProcessor create(Map<String, Processor.Factory> factories, String tag, Map<String, Object> config) throws Exception {<NEW_LINE>String field = readStringProperty(TYPE, tag, config, "field");<NEW_LINE>boolean ignoreMissing = readBooleanProperty(TYPE, tag, config, "ignore_missing", false);<NEW_LINE>Map<Strin...
TYPE, tag, "processor", "Must specify exactly one processor type");
393,103
public void dumpStats(PrintWriter writer) {<NEW_LINE>Map<TableReference, TableStats> sortedStats = ImmutableSortedMap.copyOf(statsByTableName);<NEW_LINE>String headerFmt = "|| %-20s || %10s || %10s || %10s || %10s || %10s || %10s ||%n";<NEW_LINE>String rowFmt = "| %-20s | %10s | %10s | %10s | %10s | %10s | %10s ...
"get_bytes", "put_bytes", "get_calls", "put_calls");
172,395
public static PathValue populate(VirtualPathValue value, DbAccess dbAccess, NodeCursor nodeCursor, RelationshipScanCursor relCursor, PropertyCursor propertyCursor) {<NEW_LINE>if (value instanceof PathValue) {<NEW_LINE>return (PathValue) value;<NEW_LINE>} else {<NEW_LINE>var nodeIds = value.nodeIds();<NEW_LINE>var relId...
path(nodes, rels, payloadSize);
1,545,186
public List<Article> query(String title, Logger logger) {<NEW_LINE>for (String titleForm : cookedTitles(title)) {<NEW_LINE>List<Article> fuzzyLookupEntities;<NEW_LINE>List<Article> crossWikiEntities;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>fuzzyLookupEntities = queryFuzzyLookup(titleForm, logger);<NEW_LINE>cros...
mergeResults(fuzzyLookupEntities, crossWikiEntities, logger);
1,055,940
public String addNzb(byte[] fileContent, String title, String category) throws DownloaderException {<NEW_LINE>// Using OKHTTP here because RestTemplate wouldn't work<NEW_LINE><MASK><NEW_LINE>UriComponentsBuilder urlBuilder = getBaseUrl();<NEW_LINE>title = suffixNzbToTitle(title);<NEW_LINE>urlBuilder.queryParam("mode", ...
logger.debug("Uploading NZB {} to sabnzbd", title);
1,048,554
public void addPainlessClass(ClassLoader classLoader, String javaClassName, Map<Class<?>, Object> annotations) {<NEW_LINE>Objects.requireNonNull(classLoader);<NEW_LINE>Objects.requireNonNull(javaClassName);<NEW_LINE>Class<?> clazz;<NEW_LINE>if ("void".equals(javaClassName))<NEW_LINE>clazz = void.class;<NEW_LINE>else if...
) -> "class [" + javaClassName + "] not found");
1,013,190
protected void addCommonTaskFields(TaskEntity task, ObjectNode data) {<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_ID, task.getId());<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_REVISION, task.getRevision());<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.<MASK><NEW_LINE>putIfNotN...
FIELD_NAME, task.getName());
1,562,900
void addEntry(IndexEntry entry, Offset fileEndOffset) throws StoreException {<NEW_LINE>rwLock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>if (sealed.get()) {<NEW_LINE>throw new StoreException("IndexSegment : " + indexFile.getAbsolutePath() + " cannot add to a sealed index ", StoreErrorCodes.Illegal_Index_Operation);<NE...
).getOriginalMessageOffset(), fileEndOffset);
613,834
final UpdateAnalysisResult executeUpdateAnalysis(UpdateAnalysisRequest updateAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAnalysisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
790,154
/* Relies on resultStack being set */<NEW_LINE>private int outputStackMap(int[] resultsArray, int bits) throws CorruptDataException {<NEW_LINE>int stackSize;<NEW_LINE>int writePointer;<NEW_LINE>stackSize = resultStack.stackSize();<NEW_LINE>if (stackSize > 0 && resultsArray != null) {<NEW_LINE>for (int i = 0; i < (stack...
toHexString(resultsArray[i]));
1,465,267
public static void doInsertMethod(final Document document, final int pos, OperationNode operationNode) {<NEW_LINE>Node portNode = operationNode.getParentNode();<NEW_LINE>Node serviceNode = portNode.getParentNode();<NEW_LINE>Node wsdlNode = serviceNode.getParentNode();<NEW_LINE>WsdlOperation operation = operationNode.ge...
).lookup(WsdlPort.class);
255,879
private String printInstance(Instance instance, JavaClass javaClassClass) {<NEW_LINE>if (language.isLanguageObject(instance)) {<NEW_LINE>O <MASK><NEW_LINE>TruffleObjectNode<O> node = language.createObjectNode(object, object.getType());<NEW_LINE>String instanceString = HeapUtils.instanceToHtml(instance, false, javaClass...
object = language.createObject(instance);
1,267,478
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws BaseServerResponseException {<NEW_LINE>if (theRequest.getRequestType() == RequestTypeEnum.POST) {<NEW_LINE>// all good<NEW_LINE>} else if (theRequest.getRequestType() == RequestTypeEnum.GET) {<NEW_LINE>if...
myIdParamIndex] = theRequest.getId();
994,909
private Map<?, String> initializeColors(BlameType blameType, List<AnnotatedLine> lines) {<NEW_LINE>ColorFactory colorFactory = new ColorFactory();<NEW_LINE>Map<?, String> colorMap;<NEW_LINE>if (BlameType.AGE == blameType) {<NEW_LINE>Set<Date> keys = new TreeSet<Date>(new Comparator<Date>() {<NEW_LINE><NEW_LINE>@Overrid...
keys.add(line.commitId);
56,895
private void updatePorts(Instance instance) {<NEW_LINE>int dx = 0;<NEW_LINE>int dy = 0;<NEW_LINE>Direction facing = instance.getAttributeValue(StdAttr.FACING);<NEW_LINE>if (facing == Direction.NORTH) {<NEW_LINE>dy = 1;<NEW_LINE>} else if (facing == Direction.EAST) {<NEW_LINE>dx = -1;<NEW_LINE>} else if (facing == Direc...
(S.getter("transmissionGateNGate"));
1,044,641
// Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("SessionIn");<NEW_LINE>n = this.getSessionIn();<NEW_LINE>if (n != null)<NEW_LINE>// NOI18N<NE...
SESSIONOUT, 0, str, indent);
1,177,641
final InitiateVaultLockResult executeInitiateVaultLock(InitiateVaultLockRequest initiateVaultLockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(initiateVaultLockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
877,536
public void init() {<NEW_LINE>LOG.debug("Registering JVM discovery MBean: hawtio:type=JVMList");<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>// let's just hit any errors we're going to hit before even creating the mbean<NEW_LINE>listLocalJVMs();<NEW_LINE>} catch (LinkageError e) {<NEW_LINE>// Some JVM's don't support com.su...
mBeanServer.registerMBean(this, objectName);
150,476
private void writeClass(SmaliWriter smali, ClassNode cls) {<NEW_LINE>IClassData clsData = cls.getClsData();<NEW_LINE>if (clsData == null) {<NEW_LINE>smali.startLine(String.format("###### Class %s is created by jadx", cls.getFullName()));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AttributeStorage attributes = new AttributeSt...
new ArrayList<>(annos));
5,720
// private void removeWsdlFolderContents(){<NEW_LINE>// FileObject wsdlFolder = getJAXWSClientSupport().getLocalWsdlFolderForClient(getName(), false);<NEW_LINE>// if(wsdlFolder != null){<NEW_LINE>// FileLock lock = null;<NEW_LINE>//<NEW_LINE>// FileObject[] files = wsdlFolder.getChildren();<NEW_LINE>// for(int i = 0; i...
BindingsHandlerClass handlerClass = handler.getHandlerClass();
1,217,025
static PublicVerificationKey fromKeyParameters(ECPublicKey pubKey) {<NEW_LINE>ASN1ObjectIdentifier curveID = ASN1ObjectIdentifier.getInstance(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()).getAlgorithm().getParameters());<NEW_LINE>if (curveID.equals(SECObjectIdentifiers.secp256r1)) {<NEW_LINE>return new PublicVe...
)).createPoint256()));
178,944
public ListenableFuture<TsKvLatestRemovingResult> removeLatest(TenantId tenantId, EntityId entityId, DeleteTsKvQuery query) {<NEW_LINE>ListenableFuture<TsKvEntry> latestEntryFuture = findLatest(tenantId, <MASK><NEW_LINE>ListenableFuture<Boolean> booleanFuture = Futures.transform(latestEntryFuture, latestEntry -> {<NEW_...
entityId, query.getKey());
482,055
private static int calculateSize(String traceId, String spanId, byte[] operationNameUtf8, TimeMarshaler startTime, TimeMarshaler duration, List<KeyValueMarshaler> tags, LogMarshaler[] logs, List<SpanRefMarshaler> references) {<NEW_LINE>int size = 0;<NEW_LINE>size += MarshalerUtil.sizeTraceId(Span.TRACE_ID, traceId);<NE...
sizeRepeatedMessage(Span.TAGS, tags);
1,464,377
private void emitBeginBlockForSwitchStatements(Block dom, Block beginBlockNode) {<NEW_LINE>final IntegerSwitchNode switchNode = (IntegerSwitchNode) dom.getEndNode();<NEW_LINE>asm.indent();<NEW_LINE>Node beginNode = beginBlockNode.getBeginNode();<NEW_LINE>switches.add(beginBlockNode);<NEW_LINE>NodeIterable<Node> success...
keyAt = switchNode.keyAt(idx);
1,465,622
public void testServletSubmitsManagedTaskThatInvokesTxSupports(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE><MASK><NEW_LINE>Future<?> future = executor.submit(new Callable<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object call() throws Exception {<NEW_LINE>final Co...
PrintWriter out = response.getWriter();
1,822,779
public Object postProcessResult(Req req, Object result) {<NEW_LINE>if (result instanceof HttpStatus) {<NEW_LINE>return result;<NEW_LINE>} else if (result instanceof Req) {<NEW_LINE>U.<MASK><NEW_LINE>return reqToStatus(req, result);<NEW_LINE>} else if (result instanceof Resp) {<NEW_LINE>U.must(req != null && req.respons...
must(req == result, "Unknown request instance was received as result!");
1,465,939
public void updateConfig(final String config) throws IOException {<NEW_LINE>if (config == null) {<NEW_LINE>throw new StorageAdapterException("ADLS adapter needs a config.");<NEW_LINE>}<NEW_LINE>this.updateNetworkConfig(config);<NEW_LINE>final JsonNode configsJson = JMapper.MAP.readTree(config);<NEW_LINE>if (configsJson...
("hostname").asText());
358,327
private <// the body<NEW_LINE>T> T postRequest(String url, Map<String, String> contentParams, @Nullable byte[] contentBytes, Map<String, String> smugMugHeaders, TypeReference<T> typeReference) throws IOException {<NEW_LINE>String fullUrl = url;<NEW_LINE>if (!fullUrl.contains("://")) {<NEW_LINE>fullUrl = BASE_URL + url;...
), param.getValue());
20,808
public static Set<Path> copyJars(JReleaserContext context, JavaAssembler assembler, Path jarsDirectory, String platform) throws AssemblerProcessingException {<NEW_LINE>Set<Path> <MASK><NEW_LINE>// resolve all first<NEW_LINE>if (isBlank(platform)) {<NEW_LINE>paths.add(assembler.getMainJar().getEffectivePath(context, ass...
paths = new LinkedHashSet<>();
22,658
private static void checkTable(TableId tableId, TreeSet<KeyExtent> tablets) {<NEW_LINE>// sanity check of metadata table entries<NEW_LINE>// make sure tablets has no holes, and that it starts and ends w/ null<NEW_LINE>String tableName;<NEW_LINE>try {<NEW_LINE>tableName = opts.getServerContext().getTableName(tableId);<N...
prevEndRow() + " != " + lastEndRow);
1,302,547
public void read(org.apache.thrift.protocol.TProtocol iprot, getCompletedCompactions_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeFiel...
.securityImpl.thrift.TCredentials();
630,124
public void execute(final EditorAdaptor editorAdaptor, final int count) throws CommandExecutionException {<NEW_LINE>final IWorkbenchPartSite site = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart().getSite();<NEW_LINE>final EPartService psvc = (EPartService) site.getService(EPartServi...
newTab = tabs.get(newIdx);
715,696
protected TensorFunction<Reference> lazyGetFunction() {<NEW_LINE>if (!allInputFunctionsPresent(3)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IntermediateOperation conditionOperation = inputs().get(0);<NEW_LINE>TensorFunction<Reference> a = inputs().get(1).function().get();<NEW_LINE>TensorFunction<Reference> b = input...
() == 0 ? b : a;
1,340,147
protected void parseJobAcquisition(XMLExtendedStreamReader reader, List<ModelNode> operations, ModelNode parentAddress) throws XMLStreamException {<NEW_LINE>String acquisitionName = null;<NEW_LINE>// Add the 'add' operation for each 'job-acquisition' child<NEW_LINE>ModelNode addJobAcquisitionOp = new ModelNode();<NEW_L...
add(ModelConstants.JOB_ACQUISITIONS, acquisitionName);
1,428,958
public void startWeightManagement(Person person, long time) {<NEW_LINE>double startWeight = person.getVitalSign(VitalSign.WEIGHT, time);<NEW_LINE>person.attributes.put(ACTIVE_WEIGHT_MANAGEMENT, true);<NEW_LINE>person.attributes.put(PRE_MANAGEMENT_WEIGHT, startWeight);<NEW_LINE>person.attributes.put(WEIGHT_MANAGEMENT_ST...
attributes.put(LONG_TERM_WEIGHT_LOSS, false);
771,645
void start(Flow flow) {<NEW_LINE>long btime = System.currentTimeMillis();<NEW_LINE>if (currentFlow != null) {<NEW_LINE>String cname = getFlowNameWithoutLocation(currentFlow);<NEW_LINE>long stime = beginTime.get(cname);<NEW_LINE>WorkFlowStatistic <MASK><NEW_LINE>stat.addStatistic(btime - stime);<NEW_LINE>logger.debug(St...
stat = statistics.get(cname);
485,134
final RebootWorkspacesResult executeRebootWorkspaces(RebootWorkspacesRequest rebootWorkspacesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rebootWorkspacesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,460,809
private void encodeLegacy(ByteBuf buf, ProtocolVersion version) {<NEW_LINE>buf.writeInt(entityId);<NEW_LINE>if (version.compareTo(ProtocolVersion.MINECRAFT_1_16_2) >= 0) {<NEW_LINE>buf.writeBoolean(isHardcore);<NEW_LINE>buf.writeByte(gamemode);<NEW_LINE>} else {<NEW_LINE>buf.writeByte(<MASK><NEW_LINE>}<NEW_LINE>if (ver...
isHardcore ? gamemode | 0x8 : gamemode);
1,728,227
private void doCopy(URL sourceUrl, InputStream is, File temp, int contentLength) throws IOException {<NEW_LINE>OutputStream os = null;<NEW_LINE>int read = 0;<NEW_LINE>int totalRead = 0;<NEW_LINE>try {<NEW_LINE>os = new BufferedOutputStream(new FileOutputStream(temp));<NEW_LINE>byte[] bytes = new byte[1024];<NEW_LINE>wh...
Level.INFO, "Closing streams failed.", ioe);
500,627
protected void postInit() {<NEW_LINE>CategoryAttribute attribute = getItem();<NEW_LINE>CategoryAttributeConfiguration configuration = attribute.getConfiguration();<NEW_LINE>initScreensTable(attribute);<NEW_LINE>if (attribute.getDataType() == ENTITY && Boolean.TRUE.equals(attribute.getLookup()) && configuration.getOptio...
setDescriptionsValue(attribute.getLocaleDescriptions());
1,453,479
protected void paintComponent(Graphics g) {<NEW_LINE>if (item.value instanceof Color) {<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>Color background = valueColor;<NEW_LINE>// paint color<NEW_LINE>fillRect(g, background, 0, 0, width, height);<NEW_LINE>if (item.info instanceof Color[]) {<...
g.setColor(getForeground());
239,990
private void createControls(final List<TypeInstanceReference> references) {<NEW_LINE>final JPanel panel = new JPanel();<NEW_LINE>getContentPane().add(panel, BorderLayout.SOUTH);<NEW_LINE>panel.setLayout(<MASK><NEW_LINE>final JButton buttonOk = new JButton("OK");<NEW_LINE>buttonOk.addActionListener(new ActionListener() ...
new FlowLayout(FlowLayout.RIGHT));
415,596
private String checkOrUncheck(SysSite site, SysUser admin, boolean uncheck, Long[] ids, HttpServletRequest request) {<NEW_LINE>if (CommonUtils.notEmpty(ids)) {<NEW_LINE>List<CmsContent> entityList;<NEW_LINE>if (uncheck) {<NEW_LINE>entityList = service.uncheck(site.getId(), admin, ids);<NEW_LINE>} else {<NEW_LINE>entity...
parentIdSet = new HashSet<>();
714,603
private void registerPushMonitorPoint() {<NEW_LINE>tpsMonitorManager.registerTpsControlPoint(new TpsMonitorPoint(TpsMonitorItem.NAMING_RPC_PUSH.name()));<NEW_LINE>tpsMonitorManager.registerTpsControlPoint(new TpsMonitorPoint(TpsMonitorItem.NAMING_RPC_PUSH_SUCCESS.name()));<NEW_LINE>tpsMonitorManager.registerTpsControlP...
.NAMING_UDP_PUSH.name()));
126,992
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>out.println("Starting " + test + "<br>");<NEW_LINE>// injection engine doesn't like this at...
println("<pre>ERROR in " + test + ":");