idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
936,003
private static void quickSort(Comparable[] array, int low, int high) {<NEW_LINE>Stack<QuickSortRange> stack = new Stack<>();<NEW_LINE>QuickSortRange quickSortRange = new QuickSortRange(low, high);<NEW_LINE>stack.push(quickSortRange);<NEW_LINE>while (stack.size() > 0) {<NEW_LINE>QuickSortRange currentQuickSortRange = st...
partition + 1, currentQuickSortRange.high);
659,841
public boolean removeByURLHash(final byte[] urlhashBytes) {<NEW_LINE>try {<NEW_LINE>final HandleSet urlHashes = new RowHandleSet(Word.<MASK><NEW_LINE>urlHashes.put(urlhashBytes);<NEW_LINE>boolean ret = false;<NEW_LINE>try {<NEW_LINE>ret |= this.noloadStack.remove(urlHashes) > 0;<NEW_LINE>} catch (final IOException e) {...
commonHashLength, Base64Order.enhancedCoder, 1);
1,325,818
public void onTrainingEnd(Trainer trainer) {<NEW_LINE>Metrics metrics = trainer.getMetrics();<NEW_LINE>if (metrics == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float p50;<NEW_LINE>float p90;<NEW_LINE>if (metrics.hasMetric("train")) {<NEW_LINE>// possible no train metrics if only one iteration is executed<NEW_LINE>p5...
("epoch P50: %.3f s, P90: %.3f s", p50, p90));
490,575
public void linkActivated(String target) {<NEW_LINE>if (target.startsWith(OPEN)) {<NEW_LINE>String file = target.substring(OPEN.length());<NEW_LINE>// check if file is already opened somewhere<NEW_LINE>java.util.Optional<MPart> part = //<NEW_LINE>partService.getParts().stream().//<NEW_LINE>filter(p -> UIConstants.Part....
UIConstants.Parameter.FILE, file);
306,458
private String readFileFromUri(ReactContext reactContext, Uri uri) {<NEW_LINE>if (uri == null)<NEW_LINE>return null;<NEW_LINE>String filePath = null;<NEW_LINE>if (uri.getScheme().equals("content")) {<NEW_LINE>ContentResolver resolver = reactContext.getContentResolver();<NEW_LINE>String mimeType = resolver.getType(uri);...
OutputStream ostream = new FileOutputStream(file);
1,752,499
public DockerClient providesDockerClient(SingularityExecutorConfiguration configuration) {<NEW_LINE>Builder dockerClientBuilder = DefaultDockerClient.builder().uri(URI.create("unix://localhost/var/run/docker.sock")).connectionPoolSize(configuration.getDockerClientConnectionPoolSize());<NEW_LINE>if (configuration.getDoc...
.getDockerAuthConfig().get();
781,383
public void startPhantomJS() {<NEW_LINE>String mainScriptTempName = director.getScriptManager().getScriptFilename(PhantomJS.MAIN_SCRIPT_RESOURCE);<NEW_LINE>String listenAddress = listenURI.getHost() + ":" + listenURI.getPort();<NEW_LINE>int idleTimeout = director.getProcessIdleTimeout();<NEW_LINE>List<String> command =...
add(director.getPhantomjsExecutablePath());
1,515,800
private // Instance Methods:<NEW_LINE>Path localizeCosmicDbFileIfRemote(final Path cosmicDbPathMaybeRemote) {<NEW_LINE>// Is the path local or in the cloud:<NEW_LINE>if (cosmicDbPathMaybeRemote.getFileSystem().equals(FileSystems.getDefault())) {<NEW_LINE>// local path, just return it:<NEW_LINE>return cosmicDbPathMaybeR...
tmpDir = IOUtils.createTempDir(LOCAL_COSMIC_DB_TMP_DIR_PREFIX);
838,630
static double powerSeries(double a, double b, double x) throws ArithmeticException {<NEW_LINE>double s, t, u, v<MASK><NEW_LINE>ai = 1.0 / a;<NEW_LINE>u = (1.0 - b) * x;<NEW_LINE>v = u / (a + 1.0);<NEW_LINE>t1 = v;<NEW_LINE>t = u;<NEW_LINE>n = 2.0;<NEW_LINE>s = 0.0;<NEW_LINE>z = MACHEP * ai;<NEW_LINE>while (Math.abs(v) ...
, n, t1, z, ai;
95,711
private void saveState() {<NEW_LINE>if (chunks.size() < 1)<NEW_LINE>return;<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.append(this.length + "\n");<NEW_LINE>sb.append(downloaded + "\n");<NEW_LINE>sb.append(((long) this.totalDuration) + "\n");<NEW_LINE>sb.append(urlList.size() + "\n");<NEW_LINE>for (int i...
url = urlList.get(i);
505,449
private final void accept0(CreateTableImpl query) {<NEW_LINE>Table<?> table = query.$table();<NEW_LINE>MutableSchema schema = getSchema(table.getSchema(), true);<NEW_LINE>// TODO We're doing this all the time. Can this be factored out without adding too much abstraction?<NEW_LINE>MutableTable <MASK><NEW_LINE>if (existi...
existing = schema.table(table);
1,669,841
private void loadLocalizations() throws Exception {<NEW_LINE>PathMatchingResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver(this.<MASK><NEW_LINE>String filePattern = "ors_(.*?)(\\.default)?.resources";<NEW_LINE>String resourcePattern = "/resources/**/ors_*.resources";<NEW_LINE>Res...
getClass().getClassLoader());
595,500
private void postProcessLog(final CaptureLog originalLog, final ICodeGenerator<?> generator, final Set<Class<?>> blackList, CaptureLog log, int[] oidExchange, final Class<?>... observedClasses) throws RuntimeException {<NEW_LINE>if (oidExchange == null) {<NEW_LINE>generator.after(log);<NEW_LINE>} else {<NEW_LINE>try {<...
(log, oidExchange[1]);
1,737,015
public Object read(final InputStream is) {<NEW_LINE>final ART1 result = new ART1();<NEW_LINE>final EncogReadHelper in = new EncogReadHelper(is);<NEW_LINE>EncogFileSection section;<NEW_LINE>while ((section = in.readNextSection()) != null) {<NEW_LINE>if (section.getSectionName().equals("ART1") && section.getSubSectionNam...
(params, ART.PROPERTY_L));
1,805,881
private void initializeDatabaseMetadata(List<Integer> partitions) throws SQLException, SchemaGenerationException {<NEW_LINE>// Verify the partitions are valid.<NEW_LINE>_numPartitions = _databaseSource.getPartitionCount();<NEW_LINE>partitions.forEach(p -> Validate.isTrue(p <MASK><NEW_LINE>_databaseSource.getPrimaryKeyF...
>= 0 && p < _numPartitions));
1,243,921
private boolean isEmptyDirectory(URI uri) throws IOException {<NEW_LINE>if (!isDirectory(uri)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String prefix = normalizeToDirectoryPrefix(uri);<NEW_LINE>boolean isEmpty = true;<NEW_LINE>ListObjectsV2Response listObjectsV2Response;<NEW_LINE>ListObjectsV2Request.Builder listOb...
listObjectsV2Response = _s3Client.listObjectsV2(listObjectsV2Request);
1,313,661
public boolean createTenantVDCIngressAclRule(String tenantName, long ruleId, String policyIdentifier, String protocol, String sourceStartIp, String sourceEndIp, String destStartPort, String destEndPort) throws ExecutionException {<NEW_LINE>String xml = VnmcXml.CREATE_INGRESS_ACL_RULE.getXml();<NEW_LINE>String service =...
identifier = Long.toString(ruleId);
414,244
public <T> void validateAndSetDefaults(ClassCacheMgr cacheMgr, CFMappingDef<T> cfMapDef) {<NEW_LINE>KeyDefinition keyDef = cfMapDef.getKeyDef();<NEW_LINE>if (null == keyDef.getPkClazz()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, PropertyDescriptor> pdMap;<NEW_LINE>try {<NEW_LINE>pdMap = cacheMgr.getFieldProper...
Id.class.getSimpleName());
1,510,860
private Chunk createTextChunk(String text, boolean pageNumber, Font currentRunFont, UnderlinePatterns currentRunUnderlinePatterns, Color currentRunBackgroundColor) {<NEW_LINE>// Chunk textChunk =<NEW_LINE>// pageNumber ? new ExtendedChunk( pdfDocument, true, currentRunFont ) :<NEW_LINE>// new Chunk( text, currentRunFon...
(Converter.toBaseColor(currentRunBackgroundColor));
1,209,329
public InitiatedLinkedAccount initiateLinkedAccount(LinkedAccountType accountType, String redirectUri, String nonce) {<NEW_LINE>String authServerRootUrl = config.getKeycloakAuthUrl();<NEW_LINE>String realm = config.getKeycloakRealm();<NEW_LINE><MASK><NEW_LINE>KeycloakSecurityContext session = (KeycloakSecurityContext) ...
String provider = accountType.alias();
157,485
protected void onSaveInstanceState(Bundle outState) {<NEW_LINE>if (mWorkspace.getChildCount() > 0) {<NEW_LINE>outState.putInt(RUNTIME_STATE_CURRENT_SCREEN, mWorkspace.getNextPage());<NEW_LINE>}<NEW_LINE>outState.putInt(RUNTIME_STATE, mStateManager.getState().ordinal);<NEW_LINE>AbstractFloatingView widgets = AbstractFlo...
widgetsState = new SparseArray<>();
1,247,428
public final IonSystem build() {<NEW_LINE>IonCatalog catalog = (myCatalog != null ? myCatalog : new SimpleCatalog());<NEW_LINE>IonTextWriterBuilder twb = IonTextWriterBuilder.standard().withCharsetAscii();<NEW_LINE>twb.setCatalog(catalog);<NEW_LINE>_Private_IonBinaryWriterBuilder bwb = _Private_IonBinaryWriterBuilder.s...
systemSymtab = _Private_Utils.systemSymtab(1);
196,948
/*<NEW_LINE>* @see<NEW_LINE>* com.ibm.wsspi.channelfw.ChannelFramework#removeChainFromGroup(java.lang<NEW_LINE>* .String, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized ChainGroupData removeChainFromGroup(String groupName, String chainName) throws ChainGroupException, ChainException {<NEW...
this.chainDataMap.get(chainName);
1,610,578
final ListContainersResult executeListContainers(ListContainersRequest listContainersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listContainersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,538,459
final BatchDisassociateApprovalRuleTemplateFromRepositoriesResult executeBatchDisassociateApprovalRuleTemplateFromRepositories(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest batchDisassociateApprovalRuleTemplateFromRepositoriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(...
(super.beforeMarshalling(batchDisassociateApprovalRuleTemplateFromRepositoriesRequest));
1,806,315
void jbInit() throws Exception {<NEW_LINE>// [ 1707303 ] Account Combination Form(VAccountDialog) translation issue<NEW_LINE>titledBorder = new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(134, 134, 134)), msgBL.getMsg(Env.getCtx(), "Parameter"));<NEW_LINE>//<NEW_LINE>panelLayout.setHgap(5);<NEW...
.getCtx(), "AccountNewUpdate"));
1,010,071
private void jbInit() throws Exception {<NEW_LINE>this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);<NEW_LINE>fResource.addActionListener(this);<NEW_LINE>delete.addActionListener(this);<NEW_LINE>confirmPanel.addButton(delete);<NEW_LINE>confirmPanel.setActionListener(this);<NEW_LINE>//<NEW_LINE>mainPanel.s...
4), 0, 0));
1,790,030
public static void main(final String[] args) throws IOException {<NEW_LINE>final Struct_v1 v1 = new Struct_v1();<NEW_LINE>boolean sawException = false;<NEW_LINE>// Struct_v1 has a required field foo which by default is set to 'nothing'.<NEW_LINE>// If we try to serialize object v1 w/o initializing the field to some val...
getValue().add("test2");
717,341
public List<BoardCard> retrieveCardCandidates(final int boardId, final List<Integer> cardIds) {<NEW_LINE>if (cardIds.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>final String keyColumnName = boardDescriptor.getKeyColumnName();<NEW_LINE>final String userIdColumnName = boardDescrip...
final BoardDescriptor boardDescriptor = getBoardDescriptor(boardId);
238,455
private void buildServlets(Config config) {<NEW_LINE>final ServletContextHandler servletContextHandler = new ServletContextHandler(null, "/");<NEW_LINE>servletContextHandler.setErrorHandler(createErrorHandler());<NEW_LINE>jettyServer.setHandler(servletContextHandler);<NEW_LINE>// Servlet holder for the pages of the Dri...
servletContextHandler.addServlet(restHolder, "/rest/*");
398,497
public static void main(String[] args) throws IOException {<NEW_LINE>String filePath = UtilIO.pathExample("mvs/stone_sign.ply");<NEW_LINE>// Load the PLY file<NEW_LINE>var cloud = new DogArray<>(Point3dRgbI_F32::new);<NEW_LINE>PointCloudIO.load(PointCloudIO.Format.PLY, new FileInputStream(filePath), PointCloudWriter.wr...
).rgb, cloud.size);
36,262
protected void executeImpl() throws MojoExecutionException, MojoFailureException {<NEW_LINE>File commonDir = getCN1ProjectDir();<NEW_LINE>if (commonDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File rootMavenProjectDir = commonDir.getParentFile();<NEW_LINE>File javaSEDir = new File(rootMavenProjectDir, "javase");...
props.setProperty("codename1.platform", "javase");
823,255
default FutureStream<Collection<U>> chunkSinceLastRead() {<NEW_LINE>final Queue queue = this.withQueueFactory(QueueFactories.unboundedQueue()).toQueue();<NEW_LINE>final Queue.QueueReader reader = new <MASK><NEW_LINE>class Chunker implements Iterator<Collection<U>> {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean ...
Queue.QueueReader(queue, null);
225,328
private void initialiseClassFrameSections() {<NEW_LINE>// @formatter:off<NEW_LINE>initialiseSection(new AnnAxiom<OWLClass, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), simpleClassFrameSections);<NEW_LINE>initialiseSection(new AnnAxiom<OWLCl...
o, anns)), complexClassFrameSections);
334,735
public String generateToolTip(XYDataset dataset, int series, int item) {<NEW_LINE>if (!(dataset instanceof OHLCDataset)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>OHLCDataset d = (OHLCDataset) dataset;<NEW_LINE>Number high = d.getHigh(series, item);<NEW_LINE>Number low...
d.getOpen(series, item);
938,222
private static IdFilter buildProjectIdFilter(Project project, boolean includeNonProjectItems) {<NEW_LINE>long started = System.currentTimeMillis();<NEW_LINE>final BitSet idSet = new BitSet();<NEW_LINE>ContentIterator iterator = fileOrDir -> {<NEW_LINE>idSet.set(((VirtualFileWithId) fileOrDir).getId());<NEW_LINE>Progres...
) : GlobalSearchScope.projectScope(project);
861,963
public io.kubernetes.client.proto.V1Rbac.PolicyRule buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Rbac.PolicyRule result = new io.kubernetes.client.proto.V1Rbac.PolicyRule(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>verbs_ = verbs_.getUnm...
bitField0_ = (bitField0_ & ~0x00000002);
481,063
public void initBuffersWithMetaInfo(DbusEventBufferMetaInfo mi) throws DbusEventBufferMetaInfo.DbusEventBufferMetaInfoException {<NEW_LINE>if (mi.isValid()) {<NEW_LINE>_head.setPosition(mi.getLong(DbusEventBufferMetaInfo.BUFFER_HEAD));<NEW_LINE>_tail.setPosition(mi.getLong(DbusEventBufferMetaInfo.BUFFER_TAIL));<NEW_LIN...
mi.getLong(DbusEventBufferMetaInfo.LAST_WRITTEN_SEQUENCE);
1,277,628
final DeleteLicenseConfigurationResult executeDeleteLicenseConfiguration(DeleteLicenseConfigurationRequest deleteLicenseConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLicenseConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,606,613
private void handleShowExport() throws AnalysisException {<NEW_LINE>ShowExportStmt showExportStmt = (ShowExportStmt) stmt;<NEW_LINE>Env env = Env.getCurrentEnv();<NEW_LINE>Database db = env.getInternalCatalog().getDbOrAnalysisException(showExportStmt.getDbName());<NEW_LINE>long dbId = db.getId();<NEW_LINE><MASK><NEW_LI...
ExportMgr exportMgr = env.getExportMgr();
1,459,008
private static void createNotificationChannel(Context context, Constants.NotificationChannel channel) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {<NEW_LINE>NotificationChannel notificationChannel = new NotificationChannel(channelId(channel), context.getString(R.string<MASK><NEW_LINE>switch(channel) ...
.app_name), NotificationManager.IMPORTANCE_DEFAULT);
999,666
public void put(long ledgerId, long entryId, ByteBuf entry) {<NEW_LINE><MASK><NEW_LINE>int alignedSize = align64(entrySize);<NEW_LINE>lock.readLock().lock();<NEW_LINE>try {<NEW_LINE>if (entrySize > segmentSize) {<NEW_LINE>log.warn("entrySize {} > segmentSize {}, skip update read cache!", entrySize, segmentSize);<NEW_LI...
int entrySize = entry.readableBytes();
187,765
private void nextConnection(AsyncHttpRequest request) {<NEW_LINE>Uri uri = request.getUri();<NEW_LINE>final int port = getSchemePort(uri);<NEW_LINE>String key = computeLookup(uri, port, request.getProxyHost(), request.getProxyPort());<NEW_LINE>synchronized (AsyncSocketMiddleware.this) {<NEW_LINE>ConnectionInfo <MASK><N...
info = connectionInfo.get(key);
652,319
final DeleteNamedQueryResult executeDeleteNamedQuery(DeleteNamedQueryRequest deleteNamedQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNamedQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(deleteNamedQueryRequest));
1,742,903
public void updateStatus(@NonNull final JsonRequestCandidateResults results) {<NEW_LINE>final AdIssueId generalAdIssueId = createADIssue(results.getError());<NEW_LINE>if (generalAdIssueId != null) {<NEW_LINE>logger.debug("Created AD_Issue_ID={} that applies to all exported shipment schedules", generalAdIssueId.getRepoI...
"Given results.transactionKey={} does not match any audit records; -> return", results.getTransactionKey());
133,264
private void reportSocketStats(long channelId, InternalWithLogId socketLogId) {<NEW_LINE>final long socketId = socketLogId.getLogId().getId();<NEW_LINE>InternalInstrumented<InternalChannelz.SocketStats> iSocket = channelz.getSocket(socketId);<NEW_LINE>if (iSocket == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final St...
add("security", socketStats.security);
1,142,887
/* Build call for applicationsApplicationIdKeysKeyTypeGet */<NEW_LINE>private com.squareup.okhttp.Call applicationsApplicationIdKeysKeyTypeGetCall(String applicationId, String keyType, String groupId, String accept, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestL...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1,013,336
public void consume(BoltResult t) throws Throwable {<NEW_LINE>outputEventStream.writeStatementStart(statement, Arrays.asList(statementMetadata.fieldNames().clone()));<NEW_LINE>var outputEventStreamRecordConsumer = new OutputEventStreamRecordConsumer(t, outputEventStream, valueMapper);<NEW_LINE>t.handleRecords(outputEve...
extractExecutionPlanDescription(outputEventStreamRecordConsumer.metadataMap());
1,682,072
public JsonObject toJSON() {<NEW_LINE>JsonObject sinfo = new JsonObject();<NEW_LINE>sinfo.addProperty("tooltips for default roll format", getUseToolTipsForDefaultRollFormat() ? BigDecimal.ONE : BigDecimal.ZERO);<NEW_LINE>sinfo.addProperty("GM reveals vision for unowned tokens", getGmRevealsVisionForUnownedTokens() ? Bi...
BigDecimal.ONE : BigDecimal.ZERO);
1,665,520
protected void update(PresentationData presentation) {<NEW_LINE>RunnerAndConfigurationSettings configurationSettings = getConfigurationSettings();<NEW_LINE>boolean isStored = RunManager.getInstance(getProject()).hasSettings(configurationSettings);<NEW_LINE>presentation.addText(configurationSettings.getName(), isStored ...
status = contributor.getStatus(this);
1,429,411
private ExtraKeyButton[][] initExtraKeysInfo(@NonNull String propertiesInfo, @NonNull ExtraKeysConstants.ExtraKeyDisplayMap extraKeyDisplayMap, @NonNull ExtraKeysConstants.ExtraKeyDisplayMap extraKeyAliasMap) throws JSONException {<NEW_LINE>// Convert String propertiesInfo to Array of Arrays<NEW_LINE>JSONArray arr = ne...
[matrix[i].length];
1,789,810
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>VirtualFile[] files = getContextFiles(e, file -> OverrideFileTypeManager.getInstance().getFileValue(file) == null);<NEW_LINE>if (files.length == 0)<NEW_LINE>return;<NEW_LINE>DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>// although well-be...
showInBestPositionFor(e.getDataContext());
1,244,181
public Object readFPrimitiveArray(Object array, Class componentType, int len) {<NEW_LINE>if (componentType == double.class) {<NEW_LINE>double[] da = (double[]) array;<NEW_LINE>for (int i = 0; i < da.length; i++) {<NEW_LINE>da[i] = (double) input.readTag(input.readIn());<NEW_LINE>}<NEW_LINE>return da;<NEW_LINE>}<NEW_LIN...
da = (float[]) array;
830,303
// some where conditions eg. field1=field2 or field1>field2<NEW_LINE>private boolean explanSpecialCondWithBothSidesAreProperty(SQLBinaryOpExpr bExpr, Where where) throws SqlParseException {<NEW_LINE>// join is not support<NEW_LINE>if ((bExpr.getLeft() instanceof SQLPropertyExpr || bExpr.getLeft() instanceof SQLIdentifi...
].length() + 1);
1,397,223
public ListAssociatedFleetsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAssociatedFleetsResult listAssociatedFleetsResult = new ListAssociatedFleetsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
1,083,849
private DeleteResult cleanupStaleIndices(Map<String, BlobContainer> foundIndices, Set<String> survivingIndexIds) {<NEW_LINE>DeleteResult deleteResult = DeleteResult.ZERO;<NEW_LINE>for (Map.Entry<String, BlobContainer> indexEntry : foundIndices.entrySet()) {<NEW_LINE>final String indexSnId = indexEntry.getKey();<NEW_LIN...
metadata.name(), indexSnId);
1,232,398
public void run() {<NEW_LINE>try {<NEW_LINE>DataObject dob = null;<NEW_LINE>if (byPassFolder != null) {<NEW_LINE>dob = DataFolder.findFolder(byPassFolder);<NEW_LINE>} else {<NEW_LINE>FileObject fob = refactoring.getRefactoringSource().lookup(FileObject.class);<NEW_LINE>if (fob != null) {<NEW_LINE>dob = DataObject.find(...
).lookup(NonRecursiveFolder.class);
1,268,242
private void init() throws IOException {<NEW_LINE>if (!initialized) {<NEW_LINE>try {<NEW_LINE>List<Indexable> _resources = new ArrayList<Indexable>();<NEW_LINE>List<Indexable> _allResources = checkTimeStamps.contains(TimeStampAction.CHECK) && supportsAllFiles ? new ArrayList<Indexable>() : new NullList<Indexable>();<NE...
deleted = Collections.unmodifiableList(_deleted);
72,866
public void document(int docID, StoredFieldVisitor visitor) throws IOException {<NEW_LINE>if (docID != 0) {<NEW_LINE>throw new IllegalArgumentException("no such doc ID " + docID);<NEW_LINE>}<NEW_LINE>if (visitor.needsField(FAKE_SOURCE_FIELD) == StoredFieldVisitor.Status.YES) {<NEW_LINE>assert operation.source().toBytes...
id, 0, bytesRef.length);
940,110
public PointSensitivityBuilder presentValueSensitivityModelParamsSabr(ResolvedSwaption swaption, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities) {<NEW_LINE>validate(swaption, ratesProvider, swaptionVolatilities);<NEW_LINE>double expiry = swaptionVolatilities.relativeTime(swaption.getExpiry()...
derivative.get(5)));
1,853,315
public Sql[] generateSql(AddPrimaryKeyStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>sql.append("ALTER TABLE ");<NEW_LINE>sql.append(database.escapeTableName(statement.getCatalogName(), statement.getSchemaName(), statement.getTab...
(database.escapeConstraintName(constraintName));
1,834,649
void publishEvent(CacheEventContext cacheEventContext) {<NEW_LINE>final EventService eventService = nodeEngine.getEventService();<NEW_LINE>final String cacheName = cacheEventContext.getCacheName();<NEW_LINE>final Collection<EventRegistration> candidates = eventService.getRegistrations(SERVICE_NAME, cacheName);<NEW_LINE...
eventType, cacheEventContext.getCompletionId());
1,541,090
public void connectToAllAddress() {<NEW_LINE>for (int dstWorkerId = 0; dstWorkerId < networkMap.getWorkerNum(); ++dstWorkerId) {<NEW_LINE>if (dstWorkerId == networkMap.getSelfWorkerId()) {<NEW_LINE>connections[dstWorkerId] = null;<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>String <MASK><NEW_LINE>int port = networkMap.getPo...
hostName = networkMap.getHostNameForWorker(dstWorkerId);
364,204
public State visitMethod(MethodTree node, Void p) {<NEW_LINE>Map<TypeMirror, Map<VariableElement, State>> oldResumeOnExceptionHandler = resumeOnExceptionHandler;<NEW_LINE>resumeOnExceptionHandler = new IdentityHashMap<>();<NEW_LINE>try {<NEW_LINE>variable2State = new HashMap<>();<NEW_LINE>not = false;<NEW_LINE>Element ...
super.visitMethod(node, p);
732,576
public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {<NEW_LINE>boolean compressed = input.isCompressed();<NEW_LINE>if (isRegister(result)) {<NEW_LINE>if (compressed) {<NEW_LINE>crb.recordInlineDataInCode(input);<NEW_LINE>masm.movl(asRegister(result), 0xDEADDEAD);<NEW_LINE>} else {<NEW_LINE>crb....
.asAddress(result), 0xDEADDEAD);
1,591,034
private void jbInit() {<NEW_LINE>dateFrom = new VDate("DateFrom", true, false, true, DisplayType.Date, "DateFrom");<NEW_LINE>dateTo = new VDate("DateTo", true, false, true, DisplayType.Date, "DateTo");<NEW_LINE>CPanel northPanel = new CPanel();<NEW_LINE>northPanel.setLayout(new java.awt.GridBagLayout());<NEW_LINE>north...
new Dimension(800, 600));
1,145,455
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cardToReveal = new CardsImpl();<NEW_LINE>for (int cmc = 3; cmc > 0; cmc--) {<NEW_LINE>TargetCardInLibrary target = new Targ...
player.shuffleLibrary(source, game);
588,875
public static String replace(@Nonnull final String text, @Nonnull final String oldS, @Nonnull final String newS, final boolean ignoreCase) {<NEW_LINE>if (text.length() < oldS.length())<NEW_LINE>return text;<NEW_LINE>StringBuilder newText = null;<NEW_LINE>int i = 0;<NEW_LINE>while (i < text.length()) {<NEW_LINE>final in...
append(text, i, index);
1,421,804
public DescribeAccountLimitsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAccountLimitsResult describeAccountLimitsResult = new DescribeAccountLimitsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
class).unmarshall(context));
631,481
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>labelVer = <MASK><NEW_LINE>textFieldVer = new javax.swing.JTextField();<NEW_LINE>setLayout(new java.awt.GridBagLayout());<N...
new javax.swing.JLabel();
358,212
private void applyPatch(ArrayList<DiffChunk> chunks, ArrayList<Line> lines, boolean reverse, PatchMode patchMode) {<NEW_LINE>chunks <MASK><NEW_LINE>if (reverse) {<NEW_LINE>for (int i = 0; i < chunks.size(); i++) chunks.set(i, chunks.get(i).reverse());<NEW_LINE>lines = Line.reverseLines(lines);<NEW_LINE>}<NEW_LINE>Strin...
= new ArrayList<>(chunks);
915,742
private void writeGloballyTrustedKeys(DependencyVerificationConfiguration configuration) throws IOException {<NEW_LINE>final List<DependencyVerificationConfiguration.TrustedKey> keys = configuration.getTrustedKeys();<NEW_LINE>if (keys.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writer.startElement(TRUSTED_KEYS);<...
String key = e.getKey();
974,350
private ViewServiceConfig createViewServiceConfig(ViewServiceRegistration registration, ViewServiceConfig requestedViewServiceConfig) {<NEW_LINE>ViewServiceConfig viewServiceConfig;<NEW_LINE>if (requestedViewServiceConfig instanceof IntegrationViewServiceConfig) {<NEW_LINE>IntegrationViewServiceConfig requestedIntegrat...
setOMAGServerName(requestedSolutionViewServiceConfig.getOMAGServerName());
1,402,679
public void initialize(URL url, ResourceBundle resourceBundle) {<NEW_LINE>this.resourceBundle = resourceBundle;<NEW_LINE>final <MASK><NEW_LINE>networkExpertSettingsVBox.disableProperty().bind(networkExpertModeCB.selectedProperty().not());<NEW_LINE>pcIpTF.disableProperty().bind(autoDetectIpCB.selectedProperty());<NEW_LI...
AppPreferences preferences = AppPreferences.getInstance();
855,490
protected Map<String, Object> transform(final HTMLPageAsset page, final Map<String, Object> map, final Set<TransformOptions> options, final User user) throws DotSecurityException, DotDataException {<NEW_LINE>final String title = (String) map.get(TITLE_FIELD);<NEW_LINE>if (isNotSet(title)) {<NEW_LINE>map.put(TITLE_FIELD...
contentletVersionInfo.getLiveInode())));
142,802
private Map<Integer, byte[]> removeLowerTransportControlMessageHeader(final ControlMessage message) {<NEW_LINE>final Map<Integer, byte[]> messages = message.getLowerTransportControlPdu();<NEW_LINE>if (messages.size() > 1) {<NEW_LINE>for (Integer index : messages.keySet()) {<NEW_LINE>final byte[] data = messages.get(ind...
data = messages.get(index);
442,814
private List<LayerDeclaration> createDeclarations(AmidstSettings settings, List<Integer> enabledLayers) {<NEW_LINE>LayerDeclaration[] declarations = new LayerDeclaration[LayerIds.NUMBER_OF_LAYERS];<NEW_LINE>// @formatter:off<NEW_LINE>declare(settings, declarations, enabledLayers, LayerIds.ALPHA, null, false, Setting.cr...
OVERWORLD, false, settings.showOceanMonuments);
1,345,171
private void computePopupBounds(Rectangle result, JLayeredPane lPane, int modelSize) {<NEW_LINE>Dimension cSize = comboBar.getSize();<NEW_LINE>int width = getPopupWidth();<NEW_LINE>Point location = new Point(cSize.width - width - 1, <MASK><NEW_LINE>if (SwingUtilities.getWindowAncestor(comboBar) != null) {<NEW_LINE>loca...
comboBar.getBottomLineY() - 1);
461,000
public void executeMojo() throws MojoExecutionException {<NEW_LINE>List<Migration> pendingMigrations;<NEW_LINE>try {<NEW_LINE>String path = toAbsolutePath(getMigrationsPath());<NEW_LINE>getLog().info("Checking " + <MASK><NEW_LINE>openConnection();<NEW_LINE>MigrationManager manager = new MigrationManager(getProject(), p...
getUrl() + " using migrations from " + path);
939,300
ActionResult<Wo> execute(HttpServletRequest request, EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wrapIn = null;<NEW_LINE>Boolean check = true;<NEW_LINE>try {<NEW_LINE>wrapIn = this.convertToWrapIn(jsonElement, Wi.class...
setAppId(appInfo.getId());
1,633,630
public SDeserializerPluginConfiguration convertToSObject(DeserializerPluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SDeserializerPluginConfiguration result = new SDeserializerPluginConfiguration();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(inpu...
setDescription(input.getDescription());
190,127
private void cleanupJobResults(NodeEngine nodeEngine) {<NEW_LINE>int maxNoResults = Math.max(1, nodeEngine.getProperties().getInteger(ClusterProperty.JOB_RESULTS_MAX_SIZE));<NEW_LINE>// delete oldest job results<NEW_LINE>Map<Long<MASK><NEW_LINE>if (jobResultsMap.size() > Util.addClamped(maxNoResults, maxNoResults / MAX...
, JobResult> jobResultsMap = jobResultsMap();
1,696,222
final CreateMountTargetResult executeCreateMountTarget(CreateMountTargetRequest createMountTargetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMountTargetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(createMountTargetRequest));
1,593,723
public void removeFilterEventListener(Session session, Participant subscriber, String streamId, String eventType) throws OpenViduException {<NEW_LINE>String participantPrivateId = ((KurentoSession<MASK><NEW_LINE>if (participantPrivateId != null) {<NEW_LINE>log.debug("Request [REMOVE_FILTER_LISTENER] over stream [{}]", ...
) session).getParticipantPrivateIdFromStreamId(streamId);
1,132,028
public AnnotationMirror greatestLowerBound(AnnotationMirror a1, AnnotationMirror a2) {<NEW_LINE>if (AnnotationUtils.areSame(a1, UNKNOWN)) {<NEW_LINE>return a2;<NEW_LINE>}<NEW_LINE>if (AnnotationUtils.areSame(a2, UNKNOWN)) {<NEW_LINE>return a1;<NEW_LINE>}<NEW_LINE>if (AnnotationUtils.areSame(a1, BOTTOM)) {<NEW_LINE>retu...
IndexChecker) checker.getUltimateParentChecker());
1,677,708
public void run() {<NEW_LINE>try {<NEW_LINE>final boolean succeed = "success".equalsIgnoreCase(status);<NEW_LINE>if ("cancelled".equalsIgnoreCase(status)) {<NEW_LINE>System.out.println("Job status is `cancelled` - exiting");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>System.out.println(String.format("The CI build had...
("Unable to find the issue %s in project %s", issueNumber, issueRepo));
715,508
// todo just calculate log likelihood in the last inter.<NEW_LINE>@Override<NEW_LINE>public void calc(ComContext context) {<NEW_LINE>int stepNo = context.getStepNo();<NEW_LINE>if (!addedIndex && seed != null) {<NEW_LINE>random.reSeed(seed);<NEW_LINE>addedIndex = true;<NEW_LINE>}<NEW_LINE>if (stepNo == 1) {<NEW_LINE>dou...
context.getObj(LdaVariable.lambda);
663,176
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(...
int event = parser.nextInt();
1,133,431
private CRArtifact artifactConfigToCRArtifact(ArtifactTypeConfig artifactTypeConfig) {<NEW_LINE>if (artifactTypeConfig instanceof BuildArtifactConfig) {<NEW_LINE>BuildArtifactConfig buildArtifact = (BuildArtifactConfig) artifactTypeConfig;<NEW_LINE>return new CRBuiltInArtifact(buildArtifact.getSource(), buildArtifact.g...
configurationToCRConfiguration(pluggableArtifact.getConfiguration());
1,508,951
private void residualLumaI16x16(MBlock mBlock, boolean leftAvailable, boolean topAvailable, int mbX, int mbY) {<NEW_LINE>CoeffTransformer.invDC4x4(mBlock.dc);<NEW_LINE>int[] scalingList = getScalingList(0);<NEW_LINE>CoeffTransformer.dequantizeDC4x4(mBlock.dc, s.qp, scalingList);<NEW_LINE>reorderDC4x4(mBlock.dc);<NEW_LI...
ac[0][bInd]);
1,083,711
public static Timestamp toTimestamp(Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (value instanceof Timestamp) {<NEW_LINE>return (Timestamp) value;<NEW_LINE>} else if (value instanceof java.util.Date) {<NEW_LINE>// no nanos here... so hopefully ok<NEW_LINE>return new Timesta...
) value).longValue());
754,464
public void configure() {<NEW_LINE>CamelRouteUtil.setupProperties(getContext());<NEW_LINE>final String maximumRedeliveries = CamelRouteUtil.resolveProperty(getContext(), CamelConstants.EXPORT_BPARTNER_RETRY_COUNT, "0");<NEW_LINE>final String redeliveryDelay = CamelRouteUtil.resolveProperty(getContext(), CamelConstants....
Integer.parseInt(redeliveryDelay)));
903,082
private void reconcileStatusBarStyle(Activity activity, ReadableMap prev, ReadableMap next, boolean firstCall) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>reconcileStatusBarStyleOnM(activity, prev, next, firstCall);<NEW_LINE>}<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLI...
addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
210,492
protected void processOneForForward(Id sourceV, Id targetV) {<NEW_LINE>for (Node source : this.sources.get(sourceV)) {<NEW_LINE>// If have loop, skip target<NEW_LINE>if (source.contains(targetV)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>// If cross point exists, path found, concat them<NEW_LINE>if (this.targetsAll.cont...
path = source.joinPath(target);
1,444,852
private void uninstallCustomApp(String fileName) throws Exception {<NEW_LINE>Nodes nodes = Config.nodes();<NEW_LINE>for (String node : nodes.keySet()) {<NEW_LINE>if (nodes.get(node).getApplication().getEnable()) {<NEW_LINE>logger.print("socket uninstall custom app{} to {}:{}", fileName, node, nodes.get(node).nodeAgentP...
(XGsonBuilder.toJson(commandObject));
677,140
public void logMetrics(String experimentRunId, List<KeyValue> newMetrics) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var experimentRunEntityObj = session.get(ExperimentRunEntity.class, experimentRunId, LockMode.PESSIMISTIC_WRITE);<NEW_LINE>if (experimentRunEntityObj...
.getInstance().getTimeInMillis();
1,322,001
public int fill(Supplier<E> s, int limit) {<NEW_LINE>if (null == s)<NEW_LINE>throw new IllegalArgumentException("supplier is null");<NEW_LINE>if (limit < 0)<NEW_LINE>throw new IllegalArgumentException("limit is negative:" + limit);<NEW_LINE>if (limit == 0)<NEW_LINE>return 0;<NEW_LINE>final int parallelQueuesMask = this...
).getId() & parallelQueuesMask);
56,196
private CompiledCondition generateExpiryCompiledCondition() {<NEW_LINE>MetaStreamEvent tableMetaStreamEvent = new MetaStreamEvent();<NEW_LINE>tableMetaStreamEvent.setEventType(MetaStreamEvent.EventType.TABLE);<NEW_LINE>TableDefinition matchingTableDefinition = TableDefinition.id(cacheTable.getTableDefinition().getId())...
variableExpressionExecutors = new ArrayList<>();
1,852,202
private void replaceLocation(Map<String, String> urlToFileMap, String baseUrl, SimpleValue wsdlImport) throws Exception {<NEW_LINE>String location = wsdlImport.getStringValue();<NEW_LINE>if (location != null) {<NEW_LINE>if (location.startsWith("file:") || location.indexOf("://") > 0) {<NEW_LINE>String newLocation = url...
Exception("Missing local file for [" + newLocation + "]");
188,906
private int[] computeVisibleSpan() {<NEW_LINE>Component parent = pane.getParent();<NEW_LINE>if (parent instanceof JLayeredPane) {<NEW_LINE>parent = parent.getParent();<NEW_LINE>}<NEW_LINE>if (parent instanceof JViewport) {<NEW_LINE>JViewport vp = (JViewport) parent;<NEW_LINE>Point start = vp.getViewPosition();<NEW_LINE...
+ size.getHeight()));