<commit_before><commit_msg>Top-level presubmit script for Skia trunk that checks https://skia-tree-status.appspot.com/banner-status?format=json before a CL is committed.<commit_after># Copyright (c) 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.


"""Top-level presubmit script for Skia.

See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into gcl.
"""


def CheckChangeOnUpload(input_api, output_api):
  """Presubmit checks for the change on upload."""
  return []


def CheckChangeOnCommit(input_api, output_api):
  """Presubmit checks for the change on commit.

  The following are the presubmit checks:
  * Ensures that the Skia tree is not closed in
    http://skia-tree-status.appspot.com/
  """
  results = []
  results.extend(
      input_api.canned_checks.CheckTreeIsOpen(
          input_api, output_api, json_url=(
              'http://skia-tree-status.appspot.com/banner-status?format=json')))
  return results


{'fraction_non_alphanumeric': 0.09990917347865577, 'fraction_numerical': 0.0036330608537693005, 'mean_word_length': 3.963963963963964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1941013', 'n_tokens_mistral': 347, 'n_tokens_neox': 335, 'n_words': 105}