<commit_before># Research Methods

# I spent [] hours on this challenge.

i_want_pets = ["I", "want", 3, "pets", "but", "only", "have", 2]
my_family_pets_ages = {"Evi" => 6, "Ditto" => 3, "Hoobie" => 3, "George" => 12, "Bogart" => 4, "Poly" => 4, "Annabelle" => 0}

# Person 1's solution
def my_array_finding_method(source, thing_to_find)
  source # This line is here to make sure all tests initially fail. Delete it when you begin coding.
end

def my_hash_finding_method(source, thing_to_find)
  source # This line is here to make sure all tests initially fail. Delete it when you begin coding.
end

# Identify and describe the Ruby method(s) you implemented.
#
#
#

# Person 2
def my_array_modification_method!(source, thing_to_modify)
  my_array.map! do |source|
     if source.is_a?(Numeric)
         source[value] += thing_to_modify
     else
         word
     end
 end


def my_hash_modification_method!(source, thing_to_modify)
source.each do |k,v| source[k] = v +thing_to_modify
end
end

# Identify and describe the Ruby method(s) you implemented.
#Teach your accountability group how to use the methods.
#I used the enumerable .map
Map will take an object and run a block of code for
each element in the object and collect each element and put it in an array.
Map is sometimes called collect. The main difference from using each is that
map returns the transformed collection of elements.
#Share any tricks you used to find and decipher the Ruby Docs
Not really a trick, just read the material and try to keep to clean solutions.  




<commit_msg>add minor changes<commit_after># Research Methods

# I spent [1] hours on this challenge.

i_want_pets = ["I", "want", 3, "pets", "but", "only", "have", 2]
my_family_pets_ages = {"Evi" => 6, "Ditto" => 3, "Hoobie" => 3, "George" => 12, "Bogart" => 4, "Poly" => 4, "Annabelle" => 0}

# Person 1's solution
def my_array_finding_method(source, thing_to_find)
  source # This line is here to make sure all tests initially fail. Delete it when you begin coding.
end

def my_hash_finding_method(source, thing_to_find)
  source # This line is here to make sure all tests initially fail. Delete it when you begin coding.
end

# Identify and describe the Ruby method(s) you implemented.
#
#
#

# Person 2
def my_array_modification_method!(source, thing_to_modify)
  my_array.map! do |source|
     if source.is_a?(Numeric)
         source[value] += thing_to_modify
     else
         word
     end
 end


def my_hash_modification_method!(source, thing_to_modify)
source.each do |k,v| source[k] = v +thing_to_modify
end
end

# Identify and describe the Ruby method(s) you implemented.
#Teach your accountability group how to use the methods.
#I used the enumerable .map
Map will take an object and run a block of code for
each element in the object and collect each element and put it in an array.
Map is sometimes called collect. The main difference from using each is that
map returns the transformed collection of elements.
#Share any tricks you used to find and decipher the Ruby Docs
Not really a trick, just read the material and try to keep to clean solutions.





{'fraction_non_alphanumeric': 0.08400128246232767, 'fraction_numerical': 0.008015389547932029, 'mean_word_length': 4.123152709359606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2357833', 'n_tokens_mistral': 1010, 'n_tokens_neox': 964, 'n_words': 425}