qyliang/CodeNanoFix huggingface dataset:
Buggy code:
s = input()

dict = {'A': 'T', 'C': 'G'}
print(dict[s])


Fixed code:
s = input()

dict = {'A': 'T', 'C': 'G', 'T': 'A', 'G': 'C'}
print(dict[s])
Buggy code:
b = input()

def twin(base):
  if base == 'A':
    a = 'C'
  elif base == 'C':
    a = 'A'
  elif base == 'G':
    a = 'T'
  else:
    a = 'G'
  print(a)
  
twin(b)

Fixed code:
b = input()

def twin(base):
  if base == 'A':
    a = 'T'
  elif base == 'T':
    a = 'A'
  elif base == 'G':
    a = 'C'
  else:
    a = 'G'
  print(a)
  
twin(b)
Buggy code:
b = input()

if b == 'A':
  print('A')
elif b == 'C':
  print('T')
elif b == 'G':
  print('C')
else:
  print(G)


Fixed code:
b = input()

if b == "A":
    b_ = "T"
    print(b_)
elif b == "T":
    b_ = "A"
    print(b_)
elif b == "C":
    b_ = "G"
    print(b_)
else:
    b_ = "C"
    print(b_)
Buggy code:
def main():
    s = input()
    s = s.replace("A", "T").replace("T", "A").replace("G", "C").replace("C", "G")
    print(s)


if __name__ == '__main__':
    main()

Fixed code:
def main():
    s = input()
    s = s.replace("A", "K").replace("T", "A").replace("K", "T")
    s = s.replace("G", "K").replace("C", "G").replace("K", "C")
    print(s)


if __name__ == '__main__':
    main()
Buggy code:
b = 'A'
if b == 'A':
  	print('C')
elif b == 'C':
  	print('A')
elif b == 'G':
	print('T')
else:
  	print('G')

Fixed code:
b = input()

if b=="A":
    print("T")
elif b=="C":
    print("G")
elif b=="G":
    print("C")
else:
    print("A")
Buggy code:
s = input()
if s == 'A':
    print 'T'
elif s=='T':
    print 'A'
elif s=='G':
    print 'C'
elif s=='C':
    print 'G'

Fixed code:
s = input()

if s == "A":
  print("T")
if s == "T":
  print("A")
if s == "C":
  print("G")
if s == "G":
  print("C")
Buggy code:
a = int(input())
print("T" if a == "A" else "A" if a == "T" else "G" if a == "C" else "C")

Fixed code:
a = input()
print("T" if a == "A" else "A" if a == "T" else "G" if a == "C" else "C")
Buggy code:
s = input()
if s == "A":
    print("T")
elif: s == "T":
    print("A")
elif s == "C":
    print("G")
else:
    print("C")


Fixed code:
s=input()
if s == 'A':
    print('T')
elif s == 'T':
    print('A')
elif s == 'C':
    print('G')
elif s == 'G':
    print('C')
Buggy code:
array = [A,T,G,C]
b = input()
if b == array[0]:
  print (array[1])
elif b == array[1]:
  print (array[0])
elif b == array[2]:
  print (array[3])
else:
  print (array[2])

Fixed code:
array = ["A","T","G","C"]
b = input()
if b == array[0]:
  print (array[1])
elif b == array[1]:
  print (array[0])
elif b == array[2]:
  print (array[3])
else:
  print (array[2])
Buggy code:
S = input()

if S == 'A':
    print('T')
elif S == 'C':
    print('G')
elif S == 'G':
    print('C')
elif S == 'T'::
    print('A')


Fixed code:
S = input()

if S == 'A':
    print('T')
elif S == 'C':
    print('G')
elif S == 'G':
    print('C')
elif S == 'T':
    print('A')
Buggy code:
b = input()
if b == 'A':
    print('G')
elif b=='G':
    print('A')
elif b=='T':
    print('C')
else:
    print('T')

Fixed code:
b=input()

if b==("A"):
	print ("T")
elif b==("T"):
	print ("A")
elif b==("G"):
    	print ("C")
elif b==("C"):
	print ("G")
else:
    pass
Buggy code:
S = str(input())

if S = 'A':
  print('T')
elif S = 'G':
  print('C')
elif S = 'T':
  print('A')
else:
  print('G')

Fixed code:
S = str(input())
 
if S == 'A':
  print('T')
