<commit_before>/*global $ */
define([
   "dojo/ready",
   "dojo/_base/declare",
    "dojo/on",
    "dojo/dom",
    "esri/request",
    "dojo/_base/array",
    "dojo/dom-construct",
    "dojo/dom-attr",
    "dojo/query",
    "dojo/dom-class",
    "dojo/_base/lang",
    "dojo/Deferred",
    "dojo/DeferredList",
    "dojo/number",
    "dijit/_WidgetBase",
    "dijit/_TemplatedMixin",
    "dojo/text!application/dijit/templates/modal.html",
    "dojo/text!application/dijit/templates/author.html",
    "application/builder/browseIdDlg",
    "application/ShareModal",
    "application/localStorageHelper",
    "application/builder/signInHelper",
    "dojo/i18n!application/nls/builder",
    "dojo/i18n!application/nls/resources",
    "esri/arcgis/utils",
    "application/themes",
    "esri/layers/FeatureLayer",
    "dojo/domReady!"
], function (ready, declare, on, dom, esriRequest, array, domConstruct, domAttr, query, domClass, lang, Deferred, DeferredList, number, _WidgetBase, _TemplatedMixin, modalTemplate, authorTemplate, BrowseIdDlg, ShareModal, localStorageHelper, signInHelper, nls, resources, arcgisUtils, theme, FeatureLayer) {
    return declare([_WidgetBase, _TemplatedMixin], {
        templateString: authorTemplate,
        nls: nls,
        currentState: "webmap",
        previousState: null,
        currentConfig: null,
        response: null,
        userInfo: null,
        browseDlg: null,
        fieldInfo: {},
        layerInfo: null,
        themes: theme,
        localStorageSupport: null,

        constructor: function (config, response) {
            this.config = config;
            this.response = response;
        },

        startup: function (config, response) {
            var def = new Deferred();
            var signIn = new signInHelper(), userInfo = {};
            signIn.createPortal().then(lang.hitch(this, function (loggedInUser) {
                var isValidUser = signIn.authenticateUser(true, this.response, loggedInUser);
                if (isValidUser) {
                    userInfo.username = loggedInUser.username;<commit_msg>remove params<commit_after>/*global $ */
define([
   "dojo/ready",
   "dojo/_base/declare",
    "dojo/on",
    "dojo/dom",
    "esri/request",
    "dojo/_base/array",
    "dojo/dom-construct",
    "dojo/dom-attr",
    "dojo/query",
    "dojo/dom-class",
    "dojo/_base/lang",
    "dojo/Deferred",
    "dojo/DeferredList",
    "dojo/number",
    "dijit/_WidgetBase",
    "dijit/_TemplatedMixin",
    "dojo/text!application/dijit/templates/modal.html",
    "dojo/text!application/dijit/templates/author.html",
    "application/builder/browseIdDlg",
    "application/ShareModal",
    "application/localStorageHelper",
    "application/builder/signInHelper",
    "dojo/i18n!application/nls/builder",
    "dojo/i18n!application/nls/resources",
    "esri/arcgis/utils",
    "application/themes",
    "esri/layers/FeatureLayer",
    "dojo/domReady!"
], function (ready, declare, on, dom, esriRequest, array, domConstruct, domAttr, query, domClass, lang, Deferred, DeferredList, number, _WidgetBase, _TemplatedMixin, modalTemplate, authorTemplate, BrowseIdDlg, ShareModal, localStorageHelper, signInHelper, nls, resources, arcgisUtils, theme, FeatureLayer) {
    return declare([_WidgetBase, _TemplatedMixin], {
        templateString: authorTemplate,
        nls: nls,
        currentState: "webmap",
        previousState: null,
        currentConfig: null,
        response: null,
        userInfo: null,
        browseDlg: null,
        fieldInfo: {},
        layerInfo: null,
        themes: theme,
        localStorageSupport: null,

        constructor: function (config, response) {
            this.config = config;
            this.response = response;
        },

        startup: function () {
            var def = new Deferred();
            var signIn = new signInHelper(), userInfo = {};
            signIn.createPortal().then(lang.hitch(this, function (loggedInUser) {
                var isValidUser = signIn.authenticateUser(true, this.response, loggedInUser);
                if (isValidUser) {
                    userInfo.username = loggedInUser.username;
{'fraction_non_alphanumeric': 0.12921077959576516, 'fraction_numerical': 0.0019249278152069298, 'mean_word_length': 2.8172635445362717, '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': '730387', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1300, 'n_words': 232}