qyliang/CodeNanoFix huggingface dataset:
Buggy code:
while True:
    s=input().split()
    t=[int(l) for l in s]
    if t[0]==0:
        break
    else:
        for i in range(t[0]):
            print("#"*t[1])
        print(" ")
    


Fixed code:
while True:
    s=input().split()
    t=[int(l) for l in s]
    if t[0]==0:
        break
    else:
        for i in range(t[0]):
            print("#"*t[1])
        print()
Buggy code:
while True:
    a,b= map(int,input().split())
    if(a==0 and b==0):
        break;
    for i in range(a):
        for j in range(b):
            print('#',end='')
        print()
    


Fixed code:
while True:
    a, b = map(int, input().split())
    if(a == 0 and b == 0):
        break
    for i in range(a):
        for j in range(b):
            print("#", end = "")
        print()
    print()
Buggy code:
while True:
    H, W = map(int, input().split())
    if H ==0 and W == 0:
        break
    for i in range(H):
        a = ""
        for j in range(W):
            a += "#"
        print(a)
    print("\n")

Fixed code:
while True:
    H, W = map(int, input().split())
    if H ==0 and W == 0:
        break
    for i in range(H):
        a = ""
        for j in range(W):
            a += "#"
        print(a)
    print("")
Buggy code:
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print(('#' * w + '/n') * h)

Fixed code:
while True:
    h,w=map(int, input().split())
    if h==w== 0:break
    print(('#' * w + '\n') * h)
Buggy code:
while(1):
	H, W = map(int, input().split())
	if H == 0 and W == 0:
		break
	for i in range(H):
		for j in range(W):
			print("#", end='')
		print("#", end='')
	

Fixed code:
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        for j in range(W):
            print('#', end='')
        print('')
    print('')
