<commit_before>from openerp.osv import fields, osv
from openerp.addons.runbot.runbot import now

class RunbotBuild(osv.osv):
    _inherit = "runbot.build"

    def job_28_wodemo(self, cr, uid, build, lock_path, log_path, args=None):
        build._log('wodemo', 'Start database without demo')
        #build.checkout() # tmp to test
        self.pg_createdb(cr, uid, "%s-all-wodemo" % build.dest)
        cmd, mods = build.cmd()
        cmd += ['-d', '%s-all-wodemo' % build.dest, '-i', mods, '--stop-after-init', '--log-level=info']
        cmd += ['--without-demo=True']
        if "--test-enable" in cmd:
            cmd.remove('--test-enable')
        build.write({'job_start': now()})
        return self.spawn(cmd, lock_path, log_path, cpu_limit=2100)
<commit_msg>[REF] runbot_wodemo: change database name to use regex of dbfilter well<commit_after>from openerp.osv import fields, osv
from openerp.addons.runbot.runbot import now

class RunbotBuild(osv.osv):
    _inherit = "runbot.build"

    def job_28_wodemo(self, cr, uid, build, lock_path, log_path, args=None):
        build._log('wodemo', 'Start database without demo')
        #build.checkout() # tmp to test
        self.pg_createdb(cr, uid, "%s-wodemo" % build.dest)
        cmd, mods = build.cmd()
        cmd += ['-d', '%s-wodemo' % build.dest, '-i', mods, '--stop-after-init', '--log-level=info']
        cmd += ['--without-demo=True']
        if "--test-enable" in cmd:
            cmd.remove('--test-enable')
        build.write({'job_start': now()})
        return self.spawn(cmd, lock_path, log_path, cpu_limit=2100)

{'fraction_non_alphanumeric': 0.16540880503144653, 'fraction_numerical': 0.007547169811320755, 'mean_word_length': 2.9478908188585606, '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': '218101', 'n_tokens_mistral': 585, 'n_tokens_neox': 560, 'n_words': 128}