attilasimko commited on
Commit
febd197
·
1 Parent(s): 4e9393e

new logs for training validating and documentation

Browse files
evaluations/documentation.py CHANGED
@@ -47,8 +47,7 @@ def evaluate(verbose, llm, zip, readme):
47
  (len(re.findall("requirement", readme, re.IGNORECASE)) == 0)):
48
  log(verbose, "ERROR", "Readme file missing information about package dependencies")
49
  overall = "No"
50
-
51
- log(verbose, "ERROR", "Found no useful information in README file.")
52
  return overall
53
 
54
  def count_comment_lines(lines):
 
47
  (len(re.findall("requirement", readme, re.IGNORECASE)) == 0)):
48
  log(verbose, "ERROR", "Readme file missing information about package dependencies")
49
  overall = "No"
50
+
 
51
  return overall
52
 
53
  def count_comment_lines(lines):
evaluations/training.py CHANGED
@@ -31,5 +31,7 @@ def evaluate(verbose, llm, zip, readme):
31
  if (("train" in readme)):
32
  log(verbose, "LOG", "Found something about training in README file")
33
  overall = "Yes"
34
-
 
 
35
  return overall
 
31
  if (("train" in readme)):
32
  log(verbose, "LOG", "Found something about training in README file")
33
  overall = "Yes"
34
+
35
+ if (overall == "No"):
36
+ log(verbose, "ERROR", "Found no code for training the model.")
37
  return overall
evaluations/validating.py CHANGED
@@ -31,4 +31,6 @@ def evaluate(verbose, llm, zip, readme):
31
  log(verbose, "LOG", "Found information about evaluations in readme")
32
  overall = "Yes"
33
 
 
 
34
  return overall
 
31
  log(verbose, "LOG", "Found information about evaluations in readme")
32
  overall = "Yes"
33
 
34
+ if (overall == "No"):
35
+ log(verbose, "ERROR", "Found no code for evaluating the model.")
36
  return overall