<commit_before>require File.expand_path(File.dirname(__FILE__) + '/helper')

class RepoTest < Test::Unit::TestCase
  context "when passed a string containg a forward slash" do
    setup do
      @repo = Octokit::Repository.new("pengwynn/linkedin")
    end

    should "set the username and repo name" do
      @repo.name.should == "linkedin"
      @repo.username.should == "pengwynn"
    end

    should "repond to user and repo" do
      @repo.repo.should == "linkedin"
      @repo.user.should == "pengwynn"
    end

    should "render slug as string" do
      @repo.slug.should == "pengwynn/linkedin"
      @repo.to_s.should == @repo.slug<commit_msg>spelling error<commit_after>require File.expand_path(File.dirname(__FILE__) + '/helper')

class RepoTest < Test::Unit::TestCase
  context "when passed a string containg a forward slash" do
    setup do
      @repo = Octokit::Repository.new("pengwynn/linkedin")
    end

    should "set the username and repo name" do
      @repo.name.should == "linkedin"
      @repo.username.should == "pengwynn"
    end

    should "respond to user and repo" do
      @repo.repo.should == "linkedin"
      @repo.user.should == "pengwynn"
    end

    should "render slug as string" do
      @repo.slug.should == "pengwynn/linkedin"
      @repo.to_s.should == @repo.slug
{'fraction_non_alphanumeric': 0.12098009188361408, 'fraction_numerical': 0.0, 'mean_word_length': 3.084375, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5968069', 'n_tokens_mistral': 440, 'n_tokens_neox': 425, 'n_words': 112}