elif S == 'G':
  print('C')
elif S == 'T':
  print('A')
else:
  print('G')
Buggy code:
b = input()

if b == "A":
  print("T")
elif S == "T":
  print("A")
elif S == "G":
  print("C")
elif S == "C":
  print("G")

Fixed code:
b = input()
if b=='A':
  print ('T')
elif b=='T':
  print ('A')
elif b=='C':
  print ('G')
elif b=='G':
  print ('C')
Buggy code:
char = input()
if chara == 'A':
  print('T')
elif chara == 'T':
  print('A')
elif chara == 'C':
  print('G')
elif chara == 'G':
  print('C')

Fixed code:
chara = input()
if chara == 'A':
  print('T')
elif chara == 'T':
  print('A')
elif chara == 'C':
  print('G')
elif chara == 'G':
  print('C')
Buggy code:
base = ["A","C","T","G"]
b = input()
n =  int(base.index(b))
print(base[3-n])

Fixed code:
base = ["A","C","G","T"]
b = input()
n =  int(base.index(b))
print(base[3-n])
Buggy code:
b = input()

bases = ['A', 'C', 'G', 'T']

for idx, base in enumerate(bases):
  if base == b:
    print(bases[int(~bin(idx))])

Fixed code:
b = input()

bases = ('A', 'C', 'G', 'T')

for idx, base in enumerate(bases):
  if base == b:
    print(bases[int(~(idx))])
    break
Buggy code:
a=input()

if a="A" or "T":
    if a=="T":
        b="A"
    if a=="A":
        b="T"

if a="C" or "G":
    if a=="C":
        b="G"
    if a=="G":
        b="C"

print(b)

Fixed code:
a=input()

if a=="A" or "T":
    if a=="T":
        b="A"
    if a=="A":
        b="T"

if a=="C" or "G":
    if a=="C":
        b="G"
    if a=="G":
        b="C"

print(b)
Buggy code:
inp = input()
if inp == "A":
    print("C")
elif inp == "C":
    print("A")
elif inp == "G":
    print("T")
else:
    print("G")
print("\n")

Fixed code:
inp = input()
if inp == "A":
    print("T")
elif inp == "T":
    print("A")
elif inp == "C":
    print("G")
else:
    print("C")
print("\n")
Buggy code:
b=str(input())
l=[]
for i in range(len(s)):
  if s[i]=='A':
    l.append('T')
  if s[i]=='T':
    l.append('A')
  if s[i]=='G':
    l.append('C')
  if l[i]=='C':
    l.append('G')
print(''.join(l))


Fixed code:
s=str(input())
l=[]
for i in range(len(s)):
  if s[i]=='A':
    l.append('T')
  if s[i]=='T':
    l.append('A')
  if s[i]=='G':
    l.append('C')
  if s[i]=='C':
    l.append('G')
print(''.join(l))
Buggy code:
n=input()
if n==A:
  print('T')
elif n==T:
  print('A')
elif n=C:
  print('G')
else:
  print('C')

Fixed code:
n = input()

if n == 'A':
    print('T')
elif n == 'T':
    print('A')
elif n == 'C':
    print('G')
else:
    print('C')
Buggy code:
PAIR_DICT = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'T'}
print(PAIR_DICT[input()])

Fixed code:
PAIR_DICT = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
print(PAIR_DICT[input()])
Buggy code:
b = int(input())

if b == "A":
	print("T")
elif b == "C":
	print("G")
elif b == "G":
	print("C")
else:
	print("A")


Fixed code:
b = input()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b=="C":
    print("G")
else:
    print("C")
Buggy code:
vocab = {"A":"T","T":"A","C":"G","G","C"}
print(vocab[input()])

Fixed code:
vocab = {"A":"T","T":"A","C":"G","G":"C"}
print(vocab[input()])
Buggy code:
b = input()
if b = 'A':
  print('T')
elif b = 'T':
  print('A')
elif b = 'C':
  print('G')
else:
  print('C')

Fixed code:
b=input()
if b=='A':print('T')
elif b=='T':print('A')
elif b=='C':print('G')
elif b=='G':print('C')
Buggy code:
b=input()
print('A' if b=='T' else 'T' if b=='A' else 'C' if b=='C' else 'G')

