<commit_before>
MNT := /tmp/slack
TOKEN := $(shell cat ~/.slack | cut -d ' ' -f 3)

all: run

unmount:
	sudo umount $(MNT) 2>/dev/null || true

build:
	go build

run: unmount build
	./slackfs  -token $(TOKEN) $(MNT)

run-offline: unmount build
	./slackfs -offline info.json -token $(TOKEN) $(MNT)
<commit_msg>build: allow info.json to be overridden, and OPTIONS be specified<commit_after>
MNT := /tmp/slack
TOKEN := $(shell cat ~/.slack | cut -d ' ' -f 3)
INFO ?= info.json

all: run

unmount:
	sudo umount $(MNT) 2>/dev/null || true

build:
	go build

run: unmount build
	./slackfs $(OPTIONS) -token $(TOKEN) $(MNT)

run-offline: unmount build
	./slackfs $(OPTIONS) -offline $(INFO) -token $(TOKEN) $(MNT)

{'fraction_non_alphanumeric': 0.17256011315417255, 'fraction_numerical': 0.005657708628005658, 'mean_word_length': 3.5095541401273884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5019706', 'n_tokens_mistral': 290, 'n_tokens_neox': 287, 'n_words': 89}