<commit_before><html>
<head>
<script src="https://code.angularjs.org/2.0.0-beta.13/angular2-polyfills.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.13/Rx.umd.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.13/angular2-all.umd.min.js"></script>
<script src="../lib/php_crud_api_transform.js"></script>
<script>
AppComponent =
  ng.core.Component({
    selector: 'my-app',
    providers: [ng.http.HTTP_PROVIDERS],
    template: '<ul><li *ngFor="#x of posts">{{ x.id + ", " + x.content }}</li></ul>'
  })
  .Class({
    constructor: [
      ng.http.Http, function(http) {
        http.post("http://localhost:8000/blog.php/posts",JSON.stringify({user_id:1,category_id:1,content:"from angular"})).subscribe();
        http.get("http://localhost:8000/blog.php/posts").map(response => php_crud_api_transform(response.json()))
          .subscribe(response => this.posts = response.posts);
      }
    ]
  });
document.addEventListener("DOMContentLoaded", function(event) {
  ng.platform.browser.bootstrap(AppComponent);
});
</script>
</head>
<body>
    <my-app>Loading...</my-app>
</body>
</html><commit_msg>Enable production mode in ng2<commit_after><html>
<head>
<script src="https://code.angularjs.org/2.0.0-beta.13/angular2-polyfills.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.13/Rx.umd.min.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.13/angular2-all.umd.min.js"></script>
<script src="../lib/php_crud_api_transform.js"></script>
<script>
AppComponent =
  ng.core.Component({
    selector: 'my-app',
    providers: [ng.http.HTTP_PROVIDERS],
    template: '<ul><li *ngFor="#x of posts">{{ x.id + ", " + x.content }}</li></ul>'
  })
  .Class({
    constructor: [
      ng.http.Http, function(http) {
        http.post("http://localhost:8000/blog.php/posts",JSON.stringify({user_id:1,category_id:1,content:"from angular"})).subscribe();
        http.get("http://localhost:8000/blog.php/posts").map(response => php_crud_api_transform(response.json()))
          .subscribe(response => this.posts = response.posts);
      }
    ]
  });
document.addEventListener("DOMContentLoaded", function(event) {
  ng.core.enableProdMode();
  ng.platform.browser.bootstrap(AppComponent);
});
</script>
</head>
<body>
    <my-app>Loading...</my-app>
</body>
</html>
{'fraction_non_alphanumeric': 0.21893744644387317, 'fraction_numerical': 0.02356469580119966, 'mean_word_length': 4.054112554112554, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 51, 'https://': 6, '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': '5596211', 'n_tokens_mistral': 850, 'n_tokens_neox': 829, 'n_words': 94}