<commit_before>(function(app) {
  'use strict';

  var Button = app.Button || require('./button.js');
  var Events = app.Events || require('../base/events.js');

  var Preferences = function(el, props) {
    this.el = el;
    this._themeAttrs = props.themeAttrs;
    this._events = new Events();
    this._hideButton = new Button(this.el.querySelector('.preferences-hide-button'));
    this._themeFieldsetElement = this.el.querySelector('.preferences-fieldset-theme');
  };

  Preferences.prototype.init = function() {
    this._hideButton.init();
    this._themeFieldsetElement.addEventListener('change', this._changeTheme.bind(this));
    this._themeAttrs.on('change:value', this._updateTheme.bind(this));
    this._hideButton.on('click', this._events.emit.bind(this._events, 'hide'));
  };<commit_msg>Add property of element for preferences of GeoNames locations<commit_after>(function(app) {
  'use strict';

  var Button = app.Button || require('./button.js');
  var Events = app.Events || require('../base/events.js');

  var Preferences = function(el, props) {
    this.el = el;
    this._themeAttrs = props.themeAttrs;
    this._events = new Events();
    this._hideButton = new Button(this.el.querySelector('.preferences-hide-button'));
    this._themeFieldsetElement = this.el.querySelector('.preferences-fieldset-theme');
    this._geonamesInputsElement = this.el.querySelector('.preferences-inputs-geonames');
  };

  Preferences.prototype.init = function() {
    this._hideButton.init();
    this._themeFieldsetElement.addEventListener('change', this._changeTheme.bind(this));
    this._themeAttrs.on('change:value', this._updateTheme.bind(this));
    this._hideButton.on('click', this._events.emit.bind(this._events, 'hide'));
  };
{'fraction_non_alphanumeric': 0.16275071633237823, 'fraction_numerical': 0.0, 'mean_word_length': 4.45625, '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': '215159', 'n_tokens_mistral': 520, 'n_tokens_neox': 516, 'n_words': 84}