<commit_before>import errno
import os
from setuptools import setup, find_packages


def file_name(rel_path):
    dir_path = os.path.dirname(__file__)
    return os.path.join(dir_path, rel_path)

def read(rel_path):
    with open(file_name(rel_path)) as f:
        ret = f.read()
    return ret

def readlines(rel_path):
    with open(file_name(rel_path), rel_path)) as f:
        ret = f.readlines()
    return ret


def mkdir_p(path):
    "recreate mkdir -p functionality"
    try:
        os.makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise

mkdir_p('/usr/local/share/hendrix')

setup(
    author = "hangarunderground",
    author_email = "<EMAIL>",
    name = "hendrix",
    packages = find_packages(),
    version = "0.1.1",
    url = "https://github.com/hangarunderground/hendrix",
    download_url = "https://github.com/hangarunderground/hendrix/tarball/v0.1.1-beta",
    description = "A deployment module for Django that uses Twisted.",
    long_description = read('docs/long_desc.html'),<commit_msg>fixes setup.py bug<commit_after>import errno
import os
from setuptools import setup, find_packages


def file_name(rel_path):
    dir_path = os.path.dirname(__file__)
    return os.path.join(dir_path, rel_path)

def read(rel_path):
    with open(file_name(rel_path)) as f:
        ret = f.read()
    return ret

def readlines(rel_path):
    with open(file_name(rel_path)) as f:
        ret = f.readlines()
    return ret


def mkdir_p(path):
    "recreate mkdir -p functionality"
    try:
        os.makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise

mkdir_p('/usr/local/share/hendrix')

setup(
    author = "hangarunderground",
    author_email = "<EMAIL>",
    name = "hendrix",
    packages = find_packages(),
    version = "0.1.1",
    url = "https://github.com/hangarunderground/hendrix",
    download_url = "https://github.com/hangarunderground/hendrix/tarball/v0.1.1-beta",
    description = "A deployment module for Django that uses Twisted.",
    long_description = read('docs/long_desc.html'),
{'fraction_non_alphanumeric': 0.12243989314336598, 'fraction_numerical': 0.007123775601068566, 'mean_word_length': 2.991119005328597, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2286309', 'n_tokens_mistral': 770, 'n_tokens_neox': 755, 'n_words': 172}