Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aleksandarmilicevic/hola
/ functions
Functions
2,467 in github.com/aleksandarmilicevic/hola
⨍
Functions
2,467
◇
Types & classes
225
↓ 274 callers
Method
get
Return the first variable in this declaration.
src/edu/mit/csail/sdg/alloy4compiler/ast/Decl.java:67
↓ 273 callers
Method
append
Append the given atom to the back of this tuple, then return the resulting new Tuple.
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTuple.java:145
↓ 269 callers
Method
get
Returns the latest value associated with the key (and returns null if none). <p> Since null is also a possible value, if you get null as the answer,
src/edu/mit/csail/sdg/alloy4/Env.java:66
↓ 240 callers
Method
add
Merge "x" into the set of entries, then return the new arity bitmask. <br> Precondition: entries and arities are consistent
src/edu/mit/csail/sdg/alloy4compiler/ast/Type.java:292
↓ 234 callers
Method
add
Add an element into the list.
src/edu/mit/csail/sdg/alloy4/SafeList.java:152
↓ 230 callers
Method
size
Returns the number of objects in this set.
src/edu/mit/csail/sdg/alloy4/ConstSet.java:67
↓ 229 callers
Method
size
Returns the number of ProductType entries in this type.
src/edu/mit/csail/sdg/alloy4compiler/ast/Type.java:416
↓ 159 callers
Method
get
(AlloyElement x)
src/edu/mit/csail/sdg/alloy4viz/VizState.java:374
↓ 154 callers
Method
put
(AlloyElement x, Integer v)
src/edu/mit/csail/sdg/alloy4viz/VizState.java:375
↓ 151 callers
Method
append
Copy the input list, append "element" to it, then return the result as an unmodifiable list.
src/edu/mit/csail/sdg/alloy4/Util.java:53
↓ 149 callers
Method
span
{@inheritDoc}
src/edu/mit/csail/sdg/alloy4compiler/ast/Sig.java:86
↓ 125 callers
Method
write
This method is called by the A4SolutionWriter when it is writing a particular sig, field, or skolem.
src/edu/mit/csail/sdg/alloy4/IA4Reporter.java:89
↓ 121 callers
Method
put
Associates the given name with the given expression in the current lexical scope.
src/edu/mit/csail/sdg/alloy4compiler/parser/CompModule.java:215
↓ 120 callers
Method
size
Returns the number of tuples in this tuple set.
src/edu/mit/csail/sdg/alloy4compiler/translator/A4TupleSet.java:67
↓ 115 callers
Method
equals
Two Err objects are equal if the type, position, and message are the same.
src/edu/mit/csail/sdg/alloy4/Err.java:57
↓ 103 callers
Method
t_tuple
This constructs a Kodkod Tuple from the list of atoms, and returns null if no such Tuple can be constructed.
src/edu/mit/csail/sdg/alloy4compiler/translator/BookExamples.java:366
↓ 94 callers
Method
yytext
Returns the text matched by the current regular expression.
src/edu/mit/csail/sdg/alloy4compiler/parser/CompLexer.java:735
↓ 92 callers
Method
merge
Returns a new type { A | A is in this, or A is in that } <p> ReturnValue.is_int == this.is_int || that.is_int <br> ReturnValue.is_bool == this.is_
src/edu/mit/csail/sdg/alloy4compiler/ast/Type.java:544
↓ 91 callers
Method
make
Constructs a ExprITE expression. @param cond - the condition formula @param left - the then-clause @param right - the else-clause
src/edu/mit/csail/sdg/alloy4compiler/ast/ExprITE.java:99
↓ 86 callers
Method
alloy_sym
(String txt, int type)
src/edu/mit/csail/sdg/alloy4compiler/parser/CompLexer.java:544
↓ 86 callers
Method
getName
Returns the name of this element.
src/edu/mit/csail/sdg/alloy4viz/AlloyElement.java:29
↓ 81 callers
Method
accept
{@inheritDoc}
src/edu/mit/csail/sdg/alloy4compiler/ast/Sig.java:92
↓ 78 callers
Method
makeConst
Makes this TempList unmodifiable, then construct a ConstList backed by this TempList.
src/edu/mit/csail/sdg/alloy4/ConstList.java:94
↓ 78 callers
Method
type
Return the type for this node; EMPTY if it is not well-typed.
src/edu/mit/csail/sdg/alloy4compiler/ast/Expr.java:56
↓ 77 callers
Method
asList
Returns an unmodifiable List with same elements as the array.
src/edu/mit/csail/sdg/alloy4/Util.java:75
↓ 77 callers
Method
make
Construct a SimAtom for the given label, or if an existing SimAtom hasn't been garbage collected yet then return that instead.
src/edu/mit/csail/sdg/alloy4compiler/sim/SimAtom.java:46
↓ 74 callers
Method
add
Appends the given element to the list, then return itself.
src/edu/mit/csail/sdg/alloy4/ConstList.java:81
↓ 73 callers
Method
and
Returns the formula (this and x) <p> this and x must both be formulas <p> Note: as a special guarantee, if x==null, then the method will return this E
src/edu/mit/csail/sdg/alloy4compiler/ast/Expr.java:320
↓ 71 callers
Method
contains
Returns true if the given object is in this set.
src/edu/mit/csail/sdg/alloy4/ConstSet.java:73
↓ 71 callers
Method
getValue
()
src/edu/mit/csail/sdg/alloy4whole/PreferencesDialog.java:130
↓ 64 callers
Method
arity
Returns the arity.
src/edu/mit/csail/sdg/alloy4compiler/translator/A4Tuple.java:41
↓ 63 callers
Method
isEmpty
Returns true if this.arity==0 or this==NONE->..->NONE
src/edu/mit/csail/sdg/alloy4compiler/ast/Type.java:130
↓ 63 callers
Method
merge
Change a.pos to be the merger of a.pos and b.pos, then change a.sym to be sym, then return a.
src/edu/mit/csail/sdg/alloy4compiler/parser/CompFilter.java:193
↓ 62 callers
Method
equals
{@inheritDoc}
src/edu/mit/csail/sdg/alloy4compiler/ast/Expr.java:144
↓ 61 callers
Method
log
Write "msg" in regular style.
src/edu/mit/csail/sdg/alloy4whole/SwingLogPanel.java:234
↓ 60 callers
Method
arity
If every entry has the same arity, that arity is returned; <br> else if some entries have different arities, we return -1; <br> else we return 0 (whic
src/edu/mit/csail/sdg/alloy4compiler/ast/Type.java:429
↓ 60 callers
Method
setEnabled
This method is called by Swing to enable/disable a component.
src/edu/mit/csail/sdg/alloy4/OurCheckbox.java:87
↓ 58 callers
Method
menuItem
Construct a new JMenuItem then add it to an existing JMenu. @param parent - the JMenu to add this JMenuItem into (or null if you don't want to add it
src/edu/mit/csail/sdg/alloy4/OurUtil.java:296
↓ 58 callers
Method
put
Associates the key with the value (which can be null).
src/edu/mit/csail/sdg/alloy4/Env.java:72
↓ 58 callers
Method
writes
Write the given number into this byte buffer, followed by a space.
src/edu/mit/csail/sdg/alloy4/ByteBuffer.java:78
↓ 55 callers
Method
visitThis
This is the start method that begins a traversal over the given expression.
src/edu/mit/csail/sdg/alloy4compiler/ast/VisitReturn.java:29
↓ 53 callers
Method
toString
Returns a String representation of this position value.
src/edu/mit/csail/sdg/alloy4/Pos.java:135
↓ 52 callers
Method
wrapMe
Wraps the calling method into a Runnable whose run() will call the calling method with (false) as the only argument.
src/edu/mit/csail/sdg/alloy4whole/SimpleGUI.java:539
↓ 51 callers
Method
cint
Convenience method that evalutes x and cast the result to be a Kodkod IntExpression. @return the integer expression - if x evaluates to an IntExpressi
src/edu/mit/csail/sdg/alloy4compiler/translator/TranslateAlloyToKodkod.java:463
↓ 50 callers
Method
size
Returns the number of tuples in this tupleset (this answer may be truncated if it cannot fit in a 32-bit integer)
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTupleset.java:122
↓ 49 callers
Method
remove
Removes the latest mapping for the key (and if the key had previous mappings, they become visible). If there are no mappings for the key, then this me
src/edu/mit/csail/sdg/alloy4/Env.java:88
↓ 48 callers
Method
entrySet
Returns an unmodifiable view of the mappings in this map.
src/edu/mit/csail/sdg/alloy4/ConstMap.java:64
↓ 48 callers
Method
x
Returns the X coordinate of the center of the node.
src/edu/mit/csail/sdg/alloy4graph/GraphNode.java:215
↓ 47 callers
Method
atom
Returns the i-th atom in this Tuple.
src/edu/mit/csail/sdg/alloy4compiler/translator/A4Tuple.java:51
↓ 47 callers
Method
cset
Convenience method that evalutes x and cast the result to be a tupleset @return the tupleset - if x evaluates to a tupleset @throws ErrorFatal - if x
src/edu/mit/csail/sdg/alloy4compiler/sim/SimInstance.java:400
↓ 46 callers
Method
close
Attempt to close the file/stream/reader/writer and return true if and only if we successfully closed it. (If object==null, we return true right away)
src/edu/mit/csail/sdg/alloy4/Util.java:123
↓ 46 callers
Method
getWidth
Returns the node width.
src/edu/mit/csail/sdg/alloy4graph/GraphNode.java:266
↓ 46 callers
Method
ks
(int keyCode)
src/edu/mit/csail/sdg/alloy4/OurSyntaxWidget.java:398
↓ 45 callers
Method
set
Modifies the given Graphics2D object to use the line style representing by this object. <p> NOTE: as a special guarantee, if gr2d==null, then this met
src/edu/mit/csail/sdg/alloy4graph/Artist.java:115
↓ 44 callers
Method
arity
If this tupleset is empty, then return 0, else return the arity of every tuple in this tupleset.
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTupleset.java:99
↓ 44 callers
Method
make
Given a node, call the visitor to dump its text out, then return its name.
src/edu/mit/csail/sdg/alloy4compiler/translator/TranslateKodkodToJava.java:180
↓ 43 callers
Method
cset
Convenience method that evaluаtes x and cast the result to be a Kodkod Expression. @return the expression - if x evaluates to an Expression @throws Er
src/edu/mit/csail/sdg/alloy4compiler/translator/TranslateAlloyToKodkod.java:489
↓ 41 callers
Method
add
Add the given rectangle to the list of rectangles in this space.
src/edu/mit/csail/sdg/alloy4graph/AvailableSpace.java:54
↓ 41 callers
Method
equals
Two sets are equal if they have the same name and the same type.
src/edu/mit/csail/sdg/alloy4viz/AlloySet.java:78
↓ 41 callers
Method
equals
(Object obj)
src/edu/mit/csail/sdg/alloy4compiler/translator/PartialInstance.java:55
↓ 41 callers
Method
pick
(String label, String tooltip)
src/edu/mit/csail/sdg/alloy4viz/VizState.java:406
↓ 40 callers
Method
longsize
Returns the number of tuples in this tupleset (this answer will never overflow)
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTupleset.java:127
↓ 39 callers
Method
getAttribute
Returns the value associated with the given attribute name; if the attribute doesn't exist, return "".
src/edu/mit/csail/sdg/alloy4/XMLNode.java:469
↓ 38 callers
Method
indexOf
Finds the first occurrence of <b>small</b> within <b>big</b>. @param big - the String that we want to perform the search on @param small - the pattern
src/edu/mit/csail/sdg/alloy4/Util.java:507
↓ 37 callers
Method
options
Returns the options for the external command-line solver to use (or empty array if this solver does not use an external commandline solver)
src/edu/mit/csail/sdg/alloy4compiler/translator/A4Options.java:73
↓ 36 callers
Method
is
Returns true if the type of this element is equal to the given type.
src/edu/mit/csail/sdg/alloy4/XMLNode.java:443
↓ 35 callers
Method
get
Return the i-th atom from this tuple.
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTuple.java:109
↓ 35 callers
Method
shape
Returns the node shape (or null if the node is a dummy node).
src/edu/mit/csail/sdg/alloy4graph/GraphNode.java:227
↓ 34 callers
Method
canon
Returns the canonical absolute path for a file. If an IO error occurred, or if the file doesn't exist yet, we will at least return a noncanonical but
src/edu/mit/csail/sdg/alloy4/Util.java:249
↓ 34 callers
Method
cint
Convenience method that evalutes x and cast the result to be a int. @return the int - if x evaluates to an int @throws ErrorFatal - if x does not eval
src/edu/mit/csail/sdg/alloy4compiler/sim/SimInstance.java:388
↓ 33 callers
Method
assignAction
(String actionName, KeyStroke... keys)
src/edu/mit/csail/sdg/alloy4/OurSyntaxWidget.java:401
↓ 33 callers
Method
consume
(KeyEvent e)
src/edu/mit/csail/sdg/alloy4whole/SimpleGUI.java:2432
↓ 33 callers
Method
debug_message
Write a debugging message to System.err for the debugging version of the parser. @param mess the text of the debugging message.
src/java_cup/runtime/lr_parser.java:636
↓ 32 callers
Method
a2k
Returns an unmodifiable copy of the map from each Sig/Field/Skolem/Atom to its corresponding Kodkod expression.
src/edu/mit/csail/sdg/alloy4compiler/translator/A4Solution.java:544
↓ 32 callers
Method
empty
Returns true if this is empty.
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTupleset.java:117
↓ 32 callers
Method
getLength
Query the current length of the log.
src/edu/mit/csail/sdg/alloy4whole/SwingLogPanel.java:340
↓ 32 callers
Method
makeH
Make a JPanel using horizontal BoxLayout, and add the components to it (each component will be center-aligned). <br> If a component is Color, it's the
src/edu/mit/csail/sdg/alloy4/OurUtil.java:195
↓ 32 callers
Method
trim
(String str, int maxSize)
src/edu/mit/csail/sdg/alloy4/Util.java:573
↓ 31 callers
Method
make
Return an unmodifiable empty list.
src/edu/mit/csail/sdg/alloy4/ConstList.java:114
↓ 31 callers
Method
setText
Change the entire text to the given text (and sets the modified flag)
src/edu/mit/csail/sdg/alloy4/OurSyntaxWidget.java:494
↓ 31 callers
Method
y
Returns the Y coordinate of the center of the node.
src/edu/mit/csail/sdg/alloy4graph/GraphNode.java:218
↓ 30 callers
Method
cb
(String key, HOLTranslation tr, Serializable... objs)
src/edu/mit/csail/sdg/alloy4whole/SimpleReporter.java:311
↓ 30 callers
Method
encodeXMLs
Write a list of Strings into a PrintWriter, where strs[2n] are written as-is, and strs[2n+1] are XML-encoded. <p> For example, if you call encodeXML(
src/edu/mit/csail/sdg/alloy4/Util.java:473
↓ 30 callers
Method
getFields
Return the list of fields as a combined unmodifiable list (without telling you which fields are declared to be disjoint)
src/edu/mit/csail/sdg/alloy4compiler/ast/Sig.java:583
↓ 30 callers
Method
onMac
Returns true iff running on Mac OS X.
src/edu/mit/csail/sdg/alloy4/Util.java:530
↓ 29 callers
Method
addAll
Add a collection of elements into the list.
src/edu/mit/csail/sdg/alloy4/SafeList.java:159
↓ 29 callers
Method
getText
Returns the text if this is a text node, returns "" otherwise.
src/edu/mit/csail/sdg/alloy4/XMLNode.java:440
↓ 29 callers
Method
k2pos
Associate the given formula with the given expression, then return the formula as-is.
src/edu/mit/csail/sdg/alloy4compiler/translator/TranslateAlloyToKodkod.java:158
↓ 29 callers
Method
type
Returns the type constructed by taking the product for each sig in this tuple.
src/edu/mit/csail/sdg/alloy4compiler/translator/A4Tuple.java:44
↓ 28 callers
Method
get
Returns the i-th tuple, or null if no such tuple.
src/edu/mit/csail/sdg/alloy4compiler/sim/SimTupleset.java:104
↓ 28 callers
Method
getHeight
Returns the node height.
src/edu/mit/csail/sdg/alloy4graph/GraphNode.java:263
↓ 28 callers
Method
join
Returns the expression (this.x) <p> 1. this must be a set or relation <p> 2. x must be a set or relation <p> 3. at most one of them can be a unary set
src/edu/mit/csail/sdg/alloy4compiler/ast/Expr.java:343
↓ 28 callers
Method
logBold
Write "msg" in bold style.
src/edu/mit/csail/sdg/alloy4whole/SwingLogPanel.java:237
↓ 28 callers
Method
right
If x = SOMETHING->RELATION where SOMETHING.arity==1, then return the RELATION, else return null.
src/edu/mit/csail/sdg/alloy4compiler/translator/TranslateAlloyToKodkod.java:517
↓ 28 callers
Method
span
{@inheritDoc}
src/edu/mit/csail/sdg/alloy4compiler/parser/CompModule.java:586
↓ 27 callers
Method
clear
()
src/edu/mit/csail/sdg/alloy4viz/VizState.java:372
↓ 27 callers
Method
containsKey
Returns true if exists at least one (k, v) mapping where (k==null ? key==null : k.equals(key))
src/edu/mit/csail/sdg/alloy4/ConstMap.java:76
↓ 27 callers
Method
flush
Commits all outstanding writes (if the messages are buffered).
src/edu/mit/csail/sdg/alloy4whole/SwingLogPanel.java:384
↓ 27 callers
Method
makename
Given a node, return its name (if no name has been chosen, then make a new name)
src/edu/mit/csail/sdg/alloy4compiler/translator/TranslateKodkodToJava.java:172
↓ 27 callers
Method
setColor
Changes the current color.
src/edu/mit/csail/sdg/alloy4graph/Artist.java:74
next →
1–100 of 2,467, ranked by callers