<commit_before>module SportDb
  module Importer
    class Season
      ## todo/fix: remove builtin marker? - there are no "builtin" seasons like numbers all excepted for now
      def self.find_or_create_builtin( q )  ## e.g. '2017-18'
         Sync::Season.find_or_create( q )
      end
    end # class Season
  end  # module Importer


  module Sync
    class Season
      def self.norm_key( key )    ## helper for season key (rename to norm_key ???)
        season = Season.new( key )
        season.key
      end

      def self.find( key )
        key = norm_key( key )
        Model::Season.find_by( key: key )
      end<commit_msg>Update season.rb<commit_after>module SportDb
  module Importer
    class Season
      ## todo/fix: remove builtin marker? - there are no "builtin" seasons like numbers all excepted for now
      def self.find_or_create_builtin( q )  ## e.g. '2017-18'
         Sync::Season.find_or_create( q )
      end
    end # class Season
  end  # module Importer


  module Sync
    class Season
      def self.norm_key( key )    ## helper for season key (rename to norm_key ???)
        season = Import::Season.new( key )
        season.key
      end

      def self.find( key )
        key = norm_key( key )
        Model::Season.find_by( key: key )
      end
{'fraction_non_alphanumeric': 0.08780108780108781, 'fraction_numerical': 0.009324009324009324, 'mean_word_length': 2.196029776674938, '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': '4540811', 'n_tokens_mistral': 413, 'n_tokens_neox': 397, 'n_words': 128}