<commit_before>import db
import json


def set_values():
    while True:
        key = raw_input("Set value for key (type exit to exit): ")
        if key == "exit":
            break
        data = raw_input("Value of {}: ".format(key))
        try:
            value = json.loads(data)
        except ValueError as e:
            value = data
        db.set_value(key, value)


def get_values():
    while True:
        key = raw_input("Get value for key (type exit to exit): ")
        if key == "exit":
            break
        print("Value of {} is: ".format(key))
        print(db.get_value(key))
<commit_msg>changed how get values are presented<commit_after>import db
import json


def set_values():
    while True:
        key = raw_input("Set value for key (type exit to exit): ")
        if key == "exit":
            break
        data = raw_input("Value of {}: ".format(key))
        try:
            value = json.loads(data)
        except ValueError as e:
            value = data
        db.set_value(key, value)


def get_values():
    while True:
        key = raw_input("Get value for key (type exit to exit): ")
        if key == "exit":
            break
        print("Value of {} is: ".format(key))
        value = json.dumps(db.get_value(key), indent=4)
        print(value)

{'fraction_non_alphanumeric': 0.11855273287143957, 'fraction_numerical': 0.0007698229407236335, 'mean_word_length': 1.9082774049217002, 'pattern_counts': {'":': 4, '<': 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': '7169920', 'n_tokens_mistral': 383, 'n_tokens_neox': 382, 'n_words': 124}