<commit_before># Copyright 2013 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.

from RECIPE_MODULES.gclient import CONFIG_CTX
from slave.recipe_config import BadConf

# TODO(machenbach): Move this to an external configuration file.
STABLE_BRANCH = '3.25'
BETA_BRANCH = '3.26'


# TODO(machenbach): This is copied from gclient's config.py and should be
# unified somehow.
def ChromiumSvnSubURL(c, *pieces):
  BASES = ('https://src.chromium.org',
           'svn://svn-mirror.golo.chromium.org')
  return '/'.join((BASES[c.USE_MIRROR],) + pieces)


# TODO(machenbach): Remove the method above in favor of this one.
def ChromiumSvnTrunkURL(c, *pieces):
  BASES = ('https://src.chromium.org/svn/trunk',
           'svn://svn-mirror.golo.chromium.org/chrome/trunk')
  return '/'.join((BASES[c.USE_MIRROR],) + pieces)


def _V8URL(branch):
  return 'http://v8.googlecode.com/svn/%s' % branch


@CONFIG_CTX()
def v8(c):
  soln = c.solutions.add()
  soln.name = 'v8'
  soln.url = _V8URL('branches/bleeding_edge')
  soln.custom_vars = {'chromium_trunk': ChromiumSvnTrunkURL(c)}
  c.got_revision_mapping['v8'] = 'got_revision'


@CONFIG_CTX(includes=['v8'])
def mozilla_tests(c):
  c.solutions[0].custom_deps['v8/test/mozilla/data'] = ChromiumSvnSubURL(
      c, 'chrome', 'trunk', 'deps', 'third_party', 'mozilla-tests')


@CONFIG_CTX(includes=['v8'])
def clang(c):
  c.solutions[0].custom_deps['v8/tools/clang/scripts'] = ChromiumSvnSubURL(
      c, 'chrome', 'trunk', 'src', 'tools', 'clang', 'scripts')


@CONFIG_CTX(includes=['v8'])
def beta_branch(c):
  c.solutions[0].url = _V8URL('branches/%s' % BETA_BRANCH)<commit_msg>V8 Buildbot: Fix tester revision from builders triggered by the nightly scheduler.<commit_after># Copyright 2013 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.

from RECIPE_MODULES.gclient import CONFIG_CTX
from slave.recipe_config import BadConf

# TODO(machenbach): Move this to an external configuration file.
STABLE_BRANCH = '3.25'
BETA_BRANCH = '3.26'


# TODO(machenbach): This is copied from gclient's config.py and should be
# unified somehow.
def ChromiumSvnSubURL(c, *pieces):
  BASES = ('https://src.chromium.org',
           'svn://svn-mirror.golo.chromium.org')
  return '/'.join((BASES[c.USE_MIRROR],) + pieces)


# TODO(machenbach): Remove the method above in favor of this one.
def ChromiumSvnTrunkURL(c, *pieces):
  BASES = ('https://src.chromium.org/svn/trunk',
           'svn://svn-mirror.golo.chromium.org/chrome/trunk')
  return '/'.join((BASES[c.USE_MIRROR],) + pieces)


def _V8URL(branch):
  return 'http://v8.googlecode.com/svn/%s' % branch


@CONFIG_CTX()
def v8(c):
  soln = c.solutions.add()
  soln.name = 'v8'
  soln.url = _V8URL('branches/bleeding_edge')
  soln.custom_vars = {'chromium_trunk': ChromiumSvnTrunkURL(c)}
  c.got_revision_mapping['v8'] = 'got_revision'
  # Needed to get the testers to properly sync the right revision.
  # TODO(infra): Upload full buildspecs for every build to isolate and then use
  # them instead of this gclient garbage.
  c.parent_got_revision_mapping['parent_got_revision'] = 'got_revision'


@CONFIG_CTX(includes=['v8'])
def mozilla_tests(c):
  c.solutions[0].custom_deps['v8/test/mozilla/data'] = ChromiumSvnSubURL(
      c, 'chrome', 'trunk', 'deps', 'third_party', 'mozilla-tests')


@CONFIG_CTX(includes=['v8'])
def clang(c):
  c.solutions[0].custom_deps['v8/tools/clang/scripts'] = ChromiumSvnSubURL(
      c, 'chrome', 'trunk', 'src', 'tools', 'clang', 'scripts')


@CONFIG_CTX(includes=['v8'])
def beta_branch(c):
  c.solutions[0].url = _V8URL('branches/%s' % BETA_BRANCH)
{'fraction_non_alphanumeric': 0.15257841573631048, 'fraction_numerical': 0.013556618819776715, 'mean_word_length': 4.675716440422323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4362374', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1403, 'n_words': 313}