attilasimko commited on
Commit
599cf9b
·
1 Parent(s): 8ff8bf9

documentation quick fix

Browse files
Files changed (1) hide show
  1. evaluations/documentation.py +1 -1
evaluations/documentation.py CHANGED
@@ -82,7 +82,7 @@ def count_comment_lines(lines):
82
 
83
  def get_code_to_comment_ratio(zip):
84
  python_files = [file_path for file_path in zip.namelist() if (file_path.endswith(".py") | file_path.endswith(".ipynb"))]
85
- code_line_count = 0
86
  comment_line_count = 0
87
  for file in python_files:
88
  file_lines = zip.open(file).read().decode("utf-8").split('\n')
 
82
 
83
  def get_code_to_comment_ratio(zip):
84
  python_files = [file_path for file_path in zip.namelist() if (file_path.endswith(".py") | file_path.endswith(".ipynb"))]
85
+ code_line_count = 1
86
  comment_line_count = 0
87
  for file in python_files:
88
  file_lines = zip.open(file).read().decode("utf-8").split('\n')