<commit_before># set for test in other cmake files
set(PLATFORM_OSX ON)

check_unsupported_compiler_version()

# options
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -stdlib=libc++ -std=c++1y")
set(CXX_FLAGS_DEBUG "-g -O0")


if (USE_EXTERNAL_LIBS)
include(${EXTERNAL_LIBS_DIR}/core-dependencies.cmake)
include(${EXTERNAL_LIBS_DIR}/glfw.cmake)
else()
# build dependencies (yaml, benchmark, glfw)
add_subdirectory(${PROJECT_SOURCE_DIR}/external)
endif()

# compile definitions (adds -DPLATFORM_OSX)
set(CORE_COMPILE_DEFS PLATFORM_OSX)

# load core library
add_subdirectory(${PROJECT_SOURCE_DIR}/core)

if(APPLICATION)

  set(EXECUTABLE_NAME "tangram")

  find_package(OpenGL REQUIRED)

  # add sources and include headers
  set(OSX_EXTENSIONS_FILES *.mm *.cpp)
  foreach(_ext ${OSX_EXTENSIONS_FILES})
    find_sources_and_include_directories(
      ${PROJECT_SOURCE_DIR}/osx/src/*.h
      ${PROJECT_SOURCE_DIR}/osx/src/${_ext})
  endforeach()

  add_bundle_resources(RESOURCES "${PROJECT_SOURCE_DIR}/scenes" "Resources")

  file(GLOB_RECURSE OSX_RESOURCES "${PROJECT_SOURCE_DIR}/osx/resources/**")
  string(REGEX REPLACE "[.]DS_Store" "" OSX_RESOURCES "${OSX_RESOURCES}")

  add_executable(${EXECUTABLE_NAME} MACOSX_BUNDLE ${SOURCES} ${RESOURCES} ${OSX_RESOURCES})

  target_link_libraries(${EXECUTABLE_NAME}
    ${CORE_LIBRARY}
    glfw
    ${OPENGL_LIBRARIES})

  # add resource files and property list
  set_target_properties(${EXECUTABLE_NAME} PROPERTIES
    MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/osx/resources/tangram-Info.plist"
    RESOURCE "${OSX_RESOURCES}")

endif()
<commit_msg>warn on missing return type and compare on different signed types<commit_after># set for test in other cmake files
set(PLATFORM_OSX ON)

check_unsupported_compiler_version()

# options
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++1y")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wreturn-type -Wsign-compare")
set(CXX_FLAGS_DEBUG "-g -O0")


if (USE_EXTERNAL_LIBS)
include(${EXTERNAL_LIBS_DIR}/core-dependencies.cmake)
include(${EXTERNAL_LIBS_DIR}/glfw.cmake)
else()
# build dependencies (yaml, benchmark, glfw)
add_subdirectory(${PROJECT_SOURCE_DIR}/external)
endif()

# compile definitions (adds -DPLATFORM_OSX)
set(CORE_COMPILE_DEFS PLATFORM_OSX)

# load core library
add_subdirectory(${PROJECT_SOURCE_DIR}/core)

if(APPLICATION)

  set(EXECUTABLE_NAME "tangram")

  find_package(OpenGL REQUIRED)

  # add sources and include headers
  set(OSX_EXTENSIONS_FILES *.mm *.cpp)
  foreach(_ext ${OSX_EXTENSIONS_FILES})
    find_sources_and_include_directories(
      ${PROJECT_SOURCE_DIR}/osx/src/*.h
      ${PROJECT_SOURCE_DIR}/osx/src/${_ext})
  endforeach()

  add_bundle_resources(RESOURCES "${PROJECT_SOURCE_DIR}/scenes" "Resources")

  file(GLOB_RECURSE OSX_RESOURCES "${PROJECT_SOURCE_DIR}/osx/resources/**")
  string(REGEX REPLACE "[.]DS_Store" "" OSX_RESOURCES "${OSX_RESOURCES}")

  add_executable(${EXECUTABLE_NAME} MACOSX_BUNDLE ${SOURCES} ${RESOURCES} ${OSX_RESOURCES})

  target_link_libraries(${EXECUTABLE_NAME}
    ${CORE_LIBRARY}
    glfw
    ${OPENGL_LIBRARIES})

  # add resource files and property list
  set_target_properties(${EXECUTABLE_NAME} PROPERTIES
    MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/osx/resources/tangram-Info.plist"
    RESOURCE "${OSX_RESOURCES}")

endif()

{'fraction_non_alphanumeric': 0.12436013249021378, 'fraction_numerical': 0.0012044564890093346, 'mean_word_length': 6.532879818594104, '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': '4518741', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1228, 'n_words': 202}