<commit_before>define([
  'dojo/_base/declare',
  'dojo/topic', 'dojo/on', 'dojo/dom', 'dojo/dom-class', 'dojo/dom-attr', 'dojo/dom-construct', 'dojo/query',
  'dijit/registry', 'dojo/_base/lang',
  'dojo/_base/Deferred',
  'dojo/store/JsonRest', 'dojox/widget/Toaster',
  'dojo/ready', './app', '../router',
  'dojo/window', '../widget/Drawer', 'dijit/layout/ContentPane',
  '../jsonrpc', '../panels', '../WorkspaceManager', '../DataAPI', 'dojo/keys',
  'dijit/ConfirmDialog', '../util/PathJoin', 'dojo/request', '../widget/WorkspaceController'
], function (
  declare,
  Topic, on, dom, domClass, domAttr, domConstruct, domQuery,
  Registry, lang,
  Deferred,
  JsonRest, Toaster,
  Ready, App,
  Router, Window,
  Drawer, ContentPane,
  RPC, Panels, WorkspaceManager, DataAPI, Keys,
  ConfirmDialog, PathJoin, xhr, WorkspaceController
) {
  return declare([App], {
    panels: Panels,
    activeWorkspace: null,
    activeWorkspacePath: '/',
    uploadInProgress: false,
    activeMouse: true,
    alreadyLoggedIn: false,
    authorizationToken: null,
    user: '',
    startup: function () {
      var _self = this;
      this.checkLogin();

      on(document.body, 'keypress', function (evt) {
        var charOrCode = evt.charCode || evt.keyCode;
        if ((charOrCode === 4) && evt.ctrlKey && evt.shiftKey) {
          if (!this._devDlg) {
            this._devDlg = new ConfirmDialog({
              title: 'Debugging Panel',
              style: { width: '350px' },
              content: '<div data-dojo-type="p3/widget/DeveloperPanel" style="height: 125px"></div>'
            });
            this._devDlg.cancelButton.domNode.style.display = 'none';
          }

          if (this._devDlg.open) {
            this._devDlg.hide();
          } else {
            this._devDlg.show();
          }
        }
      });<commit_msg>support debugging panel on firefox; remove ctr-shift-d to close<commit_after>define([
  'dojo/_base/declare',
  'dojo/topic', 'dojo/on', 'dojo/dom', 'dojo/dom-class', 'dojo/dom-attr', 'dojo/dom-construct', 'dojo/query',
  'dijit/registry', 'dojo/_base/lang',
  'dojo/_base/Deferred',
  'dojo/store/JsonRest', 'dojox/widget/Toaster',
  'dojo/ready', './app', '../router',
  'dojo/window', '../widget/Drawer', 'dijit/layout/ContentPane',
  '../jsonrpc', '../panels', '../WorkspaceManager', '../DataAPI', 'dojo/keys',
  'dijit/ConfirmDialog', '../util/PathJoin', 'dojo/request', '../widget/WorkspaceController'
], function (
  declare,
  Topic, on, dom, domClass, domAttr, domConstruct, domQuery,
  Registry, lang,
  Deferred,
  JsonRest, Toaster,
  Ready, App,
  Router, Window,
  Drawer, ContentPane,
  RPC, Panels, WorkspaceManager, DataAPI, Keys,
  ConfirmDialog, PathJoin, xhr, WorkspaceController
) {
  return declare([App], {
    panels: Panels,
    activeWorkspace: null,
    activeWorkspacePath: '/',
    uploadInProgress: false,
    activeMouse: true,
    alreadyLoggedIn: false,
    authorizationToken: null,
    user: '',
    startup: function () {
      var _self = this;
      this.checkLogin();

      on(document, 'keydown', function (evt) {
        // only act if ctrl-shift-d
        if (!(evt.ctrlKey && evt.shiftKey && evt.keyCode === 68)) {
          return;
        }

        if (!this._devDlg) {
          this._devDlg = new ConfirmDialog({
            title: 'Debugging Panel',
            style: { width: '350px' },
            content: '<div data-dojo-type="p3/widget/DeveloperPanel" style="height: 125px"></div>'
          });
          this._devDlg.cancelButton.domNode.style.display = 'none';
        }

        if (!this._devDlg.open) {
          this._devDlg.show();
        }
      });
{'fraction_non_alphanumeric': 0.17209302325581396, 'fraction_numerical': 0.004651162790697674, 'mean_word_length': 2.7154471544715446, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6312245', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1220, 'n_words': 239}