<commit_before>import nef.nef_theano as nef

net=nef.Network('Integrator') #Create the network object
net.make_input('input',{0.2:5, 0.3:0, 0.44:-10,
                            0.54:0, 0.8:5, 0.9:0} )  #Create a controllable input 
                                                     #function with a default function
                                                     #that goes to 5 at time 0.2s, to 0 
                                                     #at time 0.3s and so on
                                                     
net.make('A',100,1,quick=True) #Make a population with 100 neurons, 1 dimension

net.connect('input','A',weight=0.1,pstc=0.1) #Connect the input to the integrator,
                                             #scaling the input by .1; postsynaptic
                                             #time constant is 10ms
net.connect('A','A',pstc=0.1) #Connect the population to itself with the 
                              #default weight of 1

net.run(1) # run for 1 second<commit_msg>Integrator example for #24 runs<commit_after>import nef.nef_theano as nef

net=nef.Network('Integrator') #Create the network object
net.make_input('input',{0.2:5, 0.3:0, 0.44:-10,
                            0.54:0, 0.8:5, 0.9:0} )  #Create a controllable input 
                                                     #function with a default function
                                                     #that goes to 5 at time 0.2s, to 0 
                                                     #at time 0.3s and so on
                                                     
net.make('A',100,1) #Make a population with 100 neurons, 1 dimension

net.connect('input','A',weight=0.1,pstc=0.1) #Connect the input to the integrator,
                                             #scaling the input by .1; postsynaptic
                                             #time constant is 10ms
net.connect('A','A',pstc=0.1) #Connect the population to itself with the 
                              #default weight of 1

net.run(1) # run for 1 second
{'fraction_non_alphanumeric': 0.08913784705309304, 'fraction_numerical': 0.046760837798343884, 'mean_word_length': 1.1689545934530094, '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': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6681130', 'n_tokens_mistral': 564, 'n_tokens_neox': 502, 'n_words': 167}