<commit_before># Factorial

# I worked on this challenge [with: Joshua Abrams].

# Your Solution Below

def factorial(num)
	brain = 1
	for melting in 2..num do
		brain = brain*melting
	end
	return brain
end

puts factorial(5)<commit_msg>4.7.1 final with pseudo<commit_after># Factorial

# I worked on this challenge [with: Joshua Abrams].

=begin Pseudocode

Input: (num), where num is a positive integer
Output: "brain", the variable result of a for loop

define method factorial
initialize variable "brain" to = 1
initialize variable "melting" in the for loop
	for all numbers "melting" in range 2 through num inclusive, do
		brain = brain*melting
	endfor
return brain
end method

=end

# Your Solution Below

def factorial(num)
	brain = 1
	for melting in 2..num do
		brain = brain*melting
	end
	return brain
end
{'fraction_non_alphanumeric': 0.07125307125307126, 'fraction_numerical': 0.012285012285012284, 'mean_word_length': 4.158227848101266, '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': '2863923', 'n_tokens_mistral': 281, 'n_tokens_neox': 253, 'n_words': 113}