<commit_before>

def class BaseDao(object):
    
    def query_one(self, id, field_list=None):<commit_msg>add init method for db param input<commit_after>

def class BaseDao(object):
    
    def __init__(self, db):
        self.db = db
    
    def query_one(self, id, field_list=None):
{'fraction_non_alphanumeric': 0.10452961672473868, 'fraction_numerical': 0.0, 'mean_word_length': 3.4307692307692306, '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': '1573138', 'n_tokens_mistral': 98, 'n_tokens_neox': 99, 'n_words': 26}