<commit_before>#!/bin/bash

###############################
# Defaults
###############################

__size='128'
__quiet='0'
__verbose='0'
__very_verbose='0'
__force='0'
__re_use_xml='0'
export __pid="$$"
__debug='0'
__xml_only='0'
__name_only='0'
__mobile='0'
__time='0'
__should_warn='0'
__dry='0'
__list_changed='0'
__should_optimize='0'
__re_optimize='0'
__show_progress='0'
__render_optional='0'

###############################################################
# Setting up functions
###############################################################

# get set up
source "${__smelt_setup_bin}" &> /dev/null || { echo "Failed to load setup \"${__smelt_setup_bin}\""; exit 1; }

if [ -z "${__run_dir}" ]; then
    __error "Running directory has not been set for some reason"
fi

# temporary timer for quick timing
__time_var='temporary timer'
__tmp_time () {
__time "${__time_var}" "${1}"
}

# print help
__usage () {
echo "$(basename "${0}") <OPTIONS> <SIZE>

Renders the texture pack at the specified size (or default 128)
Order of options and size are not important.
<commit_msg>smelt_render no longer sources the setup file again, which would override some opions (--name, in particular)<commit_after>#!/bin/bash

###############################
# Defaults
###############################

__size='128'
__quiet='0'
__verbose='0'
__very_verbose='0'
__force='0'
__re_use_xml='0'
export __pid="$$"
__debug='0'
__xml_only='0'
__name_only='0'
__mobile='0'
__time='0'
__should_warn='0'
__dry='0'
__list_changed='0'
__should_optimize='0'
__re_optimize='0'
__show_progress='0'
__render_optional='0'

###############################################################
# Setting up functions
###############################################################

if [ -z "${__run_dir}" ]; then
    __error "Running directory has not been set for some reason"
fi

# temporary timer for quick timing
__time_var='temporary timer'
__tmp_time () {
__time "${__time_var}" "${1}"
}

# print help
__usage () {
echo "$(basename "${0}") <OPTIONS> <SIZE>

Renders the texture pack at the specified size (or default 128)
Order of options and size are not important.

{'fraction_non_alphanumeric': 0.2989738805970149, 'fraction_numerical': 0.02378731343283582, 'mean_word_length': 7.313953488372093, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4499732', 'n_tokens_mistral': 713, 'n_tokens_neox': 688, 'n_words': 185}