<commit_before>More examples
=============

Simulation
----------
For most of the following examples, simulated data provided through `Condor <http://lmb.icm.uu.se/condor/simulation>`_ is used. In order to run these examples on real data, the only thing to change is the ``state[Facility]`` variable and maybe some more lightsource specific configurations. See the basic example in :doc:`Configuration <configuration>`.

The speciman used for the simulation is a icosahedron-shaped virus with a diameter of 60 nm with reasonable conditions for experiments inside the 100nm chamber of the CXI beamline. The full Condor configuration file is located in ``examples/simulation/virus.conf``.

Now, lets have a look at the configuration file, located in ``examples/simulation/conf.py``. First, we are importing the ``simulation`` and the ``analysis.event`` module:

::

   import simulation.simple
   import analysis.event

We load the `Condor <http://lmb.icm.uu.se/condor/simulation>`_ configuration file and specify a hitrate of 10%:

::<commit_msg>examples.rst edited online with Bitbucket<commit_after>More examples
=============

Simulation
----------
For most of the following examples, simulated data provided through `Condor <http://lmb.icm.uu.se/condor/simulation>`_ is used. In order to run these examples on real data, the only thing to change is the ``state[Facility]`` variable and maybe some more lightsource specific configurations. See the basic example in :doc:`Configuration <configuration>`.

The speciman used for the simulation is a icosahedron-shaped virus with a diameter of 60 nm with reasonable conditions for experiments inside the 100nm chamber of the CXI beamline. The full Condor configuration file is located in ``examples/simulation/virus.conf``.

Now, lets have a look at the configuration file, located in ``examples/simulation/conf.py``. First, the modules ``simulation`` and ``analysis.event`` are imported:

::

   import simulation.simple
   import analysis.event

The `Condor <http://lmb.icm.uu.se/condor/simulation>`_ configuration file is loaded and a hitrate of 10% is specified:

::
{'fraction_non_alphanumeric': 0.10056657223796034, 'fraction_numerical': 0.0066100094428706326, 'mean_word_length': 4.742547425474255, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6492592', 'n_tokens_mistral': 575, 'n_tokens_neox': 536, 'n_words': 255}