<commit_before>obj-files = main.o Document.o Layer.o Record.o LayerGroup.o TextFormatter.o XmlFormatter.o PsdParser.o JsonFormatter.o

psdump: $(obj-files)
	g++ -arch x86_64 -L. -lpsd-0.9 $(obj-files) -o psdump

libpsd: adjustment.o
	gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -mfix-and-continue -gdwarf-2 -Ilibpsd-0.9/include -c libpsd-0.9/src/*.c
	libtool -static -arch_only x86_64 *.o -o libpsd-0.9.a

adjustment.o: libpsd-0.9/src/adjustment.c


main.o: src/main.cpp src/Document.h src/formatter/TextFormatter.h src/formatter/XmlFormatter.h src/formatter/JsonFormatter.h src/parser/PsdParser.h
	g++ -c -Ilibpsd-0.9/include src/main.cpp
Document.o: src/Document.cpp src/Document.h
	g++ -c src/Document.cpp
Layer.o: src/Layer.cpp src/Layer.h
	g++ -c src/Layer.cpp
Record.o: src/Record.cpp src/Record.h
	g++ -c src/Record.cpp
LayerGroup.o: src/LayerGroup.cpp src/LayerGroup.h
	g++ -c src/LayerGroup.cpp
TextFormatter.o: src/formatter/TextFormatter.cpp src/formatter/TextFormatter.h
	g++ -c src/formatter/TextFormatter.cpp
XmlFormatter.o: src/formatter/XmlFormatter.cpp src/formatter/XmlFormatter.h
	g++ -c src/formatter/XmlFormatter.cpp
JsonFormatter.o: src/formatter/JsonFormatter.cpp src/formatter/JsonFormatter.h
	g++ -c src/formatter/JsonFormatter.cpp
PsdParser.o: src/parser/PsdParser.cpp src/parser/PsdParser.h
	g++ -c -Ilibpsd-0.9/include src/parser/PsdParser.cpp


.PHONY: clean
clean:
	rm *.o<commit_msg>Update Makefile so that build products are placed in build directory.<commit_after>obj-files = main.o Document.o Layer.o Record.o LayerGroup.o TextFormatter.o XmlFormatter.o PsdParser.o JsonFormatter.o

psdump: $(obj-files) build/libpsd-0.9.a
	g++ -arch x86_64 -Lbuild -lpsd-0.9 $(obj-files) -o build/psdump

build/libpsd-0.9.a: adjustment.o
	gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -mfix-and-continue -gdwarf-2 -Ilibpsd-0.9/include -c libpsd-0.9/src/*.c
	libtool -static -arch_only x86_64 *.o -o build/libpsd-0.9.a

adjustment.o: libpsd-0.9/src/adjustment.c


main.o: src/main.cpp src/Document.h src/formatter/TextFormatter.h src/formatter/XmlFormatter.h src/formatter/JsonFormatter.h src/parser/PsdParser.h
	g++ -c -Ilibpsd-0.9/include src/main.cpp
Document.o: src/Document.cpp src/Document.h
	g++ -c src/Document.cpp
Layer.o: src/Layer.cpp src/Layer.h
	g++ -c src/Layer.cpp
Record.o: src/Record.cpp src/Record.h
	g++ -c src/Record.cpp
LayerGroup.o: src/LayerGroup.cpp src/LayerGroup.h
	g++ -c src/LayerGroup.cpp
TextFormatter.o: src/formatter/TextFormatter.cpp src/formatter/TextFormatter.h
	g++ -c src/formatter/TextFormatter.cpp
XmlFormatter.o: src/formatter/XmlFormatter.cpp src/formatter/XmlFormatter.h
	g++ -c src/formatter/XmlFormatter.cpp
JsonFormatter.o: src/formatter/JsonFormatter.cpp src/formatter/JsonFormatter.h
	g++ -c src/formatter/JsonFormatter.cpp
PsdParser.o: src/parser/PsdParser.cpp src/parser/PsdParser.h
	g++ -c -Ilibpsd-0.9/include src/parser/PsdParser.cpp


.PHONY: clean
clean:
	rm *.o
{'fraction_non_alphanumeric': 0.14509427932246724, 'fraction_numerical': 0.02237136465324385, 'mean_word_length': 3.9059561128526648, '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': '5570530', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1224, 'n_words': 240}