def guess_contains(lines, version_map):
    """Tries to determine if a file includes sqlite
    """
    for line in lines:
        for mapping in version_map:
            if mapping[1] in line:
                return mapping[0]
    signatures = [
        'unable to open a temporary database file for storing temporary tables'
        , 'json_object() requires an even number of arguments',
        'ESCAPE expression must be a single character', 'SQLite version %s']
    for line in lines:
        for signature in signatures:
            if signature in line:
                return 1
    return 0
