def check_flakes():
    try:
        from pyflakes.scripts.pyflakes import main as main_pyflakes
    except ImportError:
        print("pyflakes not installed. Did you run pip install -r requirements_tests.txt or python develop.py --install-basic-requirements?", file=sys.stderr)
        return -1

    stdout = sys.stdout
    sys.stdout = StringIO.StringIO()
    original_argv = sys.argv
    sys.argv = [original_argv[0], "weblab", "test", "voodoo", "experiments"]
    try:
        number_of_lines = main_pyflakes()
    except __HOLE__:
        pass
    finally:
        results = sys.stdout.getvalue()
        sys.stdout = stdout
        sys.argv   = original_argv

    lines = [ line for line in results.split('\n') if line.find('generated') < 0 ]
    for line in lines:
        if len(line.strip()) > 0:
            print(line, file=sys.stderr)

    check_all_unused_exceptions()
    return 0
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/develop.py/check_flakes