api/dblp_sql.py
def process_records(fpath):
    """Process all records in data file."""
    processed = 0
    successful = 0
    for record in iterrecords(fpath):

        try:
            success = process_record(record)
        except Exception as e:
            logging.info('unexpected exception in `process_record`')
            logging.error(str(e))
            success = False

        processed += 1
        if success:
            successful += 1
        if processed % 20 == 0:
            logging.info('processed:  %d records' % processed)
            logging.info('successful: %d' % successful)
Process all records in data file.
Process all records in data file.
Process all records in data file .
def process_records(fpath):
    processed = 0
    successful = 0
    for record in iterrecords(fpath):
        try:
            success = process_record(record)
        except Exception as e:
            logging.info('unexpected exception in `process_record`')
            logging.error(str(e))
            success = False
        processed += 1
        if success:
            successful += 1
        if processed % 20 == 0:
            logging.info('processed:  %d records' % processed)
            logging.info('successful: %d' % successful)
def process_records ( fpath ) : processed = 0 successful = 0 for record in iterrecords ( fpath ) : try : success = process_record ( record ) except Exception as e : logging . info ( 'unexpected exception in `process_record`' ) logging . error ( str ( e ) ) success = False processed += 1 if success : successful += 1 if processed % 20 == 0 : logging . info ( 'processed:  %d records' % processed ) logging . info ( 'successful: %d' % successful )
Process all records in data file.
Process all records in data file .
"""Process all records in data file."""
fpath