<commit_before>#
# Copyright (c) 2010 rPath, Inc.
#
# All Rights Reserved
#

from datetime import datetime
from dateutil import tz

from mint.db.database import Database
from mint.rest.database import Database as RestDatabase

from mint.django_rest.rbuilder import models as rbuildermodels
from mint.django_rest.rbuilder.inventory import models 


class VersionManager(rbuilder_manager.RbuilderDjangoManager):
    """
    Class encapsulating all logic around versions, available updates, etc.
    """

    def __init__(self, *args, **kw):
        rbuilder_manager.RbuilderDjangoManager.__init__(self, *args, **kw)
        # Need a rest db object for additional functionality.  If other mgr's
        # end up needing one as well, we can move this into
        # RbuilderDjangoManager.
        mint_db = Database(self.cfg)
        self.rest_db = RestDatabase(self.cfg, mint_db)<commit_msg>Branch Merge<commit_after>#
# Copyright (c) 2010 rPath, Inc.
#
# All Rights Reserved
#

from datetime import datetime
from dateutil import tz

from mint.db.database import Database
from mint.rest.db.database import Database as RestDatabase

from mint.django_rest.rbuilder import models as rbuildermodels
from mint.django_rest.rbuilder import rbuilder_manager
from mint.django_rest.rbuilder.inventory import models 


class VersionManager(rbuilder_manager.RbuilderDjangoManager):
    """
    Class encapsulating all logic around versions, available updates, etc.
    """

    def __init__(self, *args, **kw):
        rbuilder_manager.RbuilderDjangoManager.__init__(self, *args, **kw)
        # Need a rest db object for additional functionality.  If other mgr's
        # end up needing one as well, we can move this into
        # RbuilderDjangoManager.
        mint_db = Database(self.cfg)
        self.rest_db = RestDatabase(self.cfg, mint_db)
{'fraction_non_alphanumeric': 0.07583196944899072, 'fraction_numerical': 0.00436442989634479, 'mean_word_length': 3.8647214854111405, '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': '5622112', 'n_tokens_mistral': 532, 'n_tokens_neox': 509, 'n_words': 170}