<commit_before>angular.module('Software.controllers', ['Software.services']).
  controller('softwareController', function($scope, $q, BranchesApiService, softwareApiService) {

    BranchesApiService.getBranches().then(function(branches) {
      $scope.branches = branches;
    });

    $scope.showUpdatesOnly = true;
    $scope.showOnlyLatest = true;
    $scope.selectedBranch = undefined;
    $scope.installResult = '';
    $scope.latestVersions = [];

    $scope.loadInstalledSoftware = function() {
      softwareApiService.loadInstalledSoftware().then(function(items) {
        $scope.installedSoftware = items.data;
      });
    };

    $scope.loadVersions = function() {
      $scope.latestVersions = [];
      if ($scope.selectedBranch) {
        var getLatestSoftware = softwareApiService.getLatestVersion('openrov-*');
        var getCandidates = softwareApiService.getInstallCandidate('openrov-*');
        $q.all([getLatestSoftware, getCandidates]).then(
          function(results) {
            var versions = results[0].data;
            var candidates = results[1].data;

            if ($scope.showUpdatesOnly) {
              loadUpdatesOnlyPackages(candidates.results, versions);
            }
            else {
              loadAllPackages(versions);
            }
          })
      }
    };

    $scope.install = function(item) {<commit_msg>Cleanup<commit_after>angular.module('Software.controllers', ['Software.services']).
  controller('softwareController', function($scope, $q, BranchesApiService, softwareApiService) {

    BranchesApiService.getBranches().then(function(branches) {
      $scope.branches = branches;
    });

    $scope.showUpdatesOnly = true;
    $scope.showOnlyLatest = true;
    $scope.selectedBranch = undefined;
    $scope.installResult = '';
    $scope.latestVersions = [];

    $scope.loadInstalledSoftware = function() {
      softwareApiService.loadInstalledSoftware().then(function(items) {
        $scope.installedSoftware = items.data;
      });
    };

    $scope.loadVersions = function() {
      $scope.latestVersions = [];
      if ($scope.selectedBranch) {
        var getLatestSoftware = softwareApiService.getLatestVersion('openrov-*');
        var getCandidates = softwareApiService.getInstallCandidate('openrov-*');
        $q.all([getLatestSoftware, getCandidates]).then(
          function(results) {
            var versions = results[0].data;
            var candidates = results[1].data;

            if ($scope.showUpdatesOnly) {
              loadUpdatesOnlyPackages(candidates.result, versions);
            }
            else {
              loadAllPackages(versions);
            }
          })
      }
    };

    $scope.install = function(item) {
{'fraction_non_alphanumeric': 0.12844036697247707, 'fraction_numerical': 0.0014678899082568807, 'mean_word_length': 2.7704011065006915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5621185', 'n_tokens_mistral': 780, 'n_tokens_neox': 743, 'n_words': 102}