<commit_before>import {Observable} from 'rx'
import {label, span, section, h1, div, input, makeDOMDriver} from '@cycle/DOM'

function NumberInput({DOM, props$}) {
  let initialValue$ = props$.map(props => props.initial).first();

  let newValue$ = DOM.select('.number-input')
    .events('input')
    .map(ev => {
      let value = parseFloat(ev.target.value);
      if(isNaN(value)){
        return "";
      } else {
        return value;
      }
    });

  let value$ = initialValue$.concat(newValue$);<commit_msg>Clean up NumberInput imports<commit_after>import {Observable} from 'rx'
import {div, input, label} from '@cycle/DOM'

function NumberInput({DOM, props$}) {
  let initialValue$ = props$.map(props => props.initial).first();

  let newValue$ = DOM.select('.number-input')
    .events('input')
    .map(ev => {
      let value = parseFloat(ev.target.value);
      if(isNaN(value)){
        return "";
      } else {
        return value;
      }
    });

  let value$ = initialValue$.concat(newValue$);
{'fraction_non_alphanumeric': 0.16748768472906403, 'fraction_numerical': 0.0009852216748768472, 'mean_word_length': 3.1639344262295084, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6636266', 'n_tokens_mistral': 322, 'n_tokens_neox': 317, 'n_words': 72}