diff options
author | ankitjavalkar | 2016-12-19 19:18:35 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-20 12:46:04 +0530 |
commit | 4a0f94084bc26559ef3e26470619e87314f9d70e (patch) | |
tree | c94e56cbb84a90fe12f910bb83a36583219892ee /yaksh/java_code_evaluator.py | |
parent | 81d373983806b78d651e17b966bae0a8ccf3c4bb (diff) | |
download | online_test-4a0f94084bc26559ef3e26470619e87314f9d70e.tar.gz online_test-4a0f94084bc26559ef3e26470619e87314f9d70e.tar.bz2 online_test-4a0f94084bc26559ef3e26470619e87314f9d70e.zip |
Remove commented code
Diffstat (limited to 'yaksh/java_code_evaluator.py')
-rw-r--r-- | yaksh/java_code_evaluator.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/yaksh/java_code_evaluator.py b/yaksh/java_code_evaluator.py index f2ca53b..f94321e 100644 --- a/yaksh/java_code_evaluator.py +++ b/yaksh/java_code_evaluator.py @@ -16,7 +16,6 @@ class JavaCodeEvaluator(BaseEvaluator): """Tests the Java code obtained from Code Server""" def __init__(self, metadata, test_case_data): self.files = [] - # self.submit_code_path = self.create_submit_code_file('Test.java') self.compiled_user_answer = None self.compiled_test_code = None self.user_output_path = "" @@ -31,15 +30,6 @@ class JavaCodeEvaluator(BaseEvaluator): self.test_case = test_case_data.get('test_case') self.weight = test_case_data.get('weight') - # def setup(self): - # super(JavaCodeEvaluator, self).setup() - # self.files = [] - # self.submit_code_path = self.create_submit_code_file('Test.java') - # self.compiled_user_answer = None - # self.compiled_test_code = None - # self.user_output_path = "" - # self.ref_output_path = "" - def teardown(self): # Delete the created file. os.remove(self.submit_code_path) @@ -62,7 +52,7 @@ class JavaCodeEvaluator(BaseEvaluator): output_path = "{0}{1}.class".format(directory, file_name) return output_path - def compile_code(self): # , user_answer, file_paths, test_case, weight + def compile_code(self): if self.compiled_user_answer and self.compiled_test_code: return None else: @@ -113,7 +103,7 @@ class JavaCodeEvaluator(BaseEvaluator): return self.compiled_user_answer, self.compiled_test_code - def check_code(self): # user_answer, file_paths, partial_grading, test_case, weight + def check_code(self): """ Function validates student code using instructor code as reference.The first argument ref_code_path, is the path to instructor code, it is assumed to have executable permission. |