<commit_before>'''

Module to deal with prior range

Author(s): CHH, MJV

Notes
-----
 - Prior range implemented Jan 22, 2016 (CHH)

'''

def PriorRange(prior_name): 
    ''' Given prior dictionary name, return the prior range. 
    '''
    
    dict_table = prior_dict_table() 

    prior_dict = dict_table[prior_name]

    prior_min = prior_dict['prior_min']
    prior_max = prior_dict['prior_max']
    return [prior_min, prior_max]

def prior_dict_table(): 
    ''' dictionary table of priors 
    '''
    dict_table = { 
            'first_try': {
                'prior_min': [10., np.log(0.1), 11.02, 0.8, 13.]
                'prior_max': [13., np.log(0.7), 13.02, 1.3, 14.]
                }
            }
            
    return dict_table <commit_msg>fixed a minor buf in prior.py<commit_after>'''

Module to deal with prior range

Author(s): CHH, MJV

Notes
-----
 - Prior range implemented Jan 22, 2016 (CHH)

'''
import numpy as np

def PriorRange(prior_name): 
    ''' Given prior dictionary name, return the prior range. 
    '''
    
    dict_table = prior_dict_table() 

    prior_dict = dict_table[prior_name]

    prior_min = prior_dict['prior_min']
    prior_max = prior_dict['prior_max']
    return [prior_min, prior_max]

def prior_dict_table(): 
    ''' dictionary table of priors 
    '''
    dict_table = { 
            'first_try': {
                'prior_min': [10., np.log(0.1), 11.02, 0.8, 13.],
                'prior_max': [13., np.log(0.7), 13.02, 1.3, 14.]
                }
            }
            
    return dict_table 
{'fraction_non_alphanumeric': 0.13350449293966624, 'fraction_numerical': 0.038510911424903725, 'mean_word_length': 2.1117764471057883, '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': '3468353', 'n_tokens_mistral': 591, 'n_tokens_neox': 512, 'n_words': 131}