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
Parameterized constructor. When extending this class the derived class must invoke one of this classes constructors for proper initialization.
public MovementDAO(String drivername, String url, String user, String password) { super(drivername, url, user, password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseParameters(){\r\n\t}", "public Constructor(){\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public Parameters() {\n\t}", "protected abstract void construct();", "public Generic(){\n\t\tthis(null);\n\t}", "privat...
[ "0.73017305", "0.7107994", "0.70598936", "0.6703999", "0.6669708", "0.659633", "0.6433473", "0.6425707", "0.6330248", "0.6329266", "0.6315734", "0.6314161", "0.6260822", "0.6233059", "0.6227793", "0.6203737", "0.6197841", "0.61917806", "0.6187595", "0.6186265", "0.61787593", ...
0.0
-1
/ BEHAVIOR Called by create() to insert entity state into the data store for a new entity.
@Override public void dbInsert(MovementModel model) throws DAOSysException { dbInsert(model, MovementDAO.INSERT_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.persist(entity);\n LOG.info(\"[insert] End\")...
[ "0.7009963", "0.6484128", "0.6280976", "0.62657833", "0.6248784", "0.62396634", "0.61984116", "0.61794245", "0.61711246", "0.6110991", "0.6109579", "0.6099154", "0.6094872", "0.6073424", "0.60319835", "0.60137326", "0.59853214", "0.59853214", "0.5967601", "0.5960698", "0.5947...
0.0
-1
Called by create() to insert entity state into the data store for a new entity.
@Override public void dbInsert(MovementModel model, String insertStm) throws DAOSysException { PreparedStatement preparedStm = null; Connection connection = null; try { connection = connectToDB(); preparedStm = connection.prepareStatement(insertStm); preparedStm.setInt(1, model.getMovementNumber()); preparedStm.setString(2, model.getMovementName()); preparedStm.executeUpdate(); } catch (SQLException sex) { throw new DAOSysException("Error adding composition <" + model.getMovementNumber() + " "+ model.getMovementName() + "> " + sex.getMessage()); } finally { try { releaseAll(null, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.persist(entity);\n LOG.info(\"[insert] End\")...
[ "0.6945452", "0.6522667", "0.6289417", "0.627963", "0.6224305", "0.61807466", "0.61805236", "0.6144346", "0.60782015", "0.60745025", "0.6067445", "0.6054309", "0.603566", "0.6010033", "0.6006847", "0.5983363", "0.5974213", "0.59723884", "0.59723884", "0.5942246", "0.5940945",...
0.0
-1
Called by findByPrimaryKey() to retrieve an entity by the primary key.
@Override public MovementModel dbSelectByPrimaryKey(MovementPK primarykey) throws DAOSysException, NoSuchEntityException { return dbSelectByPrimaryKey(primarykey, MovementDAO.SELECT_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getByPk(int key) throws PersistException;", "@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}", "public Object getGenericEntityByPrimaryKey(Class ent, Serializable key) throws RepositoryException{\n\t\treturn Datanuc...
[ "0.7357301", "0.72451776", "0.7241902", "0.72216195", "0.7151979", "0.7054232", "0.70405143", "0.70378375", "0.70227367", "0.6997087", "0.6982699", "0.6960999", "0.6952572", "0.69250154", "0.68722606", "0.6849387", "0.6831247", "0.67856365", "0.6741636", "0.6736704", "0.67277...
0.0
-1
Called by findByPrimaryKey() to retrieve an entity by the primary key.
@Override public MovementModel dbSelectByPrimaryKey(MovementPK primarykey, String selectStm) throws DAOSysException, NoSuchEntityException { MovementPK pk = primarykey; Connection connection = null; PreparedStatement preparedStm = null; ResultSet rs = null; boolean result = false; MovementModel model = new MovementModel(); try { connection = connectToDB(); preparedStm = connection.prepareStatement(selectStm); preparedStm.setInt(1, pk.getMovementNumber()); preparedStm.setString(2, pk.getMovementName()); rs = preparedStm.executeQuery(); result = rs.next(); if (result) { model.setPrimarykey(new MovementPK(rs.getInt(1), rs.getString(2))); } else { throw new NoSuchEntityException("movement for <" + primarykey + "> not found in the database."); } } catch (SQLException sex) { sex.printStackTrace(); throw new DAOSysException( "dbSelectByPrimaryKey() SQL Exception\n" + sex.getMessage()); } finally { try { releaseAll(rs, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getByPk(int key) throws PersistException;", "@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}", "public Object getGenericEntityByPrimaryKey(Class ent, Serializable key) throws RepositoryException{\n\t\treturn Datanuc...
[ "0.73572177", "0.7244391", "0.7241758", "0.7221652", "0.7152582", "0.7053779", "0.7041557", "0.70393485", "0.70234704", "0.6997237", "0.6983788", "0.6961901", "0.6952515", "0.69256586", "0.68732715", "0.6849379", "0.6830854", "0.6786023", "0.67426497", "0.67376924", "0.672795...
0.0
-1
Called by findAll() to find all entities in the data store.
@Override public Collection<MovementPK> dbSelectAll() throws DAOSysException { return dbSelectAll(MovementDAO.SELECT_ALL_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Overr...
[ "0.72297066", "0.7226631", "0.72245777", "0.71629107", "0.714772", "0.7074604", "0.6955394", "0.69373536", "0.69326997", "0.6926801", "0.6921797", "0.6896764", "0.6875909", "0.6875729", "0.68256444", "0.68064946", "0.68010736", "0.6787503", "0.67827916", "0.67786855", "0.6751...
0.0
-1
Called by findAll() to find all entities in the data store.
@Override public Collection<MovementPK> dbSelectAll(String selectStm) throws DAOSysException { Connection connection = null; PreparedStatement preparedStm = null; ResultSet rs = null; ArrayList<MovementPK> list = null; try { connection = connectToDB(); preparedStm = connection.prepareStatement(selectStm); rs = preparedStm.executeQuery(); list = new ArrayList<>(); while (rs.next()) { list.add(new MovementPK(rs.getInt("movementNumber"), rs.getString("movementName"))); } } catch (SQLException sex) { throw new DAOSysException( "dbSelectAll() SQL Exception\n" + sex.getMessage()); } finally { try { releaseAll(rs, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Overr...
[ "0.7227542", "0.72256947", "0.72247404", "0.716122", "0.7146878", "0.7073328", "0.6954129", "0.6936857", "0.69322276", "0.69253606", "0.6920576", "0.6896388", "0.6874101", "0.68737906", "0.68251556", "0.6805022", "0.67995214", "0.6786938", "0.6782138", "0.67768", "0.67508715"...
0.0
-1
Called by findAll() to find all entities in the data store.
public Collection<MovementPK> dbSelectByCompositionName(String compositionName) throws DAOSysException { return dbSelectByCompositionName(MovementDAO.SELECT_BY_COMPOSITION_NAME,compositionName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Overr...
[ "0.722825", "0.7226321", "0.7224599", "0.7161483", "0.714725", "0.70736", "0.6955238", "0.6938086", "0.69324654", "0.6925875", "0.6920834", "0.68972903", "0.6874832", "0.6874479", "0.6825585", "0.68057257", "0.6800771", "0.67865694", "0.678181", "0.67778164", "0.6752326", "...
0.0
-1
Called by findAll() to find all entities in the data store.
public Collection<MovementPK> dbSelectByCompositionName(String selectStm, String compositionName) throws DAOSysException { Connection connection = null; PreparedStatement preparedStm = null; ResultSet rs = null; ArrayList<MovementPK> list = null; try { connection = connectToDB(); preparedStm = connection.prepareStatement(selectStm); preparedStm.setString(1, compositionName); rs = preparedStm.executeQuery(); list = new ArrayList<>(); int count = 0; while (rs.next()){ list.add(new MovementPK(rs.getInt(1), rs.getString(2))); count++; } } catch (SQLException sex) { throw new DAOSysException( "dbSelectByCompositionName() SQL Exception\n" + sex.getMessage()); } finally { try { releaseAll(rs, preparedStm, connection); } catch (Exception ex) { System.err.println("Error releasing resources <" + ex.toString()); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Overr...
[ "0.7229067", "0.7228459", "0.72257257", "0.7161528", "0.7148259", "0.70743126", "0.6955106", "0.6939995", "0.6933632", "0.6926543", "0.6921604", "0.6899312", "0.68753123", "0.68752414", "0.6826751", "0.680661", "0.680117", "0.67873144", "0.6782384", "0.677816", "0.675274", ...
0.0
-1
Called by update() to update state for an entity in the database.
@Override public void dbUpdate(MovementModel data) throws DAOSysException { dbUpdate(data, MovementDAO.UPDATE_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "void update(CE entity);", "public void update(E entity);", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}", "E update(E entity);", "E update(E...
[ "0.77764356", "0.74223447", "0.7364495", "0.7172534", "0.7021166", "0.7016338", "0.7016338", "0.69937325", "0.69937325", "0.6900502", "0.68735653", "0.6869477", "0.6861617", "0.6852757", "0.68293613", "0.6825687", "0.67822254", "0.6747574", "0.6747148", "0.67185545", "0.67098...
0.0
-1
Called by update() to update state for an entity in the database.
@Override public void dbUpdate(MovementModel data, String updateStm) throws DAOSysException { // MovementModel model = data; // Connection connection = null; // PreparedStatement preparedStm = null; // try { // connection = connectToDB(); // preparedStm = connection.prepareStatement(updateStm); // // /* Grab values from persistent fields to store in database */ // preparedStm.setString(1, model.getComposer()); // // int rowCount = preparedStm.executeUpdate(); // if (rowCount == 0) { // throw new DAOSysException( // "Failed to store state for Movement <" // + model.getCompostionName() + ">"); // } // // } catch (SQLException sex) { // throw new DAOSysException( // "dbUpdate() SQL Exception <" // + sex.getMessage() + ">"); // // } finally { // try { // releaseAll(null, preparedStm, connection); // } catch (Exception ex) { // System.err.println("Error releasing resources <" + ex.toString()); // } // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "void update(CE entity);", "public void update(E entity);", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}", "E update(E entity);", "E update(E...
[ "0.77772", "0.7422409", "0.7365465", "0.71744645", "0.7019943", "0.70177716", "0.70177716", "0.6994517", "0.6994517", "0.6901023", "0.687398", "0.6869294", "0.68625355", "0.68538576", "0.6830027", "0.68268526", "0.67821157", "0.67489487", "0.67480534", "0.67202747", "0.67092"...
0.0
-1
Called by remove() to remove the state for an entity from the data store.
@Override public int dbRemove(MovementPK primarykey) throws DAOSysException { return dbRemove(primarykey, MovementDAO.DELETE_STM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void entityRemoved() {}", "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "abstract protected void removeEntity(Entity entity);", "@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}", "void remove( int nIdState );", "@Override\n\tpublic void removeEntity(T t) {\n\t\tgetS...
[ "0.7031617", "0.6982829", "0.66661143", "0.6538825", "0.6537327", "0.6454366", "0.6440292", "0.63772917", "0.63451976", "0.6341358", "0.61984336", "0.6189448", "0.61888427", "0.6179043", "0.6141679", "0.61326647", "0.6131954", "0.6092018", "0.6086564", "0.6054325", "0.6042862...
0.0
-1
Called by remove() to remove the state for a Movement entity from the database.
@Override public int dbRemove(MovementPK primarykey, String deleteStm) throws DAOSysException { MovementPK pk = primarykey; Connection connection = null; PreparedStatement preparedStm = null; int result = 0; try { connection = connectToDB(); preparedStm = connection.prepareStatement(deleteStm); preparedStm.setInt(1, pk.getMovementNumber()); preparedStm.setString(2, pk.getMovementName()); result = preparedStm.executeUpdate(); if (result == 0) { throw new SQLException( "Failed to remove Movement <" + pk.toString() + ">."); } } catch (SQLException sex) { throw new DAOSysException( "dbRemove() SQL Exception <" + pk.toString() + "> " + sex.getMessage()); } finally { try { releaseAll(null, preparedStm, connection); } catch (SQLException sqlex) { throw new DAOSysException(sqlex.toString()); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove( int nIdState );", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "public void entityRemoved() {}", "@Override\n public void removed(Entity e) {\n AI ai = AIm.get(e);\n if (ai.active) {\n...
[ "0.62426645", "0.6165845", "0.60976684", "0.60689276", "0.6008615", "0.5882313", "0.58578974", "0.58254886", "0.5798321", "0.57947785", "0.5729411", "0.5718285", "0.57048106", "0.5697717", "0.5669753", "0.56357664", "0.56342643", "0.56302625", "0.563021", "0.5602894", "0.5601...
0.5333644
44
Linear Interpolation of 2 Vectors
public static Vector lerp(@NonNull final Vector a, @NonNull final Vector b, final double percent) { final double delta = MathUtil.clamp(percent, 0.0, 1.0); return a.multiply(1 - delta).add(b.multiply(delta)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double lerp(double x, double a, double b);", "Vec3 interpolate(float ticks);", "public abstract Vector4fc lerp(IVector4f other, float t);", "public static double linearInterpolation(double x, double x1, double x2, double y1, double y2)\n\t{\n\t\tif(x2 == x1) throw new IllegalArgumentException(\"The two point...
[ "0.68494666", "0.68259627", "0.65439993", "0.6498858", "0.63358027", "0.6275431", "0.6234263", "0.6094812", "0.6089062", "0.5879421", "0.5864315", "0.5856379", "0.5800001", "0.5648456", "0.5644154", "0.5607259", "0.5593031", "0.55589515", "0.55497265", "0.55121714", "0.548575...
0.6053031
9
TODO Autogenerated method stub double [][] zValues = new double [106][5]; zValues=MathematicalFormulationSingle.readInitialData(106,5); System.out.print(Arrays.deepToString(zValues)); solveMe(int n, int m, int p, int numRep[], int obje) double[][] zValues = new double[68][4]; zValues = MathModelMultiMemberWith.readInitialData(68,4);
public static void main(String[] args) throws IOException { int [] numReps= {3,1,2,2,2}; MathModelClass.solveMe(85, 5, 2,numReps, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void test() {\n\t\tdouble delta = 0.00001;\n\t\tSnp fakeSnp1 = new Snp(\"fakeId1\", 0, 0.3);\n\t\tSnp fakeSnp2 = new Snp(\"fakeId2\", 0, 0.8);\n\t\tSnp fakeSnp3 = new Snp(\"fakeId3\", 0, 1.4);\n\t\tPascal.set.withZScore_=true;\n\t\tArrayList<Snp> geneSnps = new ArrayList<Snp>();\n\t\tgeneSnps.add(f...
[ "0.59034044", "0.5860786", "0.5817676", "0.5785351", "0.5752642", "0.56363535", "0.5595776", "0.55894905", "0.5582188", "0.54906625", "0.54829973", "0.5478335", "0.5467434", "0.54335934", "0.54127616", "0.5383825", "0.53671044", "0.53409064", "0.53329307", "0.53310645", "0.53...
0.52604336
26
write your code here
public static Set<Integer> getSetFromString(String str) { String[] strArray = str.split(" "); Set<Integer> output = new TreeSet<>(); for (String number : strArray) { output.add(Integer.parseInt(number)); } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
write your code here
public static void removeAllNumbersGreaterThan10(Set<Integer> set) { Iterator<Integer> iterator = set.iterator(); while (iterator.hasNext()) { Integer integer = iterator.next(); if (integer.intValue() > 10) { iterator.remove(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
Returns the duty roster as a list of lists of duty roster items, sorted by date.
public List<List<DutyRosterItem>> getRosterAsList() { return new ArrayList<>(new TreeMap<>(roster).values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<LocalDate> getRosterDatesAsList() {\n ArrayList<LocalDate> localDates = new ArrayList<>(roster.keySet());\n Collections.sort(localDates);\n return localDates;\n }", "public List<TilePojo> getCharactesListByDate() {\n\t\tLOGGER.info(\"getCharactesListByDate -> Start\");\n\t\tch...
[ "0.6665787", "0.5818544", "0.57231814", "0.5705712", "0.5659721", "0.5622031", "0.5585735", "0.5577701", "0.55776805", "0.55468816", "0.5494804", "0.54736197", "0.53958243", "0.53940475", "0.53878665", "0.53714657", "0.5370774", "0.536899", "0.53677016", "0.5366575", "0.53444...
0.71250385
0
Returns the duty roster's dates as a list of lists of LocalDates, sorted by date.
public List<LocalDate> getRosterDatesAsList() { ArrayList<LocalDate> localDates = new ArrayList<>(roster.keySet()); Collections.sort(localDates); return localDates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<LocalDate> getPhDates() {\r\n \tArrayList<Date> phDates = phRepo.findAllPublicHolidayDates();\r\n \tArrayList<LocalDate> phLocalDates = new ArrayList<LocalDate>();\r\n \t\r\n\t\tfor(Date phDate : phDates) {\r\n\t\t\tphLocalDates.add(phDate.toLocalDate());\r\n\t\t}\r\n\t\t\r\n\t\tre...
[ "0.71735466", "0.6933224", "0.65483654", "0.64266706", "0.630185", "0.62661105", "0.6243258", "0.6233838", "0.6158858", "0.6150694", "0.61150986", "0.6112268", "0.60705155", "0.6048961", "0.6027568", "0.59723747", "0.589712", "0.5885086", "0.58690715", "0.58625495", "0.580234...
0.8149934
0
/ Function for clustring The resources based on their Queuing Behaviour (FIFO, LIFO, Random(With given priorities))
public JDialog clusterQueue(Vector<ChartPanel> chart, ArrayList<ClustredObj> list, Vector<String> resource, String title, String type) { JDialog jd = new JDialog(); JPanel jPanel1 = new JPanel(); JLabel jLabel1 = new javax.swing.JLabel(); JPanel jPanel2 = new javax.swing.JPanel(); JScrollPane jScrollPane1 = new javax.swing.JScrollPane(); JTextArea jTextArea1 = new javax.swing.JTextArea(); JLabel jLabel2 = new javax.swing.JLabel(); String newLine = "\n"; javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 401, Short.MAX_VALUE).addComponent(chart.elementAt(0))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 245, Short.MAX_VALUE).addComponent(chart.elementAt(0))); jLabel1.setText("<html><h1>" + title + "</html></h1>"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 420, Short.MAX_VALUE).addComponent(chart.elementAt(1))); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE).addComponent(chart.elementAt(1))); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); jTextArea1.setEditable(false); if (type.equals("Availability")) { jTextArea1.append("The total Number of resources is : " + resource.size()); jTextArea1.append(newLine); for (int i = 0; i < list.size(); i++) { jTextArea1.append(list.get(i).clusterName + " Contains " + list.get(i).datalist.size()); jTextArea1.append("==> Centroid (" + list.get(i).c.X() + " , " + list.get(i).c.Y()+ " , " + list.get(i).c.Z() + " )"); jTextArea1.append(newLine); if (list.get(i).datalist.size() != 0) { for (int j = 0; j < list.get(i).datalist.size(); j++) { jTextArea1.append(list.get(i).datalist.get(j).Name()); jTextArea1.append(" , "); } } else { jTextArea1.append("Empty Cluster"); } jTextArea1.append(newLine); jTextArea1.append(newLine); } } else { jTextArea1.append("The total Number of resources is : " + resource.size()); jTextArea1.append(newLine); for (int i = 0; i < list.size(); i++) { jTextArea1.append(list.get(i).clusterName + " Contains " + list.get(i).datalist.size()); jTextArea1.append("==> Centroid (" + list.get(i).c.X() + " , " + list.get(i).c.Y() + " , " + list.get(i).c.Z() + " ) :"); jTextArea1.append(newLine); if (list.get(i).datalist.size() != 0) { for (int j = 0; j < list.get(i).datalist.size(); j++) { jTextArea1.append(list.get(i).datalist.get(j).Name()); jTextArea1.append(" , "); } } else { jTextArea1.append("Empty Cluster"); } jTextArea1.append(newLine); jTextArea1.append(newLine); } } jLabel2.setText("Clusters Compositions"); jLabel2.setForeground(new java.awt.Color(0, 51, 255)); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(jd.getContentPane()); jd.getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout .createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 843, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout .createSequentialGroup().addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup().addGap(305, 305, 305).addComponent(jLabel1)))) .addGroup(layout.createSequentialGroup().addGap(343, 343, 343).addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(42, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addGap(26, 26, 26).addComponent(jLabel1).addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE) .addGap(12, 12, 12))); jd.pack(); //jd.setSize(1000, 1000); jd.setLocation(100, 100); jd.setLocationRelativeTo(null); jd.setVisible(true); return jd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);", "@Test\n public void randomLockstep() {\n PriorityBlockingQueue pbq = new PriorityBlockingQueue();\n PriorityQueue pq = new PriorityQueue();\n List<Consumer<Queue>> frobbers = List.of(\n q -> q.add(42),\n ...
[ "0.6136552", "0.58940053", "0.5766884", "0.5687894", "0.5678521", "0.56099516", "0.5584792", "0.5524906", "0.5522944", "0.55047834", "0.54561895", "0.54355514", "0.54333675", "0.5403805", "0.5378222", "0.5359787", "0.535762", "0.53559047", "0.5347692", "0.53344786", "0.531017...
0.0
-1
Returns true if a given URN is in a fixed set of entity types, false otherwise.
public static boolean isSupportedEntityType(@Nonnull final Urn urn, @Nonnull final Set<String> entityTypes) { final String entityType = urn.getEntityType(); return entityTypes.contains(entityType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean entityDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getEntityDefs(), typesDef.getEntityDefs());\n }", "boolean getContainEntities();", "boolean isApplicableForAllAssetTypes();", "boolean isUF(Formula f);", "boolean hasIsPersonType();", "boolean hasType();", "b...
[ "0.6004096", "0.5788276", "0.54996496", "0.546673", "0.54363745", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", "0.5434608", ...
0.68138754
0
No setAuthor method because the author should not change
public void setContact(String email){ contact = email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAuthor(String author) {\r\n this.author = author;\r\n }", "@Override\n public void author_()\n {\n }", "@Override\r\n\tpublic void setAuthor(String author) {\n\t\tsuper.setAuthor(author);\r\n\t}", "public void setAuthor(String author) {\n\tthis.author = author;\n}", "publi...
[ "0.8320224", "0.83141583", "0.82817984", "0.82494724", "0.82359254", "0.82359254", "0.82359254", "0.82359254", "0.82359254", "0.82315415", "0.82313174", "0.8141825", "0.81152314", "0.8025315", "0.79690003", "0.794887", "0.7899139", "0.789523", "0.7862879", "0.7853444", "0.785...
0.0
-1
Database Methods / Upload the current state of the Event method to the database
public void upload(){ put("Title",title); put("Location",location); put("DateMonth", dateMonth); put("DateDay", dateDay); put("DateYear",dateYear); put("StartHour",startHour); put("StartMinute", startMinute); put("EndHour", endHour); put("EndMinute", endMinute); put("NumGoing",numGoing); put("Description",description); put("Category",category); put("Author", author); put("Contact", contact); put("Attending", attending); saveInBackground(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DatabaseInteractor {\n\n long persistEvent(Event event);\n\n ArrayList<Event> getActiveEvents(String filter, int offset);\n\n ArrayList<Event> getAllEvents();\n\n ArrayList<Event> getActiveEventsOnDate(String timestamp);\n\n ArrayList<Event> getActiveEventsByLocation(String latitude...
[ "0.612754", "0.60665834", "0.5971538", "0.57759833", "0.5679855", "0.5674958", "0.5625521", "0.55974334", "0.55942655", "0.5549856", "0.55316556", "0.5520838", "0.55025345", "0.55018544", "0.54743946", "0.54622555", "0.5458995", "0.5452254", "0.5449757", "0.54434687", "0.5439...
0.0
-1
END Of Remove Methods Update Methods
public void updateUserLogin(String userName, boolean isOnOff){ int isOn = isOnOff? 1 : 0; try { Connection c = new MyConnection().getConnection(); Statement st = c.createStatement(); st.executeUpdate("update users set IsConnected = "+isOn+" WHERE UserName ='"+userName+"'"); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n protected void updateEliminations() {\n\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void remove() {\r\n //\r\n }", "@Override\n\tpublic v...
[ "0.67018586", "0.6650343", "0.66478294", "0.66478294", "0.65326744", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.6527413", "0.65206075", "0.65206075", "0.6450968", "0.64198536", "0.64133734", "0.6406963", "0.6402555", "0.64016...
0.0
-1
END Of Get Methods
public Users getLogUser(String userName){ try { Statement stat = conn.createStatement(); ResultSet rs = stat.executeQuery("SELECT * FROM users where UserName = '"+userName+"'"); if(rs.next()){ return new Users(rs.getString("FirstName"), rs.getString("LastName"), userName, rs.getString("Password"), rs.getString("Mail"), rs.getString("CoverImag"), rs.getString("ProfilePicture"), true); } rs.close(); } catch (SQLException e) { e.printStackTrace(); return null; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "private Get() {}", "private Get() {}", "public void get() {\n }", "@Override\n\tprotected Method getMethod() {\n\t\...
[ "0.6734025", "0.65666974", "0.65325063", "0.6523631", "0.6523631", "0.6473725", "0.64276814", "0.64133555", "0.59911996", "0.5984516", "0.5966777", "0.5950496", "0.59350157", "0.59135425", "0.58430916", "0.58385766", "0.58385766", "0.5797214", "0.57933444", "0.5741254", "0.57...
0.0
-1
END Of Get Methods
public ArrayList<Message> getMessages() { return messages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "private Get() {}", "private Get() {}", "public void get() {\n }", "@Override\n\tprotected Method getMethod() {\n\t\...
[ "0.6734013", "0.65661937", "0.6531823", "0.6522929", "0.6522929", "0.64734006", "0.642728", "0.6413253", "0.5991443", "0.59848124", "0.5965935", "0.59497434", "0.5935104", "0.59126407", "0.58430487", "0.5837467", "0.5837467", "0.57962626", "0.5792321", "0.5741048", "0.5727674...
0.0
-1
Public constructor for Food with the food name and calories value.
public Food(String foodName, double calories) { this.foodName = foodName; this.calories = Optional.of(calories); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Food(String foodName) {\n this.foodName = foodName;\n this.calories = Optional.empty();\n }", "public Food(String name, int caloriesPerServing) {\n this.name = name;\n this.caloriesPerServing = caloriesPerServing;\n this.amount = 1;\n }", "public Food() {\n ...
[ "0.83016837", "0.82871264", "0.7981219", "0.73111725", "0.7095479", "0.7074367", "0.7066755", "0.68134236", "0.6774589", "0.67213905", "0.6657314", "0.66536087", "0.66122717", "0.6589228", "0.6569474", "0.6528056", "0.65124077", "0.6441315", "0.64342767", "0.63542354", "0.626...
0.8243108
2
Public constructor for Food with the food name.
public Food(String foodName) { this.foodName = foodName; this.calories = Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Food() {\n super(1, 0, 1, 100, 5, 5, Resources.RICHSOIL, Resources.POORSOIL, \"Food\");\n }", "public Food(String name, int caloriesPerServing) {\n this.name = name;\n this.caloriesPerServing = caloriesPerServing;\n this.amount = 1;\n }", "public Food(String name, doubl...
[ "0.8005496", "0.78610593", "0.7460428", "0.7200832", "0.7156509", "0.7105146", "0.70239174", "0.6966945", "0.69461954", "0.69008756", "0.6735644", "0.66813016", "0.66775984", "0.6621597", "0.6618146", "0.6585181", "0.65819806", "0.65734315", "0.65060663", "0.6445976", "0.6444...
0.8147686
0
Getter for food name.
public String getFoodName() { return foodName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String foodName() {\n\t\treturn null;\r\n\t}", "public String getMealName() {\n return name.getText().toString();\n }", "public String getName() {\n return dishName;\n }", "public String getName() {\r\n return this.animalName;\r\n }", "java.lang.String ge...
[ "0.7466737", "0.7226038", "0.71162015", "0.7010469", "0.6977572", "0.68739444", "0.6833469", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", "0.6833236", ...
0.80677456
0
Getter for the calories of the food.
public Optional<Double> getCalories() { return calories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCalories() {\n\t\tdouble mealCalories = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble calories = foodDetail.get(foodName).getCalories();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCalories += calories * portion;\n\t\t}\n\t\treturn mealCalories;\n\t}", "public int getCal...
[ "0.84172237", "0.8144125", "0.8094877", "0.79441965", "0.78746104", "0.75527745", "0.7535275", "0.7482335", "0.69800484", "0.69724566", "0.6874837", "0.685935", "0.680449", "0.6769663", "0.67693937", "0.6768127", "0.6764578", "0.671799", "0.6706817", "0.6651782", "0.66153836"...
0.7429398
8
Check if the food has calories.
public boolean hasCaloriesData() { return calories.isPresent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasFood() {\r\n\t\treturn this.food > 0;\r\n\t}", "public boolean isFood() {\n\t\treturn food > 0;\n\t}", "public boolean isSuitable(Food food) {\n return food.calculateFitness() < 100;\n }", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "boolean hasDailyBonus();", "bool...
[ "0.7785387", "0.75168395", "0.6637602", "0.6626067", "0.65211743", "0.6247021", "0.6243894", "0.60601264", "0.6023955", "0.59647995", "0.59627163", "0.5954079", "0.5921449", "0.5904684", "0.58813274", "0.58813274", "0.58813274", "0.58813274", "0.58813274", "0.58813274", "0.57...
0.7570786
1
R.layout.list_row is your xml layout for each row
public View newView(Context context, Cursor cursor, ViewGroup parent) { return cursorInflater.inflate(R.layout.list_row, parent, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\t\t\tLayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\tView view = inflater.inflate(R.layout.list_item_table_row_read, parent, false);\n\t\t\tSet<Entry<String, Json...
[ "0.69192916", "0.6830733", "0.679023", "0.67417765", "0.6570542", "0.65234876", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.6472269", "0.64722645", "0.6432146", "0.6427287", "0.64246356", "0.64172626"...
0.6172049
83
Store string values in Preferences
public static void savePreferences(Context context, String strKey, String strValue) { try { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putString(strKey, strValue); editor.commit(); } catch (Exception e) { e.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }", "private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putSt...
[ "0.73519784", "0.6941806", "0.68372524", "0.67689985", "0.67305076", "0.6725065", "0.6693246", "0.6680408", "0.6670797", "0.66475856", "0.6634242", "0.6617079", "0.6612803", "0.66115165", "0.65997267", "0.6579554", "0.6579135", "0.6551984", "0.6550892", "0.65357924", "0.65352...
0.6513336
22
Store boolean values in Preferences
public static void savePreferences(Context context, String strKey, Boolean blnValue) { try { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putBoolean(strKey, blnValue); editor.commit(); } catch (Exception e) { e.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void saveBoolean(String key, boolean value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putBoolean(key, value);\n prefs.commit();\n }", "public synchronized boolean storeBoolean(String key, boolean value) {\n mEditor = mSharedPrefer...
[ "0.7567162", "0.7223836", "0.7143805", "0.71180266", "0.69394076", "0.69202876", "0.6892068", "0.68662506", "0.6857343", "0.6850078", "0.68377054", "0.68163085", "0.6784017", "0.6744435", "0.67308784", "0.67033416", "0.6597377", "0.65770674", "0.6545892", "0.65293366", "0.652...
0.6899249
6
Store integer values in Preferences
public static void savePreferences(Context context, String strKey, int intValue) { try { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putInt(strKey, intValue); editor.commit(); } catch (Exception e) { e.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPr...
[ "0.7347175", "0.7076637", "0.6781647", "0.6756546", "0.6601641", "0.6597628", "0.65372616", "0.649871", "0.6458011", "0.6418588", "0.63842815", "0.6379206", "0.6372447", "0.63592243", "0.63269156", "0.6304456", "0.6287214", "0.62642545", "0.62526757", "0.62391984", "0.6235854...
0.6595628
6
TODO Autogenerated method stub
public static void main(String[] args) { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); Pets pet1 = new Pets(null, null, 0, null, null, 0); Pets pet2 = new Pets(null, null, 0, null, null, 0); Pets pet3 = new Pets(null, null, 0, null, null, 0); Pets pet4 = new Pets(null, null, 0, null, null, 0); Pets pet5 = new Pets(null, null, 0, null, null, 0); Pets pet6 = new Pets(null, null, 0, null, null, 0); Pets pet7 = new Pets(null, null, 0, null, null, 0); Pets pet8 = new Pets(null, null, 0, null, null, 0); Pets pet9 = new Pets(null, null, 0, null, null, 0); Pets pet10 = new Pets(null, null, 0, null, null, 0); Pets[] allPets = {pet1,pet2,pet3,pet4,pet5,pet6,pet7,pet8,pet9,pet10}; int i = 0; for (Pets individualPets : allPets) { i++; System.out.println("Enter the data for the " + i + " pet"); try { System.out.println("Enter the name"); individualPets.name = bufferedReader.readLine(); System.out.println("Enter the type"); individualPets.type = bufferedReader.readLine(); System.out.println("Enter the age"); String age = bufferedReader.readLine(); individualPets.age = Integer.parseInt(age); System.out.println("Enter the gender"); individualPets.gender = bufferedReader.readLine(); System.out.println("Enter the color"); individualPets.color = bufferedReader.readLine(); System.out.println("Enter the size"); String size = bufferedReader.readLine(); individualPets.size = Integer.parseInt(size); } catch(IOException e) { e.printStackTrace(); } } for (Pets individualPets : allPets) { System.out.println("-------------------"); System.out.println("name: " + individualPets.name); System.out.println("type:" + individualPets.type); System.out.println("age:" + individualPets.age); System.out.println("gender:" + individualPets.gender); System.out.println("color:" + individualPets.color); System.out.println("size:" + individualPets.size); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by hefeng on 18410.
public interface DbHelper { List<HistoryData> loadAllHistoryData(); List<HistoryData> addHistoryData(String data); void clearHistoryData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\...
[ "0.60372055", "0.6018243", "0.59323305", "0.5909905", "0.5909905", "0.5909467", "0.59011513", "0.58802277", "0.58629453", "0.5854083", "0.5835342", "0.58344144", "0.5822012", "0.58197206", "0.5785113", "0.5772439", "0.5772439", "0.5772439", "0.5772439", "0.5772439", "0.577243...
0.0
-1
/ stencil object stuff
@Override public Vector getShapes() { return shapes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String [] args)\n{\n //this is something to memorize \n\nDrawingTool pencil;\nSketchPad paper;\n//these two were object declarations \npaper = new SketchPad (300,300); \npencil = new DrawingTool(paper); \n//these two were to create instances of the DrawingTool and SketchPad that are in t...
[ "0.60145617", "0.58994925", "0.58044744", "0.57767755", "0.5761899", "0.56745017", "0.5572982", "0.5572842", "0.5569563", "0.5568959", "0.5508374", "0.5506864", "0.54763526", "0.5449733", "0.5449733", "0.543249", "0.5423673", "0.5422003", "0.5408354", "0.5395317", "0.5394233"...
0.0
-1
COME BACK should stencil app really get passed in?
public Point getNotePoint() { if (rect != null) { return new Point((int) rect.getX(), (int) rect.getY()); } else { return new Point(0, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void back() {\nPizzaHut.main(null);\r\n\t}", "private void checkForBack() {\n if (Gdx.input.isKeyJustPressed(Input.Keys.BACK) || Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) ||\n BackButton.isPressed()) {\n Gdx.input.vibrate(50);\n dispose();\n ...
[ "0.60881346", "0.60721254", "0.5945483", "0.5834005", "0.57964325", "0.5769259", "0.576302", "0.57225037", "0.5716018", "0.57098264", "0.5704604", "0.5658598", "0.5633476", "0.56121206", "0.56116635", "0.55940026", "0.55927145", "0.5589729", "0.5575356", "0.5553723", "0.55503...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.7884755", "0.7549422", "0.749723", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", "0.74614984", ...
0.0
-1
For use with RESTeasy and CDI proxies.
public ImmutableRetrieve() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Proxy getProxy();", "public FakeBasicProxyPreparer() {\n\tsuper();\n }", "@Decorator\n@RegisterRestClient\n@RegisterProvider(BookService.TracingActivator.class)\n@Path(\"/books\")\n@Consumes(APPLICATION_JSON)\n@Produces(APPLICATION_JSON)\npublic interface BookService {\n @GET\n Response findAll();\n\n...
[ "0.63609385", "0.6349011", "0.6347632", "0.6150733", "0.6090755", "0.6040395", "0.59711945", "0.59703946", "0.5954054", "0.59379774", "0.59317994", "0.59314156", "0.59254366", "0.58531857", "0.58211917", "0.5782363", "0.5727553", "0.57156897", "0.56991667", "0.5635948", "0.56...
0.0
-1
Retrieve immutable data about a resource.
@Inject public ImmutableRetrieve(final CqlSession session, @MutableReadConsistency final ConsistencyLevel consistency) { super(session, "SELECT quads FROM " + IMMUTABLE_TABLENAME + " WHERE identifier = :identifier ;", consistency); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<String, Object> getResource() {\n List<Customer> customerList = customerRepository.findAllByName(\"toto\");\n Map<String,Object> model = new HashMap<String,Object>();\n model.put(\"id\", UUID.randomUUID().toString());\n model.put(\"content\", \"Hello World\");\...
[ "0.61329013", "0.60984933", "0.6044419", "0.5915224", "0.590556", "0.5897522", "0.58890915", "0.58267736", "0.581062", "0.5786709", "0.5770846", "0.57505596", "0.5696429", "0.5683062", "0.5601922", "0.55852956", "0.5580025", "0.55180013", "0.5470347", "0.5446883", "0.5444095"...
0.0
-1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.dni
public String getDni() { return dni; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDNI(){\n return dni;\n }", "@Override\r\n\tpublic String getDNI() {\n\t\treturn dni;\r\n\t}", "public Dni getDni() {\n return dni;\n }", "@AutoEscape\n\tpublic String g...
[ "0.7653911", "0.7653911", "0.7463763", "0.7400427", "0.7048306", "0.70001245", "0.6780466", "0.676761", "0.62351555", "0.61440974", "0.6131712", "0.6004483", "0.59978604", "0.59894675", "0.59426844", "0.5851602", "0.5833846", "0.5805337", "0.580408", "0.5788469", "0.57499737"...
0.7662898
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.dni
public void setDni(String dni) { this.dni = dni; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDni(String dni);", "public void setDni(String dni) {\n\t\tthis.dni = dni;\n\t}", "public void setDni(Dni dni) {\n this.dni = dni;\n }", "public void setDni(String dni){\n if(dni == null){\n throw new IllegalArgumentException(\"DNI de usuario igual a null\");\n ...
[ "0.750454", "0.7440635", "0.7288078", "0.71019375", "0.6832628", "0.6597469", "0.62420803", "0.6173342", "0.6173342", "0.6155818", "0.60509956", "0.58078784", "0.57202685", "0.56511223", "0.5529276", "0.55101424", "0.54768807", "0.5428826", "0.53993714", "0.53827196", "0.5340...
0.7506706
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.nombre
public String getNombre() { return nombre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNombre() {\n return this._nombre;\n }", "public String getNombre() {\n\t\treturn this.nombre;\n\t}", "public String getNombreCompleto();", "public String getNombre() {\n return this.nombre;\n }", "public java.lang.String getNombre()\r\n {\r\n return th...
[ "0.6828232", "0.68109787", "0.67957544", "0.66888785", "0.66683096", "0.66567296", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6638007", "0.6586697", "0.6569185", "0.6569185"...
0.667609
6
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.nombre
public void setNombre(String nombre) { this.nombre = nombre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }", "public void setnombre(String nombre){\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {// ---> SE DEBE PONER EN E...
[ "0.7981642", "0.6880845", "0.6864187", "0.68578047", "0.67811257", "0.67235076", "0.6693539", "0.66742843", "0.66742843", "0.66742843", "0.6646762", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082", "0.6605082...
0.6423107
35
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.apellido1
public String getApellido1() { return apellido1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApellido1() {\n\t\treturn apellido1;\n\t}", "public String getApellido(){\n return this.apellido;\n }", "@Column(name = \"C_PRIMER_APELLIDO\")\n public String getPrimerApellido() {\n return primerApellido;\n }", "public void setApellido1(String apellido1) {\r\n\t\tthis...
[ "0.69081664", "0.6691373", "0.64198303", "0.6403201", "0.6331565", "0.62864244", "0.6247487", "0.6247447", "0.61423767", "0.61307067", "0.6041045", "0.6029923", "0.601134", "0.6010113", "0.5988207", "0.5854265", "0.5836477", "0.58270687", "0.58270687", "0.5814352", "0.5803954...
0.6901548
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.apellido1
public void setApellido1(String apellido1) { this.apellido1 = apellido1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApellido1(String apellido1) {\n\t\tthis.apellido1 = apellido1;\n\t}", "public void setApellidos(String p) { this.apellidos = p; }", "public void setApellido(String apellido) {\n\t\tthis.apellido = apellido;\n\t}", "public abstract void setApellido(java.lang.String newApellido);", "public voi...
[ "0.6906479", "0.638484", "0.6267033", "0.6219936", "0.6211711", "0.61607146", "0.59935594", "0.59477603", "0.5906317", "0.58955365", "0.58584255", "0.5785412", "0.5767666", "0.5767282", "0.5738238", "0.5705889", "0.5704736", "0.57020783", "0.56982154", "0.5618445", "0.5566997...
0.70428544
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.apellido2
public String getApellido2() { return apellido2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApellido2(String apellido2) {\r\n\t\tthis.apellido2 = apellido2;\r\n\t}", "public String getApellido1() {\r\n\t\treturn apellido1;\r\n\t}", "public String getApellido1() {\n\t\treturn apellido1;\n\t}", "public String getApellido(){\n return this.apellido;\n }", "public String getOn...
[ "0.6576332", "0.65631706", "0.65422684", "0.6382789", "0.6331016", "0.6038803", "0.60133606", "0.600765", "0.5996536", "0.5948723", "0.590763", "0.5863615", "0.5848129", "0.5833096", "0.5823349", "0.5816423", "0.57397294", "0.573389", "0.57089293", "0.5651709", "0.5584301", ...
0.6973528
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.apellido2
public void setApellido2(String apellido2) { this.apellido2 = apellido2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApellido1(String apellido1) {\r\n\t\tthis.apellido1 = apellido1;\r\n\t}", "public void setApellido1(String apellido1) {\n\t\tthis.apellido1 = apellido1;\n\t}", "public void setApellidos(String p) { this.apellidos = p; }", "public abstract void setApellido(java.lang.String newApellido);", "pu...
[ "0.6601846", "0.64192784", "0.60446465", "0.6031319", "0.5935192", "0.58487976", "0.58429396", "0.5838543", "0.57733935", "0.56298244", "0.5626407", "0.55928713", "0.5556123", "0.5510715", "0.5506854", "0.54361206", "0.539662", "0.5392341", "0.53639436", "0.5360053", "0.53323...
0.6938422
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.sexo
public String getSexo() { return sexo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSexo() {\r\n return sexo;\r\n }", "public void setSexo(String sexo) {\r\n\t\tthis.sexo = sexo;\r\n\t}", "public void setSexo(String sexo) {\r\n this.sexo = sexo;\r\n }", "public java.lang.String getSsoCode() {\r\n return ssoCode;\r\n }", "public java.lang.Stri...
[ "0.7691626", "0.62083924", "0.61632556", "0.57771367", "0.5775657", "0.5775657", "0.56234956", "0.55558693", "0.55169874", "0.548722", "0.54719347", "0.54533225", "0.54424256", "0.5441914", "0.54064983", "0.53952456", "0.5392462", "0.53832775", "0.5379593", "0.5379593", "0.53...
0.77244705
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.sexo
public void setSexo(String sexo) { this.sexo = sexo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSexo(String sexo) {\r\n this.sexo = sexo;\r\n }", "public void setSexo(char sexo) {\r\n\t\tcomprobarSexo(sexo);\r\n\t}", "public String getSexo() {\r\n\t\treturn sexo;\r\n\t}", "public String getSexo() {\r\n return sexo;\r\n }", "@Override\n\tpublic void AlterarSenha(Enti...
[ "0.6920268", "0.67906255", "0.61243546", "0.6094774", "0.57169783", "0.5500969", "0.54985434", "0.5489364", "0.54346645", "0.53668976", "0.524696", "0.5222281", "0.5151867", "0.51256704", "0.5105553", "0.5022688", "0.50154954", "0.5013536", "0.49956706", "0.4993342", "0.49864...
0.6861911
1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.estado_civil
public String getEstadoCivil() { return estadoCivil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEstadoCivil() {\n return this.estadoCivil;\n }", "public String getEstadoPersona() { return (this.estadoPersona == null) ? \"\" : this.estadoPersona; }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_psLocal getEstado_ps();", "public a...
[ "0.72413075", "0.6518395", "0.61735207", "0.61732954", "0.60658205", "0.60183144", "0.6016148", "0.60031337", "0.600049", "0.59529006", "0.5908426", "0.5876886", "0.5871558", "0.58660984", "0.586577", "0.5859162", "0.5835829", "0.5802314", "0.5797922", "0.5794261", "0.5793233...
0.69663787
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.estado_civil
public void setEstadoCivil(String estadoCivil) { this.estadoCivil = estadoCivil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public void setEstadoCivil(String novoEstadoCivil) {\n this.estadoCivil = novoEstadoCivil;\n }", "public void setEstado(String p) { this.estado = p; }", "public String getEstadoCivil() {\n return this.estadoCivil;\n }",...
[ "0.6601546", "0.65418816", "0.6310951", "0.6280316", "0.6251095", "0.60756505", "0.6043766", "0.5988252", "0.5980137", "0.5959709", "0.586328", "0.5857785", "0.5792006", "0.57850707", "0.57765085", "0.5735783", "0.568841", "0.56194633", "0.5593137", "0.55696255", "0.5563878",...
0.6559405
1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.fecha_nacimiento
public Date getFechaNacimiento() { return fechaNacimiento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getFecha_nacimiento() {\r\n\t\tDate result=null;\r\n\t\ttry {\r\n\t\t DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t \r\n\t\t\tresult = df.parse(calendario.getDia()+\"-\"+calendario.getMes()+\"-\"+calendario.getAno());\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.pri...
[ "0.7735891", "0.6874431", "0.64874744", "0.64701724", "0.6164666", "0.6160791", "0.61385685", "0.61175746", "0.61121154", "0.6102117", "0.6099769", "0.6084251", "0.60555106", "0.60476696", "0.604061", "0.60070145", "0.5957771", "0.594869", "0.58945066", "0.5869273", "0.586591...
0.6656307
2
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.fecha_nacimiento
public void setFechaNacimiento(Date fechaNacimiento) { this.fechaNacimiento = fechaNacimiento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFechaNacimiento(Date fechaNacimiento)\r\n/* 138: */ {\r\n/* 139:252 */ this.fechaNacimiento = fechaNacimiento;\r\n/* 140: */ }", "public Date getFecha_nacimiento() {\r\n\t\tDate result=null;\r\n\t\ttry {\r\n\t\t DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t \r\n...
[ "0.6840674", "0.6379519", "0.6254739", "0.6243148", "0.6120626", "0.6112775", "0.60473925", "0.6010348", "0.59898216", "0.5860005", "0.5859289", "0.58150303", "0.5796282", "0.578947", "0.5769919", "0.576537", "0.5749007", "0.5748726", "0.5652676", "0.5651371", "0.56481963", ...
0.6233083
4
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.domicilio
public String getDomicilio() { return domicilio; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDomicilio() {\n return domicilio;\n }", "java.lang.String getDomicilio();", "public String getDomicilio(){\n return domicilio;\n }", "public void setDomicilio(String domicilio) {\n this.domicilio = domicilio;\n }", "public void setDomicilio(String domicilio) {\r\n\t...
[ "0.76878107", "0.7516362", "0.73456734", "0.6611915", "0.65935504", "0.6265397", "0.59949905", "0.588007", "0.5749769", "0.56506664", "0.56373054", "0.5623454", "0.5612934", "0.5608468", "0.5608468", "0.55382556", "0.553343", "0.5529839", "0.55174303", "0.5507719", "0.5504449...
0.7687194
1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.domicilio
public void setDomicilio(String domicilio) { this.domicilio = domicilio; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDomicilio(java.lang.String domicilio);", "public void setDomicilio(String domicilio) {\n this.domicilio = domicilio;\n }", "public String getDomicilio() {\n return domicilio;\n }", "public String getDomicilio() {\r\n\t\treturn domicilio;\r\n\t}", "public String getDomicilio(){\n...
[ "0.7767672", "0.74889", "0.6781505", "0.6779544", "0.6573301", "0.6266182", "0.6050092", "0.60343283", "0.58704394", "0.57337195", "0.56845355", "0.5647164", "0.5596186", "0.5525652", "0.5492863", "0.542779", "0.5322471", "0.5316399", "0.5302251", "0.5266071", "0.5238035", ...
0.7409752
2
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.poblacion
public String getPoblacion() { return poblacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPoblacion(String poblacion) {\r\n\t\tthis.poblacion = poblacion;\r\n\t}", "public Long getIdPropietario(com.trascender.catastro.recurso.persistent.Parcela pParcela) throws Exception {\n\t\treturn this.getPropietario(pParcela).getIdPersona();\n\t}", "@Column(name = \"C_PUESTO\")\n public Strin...
[ "0.72625303", "0.6624544", "0.66123635", "0.65872246", "0.6260993", "0.6210241", "0.6150489", "0.60645044", "0.60509235", "0.6050326", "0.6012952", "0.59955287", "0.598418", "0.59835094", "0.5923013", "0.58948046", "0.58593965", "0.58306944", "0.5819219", "0.5817087", "0.5806...
0.7827633
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.poblacion
public void setPoblacion(String poblacion) { this.poblacion = poblacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public void setProblema(String problema) {\n ...
[ "0.6380826", "0.6322352", "0.619888", "0.5937542", "0.5934672", "0.59022486", "0.58328336", "0.5823563", "0.5820091", "0.57884043", "0.57566583", "0.57498825", "0.5746866", "0.5743221", "0.5717243", "0.5713451", "0.57132655", "0.5691165", "0.56873935", "0.5670002", "0.5665006...
0.74138063
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column cementerio.persona.telefono
public String getTelefono() { return telefono; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "@AutoEscape\n\tpublic String getTelefono();", "public long getTelefono() {\r\n return telef...
[ "0.7634746", "0.7634746", "0.7549726", "0.7544044", "0.7359953", "0.72648424", "0.72599137", "0.69630766", "0.6789649", "0.6751223", "0.6732913", "0.65880996", "0.6582407", "0.6551942", "0.6534969", "0.6490639", "0.6487608", "0.6466898", "0.64662725", "0.62698317", "0.6231755...
0.7884894
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column cementerio.persona.telefono
public void setTelefono(String telefono) { this.telefono = telefono; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setTelefono(String telefono);", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n ...
[ "0.7743877", "0.7585337", "0.7555974", "0.7465308", "0.728326", "0.7083354", "0.70382255", "0.6995988", "0.68164027", "0.66786027", "0.65593237", "0.6513133", "0.6513133", "0.6452282", "0.6256307", "0.624392", "0.61952096", "0.61896306", "0.61714345", "0.60827076", "0.5968330...
0.73508465
4
A representation of the model object 'Java Evaluator'.
public interface JavaEvaluator extends Evaluators { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JavaEvaluator createJavaEvaluator();", "public Evaluator getEvaluator() {\n return evaluator;\n }", "public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in...
[ "0.69896096", "0.6868181", "0.6035086", "0.5885603", "0.5824165", "0.57717353", "0.5759214", "0.5626967", "0.55922467", "0.5572432", "0.5489213", "0.54441756", "0.53590417", "0.53460956", "0.5328277", "0.5313814", "0.5313492", "0.5302238", "0.5279181", "0.5272952", "0.5260092...
0.6835872
2
Retrieves the short host name of the current host.
private static String getHostname() throws UnknownHostException { return InetAddress.getLocalHost().getHostName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public String getHostName() {\n return this.hostContext.getHostName();\n }", "private String getHostName() {\n SharedPr...
[ "0.7462418", "0.7207459", "0.70912546", "0.70587474", "0.70178634", "0.701303", "0.69827294", "0.6979351", "0.6979351", "0.6977857", "0.6961465", "0.6932068", "0.68842596", "0.68842596", "0.6857494", "0.6849129", "0.6839305", "0.68320143", "0.68284947", "0.68284947", "0.68237...
0.6699948
29
bl: we will now use 10k directories from 0000, 0001, 0002, up to 9997, 9998, 9999
private String getOidDirectory(OID oid) { NumberFormat numberFormat = NumberFormat.getNumberInstance(); numberFormat.setMaximumIntegerDigits(4); numberFormat.setMinimumIntegerDigits(4); numberFormat.setGroupingUsed(false); String lastFour = numberFormat.format(Math.abs(oid.getValue()) % 10000); return lastFour.substring(0, 2) + "/" + lastFour.substring(2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createDir(File f) {\n int limit = 10;\n while (!f.exists()) {\n if (!f.mkdir()) {\n createDir(f.getParentFile());\n }\n limit --;\n if(limit < 1) {\n break;\n }\n }\n if (limit == 0)...
[ "0.6178963", "0.59301466", "0.5834886", "0.5735319", "0.56859255", "0.5680537", "0.5637551", "0.56275487", "0.55965376", "0.5595696", "0.5565283", "0.5517801", "0.551206", "0.5488203", "0.5461477", "0.54541105", "0.54501045", "0.54315037", "0.5428948", "0.53589875", "0.534714...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { List<Coffee> list = new ArrayList<Coffee>(); Fill.fill(Adapter.collectionAdapter(list), Coffee.class, 3); Fill.fill(Adapter.collectionAdapter(list), Latte.class, 3); for(Coffee c : list) System.out.println(c); Coffee[] array = new Coffee[5]; Fill.fill(Adapter.arrayAdapter(array), Americano.class, array.length); for(Coffee c : array) System.out.println(c); }
{ "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
Description: This interface describes methods for working with users database table, extending the capabilities of basic DAO interface.
public interface UserDAO extends AbstractDAO<User> { /** * This method checks the availability of the <i>login</i> and <i>password</i> in the <i>users</i> database table. * * @param login - entered <i>login</i> filed of the user. * @param password - entered <i>password</i> field of the user. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - boolean value of the condition: * returns "true" if the incoming data correspond to the record of the database table; * returns "false" if the incoming data do not correspond to the record of the database table. */ boolean isAuthorized(String login, String password, Connection connection) throws DAOException; /** * This method reads data from <i>users</i> database table, creates and returns User object according to the entered login. * * @param login - entered <i>login</i>. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - User object. */ User getByLogin(String login, Connection connection) throws DAOException; /** * This method check the uniqueness of the user. * * @param login - entered <i>login</i>. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - boolean value of the condition: * returns "false" if the incoming data correspond to the record of the database table; * returns "true" if the incoming data do not correspond to the record of the database table. * @throws DAOException */ boolean checkUniqueUser(String login, Connection connection) throws DAOException; /** * This method reads and returns information from a record (row) of a database table. * * @param id - id number of the record (row) in the database table.. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. * @return - an entity from a database table according to the incoming id number. */ User getById(String id, Connection connection) throws DAOException; /** * This method updates an existing record (row) in a database table. * * @param user - the current entity of user which will be updated. * @param connection - the current connection to a database. Transmitted from the service module to provide transactions. */ void update(User user, Connection connection) throws DAOException; /** * This method creates entity of User class from data received from ResultSet. * * @param resultSet - a database result "row" with required values. * @param user - the entity of User with "null" value for setting corresponding values. * @return - created user with fields. * @throws SQLException */ User createUser(ResultSet resultSet, User user) throws SQLException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface UserDAO \r\n{\r\n\t/**\r\n\t * Insert a new user into the table.\r\n\t * @param user\r\n\t */\r\n public void insert(User user);\r\n \r\n /**\r\n\t * Update an existing user into the table.\r\n\t * @param user\r\n\t */\r\n public void update(User user);\r\n \r\n /**\r\n\t * Updat...
[ "0.80748063", "0.78441775", "0.78327966", "0.7758829", "0.77016014", "0.7695394", "0.7668803", "0.76530457", "0.7647989", "0.76472825", "0.7642726", "0.76297194", "0.7613937", "0.7607912", "0.75875795", "0.7580558", "0.7574111", "0.7572512", "0.75711805", "0.75703377", "0.756...
0.81629676
0
This method checks the availability of the login and password in the users database table.
boolean isAuthorized(String login, String password, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkLogin() {\r\n try {\r\n String select = \"SELECT * FROM LOGIN\";\r\n ResultSet rs = model.ConnectToSql.select(select);\r\n while (rs.next()) {\r\n if (this.username.equals(rs.getString(1)) && new MD5().md5(this.password).equals(rs.getString...
[ "0.7559922", "0.751509", "0.741747", "0.7415323", "0.7409117", "0.737199", "0.7341685", "0.734025", "0.7287586", "0.7238837", "0.7201146", "0.7161171", "0.71546274", "0.7085848", "0.7076532", "0.70714283", "0.70714283", "0.70634675", "0.7058575", "0.7058345", "0.70564514", ...
0.0
-1
This method reads data from users database table, creates and returns User object according to the entered login.
User getByLogin(String login, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User Login(String username, String password) throws SQLException{\n try {\n Connection connection = DbConnector.getConnection();\n PreparedStatement statement = connection.prepareStatement(\"SELECT id, username, password, email, first_name, last_name, postal_code, city, street, ...
[ "0.74131763", "0.72240335", "0.71343046", "0.7071802", "0.70395744", "0.70296735", "0.6971614", "0.6963333", "0.69599617", "0.69094104", "0.6908023", "0.6863786", "0.68576163", "0.68451583", "0.68415123", "0.6820193", "0.67816955", "0.6779567", "0.6755076", "0.6746977", "0.67...
0.0
-1
This method check the uniqueness of the user.
boolean checkUniqueUser(String login, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n ...
[ "0.7061615", "0.69834334", "0.697914", "0.68409693", "0.67293924", "0.6726952", "0.67179394", "0.6703047", "0.67018", "0.6698051", "0.6684225", "0.6674292", "0.66070676", "0.6602817", "0.6484614", "0.64710253", "0.6457069", "0.64102674", "0.63837886", "0.6336777", "0.6312532"...
0.0
-1
This method reads and returns information from a record (row) of a database table.
User getById(String id, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object getEntry( Object[] row, String rrName ) {\n Integer icol = colMap_.get( rrName );\n return icol == null ? null : row[ icol.intValue() ];\n }", "T getRowData(int rowNumber);", "protected abstract E handleRow(ResultSet rs) throws SQLException;", "io.dstore.engine.pro...
[ "0.6384653", "0.63005495", "0.6123245", "0.60341644", "0.60284096", "0.6010596", "0.5998787", "0.59647745", "0.5945236", "0.59329414", "0.59299994", "0.59274936", "0.59178895", "0.5915381", "0.5888541", "0.58839357", "0.5880018", "0.5865958", "0.5839633", "0.57865644", "0.578...
0.0
-1
This method updates an existing record (row) in a database table.
void update(User user, Connection connection) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }", "public void updateRow() throws SQLException {\n\n try {\n debugCodeCall(\"updateRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_...
[ "0.80567974", "0.7380608", "0.73580265", "0.7312607", "0.7295434", "0.72566676", "0.72139704", "0.71741563", "0.7151746", "0.7148322", "0.71237636", "0.71217287", "0.7103917", "0.71036345", "0.7094453", "0.7070572", "0.7066765", "0.70605594", "0.7043296", "0.7037991", "0.7034...
0.0
-1
This method creates entity of User class from data received from ResultSet.
User createUser(ResultSet resultSet, User user) throws SQLException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(r...
[ "0.78583235", "0.7425982", "0.7152445", "0.70088905", "0.6879028", "0.6752572", "0.67412484", "0.6690627", "0.6666585", "0.6624024", "0.64798254", "0.63965285", "0.6343691", "0.6274314", "0.6260147", "0.6168227", "0.61184275", "0.60784245", "0.6062312", "0.6022414", "0.595676...
0.73460495
2
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_project_list, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_add_project) { Intent intent = new Intent(this, AddProjectActivity.class); startActivity(intent); return true; } if (id == R.id.action_join_project) { Intent intent = new Intent(this, ProjectActivity.class); startActivity(intent); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.73461...
0.0
-1
Service for working with json. It allows to parse json to an object, a map or a collection and vice versa. Note: It has moved from the old JSONParseUtil class.
public interface JSONParserService extends Service { /** * Parses from json to map * * @param json data * @return Map<String, Object> or null, if json equals null */ Map<String, Object> parseToMap(String json); /** * Parses from map to json * * @param data map with data * @return json or null, if map equals null */ String parseMapToJson(Map<String, Object> data); /** * Parses from object to json * * @param obj object that will be parsed to json * @return json or null if invalid data */ String parseObjectToJson(Object obj); /** * Parses from json to object of T class * * @param json string of json with data object * @param classObject type object * * @return T object or null, if transferred incorrect data */ <T> T parseToObject(Object json, Class<T> classObject); /** * Parses from json to collection of object's T class * * @param json string of json with data objects * @param typeClass type of objects collection * * @return collection of object's T class or null, if transferred incorrect data */ <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native Object parse( Object json );", "Map<String, Object> parseToMap(String json);", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n...
[ "0.71537447", "0.68495625", "0.6802408", "0.66994953", "0.6689341", "0.66055346", "0.6546156", "0.65228724", "0.649289", "0.6462209", "0.64417565", "0.63209146", "0.6287225", "0.62502635", "0.6161767", "0.6122574", "0.6115073", "0.6108172", "0.6079724", "0.60749716", "0.60720...
0.8076046
0
Parses from json to map
Map<String, Object> parseToMap(String json);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String, Object> readMap(String json) {\n if (StringUtils.isBlank(json)) {\n return new HashMap<>();\n }\n try {\n return new ObjectMapper().readValue(json, HashMap.class);\n } catch (IOException e) {\n throw new Ru...
[ "0.73160857", "0.66073877", "0.64284396", "0.6335312", "0.63136876", "0.6225055", "0.6136397", "0.6122866", "0.60832644", "0.60580975", "0.60354173", "0.59651285", "0.5917018", "0.5881459", "0.58578557", "0.5832204", "0.5816659", "0.579116", "0.5753014", "0.57128483", "0.5636...
0.8551131
0
Parses from map to json
String parseMapToJson(Map<String, Object> data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JsonObject convertMapToJson(Map<String,String> entry){\r\n\t\tJsonObject jsonObj = new JsonObject();\r\n\t\tSet<String> keySet = entry.keySet();\r\n\t\t\r\n\t\tfor(String key : keySet){\r\n\t\t\tjsonObj.addProperty(key, entry.get(key));\r\n\t\t}\r\n\t\treturn jsonObj;\r\n\t}", "private void parseJSON(Map...
[ "0.6800367", "0.6723735", "0.6680291", "0.66631484", "0.6589862", "0.6517727", "0.64564323", "0.63353175", "0.6286511", "0.62186724", "0.620848", "0.6162343", "0.60769624", "0.6068498", "0.60373014", "0.60132617", "0.5942199", "0.5887731", "0.58810395", "0.5875596", "0.583442...
0.8076991
0
Parses from object to json
String parseObjectToJson(Object obj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object toJson();", "ParseObject toParseObject();", "public String parseObjectToJson(Object object) {\n\n return gson.toJson(object);\n }", "JSONObject toJson();", "JSONObject toJson();", "public JsonObject toJson();", "@Override\n\tpublic JSON parse(String in) throws IOExcepti...
[ "0.6663543", "0.66533285", "0.65310824", "0.6487122", "0.6487122", "0.64732885", "0.64362264", "0.6431957", "0.63048863", "0.62803656", "0.62628925", "0.6160342", "0.60413045", "0.6040311", "0.6025645", "0.5986272", "0.59125495", "0.58842665", "0.58763593", "0.58716065", "0.5...
0.745359
0
Parses from json to object of T class
<T> T parseToObject(Object json, Class<T> classObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T fromJson(Object source);", "<T> T fromJson(String json, Class<T> type);", "<T> T fromJson(String source, Class<T> type);", "<T> T fromJson(String source, JavaType type);", "public native Object parse( Object json );", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOExcepti...
[ "0.77678186", "0.77142465", "0.7490449", "0.72541416", "0.71976453", "0.70749795", "0.70297396", "0.70113707", "0.69937456", "0.6992912", "0.69017535", "0.6884868", "0.68015945", "0.67734885", "0.6733208", "0.6725437", "0.67114794", "0.6687084", "0.65775347", "0.65659314", "0...
0.82465637
0
Parses from json to collection of object's T class
<T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<T> T parseToObject(Object json, Class<T> classObject);", "@Override\n public List<T> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonElement postJsonArray = json.getAsJsonArray();\n return new Gson().fromJson(postJsonArray,typeOf...
[ "0.7451818", "0.6820278", "0.66654056", "0.6486696", "0.64772123", "0.64356285", "0.63733876", "0.634238", "0.6315861", "0.62980914", "0.6282372", "0.6216912", "0.6198564", "0.6180847", "0.61469483", "0.61419463", "0.6119283", "0.61081916", "0.6054985", "0.6022148", "0.601296...
0.7997814
0
Se inicializa la ventana
@Override public void initialize(URL url, ResourceBundle rb) { //Se instancian las utilerías que se van a ocupar animar = new Animaciones(); alerta = new Alertas(); //Se anima la ventana al inicializarse animar.animarDesvanecer(anchorPaneLogin, 1.5f); //Se instancia el DAO usDAO = new usuarioDAOImpl(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public void inicializar();", "public VPacientes() {\n initComponents();\n inicializar();\n }", "public Vencimientos() {\n initComponents();\n \n \n }", "@Override\n public void inizializza() {\n\n...
[ "0.7936092", "0.76235133", "0.7454104", "0.73819435", "0.7374879", "0.7340872", "0.73205656", "0.7320127", "0.72746575", "0.72529256", "0.72509146", "0.7245325", "0.7234079", "0.72314554", "0.7210682", "0.7189557", "0.7170013", "0.7127188", "0.7108853", "0.7105643", "0.706824...
0.0
-1
/HW.turnController.setAngle( MathUtils.atan(HW.sonarFrontLeft.getRangeInches() HW.sonarFrontRight.getRangeInches() / 21.625)); HW.turnController.setSetpoint(180.0);
public static void sonarPositionClose() { double x = HW.sonarControllerLeft.getSpeed(); double y = HW.sonarControllerFrontRight.getSpeed(); //+ HW.sonarControllerFrontRight.getSpeed()) /// 2; HW.drive.HolonomicDrive(x, y, HW.turnController.getRotation()); //DiscoUtils.debugPrintln("X: " + x); //DiscoUtils.debugPrintln("Y: " + y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustShooterAngleManual() {\n\n // If the driver pushes the Square Button on the PS4 Controller,\n // set the worm drive motors to go backwards (lower it).\n if (PS4.getRawButton(PS4_X_BUTTON) == true) {\n\n wormDriveMotors.set(-0.2);\n\n // If the driver pus...
[ "0.70246524", "0.68986565", "0.6551332", "0.6506237", "0.64945406", "0.6422453", "0.64217955", "0.6380231", "0.635488", "0.6283832", "0.6279048", "0.62746215", "0.6244954", "0.6227545", "0.622134", "0.6215958", "0.6211126", "0.6191234", "0.61796075", "0.6172999", "0.6167999",...
0.0
-1
public static final abstract methods
public void calculateSalary() ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void mo30696a();", "public abstract void mo27386d();", "public abstract void mo102899a();", "public abstract void mo56925d();", "public abstract void mo70713b();", "public abstract void mo27464a();", "public abstract void mo35054b();", "public abstract void mo27385c();", "private ab...
[ "0.7535329", "0.7505773", "0.7503688", "0.7462574", "0.74449766", "0.7375202", "0.7303934", "0.7284837", "0.72438437", "0.72422266", "0.7241396", "0.71766657", "0.71573573", "0.7153502", "0.7132958", "0.7097655", "0.7097645", "0.7086948", "0.7034874", "0.7033479", "0.7019395"...
0.0
-1
Employee emp = new Employee();
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Employee() {}", "public Employee(){\r\n }", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n }", "Employee() {\n\t}", "public Employee() {\n\t\t\n\t}", "public Employee() {\n \n ...
[ "0.82301766", "0.8188918", "0.8174845", "0.8174845", "0.8172443", "0.8172443", "0.8172443", "0.79939437", "0.7909211", "0.78968525", "0.78962404", "0.77880913", "0.7592675", "0.7435114", "0.7412471", "0.7358307", "0.73565286", "0.73298144", "0.72526157", "0.7249148", "0.72063...
0.0
-1
Returns the absolute path for the all the elements within this module. Note that it does not create/check file/directory with such a path.
public String getModulePath() { return mModulePath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(e...
[ "0.63711685", "0.6305153", "0.62357485", "0.62265027", "0.62147015", "0.6141384", "0.6098778", "0.59770703", "0.59770703", "0.59770703", "0.5971509", "0.5963881", "0.5932096", "0.5932096", "0.5932096", "0.5932096", "0.5932096", "0.5926723", "0.5926723", "0.58769566", "0.58567...
0.0
-1
Returns the absolute path for storing all the generated xml of this module. Note that it does not create/check file/directory with such a path.
public void createModuleGeneratedXMLPath() { String[] onlyFolderNames = new String[] { mInstance.getModuleGeneratedXMLPath(), mModuleName }; mModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModuleGeneratedXMLPath() {\n\t\treturn mModuleGeneratedXMLPath;\n\t}", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbso...
[ "0.70347136", "0.62039566", "0.6189333", "0.60655177", "0.5840153", "0.58352727", "0.5815137", "0.5805048", "0.5778954", "0.5765346", "0.57413155", "0.57359785", "0.5733017", "0.5696486", "0.56921506", "0.5661229", "0.56525123", "0.5649728", "0.56306934", "0.56112427", "0.560...
0.7836349
0
Returns the absolute path for the all the generated xml within this module. Note that it does not create/check file/directory with such a path.
public String getModuleGeneratedXMLPath() { return mModuleGeneratedXMLPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "@Nullable\n @Override\n public IFile getOutput...
[ "0.7994181", "0.63843864", "0.61003006", "0.6076043", "0.5845679", "0.5806133", "0.5761331", "0.56920034", "0.56247485", "0.559834", "0.55726105", "0.5564445", "0.5521619", "0.548041", "0.5478209", "0.54771435", "0.54707026", "0.5466329", "0.545756", "0.5438681", "0.54349476"...
0.7326886
1
Creates the path to this application's javawebstart directory.
private void createJavaWebStartPath() { String[] onlyFolderNames = new String[] { mInstance.getJavaWebStartPath(), mModuleName }; mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toStr...
[ "0.6820545", "0.6153287", "0.5978852", "0.58564377", "0.5589524", "0.5563108", "0.5537172", "0.5532965", "0.5426109", "0.5333776", "0.53263974", "0.5318339", "0.5309373", "0.52719265", "0.5270855", "0.5268652", "0.5263411", "0.52483857", "0.52448916", "0.5225534", "0.52242607...
0.81804365
0
Returns the absolute path to the Java Web Start directory for this application. Note that it does not create/check file/directory with such a path.
public String getJavaWebStartPath() { return mJavaWebStartPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public static String getBasePath() {\n String basePath;\n if (ne...
[ "0.6870959", "0.68183374", "0.6808072", "0.67315245", "0.6608326", "0.6586263", "0.65725505", "0.65389323", "0.64598507", "0.6451849", "0.6388837", "0.63823605", "0.63823134", "0.6350472", "0.6308643", "0.63036436", "0.6286659", "0.6278466", "0.61740154", "0.61672", "0.616611...
0.6552476
7
Returns the absolute path for storing all the stubs of this module. Note that it does not create/check file/directory with such a path.
public void createModuleStubPath() { String[] onlyFolderNames = new String[] { mInstance.getModuleStubPath(), mModuleName }; mModuleStubPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModuleStubPath() {\n return mModuleStubPath;\n }", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \...
[ "0.6611622", "0.6368199", "0.59071803", "0.5876426", "0.5841517", "0.58375376", "0.58339894", "0.5817842", "0.57892907", "0.57843566", "0.5772223", "0.5769862", "0.57637805", "0.56896317", "0.56587154", "0.56587154", "0.5655399", "0.56310225", "0.56009334", "0.55994403", "0.5...
0.71733993
0
Returns the absolute path for the all the stubs within this module. Note that it does not create/check file/directory with such a path.
public String getModuleStubPath() { return mModuleStubPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createModuleStubPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getModuleStubPath(),\n mModuleName\n };\n\n mModuleStubPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "pu...
[ "0.7064029", "0.655904", "0.597209", "0.5921135", "0.58964694", "0.5776091", "0.56487536", "0.5641163", "0.56400347", "0.56390774", "0.56042784", "0.56006056", "0.55833226", "0.55833226", "0.5581751", "0.5474932", "0.545012", "0.54275465", "0.54249936", "0.54029775", "0.53881...
0.689211
1
Creates the absolute path for storing the generated JSPs of this module. Note that it does not create/check file/directory with such a path.
public void createModuleJSPPath() { String[] onlyFolderNames = new String[] { mInstance.getWebModuleCompileJspPath(), mModuleName }; mModuleJSPPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createJavaWebStartPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getJavaWebStartPath(),\n mModuleName\n };\n\n mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "...
[ "0.6614381", "0.6490672", "0.6090965", "0.60163575", "0.5827819", "0.581602", "0.56461394", "0.5591609", "0.55620694", "0.5549932", "0.5543191", "0.5483925", "0.54719293", "0.5462492", "0.5439203", "0.5431449", "0.5406329", "0.53856665", "0.53424", "0.5329351", "0.5317632", ...
0.8062951
0
Returns the absolute path for the generated JSPs from this module.
public String getModuleJSPPath() { return mModuleJSPPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createModuleJSPPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getWebModuleCompileJspPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleJSPPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "...
[ "0.76714885", "0.6028238", "0.5932098", "0.5867701", "0.568667", "0.5660454", "0.562153", "0.5592899", "0.5571797", "0.5566601", "0.55525696", "0.55525696", "0.55525696", "0.55525696", "0.55487186", "0.5542993", "0.55286306", "0.5523121", "0.54958105", "0.5475974", "0.5475569...
0.7311076
1
Returns the absolute path for the backup path for this directorydeployed module Note that it does not create/check file/directory with such a path.
public String getModuleBackupPath() { return mModuleBackupPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutabl...
[ "0.7402778", "0.70993406", "0.6804298", "0.6467917", "0.63720727", "0.63409686", "0.60177326", "0.59687954", "0.5939776", "0.58446014", "0.5834944", "0.5834944", "0.57869124", "0.5708881", "0.56987214", "0.5612998", "0.55429846", "0.5522611", "0.5519326", "0.54849243", "0.545...
0.71361005
1
Returns the absolute path for the backup path for this directorydeployed module Note that it does not create/check file/directory with such a path.
public void createModuleBackupPath() { String[] onlyFolderNames = new String[] { mInstance.getModuleBackupRepositoryPath(), mModuleName }; mModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDirectoryForBackup() {\n\t\tString backupPath = configurationService.getValue(BACKUP_FOLDER_CONFIG);\n\t\tif (backupPath == null) {\n\t\t\t// if backup path null throw error, backup folder must be set\n\t\t\tthrow new ResultCodeException(CoreResultCode.BACKUP_FOLDER_NOT_FOUND,\n\t\t\t\t\tImmutabl...
[ "0.74031746", "0.71357924", "0.7099489", "0.6468675", "0.637233", "0.6341369", "0.6019029", "0.5967921", "0.59404343", "0.5846016", "0.5835118", "0.5835118", "0.5787353", "0.5709484", "0.56999195", "0.5613891", "0.5542946", "0.55233276", "0.5520508", "0.5484122", "0.545522", ...
0.68038434
3
return a String with the error, in English, if the required directories aren't there or have a problem. return null if all is OK
public String verify() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getErrorMessage(){\n\t\t// check ancestor relation ships\n\t\tIPath[] paths = new IPath[ sourceFolders.size() ];\n\t\tint index = 0;\n\t\tfor( IFolder folder : sourceFolders ){\n\t\t\tIPath path = linkedFolders.get( folder );\n\t\t\tif( path == null )\n\t\t\t\tpath = folder.getLocation();\n\t\t\tpath...
[ "0.7493919", "0.6996906", "0.6471187", "0.6471187", "0.6471187", "0.6311814", "0.6246552", "0.61233115", "0.610127", "0.60741645", "0.6049243", "0.6025466", "0.5967857", "0.59193337", "0.59158844", "0.59142214", "0.5894522", "0.5893347", "0.5860843", "0.58049726", "0.58033115...
0.0
-1
Sets the "items" attribute with a collection of Businessentityaddress entities that are retrieved from Addresstype?cap_first and returns the navigation outcome.
public void navigateBusinessentityaddressList() { if (this.getSelected() != null) { FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("Businessentityaddress_items", this.getSelected().getBusinessentityaddressList()); } menuController.setPageLink("/businessentityaddress/index"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"The items that are setup to rebill\")\r\n public List<AutoOrderItem> getItems() {\r\n return items;\r\n }", "@WebMethod(operationName=\"ship_items\")\n public String shipItems(@WebParam(name=\"items\")Item[] items, @WebParam(name=\"address\")Address address)\n throw...
[ "0.54687744", "0.5379274", "0.5233284", "0.5135669", "0.5052708", "0.50516903", "0.49838772", "0.4924769", "0.49070844", "0.48883042", "0.48864165", "0.4880668", "0.486324", "0.48533744", "0.48391062", "0.48238137", "0.48190418", "0.4811884", "0.4783726", "0.47742033", "0.477...
0.6020382
0
because there is always one dataset, so it is difficult to count...
public ChartJFreeChartOutput(final IScope scope, final String name, final IExpression typeexp) { super(scope, name, typeexp); info = new ChartRenderingInfo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "@Override\n\tpublic int countNumberOfDatas() {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testBatchSizeOfOne() throws Exception {\n\t\tDataSetIterator iris = new IrisDataSetIterator(1, 5)...
[ "0.7271875", "0.7271875", "0.7271875", "0.7271875", "0.7271875", "0.7074551", "0.67699766", "0.66971785", "0.66672933", "0.65955514", "0.65955514", "0.65955514", "0.65955514", "0.65955514", "0.6424004", "0.642208", "0.6410408", "0.6410408", "0.63982093", "0.6255962", "0.62115...
0.0
-1
TODO Autogenerated method stub
protected void initRenderer(final IScope scope) { }
{ "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