<commit_before>'use strict'

angular.module('appApp', ['appApp.services', 'appApp.controllers', 'appApp.directives'])
  .config ['$routeProvider', ($routeProvider) ->
    $routeProvider
      .when '/',
        templateUrl: 'views/main.html'
        controller: 'MainCtrl'
      .when '/bills/:billid',
        templateUrl: 'views/billtext.html'
        controller: 'BillCtrl'
      .when '/words',
        templateUrl: 'views/words.html'
        controller: 'WordsCtrl'
      .when '/individual',
        templateUrl: 'views/individual.html'
        controller: 'IndividualCtrl'
      .when '/district_map/:bioguide_id',
        templateUrl: 'views/district_map.html'
        controller: 'DistrictCtrl'
      .when '/compare',
        templateUrl: 'views/compare.html'
        controller: 'CompareCtrl'
      .otherwise
        redirectTo: '/'
  ]
# depency inject should happen here
angular.module('appApp.controllers', ['appApp.services', 'appApp.directives', 'appApp.filters', 'ui.bootstrap'])
angular.module('appApp.directives', [])
angular.module('appApp.services', [])
angular.module('appApp.filters', [])

# set default headers to cors for api access
angular.module('appApp')
  .config ['$httpProvider', ($httpProvider) ->
    $httpProvider.defaults.useXDomain = true
    delete $httpProvider.defaults.headers.common['X-Requested-With']
  ]<commit_msg>Hooking up app controller with route to About page<commit_after>'use strict'

angular.module('appApp', ['appApp.services', 'appApp.controllers', 'appApp.directives'])
  .config ['$routeProvider', ($routeProvider) ->
    $routeProvider
      .when '/',
        templateUrl: 'views/main.html'
        controller: 'MainCtrl'
      .when '/bills/:billid',
        templateUrl: 'views/billtext.html'
        controller: 'BillCtrl'
      .when '/words',
        templateUrl: 'views/words.html'
        controller: 'WordsCtrl'
      .when '/individual',
        templateUrl: 'views/individual.html'
        controller: 'IndividualCtrl'
      .when '/district_map/:bioguide_id',
        templateUrl: 'views/district_map.html'
        controller: 'DistrictCtrl'
      .when '/compare',
        templateUrl: 'views/compare.html'
        controller: 'CompareCtrl'
      .when '/about',
        templateUrl: 'views/about.html'
      .otherwise
        redirectTo: '/'
  ]
# depency inject should happen here
angular.module('appApp.controllers', ['appApp.services', 'appApp.directives', 'appApp.filters', 'ui.bootstrap'])
angular.module('appApp.directives', [])
angular.module('appApp.services', [])
angular.module('appApp.filters', [])

# set default headers to cors for api access
angular.module('appApp')
  .config ['$httpProvider', ($httpProvider) ->
    $httpProvider.defaults.useXDomain = true
    delete $httpProvider.defaults.headers.common['X-Requested-With']
  ]
{'fraction_non_alphanumeric': 0.15111741752394467, 'fraction_numerical': 0.0, 'mean_word_length': 3.3185298621745787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7621668', 'n_tokens_mistral': 855, 'n_tokens_neox': 831, 'n_words': 164}