<commit_before>package org.lodder.subtools.multisubdownloader.lib.control.subtitles.filters;

import java.util.ArrayList;
import java.util.List;

import org.lodder.subtools.sublibrary.control.ReleaseParser;
import org.lodder.subtools.sublibrary.logging.Logger;
import org.lodder.subtools.sublibrary.model.Release;
import org.lodder.subtools.sublibrary.model.Subtitle;
import org.lodder.subtools.sublibrary.model.SubtitleMatchType;

public class ReleasegroupFilter extends Filter {

  @Override
  public List<Subtitle> doFilter(Release release, List<Subtitle> Subtitles) {
    List<Subtitle> filteredList = new ArrayList<Subtitle>();

    for (Subtitle subtitle : Subtitles) {
      if (subtitle.getReleasegroup().toLowerCase().contains(release.getReleasegroup().toLowerCase())) {
        Logger.instance.debug("getSubtitlesFiltered: found KEYWORD based TEAM match: "
            + subtitle.getFilename());
        
        subtitle.setQuality(ReleaseParser.getQualityKeyword(subtitle.getFilename()));
        subtitle.setSubtitleMatchType(SubtitleMatchType.TEAM);
        
        filteredList.add(subtitle);
      }
    }

    return filteredList;
  }

}
<commit_msg>Convert ReleasegroupFilter from old logger to new LOGGER slf4j<commit_after>package org.lodder.subtools.multisubdownloader.lib.control.subtitles.filters;

import java.util.ArrayList;
import java.util.List;

import org.lodder.subtools.sublibrary.control.ReleaseParser;
import org.lodder.subtools.sublibrary.model.Release;
import org.lodder.subtools.sublibrary.model.Subtitle;
import org.lodder.subtools.sublibrary.model.SubtitleMatchType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ReleasegroupFilter extends Filter {

  private static final Logger LOGGER = LoggerFactory.getLogger(ReleasegroupFilter.class);

  @Override
  public List<Subtitle> doFilter(Release release, List<Subtitle> Subtitles) {
    List<Subtitle> filteredList = new ArrayList<Subtitle>();

    for (Subtitle subtitle : Subtitles) {
      if (subtitle.getReleasegroup().toLowerCase()
          .contains(release.getReleasegroup().toLowerCase())) {
        LOGGER.debug("getSubtitlesFiltered: found KEYWORD based TEAM match [{}] ",
            subtitle.getFilename());

        subtitle.setQuality(ReleaseParser.getQualityKeyword(subtitle.getFilename()));
        subtitle.setSubtitleMatchType(SubtitleMatchType.TEAM);

        filteredList.add(subtitle);
      }
    }

    return filteredList;
  }

}

{'fraction_non_alphanumeric': 0.10372771474878444, 'fraction_numerical': 0.0012155591572123178, 'mean_word_length': 4.5358744394618835, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '426073', 'n_tokens_mistral': 743, 'n_tokens_neox': 739, 'n_words': 117}