src/dirbs/reports/stats_generator.py
def _defaultdict_to_regular(d):
    """Helper function to turn a defaultdict into a regular dict."""
    if isinstance(d, defaultdict):
        d = {k: _defaultdict_to_regular(v) for k, v in d.items()}
    return d
Helper function to turn a defaultdict into a regular dict.
Helper function to turn a defaultdict into a regular dict.
Helper function to turn a defaultdict into a regular dict .
def _defaultdict_to_regular(d):
    if isinstance(d, defaultdict):
        d = {k: _defaultdict_to_regular(v) for k, v in d.items()}
    return d
def _defaultdict_to_regular ( d ) : if isinstance ( d , defaultdict ) : d = { k : _defaultdict_to_regular ( v ) for k , v in d . items ( ) } return d
Helper function to turn a defaultdict into a regular dict.
Helper function to turn a defaultdict into a regular dict .
"""Helper function to turn a defaultdict into a regular dict."""
d