<commit_before># Reset default src patterns if empty
ifeq ($(SRC_PATTERNS),)
  SRC_PATTERNS := .cpp .cxx .cc .c .s .glsl
endif

ifeq ($(HOST),emscripten)
  LDFLAGS += $(addprefix --preload-file ,$(DATA_FILES))
endif

ifeq ($(HOST),android)

  ifeq ($(ANDROID_PROJECT),)
    $(error You need to set up a target project directory. Try using 'android create project')
  endif

  LDFLAGS += --sysroot=$(ANDROID_NDK)/platforms/$(NDK_PLATFORM)/arch-arm
  FILES += $(ANDROID_NDK)/sources/android/native_app_glue/android_native_app_glue.c
  CFLAGS += -I$(ANDROID_NDK)/sources/android
endif

CFLAGS += $(addprefix -I, $(sort $(realpath $(INCLUDES))))
CXXFLAGS += $(CFLAGS)
COMP_CXXFLAGS += $(COMP_CFLAGS)
# LOCAL_FILES <= Source files relative to current directory + SRCDIR
# FILES <= Source files with exact path
FILES := $(realpath $(FILES))
FILES += $(realpath $(addprefix $(SRCDIR), $(LOCAL_FILES)))
# FILES <= Now full path of all source files

# Create corresponding list of OBJS from FILES (but only files that end with a pattern in SRC_PATTERNS)
OBJS := $(foreach PAT,$(SRC_PATTERNS), $(patsubst %$(PAT),%.o, $(filter %$(PAT),$(FILES))) )

# Also add all source files inside MODULES directories
RP_MODULES := $(realpath $(MODULES))
OBJS += $(foreach PAT,$(SRC_PATTERNS), $(patsubst %$(PAT),%.o, $(wildcard $(addsuffix /*$(PAT), $(RP_MODULES)))) )

# Since all paths in OBJS are absolute, we dont add a slash after OBJDIR<commit_msg>Small build fix<commit_after># Reset default src patterns if empty
ifeq ($(SRC_PATTERNS),)
  SRC_PATTERNS := .cpp .cxx .cc .c .s .glsl
endif

ifeq ($(HOST),emscripten)
  LDFLAGS += $(addprefix --preload-file ,$(DATA_FILES))
endif

ifeq ($(HOST),android)

  ifeq ($(ANDROID_PROJECT),)
    $(error You need to set up a target project directory. Try using 'android create project')
  endif

  LDFLAGS += --sysroot=$(ANDROID_NDK)/platforms/$(NDK_PLATFORM)/arch-arm
  FILES += $(ANDROID_NDK)/sources/android/native_app_glue/android_native_app_glue.c
  CFLAGS += -I$(ANDROID_NDK)/sources/android
endif

CFLAGS += $(addprefix -I, $(sort $(realpath $(INCLUDES))))
CXXFLAGS += $(CFLAGS)
COMP_CXXFLAGS += $(COMP_CFLAGS)
# LOCAL_FILES <= Source files relative to current directory + SRCDIR
# FILES <= Source files with exact path
FILES := $(realpath $(FILES))
FILES += $(realpath $(addprefix $(SRCDIR), $(LOCAL_FILES)))
# FILES <= Now full path of all source files

# Create corresponding list of OBJS from FILES (but only files that end with a pattern in SRC_PATTERNS)
OBJS := $(foreach PAT,$(SRC_PATTERNS), $(patsubst %$(PAT),%.o, $(filter %$(PAT),$(FILES))) )

# Also add all source files inside MODULES directories
RP_MODULES := $(realpath $(MODULES))
RP_MODULES += $(realpath $(addprefix $(SRCDIR), $(LOCAL_MODULES)))

OBJS += $(foreach PAT,$(SRC_PATTERNS), $(patsubst %$(PAT),%.o, $(wildcard $(addsuffix /*$(PAT), $(RP_MODULES)))) )

# Since all paths in OBJS are absolute, we dont add a slash after OBJDIR
{'fraction_non_alphanumeric': 0.16064120054570258, 'fraction_numerical': 0.0, 'mean_word_length': 5.321120689655173, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1899710', 'n_tokens_mistral': 1046, 'n_tokens_neox': 988, 'n_words': 304}