original_docstring: 
      Returns a new matrix consisting of the given matrix with a border
      or margin of the given width filled with the given value.
      
docstring: Returns a new matrix consisting of the given matrix with a border
  or margin of the given width filled with the given value.
docstring_tokens: Returns a new matrix consisting of the given matrix with a border or margin of the given width filled with the given value .
code: def add_border(matrix,width=1,value=0.0):
      """
      Returns a new matrix consisting of the given matrix with a border
      or margin of the given width filled with the given value.
      """
      rows,cols = matrix.shape
  
      hborder = np.array([ [value]*(cols+2*width) ]*width)
      vborder = np.array([ [value]*width ] * rows)
  
      temp = np.concatenate( (vborder,matrix,vborder), axis=1)
      return np.concatenate( (hborder,temp,hborder) )
code_tokens: def add_border ( matrix , width = 1 , value = 0.0 ) : rows , cols = matrix . shape hborder = np . array ( [ [ value ] * ( cols + 2 * width ) ] * width ) vborder = np . array ( [ [ value ] * width ] * rows ) temp = np . concatenate ( ( vborder , matrix , vborder ) , axis = 1 ) return np . concatenate ( ( hborder , temp , hborder ) )
short_docstring: Returns a new matrix consisting of the given matrix with a border
  or margin of the given width filled with the given value.
short_docstring_tokens: Returns a new matrix consisting of the given matrix with a border or margin of the given width filled with the given value .
comment: """
      Returns a new matrix consisting of the given matrix with a border
      or margin of the given width filled with the given value.
      """