<commit_before>require 'helper'

describe Pinboard::Client do
  describe "#posts" do
    let(:client) { Pinboard::Client.new(auth_params) }

    before do
      stub_get("posts/all").
        to_return(:body => fixture("posts_all.xml"),
        :headers => { 'content-type' => 'text/xml' })
    end

    it "returns a collection of posts" do
      expected = [
        Pinboard::Post.new(
          :href => "http://foo.com/",
          :description => "Foo!",
          :tag => 'foo bar',
          :time => Time.parse("2011-07-26T17:52:04Z")),
        Pinboard::Post.new(
          :href => "http://bar.com/",
          :description => "Bar!",
          :tag => 'foo bar',
          :time => Time.parse("2011-07-26T17:52:04Z"))
      ]

      client.posts.should == expected
    end
  end
end
<commit_msg>Update spec to match new output<commit_after>require 'helper'

describe Pinboard::Client do
  describe "#posts" do
    let(:client) { Pinboard::Client.new(auth_params) }

    before do
      stub_get("posts/all?").
        to_return(:body => fixture("posts_all.xml"),
        :headers => { 'content-type' => 'text/xml' })
    end

    it "returns a collection of posts" do
      expected = [
        Pinboard::Post.new(
          :href => "http://foo.com/",
          :description => "Foo!",
          :tag => 'foo bar',
          :time => Time.parse("2011-07-26T17:52:04Z")),
        Pinboard::Post.new(
          :href => "http://bar.com/",
          :description => "Bar!",
          :tag => 'foo bar',
          :time => Time.parse("2011-07-26T17:52:04Z"))
      ]

      client.posts.should == expected
    end
  end
end

{'fraction_non_alphanumeric': 0.1745254133496632, 'fraction_numerical': 0.034292712798530314, 'mean_word_length': 2.118320610687023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2824960', 'n_tokens_mistral': 567, 'n_tokens_neox': 526, 'n_words': 109}