<commit_before>const Extractor = remote.require('./browser/index.js');
const Subtitles = remote.require('./browser/model/Subtitle.js');
const shell = remote.shell;

app.controller('SubtitleListController', ['$scope', '$routeParams', ($scope, $routeParams) => {

  function retrieveSubtitles() {
    return Subtitles
      .chain()
      .filter({serieid: $routeParams.serieId})
      .sortBy('text')
      .value();
  }

  $scope.subtitles = retrieveSubtitles();
  $scope.loading = true;

  $scope.open = (url) => {
    shell.openExternal(url);
  };

  Extractor($routeParams.serieId).then(result => {

    [].concat.apply([], result).forEach(item => {

      var existent = Subtitles.find({
        text: item.text
      });

      if(existent || item.serieid != $routeParams.serieId) return;
      Subtitles.push(item);

    });

    $scope.loading = false;
    $scope.subtitles = retrieveSubtitles();
    $scope.$apply();

  }).catch(error => {
    console.log(error);
  });

}]);
<commit_msg>Removed empty lines<commit_after>const Extractor = remote.require('./browser/index.js');
const Subtitles = remote.require('./browser/model/Subtitle.js');
const shell = remote.shell;

app.controller('SubtitleListController', ['$scope', '$routeParams', ($scope, $routeParams) => {

  function retrieveSubtitles() {
    return Subtitles
      .chain()
      .filter({serieid: $routeParams.serieId})
      .sortBy('text')
      .value();
  }

  $scope.subtitles = retrieveSubtitles();
  $scope.loading = true;

  $scope.open = (url) => {
    shell.openExternal(url);
  };

  Extractor($routeParams.serieId).then(result => {

    [].concat.apply([], result).forEach(item => {
      var existent = Subtitles.find({text: item.text});
      if(existent || item.serieid != $routeParams.serieId) return;
      Subtitles.push(item);
    });

    $scope.loading = false;
    $scope.subtitles = retrieveSubtitles();
    $scope.$apply();

  }).catch(error => {
    console.log(error);
  });

}]);

{'fraction_non_alphanumeric': 0.1839312784234462, 'fraction_numerical': 0.0, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6257467', 'n_tokens_mistral': 655, 'n_tokens_neox': 641, 'n_words': 101}