Next: SOFTWARE-EVOLUTION-LIBRARY/COMPONENTS/SERAPI-IO, Previous: SOFTWARE-EVOLUTION-LIBRARY/COMPONENTS/PLINY-FODDER-DATABASE, Up: Software Evolution Library Index [Contents][Index]
Class precedence list: searchable, standard-object, slot-object, t
docfixme
Return an integer representing the diff size of two sequences
Sum o + |O - M| over each diff region. o is the length of the
original diff region and m is the length of the modified diff
region.
Find snippets in the fodder database database.
ast-class AST class all snippets should match
full-stmt Limit results to full statements if non-nil.
decls Include decls in result if non-nil.
Limit results to decls if the keyword :only.
limit Limit to n randomly drawn snippets
docfixme
obj docfixme
ast-class docfixme
full-stmt docfixme
decls docfixme
limit docfixme
Find limit snippets stored in db, an in-memory database.
If limit is nil or >= the number of snippets of the desired kind,
return a list of all of them. Otherwise, return a random
subset of limit objects of the desired kind.
If ast-class is not nil, it is the name of an ast-class;
consider only ASTs of that class.
Otherwise, if full-stmt is true, consider only full statements.
If decls is :only, consider only ASTs for which the :is-decl
property is true.
Otherwise, consider all ASTs.
Return snippets from searchable similar to target
searchable docfixme
target docfixme
:predicate predicate for similarity metric
:metric a function to generate a similarity metric
:key a function called on each snippet before metric
:limit only return the many most similar snippets
:ast-class only consider snippets matching this AST class
:limit-considered limit search to many-considered random snippets
:filter limit search to snippets for which filter returns false
docfixme
docfixme
obj docfixme
predicate docfixme
metric docfixme
key docfixme
ast-class docfixme
limit-considered docfixme
limit docfixme
filter docfixme
Perform a random pick weighted by weight from ‘similar-snippets’. All other arguments are passed through to sorted snippets.
docfixme