<commit_before>// Copyright 2017 <NAME> <<EMAIL>>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.

package main

import (
	"fmt"

	ui "github.com/gizak/termui"
)

// logs all events to the termui window
// stdout can also be redirected to a file and read with `tail -f`
func main() {
	err := ui.Init()
	if err != nil {
		panic(err)
	}
	defer ui.Close()

	for {
		e := <-ui.PollEvent()
		fmt.Printf("%v", e)
		switch e.ID {
		case "q", "<C-c>":
			return
		}
	}
}<commit_msg>Fix renaming PollEvent to PollEvents (Closes #203)<commit_after>// Copyright 2017 <NAME> <<EMAIL>>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.

package main

import (
	"fmt"

	ui "github.com/gizak/termui"
)

// logs all events to the termui window
// stdout can also be redirected to a file and read with `tail -f`
func main() {
	err := ui.Init()
	if err != nil {
		panic(err)
	}
	defer ui.Close()

	for {
		e := <-ui.PollEvents()
		fmt.Printf("%v", e)
		switch e.ID {
		case "q", "<C-c>":
			return
		}
	}
}
{'fraction_non_alphanumeric': 0.14424778761061946, 'fraction_numerical': 0.009734513274336283, 'mean_word_length': 2.88659793814433, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 11, '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': '7106155', 'n_tokens_mistral': 444, 'n_tokens_neox': 413, 'n_words': 154}