<jupyter_start><jupyter_text>Generate text (unicode) tree:<jupyter_code>print(g1.tree())<jupyter_output>/
 ├── bar
 │   ├── baz
 │   ├── quux
 │   │   ├── aaa (100,) float64
 │   │   └── bbb (100, 100) int32
 │   ├── xxx (100,) float64
 │   ├── yyy (100, 100) int32
 │   └── zoo
 └── foo<jupyter_text>The ``level`` parameter controls how deep the tree is.<jupyter_code>print(g1.tree(level=1))
print(g1.tree(level=2))<jupyter_output>/
 ├── bar
 │   ├── baz
 │   ├── quux
 │   ├── xxx (100,) float64
 │   ├── yyy (100, 100) int32
 │   └── zoo
 └── foo<jupyter_text>Alternative plain ASCII tree:<jupyter_code>print(bytes(g1.tree()).decode())<jupyter_output>/
 +-- bar
 |   +-- baz
 |   +-- quux
 |   |   +-- aaa (100,) float64
 |   |   +-- bbb (100, 100) int32
 |   +-- xxx (100,) float64
 |   +-- yyy (100, 100) int32
 |   +-- zoo
 +-- foo<jupyter_text>HTML trees:<jupyter_code>g1.tree()<jupyter_output><empty_output><jupyter_text>Use ``expand=True`` to have all groups automatically expanded.<jupyter_code>g1.tree(expand=True)
g1.tree(expand=True, level=2)
g1.tree(expand=True, level=1)<jupyter_output><empty_output><jupyter_text>The ``expand`` parameter can also be an integer, giving the depth to expand to.<jupyter_code>g1.tree(expand=1)
g1.tree(expand=2)
g1.tree(expand=3)<jupyter_output><empty_output><jupyter_text>Change default icons, use icons from jstree default theme:<jupyter_code>zarr.util.tree_array_icon = 'jstree-file'
zarr.util.tree_group_icon = 'jstree-folder'
g1.tree(expand=True)<jupyter_output><empty_output><jupyter_text>Change default icons, use font awesome icons.<jupyter_code>zarr.util.tree_array_icon = 'fa fa-space-shuttle'
zarr.util.tree_group_icon = 'fa fa-star-o'
g1.tree(expand=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17728055077452667, 'fraction_numerical': 0.04876649454962708, 'mean_word_length': 4.952218430034129, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '453485', 'license': 'MIT', 'n_tokens_mistral': 802, 'n_tokens_neox': 734, 'n_words': 147, 'path': 'notebooks/repr_tree.ipynb', 'repo_name': 'ryan-williams/zarr', 'size': '1743'}