<commit_before>import clusto

def make_all_ec2_objects(aws_access_key_id=None, aws_secret_access_key=None):
    ec2man = clusto.get_entities(clusto_types=[clusto.drivers.EC2VMManager])

    if not ec2man:
        if not aws_access_key_id and not aws_secret_access_key:
            raise Exception("you must specify both an aws_access_key_id and an "
                            "aws_secret_access_key if you don't already have "
                            "an EC2VMManager")
        
        ec2man = clusto.drivers.EC2VMManger('ec2vmman',
                                            aws_access_key_id=aws_access_key_id,
                                            aws_secret_access_key=aws_secret_access_key)

    else:
        ec2man = ec2man.pop()

    conn = ec2man._ec2_connection()<commit_msg>s/Manger/Manager/ I got you, Ron. Finally.<commit_after>import clusto

def make_all_ec2_objects(aws_access_key_id=None, aws_secret_access_key=None):
    ec2man = clusto.get_entities(clusto_types=[clusto.drivers.EC2VMManager])

    if not ec2man:
        if not aws_access_key_id and not aws_secret_access_key:
            raise Exception("you must specify both an aws_access_key_id and an "
                            "aws_secret_access_key if you don't already have "
                            "an EC2VMManager")
        
        ec2man = clusto.drivers.EC2VMManager('ec2vmman',
                                            aws_access_key_id=aws_access_key_id,
                                            aws_secret_access_key=aws_secret_access_key)

    else:
        ec2man = ec2man.pop()

    conn = ec2man._ec2_connection()
{'fraction_non_alphanumeric': 0.0638036809815951, 'fraction_numerical': 0.014723926380368098, 'mean_word_length': 2.037243947858473, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4089339', 'n_tokens_mistral': 509, 'n_tokens_neox': 504, 'n_words': 88}