<commit_before>// Copyright 2009 <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 db

import "os"

// TODO: the new way of returning results from Execute()
type ResultSet interface {
	Iter() <-chan Result;
	Close() os.Error;<commit_msg>Added documentation.<commit_after>// Copyright 2009 <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 db

import "os"

// The simplest way of processing query results.
//
// Iter() returns a channel of Result objects which can be
// examined one at a time. Note that called Iter() several
// times will return the same channel over and over again.
//
// Close() shuts down the iteration mechanism and frees all
// associated resources. After a result set has been closed,
// Iter() will return nil.
type ResultSet interface {
	Iter() <-chan Result;
	Close() os.Error;
{'fraction_non_alphanumeric': 0.0931174089068826, 'fraction_numerical': 0.008097165991902834, 'mean_word_length': 3.4954545454545456, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4051504', 'n_tokens_mistral': 270, 'n_tokens_neox': 257, 'n_words': 144}