Fixed code:
b=input()
print('A' if b=='T' else 'T' if b=='A' else 'C' if b=='G' else 'G')
Buggy code:
b = input()
if b == 'A' or b == 'G':
  if b == 'A':
    print('G')
  else:
    print('A')
else:
  if b == 'C':
    print('G')
  else:
    print('C')

Fixed code:
b = input()
if b == 'A' or b == 'T':
  if b == 'A':
    print('T')
  else:
    print('A')
else:
  if b == 'C':
    print('G')
  else:
    print('C')
Buggy code:
b = input()
 
if b = 'A':
    b = 'T'
elif b = 'T':
    b = 'A'
elif b = 'C':
    b = 'G'
else:
    b = 'C'
 
print(b)
b = input ')
if b = a


Fixed code:
a = input()
if a == "A":
  print("T")
elif a == "T":
  print("A")
elif a == "C":
  print("G")
else:
  print("C")
Buggy code:
b = input()

if b =='A':
   print('A')

elif b =='C':
   print('T')

elif b =='G':
   print('C')

elif b =='T':
   print('G')

Fixed code:
b = input()

if b == "A":
  print("T")
elif b == "C":
  print("G")
elif b == "G":
  print("C")
elif b == "T":
  print("A")
Buggy code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
b=input()

if b==A:
	print("T")
if b==T:
	print("A")
if b==G:
	print("C")
if b==C:
	print("G")



Fixed code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
b=input()

if b=="A":
	print("T")
if b=="T":
	print("A")
if b=="G":
	print("C")
if b=="C":
	print("G")
Buggy code:
def func():
    b = input()

    if b == 'A':
        print('G')
    if b == 'G':
        print('A')
    if b == 'G':
        print('T')
    if b == 'T':
        print('G')


if __name__ == '__main__':
    func()


Fixed code:
def func():
    b = input()

    if b == 'A':
        print('T')
    if b == 'T':
        print('A')
    if b == 'C':
        print('G')
    if b == 'G':
        print('C')


if __name__ == '__main__':
    func()
Buggy code:
if input() == 'A':
  print('T')
elif input() == 'T':
  print('A')
elif input() == 'C':
  print('G')
else:
  print('C')

Fixed code:
B = input()

if B == "A":
  print("T")
elif B == "T":
  print("A")
elif B == "G":
  print("C")
else:
  print("G")
Buggy code:
b = input()
if b == A:
  print("T")
elif b == C:
  print("G")
elif b == G:
  print("C")
else:
  print("A")

Fixed code:
b=input()
ans=""
if b=="A":
  ans="T"
elif b=="T":
  ans="A"
elif b=="C":
  ans="G"
else:
  ans="C"

print(ans)
Buggy code:
b=int(input())

e_dict={
  'A':'T',
  'T':'A',
  'G':'C',
  'C':'G'
}

print(e_dict[b])
 

Fixed code:
b=input()

e_dict={
  'A':'T',
  'T':'A',
  'G':'C',
  'C':'G'
}

print(e_dict[b])
Buggy code:
# coding: utf-8

str = input()

if str =='A' :
    str = 'T'
    break
elif str == 'T' :
    str = 'A'
    break
elif str == 'C':
    str = 'G'
elif str == 'G':
    str = 'C'

print(str)

Fixed code:
# coding: utf-8

str = input()

if str =='A' :
    str = 'T'
elif str == 'T' :
    str = 'A'
elif str == 'C':
    str = 'G'
elif str == 'G':
    str = 'C'

print(str)
Buggy code:
b = input()

c = {A:T,T:A,C:G,G:C}

print(c[b])

Fixed code:
b = input()
 
c = {"A":"T","T":"A","C":"G","G":"C"}
 
print(c[b])
Buggy code:
str = input()

if str = 'A':
  print('T')
else if str ='T':
  print('A')
else if str ='C':
  print('G')
else if str ='G':
  print('C')
else:
  print('error')

Fixed code:
str = input()

if str == 'A':
  print('T')
elif str =='T':
  print('A')
elif str =='C':
  print('G')
elif str =='G':
  print('C')
else:
  print('error')
Buggy code:
b=input()
if b='A':
  print('T')
elif b='T':
  print('A')
elif b='G':
  print('C')
else:
  print('G')

Fixed code:
b = input()
if b=='A':
    print('T')
elif b=='G':
    print('C')
elif b=='C':
    print('G')
else:
    print('A')
