parameters: (subject)
return_statement: return re.sub(r'[^A-Za-z0-9-]+', '_', subject).strip('_').lower() + '.patch'
docstring: Derive a suitable filename from a commit's subject
docstring_summary: Derive a suitable filename from a commit's subject
docstring_tokens: Derive a suitable filename from a commit s subject
function: def munge_subject_to_filename(subject):
    """Derive a suitable filename from a commit's subject"""
    if subject.endswith('.patch'):
      subject = subject[:-6]
    return re.sub(r'[^A-Za-z0-9-]+', '_', subject).strip('_').lower() + '.patch'
function_tokens: def munge_subject_to_filename ( subject ) : if subject . endswith ( '.patch' ) : subject = subject [ : - 6 ] return re . sub ( r'[^A-Za-z0-9-]+' , '_' , subject ) . strip ( '_' ) . lower ( ) + '.patch'