<commit_before>#! /usr/env/python
"""
This script auto-constructs an elementary web documentation structure & API for
Landlab grid methods, based around Sphinx and the new LLCATS type declaration
system.
"""
from landlab.core.utils import get_categories_from_grid_methods
from copy import copy
import re

grid_types = ('ModelGrid', 'RasterModelGrid', 'VoronoiDelaunayGrid',
              'HexModelGrid', 'RadialModelGrid')
str_sequence = ('Raster', 'Irregular Voronoi-cell', 'Hexagonal', 'Radial')
paths = ('raster', 'voronoi', 'hex', 'radial')

autosummary = '\n\n.. autosummary::\n    :toctree: generated/\n\n'


all_methods_for_cat_allgrid = {}
all_cats_for_method_allgrid = {}<commit_msg>tweak docs<commit_after>#! /usr/env/python
"""
This script auto-constructs an elementary web documentation structure & API for
Landlab grid methods, based around Sphinx and the new LLCATS type declaration
system.

THIS DOES NOT YET WORK, but illustrates the principle of how the utils work.
"""
from landlab.core.utils import get_categories_from_grid_methods
from copy import copy
import re

grid_types = ('ModelGrid', 'RasterModelGrid', 'VoronoiDelaunayGrid',
              'HexModelGrid', 'RadialModelGrid')
str_sequence = ('Raster', 'Irregular Voronoi-cell', 'Hexagonal', 'Radial')
paths = ('raster', 'voronoi', 'hex', 'radial')

autosummary = '\n\n.. autosummary::\n    :toctree: generated/\n\n'


all_methods_for_cat_allgrid = {}
all_cats_for_method_allgrid = {}
{'fraction_non_alphanumeric': 0.12063056888279644, 'fraction_numerical': 0.0, 'mean_word_length': 5.3478260869565215, 'pattern_counts': {'":': 0, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7360292', 'n_tokens_mistral': 483, 'n_tokens_neox': 473, 'n_words': 133}