<commit_before>module Overseer
  module AwsUtils

    def self.verify_security_groups(groups)
      Overseer::Log.info("Verifying security groups: #{groups.join(",")}")

      security_groups_collection = AWS::EC2.new().security_groups
      filtered_groups = Array.new
      security_groups_collection.filter('group-name', *groups).each do |g|
        filtered_groups << g.name
      end

      security_groups.each do |g|
        unless filtered_groups.include?(g)
          Overseer::Log.debug("Creating security group #{g}")
          security_groups_collection.create g
        end
      end
    end<commit_msg>Fixes the verify_security_groups method, as it was totally broken.<commit_after>module Overseer
  module AwsUtils

    def self.verify_security_groups(groups)
      Overseer::Log.info("Verifying security groups: #{groups.join(",")}")

      security_groups_collection = AWS::EC2.new().security_groups
      filtered_groups = Array.new
      security_groups_collection.filter('group-name', *groups).each do |g|
        filtered_groups << g.name
      end

      groups.each do |g|
        unless filtered_groups.include?(g)
          Overseer::Log.debug("Creating security group #{g}")
          security_groups_collection.create g
        end
      end
    end
{'fraction_non_alphanumeric': 0.10188087774294671, 'fraction_numerical': 0.001567398119122257, 'mean_word_length': 3.1193548387096772, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '781897', 'n_tokens_mistral': 363, 'n_tokens_neox': 360, 'n_words': 77}