<commit_before>import { PluginObject } from 'vue';
import {
    ACCORDION_NAME, ACCORDION_GROUP_NAME, BULLET_LIST_NAME, BUTTON_NAME, BUTTON_GROUP_NAME, LIST_ITEM_NAME, CHECKBOX_NAME, DIALOG_NAME, DROPDOWN_NAME, DROPDOWN_GROUP_NAME, DROPDOWN_ITEM_NAME, DYNAMIC_TEMPLATE_NAME, FLEX_TEMPLATE_NAME, I18N_NAME, LIMIT_TEXT_NAME, ICON_NAME, INPUT_STYLE_NAME, LINK_NAME, MESSAGE_NAME, MODAL_NAME, NAV_BAR_NAME, NAV_BAR_ITEM_NAME, OPTIONS_MENU_NAME, PANEL_NAME, POPPER_NAME, POPUP_NAME, RADIO_NAME, RADIO_GROUP_NAME, SCROLL_TOP_NAME, SIDEBAR_NAME, SPINNER_NAME, STATUS_LIST_NAME, STEP_NAME, SWITCH_NAME, TABLE_NAME, TABS_NAME, TEMPLATE_NAME, TEXT_FIELD_NAME,
    TIMEPICKER_NAME, TOOLTIP_NAME, UPLOAD_NAME, UPLOAD_INPUT_NAME, UPLOAD_DRAGDROP_NAME, UPLOAD_FILESLIST_NAME
} from '../components/component-names';
import { RIPPLE_EFFECT_NAME } from '../directives/directive-names';
import { Meta } from './meta';

// should be i18n key format
export const CATEGORY_COMUNICATION: string = 'meta:communication';
export const CATEGORY_CONTENT: string = 'meta:content';
export const CATEGORY_FORMS: string = 'meta:forms';
export const CATEGORY_INDICATORS: string = 'meta:indicators';
export const CATEGORY_NAVIGATION: string = 'meta:navigation';
export const CATEGORY_SEARCH_SORT: string = 'meta:search-sort';
export const CATEGORY_LAYOUT: string = 'meta:layout';

