<commit_before>/**
 * @class CM_FormField_Boolean
 * @extends CM_FormField_Abstract
 */
var CM_FormField_Boolean = CM_FormField_Abstract.extend({
  _class: 'CM_FormField_Boolean',

  events: {
    'change input': function() {
      this.trigger('change');
    }
  },

  getInput: function() {
    return this.$('input[type=checkbox]');
  },

  getValue: function() {
    return this.getInput().is(':checked') ? '1' : '0';
  },

  /**
   * @param {Boolean} checked
   */
  setValue: function(checked) {
    if (checked) {
      this.getInput().attr('checked', 'checked');
    } else {
      this.getInput().removeAttr('checked');
    }
  }
});<commit_msg>Return boolean CM_FormField_Boolean.getValue()<commit_after>/**
 * @class CM_FormField_Boolean
 * @extends CM_FormField_Abstract
 */
var CM_FormField_Boolean = CM_FormField_Abstract.extend({
  _class: 'CM_FormField_Boolean',

  events: {
    'change input': function() {
      this.trigger('change');
    }
  },

  getInput: function() {
    return this.$('input[type=checkbox]');
  },

  /**
   * @returns {Boolean}
   */
  getValue: function() {
    return this.getInput().is(':checked');
  },

  /**
   * @param {Boolean} checked
   */
  setValue: function(checked) {
    if (checked) {
      this.getInput().attr('checked', 'checked');
    } else {
      this.getInput().removeAttr('checked');
    }
  }
});
{'fraction_non_alphanumeric': 0.17875457875457876, 'fraction_numerical': 0.0014652014652014652, 'mean_word_length': 3.309148264984227, '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': '7534351', 'n_tokens_mistral': 461, 'n_tokens_neox': 450, 'n_words': 74}