<commit_before>'use strict';

/***
 *
 * Load the app manually, first fetch user data asynchronically .
 *
 ***/
angular.element(document).ready(

  function() {

    var initInjector = angular.injector(['ng']);
    var $http = initInjector.get('$http');
    var token = localStorage.getItem('columby_token');

    if (token) {
      $http({
        method: 'POST',
        url: 'https://dev-api.columby.com/v2/user/me',
        headers: { 'Authorization': 'Bearer ' + token }
      }).success(function(data, status, headers, config) {
        // If response has no user object, delete the local token.
        if (!response.data.id) {
          localStorage.removeItem('columby_token');
        } else {
          window.user = response.data;
        }
        // start the app
        angular.bootstrap(document, ['columbyApp']);<commit_msg>Fix for logged in user in app.js data instead of response<commit_after>'use strict';

/***
 *
 * Load the app manually, first fetch user data asynchronically .
 *
 ***/
angular.element(document).ready(

  function() {

    var initInjector = angular.injector(['ng']);
    var $http = initInjector.get('$http');
    var token = localStorage.getItem('columby_token');

    if (token) {
      $http({
        method: 'POST',
        url: 'https://dev-api.columby.com/v2/user/me',
        headers: { 'Authorization': 'Bearer ' + token }
      }).success(function(data, status, headers, config) {
        // If response has no user object, delete the local token.
        if (!data.id) {
          localStorage.removeItem('columby_token');
        } else {
          window.user = data;
        }
        // start the app
        angular.bootstrap(document, ['columbyApp']);
{'fraction_non_alphanumeric': 0.14894859813084113, 'fraction_numerical': 0.0011682242990654205, 'mean_word_length': 2.5246913580246915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6767999', 'n_tokens_mistral': 513, 'n_tokens_neox': 510, 'n_words': 125}