<commit_before>class TopTenIslandsCliGem::Cli

  def start
    TopTenIslandsCliGem::Island.create_islands_from_hash
    puts " "
    puts "Welcome to the Worlds Top Islands to visit!!"
    puts " "
    list
    discription
  end

  def list
    TopTenIslandsCliGem::Island.all.each.with_index(1) {|island, index| puts "#{index}. #{island.name}"}
  end

  def discription
    @input = 0
    #binding.pry
    until @input.between?(1,10) || @input == "list"
      puts " "
      puts "What number island would you like to read about? Or type list"

      string = gets.chomp
      @input = string.to_i if string.downcase != "list"
    end
    #binding.pry
    if @input > 0
      #binding.pry
      puts ""
      puts "--------#{TopTenIslandsCliGem::Island.all[@input-1].name}--------"
      puts ""
      puts TopTenIslandsCliGem::Island.all[@input-1].get_discription
      puts ""
      ending
    elsif @input == "list"
      list
      discription
    end
  end

  def ending
    input = ""
    until input == "y" || input == "n"
      puts "Would you like to read about another island? Y or N"
      input = gets.chomp.downcase
    end
      case input
      when  "y"
        discription
      when  "n"
        puts "Hope to see you at #{TopTenIslandsCliGem::Island.all[@input-1].name} soon!!"
      end

  end

end<commit_msg> cli take list input<commit_after>class TopTenIslandsCliGem::Cli

  def start
    TopTenIslandsCliGem::Island.create_islands_from_hash
    puts " "
    puts "Welcome to the Worlds Top Islands to visit!!"
    puts " "
    list
    discription
  end

  def list
    TopTenIslandsCliGem::Island.all.each.with_index(1) {|island, index| puts "#{index}. #{island.name}"}
  end

  def discription

    @input = 0
    #binding.pry
     until @input.to_i.between?(1,10) || @input == "list"
      puts " "
      puts "What number island would you like to read about? Or type list"
      @input = gets.chomp
    end

    if @input.to_i > 0
      #binding.pry
      @input = @input.to_i
      puts ""
      puts "--------#{TopTenIslandsCliGem::Island.all[@input-1].name}--------"
      puts ""
      puts TopTenIslandsCliGem::Island.all[@input-1].get_discription
      puts ""
      ending
    elsif @input == "list"
      list
      discription
    else
      discription
    end
  end

  def ending
    input = ""
    until input == "y" || input == "n"
      puts "Would you like to read about another island? Y or N"
      input = gets.chomp.downcase
    end
      case input
      when  "y"
        discription
      when  "n"
        puts "Hope to see you at #{TopTenIslandsCliGem::Island.all[@input-1].name} soon!!"
      end

  end

end
{'fraction_non_alphanumeric': 0.12058602554470323, 'fraction_numerical': 0.0067618332081141996, 'mean_word_length': 2.216183574879227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4534588', 'n_tokens_mistral': 931, 'n_tokens_neox': 923, 'n_words': 241}