api/dblpv7.py
def nextrecord(f):
    """Assume file pos is at beginning of record and read to end. Returns all
    components as a dict.
    """
    paperid = fmatch(f, id_pattern)
    title = fmatch(f, title_pattern)
    if title is None:
        return None

    authors = fmatch(f, author_pattern)
    f.readline()  # discard affiliation info
    year = fmatch(f, year_pattern)
    venue = fmatch(f, venue_pattern)

    # read out reference list
    refs = []
    line = f.readline()
    m = match(line, refs_pattern)
    while m is not None:
        if m:
            refs.append(m)
        line = f.readline()
        m = match(line, refs_pattern)

    abstract = match(line, abstract_pattern)
    if line.strip(): f.readline()  # consume blank line

    return Record(
        id=paperid,
        title=title,
        authors=authors,
        year=year,
        venue=venue,
        refs=refs,
        abstract=abstract
    )
Assume file pos is at beginning of record and read to end. Returns all
    components as a dict.
    
Assume file pos is at beginning of record and read to end. Returns all
components as a dict.
Assume file pos is at beginning of record and read to end . Returns all components as a dict .
def nextrecord(f):
    paperid = fmatch(f, id_pattern)
    title = fmatch(f, title_pattern)
    if title is None:
        return None
    authors = fmatch(f, author_pattern)
    f.readline()  
    year = fmatch(f, year_pattern)
    venue = fmatch(f, venue_pattern)
    refs = []
    line = f.readline()
    m = match(line, refs_pattern)
    while m is not None:
        if m:
            refs.append(m)
        line = f.readline()
        m = match(line, refs_pattern)
    abstract = match(line, abstract_pattern)
    if line.strip(): f.readline()  
    return Record(
        id=paperid,
        title=title,
        authors=authors,
        year=year,
        venue=venue,
        refs=refs,
        abstract=abstract
    )
def nextrecord ( f ) : paperid = fmatch ( f , id_pattern ) title = fmatch ( f , title_pattern ) if title is None : return None authors = fmatch ( f , author_pattern ) f . readline ( ) year = fmatch ( f , year_pattern ) venue = fmatch ( f , venue_pattern ) refs = [ ] line = f . readline ( ) m = match ( line , refs_pattern ) while m is not None : if m : refs . append ( m ) line = f . readline ( ) m = match ( line , refs_pattern ) abstract = match ( line , abstract_pattern ) if line . strip ( ) : f . readline ( ) return Record ( id = paperid , title = title , authors = authors , year = year , venue = venue , refs = refs , abstract = abstract )
Assume file pos is at beginning of record and read to end.
Assume file pos is at beginning of record and read to end .
"""Assume file pos is at beginning of record and read to end. Returns all
    components as a dict.
    """ # discard affiliation info # read out reference list # consume blank line
f