<commit_before>"""
Contains astronomical and physical constants for use in Astropy or other places.

The package contains a `~astropy.constants.cgs` and `~astropy.constants.si` 
module that define constants in CGS and SI units, respectively.  A typical use
case might be::

    from astropy.constants.cgs import c
    
    ... define the mass of something you want the rest energy of as m ...
    E = m*c**2

"""

from . import cgs
from . import si<commit_msg>made constants docstring auto-update with list of constants<commit_after>"""
Contains astronomical and physical constants for use in Astropy or other places.

The package contains a `~astropy.constants.cgs` and `~astropy.constants.si` 
module that define constants in CGS and SI units, respectively.  A typical use
case might be::

    from astropy.constants.cgs import c
    
    ... define the mass of something you want the rest energy of as m ...
    E = m*c**2

"""

from . import cgs
from . import si
from .constant import Constant



#update the docstring to include a list of units from the si module 
__doc__ += """
The following constants are defined in `~astropy.constants.cgs` and 
`~astropy.constants.si` .

"""

for nm,val in si.__dict__.iteritems():
    if isinstance(val,Constant):
        __doc__ += '    * '+nm+'\n        '+val.name+'\n' 
del nm,val
__doc__ += '\n'
{'fraction_non_alphanumeric': 0.0967982129560685, 'fraction_numerical': 0.0014892032762472078, 'mean_word_length': 3.349514563106796, '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': '5753549', 'n_tokens_mistral': 402, 'n_tokens_neox': 401, 'n_words': 168}