original_docstring: Solve the problem and return the result
docstring: Solve the problem and return the result
docstring_tokens: Solve the problem and return the result
code: def solve():
      """Solve the problem and return the result"""
      result = 0
      # January 1st 1901 is a Tuesday
      day_of_week = 1
      year = 1901
  
      while year <= 2000:
          for month in range(12):
              day_of_week += days_in_month[month]
              day_of_week %= 7
              # Add one extra day in February if it is a leap year
              if month == 1 and year % 4 == 0 and (year % 100 != 0 or year % 400 == 0):
                  day_of_week += 1
                  day_of_week %= 7
  
              if day_of_week == 6:
                  result += 1
  
          year += 1
  
      return result
code_tokens: def solve ( ) : result = 0 day_of_week = 1 year = 1901 while year <= 2000 : for month in range ( 12 ) : day_of_week += days_in_month [ month ] day_of_week %= 7 if month == 1 and year % 4 == 0 and ( year % 100 != 0 or year % 400 == 0 ) : day_of_week += 1 day_of_week %= 7 if day_of_week == 6 : result += 1 year += 1 return result
short_docstring: Solve the problem and return the result
short_docstring_tokens: Solve the problem and return the result
comment: """Solve the problem and return the result"""$SEP$# January 1st 1901 is a Tuesday$SEP$# Add one extra day in February if it is a leap year