Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Berkeley-CS61B/skeleton-sp21
/ functions
Functions
625 in github.com/Berkeley-CS61B/skeleton-sp21
⨍
Functions
625
◇
Types & classes
112
↓ 1 callers
Function
doExecute
(cmnd, dir, timeout, line_num)
lab6/testing/tester.py:146
↓ 1 callers
Function
doExecute
(cmnd, dir, timeout)
lab6/testing/runner.py:178
↓ 1 callers
Function
doTest
(test)
proj2/testing/tester.py:270
↓ 1 callers
Function
doTest
(test)
proj2/testing/staff-runner.py:304
↓ 1 callers
Function
doTest
(test)
proj2/testing/runner.py:324
↓ 1 callers
Function
doTest
(test)
lab6/testing/tester.py:257
↓ 1 callers
Function
doTest
(test)
lab6/testing/runner.py:289
↓ 1 callers
Method
draw
Draws the tile to the screen at location x, y. If a valid filepath is provided, we draw the image located at that filepath to the screen. Otherwise, w
proj3/byow/TileEngine/TETile.java:84
↓ 1 callers
Method
dump
Print useful information about this object on System.out.
proj2/gitlet/Dumpable.java:10
↓ 1 callers
Function
editDistance
(s1, s2)
proj2/testing/tester.py:122
↓ 1 callers
Function
editDistance
(s1, s2)
proj2/testing/staff-runner.py:154
↓ 1 callers
Function
editDistance
(s1, s2)
proj2/testing/runner.py:157
↓ 1 callers
Function
editDistance
(s1, s2)
lab6/testing/tester.py:109
↓ 1 callers
Function
editDistance
(s1, s2)
lab6/testing/runner.py:122
↓ 1 callers
Method
error
Return a GitletException whose message is composed from MSG and ARGS as for the String.format method.
proj2/gitlet/Utils.java:229
↓ 1 callers
Method
error
Return a RuntimeException whose message is composed from MSG and ARGS as for the String.format method.
lab6/capers/Utils.java:150
↓ 1 callers
Method
errorBadIntegerInput
Prints a nice message for the user on bad input
lab8/speed/BucketsSpeedTest.java:112
↓ 1 callers
Method
errorBadIntegerInput
Prints a nice message for the user on bad input
lab8/speed/InsertRandomSpeedTest.java:142
↓ 1 callers
Method
errorBadIntegerInput
Prints a nice message for the user on bad input
lab7/bstmap/InsertRandomSpeedTest.java:155
↓ 1 callers
Method
exp
Returns a random real number from an exponential distribution with rate λ. @param lambda the rate of the exponential distribution @return a ra
proj3/byow/Core/RandomUtils.java:341
↓ 1 callers
Method
fib
Computes the nth Fibonacci number using a slow naive recursive strategy.
lab3/timingtest/StopwatchDemo.java:10
↓ 1 callers
Method
fillWithRandomTiles
Fills the given 2D array of tiles with RANDOM tiles. @param tiles
proj3/byow/lab12/RandomWorldDemo.java:23
↓ 1 callers
Method
firstDigitEqualsLastDigit
Returns true if the last digit of x is equal to the first digit of x.
lab2/IntList/IntListExercises.java:52
↓ 1 callers
Method
getFirst
Returns the first item in the list.
lab3/timingtest/SLList.java:39
↓ 1 callers
Method
getKey
Returns one command string.
proj0/game2048/InputSource.java:9
↓ 1 callers
Method
getLast
Returns the item from the back of the list.
lab3/randomizedtest/BuggyAList.java:46
↓ 1 callers
Method
getLast
Returns the item from the back of the list.
lab3/randomizedtest/AListNoResizing.java:34
↓ 1 callers
Method
getLast
Returns the item from the back of the list.
lab3/timingtest/AList.java:45
↓ 1 callers
Method
getNewTile
Returns a candidate Tile whose row and column is in the range 0 .. SIZE-1.
proj0/game2048/InputSource.java:13
↓ 1 callers
Method
getNextKey
()
proj3/byow/InputDemo/InputSource.java:7
↓ 1 callers
Method
incrementCharArray
Helper function for nextString. Increments the Pth position of X by one, wrapping around to 'a' if p == 'z'. If wraparound occurs, then we need to car
lab8/speed/StringUtils.java:62
↓ 1 callers
Method
incrementCharArray
Helper function for nextString. Increments the Pth position of X by one, wrapping around to 'a' if p == 'z'. If wraparound occurs, then we need to car
lab7/bstmap/StringUtils.java:59
↓ 1 callers
Method
initialize
()
proj1/gh2/GuitarPlayer.java:36
↓ 1 callers
Method
insertRandom
Returns time needed to put N random strings of length L into the hashmap.Map61B 61bMap.
lab8/speed/BucketsSpeedTest.java:56
↓ 1 callers
Method
interactWithInputString
Method used for autograding and testing your code. The input string will be a series of characters (for example, "n123sswwdasdassadwas", "n123sss:q",
proj3/byow/Core/Engine.java:40
↓ 1 callers
Method
interactWithKeyboard
Method used for exploring a fresh world. This method should handle all inputs, including inputs from the main menu.
proj3/byow/Core/Engine.java:16
↓ 1 callers
Method
isAllzs
Returns true if S is all 'z'. False for empty strings
lab8/speed/StringUtils.java:81
↓ 1 callers
Method
isAllzs
Returns true if S is all 'z'. False for empty strings
lab7/bstmap/StringUtils.java:78
↓ 1 callers
Method
isEmpty
()
proj1ec/student/Deque.java:11
↓ 1 callers
Method
isSameNumber
@param a Value 1 @param b Value 2 @return Whether a and b are the same
lab4/flik/Flik.java:10
↓ 1 callers
Method
join
(File first, String... others)
proj3/byow/Networking/BYOWClient.java:120
↓ 1 callers
Method
join
(File first, String... others)
proj3/byow/Networking/BYOWServer.java:129
↓ 1 callers
Method
keyToSide
Return the side indicated by KEY ("Up", "Down", "Left", or "Right").
proj0/game2048/Game.java:61
↓ 1 callers
Function
line_reader
(f, prefix)
proj2/testing/tester.py:254
↓ 1 callers
Function
line_reader
(f, prefix)
proj2/testing/staff-runner.py:288
↓ 1 callers
Function
line_reader
(f, prefix)
proj2/testing/runner.py:308
↓ 1 callers
Function
line_reader
(f, prefix)
lab6/testing/tester.py:241
↓ 1 callers
Function
line_reader
(f, prefix)
lab6/testing/runner.py:273
↓ 1 callers
Method
max
Returns the max of a and b. Do not step into this function.
lab2/DebugExercise/DebugExercise2.java:9
↓ 1 callers
Method
merge
Return the result of merging OTHERTILE with me after moving to (COL, ROW).
proj0/game2048/Tile.java:53
↓ 1 callers
Method
modelTiles
Return the list of all Tiles in MODEL.
proj0/game2048/BoardWidget.java:185
↓ 1 callers
Method
newTiles
Return the list of all tiles in NEXTTILES that are newly created or the result of merging of current tiles.
proj0/game2048/BoardWidget.java:200
↓ 1 callers
Method
next
()
lab7/bstmap/ULLMap.java:119
↓ 1 callers
Function
nextCommand
(full_cmnd, timeout)
proj2/testing/staff-runner.py:164
↓ 1 callers
Method
nextNumber
Buggy implementation of nextNumber!
lab1/Collatz.java:7
↓ 1 callers
Method
playGame
Clear the board and play one game, until receiving a quit or new-game request. Update the viewer with each added tile or change in the board from t
proj0/game2048/Game.java:25
↓ 1 callers
Method
playing
Return true iff we have not received a Quit command.
proj0/game2048/Game.java:18
↓ 1 callers
Method
possibleNextInput
()
proj3/byow/InputDemo/InputSource.java:8
↓ 1 callers
Method
power
This is a helper method to isPrime. You can ignore this method. It is an iterative Function to calculate a^n mod p in log time @source: https://www.g
lab2/IntList/Primes.java:49
↓ 1 callers
Method
printDeque
()
proj1ec/student/StudentArrayDeque.java:152
↓ 1 callers
Method
printInfoOnStackOverflow
To be called after catching a StackOverflowError Prints the error with corresponding N and L
lab8/speed/BucketsSpeedTest.java:104
↓ 1 callers
Method
randomTile
Picks a RANDOM tile with a 33% change of being a wall, 33% chance of being a flower, and 33% chance of being empty space.
proj3/byow/lab12/RandomWorldDemo.java:37
↓ 1 callers
Method
readContents
Return the entire contents of FILE as a byte array. FILE must be a normal file. Throws IllegalArgumentException in case of problems.
proj2/gitlet/Utils.java:96
↓ 1 callers
Method
readContents
Return the entire contents of FILE as a byte array. FILE must be a normal file. Throws IllegalArgumentException in case of problems.
lab6/capers/Utils.java:32
↓ 1 callers
Method
readKey
Return the next pending event, waiting for it as necessary. Ordinary key presses are reported as the key codes of the character pressed. In additio
proj0/game2048/GUI.java:67
↓ 1 callers
Method
readObject
Return an object of type T read from FILE, casting it to EXPECTEDCLASS. Throws IllegalArgumentException in case of problems.
proj2/gitlet/Utils.java:141
↓ 1 callers
Method
removeFirst
()
proj1ec/student/Deque.java:17
↓ 1 callers
Method
removeLast
()
proj1ec/student/Deque.java:18
↓ 1 callers
Method
render
Render TILE on G.
proj0/game2048/BoardWidget.java:139
↓ 1 callers
Method
resize
Resizes the underlying array to the target capacity.
lab3/timingtest/AList.java:28
↓ 1 callers
Method
sample
()
proj1/gh2/GuitarPlayer.java:53
↓ 1 callers
Method
sendCanvas
()
proj3/byow/Networking/BYOWServer.java:42
↓ 1 callers
Method
sendCommand
(String msg)
proj3/byow/Networking/BYOWClient.java:68
↓ 1 callers
Method
serialize
Returns a byte array containing the serialized contents of OBJ.
proj2/gitlet/Utils.java:211
↓ 1 callers
Method
serialize
Returns a byte array containing the serialized contents of OBJ.
lab6/capers/Utils.java:117
↓ 1 callers
Method
setSeed
Sets random seed to L so that results of randomString are predictable.
lab8/speed/StringUtils.java:17
↓ 1 callers
Method
setupPersistence
Does required filesystem operations to allow for persistence. (creates any necessary folders or files) Remember: recommended structure (you do not hav
lab6/capers/CapersRepository.java:33
↓ 1 callers
Method
shouldClose
()
proj3/byow/Networking/BYOWClient.java:44
↓ 1 callers
Method
shuffle
Rearranges the elements of the specified array in uniformly random order. @param a the array to shuffle @throws IllegalArgumentException if {@code a}
proj3/byow/Core/RandomUtils.java:354
↓ 1 callers
Method
size
Returns the size of the list.
lab3/timingtest/SLList.java:71
↓ 1 callers
Method
squarePrimes
Part C: (Buggy) mutative method that squares each prime element of the IntList. @param lst IntList from Lecture @return True if there was an update t
lab2/IntList/IntListExercises.java:68
↓ 1 callers
Method
startConnection
(String ip, int port)
proj3/byow/Networking/BYOWClient.java:33
↓ 1 callers
Method
startGame
()
proj3/byow/lab13/MemoryGame.java:78
↓ 1 callers
Function
stepIntoCommand
(full_cmnd)
proj2/testing/runner.py:170
↓ 1 callers
Function
stepIntoCommand
(full_cmnd)
lab6/testing/runner.py:135
↓ 1 callers
Method
sumOfElementwiseMaxes
Returns the sum of the element-wise max of a and b. For example if a = {2, 0, 10, 14} and b = {-5, 5, 20, 30}, the result should be 57.
lab2/DebugExercise/DebugExercise2.java:71
↓ 1 callers
Method
tic
()
proj1/gh2/GuitarPlayer.java:45
↓ 1 callers
Method
timeAListConstruction
()
lab3/timingtest/TimeAList.java:24
↓ 1 callers
Method
timeGetLast
()
lab3/timingtest/TimeSLList.java:24
↓ 1 callers
Method
timeInOrderHashMap
Attempts to insert N in-order strings of length L into HashMap, Prints time of the N insert calls, otherwise Prints a nice message about the error
lab8/speed/InsertInOrderSpeedTest.java:101
↓ 1 callers
Method
timeInOrderHashMap
Attempts to insert N in-order strings of length L into HashMap, Prints time of the N insert calls, otherwise Prints a nice message about the error
lab7/bstmap/InsertInOrderSpeedTest.java:119
↓ 1 callers
Method
timeInOrderTreeMap
Attempts to insert N in-order strings of length L into TreeMap, Prints time of the N insert calls, otherwise Prints a nice message about the error
lab7/bstmap/InsertInOrderSpeedTest.java:103
↓ 1 callers
Method
timeRandomHashMap
Attempts to insert N random strings of length L into a HashMap Prints time of the N insert calls, otherwise Prints a nice message about the error
lab8/speed/InsertRandomSpeedTest.java:101
↓ 1 callers
Method
timeRandomHashMap
Attempts to insert N random strings of length L into a HashMap Prints time of the N insert calls, otherwise Prints a nice message about the er
lab7/bstmap/InsertRandomSpeedTest.java:116
↓ 1 callers
Method
timeRandomTreeMap
Attempts to insert N random strings of length L into a TreeMap Prints time of the N insert calls, otherwise Prints a nice message abou
lab7/bstmap/InsertRandomSpeedTest.java:100
↓ 1 callers
Method
writeContents
Write the result of concatenating the bytes in CONTENTS to FILE, creating or overwriting it as needed. Each object in CONTENTS may be either a Stri
proj2/gitlet/Utils.java:118
↓ 1 callers
Method
writeContents
Write the result of concatenating the bytes in CONTENTS to FILE, creating or overwriting it as needed. Each object in CONTENTS may be either a Stri
lab6/capers/Utils.java:54
↓ 1 callers
Method
writeObject
Write OBJ to FILE.
proj2/gitlet/Utils.java:156
↓ 1 callers
Method
writeObject
Write OBJ to FILE.
lab6/capers/Utils.java:92
↓ 1 callers
Method
writeStory
Appends the first non-command argument in args to a file called `story` in the .capers directory. @param text String of the text to be appended to the
lab6/capers/CapersRepository.java:42
← previous
next →
201–300 of 625, ranked by callers