<commit_before>autoreject
==========

|CircleCI|_ |GitHub Actions|_ |Codecov|_ |PyPI|_ |Conda-Forge|_

.. |CircleCI| image:: https://circleci.com/gh/autoreject/autoreject/tree/master.svg?style=shield&circle-token=:circle-token
.. _CircleCI: https://circleci.com/gh/autoreject/autoreject

.. |GitHub Actions| image:: https://github.com/autoreject/autoreject/actions/workflows/test.yml/badge.svg
.. _GitHub Actions: https://github.com/autoreject/autoreject/actions/workflows/test.yml

.. |Codecov| image:: http://codecov.io/github/autoreject/autoreject/coverage.svg?branch=master
.. _Codecov: http://codecov.io/github/autoreject/autoreject?branch=master

.. |PyPI| image:: https://badge.fury.io/py/autoreject.svg
.. _PyPI: https://badge.fury.io/py/autoreject

.. |Conda-Forge| image:: https://img.shields.io/conda/vn/conda-forge/autoreject.svg
.. _Conda-Forge: https://anaconda.org/conda-forge/autoreject/

This is a library to automatically reject bad trials and repair bad sensors in magneto-/electroencephalography (M/EEG) data.

.. image:: http://autoreject.github.io/_images/sphx_glr_plot_visualize_bad_epochs_002.png


The documentation can be found under the following links:

- for the `stable release <https://autoreject.github.io/>`_
- for the `latest (development) version <https://circleci.com/api/v1.1/project/github/autoreject/autoreject/latest/artifacts/0/html/index.html?branch=master>`_

.. docs_readme_include_label

Installation
------------

We recommend the `Anaconda Python distribution <https://www.anaconda.com/>`_
and a **Python version >= 3.7**.
To obtain the stable release of ``autoreject``. you can use ``pip``:

    $ pip install -U autoreject

Or ``conda``:

    $ conda install -c conda-forge autoreject

If you want the latest (development) version of ``autoreject``, use:

    $ pip install https://api.github.com/repos/autoreject/autoreject/zipball/master

If you do not have admin privileges on the computer, use the ``--user`` flag
with `pip`.

To check if everything worked fine, you can do::

    $ python -c 'import autoreject'

and it should not give any error messages.

Below we list the dependencies for ``autoreject``.
All required dependencies are installed automatically when you install ``autoreject``.

* ``mne`` (>=0.14)<commit_msg>STY: fix codeblocks<commit_after>autoreject
==========

|CircleCI|_ |GitHub Actions|_ |Codecov|_ |PyPI|_ |Conda-Forge|_

.. |CircleCI| image:: https://circleci.com/gh/autoreject/autoreject/tree/master.svg?style=shield&circle-token=:circle-token
.. _CircleCI: https://circleci.com/gh/autoreject/autoreject

.. |GitHub Actions| image:: https://github.com/autoreject/autoreject/actions/workflows/test.yml/badge.svg
.. _GitHub Actions: https://github.com/autoreject/autoreject/actions/workflows/test.yml

.. |Codecov| image:: http://codecov.io/github/autoreject/autoreject/coverage.svg?branch=master
.. _Codecov: http://codecov.io/github/autoreject/autoreject?branch=master

.. |PyPI| image:: https://badge.fury.io/py/autoreject.svg
.. _PyPI: https://badge.fury.io/py/autoreject

.. |Conda-Forge| image:: https://img.shields.io/conda/vn/conda-forge/autoreject.svg
.. _Conda-Forge: https://anaconda.org/conda-forge/autoreject/

This is a library to automatically reject bad trials and repair bad sensors in magneto-/electroencephalography (M/EEG) data.

.. image:: http://autoreject.github.io/_images/sphx_glr_plot_visualize_bad_epochs_002.png


The documentation can be found under the following links:

- for the `stable release <https://autoreject.github.io/>`_
- for the `latest (development) version <https://circleci.com/api/v1.1/project/github/autoreject/autoreject/latest/artifacts/0/html/index.html?branch=master>`_

.. docs_readme_include_label

Installation
------------

We recommend the `Anaconda Python distribution <https://www.anaconda.com/>`_
and a **Python version >= 3.7**.
To obtain the stable release of ``autoreject``. you can use ``pip``::

    pip install -U autoreject

Or ``conda``::

    conda install -c conda-forge autoreject

If you want the latest (development) version of ``autoreject``, use::

    pip install https://api.github.com/repos/autoreject/autoreject/zipball/master

If you do not have admin privileges on the computer, use the ``--user`` flag
with `pip`.

To check if everything worked fine, you can do::

    python -c 'import autoreject'

and it should not give any error messages.

Below we list the dependencies for ``autoreject``.
All required dependencies are installed automatically when you install ``autoreject``.

* ``mne`` (>=0.14)
{'fraction_non_alphanumeric': 0.14733611050208287, 'fraction_numerical': 0.0048235036176277135, 'mean_word_length': 4.411625148279953, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 24, 'lorem ipsum': 0, 'www.': 2, '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': '7500407', 'n_tokens_mistral': 1602, 'n_tokens_neox': 1510, 'n_words': 357}