idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
161,194
private Iterator<CityVO> retrieveAllCities(final int adClientId, final int countryId, final int regionId) {<NEW_LINE>if (countryId <= 0) {<NEW_LINE>return Collections.emptyIterator();<NEW_LINE>}<NEW_LINE>final List<Object> sqlParams = new ArrayList<Object>();<NEW_LINE>final StringBuilder sql = new StringBuilder(<MASK><...
"SELECT cy.C_City_ID, cy.Name, cy.C_Region_ID, r.Name" + " FROM C_City cy" + " LEFT OUTER JOIN C_Region r ON (r.C_Region_ID=cy.C_Region_ID)" + " WHERE cy.AD_Client_ID IN (0,?)");
960,998
protected char[] resolvePath(char[] basePath, char[] relPath) throws URIException {<NEW_LINE>// REMINDME: paths are never null<NEW_LINE>String base = (basePath == null) ? "" : new String(basePath);<NEW_LINE>// _path could be empty<NEW_LINE>if (relPath == null || relPath.length == 0) {<NEW_LINE>return normalize(basePath...
toString().toCharArray());
1,159,523
public final void accept(Context<?> ctx) {<NEW_LINE>if (field.getDataType().isEmbeddable() && minValue.getDataType().isEmbeddable() && maxValue.getDataType().isEmbeddable()) {<NEW_LINE>RowN f = row(embeddedFields(field));<NEW_LINE>RowN min <MASK><NEW_LINE>RowN max = row(embeddedFields(maxValue));<NEW_LINE>ctx.visit(not...
= row(embeddedFields(minValue));
1,408,109
public boolean isConnectedInDirection(LinkedDiGraphNode<N, E> source, Predicate<E> edgeFilter, LinkedDiGraphNode<N, E> dest) {<NEW_LINE>List<LinkedDiGraphEdge<N, E>> outEdges = source.getOutEdges();<NEW_LINE>int outEdgesLen = outEdges.size();<NEW_LINE>List<LinkedDiGraphEdge<N, E>> inEdges = dest.getInEdges();<NEW_LINE>...
int inEdgesLen = inEdges.size();
1,456,551
private static double distance(double lat1, double lon1, double lat2, double lon2) {<NEW_LINE>// Radius of the earth<NEW_LINE>final int R = 6371;<NEW_LINE>Double latDistance = Math.toRadians(lat2 - lat1);<NEW_LINE>Double lonDistance = <MASK><NEW_LINE>Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2) + Ma...
Math.toRadians(lon2 - lon1);
1,417,233
public static Trace trace(Client client, Shell shell, TraceRequest request, Listener listener) {<NEW_LINE>AtomicBoolean done = new AtomicBoolean();<NEW_LINE>GapidClient.StreamSender<Service.TraceRequest> sender = client.streamTrace(message -> {<NEW_LINE>Widgets.scheduleIfNotDisposed(shell, () <MASK><NEW_LINE>if (messag...
-> listener.onProgress(message));
1,698,987
public static void retrieveJaxWsFromResource(FileObject projectDir) throws IOException {<NEW_LINE>final // NOI18N<NEW_LINE>String // NOI18N<NEW_LINE>jaxWsContent = readResource(WSUtils<MASK><NEW_LINE>// NOI18N<NEW_LINE>final FileObject nbprojFo = projectDir.getFileObject("nbproject");<NEW_LINE>// NOI18N<NEW_LINE>assert...
.class.getResourceAsStream("/org/netbeans/modules/websvc/jaxwsmodel/resources/jax-ws.xml"));
395,254
public App updateAppInLocal(App app) {<NEW_LINE>String appId = app.getAppId();<NEW_LINE>App managedApp = appRepository.findByAppId(appId);<NEW_LINE>if (managedApp == null) {<NEW_LINE>throw new BadRequestException(String.format("App not exists. AppId = %s", appId));<NEW_LINE>}<NEW_LINE>managedApp.setName(app.getName());...
setOwnerEmail(owner.getEmail());
178,067
public void endElement() {<NEW_LINE>super.endElement();<NEW_LINE>XMLElement e = parser.getCurrentElement();<NEW_LINE>String name = e.getName();<NEW_LINE>if (openElements == 0 && (name.equals("html") || name.equals("svg"))) {<NEW_LINE>checkProperties();<NEW_LINE>} else if (name.equals("object")) {<NEW_LINE>imbricatedObj...
.getColumnNumber(), "a"));
1,349,479
public void startImport(View view) {<NEW_LINE>String fileName = trimFileName(mEditText.<MASK><NEW_LINE>// Step 1 check for suffixes.<NEW_LINE>if (!isFileNameValid(fileName)) {<NEW_LINE>Toast.makeText(this, getText(R.string.import_control_invalid_name), Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if...
getText().toString());
339,810
public Object inject(HttpRequest request, HttpResponse response, boolean unwrapAsync) {<NEW_LINE>// Liberty change start<NEW_LINE>MultivaluedMap<String, String> decodedFormParams = request.getDecodedFormParameters();<NEW_LINE>MediaType mediaType = request.getHttpHeaders().getMediaType();<NEW_LINE>if (String.class.equal...
(Encode.encodeString(s));
313,678
void displayDefaultValues() {<NEW_LINE><MASK><NEW_LINE>System.out.println("failureRateThreshold = " + config.getFailureRateThreshold());<NEW_LINE>System.out.println("minimumNumberOfCalls = " + config.getMinimumNumberOfCalls());<NEW_LINE>System.out.println("permittedNumberOfCallsInHalfOpenState = " + config.getPermitted...
CircuitBreakerConfig config = CircuitBreakerConfig.ofDefaults();
1,027,877
public void queueIncomingDataEvent(SipMessageByteBuffer buffer, SIPConnection source) {<NEW_LINE>if (source == null) {<NEW_LINE>throw new IllegalArgumentException("queueIncomingDataEvent: source is null!");<NEW_LINE>}<NEW_LINE>if (m_threads == null) {<NEW_LINE>if (s_logger.isTraceDebugEnabled()) {<NEW_LINE>int len = bu...
).onRead(buffer, source);
1,300,391
public void accept(ICompilationUnit sourceUnit, AccessRestriction accessRestriction) {<NEW_LINE>// Switch the current policy and compilation result for this unit to the requested one.<NEW_LINE>CompilationResult unitResult = new CompilationResult(sourceUnit, 1, 1, this.options.maxProblemsPerUnit);<NEW_LINE>try {<NEW_LIN...
System.out.println(unitResult);
524,964
protected void buildTopInternal(View view) {<NEW_LINE>buildDescription(view);<NEW_LINE>if (showLocalTransportRoutes()) {<NEW_LINE>buildRow(view, 0, null, app.getString(R.string.transport_Routes), 0, true, getCollapsableTransportStopRoutesView(view.getContext(), false, false), false, 0, false, null, true);<NEW_LINE>}<NE...
getFormattedDistance(TransportStopController.SHOW_STOPS_RADIUS_METERS, app);
1,013,765
public ConfigManager putObject(@NonNull String key, @NonNull Object v) {<NEW_LINE>if (v == null || key == null) {<NEW_LINE>throw new NullPointerException("null key/value not allowed");<NEW_LINE>}<NEW_LINE>if (v instanceof Float || v instanceof Double) {<NEW_LINE>putFloat(key, ((Number) v).floatValue());<NEW_LINE>} else...
[]) v).length);
1,752,905
// invokes all methods starting with "test"<NEW_LINE>public void run() {<NEW_LINE>Util.TRACE_ENTRY();<NEW_LINE>String className = this.getClass().getCanonicalName();<NEW_LINE>String methodName = "";<NEW_LINE>String testToRun = System.getProperty("fat.test.method.name", "");<NEW_LINE>Util.TRACE("fat.test.method.name=" +...
[0].getLineNumber());
316,127
private void loadNode614() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsType_TransferRequestCount, new QualifiedName(0, "TransferRequestCount"), new LocalizedText("en", "TransferRequestCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UIn...
.expanded(), false));
916,092
public static EntryLogMetadataRecyclable deserialize(DataInputStream in) throws IOException {<NEW_LINE>EntryLogMetadataRecyclable metadata = EntryLogMetadataRecyclable.get();<NEW_LINE>try {<NEW_LINE>short serVersion = in.readShort();<NEW_LINE>if ((serVersion != DEFAULT_SERIALIZATION_VERSION)) {<NEW_LINE>throw new IOExc...
ledgersMap.put(ledgerId, entryId);
1,503,541
private void validateResponse(HttpResponse response) throws IOException {<NEW_LINE>StatusLine status = response.getStatusLine();<NEW_LINE>if (status.getStatusCode() >= 400) {<NEW_LINE>String messagePrefix = String.format("The server returned status code %d. Possible reasons include:", status.getStatusCode());<NEW_LINE>...
status.getReasonPhrase() + "]");
1,644,266
private void bidiCommit() {<NEW_LINE>int xLocation = getX();<NEW_LINE>BidiLevelNode root = new BidiLevelNode();<NEW_LINE>List branches = new ArrayList();<NEW_LINE>// branches does not include this LineRoot; all the non-leaf child<NEW_LINE>// fragments of a<NEW_LINE>// parent will be listed before the parent itself in t...
buildBidiTree(this, root, branches);
1,491,801
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndMaxLengthAndAllElementsNotNull(sources, 2, 3);<NEW_LINE>final Object source = sources[0];<NEW_LINE>final Object target = sources[1];<NEW_LINE>final Bool...
equals(sources[2]));
1,037,153
private static void writeSpine(EpubBook book, EpubWriter epubWriter, XmlSerializer serializer) throws IllegalArgumentException, IllegalStateException, IOException {<NEW_LINE>serializer.startTag(NAMESPACE_OPF, OPFTags.spine);<NEW_LINE>Resource tocResource = book.getSpine().getTocResource();<NEW_LINE><MASK><NEW_LINE>seri...
String tocResourceId = tocResource.getId();
377,942
private void initEventMessageClass() {<NEW_LINE>String messageType = MessageType.event.name();<NEW_LINE>EventType[] eventTypes = new EventType[] { EventType.subscribe, EventType.unsubscribe };<NEW_LINE>for (EventType eventType : eventTypes) {<NEW_LINE>messageClassMap.put(new WeixinMessageKey(messageType, eventType.name...
, accountType), MenuPhotoEventMessage.class);
1,173,873
protected ElasticSearchIndexMetadata convertMetadata(String index, ImmutableOpenMap<String, ?> metaData) {<NEW_LINE>MappingMetadata mappingMetadata;<NEW_LINE>Object properties = null;<NEW_LINE>if (metaData.containsKey("properties")) {<NEW_LINE>Object res = metaData.get("properties");<NEW_LINE>if (res instanceof Mapping...
getSourceAsMap().get("properties");
324,863
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = getTargetPointer(<MASK><NEW_LINE>if (permanent != null) {<NEW_LINE>Player player = game.getPlayer(permanent.getControllerId());<NEW_LINE>if (player != null) {<NEW_LINE>Library library = player.getLibrary();<NEW_LINE>if (library.hasCards())...
).getFirstTargetPermanentOrLKI(game, source);
1,684,330
public void on_data_available(DataReader dataReader) {<NEW_LINE>MessagePayloadDataReader reader = MessagePayloadDataReaderHelper.narrow(dataReader);<NEW_LINE>MessagePayloadSeqHolder payloads = new MessagePayloadSeqHolder(new MessagePayload[0]);<NEW_LINE>SampleInfoSeqHolder infos = new SampleInfoSeqHolder(new SampleInfo...
buildMessageFromPayload(messagePayload, handle, sessionImpl);
134,470
List<VcapPojo> parseVcapService(String vcapServices) {<NEW_LINE>final List<VcapPojo> results = new ArrayList<>();<NEW_LINE>log("VcapParser.parse: vcapServices = " + vcapServices);<NEW_LINE>if (StringUtils.hasText(vcapServices)) {<NEW_LINE>try {<NEW_LINE>final JsonParser parser = JsonParserFactory.getJsonParser();<NEW_...
getVcapServiceConfigList(serviceEntry.getValue());
1,308,900
public static void main(String[] args) {<NEW_LINE>if (args.length == 0) {<NEW_LINE>Options.help(true);<NEW_LINE>}<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>List<String> files = null;<NEW_LINE>Options options = new Options();<NEW_LINE>try {<NEW_LINE>files = options.load(args);<NEW_LINE>if (files.isE...
checkErrors(options.treatWarningsAsErrors());
121,471
protected BackupTaskResult doInBackground() {<NEW_LINE>boolean success = true;<NEW_LINE>String decryptedString = "";<NEW_LINE>try {<NEW_LINE>byte[] data = StorageAccessHelper.loadFile(applicationContext, uri);<NEW_LINE>if (oldFormat) {<NEW_LINE>SecretKey key = EncryptionHelper.generateSymmetricKeyFromPassword(password)...
data, 0, Constants.INT_LENGTH);
693,427
private static TreePath findMatchedChild(@Nonnull TreeModel model, @Nonnull TreePath treePath, @Nonnull PathElement pathElement) {<NEW_LINE>Object parent = treePath.getLastPathComponent();<NEW_LINE>int childCount = model.getChildCount(parent);<NEW_LINE>if (childCount <= 0)<NEW_LINE>return null;<NEW_LINE>boolean idMatch...
model.getChild(parent, j);
1,432,881
// method from master_integration<NEW_LINE>@NonNull<NEW_LINE>private List<I_M_HU> createNewlyPickedHUs(@NonNull final I_M_ShipmentSchedule scheduleRecord, @NonNull final I_M_HU sourceHURecord, @NonNull final Quantity quantityToSplit, final boolean pickAccordingToPackingInstruction) {<NEW_LINE>final <MASK><NEW_LINE>// s...
HUTransformService huTransformService = HUTransformService.newInstance();
1,709,268
public Completion interpret(ExecutionContext context, boolean debug) {<NEW_LINE>Object exprRef = getRhs().interpret(context, debug);<NEW_LINE>Object exprValue = getValue(this.rhsGet, context, exprRef);<NEW_LINE>if (exprValue == Types.NULL || exprValue == Types.UNDEFINED) {<NEW_LINE>return (Completion.createNormal());<N...
.getAllEnumerablePropertyNames().toList();
1,251,907
private void createResultData(Composite panel, String label, int rate) {<NEW_LINE>GridData gridData;<NEW_LINE>// spacer column<NEW_LINE>Label c1 = new Label(panel, SWT.NULL);<NEW_LINE>gridData = new GridData();<NEW_LINE>gridData.horizontalSpan = 1;<NEW_LINE>c1.setLayoutData(gridData);<NEW_LINE>// label<NEW_LINE>Label c...
Label(panel, SWT.NULL);
559,452
private void generateAudioSource() throws IOException, OmniNotConnectedException, OmniInvalidResponseException, OmniUnknownMessageTypeException {<NEW_LINE>String groupString = "Group\t%s\t\"%s\"\t(%s)\n";<NEW_LINE>String itemString = "%s\t%s\t\"%s\"\t(%s)\t{omnilink=\"%s:%d\"}\n";<NEW_LINE>String groupName = "AudioSour...
o = ((AudioSourceProperties) m);
1,006,914
public final int unnestRecords(final int recordCount) {<NEW_LINE>Preconditions.checkArgument(svMode == NONE, "Unnest does not support selection vector inputs.");<NEW_LINE>final int initialInnerValueIndex = runningInnerValueIndex;<NEW_LINE>int nonEmptyArray = 0;<NEW_LINE>outer: {<NEW_LINE>// index in the output vector t...
final SchemaChangeCallBack callBack = new SchemaChangeCallBack();
1,807,584
public void onStanza(ConnectionItem connection, Stanza stanza) {<NEW_LINE>Jid from = stanza.getFrom();<NEW_LINE>if (from == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!(connection instanceof AccountItem) || !(stanza instanceof Message)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AccountJid account = ((AccountItem) co...
String session = message.getThread();
1,391,545
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Process process = emc....
.setLastUpdateTime(new Date());
1,498,128
private boolean recoverTheLastLogDataFile(File file) {<NEW_LINE>String[] splits = file.getName().split(FILE_NAME_SEPARATOR);<NEW_LINE>long startIndex = Long.parseLong(splits[0]);<NEW_LINE>Pair<File, Pair<Long, Long>> fileStartAndEndIndex = getLogIndexFile(startIndex);<NEW_LINE>if (fileStartAndEndIndex.right.left == sta...
long endIndex = fileStartAndEndIndex.right.right;
65,141
protected PreparedStatement prepareStatement(String sql, Object[] params) throws SQLException {<NEW_LINE>PreparedStatement statement = connection.prepareStatement(sql);<NEW_LINE>for (int i = 0; i < params.length; i++) {<NEW_LINE>if (params[i] == null) {<NEW_LINE>statement.setNull(i + 1, nullType);<NEW_LINE>} else if (p...
(Boolean) params[i]);
1,057,600
public DescribeReservedElasticsearchInstancesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReservedElasticsearchInstancesResult describeReservedElasticsearchInstancesResult = new DescribeReservedElasticsearchInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth...
class).unmarshall(context));
734,324
private void doFileFilters(File[] files) {<NEW_LINE>// System.out.println("Doing file filters");<NEW_LINE>final File[] cFiles = files;<NEW_LINE>final JPanel fileFilterPanel = new JPanel();<NEW_LINE>fileFilterPanel.setLayout(new BoxLayout(fileFilterPanel, BoxLayout.PAGE_AXIS));<NEW_LINE>JLabel text = new JLabel("<html>P...
] options = new JButton[3];
256,396
private static <T, E extends Number> void testCasts_generics() {<NEW_LINE><MASK><NEW_LINE>// cast to type variable with bound, casting Integer instance to Number<NEW_LINE>E e = (E) o;<NEW_LINE>// cast to type variable without bound, casting Integer instance to Object<NEW_LINE>T t = (T) o;<NEW_LINE>assertThrowsClassCast...
Object o = new Integer(1);
96,404
private void updateOutline(@NotNull FlutterOutline outline) {<NEW_LINE>currentOutline = outline;<NEW_LINE>final DefaultMutableTreeNode rootNode = getRootNode();<NEW_LINE>rootNode.removeAllChildren();<NEW_LINE>outlinesWithWidgets.clear();<NEW_LINE>outlineToNodeMap.clear();<NEW_LINE>if (outline.getChildren() != null) {<N...
flutterAnalysisServer, false, false, project);
1,629,155
private JavacNode buildTypeUse(JCTree typeUse) {<NEW_LINE>if (setAndGetAsHandled(typeUse))<NEW_LINE>return null;<NEW_LINE>if (typeUse == null)<NEW_LINE>return null;<NEW_LINE>if (typeUse.getClass().getName().equals("com.sun.tools.javac.tree.JCTree$JCAnnotatedType")) {<NEW_LINE>initJcAnnotatedType(typeUse.getClass());<NE...
, childNodes, Kind.TYPE_USE));
1,822,106
// using JAX-RS providers, users need to add dependencies for implementations, see pom for an example.<NEW_LINE>@Path("/errorCodeWithHeaderJAXRS")<NEW_LINE>@POST<NEW_LINE>@ApiResponses({ @ApiResponse(code = 200, response = MultiResponse200.class, message = ""), @ApiResponse(code = 400, response = MultiResponse400.class...
setCode(request.getCode());
1,372,115
public void update(@Nonnull final AnActionEvent e) {<NEW_LINE>final Presentation presentation = e.getPresentation();<NEW_LINE>final Project project = e.getProject();<NEW_LINE>if (project == null || project.isDisposed()) {<NEW_LINE>presentation.setEnabledAndVisible(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>presentati...
(getInformativeIcon(project, selectedConfiguration));
1,496,363
public void onResponse(QueryPage<ModelSnapshot> searchResponse) {<NEW_LINE>long nextToKeepMs = deleteAllBeforeMs;<NEW_LINE>try {<NEW_LINE>List<ModelSnapshot> snapshots = new ArrayList<>();<NEW_LINE>for (ModelSnapshot snapshot : searchResponse.results()) {<NEW_LINE>// We don't want to delete the currently used snapshot ...
"Model snapshot document [{}] has a null timestamp field", snapshot.getSnapshotId());
13,348
private static OHashTable.BucketPath prevLevelUp(final OHashTable.BucketPath bucketPath) {<NEW_LINE>if (bucketPath.parent == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int nodeLocalDepth = bucketPath.nodeLocalDepth;<NEW_LINE>final int pointersSize <MASK><NEW_LINE>final OHashTable.BucketPath parent = bucket...
= 1 << (MAX_LEVEL_DEPTH - nodeLocalDepth);
1,359,497
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_SOLID_STATE_RELAY__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.MBRICKLET_SOLID_STATE_RELAY__UID:<NEW_LINE>return UID_EDEFAULT == nul...
: !UID_EDEFAULT.equals(uid);
881,341
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "privateClouds");
307,966
final AdminUpdateAuthEventFeedbackResult executeAdminUpdateAuthEventFeedback(AdminUpdateAuthEventFeedbackRequest adminUpdateAuthEventFeedbackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminUpdateAuthEventFeedbackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
endClientExecution(awsRequestMetrics, request, response);
1,576,117
public static Library createLibrary(@Nullable final LibraryType type, @Nonnull final JComponent parentComponent, @Nonnull final Project project, @Nonnull final LibrariesModifiableModel modifiableModel) {<NEW_LINE>final NewLibraryConfiguration configuration = createNewLibraryConfiguration(type, parentComponent, project)...
> libraryType = configuration.getLibraryType();
1,630,756
public void accept(Writable writable) {<NEW_LINE>String str = writable.toString();<NEW_LINE>String[] split = str.split(delim);<NEW_LINE>if (split.length != 2) {<NEW_LINE>throw new IllegalStateException("Could not parse lat/long string: \"" + str + "\"");<NEW_LINE>}<NEW_LINE>double latDeg = Double.parseDouble(split[0]);...
z = Math.sin(lat);
860,460
private Element loadRemotePolicy(String uri, String defName) {<NEW_LINE>ExtendedURIResolver resolver = new ExtendedURIResolver();<NEW_LINE>InputSource src = null;<NEW_LINE>try {<NEW_LINE>src = resolver.resolve(uri, "classpath:");<NEW_LINE>} catch (ConnectException | SocketTimeoutException e1) {<NEW_LINE>}<NEW_LINE>if (...
getDocumentElement().setAttributeNodeNS(att);
696,120
public PageResult<UserVO> findPageByParam(UserPageListRequest userPageListRequest) {<NEW_LINE>Page pageRequest = new Page(userPageListRequest.getPageNo(), userPageListRequest.getPageSize());<NEW_LINE>QueryWrapper<User> queryWrapper = new QueryWrapper<>();<NEW_LINE>if (StringUtils.isNotEmpty(userPageListRequest.getName(...
User.class, UserVO.class);
623,552
private void initInternal(PinotConfiguration config) throws Exception {<NEW_LINE>// directly, without sub-namespace<NEW_LINE>_httpSegmentFetcher.init(config);<NEW_LINE>// directly, without sub-namespace<NEW_LINE>_pinotFSSegmentFetcher.init(config);<NEW_LINE>List<String> protocols = config.getProperty(PROTOCOLS_KEY, Col...
_segmentFetcherMap.put(protocol, segmentFetcher);
1,054,326
public // LEFT AssertOneRows<NEW_LINE>List<OptExpression> transformUnCorrelateCheckOneRows(OptExpression input, LogicalApplyOperator apply, OptimizerContext context) {<NEW_LINE>// assert one rows will check rows, and fill null row if result is empty<NEW_LINE>OptExpression assertOptExpression = new OptExpression(Log...
ColumnRefFactory factory = context.getColumnRefFactory();
1,691,948
public void calculate(@NonNull final IPricingContext pricingCtx, @NonNull final IPricingResult result) {<NEW_LINE>if (!applies(pricingCtx, result)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_M_PriceList_Version ctxPriceListVersion = getPriceListVersionEffective(pricingCtx);<NEW_LINE>if (ctxPriceListVersion == null)...
setPriceStd(productPrice.getPriceStd());
540,448
private void forcefulClose(final ChannelHandlerContext ctx, final ForcefulCloseCommand msg, ChannelPromise promise) throws Exception {<NEW_LINE>connection().forEachActiveStream(new Http2StreamVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean visit(Http2Stream stream) throws Http2Exception {<NEW_LINE>Nett...
, true, new Metadata());
1,752,165
public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>if (sourceFiles == null || sourceFiles.size() == 0) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File args4jBuildDir = new File(args4jBuildDirPath);<NEW_LINE>if (!args4jBuildDir.exists() && !args4jBuildDir.mkdirs()) {<NEW_LIN...
getLog().info("No sourceFiles defined. Skipping");
941,908
private static Map<String, Set<String>> projectDependencies(Set<Project> projects) {<NEW_LINE>Map<String, Set<String>> project2DirectDependencies = new HashMap<>();<NEW_LINE>List<Project> todoList = new LinkedList<>(projects);<NEW_LINE>while (!todoList.isEmpty()) {<NEW_LINE>Project prj = todoList.remove(0);<NEW_LINE>St...
deps = new HashSet<>();
1,131,017
public void process(Element element, EComponentHolder holder) {<NEW_LINE>ExecutableElement executableElement = (ExecutableElement) element;<NEW_LINE>String returnTypeName = executableElement.getReturnType().toString();<NEW_LINE>AbstractJClass returnType = getJClass(returnTypeName);<NEW_LINE>JMethod method = codeModelHe...
JTryBlock tryBlock = body._try();
587,312
private void mergeCompleted(SegmentProperties segmentProperties, UpdateableSegmentMetadata transactionMetadata, MergeSegmentOperation mergeOp) {<NEW_LINE>// We have processed a MergeSegmentOperation, pop the first operation off and decrement the counter.<NEW_LINE>StorageOperation processedOperation = this.operations.re...
transactionMetadata, mop.getStreamSegmentId());
1,782,280
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>// prompt user to make sure they really want this<NEW_LINE>new androidx.appcompat.app.AlertDialog.Builder(PortForwardListActivity.this, R.style.AlertDialogTheme).setMessage(getString(R.string.delete_message, portForward.getNickname())).setPositiveButton(R.string....
e(TAG, "Could not delete port forward", e);
172,936
Map<String, Object> serialize(T object, ErrorPath path) {<NEW_LINE>// TODO(wuandy): Add logic to skip @DocumentId annotated fields in serialization.<NEW_LINE>if (!clazz.isAssignableFrom(object.getClass())) {<NEW_LINE>throw new IllegalArgumentException("Can't serialize object of class " + object.getClass() + " with Bean...
propertyValue = invoke(getter, object);
642,064
public void parse(InputStream in, DistanceCacheWriter cache) {<NEW_LINE>reader.reset(in);<NEW_LINE>IndefiniteProgress prog = LOG.isVerbose() ? new IndefiniteProgress("Parsing distance matrix", LOG) : null;<NEW_LINE>try {<NEW_LINE>int id1, id2;<NEW_LINE>while (reader.nextLineExceptComments()) {<NEW_LINE>if (!tokenizer.v...
reader.getLineNumber() + ": id1 is not an integer!");
456,468
public static QueryDeviceRecordLifeCycleResponse unmarshall(QueryDeviceRecordLifeCycleResponse queryDeviceRecordLifeCycleResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceRecordLifeCycleResponse.setRequestId(_ctx.stringValue("QueryDeviceRecordLifeCycleResponse.RequestId"));<NEW_LINE>queryDeviceRecordLifeCycleRe...
= new ArrayList<DataItem>();
479,343
final ExportTableToPointInTimeResult executeExportTableToPointInTime(ExportTableToPointInTimeRequest exportTableToPointInTimeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportTableToPointInTimeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,670,189
public void dataTypeRenamed(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath) {<NEW_LINE>DataTypeManager originalDTM = getOriginalDataTypeManager();<NEW_LINE>if (dtm != originalDTM) {<NEW_LINE>// Different DTM than the one for this data type.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isLoaded()) {<NEW_LI...
e.getMessage(), e);
532,647
public SRemoteServiceCalled convertToSObject(RemoteServiceCalled input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SRemoteServiceCalled result = new SRemoteServiceCalled();<NEW_LINE>result.<MASK><NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LINE>re...
setOid(input.getOid());
120,738
public static ListPreferredEcsTypesResponse unmarshall(ListPreferredEcsTypesResponse listPreferredEcsTypesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPreferredEcsTypesResponse.setRequestId(_ctx.stringValue("ListPreferredEcsTypesResponse.RequestId"));<NEW_LINE>listPreferredEcsTypesResponse.setSupportSpotInstance(...
+ "].Roles.Manager[" + j + "]"));
618,859
private // These metrics can be useful for diagnosing native memory usage.<NEW_LINE>void updateBufferPoolMetrics() {<NEW_LINE>for (BufferPoolMXBean bufferPoolMXBean : bufferPoolMXBeanList) {<NEW_LINE>String normalizedKeyName = bufferPoolMXBean.getName().replaceAll("[^\\w]", "-");<NEW_LINE>final ByteAmount memoryUsed = ...
setValue(memoryUsed.asMegabytes());
626,061
public static Completable requestPermissions(final Activity activity, List<String> permissions) {<NEW_LINE>return Completable.create(emitter -> {<NEW_LINE>Logger.debug("Start Dexter " + new Date().getTime());<NEW_LINE>try {<NEW_LINE>Dexter.withActivity(activity).withPermissions(permissions).withListener(new MultiplePer...
Date().getTime());
155,202
public static void addMethodMetaData(ActionReport ar, Map<String, MethodMetaData> mmd) {<NEW_LINE>List<Map> methodMetaData = new ArrayList<Map>();<NEW_LINE>MethodMetaData getMetaData = mmd.get("GET");<NEW_LINE>methodMetaData.add(new HashMap() {<NEW_LINE><NEW_LINE>{<NEW_LINE>put("name", "GET");<NEW_LINE>}<NEW_LINE>});<N...
HashMap<String, Object>();
820,821
protected void checkTables() throws SQLException {<NEW_LINE>logger.entering(CLASSNAME, "checkMySQLTables");<NEW_LINE>setCreateMySQLStringsMap(tableNames);<NEW_LINE>createTableIfNotExists(tableNames.get(CHECKPOINT_TABLE_KEY), createMySQLStrings.get(MYSQL_CREATE_TABLE_CHECKPOINTDATA));<NEW_LINE>createTableIfNotExists(tab...
, createMySQLStrings.get(MYSQL_CREATE_TABLE_EXECUTIONINSTANCEDATA));
562,333
public static void sendReceiveMessagesThroughConnect(String connectPodName, String topicName, final String kafkaClientsPodName, final String scraperPodName, String namespace, String clusterName) {<NEW_LINE>LOGGER.info("Send and receive messages through KafkaConnect");<NEW_LINE>KafkaConnectUtils.waitUntilKafkaConnectRes...
(clusterName, namespace, 8083));
570,324
static private final void ExpandBuff(boolean wrapAround) {<NEW_LINE>char[] newbuffer = new char[bufsize + 2048];<NEW_LINE>int[] newbufline = new int[bufsize + 2048];<NEW_LINE>int[] newbufcolumn = new int[bufsize + 2048];<NEW_LINE>try {<NEW_LINE>if (wrapAround) {<NEW_LINE>System.arraycopy(buffer, tokenBegin, newbuffer, ...
Error(t.getMessage());
281,581
LiveVariableLattice flowThrough(Node node, LiveVariableLattice input) {<NEW_LINE>final BitSet gen = new BitSet(input.liveSet.size());<NEW_LINE>final BitSet kill = new BitSet(input.liveSet.size());<NEW_LINE>// Make kills conditional if the node can end abruptly by an exception.<NEW_LINE>boolean conditional = false;<NEW_...
node, gen, kill, conditional);
1,247,449
public void save(OutputStream os, SaveFileFormat save) {<NEW_LINE>referenceTracker.inspectTypes(world);<NEW_LINE>referenceTracker.preWrite(save);<NEW_LINE>save.archetypes = new ArchetypeMapper(world, save.entities);<NEW_LINE>componentCollector.preWrite(save);<NEW_LINE>entitySerializer.serializationState = save;<NEW_LIN...
save.entities.size());
833,920
private void initComponents() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>setOpaque(false);<NEW_LINE>if (!hasData) {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>add(MessageComponent.noData("Per thread allocations", JFRSnapshotSamplerViewProvider.ThreadAllocationsChecker.checkedTypes<MASK><NEW_LINE>} else {<...
()), BorderLayout.CENTER);
1,668,460
protected Polygon[] convertAvoidAreas(JSONObject geoJson) throws StatusCodeException {<NEW_LINE>// It seems that arrays in json.simple cannot be converted to strings simply<NEW_LINE>org.json.JSONObject complexJson = new org.json.JSONObject();<NEW_LINE>complexJson.put("type", geoJson.get("type"));<NEW_LINE>List<List<Dou...
GenericErrorCodes.INVALID_JSON_FORMAT, RequestOptions.PARAM_AVOID_POLYGONS);
308,449
public Request<DescribeReservedInstancesListingsRequest> marshall(DescribeReservedInstancesListingsRequest describeReservedInstancesListingsRequest) {<NEW_LINE>if (describeReservedInstancesListingsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>R...
(describeReservedInstancesListingsRequest.getReservedInstancesListingId()));
1,073,210
public void decode8x16(MBlock mBlock, Picture mb, Frame[][] refs, PartPred p0, PartPred p1) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = mapper.leftAvailable(mBlock.mbIdx);<NEW_LINE>boolean topAvailable = mapper.topAvailable(mBlock.mb...
mapper.topLeftAvailable(mBlock.mbIdx);
741,193
public void formatQuery(List<DataPointGroup> queryResults, boolean excludeTags, int sampleSize, boolean filterEmptyResults) throws FormatterException {<NEW_LINE>try {<NEW_LINE>m_jsonWriter.object();<NEW_LINE>if (sampleSize != -1)<NEW_LINE>m_jsonWriter.key("sample_size").value(sampleSize);<NEW_LINE>m_jsonWriter.key("res...
write(groupByResult.toJson());
601,056
public LogicalPlan visitTableFunction(TableFunctionRelation node, ExpressionMapping context) {<NEW_LINE>List<ColumnRefOperator> outputColumns = new ArrayList<>();<NEW_LINE>TableFunction tableFunction = node.getTableFunction();<NEW_LINE>for (int i = 0; i < tableFunction.getTableFnReturnTypes().size(); ++i) {<NEW_LINE>ou...
node.getTableFunction(), projectMap);
302,939
// start lifecycle<NEW_LINE>@Override<NEW_LINE>protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_password);<NEW_LINE>// For set status bar<NEW_LINE>ChinaPhoneHelper.setStatusBar(this, true);<NEW_LINE>// Get this page mode<NEW_LINE...
findViewById(R.id.But_password_key_backspace);
359,959
private void renderRuntimeThreads() throws IOException {<NEW_LINE>ClassReader threadCls = classSource.get(THREAD_CLASS);<NEW_LINE>MethodReader currentThreadMethod = threadCls != null ? threadCls.getMethod(CURRENT_THREAD_METHOD) : null;<NEW_LINE>boolean threadUsed = currentThreadMethod != null && currentThreadMethod.get...
.indent().softNewLine();
1,164,862
public void testRemoteAsyncCancelledTrueParameter() throws Exception {<NEW_LINE>svLogger.info("In testAsyncCancelledTrueParameter");<NEW_LINE>List<Future<String>> uncancelledFutures = new ArrayList<Future<String>>();<NEW_LINE>while (uncancelledFutures.size() < MAX_CANCEL_ATTEMPTS) {<NEW_LINE>Future<String> future = dri...
"Future.isCancelled failed to return true", future.isCancelled());
1,821,710
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("POOL_ID", 0, typeFactory.createSqlType(SqlTypeName.BIGINT)));<NEW_LINE>columns.add(new R...
createSqlType(SqlTypeName.BIGINT)));
1,201,191
public void check() throws SQLException {<NEW_LINE>MariaDBTable randomTable = s.getRandomTable();<NEW_LINE>List<MariaDBColumn> columns = randomTable.getColumns();<NEW_LINE>MariaDBExpressionGenerator gen = new MariaDBExpressionGenerator(state.getRandomly()).setColumns(columns).setCon(con).setState(state.getState());<NEW...
getOptimizedQuery(randomTable, randomWhereCondition, groupBys);
414,191
public void advanceStop(final String vmUuid, final boolean cleanUpEvenIfUnableToStop) throws AgentUnavailableException, OperationTimedoutException, ConcurrentOperationException {<NEW_LINE>final AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();<NEW_LINE>if (jobContext.isJobDisp...
throw new RuntimeException("Unexpected exception", ex);
247,842
private static void init() {<NEW_LINE>actions = new TreeMap<Long, TimeAction>();<NEW_LINE>// Instructions for a test set:<NEW_LINE>// hardcoded for a 5.5-second time window and 1-second output rate !<NEW_LINE>// First set the time, second send the event(s)<NEW_LINE>add(200, makeEvent("IBM", 100, 25), "Event E1 arrives"...
, 11500, 3), "Event E8 arrives");
1,703,327
private JSONObject buildQueries() {<NEW_LINE>List<Series> seriesList = seriesSelector.getAllSeries();<NEW_LINE>JSONObject queries = new JSONObject();<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>sql.append("SELECT ");<NEW_LINE>sql.append(xAxis.getSelectedValue());<NEW_LINE>for (Series series : seriesList)...
getInstance().showError("You must enter a global filter");
208,607
public Toolchain unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Toolchain toolchain = new Toolchain();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><...
JsonToken token = context.getCurrentToken();
130,941
protected void perform(RelOptRuleCall call, List<RexNode> leftFilters, List<RexNode> rightFilters, RelOptPredicateList relOptPredicateList) {<NEW_LINE>final LogicalJoin join = (LogicalJoin) call.rels[0];<NEW_LINE>LogicalView leftView = (<MASK><NEW_LINE>final LogicalView rightView = (LogicalView) call.rels[2];<NEW_LINE>...
LogicalView) call.rels[1];
166,481
private void bindGallery(@NonNull final ViewHolder holder, int position, LocalGallery ent) {<NEW_LINE>if (holder.flag != null)<NEW_LINE>holder.flag.setVisibility(View.GONE);<NEW_LINE>ImageDownloadUtility.loadImage(context, ent.getPage(ent.getMin<MASK><NEW_LINE>holder.title.setText(ent.getTitle());<NEW_LINE>if (colCount...
()), holder.imgView);
124,280
public /*new DependentColumnFilter(Bytes.toBytes("family"), Bytes.toBytes("qualifier"));<NEW_LINE>* public DependentColumnFilter(final byte [] family, final byte[] qualifier,<NEW_LINE>final boolean dropDependentColumn, final CompareOperator valueCompareOp,<NEW_LINE>final ByteArrayComparable valueComparator)*/<NEW_LINE...
(boolean) val[3]);
162,663
public Mono<Long> authorize() {<NEW_LINE>if (hasDisposed.get()) {<NEW_LINE>return Mono.error(new AzureException("Cannot authorize with CBS node when this token manager has been disposed of."));<NEW_LINE>}<NEW_LINE>return cbsNode.flatMap(cbsNode -> cbsNode.authorize(tokenAudience, scopes)).map(expiresOn -> {<NEW_LINE>fi...
, scopes).log("Scheduling refresh token task.");
964,510
final GetExtensionResult executeGetExtension(GetExtensionRequest getExtensionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExtensionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
endClientExecution(awsRequestMetrics, request, response);