qyliang/CodeNanoFix huggingface dataset:
Buggy code:
S=input()
if("AAA"==S or S=="BBB"):
  print("Yes")
else:
  print("No")


Fixed code:
S=input()
if("AAA"==S or S=="BBB"):
  print("No")
else:
  print("Yes")
Buggy code:
S=input()
if(S in ("A"and"B")):
  print("Yes")
else:
  print("No")

Fixed code:
S=input()


if 'A' in S and 'B' in S:
    print('Yes')
else :
    print('No')
Buggy code:

S = str(input())

if S == 'AAA':
    print('Yes')
elif S == 'BBB':
    print('Yes')
else:
    print('No')

Fixed code:

S = str(input())

if S == 'AAA':
    print('No')
elif S == 'BBB':
    print('No')
else:
    print('Yes')
Buggy code:
s = input()
if s == 'AAA' or s = 'BBB'
  print('No')

else print('Yes')

Fixed code:
s = input()
if s == 'AAA' or s == 'BBB':
  print('No')

else:
  print('Yes')
Buggy code:
s=input()
a=0
b=0
for i in s:
  if i=="A":
    a+=1
  elif i=="B":
    b+=1
if (a+b)!=3 and (a==0 or b==0):
  print("No")
else:
  print("Yes")

Fixed code:
s=input()
a=0
b=0
for i in s:
  if i=="A":
    a+=1
  elif i=="B":
    b+=1
if (a+b)!=3 or (a==0 or b==0):
  print("No")
else:
  print("Yes")
Buggy code:
S = input()

S = 'BAB'

if S == 'AAA' or S== 'BBB':
    print("No")
    
else:
    print("Yes")

Fixed code:
S = input()
  
if S == 'AAA' or S== 'BBB':
    print("No")
    
else:
    print("Yes")
Buggy code:
S = input()

if S in ("AAA", "BBB"):
    print("Yes")
else:
    print("No")


Fixed code:
S = input()

if S in ("AAA", "BBB"):
    print("No")
else:
    print("Yes")
Buggy code:
S = list(input())
if set(S) == 1:
  print("No")
else:
  print("Yes")

Fixed code:
S = list(input())
if len(set(S)) == 1:
  print("No")
else:
  print("Yes")
Buggy code:
s = input()
if s == 'AAA' or s == 'BBB':
    print('Yes')
else:
    print('No')

Fixed code:
s=input()
if s =='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')
Buggy code:
S= input()

if(S[0]==S[1]==S[2]):
  print("Yes")
else:
  print("No")

Fixed code:
S=input()

if S[0]==S[1]==S[2]:
    print("No")
else:
    print("Yes")
Buggy code:
str = input()

ct = str.count('A')

if ct == 0 or ct == 3:
  print('No')
else :
  pritn('Yes')

Fixed code:
str = input()

ct = str.count('A')

if ct == 0 or ct == 3:
  print('No')
else:
  print('Yes')
Buggy code:
s = input()

a = s[0]
if a == s[1] and a == s[2]:
    print('Yes')
else:
    print('No')


Fixed code:
s=input()
a=0
if(s[0]==s[1]):
    if(s[1]==s[2]):
        a=1
if(a==1):
    print('No')
else:
    print('Yes')
Buggy code:
a = input()
if not a == "AAA" or a =="BBB":
  print("Yes")
else:
  print("No")
  

Fixed code:
a = input()
if not (a == "AAA" or a =="BBB"):
  print("Yes")
else:
  print("No")
Buggy code:
stations = input()
if (not "A" in stations) or ("B" in stations):
  print("No")
else:
  print("Yes")

Fixed code:
stations = input()
if (not "A" in stations) or (not "B" in stations):
  print("No")
else:
  print("Yes")
Buggy code:
S = str(input())

if S == ("AAA" or "BBB"):
    print("No")
else:
    print("Yes")

Fixed code:
S = str(input())

if (S == "AAA") or (S == "BBB"):
    print("No")
else:
    print("Yes")
Buggy code:
S = input()
if S == "AAA" or "BBB":
  print("No")
else:
  print("Yes")

Fixed code:
S = str(input())

