idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
315,730
private void handle(APIUpdateLoadBalancerListenerMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return getSyncId();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>APIUpdateLoadB...
getUuid(), LoadBalancerListenerVO.class);
272,255
public static int[] normalizeAxis(int rank, int... axis) {<NEW_LINE>if (axis == null || axis.length == 0)<NEW_LINE>return new int[] { Integer.MAX_VALUE };<NEW_LINE>if (rank == 0) {<NEW_LINE>if (axis.length != 1 || (axis[0] != 0 && axis[0] != Integer.MAX_VALUE)) {<NEW_LINE>throw new ND4JIllegalStateException("Array axis...
+ Arrays.toString(axis));
1,354,122
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final Project p = e.getDataContext().getData(CommonDataKeys.PROJECT);<NEW_LINE>final String file = Messages.showInputDialog(p, "Enter path to the file comments will be extracted to", "Comments File Path", Messages.getQuestionIcon());<NEW_LINE>try {<NEW_LINE>final ...
"Comments in " + p.getName());
840,927
protected String convertJavaTypeToWDLType(final WorkflowOutput workflowOutput, final Class<?> argumentClass, final String docType, final String sourceContext) {<NEW_LINE>String convertedWDLType;<NEW_LINE>if (FeatureInput.class.isAssignableFrom(argumentClass)) {<NEW_LINE>if (!docType.contains(FeatureInput.class.getSimpl...
"FeatureInput\\[[a-zA-Z0-9?]+\\]", typeConversionPair.getValue());
277,774
private void generateDynamicVirtualTable(String name, ValueType type, String enumConstants) {<NEW_LINE>codeWriter.println(".parent = {").indent();<NEW_LINE>generateRuntimeClassInitializer(type, enumConstants, false, 0);<NEW_LINE>codeWriter.outdent().println("}");<NEW_LINE>String[] parentClasses;<NEW_LINE>if (type insta...
getClassSource().get(className);
1,163,591
public List<Embedding> translate(Snapshot snapshot) {<NEW_LINE>TokenHierarchy<?> th = snapshot.getTokenHierarchy();<NEW_LINE>if (th == null) {<NEW_LINE>// the token hierarchy may be null if the language is not initialized yet<NEW_LINE>// for example if ergonomics is used and j2ee cluster not activated<NEW_LINE>return C...
embedded(HTMLTokenId.language());
1,528,364
private void logXmlExtraProblem(CategorizedProblem problem, int globalErrorCount, int localErrorCount) {<NEW_LINE>final int sourceStart = problem.getSourceStart();<NEW_LINE>final int sourceEnd = problem.getSourceEnd();<NEW_LINE>boolean isError = problem.isError();<NEW_LINE>HashMap<String, Object> parameters = new HashM...
PROBLEM_MESSAGE, parameters, true, true);
560,220
private boolean noticeContainsPointInView(ParserNotice notice, Point p) {<NEW_LINE>try {<NEW_LINE>int start;<NEW_LINE>int end;<NEW_LINE>if (notice.getKnowsOffsetAndLength()) {<NEW_LINE>start = notice.getOffset();<NEW_LINE>end = start + notice.getLength() - 1;<NEW_LINE>} else {<NEW_LINE>Document doc = textArea.getDocume...
= elem.getEndOffset() - 1;
510,145
private void endCallItemUpdate(FreeswitchBindingConfig config) {<NEW_LINE>OnOffType activeState = OnOffType.OFF;<NEW_LINE>;<NEW_LINE>CallType callType = (CallType) CallType.EMPTY;<NEW_LINE>StringType callerId = StringType.EMPTY;<NEW_LINE>ListIterator<String> it = new ArrayList<String>(itemMap.keySet()).listIterator(ite...
"handleHangupCall - postUpdate for itemType '{}' is undefined", config.getItemName());
279,904
private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required a...
this.client.mergeContext(context);
347,709
void createShadowTablesInSpanner(Ddl informationSchema) {<NEW_LINE>List<String> dataTablesWithoutShadowTables = getDataTablesWithNoShadowTables(informationSchema);<NEW_LINE>Ddl.<MASK><NEW_LINE>ShadowTableCreator shadowTableCreator = new ShadowTableCreator(sourceType, shadowTablePrefix);<NEW_LINE>for (String dataTableNa...
Builder shadowTableBuilder = Ddl.builder();
849,133
public void startRetrieveLogInternal(JobData jobData) {<NEW_LINE>if (!(jobData instanceof LinkisLogData)) {<NEW_LINE>throw new LinkisClientExecutionException("EXE0034", ErrorLevel.ERROR, CommonErrMsg.ExecutionErr, "JobData is not LinkisLogData");<NEW_LINE>}<NEW_LINE>if (jobData.getUser() == null || jobData.getJobID() =...
logData.notifyLogListener(), "Log-Consumer");
64,133
private ReuseSet generateReuseSet(ReuseKey key) {<NEW_LINE><MASK><NEW_LINE>ReuseSet reuseSet = new ReuseSet();<NEW_LINE>try (DatabaseSession databaseSession = bimServer.getDatabase().createSession(OperationType.READ_ONLY)) {<NEW_LINE>// Assuming all given roids are of projects that all have the same schema<NEW_LINE>Rev...
long start = System.nanoTime();
1,042,413
protected void putNumber(ObjectNode object, String property, Number value) {<NEW_LINE>if (value instanceof Short) {<NEW_LINE>object.put(property, (Short) value);<NEW_LINE>} else if (value instanceof Integer) {<NEW_LINE>object.put(property, (Integer) value);<NEW_LINE>} else if (value instanceof Long) {<NEW_LINE>object.p...
(property, (BigDecimal) value);
931,016
private void initAttrs(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {<NEW_LINE>float density = context.getResources().getDisplayMetrics().density;<NEW_LINE>float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;<NEW_LINE>TypedArray typedArray = context.obtainStyledAttr...
styleable.BaseWheelLayout, defStyleAttr, defStyleRes);
1,033,365
public ResponseBuilder withReprompt(final String text, final Directive directive, final com.amazon.ask.model.ui.PlayBehavior playBehavior) {<NEW_LINE>if (directive != null) {<NEW_LINE>final SsmlOutputSpeech outputSpeech;<NEW_LINE>if (text == null || text.isEmpty()) {<NEW_LINE>outputSpeech = SsmlOutputSpeech.builder().w...
withPlayBehavior(playBehavior).build();
1,435,475
private void rewritePUTFIELD(int opcode, String owner, String name, String desc) {<NEW_LINE>int classId = typeRegistry.getTypeIdFor(owner, true);<NEW_LINE>// Make a call to check if this field operation must be intercepted:<NEW_LINE>mv.visitLdcInsn(Utils.toCombined(typeRegistry.getId(), classId));<NEW_LINE>mv.visitLdcI...
Utils.insertBoxInsns(mv, desc);
216,575
private // target the parent view.<NEW_LINE>void highlightChildView(View node, boolean selected) {<NEW_LINE>if (!selected) {<NEW_LINE>HighlightedOverlay.removeHighlight(node);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Rect padding = new Rect(ViewCompat.getPaddingStart(node), node.getPaddingTop(), ViewCompat.getPadding...
top + node.getHeight());
222,881
public void onChanged(@Nullable VideoEntity videoEntity) {<NEW_LINE>if (videoEntity != null) {<NEW_LINE>mObservedVideo = videoEntity;<NEW_LINE>mDetailsBgController.setupVideoPlayback(mVideoGlue);<NEW_LINE>// different loading strategy based on whether the video is rented or not<NEW_LINE>if (!videoEntity.isRented()) {<N...
().concat(TRAILER_VIDEO));
739,490
// public void decorate(InhabitantsParser inhabitantsParser) {<NEW_LINE>// inhabitantsParser.replace(WebArchivist.class, EmbeddedWebArchivist.class);<NEW_LINE>//<NEW_LINE>// // use the fully qualified string class name for WebEntityResolver to avoid dependency on web-glue.<NEW_LINE>// inhabitantsParser.replace("org.gla...
EmbeddedWebArchivist.class.getCanonicalName());
1,085,158
public boolean supportsViewFor(DataSource ds) {<NEW_LINE>if (ds == Application.CURRENT_APPLICATION)<NEW_LINE>return false;<NEW_LINE>if (ds instanceof Application) {<NEW_LINE>if (Host.LOCALHOST.equals(((Application) ds).getHost())) {<NEW_LINE>JvmJvmstatModel jvmstat = JvmJvmstatModelFactory.getJvmstatModelFor((Applicati...
File(coredump.getExecutable());
441,470
final CreateTopicResult executeCreateTopic(CreateTopicRequest createTopicRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTopicRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTopic");
264,741
public boolean endsWith(Path path) {<NEW_LINE>if (path.getFileSystem() != this.parentFileSystem) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// An empty path never ends with another path and is never the end of another path.<NEW_LINE>if (this.pathString.isEmpty() ^ ((AzurePath) path).pathString.isEmpty()) {<NEW_LINE>r...
AzurePath) path).splitToElements();
1,011,432
public boolean onCreateOptionsMenu(final Menu optionsMenu) {<NEW_LINE>getMenuInflater().inflate(R.menu.file_view, optionsMenu);<NEW_LINE>MenuItem wrapItem = optionsMenu.findItem(R.id.m_wrap);<NEW_LINE>if (PreferenceUtils.getCodePreferences(this).getBoolean(WRAP, false))<NEW_LINE>wrapItem.setTitle(R.string.disable_wrapp...
setTitle(R.string.render_markdown);
372,576
public static CompletableFuture<SubQueryResults> execute(Map<LogicalPlan, SelectSymbol> dependencies, DependencyCarrier executor, PlannerContext plannerContext, Row params) {<NEW_LINE>List<CompletableFuture<?>> dependencyFutures = new ArrayList<>(dependencies.size());<NEW_LINE>IdentityHashMap<SelectSymbol, Object> valu...
SelectSymbol selectSymbol = entry.getValue();
836,036
private static void remapModel(String bn, String newbn) {<NEW_LINE>DynmapBlockState frombs = DynmapBlockState.getBaseStateByName(bn);<NEW_LINE>DynmapBlockState tobs = DynmapBlockState.getBaseStateByName(bn);<NEW_LINE>int fcnt = frombs.getStateCount();<NEW_LINE>for (int bs = 0; bs < tobs.getStateCount(); bs++) {<NEW_LIN...
models_by_id_data.get(fs.globalStateIndex);
704,286
static public void loopbackNegativeFeedbackTest1() {<NEW_LINE>CellSink<Double> currentLevel = new CellSink<>(0.0);<NEW_LINE>CellSink<Double> anotherCell = new CellSink<>(1.2345);<NEW_LINE>double thresholdDifference = 0.01;<NEW_LINE>Transaction.runVoid(() -> {<NEW_LINE>CellLoop<Double> feedbackLevel = new CellLoop<>();<...
System.out.println("About to send 20.0");
1,126,437
public List<PartitionGetParam> split() {<NEW_LINE>Arrays.sort(keys);<NEW_LINE>List<PartitionGetParam> <MASK><NEW_LINE>List<PartitionKey> parts = PSAgentContext.get().getMatrixMetaManager().getPartitions(matrixId);<NEW_LINE>if (!RowUpdateSplitUtils.isInRange(keys, parts)) {<NEW_LINE>throw new AngelException("node id is ...
params = new ArrayList<>();
1,699,566
public DescribeConnectorProfilesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeConnectorProfilesResult describeConnectorProfilesResult = new DescribeConnectorProfilesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
int originalDepth = context.getCurrentDepth();
130,039
public Block intersect(@TypeParameter("E") Type type, @OperatorDependency(operator = IS_DISTINCT_FROM, argumentTypes = { "E", "E" }, convention = @Convention(arguments = { BLOCK_POSITION, BLOCK_POSITION }, result = FAIL_ON_NULL)) BlockPositionIsDistinctFrom elementIsDistinctFrom, @OperatorDependency(operator = HASH_COD...
), intersectTypedSet.size());
939,590
final DeleteIntentVersionResult executeDeleteIntentVersion(DeleteIntentVersionRequest deleteIntentVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIntentVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(deleteIntentVersionRequest));
452,664
// TODO combine logic for acquireLock with this method so recovery is consistent.<NEW_LINE>@Override<NEW_LINE>public void waitForLock() {<NEW_LINE>throwExceptionIfClosed();<NEW_LINE>long tid = Thread<MASK><NEW_LINE>if (isLockHeldByCurrentThread(tid))<NEW_LINE>return;<NEW_LINE>long value = lock.getVolatileValue();<NEW_L...
.currentThread().getId();
1,515,604
public JsStatement transformSwitchStatement(JSwitchStatement switchStatement) {<NEW_LINE>JsSwitch jsSwitch = new JsSwitch(switchStatement.getSourceInfo());<NEW_LINE>jsSwitch.setExpr(transform(switchStatement.getExpr()));<NEW_LINE>List<JStatement> bodyStmts = switchStatement.getBody().getStatements();<NEW_LINE>List<JsSt...
= transform((JNode) stmt);
1,161,216
public void init(IExportDialogAdapter adapter, Composite container, IFigure figure) {<NEW_LINE>setFigure(figure);<NEW_LINE>container.setLayout(new GridLayout(8, false));<NEW_LINE>container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));<NEW_LINE>fSetViewboxButton = new Button(container, SWT.CHECK);<NEW_LINE>fSet...
Spinner(container, SWT.BORDER);
1,190,008
private void configureCompatibilityOptions(DefaultJavaCompileSpec spec) {<NEW_LINE>final JavaInstallationMetadata toolchain = getToolchain();<NEW_LINE>if (toolchain != null) {<NEW_LINE>if (compileOptions.getRelease().isPresent()) {<NEW_LINE>spec.setRelease(compileOptions.<MASK><NEW_LINE>} else {<NEW_LINE>boolean isSour...
getRelease().get());
1,451,186
protected List<Article> deduplicateResults(List<Article> results) {<NEW_LINE>List<Article> <MASK><NEW_LINE>Map<Integer, Article> byPageIDs = new HashMap<>();<NEW_LINE>for (Article r : results) {<NEW_LINE>Article r2 = byPageIDs.get(r.getPageID());<NEW_LINE>if (r2 != null) {<NEW_LINE>// already have it, merge<NEW_LINE>if...
newResults = new ArrayList<>();
54,366
public AsyncFuture<Void> transform(final SearchResponse response) {<NEW_LINE>final SearchHit[] hits = response.getHits().getHits();<NEW_LINE>final Set<T> <MASK><NEW_LINE>for (final SearchHit hit : hits) {<NEW_LINE>if (limit.isGreaterOrEqual(size)) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>batch.add(converter.apply(hit));<N...
batch = new HashSet<>();
1,565,405
void build(TypeSpec.Builder builder) {<NEW_LINE>// get<NEW_LINE>MethodSpec.Builder getMethod = CodeGeneration.overridePublicMethod("get" + methodSuffix).addParameter(entity, "entity").returns(typeName);<NEW_LINE>final String accessName = "entity" + (accessSuffix == null ? "" : accessSuffix);<NEW_LINE>if (isWriteOnly) {...
).addParameter(typeName, "value");
997,945
private void handleDecryptionErrorMessage(final List<HandleAction> actions, final RecipientId sender, final int senderDeviceId, final DecryptionErrorMessage message) {<NEW_LINE>final var logEntries = account.getMessageSendLogStore().findMessages(sender, senderDeviceId, message.getTimestamp(), message.getRatchetKey().is...
.getTimestamp(), logEntry));
1,639,150
public void afterSaveOfNextTermForPredecessor(final de.metas.contracts.model.I_C_Flatrate_Term next, final de.metas.contracts.model.I_C_Flatrate_Term predecessor) {<NEW_LINE>final IFlatrateDAO flatrateDAO = Services.get(IFlatrateDAO.class);<NEW_LINE>final I_C_Flatrate_Term oldTermtoUse = InterfaceWrapperHelper.create(p...
retrieveDataEntries(predecessor, null, null);
1,491,182
private void registerTextSynchronizationForCustomUriSchemes() {<NEW_LINE>LanguageClient client = serverContext.get(ExtendedLanguageClient.class);<NEW_LINE>LSClientCapabilities clientCapabilities = serverContext.get(LSClientCapabilities.class);<NEW_LINE>DocumentFilter balaFilter = new DocumentFilter();<NEW_LINE><MASK><N...
balaFilter.setScheme(CommonUtil.URI_SCHEME_BALA);
1,568,305
// GEN-LAST:event_btnDefaultActionPerformed<NEW_LINE>private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnNewActionPerformed<NEW_LINE>if (newExtensionPanel == null) {<NEW_LINE>newExtensionPanel = new NewExtensionPanel();<NEW_LINE>}<NEW_LINE>newExtensionPanel.setModel(model...
sort(newItems, String.CASE_INSENSITIVE_ORDER);
1,391,491
private void okPressed() {<NEW_LINE>Date notBefore = jdtNotBefore.getDateTime();<NEW_LINE>Date notAfter = jdtNotAfter.getDateTime();<NEW_LINE>if ((notBefore == null) && (notAfter == null)) {<NEW_LINE>JOptionPane.showMessageDialog(this, res.getString("DPrivateKeyUsagePeriod.ValueReq.message"), getTitle(), JOptionPane.WA...
(false, 0, notBeforeGenTime));
382,749
private void fitFold(int k, int foldNum, DataFold fold) {<NEW_LINE>MLMethod method = this.createMethod();<NEW_LINE>MLTrain train = this.createTrainer(method, fold.getTraining());<NEW_LINE>if (train.getImplementationType() == TrainingImplementationType.Iterative) {<NEW_LINE>EarlyStoppingStrategy earlyStop = new EarlySto...
getError() + ", Validatoin Error: " + validationError);
1,615,503
private void assembleFormats() {<NEW_LINE>final String[][] assy = { { "lgK", "%3s", "%3d" }, { "Ca", "%10s", "%10d" }, { "Cb", "%10s", "%10d" }, { "Flavor_a", "%10s", "%10s" }, { "Flavor_b", "%10s", "%10s" }, { "Flavor_m", "%10s", "%10s" }, { "updA_mS", "%9s", "%9.3f" }, { "updB_mS", "%9s", "%9.3f" }, { "mrgA_mS", "%9s...
{ "rslt_mS", "%9s", "%9.3f" } };
882,617
public static String typeStr(ArgType type) {<NEW_LINE>if (type == null) {<NEW_LINE>return "null";<NEW_LINE>}<NEW_LINE>if (type.isObject()) {<NEW_LINE>if (type.isGenericType()) {<NEW_LINE>return type.getObject();<NEW_LINE>}<NEW_LINE>ArgType wt = type.getWildcardType();<NEW_LINE>if (wt != null) {<NEW_LINE>ArgType.Wildcar...
> genericTypes = type.getGenericTypes();
1,530,722
public static APIGetCandidatePrimaryStoragesForCreatingVmReply __example__() {<NEW_LINE>APIGetCandidatePrimaryStoragesForCreatingVmReply reply = new APIGetCandidatePrimaryStoragesForCreatingVmReply();<NEW_LINE>PrimaryStorageInventory lsInv = new PrimaryStorageInventory();<NEW_LINE>lsInv.setName("example");<NEW_LINE>lsI...
(asList(uuid()));
1,316,396
public void requestVerification(Phonenumber.PhoneNumber phoneNumber) {<NEW_LINE>final String e164 = PhoneNumberUtilWrapper.normalize(service, phoneNumber);<NEW_LINE>if (mVerificationRequestInProgress.compareAndSet(false, true)) {<NEW_LINE>SmsRetrieverWrapper.start(service);<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NE...
final int code = getApiErrorCode(e);
240,096
private static List<Row> loadData() throws IOException {<NEW_LINE>List<Row> rows = new ArrayList<>();<NEW_LINE>ClassLoader classLoader = FlinkQuickStart.class.getClassLoader();<NEW_LINE>final URL <MASK><NEW_LINE>try (BufferedReader br = new BufferedReader(new InputStreamReader(resource.openStream()))) {<NEW_LINE>String...
resource = classLoader.getResource("starbucks-stores-world.csv");
1,080,399
protected static BeanEntityLayout makeLayout(Class<? extends AbstractBeanEntity> type) {<NEW_LINE>BeanEntityLayout res = cache.get(type);<NEW_LINE>if (res != null) {<NEW_LINE>return res;<NEW_LINE>}<NEW_LINE>DynamicClassLoader dlc = new DynamicClassLoader(type.getClassLoader());<NEW_LINE>Map<String, BeanAttributeGetter>...
attrs = new HashMap<>();
1,370,830
final ImportWorkspaceImageResult executeImportWorkspaceImage(ImportWorkspaceImageRequest importWorkspaceImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importWorkspaceImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
594,719
public void postBundlesIdShare(Integer id, IdShareBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling postBundlesIdShare");<NEW_LI...
HashMap<String, Object>();
714,778
private void deleteRestrictions() {<NEW_LINE>holder.imgCbRestricted.setVisibility(View.GONE);<NEW_LINE>holder.pbRunning.setVisibility(View.VISIBLE);<NEW_LINE>new AsyncTask<Object, Object, Object>() {<NEW_LINE><NEW_LINE>private List<Boolean> oldState;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Object doInBackground...
Toast.LENGTH_LONG).show();
614,360
public ListBackupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBackupsResult listBackupsResult = new ListBackupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
)).unmarshall(context));
1,263,901
public void deleteUserHierarchyGroup(DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserHierarchyGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionConte...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
240,353
public static void checkOwnerAndSecurity(final Map<String, Object> entry, final boolean removeNullOwner) throws FrameworkException {<NEW_LINE>if (entry.containsKey("owner")) {<NEW_LINE>final Map ownerData = ((Map) entry.get("owner"));<NEW_LINE>if (ownerData != null) {<NEW_LINE>final String ownerName = (String) ((Map) e...
logger.warn("Unknown owner {}, ignoring.", ownerName);
709,574
final RestoreFromSnapshotResult executeRestoreFromSnapshot(RestoreFromSnapshotRequest restoreFromSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreFromSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
707,019
/* }}} queryAttributeRecursive */<NEW_LINE>private Object queryAttributeRecursive(TabularData parent, /* {{{ */<NEW_LINE>List<String> attrName) {<NEW_LINE>String key;<NEW_LINE>Object value = null;<NEW_LINE>key = attrName.remove(0);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Collection<CompositeData> table = (Coll...
(CompositeData) value, attrName));
1,044,675
public synchronized void onRestoreFile(ParcelFileDescriptor data, long size, File destination, int type, long mode, long mtime) throws IOException {<NEW_LINE>Log.i(TAG, String.format("onRestoreFile() called: dest=%s", destination));<NEW_LINE>super.onRestoreFile(data, size, destination, type, mode, mtime);<NEW_LINE>File...
VaultRepository.writeToFile(this, inStream);
1,399,640
private void transformCode(Dex in, Code code, IndexMap indexMap) {<NEW_LINE>contentsOut.codes.size++;<NEW_LINE>codeOut.assertFourByteAligned();<NEW_LINE>codeOut.writeUnsignedShort(code.getRegistersSize());<NEW_LINE>codeOut.writeUnsignedShort(code.getInsSize());<NEW_LINE>codeOut.writeUnsignedShort(code.getOutsSize());<N...
open(codeOut.getPosition());
929,426
Description unwrapArguments(String formatString, MethodInvocationTree tree, List<? extends ExpressionTree> arguments, VisitorState state) {<NEW_LINE>SuggestedFix.Builder fix = SuggestedFix.builder();<NEW_LINE>int start = 0;<NEW_LINE>java.util.regex.Matcher matcher = PRINTF_TERM_CAPTURE_PATTERN.matcher(formatString);<NE...
firstNonNull(unwrapped.placeholder, 's');
1,729,445
public void read(org.apache.thrift.protocol.TProtocol iprot, getTopologyInfo_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 (schemeField.type =...
skip(iprot, schemeField.type);
615,954
public GenotypeAlleleCounts genotypeAlleleCountsAt(final int index) {<NEW_LINE>Utils.validateArg(index >= 0 && index < genotypeCount, () -> "invalid likelihood index: " + index + " >= " + genotypeCount + " (genotype count for nalleles = " + alleleCount + " and ploidy " + ploidy);<NEW_LINE>if (index < GenotypeLikelihood...
index - lastOverheadCounts.index());
1,399,286
private void show() {<NEW_LINE>if (anchor.getWidth() == 0 && anchor.getHeight() == 0) {<NEW_LINE>anchor.post(this::show);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>getContentView().measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED), View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));<N...
-> setArrowVerticalPosition(arrow, anchor));
1,155,085
public void caseATableswitchStatement(ATableswitchStatement node) {<NEW_LINE>inATableswitchStatement(node);<NEW_LINE>if (node.getSemicolon() != null) {<NEW_LINE>node.getSemicolon().apply(this);<NEW_LINE>}<NEW_LINE>if (node.getRBrace() != null) {<NEW_LINE>node.getRBrace().apply(this);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>List...
>(node.getCaseStmt());
323,734
public static DescribeBackupTasksResponse unmarshall(DescribeBackupTasksResponse describeBackupTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupTasksResponse.setRequestId(_ctx.stringValue("DescribeBackupTasksResponse.RequestId"));<NEW_LINE>List<BackupJob> items = new ArrayList<BackupJob>();<NEW_LINE>fo...
("DescribeBackupTasksResponse.Items[" + i + "].JobMode"));
249,828
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String fhirServiceName, String workspaceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mon...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
769,084
public ComplexSamples next() {<NEW_LINE>if (mSamplesPointer >= mSamples.length) {<NEW_LINE>throw new IllegalStateException("End of buffer exceeded");<NEW_LINE>}<NEW_LINE>int offset = mSamplesPointer;<NEW_LINE>for (int x = 0; x < FRAGMENT_SIZE; x++) {<NEW_LINE>mIBuffer[x + I_OVERLAP] = scale(mSamples[offset++], mAverage...
mSamples[offset++], mAverageDc);
1,213,282
// Performs linear interpolation to increase or decrease the size of array x to newLength<NEW_LINE>public static double[] interpolate(double[] x, int newLength) {<NEW_LINE>double[] y = null;<NEW_LINE>if (newLength > 0) {<NEW_LINE>int N = x.length;<NEW_LINE>if (N == 1) {<NEW_LINE>y = new double[1];<NEW_LINE>y[0] = x[0];...
Math.max(1, ind);
1,549,650
private void handleMdmWithMultipleCandidates(IAnyResource theResource, CandidateList theCandidateList, MdmTransactionContext theMdmTransactionContext) {<NEW_LINE>MatchedGoldenResourceCandidate firstMatch = theCandidateList.getFirstMatch();<NEW_LINE>Long sampleGoldenResourcePid = firstMatch.getCandidateGoldenResourcePid...
outcome, MdmLinkSourceEnum.AUTO, theMdmTransactionContext);
956,702
public static Point2D showText(PdfContentByte cb, BaseFont baseFont, float fontSize, String text) {<NEW_LINE>GlyphVector glyphVector = computeGlyphVector(baseFont, fontSize, text);<NEW_LINE>if (!hasAdjustments(glyphVector)) {<NEW_LINE>cb.showText(glyphVector);<NEW_LINE>Point2D p = glyphVector.getGlyphPosition(glyphVect...
) p.getY() - lastY;
1,836,189
private static Map<String, SuiteSources> findImportedSuites(FileObject dir, MxSuite s, Map<String, Dep> fillDeps) {<NEW_LINE>if (dir == null) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>CORE.registerDeps("mx", fillDeps);<NEW_LINE>final <MASK><NEW_LINE>if (imports != null) {<NEW_LINE>Map<String, SuiteS...
MxImports imports = s.imports();
241,641
public static TOTorrent readFromFile(File file, boolean create_delegate, boolean force_initial_discard) throws TOTorrentException {<NEW_LINE>TOTorrent torrent;<NEW_LINE>try {<NEW_LINE>torrent = TOTorrentFactory.deserialiseFromBEncodedFile(file);<NEW_LINE>// make an immediate backup if requested and one doesn't exist<NE...
file.getName() + ".bak");
1,380,159
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String epl = "@name('s0') select irstream symbol, volume, max(price) as maxVol" + " from SupportMarketDataBean#sort(1, volume) as s0," + "SupportBean#keepall as s1 where s1.theString = s0.symbol " + "group by symbol output every 1 seconds...
sendEvent(env, "JOIN_KEY", 2d);
1,520,475
final DeleteRuleGroupResult executeDeleteRuleGroup(DeleteRuleGroupRequest deleteRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRuleGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
790,276
public void execute() throws CoreException, IOException, MalformedURLException {<NEW_LINE>Logger log = Logger.getLogger(this.getClass().getName());<NEW_LINE>if (log.isLoggable(Level.FINE)) {<NEW_LINE>// NOI18N<NEW_LINE>log.// NOI18N<NEW_LINE>log(// NOI18N<NEW_LINE>Level.FINE, "executing GetRepositoryTasksCommand for ta...
getTaskData(taskRepository, taskId, monitor);
228,270
private Mono<PagedResponse<RoleEligibilityScheduleInner>> listForScopeSinglePageAsync(String scope, String filter, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LIN...
.nextLink(), null));
580,170
private void addTimers(JMeterTreeModel model, JMeterTreeNode node, long deltaT) {<NEW_LINE>TestPlan variables = new TestPlan();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>variables.addParameter("T", Long.toString(deltaT));<NEW_LINE><MASK><NEW_LINE>JMeterTreeNode mySelf = model.getNodeOf(this);<NEW_LINE>if (mySelf != null) {<NEW_...
ValueReplacer replacer = new ValueReplacer(variables);
508,380
Object toJson(Object value) {<NEW_LINE>if (value == null || value instanceof Number || value instanceof String || value instanceof Boolean) {<NEW_LINE>return value;<NEW_LINE>} else if (value instanceof RexNode) {<NEW_LINE>return toJson((RexNode) value);<NEW_LINE>} else if (value instanceof CorrelationId) {<NEW_LINE>ret...
return toJson((RexFieldCollation) value);
1,641,137
public boolean performOk() {<NEW_LINE>getPreferenceStore().setValue(BACKUP_ON_SAVE, fBackupOnSaveButton.getSelection());<NEW_LINE>getPreferenceStore().setValue(OPEN_DIAGRAMS_ON_LOAD, fOpenDiagramsOnLoadButton.getSelection());<NEW_LINE>getPreferenceStore().setValue(MRU_MAX, fMRUSizeSpinner.getSelection());<NEW_LINE>getP...
ANIMATE_VIEW, fDoAnimationViewButton.getSelection());
473,802
public static int[] boundsForModulo(IntVar x, IntVar y) {<NEW_LINE>long[] vals = new long[4];<NEW_LINE>if (y.isInstantiatedTo(0)) {<NEW_LINE>vals[0] = Integer.MIN_VALUE;<NEW_LINE>vals[1] = Integer.MAX_VALUE;<NEW_LINE>vals[2] = 0;<NEW_LINE>vals[3] = 0;<NEW_LINE>} else {<NEW_LINE>int yl = y.getLB();<NEW_LINE><MASK><NEW_L...
int yu = y.getUB();
746,978
final ListUserTagsResult executeListUserTags(ListUserTagsRequest listUserTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
endClientExecution(awsRequestMetrics, request, response);
1,176,637
final PutClusterCapacityProvidersResult executePutClusterCapacityProviders(PutClusterCapacityProvidersRequest putClusterCapacityProvidersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putClusterCapacityProvidersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutClusterCapacityProviders");
1,817,599
public void registerMetrics(TopologyContextImpl topologyContext) {<NEW_LINE>SystemConfig systemConfig = (SystemConfig) SingletonRegistry.INSTANCE.getSingleton(SystemConfig.HERON_SYSTEM_CONFIG);<NEW_LINE>int interval = (int) systemConfig.getHeronMetricsExportInterval().getSeconds();<NEW_LINE>topologyContext.registerMetr...
registerMetric("__process-latency", processLatency, interval);
181,466
protected void activate(Map<String, Object> properties, ComponentContext context) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "activate", new Object[] { properties, context, _isChainActivated, _isChainDeactivated });<NEW_LINE>_sslOptions.activate(context);<...
.get("useSSL"), false);
1,721,785
public ListHandshakesForAccountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListHandshakesForAccountResult listHandshakesForAccountResult = new ListHandshakesForAccountResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
)).unmarshall(context));
975,010
public void readCacheFileFully() throws Exception {<NEW_LINE>benchmarkRule.getState().pauseTiming();<NEW_LINE>InputStream is = null;<NEW_LINE>OutputStream os = null;<NEW_LINE>final File file;<NEW_LINE>try {<NEW_LINE>is = app.getContentResolver().openInputStream(MEDIA_STORE_URI);<NEW_LINE>file = File.createTempFile("tem...
write(buffer, 0, read);
70,327
protected void process(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, WindowState state) {<NEW_LINE>synchronized (state) {<NEW_LINE>SnapshotableStreamEventQueue expiredEventQueue = state.expiredEventQueue;<NEW_LINE>while (streamEventChunk.hasNext()) {<NEW_...
clonedEvent.getTimestamp() + timeInMilliSeconds);
323,798
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>if (showedActivityFailedScreen(savedInstanceState)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Timber.d("onCreate()");<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>mCardList = getIntent().getLongArrayExtra("cardList");<NEW_LINE>mIndex = getIntent().getI...
savedInstanceState.getBoolean("showingAnswer", mShowingAnswer);
703,971
private UpdateOperations<JobPo> buildUpdateOperations(JobQueueReq request) {<NEW_LINE>UpdateOperations<JobPo> operations = template.createUpdateOperations(JobPo.class);<NEW_LINE>addUpdateField(operations, "cronExpression", request.getCronExpression());<NEW_LINE>addUpdateField(operations, <MASK><NEW_LINE>addUpdateField(...
"needFeedback", request.getNeedFeedback());
1,087,117
protected Control createContents(Composite parent) {<NEW_LINE>project = (IProject) getElement().getAdapter(IProject.class);<NEW_LINE>settings = TeaVMEclipsePlugin.getDefault().getSettings(project);<NEW_LINE>Composite container = new <MASK><NEW_LINE>GridLayout layout = new GridLayout(1, false);<NEW_LINE>layout.verticalS...
Composite(parent, SWT.NONE);
875,616
public void onClick(DialogInterface dialog, int which) {<NEW_LINE>WptPt wpt = getWpt();<NEW_LINE>WptPtEditor editor = getWptPtEditor();<NEW_LINE>SavingTrackHelper savingTrackHelper = getSavingTrackHelper();<NEW_LINE>if (wpt != null && editor != null && savingTrackHelper != null) {<NEW_LINE><MASK><NEW_LINE>if (gpx != nu...
GPXFile gpx = editor.getGpxFile();
1,568,122
private void upload(Set<TransferFile> forUpload, FileObject sources, FileObject[] filesToUpload, InputOutput remoteLog, RemoteClient remoteClient) {<NEW_LINE>TransferInfo transferInfo = null;<NEW_LINE>try {<NEW_LINE>if (forUpload.size() > 0) {<NEW_LINE>final boolean askSync = !remoteClient.listFiles(getRemoteRoot(remot...
.getName()), remoteClient);
1,152,405
public void configure(MessagebusConfig config) {<NEW_LINE>RoutingSpec routing = new RoutingSpec();<NEW_LINE>for (int table = 0; table < config.routingtable().size(); table++) {<NEW_LINE>MessagebusConfig.Routingtable tableConfig = config.routingtable(table);<NEW_LINE>RoutingTableSpec tableSpec = new RoutingTableSpec(tab...
setIgnoreResult(hopConfig.ignoreresult());
1,512,327
private void printOccupancyInfo(JavaHeap theHeap, PrintStream out) {<NEW_LINE>long size = 0;<NEW_LINE>long totalObjectSize = 0;<NEW_LINE>// total number of objects on the heap<NEW_LINE>long totalObjects = 0;<NEW_LINE>// total number of corrupt objects<NEW_LINE>long totalCorruptObjects = 0;<NEW_LINE>Iterator<?> itSectio...
/ (float) size) * 10000;
556,939
final GetSupportedResourceTypesResult executeGetSupportedResourceTypes(GetSupportedResourceTypesRequest getSupportedResourceTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSupportedResourceTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
false), new GetSupportedResourceTypesResultJsonUnmarshaller());
72,621
public static long LLVMCreateDisasmCPUFeatures(@NativeType("char const *") CharSequence Triple, @NativeType("char const *") CharSequence CPU, @NativeType("char const *") CharSequence Features, @NativeType("void *") long DisInfo, int TagType, @Nullable @NativeType("int (*) (void *, uint64_t, uint64_t, uint64_t, int, voi...
stack.nUTF8(Features, true);
1,102,588
public Future<ResultString> deployDirectory() {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>chooser.setDialogTitle(NbBundle.getMessage(Hk2ItemNode.class, "LBL_ChooseButton"));<NEW_LINE>chooser.setDialogType(JFileChooser.CUSTOM_DIALOG);<NEW_LINE>chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY...
, instance.isHotDeployEnabled()));
1,443,185
public NameEnvironmentAnswer findType(char[][] compoundTypeName) {<NEW_LINE>NameEnvironmentAnswer result = this.env.findType(compoundTypeName);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>if (CharOperation.equals(compoundTypeName, ROOT_COMPOUND_NAME)) {<NEW_LINE>IBinaryType binary = this....
return new NameEnvironmentAnswer(binary, null);
1,221,226
private void insertGroupProject(EnvironmentGroupRequest request) {<NEW_LINE>SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);<NEW_LINE>EnvironmentGroupProjectMapper mapper = sqlSession.getMapper(EnvironmentGroupProjectMapper.class);<NEW_LINE>List<EnvironmentGroupProject> envGroupProject = reque...
.selectByExample(new ProjectExample());