<commit_before># encoding: utf-8
require 'rubygems'
require './lib/esnek'
require 'minitest/autorun'

describe Esnek do
  before do
    @esnek=Esnek.new
  end

  describe "When an esnek against public APIs is given" do
    it "should return call a .." do
      @esnek.get
    end
  end
  
end<commit_msg>testing against facebook graph api<commit_after># encoding: utf-8
require 'rubygems'
require './lib/esnek'
require 'minitest/autorun'

describe Esnek do
  before do      
  end

  describe "When I query Facebook graph API to count the # of shares of url" do
    it "should return an object which responds to :shares" do
      fb = Esnek.new('http://graph.facebook.com')
      res = fb.send(:"http://www.wsirussia.ru").get
      assert res.respond_to?(:shares)
    end
  end

end
{'fraction_non_alphanumeric': 0.09974424552429667, 'fraction_numerical': 0.0025575447570332483, 'mean_word_length': 3.078125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1245991', 'n_tokens_mistral': 267, 'n_tokens_neox': 260, 'n_words': 88}