<commit_before># Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# These modules come from scripts/master, which must be in the PYTHONPATH.
from master import master_utils
from master import slaves_list
from master.factory import annotator_factory

import config
import master_site_config
ActiveMaster = master_site_config.Mojo

m_annotator = annotator_factory.AnnotatorFactory()

c = BuildmasterConfig = {}
c['change_source'] = []
c['schedulers'] = []
c['builders'] = []
c['status'] = []

builders = [ 'Mojo Linux (dbg)' ]

for builder_name in builders:
  c['builders'].append({
    'name': builder_name,
    'factory': m_annotator.BaseFactory('mojo'),
    'slavebuilddir': 'mojo',
  })

config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)

import master_source_cfg

master_source_cfg.Update(config, ActiveMaster, c)

c['logCompressionLimit'] = False
c['projectName'] = ActiveMaster.project_name
c['projectURL'] = config.Master.project_url
# Must come before AutoSetupMaster().
c['buildbotURL'] = ActiveMaster.buildbot_url

# Associate the slaves to the manual builders. The configuration is in
# slaves.cfg.
slaves = slaves_list.SlavesList('slaves.cfg', 'Mojo')
for builder in c['builders']:
  builder['slavenames'] = slaves.GetSlavesName(builder=builder['name'])

# The 'slaves' list defines the set of allowable buildslaves. List all the
# slaves registered to a builder. Remove dupes.
c['slaves'] = master_utils.AutoSetupSlaves(
    c['builders'],
    config.Master.GetBotPassword(),
    missing_recipients=['<EMAIL>'])
master_utils.VerifySetup(c, slaves)

# Adds common status and tools to this master.
master_utils.AutoSetupMaster(c, ActiveMaster,
    public_html='../master.chromium/public_html',
    templates=['../master.chromium/templates'],
    tagComparator=getattr(c['change_source'][0], 'comparator', None),
    enable_http_status_push=ActiveMaster.is_production_host)<commit_msg>Add single branch scheduler to master.client.mojo<commit_after># Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# These modules come from scripts/master, which must be in the PYTHONPATH.
from master import master_utils
from master import slaves_list
from master.factory import annotator_factory
from buildbot.schedulers.basic import SingleBranchScheduler

import config
import master_site_config
ActiveMaster = master_site_config.Mojo

m_annotator = annotator_factory.AnnotatorFactory()

c = BuildmasterConfig = {}
c['change_source'] = []
c['schedulers'] = []
c['builders'] = []
c['status'] = []

builders = [ 'Mojo Linux (dbg)' ]

for builder_name in builders:
  c['builders'].append({
    'name': builder_name,
    'factory': m_annotator.BaseFactory('mojo'),
    'slavebuilddir': 'mojo',
  })

config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)

import master_source_cfg

master_source_cfg.Update(config, ActiveMaster, c)

c['schedulers'].extend([
    SingleBranchScheduler(name='linux_source',
                          branch='master',
                          treeStableTimer=60,
                          builderNames=['Mojo Linux (dbg)'])
    ])

c['logCompressionLimit'] = False
c['projectName'] = ActiveMaster.project_name
c['projectURL'] = config.Master.project_url
# Must come before AutoSetupMaster().
c['buildbotURL'] = ActiveMaster.buildbot_url

# Associate the slaves to the manual builders. The configuration is in
# slaves.cfg.
slaves = slaves_list.SlavesList('slaves.cfg', 'Mojo')
for builder in c['builders']:
  builder['slavenames'] = slaves.GetSlavesName(builder=builder['name'])

# The 'slaves' list defines the set of allowable buildslaves. List all the
# slaves registered to a builder. Remove dupes.
c['slaves'] = master_utils.AutoSetupSlaves(
    c['builders'],
    config.Master.GetBotPassword(),
    missing_recipients=['<EMAIL>'])
master_utils.VerifySetup(c, slaves)

# Adds common status and tools to this master.
master_utils.AutoSetupMaster(c, ActiveMaster,
    public_html='../master.chromium/public_html',
    templates=['../master.chromium/templates'],
    tagComparator=getattr(c['change_source'][0], 'comparator', None),
    enable_http_status_push=ActiveMaster.is_production_host)
{'fraction_non_alphanumeric': 0.11673506611947104, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 5.213881019830028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4723448', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1330, 'n_words': 339}