<commit_before>#!/usr/bin/env python
# Copyright (c) 2012 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.

""" Common utilities and constants used by the benchmarking build steps. """

import os

BENCH_GRAPH_NUM_REVISIONS = 150
BENCH_GRAPH_X = 1024
BENCH_GRAPH_Y = 768

# TODO: This is a workaround for
# https://code.google.com/p/skia/issues/detail?id=685
# ('gsutil upload fails with "BotoServerError: 500 Internal Server Error", but
# only for certain destination filenames').
# Modify this value to generate graphs with a new filename that will upload
# successfully, when uploading the old filename starts to fail.
GRAPH_PATH_MODIFIER = '2'

def GraphFilePath(perf_graphs_dir, builder_name, representation='default'):
  return os.path.join(perf_graphs_dir, 'graph-%s-%s-%s.xhtml' % (
      builder_name, representation, GRAPH_PATH_MODIFIER))<commit_msg>Reduce BENCH_GRAPH_NUM_REVISIONS to 50<commit_after>#!/usr/bin/env python
# Copyright (c) 2012 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.

""" Common utilities and constants used by the benchmarking build steps. """

import os

BENCH_GRAPH_NUM_REVISIONS = 50
BENCH_GRAPH_X = 1024
BENCH_GRAPH_Y = 768

# TODO: This is a workaround for
# https://code.google.com/p/skia/issues/detail?id=685
# ('gsutil upload fails with "BotoServerError: 500 Internal Server Error", but
# only for certain destination filenames').
# Modify this value to generate graphs with a new filename that will upload
# successfully, when uploading the old filename starts to fail.
GRAPH_PATH_MODIFIER = '2'

def GraphFilePath(perf_graphs_dir, builder_name, representation='default'):
  return os.path.join(perf_graphs_dir, 'graph-%s-%s-%s.xhtml' % (
      builder_name, representation, GRAPH_PATH_MODIFIER))
{'fraction_non_alphanumeric': 0.0889348500517063, 'fraction_numerical': 0.022233712512926575, 'mean_word_length': 5.084905660377358, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '817014', 'n_tokens_mistral': 657, 'n_tokens_neox': 585, 'n_words': 210}