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
Creates new form Estadistica
public Estadisticas() { initComponents(); llenar_tabla(); setCellRender(tbResult); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribu...
[ "0.66369236", "0.6632203", "0.6294881", "0.6183144", "0.6161786", "0.6148725", "0.6148138", "0.61345506", "0.610866", "0.6075481", "0.6037135", "0.59917593", "0.59841883", "0.5980374", "0.59727836", "0.59584916", "0.590683", "0.59053826", "0.5902857", "0.5900335", "0.5894067"...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); tbResult = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); jButton...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73201853", "0.7291607", "0.7291607", "0.7291607", "0.7285772", "0.7248832", "0.721371", "0.72083634", "0.71965843", "0.7190274", "0.71847606", "0.71592176", "0.71481156", "0.70935035", "0.70799935", "0.70570904", "0.6987588", "0.6977819", "0.69557554", "0.6953564", "0.6945...
0.0
-1
Created by Andrew on 17.08.2017.
public interface GitHubService { String BASE_URL = "https://api.github.com/"; String SEARCH_USERS = "search/users"; String GET_USER = "/users/{username}"; String GET_USER_REPOS = "/users/{username}/repos"; @GET(SEARCH_USERS) Observable<SearchResult> searchUsers(@Query("q") String query, @Query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void grabar() {\n\...
[ "0.5648486", "0.55824107", "0.55787665", "0.5564343", "0.5485983", "0.5476072", "0.5439622", "0.5434285", "0.5418019", "0.5399654", "0.5383864", "0.5350686", "0.53502166", "0.53502166", "0.5347847", "0.53121376", "0.5284861", "0.525657", "0.5255295", "0.5242737", "0.52395695"...
0.0
-1
TODO Autogenerated method stub
@Override public void update(Subject subject) { observerState = ((ConcreteSubject)subject).getSubjectState(); }
{ "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
Sends a number of messages over the last 5 days
public void generate(int messages) throws IOException, TemplateException, ExecutionException, InterruptedException { // Calculate messages sent per day if (messages % 5 != 0) { throw new IllegalArgumentException("Messages must be a multiple of 5"); } int messagesPerDay = mess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMessageCounterHistoryDayLimit();", "@Override\r\n public void run() {\n d5++;\r\n if (d5 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP5_EXPIRE});\r\n }\r\n\r\n ...
[ "0.624352", "0.5965701", "0.59542716", "0.5908412", "0.5634527", "0.5626417", "0.5577251", "0.5554221", "0.5518447", "0.5499255", "0.5497783", "0.5430998", "0.54149175", "0.5413031", "0.5383724", "0.53755957", "0.53633803", "0.53156126", "0.5299498", "0.529786", "0.52928025",...
0.5749656
4
Crea un objeto para poder inflarse el layout
@Override public View getView(final int position, View convertView, ViewGroup parent) { LayoutInflater inflater = LayoutInflater.from(getContext()); View item = inflater.inflate(R.layout.lista_template, null); //Define los objetos que se encuentran en el layout TextView articulo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Layout() {\n }", "public LayoutCampo() {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // in...
[ "0.739026", "0.65792286", "0.651356", "0.64693767", "0.6447906", "0.6409196", "0.6335053", "0.6327599", "0.62977165", "0.62836033", "0.61887395", "0.6186909", "0.61592287", "0.6146448", "0.6143086", "0.6128864", "0.6117142", "0.61054856", "0.60963494", "0.60679543", "0.605621...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static StepViewFragment newInstance(String param1, String param2) { StepViewFragment fragment = new StepViewFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.72587806", "0.72315", "0.71128035", "0.6989915", "0.69888663", "0.68323874", "0.68284166", "0.6811231", "0.6799868", "0.6799074", "0.6764381", "0.6738079", "0.6738079", "0.67268246", "0.6715347", "0.67061615", "0.6690773", "0.6689529", "0.6687659", "0.6661806", "0.6644326"...
0.0
-1
Recover player status if any:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Log.d("StepViewFragment", "onCreateView: "+"lifecycle"); if (savedInstanceState != null) { recoveredPlayerState = savedInstanceState.getBoolean(PLAYE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStat...
[ "0.6521892", "0.6255471", "0.61301273", "0.60703826", "0.6020031", "0.60124946", "0.59916097", "0.5985798", "0.59606826", "0.59471035", "0.59276074", "0.5926344", "0.5872361", "0.5858654", "0.5835673", "0.58207446", "0.5793049", "0.5789794", "0.57872885", "0.578062", "0.57772...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnStepViewFragmentInteractionListener { void onStepViewFragmentInteraction(int position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7325317", "0.7209285", "0.7136769", "0.7125", "0.71222794", "0.7015571", "0.6976405", "0.6976405", "0.6976405", "0.69750535", "0.69684756", "0.696636", "0.69612736", "0.6954515", "0.694358", "0.6934953", "0.69307446", "0.6928857", "0.69236445", "0.69108784", "0.69035834", ...
0.0
-1
Sender Part for Random Number.
public void sendMessage(Channel queueChannel, int number) throws IOException, TimeoutException { // Queue Creation queueChannel.queueDeclare(QUEUE_NAME,false,false,false,null ); String message = Integer.toString(number); // Publish queueChannel.basicPublish("", QUEUE_NAME, n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ReactMethod\n public void sendRandom() {\n long maxPayloadLength = chirpConnect.maxPayloadLength();\n long size = (long) new Random().nextInt((int) maxPayloadLength) + 1;\n byte[] payload = chirpConnect.randomPayload((byte)size);\n\n ChirpError error = chirpConnect.send(payload);\n ...
[ "0.668708", "0.6310438", "0.61146194", "0.60389435", "0.6022113", "0.5997344", "0.598389", "0.59116894", "0.58925974", "0.5889141", "0.5889141", "0.5889141", "0.5889141", "0.5889141", "0.5889141", "0.5837818", "0.57822347", "0.57787997", "0.5753357", "0.5733932", "0.57248896"...
0.0
-1
/ renamed from: a
public final void mo12783a(String str) { Parcel z = mo11432z(); z.writeString(str); mo11430b(3, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
this properties are necessary for RMI servers to work in some cases: if we are behind a firewall, if the network connection is lost, etc. do not use domain or http address for server
public static void setupRMI(final boolean localHostOnly) { if (System.getProperty(SERVER_HOSTNAME) == null) { System.setProperty(SERVER_HOSTNAME, getLoopbackAddress()); } // do not use HTTP tunnelling System.setProperty("java.rmi.server.disableHttp", "true"); if (RMISocketFactory.getSocketFac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic String getRemoteAddr() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic String getRemoteAddr() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteAddr() {\n\t\treturn null;\n\t}", "abstract String getRemoteAddress();", "@Override\n\t\tpublic String getServerName() {\n\...
[ "0.66636866", "0.6472834", "0.6472834", "0.63417405", "0.62983274", "0.62930924", "0.6254589", "0.6254589", "0.6108059", "0.6108059", "0.6104624", "0.6078794", "0.6036845", "0.59859633", "0.59730536", "0.5964413", "0.5949122", "0.5914943", "0.5856569", "0.5852503", "0.5846941...
0.5627705
44
Method to find the entity by id
@Override public User findById(long id) { return dao.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T findEntityById(int id);", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}", "public <T> T find(Class<T> entityClass, String id);", "public Data findById(O...
[ "0.82636124", "0.81628335", "0.8124228", "0.797653", "0.7934822", "0.7921904", "0.7864384", "0.7836568", "0.7796942", "0.7788039", "0.7750229", "0.77295035", "0.771545", "0.7691714", "0.7689499", "0.7669575", "0.76544935", "0.7653709", "0.7643963", "0.7643443", "0.76255405", ...
0.71806747
63
Method to find all entities
@Override public List<User> findAll() { return dao.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public List<Entity> getAll() {\n return entities;\n }", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public List<T> findAll() ...
[ "0.7938595", "0.78225654", "0.76757896", "0.7538408", "0.7533446", "0.75178546", "0.75178546", "0.75178546", "0.75073415", "0.75073415", "0.75073415", "0.74943805", "0.74501735", "0.74009836", "0.73812884", "0.7357064", "0.7337687", "0.7312903", "0.72954166", "0.72791713", "0...
0.0
-1
Method to create a new entity
@Override public User create(User user) { user.setPassword(bCryptPasswordEncoder.encode(user.getPassword())); if (user.getCreateDate() == null) { DateTime dt = new DateTime(); user.setCreateDate(dt.toDate()); } user.setEnabled(true); user.setRoleList(C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "E create(E entity);", "E create(E entity);", "void create(E entity);", "void create(T entity);", "T createEntity();", "void create(T entity) throws Exception;", "ID create(T entity);", "protected abstract ENTITY createEntity();", "void create(Student entity);", "E crea...
[ "0.85135114", "0.82351726", "0.82351726", "0.8150021", "0.81310135", "0.8119632", "0.7941307", "0.7741591", "0.7655536", "0.7611288", "0.7434545", "0.7422652", "0.741168", "0.73947036", "0.73698276", "0.7137704", "0.71230656", "0.710186", "0.70967567", "0.706208", "0.70306534...
0.0
-1
Method to update the entity in the database
@Override public User update(User user) { return dao.update(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "E update(E entity);", "E update(E entity);", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "public void update(IEntity entity) throws SQLException;", "public void update(E entity);", "@Override\n public void update(T entity) t...
[ "0.85752547", "0.80687916", "0.80687916", "0.788009", "0.7861244", "0.7853396", "0.7711255", "0.7699181", "0.7683957", "0.7667313", "0.7667313", "0.76414967", "0.7600958", "0.7598136", "0.7586006", "0.7555278", "0.7548343", "0.754747", "0.7493066", "0.74376273", "0.7414969", ...
0.0
-1
Method to delete a entity in the database
@Override public void delete(User user) { dao.delete(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(Entity entity);", "void deleteEntityById(Long id);", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx...
[ "0.8472761", "0.82878", "0.82761574", "0.8246246", "0.8246246", "0.82254535", "0.82212484", "0.8162003", "0.8124873", "0.8124873", "0.80558455", "0.80549675", "0.8034973", "0.8007449", "0.79549897", "0.78636754", "0.7859266", "0.7858444", "0.78461695", "0.7819604", "0.7819604...
0.0
-1
Method to delete a entity in the database by id
@Override public void deleteById(long id) { dao.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteEntityById(Long id);", "ApiResponse deleteEntityById(Integer id);", "void delete(int entityId);", "public void deleteById(Long id);", "public void deleteById(String id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", ...
[ "0.9041985", "0.85871005", "0.8479906", "0.83722323", "0.8330354", "0.83228236", "0.83228236", "0.83228236", "0.83228236", "0.8291865", "0.8291865", "0.8275626", "0.8264578", "0.8264578", "0.8264578", "0.8264578", "0.8264578", "0.8255627", "0.8255627", "0.8255627", "0.8255627...
0.0
-1
total of gifts in the list Creates a new GiftHashTable
public GiftHashTable(int capacity) { GiftList = new HashTableMap<>(capacity); names = new LinkedList<>(); totalCost = 0; totalGifts = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public int getTotalGifts() {\r\n return totalGifts;\r\n }", "public void createTotalTable() {\r\n totalTable = new HashMap<>();\r\n //cr...
[ "0.7719283", "0.5931372", "0.5903166", "0.58739835", "0.55844307", "0.5547747", "0.55103415", "0.54824847", "0.5431765", "0.54312944", "0.5386244", "0.5383451", "0.52928007", "0.5290842", "0.5290528", "0.52596617", "0.52397776", "0.5222317", "0.52184165", "0.51876837", "0.517...
0.69036585
1
Creates a new GiftHashTable
public GiftHashTable() { GiftList = new HashTableMap<>(20); names = new LinkedList<>(); totalCost = 0; totalGifts = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftHashTable(int capacity) {\r\n GiftList = new HashTableMap<>(capacity);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "HashTable() {\n int trueTableSize = nextPrime(tableSize);\n HT = new FlightDetails[nextPrime(trueTableSize)];\n }", "pu...
[ "0.7258214", "0.7216203", "0.71241194", "0.6849579", "0.6772076", "0.67095447", "0.6634004", "0.6583669", "0.6538716", "0.6472147", "0.6369358", "0.6318961", "0.62854326", "0.62263227", "0.62173045", "0.62139493", "0.6204179", "0.6170518", "0.6124129", "0.60812145", "0.607434...
0.81127
0
Adds a gift to the hashtable and linkedlist only if no other gift with this name is in the table
public boolean addGift(Gift gift) { boolean added = GiftList.put(gift.getName(), gift); // Can the gift be put in the map? if(added) { //If yes, track a few values double cost = gift.getCost(); String name = gift.getName(); // Update counters, including linked list this.tota...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public boolean containsGift(Gift gift) {\r\n return GiftList.containsKey(gift.getName());\r\n }", "public Gift getGift(Gift gift) {\r\n if(contains...
[ "0.6224295", "0.6092247", "0.5765081", "0.5723666", "0.5620943", "0.55194336", "0.54943824", "0.54279244", "0.5418443", "0.53980476", "0.53898335", "0.5389366", "0.53693694", "0.5363527", "0.5327393", "0.5301965", "0.5279481", "0.5272358", "0.52672935", "0.52569205", "0.51913...
0.74471164
0
Checks hash table for a gift with the same name
public boolean containsGift(Gift gift) { return GiftList.containsKey(gift.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHash();", "@Override\n public int hashCode() {\n return Objects.hash(name);\n }", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "@Override\r\n public int hashCode() {\r\n int hash = Objects.hashCode(name);\r\n return hash;\r\n }", "pub...
[ "0.5685262", "0.563258", "0.55698246", "0.55329037", "0.55242246", "0.55082387", "0.54699105", "0.54466337", "0.54380035", "0.54335886", "0.5411855", "0.5386651", "0.5380289", "0.5362703", "0.53383857", "0.53167206", "0.53167206", "0.5315019", "0.531391", "0.5305194", "0.5290...
0.60026586
0
Gets a gift from the hash table
public Gift getGift(Gift gift) { if(containsGift(gift)) { return GiftList.get(gift.getName()); } else { throw new java.util.NoSuchElementException("A gift with this name could not be found"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Gift getGift(Long id) {\n\t\treturn mGiftDatabase.get(id);\n\t}", "public Gift getGift(String name) {\r\n return GiftList.get(name);\r\n }", "public ItemStack getGift(UUID id) {\n for(UUID i : pairedPlayers.keySet()) {\n SecretSanta._this().logDebug(\"[GiftManager] Tes...
[ "0.65714145", "0.65665406", "0.6107111", "0.59621406", "0.5713225", "0.55610734", "0.5494374", "0.5457706", "0.54517835", "0.54394805", "0.5431143", "0.53467375", "0.5304815", "0.5301805", "0.5286562", "0.52499914", "0.52465963", "0.5228931", "0.52208537", "0.517581", "0.5089...
0.68009686
0
Gets a gift from the hash table.
public Gift getGift(String name) { return GiftList.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Gift getGift(Gift gift) {\r\n if(containsGift(gift)) {\r\n return GiftList.get(gift.getName());\r\n }\r\n else {\r\n throw new java.util.NoSuchElementException(\"A gift with this name could not be found\");\r\n }\r\n }", "@Override\n\tpublic Gift getGift(Long id) {\n\t\treturn mGift...
[ "0.69257694", "0.6815922", "0.6162031", "0.57760257", "0.5740962", "0.5591537", "0.54913336", "0.5476005", "0.5409609", "0.5286477", "0.52763253", "0.5276258", "0.5250684", "0.5230805", "0.51799655", "0.5173703", "0.5166353", "0.51657826", "0.51263654", "0.50884366", "0.50788...
0.6678946
2
Clears the hash table and resets counters and linked list
public void clear() { GiftList.clear(); names = new LinkedList<>(); totalGifts = 0; totalCost = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public void clear() {\r\n size = 0;\r...
[ "0.8186462", "0.79813623", "0.77147543", "0.7687892", "0.7565954", "0.7551034", "0.75370306", "0.7506954", "0.749373", "0.74696773", "0.74575794", "0.7382884", "0.7309019", "0.7284938", "0.71957284", "0.71762633", "0.7167634", "0.71639335", "0.71455216", "0.71429276", "0.7101...
0.65920043
84
Creates a String representation of the GiftHashTable
public String toString() { String result = ""; //Check for empty list if(names.getFirst() == null) { return "The Gift List is empty"; } //Iterates through each type of key in the list for(int i = 0; i < names.size(); i++) { String item = names.get(i); //Retrieve item ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\tString HashTable=\"\";\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tHashTable=HashTable+k.value+\" \"+k.key+\"\\n\";\n\t }\n\t}\n\treturn HashTable;\n }", "public String toString (){\n\t\tint max = hashTableSize - 1;\n\t\tStringBuffer buf = new S...
[ "0.7615995", "0.7055716", "0.67134064", "0.6656034", "0.65679485", "0.6339939", "0.6303847", "0.6299558", "0.62931365", "0.6292599", "0.62915236", "0.6264173", "0.625473", "0.6254451", "0.6247168", "0.6240411", "0.62243074", "0.62119764", "0.62097806", "0.62058496", "0.619587...
0.6157615
25
Getter method for this.names
public LinkedList<String> getNames() { return names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getNames() {\n return names;\n }", "public ArrayList<String> getNames() {\n return names;\n }", "public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\tou...
[ "0.7799061", "0.7672959", "0.7654524", "0.76445514", "0.75125587", "0.7491906", "0.74770004", "0.7442913", "0.7429644", "0.7399613", "0.732696", "0.73142105", "0.72619957", "0.7243485", "0.7151282", "0.7106926", "0.7051", "0.7026719", "0.6996284", "0.6989323", "0.6966279", ...
0.7861
0
Getter method for this.getTotalCost
public double getTotalCost() { return totalCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getTotalCost() {\n return this.totalCost;\n }", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public double getTotal() {\n return totalCost;\n }", "public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}", "public String getTotalCost() {\n ...
[ "0.8835662", "0.87088805", "0.86829084", "0.86819255", "0.8578092", "0.85465354", "0.8526311", "0.85243034", "0.8519983", "0.8518225", "0.84916145", "0.84813815", "0.84813815", "0.84744316", "0.8473721", "0.84687895", "0.8455954", "0.8455954", "0.8434243", "0.8430465", "0.842...
0.88768697
0
Getter method for this.getTotalGifts
public int getTotalGifts() { return totalGifts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getShiftsAmount() {\n return shiftsAmount;\n }", "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public int getCalories() {\n return this.calories += ((this.protein * 4) + (this.carbohydrates * 4) + (this.fats * 9));\n }", "public double totalHour...
[ "0.7523494", "0.6061656", "0.6055731", "0.59939796", "0.59843636", "0.5957462", "0.59378064", "0.5896065", "0.5888337", "0.58850753", "0.5864277", "0.58513504", "0.582193", "0.5816496", "0.57880515", "0.573524", "0.56965214", "0.5693994", "0.5689878", "0.5686287", "0.5674526"...
0.8499593
0
Checks if the table is empty
public boolean isEmpty() { return totalGifts == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean fempty() {\n return table.isEmpty( ); // return if table is empty\n }", "public boolean isEmptyTable() {\r\n return emptyTable;\r\n }", "@Override\n public boolean isEmpty() throws DaoException {\n return isEmpty(TABLE_NAME);\n }", "public boolean ...
[ "0.8191626", "0.81613404", "0.8042709", "0.8035666", "0.7950587", "0.75940615", "0.7487544", "0.74472684", "0.7259833", "0.725634", "0.7226234", "0.71209455", "0.71172285", "0.7115046", "0.7112243", "0.6946711", "0.6796359", "0.6786917", "0.67758113", "0.67232406", "0.6721673...
0.0
-1
Creates a new instance of DefaultApplicationContextFactory
public MPSApplicationContextFactory() { this.encodingManager = new EncodingManager(); protocolBuilder = new NamedProtocolBuilder(); // Register the known protocols with the builder. ProtocolRegistry registry = new ProtocolRegistry(); registry.register(protocolBuilder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SpringApplicationContext() {}", "public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.x...
[ "0.6584147", "0.6367643", "0.62507933", "0.6069788", "0.5858274", "0.58389974", "0.581479", "0.5804183", "0.57425386", "0.5706187", "0.56686914", "0.56675816", "0.56211764", "0.562106", "0.5615565", "0.560974", "0.554896", "0.5537977", "0.55268055", "0.5520613", "0.5505719", ...
0.67404264
0
This method instantiates an application specific context.
public ApplicationContext createApplicationContext( MarinerRequestContext requestContext) throws RepositoryException { ApplicationContext applicationContext = null; // Get the Volantis bean. Volantis volantisBean = Volantis.getInstance(); if (volantisBean ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Context createContext();", "Context createContext();", "private AppContext()\n {\n }", "private ApplicationContext()\n\t{\n\t}", "public MyApp() {\n sContext = this;\n }", "public abstract ApplicationLoader.Context context();", "public abstract void makeContext();", "static Application ge...
[ "0.76927125", "0.76927125", "0.7285268", "0.71818733", "0.7100593", "0.70760447", "0.70141125", "0.7004534", "0.6992821", "0.6925383", "0.68389344", "0.6794148", "0.6757831", "0.6753599", "0.67324716", "0.6698112", "0.6698112", "0.667683", "0.66736716", "0.66729873", "0.66582...
0.60860133
56
The newly created application context. This method must be overridden to create an alternative application context.
protected abstract ApplicationContext createApplicationContextImpl( MarinerRequestContext requestContext);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Context createContext();", "Context createContext();", "public abstract void makeContext();", "public Object createContext(ApplicationRequest request,\n ApplicationResponse response);", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/...
[ "0.7192141", "0.7192141", "0.68095225", "0.6719266", "0.67123836", "0.6699053", "0.6696143", "0.6555037", "0.6523992", "0.64412224", "0.64091486", "0.63763523", "0.6343211", "0.6308092", "0.628246", "0.62216115", "0.62209946", "0.62153494", "0.6148563", "0.6148563", "0.614234...
0.68517405
2
Provide a template mechanism for subclasses to override the default initialization of this application context. This should typically be called after the application context has been created.
protected void initializeApplicationContext( MarinerRequestContext requestContext, Volantis volantisBean, ApplicationContext applicationContext, InternalDevice device) { VolantisProtocol protocol; String protocolName; String preferredMessageProtocol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n //...
[ "0.7074114", "0.70004475", "0.6920697", "0.6776728", "0.6776728", "0.67744094", "0.672227", "0.66701895", "0.66544956", "0.6634155", "0.6626779", "0.6621492", "0.6621492", "0.6609314", "0.65978837", "0.6596205", "0.6595911", "0.65846556", "0.6584075", "0.65736336", "0.6564529...
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 283, 353); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setTitle("Search"); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { e.printStackTrace();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL); shell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, "/com/yc/ui/1.jpg")); shell.setSize(436, 321); shell.setText("设置文字水印"); Label label_font = new Label(shell, SWT.NONE); label_font.setBounds...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAcc...
[ "0.7466458", "0.71222836", "0.7078501", "0.705914", "0.7038887", "0.69836694", "0.69679385", "0.68532664", "0.68156505", "0.68133014", "0.6804004", "0.67994684", "0.6797812", "0.67964184", "0.67905307", "0.67821527", "0.6770468", "0.6748968", "0.67205244", "0.6719345", "0.670...
0.6844874
8
Creates the dynamic suite for tests execution on Selenium Grid
public void createSuite(String gridProject, String suiteName, String includeCategory) throws IOException { fileNames =""; importStatements =""; String classesDetails[]; String classesNames; String classesImportStatements; classesDetails = getTestClassNames("../"+gridProject); classesNames = class...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Test createSuite()\n {\n //Let's discover what tests have been scheduled for execution.\n // (we expect a list of fully qualified test class names)\n String tests = System.getProperty(TEST_LIST_PROPERTY_NAME);\n if (tests == null || tests.trim().length() == 0)\n {\n ...
[ "0.6998086", "0.6625144", "0.6553405", "0.6439279", "0.6353656", "0.63236815", "0.6301455", "0.6259616", "0.6222044", "0.6151997", "0.61313295", "0.6113249", "0.6110756", "0.60313016", "0.6029955", "0.60130614", "0.5998508", "0.59971327", "0.5974936", "0.5945571", "0.59314036...
0.6485263
3
Reads the current directory and subdirectories and fetches the '.class' files with names starting with 'Test', ending with '.class' and does not contain '$' As this file will be called from build.xml in systemtests folder, it will fetch the class files from project folder (like 'systemtests') and its subdirectories
public String[] getTestClassNames(String directoryName) { File directory = new File(directoryName); File[] fList = directory.listFiles(); for (File file : fList){ if (file.isFile()){ if (file.getName().startsWith("Test") && file.getName().endsWith(".class") && !...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Class<?>[] findTestClasses(File testDir) throws ClassNotFoundException {\n\t\tList<File> testClassFiles = findFilesEndingWith(testDir, new String[] { \"Test.class\" });\n\t\tList<Class<?>> classes = convertToClasses(testClassFiles, testDir);\n\t\treturn classes.toArray(new Class[classes.size()]);\n\t...
[ "0.6484536", "0.64691836", "0.64363253", "0.61502075", "0.614478", "0.61429656", "0.6093261", "0.6049258", "0.6040761", "0.60085756", "0.5925774", "0.58653516", "0.5837389", "0.578483", "0.5764108", "0.57284653", "0.5707969", "0.5655841", "0.5655297", "0.5653421", "0.56519717...
0.6726424
0
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); if (is_resume) { is_resume = false; } else { // mHomeWatcher.stopWatch();// 在onPause中停止监听,不然会报错的。 Music.pause(mContext); } }
{ "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 protected void onResume() { super.onResume(); if (is_resume) { is_resume = false; } else { Music.restart(mContext); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by ShineYang on 16/4/18.
public interface DataInterface extends MvpView { void setPlusNumber(OperateNumber plus_number); void setMinusNumber(OperateNumber minus_number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.616813", "0.6017499", "0.6002517", "0.59350914", "0.5920269", "0.59147274", "0.59147274", "0.58325297", "0.5821516", "0.58169365", "0.5792804", "0.57867545", "0.57639796", "0.5763892", "0.5742257", "0.5733795", "0.570031", "0.5699116", "0.5692221", "0.568516", "0.5672063",...
0.0
-1
boolean detect(float x, float y);
boolean detect(Point p, MapLayer layer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public boolean contains(float x, float y);", "public boolean contains(float x, float y);", "public abstract boolean isHit(int x, int y);", "private static native boolean detectMulti_0(long nativeObj, long ...
[ "0.71460193", "0.6752755", "0.6752755", "0.66560644", "0.66275764", "0.626829", "0.61591715", "0.6085434", "0.605729", "0.60112786", "0.59822553", "0.5977868", "0.5975022", "0.59627944", "0.5934835", "0.59127986", "0.5891345", "0.5878168", "0.58388203", "0.5835088", "0.581976...
0.782997
0
TODO: Implement launch billing flow here
public void startPurchaseFlow(String skuId, String billingType) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BillingSource billingSource();", "public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\...
[ "0.6869423", "0.67692155", "0.6661415", "0.6321369", "0.63056755", "0.6293799", "0.6278106", "0.6204874", "0.6143653", "0.6143653", "0.60315627", "0.59464806", "0.5946099", "0.5920718", "0.5901486", "0.590023", "0.58736837", "0.5841071", "0.5779072", "0.5751599", "0.568679", ...
0.6430009
3
I can test my class here: create instances and call the method(s), check the results TODO
public static void main(String[] args) { int [] t = {0}; Tools n = new Tools(); int [] j = n.sortBubble(t); for(int i : j) System.out.println(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void instanceTest() {\n // TODO: test instance\n }", "@Test\n public void testGetInstance() {\n System.out.println(\"getInstance\");\n Fabrica expResult = Fabrica.getInstance();\n Fabrica result = Fabrica.getInstance();\n assertEquals(expResult, result);...
[ "0.67274314", "0.6470319", "0.6453602", "0.6428449", "0.64185953", "0.63462394", "0.6275549", "0.627126", "0.61418265", "0.6110173", "0.6060616", "0.60383654", "0.60161084", "0.6012192", "0.5998568", "0.5976871", "0.59724855", "0.5950261", "0.59380114", "0.59284145", "0.59254...
0.0
-1
Created by kamkalet on 11.07.2017.
public interface IUserService { }
{ "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.5996547", "0.5922675", "0.5789114", "0.56752497", "0.5672981", "0.5672981", "0.5622837", "0.5617044", "0.5612971", "0.5611177", "0.5587672", "0.5576023", "0.5569173", "0.5567066", "0.5550559", "0.5550559", "0.5550559", "0.5550559", "0.5550559", "0.5550559", "0.55389667", ...
0.0
-1
Returns true if list is empty
public boolean isEmpty() { return first == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "@Override\n\tpublic boolean isEmpty() ...
[ "0.89912534", "0.8978807", "0.88197666", "0.88101035", "0.88101035", "0.88014936", "0.87930673", "0.87509984", "0.87332684", "0.8712839", "0.8697939", "0.862949", "0.85962135", "0.8587294", "0.8536125", "0.8420122", "0.8415568", "0.8386852", "0.8367454", "0.83671325", "0.8323...
0.0
-1
Inserts a new Link at the first of the list
public void insertatFirst(String bookName) { Node2 link = new Node2(bookName); if(size() == 0) { //make it the last link //System.out.println("I got there once"); last = link; } link.nextLink = first; link.prevLink = null; first = link; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean insertLink(Link link);", "public Link add(Link link);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "@Override\n public void insertFirst(E...
[ "0.7016834", "0.6834393", "0.6833383", "0.67790246", "0.67317873", "0.6705471", "0.6667385", "0.6599536", "0.65090007", "0.6507372", "0.6473829", "0.6473732", "0.6469118", "0.6460718", "0.64589417", "0.64191353", "0.64113194", "0.6387052", "0.6383416", "0.6369727", "0.6348013...
0.6796557
3
Inserts a new Link at the first of the list
public void append(String bookName) { Node2 link = new Node2(bookName); link.prevLink = last; link.nextLink = null; last.nextLink = link; last = link; //System.out.println("No"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean insertLink(Link link);", "public Link add(Link link);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "public void insertatFirst(String bookNam...
[ "0.7014148", "0.68339044", "0.6831776", "0.67960405", "0.6778779", "0.6731958", "0.6705564", "0.6667093", "0.6600285", "0.6509104", "0.65080357", "0.6474644", "0.64735883", "0.64689755", "0.6459685", "0.6457226", "0.64194375", "0.6410499", "0.6386999", "0.6383718", "0.6370612...
0.0
-1
return the position of obj
public int find(String bookName) { Node2 currentLink = first; int pos=1; while(currentLink.printLink() != bookName && currentLink.nextLink != null){ currentLink = currentLink.nextLink; pos++; } if(currentLink.printLink() != bookName) return -1; else return pos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPosition();", "public int getPos();", "public int getPos();", "public Integer getPosition();", "public int getPosition(){\n return -1;\n }", "public int getPosition();", "public int position() {\n return pos;\n }", "public int getPos()\n {\n return pos;...
[ "0.7757267", "0.7547152", "0.7547152", "0.7522977", "0.739972", "0.7351324", "0.7290403", "0.7278607", "0.7272492", "0.7235321", "0.7200629", "0.7190026", "0.71790385", "0.71347374", "0.71264476", "0.71166384", "0.7084573", "0.70726305", "0.7067312", "0.706376", "0.705011", ...
0.0
-1
Deletes the link at the first of the list
public Node2 delete() { Node2 temp = first; first = first.nextLink; first.nextLink.prevLink = null; return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteFirst() {\r\n\t\tif(isEmpty()) return;\r\n\t\thead = head.next;\r\n\t}", "private void deleteFirstNode() {\n if (head == null) {\n return;\n }\n ListNode current = head;\n current = current.next;\n head.next = null;\n head = current;\n }",...
[ "0.7531643", "0.73992974", "0.7311138", "0.7307907", "0.726568", "0.72179717", "0.72015256", "0.7174518", "0.7074039", "0.7058906", "0.70344925", "0.6993819", "0.6971636", "0.69261146", "0.6887551", "0.68593174", "0.679275", "0.67888457", "0.6782668", "0.6753214", "0.6743108"...
0.67539823
19
Deletes the link from position
public void remove(int pos) { Node2 currentLink = first; Node2 tempPrevLink = null; int temp=1; while(temp++ != pos) { tempPrevLink = currentLink; currentLink = currentLink.nextLink; } currentLink.nextLink.prevLink = tempPrevLink; tempPrevLink.nextLink = currentLink....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int delLink(Link link) {\n\t\treturn 0;\n\t}", "public void deleteAtPos(int pos)\n\n { \n\n if (pos == 1) \n\n {\n\n if (size == 1)\n\n {\n\n start = null;\n\n end = null;\n\n size = 0;\n\n ...
[ "0.75399125", "0.7189393", "0.7069619", "0.70640707", "0.6919428", "0.6789999", "0.6748285", "0.6686623", "0.66543967", "0.65909714", "0.6567793", "0.6516091", "0.6499184", "0.6453175", "0.6453175", "0.6453175", "0.64526427", "0.64481634", "0.6394022", "0.63402164", "0.631318...
0.63505775
19
Create the unmarshaller using the binding factory for the "target class". This method can only be used with target classes that are mapped in only one binding. Note that there is no restriction on the "payload class" being the same as the target class. The only restriction is that the binding factory for the target cla...
public UnmarshallingPayloadReader(Class clazz) throws WsBindingException { IBindingFactory factory; try { factory = BindingDirectory.getFactory(clazz); } catch (JiBXException e) { throw new WsBindingException("Error accessing binding.", e); } m_unmarshall...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object createBeanMatchingType(MappingContext mappingContext) {\n // clazz is never null given the only path that leads to this method already performs that check\n final Class<?> clazz = mappingContext.getTypeInformation().getSafeToWriteClass();\n try {\n return clazz.getD...
[ "0.4859058", "0.48313183", "0.48031014", "0.47892678", "0.47192442", "0.47046238", "0.46706286", "0.4599081", "0.45973128", "0.45274138", "0.4483412", "0.44707048", "0.44389993", "0.44007862", "0.43510953", "0.43474978", "0.4340973", "0.4333319", "0.43319067", "0.43080676", "...
0.5616056
0
Create the unmarshaller using the specified binding factory.
public UnmarshallingPayloadReader(IBindingFactory factory) throws WsBindingException { m_unmarshallCtx = createUnmarshallingContext(factory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Unmarshaller getUnmarshaller(boolean reuse)\n throws JAXBException {\n if (!reuse || unmarshaller == null) {\n unmarshaller = context.createUnmarshaller();\n }\n return unmarshaller;\n }", "public abstract DeserializerFactory withConfig(DeserializerFactoryConfig deserializerFactoryConfig...
[ "0.5156477", "0.50349855", "0.5014442", "0.4800872", "0.47903168", "0.47618783", "0.47236815", "0.4693138", "0.46461067", "0.46197256", "0.4618896", "0.45943344", "0.4542591", "0.45194808", "0.4478962", "0.44379264", "0.44355378", "0.44269538", "0.44190097", "0.43956074", "0....
0.59680164
0
create instance with all properties
@JsonCreator ReviewImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, @JsonProperty("lastModifiedB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Propuestas() {}", "public ApplicationDefinitionProperties() {\n }", "public Properties(){\n\n }", "public void init(Properties props) ;", "public void create(){}", "Reproducible newInstance();", "Instance createInstance();", "public KeyVaultProperties() {\n }", "WithCreate w...
[ "0.64911973", "0.6378136", "0.631929", "0.62863666", "0.62066835", "0.6193014", "0.61226624", "0.60918266", "0.6069426", "0.60472083", "0.5982922", "0.5977635", "0.59640384", "0.5961222", "0.5942377", "0.593724", "0.59352934", "0.593339", "0.59292704", "0.5925449", "0.5890089...
0.0
-1
Unique identifier of the Review.
public String getId() { return this.id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "public...
[ "0.7537603", "0.73462284", "0.7186717", "0.7170907", "0.71455437", "0.6369123", "0.6253609", "0.6247851", "0.6204468", "0.6187535", "0.6163618", "0.61278677", "0.612765", "0.6126179", "0.61106044", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902...
0.0
-1
Current version of the Review.
public Long getVersion() { return this.version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurrentVersion() {\n return currentVersion_;\n }", "public String getCurrentVersion() {\n return this.currentVersion;\n }", "public int getCurrentVersion() {\n return currentVersion_;\n }", "int getCurrentVersion();", "public String getVersion();", "public Stri...
[ "0.7445403", "0.74130875", "0.7400392", "0.7374079", "0.7033043", "0.7033043", "0.7033043", "0.7033043", "0.70213866", "0.69992495", "0.6998682", "0.6997185", "0.6981731", "0.6981731", "0.6977292", "0.6954011", "0.6950716", "0.69378084", "0.69376385", "0.6932098", "0.69313025...
0.0
-1
Date and time (UTC) the Review was initially created.
public java.time.ZonedDateTime getCreatedAt() { return this.createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public int getCreatedTime() {\n ...
[ "0.7212128", "0.7204959", "0.7018448", "0.7018448", "0.68792474", "0.6868108", "0.6868108", "0.6846818", "0.6846818", "0.68370485", "0.68370485", "0.68370485", "0.6811986", "0.6806891", "0.6806891", "0.6806891", "0.6806891", "0.68038094", "0.68038094", "0.6800448", "0.6800448...
0.0
-1
Date and time (UTC) the Review was last updated.
public java.time.ZonedDateTime getLastModifiedAt() { return this.lastModifiedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdateTime()\n {\n return data.updateTime;\n }", "public Date getTimeUpd...
[ "0.73754376", "0.7245454", "0.7245454", "0.7134046", "0.7114463", "0.7098954", "0.7097773", "0.7097773", "0.7097773", "0.70818174", "0.7016941", "0.69790167", "0.69790167", "0.69770294", "0.6972813", "0.6964625", "0.69286424", "0.6915718", "0.69149876", "0.69098055", "0.69098...
0.0
-1
Present on resources created after 1 February 2019 except for events not tracked.
public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { return this.lastModifiedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n ...
[ "0.5471755", "0.54024285", "0.5343594", "0.52927154", "0.52118397", "0.5133571", "0.51209664", "0.51038027", "0.5088717", "0.50848913", "0.50561994", "0.5046911", "0.5022705", "0.5013186", "0.50028527", "0.49890834", "0.49741238", "0.49613267", "0.492853", "0.49241662", "0.49...
0.0
-1
Present on resources created after 1 February 2019 except for events not tracked.
public com.commercetools.api.models.common.CreatedBy getCreatedBy() { return this.createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n ...
[ "0.5471904", "0.5402169", "0.53441733", "0.52945495", "0.5210954", "0.51345336", "0.5120131", "0.5104203", "0.50905865", "0.50864434", "0.505593", "0.50456303", "0.5022047", "0.50141174", "0.5002711", "0.4990184", "0.49723974", "0.49618804", "0.4928682", "0.49235797", "0.4922...
0.0
-1
Userdefined unique identifier of the Review.
public String getKey() { return this.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "public...
[ "0.7630444", "0.7087628", "0.7084734", "0.69617903", "0.6920204", "0.6403198", "0.62350106", "0.61710703", "0.6091141", "0.606979", "0.6045115", "0.60377026", "0.59990025", "0.5982668", "0.598", "0.5972977", "0.59518003", "0.5943526", "0.59128094", "0.59128094", "0.59128094",...
0.0
-1
Must be unique among Reviews. For example, if this value is set to Customer id&nbsp;+ Product id, only one Review per Customer and per Product is allowed.
public String getUniquenessValue() { return this.uniquenessValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "@objid...
[ "0.5891075", "0.5561872", "0.55119985", "0.53885937", "0.52667755", "0.5223725", "0.5220809", "0.52040285", "0.5182417", "0.5169814", "0.5167875", "0.51653355", "0.51009804", "0.5073665", "0.50062126", "0.49720538", "0.4936011", "0.49309832", "0.4888614", "0.4872263", "0.4859...
0.0
-1
Language in which the content of the Review is written.
public String getLocale() { return this.locale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLanguage();", "java.lang.String getLanguage();", "String getLanguage();", "String getLanguage();", "String getLanguage();", "public String getLanguage();", "public Object language() {\n return this.language;\n }", "CLanguage getClanguage();", "String getLang();", "@O...
[ "0.7494302", "0.7494302", "0.73746693", "0.73746693", "0.73746693", "0.7338278", "0.7181001", "0.7113608", "0.70672876", "0.7056853", "0.696731", "0.6884503", "0.6847113", "0.6836476", "0.6823378", "0.68170756", "0.68170756", "0.6801259", "0.6800132", "0.6782883", "0.67806655...
0.0
-1
Name of the author.
public String getAuthorName() { return this.authorName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return mAuthorName;\n }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "public String getA...
[ "0.8647248", "0.8647248", "0.84674", "0.84214926", "0.82505655", "0.8214729", "0.8214422", "0.81705415", "0.81068885", "0.80757755", "0.8057745", "0.80305576", "0.79773873", "0.7967369", "0.79397154", "0.7938078", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.791...
0.8647825
0
Title of the Review.
public String getTitle() { return this.title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n String getTitle();", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _scienceApp.getTitle();\n\t}", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public String getTitle()\r\n\t{\r\n\t\treturn T...
[ "0.7560088", "0.75534487", "0.75297314", "0.75177383", "0.75016093", "0.74994606", "0.74994606", "0.7482387", "0.7480349", "0.7473551", "0.74695116", "0.74695116", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74685645", ...
0.0
-1
Content of the Review.
public String getText() { return this.text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReviewText() {\n\t\treturn this.reviewText;\n\t}", "public String getReviewText() {\n\t\treturn reviewText;\n\t}", "public String toString() {\n return review;\n }", "@java.lang.Override\n public com.google.cloud.recommender.v1.RecommendationContent getContent() {\n return cont...
[ "0.68847024", "0.6815954", "0.6780946", "0.66379654", "0.6632764", "0.6632764", "0.6629375", "0.6629375", "0.6624624", "0.6624624", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", ...
0.0
-1
A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded...
public com.commercetools.api.models.common.Reference getTarget() { return this.target; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IDatatype getReference() { \n\t\treturn myReference;\n\t}", "int getReferenceKind();", "public void setTypeId(final ReferenceTypeId typeId);", "public void setReferenceId(String refid) {\n this.refid = refid;\n }", "public void setRefId(String refId) {\n this.refId = refId;\n }", "H...
[ "0.6334168", "0.6214021", "0.6194556", "0.61843944", "0.6087203", "0.6052573", "0.60343844", "0.6021186", "0.5953315", "0.59147835", "0.59090734", "0.58817774", "0.5880409", "0.5869577", "0.5860991", "0.5845589", "0.58404785", "0.584023", "0.5825403", "0.5816867", "0.5773604"...
0.0
-1
Indicates if this Review is taken into account in the ratings statistics of the target. A Review is per default used in the statistics, unless the Review is in a state that does not have the role ReviewIncludedInStatistics. If the role of a State is modified after the calculation of this field, the calculation is not u...
public Boolean getIncludedInStatistics() { return this.includedInStatistics; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReviewRatingStatistics(final ReviewRatingStatistics reviewRatingStatistics);", "public com.commercetools.api.models.review.ReviewRatingStatistics getReviewRatingStatistics() {\n return this.reviewRatingStatistics;\n }", "public Boolean isReviewState() {\n return this.isReviewSta...
[ "0.60064703", "0.59447235", "0.5910263", "0.58080906", "0.5706148", "0.5387228", "0.53379613", "0.53107584", "0.52790904", "0.52707607", "0.5229754", "0.5198857", "0.5122988", "0.5100314", "0.5079171", "0.5072429", "0.50580597", "0.5052768", "0.5044891", "0.50447166", "0.5011...
0.5110602
13
Rating of the Product or Channel.
public Integer getRating() { return this.rating; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRating() {\n return rating_;\n }", "public double getRating() {\n return rating_;\n }", "public double getRating(){\n\t\treturn this.rating;\n\t}", "public double getRating() {\n\t\treturn rating;\n\t}", "double getRating();", "public float getRating() {\n\t\treturn r...
[ "0.73607504", "0.73018366", "0.72432035", "0.7193537", "0.7085065", "0.6975018", "0.69712645", "0.695418", "0.695418", "0.69118863", "0.68532634", "0.68436515", "0.6801705", "0.67809033", "0.6728522", "0.6698602", "0.6695836", "0.6672008", "0.66534865", "0.66257155", "0.65378...
0.71103156
4
State of the Review. Used for approval processes, see Review approval process for details.
public com.commercetools.api.models.state.StateReference getState() { return this.state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isReviewState() {\n return this.isReviewState;\n }", "public int getState() {return state;}", "public int getState() {return state;}", "public int getState();", "public int getState();", "public int getState();", "public int getState();", "public int getState(){\n\t\treturn s...
[ "0.72220147", "0.6560879", "0.6560879", "0.64617795", "0.64617795", "0.64617795", "0.64617795", "0.64466166", "0.64383334", "0.64383334", "0.64383334", "0.64383334", "0.64383334", "0.64383334", "0.6409871", "0.63999134", "0.63897145", "0.6388256", "0.6386092", "0.6386092", "0...
0.0
-1
Customer who created the Review.
public com.commercetools.api.models.customer.CustomerReference getCustomer() { return this.customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public String getCustomer() {\n return customer;\n }", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "public String getName()\n {\n return customer;\n }", "public String...
[ "0.65779036", "0.6553008", "0.6464237", "0.64350134", "0.64020836", "0.6375107", "0.6368767", "0.63455963", "0.63455963", "0.6332638", "0.63267666", "0.62881786", "0.62881786", "0.6274677", "0.6274677", "0.623866", "0.620746", "0.6196815", "0.614761", "0.6114229", "0.61134815...
0.0
-1
Custom Fields of the Review.
public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGT...
[ "0.61142695", "0.5760796", "0.5581292", "0.5578492", "0.5570104", "0.5561415", "0.5559678", "0.55476725", "0.55442834", "0.55300206", "0.5507962", "0.54558074", "0.5366789", "0.5362518", "0.5361038", "0.5334779", "0.5313518", "0.5310365", "0.53034407", "0.5296385", "0.5295000...
0.60495365
2
Wird vor dem Testen ausgefuehrt.
@Before public void setUp() throws Exception { rooms.add(room1); rooms1.add(room2); classes.add(class1); classes1.add(class2); newPersonTime.add(person2); newSubjects.add(sub2); teachu1.getSubjects().add(sub1); // Hinzufuegen von Klassen breaku1.setClasses(classes); externu1.setC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Override\n public void test() {\n \n }", "private void test() {\n\n\t}", "@Override\n public void runTest() {\n }", "@Override\n\tpublic void setTest() {\n\t}", "@Override\n\tpublic b...
[ "0.7437475", "0.6917685", "0.69011563", "0.67709875", "0.67431825", "0.66521615", "0.6611916", "0.6610991", "0.6472303", "0.6472303", "0.6407744", "0.63840485", "0.63756216", "0.63751525", "0.63715965", "0.63656545", "0.6352759", "0.6331275", "0.63016766", "0.6288152", "0.627...
0.0
-1
Testet, ob die Methode getId(), die richtige Id zurueckgibt
@Test public void testGetId() { assertEquals(1, breaku1.getId()); assertEquals(2, externu1.getId()); assertEquals(3, meetingu1.getId()); assertEquals(4, teachu1.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() {...
[ "0.79483", "0.78927046", "0.785638", "0.785638", "0.785638", "0.785638", "0.785638", "0.785638", "0.77991235", "0.77917635", "0.77774477", "0.7774578", "0.77712417", "0.77533937", "0.7745115", "0.773587", "0.7711182", "0.7710703", "0.7710703", "0.7710601", "0.77087873", "0....
0.0
-1
Testet, ob die Methode setId(), die Id richtig setzt
@Test public void testSetId() { breaku1.setId(5); externu1.setId(6); meetingu1.setId(7); teachu1.setId(8); assertEquals(5, breaku1.getId()); assertEquals(6, externu1.getId()); assertEquals(7, meetingu1.getId()); assertEquals(8, teachu1.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "@Override\n\tpublic void setId(Long id) {\n\t}", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id ...
[ "0.85402334", "0.85402334", "0.84267414", "0.8424219", "0.8400029", "0.8400029", "0.83918595", "0.83895713", "0.8388923", "0.8384012", "0.8345808", "0.83299655", "0.83299655", "0.83299655", "0.83299655", "0.83182955", "0.8310181", "0.8282949", "0.8282949", "0.8274375", "0.826...
0.0
-1
Testet, ob die Startzeit der Pause, mit der Startzeit, des Timeslots den wir den Konstruktor uebergeben haben uebereinstimmt.
@Test public void testGetStarttime() { assertTrue(breaku1.getStarttime().equals("08:00")); assertTrue(externu1.getStarttime().equals("08:00")); assertTrue(meetingu1.getStarttime().equals("08:00")); assertTrue(teachu1.getStarttime().equals("08:00")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}", "@Override\n public void pause() {\n }", "@Override\n public void Pause() {\n }", "@Override\n public void pause() {\n // Not used\n }", "@Override\r\n public void pause() {}", "@Override\n public...
[ "0.65391827", "0.6535443", "0.6522386", "0.6518998", "0.6496242", "0.64846414", "0.64846414", "0.64846414", "0.64846414", "0.64846414", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.64779735", "0.64779735", "0.64779735", "0.6466...
0.0
-1
Testet, ob die Dauer der Pause, mit der Dauer, des Timeslots den wir den Konstruktor uebergeben haben uebereinstimmt.
@Test public void testGetDuration() { assertEquals(90, breaku1.getDuration()); assertEquals(90, externu1.getDuration()); assertEquals(90, meetingu1.getDuration()); assertEquals(90, teachu1.getDuration()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void pause() {\n // Not used\n }", "@Override\n public void pause() {\n }", "@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}", "@Override\r\n public void pause() {}", "@Override\n public void pause() {\n }", "@Override\n public...
[ "0.64904505", "0.64864147", "0.6473691", "0.64480305", "0.6437505", "0.6437505", "0.6437505", "0.6437505", "0.6437505", "0.64344066", "0.6427265", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.6420012", "0.6420012", "0.64...
0.0
-1
Testet, ob der Timeslot der Pause, mit dem Wert, den wir den Konstruktor uebergeben haben uebereinstimmt
@Test public void testGetTimeslot() { assertEquals(time1, breaku1.getTimeslot()); assertEquals(time1, externu1.getTimeslot()); assertEquals(time1, meetingu1.getTimeslot()); assertEquals(time1, teachu1.getTimeslot()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void pause() {}", "@Override\n public void pause() {\n // Not used\n }", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic ...
[ "0.67362505", "0.67091036", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6682909", "0.6682909", "0.6682909", "0.6682909", "0.6682909", "0.66798145", "0.66798145", "0.66798145", "0.66698515", "0.6666757", "0.6658941", "0.6658941...
0.0
-1
Testet, ob das RaumSet der BreakingUnit, mit dem Set, das wir dem Konstruktor uebergeben haben uebereinstimmt.
@Test public void testGetRooms() { assertEquals(rooms, breaku1.getRooms()); assertEquals(rooms, externu1.getRooms()); assertEquals(rooms, meetingu1.getRooms()); assertEquals(rooms, teachu1.getRooms()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n ...
[ "0.5996185", "0.57997715", "0.5705461", "0.56524575", "0.56440485", "0.55696344", "0.5519443", "0.55127656", "0.5493064", "0.54852027", "0.54620534", "0.5448676", "0.5425293", "0.54246247", "0.5414934", "0.54137045", "0.5410321", "0.53887707", "0.538761", "0.5385382", "0.5383...
0.0
-1
Testet, ob ein gueltiges Set von Rauemen angenommen wird.
@Test public void testSetRooms() { breaku1.setRooms(rooms1); externu1.setRooms(rooms1); meetingu1.setRooms(rooms1); teachu1.setRooms(rooms1); assertEquals(rooms1, breaku1.getRooms()); assertEquals(rooms1, externu1.getRooms()); assertEquals(rooms1, meetingu1.getRooms()); assertEquals(rooms1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n ...
[ "0.69031084", "0.6897271", "0.66242665", "0.6521166", "0.65083456", "0.6423166", "0.6407382", "0.63377416", "0.6300464", "0.6289821", "0.62582195", "0.6206071", "0.6183218", "0.61704475", "0.6151411", "0.61260176", "0.60614485", "0.6040714", "0.6036281", "0.6030079", "0.60225...
0.0
-1
Testet, ob ein leeres Set von Raumen erlaubt ist.
@Test public void testSetRooms_Empty_NoIllegalArgumentException() { HashSet<Room> rooms = new HashSet<Room>(); teachu1.setRooms(rooms); assertTrue(teachu1.getRooms().size() == 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isCustomiseSet();", "protected Set<E> ensureSet()\n {\n Set<E> set = m_set;\n if (set == null)\n {\n set = m_set = new LiteSet<>();\n }\n return set;\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSe...
[ "0.6674411", "0.64872324", "0.64785045", "0.6379612", "0.635936", "0.6357281", "0.6325322", "0.6273187", "0.6193486", "0.61512625", "0.61220217", "0.61180395", "0.60964656", "0.60876465", "0.6084883", "0.60765326", "0.6061966", "0.6042195", "0.59827954", "0.59737253", "0.5964...
0.56407577
98
Testet, ob ein valider Timeslot angenommen wird.
@Test public void testSetTimeslot() { Timeslot t = new Timeslot(20, WEEKDAYS.MONDAY, "09", "00"); breaku1.setTimeslot(t); externu1.setTimeslot(t); meetingu1.setTimeslot(t); teachu1.setTimeslot(t); assertEquals(t, breaku1.getTimeslot()); assertEquals(t, externu1.getTimeslot()); assertEquals(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetTimeslot() {\r\n\t\tassertEquals(time1, breaku1.getTimeslot());\r\n\t\tassertEquals(time1, externu1.getTimeslot());\r\n\t\tassertEquals(time1, meetingu1.getTimeslot());\r\n\t\tassertEquals(time1, teachu1.getTimeslot());\r\n\t}", "public void setTime() {\r\n\t\tArrayList<String> slot...
[ "0.76546574", "0.6814888", "0.67507076", "0.62136364", "0.6190057", "0.615849", "0.61557144", "0.61481994", "0.614242", "0.61143684", "0.60745925", "0.6019952", "0.60037476", "0.592213", "0.5899754", "0.58631325", "0.5858302", "0.5838579", "0.5836727", "0.5804044", "0.5792295...
0.75959325
1
Testet, ob die Methode getClasses(), das richtige Set von Klassen zurueckgibt.
@Test public void testGetClasses() { assertTrue(breaku1.getClasses().contains(class1)); assertTrue(externu1.getClasses().contains(class1)); assertTrue(meetingu1.getClasses().contains(class1)); assertTrue(teachu1.getClasses().contains(class1)); assertEquals(classes, breaku1.getClasses()); assertEqu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetClasses() {\r\n\t\tbreaku1.setClasses(classes1);\r\n\t\texternu1.setClasses(classes1);\r\n\t\tmeetingu1.setClasses(classes1);\r\n\t\tteachu1.setClasses(classes1);\r\n\r\n\t\tassertTrue(breaku1.getClasses().contains(class2));\r\n\t\tassertTrue(externu1.getClasses().contains(class2));\r...
[ "0.7126845", "0.70885825", "0.7023687", "0.6936753", "0.68207353", "0.67807966", "0.6772946", "0.67682076", "0.6767098", "0.6646003", "0.663844", "0.66154087", "0.6605903", "0.65950495", "0.6580067", "0.65752083", "0.6532096", "0.65069157", "0.64293253", "0.6403301", "0.63632...
0.69349927
4
Testet, ob ein gueltiges Set von Klassen angenommen wird.
@Test public void testSetClasses() { breaku1.setClasses(classes1); externu1.setClasses(classes1); meetingu1.setClasses(classes1); teachu1.setClasses(classes1); assertTrue(breaku1.getClasses().contains(class2)); assertTrue(externu1.getClasses().contains(class2)); assertTrue(meetingu1.getClasses(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Set<String> classSet(String whichClass) {\n return subclasses.get(whichClass);\n }", "public <T> Set<T> mo31990d(Class<T> cls) {\n return (Set) mo32007c(cls).get();\n }", "public void testGetClasses() throws Exception {\n assertSetEquals(HasMemberClasses.class.getClasses(),\n...
[ "0.71214634", "0.64528567", "0.62230366", "0.6154181", "0.6084681", "0.6055141", "0.60380834", "0.60115856", "0.5998677", "0.5962628", "0.59478277", "0.5886698", "0.58789766", "0.5830579", "0.58288497", "0.57966924", "0.5794594", "0.5724048", "0.5720654", "0.57092166", "0.569...
0.6615127
1
Ueberprueft ob die Klasse enthalten ist.
@Test public void testContainsClass() { assertTrue(breaku1.containsClass(class1)); assertTrue(externu1.containsClass(class1)); assertTrue(meetingu1.containsClass(class1)); assertTrue(teachu1.containsClass(class1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClass_();", "Object getClass_();", "public void consulterClassement() {\n\t\t\n\t}", "default boolean isClass() {\n return false;\n }", "@Override\n protected void checkSubclass() {\n }", "public Classe() {\r\n }", "public OOP_207(){\n\n }", "public MijnKlasse()\r\n\t\t{\r\n\t\t\...
[ "0.75657463", "0.75657463", "0.6912129", "0.6575747", "0.65519", "0.647124", "0.64496136", "0.64470285", "0.63914734", "0.63584447", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", ...
0.0
-1
ExternUnit Testet, ob die Methode getTitle(), den Titel zurueckgibt.
@Test public void testGetTitleEU() { assertEquals("ExternUnit", externu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void titleTest() {\n // TODO: test title\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\n public vo...
[ "0.771582", "0.7569986", "0.75566196", "0.75515217", "0.7460001", "0.74457127", "0.7377818", "0.7343963", "0.73426783", "0.7278359", "0.72402173", "0.72354156", "0.7180702", "0.71781176", "0.7167029", "0.71430725", "0.71430725", "0.71430725", "0.71430725", "0.708504", "0.7029...
0.7387005
6
Testet, ob die Methode setTitle(), den Titel richtig setzt.
@Test public void testSetTitleEU() { externu1.setTitle("UnitExtern"); assertEquals("UnitExtern", externu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void setTitle();", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String t)\n {\n title = t;\n }", "public void setTitle(String title);", "public v...
[ "0.8464512", "0.84373087", "0.83917975", "0.8268956", "0.8268512", "0.8268512", "0.8268512", "0.8263147", "0.82472616", "0.82405764", "0.822263", "0.822263", "0.822263", "0.822263", "0.822263", "0.8105573", "0.808819", "0.7994693", "0.7985727", "0.79654884", "0.794239", "0....
0.0
-1
Testet, ob die Methode equals(), beim Vergleichen true zurueckgibt
@Test public void testEqualsEU() { ExternUnit externu2 = externu1.clone(); assertTrue(externu1.equals(externu2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Override\n\tpublic boolean equals(Object othe...
[ "0.81873083", "0.78291905", "0.7744933", "0.773949", "0.7730933", "0.77159107", "0.7654566", "0.7648517", "0.7643974", "0.7643974", "0.7643974", "0.7643974", "0.7643064", "0.7640806", "0.7579346", "0.7573811", "0.7556779", "0.7534883", "0.7524133", "0.7519195", "0.7515662", ...
0.0
-1
Testet, ob die Methode clone(), ein identisches Objekt erstellt.
@Test public void testCloneEU() { ExternUnit externu2 = externu1.clone(); assertTrue(externu1.equals(externu2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "@Override\n public Object clone() {\n try {\n return super.clo...
[ "0.78995377", "0.7785374", "0.74653435", "0.73998237", "0.73998237", "0.73970014", "0.7376612", "0.7354558", "0.73323834", "0.7310976", "0.7310976", "0.7310976", "0.7310976", "0.72414756", "0.7222764", "0.7222764", "0.7222764", "0.7210623", "0.7201507", "0.71982425", "0.71956...
0.6641787
78
MeetingUnit Testet, ob die Methode getTitle(), den Titel zurueckgibt.
@Test public void testGetTitleMU() { assertEquals("MeetingUnit", meetingu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test(priority=3, de...
[ "0.70835274", "0.6814272", "0.6795269", "0.67864484", "0.66546696", "0.6594764", "0.6594228", "0.6572338", "0.65075034", "0.64822036", "0.64793295", "0.6464499", "0.645138", "0.64208066", "0.64116776", "0.64055204", "0.6377691", "0.63472587", "0.63468874", "0.63042295", "0.62...
0.7840631
0
Testet, ob die Methode getMembers(), die Personen zurueckgibt.
@Test public void testGetMembers() { assertTrue(meetingu1.getMembers().contains(teach1)); assertTrue(meetingu1.getMembers().contains(teach2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetMembers()\n {\n System.out.println(\"getMembers\");\n Party instance = null;\n ArrayList<Account> expResult = null;\n ArrayList<Account> result = instance.getMembers();\n assertEquals(expResult, result);\n // TODO review the generated test ...
[ "0.6970229", "0.6942182", "0.69249785", "0.6794664", "0.6738268", "0.67164564", "0.66988015", "0.6685247", "0.6663672", "0.6632983", "0.66328526", "0.6617604", "0.6602617", "0.6567525", "0.65529495", "0.65304035", "0.6529899", "0.65179336", "0.6515777", "0.65140206", "0.64552...
0.7134075
0
Testet, ob die Methode setTitle(), den Titel richtig setzt.
@Test public void testSetTitleMU() { meetingu1.setTitle("UnitMeeting"); assertEquals("UnitMeeting", meetingu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void setTitle();", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);",...
[ "0.8465342", "0.843755", "0.8392147", "0.8269759", "0.8269759", "0.8269759", "0.82680535", "0.8262356", "0.8248331", "0.82416624", "0.8223729", "0.8223729", "0.8223729", "0.8223729", "0.8223729", "0.8106128", "0.80890346", "0.7994451", "0.79859304", "0.7965609", "0.7942552", ...
0.0
-1
Testet, ob die Methode setMembers(), die Personen richtig setzt.
@Test public void testsetMembers() { Set<Person> persons1 = new HashSet<Person>(); meetingu1.setMembers(persons1); assertTrue(meetingu1.getMembers().equals(persons1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMembers(\n final List<MemberType> members)\n {\n this.members = members;\n }", "public void setMembers(List<DN> members) {\n\t\tthis.members = members;\n\t}", "public void setMembers(Iterable<Integer> members) {\n\t\tthis.clear();\n\t\tfor (int member: members)\n\t\t\tthis.ad...
[ "0.708318", "0.67435527", "0.643677", "0.6412629", "0.62750816", "0.6203968", "0.6121797", "0.6061706", "0.59953344", "0.5947525", "0.5907317", "0.5906268", "0.5832813", "0.58058393", "0.5788427", "0.57841015", "0.5781527", "0.57624036", "0.5753849", "0.5743374", "0.56827736"...
0.73814416
0
Testet, ob die Methode setYear(), den Jahrgang richtig setzt.
@Test public void testSetYear() { meetingu1.setYear(3); assertTrue(meetingu1.getYear() == 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setYear(int _year) { year = _year; }", "public void setYear(int value) {\r\n this.year = value;\r\n }", "public void setYear(int year) {\r\n this.year = year;\r\n }", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "public void setYear (int yr...
[ "0.85502374", "0.8436481", "0.8389931", "0.83657616", "0.83602315", "0.8356243", "0.8334775", "0.8320834", "0.8317072", "0.8257052", "0.82264906", "0.81896824", "0.81896824", "0.8161901", "0.8161901", "0.813255", "0.813255", "0.813255", "0.8108997", "0.81057394", "0.80485594"...
0.8084735
20
TeachingUnit Der Test soll ueberpruefen, ob die Methode getPersons(), das richtige Set zurueckgibt mit den enthaltenen PersonTime Objekten.
@Test public void testGetPersons() { assertTrue(teachu1.getPersons().contains(person1)); assertFalse(teachu1.getPersons().contains(new PersonTime())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetPersonTime() {\r\n\t\tteachu1.setPersonTime(newPersonTime);\r\n\r\n\t\tassertTrue(teachu1.getPersons().contains(person2));\r\n\t\tassertFalse(teachu1.getPersons().contains(person1));\r\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person...
[ "0.75827634", "0.651128", "0.63047045", "0.61985606", "0.6143282", "0.6114574", "0.6101377", "0.60213834", "0.5981455", "0.59103364", "0.5887411", "0.58433133", "0.5808419", "0.57477415", "0.570556", "0.56915", "0.5626328", "0.56243235", "0.55635256", "0.5531218", "0.5513927"...
0.7355842
1
Der Test soll ueberpruefen, ob die Methode getSubjects(), das richtige Set zurueckgibt mit den enthaltenen Subject Objekten.
@Test public void testGetSubjects() { assertTrue(teachu1.getSubjects().contains(sub1)); assertFalse(teachu1.getSubjects().contains(sub2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetSubjects() {\r\n\t\tteachu1.setSubjects(newSubjects);\r\n\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub2));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub1));\r\n\t}", "@Test\n public void subjectSetTest() {\n // TODO: test subjectSet\n }", "@Test\r\n\tp...
[ "0.7975142", "0.7597144", "0.6873267", "0.6790583", "0.67227185", "0.6670554", "0.65832305", "0.6445888", "0.643834", "0.6428961", "0.6362033", "0.63188803", "0.6293034", "0.62360346", "0.62358576", "0.623208", "0.62176985", "0.6201033", "0.6196246", "0.6196246", "0.61618644"...
0.76516265
1
Testet , ob die Methode getTravelNeeded(), true zurueckgibt, wenn das Gebaeude gewechselt werden muss. Testet , ob die Methode setTravelNeeded(), ob das Gebaeude gewechselt werden kann.
@Test public void testSetGetTravelNeeded() { teachu1.setTravelNeed(false); assertFalse(teachu1.getTravelNeed()); teachu1.setTravelNeed(true); assertTrue(teachu1.getTravelNeed()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCanTravel() {\n return canTravel;\n }", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "public void setCanTravel(boolean canTravel) {\n this.canTravel = canTravel;\n }", "public Travel getTravel() {\n return travel;\n }", "@Ove...
[ "0.6655102", "0.6324691", "0.619629", "0.59000033", "0.55362266", "0.5467256", "0.5430309", "0.53950244", "0.5365531", "0.5356278", "0.53512365", "0.5349872", "0.53211886", "0.5282557", "0.52770096", "0.527696", "0.52566755", "0.5245847", "0.5236469", "0.5228321", "0.519443",...
0.7312083
0
Der Test soll ueberpruefen, ob die Methode setSubjects(), das richtige Set mit den enthaltenen Subject Objekten gesetzt wird.
@Test public void testSetSubjects() { teachu1.setSubjects(newSubjects); assertTrue(teachu1.getSubjects().contains(sub2)); assertFalse(teachu1.getSubjects().contains(sub1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void subjectSetTest() {\n // TODO: test subjectSet\n }", "@Test\r\n\tpublic void testGetSubjects() {\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub1));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub2));\r\n\t}", "public void setSubject(Subject subject);", "public void...
[ "0.7519667", "0.7449625", "0.7130721", "0.71257114", "0.6894335", "0.68906724", "0.68321943", "0.674185", "0.6724354", "0.6695609", "0.6590603", "0.6520592", "0.65092164", "0.64920753", "0.64920753", "0.64852816", "0.64623475", "0.6451887", "0.64276123", "0.6398294", "0.63173...
0.8363902
0
Der Test soll ueberpruefen, ob die Methode setPersons(), das richtige Set mit den enthaltenen PersonTime Objekten gesetzt wird.
@Test public void testSetPersonTime() { teachu1.setPersonTime(newPersonTime); assertTrue(teachu1.getPersons().contains(person2)); assertFalse(teachu1.getPersons().contains(person1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);...
[ "0.69165146", "0.6537546", "0.60199004", "0.6018611", "0.589728", "0.5837913", "0.57590365", "0.5705418", "0.56566465", "0.5629039", "0.5605746", "0.5599476", "0.55975527", "0.55910885", "0.553724", "0.5514116", "0.551293", "0.54749626", "0.5448444", "0.54125375", "0.53927296...
0.80679
0
Der Test soll ueberpruefen, ob die Methode containsPersons(), ob ein Person Objekt in dem Set enthalten ist.
@Test public void teachingUnitContainsPersons() { assertTrue(teachu1.containsPerson("ErK")); assertTrue(teachu1.containsPerson("AlP")); assertFalse(teachu1.containsPerson("MaP")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "boolean hasPerson();", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeeti...
[ "0.80999595", "0.66038847", "0.66036403", "0.6400047", "0.63837403", "0.6305065", "0.620926", "0.60702616", "0.60449064", "0.6015658", "0.5994754", "0.5960961", "0.5960961", "0.5960961", "0.5953369", "0.5913466", "0.58870983", "0.5874061", "0.58617723", "0.58530736", "0.58461...
0.7562313
1