<commit_before>#! /usr/bin/env python
from __future__ import division

import cPickle as pickle
import os
from   os.path import join

import numpy as np

from pycog.figtools    import Figure
from pycog.utils       import get_here, get_parent
from examples.analysis import mante

import paper

#=========================================================================================
# Setup
#=========================================================================================

here     = get_here(__file__)
base     = get_parent(here)
figspath = join(here, 'figs')

trialsfile  = join(paper.scratchpath, 'mante_areas', 'trials', 'mante_areas_trials.pkl')
sortedfile  = join(paper.scratchpath, 'mante_areas', 'trials', 'mante_areas_sorted.pkl')
betafile    = join(base, 'examples', 'work', 'data', 'mante_areas',
                   'mante_areas_beta.pkl')

units = [1, 2, 3, 4]

#=========================================================================================
# Figure setup
#=========================================================================================

w   = 7.5
h   = 6.7
r   = w/h
fig = Figure(w=w, h=h, axislabelsize=6.5, labelpadx=5, labelpady=5,
             thickness=0.6, ticksize=3, ticklabelsize=6, ticklabelpad=2)

#-----------------------------------------------------------------------------------------
# Psychometric functions
#-----------------------------------------------------------------------------------------

w_psy  = 0.16<commit_msg>Initial commit<commit_after>#! /usr/bin/env python
from __future__ import division

import cPickle as pickle
import os
from   os.path import join

import numpy as np

from pycog.figtools    import Figure
from pycog.utils       import get_here, get_parent
from examples.analysis import mante

import paper

#=========================================================================================
# Setup
#=========================================================================================

here     = get_here(__file__)
base     = get_parent(here)
figspath = join(here, 'figs')

trialsfile  = join(paper.scratchpath, 'mante_areas', 'trials', 'mante_areas_trials.pkl')
sortedfile  = join(paper.scratchpath, 'mante_areas', 'trials', 'mante_areas_sorted.pkl')
betafile    = join(base, 'examples', 'work', 'data', 'mante_areas',
                   'mante_areas_beta.pkl')

units = [10, 23, 25, 28]

#=========================================================================================
# Figure setup
#=========================================================================================

w   = 7.5
h   = 6.7
r   = w/h
fig = Figure(w=w, h=h, axislabelsize=6.5, labelpadx=5, labelpady=5,
             thickness=0.6, ticksize=3, ticklabelsize=6, ticklabelpad=2)

#-----------------------------------------------------------------------------------------
# Psychometric functions
#-----------------------------------------------------------------------------------------

w_psy  = 0.16
{'fraction_non_alphanumeric': 0.4367661858436766, 'fraction_numerical': 0.014760147601476014, 'mean_word_length': 2.9236842105263157, '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': '3709590', 'n_tokens_mistral': 826, 'n_tokens_neox': 761, 'n_words': 176}