<commit_before>################################################################################
##
## FILE: config.tcl
##
## DESCRIPTION: Holds all "global" (namespace) data as well as default
##              configuration settings for the jtag application.  Also
##              contains methods to update these settings.
##
## CVS: $Header: /p/learning/cvs/projects/jtag/config.tcl,v 1.1 2003-07-07 18:42:54 scottl Exp $
##
## REVISION HISTORY:
## $Log: config.tcl,v $
## Revision 1.1  2003-07-07 18:42:54  scottl
## Initial revision.
##
##
################################################################################


# PACKAGE DEPENDENCIES #
########################

# We need the file package to open and read the config file
#package require File


# NAMESPACE DECLARATION #
#########################
namespace eval ::Jtag::Config {

    # make all public procedures declared in this namespace available
    namespace export {[a-z]*}


    # NAMESPACE VARIABLES #
    #######################

    # Name of the configuration file
    variable configFile {.jconfig}

    # Configuration file data array.  Note that any of the default values for
    # the settings listed below will be overwritten if found in the 
    # configuration file.
    variable cnfg

    # Default selection mode
    set cnfg(def_mode) {crop}

    # Window size related each value should be a list with 2 positive numerical 
    # elements width then height, and window size must be larger than canvas
    # size.
    set cnfg(window_size) {900 900}
    set cnfg(canvas_size) {620 825}
    set cnfg(bucket_size) {50 50}

    # Position related options.
    set cnfg(window_pos) {0 0}

    # Journal component classification types and colours
    set cnfg(classifiers) {{body_text blue}      \
                           {title green}         \
                           {equation red}        \
                           {image orange}        \
                           {graph yellow}        \
                           {pg_number brown}     \
                          }<commit_msg>Renamed def_mode parameter to mode, now it will be used to hold the current selection mode in use by the appplication.<commit_after>################################################################################
##
## FILE: config.tcl
##
## DESCRIPTION: Holds all "global" (namespace) data as well as default
##              configuration settings for the jtag application.  Also
##              contains methods to update these settings.
##
## CVS: $Header: /p/learning/cvs/projects/jtag/config.tcl,v 1.2 2003-07-07 19:10:33 scottl Exp $
##
## REVISION HISTORY:
## $Log: config.tcl,v $
## Revision 1.2  2003-07-07 19:10:33  scottl
## Renamed def_mode parameter to mode, now it will be used to hold the current
## selection mode in use by the appplication.
##
## Revision 1.1  2003/07/07 18:42:54  scottl
## Initial revision.
##
##
################################################################################


# PACKAGE DEPENDENCIES #
########################

# We need the file package to open and read the config file
#package require File


# NAMESPACE DECLARATION #
#########################
namespace eval ::Jtag::Config {

    # make all public procedures declared in this namespace available
    namespace export {[a-z]*}


    # NAMESPACE VARIABLES #
    #######################

    # Name of the configuration file
    variable configFile {.jconfig}

    # Configuration file data array.  Note that any of the default values for
    # the settings listed below will be overwritten if found in the 
    # configuration file.
    variable cnfg

    # Default selection mode
    set cnfg(mode) {crop}

    # Window size related each value should be a list with 2 positive numerical 
    # elements width then height, and window size must be larger than canvas
    # size.
    set cnfg(window_size) {900 900}
    set cnfg(canvas_size) {620 825}
    set cnfg(bucket_size) {50 50}

    # Position related options.
    set cnfg(window_pos) {0 0}

    # Journal component classification types and colours
    set cnfg(classifiers) {{body_text blue}      \
                           {title green}         \
                           {equation red}        \
                           {image orange}        \
                           {graph yellow}        \
                           {pg_number brown}     \
                          }
{'fraction_non_alphanumeric': 0.17714932126696833, 'fraction_numerical': 0.02669683257918552, 'mean_word_length': 2.5368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1002752', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1151, 'n_words': 420}