<commit_before>========
Cookbook
========


Better Performance
==================


Monitoring Client-Server Interaction
====================================

.. autofunction:: py2neo.watch


Escaping Values in Cypher
=========================

```python
>>> from py2neo.cypher import cypher_escape
>>> rel_type = "KNOWS WELL"
>>> statement = "CREATE (a)-[ab:%s]->(b) RETURN ab" % cypher_escape(rel_type)
>>> statement
'CREATE (a)-[ab:`KNOWS WELL`]->(b) RETURN ab'
```<commit_msg>Fixed markup<commit_after>========
Cookbook
========


Better Performance
==================


Monitoring Client-Server Interaction
====================================

.. autofunction:: py2neo.watch


Escaping Values in Cypher
=========================

    >>> from py2neo.cypher import cypher_escape
    >>> rel_type = "KNOWS WELL"
    >>> statement = "CREATE (a)-[ab:%s]->(b) RETURN ab" % cypher_escape(rel_type)
    >>> statement
    'CREATE (a)-[ab:`KNOWS WELL`]->(b) RETURN ab'
{'fraction_non_alphanumeric': 0.31917098445595854, 'fraction_numerical': 0.004145077720207254, 'mean_word_length': 5.708333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '6110804', 'n_tokens_mistral': 323, 'n_tokens_neox': 286, 'n_words': 66}