Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

        def validate_string(s):
    if s is None: return False
    try:
        if len(s) == 0: return False
    except:
        return False
    return True
        


src/l/e/lettuce-farmer-HEAD/lib/fuzzywuzzy/fuzz.py   lettuce-farmer(Download)
def QRatio(s1,  s2):
    if not utils.validate_string(s1): return 0
    if not utils.validate_string(s2): return 0
 
    p1 = utils.full_process(s1)
def WRatio(s1,  s2):
    if not utils.validate_string(s1): return 0
    if not utils.validate_string(s2): return 0
 
    p1 = utils.full_process(s1)

src/s/o/Social.Water-HEAD/src/fuzz.py   Social.Water(Download)
def QRatio(s1,  s2):
    if not utils.validate_string(s1): return 0
    if not utils.validate_string(s2): return 0
 
    p1 = utils.full_process(s1)
def WRatio(s1,  s2):
    if not utils.validate_string(s1): return 0
    if not utils.validate_string(s2): return 0
 
    p1 = utils.full_process(s1)