<commit_before>set(oglGraph_src_files
	dlgMarkers.cpp
	GLFont.cpp
	OpenGLGraph.cpp
	glew/glew.c
)
include_directories(glew)
include_directories(glew/GL)

#ignore warnings about narrowing: static font header
if(CMAKE_COMPILER_IS_GNUCXX)
	add_definitions(-Wno-narrowing)
endif()

ADD_DEFINITIONS(-DGLEW_STATIC)
add_library(oglGraph STATIC ${oglGraph_src_files})

set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
if(NOT TARGET OpenGL::GL)
    message(FATAL_ERROR "OpenGL/GL not found!")
endif(NOT TARGET OpenGL::GL)
if(NOT TARGET OpenGL::GLU)
    message(FATAL_ERROR "OpenGL/GLU not found!")
endif(NOT TARGET OpenGL::GLU)
message(STATUS "OPENGL_INCLUDE_DIR: ${OPENGL_INCLUDE_DIR}")
message(STATUS "OPENGL_LIBRARIES: ${OPENGL_LIBRARIES}")

target_include_directories(oglGraph PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${OPENGL_INCLUDE_DIR}
)

if (APPLE)
	set(GL_LIBS "-framework OpenGL" "-framework GLUT")
elseif (UNIX)
	set(GL_LIBS ${OPENGL_LIBRARIES})
endif()

if(UNIX)
	target_link_libraries(oglGraph ${GL_LIBS} ${wxWidgets_LIBRARIES})
endif()<commit_msg>Fix FFTviewer crash when forwarding X11 over SSH<commit_after>set(oglGraph_src_files
	dlgMarkers.cpp
	GLFont.cpp
	OpenGLGraph.cpp
	glew/glew.c
)
include_directories(glew)
include_directories(glew/GL)

#ignore warnings about narrowing: static font header
if(CMAKE_COMPILER_IS_GNUCXX)
	add_definitions(-Wno-narrowing)
endif()

ADD_DEFINITIONS(-DGLEW_STATIC)
add_library(oglGraph STATIC ${oglGraph_src_files})

set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
if(NOT TARGET OpenGL::GL)
    message(FATAL_ERROR "OpenGL/GL not found!")
endif(NOT TARGET OpenGL::GL)
if(NOT TARGET OpenGL::GLU)
    message(FATAL_ERROR "OpenGL/GLU not found!")
endif(NOT TARGET OpenGL::GLU)
message(STATUS "OPENGL_INCLUDE_DIR: ${OPENGL_INCLUDE_DIR}")
message(STATUS "OPENGL_LIBRARIES: ${OPENGL_LIBRARIES}")

target_include_directories(oglGraph PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${OPENGL_INCLUDE_DIR}
)

if (APPLE)
	set(GL_LIBS "-framework OpenGL" "-framework GLUT")
elseif (UNIX)
	set(GL_LIBS GL ${OPENGL_LIBRARIES})
endif()

if(UNIX)
	target_link_libraries(oglGraph ${GL_LIBS} ${wxWidgets_LIBRARIES})
endif()
{'fraction_non_alphanumeric': 0.11039558417663294, 'fraction_numerical': 0.0009199632014719411, 'mean_word_length': 8.024896265560166, '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': '3192346', 'n_tokens_mistral': 896, 'n_tokens_neox': 846, 'n_words': 151}