<commit_before>from hgdistver import _data_from_archival, \
    _archival_to_version
import os
import hgdistver
from hgdistver import hg
import py
from subprocess import call, Popen, PIPE

def get_version(path, method='get_version', **kw):
    call = getattr(hgdistver, method)
    root = str(path)
    return call(root=root, **kw)<commit_msg>cleanup imports in the tests<commit_after>import os
import py

import hgdistver
from hgdistver import hg, \
    _data_from_archival, \
    _archival_to_version

def get_version(path, method='get_version', **kw):
    call = getattr(hgdistver, method)
    root = str(path)
    return call(root=root, **kw)
{'fraction_non_alphanumeric': 0.09287925696594428, 'fraction_numerical': 0.0, 'mean_word_length': 4.935779816513762, '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': '1602410', 'n_tokens_mistral': 225, 'n_tokens_neox': 221, 'n_words': 60}