query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the size's height
public double getHeight() { return height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getHeight() {\r\n return (int) size.y();\r\n }", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public double getHeight();", "public double getHeight();", ...
[ "0.85465586", "0.8314075", "0.8314075", "0.8314075", "0.8314075", "0.8314075", "0.8314075", "0.8257993", "0.8257993", "0.82462364", "0.81689143", "0.8114156", "0.8114156", "0.8114156", "0.8114156", "0.8114156", "0.8114156", "0.8114156", "0.8114156", "0.8114156", "0.8114156", ...
0.8035987
49
Mark the given object as finalized.
public abstract void setFinalized(Object src);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void finalizeIt();", "public void finalize()\r\n\t{\n\t}", "@Nullable\n public abstract Object finalizeComputation(@Nullable Object object);", "public void finalize();", "public abstract void finalize();", "public void finalize() {\n AppMethodBeat.i(66593);\n if (this.mJitt...
[ "0.66737676", "0.64600843", "0.6400111", "0.63881004", "0.6346596", "0.630638", "0.624606", "0.62012035", "0.6161142", "0.6109587", "0.6094996", "0.60667235", "0.6063588", "0.60619307", "0.60619307", "0.60619307", "0.60619307", "0.60619307", "0.60619307", "0.60619307", "0.606...
0.71124977
0
Change the color of the given object from oldColor to newColor.
public abstract boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setColor(Color newColor) ;", "public void setColor(Color newColor) {\n\tcolor = newColor;\n }", "public void setColor(Color newColor) {\n\t\tcolor = newColor;\n\t}", "public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }", "pu...
[ "0.749006", "0.7278994", "0.71717376", "0.69061774", "0.68647283", "0.68202525", "0.6779688", "0.6744155", "0.6563695", "0.65596205", "0.65463054", "0.6507658", "0.650493", "0.6462109", "0.6450659", "0.63953084", "0.63519955", "0.6338583", "0.6312944", "0.6307644", "0.629819"...
0.7600333
0
Gets the start address of the boot image
public abstract Address getBootImageStart();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Address getBootHeapStart();", "public abstract Address getBootImageEnd();", "protected int getStartAddress() {\r\n return (readByte(RESET_VECTOR) & 0xff) + ((readByte(RESET_VECTOR + 1) & 0xff) << 8);\r\n }", "public Address getStartAddress() {\n\t\treturn baseAddress;\n\t}", "Stri...
[ "0.7145468", "0.6851372", "0.6802024", "0.6639003", "0.65827626", "0.6492477", "0.62233615", "0.61487544", "0.6021119", "0.59524745", "0.5904328", "0.5762779", "0.56187475", "0.5592582", "0.5546848", "0.5545342", "0.5542083", "0.55397063", "0.5527506", "0.54745555", "0.546395...
0.8556947
0
End the end address of the boot image
public abstract Address getBootImageEnd();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Address getBootHeapEnd();", "public abstract Address getBootImageStart();", "protected void end() {\n\t\tRobot.Drivetrain.drive(0,0);\n\t}", "@Override\n public void end() \n {\n Robot.mDrive.DriveRobot(0, 0);\n }", "protected void end() {\n \tRobotMap.feedMotor1.set(0);\...
[ "0.68903893", "0.6597846", "0.57502145", "0.57031816", "0.56865203", "0.56842047", "0.5657449", "0.557326", "0.55702066", "0.55657965", "0.55604196", "0.55604196", "0.55604196", "0.55604196", "0.55604196", "0.55604196", "0.5549393", "0.5526238", "0.5518654", "0.5511168", "0.5...
0.8152499
0
Gets the start address of the boot heap
public abstract Address getBootHeapStart();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Address getBootHeapEnd();", "public abstract Address getBootImageStart();", "public Address getStartAddress() {\n\t\treturn baseAddress;\n\t}", "public int getStartPC() {\n\t\treturn startPC & 0xffff;\n\t}", "public int getAddressOfEntryPoint()\n throws IOException, EndOfStreamException\...
[ "0.7375915", "0.6451779", "0.62922984", "0.61725795", "0.6090522", "0.6071147", "0.6024503", "0.5802641", "0.57333153", "0.57010525", "0.56762046", "0.5612017", "0.5561912", "0.55615485", "0.5557239", "0.5462296", "0.54198426", "0.53993404", "0.53786105", "0.5367232", "0.5360...
0.8702119
0
End the end address of the boot heap
public abstract Address getBootHeapEnd();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Address getBootHeapStart();", "public abstract Address getBootImageEnd();", "void shutdown()\n {\n // Write the set of address pages, the set of empty user pages and\n // the set of pages with space remaining to a byte buffer.\n\n int size = 0;\n \n size +=...
[ "0.67376167", "0.63481814", "0.5942193", "0.5635055", "0.5622759", "0.55797005", "0.5560904", "0.555901", "0.55281746", "0.55281746", "0.55281746", "0.55281746", "0.55281746", "0.55281746", "0.5503165", "0.54902077", "0.54588574", "0.5447359", "0.5447359", "0.5447359", "0.544...
0.8577915
0
Gets the amount of memory available to the memory manager
public abstract Extent getHeapSize();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long totalMemory() {\n return Native.totalMemory(false);\n }", "long getMemory();", "long getMemory();", "public int getMemory()\n\t{\n\t\treturn memorySize;\n\t}", "public long memoriaRamDisponivel(){\n return hardware.getMemory().getAvailable();\n }", "long memoryUsed(...
[ "0.8170806", "0.7963714", "0.7963714", "0.7933321", "0.7902493", "0.7833466", "0.7796123", "0.7761934", "0.76182455", "0.76020026", "0.7591203", "0.7566141", "0.756293", "0.7561598", "0.7542391", "0.75336844", "0.75326246", "0.7473068", "0.74606866", "0.7433278", "0.74128896"...
0.0
-1
Gets the inflated monitor of an object (if any).
public abstract Monitor getInflatedMonitor(Object object, BaseVmArchitecture arch);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Object getMonitor() {\n\t\treturn monitor;\n\t}", "public Object getMonitor() {\n\t\treturn this.monitor;\n\t}", "public abstract Parts getMonitor();", "public MonitorType getMonitorType() {\n return monitorType;\n }", "public int getIdMonitor() {\n return idMonitor;\n }", "pu...
[ "0.7076388", "0.69911236", "0.5918685", "0.5698817", "0.5685497", "0.5662055", "0.5620453", "0.56136346", "0.55051595", "0.54880697", "0.51717514", "0.51514137", "0.5125491", "0.51087826", "0.50237334", "0.5019573", "0.5016313", "0.5007689", "0.4983125", "0.4953359", "0.49200...
0.7948449
0
Stop and block all threads (on all processors) on a GC safe point. Only the calling thread (the GC thread) will continue.
public abstract void stopThreadsAtSafePoint();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void forceStop() {\n\t\tfor (int i = 0; i < worker_num; i++) {\n\t\t\tif (workThreads[i] == null)\n\t\t\t\tcontinue;\n\t\t\tworkThreads[i].interrupt();\n\t\t\tworkThreads[i] = null;\n\t\t}\n\t\tthreadPool = null;\n\t\ttaskQueue.clear();\n\t}", "public void cleanDeadThreads()\n {\n\t\tSystem.gc();\n ...
[ "0.6497969", "0.64776194", "0.62406987", "0.6223528", "0.62114495", "0.60395545", "0.59955066", "0.59868145", "0.5975054", "0.59680843", "0.5864302", "0.57813525", "0.5720698", "0.57122064", "0.57058924", "0.5702608", "0.57000005", "0.5698916", "0.5691292", "0.5652986", "0.56...
0.69328713
0
Visit all roots of the object tree.
public abstract void visitAllRoots(ObjectVisitor visitor, VmHeapManager heapManager);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "public static void inOrderTraverse(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tNode node = root;\n\t\twhile (node!=null || !stack.empty()) {\n if(node!=n...
[ "0.6238733", "0.61460674", "0.6083021", "0.60009277", "0.59549636", "0.5940999", "0.5938609", "0.5922032", "0.5869212", "0.5865272", "0.58628416", "0.5845674", "0.5815565", "0.5782391", "0.57564497", "0.57470846", "0.5701997", "0.56985486", "0.5670572", "0.5658207", "0.565256...
0.6867662
0
Boot the architecture object.
public abstract void bootArchitecture(boolean emptyMMap);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@OnThread(Tag.Any)\n private void bootBluej()\n {\n initializeBoot();\n try {\n URLClassLoader runtimeLoader = new URLClassLoader(runtimeClassPath, bootLoader);\n \n // Construct a bluej.Main object. This starts BlueJ \"proper\".\n Class<?> mainClass = Class.for...
[ "0.6667256", "0.6453917", "0.64463377", "0.6360887", "0.6200039", "0.60260916", "0.5966028", "0.58688366", "0.5824195", "0.57677126", "0.56869775", "0.5654185", "0.5645782", "0.5619389", "0.5576328", "0.5566721", "0.5526447", "0.55190843", "0.54227746", "0.5415055", "0.540203...
0.68274295
0
Created by xiaowenlong on 18/8/2017.
public interface IProvider extends BaseProvider{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpu...
[ "0.621902", "0.6060641", "0.59615666", "0.5848769", "0.58418477", "0.58418477", "0.5806001", "0.57881355", "0.57454324", "0.5679951", "0.56784564", "0.5671982", "0.5657199", "0.56465125", "0.5631826", "0.5620933", "0.56173205", "0.56173205", "0.56173205", "0.56173205", "0.561...
0.0
-1
TODO Autogenerated method stub
@Override protected void initListener() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Of the first constructor Is the state available? Just a stub here.
public boolean isStateAvailable(int paraState) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InitialState() {\r\n\t\t}", "public State(){}", "private StateUtils() {}", "@Override\n public void initState() {\n \n\t//TODO: Complete Method\n\n }", "abstract public boolean init();", "private State5() {\n\t}", "public abstract boolean init();", "protected abstract boolean init...
[ "0.6931035", "0.68375677", "0.6715087", "0.67139", "0.66778743", "0.66187024", "0.66061", "0.6588916", "0.65396756", "0.64710844", "0.6433092", "0.6430955", "0.6404825", "0.6382924", "0.6345654", "0.6343706", "0.6334999", "0.6334999", "0.63224465", "0.6316444", "0.63159704", ...
0.0
-1
Of isStateAvailable Getter. Just a stub here.
public int[][] getTransitionMatrix() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isAvailable();", "public abstract boolean isAvailable();", "public boolean isStateAvailable(int paraState) {\n\t\treturn true;\n\t}", "Boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "public boo...
[ "0.77039444", "0.77039444", "0.77016544", "0.7499722", "0.74503255", "0.74503255", "0.74503255", "0.74503255", "0.7449992", "0.7417844", "0.7414524", "0.7382172", "0.73539317", "0.73518974", "0.73384523", "0.7322424", "0.72540504", "0.72540504", "0.72538596", "0.7232377", "0....
0.0
-1
Of setCurrentStates Get valid actions of the current state.
public int[] getValidActions() { return getValidActions(currentState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getValidActions() {\n return VALID_ACTIONS;\n }", "public List<boolean[]> getValidActions()\n\t{\n\t\tList<boolean[]> validActions = new ArrayList<boolean[]>(allActions);\n\t\t//TODO remove actions that contain jump if environment.mayMarioJump() is false\n\t\treturn validActi...
[ "0.66276973", "0.65545887", "0.6493592", "0.6215038", "0.6089572", "0.60677886", "0.6016111", "0.5967374", "0.58761626", "0.5851257", "0.57760537", "0.57422745", "0.5730564", "0.5721561", "0.5713174", "0.570809", "0.5671971", "0.56715155", "0.5671195", "0.56517994", "0.561589...
0.71686673
0
Of getValidActions Reset the game.
public void reset() { // SimpleTools.processTrackingOutput("Resetting TicTacToe."); for (int i = 0; i < checkerboard.length; i++) { for (int j = 0; j < checkerboard[0].length; j++) { checkerboard[i][j] = EMPTY; } // Of for j } // Of for i currentState = 0; currentRouteLength = 1; // White first ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}", "public int[] getValidActions() {\n\t\treturn getValidActions(currentState);\n\t}", "private void resetValidMove()\n ...
[ "0.664398", "0.64907396", "0.64466804", "0.6291138", "0.61908", "0.6169665", "0.61690044", "0.6163931", "0.6115357", "0.6102568", "0.6020735", "0.60067487", "0.59865266", "0.5943725", "0.5931844", "0.58979535", "0.58741456", "0.5873918", "0.58639246", "0.58568037", "0.5850716...
0.57760006
26
Of reset Get the game situation.
public int getGameSituation() { return gameSituation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetAfterGame() {\n }", "@Override\n public void resetGame() {\n\n }", "@Override\n public void reset(MiniGame game) {\n }", "private void resetGame(){\n\n }", "private void resetGame() {\n game.resetScores();\n this.dialogFlag = false;\n rollButton.setD...
[ "0.76658076", "0.7376819", "0.7363012", "0.7263422", "0.7215865", "0.72087306", "0.7184025", "0.7167749", "0.7162698", "0.7033077", "0.7007641", "0.6994992", "0.69869447", "0.6981852", "0.69779867", "0.6944283", "0.6926876", "0.6922728", "0.6915995", "0.6909849", "0.685026", ...
0.0
-1
Of getCurrentRouteStates Is the current state a final state?
public boolean isFinished() { if (gameSituation == UNFINISHED) { return false; } // Of if return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFinalState() {\n return finalState[currentState.getValue()];\n }", "public boolean isFinalState(final State state) {\n\t\treturn finalStates.contains(state);\n\t}", "public List<State> getFinalStates() {\n\t\tif (cachedFinalStates == null) {\n\t\t\tcachedFinalStates = new LinkedList<...
[ "0.6613393", "0.6024308", "0.55680525", "0.5528411", "0.5526606", "0.5508943", "0.5505009", "0.5476283", "0.54762405", "0.54208356", "0.53949547", "0.53224206", "0.53224206", "0.53224206", "0.53224206", "0.53224206", "0.53224206", "0.53224206", "0.53224206", "0.5319613", "0.5...
0.0
-1
Of isFinished Get the winner.
public int getWinner() throws Exception { if (gameSituation == UNFINISHED) { throw new Exception("Game unfinished yet, cannot get winner."); } // Of if return gameSituation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean winner() {\r\n return winner;\r\n }", "public boolean isFinished() {\n\t\tif ((player1_moves | player2_moves) == COMPLETE) {\n\t\t\tfinished = true;\n\t\t\tcurrentPlayer = '\\0';\n\t\t}\n\t\tfor (int i : winning_cases) {\n\t\t\tif ((player1_moves & i) == i) {\n\t\t\t\twinner = 'X';\n\t\t...
[ "0.6819094", "0.6758483", "0.6742033", "0.672339", "0.6606587", "0.65113866", "0.6449875", "0.6407826", "0.6379409", "0.6375103", "0.6359107", "0.63510984", "0.6341944", "0.63356155", "0.6332003", "0.63311166", "0.6314156", "0.63115036", "0.6290902", "0.62393296", "0.621577",...
0.64629143
6
Of getWinner Get valid actions of the given state.
public int[] getValidActions(int paraState) { // Step 1. Construct the checkerboard. int[][] tempCheckerboard = stateToCheckerboard(paraState); int[] tempValidActions = new int[SIZE * SIZE]; int tempNumValidActions = 0; // Step 1. Check all states. for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ArrayList<agents.Action> actionsFor(agents.State state) {\n\n ArrayList<agents.Action> legalActions = new ArrayList<agents.Action>();\n int[] board = ((State) state).getBoard();\n int blankPosition = 0;\n while (board[blankPosition] != 0) blankPosition++;\n ...
[ "0.6311692", "0.61323047", "0.60714966", "0.6023356", "0.5933484", "0.5912388", "0.58025265", "0.57984656", "0.5756727", "0.57540816", "0.5742192", "0.5734948", "0.56643957", "0.5661657", "0.55893624", "0.55698216", "0.55402493", "0.5500501", "0.5496368", "0.5474002", "0.5471...
0.5427167
25
Of getValidActions Go one step with the given action.
public void step(int paraAction) throws IllegalActionException { // Step 1. Is this action legal? int tempRow = paraAction / SIZE; int tempColumn = paraAction % SIZE; if (checkerboard[tempRow][tempColumn] != EMPTY) { System.out.println("The checkerboard state is: " + Arrays.deepToString(checkerboard)); th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getValidActionsTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 6643 };\n\n\t\tint[] tempResultArray;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempResultArray = tempEnvironment.getValidActions(tempTestStates[i]);\n\t\t...
[ "0.57666147", "0.57427406", "0.5741162", "0.5718773", "0.57117635", "0.55471325", "0.55257547", "0.5508923", "0.5445909", "0.5426014", "0.54076415", "0.53779525", "0.535552", "0.534268", "0.5270795", "0.52272403", "0.5215759", "0.5213977", "0.5159851", "0.51562417", "0.514518...
0.48790807
35
Of step Convert as state to a checkerboard.
public int[][] stateToCheckerboard(int paraState) { int[][] resultCheckerboard = new int[SIZE][SIZE]; int tempValue = paraState; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { resultCheckerboard[i][j] = (tempValue % SIZE); tempValue /= SIZE; } // Of for j } // Of for i retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stateCheckerboardConvertionTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 17087 };\n\n\t\tint tempState;\n\t\tint[][] tempCheckerboard;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempCheckerboard = tempEnvironment.stat...
[ "0.7139349", "0.6814071", "0.5916615", "0.5404535", "0.53456384", "0.5314295", "0.5306421", "0.52896863", "0.52495193", "0.52420396", "0.5205805", "0.52057046", "0.5193636", "0.51736856", "0.51390016", "0.5137358", "0.50959355", "0.5076431", "0.50736547", "0.5072042", "0.5067...
0.6169785
2
Of stateToCheckerboard Convert as state to a checkerboard.
public String stateToCheckerboardString(int paraState) { int[][] tempCheckerboard = stateToCheckerboard(paraState); String resultString = "\r\n"; //resultString += "Checkerboard state: \r\n"; for (int i = 0; i < tempCheckerboard.length; i++) { for (int j = 0; j < tempCheckerboard[0].length; j++) { if (te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stateCheckerboardConvertionTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 17087 };\n\n\t\tint tempState;\n\t\tint[][] tempCheckerboard;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempCheckerboard = tempEnvironment.stat...
[ "0.7120906", "0.661587", "0.6335837", "0.5584998", "0.55728334", "0.51386076", "0.51259226", "0.5123811", "0.509091", "0.50477135", "0.5034861", "0.50162035", "0.4950549", "0.4910697", "0.49057177", "0.48807058", "0.48526734", "0.480927", "0.48048028", "0.479971", "0.4746367"...
0.56947535
3
Of stateToCheckerboardString Convert a checkerboard to a state.
private int checkerboardToState(int[][] paraCheckerboard) { int resultState = 0; int tempExponential = 1; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { resultState += paraCheckerboard[i][j] * tempExponential; tempExponential *= SIZE; } // Of for j } // Of for i return result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String stateToCheckerboardString(int paraState) {\n\t\tint[][] tempCheckerboard = stateToCheckerboard(paraState);\n\t\tString resultString = \"\\r\\n\";\n\t\t//resultString += \"Checkerboard state: \\r\\n\";\n\t\tfor (int i = 0; i < tempCheckerboard.length; i++) {\n\t\t\tfor (int j = 0; j < tempCheckerboard...
[ "0.6594786", "0.63187546", "0.59727037", "0.585304", "0.5758274", "0.56128484", "0.55573326", "0.54627436", "0.5322179", "0.5226553", "0.52006745", "0.51608723", "0.51608723", "0.51608723", "0.51270807", "0.5123028", "0.50166875", "0.49914828", "0.49888042", "0.49706024", "0....
0.5646544
5
Of stateToCheckerboard Determine current game situation for white: WHITE, BLACK, TIE, or UNFINISHED.
public int computeGameSituation() { return computeGameSituation(checkerboard); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int gameState() {\n \tboolean check = isCheck(turn);\n \t\n \t//change this code to be some sort of checkmate detection\n \tif(check) {\n \t\t//we need to check whether there is a legal move that puts the king out of check\n \t\t//we need to loop through all pieces of the same color as the...
[ "0.65948015", "0.640109", "0.6371557", "0.6231964", "0.6207184", "0.6022786", "0.6010222", "0.59374565", "0.5882329", "0.5868622", "0.5862792", "0.5836571", "0.5771187", "0.5767563", "0.576522", "0.57454264", "0.5721251", "0.5718965", "0.57080853", "0.5701385", "0.56761247", ...
0.55476886
28
Of computeGameSituation Determine current game situation for white: WHITE, BLACK, TIE, or UNFINISHED. Maybe should check the validity of the state.
public int computeGameSituation(int paraState) { int[][] tempCheckerboard = stateToCheckerboard(paraState); // System.out.println("The checkerboard is: " + // Arrays.deepToString(tempCheckerboard)); return computeGameSituation(tempCheckerboard); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int computeGameSituation() {\n\t\treturn computeGameSituation(checkerboard);\n\t}", "public int gameState() {\n \tboolean check = isCheck(turn);\n \t\n \t//change this code to be some sort of checkmate detection\n \tif(check) {\n \t\t//we need to check whether there is a legal move that put...
[ "0.70483464", "0.6978462", "0.6456531", "0.6341541", "0.632967", "0.6321593", "0.619317", "0.6176654", "0.61246306", "0.60626245", "0.6054882", "0.60438013", "0.60227084", "0.5950726", "0.59340876", "0.58785784", "0.5862582", "0.58062834", "0.5802472", "0.57717085", "0.576656...
0.7015858
1
Of computeGameSituation Determine the given game situation for white: WHITE, BLACK, TIE, or UNFINISHED.
public static int computeGameSituation(int[][] paraCheckerboard) { // Indicate whether or not the row/column/slope is the same. boolean tempSame = false; // Step 1. Horizontal for (int i = 0; i < SIZE; i++) { if (paraCheckerboard[i][0] == EMPTY) { continue; } // Of if // A whole row is the same. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int computeGameSituation() {\n\t\treturn computeGameSituation(checkerboard);\n\t}", "public int computeGameSituation(int paraState) {\n\t\tint[][] tempCheckerboard = stateToCheckerboard(paraState);\n\t\t// System.out.println(\"The checkerboard is: \" +\n\t\t// Arrays.deepToString(tempCheckerboard));\n\n\t...
[ "0.69464916", "0.66237825", "0.6606996", "0.63896084", "0.61679804", "0.60942477", "0.60487396", "0.603842", "0.59779507", "0.59349257", "0.5911355", "0.5899332", "0.5827792", "0.5816893", "0.57854784", "0.57294035", "0.5724706", "0.57155836", "0.56946397", "0.56776536", "0.5...
0.6168438
4
Of computeGameSituation Test two methods.
public static void stateCheckerboardConvertionTest() { VTicTacToe tempEnvironment = new VTicTacToe(); int[] tempTestStates = { 0, 13, 39, 26, 17087 }; int tempState; int[][] tempCheckerboard; for (int i = 0; i < tempTestStates.length; i++) { tempCheckerboard = tempEnvironment.stateToCheckerboard(tempTestS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getGameSituationTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 17060 };\n\n\t\tint tempResult;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempResult = tempEnvironment.computeGameSituation(tempTestStates[i]);\n\t\t\tSys...
[ "0.7408421", "0.6802326", "0.67487746", "0.6638084", "0.65547776", "0.63769877", "0.6369946", "0.6356576", "0.6300964", "0.6299816", "0.6273463", "0.62718934", "0.6251817", "0.6231276", "0.61451966", "0.6129571", "0.61186624", "0.61065686", "0.6105349", "0.60812795", "0.60681...
0.0
-1
Of stateCheckerboardConvertionTest Test a method.
public static void getGameSituationTest() { VTicTacToe tempEnvironment = new VTicTacToe(); int[] tempTestStates = { 0, 13, 39, 26, 17060 }; int tempResult; for (int i = 0; i < tempTestStates.length; i++) { tempResult = tempEnvironment.computeGameSituation(tempTestStates[i]); System.out.println("The game ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stateCheckerboardConvertionTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 17087 };\n\n\t\tint tempState;\n\t\tint[][] tempCheckerboard;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempCheckerboard = tempEnvironment.stat...
[ "0.72463745", "0.63745046", "0.62059647", "0.6081054", "0.5977221", "0.5969412", "0.5946859", "0.59076047", "0.58769876", "0.58542085", "0.58454037", "0.58391595", "0.5794593", "0.5753106", "0.5726499", "0.57112783", "0.56910485", "0.5649129", "0.5618005", "0.56007725", "0.56...
0.0
-1
Of getGameSituationTest Test a method.
public static void getValidActionsTest() { VTicTacToe tempEnvironment = new VTicTacToe(); int[] tempTestStates = { 0, 13, 39, 26, 6643 }; int[] tempResultArray; for (int i = 0; i < tempTestStates.length; i++) { tempResultArray = tempEnvironment.getValidActions(tempTestStates[i]); System.out.println("The ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void winGame() {\n }", "@Test\n public void testTakeTurn() {\n// System.out.println(\"takeTurn\");\n// GameSession instance = null;\n// instance.takeTurn();\n// // TODO review the generated test code and remove the default call to fail.\n// fail(\"The te...
[ "0.7122754", "0.69624233", "0.6790132", "0.67679095", "0.65314895", "0.65215087", "0.6510334", "0.6505019", "0.6414975", "0.63856715", "0.6373562", "0.63710177", "0.63428277", "0.63149905", "0.63031745", "0.62844676", "0.62739563", "0.6266311", "0.626447", "0.6260655", "0.621...
0.0
-1
Of getValidActionsTest For display.
public String toString() { String resultString = "\r\n"; //resultString += "Checkerboard state: \r\n"; for (int i = 0; i < checkerboard.length; i++) { for (int j = 0; j < checkerboard.length; j++) { if (checkerboard[i][j] == WHITE) { resultString += "o "; } else if (checkerboard[i][j] == BLACK) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getValidActionsTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 6643 };\n\n\t\tint[] tempResultArray;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempResultArray = tempEnvironment.getValidActions(tempTestStates[i]);\n\t\t...
[ "0.70230556", "0.6720012", "0.60558987", "0.59635437", "0.5866841", "0.58107924", "0.5749508", "0.5721234", "0.5670061", "0.5597969", "0.55434203", "0.5527135", "0.5496798", "0.54900825", "0.5450978", "0.5414652", "0.5402238", "0.5393708", "0.5357089", "0.5304142", "0.5288083...
0.0
-1
Of toString For unit test.
public static void main(String args[]) { System.out.println("\r\ngetGameSituationTest()"); getGameSituationTest(); System.out.println("\r\nstateCheckerboardConvertionTest()"); stateCheckerboardConvertionTest(); System.out.println("\r\ngetValidActionsTest()"); getValidActionsTest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testToString() {\n }", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toS...
[ "0.78094923", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", "0.7702449", ...
0.0
-1
/set the save up files directory
public static void setDefaultPath(String path) { PATH = path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n ...
[ "0.6793049", "0.65889025", "0.6536632", "0.6516336", "0.6445017", "0.6432052", "0.63593554", "0.6338352", "0.6326414", "0.6272113", "0.62719953", "0.6249716", "0.6232041", "0.6189157", "0.6188114", "0.6147103", "0.61417603", "0.61331856", "0.6119732", "0.61187524", "0.6107219...
0.0
-1
Sets up a uri matcher for search suggestion and shortcut refresh queries.
private static UriMatcher buildUriMatcher() { UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH); matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY, SEARCH_SUGGEST); matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", SEARCH_SUGGEST); matcher.addURI(AUTHORITY, SearchM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static UriMatcher buildUriMatcher(){\r\n UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);\r\n matcher.addURI(AUTHORITY, \"task\", LIST_TASK);\r\n matcher.addURI(AUTHORITY, \"task/#\", ITEM_TASK);\r\n return matcher;\r\n }", "private static UriMatcher buildUriMatche...
[ "0.7129261", "0.6921357", "0.6778768", "0.6732481", "0.6682457", "0.6522157", "0.647808", "0.6258068", "0.61746806", "0.60199755", "0.57745963", "0.5596773", "0.55903673", "0.55671823", "0.54677117", "0.54473144", "0.53396446", "0.52932274", "0.5228242", "0.51568455", "0.5083...
0.7373394
0
All queries for this provider are for the search suggestion and shortcut refresh mime type.
@Override public String getType(Uri uri) { switch (sURIMatcher.match(uri)) { case SEARCH_SUGGEST: return SearchManager.SUGGEST_MIME_TYPE; case SHORTCUT_REFRESH: return SearchManager.SHORTCUT_MIME_TYPE; default: throw new IllegalArgumentException("Unknown URL " + uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \...
[ "0.5742079", "0.5564495", "0.55229807", "0.5378884", "0.53779167", "0.5372541", "0.535279", "0.53523403", "0.5330596", "0.5251861", "0.5251861", "0.52412784", "0.52326393", "0.52180386", "0.52169013", "0.519995", "0.5179282", "0.5158837", "0.51369613", "0.51346517", "0.512268...
0.4816777
95
Use this factory method to create a new instance of this fragment using the provided parameters.
public static SubmitPromptFragment newInstance(int sectionNumber) { SubmitPromptFragment fragment = new SubmitPromptFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v= inflater.inflate(R.layout.fragment_submit_prompt, container, false); user_email=(EditText) v.findViewById(R.id.userEmail); user_password=(EditTe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Get Post object and use the values to update the UI
@Override public void onDataChange(DataSnapshot dataSnapshot) { DailyPrompt dp = dataSnapshot.getValue(DailyPrompt.class); dailyPromptView.setText(dp.content); Toast.makeText(getContext(),"content "+dp.content,Toast.LENGTH_SHORT).show(); // [S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bind(Post post) {\n // Profile Picture\n // Username\n tvUsername.setText(post.getUser().getUsername());\n // Post Image\n ParseFile postImage = post.getImage();\n if (postImage != null) {\n Glide.with(context).load(postIm...
[ "0.6634134", "0.65328807", "0.6395189", "0.6393057", "0.6392863", "0.6285597", "0.62298036", "0.6201209", "0.6201008", "0.6185457", "0.6122679", "0.6122679", "0.60396004", "0.5958734", "0.5957789", "0.59500295", "0.59484285", "0.5924146", "0.5886274", "0.5836514", "0.5834009"...
0.0
-1
Getting Post failed, log a message
@Override public void onCancelled(DatabaseError databaseError) { Log.w(TAG, "loadPost:onCancelled", databaseError.toException()); // [START_EXCLUDE] // [END_EXCLUDE] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\t\tpublic void onError(Exception e) {\n\t\t\t\t\t\tLog.e(\"HttpPost\", \"LIES \" + e.getMessage());\r\n\r\n\t\t\t\t\t}", "@GET(\"posts/trois\")\n ErrorHandlingCall<Post> getPostOneWithError();", "@Override\n public void failure(RetrofitError retrofitError) {\n L...
[ "0.62673163", "0.5988436", "0.5953744", "0.58912337", "0.5879798", "0.58434856", "0.58233726", "0.5815397", "0.5748599", "0.5698072", "0.5698072", "0.5698072", "0.5698072", "0.5695987", "0.5689131", "0.56802636", "0.56691086", "0.5628018", "0.5624219", "0.561803", "0.55761683...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnSignInButtonClickedListener { // TODO: Update argument type and name void onSignInButtonClicked(String userEmail, String userPassword); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7325217", "0.72096896", "0.71358377", "0.71250176", "0.7122224", "0.7015683", "0.6978251", "0.6978251", "0.6978251", "0.69750017", "0.69684523", "0.6966373", "0.6961696", "0.69543165", "0.6944402", "0.6934082", "0.6930699", "0.692802", "0.69235384", "0.69122416", "0.690326...
0.0
-1
TODO: Update argument type and name
void onSignInButtonClicked(String userEmail, String userPassword);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
TODO Autogenerated method stub
@Override public Element bind(String arg0, final String arg1) { final Element e[] = { null }; final Comunitat c[] = { null }; final String comunitat = arg1.substring(0, arg1.indexOf('&')); final String element = arg1.substring(arg1.indexOf('&') + 1); JPA.withTransaction(new F.Callback0() { @Override pu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public String javascriptUnbind() { return (this.comunitat.nif + "&" + this.codi); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String unbind(String arg0) { return (this.comunitat.nif + "&" + this.codi); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void borrarElement(Element element) throws Exception { EntityManager em = JPA.em(); ElementPK pk = new ElementPK(); pk.setCodi(element.codi); pk.setComunitat(element.comunitat.nif); Element actorToBeRemoved = em.find(Element.class, pk); try { em.remove(actorToBeRemoved); em.flush(); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ metodo de prueba que pide un dato por JOptionPane y retorna el String correspondiente Reemplazar por lo que se necesiten
public String pedirDato(String mensaje) { return (JOptionPane.showInputDialog(null, mensaje,"Elija una opcion",JOptionPane.INFORMATION_MESSAGE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String pedirDato() \r\n\t{\r\n\t\treturn (JOptionPane.showInputDialog(null,\"Ingrese un dato\",\"Titulo del InputDialog\",JOptionPane.INFORMATION_MESSAGE));\r\n\t}", "public String verMenu(){\r\n try {\r\n Object opcion=JOptionPane.showInputDialog(\r\n null,\r\n ...
[ "0.72887874", "0.707963", "0.68410665", "0.67737436", "0.6487041", "0.64755046", "0.6473967", "0.6398929", "0.6310123", "0.6304531", "0.62885356", "0.62659293", "0.621896", "0.6212524", "0.6211815", "0.6189409", "0.61500597", "0.6134897", "0.61243004", "0.61096567", "0.608375...
0.675064
4
Start Monday,end by sunday
@Override public List<Long> getWeekReadTimes(Long uid) { Assertions.notNull(uid, "uid must not be null!"); return miniProgramCacheManager.getWeekReadTimeData(uid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSundayFirstDay(boolean b) {\n sunday_first_day = b;\n }", "WeekdaySpec getStart();", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn SUN;\n\t\t}", "public Builder workweekStarts(DayOfWeek day) {\n\t\t\tworkweekStarts = day;\n\t\t\treturn this;\n\t\t}", "private RepeatWeek...
[ "0.70574474", "0.67828125", "0.6680233", "0.65892905", "0.6451712", "0.6391374", "0.6337181", "0.6325801", "0.62977105", "0.62948215", "0.62401503", "0.62292933", "0.61626834", "0.613575", "0.609691", "0.6086125", "0.60726565", "0.601064", "0.600747", "0.59657186", "0.5939840...
0.0
-1
Creates a new managed chef in the currently set game's universe.
public static Chef creerChef(String nom, String qualificatif, int force) { // Retrieves the current universe's controller BaseGestionnaireUnivers gestionnaireUnivers = GestionnaireUnivers.get_gestionnaireUnivers(); // Create a chef of the current universe int personnageID = nextID++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BasicCoffeeMachine createCoffeeMachine() {\n\t\tMap<CoffeeSelection, CoffeeBean> beans = new HashMap<CoffeeSelection, CoffeeBean>();\n\t\tbeans.put(CoffeeSelection.ESPRESSO, new CoffeeBean(\"My favorite espresso bean\", 1000));\n\t\tbeans.put(CoffeeSelection.FILTER_COFFEE, new CoffeeBean(\"My favorite filt...
[ "0.59379363", "0.55060846", "0.5478341", "0.5455734", "0.52867454", "0.5206525", "0.5204842", "0.5141251", "0.5113658", "0.5075081", "0.5000766", "0.49927765", "0.49927765", "0.4978239", "0.49525824", "0.49449813", "0.49337563", "0.49305135", "0.49273604", "0.49263448", "0.49...
0.54729205
3
Creates a new managed soldier in the currently set game's universe.
public static Soldat creerSoldat(String nom, int force) { // Retrieves the current universe's controller BaseGestionnaireUnivers gestionnaireUnivers = GestionnaireUnivers.get_gestionnaireUnivers(); // Create a chef of the current universe int personnageID = nextID++; Soldat crea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public LocalGame createLocalGame() {\n return new LocalGameActual();\n }", "@Override\n\tpublic Soldier copy() {\n\t\tSoldier newS = new Soldier(this.getControllingPlayerID(), this.getLocation(), this.getHpMax(), this.getHpCurrent(),\n\t\t\t\t\t\t\t\t\tthis.getOrientation(), this.getFiel...
[ "0.5802541", "0.55415", "0.54170954", "0.54137605", "0.53964597", "0.5365078", "0.53516483", "0.5332904", "0.53123", "0.5311971", "0.52948236", "0.52936035", "0.52891636", "0.5287145", "0.5285555", "0.52789646", "0.5253525", "0.51855737", "0.51794153", "0.5171189", "0.5138658...
0.0
-1
Larger is more responsive, but also less stable
@Override public void runOpMode() { robot.init(hardwareMap); telemetry.addData("Status", "DogeCV 2018.0 - Gold Align Example"); // Set up our telemetry dashboard composeTelemetry(); detector = new GoldAlignDetector(); detector.init(hardwareMap.appContext, CameraView...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void settings() { size(1200, 800); }", "private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), th...
[ "0.58250487", "0.5686547", "0.56424296", "0.5640904", "0.5623846", "0.5605469", "0.55792606", "0.55045074", "0.54732037", "0.5439883", "0.54010856", "0.53978574", "0.5340799", "0.5333581", "0.53309584", "0.5295634", "0.5257591", "0.5208839", "0.5207419", "0.51900417", "0.5131...
0.0
-1
Acquiring the angles is relatively expensive; we don't want to do that in each of the three items that need that info, as that's three times the necessary expense.
@Override public void run() { robot.angles = robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES); robot.gravity = robot.imu.getGravity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getAngles(double[] values);", "private float calculateAngles(){\n\t\t// First we will move the current angle heading into the previous angle heading slot.\n\t\tdata.PID.headings[0] = data.PID.headings[1];\n\t\t// Then, we assign the new angle heading.\n\t\tdata.PID.headings[1] = data.imu.getAngularOrientati...
[ "0.65661407", "0.6503521", "0.64638746", "0.6416871", "0.6416871", "0.6357336", "0.63313216", "0.63169885", "0.62049997", "0.62037235", "0.6188525", "0.61638415", "0.6149002", "0.61174476", "0.6115471", "0.6090669", "0.60745347", "0.6055904", "0.60541934", "0.60480636", "0.60...
0.0
-1
Method to drive on a fixed compass bearing (angle), based on encoder counts. Move will stop if either of these conditions occur: 1) Move gets to the desired position 2) Driver stops the opmode running.
public void gyroDrive ( double speed, double distance, double angle) { int newLeftTarget; int newRightTarget; int moveCounts; double max; double error; double steer; double leftSpeed; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void encoderDrive(double leftInches, double rightInches, double speed, double desiredAngle) {\n if (!doMotors)\n return;\n\n if (desiredAngle >= 0.0f) {\n motorPid.reset();\n motorPid.setSetpoint(0);\n motorPid.setOutputRange(0, speed);\n ...
[ "0.67922366", "0.66007733", "0.6457799", "0.64248097", "0.6267561", "0.6137096", "0.6129774", "0.61091185", "0.61031055", "0.60752934", "0.6031281", "0.5970532", "0.59629905", "0.5954052", "0.59333545", "0.5927801", "0.591496", "0.5904601", "0.590049", "0.5874309", "0.5836220...
0.6018897
11
Method to spin on central axis to point in a new direction. Move will stop if either of these conditions occur: 1) Move gets to the heading (angle) 2) Driver stops the opmode running.
public void gyroTurn ( double speed, double angle, double timeoutS) { eTime.reset(); // keep looping while we are still active, and not on heading. while (opModeIsActive() && (eTime.seconds() < timeoutS) && !onHeading(speed, angle, P_TURN_COEFF)) { // Update telemetry & Allow time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "private void Turn(double degrees) {\n\n // Update the target angle\n TargetAngle = NormalizeAngle(TargetAngle + degrees);\n\n // Loops until the robot has reached the target\n while (opModeIsActiv...
[ "0.63524884", "0.6199894", "0.6198574", "0.61760813", "0.6099999", "0.6026032", "0.5986196", "0.59773237", "0.59629214", "0.59602845", "0.59578264", "0.59531003", "0.5915632", "0.5912794", "0.5905117", "0.5896838", "0.5875451", "0.5874661", "0.5833867", "0.58014095", "0.58004...
0.5493195
63
Method to obtain & hold a heading for a finite amount of time Move will stop once the requested time has elapsed
public void gyroHold( double speed, double angle, double holdTime) { ElapsedTime holdTimer = new ElapsedTime(); // keep looping while we have time remaining. holdTimer.reset(); while (opModeIsActive() && (holdTimer.time() < holdTime)) { // Update telemetry & Allow time for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void move(int elapsedTime);", "public double getRolledHeading() {\n double heading = 360.0 - getRawHeading();\n if (lastHeading < 100 && heading > 300) {\n rotationAmt--;\n } else if (heading < 100 && lastHeading > 300) {\n rotationAmt++;\n }\n ...
[ "0.6544754", "0.6293712", "0.6154865", "0.6126283", "0.6086996", "0.60411316", "0.60012895", "0.59850264", "0.5979953", "0.5956157", "0.5947555", "0.5915224", "0.5915224", "0.5915224", "0.58975405", "0.5878366", "0.5826589", "0.57927364", "0.5789005", "0.5767381", "0.5750151"...
0.5382583
66
Perform one cycle of closed loop heading control.
boolean onHeading(double speed, double angle, double PCoeff) { double error ; double steer ; boolean onTarget = false ; double leftSpeed; double rightSpeed; // determine turn power based on +/- error error = getError(angle); if (Math.abs(error) <= H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void toggleLoop();", "public void cycle(){\r\n \r\n \r\n if(collision()){\r\n endtime = 1;\r\n animator.stop();\r\n }else{\r\n if(max_h == false)\r\n ch.v--;\r\n if(ch.v == 150)\r\n max_h = true;\r\n\r\n ...
[ "0.58913374", "0.58259284", "0.57376826", "0.56493765", "0.5585272", "0.5565978", "0.55151707", "0.55044556", "0.5477577", "0.547361", "0.5470497", "0.54594445", "0.5408429", "0.5389504", "0.53297687", "0.5310724", "0.5301246", "0.5301246", "0.52899456", "0.52723736", "0.5252...
0.0
-1
Create a new instance of a configuration class and check the connection with that database Return the result of the connection check
@Override public boolean isDatabaseAvailable(UserDatabase userDatabase) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public boolean createConnection(String database);", "abstract public boolean createConnection();", "private boolean connect() throws ClassNotFoundException, SQLException {\r\n\r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\tif (dbConnection == null || dbConnection.isClosed()) {\r\n\t\t\tdb...
[ "0.7005214", "0.6743744", "0.65655583", "0.65029466", "0.64859927", "0.64856106", "0.64327586", "0.642036", "0.64000034", "0.63498175", "0.6329798", "0.63219774", "0.63214326", "0.62628376", "0.6190851", "0.61787945", "0.6109132", "0.6108915", "0.6097141", "0.6094991", "0.608...
0.0
-1
Create a new instance of a configuration class and check the connection with that database return the repository of the connection
@Override public RemoteDomainRepository getDatabaseRepository (UserDatabase userDatabase) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DatabaseConfiguration {\n\n\t/**\n\t * TODO (paulo 21/01/2011 14:52:38): escrever javadoc\n\t *\n\t * @return\n\t */\n\tDatabaseTypes getDatabaseType();\n\t\n\t/**\n\t * TODO (paulo 21/01/2011 14:52:40): escrever javadoc\n\t *\n\t * @return\n\t * @throws DatabaseConfigurationException {@link Runti...
[ "0.6850794", "0.6751038", "0.6684874", "0.66790444", "0.6665983", "0.66408396", "0.649857", "0.6405627", "0.63790745", "0.6356681", "0.63350487", "0.6319055", "0.62883216", "0.62774336", "0.6273612", "0.6254534", "0.62407243", "0.62363803", "0.6234892", "0.62064713", "0.61979...
0.0
-1
the max capacity of this UDP interface is max (10 Gbit/s) / (8bytes/event)
@Override public int getMaxCapacity() { return 156250000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "public int getCapacity() {\n\t\treturn this.maxCapacity;\n\t}", "public int getMaximumCapacity() { // get the max...
[ "0.7309383", "0.7284623", "0.7223913", "0.71749157", "0.70997953", "0.700019", "0.69756806", "0.69215584", "0.69215584", "0.6895474", "0.68647367", "0.6860261", "0.68422407", "0.68422407", "0.68422407", "0.68113226", "0.6779081", "0.6748368", "0.67021227", "0.6651247", "0.662...
0.77707946
0
start or stops the event acquisition. sends apropriate vendor request to device and starts or stops the AEReader
@Override public void setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException { if ( input != null ){ input.setPaused(enable); } if ( isOpen() ){ String s = enable ? "t+\r\n" : "t-\r\n"; byte[] b = s.getBytes(); try{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "protected void start() {\n\t\thellotv.setText(\"\");\n\t\tMap<String, Object> params = new LinkedHashMap<String, Object>();\n\t\tString event = null;\n\t\tevent = SpeechConstant.ASR_START;\n\t\t\n\t\tif (enableOffline) ...
[ "0.58291054", "0.56114084", "0.5504908", "0.5389107", "0.53865725", "0.535335", "0.5295074", "0.52887446", "0.52707565", "0.5161824", "0.51478386", "0.51473033", "0.5123876", "0.512365", "0.5084191", "0.50810486", "0.5078657", "0.50758225", "0.5070789", "0.5069871", "0.503153...
0.5858878
0
set the size of the raw event packet buffer. Default is AE_BUFFER_SIZE. You can set this larger if you have overruns because your host processing (e.g. rendering) is taking too long. This call discards collected events.
@Override public void setAEBufferSize(int size) { if (size < 1000 || size > 1000000) { log.warning("ignoring unreasonable aeBufferSize of " + size + ", choose a more reasonable size between 1000 and 1000000"); return; } this.aeBufferSize = size; prefs.putInt("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setBufferSize(int arg0) {\n\n }", "void setBufferSize(int bufferSize);", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}", "@O...
[ "0.61427253", "0.608456", "0.608235", "0.5683696", "0.5657185", "0.56316197", "0.55445164", "0.55304193", "0.55159986", "0.54364693", "0.5405284", "0.5344463", "0.5282261", "0.52801114", "0.52572197", "0.5217632", "0.5127827", "0.5122123", "0.5100921", "0.50555855", "0.502395...
0.63494974
0
Resets the timestamp unwrap value, resets the USBIO pipe, and resets the AEPacketRawPool.
@Override synchronized public void resetTimestamps() { //TODO call TDS to reset timestamps }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void reset () {\n this.logic = null;\n this.lastPulse = 0;\n this.pulseDelta = 0;\n }", "public void reset(){\n ioTime=0;\n waitingTime=0;\n state=\"unstarted\";\n rem=total_CPU_time;\n ioBurstTime=0;\n cpuBurstTime=0;\n remainingCPUBurstTime=nul...
[ "0.61313134", "0.6105178", "0.5802899", "0.57695603", "0.57507527", "0.5738989", "0.57373536", "0.57345396", "0.5713779", "0.5684162", "0.5639435", "0.5635394", "0.56329757", "0.56323165", "0.56045955", "0.55926156", "0.55862415", "0.5569956", "0.5564937", "0.555668", "0.5553...
0.53192824
43
Ajoute un robot pour l'equipe et le pose sur sa base
public void addRobot(Robot robot) { this.robots.add(robot); this.vue.poserRobot(robot, getCoordBase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarRobot(Robot robot);", "public abstract void interagir(Robot robot);", "public abstract void interagir (Robot robot);", "public void agregarRobot(String nombre);", "public Atendiendo(Robot robot){\n this.robot = robot;\n }", "boolean insertRobot(Position pos, Robot rob);", "Robot ...
[ "0.7522992", "0.680174", "0.6788308", "0.675746", "0.6657215", "0.6630417", "0.6629632", "0.66161567", "0.64762104", "0.64429086", "0.64353323", "0.64283186", "0.64150107", "0.64139533", "0.63834774", "0.6357062", "0.63247454", "0.62751526", "0.62746435", "0.6257846", "0.6255...
0.67487633
4
Demande a l'utilisateur de choisir un robot parmis ceux de son equipe
public Robot choisitRobot() { List<Robot> indisponibles = new ArrayList<Robot>(); List<Robot> disponibles = new ArrayList<Robot>(); for (Robot robot : robots) { if (robot.initDep().isEmpty()) { indisponibles.add(robot); } else { disponibles.add(robot); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Robot getRobot(String nombre);", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setTe...
[ "0.63033044", "0.5788918", "0.57661396", "0.5765985", "0.57523954", "0.56772375", "0.56584436", "0.5628418", "0.5387287", "0.5366041", "0.533058", "0.53085196", "0.52764285", "0.5276126", "0.5267299", "0.5258852", "0.5248387", "0.523751", "0.52346045", "0.52333164", "0.522347...
0.6799428
0
Retourne le numero de l'equipe.
public int getEquipe() { return this.equipe; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Equipe getEquipe() {\r\n\t\treturn this.equipe;\r\n\t}", "public Equipe getEquipe() {\n return equipe;\n }", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumEq...
[ "0.66064554", "0.63407916", "0.6300834", "0.6300834", "0.6300834", "0.62035984", "0.6191831", "0.6190789", "0.6174877", "0.61740977", "0.615955", "0.6153765", "0.61441827", "0.6001536", "0.59550476", "0.5940426", "0.59373415", "0.5934233", "0.59183365", "0.5916838", "0.591321...
0.764898
0
Retourne vrai si le joueur a perdu (ie n'a plus de robots)
public boolean perdu() { return this.robots.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "@Override\n public boolean isFinished() {\n return...
[ "0.654093", "0.63986224", "0.6390034", "0.6225097", "0.60704106", "0.60651726", "0.60504735", "0.60203534", "0.60174227", "0.5984276", "0.5983541", "0.5973181", "0.5970853", "0.59576356", "0.59151584", "0.5909204", "0.5901821", "0.5883083", "0.5851736", "0.58427525", "0.58268...
0.6536452
1
Affiche le nom de l'equipe, les noms des robots et les coordonnees de la base.
@Override public String toString() { String ans = this.nom + "\n" + this.coordBase.toString() + " \n Robots : \n"; for (Robot ro : this.robots) { ans += ro.toString() + "\n"; } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printName()\n\t{\n\t\tArrayList<Robot> ar=new ArrayList<Robot>();\n\t\tIterator<Robot> it;\n\t\tint i=1;//started index\n\t\t\n\t\tar.addAll(robotHM.values());//adding all\n\t\tCollections.sort(ar);//sort by names\n\t\tit=ar.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tSystem.out.println(i+\". \...
[ "0.6098402", "0.597995", "0.59122163", "0.58958477", "0.57284117", "0.56705046", "0.5592448", "0.55842423", "0.55516106", "0.5545346", "0.5533574", "0.55157775", "0.5511943", "0.55069214", "0.5494729", "0.5477211", "0.5448351", "0.5411638", "0.54071856", "0.5403565", "0.54007...
0.71348345
0
Demande a l'utilisateur d'entre un nombre entre min et max ou renvoie un random entre min et max si l'equipe est une IA
public int secureInput(int min, int max) { if (estIa) { if (max - min <= 0) { return min; } return new Random().nextInt(max - min) + min; } return Constante.secureInput(min, max); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int aleatorio(int minimo, int maximo) {\n int aleatorio = (int) Math.floor(Math.random() * (maximo - minimo + 1) + minimo);\n return aleatorio;\n }", "private int alea(final int valeurMin,\n final int valeurMax) {\n Random r = new Random();\n retu...
[ "0.7050477", "0.65338963", "0.6385424", "0.63413167", "0.63022584", "0.6252846", "0.6230989", "0.6199048", "0.61607367", "0.6140905", "0.6083298", "0.6040076", "0.60339665", "0.60281384", "0.59965897", "0.5992834", "0.5970781", "0.59613556", "0.5954616", "0.59496987", "0.5903...
0.6000224
14
Renvoie le nombre de factory que possede l'equipe
public int getNbFacto() { return this.factories.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ProductFactory getFactory();", "Demo1Factory getDemo1Factory();", "PlanningFactory getFactory();", "protected String getFactoryID( String id ){\n return id;\n }", "public String getName() {\n return (\"Regular Factory\");\n }", "public interface UnitFactory {\n Gu...
[ "0.66826236", "0.6674382", "0.65102446", "0.648053", "0.64678717", "0.6414196", "0.6376343", "0.6314889", "0.629965", "0.6288432", "0.6285364", "0.62441236", "0.6240559", "0.6239596", "0.62350357", "0.62028027", "0.61884826", "0.6150896", "0.61321026", "0.6129066", "0.6088197...
0.0
-1
Fait perdre 5 energies a un robot aleatoire
public void perdEnergieRandom() { Random rd = new Random(); robots.get(rd.nextInt(robots.size() - 1)).perdEnergie(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void train() {\r\n\t\texp += 2;\r\n\t\tenergy -= 5;\r\n\t\tSy...
[ "0.6076081", "0.60636747", "0.5957733", "0.58972955", "0.5862138", "0.58412254", "0.58395666", "0.5806348", "0.5802053", "0.5790897", "0.5789965", "0.5740348", "0.5714532", "0.57080406", "0.56993014", "0.56975114", "0.56922865", "0.56875706", "0.56800747", "0.56658065", "0.56...
0.62451357
0
Upload Image To Specific Folder On Server
public static String uploadImage(String fileName, String serverUri, String serverFolderUploads) { HttpURLConnection connection = null; DataOutputStream outputStream = null; String pathToOurFile = fileName; String urlServer = serverUri; Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void uploadFile(HttpServletRequest request, MultipartFile file, String code) {\n\t\tREAL_PATH = request.getSession().getServletContext().getRealPath(\"/assets/images/\");\n\t\t\n\t\tlogger.info(REAL_PATH);\n\t\t\n\t\tif (!new File(REAL_PATH).exists()) {\n\t\t\tnew File(REAL_PATH).mkdirs();\n\t\t}\n\t...
[ "0.6989364", "0.6806271", "0.6651486", "0.6580909", "0.6518106", "0.64446867", "0.6151171", "0.61338073", "0.6107572", "0.6032557", "0.59963065", "0.59941196", "0.5979538", "0.59428626", "0.59329724", "0.5932128", "0.5883253", "0.58826727", "0.5876087", "0.57764304", "0.57703...
0.5831183
19
Upload Image To Specific Folder On Server
public static String uploadImage(Bitmap bitmap, String serverUri, String serverFolderUploads) { HttpURLConnection connection = null; DataOutputStream outputStream = null; String urlServer = serverUri; String lineEnd = "\r\n"; String twoHyphe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void uploadFile(HttpServletRequest request, MultipartFile file, String code) {\n\t\tREAL_PATH = request.getSession().getServletContext().getRealPath(\"/assets/images/\");\n\t\t\n\t\tlogger.info(REAL_PATH);\n\t\t\n\t\tif (!new File(REAL_PATH).exists()) {\n\t\t\tnew File(REAL_PATH).mkdirs();\n\t\t}\n\t...
[ "0.6989364", "0.6806271", "0.6651486", "0.6580909", "0.6518106", "0.64446867", "0.6151171", "0.61338073", "0.6107572", "0.6032557", "0.59963065", "0.59941196", "0.5979538", "0.59428626", "0.59329724", "0.5932128", "0.5883253", "0.58826727", "0.5876087", "0.5831183", "0.577643...
0.0
-1
Upload video To Specific Folder On Server
public static String uploadVideo(String fileName, String serverUri, String serverFolderUploads) { HttpURLConnection connection = null; DataOutputStream outputStream = null; String pathToOurFile = fileName; String urlServer = serverUri; Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void uploadvideo(View view) {\n Helper.hideSoftKeyboard(getActivity());\n //getting name for the image\n String name = hashtag.getText().toString().trim();\n\n //getting the actual path of the image\n //Uploading code\n try {\n String uploadId = UUID.rand...
[ "0.7057831", "0.6614868", "0.65239507", "0.6459067", "0.6419937", "0.6137689", "0.59337264", "0.5926715", "0.58440953", "0.58333117", "0.5823258", "0.58149064", "0.5807469", "0.58040273", "0.5771977", "0.56544703", "0.56508046", "0.5617477", "0.5557559", "0.5555738", "0.55307...
0.66040343
2
Create a DateFormatter object for displaying date in specified format.
public static String getDate(long milliSeconds, String dateFormat) { SimpleDateFormat formatter = new SimpleDateFormat(dateFormat, Locale.US); // Create a calendar object that will convert the date and time value in milliseconds to date. Calendar calendar = Calendar.getInstance(); calen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Formatter() {\n\t\t// locale the locale for weekday names.\n\t\tfinal Locale locale = Locale.ENGLISH;\n\t\tdateFormatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy 'at' HH:mm\", locale);\n\t\tweekdayFormatter = DateTimeFormatter.ofPattern(\"EEEE\", locale);\n\t}", "public DateTextFieldConfig withFormat(fi...
[ "0.63322175", "0.59888315", "0.5935337", "0.591206", "0.58610135", "0.5818848", "0.5733177", "0.5621762", "0.5550225", "0.553472", "0.5496686", "0.5468932", "0.54364765", "0.54364455", "0.5419548", "0.541809", "0.5416088", "0.5413847", "0.53985244", "0.53871524", "0.5361416",...
0.0
-1
We are calling this method to check the permission status
public static boolean isReadCallAllowed(FragmentActivity act) { //Getting the permission status int result = ContextCompat.checkSelfPermission(act, Manifest.permission.CALL_PHONE); //If permission is granted returning true if (result == PackageManager.PERMISSION_GRANTED) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void permission_check() {\n ...
[ "0.78061116", "0.77052194", "0.7644345", "0.7578227", "0.74156034", "0.728739", "0.7255468", "0.724358", "0.72018945", "0.712154", "0.71159494", "0.7043407", "0.70355487", "0.70296174", "0.7007319", "0.6995498", "0.6977545", "0.6977358", "0.6973267", "0.6969954", "0.6968984",...
0.0
-1
We are calling this method to check the permission status
public static boolean isWriteExternalStorageAllowed(FragmentActivity act) { //Getting the permission status int result = ContextCompat.checkSelfPermission(act, Manifest.permission.WRITE_EXTERNAL_STORAGE); //If permission is granted returning true if (result == PackageManager.PERMISSION_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void permission_check() {\n ...
[ "0.78061116", "0.77052194", "0.7644345", "0.7578227", "0.74156034", "0.728739", "0.7255468", "0.724358", "0.72018945", "0.712154", "0.71159494", "0.7043407", "0.70355487", "0.70296174", "0.7007319", "0.6995498", "0.6977545", "0.6977358", "0.6973267", "0.6969954", "0.6968984",...
0.0
-1
We are calling this method to check the permission status
public static boolean isReadStorageAllowed(FragmentActivity act) { //Getting the permission status int result = ContextCompat.checkSelfPermission(act, Manifest.permission.READ_EXTERNAL_STORAGE); //If permission is granted returning true if (result == PackageManager.PERMISSION_GRANTED) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void permission_check() {\n ...
[ "0.78061116", "0.77052194", "0.7644345", "0.7578227", "0.74156034", "0.728739", "0.7255468", "0.724358", "0.72018945", "0.712154", "0.71159494", "0.7043407", "0.70355487", "0.70296174", "0.7007319", "0.6995498", "0.6977545", "0.6977358", "0.6973267", "0.6969954", "0.6968984",...
0.0
-1
We are calling this method to check the permission status
public static boolean isGPSAllowed(FragmentActivity act) { //Getting the permission status int result = ContextCompat.checkSelfPermission(act, Manifest.permission.ACCESS_FINE_LOCATION); //If permission is granted returning true if (result == PackageManager.PERMISSION_GRANTED) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void permission_check() {\n ...
[ "0.780768", "0.7705898", "0.76458275", "0.7579255", "0.74163115", "0.7289032", "0.7255494", "0.7243952", "0.7202419", "0.71221095", "0.7116428", "0.70440745", "0.7035983", "0.7030622", "0.70084137", "0.69966084", "0.69780743", "0.69768894", "0.69740385", "0.6970628", "0.69696...
0.0
-1
Getting the permission status
public static boolean isWriteStorageAllowed(FragmentActivity act) { int result = ContextCompat.checkSelfPermission(act, Manifest.permission.WRITE_EXTERNAL_STORAGE); //If permission is granted returning true if (result == PackageManager.PERMISSION_GRANTED) return true; //If ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPermissionRead();", "String getPermission();", "public String getPermission()\r\n {\r\n return permission;\r\n }", "int getPermissionWrite();", "abstract public void getPermission();", "public Integer getPermission() {\n\t\treturn permission;\n\t}", "public String getPermission() {\...
[ "0.7604785", "0.754987", "0.7191839", "0.7145541", "0.71204156", "0.7099868", "0.69878936", "0.694512", "0.69233185", "0.6874021", "0.68374723", "0.682301", "0.67940533", "0.6786591", "0.676555", "0.6731508", "0.66852635", "0.6621478", "0.6618902", "0.6560233", "0.6544853", ...
0.0
-1
We are calling this method to check the permission status
public static boolean isCameraAllowed(FragmentActivity act) { //Getting the permission status int result = ContextCompat.checkSelfPermission(act, Manifest.permission.CAMERA); //If permission is granted returning true if (result == PackageManager.PERMISSION_GRANTED) return tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void permission_check() {\n ...
[ "0.78061116", "0.77052194", "0.7644345", "0.7578227", "0.74156034", "0.728739", "0.7255468", "0.724358", "0.72018945", "0.712154", "0.71159494", "0.7043407", "0.70355487", "0.70296174", "0.7007319", "0.6995498", "0.6977545", "0.6977358", "0.6973267", "0.6969954", "0.6968984",...
0.0
-1
function to get the device id
public static String getIMEI(Context context) { return Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getDeviceId();", "java.lang.String getDeviceId();", "UUID getDeviceId();", "private String getDeviceID() {\n try {\n TelephonyManager telephonyManager;\n\n telephonyManager =\n (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n\n /...
[ "0.846822", "0.84228325", "0.8385085", "0.8302315", "0.81259", "0.81259", "0.7971799", "0.79154855", "0.7893784", "0.7883696", "0.7882247", "0.7865303", "0.78188896", "0.7791044", "0.7785275", "0.774056", "0.76953423", "0.7552106", "0.7515345", "0.74854934", "0.7465328", "0...
0.0
-1
This function to convert DPs to pixels
private static int convertDpToPixel(float dp) { DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics(); float px = dp * (metrics.densityDpi / 160f); return Math.round(px); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int convertdpToPx(int dps) {\n final float scale = App.getAppContext().getResources().getDisplayMetrics().density;\n int pixels = (int) (dps * scale + 0.5f);\n return pixels;\n }", "public int GetPixelFromDips(float pixels) {\n final float scale = getResources().getDi...
[ "0.64522785", "0.62069327", "0.62069327", "0.6205767", "0.6152412", "0.6059522", "0.60393757", "0.60254765", "0.6000179", "0.59982556", "0.595276", "0.59005946", "0.58282435", "0.5739381", "0.57235193", "0.56939924", "0.56841147", "0.5643596", "0.557614", "0.5575467", "0.5552...
0.5634709
18
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.new_class_add); context = this; Intent intent = getIntent(); String type = intent.getStringExtra("type"); if("1".equals(type)){ }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == 1) { name_of_teacher.setText(data.getStringExtra("teacherName")); name_of_teacher.setTag(data.getStringExtra("uuid")); } else if (requestCode == 2) { name_of_class.setText(data.getStringExtra("clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Add a task name to the list of tombstones.
protected void addTombstone(String taskName) { if (!DatastoreServiceFactory.getDatastoreService().getActiveTransactions().isEmpty()) { // imitate the behavior in production throw new IllegalArgumentException("transactional tasks cannot be named: " + taskName); } if (!tomb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;", "public void add(Task t)\n {\n\ttoDo.add(t);\n }", "void addToList(Task task) throws InvalidCommandException;", "public void addTask(final BTask t) {\n\t\tbloc.addLast(t);\n\t}", "public void renameTask(String taskName, Task my...
[ "0.61587626", "0.6150656", "0.61191815", "0.61149263", "0.59813386", "0.59657556", "0.58732224", "0.5836968", "0.57675487", "0.57486486", "0.57016987", "0.5701532", "0.56825346", "0.5656795", "0.5656598", "0.5654435", "0.5645101", "0.56193453", "0.5615787", "0.56019366", "0.5...
0.76681525
0
Extension point to set up anything related to the current Task and Thread, like ThreadLocal variables
protected void setupTask(Task task) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ThreadLocal() {}", "public void setUp() {\n threadName = Thread.currentThread().getName();\n }", "@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\...
[ "0.68926907", "0.6570433", "0.63298446", "0.601337", "0.5955339", "0.58938354", "0.5868608", "0.58620405", "0.58340335", "0.5798405", "0.5768635", "0.57625735", "0.56917834", "0.56907445", "0.5670473", "0.5625266", "0.56101835", "0.55897605", "0.55883914", "0.55761546", "0.55...
0.62937176
3
Extension point to clean up anything related to the current Task and Thread, like ThreadLocal variables
protected void teardownTask(Task task) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void cleanup() {\n bundle.setParameter(BundleParameter.NODE_BUNDLE_ELAPSED_PARAM, accumulatedElapsed.get());\n this.dataProvider = null;\n usedClassLoader.dispose();\n usedClassLoader = null;\n //taskNotificationDispatcher.setBundle(this.bundle = null);\n this.taskList = nu...
[ "0.71233076", "0.7044316", "0.66797566", "0.66395885", "0.66372836", "0.6552077", "0.6492146", "0.64464605", "0.6335561", "0.6323371", "0.63228697", "0.62932086", "0.62931", "0.62838537", "0.62830555", "0.6240084", "0.62285364", "0.62251914", "0.6208664", "0.6208664", "0.6170...
0.64556015
7
Serializes, deserializes and executes the task
public void run(Task task) { try { // inject before serializing, to check that all fields are serializable as JSON injectionService.injectMembers(task); String s = objectMapper.writeValueAsString(task); log.info("Executing " + s); // inject after des...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TaskReturnType Run();", "@Override\n public void execute(final Task<T> task) {\n }", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n re...
[ "0.65303093", "0.64029217", "0.6397914", "0.6349826", "0.6256274", "0.62372154", "0.62212574", "0.622062", "0.61691844", "0.6090357", "0.6090357", "0.6090357", "0.60714847", "0.60316116", "0.60293823", "0.60241574", "0.60138565", "0.6010591", "0.5894376", "0.5892287", "0.5892...
0.74063087
0
Execute delayed tasks of the given type
public void runDelayedTasks(Class<? extends Task> taskClass) { log.info("Running delayed tasks..."); serializeExecutionOfTasks(delayedTasks, taskClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void executeAsync(long delayMs, Runnable task);", "public abstract void execute(Task t);", "@Override\n public void runTasks() {\n BukkitTask task1 = new BukkitRunnable() {\n long start = 0;\n long now = 0;\n\n @Override\n public void run() {\n start = now;\n now = System....
[ "0.62470347", "0.5657479", "0.555443", "0.5553281", "0.5520438", "0.54860175", "0.5485451", "0.5475089", "0.5467169", "0.53451544", "0.5341717", "0.5332392", "0.5310486", "0.53068984", "0.5297709", "0.52960724", "0.52876544", "0.52531976", "0.5232297", "0.5226146", "0.5212341...
0.6177811
1
Serialize the execution of all tasks in the queue. If one tasks create a new task, it will be executed too. This method will return when the tasks list is empty
public void serializeExecutionOfTasks(Collection<Task> tasks, Class<? extends Task> taskClass) { int tasksRun = 1; while (tasksRun > 0) { tasksRun = 0; for (Iterator<Task> it = tasks.iterator(); it.hasNext(); ) { int attempts = 0; Task t = it.next(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }", "public ArrayList<Task> getFinishedTasks(){\r\n return finished;\r\n }", "...
[ "0.64548385", "0.61380565", "0.61351115", "0.6033739", "0.5962188", "0.59431535", "0.58718705", "0.58550835", "0.58379185", "0.58118933", "0.5779981", "0.5777379", "0.57394373", "0.57213324", "0.57060057", "0.5697746", "0.56757534", "0.5662637", "0.5648283", "0.56430376", "0....
0.6104825
3
Returns the State's name
public String toString() { return "PushObstacleState"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic java.lang.String getStateName() {\n\t\treturn _state.getStateName();\n\t}", "public String getStateName() {\n return name;\n }", "String getSelectedStateName();", "public String getNewStateName() {\n\t\tstateCounter.getAndIncrement();\n\t\tString state = makeStateName(stateCount...
[ "0.857209", "0.85125947", "0.77936333", "0.76397043", "0.7322897", "0.7123637", "0.7123637", "0.7123637", "0.703015", "0.7017222", "0.7017222", "0.6995157", "0.68865377", "0.6870165", "0.6870165", "0.6870165", "0.6870165", "0.6870165", "0.6870165", "0.6870165", "0.6870165", ...
0.0
-1
Initializes the test fixture.
@BeforeEach void setUp() { testObject = new TestObject(1, "stringValue"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void init() {\n this.testMethodName = this.getTestMethodName();\n this.initialize();\n }", "@Before\n public void init() {\n }", "@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance m...
[ "0.72882044", "0.7281541", "0.72811836", "0.72547", "0.7230518", "0.7222831", "0.72018826", "0.71952087", "0.71931404", "0.71515095", "0.71432495", "0.7134718", "0.7134325", "0.7132657", "0.71119773", "0.70998466", "0.7092837", "0.70882905", "0.70714474", "0.70714474", "0.705...
0.0
-1
Test for equal property value.
@Test void testAssertPropertyReflectionEquals_equals() { assertPropertyReflectionEquals("stringProperty", "stringValue", testObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object o) {\n if (o instanceof TestElementProperty) {\n if (this == o) {\n return true;\n }\n if (value != null) {\n return value.equals(((JMeterProperty) o).getObjectValue());\n }\n }\n ...
[ "0.71675956", "0.66831696", "0.6568936", "0.6514604", "0.64192986", "0.64023435", "0.63786006", "0.63124824", "0.6287913", "0.6230566", "0.62301105", "0.6225949", "0.6195938", "0.61822426", "0.6168125", "0.6146655", "0.6115958", "0.6113818", "0.60357493", "0.60333323", "0.600...
0.5850429
32
Test for equal property value (message version).
@Test void testAssertPropertyReflectionEquals_equalsMessage() { assertPropertyReflectionEquals("a message", "stringProperty", "stringValue", testObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAssertPropertyLenientEquals_equalsMessage() {\r\n assertPropertyLenientEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\r\n }", "public void testAssertPropertyReflectionEquals_equalsMessage() {\r\n assertPropertyReflectionEquals(\"a message\", \"stringPrope...
[ "0.649992", "0.6470917", "0.6405151", "0.63374275", "0.5947742", "0.5932827", "0.5914002", "0.5862072", "0.58619654", "0.5806513", "0.5777505", "0.5751783", "0.5640932", "0.56317", "0.55724895", "0.5552187", "0.55511594", "0.55425954", "0.55356485", "0.5517898", "0.55100256",...
0.6235982
4
Test for equal property value.
@Test void testAssertPropertyLenientEquals_equals() { assertPropertyLenientEquals("stringProperty", "stringValue", testObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object o) {\n if (o instanceof TestElementProperty) {\n if (this == o) {\n return true;\n }\n if (value != null) {\n return value.equals(((JMeterProperty) o).getObjectValue());\n }\n }\n ...
[ "0.71675956", "0.66831696", "0.6568936", "0.6514604", "0.64192986", "0.64023435", "0.63786006", "0.63124824", "0.6287913", "0.6230566", "0.62301105", "0.6225949", "0.6195938", "0.6168125", "0.6146655", "0.6115958", "0.6113818", "0.60357493", "0.60333323", "0.60032946", "0.600...
0.61822426
13
Test for equal property value (message version).
@Test void testAssertPropertyLenientEquals_equalsMessage() { assertPropertyLenientEquals("a message", "stringProperty", "stringValue", testObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAssertPropertyLenientEquals_equalsMessage() {\r\n assertPropertyLenientEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\r\n }", "public void testAssertPropertyReflectionEquals_equalsMessage() {\r\n assertPropertyReflectionEquals(\"a message\", \"stringPrope...
[ "0.6501035", "0.6472326", "0.6406476", "0.62374187", "0.59490466", "0.5933179", "0.5914229", "0.5862983", "0.58628535", "0.5806853", "0.5778249", "0.57512623", "0.5640886", "0.5632631", "0.55737466", "0.55527246", "0.5552561", "0.5544223", "0.553614", "0.55188656", "0.5511963...
0.63385475
3
Test for equal primitive property value.
@Test void testAssertPropertyReflectionEquals_equalsPrimitive() { assertPropertyReflectionEquals("primitiveProperty", 1L, testObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAssertPropertyReflectionEquals_equalsPrimitive() {\r\n assertPropertyReflectionEquals(\"primitiveProperty\", 1L, testObject);\r\n }", "@Override\n public boolean equals(Object o) {\n if (o instanceof TestElementProperty) {\n if (this == o) {\n return ...
[ "0.6920388", "0.6462553", "0.6197065", "0.6170591", "0.61375433", "0.61000407", "0.6049103", "0.5981299", "0.5948726", "0.59349054", "0.59346485", "0.5922856", "0.59104127", "0.59060353", "0.59045005", "0.58674014", "0.5851378", "0.58420163", "0.58320516", "0.5815739", "0.581...
0.6729318
1
Test for different property value.
@Test void testAssertPropertyReflectionEquals_notEqualsDifferentValues() { assertFailing(() -> assertPropertyReflectionEquals("stringProperty", "xxxxxx", testObject) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }", "boolean hasValue(PropertyValue<?, ?> value);", "boolean hasProperty2();", "@Test\n public void mainTests(){\n assertTrue(property1.getPropertyId() == id1);\n if...
[ "0.6662793", "0.6644194", "0.65773183", "0.65577364", "0.6453839", "0.64033085", "0.626684", "0.6265566", "0.6160877", "0.6147289", "0.6147289", "0.6147289", "0.61330295", "0.6129642", "0.6126193", "0.61172503", "0.6101284", "0.60974884", "0.60827655", "0.6081974", "0.6079441...
0.5703361
46