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
Own Methods Creates a SearchRegistryCriteria object based on the specified Map.
private SearchRegistryCriteria createCriteria(Map criteriaMap) { SearchRegistryCriteria criteria = new SearchRegistryCriteria(); Object[] keys = criteriaMap.keySet().toArray(); for (int i=0; i<keys.length; i++) { Logger.debug( "[SubmitRegistrySearchAction.createCriteria] Setting field "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Criteria buildCriteria(Map<String, ?> fieldValues) {\r\n Criteria criteria = new Criteria();\r\n for (Iterator i = fieldValues.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();\r\n\r\n String key = e.getKey();\...
[ "0.61597943", "0.6068808", "0.587772", "0.587772", "0.58505666", "0.58501977", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "0.58224535", "...
0.8014202
0
we got a broadcast with a status of off, so keep waiting
@Override public void onDisabled() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void broadcastReadyAction() {\n Log.d(TAG, \"broadcastReadyAction start\");\n final Intent intent = new Intent();\n intent.setAction(BeaconsMonitoringService.SERVICE_READY_ACTION);\n getBaseContext().sendBroadcast(intent);\n Log.d(TAG, \"broadcastReadyAction end\");\n ...
[ "0.6371381", "0.62653035", "0.62507504", "0.6050853", "0.6049172", "0.60353315", "0.6014563", "0.6006955", "0.5955324", "0.5950235", "0.5921409", "0.59098816", "0.5885149", "0.5864137", "0.58288646", "0.5825017", "0.57942796", "0.5769612", "0.5760593", "0.5757516", "0.575338"...
0.0
-1
write custom code to on start progress
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startProgress();", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public void progressMade();", "public void onProgress(int pos);", "@Override\n public void showProgress() {\n\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void onBegin() {}...
[ "0.8156041", "0.7351512", "0.7096684", "0.70728946", "0.70159423", "0.6986402", "0.69625723", "0.69223946", "0.68467253", "0.6804253", "0.6793854", "0.67673755", "0.6722857", "0.6722857", "0.6722857", "0.67041004", "0.66995835", "0.66866696", "0.66785043", "0.66135633", "0.66...
0.0
-1
write custom code to on start progress
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startProgress();", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public void progressMade();", "public void onProgress(int pos);", "@Override\n public void showProgress() {\n\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void onBegin() {}...
[ "0.8155428", "0.735075", "0.7097578", "0.7073339", "0.7016699", "0.69874096", "0.6964475", "0.6923351", "0.6846002", "0.6805113", "0.6795762", "0.67686313", "0.6724589", "0.6724589", "0.6724589", "0.6705899", "0.6698875", "0.66878057", "0.66794974", "0.66125107", "0.6610689",...
0.0
-1
write custom code to on start progress
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startProgress();", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public void progressMade();", "public void onProgress(int pos);", "@Override\n public void showProgress() {\n\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void onBegin() {}...
[ "0.8155428", "0.735075", "0.7097578", "0.7073339", "0.7016699", "0.69874096", "0.6964475", "0.6923351", "0.6846002", "0.6805113", "0.6795762", "0.67686313", "0.6724589", "0.6724589", "0.6724589", "0.6705899", "0.6698875", "0.66878057", "0.66794974", "0.66125107", "0.6610689",...
0.0
-1
write custom code to on start progress
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startProgress();", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public void progressMade();", "public void onProgress(int pos);", "@Override\n public void showProgress() {\n\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void onBegin() {}...
[ "0.8155428", "0.735075", "0.7097578", "0.7073339", "0.7016699", "0.69874096", "0.6964475", "0.6923351", "0.6846002", "0.6805113", "0.6795762", "0.67686313", "0.6724589", "0.6724589", "0.6724589", "0.6705899", "0.6698875", "0.66878057", "0.66794974", "0.66125107", "0.6610689",...
0.0
-1
write custom code to on start progress
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startProgress();", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public void progressMade();", "public void onProgress(int pos);", "@Override\n public void showProgress() {\n\n }", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected void onBegin() {}...
[ "0.8156041", "0.7351512", "0.7096684", "0.70728946", "0.70159423", "0.6986402", "0.69625723", "0.69223946", "0.68467253", "0.6804253", "0.6793854", "0.67673755", "0.6722857", "0.6722857", "0.6722857", "0.67041004", "0.66995835", "0.66866696", "0.66785043", "0.66135633", "0.66...
0.0
-1
Puts all the Dates and corresponding profits into a TreeMap from a GameEntry List
public static TreeMap<String, Double> getAverageData(List<GameEntry> gameEntryList) { TreeMap<String, List<Double>> preprocessedDates = new TreeMap<>(); // before calculating average TreeMap<String, Double> processedDates = new TreeMap<>(); // after calculating average // Populate preprocessedD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dateHashMapSorted() {\n\t\t//array used to store the key values of the unsorted HashMap\n\t\tLocalDate[] unsortedArr = new LocalDate[SORTINGDATES_SIZE];\n\t\n\t\t//adding all the keys to unsortedArr\n\t\tint i = 0;\n\t\tfor (LocalDate key : map.keySet()) {\n\t\t\t\tunsortedArr[i++] = key;\n\t\t\t}\n\t\...
[ "0.60120595", "0.5830987", "0.5733165", "0.5492905", "0.5469079", "0.54560107", "0.53506494", "0.5302238", "0.52992195", "0.52783084", "0.525541", "0.5250376", "0.52397996", "0.5235195", "0.5216689", "0.5179967", "0.5170452", "0.5159488", "0.5153931", "0.51524764", "0.5111492...
0.65719044
0
set the interval the crawl is relaunched (default: every day)
protected void setInterval(int seconds) { interval = seconds * 1000L; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runEachMinute() {\n \n }", "public void setRefreshInterval(String interval) {\n tozAdCampaignRetrievalInterval = parseIntegerValue(interval,0);\n AppyAdService.getInstance().debugOut(TAG,\"Set refresh interval to \"+tozAdCampaignRetrievalInterval);\n }", "protected voi...
[ "0.6407348", "0.6288424", "0.6207844", "0.6140119", "0.6112342", "0.6002413", "0.5990558", "0.5972219", "0.59428406", "0.5940276", "0.5894625", "0.5826235", "0.5795792", "0.5766667", "0.5750388", "0.5740636", "0.5737203", "0.5727937", "0.57077503", "0.5704704", "0.5698229", ...
0.5792613
13
set the duration of the continuous crawl (default = 2 years)
protected void setDuraction(int seconds) { duration = seconds * 1000L; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDuration(int duration);", "public void setDuration(int val){this.duration = val;}", "public void setDuration( Long duration );", "public void setDuration(int newDuration) {\n this.duration = newDuration;\n }", "public void setDuration(int duration){\n this.duration = duration;\n ...
[ "0.6344325", "0.6099796", "0.5991327", "0.5938324", "0.58935773", "0.57722", "0.5737302", "0.57234055", "0.5698503", "0.5698503", "0.5663994", "0.5663994", "0.5639615", "0.56214565", "0.5618321", "0.56062806", "0.5581338", "0.5574516", "0.5569788", "0.55610216", "0.55051535",...
0.583562
5
get signature for content and configured signature implementation
protected byte[] getSignature() { return signatureImpl.calculate(content, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Signature getSignature();", "public abstract String getSignature();", "String getSignature();", "String getSignature();", "String getSignature();", "public abstract byte[] getSignature();", "java.lang.String getSignatureText();", "byte[] getSignatureImage();", "public interface SignatureFactory \n{...
[ "0.74056983", "0.7329026", "0.71584696", "0.71584696", "0.71584696", "0.7133794", "0.7016837", "0.69324815", "0.69229525", "0.68816686", "0.68773603", "0.68002194", "0.66779757", "0.6615996", "0.65741056", "0.6543961", "0.6504957", "0.64485264", "0.6430117", "0.6410058", "0.6...
0.72994524
2
change content to force a changed signature
protected void changeContent() { byte[] data = Arrays.copyOf(content.getContent(), content.getContent().length + 1); data[content.getContent().length] = '2'; // append one byte content.setContent(data); LOG.info("document content changed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ISModifySignature createISModifySignature();", "private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }", "void xsetSignatureText(com.microsoft.schemas.office.x2006.digsig.STSignatu...
[ "0.6329757", "0.63073266", "0.62550426", "0.6246843", "0.60776615", "0.6021065", "0.6016611", "0.59344995", "0.5916748", "0.5899649", "0.5824738", "0.58065194", "0.5774599", "0.57502896", "0.5716113", "0.5687877", "0.5685518", "0.5685518", "0.5685518", "0.56541604", "0.556101...
0.66616577
0
default parse action: add signature if successfully fetched
protected List<CrawlDatum> parse(CrawlDatum fetchDatum) { List<CrawlDatum> parseDatums = new ArrayList<CrawlDatum>(0); if (fetchDatum.getStatus() == CrawlDatum.STATUS_FETCH_SUCCESS) { CrawlDatum signatureDatum = new CrawlDatum(CrawlDatum.STATUS_SIGNATURE, 0); signatureDatum.setSignature(getSignature...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String parsePostRequest(StringTokenizer parse) {\n\t\tString fileRequested = parse.nextToken();\r\n\r\n\t\treturn null;\r\n\t}", "public abstract String getSignature();", "@RequestMapping(value = \"/cades-signature-complete\", method = {RequestMethod.POST})\n\tpublic String complete(\n\t\t@RequestParam...
[ "0.5843138", "0.5710621", "0.5706284", "0.5550971", "0.54727983", "0.53522444", "0.53177315", "0.53177315", "0.53177315", "0.53149843", "0.5263084", "0.5233942", "0.5159944", "0.5159944", "0.51454455", "0.5074136", "0.50736964", "0.50528824", "0.5033051", "0.50104344", "0.499...
0.5815163
1
default implementation to check the result state
protected boolean check(CrawlDatum datum) { if (datum.getStatus() != expectedDbStatus) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }", "boolean getResult();", "boolean getResult();", "boolean getResult();", "boolean getResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();"...
[ "0.73983383", "0.72448397", "0.72448397", "0.72448397", "0.72448397", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.7244738", "0.71748096", "0.6950447", "0.69057417", "0.678288...
0.0
-1
Sets up the board and GUI
public Display() { //Fills the board with invalid positions board = new int[17][17]; for (int i = 0; i < 17; i++) for (int j = 0; j < 17; j++) board[i][j] = -1; //Fills the center of the board with valid positions for (int i = 4; i <= 12; i++) for (int j = 4; j <= 12; j++) board[i][j]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\...
[ "0.79774475", "0.7949694", "0.76082414", "0.7529635", "0.75132203", "0.7510145", "0.7412442", "0.73742765", "0.7342881", "0.721082", "0.72035336", "0.7189667", "0.7159391", "0.7154018", "0.7116723", "0.7097022", "0.70653534", "0.7047614", "0.7027298", "0.692258", "0.69113266"...
0.65282977
79
Positions the pieces on the board depending on the amount of players playing
public int[] setUpBoard(int noOfPlayers) { switch(noOfPlayers) { //One player case 1: fillTriangle(-1, board, 1, 16, 12); return new int[] {1}; //Two players opposite to one another case 2: fillTriangle(-1, board, 1, 16, 12); fillTriangle(1, board, 4, 0, 4); return new int[] {1,4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPieces(){\r\n Pawn[] arrwPawn = new Pawn[8];\r\n for (int i=0 ; i<8 ; i++){\r\n pos.setPosition(6,i);\r\n arrwPawn[i] = new Pawn (pos , piece.Colour.WHITE);\r\n GameBoard.putPiece(arrwPawn[i]);\r\n }\r\n\r\n Pawn[] arrbPawn = new Pawn[8];\r\n for(i...
[ "0.70111114", "0.69476277", "0.68275523", "0.68051", "0.6798026", "0.6779781", "0.6776115", "0.6735578", "0.6690413", "0.6634313", "0.66174495", "0.64508027", "0.6432882", "0.64152485", "0.641355", "0.63953507", "0.6360094", "0.6329799", "0.632398", "0.63189244", "0.6317708",...
0.0
-1
Updates the board and the turn
public void update(int[][] board, int t) { this.board = board; turn = t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateBoard() {\n notifyBoardUpdate(board);\n }", "boolean updateBoard(String currentPlayerTurn, String newBoard);", "public void update() {\n System.out.println(\"\\n\\n Board: \\n\");\n System.out.println(\" \" + pos1 + \" | \" + pos2 + \" | \" + pos3 + \" \");\n ...
[ "0.78351116", "0.7488738", "0.72081333", "0.71098584", "0.6866799", "0.6857154", "0.68509626", "0.6792757", "0.6787306", "0.67726076", "0.6762991", "0.6689983", "0.66698945", "0.6643316", "0.66027546", "0.6600918", "0.6553403", "0.6550737", "0.6534703", "0.6533551", "0.652885...
0.73173213
2
Returns the game board
public int[][] getBoard() { return board; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[][] getBoard();", "String getBoard();", "private Board getBoard() {\n return gameStatus.getBoard();\n }", "public Board getBoard()\r\n {\r\n return gameBoard;\r\n }", "public Board getBoard() {\n return gameBoard;\n }", "private void getBoard() {\n gameB...
[ "0.77928126", "0.77089083", "0.76961184", "0.7691085", "0.7641054", "0.7639658", "0.75214773", "0.74758947", "0.7474971", "0.7466634", "0.7451774", "0.73883945", "0.7370452", "0.7360929", "0.7349188", "0.7343648", "0.73391646", "0.73272", "0.7308599", "0.72924834", "0.7288812...
0.7387638
12
Prompts the user to enter the number of players that will be playing on the server
public int getNoOfPlayers() { String noOfPlayers = JOptionPane.showInputDialog(null, "Please enter the number of players from 1-6", "Number of Players", JOptionPane.INFORMATION_MESSAGE); //Check to see if the entry was invalid while(!isNumber(noOfPlayers) || Integer.parseInt(noOfPlayers) < 1 || Integer.parse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int promptNumPlayers() {\r\n Object[] options = {1, 2, 3, 4};\r\n int numPlr = (int) JOptionPane.showInputDialog(\r\n null,\r\n \"How many people are playing?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n op...
[ "0.78418154", "0.77931464", "0.7668661", "0.75488335", "0.7495851", "0.7300658", "0.72041976", "0.69144684", "0.67806387", "0.6703635", "0.6601608", "0.6558993", "0.6510605", "0.64879966", "0.6412197", "0.64087176", "0.6396889", "0.6357791", "0.6341875", "0.62996507", "0.6287...
0.6898775
8
Checks to see if a given String is a nonnegative number
public boolean isNumber(String str) { for(int i = 0; i < str.length(); i++) { if(!Character.isDigit(str.charAt(i))) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final boolean isNumberNotNegative(String str) {\n\t\treturn isNumber(str,false);\n\t}", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Cha...
[ "0.7693776", "0.7615872", "0.75708514", "0.7271431", "0.72654784", "0.7220075", "0.72040665", "0.7162199", "0.7089205", "0.7087527", "0.707254", "0.7049977", "0.702195", "0.70136744", "0.6997431", "0.6976338", "0.6963144", "0.6930662", "0.6922398", "0.6912647", "0.68971586", ...
0.6538426
59
Prompts the user to enter the maximum amount of time that the server will wait before sending a timeout
public int getTimeOut() { String time = JOptionPane.showInputDialog(null, "Please enter the timeout amount in milliseconds: ", "Set Timeout", JOptionPane.INFORMATION_MESSAGE); //Check to see if the entry was invalid while(!isNumber(time)) time = JOptionPane.showInputDialog(null, "You must enter a NUMBER....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "protected int maxTimeout() { return 15*1000*1000; }", "int getTimeout();", "public long timeout(long timeout);", "long getTimeout();", "public int sendTimeout(){\n return 0; //TODO codavaj!!...
[ "0.7061178", "0.65005165", "0.63646483", "0.62893164", "0.62864", "0.6220695", "0.6182463", "0.6150231", "0.6150074", "0.60996926", "0.6076366", "0.6074248", "0.60198", "0.60002303", "0.59353894", "0.5917662", "0.59158933", "0.5905593", "0.58948815", "0.5887521", "0.58847237"...
0.65355784
1
Paints the pieces on the board
public void paintComponent(Graphics g) { ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g.setColor(Color.WHITE); g.clearRect(0, 0, getWidth(), getHeight()); //Drawn the board for (int i = 0; i < 17; i++) { for (int j = 0; j < 17; j++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paint(Graphics g){\r\n super.paintComponent(g);\r\n for(int row = 0; row < 8; row++) {\r\n for (int col = 0; col < 8; col++) {\r\n if((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)){\r\n g.setColor(Color.gray.brighter()); //pa...
[ "0.79271376", "0.7894529", "0.77715194", "0.7694318", "0.7603892", "0.7570861", "0.7519817", "0.7499765", "0.73574173", "0.73146087", "0.7311036", "0.7297718", "0.7268602", "0.72616076", "0.71977144", "0.7187938", "0.718759", "0.71585196", "0.7149892", "0.71147305", "0.711464...
0.68368185
44
Fills the board array with integers that correspond to each player
public static void fillTriangle(int attitude, int[][] board, int player, int row, int col) { for (int i = 0; i < 4; i++) for (int j = 0; j <= i; j++) board[attitude > 0 ? row + i : row - i][attitude > 0 ? col + j : col - j] = player; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillBoard() {\n List<Integer> fifteen = ArrayUtils.intArrayToList(SOLVED_BOARD);\n Collections.shuffle(fifteen, this.random);\n this.emptyTileIndex = fifteen.indexOf(0);\n this.matrix = fifteen.stream().mapToInt(i -> i).toArray();\n }", "private void fillBoard() {\n\n ...
[ "0.7412364", "0.7306766", "0.7111106", "0.7014243", "0.6866308", "0.67226595", "0.66814905", "0.66679", "0.6639551", "0.66234565", "0.6612585", "0.6571436", "0.6535575", "0.6519873", "0.6506909", "0.65013415", "0.65000105", "0.64838403", "0.64255065", "0.6425276", "0.64029396...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); MyThread myThread=new MyThread(); myThread.start(); }
{ "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 void run() { super.run(); //经过两秒后跳转到LogActivity界面 try { Thread.sleep(2000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ Intent intent=new Intent(SplashActivity.this,Mytoee_keActivity.class); startActiv...
{ "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
methode principale du cas
public void archiver(int numProfil) { controlArchiver.archiver(numProfil); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\...
[ "0.7182921", "0.6962168", "0.6943928", "0.68994576", "0.68829733", "0.68127775", "0.6785964", "0.66682", "0.6613948", "0.6609853", "0.65996337", "0.65996337", "0.65793294", "0.6557415", "0.65141547", "0.6497578", "0.64746803", "0.64648396", "0.6441664", "0.64394796", "0.64344...
0.0
-1
Show location driver on map
private void displayLocation() { try{ if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_COARSE_LO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationDat...
[ "0.7183939", "0.69428617", "0.68998474", "0.6892216", "0.68620795", "0.6848381", "0.672532", "0.66780436", "0.6569384", "0.6522945", "0.65096456", "0.65035844", "0.6492844", "0.64722675", "0.64442605", "0.6439045", "0.643835", "0.6400605", "0.6400082", "0.6398604", "0.6361402...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.navigation_home) { DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
System.out.println("entrou no dao listar noticias");
public List<SiteNoticia> listarPorData() { List<SiteNoticia> result = new ArrayList<SiteNoticia>(); EntityManager em1 = getEM(); em1.getTransaction().begin(); CriteriaBuilder builder = em1.getCriteriaBuilder(); CriteriaQuery query = builder.createQuery(SiteNoticia.class); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listar()\n\t{\n\t\tdatabase.list().forEach(\n\t\t\t(entidade) -> { IO.println(entidade.print() + \"\\n\"); }\n\t\t);\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory()....
[ "0.6850972", "0.67662877", "0.6622524", "0.6622482", "0.66212887", "0.65667516", "0.65241504", "0.64988", "0.6441655", "0.6429732", "0.6418483", "0.6388211", "0.63869625", "0.63412493", "0.63003755", "0.6292817", "0.62872714", "0.6278743", "0.6272187", "0.6243131", "0.623029"...
0.5842522
84
System.out.println("entrou no dao listar noticias");
public List<SiteNoticia> listarPorUsuario(TbUsersystem id) { List<SiteNoticia> result = new ArrayList<SiteNoticia>(); EntityManager em1 = getEM(); em1.getTransaction().begin(); CriteriaBuilder builder = em1.getCriteriaBuilder(); CriteriaQuery query = builder.createQuery(SiteNotic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listar()\n\t{\n\t\tdatabase.list().forEach(\n\t\t\t(entidade) -> { IO.println(entidade.print() + \"\\n\"); }\n\t\t);\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "List<O> obtenertodos() throws DAOException;", "public void listarProvincia() {\...
[ "0.6850209", "0.6767436", "0.66230077", "0.66222996", "0.66216654", "0.6565688", "0.6524038", "0.64987123", "0.6439758", "0.6429705", "0.64198756", "0.6389446", "0.63868", "0.6340421", "0.6300805", "0.6292466", "0.6286711", "0.62774366", "0.6271284", "0.6243339", "0.6232365",...
0.0
-1
assigns the countryCode depending on the country clicked to pass onto goToDictionary
public void goToDictionaryKorea(View v) { countryCode = 1; countryName = getCountry(countryCode); goToDictionary(countryName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goToDictionary(String country) {\n Intent myIntent = new Intent(this, Dictionary.class);\n myIntent.putExtra(\"flag\", country);\n\n Bundle bundle2 = new Bundle();\n bundle2.putString(\"flag\", country);\n\n DictionaryTab1 send2 = new DictionaryTab1();\n send2...
[ "0.70702666", "0.64028454", "0.6307177", "0.6270544", "0.6267239", "0.62606865", "0.62514424", "0.620435", "0.6158291", "0.61035764", "0.60792476", "0.60475665", "0.6011524", "0.5981727", "0.58871055", "0.581104", "0.5803976", "0.5803976", "0.5692443", "0.5686803", "0.5647558...
0.7018097
1
makes it neater to collate all countries and countryCodes together
private String getCountry(int countryCode) { switch (countryCode) { case 1: return countryName = "Korea"; case 2: return countryName = "England"; case 3: return countryName = "France"; default: return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void _generateAdjacentCountries() {\n\n // North America\n this.adjCountries.put(CountryName.Alaska, new CountryName[] {\n CountryName.NorthwestTerritories });\n this.adjCountries.put(CountryName.WesternCanada, new CountryName[] {\n CountryName.NorthwestTe...
[ "0.6203994", "0.60787815", "0.6040685", "0.59779066", "0.5934584", "0.5893158", "0.58842635", "0.58803976", "0.5824346", "0.5816212", "0.580688", "0.58050597", "0.5789918", "0.5762803", "0.57549447", "0.5741687", "0.5737401", "0.56565005", "0.5620605", "0.56029946", "0.558565...
0.0
-1
takes the countryCode and passes it to the dictionary screen
private void goToDictionary(String country) { Intent myIntent = new Intent(this, Dictionary.class); myIntent.putExtra("flag", country); Bundle bundle2 = new Bundle(); bundle2.putString("flag", country); DictionaryTab1 send2 = new DictionaryTab1(); send2.setArguments(bun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goToDictionaryKorea(View v) {\n countryCode = 1;\n countryName = getCountry(countryCode);\n goToDictionary(countryName);\n }", "void fetchCountryInformation();", "public void setCountryCode(String countryCode)\r\n\t{\r\n\t\tthis.countryCode = countryCode;\r\n\t}", "public ...
[ "0.69652885", "0.6353339", "0.61930454", "0.61715895", "0.6171055", "0.6169655", "0.6093916", "0.60580677", "0.6038585", "0.60376865", "0.60376865", "0.60376865", "0.60376865", "0.60376865", "0.60376865", "0.6029378", "0.6029378", "0.6004318", "0.5953939", "0.59135634", "0.58...
0.64879334
1
go to AddWord1 screen (AddWord button)
public void goToAddWord1(View v) { Intent myIntent = new Intent(this, AddWord1.class); startActivity(myIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n AddWordFromDaum();\n }", "@FXML\n\tpublic void addWord() {\n\n\t\twordList.add(new Word(TextFieldWord.getText(), TextFieldDescribe.getText(), liczbaznakow));\n\n\t\ttry {\n\n\t\t\tout = new PrintWriter(selectedFile);\n\n\t\t\tfor...
[ "0.7002931", "0.6664196", "0.65270096", "0.6505664", "0.64454055", "0.6271836", "0.6256292", "0.6048734", "0.6008549", "0.59913546", "0.5983759", "0.597622", "0.5959396", "0.5913891", "0.59051746", "0.5903097", "0.5888774", "0.58696425", "0.5864843", "0.58255416", "0.58017623...
0.8224303
0
Retrieves the session bound cart instance.
@GetMapping ResponseEntity<Cart> retrieve() { return ResponseEntity.ok(unwrapProxy(cart)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CartModel getCartInSession(HttpServletRequest request) {\n CartModel cartInfo = (CartModel) request.getSession().getAttribute(\"myCart\");\r\n\r\n if (cartInfo == null) {\r\n cartInfo = new CartModel();\r\n request.getSession().setAttribute(\"myCart\", cartInfo);\r...
[ "0.71719277", "0.6944858", "0.6807864", "0.6716428", "0.6676629", "0.658014", "0.64743894", "0.6457672", "0.6222734", "0.6111561", "0.6097456", "0.6054587", "0.60294783", "0.6012703", "0.60099965", "0.60099965", "0.60074985", "0.60041976", "0.5990827", "0.59743017", "0.596171...
0.60925835
11
/ Cart is managed by the IoCContainer. Thus, the cart instance is actually a proxy reflection containing some ugly properties that are not desirable in a JSON document. Source:
@SneakyThrows private static Cart unwrapProxy(Cart cart) { if (AopUtils.isAopProxy(cart) && cart instanceof Advised) { Object target = ((Advised) cart).getTargetSource().getTarget(); return (Cart) target; } else { return cart; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CartPojo() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public Cart getCart() {\n return this.cart;\n }", "@GetMapping\n ResponseEntity<Cart> retrieve() {\n return ResponseEntity.ok(unwrapProxy(cart));\n }", "public interface Cart {\n Map<Product, Inte...
[ "0.69669366", "0.6587448", "0.62174183", "0.6150895", "0.5965738", "0.5963912", "0.5900151", "0.58644533", "0.58574873", "0.58466274", "0.58402187", "0.5839296", "0.5808367", "0.5807378", "0.5780172", "0.57766795", "0.5733645", "0.5733274", "0.5690301", "0.5667999", "0.559900...
0.6853889
1
Creates and completes a new Order and generates a completion report afterwards.
@PostMapping("/checkout") ResponseEntity<OrderCompletionReport> checkout(@RequestParam int amount, @RequestParam("crate_size") CrateSize crateSize) { verify(cart); Order order = new Order(); transferItems(cart, order, Long.valueOf(crateSize...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeComplete(Order order) {}", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "@Test (priority = 3)\n\t@Then(\"^Create Order$\")\n\tpublic void create_Order() throws Throwable {\n\t\tCommonFunctions.clickButton(\"wlnk_Home\", \"Sheet1\", \"Home\", \"CLICK\");\...
[ "0.7316646", "0.7248233", "0.668971", "0.65903336", "0.6568297", "0.6432502", "0.6418013", "0.63879955", "0.63366866", "0.6191062", "0.61574847", "0.6136184", "0.6127858", "0.6030165", "0.60203683", "0.5999781", "0.5986347", "0.59835225", "0.59545493", "0.59430104", "0.592629...
0.0
-1
Method is used to call the getAllVehicles() method from the service object to populate on create of the managed bean Used so that the List vehicles contains data when vehicles.xhtml renders
@PostConstruct public void init() { if (vehicles == null) { try { vehicles = getVehicles(); } catch (Exception e) { // } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Vehicle> getVehicles() {\n\t\tList<Vehicle> vehicleList = new ArrayList<Vehicle>();\n\t\tif ((vehicles == null)||(vehicles.isEmpty())) { // call DAO method getCustomers to retrieve list of customer objects from database\n\t\t\ttry {\n\t\t\t\tvehicleList = vehicleService.getAllVehicles();\n\t\t\t} catch...
[ "0.7477636", "0.73694086", "0.6964497", "0.66392756", "0.6591421", "0.658954", "0.64541316", "0.64294904", "0.64125794", "0.62077904", "0.6180371", "0.61641407", "0.6134423", "0.60593665", "0.60330594", "0.595009", "0.59218746", "0.5898356", "0.5895609", "0.5871093", "0.58620...
0.5902439
17
Returns list of Vehicles
public List<Vehicle> getVehicles() { List<Vehicle> vehicleList = new ArrayList<Vehicle>(); if ((vehicles == null)||(vehicles.isEmpty())) { // call DAO method getCustomers to retrieve list of customer objects from database try { vehicleList = vehicleService.getAllVehicles(); } catch (Exception e) { cur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Vehicle> getVehicles() {\n\t\treturn vehicles;\n\t\t\n\t}", "public ArrayList<Vehicle> getVehicles() {\r\n ArrayList<Vehicle> allVehicles = new ArrayList<>();\r\n for (Lane lane : lanes) {\r\n allVehicles.addAll(lane.getVehicles());\r\n }\r\n return allVehicles;...
[ "0.8054036", "0.78666985", "0.7687211", "0.7663044", "0.7584697", "0.7575918", "0.7552315", "0.75416607", "0.7494376", "0.7480626", "0.73097235", "0.7294508", "0.7223466", "0.7222576", "0.719676", "0.718391", "0.69713074", "0.6900594", "0.6828146", "0.679013", "0.67868996", ...
0.82038647
0
calls the insert business logic for Vehicle
public void addVehicle() { currentInstance = FacesContext.getCurrentInstance(); FacesMessage message = null; try { vehicleService.insert(vehic); message = new FacesMessage(FacesMessage.SEVERITY_INFO,"Saved","Vehicle Saved"); } catch (Exception e) { message = new FacesMessage(FacesMessage.SEVERITY_ERRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insert(Vehicle v) {\n\t\ttry {\n\t\t\tint modelID = VehicleModelDAOImpl.getInstance()\n\t\t\t\t\t.getAll()\n\t\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(m-> m.getDescription().equals(v.getModel()))\n\t\t\t\t\t.findFirst()\n\t\t\t\t\t.get()\n\t\t\t\t\t.getModelID();\n\n\t\t\tint categoryI...
[ "0.7401866", "0.6775261", "0.6754372", "0.6590375", "0.65744096", "0.6556977", "0.6528715", "0.64897704", "0.64638245", "0.6439559", "0.6423027", "0.640482", "0.63697773", "0.63592345", "0.6357383", "0.6355567", "0.63489753", "0.6342227", "0.63236916", "0.63230103", "0.631827...
0.6263559
30
call update of DB
public void onRowEdit(RowEditEvent event) { currentInstance = FacesContext.getCurrentInstance(); FacesMessage msg = null; Vehicle editedVehic = (Vehicle)event.getObject(); try { vehicleService.update(editedVehic); msg = new FacesMessage("Truck Edited", Integer.toString(((Vehicle)event.getOb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDB() {\n }", "public void executeUpdate();", "void executeUpdate();", "public abstract int execUpdate(String query) ;", "public abstract void updateDatabase();", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "public void executeUpdate(String request) {\n ...
[ "0.8026011", "0.7959713", "0.78027964", "0.71401876", "0.71211255", "0.7073581", "0.70301855", "0.6969903", "0.6933489", "0.6933489", "0.68580246", "0.6819979", "0.68051803", "0.67892915", "0.67840844", "0.67792237", "0.6775112", "0.6771827", "0.67595696", "0.67487466", "0.67...
0.0
-1
this method starts Appium server. Calls startAppiumServer method to start the session depending upon your OS.
public void invokeAppium() throws Exception { String OS = System.getProperty("os.name").toLowerCase(); try { startAppiumServer(OS); LOGGER.info("Appium server started successfully"); } catch (Exception e) { LOGGER.warn("Unable to start appium server"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appiumStart() throws IOException, InterruptedException {\n // Execute command string to start appium server.\n p = Runtime.getRuntime().exec(cmd);\n // Provide wait time of 10 mins to start appium server properly.\n // If face any error(Could not start a new session...) then Increase\n // this tim...
[ "0.7945465", "0.7825771", "0.78208953", "0.7687257", "0.7259099", "0.69491917", "0.6571981", "0.64285016", "0.63819706", "0.6294154", "0.61981833", "0.6119873", "0.5804079", "0.57873005", "0.5768813", "0.57560176", "0.56701994", "0.56391406", "0.56294453", "0.56292313", "0.55...
0.7283728
4
this method stops Appium server.Calls stopAppiumServer method to stop session depending upon your OS.
public void stopAppium() throws Exception { String OS = System.getProperty("os.name").toLowerCase(); try { stopAppiumServer(OS); LOGGER.info("Appium server stopped successfully"); } catch (Exception e) { LOGGER.warn("Unable to stop appium server"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stopAppiumServer() throws IOException {\n\tif (process != null) {\n\tprocess.destroy();\n\n\t}\n\n\tSystem.out.println(\"Appium server stopped\");\n\n\t}", "public void appiumStop() throws IOException {\n if (p != null) {\n p.destroy();\n }\n System.out.println(\"Appium server Is stopped ...
[ "0.79627144", "0.7543581", "0.7411001", "0.64414823", "0.6406868", "0.62861794", "0.6272059", "0.62180245", "0.6115764", "0.60947335", "0.6093532", "0.604699", "0.6038626", "0.601898", "0.60119486", "0.5997303", "0.5981399", "0.59276", "0.5907431", "0.59047914", "0.5883183", ...
0.8029008
0
this method quit the driver after the execution of test(s)
public void teardown() { LOGGER.info("Shutting down driver"); driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterTest\n\tpublic void afterTest() {\n\t\tiDriver.quit();\n\t\tSystem.out.println(\"=====================VEGASF_419_END=====================\");\n\t}", "@After\n public void endingTests() throws Exception {\n driver.quit();\n }", "@AfterTest\npublic void end()\n{\n\tlogin.s.quit();\n}", "@Aft...
[ "0.81472486", "0.8044656", "0.79716", "0.7933837", "0.7759039", "0.76838666", "0.7667409", "0.7593249", "0.75887406", "0.75624216", "0.75411755", "0.7523437", "0.74928325", "0.7479647", "0.74727976", "0.74727976", "0.74680716", "0.7436568", "0.7425864", "0.74205625", "0.74192...
0.7162909
38
this method creates the android driver
public void androidDriver(String buildPath, String appPkg, String appAct) throws MalformedURLException { if (buildPath != "") { File app = new File(buildPath); capabilities.setCapability("app", app.getAbsolutePath()); } capabilities.setCapability("deviceName", "Android-T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n\t public void setUp() throws Exception {\n\t \n\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t capabilities.setCapability(\"platformName\", \"Android\");\n\t //capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t capabilities...
[ "0.63742095", "0.6337549", "0.6331439", "0.6279286", "0.627033", "0.6262555", "0.62386096", "0.6159583", "0.6072954", "0.60311025", "0.59905005", "0.59829885", "0.59786487", "0.5954689", "0.59221125", "0.5865374", "0.5865362", "0.5847501", "0.58266044", "0.5802675", "0.579403...
0.5583788
38
this method creates the iOS driver
public void iOSDriver(String buildPath, String iosBundleId, String iosUDID, String iosVersion) throws MalformedURLException { if (buildPath != "") { File app = new File(buildPath); capabilities.setCapability("app", app.getAbsolutePath()); } capabilities.setCapability(Mobi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createDriver(Driver driver);", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "private static String createDriver() {\n\t\tBFLogger.logDebug(\"Creating new \" + RuntimeParameters.PARAM_1.toString() + \" driv...
[ "0.6643913", "0.6323709", "0.62552816", "0.61103", "0.5903213", "0.5877916", "0.5839138", "0.5803558", "0.56849295", "0.56267154", "0.5554803", "0.55497503", "0.5545727", "0.5503114", "0.5496069", "0.54486734", "0.5440431", "0.5431525", "0.54200125", "0.5387022", "0.5365743",...
0.51016873
43
this method starts the appium server depending on your OS.
public void startAppiumServer(String os) throws ExecuteException, IOException, InterruptedException { if (os.contains("windows")) { CommandLine command = new CommandLine("cmd"); command.addArgument("/c"); command.addArgument("C:/Program Files/nodejs/node.exe"); co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appiumStart() throws IOException, InterruptedException {\n // Execute command string to start appium server.\n p = Runtime.getRuntime().exec(cmd);\n // Provide wait time of 10 mins to start appium server properly.\n // If face any error(Could not start a new session...) then Increase\n // this tim...
[ "0.8121256", "0.79108983", "0.790934", "0.7675162", "0.7297813", "0.7237085", "0.6975557", "0.68682355", "0.66654766", "0.6565269", "0.6556041", "0.64937574", "0.6362772", "0.630599", "0.62748116", "0.6263827", "0.62043405", "0.6096911", "0.60516787", "0.6047728", "0.6025041"...
0.81404036
0
this method stops the appium server.
public void stopAppiumServer(String os) throws ExecuteException, IOException { if (os.contains("windows")) { CommandLine command = new CommandLine("cmd"); command.addArgument("/c"); command.addArgument("Taskkill /F /IM node.exe"); DefaultExecuteResultHandler resu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appiumStop() throws IOException {\n if (p != null) {\n p.destroy();\n }\n System.out.println(\"Appium server Is stopped now.\");\n }", "public static void stopAppiumServer() throws IOException {\n\tif (process != null) {\n\tprocess.destroy();\n\n\t}\n\n\tSystem.out.println(\"Appium server stoppe...
[ "0.8296405", "0.8153", "0.8147338", "0.6953126", "0.69076234", "0.6897866", "0.68151987", "0.673504", "0.6730639", "0.66719943", "0.66437596", "0.661311", "0.658728", "0.65716183", "0.657089", "0.6561828", "0.65568006", "0.6550675", "0.6545213", "0.65375316", "0.65112287", ...
0.7169767
3
Account a1 = new Account("Ankita",1000); a1.deposit(200); a1.withdraw(100); a1.summary(); Savings s1 = new Savings("Mona"); s1.withdraw(5); s1.summary(); Current c1 = new Current("Ankita"); //c1.deposit(1000); c1.withdraw(3000); c1.withdraw(7000); c1.deposit(2000); c1.deposit(4000); c1.summary(); Transaction t = new Tr...
public static void main(String[] args) { Banking s1 = AccountFactory.openSavingAccount("Polo"); try { s1.withdraw(2000); } catch (BalanceException e) { //e.printStackTrace(); //For debugging - used by developers //System.out.println(e); //used for loggers System.out.println(e.getMessage()); //f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args)\r\n{\nAccount a = new SavingsAccount(\"john\",500,4);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+a.getName()+\"has an initial balance of:\"+a.getBalance());\r\na.deposit(200);\r\na.wit...
[ "0.8042381", "0.8011274", "0.7290828", "0.70125914", "0.6992222", "0.68877864", "0.6868735", "0.6766186", "0.6687418", "0.6662226", "0.6656728", "0.66209215", "0.66148114", "0.65708864", "0.65031147", "0.65021306", "0.6403824", "0.63928086", "0.63576347", "0.63517976", "0.633...
0.62184286
35
Created by belong on 16116.
public interface IMoviesService{ String getPath(int Vid); Movies getPic(int Vid); ArrayList<Movies> search(Map map); void views(int Vid); void upload(Map map); Review review(Map map); ArrayList<Movies> getInfo(Map map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r...
[ "0.6177166", "0.59691966", "0.59564537", "0.5953267", "0.5953182", "0.59147316", "0.58934176", "0.58934176", "0.5854273", "0.57745516", "0.5772598", "0.57682097", "0.5735521", "0.5726933", "0.57230955", "0.57093495", "0.5689373", "0.5687238", "0.5686592", "0.56548136", "0.563...
0.0
-1
/ orElse of Optional checks and return if the Optional has value or null orElseThrow will throw the supplied exception if Optional is null or empty
public Topic getTopic(String id) { return topicRepository.findById(id).orElseThrow(() -> new ResourceNotFoundException(id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void optional() {\n\n // .stream\n Stream<Optional<Employee>> emp = getEmployeeStream(\"Some employee ID\");\n Stream<Employee> empStream = emp.flatMap(Optional::stream);\n\n // .or\n Optional<Employee> or = getEmployee(\"123\").or(() -> Optional.of(new Employee(\"123\")))...
[ "0.6282123", "0.6215173", "0.597664", "0.5742543", "0.57261163", "0.56666464", "0.55910754", "0.55124694", "0.54168797", "0.5409789", "0.53800565", "0.5367533", "0.53093845", "0.5267414", "0.5246247", "0.517388", "0.51589364", "0.51506287", "0.51464725", "0.51419896", "0.5128...
0.0
-1
/ Method saves the topic instance to the database
public void addTopic(Topic topic) { topicRepository.save(topic); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void saveTopic(String categoryId, String forumId, Topic topic,\n\t\t\tboolean isNew, boolean isMove, MessageBuilder messageBuilder)\n\t\t\tthrows Exception {\n\n\t}", "int insert(UserTopic record);", "int insert(UserTopic record);", "@Override\n\tpublic void saveTopicType(TopicType topicT...
[ "0.7102271", "0.6824671", "0.6824671", "0.6626413", "0.65123457", "0.6419849", "0.63937205", "0.63863367", "0.6209771", "0.61045295", "0.61016506", "0.60936433", "0.6062764", "0.6049376", "0.59957117", "0.5990639", "0.5982388", "0.5982388", "0.59737533", "0.5964732", "0.58946...
0.61284316
9
/ Same method save() checks the primary key existence, and creates or updates accordingly
public void updateTopic(Topic topic, String id) { if (Objects.nonNull(getTopic(id))) topicRepository.save(topic); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSave() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(\"Super Ultra Hard Assignment\",true);\n\t\tassertTrue(id != -1);\n\t}", "@Override\n public void save(HorseRace horseRace) throws PersistentException {\n HorseRaceDao dao = factory.createDao(HorseRaceDao.cl...
[ "0.6895387", "0.6720568", "0.6672563", "0.6531327", "0.6452081", "0.6378222", "0.6222855", "0.6217946", "0.6201273", "0.6198916", "0.6196918", "0.618495", "0.6173395", "0.61561394", "0.6132216", "0.61257684", "0.6116042", "0.6110897", "0.610414", "0.6080452", "0.60741603", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ListNode head = ListNode.getAnExampleList(); ListNode.printList(head); deleteDuplicates(head); System.out.println(); ListNode.printList(head); }
{ "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
Given a sorted linked list, delete all duplicates such that each element appear only once. Given 1>1>2, return 1>2.
public static ListNode deleteDuplicates(ListNode head) { HashSet<Integer> allVals = new HashSet<Integer>(); ListNode temp = head; ListNode before = head; ListNode next = head; while(temp!=null){ if(allVals.contains(temp.val)){ before.next = next; // delete current node ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeDuplicates() {\n ListNode current = head;\n while (current != null && current.next != null) {\n if (current.data == current.next.data) {\n current.next = current.next.next;\n } else {\n current = current.next;\n }\n ...
[ "0.751588", "0.7481238", "0.7467128", "0.7410982", "0.7397762", "0.7367075", "0.73567516", "0.7351947", "0.73442936", "0.7334643", "0.73185277", "0.73062575", "0.7235143", "0.7176971", "0.71644974", "0.7161466", "0.71380013", "0.71311283", "0.70554435", "0.70527494", "0.70168...
0.72853786
12
Gets the CardVisual by goalValue
public static CardVisual getByGoalValue(final String goalValue) { final CardVisual cardVisual = MAP_BY_GOAL_VALUE.get(goalValue); if (cardVisual == null) { return UNKNOWN; } return cardVisual; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String GetHumanCard(int value){\n return handHuman.get(value);\n }", "public static VisualizationType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase HISTOGRAM_VALUE: return HISTOGRAM;\n\t\t\tcase SCATTERPLOT_VALUE: return SCATTERPLOT;\n\t\t}\n\t\treturn null;\n\t}", "public String GetCompu...
[ "0.5251317", "0.52274877", "0.5180882", "0.5146788", "0.51357824", "0.49718043", "0.49067432", "0.48861986", "0.48248684", "0.48044488", "0.47700837", "0.472244", "0.4715157", "0.46843475", "0.46481302", "0.4641503", "0.46210572", "0.46196696", "0.4618273", "0.4610533", "0.45...
0.8195817
0
Immediately before any instruction is executed a second time, what value is in the accumulator?
private static void part1() { List<String> instructions = FileUtils.readFile(INPUT_TXT); int instructionPointer = 0; int accumulator = 0; Set<Integer> executedLines = new HashSet<>(); // Run the instructions until a duplicate is found String instruction; do { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private void accumulate()\n\t{\n\t\tfinal int argb = target.get().get();\n\t\taccA += ( ( argb >> 24 ) & 0xff ) * weights[ code ];\n\t\taccR += ( ( argb >> 16 ) & 0xff ) * weights[ code ];\n\t\taccG += ( ( argb >> 8 ) & 0xff ) * weights[ code ];\n\t\taccB += ( argb & 0xff ) * weights[ code ];\n\n//\t\tSystem...
[ "0.6066812", "0.5897535", "0.58116406", "0.57979405", "0.5778944", "0.5723307", "0.56948256", "0.55911595", "0.5507337", "0.5505674", "0.549772", "0.54432476", "0.5431278", "0.5427391", "0.53957504", "0.5383174", "0.53714174", "0.5368811", "0.53627944", "0.5347988", "0.534396...
0.5942106
1
Fix the program, what is the accumulator value at the end?
private static void part2() { List<String> instructions = FileUtils.readFile(INPUT_TXT); int accumulator = 0; Set<Integer> executedLines = new HashSet<>(); // Try changing each "nop"/"jmp" until something works int operationToChange = 0; // There are only so many "nop"/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private void accumulate()\n\t{\n\t\tfinal int argb = target.get().get();\n\t\taccA += ( ( argb >> 24 ) & 0xff ) * weights[ code ];\n\t\taccR += ( ( argb >> 16 ) & 0xff ) * weights[ code ];\n\t\taccG += ( ( argb >> 8 ) & 0xff ) * weights[ code ];\n\t\taccB += ( argb & 0xff ) * weights[ code ];\n\n//\t\tSystem...
[ "0.6204647", "0.60452706", "0.6044147", "0.59945023", "0.59425944", "0.5931767", "0.5870402", "0.57875896", "0.5736564", "0.57040256", "0.56936944", "0.5664742", "0.56570977", "0.5635074", "0.5626135", "0.56261295", "0.55828494", "0.5573674", "0.5560427", "0.5559996", "0.5548...
0.5404147
26
System.out.println("id is: " + id);
public static Joke getJoke(String id) { return allJokes.get(Integer.parseInt(id) - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int id() {return id;}", "public String getId(){\n return id;\n }", "public String getId(){\n return id;\n }", "public int getId(){ return id; }", "public String getId() {\n return id;\r\n }", "public int getId()\n {\n return id;\n }", "public String getId(){...
[ "0.7743374", "0.76163626", "0.76163626", "0.7595222", "0.75524086", "0.75459784", "0.75388855", "0.7526734", "0.74924266", "0.7482951", "0.7463804", "0.7463662", "0.7460921", "0.74538404", "0.7451127", "0.74503946", "0.74503946", "0.74503946", "0.744705", "0.74297535", "0.742...
0.0
-1
NOSONAR Constructor de clase Registo
public Registro(List<Double> d) { this.setContenido((ArrayList<Double>) d); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FiltroMicrorregiao() {\r\n }", "public Alojamiento() {\r\n\t}", "public Carrera(){\n }", "public AntrianPasien() {\r\n\r\n }", "public Pasien() {\r\n }", "public Aritmetica(){ }", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUC...
[ "0.76978385", "0.7612185", "0.75999266", "0.75446194", "0.7540902", "0.7514906", "0.7487344", "0.747493", "0.746068", "0.7420199", "0.74098253", "0.73784983", "0.7376946", "0.73304427", "0.7303451", "0.7301586", "0.7296875", "0.7277814", "0.72506434", "0.72482044", "0.7242166...
0.0
-1
obtener el contenido del registro
public List<Double> getContenido() { return this.contenido; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Blob getContentBlob() {\n return Hibernate.createBlob(this.content);\n }", "@Override\n protected Serializable getContentObject() {\n return result;\n }", "Reserva Obtener();", "Serializable getContent();", "byte[] getContent();", "public byte[] getContent();", "@Override\n ...
[ "0.6454671", "0.62658805", "0.6228843", "0.6222073", "0.61908466", "0.6100254", "0.60313314", "0.6007011", "0.5989128", "0.5955487", "0.5903409", "0.5900148", "0.5880702", "0.5880702", "0.5865475", "0.5863962", "0.5863962", "0.58625364", "0.58411515", "0.5833673", "0.58096457...
0.0
-1
Muestra por salida estandar el contenido del registro
public void show() { System.out.println(this.getContenido().toString());//NOSONAR }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void salvar(Registro registro) {\n\t\t\r\n\t}", "@Override\n public int getSalida() {\n return 0;\n }", "public long obtenerNoSalida() throws GenericPersistenceEAOException;", "public EncabezadoRespuesta salidaAsistencia(AsistenciaDTO asistencia) {\n\t\t//Primero generamos ...
[ "0.6928929", "0.6606031", "0.6466492", "0.64456534", "0.64117324", "0.6299348", "0.6149753", "0.60689414", "0.6042051", "0.60099953", "0.59932715", "0.59709287", "0.59707785", "0.591341", "0.590152", "0.5898064", "0.5892623", "0.58892125", "0.5880403", "0.58775246", "0.586563...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { SendFactory sf = new SendFactory(); Sender sender = sf.produce("sms"); sender.Send(); System.out.println("=================="); SendFactory sf2 = new SendFactory(); Sender sender2 = sf2.produceMail(); sender2.Send(); System.out.println("=============...
{ "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.66730285", "0.65698135", "0.6524193", "0.64818907", "0.6477969", "0.6459897", "0.64150065", "0.6378023", "0.62785167", "0.6256323", "0.62391806", "0.6225302", "0.6203955", "0.6196986", "0.6196986", "0.6193411", "0.6188864", "0.6175446", "0.61352557", "0.6129083", "0.608151...
0.0
-1
Created by lining on 2019/6/18.
@Repository public interface MemberDao { Member findByMobile(@Param("mobile") String mobile); Member findByCode(@Param("member_code") String code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\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}", "public ...
[ "0.59652686", "0.57452154", "0.56249064", "0.55800456", "0.5527677", "0.5527677", "0.54960215", "0.54839814", "0.5480082", "0.54399407", "0.54006314", "0.538248", "0.53329676", "0.5332637", "0.5332637", "0.5332637", "0.5332637", "0.5332637", "0.5332637", "0.5326149", "0.53197...
0.0
-1
constructor it initialize the hash table
public QuantDataHashTable() { quantData = new Hashtable<String, Double>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashTable()\n\t{\n\t\tthis(NUM_BUCKETS);\n\t}", "public HashTable() {\n\t\tthis(DEFAULT_TABLE_SIZE);\n\t}", "public void instantiateTable(){\n hashTable = new LLNodeHash[16];\n }", "public MyHashTable( )\r\n\t{\r\n\t\tthis(DEFAULTTABLESIZE);\r\n\t\t\r\n\t\t\t\r\n\t}", "public HashTable( )\n\t{\n...
[ "0.7947004", "0.7820937", "0.7800907", "0.7728568", "0.7646251", "0.7630314", "0.7599368", "0.75831616", "0.7481381", "0.73999274", "0.7398224", "0.73793745", "0.7362315", "0.73236567", "0.7313204", "0.7309408", "0.7229562", "0.71627617", "0.71486264", "0.71461886", "0.712278...
0.68519366
44
add an entry inside the hash table
public void addQuantData(String k, double value) { if (!quantData.containsKey(k)) { quantData.put(k, value); } else { System.out.println("value " + k + " already in memory"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override void addNewEntry(K key, V value, int hash, int index) {\n LinkedEntry<K, V> header = this.header;\n\n // Remove eldest entry if instructed to do so.\n LinkedEntry<K, V> eldest = header.nxt;\n if (eldest != header && removeEldestEntry(eldest)) {\n remove(eldest.key);...
[ "0.7422924", "0.733151", "0.7111498", "0.70708174", "0.70301914", "0.6956844", "0.6949403", "0.6945106", "0.6853781", "0.6841915", "0.68151194", "0.6810219", "0.6809436", "0.68039465", "0.6788615", "0.6784541", "0.67597544", "0.67551905", "0.6748409", "0.6642826", "0.66270393...
0.0
-1
return the input quant value for the specified key
public double getInput(String k) { double value=0; if (quantData.containsKey(k)) { value = quantData.get(k); } else { System.out.println("Key not found"); value = 0.0; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getExp(String k) {\n\t\t\n\t\tdouble value=0;\n\t\t\n\t\tif (quantData.containsKey(k)) {\n\t\t\tvalue = quantData.get(k);\n\t\t} else {\n\t\t\tSystem.out.println(\"Key not found\");\n\t\t\tvalue = 0.0;\n\t\t}\n\t\t\n\t\treturn value;\n\t\t\t\n\t}", "public double getControl(String k) {\n\t\t\n\t\td...
[ "0.70461345", "0.70003736", "0.6575812", "0.6162555", "0.6123325", "0.6063843", "0.6050749", "0.6021153", "0.6009052", "0.6009052", "0.6001432", "0.5980048", "0.5929527", "0.59249026", "0.5912836", "0.5912836", "0.5903691", "0.58543044", "0.58340627", "0.5799121", "0.5791833"...
0.7768951
0
return the control quant value for the specified key
public double getControl(String k) { double value=0; if (quantData.containsKey(k)) { value = quantData.get(k); } else { System.out.println("Key not found"); value = 0.0; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getKControl(int index) {\n return this.kControl[index];\n }", "public double getInput(String k) {\n\t\t\n\t\tdouble value=0;\n\t\t\n\t\tif (quantData.containsKey(k)) {\n\t\t\tvalue = quantData.get(k);\n\t\t} else {\n\t\t\tSystem.out.println(\"Key not found\");\n\t\t\tvalue = 0.0;\n\t\t}\n...
[ "0.6686203", "0.62798256", "0.5981293", "0.59734756", "0.5934626", "0.5922522", "0.5825676", "0.5797324", "0.5705272", "0.5662648", "0.5552005", "0.5550999", "0.5529924", "0.5529924", "0.5507921", "0.550453", "0.5504201", "0.54904556", "0.5487728", "0.5466123", "0.54502356", ...
0.7779981
0
return the exp quant value for the specified key
public double getExp(String k) { double value=0; if (quantData.containsKey(k)) { value = quantData.get(k); } else { System.out.println("Key not found"); value = 0.0; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T exp(T value);", "public double getExp() {\n return exp;\n }", "public int getExp() {\n \t\treturn exp;\n \t}", "public double getInput(String k) {\n\t\t\n\t\tdouble value=0;\n\t\t\n\t\tif (quantData.containsKey(k)) {\n\t\t\tvalue = quantData.get(k);\n\t\t} else {\n\t\t\tSystem.out.println(...
[ "0.64677775", "0.63790965", "0.6200923", "0.61416805", "0.599901", "0.59593683", "0.59484637", "0.58441657", "0.58037746", "0.58037746", "0.5800627", "0.5753775", "0.5700917", "0.5690104", "0.5685562", "0.5681117", "0.5666013", "0.56603163", "0.5653643", "0.56464636", "0.5594...
0.81022644
0
The main usage method, returns a Image object corresponding to the Sprite object
public Image getSpriteImage(Sprite sprite){ if(sprite == null){ return sprites.get(1); } return sprites.get(sprite.getSpriteIndex()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image sprite(){\n\t\treturn (face);\n\t}", "abstract public void loadSprite();", "public Sprite getSprite() {\n\t\treturn image;\n\t}", "@Override\n\tpublic final Image getImage() {\n\t\treturn this.getSprite().getImage();\n\t}", "public Java2DSprite getSprite(Image ref) {\r\n\t\tif (window == null)...
[ "0.7513949", "0.7247523", "0.7227119", "0.714569", "0.70526373", "0.70082384", "0.69464403", "0.68842316", "0.6824607", "0.6776593", "0.6740323", "0.6728011", "0.6726", "0.6717261", "0.66275847", "0.66109735", "0.6601521", "0.6548771", "0.6537383", "0.6456581", "0.64270175", ...
0.68763435
8
separates the master team into individual players for comaprison
private Vector<String> separateLineup(){ Vector<String> lineup = new Vector<String>(); StringTokenizer st = new StringTokenizer(masterLineup, ","); while(st.hasMoreTokens()){ lineup.add(st.nextToken().toLowerCase()); } return lineup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendMessagetoRespectivePlayer(int num) {\n Message msg1;\n if(flag == \"player1\"){\n prevP1 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p1Handler.obtainMessage(3);\n }\n ...
[ "0.60447186", "0.5985905", "0.5857759", "0.58509487", "0.58005714", "0.578988", "0.5785244", "0.5781883", "0.57714385", "0.57569885", "0.57300293", "0.571208", "0.56697685", "0.5668102", "0.5663324", "0.56579536", "0.5654685", "0.56500167", "0.5648448", "0.56432706", "0.56411...
0.0
-1
separates the master subs into individual players for comaprison
private Vector<String> separateSubs(){ Vector<String> subs = new Vector<String>(); StringTokenizer st = new StringTokenizer(masterSubs, ","); while(st.hasMoreTokens()){ subs.add(st.nextToken().toLowerCase()); } return subs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendMessagetoRespectivePlayer(int num) {\n Message msg1;\n if(flag == \"player1\"){\n prevP1 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p1Handler.obtainMessage(3);\n }\n ...
[ "0.57936865", "0.5652221", "0.5642283", "0.55888087", "0.55807847", "0.5466654", "0.53439885", "0.5341786", "0.53325623", "0.5326312", "0.5293489", "0.5293277", "0.5265271", "0.52613", "0.52535045", "0.5243485", "0.5242119", "0.52393275", "0.52216023", "0.5220887", "0.5218126...
0.5870421
0
Releases a composite byte buffer. All the chunks in the buffer are reused.
public synchronized void release(CompositeByteBuffer cbb) { for (ByteBuffer buffer : cbb.buffers) { buffer.clear(); buffers.add(buffer); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void releaseBuffer() {\n }", "@SuppressWarnings(\"unchecked\") \n /* #end */\n public void release()\n {\n buffers = (KType[][]) EMPTY;\n blockLen = 0;\n elementsCount = 0;\n }", "@Override\n protected final void deallocate() {\n ByteBuf wr...
[ "0.66262686", "0.65566415", "0.6468972", "0.64550686", "0.6302731", "0.62264097", "0.6156302", "0.61151564", "0.604456", "0.5943465", "0.5883981", "0.588258", "0.5798555", "0.5788191", "0.5747282", "0.5746386", "0.56709504", "0.56574994", "0.555795", "0.55504936", "0.5541282"...
0.6823934
0
Execute an Rbased dvn statistical analysis request
public Map<String, String> execute(DvnRJobRequest sro) { // set the return object Map<String, String> result = new HashMap<String, String>(); try { // Set up an Rserve connection dbgLog.fine("sro dump:\n"+ToStringBuilder.reflectionToString(sro, ToStri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, String> runEDARequest(DvnRJobRequest sro, RConnection c){\n String optionBanner = \"########### EDA option ###########\\n\";\n dbgLog.fine(optionBanner);\n historyEntry.add(optionBanner);\n \n Map<String, String> sr = new HashMap<String, String>();\n sr.pu...
[ "0.6259815", "0.6039069", "0.602213", "0.56774795", "0.5525936", "0.54511344", "0.54289716", "0.5352808", "0.53443545", "0.5274378", "0.51178414", "0.504778", "0.5044023", "0.5024277", "0.4984765", "0.4978124", "0.49609274", "0.4948181", "0.4945607", "0.494163", "0.49381205",...
0.6455646
0
utilitiy methods Returns the array of values that corresponds the order of provided keys
public static String[] getValueSet(Map<String, String> mp, String[] keys) { List<String> tmpvl = new ArrayList<String>(); for (int i=0; i< keys.length; i++){ tmpvl.add(mp.get(keys[i])); } String[] tmpv = (String[])tmpvl.toArray(new String[tmpvl.size()]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer[] getKeys();", "Listof<Pairof<K, V>> sortedKeyVals();", "public List<V> getMergedValues(Set<K> keys){\r\n List<V> mergedValues = new LinkedList<>();\r\n for(Object k : keys){\r\n mergedValues.addAll(getValues(k));\r\n }\r\n return mergedValues;\r\n }", "Listo...
[ "0.66330713", "0.6354218", "0.624362", "0.62191635", "0.61964506", "0.6127242", "0.60940593", "0.6066445", "0.6031617", "0.5965885", "0.58465546", "0.5845037", "0.58350617", "0.5830394", "0.5816055", "0.57947856", "0.57947856", "0.57769686", "0.576046", "0.57354623", "0.57234...
0.66484207
0
Handles a downloading request
public Map<String, String> runDownloadRequest(DvnRJobRequest sro, RConnection c){ String optionBanner = "########### downloading option ###########\n"; dbgLog.fine(optionBanner); historyEntry.add(optionBanner); Map<String, String> sr = new HashMap<String, String>(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void download() {\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "void downloadingFile(String path);", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.star...
[ "0.73691773", "0.71886945", "0.7187271", "0.69529337", "0.69159573", "0.6835097", "0.6826852", "0.6756932", "0.667923", "0.66120476", "0.6570864", "0.6542778", "0.6541426", "0.65284246", "0.6465502", "0.64262384", "0.64221835", "0.6420958", "0.6385199", "0.6371847", "0.633960...
0.0
-1
Handles an EDA request
public Map<String, String> runEDARequest(DvnRJobRequest sro, RConnection c){ String optionBanner = "########### EDA option ###########\n"; dbgLog.fine(optionBanner); historyEntry.add(optionBanner); Map<String, String> sr = new HashMap<String, String>(); sr.put("requestdir"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incomingExtendedServicesRequest(APDUEvent e)\n {\n LOGGER.finer(\"Incoming extendedServicesRequest\");\n }", "protected void handleRequest(dk.i1.diameter.Message request, ConnectionKey connkey, Peer peer) {\n\n String log = \"\";\n Message answer = new Message();\n answer...
[ "0.63297045", "0.6251224", "0.62283283", "0.6191493", "0.5972256", "0.5955132", "0.5821009", "0.5645318", "0.5644383", "0.56406474", "0.5614731", "0.5510948", "0.54812443", "0.54742295", "0.54542637", "0.5408181", "0.5322171", "0.53219557", "0.53212553", "0.5308753", "0.52880...
0.5964641
5
Handles an Xtab request
public Map<String, String> runXtabRequest(DvnRJobRequest sro, RConnection c){ String optionBanner = "########### xtab option ###########\n"; dbgLog.fine(optionBanner); historyEntry.add(optionBanner); Map<String, String> sr = new HashMap<String, String>(); sr.put("r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handle(Element xmlRequest, HttpServletRequest req, HttpServletResponse res) throws IOException;", "public void handleXsp(HtmlObjects.Xsp t)\n {\n }", "void handleRequest();", "public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\...
[ "0.5218502", "0.5086557", "0.5055619", "0.48938662", "0.4835019", "0.4811664", "0.4798311", "0.47750062", "0.4684186", "0.46114522", "0.4602802", "0.45137835", "0.45100433", "0.4487549", "0.4476839", "0.44750673", "0.44732827", "0.44709706", "0.44692442", "0.44667062", "0.444...
0.62704855
0
Handles a Zelig request
public Map<String, String> runZeligRequest(DvnRJobRequest sro, RConnection c){ String optionBanner = "########### zelig option ###########\n"; dbgLog.fine(optionBanner); historyEntry.add(optionBanner); Map<String, String> sr = new HashMap<String, String>(); sr.put(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void handleRequest();", "public void request() {\n }", "public void handleRequest(String request) throws IOException {\n\n String method = getMethod(request);\n\n this.uri = ToolBox.getUri(request);\n this.url = ToolBox.getUrl(uri);\n this.extension = ToolBox.getExtension(url);\n...
[ "0.6619353", "0.6233749", "0.6184268", "0.6150651", "0.602042", "0.59328115", "0.5919607", "0.59072405", "0.5903752", "0.5877953", "0.5848317", "0.58165276", "0.5813183", "0.5756176", "0.575243", "0.57427156", "0.5736497", "0.5732809", "0.5730267", "0.5711294", "0.57107735", ...
0.60449994
4
returns zeligconfiguration data as an XML string
public String getGUIconfigData(){ String zlgcnfg=null; try { // get connected to Rserve //String RSERVE_HOST = "vdc-build.hmdc.harvard.edu";//"140.247.115.232" //int RSERVE_PORT = 6311; RConnection c = new RConnection(RSERVE_HOST, RSERVE_PORT); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n...
[ "0.72542834", "0.65799755", "0.6473544", "0.64155346", "0.63603956", "0.6350907", "0.6306807", "0.6287409", "0.6249692", "0.6226686", "0.62238985", "0.6202807", "0.6202807", "0.6202807", "0.61978114", "0.6175854", "0.6154168", "0.6142442", "0.61216164", "0.61091167", "0.60918...
0.0
-1
set up a temp file
public File writeBackFileToDvn(RConnection c, String targetFilename, String tmpFilePrefix, String tmpFileExt, int fileSize){ File tmprsltfl = null; String resultFilePrefix = tmpFilePrefix + PID + "."; String rfsffx = "." + tmpFileExt; RFileInputStream ris...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTmpFile(File tmpFile) {\n this.tmpFile = tmpFile;\n }", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempD...
[ "0.6855447", "0.6825608", "0.66367614", "0.65714943", "0.65584326", "0.6520935", "0.64703405", "0.6467098", "0.6452173", "0.6421539", "0.63299215", "0.63228345", "0.6293895", "0.6281791", "0.62295073", "0.6205961", "0.61451334", "0.6132244", "0.6121004", "0.6118037", "0.61132...
0.0
-1
Disable these tests for Redis 2 and below
@Test public void bitfieldOperations() throws Exception { assumeThat(getEnv().serverVersion[0], is(greaterThanOrEqualTo(3))); awaitIndefinitely(commandClient.del(key("bf"))); List<Long> results = awaitIndefinitely(commandClient.bitfield(key("bf"), asList(new Incrby(I05, 100L, 1L), new Get(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups = { \"Integration\" })\n public void testNonStandardPort() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class)\n .configure(RedisStore.REDIS_PORT, PortRanges.fromString(\"10000+\")));\n app.start(ImmutableList.of(loc));\n\n E...
[ "0.6645744", "0.6055408", "0.60156554", "0.5828165", "0.57768893", "0.5583059", "0.55813086", "0.5524731", "0.5492727", "0.54912764", "0.5486515", "0.54320985", "0.54061913", "0.5395535", "0.5380858", "0.53595185", "0.53595185", "0.5345423", "0.5330688", "0.5322148", "0.53050...
0.0
-1
Disable these tests for Redis 2 and below
@SuppressWarnings("unchecked") @Test public void variableResponseTypes() throws Exception { assumeThat(getEnv().serverVersion[0], is(greaterThanOrEqualTo(3))); assertThat(awaitIndefinitely(commandClient.zrem(key("Sicily"), asList(buf("Palermo"), buf("Catania")))), is(lessThanOrEqualTo(2L))); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups = { \"Integration\" })\n public void testNonStandardPort() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class)\n .configure(RedisStore.REDIS_PORT, PortRanges.fromString(\"10000+\")));\n app.start(ImmutableList.of(loc));\n\n E...
[ "0.66474336", "0.6055658", "0.60160905", "0.5827351", "0.5776508", "0.55831265", "0.5581282", "0.5526052", "0.5494488", "0.5489484", "0.5488585", "0.54325897", "0.5406967", "0.53954786", "0.5382056", "0.53599924", "0.53599924", "0.5344616", "0.53320414", "0.532225", "0.530367...
0.0
-1
Loads the full object representations of the child programs.
public void loadChildren(Map<String, Program> programs) { _children = new ArrayList<>(); for (String childName : getChildNames()) { getChildren().add(programs.get(childName)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void load() {\n\t}", "public static void load() {\n }", "public abstract void load();", "public void load() ;", "public void load();", "public void load();", "public void load() {\n }", "public void load() throws ClassNotFoundException, IOException;", "@Override\n public void load()...
[ "0.5719416", "0.5627503", "0.55981505", "0.5568266", "0.55657965", "0.55657965", "0.5529594", "0.5501362", "0.54701364", "0.541962", "0.5417842", "0.54075927", "0.54027027", "0.54010576", "0.5399618", "0.5367955", "0.5367955", "0.5356412", "0.5348403", "0.53370905", "0.533709...
0.59322864
0
Recursively calculates the weight of this program and all children.
public int getTotalWeight() { if (_cachedTotalWeight == 0) { int totalWeight = getWeight(); for (Program child : getChildren()) { totalWeight += child.getTotalWeight(); } _cachedTotalWeight = totalWeight; } return (_cachedTotalWeight); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getChildrenTotalAlternativeWeight() {\n double totalWeight = 0.0;\n for (DependencyDescription child : this.getChildren()) {\n totalWeight += child.getAlternativeProbability();\n }\n return totalWeight;\n }", "public double computeScore(Params params) {\n ...
[ "0.62410337", "0.6037984", "0.5887768", "0.58677775", "0.5824807", "0.5751047", "0.57450753", "0.5690289", "0.5680299", "0.5669035", "0.5618554", "0.55972725", "0.5557797", "0.55353767", "0.55254686", "0.5504264", "0.5503389", "0.5503389", "0.5472274", "0.54603195", "0.543550...
0.69789845
0
Searches for the 1 child with the wrong weight.
public Program getImbalancedChild() { Map<Integer, List<Program>> weightsToChildren = new HashMap<>(); for (Program child : getChildren()) { weightsToChildren.computeIfAbsent(child.getTotalWeight(), k -> new ArrayList<>()); weightsToChildren.get(child.getTotalWeight()).add(child); } // No children, or all...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdapterNode child(int searchIndex) {\n org.w3c.dom.Node node = domNode.getChildNodes().item(searchIndex);\n\n if (FormEditor.compress) {\n TreeSet ChildSet = new TreeSet(new AdapterNodeComparator());\n org.w3c.dom.NodeList childNodes = domNode.getChildNodes();\n\n ...
[ "0.5850372", "0.58388215", "0.5838182", "0.5816095", "0.57206684", "0.5625884", "0.5553005", "0.5508925", "0.54901725", "0.5440739", "0.54253024", "0.5409784", "0.540961", "0.5385708", "0.5361069", "0.5320915", "0.52834445", "0.5266294", "0.52567375", "0.5254652", "0.52461356...
0.6030364
0
Prints the program tower.
public String toString(int level) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < level; i++) { builder.append("\t"); } builder.append(getName()).append(" (").append(getWeight()).append(") (").append(getTotalWeight()).append(")\n"); for (Program child : getChildren()) { builder.append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n ...
[ "0.67012674", "0.66665286", "0.66095495", "0.65514374", "0.65395904", "0.6534808", "0.64735585", "0.6457291", "0.6439994", "0.6423201", "0.6398325", "0.6375908", "0.6355872", "0.6354643", "0.63455284", "0.63374704", "0.6331066", "0.63294965", "0.6319608", "0.6306107", "0.6296...
0.0
-1
Accessor for the unique name
public String getName() { return _name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n String getUniqueName();", "@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myName = myName.substring(index + 1);\n }\n }\n\n return myName;\n }", "public String getNam...
[ "0.76949054", "0.7350493", "0.71585184", "0.7124379", "0.71126306", "0.7091455", "0.7082302", "0.70709604", "0.70525414", "0.7018865", "0.7017653", "0.701177", "0.70029354", "0.6991076", "0.69750893", "0.6958763", "0.6957987", "0.69403815", "0.6934391", "0.6930874", "0.691788...
0.0
-1
Accessor for the weight
public int getWeight() { return _weight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight(){\n return weight;\...
[ "0.8800734", "0.8800734", "0.87621886", "0.87621886", "0.8754785", "0.87313336", "0.87260234", "0.8704698", "0.8704698", "0.8689036", "0.8688297", "0.86876184", "0.868353", "0.86759055", "0.86705106", "0.86541873", "0.8639083", "0.86169964", "0.8611086", "0.8608543", "0.85433...
0.8384145
36
Accessor for the child names
public List<String> getChildNames() { return _childNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNameChildren(int childPosition)\n {\n ExpandableListItems_Child tempChild = children.get(childPosition);\n return(tempChild.getName());\n }", "public String getChildTagName() {\n return (String)attributes.get(\"childTagName\");\n }", "PropertyName getName();", "...
[ "0.69056666", "0.65758747", "0.65588945", "0.64882565", "0.6483601", "0.6460986", "0.63707626", "0.63413084", "0.63053966", "0.6299754", "0.6291741", "0.62751055", "0.62710786", "0.62574714", "0.62574714", "0.62574714", "0.62574714", "0.62574714", "0.62574714", "0.62574714", ...
0.7714348
0
Accessor for the list of children. Must be initialized.
public List<Program> getChildren() { if (_children == null) { throw new IllegalArgumentException("Children must be initialized before calling."); } return _children; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> children() {\n return this.children;\n }", "public List<EntityHierarchyItem> children() {\n return this.innerProperties() == null ? null : this.innerProperties().children();\n }", "public ArrayList<Node> getChildren() { return this.children; }", "public ArrayList getCh...
[ "0.79643387", "0.7625142", "0.7625103", "0.7595003", "0.75519216", "0.753348", "0.7527988", "0.75160885", "0.75145066", "0.7483659", "0.74819285", "0.74721086", "0.7471484", "0.7434044", "0.7414398", "0.74110335", "0.7405097", "0.73993415", "0.738633", "0.7384896", "0.7381029...
0.0
-1
Setup Test animal and forest before each test.
@Before public final void setUp() { int numLegs = 4; animal = new Animal("Possum", "Mammal", "male", numLegs); testForest = new Forest("Hamner Forest Park", "Alpine Forest", "Warm, Mountain-like"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}", "@BeforeEach\n\tpublic void setup() {\n...
[ "0.7248763", "0.72430426", "0.7233797", "0.7204463", "0.7190108", "0.7150675", "0.7150675", "0.7150675", "0.70682645", "0.7028974", "0.69391036", "0.6938692", "0.69087875", "0.6884584", "0.6883129", "0.68758905", "0.6858967", "0.6851903", "0.6849583", "0.6846775", "0.68376064...
0.77657276
0
Confirm that MoveTo for Animal only moves animals to Forests.
@Test public final void testMoveTo() { Room testRoom = new Room("247", 2, "Computer Lab"); animal.moveTo(testForest); assertEquals("Move To Forest", animal.location(), testForest); animal.moveTo(testRoom); assertEquals("Move To Room", animal.location(), testForest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean canMoveTo(Case Location);", "@Test\n public void isMoveActionLegalFor()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final CheckersEnvironment environment = crea...
[ "0.61176604", "0.5924558", "0.5794134", "0.57069814", "0.5667661", "0.565692", "0.5639185", "0.55877656", "0.55608", "0.54865855", "0.5484706", "0.54540455", "0.5433673", "0.54312027", "0.54175043", "0.53986293", "0.53612953", "0.53405344", "0.53346777", "0.531973", "0.531818...
0.6362375
0
Test that eat for animals in forests consumes the specified food item in the forest.
@Test public final void testEat() { Food testFood = new Food("White Bread", "Yeast Bread", "Pams Toast sliced", false); testForest.addThing(testFood); assertTrue("Food in Forest", testForest.contents().contains(testFood)); animal.moveTo(testForest); animal.eat(testFood); assertFalse("Foo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eatFruit(Fruit fruit) {\n raiseFoodLevel(30);\n }", "public boolean animalFood(Entity e, Material item){\r\n\t\t\r\n\t\tif(e instanceof Cow || e instanceof Horse || e instanceof Pig || e instanceof Sheep ){\r\n\t\t\tif(item == Material.HAY_BLOCK){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t...
[ "0.65657204", "0.65454125", "0.6319383", "0.6147356", "0.60614693", "0.6047957", "0.59388715", "0.59068394", "0.59014297", "0.58517694", "0.58496034", "0.5796155", "0.5760498", "0.57594585", "0.5753925", "0.57488686", "0.57158303", "0.5713619", "0.5708383", "0.56982744", "0.5...
0.7230623
0
Confirm that toString produces the correct string details.
@Test public final void testToString() { animal.moveTo(testForest); assertEquals(animal.toString(), "[Animal: Possum, Type: Mammal, Gender: male, Legs: 4" + " is in " + testForest.toString() + "]"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testToString_True() {\n\n\t\tString result = \"\";\n\t\tresult = \"\\n*************Title: \" + book1.getTitle();\n\t\tresult += \"\\n*************Author: \" + book1.getAuthor();\n\t\tresult += \"\\n*************Publication Year: \" + book1.getPublicationDate();\n\t\tresult += \"\\n************...
[ "0.75851655", "0.74549174", "0.7437905", "0.74111605", "0.73614746", "0.73227704", "0.718329", "0.7170817", "0.7138549", "0.71106327", "0.7072562", "0.7055006", "0.70037603", "0.70006394", "0.6998778", "0.69774926", "0.69682235", "0.69682235", "0.69682235", "0.69682235", "0.6...
0.6941714
47
TODO Autogenerated method stub
@Override public void onException(Exception arg0) { }
{ "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 void onDeletionNotice(StatusDeletionNotice arg0) { }
{ "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 void onScrubGeo(long arg0, long arg1) { }
{ "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 void onTrackLimitationNotice(int arg0) { }
{ "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.66730285", "0.65698135", "0.6524193", "0.64818907", "0.6477969", "0.6459897", "0.64150065", "0.6378023", "0.62785167", "0.6256323", "0.62391806", "0.6225302", "0.6203955", "0.6196986", "0.6196986", "0.6193411", "0.6188864", "0.6175446", "0.61352557", "0.6129083", "0.608151...
0.0
-1
TODO Autogenerated method stub
@Override public void onStallWarning(StallWarning arg0) { }
{ "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