<commit_before>module Jekyll
	class InterviewConverter < Converter

		def matches(ext)
			ext =~ /interview/i
		end
		
		def output_ext(ext)
			".html"
		end
		
		def convert(content)
			wares = Dir.glob('./{hardware,software}/*.yml')
			slugs = []
			
			content.scan(/\[([^\[\(\)]+)\]\[([a-z0-9\.\-]+)?\]/).each do |link|
				slugs << (link[1] ? link[1] : link[0].downcase)
			end
			
			if slugs.length > 0
				content += "\n\n"
				
				wares.each do |ware|
					base_name = File.basename(ware, ".yml")
				
					if slugs.include? base_name
						begin
							data = YAML.load_file(ware)
							content += "[#{base_name}]: " + data["url"] + "\"" + data["description"] + "\"\n"
						
							slugs.delete(base_name)
						rescue
						end
					end
				end
			end
			
			Maruku.new(content).to_html
		end
	end
end<commit_msg>Maybe don't fuck up all the links on the site.<commit_after>module Jekyll
	class InterviewConverter < Converter

		def matches(ext)
			ext =~ /interview/i
		end
		
		def output_ext(ext)
			".html"
		end
		
		def convert(content)
			wares = Dir.glob('./{hardware,software}/*.yml')
			slugs = []
			
			content.scan(/\[([^\[\(\)]+)\]\[([a-z0-9\.\-]+)?\]/).each do |link|
				slugs << (link[1] ? link[1] : link[0].downcase)
			end
			
			if slugs.length > 0
				content += "\n\n"
				
				wares.each do |ware|
					base_name = File.basename(ware, ".yml")
				
					if slugs.include? base_name
						begin
							data = YAML.load_file(ware)
							content += "[#{base_name}]: " + data["url"] + " \"" + data["description"] + "\"\n"
						
							slugs.delete(base_name)
						rescue
						end
					end
				end
			end
			
			Maruku.new(content).to_html
		end
	end
end
{'fraction_non_alphanumeric': 0.17890995260663506, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 2.1277777777777778, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6589187', 'n_tokens_mistral': 863, 'n_tokens_neox': 621, 'n_words': 126}