Skip to content

Commit

Permalink
Fix NVIDIA#161. Remove duplicated assigments in GeneralCommentToCodeF…
Browse files Browse the repository at this point in the history
…ilter (NVIDIA#162)

While reading about code filters, I have noticed a couple of duplicated assignments in the code.

Signed-off-by: Miguel Martínez <[email protected]>
  • Loading branch information
miguelusque authored Jul 23, 2024
1 parent 2681d48 commit 41a7cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nemo_curator/filters/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def __init__(
language: Mime string of language
"""
self._lang = language
self._min_threshold = min_comment_to_code_ratio = min_comment_to_code_ratio
self._max_threshold = max_comment_to_code_ratio = max_comment_to_code_ratio
self._min_threshold = min_comment_to_code_ratio
self._max_threshold = max_comment_to_code_ratio

self._name = "comment_ratio"

Expand Down

0 comments on commit 41a7cde

Please sign in to comment.