Buggy code:
b = input()
if b == "A":
  print("G")
elif b == "G":
  print("A")
elif b == "C":
  print("T")
else:
  print("C")

Fixed code:
b = input()
if b == 'A' :
    print('T')
elif b == 'T' :
    print('A')
elif b == 'C' :
    print('G')
elif b == 'G' :
    print('C')
Buggy code:
if b = A:
  print("G")
elif b = G:
  print("A")
elif b = C:
  print("T")
else:
  print("C")

Fixed code:
b=input()
if b=='A':print('T')
elif b=='T':print('A')
elif b=='C':print('G')
else:print('C')
Buggy code:
s = input()

if s == "A":
  print("T")
elif s == "T":
  print("A")
elif  == "G":
  print("C")
else:
  print("G")

Fixed code:
s = input()

if s == "A":
  print("T")
elif s == "T":
  print("A")
elif s == "G":
  print("C")
else:
  print("G")
Buggy code:
b=input()
print("T" if B="A" else "A" if B="T" else "G" if B="C" else "C" if B="G")

Fixed code:
B=input()
print("T" if B=="A" else "A" if B=="T" else "G" if B=="C" else "C")
Buggy code:
s = int(input())

if s == 'A':
    print('T')
elif s == 'T':
    print('A')
elif s == 'G':
    print('C')
elif s == 'C':
    print('G')

Fixed code:
s = input()

if s == 'A':
    print('T')
elif s == 'T':
    print('A')
elif s == 'G':
    print('C')
elif s == 'C':
    print('G')
Buggy code:
Str = input()
if Str == 'A':
    print('T')
elif Str =='T':
    print('A')
elif Str =='C':
    print('G')
else:
    print(C)

Fixed code:
Str = input()
if Str == 'A':
    print('T')
elif Str =='T':
    print('A')
elif Str =='C':
    print('G')
else:
    print('C')
Buggy code:
b = str(input())
if (b == "A"):
  print("T")
elif (b == "T"):
  print("A")
elif (b == "c"):
  print("G")
elif (b == "G")
  print("C")

Fixed code:
b = str(input())
if (b == "A"):
  print("T")
elif (b == "T"):
  print("A")
elif (b == "C"):
  print("G")
elif (b == "G"):
  print("C")
Buggy code:
b = input()
if b == 'A':
  b = 'T'
elif b == 'T':
  b = 'A'
elif b == 'G':
  b = 'C'  
else b == 'C':
  b = 'G'  

print(b)

Fixed code:
b=input()
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "C":
  print("G")
else:
  print("C")
Buggy code:
a = {'A':'C','C':'A','G':'T','T':'G'}
print(a[input()])


Fixed code:
a = {'A':'T','T':'A','G':'C','C':'G'}
print(a[input()])
Buggy code:

a = input()

if a == 'A':
    print('C')
elif a == 'C':
    print('A')
elif a == 'G':
    print('T')
else:
    print('G')


Fixed code:
a = input()

if a == 'A':
    print('T')
elif a == 'T':
    print('A')
elif a == 'G':
    print('C')
else:
    print('G')
Buggy code:
b = input()
print("A" if b==T else "T" if b==A else "G" if b==C else "C")

Fixed code:
b=input()
print("T" if b=="A" else "A" if b=="T" else "C" if b=="G" else "G")
Buggy code:
b=input()
if b=='T' : print('G')
elif b=='C' : print('T')
elif b=='G' : print('C')
else : print('A')


Fixed code:
b=input()
if b=='A' : print('T')
elif b=='T' : print('A')
elif b=='G' : print('C')
else : print('G')
Buggy code:
s = input()
if s == "A":
    print("C")
elif s == "C":
    print("A")
elif s == "G":
    print("T")
elif s == "T":
    print("G")


Fixed code:
s = input()
ans = ''
if s == 'A':
    ans = 'T'
elif s == 'T':
    ans = 'A'
elif s == 'C':
    ans= 'G'
elif s == 'G':
    ans = 'C'

print(ans)
Buggy code:
b = input()
if b == 'A':
    print('C')
elif b == 'C':
    print('A')
elif b == 'G':
    print('T')
elif b == 'T':
    print('G')

Fixed code:
b=input()
if b=="A":
    print("T")
elif b=="T":
    print("A")
elif b=="G":
    print("C")
elif b=="C":
    print("G")
