<commit_before>def flatten_parameters_to_string(l)
    if l.respond_to? :each
        val =  l.flatten.join(",")
    end
    #puts "val", val
    return val
end<commit_msg>Return value when passed non-iterable<commit_after>def flatten_parameters_to_string(l)
    #flatten is recursive in ruby
    if l.respond_to? :each
        val =  l.flatten.join(",")
        return val
    else
       return l;
    end
end

{'fraction_non_alphanumeric': 0.09466019417475728, 'fraction_numerical': 0.0, 'mean_word_length': 2.720720720720721, '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': '6353435', 'n_tokens_mistral': 143, 'n_tokens_neox': 142, 'n_words': 36}