<commit_before># options
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -stdlib=libc++ -std=c++11")
set(CXX_FLAGS_DEBUG "-g -O0")
set(EXECUTABLE_NAME "tangram.out")

add_definitions(-DPLATFORM_OSX)

# load core library
include_directories(${PROJECT_SOURCE_DIR}/core/include/)
add_subdirectory(${PROJECT_SOURCE_DIR}/core)
include_recursive_dirs(${PROJECT_SOURCE_DIR}/core/*.h)

# add sources and include headers
find_sources_and_include_directories(
    ${PROJECT_SOURCE_DIR}/osx/*.h 
    ${PROJECT_SOURCE_DIR}/osx/*.cpp)

# link and build functions
function(link_libraries)
    find_library(OPENGL_FRAMEWORK OpenGL)
    find_library(COCOA_FRAMEWORK Cocoa)
    find_library(IOKIT_FRAMEWORK IOKit)
    find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation)
    find_library(CORE_VIDEO_FRAMEWORK CoreVideo)
    
    list(APPEND GLFW_LIBRARY -lglfw3
                             ${OPENGL_FRAMEWORK}
                             ${COCOA_FRAMEWORK}
                             ${IOKIT_FRAMEWORK}
                             ${CORE_FOUNDATION_FRAMEWORK}
                             ${CORE_VIDEO_FRAMEWORK})

    check_and_link_libraries(${EXECUTABLE_NAME} curl)
    target_link_libraries(${EXECUTABLE_NAME} ${GLFW_LIBRARY} core)
endfunction()

function(build) 
    add_executable(${EXECUTABLE_NAME} ${SOURCES})
endfunction()<commit_msg>darwin.cmake now creates working xcode projects for the OS X build<commit_after># options
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -stdlib=libc++ -std=c++11")
set(CXX_FLAGS_DEBUG "-g -O0")
set(EXECUTABLE_NAME "tangram.out")

add_definitions(-DPLATFORM_OSX)

# include headers for homebrew-installed libraries
include_directories(/usr/local/include)

# load core library
include_directories(${PROJECT_SOURCE_DIR}/core/include/)
add_subdirectory(${PROJECT_SOURCE_DIR}/core)
include_recursive_dirs(${PROJECT_SOURCE_DIR}/core/*.h)

# add sources and include headers
find_sources_and_include_directories(
    ${PROJECT_SOURCE_DIR}/osx/*.h 
    ${PROJECT_SOURCE_DIR}/osx/*.cpp)

# link and build functions
function(link_libraries)
    
    find_library(OPENGL_FRAMEWORK OpenGL)
    find_library(COCOA_FRAMEWORK Cocoa)
    find_library(IOKIT_FRAMEWORK IOKit)
    find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation)
    find_library(CORE_VIDEO_FRAMEWORK CoreVideo)
    find_library(GLFW glfw3)
    
    list(APPEND GLFW_LIBRARIES 
        ${OPENGL_FRAMEWORK} 
        ${COCOA_FRAMEWORK} 
        ${IOKIT_FRAMEWORK} 
        ${CORE_FOUNDATION_FRAMEWORK}    
        ${CORE_VIDEO_FRAMEWORK} 
        ${GLFW})

    check_and_link_libraries(${EXECUTABLE_NAME} curl)
    target_link_libraries(${EXECUTABLE_NAME} core ${GLFW_LIBRARIES})

endfunction()

function(build) 

    add_executable(${EXECUTABLE_NAME} ${SOURCES})

endfunction()
{'fraction_non_alphanumeric': 0.10072463768115943, 'fraction_numerical': 0.002898550724637681, 'mean_word_length': 4.319845857418112, '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': '6513162', 'n_tokens_mistral': 976, 'n_tokens_neox': 938, 'n_words': 137}