problem_id
stringlengths 6
6
| buggy_code
stringlengths 8
526k
| fixed_code
stringlengths 12
526k
| labels
listlengths 0
15
⌀ | buggy_submission_id
int64 1
1.54M
| fixed_submission_id
int64 2
1.54M
| user_id
stringlengths 10
10
| language
stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p00000
|
1.upto(9) { |a| 1.upto(9) { |b| p "#{a}x#{b}=#{a * b}" } }
|
1.upto(9) { |a| 1.upto(9) { |b| puts "#{a}x#{b}=#{a * b}" } }
|
[
"call.function.change",
"io.output.change"
] | 2,753
| 2,754
|
u472197678
|
ruby
|
p00000
|
n1 = 1
n2 = 1
(1..9).each do |n1|
(1..9).each do |n2|
temp = n1 * n2
print n1, '+', n2, '=', temp, "\n"
end
end
|
n1 = 1
n2 = 1
(1..9).each do |n1|
(1..9).each do |n2|
temp = n1 * n2
print n1, 'x', n2, '=', temp, "\n"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,755
| 2,756
|
u866617684
|
ruby
|
p00000
|
i = 1
j = 1
while i < 10
while j < 10
answer = i * j
puts "#{i}×#{j}=#{answer}"
j += 1
end
i += 1
j = 1
end
|
i = 1
j = 1
while i < 10
while j < 10
answer = i * j
puts "#{i}x#{j}=#{answer}"
j += 1
end
i += 1
j = 1
end
|
[
"literal.string.change",
"call.arguments.change"
] | 2,757
| 2,758
|
u949338836
|
ruby
|
p00000
|
(1..9).each do |i|
(1..9).each do |j|
puts format('%d*%d=%d', i, j, i * j)
end
end
|
(1..9).each do |i|
(1..9).each do |j|
puts format('%dx%d=%d', i, j, i * j)
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,760
| 2,761
|
u925831343
|
ruby
|
p00000
|
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].each do |x|
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].each do |y|
puts "#{x}x#{y}=#{x * y}"
end
end
|
[1, 2, 3, 4, 5, 6, 7, 8, 9].each do |x|
[1, 2, 3, 4, 5, 6, 7, 8, 9].each do |y|
puts "#{x}x#{y}=#{x * y}"
end
end
|
[] | 2,762
| 2,763
|
u619548347
|
ruby
|
p00000
|
(1..9).each do |i|
(1..9).each do |j|
print i, '??', j, '=', i * j, "\n"
end
end
|
(1..9).each do |i|
(1..9).each do |j|
print i, 'x', j, '=', i * j, "\n"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,769
| 2,770
|
u334460795
|
ruby
|
p00000
|
(1..9).each do |i|
(1..9).each do |j|
print(i, '??', j, '=', i * j, "\n")
end
end
|
(1..9).each do |i|
(1..9).each do |j|
print i, 'x', j, '=', i * j, "\n"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,772
| 2,770
|
u334460795
|
ruby
|
p00000
|
9.times do |i|
9.times do |j|
puts "#{i + 1}x#{j + 1}=#{(i + 1) + (j + 1)}"
end
end
|
9.times do |i|
9.times do |j|
puts "#{i + 1}x#{j + 1}=#{(i + 1) * (j + 1)}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,775
| 2,776
|
u764432488
|
ruby
|
p00000
|
loop do
(1..9).each do |a|
(1..9).each do |b|
print(a, '*', b, '=', a * b)
end
end
break
end
|
loop do
(1..9).each do |a|
(1..9).each do |b|
print(a, 'x', b, '=', a * b, "\n")
end
end
break
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change",
"call.arguments.add"
] | 2,779
| 2,780
|
u130291989
|
ruby
|
p00000
|
loop do
(1..9).each do |a|
(1..9).each do |b|
print(a, '*', b, '=', a * b, "\n")
end
end
break
end
|
loop do
(1..9).each do |a|
(1..9).each do |b|
print(a, 'x', b, '=', a * b, "\n")
end
end
break
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,781
| 2,780
|
u130291989
|
ruby
|
p00000
|
i = 1
s = 1
while i < 10
while s < 10
t = i * s
puts "#{i}*#{s}=#{t}"
s += 1
end
s = 1
i += 1
end
|
i = 1
s = 1
while i < 10
while s < 10
t = i * s
puts "#{i}x#{s}=#{t}"
s += 1
end
s = 1
i += 1
end
|
[
"literal.string.change",
"call.arguments.change"
] | 2,785
| 2,786
|
u739561681
|
ruby
|
p00000
|
(1..9).each do |num1|
(1..9).each do |num2|
puts "#{num1}??#{num2} = #{num1 * num2}"
end
end
|
(1..9).each do |num1|
(1..9).each do |num2|
puts "#{num1}x#{num2}=#{num1 * num2}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,787
| 2,788
|
u648595404
|
ruby
|
p00000
|
(1..9).each do |num1|
(1..9).each do |num2|
puts "#{num1}x#{num2} = #{num1 * num2}"
end
end
|
(1..9).each do |num1|
(1..9).each do |num2|
puts "#{num1}x#{num2}=#{num1 * num2}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,789
| 2,788
|
u648595404
|
ruby
|
p00000
|
(1..9).each do |num1|
(1..9).each do |num2|
puts "#{num1}x#{num2} = #{num1 * num2}"
end
end
|
(1..9).each do |num|
(1..9).each do |num2|
puts "#{num}x#{num2}=#{num * num2}"
end
end
|
[
"identifier.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,789
| 2,793
|
u648595404
|
ruby
|
p00000
|
(1..9).each do |num|
(1..9).each do |num2|
puts "#{num}??#{num2} = #{num * num2}"
end
end
|
(1..9).each do |num|
(1..9).each do |num2|
puts "#{num}x#{num2}=#{num * num2}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,794
| 2,793
|
u648595404
|
ruby
|
p00000
|
(1..9).each do |num|
(1..9).each do |num2|
puts "#{num}x#{num2} = #{num * num2}"
end
end
|
(1..9).each do |num|
(1..9).each do |num2|
puts "#{num}x#{num2}=#{num * num2}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,795
| 2,793
|
u648595404
|
ruby
|
p00000
|
i = 1
k = 1
9.times do
9.times do
print i, '*', k, '=', i * k, "\n"
k += 1
k = 1 if k >= 10
end
i += 1
end
|
i = 1
k = 1
9.times do
9.times do
print i, 'x', k, '=', i * k, "\n"
k += 1
k = 1 if k >= 10
end
i += 1
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,796
| 2,797
|
u090396561
|
ruby
|
p00000
|
(1..9).each do |x|
(1..9).each do |y|
puts "#{x}×#{y}=#{x * y}"
end
end
|
(1..9).each do |x|
(1..9).each do |y|
puts "#{x}x#{y}=#{x * y}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,808
| 2,809
|
u361501341
|
ruby
|
p00000
|
(1..9).each do |i|
(1..9).each do |k|
printf('%dx%d=%d', i, k, i * k)
end
end
|
(1..9).each do |i|
(1..9).each do |k|
printf("%dx%d=%d\n", i, k, i * k)
end
end
|
[] | 2,821
| 2,822
|
u457499538
|
ruby
|
p00000
|
(1...10).each do |i|
(1...10).each do |j|
print(i, '???', j, '=', i * j, "\n")
end
end
|
(1...10).each do |i|
(1...10).each do |j|
print(i, 'x', j, '=', i * j, "\n")
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 2,826
| 2,827
|
u843527512
|
ruby
|
p00000
|
(1..9).each do |i|
(1..9).each do |j|
equation = i * j
puts "#{i}??#{j}=#{equation}"
end
end
|
(1..9).each do |i|
(1..9).each do |j|
equation = i * j
puts "#{i}x#{j}=#{equation}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 4,613
| 4,614
|
u391189663
|
ruby
|
p00000
|
a = 1..9
# a.each do |i| puts(i) end
# a.each {|i| puts(i)}
a.each do |i|
a.each do |j|
puts("#{i}*#{j}=#{i * j}")
end
end
|
a = 1..9
# a.each do |i| puts(i) end
# a.each {|i| puts(i)}
a.each do |i|
a.each do |j|
puts("#{i}x#{j}=#{i * j}")
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 4,628
| 4,629
|
u450760454
|
ruby
|
p00000
|
#!/usr/local/bin/ruby
(1..10).each do |i|
(1..10).each do |j|
ans = i * j
puts "#{i}\*#{j}=#{ans}"
end
end
|
#!/usr/local/bin/ruby
(1..9).each do |i|
(1..9).each do |j|
ans = i * j
puts "#{i}x#{j}=#{ans}"
end
end
|
[
"literal.number.integer.change",
"io.output.change",
"literal.string.change",
"call.arguments.change"
] | 4,644
| 4,645
|
u679425694
|
ruby
|
p00000
|
#!/usr/local/bin/ruby
(1..10).each do |i|
(1..10).each do |j|
ans = i * j
puts "#{i}\×#{j}=#{ans}"
end
end
|
#!/usr/local/bin/ruby
(1..9).each do |i|
(1..9).each do |j|
ans = i * j
puts "#{i}x#{j}=#{ans}"
end
end
|
[
"literal.number.integer.change",
"io.output.change",
"literal.string.change",
"call.arguments.change"
] | 4,646
| 4,645
|
u679425694
|
ruby
|
p00000
|
#!/usr/local/bin/ruby
(1..9).each do |i|
(1..9).each do |j|
ans = i * j
puts "#{i}×#{j}=#{ans}"
end
end
|
#!/usr/local/bin/ruby
(1..9).each do |i|
(1..9).each do |j|
ans = i * j
puts "#{i}x#{j}=#{ans}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 4,647
| 4,645
|
u679425694
|
ruby
|
p00000
|
(1..9).each do |num|
(1..9).each do |num2|
print(num, 'x', num2, '=', num * num2, "\n")
end
end
print('end')
|
(1..9).each do |num|
(1..9).each do |num2|
print(num, 'x', num2, '=', num * num2, "\n")
end
end
|
[
"call.remove"
] | 4,656
| 4,657
|
u170199598
|
ruby
|
p00000
|
(1..9).each do |i|
(1..9).each do |k|
puts "#{i}×#{k}=#{i * k}"
end
end
|
(1..9).each do |i|
(1..9).each do |k|
puts "#{i}x#{k}=#{i * k}"
end
end
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 4,658
| 4,659
|
u533770133
|
ruby
|
p00001
|
h = []
(0..9).each do |i|
h[i] = gets.to_i
end
puts (h.sort.reverse)[0..2].join(',')
|
h = []
(0..9).each do |i|
h[i] = gets.to_i
end
puts (h.sort.reverse)[0..2].join("\n")
|
[] | 4,976
| 4,977
|
u421423781
|
ruby
|
p00001
|
# encoding:utf-8 No.0001
require 'English'
list_of_height = []
list_of_height.push $LAST_READ_LINE while gets
puts list_of_height.sort.reverse[0..2]
|
# encoding:utf-8 No.0001
require 'English'
list_of_height = []
list_of_height.push $LAST_READ_LINE.to_i while gets
puts list_of_height.sort.reverse[0..2]
|
[
"call.add"
] | 4,978
| 4,979
|
u949338836
|
ruby
|
p00001
|
p = []
(0...10).each do |i|
p[i] = gets.to_i
end
p.sort!
(0...3).each do |i|
print(p[i], "\n")
end
|
p = []
(0...10).each do |i|
p[i] = gets.to_i
end
p.sort!
p.reverse!
(0...3).each do |i|
print(p[i], "\n")
end
|
[
"call.add"
] | 4,980
| 4,981
|
u618330043
|
ruby
|
p00001
|
require 'English'
p $DEFAULT_INPUT.map(&:to_i).sort.reverse[0, 3]
|
require 'English'
p(*$DEFAULT_INPUT.map(&:to_i).sort.reverse[0, 3])
|
[
"call.arguments.add",
"call.arguments.change"
] | 4,982
| 4,983
|
u392015442
|
ruby
|
p00001
|
num = []
(0..9).each do |i|
num[i] = ARGV[i].to_i
end
num.sort!
num.reverse!
(0..2).each do |i|
puts num[i]
end
|
num = []
(0..9).each do |i|
num[i] = gets.to_i
end
num.sort!
num.reverse!
(0..2).each do |i|
puts num[i]
end
|
[
"assignment.value.change"
] | 4,985
| 4,986
|
u287407095
|
ruby
|
p00001
|
um = []
(0..9).each do |i|
num[i] = gets.to_i
end
num.sort!
num.reverse!
(0..2).each do |i|
puts num[i]
end
|
num = []
(0..9).each do |i|
num[i] = gets.to_i
end
num.sort!
num.reverse!
(0..2).each do |i|
puts num[i]
end
|
[
"assignment.variable.change",
"identifier.change"
] | 4,987
| 4,986
|
u287407095
|
ruby
|
p00001
|
a = []
while c = gets
a << c.to_i
end
a.sort!.reverse!
3.times { puts a }
|
a = []
while c = gets
a << c.to_i
end
a.sort!
3.times { puts a.pop }
|
[
"call.remove",
"call.add"
] | 4,988
| 4,989
|
u334460795
|
ruby
|
p00001
|
arr = []
10.times do
arr << gets.to_i
end
arr.sort!
puts (arr[7]).to_s
puts (arr[8]).to_s
puts (arr[9]).to_s
|
arr = []
10.times do
arr << gets.to_i
end
arr.sort!
puts (arr[9]).to_s
puts (arr[8]).to_s
puts (arr[7]).to_s
|
[
"literal.number.integer.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 4,992
| 4,993
|
u046695668
|
ruby
|
p00001
|
yama = $stdin.read.split("\n").map(&:to_i)
3.times do
puts yama.pop
end
|
yama = $stdin.read.split("\n").map(&:to_i)
yama = yama.sort
3.times do
puts yama.pop
end
|
[
"assignment.add"
] | 5,001
| 5,002
|
u648595404
|
ruby
|
p00001
|
a = []
10.times do |i|
n_i = gets.chomp.to_i
a[i] = n_i
end
a.sort! { |x, y| y <=> x }
puts a[0]
puts a[1]
puts a[2][EOF]
|
a = []
10.times do |i|
n_i = gets.chomp.to_i
a[i] = n_i
end
a.sort! { |x, y| y <=> x }
puts a[0]
puts a[1]
puts a[2]
|
[] | 5,010
| 5,011
|
u627848547
|
ruby
|
p00001
|
nums = []
10.times do
nums << gets.to_i
end
puts nums, sort.reverse.slice(0, 3).join("?\n")
|
nums = []
10.times do
nums << gets.to_i
end
puts nums.sort.reverse.slice(0, 3).join("\n")
|
[
"call.arguments.change",
"literal.string.change",
"io.output.change"
] | 5,012
| 5,013
|
u543244905
|
ruby
|
p00001
|
nums = []
10.times do
nums << gets.to_i
end
puts nums.sort.reverse.slice(0, 3).join("?\n")
|
nums = []
10.times do
nums << gets.to_i
end
puts nums.sort.reverse.slice(0, 3).join("\n")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 5,014
| 5,013
|
u543244905
|
ruby
|
p00001
|
heights = []
while line = ARGF.gets
heights << line.to_i
end
heights.sort[0..2].each { |h| puts h }
|
heights = []
while line = ARGF.gets
heights << line.to_i
end
heights.sort.reverse[0..2].each { |h| puts h }
|
[
"call.add"
] | 5,015
| 5,016
|
u024069892
|
ruby
|
p00001
|
heights = []
while line = ARGF.gets
heights << line.to_i
end
heights.sort[-1..-3].each { |h| puts h }
|
heights = []
while line = ARGF.gets
heights << line.to_i
end
heights.sort.reverse[0..2].each { |h| puts h }
|
[
"expression.operation.unary.remove",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 5,017
| 5,016
|
u024069892
|
ruby
|
p00001
|
heights = []
while line = ARGF.gets
heights << line.to_i
end
heights.sort.reverse[1..3].each { |h| puts h }
|
heights = []
while line = ARGF.gets
heights << line.to_i
end
heights.sort.reverse[0..2].each { |h| puts h }
|
[
"literal.number.integer.change",
"variable_access.subscript.index.change"
] | 5,018
| 5,016
|
u024069892
|
ruby
|
p00001
|
array = []
loop do
array << gets.to_i
counts += 1
# ?????°???????¨??????????????????£???????????????????????????????????????
break if counts > 10
end
array.sort! do |a, b|
b <=> a
end
puts array[0]
puts array[1]
puts array[2]
|
counts = 1
array = []
loop do
array << gets.to_i
counts += 1
break if counts > 10
end
array.sort! do |a, b|
b <=> a
end
puts array[0]
puts array[1]
puts array[2]
|
[
"assignment.add"
] | 5,021
| 5,022
|
u761810722
|
ruby
|
p00001
|
data = []
10.times do
data << gets.to_i
end
puts data.sort.reverse.take(3).join('\n')
|
data = []
10.times do
data << gets.to_i
end
puts data.sort.reverse.take(3).join("\n")
|
[
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 5,025
| 5,026
|
u471303097
|
ruby
|
p00001
|
arry = []
(1..10).each do |_i|
arry << gets.chomp.to_i
end
arry.sort!
puts arry.drop(3)
|
# your code goes here
arry = []
(1..10).each do |_i|
arry << gets.chomp.to_i
end
arry.sort!
arry.reverse!
puts arry.take(3)
|
[
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 5,029
| 5,030
|
u746732880
|
ruby
|
p00001
|
# your code goes here
arry = []
(1..10).each do |_i|
arry << gets.chomp.to_i
end
arry.sort!
puts arry.take(6)
|
# your code goes here
arry = []
(1..10).each do |_i|
arry << gets.chomp.to_i
end
arry.sort!
arry.reverse!
puts arry.take(3)
|
[
"call.arguments.change",
"io.output.change"
] | 5,031
| 5,030
|
u746732880
|
ruby
|
p00001
|
arry = []
(1..10).each do |_i|
arry << gets.chomp.to_i
end
arry.sort!
arry.reverse!
puts arry.drop(6)
|
# your code goes here
arry = []
(1..10).each do |_i|
arry << gets.chomp.to_i
end
arry.sort!
arry.reverse!
puts arry.take(3)
|
[
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 5,032
| 5,030
|
u746732880
|
ruby
|
p00001
|
#!/usr/bin/ruby
# Volume0-0001
class Main
def initialize
f = []
0.upto(9) do |_i|
f.push(fh.gets.to_i)
end
puts f.sort { |a, b| b <=> a }.take(3).map(&:to_s)
end
end
Main.new if $PROGRAM_NAME == __FILE__
|
#!/usr/bin/ruby
# Volume0-0001
class Main
def initialize
fh = $stdin
f = []
0.upto(9) do |_i|
f.push(fh.gets.to_i)
end
puts f.sort { |a, b| b <=> a }.take(3).map(&:to_s)
end
end
Main.new if $PROGRAM_NAME == __FILE__
|
[
"assignment.add"
] | 5,033
| 5,034
|
u032662562
|
ruby
|
p00001
|
10.times { |_n| m_list << gets.to_i }
m_list.sort! { |a, b| b <=> a }
3.times { |i| p m_list[i] }
|
m_list = []
10.times { |_n| m_list << gets.to_i }
m_list.sort! { |a, b| b <=> a }
3.times { |i| p m_list[i] }
|
[
"assignment.add"
] | 5,035
| 5,036
|
u461552210
|
ruby
|
p00001
|
ary = []
10.times { ary << gets }
ary.sort!
puts ary[9]
puts ary[8]
puts ary[7]
|
ary = []
10.times { ary << gets.to_i }
ary.sort!
puts ary[9]
puts ary[8]
puts ary[7]
|
[
"call.add"
] | 5,040
| 5,041
|
u753751512
|
ruby
|
p00001
|
mountains = []
10.times do
mountain = gets
(mountains).push(mountain)
end
mountains.sort { |a, b| b <=> a }
puts mountains[0..2]
|
mountains = []
10.times do
mountain = gets.to_i
(mountains).push(mountain)
end
mountains = mountains.sort { |a, b| b <=> a }
puts mountains[0..2]
|
[
"call.add"
] | 5,042
| 5,043
|
u365936947
|
ruby
|
p00001
|
mountains = []
10.times do
mountain = gets.to_i
(mountains).push(mountain)
end
mountains.sort { |a, b| b <=> a }
puts mountains[0..2]
|
mountains = []
10.times do
mountain = gets.to_i
(mountains).push(mountain)
end
mountains = mountains.sort { |a, b| b <=> a }
puts mountains[0..2]
|
[
"assignment.add"
] | 5,044
| 5,043
|
u365936947
|
ruby
|
p00001
|
mountains = []
10.times do
mountain = gets
(mountains).push(mountain)
end
mountains.sort { |a, b| b <=> a }
puts mountains[0..2]
|
mountains = []
10.times do
mountain = gets.to_i
(mountains).push(mountain)
end
mountains.sort! { |a, b| b <=> a }
puts mountains[0..2]
|
[
"call.suffix.change"
] | 5,042
| 5,045
|
u365936947
|
ruby
|
p00001
|
mountains = []
10.times do
mountain = gets.to_i
(mountains).push(mountain)
end
mountains.sort { |a, b| b <=> a }
puts mountains[0..2]
|
mountains = []
10.times do
mountain = gets.to_i
(mountains).push(mountain)
end
mountains.sort! { |a, b| b <=> a }
puts mountains[0..2]
|
[
"call.suffix.change"
] | 5,044
| 5,045
|
u365936947
|
ruby
|
p00001
|
puts readlines.map(&:to_i).sort.reverse
|
puts readlines.map(&:to_i).sort.reverse[0, 3]
|
[] | 5,048
| 5,049
|
u004844623
|
ruby
|
p00001
|
heights = []
while height = $stdin.gets
heights.push(height.chomp)
end
heights.sort!
3.times do
puts heights.pop
end
|
heights = []
while height = $stdin.gets
heights.push(height.chomp.to_i)
end
heights.sort!
3.times do
puts heights.pop
end
|
[
"call.add"
] | 5,050
| 5,051
|
u252414452
|
ruby
|
p00001
|
mountains = []
10.times { |i| mountains[i] = gets.chomp.to_i }
mountains.reverse!
3.times { |i| puts mountains[i] }
|
mountains = []
10.times { |i| mountains[i] = gets.chomp.to_i }
mountains.sort!.reverse!
3.times { |i| puts mountains[i] }
|
[
"call.add"
] | 5,060
| 5,061
|
u338661979
|
ruby
|
p00001
|
arr = []
while input = gets
arr.putsh(input.to_i)
end
arr.sort! { |a, b| b <=> a }
puts arr[0], arr[1], arr[2]
|
arr = []
while input = gets
arr.push(input.to_i)
end
arr.sort! { |a, b| b <=> a }
puts arr[0], arr[1], arr[2]
|
[
"identifier.change"
] | 5,066
| 5,067
|
u503172969
|
ruby
|
p00001
|
input = []
input.each do |_i|
input.push(gets.to_i)
end
puts input.sort.reverse.take(3)
|
input = []
10.times do
input.push(gets.to_i)
end
puts input.sort.reverse.take(3)
|
[
"identifier.replace.remove",
"literal.replace.add"
] | 5,070
| 5,069
|
u930055226
|
ruby
|
p00001
|
input = []
input.each do |_i|
input.push(gets.to_i)
end
puts input.sort.reverse.take(3)
|
input = []
10.times do
input.push(gets.to_i)
end
puts input.sort.reverse.take(3)
|
[
"identifier.replace.remove",
"literal.replace.add"
] | 5,071
| 5,069
|
u930055226
|
ruby
|
p00001
|
input = []
input.push(gets.to_i)
puts input.sort.reverse.take(3)
|
input = []
10.times do
input.push(gets.to_i)
end
puts input.sort.reverse.take(3)
|
[
"call.add"
] | 5,072
| 5,069
|
u930055226
|
ruby
|
p00001
|
num = []
i = 0
while i < 10
num[i] = gets.to_i
i += 1
end
num.sort! { |a, b| -1 * (a <=> b) }
puts 'result'
(0..2).each do |n|
puts (num[n]).to_s
end
|
num = []
i = 0
while i < 10
num[i] = gets.to_i
i += 1
end
num.sort! { |a, b| -1 * (a <=> b) }
(0..2).each do |n|
puts (num[n]).to_s
end
|
[
"call.remove"
] | 5,078
| 5,079
|
u974872807
|
ruby
|
p00001
|
line = []
while l = gets
line << l.to_i
end
line = line.sort
p line
puts line[9]
puts line[8]
puts line[7]
|
line = []
while l = gets
line << l.to_i
end
line = line.sort
puts line[9]
puts line[8]
puts line[7]
|
[
"call.remove"
] | 5,080
| 5,081
|
u937978414
|
ruby
|
p00001
|
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
[
"call.arguments.change"
] | 5,082
| 5,083
|
u770686467
|
ruby
|
p00001
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
[
"call.arguments.change"
] | 5,084
| 5,083
|
u770686467
|
ruby
|
p00001
|
height = []
10.times do
height.push($stdin.get.to_i)
end
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
[
"call.arguments.change"
] | 5,085
| 5,083
|
u770686467
|
ruby
|
p00001
|
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,082
| 5,086
|
u770686467
|
ruby
|
p00001
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,084
| 5,086
|
u770686467
|
ruby
|
p00001
|
height = []
10.times do
height.push($stdin.get.to_i)
end
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,085
| 5,086
|
u770686467
|
ruby
|
p00001
|
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
# height[height.size()-1]の省略と考えると分かり易い
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,082
| 5,087
|
u770686467
|
ruby
|
p00001
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
# height[height.size()-1]の省略と考えると分かり易い
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,084
| 5,087
|
u770686467
|
ruby
|
p00001
|
height = []
10.times do
height.push($stdin.get.to_i)
end
height.sort!
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
# height[height.size()-1]の省略と考えると分かり易い
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,085
| 5,087
|
u770686467
|
ruby
|
p00001
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.get.to_i)
end
# 配列の並び替え
height.sort!
# height[height.size()-1]の省略と考えると分かり易い
puts height[-1]
puts height[-2]
puts height[-3]
|
#! ruby -Ks
# 配列の生成
height = []
10.times do
# 標準入力を整数に変換して配列に格納
height.push($stdin.gets.to_i)
end
# 配列の並び替え
height.sort!
# height[height.size()-1]の省略と考えると分かり易い
p height[-1]
p height[-2]
p height[-3]
|
[
"call.arguments.change",
"identifier.change"
] | 5,088
| 5,087
|
u770686467
|
ruby
|
p00001
|
arr = []
(0...10).each do |_cnt|
arr.push(gets.chomp)
end
arr.sort!.reverse!
(0...3).each do |cnt|
puts(arr[cnt])
end
|
arr = []
(0...10).each do |_cnt|
arr.push(gets.chomp.to_i)
end
arr.sort!.reverse!
(0...3).each do |cnt|
puts(arr[cnt])
end
|
[
"call.add"
] | 5,095
| 5,096
|
u361124931
|
ruby
|
p00001
|
a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
(0..9).each do |num|
a[num] = gets.chomp
end
n = a.size - 1
(0..n).each do |i|
(0..n - i - 1).each do |j|
next unless a[j] > a[j + 1]
tmp = a[j]
a[j] = a[j + 1]
a[j + 1] = tmp
end
end
puts a[9]
puts a[8]
puts a[7]
|
a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
(0..9).each do |num|
a[num] = gets.to_i
end
n = a.size - 1
(0..n).each do |i|
(0..n - i - 1).each do |j|
next unless a[j] > a[j + 1]
tmp = a[j]
a[j] = a[j + 1]
a[j + 1] = tmp
end
end
puts a[9]
puts a[8]
puts a[7]
|
[
"assignment.value.change"
] | 5,097
| 5,098
|
u455324233
|
ruby
|
p00003
|
num = []
(0...gets.to_i).each do |_i|
a = gets
num = a.split(nil)
num.collect!(&:to_i)
num.sort!
if num[2]**2 == num[0]**2 + num[1]**2
puts 'Yes'
else
puts 'No'
end
end
|
num = []
(0...gets.to_i).each do |_i|
a = gets
num = a.split(nil)
num.collect!(&:to_i)
num.sort!
if num[2]**2 == (num[0]**2) + (num[1]**2)
puts 'YES'
else
puts 'NO'
end
end
|
[
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 6,873
| 6,874
|
u287407095
|
ruby
|
p00003
|
dataset_count = $stdin.gets.to_i
dataset_count.times do |_i|
point = $stdin.gets.split(' ')
point.map!(&:to_i)
a, b, c = point
if a**2 + b**2 == c**2
puts 'YES'
else
puts 'NO'
end
end
|
dataset_count = $stdin.gets.to_i
dataset_count.times do |_i|
point = $stdin.gets.split(' ')
point.map!(&:to_i)
a, b, c = point.sort
if a**2 + b**2 == c**2
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.add"
] | 6,879
| 6,880
|
u221341770
|
ruby
|
p00003
|
num = gets.split.length
(1..num).each do |_i|
abc = gets.split.map(&:to_i)
abc.sort!
if abc[0]**2 + abc[1]**2 == abc[2]**2
puts('YES')
else
puts('NO')
end
end
|
num = gets.to_i
(1..num).each do |_i|
abc = gets.split.map(&:to_i)
abc.sort!
if abc[0]**2 + abc[1]**2 == abc[2]**2
puts('YES')
else
puts('NO')
end
end
|
[
"assignment.value.change"
] | 6,883
| 6,884
|
u648595404
|
ruby
|
p00003
|
require 'English'
gets
while gets
a, b, c = $LAST_READ_LINE.split.map(&:to_i)
puts a * a + b * b == c * c ? 'YES' : 'NO'
end
|
require 'English'
gets
while gets
a, b, c = $LAST_READ_LINE.split.map(&:to_i).sort
puts a * a + b * b == c * c ? 'YES' : 'NO'
end
|
[
"call.add"
] | 6,886
| 6,887
|
u797180951
|
ruby
|
p00003
|
n = gets.chomp.to_i
n.times do
i = gets
a, b, c = i.chomp
a = a.to_i
b = b.to_i
c = c.to_i
if a**2 == (b**2 + c**2) || b**2 == (a**2 + c**2) || c**2 == (a**2 + b**2)
puts 'YES'
else
puts 'NO'
end
end
|
n = gets.chomp.to_i
n.times do
i = gets
a, b, c = i.chomp.split
a = a.to_i
b = b.to_i
c = c.to_i
if a**2 == (b**2 + c**2) || b**2 == (a**2 + c**2) || c**2 == (a**2 + b**2)
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.add"
] | 6,888
| 6,889
|
u627848547
|
ruby
|
p00003
|
gets
ARGF.each_line do |line|
a, b, c = line.split.map(&:to_i)
if (a**2 + b**2) == c**2
puts 'YES'
else
puts 'NO'
end
end
|
gets
ARGF.each_line do |line|
a, b, c = line.split.map(&:to_i).sort
if (a**2 + b**2) == c**2
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.add"
] | 6,890
| 6,891
|
u024069892
|
ruby
|
p00003
|
# Is it a Right Triangle?
ARGF.gets skip
while line = ARGF.gets
a, b, c = line.aplit.map(&:to_i).sort
res = (a**2) + (b**2) == c**2
puts res ? 'YES' : 'NO'
end
|
# Is it a Right Triangle?
ARGF.gets # skip
while line = ARGF.gets
a, b, c = line.split.map(&:to_i).sort
res = (a**2) + (b**2) == c**2
puts res ? 'YES' : 'NO'
end
|
[
"call.arguments.change",
"identifier.change"
] | 6,892
| 6,893
|
u024069892
|
ruby
|
p00003
|
# Is it a Right Triangle?
ARGF.gets # skip
while line = ARGF.gets
a, b, c = line.aplit.map(&:to_i).sort
res = (a**2) + (b**2) == c**2
puts res ? 'YES' : 'NO'
end
|
# Is it a Right Triangle?
ARGF.gets # skip
while line = ARGF.gets
a, b, c = line.split.map(&:to_i).sort
res = (a**2) + (b**2) == c**2
puts res ? 'YES' : 'NO'
end
|
[
"identifier.change"
] | 6,894
| 6,893
|
u024069892
|
ruby
|
p00003
|
gets.chomp.to_i.times do
a, b, c = gets.split.map(&:to_i).sort
if c**2 == a**2 + b**2
puts 'Yes'
else
puts 'No'
end
end
|
gets.chomp.to_i.times do
a, b, c = gets.split.map(&:to_i).sort
if c**2 == a**2 + b**2
puts 'YES'
else
puts 'NO'
end
end
|
[
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 6,895
| 6,896
|
u261074410
|
ruby
|
p00003
|
inputArray = []
rows = gets.to_i
i = 0
rows.times do
temp = gets
inputArray[i], inputArray[i + 1], inputArray[i + 2] = temp.split(' ').map(&:to_i)
i += 3
end
i = 0
inputArray.map! { |n| n**2 }
test = []
rows.times do
test = [inputArray[i], inputArray[i + 1], inputArray[i + 2]]
test.sort!
if test[0] + test[1] == test[i + 2]
puts 'YES'
else
puts 'NO'
end
i += 3
end
|
inputArray = []
rows = gets.to_i
i = 0
rows.times do
temp = gets
inputArray[i], inputArray[i + 1], inputArray[i + 2] = temp.split(' ').map(&:to_i)
i += 3
end
i = 0
inputArray.map! { |n| n**2 }
test = []
rows.times do
test = [inputArray[i], inputArray[i + 1], inputArray[i + 2]]
test.sort!
if test[0] + test[1] == test[2]
puts 'YES'
else
puts 'NO'
end
i += 3
end
|
[
"expression.operation.binary.remove"
] | 6,901
| 6,902
|
u746732880
|
ruby
|
p00003
|
cnt = gets.to_i
ss = []
cnt.times do |_i|
ss = gets.to_s.split(' ').map(&:to_i)
if (ss[0] * ss[0] + ss[1] * ss[1] - ss[2] * ss[2]).zero? || (ss[0] * ss[0] - ss[1] * ss[1] + ss[2] * ss[2]).zero? || (-ss[0] * ss[0] + ss[1] * ss[1] + ss[2] * ss[2]).zero?
p 'YES'
else
p 'NO'
end
end
|
cnt = gets.to_i
ss = []
cnt.times do |_i|
ss = gets.to_s.split(' ').map(&:to_i)
if (ss[0] * ss[0] + ss[1] * ss[1] - ss[2] * ss[2]).zero? || (ss[0] * ss[0] - ss[1] * ss[1] + ss[2] * ss[2]).zero? || (-ss[0] * ss[0] + ss[1] * ss[1] + ss[2] * ss[2]).zero?
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.function.change",
"io.output.change"
] | 6,903
| 6,904
|
u461552210
|
ruby
|
p00003
|
while str = gets
array = str.chomp.split(' ').map(&:to_i)
array = array.sort
if array[2] * array[2] == array[1] * array[1] + array[0] * array[0]
puts 'YES'
else
puts 'NO'
end
end
|
gets
while str = gets
array = str.chomp.split(' ').map(&:to_i)
array = array.sort
if array[2] * array[2] == array[1] * array[1] + array[0] * array[0]
puts 'YES'
else
puts 'NO'
end
end
|
[] | 6,919
| 6,920
|
u720435069
|
ruby
|
p00003
|
if __FILE__ == $PROGRAM_NAME
n = gets.to_i
n.times do
args = gets.split(' ').map(&:to_i)
result = (((args[0]**2) + (args[1]**2)) == args[2]**2)
if result
puts 'YES'
else
puts 'NO'
end
end
end
|
if __FILE__ == $PROGRAM_NAME
n = gets.to_i
n.times do
args = gets.split(' ').map(&:to_i).sort
result = (((args[0]**2) + (args[1]**2)) == args[2]**2)
if result
puts 'YES'
else
puts 'NO'
end
end
end
|
[
"call.add"
] | 6,928
| 6,929
|
u452819785
|
ruby
|
p00003
|
#!/usr/local/bin/ruby
a = []
N = gets.to_i
N.times do
a << gets.split(' ').map(&:to_i)
end
a.each do |x, y, z|
if z**2 == x**2 + y**2
puts 'YES'
else
puts 'NO'
end
end
|
#!/usr/local/bin/ruby
a = []
N = gets.to_i
N.times do
a << gets.split(' ').map(&:to_i).sort
end
a.each do |x, y, z|
if z**2 == x**2 + y**2
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.add"
] | 6,930
| 6,931
|
u029362684
|
ruby
|
p00003
|
n = gets.chomp.to_i
n.times do |_i|
a = gets
break if a.nil?
b = a.split(' ')
b.map!(&:to_i)
b.sort!
if (b[2]**2) == (b[1]**2) + (b[0]**2)
p 'YES'
else
p 'NO'
end
end
|
n = gets.chomp.to_i
n.times do |_i|
a = gets
break if a.nil?
b = a.split(' ')
b.map!(&:to_i)
b.sort!
if (b[2]**2) == (b[1]**2) + (b[0]**2)
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.function.change",
"io.output.change"
] | 6,932
| 6,933
|
u348879714
|
ruby
|
p00003
|
count = $stdin.gets.chomp.to_i
while count != 0
sannpenn = $stdin.gets.chomp.split("\s")
sannpenn.map!(&:to_i).sort
count += -1
if (sannpenn[0]**2 + sannpenn[1]**2) == sannpenn[2]**2
puts 'YES'
else
puts 'NO'
end
end
|
count = $stdin.gets.chomp.to_i
while count != 0
sannpenn = $stdin.gets.chomp.split("\s")
sannpenn.map!(&:to_i)
sannpenn.sort!
count += -1
if (sannpenn[0]**2 + sannpenn[1]**2) == sannpenn[2]**2
puts 'YES'
else
puts 'NO'
end
end
|
[
"call.add",
"call.suffix.change"
] | 6,936
| 6,937
|
u170199598
|
ruby
|
p00002
|
until gets.nil?
data = gets
data = data.split(nil)
sum = data[0].to_i + data[1].to_i
puts sum.to_s.length
end
|
while data = gets
data = data.split(nil)
sum = data[0].to_i + data[1].to_i
puts sum.to_s.length
end
|
[
"control_flow.loop.condition.change"
] | 7,899
| 7,900
|
u648595404
|
ruby
|
p00002
|
data = gets
if data = nil
break
data = data.split(nil)
sum = data[0].to_i + data[1].to_i
puts sum.to_s.length
end
|
while data = gets
data = data.split(nil)
sum = data[0].to_i + data[1].to_i
puts sum.to_s.length
end
|
[
"control_flow.break.remove"
] | 7,901
| 7,900
|
u648595404
|
ruby
|
p00002
|
while input = gets
break if gets == ''
input.chomp.split(' ').map(&:to_i).inject(&:+).to_s.length
end
|
while input = gets
break if input == ''
puts input.chomp.split(' ').map(&:to_i).inject(&:+).to_s.length
end
|
[
"identifier.change",
"control_flow.branch.if.condition.change",
"io.output.change",
"call.add"
] | 7,904
| 7,905
|
u102270034
|
ruby
|
p00002
|
a, b = gets.chomp.split
a = a.to_i
b = b.to_i
c = a + b
i = 0
while c.positive?
c /= 10
i += 1
end
puts i
|
while n = gets
a, b = n.chomp.split
a = a.to_i
b = b.to_i
c = a + b
i = 0
while c.positive?
c /= 10
i += 1
end
puts i
end
|
[
"identifier.change"
] | 7,909
| 7,910
|
u741826804
|
ruby
|
p00002
|
#!/usr/bin/env ruby
while line = gets
a, b = line.split.map(&:to_i)
c = a + b
i = 1
while c > 10
c /= 10
i += 1
end
puts i
end
|
#!/usr/bin/env ruby
while line = gets
a, b = line.split.map(&:to_i)
c = a + b
i = 1
while c >= 10
c /= 10
i += 1
end
puts i
end
|
[
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 7,911
| 7,912
|
u695539149
|
ruby
|
p00002
|
#!/usr/bin/env ruby
while line = gets
a, b = line.split.map(&:to_i)
c = a + b
i = 1
while c > 10
c /= 10
i += 1
end
puts i
end
|
while line = gets
a, b = line.split.map(&:to_i)
c = a + b
i = 1
while c >= 10
c /= 10
i += 1
end
puts i
end
|
[
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 7,911
| 7,913
|
u695539149
|
ruby
|
p00002
|
while vals = gets
puts vals.map(&:to_i).inject(:+).to_s.split('').size
end
|
while vals = gets
puts vals.split.map(&:to_i).inject(:+).to_s.split('').size
end
|
[
"call.add"
] | 7,914
| 7,915
|
u216457386
|
ruby
|
p00002
|
gets.each_line do |line|
num = line.split(' ')
sum = 0
num.each { |n| sum += n.to_i }
cnt = 0
while sum.positive?
sum /= 10
cnt += 1
end
p cnt
end
|
$stdin.each_line do |line|
num = line.split(' ')
sum = 0
num.each { |n| sum += n.to_i }
cnt = 0
while sum.positive?
sum /= 10
cnt += 1
end
p cnt
end
|
[
"call.add"
] | 7,922
| 7,923
|
u461552210
|
ruby
|
p00002
|
loop do
date = gets
break unless date
date.split
puts (date[0].to_i + date[1].to_i).to_s.size
end
|
loop do
date = gets
break unless date
date = date.split
puts (date[0].to_i + date[1].to_i).to_s.size
end
|
[
"assignment.add"
] | 7,925
| 7,926
|
u753751512
|
ruby
|
End of preview. Expand
in Data Studio
YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/datasets-cards)
Original Dataset + Tokenized Data + (Buggy + Fixed Embedding Pairs) + Difference Embeddings
Overview
This repository contains 4 related datasets for [your use case]:
Datasets Included
1. Original Dataset (train-00000-of-00001.parquet)
- Description: Legacy RunBugRun Dataset
- Format: Parquet file with buggy-fixed code pairs, bug labels, and language
- Size: 456,749 samples
- Load with: dataset = load_dataset("NicholasOgenstad/my-runbugrun-dataset-filtered", split="train")
2. Difference Embeddings (diff_embeddings_chunk_XXXX.pkl)
- Description: ModernBERT-large embeddings for buggy-fixed pairs. The difference is Fixed embedding - Buggy embedding. 1024 dimensional vector.
- Format: Pickle file with XXXX arrays
- Dimensions: 456,749 × 1024, split among the different files, most 20000, last one shorter.
- Load with: XXXX
3. Tokens (token_embeddings.pkl)
- Description: Original Dataset tokenized, pairs of Buggy and Fixed code.
- Format: Pickle file XXXX
- Load with: XXXX
4. Buggy + Fixed Embeddings(tokenized_data.json)
- Description: Preprocessed tokenized sequences
- Format: Pickle file XXXX
- Load with: XXXX
Usage Examples
# Load original dataset
# Load tokens
# Load diff embeddings
# Load buggy fixed embedding pairs
- Downloads last month
- 32