<commit_before># encoding: utf-8
require 'spec_helper'

describe GH::Response do
  before do
    stub_request(:get, '/repos/travis-ci/gh/contents/README.md?per_page=100').to_return(
      status: 200,
      body: load_response_stub('node_contents')
    )
  end

  it 'parses content endpoints correctly' do<commit_msg>Fix build<commit_after># encoding: utf-8
require 'spec_helper'

describe GH::Response do
  before do
    stub_request(:get, 'https://api.github.com/repos/travis-ci/gh/contents/README.md?per_page=100').to_return(
      status: 200,
      body: load_response_stub('node_contents')
    )
  end

  it 'parses content endpoints correctly' do
{'fraction_non_alphanumeric': 0.12079510703363915, 'fraction_numerical': 0.021406727828746176, 'mean_word_length': 4.198412698412699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2933338', 'n_tokens_mistral': 238, 'n_tokens_neox': 223, 'n_words': 46}