<commit_before># Copyright (c) 2011 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 buildbot.status import status_push

import urlparse


class TryServerHttpStatusPush(status_push.HttpStatusPush):
  """Status push used by try server.

  Rietveld listens to buildStarted and (step|build)Finished to know if a try
  job succeeeded or not.
  """
  def __init__(self, serverUrl, *args, **kwargs):
    # Appends the status listener to the base url.
    # TODO(csharp): Always add status_listener once all the configs are updated.
    if not serverUrl.endswith('status_listener'):
      serverUrl = urlparse.urljoin(serverUrl, 'status_listener')

    blackList = [
        'buildETAUpdate',
        #'buildFinished',
        #'buildStarted',
        'buildedRemoved',
        'builderAdded',
        'builderChangedState',
        'buildsetSubmitted',
        'changeAdded',<commit_msg>Always append status_listener to the base url.<commit_after># Copyright (c) 2011 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 buildbot.status import status_push

import urlparse


class TryServerHttpStatusPush(status_push.HttpStatusPush):
  """Status push used by try server.

  Rietveld listens to buildStarted and (step|build)Finished to know if a try
  job succeeeded or not.
  """
  def __init__(self, serverUrl, *args, **kwargs):
    # Appends the status listener to the base url.
    serverUrl = urlparse.urljoin(serverUrl, 'status_listener')

    blackList = [
        'buildETAUpdate',
        #'buildFinished',
        #'buildStarted',
        'buildedRemoved',
        'builderAdded',
        'builderChangedState',
        'buildsetSubmitted',
        'changeAdded',
{'fraction_non_alphanumeric': 0.0857449088960343, 'fraction_numerical': 0.004287245444801715, 'mean_word_length': 3.487980769230769, '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': '3491163', 'n_tokens_mistral': 551, 'n_tokens_neox': 525, 'n_words': 184}