<commit_before>require 'spec_helper'

describe CircleCi::Build do
  describe 'get' do
    context 'successfully', vcr: { cassette_name: 'recent_builds/get/success', record: :none } do
      let(:res) { CircleCi::RecentBuilds.get }

      it 'returns a response object' do
        res.should be_an_instance_of(CircleCi::Response)
        res.should be_success
      end

      it 'returns recent builds' do
        res.body.should be_an_instance_of(Array)

        builds = res.body
        builds.size.should eql 30
        builds.first.should be_an_instance_of(Hash)

        build = builds.first
        build.should have_key 'build_num'
        build.should have_key 'build_url'
        build.should have_key 'status'<commit_msg>Correct spec describe<commit_after>require 'spec_helper'

describe CircleCi::RecentBuilds do
  describe 'get' do
    context 'successfully', vcr: { cassette_name: 'recent_builds/get/success', record: :none } do
      let(:res) { CircleCi::RecentBuilds.get }

      it 'returns a response object' do
        res.should be_an_instance_of(CircleCi::Response)
        res.should be_success
      end

      it 'returns recent builds' do
        res.body.should be_an_instance_of(Array)

        builds = res.body
        builds.size.should eql 30
        builds.first.should be_an_instance_of(Hash)

        build = builds.first
        build.should have_key 'build_num'
        build.should have_key 'build_url'
        build.should have_key 'status'
{'fraction_non_alphanumeric': 0.08654496281271129, 'fraction_numerical': 0.002704530087897228, 'mean_word_length': 2.864229765013055, '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': '5755926', 'n_tokens_mistral': 475, 'n_tokens_neox': 450, 'n_words': 109}