<commit_before>/// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/>

// we want font-awesome to load as soon as possible to show the fa-spinner
import 'bootstrap/dist/css/bootstrap.css';
import 'font-awesome/css/font-awesome.css';
import 'flatpickr/dist/flatpickr.min.css';
import 'multiple-select-modified/src/multiple-select.css';
import './styles.scss';
import { PLATFORM } from 'aurelia-pal';
import { Aurelia } from 'aurelia-framework';
import environment from './environment';
import { TCustomAttribute } from 'aurelia-i18n';
import Backend from 'i18next-xhr-backend';
import * as Bluebird from 'bluebird';
import 'bootstrap';

/** Disable long stack traces for IE11 */
Bluebird.config({
  warnings: {
    wForgottenReturn: false
  },
  longStackTraces: false
});

export function configure(aurelia: Aurelia) {
  aurelia.use.standardConfiguration();

  aurelia.use.feature(PLATFORM.moduleName('examples/resources/index'));

  // local aurelia-slickgrid
  aurelia.use.feature(PLATFORM.moduleName('aurelia-slickgrid/index'), config => {
    // change any of the default global options
    config.options.gridMenu.iconCssClass = 'fa fa-bars';
  });

  // aurelia i18n to handle multiple locales
  aurelia.use.plugin(PLATFORM.moduleName('aurelia-i18n'), instance => {
    const aliases = ['t', 'i18n'];<commit_msg>fix(build): import Flatpickr Locale on demand via regular imports (#504)<commit_after>/// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/>

// we want font-awesome to load as soon as possible to show the fa-spinner
import 'bootstrap/dist/css/bootstrap.css';
import 'font-awesome/css/font-awesome.css';
import 'flatpickr/dist/flatpickr.min.css';
import 'multiple-select-modified/src/multiple-select.css';
import './styles.scss';
import { PLATFORM } from 'aurelia-pal';
import { Aurelia } from 'aurelia-framework';
import environment from './environment';
import { TCustomAttribute } from 'aurelia-i18n';
import Backend from 'i18next-xhr-backend';
import * as Bluebird from 'bluebird';
import 'bootstrap';

/** Disable long stack traces for IE11 */
Bluebird.config({
  warnings: {
    wForgottenReturn: false
  },
  longStackTraces: false
});

export function configure(aurelia: Aurelia) {
  aurelia.use.standardConfiguration();

  aurelia.use.feature(PLATFORM.moduleName('examples/resources/index'));

  // local aurelia-slickgrid
  aurelia.use.feature(PLATFORM.moduleName('aurelia-slickgrid/index'), config => {
    // load necessary Flatpickr Locale(s), but make sure it's imported AFTER loading Aurelia-Slickgrid plugin
    import('flatpickr/dist/l10n/fr');

    // change any of the default global options
    config.options.gridMenu.iconCssClass = 'fa fa-bars';
  });

  // aurelia i18n to handle multiple locales
  aurelia.use.plugin(PLATFORM.moduleName('aurelia-i18n'), instance => {
    const aliases = ['t', 'i18n'];
{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.010062456627342124, 'mean_word_length': 4.652941176470589, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2698189', 'n_tokens_mistral': 958, 'n_tokens_neox': 925, 'n_words': 216}