<commit_before>set(LUA_OPENSSL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/lua-openssl)

include_directories(
  ${LUA_OPENSSL_DIR}/deps
  ${LUA_OPENSSL_DIR}/src
)

find_package(Threads)
if (CMAKE_THREAD_LIBS_INIT)
    add_definitions(-DPTHREADS)
endif (CMAKE_THREAD_LIBS_INIT)

add_library(lua_openssl
  ${LUA_OPENSSL_DIR}/src/asn1.c                       
  ${LUA_OPENSSL_DIR}/src/auxiliar.c                   
  ${LUA_OPENSSL_DIR}/src/bio.c                        
  ${LUA_OPENSSL_DIR}/src/callback.c                     
  ${LUA_OPENSSL_DIR}/src/cipher.c                     
  ${LUA_OPENSSL_DIR}/src/cms.c                        
  ${LUA_OPENSSL_DIR}/src/compat.c                     
  ${LUA_OPENSSL_DIR}/src/crl.c                        
  ${LUA_OPENSSL_DIR}/src/csr.c                        
  ${LUA_OPENSSL_DIR}/src/dh.c                         
  ${LUA_OPENSSL_DIR}/src/digest.c                     
  ${LUA_OPENSSL_DIR}/src/dsa.c                        
  ${LUA_OPENSSL_DIR}/src/ec.c                         
  ${LUA_OPENSSL_DIR}/src/engine.c                     
  ${LUA_OPENSSL_DIR}/src/hmac.c                       
  ${LUA_OPENSSL_DIR}/src/lbn.c                        
  ${LUA_OPENSSL_DIR}/src/lhash.c                      
  ${LUA_OPENSSL_DIR}/src/misc.c                       
  ${LUA_OPENSSL_DIR}/src/ocsp.c                       
  ${LUA_OPENSSL_DIR}/src/oids.txt                     
  ${LUA_OPENSSL_DIR}/src/openssl.c                    
  ${LUA_OPENSSL_DIR}/src/ots.c                        
  ${LUA_OPENSSL_DIR}/src/pkcs12.c                     
  ${LUA_OPENSSL_DIR}/src/pkcs7.c                      
  ${LUA_OPENSSL_DIR}/src/pkey.c                       
  ${LUA_OPENSSL_DIR}/src/private.h                    
  ${LUA_OPENSSL_DIR}/src/rsa.c                        
  ${LUA_OPENSSL_DIR}/src/sk.h                         
  ${LUA_OPENSSL_DIR}/src/ssl.c                        
  ${LUA_OPENSSL_DIR}/src/th-lock.c                    
  ${LUA_OPENSSL_DIR}/src/util.c                       
  ${LUA_OPENSSL_DIR}/src/x509.c                       
  ${LUA_OPENSSL_DIR}/src/xattrs.c                     
  ${LUA_OPENSSL_DIR}/src/xexts.c                      
  ${LUA_OPENSSL_DIR}/src/xname.c                      
  ${LUA_OPENSSL_DIR}/src/xalgor.c                      
  ${LUA_OPENSSL_DIR}/src/xstore.c                     
)

set_target_properties(lua_openssl PROPERTIES
    COMPILE_FLAGS "-DLUA_LIB -DCOMPAT52_IS_LUAJIT")<commit_msg>Fix OSX build (closes #142)<commit_after>set(LUA_OPENSSL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/lua-openssl)

include_directories(
  ${LUA_OPENSSL_DIR}/deps
  ${LUA_OPENSSL_DIR}/src
)

if(WIN32)
else()
  find_package(Threads)
  add_definitions(-DPTHREADS)
endif()

add_library(lua_openssl
  ${LUA_OPENSSL_DIR}/src/asn1.c
  ${LUA_OPENSSL_DIR}/src/auxiliar.c
  ${LUA_OPENSSL_DIR}/src/bio.c
  ${LUA_OPENSSL_DIR}/src/callback.c
  ${LUA_OPENSSL_DIR}/src/cipher.c
  ${LUA_OPENSSL_DIR}/src/cms.c
  ${LUA_OPENSSL_DIR}/src/compat.c
  ${LUA_OPENSSL_DIR}/src/crl.c
  ${LUA_OPENSSL_DIR}/src/csr.c
  ${LUA_OPENSSL_DIR}/src/dh.c
  ${LUA_OPENSSL_DIR}/src/digest.c
  ${LUA_OPENSSL_DIR}/src/dsa.c
  ${LUA_OPENSSL_DIR}/src/ec.c
  ${LUA_OPENSSL_DIR}/src/engine.c
  ${LUA_OPENSSL_DIR}/src/hmac.c
  ${LUA_OPENSSL_DIR}/src/lbn.c
  ${LUA_OPENSSL_DIR}/src/lhash.c
  ${LUA_OPENSSL_DIR}/src/misc.c
  ${LUA_OPENSSL_DIR}/src/ocsp.c
  ${LUA_OPENSSL_DIR}/src/oids.txt
  ${LUA_OPENSSL_DIR}/src/openssl.c
  ${LUA_OPENSSL_DIR}/src/ots.c
  ${LUA_OPENSSL_DIR}/src/pkcs12.c
  ${LUA_OPENSSL_DIR}/src/pkcs7.c
  ${LUA_OPENSSL_DIR}/src/pkey.c
  ${LUA_OPENSSL_DIR}/src/private.h
  ${LUA_OPENSSL_DIR}/src/rsa.c
  ${LUA_OPENSSL_DIR}/src/sk.h
  ${LUA_OPENSSL_DIR}/src/ssl.c
  ${LUA_OPENSSL_DIR}/src/th-lock.c
  ${LUA_OPENSSL_DIR}/src/util.c
  ${LUA_OPENSSL_DIR}/src/x509.c
  ${LUA_OPENSSL_DIR}/src/xattrs.c
  ${LUA_OPENSSL_DIR}/src/xexts.c
  ${LUA_OPENSSL_DIR}/src/xname.c
  ${LUA_OPENSSL_DIR}/src/xalgor.c
  ${LUA_OPENSSL_DIR}/src/xstore.c
)

set_target_properties(lua_openssl PROPERTIES
    COMPILE_FLAGS "-DLUA_LIB -DCOMPAT52_IS_LUAJIT")
{'fraction_non_alphanumeric': 0.13051015354135712, 'fraction_numerical': 0.005695889053987122, 'mean_word_length': 1.9611436950146628, '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': '1268782', 'n_tokens_mistral': 1664, 'n_tokens_neox': 1596, 'n_words': 110}