<commit_before>require 'rdoc/task'

module Rails
  module API
    class Task < RDoc::Task
      RDOC_FILES = {
        'activesupport' => {
          :include => %w(
            README.rdoc
            lib/active_support/**/*.rb
          ),
          :exclude => 'lib/active_support/vendor/*'
        },

        'activerecord' => {
          :include => %w(
            README.rdoc
            lib/active_record/**/*.rb
          )
        },

        'activemodel' => {
          :include => %w(
            README.rdoc
            lib/active_model/**/*.rb
          )
        },

        'actionpack' => {
          :include => %w(
            README.rdoc
            lib/abstract_controller/**/*.rb
            lib/action_controller/**/*.rb
            lib/action_dispatch/**/*.rb
          )
        },

        'actionview' => {
          :include => %w(
            README.rdoc
            lib/action_view/**/*.rb
          ),
          :exclude => 'lib/action_view/vendor/*'
        },

        'actionmailer' => {
          :include => %w(
            README.rdoc
            lib/action_mailer/**/*.rb
          )
        },

        'activejob' => {
          :include => %w(
            README.md
            lib/active_job/**/*.rb
          )
        },

        'railties' => {
          :include => %w(
            README.rdoc
            lib/**/*.rb
          ),
          :exclude => 'lib/rails/generators/rails/**/templates/**/*.rb'
        }
      }

      def initialize(name)
        super

        # Every time rake runs this task is instantiated as all the rest.
        # Be lazy computing stuff to have as light impact as possible to
        # the rest of tasks.
        before_running_rdoc do
          load_and_configure_sdoc
          configure_rdoc_files
          setup_horo_variables
        end
      end

      # Hack, ignore the desc calls performed by the original initializer.
      def desc(description)
        # no-op<commit_msg>Generate API doc for actioncable<commit_after>require 'rdoc/task'

module Rails
  module API
    class Task < RDoc::Task
      RDOC_FILES = {
        'activesupport' => {
          :include => %w(
            README.rdoc
            lib/active_support/**/*.rb
          ),
          :exclude => 'lib/active_support/vendor/*'
        },

        'activerecord' => {
          :include => %w(
            README.rdoc
            lib/active_record/**/*.rb
          )
        },

        'activemodel' => {
          :include => %w(
            README.rdoc
            lib/active_model/**/*.rb
          )
        },

        'actionpack' => {
          :include => %w(
            README.rdoc
            lib/abstract_controller/**/*.rb
            lib/action_controller/**/*.rb
            lib/action_dispatch/**/*.rb
          )
        },

        'actionview' => {
          :include => %w(
            README.rdoc
            lib/action_view/**/*.rb
          ),
          :exclude => 'lib/action_view/vendor/*'
        },

        'actionmailer' => {
          :include => %w(
            README.rdoc
            lib/action_mailer/**/*.rb
          )
        },

        'activejob' => {
          :include => %w(
            README.md
            lib/active_job/**/*.rb
          )
        },

        'actioncable' => {
          :include => %w(
            README.md
            lib/action_cable/**/*.rb
          )
        },

        'railties' => {
          :include => %w(
            README.rdoc
            lib/**/*.rb
          ),
          :exclude => 'lib/rails/generators/rails/**/templates/**/*.rb'
        }
      }

      def initialize(name)
        super

        # Every time rake runs this task is instantiated as all the rest.
        # Be lazy computing stuff to have as light impact as possible to
        # the rest of tasks.
        before_running_rdoc do
          load_and_configure_sdoc
          configure_rdoc_files
          setup_horo_variables
        end
      end

      # Hack, ignore the desc calls performed by the original initializer.
      def desc(description)
        # no-op
{'fraction_non_alphanumeric': 0.1249083353703251, 'fraction_numerical': 0.0, 'mean_word_length': 1.1777541245343268, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '1185125', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1163, 'n_words': 226}