<commit_before>import imp
import platform
import sys

from ctypes import (cdll,
                    POINTER, pointer,
                    c_char_p,
                    c_size_t, c_double, c_int, c_uint64, c_uint32,
                    create_string_buffer)

#Linux
if 'Linux' in platform.platform():
	if platform.architecture()[0] == '64bit':
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_lin_64')[1])
	else:
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_lin_x86')[1])
#Windows
if 'Windows' in platform.platform():
	if platform.architecture()[0] == '64bit':
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_win_64')[1])
	else:
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_win_x86')[1])
#Mac

_scryptenc_buf = _scrypt.exp_scryptenc_buf
_scryptenc_buf.argtypes = [c_char_p,  # const uint_t  *inbuf
                           c_size_t,  # size_t         inbuflen
                           c_char_p,  # uint8_t       *outbuf
                           c_char_p,  # const uint8_t *passwd
                           c_size_t,  # size_t         passwdlen
                           c_size_t,  # size_t         maxmem
                           c_double,  # double         maxmemfrac
                           c_double,  # double         maxtime
                           ]
_scryptenc_buf.restype = c_int

_scryptdec_buf = _scrypt.exp_scryptdec_buf
_scryptdec_buf.argtypes = [c_char_p,           # const uint8_t *inbuf
                           c_size_t,           # size_t         inbuflen<commit_msg>updated scrypt module with details for mac<commit_after>import imp
import platform
import sys

from ctypes import (cdll,
                    POINTER, pointer,
                    c_char_p,
                    c_size_t, c_double, c_int, c_uint64, c_uint32,
                    create_string_buffer)

#Linux
if platform.system() == 'Linux':
	if platform.architecture()[0] == '64bit':
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_lin_64')[1])
	else:
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_lin_x86')[1])
#Windows
if platform.system() == 'Windows':
	if platform.architecture()[0] == '64bit':
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_win_64')[1])
	else:
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_win_x86')[1])
#Mac
if platform.system() == 'Darwin':
	if platform.architecture()[0] == '64bit':
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_mac_64')[1])
	else:
		_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt_mac_x86')[1])

_scryptenc_buf = _scrypt.exp_scryptenc_buf
_scryptenc_buf.argtypes = [c_char_p,  # const uint_t  *inbuf
                           c_size_t,  # size_t         inbuflen
                           c_char_p,  # uint8_t       *outbuf
                           c_char_p,  # const uint8_t *passwd
                           c_size_t,  # size_t         passwdlen
                           c_size_t,  # size_t         maxmem
                           c_double,  # double         maxmemfrac
                           c_double,  # double         maxtime
                           ]
_scryptenc_buf.restype = c_int

_scryptdec_buf = _scrypt.exp_scryptdec_buf
_scryptdec_buf.argtypes = [c_char_p,           # const uint8_t *inbuf
                           c_size_t,           # size_t         inbuflen
{'fraction_non_alphanumeric': 0.09363636363636364, 'fraction_numerical': 0.01787878787878788, 'mean_word_length': 1.926418439716312, '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': '4072578', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1124, 'n_words': 188}