From 41a7cde0eae00b1734584dbedcc296fde9cb1dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADnez?= <26169771+miguelusque@users.noreply.github.com> Date: Tue, 23 Jul 2024 19:06:26 +0200 Subject: [PATCH] Fix #161. Remove duplicated assigments in GeneralCommentToCodeFilter (#162) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While reading about code filters, I have noticed a couple of duplicated assignments in the code. Signed-off-by: Miguel Martínez <26169771+miguelusque@users.noreply.github.com> --- nemo_curator/filters/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nemo_curator/filters/code.py b/nemo_curator/filters/code.py index 56e4ea69..bc1f876b 100644 --- a/nemo_curator/filters/code.py +++ b/nemo_curator/filters/code.py @@ -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"