<commit_before>module.exports = {
    list: list
  , value: value
  , dimensions: dimensions
  , add_to: add_to
}

function add_to(altr) {
  altr.add_filter('scale', value)
  altr.add_filter('scale-list', list)<commit_msg>export function for direct use<commit_after>module.exports = scale_fn
module.exports.filters = {
    list: list
  , value: value
  , dimensions: dimensions
  , add_to: add_to
}

function scale_fn(val, domain, range) {
  return scale(val, dimension(domain, range))
}

function add_to(altr) {
  altr.add_filter('scale', value)
  altr.add_filter('scale-list', list)
{'fraction_non_alphanumeric': 0.1284246575342466, 'fraction_numerical': 0.0, 'mean_word_length': 4.679611650485437, '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': '1228698', 'n_tokens_mistral': 206, 'n_tokens_neox': 204, 'n_words': 43}