<commit_before>require 'alchemist'

class DataMiner
  class UnitConverter
    class Alchemist < UnitConverter
      def convert(value, from, to)
        value.to_f.send(from).to.send(to)
      end
    end
  end
end<commit_msg>Convert to a float by default, this will fix #23.<commit_after>require 'alchemist'

class DataMiner
  class UnitConverter
    class Alchemist < UnitConverter
      def convert(value, from, to)
        value.to_f.send(from).to.send(to).to_f
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08113590263691683, 'fraction_numerical': 0.004056795131845842, 'mean_word_length': 3.0491803278688523, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4030845', 'n_tokens_mistral': 164, 'n_tokens_neox': 162, 'n_words': 44}