diff options
author | ankitjavalkar | 2016-12-20 12:42:44 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-20 15:31:22 +0530 |
commit | bf5b4e7607bae0b81ceeb99e8bf5d750433e92e8 (patch) | |
tree | c0d4a002bba428269c2f7ba62eb68d24b8cbec5f /yaksh/language_registry.py | |
parent | 798d36aa12e22928e884668ae5c80a25d48393ea (diff) | |
download | online_test-bf5b4e7607bae0b81ceeb99e8bf5d750433e92e8.tar.gz online_test-bf5b4e7607bae0b81ceeb99e8bf5d750433e92e8.tar.bz2 online_test-bf5b4e7607bae0b81ceeb99e8bf5d750433e92e8.zip |
Fix errors and rename resources
- code_evaluator module and class renamed to grader
- Test cases fixed
- Comments removed
- weight variable renamed to mark
Diffstat (limited to 'yaksh/language_registry.py')
-rw-r--r-- | yaksh/language_registry.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/yaksh/language_registry.py b/yaksh/language_registry.py index 8d3aad2..994e9ed 100644 --- a/yaksh/language_registry.py +++ b/yaksh/language_registry.py @@ -14,15 +14,10 @@ def get_registry(): registry = _LanguageRegistry() return registry -# def unpack_json_to_python_obj(json_data): -# data = json.loads(json_data) -# return data - -def create_evaluator_instance(metadata, test_case): #create_evaluator_instance +def create_evaluator_instance(metadata, test_case): """Create instance of relevant EvaluateCode class based on language""" registry = get_registry() cls = registry.get_class(metadata.get('language'), test_case.get('test_case_type')) - # instance = cls(in_dir) instance = cls(metadata, test_case) return instance |