<commit_before>FAQ
===

What features does StrictYAML remove?
-------------------------------------

+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| Stupid feature           | Example YAML          | Example pyyaml/ruamel/poyo            | Example StrictYAML                 |
+==========================+=======================+=======================================+====================================+
| `Implicit typing`_       | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: yes           |      load(yaml) == \                  |      load(yaml) == \               |
|                          |      y: null          |        {"x": True, "y": None}         |        {"x": "yes", "y": "null"}   |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Binary data`_           | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      evil: !!binary   |      load(yaml) == \                  |      raises TagTokenDisallowed     |
|                          |       evildata        |      {'evil': b'z\xf8\xa5u\xabZ'}     |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Explicit tags`_         | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: !!int 5       |      load(yaml) == {"x": 5}           |     raises TagTokenDisallowed      |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Node anchors and refs`_ | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: &id001        |      load(yaml) == \                  |     raises NodeAnchorDisallowed    |
|                          |        a: 1           |       {'x': {'a': 1}, 'y': {'a': 1}}  |                                    |
|                          |      y: *id001        |                                       |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Flow style`_            | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: 1             |      load(yaml) == \                  |     raises FlowStyleDisallowed     |
|                          |      b: {c: 3, d: 4}  |      {'x': {'a': 1}, 'y': {'a': 1}}   |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Duplicate keys`_        | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: 1             |      load(yaml) == \                  |     raises DuplicateKeysDisallowed |
|                          |      x: 2             |      {'x': 2}                         |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+


What is YAML?
-------------

YAML is a simple, human readable format for representing associative and hierarchical data:
<commit_msg>Fix miscopied entry in example pyyaml output<commit_after>FAQ
===

What features does StrictYAML remove?
-------------------------------------

+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| Stupid feature           | Example YAML          | Example pyyaml/ruamel/poyo            | Example StrictYAML                 |
+==========================+=======================+=======================================+====================================+
| `Implicit typing`_       | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: yes           |      load(yaml) == \                  |      load(yaml) == \               |
|                          |      y: null          |        {"x": True, "y": None}         |        {"x": "yes", "y": "null"}   |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Binary data`_           | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      evil: !!binary   |      load(yaml) == \                  |      raises TagTokenDisallowed     |
|                          |       evildata        |      {'evil': b'z\xf8\xa5u\xabZ'}     |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Explicit tags`_         | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: !!int 5       |      load(yaml) == {"x": 5}           |     raises TagTokenDisallowed      |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Node anchors and refs`_ | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: &id001        |      load(yaml) == \                  |     raises NodeAnchorDisallowed    |
|                          |        a: 1           |       {'x': {'a': 1}, 'y': {'a': 1}}  |                                    |
|                          |      y: *id001        |                                       |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Flow style`_            | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: 1             |      load(yaml) == \                  |     raises FlowStyleDisallowed     |
|                          |      b: {c: 3, d: 4}  |      {'x': 1, 'b': {'c': 3, 'd': 4}}  |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+
| `Duplicate keys`_        | .. code-block:: yaml  | .. code-block:: python                | .. code-block:: python             |
|                          |                       |                                       |                                    |
|                          |      x: 1             |      load(yaml) == \                  |     raises DuplicateKeysDisallowed |
|                          |      x: 2             |      {'x': 2}                         |                                    |
+--------------------------+-----------------------+---------------------------------------+------------------------------------+


What is YAML?
-------------

YAML is a simple, human readable format for representing associative and hierarchical data:

{'fraction_non_alphanumeric': 0.32070901684465486, 'fraction_numerical': 0.004734118683254431, 'mean_word_length': 0.413852140077821, 'pattern_counts': {'":': 10, '<': 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': 114, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4947104', 'n_tokens_mistral': 1745, 'n_tokens_neox': 1565, 'n_words': 307}