original_docstring: 
          Pads vector 1 up to size n, with the value val
          :param vec1: np array
          :param n: size of the desired array
          :param val: the value to be inserted if padding is required
          :return: the padded vector
          
docstring: Pads vector 1 up to size n, with the value val
docstring_tokens: Pads vector 1 up to size n with the value val
code: def _pad_trunc_vector(self, vec1, n, val):
          """
          Pads vector 1 up to size n, with the value val
          :param vec1: np array
          :param n: size of the desired array
          :param val: the value to be inserted if padding is required
          :return: the padded vector
          """
          if len(vec1) < n:
              vec1 = np.pad(vec1, (0, n-len(vec1)), 'constant', constant_values=val)
          else:
              vec1 = vec1[0:n]
          return np.array(vec1)
code_tokens: def _pad_trunc_vector ( self , vec1 , n , val ) : if len ( vec1 ) < n : vec1 = np . pad ( vec1 , ( 0 , n - len ( vec1 ) ) , 'constant' , constant_values = val ) else : vec1 = vec1 [ 0 : n ] return np . array ( vec1 )
short_docstring: Pads vector 1 up to size n, with the value val
short_docstring_tokens: Pads vector 1 up to size n with the value val
comment: """
          Pads vector 1 up to size n, with the value val
          :param vec1: np array
          :param n: size of the desired array
          :param val: the value to be inserted if padding is required
          :return: the padded vector
          """