<commit_before>/*!
 * Helper to decompose a packet of binary data into multiple arbitrary data
 * structures.
 */

use std::{cast, str, sys};
use std::libc::c_char;

/// An iterator that can be used to fetch typed arguments from a byte vector
pub struct ArgumentIterator<'self> {
	priv data: &'self [u8],
	priv pos: uint,
}

impl<'self> ArgumentIterator<'self> {
	/// Create a new argument iterator for the given byte vector
	pub fn new (data: &'self [u8]) -> ArgumentIterator<'self> {
		ArgumentIterator { data: data, pos: 0 }
	}<commit_msg>Small comment fixes<commit_after>/*!
 * Helper to decompose a packet of binary data into multiple arbitrary data
 * structures.
 */

use std::{cast, str, sys};
use std::libc::c_char;

/// An iterator that can be used to fetch typed arguments from a byte slice
pub struct ArgumentIterator<'self> {
	priv data: &'self [u8],
	priv pos: uint,
}

impl<'self> ArgumentIterator<'self> {
	/// Create a new argument iterator for the given byte slice
	pub fn new (data: &'self [u8]) -> ArgumentIterator<'self> {
		ArgumentIterator { data: data, pos: 0 }
	}
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0055147058823529415, 'mean_word_length': 4.2105263157894735, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '3255356', 'n_tokens_mistral': 336, 'n_tokens_neox': 335, 'n_words': 138}