parameters: (self, filename)
return_statement: return result
docstring: Build a line_number->css_class map.
docstring_summary: Build a line_number->css_class map.
docstring_tokens: Build a line_number - > css_class map .
function: def compute_linemap(self, filename):
          """Build a line_number->css_class map."""
          points = self.point_symbol_info.get(filename, dict())
  
          line_to_points = dict()
          for fn, points in points.items():
              for point, loc in points.items():
                  line = int(loc.split(":")[0])
                  line_to_points.setdefault(line, []).append(point)
  
          result = dict()
          for line, points in line_to_points.items():
              status = "covered"
              covered_points = self.covered_points & set(points)
              if not len(covered_points):
                  status = "not-covered"
              elif len(covered_points) != len(points):
                  status = "partially-covered"
              result[line] = status
          return result
function_tokens: def compute_linemap ( self , filename ) : points = self . point_symbol_info . get ( filename , dict ( ) ) line_to_points = dict ( ) for fn , points in points . items ( ) : for point , loc in points . items ( ) : line = int ( loc . split ( ":" ) [ 0 ] ) line_to_points . setdefault ( line , [ ] ) . append ( point ) result = dict ( ) for line , points in line_to_points . items ( ) : status = "covered" covered_points = self . covered_points & set ( points ) if not len ( covered_points ) : status = "not-covered" elif len ( covered_points ) != len ( points ) : status = "partially-covered" result [ line ] = status return result