<commit_before>#------------------------------------------------------------------------------
# Copyright (c) 2007, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license
# available at http://www.enthought.com/licenses/BSD.txt and may be
# redistributed only under the conditions described in the aforementioned
# license.
#
# <NAME> - 2007/02/07
#------------------------------------------------------------------------------

import sys

#
# Version number is from the egg/setuptools
#
from pkg_resources import require
__version__ = require( "enthought.enstaller" )[0].version


PYVER = "%s.%s" % (sys.version_info[0], sys.version_info[1])
IS_WINDOWS = sys.platform.lower().startswith( "win" )

#
# The default repository
#
ENTHOUGHT_REPO = "http://code.enthought.com/enstaller/eggs"<commit_msg>* Added code to require either the standalone egg or the library package egg.<commit_after>#------------------------------------------------------------------------------
# Copyright (c) 2007, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license
# available at http://www.enthought.com/licenses/BSD.txt and may be
# redistributed only under the conditions described in the aforementioned
# license.
#
# <NAME> - 2007/02/07
#------------------------------------------------------------------------------

import sys
from os import path

#
# Version number is from the egg/setuptools
#
# ...this is a hack...since the package is named differently depending on if
# it is the bundled standalone app egg or the library module, the require()
# call must be different...use the path to this file to try and determine which
# egg must be required.
#
is_standalone_app = path.basename( path.dirname( path.dirname(
    path.dirname( __file__ ) ) ) ).startswith( "enstaller-" )

if( is_standalone_app ) :
    package_name = "enstaller"
else :
    package_name = "enthought.enstaller"

from pkg_resources import require
__version__ = require( package_name )[0].version

PYVER = "%s.%s" % (sys.version_info[0], sys.version_info[1])
IS_WINDOWS = sys.platform.lower().startswith( "win" )

#
# The default repository
#
ENTHOUGHT_REPO = "http://code.enthought.com/enstaller/eggs"
{'fraction_non_alphanumeric': 0.23117109272964736, 'fraction_numerical': 0.013060513713539399, 'mean_word_length': 2.3843888070692194, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3485014', 'n_tokens_mistral': 662, 'n_tokens_neox': 627, 'n_words': 210}