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 |
|---|---|---|---|---|---|---|
Returns a new object of class 'Message Query'. | MessageQuery createMessageQuery(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder clearQueryMessage() {\n bitField0_ = (bitField0_ & ~0x00000200);\n queryMessage_ = getDefaultInstance().getQueryMessage();\n onChanged();\n return this;\n }",
"public Builder setQueryMessage(com.google.protobuf.ByteString value) {\n if (value == null) {\n ... | [
"0.6859667",
"0.6804052",
"0.65444297",
"0.65414816",
"0.65140873",
"0.6370799",
"0.63442767",
"0.6282908",
"0.6265923",
"0.6246866",
"0.6220833",
"0.6196633",
"0.6142009",
"0.6126674",
"0.60600305",
"0.6030502",
"0.6020208",
"0.5964978",
"0.59390277",
"0.59299767",
"0.592730... | 0.86067575 | 0 |
Returns a new object of class 'Obstacle Query'. | ObstacleQuery createObstacleQuery(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static QueryInterface createQuery() {\n return new XmlQuery();\n }",
"public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }",
"public Obstacle getConstructingObstacle();",
"public Query() {\r\n }",
"public static Query empty() {\n retur... | [
"0.6217844",
"0.619776",
"0.60424334",
"0.59959143",
"0.5794583",
"0.5768103",
"0.5701629",
"0.56836593",
"0.5648728",
"0.5624188",
"0.5604863",
"0.5603981",
"0.5577536",
"0.55734044",
"0.5551139",
"0.5494803",
"0.549194",
"0.5490395",
"0.5481119",
"0.5468066",
"0.54618573",
... | 0.8645811 | 0 |
Returns a new object of class 'Numeric Expression'. | NumericExpression createNumericExpression(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression createExpression();",
"Expression() { }",
"public NumericMethodException() {\n super();\n }",
"NumberValue createNumberValue();",
"public NumericField() {\n\t\tsuper();\n\t}",
"private static Expression getNumericLiteral(String token, ExceptionMetadata metadataFromContext) {\n if (!... | [
"0.6917567",
"0.6447215",
"0.62684196",
"0.62585366",
"0.6159584",
"0.61454695",
"0.61454004",
"0.61412364",
"0.6107675",
"0.60723525",
"0.60659176",
"0.60618764",
"0.60598946",
"0.60158324",
"0.5908684",
"0.5885121",
"0.5874272",
"0.58528894",
"0.5836912",
"0.5836912",
"0.58... | 0.8852934 | 0 |
Returns a new object of class 'String Expression'. | StringExpression createStringExpression(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"StringLiteralExp createStringLiteralExp();",
"<C> StringLiteralExp<C> createStringLiteralExp();",
"public LiteralExpression (String str){\n _value = str;\n }",
"Expression createExpression();",
"StringOperation createStringOperation();",
"public static Expression compile(@NonNull final String s... | [
"0.7377427",
"0.704686",
"0.70112157",
"0.6882274",
"0.6789951",
"0.665015",
"0.6620442",
"0.6448834",
"0.64384943",
"0.6429967",
"0.63961476",
"0.63961476",
"0.63713145",
"0.6340662",
"0.6334656",
"0.631123",
"0.62969875",
"0.6295564",
"0.62040377",
"0.62001693",
"0.6139867"... | 0.88248414 | 0 |
Returns a new object of class 'Boolean Expression'. | BooleanExpression createBooleanExpression(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BooleanLiteralExp createBooleanLiteralExp();",
"<C> BooleanLiteralExp<C> createBooleanLiteralExp();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"String getBooleanTrueExpression();",
"BoolOper... | [
"0.79013765",
"0.75354683",
"0.72424734",
"0.72424734",
"0.72424734",
"0.72424734",
"0.7068344",
"0.7025785",
"0.7023201",
"0.6860355",
"0.6772086",
"0.6769698",
"0.66121",
"0.6548617",
"0.65322894",
"0.65138686",
"0.6497015",
"0.6490278",
"0.63960195",
"0.63588744",
"0.63535... | 0.89447755 | 1 |
Returns a new object of class 'Rover Value'. | RoverValue createRoverValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point getRoverPos()\n {\n return new Point(roverX, roverY);\n }",
"@Test\n public void Constructor_ObjectValues_InstanceCreated() {\n\t\ttry {\n Position position = make_PositionWithIntegerPoints(xCoordinate, yCoordinate, direction);\n Surface surface = make_SurfaceWi... | [
"0.5857931",
"0.55383486",
"0.5243104",
"0.51229185",
"0.4964379",
"0.4924551",
"0.4914862",
"0.48951435",
"0.48927945",
"0.4874011",
"0.48705775",
"0.48693192",
"0.48481193",
"0.48386398",
"0.48256755",
"0.4808762",
"0.48068932",
"0.48012072",
"0.47964716",
"0.478676",
"0.47... | 0.8644396 | 0 |
Returns a new object of class 'Number Value'. | NumberValue createNumberValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getNumberValue();",
"public Number(final T theVal)\n {\n if (theVal instanceof Integer) {\n myInt = (Integer) theVal;\n isInt = true;\n } else if (theVal instanceof Double) {\n myDouble = (Double) theVal;\n isDouble = true;\n } else if (th... | [
"0.75416666",
"0.7141855",
"0.7132185",
"0.6880114",
"0.6807263",
"0.6731508",
"0.6695912",
"0.66658664",
"0.66587245",
"0.662308",
"0.65951747",
"0.65306836",
"0.65125424",
"0.6472823",
"0.6438926",
"0.64128804",
"0.6403914",
"0.6367553",
"0.6338017",
"0.6322819",
"0.6316781... | 0.8476016 | 0 |
Returns a new object of class 'String Value'. | StringValue createStringValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Value(String s) {\n string = s;\n itemClass = String.class;\n type = DataType.STRING;\n }",
"protected StringValue() {\r\n value = \"\";\r\n typeLabel = BuiltInAtomicType.STRING;\r\n }",
"static Value<String> of(String value) {\n return new ImmutableValue<... | [
"0.7661585",
"0.7351084",
"0.72459245",
"0.71985435",
"0.71985435",
"0.7184971",
"0.7118731",
"0.7041215",
"0.7038899",
"0.7015325",
"0.7015325",
"0.68714666",
"0.6867559",
"0.68650675",
"0.6807683",
"0.680478",
"0.67962766",
"0.6775252",
"0.67638975",
"0.67541444",
"0.669942... | 0.7492413 | 4 |
Returns a new object of class 'Boolean Value'. | BooleanValue createBooleanValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static VariableValue createValueObject(boolean value) {\n\t\treturn new BooleanValue(value);\n\t}",
"public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = ... | [
"0.80544055",
"0.7908705",
"0.7798928",
"0.7798928",
"0.77037126",
"0.7639771",
"0.7571819",
"0.7563204",
"0.7563204",
"0.7383103",
"0.7292967",
"0.72491115",
"0.7164722",
"0.71316034",
"0.71316034",
"0.7119032",
"0.7116819",
"0.70865273",
"0.70758677",
"0.70758677",
"0.70645... | 0.8364047 | 3 |
Returns a new object of class 'Forward Action'. | ForwardAction createForwardAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ForwardMinAction createForwardMinAction();",
"@Override\n\t\tpublic ActionTestFacade getForward() {\n\t\t\treturn null;\n\t\t}",
"public Action newAction(Object key) {\n\t\tif (key == null)\n\t\t\tthrow new IllegalArgumentException(\"No legal key passed!\");\n\t\tif (super.containsKey(key))\n\t\t\tthrow new Il... | [
"0.710123",
"0.69875056",
"0.6927994",
"0.6679725",
"0.6653154",
"0.6653154",
"0.6653154",
"0.6533228",
"0.63044524",
"0.6304048",
"0.6300473",
"0.6300001",
"0.62473214",
"0.6136902",
"0.6077518",
"0.59227186",
"0.5848665",
"0.5844397",
"0.57653826",
"0.5753959",
"0.57498777"... | 0.8943775 | 0 |
Returns a new object of class 'Forward Min Action'. | ForwardMinAction createForwardMinAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BackwardMinAction createBackwardMinAction();",
"ForwardAction createForwardAction();",
"private Action(){\r\n\t\tthis(-1);\r\n\t}",
"public static Action push() {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid... | [
"0.80866194",
"0.66362494",
"0.5896204",
"0.58211255",
"0.5820925",
"0.58157766",
"0.58157766",
"0.58157766",
"0.57028997",
"0.5661709",
"0.5573239",
"0.54614294",
"0.5451029",
"0.53293467",
"0.532704",
"0.5311633",
"0.5290724",
"0.5283771",
"0.5254541",
"0.52386594",
"0.5221... | 0.8964748 | 0 |
Returns a new object of class 'Backward Action'. | BackwardAction createBackwardAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BackwardMinAction createBackwardMinAction();",
"ForwardAction createForwardAction();",
"Activity getRepairBackwardActivity();",
"public INIntervalAction reverse() throws Exception\n {\n throw new Exception(\"Reverse Action Not Implemented for the base class of CCIntervalAction\");\n }",
"Activ... | [
"0.71449035",
"0.64168966",
"0.6345156",
"0.6171649",
"0.61684173",
"0.6147266",
"0.6137622",
"0.61055",
"0.61024934",
"0.61024934",
"0.61024934",
"0.608576",
"0.5997448",
"0.5980009",
"0.58837694",
"0.58089334",
"0.57387763",
"0.57359594",
"0.5689269",
"0.5575337",
"0.557005... | 0.90947 | 0 |
Returns a new object of class 'Backward Min Action'. | BackwardMinAction createBackwardMinAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ForwardMinAction createForwardMinAction();",
"BackwardAction createBackwardAction();",
"private Action(){\r\n\t\tthis(-1);\r\n\t}",
"Minus createMinus();",
"Minus createMinus();",
"Minus createMinus();",
"public CCActionInterval action()\n {\n CCSize s = CCDirector.sharedDirector().getWinSize... | [
"0.73908067",
"0.72783405",
"0.59768593",
"0.56821203",
"0.56821203",
"0.56821203",
"0.5563103",
"0.5431185",
"0.53476757",
"0.53476757",
"0.53476757",
"0.5341887",
"0.5273214",
"0.5197699",
"0.51027405",
"0.50716656",
"0.506882",
"0.5047806",
"0.50457525",
"0.5024322",
"0.50... | 0.9074621 | 0 |
Returns a new object of class 'Turn Action'. | TurnAction createTurnAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Turn createTurn();",
"public SetPlayerTurnAction() {}",
"Action createAction();",
"Action createAction();",
"Action createAction();",
"public abstract Action takeTurn();",
"TurnDegAction createTurnDegAction();",
"public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n ... | [
"0.75133675",
"0.7470925",
"0.73743635",
"0.73743635",
"0.73743635",
"0.7212178",
"0.69567955",
"0.6662123",
"0.6578773",
"0.65760565",
"0.6501821",
"0.6474791",
"0.64580816",
"0.6409831",
"0.63806033",
"0.63796914",
"0.63645875",
"0.63493925",
"0.6310226",
"0.63075954",
"0.6... | 0.8867969 | 0 |
Returns a new object of class 'Turn Deg Action'. | TurnDegAction createTurnDegAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TurnAction createTurnAction();",
"BackwardAction createBackwardAction();",
"public PDAction getD() {\n/* 128 */ COSDictionary d = (COSDictionary)this.actions.getDictionaryObject(COSName.D);\n/* 129 */ PDAction retval = null;\n/* 130 */ if (d != null)\n/* */ {\n/* 132 */ retval = PDAct... | [
"0.7357415",
"0.6451293",
"0.6312232",
"0.62502116",
"0.62502116",
"0.62502116",
"0.61219543",
"0.6010292",
"0.5862641",
"0.56986195",
"0.5697264",
"0.5678254",
"0.56357807",
"0.5630241",
"0.5604581",
"0.5573851",
"0.55683017",
"0.5542",
"0.55402035",
"0.5520514",
"0.55134165... | 0.72293913 | 1 |
Returns a new object of class 'Stop Action'. | StopAction createStopAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String stop()\r\n {\r\n return \"{ \\\"action\\\": \\\"stop\\\" }\";\r\n }",
"public Stop(String name) {\n this.name = name;\n }",
"public void stop() {}",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
... | [
"0.7717652",
"0.6725603",
"0.65652305",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.647202",
"0.6466521",
"0.6466521",
"0.6466521",
"0.6466521",
... | 0.8866162 | 0 |
Returns a new object of class 'Log Action'. | LogAction createLogAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void Log(String action) {\r\n\t}",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"public Logger(int ActorID, int TargetID, Action action){\n this.date = new Date();\n this.actorID = ActorID;\n this.targetID = TargetID;\n this.acti... | [
"0.6397505",
"0.638288",
"0.6370962",
"0.63324517",
"0.63324517",
"0.63324517",
"0.6218582",
"0.60860115",
"0.6067569",
"0.6014347",
"0.5991437",
"0.5917812",
"0.59097695",
"0.5858322",
"0.5789651",
"0.57634246",
"0.57457775",
"0.5724104",
"0.5710521",
"0.570518",
"0.56869847... | 0.87103325 | 0 |
Returns a new object of class 'Send Action'. | SendAction createSendAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Action createAction();",
"Action createAction();",
"Action createAction();",
"public static Action push() {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid(a.getLocation().getAdjacentLocation(a.getDirection()))... | [
"0.66983455",
"0.66983455",
"0.66983455",
"0.6318581",
"0.62955046",
"0.6127827",
"0.61252505",
"0.59852105",
"0.59336793",
"0.5908902",
"0.59045774",
"0.59016013",
"0.5854192",
"0.58256984",
"0.58061147",
"0.5799112",
"0.5765156",
"0.5729759",
"0.56729734",
"0.56528956",
"0.... | 0.89458907 | 0 |
Returns a new object of class 'Var Ref'. | VarRef createVarRef(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"VarReference createVarReference();",
"VariableRef createVariableRef();",
"private cat.footoredo.mx.ir.Variable ref (Entity entity) {\n return new cat.footoredo.mx.ir.Variable(varType(entity.getType()), entity);\n }",
"VarAssignment createVarAssignment();",
"Variable createVariable();",
"Variabl... | [
"0.8279827",
"0.82204866",
"0.68243355",
"0.67264885",
"0.66755515",
"0.66755515",
"0.6164317",
"0.61392987",
"0.603127",
"0.59536433",
"0.58818686",
"0.5847861",
"0.57412547",
"0.5719027",
"0.5716407",
"0.56954503",
"0.56497407",
"0.5645504",
"0.5644635",
"0.5620166",
"0.561... | 0.84648705 | 0 |
Returns a new object of class 'Centimeter'. | Centimeter createCentimeter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CentreBean() {\r\n if(centreToAdd == null){\r\n centreToAdd = new Centres();\r\n }\r\n \r\n }",
"public static double FeetToCentimeter(double f){\n return f*929;\n }",
"public CentredCCD(CentredCCD original)\n\t{\n\t\tsuper(original);\n\t\t\n\t\tsetCentrePosit... | [
"0.58281976",
"0.5752019",
"0.57271194",
"0.5722723",
"0.5567953",
"0.555503",
"0.5541556",
"0.5536377",
"0.5512617",
"0.55117255",
"0.54103017",
"0.5362586",
"0.53453684",
"0.53264934",
"0.53214693",
"0.5321442",
"0.5321442",
"0.53189945",
"0.53189945",
"0.53189945",
"0.5318... | 0.8857576 | 0 |
Returns a new object of class 'Millimeter'. | Millimeter createMillimeter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Velocity newMillimetersPerSecondValue()\n\t{\n\t\treturn new Velocity(0.0, VelocityUnit.MILLIMETERS_PER_SECOND);\n\t}",
"public static double meterToMillimeter(final double meter) {\n return meter / METERS_PER_MILLIMETER;\n }",
"public static Velocity newMillimetersPerSecondValue(Double... | [
"0.73244196",
"0.6918242",
"0.66238105",
"0.6611028",
"0.6591752",
"0.6334624",
"0.62356806",
"0.6226619",
"0.6154845",
"0.607714",
"0.60565895",
"0.59648263",
"0.5963099",
"0.5850244",
"0.5798534",
"0.5765936",
"0.5750729",
"0.56939024",
"0.56284183",
"0.5617186",
"0.560001"... | 0.87886196 | 0 |
Returns a new object of class 'Meter'. | Meter createMeter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MeterProvider create();",
"public WaterMeter()\r\n\t{\r\n\t\tsuper(DeviceTypeEnum.WATER_METER);\r\n\t}",
"public static Velocity newMetersPerSecondValue()\n\t{\n\t\treturn new Velocity(0.0, VelocityUnit.METERS_PER_SECOND);\n\t}",
"static public LnTrafficController instance() {\n if (Meter == null) {\n ... | [
"0.8109553",
"0.67857647",
"0.66068584",
"0.6575465",
"0.65751106",
"0.653242",
"0.6440154",
"0.6428509",
"0.6422597",
"0.6355417",
"0.6269954",
"0.6268082",
"0.62596196",
"0.61506045",
"0.6101417",
"0.60440093",
"0.6040206",
"0.5991018",
"0.5854935",
"0.5825591",
"0.57955015... | 0.8518484 | 0 |
Returns a new object of class 'Foot'. | Foot createFoot(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FrontFoot(){\n super(1);\n }",
"public Unit<Length> foot() {return foot;}",
"public static FootprintFragment newInstance() {\n FootprintFragment fragment = new FootprintFragment();\n\n return fragment;\n }",
"static Football getFootBall(){\n return new Footb... | [
"0.6701757",
"0.6522237",
"0.63954866",
"0.6142052",
"0.60095656",
"0.5660303",
"0.5534858",
"0.54766726",
"0.5376431",
"0.52943516",
"0.5269169",
"0.51939464",
"0.5112799",
"0.50731415",
"0.5061401",
"0.5042767",
"0.50307965",
"0.50065345",
"0.49250662",
"0.49185574",
"0.488... | 0.8375137 | 0 |
Returns a new object of class 'Inch'. | Inch createInch(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }",
"public HiloM() { }",
"Unit(Apfloat unitIn, UnitType utIn) {\n\t\tthis(unitIn, utIn, 1);\n\t}",
"public static Vector2 getInchZero() {\n float zeroInInchesX = (REAL_ZERO.x * CALIBRATED_INCH_WIDTH) / ... | [
"0.553828",
"0.53715706",
"0.5352397",
"0.5221849",
"0.5122267",
"0.5039355",
"0.5039355",
"0.50262326",
"0.5026143",
"0.50246125",
"0.4920937",
"0.48731223",
"0.4862724",
"0.48574477",
"0.4847598",
"0.4803238",
"0.48008704",
"0.47957078",
"0.47828373",
"0.47769958",
"0.47753... | 0.8358771 | 0 |
Returns a new object of class 'Yard'. | Yard createYard(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic IProduct factoryMethod() {\n\t\treturn new Toy();\n\t}",
"public Shoe makeShoe() {\n\treturn new Shoe();\r\n}",
"@Override\n\tDough createDought() {\n\t\treturn new NYDough();\n\t}",
"RentalObject createRentalObject();",
"private BsTestY createY(String yAttr) {\n TestYDelegate delega... | [
"0.5815547",
"0.5685635",
"0.55474526",
"0.5489201",
"0.54487586",
"0.543521",
"0.54169065",
"0.53926563",
"0.53696185",
"0.5329518",
"0.5305515",
"0.52988034",
"0.524067",
"0.5161002",
"0.5137787",
"0.5133488",
"0.5120971",
"0.5102258",
"0.5100365",
"0.50885206",
"0.5076646"... | 0.8431612 | 0 |
Returns a new object of class 'Radian'. | Radian createRadian(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Unit<Angle> radian() {return radian;}",
"public Rational() {\n\t\tthis(1,1);\n\t}",
"public Circulo (double r) {\n radio = r;\n }",
"public Circle(double r)\n {\n setRad(r);\n\n }",
"public Circle(double radio) {\n\n super(\"circle\");\n this.radio=radio;... | [
"0.6686968",
"0.59010863",
"0.5805336",
"0.5758894",
"0.5665627",
"0.5505598",
"0.54832226",
"0.5443281",
"0.5440559",
"0.53856325",
"0.53555775",
"0.53231895",
"0.53231895",
"0.53172046",
"0.5300274",
"0.5267904",
"0.5266316",
"0.52491295",
"0.52187026",
"0.5197017",
"0.5193... | 0.828057 | 0 |
Returns a new object of class 'Degree'. | Degree createDegree(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Degree() {\n\t\tsuper();\n\t}",
"public Builder setDegree(int value) {\n \n degree_ = value;\n onChanged();\n return this;\n }",
"int getDegree();",
"int getDegree();",
"public static Degree360 valueOf(Degree180 degree){\n\t\t\treturn new Degree360(degree.getDouble()... | [
"0.728683",
"0.69182295",
"0.6692215",
"0.6692215",
"0.6616324",
"0.659893",
"0.65489906",
"0.6533173",
"0.64930713",
"0.6480155",
"0.64739054",
"0.64407",
"0.64008135",
"0.63872486",
"0.6364624",
"0.6364309",
"0.60805595",
"0.6052506",
"0.60225165",
"0.60106635",
"0.59984225... | 0.86074454 | 0 |
Returns a new object of class 'Turn'. | Turn createTurn(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n this.setCurrentTurn(turn);\n }",
"TurnController createTurnController(PlayerTurn turn);",
"TurnAction createTurnAction();",
"void provideNewTurn();",
"public void myTurn();",
"public Turn newTurn() {\n i... | [
"0.759788",
"0.7201792",
"0.71927565",
"0.6902875",
"0.6544151",
"0.63960415",
"0.63210875",
"0.62772727",
"0.6237201",
"0.62357676",
"0.61863965",
"0.61514294",
"0.6150538",
"0.61492485",
"0.6144269",
"0.61333895",
"0.6123542",
"0.6118256",
"0.6055777",
"0.60494477",
"0.6028... | 0.85508925 | 0 |
Returns a new object of class 'Gradian'. | Gradian createGradian(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static Grandson getGrandson() {\n\t\treturn new Grandson();\r\n\t}",
"Gruppo getGruppo();",
"Gtr createGtr();",
"Degree createDegree();",
"@Override\n\tpublic void createGerant(Gerant g) {\n\t\t\n\t}",
"public B_NotaFiscal gera(C_Fatura fatura) {\n\t\tB_NotaFiscal nf = geraNF(fatura);\n//\t\tenviaEmail(n... | [
"0.6075917",
"0.5835982",
"0.5830423",
"0.5776535",
"0.56706613",
"0.5640215",
"0.5582505",
"0.55403256",
"0.55097187",
"0.5507381",
"0.5462285",
"0.5459854",
"0.5405141",
"0.5393883",
"0.53745186",
"0.52798015",
"0.52641964",
"0.52552503",
"0.52252954",
"0.52241135",
"0.5219... | 0.824915 | 0 |
Returns a new object of class 'Quantity'. | Quantity createQuantity(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Quantity getQuantity();",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"public org.hl7.fhir.Integer addNewQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Integer target = null;\n target = (org.hl7.fhir.Inte... | [
"0.75038874",
"0.74175966",
"0.69654065",
"0.6963798",
"0.6860949",
"0.6823316",
"0.680567",
"0.6710089",
"0.6659851",
"0.66532916",
"0.6575774",
"0.65558285",
"0.65558285",
"0.65198505",
"0.6505917",
"0.6488366",
"0.6488366",
"0.6424487",
"0.6424174",
"0.64044535",
"0.640201... | 0.8547962 | 0 |
Returns a new object of class 'Length'. | Length createLength(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Length initLength(Length iLength)\n {\n iLength.updateElementValue(\"Length\");\n return iLength;\n }",
"LengthAdd createLengthAdd();",
"public double getLength();",
"LengthSmaller createLengthSmaller();",
"float getLength();",
"float getLength();",
"public int getLength() {return length;}",
... | [
"0.723884",
"0.72219104",
"0.7150081",
"0.7023504",
"0.7009155",
"0.7009155",
"0.69593024",
"0.6930599",
"0.68889385",
"0.68670684",
"0.6864086",
"0.6852226",
"0.6805109",
"0.67973614",
"0.67627734",
"0.67627734",
"0.6761672",
"0.6761672",
"0.6761672",
"0.6747635",
"0.6742362... | 0.83359635 | 0 |
Returns a new object of class 'Angle'. | Angle createAngle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AngleSmaller createAngleSmaller();",
"AngleAdd createAngleAdd();",
"public double getAngle();",
"double getAngle();",
"double getAngle();",
"AngleSubtract createAngleSubtract();",
"public AngleIF() {\n \t\t//_navx = new navx();\n \t\t//roboAccel = new RoboRioAccelerometers();\n \t}",
"public double g... | [
"0.77752703",
"0.76024324",
"0.73652387",
"0.73333806",
"0.73333806",
"0.72876364",
"0.697295",
"0.696141",
"0.6787517",
"0.6649375",
"0.66094387",
"0.6509505",
"0.6499557",
"0.64734954",
"0.64734954",
"0.6467922",
"0.64605945",
"0.64467967",
"0.64280033",
"0.64103246",
"0.64... | 0.86753035 | 0 |
Returns a new object of class 'Length Add'. | LengthAdd createLengthAdd(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Length createLength();",
"LengthSubtract createLengthSubtract();",
"Length initLength(Length iLength)\n {\n iLength.updateElementValue(\"Length\");\n return iLength;\n }",
"LengthSmaller createLengthSmaller();",
"LengthScalarMultiply createLengthScalarMultiply();",
"LengthEquals createLengthEqual... | [
"0.756241",
"0.7375513",
"0.66233826",
"0.65855765",
"0.6527031",
"0.62847984",
"0.623761",
"0.6234026",
"0.6198268",
"0.61612695",
"0.6140415",
"0.612654",
"0.612654",
"0.6125553",
"0.6037686",
"0.6011032",
"0.5983828",
"0.5944096",
"0.5933496",
"0.5933496",
"0.5933496",
"... | 0.875192 | 0 |
Returns a new object of class 'Length Subtract'. | LengthSubtract createLengthSubtract(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Length createLength();",
"LengthAdd createLengthAdd();",
"LengthSmaller createLengthSmaller();",
"float getLength();",
"float getLength();",
"public double getLength();",
"abstract double getLength();",
"public double getLength() {\n\treturn CVector.subtract(v2, v1).getMag();\n }",
"LengthEquals... | [
"0.72346056",
"0.672248",
"0.65959024",
"0.6371799",
"0.6371799",
"0.6296809",
"0.6162293",
"0.61089796",
"0.59944683",
"0.59783554",
"0.59422714",
"0.5881743",
"0.58530945",
"0.58309704",
"0.58187175",
"0.57711154",
"0.57625145",
"0.57385796",
"0.5727553",
"0.5715703",
"0.56... | 0.8907759 | 0 |
Returns a new object of class 'Length Scalar Multiply'. | LengthScalarMultiply createLengthScalarMultiply(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Multiply createMultiply();",
"LengthScalarDivide createLengthScalarDivide();",
"public Vector<T> multiply(T aScalar);",
"public void multiply() {\n\t\t\n\t}",
"Length createLength();",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"private void mul() {\n\n\t}",
"LengthAdd createLengthAdd... | [
"0.73811984",
"0.6799287",
"0.64400804",
"0.6404485",
"0.6200977",
"0.6152397",
"0.6124747",
"0.6059167",
"0.596396",
"0.59445566",
"0.59106743",
"0.58918035",
"0.5881914",
"0.5835582",
"0.5830503",
"0.57981706",
"0.5746918",
"0.57362753",
"0.57259005",
"0.5718628",
"0.568615... | 0.8904832 | 0 |
Returns a new object of class 'Length Scalar Divide'. | LengthScalarDivide createLengthScalarDivide(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"LengthScalarMultiply createLengthScalarMultiply();",
"AngleScalarDivide createAngleScalarDivide();",
"public Divide(){\n }",
"public Vector<T> divide(T aScalar);",
"@Override\n\tpublic Operation createOperate() {\n\t\treturn new OperationDiv();\n\t}",
"public void divide() {\n\t\t\n\t}",
"@Test\n\tp... | [
"0.70654285",
"0.7053007",
"0.6829572",
"0.67129797",
"0.6140329",
"0.6041817",
"0.59763616",
"0.59733224",
"0.5958533",
"0.59516203",
"0.5926786",
"0.5909633",
"0.5908227",
"0.5907088",
"0.58373547",
"0.5827793",
"0.5824348",
"0.575818",
"0.57053435",
"0.57053435",
"0.569451... | 0.89354175 | 0 |
Returns a new object of class 'Length Equals'. | LengthEquals createLengthEquals(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Length createLength();",
"LengthSmaller createLengthSmaller();",
"LengthDistinct createLengthDistinct();",
"LengthAdd createLengthAdd();",
"LengthGreater createLengthGreater();",
"LengthSubtract createLengthSubtract();",
"@Test\n\tpublic void testLength()throws Exception {\n\n\t\t\t SET setarray= new ... | [
"0.6655552",
"0.66435766",
"0.604037",
"0.6013628",
"0.58905596",
"0.5875304",
"0.57544434",
"0.5737835",
"0.5737835",
"0.5715796",
"0.5670251",
"0.5665076",
"0.5665076",
"0.56588143",
"0.5622879",
"0.5622879",
"0.5622879",
"0.56171703",
"0.5565112",
"0.5561976",
"0.55385196"... | 0.88135576 | 0 |
Returns a new object of class 'Length Distinct'. | LengthDistinct createLengthDistinct(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"LengthSmaller createLengthSmaller();",
"Length createLength();",
"LengthEquals createLengthEquals();",
"LengthAdd createLengthAdd();",
"public DistinctValues()\n {\n super();\n }",
"public WordSet<String> newWordSetByWordLength(int length) {\n Node<String> currentNode = list.g... | [
"0.6351377",
"0.62811506",
"0.6002781",
"0.58166313",
"0.55925095",
"0.55273336",
"0.5396676",
"0.5387986",
"0.5249517",
"0.5228397",
"0.5209537",
"0.5162437",
"0.5157003",
"0.51490283",
"0.51490283",
"0.51490283",
"0.5108582",
"0.5088219",
"0.5063882",
"0.50581646",
"0.50552... | 0.8542818 | 0 |
Returns a new object of class 'Length Smaller'. | LengthSmaller createLengthSmaller(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Length createLength();",
"LengthEquals createLengthEquals();",
"LengthGreater createLengthGreater();",
"LengthAdd createLengthAdd();",
"LengthSubtract createLengthSubtract();",
"LengthDistinct createLengthDistinct();",
"public void setLength(double length){this.length=length;}",
"LengthConstraint cre... | [
"0.7067559",
"0.681733",
"0.67466724",
"0.65086997",
"0.6353992",
"0.62772864",
"0.6183584",
"0.6139682",
"0.6107535",
"0.60501224",
"0.60501224",
"0.60377216",
"0.6004147",
"0.5954987",
"0.5916907",
"0.59025055",
"0.59025055",
"0.58439267",
"0.58439267",
"0.58278567",
"0.582... | 0.86184955 | 0 |
Returns a new object of class 'Length Greater'. | LengthGreater createLengthGreater(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"LengthSmaller createLengthSmaller();",
"Length createLength();",
"LengthSubtract createLengthSubtract();",
"LengthEquals createLengthEquals();",
"LengthConstraint createLengthConstraint();",
"public GreaterThanTest(String name) {\n\t\tsuper(name);\n\t}",
"String getGreater();",
"LengthAdd createLengt... | [
"0.67818123",
"0.65203536",
"0.6245363",
"0.6152672",
"0.600931",
"0.5959839",
"0.5738462",
"0.56517166",
"0.5529556",
"0.55087316",
"0.5426604",
"0.5424142",
"0.5415972",
"0.5415086",
"0.5386219",
"0.5372949",
"0.53580284",
"0.5353324",
"0.53259474",
"0.53259474",
"0.5304371... | 0.8580182 | 0 |
Returns a new object of class 'Angle Add'. | AngleAdd createAngleAdd(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Angle createAngle();",
"AngleSubtract createAngleSubtract();",
"AngleSmaller createAngleSmaller();",
"public A3Add(){}",
"AngleScalarMultiply createAngleScalarMultiply();",
"public RotationComponent add(float degrees) {\n\trotation += degrees;\n\n\treturn this;\n }",
"double getAngle();",
"double ... | [
"0.7657985",
"0.7220481",
"0.6861093",
"0.6665849",
"0.65062433",
"0.6320681",
"0.61428726",
"0.61428726",
"0.6095512",
"0.6053321",
"0.5951635",
"0.5937759",
"0.5900674",
"0.585482",
"0.5837906",
"0.58199656",
"0.5804262",
"0.57609165",
"0.5754681",
"0.5707305",
"0.57071453"... | 0.8950151 | 0 |
Returns a new object of class 'Angle Subtract'. | AngleSubtract createAngleSubtract(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Angle createAngle();",
"AngleSmaller createAngleSmaller();",
"AngleAdd createAngleAdd();",
"double getAngle();",
"double getAngle();",
"public double getAngle();",
"AngleScalarMultiply createAngleScalarMultiply();",
"AngleGreater createAngleGreater();",
"AngleResource inclination();",
"@Override\... | [
"0.76748806",
"0.73609495",
"0.70861226",
"0.65999085",
"0.65999085",
"0.65719646",
"0.6385176",
"0.6357924",
"0.62551785",
"0.6139673",
"0.6110524",
"0.60993016",
"0.6056867",
"0.5994942",
"0.59515804",
"0.5880166",
"0.58289164",
"0.58164173",
"0.5806661",
"0.57293254",
"0.5... | 0.8979382 | 0 |
Returns a new object of class 'Angle Scalar Multiply'. | AngleScalarMultiply createAngleScalarMultiply(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Multiply createMultiply();",
"AngleScalarDivide createAngleScalarDivide();",
"Angle createAngle();",
"LengthScalarMultiply createLengthScalarMultiply();",
"AngleAdd createAngleAdd();",
"AngleSubtract createAngleSubtract();",
"AngleSmaller createAngleSmaller();",
"public AncientEgyptianMultiplication(... | [
"0.690688",
"0.67525524",
"0.6607744",
"0.65977913",
"0.64972925",
"0.6429657",
"0.62287444",
"0.56171584",
"0.55799586",
"0.55782115",
"0.55759263",
"0.554073",
"0.5533742",
"0.5494694",
"0.53849304",
"0.5377805",
"0.53705895",
"0.5366155",
"0.5306037",
"0.5284608",
"0.52593... | 0.8622261 | 0 |
Returns a new object of class 'Angle Scalar Divide'. | AngleScalarDivide createAngleScalarDivide(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"LengthScalarDivide createLengthScalarDivide();",
"AngleScalarMultiply createAngleScalarMultiply();",
"public Divide(){\n }",
"Angle createAngle();",
"AngleSmaller createAngleSmaller();",
"AngleSubtract createAngleSubtract();",
"public Vector<T> divide(T aScalar);",
"AngleAdd createAngleAdd();",
... | [
"0.7324093",
"0.6855056",
"0.6585308",
"0.649536",
"0.64515704",
"0.6356151",
"0.6097897",
"0.5952933",
"0.594439",
"0.57373595",
"0.5715451",
"0.55533314",
"0.5540036",
"0.54615074",
"0.5424452",
"0.5424452",
"0.5410277",
"0.540975",
"0.5389172",
"0.5348699",
"0.53406703",
... | 0.88553065 | 0 |
Returns a new object of class 'Angle Equals'. | AngleEquals createAngleEquals(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AngleSmaller createAngleSmaller();",
"Angle createAngle();",
"public void testEquals() {\r\n\t\t// direct circle\r\n\t\tCircleArc2D arc0 = new CircleArc2D();\r\n\t\tCircle2D circle = new Circle2D(0, 0, 1, true);\r\n\t\tCircleArc2D arc1 = new CircleArc2D(circle, 0, PI/2);\r\n\t\tCircleArc2D arc2 = new CircleArc... | [
"0.6909711",
"0.6732606",
"0.6490651",
"0.64851904",
"0.62021834",
"0.6127318",
"0.61054254",
"0.60049355",
"0.59925365",
"0.5860167",
"0.5807628",
"0.5676811",
"0.5676811",
"0.5551169",
"0.54679435",
"0.5397287",
"0.53861666",
"0.5379165",
"0.5349753",
"0.534952",
"0.529429"... | 0.8883898 | 0 |
Returns a new object of class 'Angle Distinct'. | AngleDistinct createAngleDistinct(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AngleSmaller createAngleSmaller();",
"LengthDistinct createLengthDistinct();",
"public Aggregate DISTINCT() {\r\n\t\tReturnExpression rx = (ReturnExpression)this.astNode;\r\n\t\tReturnAggregate ra = (ReturnAggregate) rx.getReturnValue();\r\n\t\tra.setDistinct();\r\n\t\tAggregate ret = new Aggregate(rx);\r\n\t\... | [
"0.60731673",
"0.58697534",
"0.57846934",
"0.5759518",
"0.5624505",
"0.56167984",
"0.5276922",
"0.5262146",
"0.5080182",
"0.5051553",
"0.4981785",
"0.49701786",
"0.49562234",
"0.49461904",
"0.4924561",
"0.48868245",
"0.4875489",
"0.48688942",
"0.48553732",
"0.48512813",
"0.48... | 0.85448575 | 0 |
Returns a new object of class 'Angle Smaller'. | AngleSmaller createAngleSmaller(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Angle createAngle();",
"AngleGreater createAngleGreater();",
"AngleAdd createAngleAdd();",
"AngleSubtract createAngleSubtract();",
"AngleDistinct createAngleDistinct();",
"AngleEquals createAngleEquals();",
"AngleResource inclination();",
"public AngleIF() {\n \t\t//_navx = new navx();\n \t\t//roboAc... | [
"0.724358",
"0.6709881",
"0.6653751",
"0.6530396",
"0.65010506",
"0.63329774",
"0.6120795",
"0.5975241",
"0.59660393",
"0.59492344",
"0.592903",
"0.5904767",
"0.5904767",
"0.5861691",
"0.5843675",
"0.5718069",
"0.5714016",
"0.5700477",
"0.55948406",
"0.55233425",
"0.5485941",... | 0.86679137 | 0 |
Returns a new object of class 'Angle Greater'. | AngleGreater createAngleGreater(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AngleSmaller createAngleSmaller();",
"Angle createAngle();",
"AngleSubtract createAngleSubtract();",
"AngleEquals createAngleEquals();",
"AngleAdd createAngleAdd();",
"double getAngle();",
"double getAngle();",
"public double getAngle();",
"public double getAngle() { return angle; }",
"LengthGrea... | [
"0.6876558",
"0.65664226",
"0.6464996",
"0.5873762",
"0.5723507",
"0.571531",
"0.571531",
"0.5714665",
"0.56697476",
"0.55449176",
"0.5383655",
"0.5341572",
"0.53368026",
"0.532502",
"0.5321804",
"0.5263114",
"0.5219681",
"0.5219681",
"0.5205314",
"0.51918095",
"0.5166225",
... | 0.88409954 | 0 |
Returns the package supported by this factory. | RaspiroverPackage getRaspiroverPackage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PackageType getRequiredPackage();",
"public PackageNode getPackage();",
"java.lang.String getPackage();",
"public String getPackageName();",
"public String getPackageName() {\n return pkg;\n }",
"String getPackageName();",
"public DsByteString getPackage() {\n return m_strPackage;\n }",
... | [
"0.7029857",
"0.68230575",
"0.6817219",
"0.67516345",
"0.6717388",
"0.6703754",
"0.6697297",
"0.66774565",
"0.6634728",
"0.65557617",
"0.65180886",
"0.6499772",
"0.6495322",
"0.6481164",
"0.63756794",
"0.6350059",
"0.63377434",
"0.633683",
"0.63264704",
"0.63133883",
"0.63118... | 0.0 | -1 |
dfs get all combination | public void dfs(String[] letters, String digits, int index, String tmp, ArrayList<String> rnt){
if(index==digits.length()){
rnt.add(tmp);
return;
}
int num = digits.charAt(index) - '0';
String curr = letters[num];
//case 1: current length is 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<List<Integer>> subsets(int[] nums) {\n int size = nums.length;\n if (size == 0) {\n return new LinkedList();\n }\n\n List<List<Integer>> res = new LinkedList<>();\n dfs(nums, 0, new LinkedList<Integer>(), res);\n return res;\n\n }",
"public List... | [
"0.5607745",
"0.5583573",
"0.5426944",
"0.54115206",
"0.5314424",
"0.52667195",
"0.51810217",
"0.51810217",
"0.5151434",
"0.5111086",
"0.5109659",
"0.5109401",
"0.51029754",
"0.5083413",
"0.50771093",
"0.50684774",
"0.50195336",
"0.5000434",
"0.49989942",
"0.49986845",
"0.499... | 0.45065355 | 84 |
Use two set to alternate adding chars | public List<String> letterCombinations(String digits) {
HashSet<String> rnt = new HashSet<String>();
for(int i=0 ;i<digits.length(); i++){
char[] array = getChar(digits.charAt(i));
HashSet<String> newSet = new HashSet<String>();
for(int j=0; j<array.length; j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n ha... | [
"0.6645865",
"0.61824876",
"0.6113719",
"0.59895456",
"0.5977779",
"0.59533584",
"0.5941104",
"0.59204406",
"0.5861798",
"0.57408434",
"0.5733892",
"0.5727521",
"0.5722802",
"0.57086194",
"0.56979716",
"0.5697399",
"0.5677421",
"0.5670189",
"0.5669421",
"0.5664786",
"0.566274... | 0.561806 | 25 |
/ Demonstrate how to use Map that includes storing and retrieving elements. Add List into a Map. Like, Map> list = new HashMap>(); Use For Each loop and while loop with Iterator to retrieve data. Use any databases[MongoDB, Oracle, MySql] to store data and retrieve data. Create map to store | public static void main(String[] args) {
Map<String, List<String>> map = new HashMap<String, List<String>>();
// create list one and store values
List<String> valuSetOne = new ArrayList<String>();
valuSetOne.add("Apple");
valuSetOne.add("Banana");
// Create list two and store values
List<String> valuSet... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws java.lang.Exception {\n\t\tMap<Integer, String> state = new HashMap<Integer, String>();\n\t\t//Storing values to Map by put() method\n\t\tstate.put(1, \"NY\");\n\t\tstate.put(2, \"TX\");\n\t\tstate.put(3, \"NJ\");\n\t\tstate.put(4, \"FL\");\n\n\t\t//Retrieving values b... | [
"0.6526749",
"0.61684704",
"0.61273575",
"0.61125606",
"0.61009794",
"0.60778284",
"0.6073499",
"0.6060583",
"0.59953964",
"0.595992",
"0.5942408",
"0.5941634",
"0.5936791",
"0.5919206",
"0.59142727",
"0.5908353",
"0.58967906",
"0.58888334",
"0.5882633",
"0.5869771",
"0.58553... | 0.60955614 | 5 |
Test of ScaleToOneDimension method, of class ImageEditor. | @Test
public void shouldNotScaleImageWhenSameSize() {
givenIHaveAnImage();
whenIScaleImageWidthTo(14.999f);
thenTheImageWidthIs(15);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testScale() {\n System.out.println(\"scale\");\n Float s = null;\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.scale(s);\n assertEquals(expResult, result);\n // TODO review the generated tes... | [
"0.68644905",
"0.6805298",
"0.6630134",
"0.65659237",
"0.64652747",
"0.6317598",
"0.61214703",
"0.6079423",
"0.59668034",
"0.5934852",
"0.591151",
"0.59035236",
"0.58823335",
"0.58783287",
"0.5869214",
"0.58271664",
"0.5776321",
"0.5761695",
"0.57600623",
"0.5755719",
"0.5743... | 0.67086655 | 2 |
Toast.makeText( MainActivity.this , "pageWidth= " + pageWidth + " pageHeight= " + pageHeight + " displayedPage=" + displayedPage , Toast.LENGTH_SHORT).show(); | @Override
public void onLayerDrawn(Canvas canvas, float pageWidth, float pageHeight, int displayedPage) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Display display = getWindowManager().getDefaultDisplay();\n Point point=new Point();\n display.getSize(point);\n final floa... | [
"0.6165689",
"0.5946189",
"0.58538014",
"0.58141595",
"0.57921314",
"0.5753521",
"0.57458526",
"0.5733388",
"0.56396204",
"0.5628396",
"0.56200445",
"0.5577123",
"0.55276495",
"0.5527603",
"0.5510633",
"0.5503888",
"0.54740965",
"0.54591304",
"0.5442794",
"0.5426632",
"0.5416... | 0.0 | -1 |
Aumenta a grossura da borda | public void setBorda(int borda) {
this.borda = borda;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"Gruppo getGruppo();",
"public void billeBarre() { \t\t\t\t\t\t\t\t\t\t\t\n\t\tint contact = 0;\n\n... | [
"0.63791394",
"0.6365236",
"0.60374594",
"0.59758735",
"0.5867077",
"0.5857011",
"0.5850239",
"0.58309627",
"0.5820455",
"0.5778674",
"0.5770738",
"0.5768745",
"0.5768238",
"0.57643354",
"0.5748582",
"0.57392496",
"0.57372457",
"0.5736355",
"0.573619",
"0.57282984",
"0.570052... | 0.56754404 | 23 |
Modifica o tamanho da font | public void setFontSize(int font) {
this.font = font;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFontSize();",
"public float getFontSize();",
"public int getFontSize()\n \t{\n \t\treturn 13;\n \t}",
"private void setFont() {\n\t}",
"public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }",
"Font createFont();",
"public voi... | [
"0.7118928",
"0.6971648",
"0.67957854",
"0.6791666",
"0.6746545",
"0.66149944",
"0.65438735",
"0.6511484",
"0.6468682",
"0.6466082",
"0.64545923",
"0.6441213",
"0.6396415",
"0.63534564",
"0.6323086",
"0.63206476",
"0.6225832",
"0.62198055",
"0.619767",
"0.61976343",
"0.619225... | 0.6525436 | 7 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Medidas)) {
return false;
}
Medidas other = (Medidas) object;
if ((this.idMedida == null && other.idMedida != null) || (this.idMedida != null && !this.idMedida.equals(other.idMedida))) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896072",
"0.6839122",
"0.6705258",
"0.66412854",
"0.66412854",
"0.65923095",
"0.65785074",
"0.65785074",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.65752834",
"0.6561566",
"0.6561566",
"0.6545169",
"0.6525343",
"0.65168375",
"0.64885366",
"0.... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void execute(Model model) throws Exception {
Map<String, Object> map = model.asMap();
HttpServletRequest request = (HttpServletRequest) map.get("request");
String mroom = request.getParameter("mroomname");
mbookingDAO dao = new mbookingDAO();
mbookingDTO dto = dao.mpopup(mroom);
model.... | {
"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 |
private int[] cache = new int[110]; | public int fib(int n) {
// // 法一:记忆化递归
// if (n <= 1) {
// return n;
// }
// if (cache[n] != 0) {
// return cache[n];
// }
// cache[n] = (fib(n - 1) + fib(n - 2)) % 1000000007;
// return cache[n];
// //... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HitCounterReadWriteLock() {\r\n hits = new int[300];\r\n times = new int[300];\r\n }",
"public MyHashMap() {\n arr = new int[100000];\n \n //To initialize the value with -1\n Arrays.fill(arr,-1);\n \n }",
"static void initializeArray2() {\n\t\tfor (... | [
"0.630643",
"0.6176665",
"0.6114453",
"0.5996576",
"0.59546196",
"0.5949067",
"0.5948578",
"0.5926955",
"0.59101796",
"0.5887301",
"0.5882453",
"0.5875369",
"0.58752096",
"0.58708924",
"0.58545583",
"0.5827432",
"0.5827432",
"0.5827362",
"0.5819448",
"0.58157134",
"0.5813344"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void keyTyped(KeyEvent arg0) {
} | {
"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 method appends the data to the text area. | public void showInfo(String data) {
textArea.append(data);
try{
int len=textArea.getText().length();
textArea.setCaretPosition(len);
}
catch(Exception E){
E.printStackTrace();
}
this.getContentPane().validate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void appendText(String text) {\n textArea.appendText(text);\n }",
"public void append(String text)\n{\n\ttextArea().append(text);\n}",
"private void putDataToTextArea() {\n jTextArea1.setEditable(false);\n jTextArea1.setText(selectedFoods);\n }",
"private void appendText()\... | [
"0.7136216",
"0.7075024",
"0.6854716",
"0.65133756",
"0.64261025",
"0.626857",
"0.6255529",
"0.62172204",
"0.61878014",
"0.61807764",
"0.6175745",
"0.6152242",
"0.602664",
"0.5995581",
"0.5975765",
"0.5942714",
"0.59421164",
"0.5906028",
"0.5881664",
"0.5880486",
"0.5867352",... | 0.6439548 | 4 |
Sole constructor of the class. It must provide a board with chips on it. The column represents the thrown attempt of the player that generated the state. | public BoardCandidate(Connect4Cell[][] board, int column, CellStatus player){
//Deep copy of the board.
this.board = new Connect4Cell[6][];
for(int x=0;x<6;x++){
this.board[x]=new Connect4Cell[7];
for(int y=0;y<7;y++){
this.board[x][y]=new Connect4Cell(nul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Battleship(int row) {\r\n\t\tthis(row, 5);\r\n\t}",
"public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }",
"public Cell(int col, int row){ // constructor\n this.col = col;\n this.row = row;\n }",
"public Piece(in... | [
"0.7069462",
"0.6849083",
"0.662601",
"0.6580979",
"0.6562862",
"0.64809924",
"0.64350176",
"0.64082664",
"0.6383368",
"0.6373783",
"0.63490105",
"0.63403624",
"0.63118666",
"0.6304898",
"0.6253623",
"0.6239823",
"0.62189066",
"0.6175462",
"0.61592484",
"0.6155137",
"0.615163... | 0.6353481 | 10 |
Method that calculates the grade of the board. In general, looking for having 4 in line has higher priority, but, it also verifies if the opponent has chips getting connected. | protected int getStatusGrade(CellStatus player){
int grade=0;
int opponentGrade=0;
int maxRow=0;
int[] consecutivesTotal=new int[]{0,0,0,0,0,0,0,0};
int[] consecutives={0,0,0,0,0,0,0,0};
int countNotPlayed=0;
for(int y=5;y>=0;y--){
co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int ratePieceAvailability(){\n\t\tint rating=0, bishopCount=0;\n for (int i=0;i<64;i++) {\n switch (AlphaBeta.chessBoard[i/8][i%8]) {\n case \"P\": rating+=100;\n break;\n case \"R\": rating+=500;\n break;\n ... | [
"0.66191787",
"0.65730274",
"0.6207813",
"0.60769355",
"0.6073672",
"0.6046995",
"0.5953947",
"0.5945108",
"0.5901089",
"0.587188",
"0.58258575",
"0.5784673",
"0.5750217",
"0.56848586",
"0.5678623",
"0.5632065",
"0.5616152",
"0.5614821",
"0.5609043",
"0.5581846",
"0.55795836"... | 0.6910716 | 0 |
Get the column that the state of the board represents | public int getColumn(){
return this.column;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getColumn(int x, int y){\n return board[x][y].getColumn();\n }",
"public int getCurrentPawnColumn(){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\treturn curPos.getWhitePositi... | [
"0.76102406",
"0.76000386",
"0.7561996",
"0.74998677",
"0.7460258",
"0.74533296",
"0.7438312",
"0.74182796",
"0.7409249",
"0.740171",
"0.7378185",
"0.73768187",
"0.7356361",
"0.73503745",
"0.7331027",
"0.73169875",
"0.7316425",
"0.73077285",
"0.7303062",
"0.7297403",
"0.72974... | 0.7223312 | 37 |
A value that is comparable across BoardCandidates. The highest the value the better is players possibilities of winning | public int getGrade(){
return grade;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for... | [
"0.7104729",
"0.6874598",
"0.66042525",
"0.6426412",
"0.6414517",
"0.6402456",
"0.63723975",
"0.63623184",
"0.6355472",
"0.6297948",
"0.6290161",
"0.6287399",
"0.62501204",
"0.6233478",
"0.61702853",
"0.6141213",
"0.61336344",
"0.6122554",
"0.60904187",
"0.60805",
"0.60800225... | 0.0 | -1 |
Return whether or not a particular column on top is played already on the current status | public boolean isColumnPlayed(int column){
return board[0][column].isPlayed();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCol();",
"private boolean checkColumnForWinner(String mark,int buttonId)\n {\n \t//2) check columns\n \tint rows =3;\n \tint columns = 3;\n \tboolean winStatus=false;\n \tint columnNumber = buttonId%columns;\n \tint rowIndex= 0;\n \tint columnIndex = columnNumber;\n \tint i... | [
"0.6704976",
"0.6356373",
"0.60521454",
"0.6005272",
"0.59644884",
"0.59204274",
"0.59074545",
"0.58801967",
"0.58392125",
"0.58309287",
"0.58084846",
"0.580226",
"0.5782162",
"0.577592",
"0.57740164",
"0.5773421",
"0.57659256",
"0.57596767",
"0.5757258",
"0.57496697",
"0.574... | 0.6778251 | 0 |
Method that helps comparing two BoardCandidate objects based on its grades. If the grades are the same, it adds a random value between 0 and 9 to help skew the options. | @Override
public int compareTo(Object o) {
if(this.getGrade()==((BoardCandidate)o).getGrade()){
return (int)(Math.random()*10-Math.random()*10);
}
return this.getGrade()-((BoardCandidate)o).getGrade();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAssignGrade2() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Ins... | [
"0.5930315",
"0.56037205",
"0.5497339",
"0.5478895",
"0.54416424",
"0.5405533",
"0.53514993",
"0.53341925",
"0.530755",
"0.53011674",
"0.5294442",
"0.5239073",
"0.52101094",
"0.51660657",
"0.5149231",
"0.51350063",
"0.507334",
"0.50662977",
"0.50607675",
"0.5038086",
"0.50276... | 0.6579915 | 0 |
Close the connection when an exception is raised. | @Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
cause.printStackTrace();
ctx.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void close() throws Exception {\r\n if (connection != null){\r\n connection.close();\r\n }\r\n }",
"@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n ... | [
"0.7704999",
"0.76463586",
"0.73903507",
"0.73521256",
"0.7350661",
"0.7295211",
"0.7225442",
"0.7179988",
"0.71199733",
"0.7105953",
"0.708345",
"0.7079227",
"0.70501345",
"0.70449096",
"0.7011599",
"0.70075023",
"0.7004892",
"0.6974568",
"0.6963415",
"0.69564366",
"0.695279... | 0.0 | -1 |
Think about Zuma Game. You have a row of balls on the table, colored red(R), yellow(Y), blue(B), green(G), and white(W). You also have several balls in your hand. Each time, you may choose a ball in your hand, and insert it into the row (including the leftmost place and rightmost place). Then, if there is a group of 3 ... | public static void main(String[] args) {
System.out.println(findMinStep("WRRBBW", "RB"));
System.out.println(findMinStep("WWRRBBWW", "WRBRW"));
System.out.println(findMinStep("G", "GGGGG"));
System.out.println(findMinStep("RBYYBBRRB", "YRBGB"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int dropBalls(){\r\n if(balls>0){\r\n balls--;\r\n }\r\n return getBalls();\r\n }",
"public void verifyDestroyedBoatsOnColumns(){ \n for (int i = 0; i < canvasNumberOfColumns; i++){\n int start = 0;\n int start... | [
"0.60639286",
"0.60322833",
"0.6013991",
"0.59027076",
"0.5881361",
"0.5863212",
"0.5803562",
"0.57946694",
"0.57297593",
"0.5715571",
"0.5707527",
"0.57014966",
"0.5665475",
"0.56453377",
"0.5619723",
"0.5619706",
"0.5605848",
"0.559065",
"0.55900186",
"0.5556765",
"0.552446... | 0.0 | -1 |
This is used to determine the turn of a player This constructor instantiate all the attributes that are defined with the help of GameConfiguration interface like number of players, number of coins and its type, etc. | public MatchController()
{
// Here from Game_Constants interface constants such as number of players, black coins count
// and red coins count are fetched.
this.playerControllerList = new PriorityQueue<PlayerController>(new Comparator<PlayerController>(){
@Override
public... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player() {\n\n\t\tnumberOfPlayers++;\n\t\tthis.playerNumber = \"Player \" + numberOfPlayers; \n\t\tthis.balance = 500.00; \n\t\tthis.numberOfLoans = 0;\n\t\tthis.score = 0;\n\t\tthis.inRound = true; \n\t}",
"public GameTurn(int playerId) {\n this.playerId = playerId;\n }",
"public UserPlayer()... | [
"0.6688044",
"0.66577214",
"0.6447663",
"0.6427625",
"0.6406992",
"0.6401066",
"0.63639885",
"0.6315547",
"0.6286774",
"0.6276742",
"0.6195263",
"0.61935365",
"0.6186296",
"0.6174083",
"0.6171001",
"0.616212",
"0.6161546",
"0.6134053",
"0.6105499",
"0.6092324",
"0.608664",
... | 0.57677275 | 78 |
Following funtion returns plaeyerController and it finds the playerController from playerControllerList. if not found the player having playerId equal to playerId then it returns null | public PlayerController findPlayerById(int playerId)
{
// By iterating through all the players it will return player object with the matching id provided
// in case of not matching id it will return null
for(PlayerController player : this.playerControllerList)
{
if(player.getPlayerId... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PlayerController playerControllerFor(int player)\n {\n switch (player) {\n case PLAYER_1_FLAG:\n return player1;\n case PLAYER_2_FLAG:\n return player2;\n default:\n return null;\n }\n }",
"public Player get... | [
"0.71769977",
"0.6424693",
"0.6370243",
"0.6337173",
"0.63118315",
"0.62900704",
"0.628581",
"0.6259317",
"0.6208082",
"0.6184997",
"0.6174717",
"0.61728513",
"0.61625373",
"0.6158026",
"0.6137043",
"0.6134497",
"0.6108419",
"0.6055072",
"0.60311717",
"0.60076576",
"0.5996508... | 0.7726453 | 0 |
This function will return the playerController of the player who is going to make a move | public PlayerController getNextPlayer()
{
// This will return a player who is going to make a move
int turn = this.turn;
int NUMBER_OF_PLAYERS = GameConfiguration.NUMBER_OF_PLAYERS;
if(turn%NUMBER_OF_PLAYERS == 0)
{
turn = 0;
}
else
{
turn = turn%NUMB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player getController() {\n return sourceCard.getController();\n }",
"private PlayerController playerControllerFor(int player)\n {\n switch (player) {\n case PLAYER_1_FLAG:\n return player1;\n case PLAYER_2_FLAG:\n return player2;\n ... | [
"0.7801322",
"0.74070895",
"0.68488365",
"0.6771833",
"0.6709577",
"0.6657456",
"0.6381336",
"0.636258",
"0.636258",
"0.6339741",
"0.63379365",
"0.62439305",
"0.62295246",
"0.6205639",
"0.61918104",
"0.6189511",
"0.6148086",
"0.6148086",
"0.6142402",
"0.613915",
"0.6132798",
... | 0.72891575 | 2 |
This functions returns a string stating the points, fouls count, etc.. of the player who is passed as a parameter | public String getStateOfPlayer(PlayerController playerController)
{
// This function is used to print the state of the player
String str = "";
str += "Player ID:"+playerController.getPlayerId()+" Points-> "+playerController.getPoints()+" Total_Fouls_Count-> "+ playerController.getTotalFoulsCount()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPoints ( Player player );",
"public String playerStatsToString() {\r\n\t\t\tString stats = \"\";\r\n\t\t\tstats = stats + username + \"\\n\";\r\n\t\t\tstats = stats + numberOfWins + \"\\n\";\r\n\t\t\tstats = stats + numberOfGames + \"\\n\";\r\n\t\t\tstats = stats + numberOfAttacks + \"\\n\";\r\n\t\... | [
"0.71114606",
"0.70150816",
"0.6971925",
"0.6947097",
"0.69400233",
"0.6937908",
"0.6751858",
"0.6638341",
"0.6606202",
"0.65818286",
"0.6569323",
"0.6568551",
"0.654815",
"0.6539671",
"0.6482487",
"0.64528453",
"0.6441248",
"0.6418859",
"0.6416617",
"0.6396923",
"0.63838834"... | 0.5886796 | 70 |
This function returns the state of the board.like number of coins of each type in the form of string. | public String getStateOfBoard()
{
// This function is used to print state of the board. such as number of coins present on the board
String str="";
str += "Black_Coins Count:"+this.gameController.getCoinsCount(CoinType.BLACK) +" Red_Coins Count:"+this.gameController.getCoinsCount(CoinType.RED);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private float getStateCost(int[] board) {\r\n\t\tfloat cost = 0;\r\n\t\tfor (int i = 0; i < this.checkBoardSide; i++) {\r\n\t\t\tif (isQueenAttacked(i, board[i], board)) {\r\n\t\t\t\tcost++;\r\n\t\t\t\t// System.out.println(\"row: \" + i + \" attacked\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cost;\r\n\r\n\t}",
"pub... | [
"0.62217784",
"0.61583763",
"0.60574794",
"0.59886277",
"0.5870141",
"0.5859091",
"0.58425474",
"0.5779432",
"0.5770462",
"0.5750159",
"0.5749859",
"0.5748402",
"0.5739354",
"0.5706661",
"0.56954837",
"0.56771576",
"0.56661135",
"0.5644036",
"0.56264484",
"0.55804276",
"0.556... | 0.7490061 | 0 |
This function returns the winner after playing a move if none of the player is winner then it returns null | public PlayerController calculateWinner()
{
// This function will find the winner based on the move that is made by player
// Here we are checking only the two players who are leading the match
PlayerController player1 = this.playerControllerList.poll();
PlayerController player2 = this.playe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player checkForWinner() {\n if (playersInGame.size() == 1) {\n Player winner = playersInGame.get(0);\n\n // --- DEBUG LOG ---\n // The winner of the game\n Logger.log(\"WINNING PLAYER:\", winner.toString());\n\n return winner;\n } else {\n... | [
"0.79929596",
"0.78232384",
"0.7727885",
"0.760407",
"0.75417024",
"0.7499759",
"0.7475678",
"0.7418142",
"0.7405978",
"0.73937535",
"0.72592914",
"0.7213445",
"0.7205172",
"0.7136351",
"0.71254015",
"0.7113446",
"0.7092484",
"0.70903045",
"0.70782757",
"0.7073469",
"0.706730... | 0.75212234 | 5 |
This function changes the turn variable which then later on used to get the player who is going to play the move | public void changeTurn(){
// this function is used to calculate the turn of a player after every move is played
int turn = this.turn;
turn++;
this.turn = turn%GameConfiguration.NUMBER_OF_PLAYERS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void changeTurn()\r\n {\r\n isPlayersTurn = !isPlayersTurn;\r\n }",
"private void changeTurn(){ \r\n\t\tif (currentTurn == 1)\r\n\t\t\tcurrentTurn = 0; \r\n\t\telse\r\n\t\t\tcurrentTurn = 1; \r\n\t}",
"public void changePlayerTurn()\n {\n if (player_turn == RED)\n playe... | [
"0.79224145",
"0.79003215",
"0.78565294",
"0.76723814",
"0.755856",
"0.7527337",
"0.7522169",
"0.74380606",
"0.74170566",
"0.7314854",
"0.7305002",
"0.7301413",
"0.7169581",
"0.71569276",
"0.7108231",
"0.71027917",
"0.7090796",
"0.7082339",
"0.7050803",
"0.70324814",
"0.70107... | 0.8140697 | 0 |
This function accepts command and plays the move and returns false if enough commands are processed if board is not empty and winner is not present then it returns true | public boolean playMove(String input_command) {
// This function will take a command, validates input and calls for a move for a
// player
// whoes turn is there.
String[] inputs = input_command.split(" ");
String move = inputs[0];
PlayerController playerController = getNextPlayer();... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);",
"private boolean isLegalMove(String move) {\n\t\tString[] moveParts = move.split(\";\");\n\n\t\tint fromRow = Integer.parseInt(moveParts[0].charAt(0) + \"\");\n\t\tint fromCol = Integer.parseInt(moveParts[0].charAt(1) + \"\");\n\... | [
"0.706877",
"0.68388844",
"0.6713701",
"0.6698731",
"0.66326374",
"0.661565",
"0.66031885",
"0.6602782",
"0.65861857",
"0.65465677",
"0.6538925",
"0.6536567",
"0.6515037",
"0.6508781",
"0.64874095",
"0.64851123",
"0.6478201",
"0.6467848",
"0.6439225",
"0.64383435",
"0.6437174... | 0.7796825 | 0 |
This function accepts the input and catches the InvalidMoveException if the move is not valid and in case of valid move it calls for playMove function. | public boolean validateMoveAndPlay(String input){
// This function validates the move. such as whether coins are present or not.
try{
InvalidMoveException.validateMove(input, this.gameController);
if(playMove(input) == false){
return false;
}
}catch(InvalidMoveExcepti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);",
"public abstract void playMove(Move move, int indexOfMove);",
"public boolean playMove(String input_command) {\n // This function will take a command, validates input and calls for a move for a\n // player\n // whoe... | [
"0.72925746",
"0.695466",
"0.6884108",
"0.66829556",
"0.66444796",
"0.66268545",
"0.6623846",
"0.65598476",
"0.65010625",
"0.649578",
"0.6429648",
"0.6427406",
"0.6318435",
"0.63134086",
"0.628067",
"0.6260668",
"0.62386584",
"0.6230597",
"0.62182605",
"0.6217919",
"0.6200182... | 0.70731616 | 1 |
Skip until start tag appears | public SceneObject parse(XmlPullParser parser) throws XmlPullParserException, IOException {
while (parser.getEventType() != XmlPullParser.START_TAG) {
parser.next();
if (parser.getEventType() == XmlPullParser.END_DOCUMENT)
throw new XmlPullParserException("Unexpected END_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void skip(XmlPullParser parser) throws XmlPullParserException, IOException {\n\t\tif (parser.getEventType() != XmlPullParser.START_TAG) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tint depth = 1;\n\t\twhile (depth != 0) {\n\t\t\tswitch (parser.next()) {\n\t\t\tcase XmlPullParser.END_TAG:\n\t\t\t... | [
"0.69083136",
"0.6812622",
"0.6812622",
"0.6725946",
"0.658531",
"0.6356305",
"0.62817514",
"0.62653476",
"0.61619025",
"0.61619025",
"0.6138037",
"0.60431397",
"0.6031032",
"0.59971726",
"0.5965583",
"0.5944581",
"0.5916083",
"0.59117293",
"0.5910329",
"0.59067893",
"0.58983... | 0.0 | -1 |
Constructors Construct a new TableGenerator. | public TablesGenerator()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TableCreation(Table table) {\n this.table = table;\n }",
"public TableDeclaration() {\n }",
"public Table() {\n this.tableName = \"\";\n this.rows = new HashSet<>();\n this.columnsDefinedOrder = new ArrayList<>();\n }",
"public static LearningTable createLearningTa... | [
"0.74029636",
"0.7046618",
"0.7021383",
"0.6750472",
"0.6683207",
"0.66281873",
"0.6579418",
"0.6552444",
"0.65466875",
"0.652443",
"0.65218717",
"0.64639056",
"0.6462848",
"0.6461612",
"0.6457531",
"0.6438509",
"0.6424137",
"0.6424129",
"0.6421649",
"0.63424337",
"0.6325035"... | 0.81141806 | 0 |
Private methods process element type definitions | public void generateDTD(InputSource src)
throws Exception
{
DTDParser parser = new DTDParser();
DTD dtd;
dtd = parser.parseExternalSubset(src, null);
processElementTypes(dtd);
System.out.println(createAllTablesQuery);
FileWriter catq= new FileWriter("createAllTables.sql");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TypeElement getTypeElement();",
"protected void processTypes()\n {\n wsdl.setWsdlTypes(new XSModelTypes());\n }",
"public void setElementType(String element_type) {\n\t\tthis.element_type = element_type;\n\t}",
"void visitElement_issue_type(org.w3c.dom.Element element) { // <issue-type>\n // ... | [
"0.6983001",
"0.6448569",
"0.6298356",
"0.626653",
"0.6215105",
"0.6182069",
"0.616921",
"0.61614007",
"0.6052852",
"0.60395867",
"0.59115845",
"0.5892528",
"0.58364785",
"0.5813006",
"0.5761079",
"0.5737034",
"0.5691962",
"0.5648925",
"0.56038016",
"0.5602407",
"0.5602404",
... | 0.0 | -1 |
Check if the element is treated as a Table. If not, return and don't process it now. Instead, we will process it when we encounter it in each of its parents. if (!isTable(elementType)) return; Open a new FileWriter for the query. | private void processElementType(ElementType elementType)
throws Exception
{
out = new FileWriter(elementType.name.getLocalName() + ".sql");
// Write a 'create table' query for the element type.
out.write(NEWLINE);
out.write("CREATE TABLE ");
out.write(elementType.name.getL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isTable(ElementType elementType)\n {\n\n return (!elementType.children.isEmpty() ||\n !elementType.attributes.isEmpty());\n }",
"private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n ... | [
"0.6403945",
"0.5214109",
"0.5024008",
"0.49617657",
"0.48120517",
"0.4740802",
"0.4693316",
"0.46455312",
"0.46083948",
"0.4593534",
"0.45860216",
"0.458513",
"0.45603728",
"0.45473772",
"0.45319209",
"0.4523397",
"0.45203575",
"0.44890058",
"0.44077495",
"0.4394145",
"0.437... | 0.71182424 | 0 |
If an element type has any attributes or child elements, it is treated as a Table. Otherwise, it is treated as a property. BUG! This code actually misses a special case. If an element type has no children, no attributes, and no parents, it needs to be treated as a Table. However, the corresponding XML document is: ]> w... | private boolean isTable(ElementType elementType)
{
return (!elementType.children.isEmpty() ||
!elementType.attributes.isEmpty());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getType()\r\n\t\t{ return element instanceof Schema ? SCHEMA : element instanceof Alias ? ALIAS : ELEMENT; }",
"private void processElementType(ElementType elementType)\n throws Exception\n {\n\n out = new FileWriter(elementType.name.getLocalName() + \".sql\");\n\n // Write a 'cre... | [
"0.54063267",
"0.533944",
"0.52032983",
"0.5133161",
"0.51273656",
"0.5043679",
"0.50240743",
"0.4931927",
"0.49301597",
"0.48704374",
"0.48639554",
"0.48566076",
"0.4856478",
"0.4841693",
"0.48357117",
"0.48356065",
"0.4834112",
"0.48278177",
"0.48183808",
"0.48114392",
"0.4... | 0.6872656 | 0 |
Add a property of the form: String m_ElementTypeName; or (for multiplyoccurring children or multivalued attributes): String[] m_ElementTypeNames; | private void addScalarProperty(XMLName name, boolean multiValued)
throws Exception
{
if (!multiValued)
{
//out.write(",");
out.write(NEWLINE);
out.write(INDENT);
out.write("m_");
out.write(name.getLocalName());
out.write(" VARCHAR(50)");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getElementType()\n {\n return elementType;\n }",
"public void addElement(TLProperty element);",
"@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}",
"@XmlAttribute(name=\"elementClass\")\n public void setElementType(Strin... | [
"0.60590845",
"0.5941689",
"0.59006137",
"0.589857",
"0.5709093",
"0.5689852",
"0.5625596",
"0.55849975",
"0.5558217",
"0.5481477",
"0.5448159",
"0.5290447",
"0.5253607",
"0.5125699",
"0.5124345",
"0.5122894",
"0.51101065",
"0.5108987",
"0.51078254",
"0.50979966",
"0.5092325"... | 0.0 | -1 |
Add a property of the form: ElementTypeName m_ElementTypeName; or (for multiplyoccurring children): ElementTypeName[] m_ElementTypeNames; | private void addTableProperty(ElementType elementType, boolean multiValued)
throws Exception
{
if (!multiValued)
{
// out.write(",");
out.write(NEWLINE);
out.write(INDENT);
out.write("m_");
out.write(elementType.name.getLocalName());
out.wr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addElement(TLProperty element);",
"public void addElement(int index, TLProperty element);",
"private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.... | [
"0.6430554",
"0.61630636",
"0.60205436",
"0.5942402",
"0.5891267",
"0.57242626",
"0.56986475",
"0.5578386",
"0.55073005",
"0.5465574",
"0.5452632",
"0.5365746",
"0.53238297",
"0.532211",
"0.5310896",
"0.5281323",
"0.51970834",
"0.51485324",
"0.514193",
"0.51296866",
"0.512760... | 0.4986557 | 31 |
This is the special case where the element type has attributes but no child element types. In this case, we create a property in the Table for the PCDATA. (Hence, the argument is false, meaning that the PCDATA is singlevalued.) | private void processPCDATAContent(ElementType elementType)
throws Exception
{
addPCDATAProperty(elementType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean addAttributeAsProperty(XMPMetadata metadata, XMPSchema schema, Attribute attr) {\n\t\tboolean added = false;\n\t\tString schemaNamespace = schema.getNamespaceValue();\n\t\tString prefix = attr.getPrefix() != null ? attr.getPrefix() : schema.getPrefix();\n\t\tString type = this.nsMap.getSpecifiedPro... | [
"0.58821285",
"0.58809614",
"0.58809614",
"0.5764976",
"0.56482995",
"0.5552334",
"0.54538685",
"0.5349405",
"0.5248314",
"0.5220447",
"0.52013",
"0.5189674",
"0.5187799",
"0.51724106",
"0.51500165",
"0.5105601",
"0.5075781",
"0.5069079",
"0.50657827",
"0.5060744",
"0.5032443... | 0.5954131 | 0 |
modificar para em vez de imprimir adicionar ao grafo | private void showTree(EarleyParser.Node root,int level, String previous) {
System.out.print(level);
for(int i = 0; i <= level; i++)
System.out.print(" ");
System.out.println(root.text);
String cur = root.text;
while(graph.containsVertex(cur)) {
cur = cur + " ";
}
graph.addVertex(cur);
if(previous... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean adicionar(Veiculo veiculo) {\n\t\treturn false;\n\t}",
"public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;",
"private void guardar() {\n\t\t//JFileChooser fglobal = principal.getFglobal();\n\t\tprincipal.getFglobal().setDialogTitle(ic.buscar(38)); // Tag 38\n... | [
"0.6281077",
"0.61700016",
"0.59413916",
"0.58737177",
"0.58518046",
"0.57698643",
"0.5760024",
"0.5756049",
"0.57515836",
"0.5729564",
"0.57272905",
"0.56994873",
"0.56740624",
"0.5673557",
"0.5671709",
"0.5622439",
"0.5588696",
"0.5584258",
"0.5581134",
"0.5569549",
"0.5567... | 0.0 | -1 |
Insertion: You are given two 32bit numbers, N and M, and two bit positions, i and j. Write a method to insert M into N such that M starts at bit j and ends at bit i. You can assume that the bits j through i have enough space to fit all of M. That is, if M = 10011, you can assume that there are at least 5 bits between j... | public int insertion(int M, int N, int i, int j) {
for (int k = 0; k < j - i; k++) {
M &= ~(1 << k + i);
}
N = N << i;
return M | N;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int insert(int M, int N, int i, int j) {\n\t\tint a = (-1) << j;\n\t\tint b = (-1) >>> (32 - i);\n\t\tint mask = a | b;\n\t\tN = N & mask;\n\t\tM = M << i;\n\t\treturn N | M;\n\t}",
"public static int updateBits(int n, int m, int i, int j) {\n\t\tint allOnes = ~0;\r\n\t\tSystem.out.println(\"allOne... | [
"0.76970273",
"0.65135294",
"0.60880303",
"0.5764146",
"0.5594541",
"0.5549489",
"0.5493189",
"0.5359292",
"0.530456",
"0.5294992",
"0.521341",
"0.51782507",
"0.51756305",
"0.5169947",
"0.51431555",
"0.5133718",
"0.5131948",
"0.5123969",
"0.5101219",
"0.5097166",
"0.5088846",... | 0.76378953 | 1 |
final DataWrapper dataWrapper = copyDataWrapper(); | void setDynamicLauncherShortcutsFromMainThread()
{
final Context appContext = context;
//PPApplication.startHandlerThread(/*"DataWrapper.setDynamicLauncherShortcutsFromMainThread"*/);
//final Handler __handler = new Handler(PPApplication.handlerThread.getLooper());
//__handler.post(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fiel... | [
"0.6627495",
"0.6455771",
"0.61646116",
"0.6129573",
"0.6114492",
"0.6087847",
"0.6022886",
"0.59779376",
"0.59696335",
"0.5920673",
"0.5906255",
"0.58915776",
"0.5883465",
"0.5840354",
"0.582968",
"0.5789824",
"0.57837075",
"0.5768076",
"0.5760382",
"0.5759263",
"0.5739778",... | 0.0 | -1 |
stops all events associated with profile | private void stopEventsForProfile(Profile profile, boolean alsoUnlink/*, boolean saveEventStatus*/)
{
synchronized (PPApplication.eventsHandlerMutex) {
getEventTimelineList(true);
synchronized (eventList) {
fillEventList();
//noinspection ForLoopRepla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void stop( String profileId );",
"public void stop(String event) {\n Long start = started.get(event);\n if (start != null && start != NOT_STARTED) {\n profile.add(event, System.currentTimeMillis() - start);\n started.put(event, NOT_STARTED);\n }\n }",
"void stopPum... | [
"0.75790054",
"0.66796225",
"0.6381564",
"0.6327239",
"0.6257245",
"0.62519455",
"0.60860765",
"0.6070709",
"0.60631853",
"0.6061183",
"0.60108024",
"0.5973038",
"0.59717447",
"0.5933108",
"0.5921164",
"0.5882776",
"0.5880526",
"0.5873831",
"0.5833227",
"0.58130175",
"0.58030... | 0.76882344 | 0 |
this is called in boot or first start application | void firstStartEvents(boolean startedFromService, boolean useHandler)
{
PPApplicationStatic.logE("DataWrapper.firstStartEvents", "startedFromService="+startedFromService);
//if (startedFromService)
//invalidateEventList(); // force load form db
if (!startedFromService) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onFirstUse() {}",
"@Override\n public void startup() {\n }",
"@Override\n\tpublic void earlyStartup() {\n\t}",
"@Override\n public void postBootSetup() {\n }",
"@Override\n protected void startUp() {\n }",
"@Override\n protected void appStart() {\n }",
"... | [
"0.7586142",
"0.7566819",
"0.7379315",
"0.7367875",
"0.73603606",
"0.7310929",
"0.729706",
"0.7164006",
"0.71561253",
"0.7112844",
"0.70887417",
"0.70586026",
"0.70586026",
"0.70439386",
"0.7031794",
"0.6941161",
"0.69030786",
"0.6831732",
"0.6831732",
"0.6784808",
"0.6774738... | 0.0 | -1 |
boolean fullyStarted = false; if (PhoneProfilesService.getInstance() != null) fullyStarted = PhoneProfilesService.getInstance().getApplicationFullyStarted(); boolean fullyStarted = PPApplication.applicationFullyStarted; fullyStarted = fullyStarted && (!PPApplication.applicationPackageReplaced); if (!fullyStarted) retur... | private void showToastAfterActivation(Profile profile)
{
try {
String profileName = DataWrapperStatic.getProfileNameWithManualIndicatorAsString(profile, true, "", false, false, false, this);
PPApplication.showToast(context.getApplicationContext(),
context.getStri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}",
"public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }",
"Boolean isSuspendOnStart();",
"public boolean isLaunched();",
"boolean isStar... | [
"0.6352449",
"0.6203401",
"0.6178434",
"0.6171898",
"0.61025953",
"0.6074741",
"0.59975463",
"0.59882075",
"0.59746027",
"0.5963654",
"0.5963654",
"0.5959562",
"0.59397745",
"0.5937864",
"0.59244",
"0.59206015",
"0.5902124",
"0.588532",
"0.58659554",
"0.5833258",
"0.5831266",... | 0.0 | -1 |
delay is in seconds | void restartEventsWithDelay(final boolean longDelay, final boolean alsoRescan, final boolean unblockEventsRun,
final int logType)
{
if (longDelay) {
Data workData = new Data.Builder()
.putBoolean(PhoneProfilesService.EXTRA_ALSO_RESCAN, alsoRes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDelay(long d){delay = d;}",
"private void delay() {\n\t\tDelay.msDelay(1000);\n\t}",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"public void setDelay(long delay) ... | [
"0.8070528",
"0.7980967",
"0.7929627",
"0.78971756",
"0.78373533",
"0.77429044",
"0.7527179",
"0.751989",
"0.75186175",
"0.7474782",
"0.7419411",
"0.7392564",
"0.7290762",
"0.7268825",
"0.72080183",
"0.71911716",
"0.7120583",
"0.7106793",
"0.70950544",
"0.7080644",
"0.7079974... | 0.0 | -1 |
Devuelve el dato que tiene guardado | public int getDato() {
return dato;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean guardarDatos2(Object dato) {\r\n\t\t\r\n\t\tEntityTransaction transaccion = em.getTransaction();\r\n\t\ttransaccion.begin();\r\n\r\n\t\ttry {\r\n\t\t\tem.persist(dato);\r\n\t\t\tem.flush();\r\n\t\t\ttransaccion.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tif(transa... | [
"0.6350081",
"0.61230946",
"0.61217064",
"0.6047014",
"0.5964895",
"0.5948236",
"0.58824533",
"0.58631736",
"0.58441746",
"0.57872564",
"0.5777987",
"0.57559264",
"0.57557625",
"0.5735686",
"0.5730383",
"0.57262874",
"0.57240313",
"0.5718223",
"0.5717994",
"0.5716427",
"0.569... | 0.0 | -1 |
Coloca el dato en el nodo | public void setDato(int dato) {
this.dato = dato;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}",
"public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIB... | [
"0.6851296",
"0.6671904",
"0.66305983",
"0.65483767",
"0.64620954",
"0.6396698",
"0.6280633",
"0.6255377",
"0.62158036",
"0.62075883",
"0.6159986",
"0.6126852",
"0.6121511",
"0.61122763",
"0.6101268",
"0.60231763",
"0.60177577",
"0.6015744",
"0.5998167",
"0.5996182",
"0.59684... | 0.6406212 | 5 |
/ Method to generate all Prime Number list up to a give number | public static void main(String[] args) {
System.out.println("Enter the number up to which all prime number list to print: ");
int num = new Scanner(System.in).nextInt();
int i=0,n=0;
String PrimeNum = "";
for (i=1;i<=num; i++)
{
int counter =0;
for (n=i; n>=1; n--)
{
if (i%n == 0)
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ArrayList<Integer> generatePrimes(int maxPrime)\n\t{\n\t\t\n\t\t// Create an array of number with the max number being the maxPrime\n\t\t\n\t\tArrayList<Integer> arrayNumbers = new ArrayList<Integer>();\n\t\t\n\t\tint upperbound = (int) Math.sqrt(maxPrime);\n\t\t\n\t\tfor (int counterNumber = 2; cou... | [
"0.72267103",
"0.7188342",
"0.7182174",
"0.71532005",
"0.68722296",
"0.6845785",
"0.683158",
"0.67358667",
"0.67161965",
"0.6707668",
"0.6686259",
"0.6678516",
"0.66526693",
"0.6604072",
"0.65524024",
"0.6548398",
"0.6497523",
"0.64735395",
"0.6466162",
"0.64570034",
"0.64564... | 0.6311364 | 32 |
Klaus Schmeh challenge 3 | private static void challenge3M138(int len, boolean offsetKnown, boolean withCrib) {
String cipherStr = "RIGVRXIXRHZQOGDQYIXVHCZKJLCDKUSGNDPPIBCLGPZBRUTRFJXHTNQPHWXGQAXPKEEEKMDPWFKSDTLKPTFIXIRUXNTIMTZQQCQOSOPFBXFMMZPSIGZSANJKYHWIO".substring(0, len);
String cribStr = withCrib ? "INTHEEARLYNINETEENTWENTI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws Exception {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint tc = scn.nextInt();\r\n\t\tfor(int t=1; t<=tc; t++) {\r\n\t\t\tint n = scn.nextInt();\r\n\t\t\tint k = scn.nextInt();\r\n\t\t\tString str = scn.next();\r\n\t\t\tString arr[] = new String[n];\r\n\t\t\tarr... | [
"0.64769316",
"0.64298314",
"0.63998604",
"0.6295914",
"0.6279556",
"0.62614024",
"0.6167759",
"0.6166985",
"0.6123787",
"0.6101127",
"0.6089652",
"0.60780996",
"0.6053278",
"0.6037239",
"0.60113007",
"0.6001089",
"0.59942436",
"0.59666306",
"0.5964949",
"0.5958963",
"0.59437... | 0.0 | -1 |
Klaus Schemh challenge 4 | private static void challenge4M138(boolean offsetKnown, boolean withCrib) {
String cipherStr = "PTIJJHDJPKYTMTKUVEPDHYKLHDEYMGLIJLNWKXVGZILQNCJRHWJNBJFUAQHNBJGXWZBESXNXPZH";
String cribStr = withCrib ? "CRYPTOGRAPHYPROVIDESMEANSFORSECURECOMMUNICATIONSINTHEPRESENCEOFTHIRDPARTIES" : null;
int[] ke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws Exception {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint tc = scn.nextInt();\r\n\t\tfor(int t=1; t<=tc; t++) {\r\n\t\t\tint n = scn.nextInt();\r\n\t\t\tint k = scn.nextInt();\r\n\t\t\tString str = scn.next();\r\n\t\t\tString arr[] = new String[n];\r\n\t\t\tarr... | [
"0.6597814",
"0.6560384",
"0.6558962",
"0.6365865",
"0.63385165",
"0.62816286",
"0.6182848",
"0.61749715",
"0.61743927",
"0.61610466",
"0.61505866",
"0.61497396",
"0.6100318",
"0.60745066",
"0.6063933",
"0.60636157",
"0.6059123",
"0.60570043",
"0.6026047",
"0.60145783",
"0.59... | 0.0 | -1 |
Created by hossein on 20200909 | public interface Writeable {
void println(String s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"... | [
"0.5815176",
"0.562788",
"0.5608592",
"0.5457804",
"0.5441895",
"0.5441895",
"0.5424193",
"0.5378236",
"0.53571206",
"0.5350915",
"0.5336255",
"0.53133",
"0.5311852",
"0.5306894",
"0.53001803",
"0.52977866",
"0.5274974",
"0.52404803",
"0.523517",
"0.522932",
"0.52234995",
"... | 0.0 | -1 |
Creates new form ManejoListaDistribucion | public ManejoListaDistribucion() {
initComponents();
var dataUser = Data.getData();
var user = dataUser.getUser();
var strError = "";
var objManejoArchivo = new ManejoArchivo();
var listaMostrar = new DefaultListModel();
File Archivo = new File("C:/MEIA/l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tth... | [
"0.6703238",
"0.6526778",
"0.6412223",
"0.6191062",
"0.6168991",
"0.6094707",
"0.6065665",
"0.6057857",
"0.6002056",
"0.5991085",
"0.5968141",
"0.5960743",
"0.59424037",
"0.59419334",
"0.5920973",
"0.59024346",
"0.58876455",
"0.58824563",
"0.5880875",
"0.5880654",
"0.5875277"... | 0.58854884 | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.