<commit_before>(function () {
  "use strict";
  var defaultSE = "Google.com";
  var advanced_settings = document.getElementsByClassName('chrometana_advanced_setting');
  var useCustomSearch = document.getElementById('useCustomSearch');
  var custom_engine_settings = document.getElementById('custom_engine_settings');
  var selectorList = document.getElementsByClassName('selector');

  if (getURLVariable("newinstall") === "yes"){
    var installadvice = document.getElementById('installadvice');
    addClass(installadvice, 'visible');
  }

  var optionCaller = function() {
    save_options('search_engine', this, this.getAttribute('value'));
  };

  var handleMouseover = function() {
    var selectedElements = document.getElementsByClassName('hovering');
    for (var i = 0; i < selectedElements.length; i++) {
      removeClass(selectedElements[i], 'hovering');
    }
    var selected = document.getElementsByClassName('selected')[0];
    removeClass(selected, 'hovering');
    addClass(this, 'hovering');

  };

  var handleMouseout = function() {
    var selected = document.getElementsByClassName('selected')[0];
    removeClass(this, 'hovering');
    addClass(selected, 'hovering');
  };

  var advancedSettingsCaller = function() {
    var id = this.id;
    var value;
    if(this.getAttribute("type") === "checkbox" || this.getAttribute("type") === "radio"){
      if(this.checked){
        value = true;
      }
      else{
        value = false;
      }
    }
    save_options(this.id, this, value);
  };

  function save_options(key, element, value){
    var options = {};
    options[key] = value;
    if(key === "custom_engine"){ 
      if(value !== ""){
        options.search_engine = "Custom";
      }
      else{
        options.search_engine = defaultSE;
      }<commit_msg>Remove unused var<commit_after>(function () {
  "use strict";
  var defaultSE = "Google.com";
  var advanced_settings = document.getElementsByClassName('chrometana_advanced_setting');
  var useCustomSearch = document.getElementById('useCustomSearch');
  var custom_engine_settings = document.getElementById('custom_engine_settings');
  var selectorList = document.getElementsByClassName('selector');

  if (getURLVariable("newinstall") === "yes"){
    var installadvice = document.getElementById('installadvice');
    addClass(installadvice, 'visible');
  }

  var optionCaller = function() {
    save_options('search_engine', this, this.getAttribute('value'));
  };

  var handleMouseover = function() {
    var selectedElements = document.getElementsByClassName('hovering');
    for (var i = 0; i < selectedElements.length; i++) {
      removeClass(selectedElements[i], 'hovering');
    }
    var selected = document.getElementsByClassName('selected')[0];
    removeClass(selected, 'hovering');
    addClass(this, 'hovering');

  };

  var handleMouseout = function() {
    var selected = document.getElementsByClassName('selected')[0];
    removeClass(this, 'hovering');
    addClass(selected, 'hovering');
  };

  var advancedSettingsCaller = function() {
    var value;
    if(this.getAttribute("type") === "checkbox" || this.getAttribute("type") === "radio"){
      if(this.checked){
        value = true;
      }
      else{
        value = false;
      }
    }
    save_options(this.id, this, value);
  };

  function save_options(key, element, value){
    var options = {};
    options[key] = value;
    if(key === "custom_engine"){ 
      if(value !== ""){
        options.search_engine = "Custom";
      }
      else{
        options.search_engine = defaultSE;
      }
{'fraction_non_alphanumeric': 0.14457494407158836, 'fraction_numerical': 0.0016778523489932886, 'mean_word_length': 3.8207547169811322, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1516732', 'n_tokens_mistral': 1042, 'n_tokens_neox': 1012, 'n_words': 201}