<commit_before>require 'aws-sdk'

module AwsHelper
  IP_TYPES = %w(public_ip public_dns_name private_ip_address private_dns_name)

  def get_instances(aws_region, aws_access_key_id, aws_secret_access_key, aws_autoscaling_group_name, aws_ip_type)
    aws_credentials = Aws::Credentials.new(aws_access_key_id, aws_secret_access_key)
    retrieve_ec2_instances(aws_region, aws_autoscaling_group_name, aws_credentials, aws_ip_type)
  end

  private

  def retrieve_ec2_instances(aws_region, autoscaling_group_name, aws_credentials, aws_ip_type)
    instances = fetch_autoscaling_group_instances(aws_region, autoscaling_group_name, aws_credentials)<commit_msg>Update IP_TYPES<commit_after>require 'aws-sdk'

module AwsHelper
  IP_TYPES = %w(public_ip_address public_dns_name private_ip_address private_dns_name)

  def get_instances(aws_region, aws_access_key_id, aws_secret_access_key, aws_autoscaling_group_name, aws_ip_type)
    aws_credentials = Aws::Credentials.new(aws_access_key_id, aws_secret_access_key)
    retrieve_ec2_instances(aws_region, aws_autoscaling_group_name, aws_credentials, aws_ip_type)
  end

  private

  def retrieve_ec2_instances(aws_region, autoscaling_group_name, aws_credentials, aws_ip_type)
    instances = fetch_autoscaling_group_instances(aws_region, autoscaling_group_name, aws_credentials)
{'fraction_non_alphanumeric': 0.05757575757575758, 'fraction_numerical': 0.0030303030303030303, 'mean_word_length': 9.3203125, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6522976', 'n_tokens_mistral': 487, 'n_tokens_neox': 500, 'n_words': 66}