parameters: (self, date)
return_statement: return self.__lookup[M-1]+D+leap
docstring: :type date: str
          :rtype: int
docstring_summary: :type date: str
          :rtype: int
docstring_tokens: : type date : str : rtype : int
function: def dayOfYear(self, date):
          """
          :type date: str
          :rtype: int
          """
          Y, M, D = map(int, date.split("-"))
          leap = 1 if M > 2 and (((Y % 4 == 0) and (Y % 100 != 0)) or (Y % 400 == 0)) else 0
          return self.__lookup[M-1]+D+leap
function_tokens: def dayOfYear ( self , date ) : Y , M , D = map ( int , date . split ( "-" ) ) leap = 1 if M > 2 and ( ( ( Y % 4 == 0 ) and ( Y % 100 != 0 ) ) or ( Y % 400 == 0 ) ) else 0 return self . __lookup [ M - 1 ] + D + leap