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
verfies that userprovided date exists
public static boolean isValidDate(String date) { DateTimeFormatter f = DateTimeFormatter.ofPattern( "uuuu-MM-dd" ); try { LocalDate localDateBad = LocalDate.parse( (CharSequence) date , f ); } catch ( DateTimeParseException e ) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDate();", "boolean isSetFoundingDate();", "boolean isSetDate();", "boolean hasStartDate();", "public boolean hasDate() {\n return true;\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n...
[ "0.7475941", "0.73652434", "0.70762944", "0.69757175", "0.6805621", "0.6766508", "0.67614", "0.6754595", "0.6679524", "0.66694903", "0.6582997", "0.6582038", "0.6491525", "0.6431794", "0.6403202", "0.63824856", "0.6344069", "0.63314456", "0.63260436", "0.63015425", "0.6277517...
0.0
-1
Function to find minimum adjacent difference arr[]: input array n: size of array
public static int minAdjDiff(int arr[], int n) { // Your code here int min = Math.abs(arr[0] - arr[1]); for(int i =1;i<n-1;i++){ min = Math.min(min, Math.abs(arr[i]-arr[i+1])); } min = Math.min(min, Math.abs(arr[n-1]-arr[0])); return min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<List<Integer>> minimumAbsDifference(int[] arr) {\n\n int minNum = 10000000;\n int maxNum = -10000000;\n for (int num : arr) {\n if (num < minNum)\n minNum = num;\n\n if (maxNum < num)\n maxNum = num;\n }\n int[] cnt ...
[ "0.7004706", "0.6957959", "0.690075", "0.6702543", "0.6622652", "0.65230197", "0.650036", "0.6495584", "0.6439413", "0.6417126", "0.63603115", "0.6354568", "0.6292341", "0.62789017", "0.6210164", "0.6179139", "0.61233556", "0.61160773", "0.6055306", "0.6046214", "0.60265124",...
0.8210796
0
This method was generated by MyBatis Generator. This method corresponds to the database table en_room_pic_info
int deleteByPrimaryKey(Integer r_p_i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SysPic selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "PicInfo selectByPrimaryKey(Integer r_p_i);", "EnterprisePicture selectByPrimaryKey(Integer id);", "SportAlbumPicture selectByPrimaryKey(St...
[ "0.6227567", "0.60861313", "0.6002314", "0.5780564", "0.5670781", "0.56137055", "0.56115085", "0.5575638", "0.5550091", "0.55008566", "0.54926556", "0.54190826", "0.53493005", "0.5332465", "0.5307597", "0.52956295", "0.520774", "0.52019686", "0.5161683", "0.5135673", "0.51352...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table en_room_pic_info
int insert(PicInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SysPic selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "PicInfo selectByPrimaryKey(Integer r_p_i);", "EnterprisePicture selectByPrimaryKey(Integer id);", "SportAlbumPicture selectByPrimaryKey(St...
[ "0.6226258", "0.6088974", "0.6001063", "0.5779212", "0.5669009", "0.5611659", "0.56111395", "0.5576598", "0.5549238", "0.54988503", "0.54916227", "0.5421782", "0.53472024", "0.5332515", "0.5306093", "0.52947956", "0.5206095", "0.5200435", "0.5159608", "0.51350516", "0.5134069...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table en_room_pic_info
int insertSelective(PicInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SysPic selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "PicInfo selectByPrimaryKey(Integer r_p_i);", "EnterprisePicture selectByPrimaryKey(Integer id);", "SportAlbumPicture selectByPrimaryKey(St...
[ "0.6226355", "0.60860795", "0.600119", "0.5779786", "0.56691056", "0.5612078", "0.5610757", "0.55753225", "0.55488944", "0.5499441", "0.5491881", "0.54194486", "0.5347817", "0.53316385", "0.530762", "0.5295229", "0.5205654", "0.5199045", "0.5161192", "0.5135243", "0.5135105",...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table en_room_pic_info
PicInfo selectByPrimaryKey(Integer r_p_i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SysPic selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "EnterprisePicture selectByPrimaryKey(Integer id);", "SportAlbumPicture selectByPrimaryKey(String id);", "@Query(\"select * from ScenicPic ...
[ "0.6227411", "0.6086806", "0.57807857", "0.5669839", "0.5612249", "0.56110543", "0.5578116", "0.55503744", "0.5500835", "0.5491491", "0.5420619", "0.53485346", "0.5333855", "0.5308208", "0.5296143", "0.52060455", "0.5200744", "0.5162316", "0.51363516", "0.5135146", "0.5119349...
0.6002151
2
This method was generated by MyBatis Generator. This method corresponds to the database table en_room_pic_info
int updateByPrimaryKeySelective(PicInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SysPic selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "PicInfo selectByPrimaryKey(Integer r_p_i);", "EnterprisePicture selectByPrimaryKey(Integer id);", "SportAlbumPicture selectByPrimaryKey(St...
[ "0.6227567", "0.60861313", "0.6002314", "0.5780564", "0.5670781", "0.56137055", "0.56115085", "0.5575638", "0.5550091", "0.55008566", "0.54926556", "0.54190826", "0.53493005", "0.5332465", "0.5307597", "0.52956295", "0.520774", "0.52019686", "0.5161683", "0.5135673", "0.51352...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table en_room_pic_info
int updateByPrimaryKey(PicInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SysPic selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<String> getImg(int room_id, String type_img) {\n\t\treturn roomDao.getImg(room_id, type_img);\n\t}", "PicInfo selectByPrimaryKey(Integer r_p_i);", "EnterprisePicture selectByPrimaryKey(Integer id);", "SportAlbumPicture selectByPrimaryKey(St...
[ "0.6226258", "0.6088974", "0.6001063", "0.5779212", "0.5669009", "0.5611659", "0.56111395", "0.5576598", "0.5549238", "0.54988503", "0.54916227", "0.5421782", "0.53472024", "0.5332515", "0.5306093", "0.52947956", "0.5206095", "0.5200435", "0.5159608", "0.51350516", "0.5134069...
0.49392432
45
Resta las pastillas que hay en el laberinto a medida que el pacman se las va comiendo.
public int restarCantidadPastillas(){ return cantidadPastillas--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moverPlataformas(){\n\t\tfor ( int x=0 ; x < 2; x++){\n\t\t\tquitarPoder(x);\n\t\t\tgame.moverPersonaje(x);\n\t\t}\n\t}", "public void trancribirPistas() {\r\n\t\t\r\n\t\tfor (int x = 0; x<manejadorArchivos.getPistas().size();x++) {\r\n\t\t\t\r\n\t\t\tpistas.add(manejadorArchivos.getPistas().get(x));...
[ "0.58642364", "0.57797956", "0.5741471", "0.5735337", "0.5720995", "0.57150733", "0.56755424", "0.56500685", "0.56310964", "0.5620933", "0.5610434", "0.56056505", "0.55899733", "0.55803823", "0.55090326", "0.54928946", "0.54776204", "0.54688984", "0.5462846", "0.54493874", "0...
0.0
-1
Agrega una fruta en el laberinto, se usa luego de determinada cantidad de tiempo.
public void agregarFruta(){ contenidos[14][17] = new Fruta(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }", "public void liquidarEmpleado(F...
[ "0.6257406", "0.5903193", "0.5860495", "0.58569586", "0.58196783", "0.5794102", "0.5716241", "0.5652363", "0.56401265", "0.5594211", "0.55875516", "0.5587106", "0.5572604", "0.5545295", "0.55388236", "0.5516131", "0.55055046", "0.54573005", "0.54558516", "0.54177773", "0.5416...
0.5832598
4
Starts a new game with the given FEN.
static Game newGame(Player player1, Player player2, String fen) { return new GameImpl(player1, player2, fen); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void startGame()\r\n\t{\r\n\t\tnew ModeFrame();\r\n\t}", "public void startNewGame() {\n\t\tif (this.currentPlayer != -1) {\n\t\t\tthrow new RuntimeException(\"The game has already started.\");\n\t\t}\n\n\t\tif (this.players.size() == 0) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"The game ca...
[ "0.6568866", "0.633762", "0.6145673", "0.59719914", "0.59563506", "0.5940403", "0.5916812", "0.5886026", "0.58852774", "0.5854438", "0.58521783", "0.5849148", "0.5844627", "0.58412486", "0.58192825", "0.5810372", "0.57925814", "0.57764786", "0.5776244", "0.5769681", "0.575593...
0.6273424
2
Starts a new game.
static Game newGame(Player player1, Player player2) { return new GameImpl(player1, player2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "public void startGame() {\r\n this.setupGame();\r\n }", "public void startNewGame() {\n\t\tif (this.currentPlayer != -1) {\n\t\t\tthrow new RuntimeException(\"The game has already started.\");\n\t\t}\n\...
[ "0.80187374", "0.7887341", "0.77853656", "0.7733701", "0.7730518", "0.7694469", "0.7658981", "0.76371074", "0.7590808", "0.7529368", "0.7445159", "0.74088305", "0.73959553", "0.7391723", "0.7389826", "0.7389826", "0.7389826", "0.7385825", "0.73571384", "0.735665", "0.7340911"...
0.0
-1
Returns the current Player.
Player getCurrentPlayer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public ServerPlayer getCurrentPlayer() {\r\n\t\treturn this.currentPlayer;\r\n\t}", "public Player getPlayer() {\r\n return world.getPlayer();\r\n ...
[ "0.8879135", "0.8879135", "0.8720311", "0.8684197", "0.86606616", "0.86313343", "0.86276233", "0.8585006", "0.85754025", "0.85213673", "0.84356254", "0.8413243", "0.83611214", "0.836071", "0.8358843", "0.8324906", "0.8297136", "0.8297136", "0.8297136", "0.8297136", "0.8297136...
0.82277983
27
Returns the last Player.
Player getDormantPlayer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Player getCurrPlayer(){\n\t\treturn players.get(curr);\n\t}", "public Cards getLastCard() {\n return playedCards.get(playedCards.size()-1);\n }", "public Player getRightPlayer() {\r\n\t\tif(getWhoseTurn() - 2 < 0) {\r\n\t\t\treturn players.get(players.size() - 1);\r\n\t\t}\r\n\t\telse {...
[ "0.7336195", "0.7288136", "0.71573126", "0.70590025", "0.7055823", "0.6959709", "0.69070506", "0.68976235", "0.68656015", "0.68656015", "0.68579197", "0.68414897", "0.68360573", "0.68246555", "0.6778716", "0.676869", "0.67664564", "0.67479426", "0.67323834", "0.67243624", "0....
0.0
-1
Returns all possible moves for a player.
List<Move> getLegalMoves(Player player);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Move> getMovesForPlayer(Player player) {\n\t\tfinal Set<Move> moveList = new HashSet<Move>();\n\t\tfor (Map.Entry<Position, Piece> entry : positionToPieceMap.entrySet()) {\n\t\t\tfinal Position positionFrom = entry.getKey();\n\t\t\tfinal Piece piece = entry.getValue();\n\t\t\tif (player == piece.getOwne...
[ "0.74146914", "0.7398428", "0.6916818", "0.6900997", "0.66503334", "0.66167927", "0.6591039", "0.6542648", "0.6510128", "0.6504331", "0.64602846", "0.6432252", "0.64268917", "0.6397344", "0.6386405", "0.6382053", "0.6353914", "0.632844", "0.6313678", "0.63020635", "0.6296172"...
0.7582761
0
Retuns the current board as a string.
String getBoardString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBoard() {\r\n\t\tString r = \"\";\r\n\t\tfor (int y = 0; y < 3; y++) {\r\n\t\t\tfor (int x = 0; x < 3; x++) {\r\n\t\t\t\tr = r + board[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public String toString()\n\t{\n\t\tString s = \"\";\n\t\tfor(int r = 0; r < board.length; r++)\n\t\t{\n\t\t...
[ "0.834287", "0.79493904", "0.78302455", "0.77541566", "0.77467245", "0.77438974", "0.7742452", "0.77234113", "0.76909447", "0.7689286", "0.7660723", "0.7645146", "0.7608319", "0.75960135", "0.75927246", "0.75206995", "0.75187665", "0.75126946", "0.74971664", "0.74943626", "0....
0.8355081
0
Log.e(Constant.MAIN_LOG, tHttpPage.getPageTotal() + "");
@Override public T call(HttpPage<T> tHttpPage) { if (!tHttpPage.getCode().equals("00")) { throw new ApiException(tHttpPage.getCode()); } return tHttpPage.getResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getAmountPage();", "public String getTotalPage() {\r\n return totalPage;\r\n }", "int getPagesAmount();", "@Override\r\n\t\tpublic int getCurrentpage() throws Exception\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "public static int getTotalPage() {\n List<WebElement> PAGINATION = findE...
[ "0.6914778", "0.63489866", "0.6275213", "0.59681875", "0.59500134", "0.58766174", "0.5831466", "0.580111", "0.5787155", "0.5758351", "0.57292", "0.5723332", "0.57213014", "0.57091343", "0.5654179", "0.5625503", "0.5609502", "0.55900836", "0.55853486", "0.55853486", "0.5585348...
0.0
-1
never happens as already handled
public int execute( ModelImpl model ) throws Exception { return STATUS_PAGE_NOT_FOUND; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isHandled() {\n\t\treturn true;\r\n\t}", "@Override\n public boolean isHandled() {\n return handled;\n }", "protected void afterActiveHandled() {\n\t}", "@Override\n\tpublic void initiateHandling() {\n\t}", "@Override\n\tpublic void initiateHandling() {\n\t}", "...
[ "0.7058149", "0.67302567", "0.6613174", "0.62500566", "0.62500566", "0.62500566", "0.6184525", "0.6184525", "0.6184525", "0.6184525", "0.6064645", "0.6031178", "0.6027964", "0.5970588", "0.59680873", "0.5959335", "0.5946339", "0.59401155", "0.5918813", "0.5914061", "0.5913745...
0.0
-1
TODO Autogenerated method stub
private static int playblackjack(int i, int j) { if (i > 21 && j > 21) { return 0; } if (i > 21) { return j; } if (j > 21) { return i; } if (i > j) { return i; } else { return j; } }
{ "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
Created by Main Server on 28.12.2016.
public interface ModelFactory <ModelObject> { public void createElement(ModelObject object); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\...
[ "0.6046734", "0.57254076", "0.5694772", "0.56544393", "0.5598509", "0.55940074", "0.5577986", "0.55733687", "0.5572704", "0.5572704", "0.55476475", "0.55464786", "0.553809", "0.553809", "0.553809", "0.553809", "0.553809", "0.553809", "0.5532628", "0.55216783", "0.5517684", ...
0.0
-1
Replace the changed fields and update the contents of inputFileContent to the data file
public static void architect() { NewProject.architect_name = getInput("Please enter the NEW name of the architect: "); NewProject.architect_tel = getInput("Please enter the NEW telephone number of the architect: "); NewProject.architect_email = getInput("Please enter the NEW email of the a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDataFile(DataFile dataFile) {\n updateMeeting(dataFile.getMeeting());\n }", "void updateFile() throws IOException;", "public int update(FFileInputDO FFileInput) throws DataAccessException;", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\...
[ "0.6363993", "0.6327591", "0.6238817", "0.60848284", "0.5953929", "0.5840126", "0.580509", "0.56849295", "0.55798477", "0.55735934", "0.55515474", "0.5514112", "0.54922724", "0.5472793", "0.5466484", "0.5448518", "0.5432361", "0.5427619", "0.54107314", "0.53919333", "0.539107...
0.0
-1
Replace the changed fields and update the contents of inputFileContent to the data file
public static void contractors(){ NewProject.contract_name = getInput("Please enter the NEW name of the contractor:"); NewProject.contract_tel = getInput("Please enter the NEW telephone number of the contractor:"); NewProject.contract_email = getInput("Please enter the NEW email of the con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDataFile(DataFile dataFile) {\n updateMeeting(dataFile.getMeeting());\n }", "void updateFile() throws IOException;", "public int update(FFileInputDO FFileInput) throws DataAccessException;", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\...
[ "0.63659966", "0.63275295", "0.62384194", "0.60855085", "0.5955166", "0.58391285", "0.58047044", "0.5685859", "0.5579543", "0.5572445", "0.5551324", "0.5513216", "0.5493238", "0.54738164", "0.5466045", "0.5448318", "0.54337513", "0.54272074", "0.5411458", "0.53925943", "0.539...
0.0
-1
Replace the changed fields and update the contents of inputFileContent to the data file
public static void dateDue() { Date date = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); String strDate = formatter.format(date); NewProject.due_date = getInput("Please enter the due date for this project(dd/mm/yyyy): "); UpdateData.updateDueD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDataFile(DataFile dataFile) {\n updateMeeting(dataFile.getMeeting());\n }", "void updateFile() throws IOException;", "public int update(FFileInputDO FFileInput) throws DataAccessException;", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\...
[ "0.63654107", "0.6328003", "0.6237628", "0.60860044", "0.5955357", "0.5837597", "0.5805012", "0.5685616", "0.55792284", "0.55723965", "0.55527437", "0.5512726", "0.549281", "0.5472843", "0.5466059", "0.54492396", "0.5433361", "0.5426097", "0.5410725", "0.5392123", "0.53916186...
0.0
-1
Replace the changed fields and update the contents of inputFileContent to the data file
public static void amountPaid(){ NewProject.tot_paid = Double.parseDouble(getInput("Please enter NEW amount paid to date: ")); UpdateData.updatePayment(); updateMenu(); //Return back to previous menu. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateDataFile(DataFile dataFile) {\n updateMeeting(dataFile.getMeeting());\n }", "void updateFile() throws IOException;", "public int update(FFileInputDO FFileInput) throws DataAccessException;", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\...
[ "0.63654107", "0.6328003", "0.6237628", "0.60860044", "0.5955357", "0.5837597", "0.5805012", "0.5685616", "0.55792284", "0.55723965", "0.55527437", "0.5512726", "0.549281", "0.5472843", "0.5466059", "0.54492396", "0.5433361", "0.5426097", "0.5410725", "0.5392123", "0.53916186...
0.0
-1
Creates a new delay with a specified trigger time. This constructor is identical to calling the following: new Delay(delay,0);
public Delay(float delay) { this(delay,0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Delay(int sd){\n super(\"delay\");\n delay = sd;\n\n }", "public Delay(float delay, int repeat)\n\t{\n\t\tsetDelay(delay);\n\t\tdelayCount=0f;\n\t\trepeatMax=repeat;\n\t\trepeatCount=0;\n\t}", "public T setDelay(float delay)\n\t{\n\t\tthis.delay = delay;\n\t\treturn (T) this;\n\t}", "...
[ "0.69936246", "0.6815893", "0.681308", "0.67156726", "0.66570514", "0.6611817", "0.6592031", "0.65307385", "0.6522355", "0.64032733", "0.6362342", "0.63609475", "0.6315806", "0.6300559", "0.6297515", "0.6238388", "0.62365353", "0.62223715", "0.61834055", "0.6161507", "0.61402...
0.78495497
0
Creates a new delay with a specified trigger time and repetition count. This delay will cease to function when the amount of triggers has exceeded the repeat count.
public Delay(float delay, int repeat) { setDelay(delay); delayCount=0f; repeatMax=repeat; repeatCount=0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T repeat(int count, float delay)\n\t{\n\t\tif (isStarted())\n\t\t{\n\t\t\tLttl.Throw(\"You can't change the repetitions of a tween or timeline once it is started\");\n\t\t}\n\t\tif (delay < 0)\n\t\t{\n\t\t\tLttl.Throw(\"Repeat delay can't be negative\");\n\t\t}\n\t\trepeatCnt = count;\n\t\tthis.repeatDelay ...
[ "0.6261507", "0.5554471", "0.5543828", "0.5530267", "0.5462399", "0.5415895", "0.53040683", "0.5273599", "0.5243376", "0.5218663", "0.51603526", "0.5138837", "0.5133033", "0.5108299", "0.50880986", "0.50670105", "0.5064105", "0.5044791", "0.5032091", "0.5028048", "0.5012228",...
0.65074575
0
Sets the delay timing. This will not reset the internal delay count.
public void setDelay(float time) { delayMax=time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDelay(int delay)\n {\n this.delay = delay;\n }", "public void setDelay(int delay) {\n this.delay = delay;\n }", "public void setDelay(int delay) {\n\t\ttimer.setInitialDelay(delay);\n\t}", "public void setDelay(double clock);", "public void setDelay(long d){delay = d;}...
[ "0.7899251", "0.78579366", "0.78385437", "0.7803715", "0.7764255", "0.7578456", "0.7533186", "0.747909", "0.73823655", "0.73463833", "0.7258081", "0.7184694", "0.7144212", "0.71046937", "0.7077414", "0.6974919", "0.69663227", "0.6951664", "0.6909298", "0.6836549", "0.6780889"...
0.69699115
16
Hard resets the delay by settings all counters back to 0. This will also enable the delay.
public void reset() { delayCount = 0f; repeatCount = 0; enabled = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetCounters() {\n setErrorCounter(0);\n setDelayCounter(0);\n }", "private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }", "public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}", "public void reset()\n...
[ "0.6878444", "0.66579145", "0.6617009", "0.6560841", "0.6553582", "0.6525572", "0.64852107", "0.64837617", "0.6432514", "0.6414023", "0.636634", "0.63450706", "0.6303893", "0.62906915", "0.62874746", "0.62581766", "0.62379116", "0.6224388", "0.6222501", "0.62192464", "0.61823...
0.76532024
0
Call enterClicked() when pressed
@Override public void onClick(View v) { String input = Text.getText().toString(); Intent intent = new Intent(); intent.putExtra("?", input); setResult(RESULT_OK, intent); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void enterPressed()\n\t{\n\t\t// Call the enter method if the enter key was pressed\n\t\tif (showCaret)\n\t\t\tonSubmit(text.getText().substring(0, text.getText().length() - 1));\n\t\telse onSubmit(text.getText());\n\t}", "public String enterPressed();", "private void clickEnter(){\n\t\tString comman...
[ "0.7964847", "0.7875948", "0.73241216", "0.73136616", "0.72861457", "0.7128472", "0.6910671", "0.69084454", "0.6868653", "0.6841841", "0.68339056", "0.68294066", "0.6733812", "0.66889113", "0.66793543", "0.6612968", "0.6610967", "0.6594852", "0.6572485", "0.6506041", "0.65013...
0.0
-1
Create a default action using a ListView as the selection tool in the expanded state, and a combo box otherwise, with the default customization action.
public static <T> FolderPanel<T> create(String folder, Class<T> selectionType) { return create(folder, selectionType, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; //...
[ "0.58235073", "0.58235073", "0.5747465", "0.5703662", "0.5703662", "0.5703662", "0.5688454", "0.56437784", "0.560666", "0.55138105", "0.54741985", "0.54093045", "0.5375858", "0.53725463", "0.5354195", "0.53490907", "0.5341077", "0.5335554", "0.531762", "0.5317074", "0.5313067...
0.0
-1
Create a default action using a ListView as the selection tool in the expanded state, and a combo box otherwise, with the default customization action.
public static <T> FolderPanel<T> create(String folder, Class<T> selectionType, Consumer<Lookup> customizeAction) { return create(folder, selectionType, "", customizeAction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; //...
[ "0.5822778", "0.5822778", "0.5748068", "0.57028687", "0.57028687", "0.57028687", "0.56876415", "0.564315", "0.56085795", "0.5512862", "0.5474224", "0.54100776", "0.5376957", "0.53727823", "0.5353767", "0.53485817", "0.5340975", "0.53346336", "0.531841", "0.5316582", "0.531490...
0.0
-1
This method adds new tabs to the tab pane
public void addTab(String filename) { MinLFile nminl = new MinLFile(filename); JComponent panel = nminl; tabbedPane.addTab(filename, null, panel, filename); tabbedPane.setMnemonicAt(0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "public void addNewTab() {\n int count = workspaceTabs.getComponent...
[ "0.79866046", "0.77698094", "0.7637104", "0.7609997", "0.7410794", "0.73657286", "0.73619086", "0.7357617", "0.7291783", "0.72261935", "0.71485823", "0.7049428", "0.70194364", "0.6985553", "0.6735362", "0.6713877", "0.6648356", "0.6642767", "0.65923995", "0.65859544", "0.6544...
0.72968245
8
===========================================================================================// THIS IS WHERE THE MAGIC HAPPENS The interpreter method the mode variable designates if the code is a part of a function method. 0 not a function 1 function
public void interpretorMainMethod(String code, int mode) { //TODO comments // Used to count the bracket balance int bracket_depth = 0; // Loop variables, loop_active designates whether the current line // is a part of a loop, loop_length designates how many times the loop // will run boolean loo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMode() { return \"FUNC\"; }", "public T mode();", "public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }", "public void changeMode() {\n methodMode = !methodMode;\n }", "public abstract int code();", "public boolean isFunction() { return isFunc; }", ...
[ "0.7172271", "0.6005476", "0.59352523", "0.5903379", "0.58766896", "0.5761769", "0.57598084", "0.56517327", "0.5619204", "0.5595777", "0.5595777", "0.5595777", "0.5584112", "0.55117065", "0.5509167", "0.5508309", "0.5483764", "0.5473079", "0.5433454", "0.5413399", "0.5408989"...
0.769643
0
Helper methods functionHandler This method changes the variable names in the declared function from the ones specified by the coder to ones whose names match the positions of the variables that follow the function name on call. Example: code can be: f.add x y < first line, the variable names are not saved, only the nam...
public String functionHandler(LinkedList<String> argumentList, String code, String mode) { Scanner code_scanner = new Scanner(code); String code_line; String final_code = ""; while(code_scanner.hasNextLine()) { code_line = code_scanner.nextLine(); String code_word = ""; for(int i=0; i<cod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void function() throws ParseException {\n String name = \"\";\n LinkedList<String> params = new LinkedList<String>();\n jj_consume_token(TO);\n jj_consume_token(VARIABLE);\n name = token.image;\n label_8:\n while (true) {\n if (jj_2_44(4)) {\n ;\n } else {\n br...
[ "0.5825593", "0.5701542", "0.5676425", "0.56076324", "0.55884606", "0.52778745", "0.52621704", "0.5233046", "0.5181671", "0.5149665", "0.51434565", "0.51098204", "0.51050705", "0.5057203", "0.50512815", "0.5033271", "0.50310683", "0.5029557", "0.50050527", "0.49976957", "0.49...
0.5967262
0
Returns the string index value for the last character of a word starting at location 'offset' in the passed string
public static int nextWordEndIndex(String line, int offset) { int word_end_index = offset; for(int i=offset; i<line.length(); i++) { if(line.charAt(i) != ' ') word_end_index++; else i = line.length(); } return word_end_index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public String findWord(int offset) {\r\n \t\tIRegion wordRegion = findWordRegion(offset);\r\n \t\tString word = null;\r\n \t\ttry {\r\n \t\t\tword = this.get(wordRegion.getOffset(), wordRegion.getLength());...
[ "0.6710235", "0.6622486", "0.6435917", "0.640514", "0.6367231", "0.6361095", "0.6358843", "0.62697047", "0.6268536", "0.6224099", "0.6130291", "0.60736966", "0.59317344", "0.59293926", "0.5922854", "0.58876944", "0.5840098", "0.579861", "0.57175875", "0.57003963", "0.56727105...
0.75445235
0
Returns true if the passed string is a number
public boolean isNumber(String str) { return str.matches("-?\\d+(\\.\\d+)?"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r...
[ "0.8185783", "0.81450176", "0.80482", "0.80454266", "0.7989678", "0.7940366", "0.7940158", "0.7939291", "0.7929306", "0.7902319", "0.7897434", "0.78849155", "0.78808594", "0.78620577", "0.785922", "0.7858195", "0.7848942", "0.7840908", "0.7835716", "0.78008807", "0.7769692", ...
0.78448474
17
File loader method, loadfile command will grab the defined variables and functions from a specified file and put them in the interpreter variable maps.
public void fileLoaderMethod(String filename) { String fileloc = ""; if(!prf.foldername.getText().equals("")) fileloc += prf.foldername.getText()+"/"; fileloc += filename; File fl = new File(fileloc); String code = ""; if(!fl.exists()) { JOptionPane.showMessageDialog(null, "The specified f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void load (String argFileName) throws IOException;", "void load(File file);", "public void load(File source);", "public void load (File file) throws Exception;", "@Test\n\tpublic void testLoad() {\n\t\tWriter writer = null ;\n\t\t\n\t\tString sourceFilePath = \"testLoad1.lisp\" ;\n\t\t\n\t\t//create...
[ "0.66969824", "0.6603991", "0.6471524", "0.62926555", "0.62102365", "0.61848927", "0.61703527", "0.6166354", "0.6055925", "0.60468316", "0.59584194", "0.5945343", "0.5903939", "0.5861531", "0.58580875", "0.5781122", "0.5768547", "0.5768547", "0.57673156", "0.5735967", "0.5691...
0.60550463
9
===========================================================================================// Creates a new tab
public void newFile() { String filename = "untitled"; filename = JOptionPane.showInputDialog(null, "Enter the new file name"); addTab(filename+".minl"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = ta...
[ "0.7661875", "0.7048672", "0.69150656", "0.6863676", "0.68272007", "0.66255814", "0.657628", "0.6574239", "0.65608287", "0.6535196", "0.65319335", "0.6452988", "0.6439763", "0.6387159", "0.6384567", "0.6323327", "0.63040954", "0.62873936", "0.6281589", "0.6233724", "0.623251"...
0.60355276
33
Save the contents of the selected tab into a file
public void saveFile() { String fileloc = ""; if(!prf.foldername.getText().equals("")) fileloc += prf.foldername.getText()+"/"; fileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;; File fl = new File(fileloc); try { if(fl.exists()) { int option = JOptionPane.showConfirmDialog(n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveCurrentFile(String file) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tPath path = Paths.get(file);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.write(path, editor.getText().getBytes(StandardCharsets.UTF_8));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tJ...
[ "0.68775046", "0.6743666", "0.66710544", "0.66687644", "0.65634286", "0.6533992", "0.6510273", "0.6389216", "0.6322492", "0.63184875", "0.62749153", "0.62454164", "0.6192423", "0.61851996", "0.61459494", "0.6122406", "0.6112422", "0.60582197", "0.6054573", "0.6036405", "0.603...
0.6092724
17
Loads a file into a tab
public void loadFile() { String fileloc = ""; if(!prf.foldername.getText().equals("")) fileloc += prf.foldername.getText()+"/"; String filename = JOptionPane.showInputDialog(null,"Enter the filename."); fileloc += filename; File fl = new File(fileloc); if(!fl.exists()) { JOptionPane.showMessa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadSet() {\n int returnVal = fc.showOpenDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n System.out.println(\"Opening: \" + file.ge...
[ "0.6724137", "0.66382444", "0.6466505", "0.6387585", "0.6370532", "0.6343823", "0.6252861", "0.6235504", "0.6201247", "0.619695", "0.6193581", "0.61204195", "0.61121106", "0.61053866", "0.60996705", "0.60788333", "0.60531455", "0.6011371", "0.59982", "0.5986307", "0.59510595"...
0.7202795
0
Runs the code in the selected tab
public void runProgram() { JTextPane code = ((MinLFile) tabbedPane.getSelectedComponent()).CodeArea; minc.consolearea.setText(""); interpretorMainMethod(code.getText(), 0); double_variables.clear(); string_variables.clear(); functions.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tabSelected();", "public void applyTab();", "public void runEditorNew()\r\n\t{\r\n\t\tmainFrame.runEditorNew();\r\n\t}", "@Override\n\tpublic void selectTab(Tab tab) {\n\t\t\n\t}", "public void runEditorExisting()\r\n\t{\r\n\t\tmainFrame.runEditorExisting();\r\n\t}", "public void tabChange() ...
[ "0.6423287", "0.6242049", "0.62088233", "0.6146969", "0.6100849", "0.6079502", "0.60616183", "0.5989334", "0.590393", "0.58471394", "0.58374846", "0.5833371", "0.5824643", "0.5803829", "0.5756774", "0.5746572", "0.57462364", "0.57452893", "0.5732637", "0.57268536", "0.5717815...
0.689814
0
return super.onJsPrompt(view, "", message, defaultValue, result);
@Override public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, final JsPromptResult result) { final EditText textbox = new EditText(view.getContext()); textbox.setText(defaultValue); AlertDialog dialog = new AlertDialog.Buil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPrompt(){ return _prompt ; }", "protected abstract void fillPromptText();", "protected abstract JTextComponent createPromptComponent();", "public String getPrompt() { return prompt; }", "abstract void mainPrompt();", "public abstract void printPromptMessage();", "public void setPrompt(...
[ "0.70921147", "0.65109074", "0.6470889", "0.63873833", "0.6370502", "0.6368333", "0.63443", "0.6332751", "0.626014", "0.6257403", "0.6223207", "0.6152803", "0.6114776", "0.6067822", "0.60319644", "0.6030865", "0.60238075", "0.5950126", "0.59331363", "0.5929675", "0.58919823",...
0.76263815
0
Creates a WordNet using files form SYNSETFILENAME and HYPONYMFILENAME
public WordNet(String synsetFilename, String hyponymFilename) { synsets = new TreeMap<Integer, TreeSet<String>>(); numVertices = 0; In syns = new In(synsetFilename); while (syns.hasNextLine()) { numVertices++; String line = syns.readLine(); String[] sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WordNet(String synsetFilename, String hyponymFilename) {\n In synsets = new In(synsetFilename);\n In hyponyms = new In(hyponymFilename);\n int count = 0;\n while (synsets.hasNextLine()) {\n String line = synsets.readLine();\n String[] linesplit = line.split(...
[ "0.711729", "0.7034695", "0.69543165", "0.6637254", "0.6558143", "0.651431", "0.6410576", "0.63448477", "0.61656743", "0.5998935", "0.5988623", "0.59797305", "0.592662", "0.58192426", "0.5804029", "0.5794396", "0.5755277", "0.5743108", "0.5711886", "0.5706388", "0.5635108", ...
0.6955885
2
/ Returns true if NOUN is a word in some synset.
public boolean isNoun(String noun) { for (TreeSet<String> hs: synsets.values()) { for (String s: hs) { if (noun.equals(s)) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isNoun (String word){\n for(int i = 0; i< SynSets.length; i++){\n if(SynSets[0][1].contains(\" \"+word+\" \")) return true;\n }\n return false;\n }", "public boolean isNoun(String word) {\n return synsetList.containsKey(word);\n }", "public boolean isNoun(String word)\n {\n ...
[ "0.8290014", "0.79202", "0.7902828", "0.77591133", "0.76947623", "0.7298236", "0.721588", "0.7198739", "0.717175", "0.7131136", "0.7084117", "0.70650196", "0.7009011", "0.68144184", "0.67348564", "0.67225385", "0.6500637", "0.6331288", "0.6331071", "0.6330925", "0.61894107", ...
0.7121415
10
/ Returns the set of all nouns.
public Set<String> nouns() { HashSet<String> set = new HashSet<String>(); for (TreeSet<String> hs: synsets.values()) { for (String s: hs) { set.add(s); } } return set; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> nouns() {\n return nounSet;\n }", "public Set<String> nouns() {\n return sNounSet;\n }", "public Iterable<String> nouns()\n {\n return synsetHash.keySet();\n }", "public Iterable<String> nouns() {\n return synsetList.keySet();\n }", "public Iterab...
[ "0.8528092", "0.8400103", "0.8395723", "0.83015823", "0.82666504", "0.8241365", "0.82194054", "0.8215301", "0.8159714", "0.79543096", "0.7915693", "0.79057884", "0.79029936", "0.780659", "0.7699272", "0.61379695", "0.60853493", "0.60579646", "0.6046431", "0.59855473", "0.5943...
0.8832382
0
Returns the set of all hyponyms of WORD as well as all synonyms of WORD. If WORD belongs to multiple synsets, return all hyponyms of all of these synsets. See for an example. Do not include hyponyms of synonyms.
public Set<String> hyponyms(String word) { HashSet<String> set = new HashSet<String>(); for (Integer id: synsets.keySet()) { TreeSet<String> hs = synsets.get(id); if (hs.contains(word)) { for (String s: hs) { set.add(s); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> hyponyms(String word) {\n Set<String> hyponyms = new HashSet<String>();\n Set<Integer> ids = new HashSet<Integer>();\n for (Integer key: synsetNouns.keySet()) {\n if (synsetNouns.get(key).contains(word)) {\n ids.add(key);\n }\n }\n...
[ "0.83441776", "0.83020806", "0.8270777", "0.80640244", "0.78625053", "0.77634263", "0.7690462", "0.7248943", "0.67365354", "0.65405685", "0.64929867", "0.6404896", "0.6283472", "0.60986054", "0.60976255", "0.6093662", "0.59597576", "0.5938776", "0.59035957", "0.5893929", "0.5...
0.85179937
0
Gets the events from the police database given the specified parameters.
public PoliceObject[] getPolice(String type, String startDate, String endDate) { LinkedList<PoliceObject> list = new LinkedList<>(); boolean hasType = (!type.equals("*")); boolean hasStart = (!startDate.equals("*")); boolean hasEnd = (!endDate.equals("*")); boolean hasDate = (ha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Events> retrieveEvents() {\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n String sql = \"\";\n List<Events> results = new ArrayList<>();\n\n try {\n conn = ConnectionManager.getConnection();\n\n ...
[ "0.691039", "0.6501656", "0.64036167", "0.61493075", "0.6134212", "0.61070275", "0.6055644", "0.59988415", "0.5984465", "0.5946987", "0.5922491", "0.5882975", "0.58759594", "0.5870755", "0.5855738", "0.58468056", "0.5842947", "0.5836749", "0.5815223", "0.57916737", "0.5776463...
0.0
-1
Checks if the reported time of the supplied police object lies between the two supplied dates or not.
private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) { LocalDate formattedEvent = LocalDate.parse(po.getDate()); boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start); boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relati...
[ "0.6259377", "0.62017876", "0.6037638", "0.60030377", "0.59966445", "0.5947425", "0.5861621", "0.58605844", "0.58417004", "0.5776901", "0.5732964", "0.5728518", "0.5719886", "0.57061434", "0.57036644", "0.5647284", "0.56151927", "0.5604954", "0.5580536", "0.557718", "0.557651...
0.6972367
0
Sets the data in the hashmap containing police events to the specified attribute. As the Swedish Police appearently reports events with empty values from time to time, these will be checked and potentially ignored while going into the hashmap.
public void setPolice(PoliceObject[] data) { clearPolice(); for (PoliceObject event : data) { boolean hasID = !event.getId().isEmpty(); boolean hasDateTime = !event.getDate().isEmpty(); boolean hasName = !event.getName().isEmpty(); boolean hasSummary = !e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setEvents(Map<String, Event> events);", "public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}", "public <T> void putAll(Map<String,T> attr) {\r\n attributeMap.putAll(attr);\r\n fireStateChanged();\r\n }", "public abstract HashMap<Integer, ArrayList<Time...
[ "0.5597", "0.53696567", "0.5224392", "0.514256", "0.4875497", "0.477469", "0.47730732", "0.47714943", "0.4771373", "0.47655746", "0.4755931", "0.47529432", "0.47460148", "0.47391742", "0.47308955", "0.4721371", "0.47129464", "0.47110718", "0.46913707", "0.46825108", "0.467585...
0.5825813
0
Overwrites the data in the hashmap containing TwitterObjects to the given attribute.
public void setTwitter(TwitterObject[] data) { clearTwitter(); for (int i=0; i<data.length; i++) { this.twitterDB.put(data[i].getId(), data[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> void putAll(Map<String,T> attr) {\r\n attributeMap.putAll(attr);\r\n fireStateChanged();\r\n }", "public Object put(String aName, Object anObj)\n{\n // If map shared, clone it for real\n if(_attrMap.isShared())\n _attrMap = _attrMap.cloneX();\n \n // Put value (or r...
[ "0.5701668", "0.55454165", "0.552153", "0.54076105", "0.52841717", "0.5206663", "0.5151432", "0.5116065", "0.51080495", "0.51068324", "0.50869757", "0.5078179", "0.5057774", "0.5050461", "0.5049064", "0.50443953", "0.50403476", "0.50190794", "0.5014248", "0.4985396", "0.49852...
0.565011
1
Private Constructor to ensure Singleton
private MovieFacade() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton(){}", "private Singleton()\n\t\t{\n\t\t}", "private Singleton() {\n\t}", "private Singleton() { }", "private SingletonObject() {\n\n\t}", "private Singleton(){\n }", "private SingletonSigar(){}", "private SingletonSample() {}", "private LazySingleton(){}", "private Singleton(...
[ "0.87969863", "0.87961644", "0.87283206", "0.8665476", "0.8535576", "0.8402946", "0.827173", "0.8182788", "0.81696206", "0.8071351", "0.79498494", "0.79409987", "0.7878587", "0.7862135", "0.7840997", "0.77403593", "0.77403593", "0.7700436", "0.76197237", "0.75681293", "0.7563...
0.0
-1
Simulate next opponet move, if any move done by opponent will bring victory, player will use that move and undo his move.
public Move validateLastMove() { Move move = board.getLastMove(); int movevalue = move.getValue() == 1 ? -1 : 1; PieceColor nextplayer = Utility.convertCountToPlayerPiece(movevalue); BoardState playerState = (nextplayer == PieceColor.RED ? BoardState.REDWON : BoardState.YELLOWWON); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void makeRandonMove() {\r\n\t\tif (randPlayer.getPlayerNumber() == game.getState().getTurn() && !game.getState().isFinished()) game.execute(randPlayer.requestAction(game.getState()));\r\n\t}", "public void doNextMove(Player player) {\r\n int newX = xCoord;\r\n int newY = yCoor...
[ "0.72444093", "0.69486845", "0.68528336", "0.6807463", "0.67833704", "0.67623013", "0.675368", "0.67365247", "0.6716127", "0.66811544", "0.66588855", "0.6652327", "0.6642835", "0.6606997", "0.6545203", "0.65395486", "0.6528426", "0.65232897", "0.6521093", "0.64949095", "0.649...
0.0
-1
Asks for first prediction (when TableActivity onCreate()), beginning with host
public void askFirstPredictions(){ //Ask host if(initialPredictionCount == 0){ Log.d("WizardApp", "Ask host: " + GameConfig.getInstance().getPlayers()[0] + " for stiches."); askForStiches(GameConfig.getInstance().getPlayers()[initialPredictionCount]); initialPredictio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCheckAppFirstStart() {\n HwAPPStateInfo curAppInfo = getCurStreamAppInfo();\n if (curAppInfo != null && 100501 == curAppInfo.mScenceId && true == curAppInfo.mIsAppFirstStart && !curAppInfo.mIsVideoStart) {\n boolean isPoorNetwork = false;\n int curRxPackets = this....
[ "0.5177604", "0.51623905", "0.50219816", "0.5008939", "0.4965616", "0.49378827", "0.49325043", "0.49284303", "0.4921058", "0.4919999", "0.4893178", "0.4835416", "0.48331547", "0.4805067", "0.4796698", "0.4784834", "0.47548953", "0.47255972", "0.470143", "0.4696323", "0.469445...
0.6497374
0
/ Entfernt gespielte Karte von der Hand des Spielers
public void removeCard(Player player, AbstractCard card) { //throws exception for (Hand hand : hands) if (hand.getHandOwner().equals(player)) hand.removeCard(card); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HandKarten(){\n this.listKartenInhand = new ArrayList<Karte>();\n }", "public List<Karte> getHandKarte(){\n return listKartenInhand;\n }", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n ...
[ "0.68444794", "0.6484243", "0.62977356", "0.62190235", "0.607496", "0.60304344", "0.5966708", "0.5859534", "0.58351296", "0.57101274", "0.5704543", "0.5692728", "0.5686971", "0.5674399", "0.5649378", "0.5648653", "0.5639591", "0.5624213", "0.55953395", "0.55900735", "0.558251...
0.0
-1
Gets data source factory.
public DataSourceFactory getDataSourceFactory() { return database; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DataSource.Factory buildDataSourceFactory() {\n return ((DemoApplication) getApplication()).buildDataSourceFactory();\n }", "DataFactory getDataFactory();", "public DataSourceFactory() {}", "static public DataSource getDataSource(Context appContext) {\n // As per\n // http:/...
[ "0.7229032", "0.7013469", "0.6851354", "0.68347347", "0.68158644", "0.6457283", "0.6445659", "0.64202166", "0.6401545", "0.63830346", "0.6355555", "0.6337923", "0.63331825", "0.63123626", "0.62879485", "0.61966306", "0.6178744", "0.61766356", "0.6175161", "0.609964", "0.60662...
0.75269145
0
Gets auth public key.
public String getAuthPublicKey() { return authPublicKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPubkey();", "java.lang.String getPublicEciesKey();", "java.lang.String getPublicKey();", "public String getPublicKey();", "String getPublicKey();", "public PublicKey getPublicKey() {\n return pk;\n }", "public PublicKey getPublicKey() {\n return publicKey;\n }"...
[ "0.81260777", "0.79007024", "0.756101", "0.7528927", "0.7480259", "0.744662", "0.7237488", "0.71802074", "0.71774805", "0.71566796", "0.71349347", "0.71119785", "0.70956296", "0.7021301", "0.70119685", "0.6985481", "0.69282883", "0.68804073", "0.68725514", "0.68526655", "0.67...
0.7917571
1
Get existing layout params for the window
@Override public void onResume() { ViewGroup.LayoutParams params = getDialog().getWindow().getAttributes(); // Assign window properties to fill the parent params.width = WindowManager.LayoutParams.MATCH_PARENT; params.height = WindowManager.LayoutParams.MATCH_PARENT; getDialog()....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic StandOutLayoutParams getParams(int id, Window window) {\n\t\treturn new StandOutLayoutParams(id, getWidthParam(),\n\t\t\t\tLayoutParams.MATCH_PARENT, StandOutLayoutParams.LEFT,\n\t\t\t\tStandOutLayoutParams.TOP);\n\t}", "@Override\n\tpublic StandOutLayoutParams getParams(int id, Window window...
[ "0.6893923", "0.66737777", "0.6498515", "0.64426744", "0.6115523", "0.60821146", "0.60421306", "0.591658", "0.589864", "0.58975166", "0.5895757", "0.5890181", "0.5873777", "0.5861733", "0.5829254", "0.5776819", "0.57729596", "0.57729584", "0.5771402", "0.57567763", "0.5738204...
0.0
-1
Konstruktor dari Class PremiumRoom
public PremiumRoom(Hotel hotel, String nomor_kamar) { super(hotel, nomor_kamar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Room getRoom();", "Room getRoom();", "public Room getRoom()\r\n {\r\n return room;\r\n }", "public Room getStartRoom(){\n return startRoom;\n }", "public Room getLocalisation(){return this.aLocalisation;}", "public Room getRoom0(){\n return basement;\n }", "private void...
[ "0.6499101", "0.6499101", "0.617415", "0.6129312", "0.60962224", "0.6091009", "0.60878354", "0.6083881", "0.60391927", "0.5978359", "0.5940761", "0.5890755", "0.5850864", "0.58419096", "0.581741", "0.58168465", "0.5807989", "0.57942075", "0.57935625", "0.5784574", "0.5783808"...
0.7672549
0
Method dari getTipeKamar Mengambil nilai return dari TIPE_KAMAR
public TipeKamar getTipeKamar() { return TIPE_KAMAR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TipeKamar getTipeKamar()\n {\n return TIPE_KAMAR;\n }", "public String getKontaktai() {\r\n\t\treturn kontaktai;\r\n\t}", "public java.lang.Integer getHariKe() {\n return hari_ke;\n }", "public java.lang.Integer getHariKe() {\n return hari_ke;\n }", "public Map<String, Kelim...
[ "0.8275748", "0.6385283", "0.6362171", "0.63593686", "0.613737", "0.611015", "0.60414493", "0.60271084", "0.60222316", "0.6015125", "0.5999874", "0.5985844", "0.5932727", "0.59260476", "0.59130263", "0.5900422", "0.5857419", "0.5846312", "0.5821857", "0.57992196", "0.57968396...
0.83340114
0
Method dari setDailyTariff Set nilai return dari DailyTariff di kelas Super PremiumRoom
public void setDailyTariff(double dailyTariff) { super.setDailyTariff(dailyTariff*DISCOUNT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDailyValues(){\n //set updateTime\n SimpleDateFormat t = new SimpleDateFormat(\"h:mm:ss a\");\n updatedTime = \"Last updated: \" + t.format(new Date(System.currentTimeMillis()));\n \n //set maxTemp and minTemp\n maxTemp = Integer.toString(weather.getMaxTemp...
[ "0.62155914", "0.5811178", "0.55694234", "0.53798914", "0.53193396", "0.5276953", "0.526904", "0.52343744", "0.5229187", "0.5132113", "0.509066", "0.508534", "0.507172", "0.5066442", "0.50252545", "0.5021864", "0.49903437", "0.4973722", "0.4971853", "0.49607804", "0.49605274"...
0.66336995
0
ApplicationContext context = new ClassPathXmlApplicationContext("_3_aop/_10_spring_aop_process_two/aspect.xml");
public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("_3_aop/_10_spring_aop_process_two/aspect-autoproxy.xml"); Foo target = (Foo) context.getBean("target"); target.method1(); target.method2(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"AopExampleBean.xml\");\n\t\t//ApplicationContext ctx=new ClassPathXmlApplicationContext(\"AopExample.xml\");\n\t\tMyMathImpl mi=(MyMathImpl)ctx.getBean(\"myMathImpl\");\n\t\tmi.add(7,9);\n\t\tmi.sub(5, 2);\n\t...
[ "0.6085769", "0.60041404", "0.5818836", "0.57847893", "0.56950444", "0.56594634", "0.55873656", "0.55007243", "0.5494411", "0.5480196", "0.54753506", "0.5464078", "0.5431344", "0.54264194", "0.5404639", "0.53904295", "0.53871", "0.53857964", "0.5370348", "0.535923", "0.535599...
0.67797416
0
create scanner and tree
public static void main(String[] args) { Scanner kb = new Scanner(System.in); BinarySearchTree<Character> tree = buildTree(); String [] morse = {".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-",...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static TreeNode parseTreeNode(Scanner in)\n {\n int numberOfChildren = in.nextInt();\n int numberOfMetadata = in.nextInt();\n TreeNode newNode = new TreeNode(numberOfChildren, numberOfMetadata);\n\n // Recursively resolve children\n for (int i = 0; i < numberOfChildren; i++)\n {\n n...
[ "0.69811106", "0.67053753", "0.6552942", "0.63910073", "0.6136702", "0.6091346", "0.6005395", "0.5979458", "0.59532887", "0.59364593", "0.59258175", "0.58999366", "0.5891481", "0.5868589", "0.5860813", "0.581795", "0.58085036", "0.57868046", "0.57248443", "0.566735", "0.56629...
0.0
-1
returns true if the current level is completed
public boolean completed(){ return !activeAttackers() && !attackersLeft(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCompleted() {\n \n // set amount of bottles to complete the level\n int bottlesAmount = 3;\n \n // if player collects the set amount, level is completed\n if (player.getBottles() == bottlesAmount)\n {\n return true;\n }\n el...
[ "0.8294604", "0.8223921", "0.80747765", "0.7443495", "0.7287124", "0.7252094", "0.722924", "0.72175026", "0.72079915", "0.71358216", "0.71358216", "0.7127294", "0.71265113", "0.71186996", "0.7113092", "0.70987207", "0.7080407", "0.705636", "0.70025337", "0.6996202", "0.699555...
0.69837385
23
creates a new element
@Override public void newActiveElement(String elementName, Point2D.Double location){ Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location); getActiveElements().put(newElement.getId(),newElement); addToFrontEndCommands(new CreateCommand(newElement.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract M createNewElement();", "public void newElement() {\r\n }", "Element createElement();", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "ObjectElement createObjectElement();", "public org.ccsds.moims.mo.mal.structures.Element createEle...
[ "0.81814337", "0.79831386", "0.79310507", "0.72573197", "0.70592463", "0.68763274", "0.6795663", "0.6780733", "0.67726344", "0.67372453", "0.67151904", "0.6683755", "0.66361517", "0.66286564", "0.65102845", "0.64817876", "0.6451682", "0.64392614", "0.6429875", "0.64144325", "...
0.67652184
9
get the registrationInfo bean from the session
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); RegistrationService registrationService = (RegistrationService) session.getAttribute("registrationService"); OutputStream out = null; try { respon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RegistrationInfo getRegistrationInfo();", "protected AccessionSessionBean getgermplasm$AccessionSessionBean() {\n return (AccessionSessionBean) getBean(\"germplasm$AccessionSessionBean\");\n }", "protected PersonSessionBean getadmin$PersonSessionBean() {\n return (PersonSessionBean) ...
[ "0.7315564", "0.6752224", "0.64720166", "0.63961434", "0.635786", "0.6335002", "0.62991893", "0.62792736", "0.61515343", "0.61515343", "0.611291", "0.60404927", "0.5996886", "0.5910352", "0.5894499", "0.58400005", "0.58287525", "0.5787042", "0.5785671", "0.5782046", "0.576138...
0.0
-1
the constructor method the parameters it takes is what port to bind to, the default tcp port for a httpserver is port 80. the other parameter is a reference to the gui, this is to pass messages to our nice interface
public Webserver(int listen_port) { port = listen_port; ip = getIP(); //this makes a new thread, as mentioned before,it's to keep gui in //one thread, server in another. You may argue that this is totally //unnecessary, but we are gonna have this on the web so it needs to ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServerFrame(int port, OutputStream out, OutputStream err) {\n super(\"Server Frame\"); \n this.port = port;\n \n initComponents();\n initAddresses();\n initTextAreas(out, err);\n \n setLocationRelativeTo(null);\n setVisible(true);\n }", "p...
[ "0.7486398", "0.7242464", "0.7168939", "0.7105168", "0.70962816", "0.7052893", "0.70490235", "0.6956323", "0.6951405", "0.69026124", "0.6776807", "0.6752473", "0.6750617", "0.6716254", "0.67092913", "0.670435", "0.6700157", "0.6692274", "0.66901857", "0.6675268", "0.6670789",...
0.72040874
2
an alias to avoid typing so much!
private void s(String s2) { System.out.println(s2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T as(String alias);", "public interface Aliasable<T> {\n\n /**\n * Alias the instance with the given valid name.\n *\n * @param alias name\n * @return type after aliasing\n */\n T as(String alias);\n\n /**\n * @return the current alias name.\n */\n String aliasName();\n}",...
[ "0.6273069", "0.6206145", "0.61838454", "0.61194825", "0.5801689", "0.5740809", "0.5718309", "0.5718309", "0.5670489", "0.5645043", "0.5637926", "0.5632933", "0.5603434", "0.5597475", "0.5574748", "0.5572059", "0.55560744", "0.5549178", "0.55438846", "0.5543175", "0.55054253"...
0.0
-1
port we are going to listen to this is a overridden method from the Thread class we extended from
public void run() { //we are now inside our own thread separated from the gui. ServerSocket serversocket = null; //Pay attention, this is where things starts to cook! try { //print/send message to the guiwindow s("Trying to bind to localhost on port " + Integer.to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}", "void onListeningStarted();", "private RRCPConnectionListener() {\n mainThread = new Thread(this);\n }", "public void startListening();", "@Override\n ...
[ "0.7204814", "0.7019631", "0.70114034", "0.69414645", "0.67405105", "0.6646914", "0.6562875", "0.64893615", "0.6397651", "0.63935137", "0.6324486", "0.63014656", "0.6298066", "0.62787807", "0.626333", "0.62494355", "0.6235727", "0.62065727", "0.62002", "0.61785525", "0.615885...
0.0
-1
our implementation of the hypertext transfer protocol its very basic and stripped down
private void http_handler(BufferedReader input, DataOutputStream output) { int method = 0; //1 get, 2 head, 0 not supported String http = new String(); //a bunch of strings to hold String path = new String(); //the various things, what http v, what path, String file = new String(); //wha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void transmit(String protocol, String message);", "java.lang.String getTransferTxt();", "private LoanProtocol ProcessTransferRequest(LoanProtocol protocol)\n\t{\n\t\t// only change the type of the protocol to answer\n\t\tprotocol.setType(messageType.TransferAnswer);\n\t\treturn protocol;\n\t}", "@Override\n\...
[ "0.6226239", "0.61881256", "0.6168143", "0.59204143", "0.5897509", "0.5897509", "0.58626276", "0.58314383", "0.5810174", "0.57552254", "0.5752392", "0.57170165", "0.5666911", "0.5660517", "0.5650441", "0.5617271", "0.5589252", "0.55750996", "0.55458844", "0.5495331", "0.54913...
0.0
-1
this method makes the HTTP header for the response the headers job is to tell the browser the result of the request among if it was successful or not.
private String construct_http_header(int return_code, int file_type) { String s = "HTTP/1.1 "; //you probably have seen these if you have been surfing the web a while switch (return_code) { case 200: s = s + "200 OK"; break; case 400: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flushHeader() {\r\n\t\t//resetBuffer();\r\n\t\tif (sc_status == 0) {\r\n\t\t\tsetStatus(200);\r\n\t\t}\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n StringBuffer headerVal =...
[ "0.6568594", "0.6530924", "0.64970744", "0.64626324", "0.6406576", "0.63047993", "0.61754084", "0.6156715", "0.60710096", "0.60698634", "0.60587615", "0.6039351", "0.6027203", "0.6017642", "0.6009352", "0.59826803", "0.5975884", "0.5973626", "0.5973489", "0.59558433", "0.5928...
0.5854315
32
the position are checked on the attacked players, not in movements
@Override public boolean attack(Player attacker, int mode1, int[] mode2, Player[] attackedPlayers, Position[] movements, PowerupCard[] payment) { boolean done = false; if(isLoaded() && attackedPlayers.length>=1 && attacker.getPosition().reachable(attackedPlayers[0].getPosition())){ if(mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkPositions() {\n //check if any bullets have hit any asteroids\n for (int i = 0; i < bullets.size(); i++) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHit(bullets.get(i).pos)) {\n shotsHit++;\n ...
[ "0.69887644", "0.67475855", "0.6654417", "0.6599678", "0.657542", "0.65642715", "0.6504923", "0.64551985", "0.64472586", "0.6429044", "0.6383354", "0.6381849", "0.63775337", "0.6377182", "0.63571346", "0.6351657", "0.62750906", "0.62657344", "0.62542164", "0.6249937", "0.6249...
0.6327506
16
Write a Java program to find whether a region in the current string matches a region in another string
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str1 = Exercise1.getString(scanner); String str2 = Exercise1.getString(scanner); int[] rangeStr1 = getRange(scanner, str1); int[] rangeStr2 = getRange(scanner, str2); // Arrays.stre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isIn(String s1, String s2) {\n\t for(int i = 0; i <= s2.length() - s1.length(); i++) {\n\t \n\t if(s2.substring(i, i+s1.length()).equals(s1) ) {\n\t // System.out.println(\"+ \" + s2.substring(i, i+s1.length()) + \" \" + s1);\n\t return true;\n\t }\n\t ...
[ "0.6915913", "0.6599885", "0.65887916", "0.6515347", "0.6301663", "0.62970203", "0.6262822", "0.62361145", "0.62081224", "0.6204541", "0.61976385", "0.61687946", "0.616627", "0.6164789", "0.6092869", "0.6087595", "0.6040051", "0.60266477", "0.6019055", "0.60071826", "0.597576...
0.6084444
16
Updates position of the rope.
private void updatePos() { var ballBounds = ball.getMesh().getRelativeRectangleBounds().getBounds2D(); var hookBallBounds = hook.getHookBall().getMesh().getRelativeRectangleBounds().getBounds2D(); var ballCenter = new Vector2(ballBounds.getCenterX(), ballBounds.getCenterY()); var hookBallCenter = new Ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "public void frogReposition() {\n\t\tsetY(FrogPosi...
[ "0.7414124", "0.6995244", "0.6969571", "0.6940488", "0.690569", "0.6875388", "0.6831086", "0.67887545", "0.65729755", "0.6567342", "0.65593034", "0.65415436", "0.653873", "0.6530402", "0.65237445", "0.64973485", "0.644934", "0.6448745", "0.64435303", "0.64435303", "0.6443105"...
0.6293621
32
Draws rope in the direction.
@Override public void draw(Graphics2D graphics, int layer) { if (this.layer == layer && direction != null) { curImage = ImageHelper.rescale(image, (int) fullDirection.magnitude(), GameSettings.ROPE_HEIGHT); if (alive && curImage != null) graphics.drawImage(curImage, transform.getFullAffine(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t...
[ "0.65932584", "0.6364227", "0.6351168", "0.63379395", "0.6307393", "0.62912095", "0.6289113", "0.6255174", "0.6225802", "0.60966164", "0.6010057", "0.59947604", "0.5976289", "0.59704924", "0.5961899", "0.59612954", "0.59359914", "0.5924763", "0.5909874", "0.590284", "0.588998...
0.0
-1
maxElement method This method accepts an array and a starting subscript as arguments. It returns the largest value in the array, starting at the specified subscript.
public static int maxElement(int[] array, int start) { int maxRemaining = 0; // compiler required initialization if (start == (array.length - 1)) { System.out.println("I just entered MaxElement with start at: " + start + " and maxRemaining at: " + maxRemaining); return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }", "int max() {\n\t\t// added my sort method in the...
[ "0.7152972", "0.6977475", "0.6970452", "0.6880207", "0.6806094", "0.6760066", "0.6726266", "0.66858447", "0.66509175", "0.6640966", "0.66392034", "0.6622927", "0.6578592", "0.654514", "0.6533811", "0.6516847", "0.6489516", "0.64814496", "0.6478724", "0.6454999", "0.6451379", ...
0.65866995
12
Construct an RSA object with the given p, q, and e.
protected RSA(BigInteger p, BigInteger q, BigInteger e, Object dummy1, Object dummy2) throws NullPointerException, IllegalArgumentException, ArithmeticException { if ((p.signum() != 1) || (q.signum() != 1) || (e.signum() != 1)) { // i.e., (p <= 0) || (q <= 0) || (e <= 0) throw new IllegalArgumentException();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RSA(BigInteger e, BigInteger n) {\n this.e = e;\n this.n = n;\n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n ...
[ "0.78877956", "0.7425359", "0.7287999", "0.7283945", "0.71201235", "0.69375986", "0.6869221", "0.67876107", "0.67655766", "0.64109033", "0.6174885", "0.5951566", "0.5923638", "0.5910881", "0.5887429", "0.5844218", "0.58192194", "0.58170646", "0.5783346", "0.56916827", "0.5663...
0.7731227
1
Construct an RSA object with the given phi, n, and e.
protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy) throws NullPointerException, IllegalArgumentException, ArithmeticException { if ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0) throw new IllegalArgumentException(); } else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RSASecKey(BigInteger phi, BigInteger n, BigInteger e){\n\tthis.phi = phi;\n\n\ttry{\n\tthis.d = e.modInverse(phi);\n\tthis.n = n;\n\t}catch(Exception ex){\n\t System.out.println(\"inverse not found\");\n\t System.exit(1);\n\t}\n }", "public RSA(BigInteger e, BigInteger n) {\n this.e = e;\n ...
[ "0.79891723", "0.7933818", "0.78176767", "0.7087877", "0.66707844", "0.6632001", "0.65703577", "0.6559237", "0.6360677", "0.6279198", "0.62572044", "0.6026164", "0.56115454", "0.5492514", "0.545918", "0.5406759", "0.540369", "0.5392061", "0.5351414", "0.5300528", "0.52051795"...
0.7741673
3
Construct an RSA object with the given n, e, and d.
protected RSA(BigInteger n, BigInteger e, BigInteger d) throws NullPointerException, IllegalArgumentException { if ((n.signum() != 1) || (e.signum() != 1) || (d.signum() != 1)) { // i.e., (n <= 0) || (e <= 0) || (d <= 0) throw new IllegalArgumentException(); } else if (n.compareTo(e) <= 0) { // i.e., n <= e ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RSA(BigInteger e, BigInteger n) {\n this.e = e;\n this.n = n;\n }", "public static RSA knownKeys(BigInteger n, BigInteger e, BigInteger d)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException {\r\n\t\treturn new RSA(n, e, d);\r\n\t}", "public RSAKey(BigInteger n, BigInteger ed...
[ "0.80752957", "0.7790987", "0.76860183", "0.758123", "0.7266809", "0.69987226", "0.69012743", "0.6141707", "0.6084722", "0.6077586", "0.60379064", "0.5883822", "0.58769286", "0.57351524", "0.5690756", "0.5679285", "0.563859", "0.5632738", "0.5613138", "0.55779535", "0.5549964...
0.79392934
1
Since this class is immutable, there is no need for a copy ctor.
@Override protected Object clone() throws CloneNotSupportedException { // semi-copy throw new CloneNotSupportedException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void copyConstructor(){\n\t}", "public Clone() {}", "private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }", "private Unique...
[ "0.6609604", "0.63094866", "0.6293578", "0.6214499", "0.62005854", "0.61879194", "0.6157276", "0.6150356", "0.61107534", "0.610368", "0.60711855", "0.60557353", "0.6048785", "0.60419697", "0.603692", "0.60341054", "0.6026094", "0.60081434", "0.5990625", "0.5984014", "0.597916...
0.5885789
38
RSA static factory: construct an RSA object with the given p, q, and e.
public static RSA knownFactors(BigInteger p, BigInteger q, BigInteger e) throws NullPointerException, IllegalArgumentException, ArithmeticException { return new RSA(p, q, e, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RSA(BigInteger e, BigInteger n) {\n this.e = e;\n this.n = n;\n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n ...
[ "0.77184784", "0.7699345", "0.75835097", "0.7185757", "0.71849394", "0.71564716", "0.713692", "0.6957344", "0.6504324", "0.65012383", "0.6233595", "0.621354", "0.6179771", "0.6076711", "0.59967494", "0.5958961", "0.5882674", "0.582608", "0.58170724", "0.57965493", "0.5735209"...
0.72799957
3
RSA static factory: construct an RSA object with the given phi, n, and e.
public static RSA knownTotient(BigInteger phi, BigInteger n, BigInteger e) throws NullPointerException, IllegalArgumentException, ArithmeticException { return new RSA(phi, n, e, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RSASecKey(BigInteger phi, BigInteger n, BigInteger e){\n\tthis.phi = phi;\n\n\ttry{\n\tthis.d = e.modInverse(phi);\n\tthis.n = n;\n\t}catch(Exception ex){\n\t System.out.println(\"inverse not found\");\n\t System.exit(1);\n\t}\n }", "public RSA(BigInteger e, BigInteger n) {\n this.e = e;\n ...
[ "0.77741885", "0.77402097", "0.75804013", "0.7406603", "0.69485754", "0.6741423", "0.6688083", "0.66249776", "0.6502009", "0.64623946", "0.6305431", "0.6170089", "0.6021572", "0.5880289", "0.5783087", "0.56739354", "0.56382006", "0.55912226", "0.5547132", "0.54826254", "0.542...
0.77101976
2
RSA static factory: construct an RSA object with the given n, e, and d.
public static RSA knownKeys(BigInteger n, BigInteger e, BigInteger d) throws NullPointerException, IllegalArgumentException { return new RSA(n, e, d); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RSA(BigInteger e, BigInteger n) {\n this.e = e;\n this.n = n;\n }", "protected RSA(BigInteger n, BigInteger e, BigInteger d) throws NullPointerException, IllegalArgumentException {\r\n\t\tif ((n.signum() != 1) || (e.signum() != 1) || (d.signum() != 1)) { // i.e., (n <= 0) || (e <= 0) || (...
[ "0.78569376", "0.76422733", "0.75337774", "0.7445968", "0.7238221", "0.7022059", "0.69163257", "0.66465884", "0.6327204", "0.631269", "0.6205295", "0.61161983", "0.5969527", "0.5912436", "0.5906693", "0.5832308", "0.573262", "0.57261896", "0.5704184", "0.5690419", "0.56700695...
0.780671
1
Apply the requested key (either public or private) to the given message.
public BigInteger apply(BigInteger m, boolean publicKey) throws NullPointerException, IllegalArgumentException, ArithmeticException { if (m.signum() != 1) { // i.e, m <= 0 throw new IllegalArgumentException(); } // 0 < m /* * Apply the public key since it should be small enough that will not m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void process(Key msg) throws IOException {\n relay(msg);\n }", "public void process(PublicKey msg) throws IOException {\n usersConnected.get(msg.getSource()).setPublicKeyPair(msg.getMessage());\n bradcast(msg);\n }", "public abstract Key translateKey(Key key) throws InvalidKey...
[ "0.61313874", "0.5535448", "0.5534232", "0.53950053", "0.53553337", "0.53515285", "0.53339976", "0.53294563", "0.5312902", "0.52978766", "0.52834445", "0.5233329", "0.52206445", "0.5145952", "0.5134504", "0.5132007", "0.5103837", "0.5085589", "0.5081412", "0.5049221", "0.5020...
0.4665744
48
Apply the requested key (either public or private) to the given message byte array.
public byte[] apply(byte[] m, boolean publicKey) throws NullPointerException, IllegalArgumentException, ArithmeticException { return this.apply(new BigInteger(m), publicKey).toByteArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dispatchMessage(KeyedMessage<byte[], byte[]> msg);", "@Override\n\tpublic void processMessage(byte[] message) {\n\t}", "@Override\n public void setKey(byte[] key) {\n }", "public byte[] get(byte[] key);", "public boolean put(byte[] key, byte[] value) throws Exception;", "public byte[] d...
[ "0.61558366", "0.58756876", "0.58337915", "0.5627155", "0.5569667", "0.55429065", "0.5534875", "0.5485159", "0.5479403", "0.54536945", "0.54032403", "0.53876615", "0.53848904", "0.5351807", "0.5347937", "0.5279915", "0.5244239", "0.5241501", "0.5206752", "0.51927805", "0.5184...
0.55944747
4
updateFndOutline updates campus outline with each action perform on a KIX. this helps speed up the retrieval process because all KIX by campuses are always available.
public static void updateFndOutline(Connection conn,String kix,String campus,String alpha,String num,String type) throws SQLException { //Logger logger = Logger.getLogger("test"); try { boolean debug = false; if(debug){ logger.info("kix: " + kix); logger.info("campus: " + campus); logger.info(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateFjlx(Fjlx fx) {\n\r\n\t}", "public void updateFaith(int i){\n this.gameboardPanel.faithPathPane.updateIndicator(i);\n }", "@Override\r\n\tpublic void updateDetailsTable(Kit kitToUpdate) {\n\t\tTableItem tblItems[]= tblCinCoutDetails.getItems();\r\n\t\tfor(TableItem tblItem:tblItems)...
[ "0.49620143", "0.4896633", "0.48168063", "0.4775635", "0.45862538", "0.45823377", "0.44718704", "0.43759292", "0.43466192", "0.4288559", "0.4283861", "0.42783695", "0.42724508", "0.42474234", "0.42388847", "0.4203559", "0.42000902", "0.41935164", "0.4178954", "0.41724452", "0...
0.6815049
0
/ A course is cancallable only if: edit flag = true and progress = modify and canceller = proposer
public static boolean isCourseCancellable(Connection conn,String kix,String user) throws SQLException { //Logger logger = Logger.getLogger("test"); boolean cancellable = false; String proposer = ""; String progress = ""; try { String[] info = getKixInfo(conn,kix); String alpha = info[0]; String nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean approvedForClass(Course c);", "@Override\n\tpublic boolean canEdit(IAccounterServerCore clientObject,\n\t\t\tboolean goingToBeEdit) throws AccounterException {\n\t\treturn true;\n\t}", "public boolean updateCourse(Course c) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean...
[ "0.61898696", "0.6044313", "0.589972", "0.58301437", "0.5788533", "0.5748902", "0.56932145", "0.5680745", "0.56571585", "0.5615048", "0.5605241", "0.5595618", "0.5529843", "0.5528964", "0.55114424", "0.5505478", "0.5503184", "0.54991317", "0.5499109", "0.54988265", "0.5494470...
0.6140495
1
Logger logger = Logger.getLogger("test");
public static int addFile(Connection conn,String campus,String user,int id,String fn,String original, int en, int sq, int qn, int version) throws SQLException { int rowsAffected = -1; try { String sql = "INSERT INTO tblfndfiles(id,originalname,filename,auditby,auditdate,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLoggerName() {\n return \"test\";\n }", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "Object createLogger(String na...
[ "0.76177746", "0.7436475", "0.7428474", "0.7220833", "0.7165627", "0.7153", "0.7152944", "0.70964926", "0.7075006", "0.7059625", "0.7037747", "0.7032445", "0.6996715", "0.69956124", "0.6991182", "0.69609714", "0.69513506", "0.6942537", "0.69375736", "0.6920773", "0.6918464", ...
0.0
-1
Logger logger = Logger.getLogger("test");
public static List<Generic> getAttachmentsMaster(Connection conn,String campus,int id,String sort) throws Exception { List<Generic> genericData = null; // retrieve all active forums a user has access to. // active is where the user is actively participating in (message_author) // the historyid is valid becaus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLoggerName() {\n return \"test\";\n }", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "Object createLogger(String na...
[ "0.76177746", "0.7436475", "0.7428474", "0.7220833", "0.7165627", "0.7153", "0.7152944", "0.70964926", "0.7075006", "0.7059625", "0.7037747", "0.7032445", "0.6996715", "0.69956124", "0.6991182", "0.69609714", "0.69513506", "0.6942537", "0.69375736", "0.6920773", "0.6918464", ...
0.0
-1
ForumDB getUserBoards / getUserBoards
public static List<Generic> getAttachmentsDetail(Connection conn,String campus,int id,int seq,String originalname) throws Exception { return getAttachmentsDetail(conn,campus,id,seq,originalname,""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List findall_board_info(Integer board_id);", "Data<List<Boards>> getBoards();", "@Override\n public List<Board> getBoards(String username) {\n List<Board> boards = boardDataGateway.getBoards(username);\n for (Board b : boards) {\n b.setPins(getPinsOnBoard(username, b.getName()));\n ...
[ "0.7129591", "0.6798712", "0.6704545", "0.66778463", "0.6640049", "0.66046417", "0.65784544", "0.6536571", "0.65113866", "0.64794475", "0.6446781", "0.6424201", "0.6406399", "0.63385075", "0.6299406", "0.6298618", "0.6298618", "0.62773216", "0.62706673", "0.6261419", "0.62277...
0.0
-1
Logger logger = Logger.getLogger("test");
public static List<Generic> getAttachmentsDetail(Connection conn,String campus,int id,int seq,String originalname,String sort) throws Exception { List<Generic> genericData = null; // retrieve all active forums a user has access to. // active is where the user is actively participating in (message_author) // t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLoggerName() {\n return \"test\";\n }", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "Object createLogger(String na...
[ "0.76177746", "0.7436475", "0.7428474", "0.7220833", "0.7165627", "0.7153", "0.7152944", "0.70964926", "0.7075006", "0.7059625", "0.7037747", "0.7032445", "0.6996715", "0.69956124", "0.6991182", "0.69609714", "0.69513506", "0.6942537", "0.69375736", "0.6920773", "0.6918464", ...
0.0
-1
ForumDB getUserBoards / testData
public static String drawFndRadio(Connection conn,String control,String value) { //Logger logger = Logger.getLogger("test"); String temp = ""; try { String[] fndtype = "FG,FS,FW".split(","); String[] fndname = "Global and Multicultural Perspectives,Symbolic Reasoning,Written Communication".split(","); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Data<List<Boards>> getBoards();", "Data<List<Boards>> getBoards(String fields);", "@Test\n\tpublic void testBoard() {\n\t\tUserModel exampleUser = new UserModel();\n\t\texampleUser.setUserId(\"@tester_5\");\n\t\texampleUser.setUserPseudo(\"Test_pseudo\");\n\t\texampleUser.setUserEmail(\"test5@test.mail\");\n\t...
[ "0.7013099", "0.68497324", "0.6623296", "0.6359169", "0.63432", "0.6101799", "0.5997645", "0.5982773", "0.5854296", "0.5842112", "0.5809053", "0.57918507", "0.5785544", "0.5764325", "0.5745718", "0.57040495", "0.57039285", "0.57011837", "0.5610889", "0.5591923", "0.5591048", ...
0.0
-1
/ createFoundation when campus is not null, we create outline for that campus, alpha, num combination only.
public static void createFoundation(String campus,String kix) throws Exception { createFoundation(campus,"",kix); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Campus create(long campusId);", "public static void createFoundation(String campus,String user,String kix) throws Exception {\n\nboolean debug = true;\n\n\t\tboolean compressed = true;\n\n\t\tFileWriter fstream = null;\n\t\tBufferedWriter output = null;\n\n Connection conn = null;\n\n\t\tString type ...
[ "0.6010579", "0.5555347", "0.55129206", "0.523131", "0.52160186", "0.50895184", "0.5051138", "0.50176144", "0.49715534", "0.49348646", "0.48698464", "0.4857675", "0.48251244", "0.4796674", "0.4763348", "0.4704909", "0.46178204", "0.45782217", "0.4562436", "0.4551722", "0.4539...
0.64475054
0
Logger logger = Logger.getLogger("test");
public static void createFoundation(String campus,String user,String kix) throws Exception { boolean debug = true; boolean compressed = true; FileWriter fstream = null; BufferedWriter output = null; Connection conn = null; String type = "PRE"; String sql = ""; String documents = ""; String file...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLoggerName() {\n return \"test\";\n }", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "Object createLogger(String na...
[ "0.7617866", "0.74349934", "0.74269545", "0.7219886", "0.71646297", "0.71528167", "0.71517015", "0.7095277", "0.7073859", "0.7058592", "0.70364654", "0.70327544", "0.69952905", "0.6994047", "0.6989922", "0.6959935", "0.69502085", "0.6941776", "0.69363904", "0.69201475", "0.69...
0.0
-1
showByUserProgress show outlines by user and outline progress
public static String showByUserProgress(Connection conn, String campus, String user, String progress, String caller){ //Logger logger = Logger.getLogger("test"); StringBuffer listing = new StringBuffer(); String alpha = ""; String num = ""; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showProgress();", "@Override\n public void showProgress() {\n\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "@Override\n public void showProgressSync() {\n }", "void showModalProgress();", "void onShowProgress();", "public void showProgress(boolean show...
[ "0.63829833", "0.6230356", "0.59680444", "0.58917814", "0.5811188", "0.58014065", "0.57428896", "0.5575487", "0.5572302", "0.5511528", "0.5497288", "0.5488675", "0.5464302", "0.5460752", "0.5405768", "0.53721493", "0.53699267", "0.5361142", "0.5338814", "0.5336173", "0.531429...
0.5481561
12
showByUserProgress / Returns true if the program exists in a particular type and campus
public static boolean existByTypeCampus(Connection conn,String campus,String kix,String type) throws SQLException { boolean found = false; boolean debug = false; try { // unlike courses, programs are based on titles, degrees, and divisions String[] info = getKixInfo(conn,kix); String alpha = info[Cons...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String showByUserProgress(Connection conn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString campus,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString user,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString progress,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString caller){\n\n\t\t//Logger logger = Logger.getLogger(\"test\");\n\n\...
[ "0.5622444", "0.54570264", "0.54570264", "0.533375", "0.5220627", "0.50866747", "0.4998121", "0.4986403", "0.49673367", "0.4917119", "0.49126253", "0.4886458", "0.48762602", "0.48452285", "0.48382053", "0.48248836", "0.4812706", "0.48029092", "0.47874027", "0.47686312", "0.47...
0.49500307
9
/ Is this program reviewable? If so, is this the proposer? Only proposer can invite. progress = review or modify or review in approval review requested = proposer
public static boolean reviewable(Connection conn,String campus,String kix,String user) throws SQLException { //Logger logger = Logger.getLogger("test"); boolean reviewable = false; String proposer = ""; String progress = ""; String subprogress = ""; boolean debug = false; try { debug = DebugDB.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isApproved();", "public boolean isApproved();", "@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}", "@Override\n\tpublic boolean isApproved();", "@SystemAPI\n\tboolean needsApproval();", "boolean hasPlainApprove();", "public boolean isApproved()\n\t{\...
[ "0.684236", "0.684236", "0.66693234", "0.65996647", "0.65979546", "0.6573983", "0.6434708", "0.61990243", "0.6177714", "0.61168027", "0.61072755", "0.6080837", "0.6053427", "0.5971963", "0.5963292", "0.5847447", "0.5843177", "0.58060884", "0.57955587", "0.5750331", "0.5724053...
0.63405687
7
/ Determines if user is allowed to review a course and that it is not yet expired
public static boolean isReviewer(Connection conn,String campus,String alpha,String num,String user) throws Exception { //Logger logger = Logger.getLogger("test"); boolean reviewer = false; boolean debug = false; int counter = 0; try { debug = DebugDB.getDebug(conn,"FndDB"); if (debug){ logger....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isExpired() {\n final LocalDateTime now = LocalDateTime.now().minusSeconds(10L);\n return now.isAfter(startTime.plusMinutes(exam.getExamTime())) || endTime != null;\n }", "public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenti...
[ "0.6250155", "0.60417074", "0.60025346", "0.59579843", "0.5954598", "0.5931773", "0.59088564", "0.5837412", "0.58130056", "0.5809629", "0.5776991", "0.57756686", "0.5766885", "0.57614344", "0.57571286", "0.5747964", "0.5722109", "0.5722109", "0.570435", "0.5700923", "0.569152...
0.5372137
49
returns true if the String argument is empty
public static String footerStatus(Connection conn,String kix,String type) { String footerStatus = ""; try{ if(type.equals("ARC")){ footerStatus = "Archived on " + getFndItem(conn,kix,"dateapproved"); } else if(type.equals("CUR")){ footerStatus = "Approved on " + getFndItem(conn,kix,"dateapproved"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}", "private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private stati...
[ "0.78667337", "0.78552276", "0.7841638", "0.78372335", "0.7812655", "0.78121346", "0.77504", "0.7708159", "0.7688102", "0.76810694", "0.7675375", "0.76679933", "0.7660164", "0.7646039", "0.76337475", "0.7629068", "0.761431", "0.76096284", "0.76010454", "0.75825286", "0.758189...
0.0
-1
getLinkedItems returns sql for linked src
public static String getLinkedItems(Connection conn,String campus,String user,int id,String kix,String src,boolean print) throws SQLException { //Logger logger = Logger.getLogger("test"); WebSite website = new WebSite(); String temp = ""; String sql = ""; StringBuffer buf = new StringBuffer(); StringBuff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArrayList<String> findLinkedEntity(String node) throws SQLException;", "List<ProductLink> links();", "private DataSourcesItem getSrcDataSources(DataSourcesItem item) {\r\n if (item == null) { return null; }\r\n\r\n DataSourcesDao dsDao = DiscourseDbDaoFactory.DEFAULT.getDataSourcesDao();\r\n ...
[ "0.5966777", "0.5603953", "0.56005883", "0.5583014", "0.5396764", "0.5344889", "0.53049093", "0.5298165", "0.5296125", "0.5266826", "0.5220836", "0.51827216", "0.51691204", "0.51685786", "0.51660323", "0.515454", "0.50980985", "0.5090644", "0.5080115", "0.50573933", "0.504212...
0.6137541
0
Called when a drawer has settled in a completely closed state.
public void onDrawerClosed(View view) { super.onDrawerClosed(view); // Do whatever you want here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDrawerClosed(View view) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n Log.d(TAG, \"onDrawerClosed\");\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n ...
[ "0.7115407", "0.6926059", "0.6869123", "0.6850017", "0.6850017", "0.67975765", "0.67975765", "0.6745561", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", "0.6725664", ...
0.67596
7