<commit_before>/* See license.txt for terms of usage */

"use strict";

const { Cu, Ci } = require("chrome");
const { Firebug } = require("./firebug.js");
const { Trace } = require("./core/trace.js");
const { gDevTools } = Cu.import("resource:///modules/devtools/gDevTools.jsm", {});
const { start } = require("./debug/startup.js");
const { prefs } = require("sdk/simple-prefs");

// Entry point of the extension. Both 'main' and 'onUnload' methods are
// exported from this module and executed automatically by Add-ons SDK.
function main(options, callbacks) {
  Trace.sysout("main; ", options);

  // Initialize the main application object (a singleton). There is one
  // Firebug instance shared across all browser windows.
  Firebug.initialize(options);

  // Hook developer tools events to maintain Firebug object life time.
  // xxxHonza: this might be done inside chrome module.
  gDevTools.on("toolbox-ready", Firebug.onToolboxReady.bind(Firebug));
  gDevTools.on("toolbox-destroyed", Firebug.onToolboxDestroyed.bind(Firebug));
  gDevTools.on("pref-changed", Firebug.updateOption.bind(Firebug));

  // Run custom start up sequence (e.g. opens the toolbox automatically)
  // Helpful for debugging.
  Trace.sysout("debugStartup " + prefs["debugStartup"]);
  if (prefs["debugStartup"])
    start();
}<commit_msg>Remove obsolete tracing<commit_after>/* See license.txt for terms of usage */

"use strict";

const { Cu, Ci } = require("chrome");
const { Firebug } = require("./firebug.js");
const { Trace } = require("./core/trace.js");
const { gDevTools } = Cu.import("resource:///modules/devtools/gDevTools.jsm", {});
const { start } = require("./debug/startup.js");
const { prefs } = require("sdk/simple-prefs");

// Entry point of the extension. Both 'main' and 'onUnload' methods are
// exported from this module and executed automatically by Add-ons SDK.
function main(options, callbacks) {
  Trace.sysout("main; ", options);

  // Initialize the main application object (a singleton). There is one
  // Firebug instance shared across all browser windows.
  Firebug.initialize(options);

  // Hook developer tools events to maintain Firebug object life time.
  // xxxHonza: this might be done inside chrome module.
  gDevTools.on("toolbox-ready", Firebug.onToolboxReady.bind(Firebug));
  gDevTools.on("toolbox-destroyed", Firebug.onToolboxDestroyed.bind(Firebug));
  gDevTools.on("pref-changed", Firebug.updateOption.bind(Firebug));

  // Run custom start up sequence (e.g. opens the toolbox automatically)
  // Helpful for debugging.
  if (prefs["debugStartup"])
    start();
}
{'fraction_non_alphanumeric': 0.14418245071511404, 'fraction_numerical': 0.0, 'mean_word_length': 4.30327868852459, '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': '1616559', 'n_tokens_mistral': 790, 'n_tokens_neox': 767, 'n_words': 228}