idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
589,544 | public void run() throws IOException {<NEW_LINE>Log.info("Generating classification model from %s", input);<NEW_LINE>FastTextClassifierTrainer trainer = FastTextClassifierTrainer.builder().epochCount(epochCount).learningRate(learningRate).lossType(lossType).quantizationCutOff(cutOff).minWordCount(minWordCount).threadCo... | classifier = trainer.train(input); |
874,904 | private boolean handle(ServerConfiguration conf) throws Exception {<NEW_LINE>LOG.info("=== Converting to DbLedgerStorage ===");<NEW_LINE>ServerConfiguration bkConf = new ServerConfiguration(conf);<NEW_LINE>InterleavedLedgerStorage interleavedStorage = new InterleavedLedgerStorage();<NEW_LINE>BookieImpl.mountLedgerStora... | BookieImpl.mountLedgerStorageOffline(bkConf, dbStorage); |
126,962 | private void ratingListener(Rating rating) {<NEW_LINE>final Long movieId = rating.getMovieId();<NEW_LINE>countAndSumStorage.compute(movieId, (aLong, prevCountAndSum) -> {<NEW_LINE>if (prevCountAndSum != null) {<NEW_LINE>return new CountAndSum(prevCountAndSum.getCount() + 1, prevCountAndSum.getSum(<MASK><NEW_LINE>}<NEW_... | ) + rating.getRating()); |
509,024 | private static FileObject findPath(@NonNull FileObject parent, @NonNull final String[] nameParts, @NonNull final String[] relativePath) {<NEW_LINE>assert relativePath.length == 1;<NEW_LINE>final StringBuilder relativePathBuilder = new StringBuilder();<NEW_LINE>FileObject child;<NEW_LINE>// NOI18N<NEW_LINE>String separa... | 0] = relativePathBuilder.toString(); |
425,624 | public static DetectLungNoduleResponse unmarshall(DetectLungNoduleResponse detectLungNoduleResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectLungNoduleResponse.setRequestId(_ctx.stringValue("DetectLungNoduleResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<Serie> series = new ArrayList<Serie>();<... | + "].Elements[" + j + "].SOPInstanceUID")); |
1,113,903 | public void execute(LuckPermsPlugin plugin, Sender sender, ArgumentList args, String label) {<NEW_LINE>if (args.isEmpty()) {<NEW_LINE>sendUsage(sender, label);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String groupName = args.get(0).toLowerCase(Locale.ROOT);<NEW_LINE>if (!DataConstraints.GROUP_NAME_TEST.test(groupName)) {<N... | , Component.text(groupName)); |
98,088 | private static Type parseSuperType(String superType, boolean isInterface) {<NEW_LINE>if (!superType.trim().equals(superType)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder cuBuff = new StringBuilder();<NEW_LINE>if (isInterface) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>cuBuff.append("class __X__ implements ");<NEW... | toString().toCharArray()); |
1,518,969 | protected void parseCellDataElement(CellSet result) throws JRException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("COLUMNS axis size: " + result.getAxes().get(Axis.COLUMNS.axisOrdinal()).getPositions().size());<NEW_LINE>log.debug("ROWS axis size: " + result.getAxes().get(Axis.ROWS.axisOrdinal()).getPosit... | xmlaResult.setCell(cell, cellOrdinal); |
265,163 | private void registerCodecs(Map<Class<?>, Class<?>> codecByClass) {<NEW_LINE>EventBus eventBus = vertx.eventBus();<NEW_LINE>boolean isDevMode = ProfileManager.getLaunchMode() == LaunchMode.DEVELOPMENT;<NEW_LINE>for (Map.Entry<Class<?>, Class<?>> codecEntry : codecByClass.entrySet()) {<NEW_LINE>Class<?<MASK><NEW_LINE>Cl... | > target = codecEntry.getKey(); |
96,207 | public void updatePmiInRequest(String method, TransactionUserWrapper tuWrapper, SipServletDesc sipDesc) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { tuWrapper.getAppName(), tuWrapper.getId(), method };<NEW_LINE>c_logger.traceEntry(tuWrapper.getTuImpl(), "updatePmiInRequest", params)... | appDesc.getAppIndexForPmi(), method); |
272,749 | protected byte[] transformBytecode(byte[] bytecode) {<NEW_LINE>if (LinkstoneRuntimeData.getFields().isEmpty() && LinkstoneRuntimeData.getBoxes().isEmpty()) {<NEW_LINE>// There are no plugins installed that use a @LField or @LBox annotation<NEW_LINE>// so there's no need for runtime support<NEW_LINE>return bytecode;<NEW... | ).accept(cv, 0); |
1,761,374 | public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {<NEW_LINE>Map<String, Object> source = new HashMap<>();<NEW_LINE>for (AzureCoreEnvMapping mapping : AzureCoreEnvMapping.values()) {<NEW_LINE>if (environment.containsProperty(mapping.coreEnvName)) {<NEW_LINE>String pr... | environment.getProperty(mapping.sdkEnvName); |
666,155 | public ListStudioMembersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListStudioMembersResult listStudioMembersResult = new ListStudioMembersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken... | String currentParentElement = context.getCurrentParentElement(); |
197,832 | private void processParam(Element element, T holder) {<NEW_LINE>ExecutableElement method = (ExecutableElement) element.getEnclosingElement();<NEW_LINE>List<? extends VariableElement> parameters = method.getParameters();<NEW_LINE>List<ParamHelper> parameterList = methodParameterMap.get(method);<NEW_LINE>JBlock targetBlo... | invocation.arg(parameter.beanInstance); |
1,040,436 | final GetBackendAPIModelsResult executeGetBackendAPIModels(GetBackendAPIModelsRequest getBackendAPIModelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBackendAPIModelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
57,804 | public PhotonRequest create(Request webRequest) throws BadRequestException {<NEW_LINE>for (String queryParam : webRequest.queryParams()) if (!REQUEST_QUERY_PARAMS.contains(queryParam))<NEW_LINE>throw new BadRequestException(400, "unknown query parameter '" + queryParam + "'. Allowed parameters are: " + REQUEST_QUERY_P... | .format("Invalid parameter 'osm_tag=%s': bad syntax for tag filter.", filter)); |
1,017,963 | public String diagnoseNull() {<NEW_LINE>final PsiFile file = ReadAction.compute(this::getFile);<NEW_LINE>try {<NEW_LINE>PsiElement element = ReadAction.compute(() -> restoreFromStubIndex((PsiFileWithStubSupport) file, myIndex, myElementType, true));<NEW_LINE>return "No diagnostics, element=" + element + "@" + (element ... | (myProject).isCommitted(document); |
270,426 | private void initialize(ApplicationConfigurator applicationConfigurator, InjectionManager injectionManager, Binder customBinder) {<NEW_LINE>LOGGER.config(LocalizationMessages.INIT_MSG(Version.getBuildId()));<NEW_LINE>this.injectionManager = injectionManager;<NEW_LINE>this.injectionManager.register(CompositeBinder.wrap(... | .managedObjectsFinalizer = new ManagedObjectsFinalizer(injectionManager); |
1,783,492 | RuntimeStatisticsSketch toSketch() {<NEW_LINE>long startupDuration = 0;<NEW_LINE>long duration = 0;<NEW_LINE>long rowCount = 0;<NEW_LINE>long memory = 0;<NEW_LINE>int spillCnt = 0;<NEW_LINE>long workerDuration = 0;<NEW_LINE>long outputBytes = 0;<NEW_LINE>for (OperatorStatistics statistic : statistics) {<NEW_LINE>startu... | durationSeconds = (double) duration / 1e9; |
1,844,586 | public void validate(JobParameters theJobParameters) throws JobParametersInvalidException {<NEW_LINE>if (theJobParameters == null) {<NEW_LINE>throw new JobParametersInvalidException(Msg<MASK><NEW_LINE>}<NEW_LINE>TransactionTemplate txTemplate = new TransactionTemplate(myTransactionManager);<NEW_LINE>String errorMessage... | .code(784) + "This job needs Parameters: [jobUUID]"); |
1,740,005 | /* Appends var declaration code created from the Polymer call to the given block */<NEW_LINE>private Node generateDeclarationCode(Node exprRoot, final PolymerClassDefinition cls, JSDocInfo.Builder constructorDoc, NodeTraversal traversal) {<NEW_LINE>if (cls.target.isGetProp()) {<NEW_LINE>// foo.bar = Polymer({...});<NEW... | = cls.target.getString(); |
664,389 | private void doApplyDynamicFeatures(ClassResourceInfo cri) {<NEW_LINE>Set<OperationResourceInfo> oris = cri.getMethodDispatcher().getOperationResourceInfos();<NEW_LINE>for (OperationResourceInfo ori : oris) {<NEW_LINE>String nameBinding = DEFAULT_FILTER_NAME_BINDING + ori.getClassResourceInfo().getServiceClass().getNam... | Configuration cfg = featureContext.getConfiguration(); |
838,265 | public static ClientMessage encodeRequest(java.lang.String mapName, int timeToLiveSeconds, int maxIdleSeconds, int evictionPolicy, boolean readBackupData, int maxSize, int maxSizePolicy) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>client... | initialFrame.content, REQUEST_MAX_SIZE_FIELD_OFFSET, maxSize); |
1,263,027 | void copy(AzfsResourceId sourcePath, AzfsResourceId destinationPath) throws IOException {<NEW_LINE>checkArgument(sourcePath.getBlob() != null && destinationPath.getBlob() != null, "This method is intended to copy file-like resources, not directories.");<NEW_LINE>// get source blob client<NEW_LINE>BlobClient srcBlobClie... | getBlobUrl() + generateSasToken()); |
523,263 | protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("EVENT_CATALOG", 0, typeFactory.createSqlType(SqlTypeName.VARCHAR)));<NEW_LINE>columns.ad... | createSqlType(SqlTypeName.VARCHAR))); |
222,463 | protected void updateButtons() {<NEW_LINE>final CommonActionsPanel p = getActionsPanel();<NEW_LINE>if (p != null) {<NEW_LINE>if (myTable.isEnabled()) {<NEW_LINE>final int index = myTable.getSelectedRow();<NEW_LINE>final int size = myTable.getModel().getRowCount();<NEW_LINE>if (0 <= index && index < size) {<NEW_LINE>fin... | CommonActionsPanel.Buttons.DOWN, false); |
947,732 | private void writeNormalArray(JsonWriter json) throws IOException {<NEW_LINE>VectorM3f normal = new VectorM3f(0, 0, 0);<NEW_LINE>json.name("normal");<NEW_LINE>json.beginObject();<NEW_LINE>json.name("type").value("Float32Array");<NEW_LINE>json.name("itemSize").value(3);<NEW_LINE>json.name("normalized").value(false);<NEW... | [pi + 8], normal); |
1,598,523 | public Object functionTemplateGetFunction(Object realm, Object templateObj) {<NEW_LINE>JSRealm jsRealm = (JSRealm) realm;<NEW_LINE>JSContext jsContext = jsRealm.getContext();<NEW_LINE>FunctionTemplate template = (FunctionTemplate) templateObj;<NEW_LINE>if (template.getFunctionObject(jsRealm) == null) {<NEW_LINE>Compile... | JSDynamicObject) functionTemplateGetFunction(realm, parentTemplate); |
1,155,662 | public DocumentFilter createDocumentFilter(@NonNull final DocumentEntityDescriptor entityDescriptor, @NonNull final GeoLocationDocumentQuery query) {<NEW_LINE>final ImmutableSet<String> fieldNames = extractFieldNames(entityDescriptor.getFields());<NEW_LINE><MASK><NEW_LINE>return DocumentFilter.builder().setFilterId(Geo... | final GeoLocationDocumentDescriptor descriptor = getGeoLocationDocumentDescriptor(fieldNames); |
1,649,384 | public List<ExternalTaskEntity> selectExternalTasksForTopics(Collection<TopicFetchInstruction> queryFilters, int maxResults, boolean usePriority) {<NEW_LINE>if (queryFilters.isEmpty()) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>Map<String, Object> parameters = new HashMap<>();<NEW_LINE>parameters.put("top... | parameters.put("applyOrdering", usePriority); |
1,004,812 | public void deleteByIdWithResponse(String id, Context context) {<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. Missin... | Utils.getValueFromIdByName(id, "streamingEndpoints"); |
278,221 | private void addExternalJson(List<File> files, Manager<S> manager, Map<String, S> externalResources) {<NEW_LINE>String plural = files.size() > 1 ? "s" : "";<NEW_LINE>Set<String> currentNames = new HashSet<>();<NEW_LINE>boolean addToManager = false;<NEW_LINE>if (manager != null) {<NEW_LINE>try {<NEW_LINE>currentNames.ad... | () - fails.size(); |
31,641 | final StopICD10CMInferenceJobResult executeStopICD10CMInferenceJob(StopICD10CMInferenceJobRequest stopICD10CMInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopICD10CMInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
642,733 | protected byte[] query(final InetAddress client, final byte[] request) throws WireParseException {<NEW_LINE>Message query = null;<NEW_LINE>Message response = null;<NEW_LINE>final long queryTimeMillis = System.currentTimeMillis();<NEW_LINE>final DNSAccessRecord.Builder builder = new DNSAccessRecord.Builder(queryTimeMill... | query(query, client, builder); |
865,191 | public void disassociateApprovedOrigin(DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateApprovedOriginRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execut... | new JsonResponseHandler<Void>(null); |
131,687 | public void delete(String name) throws CertificateException, IOException {<NEW_LINE>// check if immutable<NEW_LINE>if (readOnly) {<NEW_LINE>throw new CertificateException("cannot over-write existing" + " certificate");<NEW_LINE>}<NEW_LINE>X509AttributeName attr = new X509AttributeName(name);<NEW_LINE>String id = attr.g... | X509AttributeName(attr.getSuffix()); |
1,375,482 | public void joinNodes(final List<NodeModel> selectedNodes, final String separator) {<NEW_LINE>if (selectedNodes.isEmpty())<NEW_LINE>return;<NEW_LINE>final NodeModel selectedNode = selectedNodes.get(0);<NEW_LINE>for (final NodeModel node : selectedNodes) {<NEW_LINE>if (node != selectedNode && node.subtreeContainsCloneOf... | .getCurrentModeController().getMapController(); |
1,328,537 | private void fixCefPermissions(File cefDir) {<NEW_LINE>getLog().debug("Checking permissions on " + cefDir + " and fixing if necessary");<NEW_LINE>Set<String> patterns = new HashSet<String>();<NEW_LINE>patterns.add("*.dylib");<NEW_LINE>patterns.add("*.so");<NEW_LINE>patterns.add("jcef_helper");<NEW_LINE>patterns.add("*.... | debug("libjawt.so fix has not been applied yet as " + dest + " does not exist"); |
842,768 | private JSONObject decode2(ByteBuffer buf) {<NEW_LINE>JSONObject m = new JSONObject();<NEW_LINE>while (buf.position() < buf.array().length) {<NEW_LINE>long tl = uint32(buf);<NEW_LINE>int t = (int) (tl >>> 3);<NEW_LINE>switch(t) {<NEW_LINE>case 1:<NEW_LINE>if (m.optJSONArray("AAA106") == null) {<NEW_LINE>m.put("AAA106",... | "AAA37", new JSONArray("[]")); |
1,738,478 | public void marshall(Table table, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (table == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(table.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.marshall(... | table.getViewOriginalText(), VIEWORIGINALTEXT_BINDING); |
1,039,646 | public <T extends JpaObject> T fetch(String id, Class<T> clz, List<String> attributes) throws Exception {<NEW_LINE>T t = null;<NEW_LINE>if (StringUtils.isEmpty(id)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!attributes.contains(JpaObject.id_FIELDNAME)) {<NEW_LINE>attributes.add(JpaObject.id_FIELDNAME);<NEW_LINE>}... | root = cq.from(clz); |
938,659 | private void ensureInitialized() throws DatabaseIOException {<NEW_LINE>synchronized (initializationLock) {<NEW_LINE>if (initialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SQLiteDatabase readableDatabase = databaseProvider.getReadableDatabase();<NEW_LINE>int version = VersionTable.getVersion(readableData... | ) : new ArrayList<>(); |
456,966 | public void filter(ContainerRequestContext ctx) throws IOException {<NEW_LINE>String host = getValue(ctx.getHeaders(), HOST_PROXY_HEADER);<NEW_LINE>String scheme = getValue(ctx.getHeaders(), PROTO_PROXY_HEADER);<NEW_LINE>// if our request does not have neither headers end right here<NEW_LINE>if (scheme == null && host ... | UriBuilder requestBuilder = uriInfo.getRequestUriBuilder(); |
1,330,024 | protected int sendHttp1Response(ChannelHandlerContext ctx, HttpResponseStatus status, String resultStr, boolean isKeepAlive) {<NEW_LINE>ByteBuf content = Unpooled.copiedBuffer(resultStr, RpcConstants.DEFAULT_CHARSET);<NEW_LINE>FullHttpResponse res = new DefaultFullHttpResponse(HTTP_1_1, status, content);<NEW_LINE>res.h... | f.addListener(ChannelFutureListener.CLOSE); |
799,645 | @Produces(MediaType.TEXT_PLAIN)<NEW_LINE>public String testSearch() {<NEW_LINE>SearchSession searchSession = Search.session(entityManager);<NEW_LINE>List<Person> person = searchSession.search(Person.class).where(f -> f.match().field("name").matching("john")).sort(f -> f.field("name_sort")).fetchHits(20);<NEW_LINE>asser... | 2, person.size()); |
37,671 | public static List<List<TargetDB>> shard(List<String> tables, Map<Integer, ParameterContext> param, Map<String, Map<String, Comparative>> tableComparativeMap, String schemaName, ExecutionContext ec) {<NEW_LINE>List<List<TargetDB>> result = new LinkedList<>();<NEW_LINE>TddlRuleManager ruleManager = ec.<MASK><NEW_LINE>fo... | getSchemaManager(schemaName).getTddlRuleManager(); |
1,584,611 | public void benchmarkJdkProxy(Blackhole blackHole) {<NEW_LINE>blackHole.consume(jdkProxyInstance.method(booleanValue));<NEW_LINE>blackHole.consume(jdkProxyInstance.method(byteValue));<NEW_LINE>blackHole.consume(jdkProxyInstance.method(shortValue));<NEW_LINE>blackHole.consume(jdkProxyInstance.method(intValue));<NEW_LINE... | (floatValue, floatValue, floatValue)); |
892,329 | private Collection<CreateTriggerPlan> recoverCreateTriggerPlans(File logFile) throws IOException, TriggerManagementException {<NEW_LINE>Map<String, CreateTriggerPlan> recoveredCreateTriggerPlans = new HashMap<>();<NEW_LINE>try (TriggerLogReader reader = new TriggerLogReader(logFile)) {<NEW_LINE>while (reader.hasNext())... | ) plan).getTriggerName()); |
969,083 | private boolean changeGraphAccess(final String graphId, final FederatedAccess newFederatedAccess, final Predicate<FederatedAccess> accessPredicate) throws StorageException {<NEW_LINE>boolean rtn;<NEW_LINE>final Graph graphToMove = getGraphToMove(graphId, accessPredicate);<NEW_LINE>if (nonNull(graphToMove)) {<NEW_LINE>/... | s + " graphStorage access:{} cache access:{}", newFederatedAccess, oldAccess); |
1,654,676 | public void marshall(ImportClientBrandingRequest importClientBrandingRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (importClientBrandingRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(imp... | importClientBrandingRequest.getDeviceTypeWeb(), DEVICETYPEWEB_BINDING); |
734,016 | private JsonResponse createResponse(String jsonRpc, Object id, JsonNode result, JsonError errorObject) {<NEW_LINE>ObjectNode response = mapper.createObjectNode();<NEW_LINE>response.put(JSONRPC, jsonRpc);<NEW_LINE>if (id instanceof Integer) {<NEW_LINE>response.put(ID, ((Integer) id).intValue());<NEW_LINE>} else if (id i... | .valueToTree(errorObject.data)); |
1,025,482 | protected AudioInputStream generateAudioStream(List<SelectedUnit> units) {<NEW_LINE>int len = units.size();<NEW_LINE>Datagram[][] datagrams = new Datagram[len][];<NEW_LINE>Datagram[] leftContexts = new Datagram[len];<NEW_LINE>Datagram[] rightContexts = new Datagram[len];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LIN... | ] frames = unitData.getFrames(); |
673,554 | public void onEvent(Event event) throws Exception {<NEW_LINE>if (event.getTarget() == bRefresh) {<NEW_LINE>loadTable();<NEW_LINE>renderListBox();<NEW_LINE>updateFooter();<NEW_LINE>} else if (event.getName() == Events.ON_OPEN) {<NEW_LINE>OpenEvent openEvt = (OpenEvent) event;<NEW_LINE>WEditorPopupMenu popup = (WEditorPo... | Component) popup.getAttribute("ref"); |
1,143,080 | private Hover tryFrameScope(MaterializedFrame frame, CoverageEventNode node, String textAtHoverPosition, LanguageInfo langInfo, SourceSection hoverSection) {<NEW_LINE>Node instrumentedNode = node.getInstrumentedNode();<NEW_LINE>NodeLibrary nodeLibrary = NodeLibrary.getUncached(instrumentedNode);<NEW_LINE>if (nodeLibrar... | getScope(instrumentedNode, frame, true); |
477,374 | // Favorites<NEW_LINE>protected Cell<WWindow> createFavorites(WContainer c) {<NEW_LINE>boolean hasFavorites = Modules.get().getAll().stream().<MASK><NEW_LINE>if (!hasFavorites)<NEW_LINE>return null;<NEW_LINE>WWindow w = theme.window("Favorites");<NEW_LINE>w.id = "favorites";<NEW_LINE>w.padding = 0;<NEW_LINE>w.spacing =... | anyMatch(module -> module.favorite); |
124,888 | public void createClients() throws InvalidParameterException {<NEW_LINE>AssetCatalog restClient;<NEW_LINE>if (localServerPassword == null) {<NEW_LINE>restClient = new AssetCatalog(partnerOMASServerName, partnerOMASPlatformRootURL);<NEW_LINE>} else {<NEW_LINE>restClient = new AssetCatalog(partnerOMASServerName, partnerO... | partnerOMASPlatformRootURL, localServerUserId, localServerPassword, auditLog); |
254,578 | private void load() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>p = tcp.<MASK><NEW_LINE>} catch (... | getSingle(RequestCmd.OBJECT_DUMP_FILE_LIST, param); |
176,539 | public void prefillLines(Timesheet timesheet) throws AxelorException {<NEW_LINE>PublicHolidayService holidayService = Beans.get(PublicHolidayService.class);<NEW_LINE>LeaveService leaveService = Beans.get(LeaveService.class);<NEW_LINE>WeeklyPlanningService weeklyPlanningService = Beans.get(WeeklyPlanningService.class);<... | .get(IExceptionMessage.TIMESHEET_DAY_LEAVE)); |
1,754,803 | private boolean isValidMessageHandler(Method handler) {<NEW_LINE>if (handler == null || ReflectionUtils.getAnnotation(handler, Handler.class) == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (handler.getParameterTypes().length != 1) {<NEW_LINE>// a messageHandler only defines one parameter (the message)<NEW_LIN... | handler.getName() + "]. A messageHandler must define exactly one parameter"); |
551,251 | public Map<ReturnableData, Object> handle(final RequestWrapper request, final HttpSession session) {<NEW_LINE>final User requestingUser = (User) session.getAttribute(SessionAttribute.USER);<NEW_LINE>assert (requestingUser != null);<NEW_LINE>final Map<ReturnableData, Object> ret = new HashMap<>();<NEW_LINE>final String ... | ID_CODE, user.getIdCode()); |
983,105 | public void run() {<NEW_LINE>WatchService watcher;<NEW_LINE>try {<NEW_LINE>watcher = FileSystems.getDefault().newWatchService();<NEW_LINE>Path srcDir = Paths.get("src/main/java/org/glassfish/jersey/examples/reload");<NEW_LINE>registerWatcher(watcher, srcDir);<NEW_LINE>Path configFilePath = Paths.get(".");<NEW_LINE>regi... | File configFile = new File(CONFIG_FILENAME); |
1,818,407 | protected void partialFinish(ManufOrder manufOrder, int inOrOut) throws AxelorException {<NEW_LINE>if (inOrOut != PART_FINISH_IN && inOrOut != PART_FINISH_OUT) {<NEW_LINE>throw new IllegalArgumentException(I18n.get(IExceptionMessage.IN_OR_OUT_INVALID_ARG));<NEW_LINE>}<NEW_LINE>Company company = manufOrder.getCompany();... | (new ArrayList<>()); |
1,601,770 | public Object toConnectRow(final Object ksqlData) {<NEW_LINE>if (!(ksqlData instanceof Struct)) {<NEW_LINE>return ksqlData;<NEW_LINE>}<NEW_LINE>final Schema schema = getSchema();<NEW_LINE>final Struct struct = new Struct(schema);<NEW_LINE>final Struct originalData = (Struct) ksqlData;<NEW_LINE>final Schema originalSche... | ())).findFirst(); |
1,443,567 | public void onBlockEntityDamage(final EntityDamageByEntityEvent event) {<NEW_LINE>Player player = null;<NEW_LINE>if (event.getDamager() instanceof Player) {<NEW_LINE>player = <MASK><NEW_LINE>} else if (event.getDamager() instanceof Projectile && ((Projectile) event.getDamager()).getShooter() instanceof Player) {<NEW_LI... | (Player) event.getDamager(); |
732,582 | private List<BookmarksAllSubscriptionPageData> makeItems() {<NEW_LINE>List<BookmarksAllSubscriptionPageData> <MASK><NEW_LINE>for (BookmarksAllSubscriptionPage page : mPageOrderList) {<NEW_LINE>int resId = 0;<NEW_LINE>switch(page) {<NEW_LINE>case GUIDES:<NEW_LINE>resId = R.drawable.all_pass_premium_60;<NEW_LINE>break;<N... | items = new ArrayList<>(); |
869,029 | private static Tuple<String, TokenizerFactory> parseTokenizerFactory(AnalyzeRequest request, IndexAnalyzers indexAnalzyers, AnalysisRegistry analysisRegistry, Environment environment) throws IOException {<NEW_LINE>String name;<NEW_LINE>TokenizerFactory tokenizerFactory;<NEW_LINE>final AnalyzeRequest.NameOrDefinition to... | tokenizerFactoryFactory = analysisRegistry.getTokenizerProvider(tokenizerTypeName); |
1,333,466 | public StateMachine toObject(ResultSet resultSet) throws SQLException {<NEW_LINE>StateMachineImpl stateMachine = new StateMachineImpl();<NEW_LINE>stateMachine.setId(resultSet.getString("id"));<NEW_LINE>stateMachine.setName(resultSet.getString("name"));<NEW_LINE>stateMachine.setComment<MASK><NEW_LINE>stateMachine.setVer... | (resultSet.getString("comment_")); |
1,319,901 | static Object readMember(GraalHPyBuffer receiver, String key, @Cached(value = "receiver.getSupplier()", allowUncached = true) @SuppressWarnings("unused") ConversionNodeSupplier cachedSupplier, @Cached(value = "cachedSupplier.createToNativeNode()", uncached = "cachedSupplier.getUncachedToNativeNode()") CExtToNativeNode ... | receiver.buffer.getSuboffsets()); |
1,598,702 | private static void createBrokerResourceIfNeeded(String helixClusterName, HelixAdmin helixAdmin, boolean enableBatchMessageMode) {<NEW_LINE>// Add state model definition if needed<NEW_LINE>String stateModel = PinotHelixBrokerResourceOnlineOfflineStateModelGenerator.PINOT_BROKER_RESOURCE_ONLINE_OFFLINE_STATE_MODEL;<NEW_... | stateModel, PinotHelixBrokerResourceOnlineOfflineStateModelGenerator.generatePinotStateModelDefinition()); |
1,174,947 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.nlink_t, NativeType.UINT); |
348,978 | protected void stopProfiling(String contextroot, String basePath, ProfileFactory pf) {<NEW_LINE>String appid = MonitorServerUtil.getApplicationId(contextroot, basePath);<NEW_LINE>if (this.logger.isLogEnabled()) {<NEW_LINE>this.logger.info("destorying profile of Application[ " + appid + "] START...");<NEW_LINE>}<NEW_LIN... | info("destorying profile of Application[ " + appid + "] END SUCCESS"); |
1,806,855 | public void invoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>if (getNext() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check if we already filtered/processed this request<NEW_LINE>if (request.getNote(ALREADY_FILTERED_NOTE) == null) {<NEW_LINE>request.setNote(ALREADY_FILT... | currentThread().setContextClassLoader(applicationClassLoader); |
370,279 | protected void doHandle(final String[] args, final RedisClient redisClient) throws Exception {<NEW_LINE>// in non-psync executor<NEW_LINE>final RedisKeeperServer redisKeeperServer = redisClient.getRedisKeeperServer();<NEW_LINE>if (redisKeeperServer.rdbDumper() == null && redisKeeperServer.getReplicationStore().isFresh(... | error("[run]" + redisClient, th); |
47,964 | protected void buildMainPanel() {<NEW_LINE>mainPanel.setContinuousLayout(true);<NEW_LINE>JPanel modulePanel = new JPanel(new BorderLayout());<NEW_LINE>moduleTable = new GhidraTable(moduleTableModel);<NEW_LINE>moduleTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);<NEW_LINE>modulePanel.add(new JScr... | mLenCol.setCellRenderer(CustomToStringCellRenderer.MONO_ULONG_HEX); |
1,542,775 | protected ValuesSourceConfig resolveConfig(QueryShardContext queryShardContext) {<NEW_LINE>ValuesSourceConfig config;<NEW_LINE>ParentJoinFieldMapper parentJoinFieldMapper = ParentJoinFieldMapper.getMapper(queryShardContext.getMapperService());<NEW_LINE>if (parentJoinFieldMapper == null) {<NEW_LINE>// Unmapped field cas... | resolveUnmapped(defaultValueSourceType(), queryShardContext); |
993,659 | public PartListing listParts(ListPartsRequest listPartsRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(listPartsRequest, "listPartsRequest");<NEW_LINE><MASK><NEW_LINE>String bucketName = listPartsRequest.getBucketName();<NEW_LINE>String uploadId = listPartsRequest.getUploadId();<NEW_LINE... | String key = listPartsRequest.getKey(); |
119,289 | private SofaTracerSpan serverReceived(Invocation invocation) {<NEW_LINE>Map<String, String> <MASK><NEW_LINE>tags.put(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER);<NEW_LINE>String serializeSpanContext = invocation.getAttachments().get(CommonSpanTags.RPC_TRACE_NAME);<NEW_LINE>SofaTracerSpanContext sofaTracerSpanContex... | tags = new HashMap<>(); |
1,800,275 | public void testCustomMPContextIsPropagatedWhenConfigured() throws Exception {<NEW_LINE>CompletableFuture<String> initialStage = mpExecutor.newIncompleteFuture();<NEW_LINE>CompletableFuture<String> executorThreadPriorities;<NEW_LINE>int defaultPriority = Thread.currentThread().getPriority();<NEW_LINE>Thread.currentThre... | (TIMEOUT_NS, TimeUnit.NANOSECONDS)); |
194,825 | public DownloadIsoToPrimaryStorageMsg call(CdRomSpec cdRomSpec) {<NEW_LINE>if (cdRomSpec.getImageUuid() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String psUuid;<NEW_LINE>ImageSpec imageSpec = new ImageSpec();<NEW_LINE>final ImageInventory iso = ImageInventory.valueOf(dbf.findByUuid(cdRomSpec.getImageUu... | (), ImageVO.class)); |
1,835,066 | private void updatePartitionState(long clusterGenerationId, Partition partition, List<DegraderTrackerClient> trackerClients, DegraderLoadBalancerStrategyConfig config) {<NEW_LINE>PartitionDegraderLoadBalancerState partitionState = partition.getState();<NEW_LINE>List<DegraderTrackerClientUpdater> clientUpdaters = new Ar... | , partition.getId())); |
1,199,742 | public static boolean jumpToSavedLocation(Location location, Model model, Set<Class<? extends ITextEditor>> blacklist) {<NEW_LINE>IEditorPart editor = model.getAdapter(ModelEditor.class);<NEW_LINE>if (editor instanceof ModelEditor) {<NEW_LINE>ModelEditor modelEditor = (ModelEditor) editor;<NEW_LINE>ITextEditor moduleEd... | ), jumpToRegion.getLength()); |
319,713 | public DBRecord insertMatchRecord(VTMatchInfo info, VTMatchSetDB matchSet, VTAssociationDB association, VTMatchTagDB tag) throws IOException {<NEW_LINE>DBRecord record = TABLE_SCHEMA.createRecord(table.getKey());<NEW_LINE>record.setLongValue(TAG_KEY_COL.column(), (tag == null) ? -1 : tag.getKey());<NEW_LINE>record.setS... | ), info.getDestinationLength()); |
23,636 | public com.amazonaws.services.iot.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iot.model.ConflictException conflictException = new com.amazonaws.services.iot.model.ConflictException(null);<NEW_LINE><MASK><NEW_LINE>String currentParentE... | int originalDepth = context.getCurrentDepth(); |
195,411 | public int feedCipherBytes(ByteBuffer buffer, SocketAddress peer) throws IOException {<NEW_LINE>try (AutoLock ignore = lock.lock()) {<NEW_LINE>if (quicheConn == null)<NEW_LINE>throw new IOException("Cannot receive when not connected");<NEW_LINE>long received;<NEW_LINE>try (ResourceScope scope = ResourceScope.newConfine... | ), recvInfo.address()); |
1,617,477 | public void convert(boolean askPath, Consumer<String>... nextStep) {<NEW_LINE>Path currentTabPath = current.currentPath().get();<NEW_LINE>Path currentTabPathDir = currentTabPath.getParent();<NEW_LINE>String asciidoc = current.currentEditorValue();<NEW_LINE>threadService.runTaskLater(() -> {<NEW_LINE>TextChangeEvent eve... | rootDocument.document(), false); |
1,571,888 | public final <U> SelectField<U> mapping(Class<U> uType, Function19<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? super T9, ? super T10, ? super T11, ? super T12, ? super T13, ? super T14, ? super T15, ? super T16, ? super T17, ? super T18, ? super T19, ? extends U> fu... | , r.value19())); |
798,190 | // fs, src, dest<NEW_LINE>public void uploadFiles(String localDir, String hdDir) throws Exception {<NEW_LINE>try {<NEW_LINE>List<String> lsDir = new ArrayList<String>();<NEW_LINE>List<String> lsFile = new ArrayList<String>();<NEW_LINE>folderLocalTaversal(localDir, lsDir, lsFile);<NEW_LINE>String sDir = localDir.replace... | dir.replace(sDir, ""); |
1,368,797 | private void notifyForgottenLocalFiles() {<NEW_LINE>NotificationCompat.Builder notificationBuilder = createNotificationBuilder();<NEW_LINE>notificationBuilder.setTicker(i18n<MASK><NEW_LINE>// / includes a pending intent in the notification showing a more detailed explanation<NEW_LINE>Intent explanationIntent = new Inte... | (R.string.sync_foreign_files_forgotten_ticker)); |
799,151 | void writeIdentityProvider(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException {<NEW_LINE>if (!model.isDefined()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Property idp : model.asPropertyList()) {<NEW_LINE>writer.writeStartElement(Constants.XML.IDENTITY_PROVIDER);<NEW_LINE>writer.writeAttribute... | (Constants.Model.ALLOWED_CLOCK_SKEW)); |
587,361 | public Function newInstance(int position, ObjList<Function> args, IntList argPositions, CairoConfiguration configuration, SqlExecutionContext sqlExecutionContext) throws SqlException {<NEW_LINE>Function fmt = args.getQuick(1);<NEW_LINE>CharSequence format = fmt.getStr(null);<NEW_LINE>if (format == null) {<NEW_LINE>thro... | ), configuration.getDefaultDateLocale()); |
763,167 | public double convertUnits(String convertFromValue, String convertToUnits) {<NEW_LINE>double result = 0;<NEW_LINE>TiDimension dimension = new TiDimension(convertFromValue, TiDimension.TYPE_UNDEFINED);<NEW_LINE>// TiDimension needs a view to grab the window manager, so we'll just use the decorview of the current window<... | result = dimension.getAsCentimeters(view); |
861,701 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select id, sum(value) as thesum from SupportEventWithIntArray group by array";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendAssertIntArray(env, "E1", new int[] { 1<MASK><NEW_LINE>env.milestone(0);<NEW_LINE>sendAssertIntAr... | , 2 }, 5, 5); |
1,083,826 | public boolean continueSettling(boolean deferCallbacks) {<NEW_LINE>if (this.mDragState == 2) {<NEW_LINE>boolean keepGoing = this.mScroller.computeScrollOffset();<NEW_LINE>int x = this.mScroller.getCurrX();<NEW_LINE>int y = this.mScroller.getCurrY();<NEW_LINE>int dx = x - this.mCapturedView.getLeft();<NEW_LINE>int dy = ... | this.mCapturedView.offsetTopAndBottom(dy); |
894,594 | public void select(List<String> clientProtocols) {<NEW_LINE>SSLEngine sslEngine = getSSLEngine();<NEW_LINE>List<String> serverProtocols = getProtocols();<NEW_LINE>SSLSession sslSession = sslEngine.getHandshakeSession();<NEW_LINE>if (sslSession == null)<NEW_LINE>sslSession = sslEngine.getSession();<NEW_LINE>String tlsPr... | clientProtocols, serverProtocols, getEndPoint()); |
1,741,422 | public int moveItem(int fromAdapterIndex, int toAdapterIndex) {<NEW_LINE>final TiListView listView = getListView();<NEW_LINE>if (listView != null) {<NEW_LINE>final ListItemProxy fromItem = listView.getAdapterItem(fromAdapterIndex);<NEW_LINE>final ListSectionProxy fromSection = (ListSectionProxy) fromItem.getParent();<N... | toItem.getIndexInSection(), 0); |
1,084,331 | // The tested deployment exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC<NEW_LINE>public void launchTck() throws Exception {<NEW_LINE>// disable tests for Java versions 11.0.0 - 11.0.3 since there's a bug in TLS 1.3 implementation<NEW_LINE>JavaInfo javaInfo = JavaInfo.forServer(server);<NEW_LI... | .microVersion() <= 3)); |
1,586,754 | private void checkFileName() {<NEW_LINE>if (selectedFolder == null)<NEW_LINE>return;<NEW_LINE>selectedDataObject = null;<NEW_LINE>String fileName = fileNameTextField.getText();<NEW_LINE>if ("".equals(fileName)) {<NEW_LINE>// NOI18N<NEW_LINE>okButton.setEnabled(false);<NEW_LINE>if (newButton != null)<NEW_LINE>newButton.... | getPrimaryFile().getFileObject(fileName); |
894,157 | String fillMessageMutation(MutationBatch mb, Message message) throws MessageQueueException {<NEW_LINE>// Get the execution time from the message or set to current time so it runs immediately<NEW_LINE>long curTimeMicros;<NEW_LINE>if (!message.hasTrigger()) {<NEW_LINE>curTimeMicros = TimeUnit.MICROSECONDS.convert(System.... | MessageQueueException("Failed to serialize message data: " + message, e); |
573,932 | public static <T extends Resource> Flux<OrderByRowResult<Document>> orderedMerge(OrderbyRowComparer<Document> consumeComparer, RequestChargeTracker tracker, List<DocumentProducer<Document>> documentProducers, Map<String, QueryMetrics> queryMetricsMap, Map<FeedRangeEpkImpl, OrderByContinuationToken> targetRangeToOrderBy... | toArray(Flux[]::new); |
1,855,283 | public okhttp3.Call updateTopicsCall(String apiId, TopicListDTO topicListDTO, String ifMatch, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = topicListDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/topics".replaceAll("\\{" + "apiId" + "... | = new ArrayList<Pair>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.