<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.

"""Buildbot recipe definition for the various Crashpad continuous builders.
"""

DEPS = [
  'gclient',
  'path',
  'platform',
  'properties',
  'python',
  'step',
]


def GenSteps(api):
  """Generates the sequence of steps that will be run by the slave."""
  api.gclient.set_config('crashpad')
  api.gclient.checkout()

  if api.properties.get('clobber'):
    api.path.rmtree('out', api.path['slave_build'].join('out'))

  api.gclient.runhooks()

  buildername = api.properties['buildername']
  dirname = 'Debug' if '_dbg' in buildername else 'Release'
  path = api.path['checkout'].join('out', dirname)
  api.step('compile with ninja', ['ninja', '-C', path])
  api.python('run tests',
             api.path['checkout'].join('build', 'run_tests.py'),
             args=[dirname])


def GenTests(api):
  tests = [
      'crashpad_mac_dbg',
      'crashpad_mac_rel',
      'crashpad_win_dbg',
      'crashpad_win_rel',
  ]
  for t in tests:
    yield(api.test(t) + api.properties.generic(buildername=t))
    yield(api.test(t + '_clobber') +
          api.properties.generic(buildername=t, clobber=True))<commit_msg>Fix clobber on crashpad recipe<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.

"""Buildbot recipe definition for the various Crashpad continuous builders.
"""

DEPS = [
  'gclient',
  'path',
  'platform',
  'properties',
  'python',
  'step',
]


def GenSteps(api):
  """Generates the sequence of steps that will be run by the slave."""
  api.gclient.set_config('crashpad')
  api.gclient.checkout()

  if 'clobber' in api.properties:
    api.path.rmtree('out', api.path['slave_build'].join('out'))

  api.gclient.runhooks()

  buildername = api.properties['buildername']
  dirname = 'Debug' if '_dbg' in buildername else 'Release'
  path = api.path['checkout'].join('out', dirname)
  api.step('compile with ninja', ['ninja', '-C', path])
  api.python('run tests',
             api.path['checkout'].join('build', 'run_tests.py'),
             args=[dirname])


def GenTests(api):
  tests = [
      'crashpad_mac_dbg',
      'crashpad_mac_rel',
      'crashpad_win_dbg',
      'crashpad_win_rel',
  ]
  for t in tests:
    yield(api.test(t) + api.properties.generic(buildername=t))
    yield(api.test(t + '_clobber') +
          api.properties.generic(buildername=t, clobber=True))
{'fraction_non_alphanumeric': 0.14955786236063054, 'fraction_numerical': 0.0030757400999615533, 'mean_word_length': 3.730909090909091, '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': '6335613', 'n_tokens_mistral': 888, 'n_tokens_neox': 865, 'n_words': 217}