<commit_before>#! /usr/bin/env python
#
# Support module generated by PAGE version 4.8.6
# In conjunction with Tcl version 8.6
#    Nov 25, 2016 06:58:19 PM


import sys
from copy import deepcopy
from . import form_duration
from . import mainapp

try:
    from Tkinter import *
except ImportError:
    from tkinter import *

try:
    import ttk
    py3 = 0
except ImportError:
    import tkinter.ttk as ttk
    py3 = 1

""" Model
"""

orig_activity_node = None
activity_node = None
callback_function = None

def set_Tk_var():
    # These are Tk variables used passed to Tkinter and must be
    # defined before the widgets using them are created.
    global var_msg_log
    var_msg_log = StringVar()

    global cmb_plot_type
    cmb_plot_type = StringVar()

    global txt_name
    txt_name = StringVar()


def cmd_cancel():
    print('activity_support.cmd_cancel')
    sys.stdout.flush()
    w.callback_function(w.orig_activity_node, None)
<commit_msg>re-refactor activity<commit_after>#! /usr/bin/env python
#
# Support module generated by PAGE version 4.8.6
# In conjunction with Tcl version 8.6
#    Nov 25, 2016 06:58:19 PM


import sys
from copy import deepcopy
from . import form_duration
from . import mainapp

try:
    from Tkinter import *
except ImportError:
    from tkinter import *

try:
    import ttk
    py3 = 0
except ImportError:
    import tkinter.ttk as ttk
    py3 = 1

""" Model
"""

def set_Tk_var():
    # These are Tk variables used passed to Tkinter and must be
    # defined before the widgets using them are created.
    global var_msg_log
    var_msg_log = StringVar()

    global cmb_plot_type
    cmb_plot_type = StringVar()

    global txt_name
    txt_name = StringVar()


def cmd_cancel():
    print('activity_support.cmd_cancel')
    sys.stdout.flush()
    w.callback_function(w.orig_activity_node, None)

{'fraction_non_alphanumeric': 0.0749185667752443, 'fraction_numerical': 0.02280130293159609, 'mean_word_length': 3.296037296037296, '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': '885787', 'n_tokens_mistral': 642, 'n_tokens_neox': 603, 'n_words': 197}