<commit_before>require 'media_wiki'
require 'crack'

class Wiki

  # Parsing methods
  def self.get_course_list
    response = get_page_content('User:RagesossBot/course_ids')
    response.split(/\n/)
  end

  def self.get_student_count_in_course(course_id)
    response = get_student_list(course_id)
    unless response["students"].blank?
      response["students"]["username"].count
    else
      []
    end
  end

  def self.get_students_in_course(course_id)
    response = get_student_list(course_id)
    unless response["students"].blank?
      response["students"]["username"]
    else<commit_msg>change the page of course ids to Education_program/Dashboard/course_ids<commit_after>require 'media_wiki'
require 'crack'

class Wiki

  # Parsing methods
  def self.get_course_list
    response = get_page_content('Education_program/Dashboard/course_ids')
    response.split(/\n/)
  end

  def self.get_student_count_in_course(course_id)
    response = get_student_list(course_id)
    unless response["students"].blank?
      response["students"]["username"].count
    else
      []
    end
  end

  def self.get_students_in_course(course_id)
    response = get_student_list(course_id)
    unless response["students"].blank?
      response["students"]["username"]
    else
{'fraction_non_alphanumeric': 0.10352941176470588, 'fraction_numerical': 0.0, 'mean_word_length': 4.208163265306123, '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': '3247168', 'n_tokens_mistral': 411, 'n_tokens_neox': 410, 'n_words': 70}