<commit_before># -*- coding: utf-8 -*-

from openerp import netsvc
from openerp.osv import osv, fields
from dateutil.relativedelta import relativedelta
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP, float_compare
import time
from datetime import datetime


class test(osv.osv):
    """"""

    _inherit = 'kinesis_athletics.test'


    def onchange_type(self, cr, uid, ids, type, context=None):
        v = {}

        if type=='selection':
            has_range = False
            v['has_range'] = False

        return {'value': v}


    def name_get(self, cr, uid, ids, context=None):

        if isinstance(ids, (list, tuple)) and not len(ids):
            return []
        if isinstance(ids, (long, int)):
            ids = [ids]
        reads = self.read(cr, uid, ids, ['name','uom_id'], context=context)
        res = []<commit_msg>[IMP] Test model migrated to API v8.0<commit_after># -*- coding: utf-8 -*-

from openerp import models, fields, api, _
from dateutil.relativedelta import relativedelta
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP, float_compare
import time
from datetime import datetime


class test(models.Model):
    """"""

    _inherit = 'kinesis_athletics.test'


    def onchange_type(self, cr, uid, ids, type, context=None):
        v = {}

        if type=='selection':
            has_range = False
            v['has_range'] = False

        return {'value': v}


    def name_get(self, cr, uid, ids, context=None):

        if isinstance(ids, (list, tuple)) and not len(ids):
            return []
        if isinstance(ids, (long, int)):
            ids = [ids]
        reads = self.read(cr, uid, ids, ['name','uom_id'], context=context)
        res = []
{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.002206287920573635, 'mean_word_length': 2.8843683083511777, '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': '2250456', 'n_tokens_mistral': 584, 'n_tokens_neox': 555, 'n_words': 157}