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
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.68304133", "0.6393708", "0.6384752", "0.63761765", "0.6367759", "0.6222356", "0.6067583", "0.6066662", "0.60259044", "0.59848064", "0.5975453", "0.5956886", "0.5956886", "0.5956886", "0.5956886", "0.5956886", "0.5940845", "0.5889835", "0.5880093", "0.5801687", "0.57918274"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.6828705", "0.6393162", "0.63825506", "0.63770574", "0.6367192", "0.6221846", "0.6067397", "0.6065189", "0.6023013", "0.5983748", "0.5972557", "0.5955663", "0.5955663", "0.5955663", "0.5955663", "0.5955663", "0.5937606", "0.588693", "0.5879829", "0.58024454", "0.5791238", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.68282694", "0.6391548", "0.638283", "0.63750577", "0.6366563", "0.6221217", "0.60655916", "0.6064851", "0.60234106", "0.5982685", "0.5973177", "0.5954892", "0.5954892", "0.5954892", "0.5954892", "0.5954892", "0.59384537", "0.58872634", "0.5878296", "0.5800361", "0.5790003"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.6828057", "0.6392046", "0.6381866", "0.6375635", "0.6367022", "0.6221832", "0.60662436", "0.6063608", "0.6022423", "0.5981807", "0.5971875", "0.5953997", "0.5953997", "0.5953997", "0.5953997", "0.5953997", "0.5935702", "0.5886104", "0.5878172", "0.5801646", "0.57899404", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.68304133", "0.6393708", "0.6384752", "0.63761765", "0.6367759", "0.6222356", "0.6067583", "0.6066662", "0.60259044", "0.59848064", "0.5975453", "0.5956886", "0.5956886", "0.5956886", "0.5956886", "0.5956886", "0.5940845", "0.5889835", "0.5880093", "0.5801687", "0.57918274"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.6828705", "0.6393162", "0.63825506", "0.63770574", "0.6367192", "0.6221846", "0.6067397", "0.6065189", "0.6023013", "0.5983748", "0.5972557", "0.5955663", "0.5955663", "0.5955663", "0.5955663", "0.5955663", "0.5937606", "0.588693", "0.5879829", "0.58024454", "0.5791238", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.68282694", "0.6391548", "0.638283", "0.63750577", "0.6366563", "0.6221217", "0.60655916", "0.6064851", "0.60234106", "0.5982685", "0.5973177", "0.5954892", "0.5954892", "0.5954892", "0.5954892", "0.5954892", "0.59384537", "0.58872634", "0.5878296", "0.5800361", "0.5790003"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table version_info
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getVersion() {\n String sql = \"SELECT * FROM \" + tableName;\n\n return query(new QueryAllStatement<Integer>(sql) {\n @Override\n public Integer processResults(ResultSet set) throws SQLException {\n set.next();\n return set.getInt(VERSION_COL);...
[ "0.6828057", "0.6392046", "0.6381866", "0.6375635", "0.6367022", "0.6221832", "0.60662436", "0.6063608", "0.6022423", "0.5981807", "0.5971875", "0.5953997", "0.5953997", "0.5953997", "0.5953997", "0.5953997", "0.5935702", "0.5886104", "0.5878172", "0.5801646", "0.57899404", ...
0.0
-1
4th step of EH override the only abstract method of AL
public void actionPerformed(ActionEvent e) { String str = e.getActionCommand(); if(str.equals("Red")) { rc++; } else if(str.equals("Green")) { gc++; } else if(str.equals("Blue")) { bc++; } repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void mo70713b();", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract void afvuren();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract void mo27386d();", "public abstract void mo27464a();", "public abstr...
[ "0.67347664", "0.6699584", "0.6672624", "0.66433215", "0.6596663", "0.65675557", "0.65365666", "0.6508219", "0.65064293", "0.64815056", "0.6481365", "0.64284056", "0.64258605", "0.6417171", "0.6413816", "0.639541", "0.63938314", "0.63904977", "0.63858944", "0.6336881", "0.632...
0.0
-1
Figures out reservoir size and quantile bounds
public int estimateQuantiles(List<double[]> metrics) { int rSize = Math.min(tConf.qReservoirMin, metrics.size()); int sampleSize = Math.min(rSize, tConf.qSampleSize); double curCutoffH = -1; double curCutoffL = -1; double curTolerance = -1; double[] curBW = new Bandwidth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double getRangeSize();", "public void computeStoredBounds()\n {\n computeSRectangleBound();\n computeCircleBound();\n }", "public float getCapacity();", "int range() {\n\t\treturn mpg * fuelcap;\n\t}", "public abstract double[] getUpperBound();", "public int getBound()...
[ "0.6760521", "0.58950394", "0.5714966", "0.5691172", "0.5670741", "0.56518334", "0.5645671", "0.5583628", "0.5524957", "0.5488191", "0.54866993", "0.5477864", "0.5449217", "0.5446475", "0.54075974", "0.53964907", "0.53919816", "0.53756034", "0.5350795", "0.5341858", "0.532541...
0.5121394
43
data service common repository =CrudRepository(ginaric type) contain the logic of any entity class
public interface RelationshipRepository extends JpaRepository<Relationship,Integer>{ @Transactional List<Relationship> removeByOuseridAndUserid(Integer ouserid,Integer userid); @Transactional List<Relationship> removeByOuserid(Integer id); @Transactional List<Relationship> removeByU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface BaseRepository {\n /**\n * Stores given entity to database\n *\n * @param entity Some entity object to save\n */\n void save(Object entity);\n\n /**\n * Stores collection of entities to database\n *\n * @param entities Some entities objects to save\n */\n...
[ "0.7750534", "0.7459393", "0.73562646", "0.730699", "0.730081", "0.72709715", "0.724902", "0.7208426", "0.7142261", "0.71038705", "0.7100001", "0.7091276", "0.70893055", "0.7053461", "0.70519346", "0.7013521", "0.69866747", "0.6966198", "0.69661766", "0.6959226", "0.695545", ...
0.0
-1
id ID yes no CCS identifier of the judgement submission_id ID yes no CCS identifier of the submission judged judgement_type_id ID yes yes CCS the verdict of this judgement start_time TIME yes no CCS absolute time when judgement started start_contest_time RELTIME yes no CCS contest relative time when judgement started e...
public String createJSON(IInternalContest contest, Run run) { StringBuilder stringBuilder = new StringBuilder(); appendPair(stringBuilder, "id", run.getNumber()); stringBuilder.append(", "); appendPair(stringBuilder, "submission_id", run.getNumber()); stringBuilder.append(", "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void makeJudgement (Player player) {\r\n judgement.countTurn();\r\n judgement.setPlayer(player);\r\n boolean victoryFlag;\r\n String playerMarker = player.getPlayerMarker();\r\n int playerRow = player.getPlayerRow();\r\n int playerColumn = player.getPlayerColumn(...
[ "0.50229913", "0.48233506", "0.47333443", "0.46141723", "0.4560348", "0.45380726", "0.4534027", "0.44996816", "0.44859132", "0.4471004", "0.44703427", "0.44435784", "0.4434395", "0.4393131", "0.43822148", "0.43811777", "0.4378737", "0.43736264", "0.4357337", "0.43505627", "0....
0.5619726
0
An Entity represents a node in the graph. It could be a single person, or a collection of people, or so forth.
public interface Entity extends Immunizable { /** * Counts the total number of people in a certain state. An entity may be in multiple states if there are * multiple spreadables in play. * * @param state Which state to count * @return The number of entities in that state */ int cou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}", "public E getEntity();", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "void visit(Entity node);", "pub...
[ "0.7292718", "0.63286376", "0.6261692", "0.6241566", "0.6122665", "0.6099522", "0.60484856", "0.60461026", "0.6027383", "0.6007629", "0.5988585", "0.59514344", "0.5933344", "0.5881392", "0.5802563", "0.5792175", "0.57839614", "0.57839006", "0.57428163", "0.57209164", "0.57197...
0.0
-1
Counts the total number of people in a certain state. An entity may be in multiple states if there are multiple spreadables in play.
int count(State state);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countObjectFlowStates();", "protected int count_nbr_in_state ( int state )\r\n {\r\n OSPF_Interface oif;\r\n int count = 0;\r\n int i, j; \r\n int if_no, nbr_no;\r\n \r\n if_no = if_list.size();\r\n for ( i = 0; i < if_no; i++) {\r\n oif = (OSPF_Interface) if_list.elementAt(i);\r\n...
[ "0.6891237", "0.67355365", "0.6685644", "0.6556195", "0.6490678", "0.6455971", "0.6392802", "0.63403845", "0.63129306", "0.62748253", "0.62421185", "0.6222463", "0.6217124", "0.6176982", "0.61528", "0.6025941", "0.5992636", "0.58741605", "0.5863789", "0.5831669", "0.57967925"...
0.7219543
0
Counts the total number of people in a certain state for a given Spreadable. An entity will only ever be in one state per spreadable.
int count(State state, Spreadable spreadable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int count_nbr_in_state ( int state )\r\n {\r\n OSPF_Interface oif;\r\n int count = 0;\r\n int i, j; \r\n int if_no, nbr_no;\r\n \r\n if_no = if_list.size();\r\n for ( i = 0; i < if_no; i++) {\r\n oif = (OSPF_Interface) if_list.elementAt(i);\r\n nbr_no = oif.neighbor_list.s...
[ "0.6792315", "0.65086657", "0.62461555", "0.6027493", "0.6002862", "0.5930876", "0.58364487", "0.57993054", "0.57760084", "0.5691802", "0.5670315", "0.5617302", "0.55777407", "0.5576855", "0.5560659", "0.55438876", "0.5492589", "0.54810965", "0.54810965", "0.54810965", "0.547...
0.77042574
0
Try to change entities from one state to another. If there aren't enough entities with the old state, then only that many will be changed to the new state.
void changeState(Spreadable spreadable, State from, State to, int count);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final protected void setEntityState(int newState)\n {\n state = newState;\n }", "public final void setEntityState(EntityState state) {\n for (int i = fVSs.size()-1; i >= 0; i--) {\n ((ValidationState)fVSs.get(i)).setEntityState(state);\n }\n }", "private void updateStat...
[ "0.6289492", "0.58733803", "0.57634753", "0.5761026", "0.5748426", "0.57321185", "0.5690982", "0.5679378", "0.56393737", "0.55405205", "0.55158734", "0.5455447", "0.54385453", "0.54159755", "0.5412074", "0.54088926", "0.53871816", "0.5379853", "0.5376415", "0.5366538", "0.536...
0.6220507
1
Try to infect one or more entities with a specific Spreadable. This will not infect more people than are susceptible, and may also be affected by rules for coexistence of spreadables.
default void infect(Spreadable spreadable, int count) { changeState(spreadable, State.SUSCEPTIBLE, State.INFECTED, count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Entity extends Immunizable {\n /**\n * Counts the total number of people in a certain state. An entity may be in multiple states if there are\n * multiple spreadables in play.\n *\n * @param state Which state to count\n * @return The number of entities in that state\n */...
[ "0.5401599", "0.5101438", "0.48003042", "0.47383142", "0.4737577", "0.47105345", "0.46214345", "0.4574285", "0.45628968", "0.45286828", "0.4504322", "0.44499224", "0.4427847", "0.44233698", "0.44013786", "0.4398726", "0.43947494", "0.4368003", "0.43604288", "0.43565673", "0.4...
0.5735361
0
Try to recover one or more entities with a specific Spreadable. This will not recover more entities than are infected.
default void recover(Spreadable spreadable, int count) { changeState(spreadable, State.INFECTED, State.RECOVERED, count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleEntitiesIndividually() {\n\n\t\tfinal Set<Long> originalBatch = getUidsToLoad();\n\t\tfinal Set<Long> batchOfOne = new HashSet<Long>();\n\n\t\t/**\n\t\t * We replace the batch of all the uids with our own which we'll only put one uid at a time.\n\t\t */\n\t\tsetBatch(batchOfOne);\n\n\t\tLOG.in...
[ "0.50727594", "0.50636184", "0.47234035", "0.4639291", "0.46379358", "0.4633274", "0.46295813", "0.4628213", "0.4615595", "0.4593458", "0.4591471", "0.45602727", "0.4503603", "0.44974464", "0.44917879", "0.44712344", "0.44494867", "0.44475192", "0.44431525", "0.4436554", "0.4...
0.58183604
0
Try to return one or more entities from the infected state to the susceptible state for a given Spreadable. This will not affect more entities than are infected.
default void suscept(Spreadable spreadable, int count) { changeState(spreadable, State.INFECTED, State.SUSCEPTIBLE, count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Entity extends Immunizable {\n /**\n * Counts the total number of people in a certain state. An entity may be in multiple states if there are\n * multiple spreadables in play.\n *\n * @param state Which state to count\n * @return The number of entities in that state\n */...
[ "0.57459474", "0.53485864", "0.5287068", "0.52468294", "0.5046443", "0.50372195", "0.49362317", "0.49302536", "0.49196076", "0.4891137", "0.48612097", "0.48254496", "0.4786617", "0.47635657", "0.47347605", "0.4725266", "0.470711", "0.47044894", "0.4692131", "0.46914658", "0.4...
0.5380208
1
Batch:B2 PRN:2020016400783091 Date: 26 Aug,2021 Prac07: SYNCHRONIZATION
public interface P7_Q1_Buffer_SJ { public void set(int value) throws InterruptedException; public int get() throws InterruptedException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testExplicitGcAnalsysisParallelSerialOld() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset56.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcM...
[ "0.5396893", "0.5165006", "0.5142127", "0.5136404", "0.50484365", "0.50479573", "0.50046444", "0.49894774", "0.49869132", "0.49601293", "0.49334422", "0.49187377", "0.4896941", "0.4894737", "0.48512515", "0.4846756", "0.48400897", "0.48200917", "0.48023993", "0.47950768", "0....
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() { buttonGroup1 = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtsearc...
{ "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.7319037", "0.7290621", "0.7290621", "0.7290621", "0.7285163", "0.72480375", "0.72130316", "0.7207723", "0.7195822", "0.7189463", "0.7183591", "0.71580946", "0.7147075", "0.70924276", "0.70795405", "0.7056352", "0.6986753", "0.6976759", "0.6954958", "0.69533294", "0.6944831...
0.0
-1
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n ...
[ "0.7949466", "0.77678406", "0.77014554", "0.75048727", "0.72873574", "0.72277147", "0.72225314", "0.7220189", "0.7180793", "0.715599", "0.7119849", "0.71114343", "0.7099229", "0.7061084", "0.70494634", "0.6913015", "0.68168384", "0.6704861", "0.6695491", "0.65845054", "0.6573...
0.0
-1
A new alphabet containing CHARS. Character number k has index K (numbering from 0). No character may be duplicated.
Alphabet(String chars) { _charsString = chars; _chars = new char[chars.length()]; for (int i = 0; i < _chars.length; i += 1) { if (alreadyAdded(chars.charAt(i))) { throw new EnigmaException("Alphabet cannot have duplicates."); } else { _cha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }", "private void generateCipher()\n {\n for (int i = 0; i <...
[ "0.63510275", "0.6331801", "0.6245081", "0.62305796", "0.61666155", "0.61200404", "0.6070606", "0.60699713", "0.60592884", "0.6025828", "0.59133875", "0.5849188", "0.5806185", "0.5783484", "0.57674986", "0.57433087", "0.573129", "0.5700645", "0.5677591", "0.5676296", "0.56700...
0.590941
11
Returns the size of the alphabet.
int size() { return _chars.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int size() {\n return _alphabet.size();\n }", "int size() {\n return _letters.length();\n }", "public int getLettersCount() {\n return letters_.size();\n }", "public int getLettersCount() {\n return letters_.size();\n }", "int size() {\n return _chars.length()...
[ "0.8101566", "0.7775351", "0.74167335", "0.73806685", "0.7123137", "0.7123137", "0.6907532", "0.6832305", "0.67312086", "0.6682212", "0.65633565", "0.6554055", "0.6544257", "0.65286887", "0.65260947", "0.6521087", "0.64276516", "0.6386872", "0.6370318", "0.63564664", "0.63462...
0.699177
6
Returns true if C is in this alphabet.
boolean contains(char c) { for (char x : _chars) { if (x == c) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean contains(char ch) {\n return _letters.indexOf(ch) >= 0;\n }", "private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }", "public abstract boolean matches(char c);", "private static boolean inArray(char c, char[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\...
[ "0.6793201", "0.67022395", "0.66984004", "0.66926295", "0.6613243", "0.66063696", "0.65604305", "0.64962053", "0.6446119", "0.6442338", "0.63834095", "0.6370955", "0.6369671", "0.63693273", "0.6320478", "0.6308274", "0.6300025", "0.62702906", "0.62439007", "0.62377703", "0.62...
0.7144437
0
Returns character number INDEX in the alphabet, where 0 <= INDEX < size().
char toChar(int index) { if (index >= 0 && index < size()) { return _chars[index]; } else { throw new EnigmaException("Index out of bounds."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int getIdx(char ch)\n {\n return (ch - 'a');\n }", "char toChar(int index) {\n return _letters.charAt(index);\n }", "private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integ...
[ "0.7101913", "0.6949462", "0.69350696", "0.6892408", "0.6892324", "0.68592876", "0.678823", "0.67746806", "0.66597444", "0.6659476", "0.6655807", "0.6545222", "0.65060496", "0.6475423", "0.6472309", "0.6412621", "0.6398413", "0.63928056", "0.6354717", "0.6350527", "0.629805",...
0.67038065
8
Returns the index of character C, which must be in the alphabet.
int toInt(char c) { for (int i = 0; i < size(); i += 1) { if (_chars[i] == c) { return i; } } throw new EnigmaException("Character " + c + " not found."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getIndex(Character c)\n{\n int a = Character.getNumericValue('a');\n int z = Character.getNumericValue('z');\n int val = Character.getNumericValue(c);\n \n if (a <= val && val <= z) return val - a;\n return -1;\n}", "public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%...
[ "0.79564804", "0.78931963", "0.7884025", "0.77034366", "0.7542158", "0.73922676", "0.7339698", "0.7252818", "0.70559996", "0.7026614", "0.70044595", "0.6987912", "0.6980196", "0.6932417", "0.68966794", "0.68859524", "0.68663836", "0.6864741", "0.6817227", "0.6785924", "0.6648...
0.7003145
11
Returns true if C has already been added to CHARS.
boolean alreadyAdded(char c) { for (char x :_chars) { if (x == c) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean add(Character e) {\n\t\tif (!this.contains(e)) {\n\t\t\treturn super.add(e);\n\t\t} else\n\t\t\treturn false;\n\t}", "public boolean updateLetterList(char c){\n\t\tif(!usedLetters.contains(c)){\n\t\t\tusedLetters.add(c);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public b...
[ "0.68170357", "0.65844244", "0.6552134", "0.6493809", "0.636551", "0.61892396", "0.6147078", "0.6073158", "0.60024995", "0.59398323", "0.5926222", "0.5917985", "0.58437717", "0.5822037", "0.5799943", "0.57950336", "0.5774097", "0.5740953", "0.57372373", "0.57189137", "0.57166...
0.8215283
0
Returns String of all characters in alphabet.
String string() { return _charsString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private char[] alphanumeric(){\n StringBuffer buf=new StringBuffer(128);\n for(int i=48; i<= 57;i++)buf.append((char)i); // 0-9\n for(int i=65; i<= 90;i++)buf.append((char)i); // A-Z\n for(int i=97; i<=122;i++)buf.append((char)i); // a-z\n return buf.toString().toCharArray();\n }", "private stati...
[ "0.7302944", "0.7146537", "0.7002479", "0.6976738", "0.6741483", "0.6568598", "0.6488897", "0.6451176", "0.6419109", "0.6328674", "0.6315271", "0.62947583", "0.6239199", "0.62330574", "0.6222416", "0.6213544", "0.6157321", "0.61413336", "0.61258155", "0.60790116", "0.6057446"...
0.0
-1
Returns All Audio Header data
IAudio read(InputStream inputStream) throws AudioReaderException, InvalidFormatException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AudioHeader\n{\n /**\n * @return the audio file type\n */\n public abstract String getEncodingType();\n\n /**\n * @return the ByteRate of the Audio, this is the total average amount of bytes of data sampled per second\n */\n public Integer getByteRate();\n\n\n\n /**\...
[ "0.7214388", "0.6456711", "0.6080348", "0.5850496", "0.5828771", "0.5814992", "0.57077384", "0.56665444", "0.5576858", "0.55707", "0.55639184", "0.55524826", "0.5549945", "0.55460364", "0.5495114", "0.5491981", "0.54803896", "0.5474433", "0.5441748", "0.5427403", "0.5417518",...
0.0
-1
Returns Audio Header data
IAudioHeader readHeader(InputStream inputStream) throws AudioReaderException, InvalidFormatException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AudioHeader\n{\n /**\n * @return the audio file type\n */\n public abstract String getEncodingType();\n\n /**\n * @return the ByteRate of the Audio, this is the total average amount of bytes of data sampled per second\n */\n public Integer getByteRate();\n\n\n\n /**\...
[ "0.7569159", "0.6316945", "0.6164939", "0.6133263", "0.60715824", "0.6058372", "0.5995128", "0.5981121", "0.59622616", "0.5876492", "0.5846341", "0.5740242", "0.5718057", "0.5655208", "0.5650394", "0.5648176", "0.5642845", "0.563615", "0.5634637", "0.56195635", "0.5610831", ...
0.7120864
1
base case goes here make a random color here draw lines to make a triangle or use fillPolygon make some recursive calls
public void gasket(Graphics window, int x1, int y1, int x2, int y2, int x3, int y3) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void drawFill();", "private void init(Point[] points, int color) {\n // Set paint\n paint = new Paint(Paint.ANTI_ALIAS_FLAG);\n paint.setColor(color);\n\n setPadding(50,50,50,50);\n setBackgroundColor(Color.TRANSPARENT);\n\n // Create path for triangle\n ...
[ "0.67537814", "0.6673197", "0.6528442", "0.63967705", "0.6369414", "0.62828034", "0.62218523", "0.619657", "0.614921", "0.61287314", "0.6110629", "0.60931474", "0.6092945", "0.60579103", "0.6050559", "0.60449", "0.6038101", "0.6031941", "0.59985787", "0.5998514", "0.5991604",...
0.0
-1
Referenced classes of package com.google.android.gms.tagmanager: cj, ck
interface cm { public abstract void f(com.google.android.gms.internal.d.a a); public abstract cj lS(); public abstract cj lT(); public abstract ck lU(); public abstract ck lV(); public abstract ck lW(); public abstract ck lX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String[] getReferencedJavaClasses() {\n\t\tclass ClassNameVisitor extends JVisitor {\n\t\t\tList<String> classNames = new ArrayList<String>();\n\n\t\t\t@Override\n\t\t\tpublic boolean visit(JClassType x, Context ctx) {\n\t\t\t\tclassNames.add(x.getName());\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tClassNa...
[ "0.5415806", "0.52423793", "0.5164869", "0.5163092", "0.5070419", "0.50270075", "0.498633", "0.49001998", "0.48449418", "0.48193973", "0.48083168", "0.47843516", "0.47826797", "0.47547477", "0.47460586", "0.46826005", "0.46718332", "0.46717516", "0.46660566", "0.46626058", "0...
0.4625115
25
Return a Try value that isn't an exception
public static <A> Try<A> success(A value) { return new Try<>(null, value, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block getTryBlock();", "public T getOrThrow() {\n if (hasResult) {\n return value;\n } else {\n throw new ReflectionException(exception);\n }\n }", "public ByteVector getCodeItemTryCatch() {\n\t\treturn codeItem.getCodeItemTryCatch();\n\t}",...
[ "0.6581849", "0.6288928", "0.613941", "0.6110751", "0.61066186", "0.61000556", "0.5988894", "0.598825", "0.5883695", "0.58528554", "0.57105654", "0.56895095", "0.56895095", "0.56694305", "0.5638893", "0.55956024", "0.55798733", "0.5556095", "0.552963", "0.5465408", "0.5431004...
0.5943577
8
Return a Try value that represents an exception
public static <A> Try<A> failure(Exception ex) { return new Try<>(ex, null, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getException();", "String getException();", "public T getOrThrow() {\n if (hasResult) {\n return value;\n } else {\n throw new ReflectionException(exception);\n }\n }", "Try<T> recoverWith(TryFunction<? super Throwable, Try<T>> fn);...
[ "0.60780644", "0.60780644", "0.5972159", "0.5849292", "0.57982093", "0.5748432", "0.5697552", "0.5691532", "0.5672868", "0.5536646", "0.551955", "0.5516239", "0.5516239", "0.5413819", "0.54121286", "0.5387597", "0.53469783", "0.5296617", "0.5264767", "0.52475196", "0.5233867"...
0.6927892
0
add getters, setters, etc. here
public String toString() { if (!isException) { return "SUCCESS(" + value + ")"; } else { return "FAILURE(" + ex + ")"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateProperties() {\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "@Override\n public void updateProperties() {\n // unneeded\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public void generate() {\n\t...
[ "0.6298574", "0.60460687", "0.6023352", "0.5937763", "0.592471", "0.5880709", "0.5826302", "0.5801995", "0.5748182", "0.5716675", "0.56480825", "0.564362", "0.5642975", "0.5627123", "0.55856866", "0.5579323", "0.55788743", "0.55507225", "0.55501527", "0.5536309", "0.5535307",...
0.0
-1
The y coordinate of this Tile. Creates and returns a Tile object with the passed x and y coordinates.
public Tile(final int x, final int y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTileY(int y) {\n\t\ttileY = y;\n\t}", "public int convertYToTileY(final int y) {\n return convertYToTileY(y, getTileGridYOffset(), getTileHeight());\n }", "public int getTileY() {\n\t\treturn tileY;\n\t}", "public int getTileY()\n\t{\n\t\treturn this.tileY;\n\t}", "public int getY(...
[ "0.7497795", "0.71624905", "0.71347684", "0.7060668", "0.67531705", "0.6740514", "0.6740514", "0.6719998", "0.6719899", "0.67031354", "0.6701999", "0.6687387", "0.667404", "0.6657931", "0.66245556", "0.66216564", "0.6602509", "0.6595063", "0.6547993", "0.65318066", "0.6522997...
0.69141686
4
///////////////////////// // Constructors //// ///////////////////////// Default Constructor.
public Chromosome(){ super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public Curso() {\r\n }", "public Tbdtokhaihq3() {\n super();\n }", "public Demo() {\n\t\t\n\t}", "public CSSTidier() {\n\t}", "public PSRelation()\n {\n }", "public Basic() {}", "pu...
[ "0.83372754", "0.77752334", "0.7280454", "0.72618455", "0.71868277", "0.7180812", "0.71785593", "0.71533895", "0.71528304", "0.7122178", "0.7076443", "0.707129", "0.7066968", "0.70492727", "0.7048817", "0.7047492", "0.7033688", "0.70263463", "0.69986415", "0.69837", "0.697889...
0.0
-1
For chaining with constructor to include a randomly selected set of knapsack items.
public Chromosome withRandomKnapsackItems() { this.knapsackSelection = generateRandomItems(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Knapsack(int k, int[] v, int[] w) {\n\t\tif (v.length != w.length)\n\t\t\tthrow new IllegalArgumentException(\"ambiguous problem size\");\n\t\tn = v.length;\n\t\tif (n < 1)\n\t\t\tthrow new IllegalArgumentException(\"no items to put in knapsack\");\n\t\tthis.k = k;\n\t\tthis.v = new int[n];\n\t\tthis.w = ne...
[ "0.6405514", "0.6043645", "0.60018057", "0.59579", "0.59561545", "0.5945824", "0.59172046", "0.5912261", "0.59023273", "0.5892986", "0.5819335", "0.57936543", "0.57679087", "0.57325804", "0.5721424", "0.57157755", "0.5701943", "0.5648689", "0.5611792", "0.56088376", "0.560182...
0.776219
0
For chaining with constructor to include a fitness calculation.
public Chromosome withFitnessCalculated() { this.fitness = calculateFitness(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fitnessFunction()\n\t{\n\t\t\n\t}", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "protected float getFitness()\t\t\t{\treturn fitness;\t\t}", "public int getFitness(){\n return fitness;\n }", "public GAIndividual()\n {\n...
[ "0.70822215", "0.6958052", "0.6690591", "0.6611006", "0.6487883", "0.6459618", "0.64049596", "0.6400137", "0.637761", "0.62450635", "0.6240538", "0.62371355", "0.62364036", "0.622783", "0.6166152", "0.6161958", "0.6157969", "0.6150675", "0.60912293", "0.6057809", "0.5990118",...
0.6398263
8
///////////////////////// // Genetic Operators //// ///////////////////////// One and Two Point Crossover Operations
public List<Chromosome> doCrossover(Chromosome other, String crossoverType){ int geneSize = this.knapsackSelection.size(); ArrayList<Chromosome> children = new ArrayList<>(); //Allow for multiple crossover attempts to better the chance of a valid crossover. //Note that this can be disa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void crossover() {\r\n\t\tfinal double CROSSOVER_PROB = 0.5;\r\n\t\tfor (int i=0; i<this.nChromosomes-(this.nChromosomes%2); i=i+2) {\r\n\t\t\tif (Math.random() < CROSSOVER_PROB) {\r\n\t\t\t\tArrayList<Integer> chr1 = (ArrayList<Integer>) this.chromosomes...
[ "0.7116347", "0.7020576", "0.68149734", "0.68000764", "0.6772466", "0.6746327", "0.6744411", "0.671032", "0.6656282", "0.6654603", "0.6650562", "0.6637977", "0.66195", "0.6601103", "0.65451795", "0.6514171", "0.6508004", "0.6507797", "0.65002966", "0.6483657", "0.6431", "0....
0.6305443
23
Implementation of Bit Flip Mutation. Note that the mutation will be attempted GAConfiguration.MUTATION_ATTEMPTS times. If it is unsuccesful in producing a valid child on every attempt, it will return the original child.
public Chromosome doBitFlipMutation(){ for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){ ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection); int itemToMutate = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()); newSelection...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] mutateScramble(int[] child) {\n println(\"Doing a scramble mutation\", 4);\n displayChromosome(child, 4);\n for(int r = 0; r < 3; r++) {\n child = mutateSwapChild(child);\n child = mutateInversionChild(child);\n }\n displayChromosome(child, 4);...
[ "0.58005905", "0.5568554", "0.53592485", "0.5229056", "0.5219177", "0.5200968", "0.49497002", "0.4875524", "0.47748837", "0.47725117", "0.4772468", "0.4732728", "0.4704291", "0.46720904", "0.46627486", "0.46214896", "0.46030727", "0.45932367", "0.45539597", "0.453638", "0.452...
0.67307985
0
Implementation of Exchange Mutation.
public Chromosome doExchangeMutation(){ for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){ ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection); int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()); int allele2 = C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "@Override\n\tpublic void process(Exchange arg0) throws Exception {\n\t\t\n\t}", "public abstract void mutate();", "public interface IExchange {\r\n}", "public ExchangeNode(PlanNodeId id, PlanNode inputNode) {\n super(id, inputNode, EXCHANGE_NOD...
[ "0.529279", "0.52303183", "0.52171314", "0.5178655", "0.5166114", "0.5134284", "0.5089284", "0.5050947", "0.50260836", "0.502122", "0.49965948", "0.4960623", "0.49396202", "0.49137238", "0.4880048", "0.48644108", "0.48626265", "0.48555243", "0.48555243", "0.4805139", "0.47800...
0.6151869
0
Implementation of Inversion Mutation.
public Chromosome doInversionMutation(){ for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){ ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection); int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()); int allele2 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void introduceMutations() {\n }", "@Override\n\tpublic void visit(InverseExpression arg0) {\n\n\t}", "@Override\n\tpublic void vInv() {\n\t\t\n\t}", "private int[] mutateInversionChild(int[] child) {\n println(\"before inversion mutation:\",1);\n displayChromosome(child, 1);\n ...
[ "0.60659415", "0.6036411", "0.602164", "0.58581525", "0.5815586", "0.5786929", "0.55541486", "0.5436703", "0.54079455", "0.5345374", "0.53193706", "0.53138185", "0.5311175", "0.5290694", "0.5267913", "0.5139395", "0.5132897", "0.5113834", "0.51126045", "0.5089727", "0.5068139...
0.6028491
2
Implementation of Insertion Mutation.
public Chromosome doInsertionMutation(){ for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){ ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection); int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()); int allele2 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insert()\n\t{\n\t}", "void visit(final Insert insert);", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public long insert();", "@Override\n\tpublic void insertProcess() {\n\t\t\n\t}", "@Override\n\tpublic void in...
[ "0.6987835", "0.6907016", "0.6775335", "0.6581289", "0.6500313", "0.6489727", "0.64752716", "0.6472935", "0.64540917", "0.64207363", "0.6397352", "0.6389864", "0.63619834", "0.6322387", "0.6320197", "0.6296456", "0.62691116", "0.62195563", "0.62098455", "0.61409676", "0.61408...
0.600338
29
Implementation of Displacement Mutation.
public Chromosome doDisplacementMutation(){ for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){ ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection); int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()); int allele2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void move() {\n _location.x++;\n }", "@Override\n public void update(float delta) {\n // Make sure to COPY the vector and not copy the reference\n position = new Vector3f(entity.getPosition()).add(offset);\n }", "public void recalculateVector()\r\n ...
[ "0.55656785", "0.53764737", "0.5305465", "0.5284273", "0.5238446", "0.5222301", "0.5192647", "0.5192647", "0.51350445", "0.5131993", "0.5128159", "0.5102674", "0.5096482", "0.5089484", "0.5081174", "0.505763", "0.50415283", "0.503971", "0.5031394", "0.50174433", "0.50017065",...
0.5293636
3
/////////////////////////// // Getters and Setters //// ///////////////////////////
public double getRwsValue() { return this.rwsValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init() {\n\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n protected void initialize() \n {\n ...
[ "0.6292075", "0.6282836", "0.6278325", "0.62685704", "0.6265129", "0.62468547", "0.6245696", "0.62451845", "0.6229859", "0.6229859", "0.6229859", "0.6229859", "0.6229859", "0.6229859", "0.6188869", "0.6172797", "0.61618423", "0.61257654", "0.6122507", "0.6107006", "0.60808975...
0.0
-1
constructor for Cardholder class
public Cardholder(String name, String address, int cardNumber){ this.name = name; this.address = address; this.cardNumber = cardNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card () {}", "Card(){\t \n}", "public Card()\n {}", "public Card() { this(12, 3); }", "public BaseballCard(){\r\n\r\n\t}", "public LaundryCard() {\n\t}", "public Card(){\n this.name = \"\";\n this.description = \"\";\n this.element = null;\n this.img = \"\";\n }...
[ "0.8325315", "0.81250733", "0.79931915", "0.79582024", "0.7815935", "0.7725793", "0.7656047", "0.76494026", "0.76472735", "0.7600083", "0.75491476", "0.75387794", "0.7504563", "0.7394533", "0.73737293", "0.7340295", "0.73391855", "0.7331391", "0.73288035", "0.7258825", "0.725...
0.7600168
9
getters for Cardholder class
public String getName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card getCard() {\n return this.card;\n }", "public Card getCard() {\n return this.card;\n }", "public Card getCard(){\n return cards.get(0);\n }", "CardController getCardController() { return cardController; }", "public Card getModelCard()\n {\n return modelCard;\n ...
[ "0.79394156", "0.7890454", "0.730692", "0.7302011", "0.72270346", "0.7181251", "0.7140364", "0.7064896", "0.7063803", "0.700259", "0.6981473", "0.6974481", "0.69554335", "0.691086", "0.68904394", "0.6873267", "0.68713814", "0.68544793", "0.6852242", "0.6812827", "0.6780286", ...
0.0
-1
setters for Cardholder class
public void setName(String name){ this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCard(Card card) {\n this.card = card;\n }", "public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }", "Card(){\t \n}", "public Card getCard() {\n return this.card;\n }", "public Card getCard...
[ "0.7880989", "0.7243182", "0.71980476", "0.7124708", "0.70168036", "0.6998493", "0.6932469", "0.6904203", "0.6840286", "0.6816911", "0.6720932", "0.67192084", "0.6715507", "0.6706456", "0.6687326", "0.66659576", "0.66500837", "0.6639827", "0.661396", "0.6600164", "0.65870136"...
0.0
-1
Private constructor for not allowing to create an instance of this class.
private CloneFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\...
[ "0.7745379", "0.7707285", "0.7602771", "0.7580024", "0.7521524", "0.74195397", "0.73710626", "0.73687595", "0.7367143", "0.7359746", "0.7332368", "0.73302007", "0.7327684", "0.72590905", "0.72309417", "0.7220057", "0.7150921", "0.71189815", "0.71060276", "0.70943487", "0.7084...
0.0
-1
Returns the cloned object of the given animal.
public static Animal getCopy(Animal animalType) throws CloneNotSupportedException { return animalType.makeCopy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Animal extends Cloneable {\r\n\tAnimal makeCopy();\r\n}", "public Animal deepCopy() {\n return new Eagle(this);\n }", "public abstract Object clone() ;", "Object clone();", "Object clone();", "public abstract Object clone();", "public Object clone();", "public Object clone();", ...
[ "0.6853366", "0.684231", "0.6836891", "0.6828213", "0.6828213", "0.6798881", "0.6736078", "0.6736078", "0.6736078", "0.6736078", "0.63367826", "0.63196653", "0.6297866", "0.6273829", "0.6263014", "0.6259493", "0.6227726", "0.62203366", "0.6205956", "0.61776406", "0.61203724",...
0.785819
0
The calling code must not call any methods after it called destroy().
public void destroy() { AwPacProcessorJni.get().destroyNative(mNativePacProcessor, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void destroy() {\n\t\t// Do nothing\n\t}", "@Override\r\n public void destroy() {\n }", "@Override\r\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void destro...
[ "0.8051312", "0.80494815", "0.80494815", "0.8035055", "0.80272204", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.8014831", "0.80127394", "0.8008693",...
0.0
-1
Strategy to the current Amplience locale string. The Amplience locale string is a list of locales which Amplience will try to use in turn when resolving a resource. See the Amplience documentation for the format of the locale string.
public interface AmplienceLocaleStringStrategy { /** * Get the current Amplience locale string. * * @return The string that contains the Amplience locale string for the current context. */ String getCurrentLocaleString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<String> locale() throws DynamicCallException, ExecutionException {\n return call(\"locale\");\n }", "java.lang.String getLocale();", "public String locale() throws DynamicCallException, ExecutionException {\n return (String)call(\"locale\").get();\n }", "String getCurrentLoc...
[ "0.65554637", "0.63637966", "0.6293512", "0.6177255", "0.6093718", "0.6035126", "0.5996084", "0.59700525", "0.5946917", "0.5881669", "0.58634317", "0.570811", "0.56562364", "0.5649776", "0.5628237", "0.5627703", "0.55519366", "0.5547548", "0.5547548", "0.55445176", "0.5532099...
0.7818969
0
Get the current Amplience locale string.
String getCurrentLocaleString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AmplienceLocaleStringStrategy\n{\n\t/**\n\t * Get the current Amplience locale string.\n\t *\n\t * @return The string that contains the Amplience locale string for the current context.\n\t */\n\tString getCurrentLocaleString();\n}", "java.lang.String getLocale();", "public String getLocale() {...
[ "0.7454999", "0.6989749", "0.6849447", "0.6849447", "0.68484885", "0.6808048", "0.6581093", "0.65135866", "0.64711386", "0.63204557", "0.6287046", "0.6207329", "0.6200015", "0.61513203", "0.61475974", "0.6144941", "0.6086509", "0.6081781", "0.60738724", "0.60430616", "0.59862...
0.7566103
0
className:DepartmentDao discription: author:zn createTime:20190114 09:39
public interface DepartmentDao { /** * 部门列表查询 * @return */ @Select("select deptno,dname,loc from department") List<Map> getDeptList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DeptDao {\n //动态查询\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"selectWithParam\")\n List<Dept> selectByPage(Map<String,Object> params);\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"count\")\n Integer count(Map<String,Object> params);\n @Select(\"sel...
[ "0.69014204", "0.683227", "0.6773911", "0.6578795", "0.65422404", "0.6430999", "0.6367531", "0.6266676", "0.62588483", "0.6231974", "0.6231808", "0.61647713", "0.6090195", "0.6088904", "0.60807306", "0.60704595", "0.6054674", "0.6053635", "0.6043026", "0.6042478", "0.6029729"...
0.6611724
3
private Filter myFilter; private boolean isFiltered; private boolean inDeletionMode = false; private Set countersToDelete = new HashSet();
public ArrayListFoodAdapter(Context context, FoodDAO foodDAO, AutoCompleteTextView refAutocomplete) { super(foodDAO.getAllFood()); this.foodDAO = foodDAO; mResults = foodDAO.getAllFood(); // refAutocomplete.setAdapter(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(37)\n boolean getFilterCleared();", "boolean hasFiltered() {\n return filtered;\n }", "@Override\n\tpublic String delete(Set<String> filterField) {\n\t\treturn null;\n\t}", "public void setFiltered(boolean filtered) {\n this.filtered = filtered;\n }", "void compareDeletion();", ...
[ "0.6466778", "0.6164823", "0.59751785", "0.5961166", "0.59257674", "0.5890892", "0.58385956", "0.57923496", "0.5743751", "0.5604553", "0.5601836", "0.5593092", "0.55881834", "0.55698466", "0.55698466", "0.5559448", "0.5557023", "0.5508923", "0.54852426", "0.5480784", "0.54680...
0.0
-1
/ wanyi.cpp Created on: 20121110 Author: 7
public static int Main() { int[] x = new int[1000]; int[] y = new int[1000]; char a; int i = 0; int j; int num = 0; int max = 0; int n; int minx = 10000; int maxy = 0; while ((x[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true))).length() > 0) { if (x[i] < minx) { minx = x[i];...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "public static void hvitetest1w(){\r\n\t}", "void mo57278c();", "void mo1940i();", "public void mo21785J() {\n }", "void mo67924c();", "public void mo38117a() {\n }", "public void mo21784I() {\n }", "public void mo21783H() {\n }", "void m...
[ "0.6371275", "0.63628775", "0.6332236", "0.63242954", "0.63171047", "0.63112676", "0.63076335", "0.6274632", "0.62714034", "0.62551796", "0.6251298", "0.6244713", "0.6229502", "0.62244946", "0.622312", "0.6215881", "0.62003917", "0.61854416", "0.6182794", "0.6174523", "0.6172...
0.0
-1
Construct an Equation Data Structure from a file
public EqDS_DSPFFD(String file, EquationStandardSession session) { super(file, 37); this.file = file; setUp(session); // final setup initialDefaultValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Equation> compile(File file) throws IOException;", "Map<String, Equation> compile(InputStream stream) throws IOException;", "public interface EquationFactory {\n\n /**\n * Creates a new ready-to-use data structure from configuration file\n *\n * @param file the configuration\n *\...
[ "0.693594", "0.6620032", "0.65263015", "0.60617447", "0.59781647", "0.5770928", "0.56961197", "0.56218046", "0.56094855", "0.56022215", "0.5579554", "0.5559139", "0.5508822", "0.5499761", "0.5463736", "0.54575753", "0.5396391", "0.5365627", "0.536295", "0.53256804", "0.532262...
0.0
-1
this method will delete the file.
private void deleteFile(Statement statement, ResultSet resultSet, Connection connection) { // delete the file try { SQLToolbox.closeResulset(resultSet); SQLToolbox.closeStatement(statement); String command = "DLTF FILE(QTEMP/GZFFD)"; String query = SQLToolbox.getQcmdexcString(command); statement ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void delete()\n {\n if (this.file.exists())\n {\n this.file.delete();\n }\n }", "public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }", "@Override\n public void delete(File file) {\n }", "private void deleteFile(...
[ "0.862604", "0.8412159", "0.8101772", "0.80686116", "0.8056679", "0.79099786", "0.76640195", "0.74746764", "0.7449602", "0.7368034", "0.73378223", "0.72865164", "0.7274002", "0.72419816", "0.7109713", "0.7079455", "0.70786273", "0.7044755", "0.697666", "0.69347894", "0.692622...
0.0
-1
Return the file name
public String getFile() { return file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String ge...
[ "0.89117384", "0.89117384", "0.89117384", "0.89117384", "0.89117384", "0.89117384", "0.89117384", "0.89117384", "0.89117384", "0.86412144", "0.86412144", "0.850647", "0.850647", "0.850647", "0.850647", "0.850647", "0.83113015", "0.8270117", "0.82530546", "0.82530546", "0.8198...
0.0
-1
Creates new form SelecionarRancho
public SeleccionarRancho() { setExtendedState(JFrame.MAXIMIZED_BOTH); initComponents(); Image i = null; i = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/resources/logo tru-test.png")); setIconImage(i); // setLocationRelativeTo(null); ranchoSelecto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public void generarCuestionario() {\n \n try{\n Valid...
[ "0.6726156", "0.6463482", "0.6369001", "0.6337812", "0.6332046", "0.62075067", "0.61693877", "0.61333364", "0.60946023", "0.60670674", "0.6055318", "0.605456", "0.60273826", "0.60204387", "0.596972", "0.5963486", "0.59619087", "0.5959247", "0.59579384", "0.59444237", "0.59317...
0.62884825
5
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() { jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); etiqueta1 = new abstractt.Etiqueta(); btn_aceptar = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73174816", "0.72889656", "0.72889656", "0.72889656", "0.72851485", "0.72464716", "0.72125894", "0.7207057", "0.7193868", "0.71885675", "0.7182908", "0.7157434", "0.71464336", "0.70908433", "0.70803434", "0.7056725", "0.6985344", "0.69753206", "0.6953884", "0.6953616", "0.6...
0.0
-1
Lance la simulation rapide
public void quickSimulation() { new SimulationControleur(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int simulate();", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "public abstract void simulate();", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1...
[ "0.6505171", "0.64878273", "0.6410619", "0.6401821", "0.6390463", "0.62583363", "0.62445736", "0.6166118", "0.60902125", "0.60887086", "0.60543203", "0.60382396", "0.6022065", "0.6011982", "0.60082537", "0.5982403", "0.5950259", "0.59498954", "0.5936011", "0.5933753", "0.5927...
0.698118
0
Make procedures on Patient.
private void makeProcedures(Patient patient, String proc) { patient.setLastProcedure(proc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerPatientMethod1(Patient p);", "ProcedureCall createProcedureCall();", "public void careForPatient(Patient patient);", "public void tweakProcedure(Procedure proc) {\n }", "ProcedureDecl createProcedureDecl();", "void AddPatiant(Patient p) throws Exception;", "protected void updateP...
[ "0.6291421", "0.6037459", "0.573122", "0.5606748", "0.5591482", "0.55320084", "0.54983824", "0.5471573", "0.5467487", "0.5389158", "0.5238116", "0.5237797", "0.52369213", "0.5224088", "0.52081686", "0.52019745", "0.5189897", "0.51549774", "0.51066834", "0.51023406", "0.506920...
0.7773028
0
Set diagnosis for patient.
private void makeDiagnosis(Patient patient, String diagnosis) { patient.setDiagnosis(diagnosis); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDiagnosis(String theDiagnosis)\n {\n if(!theDiagnosis.equals(null) && !theDiagnosis.equals(\"\") &&\n theDiagnosis.length() > 0)\n {\n this.diagnosis = theDiagnosis;\n \n }//end of IF\n \n else\n {\n this.diagno...
[ "0.7456551", "0.60827047", "0.5846599", "0.5804611", "0.57789373", "0.56850815", "0.5671563", "0.5669551", "0.5646999", "0.55786985", "0.55415547", "0.549526", "0.5491534", "0.54569936", "0.53964907", "0.5390876", "0.5378612", "0.5334687", "0.5330152", "0.53274345", "0.532583...
0.7565752
0
Give patient a recipe.
private void giveRecipe(Patient patient) { patient.setHasRecipe(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Recipe getRecipe() {\r\n return recipe;\r\n }", "@Override\n public void showRecipe(Recipe recipe) {\n mName.setText(recipe.getName());\n mServings.setSelection(mPresenter.getServingsSelection());\n mPreparationTime.setSelection(mPresenter.getPreparationTimeSelection());\...
[ "0.6443774", "0.6354208", "0.6342275", "0.63385683", "0.63161933", "0.62483585", "0.6169747", "0.6150255", "0.61055535", "0.6055324", "0.60491556", "0.6039106", "0.60348976", "0.601741", "0.60148394", "0.6009049", "0.5988693", "0.5872324", "0.581816", "0.58082163", "0.5794349...
0.8171478
0
Send patient to make some health test.
private void assignTests(Patient patient, String test) { patient.setTestToPass(test); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "@Test(priority = 1, groups= {\"regression\",\"smoke\"})\r\n\tpublic void PrintHospitals()\r\n\t{\r\n\t\tlogger= report.createTest(\"Printing Hospitals as per requirement\");\r\n\t\tDispl...
[ "0.57494694", "0.5656614", "0.560888", "0.5590696", "0.5498365", "0.5461072", "0.54107255", "0.540732", "0.5356648", "0.53532135", "0.5330773", "0.5317514", "0.5287804", "0.5280004", "0.5219135", "0.52165955", "0.52033514", "0.52026606", "0.519428", "0.5164429", "0.5163703", ...
0.507575
34
Visit patient at its house.
private void visitPatientAtHome(Patient patient) { patient.setHomeVisited(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().c...
[ "0.6684164", "0.61110246", "0.5897661", "0.58778256", "0.5827198", "0.5749169", "0.56805617", "0.5680053", "0.5631049", "0.56232226", "0.5498021", "0.5445321", "0.54352766", "0.53978366", "0.532124", "0.53135306", "0.52882606", "0.52755815", "0.5231097", "0.5214744", "0.51912...
0.65172434
1
Getter for hospital number.
public int getHospitalNumber() { return this.hospitalNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHospitalPhone() {\n return hospitalPhone;\n }", "public String getHospitalId() {\n return hospitalId;\n }", "public String getHospital() {\r\n return hospital;\r\n }", "public String getHospitalLevel() {\n return hospitalLevel;\n }", "public String getHosp...
[ "0.76383585", "0.7530738", "0.7129818", "0.6913819", "0.6867322", "0.6482236", "0.6482236", "0.6482236", "0.6458814", "0.64577466", "0.63899374", "0.6387454", "0.6386213", "0.6372253", "0.6361908", "0.63549316", "0.6350678", "0.63447714", "0.633338", "0.63091844", "0.62689495...
0.87298
0
Setter for hospital number.
public void setHospitalNumber(int newHospitalNumber) { this.hospitalNumber = newHospitalNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHospitalNumber() {\n return this.hospitalNumber;\n }", "private void setHospital(String p_hospital){\n\t\tthis.nombreHospital = p_hospital;\n\t}", "public void setHospital(String hospital) {\r\n this.hospital = hospital;\r\n }", "public void setHospitalPhone(String hospitalPhone) ...
[ "0.73482054", "0.7266527", "0.71376526", "0.6826685", "0.67554003", "0.67554003", "0.67554003", "0.655087", "0.6467126", "0.6358378", "0.63441926", "0.6114865", "0.60589665", "0.60444576", "0.6020202", "0.6015775", "0.6013356", "0.5988519", "0.597605", "0.5951426", "0.5947826...
0.80455464
0
Setter for this class
public void setAnimals(ArrayList<Animal> animals) { this.animals = animals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setX(int x) { this.x=x; }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public ...
[ "0.6519724", "0.6434125", "0.6402108", "0.6358036", "0.63557583", "0.63199854", "0.631696", "0.6314754", "0.6303906", "0.62921053", "0.6252601", "0.6200338", "0.619954", "0.61947596", "0.61528105", "0.61379766", "0.61357087", "0.61336243", "0.60929406", "0.60749066", "0.60462...
0.0
-1
Getters for this class
public String getFILE_NAME() { return FILE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n String get();", "@Override\n public void get() {}", "public Method getGetter() {\n return this.getter;\n }", "public int getAge() {return age;}", "public Set<ObjectLabel> getGetters() {\n if (getters == null)\n return Collections.emptySet();\n if (Options.g...
[ "0.66014546", "0.65650696", "0.6443942", "0.6436526", "0.64277047", "0.6395635", "0.63567156", "0.62935877", "0.6250907", "0.6249754", "0.6248908", "0.6225938", "0.6224623", "0.62198997", "0.6219757", "0.6211309", "0.6205373", "0.61891997", "0.6176155", "0.6173546", "0.616997...
0.0
-1
Fetching animals data from csv file
public void createAnimalsCollection() { ArrayList<DataSetAnimal> animalsFetched = getDFO().getAnimalData(getFILE_NAME()).getAnimals(); setAnimals(new ArrayList<>()); for (DataSetAnimal animal: animalsFetched) { String tmpBreed = animal.getBreedOrType().substring(animal.getBreedOrType...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readInCategories() {\n // read CSV file for Categories\n allCategories = new ArrayList<Category>();\n InputStream inputStream = getResources().openRawResource(R.raw.categories);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n ...
[ "0.6516986", "0.6439006", "0.63742757", "0.6210861", "0.60985214", "0.59988886", "0.59413284", "0.5940211", "0.5878879", "0.58661294", "0.5844267", "0.58371216", "0.583465", "0.5831855", "0.5820985", "0.57553834", "0.57498527", "0.5715513", "0.56867146", "0.56597614", "0.5634...
0.56578565
20
Printing collection of animals to the console, sorted alphabetically
public void printAlphabetically() { if (getAnimals().size() > 0) { System.out.println("======== Animals sorted alphabetically ========"); getAnimals().stream() .sorted(Comparator.comparing(Animal::getName)).collect(Collectors.toList()) .forEach(ani...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String printAlbumsAlphabetical() throws IOException\r\n {\r\n\t// Sort the albums alphabetically. Iterate over the list and\r\n\t// print details of each album\r\n\tCollections.sort(albumCollection);\r\n\r\n\t// Print each of the sorted albums\r\n\tString outputString = \"Printing Albums ordered by artist...
[ "0.70695764", "0.6952907", "0.6703184", "0.6563534", "0.65458804", "0.6545719", "0.64614564", "0.6410575", "0.63738805", "0.6348364", "0.63089037", "0.6308038", "0.6249787", "0.6231804", "0.6228121", "0.62253696", "0.62147486", "0.6212601", "0.6155117", "0.615388", "0.6122536...
0.8446694
0
Printing animal details to the console
public String printDetails(Animal animal) { return animal.getName() + " - " + animal.getBreedOrType() + ", born in " + animal.getYearOfBirth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void information() {\n System.out.println(\"\");\n System.out.println(\"Dog :\");\n System.out.println(\"Age : \" + getAge());\n System.out.println(\"Name : \" + getName());\n System.out.println(\"\");\n }", "public void printDogs(){\n System.out...
[ "0.7198903", "0.70191103", "0.6851546", "0.68470395", "0.68449503", "0.68395203", "0.67242813", "0.6693776", "0.6687121", "0.66528964", "0.6609679", "0.6587069", "0.65498817", "0.65356827", "0.652346", "0.65211385", "0.6502335", "0.64989877", "0.6486415", "0.6481339", "0.6472...
0.7607028
0
Filtering collection of animals by breed or name
public ArrayList<Animal> filterAnimals(String field, String value) { ArrayList<Animal> filteredAnimals = new ArrayList<>(); if (getAnimals().size() > 0) { if (field.equals("breed")) filteredAnimals = (ArrayList<Animal>) getAnimals().stream() .filter(an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Dog> dogsOfBreed(String breed){\n ArrayList<Dog> dogsOfBreed = new ArrayList<Dog>();\n\n for(Dog d : dogs){\n if(d.getBreed().equals(breed)){\n dogsOfBreed.add(d);\n }\n }\n\n return dogsOfBreed;\n }", "public void sortByBreed()...
[ "0.62349933", "0.61240304", "0.5718964", "0.56021", "0.55211616", "0.5500689", "0.5469838", "0.5457808", "0.54515547", "0.5336369", "0.5334652", "0.5332414", "0.533037", "0.52677137", "0.5247935", "0.5197961", "0.51780224", "0.5156035", "0.51254535", "0.5124054", "0.5105053",...
0.68920606
0
Filtering collection of animals by year
public ArrayList<Animal> filterAnimals(String field, int value) { ArrayList<Animal> filteredAnimals = new ArrayList<>(); if (getAnimals().size() > 0) if (field.equals("year")) filteredAnimals = (ArrayList<Animal>) getAnimals().stream() .filter(animal -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Vehicle> findByYear(BigDecimal year) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles.year_model\", Operation.EQ, year));\n operations.add(getVehicleProjection());\n ...
[ "0.6065296", "0.5900115", "0.5881745", "0.57678974", "0.5726888", "0.57233924", "0.56664544", "0.56479377", "0.5638916", "0.55804837", "0.5532941", "0.5493871", "0.5452873", "0.5452873", "0.54441816", "0.544153", "0.54402614", "0.54171866", "0.5408806", "0.5408706", "0.540870...
0.66620755
0
Filtering collection of animals to create swimmers collection
public ArrayList<Animal> createSwimmers() { ArrayList<Animal> swimmers = new ArrayList<>(); if (getAnimals().size() > 0) swimmers = (ArrayList<Animal>) getAnimals().stream() .filter(animal -> animal instanceof Swimmer) .collect(Collectors.toList()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createAnimalsCollection() {\n ArrayList<DataSetAnimal> animalsFetched = getDFO().getAnimalData(getFILE_NAME()).getAnimals();\n setAnimals(new ArrayList<>());\n for (DataSetAnimal animal: animalsFetched) {\n String tmpBreed = animal.getBreedOrType().substring(animal.getBr...
[ "0.6377842", "0.5929486", "0.56758887", "0.56592053", "0.56504655", "0.55920666", "0.55386347", "0.5532748", "0.5384654", "0.53698057", "0.5353024", "0.5346001", "0.53341556", "0.52760124", "0.5257586", "0.52384204", "0.5193432", "0.5136823", "0.5135125", "0.51280993", "0.508...
0.7199988
0
Created by Anton on 18.09.2014.
public interface Destination { public String readLabel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\t...
[ "0.5863147", "0.5804755", "0.57917285", "0.5751191", "0.5698817", "0.5660505", "0.56580925", "0.56580925", "0.56552124", "0.56350964", "0.5629163", "0.5624106", "0.5609534", "0.5607706", "0.5603585", "0.5597105", "0.5574526", "0.55695426", "0.55685526", "0.5545798", "0.552549...
0.0
-1
No further instances allowed
private Swiftbuy() { super("swiftbuy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }", "private boolean isEmpty(){\n return (numInstances() == 0);\n }", "@Override\n public boolean isInstantiable() {\n return false;\n }", "public Instances notCoveredBy(Instances data) ...
[ "0.67594016", "0.6251031", "0.59999865", "0.5938237", "0.58646846", "0.585787", "0.5810515", "0.57986826", "0.5791139", "0.5781252", "0.5724278", "0.56935054", "0.56888044", "0.5685522", "0.56732947", "0.5647899", "0.5631567", "0.5616412", "0.561355", "0.55945885", "0.5539294...
0.0
-1
pg_dump i h localhost p 5432 U postgres F c b v f "/usr/local/backup/10.70.0.61.backup" old_db
public Process backupIt(String fileAndPath) { try { //F olarak t verildi yani tar dosya biçimi final ProcessBuilder pb = new ProcessBuilder(commandPath + "pg_dump.exe", "-f", fileAndPath, "-F", "t", "-v", "-h", IP, "-U", user, dbase); pb.environment().put(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean dumpDatabase() {\n Statement stm = null;\n try {\n stm = getConnection().createStatement();\n stm.executeUpdate(\"backup to db/backup.db\");\n }\n catch(Exception e) {\n e.printStackTrace();\n return false;\n ...
[ "0.59233564", "0.5563819", "0.51107544", "0.49543962", "0.49537903", "0.48355857", "0.48338664", "0.47790584", "0.46896783", "0.46606308", "0.4647409", "0.46360946", "0.457921", "0.45576882", "0.45193446", "0.4490559", "0.44856307", "0.44840565", "0.44792655", "0.44775996", "...
0.5918189
1
Instantiates a new graph node.
public GraphNode(String db, String table, List<Predicate> predicates) { this.db = db; this.table = table; this.predicates = predicates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node(){}", "public void create(NetworkNode networkNode);", "public Graph() {\n }", "public VISNode() {\n this.model = new VISNodeModel...
[ "0.72950745", "0.72950745", "0.7194533", "0.7194533", "0.7194533", "0.7194533", "0.7173509", "0.70947206", "0.6974162", "0.6933513", "0.6869336", "0.6861136", "0.6834029", "0.6824395", "0.6824395", "0.6822533", "0.67881584", "0.6772991", "0.67674166", "0.6748443", "0.6747511"...
0.0
-1
Standard constructor that adds this JacobObject to the memory management pool.
public JacobObject() { ROT.addObject(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjectPool() {\n }", "public Memory() {\r\n init();\n ruletables = new RuleTables(this);\n budgetfunctions = new BudgetFunctions(this);\r\n }", "public Memory() {\n this(false);\n }", "Memory() {}", "public PoolBoneCpManager() {\n pool = null;\n }", "privat...
[ "0.7101484", "0.66645557", "0.651883", "0.6516652", "0.615242", "0.6136092", "0.6125935", "0.6111598", "0.5994099", "0.5987978", "0.5985403", "0.5961042", "0.5917398", "0.5914178", "0.5898308", "0.5873746", "0.5851454", "0.5848774", "0.5833982", "0.58292186", "0.58224046", ...
0.5781665
25
Finalizers call this method. This method should release any COM data structures in a way that it can be called multiple times. This can happen if someone manually calls this and then a finalizer calls it.
public void safeRelease() { // currently does nothing - subclasses may do something if (isDebugEnabled()) { // this used to do a toString() but that is bad for SafeArray debug("SafeRelease: " + this.getClass().getName()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalize() {\r\n if ( componentHistogram != null ) {\r\n componentHistogram.dispose();\r\n componentHistogram = null;\r\n }\r\n\r\n if ( componentLUT != null ) {\r\n componentLUT.dispose( false );\r\n componentLUT = null;\r\n }\r\n...
[ "0.7059561", "0.69709396", "0.68783534", "0.6861403", "0.6835393", "0.67509675", "0.673921", "0.66634953", "0.66634953", "0.6646586", "0.6645432", "0.664313", "0.6631796", "0.66283685", "0.662658", "0.6596812", "0.6596224", "0.6579202", "0.6579202", "0.6579202", "0.6579202", ...
0.0
-1
Loads JacobVersion.Properties and returns the value of version in it
@Deprecated public static String getBuildDate() { return JacobReleaseInfo.getBuildDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBuildVersion() {\n try {\n Properties versionFileProperties = new Properties();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(\"version.properties\");\n if (inputStream != null) {\n versionFileProperties.load(inpu...
[ "0.69517577", "0.67890567", "0.6442593", "0.621471", "0.6185519", "0.6152811", "0.6011372", "0.59000194", "0.59000194", "0.5892742", "0.5849585", "0.5822764", "0.5807139", "0.5807139", "0.5807139", "0.5807139", "0.5807139", "0.5807139", "0.5807139", "0.5807139", "0.5767599", ...
0.0
-1
Loads JacobVersion.Properties and returns the value of version in it
@Deprecated public static String getBuildVersion() { return JacobReleaseInfo.getBuildVersion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBuildVersion() {\n try {\n Properties versionFileProperties = new Properties();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(\"version.properties\");\n if (inputStream != null) {\n versionFileProperties.load(inpu...
[ "0.6950605", "0.6787974", "0.64420044", "0.62136006", "0.6185172", "0.61526144", "0.6008798", "0.58991975", "0.58991975", "0.58928734", "0.5851231", "0.5821895", "0.5805934", "0.5805934", "0.5805934", "0.5805934", "0.5805934", "0.5805934", "0.5805934", "0.5805934", "0.5767173...
0.0
-1
Very basic debugging function.
protected static void debug(String istrMessage) { if (isDebugEnabled()) { System.out.println(Thread.currentThread().getName() + ": " + istrMessage); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void debug() {\n\n }", "public void debug(String msg);", "private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}", "private static void printDebug(String s)\n {\n }", "public void debug(String comment);", "@Override\r\n\t\t\tpublic void debug(String arg) {...
[ "0.82197523", "0.775272", "0.7724322", "0.7675034", "0.75877017", "0.75385225", "0.7502887", "0.7488602", "0.74730486", "0.74579513", "0.74384356", "0.7382566", "0.73658025", "0.72464406", "0.72293353", "0.7182977", "0.7160009", "0.7155819", "0.7145224", "0.7133135", "0.71269...
0.0
-1
Spring Data Elasticsearch repository for the Activity entity.
public interface ActivitySearchRepository extends ElasticsearchRepository<Activity, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DashboardSearchRepository extends ElasticsearchRepository<Dashboard, Long> {\n}", "@Repository\npublic interface ArticleRepository extends ElasticsearchRepository<Article, Integer> {\n\n}", "public interface OrderEntitySearchRepository extends ElasticsearchRepository<OrderEntity, Long> {\n}", ...
[ "0.6909409", "0.68812335", "0.67403597", "0.67366284", "0.6728613", "0.6712676", "0.67044693", "0.66577053", "0.664022", "0.66353804", "0.66328764", "0.6606906", "0.6601251", "0.6585675", "0.65562254", "0.6519891", "0.6517794", "0.65165293", "0.65028644", "0.6490124", "0.6475...
0.81623656
0
Called when message is received.
@Override public void onMessageReceived(RemoteMessage remoteMessage) { // [START_EXCLUDE] // There are two types of messages data messages and notification messages. Data messages are handled // here in onMessageReceived whether the app is in the foreground or background. Data messages are t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "void onMessageReceived(Message message);", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.ge...
[ "0.81209755", "0.8038442", "0.785025", "0.78344184", "0.7831355", "0.7821942", "0.77962995", "0.77816933", "0.7694074", "0.7620561", "0.75502455", "0.75168604", "0.7508862", "0.7507424", "0.75019807", "0.74520934", "0.7443572", "0.7413645", "0.7413645", "0.7413645", "0.741364...
0.0
-1
Handle time allotted to BroadcastReceivers.
private void handleNow() { Log.d(TAG, "Short lived task is done."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onReceive(Context context, Intent intent) {\n ArrayList<String> key=intent.getStringArrayListExtra(\"time\");\n Calendar calendar = Calendar.getInstance();\n int hours = calendar.get(Calendar.HOUR_OF_DAY);\n int minutes = calendar.get(Calendar.MINUTE);\n ...
[ "0.65481013", "0.6227563", "0.6119886", "0.609919", "0.60719305", "0.6054735", "0.60473776", "0.60331017", "0.5990248", "0.5901309", "0.5870208", "0.5855878", "0.58536947", "0.58456266", "0.58456266", "0.58456266", "0.58456266", "0.58456266", "0.5836348", "0.58306164", "0.579...
0.0
-1
Create and show a simple notification containing the received FCM message.
private void sendNotification(String messageBody) { Log.d(TAG, messageBody); NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n super.onMessageReceived(remoteMessage);\n\n if (remoteMessage.getData().size() > 0) {\n Log.d(\"Remote message\", String.valueOf(remoteMessage.getData()));\n }\n String title = Objects.requireNonNul...
[ "0.68718606", "0.6866856", "0.6847912", "0.68435824", "0.6824095", "0.6822237", "0.6755915", "0.6726712", "0.672503", "0.67226255", "0.6707804", "0.6693785", "0.6619685", "0.6617067", "0.66154075", "0.66024387", "0.65995663", "0.6591992", "0.656111", "0.654328", "0.65321124",...
0.60375756
85
Return a URL to the requested resource.
public URL resolveResource(final String resourcePath) throws MalformedURLException { File resourceFile = new File(getFullPath(resourcePath)); if (resourceFile.exists()) { return resourceFile.toURL(); } if (LOG.isTraceEnabled()) { LOG.trace("Resource at \n\t" + resourceFile.getPath() + " not found."); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getURL();", "Uri getUrl();", "public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "String url();", "URL getUrl(...
[ "0.72909963", "0.72789896", "0.71878827", "0.71609074", "0.71609074", "0.71609074", "0.71609074", "0.7151074", "0.70675904", "0.70327264", "0.7012294", "0.6978672", "0.6967325", "0.6967325", "0.6967325", "0.6967325", "0.6967325", "0.6967325", "0.6937827", "0.69306576", "0.692...
0.0
-1
Gets the full file system path to a resource given the partial path.
public abstract String getFullPath(final String resourcePath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}", "String getRealPath(String path);", "public abstract String getFullPath...
[ "0.6772", "0.67516905", "0.6553255", "0.64549935", "0.6427456", "0.6340761", "0.62920916", "0.6283988", "0.6257684", "0.62417275", "0.6105489", "0.6073878", "0.6073878", "0.6073878", "0.6073878", "0.6073878", "0.6054361", "0.59878063", "0.59254616", "0.5919315", "0.5882116", ...
0.7184833
0
tport home set [player] [TPort name]
@Override public void run(String[] args, Player player) { if (args.length == 2) { if (!emptySetPlayerTPort.hasPermissionToRun(player, true)) { return; } TPortInventories.openHomeEditGUI(player); } else if (args.length == 3) { i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void set(final Player t) {\n\r\n\t}", "public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.o...
[ "0.64553744", "0.6415346", "0.6128763", "0.61122054", "0.60337377", "0.59925973", "0.59869283", "0.5976126", "0.59162533", "0.5884636", "0.58499694", "0.5844439", "0.5817372", "0.5792887", "0.57808506", "0.5765065", "0.5757662", "0.57481205", "0.57436585", "0.5742053", "0.573...
0.681559
0
final Position posit1 = new Position(3207,3220,2); final Position posit2 = new Position(3207,3219,2); final Position posit3 = new Position(3207,3218,2); final Position posit4 = new Position(3208,3220,2); final Position posit5 = new Position(3208,3219,2); final Position posit6 = new Position(3208,3218,2); final Position...
public int onLoop() throws InterruptedException{ if(inventory.isFull()) { inventory.dropAll("Logs"); sleep(random(2500,4000)); shortTermAntiban(); }else { cutTree(); sleep(random(500,1000)); } return 500; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void parsePosition(String[] pos){\n\t\tint x,y;\n\t\tleftScale=Double.parseDouble(pos[3])/(leftBitmap.getWidth()*1.0/2);\n\t\tscale(ib_analog_l,leftBitmap,leftScale);\n\t\tint i=0;\n\t\tsetMode(Integer.parseInt(pos[i++]));\n\t\tif(isMode(MODE1)){\n\t\t\tbutton_mode1.setChecked(true);\n\t\t}\n\t\tif(isMode(MODE2)){...
[ "0.6268902", "0.6166118", "0.61616105", "0.61318916", "0.611754", "0.5983438", "0.5971866", "0.59646124", "0.59269625", "0.58372474", "0.57970864", "0.5794241", "0.57911164", "0.5775912", "0.5742686", "0.57085663", "0.5706425", "0.569843", "0.56684077", "0.5646834", "0.564540...
0.0
-1
log("Antiban = Moving the camera");
public void cameraRotation() throws InterruptedException { int lowSide = (int)random(1,4); int highSide = (int)random(5,10); int medLowSide = (int)random(10,15); int medHighSide = (int)random(35,60); int highLowSide = (int)random(70,100); int highHighSide = (int)random(200,300); int cameraRotRandom ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void moveCamera() {\n\n\t}", "public void updateCamera() {\n\t}", "public static void camDebug(Camera camera) {\n\t}", "private void moveCamera(float tpf) {\n //Place the camera at the node\n this.getCamera().setLocation(cameraNode.getLocalTranslation().multLocal(1,0,1).add(...
[ "0.7439807", "0.70505416", "0.69580024", "0.693812", "0.68630666", "0.6737074", "0.6716315", "0.6664952", "0.6606811", "0.65525544", "0.65431684", "0.6469783", "0.64266247", "0.6417439", "0.6405307", "0.63147026", "0.6289205", "0.6176955", "0.6161576", "0.61582106", "0.615037...
0.6031144
32
random mouse movements over the screen log("antiban, mouse movements");
public void mouseMovements() throws InterruptedException{ int intMouseX = (int)random(10,700); int intMouseY = (int)random(10,400); int randomMouse = (int)random(0,1000); // small movements if (randomMouse <= 400) { getMouse().move(intMouseX,intMouseY); sleep(random(100,300)); getMouse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\...
[ "0.6949888", "0.67936474", "0.6514197", "0.6485939", "0.6408509", "0.6361136", "0.62787056", "0.62731445", "0.6228517", "0.6203059", "0.61742187", "0.61565953", "0.6132541", "0.61310565", "0.6130372", "0.6037738", "0.6011548", "0.5977791", "0.59663314", "0.5965777", "0.594265...
0.722976
1
CRUD operations for product get one product
@RequestMapping(value = "/api/products/{id}", method = RequestMethod.GET) public Product getOneProduct(@PathVariable("id") long id) { return this.productRepo.findById(id).orElseThrow(() -> { throw new ProductNotFoundException(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Product getProductById(Integer productId);", "Product getProductById(Integer productId);", "Product findProductById(Long id);", "Product getProductByID(Long id);", "@GetMapping(\"/products/{id}\")\r\n\t@ApiOperation(value=\"Return unique product.\")\r\n\tpublic Product showOneProduct(@PathVariable(value=\"...
[ "0.75045645", "0.75045645", "0.7435943", "0.73872286", "0.738021", "0.7374757", "0.7336685", "0.7189181", "0.71691877", "0.710464", "0.70614845", "0.7011986", "0.7002974", "0.6948302", "0.69181514", "0.6902543", "0.68711853", "0.68702215", "0.6850991", "0.68392867", "0.680601...
0.70770526
10
Created by fowafolo Date: 16/5/25 Time: 17:03
public interface PopDAO extends GeneralDAO<PopTable> { public List<PopTable> getPopRankList(int limit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo38117a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private void poetries() {\n\n\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public void ...
[ "0.5458822", "0.5441621", "0.53577024", "0.534927", "0.5342813", "0.5336522", "0.5327996", "0.52702534", "0.52671", "0.52478033", "0.52478033", "0.52478033", "0.52478033", "0.52478033", "0.52478033", "0.52478033", "0.5240445", "0.5213676", "0.5212339", "0.5208812", "0.5195765...
0.0
-1