<commit_before>module Attachs
  class Console
    class << self

      def detect_content_type(path)
        run "file -Ib '#{path}'" do |output|
          output.split(';').first
        end
      end

      def read_dimensions(path)<commit_msg>Fix content type detection for bsd<commit_after>module Attachs
  class Console
    class << self

      def detect_content_type(path)
        run "file -ib '#{path}'" do |output|
          output.split(';').first
        end
      end

      def read_dimensions(path)
{'fraction_non_alphanumeric': 0.10136452241715399, 'fraction_numerical': 0.0, 'mean_word_length': 2.3376623376623376, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3356996', 'n_tokens_mistral': 158, 'n_tokens_neox': 152, 'n_words': 42}