<commit_before>"""Module for exporting Apriori algorithm results."""

from __future__ import print_function

def export_result(fname, num_trans, candidate_rules, minsup, minconf, itemset_sups, rule_confs, processing_time):
    """Prints association rules to Rules file."""  
    try:
        f = open('Rules', 'w')
        try:
            print("Summary:", file=f)
            print("---------------------------------------------------", file=f)
            print("Data filename: " + fname, file=f)
            print("Total rows in the original set: " + str(num_trans), file=f)
            print("Total rules discovered: " + str(len(candidate_rules)), file=f)
            print("The selected measures: Support=" + str("%.2f" % minsup) + " Confidence=" + str("%.2f" % minconf), file=f)<commit_msg>Changed single quotes to double quotes<commit_after>"""Module for exporting Apriori algorithm results."""

from __future__ import print_function

def export_result(fname, num_trans, candidate_rules, minsup, minconf, itemset_sups, rule_confs, processing_time):
    """Prints association rules to Rules file."""  
    try:
        f = open("Rules", "w")
        try:
            print("Summary:", file=f)
            print("---------------------------------------------------", file=f)
            print("Data filename: " + fname, file=f)
            print("Total rows in the original set: " + str(num_trans), file=f)
            print("Total rules discovered: " + str(len(candidate_rules)), file=f)
            print("The selected measures: Support=" + str("%.2f" % minsup) + " Confidence=" + str("%.2f" % minconf), file=f)
{'fraction_non_alphanumeric': 0.19641754169240272, 'fraction_numerical': 0.0024706609017912293, 'mean_word_length': 2.5064935064935066, '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': '5736290', 'n_tokens_mistral': 452, 'n_tokens_neox': 448, 'n_words': 126}