parameters: (a, b)
return_statement: return q + (2*r + (q&1) > b)
docstring: Closest integer to a/b, a and b positive integers; rounds to even
      in the case of a tie.
docstring_summary: Closest integer to a/b, a and b positive integers; rounds to even
      in the case of a tie.
docstring_tokens: Closest integer to a / b a and b positive integers ; rounds to even in the case of a tie .
function: def _div_nearest(a, b):
      """Closest integer to a/b, a and b positive integers; rounds to even
      in the case of a tie.
  
      """
      q, r = divmod(a, b)
      return q + (2*r + (q&1) > b)
function_tokens: def _div_nearest ( a , b ) : q , r = divmod ( a , b ) return q + ( 2 * r + ( q & 1 ) > b )