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 |
|---|---|---|---|---|---|---|
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String url ="/";
response.setContentType("text/html");
String action = request.getParameter("action");
PrintWriter out = response.getW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n ... | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197"... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87637174",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.8732424",
"0.86993426",
"0.86993426",
"0.86993426",
"0.86993426",
"0.86993426",
"0.86993426",
"0.853123",
"0.853123",
"0.85280925",
"0.8528092... | 0.0 | -1 |
alt shift abajo Method definitions | public void create(CategoriaDTO dto) throws SQLException{
getConnection();
CallableStatement callableStatement = null;
try {
callableStatement = (CallableStatement) connection.prepareCall(SQL_INSERT);
callableStatement.setString(1, dto.getEntidad().getNombreCateg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract boolean shift();",
"public abstract void shift(int param);",
"public void moveShiftLeft();",
"public void moveShiftRight();",
"public static void main(String[] args) {\n shift();\n\n }",
"private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}",
"void addShi... | [
"0.75354123",
"0.73570883",
"0.7248782",
"0.71389776",
"0.6671958",
"0.6649657",
"0.64227945",
"0.6306232",
"0.6274765",
"0.6220693",
"0.61688304",
"0.6054577",
"0.6015317",
"0.60064185",
"0.5988094",
"0.59792227",
"0.5951098",
"0.59495544",
"0.59311706",
"0.59061134",
"0.588... | 0.0 | -1 |
when the robot find a ball | public void run ()
{
if (ballDetected())
{
//findColor();
mainMotorSetSpeeds(normalSpeed,normalSpeed);
mainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL
mainRightMotor.rotate(-30,false);
//turn and move forward to grab the ball
mainLeftMotor.rota... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean ballDetected()\n\t{\n\t\tusSampleProvider.fetchSample(usData, 0);\n\t\tusDistance = (double)(usData[0]*100.0);\n\t\t\n\t\t//while the robot isn't seeing an object\n\t\twhile (usDistance>100)\n\t\t{\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.forward();\n\t\t\tmainRightMo... | [
"0.7387581",
"0.6863364",
"0.67338574",
"0.661107",
"0.65557057",
"0.65513134",
"0.6536858",
"0.651921",
"0.64843506",
"0.6474607",
"0.64686406",
"0.64152104",
"0.6404706",
"0.63792324",
"0.6365752",
"0.63600326",
"0.6335306",
"0.6332299",
"0.6318963",
"0.6260992",
"0.625714"... | 0.64114493 | 12 |
returns true when the Robot detects a ball | public boolean ballDetected()
{
usSampleProvider.fetchSample(usData, 0);
usDistance = (double)(usData[0]*100.0);
//while the robot isn't seeing an object
while (usDistance>100)
{
mainMotorSetSpeeds(normalSpeed,normalSpeed);
mainLeftMotor.forward();
mainRightMotor.forward();
}
mainLeftMotor.st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }",
"private boolean isBallInside(Ball ball) {... | [
"0.7097965",
"0.678621",
"0.67669266",
"0.67663836",
"0.6749703",
"0.66050017",
"0.6386631",
"0.63538885",
"0.6351919",
"0.63157284",
"0.629054",
"0.6282911",
"0.6260604",
"0.6225654",
"0.62205136",
"0.62140024",
"0.6180773",
"0.61475617",
"0.61243206",
"0.6120854",
"0.611297... | 0.8338101 | 0 |
TODO conditional on this being a cw, probably factor out | private void makeFreezeInfos(ReplayBattle replay, Set<ReplayPlayer> players) {
Clan ownerClan = replay.getPlayer().getClanInfo().getClan();
// battle end time: 45 seconds extra for battle loading
Instant endTime =
replay.getArenaCreateTime().plus(replay.getDuration())
.plus(Duration.ofSeconds(45));
//... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void kk12() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"private final boolean cvc(int i)\n\t { if (i < 2 || !cons(i) || cons(i-1) || !cons(i-2)) return false;\n\t { int ch = b[i];\n\t if (ch == 'w' || ch == 'x' || ch == 'y') return false;\n\t }\n\t retur... | [
"0.5640525",
"0.5637132",
"0.546884",
"0.5433135",
"0.5424144",
"0.54090804",
"0.5323049",
"0.52695096",
"0.5255728",
"0.52199626",
"0.51658666",
"0.5147497",
"0.5144069",
"0.51290196",
"0.5120932",
"0.50946075",
"0.50615525",
"0.5057407",
"0.50542206",
"0.49976072",
"0.49894... | 0.0 | -1 |
Returns the value of this Month as an int. | public int intValue()
{
return this.month;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getMonthValue(){\n\t\treturn monthValue;\n\t}",
"public int getMonthInt() {\n return month;\r\n }",
"public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }",
"public int getMonthInteger() \n\t{\n\t\t// 1 will be added here to be able to use this func alone to ... | [
"0.7565369",
"0.74934334",
"0.74289113",
"0.72033334",
"0.68051517",
"0.6723722",
"0.67031956",
"0.67031956",
"0.66912675",
"0.66912675",
"0.6671523",
"0.6662182",
"0.65645796",
"0.65552884",
"0.6553972",
"0.6541254",
"0.65157944",
"0.64943695",
"0.64766514",
"0.6450192",
"0.... | 0.82073367 | 0 |
Is equal with another object. | @Override
public boolean equals(final Object obj)
{
return this == obj;
/*
if (this == obj)
{
return true;
}
if (!(obj instanceof Month))
{
return false;
}
final Month other = (Month)obj;
return false; // this.month == other.month;
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}",
"@Test\n\tpublic void testEqualsObject_True() {\n\t\tbook3 = new Book(DEFAULT_TITLE, DEFAULT_AUTHOR, DEFAULT_YEAR, DEFAULT_ISBN);\n\t\tassertEquals(book1, book3);\n\t}",
"public abstract boolean equals(Object other);",
"pub... | [
"0.78970635",
"0.76428384",
"0.7617651",
"0.75961274",
"0.7570265",
"0.7532897",
"0.7497519",
"0.7424101",
"0.7383553",
"0.7363338",
"0.73619705",
"0.73470235",
"0.7286246",
"0.727481",
"0.72471565",
"0.72393596",
"0.7213495",
"0.7212865",
"0.7212865",
"0.7198569",
"0.7198036... | 0.0 | -1 |
Returns the string representation of this Month. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "Month[month=1]" | @Override
public String toString()
{
final StringBuilder builder = new StringBuilder();
builder.append("Month[month=").append(this.month).append(']'); //$NON-NLS-1$
return builder.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\r\n\t\treturn \"[\" + month + \"-\" + day + \"-\" + year + \"]\";\r\n\t}",
"public String toString(){\n\t\t\n\t\treturn month+\"/\"+day+\"/\"+year;\n\t}",
"public String getMonthName()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1)\r\n {return \"January\"... | [
"0.6960102",
"0.6922678",
"0.69135416",
"0.6867417",
"0.68414104",
"0.6765076",
"0.6618671",
"0.66049075",
"0.6581945",
"0.65532124",
"0.655101",
"0.65442514",
"0.6509244",
"0.65002817",
"0.6498082",
"0.64974475",
"0.6406775",
"0.62984604",
"0.6288739",
"0.62673116",
"0.62288... | 0.8411993 | 0 |
Compare with another object. | @Override
public int compareTo(final Month obj)
{
Objects.requireNonNull(obj, "obj"); //$NON-NLS-1$
return Integer.compare(this.month, obj.month);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean compare(Object targetOne, Object targetTwo);",
"protected abstract int doCompare(Object o1, Object o2);",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }",
"public boolean isEqual(Object objectname1, Object objectname2, Class<?> ... | [
"0.6832603",
"0.67918205",
"0.6549844",
"0.64563704",
"0.6293984",
"0.6187124",
"0.61553526",
"0.6102851",
"0.6082293",
"0.60692924",
"0.60567534",
"0.6022327",
"0.60067284",
"0.59794414",
"0.5974711",
"0.5973188",
"0.5972724",
"0.5953448",
"0.5943662",
"0.5932455",
"0.591208... | 0.0 | -1 |
Add months to this month. | public Month add(final Months months)
{
final long newMonth = Math.toIntExact(Math.addExact(this.month, months.longValue()));
if (newMonth > 12) // while (newMonth > 12)
{
// TODO Listener
// newMonth -= 12;
// incrementYear();
throw new ArithmeticException(Month.OVERFLOW);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nonnull\n public final MutableClock plusMonths(final int months) {\n getOrCreateNow().addMonths(months);\n return this;\n }",
"public Date addMonths(int m) {\r\n if (m < 0) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Month should not be the negative value!\");\r\n\t\t}\r... | [
"0.71894586",
"0.6822053",
"0.6767633",
"0.6668127",
"0.6318199",
"0.629797",
"0.6097269",
"0.6040763",
"0.5966602",
"0.5849947",
"0.5698534",
"0.56630164",
"0.5654517",
"0.55811554",
"0.5572129",
"0.5563953",
"0.5488209",
"0.54363346",
"0.5435099",
"0.5422232",
"0.53872967",... | 0.735921 | 0 |
Subtract months from this month. | public Month subtract(final Months months)
{
final long newMonth = Math.toIntExact(Math.subtractExact(this.month, months.longValue()));
if (newMonth <= 0) // while (newMonth <= 0)
{
// TODO Listener
// newMonth += 12;
// decrementYear();
throw new ArithmeticException(Month.UNDERF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void subtractMonth(int month) {\n if (month < 0) month = Math.abs(month);\n\n while (month != 0) {\n month--;\n this.subtractSingleMonth();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.previousMonth();\n\t\t\t\tc.add(Calendar.MON... | [
"0.74381804",
"0.62987494",
"0.6040849",
"0.57938844",
"0.5719027",
"0.5705899",
"0.5657681",
"0.5627722",
"0.56213397",
"0.55956775",
"0.55282605",
"0.55102646",
"0.5486813",
"0.54779977",
"0.54633796",
"0.5455518",
"0.544634",
"0.54417753",
"0.543125",
"0.5411653",
"0.54116... | 0.7567612 | 0 |
TODO Autogenerated method stub | public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new FileReader(new File("A-large.in")));
PrintWriter out=new PrintWriter("output.out");
//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(br.readLine());
int Tin... | {
"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 |
How much steam is used per use | int steamPerDurability(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected double Hops() {\r\n\t\tint hops = 0;\r\n\t\tIterator<Flow> f = this.flows.iterator();\r\n\t\twhile (f.hasNext()) {\r\n\t\t\thops += f.next().getLinks().size();\r\n\t\t}\r\n\t\treturn hops;\r\n\t}",
"@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}",
"public int getUses() {\n retu... | [
"0.6507727",
"0.64979964",
"0.6464753",
"0.6396167",
"0.630648",
"0.6286188",
"0.6278039",
"0.627685",
"0.627685",
"0.627685",
"0.621002",
"0.620436",
"0.6190114",
"0.61860156",
"0.6153555",
"0.60994565",
"0.6098309",
"0.6053126",
"0.6042069",
"0.601738",
"0.6016247",
"0.59... | 0.7186182 | 0 |
Called to ensure the item can be charged with steam devices | boolean canCharge(ItemStack me); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }",
"public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }",
"boolean canCarry(Item specifiedItem);",
"public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n ... | [
"0.6333274",
"0.6224967",
"0.59586716",
"0.5919528",
"0.5913312",
"0.5892764",
"0.57919925",
"0.57574",
"0.5680991",
"0.5657028",
"0.5587415",
"0.5535892",
"0.5526991",
"0.54690576",
"0.54636705",
"0.54602265",
"0.54559815",
"0.5451399",
"0.5405903",
"0.53830314",
"0.53827375... | 0.559673 | 10 |
Adds an amount of steam to the item. | boolean addSteam(ItemStack me, int amount, EntityPlayer player); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addAmount(int amountOfShares) {\n\t\tthis.amountOfShares += amountOfShares;\n\t}",
"void addToAmount(double amount) {\n this.currentAmount += amount;\n }",
"public void addAmountBought(int amountBought) {\n this.amountBought += amountBought;\n }",
"public void addTreasure(int ... | [
"0.70369107",
"0.65486753",
"0.6499264",
"0.64748836",
"0.6444274",
"0.64259815",
"0.6425086",
"0.6385286",
"0.6340271",
"0.6280064",
"0.6206044",
"0.61828923",
"0.61765546",
"0.61765474",
"0.61557144",
"0.61128837",
"0.6098561",
"0.6093705",
"0.6091661",
"0.6087714",
"0.6085... | 0.7354683 | 0 |
update path with recent GPS coordinates... | private void readGPS() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public void updatePath(EventPacket<?> in) {\n if (!pathsEnabled) {\n return;\n }\n path.add(new PathPoint(location.x, location.y, in.getLastTimestamp(), numEvents - previousNumEvents));\n previousNumEvents = numEvents;\n if (path.size() > ... | [
"0.7005769",
"0.6565719",
"0.6137557",
"0.6065617",
"0.5990278",
"0.5988635",
"0.59082437",
"0.58925164",
"0.58812374",
"0.58513415",
"0.58271015",
"0.5825018",
"0.58108145",
"0.5805084",
"0.57963645",
"0.57927704",
"0.57707226",
"0.5767116",
"0.5758909",
"0.5752266",
"0.5739... | 0.0 | -1 |
creates list of expressions and operators | List<Object> parse(String inputLine) {
List<Object> lo = new ArrayList<>();
int lineLength = inputLine.length();
for (int i = 0; i < lineLength; i++) {
char c = inputLine.charAt(i);
//creator of constant:
if (isPartOfNumber(c)) {
String constan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List getExpressions();",
"ExpressionList getExpressionList();",
"OperandList createOperandList();",
"public static List<Operator> getList(){\n\t\tList<Operator> supportedOperators = new ArrayList<Operator>();\n\t\t\n\t\t// add each operator to list\n\t\tsupportedOperators.add(new AdditionOperator());\n\t\tsu... | [
"0.7150134",
"0.66826546",
"0.6675697",
"0.64703476",
"0.64312917",
"0.6273203",
"0.625895",
"0.62532103",
"0.62343293",
"0.62145245",
"0.620964",
"0.60736144",
"0.6012143",
"0.5984526",
"0.5947543",
"0.5942933",
"0.59368056",
"0.58901376",
"0.588248",
"0.58796984",
"0.586729... | 0.0 | -1 |
every properly used object should be deleted from the list | private void calculateInBrackets(List<Object> lo, int i) {
lo.remove(i); //all object in the lift were shifted
int openingBracketsCounter = 1;
List<Object> newLo = new ArrayList<>();
for (; i < lo.size();) {
Object oi = lo.get(i);
if (oi == Brackets.OPENING) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeByObject()\r\n\t{\n\t}",
"private void delete() {\n\n\t}",
"public void testRemoveObj() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(\"A\"));\r\n assertEquals( \"B\", list.get(0));\r\n assertEquals( 1, list.size());\r\n list.... | [
"0.6811441",
"0.67230266",
"0.6670165",
"0.66698945",
"0.66644543",
"0.6655028",
"0.6634909",
"0.66340894",
"0.6606766",
"0.659915",
"0.65623844",
"0.6560015",
"0.6554998",
"0.6554998",
"0.65532017",
"0.65526676",
"0.65364885",
"0.649283",
"0.64897287",
"0.6472613",
"0.646410... | 0.0 | -1 |
check is usable notifier for this environment and get notifier instance | public static LibnotifyMessageNotifier getInstance() {
JavaGnome javaGnome = JavaGnome.getInstance();
if (javaGnome.isDisabled()) {
logger.info("Skip java-gnome notify system");
return null;
} else if (Utility.getOstype() == Utility.OSType.OTHER) {
ClassLoader extraClassLoader = ClientConfiguration.getIn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Notifier getNotifier() {\r\n return getLocalFacade().getGlobalFacade().getNotifier();\r\n }",
"public static Notifier getNotifier() {\n if(theNotifier == null) {\n theNotifier = new Notifier();\n }\n return theNotifier;\n }",
"private static NotificationMana... | [
"0.73656213",
"0.6971227",
"0.5982505",
"0.5809037",
"0.5805786",
"0.5740172",
"0.56916",
"0.5633865",
"0.5452457",
"0.53875357",
"0.535109",
"0.5231179",
"0.5210335",
"0.51520073",
"0.511765",
"0.5080913",
"0.5075564",
"0.50670516",
"0.5064449",
"0.5043112",
"0.4982069",
"... | 0.60776836 | 2 |
new Notification(summary, text, imageFile == null ? null : imageFile.getCanonicalPath()) .show(); | @Override
public void sendNotify(String summary, String text, File imageFile) throws IOException {
try {
Constructor<?> constructor = notificationClass.getConstructor(String.class, String.class, String.class);
String imageFilePath = imageFile == null ? null : imageFile.getCanonicalPath();
Object notificatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showNotification() {\n\n }",
"private void showNotification() {\n }",
"private void showArrivalNotification(int image, String location) {\n NotificationFragment notification = new NotificationFragment(getActivity());\n notification.setNotifierImage(image);\n notification... | [
"0.6464934",
"0.64529026",
"0.6344815",
"0.62093973",
"0.6155992",
"0.61284214",
"0.61004573",
"0.60863876",
"0.60802627",
"0.6071444",
"0.6066194",
"0.60656226",
"0.60633504",
"0.60577375",
"0.6047012",
"0.5998084",
"0.5998084",
"0.5998084",
"0.5983265",
"0.5971917",
"0.5927... | 0.6961476 | 0 |
/ JADX INFO: Multiple debug info for r5v0 'this' com.facebook.ads.redexgen.X.aa: [D('clazz' java.lang.Class), D('e' java.lang.ClassNotFoundException)] | private HM A05() {
if (this.A06 == null) {
try {
this.A06 = (HM) Class.forName(A06(141, 60, 75)).getConstructor(new Class[0]).newInstance(new Object[0]);
} catch (ClassNotFoundException unused) {
Log.w(A06(85, 17, 126), A06(15, 70, 102));
} cat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTry... | [
"0.6419777",
"0.6411815",
"0.6376461",
"0.6349772",
"0.6348849",
"0.62915874",
"0.62522054",
"0.624652",
"0.61858106",
"0.6048295",
"0.60231805",
"0.60085315",
"0.58951855",
"0.5866549",
"0.5852579",
"0.5841266",
"0.5777855",
"0.5734072",
"0.5730428",
"0.56638086",
"0.5657423... | 0.0 | -1 |
Returns the least cost that can be incurred by your company over the k = hourlyVolume.length hours (i.e hour 0 to hour k1) that you are in charge of the pump. Given that a full service concluded the hour before you were placed in charge of the system (i.e finished one hour before hour 0), given parameters hourlyVolume,... | public static int optimalLossRecursive(int[] hourlyVolume,
int[] fullServiceCapacity, int [] regularServiceCapacity, int[] minorServiceCapacity) {
// IMPLEMENT THIS METHOD BY IMPLEMENTING THE PRIVATE METHOD IN THIS
// CLASS THAT HAS THE SAME NAME
return optimalLossRecursive(hourl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int optimalLossRecursive(int[] hourlyVolume,\r\n int[] fullServiceCapacity, int [] regularServiceCapacity,\r\n int[] minorServiceCapacity, int currentHour, Service lastService, int hoursSinceService) {\r\n\r\n int k = hourlyVolume.length;\r\n if (currentHour == k)... | [
"0.75187975",
"0.6357799",
"0.58183",
"0.55365807",
"0.5399699",
"0.53445446",
"0.53112257",
"0.52811134",
"0.5078763",
"0.50497824",
"0.4963257",
"0.49497506",
"0.49346372",
"0.49014297",
"0.48990482",
"0.4897234",
"0.4896914",
"0.48955163",
"0.48350084",
"0.48327923",
"0.48... | 0.6596861 | 1 |
Given parameters hourlyVolume, fullServiceCapacity, regularServiceCapacity and minorServiceCapacity, return the least cost that can be incurred from hour "currentHour" to hour "k1" (inclusive) of the hours you are in charge of the pump (where k = hourlyVolume.length), given that the last maintenance activity before hou... | private static int optimalLossRecursive(int[] hourlyVolume,
int[] fullServiceCapacity, int [] regularServiceCapacity,
int[] minorServiceCapacity, int currentHour, Service lastService, int hoursSinceService) {
int k = hourlyVolume.length;
if (currentHour == k) { return 0; } ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int lossFn(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity,\r\n int[] minorServiceCapacity, int currentHour, Service lastService,\r\n int hoursSinceService) {\n int[] capacity;\r\n if (lastService.... | [
"0.7056943",
"0.6040612",
"0.52941954",
"0.5162091",
"0.48761165",
"0.48585758",
"0.48497716",
"0.47854567",
"0.471874",
"0.4717101",
"0.45704004",
"0.4541698",
"0.44651505",
"0.4454423",
"0.44527468",
"0.4418446",
"0.4416299",
"0.44058764",
"0.4388437",
"0.43830445",
"0.4374... | 0.80727035 | 0 |
pick the right capacity | private static int lossFn(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity,
int[] minorServiceCapacity, int currentHour, Service lastService,
int hoursSinceService) {
int[] capacity;
if (lastService.equals(Servi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected int getCapacity();",
"public abstract int capacity();",
"public int capacity();",
"public int capacity();",
"public int getCapacity();",
"int capacity();",
"int capacity();",
"public float getCapacity();",
"public int getCapacity( )\n {\n // Implemented by student.\n }"... | [
"0.79729015",
"0.7947421",
"0.7709026",
"0.7709026",
"0.7664242",
"0.76379424",
"0.76379424",
"0.7453375",
"0.72872764",
"0.7229004",
"0.72071564",
"0.7179593",
"0.71022165",
"0.70149344",
"0.70149344",
"0.70149344",
"0.70144075",
"0.70115954",
"0.700355",
"0.69914514",
"0.69... | 0.0 | -1 |
True if the entity has an unobstructed line of travel to the waypoint. | public static boolean isCourseTraversable(Entity parEntity, double parX, double parY, double parZ)
{
double theDistance = MathHelper.sqrt(parX * parX + parY * parY + parZ * parZ);
double incrementX = (parX - parEntity.posX) / theDistance;
double incrementY = (parY - parEntity.posY) / t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}",
"boolean hasDynamicLineup();",
"public boolean hasOriginFlightLeg() {\n return originFlightLeg_ != null;\n }",
"private void checkNoCollision(Line trajectory) {\n int sensorsPairs = 5;\n double distance =... | [
"0.67814654",
"0.6507756",
"0.63808733",
"0.6305902",
"0.61886245",
"0.61649394",
"0.6103067",
"0.60748094",
"0.5984311",
"0.5931135",
"0.5901075",
"0.5898072",
"0.5892962",
"0.5890548",
"0.5887289",
"0.5885923",
"0.5873254",
"0.5872348",
"0.5854011",
"0.5851846",
"0.5822068"... | 0.0 | -1 |
A method used to see if an entity is a suitable target through a number of checks. | public static boolean isSuitableTarget(EntityLivingBase theAttackerEntity,
EntityLivingBase parPossibleTargetEntity,
boolean parShouldCheckSight)
{
if (parPossibleTargetEntity == null)
{
// // DEBUG
System.out.println("Target isn't suitable ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getTargetexists();",
"public abstract boolean isTarget();",
"protected boolean findTarget(){\n\t\t// shoot units\n\t\tfloat tmpDist = -1;\n\t\tUnit tmpUnit = null;\n\t\tfor(Unit u:Game.map.get(tileId).unitMap){ // loop through units on\n\t\t\t\t\t\t\t\t\t\t\t\t\t// maptile\n\t\t\tif(this.id == u.id)\n\t... | [
"0.673406",
"0.67177075",
"0.64505774",
"0.6410267",
"0.6366408",
"0.63377666",
"0.6325426",
"0.6216552",
"0.61971426",
"0.60865605",
"0.6009792",
"0.5974085",
"0.5918834",
"0.59186524",
"0.59061724",
"0.58793306",
"0.587738",
"0.5846041",
"0.58376",
"0.5827525",
"0.5813127",... | 0.6936153 | 0 |
The coordinate system for Minecraft is a bit backwards as explained at | public static float getPitchFromVec(Vec3d parVec)
{
Vec3d theVec = parVec.normalize();
return (float) Math.toDegrees(Math.asin(theVec.y));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long[] getWorldCoordinate(int screenX, int screenY);",
"godot.wire.Wire.Vector2 getOrigin();",
"public Vector2F getWorldLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}",
"public double[] getWorldCoordinateWGS84(int screenX, int screenY);",
"godot.wire.Wire.Vector3 getOrigin();",
"protodef.... | [
"0.6618789",
"0.6597628",
"0.6553726",
"0.6535549",
"0.64477456",
"0.6355785",
"0.63092554",
"0.62651604",
"0.6250159",
"0.62485963",
"0.62446696",
"0.62446696",
"0.6220924",
"0.620098",
"0.6182873",
"0.6178674",
"0.61736315",
"0.6167506",
"0.6078608",
"0.60736865",
"0.603305... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String ShowListCMD() {
return "dir";
} | {
"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 onCreate() {
Log.d(TAG, TAG + " onCreate");
} | {
"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 int onStartCommand(Intent intent, int flags, int startId) {
Log.d(TAG, TAG + " onStartCommand");
return Service.START_STICKY;
} | {
"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 onDestroy() {
Log.d(TAG, TAG + " onDestroy");
} | {
"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 onConfigurationChanged(Configuration newConfig) {
Log.d(TAG, TAG + " onConfigurationChanged");
} | {
"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 onLowMemory() {
Log.d(TAG, TAG + " onLowMemory");
} | {
"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 onTrimMemory(int level) {
Log.d(TAG, TAG + " onTrimMemory");
} | {
"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 boolean onUnbind(Intent intent) {
Log.d(TAG, TAG + " onUnbind");
return false;
} | {
"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 onRebind(Intent intent) {
Log.d(TAG, TAG + " onRebind");
} | {
"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 onTaskRemoved(Intent rootIntent) {
Log.d(TAG, TAG + " onTaskRemoved");
} | {
"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 |
The method is called if the inactivity (not sending messages) exceeded the pinging frequency time. | private void onPingingTimerTick()
{
EneterTrace aTrace = EneterTrace.entering();
try
{
try
{
myConnectionManipulatorLock.lock();
try
{
// Send the ping message.
myUnderl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}",
"protected void pingReceived(){\r\n\t\tpings++;\r\n\t\troundTrip = System.currentTimeMillis() - pingS... | [
"0.6821332",
"0.6557844",
"0.6336463",
"0.619463",
"0.6100872",
"0.60908175",
"0.6086464",
"0.60754263",
"0.60593206",
"0.60386753",
"0.60318506",
"0.60265476",
"0.60251254",
"0.5951071",
"0.59132797",
"0.5876747",
"0.58517295",
"0.5844843",
"0.58121926",
"0.58121926",
"0.578... | 0.7191557 | 0 |
The method is called if there is no message from the input channel within response timeout. | private void onResponseTimerTick()
{
EneterTrace aTrace = EneterTrace.entering();
try
{
cleanAfterConnection(true, true);
}
finally
{
EneterTrace.leaving(aTrace);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleTimeout();",
"public int receiveTimeout(){\n return 0; //TODO codavaj!!\n }",
"protected abstract UMOMessage doReceive(long timeout) throws Exception;",
"@Override\n public void timeout(CellPath path) {\n fail(task, CacheEx... | [
"0.60622585",
"0.5890835",
"0.58763695",
"0.5789647",
"0.5746722",
"0.57457334",
"0.5737298",
"0.5704895",
"0.5698125",
"0.5592248",
"0.55730695",
"0.55605036",
"0.55570936",
"0.5546303",
"0.55307055",
"0.54972595",
"0.5453371",
"0.54501295",
"0.54489046",
"0.5431074",
"0.541... | 0.0 | -1 |
finding column count for each devices | public int getColumnCount(){
float scalefactor = getResources().getDisplayMetrics().density * 100;
int width = getWindowManager().getDefaultDisplay().getWidth();
int columns = (int) ((float)width / (float) scalefactor);
return columns;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getColumnsCount();",
"int getColumnsCount();",
"int colCount();",
"public abstract int getNumColumns();",
"int getColumnCount();",
"int getColumnCount();",
"private int numCols(){\n return attrTable.getModel().getColumnCount();\n }",
"public abstract int numColumns();",
"int getColumn... | [
"0.7440182",
"0.7440182",
"0.6923113",
"0.68187326",
"0.66128314",
"0.66128314",
"0.6612529",
"0.65562403",
"0.63298607",
"0.63298607",
"0.6297163",
"0.62731344",
"0.6266753",
"0.6235928",
"0.61914885",
"0.61721855",
"0.6152898",
"0.613962",
"0.6132024",
"0.61249024",
"0.6123... | 0.6516082 | 8 |
Returns a BOARD tile that a mouse cursor collides with OR returns null if the click missed the BOARD | public BoardTile getCollidingTile(int column, int row, CollisionResult collisionResult) {
Node n = collisionResult.getGeometry().getParent();
while (n.getParent() != null) {
if (n.equals(tiles[column][row].tileNode))
return tiles[column][row];
n = n.getParent... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final Tile selectComputerMove() {\r\n Tile tile = null;\r\n int count = 0;\r\n String tileName = null;\r\n boolean continueLoop = true;\r\n \r\n // First try to find a winning move\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTil... | [
"0.6522459",
"0.6369456",
"0.6338887",
"0.62464917",
"0.6238237",
"0.62378407",
"0.62126356",
"0.61321723",
"0.61279505",
"0.6125667",
"0.6071814",
"0.6065634",
"0.6057385",
"0.60423374",
"0.60049427",
"0.60000014",
"0.59829175",
"0.5977881",
"0.59218466",
"0.5906105",
"0.589... | 0.61464787 | 7 |
Returns a BOARD tile which location is defined by "column" and "row" indexes in a 5x5 matrix | public BoardTile getTile(int column, int row) {
return tiles[column][row];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Ti... | [
"0.7359542",
"0.72795373",
"0.72189766",
"0.6972857",
"0.6673669",
"0.6565264",
"0.64450616",
"0.6364548",
"0.6345512",
"0.6338792",
"0.6257073",
"0.62290925",
"0.62072897",
"0.61996996",
"0.61937577",
"0.6175227",
"0.61248523",
"0.6121513",
"0.6108579",
"0.61070657",
"0.6101... | 0.6944124 | 4 |
Actually it returns a tilesNode | public Node getBoardNode() {
return tilesNode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tiles getTiles() {\n return tiles;\n }",
"@Override\n protected void generateTiles() {\n }",
"public Tile getTileAt(Position p);",
"public abstract Tile getTileAt(int x, int y);",
"@Override\n\tprotected void generateTiles() {\n\t}",
"public Tile[] generateTiles() {\n return nul... | [
"0.6846255",
"0.66341096",
"0.6622219",
"0.66174054",
"0.6522256",
"0.6497061",
"0.64870703",
"0.6379592",
"0.6367317",
"0.63406366",
"0.6337348",
"0.63320464",
"0.6326289",
"0.62845385",
"0.6267474",
"0.62545705",
"0.62545705",
"0.6164675",
"0.61570615",
"0.61539036",
"0.613... | 0.7087168 | 0 |
Returns a tile (a Spatial) in the exact middle of the BOARD | public Spatial boardCentre() {
return tiles[2][2].tile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Tile getTileAt(int x, int y);",
"public Tile getTileAt(Position p);",
"Tile getPosition();",
"@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n... | [
"0.70399714",
"0.6766802",
"0.66916513",
"0.64355433",
"0.6387",
"0.62330115",
"0.61606413",
"0.6140057",
"0.6091078",
"0.6081247",
"0.60797614",
"0.60260534",
"0.60033816",
"0.59722364",
"0.596197",
"0.5940721",
"0.59199244",
"0.58999133",
"0.5884267",
"0.5858515",
"0.581358... | 0.6967538 | 1 |
Builds up a tile that was selected by a players during the building phase | public void buildTile(int column, int row) {
tiles[column][row].buildUp();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /**************... | [
"0.6765572",
"0.66891277",
"0.6644103",
"0.63899857",
"0.63457143",
"0.6345636",
"0.62813115",
"0.62439805",
"0.6187185",
"0.61361855",
"0.59325075",
"0.59190536",
"0.59125733",
"0.5905979",
"0.58941627",
"0.5860329",
"0.58505505",
"0.58362174",
"0.57843953",
"0.5774824",
"0.... | 0.5856597 | 16 |
Shows tiles available to enter by the builder during the movement phase | public void showAvailableTiles(Builder selected, showTilesMode mode) {
//case 1: we remove tiles that were available in a previous phase
if (mode == showTilesMode.hideTiles)
hideAllAdjacentTiles(selected);
else // mode == showTilesMode.showTiles, case 2: we are checking every sin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void tiles()\n{\n if(m.getActiveManager() != 0)\n {\n m.hideButtonsOfManager(1);\n m.hideButtonsOfManager(2);\n m.showButtonsOfManager(0);\n m.activateManager(0);\n m.getTileManager().getActiveTile().setShowHover(true);\n }\n}",
"public void displayTiles() {\n System.out.println(\"\\n... | [
"0.6794477",
"0.6659642",
"0.66391826",
"0.65868556",
"0.6563344",
"0.6541916",
"0.64600277",
"0.63634896",
"0.61962926",
"0.61550117",
"0.6104225",
"0.6101437",
"0.6075806",
"0.6068648",
"0.60498923",
"0.60330105",
"0.6028396",
"0.6020065",
"0.5962973",
"0.5961865",
"0.59600... | 0.6774731 | 1 |
Returns height of a building 0 is GROUND, 1 is FIRST etc. | public Floor getHeight() {
return height;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getHeight();",
"String getHeight();",
"@Override\n public int height() {\n IHex posHex = game.getBoard().getHex(getPosition());\n return (isProne() || ((posHex != null) && Compute.isInBuilding(game, this))) ? 0 : 1;\n }",
"long getHeight();",
"public int getHeight();",
"public ... | [
"0.703734",
"0.703734",
"0.70252055",
"0.70122045",
"0.6917787",
"0.6917787",
"0.6917787",
"0.6917787",
"0.6917787",
"0.6917787",
"0.6906088",
"0.68922836",
"0.68819666",
"0.6854875",
"0.6853214",
"0.6853029",
"0.6853029",
"0.6853029",
"0.6853029",
"0.6853029",
"0.6853029",
... | 0.73027676 | 0 |
Returns a Vector2f with tile's matrix coordinates. "x" is a column coordinate, "y" is a row coordinate | public Vector2f getCoordinates() {
return new Vector2f(tileColumn, tileRow);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point getTileCoordinates(int x, int y) {\n int tileWidth = this.board.getTileSet().getTileWidth() + 1;\n int tileHeight = this.board.getTileSet().getTileHeight() + 1;\n\n int tileX = Math.max(0, Math.min(x / tileWidth, this.board.getWidth() - 1));\n int tileY = Math.max(0, Math.m... | [
"0.66630894",
"0.6590118",
"0.6367677",
"0.63404685",
"0.61462235",
"0.6133467",
"0.6076534",
"0.6041277",
"0.60375965",
"0.6022289",
"0.6021395",
"0.592926",
"0.5908116",
"0.5907678",
"0.5890786",
"0.5877284",
"0.5865629",
"0.58617014",
"0.58417976",
"0.5829958",
"0.58243054... | 0.68324196 | 0 |
Returns true when a building is completed | public boolean isCompleted() {
return completed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isComplete();",
"boolean isComplete();",
"boolean isComplete();",
"protected boolean isFinished() {\n\n \tif(weAreDoneSenor == true) {\n\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n \t\n }",
"public Boolean isComplete() {\n return true;\n }",
"protec... | [
"0.7545686",
"0.7499924",
"0.7499924",
"0.7420268",
"0.74140346",
"0.73841906",
"0.73801076",
"0.7374708",
"0.7374708",
"0.7374708",
"0.7365561",
"0.736322",
"0.732645",
"0.732645",
"0.732645",
"0.732645",
"0.732645",
"0.732645",
"0.73227566",
"0.73124385",
"0.7306152",
"0.... | 0.71133155 | 57 |
Returns true when a builder is able to enter a tile | public boolean isBuildable() {
return buildable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean canBuildDome(Tile t);",
"boolean canBuildBlock(Tile t);",
"boolean checkWin(Tile initialTile);",
"private static boolean isTileAvailable(DisplayTile tile, Direction fromDirection, HashMap<DisplayTile, DisplayTile> chainedTiles) {\n\t\tif (tile == null || chainedTiles.containsKey(tile))\n\t\t\treturn ... | [
"0.7635299",
"0.7601848",
"0.7080627",
"0.6958659",
"0.6690476",
"0.6654242",
"0.6650611",
"0.66180766",
"0.6604612",
"0.6530369",
"0.6449162",
"0.63828516",
"0.63468313",
"0.63272846",
"0.6309325",
"0.63061845",
"0.62791926",
"0.6278024",
"0.62575495",
"0.6253343",
"0.624234... | 0.0 | -1 |
Returns true when a builder is able to build on a tile | public boolean isMovable() {
return movable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean canBuildDome(Tile t);",
"boolean canBuildBlock(Tile t);",
"boolean hasBuild();",
"private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\... | [
"0.7946803",
"0.77613395",
"0.6763614",
"0.6757758",
"0.6705356",
"0.66973037",
"0.65763134",
"0.6530839",
"0.6522264",
"0.6476085",
"0.644018",
"0.644018",
"0.64374495",
"0.6425162",
"0.6371772",
"0.6362639",
"0.63542026",
"0.63280207",
"0.6298909",
"0.62768185",
"0.62601966... | 0.0 | -1 |
Enables or disables tile's "buildability" | public void setBuildable(boolean b) {
buildable = b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disableBuildHotel(){\r\n\t\tbuildHotel = false;\r\n\t}",
"public void enableMonsters(){\n enabled = true;\n }",
"@Override\n protected void setInitiallyEnabled(boolean forConstruction)\n {\n super.setInitiallyEnabled(forConstruction);\n\n setEnabled(CogToolLID.NewWidge... | [
"0.615514",
"0.61411124",
"0.61082107",
"0.5827256",
"0.58131146",
"0.5777776",
"0.5747119",
"0.5721883",
"0.5709086",
"0.5700434",
"0.5683083",
"0.5630971",
"0.5603415",
"0.5571752",
"0.55500454",
"0.55413353",
"0.55264187",
"0.55142343",
"0.54403657",
"0.54322195",
"0.54273... | 0.6030897 | 3 |
Enables or disables a possibility to enter a certain tile | public void setMovable(boolean b) {
movable = b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enableTiles(boolean enable)\n {\n // PUT ALL THE TILES IN ONE PLACE WHERE WE CAN PROCESS THEM TOGETHER\n moveAllTilesToStack();\n \n // GO THROUGH ALL OF THEM \n for (MahjongSolitaireTile tile : stackTiles)\n {\n // AND SET THEM PROPERLY\n ... | [
"0.67957735",
"0.6781629",
"0.6631062",
"0.6550416",
"0.6388072",
"0.6306163",
"0.62689954",
"0.61748314",
"0.61582565",
"0.6146869",
"0.6096568",
"0.6081019",
"0.6062224",
"0.602495",
"0.6022396",
"0.5958714",
"0.5931876",
"0.58964574",
"0.58524626",
"0.5826975",
"0.5821148"... | 0.0 | -1 |
This method will attempt to register a user If the username already exists, it should respond by saying that the username is already taken Above currently doesn't work | @PostMapping("/register")
public ControllerResponse registerUser(@RequestBody User user, HttpSession sess) {
ControllerResponse cr = new ControllerResponse();
String response = "";
User checkUser = userService.getUserByUsername(user.getUsername());
if (checkUser != null) {
response = "Username a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addUser(Username username) throws UserAlreadyExistsException;",
"public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setU... | [
"0.7306077",
"0.7289922",
"0.7271935",
"0.72608507",
"0.7203289",
"0.7172631",
"0.71630937",
"0.7146348",
"0.71456695",
"0.71432495",
"0.71395624",
"0.7063931",
"0.7057244",
"0.7016946",
"0.6967993",
"0.68778265",
"0.68603426",
"0.6819788",
"0.6814395",
"0.68035287",
"0.68023... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
EditText emailText = (EditText)findViewById(R.id.reg_email);
EditText firstNameText = (EditText)findViewById(R.id.reg_first_name);
EditText lastNameText = (EditText)findViewById(R.id.reg_last_name);
EditText userNameText = (EditText)findViewById(R.id.reg_userna... | {
"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 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.register, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7904451",
"0.78051436",
"0.7766031",
"0.77275425",
"0.76321447",
"0.7622237",
"0.7584132",
"0.7530231",
"0.74875915",
"0.7457484",
"0.7457484",
"0.7438372",
"0.74221927",
"0.7403421",
"0.73915446",
"0.738672",
"0.7378976",
"0.73701847",
"0.7362139",
"0.73556066",
"0.734531... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateisdel(String[] ids, String oper) {
modelDao.updateisdel(ids, oper);
} | {
"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 Pager findByPager(Pager pager,HashMap<String, String> map, String id) {
return modelDao.findByPager(pager,map,id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This is the default constructor (do not remove) | public DetailVORowImpl() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"private Instantiation(){}",
"public PSRelation()\n {\n }",
"defaultConstructor(){}",
"public Orbiter() {\n }",
"public Pit... | [
"0.83146733",
"0.803775",
"0.74150604",
"0.7394629",
"0.73675823",
"0.7337131",
"0.7284446",
"0.72702533",
"0.72196317",
"0.72176874",
"0.7197573",
"0.7195276",
"0.7182226",
"0.718221",
"0.7171106",
"0.7168691",
"0.716326",
"0.71600175",
"0.71342796",
"0.7129816",
"0.71239024... | 0.0 | -1 |
Gets the attribute value for the calculated attribute FolioFlete | public String getFolioFlete() {
return (String) getAttributeInternal(FOLIOFLETE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getFlete(){\n return localFlete;\n }",
"public Float getFloatAttribute();",
"public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }",
"public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO... | [
"0.6747532",
"0.6635323",
"0.6597812",
"0.64036167",
"0.6366776",
"0.621101",
"0.61499745",
"0.6135287",
"0.6102001",
"0.60775226",
"0.6074515",
"0.60513705",
"0.6048798",
"0.6048798",
"0.6018123",
"0.5979433",
"0.5968102",
"0.59655064",
"0.59460807",
"0.59404624",
"0.5914117... | 0.618503 | 6 |
Sets value as the attribute value for the calculated attribute FolioFlete | public void setFolioFlete(String value) {
setAttributeInternal(FOLIOFLETE, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }",
"public void setF(){\n\t\tf=calculateF();\n\t}",
"@Override\n\tpublic void setValue(final Attribute a... | [
"0.668509",
"0.6310765",
"0.6289836",
"0.62666243",
"0.61472756",
"0.61427987",
"0.59914654",
"0.5954621",
"0.5914365",
"0.5901699",
"0.58685607",
"0.58615863",
"0.5857106",
"0.58225507",
"0.5794826",
"0.577518",
"0.57348406",
"0.5688418",
"0.56843996",
"0.5675299",
"0.567399... | 0.5561418 | 35 |
Gets the attribute value for the calculated attribute Transport | public String getTransport() {
return (String) getAttributeInternal(TRANSPORT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}",
"public double getTransportPrice() {\n return transportPrice;\n }",
"public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }",
"public Number getTramo() {\n return (Number) getAtt... | [
"0.6413344",
"0.6334029",
"0.6074805",
"0.59135634",
"0.5849497",
"0.5846343",
"0.57762367",
"0.5773685",
"0.5726492",
"0.56964856",
"0.569321",
"0.5692613",
"0.56909835",
"0.5677956",
"0.56612706",
"0.56580424",
"0.562997",
"0.56242293",
"0.56019497",
"0.5583779",
"0.5576654... | 0.6271275 | 2 |
Sets value as the attribute value for the calculated attribute Transport | public void setTransport(String value) {
setAttributeInternal(TRANSPORT, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTransportPrice(double value) {\n this.transportPrice = value;\n }",
"void setValue(Endpoint endpoint, double value) {\n endpoint.setValue(this, value);\n }",
"protected abstract void setValue(Entity e,FloatTrait t,float value);",
"public T set(String name, Object value)\n\t\t\tth... | [
"0.6482954",
"0.608997",
"0.56714904",
"0.56407493",
"0.5611057",
"0.55906147",
"0.5564543",
"0.5555647",
"0.5526744",
"0.55180913",
"0.55024505",
"0.54803634",
"0.5478468",
"0.5473995",
"0.5470967",
"0.54650074",
"0.5448895",
"0.54322785",
"0.5415791",
"0.5409914",
"0.540820... | 0.6279899 | 1 |
Gets the attribute value for the calculated attribute Foliosintramo | public Number getFoliosintramo() {
return (Number) getAttributeInternal(FOLIOSINTRAMO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }",
"public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }",
"public Float getFloatAttribute();",
"public double getFlete(){\n return localFlete;\n ... | [
"0.63849926",
"0.61889225",
"0.6056739",
"0.60390526",
"0.6017256",
"0.5985915",
"0.59618485",
"0.59456253",
"0.59376657",
"0.58963686",
"0.58963686",
"0.5892949",
"0.5873423",
"0.585227",
"0.5828158",
"0.5809395",
"0.5809395",
"0.58065027",
"0.58061004",
"0.58050185",
"0.579... | 0.72211856 | 0 |
Sets value as the attribute value for the calculated attribute Foliosintramo | public void setFoliosintramo(Number value) {
setAttributeInternal(FOLIOSINTRAMO, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }",
"public void setMontoFacturado(double param){\n \n ... | [
"0.6238009",
"0.61664414",
"0.6088886",
"0.60438436",
"0.6013924",
"0.60039186",
"0.59898037",
"0.5966033",
"0.5958802",
"0.594994",
"0.59386736",
"0.5934027",
"0.5869101",
"0.586101",
"0.5848199",
"0.5848199",
"0.5843005",
"0.5807593",
"0.5784918",
"0.5718144",
"0.56766367",... | 0.6519102 | 0 |
Gets the attribute value for the calculated attribute Tramo | public Number getTramo() {
return (Number) getAttributeInternal(TRAMO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }",
"public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }",
"public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}",
"public float getTaux() {\r\n\treturn this.ta... | [
"0.6336105",
"0.6330413",
"0.6169207",
"0.61126244",
"0.59663105",
"0.59569275",
"0.59124106",
"0.5901806",
"0.5886002",
"0.5877504",
"0.5867347",
"0.5862642",
"0.58583003",
"0.5851258",
"0.5836886",
"0.5834421",
"0.5822851",
"0.5813336",
"0.5807723",
"0.5794775",
"0.57656276... | 0.81152433 | 0 |
Sets value as the attribute value for the calculated attribute Tramo | public void setTramo(Number value) {
setAttributeInternal(TRAMO, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }",
"public void setMtm(double value) {\r\n this.mtm = value;\r\n }",
"@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}",
"public void setAlto(Number value)\n {\n setAttribut... | [
"0.63084567",
"0.6111019",
"0.6056065",
"0.594669",
"0.5924046",
"0.5876625",
"0.585237",
"0.5813141",
"0.57946116",
"0.57667994",
"0.57540286",
"0.57253975",
"0.57076174",
"0.5700056",
"0.56746167",
"0.56657386",
"0.5652886",
"0.5652886",
"0.5634037",
"0.56322426",
"0.561024... | 0.7580508 | 0 |
Gets the attribute value for the calculated attribute Fee | public Number getFee() {
return (Number) getAttributeInternal(FEE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getFee() {\n return fee;\n }",
"public BigDecimal getFee() {\r\n return fee;\r\n }",
"public BigDecimal getFee() {\n return fee;\n }",
"public double getFee() {\n\t\treturn fee;\n\t}",
"public int getFee()\n {\n return fee;\n }",
"public String getFe... | [
"0.73172367",
"0.7313013",
"0.7287763",
"0.7271854",
"0.7237126",
"0.71675956",
"0.7161881",
"0.71039134",
"0.70276767",
"0.6775643",
"0.6693983",
"0.667632",
"0.66582215",
"0.65831697",
"0.6581549",
"0.64811647",
"0.6445793",
"0.6429452",
"0.6393943",
"0.6360177",
"0.6272648... | 0.78432286 | 0 |
Sets value as the attribute value for the calculated attribute Fee | public void setFee(Number value) {
setAttributeInternal(FEE, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFee(int fee)\n {\n this.fee = fee;\n }",
"public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r\n }",
"public void setFee(BigDecimal fee) {\n this.fee = fee;\n }",
"public void setFee(AmountType fee) {\n\t this.fee = fee;\n\t}",
"public Builder setFee... | [
"0.7284254",
"0.71829444",
"0.7145015",
"0.7059909",
"0.69707835",
"0.6762925",
"0.66358185",
"0.6593952",
"0.6553972",
"0.6401962",
"0.6296132",
"0.6280298",
"0.627573",
"0.6261971",
"0.6257432",
"0.624391",
"0.6220187",
"0.620109",
"0.61779165",
"0.6119938",
"0.59811896",
... | 0.7605664 | 0 |
Gets the attribute value for the calculated attribute IvaFlag | public String getIvaFlag() {
return (String) getAttributeInternal(IVAFLAG);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }",
"public IVA getIva() {\n return iva;\n }",
"int getFeatureValue();",
"public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }",
"public gov.nih.nlm.ncbi.... | [
"0.7346441",
"0.62994456",
"0.6270024",
"0.6226881",
"0.6146714",
"0.60910493",
"0.6056461",
"0.6055804",
"0.60223746",
"0.60115457",
"0.5973949",
"0.59676516",
"0.59613025",
"0.5940697",
"0.5931903",
"0.5883315",
"0.58454096",
"0.5841635",
"0.5825007",
"0.5797861",
"0.578519... | 0.8065654 | 0 |
Sets value as the attribute value for the calculated attribute IvaFlag | public void setIvaFlag(String value) {
setAttributeInternal(IVAFLAG, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"void setInt(int attributeValue);",
"void setIVA(float iva);",
"public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n ... | [
"0.7132007",
"0.6475647",
"0.63024765",
"0.62224925",
"0.61258715",
"0.60530657",
"0.60530657",
"0.6052097",
"0.5995486",
"0.59838325",
"0.5980601",
"0.590083",
"0.5882095",
"0.58492905",
"0.58055633",
"0.58003664",
"0.58003664",
"0.5761632",
"0.5761522",
"0.5750574",
"0.5736... | 0.761407 | 0 |
Gets the attribute value for the calculated attribute RetentionFlag | public String getRetentionFlag() {
return (String) getAttributeInternal(RETENTIONFLAG);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }",
"public Retention getRetention() {\n return retention;\n }",
"public String getAttrVal() {\n return attrVal;\n }",
"public String getAvailableForRentFlag() {\n return (String... | [
"0.70407534",
"0.63947046",
"0.5843009",
"0.5693831",
"0.5607084",
"0.5585888",
"0.5570912",
"0.5514252",
"0.5456494",
"0.54342484",
"0.5401362",
"0.54009265",
"0.5396167",
"0.5394495",
"0.53153336",
"0.53118175",
"0.5285654",
"0.52754074",
"0.5266522",
"0.5242613",
"0.524028... | 0.7312753 | 0 |
Sets value as the attribute value for the calculated attribute RetentionFlag | public void setRetentionFlag(String value) {
setAttributeInternal(RETENTIONFLAG, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }",
"public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }",
"public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTrac... | [
"0.66643804",
"0.57927",
"0.55413026",
"0.55058527",
"0.55058527",
"0.5502855",
"0.54587394",
"0.54128253",
"0.5364545",
"0.52391636",
"0.52181625",
"0.51988703",
"0.51926625",
"0.51777303",
"0.5150378",
"0.51484483",
"0.51218516",
"0.51010484",
"0.50977623",
"0.5093814",
"0.... | 0.68836266 | 0 |
Gets the attribute value for the calculated attribute IvaMFlag | public String getIvaMFlag() {
return (String) getAttributeInternal(IVAMFLAG);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }",
"public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }",
"private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}",
"public ... | [
"0.7165604",
"0.66059417",
"0.61540973",
"0.59817255",
"0.5913091",
"0.5772234",
"0.5762462",
"0.5762462",
"0.5737408",
"0.5731495",
"0.5720454",
"0.56427735",
"0.564155",
"0.5607701",
"0.559908",
"0.5585125",
"0.5531162",
"0.55145",
"0.54527396",
"0.5448555",
"0.5445546",
... | 0.82825685 | 0 |
Sets value as the attribute value for the calculated attribute IvaMFlag | public void setIvaMFlag(String value) {
setAttributeInternal(IVAMFLAG, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }",
"public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"void setInt(int attributeValue);",
"void setIVA(float iv... | [
"0.67624533",
"0.659225",
"0.6033842",
"0.5888682",
"0.5656453",
"0.5655915",
"0.5650034",
"0.5635873",
"0.56261164",
"0.5600065",
"0.5599243",
"0.5596833",
"0.55852395",
"0.55718017",
"0.5525797",
"0.5487804",
"0.5437374",
"0.54219013",
"0.54219013",
"0.54115486",
"0.5408222... | 0.7992392 | 0 |
Gets the attribute value for the calculated attribute RetentionMFlag | public String getRetentionMFlag() {
return (String) getAttributeInternal(RETENTIONMFLAG);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }",
"public String getAttrVal() {\n return attrVal;\n }",
"java.lang.String getAttribute();",
"public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }",
"pub... | [
"0.66191626",
"0.5889398",
"0.58862764",
"0.5870781",
"0.5779623",
"0.5729197",
"0.5729197",
"0.5729197",
"0.5729197",
"0.57253075",
"0.5719719",
"0.56630224",
"0.5656785",
"0.5656785",
"0.56427944",
"0.5638087",
"0.56172156",
"0.5592801",
"0.55912197",
"0.5571683",
"0.556867... | 0.7345994 | 0 |
Sets value as the attribute value for the calculated attribute RetentionMFlag | public void setRetentionMFlag(String value) {
setAttributeInternal(RETENTIONMFLAG, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRetentionFlag(String value) {\n setAttributeInternal(RETENTIONFLAG, value);\n }",
"public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }",
"public void setMentionID(long v) {\n _setLongValueNfc(wrapGetIntCatchException(_FH_mentionI... | [
"0.59281635",
"0.5897415",
"0.55713475",
"0.5293523",
"0.5250641",
"0.5226585",
"0.5216251",
"0.52048874",
"0.5181578",
"0.51777136",
"0.51698667",
"0.5142415",
"0.5138693",
"0.51132303",
"0.51051164",
"0.51051164",
"0.51019955",
"0.5092623",
"0.50910854",
"0.5090303",
"0.509... | 0.67856616 | 0 |
Gets the attribute value for the calculated attribute Currency | public String getCurrency() {
return (String) getAttributeInternal(CURRENCY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Currency getCurrency();",
"Currency getCurrency();",
"public String getCurrency() {\n return this.currency;\n }",
"public java.lang.String getCurrency()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n ... | [
"0.723407",
"0.7222535",
"0.72070473",
"0.71776193",
"0.7164205",
"0.71330106",
"0.71049297",
"0.7097106",
"0.7055961",
"0.6995554",
"0.6995554",
"0.6995554",
"0.6995554",
"0.69912326",
"0.6962403",
"0.6959364",
"0.6956381",
"0.6890113",
"0.6873862",
"0.6865802",
"0.6807302",... | 0.7759404 | 0 |
Sets value as the attribute value for the calculated attribute Currency | public void setCurrency(String value) {
setAttributeInternal(CURRENCY, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCurrency(Currency currency);",
"public void setCurrency(Currency usd) {\n\t\t\n\t}",
"public void setCurrency1(BigDecimal newCurrency1) {\n\tcurrency1 = newCurrency1;\n}",
"public void setCurrency(CurrencyVO newCurrency) {\n\tcurrency = newCurrency;\n}",
"public void setCurrency(CurrencyUnit curren... | [
"0.7284098",
"0.6687431",
"0.66760486",
"0.6606093",
"0.65886384",
"0.6557294",
"0.64813364",
"0.6479039",
"0.6466469",
"0.6444136",
"0.6395163",
"0.63865143",
"0.6374314",
"0.63659644",
"0.63039804",
"0.62767357",
"0.6263451",
"0.62532604",
"0.6249836",
"0.6245206",
"0.62419... | 0.71954846 | 1 |
Gets the attribute value for the calculated attribute Provider | public String getProvider() {
return (String) getAttributeInternal(PROVIDER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}",
"public String getAttribute_value() {\n return attribute_value;\n }",
"Attribute getAttribute();",
"java.lang.String getAttribute();",
"Object getAttribute(int attribute);"... | [
"0.6609853",
"0.65487534",
"0.63483924",
"0.6307477",
"0.62408847",
"0.6209477",
"0.6191876",
"0.6106911",
"0.6081701",
"0.60712665",
"0.6047997",
"0.60439277",
"0.6022889",
"0.60061795",
"0.5961395",
"0.59566706",
"0.59456325",
"0.5895187",
"0.5881233",
"0.58811",
"0.5881085... | 0.557262 | 51 |
Sets value as the attribute value for the calculated attribute Provider | public void setProvider(String value) {
setAttributeInternal(PROVIDER, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"protected abstract void setContextAttribute(String name, Object value);",
"public void set_attribute(Object instance, String attribute_name, Object value) throws Xt... | [
"0.671279",
"0.65509194",
"0.6514773",
"0.6342347",
"0.6265424",
"0.6259558",
"0.62526584",
"0.6240303",
"0.62084943",
"0.6128865",
"0.6117386",
"0.6053545",
"0.5991617",
"0.5988565",
"0.59343666",
"0.5929174",
"0.59157056",
"0.5913522",
"0.589976",
"0.58851826",
"0.5884064",... | 0.55203956 | 74 |
getAttrInvokeAccessor: generated method. Do not modify. | protected Object getAttrInvokeAccessor(int index,
AttributeDefImpl attrDef) throws Exception {
switch (index) {
case FOLIOFLETE:
return getFolioFlete();
case TRANSPORT:
return getTransport();
case FOLIOSINTRAMO:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBU... | [
"0.723702",
"0.718321",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.7098436",
"0.70857316",
"0.70857316",
"0.70857316",
"0.70857316",
"0.70702",
"... | 0.69236135 | 27 |
setAttrInvokeAccessor: generated method. Do not modify. | protected void setAttrInvokeAccessor(int index, Object value,
AttributeDefImpl attrDef) throws Exception {
switch (index) {
case INVOICESTATUS:
setInvoiceStatus((String)value);
return;
case CHECKBOX:
setCheckBox((Boole... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNum... | [
"0.7711966",
"0.763835",
"0.7624488",
"0.7622952",
"0.75823784",
"0.7534446",
"0.7522457",
"0.75204605",
"0.75204605",
"0.7520005",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.74888957",
"0.7... | 0.7324199 | 28 |
Gets the attribute value for the calculated attribute CheckBox | public Boolean getCheckBox() {
return (Boolean) getAttributeInternal(CHECKBOX);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }",
"public final String getCheckedAttribute() {\n return... | [
"0.7262029",
"0.6870093",
"0.66453844",
"0.65899795",
"0.62061644",
"0.61278415",
"0.60690516",
"0.59898305",
"0.5972663",
"0.58708984",
"0.5741377",
"0.5731243",
"0.57036906",
"0.5691416",
"0.5683586",
"0.5620427",
"0.5574158",
"0.55649143",
"0.55536664",
"0.55462706",
"0.55... | 0.66544396 | 2 |
Sets value as the attribute value for the calculated attribute CheckBox | public void setCheckBox(Boolean value) {
setAttributeInternal(CHECKBOX, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }",
"public void setCheckedValue(Object pValue);",
"public Act... | [
"0.64863193",
"0.64149284",
"0.639763",
"0.63365",
"0.58852553",
"0.5881751",
"0.5841065",
"0.57895726",
"0.5783053",
"0.577412",
"0.5731538",
"0.56809795",
"0.56392264",
"0.5622018",
"0.557923",
"0.5578502",
"0.55681795",
"0.55508804",
"0.5538294",
"0.5536607",
"0.55097055",... | 0.6112794 | 4 |
Gets the attribute value for the calculated attribute InvoiceStatus | public String getInvoiceStatus() {
return (String) getAttributeInternal(INVOICESTATUS);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InvoiceStatus getInvoiceStatus()\n {\n return INVOICE_STATUS;\n }",
"public String toString(){\n return invoiceStatus;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n ... | [
"0.73614174",
"0.663154",
"0.65022165",
"0.65022165",
"0.65018946",
"0.65018946",
"0.65018946",
"0.65018946",
"0.65018946",
"0.65018946",
"0.65018946",
"0.65018946",
"0.6498061",
"0.6498061",
"0.6498061",
"0.6498061",
"0.6498029",
"0.6498029",
"0.6498029",
"0.6498029",
"0.649... | 0.7958627 | 0 |
Sets value as the attribute value for the calculated attribute InvoiceStatus | public void setInvoiceStatus(String value) {
setAttributeInternal(INVOICESTATUS, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InvoiceStatus(String invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }",
"public void setInvoiceStatus(InvoiceStatus invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n ... | [
"0.7091695",
"0.6882325",
"0.6512114",
"0.6499858",
"0.647197",
"0.64576745",
"0.6424461",
"0.6235753",
"0.6137318",
"0.60004234",
"0.60004234",
"0.60004234",
"0.60004234",
"0.59825945",
"0.59825945",
"0.5981757",
"0.5981757",
"0.5981757",
"0.59420955",
"0.59420955",
"0.59420... | 0.776822 | 0 |
Processes requests for both HTTP GET and POST methods. | protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
/* TODO output your page here. You may use following sample code. */
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_... | [
"0.7003936",
"0.6659079",
"0.660391",
"0.65091664",
"0.6447284",
"0.6442771",
"0.64409995",
"0.6432445",
"0.64279187",
"0.642484",
"0.642484",
"0.6420294",
"0.6420294",
"0.6420294",
"0.64183897",
"0.6414667",
"0.6414667",
"0.6400434",
"0.6394412",
"0.6394412",
"0.63928837",
... | 0.0 | -1 |
This represents the work actually carried out by a Task. It's a singlemethod interface so it can be defined with lambda functions, or other objects can implement it. When the action is run, it will receive an object implementing an interface through which it can report progress and errors. Alteratively, TaskAction coul... | public interface TaskAction {
/**
* This method will define an asynchronous action to take.
* The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and
* prevent them from seeing or modifying the task hierarchy that triggers and manages them.
*... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void task();",
"public interface Task {\n void execute() ;\n}",
"interface ITask {\r\n\tabstract void Init();\r\n\r\n\tabstract void Run();\r\n\r\n\tabstract void Execute();\r\n\r\n\tabstract void Change(boolean value) throws Exception;\r\n\r\n\tabstract void Change(double value) throws Exce... | [
"0.67986673",
"0.6677384",
"0.6640244",
"0.6588283",
"0.6520408",
"0.64536476",
"0.6436762",
"0.6371305",
"0.6340543",
"0.6331618",
"0.62901014",
"0.62652045",
"0.62623197",
"0.6241032",
"0.62336445",
"0.62223077",
"0.62220454",
"0.6206032",
"0.6185107",
"0.6171262",
"0.61684... | 0.75339556 | 0 |
This method will define an asynchronous action to take. The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and prevent them from seeing or modifying the task hierarchy that triggers and manages them. | public void action (ProgressListener progressListener) throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface TaskAction {\n\n /**\n * This method will define an asynchronous action to take.\n * The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and\n * prevent them from seeing or modifying the task hierarchy that triggers and manages th... | [
"0.7990355",
"0.64939094",
"0.6373701",
"0.6274566",
"0.62314624",
"0.61196667",
"0.60955167",
"0.60533834",
"0.60265493",
"0.600362",
"0.59797895",
"0.5970449",
"0.5962053",
"0.5929216",
"0.592635",
"0.58868444",
"0.58312845",
"0.58270025",
"0.5817424",
"0.57872945",
"0.5770... | 0.0 | -1 |
Retrieve a list of the component's coupon periods | public java.util.List<org.drip.analytics.cashflow.CompositePeriod> periods()
{
return _lsPeriod;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Period> getPeriods() throws PeriodNotFoundException;",
"public java.util.List<org.drip.analytics.cashflow.CompositePeriod> cashFlowPeriod()\n\t{\n\t\treturn _lsPeriod;\n\t}",
"@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"'{getOpenAccountingPeriods}'\")\n public Collection<A... | [
"0.6967028",
"0.6634764",
"0.64825785",
"0.6207029",
"0.6080717",
"0.5999342",
"0.587591",
"0.57975477",
"0.5792778",
"0.5774289",
"0.57525873",
"0.575136",
"0.57135016",
"0.5673353",
"0.5635308",
"0.56221145",
"0.5616362",
"0.5608999",
"0.55991733",
"0.5594522",
"0.5555981",... | 0.68221664 | 1 |
Retrieve the Stream Frequency | public int freq()
{
return _lsPeriod.get (0).freq();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getFrequency();",
"float getFrequency() throws InterruptedException, ConnectionLostException;",
"private float calculateSensorFrequency() {\n if (startTime == 0) {\n startTime = System.nanoTime();\n }\n\n long timestamp = System.nanoTime();\n\n // Find the sample pe... | [
"0.7653853",
"0.72524714",
"0.72295475",
"0.72223896",
"0.7167787",
"0.70963526",
"0.70956445",
"0.7091001",
"0.7074621",
"0.7057579",
"0.7031599",
"0.7012626",
"0.70111793",
"0.69964164",
"0.69768775",
"0.6968704",
"0.6885367",
"0.6861054",
"0.6818751",
"0.6770639",
"0.67681... | 0.67997366 | 19 |
Retrieve the Coupon Day Count | public java.lang.String couponDC()
{
return _lsPeriod.get (0).periods().get (0).couponDC();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resu... | [
"0.6796941",
"0.67334485",
"0.633031",
"0.6222215",
"0.6173996",
"0.6110115",
"0.6100282",
"0.60635173",
"0.60360473",
"0.5969516",
"0.59509015",
"0.594148",
"0.5935783",
"0.58922946",
"0.5881258",
"0.5869366",
"0.58338946",
"0.5808522",
"0.5790921",
"0.5747388",
"0.5715478",... | 0.0 | -1 |
Retrieve the Coupon EOM Adjustment | public boolean couponEOMAdjustment()
{
return _lsPeriod.get (0).periods().get (0).couponEOMAdjustment();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EDataType getConductance();",
"public EconomyCore getEcon() {\n return economy;\n }",
"org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();",
"public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}",
"public double getCE... | [
"0.6462107",
"0.62165636",
"0.60798365",
"0.58884543",
"0.58661824",
"0.57937336",
"0.5742441",
"0.57298064",
"0.56967545",
"0.56778497",
"0.56678855",
"0.56271493",
"0.55971515",
"0.55543107",
"0.55513716",
"0.5535575",
"0.5535575",
"0.5528929",
"0.5507228",
"0.54771686",
"0... | 0.5208969 | 42 |
Retrieve the Accrual Day Count | public java.lang.String accrualDC()
{
return _lsPeriod.get (0).periods().get (0).accrualDC();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DayCount getDayCount() {\n return dayCount;\n }",
"@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.un... | [
"0.714139",
"0.68965113",
"0.6615449",
"0.6601949",
"0.64991623",
"0.63951826",
"0.63634557",
"0.6362227",
"0.6344246",
"0.63236326",
"0.6304235",
"0.6302182",
"0.6266206",
"0.62420934",
"0.62363154",
"0.6220281",
"0.6193187",
"0.61626434",
"0.61436",
"0.6133594",
"0.6083805"... | 0.56619775 | 63 |
Retrieve the Accrual EOM Adjustment | public boolean accrualEOMAdjustment()
{
return _lsPeriod.get (0).periods().get (0).accrualEOMAdjustment();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EnzymeCommissionNumber getEc() {\n return ec;\n }",
"public double getCEMENTAmount();",
"public double getEnergia() { return energia; }",
"@Override\n public int accion() {\n return this.alcance*2/3*3;\n }",
"public double getEccentricityDelta() {\n return eccentricityDel... | [
"0.63320774",
"0.6169546",
"0.60132164",
"0.5953288",
"0.59056085",
"0.58792055",
"0.5818049",
"0.58066493",
"0.5804252",
"0.57861686",
"0.57843435",
"0.5759353",
"0.5702983",
"0.5702182",
"0.56464165",
"0.5585478",
"0.5555947",
"0.555446",
"0.55470306",
"0.55470246",
"0.5514... | 0.5384873 | 32 |
Retrieve the Credit Label | public org.drip.state.identifier.EntityCDSLabel creditLabel()
{
return _lsPeriod.get (0).creditLabel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.microsoft.schemas.xrm._2011.contracts.Label getLabel();",
"com.microsoft.schemas.xrm._2011.contracts.Label getDescription();",
"public String getLabel() {\n return AsteriskUtlities.toContextIdentifier(username + \"-\" + company);\n }",
"String getLabel();",
"String getLabel();",
"public jav... | [
"0.74890727",
"0.7119316",
"0.6645198",
"0.6574223",
"0.6574223",
"0.6564076",
"0.65543455",
"0.6538905",
"0.646888",
"0.645213",
"0.64074284",
"0.64074284",
"0.64074284",
"0.64074284",
"0.6381509",
"0.6381509",
"0.6381509",
"0.6356601",
"0.63276196",
"0.63254726",
"0.6308945... | 0.81339896 | 0 |
Retrieve the Floater Label | public org.drip.state.identifier.FloaterLabel floaterLabel()
{
return _lsPeriod.get (0).floaterLabel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getLabel();",
"public double getLabel() {\n\t\treturn label;\n\t}",
"java.lang.String getLabel();",
"public java.lang.String getLabel();",
"String getLabel();",
"String getLabel();",
"public org.drip.state.identifier.FXLabel fxLabel()\n\t{\n\t\treturn _lsPeriod.get (0).fxLabel();\n\t}",
"publi... | [
"0.7404111",
"0.7171602",
"0.7142909",
"0.7082574",
"0.7047373",
"0.7047373",
"0.6984798",
"0.6916601",
"0.6916601",
"0.6916601",
"0.6916601",
"0.6829055",
"0.6829055",
"0.6829055",
"0.68015355",
"0.6695824",
"0.66602117",
"0.66466355",
"0.66288865",
"0.6620785",
"0.6620785",... | 0.8097507 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.