<commit_before>statedict(s::Union(Slider, Progress)) =
    Dict(:value=>s.value,
         :min=>first(s.range),
         :step=>step(s.range),
         :max=>last(s.range))

# when we say value to javascript, it really means value label
statedict(d::Options) =
    Dict(:value_name=>d.value_label,
         :value_names=>collect(keys(d.options)))<commit_msg>Fix Dicts for v0.3<commit_after>statedict(s::Union(Slider, Progress)) =
    @compat Dict(:value=>s.value,
         :min=>first(s.range),
         :step=>step(s.range),
         :max=>last(s.range))

# when we say value to javascript, it really means value label
statedict(d::Options) =
    @compat Dict(:value_name=>d.value_label,
         :value_names=>collect(keys(d.options)))
{'fraction_non_alphanumeric': 0.16689280868385345, 'fraction_numerical': 0.0027137042062415195, 'mean_word_length': 3.823529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2814874', 'n_tokens_mistral': 256, 'n_tokens_neox': 248, 'n_words': 44}