def configure_time():
    """
    configure_time()

    Sync and enable to point to time_server variable
    """
    # Turn the time setting off to force use ntpdate to sync
    time_server = "time.apple.com"
    time_commands = [
        "systemsetup -setusingnetworktime off",
        time_server % "ntpdate %s",
        "systemsetup -setusingnetworktime on",
        "systemsetup -setnetworktimeserver %s" % time_server,
    ]
    for command in time_commands:
        shell_tools.run(command)
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/sys_tools.py/configure_time/swapped operands of `%`