<commit_before># Copyright (C) 1995-2019, <NAME> and <NAME>.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.

set(Libraries Core MathCore Minuit Unuran Gpad Hist)

if(mathmore)
  list(APPEND Libraries MathMore)
endif()

set(TestUnuranSource
       unuranSimple.cxx
       unuranHist.cxx
       unuranDiscrete.cxx
       unuranDistr.cxx
       unuranMulti2D.cxx
       unuranMultiDim.cxx
)

# One can provide special labels for some tests like
# set(unuranMultiDim_LABELS longtest)

#---Build and add all the defined test in the list---------------
foreach(file ${TestUnuranSource})
  get_filename_component(testname ${file} NAME_WE)
  ROOT_EXECUTABLE(${testname} ${file} LIBRARIES ${Libraries})
  ROOT_ADD_TEST(unuran-${testname} COMMAND ${testname} LABELS ${${testname}_LABELS})
endforeach()<commit_msg>provide longtest labels for some unuran tests<commit_after># Copyright (C) 1995-2019, <NAME> and <NAME>.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.

set(Libraries Core MathCore Minuit Unuran Gpad Hist)

if(mathmore)
  list(APPEND Libraries MathMore)
endif()

set(TestUnuranSource
       unuranSimple.cxx
       unuranHist.cxx
       unuranDiscrete.cxx
       unuranDistr.cxx
       unuranMulti2D.cxx
       unuranMultiDim.cxx
)

# Configure some tests as longtest
set(unuranMultiDim_LABELS longtest)
set(unuranDiscrete_LABELS longtest)

#---Build and add all the defined test in the list---------------
foreach(file ${TestUnuranSource})
  get_filename_component(testname ${file} NAME_WE)
  ROOT_EXECUTABLE(${testname} ${file} LIBRARIES ${Libraries})
  ROOT_ADD_TEST(unuran-${testname} COMMAND ${testname} LABELS ${${testname}_LABELS})
endforeach()
{'fraction_non_alphanumeric': 0.11226725082146768, 'fraction_numerical': 0.009857612267250822, 'mean_word_length': 4.25, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7367938', 'n_tokens_mistral': 656, 'n_tokens_neox': 605, 'n_words': 159}