<commit_before>

module BTCompare
	module Diff

		# Parent class for Diff objects
		class Diff

			# [String] Working directory for this Diff
			attr_reader :path


			# Parent constructor. Causes a workspace to be created.
			def initialize
				@path = create_tmp_directory
			end


			private

			# Creates a temporary directory for storing diffs
			# @return [String] Path for the directory
			#   created.
			def create_tmp_directory
				path = "tmp.#{Random.new.rand(100000..999999)}"
				Dir.mkdir path
				return path
			end

		end
	end
end

<commit_msg>setting parent<commit_after>

module BTCompare
	module Diff

		# Parent class for Diff objects
		class Diff

			# [String] Working directory for this Diff
			attr_reader :path


			# Parent result that created this Diff
			attr_reader :parent


			# Parent constructor. Causes a workspace to be created.
			# @param parent [BTCompare::Result] the Result object that
			#   created this Diff
			def initialize parent
				@parent = parent
				@path = create_tmp_directory
			end


			private

			# Creates a temporary directory for storing diffs
			# @return [String] Path for the directory
			#   created.
			def create_tmp_directory
				path = "tmp.#{Random.new.rand(100000..999999)}"
				Dir.mkdir path
				return path
			end

		end
	end
end


{'fraction_non_alphanumeric': 0.06053639846743295, 'fraction_numerical': 0.01839080459770115, 'mean_word_length': 2.8525073746312684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3681143', 'n_tokens_mistral': 495, 'n_tokens_neox': 375, 'n_words': 142}