<commit_before>#---------------------------------------------------
# Simmath 
#
# Creates SimTK Core library, base name=simmath.
# Default libraries are shared & optimized. Variants
# are created for static (_static) and debug (_d).
#
# Windows:
#   simmath[_d].dll
#   simmath[_d].lib
#   simmath_static[_d].lib
# Unix:
#   libsimmath[_d].so
#   libsimmath_static[_d].a
#
# All libraries are installed in 
#   C:\Program Files\SimTK\core\lib  (Windows)
#   /usr/local/SimTK/core/lib        (UNIX)
#
# TODO: should we just install the default libraries
# at the top level, and install the static & debug
# libraries in .../core/lib/simmath/lib
# or           .../simmath/lib ?
#----------------------------------------------------

cmake_minimum_required(VERSION 2.4.6)

if(COMMAND cmake_policy)
        cmake_policy(SET CMP0003 NEW)
        cmake_policy(SET CMP0005 NEW)
endif(COMMAND cmake_policy)

PROJECT ( SimTKsimmath )

# Caution: this variable is automatically created by the CMake
# ENABLE_TESTING() command, but we'll take it over here for
# our own purposes too.
SET( BUILD_TESTING ON CACHE BOOL
	"Control building of Simmath test programs." )

SET( BUILD_EXAMPLES ON CACHE BOOL
	"Control building of Simmath example programs.")

# Turning this off reduces the build time (and space) substantially,
# but you may miss the occasional odd bug. Also currently on Windows it
# is easier to debug the static tests than the DLL-liked ones.
SET( BUILD_TESTING_STATIC ON CACHE BOOL
	"If building test or example programs, include statically-linked ones?" )

SET( BUILD_TESTING_SHARED ON CACHE BOOL
 	"If building test or example programs, include dynamically-linked ones?" )

# 
# Make sure "sandbox" input & output directories are set. During
# SimTK Core build, the build system will set them. Otherwise, we'll
# set them to sensible local values.
# If SimTK_INSTALL_PREFIX is set then
# it is a sandbox installation area, otherwise we want to install
# in /usr/local/SimTK or c:\program files\SimTK. Similarly, SimTK_SDK
# tells us where to find other SimTK Core modules on which this one
# depends. If it is not set, we'll look in /usr/local/SimTK or
# c:\program files\SimTK *regardless* of SimTK_INSTALL_PREFIX.
#<commit_msg>Restore test timeout extension that I deleted earlier. The CPodes tests were timing out with the 1500s default timeout when run in Debug mode with Valgrind enabled. I upped the limit to 2 hours.<commit_after>#---------------------------------------------------
# Simmath 
#
# Creates SimTK Core library, base name=simmath.
# Default libraries are shared & optimized. Variants
# are created for static (_static) and debug (_d).
#
# Windows:
#   simmath[_d].dll
#   simmath[_d].lib
#   simmath_static[_d].lib
# Unix:
#   libsimmath[_d].so
#   libsimmath_static[_d].a
#
# All libraries are installed in 
#   C:\Program Files\SimTK\core\lib  (Windows)
#   /usr/local/SimTK/core/lib        (UNIX)
#
# TODO: should we just install the default libraries
# at the top level, and install the static & debug
# libraries in .../core/lib/simmath/lib
# or           .../simmath/lib ?
#----------------------------------------------------

cmake_minimum_required(VERSION 2.4.6)

if(COMMAND cmake_policy)
        cmake_policy(SET CMP0003 NEW)
        cmake_policy(SET CMP0005 NEW)
endif(COMMAND cmake_policy)

PROJECT ( SimTKsimmath )

## When in Debug mode and running valgrind, some of the test
## cases take longer than the default 1500 seconds.
SET(DART_TESTING_TIMEOUT 7200)

# Caution: this variable is automatically created by the CMake
# ENABLE_TESTING() command, but we'll take it over here for
# our own purposes too.
SET( BUILD_TESTING ON CACHE BOOL
	"Control building of Simmath test programs." )

SET( BUILD_EXAMPLES ON CACHE BOOL
	"Control building of Simmath example programs.")

# Turning this off reduces the build time (and space) substantially,
# but you may miss the occasional odd bug. Also currently on Windows it
# is easier to debug the static tests than the DLL-liked ones.
SET( BUILD_TESTING_STATIC ON CACHE BOOL
	"If building test or example programs, include statically-linked ones?" )

SET( BUILD_TESTING_SHARED ON CACHE BOOL
 	"If building test or example programs, include dynamically-linked ones?" )

# 
# Make sure "sandbox" input & output directories are set. During
# SimTK Core build, the build system will set them. Otherwise, we'll
# set them to sensible local values.
# If SimTK_INSTALL_PREFIX is set then
# it is a sandbox installation area, otherwise we want to install
# in /usr/local/SimTK or c:\program files\SimTK. Similarly, SimTK_SDK
# tells us where to find other SimTK Core modules on which this one
# depends. If it is not set, we'll look in /usr/local/SimTK or
# c:\program files\SimTK *regardless* of SimTK_INSTALL_PREFIX.
#
{'fraction_non_alphanumeric': 0.1207256046705588, 'fraction_numerical': 0.007297748123436197, 'mean_word_length': 3.2830357142857145, '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': '5791525', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1395, 'n_words': 572}