<commit_before># frozen_string_literal: true

require "#{Rails.root}/lib/wiki_edits"
require "#{Rails.root}/lib/wiki_course_output"
require "#{Rails.root}/lib/wikitext"

#= Class for making wiki edits for a particular course
class WikiCourseEdits
  def initialize(action:, course:, current_user:, **opts)
    return unless course.wiki_edits_enabled?
    @course = course
    # Edits can only be made to the course's home wiki through WikiCourseEdits
    @home_wiki = course.home_wiki
    @wiki_editor = WikiEdits.new(@home_wiki)
    @dashboard_url = ENV['dashboard_url']
    @current_user = current_user
    send(action, opts)
  end<commit_msg>More fixing of requires<commit_after># frozen_string_literal: true

require "#{Rails.root}/lib/wiki_edits"
require "#{Rails.root}/lib/wiki_course_output"
require "#{Rails.root}/lib/wiki_assignment_output"
require "#{Rails.root}/lib/wikitext"

#= Class for making wiki edits for a particular course
class WikiCourseEdits
  def initialize(action:, course:, current_user:, **opts)
    return unless course.wiki_edits_enabled?
    @course = course
    # Edits can only be made to the course's home wiki through WikiCourseEdits
    @home_wiki = course.home_wiki
    @wiki_editor = WikiEdits.new(@home_wiki)
    @dashboard_url = ENV['dashboard_url']
    @current_user = current_user
    send(action, opts)
  end
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0, 'mean_word_length': 4.947136563876652, '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': '481770', 'n_tokens_mistral': 452, 'n_tokens_neox': 439, 'n_words': 110}