<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , print_function , division <EOL> from six import PY3 , b , BytesIO , next <EOL> from six . moves import configparser <EOL> from six . moves import reload_module as reload <EOL> import collections <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT:b>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> if PY3 : <EOL> from operator import truediv as operator_div <EOL> izip = zip <EOL> imap = map <EOL> ifilter = filter <EOL> def exc_message ( e ) : <EOL> msg = e . args [ <NUM_LIT:0> ] <EOL> if isinstance ( msg , Exception ) : <EOL> return exc_message ( msg ) <EOL> return msg <EOL> def cmp ( x , y ) : <EOL> """<STR_LIT>""" <EOL> return ( x > y ) - ( x < y ) <EOL> def get_unbound_function ( unbound ) : <EOL> if hasattr ( unbound , '<STR_LIT>' ) : <EOL> return unbound . __func__ <EOL> return unbound <EOL> from collections import OrderedDict , MutableMapping as DictMixin <EOL> def decode ( x ) : <EOL> return x . decode ( ) <EOL> def decode_iter ( itr ) : <EOL> for x in itr : <EOL> yield x . decode ( ) <EOL> def decode_with ( x , encoding ) : <EOL> return x . decode ( encoding ) <EOL> else : <EOL> from six import get_unbound_function <EOL> from operator import div as operator_div <EOL> from itertools import izip , imap , ifilter <EOL> def exc_message ( e ) : <EOL> return e [ <NUM_LIT:0> ] <EOL> cmp = cmp <EOL> from theano . compat . python2x import DictMixin , OrderedDict <EOL> def decode ( x ) : <EOL> return x <EOL> def decode_iter ( x ) : <EOL> return x <EOL> def decode_with ( x , encoding ) : <EOL> return x <EOL> __all__ += [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> class DefaultOrderedDict ( OrderedDict ) : <EOL> def __init__ ( self , default_factory = None , * a , ** kw ) : <EOL> if ( default_factory is not None and <EOL> not isinstance ( default_factory , collections . Callable ) ) : <EOL> raise TypeError ( '<STR_LIT>' ) <EOL> OrderedDict . __init__ ( self , * a , ** kw ) <EOL> self . default_factory = default_factory <EOL> def __getitem__ ( self , key ) : <EOL> try : <EOL> return OrderedDict . __getitem__ ( self , key ) <EOL> except KeyError : <EOL> return self . __missing__ ( key ) <EOL> def __missing__ ( self , key ) : <EOL> if self . default_factory is None : <EOL> raise KeyError ( key ) <EOL> self [ key ] = value = self . default_factory ( ) <EOL> return value <EOL> def __reduce__ ( self ) : <EOL> if self . default_factory is None : <EOL> args = tuple ( ) <EOL> else : <EOL> args = self . default_factory , <EOL> return type ( self ) , args , None , None , list ( self . items ( ) ) <EOL> def copy ( self ) : <EOL> return self . __copy__ ( ) <EOL> def __copy__ ( self ) : <EOL> return type ( self ) ( self . default_factory , self ) <EOL> __all__ += [ '<STR_LIT>' ] </s>
