def check_hash(rawfile, filename):
    try:
        with open(file_path + '/hash_dict.pickle', 'rb') as f:
            hash_dict = cPickle.load(f)
    except IOError:
        hash_dict = {}
    try:
        checkhash = hash_dict[filename]
    except:
        checkhash = None

    filehash = get_hash(rawfile)
    if filehash == checkhash:
        return False, None
    return True, filehash
Convert provided string to language specific literal.
dataset/ETHPy150Open statsmodels/statsmodels/tools/hash_funcs.py/check_hash--crossover with--dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/language_model.py/LanguageModel._String