<commit_before># Change to whatever your C++ compiler is
CC=g++

# Compile settings
CFLAGS=-c -Wall
LFLAGS=-lm

# Source files
SOURCES=src/JSON.cpp src/JSONValue.cpp src/demo/nix-main.cpp src/demo/example.cpp src/demo/testcases.cpp
OBJECTS=$(SOURCES:src/%.cpp=obj/%.o)

# Output
EXECUTABLE=JSONDemo

all:	$(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE):	$(OBJECTS) 
		$(CC) $(LFLAGS) $(OBJECTS) -o $@

obj/%.o:	src/%.cpp
		$(CC) $(CFLAGS) $(@:obj/%.o=src/%.cpp) -o $@

clean:
		rm -f $(OBJECTS) $(EXECUTABLE)
<commit_msg>Makefile fix to create obj directories when compiling fresh<commit_after># Change to whatever your C++ compiler is
CC=g++

# Compile settings
CFLAGS=-c -Wall
LFLAGS=-lm

# Source files
SOURCES=src/JSON.cpp src/JSONValue.cpp src/demo/nix-main.cpp src/demo/example.cpp src/demo/testcases.cpp
OBJECTS=$(SOURCES:src/%.cpp=obj/%.o)

# Output
EXECUTABLE=JSONDemo

all:	$(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE):	$(OBJECTS) 
		$(CC) $(LFLAGS) $(OBJECTS) -o $@

obj/%.o:	src/%.cpp
		@test -d $(@D) || mkdir -p $(@D)
		$(CC) $(CFLAGS) $(@:obj/%.o=src/%.cpp) -o $@

clean:
		rm -f $(OBJECTS) $(EXECUTABLE)

{'fraction_non_alphanumeric': 0.20468890892696123, 'fraction_numerical': 0.0, 'mean_word_length': 4.235849056603773, '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': '1574435', 'n_tokens_mistral': 482, 'n_tokens_neox': 448, 'n_words': 102}