<commit_before>package main

import (
	"fmt"
	"log"
	"math/rand"
	"net"
	"net/http"
	"time"

	"github.com/zserge/webview"
)

const (
	windowWidth  = 480
	windowHeight = 320
)

var indexHTML = fmt.Sprintf(`
<!doctype html>
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<style>* { margin: 0; padding: 0; box-sizing: border-box; }</style>
	</head>
	<body>
		<canvas id="canvas" width="%d" height="%d">
			Your browser doesn't support HTML5 canvas element.
		</canvas>
		<script type="text/javascript">
			window.drawData = {};
			function draw() {
				window.external.invoke_('draw');
				var canvas = document.getElementById('canvas');
				var ctx = canvas.getContext('2d');
				ctx.clearRect(0, 0, canvas.width, canvas.height);
				ctx.beginPath();
				ctx.moveTo(drawData.x1, drawData.y1);<commit_msg>example: fix invoke function name<commit_after>package main

import (
	"fmt"
	"log"
	"math/rand"
	"net"
	"net/http"
	"time"

	"github.com/zserge/webview"
)

const (
	windowWidth  = 480
	windowHeight = 320
)

var indexHTML = fmt.Sprintf(`
<!doctype html>
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<style>* { margin: 0; padding: 0; box-sizing: border-box; }</style>
	</head>
	<body>
		<canvas id="canvas" width="%d" height="%d">
			Your browser doesn't support HTML5 canvas element.
		</canvas>
		<script type="text/javascript">
			window.drawData = {};
			function draw() {
				window.external.invoke('draw');
				var canvas = document.getElementById('canvas');
				var ctx = canvas.getContext('2d');
				ctx.clearRect(0, 0, canvas.width, canvas.height);
				ctx.beginPath();
				ctx.moveTo(drawData.x1, drawData.y1);
{'fraction_non_alphanumeric': 0.17373134328358208, 'fraction_numerical': 0.01671641791044776, 'mean_word_length': 3.973293768545994, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '2853374', 'n_tokens_mistral': 699, 'n_tokens_neox': 616, 'n_words': 135}