<commit_before>'use strict';

var sell = require('sell');
var crossvent = require('crossvent');
var throttle = require('./throttle');
var props = [
  'direction',
  'boxSizing',
  'width',
  'height',
  'overflowX',
  'overflowY',
  'borderTopWidth',
  'borderRightWidth',
  'borderBottomWidth',
  'borderLeftWidth',
  'paddingTop',
  'paddingRight',
  'paddingBottom',
  'paddingLeft',
  'fontStyle',
  'fontVariant',
  'fontWeight',
  'fontStretch',
  'fontSize',
  'fontSizeAdjust',
  'lineHeight',
  'fontFamily',
  'textAlign',
  'textTransform',
  'textIndent',
  'textDecoration',
  'letterSpacing',
  'wordSpacing'
];
var doc = document;
var ff = window.mozInnerScreenX !== null && window.mozInnerScreenX !== void 0;

function tailormade (el, options) {
  var throttledRefresh = throttle(refresh, 30);
  var o = options || {};
  if (o.update === void 0) { o.update = autosize; }
  if (o.positions === void 0) { o.positions = ['start', 'end', 'all']; }

  bind();

  return {
    refresh: throttledRefresh,
    destroy: destroy
  };

  function refresh () {
    var p = sell(el);
    var context = prepare();
    var readings = {};

    if (o.positions.indexOf('start') !== -1) { add('start', p.start); }
    if (o.positions.indexOf('end') !== -1) { add('end', p.end); }
    if (o.positions.indexOf('all') !== -1) { add('all', el.value.length); }

    doc.body.removeChild(context.mirror);<commit_msg>rm unused line<commit_after>'use strict';

var sell = require('sell');
var crossvent = require('crossvent');
var throttle = require('./throttle');
var props = [
  'direction',
  'boxSizing',
  'width',
  'height',
  'overflowX',
  'overflowY',
  'borderTopWidth',
  'borderRightWidth',
  'borderBottomWidth',
  'borderLeftWidth',
  'paddingTop',
  'paddingRight',
  'paddingBottom',
  'paddingLeft',
  'fontStyle',
  'fontVariant',
  'fontWeight',
  'fontStretch',
  'fontSize',
  'fontSizeAdjust',
  'lineHeight',
  'fontFamily',
  'textAlign',
  'textTransform',
  'textIndent',
  'textDecoration',
  'letterSpacing',
  'wordSpacing'
];
var doc = document;
var ff = window.mozInnerScreenX !== null && window.mozInnerScreenX !== void 0;

function tailormade (el, options) {
  var throttledRefresh = throttle(refresh, 30);
  var o = options || {};
  if (o.positions === void 0) { o.positions = ['start', 'end', 'all']; }

  bind();

  return {
    refresh: throttledRefresh,
    destroy: destroy
  };

  function refresh () {
    var p = sell(el);
    var context = prepare();
    var readings = {};

    if (o.positions.indexOf('start') !== -1) { add('start', p.start); }
    if (o.positions.indexOf('end') !== -1) { add('end', p.end); }
    if (o.positions.indexOf('all') !== -1) { add('all', el.value.length); }

    doc.body.removeChild(context.mirror);
{'fraction_non_alphanumeric': 0.189873417721519, 'fraction_numerical': 0.0054249547920434, 'mean_word_length': 3.9129662522202486, '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': '565658', 'n_tokens_mistral': 987, 'n_tokens_neox': 937, 'n_words': 211}