<commit_before>PROJECT(StatisticsExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")

ADD_EXECUTABLE(BayesianPluginClassifier BayesianPluginClassifier.cxx )
TARGET_LINK_LIBRARIES(BayesianPluginClassifier ITKCommon ITKStatistics)

ADD_EXECUTABLE( BayesianClassifierInitializer BayesianClassifierInitializer.cxx )
TARGET_LINK_LIBRARIES(BayesianClassifierInitializer ITKCommon ITKStatistics ITKIO)

ADD_EXECUTABLE( BayesianClassifier BayesianClassifier.cxx )
TARGET_LINK_LIBRARIES(BayesianClassifier ITKCommon ITKStatistics ITKIO)

ADD_EXECUTABLE(EuclideanDistance EuclideanDistance.cxx )
TARGET_LINK_LIBRARIES(EuclideanDistance ITKCommon)

ADD_EXECUTABLE(ExpectationMaximizationMixtureModelEstimator ExpectationMaximizationMixtureModelEstimator.cxx )
TARGET_LINK_LIBRARIES(ExpectationMaximizationMixtureModelEstimator
ITKCommon ITKStatistics)

ADD_EXECUTABLE(GaussianDensityFunction GaussianDensityFunction.cxx )
TARGET_LINK_LIBRARIES(GaussianDensityFunction ITKCommon)

ADD_EXECUTABLE(Histogram Histogram.cxx )
TARGET_LINK_LIBRARIES(Histogram ITKCommon ITKStatistics)

ADD_EXECUTABLE(KdTree KdTree.cxx )
TARGET_LINK_LIBRARIES(KdTree ITKCommon)

ADD_EXECUTABLE(KdTreeBasedKMeansClustering KdTreeBasedKMeansClustering.cxx )
TARGET_LINK_LIBRARIES(KdTreeBasedKMeansClustering ITKCommon ITKStatistics)

ADD_EXECUTABLE(ListSample ListSample.cxx )
TARGET_LINK_LIBRARIES(ListSample ITKCommon)

ADD_EXECUTABLE(ListSampleToHistogramFilter ListSampleToHistogramFilter.cxx )
TARGET_LINK_LIBRARIES(ListSampleToHistogramFilter ITKCommon ITKStatistics)

ADD_EXECUTABLE(ListSampleToHistogramGenerator ListSampleToHistogramGenerator.cxx )
TARGET_LINK_LIBRARIES(ListSampleToHistogramGenerator ITKCommon ITKStatistics)

ADD_EXECUTABLE(MaximumDecisionRule MaximumDecisionRule.cxx )
TARGET_LINK_LIBRARIES(MaximumDecisionRule ITKCommon)

ADD_EXECUTABLE(MaximumRatioDecisionRule MaximumRatioDecisionRule.cxx )
TARGET_LINK_LIBRARIES(MaximumRatioDecisionRule ITKCommon)

ADD_EXECUTABLE(MembershipSample MembershipSample.cxx )
TARGET_LINK_LIBRARIES(MembershipSample ITKCommon)

ADD_EXECUTABLE(MinimumDecisionRule MinimumDecisionRule.cxx )
TARGET_LINK_LIBRARIES(MinimumDecisionRule ITKCommon)

ADD_EXECUTABLE(NeighborhoodSampler NeighborhoodSampler.cxx )
TARGET_LINK_LIBRARIES(NeighborhoodSampler ITKCommon)

ADD_EXECUTABLE(NormalVariateGenerator NormalVariateGenerator.cxx )
TARGET_LINK_LIBRARIES(NormalVariateGenerator ITKCommon ITKStatistics)

ADD_EXECUTABLE(PointSetToListAdaptor PointSetToListAdaptor.cxx )
TARGET_LINK_LIBRARIES(PointSetToListAdaptor ITKCommon)

ADD_EXECUTABLE(NormalVariateGenerator NormalVariateGenerator.cxx )
TARGET_LINK_LIBRARIES(NormalVariateGenerator ITKCommon)

ADD_EXECUTABLE(SampleStatistics SampleStatistics.cxx )
TARGET_LINK_LIBRARIES(SampleStatistics ITKCommon)

ADD_EXECUTABLE(SampleToHistogramProjectionFilter SampleToHistogramProjectionFilter.cxx )
TARGET_LINK_LIBRARIES(SampleToHistogramProjectionFilter ITKCommon
                                                        ITKStatistics)

ADD_EXECUTABLE(SampleSorting SampleSorting.cxx )
TARGET_LINK_LIBRARIES(SampleSorting ITKCommon)

ADD_EXECUTABLE(WeightedSampleStatistics WeightedSampleStatistics.cxx )
TARGET_LINK_LIBRARIES(WeightedSampleStatistics ITKCommon)

ADD_EXECUTABLE(ImageHistogram3 ImageHistogram3.cxx )
TARGET_LINK_LIBRARIES(ImageHistogram3 ITKIO ITKCommon ITKStatistics )

ADD_EXECUTABLE(ScalarImageMarkovRandomField1 ScalarImageMarkovRandomField1.cxx )
TARGET_LINK_LIBRARIES(ScalarImageMarkovRandomField1 ITKIO ITKCommon )

# Add some tests now, based on the examples.

IF( NOT ITK_DISABLE_CXX_TESTING )

SET(STATISTICS_EXAMPLES_WITH_TESTS ${CXX_TEST_PATH}/StatisticsExamplesTests)
SET(STATISTICS_EXAMPLES_WITH_TESTS2 ${CXX_TEST_PATH}/StatisticsExamplesTests2)
SET(STATISTICS_EXAMPLES_WITH_TESTS3 ${CXX_TEST_PATH}/StatisticsExamplesTests3)
SET(STATISTICS_EXAMPLES_WITH_TESTS4 ${CXX_TEST_PATH}/StatisticsExamplesTests4)
SET(BASELINE ${ITK_DATA_ROOT}/Baseline/Statistics)
SET(TEMP ${ITK_BINARY_DIR}/Testing/Temporary)

IF(NOT BORLAND)
ADD_EXECUTABLE(ScalarImageKmeansClassifier ScalarImageKmeansClassifier.cxx )
TARGET_LINK_LIBRARIES(ScalarImageKmeansClassifier ITKIO ITKCommon )

ADD_EXECUTABLE(ImageToListAdaptor ImageToListAdaptor.cxx )
TARGET_LINK_LIBRARIES(ImageToListAdaptor ITKCommon)<commit_msg>COMP: Avoid Borland LME1518 linker errors.<commit_after>PROJECT(StatisticsExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")

ADD_EXECUTABLE(BayesianPluginClassifier BayesianPluginClassifier.cxx )
TARGET_LINK_LIBRARIES(BayesianPluginClassifier ITKCommon ITKStatistics)

ADD_EXECUTABLE( BayesianClassifierInitializer BayesianClassifierInitializer.cxx )
TARGET_LINK_LIBRARIES(BayesianClassifierInitializer ITKCommon ITKStatistics ITKIO)

ADD_EXECUTABLE( BayesianClassifier BayesianClassifier.cxx )
TARGET_LINK_LIBRARIES(BayesianClassifier ITKCommon ITKStatistics ITKIO)

ADD_EXECUTABLE(EuclideanDistance EuclideanDistance.cxx )
TARGET_LINK_LIBRARIES(EuclideanDistance ITKCommon)

ADD_EXECUTABLE(ExpectationMaximizationMixtureModelEstimator ExpectationMaximizationMixtureModelEstimator.cxx )
TARGET_LINK_LIBRARIES(ExpectationMaximizationMixtureModelEstimator
ITKCommon ITKStatistics)

ADD_EXECUTABLE(GaussianDensityFunction GaussianDensityFunction.cxx )
TARGET_LINK_LIBRARIES(GaussianDensityFunction ITKCommon)

ADD_EXECUTABLE(Histogram Histogram.cxx )
TARGET_LINK_LIBRARIES(Histogram ITKCommon ITKStatistics)

ADD_EXECUTABLE(KdTree KdTree.cxx )
TARGET_LINK_LIBRARIES(KdTree ITKCommon)

ADD_EXECUTABLE(KdTreeBasedKMeansClustering KdTreeBasedKMeansClustering.cxx )
TARGET_LINK_LIBRARIES(KdTreeBasedKMeansClustering ITKCommon ITKStatistics)

ADD_EXECUTABLE(ListSample ListSample.cxx )
TARGET_LINK_LIBRARIES(ListSample ITKCommon)

ADD_EXECUTABLE(ListSampleToHistogramFilter ListSampleToHistogramFilter.cxx )
TARGET_LINK_LIBRARIES(ListSampleToHistogramFilter ITKCommon ITKStatistics)

ADD_EXECUTABLE(ListSampleToHistogramGenerator ListSampleToHistogramGenerator.cxx )
TARGET_LINK_LIBRARIES(ListSampleToHistogramGenerator ITKCommon ITKStatistics)

ADD_EXECUTABLE(MaximumDecisionRule MaximumDecisionRule.cxx )
TARGET_LINK_LIBRARIES(MaximumDecisionRule ITKCommon)

ADD_EXECUTABLE(MaximumRatioDecisionRule MaximumRatioDecisionRule.cxx )
TARGET_LINK_LIBRARIES(MaximumRatioDecisionRule ITKCommon)

ADD_EXECUTABLE(MembershipSample MembershipSample.cxx )
TARGET_LINK_LIBRARIES(MembershipSample ITKCommon)

ADD_EXECUTABLE(MinimumDecisionRule MinimumDecisionRule.cxx )
TARGET_LINK_LIBRARIES(MinimumDecisionRule ITKCommon)

ADD_EXECUTABLE(NeighborhoodSampler NeighborhoodSampler.cxx )
TARGET_LINK_LIBRARIES(NeighborhoodSampler ITKCommon)

ADD_EXECUTABLE(NormalVariateGenerator NormalVariateGenerator.cxx )
TARGET_LINK_LIBRARIES(NormalVariateGenerator ITKCommon ITKStatistics)

ADD_EXECUTABLE(PointSetToListAdaptor PointSetToListAdaptor.cxx )
TARGET_LINK_LIBRARIES(PointSetToListAdaptor ITKCommon)

ADD_EXECUTABLE(NormalVariateGenerator NormalVariateGenerator.cxx )
TARGET_LINK_LIBRARIES(NormalVariateGenerator ITKCommon)

ADD_EXECUTABLE(SampleStatistics SampleStatistics.cxx )
TARGET_LINK_LIBRARIES(SampleStatistics ITKCommon)

ADD_EXECUTABLE(SampleToHistogramProjectionFilter SampleToHistogramProjectionFilter.cxx )
TARGET_LINK_LIBRARIES(SampleToHistogramProjectionFilter ITKCommon
                                                        ITKStatistics)

ADD_EXECUTABLE(SampleSorting SampleSorting.cxx )
TARGET_LINK_LIBRARIES(SampleSorting ITKCommon)

ADD_EXECUTABLE(WeightedSampleStatistics WeightedSampleStatistics.cxx )
TARGET_LINK_LIBRARIES(WeightedSampleStatistics ITKCommon)

ADD_EXECUTABLE(ImageHistogram3 ImageHistogram3.cxx )
TARGET_LINK_LIBRARIES(ImageHistogram3 ITKIO ITKCommon ITKStatistics )

# Add some tests now, based on the examples.

IF( NOT ITK_DISABLE_CXX_TESTING )

SET(STATISTICS_EXAMPLES_WITH_TESTS ${CXX_TEST_PATH}/StatisticsExamplesTests)
SET(STATISTICS_EXAMPLES_WITH_TESTS2 ${CXX_TEST_PATH}/StatisticsExamplesTests2)
SET(STATISTICS_EXAMPLES_WITH_TESTS3 ${CXX_TEST_PATH}/StatisticsExamplesTests3)
SET(STATISTICS_EXAMPLES_WITH_TESTS4 ${CXX_TEST_PATH}/StatisticsExamplesTests4)
SET(BASELINE ${ITK_DATA_ROOT}/Baseline/Statistics)
SET(TEMP ${ITK_BINARY_DIR}/Testing/Temporary)

IF(NOT BORLAND)
ADD_EXECUTABLE(ScalarImageMarkovRandomField1 ScalarImageMarkovRandomField1.cxx )
TARGET_LINK_LIBRARIES(ScalarImageMarkovRandomField1 ITKIO ITKCommon )

ADD_EXECUTABLE(ScalarImageKmeansClassifier ScalarImageKmeansClassifier.cxx )
TARGET_LINK_LIBRARIES(ScalarImageKmeansClassifier ITKIO ITKCommon )

ADD_EXECUTABLE(ImageToListAdaptor ImageToListAdaptor.cxx )
TARGET_LINK_LIBRARIES(ImageToListAdaptor ITKCommon)
{'fraction_non_alphanumeric': 0.0464464931730657, 'fraction_numerical': 0.0032675924845372854, 'mean_word_length': 12.496062992125983, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2867321', 'n_tokens_mistral': 2894, 'n_tokens_neox': 2733, 'n_words': 318}