<commit_before>#
## (Re)builds Python metafile (__init__.py) 
# 
# overwritten by the specfile
DESTDIR="/"
PREFIX=/usr
##########
all: python wsdl 

install: python-install wsdl-install tests-install

clean: python-clean wsdl-clean 

uninstall: python-uninstall tests-uninstall

.PHONY: all install clean uninstall

##########
rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | head -1)
# somehow %{taglevel} is empty, turns out %{release} has what we want
rpmtaglevel:=$(shell rpm -q --specfile sfa.spec --queryformat="%{release}\n" 2> /dev/null | head -1)
VERSIONTAG=$(rpmversion)-$(rpmtaglevel)
SCMURL=should-be-redefined-by-specfile<commit_msg>provide a more decent default to SCMURL for version.py when not run from within a build box hopefully useful for when pushing onto pypi - if we can get that to work<commit_after>#
## (Re)builds Python metafile (__init__.py) 
# 
# overwritten by the specfile
DESTDIR="/"
PREFIX=/usr
##########
all: python wsdl 

install: python-install wsdl-install tests-install

clean: python-clean wsdl-clean 

uninstall: python-uninstall tests-uninstall

.PHONY: all install clean uninstall

##########
rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | head -1)
# somehow %{taglevel} is empty, turns out %{release} has what we want
rpmtaglevel:=$(shell rpm -q --specfile sfa.spec --queryformat="%{release}\n" 2> /dev/null | head -1)
VERSIONTAG=$(rpmversion)-$(rpmtaglevel)
# this used to be 'should-be-redefined-by-specfile' and it indeed should be
SCMURL=git://git.onelab.eu/sfa.git
{'fraction_non_alphanumeric': 0.1551176096630642, 'fraction_numerical': 0.003814367450731087, 'mean_word_length': 4.808118081180812, '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': '5403543', 'n_tokens_mistral': 545, 'n_tokens_neox': 514, 'n_words': 159}