<commit_before>angular.module('ot.extension.svn.sync', [
    'ui.router',
    'ot.service.core'
])
    .config(function ($stateProvider) {
        $stateProvider.state('svn-sync', {
            url: '/extension/svn/sync/{branch}',
            templateUrl: 'app/extension/svn/svn.sync.tpl.html',
            controller: 'SVNSyncCtrl'
        });
    })
    .controller('SVNSyncCtrl', function ($stateParams, $scope, $http, $interpolate, ot) {

        var branch = $stateParams.branch;
        var view = ot.view();

    })
;<commit_msg>#4 Sync page title & breadcrumbs<commit_after>angular.module('ot.extension.svn.sync', [
    'ui.router',
    'ot.service.core',
    'ot.service.structure'
])
    .config(function ($stateProvider) {
        $stateProvider.state('svn-sync', {
            url: '/extension/svn/sync/{branch}',
            templateUrl: 'app/extension/svn/svn.sync.tpl.html',
            controller: 'SVNSyncCtrl'
        });
    })
    .controller('SVNSyncCtrl', function ($stateParams, $scope, $http, $interpolate, ot, otStructureService) {

        var branchId = $stateParams.branch;
        var view = ot.view();
        view.commands = [
            ot.viewCloseCommand('/branch/' + branchId)
        ];

        // Loading of the branch information
        function loadBranch() {
            otStructureService.getBranch(branchId).then(function (branch) {
                // View configuration
                view.title = $interpolate("Build synchronisation for {{name}}")(branch);
                view.breadcrumbs = ot.branchBreadcrumbs(branch);
            });
        }

        // Initialisation
        loadBranch();

    })
;
{'fraction_non_alphanumeric': 0.1505441354292624, 'fraction_numerical': 0.0006045949214026602, 'mean_word_length': 2.238747553816047, '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': '360403', 'n_tokens_mistral': 495, 'n_tokens_neox': 493, 'n_words': 79}