idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,672,824
public static List<IRule> createRules(final boolean withColor) {<NEW_LINE>List<IRule> rules = new ArrayList<>(8);<NEW_LINE>IToken javadocComment = new Token(JAVA_DOC);<NEW_LINE>IToken multilnComment = new Token(JAVA_MULTI_LINE_COMMENT);<NEW_LINE>IToken endlineComment = new Token(JAVA_SINGLE_LINE_COMMENT);<NEW_LINE>// s...
textAttr != null ? textAttr : JAVA_STRING);
697,629
public static void main(String[] args) {<NEW_LINE>Regions clientRegion = Regions.DEFAULT_REGION;<NEW_LINE>String bucketName = "*** Bucket name ***";<NEW_LINE>try {<NEW_LINE>AmazonS3 s3Client = AmazonS3ClientBuilder.standard().withCredentials(new ProfileCredentialsProvider()).withRegion(clientRegion).build();<NEW_LINE>/...
uploads.size() + " multipart upload(s) in progress.");
370,624
private Menu createMenu(ToolItem toolItem) {<NEW_LINE>if (menu != null) {<NEW_LINE>menu.dispose();<NEW_LINE>}<NEW_LINE>{<NEW_LINE>MenuManager menuManager = new MenuManager();<NEW_LINE>ToolBar toolBar = toolItem.getParent();<NEW_LINE>menu = new Menu(toolBar);<NEW_LINE>List<StreamValueManagerDescriptor> managers = new Ar...
add(new CommandContributionItem(parameters));
1,767,355
public Stream<StockDataAggregateItem> streamStockDataAggregateItems(@NonNull final StockDataAggregateQuery query) {<NEW_LINE>final IQuery<I_MD_Stock_WarehouseAndProduct_v> stockDataAggregateItemViewQuery = createStockDataAggregateItemQuery(query);<NEW_LINE>if (stockDataAggregateItemViewQuery instanceof TypedSqlQuery) {...
toArray(), ITrx.TRXNAME_ThreadInherited);
591,925
public static void registerRecipeTypes(BiConsumer<RecipeSerializer<?>, ResourceLocation> r) {<NEW_LINE>ResourceLocation id = IElvenTradeRecipe.TYPE_ID;<NEW_LINE>Registry.register(Registry.RECIPE_TYPE, id, ELVEN_TRADE_TYPE);<NEW_LINE>r.accept(ELVEN_TRADE_SERIALIZER, id);<NEW_LINE>r.accept(LEXICON_ELVEN_TRADE_SERIALIZER,...
r.accept(ORECHID_IGNEM_SERIALIZER, id);
652,469
private IInvoiceCandAggregate createQualityDiscountInvoiceLine(@NonNull final I_C_Invoice_Candidate candidate, final BigDecimal qtyDiscount, final IInvoiceLineRW originalInvoiceLineRW) {<NEW_LINE>final BigDecimal qtyToInvoice = qtyDiscount.negate();<NEW_LINE>final StockQtyAndUOMQty stockQtyAndUOMQtyToInvoice = StockQty...
.getUOMQtyOpt().get();
1,390,876
public void traceExecution(final MessageFrame messageFrame, final ExecuteOperation executeOperation) {<NEW_LINE>final Operation currentOp = messageFrame.getCurrentOperation();<NEW_LINE>int pc = messageFrame.getPC();<NEW_LINE>int opcode = currentOp.getOpcode();<NEW_LINE>String remainingGas = shortNumber(messageFrame.get...
Bytes returnData = messageFrame.getReturnData();
1,454,585
private static ConstantPoolInfo loadConstantPoolInfo(DataInputStream dis) throws IOException {<NEW_LINE>byte tag = dis.readByte();<NEW_LINE>// System.out.println("tag=" + tag);<NEW_LINE>switch(tag) {<NEW_LINE>case 7:<NEW_LINE>return new ConstantClassInfo(dis.readShort());<NEW_LINE>case 9:<NEW_LINE>return new ConstantFi...
ConstantLongInfo(dis.readLong());
1,379,378
public // * scale(i) * (i+1)! (M+1-(i+1)-1)!/(M+1)! / (i! (M-i-1)!/ M!), whence += scale(i) * (i+1) / (M+1).<NEW_LINE>int extend(double fractionZero, double fractionOne, int featureIndex, int nextIndex) {<NEW_LINE>setValues(<MASK><NEW_LINE>setScale(nextIndex, nextIndex == 0 ? 1.0 : 0.0);<NEW_LINE>double stepDown = frac...
nextIndex, fractionOne, fractionZero, featureIndex);
283,359
public OutputStream encryptStream(OutputStream outputStream) throws CryptoException {<NEW_LINE>if (ivReused) {<NEW_LINE>throw new CryptoException("Key/IV reuse is forbidden in AESGCMCryptoModule. Too many RBlocks.");<NEW_LINE>}<NEW_LINE>incrementIV(initVector, initVector.length - 1);<NEW_LINE>if (Arrays.equals(initVect...
cipher = Cipher.getInstance(transformation);
1,034,732
private static NotificationCompat.Builder newNotification(Context context, Notification body, AccountEntity account, boolean summary) {<NEW_LINE>Intent summaryResultIntent = new Intent(context, MainActivity.class);<NEW_LINE>summaryResultIntent.putExtra(ACCOUNT_ID, account.getId());<NEW_LINE>TaskStackBuilder summaryStac...
10000), pendingIntentFlags(false));
1,764,167
private void loadLogAlertTemplate() {<NEW_LINE>final long now = clock.getTicks();<NEW_LINE>if (location == null || location.isEmpty()) {<NEW_LINE>location = DEFAULT_ALERT_TPT_FILE;<NEW_LINE>}<NEW_LINE>// location may contain dollar expressions<NEW_LINE>location = alertTemplate.parseEnv(location, now).toString();<NEW_LI...
getInBufferSize(), ff, sink);
773,769
final DeleteMediaCapturePipelineResult executeDeleteMediaCapturePipeline(DeleteMediaCapturePipelineRequest deleteMediaCapturePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMediaCapturePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
endClientExecution(awsRequestMetrics, request, response);
1,516,872
public ArchiveOutputSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ArchiveOutputSettings archiveOutputSettings = new ArchiveOutputSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
().unmarshall(context));
1,591,093
public static void main(String[] args) {<NEW_LINE>LOG.trace("Drill Application Master starting.");<NEW_LINE>// Load the configuration. Assumes that the user's Drill-on-YARN<NEW_LINE>// configuration was archived along with the Drill software in<NEW_LINE>// the $DRILL_HOME/conf directory, and that $DRILL_HOME/conf is<NE...
e.getMessage(), e);
169,581
public ListDatastoresResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDatastoresResult listDatastoresResult = new ListDatastoresResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
1,149,152
boolean catches(Object[] arguments, @Exclusive @Cached GilNode gil) throws ArityException {<NEW_LINE>boolean mustRelease = gil.acquire();<NEW_LINE>try {<NEW_LINE>if (arguments.length != 1) {<NEW_LINE>throw ArityException.create(1, 1, arguments.length);<NEW_LINE>}<NEW_LINE>Object exception = arguments[0];<NEW_LINE>if (e...
IsSubtypeNode isSubtype = IsSubtypeNode.getUncached();
1,143,190
public static RemovePrivilegesFromRoleResponse unmarshall(RemovePrivilegesFromRoleResponse removePrivilegesFromRoleResponse, UnmarshallerContext context) {<NEW_LINE>removePrivilegesFromRoleResponse.setRequestId(context.stringValue("RemovePrivilegesFromRoleResponse.RequestId"));<NEW_LINE>removePrivilegesFromRoleResponse...
(context.booleanValue("RemovePrivilegesFromRoleResponse.Success"));
1,281,886
public void showAtNotifications(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRenderer re...
pageNum = Paginator.getPage(request);
965,181
public List<HoodieFileGroup> addFilesToView(FileStatus[] statuses) {<NEW_LINE>HoodieTimer timer = new HoodieTimer().startTimer();<NEW_LINE>List<HoodieFileGroup> fileGroups = buildFileGroups(statuses, visibleCommitsAndCompactionTimeline, true);<NEW_LINE>long fgBuildTimeTakenMs = timer.endTimer();<NEW_LINE>timer.startTim...
s.getBootstrapFileStatus())));
55,430
private Mono<Response<Flux<ByteBuffer>>> executeWithResponseAsync(String resourceGroupName, String name, 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_LI...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
1,556,277
public DeleteAddressResponse deleteAddress(DeleteAddressRequest request) {<NEW_LINE>log.error("begin - AddressServiceImpl.deleteAddress request :" + request);<NEW_LINE>DeleteAddressResponse response = new DeleteAddressResponse();<NEW_LINE>try {<NEW_LINE>request.requestCheck();<NEW_LINE>int row = addressMapper.deleteByP...
log.error("AddressServiceImpl.deleteAddress occur Exception :" + e);
1,102,440
// End implementation of IdentifiedDataSerializable<NEW_LINE>private void initProcSuppliers(long jobId, ConcurrentHashMap<String, File> tempDirectories, InternalSerializationService jobSerializationService) {<NEW_LINE>for (VertexDef vertex : vertices) {<NEW_LINE>ClassLoader processorClassLoader = isLightJob ? null : jo...
jobSerializationService, subject, processorClassLoader)));
1,392,199
public ImageScanFindingsSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImageScanFindingsSummary imageScanFindingsSummary = new ImageScanFindingsSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
"unixTimestamp").unmarshall(context));
1,796,986
public static DistinctTable fromByteBuffer(ByteBuffer byteBuffer) throws IOException {<NEW_LINE>DataTable dataTable = DataTableFactory.getDataTable(byteBuffer);<NEW_LINE>DataSchema dataSchema = dataTable.getDataSchema();<NEW_LINE>int numRecords = dataTable.getNumberOfRows();<NEW_LINE>ColumnDataType[] storedColumnDataTy...
return new DistinctTable(dataSchema, records);
1,044,466
public long[] queryCurrentFreq() {<NEW_LINE>if (VersionHelpers.IsWindows7OrGreater()) {<NEW_LINE>Pair<List<String>, Map<ProcessorFrequencyProperty, List<Long>>> instanceValuePair = ProcessorInformation.queryFrequencyCounters();<NEW_LINE>List<String> instances = instanceValuePair.getA();<NEW_LINE>Map<ProcessorFrequencyP...
valueMap.get(ProcessorFrequencyProperty.PERCENTOFMAXIMUMFREQUENCY);
433,970
public static LayerRule read_layer_rule_scope(Scanner p_scanner) {<NEW_LINE>try {<NEW_LINE>Collection<String> layer_names = new LinkedList<String>();<NEW_LINE>Collection<Rule> rule_list <MASK><NEW_LINE>for (; ; ) {<NEW_LINE>p_scanner.yybegin(SpecctraFileScanner.LAYER_NAME);<NEW_LINE>Object next_token = p_scanner.next_t...
= new LinkedList<Rule>();
1,526,993
byte[] nextReceive(ByteBuf packet) {<NEW_LINE>byte[] header = new byte[RTP_HEADER_LENGTH];<NEW_LINE>packet.getBytes(0, header);<NEW_LINE>int audioOffset = RTP_HEADER_LENGTH + (4 * (byte) (header[0] & 0x0F));<NEW_LINE>byte[] encrypted = new byte[packet.readableBytes() - audioOffset];<NEW_LINE>packet.getBytes(audioOffset...
(encrypted, getNonce(header));
1,317,930
public ListRulesOutput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRulesOutput listRulesOutput = new ListRulesOutput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
1,653,010
private void processCurrentRequest() {<NEW_LINE>Check.assumeNotNull(currentPPOrderRequest, "currentPPOrderRequest cannot be null");<NEW_LINE>Check.assumeNotNull(currentCandidates, "currentCandidates cannot be null");<NEW_LINE>final I_C_UOM currentUOM = currentPPOrderRequest.getQtyRequired().getUOM();<NEW_LINE>final Big...
ppOrderCandidatesDAO.createProductionOrderAllocation(ppOrderCandidateRecord, ppOrder);
841,862
public S3Object unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Object s3Object = new S3Object();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
class).unmarshall(context));
1,558,312
public Item fixFields(NameResolutionContext context) {<NEW_LINE>if (this.isWild())<NEW_LINE>return this;<NEW_LINE>String tmpFieldName = getItemName();<NEW_LINE>PlanNode planNode = context.getPlanNode();<NEW_LINE>if (context.getPlanNode().type() == PlanNodeType.MERGE) {<NEW_LINE>return getMergeNodeColumn(tmpFieldName, p...
ER_OPTIMIZER, "42S22", "duplicate column:" + this);
1,216,249
public void addResourceHandlers(ResourceHandlerRegistry registry) {<NEW_LINE>String[] locations = new String[] { "classpath:/static/" };<NEW_LINE>if (NzbHydra.getDataFolder() != null) {<NEW_LINE>File staticFolderFile = new File(new File(NzbHydra.getDataFolder()).getParentFile(), "static");<NEW_LINE>try {<NEW_LINE>Strin...
"Found folder {}. Will load UI resources from there", staticFolderFile.getAbsolutePath());
1,223,856
public static BytesRange valueOf(String s, String rangePrefix) throws InvalidValueException {<NEW_LINE>if (s.startsWith((rangePrefix != null) ? rangePrefix : PREFIX)) {<NEW_LINE>Long firstByte = null, lastByte = null, byteLength = null;<NEW_LINE>String[] params = s.substring(((rangePrefix != null) ? rangePrefix : PREFI...
()).split("[-/]");
1,642,075
public void run(int size) {<NEW_LINE>float[<MASK><NEW_LINE>float[] result = new float[1];<NEW_LINE>Random r = new Random();<NEW_LINE>IntStream.range(0, size).sequential().forEach(i -> {<NEW_LINE>input[i] = r.nextFloat();<NEW_LINE>});<NEW_LINE>// @formatter:off<NEW_LINE>TaskSchedule task = new TaskSchedule("s0").streamI...
] input = new float[size];
1,303,614
public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>SysSite site = getSite(handler);<NEW_LINE>Date endPublishDate = handler.getDate("endPublishDate");<NEW_LINE>Date expiryDate = null;<NEW_LINE>String path = handler.getString("path");<NEW_LINE>Boolean disabled = false;<NEW_LINE>Integer[] ...
e.getClicks() + clicks);
1,684,975
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>if (compat) {<NEW_LINE>// Read an object serialized in the old serial form<NEW_LINE>//<NEW_LINE>ObjectInputStream.GetField fields = in.readFields();<NEW_LINE>typeName = (String) <MASK><NEW_LINE>if (fields.defaulted("myTy...
fields.get("myTypeName", null);
1,149,942
public ListUsersResult listUsers(ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUsersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,219,846
public ASN1Primitive toASN1Primitive() {<NEW_LINE>ASN1EncodableVector v = new ASN1EncodableVector(7);<NEW_LINE>v.add(version);<NEW_LINE>if (originatorInfo != null) {<NEW_LINE>v.add(new DERTaggedObject(false, 0, originatorInfo));<NEW_LINE>}<NEW_LINE>v.add(recipientInfos);<NEW_LINE>v.add(authEncryptedContentInfo);<NEW_LI...
(false, 2, unauthAttrs));
1,516,496
public Key[] selectVolatileJobs(Connection conn) throws SQLException {<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>ps = conn.prepareStatement(rtp(SELECT_VOLATILE_JOBS.toLowerCase()));<NEW_LINE>setBoolean(ps, 1, true);<NEW_LINE>rs = ps.executeQuery();<NEW_LINE>ArrayList li...
getString(COL_JOB_GROUP.toLowerCase());
539,183
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final SecurityContext securityContext = getWebSocket().getSecurityContext();<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>int sequenceNumber = webSocketData.getNodeDataIntegerValue("chunkId");<NEW_...
String uuid = webSocketData.getId();
1,473,825
private void rangeUpdate1(int i, int tl, int tr, int l, int r, long x) {<NEW_LINE><MASK><NEW_LINE>if (l > r) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (tl == l && tr == r) {<NEW_LINE>t[i] = x;<NEW_LINE>propagateLazy(i, tl, tr, x);<NEW_LINE>// TODO(william): confirm if this is needed if we already propagated?<NEW_LINE>l...
propagate1(i, tl, tr);
1,579,065
public void write(OBODoc doc, Writer writer, NameProvider nameProvider) throws IOException {<NEW_LINE>if (isCheckStructure) {<NEW_LINE>doc.check();<NEW_LINE>}<NEW_LINE>Frame headerFrame = doc.getHeaderFrame();<NEW_LINE>writeHeader(checkNotNull(headerFrame), writer, nameProvider);<NEW_LINE>List<Frame> termFrames = new A...
Collections.sort(typeDefFrames, framesComparator);
757,254
private static float reactPuddle(Liquid dest, Liquid liquid, float amount, Tile tile, float x, float y) {<NEW_LINE>if ((dest.flammability > 0.3f && liquid.temperature > 0.7f) || (liquid.flammability > 0.3f && dest.temperature > 0.7f)) {<NEW_LINE>// flammable liquid + hot liquid<NEW_LINE>Fires.create(tile);<NEW_LINE>if ...
steam.at(x, y);
525,624
public void saveCustomFilter() {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>final PoiUIFilter filter = app.getPoiFilters().getCustomPOIFilter();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getContext());<NEW_LINE>builder.setTitle(R.string.access_hint_enter_name);<NEW_LINE>fin...
setHint(R.string.new_filter);
363,473
public SwitchCase convert(org.eclipse.jdt.internal.compiler.ast.CaseStatement statement) {<NEW_LINE>SwitchCase switchCase = new SwitchCase(this.ast);<NEW_LINE>if (this.ast.apiLevel >= AST.JLS12_INTERNAL) {<NEW_LINE>org.eclipse.jdt.internal.compiler.ast.Expression[] expressions = statement.constantExpressions;<NEW_LINE>...
.add(convert(expression));
1,421,570
private TsFileResource endFileAndGenerateResource(TsFileIOWriter writer) throws IOException {<NEW_LINE>writer.endChunkGroup();<NEW_LINE>writer.endFile();<NEW_LINE>TsFileResource tsFileResource = new TsFileResource(writer.getFile());<NEW_LINE>Map<String, List<TimeseriesMetadata>> deviceTimeseriesMetadataMap = writer.get...
getStatistics().getEndTime());
405,471
final DescribePortfolioResult executeDescribePortfolio(DescribePortfolioRequest describePortfolioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePortfolioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
568,856
public final RolloutMigrationConfig init(final String[] args) {<NEW_LINE>final CommandLineParser parser = new DefaultParser();<NEW_LINE>final CommandLine cmd;<NEW_LINE>try {<NEW_LINE>cmd = parser.parse(options, args);<NEW_LINE>} catch (final Exception e) {<NEW_LINE>logger.error(e.getLocalizedMessage() + "\n\n" + printH...
.additionalSqlDirs(extractAdditionalSqlDirs(cmd));
1,734,628
protected void paintContentBorder(final Graphics g, final int tabPlacement, final int selectedIndex) {<NEW_LINE>int width = tabPane.getWidth();<NEW_LINE>int height = tabPane.getHeight();<NEW_LINE>Insets insets = tabPane.getInsets();<NEW_LINE>int x = insets.left;<NEW_LINE>int y = insets.top;<NEW_LINE>int w = width - ins...
, selRect, isDrawContentBorder(RIGHT));
1,700,520
private static Pipeline coGroupBuild() {<NEW_LINE>Pipeline p = Pipeline.create();<NEW_LINE>// Create three source streams<NEW_LINE>BatchStageWithKey<PageVisit, Integer> pageVisits = p.readFrom(Sources.<PageVisit>list(PAGE_VISIT)).groupingKey(pageVisit -> pageVisit.userId());<NEW_LINE>BatchStageWithKey<AddToCart, Intege...
add(payments, toList());
1,454,553
private void configureSupportedApplicationTypes() {<NEW_LINE>Set<ApplicationType> supportedTypes = Sets.intersection(_typeToFetcher.keySet(), _typeToHeuristics.keySet());<NEW_LINE>supportedTypes = Sets.intersection(supportedTypes, _appTypeToJobTypes.keySet());<NEW_LINE>supportedTypes = Sets.intersection(supportedTypes,...
keySet().retainAll(supportedTypes);
602,195
private void validateInstallLocked() throws PackageManagerException {<NEW_LINE>mResolvedBaseFile = null;<NEW_LINE>mResolvedStagedFiles.clear();<NEW_LINE>File[] addedFiles <MASK><NEW_LINE>if (addedFiles == null || addedFiles.length == 0) {<NEW_LINE>throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, "No packag...
= this.mResolvedStageDir.listFiles();
494,171
final GetDeviceResult executeGetDevice(GetDeviceRequest getDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,820,958
public Type createType(FunctionAndTypeManager functionAndTypeManager, List<TypeParameter> parameters) {<NEW_LINE>checkArgument(parameters.size() == 2, "Expected two parameters, got %s", parameters);<NEW_LINE>TypeParameter firstParameter = parameters.get(0);<NEW_LINE>TypeParameter <MASK><NEW_LINE>checkArgument(firstPara...
secondParameter = parameters.get(1);
304,647
public DurationValue plus(long amount, TemporalUnit unit) {<NEW_LINE>if (unit instanceof ChronoUnit) {<NEW_LINE>switch((ChronoUnit) unit) {<NEW_LINE>case NANOS:<NEW_LINE>return duration(months, days, seconds, nanos + amount);<NEW_LINE>case MICROS:<NEW_LINE>return duration(months, days, seconds, nanos + amount * 1000);<...
days + amount, seconds, nanos);
1,314,669
public static FeatureReferenceV2 parseFeatureRef(String featureRefString) {<NEW_LINE>featureRefString = featureRefString.trim();<NEW_LINE>if (featureRefString.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("Cannot parse a empty feature reference");<NEW_LINE>}<NEW_LINE>if (featureRefString.contains("/")) {<NEW...
("Unsupported feature reference: Specifying project in string" + " Feature References is not longer supported: %s", featureRefString));
1,162,633
private int closestPairOfPoints(Point[] px, Point[] py, int start, int end) {<NEW_LINE>if (end - start < 3) {<NEW_LINE>return computeMinDistance(px, start, end);<NEW_LINE>}<NEW_LINE>int mid = (start + end) / 2;<NEW_LINE>Point[] pyLeft = new Point[mid - start + 1];<NEW_LINE>Point[] pyRight = new Point[end - mid];<NEW_LI...
px, pyLeft, start, mid);
323,264
public void marshall(User user, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (user == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(user.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marshall(user.get...
user.getType(), TYPE_BINDING);
1,113,510
public void actionPerformed(ActionEvent e) {<NEW_LINE>try {<NEW_LINE>if (saveUserButton.isEnabled()) {<NEW_LINE>// save changes<NEW_LINE>String username = ucm.user.username;<NEW_LINE>setEditable(false);<NEW_LINE>oidsPanel.updateUser(ucm);<NEW_LINE>saveUser(username, ucm);<NEW_LINE>}<NEW_LINE>NewClientCertificateDialog ...
.notAfter = dialog.getExpiration();
643,788
public String name(String name, Meter.Type type, @Nullable String baseUnit) {<NEW_LINE>String conventionName = NamingConvention.snakeCase.<MASK><NEW_LINE>switch(type) {<NEW_LINE>case COUNTER:<NEW_LINE>case DISTRIBUTION_SUMMARY:<NEW_LINE>case GAUGE:<NEW_LINE>if (baseUnit != null && !conventionName.endsWith("_" + baseUni...
name(name, type, baseUnit);
330,553
final DescribeLoadBalancersResult executeDescribeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBalancersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeLoadBalancers");
352,555
public void dispose() {<NEW_LINE>myDisposed = true;<NEW_LINE>Disposer.dispose(myBrowser);<NEW_LINE>Disposer.dispose(myCommitMessageArea);<NEW_LINE>Disposer.dispose(myOKButtonUpdateAlarm);<NEW_LINE>myUpdateButtonsRunnable.cancel();<NEW_LINE>super.dispose();<NEW_LINE>Disposer.dispose(myDiffDetails);<NEW_LINE>PropertiesCo...
float usedProportion = myDetailsSplitter.getUsedProportion();
557,162
public void start(Listener<RespT> responseListener, Metadata headers) {<NEW_LINE>// Get call options previously set by the client and attach that information to the RPC request.<NEW_LINE>final String requestDescriptor = callOptions.getOption(REQUEST_DESCRIPTOR_CALL_OPTION);<NEW_LINE>final String requestId = callOptions...
headers.put(DESCRIPTOR_HEADER, requestDescriptor);
13,962
public static void main(String[] args) {<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph = new EdgeWeightedDigraph(8);<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(4, 5, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(5, 4, 0.35));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(4, 7, 0.37...
(3, 6, 0.52));
1,566,524
public static ClientMessage encodeResponse(int inMemoryFormat, int backupCount, int asyncBackupCount, int timeToLiveSeconds, int maxIdleSeconds, int maxSize, int maxSizePolicy, boolean readBackupData, int evictionPolicy, java.lang.String mergePolicy, java.util.Collection<com.hazelcast.config.IndexConfig> globalIndexes)...
StringCodec.encode(clientMessage, mergePolicy);
1,694,797
public okhttp3.Call addCommonOperationPolicyCall(File policySpecFile, File synapsePolicyDefinitionFile, File ccPolicyDefinitionFile, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/operation-policies";...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
69,619
public static void main(String[] args) {<NEW_LINE>int argLength = args.length;<NEW_LINE>if (argLength == 0) {<NEW_LINE>printIntro();<NEW_LINE>useHelp();<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>if (args[0].equals("--help")) {<NEW_LINE>printHelp();<NEW_LINE>System.exit(1);<NEW_LINE>} else if (args[0].equals("-metric...
out.println("A list of metrics will be stored in: " + metricListFileName);
234,169
public void reset() {<NEW_LINE>for (final PlantUniverseCell[] aGrid : grid) {<NEW_LINE>for (PlantUniverseCell cell : aGrid) {<NEW_LINE>cell.setLeafyness(0);<NEW_LINE>cell.setEnergy(0);<NEW_LINE>cell.setNourishment(0);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int center = PlantUniverse.UNIVERSE_WIDTH / 2;<NEW_LINE>int groundLevel...
[center].setLeafyness(0.5);
279,133
void constructResolvedTraits(final ResolvedTraitSetBuilder rtsb, final ResolveOptions resOpt) {<NEW_LINE>// base traits then add any elevated from attributes then add things exhibited by the att.<NEW_LINE>final CdmObjectReference baseClass = this.getExtendsEntity();<NEW_LINE>if (baseClass != null) {<NEW_LINE>// merge i...
(baseClass.fetchResolvedTraits(resOpt));
1,552,254
public Statement convert(org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall statement) {<NEW_LINE>Statement newStatement;<NEW_LINE>int sourceStart = statement.sourceStart;<NEW_LINE>if (statement.isSuperAccess() || statement.isSuper()) {<NEW_LINE>SuperConstructorInvocation superConstructorInvocation = new Sup...
statement.typeArguments[i]));
1,378,831
private static <K, V> CacheConfigurationBuilder<K, V> addDefaultCopiers(CacheConfigurationBuilder<K, V> builder, Class<K> keyType, Class<V> valueType) {<NEW_LINE>Set<Class<?>> immutableTypes = new HashSet<>();<NEW_LINE>immutableTypes.add(String.class);<NEW_LINE>immutableTypes.add(Long.class);<NEW_LINE>immutableTypes.ad...
, DefaultCopierConfiguration.Type.KEY));
722,910
private void initCards() {<NEW_LINE>// Init an array of Cards<NEW_LINE>ArrayList<Card> cards = new ArrayList<Card>();<NEW_LINE>for (int i = 0; i < 100; i++) {<NEW_LINE>GooglePlaySmallCard card = new GooglePlaySmallCard(this.getActivity());<NEW_LINE>card.setTitle("Application example " + i);<NEW_LINE>card.setSecondaryTi...
card.setId("" + i);
1,581,641
private boolean addTransition(ArrayList<Transition> transitions, Transition tr) {<NEW_LINE>int size = transitions.size();<NEW_LINE>if (size == 0) {<NEW_LINE>// System.out.println("Adding " + tr);<NEW_LINE>transitions.add(tr);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Transition last = transitions.get(size - 1);<NEW_L...
withMillis(previous.getMillis());
1,346,464
public Store.ValueHolder<V> putIfAbsent(final K key, final V value, Consumer<Boolean> put) throws NullPointerException, StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>checkValue(value);<NEW_LINE>putIfAbsentObserver.begin();<NEW_LINE>final AtomicReference<Store.ValueHolder<V>> returnValue = new AtomicReference<...
mappedKey, value, now, eventSink);
325,281
public Object userGetExecutionHistory(String symbol, Date timestamp) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'symbol' is set<NEW_LINE>if (symbol == null) {<NEW_LINE>VolleyError error = new VolleyError("M...
("", "timestamp", timestamp));
1,418,693
protected void animAlpha(View view) {<NEW_LINE>if (keyframes == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Keyframe[] frameArray = new Keyframe[keyframes.size()];<NEW_LINE>for (int i = 0; i < keyframes.size(); i++) {<NEW_LINE>KeyFrame kf = keyframes.get(i);<NEW_LINE>Keyframe frame = Keyframe.ofFloat(kf.percent, Humme...
(kf.value, false));
1,705,432
private static void copySourcesToSourceCache(OutputTargetBuildItem outputTargetBuildItem) {<NEW_LINE>Path targetDirectory = outputTargetBuildItem.getOutputDirectory().resolve(outputTargetBuildItem.getBaseName() + "-native-image-source-jar");<NEW_LINE>final Path targetSrc = targetDirectory.resolve(Paths.get(APP_SOURCES)...
path + " to " + targetPath, e);
1,498,384
public static ListRolesResponse unmarshall(ListRolesResponse listRolesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRolesResponse.setCode(_ctx.stringValue("ListRolesResponse.Code"));<NEW_LINE>listRolesResponse.setMessage(_ctx.stringValue("ListRolesResponse.Message"));<NEW_LINE>PageInfo pageInfo = new PageInfo();<N...
("ListRolesResponse.Data[" + i + "].OwnerName"));
1,025,681
public Concrete.Expression visitArgumentAppExpr(ArgumentAppExprContext ctx) {<NEW_LINE>Concrete.Expression expr = visitAtomFieldsAcc(ctx.atomFieldsAcc());<NEW_LINE>List<OnlyLevelAtomContext> onlyLevelAtoms = ctx.onlyLevelAtom();<NEW_LINE>if (!onlyLevelAtoms.isEmpty()) {<NEW_LINE>if (expr instanceof Concrete.ReferenceEx...
(onlyLevelAtoms.get(0));
378,115
void updateOwner(Permissionable asset, String ownerId) throws DotDataException {<NEW_LINE>String permissionId = asset.getPermissionId();<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>if (ownerId != null && ownerId.startsWith("user-")) {<NEW_LINE>ownerId = ownerId.substring(5, ownerId.length());<NEW_LINE>}<NEW_LIN...
String updateVersionsSql = "update inode set owner = ? where inode in ('" + inodeCondition + "')";
1,535,644
public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>String projectName = project.getProjectDirectory().getNameExt();<NEW_LINE>if (!preferences.isEnabled()) {<NEW_LINE>LOGGER.log(Level.FINE, "Property change event in package.json ignored, node.js not enabled in project {0}", projectName);<NEW_LINE>return;<NEW...
Level.FINE, "Property change event in package.json ignored, node.js sync not enabled in project {0}", projectName);
522,121
private CloseSessionResponse closeSession(ServiceRequest service) throws UaException {<NEW_LINE>CloseSessionRequest request = (CloseSessionRequest) service.getRequest();<NEW_LINE>long secureChannelId = service.getSecureChannelId();<NEW_LINE>NodeId authToken = service.getRequest()<MASK><NEW_LINE>Session session = active...
.getRequestHeader().getAuthenticationToken();
492,867
final ListApplicationInstanceDependenciesResult executeListApplicationInstanceDependencies(ListApplicationInstanceDependenciesRequest listApplicationInstanceDependenciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApplicationInstanceDependenciesRequest);<NEW_LINE>AWSRequestMetrics ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,837,413
static void createInitialState(ComponentContext c, StateValue<AtomicReference<Animator>> animatorRef, StateValue<DynamicValue<Float>> animatedValue, StateValue<AtomicReference<Boolean>> isCompleteRef, StateValue<DynamicValue<Integer>> bgColor) {<NEW_LINE>animatorRef.set(new AtomicReference<Animator>(null));<NEW_LINE>is...
.5 * 2 * Math.PI);
1,835,219
public List<SocketObjectData> retrieveSocket(int objHash, int serverId) {<NEW_LINE>List<SocketObjectData> list = new ArrayList<>();<NEW_LINE>Server server = ServerManager.getInstance().getServerIfNullDefault(serverId);<NEW_LINE>try (TcpProxy tcp = TcpProxy.getTcpProxy(server)) {<NEW_LINE>MapPack param = new MapPack();<...
port = portLv.getInt(i);
1,072,778
boolean checkIfRemote(SibRaMessagingEngineConnection conn) {<NEW_LINE>final String methodName = "checkIfRemote";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, new Object[] { conn });<NEW_LINE>}<NEW_LINE>String meName = conn.getConnection().g...
debug(TRACE, "Checking ME name " + localName);
712,091
// GEN-LAST:event_removeButtonActionPerformed<NEW_LINE>private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_addButtonActionPerformed<NEW_LINE>NotifyDescriptor.InputLine nd = new // NOI18N<NEW_LINE>NotifyDescriptor.InputLine(// NOI18N<NEW_LINE>FormUtils.getBundleString("CTL...
getAdded().add(newHandler);
1,429,788
final DescribeConnectionResult executeDescribeConnection(DescribeConnectionRequest describeConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
55,682
public View createView() {<NEW_LINE>sourcesState = Settings.getAttributeFilterSources();<NEW_LINE>final LinearLayout ll = new LinearLayout(getActivity());<NEW_LINE>ll.setOrientation(LinearLayout.VERTICAL);<NEW_LINE>inverse = new ButtonToggleGroup(getActivity());<NEW_LINE>inverse.addButtons(R.string.cache_filter_include...
(getActivity()), spacerlp);
1,741,439
private void updateFooter() {<NEW_LINE>List<ListItem> items = miniTable.getItems();<NEW_LINE>Iterator<ListItem> it = items.iterator();<NEW_LINE>BigDecimal periodActual = new BigDecimal(0.0);<NEW_LINE>BigDecimal periodBudget = new BigDecimal(0.0);<NEW_LINE>BigDecimal periodVariance = new BigDecimal(0.0);<NEW_LINE>BigDec...
BigDecimal totalVariance = new BigDecimal(0.0);
1,424,430
protected void registerDefaultRecipes() {<NEW_LINE>recipeList = new ArrayList<>();<NEW_LINE>recipeList.add(new ItemStack(Material.ROTTEN_FLESH));<NEW_LINE>recipeList.add(new ItemStack(Material.LEATHER));<NEW_LINE>recipeList.add(new ItemStack(Material.WET_SPONGE));<NEW_LINE>recipeList.add(new ItemStack(Material.SPONGE))...
new ItemStack(Material.COOKED_SALMON));
22,699
public void jpa10_Injection_DPU_AppLevel_Field_EJB_SL_CMTS() throws Exception {<NEW_LINE>final String testName = "jpa10_Injection_DPU_AppLevel_Field_EJB_SL_CMTS";<NEW_LINE>final String testMethod = "testDefaultPersistenceUnitInjection";<NEW_LINE>final TestExecutionContext testExecCtx = new TestExecutionContext(testName...
> jpaPCInfoMap = testExecCtx.getJpaPCInfoMap();
434,082
public int compareTo(TKeyExtent other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTable(), other.isSetTable());<NEW_LINE>if (lastCo...
this.endRow, other.endRow);
305,963
public static LibDivideS16 libdivide_s16_gen(@NativeType("int16_t") short denom, @NativeType("struct libdivide_s16_t") LibDivideS16 __result) {<NEW_LINE>if (denom == 0) {<NEW_LINE>throw new IllegalArgumentException("divider must be != 0");<NEW_LINE>}<NEW_LINE>int magic, more;<NEW_LINE>int absD = denom < 0 ? -denom : de...
= 1 << (15 + floor_log_2_d);
305,542
public CreateReplicationInstanceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateReplicationInstanceResult createReplicationInstanceResult = new CreateReplicationInstanceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
JsonToken token = context.getCurrentToken();
1,668,543
protected void timeoutCheck(Collection<GlobalSession> beginGlobalsessions) {<NEW_LINE>if (CollectionUtils.isEmpty(beginGlobalsessions)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!beginGlobalsessions.isEmpty() && LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("Global transaction timeout check begin, size: {}", beginG...
"Global transaction[{}] is timeout and will be rollback.", globalSession.getXid());
1,654,944
private String replaceFilenameNumericalDateWithWords(String fileName) {<NEW_LINE>String newFileName = fileName;<NEW_LINE>String patternString = "\\D*([0-9]{2,4})[ \\._-]*([0-9]{1,2})[ \\._-]*([0-9]{1,2}).*";<NEW_LINE>Pattern pattern = Pattern.compile(patternString);<NEW_LINE>Matcher matcher = pattern.matcher(fileName);...
matcher.group(2)));
672,969
public Request<GetUserEndpointsRequest> marshall(GetUserEndpointsRequest getUserEndpointsRequest) {<NEW_LINE>if (getUserEndpointsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetUserEndpointsRequest)");<NEW_LINE>}<NEW_LINE>Request<GetUserEndpointsRequest> request = new...
<GetUserEndpointsRequest>(getUserEndpointsRequest, "AmazonPinpoint");
1,754,161
public static MutableRoaringBitmap and(final ImmutableRoaringBitmap x1, final ImmutableRoaringBitmap x2) {<NEW_LINE>final MutableRoaringBitmap answer = new MutableRoaringBitmap();<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();<NEW_LINE>whi...
highLowContainer.advanceUntil(s1, pos2);