<commit_before>import re
import os
from buildbot.plugins import worker
from buildbot.worker import AbstractLatentWorker
from buildbot.worker.ec2 import EC2LatentWorker
import boto3
import botocore
from botocore.client import ClientError


class MyEC2LatentWorker(EC2LatentWorker):
    def __init__(self, name, password, instance_type, ami=None,
                 valid_ami_owners=None, valid_ami_location_regex=None,
                 elastic_ip=None, identifier=None, secret_identifier=None,
                 aws_id_file_path=None, user_data=None, region=None,<commit_msg>Revert "Switch MyEC2LatentWorker to subclass ec2.EC2LatentWorker directly"<commit_after>import re
import os
from buildbot.plugins import worker
from buildbot.worker import AbstractLatentWorker
import boto3
import botocore
from botocore.client import ClientError


class MyEC2LatentWorker(worker.EC2LatentWorker):
    def __init__(self, name, password, instance_type, ami=None,
                 valid_ami_owners=None, valid_ami_location_regex=None,
                 elastic_ip=None, identifier=None, secret_identifier=None,
                 aws_id_file_path=None, user_data=None, region=None,
{'fraction_non_alphanumeric': 0.060240963855421686, 'fraction_numerical': 0.00946643717728055, 'mean_word_length': 4.673170731707317, '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': '1954830', 'n_tokens_mistral': 343, 'n_tokens_neox': 337, 'n_words': 81}