if S == 'AAA' or S == 'BBB':
    print('No')
else:
    print('Yes')
Buggy code:
S = input()
print("Yes" len(set(S)) ==2 else "No")

Fixed code:
S = input()
print("Yes" if len(set(S)) ==2 else "No")
Buggy code:
a,b,c=input()
print('Yes' if a==b==c else 'No')

Fixed code:
a,b,c=input()
print('No' if a==b==c else 'Yes')
Buggy code:
A=input()
if 'A' and 'B' in A:
	print('Yes')
else:
	print('No')

Fixed code:
A=input()
if 'B' in A:
	if 'A' in A:
		print('Yes')
	else:
		print('No')
else:
	print('No')
Buggy code:
i = input()
if i[-1]==i[-2] and i[-2]==i[-3]:
    print("Yes")
else:
    print("No")

Fixed code:
i = input()
if i[-1]==i[-2] and i[-2]==i[-3]:
    print("No")
else:
    print("Yes")
Buggy code:
x = input()

if x[0] == x[1] and x[1]==x[2]:
  print("Yes")
else:
  print("No")
  

Fixed code:
x = input()

if x[0]==x[1]==x[2]:
  print("No")
else:
  print("Yes")
Buggy code:
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
# input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

def main():
    s = input()
    print(s)
    if s == 'AAA' or s == 'BBB':
        print('No')
    else:
        print('Yes')
    
if __name__ == "__main__":
    main()

Fixed code:
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
from collections import Counter,defaultdict,deque
from itertools import permutations, combinations
from heapq import heappop, heappush
# input = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

def main():
    s = input()
    if s == 'AAA' or s == 'BBB':
        print('No')
    else:
        print('Yes')
    
if __name__ == "__main__":
    main()
Buggy code:
s = input()
a = s.count('A')
b = s.count('B')

if(a==3):
    print('Yes')
elif(b==3):
    print('Yes')
else:
    print('No')

Fixed code:
s = input()
a = s.count('A')
b = s.count('B')

if(a==3):
    print('No')
elif(b==3):
    print('No')
else:
    print('Yes')
Buggy code:
N = str(input())
if N == 'AAA' or N == 'BBB':
  print('Yes')
else:
  print('No')

Fixed code:
N = str(input())
if N == 'AAA' or N == 'BBB':
  print('No')
else:
  print('Yes')
Buggy code:
S=str(input())
if len(set(S))=1:
  print("No")
 else:
  print(Yes)

Fixed code:
S=str(input())
if len(set(S))==1:
  print("No")
else:
  print("Yes")
Buggy code:
S=input()
a=[]
b=[]
for i in range(3):
  if S[i]=="A":
    a+=[S[i]]
  else:
    b+=["B"]
if len(a)==3 or len(b)==3:
  print("Yes")
else:
  print("No")

Fixed code:
S=input()
a=[]
b=[]
for i in range(3):
  if S[i]=="A":
    a+=[S[i]]
  else:
    b+=["B"]
if len(a)==3 or len(b)==3:
  print("No")
else:
  print("Yes")
Buggy code:
s=str(input())
if s=='AAA' or 'BBB':
  print('No')
else:
  print('Yes')

Fixed code:
s=str(input())
if s== 'AAA' or s=='BBB':
  print('No')
else:
  print('Yes')
Buggy code:
S=input()
if S[0] in S[1] in S[2]:
  print('Yes')
else:
  print('No')

Fixed code:
S = input()


if S[0]==S[1]==S[2]:
    print('No')
else:
    print('Yes')
Buggy code:
S=input()
if S=="AAA"or"BBB":
    print("No")
else:
    print("Yes")
        



Fixed code:
S = input()
if S == "AAA" or S == "BBB":
    print ("No")
else:
    print ("Yes")
Buggy code:
S=input().split()

if S.count('A') == 3 or S.count('B') == 3:
    print('No')
else:
    print('Yes')

Fixed code:
S=input()

if S.count('A') == 3 or S.count('B') == 3:
    print('No')
else:
    print('Yes')
Buggy code:
s = input()

if s == 'AAA' or 'BBB':
	print('No')

