<commit_before>CC ?= gcc
CXX ?= g++

CFLAGS += -W -Wall -Wextra -O2
CXXFLAGS += -W -Wall -Wextra -std=c++11 -O2 -ICPP

7ZIP_CXX_SRC = CPP/7zip/Archive/Common/ParseProperties.cpp \
               CPP/7zip/Archive/DeflateProps.cpp \
               CPP/7zip/Common/CWrappers.cpp \
               CPP/7zip/Common/FileStreams.cpp \
               CPP/7zip/Common/OutBuffer.cpp \
               CPP/7zip/Common/StreamUtils.cpp \
               CPP/7zip/Compress/DeflateEncoder.cpp \
               CPP/Common/MyString.cpp \
               CPP/Common/StringConvert.cpp \
               CPP/Common/StringToInt.cpp \
               CPP/NotWindows/FileIO.cpp \
               CPP/NotWindows/MyWindows.cpp \
               CPP/Windows/PropVariant.cpp \
               deflate7z.cpp
7ZIP_CXX_OBJ = $(7ZIP_CXX_SRC:.cpp=.o)
7ZIP_C_SRC =   C/Alloc.c \
               C/HuffEnc.c \
               C/LzFind.c \
               C/Sort.c
7ZIP_C_OBJ =   $(7ZIP_C_SRC:.c=.o)

%.o: %.cpp
	$(CXX) -c $(CXXFLAGS) -o $@ $<

%.o: %.c
	$(CC) -c $(CFLAGS) -o $@ $<

7zip.a: $(7ZIP_CXX_OBJ) $(7ZIP_C_OBJ)
	ar rcs $@ $^

clean:
	rm -f $(7ZIP_CXX_OBJ) $(7ZIP_C_OBJ) 7zip.a

all: 7zip.a

.PHONY: clean all<commit_msg>Use configured ar for cross compiling.<commit_after>CC ?= gcc
CXX ?= g++
AR ?= ar

CFLAGS += -W -Wall -Wextra -O2
CXXFLAGS += -W -Wall -Wextra -std=c++11 -O2 -ICPP

7ZIP_CXX_SRC = CPP/7zip/Archive/Common/ParseProperties.cpp \
               CPP/7zip/Archive/DeflateProps.cpp \
               CPP/7zip/Common/CWrappers.cpp \
               CPP/7zip/Common/FileStreams.cpp \
               CPP/7zip/Common/OutBuffer.cpp \
               CPP/7zip/Common/StreamUtils.cpp \
               CPP/7zip/Compress/DeflateEncoder.cpp \
               CPP/Common/MyString.cpp \
               CPP/Common/StringConvert.cpp \
               CPP/Common/StringToInt.cpp \
               CPP/NotWindows/FileIO.cpp \
               CPP/NotWindows/MyWindows.cpp \
               CPP/Windows/PropVariant.cpp \
               deflate7z.cpp
7ZIP_CXX_OBJ = $(7ZIP_CXX_SRC:.cpp=.o)
7ZIP_C_SRC =   C/Alloc.c \
               C/HuffEnc.c \
               C/LzFind.c \
               C/Sort.c
7ZIP_C_OBJ =   $(7ZIP_C_SRC:.c=.o)

%.o: %.cpp
	$(CXX) -c $(CXXFLAGS) -o $@ $<

%.o: %.c
	$(CC) -c $(CFLAGS) -o $@ $<

7zip.a: $(7ZIP_CXX_OBJ) $(7ZIP_C_OBJ)
	$(AR) rcs $@ $^

clean:
	rm -f $(7ZIP_CXX_OBJ) $(7ZIP_C_OBJ) 7zip.a

all: 7zip.a

.PHONY: clean all
{'fraction_non_alphanumeric': 0.14802494802494803, 'fraction_numerical': 0.02079002079002079, 'mean_word_length': 1.6323851203501094, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6559206', 'n_tokens_mistral': 1018, 'n_tokens_neox': 936, 'n_words': 142}