def is_restricted_bash( line ):
	if '&&' in line:
		return False
	if line in "`":
		return False
	if '"' in line:
		return False

	okcmds = [
		'./configure', 
		'make', 'cmake', 
		'scons', 'bazel', 
		'cd', 'mkdir', 'cp', #'pwd', 'ls',
		'npm', 'grunt', 'gyp', 'nw-gyp',
		'apt-get', 'yum',
		'pip', 'docker', 'rhc',
	]
	cmd = line.split()[0]
	if cmd == 'sudo': cmd = line.split()[1]

	if cmd in okcmds:
		return True
	else:
		return False
dataset/ETHPy150Open rusthon/Rusthon/rusthon.py/is_restricted_bash/swapped operands of `in`