<jupyter_start><jupyter_text>Notebook for analysis of the PredatorPreyPy package<jupyter_code>import numpy as np
import predatorpreypy as ppp
import matplotlib.pyplot as plt
def plot_run(ticks=10):
    np.random.seed(63)
    env = ppp.Environment((10,10), 50, 50)
    results = list()
    for _ in range(ticks):
        env.tick()
        results.append(
            (len(env.predators), len(env.prey))
        )
    plt.plot(results)
    plt.legend(('Predators', 'Prey'))
plot_run()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12475633528265107, 'fraction_numerical': 0.023391812865497075, 'mean_word_length': 3.5892857142857144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '621947', 'license': 'MIT', 'n_tokens_mistral': 194, 'n_tokens_neox': 184, 'n_words': 38, 'path': 'AnalysisNB.ipynb', 'repo_name': 'pinselimo/PredatorPreyPy', 'size': '513'}