else:
	print('Yes')
    
  

Fixed code:
s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
    
else:
    print('Yes')
Buggy code:
S = input()

if S.count(A) >= 1 and S.count(B) >= 0 :
    print("Yes")
else :
    print("No")

Fixed code:
S = input()

if S.count("A") >= 1 and S.count("B") >= 1 :
    print("Yes")
else :
    print("No")
Buggy code:
from sys import stdin
S = list(stdin.readline().rstrip())
print('No' if S == 'AAA' or 'BBB' else 'Yes')

Fixed code:
from sys import stdin
S = stdin.readline().rstrip()
print('No' if S == 'AAA' or S == 'BBB' else 'Yes')
Buggy code:
t = input()
l = [i for i in t]
print(l)
if "A" in l and "B" in l:
    print("Yes")
else:
    print("No")


Fixed code:
t = input()
l = [i for i in t]
if "A" in l and "B" in l:
    print("Yes")
else:
    print("No")
Buggy code:
if S=='AAA' or S='BBB':
  print('No')
else
  print('Yes')
  

Fixed code:
S=input()
if S=="BBB" or S=="AAA":
  print("No")
else:
  print('Yes')
Buggy code:
s = input()
if s.count('A') ==1 or s.count('B') ==3:
    print('No')
else:
    print('Yes')

Fixed code:
s = input()
if s.count('A') ==3 or s.count('B') ==3:
    print('No')
else:
    print('Yes')
Buggy code:
n=input()
if n[0]==n[1] and n[1]==n[2]:
  print("Yes")
else:
  print("No")

Fixed code:
n=input()
if n[0]==n[1] and n[1]==n[2]:
  print("No")
else:
  print("Yes")
Buggy code:
s = input()
if s[0] == s[1] or s[1] == s[2]: print('No')
  else: print('Yes')

Fixed code:
s = input()

if s[0] == s[1] == s[2]:
  print("No")
 
else:
  print("Yes")
Buggy code:
S = input()

if S[0] == S[1] and S[1] == S[2]:
    print('Yes')
else:
    print('No')


Fixed code:
S = input()
if S[0] == S[1] and S[1] == S[2]:
  print('No')
else: 
  print('Yes')
Buggy code:
if __name__== '__main__':
  s = input('>>')
  if s[0] == 'A' and s[1] == 'A' and s[2] == 'A':
        	print('Yes')
  elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B':
      		print('Yes')
  else:
        	print('No')
      


Fixed code:
if __name__== '__main__':
  s = input()
  if s[0] == 'A' and s[1] == 'A' and s[2] == 'A':
        	print('No')
  elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B':
      		print('No')
  else:
        	print('Yes')
Buggy code:
S = input()
s = set(input())
print('Yes' if len(s)>1 else 'No')



Fixed code:
s = set(input())
print('Yes' if len(s)>1 else 'No')
Buggy code:
a = input()
b = a[0]
c = False
for i in range(len(a)):
    if a[i] != b:
        c = True
        print("Yes")
        return
print("No")

Fixed code:
a = input()
b = a[0]
c = False
for i in range(len(a)):
    if a[i] != b:
        c = True
if c:
    print("Yes")
else:
    print("No")
Buggy code:
S = input()

if "AB" or "BA" in S:
    print("Yes")
else:
    print("No")


Fixed code:
S = str(input())
if 'AB' in S or 'BA' in S:
  print('Yes')
else:
  print('No')
Buggy code:
n=input()

if n="AAA" or n="BBB":
  print("No")
else:
  print("Yes")

Fixed code:
n=input()

if n=="AAA" or n=="BBB":
  print("No")
else:
  print("Yes")
Buggy code:
s=input()
if (s=="AAA" or s=="BBB"):
   print("Yes")
else:
   print("No")


Fixed code:
s=input()
if s == 'AAA' or s == 'BBB':
    ans = 'No'
else:
    ans = 'Yes'
print(ans)
Buggy code:
d=input()
if d.count("A")==3 or d.count("B")==3: print("Yes")
else: print("No")

