<commit_before>import numpy as np
import os
from lsst.utils import getPackageDir
from lsst.sims.utils import ObservationMetaData
from lsst.sims.catalogs.db import fileDBObject
from lsst.sims.catalogs.db import CatalogDBObject, CompoundCatalogDBObject
from lsst.sims.catUtils.baseCatalogModels import GalaxyObj, GalaxyTileObj
from desc.twinkles import sprinkler

__all__ = ["_galaxy_cache_file_name",
           "_galaxy_cache_dtype",
           "getGalaxyCacheConnection",
           "GalaxyCacheDiskObj", "GalaxyCacheBulgeObj",
           "GalaxyCacheAgnObj", "GalaxyCacheSprinklerObj"]


_galaxy_cache_file_name = os.path.join(getPackageDir('twinkles'), 'data',
                                       'twinkles_galaxy_cache.txt')

_galaxy_cache_table_name = 'galaxy_cache'

_galaxy_cache_db_name = os.path.join(getPackageDir('twinkles'), 'data',
                                     'galaxy_cache.db')

_galaxy_cache_dtype = np.dtype([('galtileid', int),
                                ('ra', float), ('dec', float),
                                ('sedname_disk', str, 50), ('magnorm_disk', float),<commit_msg>add comments describing the variables defining the galaxy cache<commit_after>import numpy as np
import os
from lsst.utils import getPackageDir
from lsst.sims.utils import ObservationMetaData
from lsst.sims.catalogs.db import fileDBObject
from lsst.sims.catalogs.db import CatalogDBObject, CompoundCatalogDBObject
from lsst.sims.catUtils.baseCatalogModels import GalaxyObj, GalaxyTileObj
from desc.twinkles import sprinkler

__all__ = ["_galaxy_cache_file_name",
           "_galaxy_cache_dtype",
           "getGalaxyCacheConnection",
           "GalaxyCacheDiskObj", "GalaxyCacheBulgeObj",
           "GalaxyCacheAgnObj", "GalaxyCacheSprinklerObj"]


# the name of the text file that will contain the galaxy cache
_galaxy_cache_file_name = os.path.join(getPackageDir('twinkles'), 'data',
                                       'twinkles_galaxy_cache.txt')

# the name of the table containing the galaxies in the galaxy cache database
_galaxy_cache_table_name = 'galaxy_cache'

# the name of the sqlite database produced from the galaxy cache
_galaxy_cache_db_name = os.path.join(getPackageDir('twinkles'), 'data',
                                     'galaxy_cache.db')

# the dtype describing the contents of the galaxy cache
_galaxy_cache_dtype = np.dtype([('galtileid', int),
                                ('ra', float), ('dec', float),
                                ('sedname_disk', str, 50), ('magnorm_disk', float),
{'fraction_non_alphanumeric': 0.0889413616686344, 'fraction_numerical': 0.0015741833923652105, 'mean_word_length': 3.1672131147540985, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2639929', 'n_tokens_mistral': 779, 'n_tokens_neox': 739, 'n_words': 176}