<commit_before>src = File.expand_path(File.dirname(__FILE__))
installdest = RbConfig::CONFIG['sitelibdir']
File.write("Makefile", <<-END
.PHONY: all
SRC=#{src}
DEST=$(shell pwd)

all: $(wildcard $(SRC)/*.rs)
\t cd $(SRC) && cargo build --release && ([[ "$(SRC)" = "$(DEST)" ]] && true || ln -s $(SRC)/target $(DEST)/target)
\t mv target/release/librustdown.dylib librustdown.bundle
#\tclang -dynamic -bundle -o librustdown.bundle target/release/librustdown.dylib

install:
\tinstall librustdown.bundle #{installdest}<commit_msg>don't depend on bash<commit_after>src = File.expand_path(File.dirname(__FILE__))
installdest = RbConfig::CONFIG['sitelibdir']
File.write("Makefile", <<-END
.PHONY: all
SRC=#{src}
DEST=$(shell pwd)

all: $(wildcard $(SRC)/*.rs)
\t cd $(SRC) && cargo build --release && ([ "$(SRC)" = "$(DEST)" ] && true || ln -s $(SRC)/target $(DEST)/target)
\t mv target/release/librustdown.dylib librustdown.bundle
#\tclang -dynamic -bundle -o librustdown.bundle target/release/librustdown.dylib

install:
\tinstall librustdown.bundle #{installdest}
{'fraction_non_alphanumeric': 0.19698397737983034, 'fraction_numerical': 0.0, 'mean_word_length': 5.555555555555555, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4196564', 'n_tokens_mistral': 414, 'n_tokens_neox': 393, 'n_words': 84}