<commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
__init__.py

Created by <NAME> on 2011-05-18.

$URL$
$Author$
$Date$

"""
__version__ = "$Rev$"

from socket import gethostname as hostname

if hostname().startswith('uni') or hostname().startswith('hyp'):
    GRISM_HOME = '/3DHST/Spectra/Work/'
else:
    GRISM_HOME = '/research/HST/GRISM/3DHST/'

if hostname().startswith('850dhcp8'):
    GRISM_HOME = '/3DHST/Spectra/Work/'
    #threedhst.sex.RUN_MODE='direct'
    
import threedhst

try:
    import utils_c #as utils_c
except:
    print """Couldn't import "utils_c" """

import plotting
import prepare
import reduce
import candels
import analysis
import go_3dhst
import galfit
import catalogs<commit_msg>changes for local machine<commit_after>#!/usr/bin/env python
# encoding: utf-8
"""
__init__.py

Created by <NAME> on 2011-05-18.

$URL$
$Author$
$Date$

"""
__version__ = "$Rev$"

import os
from socket import gethostname as hostname

if hostname().startswith('uni') or hostname().startswith('hyp'):
    GRISM_HOME = '/3DHST/Spectra/Work/'
else:
    GRISM_HOME = '/research/HST/GRISM/3DHST/'

if hostname().startswith('850dhcp8'):
    GRISM_HOME = '/3DHST/Spectra/Work/'
    #threedhst.sex.RUN_MODE='direct'

if hostname().lower().startswith('gabriel') | hostname().startswith('vpn-brammer'):
    GRISM_HOME = '/Users/brammer/3DHST/Spectra/Work/'

GRISM_HOME = os.getenv('THREEDHST')

if GRISM_HOME[-1] != '/':
    GRISM_HOME += '/'
        
import threedhst

try:
    import utils_c #as utils_c
except:
    print """Couldn't import "utils_c" """

import plotting
import prepare
import reduce
import candels
import analysis
import go_3dhst
import galfit
import catalogs
{'fraction_non_alphanumeric': 0.14540059347181009, 'fraction_numerical': 0.021364985163204748, 'mean_word_length': 4.30188679245283, 'pattern_counts': {'":': 0, '<': 5, '<?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': '592360', 'n_tokens_mistral': 675, 'n_tokens_neox': 632, 'n_words': 140}