<commit_before>OUT_DIR=bin
PREFIX ?= /usr/local

all: build force_link

install: build
	sudo cp `pwd`/bin/amber $(PREFIX)/bin/amber

build:
	@echo "Building amber in $(shell pwd)"
	@mkdir -p $(OUT_DIR)
	@crystal build -o $(OUT_DIR)/amber src/amber/cli.cr -p --no-debug

run:
	$(OUT_DIR)/amber

clean:
	rm -rf  $(OUT_DIR) .crystal .shards libs lib

link:
	@ln -s `pwd`/bin/amber $(PREFIX)/bin/amber

force_link:
	@echo "Symlinking `pwd`/bin/amber to $(PREFIX)/bin/amber"
	@ln -sf `pwd`/bin/amber $(PREFIX)/bin/amber<commit_msg>Removes sudo from makefile<commit_after>OUT_DIR=bin
PREFIX ?= /usr/local

all: build force_link

install: build
	cp ./bin/amber $(PREFIX)/bin

build:
	@echo "Building amber in $(shell pwd)"
	@mkdir -p $(OUT_DIR)
	@crystal build -o $(OUT_DIR)/amber src/amber/cli.cr -p --no-debug

run:
	$(OUT_DIR)/amber

clean:
	rm -rf  $(OUT_DIR) .crystal .shards libs lib

link:
	@ln -s ./bin/amber $(PREFIX)/bin/amber

force_link:
	@echo "Symlinking ./bin/amber to $(PREFIX)/bin/amber"
	@ln -sf ./bin/amber $(PREFIX)/bin/amber
{'fraction_non_alphanumeric': 0.1724470134874759, 'fraction_numerical': 0.0, 'mean_word_length': 3.810185185185185, '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': '2285355', 'n_tokens_mistral': 433, 'n_tokens_neox': 420, 'n_words': 109}