<commit_before>"use strict";

function buildTopicInfo(topic){
  let title = `<h1>${topic.title}</h1>`;
  let author = `<small>${topic.author}<small>`;
  
  return [title, author];
}

let topic = getCurrentTopic();
let [topicTitle, topicAuthor] = buildTopicInfo(topic);<commit_msg>Refactoring. Start using modules<commit_after>"use strict";

import isTopicValid from "./is-topic-valid.js";

let topic = {
  title: "ES2015",
  author: { name: "Sam", isBlocked: false }
};

isTopicValid(topic);
{'fraction_non_alphanumeric': 0.1710794297352342, 'fraction_numerical': 0.012219959266802444, 'mean_word_length': 5.56, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7077873', 'n_tokens_mistral': 173, 'n_tokens_neox': 166, 'n_words': 38}