<commit_before>import {selectorRegExpFactory} from './helper';

// TODO: hard coded for now
// TODO: build from preboot config
// consider declarative config via directive <preboot minify="true"></preboot>
export const prebootScript: string = `
  <preboot>
    <link rel="stylesheet" type="text/css" href="/preboot/preboot.css">
    <script src="/preboot/preboot.js"></script>
    <script>preboot.start()</script>
  </preboot>
`;
// Inject Angular for the developer
export const angularScript: string = `
  <!-- Browser polyfills -->
  <script src="/bower_components/traceur-runtime/traceur-runtime.min.js"></script>
  <!-- SystemJS -->
  <script src="/bower_components/system.js/dist/system.js"></script>
  <!-- Angular2: Bundle -->
  <script src="/web_modules/js/bundle/angular2.dev.js"></script>
  <script src="/web_modules/js/bundle/router.dev.js"></script>
  <script src="/web_modules/js/bundle/http.dev.js"></script>
  <script type="text/javascript">
    System.config({
      "baseURL": "/",
      "defaultJSExtensions": true,
      "map": {
        "*": "*.js",
        "angular2": "node_modules/angular2",
        "rx": "node_modules/rx/dist/rx.min"
      },
      'meta': {
        // auto-detection fails to detect properly
        "rx": {
          "format": "cjs" //https://github.com/systemjs/builder/issues/123
        }
      }
    });
  </script>
`;

export const bootstrapButton: string = `<commit_msg>refactor(ngScripts): use node_modules<commit_after>import {selectorRegExpFactory} from './helper';

// TODO: hard coded for now
// TODO: build from preboot config
// consider declarative config via directive <preboot minify="true"></preboot>
export const prebootScript: string = `
  <preboot>
    <link rel="stylesheet" type="text/css" href="/preboot/preboot.css">
    <script src="/preboot/preboot.js"></script>
    <script>preboot.start()</script>
  </preboot>
`;
// Inject Angular for the developer
export const angularScript: string = `
  <!-- Browser polyfills -->
  <script src="/node_modules/es6-shim/es6-shim.min.js"></script>
  <script src="/node_modules/angular2/bundle/angular2-polyfills.min.js"></script>
  <!-- SystemJS -->
  <script src="/bower_components/system.js/dist/system.js"></script>
  <!-- Angular2: Bundle -->
  <script src="/node_modules/angular2/bundle/angular2.dev.js"></script>
  <script src="/node_modules/angular2/bundle/router.dev.js"></script>
  <script src="/node_modules/angular2/bundle/http.dev.js"></script>
  <script type="text/javascript">
    System.config({
      "baseURL": "/",
      "defaultJSExtensions": true,
      "map": {
        "*": "*.js",
        "angular2": "node_modules/angular2"
      }
    });
  </script>
`;

export const bootstrapButton: string = `
{'fraction_non_alphanumeric': 0.18151815181518152, 'fraction_numerical': 0.006600660066006601, 'mean_word_length': 3.4285714285714284, 'pattern_counts': {'":': 13, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 1, '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': '5313804', 'n_tokens_mistral': 884, 'n_tokens_neox': 863, 'n_words': 162}