parameters: (self)
return_statement: return False
docstring: This function reads lines from STDIN and executes the first command
          that it finds.  The 2 supported commands are:
          /cherry-pick commit0 <commit1> <commit2> <...>
          /branch <owner>/<repo>/<branch>
docstring_summary: This function reads lines from STDIN and executes the first command
          that it finds.  The 2 supported commands are:
          /cherry-pick commit0 <commit1> <commit2> <...>
          /branch <owner>/<repo>/<branch>
docstring_tokens: This function reads lines from STDIN and executes the first command that it finds . The 2 supported commands are : / cherry - pick commit0 <commit1 > <commit2 > < ... > / branch <owner > / <repo > / <branch >
function: def execute_command(self) -> bool:
          """
          This function reads lines from STDIN and executes the first command
          that it finds.  The 2 supported commands are:
          /cherry-pick commit0 <commit1> <commit2> <...>
          /branch <owner>/<repo>/<branch>
          """
          for line in sys.stdin:
              line.rstrip()
              m = re.search("/([a-z-]+)\s(.+)", line)
              if not m:
                  continue
              command = m.group(1)
              args = m.group(2)
  
              if command == 'cherry-pick':
                  return self.create_branch(args.split())
  
              if command == 'branch':
                  m = re.match('([^/]+)/([^/]+)/(.+)', args)
                  if m:
                      owner = m.group(1)
                      branch = m.group(3)
                      return self.create_pull_request(owner, branch)
  
          print("Do not understand input:")
          print(sys.stdin.readlines())
          return False
function_tokens: def execute_command ( self ) -> bool : for line in sys . stdin : line . rstrip ( ) m = re . search ( "/([a-z-]+)\s(.+)" , line ) if not m : continue command = m . group ( 1 ) args = m . group ( 2 ) if command == 'cherry-pick' : return self . create_branch ( args . split ( ) ) if command == 'branch' : m = re . match ( '([^/]+)/([^/]+)/(.+)' , args ) if m : owner = m . group ( 1 ) branch = m . group ( 3 ) return self . create_pull_request ( owner , branch ) print ( "Do not understand input:" ) print ( sys . stdin . readlines ( ) ) return False