idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
681,536
public final boolean allMatch(final Predicate<? super T> c) {<NEW_LINE>Future<Boolean<MASK><NEW_LINE>if (async == Type.NO_BACKPRESSURE) {<NEW_LINE>ReactiveStreamX<T> filtered = (ReactiveStreamX<T>) filter(c.negate());<NEW_LINE>filtered.source.subscribeAll(e -> {<NEW_LINE>result.complete(false);<NEW_LINE>throw new Queue...
> result = Future.future();
241,739
private void patchConfigmapTrait(JSONArray traits, AppInstance appInstance, AppComponentInstance appComponentInstance) {<NEW_LINE>JSONArray targets = new JSONArray();<NEW_LINE>JSONObject configmaps = new JSONObject();<NEW_LINE>traits.add(JsonUtil.map("name", "configmap.trait.abm.io", "runtime", "pre", "spec", JsonUtil....
String name = UuidUtil.shortUuid();
1,647,343
public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass pluginBundleVersionClass = schema.createEClass("store", "PluginBundleVersion");<NEW_LINE>EEnum pluginBundleType = schema.createEEnum("store", "PluginBundleType");<NEW_LINE>schema.createEEnumLiteral(pluginBundleType, "MAVEN");<NEW_LINE...
schema.createEEnumLiteral(pluginType, "WEB_MODULE");
1,217,280
private void PropagateLabelPush(IFragment<Long, Long, Long, Double> fragment, ParallelContextBase<Long, Long, Long, Double> context, ParallelMessageManager mm) {<NEW_LINE>WCCContext ctx = (WCCContext) context;<NEW_LINE>VertexRange<Long> innerVertices = fragment.innerVertices();<NEW_LINE>VertexRange<Long> outerVertices ...
executor, ctx.currModified, consumer);
532,928
public static void createTarGzFile(File[] inputFiles, File outputFile) throws IOException {<NEW_LINE>Preconditions.checkArgument(outputFile.getName().endsWith(TAR_GZ_FILE_EXTENSION), "Output file: %s does not have '.tar.gz' file extension", outputFile);<NEW_LINE>try (OutputStream fileOut = Files.newOutputStream(outputF...
OutputStream gzipOut = new GzipCompressorOutputStream(bufferedOut);
973,417
private String call(byte[] ownerAddressByte, byte[] contractAddressByte, long value, byte[] data) {<NEW_LINE>TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder();<NEW_LINE>Return.Builder retBuilder = Return.newBuilder();<NEW_LINE>TransactionExtention trxExt;<NEW_LINE>try {<NEW_LINE>callTrigger...
e.getMessage(), e);
1,839,161
private final PricingConditionsBreakQuery createPricingConditionsBreakQuery(final I_C_OrderLine salesOrderLine) {<NEW_LINE>final IProductDAO productsRepo = Services.get(IProductDAO.class);<NEW_LINE>final IAttributeDAO attributesRepo = Services.get(IAttributeDAO.class);<NEW_LINE>final ProductId productId = ProductId.<MA...
ofRepoId(salesOrderLine.getM_Product_ID());
694,204
private void updateReferences() {<NEW_LINE>for (IdEObject idEObject : newModel.getValues()) {<NEW_LINE>if (idEObject instanceof IfcRoot) {<NEW_LINE>String guid = ((IfcRoot) idEObject).getGlobalId();<NEW_LINE>IfcRoot oldObject = (IfcRoot) resultModel.getByGuid(guid);<NEW_LINE>for (EReference eReference : idEObject.eClas...
referencedObject = idEObject.eGet(eReference);
493,372
public Comic parseInfo(String html, Comic comic) throws UnsupportedEncodingException {<NEW_LINE><MASK><NEW_LINE>String title = body.text("div.intro_l > div.title > h1");<NEW_LINE>String cover = body.src("div.intro_l > div.info_cover > p.cover > img");<NEW_LINE>String update = body.text("div.intro_l > div.info > p:eq(0)...
Node body = new Node(html);
1,792,577
public static void onCrafting(ItemCraftedEvent event) {<NEW_LINE>ItemStack result = event.getCrafting();<NEW_LINE>if (!result.isEmpty() && result.getItem() instanceof ItemBlockBin && ItemDataUtils.getBoolean(result, NBTConstants.FROM_RECIPE)) {<NEW_LINE>BinInventorySlot slot = convertToSlot(result);<NEW_LINE><MASK><NEW...
ItemStack storedStack = slot.getStack();
1,624,452
public void init(Action action, ActionArgumentValue[] presetInputValues) {<NEW_LINE>inputArgumentsTable = new ActionArgumentTable(action, true) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onExpandText(String text) {<NEW_LINE>presenter.onExpandText(text);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>outputArgumentsTable =...
"Invoking Action: " + action.getName());
1,749,826
public void marshall(AwsIamPolicyDetails awsIamPolicyDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsIamPolicyDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsIamPolicyDetails.getAtta...
awsIamPolicyDetails.getIsAttachable(), ISATTACHABLE_BINDING);
1,571,615
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public PortfolioItemSummary summarize() {<NEW_LINE>// 2Y Buy USD 1mm INDEX / 1.5% : 21Jan18-21Jan20<NEW_LINE>PeriodicSchedule paymentSchedule = product.getPaymentSchedule();<NEW_LINE><MASK><NEW_LINE>buf.append(Summa...
StringBuilder buf = new StringBuilder(96);
899,830
public Flux<CommandResponse<ZAggregateCommand, Flux<Tuple>>> zInterWithScores(Publisher<? extends ZAggregateCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notEmpty(command.getSourceKeys(), "Source keys must not be null or empty!");<NEW_LINE>List<Object> args = new ArrayList<>(comman...
(weight).toPlainString());
370,541
Pair<DcMeta, Set<String>> extractOuterDcMetaWithInterestedTypes(OuterClientService.DcMeta outerDcMeta) {<NEW_LINE>DcMeta dcMeta = new DcMeta(outerDcMeta.getDcName());<NEW_LINE>Map<String, OuterClientService.ClusterMeta> outerClusterMetas = outerDcMeta.getClusters();<NEW_LINE>Set<String> filterClusters = new HashSet<>()...
add(outerClusterMeta.getName());
1,645,219
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null)<NEW_LINE>return;<NEW_LINE>FileEditor fileEditor = e.getData(PlatformDataKeys.FILE_EDITOR);<NEW_LINE>if (fileEditor == null)<NEW_LINE>return;<NEW_LINE>VirtualFile virtualFil...
getInstance().triggerFeatureUsed("navigation.popup.file.structure");
841,474
public Result demoteLocalLeader(long timestamp) {<NEW_LINE>try {<NEW_LINE>Optional<HighAvailabilityConfig> config = HighAvailabilityConfig.getByClusterKey(this.getClusterKey());<NEW_LINE>if (!config.isPresent()) {<NEW_LINE>LOG.warn("No HA configuration configured, skipping request");<NEW_LINE>return <MASK><NEW_LINE>}<N...
ApiResponse.error(NOT_FOUND, "Invalid config UUID");
282,889
public List<SortField> guessSortTypes(String name) {<NEW_LINE>FieldInfo finfo = IndexUtils.getFieldInfo(reader, name);<NEW_LINE>if (finfo == null) {<NEW_LINE>throw new LukeException("No such field: " + name, new IllegalArgumentException());<NEW_LINE>}<NEW_LINE>DocValuesType dvType = finfo.getDocValuesType();<NEW_LINE>s...
collect(Collectors.toList());
870,446
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.location_history);<NEW_LINE>findViewById(R.id.clear_location).setOnClickListener(new OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View v) {<NEW_LINE>// Tell...
).post(produceLocationEvent());
1,386,502
private TextView generateTextView(String text, Context context, boolean shouldContentCentered, int fontColor, boolean showBulletPoints) {<NEW_LINE>int standardMargin = context.getResources().getDimensionPixelSize(R.dimen.standard_margin);<NEW_LINE>int doubleMargin = context.getResources().getDimensionPixelSize(R.dimen....
textView.setGravity(Gravity.START);
941,908
private static Map<String, Set<String>> projectDependencies(Set<Project> projects) {<NEW_LINE>Map<String, Set<String>> project2DirectDependencies = new HashMap<>();<NEW_LINE>List<Project> todoList = new LinkedList<>(projects);<NEW_LINE>while (!todoList.isEmpty()) {<NEW_LINE>Project prj = todoList.remove(0);<NEW_LINE>St...
(project2AllDependencies.get(dep));
1,090,997
public static DescribePodLogResponse unmarshall(DescribePodLogResponse describePodLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePodLogResponse.setRequestId(_ctx.stringValue("DescribePodLogResponse.RequestId"));<NEW_LINE>describePodLogResponse.setCode(_ctx.integerValue("DescribePodLogResponse.Code"));<NEW_LI...
(_ctx.booleanValue("DescribePodLogResponse.Success"));
1,208,733
public ContentValues generateContentValuesForMultiPartUpload(String bucket, String key, File file, long fileOffset, int partNumber, String uploadId, long bytesTotal, int isLastPart, ObjectMetadata metadata, CannedAccessControlList cannedAcl, TransferUtilityOptions tuOptions) {<NEW_LINE>final ContentValues values = new ...
put(TransferTable.COLUMN_IS_LAST_PART, isLastPart);
661,807
public void reduce(final IntWritable key, final Iterator<Text> values, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>int i, j;<NEW_LINE>long[][] self_bm = new long[block_width][nreplication];<NEW_LINE>long[][] out_vals = new long[block_width][nreplication];<NEW_...
.formatVectorElemOutput("s", new_vector));
758,879
final DescribeScheduledActionsResult executeDescribeScheduledActions(DescribeScheduledActionsRequest describeScheduledActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeScheduledActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
invoke(request, responseHandler, executionContext);
674,098
private String _findTemplate(String val) {<NEW_LINE>// were we given an ordinal number?<NEW_LINE>Integer num = null;<NEW_LINE>try {<NEW_LINE>num = Integer.parseInt(val) - 1;<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>Timber.w(e);<NEW_LINE>num = null;<NEW_LINE>}<NEW_LINE>if (num != null) {<NEW_LINE>return "c....
.getLong("id") + ")");
1,444,242
public void performReplaceAtributeName(MapModel map, final String oldName, final String newName) {<NEW_LINE>if (oldName.equals("") || newName.equals("") || oldName.equals(newName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AttributeRegistry registry = AttributeRegistry.getRegistry(map);<NEW_LINE>final int iOld = reg...
= new AttributeRenamer(oldName, newName);
1,127,555
private void createDialogBox() {<NEW_LINE>JFrame mainFrame = GuiPackage.getInstance().getMainFrame();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String // $NON-NLS-1$<NEW_LINE>title = // $NON-NLS-1$<NEW_LINE>editable ? // $NON-NLS-1$<NEW_LINE>JMeterUtils.getResString("textbox_title_edit") : JMeterUtils.getResString("textbox_titl...
(JMeterUtils.getResString("textbox_cancel"));
1,230,701
private void processMainServer(Map<Server, Long> servers, RouterConfig routerConfig, Map<String, Long> statistics, String group) {<NEW_LINE>for (Entry<String, Long> entry : statistics.entrySet()) {<NEW_LINE>try {<NEW_LINE>String domainName = entry.getKey();<NEW_LINE>Domain defaultDomainConfig = m_configManager.getRoute...
Long value = entry.getValue();
521,730
private Collection<? extends TripToTripTransfer<T>> findStandardTransfers(TripStopTime<T> from) {<NEW_LINE>final List<TripToTripTransfer<T>> result = new ArrayList<>();<NEW_LINE>Iterator<? extends RaptorTransfer> transfers = stdTransfers.<MASK><NEW_LINE>while (transfers.hasNext()) {<NEW_LINE>var it = transfers.next();<...
getTransfersFromStop(from.stop());
61,784
public CurrencyAmount presentValue(ResolvedFxNdf ndf, RatesProvider provider) {<NEW_LINE><MASK><NEW_LINE>if (provider.getValuationDate().isAfter(ndf.getPaymentDate())) {<NEW_LINE>return CurrencyAmount.zero(ccySettle);<NEW_LINE>}<NEW_LINE>Currency ccyOther = ndf.getNonDeliverableCurrency();<NEW_LINE>CurrencyAmount notio...
Currency ccySettle = ndf.getSettlementCurrency();
1,239,543
static Matcher extractPrefixFromOr(Matcher matcher) {<NEW_LINE>if (matcher instanceof OrMatcher) {<NEW_LINE>// Get the prefix for the first condition<NEW_LINE>List<Matcher> matchers = matcher.<OrMatcher>as().matchers();<NEW_LINE>if (matchers.isEmpty()) {<NEW_LINE>return matcher;<NEW_LINE>}<NEW_LINE>Matcher prefix = Pat...
(PatternUtils.getSuffix(m));
1,794,731
private static RuntimeConverter createRuntimeConverter(TypeInformation<?> info) {<NEW_LINE>if (info.equals(Types.VOID)) {<NEW_LINE>return (csvMapper, container, obj) -> container.nullNode();<NEW_LINE>} else if (info.equals(Types.STRING)) {<NEW_LINE>return (csvMapper, container, obj) -> container.textNode((String) obj);...
textNode(obj.toString());
839,539
final SetVaultAccessPolicyResult executeSetVaultAccessPolicy(SetVaultAccessPolicyRequest setVaultAccessPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setVaultAccessPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Glacier");
1,258,686
private PerformWorkResult performWork() {<NEW_LINE>final WFNode wfNode = getNode();<NEW_LINE>log.debug("Performing work for {}", wfNode);<NEW_LINE>if (wfNode.getPriority() != 0) {<NEW_LINE>setPriority(wfNode.getPriority());<NEW_LINE>}<NEW_LINE>final WFNodeAction action = wfNode.getAction();<NEW_LINE>if (WFNodeAction.Wa...
throw new AdempiereException("Action not handled: " + action);
70,820
void retrieveSupplementalInfo() throws IOException {<NEW_LINE>CharSequence contents = HttpHelper.downloadViaHttp("https://www.googleapis.com/books/v1/volumes?q=isbn:" + <MASK><NEW_LINE>if (contents.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String title;<NEW_LINE>String pages;<NEW_LINE>Collection<String> aut...
isbn, HttpHelper.ContentType.JSON);
1,096,623
public void onBindViewHolder(final ViewHolder holder, int position) {<NEW_LINE>holder.textView.setText(items[position]);<NEW_LINE>holder.itemView.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View view) {<NEW_LINE>Intent i = new Intent(activity, LabelActivity....
Intent(activity, LabelActivity.class);
254,654
private void parseTrackFragmentHeader(MpegVersionedSectionInfo tfhd, MpegTrackFragmentHeader.Builder builder) throws IOException {<NEW_LINE>builder.setTrackId(reader.data.readInt());<NEW_LINE>if ((tfhd.flags & 0x000010) != 0) {<NEW_LINE>// Need to read default sample size, but first must skip the fields before it<NEW_L...
reader.data.readInt());
367,970
public boolean isResource(String uri, User user) throws IOException {<NEW_LINE>uri = stripMapping(uri);<NEW_LINE>Logger.debug(this.getClass(), "In the Method isResource");<NEW_LINE>if (uri.endsWith("/")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean returnValue = false;<NEW_LINE>// Host<NEW_LINE>String hostName ...
e.getMessage(), e);
383,107
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (<MASK><NEW_LINE>Composite editArea = new Composite(composite, SWT.NONE);<NEW_LINE>editArea.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));<NEW_LINE>editArea.setLayout(new FormLayou...
Composite) super.createDialogArea(parent);
1,300,355
public BaseConnectionParam createConnectionParams(BaseDataSourceParamDTO datasourceParam) {<NEW_LINE>RedshiftDataSourceParamDTO redshiftParam = (RedshiftDataSourceParamDTO) datasourceParam;<NEW_LINE>String address = String.format("%s%s:%s", Constants.JDBC_REDSHIFT, redshiftParam.getHost(), redshiftParam.getPort());<NEW...
redshiftConnectionParam.setDriverClassName(getDatasourceDriver());
776,811
public static QuerySavingsPlansInstanceResponse unmarshall(QuerySavingsPlansInstanceResponse querySavingsPlansInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySavingsPlansInstanceResponse.setRequestId(_ctx.stringValue("QuerySavingsPlansInstanceResponse.RequestId"));<NEW_LINE>querySavingsPlansInstanceResponse...
(_ctx.stringValue("QuerySavingsPlansInstanceResponse.Message"));
120,821
public static void unzipStreamToDirectory(InputStream rawIn, String dstDirName) throws IOException {<NEW_LINE>safeMakeDir(dstDirName);<NEW_LINE>File dstDir = new File(dstDirName);<NEW_LINE><MASK><NEW_LINE>ZipEntry ze = zin.getNextEntry();<NEW_LINE>while (ze != null) {<NEW_LINE>String fileName = ze.getName();<NEW_LINE>i...
ZipInputStream zin = new ZipInputStream(rawIn);
803,824
public static boolean start(final long id, final int after, final Context context) {<NEW_LINE>long curtime = SystemClock.elapsedRealtime();<NEW_LINE>if (0 > after) {<NEW_LINE>Log.e(TAG, "id:%d, after:%d", id, after);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (null == context) {<NEW_LINE>Log.e(TAG, "null==context, i...
>= 0 ? curtime + after : curtime;
421,958
public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}".replaceAll("\\{" + "name" + "\\}", l...
final String[] localVarContentTypes = {};
1,661,355
private void rebuildFileRootsCache() {<NEW_LINE>shortcutsRootsPanel.clear();<NEW_LINE>File[<MASK><NEW_LINE>driveCheckerListeners.clear();<NEW_LINE>for (final File root : roots) {<NEW_LINE>DriveCheckerListener listener = new DriveCheckerListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void rootMode(File root, R...
] roots = File.listRoots();
66,051
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Project project = call.rel(0);<NEW_LINE>final DruidQuery query = call.rel(1);<NEW_LINE>final RelOptCluster cluster = project.getCluster();<NEW_LINE>final <MASK><NEW_LINE>if (!DruidQuery.isValidSignature(query.signature() + 'p')) {<NEW_LINE>return;<NEW_LINE>}<NEW...
RexBuilder rexBuilder = cluster.getRexBuilder();
127,092
private static List<ProductWithAvailabilityInfo> createProductWithAvailabilityInfos(@NonNull final LookupValue productLookupValue, @NonNull final ImmutableList<Group> availabilityInfoGroups, final boolean displayAvailabilityInfoOnlyIfPositive) {<NEW_LINE>final Set<ProductWithAvailabilityInfo> result = new LinkedHashSet...
getAttributes()).build();
1,159,261
public boolean initializeRenderer(RenderPatchFactory rpf, String blkname, BitSet blockdatamask, Map<String, String> custparm) {<NEW_LINE>if (!super.initializeRenderer(rpf, blkname, blockdatamask, custparm))<NEW_LINE>return false;<NEW_LINE>// How many defined track IDs<NEW_LINE>String cnt = custparm.get("maxTrackId");<N...
, 0, 0, i) };
310,444
public static DynamicConfigAddQueueConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<N...
decodeInt(initialFrame.content, REQUEST_MERGE_BATCH_SIZE_FIELD_OFFSET);
565,186
public static File createSymLink(@Nonnull String target, @Nonnull String link, boolean shouldExist) throws InterruptedException, IOException {<NEW_LINE>assertTrue(SystemInfo.isWindows || SystemInfo.isUnix);<NEW_LINE>final File targetFile = new File<MASK><NEW_LINE>final File linkFile = getFullLinkPath(link);<NEW_LINE>fi...
(FileUtil.toSystemDependentName(target));
1,046,197
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String tapName, 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_LINE>}<NEW_...
getSubscriptionId(), accept, context);
1,552,262
void draw(Graphics g) {<NEW_LINE>setBbox(point1, point2, opheight * 2);<NEW_LINE>setVoltageColor(g, volts[0]);<NEW_LINE>drawThickLine(g, in1p[0], in1p[1]);<NEW_LINE>setVoltageColor(g, volts[1]);<NEW_LINE>drawThickLine(g, in2p[0], in2p[1]);<NEW_LINE>setVoltageColor(g, volts[2]);<NEW_LINE>drawThickLine(g, lead2, point2);...
needsHighlight() ? selectColor : lightGrayColor);
743,820
@Path("{id}/delete")<NEW_LINE>public Response deletePid(@PathParam("id") String idSupplied) {<NEW_LINE>try {<NEW_LINE>Dataset dataset = findDatasetOrDie(idSupplied);<NEW_LINE>// Restrict to never-published datasets (that should have draft/nonpublic pids). The underlying code will invalidate<NEW_LINE>// pids that have b...
).asString())));
1,664,532
final DeleteVoiceConnectorOriginationResult executeDeleteVoiceConnectorOrigination(DeleteVoiceConnectorOriginationRequest deleteVoiceConnectorOriginationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceConnectorOriginationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
471,150
final DeleteUtterancesResult executeDeleteUtterances(DeleteUtterancesRequest deleteUtterancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUtterancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Lex Model Building Service");
1,752,035
protected void addSubscriptionToMessage(MESubscription subscription, boolean isLocalBus) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "addSubscriptionToMessage", new Object[] { subscription, new Boolean(isLocalBus) });<NEW_LINE>// Add the subscription related information.<NEW_LINE>iTopics.add(subscripti...
getTopicSpaceName().toString());
38,817
public void enterS_interface_nve(S_interface_nveContext ctx) {<NEW_LINE>int line = ctx<MASK><NEW_LINE>int first = toInteger(ctx.nverange.iname.first);<NEW_LINE>int last = ctx.nverange.last != null ? toInteger(ctx.nverange.last) : first;<NEW_LINE>// flip first and last if range is backwards<NEW_LINE>if (last < first) {<...
.getStart().getLine();
373,274
protected void updatePolyBuffers(boolean lit, boolean tex, boolean needNormals, boolean needTexCoords) {<NEW_LINE>createPolyBuffers(PGL.bufferUsageImmediate);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUFFER, bufPolyVertex.glId);<NEW_LINE>tessGeo.copyPolyVertices(PGL.bufferUsageImmediate);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUF...
PGL.ARRAY_BUFFER, bufPolyAmbient.glId);
567,426
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response deleteVersion(@Context final HttpServletRequest httpRequest, @Context final HttpServletResponse httpResponse, @PathParam("versionableInode") final...
User user = initData.getUser();
1,507,155
public Mono<Void> withoutFallback(final ServerWebExchange exchange, final Throwable throwable) {<NEW_LINE>Object error;<NEW_LINE>if (throwable instanceof DegradeException) {<NEW_LINE>exchange.getResponse().setStatusCode(HttpStatus.INTERNAL_SERVER_ERROR);<NEW_LINE>error = ShenyuResultWrap.error(exchange, ShenyuResultEnu...
WebFluxResultUtils.result(exchange, error);
808,598
private static Map<String, Object> defToMap(Map<FieldDef, String> entMap) {<NEW_LINE>Map<String, Object> dataMap = new HashMap<>();<NEW_LINE>dataMap.computeIfAbsent("pub_id", s -> entMap.get(ID));<NEW_LINE>dataMap.computeIfAbsent("pub_api_id", s -> entMap.get(API_ID));<NEW_LINE>dataMap.computeIfAbsent("pub_method", s -...
.get(REQ_HEADER_SCHEMA) + ",");
379,103
public void trsm(char Order, char Side, char Uplo, char TransA, char Diag, double alpha, INDArray A, INDArray B) {<NEW_LINE>if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)<NEW_LINE>OpProfiler.getInstance().processBlasCall(false, A, B);<NEW_LINE>if (A.rows() > Integer.MAX_VALUE || A.colu...
) B.size(0));
1,839,608
private Test createAotTestTask(Project project, SourceSetContainer sourceSets, Jar generatedTestSourcesJar) {<NEW_LINE>Test test = project.getTasks().<MASK><NEW_LINE>test.useJUnitPlatform();<NEW_LINE>test.setTestClassesDirs(sourceSets.findByName(SourceSet.TEST_SOURCE_SET_NAME).getOutput().getClassesDirs());<NEW_LINE>//...
create(AOT_TEST_TASK_NAME, Test.class);
137,286
public Dialog create() {<NEW_LINE>// Get resources<NEW_LINE>final WebView webView = createWebView(mContext, mEnableDarkMode);<NEW_LINE>webView.loadDataWithBaseURL(null, mLicensesText, "text/html", "utf-8", null);<NEW_LINE>final AlertDialog.Builder builder;<NEW_LINE>if (mThemeResourceId != 0) {<NEW_LINE>builder = new Al...
) -> dialogInterface.dismiss());
556,970
public static DescriptorMapping withDefaults() {<NEW_LINE>final DescriptorMapping mapping = new DescriptorMapping();<NEW_LINE>mapping.register(Object.class, new ObjectDescriptor());<NEW_LINE>mapping.register(ApplicationWrapper.class, new ApplicationDescriptor());<NEW_LINE>mapping.register(Activity.class, new ActivityDe...
.class, new DialogDescriptor());
1,412,133
public void marshall(SendTextMessageRequest sendTextMessageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sendTextMessageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sendTextMessageReq...
sendTextMessageRequest.getKeyword(), KEYWORD_BINDING);
842,563
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String aut...
Utils.getValueFromIdByName(id, "resourceGroups");
320,925
public static QueryMapVersionsResponse unmarshall(QueryMapVersionsResponse queryMapVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMapVersionsResponse.setRequestId(_ctx.stringValue("QueryMapVersionsResponse.RequestId"));<NEW_LINE>queryMapVersionsResponse.setMessage(_ctx.stringValue("QueryMapVersionsResponse...
(_ctx.booleanValue("QueryMapVersionsResponse.Success"));
961,662
private boolean handleUnescapedQuote() {<NEW_LINE>unescaped = true;<NEW_LINE>switch(quoteHandling) {<NEW_LINE>case BACK_TO_DELIMITER:<NEW_LINE>int pos;<NEW_LINE>int lastPos = 0;<NEW_LINE>while ((pos = nextDelimiter()) != -1) {<NEW_LINE>lastPos = pos;<NEW_LINE>String value = output.appender.substring(0, pos);<NEW_LINE>i...
output.appender.append(quote);
1,074,168
public void visit(Plugin target) {<NEW_LINE>Plugin t = target;<NEW_LINE>assert t != null ? t.isInDocumentModel() : true;<NEW_LINE>POMQNames names = parent.getPOMQNames();<NEW_LINE>checkChildString(names.GROUPID, GROUPID(), t != null ? t.getGroupId() : null);<NEW_LINE>checkChildString(names.ARTIFACTID, ARTIFACTID(), t !...
.getId() : EXECUTION();
1,224,442
protected Bound createBoundQuery(List<TypedValue> values) {<NEW_LINE>TypedValue[] internalBoundValues = new TypedValue[internalBindMarkers.size()];<NEW_LINE>for (int i = 0; i < internalWhereValues.size(); i++) {<NEW_LINE>Value<?> internalValue = internalWhereValues.get(i);<NEW_LINE>BindMarker internalMarker = internalB...
(whereClause), optLimit, optPerPartitionLimit);
1,020,151
public <T> CosmosPagedFlux<T> queryItemsOnEncryptedProperties(SqlQuerySpecWithEncryption sqlQuerySpecWithEncryption, CosmosQueryRequestOptions options, Class<T> classType) {<NEW_LINE>if (options == null) {<NEW_LINE>options = new CosmosQueryRequestOptions();<NEW_LINE>}<NEW_LINE>if (specWithEncryptionAccessor.getEncrypti...
.getValue(), this));
1,563,456
private List<Column> inferHeader(List<List<Object>> values) {<NEW_LINE>List<Object> typedValues = values.get(0);<NEW_LINE>LinkedList<Column> columns = new LinkedList<>();<NEW_LINE>boolean isHeader = typedValues.stream().allMatch(typedValue -> typedValue instanceof String);<NEW_LINE>if (isHeader) {<NEW_LINE>typedValues ...
(typedValues.get(i));
1,386,781
private Mono<PagedResponse<IpGroupInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, 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_LINE>}<NEW_LINE...
this.client.mergeContext(context);
77,153
private void readAllFields(PageCursor cursor) throws IOException {<NEW_LINE>do {<NEW_LINE>creationTimeField = getRecordValue(cursor, Position.TIME);<NEW_LINE>randomNumberField = getRecordValue(cursor, Position.RANDOM_NUMBER);<NEW_LINE>versionField = getRecordValue(cursor, Position.LOG_VERSION);<NEW_LINE>long lastCommit...
getRecordValue(cursor, CHECKPOINT_LOG_VERSION, 0);
649,112
public void onActivityResult(Activity a, int requestCode, int resultCode, Intent data) {<NEW_LINE>final ActivityEventListener ael = this;<NEW_LINE>mStripe.onSetupResult(requestCode, data, new ApiResultCallback<SetupIntentResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(@NonNull SetupIntentResult ...
.resolve(convertSetupIntentResultToWritableMap(result));
194,213
public PointSensitivityBuilder parSpreadSensitivity(ResolvedSwap swap, RatesProvider provider) {<NEW_LINE>// does the fixed leg of the swap, if it exists, have a future value notional<NEW_LINE>if (!swap.getLegs(SwapLegType.FIXED).isEmpty()) {<NEW_LINE>ResolvedSwapLeg fixedLeg = fixedLeg(swap);<NEW_LINE>Optional<FixedOv...
(pvbpDr.multipliedBy(pvbpBar));
1,247,612
private int findFloorIn2LgF(int[] floors) {<NEW_LINE>int key = 1;<NEW_LINE>int searchFloor = 0;<NEW_LINE>// Since N can be much larger than F, we use repeated doubling when searching for higher floors<NEW_LINE>for (int powerOf2 = 1; searchFloor < floors.length; powerOf2++) {<NEW_LINE><MASK><NEW_LINE>if (key == floors[s...
StdOut.println("Debug - current index: " + searchFloor);
990,878
public Configuration extendsFrom(Configuration... extendsFrom) {<NEW_LINE>validateMutation(MutationType.DEPENDENCIES);<NEW_LINE>for (Configuration configuration : extendsFrom) {<NEW_LINE>if (configuration.getHierarchy().contains(this)) {<NEW_LINE>throw new InvalidUserDataException(String.format("Cyclic extendsFrom from...
, configuration.getHierarchy()));
916,137
private void init(CentralProcessor processor) {<NEW_LINE>GridBagConstraints sysConstraints = new GridBagConstraints();<NEW_LINE>sysConstraints.weightx = 1d;<NEW_LINE>sysConstraints.weighty = 1d;<NEW_LINE>sysConstraints.fill = GridBagConstraints.BOTH;<NEW_LINE>GridBagConstraints procConstraints = (GridBagConstraints) sy...
add(cpuPanel, BorderLayout.CENTER);
1,692,636
private LogSegment checkArgsAndGetFirstSegment(long segmentCapacity, boolean needSwapSegment) throws StoreException {<NEW_LINE>if (capacityInBytes <= 0 || segmentCapacity <= 0) {<NEW_LINE>throw new IllegalArgumentException("One of totalCapacityInBytes [" + capacityInBytes + "] or " + "segmentCapacityInBytes [" + segmen...
getSecond(), segmentCapacity, numSegments);
1,025,172
protected void handleSearchButtonSelected() {<NEW_LINE>IJavaProject project = getJavaProject();<NEW_LINE>IJavaElement[] elements = null;<NEW_LINE>if ((project == null) || !project.exists()) {<NEW_LINE>IJavaModel model = JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());<NEW_LINE>if (model != null) {<NEW_LINE>tr...
setText(type.getFullyQualifiedName());
1,294,349
private static void sendEventOne(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, String id) {<NEW_LINE>if (eventRepresentationEnum.isObjectArrayEvent()) {<NEW_LINE>env.sendEventObjectArray(new Object[] { id }, "EventOne");<NEW_LINE>} else if (eventRepresentationEnum.isMapEvent()) {<NEW_LIN...
theEvent.put("id", id);
1,646,388
protected void generateStatementText() {<NEW_LINE>statementText = new StringBuilder();<NEW_LINE>StringBuilder columnList = generateColumnText();<NEW_LINE>StringBuilder constraint = processConstraints();<NEW_LINE>String tableName = ((QueryTable) tableList.get(0)).getTableDesc().getName();<NEW_LINE>// Create the query fi...
(" where ").append(constraint);
1,573,000
protected void _addEnumProps(Class<?> propClass, Schema property) {<NEW_LINE>final boolean useIndex = _mapper.isEnabled(SerializationFeature.WRITE_ENUMS_USING_INDEX);<NEW_LINE>final boolean useToString = _mapper.isEnabled(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);<NEW_LINE>Optional<Method> jsonValueMethod = Arr...
enumValues[en.ordinal()];
482,086
public void mouseWheelMoved(MouseWheelEvent e) {<NEW_LINE>if (!e.isAltDown()) {<NEW_LINE>super.mouseWheelMoved(e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MainView view = <MASK><NEW_LINE>final MapView map = (MapView) SwingUtilities.getAncestorOfClass(MapView.class, view);<NEW_LINE>if (map.usesLayoutSpecificMaxNodeWi...
(MainView) e.getComponent();
178,189
public boolean validateReferer(HttpServletRequest request) {<NEW_LINE>final String uri = request.getRequestURI() == null ? "/" : request.getRequestURI().toLowerCase();<NEW_LINE>final String url = request.getServerName() + uri;<NEW_LINE><MASK><NEW_LINE>final String incomingReferer = (request.getHeader("Origin") != null)...
final String urlHost = hostFromUrl(url);
586,432
final AssociateAddressResult executeAssociateAddress(AssociateAddressRequest associateAddressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateAddressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
506,657
public void createSmaps(Analyzer analyzer) {<NEW_LINE>Preconditions.checkNotNull(outputTupleDesc_);<NEW_LINE>Preconditions.checkNotNull(intermediateTupleDesc_);<NEW_LINE>List<Expr> exprs = Lists.newArrayListWithCapacity(groupingExprs_.size() + aggregateExprs_.size());<NEW_LINE>exprs.addAll(groupingExprs_);<NEW_LINE>exp...
).get(i)));
1,487,470
private void loadNode654() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsVariableType_BrowseNextCount, new QualifiedName(0, "BrowseNextCount"), new LocalizedText("en", "BrowseNextCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueO...
.expanded(), true));
673,283
public Input unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Input input = new Input();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token...
int originalDepth = context.getCurrentDepth();
1,009,633
public void onDownloadEmbeddedImagesEvent(DownloadEmbeddedImagesEvent event) {<NEW_LINE>if (event.getStatus().equals(Status.SUCCESS)) {<NEW_LINE>Timber.v("onDownloadEmbeddedImagesEvent %s", event.getStatus());<NEW_LINE>String content = composeMessageViewModel.getMessageDataResult().getContent();<NEW_LINE>String css = A...
doc = contentTransformer.transform(doc);
1,747,829
private void observation(String personID, String encounterID, Observation observation) throws IOException {<NEW_LINE>if (observation.value == null) {<NEW_LINE>if (observation.observations != null && !observation.observations.isEmpty()) {<NEW_LINE>// just loop through the child observations<NEW_LINE>for (Observation sub...
type = ExportHelper.getObservationType(observation);
524,788
void appPasswordMisConfigurationCheck(OAuth20Provider provider, ClientAuthnData data) {<NEW_LINE>if (appPasswordMisConfigEvaluated == true) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OidcBaseClient client = null;<NEW_LINE>boolean providerWantsAppPassword = provider.isPasswordGrantRequiresAppPassword();<NEW_LINE>boolean cli...
client = clientProvider.get(clientId);
1,804,290
private void insertNewSpacer(int rowIndex, double height) {<NEW_LINE>if (spacerScrollerRegistration == null) {<NEW_LINE>spacerScrollerRegistration = addScrollHandler(spacerScroller);<NEW_LINE>}<NEW_LINE>final SpacerImpl spacer = new SpacerImpl(rowIndex);<NEW_LINE>rowIndexToSpacer.put(rowIndex, spacer);<NEW_LINE>// set ...
calculateRowWidth(), Unit.PX);
121,952
private short nearestColorIndex(final Integer[] palette, final int nMaxColors, final int c) {<NEW_LINE>short k = 0;<NEW_LINE>double curdist, mindist = SHORT_MAX;<NEW_LINE>for (int i = 0; i < nMaxColors; ++i) {<NEW_LINE>int c2 = palette[i];<NEW_LINE>double adist = Math.abs(Color.alpha(c2) - Color.alpha(c));<NEW_LINE>cur...
- Color.green(c));
1,825,956
static protected int isSimpleAsFeature(/* const */<NEW_LINE>Geometry geometry, /* const */<NEW_LINE>SpatialReference spatialReference, boolean bForce, NonSimpleResult result, ProgressTracker progressTracker) {<NEW_LINE>if (result != null) {<NEW_LINE>result.m_reason = NonSimpleResult.Reason.NotDetermined;<NEW_LINE>resul...
()).getIsSimple(tolerance);
1,466,665
// list[-1] = val like a RubyArray<NEW_LINE>@JRubyMethod(name = "[]=")<NEW_LINE>public static IRubyObject aset(final ThreadContext context, final IRubyObject self, final IRubyObject idx, final IRubyObject val) {<NEW_LINE>final java.util.List list = unwrapIfJavaObject(self);<NEW_LINE>final int size = list.size();<NEW_LI...
.lang.Object.class));
834,336
public Object buildPostIDPInitiatedRequest(String testcase, WebClient webClient, SAMLTestSettings settings, List<validationData> expectations) throws Exception {<NEW_LINE>String thisMethod = "buildPostIDPInitiatedRequest";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>setMarkEndOfLogs();<NEW_LINE>URL url = Au...
(settings.getRelayState()));