Fixed code:
d=input()
if d.count("A")==3 or d.count("B")==3: print("No")
else: print("Yes")
Buggy code:
a = input()
if a=="AAA" or "BBB":
  print("No")
else:
  print("Yes")


Fixed code:
a = input()
if a=="AAA" or a=="BBB":
  print("No")
else:
  print("Yes")
Buggy code:
S = input()
if S = "AAA" or "BBB":
  print("No")
else:
  print("Yes")


Fixed code:
S = input()
if S == 'AAA' or S == 'BBB':
    ans = 'No'
else:
    ans = 'Yes'
print(ans)
Buggy code:
S = input()
if S[0] == S[1] and S[1] == S[2]:
  print('Yes')
else:
  print('No')


Fixed code:
S = input()
if S[0] == S[1] == S[2]:
    print('No')
else:
    print('Yes')
Buggy code:
S=input()
if(len(Sset)==2):
  print('Yes')
else:
  print('No')

Fixed code:
S=input()
Sset=set(S)
if(len(Sset)==2):
  print('Yes')
else:
  print('No')
Buggy code:
n = input()
if n[0] ==n[1] and n[1] == n[2]:
  print('Yes')
else:
  print('No')


Fixed code:
n = input()
if n[0] ==n[1] and n[1] == n[2]:
  print('No')
else:
  print('Yes')
