Skip to content

Commit 5b6be16

Browse files
committed
add comments
1 parent 851a9b4 commit 5b6be16

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ai_tutor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import functools
22
import json
33
import logging
4-
import os
54
import pathlib
65
import time
76

87
from typing import Dict, List, Tuple
98

10-
119
import requests
1210

1311

@@ -136,14 +134,16 @@ def get_the_question(
136134

137135
questions += longrepr_list
138136

139-
# Query Gemini with consolidated questions if there are any
137+
# Add the main directive or instruction based on whether there are failed tests
140138
if questions:
141139
questions.insert(0, get_directive(human_language))
142140
else:
143141
questions.insert(0, f'In {human_language}, please comment on the student code given the assignment instruction.')
144142

143+
# Add the code and instructions
145144
questions.append(get_code_instruction(student_files, readme_file, human_language))
146145

146+
# Join all questions into a single string
147147
consolidated_question = "\n\n".join(questions)
148148

149149
return consolidated_question

0 commit comments

Comments
 (0)