<commit_before>/**
 * import the module containing definition of all privly constants
 */
Components.utils.import("resource://privly/constants.jsm");
/**
 * @namespace
 * Handles changes to the extension's preferences.
 */
var privlyPrefPane =
{
  
  /**
   * Interface object to the extension preferences.
   */
  preferences: Components.classes["@mozilla.org/preferences-service;1"]
                         .getService(Components.interfaces.nsIPrefService)
                         .getBranch("extensions.privly."),


  /**
   * Handler for the loading of the extension preference pane.
   * @param {event} event The load event. Not currently used.
   */
  onPaneLoad: function (event) {
    
    "use strict";
    
    //get the extensionmode from preferences if it was modified using the toolbar button
    extensionMode = this.preferences.getIntPref("extensionMode");
    //update the radio buttons to reflect the changes.
    if (extensionMode === privlyConstants.extensionModeEnum.ACTIVE) {
      document.getElementById('active').selected = true;
    }
    else if (extensionMode === privlyConstants.extensionModeEnum.PASSIVE) {
      document.getElementById('passive').selected = true;
    }
    else if (extensionMode === privlyConstants.extensionModeEnum.CLICKTHROUGH) {
      document.getElementById('require-clickthrough').selected = true;
    }<commit_msg>JS modules bugs<commit_after>/**
 * import the module containing definition of all privly constants
 */
Components.utils.import("resource://privly/constants.jsm");
/**
 * @namespace
 * Handles changes to the extension's preferences.
 */
var privlyPrefPane =
{
  
  /**
   * Interface object to the extension preferences.
   */
  preferences: Components.classes["@mozilla.org/preferences-service;1"]
                         .getService(Components.interfaces.nsIPrefService)
                         .getBranch("extensions.privly."),


  /**
   * Handler for the loading of the extension preference pane.
   * @param {event} event The load event. Not currently used.
   */
  onPaneLoad: function (event) {
    
    "use strict";
    
    //get the extensionmode from preferences if it was modified using the toolbar button
    var extensionMode = this.preferences.getIntPref("extensionMode");
    //update the radio buttons to reflect the changes.
    if (extensionMode === privlyConstants.extensionModeEnum.ACTIVE) {
      document.getElementById('active').selected = true;
    }
    else if (extensionMode === privlyConstants.extensionModeEnum.PASSIVE) {
      document.getElementById('passive').selected = true;
    }
    else if (extensionMode === privlyConstants.extensionModeEnum.CLICKTHROUGH) {
      document.getElementById('require-clickthrough').selected = true;
    }
{'fraction_non_alphanumeric': 0.10844250363901019, 'fraction_numerical': 0.000727802037845706, 'mean_word_length': 3.2554179566563466, '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': '6854704', 'n_tokens_mistral': 720, 'n_tokens_neox': 706, 'n_words': 189}