<commit_before>/*
 * Squidex Headless CMS
 *
 * @license
 * Copyright (c) <NAME>. All rights reserved
 */

import { Observable } from 'rxjs';

import { AppsStoreService, NotificationService } from './../declarations-base';

import { ComponentBase } from './component-base';

export abstract class AppComponentBase extends ComponentBase {
    private appName$: Observable<string>;

    constructor(notifications: NotificationService,
        private readonly appsStore: AppsStoreService
    ) {
        super(notifications);

        this.appName$ = this.appsStore.selectedApp.map(a => a!.name).take(1);
    }

    public appName(): Observable<string> {
        return this.appName$;
    }
}
<commit_msg>Bugfix for api name.<commit_after>/*
 * Squidex Headless CMS
 *
 * @license
 * Copyright (c) <NAME>. All rights reserved
 */

import { Observable } from 'rxjs';

import { AppsStoreService, NotificationService } from './../declarations-base';

import { ComponentBase } from './component-base';

export abstract class AppComponentBase extends ComponentBase {
    private appName$: Observable<string>;

    constructor(notifications: NotificationService,
        private readonly appsStore: AppsStoreService
    ) {
        super(notifications);

        this.appName$ = this.appsStore.selectedApp.filter(a => !!a).map(a => a!.name);
    }

    public appName(): Observable<string> {
        return this.appName$;
    }
}

{'fraction_non_alphanumeric': 0.12306610407876231, 'fraction_numerical': 0.0007032348804500703, 'mean_word_length': 3.4889589905362777, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5392274', 'n_tokens_mistral': 409, 'n_tokens_neox': 387, 'n_words': 100}