<commit_before>#find_package(OIS)
#if(NOT ZLIB_FOUND)
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/ois_v1-3.tar.gz")
message(STATUS "Please wait while the OIS source package is downloaded...")
set(ENV{http_proxy} "${HTTP_PROXY}")
file(DOWNLOAD "http://superb-dca2.dl.sourceforge.net/project/wgois/Source%20Release/1.3/ois_v1-3.tar.gz" "${CMAKE_SOURCE_DIR}/ois_v1-3.tar.gz" STATUS zlib_dl_status LOG zlib_dl_log SHOW_PROGRESS)
if(NOT zlib_dl_status MATCHES "0;\"no error\"")
message("Download failed, did you set a proxy? ${zlib_dl_status}")
endif(NOT zlib_dl_status MATCHES "0;\"no error\"")
endif(NOT EXISTS "${CMAKE_SOURCE_DIR}/ois_v1-3.tar.gz")

if(NOT IS_DIRECTORY "${CMAKE_SOURCE_DIR}/ois-v1-3")
message(STATUS "Extracting ois_v1-3.tar.gz...")
execute_process(COMMAND cmake -E tar xzvf ois_v1-3.tar.gz WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ERROR_VARIABLE extract_result)
message(STATUS "Extract Result ${extract_result}")
endif(NOT IS_DIRECTORY "${CMAKE_SOURCE_DIR}/ois-v1-3")

set(OIS_SOURCES
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISInputManager.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISObject.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISEffect.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISJoyStick.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISKeyboard.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISForceFeedback.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISException.cpp
)
if(WIN32)
set(OIS_PLATFORM_SOURCES
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32InputManager.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32KeyBoard.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32ForceFeedback.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32JoyStick.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32Mouse.cpp
)
else(WIN32)
set(OIS_PLATFORM_SOURCES
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/EventHelpers.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxInputManager.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxJoyStickEvents.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxForceFeedback.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxKeyboard.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxMouse.cpp
)
endif(WIN32)

set(ZZip_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/ois-v1-3/includes")
set(ZZip_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/ois-v1-3/includes")
set(ZZip_HOME "${CMAKE_SOURCE_DIR}/ois-v1-3")
set(ZZip_PREFIX_PATH "${CMAKE_SOURCE_DIR}/ois-v1-3")
set(ZZip_LIBRARIES ois)
set(ZZip_LIBRARY ois)
set(ZZip_LIBRARY_FWK ois)
set(ZZip_LIBRARY_REL ois)
set(ZZip_LIBRARY_DBG ois)
include_directories("${CMAKE_SOURCE_DIR}/ois-v1-3/includes")<commit_msg>Ogre3d Builds for Windows, with samples.<commit_after>#find_package(OIS)
#if(NOT ZLIB_FOUND)
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/ois_v1-3.tar.gz")
message(STATUS "Please wait while the OIS source package is downloaded...")
set(ENV{http_proxy} "${HTTP_PROXY}")
file(DOWNLOAD "http://superb-dca2.dl.sourceforge.net/project/wgois/Source%20Release/1.3/ois_v1-3.tar.gz" "${CMAKE_SOURCE_DIR}/ois_v1-3.tar.gz" STATUS zlib_dl_status LOG zlib_dl_log SHOW_PROGRESS)
if(NOT zlib_dl_status MATCHES "0;\"no error\"")
message("Download failed, did you set a proxy? ${zlib_dl_status}")
endif(NOT zlib_dl_status MATCHES "0;\"no error\"")
endif(NOT EXISTS "${CMAKE_SOURCE_DIR}/ois_v1-3.tar.gz")

if(NOT IS_DIRECTORY "${CMAKE_SOURCE_DIR}/ois-v1-3")
message(STATUS "Extracting ois_v1-3.tar.gz...")
execute_process(COMMAND cmake -E tar xzvf ois_v1-3.tar.gz WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ERROR_VARIABLE extract_result)
message(STATUS "Extract Result ${extract_result}")
endif(NOT IS_DIRECTORY "${CMAKE_SOURCE_DIR}/ois-v1-3")

set(OIS_SOURCES
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISInputManager.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISObject.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISEffect.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISJoyStick.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISKeyboard.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISForceFeedback.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/OISException.cpp
)
if(WIN32)
set(OIS_PLATFORM_SOURCES
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32InputManager.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32KeyBoard.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32ForceFeedback.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32JoyStick.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/win32/Win32Mouse.cpp
)
else(WIN32)
set(OIS_PLATFORM_SOURCES
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/EventHelpers.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxInputManager.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxJoyStickEvents.cpp
    ${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxForceFeedback.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxKeyboard.cpp
	${CMAKE_SOURCE_DIR}/ois-v1-3/src/linux/LinuxMouse.cpp
)
endif(WIN32)

set(OIS_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/ois-v1-3/includes")
set(OIS_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/ois-v1-3/includes")
set(OIS_LIBRARIES ois dxguid dinput8 xinput)
set(OIS_LIBRARY ois)

include_directories("${CMAKE_SOURCE_DIR}/ois-v1-3/includes")
{'fraction_non_alphanumeric': 0.1564336372847011, 'fraction_numerical': 0.0380952380952381, 'mean_word_length': 6.2269399707174236, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '712785', 'n_tokens_mistral': 2278, 'n_tokens_neox': 2148, 'n_words': 223}