<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.
from telemetry.page import page as page_module
from telemetry.page import page_set as page_set_module


class ToughEnergyCasesPage(page_module.Page):

  def __init__(self, url, page_set):
    super(ToughEnergyCasesPage, self).__init__(
        url=url, page_set=page_set, credentials_path = 'data/credentials.json')

class CodePenPage(ToughEnergyCasesPage):

  def __init__(self, url, page_set):
    super(CodePenPage, self).__init__(url, page_set)
    self.credentials = 'codepen'


class GooglePage(ToughEnergyCasesPage):

  def __init__(self, url, page_set):
    super(GooglePage, self).__init__(
        url=url,
        page_set=page_set)
    self.credentials = 'google'

  def RunNavigateSteps(self, action_runner):
    action_runner.NavigateToPage(self)
    action_runner.WaitForJavaScriptCondition(
        'window.gmonkey !== undefined &&'
        'document.getElementById("gb") !== null')


class ToughEnergyCasesPageSet(page_set_module.PageSet):
  """Pages for measuring Chrome power draw."""

  def __init__(self):
    super(ToughEnergyCasesPageSet, self).__init__(
        archive_data_file='data/tough_energy_cases.json',
        bucket=page_set_module.PUBLIC_BUCKET)
<commit_msg>Update bucket to reflect current page_set.<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.
from telemetry.page import page as page_module
from telemetry.page import page_set as page_set_module


class ToughEnergyCasesPage(page_module.Page):

  def __init__(self, url, page_set):
    super(ToughEnergyCasesPage, self).__init__(
        url=url, page_set=page_set, credentials_path = 'data/credentials.json')

class CodePenPage(ToughEnergyCasesPage):

  def __init__(self, url, page_set):
    super(CodePenPage, self).__init__(url, page_set)
    self.credentials = 'codepen'


class GooglePage(ToughEnergyCasesPage):

  def __init__(self, url, page_set):
    super(GooglePage, self).__init__(
        url=url,
        page_set=page_set)
    self.credentials = 'google'

  def RunNavigateSteps(self, action_runner):
    action_runner.NavigateToPage(self)
    action_runner.WaitForJavaScriptCondition(
        'window.gmonkey !== undefined &&'
        'document.getElementById("gb") !== null')


class ToughEnergyCasesPageSet(page_set_module.PageSet):
  """Pages for measuring Chrome power draw."""

  def __init__(self):
    super(ToughEnergyCasesPageSet, self).__init__(
        archive_data_file='data/tough_energy_cases.json',
        bucket=page_set_module.PARTNER_BUCKET)

{'fraction_non_alphanumeric': 0.0955988455988456, 'fraction_numerical': 0.002886002886002886, 'mean_word_length': 4.647657841140529, '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': '2878666', 'n_tokens_mistral': 895, 'n_tokens_neox': 857, 'n_words': 201}