<commit_before>

UNAME := $(shell uname)

ifeq ($(UNAME), Linux)
ifndef CXX
CXX = g++
endif
OPT_FLAG = -Ofast
GCC_INCLUDE = -I./lib/tclap/include/ -I./lib/protobuf/include/ -I./src
GCC_LIB = -L./lib/protobuf/lib/
CPP_FLAG = -std=c++0x -lnuma -lrt -lprotobuf
endif

ifeq ($(UNAME), Darwin)
ifndef CXX
CXX = clang++
endif
OPT_FLAG = -O3 -stdlib=libc++
GCC_INCLUDE = -I./lib/tclap/include/ -I./lib/protobuf/include/ -I./src
GCC_LIB = -L./lib/protobuf/lib/
CPP_FLAG = -std=c++0x  -lprotobuf
endif

COMPILE_CMD = $(CXX) $(OPT_FLAG) $(GCC_INCLUDE) $(GCC_LIB) $(CPP_FLAG)


#dw2:
#	$(COMPILE_CMD) \
#	src/main.cpp   \
#	src/dstruct/factor_graph/factor_graph.cpp \
#	src/dstruct/factor_graph/factor_graph.pb.cc \
#	src/app/gibbs/gibbs_sampling.cpp

dw: factor_graph.o factor_graph.pb.o gibbs_sampling.o main.o<commit_msg>static link<commit_after>

UNAME := $(shell uname)

ifeq ($(UNAME), Linux)
ifndef CXX
CXX = g++
endif
OPT_FLAG = -Ofast
GCC_INCLUDE = -I./lib/tclap/include/ -I./lib/protobuf/include/ -I./src
GCC_LIB = -L./lib/protobuf/lib/
CPP_FLAG = -std=c++0x -static-libgcc -Wl,-Bstatic -lnuma -lrt -lprotobuf
endif

ifeq ($(UNAME), Darwin)
ifndef CXX
CXX = clang++
endif
OPT_FLAG = -O3 -stdlib=libc++
GCC_INCLUDE = -I./lib/tclap/include/ -I./lib/protobuf/include/ -I./src
GCC_LIB = -L./lib/protobuf/lib/
CPP_FLAG = -std=c++0x -lprotobuf 
endif

COMPILE_CMD = $(CXX) $(OPT_FLAG) $(GCC_INCLUDE) $(GCC_LIB) $(CPP_FLAG)


#dw2:
#	$(COMPILE_CMD) \
#	src/main.cpp   \
#	src/dstruct/factor_graph/factor_graph.cpp \
#	src/dstruct/factor_graph/factor_graph.pb.cc \
#	src/app/gibbs/gibbs_sampling.cpp

dw: factor_graph.o factor_graph.pb.o gibbs_sampling.o main.o
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.004842615012106538, 'mean_word_length': 3.777456647398844, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '839364', 'n_tokens_mistral': 754, 'n_tokens_neox': 710, 'n_words': 130}