<commit_before>default: update

include ../common.mk
include ../local.mk
include ../params.mk

N:=5
QNAME=${SUBDIR}p${PAPROSPECT_PARAMS_ID}
RUNSET=runB


update:
	make cleanest
	make done.ids ${RUNSET}-todo.ids ${RUNSET}-todo-N${N}
	make ${RUNSET}-todo-N${N}-qload

%.load: %-M${PAPROSPECT_PMODELSET_ID}.load;
%-M${PAPROSPECT_PMODELSET_ID}.load: %.ids
	(time -p xargs -n10 <$< run-paprospect -p${PAPROSPECT_PARAMS_ID} -M${PAPROSPECT_PMODELSET_ID}) >$@.err 2>&1
	/bin/mv -f $@.err $@

.done.ids:
	psql -Atc 'select pseq_id from run_history where params_id=${PAPROSPECT_PARAMS_ID} and pmodelset_id=${PAPROSPECT_PMODELSET_ID}' >$@
<commit_msg>export PSIPRED_PATH<commit_after>default: update

include ../common.mk
include ../local.mk
include ../params.mk

PSIPRED_PATH:=${UNISON_HOME}/loading/pfpsipred/

export PSIPRED_PATH

N:=5
QNAME=${SUBDIR}p${PAPROSPECT_PARAMS_ID}
RUNSET=runB

update:
	make cleanest
	make done.ids ${RUNSET}-todo.ids ${RUNSET}-todo-N${N}
	make ${RUNSET}-todo-N${N}-qload

%.load: %-M${PAPROSPECT_PMODELSET_ID}.load;
%-M${PAPROSPECT_PMODELSET_ID}.load: %.ids
	(time -p xargs -n10 <$< run-paprospect -p${PAPROSPECT_PARAMS_ID} -M${PAPROSPECT_PMODELSET_ID}) >$@.err 2>&1
	/bin/mv -f $@.err $@.log

.done.ids:
	psql -Atc 'select pseq_id from run_history where params_id=${PAPROSPECT_PARAMS_ID} and pmodelset_id=${PAPROSPECT_PMODELSET_ID}' >$@

{'fraction_non_alphanumeric': 0.17733627667402502, 'fraction_numerical': 0.007358351729212656, 'mean_word_length': 5.415094339622642, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5879204', 'n_tokens_mistral': 637, 'n_tokens_neox': 604, 'n_words': 99}