Buggy code:
while True:
	H,W = list(map(int, input().split()))
	if (H == 0 and W == 0):
		break
	else:
		for n in range(0, H):
			s = ""
			for m in range(0, W):
				s += "#"
			print(s)
		print(""

Fixed code:
while True:
	H,W = list(map(int, input().split()))
	if (H == 0 and W == 0):
		break
	else:
		for n in range(H):
			s = ""
			for m in range(W):
				s += "#"
			print(s)
		print("")
Buggy code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()

Fixed code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()
Buggy code:
while(1):
	H, W = map(int, input().split())
	if H == 0 and W == 0:
		break
	for i in range(H):
		for j in range(W):
			print("#", end='')
		print("\n", end='')

Fixed code:
while(1):
	H, W = map(int, input().split())
	if H == 0 and W == 0:
		break
	for i in range(H):
		for j in range(W):
			print("#", end='')
		print("\n", end='')
	print("\n", end='')
Buggy code:
# -*-coding:utf-8

#import fileinput
import math

def main():
    while True:
        a, b = map(int, input().split())

        if (a == 0 and b == 0):
            break
        else:
            for i in range(a):
                for j in range(b):
                    print('#', end='')
                print('')

if __name__ == '__main__':
    main()

Fixed code:
# -*-coding:utf-8

#import fileinput
import math

def main():
    while True:
        a, b = map(int, input().split())

        if (a == 0 and b == 0):
            break
        else:
            for i in range(a):
                for j in range(b):
                    print('#', end='')
                print('')

            print('')

if __name__ == '__main__':
    main()
Buggy code:
h = 1
w = 1
while True:
	if h == 0 and w == 0:
		break
		
	nums = list(map(int, input().split(" ")))
	h = nums[0]
	w = nums[1]

	for i in range(h):
		for j in range(w):
			print("#", end="")
		print("")


Fixed code:
while True:
	nums = list(map(int, input().split(" ")))
	h = nums[0]
	w = nums[1]
	if h == 0 and w == 0:
		break

	for i in range(h):
		for j in range(w):
			print("#", end="")
		print("")
	
	print("")
Buggy code:
judge=True
while judge:
    N=list(map(int,input().split()))
    if N[0] + N[1] == 0:
        judge = False
    else :
        for i in range(0,N[0]):
            for j in range(0,N[1]):
                print("#",end="")
            print("\n",end="")




Fixed code:
judge=True
while judge:
    N=list(map(int,input().split()))
    if N[0] + N[1] == 0:
        judge = False
    else :
        for i in range(0,N[0]):
            for j in range(0,N[1]):
                print("#",end="")
            print("\n",end="")

        print("\n",end="")
Buggy code:
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break

    for _ in range(h):
        for _ in range (w):
            print("#", end="")
        print("")



Fixed code:
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break

    for _ in range(h):
        for _ in range (w):
            print("#", end="")
        print("")
    print("")
Buggy code:
while True:
    height, width = [int(x) for x in input().split(" ")]
    if height == 0 and width ==0:
        break

    for h in range(height):
        print("{0}".format("#" * width))

    print("\n")

Fixed code:
while True:
    height, width = [int(x) for x in input().split(" ")]
    if height == 0 and width ==0:
        break

    for h in range(height):
        print("{0}".format("#" * width))

    print("\n", end="")
Buggy code:
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break
    for i in range(h)
        print("#")
    print()

Fixed code:
while True:
    h,w = map(int,input().split())
    for j in range(h):
        for i in range(w):
            print("#", end="")
        print()
    if h==0 and w==0:
        break
    print()
Buggy code:
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break
    for i in range(h)
        print("#" * w)

Fixed code:
while True:
    h,w = map(int,input().split())
    if h == 0 and w == 0:
        break
    for i in range(h):
        print("#"*w)
    print()
Buggy code:
while True:
    h, w = [int(i) for i in input().split(' ')]
    if h ==0 and w ==0:
        break
    for i in range(h):
        row = ''
        for j in range(w):
            row = row + '#'
        print(row)
    print('\n')


Fixed code:
while True:
    h, w = [int(i) for i in input().split(' ')]
    if h ==0 and w ==0:
        break
    for i in range(h):
        row = ''
        for j in range(w):
            row = row + '#'
        print(row)
    print('')
Buggy code:
while True:
    s = input().rstrip().split(" ")
    h=int(s[0])
    w=int(s[1])
    if (h == 0) & (w == 0):
        break
    for i in range(h): 
        print("#"*w)

Fixed code:
while True:
    s = input().rstrip().split(" ")
    h=int(s[0])
    w=int(s[1])
    if (h == 0) & (w == 0):
        break
    for i in range(h): 
        print("#"*w)
    print()
Buggy code:
while True:
    x,y = map(int,input().split())
    if (x,y) == (0,0):
        break
    for i in range(y):
        print("#"*x)
    print()


Fixed code:
while True:
    x,y = map(int,input().split())
    if (x,y) == (0,0):break
    for i in range(x):
        print("#"*y)
    print()
Buggy code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == 0 and W == 0:
        break

    for i in range(H):
        for j in range(W):
            print('#', end='')
        print('')

Fixed code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == 0 and W == 0:
        break

    for i in range(H):
        for j in range(W):
            print('#', end='')
        print('')
    print('')
Buggy code:
while True:
    h, w = map(int, input().split())
    if h == w == 0:
        break
    for i in range(h):
        print("#" * w)

Fixed code:
while True:
    h, w = map(int, input().split())
    if w == 0 and h == 0:
        break
    else:
        for i in range(h):
            print('#'*w)
        print()
Buggy code:
def sh(num):
    for n in num:
        out(n)
def out(n):
    number = []
        # print(n[0])
        # print(n[1])
    for i in range(n[1]):
        number.append("#")
    for i in range(n[0]):
        print(''.join(number))
    print(' ')

num = []
while True:
    n = list(map(int, input().split()))
    if n[0] == 0 and n[1] == 0:
        break
    else:
        num.append(n)
sh(num)

Fixed code:
def sh(num):
    for n in num:
        out(n)
def out(n):
    number = []
        # print(n[0])
        # print(n[1])
    for i in range(n[1]):
        number.append("#")
    for i in range(n[0]):
        print(''.join(number))
    print('')

num = []
while True:
    n = list(map(int, input().split()))
    if n[0] == 0 and n[1] == 0:
        break
    else:
        num.append(n)
sh(num)
Buggy code:
while 1:
 H, W = map(int, input().split())
 if H == 0 and W == 0:
  break
 for i in range(0, H):
  print('#' * W)
 print("\n")

Fixed code:
while 1:
 H, W = map(int, input().split())
 if H == 0 and W == 0:
  break
 for i in range(0, H):
  print('#' * W)
 print()
Buggy code:
import sys
def main():
    for line in sys.stdin:
        H, W = map(int, line.split())
        if H == 0 and W == 0:
            break
        else:
            for _ in range(H):
                for _ in range(W):
                    print("#", end = "")
                print()


if __name__ == "__main__":
    main()

Fixed code:
import sys
def main():
    for line in sys.stdin:
        H, W = map(int, line.split())
        if H == 0 and W == 0:
            break
        else:
            for _ in range(H):
                for _ in range(W):
                    print("#", end = "")
                print()
            print()


if __name__ == "__main__":
    main()
Buggy code:
BIG_NUM = 2000000000
while 1:
    w,h=map(int,input().split())
    if w==0 and h==0: break
    for a in range(h):
        print('#'*w)
    print()


Fixed code:
while 1:
    w,h=map(int,input().split())
    if w==0 and h==0: break
    for a in range(w):
        print('#'*h)
    print()
Buggy code:
def printRect(h,w):
    for i in range(h):
        print("#"*w)

while True:
    l = [int(i) for i in input().split(' ')]
    if l[0] == 0 and l[1] == 0:
        break
    else:
        printRect(l[0],l[1])

Fixed code:
def printRect(h,w):
    for i in range(h):
        print("#"*w)

while True:
    l = [int(i) for i in input().split(' ')]
    if l[0] == 0 and l[1] == 0:
        break
    else:
        printRect(l[0],l[1])
        print()
Buggy code:
while True:
  ( H, W) = [ int(i) for i in input().split() ]
  if H == W == 0: break
  for h in range(H): print( '#' * w)
  print()

Fixed code:
while True:
  ( H, W) = [ int(i) for i in input().split() ]
  if H == W == 0: break
  for h in range(H): print( '#' * W)
  print()
Buggy code:
while True:
    H,W = map(int, input().split())
    if H == 0 and W == 0:
        break
    elif H > 301 or W > 301:
        break
    else:
        for i in range(H):
            row = '#' * W
            print(row)
            if i+1 == H:
                print("\n")

Fixed code:
while True:
    H,W = map(int, input().split())
    if H == 0 and W == 0:
        break
    elif H > 301 or W > 301:
        break
    else:
        for i in range(H):
            row = '#' * W
            print(row)
        print("\n", end ='')
Buggy code:
while True:
   H, W = map(int, input().split())

   if H == 0 and W == 0:
      break

   for i in range(0, H):
      print("#" * W)
      print("")


Fixed code:
while True:
    H, W = map(int,input().split())
    if H==0 and W==0:
        break
    
    for _ in range(H):
        print('#'*W)
    print('')
Buggy code:
#coding:utf-8
#1_5_A 2015.4.1
while True:
    length,width = map(int,input().split())
    if (length,width) == (0,0):
        break
    for i in range(length):
        print('#' * width)
#    print()

Fixed code:
#coding:utf-8
#1_5_A 2015.4.1
while True:
    length,width = map(int,input().split())
    if (length,width) == (0,0):
        break
    for i in range(length):
        print('#' * width)
    print()
Buggy code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(h):
        for w in range(w):
            print('#', end='')

        print()

    print()

Fixed code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            print('#', end='')
        print()
    
    print()
Buggy code:
while(True):
    a=list(map(int,input().split()))
    if(a[0]==0 and a[1]==0):
        break
    for x in range(a[1]):
        print("#"*a[0])
    print()

Fixed code:
while(True):
    a=list(map(int,input().split()))
    if(a[0]==0 and a[1]==0):
        break
    for x in range(a[0]):
        print("#"*a[1])
    print()
Buggy code:
a = []
while True:
    l = list(map(int,input().split()))
    if l == [0,0]:
        break
    a.append(l)
    break


for i in range(len(a)):
	H,W = a[i]
	for i in range(H):
		print("#"*W)
	print("")

Fixed code:
a = []
while True:
    l = list(map(int,input().split()))
    if l == [0,0]:
        break
    a.append(l)


for i in range(len(a)):
	H,W = a[i]
	for i in range(H):
		print("#"*W)
	print("")
Buggy code:
while True:
    H, W = map(int, input().split())
    if W == 0 and H == 0:
        break
   for i in range(H):
        print ('#' * W)
    print()

Fixed code:
BIG_NUM = 2000000000

while True:

    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    for i in range(H):
        print("#"*W)

    print()
Buggy code:
while True:
    H, W = map(int, input().split())
    if W == 0 and H == 0:
        break
    for i in range(H):
        for i in range(W):
            print ('#', end = '')
        print()

Fixed code:
while True:
	H,W=map(int,input().split())
	if H==0 and W==0:
		break
	for i in range(H):
		for j in range(W):
			print("#",end="")
		print("")
	print("")
Buggy code:
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    o = ""
    for h in range(a):
        for w in range(b):
            o += "#" 
        o += "\n"
        print(o)
    print("\n")


Fixed code:
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    o = ""
    for h in range(a):
        for w in range(b):
           print("#", end="")
        print("\n", end="")
    print()
Buggy code:
while True:
    a,b=input().split()
    h=int(a)
    w=int(b)
    if h ==0 and w==0:
       break
    for i in range(h):
       print("#"*w)
    print(' ')

   

Fixed code:
while True:
    a,b=input().split()
    h=int(a)
    w=int(b)
    if h ==0 and w==0:
       break
    else:
        for i in range(h):
           print("#"*w)
        print('')
Buggy code:
while True:
    h,w=map(int, input().split())
    if h == 0 and w == 0:
        quit()
    for i in range(h):
        print('#'*w)
    print(\n)

Fixed code:
while True:
    h,w=map(int, input().split())
    if h == 0 and w == 0:
        quit()
    for i in range(h):
        print('#'*w)
    print()
Buggy code:
while True:
    h,w=map(int, input().split())
    if h == 0 and w == 0:
        quit()
    for i in range(h):
        print('#'*w)

Fixed code:
while True:
    h,w = map(int, input().split())
    
    if h == 0 and w == 0:           
        break
    for i in range(h):
        print('#' * w)
    print()
Buggy code:
while True:
  H, W = map(int, input().split())
  if H==W==0:
      break
  for i in range(H):
    print('#'*W)

print()


Fixed code:
while True:
  H, W = map(int, input().split())
  if H == 0 and W == 0:
    break
  for i in range(H):
    print('#' * W)
  print()
Buggy code:
while True:
  h, w = map(int, input().split())
  
  if h==0 and w ==0:
    break
  
  for i in range(h):
    print('#'*w)

print()


Fixed code:
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0:
        break

    for _ in range(h):
        print("#" * w)
    print()
Buggy code:
while True:
    num = list(map(int,input().split()))
    if(num[0] == 0 and num[1] == 0):break
    else:
        for i in range(num[0]):
            for j in range(num[1]):
                print("#",end="")
            print("\n")



Fixed code:
while True:
    num = list(map(int,input().split()))
    if(num[0] == 0 and num[1] == 0):break
    else:
        for i in range(num[0]):
            for j in range(num[1]):
                print("#",end="")
            print("")
        print("")
Buggy code:
while true:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    for i in range(a):
        print('#' * b)
    print()

Fixed code:
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    for i in range(a):
        print('#' * b)
    print()
Buggy code:
while True:
    H, W = map(int, input().split())
    if H == 0  and W == 0:
        break
    w = '#' * W
    for i in range(H):
        print(w)

Fixed code:
while True:
    H, W = map(int, input().split())
    if H == W == 0:
        break
    for i in range(H):
        print("#"*W)
    print()
Buggy code:
while(True):
    h, w = map(int, input().split())
    if(h == 0 and w == 0):
        break
    for _ in range(h):
        print('#' * w)


Fixed code:
while True:
  h,w = map(int,input().split())
  if h == 0 and w == 0:
    break
  for i in range(h):
    print('#'*w)
  print('')
Buggy code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
        
    for h in range(h):
        for w in range(w):
            print('#', end='')
            
        print()
        
    print()

Fixed code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
        
    for h in range(H):
        for w in range(W):
            print('#', end='')
            
        print()
        
    print()
Buggy code:
while True:
  H,M=map(int,input().split())
  if H == 0 and M == 0:
    break
  else:
    for i in range(H):
  ???    print('#'*M)
  ???print('')

Fixed code:
while True:
 H,M=map(int,input().split())
 if H == 0 and M == 0:
     break
 else:
     for i in range(H):
         print('#'*M)
     print('')
Buggy code:
while True:
    H, W = map(int, input().split())
    if (H,W)==(0,0):
        break
    else:
        for i in range(H):
            print()
            for j in range(W):
                print("#",end="")

Fixed code:
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    else:
        for i in range(H):
            for j in range(W):
                print("#",end="")
            print()
        print()
Buggy code:
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    else:
        for i in range(H):
            print()
            for j in range(W):
                print("#")

Fixed code:
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    else:
        for i in range(H):
            print("#" * W)
        print("")
Buggy code:
while True:
    H,W = map(int, input().split())
    i = 0

    if H == 0 and W == 0:
        break
    for i in range(H):
        print('#'*W)



Fixed code:
while True:
    H,W=map(int,input().split())
    if H==0 and W==0:
        break
    for i in range(H):
        print("#"*W)
    print()
Buggy code:
while True:
    H,W = [int(x) for x in input().split()]
    if (H,W)==(0,0): break
    for i in range(H):
        for j in range(W):
            print("#",end="")
        print("")

Fixed code:
while True:
    H,W = [int(x) for x in input().split()]
    if (H,W)==(0,0): break
    for i in range(H):
        for j in range(W):
            print("#",end="")
        print("")
    print("")
Buggy code:
while 1:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    else:
        for h in range(H):
            print('#' * W)
        print('\n')

Fixed code:
while 1:
    H, W = map(int, input().split())
    if H == 0 and W == 0:
        break
    else:
        for h in range(H):
            print('#' * W)
        print()
Buggy code:
while 1:
    W, H = map(int, input().split())
    if W == 0 and H == 0:
        break
    for h in range(H):
        print('#'* W)
    print('')

Fixed code:
while True:
    H, W = map(int, input().split())
    if H == 0 and W == 0: break
    for h in range(H): print('#' * W)
    print()
Buggy code:
while True:
    H, W = [int(x) for x in input().split(" ")]
    if H == 0 and W == 0: exit()
    for i in (range(H)):
        print("#"*W)

Fixed code:
while True:
    H, W = [int(x) for x in input().split(" ")]
    if H == 0 and W == 0: exit()
    for i in (range(H)):
        print("#"*W)
    print("")
Buggy code:
while True:
    num = [int(i) for i in input().split(" ")]
    H = num[0]
    W = num[1]
    if H == 0 and W == 0:
        break
    for n in range(H):
        print("#" * W)
        

Fixed code:
while True:
    num = [int(i) for i in input().split(" ")]
    H = num[0]
    W = num[1]
    if H == 0 and W == 0:
        break
    print(("#" * W + "\n")*H)
Buggy code:
import sys
for l in sys.stdin:
  H, W = map(int,l.split())
  if H == 0 and W == 0:
    print ('\n')
    break
  for h in range(H):
    print (W * '#')
  print ('\n')

Fixed code:
import sys
for l in sys.stdin:
  H, W = map(int,l.split())
  if H == 0 and W == 0:
    break
  for h in range(H):
    print (W * '#')
  print ('')
Buggy code:
# -*- coding: utf-8 -*
while True:
    h, w = map(int, input().split())

    if h == 0 and w == 0:
        break
    for i in range(h):
        for j in range(w):
            print('#', end='')
        print()
print()

Fixed code:
# -*- coding: utf-8 -*
while True:
    h, w = map(int, input().split())

    if h == 0 and w == 0:
        break
    for i in range(h):
        for j in range(w):
            print('#', end='')
        print()
    print()
Buggy code:
while 1:
    m, n = input().split()
    if m == "0" and n == "0":
        break
    for i in range(int(m)):
        print("#" * int(n))

Fixed code:
while 1:
    m, n = input().split()
    if m == "0" and n == "0":
        break
    for i in range(int(m)):
        print("#" * int(n))
    print()
Buggy code:
while True:
    h, w = map(int, input().split())
    if h == 0 and w == 0: break
    for i in range(h):
        print("＃"*w)


Fixed code:
while True:
    h,w = map(int, input().split())
    
    if h == 0 and w == 0:
        break
    for i in range(h):
        print('#' * w)
    print()
Buggy code:
h,w = [],[]
while True:
    (h,w) = [int(x) for x in input().split()]
    if h == w == 0:
        break
    for x in range(h):
        for y in range(w):
            print('#', end='')
        print()

Fixed code:
h,w = [],[]
while True:
    (h,w) = [int(x) for x in input().split()]
    if h == w == 0:
        break
    for x in range(h):
        for y in range(w):
            print('#', end='')
        print()
    print()
Buggy code:
while 1:
    h,w=map(int,input().split())
    if h==0 and w==0: break
    for _ in range(h): print('#'*w)

Fixed code:
while 1:
    h,w=map(int,input().split())
    if h==0 and w==0: 
        break
    for _ in range(h): print('#'*w)
    print('')
Buggy code:
while True:
    H, W = [int(i) for i in input().sprit()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            print('#', end='')
        
        print()

    print()

Fixed code:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            print('#', end='')
        
        print()

    print()
Buggy code:
while True:
  h, w = [int(n) for n in input().split()]
  if h == 0 and w == 0:
    print()
    quit()

  for i in range(0, h):
    for j in range(0, w):
      print("#", end='')
    print()

Fixed code:
while True:
  h, w = [int(n) for n in input().split()]
  if h == 0 and w == 0:
    quit()

  for i in range(0, h):
    for j in range(0, w):
      print("#", end='')
    print()
  print()