original_docstring: 
      Generate anchor (reference) windows by enumerating aspect ratios X
      scales wrt a reference (0, 0, 15, 15) window.
      
docstring: Generate anchor (reference) windows by enumerating aspect ratios X
  scales wrt a reference (0, 0, 15, 15) window.
docstring_tokens: Generate anchor ( reference ) windows by enumerating aspect ratios X scales wrt a reference ( 0 0 15 15 ) window .
code: def generate_anchors(base_size=16, ratios=[0.5, 1, 2],
                       scales=2**np.arange(3, 6),
                       shifts=np.array([0]),
                       strides=np.array([0])):
      """
      Generate anchor (reference) windows by enumerating aspect ratios X
      scales wrt a reference (0, 0, 15, 15) window.
      """
      base_anchor = np.array([1, 1, base_size, base_size]) - 1
      ratio_anchors = _ratio_enum(base_anchor, ratios)
      anchors = np.vstack([_shift_anchor(_scale_enum(ratio_anchors[i, :],
                                                     np.array([j])),
                                         shifts.astype(np.float) * s)
                           for i in xrange(ratio_anchors.shape[0])
                           for j, s in zip(scales, strides)])
      return anchors
code_tokens: def generate_anchors ( base_size = 16 , ratios = [ 0.5 , 1 , 2 ] , scales = 2 ** np . arange ( 3 , 6 ) , shifts = np . array ( [ 0 ] ) , strides = np . array ( [ 0 ] ) ) : base_anchor = np . array ( [ 1 , 1 , base_size , base_size ] ) - 1 ratio_anchors = _ratio_enum ( base_anchor , ratios ) anchors = np . vstack ( [ _shift_anchor ( _scale_enum ( ratio_anchors [ i , : ] , np . array ( [ j ] ) ) , shifts . astype ( np . float ) * s ) for i in xrange ( ratio_anchors . shape [ 0 ] ) for j , s in zip ( scales , strides ) ] ) return anchors
short_docstring: Generate anchor (reference) windows by enumerating aspect ratios X
  scales wrt a reference (0, 0, 15, 15) window.
short_docstring_tokens: Generate anchor ( reference ) windows by enumerating aspect ratios X scales wrt a reference ( 0 0 15 15 ) window .
comment: """
      Generate anchor (reference) windows by enumerating aspect ratios X
      scales wrt a reference (0, 0, 15, 15) window.
      """