<commit_before>import {Component, PostConstruct, Bean, Autowired, Context} from "ag-grid/main";
import {ColumnSelectPanel} from "./columnsSelect/columnSelectPanel";
import {RowGroupColumnsPanel} from "./columnDrop/rowGroupColumnsPanel";
import {PivotColumnsPanel} from "./columnDrop/pivotColumnsPanel";

@Bean('toolPanel')
export class ToolPanelComp extends Component {

    private static TEMPLATE = '<div class="ag-tool-panel"></div>';

    @Autowired('context') private context: Context;

    private columnSelectPanel: ColumnSelectPanel;

    constructor() {
        super(ToolPanelComp.TEMPLATE);
    }

    @PostConstruct
    public init(): void {

        this.columnSelectPanel = new ColumnSelectPanel(true);
        this.context.wireBean(this.columnSelectPanel);

        this.addInWrapper(this.columnSelectPanel.getGui(), '70%');

        var p2 = new RowGroupColumnsPanel(false);
        var p4 = new PivotColumnsPanel(false);

        this.context.wireBean(p2);
        this.context.wireBean(p4);

        this.addInWrapper(p2.getGui(), '15%');
        this.addInWrapper(p4.getGui(), '15%');
    }

    private addInWrapper(eElement: HTMLElement, height: string): void {
        var eDiv = document.createElement('div');
        eDiv.style.height = height;
        eDiv.appendChild(eElement);
        this.getGui().appendChild(eDiv);
    }
}<commit_msg>updates to themes<commit_after>import {Component, PostConstruct, Bean, Autowired, Context} from "ag-grid/main";
import {ColumnSelectPanel} from "./columnsSelect/columnSelectPanel";
import {RowGroupColumnsPanel} from "./columnDrop/rowGroupColumnsPanel";
import {PivotColumnsPanel} from "./columnDrop/pivotColumnsPanel";

@Bean('toolPanel')
export class ToolPanelComp extends Component {

    private static TEMPLATE = '<div class="ag-tool-panel"></div>';

    @Autowired('context') private context: Context;

    private columnSelectPanel: ColumnSelectPanel;

    constructor() {
        super(ToolPanelComp.TEMPLATE);
    }

    @PostConstruct
    public init(): void {

        this.columnSelectPanel = new ColumnSelectPanel(true);
        this.context.wireBean(this.columnSelectPanel);

        this.addInWrapper(this.columnSelectPanel.getGui(), '100%');

        var p2 = new RowGroupColumnsPanel(false);
        var p4 = new PivotColumnsPanel(false);

        this.context.wireBean(p2);
        this.context.wireBean(p4);

        // this.addInWrapper(p2.getGui(), '15%');
        // this.addInWrapper(p4.getGui(), '15%');
    }

    private addInWrapper(eElement: HTMLElement, height: string): void {
        var eDiv = document.createElement('div');
        eDiv.style.height = height;
        eDiv.appendChild(eElement);
        this.getGui().appendChild(eDiv);
    }
}
{'fraction_non_alphanumeric': 0.1291499452754469, 'fraction_numerical': 0.009120758847136081, 'mean_word_length': 3.6553480475382005, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3078904', 'n_tokens_mistral': 813, 'n_tokens_neox': 784, 'n_words': 156}