<commit_before>ifndef COMMON_ROOT
COMMON_ROOT = $(shell pwd)/..
endif

#order is important to have dependencies work, declare DEPS before include
include $(COMMON_ROOT)/bld/Makefile.common

INCLUDES = \
	-I $(COMMON_ROOT)/math	                       \
	-I $(COMMON_ROOT)/utils                        \
	-I $(COMMON_ROOT)/bit_ops                      \

MATH_PRIME_OBJS =                                      \
	$(COMMON_ROOT)/math/math_prime.o               \

MATH_SQRT_OBJS =                                       \
	$(COMMON_ROOT)/math/math_sqrt.o                \

MATH_PERM_COMB_TEST_OBJS =                             \
	$(COMMON_ROOT)/math/math_perm_comb_test.o      \

MATH_TWO_DIE_PROB_OBJS =                               \
	$(COMMON_ROOT)/math/math_two_die_probability.o \

MATH_SHUFFLE_OBJS =                                    \
	$(COMMON_ROOT)/math/math_shuffle_test.o        \

DEPS = \
	$(COMMON_ROOT)/math/math_sqrt.h                \
	$(COMMON_ROOT)/math/math_shuffle.h             \
	$(COMMON_ROOT)/math/math_prime.h               \
	$(COMMON_ROOT)/math/math_perm_comb.h           \
	$(COMMON_ROOT)/utils/rand_generator.h          \
	$(COMMON_ROOT)/utils/compiler_api.h            \
	$(COMMON_ROOT)/utils/print_utils.h             \
	$(COMMON_ROOT)/bit_ops/bitmap.h                \

OBJS = $(MATH_SQRT_OBJS) $(MATH_TWO_DIE_PROB_OBJS) $(MATH_PRIME_OBJS) \
	$(MATH_PERM_COMB_TEST_OBJS) $(MATH_SHUFFLE_OBJS)

# cancel implicit program rule
math_sqrt: $(MATH_SQRT_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_two_die_probability: $(MATH_TWO_DIE_PROB_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_prime: $(MATH_PRIME_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_perm_comb_test: $(MATH_PERM_COMB_TEST_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_shuffle_test: $(MATH_SHUFFLE_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) -O3 -Os -march=native -o $@ $^
	@echo "--------------------------------------------------"<commit_msg>CI fix build break<commit_after>ifndef COMMON_ROOT
COMMON_ROOT = $(shell pwd)/..
endif

#order is important to have dependencies work, declare DEPS before include
include $(COMMON_ROOT)/bld/Makefile.common

INCLUDES = \
	-I $(COMMON_ROOT)/math	                       \
	-I $(COMMON_ROOT)/utils                        \
	-I $(COMMON_ROOT)/bit_ops                      \

MATH_PRIME_OBJS =                                      \
	$(COMMON_ROOT)/math/math_prime.o               \

MATH_SQRT_OBJS =                                       \
	$(COMMON_ROOT)/math/math_sqrt.o                \

MATH_PERM_COMB_TEST_OBJS =                             \
	$(COMMON_ROOT)/math/math_perm_comb_test.o      \

MATH_TWO_DIE_PROB_OBJS =                               \
	$(COMMON_ROOT)/math/math_two_die_probability.o \

MATH_SHUFFLE_OBJS =                                    \
	$(COMMON_ROOT)/math/math_shuffle_test.o        \

DEPS = \
	$(COMMON_ROOT)/math/math_sqrt.h                \
	$(COMMON_ROOT)/math/math_shuffle.h             \
	$(COMMON_ROOT)/math/math_prime.h               \
	$(COMMON_ROOT)/math/math_perm_comb.h           \
	$(COMMON_ROOT)/utils/rand_generator.h          \
	$(COMMON_ROOT)/utils/compiler_api.h            \
	$(COMMON_ROOT)/utils/print_utils.h             \
	$(COMMON_ROOT)/bit_ops/bitmap.h                \

OBJS = $(MATH_SQRT_OBJS) $(MATH_TWO_DIE_PROB_OBJS) $(MATH_PRIME_OBJS) \
	$(MATH_PERM_COMB_TEST_OBJS) $(MATH_SHUFFLE_OBJS)

# cancel implicit program rule
math_sqrt: $(MATH_SQRT_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_two_die_probability: $(MATH_TWO_DIE_PROB_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_prime: $(MATH_PRIME_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_perm_comb_test: $(MATH_PERM_COMB_TEST_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) $(LDFLAGS) -lm -o $@ $^
	@echo "--------------------------------------------------"

math_shuffle_test: $(MATH_SHUFFLE_OBJS)
	@echo "LD   " $@
	@$(CC) $(OPT) $(CFLAGS) -O3 -Os -march=native -o $@ $^  $(LDFLAGS)
	@echo "--------------------------------------------------"
{'fraction_non_alphanumeric': 0.2433828276307295, 'fraction_numerical': 0.00043038519474930065, 'mean_word_length': 1.4749733759318424, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2429464', 'n_tokens_mistral': 1679, 'n_tokens_neox': 1624, 'n_words': 226}