<commit_before>var ng = require('angular2/core');
var ngHttp = require('angular2/http');
var Tech = require('./tech');
require('rxjs/Rx');

module.exports = ng.Component({
  selector: 'Techs',
  template:
    '<div class="techs-container">' +
      '<h2 class="techs-h2">' +
        'Cooked with all these awesome technologies:' +
      '</h2>' +
      '<div class="techs">' +
        '<Tech *ngFor="#tech of techs" [tech]="tech"></Tech>' +
      '</div>' +
    '</div>',
  directives: [Tech],
  providers: [ngHttp.HTTP_PROVIDERS]
})
.Class({
  constructor: [ngHttp.Http, function TechsController(http) { // https://github.com/angular/angular/issues/7507
    var vm = this;
    this.http = http;
    vm.getTechs().subscribe(function (result) {
      vm.techs = result;
    });
  }],
  getTechs: function getTechs () { // http://stackoverflow.com/questions/33458481/angular-2-how-to-use-http-in-es5
    return this.http
      .get('app/techs/techs.json')
      .map(function (response) {
        return response.json();
      });
  }
});<commit_msg>Remove space before function parenthesis<commit_after>var ng = require('angular2/core');
var ngHttp = require('angular2/http');
var Tech = require('./tech');
require('rxjs/Rx');

module.exports = ng.Component({
  selector: 'Techs',
  template:
    '<div class="techs-container">' +
      '<h2 class="techs-h2">' +
        'Cooked with all these awesome technologies:' +
      '</h2>' +
      '<div class="techs">' +
        '<Tech *ngFor="#tech of techs" [tech]="tech"></Tech>' +
      '</div>' +
    '</div>',
  directives: [Tech],
  providers: [ngHttp.HTTP_PROVIDERS]
})
.Class({
  constructor: [ngHttp.Http, function TechsController(http) { // https://github.com/angular/angular/issues/7507
    var vm = this;
    this.http = http;
    vm.getTechs().subscribe(function (result) {
      vm.techs = result;
    });
  }],
  getTechs: function getTechs() { // http://stackoverflow.com/questions/33458481/angular-2-how-to-use-http-in-es5
    return this.http
      .get('app/techs/techs.json')
      .map(function (response) {
        return response.json();
      });
  }
});
{'fraction_non_alphanumeric': 0.19227144203581528, 'fraction_numerical': 0.017907634307257305, 'mean_word_length': 3.0670498084291187, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '2395889', 'n_tokens_mistral': 746, 'n_tokens_neox': 731, 'n_words': 134}