<commit_before>'''
Module to store conda build settings.
'''

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

import os
import sys
from os.path import abspath, expanduser, join

import conda.config as cc

# These are mutated by things like conda build --python. Don't import them
# directly. Rather, access conda_build.config.CONDA_PY, etc.
CONDA_PERL = os.getenv('CONDA_PERL', '5.18.2')
CONDA_PY = int(os.getenv('CONDA_PY', cc.default_python.replace('.', '')))
CONDA_NPY = int(os.getenv('CONDA_NPY', 18))


PY3K = int(bool(CONDA_PY >= 30))

def get_conda_py():
    return CONDA_PY

_bld_root_env = os.getenv('CONDA_BLD_PATH')
_bld_root_rc = cc.rc.get('conda-build', {}).get('root-dir')
if _bld_root_env:
    croot = abspath(expanduser(_bld_root_env))
elif _bld_root_rc:
    croot = abspath(expanduser(_bld_root_rc))<commit_msg>Allow CONDA_PY and CONDA_NPY to contain a .<commit_after>'''
Module to store conda build settings.
'''

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

import os
import sys
from os.path import abspath, expanduser, join

import conda.config as cc

# These are mutated by things like conda build --python. Don't import them
# directly. Rather, access conda_build.config.CONDA_PY, etc.
CONDA_PERL = os.getenv('CONDA_PERL', '5.18.2')
CONDA_PY = int(os.getenv('CONDA_PY', cc.default_python.replace('.',
    '')).replace('.', ''))
CONDA_NPY = int(os.getenv('CONDA_NPY', '18').replace('.', ''))


PY3K = int(bool(CONDA_PY >= 30))

def get_conda_py():
    return CONDA_PY

_bld_root_env = os.getenv('CONDA_BLD_PATH')
_bld_root_rc = cc.rc.get('conda-build', {}).get('root-dir')
if _bld_root_env:
    croot = abspath(expanduser(_bld_root_env))
elif _bld_root_rc:
    croot = abspath(expanduser(_bld_root_rc))
{'fraction_non_alphanumeric': 0.13567567567567568, 'fraction_numerical': 0.00972972972972973, 'mean_word_length': 4.660550458715596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5963875', 'n_tokens_mistral': 715, 'n_tokens_neox': 696, 'n_words': 155}