<commit_before>channel = object

pavlov_options = {current_user: current_user, ability: current_ability}
topic = Pavlov.interactor :'topics/get', channel.slug_title, pavlov_options

json.fact_displaystring truncate(subject.data.displaystring.to_s, length: 48)<commit_msg>Use new query in the add_fact_to_topic_activity<commit_after>channel = object

topic = query :'user_topics/by_slug_title', channel.slug_title

json.fact_displaystring truncate(subject.data.displaystring.to_s, length: 48)
{'fraction_non_alphanumeric': 0.09368635437881874, 'fraction_numerical': 0.008146639511201629, 'mean_word_length': 8.461538461538462, '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': '6890165', 'n_tokens_mistral': 164, 'n_tokens_neox': 160, 'n_words': 30}