<commit_before>require 'helper'

describe Githu3::Repo do

  def repo
    stub_get "/repos/technoweenie/faraday", "repos/faraday"
    @client.repo("technoweenie/faraday")
  end

  def issue
    stub_get "/repos/technoweenie/faraday/issues/1", "repos/issue"
    repo.issues("1")
  end

  before do
    @client = Githu3::Client.new("myvalidtoken")
  end
  
  
  describe "Issue Events" do
    it "should fetch an issue's events" do
      stub_get "/repos/technoweenie/faraday/issues/1/events", "issues/events"
      issue.events.length.should == 1
    end
    
    it 'should Get a single event' do
      stub_get "/repos/technoweenie/faraday/issues/1/events/1", "issues/event"
      issue.events('1').event.should == "closed"
    end
  end
  
  describe "Issue Comments" do
    it "should get a comments list for the issue" do
      stub_get "/repos/technoweenie/faraday/issues/1/comments", "issues/comments"
      issue.comments.length.should == 3
    end
    
    it "should get a single comment" do
      # TODO... check if github updates the route...
      pending
    end
  end
  
  describe "Issue labels" do
    it "should list its labels" do
      stub_get "/repos/technoweenie/faraday/issues/1/labels", "repos/labels"
      issue.labels.length.should == 1
    end
    
    
  end
  
  <commit_msg>Adding reason for pending issue<commit_after>require 'helper'

describe Githu3::Repo do

  def repo
    stub_get "/repos/technoweenie/faraday", "repos/faraday"
    @client.repo("technoweenie/faraday")
  end

  def issue
    stub_get "/repos/technoweenie/faraday/issues/1", "repos/issue"
    repo.issues("1")
  end

  before do
    @client = Githu3::Client.new("myvalidtoken")
  end
  
  
  describe "Issue Events" do
    it "should fetch an issue's events" do
      stub_get "/repos/technoweenie/faraday/issues/1/events", "issues/events"
      issue.events.length.should == 1
    end
    
    it 'should Get a single event' do
      stub_get "/repos/technoweenie/faraday/issues/1/events/1", "issues/event"
      issue.events('1').event.should == "closed"
    end
  end
  
  describe "Issue Comments" do
    it "should get a comments list for the issue" do
      stub_get "/repos/technoweenie/faraday/issues/1/comments", "issues/comments"
      issue.comments.length.should == 3
    end
    
    it "should get a single comment" do
      # TODO... check if github updates the route...
      pending("Waiting for a relpy's from github's team on the route...")
    end
  end
  
  describe "Issue labels" do
    it "should list its labels" do
      stub_get "/repos/technoweenie/faraday/issues/1/labels", "repos/labels"
      issue.labels.length.should == 1
    end
    
    
  end
  
  
{'fraction_non_alphanumeric': 0.11272321428571429, 'fraction_numerical': 0.009672619047619048, 'mean_word_length': 2.6387009472259813, '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': '741436', 'n_tokens_mistral': 944, 'n_tokens_neox': 895, 'n_words': 231}