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
Deletes element x from heap. Time complexity: O(logn) Space complexity: O(1)
public void delete(Node<T> x) { decreaseKey(x, min.key); extractMin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void binomialHeapDelete(Node x) {\n\t\tthis.binomialHeapDecreaseKey(x, Integer.MIN_VALUE);\n\t\tthis.binomialHeapExtractMin();\n\t}", "public int remove() \r\n { \r\n int v = h[1];\r\n hPos[v] = 0; // v is no longer in heap\r\n h[N+1] = 0; // put null node into empty spot\r\n ...
[ "0.7974161", "0.72397953", "0.7199337", "0.7128657", "0.7072829", "0.70670944", "0.70638275", "0.7063822", "0.703273", "0.6952865", "0.6899073", "0.68522507", "0.68450534", "0.67978334", "0.67452025", "0.6727487", "0.66493434", "0.6646915", "0.651846", "0.64724", "0.64422995"...
0.67008847
16
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
The recursive tree building function
@SuppressWarnings("unchecked") private void build(Node<VirtualDataSet> node) { if (node == null) throw new NullPointerException("Cannot built a decision (sub)tree for a null node."); VirtualDataSet set = node.data; if (set == null || set.getNumberOfDatapoints() == 0 || set.getNumberOfAttributes() == 0) throw new IllegalStateException("The dataset is in an invalid state!"); if (set.getNumberOfAttributes() == 1) // We have only the class attribute left return; if (set.getAttribute(set.getNumberOfAttributes() - 1).getValues().length == 1) // No uncertainty left return; boolean needsSplit = false; for (int i = 0; i < set.getNumberOfAttributes() - 1; i++) { if (set.getAttribute(i).getValues().length < 2) { continue; } needsSplit = true; } if (!needsSplit) // split would be futile for all remaining attributes return; GainInfoItem[] gains = InformationGainCalculator.calculateAndSortInformationGains(set); if (gains[0].getGainValue() == 0.0) // No split when there is no gain return; Attribute bestAttribute = set.getAttribute(gains[0].getAttributeName()); if (bestAttribute.getType() == AttributeType.NOMINAL) { VirtualDataSet[] partitions = set .partitionByNominallAttribute(set.getAttributeIndex(bestAttribute.getName())); node.children = (Node<VirtualDataSet>[]) new Node[partitions.length]; for (int i = 0; i < node.children.length; i++) { node.children[i] = new Node<VirtualDataSet>(partitions[i]); } for (int i = 0; i < node.children.length; i++) { build(node.children[i]); } } else { int attributeIndex = node.data.getAttributeIndex(bestAttribute.getName()); String[] values = bestAttribute.getValues(); int valueIndex = -1; for (int i = 0; i < values.length; i++) { if (values[i].equals(gains[0].getSplitAt())) { valueIndex = i; break; } } if (valueIndex == -1) { System.out.println("Houston, we have a problem!"); return; } VirtualDataSet[] partitions = set.partitionByNumericAttribute(attributeIndex, valueIndex); node.children = (Node<VirtualDataSet>[]) new Node[partitions.length]; for (int i = 0; i < node.children.length; i++) { node.children[i] = new Node<VirtualDataSet>(partitions[i]); } for (int i = 0; i < node.children.length; i++) { build(node.children[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n ...
[ "0.69706976", "0.6970071", "0.6894202", "0.68041414", "0.6642008", "0.6523374", "0.6479249", "0.6444082", "0.6410111", "0.6395873", "0.63924956", "0.6391415", "0.6325887", "0.6322541", "0.6315627", "0.6311462", "0.6307118", "0.6268413", "0.62631863", "0.6261661", "0.61905926"...
0.5702548
81
The recursive toString function
private String toString(Node<VirtualDataSet> node, int indentDepth) { String indent = createIndent(indentDepth); if (node == null) return null; if (indentDepth < 0) throw new IllegalArgumentException("indentDepth cannot be a negative number."); if (node.children == null) { Attribute classAttribute = node.data.getAttribute(node.data.getNumberOfAttributes() - 1); return indent + classAttribute.getName() + " = " + classAttribute.getValues()[0] + System.lineSeparator(); } int statementNo = 0; StringBuffer buffer = new StringBuffer(); for (int i = 0; i < node.children.length; i++) { buffer.append(indent + ((statementNo++ == 0) ? "if (" : "else if (") + node.children[i].data.getCondition() + ") {" + System.lineSeparator()); buffer.append(toString(node.children[i], indentDepth + 2)); buffer.append(indent + "}" + System.lineSeparator()); } return buffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "public String toString(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tTList<T> root = this.getRoot();\n\t\tif (root == this) \n\t\t\tsb.append(\"*\");\n\t\tif (root.visited())\n\t\t\tsb.append(\...
[ "0.78740716", "0.75162905", "0.7503305", "0.7469396", "0.74071217", "0.7300983", "0.7205829", "0.71729463", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021", "0.7150021",...
0.0
-1
Creates or finds a DataWarehouseUserActivityName from its string representation.
@JsonCreator public static DataWarehouseUserActivityName fromString(String name) { return fromString(name, DataWarehouseUserActivityName.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonCreator\n public static UserEngagementTracking fromString(String name) {\n return fromString(name, UserEngagementTracking.class);\n }", "public Builder setCreateUser(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createUser...
[ "0.50973463", "0.48828927", "0.4799113", "0.47871295", "0.46914876", "0.4582765", "0.45472717", "0.45286638", "0.45133027", "0.4486379", "0.4486379", "0.4463761", "0.4459727", "0.44401577", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0.44398642", "0...
0.71652585
0
Gets known DataWarehouseUserActivityName values.
public static Collection<DataWarehouseUserActivityName> values() { return values(DataWarehouseUserActivityName.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getActivityName() {\n return activityName;\n }", "public String getUserNames() {\n return sp.getString(USER_NAMES, null);\n }", "String activity_name () throws BaseException;", "@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.g...
[ "0.58526194", "0.5574383", "0.55444586", "0.5480423", "0.5412232", "0.54108584", "0.5361124", "0.53587973", "0.5298389", "0.52578175", "0.5254545", "0.51867026", "0.51641494", "0.51398057", "0.51357985", "0.5132434", "0.5121714", "0.5097639", "0.5087824", "0.5063023", "0.5061...
0.7696737
0
since pareha rag size tanan
public void drawChart() { ArrayList<Entry> confuse = new ArrayList<>(); ArrayList<Entry> attention = new ArrayList<>(); ArrayList<Entry> engagement = new ArrayList<>(); ArrayList<Entry> joy = new ArrayList<>(); ArrayList<Entry> valence = new ArrayList<>(); // point = "Brow Furrow: \n"; String dum = null, dum2 = null; for (int i = 0; i < size; i++) { //point += ("" + Emotion.getBrowFurrow(i).getL() + " seconds reading of " + Emotion.getBrowFurrow(i).getR() + "\n"); dum2 = Emotion.getBrowFurrow(i).getL().toString(); dum = Emotion.getBrowFurrow(i).getR().toString(); confuse.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getAttention(i).getL().toString(); dum = Emotion.getAttention(i).getR().toString(); attention.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getEngagement(i).getL().toString(); dum = Emotion.getEngagement(i).getR().toString(); engagement.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getJoy(i).getL().toString(); dum = Emotion.getJoy(i).getR().toString(); joy.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); dum2 = Emotion.getValence(i).getL().toString(); dum = Emotion.getValence(i).getR().toString(); valence.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum))); } LineDataSet data1 = new LineDataSet(confuse,"Confuse"); LineDataSet data2 = new LineDataSet(attention,"Attention"); LineDataSet data3 = new LineDataSet(engagement,"Engagement"); LineDataSet data4 = new LineDataSet(joy,"Engagement"); LineDataSet data5 = new LineDataSet(valence,"Valence"); data1.setColor(Color.BLUE); data1.setDrawCircles(false); data2.setColor(Color.YELLOW); data2.setDrawCircles(false); data3.setColor(Color.GRAY); data3.setDrawCircles(false); data4.setColor(Color.MAGENTA); data4.setDrawCircles(false); data5.setColor(Color.GREEN); data5.setDrawCircles(false); dataSets.add(data1); dataSets.add(data2); dataSets.add(data3); dataSets.add(data4); dataSets.add(data5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getPlaneSize();", "public int getLargeur() {\n return getWidth();\n }", "int getTribeSize();", "double getSize();", "public double getWidth() {\n return this.size * 2.0; \n }", "public int getWidth()\n {\n return larghezza;\n }", "public float getSizeX(){return sx;}", "int g...
[ "0.64567083", "0.64132077", "0.63958156", "0.6322813", "0.62208956", "0.60539407", "0.6005934", "0.59754527", "0.5951764", "0.59431404", "0.59298503", "0.59256214", "0.5925209", "0.590721", "0.5905925", "0.5883403", "0.5876994", "0.5857384", "0.5844973", "0.58435214", "0.5831...
0.0
-1
literally just display menu here doing storage just to show off toString with our piano object
public static void main(String[] args) { Integer in = new Integer(4000); System.out.println(in.SIZE); Storage storage = new Storage(); storage.makePianos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.print...
[ "0.6958735", "0.69485605", "0.68931943", "0.6849618", "0.6816318", "0.6746802", "0.67061174", "0.66734225", "0.6654473", "0.6650877", "0.6641318", "0.6630319", "0.6611155", "0.66068876", "0.65922356", "0.6576602", "0.6546254", "0.65294886", "0.6512187", "0.6486349", "0.647590...
0.0
-1
called by internal mechanisms, do not call yourself.
public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getTaskDao() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{...
[ "0.6371722", "0.6260732", "0.6228073", "0.616492", "0.6125714", "0.6042472", "0.5979736", "0.5976913", "0.5956299", "0.5942653", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.590189", "0.5893604", "0.5893604", "0.58852583", "0.58852583", "...
0.0
-1
Notnull value; ensure this value is available before it is saved to the database.
public void setUuid(String uuid) { this.uuid = uuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Object getEditableValue() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean getHasValue() {\n\t\treturn true;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String ge...
[ "0.66556793", "0.6542114", "0.6502737", "0.6341432", "0.6341432", "0.6341432", "0.6329059", "0.6326043", "0.6299003", "0.6299003", "0.6299003", "0.6223568", "0.616573", "0.6132559", "0.6114203", "0.6091565", "0.60907304", "0.60907304", "0.6054326", "0.6054326", "0.6021421", ...
0.0
-1
Notnull value; ensure this value is available before it is saved to the database.
public void setCustomerId(String customerId) { this.customerId = customerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Object getEditableValue() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean getHasValue() {\n\t\treturn true;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String ge...
[ "0.6657088", "0.65434194", "0.65045696", "0.6344035", "0.6344035", "0.6344035", "0.6330284", "0.63284796", "0.6301632", "0.6301632", "0.6301632", "0.6223393", "0.61681986", "0.61340857", "0.6115494", "0.6091742", "0.6091615", "0.6091615", "0.60564023", "0.60564023", "0.602337...
0.0
-1
Toone relationship, resolved on first access.
public Customer getCustomer() { String __key = this.customerId; if (customer__resolvedKey == null || customer__resolvedKey != __key) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } CustomerDao targetDao = daoSession.getCustomerDao(); Customer customerNew = targetDao.load(__key); synchronized (this) { customer = customerNew; customer__resolvedKey = __key; } } return customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void oneToOneNoBind() {\n\t\tSystem.out.println(\"============oneToOneNoBind=========\");\n\t\tUser u = new User();\n\t\tAddress a = new Address();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", a.all(), from(), u.table(), \",\",\n\t\t\t\ta.table(), \" where \"...
[ "0.58623207", "0.585731", "0.57357323", "0.5697646", "0.5671136", "0.5648345", "0.5610017", "0.5598566", "0.5568895", "0.5493019", "0.5484362", "0.5479117", "0.54718906", "0.5466727", "0.5384641", "0.53737485", "0.5369779", "0.5315032", "0.52853525", "0.5250344", "0.52415144"...
0.0
-1
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<TaskOrder> getLineItems() { if (lineItems == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } TaskOrderDao targetDao = daoSession.getTaskOrderDao(); List<TaskOrder> lineItemsNew = targetDao._queryTask_LineItems(uuid); synchronized (this) { if(lineItems == null) { lineItems = lineItemsNew; } } } return lineItems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirec...
[ "0.5940992", "0.5846662", "0.5735727", "0.56805676", "0.5641164", "0.55888176", "0.5570419", "0.5501383", "0.54784065", "0.54466534", "0.5418696", "0.5396701", "0.53331417", "0.53226095", "0.5310305", "0.53054404", "0.5237315", "0.51974344", "0.51927924", "0.5174846", "0.5153...
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetLineItems() { lineItems = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void...
[ "0.6747442", "0.6169837", "0.6006495", "0.58437485", "0.5640313", "0.55817", "0.5564541", "0.5501873", "0.54876965", "0.54569566", "0.54190093", "0.53815854", "0.53609395", "0.5352766", "0.5333638", "0.53250045", "0.5290257", "0.5286562", "0.52737796", "0.52573645", "0.525191...
0.0
-1
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<Sale> getSales() { if (sales == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } SaleDao targetDao = daoSession.getSaleDao(); List<Sale> salesNew = targetDao._queryTask_Sales(uuid); synchronized (this) { if(sales == null) { sales = salesNew; } } } return sales; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirec...
[ "0.59397984", "0.5845948", "0.5736148", "0.5680497", "0.56417286", "0.5588755", "0.5571661", "0.55035615", "0.54793805", "0.544738", "0.5419627", "0.5396332", "0.5333803", "0.53217745", "0.53104186", "0.530557", "0.5236446", "0.5197751", "0.5191205", "0.5176093", "0.5154204",...
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetSales() { sales = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void...
[ "0.6747352", "0.6169952", "0.60056156", "0.5843151", "0.5639269", "0.5581446", "0.5563037", "0.55015767", "0.548783", "0.5456732", "0.54171634", "0.5381268", "0.53617096", "0.5351383", "0.53320163", "0.53242475", "0.52904886", "0.52863044", "0.52736586", "0.5256235", "0.52508...
0.5167213
26
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<DetailerCall> getDetailers() { if (detailers == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } DetailerCallDao targetDao = daoSession.getDetailerCallDao(); List<DetailerCall> detailersNew = targetDao._queryTask_Detailers(uuid); synchronized (this) { if(detailers == null) { detailers = detailersNew; } } } return detailers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirec...
[ "0.5940992", "0.5846662", "0.5735727", "0.56805676", "0.5641164", "0.55888176", "0.5570419", "0.5501383", "0.54784065", "0.54466534", "0.5418696", "0.5396701", "0.53331417", "0.53226095", "0.5310305", "0.53054404", "0.5237315", "0.51974344", "0.51927924", "0.5174846", "0.5153...
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetDetailers() { detailers = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void...
[ "0.6747442", "0.6169837", "0.6006495", "0.58437485", "0.5640313", "0.55817", "0.5564541", "0.5501873", "0.54876965", "0.54569566", "0.54190093", "0.53815854", "0.53609395", "0.5352766", "0.5333638", "0.53250045", "0.5290257", "0.5286562", "0.52737796", "0.52573645", "0.525191...
0.0
-1
Tomany relationship, resolved on first access (and after reset). Changes to tomany relations are not persisted, make changes to the target entity.
public List<MalariaDetail> getMalariadetails() { if (malariadetails == null) { if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } MalariaDetailDao targetDao = daoSession.getMalariaDetailDao(); List<MalariaDetail> malariadetailsNew = targetDao._queryTask_Malariadetails(uuid); synchronized (this) { if(malariadetails == null) { malariadetails = malariadetailsNew; } } } return malariadetails; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}", "public void onRelationshipChanged();", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "@Override\n public void onRelationshipMapLoaded() {\n }", "private void makeUnidirec...
[ "0.59397984", "0.5845948", "0.5736148", "0.5680497", "0.56417286", "0.5588755", "0.5571661", "0.55035615", "0.54793805", "0.544738", "0.5419627", "0.5396332", "0.5333803", "0.53217745", "0.53104186", "0.530557", "0.5236446", "0.5197751", "0.5191205", "0.5176093", "0.5154204",...
0.0
-1
Resets a tomany relationship, making the next get call to query for a fresh result.
public synchronized void resetMalariadetails() { malariadetails = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "void clearAssociations();", "public void resetIds()\r\n {\r\n this.ids = null;\r\n }", "public void resetAll() {\n reset(getAll());\n }", "public void...
[ "0.6747352", "0.6169952", "0.60056156", "0.5843151", "0.5639269", "0.5581446", "0.5563037", "0.55015767", "0.548783", "0.5456732", "0.54171634", "0.5381268", "0.53617096", "0.5351383", "0.53320163", "0.53242475", "0.52904886", "0.52863044", "0.52736586", "0.5256235", "0.52508...
0.0
-1
Returns a copy of a recently added record.
public Record copy() { return new Record( this.id, this.location.copy(), this.score ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}", "public QueueEntry copy() {\n return new QueueEntry(playerName, string, loc, type);\n }", "RecordInfo clone();", "public Object clone(){\n\t\tSongRecord cloned = new SongRecord();\n\t\tif (this.title == null)...
[ "0.68950474", "0.61691505", "0.61217344", "0.5930527", "0.56351745", "0.55587405", "0.5544232", "0.5531679", "0.5492501", "0.5463112", "0.53958595", "0.53774077", "0.53718495", "0.5364373", "0.5338883", "0.53177553", "0.53147066", "0.52747965", "0.5267417", "0.526396", "0.523...
0.7258684
0
Tests to ensure that a record can be written to the database and a proper ID generated for it
@Test public void addToDb() { service.save(opinion); assertNotEquals(opinion.getId(), 0); assertTrue(service.exists(opinion.getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSave() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(\"Super Ultra Hard Assignment\",true);\n\t\tassertTrue(id != -1);\n\t}", "@Test\n void insertSuccess() {\n Date today = new Date();\n User newUser = new User(\"Artemis\", \"Jimmers\", \"ajimmers@gmail...
[ "0.6902213", "0.67431855", "0.6557413", "0.65250134", "0.6392121", "0.6342365", "0.6318486", "0.62954426", "0.627316", "0.6251378", "0.6243274", "0.6230864", "0.62266123", "0.621627", "0.6214344", "0.61910367", "0.61705697", "0.6168503", "0.61549264", "0.61548024", "0.6152799...
0.0
-1
Batch inserts a number of records to the db and then pulls the total amount
@Test public void retrieveAll() { List<Opinion> opinions = IntStream.range(0, BATCH_SIZE).mapToObj(i -> { Opinion currentOpinion = new Opinion("Student B", "B is for batch"); service.save(currentOpinion); return currentOpinion; }).collect(Collectors.toList()); assertEquals(service.count(), BATCH_SIZE); opinions.forEach(op -> service.delete(op)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addBatch() throws SQLException;", "@Override\n @Transactional\n public void addBulkInsertsAfterExtraction() {\n List<ScrapBook> scrapBooks = new ArrayList<ScrapBook>();\n boolean jobDone = false;\n boolean pause = false;\n while (!jobDone) {\n pause = false;\n ...
[ "0.68169045", "0.6582419", "0.6495625", "0.63857317", "0.6373682", "0.63501996", "0.6346541", "0.6284132", "0.6282078", "0.62440324", "0.61623955", "0.6154596", "0.6124512", "0.6015919", "0.59907496", "0.5969294", "0.59564894", "0.5938286", "0.593785", "0.5844447", "0.5843157...
0.5238744
86
return logical value true if x is even number
boolean isEven(int x) { if((x%2)==0) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final boolean even(int x) {\n \t\treturn ((x & 0x1) == 0);\n \t}", "public static final boolean even(long x) {\n \t\treturn ((x & 0x1) == 0);\n \t}", "public static final boolean even(short x) {\n \t\treturn ((x & 0x1) == 0);\n \t}", "public static final boolean odd(int x) {\n \t\treturn !even(...
[ "0.8683322", "0.83601826", "0.8071308", "0.8050362", "0.7901117", "0.77842754", "0.7699728", "0.76289594", "0.7568835", "0.751496", "0.7509861", "0.7476895", "0.74375075", "0.7430141", "0.74251854", "0.74027467", "0.73945683", "0.73486143", "0.73128265", "0.72892654", "0.7254...
0.8490624
1
quand on definit des objets on veut pouvoir les afficher: il faut donc definir une methode toString
@Override public String toString() { return "(" + idn + "," + this.n + ")"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() ;", "@Override\r\n String toString();", "@Override String toString();", "@Override public String toString();", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n\tpublic String toString();", "@Override\n\tString toString();", "@Overr...
[ "0.7925538", "0.77156854", "0.7714889", "0.770456", "0.7688527", "0.7688527", "0.76849824", "0.7668969", "0.76656306", "0.7638738", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.76305777", "0.7628439", "0.7612998", "0.7608121", "0.7597...
0.0
-1
pour avoir position de l'appui Px sur segment
@Override public double calPx() { return this.n.getPx(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getPos() {\n return ((spos-xpos))/(sposMax-sposMin);// * ratio;\n }", "double getPositionX();", "double getPositionX();", "double getPositionX();", "protected double xPixelToPosition(double pixel) {\r\n// double axisV = xPositionToPixel(originX);\r\n// return (pixel - axisV) ...
[ "0.6284658", "0.612352", "0.612352", "0.612352", "0.6030339", "0.5973275", "0.5966206", "0.5961991", "0.59382945", "0.5931422", "0.5929874", "0.59296405", "0.5898462", "0.5890515", "0.58831316", "0.5882001", "0.5865392", "0.58631253", "0.58602095", "0.58449936", "0.58284634",...
0.55221486
79
RUNTIME ERROR: When fields are blank or values do not match data types, the system cannot handle the action event. The try/catch code catches these errors Modify event
@FXML void onActionModifyPart(ActionEvent event) throws IOException { try { int id = currPart.getId(); String name = partNameTxt.getText(); int stock = Integer.parseInt(partInvTxt.getText()); double price = Double.parseDouble(partPriceTxt.getText()); int max = Integer.parseInt(maxInvTxt.getText()); int min = Integer.parseInt(minInvTxt.getText()); int machineId; String companyName; boolean partAdded = false; if (name.isEmpty()) { //RUNTIME ERROR: Name empty exception errorLabel.setVisible(true); errorTxtLabel.setText("Name cannot be empty."); errorTxtLabel.setVisible(true); } else { if (minVerify(min, max) && inventoryVerify(min, max, stock)) { if(inHouseRBtn.isSelected()) { try { machineId = Integer.parseInt(partIDTxt.getText()); InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId); newInHousePart.setId(currPart.getId()); Inventory.addPart(newInHousePart); partAdded = true; } catch (Exception e) { //LOGICAL ERROR: Invalid machine ID error errorLabel.setVisible(true); errorTxtLabel.setText("Invalid machine ID."); errorTxtLabel.setVisible(true); } } if (outsourcedRBtn.isSelected()) { companyName = partIDTxt.getText(); OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName); newOutsourcedPart.setId(currPart.getId()); Inventory.addPart(newOutsourcedPart); partAdded = true; } if (partAdded){ errorLabel.setVisible(false); errorTxtLabel.setVisible(false); Inventory.deletePart(currPart); //Confirm modify Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Modify Part"); alert.setContentText("Save changes and return to main menu?"); Optional<ButtonType> result = alert.showAndWait(); if (result.isPresent() && result.get() == ButtonType.OK) { stage = (Stage) ((Button)event.getSource()).getScene().getWindow(); scene = FXMLLoader.load(getClass().getResource("/View/Main.fxml")); stage.setScene(new Scene(scene)); stage.show(); } } } } } catch(Exception e) { //RUNTIME ERROR: Blank fields exception errorLabel.setVisible(true); errorTxtLabel.setText("Form contains blank fields or errors."); errorTxtLabel.setVisible(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void editOccured(ModifyEvent e) {\n \n \t\tString aValue = text.getText();\n \t\tif (aValue == null) {\n \t\t\taValue = StringStatics.BLANK;\n \t\t}\n \t\tObject typedValue = aValue;\n \t\tboolean oldValidState = isValueValid();\n \t\tboolean newValidState = isCorrect(typedValue);\n \t\tif (typedValue ==...
[ "0.6349329", "0.59037745", "0.58556", "0.5854053", "0.58211654", "0.5806664", "0.57544047", "0.5711016", "0.56176585", "0.5596958", "0.5593807", "0.55905044", "0.5576491", "0.5556697", "0.55458504", "0.55436164", "0.5540613", "0.55300343", "0.55015725", "0.54928935", "0.54445...
0.0
-1
Method for checking for min inventory logical error
private boolean minVerify(int min, int max) { boolean minLess = true; if (min <= 0 || min >= max) { minLess = false; //LOGICAL ERROR: Min value error errorLabel.setVisible(true); errorTxtLabel.setText("Min must be less than Max."); errorTxtLabel.setVisible(true); } return minLess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean inventoryValid(int min, int max, int stock) {\n\n boolean isValid = true;\n\n if (stock < min || stock > max) {\n isValid = false;\n AlartMessage.displayAlertAdd(4);\n }\n\n return isValid;\n }", "private boolean validInventory(int min, int max...
[ "0.6674913", "0.6673099", "0.6610241", "0.6511488", "0.63716024", "0.62652266", "0.62059283", "0.6066792", "0.6062656", "0.5989707", "0.5972347", "0.59235805", "0.59094906", "0.5873566", "0.58468735", "0.58147025", "0.58087516", "0.58000934", "0.5784858", "0.5773962", "0.5763...
0.0
-1
Method for checking for inventory logical error
private boolean inventoryVerify(int min, int max, int stock) { boolean invBetween = true; if (stock < min || stock > max) { invBetween = false; //LOGICAL ERROR: Inventory value error errorLabel.setVisible(true); errorTxtLabel.setText("Inventory must be less than Max and greater than Min."); errorTxtLabel.setVisible(true); } return invBetween; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "@java...
[ "0.66183436", "0.6562957", "0.6524187", "0.6461702", "0.6422424", "0.64167696", "0.6388838", "0.63489336", "0.6309897", "0.6274639", "0.62673134", "0.6242834", "0.6233295", "0.62041736", "0.6203367", "0.6202986", "0.62011766", "0.61985964", "0.6177543", "0.61762756", "0.61746...
0.5874963
43
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { //Populating current part data currPart = MainController.getPartModify(); if (currPart instanceof InHousePart) { inHouseRBtn.setSelected(true); partIDLabel.setText("Machine ID"); partIDTxt.setText(String.valueOf(((InHousePart) currPart).getMachineId())); } if (currPart instanceof OutsourcedPart){ outsourcedRBtn.setSelected(true); partIDLabel.setText("Company Name"); partIDTxt.setText(((OutsourcedPart) currPart).getCompanyName()); } autoIDTxt.setText(String.valueOf(currPart.getId())); partNameTxt.setText(currPart.getName()); partInvTxt.setText(String.valueOf(currPart.getStock())); partPriceTxt.setText(String.valueOf(currPart.getPrice())); maxInvTxt.setText(String.valueOf(currPart.getMax())); minInvTxt.setText(String.valueOf(currPart.getMin())); errorLabel.setVisible(false); errorTxtLabel.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8126442", "0.78539085", "0.7832836", "0.77623755", "0.77623755", "0.76012474", "0.74504834", "0.7437387", "0.7431329", "0.74233705", "0.7406829", "0.7342683", "0.7329348", "0.72642463", "0.7223624", "0.7101346", "0.7058293", "0.6987611", "0.697182", "0.6943626", "0.6912216...
0.0
-1
Create a new parser.
public CanonicalTreeParser() { // Nothing necessary. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parse createParse();", "protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }", "public Parser() {}", "private Parser () { }", "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Di...
[ "0.75968355", "0.75110704", "0.73454195", "0.684797", "0.6834958", "0.6797947", "0.67285085", "0.67096055", "0.67084944", "0.66682047", "0.6611366", "0.66019887", "0.65578985", "0.64476126", "0.6429837", "0.64081866", "0.63997304", "0.6387937", "0.6350413", "0.63393945", "0.6...
0.0
-1
Reset this parser to walk through the given tree data.
public void reset(final byte[] treeData) { raw = treeData; rawPtr = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}", "@Generated(hash = 1311440767)\r\n public synchronized void resetTree...
[ "0.68515795", "0.67631924", "0.6748655", "0.66692865", "0.65503985", "0.6439507", "0.62816036", "0.60560685", "0.5988133", "0.59673387", "0.59299517", "0.58386725", "0.5836409", "0.582019", "0.5816157", "0.5791036", "0.5775967", "0.57449746", "0.57383835", "0.5705733", "0.568...
0.7253905
0
Reset this parser to walk through the given tree.
public void reset(final Repository repo, final ObjectId id) throws IncorrectObjectTypeException, IOException { final ObjectLoader ldr = repo.openObject(id); if (ldr == null) throw new MissingObjectException(id, Constants.TYPE_TREE); final byte[] subtreeData = ldr.getCachedBytes(); if (ldr.getType() != Constants.OBJ_TREE) throw new IncorrectObjectTypeException(id, Constants.TYPE_TREE); reset(subtreeData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "@Generated(hash = 1311440767)\r\n public synchronized void resetTrees() {\r\n trees = null;\r\n }", "public void reset() {\n m_nestingDepth = 0;\n m_namespaceDepth = -1;\n m_namespaceStack.clear();\n m_prefi...
[ "0.6937993", "0.6877877", "0.6756279", "0.6632992", "0.6626345", "0.6588847", "0.6480809", "0.6351276", "0.6250737", "0.61952543", "0.6186026", "0.61570644", "0.60264856", "0.5870016", "0.583908", "0.5806464", "0.5774591", "0.5771043", "0.57645655", "0.5761258", "0.5756507", ...
0.0
-1
Simply selects the home view to render by returning its name.
@RequestMapping(value = "", method = RequestMethod.GET) public String cout(Locale locale, Model model) { logger.info("Welcome home! The client locale is {}.", locale); Date date = new Date(); DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); String formattedDate = dateFormat.format(date); model.addAttribute("serverTime", formattedDate); return "bootstrap/bootstrap"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(Mappings.HOME)\n\tpublic String showHome() {\n\n\t\treturn ViewNames.HOME;\n\t}", "public String home() {\n if (getUsuario() == null) {\n return \"login.xhtml\";\n }\n // Si el usuario es un ADMINISTRADOR, le lleva a la pagina a la lista de Alumnos\n if (getUsua...
[ "0.68210346", "0.62661386", "0.62182325", "0.62037206", "0.6200906", "0.6189079", "0.61521596", "0.6124629", "0.6122641", "0.6104551", "0.6012518", "0.6010818", "0.5979618", "0.5978699", "0.59429437", "0.5937469", "0.5924789", "0.5908242", "0.59063363", "0.5879819", "0.586142...
0.0
-1
sets the category member using an int
public int getCategory() { return category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Category(int num) {\n this.num = num;\n }", "public void setCatId(int value) {\n this.catId = value;\n }", "public void setCategory(Integer category) {\n this.category = category;\n }", "public void setCatLevel(int value) {\n this.catLevel = value;\n }", "public void...
[ "0.7534931", "0.7140981", "0.69181234", "0.6743015", "0.66901577", "0.6650423", "0.6630024", "0.6623272", "0.65973604", "0.6585128", "0.64651847", "0.64560807", "0.6432767", "0.6422935", "0.6417642", "0.6385871", "0.6369921", "0.6325534", "0.63133997", "0.6302779", "0.6297154...
0.6044026
36
sets the category member using a String.
public String getCategoryString(){ MarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category); if(c == null || c.name() == null || "".equals(c.name())) return "NONE"; return c.name(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetCategory(String text) {\n\t\t\n\t\t\n\t\tCategory_label.setText(text);\n\t}", "public void setName(String ac) {\n categoryName = ac;\n }", "void updateCategory(String category){}", "public void setName(String name)\n\t{\n\t\tcategoryName= name;\n\t}", "public void setCategory(Strin...
[ "0.70108235", "0.7005408", "0.69569737", "0.6936365", "0.69074583", "0.6880508", "0.674544", "0.6731428", "0.6632844", "0.6488323", "0.6413194", "0.64019364", "0.6400756", "0.63503724", "0.63331497", "0.63304913", "0.63283527", "0.63115215", "0.62481797", "0.62102544", "0.618...
0.5475219
96
all stuff inherited from PreparedStatement
public void setArray(int i, Array x);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void prepare(PreparedStatement statement) {\n }", "public interface PreparedStatement extends Statement \n {\n /**\n 59: * This method executes a prepared SQL query and returns its ResultSet.\n 60: *\n 61: * @return The ResultSet of the SQL statement.\n ...
[ "0.77910924", "0.7370675", "0.7286958", "0.7202609", "0.71803355", "0.70249784", "0.7017799", "0.6985574", "0.68144", "0.6745281", "0.6729753", "0.66927963", "0.6618993", "0.66136146", "0.65970796", "0.65562177", "0.65422016", "0.6504839", "0.64769095", "0.64682657", "0.64229...
0.0
-1
The following BST would be created using the above data. 21 / \ 4 23 / \ / \ 2 5 22 39 \ \ 11 45
public static void main(String[] args) { TreeNode root = createMinimalBST(data); System.out.print("BFS -> "); showBFS(root); System.out.println(""); System.out.print("DFS -> "); showDFS(root); System.out.println(""); System.out.println("Max depth in tree is: " + maxDepth(root)); System.out.println("Min depth in tree is: " + minDepth(root)); System.out.println("Max depth(no recursion) in tree is: " + maxDepthNoRecursion(root)); System.out.println("Min depth(no recursion) in tree is: " + minDepthNoRecursion(root)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BST(){\n\t\tthis.root = null;\n\t}", "public void testInsert01() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(4);\r\n\r\n\t\t// Growing the leaf\r\n\t\tbt.set(\"010\", 1);\r\n\t\tbt.set(\"020\", 2);\r\n\t\tbt.set(\"030\", 3);\r\n\t\tbt.set(\"040\", 4);\r\n\t\tassertEquals(bt.root.dump()...
[ "0.6770243", "0.66986835", "0.66941506", "0.66668314", "0.6650464", "0.65775776", "0.6516771", "0.6507246", "0.64908785", "0.6454742", "0.6450441", "0.6445534", "0.640366", "0.64031017", "0.63870484", "0.63691455", "0.6362926", "0.6348345", "0.6311209", "0.6310845", "0.630839...
0.0
-1
Very easy way of doing BFS.
private static void showBFS(TreeNode root) { Queue<TreeNode> queue = new LinkedList<TreeNode>(); queue.add(root); while (!queue.isEmpty()) { TreeNode node = queue.remove(); System.out.print(node + " "); if (node.left != null) queue.add(node.left); if (node.right != null) queue.add(node.right); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (ne...
[ "0.7733544", "0.7685774", "0.75929016", "0.75623804", "0.74789804", "0.7391509", "0.7384982", "0.73839617", "0.72606254", "0.7237814", "0.7201928", "0.7200624", "0.71551305", "0.7154427", "0.71487427", "0.714874", "0.71453047", "0.71352035", "0.70960015", "0.709554", "0.70921...
0.6721995
44
Find the maximum depth in the tree without using recursion
private static int maxDepthNoRecursion(TreeNode root) { return Math.max(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMax_depth();", "int maxDepth();", "public int getMaxDepth() {\n return maxDepth;\n }", "public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}", "@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRe...
[ "0.8748095", "0.8728726", "0.80001956", "0.7891501", "0.7834018", "0.7806201", "0.78034973", "0.7766343", "0.7763043", "0.7758932", "0.77551574", "0.7727429", "0.7583594", "0.74933964", "0.74316984", "0.74129033", "0.74127483", "0.7381585", "0.7353114", "0.7344785", "0.733036...
0.77134305
12
Find the minimum depth in the tree without using recursion
private static int minDepthNoRecursion(TreeNode root) { return Math.min(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinDepth() {\n return minDepth;\n }", "public int minDepth(BinaryTree root) {\n int i = 1;\n if (root == null) {\n return 0;\n }\n subTreeDepth(root, i);\n System.out.println(\"Minimum depth of the tree : \" + depth);\n return depth;\n ...
[ "0.79023516", "0.78540736", "0.78132045", "0.7766894", "0.7686075", "0.7548415", "0.754738", "0.75400233", "0.75399137", "0.74841434", "0.7431502", "0.7413139", "0.7363647", "0.71991724", "0.71109337", "0.7095869", "0.7095869", "0.70462376", "0.69863516", "0.69837546", "0.695...
0.78031105
3
Find the maximum depth in the tree using recursion.
private static int maxDepth(TreeNode node) { if (node == null) return 0; return 1 + Math.max(maxDepth(node.left), maxDepth(node.right)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int maxDepth();", "int getMax_depth();", "public int getMaxDepth() {\n return maxDepth;\n }", "public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}", "public int maxDepth() {\n return maxDepth;\n }", "public int maxDepth() {\n return maxDepth;\n }", "public int maxDepth...
[ "0.85638845", "0.8541404", "0.80175513", "0.7958052", "0.7778701", "0.7771015", "0.7770649", "0.7741171", "0.7729857", "0.7708226", "0.76574725", "0.753008", "0.75266564", "0.7471032", "0.74156165", "0.7345238", "0.73449475", "0.7324253", "0.7285081", "0.7240283", "0.7234621"...
0.7312871
18
Find the minimum depth in the tree using recursion.
private static int minDepth(TreeNode node) { if (node == null) return 0; return 1 + Math.min(minDepth(node.left), minDepth(node.right)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinDepth() {\n return minDepth;\n }", "public int minDepth(BinaryTree root) {\n int i = 1;\n if (root == null) {\n return 0;\n }\n subTreeDepth(root, i);\n System.out.println(\"Minimum depth of the tree : \" + depth);\n return depth;\n ...
[ "0.78727674", "0.7844104", "0.757338", "0.7559504", "0.75262475", "0.75129956", "0.74787134", "0.74494374", "0.7428726", "0.73635393", "0.727556", "0.7174098", "0.7134701", "0.70635796", "0.6945985", "0.6945985", "0.69019157", "0.6896569", "0.6890048", "0.68819106", "0.684578...
0.765425
2
Templates and variables | Create a Query Template using the given type.
public static <T> T templateFor( Class<T> clazz ) { NullArgumentException.validateNotNull( "Template class", clazz ); if( clazz.isInterface() ) { return clazz.cast( Proxy.newProxyInstance( clazz.getClassLoader(), array( clazz ), new TemplateHandler<T>( null, null, null, null ) ) ); } else { try { T mixin = clazz.newInstance(); for( Field field : clazz.getFields() ) { if( field.getAnnotation( State.class ) != null ) { if( field.getType().equals( Property.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new PropertyReferenceHandler<>( new PropertyFunction<T>( null, null, null, null, field ) ) ) ); } else if( field.getType().equals( Association.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new AssociationReferenceHandler<>( new AssociationFunction<T>( null, null, null, field ) ) ) ); } else if( field.getType().equals( ManyAssociation.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new ManyAssociationReferenceHandler<>( new ManyAssociationFunction<T>( null, null, null, field ) ) ) ); } else if( field.getType().equals( NamedAssociation.class ) ) { field.set( mixin, Proxy.newProxyInstance( field.getType().getClassLoader(), array( field.getType() ), new NamedAssociationReferenceHandler<>( new NamedAssociationFunction<T>( null, null, null, field ) ) ) ); } } } return mixin; } catch( IllegalAccessException | IllegalArgumentException | InstantiationException | SecurityException e ) { throw new IllegalArgumentException( "Cannot use class as template", e ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "QueryType createQueryType();", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type);", "public String getQueryTemplate() {\n return queryTemplate;\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "public void ...
[ "0.6681692", "0.6044264", "0.5972317", "0.5853862", "0.5826426", "0.5793232", "0.5750803", "0.5726893", "0.5665554", "0.56500643", "0.5571833", "0.5522939", "0.5512321", "0.538261", "0.53672016", "0.5362076", "0.53057563", "0.5302034", "0.52427644", "0.52394503", "0.5189999",...
0.0
-1
Create a Query Template using the given mixin class and association.
public static <T> T templateFor( final Class<T> mixinType, Association<?> association ) { NullArgumentException.validateNotNull( "Mixin class", mixinType ); NullArgumentException.validateNotNull( "Association", association ); return mixinType.cast( Proxy.newProxyInstance( mixinType.getClassLoader(), array( mixinType ), new TemplateHandler<T>( null, association( association ), null, null ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T templateFor( Class<T> clazz )\n {\n NullArgumentException.validateNotNull( \"Template class\", clazz );\n\n if( clazz.isInterface() )\n {\n return clazz.cast( Proxy.newProxyInstance( clazz.getClassLoader(),\n ...
[ "0.58574116", "0.52642745", "0.4892151", "0.4750366", "0.47362864", "0.47079712", "0.46608734", "0.4550483", "0.45423776", "0.45183152", "0.44430354", "0.4439471", "0.44295028", "0.4414936", "0.44023913", "0.43770677", "0.4371047", "0.43194738", "0.42699194", "0.42440775", "0...
0.6141341
0
Create a new Query Variable.
public static Variable variable( String name ) { NullArgumentException.validateNotNull( "Variable name", name ); return new Variable( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }", "QueryType createQueryType();", "Query createQuery(final String query);", ...
[ "0.64753675", "0.63476855", "0.6292", "0.6235885", "0.60574216", "0.5895547", "0.58615154", "0.58580214", "0.58488256", "0.58068216", "0.5790309", "0.5790309", "0.5786325", "0.5780427", "0.5751282", "0.56962615", "0.5687465", "0.56811965", "0.56793445", "0.5633227", "0.561416...
0.0
-1
Create a new Query Template PropertyFunction.
@SuppressWarnings( "unchecked" ) public static <T> PropertyFunction<T> property( Property<T> property ) { return ( (PropertyReferenceHandler<T>) Proxy.getInvocationHandler( property ) ).property(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "PropertyCallExp createPropertyCallExp();", "QueryType createQueryType();", "Property createPropert...
[ "0.56774664", "0.5577183", "0.551438", "0.5488883", "0.54496884", "0.5412556", "0.53669363", "0.53437316", "0.5341981", "0.52475053", "0.52232677", "0.51830673", "0.51188517", "0.50851536", "0.5057688", "0.50504637", "0.500905", "0.5002952", "0.49515206", "0.4878613", "0.4877...
0.48487815
23
Create a new Query Property instance.
@SuppressWarnings( "unchecked" ) public static <T> Property<T> property( Class<?> mixinClass, String fieldName ) { try { Field field = mixinClass.getField( fieldName ); if( !Property.class.isAssignableFrom( field.getType() ) ) { throw new IllegalArgumentException( "Field must be of type Property<?>" ); } return (Property<T>) Proxy.newProxyInstance( mixinClass.getClassLoader(), array( field.getType() ), new PropertyReferenceHandler<>( new PropertyFunction<T>( null, null, null, null, field ) ) ); } catch( NoSuchFieldException e ) { throw new IllegalArgumentException( "No such field '" + fieldName + "' in mixin " + mixinClass.getName() ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(...
[ "0.6331715", "0.6260851", "0.61163384", "0.60898936", "0.6088458", "0.6076997", "0.6067078", "0.60633737", "0.6043996", "0.59896916", "0.58065486", "0.57955325", "0.57102585", "0.5708084", "0.56908226", "0.5606418", "0.55984646", "0.5550481", "0.5541517", "0.5492697", "0.5475...
0.0
-1
Create a new Query Template AssociationFunction.
@SuppressWarnings( "unchecked" ) public static <T> AssociationFunction<T> association( Association<T> association ) { return ( (AssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).association(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotFunctions createPivotFunctions();", "Function createFunction();", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t...
[ "0.55219173", "0.5350816", "0.5310406", "0.52777535", "0.520859", "0.5197146", "0.5013253", "0.49388275", "0.4874986", "0.48226634", "0.48170117", "0.48167765", "0.4771236", "0.47106597", "0.4686907", "0.46828744", "0.46583942", "0.46460438", "0.46456698", "0.46168736", "0.46...
0.51000214
6
Create a new Query Template ManyAssociationFunction.
@SuppressWarnings( "unchecked" ) public static <T> ManyAssociationFunction<T> manyAssociation( ManyAssociation<T> association ) { return ( (ManyAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).manyAssociation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotFunctions createPivotFunctions();", "private PersonContainsKeywordsPredicate createNewPersonPredicateForMultipleTags(List<Tag> tagList) {\n Set<Tag> multipleTagSet = new HashSet<Tag>(tagList);\n PersonContainsKeywordsPredicate newPredicate = new PersonContainsKeywordsPredicate(new\n ...
[ "0.5110558", "0.50118184", "0.5004318", "0.48269135", "0.4756087", "0.46894988", "0.45965335", "0.45851862", "0.45274442", "0.4509202", "0.4446048", "0.44238284", "0.43962494", "0.43952763", "0.43423352", "0.43109497", "0.42874065", "0.4252025", "0.42401543", "0.4224687", "0....
0.6733301
0
Create a new Query Template NamedAssociationFunction.
@SuppressWarnings( "unchecked" ) public static <T> NamedAssociationFunction<T> namedAssociation( NamedAssociation<T> association ) { return ( (NamedAssociationReferenceHandler<T>) Proxy.getInvocationHandler( association ) ).namedAssociation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotFunctions createPivotFunctions();", "Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Express...
[ "0.5308998", "0.5236083", "0.5218183", "0.5170452", "0.50301206", "0.49734697", "0.49021283", "0.48149344", "0.4802504", "0.4664896", "0.46411985", "0.4606364", "0.45949697", "0.45874375", "0.4555376", "0.45461154", "0.45164126", "0.45018604", "0.44260484", "0.4424496", "0.43...
0.62529
0
And/Or/Not | Create a new AND specification.
@SafeVarargs public static AndSpecification and( Specification<Composite> left, Specification<Composite> right, Specification<Composite>... optionalRight ) { return new AndSpecification( prepend( left, prepend( right, Arrays.asList( optionalRight ) ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnd(boolean and) {\n reqIsAnd = and;\n }", "public void setAndOr (String AndOr);", "public String getAndOr();", "And createAnd();", "And createAnd();", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public Log...
[ "0.7038737", "0.695364", "0.6861028", "0.68002754", "0.68002754", "0.63970906", "0.63768965", "0.6374279", "0.6272952", "0.623475", "0.62239957", "0.62211984", "0.62000895", "0.6199242", "0.61891043", "0.616245", "0.6152251", "0.6078526", "0.606953", "0.6054277", "0.600826", ...
0.62549126
9
Create a new OR specification.
@SafeVarargs public static OrSpecification or( Specification<Composite>... specs ) { return new OrSpecification( Arrays.asList( specs ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Or createOr();", "Or createOr();", "OrExpr createOrExpr();", "OrTable createOrTable();", "public OrSpecification(final ISpecification<T> left, final ISpecification<T> right) {\n this.left = left;\n this.right = right;\n }", "ORGateway createORGateway();", "@Test\n public void testOr...
[ "0.67606515", "0.67606515", "0.6593984", "0.6454341", "0.63961214", "0.5934634", "0.5865119", "0.58401644", "0.5733085", "0.5591763", "0.55843514", "0.54746395", "0.54746395", "0.5474554", "0.54695517", "0.54494274", "0.54249585", "0.53908414", "0.5378509", "0.5356469", "0.53...
0.6175919
5
Create a new NOT specification.
public static NotSpecification not( Specification<Composite> operand ) { return new NotSpecification( operand ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Not createNot();", "Not createNot();", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public static <T> NeSpecification<T> ne( Proper...
[ "0.7549554", "0.7549554", "0.5933786", "0.58743596", "0.5855184", "0.5762705", "0.5600383", "0.55752414", "0.5517049", "0.5466226", "0.5417393", "0.5407474", "0.53948116", "0.5345419", "0.53385496", "0.5321509", "0.5313626", "0.525619", "0.5238835", "0.5227217", "0.5177291", ...
0.6793077
2
Comparisons | Create a new EQUALS specification for a Property.
public static <T> EqSpecification<T> eq( Property<T> property, T value ) { return new EqSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Equality createEquality();", "public abstract QueryElement addEquals(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> EqSpecification<T> eq( Property<T> property, Variable variable )\n {\n return new EqSpecification( property( property ), variabl...
[ "0.6252271", "0.62442523", "0.6208908", "0.60014266", "0.5955301", "0.59339964", "0.58057505", "0.5796006", "0.56866217", "0.56866217", "0.56811976", "0.559941", "0.54882693", "0.5484099", "0.54722923", "0.5406556", "0.53527266", "0.5325878", "0.5286341", "0.52363324", "0.518...
0.67395526
0
Create a new EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> EqSpecification<T> eq( Property<T> property, Variable variable ) { return new EqSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n ...
[ "0.6177265", "0.6073852", "0.6039461", "0.5889754", "0.58660537", "0.5848568", "0.5776856", "0.51668787", "0.5165144", "0.515639", "0.5044466", "0.50240594", "0.5013628", "0.50079215", "0.50020623", "0.49821737", "0.4950336", "0.49364325", "0.49359515", "0.48929048", "0.48681...
0.6916793
0
Create a new EQUALS specification for an Association.
public static <T> EqSpecification<String> eq( Association<T> association, T value ) { return new EqSpecification<>( new PropertyFunction<String>( null, association( association ), null, null, IDENTITY_METHOD ), value.toString() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Equality createEquality();", "Eq createEq();", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n P...
[ "0.6278353", "0.5741245", "0.5650976", "0.5550149", "0.54236907", "0.537287", "0.5224415", "0.51774627", "0.51570046", "0.5078459", "0.49847135", "0.49794415", "0.49693733", "0.4936367", "0.49222645", "0.49043235", "0.48925185", "0.4857408", "0.4855814", "0.48521957", "0.4841...
0.63274837
0
Create a new GREATER OR EQUALS specification for a Property.
public static <T> GeSpecification<T> ge( Property<T> property, T value ) { return new GeSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gte(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN_OR_EQUAL, propertyName, value);\n }", "public static EqualityExpression gt(String propertyName, O...
[ "0.70800173", "0.680845", "0.6708215", "0.6706691", "0.65541327", "0.58665943", "0.58620936", "0.5730666", "0.56754106", "0.5630716", "0.5541568", "0.55235696", "0.5516249", "0.54829544", "0.54690087", "0.5466497", "0.5337721", "0.5335086", "0.5305922", "0.52492714", "0.52492...
0.6189032
5
Create a new GREATER OR EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> GeSpecification<T> ge( Property<T> property, Variable variable ) { return new GeSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt( Property<T> property, Variable variable )\n {\n return new GtSpecification( property( property ), variable );\n }", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static...
[ "0.66034365", "0.6579301", "0.63179356", "0.6212571", "0.6192968", "0.58367807", "0.58275366", "0.5681955", "0.56168526", "0.53784", "0.534697", "0.5293511", "0.5286019", "0.5276842", "0.5217778", "0.5185212", "0.5083017", "0.5067754", "0.49930707", "0.49257642", "0.49030232"...
0.60550106
5
Create a new GREATER THAN specification for a Property.
public static <T> GtSpecification<T> gt( Property<T> property, T value ) { return new GtSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryElement addGreaterThen(String property, Object value);", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }",...
[ "0.7084806", "0.682903", "0.6641307", "0.6315945", "0.61460257", "0.5808589", "0.5800344", "0.57995456", "0.5737108", "0.5714316", "0.56128705", "0.5610326", "0.5543998", "0.55208164", "0.54937243", "0.5438056", "0.5357717", "0.53455997", "0.5344262", "0.53032595", "0.5291126...
0.68040735
2
Create a new GREATER THAN specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> GtSpecification<T> gt( Property<T> property, Variable variable ) { return new GtSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryElement addGreaterThen(String property, Object value);", "public QueryElement addGreaterEqualsThen(String property, Object value);", "public static EqualityExpression gt(String propertyName, Object value) {\n return new EqualityExpression(Operator.GREATER_THAN, propertyName, value);\n }",...
[ "0.67282987", "0.640976", "0.63233954", "0.60097617", "0.58719474", "0.5791175", "0.57365745", "0.57262003", "0.57063967", "0.5573414", "0.5499971", "0.5479587", "0.5373365", "0.5173067", "0.5149309", "0.5130159", "0.5105551", "0.5100948", "0.50944936", "0.5067473", "0.502592...
0.67884344
0
Create a new LESS OR EQUALS specification for a Property.
public static <T> LeSpecification<T> le( Property<T> property, T value ) { return new LeSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n public static JetBinaryExpression splitPropertyDeclaration(@NotNull JetProperty property) {\n PsiElement parent = property.getParent();\n assertNotNull(parent);\n\n //noinspection unchecked\n JetExpression initializer = property.getInitializer();\n assertNotNull(ini...
[ "0.56116426", "0.54314125", "0.5360363", "0.5254776", "0.5170427", "0.51616675", "0.5051677", "0.50451446", "0.5004894", "0.49457994", "0.49403328", "0.49036533", "0.48962826", "0.4813737", "0.47833192", "0.4765272", "0.47622368", "0.47338364", "0.4722292", "0.4706932", "0.46...
0.54401547
1
Create a new LESS OR EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> LeSpecification<T> le( Property<T> property, Variable variable ) { return new LeSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MatchesSpecification matches( Property<String> property, Variable variable )\n {\n return new MatchesSpecification( property( property ), variable );\n }", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n ...
[ "0.5332959", "0.52868235", "0.5242051", "0.5175755", "0.5076257", "0.50750786", "0.49893826", "0.49615896", "0.494973", "0.4873117", "0.48427448", "0.47996306", "0.47755554", "0.47644505", "0.47298717", "0.4722836", "0.4686932", "0.466317", "0.46535313", "0.46535313", "0.4634...
0.5591284
0
Create a new LESSER THAN specification for a Property.
public static <T> LtSpecification<T> lt( Property<T> property, T value ) { return new LtSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> LeSpecification<T> le( Property<T> property, T value )\n {\n return new LeSpecification<>( property( property ), value );\n }", "PropertyRule createPropertyRule();", "public static EqualityExpression lt(String propertyName, Object value) {\n return new EqualityExpression(O...
[ "0.54764843", "0.52163047", "0.5153018", "0.5012718", "0.49598277", "0.49087632", "0.48458117", "0.4821788", "0.48041824", "0.47793508", "0.4740889", "0.4645616", "0.46097305", "0.46092424", "0.4550248", "0.45491824", "0.45400408", "0.44780743", "0.4455027", "0.44000158", "0....
0.5490058
0
Create a new LESSER THAN specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> LtSpecification<T> lt( Property<T> property, Variable variable ) { return new LtSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> LeSpecification<T> le( Property<T> property, Variable variable )\n {\n return new LeSpecification( property( property ), variable );\n }", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> GtSpecification<T> gt(...
[ "0.5548809", "0.5388195", "0.5001214", "0.4791347", "0.47435164", "0.47217482", "0.47048572", "0.4672084", "0.46631882", "0.46500415", "0.4599052", "0.44883645", "0.4485134", "0.4393736", "0.43498638", "0.4320627", "0.42927614", "0.42841572", "0.42707777", "0.42492023", "0.42...
0.5528313
1
Create a new NOT EQUALS specification for a Property.
public static <T> NeSpecification<T> ne( Property<T> property, T value ) { return new NeSpecification<>( property( property ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract QueryElement addNotEquals(String property, Object value);", "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> NeSpecification<T> ne( Property<T> property, Variable variable )\n {\n return new NeSpecification( property( property ), variable );\n }", "public stati...
[ "0.6918125", "0.6795486", "0.66053283", "0.6583541", "0.598107", "0.5926082", "0.58342975", "0.57962865", "0.5769563", "0.5715042", "0.5702706", "0.56193805", "0.55991757", "0.55860615", "0.5556724", "0.55431217", "0.5479195", "0.5477935", "0.5430671", "0.5430671", "0.5424445...
0.72918415
0
Create a new NOT EQUALS specification for a Property using a named Variable.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> NeSpecification<T> ne( Property<T> property, Variable variable ) { return new NeSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> NeSpecification<T> ne( Property<T> property, T value )\n {\n return new NeSpecification<>( property( property ), value );\n }", "public static EqualityExpression ne(String propertyName, Object value) {\n return new EqualityExpression(Operator.NOT_EQUAL, propertyName, value);...
[ "0.6572069", "0.6445209", "0.62922496", "0.6233685", "0.587418", "0.56004775", "0.5578522", "0.55630165", "0.5504431", "0.5457644", "0.5445301", "0.5319895", "0.53065515", "0.53065515", "0.52266484", "0.51872265", "0.5166039", "0.51437634", "0.514259", "0.5138324", "0.5101236...
0.7331027
0
Create a new REGULAR EXPRESSION specification for a Property.
public static MatchesSpecification matches( Property<String> property, String regexp ) { return new MatchesSpecification( property( property ), regexp ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "public PropertySpecBuilder<T> validator(S...
[ "0.5935453", "0.5922198", "0.5867564", "0.58294725", "0.5737262", "0.5695901", "0.5663677", "0.56270343", "0.5518026", "0.53736544", "0.5314082", "0.52916175", "0.5275117", "0.52391243", "0.52068007", "0.5177493", "0.51199454", "0.50735027", "0.5055575", "0.50360006", "0.5015...
0.6085054
0
Create a new REGULAR EXPRESSION specification for a Property using a named Variable.
public static MatchesSpecification matches( Property<String> property, Variable variable ) { return new MatchesSpecification( property( property ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VariableExp createVariableExp();", "public Constant createProperty(Expression exp) {\r\n\t\tif (exp.isConstant()){\r\n\t\t\t// no regexp, std property\r\n\t\t\treturn (Constant) exp;\r\n\t\t}\r\n\t\tConstant cst = createConstant(RootPropertyQN);\r\n\t\tcst.setExpression(exp);\r\n\t\treturn cst;\r\n\t}", "pub...
[ "0.58257073", "0.53972906", "0.5324605", "0.53164905", "0.5277203", "0.5190189", "0.5152909", "0.5111206", "0.50984335", "0.50829536", "0.50829536", "0.5029497", "0.49960473", "0.4991982", "0.4935953", "0.49081558", "0.48991263", "0.48860955", "0.48554602", "0.48451212", "0.4...
0.58627963
0
Null checks | Create a new NOT NULL specification for a Property.
public static <T> PropertyNotNullSpecification<T> isNotNull( Property<T> property ) { return new PropertyNotNullSpecification<>( property( property ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> PropertyNullSpecification<T> isNull( Property<T> property )\n {\n return new PropertyNullSpecification<>( property( property ) );\n }", "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.crea...
[ "0.6711092", "0.64215654", "0.59927607", "0.5897301", "0.57341367", "0.561568", "0.56057847", "0.56057847", "0.5604907", "0.5592232", "0.5569321", "0.54885465", "0.5480598", "0.54444396", "0.5404941", "0.54044396", "0.54035944", "0.53634024", "0.5359309", "0.5321887", "0.5317...
0.6453084
1
Create a new NULL specification for a Property.
public static <T> PropertyNullSpecification<T> isNull( Property<T> property ) { return new PropertyNullSpecification<>( property( property ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCreateNull() {\n System.out.println(\"createNull\");// NOI18N\n \n PropertyValue result = PropertyValue.createNull();\n \n assertNotNull(result);\n assertEquals(result.getKind(),PropertyValue.Kind.NULL);\n }", "public static <T> PropertyNotNullSpecific...
[ "0.6251714", "0.6232443", "0.5817417", "0.5730837", "0.5683587", "0.5622684", "0.5490262", "0.54837954", "0.5462928", "0.54282105", "0.54251754", "0.53834856", "0.5335751", "0.5329773", "0.53187084", "0.5316096", "0.5285556", "0.52848774", "0.52745366", "0.5257471", "0.523943...
0.6972142
0
Create a new NOT NULL specification for an Association.
public static <T> AssociationNotNullSpecification<T> isNotNull( Association<T> association ) { return new AssociationNotNullSpecification<>( association( association ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> AssociationNullSpecification<T> isNull( Association<T> association )\n {\n return new AssociationNullSpecification<>( association( association ) );\n }", "@Test\n public void testAssocOneWithNullAssoc() {\n\n Database server = DB.getDefault();\n\n final ProductConfiguration ...
[ "0.631583", "0.54181886", "0.52480024", "0.52079856", "0.49846703", "0.4969366", "0.49524224", "0.49001944", "0.48980173", "0.47765142", "0.4764655", "0.47480324", "0.47413608", "0.47410285", "0.47266263", "0.4709077", "0.47051138", "0.469676", "0.46875235", "0.46862748", "0....
0.61556256
1
Create a new NULL specification for an Association.
public static <T> AssociationNullSpecification<T> isNull( Association<T> association ) { return new AssociationNullSpecification<>( association( association ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> AssociationNotNullSpecification<T> isNotNull( Association<T> association )\n {\n return new AssociationNotNullSpecification<>( association( association ) );\n }", "@Test\n public void testAssocOneWithNullAssoc() {\n\n Database server = DB.getDefault();\n\n final ProductConfi...
[ "0.5783662", "0.57773876", "0.5478119", "0.54686356", "0.5313788", "0.5256434", "0.52524114", "0.5249464", "0.52203447", "0.5068576", "0.5064841", "0.49975294", "0.4992394", "0.49472174", "0.4932326", "0.49210903", "0.49193764", "0.49138373", "0.48884928", "0.48781282", "0.48...
0.6782722
0
Collections | Create a new CONTAINS ALL specification for a Collection Property.
public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty, Iterable<T> values ) { NullArgumentException.validateNotNull( "Values", values ); return new ContainsAllSpecification<>( property( collectionProperty ), values ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsAllSpecification<T> containsAllVariables(\n Property<? extends Collection<T>> collectionProperty,\n Iterable<Variable> variables )\n {\n NullArgumentException.validateNotNull( \"Variables\", variables );\n r...
[ "0.65770596", "0.64533055", "0.6401161", "0.6255979", "0.6107307", "0.605197", "0.6045117", "0.6012444", "0.5983889", "0.5908711", "0.5889675", "0.5843345", "0.5801124", "0.5741716", "0.5737421", "0.56703216", "0.5657398", "0.55815554", "0.55697083", "0.55693126", "0.5555698"...
0.6905596
0
Create a new CONTAINS ALL specification for a Collection Property using named Variables.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsAllSpecification<T> containsAllVariables( Property<? extends Collection<T>> collectionProperty, Iterable<Variable> variables ) { NullArgumentException.validateNotNull( "Variables", variables ); return new ContainsAllSpecification( property( collectionProperty ), variables ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> ContainsAllSpecification<T> containsAll( Property<? extends Collection<T>> collectionProperty,\n Iterable<T> values )\n {\n NullArgumentException.validateNotNull( \"Values\", values );\n return new ContainsAllSpecifica...
[ "0.6227403", "0.60336775", "0.5679991", "0.55310476", "0.5469369", "0.5461051", "0.54299235", "0.5157079", "0.51503915", "0.5146486", "0.50349426", "0.50080633", "0.5002354", "0.49794275", "0.49734956", "0.49481872", "0.4936442", "0.49229002", "0.49197897", "0.48735055", "0.4...
0.74368155
0
Create a new CONTAINS specification for a Collection Property.
public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty, T value ) { NullArgumentException.validateNotNull( "Value", value ); return new ContainsSpecification<>( property( collectionProperty ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty,\n Variable variable )\n {\n NullArgumentException.validateNotNull( \"Variable\", variable )...
[ "0.66248226", "0.61239177", "0.5774637", "0.55826485", "0.53767025", "0.5323207", "0.52945393", "0.52654904", "0.5232054", "0.52257323", "0.5186738", "0.51760185", "0.51182365", "0.5076971", "0.5052154", "0.5032201", "0.5014627", "0.5012117", "0.50108", "0.49368477", "0.48722...
0.68201387
0
Create a new CONTAINS specification for a Collection Property using named Variables.
@SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsSpecification<T> contains( Property<? extends Collection<T>> collectionProperty, Variable variable ) { NullArgumentException.validateNotNull( "Variable", variable ); return new ContainsSpecification( property( collectionProperty ), variable ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings( {\"raw\", \"unchecked\"} )\n public static <T> ContainsAllSpecification<T> containsAllVariables(\n Property<? extends Collection<T>> collectionProperty,\n Iterable<Variable> variables )\n {\n NullArgumentException.validateNotNull( \"Variables\", variables );\n r...
[ "0.63469934", "0.5711025", "0.5607802", "0.5496528", "0.5376578", "0.51973784", "0.507807", "0.5055222", "0.50466925", "0.50393796", "0.5008002", "0.49854693", "0.49673176", "0.4940191", "0.4904481", "0.4871729", "0.48213765", "0.47981134", "0.47788483", "0.47772032", "0.4757...
0.66771835
0
Create a new CONTAINS specification for a ManyAssociation.
public static <T> ManyAssociationContainsSpecification<T> contains( ManyAssociation<T> manyAssoc, T value ) { return new ManyAssociationContainsSpecification<>( manyAssociation( manyAssoc ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<? extends WrappedIndividual> getContains();", "void addContains(WrappedIndividual newContains);", "boolean getContainEntities();", "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpec...
[ "0.579054", "0.55690926", "0.5225168", "0.51303047", "0.50014395", "0.4965549", "0.49268493", "0.49109337", "0.4798509", "0.47877347", "0.4758534", "0.47367534", "0.46636754", "0.46154281", "0.4611518", "0.46113947", "0.46109477", "0.4594508", "0.45931488", "0.45915145", "0.4...
0.6896884
0
Create a new CONTAINS specification for a NamedAssociation.
public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value ) { return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc,\n String name )\n {\n return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name )...
[ "0.6354294", "0.5369379", "0.5222074", "0.51131994", "0.5093848", "0.4843222", "0.475398", "0.47414166", "0.4684457", "0.4646507", "0.45894632", "0.45806032", "0.45648095", "0.45231047", "0.44944942", "0.44923106", "0.4480406", "0.44675702", "0.44400135", "0.4436851", "0.4428...
0.66680497
0
Create a new CONTAINS NAME specification for a NamedAssociation.
public static <T> NamedAssociationContainsNameSpecification<T> containsName( NamedAssociation<T> namedAssoc, String name ) { return new NamedAssociationContainsNameSpecification<>( namedAssociation( namedAssoc ), name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> NamedAssociationContainsSpecification<T> contains( NamedAssociation<T> namedAssoc, T value )\n {\n return new NamedAssociationContainsSpecification<>( namedAssociation( namedAssoc ), value );\n }", "SpecialNamesConditionNameReference createSpecialNamesConditionNameReference();", ...
[ "0.658463", "0.49359655", "0.48449048", "0.47756535", "0.47698265", "0.47021934", "0.4670097", "0.46488893", "0.46197098", "0.46047005", "0.4588796", "0.45714507", "0.4554981", "0.45495817", "0.4496014", "0.44714627", "0.44578505", "0.44176686", "0.43809557", "0.43529654", "0...
0.6885154
0
Ordering | Create a new Query ascending order segment for a Property.
public static <T> OrderBy orderBy( final Property<T> property ) { return orderBy( property, OrderBy.Order.ASCENDING ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchBuilder<T> ascending(final String property) {\n\t\treturn orderBy(property, true);\n\t}", "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "public static String addOrder(String qu...
[ "0.6754475", "0.6691389", "0.60935044", "0.59571654", "0.5912685", "0.5841472", "0.5803819", "0.5767864", "0.5725294", "0.5665232", "0.55832124", "0.5437535", "0.52956736", "0.52918446", "0.5215078", "0.518564", "0.5184473", "0.51599354", "0.51564646", "0.5124861", "0.5073785...
0.62730706
2
Create a new Query ordering segment for a Property.
public static <T> OrderBy orderBy( final Property<T> property, final OrderBy.Order order ) { return new OrderBy( property( property ), order ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "public SearchBuilder<T> ascending(final String property) {\n\t\treturn orderBy(property, true);\n\t}", "public static <T> OrderBy orderBy( fina...
[ "0.5887889", "0.5839691", "0.58090717", "0.5340811", "0.528645", "0.5196062", "0.5041828", "0.49539334", "0.47376946", "0.47288966", "0.4677445", "0.46454498", "0.45728707", "0.45139378", "0.45070264", "0.44813225", "0.44645432", "0.44161367", "0.4399986", "0.439975", "0.4396...
0.53872097
3
We really get this from OSGi services!
@BeforeAll public static void createServices() throws Exception { interfaceService = new InterfaceService(); // Just for testing! This comes from OSGi really. UITestServicesSetup.createTestServices(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static interface Service {}", "public interface ImportedOsgiServiceProxy {\r\n\r\n\t/**\r\n\t * Provides access to the service reference used for accessing the backing\r\n\t * object. The returned object is a proxy over the native ServiceReference\r\n\t * obtained from the OSGi platform, so that proper s...
[ "0.65238124", "0.6258453", "0.619561", "0.6101975", "0.60229415", "0.6022623", "0.5992174", "0.5992174", "0.5992174", "0.595669", "0.592943", "0.5907735", "0.5902239", "0.5890273", "0.5879881", "0.5868837", "0.586246", "0.5861344", "0.5847293", "0.58393085", "0.5821595", "0...
0.0
-1
stage_x is mm and T is K. This tests picking up the units from the scannable!
@Disabled("DAQ-2088 Fails because expecting units") @Test public void checkInitialValues() throws Exception { assertEquals(bbox.getxAxisName(), bot.table(0).cell(0, 1)); assertEquals(bbox.getxAxisStart()+" mm", bot.table(0).cell(1, 1)); assertEquals(bbox.getxAxisLength()+" mm", bot.table(0).cell(2, 1)); assertEquals(bbox.getyAxisName(), bot.table(0).cell(3, 1)); assertEquals(bbox.getyAxisStart()+" K", bot.table(0).cell(4, 1)); assertEquals(bbox.getyAxisLength()+" K", bot.table(0).cell(5, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testTilingscale(EIfcfillareastyletiles type) throws SdaiException;", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn...
[ "0.5663582", "0.53499836", "0.5243708", "0.52048004", "0.51225215", "0.51136184", "0.51125646", "0.51039803", "0.5096285", "0.5085143", "0.50155234", "0.49994737", "0.4988679", "0.49803898", "0.4972796", "0.49654794", "0.4960317", "0.49419028", "0.4892952", "0.4879132", "0.48...
0.0
-1
stage_x is mm and T is K. This tests picking up the units from the scannable!
@Disabled("DAQ-2088 Fails because expecting units") @Test public void checkSettingFastValue() throws Exception { assertEquals(bbox.getxAxisStart()+" mm", bot.table(0).cell(1, 1)); bot.table(0).click(1, 1); // Make the file editor SWTBotText text = bot.text(0); assertNotNull(text); text.setText("10"); text.display.syncExec(()->viewer.applyEditorValue()); assertEquals("10.0 mm", bbox.getxAxisStart()+" mm"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testTilingscale(EIfcfillareastyletiles type) throws SdaiException;", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn...
[ "0.5661207", "0.5350825", "0.52429277", "0.5204506", "0.5122464", "0.5113736", "0.5112028", "0.5103469", "0.5095944", "0.50851905", "0.5014815", "0.4999616", "0.49875647", "0.49802348", "0.49723426", "0.4966661", "0.49612302", "0.494317", "0.48930484", "0.4878732", "0.4850104...
0.4820442
23
public static String BOLD_FONT_FILENAME = "BOLD_FONT_FILENAME"; public static String REGULAR_FONT_FILENAME = "REGULAR_FONT_FILENAME";
public static int getScreenWidth(Context context) { return context.getResources().getDisplayMetrics().widthPixels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFontFile(){\n\t\tif (fontFile == null){\n\t\t\tfontFile = escapeForVideoFilter(ResourcesManager.getResourcesManager().getOpenSansResource().location);\n\t\t}\n\t\treturn fontFile;\n\t}", "public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA =...
[ "0.6787669", "0.65689504", "0.6494331", "0.64023304", "0.63499415", "0.632702", "0.6259601", "0.6247883", "0.62477124", "0.6245618", "0.61436206", "0.61207205", "0.6077395", "0.6077395", "0.6077395", "0.602686", "0.5979108", "0.5969584", "0.5966961", "0.59623253", "0.5925641"...
0.0
-1
Get rounded corner Bitmap depending upon the roundPx value
public static Bitmap getRoundedCornerBitmap(final Bitmap bitmap, final float roundPx) { if (bitmap != null) { try { final Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(output); final Paint paint = new Paint(); final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); final RectF rectF = new RectF(rect); paint.setAntiAlias(true); canvas.drawARGB(0, 0, 0, 0); canvas.drawRoundRect(rectF, roundPx, roundPx, paint); paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); canvas.drawBitmap(bitmap, rect, rect, paint); return output; } catch (OutOfMemoryError e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } } return bitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Bitmap getRoundedCornerBitmap(final Bitmap bitmap,\n\t\t\tfinal float roundPx) {\n\n\t\tif (bitmap != null) {\n\t\t\ttry {\n\t\t\t\tfinal Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),\n\t\t\t\t\t\tbitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\t\t\t\tCanvas canvas = new Canvas(output);\n\n\...
[ "0.7017134", "0.67978644", "0.64975166", "0.6165183", "0.6108064", "0.6018659", "0.59358233", "0.5800133", "0.56509715", "0.56491196", "0.5594327", "0.5581293", "0.55471104", "0.55110866", "0.5462184", "0.5442291", "0.54353493", "0.5401139", "0.5326977", "0.53127223", "0.5309...
0.7318571
0
Adds Kerning to String Dyanmically
public static Spannable applyKerning(CharSequence src, float kerning) { if (src == null) return null; final int srcLength = src.length(); if (srcLength < 2) return src instanceof Spannable ? (Spannable)src : new SpannableString(src); final String nonBreakingSpace = "\u00A0"; final SpannableStringBuilder builder = src instanceof SpannableStringBuilder ? (SpannableStringBuilder)src : new SpannableStringBuilder(src); for (int i = src.length() - 1; i >= 1; i--) { builder.insert(i, nonBreakingSpace); builder.setSpan(new ScaleXSpan(kerning), i, i + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } return builder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String licenseKeyFormatting(String S, int K) {\n\t\tS = S.toUpperCase();\n\t\tString[] strs =S.split(\"-\");\n\t\tString res = \"\";\n\t\tfor(String s : strs)\n\t\t\tres+=s;\n\t\tint length = res.length()-1;\n\t\tint startLen = length % K;\n\t\tStringBuffer result = new StringBuffer(res);\n\t\tfor(int i = l...
[ "0.601907", "0.56482184", "0.55470425", "0.55386496", "0.5526456", "0.5368118", "0.53610003", "0.5344471", "0.53436494", "0.53418946", "0.5301528", "0.529603", "0.5264234", "0.5260861", "0.5250663", "0.5237331", "0.5237076", "0.5228651", "0.52285135", "0.5197365", "0.5179032"...
0.55153584
5
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,HomeActivity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel1Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel2Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel3Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel4Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel5Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel6Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel7Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent i=new Intent(TimeOutActivity.this,Playlevel8Activity.class);finish(); startActivity(i); //buttonSound.start(); }
{ "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