Buggy code:
s=input()
if s[0]=s[1] and s[1]=s[2]:
  print("Yes"
else:
  print("No"

Fixed code:
s = input()
if s[0]==s[1] and s[1]==s[2]:
  print("No")
else:
  print("Yes")
Buggy code:
inputs = list(input())
print(inputs)
if inputs[0] == inputs[1] and inputs[1] == inputs[2]:
	print('No')
else:
	print('Yes')

Fixed code:
inputs = list(input())
if inputs[0] == inputs[1] and inputs[1] == inputs[2]:
	print('No')
else:
	print('Yes')
Buggy code:
S = input()
if S == AAA or S == BBB:
  print('No')
else:
  print('Yes')

Fixed code:
S = input()
if (S == 'AAA') or (S == 'BBB'):
    print('No')
else:
    print('Yes')
Buggy code:
#ABC158
s = input()
print("Yes" if len(set(s))== else "No")

Fixed code:
#ABC158
s = input()
print("Yes" if len(set(s))==2 else "No")
Buggy code:
s = input()

if s == "AAA" or s == "BBB":
  print("No")
else
  print("Yes")

Fixed code:
s = input()
if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")
Buggy code:
s = input()
if s[0] == s[1] and s[1] = s[2] and s[2] == s[0]:
  print("No")
  exit()
  
print("Yes")

Fixed code:
s = input()
if s[0] == s[1] and s[1] == s[2] and s[2] == s[0]:
  print("No")
  exit()
  
print("Yes")
Buggy code:
S = input
if S[0] == S[1] and S[1] == S[2]:
  print('No')
else:
  print('Yes')

Fixed code:

S = input()

if S[0] == S[1] and S[1] == S[2]:
  print('No')
else:
  print('Yes')
Buggy code:


s = input()

if s == 'AAA' or 'BBB':
    print('No')
else:
    print('Yes')

Fixed code:


s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
else:
    print('Yes')
Buggy code:
S = input()
if S == "AAA" or "BBB":
    print("No")
else:
    print("Yes")


Fixed code:
S = input()

print("No" if S == "AAA" or S =="BBB" else "Yes")
Buggy code:
S = input()

if "A" and "B" in S:
    print("Yes")
else:
    print("No")

Fixed code:
S = input()

if 'A' in S and 'B' in S:
  print('Yes')
else:
  print('No')
Buggy code:
from Collections import Counter
s=input()
c=Counter(s)
if(len(c.keys())==1):
  print ("No")
else:
  print ("Yes")

Fixed code:
from collections import Counter
s=input()
c=Counter(s)
if(len(c.keys())==1):
    print ("No")
else:
    print ("Yes")
Buggy code:
# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
lst = input().split()
# %%
one = lst[0][0]
two = lst[0][1]
three = lst[0][2]


# %%
one_two = one == two
two_three = two == three
three_one = three == one




# %%
if any([one_two, two_three, three_one]):
    print('Yes')
else:
    print('No')


# %%




Fixed code:
# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'

# %%
lst = input().split()

# %%
one = lst[0][0]
two = lst[0][1]
three = lst[0][2]


# %%
one_two = one != two
two_three = two != three
three_one = three != one


# %%
any([one_two, two_three, three_one])


# %%
if any([one_two, two_three, three_one]):
    print('Yes')
else:
    print('No')


# %%
Buggy code:
s=[]
a=input()
for i in a:
    s.append(i)
if len(list(set(s)))==3:
    print("Yes")
else:
    print("No")

Fixed code:
s=[]
a=input()
for i in a:
    s.append(i)
if len(list(set(s)))==2:
    print("Yes")
else:
    print("No")
Buggy code:
S=input()
if S="AAA" or S="BBB":
  print("No")
else:
  print("Yes")

Fixed code:
S = input()
if S == 'AAA' or S == 'BBB':
    print("No")
else:
    print("Yes")
Buggy code:
import sys
input = sys.stdin.readline

s = [import()] 

if  a[0] == a[1] == a[2]:
	print("Yes")
else:
	print("No")

Fixed code:
import sys
input = sys.stdin.readline
s = input()

if  s[0] == s[1] == s[2]:
    print("No")
else:
    print("Yes")
Buggy code:
# -*- coding: utf-8 -*-
a = str(input())

if a in "AB" or a in "BA":
	print("Yes")
else:
	print("No")


Fixed code:
# -*- coding: utf-8 -*-
a = str(input())

if "AB" in a  or "BA" in a:
	print("Yes")
else:
	print("No")
Buggy code:
s = input()
if s=="AAA" or "BBB":
  print("No")
else:
  print("Yes")
  

Fixed code:
s=input()

print("No" if s=="AAA" or s=="BBB" else "Yes" )
Buggy code:
s = input().split()
x1=s[0][0]
x2=s[0][1]
x3=s[0][2]
flag = False
A = 'A'
B = 'B'
if x1==A and x2==A and x3==A:
    flag = True
elif x1==B and x2==B and x3==B:
    flag = True
else:
    flag = False
if (flag):
    result = 'Yes'
else:
    result = 'No'
print(result)

Fixed code:
s = input().split()
x1=s[0][0]
x2=s[0][1]
x3=s[0][2]
flag = False
A = 'A'
B = 'B'
if x1==A and x2==A and x3==A:
    flag = True
elif x1==B and x2==B and x3==B:
    flag = True
else:
    flag = False
if (flag):
    result = 'No'
else:
    result = 'Yes'
print(result)
Buggy code:
s=set(list(input()))

if len(s)==1:
    print("Yes")
else:
    print("No")

Fixed code:
s=set(list(input()))

if len(s)==1:
    print("No")
else:
    print("Yes")
Buggy code:
S=input()
S=[1 if s=='A' else 0 for s in S]
print("Yes") if sum(S)==0 or sum(S)==3 else print("No")

Fixed code:
S=input()
S=[1 if s=='A' else 0 for s in S]
print("No") if sum(S)==0 or sum(S)==3 else print("Yes")
Buggy code:
a = list(input())
print(a)
if a[0] == a[1] and a[1] == a[2]:
    print('No')
else:
    print('Yes')

Fixed code:
a = list(input())
if a[0] == a[1] and a[1] == a[2]:
    print('No')
else:
    print('Yes')
Buggy code:
S = input()
print('No' if S == 'AAA' or 'BBB' else 'Yes')


Fixed code:
S = input()
print('No' if (S == 'AAA' or S == 'BBB') else 'Yes')
Buggy code:
s=input()
if s=="AAA" or "BBB":
  print("No")
else:
  print("Yes")

Fixed code:
s = input()
if s =="AAA" or s == "BBB":
  print("No")
else:
  print('Yes')
Buggy code:
s = input()
print('No' if if s[0] == s[1] and s[1] == s[2] else 'Yes')

Fixed code:
s = input()
print('No' if s[0] == s[1] and s[1] == s[2] else 'Yes')
Buggy code:
if S[0] == S[1] == S[2]:
  print('No')
else:
  print('Yes')

Fixed code:
S=input()

if(S[0]==S[1]==S[2]):
    print("No")
else:
    print("Yes")
Buggy code:
s=input()
if s=="AAA" or s=="BBB":
  print("Yes")
else:
  print("No")

Fixed code:
s = input()


if s == 'AAA' or s == 'BBB':
    print('No')
else:
    print('Yes')
Buggy code:
n=input()
if n=="AAA" or "BBB":
  print("No")
else:
  print("Yes")

Fixed code:
n=input()
if n=="AAA" or n=="BBB":
    print("No")
else:
    print("Yes")
Buggy code:
S = str(input())

if S[0] == S[1] == S[2]:
  print("Yes")
else:
  print("No")

Fixed code:
S = str(input())
 
if S[0] == S[1] == S[2]:
  print("No")
else:
  print("Yes")
Buggy code:
s=input()
if s==="AAA" or "BBB":
  print('No')
else:
  print('Yes')
  

Fixed code:
s=str(input())

if s=="AAA" or s=="BBB":
  print("No")
else:
  print("Yes")
Buggy code:
# -*- coding: utf-8 -*-
s = input()
s1 = int(s[0])
s2 = int(s[1])
s3 = int(s[2])

if s1==s2:
	if s1==s3:
		print("No")
	else:
		print("Yes")
else:
	print("Yes")


Fixed code:
# -*- coding: utf-8 -*-
s = input()
s1 = s[0]
s2 = s[1]
s3 = s[2]

if s1==s2:
	if s1==s3:
		print("No")
	else:
		print("Yes")
else:
	print("Yes")
Buggy code:
lit = str(input())
print("Yes" if "A" in lit and "B" in lit else "B")

Fixed code:
lit = str(input())
print("Yes" if "A" in lit and "B" in lit else "No")
Buggy code:
print ("Yes" if input() in ("AAA", "BBB") else "No")

Fixed code:
print ("No" if input() in ("AAA", "BBB") else "Yes")
Buggy code:
def yesno(S):
  if S==AAA or S==BBB:
    return No
  else:
    return Yes

S=input()
print(yesno(S))

Fixed code:
def yesno(S):
  if S=="AAA" or S=="BBB":
    return "No"
  else:
    return "Yes"

S=input()
print(yesno(S))
Buggy code:
S=input()
if S==AAA or S==BBB:
	print("No")
else:
	print("Yes")

Fixed code:
S=input()
if S=="AAA" or S=="BBB":
  print("No")
else:
  print("Yes")
Buggy code:
S=input()
a=S.count("A")
b=S.count("B")
if a==3 or b==3:
  print("No")
else
  print("Yes")

Fixed code:
S=input()
a=S.count("A")
b=S.count("B")
if a==3 or b==3:
  print("No")
else:
  print("Yes")
Buggy code:
a=input()
if a == 'AAA' or a == 'BBB':
    print('Yes')
else:
    print('No')

Fixed code:
a=input()
if a == 'AAA' or a == 'BBB':
    print('No')
else:
    print('Yes')
Buggy code:
a = input()

if a == 'AAA' or a == 'BBB':
    print('Yes')
else:
    print('No')

Fixed code:
a = input()

if a == 'AAA' or a == 'BBB':
  print('No')
else:
  print('Yes')
Buggy code:
S = input()
if S == "AAA" or "BBB":
  ANS = "No"
else:
  ANS = "Yes"
  
print(ANS)

Fixed code:
S = input()
if S == "AAA"or S =="BBB":
  print("No")
else:
  print("Yes")
Buggy code:
N = input()
if N in A and N in B:
  print('Yes')
else:
  print('No')

Fixed code:
N = input()
if 'A' in N  and 'B' in N:
  print('Yes')
else:
  print('No')
Buggy code:
import bisect, collections, copy, heapq, itertools, math, string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

def main():
    S_ = S()
    if S_ == 'AAA' or 'BBB':
        print('No')
    else:
        print('Yes')

if __name__ == "__main__":
    main()

Fixed code:
import bisect, collections, copy, heapq, itertools, math, string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

def main():
    S_ = S()
    if S_ == 'AAA' or S_ == 'BBB':
        print('No')
    else:
        print('Yes')

if __name__ == "__main__":
    main()
Buggy code:
s = input()
if s[0]==s[1] and s[1]==s[2]:
    print("Yes")
else:
    print("No")

Fixed code:
s = input()
if s[0]==s[1] and s[1]==s[2]:
    print("No")
else:
    print("Yes")
Buggy code:
#A

s = set(list(input()))
print(s)
print("Yes") if len(s) == 2 else print("No")



Fixed code:
#A

s = set(list(input()))

print("Yes") if len(s) == 2 else print("No")
Buggy code:
S = input()
print('Yes' len(set(S)) == 2 else 'No')

Fixed code:
S = input()
print('Yes' if len(set(S)) == 2 else 'No')
Buggy code:
s = input()
fg = 0
for i in range(2):
    if s[i] != s[i+1]:
        fg = 1
if fg == 1:
    print("YES")
else:
    print("No")

Fixed code:
s = input()
fg = 0
for i in range(2):
    if s[i] != s[i+1]:
        fg = 1
if fg == 1:
    print("Yes")
else:
    print("No")
Buggy code:
S = input()
if S == "AAA" or S == "BBB":
    print("Yes")
else:
    print("No")


Fixed code:
S = input()

if S == "AAA" or S == "BBB":
  print("No")
else:
  print("Yes")
Buggy code:
s = input()

if s=="AAA" or s=="BBB":
  print "No"
else:
  print "Yes"

Fixed code:
s = input()
 
if s=="AAA" or s=="BBB":
  print("No")
else:
  print("Yes")
Buggy code:
s=input()
if(s[0]==s[1] and s[1]==s[2])print("Yes")
else print("No")

Fixed code:
s=input()
if s[0]==s[1] and s[1]==s[2] :print("No")
else: print("Yes")
Buggy code:
S = input()

if S == AAA or BBB:
    print('No')
else:
    print('Yes')

Fixed code:
S = input()
 
if (S == 'AAA') or (S == 'BBB'):
    print('No')
else:
    print('Yes')
Buggy code:
S=[x for x in input()]
s=len(list(set(S)))

if s==3:
  print("No")
else:
  print("Yes")

Fixed code:
S=[x for x in input()]
s=len(list(set(S)))

if s==1:
  print("No")
else:
  print("Yes")
Buggy code:
s = input()

if s == "AAA" or "BBB":
    print("No")
else:
    print("Yes") 

Fixed code:
s = input()

if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes")
Buggy code:
S=input()
if S="AAA" or S="BBB":
    print("No")
else:
    print("Yes")

Fixed code:
S=input()
if S=="AAA" or S=="BBB":
    print("No")
else:
    print("Yes")
Buggy code:
a=input()
if len(set(a))==1:
  print("Yes")
else:
  print("No")

Fixed code:
a=input()
if len(set(a))==1:
  print("No")
else:
  print("Yes")
Buggy code:
# -*- coding: utf-8 -*-
# Input of 3 stations
stations = input() # i.e. ABA

def needBus(s):
  '''<str> s: 3 stations'''
  return ((s[0] != s[1]) or (s[1] != s[2]))

# Output
print(needBus(stations))

Fixed code:
# -*- coding: utf-8 -*-
# Input of 3 stations
stations = input() # i.e. ABA

def needBus(s):
  '''<str> s: 3 stations'''
  if ((s[0] != s[1]) or (s[1] != s[2])):
    return 'Yes'
  else:
    return 'No'
  
# Output
print(needBus(stations))
Buggy code:
print('Yes' if S != 'AAA' and S != 'BBB' else 'No')

Fixed code:
S = input()
print('Yes' if S != 'AAA' and S != 'BBB' else 'No')
Buggy code:
S = input()
if((S[0] == S[1])and(S[1] == S[2])):
  print('Yes')
else:
  print('No')

Fixed code:
S = input()
if((S[0] == S[1])and(S[1] == S[2])):
  print('No')
else:
  print('Yes')