qyliang/CodeNanoFix huggingface dataset:
Buggy code:
b = input()
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 == "T"): print("A")
elif(b == "G"): print("C")
Buggy code:
b= input()

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

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:
x=input()
dic={'A':'T',
      'C':'G',
      'G':'C',
      'T':,'A',
     }

print(dic[x])

Fixed code:
x=input()
dic={'A':'T',
      'C':'G',
      'G':'C',
      'T':'A',
     }
 
print(dic[x])
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:
b = input().strip()
if b == "A":
    print("c")
elif b == "C":
    print("A")
elif b == "G":
    print("T")
elif b == "T":
    print("G")


Fixed code:
b = input().strip()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
elif b == "C":
    print("G")
Buggy code:
X = int(input())
if X == "A":
  	print("T")
elif X == "T":
  	print("A")
elif X == "C":
  	print("G")
elif X == "G":
	print("C")

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

Fixed code:
A = input()
if A == 'A':
  print('T')
elif A == 'T':
  print('A')
elif A == 'C':
  print('G')
elif A == 'G':
  print('C')
Buggy code:
s = input()
p = s.replace('A','B')
q = p.replace('T','A')
r = q.replace('B','T')
w = r.replace('G','W')
x = w.replace('C','G')
y = x.replace('W','C')
print(y)
~


Fixed code:
s = input()
p = s.replace('A','B')
q = p.replace('T','A')
r = q.replace('B','T')
w = r.replace('G','W')
x = w.replace('C','G')
y = x.replace('W','C')
print(y)
Buggy code:
b = input()
if b == T:
  print("A")
elif b == A:
  print("T")
elif b == G:
  print("C")
else:
  print("G")

Fixed code:
b = input()
if b=="A":
    print("T")
elif b=="C":
    print("G")
elif b=="T":
    print("A")
else:
    print("C")
Buggy code:
S = input()
if S=="A":
    set="set_A"
if S=="C":
    set="set_C"
if S=="G":
    set="set_G"
if S=="T":
    set="set_T"

if set == "set_A":
    ans = "A"
if set == "set_C":
    ans = "T"
if set == "set_G":
    ans = "C"
if set == "set_T":
    ans = "G"
print(ans)    

Fixed code:
S = input()
if S=="A":
    set="set_A"
if S=="C":
    set="set_C"
if S=="G":
    set="set_G"
if S=="T":
    set="set_T"

if set == "set_A":
    ans = "T"
if set == "set_C":
    ans = "G"
if set == "set_G":
    ans = "C"
if set == "set_T":
    ans = "A"
print(ans)
Buggy code:
b=input()
if "A" = b:
  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')
if b == 'T':
  print('A')
if b == 'G':
  print('C')
if b == 'C':
  print('G')
Buggy code:
if __name__ == '__main__':
  b = input()
  if b = 'A':
    print ('T')
  elif b = 'T':
	print ('A')
  elif b = 'G':
	print ('C')
  else:
    print ('G')

Fixed code:
if __name__ == '__main__':
  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 b=="A":
	print("T")
elif b=="T":
	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=='C':
    print('G')
elif b=='G':
    print('C')
Buggy code:
D = {"A": "C", "C": "A", "G": "T", "T": "G"}
print(D[input()])

Fixed code:
D = {"A": "T", "T": "A", "C": "G", "G": "C"}
print(D[input()])
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 = str(input())
if b == "T":
  print("A")
elif b == "A":
  print("T")
elif b == "C":
  print("G")
else:
  print("C")
Buggy code:
a = input()
if a = A:
  print(T)
elif a = T:
  print(A)
elif a = G:
  print(C)
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:
str = input()
if str = "A":
  print(T)
elif str = "T":
  print(A)
elif str = "C":
  print(G)
elif str = "G":
  print(C)

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

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

Fixed code:
S = input()
if S == 'A':
  print('T')
if S == 'T':
  print('A')
if S == 'G':
  print('C')
if S == 'C':
  print('G')
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()
c = {
  'A': 'A',
  'C': 'T',
  'G': 'C',
  'T': 'G',
}
print(c[b])


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

Fixed code:
b = input()
aa = {"A":"T", "T":"A", "G":"C", "C":"G"}
print(aa[b])
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()

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:
    print("T")
elif b==T:
    print("C")
elif b==C:
    print("G")
elif b==G:
    print("C")

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

Fixed code:

a = input()
if a == "A":
    print("T")
elif a == "T":
    print("A")
elif a == "G":
    print("C")
else:
    print("G")
