<commit_before># gozerlib/version.py
#
#

""" version related stuff. """

## gozerlib imports

from gozerlib.datadir import getdatadir

## basic imports

import os

## defines

version = "0.5 RC1"

## getversion function

def getversion(txt=""):
    """ return a version string. """
    try: tip = open(getdatadir() + os.sep + "TIP", 'r').read()
    except: tip = None
    global version
    if tip: version += " " + tip
    if txt: return "JSONBOT %s %s" % (version, txt)
    else: return "JSONBOT %s" % version<commit_msg>do proper version<commit_after># gozerlib/version.py
#
#

""" version related stuff. """

## gozerlib imports

from gozerlib.datadir import getdatadir

## basic imports

import os

## defines

version = "0.5 RC1"

## getversion function

def getversion(txt=""):
    """ return a version string. """
    try: tip = open(getdatadir() + os.sep + "TIP", 'r').read()
    except: tip = None
    if tip: version2 = version + " " + tip
    else: version2 = version
    if txt: return "JSONBOT %s %s" % (version2, txt)
    else: return "JSONBOT %s" % version2
{'fraction_non_alphanumeric': 0.15083798882681565, 'fraction_numerical': 0.00931098696461825, 'mean_word_length': 3.3522267206477734, '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': '614549', 'n_tokens_mistral': 376, 'n_tokens_neox': 375, 'n_words': 113}