MCPcopy Create free account

hub / github.com/Berkeley-CS61B/skeleton-sp21 / functions

Functions625 in github.com/Berkeley-CS61B/skeleton-sp21

↓ 65 callersMethodput
(K key, V value)
lab7/bstmap/Map61B.java:26
↓ 57 callersMethodtoString
()
proj0/game2048/Tile.java:70
↓ 55 callersMethodtilt
Tilt the board toward SIDE. Return true iff this changes the board. 1. If two Tile objects are adjacent in the direction of motion and have the sa
proj0/game2048/Model.java:109
↓ 54 callersMethodcheckModel
Checks that the static variable model is configured as described by VALUES with score attribute SCORE. @param values - a 2D array of integers describ
proj0/game2048/TestUtils.java:46
↓ 48 callersMethodupdateModel
Updates the static variable model to be the Model with board attribute as described by VALUES.
proj0/game2048/TestUtils.java:29
↓ 47 callersMethodget
(K key)
lab7/bstmap/Map61B.java:20
↓ 44 callersMethodcontainsKey
(K key)
lab7/bstmap/Map61B.java:15
↓ 41 callersMethodcheckChanged
Checks that the returned boolean of a call to the tilt method is correct. @param s - the side that was tilted (the parameter to tilt). @param expecte
proj0/game2048/TestUtils.java:64
↓ 26 callersMethodsize
()
lab7/bstmap/Map61B.java:23
↓ 22 callersMethoduniform
Returns a random real number uniformly in [0, 1). @return a random real number uniformly in [0, 1)
proj3/byow/Core/RandomUtils.java:22
↓ 19 callersFunctionGroup
(n)
proj2/testing/tester.py:112
↓ 19 callersFunctionGroup
(n)
proj2/testing/staff-runner.py:144
↓ 19 callersFunctionGroup
(n)
proj2/testing/runner.py:147
↓ 19 callersFunctionGroup
(n)
lab6/testing/tester.py:99
↓ 19 callersFunctionGroup
(n)
lab6/testing/runner.py:112
↓ 19 callersMethodsample
()
proj1/gh2/GuitarString.java:50
↓ 18 callersFunctionMatch
(patn, s)
proj2/testing/tester.py:107
↓ 18 callersFunctionMatch
(patn, s)
proj2/testing/runner.py:142
↓ 18 callersFunctionMatch
(patn, s)
lab6/testing/tester.py:94
↓ 18 callersFunctionMatch
(patn, s)
lab6/testing/runner.py:107
↓ 17 callersFunctionMatch
(patn, s)
proj2/testing/staff-runner.py:139
↓ 15 callersMethodequals
(Object o)
proj0/game2048/Model.java:186
↓ 15 callersMethodremove
(K key)
lab7/bstmap/Map61B.java:35
↓ 12 callersMethodaddTile
Adds the tile T to the board
proj0/game2048/Board.java:79
↓ 12 callersMethodcreate
Return a new tile at (ROW, COL) with value VALUE.
proj0/game2048/Tile.java:40
↓ 11 callersMethodatLeastOneMoveExists
Returns true if there are any valid moves on the board. There are two ways that there can be valid moves: 1. There is at least one empty space on the
proj0/game2048/Model.java:160
↓ 11 callersMethodclear
Removes all of the mappings from this map.
lab7/bstmap/Map61B.java:12
↓ 11 callersMethodvalue
Return the value supplied to my constructor.
proj0/game2048/Tile.java:29
↓ 10 callersMethodgameOver
Return true iff the game is over (there are no moves, or there is a tile with value 2048 on the board).
proj0/game2048/Model.java:63
↓ 10 callersMethodsize
()
proj1ec/student/Deque.java:15
↓ 9 callersMethodget
(int index)
proj1ec/student/Deque.java:19
↓ 9 callersMethodmaxTileExists
Returns true if any tile is equal to the maximum valid value. Maximum valid value is given by MAX_PIECE. Note that given a Tile object t, we get its v
proj0/game2048/Model.java:149
↓ 8 callersMethodemptySpaceExists
Returns true if at least one space on the Board is empty. Empty spaces are stored as null.
proj0/game2048/Model.java:139
↓ 8 callersMethodtic
()
proj1/gh2/GuitarString.java:43
↓ 7 callersMethodcol
Return the standard column number for square (C, R) on a board of size SIZE oriented with this Side on top.
proj0/game2048/Side.java:56
↓ 7 callersMethodjoin
Return the concatentation of FIRST and OTHERS into a File designator, analogous to the {@link java.nio.file.Paths.#get(String, String[])} method.
proj2/gitlet/Utils.java:196
↓ 7 callersMethodof
Method to create an IntList from an argument list. You don't have to understand this code. We have it here because it's convenient with testing. It's
lab2/IntList/IntList.java:60
↓ 7 callersMethodpluck
()
proj1/gh2/GuitarString.java:29
↓ 7 callersMethodrow
Return the standard row number for square (C, R) on a board of size SIZE oriented with this Side on top.
proj0/game2048/Side.java:62
↓ 7 callersMethodtoString
Method to return a string representation of an IntList
lab2/IntList/IntList.java:40
↓ 7 callersMethodvalidateNotNull
(Object x)
proj3/byow/Core/RandomUtils.java:533
↓ 7 callersMethodwaitForPositiveInt
Waits for the user on other side of Scanner to enter a positive int, and outputs that int
lab8/speed/InsertRandomSpeedTest.java:117
↓ 6 callersMethodadd
Returns the sum of a and b. Do not step into this function.
lab2/DebugExercise/DebugExercise2.java:21
↓ 6 callersMethodmax
Returns the max value in the IntList starting at L.
lab2/IntList/IntListExercises.java:37
↓ 6 callersMethodsize
Returns the size of the board.
proj0/game2048/Board.java:50
↓ 5 callersMethodfunctionalityTest
()
lab8/hashmap/TestMyHashMap.java:116
↓ 5 callersMethodnext
Return my next state. Before I am moved or merged, I am my own successor.
proj0/game2048/Tile.java:35
↓ 5 callersMethodsanityClearTest
()
lab8/hashmap/TestMyHashMap.java:25
↓ 5 callersMethodsanityContainsKeyTest
()
lab8/hashmap/TestMyHashMap.java:45
↓ 5 callersMethodsanityGetTest
()
lab8/hashmap/TestMyHashMap.java:57
↓ 5 callersMethodsanityKeySetTest
()
lab8/hashmap/TestMyHashMap.java:98
↓ 5 callersMethodsanityPutTest
()
lab8/hashmap/TestMyHashMap.java:88
↓ 5 callersMethodsanitySizeTest
()
lab8/hashmap/TestMyHashMap.java:72
↓ 5 callersMethodtile
Return the current Tile at (COL, ROW), where 0 <= ROW < size(), 0 <= COL < size(). Returns null if there is no tile there.
proj0/game2048/Board.java:67
↓ 5 callersMethodtimeRandomMap61B
Attempts to insert N random strings of length L into map, Prints time of the N insert calls, otherwise Prints a nice message about the error
lab8/speed/BucketsSpeedTest.java:71
↓ 4 callersMethoda
()
proj1ec/student/StudentArrayDeque.java:195
↓ 4 callersMethodjoin
Return the concatentation of FIRST and OTHERS into a File designator, analogous to the {@link java.nio.file.Paths.#get(String, String[])} method.
lab6/capers/Utils.java:102
↓ 4 callersFunctionreportDetails
(test, included_files, line_num)
proj2/testing/tester.py:229
↓ 4 callersFunctionreportDetails
(test, included_files, line_num)
proj2/testing/staff-runner.py:263
↓ 4 callersFunctionreportDetails
(test, included_files, line_num)
proj2/testing/runner.py:283
↓ 4 callersFunctionreportDetails
(test, included_files, line_num)
lab6/testing/tester.py:216
↓ 4 callersFunctionreportDetails
(test, included_files, line_num)
lab6/testing/runner.py:248
↓ 4 callersMethodsum
Computes sum of two ints (incorrectly). @param a Value 1 @param b Value 2 @return Sum of a and b
lab2/Arithmetic/Arithmetic.java:22
↓ 4 callersMethodtoString
()
proj0/game2048/Model.java:166
↓ 3 callersMethodaddConstant
Part A: (Buggy) mutative method that adds a constant C to each element of an IntList @param lst IntList from Lecture
lab2/IntList/IntListExercises.java:11
↓ 3 callersMethodcheckGameOver
Checks if the game is over and sets the gameOver variable appropriately.
proj0/game2048/Model.java:127
↓ 3 callersMethodcol
Return my current column.
proj0/game2048/Tile.java:24
↓ 3 callersFunctioncontents
(filename)
proj2/testing/tester.py:115
↓ 3 callersFunctioncontents
(filename)
proj2/testing/staff-runner.py:147
↓ 3 callersFunctioncontents
(filename)
proj2/testing/runner.py:150
↓ 3 callersFunctioncontents
(filename)
lab6/testing/tester.py:102
↓ 3 callersFunctioncontents
(filename)
lab6/testing/runner.py:115
↓ 3 callersMethoddivideThenRound
(int top, int bottom)
lab2/DebugExercise/DebugExercise1.java:8
↓ 3 callersMethodinsertInOrder
Returns time needed to put N strings into a Map61B in increasing order. makes use of StringUtils.nextString(String s)
lab7/bstmap/InsertInOrderSpeedTest.java:49
↓ 3 callersMethodinsertRandom
Returns time needed to put N random strings of length L into the Map61B 61bMap.
lab7/bstmap/InsertRandomSpeedTest.java:45
↓ 3 callersMethodnewColorValue
(int v, int dv, Random r)
proj3/byow/TileEngine/TETile.java:138
↓ 3 callersMethodnextString
Returns the string that comes right after S in alphabetical order. For example, if s is 'potato', this method will return 'potatp'. If the last charac
lab7/bstmap/StringUtils.java:43
↓ 3 callersMethodplay
()
proj1/gh2/GuitarPlayer.java:61
↓ 3 callersMethodprintInfoOnStackOverflow
To be called after catching a StackOverflowError Prints the error with corresponding N and L
lab7/bstmap/InsertInOrderSpeedTest.java:136
↓ 3 callersMethodprintInfoOnStackOverflow
To be called after catching a StackOverflowError Prints the error with corresponding N and L
lab7/bstmap/InsertRandomSpeedTest.java:149
↓ 3 callersMethodproduct
Computes product of two ints. @param a Value 1 @param b Value 2 @return Product of a and b
lab2/Arithmetic/Arithmetic.java:13
↓ 3 callersMethodrandomString
Returns the next random string of length LENGTH.
lab8/speed/StringUtils.java:22
↓ 3 callersMethodrandomString
Returns the next random string of length LENGTH.
lab7/bstmap/StringUtils.java:22
↓ 3 callersMethodrow
Return my current row.
proj0/game2048/Tile.java:19
↓ 3 callersMethodsetToZeroIfMaxFEL
Part B: Buggy method that sets node.first to zero if the max value in the list starting at node has the same first and last digit, for every node in L
lab2/IntList/IntListExercises.java:26
↓ 3 callersMethodstopConnection
()
proj3/byow/Networking/BYOWClient.java:57
↓ 3 callersMethodstopConnection
()
proj3/byow/Networking/BYOWServer.java:76
↓ 3 callersMethodtick
Wait for one tick (TICK milliseconds).
proj0/game2048/BoardWidget.java:212
↓ 3 callersMethodtoString
Converts the given 2D array to a String. Handy for debugging. Note that since y = 0 is actually the bottom of your world when drawn using the tile ren
proj3/byow/TileEngine/TETile.java:155
↓ 3 callersMethodtoString
()
lab6/capers/Dog.java:62
↓ 3 callersMethodvalidateNumArgs
Checks the number of arguments versus the expected number, throws a RuntimeException if they do not match. @param cmd Name of command you are validat
lab6/capers/Main.java:75
↓ 3 callersMethodvalidateSubarrayIndices
(int lo, int hi, int length)
proj3/byow/Core/RandomUtils.java:540
↓ 3 callersMethodwaitForPositiveInt
Waits for the user on other side of Scanner to enter a positive int, and outputs that int
lab7/bstmap/InsertRandomSpeedTest.java:132
↓ 2 callersFunctionUsage
()
proj2/testing/tester.py:102
↓ 2 callersFunctionUsage
()
lab6/testing/tester.py:89
↓ 2 callersMethodaccept
(File dir, String name)
proj2/gitlet/Utils.java:165
↓ 2 callersFunctioncanonicalize
(s)
proj2/testing/tester.py:197
↓ 2 callersFunctioncanonicalize
(s)
proj2/testing/staff-runner.py:231
↓ 2 callersFunctioncanonicalize
(s)
proj2/testing/runner.py:251
↓ 2 callersFunctioncanonicalize
(s)
lab6/testing/tester.py:184
next →1–100 of 625, ranked by callers