original_docstring: 
      Pull commits from remote server and restart processes.
      
docstring: Pull commits from remote server and restart processes.
docstring_tokens: Pull commits from remote server and restart processes .
code: def hook():
      '''
      Pull commits from remote server and restart processes.
      '''
      # data = bottle.request.json
      (st, output) = subprocess.getstatusoutput('git pull')
      if st != 0:
          return 'error {} in pull: {}'.format(st, output)
      restart_procs()
      return '{} {}'.format(*check_status())
code_tokens: def hook ( ) : ( st , output ) = subprocess . getstatusoutput ( 'git pull' ) if st != 0 : return 'error {} in pull: {}' . format ( st , output ) restart_procs ( ) return '{} {}' . format ( * check_status ( ) )
short_docstring: Pull commits from remote server and restart processes.
short_docstring_tokens: Pull commits from remote server and restart processes .
comment: '''
      Pull commits from remote server and restart processes.
      '''$SEP$# data = bottle.request.json