<commit_before># Factorial

# I worked on this challenge [by myself, with: ].


# Your Solution Below
def factorial(number)
  # Your code goes here
end<commit_msg>Adds 4.7.1 solution<commit_after># Factorial

# I worked on this challenge with <NAME>


# Your Solution Below
def factorial(number)
  # Your code goes here

result = 1
for i in 1..number
  result = result * i
  i =+1
end
return result
end

# factorial 5

# Pseudocode

# Receive provided number
# Set result equal to one
# FOR provided number of times
#   Multiply counter times result and store in result
#   add 1 to counter
# REPEAT
# Return result
{'fraction_non_alphanumeric': 0.06991869918699187, 'fraction_numerical': 0.013008130081300813, 'mean_word_length': 3.7022900763358777, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5877520', 'n_tokens_mistral': 205, 'n_tokens_neox': 191, 'n_words': 85}