<commit_before>#!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import subprocess
import sys


BOT_ASSIGNMENT = {
    ######################################################################
    # Buildbots.
    ######################################################################
    'xp-m32-n32-opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'xp-glibc-opt': 'buildbot\\buildbot_win.bat opt 32 glibc',
    'vista64-m64-n64-dbg': 'buildbot\\buildbot_win.bat dbg 64 newlib',
    'vista64-m64-n64-opt': 'buildbot\\buildbot_win.bat opt 64 newlib',
    'win64-glibc-dbg': 'buildbot\\buildbot_win.bat dbg 64 glibc',
    'win64-glibc-opt': 'buildbot\\buildbot_win.bat opt 64 glibc',
    'xp-bare-m32-n32-opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'win7-bare-m32-n32-opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'win7-bare-m64-n64-dbg': 'buildbot\\buildbot_win.bat dbg 64 newlib',
    'win7-bare-m64-n64-opt': 'buildbot\\buildbot_win.bat opt 64 newlib',
    'win7atom64-m64-n64-test-dbg': 'buildbot\\buildbot_win_atom.bat dbg 64',
    'win7atom64-m64-n64-test-opt': 'buildbot\\buildbot_win_atom.bat opt 64',
    'mac10.5-m32-n32-opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'mac10.6-m32-n32-opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'mac10.5-glibc-opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'mac10.6-glibc-opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'hardy32-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'hardy64-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'hardy64-m64-n64-opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
    'lucid32-m32-n32-dbg': 'bash buildbot/buildbot_linux.sh dbg 32 newlib',
    'lucid32-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid32-glibc-dbg': 'bash buildbot/buildbot_linux.sh dbg 32 glibc',
    'lucid32-glibc-opt': 'bash buildbot/buildbot_linux.sh opt 32 glibc',
    'lucid64-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid64-m64-n64-dbg': 'bash buildbot/buildbot_linux.sh dbg 64 newlib',
    'lucid64-m64-n64-opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
    'lucid64-glibc-dbg': 'bash buildbot/buildbot_linux.sh dbg 64 glibc',
    'lucid64-glibc-opt': 'bash buildbot/buildbot_linux.sh opt 64 glibc',
    'lucid32-bare-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid64-bare-m64-n64-opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
     # pnacl bots.

    'pnacl-arm-dbg':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-dbg',
    'pnacl-arm-opt':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-opt',
    'pnacl-arm-hw-dbg':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-hw-dbg',
    'pnacl-arm-hw-opt':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-hw-opt',
    'pnacl-x8632':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-x8632',
    'pnacl-x8664':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-x8664',
    # Pnacl spec2k bots (obsolete)
    'lucid64-spec-arm': # obsolete
        'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-arm',
    'lucid64-spec-x86': # obsolete
        'bash tests/spec2k/bot_spec.sh 2 ~/cpu2000-redhat64-ia32',
    'lucid64-pnacl-translator': # obsolete
        'bash tests/spec2k/bot_spec.sh 3 ~/cpu2000-redhat64-ia32',
    # Pnacl spec2k bots (obsolete)
    'spec-pnacl-arm':
        'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-arm',
    'spec-pnacl-x8632':
      'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-x8632',
    'spec-pnacl-x8664':
      'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-x8664',
    # NaCl spec2k bot
    'spec-nacl':
      'bash buildbot/buildbot_pnacl2.sh mode-spec-nacl',
    # Valgrind bots.
    'karmic64-valgrind': 'bash buildbot/buildbot_valgrind.sh',
    # Coverage.
    'mac-m32-n32-coverage': 'bash buildbot/buildbot_coverage_mac.sh',
    'hardy64-m32-n32-coverage': 'bash buildbot/buildbot_coverage_linux.sh 32',
    'hardy64-m64-n64-coverage': 'bash buildbot/buildbot_coverage_linux.sh 64',
    'hardy64-marm-narm-coverage': 'bash buildbot/buildbot_coverage_arm.sh',
    'xp-m32-n32-coverage': 'buildbot\\buildbot_coverage_win.bat',
    # PPAPI Integration.
    'lucid64-m32-n32-opt-ppapi':
        'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid64-m64-n64-dbg-ppapi':
        'bash buildbot/buildbot_linux.sh dbg 64 newlib',

    ######################################################################
    # Trybots.
    ######################################################################
    'nacl-win32_newlib_opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'nacl-win32_glibc_opt': 'buildbot\\buildbot_win.bat opt 32 glibc',
    'nacl-win64_newlib_dbg': 'buildbot\\buildbot_win.bat dbg 64 newlib',
    'nacl-win64_newlib_opt': 'buildbot\\buildbot_win.bat opt 64 newlib',
    'nacl-win64_glibc_opt': 'buildbot\\buildbot_win.bat opt 64 glibc',
    'nacl-mac10.5_newlib_opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'nacl-mac10.5_glibc_opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'nacl-mac10.6_newlib_opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'nacl-mac10.6_glibc_opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'nacl-hardy32_newlib_opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'nacl-lucid32_newlib_dbg': 'bash buildbot/buildbot_linux.sh dbg 32 newlib',
    'nacl-lucid32_newlib_opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'nacl-lucid32_glibc_opt': 'bash buildbot/buildbot_linux.sh opt 32 glibc',
    'nacl-hardy64_newlib_opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
    'nacl-lucid64_newlib_dbg': 'bash buildbot/buildbot_linux.sh dbg 64 newlib',<commit_msg>Switching selector to lucid from hardy for several bots.<commit_after>#!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import subprocess
import sys


BOT_ASSIGNMENT = {
    ######################################################################
    # Buildbots.
    ######################################################################
    'xp-m32-n32-opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'xp-glibc-opt': 'buildbot\\buildbot_win.bat opt 32 glibc',
    'vista64-m64-n64-dbg': 'buildbot\\buildbot_win.bat dbg 64 newlib',
    'vista64-m64-n64-opt': 'buildbot\\buildbot_win.bat opt 64 newlib',
    'win64-glibc-dbg': 'buildbot\\buildbot_win.bat dbg 64 glibc',
    'win64-glibc-opt': 'buildbot\\buildbot_win.bat opt 64 glibc',
    'xp-bare-m32-n32-opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'win7-bare-m32-n32-opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'win7-bare-m64-n64-dbg': 'buildbot\\buildbot_win.bat dbg 64 newlib',
    'win7-bare-m64-n64-opt': 'buildbot\\buildbot_win.bat opt 64 newlib',
    'win7atom64-m64-n64-test-dbg': 'buildbot\\buildbot_win_atom.bat dbg 64',
    'win7atom64-m64-n64-test-opt': 'buildbot\\buildbot_win_atom.bat opt 64',
    'mac10.5-m32-n32-opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'mac10.6-m32-n32-opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'mac10.5-glibc-opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'mac10.6-glibc-opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'lucid32-m32-n32-dbg': 'bash buildbot/buildbot_linux.sh dbg 32 newlib',
    'lucid32-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid32-glibc-dbg': 'bash buildbot/buildbot_linux.sh dbg 32 glibc',
    'lucid32-glibc-opt': 'bash buildbot/buildbot_linux.sh opt 32 glibc',
    'lucid64-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid64-m64-n64-dbg': 'bash buildbot/buildbot_linux.sh dbg 64 newlib',
    'lucid64-m64-n64-opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
    'lucid64-glibc-dbg': 'bash buildbot/buildbot_linux.sh dbg 64 glibc',
    'lucid64-glibc-opt': 'bash buildbot/buildbot_linux.sh opt 64 glibc',
    'lucid32-bare-m32-n32-opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid64-bare-m64-n64-opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
     # pnacl bots.

    'pnacl-arm-dbg':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-dbg',
    'pnacl-arm-opt':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-opt',
    'pnacl-arm-hw-dbg':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-hw-dbg',
    'pnacl-arm-hw-opt':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-arm-hw-opt',
    'pnacl-x8632':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-x8632',
    'pnacl-x8664':
        'bash buildbot/buildbot_pnacl1.sh mode-buildbot-x8664',
    # Pnacl spec2k bots (obsolete)
    'lucid64-spec-arm': # obsolete
        'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-arm',
    'lucid64-spec-x86': # obsolete
        'bash tests/spec2k/bot_spec.sh 2 ~/cpu2000-redhat64-ia32',
    'lucid64-pnacl-translator': # obsolete
        'bash tests/spec2k/bot_spec.sh 3 ~/cpu2000-redhat64-ia32',
    # Pnacl spec2k bots (obsolete)
    'spec-pnacl-arm':
        'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-arm',
    'spec-pnacl-x8632':
      'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-x8632',
    'spec-pnacl-x8664':
      'bash buildbot/buildbot_pnacl2.sh mode-spec-pnacl-x8664',
    # NaCl spec2k bot
    'spec-nacl':
      'bash buildbot/buildbot_pnacl2.sh mode-spec-nacl',
    # Valgrind bots.
    'karmic64-valgrind': 'bash buildbot/buildbot_valgrind.sh',
    # Coverage.
    'mac-m32-n32-coverage': 'bash buildbot/buildbot_coverage_mac.sh',
    'lucid64-m32-n32-coverage': 'bash buildbot/buildbot_coverage_linux.sh 32',
    'lucid64-m64-n64-coverage': 'bash buildbot/buildbot_coverage_linux.sh 64',
    'lucid64-marm-narm-coverage': 'bash buildbot/buildbot_coverage_arm.sh',
    'xp-m32-n32-coverage': 'buildbot\\buildbot_coverage_win.bat',
    # PPAPI Integration.
    'lucid64-m32-n32-opt-ppapi':
        'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'lucid64-m64-n64-dbg-ppapi':
        'bash buildbot/buildbot_linux.sh dbg 64 newlib',

    ######################################################################
    # Trybots.
    ######################################################################
    'nacl-win32_newlib_opt': 'buildbot\\buildbot_win.bat opt 32 newlib',
    'nacl-win32_glibc_opt': 'buildbot\\buildbot_win.bat opt 32 glibc',
    'nacl-win64_newlib_dbg': 'buildbot\\buildbot_win.bat dbg 64 newlib',
    'nacl-win64_newlib_opt': 'buildbot\\buildbot_win.bat opt 64 newlib',
    'nacl-win64_glibc_opt': 'buildbot\\buildbot_win.bat opt 64 glibc',
    'nacl-mac10.5_newlib_opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'nacl-mac10.5_glibc_opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'nacl-mac10.6_newlib_opt': 'bash buildbot/buildbot_mac.sh opt 32 newlib',
    'nacl-mac10.6_glibc_opt': 'bash buildbot/buildbot_mac.sh opt 32 glibc',
    'nacl-hardy32_newlib_opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'nacl-lucid32_newlib_dbg': 'bash buildbot/buildbot_linux.sh dbg 32 newlib',
    'nacl-lucid32_newlib_opt': 'bash buildbot/buildbot_linux.sh opt 32 newlib',
    'nacl-lucid32_glibc_opt': 'bash buildbot/buildbot_linux.sh opt 32 glibc',
    'nacl-hardy64_newlib_opt': 'bash buildbot/buildbot_linux.sh opt 64 newlib',
    'nacl-lucid64_newlib_dbg': 'bash buildbot/buildbot_linux.sh dbg 64 newlib',
{'fraction_non_alphanumeric': 0.181021897810219, 'fraction_numerical': 0.064405324173465, 'mean_word_length': 3.858573216520651, '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': '6485264', 'n_tokens_mistral': 5173, 'n_tokens_neox': 4531, 'n_words': 781}