<commit_before>require 'spec_helper'

describe Sgeoip do
  it 'should return correct info for ip' do
    ip_info = Sgeoip::scrape('8.8.8.8')

    ip_info["host"].should == "google-public-dns-a.google.com"
    ip_info["country"].should == " United States "
    ip_info["country_code"].should == "US (USA)"
    ip_info["region"].should == "California"
    ip_info["city"].should == "Mountain View"
    ip_info["zip"].should == "94043"
    ip_info["error"].should be_nil
  end
  
  it 'should return an erro for a bad ip' do
    ip_info = Sgeoip::scrape('1.c.aa.p/')
    
    ip_info["error"].should == "Results Not Found"
  end
end<commit_msg>fixed typo in test<commit_after>require 'spec_helper'

describe Sgeoip do
  it 'should return correct info for ip' do
    ip_info = Sgeoip::scrape('8.8.8.8')

    ip_info["host"].should == "google-public-dns-a.google.com"
    ip_info["country"].should == " United States "
    ip_info["country_code"].should == "US (USA)"
    ip_info["region"].should == "California"
    ip_info["city"].should == "Mountain View"
    ip_info["zip"].should == "94043"
    ip_info["error"].should be_nil
  end
  
  it 'should return an error for a bad ip' do
    ip_info = Sgeoip::scrape('1.c.aa.p/')
    
    ip_info["error"].should == "Results Not Found"
  end
end
{'fraction_non_alphanumeric': 0.16304347826086957, 'fraction_numerical': 0.015527950310559006, 'mean_word_length': 3.5709219858156027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4469835', 'n_tokens_mistral': 474, 'n_tokens_neox': 457, 'n_words': 104}