Buggy code:
import numpy as np
import sys
readline = sys.stdin.readline
read = sys.stdin.read

b = readline()
if b == 'A':
	print('T')
elif b == 'T':
	print('A')
elif b == 'G':
	print('C')
else:
	print('G') 


Fixed code:
import numpy as np
import sys
readline = sys.stdin.readline
read = sys.stdin.read

b = readline().rstrip()
if b == 'A':
	print('T')
elif b == 'T':
	print('A')
elif b == 'G':
	print('C')
else:
	print('G')
Buggy code:
s=input()

if s=='A':
	print 'T'
elif s=='T':
  	print 'A'
elif s=='G':
 	print 'C'
elif s=='C':
	print 'G'

Fixed code:
s=input()

if s=='A':
	print('T')
elif s=='T':
  	print('A')
elif s=='G':
 	print('C')
elif s=='C':
	print('G')
Buggy code:
b=input()
if b =="A"
  print("T")
elif b =="T"
  print("A")
elif b =="G"
  print("C")
elif b =="C"
  print("G")

Fixed code:
b = input()
if b =="A":
    print("T")
elif b=="T":
    print("A")
elif b=="G":
    print("C")
elif b=="C":
    print("G")
Buggy code:
b=input()
if "A":
  print("T")
elif "T":
  print("A")
elif "C":
  print("G")
else:
  print("C")

Fixed code:
b = input()
if b == "A":
    print("T")
elif b == "C":
    print("G")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
else:
    print("error")
Buggy code:
b=int(input())

if b="A":
    print("T")
elif b="T":
    print("A")
elif b="G":
    print("C")
elif b="C":
    print("G")

Fixed code:
b=input()
 
if b=="A":
    print("T")
elif b=="T":
    print("A")
elif b=="G":
    print("C")
elif b=="C":
    print("G")
Buggy code:
import sys
input=sys.stdin.readline

def main():
    b = input().strip()
    if b == "A":
        print("C")
    elif b == "C":
        print("A")
    elif b == "G":
        print("T")
    else:
        print("G")

if __name__ == '__main__':
    main()


Fixed code:
import sys
input=sys.stdin.readline

def main():
    b = input().strip()
    if b == "A":
        print("T")
    elif b == "T":
        print("A")
    elif b == "G":
        print("C")
    else:
        print("G")

if __name__ == '__main__':
    main()
Buggy code:
b=input()
if b==A:
    print(T)
if b==T:
    print(A)
if b==G:
    print(C)
if b==C:
    print(G)


Fixed code:
b=input()
if b=='A':
    print('T')
if b=='T':
    print('A')
if b=='G':
    print('C')
if b=='C':
    print('G')
Buggy code:
b = int(input())
print("A" if b == T else "T" if b == A else
      "C" if b == G else "T")

Fixed code:
b = input()
print("A" if b == "T" else "T" if b == "A" else
      "C" if b == "G" else "G")
Buggy code:
i = input();

if(i=="A"):
    print("T");
elif(i=="T"):
    print("A");
elif(i=="C"):
    print("G");
else:
    print("T")


Fixed code:
i = input();

if(i=="A"):
    print("T");
elif(i=="T"):
    print("A");
elif(i=="C"):
    print("G");
else:
    print("C")
Buggy code:
a = str(input())

if a == 'A':
    print('T')
elif a == 'T'
    print('A')
elif a == 'G':
    print('C')
elif a == 'C':
    print('G')

Fixed code:
a = str(input())

if a == 'A':
    print('T')
elif a == 'T':
    print('A')
elif a == 'G':
    print('C')
elif a == 'C':
    print('G')
Buggy code:
base = input()
if base == "A"
	print("T")
if base == "T"
	print("A")
if base == "C"
	print("G")
if base == "G"
	print("C")

Fixed code:
base = input()
if base == "A":
	print("T")
if base == "T":
	print("A")
if base == "C":
	print("G")
if base == "G":
	print("C")
Buggy code:
s = input()
if s == 'A':
    print('C')
elif s== 'C':
    print('A')
elif s == G:
    print('T')
else:
    print('G')

Fixed code:
s = input()
if s == 'A':
  print('T')
elif s == 'T':
  print('A')
elif s == 'G':
  print('C')
else:
  print('G')
Buggy code:
a={"A":"T","T":"A","C":"G","G":"C"}
print(b[input()])

