<commit_before>#!/bin/bash
#
# $1 = server directory to archive

if [[ "x$#" != "x1" ]]; then
	echo "Usage: ${0} <server directory>"  &&
	exit 1
fi &&

# Include these files/folders
archiveList="asm/ \
	config.sh \
	config/ \
	forge*.jar \
	libraries/ \
	minecraft_server.1.12.2.jar \
	modpack/ \
	mods/ \
	scripts/ \
	server.properties.template \
	start.sh"

# Exclude these files/folders
excludeList="config/purpleirc/bots/* \
			 mods/ImmersiveEngineering*-core.jar \
			 libraries/org/minimallycorrect/mixin/Mixin*/Mixin*.jar \
			 libraries/org/minimallycorrect/modpatcher/ModPatcher*/ModPatcher*.jar"

cd "${1}" &&
zip -r ../"${1///}".zip ${archiveList} --exclude ${excludeList} &&
cd -<commit_msg>make-serverpack.sh: Genericify for all Minecraft versions<commit_after>#!/bin/bash
#
# $1 = server directory to archive

if [[ "x$#" != "x1" ]]; then
	echo "Usage: ${0} <server directory>"  &&
	exit 1
fi &&

# Include these files/folders
archiveList="asm/ \
	config.sh \
	config/ \
	forge*.jar \
	libraries/ \
	minecraft_server*.jar \
	modpack/ \
	mods/ \
	scripts/ \
	server.properties.template \
	start.sh"

# Exclude these files/folders
excludeList="config/purpleirc/bots/* \
			 mods/ImmersiveEngineering*-core.jar \
			 libraries/org/minimallycorrect/mixin/Mixin*/Mixin*.jar \
			 libraries/org/minimallycorrect/modpatcher/ModPatcher*/ModPatcher*.jar"

cd "${1}" &&
zip -r ../"${1///}".zip ${archiveList} --exclude ${excludeList} &&
cd -
{'fraction_non_alphanumeric': 0.18049792531120332, 'fraction_numerical': 0.011065006915629323, 'mean_word_length': 3.3716012084592144, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7085884', 'n_tokens_mistral': 573, 'n_tokens_neox': 533, 'n_words': 101}