<commit_before>import path
import subprocess
import sys


def ignore(p):
    parts = p.splitall()
    if any(x.startswith(".") for x in parts):
        return True
    if 'test' in parts:
        return True
    return False


def collect_sources():
    top_path = path.Path(".")
    for py_path in top_path.walkfiles("*.py"):
        py_path = py_path.normpath()  # get rid of the leading '.'
        if not ignore(py_path):
            yield py_path


def run_pyflakes():
    cmd = ["pyflakes"]<commit_msg>pyflakes: don't bother running on __init__.py files<commit_after>import path
import subprocess
import sys


def ignore(p):
    parts = p.splitall()
    if any(x.startswith(".") for x in parts):
        return True
    if 'test' in parts:
        return True
    if parts[-1] == "__init__.py":
        return True
    return False


def collect_sources():
    top_path = path.Path(".")
    for py_path in top_path.walkfiles("*.py"):
        py_path = py_path.normpath()  # get rid of the leading '.'
        if not ignore(py_path):
            yield py_path


def run_pyflakes():
    cmd = ["pyflakes"]
{'fraction_non_alphanumeric': 0.11722272317403065, 'fraction_numerical': 0.0009017132551848512, 'mean_word_length': 2.535031847133758, 'pattern_counts': {'":': 1, '<': 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': '1502117', 'n_tokens_mistral': 362, 'n_tokens_neox': 357, 'n_words': 110}