original_docstring: Render a set of points to a string.
docstring: Render a set of points to a string.
docstring_tokens: Render a set of points to a string .
code: def render(points: set[complex]) -> str:
      """Render a set of points to a string."""
      xs = int(max(p.real for p in points))
      ys = int(max(p.imag for p in points))
  
      rows = []
      for y in range(ys + 1):
          row = ''
          for x in range(xs + 1):
              if (x + y * 1j) in points:
                  row += COLOR_SOLID
              else:
                  row += COLOR_EMPTY
          rows.append(row)
      return "\n".join(rows)
code_tokens: def render ( points : set [ complex ] ) -> str : xs = int ( max ( p . real for p in points ) ) ys = int ( max ( p . imag for p in points ) ) rows = [ ] for y in range ( ys + 1 ) : row = '' for x in range ( xs + 1 ) : if ( x + y * 1j ) in points : row += COLOR_SOLID else : row += COLOR_EMPTY rows . append ( row ) return "\n" . join ( rows )
short_docstring: Render a set of points to a string.
short_docstring_tokens: Render a set of points to a string .
comment: """Render a set of points to a string."""