<commit_before><commit_msg>new shell script that replaces ms access process<commit_after># -*- coding: utf-8 -*-
import os, sys
# env
sys.path.append('/usr/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/')
sys.path.append('/usr/local/lib/python2.7/dist-packages/')
sys.path.append('/data2/django_1.11/')
sys.path.append('/data2/django_projects/')
sys.path.append('/data2/django_third/')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djequis.settings')

# required if using django models
import django
django.setup()

from django.conf import settings

import argparse
import logging

logger = logging.getLogger('djequis')

'''
build a CSV file for inserting credit card transactions into CX
'''

# set up command-line options
desc = """
Accepts as input...
"""

parser = argparse.ArgumentParser(description=desc)

parser.add_argument(
    '-x', '--equis',
    required=True,
    help="Lorem ipsum dolor sit amet.",
    dest='equis'
)
parser.add_argument(
    '--test',
    action='store_true',
    help="Dry run?",
    dest='test'
)

def main():
    '''
    main function
    '''

    if test:
        print 'this is a test'
        logger.debug("debug = {}".format(test))
    else:
        print 'this is not a test'


######################
# shell command line
######################

if __name__ == '__main__':
    args = parser.parse_args()
    equis = args.equis
    test = args.test

    print args

    sys.exit(main())

{'fraction_non_alphanumeric': 0.17793103448275863, 'fraction_numerical': 0.00896551724137931, 'mean_word_length': 3.534375, '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': '4706716', 'n_tokens_mistral': 487, 'n_tokens_neox': 473, 'n_words': 112}