parameters: (cur, seen)
docstring: Finds popular keys that have not been seen.
docstring_summary: Finds popular keys that have not been seen.
docstring_tokens: Finds popular keys that have not been seen .
function: def find_popular_taginfo(cur, seen):
      """Finds popular keys that have not been seen."""
      RE_VALID = re.compile(r'^[a-z_]+$')
      keys = ('amenity', 'shop', 'craft', 'emergency', 'office', 'highway', 'railway', 'tourism', 'historic', 'leisure', 'man_made')
      cur.execute("select key, value, count_all from tags where key in ({}) and count_all > 1000 order by count_all desc".
                  format(','.join(['?' for x in keys])), keys)
      for row in cur:
          if (row[0], row[1]) not in seen and row[1] not in ('yes', 'no') and RE_VALID.match(row[1]):
              yield row
function_tokens: def find_popular_taginfo ( cur , seen ) : RE_VALID = re . compile ( r'^[a-z_]+$' ) keys = ( 'amenity' , 'shop' , 'craft' , 'emergency' , 'office' , 'highway' , 'railway' , 'tourism' , 'historic' , 'leisure' , 'man_made' ) cur . execute ( "select key, value, count_all from tags where key in ({}) and count_all > 1000 order by count_all desc" . format ( ',' . join ( [ '?' for x in keys ] ) ) , keys ) for row in cur : if ( row [ 0 ] , row [ 1 ] ) not in seen and row [ 1 ] not in ( 'yes' , 'no' ) and RE_VALID . match ( row [ 1 ] ) : yield row