<commit_before>"""
OS/device specific interfaces
"""
import sys

import six


IN_PYTHONISTA = sys.executable.find('Pythonista') >= 0



# ========================== PYTHONISTA =======================
if IN_PYTHONISTA:
    
    # ------------- clipboard --------------
    import clipboard
    
    def clipboard_get():
        """
        Get the clipboard content.
        :return: clipboard content
        :rtype: six.text_type
        """
        return clipboard.get()
    
    def clipboard_set(s):
        """
        Set the clipboard content.
        :param s: string to set
        :type s: six.text_type
        """
        # TODO: non-unicode support
        assert isinstance(s, six.text_type)
        clipboard.set(s)
    
    # -------------- pip ----------------------
    
    if six.PY3:
        SITE_PACKAGES_DIR_NAME = "site-packages-3"
    else:
        SITE_PACKAGES_DIR_NAME = "site-packages-2"
    SITE_PACKAGES_FOLDER_6 = "site-packages"<commit_msg>bugfix<commit_after>"""
OS/device specific interfaces
"""
import sys

import six


IN_PYTHONISTA = sys.executable.find('Pythonista') >= 0



# ========================== PYTHONISTA =======================
if IN_PYTHONISTA:
    
    # ------------- clipboard --------------
    import clipboard
    
    def clipboard_get():
        """
        Get the clipboard content.
        :return: clipboard content
        :rtype: six.text_type
        """
        return clipboard.get()
    
    def clipboard_set(s):
        """
        Set the clipboard content.
        :param s: string to set
        :type s: six.text_type
        """
        # TODO: non-unicode support
        assert isinstance(s, six.text_type)
        clipboard.set(s)
    
    # -------------- pip ----------------------
    
    if six.PY3:
        SITE_PACKAGES_DIR_NAME = "site-packages-3"
    else:
        SITE_PACKAGES_DIR_NAME = "site-packages-2"
    SITE_PACKAGES_DIR_NAME_6 = "site-packages"
{'fraction_non_alphanumeric': 0.2007205352547607, 'fraction_numerical': 0.0051466803911477095, 'mean_word_length': 1.7652916073968705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5850225', 'n_tokens_mistral': 610, 'n_tokens_neox': 581, 'n_words': 121}