<commit_before>(function(){

    'use strict';

    /**
     * Job Posting Controller
     */

    function JobPostingCtrl($scope, $location, User, PostService, USER_ROLES){
        $scope.post = {
            'specifics': {}, 
            'location': {}, 
            'date': {}
        };

        var credentials = User.getCredentials();
        if (credentials.email !== null) {
            $scope.user.email = credentials.email;
        }
        
        $scope.ok = function() {
            if($scope.jobPosting.$valid && User.role == USER_ROLES.employer) {
                Post.setJobPostData($scope.post);
                PostService.post();
            }
        };

        $scope.cancel = function() {
            $location.path('/');
        };
    }

    /**
     * Register functions
     */
    
    angular.module('ucrCareerControllers')
        .controller('JobPostingCtrl', 
            [
                '$scope'
              , '$location'
              , 'User'
              , 'PostService'
              , 'USER_ROLES'
              , JobPostingCtrl
            ]);
            
})();
<commit_msg>added more to the job posting ctrl. still not ready<commit_after>(function(){

    'use strict';

    /**
     * Job Posting Controller
     */

    function JobPostingCtrl($scope, $location, User, PostService, USER_ROLES){
        $scope.post = {
            'specifics': {}, 
            'location': {}, 
            'date': {}
        };

        var credentials = User.getCredentials();
        if (credentials.email !== null) {
            $scope.user.email = credentials.email;
        }
        
        $scope.ok = function() {
            if($scope.jobPosting.$valid && User.role === USER_ROLES.employer) {
                PostService.setJobPostData($scope.post);
                PostService.post();
            }
        };

        $scope.cancel = function() {
            $location.path('/');
        };
    }

    /**
     * Register functions
     */
    
    angular.module('ucrCareerControllers')
        .controller('JobPostingCtrl', 
            [
                '$scope'
              , '$location'
              , 'User'
              , 'PostService'
              , 'USER_ROLES'
              , JobPostingCtrl
            ]);
            
})();

{'fraction_non_alphanumeric': 0.13898601398601398, 'fraction_numerical': 0.0, 'mean_word_length': 1.314459049544995, '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': '4220588', 'n_tokens_mistral': 634, 'n_tokens_neox': 613, 'n_words': 97}