<commit_before>class Test
  attr_reader :q, :a1, :t, :a
  def initialize(q,a1,t,a)

    @q, @a1, @t, @a= q, a1, t, a
  end
  def to_s()
    print "Pregunta: ", q, "\n"
    for i in(0...a1.size)
      print "\n ", i+1, ")",  a1[i]
    end
    puts "\n\nElige una de las opciones."
     for i in(0...a1.size)
       if @a == i+1
      @a = a1[i]
       end
     end
    print "\nLa respuesta correcta es: ", a, "\n\n\n\n"
  end
end

class BTest < Test
  def initialize(q,a1,t,a)
    super(q,a1,t,a)
  end
  def to_s()
  print "Pregunta: ", q, "\n"
      print "\nA) ",  a1[0]
      print "\nB) ",  a1[1]
    puts "\n\nElige una de las opciones."
       if @a == 1
      @a = a1[0]
       else
      @a = a1[1]
       end
    print "\nLa respuesta correcta es: ", a, "\n\n\n\n"
  end 
end<commit_msg>Las preguntas ahora son Comparables<commit_after>class Test
    include Comparable
  attr_reader :q, :a1, :t, :a
  def initialize(q,a1,t,a)
  def <=> other
    return nil unless other.is_a?(self.class)
    [self.q, self.a1, self.t, self.a] <=> [other.q, other.a1, other.t, other.a]
  end
    @q, @a1, @t, @a= q, a1, t, a
  end
  def show()
    #print "Pregunta: ", q, "\n"
    for i in(0...a1.size)
      #print "\n ", i+1, ")",  a1[i]
    end
    #puts "\n\nElige una de las opciones."
     for i in(0...a1.size)
       if @a == i+1
      @a = a1[i]
       end
     end
    #print "\nLa respuesta correcta es: ", a, "\n\n\n\n"
  end
end

class BTest < Test
  def initialize(q,a1,t,a)
    super(q,a1,t,a)
  end
  def show()
  #print "Pregunta: ", q, "\n"
   #   print "\nA) ",  a1[0]
    #  print "\nB) ",  a1[1]
    #puts "\n\nElige una de las opciones."
       if @a == 1
      @a = a1[0]
       else
      @a = a1[1]
       end
    #print "\nLa respuesta correcta es: ", a, "\n\n\n\n"
  end 
end
{'fraction_non_alphanumeric': 0.1860724233983287, 'fraction_numerical': 0.026740947075208913, 'mean_word_length': 1.901453957996769, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2803247', 'n_tokens_mistral': 839, 'n_tokens_neox': 836, 'n_words': 220}