<commit_before>#!/usr/bin/env ruby

@answers = Array.new(10) { Array.new(10) }
@unused = Array.new(9) { Array.new(10) }

# Build matrix
def build_unused
  9.times do |x|
    @unused[x][0] = x
    1.upto(9) do |y|
      @unused[x][y] = y
    end
  end
end

def pop_values
  x = rand(0..@unused.length-1)
  y = rand(1..@unused[x].length-1)
  #puts "x=#{x} y=#{y}"
  pair = [x,y,@unused[x][0],@unused[x][y]]
  @unused[x].delete_at(y)
  if @unused[x].length == 1
    @unused.delete_at(x)
  end
  pair
end

build_unused
puts @unused.length
puts pop_values


# Record answer

# Remove from matrix

# Random number


<commit_msg>Populate answers with random data.<commit_after>#!/usr/bin/env ruby

@answers = Array.new(10) { Array.new(10) }
@unused = Array.new(9) { Array.new(10) }

# Build matrix
def build_unused
  9.times do |x|
    @unused[x][0] = x
    1.upto(9) do |y|
      @unused[x][y] = y
    end
  end
end

def pop_values
  x = rand(0..@unused.length-1)
  y = rand(1..@unused[x].length-1)
  #puts "x=#{x} y=#{y}"
  pair = [@unused[x][0]+2,@unused[x][y]+1]
  @unused[x].delete_at(y)
  if @unused[x].length == 1
    @unused.delete_at(x)
  end
  pair
end

build_unused
#puts @unused.length

num = 0
while @unused.length > 0
  x, y = pop_values
  puts "#{x} * #{y} = "
  #answer = gets.chomp.to_i
  answer = rand(1..100)
  @answers[x][y] = answer
  puts answer
  num = num+1
end

puts @answers.to_s



#puts pop_values


# Record answer

# Remove from matrix

# Random number



{'fraction_non_alphanumeric': 0.18132611637347767, 'fraction_numerical': 0.029093369418132613, 'mean_word_length': 3.1661971830985913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6131494', 'n_tokens_mistral': 673, 'n_tokens_neox': 673, 'n_words': 140}