<commit_before># Create topographica script and topographica.bat batch file.
# (Note that on Windows the batch file is necessary for executing
# commands at all.)
#
# The first argument (required) is the Topographica root directory.
# A second optional argument "create_associations" may be passed to have
# this script create file associations and shortcuts. 
#
#
# Examples:
#
# To have this script simply make the script and batch file:
#    setup.py "d:\program files\topographica"
#
# To have this script additionally create file associations and shortcuts,
# it might be invoked as:
#    setup.py "d:\program files\topographica" "create_associations"

import sys
import os

create_associations=False
compiler_path = "python_topo\\mingw\\bin"


# CEBHACKALERT: should check it's valid, etc.
path = os.path.abspath(sys.argv[1])<commit_msg>Updates to documentation.<commit_after># Create 'topographica' script and topographica.bat batch file.
# (Note that on Windows the batch file is necessary for executing
# commands at all.)
#
# The first argument (required) is the Topographica root directory.
# A second optional argument "create_associations" may be passed to have
# this script create file associations and shortcuts (used when
# setting up a cvs-controlled copy of topographica).
#
#
# Examples:
#
# To have this script simply make the script and batch file:
#    setup.py "d:\program files\topographica"
# (This is what the binary installation procedure uses.)
#
# To have this script additionally create file associations and shortcuts,
# it might be invoked as:
#    setup.py "d:\program files\topographica" "create_associations"
# (This is how a cvs-controlled copy is setup.)

import sys
import os

create_associations=False
compiler_path = "python_topo\\mingw\\bin"


# CEBHACKALERT: should check it's valid, etc.
path = os.path.abspath(sys.argv[1])
{'fraction_non_alphanumeric': 0.08355650776647028, 'fraction_numerical': 0.0010712372790573112, 'mean_word_length': 4.747692307692308, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4703353', 'n_tokens_mistral': 545, 'n_tokens_neox': 530, 'n_words': 220}