<commit_before>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from distutils.core import setup
import os

setup(name='dlstats',
	version='0.1',
    description='A python module that provides an interface between statistics providers and pandas.',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/Widukind', 
      package_dir={'dlstats': 'src', 'dlstats.gunicorn': 'src/gunicorn', 'dlstats.fetchers': 'src/fetchers'},
    packages=['dlstats', 'dlstats.gunicorn', 'dlstats.fetchers'],
    data_files=[('/etc/init.d',['init/dlstats']),
                ('/usr/local/bin',['init/dlstats-daemon.py'])],
    install_requires=[
        'pandas>=0.12'
      ]
	)

try:
	with open('/etc/init.d/dlstats'):
		os.chmod('/etc/init.d/dlstats', 0o755)
except IOError:
	pass

try:
	with open('/usr/local/bin/dlstats-daemon.py'):
		os.chmod('/usr/local/bin/dlstats-daemon.py', 0o755)
except IOError:
	pass<commit_msg>Improved installation procedure<commit_after>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from distutils.core import setup
import os

setup(name='dlstats',
	version='0.1',
    description='A python module that provides an interface between statistics providers and pandas.',
    author='W<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/Widukind', 
      package_dir={'dlstats': 'src', 'dlstats.gunicorn': 'src/gunicorn', 'dlstats.fetchers': 'src/fetchers'},
    packages=['dlstats', 'dlstats.gunicorn', 'dlstats.fetchers'],
    data_files=[('/etc/init.d',['init/dlstats']),
                ('/usr/local/bin',['init/dlstats-daemon.py'])],
    install_requires=[
        'pandas>=0.12',
        'flask-restful',
        'flask'
      ]
	)

try:
	with open('/etc/init.d/dlstats'):
		os.chmod('/etc/init.d/dlstats', 0o755)
except IOError:
	pass

try:
	with open('/usr/local/bin/dlstats-daemon.py'):
		os.chmod('/usr/local/bin/dlstats-daemon.py', 0o755)
except IOError:
	pass
{'fraction_non_alphanumeric': 0.19228764981761334, 'fraction_numerical': 0.015633142261594582, 'mean_word_length': 3.7058823529411766, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '6656056', 'n_tokens_mistral': 715, 'n_tokens_neox': 685, 'n_words': 117}