<commit_before># I worked on this challenge [<NAME> and <NAME>].
# This challenge took me [#] hours.

# Pseudocode
=begin
create a method that takes a number (argument)
  loop through the sequence
    declare three variables (a,b,c)
    check to see whether variable is equal to argument
    keep updating the variables
    stop when one of the variables is greater than the argument
  end the loop
end the method
=end
# Initial Solution

def is_fibonacci?(num)
  a=0, b=1, c=1
  while (c <= num)
    if c == num
      return true
    end
    a = b
    b = c
    c = a + b
  end
  return false
end



# Refactored Solution
def is_fibonacci?(num)
  a=0, b=1, c=1
  while (c <= num)
    return true if c == num
    a = b; b = c; c = a + b
  end
  false
end





# Reflection<commit_msg>Add reflection<commit_after># I worked on this challenge [<NAME> and <NAME>].
# This challenge took me [#] hours.

# Pseudocode
=begin
create a method that takes a number (argument)
  loop through the sequence
    declare three variables (a,b,c)
    check to see whether variable is equal to argument
    keep updating the variables
    stop when one of the variables is greater than the argument
  end the loop
end the method
=end
# Initial Solution

def is_fibonacci?(num)
  a=0, b=1, c=1
  while (c <= num)
    if c == num
      return true
    end
    a = b
    b = c
    c = a + b
  end
  return false
end



# Refactored Solution
def is_fibonacci?(num)
  a=0, b=1, c=1
  while (c <= num)
    return true if c == num
    a = b; b = c; c = a + b
  end
  false
end


# Reflection
=begin

What concepts did you review in this challenge?

We reviewed the loops and creating variables. We kept writing in javascript syntax with the semicolons and everything but this challenge helped us review ruby syntax and everything.

What is still confusing to you about Ruby?

I didn't find anything confusing during these challenges. I will definitely go over OOP and working with multiple classes though.

What are you going to study to get more prepared for Phase 1?

Ruby. Ruby. Ruby.

=end
{'fraction_non_alphanumeric': 0.07011605415860735, 'fraction_numerical': 0.006286266924564797, 'mean_word_length': 2.940952380952381, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '2997893', 'n_tokens_mistral': 665, 'n_tokens_neox': 640, 'n_words': 314}