<commit_before>build:
	python3 setup.py build

run:
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/boost/lib/:/home/kurazu/apps/v8/out/x64.release/lib.target LD_DEBUG=all LD_DEBUG_OUTPUT=/tmp/ld.log python3 -c "import runjs"

clean:
	rm -rf ./build

all: clean run


simple:
	g++ helloworld.cpp -o helloworld -Wl,--start-group /home/kurazu/apps/v8/out/native/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread -std=c++0x

dwa:
	g++ helloworld.cpp -o helloworld -I/home/kurazu/apps/v8 -Wl,--start-group /home/kurazu/apps/v8/out/native/obj.target/{tools/gyp/libv8_{base,libbase,nosnapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread -std=c++0x

runsm: build
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/spider_monkey/lib python3 -c "import runjs; f = runjs.JSFunc(); print(f())"

shell:
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/spider_monkey/lib python3<commit_msg>added make target to start gdb<commit_after>build:
	python3 setup.py build

run:
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/boost/lib/:/home/kurazu/apps/v8/out/x64.release/lib.target LD_DEBUG=all LD_DEBUG_OUTPUT=/tmp/ld.log python3 -c "import runjs"

clean:
	rm -rf ./build

all: clean run


simple:
	g++ helloworld.cpp -o helloworld -Wl,--start-group /home/kurazu/apps/v8/out/native/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread -std=c++0x

dwa:
	g++ helloworld.cpp -o helloworld -I/home/kurazu/apps/v8 -Wl,--start-group /home/kurazu/apps/v8/out/native/obj.target/{tools/gyp/libv8_{base,libbase,nosnapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread -std=c++0x

runsm: build
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/spider_monkey/lib python3 -c "import runjs; f = runjs.JSFunc(); print(f())"

shell:
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/spider_monkey/lib python3

gdb:
	echo "import runjs; f = runjs.JSFunc(); print(f())"
	cd /home/kurazu/workspace/bridge/build/lib.linux-x86_64-3.4 && LD_LIBRARY_PATH=.:/home/kurazu/apps/spider_monkey/lib gdb python3
{'fraction_non_alphanumeric': 0.17569721115537848, 'fraction_numerical': 0.03147410358565737, 'mean_word_length': 4.5553097345132745, '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': '3148824', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1079, 'n_words': 138}