idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,057,670
public void collect(int doc, long bucket) throws IOException {<NEW_LINE>counts = bigArrays().<MASK><NEW_LINE>sums = bigArrays().grow(sums, bucket + 1);<NEW_LINE>compensations = bigArrays().grow(compensations, bucket + 1);<NEW_LINE>if (values.advanceExact(doc)) {<NEW_LINE>final int valueCount = values.docValueCount();<N...
grow(counts, bucket + 1);
1,325,146
private Mono<Response<Flux<ByteBuffer>>> deallocateWithResponseAsync(String resourceGroupName, String diskPoolName, 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_LI...
this.client.mergeContext(context);
1,089,449
static int encodeSequence(byte[] src, int anchor, int matchOff, int matchRef, int matchLen, byte[] dest, int dOff, int destEnd) {<NEW_LINE>final int runLen = matchOff - anchor;<NEW_LINE>final int tokenOff = dOff++;<NEW_LINE>if (dOff + runLen + (2 + 1 + LAST_LITERALS) + (runLen >>> 8) > destEnd) {<NEW_LINE>throw new LZ4...
[tokenOff] = (byte) token;
87,869
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>toolbar.setNavigationIcon(R.drawable.ic_clear);<NEW_LINE>toolbar.setNavigationOnClickListener(view1 -> dismiss());<NEW_LINE>Bundle bundle = getArguments();<NEW_LINE>Strin...
(user.getUrl()));
1,802,886
public DescribeAuditTaskResult describeAuditTask(DescribeAuditTaskRequest describeAuditTaskRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
290,164
protected void validateResourceForStorage(T theResource, ResourceTable theEntityToSave) {<NEW_LINE>Object tag = null;<NEW_LINE>int totalMetaCount = 0;<NEW_LINE>if (theResource instanceof IResource) {<NEW_LINE>IResource res = (IResource) theResource;<NEW_LINE>TagList tagList = <MASK><NEW_LINE>if (tagList != null) {<NEW_...
ResourceMetadataKeyEnum.TAG_LIST.get(res);
1,486,742
private ConcurrentHashMap<String, List<URL>> convertLisMap2UR(String serviceId, String tag, String protocol, List<Map<String, Object>> services) {<NEW_LINE>String key = tag == null ? serviceId : serviceId + "|" + tag;<NEW_LINE>ConcurrentHashMap<String, List<URL>> serviceUrls = new ConcurrentHashMap<>();<NEW_LINE>if (se...
error("convert portal registry service to url fail! service:" + service, e);
195,893
protected <T extends Node> NodeList<T> formatModuleMembers(NodeList<T> members) {<NEW_LINE>if (members.isEmpty()) {<NEW_LINE>return members;<NEW_LINE>}<NEW_LINE>boolean nodeModified = false;<NEW_LINE>int size = members.size();<NEW_LINE>Node[] newNodes = new Node[size];<NEW_LINE>for (int index = 0; index < size; index++...
1, size, index, currentMember);
1,107,898
private void updateQuorumValues() {<NEW_LINE>if (!shouldCheckQuorumValues()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>submitToCoordinatorThread(() -> {<NEW_LINE>try {<NEW_LINE>int currentQuorumSize = getQuorumSize();<NEW_LINE>for (JobRecord jobRecord : jobRepository.getJobRecords()) {<NEW_LINE>try {<NEW_LINE>if (!jobReco...
get(jobRecord.getJobId());
883,645
private static void testSwitchValues() {<NEW_LINE>// Cascade<NEW_LINE>assertTrue(getStringValue("zero") == 1);<NEW_LINE>assertTrue(getStringValue("one") == 1);<NEW_LINE>assertTrue(getStringValue("two") == 2);<NEW_LINE>// Default<NEW_LINE>assertTrue(getStringValue("three") == 3);<NEW_LINE>// Cascade<NEW_LINE>assertTrue(...
(getCharValue('2') == 2);
947,098
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {<NEW_LINE>registry.add(com.databricks.api.proto.databricks.Databricks.visibility);<NEW_LINE>registry.add(com.databricks.api.proto.databricks.Databricks.validateRequired);<NEW_LINE>registry.add(com.databricks.api.proto.databric...
proto.databricks.Databricks.enumValueVisibility);
250,270
public static GetKnowledgePropertiesPledgeResponse unmarshall(GetKnowledgePropertiesPledgeResponse getKnowledgePropertiesPledgeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getKnowledgePropertiesPledgeResponse.setRequestId(_ctx.stringValue("GetKnowledgePropertiesPledgeResponse.RequestId"));<NEW_LINE>getKnowledgeProper...
(_ctx.stringValue("GetKnowledgePropertiesPledgeResponse.Message"));
21,374
public void onClick(View view) {<NEW_LINE>Intent intent = new Intent(context, ComposeActivity.class);<NEW_LINE>intent.setType("text/plain");<NEW_LINE>String text = holder.tweet.getText().toString();<NEW_LINE>text = <MASK><NEW_LINE>text = restoreLinks(text);<NEW_LINE>switch(settings.quoteStyle) {<NEW_LINE>case AppSettin...
TweetLinkUtils.removeColorHtml(text, settings);
608,919
public static TwitterTimeline peers(final String protocolhostportstub, final String query, final TwitterTimeline.Order order, final String source, final int count, final int timezoneOffset, final String provider_hash) throws IOException {<NEW_LINE>TwitterTimeline tl = new TwitterTimeline(order);<NEW_LINE>String urlstri...
TwitterTweet t = new TwitterTweet(tweet);
1,479,370
protected void paintComponent(Graphics grphcs) {<NEW_LINE>Graphics2D g2d = (Graphics2D) grphcs;<NEW_LINE>if (this instanceof BotoesControleAba) {<NEW_LINE>if (getAba().isSelected()) {<NEW_LINE>g2d.setPaint(ColorController.FUNDO_MEDIO);<NEW_LINE>} else {<NEW_LINE>g2d.setPaint(ColorController.COR_CONSOLE);<NEW_LINE>}<NEW...
g2d.setPaint(ColorController.COR_CONSOLE);
928,640
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('create') create window MyWindowCA#keepall as select '' as theString, 0L as longPrimitive, 0L as longBoxed from MyMapWithKeyPrimitiveBoxed;\n" + "insert into MyWindowCA select theString, longPrimitive, longBoxed from SupportBean;\n" + "insert int...
("select").addListener("create");
940,782
public synchronized // is not used<NEW_LINE>Entry<Key, Value> next() {<NEW_LINE>if (!hasNext) {<NEW_LINE>throw new NoSuchElementException();<NEW_LINE>}<NEW_LINE>final long nmiPointer = nmiPtr.get();<NEW_LINE>if (nmiPointer == 0) {<NEW_LINE>throw new IllegalStateException("Native Map Iterator Deleted");<NEW_LINE>}<NEW_L...
cf, cq, cv, val);
1,786,878
private static void tryMT(RegressionEnvironment env, int numSeconds, int numWriteThreads) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table varagg (c0 int, c1 int, c2 int, c3 int, c4 int, c5 int)";<NEW_LINE>env.compileDeploy(eplC...
writeThreads[i].join();
1,799,864
private BigDecimal JSONIsSubset(List<Object> parameters) throws ParserException {<NEW_LINE>Set<Object> set <MASK><NEW_LINE>Set<Object> subset = new HashSet<Object>();<NEW_LINE>Object o1 = asJSON(parameters.get(0));<NEW_LINE>if (o1 instanceof JSONArray) {<NEW_LINE>set.addAll((JSONArray) o1);<NEW_LINE>} else if (o1 insta...
= new HashSet<Object>();
207,054
boolean updateLayoutAndScheduleRepaint(int pIndex, Shape pAlloc) {<NEW_LINE>Rectangle2D pViewRect = ViewUtils.shapeAsRect(pAlloc);<NEW_LINE>DocumentView docView = getDocumentView();<NEW_LINE>children.updateLayout(docView, this);<NEW_LINE>boolean spanUpdated = false;<NEW_LINE>float newWidth = children.width();<NEW_LINE>...
float newHeight = children.height();
1,030,815
protected GetUserSettingsResponse internalGetSoapUserSettings(String smtpAddress, List<UserSettingName> requestedSettings) throws Exception {<NEW_LINE>List<String> smtpAddresses = new ArrayList<String>();<NEW_LINE>smtpAddresses.add(smtpAddress);<NEW_LINE>List<String> redirectionEmailAddresses = new ArrayList<String>();...
, response.getRedirectTarget()));
1,598,106
public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException {<NEW_LINE>checkDestroyed();<NEW_LINE>URL url = invoker.getUrl();<NEW_LINE>// export service.<NEW_LINE>String key = serviceKey(url);<NEW_LINE>DubboExporter<T> exporter = new DubboExporter<T>(invoker, key, exporterMap);<NEW_LINE>// export a stub servi...
getParameter(INTERFACE_KEY) + "], has set stubproxy support event ,but no stub methods founded."));
666,866
private static // perm, length l, must be allocated before calling this subroutine<NEW_LINE>void svm_group_classes(svm_problem prob, int[] nr_class_ret, int[][] label_ret, int[][] start_ret, int[][] count_ret, int[] perm) {<NEW_LINE>int l = prob.l;<NEW_LINE>int max_nr_class = 16;<NEW_LINE>int nr_class = 0;<NEW_LINE>int...
] new_data = new int[max_nr_class];
720,785
public void save(RowBasedPartition part, MatrixPartitionMeta partMeta, PSMatrixSaveContext saveContext, DataOutputStream output) throws IOException {<NEW_LINE>List<Integer> rowIds = saveContext.getRowIndexes();<NEW_LINE>ServerRowsStorage rows = part.getRowsStorage();<NEW_LINE>if (rowIds == null || rowIds.isEmpty()) {<N...
setElementNum(row.size());
181,195
public static GrayU16 gaussian(GrayU16 input, @Nullable GrayU16 output, double sigmaX, int radiusX, double sigmaY, int radiusY, @Nullable GrayU16 storage) {<NEW_LINE>output = InputSanityCheck.declareOrReshape(input, output);<NEW_LINE>storage = InputSanityCheck.declareOrReshape(input, storage);<NEW_LINE>boolean processe...
horizontal(kernelX, input, storage);
692,841
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {<NEW_LINE>if (!(evt instanceof ProtocolNegotiationEvent)) {<NEW_LINE>super.userEventTriggered(ctx, evt);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long drainGraceTime = 0;<NEW_LINE>TimeUnit drainGraceTimeUnit = null;<NEW_LINE>Long drainG...
channel().remoteAddress());
1,280,598
public static ListMcubeMiniTasksResponse unmarshall(ListMcubeMiniTasksResponse listMcubeMiniTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMcubeMiniTasksResponse.setRequestId(_ctx.stringValue("ListMcubeMiniTasksResponse.RequestId"));<NEW_LINE>listMcubeMiniTasksResponse.setResultMessage(_ctx.stringValue("ListMc...
("ListMcubeMiniTasksResponse.ListMiniTaskResult.MiniTaskList[" + i + "].GreyConfigInfo"));
1,070,341
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabelDesc = new javax.swing.JLabel();<NEW_LINE>jPanelBeanTree = new javax.swing.JPanel();<NEW_LINE>jLabelError = new javax...
(PortChooser.class, "TTL_SelectPort"));
1,148,778
public static void vertical(Kernel1D_S32 kernel, GrayU16 src, GrayI8 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.<MASK><NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>fin...
checkDeclare(workspaces, DogArray_I32::new);
338,408
public static Ordering<List<RexLiteral>> comparator(RelFieldCollation fieldCollation) {<NEW_LINE>final int nullComparison = fieldCollation.nullDirection.nullComparison;<NEW_LINE>final int x = fieldCollation.getFieldIndex();<NEW_LINE>switch(fieldCollation.direction) {<NEW_LINE>case ASCENDING:<NEW_LINE>return new Orderin...
(c2, c1, -nullComparison);
123,072
private IHUDocumentLine createHUDocumentLine(final I_M_ReceiptSchedule schedule, final List<IHUDocument> subsequentDocuments) {<NEW_LINE>final <MASK><NEW_LINE>// Collect subsequent documents if caller asked for that<NEW_LINE>if (subsequentDocuments != null) {<NEW_LINE>final Set<Integer> seenInOutIds = new HashSet<Integ...
ReceiptScheduleHUDocumentLine documentLine = new ReceiptScheduleHUDocumentLine(schedule);
1,161,740
AttrSet toAttrSet() {<NEW_LINE>// Note: here extrasInEquals == false<NEW_LINE>// Hack - use equality for AttrSetBuilder to search in the cache<NEW_LINE>// So convert the cache to look like holding AttrSetBuilder instances.<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>SimpleWeakSet<AttrSetBuilder> cacheL = (SimpleWe...
cacheL.getOrAdd(this, elementProvider);
1,258,113
static VideoCodecInfo[] supportedCodecs() {<NEW_LINE>List<VideoCodecInfo> codecs = new ArrayList<VideoCodecInfo>();<NEW_LINE>if (H264Decoder.nativeIsSupported()) {<NEW_LINE>codecs.add(new VideoCodecInfo(VideoCodecMimeType.H264.toSdpCodecName(), <MASK><NEW_LINE>}<NEW_LINE>codecs.add(new VideoCodecInfo(VideoCodecMimeType...
new HashMap<>()));
1,821,748
public static void main(String[] args) {<NEW_LINE>GMTEDProvider provider = new GMTEDProvider();<NEW_LINE>System.out.println(provider.getEle(46, -20));<NEW_LINE>// 337.0 (339)<NEW_LINE>System.out.println(provider.getEle(49.949784, 11.57517));<NEW_LINE>// 453.0 (438)<NEW_LINE>System.out.println(provider.getEle(49.968668,...
.getEle(47.467753, 14.573911));
1,122,447
/*<NEW_LINE>* Low-level API performing the actual compilation<NEW_LINE>*/<NEW_LINE>public void performCompilation() {<NEW_LINE>this.startTime = System.currentTimeMillis();<NEW_LINE>FileSystem environment = getLibraryAccess();<NEW_LINE>try {<NEW_LINE>this.compilerOptions = new CompilerOptions(this.options);<NEW_LINE>th...
setting = System.getProperty("jdt.compiler.useSingleThread");
31,804
private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException {<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");<NEW_LINE>}<NE...
throw new ApiException(400, "Missing the required parameter 'password' when calling loginUser");
1,770,134
public Contentlet createDefaultFormContent(final String formId) throws DotDataException {<NEW_LINE>final User systemUser = userAPI.getSystemUser();<NEW_LINE>Structure formWidget = CacheLocator.getContentTypeCache().getStructureByVelocityVarName(FormAPI.FORM_WIDGET_STRUCTURE_NAME_VELOCITY_VAR_NAME);<NEW_LINE>if (!UtilMe...
checkin(formInstance, systemUser, true);
114,617
public void marshall(DomainConfig domainConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (domainConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(domainConfig.getEngineVersion(), ENGINEVERSION_B...
domainConfig.getAdvancedOptions(), ADVANCEDOPTIONS_BINDING);
558,508
private static void addCtor(ClassWriter cw, String tieClassName, String parentClassName, String servantDescriptor) {<NEW_LINE>MethodVisitor mv;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, INDENT + "adding method : <init> ()V");<NEW_LINE>// ----------------------------...
mv.visitMaxs(2, 1);
200,794
public void removeMessagesFromGroup(Object groupId, Collection<Message<?>> messages) {<NEW_LINE>Lock lock = this.lockRegistry.obtain(groupId);<NEW_LINE>try {<NEW_LINE>lock.lockInterruptibly();<NEW_LINE>try {<NEW_LINE>MessageGroup group = this.groupIdToMessageGroup.get(groupId);<NEW_LINE>Assert.notNull(group, () -> MESS...
.currentThread().interrupt();
453,762
static <Resp> Resp validateResponseAndGetPayload(final HttpResponse response, final CharSequence expectedContentType, final BufferAllocator allocator, final GrpcDeserializer<Resp> deserializer) {<NEW_LINE>// In case of an empty response, gRPC-server may return only one HEADER frame with endStream=true. Our<NEW_LINE>// ...
response.payloadBody(), allocator);
1,465,519
public RiskConfigurationType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>RiskConfigurationType riskConfigurationType = new RiskConfiguratio...
().unmarshall(context));
677,845
public void process(final Context ctx) throws Exception {<NEW_LINE>final FileObject file = ctx.file();<NEW_LINE>if (!file.getPath().startsWith(PANELS_FOLDER)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Object <MASK><NEW_LINE>if (instanceCreate != null) {<NEW_LINE>ctx.addStandardAnnotationHint(new Callable<Void>() {<N...
instanceCreate = ctx.instanceAttribute(file);
1,523,888
private void handleTestCaseStarted(TestCaseStarted event) {<NEW_LINE>if (currentFeatureFile == null || !currentFeatureFile.equals(event.getTestCase().getUri())) {<NEW_LINE>currentFeatureFile = event<MASK><NEW_LINE>Map<String, Object> currentFeatureMap = createFeatureMap(event.getTestCase());<NEW_LINE>featureMaps.add(cu...
.getTestCase().getUri();
1,255,715
public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, long[] keys, IElement[] values) {<NEW_LINE>PartitionKey[<MASK><NEW_LINE>int matrixPartNumMinus1 = matrixParts.length - 1;<NEW_LINE>KeyValuePart[] keyValueParts = new KeyValuePart[matrixParts.length];<NEW_LINE>int avgPartElemNum = keys.length / matrixP...
] matrixParts = matrixMeta.getPartitionKeys();
262,948
private VisualSampleEntry createSampleEntry() {<NEW_LINE>VisualSampleEntry visualSampleEntry = new VisualSampleEntry("hvc1");<NEW_LINE>visualSampleEntry.setDataReferenceIndex(1);<NEW_LINE>visualSampleEntry.setDepth(24);<NEW_LINE>visualSampleEntry.setFrameCount(1);<NEW_LINE>visualSampleEntry.setHorizresolution(72);<NEW_...
ArrayList<byte[]>();
339,452
private void loadNode209() {<NEW_LINE>HistoryServerCapabilitiesTypeNode node = new HistoryServerCapabilitiesTypeNode(this.context, Identifiers.HistoryServerCapabilities, new QualifiedName(0, "HistoryServerCapabilities"), new LocalizedText("en", "HistoryServerCapabilities"), LocalizedText.NULL_VALUE, UInteger.valueOf(0)...
.expanded(), true));
491,489
public void handleReadyNotification(final NotificationEvent notificationKey, final DateTime eventDate, final UUID userToken, final Long accountRecordId, final Long tenantRecordId) {<NEW_LINE>if (!(notificationKey instanceof NextBillingDateNotificationKey)) {<NEW_LINE>log.error("Invoice service received an unexpected ev...
targetDate, userToken, accountRecordId, tenantRecordId);
89,398
public static Mesh buildIcosphere(int divisions, float radius, Color color) {<NEW_LINE>begin(20 * (2 << (2 * divisions - <MASK><NEW_LINE>MeshResult result = Icosphere.create(divisions);<NEW_LINE>for (int i = 0; i < result.indices.size; i += 3) {<NEW_LINE>v1.set(result.vertices.items, result.indices.items[i] * 3).setLen...
1)) * 7 * 3);
1,781,157
public void union(final Memory skMem) {<NEW_LINE>if (skMem == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int cap = (int) skMem.getCapacity();<NEW_LINE>// empty or garbage<NEW_LINE>if (cap < 16) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int serVer = extractSerVer(skMem);<NEW_LINE>final int fam = extractFamily...
ForwardCompatibility.heapify1to3(skMem, expectedSeedHash_);
1,419,719
public Flux<NumericResponse<ZAggregateStoreCommand, Long>> zUnionStore(Publisher<? extends ZAggregateStoreCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Destination key must not be null!");<NEW_LINE>Assert.notEmpty(command.getSourceKeys(), "Source keys mus...
(weight).toPlainString());
1,131,355
protected final void bindValues(SQLiteStatement stmt, ThreadMetaValue entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>Long id = entity.getId();<NEW_LINE>if (id != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String key = entity.getKey();<NEW_LINE>if (key != null) {<NEW_LINE>stmt.bindString(2, key);<NEW_LINE>}<NEW_LINE...
stmt.bindLong(1, id);
570,431
private void updateIconForChangeIndicator(ArchiveNode node, MultiIcon multiIcon) {<NEW_LINE>DataTypeManager dtm = node.getArchive().getDataTypeManager();<NEW_LINE>if (dtm == null) {<NEW_LINE>// for InvalidArchiveNodes<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<SourceArchive> sourceArchives = dtm.getSourceArchives();<NEW...
(SOURCE_DELTA_ICON, 6, 9));
209,486
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>JelevaNephaliasWatcher watcher = game.getState().getWatcher(JelevaNephaliasWatcher.class);<NEW_LINE>if (controller != null &&...
player = game.getPlayer(playerId);
1,052,100
private List<PipelineAggregationBuilder> resolvePipelineAggregatorOrder(Collection<PipelineAggregationBuilder> pipelineAggregatorBuilders, Collection<AggregationBuilder> aggregationBuilders) {<NEW_LINE>Map<String, PipelineAggregationBuilder> pipelineAggregatorBuildersMap = new HashMap<>();<NEW_LINE>for (PipelineAggrega...
orderedPipelineAggregatorrs, unmarkedBuilders, temporarilyMarked, builder);
738,801
JsonObject httpGet(String url, User registrar, Map<String, String> queryMap) throws Exception {<NEW_LINE>String getURL = getURL(url, queryMap);<NEW_LINE>String authHTTPCert = getHTTPAuthCertificate(registrar.getEnrollment(), "GET", getURL, "");<NEW_LINE>HttpGet httpGet = new HttpGet(getURL);<NEW_LINE>httpGet.setConfig(...
("httpGet %s, authHTTPCert: %s", url, authHTTPCert));
1,041,499
public void execute(AdminCommandContext context) {<NEW_LINE>// Get the command report<NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>// Get the target configuration<NEW_LINE>final Config targetConfig = targetUtil.getConfig(target);<NEW_LINE>if (targetConfig == null) {<NEW_LINE>report.setMessag...
targetConfig.getExtensionByType(MicroprofileConfigConfiguration.class);
1,024,664
private void showPopup(final List<AnAction> options, Editor editor) {<NEW_LINE>final ScopeHighlighter highlighter = new ScopeHighlighter(editor);<NEW_LINE>DefaultListModel m = new DefaultListModel();<NEW_LINE>for (AnAction a : options) {<NEW_LINE>m.addElement(((MyUnwrapAction) a).getName());<NEW_LINE>}<NEW_LINE>final <...
JList list = new JBList(m);
120,268
@ConditionalOnMissingBean<NEW_LINE>public ApiHttpSecurityCustomizer delegatingApiHttpSecurityCustomizer() {<NEW_LINE>JwtAuthenticationConverter converter = new JwtAuthenticationConverter();<NEW_LINE>FlowableCommonAppProperties.OAuth2 oAuth2 = commonAppProperties.getSecurity().getOAuth2();<NEW_LINE>String authoritiesAtt...
JwtApiHttpSecurityCustomizer jwtApiHttpSecurityCustomizer = new JwtApiHttpSecurityCustomizer(converter);
1,609,895
private Mono<PagedResponse<PerformanceTierPropertiesInner>> listSinglePageAsync(String resourceGroupName, String serverName, 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.")...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,253,927
private JoinNode leftJoinOptimizer() {<NEW_LINE>PlanNode left = orgNode.getLeftNode();<NEW_LINE>PlanNode right = orgNode.getRightNode();<NEW_LINE>if (left.type() == PlanNode.PlanNodeType.JOIN) {<NEW_LINE>left = JoinERProcessor.optimize(left);<NEW_LINE>orgNode.setLeftNode(left);<NEW_LINE>}<NEW_LINE>if (right.type() == P...
().get(1));
848,897
private void updateSearch() {<NEW_LINE>if (!inCompletion) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (word.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (word.equals(resultsWord) && prefix.equals(resultsPrefix)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>results = server.getCompletionItems(type, prefix, word);<NEW_LI...
commonPrefix = findPrefixCommonToAll(results.items);
1,843,754
// @SuppressForbidden(reason = "toUpperCase() for consistency level")<NEW_LINE>@Override<NEW_LINE>public void createField(ParseContext context, Object object, Optional<String> keyName) throws IOException {<NEW_LINE>InetAddress address = null;<NEW_LINE>if (object instanceof String) {<NEW_LINE>try {<NEW_LINE>address = In...
.encode(address))));
568,648
public MorphiaReference decode(BsonReader reader, DecoderContext decoderContext) {<NEW_LINE>Object value = getDatastore().getCodecRegistry().get(bsonTypeClassMap.get(reader.getCurrentBsonType())).decode(reader, decoderContext);<NEW_LINE>value = processId(<MASK><NEW_LINE>TypeData typeData = getTypeData().getTypeParamete...
getDatastore(), value, decoderContext);
433,285
public void onSurfaceTextureAvailable(@NonNull SurfaceTexture surface, int width, int height) {<NEW_LINE>mCamera = Camera.open();<NEW_LINE>mCamera.setDisplayOrientation(90);<NEW_LINE>if (mCamera != null) {<NEW_LINE>Camera.Parameters parameters = mCamera.getParameters();<NEW_LINE>List<Camera.Size> previewSizes = paramet...
tmpSize = previewSizes.get(i);
264,442
private static boolean updateType(StringBuffer buf, char[] oldType, char[] newType, MergeStrategy mergeStrategy) {<NEW_LINE>if (mergeStrategy == MergeStrategy.REPLACE_SIGNATURE) {<NEW_LINE>buf.append(newType);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// may already contain annotations<NEW_LINE>Signatur...
nWrap.tail(), mergeStrategy);
1,696,141
private static List<Location> findTestPackage(Project project, String labelString) {<NEW_LINE>TargetIdeInfo target = getGoTestTarget(project, labelString);<NEW_LINE>if (target == null) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>// Exactly one source file, we'll go to the file.<NEW_LINE>if (target.getSour...
)) : ImmutableList.of();
1,270,695
private void loadConfig() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack mpack = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>mpack = (MapPack) tcp.getSingle(RequestCmd.GET_CONFIGURE_TELEGRAF, null);<NEW_LINE>} finally {<NEW_L...
child.get(0)));
1,700,519
protected void activate() {<NEW_LINE>super.activate();<NEW_LINE>addListeners();<NEW_LINE>addBindings();<NEW_LINE>addSubscriptions();<NEW_LINE>if (offerAvailabilityBusyAnimation != null) {<NEW_LINE>// temporarily disabled due to high CPU usage (per issue #4649)<NEW_LINE>// offerAvailabilityBusyAnimation.play();<NEW_LINE...
dontShowAgainId(key).show();
276,710
// --------- ACCOUNTANT API ----------<NEW_LINE>private Slime accountant(RestApi.RequestContext requestContext) {<NEW_LINE>var untilAt = untilParameter(requestContext).orElseGet(clock::instant);<NEW_LINE>var usagePerTenant = billing.createUncommittedBills(untilAt.atZone(ZoneOffset<MASK><NEW_LINE>var response = new Slim...
.UTC).toLocalDate());
816,093
public String putProject(final ProjectStorageMetadata metadata, final File localFile) {<NEW_LINE>final File projectDir = new File(this.rootDirectory, String.valueOf<MASK><NEW_LINE>if (projectDir.mkdir()) {<NEW_LINE>log.info("Created project dir: " + projectDir.getAbsolutePath());<NEW_LINE>}<NEW_LINE>final File targetFi...
(metadata.getProjectId()));
999,120
public static List<BrokerDiskTopicVO> convert2BrokerDiskTopicVOList(List<TopicDiskLocation> locationList) {<NEW_LINE>if (ValidateUtils.isEmptyList(locationList)) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>List<BrokerDiskTopicVO> voList = new ArrayList<>();<NEW_LINE>for (TopicDiskLocation location : locati...
setClusterId(location.getClusterId());
1,580,188
private final void printConstraintViolationException(ConstraintViolationException cve) {<NEW_LINE>printException(cve, "");<NEW_LINE>int COL1 = 50, COL2 = 14;<NEW_LINE>int col3 = Math.max(1, Math.min(Integer.MAX_VALUE, terminal.getWidth() - COL1 - COL2 - 6));<NEW_LINE>logError(String.format("%" + COL1 + "s-+-%" + COL2 +...
repeat("-", col3)));
455,210
public static void generateRuntimeFilters(Analyzer analyzer, PlanNode plan) {<NEW_LINE>Preconditions.checkNotNull(analyzer);<NEW_LINE>int maxNumBloomFilters = ConnectContext.get().getSessionVariable().getRuntimeFiltersMaxNum();<NEW_LINE>int runtimeFilterType = ConnectContext.get().getSessionVariable().getRuntimeFilterT...
.MAX_VALUE : a.getSelectivity();
1,344,892
public Expr apply(Expr expr, Analyzer analyzer, ExprRewriter.ClauseType clauseType) throws AnalysisException {<NEW_LINE>if (!(expr instanceof CompoundPredicate))<NEW_LINE>return expr;<NEW_LINE>CompoundPredicate cp = (CompoundPredicate) expr;<NEW_LINE>List<Expr> children = cp.getChildren();<NEW_LINE>if (children.size() ...
leftChild = cp.getChild(0);
57,898
private void createNewFiltersAndCursors(ItemStream itemStream) throws SIResourceException, MessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createNewFiltersAndCursors", itemStream);<NEW_LINE>LockingCursor cursor = null;<NEW_LINE>// Instantiate a...
classificationName = classifications.getClassification(i);
501,726
protected void waitForMasterToBeFullyUp() throws Exception {<NEW_LINE>log.debug("waitForMasterToBeFullyUp: beginning wait loop");<NEW_LINE>Polling.await(WAIT_TIMEOUT_SECONDS, SECONDS, new Callable<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object call() {<NEW_LINE>try {<NEW_LINE>// While MasterService wil...
= new HttpGet(masterAdminEndpoint + "/healthcheck");
919,663
public Object execute(final Map<Object, Object> iArgs) {<NEW_LINE>final ODatabaseDocumentInternal database = getDatabase();<NEW_LINE>database.checkSecurity(ORule.ResourceGeneric.SERVER, "status", ORole.PERMISSION_READ);<NEW_LINE>if (!(database instanceof ODatabaseDocumentDistributed)) {<NEW_LINE>throw new OCommandExecu...
, dManager.getClusterConfiguration()));
1,170,660
private String dumpBin(Object read) {<NEW_LINE>StringBuilder bldr = new StringBuilder();<NEW_LINE>bldr.append("<");<NEW_LINE>Field[] fields = Platform.<MASK><NEW_LINE>for (int i = 0; i < fields.length; i++) {<NEW_LINE>if (!Modifier.isPublic(fields[i].getModifiers()) || Modifier.isStatic(fields[i].getModifiers()))<NEW_L...
getFields(read.getClass());
1,210,706
public void apply(ParameterExpansionContext context) {<NEW_LINE>Optional<Min> min = context.findAnnotation(Min.class);<NEW_LINE>Optional<Max> max = context.findAnnotation(Max.class);<NEW_LINE>if (min.isPresent() || max.isPresent()) {<NEW_LINE>Compatibility<AllowableRangeValues, NumericElementFacet> values = allowableRa...
toString).orElse("<empty>"));
319,248
public InputFileLocation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputFileLocation inputFileLocation = new InputFileLocation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
().unmarshall(context));
91,529
private SimpleStatement buildDynamicStatementHitCount(EventQueryDefinition query) {<NEW_LINE>// Default settings<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("SELECT * FROM " + AUDIT_HITCOUNT_TABLE);<NEW_LINE>sb.append(" WHERE (" + AUDIT_ATT_TIME + "> ?) ");<NEW_LINE>sb.append(" AND (" + AUDIT_...
add(query.getHostFilters());
671,859
public static void main(String[] args) {<NEW_LINE>Scanner s = new Scanner(System.in);<NEW_LINE>System.out.println("Of First Matrix");<NEW_LINE>System.out.println(" Enter number of rows ");<NEW_LINE>int rows_first = s.nextInt();<NEW_LINE>System.out.println(" Enter number of columns ");<NEW_LINE>int columns_first = s.nex...
System.out.println(" Enter number of rows ");
193,125
public NpmPackageSearchResultJson search(PackageSearchSpec thePackageSearchSpec) {<NEW_LINE>NpmPackageSearchResultJson retVal = new NpmPackageSearchResultJson();<NEW_LINE>CriteriaBuilder cb = myEntityManager.getCriteriaBuilder();<NEW_LINE>// Query for total<NEW_LINE>{<NEW_LINE>CriteriaQuery<Long> countCriteriaQuery = c...
countCriteriaRoot.get("myPackageId")));
366,944
public int compare(final Renderable o1, final Renderable o2) {<NEW_LINE>final boolean b1 = o1.material.has(BlendingAttribute.Type) && ((BlendingAttribute) o1.material.get(BlendingAttribute.Type)).blended;<NEW_LINE>final boolean b2 = o2.material.has(BlendingAttribute.Type) && ((BlendingAttribute) o2.material.get(Blendin...
dst > 0 ? 1 : 0);
267,221
public WebResponse invokeProtectedResource(String testcase, WebConversation wc, String accessToken, String where, TestSettings settings, List<validationData> expectations, String currentAction) throws Exception {<NEW_LINE>String thisMethod = "invokeProtectedResource";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_...
GetMethodWebRequest(settings.getProtectedResource());
88,702
public void loadSettings() {<NEW_LINE>// oraHomeSelector.setVisible(isOCI);<NEW_LINE>// Load values from new connection info<NEW_LINE>DBPPreferenceStore globalPreferences = DBWorkbench.getPlatform().getPreferenceStore();<NEW_LINE>DBPConnectionConfiguration connectionInfo = site.getActiveDataSource().getConnectionConfig...
OracleConstants.PROP_ALWAYS_SHOW_DBA), false));
1,005,958
static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8> Seq<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> zip(Iterable<? extends T1> i1, Iterable<? extends T2> i2, Iterable<? extends T3> i3, Iterable<? extends T4> i4, Iterable<? extends T5> i5, Iterable<? extends T6> i6,...
i7), seq(i8));
1,097,704
private static void addJaxbApiEndorsed(FileObject srcRoot) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>String sample = "javax/xml/bind/JAXBElement.class";<NEW_LINE>ClassPath classPath = ClassPath.getClassPath(srcRoot, CLASSPATH_ENDORSED);<NEW_LINE>if (classPath == null || classPath.findResource(sample) == null) {<...
"Could not add JAXB at all: {0}", x.getMessage());
1,074,660
private String generateFieldSupplierErrorMessage(Callable<T> supplier) {<NEW_LINE>final FieldSupplierBuilder fieldSupplier = WhiteboxImpl.getInternalState(supplier, "this$0");<NEW_LINE>final Class<? extends Annotation> expectedAnnotation = fieldSupplier.getExpectedAnnotation();<NEW_LINE>final String expectedFieldName =...
throw new RuntimeException("Internal error", e);
1,535,277
private boolean isInvalidDirective(byte[] message) throws Exception {<NEW_LINE>if (message.length < 0x10) {<NEW_LINE>writeUsb(USBSTATUS_MALFORMED_REQUEST);<NEW_LINE>logPrinter.print("Directive is too small. Only " + message.length + " bytes received.", EMsgType.FAIL);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!Arra...
print("Invalid 'MAGIC'", EMsgType.FAIL);
1,074
public static void main(String[] args) {<NEW_LINE>// test directories are automatically added<NEW_LINE>String[] directories = new String[] { "main/boofcv-geo/src/main/java/boofcv/alg", "main/boofcv-geo/src/main/java/boofcv/struct/geo", "main/boofcv-ip-multiview/src/main/java/boofcv/alg", "main/boofcv-io/src/main/java/b...
converter.replacePattern("getDDRM", "getFDRM");
4,309
public void iteration() {<NEW_LINE>preIteration();<NEW_LINE>if (!this.samplesLoaded) {<NEW_LINE>this.network.setSamples(new BasicMLDataSet(this.training));<NEW_LINE>this.samplesLoaded = true;<NEW_LINE>}<NEW_LINE>final GlobalMinimumSearch globalMinimum = new GlobalMinimumSearch();<NEW_LINE>final DeriveMinimum dermin = n...
= this.network.getOutputCount();
987,751
public void partitionUpdate(PartitionUpdateParam partParam) {<NEW_LINE>GeneralPartUpdateParam param = (GeneralPartUpdateParam) partParam;<NEW_LINE>ServerLongAnyRow row = GraphMatrixUtils.getPSLongKeyRow(psContext, param);<NEW_LINE>ILongKeyAnyValuePartOp keyValuePart = (ILongKeyAnyValuePartOp) param.getKeyValuePart();<N...
.get(nodeIds[i]);
1,425,737
public static GetEntityTagRelationResponse unmarshall(GetEntityTagRelationResponse getEntityTagRelationResponse, UnmarshallerContext _ctx) {<NEW_LINE>getEntityTagRelationResponse.setRequestId(_ctx.stringValue("GetEntityTagRelationResponse.RequestId"));<NEW_LINE>getEntityTagRelationResponse.setMessage(_ctx.stringValue("...
("GetEntityTagRelationResponse.Data[" + i + "].EntityId"));
694,059
public Page pack(PixmapPacker packer, String name, Rectangle rect) {<NEW_LINE>GuillotinePage page;<NEW_LINE>if (packer.pages.size == 0) {<NEW_LINE>// Add a page if empty.<NEW_LINE>page = new GuillotinePage(packer);<NEW_LINE>packer.pages.add(page);<NEW_LINE>} else {<NEW_LINE>// Always try to pack into the last page.<NEW...
packer.pages.add(page);
1,475,746
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = getMyApplication();<NEW_LINE>app.applyTheme(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.recyclerview);<NEW_LINE>ActionBar supportActionBar = getSupportActionBar();<NEW_LINE>if (supportActionBar !=...
setTitle(R.string.logcat_buffer);
709,817
public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {<NEW_LINE>DefaultOAuth2AccessToken result = new DefaultOAuth2AccessToken(accessToken);<NEW_LINE>Map<String, Object> info = new LinkedHashMap<String, Object>(accessToken.getAdditionalInformation());<NEW_LINE><MASK><NEW_...
String tokenId = result.getValue();
717,681
public synchronized TextDocumentInfo changeDocument(String uri, int start, int end, String replaceText) {<NEW_LINE>TextDocumentInfo oldDoc = documents.get(uri);<NEW_LINE>String oldContent = oldDoc.getText();<NEW_LINE>String newContent = oldContent.substring(0, start) + <MASK><NEW_LINE>TextDocumentItem textDocument = se...
replaceText + oldContent.substring(end);
1,377,026
public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalJoin join = call.rel(0);<NEW_LINE>LogicalSemiJoin <MASK><NEW_LINE>if (join.getJoinType().generatesNullsOnRight()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RelNode x = join.getLeft();<NEW_LINE>RelNode y = semiJoin.getLeft();<NEW_LINE>RelNode z = semiJoin.getRight(...
semiJoin = call.rel(2);