parameters: (rank, data, n_negative, n_zeros)
return_statement: return data[rank - n_zeros]
docstring: Find the value in data augmented with n_zeros for the given rank
docstring_summary: Find the value in data augmented with n_zeros for the given rank
docstring_tokens: Find the value in data augmented with n_zeros for the given rank
function: def _get_elem_at_rank(rank, data, n_negative, n_zeros):
      """Find the value in data augmented with n_zeros for the given rank"""
      if rank < n_negative:
          return data[rank]
      if rank - n_negative < n_zeros:
          return 0
      return data[rank - n_zeros]
function_tokens: def _get_elem_at_rank ( rank , data , n_negative , n_zeros ) : if rank < n_negative : return data [ rank ] if rank - n_negative < n_zeros : return 0 return data [ rank - n_zeros ]