<commit_before>#!/usr/bin/env ruby
#
# 5 points
#
# Write a program that displays the following table of 90's Hip-Hop hits:
#
#   $ ruby exercise2.rb
#   Can I Kick It?      A Tribe Called Quest      1991
#   Rump Shaker         Wreckx-n-Effect           1992
#   Check Yo Self       Ice Cube                  1993
#   Regulate            Warren G & <NAME>      1994
#   I Got 5 On It       Luniz                     1995
#   Ready Or Not        The Fugees                1996
#
# TIP #1: Hold all of the information -- song, artist, and year -- in an array.
#
# TIP #2: Use the `string.ljust` method from class 2 exercise 7.
#
# TIP #3: The width of each line is 50 characters.
<commit_msg>complete class4 exercise2<commit_after>#!/usr/bin/env ruby
#
# 5 points
#
# Write a program that displays the following table of 90's Hip-Hop hits:
#
#   $ ruby exercise2.rb
#   Can I Kick It?      A Tribe Called Quest      1991
#   Rump Shaker         Wreckx-n-Effect           1992
#   Check Yo Self       Ice Cube                  1993
#   Regulate            Warren G & <NAME>      1994
#   I Got 5 On It       Luniz                     1995
#   Ready Or Not        The Fugees                1996
#
# TIP #1: Hold all of the information -- song, artist, and year -- in an array.
#
# TIP #2: Use the `string.ljust` method from class 2 exercise 7.
#
# TIP #3: The width of each line is 50 characters.

# creating the array's, appending so rubocop doesn't complain
song = ['Can I Kick It?', 'Rump Shaker', 'Check Yo Self', 'Regulate']
(song << ['I Got 5 On It', 'Ready Or Not']).flatten!

artist = ['A Tribe Called Quest', 'Wreckx-n-Effect', 'Ice Cube']
(artist << ['<NAME> & <NAME>', 'Luniz', 'The Fugees']).flatten!

year = %w(1991 1992 1993 1994 1995 1996)

# create iterator for the loop below
iterator = 0

# print each song/artist/year and align
song.each do
  print song[iterator].ljust(20)
  print artist[iterator].ljust(20)
  puts year[iterator].rjust(10)
  iterator += 1
end

{'fraction_non_alphanumeric': 0.10268082953970663, 'fraction_numerical': 0.05412240768841679, 'mean_word_length': 2.180064308681672, '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': '6576910', 'n_tokens_mistral': 739, 'n_tokens_neox': 625, 'n_words': 255}