<commit_before>from lib import ec2


class BaseAction(object):

    def __init__(self, config):
        super(BaseAction, self).__init__()
        region = self.config['region']
        access_key_id = self.config['access_key_id']
        secret_access_key = self.config['secret_access_key']
        self.ec2 = ec2.EC2(region, access_key_id, secret_access_key)<commit_msg>Pass entire config to ec2.py<commit_after>from lib import ec2
from st2actions.runners.pythonrunner import Action


class BaseAction(Action):

    def __init__(self, config):
        super(BaseAction, self).__init__(config)
        self.ec2 = ec2.EC2(config)
{'fraction_non_alphanumeric': 0.10333863275039745, 'fraction_numerical': 0.01589825119236884, 'mean_word_length': 3.921875, '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': '3605130', 'n_tokens_mistral': 202, 'n_tokens_neox': 196, 'n_words': 41}