<commit_before>module RorVsWild
  class Metrics
    class Storage
      attr_reader :used, :free

      def update
        array = `df | grep " /$"`.split
        @used, @free = array[2..3].map(&:to_i)
      end<commit_msg>Collect storage size in bytes<commit_after>module RorVsWild
  class Metrics
    class Storage
      attr_reader :used, :free

      def update
        array = `df -k | grep " /$"`.split
        @used = array[2].to_i * 1000
        @free = array[3].to_i * 1000
      end
{'fraction_non_alphanumeric': 0.11382113821138211, 'fraction_numerical': 0.024390243902439025, 'mean_word_length': 2.16025641025641, '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': '5427838', 'n_tokens_mistral': 178, 'n_tokens_neox': 161, 'n_words': 45}