<commit_before>import spa
import nengo_theano as nef

class Rules:
    def A(state='A'):
        effect(state='B')
    def B(state='B'):
        effect(state='C')
    def C(state='C'):
        effect(state='D')
    def D(state='D'):
        effect(state='E')
    def E(state='E'):
        effect(state='A')

class Sequence(spa.SPA):
    dimensions = 8
    verbose = True

    state = spa.Buffer()
    BG = spa.BasalGanglia(Rules)
    thal = spa.Thalamus(BG)

    input = spa.Input(0.1, state='D')

net = nef.Network('Sequence', seed=1)
seq = Sequence(net)

pThal = net.make_probe('thal.rule', dt_sample=0.001)
pGPi = net.make_probe('BG.GPi', dt_sample=0.001, data_type='spikes')
pState = net.make_probe('state.buffer', dt_sample=0.001, data_type='spikes')
<commit_msg>Disabled other probes to gain a bit of performance<commit_after>import spa
import nengo_theano as nef

class Rules:
    def A(state='A'):
        effect(state='B')
    def B(state='B'):
        effect(state='C')
    def C(state='C'):
        effect(state='D')
    def D(state='D'):
        effect(state='E')
    def E(state='E'):
        effect(state='A')

class Sequence(spa.SPA):
    dimensions = 8
    verbose = True

    state = spa.Buffer()
    BG = spa.BasalGanglia(Rules)
    thal = spa.Thalamus(BG)

    input = spa.Input(0.1, state='D')

net = nef.Network('Sequence', seed=1)
seq = Sequence(net)

pThal = net.make_probe('thal.rule', dt_sample=0.001)
#pGPi = net.make_probe('BG.GPi', dt_sample=0.001, data_type='spikes')
#pState = net.make_probe('state.buffer', dt_sample=0.001, data_type='spikes')

{'fraction_non_alphanumeric': 0.1726984126984127, 'fraction_numerical': 0.020317460317460317, 'mean_word_length': 3.49002849002849, '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': '6416991', 'n_tokens_mistral': 630, 'n_tokens_neox': 588, 'n_words': 116}