<commit_before>module Competitions
  module OregonJuniorCyclocrossSeries
    class Overall < Competition
      def friendly_name
        "Oregon Junior Cyclocross Series"
      end

      def point_schedule
        [ 30, 28, 26, 24, 22, 20, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 ]
      end

      def members_only?
        false
      end

      def category_names
        [
          "Junior Men 9-12",
          "Junior Men 13-14",
          "Junior Men 15-16",
          "Junior Men 17-18",
          "Elite Junior Men",
          "Junior Women 9-12",
          "Junior Women 13-14",
          "Junior Women 15-16",
          "Junior Women 17-18",
          "Elite Junior Women"
        ]
      end

      def maximum_events(_)
        4
      end<commit_msg>Use category attributes for OJCS overall<commit_after>module Competitions
  module OregonJuniorCyclocrossSeries
    class Overall < Competition
      def friendly_name
        "Oregon Junior Cyclocross Series"
      end

      def point_schedule
        [ 30, 28, 26, 24, 22, 20, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 ]
      end

      def members_only?
        false
      end

      def category_names
        [
          "Junior Men 9-12",
          "Junior Men 13-14",
          "Junior Men 15-16",
          "Junior Men 17-18",
          "Elite Junior Men",
          "Junior Women 9-12",
          "Junior Women 13-14",
          "Junior Women 15-16",
          "Junior Women 17-18",
          "Elite Junior Women"
        ]
      end

      def categories_for(race)
        result_categories_by_race[race.category]
      end

      def maximum_events(_)
        4
      end
{'fraction_non_alphanumeric': 0.08924349881796691, 'fraction_numerical': 0.08274231678486997, 'mean_word_length': 1.5807926829268293, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1115729', 'n_tokens_mistral': 680, 'n_tokens_neox': 523, 'n_words': 172}