<commit_before>'use strict';

angular.module('gdgxHubApp')
  .constant('GOOGLE_API_KEY', '<KEY>')
  .service('config', config)
  .config(function ($routeProvider, $locationProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'partials/main',
        controller: 'MainCtrl'
      })
      .when('/dashboard', {
        templateUrl: 'partials/dashboard',
        controller: 'DashboardCtrl'
      })
      .when('/about', {
        templateUrl: 'partials/about',
        controller: 'AboutCtrl'
      })
      .when('/chapters', {
        templateUrl: 'partials/chapters',
        controller: 'ChapterCtrl'
      })
      .when('/chapters/country/:country', {
        templateUrl: 'partials/chapter_country',
        controller: 'ChapterCountryCtrl'
      })
      .when('/chapters/:chapterId', {
        templateUrl: 'partials/chapter',
        controller: 'ChapterDetailCtrl'
      })
      .when('/chapters/:chapterId/metrics', {
        templateUrl: 'partials/chapter_metrics',
        controller: 'ChapterMetricsCtrl'
      })
      .when('/events', {
        templateUrl: 'partials/events',
        controller: 'EventCtrl'
      })
      .when('/events/devfest', {
        templateUrl: 'partials/devfest'
      })
      .when('/events/heatmap/:year/:month', {
        templateUrl: 'partials/events_heatmap',
        controller: 'EventsHeatmapCtrl'
      })
      .when('/events/tags', {
        templateUrl: 'partials/events',
        controller: 'EventCtrl'
      })
      .when('/events/tags/:tag', {
        templateUrl: 'partials/events',
        controller: 'EventCtrl'
      })
      .when('/events/:eventId', {
        templateUrl: 'partials/event',
        controller: 'EventDetailCtrl',
        resolve: {
          'MomentTimezone': ['MomentTimezone', function (MomentTimezone) {
            return MomentTimezone.promise;
          }]
        }
      })
      .when('/developers/api', {
        templateUrl: 'partials/api',
        controller: 'ApiCtrl'
      })
      .when('/statistics', {
        templateUrl: 'partials/gdg_stats',
        controller: 'GdgStatsCtrl'
      })
      .otherwise({
        redirectTo: '/'
      });

    $locationProvider.html5Mode(true);
  });

function config(GOOGLE_API_KEY) {
  return {
    GOOGLE_API_KEY: GOOGLE_API_KEY
  };
}<commit_msg>Fix DI issue with configProvider when minified.<commit_after>'use strict';

angular.module('gdgxHubApp')
  .constant('GOOGLE_API_KEY', '<KEY>')
  .service('config', function (GOOGLE_API_KEY) {
    return {
      GOOGLE_API_KEY: GOOGLE_API_KEY
    };
  })
  .config(function ($routeProvider, $locationProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'partials/main',
        controller: 'MainCtrl'
      })
      .when('/dashboard', {
        templateUrl: 'partials/dashboard',
        controller: 'DashboardCtrl'
      })
      .when('/about', {
        templateUrl: 'partials/about',
        controller: 'AboutCtrl'
      })
      .when('/chapters', {
        templateUrl: 'partials/chapters',
        controller: 'ChapterCtrl'
      })
      .when('/chapters/country/:country', {
        templateUrl: 'partials/chapter_country',
        controller: 'ChapterCountryCtrl'
      })
      .when('/chapters/:chapterId', {
        templateUrl: 'partials/chapter',
        controller: 'ChapterDetailCtrl'
      })
      .when('/chapters/:chapterId/metrics', {
        templateUrl: 'partials/chapter_metrics',
        controller: 'ChapterMetricsCtrl'
      })
      .when('/events', {
        templateUrl: 'partials/events',
        controller: 'EventCtrl'
      })
      .when('/events/devfest', {
        templateUrl: 'partials/devfest'
      })
      .when('/events/heatmap/:year/:month', {
        templateUrl: 'partials/events_heatmap',
        controller: 'EventsHeatmapCtrl'
      })
      .when('/events/tags', {
        templateUrl: 'partials/events',
        controller: 'EventCtrl'
      })
      .when('/events/tags/:tag', {
        templateUrl: 'partials/events',
        controller: 'EventCtrl'
      })
      .when('/events/:eventId', {
        templateUrl: 'partials/event',
        controller: 'EventDetailCtrl',
        resolve: {
          'MomentTimezone': ['MomentTimezone', function (MomentTimezone) {
            return MomentTimezone.promise;
          }]
        }
      })
      .when('/developers/api', {
        templateUrl: 'partials/api',
        controller: 'ApiCtrl'
      })
      .when('/statistics', {
        templateUrl: 'partials/gdg_stats',
        controller: 'GdgStatsCtrl'
      })
      .otherwise({
        redirectTo: '/'
      });

    $locationProvider.html5Mode(true);
  });
{'fraction_non_alphanumeric': 0.15167814113597247, 'fraction_numerical': 0.0004302925989672978, 'mean_word_length': 2.223994452149792, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6057032', 'n_tokens_mistral': 1409, 'n_tokens_neox': 1379, 'n_words': 203}