tools/metrics/histograms/update_gpu_driver_bug_workaround_entries.py
def ReadGpuDriverBugEntries(filename):
  """Reads in the gpu driver bug list, returning a dictionary mapping
  workaround ids to descriptions.
  """
  # Read the file as a list of lines
  with open(path_util.GetInputFile(filename)) as f:
    json_data = json.load(f)

  entries = {}
  entries[0] = '0: Recorded once every time this histogram is updated.'
  for entry in json_data["entries"]:
    entries[entry["id"]] = "%d: %s" % (entry["id"], entry["description"])
  return entries
Reads in the gpu driver bug list, returning a dictionary mapping
  workaround ids to descriptions.
  
Reads in the gpu driver bug list, returning a dictionary mapping
workaround ids to descriptions.
Reads in the gpu driver bug list returning a dictionary mapping workaround ids to descriptions .
def ReadGpuDriverBugEntries(filename):
  with open(path_util.GetInputFile(filename)) as f:
    json_data = json.load(f)
  entries = {}
  entries[0] = '0: Recorded once every time this histogram is updated.'
  for entry in json_data["entries"]:
    entries[entry["id"]] = "%d: %s" % (entry["id"], entry["description"])
  return entries
def ReadGpuDriverBugEntries ( filename ) : with open ( path_util . GetInputFile ( filename ) ) as f : json_data = json . load ( f ) entries = { } entries [ 0 ] = '0: Recorded once every time this histogram is updated.' for entry in json_data [ "entries" ] : entries [ entry [ "id" ] ] = "%d: %s" % ( entry [ "id" ] , entry [ "description" ] ) return entries
Reads in the gpu driver bug list, returning a dictionary mapping
workaround ids to descriptions.
Reads in the gpu driver bug list returning a dictionary mapping workaround ids to descriptions .
"""Reads in the gpu driver bug list, returning a dictionary mapping
  workaround ids to descriptions.
  """ # Read the file as a list of lines
filename