<commit_before>###############################################################################
#
# Description       : CMake build script for COPASI
# Original author(s): <NAME> <<EMAIL>>
#                     <NAME> <<EMAIL>>
#
# This file is part of COPASI.  Please visit http://COPASI.org for more
# information about COPASI, and the latest version of COPASI.
#
# Copyright (C) 2011 - 2010 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and The University
# of Manchester.
# All rights reserved.
# 
# Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., EML Research, gGmbH, University of Heidelberg,
# and The University of Manchester.
# All rights reserved.
# 
# Copyright (C) 2001 - 2007 by <NAME>, Virginia Tech Intellectual
# Properties, Inc. and EML Research, gGmbH.
# All rights reserved.
#
###############################################################################

file(GLOB HEADERS_UTILITIES utilities/*.h)
file(GLOB SOURCES_UTILITIES utilities/*.cpp)

list(REMOVE_ITEM SOURCES_UTILITIES 
   ${CMAKE_CURRENT_SOURCE_DIR}/utilities/CWriteConfig.cpp
)



# create source group for IDEs
source_group(utilities FILES ${SOURCES_UTILITIES} ${HEADERS_UTILITIES})

# add files to main COPASI sources
set(COPASI_SOURCES ${COPASI_SOURCES} ${SOURCES_UTILITIES})
set(COPASI_HEADERS ${COPASI_HEADERS} ${HEADERS_UTILITIES})<commit_msg>Direct CMake to handle CUnit parser compilation<commit_after>###############################################################################
#
# Description       : CMake build script for COPASI
# Original author(s): <NAME> <<EMAIL>>
#                     <NAME> <<EMAIL>>
#
# This file is part of COPASI.  Please visit http://COPASI.org for more
# information about COPASI, and the latest version of COPASI.
#
# Copyright (C) 2011 - 2010 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and The University
# of Manchester.
# All rights reserved.
# 
# Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., EML Research, gGmbH, University of Heidelberg,
# and The University of Manchester.
# All rights reserved.
# 
# Copyright (C) 2001 - 2007 by <NAME>, Virginia Tech Intellectual
# Properties, Inc. and EML Research, gGmbH.
# All rights reserved.
#
###############################################################################

file(GLOB HEADERS_UTILITIES utilities/*.h)
file(GLOB SOURCES_UTILITIES utilities/*.cpp)

list(REMOVE_ITEM SOURCES_UTILITIES 
   ${CMAKE_CURRENT_SOURCE_DIR}/utilities/CWriteConfig.cpp
)

if (ENABLE_FLEX_BISON)
  BISON_TARGET(CUnitParser utilities/CUnitParser.ypp ${COPASI_SOURCE_DIR}/utilities/CUnitParser_yacc.cpp COMPILE_FLAGS ${BISON_BINARY})
  set(COPASI_SOURCES ${COPASI_SOURCES} ${COPASI_SOURCE_DIR}/utilities/CUnitParser_yacc.cpp)
  set(COPASI_HEADERS ${COPASI_HEADERS} ${COPASI_SOURCE_DIR}/utilities/CUnitParser_yacc.hpp)

  FLEX_TARGET(CUnitParser utilities/CUnitParser.lpp ${COPASI_SOURCE_DIR}/utilities/CUnitParser_lex.cpp COMPILE_FLAGS ${FLEX_BINARY})
  set(COPASI_SOURCES ${COPASI_SOURCES} ${COPASI_SOURCE_DIR}/utilities/CUnitParser_lex.cpp)
endif (ENABLE_FLEX_BISON)

# create source group for IDEs
source_group(utilities FILES ${SOURCES_UTILITIES} ${HEADERS_UTILITIES})

# add files to main COPASI sources
set(COPASI_SOURCES ${COPASI_SOURCES} ${SOURCES_UTILITIES})
set(COPASI_HEADERS ${COPASI_HEADERS} ${HEADERS_UTILITIES})
{'fraction_non_alphanumeric': 0.1854014598540146, 'fraction_numerical': 0.01167883211678832, 'mean_word_length': 5.949290060851927, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '6695447', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1064, 'n_words': 282}