<commit_before>//  Copyright © 2015 <NAME>. All rights reserved.

public protocol Semigroup {
	func mappend(other: Self) -> Self
}

public func sconcat <S: Semigroup>(initial: S, t: [S]) -> S {
	return t.reduce(initial){ $0.mappend($1) }
}

public protocol Monoid: Semigroup {
	static var mempty: Self { get }
}

public protocol Foldable {
	typealias T
	func foldMap<M: Monoid>(f: T -> M) -> M
}<commit_msg>Remove sconcat (no need)<commit_after>//  Copyright © 2015 <NAME>. All rights reserved.

public protocol Semigroup {
	func mappend(other: Self) -> Self
}

public protocol Monoid: Semigroup {
	static var mempty: Self { get }
}

public protocol Foldable {
	typealias T
	func foldMap<M: Monoid>(f: T -> M) -> M
}
{'fraction_non_alphanumeric': 0.1340782122905028, 'fraction_numerical': 0.013966480446927373, 'mean_word_length': 3.9448275862068964, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 15, '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': '4119750', 'n_tokens_mistral': 260, 'n_tokens_neox': 245, 'n_words': 85}