<commit_before>import os
import sys
import platform

# Various helpers for the build scripts

def get_lib_dir():
    if sys.platform.startswith("win"):
        if platform.architecture()[0] == '32bit':
            # 32 bit
            return ['prebuilt-x86/lib']
        else:
            # 64 bit
            return ['prebuilt-x64/lib']
    return ['/usr/lib']


def get_inc_dir():
    if sys.platform.startswith("win"):
        if platform.architecture()[0] == '32bit':
            # 32 bit
            return ['prebuilt-x86/include', 'prebuilt-x86/include/SDL']
        else:
            return ['prebuilt-x64/include', 'prebuilt-x64/include/SDL']
    return ['/usr/include', '/usr/include/SDL', '/usr/local/include/SDL']

def get_c_lib(name):
    """Return the contents of a C library."""
    filename = os.path.join(
        os.path.dirname(__file__), '..', 'cffi_builders', 'lib', name)
    with open(filename) as lib:
        return lib.read()


__all__ = [get_inc_dir, get_lib_dir, get_c_lib]<commit_msg>Fix spacing. Add docstrings to helpers<commit_after>import os
import sys
import platform

# Various helpers for the build scripts

def get_lib_dir():
    """Return the library path for SDL and other libraries.

       Assumes we're using the pygame prebuilt zipfile on windows"""
    if sys.platform.startswith("win"):
        if platform.architecture()[0] == '32bit':
            # 32 bit
            return ['prebuilt-x86/lib']
        else:
            # 64 bit
            return ['prebuilt-x64/lib']
    return ['/usr/lib','/usr/local/lib']


def get_inc_dir():
    """Return the include directories for the SDL and other libraries.

       Assumes we're using the pygame prebuilt zipfile on windows"""
    if sys.platform.startswith("win"):
        if platform.architecture()[0] == '32bit':
            # 32 bit
            return ['prebuilt-x86/include', 'prebuilt-x86/include/SDL']
        else:
            return ['prebuilt-x64/include', 'prebuilt-x64/include/SDL']
    return ['/usr/include', '/usr/include/SDL', '/usr/local/include/SDL']


def get_c_lib(name):
    """Return the contents of a C library."""
    filename = os.path.join(
        os.path.dirname(__file__), '..', 'cffi_builders', 'lib', name)
    with open(filename) as lib:
        return lib.read()


__all__ = [get_inc_dir, get_lib_dir, get_c_lib]
{'fraction_non_alphanumeric': 0.13986313088109495, 'fraction_numerical': 0.020530367835757058, 'mean_word_length': 2.5874233128834354, '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': '7107087', 'n_tokens_mistral': 787, 'n_tokens_neox': 735, 'n_words': 191}