<commit_before><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Rinon</title>
        <link rel="stylesheet" href="./style.css" type="text/css">
    </head>
    <body>
        <h1>Hello, Rinon!</h1>
        <div id="menu">
            <div>Menu</div>
            <span id="menuList"></span>
            <script>
                const storage = require('electron-json-storage');

                storage.get('menu', function (error, data) {
                    if (error) throw error;
                    if (data) {
                        const webview = document.getElementById("webview");
                        webview.setAttribute("src", data.main);
                        const menuList = document.getElementById("menuList");
                        for(var i = 0; i < data.sub.length;i++) {
                            console.log(data.sub[i]);
                            var button = document.createElement("button");
                            button.setAttribute("onclick", 'webview.setAttribute("src", this.innerHTML);');
                            button.innerHTML = data.sub[i];
                            var p = document.createElement("p");
                            p.appendChild(button);
                            menuList.appendChild(p);
                        }
                    }
                });
            </script>
        </div>
        <div id="content">
            <webview id="webview">Loading...</webview>
            <script>
                onload = function() {
                    const webview = document.getElementById("webview");
                    const indicator = document.querySelector(".indicator");

                    let loadstart;
                    let loadstop;
                    if(indicator) {
                        loadstart = function() {<commit_msg>Change to enable using button name<commit_after><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Rinon</title>
        <link rel="stylesheet" href="./style.css" type="text/css">
    </head>
    <body>
        <h1>Hello, Rinon!</h1>
        <div id="menu">
            <div>Menu</div>
            <span id="menuList"></span>
            <script>
                const storage = require('electron-json-storage');

                storage.get('menu', function (error, data) {
                    if (error) throw error;
                    if (data) {
                        const webview = document.getElementById("webview");
                        webview.setAttribute("src", data.main.url);
                        const menuList = document.getElementById("menuList");
                        for(var i = 0; i < data.sub.length;i++) {
                            var button = document.createElement("button");
                            button.setAttribute("onclick", 'webview.setAttribute("src", "' + data.sub[i].url + '");');
                            button.innerHTML = data.sub[i].name;
                            var p = document.createElement("p");
                            p.appendChild(button);
                            menuList.appendChild(p);
                        }
                    }
                });
            </script>
        </div>
        <div id="content">
            <webview id="webview">Loading...</webview>
            <script>
                onload = function() {
                    const webview = document.getElementById("webview");
                    const indicator = document.querySelector(".indicator");

                    let loadstart;
                    let loadstop;
                    if(indicator) {
                        loadstart = function() {
{'fraction_non_alphanumeric': 0.12699270467441232, 'fraction_numerical': 0.0021615779519048904, 'mean_word_length': 1.2061978545887961, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7072990', 'n_tokens_mistral': 905, 'n_tokens_neox': 864, 'n_words': 170}