<commit_before>package geocoder

import (
	"fmt"
	"testing"
)

const (
	city       = "Seattle"
	state      = "WA"
	postalCode = "98104"
	seattleLat = 47.603561
	seattleLng = -122.329437
)

func TestGeocode(t *testing.T) {
	query := "Seattle WA"
	lat, lng := Geocode(query)

	if lat != seattleLat || lng != seattleLng {
		t.Error(fmt.Sprintf("Expected %f, %f ~ Received %f, %f", seattleLat, seattleLng, lat, lng))
	}
}

func TestReverseGeoCode(t *testing.T) {
	address := ReverseGeocode(seattleLat, seattleLng)

	if address.City != city || address.State != state || address.PostalCode != postalCode {
		t.Error(fmt.Sprintf("Expected %s %s %s ~ Received %s %s %s",
			city, state, postalCode, address.City, address.State, address.PostalCode))
	}
}<commit_msg>Use t.Errorf instead of t.Error(fmt.Sprintf<commit_after>package geocoder

import (
	"testing"
)

const (
	city       = "Seattle"
	state      = "WA"
	postalCode = "98104"
	seattleLat = 47.603561
	seattleLng = -122.329437
)

func TestGeocode(t *testing.T) {
	query := "Seattle WA"
	lat, lng := Geocode(query)

	if lat != seattleLat || lng != seattleLng {
		t.Errorf("Expected %f, %f ~ Received %f, %f", seattleLat, seattleLng, lat, lng)
	}
}

func TestReverseGeoCode(t *testing.T) {
	address := ReverseGeocode(seattleLat, seattleLng)

	if address.City != city || address.State != state || address.PostalCode != postalCode {
		t.Errorf("Expected %s %s %s ~ Received %s %s %s",
			city, state, postalCode, address.City, address.State, address.PostalCode)
	}
}
{'fraction_non_alphanumeric': 0.1520158625247852, 'fraction_numerical': 0.029081295439524125, 'mean_word_length': 4.013245033112582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6152562', 'n_tokens_mistral': 640, 'n_tokens_neox': 592, 'n_words': 137}