<commit_before>/**
 * SECTION: commit
 * @short_description: A single point in the history of an object
 *
 * The #WizCommit object represents a single point in the history of an object. It provides both
 * methods for visiting other points in history, getting metadata about the change such as when
 * it was committed and also for access the data as it was at that time.
 */

using GLib;
using Wiz.Private;

namespace Wiz {
	/**
	 * WizCommit:
	 *
	 * The WizCommit object represents a point in history, it allows the developer
	 * to access the parents and children of a version as well as gain access to
	 * the blob itself.
	 */
	public class Commit : GLib.Object {
		public Bit bit { get; construct; }
		public string version_uuid { get; construct; }

		private Wiz.Private.Commit commit;
		private Gee.HashMap<string,Wiz.File> _streams;

		public Commit(Bit bit, string version_uuid) {
			this.bit = bit;
			this.version_uuid = version_uuid;

			this.commit = this.bit.commits.lookup_commit(this.version_uuid);

			this._streams = new Gee.HashMap<string,Wiz.File> (str_hash, str_equal, str_equal);<commit_msg>Bit and CommitBuilder are in charge of Commits - no need to be creating them manually. So mark constructor as internal.<commit_after>/**
 * SECTION: commit
 * @short_description: A single point in the history of an object
 *
 * The #WizCommit object represents a single point in the history of an object. It provides both
 * methods for visiting other points in history, getting metadata about the change such as when
 * it was committed and also for access the data as it was at that time.
 */

using GLib;
using Wiz.Private;

namespace Wiz {
	/**
	 * WizCommit:
	 *
	 * The WizCommit object represents a point in history, it allows the developer
	 * to access the parents and children of a version as well as gain access to
	 * the blob itself.
	 */
	public class Commit : GLib.Object {
		public Bit bit { get; construct; }
		public string version_uuid { get; construct; }

		private Wiz.Private.Commit commit;
		private Gee.HashMap<string,Wiz.File> _streams;

		internal Commit(Bit bit, string version_uuid) {
			this.bit = bit;
			this.version_uuid = version_uuid;

			this.commit = this.bit.commits.lookup_commit(this.version_uuid);

			this._streams = new Gee.HashMap<string,Wiz.File> (str_hash, str_equal, str_equal);
{'fraction_non_alphanumeric': 0.07735042735042735, 'fraction_numerical': 0.0, 'mean_word_length': 3.8367768595041323, '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': '1413196', 'n_tokens_mistral': 710, 'n_tokens_neox': 675, 'n_words': 284}