def run(self, context):
        if self.use_cache:
            cache_dir = self.cache_dir
            if not cache_dir:
                cache_dir = guess_cache_dir(self.egg)
        vcs = pip.vcs.get_backend(self.vcs)
        vcs_repo = vcs("%s+%s#egg=%s" % (self.vcs, self.repository, self.egg))
        try:
            if os.path.exists(cache_dir):
                try:
                    if vcs.name is 'git':
                        _run_command(['git', 'clean', '-f', self.cache_dir])
                        vcs_repo.update(cache_dir, ['origin/master'])
                    else:
                        #pip doesn't use the second arg.
                        vcs_repo.update(cache_dir, [])
                except Exception, e:
                    #If an update failed, still run.
                    #This allows for running tests offline
                    print "Updating Repo Failed: %s" % e
            else:
                vcs_repo.obtain(cache_dir)
            self.status = 0
        except Exception, e:
            print e % "Exception on checkout: %s"
            self.status = 1

        context.build_dir = cache_dir
dataset/ETHPy150Open ericholscher/pony_barn/pony_barn/client.py/VCSClone.run/swapped operands of `%`