idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
118,016 | final ListWebhooksResult executeListWebhooks(ListWebhooksRequest listWebhooksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listWebhooksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,536,786 | protected void visitDiscrepancies(DiscrepancyCallback discrepancy) {<NEW_LINE>try {<NEW_LINE>Deque<ResourceFile> stack = new ArrayDeque<>();<NEW_LINE>ResourceFile sourceDir = getSourceDirectory();<NEW_LINE>// start in the source directory root<NEW_LINE>stack.add(sourceDir);<NEW_LINE>while (!stack.isEmpty()) {<NEW_LINE>... | ClassMapper mapper = new ClassMapper(binarySubdir); |
1,190,394 | private HttpRequest transform(HttpRequest request) {<NEW_LINE>// Strip the prefix from the existing request and forward it.<NEW_LINE>String unprefixed = hasPrefix(request) ? request.getUri().substring(prefix.length(<MASK><NEW_LINE>HttpRequest toForward = new HttpRequest(request.getMethod(), unprefixed);<NEW_LINE>reques... | )) : request.getUri(); |
608,446 | private void pull() {<NEW_LINE>if (inFlight.size() >= MAX_IN_FLIGHT) {<NEW_LINE>// Wait for checkpoint to be finalized before pulling anymore.<NEW_LINE>// There may be lag while checkpoints are persisted and the finalizeCheckpoint method<NEW_LINE>// is invoked. By limiting the in-flight messages we can ensure we don't ... | numEmptyReceives.add(requestTimeMsSinceEpoch, 1L); |
1,208,070 | private boolean postIbexObjectiveFunction(Model model, List<String> vars, List<Number> coefs, Number rhs, Number rng, boolean maximize, boolean foundObj) {<NEW_LINE>if (foundObj) {<NEW_LINE>throw new ParserException("More than one objective function found");<NEW_LINE>} else if (rng != null) {<NEW_LINE>throw new ParserE... | (j).doubleValue()); |
1,822,982 | public OAIRecord findOAIRecordBySetNameandGlobalId(String setName, String globalId) {<NEW_LINE>OAIRecord oaiRecord = null;<NEW_LINE>String queryString = "SELECT object(h) from OAIRecord h where h.globalId = :globalId";<NEW_LINE>// and h.setName is null";<NEW_LINE>queryString += setName != null ? " and h.setName = :setN... | setMaxResults(1).getSingleResult(); |
33,679 | public Void visitNewAnonymousClassInstance(NewAnonymousClassInstance naci) {<NEW_LINE>if (naci.qualification != null) {<NEW_LINE>Unparser.this.unparseLhs(naci.qualification, ".");<NEW_LINE>Unparser.this.pw.print('.');<NEW_LINE>}<NEW_LINE>Unparser.this.pw.print("new " + naci.anonymousClassDeclaration.<MASK><NEW_LINE>for... | baseType.toString() + '('); |
787,078 | final ListProfilingGroupsResult executeListProfilingGroups(ListProfilingGroupsRequest listProfilingGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProfilingGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
1,789,016 | public StringBuilder appendTo(final StringBuilder builder) {<NEW_LINE>builder.append('(');<NEW_LINE>// Token{signal=BEGIN_FIELD, name='learningRate', description='null', id=401, version=0, encodedLength=0, offset=0, componentTokenCount=3, encoding=Encoding{presence=REQUIRED, primitiveType=null, byteOrder=LITTLE_ENDIAN,... | builder.length() - 1); |
778,630 | void cacheBeanUpdate(String key, Map<String, Object> changes, boolean updateNaturalKey, long version) {<NEW_LINE>ServerCache cache = getBeanCache();<NEW_LINE>CachedBeanData existingData = (<MASK><NEW_LINE>if (existingData != null) {<NEW_LINE>long currentVersion = existingData.getVersion();<NEW_LINE>if (version > 0 && v... | CachedBeanData) cache.get(key); |
1,521,378 | public boolean doConnectionCleanup(java.sql.Connection conn) throws SQLException {<NEW_LINE>if (dataStoreHelper != null)<NEW_LINE>return doConnectionCleanupLegacy(conn);<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "doConnectionCleanup");<NEW_LINE>SQLWarning warn... | this, tc, "doConnectionCleanup(): cleanup of warnings failed", se); |
181,121 | private static BufferedImage copy(Image image) {<NEW_LINE>int width = image.getWidth(null);<NEW_LINE>int height = image.getHeight(null);<NEW_LINE>BufferedImage copy;<NEW_LINE>try {<NEW_LINE>PixelGrabber pg = new PixelGrabber(image, 0, 0, 1, 1, false);<NEW_LINE>pg.grabPixels();<NEW_LINE>ColorModel cm = pg.getColorModel(... | g2.setComposite(AlphaComposite.Src); |
721,370 | public CompletableFuture<ExecutionResult> execute(Document document, GraphQLSchema graphQLSchema, ExecutionId executionId, ExecutionInput executionInput, InstrumentationState instrumentationState) {<NEW_LINE>NodeUtil.GetOperationResult getOperationResult = NodeUtil.getOperation(document, executionInput.getOperationName... | > variableDefinitions = operationDefinition.getVariableDefinitions(); |
1,251,883 | private final void updateIfStale() {<NEW_LINE>if (!_stale) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final HUReceiptLinePartAttributes attributes = getAttributes();<NEW_LINE>//<NEW_LINE>// Qty & Quality<NEW_LINE>final Percent qualityDiscountPercent = Percent.of(attributes.getQualityDiscountPercent());<NEW_LINE>final Recei... | get().getUomId()); |
696,140 | public static void checkNull(CheckNullObject ob) {<NEW_LINE>if (ob.getCheckObject() == null) {<NEW_LINE>throw new AppException(AppErrorCode.INVALID_USER_ARGS, String.format("actionName=%s|%s is NULL!", ob.getActionName(), ob.getObjectName()));<NEW_LINE>}<NEW_LINE>if (ob.getFields() != null && ob.getFields().size() > 0)... | .getObjectName(), attr)); |
1,325,818 | public void onTrainingEnd(Trainer trainer) {<NEW_LINE>Metrics metrics = trainer.getMetrics();<NEW_LINE>if (metrics == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float p50;<NEW_LINE>float p90;<NEW_LINE>if (metrics.hasMetric("train")) {<NEW_LINE>// possible no train metrics if only one iteration is executed<NEW_LINE>p5... | ().longValue() / 1_000_000f; |
1,670,683 | protected void initTemplates() {<NEW_LINE>fmConfig = new Configuration();<NEW_LINE>fmConfig.setObjectWrapper(new DefaultObjectWrapper());<NEW_LINE>fmConfig.setClassForTemplateLoading(getClass(), "");<NEW_LINE>try {<NEW_LINE>ClassLoader loader = getClass().getClassLoader();<NEW_LINE>String templatePackage = "org/appcele... | new InputStreamReader(v8HeaderStream), fmConfig); |
386,267 | private void initializeData(ImageData<BufferedImage> imageData) {<NEW_LINE>if (this.imageData != imageData) {<NEW_LINE>if (this.imageData != null)<NEW_LINE>this.imageData.getHierarchy().removePathObjectListener(this);<NEW_LINE>this.imageData = imageData;<NEW_LINE>if (imageData != null) {<NEW_LINE>imageData.getHierarchy... | await(10, TimeUnit.SECONDS); |
860,335 | public static ListUserHistoryProducesResponse unmarshall(ListUserHistoryProducesResponse listUserHistoryProducesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserHistoryProducesResponse.setRequestId(_ctx.stringValue("ListUserHistoryProducesResponse.RequestId"));<NEW_LINE>listUserHistoryProducesResponse.setPageNum(... | (_ctx.integerValue("ListUserHistoryProducesResponse.TotalItemNum")); |
1,572,628 | public static Number aggregate(Collection<Number> source, Expression<?> expr, Operator aggregator) {<NEW_LINE>// This is a number expression<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Class<Number> numberType = (Class<Number>) expr.getType();<NEW_LINE>if (aggregator == Ops.AggOps.AVG_AGG) {<NEW_LINE>Number sum = ... | = new HashSet<>(source); |
1,626,272 | public DataStream addBackingIndex(Metadata clusterMetadata, Index index) {<NEW_LINE>// validate that index is not part of another data stream<NEW_LINE>final var parentDataStream = clusterMetadata.getIndicesLookup().get(index.getName()).getParentDataStream();<NEW_LINE>if (parentDataStream != null) {<NEW_LINE>if (parentD... | , parentDataStream.getName())); |
1,671,231 | public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass oAuthServer = schema.createEClass("store", "OAuthServer");<NEW_LINE>schema.createEAttribute(oAuthServer, "registrationUrl", EcorePackage.eINSTANCE.getEString());<NEW_LINE>schema.addIndex(schema.createEAttribute(oAuthServer, "clientId"... | schema.createEClass("store", "Authorization"); |
745,479 | public static <F, T> ImmutableMap<F, T> readAttributes(Iterable<F> files, AttributeReader<F, T> attributeReader, ListeningExecutorService executor) throws InterruptedException, ExecutionException {<NEW_LINE>List<ListenableFuture<FilePair<F, T>>> futures = Lists.newArrayList();<NEW_LINE>for (F file : files) {<NEW_LINE>f... | FilePair<>(file, attribute); |
381,351 | public List<JdbcSession> extractData(ResultSet rs) throws SQLException, DataAccessException {<NEW_LINE>List<JdbcSession> sessions = new ArrayList<>();<NEW_LINE>while (rs.next()) {<NEW_LINE>String id = rs.getString("SESSION_ID");<NEW_LINE>JdbcSession session;<NEW_LINE>if (sessions.size() > 0 && getLast(sessions).getId()... | rs.getInt("MAX_INACTIVE_INTERVAL"))); |
314,997 | private static Map<String, Set<String>> convertKeymap(List<MultiKeyBinding> keyBindings) {<NEW_LINE>Map<String, Set<String>> actionNameToShortcuts = new HashMap<String, Set<String>>();<NEW_LINE>for (int i = 0; i < keyBindings.size(); i++) {<NEW_LINE>MultiKeyBinding mkb = keyBindings.get(i);<NEW_LINE>StringBuilder sb = ... | get(mkb.getActionName()); |
827,915 | public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>List<Property> productOptionProperties = getProductOptionProperties(entity);<NEW_LINE>// Verify that... | associateProductOptionValuesToSku(entity, adminInstance, dynamicEntityDao); |
883,869 | public boolean createObject(Map<FieldDef, String> newData) throws SQLException {<NEW_LINE>List<Object> insertData = new ArrayList<>();<NEW_LINE>StringBuffer insertColumnBuffer = new StringBuffer();<NEW_LINE>StringBuffer insertParamsBuffer = new StringBuffer();<NEW_LINE>defToMap(newData).forEach((key, value) -> {<NEW_LI... | , value.toString())); |
1,002,967 | public void run() {<NEW_LINE>if (AppState.get().proxyEnable && TxtUtils.isNotEmpty(AppState.get().proxyServer) && AppState.get().proxyPort != 0) {<NEW_LINE>Type http = AppState.PROXY_SOCKS.equals(AppState.get().proxyType) ? Type.SOCKS : Type.HTTP;<NEW_LINE>LOG.d("Proxy: Server", http.name(), AppState.get().proxyServer,... | get().proxyPort))); |
1,412,858 | public OAuthResult validateMisc(HttpServletRequest request, OidcBaseClient client, String grantType, AttributeList attrList) throws OidcServerException {<NEW_LINE>try {<NEW_LINE>if (OAuth20Constants.GRANT_TYPE_IMPLICIT.equals(grantType)) {<NEW_LINE>// ignore resource parameter if it's not an implicit request.<NEW_LINE>... | (String) e.nextElement(); |
982,234 | private void createActions() {<NEW_LINE>refreshAction = new DockingAction("Refresh Strings", getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isEnabledForContext(ActionContext context) {<NEW_LINE>return getCurrentProgram() != null;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerf... | new HelpLocation("ViewStringsPlugin", "Refresh")); |
424,339 | // @formatter:on<NEW_LINE>@Eject(method = "fill", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/storage/loot/LootTable;getRandomItems(Lnet/minecraft/world/level/storage/loot/LootContext;)Ljava/util/List;"))<NEW_LINE>private List<ItemStack> arclight$nonPluginEvent(LootTable lootTable, LootContext conte... | list = lootTable.getRandomItems(context); |
1,814,947 | private static IntermediateOperation importOperation(String name, Onnx.GraphProto onnxGraph, IntermediateGraph intermediateGraph) {<NEW_LINE>if (intermediateGraph.alreadyImported(name)) {<NEW_LINE>return intermediateGraph.get(name);<NEW_LINE>}<NEW_LINE>IntermediateOperation operation;<NEW_LINE>if (isArgumentTensor(name... | intermediateGraph.put(name, operation); |
1,733,775 | public ProgressInfo dump(Result result, ExportFileManager writer, Reporter reporter, ExportConfig config) {<NEW_LINE>try (Transaction tx = db.beginTx();<NEW_LINE>PrintWriter printWriter = writer.getPrintWriter("csv")) {<NEW_LINE>CSVWriter out = getCsvWriter(printWriter, config);<NEW_LINE>String[] <MASK><NEW_LINE>String... | header = writeResultHeader(result, out); |
407,259 | private static URL computeCoreUrl() {<NEW_LINE>URL from;<NEW_LINE>String findBugsClassFile = ClassName.toSlashedClassName(FindBugs.class) + ".class";<NEW_LINE>URL me = FindBugs.class.<MASK><NEW_LINE>LOG.debug("FindBugs.class loaded from {}", me);<NEW_LINE>if (me == null) {<NEW_LINE>throw new IllegalStateException("Fail... | getClassLoader().getResource(findBugsClassFile); |
1,768,590 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString", "intPrimitive" };<NEW_LINE>String statementText = "@name('s0') select distinct theString, intPrimitive from SupportBean#length_batch(3)";<NEW_LINE>env.compileDeploy(statementText).addListener("s0");<NEW_LINE>env.sendEven... | new SupportBean("E2", 3)); |
1,374,328 | final DescribeExportResult executeDescribeExport(DescribeExportRequest describeExportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
309,813 | public final Object read(final InputStream is) {<NEW_LINE>int states = 0;<NEW_LINE>int[] items;<NEW_LINE>double[] pi = null;<NEW_LINE>Matrix transitionProbability = null;<NEW_LINE>Map<String, String> properties = null;<NEW_LINE>List<StateDistribution> distributions = new ArrayList<StateDistribution>();<NEW_LINE>final E... | setTransitionProbability(transitionProbability.getData()); |
1,223,871 | public static TypeMirror greatestLowerBound(TypeMirror tm1, TypeMirror tm2, ProcessingEnvironment processingEnv) {<NEW_LINE>Type <MASK><NEW_LINE>Type t2 = TypeAnnotationUtils.unannotatedType(tm2);<NEW_LINE>JavacProcessingEnvironment javacEnv = (JavacProcessingEnvironment) processingEnv;<NEW_LINE>com.sun.tools.javac.cod... | t1 = TypeAnnotationUtils.unannotatedType(tm1); |
595,604 | public ServiceResult initialize(final StructrServices services, String serviceName) throws ClassNotFoundException, InstantiationException, IllegalAccessException {<NEW_LINE>final String taskList = Settings.CronTasks.getValue();<NEW_LINE>if (StringUtils.isNotBlank(taskList)) {<NEW_LINE>for (String task : taskList.split(... | getValue().toString()); |
1,187,961 | @RequestMapping(value = "/settings/testMail", method = RequestMethod.POST)<NEW_LINE>public void sendTestMail(@ApiParam(value = "A JSON value representing the Mail Settings.") @RequestBody AdminSettings adminSettings) throws ThingsboardException {<NEW_LINE>try {<NEW_LINE>accessControlService.checkPermission(getCurrentUs... | Resource.ADMIN_SETTINGS, Operation.READ); |
1,687,616 | public void onBindViewHolder(PreferenceViewHolder holder) {<NEW_LINE>super.onBindViewHolder(holder);<NEW_LINE>boolean hasSettings = mSettingsInfo != null;<NEW_LINE>holder.findViewById(R.id.settings).setVisibility(hasSettings ? VISIBLE : GONE);<NEW_LINE>holder.findViewById(R.id.divider).setVisibility(hasSettings ? VISIB... | mSettingsInfo.activityInfo.name))); |
24,603 | public boolean execute() {<NEW_LINE>MeasurementEditingContext editingCtx = getEditingCtx();<NEW_LINE>oldPoints = new ArrayList<>(editingCtx.getPoints());<NEW_LINE>oldRoadSegmentData = editingCtx.getRoadSegmentData();<NEW_LINE>newPoints = new ArrayList<>(oldPoints.size());<NEW_LINE>for (int i = oldPoints.size() - 1; i >... | WptPt newPoint = new WptPt(point); |
972,283 | private void activatePanelElements(TournamentTypeView tournamentType) {<NEW_LINE>this.pnlDraftOptions.setVisible(tournamentType.isDraft());<NEW_LINE>this.lblNumRounds.setVisible(!tournamentType.isElimination());<NEW_LINE>this.spnNumRounds.setVisible(!tournamentType.isElimination());<NEW_LINE>this.lblConstructionTime.se... | (!tournamentType.isLimited()); |
370,882 | private <T> List<T> load(Class<T> type, final String[] customConverterClassNames, final ClassLoader classLoader, final Kryo kryo) {<NEW_LINE>if (customConverterClassNames == null || customConverterClassNames.length == 0) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final List<T> result = new ArrayList... | getSimpleName() + ".", e); |
283,947 | public void onClick(View view) {<NEW_LINE>Intent intent;<NEW_LINE>switch(view.getId()) {<NEW_LINE>case R.id.group_choose_sender_id:<NEW_LINE>intent = SelectActivity.pickSenderId(this, R.id.group_choose_sender_id);<NEW_LINE>startActivityForResult(intent, 0);<NEW_LINE>break;<NEW_LINE>case R.id.group_api_key:<NEW_LINE>int... | this, R.id.group_new_member); |
297,718 | protected boolean isExportOk(X req, String repositoryName, Repository db) throws IOException {<NEW_LINE>RepositoryModel model = gitblit.getRepositoryModel(repositoryName);<NEW_LINE>UserModel user = UserModel.ANONYMOUS;<NEW_LINE>String scheme = null;<NEW_LINE>String origin = null;<NEW_LINE>if (req instanceof GitDaemonCl... | , user.username, origin)); |
764,056 | protected void onResume() {<NEW_LINE>// new AndroidSupportMeWrapper(this).mainOnResume();<NEW_LINE>super.onResume();<NEW_LINE>IS_DEBUG_ENABLED = BuildConfig.IS_TEST_BUILD;<NEW_LINE>if (_appSettings.isRecreateMainRequired()) {<NEW_LINE>// recreate(); // does not remake fragments<NEW_LINE>final Intent intent = getIntent(... | intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); |
1,084,705 | public void cylinderBrush(Player player, LocalSession session, @Arg(desc = "The pattern of blocks to set") Pattern pattern, @Arg(desc = "The radius of the cylinder", def = "2") double radius, @Arg(desc = "The height of the cylinder", def = "1") int height, @Switch(name = 'h', desc = "Create hollow cylinders instead") b... | new CylinderBrush(height), "worldedit.brush.cylinder"); |
1,635,240 | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>builder.addConstructorArgValue(element.getAttribute("path"));<NEW_LINE>String handshakeInterceptors = element.getAttribute("handshake-interceptors");<NEW_LINE>List<BeanReference> handshakeInterceptorList = new... | sockjsBuilder, sockjs, "websocket-enabled", "webSocketEnabled"); |
1,712,461 | private boolean validate(Snapshot snapshot) throws IOException, InvalidSnapshotException {<NEW_LINE>logger.info("Validating snapshot {}", snapshot.getName());<NEW_LINE>String modelStore = configManager.getModelStore();<NEW_LINE>Map<String, Map<String, JsonObject>> models = snapshot.getModels();<NEW_LINE>for (Map.Entry<... | String modelName = modelMap.getKey(); |
569,575 | public void init(PinotConfiguration serverConf) throws Exception {<NEW_LINE>// Make a clone so that changes to the config won't propagate to the caller<NEW_LINE>_serverConf = serverConf.clone();<NEW_LINE>_zkAddress = _serverConf.getProperty(CommonConstants.Helix.CONFIG_OF_ZOOKEEPR_SERVER);<NEW_LINE>_helixClusterName = ... | Helix.KEY_OF_SERVER_NETTY_PORT, Helix.DEFAULT_SERVER_NETTY_PORT); |
194,651 | public void execute(TupleWindow inputWindow) {<NEW_LINE>Map<K, T> <MASK><NEW_LINE>Map<K, Integer> windowCountMap = new HashMap<>();<NEW_LINE>for (Tuple tuple : inputWindow.get()) {<NEW_LINE>R tup = (R) tuple.getValue(0);<NEW_LINE>addMap(reduceMap, windowCountMap, tup);<NEW_LINE>}<NEW_LINE>long startWindow;<NEW_LINE>lon... | reduceMap = new HashMap<>(); |
742,640 | protected Set<String> selectAnnotatedTargets(String annotationClassName, int scanPolicies, AnnotationCategory category) {<NEW_LINE>// There is a direct line into this call from public APIs (e.g., from getMethodAnnotations).<NEW_LINE>// To this point, no steps have been taken to ensure that scans have been performed,<NE... | internClassName(annotationClassName, Util_InternMap.DO_NOT_FORCE); |
732,125 | public TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc) {<NEW_LINE>Preconditions.checkState(!isInProgress(), "Handshake is not complete.");<NEW_LINE>byte[] key = handshaker.getKey();<NEW_LINE>Preconditions.checkState(key.length == AltsChannelCrypter.getKeyLength(), "Bad key length.");<NE... | AltsTsiFrameProtector.getMinFrameSize(), maxFrameSize); |
814,720 | public static DescribeImageFromFamilyResponse unmarshall(DescribeImageFromFamilyResponse describeImageFromFamilyResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeImageFromFamilyResponse.setRequestId(_ctx.stringValue("DescribeImageFromFamilyResponse.RequestId"));<NEW_LINE>Image image = new Image();<NEW_LINE>image.s... | ("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings[" + i + "].Type")); |
1,328,757 | static public EObject universaltime_to_posixtime(EObject a1) {<NEW_LINE>ETuple2 dt;<NEW_LINE>if ((dt = ETuple2.cast(a1)) != null) {<NEW_LINE>ETuple3 date;<NEW_LINE>ETuple3 time;<NEW_LINE>ESmall year;<NEW_LINE>ESmall month;<NEW_LINE>ESmall day;<NEW_LINE>ESmall hour;<NEW_LINE>ESmall minute;<NEW_LINE>ESmall sec;<NEW_LINE>... | Calendar.SECOND, sec.value); |
1,798,107 | public CostEstimate visitPhysicalDistribute(PhysicalDistribute<? extends Plan> distribute, PlanContext context) {<NEW_LINE>StatsDeriveResult childStatistics = context.getChildStatistics(0);<NEW_LINE>DistributionSpec spec = distribute.getDistributionSpec();<NEW_LINE>// shuffle<NEW_LINE>if (spec instanceof DistributionSp... | computeSize(), 0, 0); |
73,971 | protected Collection<Message<?>> completeGroup(Message<?> message, Object correlationKey, MessageGroup group, Lock lock) {<NEW_LINE>Collection<Message<?>> partialSequence = null;<NEW_LINE>Object result;<NEW_LINE>try {<NEW_LINE>this.logger.debug(() -> "Completing group with correlationKey [" + correlationKey + "]");<NEW... | this.outputProcessor.processMessageGroup(group); |
761,686 | static Request indicesExist(org.elasticsearch.action.admin.indices.get.GetIndexRequest getIndexRequest) {<NEW_LINE>// this can be called with no indices as argument by transport client, not via REST though<NEW_LINE>if (getIndexRequest.indices() == null || getIndexRequest.indices().length == 0) {<NEW_LINE>throw new Ille... | = new RequestConverters.Params(request); |
1,443,592 | public int add(int i, double dist, int j) {<NEW_LINE>if (parent == null) {<NEW_LINE>assert mergecount == 0;<NEW_LINE>parent = MathUtil.sequence(0, (ids.size() << 1) - 1);<NEW_LINE>}<NEW_LINE>// next<NEW_LINE>int t = mergecount + ids.size();<NEW_LINE>// Follow i to its parent.<NEW_LINE>for (int p = parent[i]; i != p; ) ... | final int tmp = parent[p]; |
1,068,292 | public void handleEvent(Event ev) {<NEW_LINE>if (ev.widget == comp) {<NEW_LINE>int[] weights = sash.getWeights();<NEW_LINE>int current_weight = <MASK><NEW_LINE>if (comp_weight != current_weight) {<NEW_LINE>COConfigurationManager.setParameter(config_key, weights[0] + "," + weights[1]);<NEW_LINE>// sash has moved<NEW_LIN... | weights[is_lhs ? 0 : 1]; |
821,990 | private Map<String, Object> retrieveAsnGeoData(InetAddress ipAddress) {<NEW_LINE>SpecialPermission.check();<NEW_LINE>AsnResponse response = AccessController.doPrivileged((PrivilegedAction<AsnResponse>) () -> cache.putIfAbsent(ipAddress, AsnResponse.class, ip -> {<NEW_LINE>try {<NEW_LINE>return lazyLoader.get().asn(ip);... | geoData.put("asn", asn); |
179,637 | public FileActionEntity copy(CopyPathBody body, String path) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {... | throw new ApiException(400, "Missing the required parameter 'body' when calling copy"); |
520,473 | public void actionPerformed(ActionEvent e) {<NEW_LINE>final ImportZIP panel = new ImportZIP();<NEW_LINE>final JButton ok = new JButton(LBL_import());<NEW_LINE>NotifyDescriptor d = new NotifyDescriptor(panel, TITLE_import(), NotifyDescriptor.OK_CANCEL_OPTION, NotifyDescriptor.PLAIN_MESSAGE, new Object[] { ok, NotifyDesc... | NotificationLineSupport notifications = d.createNotificationLineSupport(); |
1,443,329 | public static LinkedBuffer writeAscii(final CharSequence str, final WriteSession session, LinkedBuffer lb) {<NEW_LINE>final int len = str.length();<NEW_LINE>if (len == 0)<NEW_LINE>return lb;<NEW_LINE>byte[] buffer = lb.buffer;<NEW_LINE>int offset = lb.offset, limit = lb.buffer.length;<NEW_LINE>// actual size<NEW_LINE>s... | byte) str.charAt(i); |
1,247,478 | public void onAuthenticationSuccess(final HttpServletRequest request, final HttpServletResponse response, final Authentication authentication) throws ServletException, IOException {<NEW_LINE>final SavedRequest savedRequest = requestCache.getRequest(request, response);<NEW_LINE>if (savedRequest == null) {<NEW_LINE>super... | requestCache.removeRequest(request, response); |
543,472 | private boolean generatePng(File pngsDir, UploadedPresentation pres, int page, File pageFile) throws InterruptedException {<NEW_LINE>String source = pageFile.getAbsolutePath();<NEW_LINE>String dest;<NEW_LINE>if (SupportedFileTypes.isImageFile(pres.getFileType())) {<NEW_LINE>// Need to create a PDF as intermediate step.... | log.warn(" --analytics-- data={}", logStr); |
443,237 | private Pair<MysqlSemiIndexNLJoin, MysqlTableScan> transformToIndexNLJoin(LogicalSemiJoin logicalSemiJoin) {<NEW_LINE>RelNode inner = logicalSemiJoin.getRight();<NEW_LINE>if (inner instanceof HepRelVertex) {<NEW_LINE>inner = ((HepRelVertex) inner).getCurrentRel();<NEW_LINE>}<NEW_LINE>CheckMysqlIndexNLJoinRelVisitor che... | ), logicalSemiJoin.getHints()); |
1,460,702 | public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {<NEW_LINE>LOG.trace("Executing {}", RpcMethod.PRIV_DELETE_PRIVACY_GROUP.getMethodName());<NEW_LINE>final String privacyGroupId = requestContext.getRequiredParameter(0, String.class);<NEW_LINE>final String response;<NEW_LINE>try {<NEW_LINE>resp... | (requestContext.getUser())); |
59,239 | public StringBuffer format(Object number, StringBuffer toAppendTo, FieldPosition pos) {<NEW_LINE>if (number instanceof Long) {<NEW_LINE>return format(((Long) number).longValue(), toAppendTo, pos);<NEW_LINE>} else if (number instanceof BigInteger) {<NEW_LINE>return format((BigInteger) number, toAppendTo, pos);<NEW_LINE>... | CurrencyAmount) number, toAppendTo, pos); |
453,370 | private void shareCsvFile() {<NEW_LINE>final ScaleUser selectedScaleUser = OpenScale.getInstance().getSelectedScaleUser();<NEW_LINE>File shareFile = new File(getApplicationContext().getCacheDir(), getExportFilename(selectedScaleUser));<NEW_LINE>if (!OpenScale.getInstance().exportData(Uri.fromFile(shareFile))) {<NEW_LIN... | intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); |
544,400 | public static boolean isApplicationEnabled(String appName, String target) {<NEW_LINE>String prefix = (String) GuiUtil.getSessionValue("REST_URL");<NEW_LINE>List<String> clusters = TargetUtil.getClusters();<NEW_LINE>List<String> standalone = TargetUtil.getStandaloneInstances();<NEW_LINE>List<String> dgs = TargetUtil.get... | <String, Object> attrs = null; |
70,654 | private BigInteger calculateU(BigInteger clientPublic, BigInteger serverPublic, BigInteger modulus) {<NEW_LINE>byte[] paddedClientPublic = calculatePadding(modulus, clientPublic);<NEW_LINE>LOGGER.debug("ClientPublic Key:" + ArrayConverter.bytesToHexString(ArrayConverter.bigIntegerToByteArray(clientPublic)));<NEW_LINE>L... | paddedServerPublic = calculatePadding(modulus, serverPublic); |
1,762,617 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select * from pattern[s0=SupportBean_S0 -> SupportBean(intPrimitive+5=s0.id and theString='a')]";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean_S0(10));<NEW_LINE>if (hasFilterIndexPlanAdvanced... | env, "b", 5, false); |
48,111 | public void handle(MongoRequest request, MongoResponse response) throws Exception {<NEW_LINE>var content = request.getContent();<NEW_LINE>if (content == null) {<NEW_LINE>return;<NEW_LINE>} else if (content.isArray() && request.isPost()) {<NEW_LINE>// POST collection with array of documents<NEW_LINE>JsonArray passwords ... | propNamePassword, new BsonString(hashed)); |
1,745,496 | private StaticLayout createLayoutWithNumberOfLine(int lastLineStart, int width) {<NEW_LINE>if (mSpanned == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>SpannableStringBuilder temp = (SpannableStringBuilder) mSpanned.subSequence(0, text.length());<NEW_LINE>String ellipsizeStr = (String) TextUtils.el... | String text = mSpanned.toString(); |
1,393,007 | public ModelConfVO save(ModelConfVO confVO) {<NEW_LINE>ModelConfPO conf = new ModelConfPO();<NEW_LINE>BeanUtils.copyProperties(confVO, conf);<NEW_LINE>if (conf.getId() == null) {<NEW_LINE>conf.setCreateTime(new Date());<NEW_LINE>conf<MASK><NEW_LINE>modelConfMapper.insert(conf);<NEW_LINE>confVO.setId(conf.getId());<NEW_... | .setUpdateDate(new Date()); |
507,886 | private void emitQueryTimeEvent(ServiceMetricEvent event) {<NEW_LINE>Context opentelemetryContext = propagator.extract(Context.current(), event, DRUID_CONTEXT_TEXT_MAP_GETTER);<NEW_LINE>try (Scope scope = opentelemetryContext.makeCurrent()) {<NEW_LINE>DateTime endTime = event.getCreatedTime();<NEW_LINE>DateTime startTi... | TimeUnit.MILLISECONDS).startSpan(); |
1,517,207 | private void remove() {<NEW_LINE>preview.removeAll();<NEW_LINE>preview.revalidate();<NEW_LINE>preview.repaint();<NEW_LINE>int dpi = DPIS[this.dpi.getSelectedIndex()];<NEW_LINE>int[] dpis = multi.getDpi();<NEW_LINE>com.codename1.ui.EncodedImage[] imgs = multi.getInternalImages();<NEW_LINE>for (int iter = 0; iter < dpis.... | EncodedImage[imgs.length - 1]; |
1,560,985 | public JsonOutOfStockResponse handleOutOfStockRequest(@NonNull final String warehouseIdentifier, @NonNull final JsonOutOfStockNoticeRequest outOfStockInfoRequest) {<NEW_LINE>if (!Boolean.TRUE.equals(outOfStockInfoRequest.getClosePendingShipmentSchedules()) && !Boolean.TRUE.equals(outOfStockInfoRequest.getCreateInventor... | , OrgId.toRepoIdOrAny(orgId)); |
1,256,084 | private void addAnd(StringBuilder sb, Expression and, Collection<Variable> variables, int results) throws ExpressionException {<NEW_LINE>HashSet<String> <MASK><NEW_LINE>HashSet<String> nv = new HashSet<>();<NEW_LINE>if (and instanceof Operation.And) {<NEW_LINE>Operation.And a = (Operation.And) and;<NEW_LINE>for (Expres... | v = new HashSet<>(); |
1,695,109 | public Object calculate(Context ctx) {<NEW_LINE>IParam param = this.param;<NEW_LINE>if (param == null) {<NEW_LINE><MASK><NEW_LINE>throw new RQException("concat" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>Object obj = param... | MessageManager mm = EngineMessage.get(); |
1,770,757 | private Mono<Response<SqlServerInstanceInner>> updateWithResponseAsync(String resourceGroupName, String sqlServerInstanceName, SqlServerInstanceUpdate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == n... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
907,132 | private void readSecureResource(String tagName, AbstractAdapterConfigurationDefinition resource, XMLExtendedStreamReader reader, List<ModelNode> resourcesToAdd) throws XMLStreamException {<NEW_LINE>String name = readNameAttribute(reader);<NEW_LINE>ModelNode addSecureDeployment = new ModelNode();<NEW_LINE>addSecureDeplo... | readCredential(reader, addr, credentialsToAdd); |
812,471 | private void connect(MessageContext messageContext) throws IOException {<NEW_LINE>String outboundChainName = m_channel.getOutboundChainName();<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(this, tc, "<connect>", "outboundChainName = " + outboundChainName);<NEW_LINE>}<NEW_... | this, tc, "<connect>", "connectAsynch..."); |
241,242 | public static ImageResult toJpeg(@NonNull ImageProxy image, boolean flip) throws IOException {<NEW_LINE>ImageProxy.PlaneProxy[] planes = image.getPlanes();<NEW_LINE>ByteBuffer buffer = planes[0].getBuffer();<NEW_LINE>Rect cropRect = shouldCropImage(image) ? image.getCropRect() : null;<NEW_LINE>byte[] data = new byte[bu... | top) : image.getHeight(); |
1,105,709 | protected void exportLine(JRPrintLine line) throws IOException {<NEW_LINE>int x = line.getX() + getOffsetX();<NEW_LINE>int y = line<MASK><NEW_LINE>int height = line.getHeight();<NEW_LINE>int width = line.getWidth();<NEW_LINE>if (width <= 1 || height <= 1) {<NEW_LINE>if (width > 1) {<NEW_LINE>height = 0;<NEW_LINE>} else... | .getY() + getOffsetY(); |
700,833 | void intervalElapsed(final Plotter p) {<NEW_LINE>tab.getRequestProcessor().post(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Number n = (Number) mbean.getCachedMBeanServerConnection().getAttribute(mbean.getObjectName(), attributeName);<NEW_LINE>long v;<NEW_LINE>if (n instanceof Float ... | System.currentTimeMillis(), v); |
683,859 | private void addToOpenWithList(SystemApplicationKey app, FileExtensionKey ext, Properties props) throws NativeException {<NEW_LINE>String name = ext.getDotName();<NEW_LINE>String extKey = ext.getKey();<NEW_LINE>String appName = app.getKey();<NEW_LINE>if (app.isAddOpenWithList()) {<NEW_LINE>if (!isEmpty(name) && !isEmpt... | name + SEP + OPEN_WITH_LIST_KEY_NAME, appName); |
1,241,777 | public boolean removeMember(long commitIndex, CPMemberInfo leavingMember) {<NEW_LINE>checkNotNull(leavingMember);<NEW_LINE>checkMetadataGroupInitSuccessful();<NEW_LINE>if (!activeMembers.contains(leavingMember)) {<NEW_LINE>logger.fine("Not removing " + leavingMember + " since it is not an active CP member");<NEW_LINE>r... | String msg = "There is already an ongoing CP membership change process. " + "Cannot process remove request of " + leavingMember; |
1,713,001 | final UpdateClusterKafkaVersionResult executeUpdateClusterKafkaVersion(UpdateClusterKafkaVersionRequest updateClusterKafkaVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterKafkaVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
267,823 | private void doTargetsForFullyQualifiedExtensionFile(VirtualFile sourceVirtualFile, Project project, String prefixToAutocomplete, CompletionResultSet result) {<NEW_LINE>Matcher matcher = TARGET_TO_EXTENSION_FILE_PATTERN.matcher(prefixToAutocomplete);<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | partial = matcher.group("partial"); |
214,678 | public Map<String, Object> execute(Map<String, Object> context) {<NEW_LINE>final Map<String, Object> result = new HashMap<>();<NEW_LINE>final List<Action> children = getChildren();<NEW_LINE>final Map<String, Object> compositeContext = getCompositeContext(context);<NEW_LINE>for (Action child : children) {<NEW_LINE>Actio... | .getValue(), childOuputRef)); |
1,181,209 | public static IMouseStateChange exitNode(final CStateFactory<?, ?> m_factory, final MouseEvent event, final HitInfo hitInfo, final IMouseState state) {<NEW_LINE>if (hitInfo.hasHitNodeLabels()) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>} else if (hitInfo.hasHitEdges()) {<NEW_LINE>return CHitEdgesTransformer... | enterEdge(m_factory, event, hitInfo); |
1,017,783 | public void changePropertyByName(String name, Object value) {<NEW_LINE>if (name == null)<NEW_LINE>return;<NEW_LINE>name = name.intern();<NEW_LINE>if ("dtdName".equals(name))<NEW_LINE>setDtdName((String) value);<NEW_LINE>else if ("namespace".equals(name))<NEW_LINE>setNamespace((String) value);<NEW_LINE>else if ("beanNam... | ) value).booleanValue()); |
1,349,270 | public static FileObject resolveFileObjectForClass(FileObject referenceFileObject, final String className) throws IOException {<NEW_LINE>final FileObject[] result = new FileObject[1];<NEW_LINE>JavaSource javaSource = JavaSource.forFileObject(referenceFileObject);<NEW_LINE>if (javaSource == null) {<NEW_LINE>// Should no... | toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); |
728,873 | public boolean initOnce() {<NEW_LINE>try {<NEW_LINE>for (Method m : Initiator.load("com.tencent.mobileqq.activity.VisitorsActivity").getDeclaredMethods()) {<NEW_LINE>if (m.getName().equals("onClick")) {<NEW_LINE>XposedBridge.hookMethod(m, new XC_MethodHook() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void before... | getClass(), ImageView.class); |
183,484 | public void marshall(CreateCustomDataIdentifierRequest createCustomDataIdentifierRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createCustomDataIdentifierRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | createCustomDataIdentifierRequest.getClientToken(), CLIENTTOKEN_BINDING); |
1,360,325 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));<NEW_LINE>try {<NEW_LINE>Auth auth = new Auth();<NEW_LINE>Saml2Settings settings = auth.getSettings()... | String metadata = settings.getSPMetadata(); |
1,645,589 | private void paintInstanceEvolution(InstancePainter painter) {<NEW_LINE>// draw boundary, label<NEW_LINE>painter.drawLabel();<NEW_LINE>final var xpos = painter.getLocation().getX();<NEW_LINE>final var ypos = painter.getLocation().getY();<NEW_LINE>final var wid = painter.getAttributeValue(StdAttr.WIDTH).getWidth();<NEW_... | parallelObj = painter.getAttributeValue(ATTR_LOAD); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.