<commit_before>﻿from .lims_quantitationMethod_postgresql_models import *
from .stage01_quantification_MQResultsTable_postgresql_models import *
#from .lims_msMethod_query import lims_msMethod_query
from SBaaS_LIMS.lims_calibratorsAndMixes_query import lims_calibratorsAndMixes_query
from SBaaS_LIMS.lims_experiment_postgresql_models import *

from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update
from SBaaS_base.sbaas_base_query_drop import sbaas_base_query_drop
from SBaaS_base.sbaas_base_query_initialize import sbaas_base_query_initialize
from SBaaS_base.sbaas_base_query_insert import sbaas_base_query_insert
from SBaaS_base.sbaas_base_query_select import sbaas_base_query_select
from SBaaS_base.sbaas_base_query_delete import sbaas_base_query_delete

from SBaaS_base.sbaas_template_query import sbaas_template_query

class lims_quantitationMethod_query(
            lims_calibratorsAndMixes_query,
            #lims_msMethod_query,
            sbaas_template_query,
                                    ):
    def initialize_supportedTables(self):
        '''Set the supported tables dict for 
        '''
        tables_supported = {'quantitation_method':quantitation_method,
                            'quantitation_method_list':quantitation_method_list
                        };
        self.set_supportedTables(tables_supported);
        
    def reset_lims_quantitationMethod(self,
            tables_I = [],
            quantitation_method_id_I = None,
            warn_I=True):
        try:
            if not tables_I:
                tables_I = list(self.get_supportedTables().keys());
            querydelete = sbaas_base_query_delete(session_I=self.session,engine_I=self.engine,settings_I=self.settings,data_I=self.data);
            for table in tables_I:
                if table == 'quantitation_method':
                    query = {};
                    query['delete_from'] = [{'table_name':table}];
                    query['where'] = [{
                            'table_name':table,
                            'column_name':'id', #quantitation_method_id
                            'value':quantitation_method_id_I,<commit_msg>updates to lims_quantification reset method<commit_after>﻿from .lims_quantitationMethod_postgresql_models import *
from .stage01_quantification_MQResultsTable_postgresql_models import *
#from .lims_msMethod_query import lims_msMethod_query
from SBaaS_LIMS.lims_calibratorsAndMixes_query import lims_calibratorsAndMixes_query
from SBaaS_LIMS.lims_experiment_postgresql_models import *

from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update
from SBaaS_base.sbaas_base_query_drop import sbaas_base_query_drop
from SBaaS_base.sbaas_base_query_initialize import sbaas_base_query_initialize
from SBaaS_base.sbaas_base_query_insert import sbaas_base_query_insert
from SBaaS_base.sbaas_base_query_select import sbaas_base_query_select
from SBaaS_base.sbaas_base_query_delete import sbaas_base_query_delete

from SBaaS_base.sbaas_template_query import sbaas_template_query

class lims_quantitationMethod_query(
            lims_calibratorsAndMixes_query,
            #lims_msMethod_query,
            sbaas_template_query,
                                    ):
    def initialize_supportedTables(self):
        '''Set the supported tables dict for 
        '''
        tables_supported = {'quantitation_method':quantitation_method,
                            'quantitation_method_list':quantitation_method_list
                        };
        self.set_supportedTables(tables_supported);
        
    def reset_lims_quantitationMethod(self,
            tables_I = [],
            quantitation_method_id_I = None,
            warn_I=True):
        try:
            if not tables_I:
                tables_I = list(self.get_supportedTables().keys());
            querydelete = sbaas_base_query_delete(session_I=self.session,engine_I=self.engine,settings_I=self.settings,data_I=self.data);
            for table in tables_I:
                if table == 'quantitation_method':
                    query = {};
                    query['delete_from'] = [{'table_name':table}];
                    query['where'] = [{
                            'table_name':table,
                            'column_name':'id',
                            'value':quantitation_method_id_I,
{'fraction_non_alphanumeric': 0.06129476584022039, 'fraction_numerical': 0.0009182736455463728, 'mean_word_length': 2.876334519572954, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5007429', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1284, 'n_words': 184}