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

'''
14.11.2015

@author: hlfsimko
'''

# System
import logging
import os
import sys
import unittest

# 3rd Party
import numpy

if not "CCP4" in os.environ.keys(): raise RuntimeError('CCP4 not found')
sys.path.insert(0, os.path.join(os.environ['CCP4'], "share", "ample", "parsers"))
#sys.path.insert(0, os.path.join(os.environ["HOME"], "opt", "ample-dev1", "parsers"))

# Custom
import ample_plot
import ample_sequence
import energy_functions
import parse_casprr<commit_msg>Add root variable for when we're outside ccp4<commit_after>#!/usr/bin/env ccp4-python

'''
14.11.2015

@author: hlfsimko
'''

# System
import logging
import os
import sys
import unittest

# 3rd Party
import numpy

if not "CCP4" in os.environ.keys(): raise RuntimeError('CCP4 not found')
root = os.path.join(os.environ['CCP4'], "share", "ample")
#root = os.sep.join( os.path.abspath(__file__).split( os.sep )[:-2] )
sys.path.insert(0, os.path.join(root, "parsers"))

# Custom
import ample_plot
import ample_sequence
import energy_functions
import parse_casprr
{'fraction_non_alphanumeric': 0.14990689013035383, 'fraction_numerical': 0.0297951582867784, 'mean_word_length': 5.475903614457831, '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': '6056233', 'n_tokens_mistral': 412, 'n_tokens_neox': 395, 'n_words': 100}