<commit_before>module Riiif
  class FileSystemFileResolver < AbstractFileSystemResolver
    attr_writer :input_types

    def pattern(id)
      raise ArgumentError, "Invalid characters in id `#{id}`" unless id =~ /^[\w\-:]+$/
      ::File.join(base_path, "#{id}.{#{input_types.join(',')}}")
    end

    private

      def input_types
        @input_types ||= %w(png jpg tiff jp jp2)
      end
  end
end
<commit_msg>Remove jp as a valid file extension<commit_after>module Riiif
  class FileSystemFileResolver < AbstractFileSystemResolver
    attr_writer :input_types

    def pattern(id)
      raise ArgumentError, "Invalid characters in id `#{id}`" unless id =~ /^[\w\-:]+$/
      ::File.join(base_path, "#{id}.{#{input_types.join(',')}}")
    end

    private

      def input_types
        @input_types ||= %w(png jpg tiff jp2)
      end
  end
end

{'fraction_non_alphanumeric': 0.136310223266745, 'fraction_numerical': 0.0023501762632197414, 'mean_word_length': 3.1359223300970873, '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': '2123610', 'n_tokens_mistral': 290, 'n_tokens_neox': 287, 'n_words': 73}