Buggy code:
s = input()
print(s.translate(str.maketrans({"A":"T","T":"A","C":"G","G":"C"})

Fixed code:
s = input()
print(s.translate(str.maketrans({"A":"T","T":"A","C":"G","G":"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=="G":
  print("C")
else:
  print("G")
Buggy code:
s=input()
dic={A:'T',T:'A',C:'G',G:'C'}
print(dic[s])

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

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()
print("A" if a = "T" else "T" if a ="A" else "G" if a ="C" else "C")

Fixed code:
a = input()
print("A" if a =="T" else "T" if a =="A" else "G" if a =="C" else "C")
Buggy code:
from sys import stdin

b = int(stdin.readline().rstrip()))

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


Fixed code:
from sys import stdin

b = stdin.readline().rstrip()

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

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

Fixed code:
a = input()

if a == 'A' or a =='T':
  if a == 'A':
    print('T')
  else:
    print('A')
else:
  if a == 'G':
    print('C')
  else:
    print('G')
Buggy code:
b = int(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=="C":
    print("G")
elif b=="G":
    print("C")
else:
    print("A")
Buggy code:
c = input()

p = {}
p["A"] = "A"
p["C"] = "T"
p["G"] = "C"
p["T"] = "G"

print(p[c])

Fixed code:
c = input()

p = {}
p["A"] = "T"
p["G"] = "C"
p["T"] = "A"
p["C"] = "G"

print(p[c])
Buggy code:
a = str(input())
b = "A"
c = "C"
d = "G"
e = "T"

if a == e:
  print("G")
if a == d:
  print("T")
if a == b:
  print("C")
if a == c:
  print("A")

Fixed code:
a = str(input())
b = "A"
c = "C"
d = "G"
e = "T"

if a == c:
  print("G")
if a == b:
  print("T")
if a == d:
  print("C")
if a == e:
  print("A")
Buggy code:
n = int(input())
if n="A":
  print("T")
elif n="T":
  print("A")
elif n="G":
  print("C")
else:
  print("G")

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


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 b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'G':
    print("C")
else :
    print("T")

~                                                                                                    
~                                                                                                    
~                                                                                                    
~                                                                                                    
~                                                                     

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":
  b = "T"
elif b = "T":
  b = "A"
elif b = "C":
  b = "G"
elif b = "G":
  b = "C"
print(b)

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

list={"A":"T","T":"A","G":"C","C":"G"}
b = input()
print(list[b])

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

list={"A":"T","T":"A","G":"C","C":"G"}
b = input()
print(list[b])
Buggy code:
"""
author : halo2halo
date : 15, Jan, 2020
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

d = {'A': 'C', 'C': 'A', 'G': 'T', 'T': 'G'}
b = readline().decode('utf8').split()
print(b[0])
print(d[b[0]])


Fixed code:
"""
author : halo2halo
date : 15, Jan, 2020
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

d = {'A': 'T', 'T': 'A', 'G': 'C', 'C': 'G'}
b = readline().decode('utf8').split()
print(d[b[0]])
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:

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

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

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


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:
    print(b)
Buggy code:
Enki = {'A':'A','C':'T','G':'C','T':'G'}
print(Enki[input()])

Fixed code:
Enki = {'A':'T','T':'A','C':'G','G':'C'}
print(Enki[input()])
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")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
elif b == "C":
  print("G")
Buggy code:
b = input ()

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

Fixed code:
b = input ()

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

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

elif b == "T":
    print ("A")

elif b == "G":
    print ("C")
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 == 'T':
    print('A')
    
elif b == 'G':
    print('C')
else:
    print('G')
Buggy code:
s=input()
if s=="A":print("A")
elif s=="C":print("T")
elif s=="G":print("C")
else:print("G")

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

Fixed code:
x=input()
if x=="A":
  print("T")
if x=="T":
  print("A")
if x=="G":
  print("C")
if x=="C":
  print("G")
Buggy code:
base = input()
a = ['A', 'T']
b = ['G', 'C']
if base in a:
  print([a[0], a[1]][if base == 'A'])
else:
  print([b[0], b[1]][if base == 'G'])

Fixed code:
base = input()
a = ['A', 'T']
b = ['G', 'C']
if base in a:
  print([a[0], a[1]][base == 'A'])
else:
  print([b[0], b[1]][base == 'G'])
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=="C":
  print("G")
if b=="G":
  print("C")
Buggy code:
b = input()

if b==A:
    print('T')
elif b==G:
    print('C')
elif b==T:
    print('A')
else:
    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:
c = input()
print("A" if c == "T" else "T" if c == "A" else "C" if c == "G" else "G" if c == "G")

Fixed code:
c = input()
print("A" if c == "T" else "T" if c == "A" else "C" if c == "G" else "G")
Buggy code:
b = int(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=="T":
  print("A")
elif b=="C":
  print("G")
else:
  print("C")
Buggy code:
enki_dict={"A":"T","C":"G"}
b = input()
ans = enki_dict["b"]
print(ans)


Fixed code:
enki_dict={"A":"T","C":"G","T":"A","G":"C"}
b = input()
ans = enki_dict[b]
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=="T":
 print("A")
elif a=="C":
 print("G") 
else:
 print("C")
Buggy code:
b = input()
l = ['A','C','G','T']
rev = ['T','G','A','C']
print(rev[l.index(b)])

Fixed code:
b = input()
l = ['A','C','G','T']
rev = ['T','G','C','A']
print(rev[l.index(b)])
Buggy code:
x = input()
if x == 'A':
	print('T')
elif x == 'T':
	print('A')
elif X == 'C':
	print('G')
else:
	print('C')

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

Fixed code:
b = input()

if b=='A' :
    c = 'T'
elif b=='C' :
    c = 'G'
elif b=='G' :
    c = 'C'
elif b=='T' :
    c = 'A'

print(c)
Buggy code:
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 == 'T':
    print('A')
elif b == 'G':
    print('C')
else:
    print('G')
Buggy code:
import sys

a = 'ATCG'
b = 'TAGC'
bond = dict(zip(a, b))

print(bond)
def main():
    b = sys.stdin.readline().rstrip()
    print(bond[b])

if __name__ == "__main__":
    main()


Fixed code:
import sys

bond = dict(zip('ATCG', 'TAGC'))

def main():
    b = sys.stdin.readline().rstrip()
    print(bond[b])

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

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" : s = "T"
else if s == "T" : s = "A"
else if s == "C" : s = "G"
else s = "C"
print(s)

Fixed code:
s = input()
if s == "A" : s = "T"
elif s == "T" : s = "A"
elif s == "C" : s = "G"
else : s = "C"
print(s)
Buggy code:
# -*- coding: utf-8 -*-
b = input()
A = ['A', 'C', 'G', 'T']
B = ['A', 'T', 'C', 'G']
for i in range(4):
    if b == A[i]:
        print(B[i])

Fixed code:
# -*- coding: utf-8 -*-
b = input()
A = ['A', 'C', 'G', 'T']
B = ['T', 'G', 'C', 'A']
for i in range(4):
    if b == A[i]:
        print(B[i])
Buggy code:
a = str(input())

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

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')
else: print("none")
Buggy code:
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 == "C":
  print("G")
if b == "G":
  print("C")
Buggy code:
str = input()

if (str == 'A'):
  print('T')
else if (str == 'T'):
  print('A')
else if (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:
S = input().rstrip()
d = {'A':'A','C':'T','G':'C','T':'G'}
print(d[S])

Fixed code:
S = input().rstrip()
d = {'A':'T','C':'G','G':'C','T':'A'}
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":
    print("T")

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

elif b=="T":
    print("A")

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

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

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

Fixed code:
b=input()

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

if (b == 'A'):
  print('T')
elif (b == 'T'):
  print('A')
elif (b == 'C'):
  print('G')
elif (b == 'G'):
  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:
b = input()

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

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

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

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

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


Fixed code:
str = input()

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

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


Fixed code:
def main():
    dic = {'A':'T', 'T':'A', 'G':'C', 'C':'G'}
    b = input()
    print(dic[b])
    
if __name__ == '__main__':
    main()
Buggy code:
b = input()
if b == "A":
    print("T")

elif b =="T":
    print("A")

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

elif b == "G":
    pritn("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()

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')
else:
  print('error')
Buggy code:
N=input()
a=ACGT
j=0
for i in range(4):
  if a[i]==N:
  	j=i  
print(a[3-j])

Fixed code:
N=input()
a="ACGT"
j=0
for i in range(4):
  if a[i]==N:
  	j=i  
print(a[3-j])
Buggy code:
b=int(input())
print('A' if b=='T'
      else 'T' if b=='A'
      else 'G' if b=='C'
      else 'C')

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

if d == "A":
    print("T")
    
else if d == "T":
    print("A")

    
else if d == "C":
    print("G")
    
else:
    print("C")


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

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')
if b=='T':
  print('A')
if b=='G':
  print('C')
if b=='C':
  print('G')
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')
if b == 'T':
    print('A')
if b == 'C':
    print('G')
if b == 'G':
    print('C')
Buggy code:
s={"A":"T","T":"A","C":"G","G":"C"}
a=input()
print(a[s])


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

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

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

Fixed code:
enki = str(input())

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

for i in range(len(b)):
  if b[i] == "A":
    b[i] = "T"
  elif b[i] == "T":
    b[i] = "A"
  elif b[i] == "C":
    b[i] = "G"
  else:
    b[i] = "C"
    
print(b)


Fixed code:
b = list(input())

for i in range(len(b)):
  if b[i] == "A":
    b[i] = "T"
  elif b[i] == "T":
    b[i] = "A"
  elif b[i] == "C":
    b[i] = "G"
  else:
    b[i] = "C"
    
print("".join(b))
Buggy code:
b = input()
if b == 'A':
    print('C')
elif b == 'C':
    print('A')
elif b == 'G':
    print('T')
else b == 'T':
    print('G')


Fixed code:
b = input()

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

def solve(input_stream):
  table = {
    "A": "T",
    "T": "A",
    "C": "G",
    "G": "C"
  }
  ans = ""
  for i in input_stream.readline():
    ans += table[i]
  return [ans]

if __name__ == "__main__":
    outputs = solve(sys.stdin)
    for line in outputs:
      print(line)

Fixed code:
import sys, os
import collections

def solve(input_stream):
  table = {
    "A": "T",
    "T": "A",
    "C": "G",
    "G": "C"
  }
  ans = ""
  for i in input_stream.readline().strip():
    ans += table[i]
  return [ans]

if __name__ == "__main__":
    outputs = solve(sys.stdin)
    for line in outputs:
      print(line)