<commit_before># Python RIBClient
PROJECT (PythonRIBClient)

IF (WIN32)
  SET (CMAKE_BUILD_TYPE "Release")
ENDIF (WIN32)

INCLUDE(FindPythonLibs)
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})

INCLUDE_DIRECTORIES ( . )
INCLUDE_DIRECTORIES ( ../utils )
INCLUDE_DIRECTORIES ( $ENV{CPPUNIT_ROOT}/include )
INCLUDE_DIRECTORIES ( $ENV{OPENEXR_ROOT}/include )
INCLUDE_DIRECTORIES ( $ENV{ILMBASE_ROOT}/include )
INCLUDE_DIRECTORIES ( $ENV{PYTHON_INCLUDE} )

LINK_DIRECTORIES ( $ENV{CPPUNIT_ROOT}/lib )
LINK_DIRECTORIES ( $ENV{OPENEXR_ROOT}/lib )
LINK_DIRECTORIES ( $ENV{ILMBASE_ROOT}/lib )

SET(CMAKE_SWIG_OUTDIR ${CMAKE_BINARY_DIR}/python)
SET_SOURCE_FILES_PROPERTIES( RIBClient.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES( RIBClient.i PROPERTIES CMAKE_SWIG_FLAGS "-includeall -o RIBClientPYTHON_wrap.cxx")

SWIG_ADD_MODULE ( ribclient python RIBClient.i ParameterList.cpp )
SWIG_LINK_LIBRARIES ( ribclient ${RIBCLIENT_LIBRARIES} utils ${PYTHON_LIBRARIES} )

IF (WIN32)
  SET_TARGET_PROPERTIES ( _ribclient PROPERTIES SUFFIX ".pyd")
ENDIF (WIN32)

INSTALL ( TARGETS _ribclient
  LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX})

INSTALL ( FILES ${CMAKE_BINARY_DIR}/python/ribclient.py
  DESTINATION ${CMAKE_INSTALL_PREFIX})

IF (WIN32)
  SET ( CPACK_GENERATOR "ZIP" )
ENDIF (WIN32)
INCLUDE (CPack)<commit_msg>Remove references to ILMBase and OpenEXR Added Darwin specific linker flag '-undefined dynamic_lookup'<commit_after># Python RIBClient
PROJECT (PythonRIBClient)

IF (WIN32)
  SET (CMAKE_BUILD_TYPE "Release")
ENDIF (WIN32)

INCLUDE(FindPythonLibs)
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})

INCLUDE_DIRECTORIES ( . )
INCLUDE_DIRECTORIES ( ../utils )
# INCLUDE_DIRECTORIES ( $ENV{CPPUNIT_ROOT}/include )
INCLUDE_DIRECTORIES ( $ENV{PYTHON_INCLUDE} )

# LINK_DIRECTORIES ( $ENV{CPPUNIT_ROOT}/lib )

SET(CMAKE_SWIG_OUTDIR ${CMAKE_BINARY_DIR}/python)
SET_SOURCE_FILES_PROPERTIES( RIBClient.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES( RIBClient.i PROPERTIES CMAKE_SWIG_FLAGS "-includeall -o RIBClientPYTHON_wrap.cxx")

SWIG_ADD_MODULE ( ribclient python RIBClient.i ParameterList.cpp )
SWIG_LINK_LIBRARIES ( ribclient ${RIBCLIENT_LIBRARIES} utils ${PYTHON_LIBRARIES} )

IF (WIN32)
  SET_TARGET_PROPERTIES ( _ribclient PROPERTIES SUFFIX ".pyd")
ENDIF (WIN32)

IF (APPLE)
  SET_TARGET_PROPERTIES ( _ribclient PROPERTIES
    LINK_FLAGS "-undefined dynamic_lookup")
ENDIF (APPLE)

INSTALL ( TARGETS _ribclient
  LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX})

INSTALL ( FILES ${CMAKE_BINARY_DIR}/python/ribclient.py
  DESTINATION ${CMAKE_INSTALL_PREFIX})

IF (WIN32)
  SET ( CPACK_GENERATOR "ZIP" )
ENDIF (WIN32)
INCLUDE (CPack)
{'fraction_non_alphanumeric': 0.09783845278725825, 'fraction_numerical': 0.009101251422070534, 'mean_word_length': 7.218068535825545, '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': '2719633', 'n_tokens_mistral': 1089, 'n_tokens_neox': 988, 'n_words': 181}