<commit_before>import sys

from .platform_base import acl_get, acl_set, SyncFile, sync_dir, set_flags, get_flags, swidth, API_VERSION

if sys.platform.startswith('linux'):  # pragma: linux only
    from .platform_linux import acl_get, acl_set, SyncFile, set_flags, get_flags, swidth, API_VERSION
elif sys.platform.startswith('freebsd'):  # pragma: freebsd only
    from .platform_freebsd import acl_get, acl_set, swidth, API_VERSION
elif sys.platform == 'darwin':  # pragma: darwin only
    from .platform_darwin import acl_get, acl_set, swidth, API_VERSION
<commit_msg>platform: rearrange imports<commit_after>import sys

"""
Platform-specific APIs.

Public APIs are documented in platform_base.
"""

from .platform_base import acl_get, acl_set
from .platform_base import set_flags, get_flags
from .platform_base import SyncFile, sync_dir, fdatasync
from .platform_base import swidth, API_VERSION

if sys.platform.startswith('linux'):  # pragma: linux only
    from .platform_linux import acl_get, acl_set
    from .platform_linux import set_flags, get_flags
    from .platform_linux import SyncFile
    from .platform_linux import swidth, API_VERSION
elif sys.platform.startswith('freebsd'):  # pragma: freebsd only
    from .platform_freebsd import acl_get, acl_set
    from .platform_freebsd import swidth, API_VERSION
elif sys.platform == 'darwin':  # pragma: darwin only
    from .platform_darwin import acl_get, acl_set
    from .platform_darwin import swidth, API_VERSION

{'fraction_non_alphanumeric': 0.0777027027027027, 'fraction_numerical': 0.0, 'mean_word_length': 5.248945147679325, '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': '4585526', 'n_tokens_mistral': 490, 'n_tokens_neox': 477, 'n_words': 141}