original_docstring: Edit the SIZE directive by delta (x,y)
docstring: Edit the SIZE directive by delta (x,y)
docstring_tokens: Edit the SIZE directive by delta ( x y )
code: def edit_size(inp: TextIOWrapper, out: TextIOWrapper, x: int, y: int) -> None:
      """Edit the SIZE directive by delta (x,y)"""
      for line in inp.readlines():
          if line.strip().startswith("SIZE"):
              parts = line.split()
              if len(parts) != 5:
                  raise TabError
              _size, sx, _by, sy, _semi = parts
              sx = Decimal(sx).quantize(Decimal("0.001"))
              sy = Decimal(sy).quantize(Decimal("0.001"))
              sx += x
              sy += y
              newline = f"  SIZE {sx} BY {sy} ;"
              out.write(newline)
          else:
              out.write(line)
code_tokens: def edit_size ( inp : TextIOWrapper , out : TextIOWrapper , x : int , y : int ) -> None : for line in inp . readlines ( ) : if line . strip ( ) . startswith ( "SIZE" ) : parts = line . split ( ) if len ( parts ) != 5 : raise TabError _size , sx , _by , sy , _semi = parts sx = Decimal ( sx ) . quantize ( Decimal ( "0.001" ) ) sy = Decimal ( sy ) . quantize ( Decimal ( "0.001" ) ) sx += x sy += y newline = f"  SIZE {sx} BY {sy} ;" out . write ( newline ) else : out . write ( line )
short_docstring: Edit the SIZE directive by delta (x,y)
short_docstring_tokens: Edit the SIZE directive by delta ( x y )
comment: """Edit the SIZE directive by delta (x,y)"""