<commit_before>require 'json'
require 'semantic'
require_relative 'parser/spec_parser'
require_relative 'writer/spec_writer'

module StructCore
	class Specfile
		class Configuration
			def initialize(name, profiles = [], overrides = {}, type = nil, source = nil)
				@name = name
				@profiles = profiles
				@overrides = overrides
				@raw_type = type
				@source = source
			end

			# @return [String]
			def type
				if @name == 'debug'
					'debug'
				elsif @name == 'release'
					'release'
				else
					@raw_type
				end
			end

			attr_writer :type
			attr_accessor :name
			attr_accessor :profiles
			attr_accessor :overrides
			attr_accessor :raw_type
			attr_accessor :source
		end

		class Target
			class Configuration
				def initialize(name, settings = {}, profiles = [], source = nil)
					@name = name
					@settings = settings
					@profiles = profiles || []
					@source = source<commit_msg>Added support for interchangeable debug/Debug release/Release configs<commit_after>require 'json'
require 'semantic'
require_relative 'parser/spec_parser'
require_relative 'writer/spec_writer'

module StructCore
	class Specfile
		class Configuration
			def initialize(name, profiles = [], overrides = {}, type = nil, source = nil)
				@name = name
				@profiles = profiles
				@overrides = overrides
				@raw_type = type
				@source = source
			end

			# @return [String]
			def type
				if @name == 'debug' || @name == 'Debug'
					'debug'
				elsif @name == 'release' || @name == 'Release'
					'release'
				else
					@raw_type
				end
			end

			attr_writer :type
			attr_accessor :name
			attr_accessor :profiles
			attr_accessor :overrides
			attr_accessor :raw_type
			attr_accessor :source
		end

		class Target
			class Configuration
				def initialize(name, settings = {}, profiles = [], source = nil)
					@name = name
					@settings = settings
					@profiles = profiles || []
					@source = source
{'fraction_non_alphanumeric': 0.09791666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 3.061310782241015, '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': '3586033', 'n_tokens_mistral': 756, 'n_tokens_neox': 584, 'n_words': 169}