<commit_before>require 'test_helper'

class GeoHelperTest < ActionView::TestCase
  include GeoHelper

  test "should get ip address" do
    ip = "192.168.3.11"
    @request.headers["REMOTE_ADDR"] = ip
    assert_equal(ip, "192.168.3.11")
  end 

  test "should suggest location with ip address" do
    suggestion = GeoHelper.suggest "172.16.58.3"
    assert(suggestion.include? "Madrid, España")

    suggestion = GeoHelper.suggest "192.168.3.11"
    assert(suggestion.include? "Madrid, España")

    suggestion = GeoHelper.suggest "8.8.8.8"
    assert_equal("Mountain View, California, United States", suggestion)
    
  end

end
<commit_msg>[tests] Remove redundant unreliable tests<commit_after>require 'test_helper'

class GeoHelperTest < ActionView::TestCase
  include GeoHelper

  test "should get ip address" do
    ip = "192.168.3.11"
    @request.headers["REMOTE_ADDR"] = ip
    assert_equal(ip, "192.168.3.11")
  end 

  test "should suggest location with ip address" do
    suggestion = GeoHelper.suggest "8.8.8.8"
    assert_equal("Mountain View, California, United States", suggestion)
  end

end

{'fraction_non_alphanumeric': 0.11171171171171171, 'fraction_numerical': 0.054954954954954956, 'mean_word_length': 3.8304347826086955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '2340362', 'n_tokens_mistral': 412, 'n_tokens_neox': 357, 'n_words': 94}