import logging
logger = logging.getLogger(__name__)

import os
import codecs

from pybtex.database.input.bibtex import Parser

PUBLICATION_DIR = 'content/publications'

# Iterate over all the files in the PUBLICATION_DIR
for file in os.listdir(PUBLICATION_DIR):
    logger.warn( '[BIB] Trying to parse {}...'.format(file))
    # Try parsing it, should not crash
    with codecs.open(PUBLICATION_DIR+os.sep+file, 'r', encoding="utf8") as stream:
        assert len(stream.read()) > 0 
        bibdata = Parser().parse_stream(stream)
9641d36e4307776091d08b0afe44f3dc7b423ec2
<mask token>

<mask token>
for file in os.listdir(PUBLICATION_DIR):
    logger.warn('[BIB] Trying to parse {}...'.format(file))
    with codecs.open(PUBLICATION_DIR + os.sep + file, 'r', encoding='utf8'
        ) as stream:
        assert len(stream.read()) > 0
        bibdata = Parser().parse_stream(stream)

<mask token>
logger = logging.getLogger(__name__)
<mask token>
PUBLICATION_DIR = 'content/publications'
for file in os.listdir(PUBLICATION_DIR):
    logger.warn('[BIB] Trying to parse {}...'.format(file))
    with codecs.open(PUBLICATION_DIR + os.sep + file, 'r', encoding='utf8'
        ) as stream:
        assert len(stream.read()) > 0
        bibdata = Parser().parse_stream(stream)

import logging
logger = logging.getLogger(__name__)
import os
import codecs
from pybtex.database.input.bibtex import Parser
PUBLICATION_DIR = 'content/publications'
for file in os.listdir(PUBLICATION_DIR):
    logger.warn('[BIB] Trying to parse {}...'.format(file))
    with codecs.open(PUBLICATION_DIR + os.sep + file, 'r', encoding='utf8'
        ) as stream:
        assert len(stream.read()) > 0
        bibdata = Parser().parse_stream(stream)

import logging
logger = logging.getLogger(__name__)

import os
import codecs

from pybtex.database.input.bibtex import Parser

PUBLICATION_DIR = 'content/publications'

# Iterate over all the files in the PUBLICATION_DIR
for file in os.listdir(PUBLICATION_DIR):
    logger.warn( '[BIB] Trying to parse {}...'.format(file))
    # Try parsing it, should not crash
    with codecs.open(PUBLICATION_DIR+os.sep+file, 'r', encoding="utf8") as stream:
        assert len(stream.read()) > 0 
        bibdata = Parser().parse_stream(stream)