<commit_before>package geoscript.layer

import geoscript.feature.Feature
import geoscript.filter.Filter
import org.geotools.feature.FeatureIterator
import org.geotools.data.FeatureReader
import org.opengis.feature.simple.SimpleFeature
import org.opengis.feature.simple.SimpleFeatureType
/**
 * A Cursor is a Iterator over a Feature objects
 */
class Cursor {

    /**
     * The Layer
     */
    private Layer layer

    /**
     * The GeoTools FeatureReader
     */
    private FeatureReader<SimpleFeatureType, SimpleFeature> iter

    /**
     * Create a new Cursor with a FeatureReader and a Layer
     */
    Cursor(FeatureReader<SimpleFeatureType, SimpleFeature> iter, Layer layer) {
        this.iter = iter
        this.layer = layer
    }

    /**
     * Get the next Feature
     */
    Feature next() {
        new Feature(iter.next())<commit_msg>Minor formatting.  Adding empty line<commit_after>package geoscript.layer

import geoscript.feature.Feature
import geoscript.filter.Filter
import org.geotools.feature.FeatureIterator
import org.geotools.data.FeatureReader
import org.opengis.feature.simple.SimpleFeature
import org.opengis.feature.simple.SimpleFeatureType

/**
 * A Cursor is a Iterator over a Feature objects
 */
class Cursor {

    /**
     * The Layer
     */
    private Layer layer

    /**
     * The GeoTools FeatureReader
     */
    private FeatureReader<SimpleFeatureType, SimpleFeature> iter

    /**
     * Create a new Cursor with a FeatureReader and a Layer
     */
    Cursor(FeatureReader<SimpleFeatureType, SimpleFeature> iter, Layer layer) {
        this.iter = iter
        this.layer = layer
    }

    /**
     * Get the next Feature
     */
    Feature next() {
        new Feature(iter.next())
{'fraction_non_alphanumeric': 0.08793103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 2.8348017621145374, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3824271', 'n_tokens_mistral': 507, 'n_tokens_neox': 484, 'n_words': 131}