idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
401,640
public <T> void writeConfig(final AirbyteConfig configType, final String configId, final T config) throws JsonValidationException, IOException {<NEW_LINE>if (configType == ConfigSchema.STANDARD_WORKSPACE) {<NEW_LINE>writeStandardWorkspace(Collections.singletonList((StandardWorkspace) config));<NEW_LINE>} else if (confi...
singletonList((StandardSyncState) config));
1,528,636
private static void listClassesPrefix(String prefix) {<NEW_LINE>String cp = ClassPathHandler.getInstance().getTargetProjectClasspath();<NEW_LINE>Set<String> classes = new LinkedHashSet<>();<NEW_LINE>for (String classPathElement : cp.split(File.pathSeparator)) {<NEW_LINE>classes.addAll(ResourceList.getInstance(TestGener...
getEvoLogger().info(sut);
232,040
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.tweetlanes.android.core.view.ComposeBaseFragment#onSendClick(java.lang<NEW_LINE>* .String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void onSendClick(String status) {<NEW_LINE>if (status != null) {<NEW_LINE>int <MASK><NEW_LINE>if (statusLengt...
statusLength = mStatusValidator.getTweetLength(status);
561,289
private void renderTiming() throws IOException {<NEW_LINE>if (!getResult().getQuery().getPresentation().getTiming())<NEW_LINE>return;<NEW_LINE>double milli = .001d;<NEW_LINE><MASK><NEW_LINE>long searchTime = now - getResult().getElapsedTime().first();<NEW_LINE>double searchSeconds = searchTime * milli;<NEW_LINE>generat...
long now = timeSource.getAsLong();
1,551,975
public static void vertical9(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[...
(dataSrc[indexSrc]) * k8;
622,862
final SearchVocabulariesResult executeSearchVocabularies(SearchVocabulariesRequest searchVocabulariesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchVocabulariesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
673,803
public void connect() {<NEW_LINE>if (this.disconnected) {<NEW_LINE>throw new IllegalStateException("Connection has already been disconnected.");<NEW_LINE>}<NEW_LINE>if (DEFAULT_EVENT_LOOP_GROUP == null) {<NEW_LINE>DEFAULT_EVENT_LOOP_GROUP = new DefaultEventLoopGroup();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final Bootstrap...
new InetSocketAddress(clientIp, 0));
1,619,746
private boolean hasValidAnnotations(List<Annotation> parameterAnnotations) {<NEW_LINE>// Because method parameters can contain parameters that are valid, but<NEW_LINE>// not part of the API contract, first check to make sure the parameter<NEW_LINE>// has at lease one annotation before processing it. Also, check a<NEW_...
validParameterAnnotations.add(QueryParam.class);
1,511,849
/* Return this \cup val. */<NEW_LINE>@Override<NEW_LINE>public final Value cup(Value set) {<NEW_LINE>try {<NEW_LINE>if (this.size() == 0)<NEW_LINE>return set;<NEW_LINE>if (set instanceof Reducible) {<NEW_LINE>ValueVec cupElems = new ValueVec();<NEW_LINE>for (int i = this.low; i <= this.high; i++) {<NEW_LINE>cupElems.a...
FingerprintException.getNewHead(this, e);
1,445,989
public static GetJobTopologyResponse unmarshall(GetJobTopologyResponse getJobTopologyResponse, UnmarshallerContext context) {<NEW_LINE>getJobTopologyResponse.setRequestId(context.stringValue("GetJobTopologyResponse.RequestId"));<NEW_LINE>getJobTopologyResponse.setCode(context.integerValue("GetJobTopologyResponse.Code")...
("GetJobTopologyResponse.Data[" + i + "].Text"));
1,657,221
private MappingBuilder requestBuilder(Operation operation) {<NEW_LINE>HttpMethod method = operation.getRequest().getMethod();<NEW_LINE>if (method.equals(HttpMethod.DELETE)) {<NEW_LINE>return delete(requestPattern(operation));<NEW_LINE>} else if (method.equals(HttpMethod.POST)) {<NEW_LINE>return bodyPattern(post(request...
return head(requestPattern(operation));
453,975
private static void loadConfig() throws FileNotFoundException, IOException {<NEW_LINE>try (InputStream configStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(CONFIG_FILE)) {<NEW_LINE>if (configStream == null) {<NEW_LINE>throw new FileNotFoundException();<NEW_LINE>}<NEW_LINE>properties = new P...
parseInt(sizeInMBsProperty.trim());
1,800,962
private void loadNode741() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ProgramStateMachineType_Ready_StateNumber, new QualifiedName(0, "StateNumber"), new LocalizedText("en", "StateNumber"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.va...
this.nodeManager.addNode(node);
1,573,642
protected boolean propertyChangeSynced(final PropertyChangeEvent changeEvent, final AAxis<?> receiver) {<NEW_LINE>boolean result = false;<NEW_LINE>if (Chart2D.DEBUG_SCALING) {<NEW_LINE>System.out.println("pc-Ymax");<NEW_LINE>}<NEW_LINE>// only care if axis works in y dimension:<NEW_LINE>if (receiver.getAccessor().getDi...
.m_max = receiver.findMax();
438,524
private void loadImage(MediaPreviewImageView imageView, @Nullable String previewUrl, @Nullable MetaData meta, @Nullable String blurhash) {<NEW_LINE>Drawable placeholder = blurhash != null ? decodeBlurHash(blurhash) : mediaPreviewUnloaded;<NEW_LINE>if (TextUtils.isEmpty(previewUrl)) {<NEW_LINE>imageView.removeFocalPoint...
centerInside().into(imageView);
935,484
private PluginFile parse(@NonNull Context context, @NonNull File pluginFile, @NonNull InstallCallback callback) {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkNotNull(context);<NEW_LINE>Preconditions.checkNotNull(pluginFile);<NEW_LINE>Preconditions.checkState(pluginFile.exists());<NEW_LINE>if (!ObjectsUtils.equals(EXPEC...
XLog.i("inflate: %s", pluginFile);
1,385,847
private Transaction begin$(TxnType txnType) {<NEW_LINE>synchronized (coordinatorLock) {<NEW_LINE>// Inside the lock - check again.<NEW_LINE>checkActive();<NEW_LINE>// Thread safe part of 'begin'<NEW_LINE>// Allocate the transaction serialization point.<NEW_LINE><MASK><NEW_LINE>List<SysTrans> sysTransList = new ArrayLis...
TxnId txnId = txnIdGenerator.generate();
1,639,184
public ListApplicationInstanceNodeInstancesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListApplicationInstanceNodeInstancesResult listApplicationInstanceNodeInstancesResult = new ListApplicationInstanceNodeInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
class).unmarshall(context));
1,240,977
public void run() {<NEW_LINE>boolean doneWork = false;<NEW_LINE>FlushItem flush;<NEW_LINE>while (null != (flush = queued.poll())) {<NEW_LINE><MASK><NEW_LINE>flush.ctx.write(flush.response, flush.ctx.voidPromise());<NEW_LINE>flushed.add(flush);<NEW_LINE>doneWork = true;<NEW_LINE>}<NEW_LINE>runsSinceFlush++;<NEW_LINE>if ...
channels.add(flush.ctx);
343,268
private static <A, B, LS, RS, LT, RT> TypedOptic<Either<LS, RS>, Either<LT, RT>, A, B> mergeOptics(final TypedOptic<LS, LT, A, B> lo, final TypedOptic<RS, RT, A, B> ro) {<NEW_LINE>final TypeToken<TraversalP.Mu> bound = TraversalP.Mu.TYPE_TOKEN;<NEW_LINE>return new TypedOptic<>(bound, DSL.or(lo.sType(), ro.sType()), DSL...
input).apply(l));
10,010
static Map<String, DatabaseReaderLazyLoader> loadDatabaseReaders(Path geoIpDirectory, Path geoIpConfigDirectory) throws IOException {<NEW_LINE>assertDatabaseExistence(geoIpDirectory, true);<NEW_LINE>assertDatabaseExistence(geoIpConfigDirectory, false);<NEW_LINE>final boolean loadDatabaseOnHeap = Booleans.parseBoolean(S...
.getFileName().toString();
342,200
public static void initDrawer(NavigationView navView, @NonNull RepositoriesFragment.RepositoriesType type) {<NEW_LINE>if (navView == null)<NEW_LINE>return;<NEW_LINE>if (RepositoriesFragment.RepositoriesType.OWNED.equals(type)) {<NEW_LINE>// do nothing<NEW_LINE>} else if (RepositoriesFragment.RepositoriesType.PUBLIC.equ...
.nav_fewest_pushed).setVisible(false);
646,027
private void applyHostFilter(String providerServiceId, List<? extends Server> servers) {<NEW_LINE>RuleEntity ruleEntity = pluginAdapter.getRule();<NEW_LINE>if (ruleEntity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (discoveryEntity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HostFilterEntity ...
DiscoveryEntity discoveryEntity = ruleEntity.getDiscoveryEntity();
1,498,260
private static void tryAssertionSnapshotColumn(RegressionEnvironment env, String[] fields) {<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, new Object[][] <MASK><NEW_LINE>env.assertListenerNotInvoke...
{ { "E1", 1 } });
258,219
private static Response fillAggregationPlanDataSet(QueryDataSet dataSet, AggregationPlan aggregationPlan, final int actualRowSizeLimit) throws IOException {<NEW_LINE>Map<String, AggregateResult> groupPathsResultMap = aggregationPlan.getGroupPathsResultMap();<NEW_LINE>int[] targetDataSetIndexToSourceDataSetIndex = new i...
.entrySet().iterator();
1,653,690
private boolean isNamespaceNotPublished(Namespace namespace) {<NEW_LINE>Release latestRelease = releaseService.findLatestActiveRelease(namespace);<NEW_LINE>long namespaceId = namespace.getId();<NEW_LINE>if (latestRelease == null) {<NEW_LINE>Item lastItem = itemService.findLastOne(namespaceId);<NEW_LINE>return lastItem ...
itemService.findItemsModifiedAfterDate(namespaceId, lastPublishTime);
869,772
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().setStatusBarColor(0xFF000000);<NEW_LINE>getWindow().setNavigationBarColor(0xFF000000);<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {<NEW_LINE>getWindow().setNavigationBarDividerColor(0xFF...
intent.getParcelableExtra(CropImageConsts.CROP_IMAGE_EXTRA_SOURCE);
895,784
protected ClickableSpan findClickableSpanUnderTouch(TextView textView, Spannable text, MotionEvent event) {<NEW_LINE>// So we need to find the location in text where touch was made, regardless of whether the TextView<NEW_LINE>// has scrollable text. That is, not the entire text is currently visible.<NEW_LINE>int touchX...
top = layout.getLineTop(touchedLine);
230,040
public static void switchBranch(final GitRepository repo, final String branchName) {<NEW_LINE>String text = MessageFormat.format(Messages.SwitchBranchAction_BranchSwitch_Msg, branchName);<NEW_LINE>IStatus switchStatus = repo.switchBranch(branchName, new NullProgressMonitor());<NEW_LINE>if (!switchStatus.isOK()) {<NEW_L...
ProcessStatus) switchStatus).getStdErr();
1,011,481
public static LatLon decodeMapsMeLatLonToInt(String s) {<NEW_LINE>// 44TvlEGXf-<NEW_LINE><MASK><NEW_LINE>int shift = kMaxCoordBits - 3;<NEW_LINE>for (int i = 0; i < s.length(); ++i, shift -= 3) {<NEW_LINE>int a = net.osmand.osm.io.Base64.indexOf(s.charAt(i));<NEW_LINE>if (a < 0)<NEW_LINE>return null;<NEW_LINE>int lat1 ...
int lat = 0, lon = 0;
380,560
final ListLaunchProfilesResult executeListLaunchProfiles(ListLaunchProfilesRequest listLaunchProfilesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLaunchProfilesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListLaunchProfiles");
1,084,095
private static String lemmatize(String word, String tag, Morpha lexer, boolean lowercase) {<NEW_LINE>boolean wordHasForbiddenChar = word.indexOf('_') >= 0 || word.indexOf(' ') >= 0 || word.indexOf('\n') >= 0;<NEW_LINE>String quotedWord = word;<NEW_LINE>if (wordHasForbiddenChar) {<NEW_LINE>// choose something unlikely. ...
quotedWord.replaceAll("_", "\u1CF0");
256,918
private void initStreamTypeSpinner() {<NEW_LINE>ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, Util.isSupportScreenCapture() ? STREAM_TYPES : Arrays.copyOf(STREAM_TYPES, 3));<NEW_LINE>adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);<NEW_LINE>...
mEncodingConfigFragment.enableAudioOnly(position == 1);
1,846,783
private void accDist(TermPos lhs, TermPos rhs, float wi, float wj, List<Float> ret, List<Integer> prevRhs, int window) {<NEW_LINE>int dist = rhs.mPos - lhs.mPos + 1;<NEW_LINE>if (dist > window)<NEW_LINE>return;<NEW_LINE>float distWeight = (float) ((Math.min(wi, 1.0) + Math.min(wj, 1.0)) / dist);<NEW_LINE>distWeight = w...
set(1, rhs.mPos);
1,186,281
Result send(Message msg, DocumentOperationParameters parameters) {<NEW_LINE>try {<NEW_LINE>long reqId = requestId.incrementAndGet();<NEW_LINE>msg.setContext(new OperationContext(reqId, parameters.responseHandler().orElse(null)));<NEW_LINE>msg.getTrace().setLevel(parameters.traceLevel<MASK><NEW_LINE>parameters.deadline(...
().orElse(traceLevel));
132,102
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec result = new io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & ...
.updateStrategy_ = updateStrategyBuilder_.build();
554,466
private void acceptCommand(final TypedRecord<JobRecord> command, final CommandControl<JobRecord> commandControl) {<NEW_LINE>final <MASK><NEW_LINE>final JobRecord job = jobState.getJob(jobKey);<NEW_LINE>job.setErrorCode(command.getValue().getErrorCodeBuffer());<NEW_LINE>job.setErrorMessage(command.getValue().getErrorMes...
long jobKey = command.getKey();
488,823
private BMap<String, BValue> arrayToBValue(Object array) {<NEW_LINE>BValueArray bArray = new BValueArray(new BArrayType(BTypes.typeAny));<NEW_LINE>int <MASK><NEW_LINE>for (int i = 0; i < arrayLength; i++) {<NEW_LINE>bArray.append(toBValue(Array.get(array, i), null));<NEW_LINE>}<NEW_LINE>BMap<String, BValue> bMap = BTre...
arrayLength = Array.getLength(array);
1,448,045
public Map<String, List<UsedNamespaceName>> collectNames() {<NEW_LINE>NamespaceScope namespaceScope = ModelUtils.getNamespaceScope(parserResult, caretPosition);<NEW_LINE>assert namespaceScope != null;<NEW_LINE>OffsetRange offsetRange = namespaceScope.getBlockRange();<NEW_LINE>// in the following case, avoid being inser...
), body.getEndOffset());
291,182
public static DescribeDnsGtmInstancesResponse unmarshall(DescribeDnsGtmInstancesResponse describeDnsGtmInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsGtmInstancesResponse.setRequestId(_ctx.stringValue("DescribeDnsGtmInstancesResponse.RequestId"));<NEW_LINE>describeDnsGtmInstancesResponse.setPageSize...
("DescribeDnsGtmInstancesResponse.GtmInstances[" + i + "].ExpireTime"));
1,736,823
List<Path> defaultBootClasspath() {<NEW_LINE>Path path = javaHome().resolve(RT_JAR);<NEW_LINE>if (Files.isReadable(path)) {<NEW_LINE>bootClassPathVersion(BootClassPathType.RT_JAR);<NEW_LINE>List<Path> paths = new ArrayList<>(PATHS_SIZE);<NEW_LINE>for (Path p : BOOT_CLASSPATH) {<NEW_LINE>paths.add(javaHome().resolve(p))...
javaHome().resolve(MODULES_IMAGE);
665,170
private void initCols(Schema schema) throws SchemaChangeException {<NEW_LINE>ImmutableList.Builder<ProjectedColumnInfo<MASK><NEW_LINE>for (int i = 0; i < schema.getColumnCount(); i++) {<NEW_LINE>ColumnSchema col = schema.getColumnByIndex(i);<NEW_LINE>final String name = col.getName();<NEW_LINE>final Type kuduType = col...
> pciBuilder = ImmutableList.builder();
1,469,147
public void approveSelection() {<NEW_LINE>File file = getSelectedFile();<NEW_LINE>Filter filter = (Filter) getFileFilter();<NEW_LINE>if (!file.getName().endsWith(filter.getExt())) {<NEW_LINE>file = new File(file.getPath(<MASK><NEW_LINE>setSelectedFile(file);<NEW_LINE>}<NEW_LINE>if (!file.isFile()) {<NEW_LINE>super.appr...
) + filter.getExt());
1,117,665
protected WasmInstance createInstance(WasmLanguage language, WasmContext context, String name) {<NEW_LINE>WasmInstance instance = new WasmInstance(context, WasmModule.createBuiltin(name), functions.size());<NEW_LINE>for (Map.Entry<String, Pair<WasmFunction, Object>> entry : functions.entrySet()) {<NEW_LINE>final String...
> info = entry.getValue();
473,479
private void resolve(TypeHierarchyItem item, IType type, TypeHierarchyDirection direction, int resolve, IProgressMonitor monitor) throws JavaModelException {<NEW_LINE>if (monitor.isCanceled() || resolve <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ITypeHierarchy typeHierarchy = (direction == TypeHierarchyDirection.Pare...
parentItem = TypeHierarchyCommand.toTypeHierarchyItem(parentType);
1,391,393
final DescribeSubnetGroupsResult executeDescribeSubnetGroups(DescribeSubnetGroupsRequest describeSubnetGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSubnetGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
(super.beforeMarshalling(describeSubnetGroupsRequest));
1,207,898
private static void initDWCApplication() {<NEW_LINE>String hostName = Utils.getComputerName();<NEW_LINE>boolean eurekaPreferIp = Configuration.EUREKA_PREFER_IP();<NEW_LINE>if (eurekaPreferIp) {<NEW_LINE>hostName = applicationContext.getEnvironment().getProperty("spring.cloud.client.ip-address");<NEW_LINE>logger.info("u...
).getProperty("server.port")));
1,165,601
public void logoutUser(final Response.Listener<String> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/logout".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW_LINE>List<Pair> queryPa...
MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();
251,924
private void enableExtension(Context context, ComponentName extension) {<NEW_LINE>if (extension == null) {<NEW_LINE>Timber.e("enableExtension: empty extension");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<ComponentName, String> subscriptions = subscriptions(context);<NEW_LINE>if (subscriptions.containsKey(extension)) {<N...
ComponentName> tokens = tokens(context);
1,535,277
private boolean isInvalidDirective(byte[] message) throws Exception {<NEW_LINE>if (message.length < 0x10) {<NEW_LINE>writeUsb(USBSTATUS_MALFORMED_REQUEST);<NEW_LINE>logPrinter.print("Directive is too small. Only " + message.<MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!Arrays.equals(Arrays.copyOfRange(message, ...
length + " bytes received.", EMsgType.FAIL);
176,458
public ReadableProductReview populate(ProductReview source, ReadableProductReview target, MerchantStore store, Language language) throws ConversionException {<NEW_LINE>try {<NEW_LINE>ReadableCustomerPopulator populator = new ReadableCustomerPopulator();<NEW_LINE>ReadableCustomer customer = new ReadableCustomer();<NEW_L...
getProduct().getId());
1,261,344
void updateControls() {<NEW_LINE>sourceFolder.removeAllItems();<NEW_LINE>compUnitsKeys = model.createCompilationUnitKeys();<NEW_LINE>isSeparateClasspath = !ProjectModel.isSingleCompilationUnit(compUnitsKeys);<NEW_LINE>List<String> names = createComboContent(compUnitsKeys, model.getEvaluator(<MASK><NEW_LINE>for (String ...
), model.getNBProjectFolder());
1,264,486
private void writeEnumerationBasedForEachLoop(ForStatement loop, Expression collectionExpression, ClassNode collectionType) {<NEW_LINE>CompileStack compileStack = controller.getCompileStack();<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>OperandStack operandStack = controller.getOperandStack();<N...
mv.visitJumpInsn(GOTO, continueLabel);
1,843,819
private SaveResult doBackup(FileSettings file, String prefix) {<NEW_LINE>SaveResult.Builder fileResult = new SaveResult.Builder(file.id);<NEW_LINE>if (!file.backupEnabled) {<NEW_LINE>fileResult.setCancelled(CancelReason.INVALID);<NEW_LINE>return fileResult.make();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String content = loa...
file.path.getFileName());
678,356
public UpdateTrustResult updateTrustDb(List<Long> signerMasterKeyIds, Progressable progress) {<NEW_LINE>OperationLog log = new OperationLog();<NEW_LINE>log.add(LogType.MSG_TRUST, 0);<NEW_LINE>Preferences preferences = Preferences.getPreferences(context);<NEW_LINE>boolean isTrustDbInitialized = preferences.isKeySignatur...
int totalKeys = masterKeyIds.size();
697,564
public TraceReader readFiles(List<String> filePaths) {<NEW_LINE>return new TraceReader() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ImmutableSet<Characteristic> characteristics() {<NEW_LINE>return readers().stream().flatMap(reader -> reader.characteristics().stream()<MASK><NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NE...
).collect(toImmutableEnumSet());
612,144
public void stop(int requestNumber) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "stop", requestNumber);<NEW_LINE>// We need to lock this down with a semaphore here to ensure that the 'started' flag is<NEW_LINE>// correct by callers of isStarted() - see defe...
exit(this, tc, "stop");
1,075,475
public void removeOrderItemFromFullfillmentGroups(Order order, OrderItem orderItem) {<NEW_LINE>List<FulfillmentGroup<MASK><NEW_LINE>for (FulfillmentGroup fulfillmentGroup : fulfillmentGroups) {<NEW_LINE>Iterator<FulfillmentGroupItem> itr = fulfillmentGroup.getFulfillmentGroupItems().iterator();<NEW_LINE>while (itr.hasN...
> fulfillmentGroups = order.getFulfillmentGroups();
379,123
private void cacheBlock(long blockId, WorkerNetAddress dataSource, URIStatus status, Protocol.OpenUfsBlockOptions options) {<NEW_LINE>BlockInfo info = status.getBlockInfo(blockId);<NEW_LINE>long blockLength = info.getLength();<NEW_LINE>String host = dataSource.getHost();<NEW_LINE>// issues#11172: If the worker is in a ...
getDataPort()).build();
364,976
public ListDatasetLabelsResult listDatasetLabels(ListDatasetLabelsRequest listDatasetLabelsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetLabelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1,072,532
private void loadWorkflow(Properties ctx, int AD_Workflow_ID, HttpSession sess) {<NEW_LINE>MWorkflow wf = new MWorkflow(ctx, AD_Workflow_ID, null);<NEW_LINE>// get the MWFNode in order<NEW_LINE>MWFNode[] nodes = wf.getNodes(true, Env.getContextAsInt(ctx, "#AD_Client_ID"));<NEW_LINE>MWFNode wfn = null;<NEW_LINE>ArrayLis...
sess.setAttribute(IMAGE_MAP, imageMap);
1,319,697
final CreateSnapshotResult executeCreateSnapshot(CreateSnapshotRequest createSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSnapshotRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateSnapshotRequest> request = nu...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
257,368
final ListDomainNamesResult executeListDomainNames(ListDomainNamesRequest listDomainNamesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainNamesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "OpenSearch");
506,505
private static RefactorWorkspaceEdit moveTypeToNewFile(CodeActionParams params, IProgressMonitor monitor) {<NEW_LINE>final ICompilationUnit unit = JDTUtils.resolveCompilationUnit(params.getTextDocument().getUri());<NEW_LINE>if (unit == null) {<NEW_LINE>return new RefactorWorkspaceEdit("Failed to move type to new file b...
CheckConditionsOperation(refactoring, CheckConditionsOperation.ALL_CONDITIONS);
651,035
public void visitAfter(JavaClass obj) {<NEW_LINE>for (MethodDescriptor method : fieldsModifyingMethods) {<NEW_LINE>List<MethodCall> calls = callGraph.get(method);<NEW_LINE>SideEffectStatus prevStatus = statusMap.get(method);<NEW_LINE>status = prevStatus.toSure();<NEW_LINE>calledMethods = new ArrayList<>();<NEW_LINE>for...
calledMethods = new ArrayList<>();
1,088,469
private static void registerTimeTypeValue() {<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryColumnType.MYSQL_TYPE_YEAR, new MySQLYearBinlogProtocolValue());<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryColumnType.MYSQL_TYPE_DATE, new MySQLDateBinlogProtocolValue());<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryCol...
.MYSQL_TYPE_TIME, new MySQLTimeBinlogProtocolValue());
1,341,793
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {<NEW_LINE>List<ViewManager> managers = new ArrayList<>();<NEW_LINE>// components<NEW_LINE>managers.add(new RCTMGLCameraManager(reactApplicationContext));<NEW_LINE>managers.add(new RCTMGLAndroidTextureMapViewManager(reactApplic...
.add(new RCTMGLLightManager());
805,713
public void updateCachingAndArtifacts(ParsedDeployment parsedDeployment) {<NEW_LINE>EventRegistryEngineConfiguration eventRegistryEngineConfiguration = CommandContextUtil.getEventRegistryConfiguration();<NEW_LINE>DeploymentCache<EventDefinitionCacheEntry> eventDefinitionCache = eventRegistryEngineConfiguration.getDeplo...
, eventJsonConverter.convertToJson(eventModel));
1,455,258
// Used in public Conscrypt APIs<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>static javax.security.cert.X509Certificate[] toCertificateChain(X509Certificate[] certificates) throws SSLPeerUnverifiedException {<NEW_LINE>try {<NEW_LINE>javax.security.cert.X509Certificate[] chain = new javax.security.cert.X509Certif...
SSLPeerUnverifiedException(e.getMessage());
1,802,152
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "a0,a1,a2,b,c".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " measures A[0].theString as a0, A[1].theString as a1, A[2].theString as a2, B.theString as b, C.theString as c" + " p...
new SupportRecogBean("E15", 3));
582,625
private boolean isStaffArc(Arc arc) {<NEW_LINE>List<Point> points = arc.getPoints();<NEW_LINE>if (points.size() < params.minStaffArcLength) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Point p0 = points.get(0);<NEW_LINE>Staff staff = sheet.getStaffManager().getClosestStaff(p0);<NEW_LINE>LineInfo line = staff.getClosest...
line.yAt(p.x);
1,262,711
private URL buildURL(final TickerSymbol ticker, final Date from, final Date to) throws IOException {<NEW_LINE>// process the dates<NEW_LINE>final Calendar calendarFrom = Calendar.getInstance();<NEW_LINE>calendarFrom.setTime(from);<NEW_LINE>final Calendar calendarTo = Calendar.getInstance();<NEW_LINE>calendarTo.setTime(...
= new FormUtility(os, null);
1,013,121
public boolean transform() throws Throwable {<NEW_LINE>System.out.println("[DashO] [FakeExceptionTransformer] Starting");<NEW_LINE>AtomicInteger counter = new AtomicInteger();<NEW_LINE>Set<String> fakeExceptionClass = new HashSet<>();<NEW_LINE>classNodes().forEach(classNode -> {<NEW_LINE>classNode.methods.stream().filt...
remove = new ArrayList<>();
1,480,235
public RedactionConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RedactionConfig redactionConfig = new RedactionConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken...
String currentParentElement = context.getCurrentParentElement();
734,960
public Value scriptRunCommand(ScriptHost host, BlockPos pos) {<NEW_LINE>if (CarpetServer.scriptServer.stopAll)<NEW_LINE>throw new CarpetExpressionException("SCRIPTING PAUSED (unpause with /script resume)", null);<NEW_LINE>try {<NEW_LINE>Context context = new CarpetContext(host, source, origin).with("x", (c, t) -> new N...
.expr.eval(context));
847,899
public static void appendEscapedChar(StringBuffer buffer, char c, boolean stringLiteral) {<NEW_LINE>switch(c) {<NEW_LINE>case '\b':<NEW_LINE>// $NON-NLS-1$<NEW_LINE>buffer.append("\\b");<NEW_LINE>break;<NEW_LINE>case '\t':<NEW_LINE>// $NON-NLS-1$<NEW_LINE>buffer.append("\\t");<NEW_LINE>break;<NEW_LINE>case '\n':<NEW_LI...
(Integer.toHexString(c));
418,547
public void onCardPressed(@NonNull BaseCard card) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity != null) {<NEW_LINE>if (card instanceof SplitIntervalCard) {<NEW_LINE>SplitIntervalBottomSheet.showInstance(mapActivity.getSupportFragmentManager(), trackDrawInfo, this);<NEW_LINE>} else if ...
ColoringType currentColoringType = trackColoringCard.getSelectedColoringType();
305,370
public synchronized PinotResourceManagerResponse updateInstance(String instanceId, Instance newInstance, boolean updateBrokerResource) {<NEW_LINE>InstanceConfig instanceConfig = getHelixInstanceConfig(instanceId);<NEW_LINE>if (instanceConfig == null) {<NEW_LINE>throw new NotFoundException("Failed to find instance confi...
PinotResourceManagerResponse.success("Updated instance: " + instanceId);
846,044
final CreateFirewallRuleResult executeCreateFirewallRule(CreateFirewallRuleRequest createFirewallRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFirewallRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
434,653
public String toCSVRow(@NonNull final ICountryDAO countryDAO) {<NEW_LINE>final String recipientBankCountryName = row.getRecipientBankCountryId() != null ? countryDAO.getById(row.getRecipientBankCountryId(<MASK><NEW_LINE>final String recipientCountryName = row.getRecipientCountryId() != null ? countryDAO.getById(row.get...
)).getName() : null;
1,764,693
String implIsValid() {<NEW_LINE>// test whether the selected folder on selected filesystem already exists<NEW_LINE>DataFolder lF = getLocationDataFolder();<NEW_LINE>if (lF == null)<NEW_LINE>// NOI18N<NEW_LINE>return NbBundle.getMessage(TemplateWizard2.class, "MSG_fs_or_folder_does_not_exist");<NEW_LINE>// target filesy...
"MSG_file_already_exist", locationFolder.getAbsolutePath());
1,187,659
final CreateFleetResult executeCreateFleet(CreateFleetRequest createFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
84,109
public void addToCrawler(final Collection<DigestURL> urls, final boolean asglobal) {<NEW_LINE>final Map<String, DigestURL> urlmap = new HashMap<>();<NEW_LINE>for (final DigestURL url : urls) urlmap.put(ASCII.String(url.hash()), url);<NEW_LINE>for (final Map.Entry<String, DigestURL> e : urlmap.entrySet()) {<NEW_LINE>// ...
checkAcceptanceChangeable(url, profile, 0);
443,716
private void dfs(int x, int y, String s) {<NEW_LINE>String str = s + bo[x][y];<NEW_LINE>TrieNode node = tree.searchPrefix(str);<NEW_LINE>if (node == null)<NEW_LINE>return;<NEW_LINE>if (node.isWord) {<NEW_LINE>list.add(str);<NEW_LINE>node.isWord = false;<NEW_LINE>}<NEW_LINE>char tmp = bo[x][y];<NEW_LINE>bo[x][y] = '#';<...
+ b[i], str);
821,667
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 cards = new CardsImpl(player.getLibrary().getTopCards(game, 6));<NEW_LINE>player.revealCards(source, cards, game);<NEW_LINE...
getPlayer(targetOpponent.getFirstTarget());
1,524,056
private void importApp(String appInfo, List<Env> importEnvs, String operator) {<NEW_LINE>App toImportApp = gson.<MASK><NEW_LINE>String appId = toImportApp.getAppId();<NEW_LINE>toImportApp.setDataChangeCreatedBy(operator);<NEW_LINE>toImportApp.setDataChangeLastModifiedBy(operator);<NEW_LINE>toImportApp.setDataChangeCrea...
fromJson(appInfo, App.class);
1,515,969
public void registerMap() {<NEW_LINE>handler(wrapper -> {<NEW_LINE>int recipeType = wrapper.read(Type.VAR_INT);<NEW_LINE>boolean open = wrapper.read(Type.BOOLEAN);<NEW_LINE>boolean filter = wrapper.read(Type.BOOLEAN);<NEW_LINE>// Settings<NEW_LINE>wrapper.write(Type.VAR_INT, 1);<NEW_LINE>// Crafting<NEW_LINE>wrapper.wr...
write(Type.BOOLEAN, filter);
137,785
final GetDiscoverySummaryResult executeGetDiscoverySummary(GetDiscoverySummaryRequest getDiscoverySummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDiscoverySummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
112,296
final DeleteAuthenticationProfileResult executeDeleteAuthenticationProfile(DeleteAuthenticationProfileRequest deleteAuthenticationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAuthenticationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,524,695
public UpdateCartNumResponse updateCartNum(UpdateCartNumRequest request) {<NEW_LINE>UpdateCartNumResponse response = new UpdateCartNumResponse();<NEW_LINE>response.setCode(ShoppingRetCode.SUCCESS.getCode());<NEW_LINE>response.setMsg(ShoppingRetCode.SUCCESS.getMessage());<NEW_LINE>try {<NEW_LINE>RMap itemMap = redissonC...
toString(), CartProductDto.class);
881,766
public void init(ResourceTable resourceTable, String packageName) throws RoboNotFoundException {<NEW_LINE>if (!initialised) {<NEW_LINE>for (Map.Entry<String, VALUE_TYPE> entry : typeMap.entrySet()) {<NEW_LINE>String value = valueMap.get(entry.getKey()).toString();<NEW_LINE>if (value.startsWith("@")) {<NEW_LINE>ResName ...
(resName, new ResTable_config());
505,279
public void validate() throws Exception {<NEW_LINE>if (null == _pKeyTypeMap)<NEW_LINE>throw new Exception("_pKeyTypeMap cannot be null !!");<NEW_LINE>if (null == _pKeyNameMap)<NEW_LINE>throw new Exception("_pKeyNameMap cannot be null !!");<NEW_LINE>boolean isNullIndex = (null == _pKeyIndexMap);<NEW_LINE>boolean isNullQ...
s.getEventView() + ") not provided !!");
516,472
// return pair <success?, table exist?><NEW_LINE>public Pair<Boolean, Boolean> createTableWithLock(Table table, boolean isReplay, boolean setIfNotExist) throws DdlException {<NEW_LINE>boolean result = true;<NEW_LINE>// if a table is already exists, then edit log won't be executed<NEW_LINE>// some caller of this method ...
= new CreateTableInfo(fullQualifiedName, table);
280,432
public void analyzeSentimentWithLanguageWithOpinionMining() {<NEW_LINE>// BEGIN: com.azure.ai.textanalytics.TextAnalyticsClient.analyzeSentiment#String-String-AnalyzeSentimentOptions<NEW_LINE>final DocumentSentiment documentSentiment = textAnalyticsClient.analyzeSentiment("The hotel was dark and unclean.", "en", new An...
), assessmentSentiment.isNegated());
976,562
private void enableNotificationNotifierConfigurerOnTarget(ActionReport actionReport, AdminCommandContext context) {<NEW_LINE>CommandRunner runner = serviceLocator.getService(CommandRunner.class);<NEW_LINE>ActionReport subReport = context.getActionReport().addSubActionsReport();<NEW_LINE>inv = runner.getCommandInvocatio...
"noisy", noisy.toString());
76,629
private boolean insertJobExecutionEventWhenFailure(final JobExecutionEvent jobExecutionEvent) {<NEW_LINE>boolean result = false;<NEW_LINE>try (Connection connection = dataSource.getConnection();<NEW_LINE>PreparedStatement preparedStatement = connection.prepareStatement(sqlMapper.getInsertForJobExecutionLogForFailure())...
6, jobExecutionEvent.getShardingItem());
221,324
public static ByteBuffer convertValue(Column storeColumn, BigDecimal value) {<NEW_LINE>int precision = storeColumn.getPrecision();<NEW_LINE>int scale = storeColumn.getScale();<NEW_LINE>int bytesNeeded = getDecimalColumnSpace(precision, scale);<NEW_LINE>ByteBuffer result = ByteBuffer.allocateDirect(bytesNeeded);<NEW_LIN...
setScale(scale, RoundingMode.HALF_UP);
1,621,588
public int endCache() {<NEW_LINE>if (currentCache == null)<NEW_LINE>throw new IllegalStateException("beginCache must be called before endCache.");<NEW_LINE>Cache cache = currentCache;<NEW_LINE>int cacheCount = mesh.getVerticesBuffer().position() - cache.offset;<NEW_LINE>if (cache.textures == null) {<NEW_LINE>// New cac...
getVerticesBuffer()).flip();
1,373,873
public void onEndPage(PdfWriter writer, com.itextpdf.text.Document document) {<NEW_LINE>PdfContentByte cb = writer.getDirectContent();<NEW_LINE>cb.saveState();<NEW_LINE>Date date = new Date();<NEW_LINE>String textLeft = "Page " + writer.getPageNumber() + " of ";<NEW_LINE>String textRight = date + " " + "Page...
= document.bottom() - 20;
698,704
private void hashHistories() {<NEW_LINE>int fAll = maxentTagger.extractors.size() <MASK><NEW_LINE>int fGeneral = maxentTagger.extractors.size();<NEW_LINE>log.info("Hashing histories ...");<NEW_LINE>for (int x = 0; x < xSize; x++) {<NEW_LINE>History h = tHistories.getHistory(x);<NEW_LINE>// It's the 2010s now and it doe...
+ maxentTagger.extractorsRare.size();