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
Gets the values of the Asteroid and makes them into a string
public String toString() { String blawk = "X: " + getLocation().getX() + ", Y: " + getLocation().getY() + ", Id: " + getId(); return blawk; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n //arena info\n String locations = \"The arena is \" + xSize + \" x \" + ySize;\n //pieces info\n for (Pieces d : drones) {\n locations += \"\\n\";\n locations += d.toString();\n }\n\n return locations;\n }", "public S...
[ "0.5947859", "0.5907242", "0.5886127", "0.5858748", "0.58532524", "0.5810782", "0.577522", "0.57214963", "0.56969297", "0.568358", "0.5664866", "0.56055295", "0.5563704", "0.555564", "0.5542476", "0.5536412", "0.5519234", "0.54940426", "0.5491853", "0.5489752", "0.5489402", ...
0.0
-1
Returns the facility_ host where facilityId = &63; or returns null if it could not be found. Uses the finder cache.
@Override public Facility_Host fetchByfacilityId(long facilityId) throws SystemException { return fetchByfacilityId(facilityId, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByfacilityId(long facilityId,\n\t\tboolean retrieveFromCache) throws SystemException {\n\t\tObject[] finderArgs = new Object[] { facilityId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_FACILITYI...
[ "0.7226805", "0.7152591", "0.6500216", "0.64389527", "0.6238161", "0.59031034", "0.57881206", "0.5688442", "0.56346196", "0.55173904", "0.54134184", "0.53243285", "0.52940327", "0.52769434", "0.52651095", "0.5246995", "0.5244048", "0.51821417", "0.51807004", "0.51634765", "0....
0.7742298
0
Returns the facility_ host where facilityId = &63; or returns null if it could not be found, optionally using the finder cache.
@Override public Facility_Host fetchByfacilityId(long facilityId, boolean retrieveFromCache) throws SystemException { Object[] finderArgs = new Object[] { facilityId }; Object result = null; if (retrieveFromCache) { result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_FACILITYID, finderArgs, this); } if (result instanceof Facility_Host) { Facility_Host facility_Host = (Facility_Host)result; if ((facilityId != facility_Host.getFacilityId())) { result = null; } } if (result == null) { StringBundler query = new StringBundler(3); query.append(_SQL_SELECT_FACILITY_HOST_WHERE); query.append(_FINDER_COLUMN_FACILITYID_FACILITYID_2); String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); qPos.add(facilityId); List<Facility_Host> list = q.list(); if (list.isEmpty()) { FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID, finderArgs, list); } else { if ((list.size() > 1) && _log.isWarnEnabled()) { _log.warn( "Facility_HostPersistenceImpl.fetchByfacilityId(long, boolean) with parameters (" + StringUtil.merge(finderArgs) + ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); } Facility_Host facility_Host = list.get(0); result = facility_Host; cacheResult(facility_Host); if ((facility_Host.getFacilityId() != facilityId)) { FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID, finderArgs, facility_Host); } } } catch (Exception e) { FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_FACILITYID, finderArgs); throw processException(e); } finally { closeSession(session); } } if (result instanceof List<?>) { return null; } else { return (Facility_Host)result; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByfacilityId(long facilityId)\n\t\tthrows SystemException {\n\t\treturn fetchByfacilityId(facilityId, true);\n\t}", "@Override\n\tpublic Facility_Host fetchByPrimaryKey(long fasilityHostId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)fasilityHo...
[ "0.75846255", "0.70534444", "0.6526073", "0.6305719", "0.6302291", "0.5708829", "0.5707525", "0.5616336", "0.54976255", "0.53295475", "0.5302504", "0.5278174", "0.52366096", "0.51747364", "0.51403713", "0.5095674", "0.50945973", "0.50219643", "0.498111", "0.4928776", "0.49069...
0.7290612
1
Removes the facility_ host where facilityId = &63; from the database.
@Override public Facility_Host removeByfacilityId(long facilityId) throws NoSuchFacility_HostException, SystemException { Facility_Host facility_Host = findByfacilityId(facilityId); return remove(facility_Host); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host remove(long fasilityHostId)\n\t\tthrows NoSuchFacility_HostException, SystemException {\n\t\treturn remove((Serializable)fasilityHostId);\n\t}", "@Override\n\tpublic Facility_Host removeByhostId(long hostId)\n\t\tthrows NoSuchFacility_HostException, SystemException {\n\t\tFacili...
[ "0.68963885", "0.65450674", "0.6369324", "0.6279049", "0.615698", "0.5984201", "0.579144", "0.5738596", "0.5513051", "0.55091155", "0.5474611", "0.5462368", "0.5386957", "0.5367562", "0.53465325", "0.5338518", "0.5306817", "0.5296203", "0.5273417", "0.5214137", "0.5205108", ...
0.7042521
0
Returns the number of facility_ hosts where facilityId = &63;.
@Override public int countByfacilityId(long facilityId) throws SystemException { FinderPath finderPath = FINDER_PATH_COUNT_BY_FACILITYID; Object[] finderArgs = new Object[] { facilityId }; Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, this); if (count == null) { StringBundler query = new StringBundler(2); query.append(_SQL_COUNT_FACILITY_HOST_WHERE); query.append(_FINDER_COLUMN_FACILITYID_FACILITYID_2); String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); qPos.add(facilityId); count = (Long)q.uniqueResult(); FinderCacheUtil.putResult(finderPath, finderArgs, count); } catch (Exception e) { FinderCacheUtil.removeResult(finderPath, finderArgs); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByfacilityId(long facilityId)\n\t\tthrows SystemException {\n\t\treturn fetchByfacilityId(facilityId, true);\n\t}", "@Override\n\tpublic int countByhostId(long hostId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_HOSTID;\n\n\t\tObject[] finderA...
[ "0.6226556", "0.62255156", "0.5701709", "0.5572771", "0.55524576", "0.55278075", "0.54149765", "0.5406575", "0.5386713", "0.52195364", "0.52052903", "0.5191413", "0.51644284", "0.5129697", "0.50984526", "0.50351244", "0.5031364", "0.5011667", "0.5001301", "0.49656677", "0.496...
0.7627432
0
Returns the facility_ host where hostId = &63; or returns null if it could not be found. Uses the finder cache.
@Override public Facility_Host fetchByhostId(long hostId) throws SystemException { return fetchByhostId(hostId, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByPrimaryKey(long fasilityHostId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)fasilityHostId);\n\t}", "@Override\n\tpublic Facility_Host fetchByfacilityId(long facilityId)\n\t\tthrows SystemException {\n\t\treturn fetchByfacilityId(facilityId, ...
[ "0.7690598", "0.7153464", "0.71520644", "0.6987467", "0.6933114", "0.619032", "0.6040789", "0.60094607", "0.5831765", "0.5750948", "0.5659949", "0.5530999", "0.5452795", "0.53288513", "0.53160006", "0.52876496", "0.5264865", "0.51975924", "0.51359254", "0.5129627", "0.5105449...
0.75514084
1
Returns the facility_ host where hostId = &63; or returns null if it could not be found, optionally using the finder cache.
@Override public Facility_Host fetchByhostId(long hostId, boolean retrieveFromCache) throws SystemException { Object[] finderArgs = new Object[] { hostId }; Object result = null; if (retrieveFromCache) { result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_HOSTID, finderArgs, this); } if (result instanceof Facility_Host) { Facility_Host facility_Host = (Facility_Host)result; if ((hostId != facility_Host.getHostId())) { result = null; } } if (result == null) { StringBundler query = new StringBundler(3); query.append(_SQL_SELECT_FACILITY_HOST_WHERE); query.append(_FINDER_COLUMN_HOSTID_HOSTID_2); String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); qPos.add(hostId); List<Facility_Host> list = q.list(); if (list.isEmpty()) { FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_HOSTID, finderArgs, list); } else { if ((list.size() > 1) && _log.isWarnEnabled()) { _log.warn( "Facility_HostPersistenceImpl.fetchByhostId(long, boolean) with parameters (" + StringUtil.merge(finderArgs) + ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); } Facility_Host facility_Host = list.get(0); result = facility_Host; cacheResult(facility_Host); if ((facility_Host.getHostId() != hostId)) { FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_HOSTID, finderArgs, facility_Host); } } } catch (Exception e) { FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_HOSTID, finderArgs); throw processException(e); } finally { closeSession(session); } } if (result instanceof List<?>) { return null; } else { return (Facility_Host)result; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByPrimaryKey(long fasilityHostId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)fasilityHostId);\n\t}", "@Override\n\tpublic Facility_Host fetchByhostId(long hostId) throws SystemException {\n\t\treturn fetchByhostId(hostId, true);\n\t}", "@Ove...
[ "0.756865", "0.73555124", "0.7224424", "0.7013708", "0.69832534", "0.6081891", "0.59572905", "0.5837796", "0.5634549", "0.5482259", "0.5420042", "0.54041874", "0.5243634", "0.51577765", "0.5124459", "0.51204145", "0.5114293", "0.50679207", "0.5062222", "0.501641", "0.49984396...
0.69785315
5
Removes the facility_ host where hostId = &63; from the database.
@Override public Facility_Host removeByhostId(long hostId) throws NoSuchFacility_HostException, SystemException { Facility_Host facility_Host = findByhostId(hostId); return remove(facility_Host); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host remove(long fasilityHostId)\n\t\tthrows NoSuchFacility_HostException, SystemException {\n\t\treturn remove((Serializable)fasilityHostId);\n\t}", "public void decomminsionHost( int hostId );", "@Override\n\tpublic Facility_Host removeByfacilityId(long facilityId)\n\t\tthrows No...
[ "0.7125099", "0.70551765", "0.6814051", "0.66888267", "0.65040976", "0.62451386", "0.62295073", "0.5671461", "0.56316704", "0.5577935", "0.55507207", "0.5534754", "0.5506345", "0.5440375", "0.54258627", "0.5422751", "0.54133964", "0.5347239", "0.5319594", "0.52952886", "0.525...
0.7177699
0
Returns the number of facility_ hosts where hostId = &63;.
@Override public int countByhostId(long hostId) throws SystemException { FinderPath finderPath = FINDER_PATH_COUNT_BY_HOSTID; Object[] finderArgs = new Object[] { hostId }; Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, this); if (count == null) { StringBundler query = new StringBundler(2); query.append(_SQL_COUNT_FACILITY_HOST_WHERE); query.append(_FINDER_COLUMN_HOSTID_HOSTID_2); String sql = query.toString(); Session session = null; try { session = openSession(); Query q = session.createQuery(sql); QueryPos qPos = QueryPos.getInstance(q); qPos.add(hostId); count = (Long)q.uniqueResult(); FinderCacheUtil.putResult(finderPath, finderArgs, count); } catch (Exception e) { FinderCacheUtil.removeResult(finderPath, finderArgs); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByfacilityId(long facilityId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_FACILITYID;\n\n\t\tObject[] finderArgs = new Object[] { facilityId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count ==...
[ "0.71580744", "0.5893209", "0.586552", "0.5835676", "0.57722384", "0.5770609", "0.5766078", "0.57219905", "0.5669503", "0.53521615", "0.533278", "0.5305453", "0.52820134", "0.52634746", "0.5205915", "0.5198376", "0.5178752", "0.5173359", "0.5165723", "0.51366496", "0.5096048"...
0.7540474
0
Caches the facility_ host in the entity cache if it is enabled.
@Override public void cacheResult(Facility_Host facility_Host) { EntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED, Facility_HostImpl.class, facility_Host.getPrimaryKey(), facility_Host); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID, new Object[] { facility_Host.getFacilityId() }, facility_Host); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_HOSTID, new Object[] { facility_Host.getHostId() }, facility_Host); facility_Host.resetOriginalValues(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(List<Facility_Host> facility_Hosts) {\n\t\tfor (Facility_Host facility_Host : facility_Hosts) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tFacility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey()) == null) {\n\t\t\...
[ "0.6933709", "0.6285596", "0.5668394", "0.54414463", "0.5382499", "0.51997787", "0.51939017", "0.5154048", "0.51477826", "0.5086626", "0.50774634", "0.50481695", "0.50338036", "0.50332206", "0.5001139", "0.49877152", "0.48858052", "0.4883725", "0.48808834", "0.4877699", "0.48...
0.7475702
0
Caches the facility_ hosts in the entity cache if it is enabled.
@Override public void cacheResult(List<Facility_Host> facility_Hosts) { for (Facility_Host facility_Host : facility_Hosts) { if (EntityCacheUtil.getResult( Facility_HostModelImpl.ENTITY_CACHE_ENABLED, Facility_HostImpl.class, facility_Host.getPrimaryKey()) == null) { cacheResult(facility_Host); } else { facility_Host.resetOriginalValues(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(Facility_Host facility_Host) {\n\t\tEntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey(),\n\t\t\tfacility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID,\n\t\t\tnew Object[]...
[ "0.6824357", "0.6006874", "0.54621893", "0.54605293", "0.54166377", "0.53860825", "0.53732306", "0.53625196", "0.52838075", "0.52630323", "0.52420235", "0.5201137", "0.5192402", "0.51807284", "0.5175521", "0.51443964", "0.5122996", "0.50860405", "0.5077658", "0.5009823", "0.4...
0.75847673
0
Creates a new facility_ host with the primary key. Does not add the facility_ host to the database.
@Override public Facility_Host create(long fasilityHostId) { Facility_Host facility_Host = new Facility_HostImpl(); facility_Host.setNew(true); facility_Host.setPrimaryKey(fasilityHostId); return facility_Host; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createHost( String hostname );", "public void newHost(Host aHost);", "@Override\n\tpublic Facility_Host fetchByfacilityId(long facilityId)\n\t\tthrows SystemException {\n\t\treturn fetchByfacilityId(facilityId, true);\n\t}", "public void insert(Host object) {\n PreparedStatement pstm = nul...
[ "0.5993482", "0.5757995", "0.54139996", "0.5383882", "0.52169055", "0.5154572", "0.5070436", "0.50703526", "0.5057329", "0.5041475", "0.50235355", "0.49146175", "0.48242092", "0.48041543", "0.4792074", "0.47813648", "0.4724159", "0.4703754", "0.46968198", "0.46948057", "0.468...
0.7700042
0
Removes the facility_ host with the primary key from the database. Also notifies the appropriate model listeners.
@Override public Facility_Host remove(long fasilityHostId) throws NoSuchFacility_HostException, SystemException { return remove((Serializable)fasilityHostId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host remove(Serializable primaryKey)\n\t\tthrows NoSuchFacility_HostException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tFacility_Host facility_Host = (Facility_Host)session.get(Facility_HostImpl.class,\n\t\t\t\t\tprimaryKey);\...
[ "0.6781364", "0.61528546", "0.60847723", "0.6022385", "0.5803228", "0.5778174", "0.54645556", "0.5420496", "0.52776116", "0.51479185", "0.51132405", "0.5098492", "0.50979036", "0.5068677", "0.5052515", "0.503365", "0.5001576", "0.49923962", "0.4990454", "0.49367118", "0.49344...
0.61863434
1
Removes the facility_ host with the primary key from the database. Also notifies the appropriate model listeners.
@Override public Facility_Host remove(Serializable primaryKey) throws NoSuchFacility_HostException, SystemException { Session session = null; try { session = openSession(); Facility_Host facility_Host = (Facility_Host)session.get(Facility_HostImpl.class, primaryKey); if (facility_Host == null) { if (_log.isWarnEnabled()) { _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } throw new NoSuchFacility_HostException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } return remove(facility_Host); } catch (NoSuchFacility_HostException nsee) { throw nsee; } catch (Exception e) { throw processException(e); } finally { closeSession(session); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host remove(long fasilityHostId)\n\t\tthrows NoSuchFacility_HostException, SystemException {\n\t\treturn remove((Serializable)fasilityHostId);\n\t}", "public void decomminsionHost( int hostId );", "@Override\n\tpublic Facility_Host removeByfacilityId(long facilityId)\n\t\tthrows No...
[ "0.6189033", "0.6154234", "0.6088226", "0.602182", "0.58063096", "0.5782003", "0.5466006", "0.5418086", "0.52767557", "0.51475024", "0.5115137", "0.5096119", "0.5095022", "0.5070723", "0.50490266", "0.50301933", "0.50026304", "0.49908015", "0.4989297", "0.49373272", "0.493553...
0.67844117
0
Returns the facility_ host with the primary key or returns null if it could not be found.
@Override public Facility_Host fetchByPrimaryKey(Serializable primaryKey) throws SystemException { Facility_Host facility_Host = (Facility_Host)EntityCacheUtil.getResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED, Facility_HostImpl.class, primaryKey); if (facility_Host == _nullFacility_Host) { return null; } if (facility_Host == null) { Session session = null; try { session = openSession(); facility_Host = (Facility_Host)session.get(Facility_HostImpl.class, primaryKey); if (facility_Host != null) { cacheResult(facility_Host); } else { EntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED, Facility_HostImpl.class, primaryKey, _nullFacility_Host); } } catch (Exception e) { EntityCacheUtil.removeResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED, Facility_HostImpl.class, primaryKey); throw processException(e); } finally { closeSession(session); } } return facility_Host; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByfacilityId(long facilityId)\n\t\tthrows SystemException {\n\t\treturn fetchByfacilityId(facilityId, true);\n\t}", "@Override\n\tpublic Facility_Host fetchByPrimaryKey(long fasilityHostId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)fasilityHo...
[ "0.66776323", "0.65597355", "0.64422864", "0.60367006", "0.5817423", "0.5757463", "0.5682881", "0.566301", "0.5641439", "0.56011796", "0.55968106", "0.5533532", "0.55256927", "0.5409603", "0.5332476", "0.52317125", "0.52210736", "0.52207553", "0.5211004", "0.51813495", "0.517...
0.69769675
0
Returns the facility_ host with the primary key or returns null if it could not be found.
@Override public Facility_Host fetchByPrimaryKey(long fasilityHostId) throws SystemException { return fetchByPrimaryKey((Serializable)fasilityHostId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Facility_Host fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tFacility_Host facility_Host = (Facility_Host)EntityCacheUtil.getResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tFacility_HostImpl.class, primaryKey);\n\n\t\tif (facility_Host == _nullFacilit...
[ "0.6976964", "0.6678379", "0.6442777", "0.6038336", "0.58193666", "0.5759508", "0.56839204", "0.56642103", "0.5641701", "0.5602924", "0.5597121", "0.5533024", "0.5523203", "0.5407898", "0.5333571", "0.5232683", "0.52222174", "0.52219605", "0.52131563", "0.5183018", "0.5177429...
0.65609944
2
Returns all the facility_ hosts.
@Override public List<Facility_Host> findAll() throws SystemException { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getHosts() {\n\t\treturn hosts;\n\t}", "List<String> getHosts();", "org.jacorb.imr.HostInfo[] list_hosts();", "public List<String> getHosts() {\n return getProperty(HOSTS);\n }", "public List<VirtualHost> getHosts() {\r\n return this.hosts;\r\n }", "List<AcHost> ...
[ "0.69398296", "0.69323033", "0.6885918", "0.65560156", "0.65400344", "0.64375746", "0.6405472", "0.6405155", "0.6352609", "0.6344859", "0.6333843", "0.6053194", "0.6027199", "0.5990133", "0.5985792", "0.5948862", "0.58825207", "0.5879135", "0.5872211", "0.56394035", "0.561969...
0.7761137
0
Removes all the facility_ hosts from the database.
@Override public void removeAll() throws SystemException { for (Facility_Host facility_Host : findAll()) { remove(facility_Host); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}", "@Override\n\tpublic List<Facility_Host> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public void delete...
[ "0.629133", "0.60290176", "0.5824409", "0.58233666", "0.5806137", "0.58007103", "0.5760755", "0.5752249", "0.57085633", "0.567268", "0.5629147", "0.5618682", "0.55650336", "0.55636954", "0.55554557", "0.55512875", "0.5547442", "0.550851", "0.5489687", "0.5463934", "0.54444695...
0.77873445
0
Returns the number of facility_ hosts.
@Override public int countAll() throws SystemException { Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_FACILITY_HOST); count = (Long)q.uniqueResult(); FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY, count); } catch (Exception e) { FinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY); throw processException(e); } finally { closeSession(session); } } return count.intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByfacilityId(long facilityId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_FACILITYID;\n\n\t\tObject[] finderArgs = new Object[] { facilityId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count ==...
[ "0.6450607", "0.6104129", "0.6079076", "0.60307544", "0.5993388", "0.5991898", "0.59876907", "0.5972759", "0.5972759", "0.59349126", "0.592615", "0.5911929", "0.5904057", "0.5894446", "0.58892024", "0.5884857", "0.5884857", "0.5865025", "0.5854185", "0.5852117", "0.58368593",...
0.6943407
0
Initializes the facility_ host persistence.
public void afterPropertiesSet() { String[] listenerClassNames = StringUtil.split(GetterUtil.getString( com.liferay.util.service.ServiceProps.get( "value.object.listener.de.uhh.l2g.plugins.model.Facility_Host"))); if (listenerClassNames.length > 0) { try { List<ModelListener<Facility_Host>> listenersList = new ArrayList<ModelListener<Facility_Host>>(); for (String listenerClassName : listenerClassNames) { listenersList.add((ModelListener<Facility_Host>)InstanceFactory.newInstance( getClassLoader(), listenerClassName)); } listeners = listenersList.toArray(new ModelListener[listenersList.size()]); } catch (Exception e) { _log.error(e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialize() {\n setThisFacility(null);\n loadData();\n initCols();\n\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFEREN...
[ "0.65137804", "0.62672955", "0.61264074", "0.6064881", "0.58845586", "0.58152646", "0.58063054", "0.57983726", "0.5751121", "0.57436526", "0.57417727", "0.5720669", "0.57108", "0.5703534", "0.56905216", "0.5678947", "0.5677264", "0.56690615", "0.5643869", "0.5638576", "0.5603...
0.0
-1
This method is called only from Simulation main class
public static void initSettings () { waitBoolean = false; configValue = new String[] {"5", "10", "1000", "1", "10", "120", "0", "5", "2"}; String [] configTitle = { "Number of elevators ", "Number of floors ", "Number of Passengers", "Riding frequency for one hour ", "Elevator capacity ", "Simulation Duration in minute", "Elevator call algorithm [0~2]", "Passenger patience ", "Resolution: [1-normal, 2-high]" }; // Frame init JFrame initFrame = new JFrame(); initFrame.setLayout(new BorderLayout()); initFrame.setSize(1000, 800); // title area JLabel title = new JLabel ("Configure your simulation !"); title.setFont(new Font("Times", Font.BOLD, 50)); title.setBackground(Color.CYAN); JPanel titlePanel = new JPanel(); titlePanel.setLayout(new GridLayout(1,1)); titlePanel.add(title); // config area JPanel initConfig = new JPanel(); initConfig.setLayout(new GridLayout(configTitle.length,1)); Font f = new Font ("Times", Font.BOLD, 30); for (int i=0; i < configTitle.length; i++) { JLabel label = new JLabel(configTitle[i]+": "); label.setFont(f); configTextField[i] = new JTextField (configValue[i]); configTextField[i].setFont(f); initConfig.add(label); initConfig.add(configTextField[i]); } // command doIt = new JButton ("Do It!"); doIt.setFont(new Font("Times", Font.BOLD, 30)); doIt.setActionCommand("DO"); doIt.addActionListener (new ButtonClickListener()); JPanel doItPanel = new JPanel(); doItPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); doItPanel.add(doIt); initFrame.add(titlePanel, BorderLayout.NORTH); initFrame.add(initConfig, BorderLayout.CENTER); initFrame.add(doItPanel, BorderLayout.SOUTH); initFrame.setVisible(true); while (waitBoolean == false ) { try { Thread.sleep(200); } catch (Exception e) {} } initFrame.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onSimulationComplete()\n\t{\n\t}", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "public void quickSimulation() {\n\t\tnew SimulationControleur();\n\t}", "@Override\n public void simulationPeriodic() {\n }", "public void startSimulation();", "@Override\r\n public v...
[ "0.7223141", "0.7137561", "0.6939754", "0.67929393", "0.6726463", "0.67186654", "0.66008896", "0.6596337", "0.6419619", "0.6406296", "0.6360936", "0.63378257", "0.6222356", "0.6169068", "0.6139682", "0.6135244", "0.6135244", "0.61350465", "0.6097015", "0.6095952", "0.6081775"...
0.0
-1
/ Created by kay on 4/9/2014. Interface for a generic container.
public interface Container extends Control { /** * Add a control to the container. * @param control */ void add(Control control); /** * Remove a control from the container. * @param control */ void remove(Control control); /** * Clear the container of controls. */ void clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Container<T> {\n\n\t/**\n\t * Registra un objeto en el contenedor. Un objeto puede estar varias veces en el contenedor\n\t */\n\tpublic void register(T o);\n\t\n\t/**\n\t * Elimina todas las apariciones del objeto objeto del contenedor\n\t */\n\tpublic void unregister(T o);\n}", "public interfac...
[ "0.7767722", "0.70683146", "0.70441896", "0.69862413", "0.6776737", "0.66292554", "0.66083056", "0.65862656", "0.64830124", "0.64502513", "0.6427106", "0.6384759", "0.63813084", "0.6363191", "0.63052326", "0.6264965", "0.61924654", "0.61805457", "0.61628056", "0.60842234", "0...
0.64484257
10
Add a control to the container.
void add(Control control);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void addToControl(Composite control) {\n\t\t\n\t}", "public void addControl( Object aThing ){\n controls.push( aThing );\n }", "public void addControl(int index, Control control) {\n\t\tcontrols.add(index, control);\n\t}", "public void addControls() {\n }", "public void addCon...
[ "0.720262", "0.6852273", "0.6673325", "0.66359866", "0.6625384", "0.6346038", "0.6288424", "0.5900239", "0.5835734", "0.5833513", "0.58215183", "0.5799198", "0.57685125", "0.5737437", "0.5690341", "0.56786716", "0.564856", "0.5622201", "0.5559218", "0.5543285", "0.55415815", ...
0.78651947
0
Remove a control from the container.
void remove(Control control);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeControl(Control control) {\n\t\tif (!controls.contains(control))\n\t\t\treturn;\n\t\tcontrols.remove(control);\n\t}", "public void removeControl(int index) {\n\t\tif (index < 0 || index >= controls.size())\n\t\t\treturn;\n\t\tcontrols.remove(index);\n\t}", "public void removeButton() {\n ...
[ "0.7109418", "0.67980224", "0.64983696", "0.6206815", "0.584318", "0.5811704", "0.5788313", "0.578509", "0.5783231", "0.57545215", "0.57545215", "0.5748936", "0.57254905", "0.57129323", "0.57040936", "0.5682942", "0.5682942", "0.5665218", "0.5636737", "0.5617334", "0.559717",...
0.77678645
0
Clear the container of controls.
void clear();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clear()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t\t((JTextField)c).setText(\"\");\n\t\t}\n\t\t\n\t}", "public void clear() {\n super.clear();\n locationToWidget.clear();\n widgetToCa...
[ "0.6934456", "0.68472075", "0.67555577", "0.66889954", "0.66668034", "0.6564881", "0.65622634", "0.6432731", "0.63664865", "0.63525635", "0.63450545", "0.6324338", "0.62622654", "0.6231723", "0.6230579", "0.6207347", "0.6191756", "0.61421674", "0.6139741", "0.61390585", "0.61...
0.0
-1
This is the test for the output file check.
void tag1() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isFileOutput();", "@Test\n void fileWriter() {\n\n\n ArrayList<String> fileLines = Name_Sorter.fileRead(this.readFile, \"src/main/java/oop/assignment3/ex41/base/testFile-ex41\");\n Collections.sort(fileLines);\n this.writeFile = Name_Sorter.fileWriter(this.writeFil...
[ "0.7106106", "0.7052941", "0.6903035", "0.6882353", "0.6854244", "0.675525", "0.67207164", "0.67108333", "0.6689171", "0.66127414", "0.6546887", "0.65175265", "0.6492561", "0.6454719", "0.64045256", "0.6355306", "0.6352901", "0.63208306", "0.62772816", "0.6195833", "0.6194027...
0.0
-1
Test a C style comment in souce code.
void tag2() { /* c_style_tag: This is a C style tag. */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COM...
[ "0.70779896", "0.68973154", "0.68795335", "0.6796147", "0.67534703", "0.67032635", "0.6673899", "0.6615618", "0.6458827", "0.64470476", "0.64391935", "0.6419778", "0.6406994", "0.6398539", "0.638807", "0.6387731", "0.6329673", "0.63277864", "0.63064945", "0.62873954", "0.6269...
0.0
-1
Test a C++ style comment in souce code.
void tag3() { // c++_style_tag: This is a C++ style tag. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t ...
[ "0.66867054", "0.666034", "0.66600937", "0.655003", "0.65212196", "0.6515148", "0.64779806", "0.64620095", "0.64266133", "0.6420038", "0.6417797", "0.64071596", "0.63641", "0.6318667", "0.62797034", "0.6274452", "0.6270362", "0.62580913", "0.62161905", "0.6166597", "0.6158722...
0.0
-1
Test a JavaDoc single style comment in souce code.
void tag4() { /** javadoc_single_style_tag: This is a JavaDoc single style tag. } /** Test a JavaDoc multi style comment in souce code. * */ void tag5() { /** * javadoc_multi_style_tag: This is a JavaDoc multi style tag. */ } /** Test a tag not at the start of a line. * */ void tag6() { /** * The tag "not_start_of_line_tag" should NOT be found. */ } /** Test a tag variable in source code. * */ void tag7() { int source_code_variable_tag; source_code_variable_tag += 7; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isJavaDoc(String line){\n boolean lineIsJavaDoc = false;\n if(this.inJavaDoc){\n lineIsJavaDoc = true;\n }\n if(line.contains(\"/**\")){\n lineIsJavaDoc = true;\n inJavaDoc = true;\n }\n if(line.contains(\"*/\") && this.inJav...
[ "0.6806334", "0.65289867", "0.64739007", "0.6401351", "0.6314623", "0.6282774", "0.6262047", "0.6249951", "0.6239952", "0.62337196", "0.62109417", "0.6208942", "0.61926144", "0.6185211", "0.613649", "0.6131975", "0.61250407", "0.60787666", "0.60762346", "0.60732275", "0.60578...
0.6734288
1
Generates deadline command based on the input string. Processes the input string and store it as task and deadline.
public DeadlineCommand(String description, LocalDateTime deadline) { this.description = description; this.deadline = deadline; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String parseDeadline(String instruction) throws JarvisException, IOException {\n String taskDescription = \"\";\n int currIndex = 8;\n\n // Extracting the deadline (dd/mm/yyyy hh:mm)\n while (currIndex < instruction.length() &&\n !instruction.substring(currI...
[ "0.684289", "0.66206515", "0.64449877", "0.6406285", "0.61598045", "0.61294067", "0.61101294", "0.60091347", "0.5949784", "0.59497744", "0.5935267", "0.59174883", "0.5879417", "0.5838884", "0.58126915", "0.5784585", "0.57778895", "0.57393044", "0.5710985", "0.5647461", "0.560...
0.6546105
2
Creates a new instance of this exception with error message.
public DependencyReportConfigurationException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public MyException(String message)\n { super(message); }", "public Error(String message) {\r\n \tsuper(message);\r\n \t}", "public NotValidException(String message) {\r\n ...
[ "0.69150853", "0.6839032", "0.6822234", "0.6776236", "0.67495173", "0.67284954", "0.6708951", "0.66084844", "0.651093", "0.6483969", "0.64559716", "0.645369", "0.6427584", "0.6388045", "0.6386598", "0.63802654", "0.637387", "0.6373703", "0.6365735", "0.6361132", "0.6331656", ...
0.0
-1
Creates a new instance of this exception with error message and inner cause.
public DependencyReportConfigurationException(String message, Throwable cause) { super(message, cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CustomException(String message, Throwable cause) {\n super(message, cause);\n }", "public Exception(String message, Throwable cause) {\n\t\t\tsuper(message, cause);\n\t\t}", "public CustomException(Throwable cause) {\n super(cause == null ? null : cause.toString(), cause);\n }", "p...
[ "0.6959842", "0.6816096", "0.674022", "0.67318827", "0.67318296", "0.66952693", "0.66392416", "0.6629545", "0.6593917", "0.6592093", "0.65335757", "0.65052664", "0.6495323", "0.6483678", "0.64680254", "0.64612824", "0.645768", "0.6455195", "0.64541286", "0.6448141", "0.644150...
0.0
-1
Creates a new instance of this exception with error message and exception data.
public DependencyReportConfigurationException(String message, ExceptionData data) { super(message, data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataException(String message, String code){\r\n super(message, code);\r\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public BaseException(String message) {\n super(message);\n ...
[ "0.6759453", "0.6568937", "0.64703184", "0.64575213", "0.64573467", "0.64464736", "0.6321814", "0.6311934", "0.62775135", "0.62567514", "0.62011725", "0.61830235", "0.61378384", "0.6124597", "0.61241764", "0.6108529", "0.6099427", "0.6090759", "0.60895956", "0.6080496", "0.60...
0.57820934
59
Creates a new instance of this exception with error message, inner cause and exception data.
public DependencyReportConfigurationException(String message, Throwable cause, ExceptionData data) { super(message, cause, data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CustomException(String message, Throwable cause) {\n super(message, cause);\n }", "public Exception(String message, Throwable cause) {\n\t\t\tsuper(message, cause);\n\t\t}", "public EmployeeException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public Exception(Thro...
[ "0.66399914", "0.66193277", "0.656939", "0.6555212", "0.65401244", "0.64409435", "0.6439781", "0.6399592", "0.6386403", "0.63837117", "0.6378749", "0.6349212", "0.6348119", "0.6338751", "0.63365173", "0.6334209", "0.6318184", "0.6310427", "0.6310321", "0.6288671", "0.62778056...
0.5768172
99
Swaps two pokemon in the box
public void disableBoxDraggedPokemon(int x, int y) { storage.swapPokemon(currentBox, draggedX + draggedY, x + y * 5); draggedPokemon.setVisible(false); getBoxPokemon(draggedX + draggedY).setVisible(true); Icon temp = getBoxPokemon(draggedX + draggedY).getIcon(); setBoxPokemonIcon(draggedX + draggedY, getBoxPokemon(x + y * 5).getIcon()); setBoxPokemonIcon(x + y * 5, temp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Switch()\n {\n if(getCurrentPokemon().equals(Pokemon1))\n {\n // Change to pokemon2\n setCurrentPokemon(Pokemon2);\n }\n // if my current pokemon is the same as pokemon2\n else if(getCurrentPokemon().equals(Pokemon2))\n {\n /...
[ "0.7078685", "0.7005989", "0.696467", "0.67177963", "0.66124153", "0.6587273", "0.6549526", "0.653173", "0.64902675", "0.6374083", "0.63250256", "0.63099414", "0.6304616", "0.6224258", "0.61729914", "0.6171974", "0.61699224", "0.6164835", "0.6151454", "0.61148435", "0.6090494...
0.0
-1
Swaps a pokemon in the box to one in the players party Drags from storage to party
public void disableBoxDraggedPokemon(int y) { draggedPokemon.setVisible(false); getBoxPokemon(draggedX + draggedY).setVisible(true); Icon temp = getBoxPokemon(draggedX + draggedY).getIcon(); setBoxPokemonIcon(draggedX + draggedY, partyPokemon[y].getIcon()); partyPokemon[y].setIcon(temp); handler.getGame().getGameMenu().updatePokemonMenu(); storage.storageToParty(draggedX + draggedY, y); partyPokemonInfo[y].setText("Lvl: " + party.getPokemon(y).getLevel() + " HP: " + party.getPokemon(y).getHp() + "/" + party.getPokemon(y).getMaxHp()); handler.getGame().getGameMenu().updatePokemonMenu(); handler.getGame().getGameMenu().updateBagPokemon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void SwapToPokemon2(ActionEvent evt) {\n\t\tmyModel.detach(this);\n\t\tmyController = new SwapPokemonController(myModel, myModel.getPlayer().getPokemon(2));\n\t\tmyController.execute();\n\t}", "public void swapPokemon(int a, int b)\n\t{\n\t\tif(a >= 0 && a < 6 && b >= 0 && b < 6)\n\t\t{\n\t\t\tPokemon ...
[ "0.6399171", "0.63499945", "0.628881", "0.62490994", "0.623225", "0.6179772", "0.6087956", "0.6077785", "0.59182906", "0.5885447", "0.58155537", "0.5810172", "0.57586366", "0.57507616", "0.5729956", "0.57232714", "0.56992704", "0.5686208", "0.56817645", "0.5674788", "0.564534...
0.5416308
35
Swaps a party pokemon with one in storage Drags from party to storage
public void disablePartyDraggedPokemon(int x, int y) { draggedPokemon.setVisible(false); partyPokemon[draggedY].setVisible(true); partyPokemonInfo[draggedY].setVisible(true); if (party.getPartySize() == 1) { System.out.println("Cant have zero pokemon in party!"); return; } Icon temp = partyPokemon[draggedY].getIcon(); partyPokemon[draggedY].setIcon(boxPokemon[x + y * 5].getIcon()); setBoxPokemonIcon(x + y * 5, temp); handler.getGame().getGameMenu().updatePokemonMenu(); if (storage.partyToStorage(x + y * 5, draggedY)) partyPokemonInfo[draggedY].setText("Lvl: " + party.getPokemon(draggedY).getLevel() + " HP: " + party.getPokemon(draggedY).getHp() + "/" + party.getPokemon(draggedY).getMaxHp()); else partyPokemonInfo[draggedY].setText(""); //"removes pokemon text" //set pokemon info text here too handler.getGame().getGameMenu().updatePokemonMenu(); handler.getGame().getGameMenu().updateBagPokemon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void transferCommunalPile() {\n this.roundWinner.addToDeck(communalPile);\n communalPile = new Pile();\n }", "public void swapPokemon(int a, int b)\n\t{\n\t\tif(a >= 0 && a < 6 && b >= 0 && b < 6)\n\t\t{\n\t\t\tPokemon temp = m_pokemon[a];\n\t\t\tm_pokemon[a] = m_pokemon[b];\n\t\t\tm_pok...
[ "0.57354957", "0.57217723", "0.5651578", "0.5612739", "0.5524941", "0.54760855", "0.539627", "0.5381081", "0.5290005", "0.5287859", "0.52633023", "0.5249165", "0.5237356", "0.52098626", "0.5193829", "0.51860017", "0.5164605", "0.5154921", "0.5144627", "0.5112908", "0.50807834...
0.5039875
26
Swaps a party pokemon with the one it was dropped on
public void disablePartyDraggedPokemon(int y) { draggedPokemon.setVisible(false); partyPokemon[draggedY].setVisible(true); partyPokemonInfo[draggedY].setVisible(true); Icon temp = partyPokemon[draggedY].getIcon(); partyPokemon[draggedY].setIcon(partyPokemon[y].getIcon()); partyPokemon[y].setIcon(temp); String temp2 = partyPokemonInfo[draggedY].getText(); partyPokemonInfo[draggedY].setText(partyPokemonInfo[y].getText()); partyPokemonInfo[y].setText(temp2); handler.getGame().getGameMenu().savePokemonMenu(); player.getParty().swapPokemon(draggedY, y); handler.getGame().getGameMenu().updatePokemonMenu(); handler.getGame().getGameMenu().updateBagPokemon(); //set pokemon info text here too }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void swapPokemon(int a, int b)\n\t{\n\t\tif(a >= 0 && a < 6 && b >= 0 && b < 6)\n\t\t{\n\t\t\tPokemon temp = m_pokemon[a];\n\t\t\tm_pokemon[a] = m_pokemon[b];\n\t\t\tm_pokemon[b] = temp;\n\t\t\tServerMessage sendSwap = new ServerMessage(ClientPacket.SWAP_PARTY);\n\t\t\tsendSwap.addInt(a);\n\t\t\tsendSwap.ad...
[ "0.64669526", "0.6451399", "0.6385404", "0.6306816", "0.6178098", "0.6155236", "0.60596377", "0.59779966", "0.5957689", "0.59250325", "0.5842493", "0.58063954", "0.5769754", "0.5748764", "0.57484686", "0.56987125", "0.5697359", "0.5655876", "0.56533766", "0.56076527", "0.5599...
0.57650083
13
Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(getTimeElapsed());
public static int getDaysFromNow(Date date) throws Exception{ if(date != null) { Days daysbetween = Days.daysBetween(new DateTime(date.getTime()), new DateTime().now()); return daysbetween.getDays(); } else throw new Exception(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Date getTime(long millis){\n\tCalendar calender = Calendar.getInstance();\r\n\tcalender.setTimeInMillis(millis);\r\n\treturn calender.getTime();\r\n\t\r\n\t\r\n}", "long getElapsedTime();", "long getTimeInMillis();", "long elapsedTime();", "long getElapsedTime(Context context);", "public float ge...
[ "0.7110712", "0.71065426", "0.6855524", "0.6833023", "0.6711436", "0.65946287", "0.65221024", "0.6510136", "0.6413316", "0.636985", "0.6368994", "0.6356598", "0.63553095", "0.6297613", "0.6292669", "0.6292669", "0.6292669", "0.6292669", "0.6292669", "0.6292669", "0.6292669", ...
0.0
-1
TODO check for valid cursor
public static AdventureObject fromCursor(Cursor cursor){ AdventureObject advObject = null; try { advObject = CustomGson.getGson().fromJson(cursor.getString(cursor.getColumnIndex(ROW_OBJECT)), AdventureObject.class); advObject.id = cursor.getInt(cursor.getColumnIndex(ROW_ID)); advObject.mdateCreated = new Date(cursor.getLong(cursor.getColumnIndex(ROW_DATE_CREATED))); advObject.mdateUpdated = new Date(cursor.getLong(cursor.getColumnIndex(ROW_DATE_UPDATED))); advObject.madventureTitle = cursor.getString(cursor.getColumnIndex(ROW_TITLE)); } catch(CursorIndexOutOfBoundsException e){ e.printStackTrace(); } catch(NullPointerException e){ e.printStackTrace(); } return advObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract long getCursor();", "public abstract Cursor buildCursor();", "public int cursor();", "public void cursorOn();", "public int getCursor() { return curs; }", "DBCursor execute();", "@Override\n public boolean isCurrent() { return cursor != null; }", "public java.lang.String getCursor(...
[ "0.73997796", "0.7398882", "0.72071975", "0.7164451", "0.69697094", "0.685751", "0.68288463", "0.6710478", "0.6647448", "0.6608482", "0.645169", "0.6447565", "0.64069206", "0.6376368", "0.6363327", "0.63507444", "0.6339488", "0.6311591", "0.6263538", "0.62478346", "0.6235131"...
0.0
-1
TODO Autogenerated method stub
public void mouseEntered(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void mouseExited(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void mousePressed(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void mouseReleased(MouseEvent e) { }
{ "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
For matched strategy A courier is dispatched for a specific order and may only pick up that order
@SneakyThrows @Override public void prepare() { final String orderId = order.getId(); final BlockingQueue<Order> queue = new LinkedBlockingDeque<>(); if (preparedOrderMap.containsKey(orderId)) { throw new SimulatorException("Encounter repeated order id!"); } preparedOrderMap.put(orderId, queue); Thread.sleep(order.getPrepTime() * SCALE_MILLI_SECOND); order.setOrderPreparedTime(new Date()); preparedOrderMap.get(orderId).put(order); log.info(String.format("Order prepared: %s", order.getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void processOrder( Game game )\n {\n }", "static void perform_cc(String passed){\n\t\tint type = type_of_cc(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_carry(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "@Test\n public void testOrderInNegotiation() {\n Player l_player = new Player()...
[ "0.5238714", "0.51238614", "0.5095934", "0.50269604", "0.5018412", "0.49922058", "0.49560228", "0.490568", "0.48848274", "0.48517352", "0.485033", "0.48304343", "0.48280054", "0.48131722", "0.47994643", "0.47982302", "0.47900653", "0.4783241", "0.47679037", "0.47617716", "0.4...
0.0
-1
Performs a crossvalidation with the specified dataset and the function to train the model.
public static DecisionTreeNode performCrossValidation(List<CSVAttribute[]> dataset, int labelAttribute, BiFunction<List<CSVAttribute[]>, Integer, DecisionTreeNode> trainFunction, int numFolds) { List<Double> foldPerfResults = new ArrayList<>(); // Split dataset DecisionTreeNode learnedTree = null; List<CSVAttribute[]> trainData; List<CSVAttribute[]> ulTestData; List<CSVAttribute[]> lTestData; // inintialize confusion matrix with zeros int[][] confusionMatrix = new int[][]{{0,0},{0,0}}; for (int i = 0; i < numFolds; i++) { List<List<CSVAttribute[]>> splitData = getTrainData(dataset, numFolds, labelAttribute); trainData = splitData.get(0); ulTestData = splitData.get(1); lTestData = splitData.get(2); // learn from training subset learnedTree = trainFunction.apply(trainData, labelAttribute); // gather results in list foldPerfResults.add(predictionAccuracy(ulTestData, lTestData, learnedTree, labelAttribute)); int[][] newConfusionMatrix = getConfusionMatrix(ulTestData, lTestData, labelAttribute); confusionMatrix[0][0] += newConfusionMatrix[0][0]; confusionMatrix[0][1] += newConfusionMatrix[0][1]; confusionMatrix[1][0] += newConfusionMatrix[1][0]; confusionMatrix[1][1] += newConfusionMatrix[1][1]; } int tp = confusionMatrix[0][0]; int fp = confusionMatrix[0][1]; int fn = confusionMatrix[1][0]; int tn = confusionMatrix[1][1]; float posPrecision = (float) tp / (tp + fp); float negPrecision = (float) tn / (tn + fn); float posRecall = (float) tp / (tp + fn); float negRecall = (float) tn / (tn + fp); double averageAccuracy = foldPerfResults.stream() .mapToDouble(d -> d) .average() .orElse(0.0); double standardDeviation = Math.sqrt((foldPerfResults.stream() .mapToDouble(d -> d) .map(x -> Math.pow((x - averageAccuracy),2)) .sum()) / foldPerfResults.size()); System.out.println("accuracy: " + averageAccuracy * 100 + "% +/- " + standardDeviation * 100 + "%"); System.out.println(); System.out.println(" true 1 | true 0 | class precision"); System.out.println("-------------------------------------------"); System.out.println("pred. 1 | "+tp+" | "+fp+" | "+posPrecision*100+"%"); System.out.println("pred. 0 | "+fn+" | "+tn+" | "+negPrecision*100+"%"); System.out.println("-------------------------------------------"); System.out.println("class recall | "+posRecall*100+"% | "+negRecall*100+"% | "); return learnedTree; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CrossValidation createCrossValidation();", "public double crossValidation(Classifier classifier, int split, Instances instances, StringBuilder stringBuilder) throws Exception {\n evaluation = new Evaluation(instances);\n evaluation.crossValidateModel(classifier, instances, split, new Random(1));\n ...
[ "0.65211785", "0.59324634", "0.5681084", "0.55431473", "0.55029345", "0.5446759", "0.54210484", "0.54077154", "0.53772193", "0.5348341", "0.5340499", "0.5339084", "0.5325232", "0.5320703", "0.52717173", "0.5263481", "0.5262975", "0.5225674", "0.5190417", "0.5189186", "0.51851...
0.74704546
0
Calculates the confusion matrix.
private static int[][] getConfusionMatrix(List<CSVAttribute[]> predictedTestData, List<CSVAttribute[]> validationData, int labelAttribute) { int[][] result = new int[][]{{0,0},{0,0}}; for (int j = 0; j < predictedTestData.size(); j++) { CSVAttribute predictedLabel = predictedTestData.get(j)[labelAttribute]; CSVAttribute realLabel = validationData.get(j)[labelAttribute]; if (predictedLabel.equals(realLabel) && predictedLabel.getValue().equals("1")) result[0][0]++; // tp if (!predictedLabel.equals(realLabel) && predictedLabel.getValue().equals("1")) result[0][1]++; // fp if (!predictedLabel.equals(realLabel) && predictedLabel.getValue().equals("0")) result[1][0]++; // fn if (predictedLabel.equals(realLabel) && predictedLabel.getValue().equals("0")) result[1][1]++; // tn } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract List<ConfusionMatrix> calcConfusions();", "@Override\n\tpublic ConfusionMatrix calculate_confusion_matrix(Instance[] testData) {\n\n\t\t// Count the true positives, true negatives, false positives, false negatives\n\t\tint TP, FP, FN, TN;\n\t\tTP = 0;\n\t\tFP = 0;\n\t\tFN = 0;\n\t\tTN = 0;\n\n...
[ "0.7528525", "0.7480112", "0.7472511", "0.67321396", "0.64580274", "0.62103146", "0.6205569", "0.5936927", "0.5603991", "0.55630994", "0.5546044", "0.54210776", "0.54204744", "0.5410695", "0.5382291", "0.53783", "0.5277616", "0.5268964", "0.5247614", "0.51934624", "0.5186585"...
0.68706775
3
Returns the accuracy of the tree when applied to the ulTestData.
public static double predictionAccuracy(List<CSVAttribute[]> ulTestData, List<CSVAttribute[]> validationData, DecisionTreeNode tree, int labelAttribute){ List<CSVAttribute[]> predictedTestData = TreeModel.predict(ulTestData, tree, labelAttribute); int correct = 0; for (int j = 0; j < predictedTestData.size(); j++) { if (predictedTestData.get(j)[labelAttribute].equals(validationData.get(j)[labelAttribute])) correct++; } return (double) correct / (double) predictedTestData.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double findAccuracy(){\n double[] prediciton = this.learner.test(this.VS);\n ClassificationEvaluator CE = new ClassificationEvaluator(prediciton, this.VS);\n double tmp = CE.returnAccuracy(); //find accuracy\n return tmp;\n }", "public double computeAccuracy(Node node,\n\t\...
[ "0.69263303", "0.6703138", "0.6380806", "0.63626134", "0.63353646", "0.6274901", "0.625472", "0.6069254", "0.60141027", "0.5958544", "0.5938212", "0.5936862", "0.58632755", "0.5830026", "0.5828064", "0.5815916", "0.5802518", "0.57899296", "0.5779232", "0.56538916", "0.5647647...
0.7060726
0
Returns a List of subsets of the dataset, split according to the number of folds
private static List<List<CSVAttribute[]>> getTrainData(List<CSVAttribute[]> dataset, int numFolds, int labelAttribute){ float partitionRatio = (numFolds - 1) / (float) numFolds; int nTrainExamples = (int) (dataset.size() * partitionRatio); // Shuffle the dataset Random random = new Random(); Collections.shuffle(dataset, random); List<CSVAttribute[]> trainData = new ArrayList<>(); List<CSVAttribute[]> ulTestData = new ArrayList<>(); List<CSVAttribute[]> lTestData = new ArrayList<>(); // add to train data set for (int i = 0; i <= nTrainExamples; i++) { trainData.add(dataset.get(i)); } // add to test data set for (int j = nTrainExamples + 1; j < dataset.size(); j++) { // defensive copy CSVAttribute[] row = dataset.get(j); CSVAttribute[] newRow = new CSVAttribute[row.length]; for (int k = 0; k < newRow.length; k++) { newRow[k] = (CSVAttribute) row[k].clone(); } // remove labels newRow[labelAttribute].setValue("null"); lTestData.add(row); ulTestData.add(newRow); } List<List<CSVAttribute[]>> combined = new ArrayList<>(); combined.add(trainData); combined.add(ulTestData); combined.add(lTestData); return combined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<List<Integer>> subsets(int[] S);", "public List<DataSet> nFolds(int n) {\n\t\tif (n > size() || n < 1) return null;\r\n\t\t\r\n\t\tList<DataSet> folds = new LinkedList<DataSet>();\r\n\t\t\r\n\t\tInstance[] instances = new Instance[size()];\r\n\t\tinstances = map.values().toArray(instances);\...
[ "0.65391845", "0.6451625", "0.6233334", "0.6149963", "0.59956306", "0.5959675", "0.5959675", "0.590422", "0.5837336", "0.58070815", "0.5800328", "0.5795167", "0.57270473", "0.57219166", "0.57019556", "0.5634289", "0.5611897", "0.5562228", "0.5548615", "0.5483934", "0.546216",...
0.5748476
12
Do nothing if configuration is loaded from the classpath
@Override public void init(Driver driver, Properties properties) { if (configuration == null) { LOG.warn("Cannot reload configuration from classpath. Please use -D" + DriverFactory.PROP_CONF_LOCATION); return; } // Load configuration try { // Try to convert as long delay = CONFIG_RELOAD_DELAY.getValue(properties); // Do not watch faster than SPEED_LIMIT if (delay < SPEED_LIMIT) { delay = SPEED_LIMIT; } } catch (NumberFormatException e) { LOG.warn("Unable to convert {}={} as number", CONFIG_RELOAD_DELAY.getName(), e); } LOG.info("Will reload configuration every {}ms if {} is modified", delay, configuration.getAbsoluteFile()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadConfig() {\n\t}", "public abstract void loaded() throws ConfigurationException;", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\...
[ "0.7046389", "0.6977713", "0.6717845", "0.6601988", "0.65182614", "0.65179926", "0.6482255", "0.6431327", "0.6418961", "0.63991934", "0.63533115", "0.6305462", "0.624548", "0.6238349", "0.6227752", "0.6167355", "0.61628485", "0.61480016", "0.6120598", "0.6105042", "0.6066072"...
0.0
-1
/final int prime = 31; int result = 1; result = prime result + ((name == null) ? 0 : name.hashCode()); result = prime result + ((surname == null) ? 0 : surname.hashCode());
@Override public int hashCode() { return Objects.hash(name,surname); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n int result = 31;\n result = 31 * result + (name != null ? name.hashCode() : 0);\n result = 31 * result + (surname != null ? surname.hashCode() : 0);\n// result = 31 * result + (user != null ? user.hashCode() : 0);\n// result = 31 * result ...
[ "0.7613657", "0.758869", "0.7515976", "0.74880016", "0.746279", "0.74059165", "0.7239058", "0.7211733", "0.71675456", "0.71579283", "0.71296984", "0.7091504", "0.70520616", "0.69446033", "0.6926072", "0.6908714", "0.68654907", "0.68599504", "0.68342155", "0.6833353", "0.68109...
0.7780401
0
style, text color, background color
public String toString(TerminalCharacter prev) { if(equalsIgnoreCharacter(prev)) return String.valueOf(character); else { StringBuilder builder = new StringBuilder(); builder.append(ANSI.START); if(!style.equals(prev.getStyle())) { builder.append(style.getValueComparedToPrev(prev.getStyle())); } if(!this.color.equals(prev.color)) { if(prev.getStyle().isInvert()) { if(builder.charAt(builder.length()-1) == '[') builder.append(this.color.toString()); else builder.append(';').append(this.color.toString()); } else { if(builder.charAt(builder.length()-1) == '[') builder.append(this.color.toString(prev.color)); else builder.append(';').append(this.color.toString(prev.color)); } } builder.append('m'); builder.append(getCharacter()); return builder.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n ...
[ "0.6892813", "0.66153204", "0.6581139", "0.65696037", "0.65127265", "0.6500019", "0.6453548", "0.6427615", "0.6398097", "0.6373716", "0.63652015", "0.6341809", "0.6326552", "0.63085103", "0.62767255", "0.62701917", "0.6269907", "0.6223", "0.61841893", "0.6182453", "0.61753124...
0.0
-1
TODO Autogenerated method stub
@Override public void reset(int iteration) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void handleEvent(PersonEntersVehicleEvent event) { if (event.getVehicleId().toString().startsWith("FF")) { fahrzugIDs.add(event.getVehicleId().toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { CountUsedVehiclesFF c = new CountUsedVehiclesFF(); c.run(args[0]); }
{ "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
Retrieve the Trajectory State Time Node
public double time() { return _dblTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract State getStateAtTime(double t);", "@Override\n public float getStateTime() {\n return stateTime;\n }", "com.google.protobuf.Timestamp getCurrentStateTime();", "com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder();", "public long getStateTime() {\n return...
[ "0.6938748", "0.6572187", "0.65505344", "0.6399954", "0.6333608", "0.6206535", "0.61250114", "0.6101105", "0.58985215", "0.58770543", "0.5837909", "0.5794488", "0.57616276", "0.57414633", "0.5697002", "0.56788886", "0.5678169", "0.56671774", "0.5647549", "0.56257355", "0.5610...
0.0
-1
Retrieve the Trajectory State Time Node Holdings
public double holdings() { return _dblHoldings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract State getStateAtTime(double t);", "public double getHoldTime();", "@Override\n public float getStateTime() {\n return stateTime;\n }", "public LocalHolding\t\tgetHolding();", "public LocalHolding getHoldingForUpdate();", "public TemporalStateNode(){ \n\t\t\tchilds=new HashM...
[ "0.5981571", "0.5965914", "0.5835174", "0.5685175", "0.5620919", "0.5615569", "0.55380386", "0.5469035", "0.5465638", "0.543036", "0.54217196", "0.53819305", "0.5356037", "0.53142685", "0.52903694", "0.52706426", "0.51985115", "0.516125", "0.5158675", "0.51452345", "0.5105824...
0.5147058
19
Retrieve the Trajectory State Time Node Cost
public double cost() { return _dblCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "double getCost();", "double getCost();", "public abstract float getEstimatedCost(AStarNode paramAStarNode);", "public abstract float getCost(AStarNode paramAStarNode);", ...
[ "0.661587", "0.64907146", "0.64907146", "0.64502114", "0.63776433", "0.63568896", "0.6349192", "0.63416415", "0.6340448", "0.6333427", "0.6316827", "0.63004917", "0.6233761", "0.6231236", "0.62214255", "0.6220775", "0.6215041", "0.6214301", "0.6211399", "0.6211399", "0.620663...
0.61302954
28
Retrieve the Trajectory State Time Node Trade Rate
public double tradeRate() { return _dblTradeRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTransRate();", "public Long getStateTrac() {\n return stateTrac;\n }", "Integer networkTickRate();", "public Integer getTradeTime() {\n return tradeTime;\n }", "double getRate();", "public Float getBhEdlTraf() {\r\n return bhEdlTraf;\r\n }", "public double getTur...
[ "0.68772084", "0.6238685", "0.60319394", "0.60032237", "0.5934298", "0.5905794", "0.58489436", "0.58102846", "0.58066064", "0.57717085", "0.5739522", "0.5719609", "0.5664036", "0.56076115", "0.5601417", "0.55967253", "0.55791235", "0.5576209", "0.55741245", "0.55738103", "0.5...
0.66096973
1
Retrieve the Trajectory Time Node Market State
public double marketState() { return _dblMarketState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getStateTrac() {\n return stateTrac;\n }", "com.google.protobuf.Timestamp getCurrentStateTime();", "public abstract State getStateAtTime(double t);", "com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder();", "@Override\n public float getStateTime() {\n return...
[ "0.64224833", "0.6330647", "0.6306658", "0.62842315", "0.61606747", "0.6100677", "0.60165775", "0.5758439", "0.5733519", "0.5683958", "0.566232", "0.55002433", "0.5480706", "0.5477237", "0.5458169", "0.5457326", "0.5454095", "0.54322964", "0.54216284", "0.5400166", "0.5369020...
0.61262167
5
clear anything that could be in repo already so data is not mistaken
@BeforeEach void setUp() { GameService.getAllGames().clear(); // test clear worked on consoles before running other tests Assertions.assertEquals(0, GameService.getAllGames().size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetRepository() {\n repository.clear();\n addDirectories( directory );\n }", "@After\n public void clearRepositories() {\n Assert.assertEquals(1, userRepository.count());\n // check that token repository didn't change\n Assert.assertEquals(1, tokenRepository...
[ "0.7204107", "0.68229014", "0.6671167", "0.636839", "0.6239611", "0.6075541", "0.60495657", "0.60403794", "0.6032244", "0.601172", "0.5969539", "0.59525174", "0.5895287", "0.5895287", "0.5891353", "0.5885791", "0.5875113", "0.5873331", "0.58728015", "0.5851198", "0.5830791", ...
0.0
-1
non testing console games
@Test void getAllGamesForConsoleWithGamesFromDifferentConsolesReturnsCorrectSize() { GameService.addGame(this.game1); GameService.addGame(this.game2); // testing console games GameService.addGame(this.game4); GameService.addGame(this.game5); Assertions.assertEquals(2, GameService.getAllGamesForConsole(this.console2).size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n DemoRepositoryCreator repositoryCreator = new DemoRepositoryCreator();\n\n WorldMapRepository worldMapRepository = repositoryCreator.getWorldMapRepository();\n MonsterRepository monsterRepository = repositoryCreator.getMonsterRepository();\n Pl...
[ "0.69191444", "0.6864371", "0.66396064", "0.65873826", "0.6578678", "0.65390915", "0.6527507", "0.6490485", "0.6481965", "0.6479291", "0.64703876", "0.64554286", "0.64453715", "0.6437868", "0.642655", "0.63931465", "0.63910747", "0.6382881", "0.637667", "0.6373862", "0.636896...
0.0
-1
non testing console games
@Test void getAvailableGamesForConsoleWithGamesFromDifferentConsolesReturnsCorrectSize() { GameService.addGame(this.game1); GameService.addGame(this.game2); // testing console games GameService.addGame(this.game4); GameService.addGame(this.game5); Assertions.assertEquals(1, GameService.getAvailableGamesForConsole(this.console2).size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n DemoRepositoryCreator repositoryCreator = new DemoRepositoryCreator();\n\n WorldMapRepository worldMapRepository = repositoryCreator.getWorldMapRepository();\n MonsterRepository monsterRepository = repositoryCreator.getMonsterRepository();\n Pl...
[ "0.6920131", "0.6865489", "0.663964", "0.6587484", "0.657949", "0.6539279", "0.65284604", "0.64912796", "0.6482356", "0.6480132", "0.64704216", "0.6455784", "0.644558", "0.64378875", "0.64268136", "0.6392935", "0.63901246", "0.6383014", "0.63768256", "0.63739574", "0.63689226...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent e) { super.mouseExited(e); s.getVerticalScrollBar().repaint(); ; }
{ "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
Verifies if the method ejbPassivate is called.
public void verifyPassivate() { // TODO - How to test the EJB passivate? throw new RuntimeException("Test not implemented yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ejbPassivate() {\n }", "public void ejbPassivate() {\n testAllowedOperations(\"ejbPassivate\");\n }", "public void ejbPassivate() throws EJBException, RemoteException {\n\t}", "public void ejbPassivate() throws EJBException, RemoteException {\n\t}", "public void ejbPassivate() thro...
[ "0.80136347", "0.7766621", "0.7396669", "0.7396669", "0.7396669", "0.7281021", "0.6769016", "0.6295994", "0.60385764", "0.5666386", "0.5522423", "0.5479066", "0.5442143", "0.5415617", "0.53626883", "0.53626883", "0.53626883", "0.5262227", "0.5232984", "0.5232984", "0.52225536...
0.79566085
1
Verifies if the method ejbActivate is called.
public void verifyActivate() { // TODO - How to test the EJB passivate? throw new RuntimeException("Test not implemented yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ejbActivate() {\n }", "public void ejbActivate() {\n testAllowedOperations(\"ejbActivate\");\n }", "public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}", "@Override\n\tpublic void ejbActivate() throws EJBException, RemoteException {\n\n\t}", "public void ejbA...
[ "0.80227", "0.78482866", "0.7794762", "0.7642748", "0.7607269", "0.7607269", "0.7607269", "0.6759098", "0.6474652", "0.64459246", "0.6419764", "0.59276825", "0.5860936", "0.5860936", "0.5860936", "0.58289987", "0.58289987", "0.5789549", "0.577389", "0.5750314", "0.5622088", ...
0.80559164
0
Verifies if the method ejbRemove is called.
public void verifyRemove() throws RemoteException, CreateException, RemoveException { // cleans the log List lstResultDelete = clBean.findCallbackEventByCallbackMethod(SimpleEjb2LifecycleBean.class.getName(), CallbackType.PRE_DESTROY, SimpleEjb2LifecycleBean.class.getName()); for (Object obj : lstResultDelete) { CallbackLogger log = (CallbackLogger) obj; clBean.deleteCallbackEvent(log.getId()); } // creates the bean SimpleEjb2 bean = beanHome.create(); // deletes the bean beanHome.remove(bean); // verifies the callback List lstResult = clBean.findCallbackEventByCallbackMethod(SimpleEjb2LifecycleBean.class.getName(), CallbackType.PRE_DESTROY, SimpleEjb2LifecycleBean.class.getName()); assertEquals(1, lstResult.size(), "The lifecycle callback was not called or it was called more then once."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ejbRemove() {\n }", "public void ejbRemove() {\n }", "@Override\n\tpublic void ejbRemove() throws EJBException, RemoteException {\n\n\t}", "public void ejbRemove() throws EJBException, RemoteException {\n\t}", "public void ejbRemove() throws EJBException, RemoteException {\n\t}", "publi...
[ "0.8096351", "0.8096351", "0.7480657", "0.72646374", "0.72646374", "0.72646374", "0.71554005", "0.62345636", "0.6159848", "0.613994", "0.61319953", "0.6064105", "0.6042484", "0.6003833", "0.6003833", "0.6003833", "0.59493315", "0.5944224", "0.5944224", "0.5944224", "0.5901524...
0.7068706
7
Start tickers. Adjacent threads will start executing, calling for the update methods of the bodies contained in this environment.
public void start() { tickers.stream().forEach(t -> t.start()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startAll() {\n distributors.forEach(Distributor::startThread);\n }", "private static void tickOnThread() {\n final Thread thread = new Thread(new Runnable(){\n @Override\n public void run() {\n tick(true);\n }\n });\n thre...
[ "0.6075381", "0.6005682", "0.589847", "0.58109957", "0.58071715", "0.57292217", "0.5725497", "0.5592487", "0.55752414", "0.55111676", "0.5467693", "0.54327", "0.54164565", "0.5412563", "0.5409122", "0.5396075", "0.5395136", "0.5375888", "0.5370216", "0.5349511", "0.5339262", ...
0.7262464
0
Created by propan on 31. 3. 2017.
public interface PersistentProducer<T> extends Producer<T> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.59983927", "0.58644795", "0.57997376", "0.5722809", "0.565627", "0.565627", "0.5609046", "0.56071967", "0.5585551", "0.5579497", "0.5554449", "0.5530547", "0.5525779", "0.5523209", "0.5521198", "0.5484989", "0.5484527", "0.5481429", "0.5481429", "0.5481429", "0.5481429", ...
0.0
-1
Checks if the subsystem is still capable of reading a configuration that uses version 1.1 of the schema.
@Test public void testSubsystem1_1() throws Exception { KernelServices servicesA = super.createKernelServicesBuilder(createAdditionalInitialization()) .setSubsystemXml(readResource("keycloak-1.1.xml")).build(); Assert.assertTrue("Subsystem boot failed!", servicesA.isSuccessfulBoot()); ModelNode modelA = servicesA.readWholeModel(); super.validateModel(modelA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void checkVersion() {\n }", "void checkTapDbVersion() throws ConfigurationException;", "boolean hasVersion();", "boolean hasVersion();", "boolean requiresConfigSchema();", "@Test(expected = AssertionError.class)\n public void testSchemaVersionMismatch() {\n PowerMock.re...
[ "0.63861716", "0.60703045", "0.59582305", "0.59582305", "0.58771914", "0.58520305", "0.5847615", "0.581266", "0.57731026", "0.5724864", "0.5660781", "0.5657107", "0.5623515", "0.5598917", "0.5591405", "0.55819696", "0.5568589", "0.5564614", "0.5551832", "0.5551832", "0.552428...
0.54453707
24
TODO Autogenerated method stub
@Override public Object getModel() { return room; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println(326); Power_of_Three_326 obj = new Power_of_Three_326(); System.out.println(obj.isPowerOfThree(0)); }
{ "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
this.isNoView implies: offset==0, sliceStride==rowsslices, rowStride==columns, columnStride==1 Makes this class non instantiable, but still let's others inherit from it.
protected AbstractMatrix3D() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected AbstractMatrix3D vSliceFlip() {\n\tif (slices>0) {\n\t\tsliceZero += (slices-1)*sliceStride;\n\t\tsliceStride = -sliceStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "protected void setUp(int slices, int rows, int columns, int sliceZero, int rowZero, int columnZero, int sliceStride, int r...
[ "0.61370534", "0.58661956", "0.5626887", "0.5494553", "0.5479997", "0.5350559", "0.53156966", "0.5315608", "0.53072405", "0.53019017", "0.5298057", "0.5272002", "0.5269065", "0.5249598", "0.52185816", "0.52150345", "0.5185961", "0.5171883", "0.5148837", "0.51421714", "0.51373...
0.0
-1
Returns the position of the given absolute rank within the (virtual or nonvirtual) internal 1dimensional array. Default implementation. Override, if necessary.
protected int _columnOffset(int absRank) { return absRank; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int _rowOffset(int absRank) {\n\treturn absRank;\n}", "protected int _rowRank(int rank) {\n\treturn rowZero + rank*rowStride;\n}", "protected int _sliceOffset(int absRank) {\n\treturn absRank;\n}", "protected int _columnRank(int rank) {\n\treturn columnZero + rank*columnStride;\n}", "private int ...
[ "0.6974727", "0.65810955", "0.65463245", "0.6544463", "0.6438598", "0.6366628", "0.6187858", "0.6187858", "0.6168069", "0.61443424", "0.61296004", "0.60707283", "0.6066151", "0.604085", "0.5977598", "0.5976561", "0.5969221", "0.59645355", "0.5958511", "0.59533954", "0.5950436...
0.70026135
0
Returns the absolute rank of the given relative rank.
protected int _columnRank(int rank) { return columnZero + rank*columnStride; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRank() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn rank;\r\n\t}", "long getRank();", "long getToRank();", "public int getRankInteger(Rank _rank) {\n return _rank.rank;\n }", "long getFromRank();", "public int getRank(){\r\n\t\tif(this.rank.equals(RANKS[0])){ return -1;...
[ "0.6740124", "0.6618281", "0.6616751", "0.6528035", "0.64452153", "0.6444095", "0.6441431", "0.6441431", "0.6305051", "0.6268203", "0.620882", "0.62026125", "0.61923116", "0.6178012", "0.61170435", "0.6094408", "0.609402", "0.6092642", "0.60873866", "0.60858756", "0.60731965"...
0.0
-1
Returns the position of the given absolute rank within the (virtual or nonvirtual) internal 1dimensional array. Default implementation. Override, if necessary.
protected int _rowOffset(int absRank) { return absRank; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int _columnOffset(int absRank) {\n\treturn absRank;\n}", "protected int _rowRank(int rank) {\n\treturn rowZero + rank*rowStride;\n}", "protected int _sliceOffset(int absRank) {\n\treturn absRank;\n}", "protected int _columnRank(int rank) {\n\treturn columnZero + rank*columnStride;\n}", "private i...
[ "0.70025826", "0.65831256", "0.6547326", "0.65454704", "0.6439721", "0.6367723", "0.61895555", "0.61895555", "0.6168764", "0.6145385", "0.6131412", "0.6071031", "0.6066864", "0.6042488", "0.5979193", "0.5978169", "0.59713924", "0.5964969", "0.5960138", "0.59550136", "0.595196...
0.6975515
1
Returns the absolute rank of the given relative rank.
protected int _rowRank(int rank) { return rowZero + rank*rowStride; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRank() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn rank;\r\n\t}", "long getRank();", "long getToRank();", "public int getRankInteger(Rank _rank) {\n return _rank.rank;\n }", "long getFromRank();", "public int getRank(){\r\n\t\tif(this.rank.equals(RANKS[0])){ return -1;...
[ "0.6740739", "0.66189414", "0.6617715", "0.6529012", "0.6445325", "0.64445937", "0.6442302", "0.6442302", "0.6305992", "0.62692815", "0.6209915", "0.62026936", "0.61923814", "0.6178999", "0.61167127", "0.60951644", "0.6095146", "0.60931313", "0.60879713", "0.60859805", "0.607...
0.54858696
78
Returns the position of the given absolute rank within the (virtual or nonvirtual) internal 1dimensional array. Default implementation. Override, if necessary.
protected int _sliceOffset(int absRank) { return absRank; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int _columnOffset(int absRank) {\n\treturn absRank;\n}", "protected int _rowOffset(int absRank) {\n\treturn absRank;\n}", "protected int _rowRank(int rank) {\n\treturn rowZero + rank*rowStride;\n}", "protected int _columnRank(int rank) {\n\treturn columnZero + rank*columnStride;\n}", "private int...
[ "0.70026135", "0.6974727", "0.65810955", "0.6544463", "0.6438598", "0.6366628", "0.6187858", "0.6187858", "0.6168069", "0.61443424", "0.61296004", "0.60707283", "0.6066151", "0.604085", "0.5977598", "0.5976561", "0.5969221", "0.59645355", "0.5958511", "0.59533954", "0.5950436...
0.65463245
3
Returns the absolute rank of the given relative rank.
protected int _sliceRank(int rank) { return sliceZero + rank*sliceStride; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRank() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn rank;\r\n\t}", "long getRank();", "long getToRank();", "public int getRankInteger(Rank _rank) {\n return _rank.rank;\n }", "long getFromRank();", "public int getRank(){\r\n\t\tif(this.rank.equals(RANKS[0])){ return -1;...
[ "0.6740124", "0.6618281", "0.6616751", "0.6528035", "0.64452153", "0.6444095", "0.6441431", "0.6441431", "0.6305051", "0.6268203", "0.620882", "0.62026125", "0.61923116", "0.6178012", "0.61170435", "0.6094408", "0.609402", "0.6092642", "0.60873866", "0.60858756", "0.60731965"...
0.0
-1
Checks whether the receiver contains the given box and throws an exception, if necessary.
protected void checkBox(int slice, int row, int column, int depth, int height, int width) { if (slice<0 || depth<0 || slice+depth>slices || row<0 || height<0 || row+height>rows || column<0 || width<0 || column+width>columns) throw new IndexOutOfBoundsException(toStringShort()+", slice:"+slice+", row:"+row+" ,column:"+column+", depth:"+depth+" ,height:"+height+", width:"+width); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean canFitBox(Box box)\n {\n // Check if a box can fit on this box. It must have a width that is less than or equal\n // to the current width.\n if (box.getWidth() > this.getWidth())\n return false;\n\n // If the new box causes a pile to be created that is high...
[ "0.56752163", "0.5553272", "0.54786855", "0.54661036", "0.54603505", "0.54430866", "0.5358603", "0.53531826", "0.53523237", "0.534488", "0.53017884", "0.5283666", "0.52709794", "0.5266207", "0.5245923", "0.52365196", "0.5229701", "0.5219676", "0.5186598", "0.51759434", "0.515...
0.0
-1
Sanity check for operations requiring a column index to be within bounds.
protected void checkColumn(int column) { if (column < 0 || column >= columns) throw new IndexOutOfBoundsException("Attempted to access "+toStringShort()+" at column="+column); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkBounds(final int row, final int col) {\n if (row <= 0 || row > size) {\n throw new IndexOutOfBoundsException(\n \"row index \" + row + \" out of bounds\"\n );\n }\n if (col <= 0 || col > size) {\n throw new IndexOutOfBoundsExcep...
[ "0.700132", "0.6855985", "0.6635936", "0.6527558", "0.6517798", "0.6447524", "0.6406927", "0.6398064", "0.63577914", "0.63213515", "0.6256243", "0.62202084", "0.6203232", "0.61875963", "0.618557", "0.6173777", "0.6142696", "0.61407363", "0.6127028", "0.6121799", "0.6070581", ...
0.69708395
1
Checks whether indexes are legal and throws an exception, if necessary.
protected void checkColumnIndexes(int[] indexes) { for (int i=indexes.length; --i >= 0; ) { int index = indexes[i]; if (index < 0 || index >= columns) checkColumn(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "private void checkOutOfBounds(int index) {\n if (this.isOutOfBounds(index)) {\n throw new IndexOutOfBoundsException();\n }\n }", "protected void checkIndex(int index) {\n if (index < 0 || index ...
[ "0.720239", "0.7068689", "0.70676637", "0.7042587", "0.70050347", "0.6931458", "0.6809516", "0.6808676", "0.6799637", "0.6781003", "0.6753554", "0.6678742", "0.65706915", "0.65641797", "0.6515905", "0.65092486", "0.6453014", "0.64522326", "0.6390607", "0.6374315", "0.6368009"...
0.5668742
83
Sanity check for operations requiring a row index to be within bounds.
protected void checkRow(int row) { if (row < 0 || row >= rows) throw new IndexOutOfBoundsException("Attempted to access "+toStringShort()+" at row="+row); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkBounds(final int row, final int col) {\n if (row <= 0 || row > size) {\n throw new IndexOutOfBoundsException(\n \"row index \" + row + \" out of bounds\"\n );\n }\n if (col <= 0 || col > size) {\n throw new IndexOutOfBoundsExcep...
[ "0.72337687", "0.72048515", "0.7084941", "0.68071944", "0.6762663", "0.6732744", "0.6672969", "0.66158396", "0.6613091", "0.66059804", "0.655175", "0.6475199", "0.64372885", "0.6437217", "0.63934076", "0.6381289", "0.63802344", "0.6336816", "0.63201916", "0.63167644", "0.6309...
0.7075348
3
Checks whether indexes are legal and throws an exception, if necessary.
protected void checkRowIndexes(int[] indexes) { for (int i=indexes.length; --i >= 0; ) { int index = indexes[i]; if (index < 0 || index >= rows) checkRow(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "private void checkOutOfBounds(int index) {\n if (this.isOutOfBounds(index)) {\n throw new IndexOutOfBoundsException();\n }\n }", "protected void checkIndex(int index) {\n if (index < 0 || index ...
[ "0.72035694", "0.7069909", "0.70688814", "0.7043594", "0.7006233", "0.6932466", "0.68102527", "0.68084425", "0.6801336", "0.67824477", "0.6754764", "0.66802144", "0.65704864", "0.656481", "0.6517301", "0.6510812", "0.6453461", "0.6451496", "0.6390451", "0.6374804", "0.6369619...
0.0
-1
Sanity check for operations requiring two matrices with the same number of slices, rows and columns.
public void checkShape(AbstractMatrix3D B) { if (slices != B.slices || rows != B.rows || columns != B.columns) throw new IllegalArgumentException("Incompatible dimensions: "+toStringShort()+" and "+B.toStringShort()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }", "public void checkShape(AbstractMatrix3D B, AbstractMatrix3D C) {\n\tif (slices !=...
[ "0.64099336", "0.63168955", "0.62981653", "0.6143702", "0.61316186", "0.6046631", "0.59029216", "0.5697866", "0.5653314", "0.5520937", "0.5518671", "0.544058", "0.5356215", "0.53106517", "0.5281917", "0.52809477", "0.5250653", "0.5245737", "0.5245254", "0.523646", "0.5232969"...
0.6277869
3
Sanity check for operations requiring matrices with the same number of slices, rows and columns.
public void checkShape(AbstractMatrix3D B, AbstractMatrix3D C) { if (slices != B.slices || rows != B.rows || columns != B.columns || slices != C.slices || rows != C.rows || columns != C.columns) throw new IllegalArgumentException("Incompatible dimensions: "+toStringShort()+", "+B.toStringShort()+", "+C.toStringShort()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkShape(AbstractMatrix3D B) {\n\tif (slices != B.slices || rows != B.rows || columns != B.columns) throw new IllegalArgumentException(\"Incompatible dimensions: \"+toStringShort()+\" and \"+B.toStringShort());\n}", "private void checkMatrixDimensions(Matrix B) throws JPARSECException {\n if (B....
[ "0.6397706", "0.62099576", "0.59551716", "0.5755017", "0.57242256", "0.5709911", "0.56358176", "0.5621293", "0.56018573", "0.55906075", "0.5550496", "0.5529041", "0.55239487", "0.54893905", "0.54748815", "0.54636705", "0.5460591", "0.5447179", "0.54231524", "0.5419967", "0.54...
0.63340485
1
Sanity check for operations requiring a slice index to be within bounds.
protected void checkSlice(int slice) { if (slice < 0 || slice >= slices) throw new IndexOutOfBoundsException("Attempted to access "+toStringShort()+" at slice="+slice); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }", "private void checkRange(int index) {\n if ((index < 0 || index >= curSize))\n throw new IndexOutOfBoundsException(\"Index: \" + index + \" is out of bounds. Size = \" + size());\n }", ...
[ "0.71600455", "0.6749622", "0.66117764", "0.6605282", "0.65955645", "0.657596", "0.65592", "0.65450186", "0.64312655", "0.6407618", "0.6394015", "0.63777345", "0.6287392", "0.6277538", "0.6267522", "0.6258292", "0.621135", "0.6186154", "0.6142928", "0.61287904", "0.61209863",...
0.78399336
0
Checks whether indexes are legal and throws an exception, if necessary.
protected void checkSliceIndexes(int[] indexes) { for (int i=indexes.length; --i >= 0; ) { int index = indexes[i]; if (index < 0 || index >= slices) checkSlice(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "private void checkOutOfBounds(int index) {\n if (this.isOutOfBounds(index)) {\n throw new IndexOutOfBoundsException();\n }\n }", "protected void checkIndex(int index) {\n if (index < 0 || index ...
[ "0.72035694", "0.7069909", "0.70688814", "0.7043594", "0.7006233", "0.6932466", "0.68102527", "0.68084425", "0.6801336", "0.67824477", "0.6754764", "0.66802144", "0.65704864", "0.656481", "0.6517301", "0.6510812", "0.6453461", "0.6451496", "0.6390451", "0.6374804", "0.6369619...
0.59734297
46
Returns the number of columns.
public int columns() { return columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getColumnsCount();", "int getColumnsCount();", "public int getNumberOfColumns(){\n\t\treturn number_columns;\n\t}", "public int columnCount() {\n\t\treturn n_;\n\t}", "public int getNumColumns() { return columns.length; }", "public abstract int numColumns();", "public abstract int getNumColumns();"...
[ "0.8954044", "0.8954044", "0.87089306", "0.8701794", "0.86395377", "0.85635144", "0.8562854", "0.8516613", "0.8516613", "0.8491352", "0.8451065", "0.84405154", "0.8418735", "0.8384446", "0.8365784", "0.8358186", "0.8276517", "0.8244405", "0.8177068", "0.8170689", "0.8125766",...
0.7623806
48
Returns the position of the given coordinate within the (virtual or nonvirtual) internal 1dimensional array.
protected int index(int slice, int row, int column) { return _sliceOffset(_sliceRank(slice)) + _rowOffset(_rowRank(row)) + _columnOffset(_columnRank(column)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getArrayPos(int x, int y) {\n int position = (y - 1) * this.yDimension + x - 1;\n return position;\n }", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "public int getLocation(int x, int y) {\n\t\treturn grid[x][y];\n\t}", "public Coordinate getPosition();", "public int...
[ "0.6687118", "0.6596528", "0.6312636", "0.62511986", "0.6217129", "0.61562854", "0.59613013", "0.59214497", "0.5911747", "0.58634675", "0.5851119", "0.5807877", "0.5806476", "0.57980245", "0.5797012", "0.5796547", "0.578886", "0.5783134", "0.57696295", "0.57655287", "0.575699...
0.0
-1
Returns the number of rows.
public int rows() { return rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getRowsCount();", "public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}", "public int getNumRows() { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Getter for the number of rows\n\t\treturn numRows; \n\t}", "public abstract int getNumOfRows();", "public int getRowsCount() {\n return rows_.size();\n }", ...
[ "0.8982829", "0.87495905", "0.8583371", "0.85620093", "0.8547805", "0.8541924", "0.85184014", "0.8463738", "0.84319377", "0.84164184", "0.84130365", "0.84024143", "0.83735085", "0.83735085", "0.83723116", "0.83651626", "0.82934654", "0.8267615", "0.8203527", "0.8201483", "0.8...
0.7948099
66
Sets up a matrix with a given number of slices and rows.
protected void setUp(int slices, int rows, int columns) { setUp(slices,rows,columns,0,0,0,rows*columns,columns,1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setUp(int slices, int rows, int columns, int sliceZero, int rowZero, int columnZero, int sliceStride, int rowStride, int columnStride) {\n\tif (slices<0 || rows<0 || columns<0) throw new IllegalArgumentException(\"negative size\");\n\tif ((double)slices*rows*columns > Integer.MAX_VALUE) throw new Il...
[ "0.65064657", "0.59584016", "0.587147", "0.58267254", "0.5814813", "0.58133847", "0.57937753", "0.57318825", "0.5729937", "0.570653", "0.56969523", "0.5691756", "0.568414", "0.56679696", "0.56490844", "0.56166667", "0.5593738", "0.55776006", "0.557325", "0.55705273", "0.55523...
0.6770938
0
Sets up a matrix with a given number of slices and rows and the given strides.
protected void setUp(int slices, int rows, int columns, int sliceZero, int rowZero, int columnZero, int sliceStride, int rowStride, int columnStride) { if (slices<0 || rows<0 || columns<0) throw new IllegalArgumentException("negative size"); if ((double)slices*rows*columns > Integer.MAX_VALUE) throw new IllegalArgumentException("matrix too large"); this.slices = slices; this.rows = rows; this.columns = columns; this.sliceZero = sliceZero; this.rowZero = rowZero; this.columnZero = columnZero; this.sliceStride = sliceStride; this.rowStride = rowStride; this.columnStride = columnStride; this.isNoView = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setUp(int slices, int rows, int columns) {\n\tsetUp(slices,rows,columns,0,0,0,rows*columns,columns,1);\n}", "protected AbstractMatrix3D vStrides(int sliceStride, int rowStride, int columnStride) {\n\tif (sliceStride<=0 || rowStride<=0 || columnStride<=0) throw new IndexOutOfBoundsException(\"illeg...
[ "0.5768086", "0.5548742", "0.53150856", "0.51205766", "0.50556934", "0.5018135", "0.49277022", "0.48841384", "0.48177516", "0.47728437", "0.46903604", "0.4659474", "0.46365708", "0.46222225", "0.4566841", "0.4556728", "0.4551162", "0.4544444", "0.45353058", "0.45099822", "0.4...
0.6230465
0
Returns the number of cells which is slices()rows()columns().
public int size() { return slices*rows*columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCellsCount();", "public static int size() {\n return cells.size();\n }", "public int getCellsCount() {\n return cells_.size();\n }", "public abstract int getNumColumns();", "public int size() {\r\n return cells.size();\r\n }", "int numberOfDimensions();", "public int getCel...
[ "0.8105217", "0.7546069", "0.7401441", "0.7401423", "0.7336062", "0.7235035", "0.7211238", "0.7105628", "0.70406586", "0.68397856", "0.68397856", "0.68373793", "0.6834131", "0.6834131", "0.67596376", "0.6756781", "0.6747335", "0.6729647", "0.6694314", "0.66821355", "0.6677822...
0.7922341
1
Returns the number of slices.
public int slices() { return slices; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n\treturn slices*rows*columns;\n}", "public short getNumberOfSlices() {\n\t\treturn getShort(ADACDictionary.RECONSTRUCTED_SLICES);\n\t}", "int getNumSegments();", "int getNumOfChunks();", "int numberOfDimensions();", "int getChunksCount();", "int getChunksCount();", "int getDimens...
[ "0.78649473", "0.75060695", "0.7213079", "0.72075033", "0.7027478", "0.6989455", "0.6989455", "0.69307244", "0.6930068", "0.6791506", "0.6779423", "0.6749609", "0.67410916", "0.67103845", "0.67103845", "0.66812944", "0.66764957", "0.6627878", "0.6621329", "0.6603957", "0.6559...
0.7811946
1
Returns a string representation of the receiver's shape.
public String toStringShort() { return AbstractFormatter.shape(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\t\treturn shape;\n\t\t}", "public String toString() {\n\t\treturn String.format(\"Shape: %s,Color: %s\", shape, color);\n\t}", "public String whatShape();", "public String toString() {\r\n return \"Shape: \" + this.getClass().getName() +\r\n \"\\t radius: ...
[ "0.8355879", "0.7361711", "0.71618706", "0.713663", "0.6954486", "0.6736104", "0.66616446", "0.66286355", "0.65754735", "0.6564601", "0.64179707", "0.63963825", "0.63398325", "0.6336887", "0.6327305", "0.62515056", "0.62445784", "0.6189389", "0.61648", "0.61565167", "0.613703...
0.70854163
4
Self modifying version of viewColumnFlip().
protected AbstractMatrix3D vColumnFlip() { if (columns>0) { columnZero += (columns-1)*columnStride; columnStride = -columnStride; this.isNoView = false; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n ...
[ "0.6373839", "0.6264201", "0.6133243", "0.61288655", "0.60567474", "0.6054472", "0.60534716", "0.6028119", "0.6018947", "0.59670496", "0.594664", "0.5905818", "0.5798696", "0.57448405", "0.5715888", "0.5677579", "0.5668842", "0.5601637", "0.55894524", "0.5516824", "0.55075985...
0.77726537
0
Self modifying version of viewDice().
protected AbstractMatrix3D vDice(int axis0, int axis1, int axis2) { int d = 3; if (axis0 < 0 || axis0 >= d || axis1 < 0 || axis1 >= d || axis2 < 0 || axis2 >= d || axis0 == axis1 || axis0 == axis2 || axis1 == axis2) { throw new IllegalArgumentException("Illegal Axes: "+axis0+", "+axis1+", "+axis2); } // swap shape int[] shape = shape(); this.slices = shape[axis0]; this.rows = shape[axis1]; this.columns = shape[axis2]; // swap strides int[] strides = new int[3]; strides[0] = this.sliceStride; strides[1] = this.rowStride; strides[2] = this.columnStride; this.sliceStride = strides[axis0]; this.rowStride = strides[axis1]; this.columnStride = strides[axis2]; this.isNoView = false; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Dice upView() {\n char[] newSides = this.sides.clone();\n newSides[0] = this.sides[3];\n newSides[1] = this.sides[0];\n newSides[3] = this.sides[5];\n newSides[5] = this.sides[1];\n return new Dice(newSides);\n }", "private void showDice() {\n ...
[ "0.7149096", "0.70946443", "0.7040841", "0.70207775", "0.7015439", "0.6794629", "0.67822516", "0.67413634", "0.6630179", "0.65855056", "0.6582533", "0.6563488", "0.65614074", "0.6480801", "0.6470247", "0.6462925", "0.6385644", "0.63406235", "0.6318631", "0.6286012", "0.624255...
0.58612114
56
Self modifying version of viewPart().
protected AbstractMatrix3D vPart(int slice, int row, int column, int depth, int height, int width) { checkBox(slice,row,column,depth,height,width); this.sliceZero += this.sliceStride * slice; this.rowZero += this.rowStride * row; this.columnZero += this.columnStride * column; this.slices = depth; this.rows = height; this.columns = width; this.isNoView = false; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ViewComponentPart createViewComponentPart();", "@Override\n\t\t\t\t\tpublic void partVisible(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected String getView() {\n\t\treturn OBSView....
[ "0.66527843", "0.6474049", "0.646978", "0.63926625", "0.63732594", "0.6372702", "0.61856705", "0.6132439", "0.605621", "0.5873801", "0.58639383", "0.58303064", "0.5787393", "0.56744254", "0.566384", "0.566384", "0.56186", "0.55910444", "0.5589227", "0.55829525", "0.5579839", ...
0.57729864
13
Self modifying version of viewRowFlip().
protected AbstractMatrix3D vRowFlip() { if (rows>0) { rowZero += (rows-1)*rowStride; rowStride = -rowStride; this.isNoView = false; } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnS...
[ "0.65429294", "0.64559734", "0.629881", "0.6264676", "0.62614113", "0.6237922", "0.6226867", "0.61546874", "0.6084075", "0.60455203", "0.59844893", "0.5969526", "0.5968614", "0.592884", "0.591585", "0.5910537", "0.5910537", "0.5910537", "0.5907707", "0.5903659", "0.58767325",...
0.7856775
0