<commit_before>import os
import pysal

__all__ = ['get_path']

dl = "http://code.google.com/p/pysal/downloads/list"
def get_path(example_name):
    base = os.path.split(pysal.__file__)[0]
    pth = os.path.join(base,'examples',example_name)
    if not os.path.isfile(pth):
        print "Warning example not found: %s"%example_name
        print "PySAL examples are available at %s" % dl
    return pth<commit_msg>- moving back to r1049 but leaving r1310 in history for ideas on moving   forward - we need to distinguish between using examples in the doctests (which the   users see) and for the developers since we are no longer distributing   examples with the source<commit_after>import os
import pysal

__all__ = ['get_path']

def get_path(example_name):
    base = os.path.split(pysal.__file__)[0]
    return os.path.join(base,'examples',example_name)
{'fraction_non_alphanumeric': 0.09929906542056074, 'fraction_numerical': 0.011682242990654205, 'mean_word_length': 4.162650602409639, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2943508', 'n_tokens_mistral': 283, 'n_tokens_neox': 274, 'n_words': 86}