<commit_before>/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "(EXPORTED_SYMBOLS|Pioneer)" }]*/

const { utils: Cu } = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");

XPCOMUtils.defineLazyModuleGetter(
  this,
  "Config",
  "resource://esper-pioneer-shield-study/Config.jsm",
);
XPCOMUtils.defineLazyModuleGetter(
  this,
  "PioneerUtils",
  "resource://esper-pioneer-shield-study/PioneerUtils.jsm",
);

const Pioneer = {
  async startup(addonData) {
    Config.addonId = addonData.id;
    this.utils = new PioneerUtils(Config);
    const branch = await Pioneer.utils.chooseBranch();
    this.metadata = {
      packetVersion: "esper1",
      studyName: Config.studyName,
      branch: branch.name,
      addonId: addonData.id,
      addonVersion: addonData.version,
      pioneerUtilsVersion: "1.0.9",
      type: "pioneer-study-addon",
      testing: !Config.telemetry.removeTestingFlag,
    };
  },
};

this.EXPORTED_SYMBOLS = ["Pioneer"];<commit_msg>Updated pioneer utils version in packet metadata<commit_after>/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "(EXPORTED_SYMBOLS|Pioneer)" }]*/

const { utils: Cu } = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");

XPCOMUtils.defineLazyModuleGetter(
  this,
  "Config",
  "resource://esper-pioneer-shield-study/Config.jsm",
);
XPCOMUtils.defineLazyModuleGetter(
  this,
  "PioneerUtils",
  "resource://esper-pioneer-shield-study/PioneerUtils.jsm",
);

const Pioneer = {
  async startup(addonData) {
    Config.addonId = addonData.id;
    this.utils = new PioneerUtils(Config);
    const branch = await Pioneer.utils.chooseBranch();
    this.metadata = {
      packetVersion: "esper1",
      studyName: Config.studyName,
      branch: branch.name,
      addonId: addonData.id,
      addonVersion: addonData.version,
      pioneerUtilsVersion: "1.0.10",
      type: "pioneer-study-addon",
      testing: !Config.telemetry.removeTestingFlag,
    };
  },
};

this.EXPORTED_SYMBOLS = ["Pioneer"];
{'fraction_non_alphanumeric': 0.14885114885114886, 'fraction_numerical': 0.004495504495504496, 'mean_word_length': 3.921375921375921, 'pattern_counts': {'":': 2, '<': 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': '6775054', 'n_tokens_mistral': 731, 'n_tokens_neox': 715, 'n_words': 107}