<commit_before>angular.module('webmakerApp', ['ngRoute', 'ui.bootstrap', 'webmakerApp.services',
    'ngWebmakerLogin', 'localization', 'ngScrollSpy', 'angularMoment', 'wmMakeApiAngular'
  ])
  .config(['$routeProvider', '$locationProvider', 'makeApiProvider', 'CONFIG',
    function ($routeProvider, $locationProvider, makeApiProvider, CONFIG) {
      makeApiProvider.options.apiURL = CONFIG.makeApiUrl;

      $routeProvider
        .when('/:locale/about', {
          templateUrl: '/views/explore.html',
          controller: 'exploreController',
          title: 'Explore'
        })
        .when('/:locale/resources/literacy/:id', {
          templateUrl: '/views/competency.html',
          controller: 'competencyController'
        })
        .when('/:locale/remix-your-school', {
          templateUrl: '/views/remix-your-school.html',
          title: 'Remix Your School'
        })
        .when('/:locale/music-video', {
          templateUrl: '/views/music-video.html',
          title: 'Music Video'
        })
        .when('/:locale/private-eye', {
          templateUrl: '/views/private-eye.html',
          title: 'Private Eye'
        })
        .when('/:locale/resources', {
          templateUrl: '/views/resources.html',
          controller: 'resourcesHomeController',
          title: 'Resources'
        })
        .when('/:locale/mentor', {
          templateUrl: '/views/mentor.html',
          controller: 'mentorController',
          title: 'Mentor'
        })
        .when('/:locale/literacy', {
          templateUrl: '/views/literacy.html',
          controller: 'literacyController',
          title: 'WebLiteracyMap'
        })
        .when('/:locale/tools', {
          templateUrl: '/views/tools.html',
          controller: 'toolsController',
          title: 'Tools'
        })
        .when('/:locale/madewithcode-:mwc', {
          templateUrl: '/views/madewithcode.html',
          controller: 'mwcController',
          title: 'Made with Code'
        })
        .when('/:locale/admin/badges', {
          templateUrl: '/views/admin/badges-main.html',
          controller: 'badgesAdminController',
          title: 'Badges Admin'
        })
        .when('/:locale/admin/badges/:badge', {
          templateUrl: '/views/admin/badges-badge.html',
          controller: 'badgesAdminBadgeController',
          title: 'Badges Admin'
        })
        .when('/:locale/signup/:auth?', {
          templateUrl: '/views/signup.html',
          controller: 'homeController',
          title: 'Webmaker - Sign Up'
        })
        .when('/:locale/appmaker', {
          templateUrl: '/views/appmaker.html',
          controller: 'appmakerController',
          title: 'Discover Appmaker'
        })
        .when('/:locale/make-your-own', {
          templateUrl: '/views/make-your-own.html',
          controller: 'makeYourOwnController',
          title: 'TeachTemplates'
        })
        .when('/:locale/feedback', {
          templateUrl: '/views/feedback.html',
          controller: 'feedbackController',
          title: 'Feedback'
        })
        .when('/:locale/getinvolved', {
          templateUrl: '/views/getinvolved.html',
          controller: 'getinvolvedController',
          title: 'Get Involved'
        })
        .when('/:locale/privacy', {
          templateUrl: '/views/privacy.html',
          controller: 'homeController',
          title: 'Privacy Policy'
        })
        .when('/:locale/terms', {
          templateUrl: '/views/terms.html',
          controller: 'homeController',
          title: 'Terms of Use'
        })
        .when('/:locale', {
          templateUrl: '/views/home.html',
          controller: 'homeController',
          title: 'Webmaker'
        })
        .when('/:locale/home-:variant', {
          templateUrl: function (params) {
            return '/views/home-' + params.variant + '.html';
          },
          controller: 'homeController',
          title: 'Webmaker'
        })
        .otherwise({
          redirectTo: '/:locale'
        });

      // html5mode
      $locationProvider.html5Mode(true);
      $locationProvider.hashPrefix('!');
    }
  ])
  .run(['$rootScope', '$http', '$routeParams', '$location', 'CONFIG', 'weblit',
    function ($rootScope, $http, $routeParams, $location, CONFIG, weblit) {
      function forceLocale() {
        // matches any of these:
        // `en`, `en-us`, `en-US` or `ady`<commit_msg>Redirect all home traffic to home-3<commit_after>angular.module('webmakerApp', ['ngRoute', 'ui.bootstrap', 'webmakerApp.services',
    'ngWebmakerLogin', 'localization', 'ngScrollSpy', 'angularMoment', 'wmMakeApiAngular'
  ])
  .config(['$routeProvider', '$locationProvider', 'makeApiProvider', 'CONFIG',
    function ($routeProvider, $locationProvider, makeApiProvider, CONFIG) {
      makeApiProvider.options.apiURL = CONFIG.makeApiUrl;

      $routeProvider
        .when('/:locale/about', {
          templateUrl: '/views/explore.html',
          controller: 'exploreController',
          title: 'Explore'
        })
        .when('/:locale/resources/literacy/:id', {
          templateUrl: '/views/competency.html',
          controller: 'competencyController'
        })
        .when('/:locale/remix-your-school', {
          templateUrl: '/views/remix-your-school.html',
          title: 'Remix Your School'
        })
        .when('/:locale/music-video', {
          templateUrl: '/views/music-video.html',
          title: 'Music Video'
        })
        .when('/:locale/private-eye', {
          templateUrl: '/views/private-eye.html',
          title: 'Private Eye'
        })
        .when('/:locale/resources', {
          templateUrl: '/views/resources.html',
          controller: 'resourcesHomeController',
          title: 'Resources'
        })
        .when('/:locale/mentor', {
          templateUrl: '/views/mentor.html',
          controller: 'mentorController',
          title: 'Mentor'
        })
        .when('/:locale/literacy', {
          templateUrl: '/views/literacy.html',
          controller: 'literacyController',
          title: 'WebLiteracyMap'
        })
        .when('/:locale/tools', {
          templateUrl: '/views/tools.html',
          controller: 'toolsController',
          title: 'Tools'
        })
        .when('/:locale/madewithcode-:mwc', {
          templateUrl: '/views/madewithcode.html',
          controller: 'mwcController',
          title: 'Made with Code'
        })
        .when('/:locale/admin/badges', {
          templateUrl: '/views/admin/badges-main.html',
          controller: 'badgesAdminController',
          title: 'Badges Admin'
        })
        .when('/:locale/admin/badges/:badge', {
          templateUrl: '/views/admin/badges-badge.html',
          controller: 'badgesAdminBadgeController',
          title: 'Badges Admin'
        })
        .when('/:locale/signup/:auth?', {
          templateUrl: '/views/signup.html',
          controller: 'homeController',
          title: 'Webmaker - Sign Up'
        })
        .when('/:locale/appmaker', {
          templateUrl: '/views/appmaker.html',
          controller: 'appmakerController',
          title: 'Discover Appmaker'
        })
        .when('/:locale/make-your-own', {
          templateUrl: '/views/make-your-own.html',
          controller: 'makeYourOwnController',
          title: 'TeachTemplates'
        })
        .when('/:locale/feedback', {
          templateUrl: '/views/feedback.html',
          controller: 'feedbackController',
          title: 'Feedback'
        })
        .when('/:locale/getinvolved', {
          templateUrl: '/views/getinvolved.html',
          controller: 'getinvolvedController',
          title: 'Get Involved'
        })
        .when('/:locale/privacy', {
          templateUrl: '/views/privacy.html',
          controller: 'homeController',
          title: 'Privacy Policy'
        })
        .when('/:locale/terms', {
          templateUrl: '/views/terms.html',
          controller: 'homeController',
          title: 'Terms of Use'
        })
        .when('/:locale', {
          templateUrl: '/views/home-3.html',
          controller: 'homeController',
          title: 'Webmaker'
        })
        .when('/:locale/home-:variant', {
          templateUrl: function (params) {
            return '/views/home-' + params.variant + '.html';
          },
          controller: 'homeController',
          title: 'Webmaker'
        })
        .otherwise({
          redirectTo: '/:locale'
        });

      // html5mode
      $locationProvider.html5Mode(true);
      $locationProvider.hashPrefix('!');
    }
  ])
  .run(['$rootScope', '$http', '$routeParams', '$location', 'CONFIG', 'weblit',
    function ($rootScope, $http, $routeParams, $location, CONFIG, weblit) {
      function forceLocale() {
        // matches any of these:
        // `en`, `en-us`, `en-US` or `ady`
{'fraction_non_alphanumeric': 0.1580246913580247, 'fraction_numerical': 0.0006734006734006734, 'mean_word_length': 1.9802675585284282, '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': '5736989', 'n_tokens_mistral': 2538, 'n_tokens_neox': 2519, 'n_words': 424}