<commit_before>class GithubUrlHelperTest < ActiveSupport::TestCase

  include GithubUrlHelper

  test "#github_url returns the base github url" do
    assert_equal "https://github.com", github_url
  end

  test "#github_repo_url returns a repo url" do
    assert_equal "https://github.com/rails/rails", github_repo_url("rails", "rails").to_s
  end

  test "#github_commit_url returns a commit url" do
    sha      = SecureRandom.hex
    expected = "https://github.com/rails/rails/commit/#{sha}"

    assert_equal expected, github_commit_url("rails", "rails", sha).to_s
  end

  test "#github_diff_url returns a diff url" do
    from_sha = SecureRandom.hex
    to_sha   = SecureRandom.hex
    expected = "https://github.com/rails/rails/compare/#{from_sha}...#{to_sha}"

    assert_equal expected, github_diff_url("rails", "rails", from_sha, to_sha).to_s
  end

end<commit_msg>Minor cleanup<commit_after>require 'test_helper'

class GithubUrlHelperTest < ActiveSupport::TestCase
  include GithubUrlHelper

  test "#github_url returns the base github url" do
    assert_equal "https://github.com", github_url
  end

  test "#github_repo_url returns a repo url" do
    assert_equal "https://github.com/rails/rails", github_repo_url("rails", "rails").to_s
  end

  test "#github_commit_url returns a commit url" do
    sha      = SecureRandom.hex
    expected = "https://github.com/rails/rails/commit/#{sha}"

    assert_equal expected, github_commit_url("rails", "rails", sha).to_s
  end

  test "#github_diff_url returns a diff url" do
    from_sha = SecureRandom.hex
    to_sha   = SecureRandom.hex
    expected = "https://github.com/rails/rails/compare/#{from_sha}...#{to_sha}"

    assert_equal expected, github_diff_url("rails", "rails", from_sha, to_sha).to_s
  end
end
{'fraction_non_alphanumeric': 0.11744776962168267, 'fraction_numerical': 0.0, 'mean_word_length': 4.106628242074928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4536345', 'n_tokens_mistral': 613, 'n_tokens_neox': 561, 'n_words': 136}