<commit_before>frame_container = FactlinkJailRoot.$factlinkCoreContainer[0]
iframe = document.createElement('iframe')
frame_container.appendChild(iframe)
FactlinkJailRoot.createReceiverEnvoy FactlinkJailRoot.annotatedSiteReceiver
iframe.id = "factlink-sidebar-frame"
iframe.src = "#{FactlinkConfig.api}/client/blank"
FactlinkJailRoot.factlinkCoreEnvoy = FactlinkJailRoot.createSenderEnvoy iframe.contentWindow

FactlinkJailRoot.openFactlinkModal = (id) -> FactlinkJailRoot.factlinkCoreEnvoy 'showFactlink', id

FactlinkJailRoot.$sidebarFrame = $(iframe)
<commit_msg>Measure iframe insert<commit_after>FactlinkJailRoot.createReceiverEnvoy FactlinkJailRoot.annotatedSiteReceiver

iframe = document.createElement('iframe')
iframe.id = "factlink-sidebar-frame"
iframe.src = "#{FactlinkConfig.api}/client/blank"
FactlinkJailRoot.$factlinkCoreContainer[0].appendChild(iframe)

FactlinkJailRoot.factlinkCoreEnvoy = FactlinkJailRoot.createSenderEnvoy iframe.contentWindow
FactlinkJailRoot.perf.add_timing_event('inserted core iframe')
FactlinkJailRoot.openFactlinkModal = (id) -> FactlinkJailRoot.factlinkCoreEnvoy 'showFactlink', id

FactlinkJailRoot.$sidebarFrame = $(iframe)

{'fraction_non_alphanumeric': 0.09829059829059829, 'fraction_numerical': 0.0017094017094017094, 'mean_word_length': 10.047169811320755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7553727', 'n_tokens_mistral': 383, 'n_tokens_neox': 359, 'n_words': 45}