<commit_before>import sys

__all__ = ['index', 'avi', 'mpeg4', 'riff']

class VideoIndex():
    def __init__(self, filename):
        self.filename = filename
        self.index = None

        # Just do this for now
        import avi
        self.index = avi.AVIFile(filename)

    def __getattr__(self, index):
        return self.index.__getattr__(index)

def index(filename):
    return VideoIndex(filename)
<commit_msg>Fix getattr and iter on VideoIndex. I'm bad at Python.<commit_after>import sys

__all__ = ['index', 'avi', 'mpeg4', 'riff']

class VideoIndex():
    def __init__(self, filename):
        self.filename = filename
        self.index = None

        # Just do this for now
        import avi
        self.index = avi.AVIFile(filename)

    def __getattr__(self, index):
        return getattr(self.index, index)

    def __iter__(self):
        return iter(self.index)

def index(filename):
    return VideoIndex(filename)

{'fraction_non_alphanumeric': 0.10899470899470899, 'fraction_numerical': 0.0021164021164021165, 'mean_word_length': 2.784, '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': '1024698', 'n_tokens_mistral': 293, 'n_tokens_neox': 286, 'n_words': 82}