Fixed code:
a={"A":"T","T":"A","C":"G","G":"C"}
print(a[input()])
Buggy code:
a = input(b)
b = {"A" : "T", "G" : "C", "T" : "A", "C" : "G"}

print(c[b])

Fixed code:
a = input()
b = {"A" : "T", "G" : "C", "T" : "A", "C" : "G"}

print(b[a])
Buggy code:
s = input()
if s == 'A':
    ans = 'T'
elif s== 'T':
    ans = 'A'
elif s == G:
    ans = 'C'
elif s == C:
    ans = 'G'
else:
    print("error")
    
print(ans)

Fixed code:
s = input()
if s == 'A':
    ans = 'T'
elif s== 'T':
    ans = 'A'
elif s == 'G':
    ans = 'C'
elif s == 'C':
    ans = 'G'
else:
    print("error")
    
print(ans)
Buggy code:
a = input()
if a = A :
	print('T')
elif a = T :
	print('A')
elif a = C :
	print('G')
else:
	print('C')

Fixed code:
a = input()
if a == "A":
  print("T")
elif a == "C":
  print("G")
elif a == "G":
  print("C")
else:
  print("A")
Buggy code:
b = input()
print( "AT".strip(b) if b == "A" or "T" else "CG".strip(b))

Fixed code:
b = input()
print( "AT".strip(b) if b == "A" or b == "T" else "CG".strip(b))
Buggy code:
a = int(input())
if a == 'A':
	print('A')
elif a == 'C':
	print('T')
elif a == 'G'
	print('C')
elif a == 'T':
  	print('G')

Fixed code:
a = input()
if a == 'A':
  print('T')
elif a == 'C':
  print('G')
elif a == 'G':
  print('C')
elif a == 'T':
  print('A')
Buggy code:
base = ['A','T','C','G']

ind = base.index(input())
if(ind%2 == 0):
  printf(base[ind+1])
else:
  printf(base[ind-1])

Fixed code:
base = ['A','T','C','G']
 
ind = base.index(input())
if(ind%2 == 0):
  print(base[ind+1])
else:
  print(base[ind-1])
Buggy code:
S = input()
D = {'A':'T', 'T':'A', 'C':'G', 'G':'T'}
print(D[S])


Fixed code:
S = input()
D = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
print(D[S])
Buggy code:
b=input()
if b == 'A':
    print('T')
    elif b == 'T':
        print('A')
        elif b == 'C':
            print('G')
            else:
                print(C)

Fixed code:
b = input()
if b == "A":
    ans = "T"
elif b == "T":
    ans = "A"
elif b == "C":
    ans = "G"
else:
    ans = "C"

print(ans)
Buggy code:
letter = input()
dict = {'A': 'A', 'C':'T', 'G':'C', 'T':'G'}
for letter in dict:
  print(dict[letter])

Fixed code:
letter = input()

dict = {'A': 'T', 'C':'G', 'T':'A', 'G':'C'}
if letter in dict:
  print(dict[letter])
Buggy code:
s = input()

print ("A" if s =="G" else "G" if s =="A" else "C" if s=="T" else "T")

Fixed code:
s = input()

print ("A" if s =="T" else "T" if s =="A" else "C" if s=="G" else "G")
Buggy code:
a = input()
dic = {'A' : 'A',
       'C' : 'T',
       'G' : 'C',
       'T' : 'G'}
print(dic[a])

Fixed code:
a = input()
dic = {'A' : 'T',
       'C' : 'G',
       'G' : 'C',
       'T' : 'A'}
print(dic[a])
Buggy code:
x=input
if x==A:
  print("T")
elif x==T:
  print("A")
elif x==G:
  print("C")
else:
  print("G")

Fixed code:
x=input()
if x=="A":
  print("T")
elif x=="T":
  print("A")
elif x=="G":
  print("C")
else:
  print("G")
Buggy code:
b = input()
if b == "A":
    print("A")
elif b == "C":
        print("T")
elif b == "G":
            print("C")
elif b == "T":
                print("G")


Fixed code:
b = input()
if b == 'A':
	print('T')
if b == 'C':
	print('G')
if b == 'T':
	print('A')
if b == 'G':
	print('C')
Buggy code:
s=input()

if s='A':
  print('T')
elif s='T':
  print('A')
elif s='G':
  print('C')
else:
  print('G')
        