export class MetaAll implements PluginObject<any> {
    public install(v, options) {
        if (!options) {
            throw new Error('MetaAll.install -> you must provide a Meta object within the options argument');
        }
        const meta: Meta = options as Meta;
        meta.mergeComponentMeta(ACCORDION_NAME, require('../components/accordion/accordion.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(ACCORDION_GROUP_NAME, require('../components/accordion-group/accordion-group.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(BULLET_LIST_NAME, require('../components/bullet-list/bullet-list.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(BUTTON_NAME, require('../components/button/button.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(BUTTON_GROUP_NAME, require('../components/button-group/button-group.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(LIST_ITEM_NAME, require('../components/list-item/list-item.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(CHECKBOX_NAME, require('../components/checkbox/checkbox.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DIALOG_NAME, require('../components/dialog-window/dialog-window.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(DROPDOWN_NAME, require('../components/dropdown/dropdown.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DROPDOWN_ITEM_NAME, require('../components/dropdown-item/dropdown-item.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DROPDOWN_GROUP_NAME, require('../components/dropdown-group/dropdown-group.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DYNAMIC_TEMPLATE_NAME, require('../components/dynamic-template/dynamic-template.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(FLEX_TEMPLATE_NAME, require('../components/flex-template/flex-template.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(I18N_NAME, require('../components/i18n/i18n.meta.json'));
        meta.mergeComponentMeta(ICON_NAME, require('../components/input-style/input-style.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(INPUT_STYLE_NAME, require('../components/icon/icon.meta.json'), CATEGORY_INDICATORS);
        meta.mergeComponentMeta(LIMIT_TEXT_NAME, require('../components/limit-text/limit-text.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(LINK_NAME, require('../components/link/link.meta.json'), CATEGORY_NAVIGATION);
        meta.mergeComponentMeta(MESSAGE_NAME, require('../components/message/message.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(MODAL_NAME, require('../components/modal-window/modal-window.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(NAV_BAR_NAME, require('../components/nav-bar/nav-bar.meta.json'), CATEGORY_NAVIGATION);
        meta.mergeComponentMeta(NAV_BAR_NAME, require('../components/nav-bar-item/nav-bar-item.meta.json'), CATEGORY_NAVIGATION);
        meta.mergeComponentMeta(OPTIONS_MENU_NAME, require('../components/options-menu/options-menu.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(PANEL_NAME, require('../components/panel/panel.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(POPPER_NAME, require('../components/popper/popper.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(POPUP_NAME, require('../components/popup/popup.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(RADIO_NAME, require('../components/radio/radio.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(RADIO_GROUP_NAME, require('../components/radio-group/radio-group.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(SCROLL_TOP_NAME, require('../components/scroll-top/scroll-top.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(SIDEBAR_NAME, require('../components/sidebar-window/sidebar-window.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(SPINNER_NAME, require('../components/spinner/spinner.meta.json'), CATEGORY_INDICATORS);
        meta.mergeComponentMeta(STATUS_LIST_NAME, require('../components/status-list/status-list.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(STEP_NAME, require('../components/step/step.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(SWITCH_NAME, require('../components/switch/switch.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(TABLE_NAME, require('../components/table/table.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(TABS_NAME, require('../components/tabs/tabs.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(TEMPLATE_NAME, require('../components/template/template.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(TEXT_FIELD_NAME, require('../components/text-field/text-field.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(TIMEPICKER_NAME, require('../components/timepicker/timepicker.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(TOOLTIP_NAME, require('../components/tooltip/tooltip.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(UPLOAD_NAME, require('../components/upload/upload.meta.json'), CATEGORY_FORMS);<commit_msg>input-style and icon meta problem<commit_after>import { PluginObject } from 'vue';
import {
    ACCORDION_NAME, ACCORDION_GROUP_NAME, BULLET_LIST_NAME, BUTTON_NAME, BUTTON_GROUP_NAME, LIST_ITEM_NAME, CHECKBOX_NAME, DIALOG_NAME, DROPDOWN_NAME, DROPDOWN_GROUP_NAME, DROPDOWN_ITEM_NAME, DYNAMIC_TEMPLATE_NAME, FLEX_TEMPLATE_NAME, I18N_NAME, LIMIT_TEXT_NAME, ICON_NAME, INPUT_STYLE_NAME, LINK_NAME, MESSAGE_NAME, MODAL_NAME, NAV_BAR_NAME, NAV_BAR_ITEM_NAME, OPTIONS_MENU_NAME, PANEL_NAME, POPPER_NAME, POPUP_NAME, RADIO_NAME, RADIO_GROUP_NAME, SCROLL_TOP_NAME, SIDEBAR_NAME, SPINNER_NAME, STATUS_LIST_NAME, STEP_NAME, SWITCH_NAME, TABLE_NAME, TABS_NAME, TEMPLATE_NAME, TEXT_FIELD_NAME,
    TIMEPICKER_NAME, TOOLTIP_NAME, UPLOAD_NAME, UPLOAD_INPUT_NAME, UPLOAD_DRAGDROP_NAME, UPLOAD_FILESLIST_NAME
} from '../components/component-names';
import { RIPPLE_EFFECT_NAME } from '../directives/directive-names';
import { Meta } from './meta';

// should be i18n key format
export const CATEGORY_COMUNICATION: string = 'meta:communication';
export const CATEGORY_CONTENT: string = 'meta:content';
export const CATEGORY_FORMS: string = 'meta:forms';
export const CATEGORY_INDICATORS: string = 'meta:indicators';
export const CATEGORY_NAVIGATION: string = 'meta:navigation';
export const CATEGORY_SEARCH_SORT: string = 'meta:search-sort';
export const CATEGORY_LAYOUT: string = 'meta:layout';

export class MetaAll implements PluginObject<any> {
    public install(v, options) {
        if (!options) {
            throw new Error('MetaAll.install -> you must provide a Meta object within the options argument');
        }
        const meta: Meta = options as Meta;
        meta.mergeComponentMeta(ACCORDION_NAME, require('../components/accordion/accordion.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(ACCORDION_GROUP_NAME, require('../components/accordion-group/accordion-group.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(BULLET_LIST_NAME, require('../components/bullet-list/bullet-list.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(BUTTON_NAME, require('../components/button/button.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(BUTTON_GROUP_NAME, require('../components/button-group/button-group.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(LIST_ITEM_NAME, require('../components/list-item/list-item.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(CHECKBOX_NAME, require('../components/checkbox/checkbox.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DIALOG_NAME, require('../components/dialog-window/dialog-window.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(DROPDOWN_NAME, require('../components/dropdown/dropdown.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DROPDOWN_ITEM_NAME, require('../components/dropdown-item/dropdown-item.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DROPDOWN_GROUP_NAME, require('../components/dropdown-group/dropdown-group.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(DYNAMIC_TEMPLATE_NAME, require('../components/dynamic-template/dynamic-template.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(FLEX_TEMPLATE_NAME, require('../components/flex-template/flex-template.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(I18N_NAME, require('../components/i18n/i18n.meta.json'));
        meta.mergeComponentMeta(ICON_NAME, require('../components/icon/icon.meta.json'), CATEGORY_INDICATORS);
        meta.mergeComponentMeta(INPUT_STYLE_NAME, require('../components/input-style/input-style.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(LIMIT_TEXT_NAME, require('../components/limit-text/limit-text.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(LINK_NAME, require('../components/link/link.meta.json'), CATEGORY_NAVIGATION);
        meta.mergeComponentMeta(MESSAGE_NAME, require('../components/message/message.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(MODAL_NAME, require('../components/modal-window/modal-window.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(NAV_BAR_NAME, require('../components/nav-bar/nav-bar.meta.json'), CATEGORY_NAVIGATION);
        meta.mergeComponentMeta(NAV_BAR_NAME, require('../components/nav-bar-item/nav-bar-item.meta.json'), CATEGORY_NAVIGATION);
        meta.mergeComponentMeta(OPTIONS_MENU_NAME, require('../components/options-menu/options-menu.meta.json'), CATEGORY_CONTENT);
        meta.mergeComponentMeta(PANEL_NAME, require('../components/panel/panel.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(POPPER_NAME, require('../components/popper/popper.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(POPUP_NAME, require('../components/popup/popup.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(RADIO_NAME, require('../components/radio/radio.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(RADIO_GROUP_NAME, require('../components/radio-group/radio-group.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(SCROLL_TOP_NAME, require('../components/scroll-top/scroll-top.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(SIDEBAR_NAME, require('../components/sidebar-window/sidebar-window.meta.json'), CATEGORY_COMUNICATION);
        meta.mergeComponentMeta(SPINNER_NAME, require('../components/spinner/spinner.meta.json'), CATEGORY_INDICATORS);
        meta.mergeComponentMeta(STATUS_LIST_NAME, require('../components/status-list/status-list.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(STEP_NAME, require('../components/step/step.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(SWITCH_NAME, require('../components/switch/switch.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(TABLE_NAME, require('../components/table/table.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(TABS_NAME, require('../components/tabs/tabs.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(TEMPLATE_NAME, require('../components/template/template.meta.json'), CATEGORY_LAYOUT);
        meta.mergeComponentMeta(TEXT_FIELD_NAME, require('../components/text-field/text-field.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(TIMEPICKER_NAME, require('../components/timepicker/timepicker.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(TOOLTIP_NAME, require('../components/tooltip/tooltip.meta.json'), CATEGORY_FORMS);
        meta.mergeComponentMeta(UPLOAD_NAME, require('../components/upload/upload.meta.json'), CATEGORY_FORMS);
{'fraction_non_alphanumeric': 0.13361027190332325, 'fraction_numerical': 0.0015105740181268882, 'mean_word_length': 5.371992300288739, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1961157', 'n_tokens_mistral': 4319, 'n_tokens_neox': 4256, 'n_words': 503}