<commit_before>import {AfterViewInit, Component, ElementRef, OnInit, QueryList, ViewChild, ViewChildren} from "@angular/core";
import {FormControl} from "@angular/forms";
import {Observable} from "rxjs/Observable";
import {App} from "../../../../../electron/src/sbg-api-client/interfaces/app";

import {LocalFileRepositoryService} from "../../../file-repository/local-file-repository.service";
import {LocalRepositoryService} from "../../../repository/local-repository.service";
import {PlatformRepositoryService} from "../../../repository/platform-repository.service";
import {TreeNode} from "../../../ui/tree-view/tree-node";
import {TreeViewComponent} from "../../../ui/tree-view/tree-view.component";
import {TreeViewService} from "../../../ui/tree-view/tree-view.service";
import {DirectiveBase} from "../../../util/directive-base/directive-base";
import {TabData} from "../../workbox/tab-data.interface";
import {WorkboxService} from "../../workbox/workbox.service";
import {NavSearchResultComponent} from "../nav-search-result/nav-search-result.component";
import {PublicAppsPanelService} from "./public-apps-panel.service";
import {LocalRepositoryService} from "../../../repository/local-repository.service";
import {Subject} from "rxjs/Subject";
import {AppHelper} from "../../helpers/AppHelper";

@Component({
    selector: "ct-public-apps-panel",
    template: `
        <ct-search-field class="m-1" [formControl]="searchContent"
                         [placeholder]="'Search Public Apps'"></ct-search-field>

        <div class="btn-group grouping-toggle" *ngIf="!searchContent?.value">

                <label class="input-label" title="Group By:">
                    Group by: 
                </label>                
     
                <ct-generic-dropdown-menu [ct-menu]="menu" [menuState]="groupByOpenStatus">
                    <span>{{ grouping }}
                        <i class="fa fa-chevron-down fa-fw settings-icon"> </i>
                    </span>
                    
                </ct-generic-dropdown-menu><commit_msg>remove duplicate import identifier<commit_after>import {AfterViewInit, Component, ElementRef, OnInit, QueryList, ViewChild, ViewChildren} from "@angular/core";
import {FormControl} from "@angular/forms";
import {Observable} from "rxjs/Observable";
import {App} from "../../../../../electron/src/sbg-api-client/interfaces/app";

import {LocalFileRepositoryService} from "../../../file-repository/local-file-repository.service";
import {LocalRepositoryService} from "../../../repository/local-repository.service";
import {PlatformRepositoryService} from "../../../repository/platform-repository.service";
import {TreeNode} from "../../../ui/tree-view/tree-node";
import {TreeViewComponent} from "../../../ui/tree-view/tree-view.component";
import {TreeViewService} from "../../../ui/tree-view/tree-view.service";
import {DirectiveBase} from "../../../util/directive-base/directive-base";
import {TabData} from "../../workbox/tab-data.interface";
import {WorkboxService} from "../../workbox/workbox.service";
import {NavSearchResultComponent} from "../nav-search-result/nav-search-result.component";
import {PublicAppsPanelService} from "./public-apps-panel.service";
import {Subject} from "rxjs/Subject";
import {AppHelper} from "../../helpers/AppHelper";

@Component({
    selector: "ct-public-apps-panel",
    template: `
        <ct-search-field class="m-1" [formControl]="searchContent"
                         [placeholder]="'Search Public Apps'"></ct-search-field>

        <div class="btn-group grouping-toggle" *ngIf="!searchContent?.value">

                <label class="input-label" title="Group By:">
                    Group by: 
                </label>                
     
                <ct-generic-dropdown-menu [ct-menu]="menu" [menuState]="groupByOpenStatus">
                    <span>{{ grouping }}
                        <i class="fa fa-chevron-down fa-fw settings-icon"> </i>
                    </span>
                    
                </ct-generic-dropdown-menu>
{'fraction_non_alphanumeric': 0.18130241736556488, 'fraction_numerical': 0.000493339911198816, 'mean_word_length': 2.706581352833638, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '2370840', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1095, 'n_words': 222}