#NEWLINE# def logchunk( source , **kwargs ) : #NEWLINE# #INDENT# kwargs . setdefault ( 'offset' , 0 ) #NEWLINE# text = ( kwargs . pop ( 'text' , None ) or '\n' . join ( get_sentences ( 4 ) ) ) #NEWLINE# logchunk = LogChunk ( source = source , job = source . job , project = kwargs . project , text = text , size = len ( text ) , ** kwargs ) #NEWLINE# db . session . add ( logchunk ) #NEWLINE# return logchunk