<commit_before>module Homework

using Reactive

interact_ver = try Pkg.installed("Interact") catch v"0" end
if interact_ver != nothing && interact_ver < v"0.2.0"
    Pkg.checkout("Interact")
end

using Interact

using JSON
using Requests
import Requests: get

using Requires

using IJulia.CommManager

const global_config = Dict()

const state = Dict()

include("library.jl")

function reinit()

    # Load javascript into IJulia
    display(MIME"text/html"(),
        """<script>$(readall(Pkg.dir("Homework", "src", "homework.js")))</script>""")
<commit_msg>remove checkout Interact<commit_after>module Homework

using Reactive


using Interact

using JSON
using Requests
import Requests: get

using Requires

using IJulia.CommManager

const global_config = Dict()

const state = Dict()

include("library.jl")

function reinit()

    # Load javascript into IJulia
    display(MIME"text/html"(),
        """<script>$(readall(Pkg.dir("Homework", "src", "homework.js")))</script>""")

{'fraction_non_alphanumeric': 0.13441955193482688, 'fraction_numerical': 0.004073319755600814, 'mean_word_length': 4.851190476190476, 'pattern_counts': {'":': 0, '<': 8, '<?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': '755982', 'n_tokens_mistral': 344, 'n_tokens_neox': 330, 'n_words': 83}