Fixed code:
s = input()
if str(s) == 'A':
  print('T')
elif s == 'T':
  print('A')
elif s == 'C':
  print('G')
else:
  print('C')
Buggy code:
b=input()
if b="A":
    print("T")
elif b="T":
    print("T")
elif b="C":
    print("G")
else:
    print("C")
    

Fixed code:
b = input()
if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='C':
    print('G')
elif b=='G':
    print('C')
Buggy code:
a = input()
if a == 'A':
  print('C')
if a == 'C':
  print('A')
if a == 'G':
  print('T')
if a == 'T':
  print('G')

Fixed code:
a = input()
if a == 'A':
  print('T')
if a == 'T':
  print('A')
if a == 'G':
  print('C')
if a == 'C':
  print('G')
Buggy code:
b = input()
if b ='A': print('T')
if b = 'T': print('A')
if b = 'C': print('G')
if b = 'G': print('C')

Fixed code:
b = input()
ans = 'C'
if b ==  'A':
        ans = 'T'
if b == 'C':
        ans = 'G'
if b == 'T':
        ans = 'A'
print(ans)
Buggy code:
if input=="A":
  print("T")
elif input=="T":
  print("A")
elif input=="C":
  print("G")
else input=="G":
  print("C")

Fixed code:
b = input()

if b == "A":
	print("T")
elif b == "T":
	print("A")
elif b == "G":
	print("C")
else:
	print("G")
Buggy code:
def trans(g):
    gene = ['A', 'G', 'T', 'U']
    return gene[(gene.index(g)+2)%4]

b = input()
ans = ''

for i in b:
    ans += trans(i)

print(ans)

Fixed code:
def trans(g):
    gene = ['A', 'G', 'T', 'C']
    return gene[(gene.index(g)+2)%4]

b = input()
ans = ''

for i in b:
    ans += trans(i)

print(ans)
Buggy code:
dic = {}
dic['A'] = T
dic['T'] = A
dic['C'] = G
dic['G'] = C

def a(b):
	return dic[b]

a=input()
print(a(a))

Fixed code:
dic = {}
dic['A'] = 'T'
dic['T'] = 'A'
dic['C'] = 'G'
dic['G'] = 'C'

def C(b):
    return dic[b]

a=input()
print(C(a))
Buggy code:
A = input()
if A = 'A':
    print ('T')
elif A = 'T':
    print ('A')
elif A = 'G':
    print ('C')
else:
    print('G')

Fixed code:
b = input()

if b == 'A': print( 'T' )
elif b == 'C': print( 'G' )
elif b == 'G': print( 'C' ) 
else: print( 'A' )
Buggy code:
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Fixed code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")
Buggy code:
l = {'A':'C','C':'A','G':'T','T':'G'}
print(l[input()])

Fixed code:
l = {'A':'T','T':'A','G':'C','C':'G'}
print(l[input()])
Buggy code:
b = str(input())

if b == A:
    print('T')
elif b == T:
    print(A)
elif b == G:
    print(C)
elif b == C:
    print(G)

Fixed code:
b = str(input())

if b == 'A':
    print('T')
if b == 'T':
    print('A')
if b == 'G':
    print("C")
if b == "C":
    print('G')
Buggy code:
b = input()

if b == "A":
  ans = T
elif b == "T":
  ans = A
elif b == "G":
  ans = C
else:
  ans = G
  
print(ans)

Fixed code:
b = input()

if b == "A":
  ans = "T"
elif b == "T":
  ans = "A"
elif b == "G":
  ans = "C"
else:
  ans = "G"
  
print(ans)
Buggy code:
S = input ()
S = S.replace('A', 'a')
S = S.replace('T', 'a')
S = S.replace('C', 'a')
S = S.replace('G', 'a')
ans = 0
x = 0
for i in range (len(S)):
  if S[i] == 'a':
    x += 1
  else:
    if ans < x:
      ans = x
if ans < x:
  ans = x
print (ans)

Fixed code:
S = input ()
S = S.replace('A', 'a')
S = S.replace('T', 'a')
S = S.replace('C', 'a')
S = S.replace('G', 'a')
ans = 0
x = 0
for i in range (len(S)):
  if S[i] == 'a':
    x += 1
  else:
    if ans < x:
      ans = x
    x = 0
if ans < x:
  ans = x
print (ans)