<commit_before>from pattern_model import Model

SIM_STEP = 0.01
STEPS_PER_FRAME = 10

model = Model(
    neuron_count = 100
)

try :

    import imp
    imp.find_module( "matplotlib" )
    from matplotlib import pyplot as plt
    from matplotlib import animation

    figure = plt.figure()
    figure.suptitle( "Model" )

    model_plot = figure.add_subplot( 111 )
    model_plot.set_ylim( -1.0, 1.0 )
    model_plot.grid( True )

    input_line, = model_plot.plot( [], [] )
    pattern_line, = model_plot.plot( [], [] )
    train_output_line, = model_plot.plot( [], [] )
    output_line, = model_plot.plot( [], [] )

    time_data = []
    input_data = []
    pattern_data = []
    train_output_data = []
    output_data = []

    def animate_model( frame ) :<commit_msg>samples : python : pattern : set STEPS_PER_FRAME = 20<commit_after>from pattern_model import Model

SIM_STEP = 0.01
STEPS_PER_FRAME = 20

model = Model(
    neuron_count = 100
)

try :

    import imp
    imp.find_module( "matplotlib" )
    from matplotlib import pyplot as plt
    from matplotlib import animation

    figure = plt.figure()
    figure.suptitle( "Model" )

    model_plot = figure.add_subplot( 111 )
    model_plot.set_ylim( -1.0, 1.0 )
    model_plot.grid( True )

    input_line, = model_plot.plot( [], [] )
    pattern_line, = model_plot.plot( [], [] )
    train_output_line, = model_plot.plot( [], [] )
    output_line, = model_plot.plot( [], [] )

    time_data = []
    input_data = []
    pattern_data = []
    train_output_data = []
    output_data = []

    def animate_model( frame ) :
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.020202020202020204, 'mean_word_length': 2.9039408866995076, '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': '2812614', 'n_tokens_mistral': 593, 'n_tokens_neox': 554, 'n_words': 115}