<commit_before>INCLUDE(cmake/CapAddTest.cmake)
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/cpp/source/dummy)
SET(CPP_TESTS "")
LIST(APPEND
    CPP_TESTS
    test_parse_params
    test_energy_storage_device
    test_resistor_capacitor_circuit
    test_resistor_capacitor_circuit-2
    test_multi_stage
    test_ragone_chart
    )
IF(ENABLE_DEAL_II)
    LIST(APPEND
        CPP_TESTS
        test_geometry
        test_postprocessor
        test_mp_values
        test_dirichlet_boundary_operator
        test_equivalent_circuit-2
        test_supercapacitor
        test_exact_transient_solution
        test_exact_transient_solution-2
        test_new_supercapacitor
        )
ENDIF()
FOREACH(TEST_NAME ${CPP_TESTS})
    Cap_ADD_BOOST_TEST(${TEST_NAME})
ENDFOREACH()
IF(ENABLE_GSL)
    Cap_ADD_BOOST_TEST(test_impedance_spectroscopy      )
    Cap_ADD_BOOST_TEST(test_discrete_fourier_transform  )
ENDIF()
IF(ENABLE_TASMANIAN)
    Cap_ADD_BOOST_TEST(test_uq_eis                      )
    COPY_CAP_INPUT_FILE(input_uq_eis                )
ENDIF()
COPY_CAP_INPUT_FILE(input_ragone_chart.info          )
COPY_CAP_INPUT_FILE(input_multi_stage                )
COPY_CAP_INPUT_FILE(input_impedance_spectroscopy.info)
COPY_CAP_INPUT_FILE(input_resistor_capacitor.info    )
COPY_CAP_INPUT_FILE(input_equivalent_circuit         )
COPY_CAP_INPUT_FILE(input_verification_problem       )
COPY_CAP_INPUT_FILE(series_rc.info                   )
COPY_CAP_INPUT_FILE(parallel_rc.info                 )
COPY_CAP_INPUT_FILE(super_capacitor.info             )
COPY_CAP_INPUT_FILE(equivalent_circuits.info         )
COPY_CAP_INPUT_FILE(verification_problems.info       )
COPY_CAP_INPUT_FILE(new_super_capacitor.info         )

FILE(COPY ${CAP_DATA_DIR}/meshes/cap_2d_4.ucd DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
FILE(RENAME ${CMAKE_CURRENT_BINARY_DIR}/cap_2d_4.ucd ${CMAKE_CURRENT_BINARY_DIR}/mesh_2d.ucd)
FILE(COPY ${CAP_DATA_DIR}/meshes/cap_3d_6.ucd DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
FILE(RENAME ${CMAKE_CURRENT_BINARY_DIR}/cap_3d_6.ucd ${CMAKE_CURRENT_BINARY_DIR}/mesh_3d.ucd)<commit_msg>Fix a bug in the test.<commit_after>INCLUDE(cmake/CapAddTest.cmake)
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/cpp/source/dummy)
SET(CPP_TESTS "")
LIST(APPEND
    CPP_TESTS
    test_parse_params
    test_energy_storage_device
    test_resistor_capacitor_circuit
    test_resistor_capacitor_circuit-2
    test_multi_stage
    test_ragone_chart
    )
IF(ENABLE_DEAL_II)
    LIST(APPEND
        CPP_TESTS
        test_geometry
        test_postprocessor
        test_mp_values
        test_dirichlet_boundary_operator
        test_equivalent_circuit-2
        test_supercapacitor
        test_exact_transient_solution
        test_exact_transient_solution-2
        test_new_supercapacitor
        )
ENDIF()
FOREACH(TEST_NAME ${CPP_TESTS})
    Cap_ADD_BOOST_TEST(${TEST_NAME})
ENDFOREACH()
IF(ENABLE_GSL)
    Cap_ADD_BOOST_TEST(test_impedance_spectroscopy      )
    Cap_ADD_BOOST_TEST(test_discrete_fourier_transform  )
ENDIF()
IF(ENABLE_TASMANIAN)
    Cap_ADD_BOOST_TEST(test_uq_eis                      )
    COPY_CAP_INPUT_FILE(input_uq_eis                )
ENDIF()
COPY_CAP_INPUT_FILE(input_ragone_chart.info          )
COPY_CAP_INPUT_FILE(input_multi_stage                )
COPY_CAP_INPUT_FILE(input_impedance_spectroscopy.info)
COPY_CAP_INPUT_FILE(input_resistor_capacitor.info    )
COPY_CAP_INPUT_FILE(input_equivalent_circuit         )
COPY_CAP_INPUT_FILE(input_verification_problem       )
COPY_CAP_INPUT_FILE(series_rc.info                   )
COPY_CAP_INPUT_FILE(parallel_rc.info                 )
COPY_CAP_INPUT_FILE(super_capacitor.info             )
COPY_CAP_INPUT_FILE(equivalent_circuits.info         )
COPY_CAP_INPUT_FILE(verification_problems.info       )

FILE(COPY ${CAP_DATA_DIR}/meshes/cap_2d_4.ucd DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
FILE(RENAME ${CMAKE_CURRENT_BINARY_DIR}/cap_2d_4.ucd ${CMAKE_CURRENT_BINARY_DIR}/mesh_2d.ucd)
FILE(COPY ${CAP_DATA_DIR}/meshes/cap_3d_6.ucd DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
FILE(RENAME ${CMAKE_CURRENT_BINARY_DIR}/cap_3d_6.ucd ${CMAKE_CURRENT_BINARY_DIR}/mesh_3d.ucd)
{'fraction_non_alphanumeric': 0.06641184902054467, 'fraction_numerical': 0.006211180124223602, 'mean_word_length': 4.156403940886699, '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': '3791941', 'n_tokens_mistral': 1637, 'n_tokens_neox': 1508, 'n_words': 129}