<commit_before>'use strict';

(function () {

  var app = angular.module('antismash.db.ui.stats', [

  ]);

  app.controller('StatsController', ['$scope', '$state', '$http',
    function ($scope, $state, $http) {

      var vm = this;
      $http.get('/api/v1.0/stats').then(function(response){
        vm.general_stats = [
          {'name': 'Secondary Metabolite Clusters', 'value': response.data.num_clusters},
          {'name': 'Genomes', 'value': response.data.num_genomes}
        ];
        vm.sec_met_clusters = response.data.clusters;
      })
    }]);

})();
<commit_msg>stats: Add more statistics<commit_after>'use strict';

(function () {

  var app = angular.module('antismash.db.ui.stats', [

  ]);

  app.controller('StatsController', ['$scope', '$state', '$http',
    function ($scope, $state, $http) {

      var vm = this;
      $http.get('/api/v1.0/stats').then(function(response){
        vm.general_stats = [
          {'name': 'Secondary metabolite clusters', 'value': response.data.num_clusters},
          {'name': 'Species with most secondary metabolite clusters', 'value': response.data.top_secmet_species},
          {'name': 'NCBI taxon with most clusters', 'value': response.data.top_secmet_taxon},
          {'name': 'Clusters in top taxon', 'value': response.data.top_secmet_taxon_count},
          {'name': 'Genomes', 'value': response.data.num_genomes},
          {'name': 'Sequences', 'value': response.data.num_sequences},
          {'name': 'NCBI taxon with most sequences', 'value': response.data.top_seq_taxon},
          {'name': 'Sequences in top taxon', 'value': response.data.top_seq_taxon_count},

        ];
        vm.sec_met_clusters = response.data.clusters;
      })
    }]);

})();

{'fraction_non_alphanumeric': 0.1812933025404157, 'fraction_numerical': 0.0023094688221709007, 'mean_word_length': 3.2063106796116503, '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': '3902948', 'n_tokens_mistral': 561, 'n_tokens_neox': 543, 'n_words': 108}