<commit_before># Set the following PATHs before compiling COLi
ISL_INCLUDE_DIRECTORY=/Users/b/Documents/src/MIT/IR/isl_jan_2016_prefix/include/
ISL_LIB_DIRECTORY=/Users/b/Documents/src/MIT/IR/isl_jan_2016_prefix/lib/
HALIDE_SOURCE_DIRECTORY=/Users/b/Documents/src/MIT/halide/halide_src/
HALIDE_LIB_DIRECTORY=/Users/b/Documents/src/MIT/halide/halide_src/bin/

# Examples
#ISL_INCLUDE_DIRECTORY=/Users/b/Documents/src/MIT/IR/isl_jan_2016_prefix/include/
#ISL_LIB_DIRECTORY=/Users/b/Documents/src/MIT/IR/isl_jan_2016_prefix/lib/
#HALIDE_SOURCE_DIRECTORY=/Users/b/Documents/src/MIT/halide/halide_src/
#HALIDE_LIB_DIRECTORY=/Users/b/Documents/src/MIT/halide/halide_src/bin/

CXX=g++
CXXFLAGS=-g -std=c++11 -O3 -Wall
INCLUDES=-I${HALIDE_SOURCE_DIRECTORY}/include -I${HALIDE_SOURCE_DIRECTORY}/tools -Iinclude/ -I${ISL_INCLUDE_DIRECTORY}
LIBRARIES=-L${ISL_LIB_DIRECTORY} -lisl -L${HALIDE_LIB_DIRECTORY} -lHalide `libpng-config --cflags --ldflags`
HEADER_FILES=include/coli/core.h include/coli/debug.h
OBJ=build/coli_core.o build/coli_codegen_halide.o build/coli_codegen_c.o build/coli_debug.o
TUTO_GEN=build/tutorial_01_lib_generator
TUTO_BIN=build/tutorial_01

all: builddir tutorial

builddir:
	@if [ ! -d "build" ]; then mkdir -p build; fi

# Build the coli library object files.  The list of these files is in $(OBJ).
build/coli_%.o: src/coli_%.cpp $(HEADER_FILES)
	$(CXX) -c -fPIC ${CXXFLAGS} ${INCLUDES} $< -o $@
build/coli_codegen_%.o: src/coli_codegen_%.cpp include/coli/*.h
	$(CXX) -c -fPIC ${CXXFLAGS} ${INCLUDES} $< -o $@

# Build the tutorials.  First Object files need to be build, then the
# library generators need to be build and execute (so that they generate
# the libraries), then the wrapper should be built (wrapper are programs that call the
# library functions).
tutorial: $(OBJ) $(TUTO_GEN) $(TUTO_BIN)
build/tutorial_%_lib_generator: tutorials/tutorial_%.cpp
	$(CXX) ${CXXFLAGS} ${INCLUDES} ${OBJ} $< ${LIBRARIES} -o $@
	@DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${HALIDE_LIB_DIRECTORY}:${PWD}/build/ $@
build/tutorial_%: tutorials/wrapper_tutorial_%.cpp build/generated_lib_tutorial_%.o tutorials/wrapper_tutorial_%.h 
	$(CXX) ${CXXFLAGS} ${INCLUDES} $< $(word 2,$^) ${LIBRARIES} -o $@
	@DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${HALIDE_LIB_DIRECTORY}:${PWD}/build/ $@

doc:
	doxygen Doxyfile

clean:
	rm -rf *~ src/*~ include/*~ build/* doc/
<commit_msg>Updates<commit_after># Set the following PATHs before compiling COLi
ISL_INCLUDE_DIRECTORY=
ISL_LIB_DIRECTORY=
HALIDE_SOURCE_DIRECTORY=
HALIDE_LIB_DIRECTORY=

# Examples
#ISL_INCLUDE_DIRECTORY=/Users/b/Documents/src/MIT/IR/isl_jan_2016_prefix/include/
#ISL_LIB_DIRECTORY=/Users/b/Documents/src/MIT/IR/isl_jan_2016_prefix/lib/
#HALIDE_SOURCE_DIRECTORY=/Users/b/Documents/src/MIT/halide/halide_src/
#HALIDE_LIB_DIRECTORY=/Users/b/Documents/src/MIT/halide/halide_src/bin/

CXX=g++
CXXFLAGS=-g -std=c++11 -O3 -Wall
INCLUDES=-I${HALIDE_SOURCE_DIRECTORY}/include -I${HALIDE_SOURCE_DIRECTORY}/tools -Iinclude/ -I${ISL_INCLUDE_DIRECTORY}
LIBRARIES=-L${ISL_LIB_DIRECTORY} -lisl -L${HALIDE_LIB_DIRECTORY} -lHalide `libpng-config --cflags --ldflags`
HEADER_FILES=include/coli/core.h include/coli/debug.h
OBJ=build/coli_core.o build/coli_codegen_halide.o build/coli_codegen_c.o build/coli_debug.o
TUTO_GEN=build/tutorial_01_lib_generator
TUTO_BIN=build/tutorial_01

all: builddir tutorial

builddir:
	@if [ ! -d "build" ]; then mkdir -p build; fi

# Build the coli library object files.  The list of these files is in $(OBJ).
build/coli_%.o: src/coli_%.cpp $(HEADER_FILES)
	$(CXX) -c -fPIC ${CXXFLAGS} ${INCLUDES} $< -o $@
build/coli_codegen_%.o: src/coli_codegen_%.cpp include/coli/*.h
	$(CXX) -c -fPIC ${CXXFLAGS} ${INCLUDES} $< -o $@

# Build the tutorials.  First Object files need to be build, then the
# library generators need to be build and execute (so that they generate
# the libraries), then the wrapper should be built (wrapper are programs that call the
# library functions).
tutorial: $(OBJ) $(TUTO_GEN) $(TUTO_BIN)
build/tutorial_%_lib_generator: tutorials/tutorial_%.cpp
	$(CXX) ${CXXFLAGS} ${INCLUDES} ${OBJ} $< ${LIBRARIES} -o $@
	@DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${HALIDE_LIB_DIRECTORY}:${PWD}/build/ $@
build/tutorial_%: tutorials/wrapper_tutorial_%.cpp build/generated_lib_tutorial_%.o tutorials/wrapper_tutorial_%.h 
	$(CXX) ${CXXFLAGS} ${INCLUDES} $< $(word 2,$^) ${LIBRARIES} -o $@
	@DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${HALIDE_LIB_DIRECTORY}:${PWD}/build/ $@

doc:
	doxygen Doxyfile

clean:
	rm -rf *~ src/*~ include/*~ build/* doc/

{'fraction_non_alphanumeric': 0.14756637168141593, 'fraction_numerical': 0.008849557522123894, 'mean_word_length': 5.788288288288288, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1801741', 'n_tokens_mistral': 1910, 'n_tokens_neox': 1709, 'n_words': 320}