<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"

// ClassicConnections avoid the use of channels for results.
// They perform slightly better (at least while we wait for
// the Go runtime to get tuned) but are less convenient to
// use because the for/range construct doesn't apply.
//
// ExecuteClassic() is similar to Execute() except that it
// returns a ClassicResultSet (see below).
type ClassicConnection interface {
	Connection;
	ExecuteClassic(stat Statement, parameters ...) (Cursor, os.Error);
}

// ClassicResultSets offer the same functionality as regular
// ResultSets but without the use of channels.
//
// More() returns true if there are more results to fetch.
//
// Fetch() produces the next result.
//
// Close() frees all resources associated with the result
// set. After a call to close, no operations can be applied
// anymore.<commit_msg>TODO note.<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"

// ClassicConnections avoid the use of channels for results.
// They perform slightly better (at least while we wait for
// the Go runtime to get tuned) but are less convenient to
// use because the for/range construct doesn't apply.
//
// ExecuteClassic() is similar to Execute() except that it
// returns a ClassicResultSet (see below).
//
// TODO: replace Cursor with ClassicResultSet
type ClassicConnection interface {
	Connection;
	ExecuteClassic(stat Statement, parameters ...) (Cursor, os.Error);
}

// ClassicResultSets offer the same functionality as regular
// ResultSets but without the use of channels.
//
// More() returns true if there are more results to fetch.
//
// Fetch() produces the next result.
//
// Close() frees all resources associated with the result
// set. After a call to close, no operations can be applied
// anymore.
{'fraction_non_alphanumeric': 0.09055501460564752, 'fraction_numerical': 0.0038948393378773127, 'mean_word_length': 3.5065789473684212, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6829627', 'n_tokens_mistral': 531, 'n_tokens_neox': 516, 'n_words': 279}