<commit_before>cmake_minimum_required(VERSION 3.2)
project(QtDraw)

include(CTest)

# Enable C++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(CMAKE_BUILD_TYPE Debug)


# Tell cmake to run moc automatically
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)

# Tell cmake to look for moc files
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Add core Qt4 and Qt4Test
FIND_PACKAGE(Qt4 REQUIRED QtGui QtTest)
INCLUDE(${QT_USE_FILE})

QT4_WRAP_CPP(MOCSrcs)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

ADD_EXECUTABLE(qtdraw main.cpp qtdraw.cpp ${MOCSrcs})
TARGET_LINK_LIBRARIES(qtdraw Qt4::QtGui)

#ADD_EXECUTABLE(testqtdraw testqtdraw.cpp qtdraw.cpp ${MOCSrcs})
#TARGET_LINK_LIBRARIES(testqtdraw Qt4::QtGui Qt4::QtTest)
#ADD_TEST(NAME testqtdraw COMMAND testqtdraw -o testqtdraw.log.txt)<commit_msg>Fix cmakelists<commit_after>cmake_minimum_required(VERSION 3.2)
project(QtDraw)

include(CTest)

# Enable C++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(CMAKE_BUILD_TYPE Debug)


# Tell cmake to run moc automatically
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)

# Tell cmake to look for moc files
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Add core Qt4 and Qt4Test
FIND_PACKAGE(Qt4 REQUIRED QtGui QtTest)
INCLUDE(${QT_USE_FILE})

QT4_WRAP_CPP(MOCSrcs)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

ADD_EXECUTABLE(qtdraw main.cpp qtdraw.cpp message.cpp menu.cpp canvas.cpp ${MOCSrcs})
TARGET_LINK_LIBRARIES(qtdraw Qt4::QtGui)

#ADD_EXECUTABLE(testqtdraw testqtdraw.cpp qtdraw.cpp ${MOCSrcs})
#TARGET_LINK_LIBRARIES(testqtdraw Qt4::QtGui Qt4::QtTest)
#ADD_TEST(NAME testqtdraw COMMAND testqtdraw -o testqtdraw.log.txt)
{'fraction_non_alphanumeric': 0.1013633669235329, 'fraction_numerical': 0.015411973918197985, 'mean_word_length': 8.48314606741573, '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': '1721844', 'n_tokens_mistral': 746, 'n_tokens_neox': 692, 'n_words': 127}