<commit_before>var emit = require('stereo/emit');
var on = require('stereo/on');
var when = require('stereo/when');
var snatch = require('stereo/catch');
var asObject = require('as/object');

function getCaption(rootChildren) {
  if (rootChildren[0] && rootChildren[0].tagName === 'LABEL') return {value:
    rootChildren[0]
  };
  else return {error: {message: 'bare-select: ' +
    'The first element in a `<bare-select>` should be the caption – a ' +
    '`<label>` element.'
  }};
}

function getSwitch(rootChildren) {
  if (
    rootChildren[1] &&
    rootChildren[1].tagName === 'INPUT' &&
    rootChildren[1].type.toLowerCase() === 'checkbox'
  ) return {value:
    rootChildren[1]
  };
  else return {error: {message: 'bare-select: ' +
    'The second element in a `<bare-select>` should be the switch – an ' +
    '`<input type="checkbox">` element.'
  }};
}

function getOptions(rootChildren) {
  var dropdown = rootChildren[2];<commit_msg>Get rid of unused DOM getters for now<commit_after>var emit = require('stereo/emit');
var on = require('stereo/on');
var when = require('stereo/when');
var snatch = require('stereo/catch');
var asObject = require('as/object');

function getOptions(rootChildren) {
  var dropdown = rootChildren[2];
{'fraction_non_alphanumeric': 0.16840417000801924, 'fraction_numerical': 0.007217321571772253, 'mean_word_length': 4.546666666666667, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '711837', 'n_tokens_mistral': 419, 'n_tokens_neox': 403, 'n_words': 105}