<s> import os <EOL> import weakref <EOL> import datetime <EOL> import re <EOL> import unicodedata <EOL> import logging <EOL> from thrift import clients <EOL> logger = logging . getLogger ( __name__ ) <EOL> REGEX_ISSN = re . compile ( r"<STR_LIT>" ) <EOL> def articlemeta_server ( ) : <EOL> try : <EOL> server = '<STR_LIT>' <EOL> host = server [ <NUM_LIT:0> ] <EOL> port = int ( server [ <NUM_LIT:1> ] ) <EOL> except : <EOL> logger . warning ( '<STR_LIT>' ) <EOL> host = '<STR_LIT>' <EOL> port = <NUM_LIT> <EOL> return clients . ArticleMeta ( host , port ) <EOL> def ckeck_given_issns ( issns ) : <EOL> valid_issns = [ ] <EOL> for issn in issns : <EOL> if not REGEX_ISSN . match ( issn ) : <EOL> continue <EOL> valid_issns . append ( issn ) <EOL> return valid_issns </s>
