def list_patterns(refresh=False):
 if refresh:
  refresh_db()
 return _get_patterns()

def list_patterns ( refresh = False ) : if refresh : refresh_db ( ) return _get_patterns ( )
list all known patterns from available repos .