code
stringlengths
3
6.57k
admin.add_url_rule(u'/config', view_func=ConfigView.as_view(str(u'config')
admin.add_url_rule(u'/trash', view_func=TrashView.as_view(str(u'trash')
Copyright (c)
El.mpi.WorldRank()
El.mpi.WorldSize()
StackedFD2D(N0,N1)
El.DistSparseMatrix()
A.Resize(height,width)
A.LocalHeight()
A.Reserve(6*localHeight)
xrange(localHeight)
A.GlobalRow(sLoc)
A.QueueLocalUpdate( sLoc, s, 11 )
A.QueueLocalUpdate( sLoc, s-1, -1 )
A.QueueLocalUpdate( sLoc, s+1, 2 )
A.QueueLocalUpdate( sLoc, s-N0, -3 )
A.QueueLocalUpdate( sLoc, s+N0, 4 )
A.QueueLocalUpdate( sLoc, sRel, -2 )
A.QueueLocalUpdate( sLoc, sRel-1, -1 )
A.QueueLocalUpdate( sLoc, sRel+1, -2 )
A.QueueLocalUpdate( sLoc, sRel-N0, -3 )
A.QueueLocalUpdate( sLoc, sRel+N0, 3 )
A.QueueLocalUpdate( sLoc, width-1, -10/height )
A.ProcessQueues()
StackedFD2D(n0,n1)
El.DistMultiVec()
El.Gaussian( b, 2*n0*n1, 1 )
El.Display( A, "A" )
El.Display( b, "b" )
El.LPAffineCtrl_d()
El.mpi.Time()
El.CP( A, b, ctrl )
El.mpi.Time()
El.Display( x, "x" )
El.Nrm2( b )
El.MaxNorm( b )
El.DistMultiVec()
El.Copy( b, r )
El.Multiply( El.NORMAL, -1., A, x, 1., r )
El.Display( r, "r" )
El.Nrm2( r )
El.MaxNorm( r )
El.mpi.Time()
El.LeastSquares(A,b)
El.mpi.Time()
El.Display( xLS, "x_{LS}" )
El.DistMultiVec()
El.Copy( b, rLS )
El.Multiply( El.NORMAL, -1., A, xLS, 1., rLS )
El.Display( rLS, "A x_{LS} - b" )
El.Nrm2(rLS)
El.MaxNorm(rLS)
El.Finalize()
raw_input('Press Enter to exit')
Copyright (c)
Entry()
TestSCons.TestSCons()
Environment(FOO = 'fff', BAR = 'bbb')
Entry('ddd')
Entry('$FOO')
Entry('${BAR}_$BAR')
env.Entry('eee')
env.Entry('$FOO')
env.Entry('${BAR}_$BAR')
test.pass_test()
logging.getLogger(__name__)
TypeVar('T')
TypeVar('U')
field(repr=False, default=None)
field(repr=False, default=None)
LabeledLayoutToken(NamedTuple)
NewDocumentMarker()
iter_entities_including_other(seq: List[str])
other (`O`)
enumerate(seq)
get_split_prefix_label(prefixed_tag)
len(seq)
len(seq)
get_entities_including_other(seq: List[str])
list(iter_entities_including_other(seq)
list(layout_model_label_iterable)
defaultdict(list)
strip_tag_prefix(layout_model_label.label)
get_available_labels(self)
set(self.layout_document_labels_by_label.keys()
get_layout_document_labels_by_labels(self, labels: List[str])
len(labels)
self.layout_document_labels_by_label.get(labels[0], [])
result.extend(self.layout_document_labels_by_label.get(label, [])
get_filtered_document_by_label(self, label: str)
self.get_filtered_document_by_labels([label])
LayoutDocument(pages=[])
self.get_layout_document_labels_by_labels(labels)
self.layout_document_labels_by_label.keys()
id(layout_document_label.layout_token)
LOGGER.debug('layout_tokens_to_include: %s', layout_token_ids_to_include)
set()
id(layout_document_label.layout_line)
LOGGER.debug('layout_line_ids_to_include: %s', layout_line_ids_to_include)
id(token)