<commit_before>'use strict';

angular.module('mean.system',['ui-notification']).controller('HeaderController', ['$scope', '$rootScope', 'Menus', 'MeanUser', '$state','$location','$stateParams','Freelancer','Notification',
    function($scope, $rootScope, Menus, MeanUser, $state, $location, $stateParams, Freelancer, Notification) {

        var vm = this;

        vm.menus = {};
        vm.hdrvars = {
            authenticated: MeanUser.loggedin,
            user: MeanUser.user,
            isAdmin: MeanUser.isAdmin,
            isContractor : MeanUser.isContractor,
            isFreelancer : MeanUser.isFreelancer
        };


        $scope.getLandingObject = function(){
            //$stateParams.FreelancerId
            Freelancer.storefront_resource.get({freelancerId: $stateParams.freelancerId}, function(response,header,error){
                if(response.success){
                    Notification.success('Freelancer details updated successfully.');
                    $scope.freelancer_object = response.freelancer_object[0];
                    console.log(response.freelancer_object[0]);
                }
                else{
                    Notification.error('There was an issue, Please try again');
                }
            });
        };
<commit_msg>landing page done<commit_after>'use strict';

angular.module('mean.system',['ui-notification']).controller('HeaderController', ['$scope', '$rootScope', 'Menus', 'MeanUser', '$state','$location','$stateParams','Freelancer','Notification',
    function($scope, $rootScope, Menus, MeanUser, $state, $location, $stateParams, Freelancer, Notification) {

        var vm = this;

        vm.menus = {};
        vm.hdrvars = {
            authenticated: MeanUser.loggedin,
            user: MeanUser.user,
            isAdmin: MeanUser.isAdmin,
            isContractor : MeanUser.isContractor,
            isFreelancer : MeanUser.isFreelancer
        };


        $scope.getLandingObject = function(){
            //$stateParams.FreelancerId
            Freelancer.storefront_resource.get({freelancerId: $stateParams.freelancerId}, function(response,header,error){
                if(response.success){
                    Notification.success('Freelancer details updated successfully.');
                    if(response.freelancer_object.length > 0)
                    $scope.freelancer_object = response.freelancer_object[0];
                    else
                    $location.url('/')
                }
                else{
                    Notification.error('There was an issue, Please try again');
                }
            });
        };

{'fraction_non_alphanumeric': 0.12471569370735405, 'fraction_numerical': 0.001516300227445034, 'mean_word_length': 2.168067226890756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '669331', 'n_tokens_mistral': 722, 'n_tokens_neox': 676, 'n_words': 113}