<commit_before>import unittest
import os
from os.path import dirname
import sys
import json

from mrjob.job import MRJob
import Geohash

root = dirname(dirname(dirname(os.path.abspath(__file__))))
sys.path.append(root)

GEOTWEET_DIR = root
COUNTIES_GEOJSON_LOCAL = os.path.join(GEOTWEET_DIR, 'data/geo/us_counties.geojson')
os.environ['COUNTIES_GEOJSON_LOCAL'] = COUNTIES_GEOJSON_LOCAL

# COUNTIES_GEOJSON_LOCAL environment variable must be set before import
from geotweet.mapreduce.state_county_wordcount import MRStateCountyWordCount
from geotweet.mapreduce.state_county_wordcount import GEOHASH_PRECISION


def build_input(text, desc="My Account", lonlat=[-122.5, 45.4]):
    return json.dumps(dict(
        description=desc,<commit_msg>fix path to local counties geojson<commit_after>import unittest
import os
from os.path import dirname
import sys
import json

from mrjob.job import MRJob
import Geohash

root = dirname(dirname(dirname(os.path.abspath(__file__))))
sys.path.append(root)

GEOTWEET_DIR = root
DATA_DIR = os.path.join(root, 'data', 'geo')
COUNTIES_GEOJSON_LOCAL = os.path.join(DATA_DIR,'us_counties102005.geojson')
os.environ['COUNTIES_GEOJSON_LOCAL'] = COUNTIES_GEOJSON_LOCAL

# COUNTIES_GEOJSON_LOCAL environment variable must be set before import
from geotweet.mapreduce.state_county_wordcount import MRStateCountyWordCount
from geotweet.mapreduce.state_county_wordcount import GEOHASH_PRECISION


def build_input(text, desc="My Account", lonlat=[-122.5, 45.4]):
    return json.dumps(dict(
        description=desc,
{'fraction_non_alphanumeric': 0.08777633289986995, 'fraction_numerical': 0.013003901170351105, 'mean_word_length': 6.695, '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': '4221133', 'n_tokens_mistral': 552, 'n_tokens_neox': 521, 'n_words': 113}