<commit_before>import insertHtmlBeforeEnd from './common/insertHtmlBeforeEnd';
import { scouttowerUrl } from './support/constants';
import { pcc } from './support/layout';

export default function injectTitan() {
  insertHtmlBeforeEnd(
    pcc().children[0].rows[2].cells[0],
    `<div class="fshBold fshCenter">[ <a href="${scouttowerUrl}">Scout Tower</a> ]</div>`,
  );
}
<commit_msg>titan-scout-event (#472)<commit_after>import sendEvent from './analytics/sendEvent';
import createAnchor from './common/cElement/createAnchor';
import createDiv from './common/cElement/createDiv';
import insertElement from './common/insertElement';
import insertTextBeforeEnd from './common/insertTextBeforeEnd';
import onclick from './common/onclick';
import { scouttowerUrl } from './support/constants';
import { pcc } from './support/layout';

export default function injectTitan() {
  const aLink = createAnchor({ href: scouttowerUrl, textContent: 'Scout Tower' });
  onclick(aLink, () => sendEvent('titan', 'scout tower'));
  const cDiv = createDiv({ className: 'fshBold fshCenter', textContent: '[ ' });
  insertElement(cDiv, aLink);
  insertTextBeforeEnd(cDiv, ' ]');
  insertElement(pcc().children[0].rows[2].cells[0], cDiv);
}

{'fraction_non_alphanumeric': 0.16366612111292964, 'fraction_numerical': 0.007364975450081833, 'mean_word_length': 5.7569060773480665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '6481523', 'n_tokens_mistral': 384, 'n_tokens_neox': 377, 'n_words': 86}