original_docstring:  Make rectangles and build the skyline.
docstring: Make rectangles and build the skyline.
docstring_tokens: Make rectangles and build the skyline .
code: def go(self):
          """ Make rectangles and build the skyline."""
          # Make the random rectangles.
          margin = 20
          num_rectangles = int(self.num_rectangles_entry.get())
          xmin = margin
          xmax = self.canvas.winfo_width() - margin
          self.ground_y = self.canvas.winfo_height() - margin
          min_width = 10
          max_width = max(20, (3 * xmax) // num_rectangles)
          min_height = 20
          max_height = 150
          self.rectangles = []
  
          for i in range(num_rectangles):
              width = random.randint(min_width, max_width)
              x = random.randint(xmin, xmax - width)
              height = random.randint(min_height, max_height)
              y = self.ground_y - height
              self.rectangles.append(Rectangle(x, y, width, height))
  
          # Make the skyline.
          self.skyline = self.make_skyline(self.rectangles, 0, len(self.rectangles) - 1)
  
          # Redraw.
          self.draw()
code_tokens: def go ( self ) : margin = 20 num_rectangles = int ( self . num_rectangles_entry . get ( ) ) xmin = margin xmax = self . canvas . winfo_width ( ) - margin self . ground_y = self . canvas . winfo_height ( ) - margin min_width = 10 max_width = max ( 20 , ( 3 * xmax ) // num_rectangles ) min_height = 20 max_height = 150 self . rectangles = [ ] for i in range ( num_rectangles ) : width = random . randint ( min_width , max_width ) x = random . randint ( xmin , xmax - width ) height = random . randint ( min_height , max_height ) y = self . ground_y - height self . rectangles . append ( Rectangle ( x , y , width , height ) ) self . skyline = self . make_skyline ( self . rectangles , 0 , len ( self . rectangles ) - 1 ) self . draw ( )
short_docstring: Make rectangles and build the skyline.
short_docstring_tokens: Make rectangles and build the skyline .
comment: """ Make rectangles and build the skyline."""$SEP$# Make the random rectangles.
  $SEP$# Make the skyline.
  $SEP$# Redraw.
  