<commit_before>#=============================================================================
# CHRONO::ENGINE   CMake configuration file for MATLAB unit
# 
# Cannot be used stand-alone (it's loaded by CMake config. file in parent dir.)
#=============================================================================

SET(CH_MATLABSDK         ""    	CACHE PATH   "Where is your Matlab SDK installed? Ex. C:/Programs/MATLAB/R2006b/extern. You must set this path to compile demos with Matlab interface.")
SET(ENABLE_UNIT_MATLAB   FALSE CACHE BOOL   "Turn this ON to generate the Chrono::Engine demos with Matlab.")


IF (ENABLE_UNIT_MATLAB)
    MARK_AS_ADVANCED(CLEAR CH_MATLABSDK)	
    SET (CH_MATLABINC "${CH_MATLABSDK}/include")

    IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
        IF ("${CH_COMPILER}" STREQUAL "COMPILER_MSVC")
            SET (CH_MATLABLIB 
                    "${CH_MATLABSDK}/lib/win32/microsoft/libeng.lib" 
                    "${CH_MATLABSDK}/lib/win32/microsoft/libmx.lib" 
                    "${CH_MATLABSDK}/lib/win32/microsoft/libmat.lib" )
        ELSEIF ("${CH_COMPILER}" STREQUAL "COMPILER_MSVC_X64")
            SET (CH_MATLABLIB 
                    "${CH_MATLABSDK}/lib/win64/microsoft/libeng.lib" 
                    "${CH_MATLABSDK}/lib/win64/microsoft/libmx.lib" 
                    "${CH_MATLABSDK}/lib/win64/microsoft/libmat.lib" )
        ENDIF()
    ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
        SET (CH_MATLABLIB 
                "${CH_MATLABSDK}/../bin/glnxa64/libeng.so" 
                "${CH_MATLABSDK}/../bin/glnxa64/libmx.so" 
                "${CH_MATLABSDK}/../bin/glnxa64/libmat.so")
ENDIF()

SET (CH_MATLABINC    "${CH_MATLABINC}"    PARENT_SCOPE )
SET (CH_MATLABLIB    "${CH_MATLABLIB}"    PARENT_SCOPE )
	
ELSE()
	MARK_AS_ADVANCED(FORCE CH_MATLABSDK)
ENDIF()<commit_msg>unit_MATLAB now compiles on osx, tested using MATLAB_R2012b on osx 10.9.2 using gcc 4.7<commit_after>#=============================================================================
# CHRONO::ENGINE   CMake configuration file for MATLAB unit
# 
# Cannot be used stand-alone (it's loaded by CMake config. file in parent dir.)
#=============================================================================

SET(CH_MATLABSDK         ""    	CACHE PATH   "Where is your Matlab SDK installed? Ex. C:/Programs/MATLAB/R2006b/extern. You must set this path to compile demos with Matlab interface.")
SET(ENABLE_UNIT_MATLAB   FALSE CACHE BOOL   "Turn this ON to generate the Chrono::Engine demos with Matlab.")


IF (ENABLE_UNIT_MATLAB)
    MARK_AS_ADVANCED(CLEAR CH_MATLABSDK)	
    SET (CH_MATLABINC "${CH_MATLABSDK}/include")

    IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
        IF ("${CH_COMPILER}" STREQUAL "COMPILER_MSVC")
            SET (CH_MATLABLIB 
                    "${CH_MATLABSDK}/lib/win32/microsoft/libeng.lib" 
                    "${CH_MATLABSDK}/lib/win32/microsoft/libmx.lib" 
                    "${CH_MATLABSDK}/lib/win32/microsoft/libmat.lib" )
        ELSEIF ("${CH_COMPILER}" STREQUAL "COMPILER_MSVC_X64")
            SET (CH_MATLABLIB 
                    "${CH_MATLABSDK}/lib/win64/microsoft/libeng.lib" 
                    "${CH_MATLABSDK}/lib/win64/microsoft/libmx.lib" 
                    "${CH_MATLABSDK}/lib/win64/microsoft/libmat.lib" )
        ENDIF()
    ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
        SET (CH_MATLABLIB 
                "${CH_MATLABSDK}/../bin/glnxa64/libeng.so" 
                "${CH_MATLABSDK}/../bin/glnxa64/libmx.so" 
                "${CH_MATLABSDK}/../bin/glnxa64/libmat.so")
                
    ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
        SET (CH_MATLABLIB 
                "${CH_MATLABSDK}/../bin/maci64/libeng.dylib" 
                "${CH_MATLABSDK}/../bin/maci64/libmx.dylib" 
                "${CH_MATLABSDK}/../bin/maci64/libmat.dylib")
ENDIF()

SET (CH_MATLABINC    "${CH_MATLABINC}"    PARENT_SCOPE )
SET (CH_MATLABLIB    "${CH_MATLABLIB}"    PARENT_SCOPE )
	
ELSE()
	MARK_AS_ADVANCED(FORCE CH_MATLABSDK)
ENDIF()
{'fraction_non_alphanumeric': 0.19195430841817732, 'fraction_numerical': 0.015892724112242365, 'mean_word_length': 2.7857142857142856, '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': '5425481', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1327, 'n_words': 236}