<commit_before>package example

import

// import the neovim package
"github.com/myitcv/neovim"

type Example struct {
	client *neovim.Client
	log    neovim.Logger
}

func (n *Example) Init(c *neovim.Client, l neovim.Logger) error {
	n.client = c
	n.log = l

	err := n.client.RegisterSyncRequestHandler(":function:GetANumber", n.newGetANumberResponder)
	if err != nil {
		n.log.Fatalf("Could not register sync request handler: %v\n", err)
	}

	ch, d := n.newBufCreateChanHandler()
	err = n.client.RegisterAsyncRequestHandler(":autocmd:BufCreate:*", d)
	if err != nil {
		n.log.Fatalf("Could not register async request handler: %v\n", err)
	}
	go n.subLoop(ch)

	return nil
}

func (n *Example) Shutdown() error {
	return nil
}

type Blah int

type BufCreate struct {
	BufNumber int
}
<commit_msg>Remove straggling variable<commit_after>package example

import

// import the neovim package
"github.com/myitcv/neovim"

type Example struct {
	client *neovim.Client
	log    neovim.Logger
}

func (n *Example) Init(c *neovim.Client, l neovim.Logger) error {
	n.client = c
	n.log = l

	err := n.client.RegisterSyncRequestHandler(":function:GetANumber", n.newGetANumberResponder)
	if err != nil {
		n.log.Fatalf("Could not register sync request handler: %v\n", err)
	}

	ch, d := n.newBufCreateChanHandler()
	err = n.client.RegisterAsyncRequestHandler(":autocmd:BufCreate:*", d)
	if err != nil {
		n.log.Fatalf("Could not register async request handler: %v\n", err)
	}
	go n.subLoop(ch)

	return nil
}

func (n *Example) Shutdown() error {
	return nil
}

type BufCreate struct {
	BufNumber int
}

{'fraction_non_alphanumeric': 0.12578616352201258, 'fraction_numerical': 0.0, 'mean_word_length': 4.216393442622951, 'pattern_counts': {'":': 4, '<': 3, '<?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': '2084301', 'n_tokens_mistral': 595, 'n_tokens_neox': 582, 'n_words': 153}