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
Enables debug output (for all subsequent interpreter calls).
static void debug() { ProcessRunnerImpl.setGlobalDebug(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableDebug() {\n this.debug = true;\n }", "public static void enableDebugging(){\n DEBUG = true;\n }", "public void toggleDebug() {\n\t\tdebug = debug ? false : true;\n\t}", "void debug() {\n this.renderer.debug = !this.renderer.debug;\n reload();\n }...
[ "0.78846765", "0.74868345", "0.7361623", "0.72635984", "0.72507393", "0.7141432", "0.69533914", "0.68902963", "0.6866221", "0.6839589", "0.6827286", "0.6823235", "0.68112755", "0.68015707", "0.67953444", "0.6791693", "0.67801267", "0.67739767", "0.6770233", "0.676036", "0.670...
0.7588504
1
Enables debug output (for all subsequent interpreter calls).
static void debug(boolean b) { ProcessRunnerImpl.setGlobalDebug(b); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableDebug() {\n this.debug = true;\n }", "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "public static void enableDebugging(){\n DEBUG = true;\n }", "public void toggleDebug() {\n\t\tdebug = debug ? false : true;\n\t}", "void debug...
[ "0.78846765", "0.7588504", "0.74868345", "0.7361623", "0.72635984", "0.72507393", "0.7141432", "0.69533914", "0.68902963", "0.6866221", "0.6839589", "0.6827286", "0.6823235", "0.68112755", "0.68015707", "0.67953444", "0.6791693", "0.67801267", "0.6770233", "0.676036", "0.6704...
0.67739767
18
Executes process with the specified arguments.
static ProcessRunner execute(String... arguments) { return ProcessRunnerImpl.execute(null, arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void runProcess(String[] args) throws Exception;", "@Override\n public int execute(Parameters parameters) {\n\n final List<String> command = new ArrayList<>();\n final String b = binary.get();\n if (b == null) {\n throw new IllegalStateException(\"No binary foun...
[ "0.70017135", "0.65260154", "0.6476204", "0.64729804", "0.6438207", "0.6228862", "0.61719", "0.6131368", "0.61072224", "0.6082963", "0.5974915", "0.5926887", "0.5776363", "0.577358", "0.576821", "0.57359946", "0.57084817", "0.5631554", "0.5629991", "0.5601343", "0.5589067", ...
0.7689111
0
Returns the process installation folder.
static File getDistributionInstallationFolder() { return ProcessRunnerImpl.getDistRootPath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getInstallRoot();", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "public Path getInstallBase() {\n return installBase;\n }", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = get...
[ "0.7116477", "0.6895195", "0.6699281", "0.6648196", "0.66228133", "0.65928024", "0.65520155", "0.6509412", "0.6434892", "0.642492", "0.63758653", "0.6212986", "0.6205409", "0.61391115", "0.60405385", "0.6026365", "0.59632707", "0.594364", "0.594174", "0.5931875", "0.5906193",...
0.7792444
0
TODO Autogenerated method stub
@Override public double executar(double a, double b) { return a + b; }
{ "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
Test of findById method, of class ForumThreadDAOImpl.
@Test public void testFindById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T findById(ID id) ;", "@Test\n void getByIdSuccess() {\n logger.info(\"running getByID test\");\n User retrievedUser = (User)genericDao.getById(2);\n\n assertEquals(\"BigAl\", retrievedUser.getUserName());\n assertEquals(\"Albert\", retrievedUser.getFirstName());\n assertEqu...
[ "0.7003683", "0.6910795", "0.6867049", "0.67452437", "0.67304724", "0.66934323", "0.66882354", "0.6654338", "0.6641506", "0.6636669", "0.66294944", "0.6628881", "0.6574959", "0.6551327", "0.65482634", "0.6545877", "0.6498939", "0.64964366", "0.6490649", "0.6486426", "0.647692...
0.0
-1
Test of findByCategory method, of class ForumThreadDAOImpl.
@Test @Transactional public void testFindByCategory() { List<ForumThread> forumThreads = new ArrayList<>(); forumThreads = forumThreadDAO.findByCategory("NEWS"); logger.info("Forum Threads: -> {}", forumThreads.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void findCategoryById() {\n\n Long categoryId = (long) 1;\n CategoryEto category = this.dishmanagement.findCategory(categoryId);\n assertThat(category).isNotNull();\n }", "ArrayList<News> findByCategory(String category) throws DAOException, ConnectionPoolDataSourceException;", "@Overr...
[ "0.62869036", "0.6284216", "0.62156916", "0.59294254", "0.5902688", "0.58772016", "0.58185077", "0.5729531", "0.5667329", "0.56584466", "0.5612834", "0.55805576", "0.5578763", "0.55704564", "0.55659467", "0.55300814", "0.5529113", "0.55020595", "0.5495706", "0.5482351", "0.54...
0.8168979
0
Test of findByUsername method, of class ForumThreadDAOImpl.
@Test public void testFindByUsername() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull TUser findByUserName(String username) throws NotFoundException, ErrorConnectionException, TException;", "@Test\n\tpublic void FindUserByUsername() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\...
[ "0.6544945", "0.65396315", "0.6526439", "0.64335406", "0.63736516", "0.63187486", "0.62960136", "0.6283056", "0.62297547", "0.62284565", "0.6178741", "0.6087071", "0.60778975", "0.6074943", "0.60405505", "0.596785", "0.5962425", "0.589347", "0.58787775", "0.58697903", "0.5862...
0.601886
15
Test of create method, of class ForumThreadDAOImpl.
@Test public void testCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCreate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(record.getId());\r\n }", "@Test\n\tpublic void createTicketTest() {\n\t\tService.createTicket(new TicketCreation(), \"username\");\n\t\tMockito.verify(T...
[ "0.6264427", "0.62308943", "0.6070488", "0.60551196", "0.5905651", "0.58611405", "0.585856", "0.58146036", "0.58049875", "0.5793619", "0.5789297", "0.57886976", "0.5753254", "0.57530224", "0.57337123", "0.57120883", "0.5695835", "0.56506526", "0.56479347", "0.564779", "0.5634...
0.0
-1
Test of update method, of class ForumThreadDAOImpl.
@Test public void testUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testUpdateForum() {\n String newTitle = \"New title!\";\n try {\n ForumDTO forumDTO = forumService.updateForum(FORUM_ID, newTitle);\n assertEquals(newTitle, forumDTO.getTitle());\n } catch (Exception e) {\n fail(e.getMessage());\n ...
[ "0.7140945", "0.6903508", "0.68968564", "0.68743443", "0.68717957", "0.68589604", "0.6857473", "0.67974406", "0.67561996", "0.67336106", "0.67117494", "0.66507334", "0.6645591", "0.6624675", "0.65845054", "0.6573575", "0.6570931", "0.65482", "0.64956295", "0.648368", "0.64818...
0.676018
8
This interface defines some basic operations to setup properties for the hibernate configuration. There are situations where the DB configuration, mainly username and password shall not be visible in any configuration file but shall be retrieved programmatically from some other sources. If this is the case an implement...
public interface HibernateProperties { /** * Returns all programmatically set properties that shall be used in the hibernate configuration. * * @return Null can be returned. The returned property class can be empty. */ public Properties getProperties(); /** * This me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IDataSourceConfiguration {\r\n\r\n\t/**\r\n\t * \r\n\t * @return Nombre del driver \r\n\t */\r\n\tpublic String getDriverName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param driverName Nombre del driver\r\n\t */\r\n\tpublic void setDriverName(String driverName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return U...
[ "0.6432677", "0.63463646", "0.6123049", "0.5951732", "0.5873454", "0.5748036", "0.5733386", "0.56082314", "0.5604343", "0.5582689", "0.55547935", "0.5523797", "0.55154186", "0.55123806", "0.55105764", "0.54532206", "0.5426894", "0.5399725", "0.5394757", "0.5392399", "0.539074...
0.70460767
0
Returns all programmatically set properties that shall be used in the hibernate configuration.
public Properties getProperties();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Properties hibernateProperties() {\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(org.hibernate.cfg.Environment.DIALECT, \"org.hibernate.dialect.MySQL5Dialect\");\r\n\t\tproperties.put(org.hibernate.cfg.Environment.SHOW_SQL, true);\r\n properties.put(org.hibernate.cfg.Environ...
[ "0.759216", "0.75288266", "0.7241452", "0.71401376", "0.6564034", "0.62362546", "0.62016326", "0.60977083", "0.6084662", "0.5969376", "0.59214044", "0.5908151", "0.5905034", "0.5863164", "0.5860836", "0.58397645", "0.583606", "0.5835345", "0.58246964", "0.58246964", "0.582414...
0.5610703
41
This method will replace the currently set properties with the given properties. This is not a merge!. Existing properties will be wiped out.
public void setProperties(Properties properties);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Properties modifyProperties(Properties properties);", "private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --...
[ "0.7515123", "0.69731534", "0.68984514", "0.6871097", "0.6696641", "0.668482", "0.6666573", "0.6664539", "0.6627275", "0.6619443", "0.65928763", "0.65836877", "0.65728277", "0.65727353", "0.6572321", "0.6570074", "0.65288246", "0.6450727", "0.6400587", "0.63990575", "0.638356...
0.6702292
4
This method will set/replace the property given by its key with the given value.
public void addProperty(String key, String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProperty(String key, Object value);", "void setProperty(String key, Object value);", "public void setProperty( String key, Object value );", "public void setProperty(Object key, Object value) {\r\n\t\tproperties.put(key, value);\r\n\t}", "public <T> void setValue (String key, T value)\n\t{\n...
[ "0.79457885", "0.79236054", "0.7911866", "0.78736013", "0.77823246", "0.76876837", "0.75563693", "0.750217", "0.72972304", "0.72303236", "0.72017515", "0.71942335", "0.7192798", "0.7127846", "0.7115684", "0.7051058", "0.70298517", "0.6996772", "0.6950545", "0.69361824", "0.69...
0.6686995
35
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" // desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { modelo = new DefaultListModel<>(); jDialog1 = new javax.swing.JDialog(); jPanel1 = new javax.swing.JPanel(); botonLogin = new javax.swing.JButton(); Bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
TODO Autogenerated method stub
private void actualizarLista(ArrayList<Producto> p2) { String[] str = new String[p2.size()]; for (int i = 0; i < p2.size(); i++) { str[i] = p2.get(i).get_nombre(); } str.clone(); listaProductos.setModel(new javax.swing.AbstractListModel<String>() { String[] strings = str.clone(); public int getSize(...
{ "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
Constructor. Initialize a new board game with the given parameter.
public BoardGame(String name, int dimension, int totalPlayer) { this.name = name; this.dimension = dimension; this.totalPlayer = totalPlayer; board = new int[dimension][dimension]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Board() {\n initialize(3, null);\n }", "public Game() {\n initializeBoard();\n }", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "private GameBoard() {}", "Board() {\n...
[ "0.7792922", "0.77251273", "0.7643839", "0.75925857", "0.7575175", "0.75373137", "0.75269353", "0.7523065", "0.75038147", "0.75003546", "0.7481958", "0.7418533", "0.7409485", "0.73948795", "0.7361964", "0.7335899", "0.7335552", "0.73193413", "0.7291187", "0.7290027", "0.72886...
0.0
-1
Checks if the coordinate exists on the square dimensional board.
public boolean isValid(int row, int col) { return isValid(row) && isValid(col); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOpenSquare(int x, int y)\r\n {\r\n return isValidSqr(x, y) && board[x][y] == null;\r\n }", "public boolean hasPiece(int x, int y)\r\n {\r\n return isValidSqr(x, y) && board[x][y] != null;\r\n }", "public boolean coordOnBoard(int row, int col, ArrayList<ArrayList<GameP...
[ "0.76687133", "0.7323406", "0.694424", "0.6895634", "0.6890149", "0.68246365", "0.68187803", "0.67938113", "0.6785059", "0.6699248", "0.66821796", "0.6667527", "0.6664338", "0.6643035", "0.6636387", "0.66271925", "0.66271925", "0.66271925", "0.6614372", "0.6602005", "0.658706...
0.0
-1
Checks if the index exists on the square dimensional board.
private boolean isValid(int index) { return index >= 0 && index < dimension; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean check(Square[][] square)\n {\n int count = 0;\n int row = -1;\n boolean ret = false;\n for(int i = 1; i <= 9; i++)\n {\n for(int r = 0; r < square.length; r++)\n {\n if(square[r][colNum].getValue() == i)\n ...
[ "0.68602395", "0.6649582", "0.66344416", "0.66207266", "0.65856844", "0.65209997", "0.6512654", "0.6502135", "0.64692044", "0.6427703", "0.6427703", "0.6427703", "0.6427703", "0.6427703", "0.6427703", "0.64251614", "0.64139277", "0.6407056", "0.63636696", "0.6357108", "0.6341...
0.6451264
9
Checks if the field is free, meaning no player currently marks it.
public boolean isFree(int row, int col) throws ArrayIndexOutOfBoundsException { return getState(row, col) == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isFree()\n\t{\n\t\treturn free;\n\t}", "public Boolean getFree() {\n return free;\n }", "public boolean hasPakringFree() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasPakringFree() {\n return ((bitField0_ & 0x00000004) == 0x00000004...
[ "0.7167961", "0.6806029", "0.6692597", "0.6689845", "0.66842455", "0.6658146", "0.66489756", "0.63499737", "0.6269951", "0.61913586", "0.6171223", "0.6045805", "0.6043488", "0.60370886", "0.60161203", "0.59891456", "0.59858274", "0.5982716", "0.59476906", "0.59252405", "0.588...
0.6050946
11
Set the next player. Going in upwards order and repeating. example: if 3 players are in the game the next player order is: 12312312... .
public void nextPlayer() { if (currentPlayer == totalPlayer) { currentPlayer = 1; } else { currentPlayer++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void nextTurn(){\n players.add(currentPlayer);//Added to the back\n currentPlayer = players.pop();//Pull out the first player in line to go next\n }", "public void next_player() {\n\t\tthis.nb_turn++;\n\t\tthis.player_turn++;\n\t\tthis.same_dice_in_a_row = 0;\n\t\tif (player_turn == this....
[ "0.747705", "0.7418595", "0.73887587", "0.73818564", "0.7351361", "0.72943234", "0.7257342", "0.7183759", "0.71608627", "0.7091235", "0.7081687", "0.7071371", "0.70233965", "0.68501997", "0.68435544", "0.6763391", "0.676149", "0.67556554", "0.67226917", "0.6693016", "0.667009...
0.8094623
0
Check if the current Player has won with his last place.
public abstract boolean hasWon(int row, int col);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkForWin(){\n\t\t\n\t\tPlayer p = Game.getCurrPlayer();\n\t\t// if player made it to win area, player won\n\t\tif(p.won()){\n\t\t\tGame.gameWon = true;\n\t\t\tthis.network.sendWin();\n\t\t\treturn true;\n\t\t}\n\t\t// if player is the last player on the board, player won\n\t\tif(numPlayers == 1 &...
[ "0.763378", "0.7609286", "0.72225606", "0.71539104", "0.7143171", "0.7070985", "0.70598733", "0.7025711", "0.7025172", "0.7022115", "0.697839", "0.697728", "0.6976904", "0.6965175", "0.6955494", "0.6920912", "0.688817", "0.68799555", "0.6866264", "0.68647844", "0.6843293", ...
0.0
-1
Check if the board is full. Meaning there are no more free fields with the value of 0. In other words, all fields are taken by any players.
public boolean isFull() { return placeCounter == dimension * dimension; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }", "public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}...
[ "0.84006655", "0.7950994", "0.77920204", "0.7707066", "0.76974857", "0.76515895", "0.7638172", "0.760063", "0.75645995", "0.75525886", "0.75465035", "0.751824", "0.7440484", "0.7394994", "0.735912", "0.7331198", "0.73266107", "0.72811633", "0.7268931", "0.7254585", "0.7246451...
0.6881456
36
Returns the current State of this field from the board.
public int getState(int row, int col) throws ArrayIndexOutOfBoundsException { return board[row][col]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameState getState(){\n\t\tGameState State=new GameState(this.points, this.currentBoard.getState());\n\t\t\n\t\treturn State;\n\t}", "public char[][] getBoardState(){\n\t\treturn board;\n\t}", "public byte getState() {\n return myState;\n }", "public State getState() { return model.getState(...
[ "0.7095482", "0.70368373", "0.70129454", "0.7012647", "0.69940215", "0.6978201", "0.6920819", "0.69118404", "0.69005924", "0.69005924", "0.68984574", "0.6898185", "0.6885196", "0.68583995", "0.68583995", "0.6845659", "0.6844116", "0.6810825", "0.6807035", "0.6807035", "0.6807...
0.0
-1
Sets the state of this field from the board to the current player's index.
public void setState(int row, int col) throws ArrayIndexOutOfBoundsException { board[row][col] = currentPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCurrentPlayer(int index){\n this.currentPlayer=index%4;\n }", "public void setMoveIndex(int index) {\n\n boardIterator.goTo(index);\n\n queueEvent(new Runnable() {\n @Override\n public void run() {\n board.setBoard(boardIterator.board);\...
[ "0.689618", "0.6423136", "0.6202302", "0.6190721", "0.61633897", "0.6069783", "0.60198486", "0.6012066", "0.600109", "0.5997539", "0.5936513", "0.59186083", "0.58927643", "0.58846444", "0.58840775", "0.5846299", "0.5844976", "0.5836734", "0.58167267", "0.5783228", "0.5760778"...
0.674406
1
Returns a string representation of a single state of a field on the board.
public String stateToString(int row, int col) { if (!isValid(row, col)) { return INDEX_ERROR_MESSAGE; } else if (!isFree(row, col)) { return "P" + getState(row, col); } return "**"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\r\n\t\treturn (\"State: \" + this.key + \", Value: \" + this.val);\r\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}", "public String toString(){\n \tif(state){\n\t\treturn (\"1\");\n\t }\n\t else{\n\t\t return(\"0\");\n\t ...
[ "0.6700563", "0.66590697", "0.6589543", "0.6580903", "0.65000945", "0.63895786", "0.6330892", "0.63284177", "0.632788", "0.6321674", "0.62663335", "0.625622", "0.6220556", "0.6214642", "0.6211003", "0.61994267", "0.61994267", "0.61994267", "0.6196023", "0.6166093", "0.6151257...
0.630312
10
Returns a string representation of a single row of the board.
public String rowToString(int row) { if (!isValid(row)) { return INDEX_ERROR_MESSAGE; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < dimension; i++) { sb.append(stateToString(row, i)).append(" "); } //remove the last unnecess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return String.format(\"%s%s\", column, row);\n }", "public String toString()\n {\n return row0 + \"\\n\" + row1 + \"\\n\" + row2 + \"\\n\" + row3;\n }", "public String toString()\n\t{\n\t\tchar rowLetter = (char)('A'+row);\n\t\treturn(\"\"+rowLetter+col);\n\t}", ...
[ "0.7294933", "0.7273718", "0.7146523", "0.7146119", "0.7142695", "0.70446455", "0.69389105", "0.6906867", "0.6859224", "0.6850875", "0.6849529", "0.6826694", "0.68255013", "0.6818487", "0.68159056", "0.6802113", "0.6789685", "0.67788434", "0.676629", "0.67526984", "0.6724801"...
0.72366315
2
Returns a string (horizontal) representation of a single column of the board.
public String colToString(int col) { if (!isValid(col)) { return INDEX_ERROR_MESSAGE; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < dimension; i++) { sb.append(stateToString(i, col)).append(" "); } //remove the last unnecess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String boardCellToString() {\n String str;\n Integer convertX, convertY;\n //adjusting the co'ordinates because the board starts at 1 not 0\n convertX=this.xCor + 1;\n convertY= this.yCor + 1;\n str = \"(\" + convertX.toString() + \",\" + convertY.toString() + \")\"...
[ "0.6943318", "0.69309753", "0.6882265", "0.67920846", "0.66699064", "0.6641938", "0.66356874", "0.6616836", "0.6608309", "0.65922916", "0.6553194", "0.65320086", "0.6479835", "0.64783245", "0.6445527", "0.64170694", "0.64150494", "0.64034355", "0.640313", "0.6379349", "0.6378...
0.6275662
32
Returns a string representation from the board.
@Override public String toString() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < dimension; i++) { sb.append(rowToString(i)).append("\n"); } //remove the last unnecessary carriage return from the string. return sb.toString().substring(0, sb....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getBoardString();", "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\tfor(int c = 0; c < board[0].length; c++)\n\t\t\t{\n\t\t\t\ts += \"|\" + board[r][c];\n\t\t\t}\t\t\t\t\n\t\t\ts += \"|\" + \"\\n\" + \"-------------------\" + \"\\n\";\n\t\t}\n\...
[ "0.81808215", "0.81183374", "0.8063188", "0.7995336", "0.7983921", "0.7981973", "0.79410124", "0.7876103", "0.7871404", "0.7871019", "0.78280765", "0.7807706", "0.7798642", "0.77812535", "0.7707736", "0.77033085", "0.76303023", "0.7625184", "0.75833493", "0.75414187", "0.7533...
0.0
-1
Sends an email to the manager of the application to inform about a technical event, e.g. if an error occurred.
private void sendTechnicalNotification(final String subject, final String text) { MimeMessagePreparator prep = new MimeMessagePreparator() { @Override public void prepare(MimeMessage mimeMessage) throws javax.mail.MessagingException { mimeMessage.setRecipient(Message.R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "public void sendDiscrepancyEmail() throws Exception;", "private void sendFeedback() {\n final String technicalInfo = commonsLogSender.getExtraInfo();\n\n final Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);\n fe...
[ "0.73115104", "0.67403436", "0.6536649", "0.6520016", "0.642606", "0.63811606", "0.6287366", "0.61642", "0.6138039", "0.6079625", "0.60455644", "0.6018575", "0.5956037", "0.5949955", "0.59403384", "0.5933667", "0.5928105", "0.58832043", "0.5881092", "0.5874596", "0.5868073", ...
0.64830357
4
Send messages on click.
@Override public void onClick(View view) { ChatMessage Message = new ChatMessage(mMessageEditText.getText().toString(), mUsername, null, dateAndTime); mFirebaseDatabaseReference.child(chatRoomPath) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n send();\n }", "public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\...
[ "0.7461509", "0.7345714", "0.72578794", "0.71984386", "0.71679026", "0.7129024", "0.69707674", "0.6941254", "0.6937578", "0.69345194", "0.68870664", "0.6865474", "0.6844149", "0.68215895", "0.6803217", "0.6799085", "0.6794124", "0.67724663", "0.6764417", "0.6752641", "0.67417...
0.0
-1
code to send chatid to Notes class
@Override public void onClick(View v) { Intent i = new Intent(getApplicationContext(), Prescription.class); Bundle bundle = new Bundle(); bundle.putString("Chatroomcode", chatCode); i.putExtras(bundle); startActivity(i); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSendid();", "public int getChatID()\n {\n return chatID;\n }", "String getMessageChatId(String msgId);", "public Integer getChatid() {\n return chatid;\n }", "public long getChatId(){\n return this.chatId;\n }", "public void setChatid(Integer chatid) {\n thi...
[ "0.6328527", "0.6322908", "0.62849885", "0.6250209", "0.6181419", "0.6162109", "0.61433095", "0.60068786", "0.5949524", "0.58989275", "0.5847809", "0.584407", "0.57984674", "0.57984674", "0.57924855", "0.57245594", "0.57110566", "0.56866115", "0.56754327", "0.56496865", "0.56...
0.0
-1
opens page to Select image for image message.
@Override public void onClick(View view) { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Picture"), REQUEST_IMAGE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here....
[ "0.74408454", "0.7193606", "0.71055746", "0.69587463", "0.69334054", "0.6847602", "0.683667", "0.68223894", "0.6808904", "0.6795413", "0.67827255", "0.6727278", "0.67186046", "0.67082167", "0.6679211", "0.66729724", "0.66632086", "0.6622124", "0.66147125", "0.659803", "0.6594...
0.66554576
17
uploads the image into the database under the file named images
private void putImageInStorage() { final StorageReference ref = storageReference.child("images/" + java.util.UUID.randomUUID().toString()); ref.putFile(filePath) .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() { @Override pub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void store_image(Images image) {\n\t\tir.save(image);\n\t}", "void savePicturePath(String userName, String picturePath) throws DatabaseException;", "public void setImageName(String name) {\n imageToInsert = name;\n}", "protected void processRequest(HttpServletRequest request, HttpServletResponse resp...
[ "0.7046421", "0.65712374", "0.64192855", "0.6417885", "0.62518495", "0.6213179", "0.6177981", "0.6137774", "0.6100679", "0.60947907", "0.6092865", "0.60674244", "0.6040768", "0.6020018", "0.60066", "0.6005063", "0.6001989", "0.59932834", "0.5951225", "0.5914678", "0.5913442",...
0.61382157
7
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println(test(7, 4, 8)); System.out.println(test(7, 8, 4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ Metodo que devuelve el arraylist de tickets
public static ArrayList<Ticket> getTickets() { return ticketsBar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Ticket> getTickets() {return tickets;}", "public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (Ra...
[ "0.75586194", "0.68671143", "0.67782587", "0.67376435", "0.6628127", "0.6615181", "0.65266055", "0.65088093", "0.63738424", "0.62600255", "0.615191", "0.61338454", "0.6118507", "0.6008059", "0.60031945", "0.5914535", "0.5905084", "0.5900563", "0.58943284", "0.5878184", "0.587...
0.70152265
1
/ Metodo que llama al metodo que guarda comandas (Tickets) en la JTable.
public static void sendTicket(Ticket t) throws SQLException { tools.Search.deleteTicket(t.getMesa()); if(t.getProductosComanda().size() == 0) { m.getTicketsFrame().setTicketOnTable(t); m.getTablesFrame().setTicketOnTable(t.getMesa()); bbddManager.TicketDBManager.deleteComanda(t.getMesa()); return;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void populate(){\n DefaultTableModel dtms = (DefaultTableModel)ticketTable.getModel();\n dtms.setRowCount(0);\n for(Ticket a:ticket)\n {\n Object[] row = new Object[dtms.getColumnCount()];\n row[0]=a;\n row[1]=a.getAirlineNO();\n row[2]...
[ "0.70732653", "0.67495346", "0.67413056", "0.6714875", "0.6609138", "0.65617585", "0.65610385", "0.6532698", "0.6484529", "0.64743763", "0.63734514", "0.636235", "0.63552046", "0.6353111", "0.6347577", "0.63397175", "0.6299014", "0.6290655", "0.6280261", "0.625113", "0.623571...
0.65889823
5
/ Metodo main de la aplicacion.
public static void main(String[] args) { latch = new CountDownLatch(2); new InitApp(); try { latch.await(); } catch (InterruptedException e2) { e2.printStackTrace(); } latch = new CountDownLatch(1); m = new MainWindow(); try { latch.await(); } catch (InterruptedExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "private Main() {\n\n super();\n }", "public static void main(){\n\t}", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResourc...
[ "0.746413", "0.72014195", "0.7132432", "0.7044771", "0.7041134", "0.7033955", "0.702887", "0.6952257", "0.69441396", "0.69207895", "0.6913276", "0.68945086", "0.68842125", "0.6851401", "0.6848329", "0.6781761", "0.67583394", "0.675598", "0.67467254", "0.67357683", "0.6733441"...
0.6462927
73
Only admin role is allowed to edit
private void hideToolbarFromNonAdminUsers(FormLayout formLayout, Layout toolbar) { // TODO AbstractForm in Maddon should have overridden setReadOnly // method that would do this if (SecurityUtils.getSubject().hasRole("admin")) { toolbar.setVisible(true); for (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }", "public boolean isAdmin();", "boolean isAdmin();", "@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }", "@Override\n protected String requiredDeletePermission() {\n ...
[ "0.73202986", "0.6975894", "0.6868764", "0.6816135", "0.66565514", "0.6599878", "0.6599878", "0.6554502", "0.65202254", "0.65056354", "0.6500155", "0.6485542", "0.6468053", "0.6456964", "0.6443095", "0.64421624", "0.64192927", "0.64136577", "0.6413237", "0.64129883", "0.63819...
0.0
-1
Used when changing the port number, reinitializes the DatagramSocket if new port number.
public void setPort(int portNo) { if(port != portNo) { port = portNo; init(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initServerSock(int port) throws IOException {\n\tserver = new ServerSocket(port);\n\tserver.setReuseAddress(true);\n }", "public void initialize() throws SocketException{\n defPortUsed = true;\n initializeReal(defPortNumber, defPacketSize);\n }", "public void setupUDP(int port)...
[ "0.6864262", "0.6611402", "0.65697294", "0.63493305", "0.63493305", "0.6295403", "0.6185939", "0.61836743", "0.6183564", "0.61610085", "0.6148454", "0.6078744", "0.6077159", "0.6077159", "0.60559887", "0.6041838", "0.603654", "0.60323304", "0.60296375", "0.60233784", "0.60226...
0.64803314
3
Used when changing the host address, reinitializes the DatagramSocket if new host address.
public void setHost(String address) { final String adr = address; new Thread() { @Override public void run() { try { if (!host.equals(InetAddress.getByName(adr))) { host = InetAddress.getByName(adr); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setRemoteSocketAddress(String host){\r\n remoteSocketHost = host;\r\n }", "@Override\n\tprotected void populateRemoteHost() {\n\t\tthrow noSocket();\n\t}", "synchronized public void setHost(String host) {\n this.host = host;\n if (checkClient()) {\n prefs.pu...
[ "0.63162154", "0.62248933", "0.6082256", "0.5844826", "0.5802217", "0.5757216", "0.5669773", "0.558958", "0.55893284", "0.55859995", "0.5549105", "0.55307335", "0.55085224", "0.55014914", "0.5484542", "0.54760945", "0.54656726", "0.54566437", "0.54314137", "0.5407661", "0.539...
0.64898384
0
Used in MainActivity to send simple string messages. Creates a packet holding the message and sends it to the host address and port number.
public void sendMessage(String message) { final String msg = message; new Thread() { @Override public void run() { DatagramPacket packet = new DatagramPacket(msg.getBytes(), msg.length(), host, port); try { datagramSocket.send(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void send (String messageToSend) throws IOException {\n byte[] ba = messageToSend.getBytes();\n \n packetToSend = new DatagramPacket (ba, ba.length, serverIPAddress, PORT);\n \n //Envia el paquete por el socket.\n clientSocket.send(packetToSend);\n }", "public...
[ "0.6790634", "0.67081386", "0.66483474", "0.6600215", "0.655483", "0.6536981", "0.6438391", "0.64323616", "0.64217025", "0.6377267", "0.6301495", "0.62994516", "0.62965703", "0.62905574", "0.624064", "0.6232033", "0.62027377", "0.6197615", "0.6160901", "0.615078", "0.6150342"...
0.68217576
0
Adds the given values to the first set of values. One of the UnitStatValues should represent a bonus (e.g. it doesn't max sense to add 2 unit's hps together)
public UnitStatValues add(UnitStatValues other) { str += other.str; agi += other.agi; fort += other.fort; percep += other.percep; maxHp += other.maxHp; maxSp += other.maxSp; damage += other.damage; atkspd += other.atkspd; atk += other.atk; def += other.def; force += other.force; stab += ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void plus (Unit unit) throws ArithmeticException {\n\t\tboolean error = false;\n\t\tif (((mksa|unit.mksa)&_abs)!=0) {\t// Special dates\n\t\t\tif (mksa != (_abs^unit.mksa)) error = true;\n\t\t\telse mksa |= _abs;\t\t\t// Result is a date\n\t\t}\n\t\telse error = (mksa&(~_pic)) != (unit.mksa&(~_pic));\...
[ "0.57076013", "0.5678584", "0.5675949", "0.56439394", "0.5617978", "0.5535154", "0.5517211", "0.5514879", "0.5512836", "0.54330426", "0.5421005", "0.5402351", "0.5361583", "0.5312967", "0.53098935", "0.5281721", "0.52807754", "0.5239673", "0.5211566", "0.52079", "0.5201338", ...
0.7514172
0
Subtracts from the second set of values from the first
public UnitStatValues subtract(UnitStatValues other) { str -= other.str; agi -= other.agi; fort -= other.fort; percep -= other.percep; maxHp -= other.maxHp; maxSp -= other.maxSp; damage -= other.damage; atkspd -= other.atkspd; atk -= other.atk; def -= other.def; force -= other.force; sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaPairRDD<String, Integer> substractExample(){\n return firstSet\n .subtractByKey(secondSet);\n }", "public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }", "@Override\n\tpublic doub...
[ "0.7244955", "0.70289195", "0.6958457", "0.69547707", "0.6930407", "0.6921116", "0.691635", "0.687725", "0.683311", "0.68212783", "0.6808177", "0.67813563", "0.67694604", "0.6708684", "0.6696801", "0.6680779", "0.66690326", "0.6639085", "0.66024345", "0.65789413", "0.6516843"...
0.6670566
16
Sets both damage and ranged damage to value
public void setGeneralDamage(float value) { damage = value; rangedDamage = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDamage(double d) {\n damage = d;\n }", "public Builder setDamage(int value) {\n bitField0_ |= 0x00000080;\n damage_ = value;\n onChanged();\n return this;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public Buil...
[ "0.7543186", "0.75391537", "0.75263995", "0.7526201", "0.7492949", "0.74847907", "0.74847907", "0.7483473", "0.7373431", "0.7302155", "0.72603625", "0.7161977", "0.71310025", "0.71038777", "0.70371157", "0.6970876", "0.6955048", "0.6912381", "0.6858503", "0.6838986", "0.68293...
0.7502481
4
when music is playing in some media player
public static void main(String[] args) { MS_WindowsAPIManager.fireMediaEvent(MediaEventTypeEnum.PREV_TRACK); MS_CodingUtils.sleep(4000); MS_WindowsAPIManager.fireMediaEvent(MediaEventTypeEnum.STOP_MUSIC); MS_CodingUtils.sleep(3000); MS_WindowsAPIManager.fireMediaEvent(MediaEventT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialMusic(){\n\n }", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "@Override\r\n public void...
[ "0.74028426", "0.73968554", "0.7318718", "0.72862446", "0.7249258", "0.72358453", "0.7174249", "0.71558154", "0.71500504", "0.7127881", "0.71081215", "0.7104589", "0.7080015", "0.7057468", "0.6995124", "0.6981115", "0.6975359", "0.6970095", "0.6943196", "0.6942955", "0.693732...
0.0
-1
/ Below: methods overridden from the adaptee class. All calls are redirected to the adaptee.
@Override public EList<SourceRef> getSource() { return adaptee.getSource(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public interface Adaptable {\n\n}", "public interface IAdapter extends IManagable {\n\n /**\n \t * Instruct the adapter to configure itself. The adapter will call the\n \t * pipeline to configure ...
[ "0.6578253", "0.6405299", "0.63575786", "0.62612927", "0.6244685", "0.61904377", "0.6144546", "0.6129686", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", "0.6020316", ...
0.0
-1
Creates new form LoginWindow
public LoginWindow(Modelo miModelo) { initComponents(); miControlador = new ControladorLoginWindow(this, miModelo); this.miModelo=miModelo; this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LoginWindow()\n {\n super(\"Login\");\n\n myLoginPanel = new LoginPanel(this);\n this.setResizable(false);\n this.setContentPane(makePanel());\n this.pack();\n this.setVisible(true);\n }", "private void genLoginGui(){\n loginFrame = new JFrame(\"Log i...
[ "0.77798134", "0.7487561", "0.74544805", "0.7319445", "0.7228107", "0.7172311", "0.7073647", "0.70703477", "0.70614487", "0.7033141", "0.69639236", "0.6948532", "0.6930426", "0.69273835", "0.69060403", "0.69015855", "0.6864539", "0.68562156", "0.6841404", "0.6820494", "0.6814...
0.6908806
14
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel2 = new javax.swing.JLabel(); botonGoogle = new javax.swing.JButton(); botonFb = new javax.swing.JButton(); jLabel1 = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73201853", "0.7291607", "0.7291607", "0.7291607", "0.7285772", "0.7248832", "0.721371", "0.72083634", "0.71965843", "0.7190274", "0.71847606", "0.71592176", "0.71481156", "0.70935035", "0.70799935", "0.70570904", "0.6987588", "0.6977819", "0.69557554", "0.6953564", "0.6945...
0.0
-1
load the application context
public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContextPart2.xml"); // get bean from the application context Coach theCoach = context.getBean("myCoach", Coach.class); // call the method from the beans ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ApplicationLoader.Context context();", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontex...
[ "0.7425912", "0.70467246", "0.6720701", "0.66827977", "0.6622667", "0.6511458", "0.64990187", "0.6479813", "0.6346124", "0.63071865", "0.6281154", "0.6213119", "0.61935574", "0.6162307", "0.6151225", "0.6148328", "0.6143893", "0.61345196", "0.6029685", "0.6013023", "0.5969972...
0.0
-1
Created by walter on 16/12/28.
public interface ICompanyInfo { void uploadFace(File file, String uid, String hashid, int type); void companyInfo(String uid, String company_name, String company_tel, String company_img, String company_year, String work_year, String work_money, String company_work); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}"...
[ "0.5755353", "0.56748384", "0.5673642", "0.5653242", "0.5631448", "0.5614804", "0.5607373", "0.56003034", "0.5586491", "0.5537385", "0.5533531", "0.55246556", "0.5489902", "0.5478518", "0.5478518", "0.54739124", "0.5462901", "0.5455239", "0.54417217", "0.54174465", "0.5406196...
0.0
-1
TODO: for this test to run, update home to create session from new configuration...
public static void main(String[] args) { SectionHome sectionHome = new SectionHome(); Section section = new Section(); section.setSectionName("test_section"); sectionHome.persist(section); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(inf...
[ "0.72832626", "0.67375416", "0.62805355", "0.62419754", "0.6197816", "0.61688703", "0.6166349", "0.6123911", "0.6092598", "0.6088612", "0.60707444", "0.60707444", "0.60617423", "0.60551864", "0.59852475", "0.59519", "0.5918901", "0.5897668", "0.5847024", "0.5825814", "0.58068...
0.0
-1
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { viewHolder = new ViewHolder(); convertView = InjectProcessor.injectListViewHolder(viewHolder); convertView.setTag(viewHolder); } else { viewHolder = (ViewHolder) ...
{ "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
Constructor Setting name of the animal and HomeType
public Tiger(String name) { setName(name); super.Home = "forest."; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AnimalSpecific(String category,String name,String type){\n\t\tsuper(category);\n\t\tanimalName = name;\n\t\tanimalType = type;\n\t}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "public Animal(String name, String type, S...
[ "0.7601574", "0.75213486", "0.7091622", "0.6929659", "0.68118167", "0.6429741", "0.62801254", "0.62775904", "0.62734705", "0.6270428", "0.62594366", "0.6245481", "0.6236093", "0.62197286", "0.61510605", "0.6057496", "0.60374546", "0.60086006", "0.6000283", "0.5943301", "0.594...
0.63116026
6
Generates Regression Test base on the current test.
public RegressionTest generateRegressionTest() { return getInstance().create().regressionTest(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected LearningPerformanceEvaluator<Example<Instance>> [] getRegressionEvaluatorSetups() {\n \tLearningPerformanceEvaluator<Example<Instance>> value = new BasicRegressionPerformanceEvaluator();\n \tLearningPerformanceEvaluator<Example<Instance>> [] ret = new BasicRegressionPerformanceEvalu...
[ "0.601348", "0.5921491", "0.5870989", "0.58090156", "0.5781788", "0.5733605", "0.5711494", "0.5634968", "0.5613702", "0.5603351", "0.54225767", "0.5392295", "0.53014654", "0.521435", "0.52135545", "0.5185326", "0.5149574", "0.5142078", "0.51395816", "0.51358706", "0.51031655"...
0.884113
0
Created by Administrator on 2017/5/25.
public interface MediaPlayer { public void play(String mediaType,String fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Ov...
[ "0.6291351", "0.61143273", "0.58851165", "0.58840513", "0.5849571", "0.5833249", "0.5821043", "0.5759452", "0.5758597", "0.5744525", "0.5744525", "0.57264096", "0.5725081", "0.5725081", "0.57208633", "0.5675805", "0.56750727", "0.5670423", "0.5668386", "0.5660013", "0.5659535...
0.0
-1
/ 2^15 = 32768 and the sum of its digits is 26. What is the sum of the digits of the number 2^1000? BigInteger and bit manipulation: 2^1000 is a huge number, so we can use BigInteger to store it. shiftLeft will essentially shift the number n times, the number passed into the function. This means we're multiplying the c...
public static int digitSumPowerTwo(int n) { String num = BigInteger.ONE.shiftLeft(1000).toString(); int sum = 0; for (int i = 0; i < num.length(); i++) sum += num.charAt(i) - '0'; return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void shiftLeft(int numberToShift);", "int left(int i) { return i<<1; }", "public static long sumOfDigitsByStream(BigInteger integer) {\n return integer.toString().chars()\n .map(x -> x & 0xF)\n .sum();\n }", "void shiftRight(int numberToShift);", "short digits();", ...
[ "0.6082635", "0.55755556", "0.5494899", "0.54630196", "0.54583526", "0.54381907", "0.54270583", "0.5420644", "0.54101497", "0.53817993", "0.5356335", "0.53500235", "0.5331985", "0.5318995", "0.5315217", "0.5302749", "0.52752966", "0.52604944", "0.52399176", "0.52149737", "0.5...
0.5617054
1
Created by asham_000 on 7/16/2015.
public interface MoveTreeGeneratorInterface { public List getNextMoves(CheckersBoard board) throws BadMoveException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.6066946", "0.5962797", "0.590852", "0.5893548", "0.5888851", "0.5837117", "0.58071154", "0.58029366", "0.57879007", "0.57879007", "0.5773754", "0.57491237", "0.5732619", "0.5695021", "0.5693275", "0.5682265", "0.56783164", "0.56719255", "0.5660676", "0.56579393", "0.565758...
0.0
-1
write your code in Java SE 8
public static int[] solution(int[] A, int K) { for (int counter = 1; counter <= K; counter++) { int n = A.length - 1; int temp = A[n]; for (int i = 0; i < n; i++) { A[n - i] = A[n - i - 1]; } A[0] = temp; } return A; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\...
[ "0.5890391", "0.58054996", "0.57008785", "0.56167847", "0.54946315", "0.54761344", "0.524263", "0.52340496", "0.5233149", "0.52029705", "0.5160466", "0.51574665", "0.5143396", "0.5094738", "0.5084682", "0.5069909", "0.50661004", "0.50645214", "0.5064437", "0.50475377", "0.504...
0.0
-1
write your code in Java SE 8
public static int borderSolution(int[] A) { int bordersNum = 0; for (int i = 0; i < A.length - 1; i++) { if (bordersNum > 10000000) return -1; for (int j = i + 1; j < A.length; j++) { int min1 = i - A[i]; int max1 = i + A[i]; int ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\...
[ "0.5890391", "0.58054996", "0.57008785", "0.56167847", "0.54946315", "0.54761344", "0.524263", "0.52340496", "0.5233149", "0.52029705", "0.5160466", "0.51574665", "0.5143396", "0.5094738", "0.5084682", "0.5069909", "0.50661004", "0.50645214", "0.5064437", "0.50475377", "0.504...
0.0
-1
write your code in Java SE 8
public static int bestSolution(int[] A) { int counter = 0, j = 0; long[] upper = new long[A.length]; long[] lower = new long[A.length]; for (int i = 0; i < A.length; i++) { lower[i] = (long) i - A[i]; upper[i] = (long) i + A[i]; } Arrays.sort(low...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\...
[ "0.5890391", "0.58054996", "0.57008785", "0.56167847", "0.54946315", "0.54761344", "0.524263", "0.52340496", "0.5233149", "0.52029705", "0.5160466", "0.51574665", "0.5143396", "0.5094738", "0.5084682", "0.5069909", "0.50661004", "0.50645214", "0.5064437", "0.50475377", "0.504...
0.0
-1
write your code in Java SE 8
public static int Bricksolution(int[] H) { int i = 0; int index = 0; ArrayList indexes = new ArrayList(); do { if (H[i] <= H[i + 1]) { i++; } else { indexes.add(i); i++; } } while (i < H.length); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\...
[ "0.5890391", "0.58054996", "0.57008785", "0.56167847", "0.54946315", "0.54761344", "0.524263", "0.52340496", "0.5233149", "0.52029705", "0.5160466", "0.51574665", "0.5143396", "0.5094738", "0.5084682", "0.5069909", "0.50661004", "0.50645214", "0.5064437", "0.50475377", "0.504...
0.0
-1
This is a test of creating a new Writer object.
@Test public void testWriter() { String s = "This is a test of the writer"; Writer w = new Writer(); assertThat(w, is(notNullValue())); w.write(s); assertThat(w.read(), is(s)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private WriterFactory() {\n }", "Write createWrite();", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "@Test\n\tpublic void testVariousWriteMethods() throws Exception {\n\t\tfinal String reference = \"test\";\n\t\tfinal StringWriter...
[ "0.72184074", "0.67673564", "0.6668672", "0.6383786", "0.63742256", "0.6293572", "0.6281074", "0.62686205", "0.6259815", "0.62559766", "0.6248378", "0.6065288", "0.60149026", "0.60013646", "0.59941137", "0.59623665", "0.5917328", "0.5906243", "0.5875125", "0.5860252", "0.5857...
0.7936644
0
This is the default constructor
public illumPanelEdit1() { super(); initialize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "defaultConstructor(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Orbiter() {\n }", "public Pitonyak_09_02() {\r\n }", "public PSRelation()\n {\n }", "p...
[ "0.85315686", "0.8274922", "0.75848484", "0.74773645", "0.7456932", "0.7447545", "0.7443651", "0.7441528", "0.7410326", "0.74039483", "0.7391621", "0.7377517", "0.73672515", "0.7351425", "0.73242426", "0.7324195", "0.73132765", "0.73016304", "0.7279156", "0.7262864", "0.72578...
0.0
-1
return ifD1.getValue()100.0;// X100 lux
public double getValue() { return ifD1.getValue();// X100 lux }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(14)\r\n double getValue();", "public double getLoX() {\r\n\treturn fieldLoX;\r\n}", "float getAccX();", "float getValue();", "float getValue();", "float getValue();", "double getValue();", "double getValue();", "double getValue();", "float getIva();", "double getDoubleValue3();", "publ...
[ "0.6832763", "0.67398816", "0.6721467", "0.6698777", "0.6698777", "0.6698777", "0.66829854", "0.66829854", "0.66829854", "0.66701204", "0.6654627", "0.66249883", "0.6502648", "0.6444885", "0.64383817", "0.64342123", "0.642001", "0.64168763", "0.6408717", "0.6400617", "0.63643...
0.8334092
0
This method initializes this
private void initialize() { GridLayout gridLayout = new GridLayout(); gridLayout.setRows(1); GridBagLayout gridbag = new GridBagLayout(); base=new JPanel(gridbag); base.setBackground(new Color(250,251,245)); // default size base.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT); //base.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void init()\n\t\t{\n\t\t}", "public void initialize()\n {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "protected void initialize() {\n \t\n }", "@Override\r\n\tpub...
[ "0.8354825", "0.8309513", "0.8283604", "0.8257773", "0.8200911", "0.8199891", "0.8150085", "0.812387", "0.8104957", "0.8103473", "0.8103473", "0.8103473", "0.80656415", "0.8054776", "0.8038111", "0.8030163", "0.8019929", "0.7993678", "0.7993678", "0.7987857", "0.798652", "0...
0.0
-1
Metodo que obtiene todos los datos
@GET public List<EnterpriseUserDTO> getEnterpriseUserList(){ List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers(); return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void limpiarDatos() {\n\t\t\n\t}", "public ArrayList<Mascota> obtenerDatos(){\n\n BaseDatos db = new BaseDatos(context);\n\n ArrayList<Mascota> aux = db.obtenerTodoslosContactos();\n\n if(aux.size()==0){\n insertarMascotas(db);\n aux = db.obtenerTodoslosContacto...
[ "0.7333164", "0.70674896", "0.69931525", "0.6933376", "0.68214005", "0.67768997", "0.67518824", "0.6714798", "0.6692888", "0.66880447", "0.6676573", "0.66734004", "0.66421455", "0.663411", "0.6615938", "0.6582651", "0.6572583", "0.65621364", "0.6561266", "0.65403897", "0.6533...
0.0
-1
Obtener por su id
@GET @Path("{id: \\d+}") public EnterpriseUserDTO getEnterpriseUser(@PathParam("id") Long id){ EnterpriseUserEntity enterpriseUser = enterpriseUsersLogic.obtenerEnterpriseUser(id); if (enterpriseUser == null){ throw new RuntimeException("No existe"); } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java....
[ "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.7972716", "0.78744555", "0.7863147", ...
0.0
-1
Instantiates a new bank remittance list controller.
public BankRemittanceListController() { // Default empty constructor. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BankRegistrationController() {\n }", "public PortalController() {\n bank = new Bank();\n }", "@Override\n\tprotected AbstractManageController createController() {\n\t\tif (m_ctrl == null)\n\t\t\tm_ctrl = new BankKeepController();\n\t\treturn m_ctrl;\n\t}", "@RequestMapping(value = \"bankR...
[ "0.6204305", "0.60007745", "0.5898503", "0.576941", "0.57579833", "0.56629246", "0.566226", "0.5526544", "0.5503401", "0.5480617", "0.547292", "0.54707783", "0.54522014", "0.5423508", "0.5401258", "0.53963107", "0.53751904", "0.5366443", "0.5332575", "0.5331728", "0.5293595",...
0.8336269
0
Creates the bank remittance.
@RequestMapping(value = "bankRemittanceList", method = RequestMethod.POST) public String createBankRemittance(@Valid @ModelAttribute BankRemittanceForm bankRemittanceForm, RedirectAttributes ra) { bankRemittanceService.createBankRemittance(DateUtils.format(bankRemittanceForm.getDateCharge(), DateUtils.FORMAT_DATE),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void createNewAccountWithOpeningBalanceDebitTest() {\n\t\tcreateAccountDebtsTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}", "@Test\n\tpublic void createAccountDebtsTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnDebt.setSelected(true);\n\t\tdata.setRdbtnDebt(rdbtnDebt);\n\t\...
[ "0.6318638", "0.6184281", "0.61012876", "0.5852356", "0.5823342", "0.5782764", "0.5767218", "0.5748892", "0.5744501", "0.5729803", "0.57275635", "0.5720645", "0.57185435", "0.56889886", "0.56674796", "0.55958205", "0.5568814", "0.55650115", "0.5545509", "0.5530074", "0.552774...
0.6818048
0
This can be changed based on how harsh we want to approve messages
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.approve_message); messagesRatedInRow = 0; AlertDialog.Builder login_dialog_builder = new AlertDialog.Builder(context); LayoutInflater inflater = (LayoutInflater) context.getSystemService(Conte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String approveMsg(Long id){\n return messagesParser.approve(id);\n }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "public String approveMarriageNotice() {\n if (logger.isDebugEnabled()) {\n logger.debug(\"approving marriage notice idUKey : \" + idUKe...
[ "0.71801764", "0.6408428", "0.6246567", "0.61855716", "0.61162627", "0.5992898", "0.5967407", "0.595515", "0.59513813", "0.5920113", "0.5895455", "0.5849021", "0.58475643", "0.57785046", "0.57400817", "0.57388026", "0.57345325", "0.57315105", "0.57315105", "0.5706015", "0.566...
0.0
-1
/import com.sinosoft.one.ams.model.Role; import com.sinosoft.one.ams.model.RoleDesignateInfo; import com.sinosoft.one.ams.model.Task;
@Service public interface RoleService { //查询角色信息 public Role findRoleById(String roleId); //根据角色ID查询角色关联的功能 public List<Task> findTaskByRole(String roleId); //根据机构查询所有可用的功能 public List<Task> findTaskByComCode(String comCode); //查询机构下所有可见的角色 public Page<Role> findRole(String comCode,Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Import createImport();", "Import createImport();", "protected String getImportStatement() {\n return \"\";\n }", "@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_...
[ "0.5515908", "0.5515908", "0.54917604", "0.518991", "0.51779366", "0.5131719", "0.5112301", "0.50980574", "0.5086179", "0.50507855", "0.50309056", "0.49662316", "0.4827662", "0.4792537", "0.47715163", "0.47707415", "0.47120634", "0.47060174", "0.47029263", "0.4696344", "0.469...
0.0
-1
Inflate your custom layout
@Override protected void findView() { final ViewGroup actionBarLayout = (ViewGroup) getLayoutInflater().inflate( R.layout.action_bar,null); // Set up your ActionBar final ActionBar actionBar = getActionBar(); actionBar.setDisplayShowHomeEnabled(true); actionBar.setDisplaySho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onFinishInflate() {\n super.onFinishInflate();\n this.mIconView = (ImageView) findViewById(R.id.icon);\n this.mTitleView = (TextView) findViewById(R.id.title);\n this.mSummaryView = (TextView) findViewById(R.id.summary);\n this.mSlidingButton = findViewById(R.id.slidi...
[ "0.68913174", "0.68802816", "0.6692654", "0.66695833", "0.6658985", "0.66384774", "0.66171247", "0.65857816", "0.6568135", "0.6560309", "0.6544205", "0.6531368", "0.648756", "0.6483713", "0.64816105", "0.6480777", "0.6479792", "0.64452887", "0.64275897", "0.6414344", "0.64031...
0.0
-1
Busca Amount na lista a partir do nome do mineral
public Amount<Mineral> searchByName(String name){ for(int i=0; i<this.mineralList.size(); i++) { if(this.mineralList.get(i).getObject().getName() == name) return this.mineralList.get(i); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> Mass(String from, float amount, String[] units) {\n\t\tfrom = findFrom(from);\n\t\tif (from.equals(\"gram\")) {\n\t\t\tArrayList<String> kaduvil = new ArrayList<String>();\n\t\t\tkaduvil.add(\"\" + amount + \" \" + units[0] );\n\t\t\tkaduvil.add(\"\" + amount / 1000 + \" \" + units[1] );\n...
[ "0.5683671", "0.56682044", "0.5464488", "0.5439676", "0.54184294", "0.53917813", "0.5366653", "0.53586435", "0.5347888", "0.5251159", "0.5208831", "0.5153328", "0.51427656", "0.51389605", "0.51081145", "0.51052445", "0.5094109", "0.50809014", "0.50739896", "0.5068851", "0.506...
0.58348185
0
constructor for loadEnterpriseList() in EnterpriseDAO
public Enterprise(Long id, String idEnterprise, String name, Long phone, String address, String description) { this.id = id; this.idEnterprise = idEnterprise; this.name = name; this.phone = phone; this.address = address; this.description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataSourceEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public EmployeeList() {\r\n initComponents();\r\n\r\n empName = getEmployeeName();\r\n empPosition = getEmployeePosition();\r\n System.out.println(empName + \"----- \" + empPosition);\r\n ...
[ "0.6247666", "0.6168357", "0.596372", "0.5947107", "0.59152085", "0.5909829", "0.5876861", "0.5760325", "0.5641014", "0.5639978", "0.5593808", "0.55889165", "0.5587104", "0.5536398", "0.5526343", "0.5522317", "0.5522317", "0.5514288", "0.5498687", "0.54975164", "0.54928637", ...
0.54189104
24
Use this factory method to create a new instance of this fragment using the provided parameters.
public static TVListFragment newInstance() { TVListFragment fragment = new TVListFragment(); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_tv_list, container, false); this.gridView = view.findViewById(R.id.tv_list); TVAdapter TVAdapter = new TVA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Continue the most recent workout.
private void continueLastWorkout() { Workout last_workout = lift_db_helper.selectLastWorkout(); if (last_workout != null) { AddLift.start(current_context, last_workout); } else { Snackbar no_previous_workouts = Snackbar.make(findViewById(R.id.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getNextWorkout(){\n mCurrentWorkout += 1;\n mCurrentData += 1;\n if (mCurrentData > 1) {\n mTxtTitle.setText(\"(\" + mCurrentWorkout + \"/\" + mWorkoutNames.size() + \") \" +\n mWorkoutNames.get(mCurrentData - 1));\n ...
[ "0.6457005", "0.6150596", "0.6109988", "0.59967524", "0.590251", "0.5737371", "0.57312065", "0.5567844", "0.54395807", "0.5437038", "0.5424185", "0.5382206", "0.53782165", "0.53682554", "0.53256637", "0.5324046", "0.5316004", "0.52853477", "0.52850103", "0.52709657", "0.52694...
0.8163677
0
carrega os medicamentos na tabela
@PostConstruct public void init(){ medicamentos = new ArrayList<Medicamento>(); if (getUsuario().getPermissao().contains("ROLE_PECUARISTA")) { medicamentos = medicamentoFacade.medicamentosUsuario(getUsuario()); }else { medicamentos = medicamentoFacade.medicamentosUsuario(systemSessionMB.getFazenda().getPec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n ...
[ "0.6705984", "0.66684717", "0.65930337", "0.6581462", "0.65084225", "0.6425018", "0.6315489", "0.6296194", "0.6290339", "0.62816066", "0.6242437", "0.6236452", "0.61885184", "0.6182548", "0.6174927", "0.61624455", "0.613631", "0.6135035", "0.6125637", "0.61239034", "0.6115263...
0.0
-1
Deleta medicamento da lista e do banco de dados
public void deletaMedicamento(Medicamento medicamento){ medicamentos.remove(medicamento); medicamentoFacade.deletarMedicamento(medicamento.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void imprimirBancoDados() {\n\t\tSystem.out.println(\"Nome do Banco: \"+nomeBanco);\n\t\tSystem.out.println(\"Tipo do Banco: \"+tipoBanco);\n\t\tSystem.out.println(\"Lista de Metodos: \"+listaMetodos);\n\t}", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public List<Mo...
[ "0.7040702", "0.6913195", "0.67772853", "0.67640495", "0.6736064", "0.6712098", "0.66823286", "0.6492538", "0.6462974", "0.64414793", "0.6436464", "0.64051944", "0.63921344", "0.639189", "0.63889706", "0.6383955", "0.6372964", "0.63520193", "0.6343641", "0.6323486", "0.632343...
0.0
-1
TODO Autogenerated method stub
@Override public List<Ccspxxb> selectCcspxx() { return ccspxxbMapper.selectByExample(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Ccspxxb> selectByExamplel(Ccspxxb ccspxx) { return ccspxxbMapper.selectByExamplel(ccspxx); }
{ "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
Transform vss model to svn model
public ISvnModel buildSvnModel() { VssModel vssModel = buildVssModel(); if (incrementalWarning) LOG.warn("unsupported operations(delete,rename,share,branch) detected in project, incremental dump can be broken"); VssTransform tr = new VssTransform(this); SvnModel svnModel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testVSMMigrationInWorkspace() {\n copyFilesToTestProject(SiriusTestsPlugin.PLUGIN_ID, DATA_PATH, VSM_NAME);\n\n ResourceSet set = new ResourceSetImpl();\n Group modeler = null;\n try {\n modeler = (Group) ModelUtils.load(URI.createPlatformResourceURI(TEMPORARY_PRO...
[ "0.5357046", "0.52847695", "0.5010629", "0.48396647", "0.48334715", "0.47535685", "0.47139695", "0.4700494", "0.46858537", "0.46844965", "0.4649118", "0.46321416", "0.46272117", "0.4612716", "0.45847178", "0.45748532", "0.4563531", "0.45624587", "0.45585254", "0.4558419", "0....
0.74576336
0
Create content retriever for revision
public IContentRetriever createContentRetriever(VssFileRevision revision) { if (config.isUseOnlyLastRevisionContent() && !revision.isLastRevision()) { return ZeroContentRetriever.INSTANCE; } else { return new VssContentRetriever(this, revision); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddAndGetRevision() throws Exception {\n Revision revision = Revision.createRevision(m_WIP_Document, new Date(), c_TestRevisionContent + \" (DYNAMIC)\");\n List<Revision> revisions = DocumentManager.getInstance().getRevisions(m_WIP_Document, QueryParam.UNSORTED);\n A...
[ "0.65259135", "0.58321375", "0.57523465", "0.57022417", "0.5643828", "0.55171496", "0.5512838", "0.5494943", "0.54823184", "0.54367954", "0.5424831", "0.53870416", "0.53791755", "0.5340878", "0.53267694", "0.52901286", "0.5242121", "0.5211951", "0.5204682", "0.5184567", "0.51...
0.7029575
0
Load version history for all files in project and all subprojects
private void loadHistory(VssProject vssProject) { if (!incrementalWarning) checkDirHistory(vssProject); for (Iterator i = vssProject.getFiles().iterator(); i.hasNext();) { VssFile file = (VssFile) i.next(); loadHistory(file); } for (Iterator i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ChangedFile> getChangedFiles(Project project);", "void findHistory(File f,IvyXmlWriter xw)\n{\n StringCommand cmd = new StringCommand(cvs_command + \" log \" + getRelativePath(f));\n String rslt = cmd.getContent();\n\n StringTokenizer tok = new StringTokenizer(rslt,\"\\n\");\n String rev = null;\n ...
[ "0.5921563", "0.5703528", "0.5610158", "0.55175424", "0.5502812", "0.54604644", "0.5455955", "0.53698266", "0.5355211", "0.53486747", "0.52663136", "0.5265018", "0.52583313", "0.51863056", "0.5147649", "0.5134528", "0.51300734", "0.51052636", "0.5050498", "0.5012914", "0.5004...
0.7193224
0
Check project for existing of unsupported operations
private void checkDirHistory(VssProject project) { try { File dirHistory = getVss().getDirHistory(project); BufferedReader r = Util.openReader(dirHistory, config.getLogEncoding()); try { String s; while ((s = r.readLine()) != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasProject();", "@Test\n public void testIsCreatingProjectIfMissing() throws Exception {\n assertThat(\"Expect true\", testling.isCreatingProjectIfMissing(), is(Boolean.TRUE));\n }", "String checkIfProjectExists(String projectKey, String projectName);", "@Override\r\n\t@Test(groups = {\"...
[ "0.64552337", "0.6070144", "0.57539696", "0.57466084", "0.56822157", "0.5660121", "0.56209475", "0.560205", "0.56012815", "0.55882275", "0.5587505", "0.5536509", "0.55218023", "0.54927814", "0.5424886", "0.54048884", "0.5386012", "0.53713053", "0.5343062", "0.5333321", "0.532...
0.0
-1
Load version history for file
private void loadHistory(VssFile vssFile) { if(config.useComApi) { getVss().getComApiFileHistory(vssFile); } else { File historyFile = getVss().getFileHistory(vssFile); VssHistoryParser p = new VssHistoryParser(config); p.parseFileHistory(historyFile, vs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void readHistoryData()\n throws FileNotFoundException {\n File file = new File(HISTORY_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n StringBuilder message = new StringBuilder();\n int index = 1;\n w...
[ "0.6552139", "0.6549593", "0.64660543", "0.63887537", "0.61489093", "0.60268795", "0.59898144", "0.5851957", "0.58199006", "0.5689449", "0.5662529", "0.5509813", "0.5482704", "0.5463437", "0.54471433", "0.5445846", "0.54303694", "0.5428895", "0.5397362", "0.53946686", "0.5391...
0.74591637
0
Build project tree (tree of VssProject objects)
private void buildTree(String projectPath, VssProject vssProject) { if(config.useComApi) { getVss().getComApiDirProject(vssProject); } else { File file = getVss().listFilesInProject(projectPath); BufferedReader in = Util.openReader(file, config.getLogEncoding()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseTree(BufferedReader in, VssProject vssProject) {\r\n try {\r\n String line;\r\n boolean start = false;\r\n while ((line = in.readLine()) != null) {\r\n if (!start) {\r\n if (line.startsWith(\"$\") && line.endsWith(\":\")) {...
[ "0.6242489", "0.6107362", "0.6107362", "0.6107362", "0.59571457", "0.5896064", "0.5841707", "0.57942164", "0.5755461", "0.57446057", "0.5735816", "0.5723281", "0.56952864", "0.5640102", "0.5623557", "0.561614", "0.56032634", "0.5594273", "0.5581402", "0.55710644", "0.55465966...
0.7621011
0
Parse output of "ss.exe dir" command
private void parseTree(BufferedReader in, VssProject vssProject) { try { String line; boolean start = false; while ((line = in.readLine()) != null) { if (!start) { if (line.startsWith("$") && line.endsWith(":")) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dir() throws IOException {\n sendCommand(\"PWD\");\n String dir = null;\n String response = reader.readLine();\n if (response.startsWith(\"257 \")) {\n int firstQuote = response.indexOf('\\\"');\n int secondQuote = response.indexOf('\\\"', firstQuote ...
[ "0.5189179", "0.5159227", "0.50037456", "0.49648675", "0.4951047", "0.49499956", "0.480178", "0.47724304", "0.47695878", "0.47284392", "0.4695947", "0.46897447", "0.46638253", "0.46442732", "0.4608855", "0.46076885", "0.45501542", "0.45424944", "0.45219547", "0.44964194", "0....
0.0
-1
/ renamed from: c
public i getItem(int position) { ArrayList<MenuItemImpl> items = this.f205e ? this.f202b.z() : this.f202b.E(); int i = this.f203c; if (i >= 0 && position >= i) { position++; } return (i) items.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
assertion: all files are different
public static Map<Module, List<VirtualFile>> buildModuleToFilesMap(final CompileContext context, final List<VirtualFile> files) { final Map<Module, List<VirtualFile>> map = new THashMap<Module, List<VirtualFile>>(); ApplicationManager.getApplication().runReadAction(new Runnable() { public void run() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void equalsDifferentName(){\n\n InputStream url1= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n InputStream url1h= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1h.json\");\n\n Backup backup_a = Backup.initFromFile(url1...
[ "0.72179675", "0.7120177", "0.7066221", "0.7005286", "0.69739413", "0.69113183", "0.6859102", "0.6829292", "0.6805359", "0.6776583", "0.6769054", "0.67119044", "0.6600667", "0.6506092", "0.6471104", "0.6408512", "0.64065766", "0.6327112", "0.62860227", "0.6271978", "0.6265475...
0.0
-1
must not be called inside ReadAction
public static void refreshIOFiles(@NotNull final Collection<File> files) { final long start = System.currentTimeMillis(); try { for (File file1 : files) { final VirtualFile file = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file1); if (file != null) { file.refresh(fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\n\tpublic void read() {\n\n\t}", "@Override\r\n\tpublic void read() {\n\r\n\t}", "public void ownRead();", "@Override\n protected boolean needReadActionToCreateState() {\n return false;\n }", "abstract void read();",...
[ "0.7594123", "0.7191937", "0.716826", "0.6868894", "0.6822488", "0.6737658", "0.6607232", "0.6575627", "0.64620537", "0.63884115", "0.63884115", "0.63884115", "0.6368097", "0.6360403", "0.63573223", "0.63573223", "0.63573223", "0.63573223", "0.63573223", "0.63573223", "0.6357...
0.0
-1
need to specify default encoding so that javac outputs messages in 'correct' language noinspection HardCodedStringLiteral
public static void addLocaleOptions(final List<String> commandLine, final boolean launcherUsed) { commandLine.add((launcherUsed? "-J" : "") + "-D" + CharsetToolkit.FILE_ENCODING_PROPERTY + "=" + CharsetToolkit.getDefaultSystemCharset().name()); // javac's VM should use the same default locale that IDEA uses in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setCharacterEncoding(String arg0) {\n\n }", "@Override\n public String getCharacterEncoding() {\n return null;\n }", "public String getJavaEncoding();", "public interface EncoderConstants\n{\n\t/**\n\t * The default charset string.\n\t */\n\tpublic static final String DEFAULT_C...
[ "0.67238355", "0.6473887", "0.6302419", "0.620422", "0.60942495", "0.60735494", "0.60628694", "0.60595953", "0.6039346", "0.6010189", "0.59336066", "0.59238267", "0.5922099", "0.5905997", "0.5874209", "0.5865409", "0.58641326", "0.58641326", "0.5849782", "0.5849351", "0.58483...
0.0
-1
TODO Autogenerated method stub
@Override public void b() { }
{ "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
default / Melhores temas: start bluesky cupertino redmond humanity hotsneaks blitzer afternoon Botoes: delta start flick
@Override protected void init() { List<Configuracao> configs = servico.listarTodos(); if (!configs.isEmpty()) { entidade = configs.get(0); // deve haver apenas um registro } else { createConfiguracao(); } carregarTemas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start(float delta) {\n\t\t\n\t}", "private void start() {\n\n\t}", "@Override\n\tpublic void start() {\n\t\t\tSystem.out.println(\"BMW --- strart\");\n\t}", "public static void main(String[] args) {\n addTint(new DemoTint());\n // start script with filename and function registry\n ...
[ "0.6633777", "0.60345036", "0.5997874", "0.5959923", "0.5951824", "0.5951824", "0.59408486", "0.59408486", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", "0.5939597", ...
0.0
-1
Created by Administrator on 2016/10/19.
@Singleton @Component(modules = {AppModule.class, AppClientModule.class}) public interface AppComponent { Application getApplication(); MainViewInteraction getWeatherInteractor(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.6242293", "0.6133287", "0.6033158", "0.5985007", "0.5953132", "0.593938", "0.5902989", "0.5868517", "0.5866762", "0.5853025", "0.5853025", "0.58398914", "0.58398914", "0.5819075", "0.58106655", "0.5798139", "0.57799923", "0.5779239", "0.577476", "0.57350814", "0.5722325", ...
0.0
-1
Equal method for the CustomerRouteTabuPosition.
@Override public boolean equals(Object obj) { if (obj == null) { return false; } try { final CustomerTabu other = (CustomerTabu) obj; if (this.getCustomer() != other.getCustomer()) { return false; } try { final CustomerRouteTabu other2 = (CustomerRouteTabu) ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "@Override\n public boolean equals(Object obj) {\n i...
[ "0.5891131", "0.5721023", "0.5638005", "0.5604332", "0.5529913", "0.55024946", "0.54877746", "0.5480065", "0.54699695", "0.5468072", "0.5431242", "0.5426405", "0.54260385", "0.5413164", "0.539939", "0.5377084", "0.53376585", "0.53255904", "0.5301988", "0.527977", "0.5270267",...
0.7326032
0
Constructs a SpringJmsProvider object given the name of a classpath resource (the spring application context file), and the bean names of a JMS connection factory and destination.
public SpringJmsProviderMain(String appContextClasspathResource, String connectionFactoryBean, String destinationBean, String jmsTemplateBean) { ApplicationContext context = new ClassPathXmlApplicationContext(appContextClasspathResource); this.jmsTemplate = (JmsTemplate) context.getBean(jmsTemplateBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SpringJmsProvider(ApplicationContext context, String connectionFactoryBean, String destinationBean){\n this.connectionFactory = (ConnectionFactory)context.getBean(connectionFactoryBean);\n this.destination = (Destination)context.getBean(destinationBean);\n }", "public MessageDestinationFa...
[ "0.73020035", "0.5485776", "0.52265394", "0.4937619", "0.48904312", "0.48802826", "0.48618817", "0.4800828", "0.47890726", "0.47232646", "0.47162825", "0.4667765", "0.46559197", "0.46416515", "0.46224332", "0.4610363", "0.46051642", "0.45978442", "0.45627996", "0.45509857", "...
0.7642246
0
An activity that sends notifications to the user. Created by hollie on 17/04/2017.
public interface NotificationSenderActivity { public void update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendNotification() {\n }", "private void sendNotification() {\n int mNotificationId = 001;\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_action_camera)\n .setContentTitle(\"Daily Selfie\")\n ...
[ "0.75609684", "0.7531252", "0.7082101", "0.70379347", "0.7008891", "0.6988059", "0.6974694", "0.693065", "0.69248766", "0.69235927", "0.6880307", "0.6846301", "0.6833024", "0.68013066", "0.6790052", "0.67844033", "0.67802066", "0.6779987", "0.6772445", "0.6768704", "0.6738765...
0.6328003
69
Gets the value of the iznos property.
public double getIznos() { return iznos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIzq() {\r\n\t\treturn izq;\r\n\t}", "public int getItens() {\n\t\treturn itens;\n\t}", "public void setIznos(double value) {\n this.iznos = value;\n }", "Integer getIPos();", "public Nodo getNodoIzquierdo(){\n return izq;\n }", "public ArrayList<Integer> getNumeros(){\r\n\t\tr...
[ "0.6587908", "0.60673475", "0.6063164", "0.6005631", "0.59993386", "0.5976214", "0.59545887", "0.58414125", "0.5828442", "0.5791018", "0.5789253", "0.5757976", "0.57493967", "0.5747832", "0.569675", "0.5641966", "0.564167", "0.5615451", "0.5609077", "0.56009793", "0.5585501",...
0.79933715
0