<commit_before>define(function (require) {

    'use strict';

    /**
     * Module dependencies
     */

    var defineComponent = require('flight/lib/component');

    /**
     * Module exports
     */

    return defineComponent(dataAuth);

    /**
     * Module function
     */

    // fetch value from querystring
    function querystring(key) {
        var re = new RegExp('(?:\\?|&)'+key+'=(.*?)(?=&|$)','gi');
        var r = [], m;
        while ((m=re.exec(document.location.search)) != null) r.push(m[1]);

        if (r.length > 0) {
            return r[0];
        } else {
            return null;
        }
    }

    function dataAuth() {
        var self = this;

        this.getAccessToken = function() {
            var access_token = querystring('access_token');
            if (!access_token) {
                access_token = window.localStorage.getItem('access_token');
            }
            if (!access_token) {
                var LOGIN_PATH = '/login.html';
                LOGIN_PATH += window.storage.genreId ?  "#" + window.storage.genreId : "";
                return window.location.pathname = LOGIN_PATH;
            }
            else {
                window.localStorage['access_token'] = access_token;
            }<commit_msg>build latest components<commit_after>define(function (require) {

    'use strict';

    /**
     * Module dependencies
     */

    var defineComponent = require('flight/lib/component');

    /**
     * Module exports
     */

    return defineComponent(dataAuth);

    /**
     * Module function
     */

    // fetch value from querystring
    function querystring(key) {
        var re = new RegExp('(?:\\?|&)'+key+'=(.*?)(?=&|$)','gi');
        var r = [], m;
        while ((m=re.exec(document.location.search)) != null) r.push(m[1]);

        if (r.length > 0) {
            return r[0];
        } else {
            return null;
        }
    }

    function dataAuth() {
        var self = this;

        this.getAccessToken = function() {
            var access_token = querystring('access_token');
            if (!access_token) {
                access_token = window.localStorage.getItem('access_token');
            }
            if (!access_token) {
                var LOGIN_PATH = '/login.html';
                return window.location.pathname = LOGIN_PATH;
            }
            else {
                window.localStorage['access_token'] = access_token;
            }
{'fraction_non_alphanumeric': 0.14274095160634404, 'fraction_numerical': 0.0024400162667751117, 'mean_word_length': 1.6710097719869708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7426919', 'n_tokens_mistral': 718, 'n_tokens_neox': 680, 'n_words': 135}