parameters: (self)
return_statement: return num
docstring: Find the number of pgs in creating mode.
docstring_summary: Find the number of pgs in creating mode.
docstring_tokens: Find the number of pgs in creating mode .
function: def get_num_creating(self):
          """
          Find the number of pgs in creating mode.
          """
          pgs = self.get_pg_stats()
          num = 0
          for pg in pgs:
              if 'creating' in pg['state']:
                  num += 1
          return num
function_tokens: def get_num_creating ( self ) : pgs = self . get_pg_stats ( ) num = 0 for pg in pgs : if 'creating' in pg [ 'state' ] : num += 1 return num