<commit_before>package geohash_test

import (
	"fmt"

	"github.com/mmcloughlin/geohash"
)

func ExampleEncode() {
	fmt.Println(geohash.Encode(48.858, 2.294))
	// Output: u09tunq6qp66
}

func ExampleEncodeInt() {
	fmt.Printf("%016x\n", geohash.EncodeInt(48.858, 2.294))
	// Output: d0139d52c6b54c69
}

func ExampleEncodeIntWithPrecision() {
	fmt.Printf("%08x\n", geohash.EncodeIntWithPrecision(48.858, 2.294, 32))
	// Output: d0139d52
}

func ExampleEncodeWithPrecision() {
	fmt.Println(geohash.EncodeWithPrecision(48.858, 2.294, 5))
	// Output: u09tu
}<commit_msg>Decoding examples<commit_after>package geohash_test

import (
	"fmt"

	"github.com/mmcloughlin/geohash"
)

func ExampleEncode() {
	fmt.Println(geohash.Encode(48.858, 2.294))
	// Output: u09tunq6qp66
}

func ExampleEncodeInt() {
	fmt.Printf("%016x\n", geohash.EncodeInt(48.858, 2.294))
	// Output: d0139d52c6b54c69
}

func ExampleEncodeIntWithPrecision() {
	fmt.Printf("%08x\n", geohash.EncodeIntWithPrecision(48.858, 2.294, 32))
	// Output: d0139d52
}

func ExampleEncodeWithPrecision() {
	fmt.Println(geohash.EncodeWithPrecision(48.858, 2.294, 5))
	// Output: u09tu
}

func ExampleDecode() {
	lat, lng := geohash.Decode("u09tunq6")
	fmt.Printf("%.3f %.3f\n", lat, lng)
	// Output: 48.858 2.294
}

func ExampleDecodeInt() {
	lat, lng := geohash.DecodeInt(0xd0139d52c6b54c69)
	fmt.Printf("%.3f %.3f\n", lat, lng)
	// Output: 48.858 2.294
}

func ExampleDecodeIntWithPrecision() {
	lat, lng := geohash.DecodeIntWithPrecision(0xd013, uint(16))
	fmt.Printf("%.3f %.3f\n", lat, lng)
	// Output: 48.600 2.000
}
{'fraction_non_alphanumeric': 0.16709183673469388, 'fraction_numerical': 0.1211734693877551, 'mean_word_length': 4.768382352941177, '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': '2589414', 'n_tokens_mistral': 796, 'n_tokens_neox': 677, 'n_words': 104}