<commit_before># Copyright 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.

from telemetry.core.platform import linux_based_platform_backend
from telemetry.core.platform import ps_util
from telemetry.core.platform.power_monitor import cros_power_monitor


class CrosPlatformBackend(
    linux_based_platform_backend.LinuxBasedPlatformBackend):

  def __init__(self, cri):
    super(CrosPlatformBackend, self).__init__()
    self._cri = cri
    self._powermonitor = cros_power_monitor.CrosPowerMonitor(cri)

  def StartRawDisplayFrameRateMeasurement(self):
    raise NotImplementedError()

  def StopRawDisplayFrameRateMeasurement(self):
    raise NotImplementedError()

  def GetRawDisplayFrameRateMeasurements(self):
    raise NotImplementedError()

  def IsThermallyThrottled(self):
    raise NotImplementedError()

  def HasBeenThermallyThrottled(self):
    raise NotImplementedError()

  def RunCommand(self, args):
    return self._cri.RunCmdOnDevice(args)[0]

  def GetFileContents(self, filename):<commit_msg>Fix creation of CrosPowerMonitor.<commit_after># Copyright 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.

from telemetry.core.platform import linux_based_platform_backend
from telemetry.core.platform import ps_util
from telemetry.core.platform.power_monitor import cros_power_monitor


class CrosPlatformBackend(
    linux_based_platform_backend.LinuxBasedPlatformBackend):

  def __init__(self, cri):
    super(CrosPlatformBackend, self).__init__()
    self._cri = cri
    self._powermonitor = cros_power_monitor.CrosPowerMonitor(self)

  def StartRawDisplayFrameRateMeasurement(self):
    raise NotImplementedError()

  def StopRawDisplayFrameRateMeasurement(self):
    raise NotImplementedError()

  def GetRawDisplayFrameRateMeasurements(self):
    raise NotImplementedError()

  def IsThermallyThrottled(self):
    raise NotImplementedError()

  def HasBeenThermallyThrottled(self):
    raise NotImplementedError()

  def RunCommand(self, args):
    return self._cri.RunCmdOnDevice(args)[0]

  def GetFileContents(self, filename):
{'fraction_non_alphanumeric': 0.06867523260965884, 'fraction_numerical': 0.004430660168365086, 'mean_word_length': 5.621700879765396, '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': '4507439', 'n_tokens_mistral': 675, 'n_tokens_neox': 644, 'n_words': 162}