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

package main

import (
	"fmt"
	"github.com/fsouza/article-search/search"
	"io"
	"log"
	"os"
	"strings"
)

func main() {
	var query string
	store, err := search.NewIndex(os.Args[1:]...)
	if err != nil {
		log.Fatal(err)
	}
	for {
		fmt.Print("> ")
		_, err := fmt.Scanf("%s", &query)
		if err == io.EOF {
			break
		}
		articles, err := store.Search(query)
		if err != nil {
			fmt.Println(err)
			continue
		}
		fmt.Printf("Matching articles: %s.\n", strings.Join(articles, ", "))
	}
}<commit_msg>main: simplify output<commit_after>// Copyright 2013 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"fmt"
	"github.com/fsouza/article-search/search"
	"io"
	"log"
	"os"
	"strings"
)

func main() {
	var query string
	store, err := search.NewIndex(os.Args[1:]...)
	if err != nil {
		log.Fatal(err)
	}
	for {
		fmt.Print("> ")
		_, err := fmt.Scanf("%s", &query)
		if err == io.EOF {
			break
		}
		articles, err := store.Search(query)
		if err != nil {
			fmt.Println(err)
			continue
		}
		fmt.Printf("%s.\n", strings.Join(articles, ", "))
	}
}
{'fraction_non_alphanumeric': 0.170083523158694, 'fraction_numerical': 0.007593014426727411, 'mean_word_length': 3.0305810397553516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '687545', 'n_tokens_mistral': 542, 'n_tokens_neox': 495, 'n_words': 136}