

def _check_string(data):
    val = data.lower()
    return ((val.startswith('select ') and (' from ' in val)) or val.startswith('insert into') or (val.startswith('update ') and (' set ' in val)) or val.startswith('delete from '))

dataset/ETHPy150Open openstack/bandit/bandit/plugins/injection_sql.py _check_string/original