original_docstring: 
          Clear update.lk for all remotes
          
docstring: Clear update.lk for all remotes
docstring_tokens: Clear update . lk for all remotes
code: def clear_lock(self, remote=None, lock_type='update'):
          '''
          Clear update.lk for all remotes
          '''
          cleared = []
          errors = []
          for repo in self.remotes:
              if remote:
                  # Specific remote URL/pattern was passed, ensure that the URL
                  # matches or else skip this one
                  try:
                      if not fnmatch.fnmatch(repo.url, remote):
                          continue
                  except TypeError:
                      # remote was non-string, try again
                      if not fnmatch.fnmatch(repo.url, six.text_type(remote)):
                          continue
              success, failed = repo.clear_lock(lock_type=lock_type)
              cleared.extend(success)
              errors.extend(failed)
          return cleared, errors
code_tokens: def clear_lock ( self , remote = None , lock_type = 'update' ) : cleared = [ ] errors = [ ] for repo in self . remotes : if remote : try : if not fnmatch . fnmatch ( repo . url , remote ) : continue except TypeError : if not fnmatch . fnmatch ( repo . url , six . text_type ( remote ) ) : continue success , failed = repo . clear_lock ( lock_type = lock_type ) cleared . extend ( success ) errors . extend ( failed ) return cleared , errors
short_docstring: Clear update.lk for all remotes
short_docstring_tokens: Clear update . lk for all remotes
comment: '''
          Clear update.lk for all remotes
          '''$SEP$# Specific remote URL/pattern was passed, ensure that the URL$SEP$# matches or else skip this one$SEP$# remote was non-string, try again