<commit_before># Extract the version from package.json
VERSION=$(shell $(CURDIR)/rpmversion.sh | cut -d - -f 1)
RELEASE=$(shell $(CURDIR)/rpmversion.sh | cut -d - -f 2)
PACKAGE_NAME := $(shell awk '/"name":/ {gsub(/[",]/, "", $$2); print $$2}' package.json)
ifeq ($(TEST_OS),)
TEST_OS = rhel-7-6
endif
ifeq ($(BROWSER),)
BROWSER = firefox
endif
export TEST_OS BROWSER CURDIR
VM_IMAGE=$(CURDIR)/test/images/$(TEST_OS)
ifneq ("$(wildcard ~/.config/codecov-token)",)
BUILD_RUN = node run build --with-coverage
else
BUILD_RUN = npm run build
endif

all: npm-install
	NODE_ENV=$(NODE_ENV) $(BUILD_RUN)

npm-install-zanata: npm-install
	npm install --no-save zanata-js

po-pull: npm-install-zanata
	NODE_ENV=$(NODE_ENV) npm run translations:pull
	NODE_ENV=$(NODE_ENV) npm run translations:po2json

po-push: npm-install-zanata
	NODE_ENV=$(NODE_ENV) npm run translations:push

npm-install:
	npm install

install: all
	mkdir -p /usr/share/cockpit/welder
	cp -r public/* /usr/share/cockpit/welder

dist-gzip: NODE_ENV=production
dist-gzip: all
	mkdir -p $(PACKAGE_NAME)-$(VERSION)
	cp -r public/ LICENSE.txt README.md $(PACKAGE_NAME)-$(VERSION)
	tar -czf $(PACKAGE_NAME)-$(VERSION).tar.gz $(PACKAGE_NAME)-$(VERSION)<commit_msg>Found a code coverage bug and fix it.<commit_after># Extract the version from package.json
VERSION=$(shell $(CURDIR)/rpmversion.sh | cut -d - -f 1)
RELEASE=$(shell $(CURDIR)/rpmversion.sh | cut -d - -f 2)
PACKAGE_NAME := $(shell awk '/"name":/ {gsub(/[",]/, "", $$2); print $$2}' package.json)
ifeq ($(TEST_OS),)
TEST_OS = rhel-7-6
endif
ifeq ($(BROWSER),)
BROWSER = firefox
endif
export TEST_OS BROWSER CURDIR
VM_IMAGE=$(CURDIR)/test/images/$(TEST_OS)
ifneq (,$(wildcard ~/.config/codecov-token))
BUILD_RUN = node run build --with-coverage
else
BUILD_RUN = npm run build
endif

all: npm-install
	NODE_ENV=$(NODE_ENV) $(BUILD_RUN)

npm-install-zanata: npm-install
	npm install --no-save zanata-js

po-pull: npm-install-zanata
	NODE_ENV=$(NODE_ENV) npm run translations:pull
	NODE_ENV=$(NODE_ENV) npm run translations:po2json

po-push: npm-install-zanata
	NODE_ENV=$(NODE_ENV) npm run translations:push

npm-install:
	npm install

install: all
	mkdir -p /usr/share/cockpit/welder
	cp -r public/* /usr/share/cockpit/welder

dist-gzip: NODE_ENV=production
dist-gzip: all
	mkdir -p $(PACKAGE_NAME)-$(VERSION)
	cp -r public/ LICENSE.txt README.md $(PACKAGE_NAME)-$(VERSION)
	tar -czf $(PACKAGE_NAME)-$(VERSION).tar.gz $(PACKAGE_NAME)-$(VERSION)
{'fraction_non_alphanumeric': 0.16490228013029315, 'fraction_numerical': 0.005700325732899023, 'mean_word_length': 4.836104513064133, 'pattern_counts': {'":': 2, '<': 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': '2662080', 'n_tokens_mistral': 978, 'n_tokens_neox': 907, 'n_words': 228}