<commit_before>angular.module('proximate.controllers', [])

.controller('StatusCtrl', function($scope) {

})

.controller('SettingsCtrl', function($scope, Beacons, PubNub, Settings) {

    Settings.updateDeviceId();

    angular.element(document).ready(function() {

        Beacons.setupTestBeacons(PubNub.publish);

        $scope.data = Settings.data;

        setTimeout(function(){
          Settings.updateDeviceId();
          $scope.deviceId = Settings.deviceId;
        },1000);

    });

    $scope.updateUsername = function(){
        Settings.updateUsername($scope.data.username);
    }

});<commit_msg>Added POST on username change and stemmed server route. Also added server settings to mobile config.js<commit_after>angular.module('proximate.controllers', [])

.controller('StatusCtrl', function($scope) {

})

.controller('SettingsCtrl', function($scope, Beacons, PubNub, Settings) {


    //waits for the view to load so as to not interrupt the html/css
    angular.element(document).ready(function() {

        Beacons.setupTestBeacons(PubNub.publish);

        $scope.data = Settings.data;

    });

    /* scope functions */

    $scope.updateUsername = function(){
        Settings.updateUsername($scope.data.username);
    }

});
{'fraction_non_alphanumeric': 0.14068745003996802, 'fraction_numerical': 0.0031974420463629096, 'mean_word_length': 3.51985559566787, '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': '5421848', 'n_tokens_mistral': 371, 'n_tokens_neox': 351, 'n_words': 66}