<commit_before># -*- python -*-
# ex: set syntax=python:

# Copyright (c) 2011 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.

# This is the buildmaster config file for the 'nacl' bot. It must
# be installed as 'master.cfg' in your buildmaster's base directory
# (although the filename can be changed with the --basedir option to
# 'mktap buildbot master').

# It has one job: define a dictionary named BuildmasterConfig. This
# dictionary has a variety of keys to control different aspects of the
# buildmaster. They are documented in docs/config.xhtml .

# This file follows this naming convention:
# Factories: f_nacl_[dbg/opt/sdk]_[os]
# Builders:  b_nacl_[dbg/opt/sdk]_[os]
# BuildDir:  [dbg/opt/sdk]-[os]
#
# os = xp/linux/mac

from buildbot import locks
from buildbot.changes import svnpoller
from buildbot.scheduler import Scheduler

from master import master_utils
from master import slaves_list
from master.factory import nacl_factory
from master.factory import gclient_factory

import config


ActiveMaster = config.Master.NativeClientPPAPI

TREE_GATE_KEEPER = ActiveMaster.is_production_host

# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}

# 'slavePortnum' defines the TCP port to listen on. This must match the value
# configured into the buildslaves (with their --master option)
c['slavePortnum'] = ActiveMaster.slave_port


####### CHANGESOURCES

# the 'change_source' list tells the buildmaster how it should find out about
# source code changes. Any class which implements IChangeSource can be added
# to this list: there are several in buildbot/changes/*.py to choose from.
def NativeClientTreeFileSplitter(path):
  return ('ppapi', path)

# Polls config.Master.nacl_trunk_url for changes
trunk_poller = svnpoller.SVNPoller(
    svnurl='http://src.chromium.org/svn/trunk/src/ppapi',
    split_file=NativeClientTreeFileSplitter,
    revlinktmpl=(
        'http://src.chromium.org/viewvc/chrome?view=rev&revision=%s'),
    pollinterval=10)

c['change_source'] = [trunk_poller]


####### BUILDERS

# buildbot/process/factory.py provides several BuildFactory classes you can
# start with, which implement build processes for common targets (GNU
# autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
# base class, and is configured with a series of BuildSteps. When the build
# is run, the appropriate buildslave is told to execute each Step in turn.

# the first BuildStep is typically responsible for obtaining a copy of the
# sources. There are source-obtaining Steps in buildbot/process/step.py for
# CVS, SVN, and others.


# ----------------------------------------------------------------------------
# FACTORIES

m_linux = nacl_factory.NativeClientFactory(
    build_dir='native_client', target_platform='linux2', use_supplement=True,
    custom_deps_list = [
        ('ppapi', 'http://src.chromium.org/svn/trunk/src/ppapi'),
    ],
)
# Add an extra frivilous checkout of part of ppapi so console view can make
# sense of the world.
m_linux._solutions.insert(0, gclient_factory.GClientSolution(
   'http://src.chromium.org/svn/trunk/src/ppapi/c', name='console_junk'))


# Some shortcut to simplify the code below.
F_LINUX = m_linux.NativeClientFactory


# The identifier of the factory is the build configuration. If two factories
# are using the same build configuration, they should have the same identifier.

factories = []

# Linux<commit_msg>Adding in more repos that need to be ToT for the ppapi integration builder.<commit_after># -*- python -*-
# ex: set syntax=python:

# Copyright (c) 2011 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.

# This is the buildmaster config file for the 'nacl' bot. It must
# be installed as 'master.cfg' in your buildmaster's base directory
# (although the filename can be changed with the --basedir option to
# 'mktap buildbot master').

# It has one job: define a dictionary named BuildmasterConfig. This
# dictionary has a variety of keys to control different aspects of the
# buildmaster. They are documented in docs/config.xhtml .

# This file follows this naming convention:
# Factories: f_nacl_[dbg/opt/sdk]_[os]
# Builders:  b_nacl_[dbg/opt/sdk]_[os]
# BuildDir:  [dbg/opt/sdk]-[os]
#
# os = xp/linux/mac

from buildbot import locks
from buildbot.changes import svnpoller
from buildbot.scheduler import Scheduler

from master import master_utils
from master import slaves_list
from master.factory import nacl_factory
from master.factory import gclient_factory

import config


ActiveMaster = config.Master.NativeClientPPAPI

TREE_GATE_KEEPER = ActiveMaster.is_production_host

# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}

# 'slavePortnum' defines the TCP port to listen on. This must match the value
# configured into the buildslaves (with their --master option)
c['slavePortnum'] = ActiveMaster.slave_port


####### CHANGESOURCES

# the 'change_source' list tells the buildmaster how it should find out about
# source code changes. Any class which implements IChangeSource can be added
# to this list: there are several in buildbot/changes/*.py to choose from.
def NativeClientTreeFileSplitter(path):
  return ('ppapi', path)

# Polls config.Master.nacl_trunk_url for changes
trunk_poller = svnpoller.SVNPoller(
    svnurl='http://src.chromium.org/svn/trunk/src/ppapi',
    split_file=NativeClientTreeFileSplitter,
    revlinktmpl=(
        'http://src.chromium.org/viewvc/chrome?view=rev&revision=%s'),
    pollinterval=10)

c['change_source'] = [trunk_poller]


####### BUILDERS

# buildbot/process/factory.py provides several BuildFactory classes you can
# start with, which implement build processes for common targets (GNU
# autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
# base class, and is configured with a series of BuildSteps. When the build
# is run, the appropriate buildslave is told to execute each Step in turn.

# the first BuildStep is typically responsible for obtaining a copy of the
# sources. There are source-obtaining Steps in buildbot/process/step.py for
# CVS, SVN, and others.


# ----------------------------------------------------------------------------
# FACTORIES

m_linux = nacl_factory.NativeClientFactory(
    build_dir='native_client', target_platform='linux2', use_supplement=True,
    custom_deps_list = [
        ('ppapi',
         'http://src.chromium.org/svn/trunk/src/ppapi'),
        ('gpu/command_buffer',
         'http://src.chromium.org/svn/trunk/src/gpu/command_buffer'),
        ('gpu/common',
         'http://src.chromium.org/svn/trunk/src/gpu/common'),
        ('gpu/demos',
         'http://src.chromium.org/svn/trunk/src/gpu/demos'),
        ('gpu/GLES2',
         'http://src.chromium.org/svn/trunk/src/gpu/GLES2'),
        ('gpu/KHR',
         'http://src.chromium.org/svn/trunk/src/gpu/KHR'),
        ('gpu/pgl',
         'http://src.chromium.org/svn/trunk/src/gpu/pgl'),
        ('third_party/gles2_book',
         'http://src.chromium.org/svn/trunk/src/third_party/gles2_book'),
    ],
)
# Add an extra frivilous checkout of part of ppapi so console view can make
# sense of the world.
m_linux._solutions.insert(0, gclient_factory.GClientSolution(
   'http://src.chromium.org/svn/trunk/src/ppapi/c', name='console_junk'))


# Some shortcut to simplify the code below.
F_LINUX = m_linux.NativeClientFactory


# The identifier of the factory is the build configuration. If two factories
# are using the same build configuration, they should have the same identifier.

factories = []

# Linux
{'fraction_non_alphanumeric': 0.11354378818737271, 'fraction_numerical': 0.0025458248472505093, 'mean_word_length': 3.7937766931055523, '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': '5385135', 'n_tokens_mistral': 2398, 'n_tokens_neox': 2324, 'n_words': 796}