idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,374,890
public static /*<NEW_LINE>public static class EPLInsertIntoPerformance implements RegressionExecution {<NEW_LINE>public void run(RegressionEnvironment env) {<NEW_LINE>String epl =<NEW_LINE>"insert into MyStream1 select * from SupportBean;\n" +<NEW_LINE>"insert into MyStream2 select * from MyStream1;\n" +<NEW_LINE>"inse...
long end = System.currentTimeMillis();
47,438
public static void checkPbVersion() {<NEW_LINE>if (isClassExist("com.google.protobuf.MapField")) {<NEW_LINE>pbVersion = PbVersion.PROTO3;<NEW_LINE>try {<NEW_LINE>Class jsonFormatClazz = Class.forName("com.google.protobuf.util.JsonFormat");<NEW_LINE>Method method = jsonFormatClazz.getMethod("printer");<NEW_LINE>pb3Print...
method = jsonFormatClazz.getMethod("parser");
142,222
private void initalizeSwingControls() {<NEW_LINE>accountLabel = new JTextPane();<NEW_LINE>accountLabel.setEditable(false);<NEW_LINE>accountLabel.setOpaque(false);<NEW_LINE>personaHeader = new JLabel(Bundle.MessageAccountPanel_persona_label());<NEW_LINE>contactHeader = new JLabel(Bundle.MessageAccountPanel_contact_label...
) : Bundle.MessageAccountPanel_button_create_label());
1,838,328
private void writeTabToDesign(Element design, DesignContext designContext, Tab tab) {<NEW_LINE>// get default tab instance<NEW_LINE>Tab def = new TabSheetTabImpl(null, null, null);<NEW_LINE>// create element for tab<NEW_LINE>Element <MASK><NEW_LINE>// add tab content<NEW_LINE>tabElement.appendChild(designContext.create...
tabElement = design.appendElement("tab");
862,144
public ExecutionLifecycleStatus afterJobEnds(final JobExecutionEvent event) throws ExecutionLifecyclePluginException {<NEW_LINE>if (enabled) {<NEW_LINE>event.getExecutionLogger(<MASK><NEW_LINE>String name = event.getUserName();<NEW_LINE>if (event.getResult().getResult().isSuccess()) {<NEW_LINE>event.getExecutionLogger(...
).log(2, "Finished the job!");
74,758
private void createNewKey() {<NEW_LINE>findViewById(R.id<MASK><NEW_LINE>findViewById(R.id.btShuffle).setEnabled(false);<NEW_LINE>new AsyncTask<Void, Void, InMemoryPrivateKey>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected InMemoryPrivateKey doInBackground(Void... voids) {<NEW_LINE>return new InMemoryPrivateKey(man...
.btUse).setEnabled(false);
622,581
protected void eStep() {<NEW_LINE>// variational inference to compute Q<NEW_LINE>for (MatrixEntry me : trainMatrix) {<NEW_LINE>int u = me.row();<NEW_LINE><MASK><NEW_LINE>double r = me.get();<NEW_LINE>double denominator = 0;<NEW_LINE>double[] numerator = new double[numTopics];<NEW_LINE>for (int z = 0; z < numTopics; z++...
int i = me.column();
351,132
final RestoreWorkspaceResult executeRestoreWorkspace(RestoreWorkspaceRequest restoreWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkSpaces");
1,681,254
public void init() {<NEW_LINE>if (configurationWrapper != null) {<NEW_LINE>eventMeshEnv = checkNotEmpty(ConfKeys.KEYS_EVENTMESH_ENV);<NEW_LINE><MASK><NEW_LINE>eventMeshCluster = checkNotEmpty(ConfKeys.KEYS_EVENTMESH_SERVER_CLUSTER);<NEW_LINE>eventMeshName = checkNotEmpty(ConfKeys.KEYS_EVENTMESH_SERVER_NAME);<NEW_LINE>e...
sysID = checkNumeric(ConfKeys.KEYS_EVENTMESH_SYSID);
1,355,090
public GetOpsItemResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetOpsItemResult getOpsItemResult = new GetOpsItemResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
int originalDepth = context.getCurrentDepth();
1,839,930
public void simulate(ProgramStatement statement) throws ExitingException {<NEW_LINE>String inputString = "";<NEW_LINE>// buf addr<NEW_LINE>int buf = RegisterFile.getValue("a0");<NEW_LINE>int maxLength = RegisterFile.getValue("a1") - 1;<NEW_LINE>boolean addNullByte = true;<NEW_LINE>// Guard against negative maxLength. ...
throw new ExitingException(statement, e);
1,237,986
private void adjustColumnWidths(int topColumn) {<NEW_LINE>TableColumnModel colModel = getColumnModel();<NEW_LINE>int colWidth = 0;<NEW_LINE>int subColWidth = -1;<NEW_LINE>for (int row = 0; row < getRowCount(); row++) {<NEW_LINE>Item item = (Item) getValueAt(row, topColumn);<NEW_LINE>Component ren = prepareRenderer(this...
colModel.getColumn(topColumn + 1);
499,357
private static List<MetricListener> parseDomain(String domain, Context domainContext) {<NEW_LINE>String listeners = domainContext.getString(MetricListener.KEY_DOMAIN_LISTENERS);<NEW_LINE>if (StringUtils.isBlank(listeners)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String[] listenerTypes = listeners.split("\\s+");<NEW...
final MetricListener listener = (MetricListener) listenerObject;
549,957
protected void writeValue(ByteArrayOutputStream stream, Object value) {<NEW_LINE>if (value instanceof CreateEngineRequest) {<NEW_LINE>stream.write(128);<NEW_LINE>writeValue(stream, ((CreateEngineRequest<MASK><NEW_LINE>} else if (value instanceof CreateEngineResponse) {<NEW_LINE>stream.write(129);<NEW_LINE>writeValue(st...
) value).toMap());
1,241,931
private void applyPhaseOptions(JimpleBody b, Map<String, String> opts) {<NEW_LINE>JBOptions options = new JBOptions(opts);<NEW_LINE>if (options.use_original_names()) {<NEW_LINE>PhaseOptions.v().setPhaseOptionIfUnset("jb.lns", "only-stack-locals");<NEW_LINE>}<NEW_LINE>final PackManager pacman = PackManager.v();<NEW_LINE...
("jb.dae").apply(b);
261,128
protected void send(final JsonArray reqInvocations, final JsonObject extraJson) {<NEW_LINE>startRequest();<NEW_LINE>JsonObject payload = Json.createObject();<NEW_LINE>String csrfToken = getMessageHandler().getCsrfToken();<NEW_LINE>if (!csrfToken.equals(ApplicationConstants.CSRF_TOKEN_DEFAULT_VALUE)) {<NEW_LINE>payload....
getMessageHandler().getLastSeenServerSyncId());
1,001,154
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "id".split(",");<NEW_LINE>env.advanceTime(1000);<NEW_LINE>String text = "@name('s0') select irstream * from SupportBeanTimestamp#groupwin(groupId)#time_order(timestamp, 10 sec)";<NEW_LINE>env.compileDeploy(text).addListener<MASK><NEW_LINE>// 1st ev...
("s0").milestone(0);
1,235,259
static List<SVKmer> processFasta(final int kSize, final int maxDUSTScore, final String fastaFilename) {<NEW_LINE>try (BufferedReader rdr = new BufferedReader(new InputStreamReader(BucketUtils.openFile(fastaFilename)))) {<NEW_LINE>final List<SVKmer> kmers = new ArrayList<>((int) BucketUtils.fileSize(fastaFilename));<NEW...
).forEach(kmers::add);
1,656,151
public void marshall(SourceServer sourceServer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sourceServer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sourceServer.getArn(), ARN_BINDING);<NEW_LINE>pr...
sourceServer.getVcenterClientID(), VCENTERCLIENTID_BINDING);
321,362
public ListTagsForResourceResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsForResourceResult listTagsForResourceResult = new ListTagsForResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta...
new ArrayList<Tag>());
1,819,991
static public // TODO figure out a better way to handle the above.<NEW_LINE>File selectFolder(String prompt, File folder, Frame frame) {<NEW_LINE>if (Platform.isMacOS()) {<NEW_LINE>// .pack();<NEW_LINE>if (frame == null)<NEW_LINE>frame = new Frame();<NEW_LINE>FileDialog fd = new FileDialog(frame, prompt, FileDialog.LOA...
setDirectory(folder.getParent());
1,382,090
public void visit(BLangLetExpression letExpression) {<NEW_LINE>SymbolEnv prevEnv = this.env;<NEW_LINE>// Set the enclInvokable of let expression since, when in module level the enclInvokable will be initFunction<NEW_LINE>// and the initFunction is created in desugar phase.<NEW_LINE>letExpression.env.enclInvokable = thi...
.scope = letExpression.env.scope;
1,841,324
public Iterator<Tuple2<Long, Double>> call(Iterator<DataSet> dataSetIterator) throws Exception {<NEW_LINE>if (!dataSetIterator.hasNext()) {<NEW_LINE>return Collections.singletonList(new Tuple2<>(0L, 0.0)).iterator();<NEW_LINE>}<NEW_LINE>// Does batching where appropriate<NEW_LINE>DataSetIterator iter = new IteratorData...
.getExecutioner().commit();
233,740
private Answer execute(VmDataCommand cmd) {<NEW_LINE>com.trilead.ssh2.Connection sshConnection = new com.trilead.<MASK><NEW_LINE>try {<NEW_LINE>List<String[]> vmData = cmd.getVmData();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (String[] data : vmData) {<NEW_LINE>String folder = data[0];<NEW_LINE>Str...
ssh2.Connection(_ip, 22);
1,370,306
public void serializeEvent(ByteBuf dest, ProtocolVersion version) {<NEW_LINE>if (target == Target.FUNCTION || target == Target.AGGREGATE) {<NEW_LINE>if (version.isGreaterOrEqualTo(ProtocolVersion.V4)) {<NEW_LINE>// available since protocol version 4<NEW_LINE>CBUtil.writeEnumValue(change, dest);<NEW_LINE>CBUtil.writeEnu...
CBUtil.writeAsciiString("", dest);
970,166
// Public because it's also used to convert index metadata into a thrift-compatible format<NEW_LINE>public static Pair<ColumnDefinition, IndexTarget.Type> parseTarget(CFMetaData cfm, IndexMetadata indexDef) {<NEW_LINE>String target = indexDef.options.get("target");<NEW_LINE>assert target != null : String.format(Locale....
columnName.replaceAll("\"\"", "\"");
1,567,237
public boolean substituteMethodInvocation(MethodInvocationElement invocation) {<NEW_LINE>if (invocation.getTargetExpression() != null) {<NEW_LINE>Element targetType = invocation.getTargetExpression().getTypeAsElement();<NEW_LINE>if (BigDecimal.class.getName().equals(targetType.toString())) {<NEW_LINE>// BigDecimal meth...
()).print(")");
1,259,700
private void updateButtonState(boolean next) {<NEW_LINE>if (showFilterItem != null) {<NEW_LINE>showFilterItem.setVisible(filter != null && !isNameSearch());<NEW_LINE>}<NEW_LINE>if (filter != null) {<NEW_LINE>int maxLength = 24;<NEW_LINE>String name = filter.getGeneratedName(maxLength);<NEW_LINE>// Next displays the act...
!= null && filter.isSearchFurtherAvailable();
735,504
private <R extends Resource, Q extends ResourceQuery> List<R> cacheQuery(String cacheKey, Class<Q> queryType, Supplier<List<R>> resultSupplier, BiFunction<Long, List<R>, Q> querySupplier, ResourceServer resourceServer, Consumer<R> consumer, boolean cacheResult) {<NEW_LINE>Q query = cache.get(cacheKey, queryType);<NEW_L...
cache.addRevisioned(query, startupRevision);
1,711,551
public DateTimeParseResult parse(ExtractResult er, LocalDateTime reference) {<NEW_LINE>LocalDateTime referenceDate = reference;<NEW_LINE>Object value = null;<NEW_LINE>if (er.getType().equals(getParserName())) {<NEW_LINE>DateTimeResolutionResult innerResult = this.mergeDateAndTime(er.getText(), referenceDate);<NEW_LINE>...
())).build();
1,158,886
public void prepareRenaming(PsiElement element, String newName, @NotNull Map<PsiElement, String> allRenames, @NotNull SearchScope scope) {<NEW_LINE>if (element instanceof GoTypeSpec) {<NEW_LINE>Query<PsiReference> search = ReferencesSearch.search(element, scope);<NEW_LINE>for (PsiReference ref : search) {<NEW_LINE>PsiE...
GoAnonymousFieldDefinition) element).getTypeReferenceExpression();
408,358
private void processPersonalBlockChanges() {<NEW_LINE>if (blockChanges.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// separate messages by chunk<NEW_LINE>// inner map is used to only send one entry for same coordinates<NEW_LINE>Map<Key, Map<BlockVector, BlockChangeMessage>> <MASK><NEW_LINE>BlockChangeMessage mess...
chunks = new HashMap<>();
878,390
public static QueryParamsBuilder copy(QueryParams that) {<NEW_LINE>QueryParamsBuilder copy = new QueryParamsBuilder(that.limit()).skip(that.skip());<NEW_LINE>that.from().ifPresent(it -> copy.from(it));<NEW_LINE>that.to().ifPresent(it -> copy.to(it));<NEW_LINE>that.fromInstant().ifPresent(it -> copy.fromInstant(it));<NE...
copy.author(it)));
1,440,128
public static DescribeVodDomainBpsDataResponse unmarshall(DescribeVodDomainBpsDataResponse describeVodDomainBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVodDomainBpsDataResponse.setRequestId(_ctx.stringValue("DescribeVodDomainBpsDataResponse.RequestId"));<NEW_LINE>describeVodDomainBpsDataResponse.setDo...
("DescribeVodDomainBpsDataResponse.BpsDataPerInterval[" + i + "].HttpsValue"));
910,559
public InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext) {<NEW_LINE>InternalMultiBucketAggregation<? extends InternalMultiBucketAggregation, ? extends InternalMultiBucketAggregation.InternalBucket> histo = (InternalMultiBucketAggregation<? extends InternalMulti...
putAll(script.getParams());
945,618
public final void start() {<NEW_LINE>initMBeans();<NEW_LINE>if (timerHandlers != null) {<NEW_LINE>timer = new Timer(true);<NEW_LINE>TimerTask[] timerTasks = new TimerTask[timerHandlers.length];<NEW_LINE>wrapToTimerTasks(timerTasks);<NEW_LINE>for (int index = 0; index < timerHandlers.length; index++) {<NEW_LINE>TimerHan...
addNotificationListener(memoryListener, null, null);
1,300,789
public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>Bone bone = skeleton.bones.get(boneIndex);<NEW_LINE>if (!bone.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.frames;<NEW_LINE>if (time < frames[0]) {<NEW_L...
y - bone.shearY) * alpha;
83,912
public void process(T input) {<NEW_LINE>super.initialize(input.width, input.height);<NEW_LINE>lazyDeclareSigmas(this.sigma);<NEW_LINE>if (temp == null) {<NEW_LINE>// declare it to be the latest image that it might need to be, resize below<NEW_LINE>temp = (T) input.createNew(1, 1);<NEW_LINE>}<NEW_LINE>if (levelScales[0]...
(temp, getLayer(0));
1,816,962
public void executeWriteAction(final Editor editor, Caret caret, DataContext dataContext) {<NEW_LINE>FeatureUsageTracker.getInstance().triggerFeatureUsed("editor.delete.line");<NEW_LINE>CommandProcessor.getInstance().setCurrentCommandGroupId(EditorActionUtil.DELETE_COMMAND_GROUP);<NEW_LINE>CopyPasteManager.getInstance(...
targetLine, caretColumns[i]));
1,386,307
public void marshall(CreateUpdatedImageRequest createUpdatedImageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createUpdatedImageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createUpd...
createUpdatedImageRequest.getNewImageName(), NEWIMAGENAME_BINDING);
915,992
public void encode(ChannelHandlerContext ctx, Frame frame, List<Object> results) throws IOException {<NEW_LINE>ByteBuf header = CBUtil.allocator.buffer(Header.LENGTH);<NEW_LINE>Message.Type type = frame.header.type;<NEW_LINE>header.writeByte(type.direction.addToVersion(frame.header.version.asInt()));<NEW_LINE>header.wr...
header.writeByte(type.opcode);
744,729
//<NEW_LINE>// admin index<NEW_LINE>@GetMapping("/admin")<NEW_LINE>public void adminHome(Model model, @Value("${alfio.version}") String version, HttpServletRequest request, HttpServletResponse response, Principal principal) throws IOException {<NEW_LINE>model.addAttribute("alfioVersion", version);<NEW_LINE>model.addAtt...
"basicConfigurationNeeded", configurationManager.isBasicConfigurationNeeded());
1,772,099
public static QueryFaceUserBatchResponse unmarshall(QueryFaceUserBatchResponse queryFaceUserBatchResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryFaceUserBatchResponse.setRequestId(_ctx.stringValue("QueryFaceUserBatchResponse.RequestId"));<NEW_LINE>queryFaceUserBatchResponse.setSuccess(_ctx.booleanValue("QueryFaceUs...
("QueryFaceUserBatchResponse.Data[" + i + "].Params"));
765,769
public void execute() {<NEW_LINE>final OrgChangeBPartnerComposite bpartnerAndSubscriptions = orgChangeRepo.getByIdAndOrgChangeDate(request.getBpartnerId(), request.getStartDate());<NEW_LINE>final OrgMappingId orgMappingId = bpartnerAndSubscriptions.getBPartnerOrgMappingId();<NEW_LINE>final BPartnerId newBPartnerId = ge...
destinationBPartnerComposite = bpCompositeRepo.getById(newBPartnerId);
952,654
private Mono<Response<Flux<ByteBuffer>>> migrateCassandraKeyspaceToManualThroughputWithResponseAsync(String resourceGroupName, String accountName, String keyspaceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getE...
error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
807,846
protected void doExecute(Configuration configuration) throws MojoExecutionException, MojoFailureException {<NEW_LINE>File packageDirectoryBase = configuration.getPackageDirectoryBase();<NEW_LINE>packageDirectoryBase.mkdirs();<NEW_LINE>ResourceGeneratorUsingModel gen = new ResourceGeneratorUsingModel(configuration.getVe...
("esc", new EscapeTool());
1,164,970
private void namesChanged(ProgramModule sourceRoot, ProgramModule destRoot, ProgramModule origRoot, int conflictIndex) throws CancelledException {<NEW_LINE><MASK><NEW_LINE>String destTreeName = destRoot.getTreeName();<NEW_LINE>String origTreeName = origRoot.getTreeName();<NEW_LINE>if (onlyNamesChangedChoice == ASK_USER...
String sourceTreeName = sourceRoot.getTreeName();
821,570
private void loadCacertsAndCustomCerts() {<NEW_LINE>try {<NEW_LINE>KeyStore keystore = KeyStore.<MASK><NEW_LINE>InputStream keystoreStream = NzbHydra.class.getResource("/cacerts").openStream();<NEW_LINE>keystore.load(keystoreStream, null);<NEW_LINE>final File certificatesFolder = new File(NzbHydra.getDataFolder(), "cer...
getInstance(KeyStore.getDefaultType());
1,589,564
final UpdateDetectorResult executeUpdateDetector(UpdateDetectorRequest updateDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDetector");
974,924
protected void onHandleIntent(Intent intent) {<NEW_LINE>// String className = intent.getStringExtra("backgroundClass");<NEW_LINE>final android.location.Location location = <MASK><NEW_LINE>if (AndroidLocationPlayServiceManager.inMemoryBackgroundLocationListener != null) {<NEW_LINE>// This is basically just a short-term ...
intent.getParcelableExtra(FusedLocationProviderApi.KEY_LOCATION_CHANGED);
675,252
private void printParameterDeclarations(JavaWriter out, List<ParameterDefinition> parameters, boolean parametersAsField, String separator) {<NEW_LINE>for (ParameterDefinition parameter : parameters) {<NEW_LINE>final String memberName = getStrategy().getJavaMemberName(parameter);<NEW_LINE>if (scala) {<NEW_LINE>if (param...
)), kotlinNullability(parameter));
1,544,343
private static void findTwinMentionsRelaxed(Document doc) {<NEW_LINE>for (int sentNum = 0; sentNum < doc.goldMentions.size(); sentNum++) {<NEW_LINE>List<Mention> golds = <MASK><NEW_LINE>List<Mention> predicts = doc.predictedMentions.get(sentNum);<NEW_LINE>Map<IntPair, Mention> goldMentionPositions = Generics.newHashMap...
doc.goldMentions.get(sentNum);
1,392,000
public static String generateHash(String value, byte[] hmacKey) throws NoSuchAlgorithmException, InvalidKeyException {<NEW_LINE>// Time-stamp at Encryption time<NEW_LINE>long tStamp = System.currentTimeMillis();<NEW_LINE>String uTValue = new String();<NEW_LINE>String cValue;<NEW_LINE>String finalEncValue;<NEW_LINE>// C...
doFinal(uTValue.getBytes());
1,202,288
public ProcResult fetchResult() throws AnalysisException {<NEW_LINE>final BaseProcResult result = new BaseProcResult();<NEW_LINE>final Map<String, QueryStatisticsItem> statistic = QeProcessorImpl.INSTANCE.getQueryStatistics();<NEW_LINE>result.setNames(TITLE_NAMES.asList());<NEW_LINE>final List<List<String>> sortedRowDa...
get(item.getQueryId());
210,478
protected void paintIcon(Graphics2D g2) {<NEW_LINE>final var s = new StringBuilder();<NEW_LINE>if (state < 0) {<NEW_LINE>s.append("\u25b6".repeat(3));<NEW_LINE>} else {<NEW_LINE>var mask = 4;<NEW_LINE>while (mask > 0) {<NEW_LINE>s.append((state & mask) == 0 ? "0" : "1");<NEW_LINE>mask >>= 1;<NEW_LINE>}<NEW_LINE>}<NEW_L...
.getBounds().getCenterY();
1,364,823
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
1,839,767
private List<Result> partitionHits(Result result, String summaryClass) {<NEW_LINE>List<Result> parts = new ArrayList<>();<NEW_LINE>TinyIdentitySet<Query> queryMap = new TinyIdentitySet<>(4);<NEW_LINE>for (Iterator<Hit> i = hitIterator(result); i.hasNext(); ) {<NEW_LINE><MASK><NEW_LINE>if (hit instanceof FastHit) {<NEW_...
Hit hit = i.next();
783,502
private static <Value, Context> UnknownFieldParser<Value, Context> consumeUnknownField(UnknownFieldConsumer<Value> consumer) {<NEW_LINE>return (objectParser, field, location, parser, value, context) -> {<NEW_LINE>XContentParser.Token t = parser.currentToken();<NEW_LINE>switch(t) {<NEW_LINE>case VALUE_STRING:<NEW_LINE>c...
field, parser.booleanValue());
1,139,273
private void createControls() {<NEW_LINE>int shellStyle = SWT.DIALOG_TRIM | SWT.RESIZE;<NEW_LINE>if ((style & MODAL) != 0) {<NEW_LINE>shellStyle |= SWT.APPLICATION_MODAL;<NEW_LINE>}<NEW_LINE>shell = ShellFactory.createMainShell(shellStyle);<NEW_LINE>shell.setText(MessageText.getString("progress.window.title"));<NEW_LIN...
.width, SWT.DEFAULT));
1,141,495
public void render(@Nonnull TileIncensePlate plate, float ticks, PoseStack ms, MultiBufferSource buffers, int light, int overlay) {<NEW_LINE>ItemStack stack = plate.getItemHandler().getItem(0);<NEW_LINE>if (stack.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Direction facing = plate.getBlockState().getValue(BlockSt...
ROTATIONS.get(facing)));
1,025,752
public void generate(@NotNull Project project) {<NEW_LINE>if (ANALYZED_PROJECT_FILES.containsKey(project.getBasePath())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG = FlutterSettings.getInstance().isVerboseLogging() ? Logger.getInstance(FontPreviewProcessor.class) : null;<NEW_LINE>log("Analyzing project ", project.getNa...
String projectPath = project.getBasePath();
627,290
public static float[] XYZtoLAB(float x, float y, float z, float[] tristimulus) {<NEW_LINE>float[] lab = new float[3];<NEW_LINE>x /= tristimulus[0];<NEW_LINE>y /= tristimulus[1];<NEW_LINE>z /= tristimulus[2];<NEW_LINE>if (x > 0.008856)<NEW_LINE>x = (float) Math.pow(x, 0.33f);<NEW_LINE>else<NEW_LINE>x = (7.787f * x) + (0...
= 500 * (x - y);
413,304
public static ListExpressCompanyResponse unmarshall(ListExpressCompanyResponse listExpressCompanyResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExpressCompanyResponse.setRequestId(_ctx.stringValue("ListExpressCompanyResponse.RequestId"));<NEW_LINE>listExpressCompanyResponse.setPageSize(_ctx.integerValue("ListExpres...
("ListExpressCompanyResponse.ExpressCompanies[" + i + "].ExpressCompanyCode"));
670,297
private void analyzeSimple(Locals locals) {<NEW_LINE>AStoreable lhs = (AStoreable) this.lhs;<NEW_LINE>// If the lhs node is a def optimized node we update the actual type to remove the need for a cast.<NEW_LINE>if (lhs.isDefOptimized()) {<NEW_LINE>rhs.analyze(locals);<NEW_LINE>if (rhs.actual == void.class) {<NEW_LINE>t...
rhs = rhs.cast(locals);
1,548,410
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String replicationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
41,979
private Position decodeAlternative(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser <MASK><NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());<NEW_LINE>if (deviceSession ...
= new Parser(PATTERN_ALT, sentence);
1,478,845
private CompletableFuture<TableWriterFlushResult> flushOnce(DirectSegmentAccess segment, TimeoutTimer timer) {<NEW_LINE>// Index all the keys in the segment range pointed to by the aggregator.<NEW_LINE>long lastOffset = this.aggregator.getLastIndexToProcessAtOnce(this.connector.getMaxFlushSize());<NEW_LINE>assert lastO...
new TableWriterFlushResult(keyUpdates, updateCount));
947,962
public void buildEndStopRow(@NonNull View view, Drawable icon, String timeText, final Spannable title, Spannable secondaryText, OnClickListener onClickListener) {<NEW_LINE>OsmandApplication app = requireMyApplication();<NEW_LINE>FrameLayout baseItemView = new <MASK><NEW_LINE>FrameLayout.LayoutParams baseViewLayoutParam...
FrameLayout(view.getContext());
37,883
private Map<String, Object> doCheck() {<NEW_LINE>String domainString;<NEW_LINE>InternetDomainName domainName;<NEW_LINE>try {<NEW_LINE>domainString <MASK><NEW_LINE>domainName = validateDomainName(domainString);<NEW_LINE>} catch (IllegalArgumentException | EppException e) {<NEW_LINE>metricBuilder.status(INVALID_NAME);<NE...
= canonicalizeDomainName(nullToEmpty(domain));
69,330
private final void loadQtysIfNeeded() {<NEW_LINE>final IUOMDAO uomDAO = Services.get(IUOMDAO.class);<NEW_LINE>if (_loaded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_M_InOutLine firstInOutLine = inOutLines.get(0);<NEW_LINE>//<NEW_LINE>// Vendor Product<NEW_LINE>final <MASK><NEW_LINE>final UomId productUomId = UomId...
int productId = _product.getM_Product_ID();
965,881
public JavaScriptNode enterCallNode(CallNode callNode) {<NEW_LINE>JavaScriptNode function = transform(callNode.getFunction());<NEW_LINE>JavaScriptNode[] args = transformArgs(callNode.getArgs());<NEW_LINE>if (callNode.isOptionalChain()) {<NEW_LINE>function = filterOptionalChainTarget(function, callNode.isOptional());<NE...
args, callNode.isDefaultDerivedConstructorSuperCall());
295,434
protected void bindTyped() {<NEW_LINE>if (currentPG == null) {<NEW_LINE>setRenderer(primaryPG.getCurrentPG());<NEW_LINE>loadAttributes();<NEW_LINE>loadUniforms();<NEW_LINE>}<NEW_LINE>setCommonUniforms();<NEW_LINE>if (-1 < vertexLoc)<NEW_LINE>pgl.enableVertexAttribArray(vertexLoc);<NEW_LINE>if (-1 < colorLoc)<NEW_LINE>p...
scaleLoc, 1, 1, f);
55,798
Collection<InferenceVariable> inputVariables(final InferenceContext18 context) {<NEW_LINE>// from 18.5.2.<NEW_LINE>if (this.left instanceof LambdaExpression) {<NEW_LINE>if (this.right instanceof InferenceVariable) {<NEW_LINE>return Collections.singletonList((InferenceVariable) this.right);<NEW_LINE>}<NEW_LINE>if (this....
[i].collectInferenceVariables(variables);
324,863
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);<NEW_LINE>if (permanent != null) {<NEW_LINE>Player player = game.<MASK><NEW_LINE>if (player != null) {<NEW_LINE>Library library = player.getLibrary();<NEW_LINE>if (library.hasCa...
getPlayer(permanent.getControllerId());
269,006
private void writeGroup(JRGroup group) {<NEW_LINE>String groupName = group.getName();<NEW_LINE>groupsMap.put(groupName, groupName);<NEW_LINE>write("JRDesignGroup " + groupName + " = new JRDesignGroup();\n");<NEW_LINE>write(groupName + ".setName(\"" + JRStringUtil.escapeJavaStringLiteral(groupName) + "\");\n");<NEW_LINE...
group.isStartNewPage(), false);
321,097
final ListRealtimeLogConfigsResult executeListRealtimeLogConfigs(ListRealtimeLogConfigsRequest listRealtimeLogConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRealtimeLogConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
475,674
private static Map<String, Object> buildContextPropertiesMap(int agentInstanceId, Object[] allPartitionKeys, ContextDefinition contextDefinition) {<NEW_LINE>Map<String, Object> props = new HashMap<>();<NEW_LINE>props.put(ContextPropertyEventType.PROP_CTX_NAME, contextDefinition.getContextName());<NEW_LINE>props.<MASK><...
put(ContextPropertyEventType.PROP_CTX_ID, agentInstanceId);
431,732
final public String String() throws ParseException {<NEW_LINE>Token t;<NEW_LINE>String lex;<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {<NEW_LINE>case STRING_LITERAL1:<NEW_LINE>{<NEW_LINE>t = jj_consume_token(STRING_LITERAL1);<NEW_LINE>lex = stripQuotes(t.image);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case STRI...
lex = stripQuotes3(t.image);
1,758,761
public void downloadToFile() {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobClient.downloadToFile#String<NEW_LINE>client.downloadToFile(file);<NEW_LINE>System.out.println("Completed download to file");<NEW_LINE>// END: com.azure.storage.blob.BlobClient.downloadToFile#String<NEW_LINE>// BEGIN: com.azure.storage.blob.Bl...
= new BlobRange(1024, 2048L);
742,727
// TODO: replace with MethodLevelExceptionMappingFeature<NEW_LINE>@BuildStep<NEW_LINE>void handleClassLevelExceptionMappers(Optional<ResourceScanningResultBuildItem> resourceScanningResultBuildItem, BuildProducer<GeneratedClassBuildItem> generatedClass, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProd...
>(methodExceptionMapper.size());
1,047,900
protected List<Contentlet> findContentletsByIdentifier(String identifier, Boolean live, Long languageId) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>final List<Contentlet> contentlets = new ArrayList<>();<NEW_LINE>final StringBuilder queryBuffer = new StringBuilder();<NEW_LINE><MASK><NEW...
final DotConnect dotConnect = new DotConnect();
823,939
public static ListCabInstancesResponse unmarshall(ListCabInstancesResponse listCabInstancesResponse, UnmarshallerContext context) {<NEW_LINE>listCabInstancesResponse.setRequestId(context.stringValue("ListCabInstancesResponse.RequestId"));<NEW_LINE>listCabInstancesResponse.setSuccess(context.booleanValue("ListCabInstanc...
("ListCabInstancesResponse.Instances[" + i + "].InstanceId"));
1,511,274
public static GasInventorySlot fillOrConvert(IGasTank gasTank, Supplier<Level> worldSupplier, @Nullable IContentsListener listener, int x, int y) {<NEW_LINE>Objects.requireNonNull(gasTank, "Gas tank cannot be null");<NEW_LINE><MASK><NEW_LINE>Function<ItemStack, GasStack> potentialConversionSupplier = stack -> getPotent...
Objects.requireNonNull(worldSupplier, "World supplier cannot be null");
1,692,833
public static ListApplicantsResponse unmarshall(ListApplicantsResponse listApplicantsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApplicantsResponse.setRequestId(_ctx.stringValue("ListApplicantsResponse.RequestId"));<NEW_LINE>listApplicantsResponse.setTotalCount(_ctx.integerValue("ListApplicantsResponse.TotalCoun...
(_ctx.integerValue("ListApplicantsResponse.PageSize"));
81,498
private static List<Rule> createRules(AndroidAppTarget target, List<String> additionalDeps, List<String> additionalResDeps) {<NEW_LINE>List<String> deps = new ArrayList<>();<NEW_LINE>deps.add(":" + AndroidBuckRuleComposer.src(target));<NEW_LINE>deps.addAll(additionalDeps);<NEW_LINE>List<Rule> libRules = createRules(tar...
keystoreRule = KeystoreRuleComposer.compose(target);
987,931
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,672,960
public void preferenceChange(PreferenceChangeEvent evt) {<NEW_LINE>if (suppressPrefChanges == Boolean.TRUE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean ch = detectIsChanged();<NEW_LINE>MemoryPreferences defMime;<NEW_LINE>synchronized (preferences) {<NEW_LINE>// NOI18N<NEW_LINE>defMime = preferences.get("");<NEW_LINE...
(PROP_CHANGED, !ch, ch);
883,705
public void start() throws Exception {<NEW_LINE>// To simplify the development of the web components we use a Router to route all HTTP requests<NEW_LINE>// to organize our code in a reusable way.<NEW_LINE>final Router <MASK><NEW_LINE>// In order to use a Thymeleaf template we first need to create an engine<NEW_LINE>fin...
router = Router.router(vertx);
887,106
public MutablePair<CoreV1Event, V1Patch> observe(CoreV1Event event, String key) {<NEW_LINE>OffsetDateTime now = OffsetDateTime.now();<NEW_LINE>EventLog lastObserved = this.eventCache.getIfPresent(key);<NEW_LINE>V1Patch patch = null;<NEW_LINE>if (lastObserved != null && lastObserved.count != null && lastObserved.count >...
.firstTimestamp = event.getFirstTimestamp();
1,328,700
public static Map marshalMap(List<Class<?>> mapGenericClasses, Class keyClass, Class valueClass, Map rawMap) {<NEW_LINE>Map dataCollection = new HashMap();<NEW_LINE>if (keyClass.isAssignableFrom(BytesType.class) || valueClass.isAssignableFrom(BytesType.class)) {<NEW_LINE>Iterator iter = rawMap.keySet().iterator();<NEW_...
.get(0), keyAsBytes);
1,500,831
public static DescribeSmartAccessGatewayHaResponse unmarshall(DescribeSmartAccessGatewayHaResponse describeSmartAccessGatewayHaResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSmartAccessGatewayHaResponse.setRequestId(_ctx.stringValue("DescribeSmartAccessGatewayHaResponse.RequestId"));<NEW_LINE>describeSmartAcces...
(_ctx.stringValue("DescribeSmartAccessGatewayHaResponse.DeviceLevelBackupType"));
1,256,573
public void logMetric(LogMetric request, StreamObserver<LogMetric.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>final var response = futureExperimentRunDAO.logMetrics(LogMetrics.newBuilder().setId(request.getId()).addMetrics(request.getMetric()).build()).thenCompose(experimentRun -> addEvent(experimentRun.getId...
ServerResponse(responseObserver, response, executor);
79,149
public void makeBlock(long blockOffset, long blockSize, byte[] firstChunkData, boolean isAsync, final RequestProgressHandler progressHandler, final RequestCompleteHandler completeHandler) {<NEW_LINE>requestInfo.requestType = UploadRequestInfo.RequestTypeMkblk;<NEW_LINE>requestInfo.fileOffset = blockOffset;<NEW_LINE>Str...
.token.token : ""));
1,485,796
public CanaryRunStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CanaryRunStatus canaryRunStatus = new CanaryRunStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
618,641
private static boolean hasCirvAnnotation(ExpressionTree tree, VisitorState state) {<NEW_LINE>Symbol untypedSymbol = getSymbol(tree);<NEW_LINE>if (!(untypedSymbol instanceof MethodSymbol)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MethodSymbol sym = (MethodSymbol) untypedSymbol;<NEW_LINE>// Directly has @CanIgnoreRet...
.getReturnType().tsym));
642,725
public void initDefaultHandlers() {<NEW_LINE>if (stateHandlers.isEmpty()) {<NEW_LINE>stateHandlers.put(DomainConstants.STATE_TYPE_SERVICE_TASK, new ServiceTaskStateHandler());<NEW_LINE>stateHandlers.put(DomainConstants.STATE_TYPE_SCRIPT_TASK, new ScriptTaskStateHandler());<NEW_LINE>stateHandlers.put(DomainConstants<MAS...
.STATE_TYPE_SUB_MACHINE_COMPENSATION, new ServiceTaskStateHandler());
335,118
protected void initChannel(SocketChannel ch) throws Exception {<NEW_LINE>int heartbeatInterval = UrlUtils.getHeartbeat(getUrl());<NEW_LINE>if (getUrl().getParameter(SSL_ENABLED_KEY, false)) {<NEW_LINE>ch.pipeline().addLast("negotiation", new SslClientTlsHandler(getUrl()));<NEW_LINE>}<NEW_LINE>NettyCodecAdapter adapter ...
).addLast("handler", nettyClientHandler);
879,249
public Pack read(DataInputX din) throws IOException {<NEW_LINE>this.gxid = din.readLong();<NEW_LINE>this.txid = din.readLong();<NEW_LINE>this.caller = din.readLong();<NEW_LINE>this.timestamp = din.readLong();<NEW_LINE>this.elapsed = (int) din.readDecimal();<NEW_LINE>this.spanType = din.readByte();<NEW_LINE>this.name = ...
(int) din.readDecimal();
1,694,729
protected void configureEditor() {<NEW_LINE>super.configureEditor();<NEW_LINE>if (editor instanceof JTextField) {<NEW_LINE>JTextField textField = (JTextField) editor;<NEW_LINE>textField.setColumns(editorColumns);<NEW_LINE>// remove default text field border from editor<NEW_LINE>Border border = textField.getBorder();<NE...
, KeyStroke.getKeyStroke("END"));
427,249
private void pasteFormat(final NodeModel node) {<NEW_LINE>final NodeModel pattern = CopyFormat.getPattern();<NEW_LINE>if (pattern == null) {<NEW_LINE>JOptionPane.showMessageDialog(Controller.getCurrentController().getViewController().getCurrentRootComponent(), TextUtils.getText("no_format_copy_before_format_paste"), ""...
Keys.ICONS, node, node);