<commit_before>module WeMeet

	class Activity
		attr_accessor :name, :aliases
		def initialize(name)
			@name = name
			@aliases = [name.downcase]
		end
		
		def alias(aname)
			@aliases << aname.downcase unless @aliases.include? aname.downcase
		end

		def similar_to?(other)
			found = false
			@aliases.each do |as|
				found = true if as.include? other.downcase
			end
			return found
		end<commit_msg>activity behaviour finished<commit_after>module WeMeet

	class Activity
		attr_accessor :name
		def initialize(name)
			@name = name
			@aliases = Hash.new
			@aliases[name.downcase] = name
		end
		
		def alias(aname)
			@aliases[aname.downcase] = aname unless (@aliases.keys + @aliases.values).include? aname.downcase
		end

		def aliases
			@aliases.values
		end

		def similar_to?(other)
			found = false
			@aliases.keys.each do |as|
				found = true if as.include? other.downcase
			end
			return found
		end
{'fraction_non_alphanumeric': 0.09249183895538629, 'fraction_numerical': 0.0, 'mean_word_length': 3.2790697674418605, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5140323', 'n_tokens_mistral': 381, 'n_tokens_neox': 315, 'n_words': 83}