def extract_first_line(paragraph):
 lines = paragraph.splitlines()
 first = lines[0].strip()
 spaces = list(re.finditer('(\\s+)', first))
 if spaces:
  longest = max(spaces, key=(lambda m: (m.span()[1] - m.span()[0])))
  if (longest and (longest.start() > 1) and ((longest.end() - longest.start()) > 1)):
   first = first[:longest.start()]
 return first

def extract_first_line ( paragraph ) : lines = paragraph . splitlines ( ) first = lines [ 0 ] . strip ( ) spaces = list ( re . finditer ( '(\\s+)' , first ) ) if spaces : longest = max ( spaces , key = ( lambda m : ( m . span ( ) [ 1 ] - m . span ( ) [ 0 ] ) ) ) if ( longest and ( longest . start ( ) > 1 ) and ( ( longest . end ( ) - longest . start ( ) ) > 1 ) ) : first = first [ : longest . start ( ) ] return first
extract the first line information from the function code text if available .