<commit_before>.. highlight:: python

Tutorial
--------

Trying out some Sphinx directives:

Inline markup
"""""""""""""
text
*text*
**text**
``text``

:emphasis:`text`
:strong:`text`
:literal:`text`
:subscript:`text`
:superscript:`text`
:title-reference:`text`


Lists and Quote-like block
""""""""""""""""""""""""""
* This is a bulleted list.
* It has two items, the second
  item uses two lines.

1. This is a numbered list.
2. It has two items too.

#. This is a numbered list.
#. It has two items too.

* this is
* a list

  * with a nested list
  * and some subitems

* and here the parent list continues

#################
This is a heading
#################

*****************
Chapters
*****************

=================
Sections
=================

-----------------
Subsections
-----------------

^^^^^^^^^^^^^^^^^
subsubsections
^^^^^^^^^^^^^^^^^

"""""""""""""""""
paragraphs
"""""""""""""""""

Hyperlinks
""""""""""
This is a paragraph that contains `a link`_.

.. _a link: http://example.com/


Footnotes
"""""""""
Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_

.. rubric:: Footnotes

.. [#f1] Text of the first footnote.
.. [#f2] Text of the second footnote.


Citations
"""""""""
Lorem ipsum [Ref]_ dolor sit amet.

.. [Ref] Book or article reference, URL or whatever.

Comments
""""""""
..
   This whole indented block
   is a comment.

   Still in the comment.

Testing Code blocks
"""""""""""""""""""

.. code-block:: python
   :emphasize-lines: 3,5

   def some_function():
       interesting = False
       print('This line is highlighted.')
       print('This one is not...')
       print('...but this one is.')

Example code block::<commit_msg>[tutorial.rst] added code block<commit_after>.. highlight:: python

Tutorial
--------

Trying out some Sphinx directives:

Inline markup
"""""""""""""
text
*text*
**text**
``text``

:emphasis:`text`
:strong:`text`
:literal:`text`
:subscript:`text`
:superscript:`text`
:title-reference:`text`


Lists and Quote-like block
""""""""""""""""""""""""""
* This is a bulleted list.
* It has two items, the second
  item uses two lines.

1. This is a numbered list.
2. It has two items too.

#. This is a numbered list.
#. It has two items too.

* this is
* a list

  * with a nested list
  * and some subitems

* and here the parent list continues

#################
This is a heading
#################

*****************
Chapters
*****************

=================
Sections
=================

-----------------
Subsections
-----------------

^^^^^^^^^^^^^^^^^
subsubsections
^^^^^^^^^^^^^^^^^

"""""""""""""""""
paragraphs
"""""""""""""""""

Hyperlinks
""""""""""
This is a paragraph that contains `a link`_.

.. _a link: http://example.com/


Footnotes
"""""""""
Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_

.. rubric:: Footnotes

.. [#f1] Text of the first footnote.
.. [#f2] Text of the second footnote.


Citations
"""""""""
Lorem ipsum [Ref]_ dolor sit amet.

.. [Ref] Book or article reference, URL or whatever.

Comments
""""""""
..
   This whole indented block
   is a comment.

   Still in the comment.

Testing Code blocks
"""""""""""""""""""

.. code-block:: python
   :linenos:

   >>> test(10)
   <class 'type'> <class 'object'>
   >>> type(10)
   <class 'int'>
   >>> 


.. code-block:: python
   :emphasize-lines: 3,5

   def some_function():
       interesting = False
       print('This line is highlighted.')
       print('This one is not...')
       print('...but this one is.')

Example code block::
{'fraction_non_alphanumeric': 0.2707436118288831, 'fraction_numerical': 0.005742176284811944, 'mean_word_length': 3.253968253968254, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2609337', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1133, 'n_words': 363}