<jupyter_start><jupyter_text>Non-resetting MAT<jupyter_code>RS = MATThresholds(
    alpha1=10,
    alpha2=2,
    tau1=10,
    tau2=200,
    omega=-80+15,
    refractory_period=2,
    resetting=False,
    name='RS')

neuron = Neuron(
    resting_potential=-80,
    membrane_resistance=50,
    membrane_capacitance=0.1,
    mats=[RS]
)

neuron.append_conductance(exc)
neuron.append_conductance(inh)

v_arr = []
t_arr = []
thr_arr = []

t = 0
dt = 0.1

while t < 1000:
    t += dt
    neuron.timestep(dt)
    v_arr.append(neuron.voltage)
    t_arr.append(t)
    thr_arr.append(RS.threshold)
plt.figure(figsize=(15,3))
plt.plot(t_arr, v_arr)
plt.plot(t_arr, thr_arr)<jupyter_output><empty_output><jupyter_text>Resetting MAT<jupyter_code>RS = MATThresholds(
    alpha1=10,
    alpha2=2,
    tau1=10,
    tau2=200,
    omega=-80+15,
    refractory_period=2,
    resetting=True,
    name='RS')

neuron = Neuron(
    resting_potential=-80,
    membrane_resistance=50,
    membrane_capacitance=0.1,
    mats=[RS]
)

neuron.append_conductance(exc)
neuron.append_conductance(inh)

v_arr = []
t_arr = []
thr_arr = []

t = 0
dt = 0.1

while t < 1000:
    t += dt
    neuron.timestep(dt)
    v_arr.append(neuron.voltage)
    t_arr.append(t)
    thr_arr.append(RS.threshold)
plt.figure(figsize=(15,3))
plt.plot(t_arr, v_arr)
plt.plot(t_arr, thr_arr)<jupyter_output><empty_output><jupyter_text>Hodgkin-Huxley<jupyter_code>neuron = HHNeuron()

neuron.append_conductance(exc)
neuron.append_conductance(inh)

v_arr = []
t_arr = []
thr_arr = []

t = 0
dt = 0.01

while t < 1000:
    t += dt
    neuron.timestep(dt)
    v_arr.append(neuron.voltage)
    t_arr.append(t)
plt.figure(figsize=(15,3))
plt.plot(t_arr, v_arr)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1436016213086277, 'fraction_numerical': 0.044585987261146494, 'mean_word_length': 4.023255813953488, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 13, '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}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '238566', 'license': 'MIT', 'n_tokens_mistral': 836, 'n_tokens_neox': 761, 'n_words': 100, 'path': 'examples/ZOO of models.ipynb', 'repo_name': 'Tom83B/matsim', 'size': '1727'}