<commit_before>#!/usr/bin/env python

import os
import sys
import shutil
from pwd import getpwnam
from grp import getgrnam

from setuptools import setup
from pkg_resources import Requirement, resource_filename

CPSVERSION = '1.3.1'

CONFDIR = '/etc/cpsdirector'
LOGDIR = '/var/log/cpsdirector'

if not os.geteuid() == 0:
    CONFDIR = 'cpsdirectorconf'

long_description = """
ConPaaS: an integrated runtime environment for elastic Cloud applications 
=========================================================================
"""
setup(name='cpsdirector',
      version=CPSVERSION,
      description='ConPaaS director',
      author='ConPaaS team',
      author_email='<EMAIL>',
      url='http://www.conpaas.eu/',
      download_url='http://www.conpaas.eu/download/',
      license='BSD',
      packages=[ 'cpsdirector', ],
      include_package_data=True,
      zip_safe=False,
      package_data={ 'cpsdirector': [ 'ConPaaS.tar.gz', ] },
      data_files=[ ( CONFDIR, [ 'director.cfg.example', 'director.cfg.multicloud-example', 'ConPaaS.tar.gz' ] ), ],
      scripts=[ 'cpsadduser.py', 'director.wsgi', 'cpsconf.py', 'cpscheck.py', 'add-user-columns-to-db.sh' ],
      install_requires=[ 'cpslib', 'flask-sqlalchemy', 'apache-libcloud', 'netaddr' ],
      dependency_links=[ 'http://www.conpaas.eu/dl/cpslib-%s.tar.gz' % CPSVERSION, ],)

if __name__ == "__main__" and sys.argv[1] == "install":<commit_msg>Director installation: added required module flask-openid in setup.py (issue #70)<commit_after>#!/usr/bin/env python

import os
import sys
import shutil
from pwd import getpwnam
from grp import getgrnam

from setuptools import setup
from pkg_resources import Requirement, resource_filename

CPSVERSION = '1.3.1'

CONFDIR = '/etc/cpsdirector'
LOGDIR = '/var/log/cpsdirector'

if not os.geteuid() == 0:
    CONFDIR = 'cpsdirectorconf'

long_description = """
ConPaaS: an integrated runtime environment for elastic Cloud applications 
=========================================================================
"""
setup(name='cpsdirector',
      version=CPSVERSION,
      description='ConPaaS director',
      author='ConPaaS team',
      author_email='<EMAIL>',
      url='http://www.conpaas.eu/',
      download_url='http://www.conpaas.eu/download/',
      license='BSD',
      packages=[ 'cpsdirector', ],
      include_package_data=True,
      zip_safe=False,
      package_data={ 'cpsdirector': [ 'ConPaaS.tar.gz', ] },
      data_files=[ ( CONFDIR, [ 'director.cfg.example', 'director.cfg.multicloud-example', 'ConPaaS.tar.gz' ] ), ],
      scripts=[ 'cpsadduser.py', 'director.wsgi', 'cpsconf.py', 'cpscheck.py', 'add-user-columns-to-db.sh' ],
      install_requires=[ 'cpslib', 'flask-sqlalchemy', 'apache-libcloud', 'netaddr', 'flask-openid' ],
      dependency_links=[ 'http://www.conpaas.eu/dl/cpslib-%s.tar.gz' % CPSVERSION, ],)

if __name__ == "__main__" and sys.argv[1] == "install":
{'fraction_non_alphanumeric': 0.20124052377670573, 'fraction_numerical': 0.004135079255685734, 'mean_word_length': 4.316849816849817, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7215995', 'n_tokens_mistral': 1011, 'n_tokens_neox': 972, 'n_words': 187}