<commit_before>package ecc

///////////////////////////////////////////////////////////////////////
// Import external declarations

import (
	"fmt"
	"testing"
)

///////////////////////////////////////////////////////////////////////
//	public test method

func TestKeys(t *testing.T) {

	fmt.Println("********************************************************")
	fmt.Println("ecc/keys Test")
	fmt.Println("********************************************************")

	var prv *PrivateKey

	// check 32 keys
	fmt.Println("Checking if public key point is on curve and consistent:")
	fmt.Print("    ")
	failed := false
	for i := 0; i < 32; i++ {

		// generate new key
		prv = GenerateKeys()
		// get public key point
		pnt := prv.PublicKey.q
		tst := scalarMultBase(prv.d)

		if !(isOnCurve(pnt) && isEqual(pnt, tst)) {
			failed = true
			fmt.Print("-")
		} else {
			fmt.Print("+")
		}
	}

	if failed {
		t.Fail()
		fmt.Println(" Failed")
	} else {
		fmt.Println(" O.K.")
	}
}
<commit_msg>Adjusted to public methods for point operations.<commit_after>package ecc

///////////////////////////////////////////////////////////////////////
// Import external declarations

import (
	"fmt"
	"testing"
)

///////////////////////////////////////////////////////////////////////
//	public test method

func TestKeys(t *testing.T) {

	fmt.Println("********************************************************")
	fmt.Println("ecc/keys Test")
	fmt.Println("********************************************************")

	var prv *PrivateKey

	// check 32 keys
	fmt.Println("Checking if public key point is on curve and consistent:")
	fmt.Print("    ")
	failed := false
	for i := 0; i < 32; i++ {

		// generate new key
		prv = GenerateKeys()
		// get public key point
		pnt := prv.Q
		tst := ScalarMultBase(prv.D)

		if !(IsOnCurve(pnt) && IsEqual(pnt, tst)) {
			failed = true
			fmt.Print("-")
		} else {
			fmt.Print("+")
		}
	}

	if failed {
		t.Fail()
		fmt.Println(" Failed")
	} else {
		fmt.Println(" O.K.")
	}
}

{'fraction_non_alphanumeric': 0.3758120939530235, 'fraction_numerical': 0.004997501249375313, 'mean_word_length': 1.9836065573770492, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4004074', 'n_tokens_mistral': 654, 'n_tokens_neox': 587, 'n_words': 152}