<commit_before>/**
 * Controller that will provide the entry point to the league details.
 * @param league
 * @constructor
 */
var LeagueDetailController = function(league) {
    var controller = this;

    controller.league = league;

    league.getSubstitutes().then(function(subs) {
        controller.substitutes = subs;
    });

};

angular.module('bowling.entry.core')
    .controller('LeagueDetailController', ['league', LeagueDetailController])
    .config(['$stateProvider', function($stateProvider) {

        $stateProvider.state('bowling.league', {
            url: 'league/:leagueId',
            abstract: true,
            template: '<ui-view/>',
            resolve: {
                // Knowingly requesting the user be required for this resolve even though it is not used.  Forces<commit_msg>League Abstract State doesn't request user<commit_after>/**
 * Controller that will provide the entry point to the league details.
 * @param league
 * @constructor
 */
var LeagueDetailController = function(league) {
    var controller = this;

    controller.league = league;

    league.getSubstitutes().then(function(subs) {
        controller.substitutes = subs;
    });

};

angular.module('bowling.entry.core')
    .controller('LeagueDetailController', ['league', LeagueDetailController])
    .config(['$stateProvider', function($stateProvider) {

        $stateProvider.state('bowling.league', {
            url: 'league/:leagueId',
            abstract: true,
            template: '<ui-view/>',
            resolve: {
                user: ['UserService', function(UserService) {
                    return UserService.getUser();
                }],
                // Knowingly requesting the user be required for this resolve even though it is not used.  Forces
{'fraction_non_alphanumeric': 0.11791128579449747, 'fraction_numerical': 0.0, 'mean_word_length': 2.7436974789915967, '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': '4435400', 'n_tokens_mistral': 471, 'n_tokens_neox': 441, 'n_words': 121}