<commit_before># 
# Helper for the host, to run a specie/dataset instance of the Knetminer Docker container. 
# 
# Variables influencing this scripts:
#
# $1 = directory name under $KNET_DATASET_DIR (eg, arabidopsis, wheat).
#
# KNET_HOST_DATA_DIR # host directory where to put knowledge-network.oxl and to be used as data directory
# KNET_IS_NEO4J # any non-null will run the container in Neo4j mode, against a Neo4j server
# KNET_NEO4J_URL # Neo4j bolt:// URL pointing to the DB server you want to use (ignored if KNET_IS_NEO4J not set) 
# KNET_NEO4J_USER # Neo4j login user (defult is neo4j)
# KNET_NEO4J_PWD #  default is test
#
# KNET_HOST_CONFIG_DIR # directory where to place instantiated configuration files (default is /root/knetminer-config in the container) 
# KNET_DATASET_DIR # directory where to get datasets (default is 'species' and is relative to the knetminer codebase's root) 
# KNET_HOST_CODEBASE_DIR # dev option, client/configuration will be updated with code from this dir on the host
# KNET_DOCKER_OPTS # custom options to be passed to 'docker run' (-p 8080:8080 -it ARE NOT set if this is non-null)
#  

dataset_id="$1"
if [ "$dataset_id" == "" ] && [ "$KNET_DATASET_DIR" == "" ]; then
	instance_dir=''	<commit_msg>Minor re-arrangement of docker-run.sh<commit_after># 
# Helper for the host, to run a specie/dataset instance of the Knetminer Docker container. 
# 
# Variables influencing this scripts:
#
# $1 = directory name under $KNET_DATASET_DIR (eg, arabidopsis, wheat).
#
# KNET_HOST_CONFIG_DIR # host directory where to place instantiated configuration files (default is /root/knetminer-config in the container) 
# KNET_DATASET_DIR # container directory where to get datasets (default is 'species' and is relative to the knetminer codebase's root) 
# KNET_HOST_CODEBASE_DIR # dev option, client/configuration will be updated with code from this dir on the host
# KNET_DOCKER_OPTS # custom options to be passed to 'docker run' (-p 8080:8080 -it ARE NOT set if this is non-null)
#
# KNET_HOST_DATA_DIR # host directory where to put knowledge-network.oxl and to be used as data directory
# KNET_IS_NEO4J # any non-null will run the container in Neo4j mode, against a Neo4j server
# KNET_NEO4J_URL # Neo4j bolt:// URL pointing to the DB server you want to use (ignored if KNET_IS_NEO4J not set) 
# KNET_NEO4J_USER # Neo4j login user (defult is neo4j)
# KNET_NEO4J_PWD #  default is <PASSWORD>
#  

dataset_id="$1"
if [ "$dataset_id" == "" ] && [ "$KNET_DATASET_DIR" == "" ]; then
	instance_dir=''	
{'fraction_non_alphanumeric': 0.08198019801980198, 'fraction_numerical': 0.015841584158415842, 'mean_word_length': 4.702031602708804, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5262830', 'n_tokens_mistral': 899, 'n_tokens_neox': 869, 'n_words': 315}