<commit_before>/*
 * README
 * any changes to this file and you have to run `npm run build` to generate the bundle
 *
 * Polyfills
 * Vendors
 * RxJS
 */

// Polyfills
export function polyfills(env?: IMetadata) : Array<string> {
    // return [
    //     // 'ie-shim',
    //
    //     'core-js/es6/symbol',
    //     'core-js/es6/object',
    //     'core-js/es6/function',
    //     'core-js/es6/parse-int',
    //     'core-js/es6/parse-float',
    //     'core-js/es6/number',
    //     'core-js/es6/math',
    //     'core-js/es6/string',
    //     'core-js/es6/date',
    //     'core-js/es6/array',
    //     'core-js/es6/regexp',
    //     'core-js/es6/map',
    //     'core-js/es6/set',
    //     'core-js/es6/weak-map',
    //     'core-js/es6/weak-set',
    //     'core-js/es6/typed',
    //     'core-js/es6/reflect',
    //     // 'core-js/es6/promise', // problem with firefox
    //     'core-js/es7/reflect',
    //
    //     // zone.js
    //     'zone.js/dist/zone',
    //     'zone.js/dist/long-stack-trace-zone',
    //
    //     // typescript helpers
    //     'ts-helpers',
    // ];

    let polyfills: Array<string> = [
        'reflect-metadata',
        'core-js/es6',
        'core-js/es7/reflect',
        'es6-shim',
        'zone.js/dist/zone'
    ];
    if(env != null)
    {
        if (env.IS_PRODUCTION) {
            // Production
        } else {
            // Development and test
            Error['stackTraceLimit'] = Infinity;
            polyfills.concat('zone.js/dist/long-stack-trace-zone');
        }
    }
    return polyfills;
}

// Angular 2 and other Vendor imports
export function vendors() : Array<string> {
    // return [
    //     '@angular/platform-browser',
    //     '@angular/platform-browser-dynamic',
    //     '@angular/compiler',
    //     '@angular/router',
    //     '@angular/forms',
    //     '@angular/common',
    //     '@angular/core',
    //     '@angular/http',
    //
    //     '@angularclass/form-validators',
    //     '@angularclass/hmr',
    // ];
    let vendors: Array<string> = [
        '@angular/platform-browser',
        '@angular/platform-browser-dynamic',
        '@angular/core',
        '@angular/common',
        '@angular/http',
        '@angular/router',
        '@angular/forms',

        'jquery',
        //'bootstrap-webpack'
        //'bootstrap-webpack!./bootstrap.config.js'
        'bootstrap-webpack!./Webpack/bootstrap-webpack/bootstrap.config.js'
    ];
    return vendors;
}

// RxJS
export function rxjs() : Array<string> {
    return [
        //TODO: choose only what you need!
        // 'rxjs/Observable',
        // 'rxjs/Subscription',
        // 'rxjs/Subject',
        // 'rxjs/BehaviorSubject',
        // 'rxjs/add/operator/map',
        // 'rxjs/add/operator/mergeMap',
        // 'rxjs/add/operator/distinctUntilChanged',
        'rxjs'
    ];
}
<commit_msg>added molecules() as Entry point for Webpack. Export all the function in one place<commit_after>/*
 * README
 * any changes to this file and you have to run `npm run build` to generate the bundle
 *
 * Polyfills
 * Vendors
 * RxJS
 */
import helper = require('../Webpack/helpers/path.helper');

// Polyfills
function polyfills(env?: IMetadata) : Array<string> {
    // return [
    //     // 'ie-shim',
    //
    //     'core-js/es6/symbol',
    //     'core-js/es6/object',
    //     'core-js/es6/function',
    //     'core-js/es6/parse-int',
    //     'core-js/es6/parse-float',
    //     'core-js/es6/number',
    //     'core-js/es6/math',
    //     'core-js/es6/string',
    //     'core-js/es6/date',
    //     'core-js/es6/array',
    //     'core-js/es6/regexp',
    //     'core-js/es6/map',
    //     'core-js/es6/set',
    //     'core-js/es6/weak-map',
    //     'core-js/es6/weak-set',
    //     'core-js/es6/typed',
    //     'core-js/es6/reflect',
    //     // 'core-js/es6/promise', // problem with firefox
    //     'core-js/es7/reflect',
    //
    //     // zone.js
    //     'zone.js/dist/zone',
    //     'zone.js/dist/long-stack-trace-zone',
    //
    //     // typescript helpers
    //     'ts-helpers',
    // ];

    let polyfills: Array<string> = [
        'reflect-metadata',
        'core-js/es6',
        'core-js/es7/reflect',
        'es6-shim',
        'zone.js/dist/zone'
    ];
    if(env != null)
    {
        if (env.IS_PRODUCTION) {
            // Production
        } else {
            // Development and test
            Error['stackTraceLimit'] = Infinity;
            polyfills.concat('zone.js/dist/long-stack-trace-zone');
        }
    }
    return polyfills;
}

// Angular 2 and other Vendor imports
function vendors() : Array<string> {
    // return [
    //     '@angular/platform-browser',
    //     '@angular/platform-browser-dynamic',
    //     '@angular/compiler',
    //     '@angular/router',
    //     '@angular/forms',
    //     '@angular/common',
    //     '@angular/core',
    //     '@angular/http',
    //
    //     '@angularclass/form-validators',
    //     '@angularclass/hmr',
    // ];
    let vendors: Array<string> = [
        '@angular/platform-browser',
        '@angular/platform-browser-dynamic',
        '@angular/core',
        '@angular/common',
        '@angular/http',
        '@angular/router',
        '@angular/forms',

        'jquery',
        //'bootstrap-webpack'
        //'bootstrap-webpack!./bootstrap.config.js'
        'bootstrap-webpack!./Webpack/bootstrap-webpack/bootstrap.config.js'
    ];
    return vendors;
}

// RxJS
function rxjs() : Array<string> {
    return [
        //TODO: choose only what you need!
        // 'rxjs/Observable',
        // 'rxjs/Subscription',
        // 'rxjs/Subject',
        // 'rxjs/BehaviorSubject',
        // 'rxjs/add/operator/map',
        // 'rxjs/add/operator/mergeMap',
        // 'rxjs/add/operator/distinctUntilChanged',
        'rxjs'
    ];
}

function  molecules(): Array<string>{
    return [
        helper.root('Evolution/Molecules/A.pdb'),
        helper.root('Evolution/Molecules/C.pdb'),
        helper.root('Evolution/Molecules/G.pdb'),
        helper.root('Evolution/Molecules/T.pdb')
    ];
}

export { polyfills, vendors, rxjs, molecules};

{'fraction_non_alphanumeric': 0.18489289740698986, 'fraction_numerical': 0.00740860041874698, 'mean_word_length': 1.6048657718120805, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5175289', 'n_tokens_mistral': 2124, 'n_tokens_neox': 2127, 'n_words': 300}