File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import functools
22import json
33import logging
4- import os
54import pathlib
65import time
76
87from typing import Dict , List , Tuple
98
10-
119import 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
You can’t perform that action at this time.
0 commit comments