<commit_before>from buildbot.plugins import buildslave, changes, schedulers, status, util
from buildbot.status import html, status_push, web, words

import environments as envs
import factories
from passwords import HTTP_USERNAME, HTTP_PASSWORD
from passwords import SLAVE_PASSWORD, CHANGE_PASSWORD
from passwords import HOMU_BUILDBOT_SECRET, GITHUB_STATUS_TOKEN


LINUX_SLAVES = ["servo-linux{}".format(i) for i in range(1, 7)]
MAC_SLAVES = ["servo-mac2", "servo-mac3", "servo-mac4", "servo-macpro1"]
CROSS_SLAVES = ["servo-linux-cross{}".format(i) for i in range(1, 3)]
WINDOWS_SLAVES = ["servo-windows{}".format(i) for i in range(1, 3)]


c = BuildmasterConfig = {}
c['protocols'] = {'pb': {'port': 9001}}
c['caches'] = {
    'Changes': 1000,
    'Builds': 100,
    'chdicts': 1000,
}


##################
# BUILDSLAVES
##################


c['slaves'] = []
for s in MAC_SLAVES + CROSS_SLAVES + LINUX_SLAVES + WINDOWS_SLAVES:
    c['slaves'].append(buildslave.BuildSlave(s, SLAVE_PASSWORD, max_builds=1))


##################
# CHANGESOURCES
##################

<commit_msg>Auto merge of #643 - aneeshusa:make-buildbot-aware-of-servo-linux-cross3-builder, r=larsbergstrom<commit_after>from buildbot.plugins import buildslave, changes, schedulers, status, util
from buildbot.status import html, status_push, web, words

import environments as envs
import factories
from passwords import HTTP_USERNAME, HTTP_PASSWORD
from passwords import SLAVE_PASSWORD, CHANGE_PASSWORD
from passwords import HOMU_BUILDBOT_SECRET, GITHUB_STATUS_TOKEN


LINUX_SLAVES = ["servo-linux{}".format(i) for i in range(1, 7)]
MAC_SLAVES = ["servo-mac2", "servo-mac3", "servo-mac4", "servo-macpro1"]
CROSS_SLAVES = ["servo-linux-cross{}".format(i) for i in range(1, 4)]
WINDOWS_SLAVES = ["servo-windows{}".format(i) for i in range(1, 3)]


c = BuildmasterConfig = {}
c['protocols'] = {'pb': {'port': 9001}}
c['caches'] = {
    'Changes': 1000,
    'Builds': 100,
    'chdicts': 1000,
}


##################
# BUILDSLAVES
##################


c['slaves'] = []
for s in MAC_SLAVES + CROSS_SLAVES + LINUX_SLAVES + WINDOWS_SLAVES:
    c['slaves'].append(buildslave.BuildSlave(s, SLAVE_PASSWORD, max_builds=1))


##################
# CHANGESOURCES
##################


{'fraction_non_alphanumeric': 0.19481680071492405, 'fraction_numerical': 0.025022341376228777, 'mean_word_length': 5.975077881619938, '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': '1871537', 'n_tokens_mistral': 881, 'n_tokens_neox': 840, 'n_words': 181}