idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
854,606
private void resetOptions() {<NEW_LINE>if (mBinding.drmContentPlaybackSwitch.isChecked() != SettingsStore.DRM_PLAYBACK_DEFAULT) {<NEW_LINE>setDrmContent(SettingsStore.DRM_PLAYBACK_DEFAULT, true);<NEW_LINE>}<NEW_LINE>if (!mBinding.trackingProtectionRadio.getValueForId(mBinding.trackingProtectionRadio.getCheckedRadioButt...
setAutocomplete(SettingsStore.AUTOCOMPLETE_ENABLED, true);
1,292,216
protected Content prepare(@Nonnull Source field, @Nonnull Function<? super String, String> onShow) {<NEW_LINE>Font font = field.getFont();<NEW_LINE>FontMetrics metrics = font == null ? null : field.getFontMetrics(font);<NEW_LINE>int height = metrics == null ? 16 : metrics.getHeight();<NEW_LINE>Dimension size = new Dime...
, 0, 5, 5));
882,262
public final void add(final SolrInputDocument doc, final List<?> value) {<NEW_LINE>assert this.isMultiValued();<NEW_LINE>if (value == null || value.size() == 0) {<NEW_LINE>if (this.type == SolrType.num_integer) {<NEW_LINE>doc.setField(this.getSolrFieldName(), new Integer[0]);<NEW_LINE>} else if (this.type == SolrType.s...
).next() instanceof String);
808,394
// GEN-LAST:event_browseButtonActionPerformed<NEW_LINE>private void searchButtonActionPerformed(ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_searchButtonActionPerformed<NEW_LINE>String zendScript = UiUtils.SearchWindow.search(new UiUtils.SearchWindow.SearchWindowSupport() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>publi...
getMessage(ZendOptionsPanel.class, "LBL_ZendScriptsTitle");
698,626
public static void main(String[] args) throws IOException {<NEW_LINE>// set-up the client<NEW_LINE>AmazonS3 s3client = AmazonS3ClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(credentials)).withRegion(Regions.US_EAST_2).build();<NEW_LINE>AWSS3Service awsService = new AWSS3Service(s3client);<NEW...
S3ObjectInputStream inputStream = s3object.getObjectContent();
1,642,555
private void cacheChanges() {<NEW_LINE>if (io == null) {<NEW_LINE>throw new IllegalStateException("Cannot cache changes: FileIO is null");<NEW_LINE>}<NEW_LINE>ImmutableList.Builder<DataFile> adds = ImmutableList.builder();<NEW_LINE>ImmutableList.Builder<DataFile> deletes = ImmutableList.builder();<NEW_LINE>// read only...
.cachedDeletes = deletes.build();
341,420
private void selectState(CharSequence stateName, int stateIndex, @NonNull Style loadedMapStyle) {<NEW_LINE>if (indexOfState(stateName) == stateIndex) {<NEW_LINE>// Adds a SymbolLayer to display maximum temperature in state<NEW_LINE>SymbolLayer maxTempLayer = (SymbolLayer) loadedMapStyle.getLayer(MAX_TEMP_LAYER_ID);<NEW...
SymbolLayer) loadedMapStyle.getLayer(MIN_TEMP_LAYER_ID);
592,195
public ClusterStateBundle retrieveLastPublishedStateBundle() {<NEW_LINE>Stat stat = new Stat();<NEW_LINE>try {<NEW_LINE>byte[] data = session.getData(zooKeeperRoot + "published_state_bundle", false, stat);<NEW_LINE>lastKnownStateBundleZNodeVersion = stat.getVersion();<NEW_LINE>if (data != null && data.length != 0) {<NE...
maybeLogExceptionWarning(e, "Failed to retrieve last published cluster state bundle from " + "ZooKeeper, will use an empty state as baseline");
332,882
public static void viewActivityLogDetailForResult(Activity activity, SiteModel site, String activityId, boolean isButtonVisible, boolean isRestoreHidden, boolean rewindableOnly) {<NEW_LINE>Map<String, Object> properties = new HashMap<>();<NEW_LINE>properties.put(ACTIVITY_LOG_ACTIVITY_ID_KEY, activityId);<NEW_LINE>Strin...
intent.putExtra(ACTIVITY_LOG_ARE_BUTTONS_VISIBLE_KEY, isButtonVisible);
1,790,480
protected final void bindValues(SQLiteStatement stmt, LocalRepo entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>stmt.bindLong(1, entity.getId());<NEW_LINE>stmt.bindString(2, entity.getName());<NEW_LINE>String description = entity.getDescription();<NEW_LINE>if (description != null) {<NEW_LINE>stmt.bindString(3, descri...
Integer watchersCount = entity.getWatchersCount();
911,549
public static void main(String[] args) throws IOException {<NEW_LINE>// Test set 89.9% for 10 categories<NEW_LINE>ClassifierAndSource cs = FactoryImageClassifier.vgg_cifar10();<NEW_LINE>// ClassifierAndSource cs = FactoryImageClassifier.nin_imagenet(); // Test set 62.6% for 1000 categories<NEW_LINE>File modelPath = Dee...
listByPrefix(imagePath, null, ".jpg");
1,781,746
public final synchronized TreeLogger branch(TreeLogger.Type type, String msg, Throwable caught, HelpInfo helpInfo) {<NEW_LINE>if (msg == null) {<NEW_LINE>msg = "(Null branch message)";<NEW_LINE>}<NEW_LINE>// Compute at which index the new child will be placed.<NEW_LINE>//<NEW_LINE>int childIndex = allocateNextChildInde...
log(type, specialErrorMessage, null);
798,214
final GetDeploymentResult executeGetDeployment(GetDeploymentRequest getDeploymentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeploymentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
443,583
protected org.openide.nodes.Node[] createNodes(Integer nodeId) {<NEW_LINE>DOMNode node = pageModel.getNode(nodeId);<NEW_LINE>org.openide.nodes.Node[] result;<NEW_LINE>if (node == null) {<NEW_LINE>result = null;<NEW_LINE>} else {<NEW_LINE>org.openide.nodes.Node oldParent = node.getParentNode();<NEW_LINE>org.openide.node...
{ node, newParent, oldParent });
1,263,672
// =========== UPDATES ===================<NEW_LINE>public void update(@HttpQueryParameter("queries") String queries, AsynchronousFlow async, Pool pool, ObjectResponse<List<World>> response) {<NEW_LINE>int queryCount = getQueryCount(queries);<NEW_LINE>Future<List<World>> future = pool.withConnection((connection) -> {<N...
).nextInt(1, 10001);
1,716,369
public void preProcess(PreviewModel previewModel) {<NEW_LINE>PreviewProperties properties = previewModel.getProperties();<NEW_LINE>if (properties.getBooleanValue(PreviewProperty.NODE_LABEL_SHORTEN)) {<NEW_LINE>// Shorten labels<NEW_LINE>Item[] nodeLabelsItems = previewModel.getItems(Item.NODE_LABEL);<NEW_LINE>int maxCh...
.getData(NodeItem.Y));
112,906
public FileDownload resumeDownloadFile(ResumableFileDownload resumableFileDownload) {<NEW_LINE>Validate.paramNotNull(resumableFileDownload, "resumableFileDownload");<NEW_LINE>CompletableFuture<CompletedFileDownload> returnFuture = new CompletableFuture<>();<NEW_LINE>DownloadFileRequest originalDownloadRequest = resumab...
DownloadFileRequest newDownloadFileRequest = requestPair.left();
1,217,118
private void updateSidebarVisibility() {<NEW_LINE>Utils.execSWTThread(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>final SWTSkinObjectSash soSash = (SWTSkinObjectSash) skin.getSkinObject("sidebar-sash");<NEW_LINE>if (soSash == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>...
getControl().moveAbove(null);
364,385
public <X extends HasWord> void runTagger(Iterable<List<X>> document, BufferedWriter writer, OutputStyle outputStyle) throws IOException {<NEW_LINE>Timing t = new Timing();<NEW_LINE>// Counts<NEW_LINE>int numWords = 0;<NEW_LINE>int numSentences = 0;<NEW_LINE>boolean outputVerbosity = config.getOutputVerbosity();<NEW_LI...
new SentenceTaggingProcessor(this, outputLemmas));
1,008,674
final GetConferencePreferenceResult executeGetConferencePreference(GetConferencePreferenceRequest getConferencePreferenceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConferencePreferenceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,802,757
public int alterNameAndTypeAndFlag(String tableSchema, String originName, String newName, int tableType, long flag) {<NEW_LINE>try {<NEW_LINE>final Map<Integer, ParameterContext> params = new HashMap<>(12);<NEW_LINE>MetaDbUtil.setParameter(1, params, ParameterMethod.setString, newName);<NEW_LINE>MetaDbUtil.setParameter...
params, ParameterMethod.setString, tableSchema);
1,500,648
public Control createViewControl(Composite parent, ViewMode viewMode) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>TableColumnLayout layout = new TableColumnLayout();<NEW_LINE>container.setLayout(layout);<NEW_LINE>trades = new TableViewer(container, SWT.FULL_SELECTION);<NEW_LINE>ColumnEdit...
getPreferenceStore(), trades, layout);
1,254,468
public void endVisit() {<NEW_LINE>if (sequences.size() > 0) {<NEW_LINE>GraphGeneratorVisitor.Sequence mainSequence = sequences.get(0);<NEW_LINE>// iterate until nothing left to do<NEW_LINE>int tooMany = 0;<NEW_LINE>while (!mainSequence.outstandingTransitions.isEmpty() && tooMany < 50) {<NEW_LINE>List<Context.Transition...
+ nextTransitions.get(0));
424,567
public static boolean onOptionsItemSelected(MenuItem item, SharedPreferences preferences) {<NEW_LINE>int itemId = item.getItemId();<NEW_LINE>int i = <MASK><NEW_LINE>if (itemId == R.id.item_sort_by_name) {<NEW_LINE>i = (i % 2 == 0) ? 0 : 1;<NEW_LINE>} else if (itemId == R.id.item_sort_by_package_name) {<NEW_LINE>i = (i ...
preferences.getInt("list_sort", 0);
32,561
protected void constructDom() {<NEW_LINE>String labelId = DOM.createUniqueId();<NEW_LINE>addStyleName(CLASSNAME);<NEW_LINE>String treeItemId = DOM.createUniqueId();<NEW_LINE>getElement().setId(treeItemId);<NEW_LINE>Roles.getTreeitemRole().set(getElement());<NEW_LINE>Roles.getTreeitemRole().setAriaSelectedState(getEleme...
childNodeContainer.setStyleName(CLASSNAME + "-children");
1,423,883
public boolean start() {<NEW_LINE>InfluxDbIO.Read spec = source.spec;<NEW_LINE>try (InfluxDB influxDB = getConnection(spec.dataSourceConfiguration(), spec.disableCertificateValidation())) {<NEW_LINE>final String db = spec.database();<NEW_LINE>influxDB.setDatabase(spec.database());<NEW_LINE>influxDB.setRetentionPolicy(s...
.getSeries().iterator();
1,637,674
private String handleJmxMetric(MonitorConfig config, TagList tags) {<NEW_LINE>String domain = cleanValue(tags<MASK><NEW_LINE>String type = cleanValue(tags.getTag("Jmx.type"), false);<NEW_LINE>String instanceName = cleanValue(tags.getTag("Jmx.instance"), false);<NEW_LINE>String name = cleanValue(tags.getTag("Jmx.name"),...
.getTag(JMX_DOMAIN_KEY), true);
1,685,069
public void validateCertificateChain(List<X509Certificate> certificateChain, String applicationUri, String... validHostNames) throws UaException {<NEW_LINE>validateCertificateChain(certificateChain);<NEW_LINE>X509Certificate certificate = certificateChain.get(0);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (UaExcep...
CertificateValidationUtil.checkApplicationUri(certificate, applicationUri);
914,233
public CurrentRevision unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CurrentRevision currentRevision = new CurrentRevision();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
1,142,388
private Init<M, F> maybeWrapInit(@Nullable Init<M, F> delegate, MobiusLoop.Factory<M, E, F> loopFactory) {<NEW_LINE>if (delegate == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// In this configuration, the controller has an `Init` function, which it will invoke when<NEW_LINE>// starting the loop (this means the l...
M, E, F>) loopFactory;
816,298
public void removeProtocolItems(TransactionCommon transaction) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "removeProtocolItems", transaction);<NEW_LINE>Transaction msTran = _messageProcessor.resolveAndEnlistMsgStoreTransaction(transact...
e, "com.ibm.ws.sib.processor.impl.destination.AbstractRemoteSupport.removeProtocolItems", "1:636:1.25", this);
1,074,140
public void importResources(WizardDescriptor wiz) throws IOException {<NEW_LINE>List<String> xsdFileList = (List<String>) wiz.getProperty(JAXBWizModuleConstants.XSD_FILE_LIST);<NEW_LINE>if (xsdFileList != null) {<NEW_LINE>String schemaName = (String) wiz.getProperty(JAXBWizModuleConstants.SCHEMA_NAME);<NEW_LINE>boolean...
URL schemaURL = new URL(url);
1,404,794
public void queueEvent(FacesEvent event) {<NEW_LINE>FacesContext context = getFacesContext();<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM);<NEW_LINE>if (eventName != null && event...
ajaxBehaviorEvent.getBehavior(), unselectedItemValue);
392,393
private void copyReadEventToEventBuffer(ReadEventsReadPosition readPos, ReadEventsWritePosition writePos, Iterable<InternalDatabusEventsListener> eventListeners, DbusEventsStatisticsCollector statsCollector, boolean logDebugEnabled) {<NEW_LINE>final ByteBuffer readBuffer = readPos.getReadBuffer();<NEW_LINE>final int nu...
() + " buf:" + toString();
1,761,013
private int firstGuesses(int number, int target, int low, int high) {<NEW_LINE>// Check if it is in the first half<NEW_LINE>int firstGuessIndex = number / 2;<NEW_LINE>if (firstGuessIndex == target) {<NEW_LINE>StdOut.println("Found it!");<NEW_LINE>return firstGuessIndex;<NEW_LINE>}<NEW_LINE>// Check if it is in the seco...
secondGuessIndex, false, secondGuessIndex, high);
1,158,501
public OptExpression visitPhysicalDistribution(OptExpression exchangeExpr, DecodeContext context) {<NEW_LINE>visitProjectionBefore(exchangeExpr, context);<NEW_LINE>OptExpression childExpr = exchangeExpr.inputAt(0);<NEW_LINE>context.hasEncoded = false;<NEW_LINE>OptExpression newChildExpr = childExpr.getOp().<MASK><NEW_L...
accept(this, childExpr, context);
1,063,350
public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>String[] email = handler.getStringArray("email");<NEW_LINE>String[] cc = handler.getStringArray("cc");<NEW_LINE>String[] bcc = handler.getStringArray("bcc");<NEW_LINE>String title = handler.getString("title");<NEW_LINE>String templatePa...
templateComponent.getWebConfiguration(), model);
1,333,734
public String[] promptKeyboardInteractive(String destination, String name, String instruction, String[] prompt, boolean[] echo) {<NEW_LINE>// diagnostics for #230248<NEW_LINE>if (LOGGER.isLoggable(Level.FINE)) {<NEW_LINE>LOGGER.fine("promptKeyboardInteractive called with these params:");<NEW_LINE>LOGGER.log(Level.FINE,...
, Arrays.toString(echo));
486,887
public void addFacetValues(Context context, final DiscoverResult searchResult, final SearchResultsRest resultsRest, final DiscoveryConfiguration configuration, final Projection projection) {<NEW_LINE>List<DiscoverySearchFilterFacet> facets = configuration.getSidebarFacets();<NEW_LINE>for (DiscoverySearchFilterFacet fie...
facetValueConverter.convert(value, projection);
123,282
protected boolean createSubstitutes(List<ParseTreeNode> substitutes, Map<String, ParseTreeNode> bindings) {<NEW_LINE>int subsSize = substitutes.size();<NEW_LINE>if (getKey().createSubstitutes(substitutes, bindings)) {<NEW_LINE>int subsSizeKey = substitutes.size();<NEW_LINE>if (subsSizeKey == subsSize + 1 && substitutes...
int subsSizeValue = substitutes.size();
1,629,751
private static void purgeFiles() {<NEW_LINE>File purge = new File("purge");<NEW_LINE>String action = CONFIGURATION.getPluginPurgeAction();<NEW_LINE>if (action.equalsIgnoreCase("none")) {<NEW_LINE>if (!purge.delete()) {<NEW_LINE>LOGGER.error(<MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try (FileInputStream fis...
"Could not delete purgefile: \"{}\"", purge.getAbsolutePath());
955,908
private Map<String, Object> toMap(Xpp3Dom node) {<NEW_LINE>Map<String, Object> map = new LinkedHashMap<>();<NEW_LINE>int n = node.getChildCount();<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>Xpp3Dom child = node.getChild(i);<NEW_LINE>String childName = child.getName();<NEW_LINE>String singularName = null;<NEW_LINE>...
substring(0, childNameLength - 3);
1,260,598
/*<NEW_LINE>b2Contact* contact = (b2Contact*)addr;<NEW_LINE>b2WorldManifold manifold;<NEW_LINE>contact->GetWorldManifold(&manifold);<NEW_LINE>int numPoints = contact->GetManifold()->pointCount;<NEW_LINE><NEW_LINE>tmp[0] = manifold.normal.x;<NEW_LINE>tmp[<MASK><NEW_LINE><NEW_LINE>for( int i = 0; i < numPoints; i++ )<NEW...
1] = manifold.normal.y;
496,031
protected void intro(EntityType model, CodeWriter writer) throws IOException {<NEW_LINE>String simpleName = model.getSimpleName();<NEW_LINE>Type queryType = typeMappings.getPathType(model, model, false);<NEW_LINE>// package<NEW_LINE>if (!queryType.getPackageName().isEmpty()) {<NEW_LINE>writer.packageDecl(queryType.getP...
model.hashCode() + "L");
815,527
private void applyConfigurationScript(File configScript, CompilerConfiguration configuration) {<NEW_LINE>VersionNumber version = parseGroovyVersion();<NEW_LINE>if (version.compareTo(VersionNumber.parse("2.1")) < 0) {<NEW_LINE>throw new GradleException("Using a Groovy compiler configuration script requires Groovy 2.1+ b...
configScript.getAbsolutePath(), e);
409,925
public static ListNamespacesResponse unmarshall(ListNamespacesResponse listNamespacesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNamespacesResponse.setRequestId(_ctx.stringValue("ListNamespacesResponse.RequestId"));<NEW_LINE>List<Namespace> namespaces <MASK><NEW_LINE>for (int i = 0; i < _ctx.lengthValue("ListNam...
= new ArrayList<Namespace>();
451,144
protected Map<String, Object> loadParams(MenuItem item) {<NEW_LINE>Element descriptor = item.getDescriptor();<NEW_LINE>if (descriptor == null) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();<NEW_LINE>for (Element element : descriptor.e...
caption = menuConfig.getItemCaption(item);
602,915
public static boolean processTextOccurrences(@Nonnull final PsiElement element, @Nonnull String stringToSearch, @Nonnull GlobalSearchScope searchScope, @Nonnull final Processor<UsageInfo> processor, @Nonnull final UsageInfoFactory factory) {<NEW_LINE>ThrowableComputable<PsiSearchHelper, RuntimeException> action1 = () -...
getInstance(element.getProject());
588,224
private boolean addConfiguration(Configuration configuration) {<NEW_LINE>String name = configuration.getClass().getName();<NEW_LINE>// Is this configuration known?<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>if (!__knownByClassName.contains(name))<NEW_LINE>LOG.warn("Unknown configuration {}. Not declared for ServiceL...
Configuration c = i.next();
1,046,194
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select irstream symbol as currSymbol, " + " prior(0, symbol) as prior0Symbol, " + " prior(1, symbol) as prior1Symbol, " + " prior(2, symbol) as prior2Symbol, " + " prior(3, symbol) as ...
tryPriorSortWindow(env, epl, milestone);
828,117
private StateChange remoteRestart() {<NEW_LINE>boolean debugMode = instance.getJvmMode() == PayaraJvmMode.DEBUG;<NEW_LINE>// Wrong scenario as default.<NEW_LINE>boolean debugPortActive = true;<NEW_LINE>int debugPort = -1;<NEW_LINE>if (debugMode) {<NEW_LINE>debugPort = instance.getDebugPort();<NEW_LINE>debugMode = updat...
CommandRestartDAS.restartDAS(instance, debugMode);
1,637,342
// Get specified number of catchup rows<NEW_LINE>public boolean streamCatchupRows(Checkpoint currState, BootstrapEventCallback callBack) throws SQLException, BootstrapProcessingException, BootstrapDatabaseTooOldException {<NEW_LINE>assert (currState.getConsumptionMode() == DbusClientMode.BOOTSTRAP_CATCHUP);<NEW_LINE>bo...
curSrcId, currState.getBootstrapTargetScn());
463,790
public OCacheEntry loadPageForRead(long fileId, final long pageIndex, final boolean checkPinnedPages, final int pageCount) throws IOException {<NEW_LINE>assert pageCount > 0;<NEW_LINE>fileId = checkFileIdCompatibility(fileId, storageId);<NEW_LINE>if (deletedFiles.contains(fileId)) {<NEW_LINE>throw new OStorageException...
changesContainer = fileChanges.get(fileId);
737,773
public void userDroppedTopComponentsIntoEmptyEditor(TopComponentDraggable draggable) {<NEW_LINE>// PENDING<NEW_LINE>// NOI18N<NEW_LINE>ModeImpl mode = (ModeImpl) WindowManagerImpl.getInstance().findMode("editor");<NEW_LINE>if (null == mode || mode.getState() == Constants.MODE_STATE_SEPARATED) {<NEW_LINE>for (ModeImpl m...
getMode(), mode, 0);
203,439
protected void handle(final SyncImageSizeOnBackupStorageMsg msg) {<NEW_LINE><MASK><NEW_LINE>ImageInventory image = msg.getImage();<NEW_LINE>GetImageSizeCmd cmd = new GetImageSizeCmd();<NEW_LINE>cmd.imageUuid = image.getUuid();<NEW_LINE>cmd.uuid = self.getUuid();<NEW_LINE>ImageBackupStorageRefInventory ref = CollectionU...
final SyncImageSizeOnBackupStorageReply reply = new SyncImageSizeOnBackupStorageReply();
745,691
public static ListSkillGroupsOfUserResponse unmarshall(ListSkillGroupsOfUserResponse listSkillGroupsOfUserResponse, UnmarshallerContext context) {<NEW_LINE>listSkillGroupsOfUserResponse.setRequestId(context.stringValue("ListSkillGroupsOfUserResponse.RequestId"));<NEW_LINE>listSkillGroupsOfUserResponse.setSuccess(contex...
+ "].Skill.OutboundPhoneNumbers[" + j + "].Trunks"));
692,829
// Inject a new submission<NEW_LINE>public String injestNewSubmission(WorkItem item) {<NEW_LINE>Connection c = null;<NEW_LINE>int rowCount = 0;<NEW_LINE>try {<NEW_LINE>// Create a Connection object<NEW_LINE>c = ConnectionHelper.getConnection();<NEW_LINE>// Use a prepared statement<NEW_LINE>PreparedStatement ps = null;<...
("yyyy/MM/dd").parse(sDate1);
1,526,518
public void onBreakBlock(final BreakBlockEvent event) {<NEW_LINE>// Region support disabled<NEW_LINE>if (!isRegionSupportEnabled(event.getWorld()))<NEW_LINE>return;<NEW_LINE>WorldConfiguration config = getWorldConfig(event.getWorld());<NEW_LINE>RegionQuery query = WorldGuard.getInstance().getPlatform().getRegionContain...
.OTHER_EXPLOSION), config.explosionFlagCancellation);
1,523,684
protected void process(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, WindowState state) {<NEW_LINE>synchronized (state) {<NEW_LINE>long currentTime = siddhiQueryContext.getSiddhiAppContext().getTimestampGenerator().currentTime();<NEW_LINE>StreamEvent stre...
state.sortedWindow.add(clonedEvent);
1,606,825
private static String valueOf(Condition condition) {<NEW_LINE>if (condition instanceof AttributeCondition) {<NEW_LINE>AttributeCondition c = (AttributeCondition) condition;<NEW_LINE>switch(c.getConditionType()) {<NEW_LINE>case Condition.SAC_ATTRIBUTE_CONDITION:<NEW_LINE>return "[" + c.getLocalName() + (c.getValue() != ...
return "#" + c.getValue();
1,115,830
public void generateAccountSasWithContext() {<NEW_LINE>ShareServiceAsyncClient fileServiceAsyncClient = createAsyncClientWithCredential();<NEW_LINE>// BEGIN: com.azure.storage.file.share.ShareServiceAsyncClient.generateAccountSas#AccountSasSignatureValues-Context<NEW_LINE>AccountSasPermission permissions = new AccountS...
new Context("key", "value"));
1,618,337
public List<DataFetcherResult<Assertion>> batchLoad(@Nonnull List<String> urns, @Nonnull QueryContext context) throws Exception {<NEW_LINE>final List<Urn> assertionUrns = urns.stream().map(this::getUrn).collect(Collectors.toList());<NEW_LINE>try {<NEW_LINE>final Map<Urn, EntityResponse> entities = _entityClient.batchGe...
collect(Collectors.toList());
702,422
public MergeResult merge(String branch, Sequence<?> commits, Object msg) throws RepoException, ValidationException, EvalException, IOException {<NEW_LINE>ValidationException.checkCondition(!commits.isEmpty(), "At least one commit should be passed to merge");<NEW_LINE>GitRepository withWorktree = this.repo.withWorkTree(...
withWorktree.simpleCommand("reset", "--hard");
1,843,237
Mono<Response<ShareDirectoryAsyncClient>> renameWithResponse(ShareFileRenameOptions options, Context context) {<NEW_LINE><MASK><NEW_LINE>context = context == null ? Context.NONE : context;<NEW_LINE>ShareRequestConditions sourceRequestConditions = options.getSourceRequestConditions() == null ? new ShareRequestConditions...
StorageImplUtils.assertNotNull("options", options);
615,208
// Emphasize parts encloses in "[[*]]" tags<NEW_LINE>private String evaluateEmphasis(String message, Ansi.Color msgColor) {<NEW_LINE>// Split but keep the content by splitting on [[ and ]] separately when they<NEW_LINE>// are followed or preceded by their counterpart. This lets the split retain<NEW_LINE>// the characte...
new StringBuilder(parts[0]);
192,873
public static Number round(Number n, Number precision) throws ArithmeticException {<NEW_LINE>long longPrecision = precision.longValue();<NEW_LINE>if (n instanceof Long || n instanceof Integer || n instanceof Short || n instanceof Byte) {<NEW_LINE>return convertToIntegerType(round(n.longValue(), longPrecision), n.getCla...
middleResult >= 0 ? 1 : -1;
1,135,867
public void handleDelivery(String consumerTag, Envelope envelope, BasicProperties properties, byte[] body) throws IOException {<NEW_LINE>String decodedBody;<NEW_LINE>try {<NEW_LINE>decodedBody = new String(body, "UTF-8");<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE>// can't happen<NEW_LINE>throw new Ru...
JSONObject jo = new JSONObject(decodedBody);
106,609
private static void validateExecutableStage(String id, PTransform transform, Components outerComponents, Set<String> requirements) throws Exception {<NEW_LINE>ExecutableStagePayload payload = ExecutableStagePayload.parseFrom(transform.getSpec().getPayload());<NEW_LINE>// Everything within an ExecutableStagePayload uses...
), "ExecutableStage %s uses unknown transform %s", id, subtransformId);
136,347
private Future<Void> reconcileOnResourceChange(Reconciliation reconciliation, LogContext logContext, KafkaTopic topicResource, Topic k8sTopic, boolean isModify) {<NEW_LINE><MASK><NEW_LINE>return checkForNameChange(topicName, topicResource).onComplete(nameChanged -> {<NEW_LINE>if (nameChanged.failed()) {<NEW_LINE>enqueu...
TopicName topicName = new TopicName(topicResource);
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 = IERenderTypes.getFullbrightTranslucent(atlas);
647,494
private boolean saveFileToExternalStorage() {<NEW_LINE>// build paths<NEW_LINE>mArcGISTempFolderPath = getExternalFilesDir(null) + File.separator + getResources().getString(R.string.pin_blank_orange_folder_name);<NEW_LINE>mPinBlankOrangeFilePath = mArcGISTempFolderPath + File.separator + getResources().getString(R.stri...
File folder = new File(mArcGISTempFolderPath);
1,218,991
private IRubyObject addInternal(ThreadContext context, RubyBigDecimal val, IRubyObject b, IRubyObject digits) {<NEW_LINE>if (val == null) {<NEW_LINE>// TODO:<NEW_LINE>// MRI behavior: Call "+" or "add", depending on the call.<NEW_LINE>// But this leads to exceptions when Floats are added. See:<NEW_LINE>// http://blade....
prec = getPositiveInt(context, digits);
310,074
// Driver program to test above<NEW_LINE>public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Input : ");<NEW_LINE>System.out.println("Enter the size of matrix : ");<NEW_LINE>int size = sc.nextInt();<NEW_LINE>int[][] matrix = <MASK><NEW_LINE>System.out.prin...
new int[size][size];
473,624
public void mapPartition(Iterable<Row> values, Collector<Tuple2<Integer, Row>> out) {<NEW_LINE>int parallel = getIterationRuntimeContext().getNumberOfParallelSubtasks();<NEW_LINE>int nextSuperStep = getIterationRuntimeContext().getSuperstepNumber();<NEW_LINE>int start = (nextSuperStep - 1) * parallel, end = nextSuperSt...
(), i, row));
1,660,211
public void selectLiquidKeyboard(final int tabIndex) {<NEW_LINE>final LinearLayout symbolInputView = inputRootBinding != null ? inputRootBinding.symbol.symbolInput : null;<NEW_LINE>final LinearLayout mainInputView = inputRootBinding != null ? inputRootBinding.main.mainInput : null;<NEW_LINE>if (symbolInputView != null)...
setLand(orientation == Configuration.ORIENTATION_LANDSCAPE);
837,519
private void mergeMetatypes(Metatype metatype1, Metatype metatype2) {<NEW_LINE>List<MetatypeDesignate> m2Designates = metatype2.getDesignates();<NEW_LINE>for (MetatypeDesignate m2Designate : m2Designates) {<NEW_LINE>MetatypeDesignate m1MatchingDesignate;<NEW_LINE>if (m2Designate.getFactoryPid() != null)<NEW_LINE>m1Matc...
getOcdById(m2Ocd.getId());
1,778,617
public void run() {<NEW_LINE>CommandLine parent = self == null ? null : self.getParent();<NEW_LINE>if (parent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Help.ColorScheme colors = colorScheme != null ? colorScheme : Help.defaultColorScheme(ansi);<NEW_LINE>if (commands != null) {<NEW_LINE>Map<String, CommandLine> pa...
.getCommandSpec().subcommands();
1,451,043
public static ExampleMarketDataBuilder ofResource(String resourceRoot, ClassLoader classLoader) {<NEW_LINE>// classpath resources are forward-slash separated<NEW_LINE>String qualifiedRoot = resourceRoot;<NEW_LINE>qualifiedRoot = qualifiedRoot.startsWith("/") ? qualifiedRoot.substring(1) : qualifiedRoot;<NEW_LINE>qualif...
"/") ? qualifiedRoot : qualifiedRoot + "/";
84,187
public void run() {<NEW_LINE>try {<NEW_LINE>// Determine first white char before dotPos<NEW_LINE>int rsPos = Utilities.getRowStart(doc, dotPos);<NEW_LINE>int startPos = Utilities.getFirstNonWhiteBwd(doc, dotPos, rsPos);<NEW_LINE>startPos = (startPos >= 0) ? (startPos + 1) : rsPos;<NEW_LINE>int startCol = Utilities.getV...
getChars(startPos, dotPos - startPos);
704,379
public void flatMap(BaseRow input, Collector<BaseRow> out) throws Exception {<NEW_LINE>GenericRow genericRow = (GenericRow) input;<NEW_LINE>Map<String, Object> inputParams = Maps.newHashMap();<NEW_LINE>for (Integer conValIndex : sideInfo.getEqualValIndex()) {<NEW_LINE>Object equalObj = genericRow.getField(conValIndex);...
getEqualFieldList().get(conValIndex);
1,753,360
public static void smokeTest() {<NEW_LINE>// Construct a hash map suitable for a doc.<NEW_LINE>HashMap<Object, Object> h1 = new HashMap<Object, Object>();<NEW_LINE>HashMap<Object, Object> h2 = new HashMap<Object, Object>();<NEW_LINE>HashMap<Object, Object> h3 = new <MASK><NEW_LINE>ArrayList<Object> a1 = new ArrayList<O...
HashMap<Object, Object>();
1,448,295
private void requestMemberListUpdateIfUnknownMembersFound(Address sender, InternalPartition[] partitions) {<NEW_LINE>ClusterServiceImpl clusterService = node.clusterService;<NEW_LINE>ClusterState clusterState = clusterService.getClusterState();<NEW_LINE>Set<PartitionReplica> <MASK><NEW_LINE>for (InternalPartition parti...
unknownReplicas = new HashSet<>();
1,579,688
protected void handleRequest(final HttpServletRequest request, final HttpServletResponse response, final HttpSession hSession) throws ServletException, IOException {<NEW_LINE>final PrintWriter out = response.getWriter();<NEW_LINE>final long start = System.nanoTime();<NEW_LINE>// Pick a random timeout point between [TIM...
msgs = user.getNextQueuedMessages(MAX_MESSAGES_PER_POLL);
1,033,998
public final DirectiveContext directive() throws RecognitionException {<NEW_LINE>DirectiveContext _localctx = new DirectiveContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 10, RULE_directive);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(120);<NEW_LINE>_loc...
_la = _input.LA(1);
1,248,517
static void writeDynamicRecord(WritableChannel channel, DynamicRecord record) throws IOException {<NEW_LINE>// id+type+in_use(byte)+nr_of_bytes(int)+next_block(long)<NEW_LINE>if (record.inUse()) {<NEW_LINE>byte inUse = Record.IN_USE.byteValue();<NEW_LINE>if (record.isCreated()) {<NEW_LINE>inUse |= Record.CREATED_IN_TX;...
()).put(inUse);
255,307
public ActionResult<Wo> call() throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Work work = emc.find(workId, Work.class);<NEW_LINE>emc.beginTransaction(DocumentVersion.class);<NEW_LINE>DocumentVersion documentVersion = new DocumentVersion();<NEW...
setData(wi.getData());
129,177
private static ConstructingObjectParser<CategoryDefinition, Void> createParser(boolean ignoreUnknownFields) {<NEW_LINE>ConstructingObjectParser<CategoryDefinition, Void> parser = new ConstructingObjectParser<>(TYPE.getPreferredName(), ignoreUnknownFields, a -> new CategoryDefinition((String) a[0]));<NEW_LINE>parser.dec...
declareString(CategoryDefinition::setRegex, REGEX);
237,609
protected static <FILTER extends SorterFilter<FILTER>> void validateAndSaveSorterFilter(GuiFilter<FILTER, ?> guiFilter, GuiTextField minField, GuiTextField maxField) {<NEW_LINE>// Note: This is here not in GuiSorterFilterHelper so that it can access the saveFilter/filterSaveFailed methods<NEW_LINE>if (guiFilter.filter....
parseInt(maxField.getText());
826,249
private void printClass(TypeElement typeElement, @Nullable String outerClass) {<NEW_LINE>indent();<NEW_LINE>List<? extends AnnotationMirror> teannos = typeElement.getAnnotationMirrors();<NEW_LINE>if (teannos != null && !teannos.isEmpty()) {<NEW_LINE>for (AnnotationMirror am : teannos) {<NEW_LINE>out.println(am);<NEW_LI...
formatType, typeElement.getInterfaces());
576,561
private static void dumpMethodAnnotations(PrintStream out, J9ROMMethodPointer romMethod) throws CorruptDataException {<NEW_LINE>U32Pointer methodAnnotationData = ROMHelp.getMethodAnnotationsDataFromROMMethod(romMethod);<NEW_LINE>U32Pointer parametersAnnotationData = ROMHelp.getParameterAnnotationsDataFromROMMethod(romM...
, data.getHexAddress()));
1,665,524
public boolean test(T value) {<NEW_LINE>Comparator<T> cmp = literal.comparator();<NEW_LINE>switch(op()) {<NEW_LINE>case LT:<NEW_LINE>return cmp.compare(value, literal.value()) < 0;<NEW_LINE>case LT_EQ:<NEW_LINE>return cmp.compare(value, literal.value()) <= 0;<NEW_LINE>case GT:<NEW_LINE>return cmp.compare(value, literal...
literal.value()) >= 0;
613,158
public DescribeFleetMetricResult describeFleetMetric(DescribeFleetMetricRequest describeFleetMetricRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
328,994
public void outAMethodMember(AMethodMember node) {<NEW_LINE>Type type;<NEW_LINE>String name;<NEW_LINE>List<Type> parameterList <MASK><NEW_LINE>List throwsClause = null;<NEW_LINE>JimpleBody methodBody = null;<NEW_LINE>if (node.getMethodBody() instanceof AFullMethodBody) {<NEW_LINE>methodBody = (JimpleBody) mProductions....
= new ArrayList<Type>();
73,255
public static DescribeStratetyDetailResponse unmarshall(DescribeStratetyDetailResponse describeStratetyDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeStratetyDetailResponse.setRequestId(context.stringValue("DescribeStratetyDetailResponse.RequestId"));<NEW_LINE>Strategy strategy = new Strategy();<NEW_LI...
(context.stringValue("DescribeStratetyDetailResponse.Strategy.Name"));
1,654,556
public void addProxyHandler(Channel channel) {<NEW_LINE>Objects.requireNonNull(channel, "channel");<NEW_LINE><MASK><NEW_LINE>pipeline.addFirst(NettyPipeline.ProxyHandler, newProxyHandler());<NEW_LINE>// For SOCKS proxy, the netty SOCKS handlers may register listeners in channel promises, so we need to register a<NEW_LI...
ChannelPipeline pipeline = channel.pipeline();
756,477
protected Key doJwkRemote(String kid, String x5t, String use, boolean useSystemPropertiesForHttpClientConnections, JwkKeyType keyType) throws KeyStoreException {<NEW_LINE>String jsonString = null;<NEW_LINE>locationUsed = jwkEndpointUrl;<NEW_LINE>if (locationUsed == null) {<NEW_LINE>locationUsed = keyLocation;<NEW_LINE>...
jsonString = getHTTPRequestAsString(client, locationUsed);
892,349
public void performOperationStep(DeploymentOperation operationContext) {<NEW_LINE>final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();<NEW_LINE>final AbstractProcessApplication processApplication = operationContext.getAttachment(PROCESS_APPLICATION);<NEW_LINE>ClassLoader classLoader...
configurationClassName, classLoader, ProcessEngineConfigurationImpl.class);
482,157
public Result apply(UnionNode node, Captures captures, Context context) {<NEW_LINE>long emptyBranches = node.getSources().stream().filter(source -> isEmpty(source, context.getLookup())).count();<NEW_LINE>if (emptyBranches == 0) {<NEW_LINE>return Result.empty();<NEW_LINE>}<NEW_LINE>if (emptyBranches == node.getSources()...
column).get(i));
233,282
private void validateEndpointList(List<?> list) throws IllegalArgumentException {<NEW_LINE>if (list.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Object element : list) {<NEW_LINE>if (element == null) {<NEW_LINE>throw new IllegalArgumentException(RESTClientMessagesUtil.getMessage<MASK><NEW_LINE>} else if (elem...
(RESTClientMessagesUtil.INVALID_ENDPOINT, "null"));
1,500,622
public UserKeyPairContainer requestSystemRescueKeyPair(String xSdsDateFormat, String version, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/settings/keypair";<NEW_LINE>// query params<NEW_LINE>List<Pair>...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);