<commit_before>============
SimPy basics
============

This guide describes the basic concepts of SimPy: How does it work? What are
processes, events and the environment? What can I do with them?


How SimPy works
===============

This guide describes the basic concepts of SimPy: How does it work? What are
processes, events and the environment? What can I do with them?

If you break SimPy down, it is just an asynchronous event dispatcher. You
generate events and schedule them at a given simulation time. Events are sorted
by priority, simulation time, and an increasing event id. An event also has
a list of callbacks, which are executed when the event is triggered and
processed by the event loop. Events may also have a return value.

The components involved in this are the :class:`~simpy.core.Environment`,
:mod:`~simpy.events` and the process functions that you write.

Process functions implement your simulation model, that is, they define the<commit_msg>Remove duplicate paragraph in simpy basics guide.<commit_after>============
SimPy basics
============

This guide describes the basic concepts of SimPy: How does it work? What are
processes, events and the environment? What can I do with them?


How SimPy works
===============

If you break SimPy down, it is just an asynchronous event dispatcher. You
generate events and schedule them at a given simulation time. Events are sorted
by priority, simulation time, and an increasing event id. An event also has
a list of callbacks, which are executed when the event is triggered and
processed by the event loop. Events may also have a return value.

The components involved in this are the :class:`~simpy.core.Environment`,
:mod:`~simpy.events` and the process functions that you write.

Process functions implement your simulation model, that is, they define the
{'fraction_non_alphanumeric': 0.08315098468271334, 'fraction_numerical': 0.0, 'mean_word_length': 4.9, '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': '2960083', 'n_tokens_mistral': 442, 'n_tokens_neox': 428, 'n_words': 274}