<commit_before>PREFIX = /usr/local
BINDIR = $(PREFIX)/bin

PROGRAMS = websocket-client websocket-server

export GOPATH = $(CURDIR)
GOBUILDFLAGS =
# Alternate flags to use gccgo, allowing cross-compiling for x86 from
# x86_64, and presumably better optimization. Install this package:
#   apt-get install gccgo-multilib
# GOBUILDFLAGS = -compiler gccgo -gccgoflags "-O3 -m32 -static-libgo"

all: websocket-server

%: $(GOPATH)/src/%/*.go
	go build $(GOBUILDFLAGS) "$*"

# websocket-client has a special rule because "go get" is necessary.
websocket-client: $(GOPATH)/src/websocket-client/*.go
	go get -d $(GOBUILDFLAGS) websocket-client
	go build $(GOBUILDFLAGS) websocket-client

install:
	mkdir -p "$(BINDIR)"
	cp -f websocket-server "$(BINDIR)"

clean:
	rm -f $(PROGRAMS)

fmt:
	go fmt $$(basename -a src/*)<commit_msg>fmt only our own programs.<commit_after>PREFIX = /usr/local
BINDIR = $(PREFIX)/bin

PROGRAMS = websocket-client websocket-server

export GOPATH = $(CURDIR)
GOBUILDFLAGS =
# Alternate flags to use gccgo, allowing cross-compiling for x86 from
# x86_64, and presumably better optimization. Install this package:
#   apt-get install gccgo-multilib
# GOBUILDFLAGS = -compiler gccgo -gccgoflags "-O3 -m32 -static-libgo"

all: websocket-server

%: $(GOPATH)/src/%/*.go
	go build $(GOBUILDFLAGS) "$*"

# websocket-client has a special rule because "go get" is necessary.
websocket-client: $(GOPATH)/src/websocket-client/*.go
	go get -d $(GOBUILDFLAGS) websocket-client
	go build $(GOBUILDFLAGS) websocket-client

install:
	mkdir -p "$(BINDIR)"
	cp -f websocket-server "$(BINDIR)"

clean:
	rm -f $(PROGRAMS)

fmt:
	go fmt $(PROGRAMS)
{'fraction_non_alphanumeric': 0.1331306990881459, 'fraction_numerical': 0.01094224924012158, 'mean_word_length': 4.450331125827814, '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': '5899917', 'n_tokens_mistral': 600, 'n_tokens_neox': 568, 'n_words': 169}