<commit_before>class Ball

  def initialize(ball_type)
    @ball1 = ball1
  end

  def ball1
    @ball1
  end

  # Regular Ball Super Ball
  #
  # Create a class Ball.
  #
  # Ball objects should accept one argument for "ball type" when instantiated.
  #
  # If no arguments are given, ball objects should instantiate with a "ball type" of "regular."
  #
  # ball1 = Ball.new
  # ball2 = Ball.new "super"
  # ball1.ball_type  #=> "regular"
  # ball2.ball_type  #=> "super"
end




RSpec.describe "Ball" do
  it "accepts one argument for ball type" do
    ball1 = Ball.new("regular") #@name is storing this instance alongside with felipe
    expect(ball1.ball_type.to eq ("regular")
  end

<commit_msg>adds in updated class exercise<commit_after>class Ball

  def initialize(ball_type)
    @ball = ball_type
  end

  def type?()
    @ball
  end

end

RSpec.describe "Ball" do
  it "gives regular for ball 1" do
    ball1 = Ball.new("regular") #@name is storing this instance alongside with felipe
    expect(ball1.type?()).to eq ("regular")
    p ball1
  end
  it "gives super for ball 2" do
    ball2 = Ball.new("super")
    expect(ball2.type?()).to eq ("super")
    p ball2
  end
end

# def ball_type
#   @ball1
# end

# Regular Ball Super Ball
#
# Create a class Ball.
#
# Ball objects should accept one argument for "ball type" when instantiated.
#
# If no arguments are given, ball objects should instantiate with a "ball type" of "regular."
#
# ball1 = Ball.new
# ball2 = Ball.new "super"
# ball1.ball_type  #=> "regular"
# ball2.ball_type  #=> "super"
{'fraction_non_alphanumeric': 0.10661528580603725, 'fraction_numerical': 0.014771997430956968, 'mean_word_length': 3.210810810810811, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2266778', 'n_tokens_mistral': 543, 'n_tokens_neox': 522, 'n_words': 185}