<commit_before>(function() {
  'use strict';
  angular.module('civic.events.genes')
    .config(geneTalkRevisionsConfig)
    .factory('GeneTalkRevisionsViewOptions', GeneTalkRevisionsViewOptions)
    .controller('GeneTalkRevisionsController', GeneTalkRevisionsController);

  // @ngInject
  function geneTalkRevisionsConfig($stateProvider) {
    $stateProvider
      .state('events.genes.talk.revisions', {
        abstract: true,
        url: '/revisions',
        templateUrl: 'app/views/events/genes/talk/revisions/GeneTalkRevisionsView.tpl.html',
        controller: 'GeneTalkRevisionsController',
        controllerAs: 'vm',
        resolve: {
          GeneRevisions: 'GeneRevisions',
          GeneHistory: 'GeneHistory',
          initGeneTalkRevisions: function(Genes, GeneRevisions, GeneHistory, $stateParams, $q) {
            var geneId = $stateParams.geneId;
            return $q.all([
              Genes.initComments(geneId),
              GeneRevisions.initRevisions(geneId),
              GeneHistory.initBase(geneId)
            ]);
          }
        },
        deepStateRedirect: [ 'geneId', 'revisionId' ],
        data: {
          titleExp: '"Gene " + gene.name + " Talk"',
          navMode: 'sub'
        }
      })
      .state('events.genes.talk.revisions.list', {
        url: '/list/:revisionId',
        template: '<gene-talk-revisions></gene-talk-revisions>',
        resolve: {
          initRevisionList: function(Genes, GeneRevisions, GeneHistory, $stateParams) {
            return GeneRevisions.queryFresh($stateParams.geneId);
          }
        },
        data: {
          titleExp: '"Gene " + gene.name + " Revisions"',
          navMode: 'sub'
        }
      })
      .state('events.genes.talk.revisions.list.summary', {
        url: '/summary',
        template: '<gene-talk-revision-summary></gene-talk-revision-summary>',
        resolve: {
          initRevision: function(GeneRevisions, $stateParams, $q) {
            return $q.all([
              GeneRevisions.getFresh($stateParams.geneId, $stateParams.revisionId),
              GeneRevisions.initComments($stateParams.geneId, $stateParams.revisionId)
            ]);
          }<commit_msg>initial revision comment now shows up on first load of revision summary page<commit_after>(function() {
  'use strict';
  angular.module('civic.events.genes')
    .config(geneTalkRevisionsConfig)
    .factory('GeneTalkRevisionsViewOptions', GeneTalkRevisionsViewOptions)
    .controller('GeneTalkRevisionsController', GeneTalkRevisionsController);

  // @ngInject
  function geneTalkRevisionsConfig($stateProvider) {
    $stateProvider
      .state('events.genes.talk.revisions', {
        abstract: true,
        url: '/revisions',
        templateUrl: 'app/views/events/genes/talk/revisions/GeneTalkRevisionsView.tpl.html',
        controller: 'GeneTalkRevisionsController',
        controllerAs: 'vm',
        resolve: {
          GeneRevisions: 'GeneRevisions',
          GeneHistory: 'GeneHistory',
          initGeneTalkRevisions: function(Genes, GeneRevisions, GeneHistory, $stateParams, $q) {
            var geneId = $stateParams.geneId;
            return $q.all([
              Genes.initComments(geneId),
              GeneRevisions.initRevisions(geneId),
              GeneHistory.initBase(geneId)
            ]);
          }
        },
        deepStateRedirect: [ 'geneId', 'revisionId' ],
        data: {
          titleExp: '"Gene " + gene.name + " Talk"',
          navMode: 'sub'
        }
      })
      .state('events.genes.talk.revisions.list', {
        url: '/list/:revisionId',
        template: '<gene-talk-revisions></gene-talk-revisions>',
        resolve: {
          initRevisionList: function(Genes, GeneRevisions, GeneHistory, $stateParams) {
            return GeneRevisions.queryFresh($stateParams.geneId);
          }
        },
        data: {
          titleExp: '"Gene " + gene.name + " Revisions"',
          navMode: 'sub'
        }
      })
      .state('events.genes.talk.revisions.list.summary', {
        url: '/summary',
        template: '<gene-talk-revision-summary></gene-talk-revision-summary>',
        resolve: {
          initRevision: function(GeneRevisions, $stateParams, $q) {
            return $q.all([
              GeneRevisions.getFresh($stateParams.geneId, $stateParams.revisionId),
              GeneRevisions.queryCommentsFresh($stateParams.geneId, $stateParams.revisionId)
            ]);
          }
{'fraction_non_alphanumeric': 0.1273828212603723, 'fraction_numerical': 0.0, 'mean_word_length': 2.3660377358490567, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3836988', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1256, 'n_words': 190}