idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
153,662 | private static IntrospectedInfo merge(IntrospectedInfo[] proxied) {<NEW_LINE>final IntrospectedInfo ii = new IntrospectedInfo();<NEW_LINE>ChangeListener l = new ChangeListener() {<NEW_LINE><NEW_LINE>public void stateChanged(ChangeEvent ev) {<NEW_LINE>IntrospectedInfo ii2 = (IntrospectedInfo) ev.getSource();<NEW_LINE>ii... | > entries = e.getValue(); |
1,444,787 | public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>MethodSymbol method = ASTHelpers.getSymbol(tree);<NEW_LINE>Type currentClass = getOutermostClass(state);<NEW_LINE>if (method.isStatic() || method.isConstructor() || currentClass == null) {<NEW_LINE>return Description.NO_M... | outermostClass(overriddenMethod).asType(); |
1,808,722 | public void onError(Channel channel, Throwable error) {<NEW_LINE>if (error instanceof OutOfMemoryError) {<NEW_LINE>OutOfMemoryErrorDispatcher<MASK><NEW_LINE>}<NEW_LINE>if (channel == null) {<NEW_LINE>// todo: question is if logging is the best solution. If an exception happened without a channel, it is a pretty<NEW_LIN... | .onOutOfMemory((OutOfMemoryError) error); |
879,197 | private void addMethodArguments(ICodeWriter code, List<RegisterArg> args) {<NEW_LINE>AnnotationMethodParamsAttr paramsAnnotation = mth.get(JadxAttrType.ANNOTATION_MTH_PARAMETERS);<NEW_LINE>int i = 0;<NEW_LINE>Iterator<RegisterArg> it = args.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>RegisterArg mthArg = it.ne... | classGen.useType(code, elType); |
141,140 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String expressRouteGatewayName, String connectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ... | getSubscriptionId(), accept, context); |
1,527,430 | Collection<InferenceVariable> inputVariables(final InferenceContext18 context) {<NEW_LINE>// from 18.5.2.<NEW_LINE>if (this.left instanceof LambdaExpression) {<NEW_LINE>if (this.right instanceof InferenceVariable) {<NEW_LINE>return Collections.singletonList((InferenceVariable) this.right);<NEW_LINE>}<NEW_LINE>if (this.... | withWildCards = InferenceContext18.parameterizedWithWildcard(targetType); |
1,808,761 | /*<NEW_LINE>* @see org.apache.kafka.streams.processor.Processor#process(java.lang.Object,<NEW_LINE>* java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void process(UUID key, GProcessedEventPayload event) {<NEW_LINE>try {<NEW_LINE>// Convert payload to API object.<NEW_LINE>ProcessedEventPayload payload = ... | (IDeviceCommandInvocation) payload.getEvent(); |
142,822 | static void loadCsv(String projectId, String instanceId, String databaseId, String tableName, String filePath, String[] optFlags) throws Exception {<NEW_LINE>SpannerOptions options = SpannerOptions.newBuilder().build();<NEW_LINE>Spanner spanner = options.getService();<NEW_LINE>// Initialize option flags<NEW_LINE>Option... | addOption("e", true, "Character To Escape"); |
1,834,656 | public boolean apply(Game game, Ability source) {<NEW_LINE>List<UUID> perms = new ArrayList<>();<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {<NEW_LINE>Player player =... | addAll(target.getTargets()); |
673,945 | public void paintInstance(InstancePainter painter) {<NEW_LINE>Graphics2D g = <MASK><NEW_LINE>Bounds bds = painter.getInstance().getBounds();<NEW_LINE>int x = bds.getX();<NEW_LINE>int y = bds.getY();<NEW_LINE>painter.drawLabel();<NEW_LINE>g.setColor(Color.BLACK);<NEW_LINE>boolean drawUp;<NEW_LINE>if (painter.getShowStat... | (Graphics2D) painter.getGraphics(); |
414,697 | private void addFloat(int index, float element) {<NEW_LINE>ensureIsMutable();<NEW_LINE>if (index < 0 || index > size) {<NEW_LINE>throw new IndexOutOfBoundsException(makeOutOfBoundsExceptionMessage(index));<NEW_LINE>}<NEW_LINE>if (size < array.length) {<NEW_LINE>// Shift everything over to make room<NEW_LINE>System.arra... | index + 1, size - index); |
236,194 | public static APICreateDataVolumeTemplateFromVolumeEvent __example__() {<NEW_LINE>APICreateDataVolumeTemplateFromVolumeEvent event = new APICreateDataVolumeTemplateFromVolumeEvent();<NEW_LINE>ImageInventory inv = new ImageInventory();<NEW_LINE>inv.setUuid(uuid());<NEW_LINE>ImageBackupStorageRefInventory ref = new Image... | (Collections.singletonList(ref)); |
1,515,336 | private void init(Hashtable toCopy) {<NEW_LINE>super.copy(toCopy);<NEW_LINE>Hashtable f = (Hashtable) toCopy.get("from");<NEW_LINE>if (f != null) {<NEW_LINE>from.copy(f);<NEW_LINE>}<NEW_LINE>iconUrl = (<MASK><NEW_LINE>pictureUrl = (String) toCopy.get("picture");<NEW_LINE>sourceUrl = (String) toCopy.get("source");<NEW_L... | String) toCopy.get("icon"); |
1,307,457 | void doAudit(InstanceConfigAuditModel auditModel) {<NEW_LINE>String instanceCacheKey = assembleInstanceKey(auditModel.getAppId(), auditModel.getClusterName(), auditModel.getIp(), auditModel.getDataCenter());<NEW_LINE>Long instanceId = instanceCache.getIfPresent(instanceCacheKey);<NEW_LINE>if (instanceId == null) {<NEW_... | setConfigClusterName(auditModel.getConfigClusterName()); |
1,208,900 | private static TableScanNode createEnumerable(Compiler compiler, TableScan rel, Enumerable<Row> enumerable, final ImmutableIntList acceptedProjects, List<RexNode> rejectedFilters, final ImmutableIntList rejectedProjects) {<NEW_LINE>if (!rejectedFilters.isEmpty()) {<NEW_LINE>final RexNode filter = RexUtil.composeConjunc... | .getRowType().getFieldList(); |
984,141 | protected Action[] createNewTabActions() {<NEW_LINE>if (tabContext.rerun == null) {<NEW_LINE>tabContext.rerun = new ReRunAction(false);<NEW_LINE>tabContext.rerunDebug = new ReRunAction(true);<NEW_LINE>tabContext.resume = new ResumeAction();<NEW_LINE>tabContext.stop = new StopAction();<NEW_LINE>tabContext.options = new ... | tabContext.resume.setConfig(config); |
486,301 | public static QueryDeviceResponse unmarshall(QueryDeviceResponse queryDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceResponse.setRequestId(_ctx.stringValue("QueryDeviceResponse.RequestId"));<NEW_LINE>queryDeviceResponse.setSuccess(_ctx.booleanValue("QueryDeviceResponse.Success"));<NEW_LINE>queryDeviceR... | ("QueryDeviceResponse.Data[" + i + "].DeviceStatus")); |
1,773,349 | protected void createBundle(final String contextPath, final String actionPath, final String bundleId, final List<String> sources) throws IOException {<NEW_LINE>final File bundleFile = createBundleFile(bundleId);<NEW_LINE>if (bundleFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final StringBand sb = new StringBan... | log.info("Bundle created: " + bundleId); |
1,309,300 | protected Object createFieldReference(Object receiver) throws InvalidInputException {<NEW_LINE>try {<NEW_LINE>// Get receiver type<NEW_LINE>TypeReference typeRef = null;<NEW_LINE>boolean useReceiver = false;<NEW_LINE>if (receiver instanceof JavadocModuleReference) {<NEW_LINE>JavadocModuleReference jRef = (JavadocModule... | , this.identifierPositionStack[0]); |
1,521,668 | private Mono<PagedResponse<PasswordCredentialInner>> listPasswordCredentialsSinglePageAsync(String objectId, String tenantId, 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."... | this.client.mergeContext(context); |
1,097,371 | public void actionPerformed(ActionEvent e) {<NEW_LINE>String str = e.getActionCommand();<NEW_LINE>if (str.equals("pack")) {<NEW_LINE>packDbg();<NEW_LINE>} else {<NEW_LINE>// Open: "showzip" - zipped file folder<NEW_LINE>// not "showzip" - one of the listed files<NEW_LINE>File file = str.equals("showzip") ? new File(zip... | ("TracesTab.6"), JOptionPane.ERROR_MESSAGE); |
1,177,171 | public ListEntityRecognizersResult listEntityRecognizers(ListEntityRecognizersRequest listEntityRecognizersRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEntityRecognizersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe... | JsonUnmarshallerContext> unmarshaller = new ListEntityRecognizersResultJsonUnmarshaller(); |
1,499,786 | public String sendMessage(TUIMessageBean messageInfo, boolean isGroup, String id, OfflinePushInfo offlinePushInfo, IUIKitCallback<TUIMessageBean> callBack) {<NEW_LINE>V2TIMMessage forwardMessage = messageInfo.getV2TIMMessage();<NEW_LINE>forwardMessage.setExcludedFromUnreadCount(TUIChatConfigs.getConfigs().<MASK><NEW_LI... | getGeneralConfig().isExcludedFromUnreadCount()); |
543,742 | public void run() {<NEW_LINE>try {<NEW_LINE>if (zipFilename != null) {<NEW_LINE>parser = ParserGrammar.loadModelFromZip(zipFilename, filename);<NEW_LINE>} else {<NEW_LINE>parser = ParserGrammar.loadModel(filename);<NEW_LINE>}<NEW_LINE>} catch (Exception ex) {<NEW_LINE>JOptionPane.showMessageDialog(ParserPanel.this, "Er... | parserFileLabel.setText("Parser: " + filename); |
1,764,286 | protected void readDiversifications() {<NEW_LINE>if (suspendDivs()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>storage_mon.enter();<NEW_LINE>Map map = readMapFromFile("diverse");<NEW_LINE>List keys = (List) map.get("local");<NEW_LINE>if (keys != null) {<NEW_LINE>long now = SystemTime.getCurrentTime();<NEW_LI... | long now = SystemTime.getCurrentTime(); |
968,663 | private VideoTranscodingSettings createVideoTranscodingSettings(MediaFile file, HttpServletRequest request) throws ServletRequestBindingException {<NEW_LINE>Integer existingWidth = file.getWidth();<NEW_LINE>Integer existingHeight = file.getHeight();<NEW_LINE>Integer maxBitRate = <MASK><NEW_LINE>int timeOffset = Servlet... | ServletRequestUtils.getIntParameter(request, "maxBitRate"); |
1,714,024 | private ParseResult<String> parseQuotedString(int startPosition, int endPosition) {<NEW_LINE>startPosition = trimLeftWhitespace(startPosition, endPosition);<NEW_LINE>endPosition = trimRightWhitespace(startPosition, endPosition);<NEW_LINE>if (!startsAndEndsWith(startPosition, endPosition, '"', '"')) {<NEW_LINE>logError(... | stringTokenCount = charsInRange(stringStart, stringEnd); |
737,843 | public static void customize(Breakpoint b) {<NEW_LINE>JComponent c = getCustomizerComponent(b);<NEW_LINE>HelpCtx helpCtx = HelpCtx.findHelp(c);<NEW_LINE>if (helpCtx == null) {<NEW_LINE>// NOI18N<NEW_LINE>helpCtx = new HelpCtx("debug.add.breakpoint");<NEW_LINE>}<NEW_LINE>Controller cc;<NEW_LINE>if (c instanceof Controll... | = new Controller[] { cc }; |
386,019 | public static CronExpression valueOf(@NonNull String string) throws ParseException {<NEW_LINE>if (string.length() == 0) {<NEW_LINE>throw new ParseException("Cron expression is empty", -1);<NEW_LINE>}<NEW_LINE>if (string.charAt(0) == '@') {<NEW_LINE>// Parse predefined<NEW_LINE>final String substr = string.substring(1);... | ] fields = new Field[6]; |
1,803,672 | private static TypeSignature toTypeSignature(GenericDataType type, Set<String> typeVariables) {<NEW_LINE>ImmutableList.Builder<TypeSignatureParameter> parameters = ImmutableList.builder();<NEW_LINE>if (type.getName().getValue().equalsIgnoreCase(StandardTypes.VARCHAR) && type.getArguments().isEmpty()) {<NEW_LINE>// We t... | Long.parseLong(value))); |
692,763 | final DescribeFpgaImagesResult executeDescribeFpgaImages(DescribeFpgaImagesRequest describeFpgaImagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFpgaImagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2"); |
1,210,208 | public void checkAndDoUpdate() throws UserException {<NEW_LINE>Database database = Env.<MASK><NEW_LINE>if (database == null) {<NEW_LINE>if (!isCompleted()) {<NEW_LINE>String msg = "The database has been deleted. Change job state to cancelled";<NEW_LINE>LOG.warn(new LogBuilder(LogKey.SYNC_JOB, id).add("database", dbId).... | getCurrentInternalCatalog().getDbNullable(dbId); |
513,561 | public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>describeRegionsResponse.setCode(_ctx.integerValue("DescribeRegionsResponse.Code"));... | ("DescribeRegionsResponse.Regions[" + i + "].RegionId")); |
1,160,784 | public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceAccountList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1.ServiceAccountList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>if (itemsBuilder_ == ... | bitField0_ = (bitField0_ & ~0x00000002); |
632,417 | private void collapseChildren(int position) {<NEW_LINE>mVisibleComments.get(position).setExpanded(false);<NEW_LINE>int depth = mVisibleComments.get(position).getDepth();<NEW_LINE>int allChildrenSize = 0;<NEW_LINE>for (int i = position + 1; i < mVisibleComments.size(); i++) {<NEW_LINE>if (mVisibleComments.get(i).getDept... | notifyItemRangeRemoved(position + 2, allChildrenSize); |
1,740,890 | private static AccessToken createAccessToken() {<NEW_LINE>// Generate a public/private key pair. This is used to protect the token<NEW_LINE>// from replay attacks. A client must prove possession of the private<NEW_LINE>// key in order to access the database using the token.<NEW_LINE>final KeyPair keyPair;<NEW_LINE>try ... | ), keyPair.getPrivate()); |
1,395,622 | // Search Jobs using custom rankings.<NEW_LINE>public static void searchCustomRankingJobs(String projectId, String tenantId) throws IOException {<NEW_LINE>// Initialize client that will be used to send requests. This client only needs to be created<NEW_LINE>// once, and can be reused for multiple requests. After comple... | Job job = responseItem.getJob(); |
1,013,275 | public List<String> checkForBadges(Profile authUser, HttpServletRequest req) {<NEW_LINE>List<String> badgelist = new ArrayList<String>();<NEW_LINE>if (authUser != null && !isAjaxRequest(req)) {<NEW_LINE>long oneYear = authUser.getTimestamp() + (365 * 24 * 60 * 60 * 1000);<NEW_LINE>addBadgeOnce(authUser, Profile.Badge.E... | .getTimestamp()) >= oneYear); |
1,315,411 | public CommitTransactionRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CommitTransactionRequest commitTransactionRequest = new CommitTransactionRequest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | class).unmarshall(context)); |
973,947 | // metas: us025b<NEW_LINE>@Override<NEW_LINE>public void createCashStatementLine(final I_C_Payment payment) {<NEW_LINE>final IBankStatementPaymentBL bankStatmentPaymentBL = Services.get(IBankStatementPaymentBL.class);<NEW_LINE>final I_C_BankStatement bs = getCreateCashStatement(payment);<NEW_LINE>final BankStatementId ... | statementAmt = paymentDirection.convertPayAmtToStatementAmt(paymentAmt); |
982,716 | private void applyReturnTypeOverride(OperationContext context) {<NEW_LINE>ResolvedType returnType = context.alternateFor(context.getReturnType());<NEW_LINE>int httpStatusCode = httpStatusCode(context);<NEW_LINE>String message = message(context);<NEW_LINE>springfox.documentation.schema.ModelReference modelRef = null;<NE... | , viewProvider.viewFor(context)); |
929,686 | public String findCurrentLeader() {<NEW_LINE>Preconditions.checkState(lifecycleLock.awaitStarted(1, TimeUnit.MILLISECONDS));<NEW_LINE>final StringFullResponseHolder responseHolder;<NEW_LINE>try {<NEW_LINE>responseHolder = go(makeRequest(HttpMethod.GET, leaderRequestPath));<NEW_LINE>} catch (Exception ex) {<NEW_LINE><MA... | throw new ISE(ex, "Couldn't find leader."); |
907,280 | public static void main(String[] args) throws ParseException {<NEW_LINE>String date;<NEW_LINE>long time;<NEW_LINE>SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss.S");<NEW_LINE>long cpu = SysJMX.getCurrentThreadCPUnano();<NEW_LINE>for (int i = 0; i < 10000; i++) {<NEW_LINE>date = sdf.format(new Date(Syste... | "SimpleDateFormat.parse " + cpu / 1000000L + " ms"); |
1,131,299 | protected void doExecute(Task task, PutDataFrameAnalyticsAction.Request request, ActionListener<ExplainDataFrameAnalyticsAction.Response> listener) {<NEW_LINE>if (MachineLearningField.ML_API_FEATURE.check(licenseState) == false) {<NEW_LINE>listener.onFailure(LicenseUtils.newComplianceException(XPackField.MACHINE_LEARNI... | explain(task, request, listener); |
276,051 | protected void perform(@Nonnull XDebugSession session, DataContext dataContext) {<NEW_LINE>Editor editor = dataContext.getData(CommonDataKeys.EDITOR);<NEW_LINE>if (editor == null || !(editor instanceof EditorEx)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int selectionStart = editor.getSelectionModel().getSelectionStart();... | , text, (EditorEx) editor); |
1,644,850 | private void sendDocConversionRequestReceived(UploadedPresentation pres) {<NEW_LINE>if (!pres.isConversionStarted()) {<NEW_LINE>Map<String, Object> logData = new HashMap<String, Object>();<NEW_LINE>logData.put("podId", pres.getPodId());<NEW_LINE>logData.put("meetingId", pres.getMeetingId());<NEW_LINE>logData.put("presI... | "current", pres.isCurrent()); |
1,274,328 | public boolean execute(final OHttpRequest iRequest, OHttpResponse iResponse) throws Exception {<NEW_LINE>String[] urlParts = checkSyntax(iRequest.getUrl(), 3, "Syntax error: class/<database>/<class-name>");<NEW_LINE>iRequest.getData().commandInfo = "Returns the information of a class in the schema";<NEW_LINE>iRequest.g... | ).commandDetail = urlParts[2]; |
1,152,405 | public void configure(MessagebusConfig config) {<NEW_LINE>RoutingSpec routing = new RoutingSpec();<NEW_LINE>for (int table = 0; table < config.routingtable().size(); table++) {<NEW_LINE>MessagebusConfig.Routingtable tableConfig = config.routingtable(table);<NEW_LINE>RoutingTableSpec tableSpec = new <MASK><NEW_LINE>for ... | RoutingTableSpec(tableConfig.protocol()); |
333,313 | String tag(String namespace, String local, int type, boolean localIsQname) {<NEW_LINE>String prefix = ns.get(namespace);<NEW_LINE>if (type != FAST && type != FASTATTR) {<NEW_LINE>if ((!localIsQname) && !XMLChar.isValidNCName(local))<NEW_LINE>return <MASK><NEW_LINE>if (namespace.equals(RDFNS)) {<NEW_LINE>// Description,... | splitTag(namespace + local, type); |
1,504,308 | public String completeIt(final DocumentTableFields docFields) {<NEW_LINE>final I_C_RfQResponse rfqResponse = extractRfQResponse(docFields);<NEW_LINE>final List<I_C_RfQResponseLine> rfqResponseLines = rfqDAO.retrieveResponseLines(rfqResponse);<NEW_LINE>validateBeforeComplete(rfqResponse, rfqResponseLines);<NEW_LINE>//<N... | rfqResponse.setDocAction(X_C_RfQResponse.DOCACTION_Close); |
758,726 | public void onResponse(Stream.Client stream, HeadersFrame frame) {<NEW_LINE>HttpExchange exchange = getHttpExchange();<NEW_LINE>if (exchange == null)<NEW_LINE>return;<NEW_LINE>HttpResponse httpResponse = exchange.getResponse();<NEW_LINE>MetaData.Response response = (MetaData.Response) frame.getMetaData();<NEW_LINE>http... | LOG.debug("stalling response processing, no demand after headers on {}", this); |
1,684,896 | public static void applyGamma(Buffer buffer, int depth, int stride, double gamma) {<NEW_LINE>if (gamma == 1.0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(depth) {<NEW_LINE>case Frame.DEPTH_UBYTE:<NEW_LINE>flipCopyWithGamma(((ByteBuffer) buffer).asReadOnlyBuffer(), stride, (ByteBuffer) buffer, stride, false, gamma, f... | true, gamma, false, 0); |
14,273 | public void loadJvmModel() {<NEW_LINE><MASK><NEW_LINE>JavaPlatformAdapter curJvm = (JavaPlatformAdapter) jvmModel.getSelectedItem();<NEW_LINE>String curPlatformName = null;<NEW_LINE>if (curJvm != null) {<NEW_LINE>curPlatformName = curJvm.getName();<NEW_LINE>} else {<NEW_LINE>curPlatformName = (String) tp.getJavaPlatfor... | JavaPlatformManager jpm = JavaPlatformManager.getDefault(); |
75,275 | private String buildPathFromHref(String parentPath, String href) throws UnsupportedEncodingException {<NEW_LINE>String scheme = parentPath.substring(0, parentPath.indexOf("://"));<NEW_LINE>String filename = parentPath.substring(scheme.length() + 3);<NEW_LINE>String userPwd = filename.substring(0, filename.indexOf('@'))... | + password_enc + "@" + host + href; |
1,558,950 | private void handle(CancelAddImageMsg msg) {<NEW_LINE>CancelDownloadImageReply reply = new CancelDownloadImageReply();<NEW_LINE>AddImageMsg amsg = msg.getMsg();<NEW_LINE>List<String> bsUuids = amsg.getBackupStorageUuids();<NEW_LINE>ImageInventory img = ImageInventory.valueOf(dbf.findByUuid(msg.getImageUuid(), ImageVO.c... | setCancellationApiId(msg.getCancellationApiId()); |
1,825,839 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('table') create table MyTable(k string primary key, " + " avgone avg(int), avgtwo avg(int)," + " winone window(*) @type(SupportBean), wintwo window(*) @type(SupportBean)" + ");\n" + "into table MyTable select theString, " + " avg(intPrimitive)... | { s1, s2 } } }); |
159,626 | public Object retrieve() {<NEW_LINE>IRoutingService routing = (IRoutingService) getContext().getAttributes().get(IRoutingService.class.getCanonicalName());<NEW_LINE>DatapathId srcDpid;<NEW_LINE>DatapathId dstDpid;<NEW_LINE>try {<NEW_LINE>srcDpid = DatapathId.of((String) getRequestAttributes().get("src-dpid"));<NEW_LINE... | ).get("dst-port"))); |
1,304,730 | public GenerateDataKeyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GenerateDataKeyResult generateDataKeyResult = new GenerateDataKeyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | JsonToken token = context.getCurrentToken(); |
1,264,828 | static public MPrintFormat createFromReportView(Properties ctx, int AD_ReportView_ID, String ReportName) {<NEW_LINE>MClient company = MClient.get(ctx);<NEW_LINE>s_log.info("AD_ReportView_ID=" + AD_ReportView_ID + " - AD_Client_ID=" + company.get_ID() + " - " + ReportName);<NEW_LINE>MPrintFormat pf = new MPrintFormat(ct... | Level.SEVERE, sql, e); |
295,509 | public LimitedScanResult<List<TransactionId>> scanTraceIndex(final String applicationName, Range range, int limit, boolean scanBackward) {<NEW_LINE>Objects.requireNonNull(applicationName, "applicationName");<NEW_LINE>Objects.requireNonNull(range, "range");<NEW_LINE>if (limit < 0) {<NEW_LINE>throw new IllegalArgumentExc... | getTableName(DESCRIPTOR.getTable()); |
1,814,404 | public String nextClosestTime(String time) {<NEW_LINE>int cur = 60 * Integer.parseInt(time.substring(0, 2));<NEW_LINE>cur += Integer.parseInt(time.substring(3));<NEW_LINE>Set<Integer> allowed = new HashSet();<NEW_LINE>for (char c : time.toCharArray()) {<NEW_LINE>if (c != ':') {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>}<NEW... | allowed.add(c - '0'); |
467,149 | public I_M_ProductScalePrice retrieveOrCreateScalePrices(final int productPriceId, final BigDecimal qty, final boolean createNew, final String trxName) {<NEW_LINE>final PreparedStatement pstmt = <MASK><NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt.setInt(1, productPriceId);<NEW_LINE>pstmt.setBigDecimal(2,... | DB.prepareStatement(SQL_SCALEPRICE_FOR_QTY, trxName); |
1,266,684 | private void checkAuthAttributesNoDuplicates(final Map<String, List<AuthorizationAttribute>> allAttributes) throws UnableProcessException {<NEW_LINE>final String duplicatesErrMessage = allAttributes.entrySet().stream().map(entry -> {<NEW_LINE>final String property = entry.getKey();<NEW_LINE>final List<AuthorizationAttr... | uniqueAttrs.forEach(duplicates::remove); |
1,619,051 | private void displayThreads(PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>try {<NEW_LINE>J9JavaVMPointer vm = J9RASHelper.<MASK><NEW_LINE>J9VMThreadPointer mainThread = vm.mainThread();<NEW_LINE>if (mainThread.notNull()) {<NEW_LINE>J9VMThreadPointer threadCursor = vm.mainThread();<NEW_LINE>do {<NEW_... | getVM(DataType.getJ9RASPointer()); |
535,634 | public boolean enterExportNode(ExportNode exportNode) {<NEW_LINE>final ExportClauseNode exportClause = exportNode.getExportClause();<NEW_LINE>final FromNode from = exportNode.getFrom();<NEW_LINE>final Expression expression = exportNode.getExpression();<NEW_LINE>if (exportClause != null) {<NEW_LINE>for (ExportSpecifierN... | (create(parserResult, local)); |
1,762,087 | private Expression<?> castIfNeeded(Type elementType, Expression<?> symb_value) {<NEW_LINE>// cast integer to real if needed<NEW_LINE>if ((TypeUtil.isFp32(elementType) || TypeUtil.isFp64(elementType)) && symb_value instanceof IntegerValue) {<NEW_LINE>IntegerValue intExpr = (IntegerValue) symb_value;<NEW_LINE>double conc... | .getConcreteValue().doubleValue(); |
1,372,000 | private void editPost() {<NEW_LINE>if (!isSubmitting) {<NEW_LINE>isSubmitting = true;<NEW_LINE>Snackbar.make(coordinatorLayout, R.string.posting, Snackbar.LENGTH_SHORT).show();<NEW_LINE>Map<String, String> params = new HashMap<>();<NEW_LINE>params.put(APIUtils.THING_ID_KEY, mFullName);<NEW_LINE>params.put(APIUtils.TEXT... | Toast.LENGTH_SHORT).show(); |
1,796,105 | final CreateDatasetGroupResult executeCreateDatasetGroup(CreateDatasetGroupRequest createDatasetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDatasetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
750,418 | // end of run<NEW_LINE>private void processExternalFunction(Listing listing, ReferenceManager refMan, Reference[] extRefs, Function extFunc, Parameter[] params, String extFuncName) {<NEW_LINE>for (Reference extRef : extRefs) {<NEW_LINE>Address refAddr = extRef.getFromAddress();<NEW_LINE>String refMnemonic = listing.get... | thunkRefFunc = listing.getFunctionContaining(thunkRefAddr); |
904,778 | public void renamePanel(AbstractParamPanel panel, String newPanelName) {<NEW_LINE>DefaultMutableTreeNode node = getTreeNodeFromPanelName(<MASK><NEW_LINE>DefaultMutableTreeNode newNode = getTreeNodeFromPanelName(newPanelName, true);<NEW_LINE>if (node != null && newNode == null) {<NEW_LINE>// TODO work out which of these... | panel.getName(), true); |
448,990 | private static Map<Integer, Comparable[]> generateAllInputArrays(int largeArraySize) {<NEW_LINE>Map<Integer, Comparable[]> <MASK><NEW_LINE>Comparable[] arrayGaussianDistribution = Exercise35_NonuniformDistributions.generateGaussianDistributionArray(largeArraySize);<NEW_LINE>allInputArrays.put(0, arrayGaussianDistributi... | allInputArrays = new HashMap<>(); |
647,246 | public okhttp3.Call listGroupPoliciesCall(String groupId, String prefix, String after, Integer amount, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/auth/groups/{groupId}/policies".replaceAll("\\{" +... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
1,289,338 | private void initUi() {<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>appVersion.<MASK><NEW_LINE>linkChangelog.setDescription(ApplicationUtils.getAppVersion());<NEW_LINE>ArrayList<Contributor> contributors = new ArrayList<>(1);<NEW_LINE>Contributor calvin = new Contributor(getString(R.string.developer_calvin_name), g... | setText(ApplicationUtils.getAppVersion()); |
1,280,858 | void precheckMaxResultLimitOnLocalPartitions(String mapName) {<NEW_LINE>// check if feature is enabled<NEW_LINE>if (!isPreCheckEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// limit number of local partitions to check to keep runtime constant<NEW_LINE>PartitionIdSet localPartitions = mapServiceContext.getOrInitCached... | localPartitions.size(), maxLocalPartitionsLimitForPreCheck); |
1,078,442 | protected void scheduleDoConnect(boolean immediate) {<NEW_LINE>long jitter = immediate ? 50 : Math.max(50, RECONNECT_DELAY_JITTER_MILLIS);<NEW_LINE>long delay = immediate ? 50 : <MASK><NEW_LINE>long maxDelay = immediate ? 51 : Math.max(delay + 1, Math.max(50, RECONNECT_DELAY_MAX_MILLIS));<NEW_LINE>RetryPolicy<Object> r... | Math.max(50, RECONNECT_DELAY_INITIAL_MILLIS); |
1,851,682 | public static DescribeColumnsResponse unmarshall(DescribeColumnsResponse describeColumnsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeColumnsResponse.setRequestId(_ctx.stringValue("DescribeColumnsResponse.RequestId"));<NEW_LINE>describeColumnsResponse.setCurrentPage(_ctx.integerValue("DescribeColumnsResponse.C... | ("DescribeColumnsResponse.Items[" + i + "].RevisionId")); |
1,640,911 | private void visitName(NodeTraversal t, Node n, Node parent) {<NEW_LINE>String name = n.getString();<NEW_LINE>// Ignore anonymous functions<NEW_LINE>if (parent.isFunction() && name.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isExternVar(name, t)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// When the globalSymbol... | n.setString(name + DISAMBIGUATION_SUFFIX); |
828,873 | protected void runGroupSynchronization(MapMarkersGroup group) {<NEW_LINE>List<MapMarker> existingMarkers = new ArrayList<>();<NEW_LINE>List<MapMarker> groupMarkers = new ArrayList<<MASK><NEW_LINE>if (group.getType() == ItineraryType.FAVOURITES) {<NEW_LINE>syncFavouriteGroup(group, existingMarkers);<NEW_LINE>} else if (... | >(group.getMarkers()); |
698,333 | private void loadUri(Uri uri) {<NEW_LINE>showFloatingActionButton(false);<NEW_LINE>if (mTaskUri != null) {<NEW_LINE>mAppContext.getContentResolver().unregisterContentObserver(mObserver);<NEW_LINE>persistTask();<NEW_LINE>}<NEW_LINE>Uri oldUri = mTaskUri;<NEW_LINE>mTaskUri = uri;<NEW_LINE>if (uri != null) {<NEW_LINE>mCon... | addOnChangeListener(this, null, true); |
1,407,874 | protected void updateProfileButton() {<NEW_LINE>View view = getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>View profileButton = view.findViewById(R.id.profile_button);<NEW_LINE>if (profileButton != null && currentScreenType != null) {<NEW_LINE>int toolbarRes = currentScreenType.toolbarResI... | ColorUtilities.getColorWithAlpha(iconColor, 0.3f); |
1,244,231 | final CreateConnectionResult executeCreateConnection(CreateConnectionRequest createConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,442,918 | private boolean buildTree() {<NEW_LINE>InspectionProfile profile = myInspectionProfile;<NEW_LINE>boolean isGroupedBySeverity = myGlobalInspectionContext.getUIOptions().GROUP_BY_SEVERITY;<NEW_LINE>myGroups = new HashMap<HighlightDisplayLevel, Map<String, InspectionGroupNode>>();<NEW_LINE>final Map<String, Tools> tools =... | myProject), myProject), isGroupedBySeverity); |
5,505 | private String assertContent(SubmitContext context, String content, String type) throws AssertionException {<NEW_LINE>if (token == null) {<NEW_LINE>token = "";<NEW_LINE>}<NEW_LINE>if (content == null) {<NEW_LINE>content = "";<NEW_LINE>}<NEW_LINE>String replToken = PropertyExpander.expandProperties(context, token);<NEW_... | ) : content.indexOf(replToken); |
1,502,695 | public ResponseEntity<Void> deleteOrderWithHttpInfo(String orderId) throws RestClientException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'orderId' is set<NEW_LINE>if (orderId == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required p... | uriVariables.put("order_id", orderId); |
200,889 | protected AudioInputStream generateAudioStream(List<SelectedUnit> units) throws IOException {<NEW_LINE>// gather arguments for FDPSOLA processing:<NEW_LINE>// Datagram[][] datagrams = getDatagrams(units);<NEW_LINE>// Datagram[] rightContexts = getRightContexts(units);<NEW_LINE>// boolean[][] voicings = getVoicings(unit... | [] pscales = getRealizedPitchScales(realizedPhones); |
1,304,792 | final ModifyWorkspaceAccessPropertiesResult executeModifyWorkspaceAccessProperties(ModifyWorkspaceAccessPropertiesRequest modifyWorkspaceAccessPropertiesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyWorkspaceAccessPropertiesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,448,151 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.editor.js.parsing.ast.JSTreeWalker#visit(com.aptana.editor.js.parsing.ast.JSForInNode)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visit(JSForInNode node) {<NEW_LINE>JSNode expression = (JSNode) node.getExpression();<NEW_LINE>JSNode initializer = (JSNode) n... | getRightParenthesis().getStart()); |
739,592 | public ObjectNode detail(HttpServletRequest request) throws Exception {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>String serviceName = WebUtils.required(request, CommonParams.SERVICE_NAME);<NEW_LINE>NamingUtils.checkServiceNameFormat(se... | result.put("service", serviceName); |
195,795 | private String addWorkflowStep(DotConnect dc, String schemeID, String stepName, String order, String resolved, String escalationEnabled) throws DotDataException, SQLException {<NEW_LINE>dc.setSQL("SELECT id FROM workflow_step WHERE scheme_id = ? AND name = '" + stepName + "'");<NEW_LINE>dc.addParam(schemeID);<NEW_LINE>... | String, String>> results = null; |
1,001,960 | public boolean execute(final OHttpRequest iRequest, OHttpResponse iResponse) throws Exception {<NEW_LINE>checkSyntax(iRequest.<MASK><NEW_LINE>iRequest.getData().commandInfo = "Import database";<NEW_LINE>try {<NEW_LINE>final String url = iRequest.getContent();<NEW_LINE>final String name = getDbName(url);<NEW_LINE>if (na... | getUrl(), 1, "Syntax error: installDatabase"); |
1,195,368 | public Void methodMissing(String name, Object argsObj) {<NEW_LINE>Object[] args = (Object[]) argsObj;<NEW_LINE>if (args.length == 1 && args[0] instanceof Class<?>) {<NEW_LINE>Class<? extends I> itemType = uncheckedCast(args[0]);<NEW_LINE>create(name, itemType);<NEW_LINE>} else if (args.length == 2 && args[0] instanceof... | create(name, itemType, closure); |
521,810 | public <T> Optional<ArgumentBinder<T, WebSocketState>> findArgumentBinder(Argument<T> argument, WebSocketState source) {<NEW_LINE>Optional<ArgumentBinder<T, HttpRequest<?>>> argumentBinder = requestBinderRegistry.findArgumentBinder(argument, source.getOriginatingRequest());<NEW_LINE>if (argumentBinder.isPresent()) {<NE... | .getSession().getUriVariables(); |
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... | "x-code", "200").build(); |
1,337,760 | final ListRestoreJobsResult executeListRestoreJobs(ListRestoreJobsRequest listRestoreJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRestoreJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
330,229 | public float dragToProgress(float currentProgress, int baseW, int baseH, float dx, float dy) {<NEW_LINE>if (mOnSwipe == null || mOnSwipe.mAnchorId == null) {<NEW_LINE>WidgetState w = mState.values().stream().findFirst().get();<NEW_LINE>return -dy / w.mParentHeight;<NEW_LINE>}<NEW_LINE>WidgetState base = mState.get(mOnS... | 1]) / motionDpDt[1]; |
221,495 | private static void runAssertionPartitionAddRemoveListener(RegressionEnvironment env, String eplContext, String contextName) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('ctx') @public " + eplContext, path);<NEW_LINE>env.compileDeploy("@name('s0') context " + contextName + " ... | .runtime().getContextPartitionService(); |
837,870 | private void updateSegmentLineageEntryToReverted(String tableNameWithType, SegmentLineage segmentLineage, String segmentLineageEntryId, LineageEntry lineageEntry) {<NEW_LINE>// Check that all segments from 'segmentsFrom' are in ONLINE state in the external view.<NEW_LINE>Set<<MASK><NEW_LINE>Preconditions.checkArgument(... | String> onlineSegments = getOnlineSegmentsFromExternalView(tableNameWithType); |
1,519,066 | protected void execute(Terminal terminal, OptionSet options) throws Exception {<NEW_LINE>if (subcommands.isEmpty()) {<NEW_LINE>throw new IllegalStateException("No subcommands configured");<NEW_LINE>}<NEW_LINE>// .values(...) returns an unmodifiable list<NEW_LINE>final List<String> args = new ArrayList<>(arguments.value... | subcommandName = args.remove(0); |
1,557,324 | protected Handlers createHandlers(Config config) {<NEW_LINE>LoggingOptions loggingOptions = new LoggingOptions(config);<NEW_LINE>Tracer tracer = loggingOptions.getTracer();<NEW_LINE>NetworkOptions networkOptions = new NetworkOptions(config);<NEW_LINE>HttpClient.Factory clientFactory = networkOptions.getHttpClientFactor... | fromUri(newSessionQueueOptions.getSessionQueueUri()); |
1,502,501 | public int compareTo(Node other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.<MASK><NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetNodeId(), other.isSetNodeId());<NEW_LINE>if (lastComparison != 0) {<NEW... | getClass().getName()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.