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 |
|---|---|---|---|---|---|---|
ENTITY LINKS ( RELATIONSHIP ) CONSTRUCTOR(S) | public TIdRelationGroupInfoViewEntity() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhysicalLink() {\n\n }",
"LinkRelation createLinkRelation();",
"public Link() {\n }",
"public Relationship() {\r\n\t}",
"public LinkElement() { }",
"Link(Object it, Link inp, Link inn) { e = it; p = inp; n = inn; }",
"LINK createLINK();",
"@Override\n\tpublic Entity createEntity() {\n\t... | [
"0.6985306",
"0.6650387",
"0.6523312",
"0.63983077",
"0.63958997",
"0.639019",
"0.63633317",
"0.63190186",
"0.6260647",
"0.61578566",
"0.6072709",
"0.59755176",
"0.5969509",
"0.59667385",
"0.5942489",
"0.59314007",
"0.59152997",
"0.58642596",
"0.58603394",
"0.5841855",
"0.583... | 0.0 | -1 |
GETTER & SETTER FOR THE KEY FIELD GETTERS & SETTERS FOR FIELDS DATABASE MAPPING : prl_key ( BIGINT ) | public void setPrlKey( Long prlKey ) {
this.prlKey = prlKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();",
"public void setKey( Long key ) {\n this.key = key ;\n }",
"public KeyField getKey() {\n\treturn keyField;\n }",
"public int getKey(){\n return key;\n }",
"public void setKey(int key){\r\n this.key = key; \r\n ... | [
"0.63549554",
"0.6342529",
"0.61684036",
"0.61423427",
"0.61354625",
"0.610626",
"0.6100517",
"0.607837",
"0.6026477",
"0.602215",
"0.602215",
"0.60000885",
"0.59613717",
"0.59593695",
"0.5934355",
"0.5903527",
"0.5895749",
"0.5889531",
"0.58705753",
"0.58590263",
"0.5832053"... | 0.65149933 | 0 |
DATABASE MAPPING : prl_pin_key ( BIGINT ) | public void setPrlPinKey( Long prlPinKey ) {
this.prlPinKey = prlPinKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPinKey() {\r\n return pinKey;\r\n }",
"public void setPrlKey( Long prlKey ) {\n this.prlKey = prlKey;\n }",
"public void setApsPinKey( Long apsPinKey ) {\n this.apsPinKey = apsPinKey;\n }",
"int getPinNumber();",
"public void setPinKey(String pinKey) {\r\n ... | [
"0.65403783",
"0.63427234",
"0.58245564",
"0.57382154",
"0.5679003",
"0.55964714",
"0.5587527",
"0.55266434",
"0.5495033",
"0.5464542",
"0.5429753",
"0.5422805",
"0.5419639",
"0.53772956",
"0.537299",
"0.5332977",
"0.53327966",
"0.53251815",
"0.53243744",
"0.5315007",
"0.5312... | 0.6936636 | 0 |
DATABASE MAPPING : prl_first_name ( TEXT ) | public void setRelationshipGroupName( String relationshipGroupName ) {
this.relationshipGroupName = relationshipGroupName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFirstName(java.lang.CharSequence value) {\n this.first_name = value;\n }",
"public void setFirst_name(String first_name) {\n this.first_name = first_name;\n }",
"public void setFirst_name(java.lang.String first_name) {\n this.first_name = first_name;\n }",
"public java.... | [
"0.67111075",
"0.63531643",
"0.62488955",
"0.62401503",
"0.6185561",
"0.6180327",
"0.6175222",
"0.61679643",
"0.61572015",
"0.61561143",
"0.603826",
"0.6026458",
"0.6026458",
"0.6020783",
"0.59976596",
"0.59800154",
"0.5950381",
"0.59330004",
"0.59015137",
"0.59015137",
"0.58... | 0.0 | -1 |
DATABASE MAPPING : rcd_order_by ( BIGINT ) | public void setRcdOrderBy( Long rcdOrderBy ) {
this.rcdOrderBy = rcdOrderBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OrderByColumnFull createOrderByColumnFull();",
"com.google.protobuf.ByteString\n getOrderByBytes();",
"R_order selectByPrimaryKey(Integer oId);",
"OrderByClauseArg createOrderByClauseArg();",
"OrderByClause createOrderByClause();",
"java.lang.String getOrderBy();",
"public static void setOrderBy (... | [
"0.649481",
"0.62665343",
"0.6137348",
"0.59890205",
"0.59671766",
"0.5937952",
"0.5863353",
"0.5860696",
"0.5807258",
"0.57872367",
"0.57771766",
"0.5756917",
"0.5741793",
"0.57153994",
"0.5688587",
"0.566745",
"0.56261307",
"0.5570027",
"0.5566617",
"0.5546891",
"0.54973656... | 0.68619925 | 0 |
DATABASE MAPPING : relationtype ( VARCHAR ) | public void setRelationtype( String relationtype ) {
this.relationtype = relationtype;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"public String getRelationType()\n {\n String relationType = \"PSX\";\n Iterator i = m_keyNames.iterator();\n while (i.hasNext())\n {\n relationType += i.next().toString();\n }\n relationType ... | [
"0.6665837",
"0.63968974",
"0.62042564",
"0.59369063",
"0.5851548",
"0.58028674",
"0.5695246",
"0.55946237",
"0.55736566",
"0.55617744",
"0.5556788",
"0.5522355",
"0.54857177",
"0.5477926",
"0.54393816",
"0.5434686",
"0.54333985",
"0.54256487",
"0.53870416",
"0.5368982",
"0.5... | 0.7297871 | 0 |
DATABASE MAPPING : relationship ( VARCHAR ) | public void setRelationship( String relationship ) {
this.relationship = relationship;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Relationship createRelationship();",
"public String toStringWithRelation();",
"public void addRelation(String value) {\n/* 262 */ addStringToBag(\"relation\", value);\n/* */ }",
"Relation createRelation();",
"Column referencedColumn();",
"LinkRelation createLinkRelation();",
"private boolean ... | [
"0.6028155",
"0.6014126",
"0.601127",
"0.59696233",
"0.58467543",
"0.5838681",
"0.5824947",
"0.58212864",
"0.57080805",
"0.5599237",
"0.5561426",
"0.5530644",
"0.5502876",
"0.5474707",
"0.54689896",
"0.54545224",
"0.54502195",
"0.5448105",
"0.54477143",
"0.542481",
"0.5399866... | 0.57234925 | 8 |
DATABASE MAPPING : active_status ( VARCHAR ) | public void setActiveStatus( String activeStatus ) {
this.activeStatus = activeStatus;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setActiveStatus(Boolean active){ this.status = active; }",
"public boolean getStatus(){\n return activestatus;\n }",
"@Override\r\n public List<ActiveStatusModel> listActiveStatus() {\r\n return jdbcTemplate.query(SQL_SELECT, new ActiveStatusHelper());\r\n }",
"public Boole... | [
"0.6796891",
"0.6299215",
"0.62050134",
"0.61949146",
"0.60952324",
"0.60617423",
"0.6060506",
"0.60374975",
"0.6009127",
"0.59321976",
"0.59261864",
"0.59261864",
"0.59261864",
"0.59261864",
"0.5914418",
"0.5914418",
"0.5914418",
"0.5914418",
"0.5914418",
"0.58686656",
"0.57... | 0.67832536 | 2 |
GETTERS & SETTERS FOR LINKS toString METHOD | public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("[");
sb.append("]:");
sb.append(prlKey);
sb.append("|");
sb.append(prlPinKey);
// attribute 'prlFirstName' not usable (type = String Long Text)
sb.append("|");
sb.appen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String linkString()\n {\n Iterator<DSAGraphNode<E>> iter = links.iterator();\n String outputString = \"\";\n DSAGraphNode<E> node = null;\n while (iter.hasNext())\n {\n node = iter.next();\n outputString = (outputString + node.getLabel() + \", \")... | [
"0.77301913",
"0.7180817",
"0.70524865",
"0.6945341",
"0.6867595",
"0.6823091",
"0.6801906",
"0.6656569",
"0.6632852",
"0.66288406",
"0.66045886",
"0.65924823",
"0.6538305",
"0.6531128",
"0.6517371",
"0.6494687",
"0.64175856",
"0.64175856",
"0.64175856",
"0.64175856",
"0.6390... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
sutlukadayif = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.6945... | 0.0 | -1 |
$FF: renamed from: (wL) void | public void method_9696(class_776 var1) {
super.method_9648();
this.field_9138 = var1;
this.method_9655(5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo57277b();",
"void mo80455b();",
"void m1864a() {\r\n }",
"public void m23075a() {\n }",
"void mo72113b();",
"void mo80452a();",
"void mo28194a();",
"void mo41086b();",
"void mo41083a();",
"void mo54405a();",
"void mo119582b();",
"public void mo115190b() {\n }",
"void mo67923... | [
"0.6983962",
"0.69781595",
"0.6922291",
"0.690151",
"0.68855256",
"0.6871132",
"0.68234706",
"0.680319",
"0.676496",
"0.67570037",
"0.6749283",
"0.6725603",
"0.6713647",
"0.67109376",
"0.66717553",
"0.6664511",
"0.6661668",
"0.66587484",
"0.66507995",
"0.6647268",
"0.66413414... | 0.0 | -1 |
$FF: renamed from: b () boolean | public boolean method_9649() {
String[] var1 = class_752.method_4253();
boolean var10000 = this.field_9138.method_4476();
if(var1 != null) {
if(!var10000) {
return false;
}
var10000 = this.field_9138.method_3876();
}
Object var3;
l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean mo66253b();",
"@ReflectiveMethod(name = \"b\", types = {})\n public boolean b(){\n return (boolean) NMSWrapper.getInstance().exec(nmsObject);\n }",
"public abstract boolean mo9735b();",
"@Override // c.d.a.m.w.n\n public /* bridge */ /* synthetic */ boolean b(byte[] bA... | [
"0.71186924",
"0.7095943",
"0.7035659",
"0.6998864",
"0.69913363",
"0.6977807",
"0.6858498",
"0.6842377",
"0.6839328",
"0.6770244",
"0.6758909",
"0.6741566",
"0.6741566",
"0.67308074",
"0.6725132",
"0.66944313",
"0.66722196",
"0.66665316",
"0.6649153",
"0.661904",
"0.6591122"... | 0.0 | -1 |
$FF: renamed from: e () void | public void method_9652() {
this.field_9138.method_4257().method_9802();
this.field_9138.method_4479(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"void event(Event e) throws Exception;",
"@Override\n public void e(int i0, int i1) {\n\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public... | [
"0.831217",
"0.8263482",
"0.7269824",
"0.72477543",
"0.6976275",
"0.697018",
"0.6889901",
"0.6827704",
"0.6785928",
"0.6783425",
"0.6774625",
"0.672212",
"0.6708503",
"0.6701176",
"0.6678974",
"0.6656218",
"0.6601006",
"0.65706503",
"0.6567137",
"0.6552242",
"0.65276957",
"... | 0.0 | -1 |
$FF: renamed from: f () void | public void method_9653() {
this.field_9138.method_4479(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"public void f() {\n }",
"public void f() {\n }",
"@Override\n public int f() {\n return 0;\n }",
"void f1() {\r\n\t}",
"@Override\n\tpublic void f1() {\n\n\t}",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"void testMethod() {\n f();\n }",
... | [
"0.8133922",
"0.8054612",
"0.80336934",
"0.7644505",
"0.74619853",
"0.70730615",
"0.7063645",
"0.69087774",
"0.6881769",
"0.6876434",
"0.68606323",
"0.68485004",
"0.68447775",
"0.6792766",
"0.67660826",
"0.6716051",
"0.66668606",
"0.66173965",
"0.66109085",
"0.6604501",
"0.65... | 0.0 | -1 |
$FF: renamed from: b (boolean) void | public void method_9697(boolean var1) {
this.field_9139 = var1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo197b(boolean z);",
"void mo1492b(boolean z);",
"public void b(boolean paramBoolean)\r\n/* 603: */ {\r\n/* 604:601 */ this.l = paramBoolean;\r\n/* 605: */ }",
"public void b(boolean paramBoolean)\r\n/* 184: */ {\r\n/* 185:183 */ this.g = paramBoolean;\r\n/* 186: */ }",
"vo... | [
"0.77071303",
"0.7701807",
"0.74319416",
"0.7429783",
"0.7410599",
"0.73887473",
"0.73516256",
"0.7350655",
"0.73125917",
"0.72970283",
"0.7263645",
"0.7263413",
"0.7182996",
"0.7160118",
"0.7135618",
"0.7128356",
"0.70488834",
"0.7034204",
"0.7009944",
"0.699277",
"0.6987423... | 0.0 | -1 |
Constructor for a maze state. | public MazeState(Node pawnOne, Node pawnTwo) {
this.pawnOne = pawnOne;
this.pawnTwo = pawnTwo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Maze(){}",
"public BFSMaze(MazeConstructor maze) {\n this.maze = maze;\n this.r = maze.getR();\n queue = new LinkedList<>();\n parents = new LinkedList<>();\n }",
"public Maze() {\n\t\tmaze = new Block[1][1];\n\t\tfileName=\"\";\n\t}",
"public MazeBug() {\n\n\tsetColor(C... | [
"0.78032964",
"0.71986234",
"0.68996775",
"0.6808502",
"0.6791386",
"0.6772276",
"0.67525125",
"0.67203486",
"0.658515",
"0.654313",
"0.6497348",
"0.64370596",
"0.6430668",
"0.6415884",
"0.639687",
"0.63475806",
"0.6329972",
"0.62866765",
"0.62654203",
"0.61869144",
"0.614560... | 0.6927006 | 2 |
Append the path to get to this state base on the previous state | public void setPath(String path) {
this.path = path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n ... | [
"0.65352315",
"0.65303135",
"0.6313112",
"0.6186019",
"0.6027743",
"0.60146284",
"0.58225924",
"0.5805301",
"0.5803441",
"0.5793448",
"0.5786757",
"0.57069826",
"0.56825536",
"0.56339425",
"0.561265",
"0.5577219",
"0.5535309",
"0.55161285",
"0.5508373",
"0.5486451",
"0.548328... | 0.0 | -1 |
Check if two states is equal or not | @Override
public boolean equals(Object other) {
if (other == null) return false;
else if (!(other instanceof MazeState)) return false;
return this.getPawnOne().getPositionNr() == ((MazeState) other).getPawnOne().getPositionNr() &&
this.getPawnTwo().getPositionNr() == ((MazeSt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3... | [
"0.7238769",
"0.71619105",
"0.7011005",
"0.6980648",
"0.6907944",
"0.68888545",
"0.68578374",
"0.6841902",
"0.68258864",
"0.6779539",
"0.6771408",
"0.6753326",
"0.6747125",
"0.67121154",
"0.6682158",
"0.666946",
"0.6621373",
"0.65516067",
"0.651946",
"0.64432687",
"0.6429585"... | 0.6471356 | 19 |
Get the hashCode for this state. Hashcode is based of the identifiers of the two pawn nodes. Because we override equals, the hashCode need to be overridden in order for the hashSet to function correctly | @Override
public int hashCode() {
return Integer.parseInt(this.getPawnOne().getPositionNr() + "" + this.getPawnTwo().getPositionNr());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int hashCode() {\r\n\t\t// Only this because other fields could be modified after you hash this.\r\n\t\treturn state.hashCode();\r\n\t}",
"public int hashCode() {\n return state.hashCode();\n }",
"public abstract int hashCode();",
"@Override\n\tpublic int hashCode() {\n\t\tfin... | [
"0.7490091",
"0.74752",
"0.73346734",
"0.7277777",
"0.7212242",
"0.72108364",
"0.72108364",
"0.72108364",
"0.72108364",
"0.7210707",
"0.7186765",
"0.71850747",
"0.71850747",
"0.7149127",
"0.7131824",
"0.71183693",
"0.7105073",
"0.70961314",
"0.7094987",
"0.70774186",
"0.70663... | 0.7282895 | 3 |
Convert information of a maze state to string | @Override
public String toString() {
return String.format("[%s,%s]"
, pawnOne.getPositionNr(), pawnTwo.getPositionNr());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n // | <M,C,B> |\n // | Depth = d |\n // -----------\n return \"\\n ----------- \\n\" + \"| <\" + this.state[0] + \",\" + this.state[1] + \",\" + this.state[2] + \"> |\\n\"\n + \"| Depth = \" + this.de... | [
"0.68302786",
"0.67191416",
"0.66623265",
"0.63752645",
"0.637233",
"0.63309664",
"0.6278039",
"0.6256229",
"0.62253225",
"0.6211182",
"0.6163669",
"0.6156872",
"0.615581",
"0.6140048",
"0.6071981",
"0.6069023",
"0.60685724",
"0.60563254",
"0.60334784",
"0.59981173",
"0.59973... | 0.0 | -1 |
A List of InputField for this mapping. | @JsonProperty("input_fields")
@ApiModelProperty(value = "A List of InputField for this mapping.")
public List<InputField> getInputFields() {
return inputFields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();",
"java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();",
"java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();",
"pub... | [
"0.66991705",
"0.66991705",
"0.66991705",
"0.6569729",
"0.6569729",
"0.6569729",
"0.6505788",
"0.6505788",
"0.6505788",
"0.6495706",
"0.6484694",
"0.6422088",
"0.6422088",
"0.6422088",
"0.6377037",
"0.63153356",
"0.63153356",
"0.63153356",
"0.6303932",
"0.6286441",
"0.6205221... | 0.72089446 | 0 |
A boolean that determines whether to drop all fields in this document. If set, input and output fields should not be set | @JsonProperty("is_drop_all_fields")
@ApiModelProperty(example = "true", value = "A boolean that determines whether to drop all fields in this document. If set, input and output fields should not be set")
public Boolean isIsDropAllFields() {
return isDropAllFields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean dropConstraints() {\n \t\treturn true;\n \t}",
"public Boolean getAllowEmptyFields() {\n return (Boolean) getExtProperty(\"allowEmptyFields\", DatabaseConfig.FEATURE_ALLOW_EMPTY_FIELDS);\n }",
"public ConfigurationBuilder onlyFields() {\n\t\tconfigurationBuilder.setAccessStrategy(Acces... | [
"0.5674136",
"0.5659773",
"0.549713",
"0.5492901",
"0.5469766",
"0.5467636",
"0.54336303",
"0.54154027",
"0.5415134",
"0.535383",
"0.5341637",
"0.5328767",
"0.5257119",
"0.5253761",
"0.5251991",
"0.5241655",
"0.52092266",
"0.5204592",
"0.5174156",
"0.51709914",
"0.5168797",
... | 0.7575494 | 0 |
A user specified string that is a name for this mapping. | @JsonProperty("name")
@ApiModelProperty(example = "myTestMapping", value = "A user specified string that is a name for this mapping.")
public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String g... | [
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.634082",
"0.63408... | 0.61300147 | 57 |
An OutputField for this mapping. | @JsonProperty("output_field")
@ApiModelProperty(value = "An OutputField for this mapping.")
public OutputField getOutputField() {
return outputField;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic LinkedHashMap<String, Object> output()\n\t{\n\t\treturn this._data;\n\t}",
"public Output<T> output() {\n return output;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput, org.hyperledger.fabric.protos.token.T... | [
"0.593791",
"0.58615905",
"0.5847839",
"0.5740829",
"0.5667389",
"0.56301004",
"0.56014067",
"0.5553201",
"0.5520122",
"0.5481379",
"0.54524326",
"0.54436904",
"0.54436904",
"0.5433621",
"0.543302",
"0.5428771",
"0.54250044",
"0.54168755",
"0.5405812",
"0.54032767",
"0.539270... | 0.81406033 | 0 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.7884939",
"0.7549351",
"0.74972624",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
... | 0.0 | -1 |
405 Method Not Allowed | @ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)
@ExceptionHandler(HttpRequestMethodNotSupportedException.class)
public AjaxResult<String> handleHttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) {
log.error("不支持当前请求方法", e);
return new AjaxResult<String>(ResultStatusC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\n protected void doPost(final HttpSer... | [
"0.7152973",
"0.7133186",
"0.7082063",
"0.6715006",
"0.6513398",
"0.64824086",
"0.6469826",
"0.64195544",
"0.64195544",
"0.63859034",
"0.6302454",
"0.6287713",
"0.6269986",
"0.61943805",
"0.61851686",
"0.617407",
"0.6109838",
"0.60321355",
"0.60006076",
"0.6000064",
"0.59518"... | 0.59666437 | 20 |
ele diz as latitudes e longitude que ele esta e o sistema busca proximo a ele usuarios prestadores... | @GET
@Path("{latitude}/{longitude}")
@Produces(MediaType.APPLICATION_JSON)
public Response tentarLogar(@PathParam("latitude") String latitude , @PathParam("longitude") String longitude) {
return new ResponseManager().execute(new Interfaces.ResponseCallBack() {
@Override
public Response getResponse() throws ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n Stri... | [
"0.6549616",
"0.62724745",
"0.6173031",
"0.6149456",
"0.607664",
"0.6045935",
"0.5895498",
"0.5876148",
"0.5839594",
"0.5828925",
"0.5827017",
"0.5823408",
"0.5800095",
"0.5780525",
"0.5725517",
"0.5722908",
"0.5722908",
"0.5712389",
"0.5709894",
"0.57064307",
"0.56917346",
... | 0.5597325 | 31 |
The HTML Deleted Text Element (<del>) represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strikethrough text. | public static DomElement del(final DomElement... childrenElements) {
return JaticHTMLElementFactory.get().elementWithContent("del", childrenElements);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void performDelete() {\n \t\tif (text.getSelectionCount() > 0)\n \t\t\ttext.insert(StringStatics.BLANK);\n \t\telse {\n \t\t\t// remove the next character\n \t\t\tint pos = text.getCaretPosition();\n \t\t\tif (pos < text.getCharCount()) {\n \t\t\t\ttext.setSelection(pos, pos + 1);\n \t\t\t\ttext.insert(Stri... | [
"0.6385124",
"0.5775402",
"0.5683019",
"0.5650169",
"0.56351715",
"0.5629538",
"0.5561711",
"0.5542792",
"0.55101454",
"0.54530525",
"0.54118407",
"0.5389942",
"0.53091156",
"0.528391",
"0.52777314",
"0.5228717",
"0.52102447",
"0.520587",
"0.51983136",
"0.5182737",
"0.5175362... | 0.0 | -1 |
The HTML <ins> Element (or HTML Inserted Text) HTML represents a range of text that has been added to a document. | public static DomElement ins(final DomElement... childrenElements) {
return JaticHTMLElementFactory.get().elementWithContent("ins", childrenElements);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getInsid() {\n return insid;\n }",
"public void setInsid(Integer insid) {\n this.insid = insid;\n }",
"String getBeginRange();",
"private void applyInsRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n instags: while (b_changed)\n {\n ... | [
"0.5003791",
"0.49596673",
"0.48523965",
"0.47414544",
"0.47313932",
"0.47196123",
"0.46995747",
"0.46568614",
"0.46527275",
"0.4635753",
"0.46254736",
"0.46140698",
"0.45935953",
"0.45816776",
"0.45730242",
"0.45657137",
"0.45272213",
"0.45254448",
"0.45222333",
"0.45109564",
... | 0.504028 | 0 |
Created by Administrator on 2017/8/7. | public interface DeviceOperateService {
public int opValve(Integer userid,String house_code,Integer open,Integer islock,JSONObject resultObj);
public int setBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj);
public int opBuildingValve(Integer userid, Map<String,String> param... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@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\tpublic void entrenar() {\n\t\t\n\t}",
"@Ov... | [
"0.6244775",
"0.61209005",
"0.5809614",
"0.5794204",
"0.5779324",
"0.5775259",
"0.57167876",
"0.57156044",
"0.57127154",
"0.5704275",
"0.569485",
"0.56919056",
"0.56919056",
"0.56911415",
"0.5689382",
"0.56828374",
"0.56806874",
"0.56611687",
"0.56577426",
"0.56577426",
"0.56... | 0.0 | -1 |
Return true if small is a subset of large. That is, all the elements in small are in large / Analysis: This method can be solved in nlog(n) time where n is the length of the large array. This is done by sorting large, then verifying whether each element in small is in large via a binary search. Complete this method wit... | public static boolean isSubset(int[] large, int[] small){
HashSet<Integer> hs = new HashSet<>(20, 0.9f);
for(int i : large)
hs.add(new Integer(i));
for(int i = 0; i < small.length; i++)
if(!hs.contains(small[i]))
return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Integer> intersectSorted(int[] sortedLongNums, int[] sortedShortNums) {\n List<Integer> intersect = new ArrayList<>();\n\n for (int i = 0, j = 0; i < sortedLongNums.length && j < sortedShortNums.length; i++) {\n if (sortedLongNums[i] == sortedShortNums[j]) {\n i... | [
"0.5883931",
"0.5776572",
"0.5719023",
"0.5618886",
"0.561291",
"0.56016046",
"0.5505217",
"0.54892445",
"0.53682756",
"0.53659415",
"0.53482586",
"0.530282",
"0.52967536",
"0.52958006",
"0.52689534",
"0.5241319",
"0.5221789",
"0.5213989",
"0.51890045",
"0.51856047",
"0.51827... | 0.8387249 | 0 |
Return true if the two numbers in pair have an opposite pair in the array. (1,2) (2,1) for example / Analysis: This method can be solved in n^2 time where n is the length of the array. This is done by comparing every pair to every other pair in the array and looking for an opposite. Complete this method with a Hash in ... | public static boolean opposites(Pair[] data){
HashSet<Pair> hs = new HashSet<>(20, 0.9f);
for(Pair p : data) {
if(hs.contains(new Pair(p.b(), p.a())))
return true;
hs.add(p);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean twoPair(int[] numArr) {\n\t\tfor (int i = 1; i < numArr.length-2; i++) {\n\t\t\tif (numArr[i-1]==numArr[i]&&numArr[i]==numArr[i+1]){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isTwoPair(){\r\n int temp[] = getIntArr();\r\n\r\n if(temp[0] == temp[1... | [
"0.75136733",
"0.7097596",
"0.65888226",
"0.64776504",
"0.63589627",
"0.6354317",
"0.6244871",
"0.6185488",
"0.61233443",
"0.61028665",
"0.6097906",
"0.60834485",
"0.60787773",
"0.60598636",
"0.59279066",
"0.59278315",
"0.58948994",
"0.58401406",
"0.582039",
"0.5768445",
"0.5... | 0.70877856 | 2 |
data contains unique values. Find and display 4 different ints such that a + b == c + d. Print error if none / Analysis: This method can be completed in n^2 time where n is the length of the array. This is done by using 4 nested for loops comparing every possible combination of values. Complete this method in O(n^2) ti... | public static void fourSum(int[] data){
HashMap<Integer,Pair> set = new HashMap<>();//integer = sum, pair are the nums
for(int i = 0; i < data.length; i++)
for(int j = i+1; j < data.length; j++) {
Pair check = set.get(i+j);
if(check != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean check(int[] data) {\n int a[]=new int[8];\n a[0]=data[0]+data[1]+data[2];\n a[1]=data[3]+data[4]+data[5];\n a[2]=data[8]+data[7]+data[6];\n a[3]=data[0]+data[3]+data[6];\n a[4]=data[1]+data[4]+data[7];\n a[5]=data[2]+data[5]+data[8];\n ... | [
"0.6931884",
"0.64969164",
"0.64181787",
"0.6168969",
"0.6148565",
"0.6089809",
"0.6026305",
"0.60218954",
"0.60134006",
"0.59895223",
"0.59481984",
"0.5946575",
"0.58634585",
"0.58619463",
"0.58437645",
"0.5828795",
"0.5820123",
"0.58129615",
"0.5792306",
"0.578903",
"0.5758... | 0.7574727 | 0 |
Calculate f(n) recursively. This sequence is calculated by summing the two previous numbers. f(5) is equal to f(4) + f(3). This creates a sequence with the following values: n 0 1 2 3 4 5 6 7 8 f(n) 0 1 1 2 3 5 8 13 21 / Analysis: This calculation requires numerous redundant calculations. For example to calculate f(5) ... | public static int f(int value){
HashMap<Integer, Integer> map = new HashMap<>();
return fHelper(map, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong ... | [
"0.69158256",
"0.66907424",
"0.6639929",
"0.66257304",
"0.66119593",
"0.6584899",
"0.6541916",
"0.6501",
"0.6485557",
"0.64730436",
"0.6447405",
"0.640989",
"0.638539",
"0.63558155",
"0.63437533",
"0.6340256",
"0.6338446",
"0.6322536",
"0.63195056",
"0.63192946",
"0.63167995"... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Enemy e1 = new Enemy(10); // Initialize a new enemy. It will call the constructor in the class enemy.
Enemy e2 = new Enemy();
Enemy e3 = new Enemy(3);
e1.SetHealth(100);
e2.SetHealth(50);
e3.SetHealth(25);
// e1.lives = 10; Since now there is a constructor... | {
"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 |
/ Supporting only LinearLayoutManager for now. | public PaginationScrollListener(LinearLayoutManager linearLayoutManager) {
// this.layoutManager=linearLayoutManager;
this.mlayoutmanager = linearLayoutManager;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n try{\n super.onLayoutChildren(recycler, state);\n }catch (IndexOutOfBoundsException e){\n }\n\n }",
"protected RecyclerView.LayoutManager getLayoutManager() {\n retu... | [
"0.6913009",
"0.6831291",
"0.66192883",
"0.66168535",
"0.65416294",
"0.64409727",
"0.6283112",
"0.6238638",
"0.62093836",
"0.62076354",
"0.6206596",
"0.6195867",
"0.6186399",
"0.61854005",
"0.6185162",
"0.61548847",
"0.6110486",
"0.6104754",
"0.60565233",
"0.6049514",
"0.6030... | 0.6807303 | 2 |
End of user code This class provides the data access layer to the kind of dao entity class. This is the interface which represent the contract of the DAO access. | public interface IKindOfDaoDao {
/**
* Create a new element.
* @param exempleDirect Element to create.
* @throws DaoException If a DAO problem occurs.
*/
public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;
/**
* Update an existing element.
* @param exempleDirect Element ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is ... | [
"0.78923637",
"0.7806751",
"0.7774042",
"0.7753364",
"0.7690295",
"0.7649631",
"0.764923",
"0.7637426",
"0.7605073",
"0.7599891",
"0.7591986",
"0.75863856",
"0.75629085",
"0.7561479",
"0.75594497",
"0.75364494",
"0.7524291",
"0.75170326",
"0.7509663",
"0.7485309",
"0.74776596... | 0.7884341 | 1 |
Create a new element. | public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract M createNewElement();",
"Element createElement();",
"public void newElement() {\r\n }",
"Object create(Element element) throws IOException, SAXException, ParserConfigurationException;",
"@FactoryFunc\r\n\t@Function Element createElement(String tagName);",
"ObjectElement createObjectEl... | [
"0.8053003",
"0.78427213",
"0.75981694",
"0.73868257",
"0.7091249",
"0.7008008",
"0.6912743",
"0.67465717",
"0.6706063",
"0.66882694",
"0.6667334",
"0.65771097",
"0.6570176",
"0.6567181",
"0.65541786",
"0.6552259",
"0.6517582",
"0.64381623",
"0.64377254",
"0.63676035",
"0.633... | 0.0 | -1 |
Update an existing element. | public void updateExempleDirect(ExempleDirect exempleDirect) throws DaoException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(Epreuve element) throws DaoException {\n\t\t\n\t}",
"@Override\r\n\tpublic void updateElement() {\n\r\n\t}",
"@Override\n public T update(T element) {\n return manager.merge(element);\n }",
"protected R update(final R element) throws MessageLabelException {\n retur... | [
"0.7460236",
"0.7226951",
"0.67812985",
"0.651075",
"0.6472128",
"0.63614213",
"0.63132155",
"0.63025045",
"0.62808275",
"0.6259479",
"0.6206475",
"0.6185869",
"0.61549133",
"0.61549133",
"0.60811514",
"0.60794073",
"0.6068435",
"0.6068435",
"0.6033898",
"0.6032964",
"0.59823... | 0.0 | -1 |
Delete an element. Only id can be used to find which element must be deleted. | public void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteElement(int elementId);",
"public void delete(T element);",
"boolean remove(String elementId);",
"E remove(Id id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
... | [
"0.8574134",
"0.77933943",
"0.7504203",
"0.74043614",
"0.7288808",
"0.7288808",
"0.7288808",
"0.7288808",
"0.7288808",
"0.72701895",
"0.72532195",
"0.71681017",
"0.71681017",
"0.71681017",
"0.71681017",
"0.71681017",
"0.71681017",
"0.71681017",
"0.71681017",
"0.71681017",
"0.... | 0.0 | -1 |
Find one entity by its primary key. | public ExempleDirect findExempleDirectById(String id) throws DaoException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T findById(long pk);",
"E findById(K id);",
"public E findByPK(Serializable pk) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n E entity = session.get(genericType, pk);\n\n trans.commit();\n return entity;\n }",
"public ... | [
"0.782142",
"0.75310785",
"0.7481465",
"0.7435701",
"0.7383651",
"0.7372308",
"0.73674136",
"0.7365997",
"0.7345561",
"0.73399746",
"0.73282224",
"0.7208463",
"0.7186238",
"0.71820766",
"0.71464026",
"0.71454245",
"0.71307147",
"0.7096576",
"0.7080479",
"0.70750266",
"0.69758... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
actualizarOnClick();
} | {
"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 onClick(View arg0) {
ahoraNoOnClick();
} | {
"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 |
acciones para actualizar el perfil | private void actualizarOnClick(){
Intent i=new Intent(this,MenuPrincipal.class);
i.putExtra("valueString", datos);
this.startActivity(i);
this.finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PerfilTO guardarOActualizar(PerfilTO perfil);",
"@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPr... | [
"0.6795131",
"0.66594",
"0.6317607",
"0.62241",
"0.6180056",
"0.6174173",
"0.6056303",
"0.5977137",
"0.59685975",
"0.5956413",
"0.5945815",
"0.5945688",
"0.59325546",
"0.5908618",
"0.5884456",
"0.58643484",
"0.5851259",
"0.577304",
"0.57717955",
"0.57694",
"0.5760908",
"0.5... | 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.completa_perfil, 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.72461367",
"0.7201596",
"0.7195268",
"0.7177002",
"0.71069986",
"0.7039653",
"0.70384306",
"0.70115715",
"0.7010647",
"0.69803435",
"0.6945406",
"0.69389313",
"0.6933442",
"0.69172275",
"0.69172275",
"0.6890826",
"0.6883689",
"0.687515",
"0.6874831",
"0.68615955",
"0.68615... | 0.0 | -1 |
Represents a type of search | public static interface SearchType
{
/**
* Creates a search of this type with the given query
*
* @param search The search query
* @param builder The search builder that is compiling the search
* @return The compiled search object representing the given query
*/
public abstract Search create(Str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSearchType() {\r\n\t\treturn searchType;\r\n\t}",
"public String getSearchType() {\r\n\t\treturn searchType;\r\n\t}",
"public int getSearchType()\r\n\t{\r\n\t\treturn searchType;\r\n\t}",
"public abstract S getSearch();",
"SearchResultsType createSearchResultsType();",
"private AniteQuer... | [
"0.7293129",
"0.7293129",
"0.714576",
"0.7104911",
"0.7081415",
"0.7052888",
"0.70077115",
"0.691546",
"0.6746177",
"0.6708753",
"0.669936",
"0.66266257",
"0.6457197",
"0.63391095",
"0.6309647",
"0.63019663",
"0.62927777",
"0.6250673",
"0.6230372",
"0.62215245",
"0.6211719",
... | 0.7886986 | 0 |
Creates a search of this type with the given query | public abstract Search create(String search, SearchBuilder builder); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TSearchResults createSearchResults(TSearchQuery searchQuery);",
"TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"public MagicSearch createMagicSearch();",
"public SearchQueryBuilder(String query, String searchType) {\n this(query, SearchTypeService.getSearchModel... | [
"0.7736154",
"0.7389975",
"0.72136635",
"0.6974559",
"0.68308413",
"0.68107426",
"0.674649",
"0.6733411",
"0.67075074",
"0.6695386",
"0.6664845",
"0.666225",
"0.6639111",
"0.66099846",
"0.65828836",
"0.65461814",
"0.6525006",
"0.6490776",
"0.64814055",
"0.647788",
"0.6470068"... | 0.69513005 | 4 |
Parses an operator out of a modifiable character sequence. | public static Operator parse(StringBuilder sb, String search)
{
if(sb.charAt(0) == '<' || sb.charAt(0) == '>')
{
boolean gt = sb.charAt(0) == '>';
sb.delete(0, 1);
if(sb.charAt(0) == '=')
{
sb.delete(0, 1);
if(gt)
return GTE;
else
return LTE;
}
else
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] =... | [
"0.7219788",
"0.71655095",
"0.66240716",
"0.66002595",
"0.65692157",
"0.65577567",
"0.64621216",
"0.6352257",
"0.62750524",
"0.62657267",
"0.626249",
"0.6243372",
"0.61984676",
"0.6184491",
"0.60896045",
"0.60365456",
"0.59664124",
"0.59653234",
"0.59544235",
"0.59473693",
"0... | 0.5887718 | 25 |
Creates a SearchDate. The input may be constrained to any single time range, but combinations that create multiple ranges (e.g. h!=null, but md==null, meaning at a particular time on some day) are not accommodated. | public SearchDate(Integer md, Integer wd, Integer m, Integer y, Integer h, Integer min,
Integer sec, Integer mills, boolean local)
{
if(wd != null && (md != null || m != null || y != null))
throw new IllegalArgumentException(
"If the week day is specified, month day, month, and year cannot be");
mon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SearchDate(long time)\n\t\t{\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTimeInMillis(time);\n\t\t\tcal.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT\"));\n\t\t\tgmt = true;\n\t\t\tyear = Integer.valueOf(cal.get(Calendar.YEAR));\n\t\t\tmonth = Integer.valueOf(cal.get(Calendar.MONTH));\n\t... | [
"0.54830205",
"0.5289184",
"0.528088",
"0.5111503",
"0.5071913",
"0.50539756",
"0.5015029",
"0.5012388",
"0.49914196",
"0.4951995",
"0.4934798",
"0.4916413",
"0.49114162",
"0.48900458",
"0.4881795",
"0.48741695",
"0.48451355",
"0.48437098",
"0.48372367",
"0.4832614",
"0.48202... | 0.5384198 | 1 |
Creates a SearchDate for a definite time. | public SearchDate(long time)
{
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(time);
cal.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
gmt = true;
year = Integer.valueOf(cal.get(Calendar.YEAR));
month = Integer.valueOf(cal.get(Calendar.MONTH));
monthDay = Integer.valueOf(cal.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract T create(final double idealStartTime);",
"private Calendar createNewCalendar(String dateAndTime) {\n // initiate a calendar\n Calendar calendar = Calendar.getInstance();\n // take the given dateandTime string and split it into the different values\n String date = dateAndTime.split(... | [
"0.56634474",
"0.5403866",
"0.5350468",
"0.5315115",
"0.5291834",
"0.5235336",
"0.5220148",
"0.5198326",
"0.5190688",
"0.5179924",
"0.51786876",
"0.5162098",
"0.51187074",
"0.5117412",
"0.51051486",
"0.5090987",
"0.50401497",
"0.5038594",
"0.50326484",
"0.50137925",
"0.501086... | 0.6937469 | 0 |
Parses a date from a search string, removing it from the string | public static SearchDate parse(StringBuilder sb, String srch)
{
if(sb.length() > 0 && sb.charAt(0) == '"')
sb.delete(0, 1);
java.util.Calendar now = java.util.Calendar.getInstance();
Integer d, m, y, h, min = null, sec = null, mill = null;
final boolean [] local = new boolean [] {false};
boolean do... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }",
"public Date parse (String dateAsString , String dateFormat) throw... | [
"0.61990666",
"0.6114999",
"0.6046056",
"0.5977807",
"0.5950328",
"0.59491885",
"0.5757129",
"0.5746068",
"0.5741168",
"0.572943",
"0.57282203",
"0.56825686",
"0.56438035",
"0.5600488",
"0.5580525",
"0.5562381",
"0.5557302",
"0.5519248",
"0.55022293",
"0.5483868",
"0.5470191"... | 0.62422144 | 0 |
Parses a positive integer and removes its representation from a modifiable character sequence | public static int parseInt(StringBuilder sb)
{
int numberChars = 0;
for(;; numberChars++)
{
if(numberChars >= sb.length())
break;
char ch = sb.charAt(numberChars);
if(ch >= '0' && ch <= '9')
continue;
else
break;
}
if(numberChars == 0)
return -1;
else
{
int ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final static String remZero( String s ) {\n\n\n int memid = 0;\n String newS = \"\";\n\n //\n // convert string to int to drop leading zeros\n //\n try {\n memid = Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n // ignore error\n ... | [
"0.6449296",
"0.6166135",
"0.6045169",
"0.6002516",
"0.5725446",
"0.5681347",
"0.5680899",
"0.557619",
"0.55728734",
"0.5572179",
"0.55398005",
"0.5525399",
"0.55167896",
"0.55160916",
"0.54909617",
"0.54852927",
"0.5484961",
"0.547813",
"0.54601204",
"0.5459406",
"0.54577243... | 0.0 | -1 |
Checks the string to see if it begins with the correct suffix for the given number, e.g. 1st, 102nd, 13th | public static boolean parseSuffix(StringBuilder sb, int num)
{
if(sb.length() < 2)
return false;
boolean ret;
if(num % 10 == 1 && num / 10 != 1)
ret = sb.charAt(0) == 's' && sb.charAt(1) == 't';
else if(num % 10 == 2 && num / 10 != 1)
ret = sb.charAt(0) == 'n' && sb.charAt(1) == 'd';
else i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean prefixMatched(long number){\r\n String numberString = \"\"+number;\r\n// String preFixSubstring = numberString.substring(0,2);\r\n if ((numberString.startsWith(\"4\")) || (numberString.startsWith(\"5\"))\r\n || (numberString.startsWith(\"6\")) || (numberStr... | [
"0.6443758",
"0.6142376",
"0.6092948",
"0.60453326",
"0.58758247",
"0.58657724",
"0.5793582",
"0.5663384",
"0.56449634",
"0.56297493",
"0.55456495",
"0.5536934",
"0.5534589",
"0.5505349",
"0.54161096",
"0.5406319",
"0.5391966",
"0.5381724",
"0.5377177",
"0.5346346",
"0.532840... | 0.6437755 | 1 |
Parses a search age from a string | public static SearchAge parse(StringBuilder sb, String srch)
{
Integer y = null, mo = null, w = null, d = null, h = null, min = null, sec = null;
int c = 0;
for(; c < sb.length() && !Character.isLetter(sb.charAt(c))
&& (sb.charAt(c) < '0' || sb.charAt(c) > '9'); c++);
while(c < sb.length())
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getAge(String [] lignes){\n Pattern p= Pattern.compile(\"([0-9]{2}) *ans\");\n for(String ligne : lignes){\n // System.out.println(ligne);\n Matcher matcher = p.matcher(ligne);\n if(matcher.find())\n return Integer.parseInt(matcher.gro... | [
"0.65122336",
"0.6352055",
"0.61948234",
"0.5987332",
"0.5732543",
"0.57238054",
"0.56974316",
"0.5466805",
"0.5356264",
"0.52804315",
"0.5254327",
"0.52522373",
"0.52458304",
"0.52438486",
"0.5237812",
"0.51815504",
"0.51479053",
"0.51461035",
"0.5137502",
"0.5063701",
"0.50... | 0.7144482 | 0 |
Checks a time to see if it matches this search age | public boolean matches(Operator op, long now, long time)
{
long ageTime = getTime(now);
long prec = getPrecision();
switch(op)
{
case EQ:
return Math.abs(time - ageTime) <= prec;
case GT:
return time < ageTime;
case GTE:
return time <= ageTime + prec;
case LT:
return time > age... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkAge(Dating t);",
"@Override\r\n\t\t\tpublic ExecuteResult execute(float deltaTime) {\n\t\t\t\tif(checkAgeOutSchool(man.getInfo().getAge())){\r\n\t\t\t\t\treturn ExecuteResult.FALSE;\r\n\t\t\t\t}\r\n\t\t\t\treturn ExecuteResult.TRUE;\r\n\t\t\t}",
"private Boolean TimeInRange(String time){\n ... | [
"0.6189815",
"0.60501206",
"0.5992722",
"0.5899801",
"0.58575535",
"0.5792889",
"0.5728248",
"0.56559956",
"0.56228065",
"0.56228065",
"0.5607269",
"0.5605614",
"0.5587754",
"0.55487937",
"0.5546164",
"0.5536681",
"0.552506",
"0.5519452",
"0.55039364",
"0.54988635",
"0.546359... | 0.60663867 | 1 |
Creates a search iterator | public SearchIterator(Search... searches)
{
theSearches = searches;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SearchingIterator getIterator(Object key)\r\n\t{\r\n\t\tSearchingIterator x = new SearchingIterator(key); \r\n\t\treturn x; \r\n\t}",
"public abstract Iter<Boolean> search(T element);",
"public abstract Iterator<E> createIterator();",
"IteratorExp createIteratorExp();",
"Iterator<T> iterator();",
... | [
"0.71849674",
"0.65103984",
"0.65098494",
"0.6343245",
"0.63077354",
"0.62746286",
"0.61060345",
"0.6073855",
"0.60660166",
"0.60581917",
"0.6055104",
"0.6055104",
"0.6055104",
"0.6055104",
"0.5968911",
"0.5964967",
"0.5897924",
"0.5887462",
"0.5887462",
"0.58758783",
"0.5868... | 0.5497261 | 64 |
Creates an empty NOT search | public NotSearch()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}",
"@Test\n public void executeEmptySearch_noResults() {\n emptySearchFields();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n\n //However, with all the search fiel... | [
"0.67211384",
"0.6099998",
"0.6028967",
"0.59099",
"0.58927876",
"0.58197266",
"0.58197266",
"0.57896465",
"0.57333624",
"0.5697793",
"0.5683615",
"0.5647372",
"0.56052405",
"0.5538864",
"0.5505396",
"0.5494422",
"0.54746556",
"0.5431063",
"0.5425625",
"0.5418956",
"0.5367917... | 0.6227925 | 1 |
Adds an operand to this expression | public void add(Search search)
{
if(search instanceof CompoundSearch)
((CompoundSearch) search).setParent(this);
theOperands = ArrayUtils.add(theOperands, search);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(String operand, Integer value) throws Exception {\n if (operand.equals(\"=\")){\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + value);\n }else if (operand.equals(\" \")){\n Integer regVal = dataMemory.getData(value);\n Integer accVal... | [
"0.6961952",
"0.690399",
"0.66893",
"0.6687634",
"0.6676499",
"0.65954494",
"0.65063274",
"0.64982426",
"0.6495445",
"0.6466162",
"0.64393157",
"0.64093643",
"0.6341741",
"0.62975526",
"0.6251601",
"0.62057406",
"0.62040967",
"0.61647594",
"0.61069584",
"0.6105548",
"0.610356... | 0.0 | -1 |
Removes an operand from this expression | public boolean remove(Search search)
{
int index = ArrayUtils.indexOf(theOperands, search);
if(index >= 0)
{
remove(index);
return true;
}
else
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearActiveOperand();",
"public void clearOperands();",
"public void deleteExpression(){\n\n if(currentExp.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n currentExp = \"\";\n calculationResult.onExpressionChange(currentExp,true)... | [
"0.6833485",
"0.6469902",
"0.6260975",
"0.6205498",
"0.6173911",
"0.6115458",
"0.6002815",
"0.5988549",
"0.59364",
"0.58757406",
"0.58134747",
"0.57954466",
"0.578467",
"0.56979054",
"0.56727946",
"0.56608737",
"0.561321",
"0.5609277",
"0.5599793",
"0.55852205",
"0.5547832",
... | 0.51935464 | 46 |
Removes an operand from this expression | public Search remove(int index)
{
Search ret = theOperands[index];
theOperands = ArrayUtils.remove(theOperands, index);
if(ret instanceof CompoundSearch)
((CompoundSearch) ret).setParent(null);
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearActiveOperand();",
"public void clearOperands();",
"public void deleteExpression(){\n\n if(currentExp.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n currentExp = \"\";\n calculationResult.onExpressionChange(currentExp,true)... | [
"0.6833485",
"0.6469902",
"0.6260975",
"0.6205498",
"0.6173911",
"0.6115458",
"0.6002815",
"0.5988549",
"0.59364",
"0.58757406",
"0.58134747",
"0.57954466",
"0.578467",
"0.56979054",
"0.56727946",
"0.56608737",
"0.561321",
"0.5609277",
"0.55852205",
"0.5547832",
"0.55016804",... | 0.5599793 | 18 |
A shorthand, chainingenabled method | public ExpressionSearch addOps(Search... ops)
{
for(Search op : ops)
add(op);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ChainingMethods() {\n // private constructor\n\n }",
"public Builder getThis() { return this; }",
"private final T self() { return (T)this; }",
"private final T self() { return (T)this; }",
"public T and() { return parent; }",
"Chain getChain();",
"default With with(final String name)... | [
"0.58702105",
"0.54599595",
"0.5391991",
"0.5391991",
"0.53666174",
"0.51898474",
"0.5157154",
"0.5154773",
"0.49586144",
"0.48908177",
"0.48720354",
"0.48608387",
"0.485988",
"0.48297176",
"0.4806982",
"0.48022807",
"0.47977406",
"0.47927386",
"0.4790983",
"0.47684133",
"0.4... | 0.0 | -1 |
Recursively simplifies this expression if possible | public void simplify()
{
for(int o = 0; o < theOperands.length; o++)
{
if(!(theOperands[o] instanceof ExpressionSearch))
continue;
ExpressionSearch exp = (ExpressionSearch) theOperands[o];
exp.simplify();
if(exp.getOperandCount() == 0)
{
remove(o);
o--;
}
if(exp.and ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public node simplify() {\n node n = null;\n Object[] o = children().toArray();\n int l = o.length;\n if ( l == 1 )\n return (node) o[0];\n\n node orr = (node) o[0];\n node atmost1 = (node) o[0];\n\n for ( int i=1; i<l; i++ ) {\n orr = new or( or... | [
"0.66081625",
"0.657564",
"0.64341855",
"0.6111608",
"0.60045964",
"0.5999199",
"0.5992951",
"0.5905736",
"0.5890786",
"0.580762",
"0.5723243",
"0.56945556",
"0.56097144",
"0.5588585",
"0.55388224",
"0.55375326",
"0.550765",
"0.54733527",
"0.5408962",
"0.5402008",
"0.53961986... | 0.58073604 | 10 |
Shorthand for creating expressions | public ExpressionSearch or(Search srch)
{
return new ExpressionSearch(false).addOps(this, srch);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression createExpression();",
"Expr createExpr();",
"JavaExpression createJavaExpression();",
"Expr expr();",
"ExpOperand createExpOperand();",
"FullExpression createFullExpression();",
"public Object getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression ... | [
"0.836227",
"0.77278554",
"0.73525786",
"0.7309297",
"0.7150978",
"0.7100401",
"0.7068341",
"0.69350326",
"0.69350326",
"0.69350326",
"0.69350326",
"0.6912968",
"0.6820807",
"0.67453295",
"0.67327577",
"0.67096615",
"0.66633844",
"0.6595602",
"0.65906715",
"0.6553662",
"0.653... | 0.0 | -1 |
Shorthand for creating expressions | public ExpressionSearch and(Search srch)
{
return new ExpressionSearch(true).addOps(this, srch);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression createExpression();",
"Expr createExpr();",
"JavaExpression createJavaExpression();",
"Expr expr();",
"ExpOperand createExpOperand();",
"FullExpression createFullExpression();",
"public Object getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression ... | [
"0.836227",
"0.77278554",
"0.73525786",
"0.7309297",
"0.7150978",
"0.7100401",
"0.7068341",
"0.69350326",
"0.69350326",
"0.69350326",
"0.69350326",
"0.6912968",
"0.6820807",
"0.67453295",
"0.67327577",
"0.67096615",
"0.66633844",
"0.6595602",
"0.65906715",
"0.6553662",
"0.653... | 0.0 | -1 |
Compiles a search structure from a search string | public Search createSearch(String searchText)
{
StringBuilder sb = new StringBuilder(searchText);
trim(sb);
Search current = null;
while(sb.length() > 0)
{
boolean not = false;
if(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')
{ // OR operator
sb.delete(0,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Search create(String search, SearchBuilder builder);",
"public MagicSearch createMagicSearch();",
"public void parseQueryStringAndSearch(String searchString) {\n char[] chars = searchString.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n Queue<Character> que... | [
"0.6060433",
"0.5628018",
"0.5532132",
"0.5504151",
"0.55001014",
"0.54343784",
"0.54274416",
"0.5423049",
"0.54128504",
"0.536918",
"0.53366524",
"0.53256667",
"0.5311504",
"0.531132",
"0.530132",
"0.5245395",
"0.52145886",
"0.5183197",
"0.5165408",
"0.5142206",
"0.5131451",... | 0.6366237 | 0 |
Creates an expression search for this builder | public ExpressionSearch exp(boolean and)
{
return new ExpressionSearch(and);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\... | [
"0.66162306",
"0.6533307",
"0.63051844",
"0.59102786",
"0.56820714",
"0.5660278",
"0.5589461",
"0.5456623",
"0.54412144",
"0.53771573",
"0.5356068",
"0.5348414",
"0.53476113",
"0.53369296",
"0.523009",
"0.523009",
"0.523009",
"0.523009",
"0.5219391",
"0.52101254",
"0.5209583"... | 0.61577076 | 3 |
Creates a not search for this builder | public NotSearch not()
{
return new NotSearch();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NotSearch()\n\t\t{\n\t\t}",
"public abstract Search create(String search, SearchBuilder builder);",
"public MagicSearch createMagicSearch();",
"private Search() {}",
"public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\... | [
"0.68257594",
"0.6340282",
"0.616327",
"0.60043734",
"0.5925314",
"0.5869623",
"0.58521223",
"0.58521223",
"0.57369906",
"0.57272834",
"0.5689624",
"0.56885546",
"0.5585592",
"0.5576851",
"0.5558408",
"0.5539035",
"0.5509793",
"0.5503715",
"0.5455325",
"0.5421824",
"0.5404144... | 0.7408461 | 0 |
Parses the next nonexpression search | public Search parseNext(StringBuilder sb)
{
for(SearchType type : getAllTypes())
{
for(String header : type.getHeaders())
{
if(sb.length() < header.length())
continue;
boolean hasHeader = true;
int c;
for(c = 0; c < header.length(); c++)
if(lower(sb.charAt(c)) != header.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ScannedToken> parse() {\n TokenType prev = null;\n TokenType curr = null;\n TokenType next = null;\n\n List<ScannedToken> properlyParsedExpression = new ArrayList<>();\n\n List<TokenType> types = expression.stream().map(ScannedToken::type).collect(Collectors.toList())... | [
"0.58637285",
"0.5792848",
"0.57500356",
"0.5684686",
"0.55092514",
"0.54894686",
"0.5485771",
"0.54538983",
"0.54392505",
"0.5417181",
"0.5391255",
"0.53685856",
"0.5362835",
"0.5356374",
"0.5346564",
"0.5341821",
"0.5317721",
"0.5300089",
"0.52811897",
"0.52773833",
"0.5246... | 0.5116566 | 40 |
Parses a search without a header | public abstract Search defaultSearch(StringBuilder sb); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SearchResponse search(SearchRequest searchRequest) throws IOException;",
"Search getSearch();",
"private Search() {}",
"void search();",
"void search();",
"void searchProbed (Search search);",
"@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}",
"ab... | [
"0.6410327",
"0.6392733",
"0.61010987",
"0.6011681",
"0.6011681",
"0.5969058",
"0.59454465",
"0.59096724",
"0.57768756",
"0.5761041",
"0.5747324",
"0.5733837",
"0.5693943",
"0.56864053",
"0.56617105",
"0.56599605",
"0.5657048",
"0.5642906",
"0.56404364",
"0.5544309",
"0.55419... | 0.5543595 | 20 |
Gets the position of the close parenthesis matching the open parenthesis at the given index | public int goPastParen(StringBuilder sb, int c)
{
boolean esc = false;
int depth = 1;
for(c++; c < sb.length(); c++)
{
if(!esc)
{
if(sb.charAt(c) == '(')
depth++;
else if(sb.charAt(c) == ')')
{
depth--;
if(depth == 0)
break;
}
else if(sb.charAt(c) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int findBracket(String find) {\n /* State variable ensures that the corresponding closing bracket is found not\n \t\tthe first found closing bracket */\n int state = 0;\n for (int i = 0; i < find.length(); i++) {\n if (find.charAt(i) == '(') {\n state++;\n ... | [
"0.68013453",
"0.66144854",
"0.6500261",
"0.62838084",
"0.60200936",
"0.5943197",
"0.5823318",
"0.57968813",
"0.5710592",
"0.5707521",
"0.5668902",
"0.5661495",
"0.56098145",
"0.5595443",
"0.55810237",
"0.5575906",
"0.5564264",
"0.55481964",
"0.5536165",
"0.55233425",
"0.5509... | 0.55423146 | 18 |
Gets the position of the closing quote matching the open quote at the given index | public int goPastQuote(StringBuilder sb, int c)
{
boolean esc = false;
for(c++; c < sb.length(); c++)
{
if(!esc && sb.charAt(c) == '"')
break;
else if(!esc && sb.charAt(c) == '\\')
esc = true;
else
esc = false;
}
if(!esc && sb.charAt(c) == '\"')
return c;
else
thro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int searchQuotationEnd(String s, int index) {\r\n\t\tint quotePos = s.indexOf(\"\\\"\", index);\r\n\r\n\t\twhile (s.charAt(quotePos - 1) == '\\\\') {\r\n\t\t\tint even = 1;\r\n\t\t\tfor (int i = quotePos - 2; s.charAt(i) == '\\\\'; i--)\r\n\t\t\t\teven++;\r\n\t\t\tif (even % 2 == 0) return quotePos;... | [
"0.7355033",
"0.6200443",
"0.58829683",
"0.5693456",
"0.5625666",
"0.56095064",
"0.5583162",
"0.5472817",
"0.53692716",
"0.53553665",
"0.5352583",
"0.53222823",
"0.53115773",
"0.5309899",
"0.5302504",
"0.528028",
"0.5261377",
"0.5229132",
"0.5204038",
"0.5182821",
"0.5173427"... | 0.56302744 | 4 |
Forces a character to be lowercase | public static char lower(char c)
{
if(c >= 'A' && c <= 'Z')
return (char) (c - 'A' + 'a');
else
return c;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static char toLowerCase(char c) {\r\n\r\n\t\tif (isLowerCase(c)) {\r\n\t\t\treturn c;\r\n\t\t} else {\r\n\t\t\treturn (char) (c + 32);\r\n\t\t}\r\n\t}",
"public void toLower() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (char c : seq) {\n newSeq.add(Charact... | [
"0.75482637",
"0.75063306",
"0.7265309",
"0.70741814",
"0.69449675",
"0.69265527",
"0.684834",
"0.67695045",
"0.67364913",
"0.67176765",
"0.67028147",
"0.6698674",
"0.6627169",
"0.6570133",
"0.6532741",
"0.65297455",
"0.6523802",
"0.6515727",
"0.6512885",
"0.64545995",
"0.645... | 0.74870974 | 2 |
Trims white space off of a string builder on both ends | public static void trim(StringBuilder sb)
{
int i;
for(i = 0; i < sb.length() && Character.isWhitespace(sb.charAt(i)); i++);
if(i > 0)
sb.delete(0, i);
for(i = sb.length() - 1; i >= 0 && Character.isWhitespace(sb.charAt(i)); i--);
if(i < sb.length() - 1)
sb.delete(i + 1, sb.length());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String trimSolution(StringBuilder sb) {\n return sb.toString().replace(\"[\", \"\").replace(\"]\",\"\").trim();\n }",
"public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail, boolean doublePunctuationSpaces) {\n/* 92 */ return new XMLStringDefault(this.m_str.trim());\n/* ... | [
"0.6464441",
"0.6275202",
"0.625365",
"0.62328947",
"0.6142587",
"0.5981471",
"0.59728426",
"0.5936044",
"0.59324116",
"0.5904569",
"0.586039",
"0.58472246",
"0.58142114",
"0.5809843",
"0.57867825",
"0.5783602",
"0.5744378",
"0.57385874",
"0.5731494",
"0.5722368",
"0.56990546... | 0.5850736 | 11 |
Get all the kontrachents. | @Override
@Transactional(readOnly = true)
public Page<Kontrachent> findAll(Pageable pageable) {
log.debug("Request to get all Kontrachents");
return kontrachentRepository.findAll(pageable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Kind> findAll() {\n\t\tString hql=\"from Kind k order by k.id\";\n\t\tList<Kind> kinds = sessionFactory.getCurrentSession().createQuery(hql,Kind.class).getResultList();\n\t\treturn kinds;\n\t}",
"public Iterable<String> nouns()\n {\n return h.navigableKeySet();\n }",
"@Override\n\tpubl... | [
"0.6263728",
"0.62472236",
"0.6220474",
"0.605504",
"0.59708637",
"0.59623235",
"0.59190524",
"0.5831715",
"0.58177805",
"0.5817537",
"0.58168167",
"0.57600266",
"0.57477",
"0.57392263",
"0.57269925",
"0.5726234",
"0.5722215",
"0.5715583",
"0.5711407",
"0.5710914",
"0.5701057... | 0.6092631 | 3 |
Get one kontrachent by id. | @Override
@Transactional(readOnly = true)
public Optional<Kontrachent> findOne(Long id) {
log.debug("Request to get Kontrachent : {}", id);
return kontrachentRepository.findById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Karton findOne(Integer id) {\n\t\treturn kartonRepository.findById(id).orElseGet(null);\n\t}",
"@Override\n public Lekar findOne(Long id) {\n return lekarRepozitorijum.getOne(id);\n }",
"D getById(K id);",
"@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K i... | [
"0.7758209",
"0.7085493",
"0.698655",
"0.6784454",
"0.6772731",
"0.67633843",
"0.6750581",
"0.67490375",
"0.6736973",
"0.67369574",
"0.67183524",
"0.67023647",
"0.668299",
"0.6678462",
"0.66757756",
"0.66659206",
"0.66632044",
"0.66565853",
"0.66260815",
"0.6623474",
"0.66128... | 0.7814526 | 0 |
Delete the kontrachent by id. | @Override
public void delete(Long id) {
log.debug("Request to delete Kontrachent : {}", id);
kontrachentRepository.deleteById(id);
kontrachentSearchRepository.deleteById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(K id);",
"public void deleteById(String id);",
"@Override\n public void delete(Long id) {\n log.debug(... | [
"0.7720936",
"0.7720936",
"0.7720936",
"0.7720936",
"0.7720936",
"0.76725173",
"0.76622325",
"0.7635778",
"0.76251864",
"0.75943077",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7567436",
"0.7554081",... | 0.8044562 | 0 |
Search for the kontrachent corresponding to the query. | @Override
@Transactional(readOnly = true)
public Page<Kontrachent> search(String query, Pageable pageable) {
log.debug("Request to search for a page of Kontrachents for query {}", query);
return kontrachentSearchRepository.search(queryStringQuery(query), pageable); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"@Override\n public Data3DPlastic search() {\n return s... | [
"0.65963745",
"0.65350497",
"0.6460849",
"0.6368373",
"0.62321293",
"0.6196971",
"0.6103736",
"0.6097956",
"0.6086325",
"0.607171",
"0.6005717",
"0.6002434",
"0.59956723",
"0.59903085",
"0.5983164",
"0.59141695",
"0.59141695",
"0.5912129",
"0.5894773",
"0.5888606",
"0.5885466... | 0.65804726 | 1 |
does nothing in a demo | public void execute(ProcessInstance processInstance, NMC context, Map<String, String> map) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void demo() {\n\t\tlab_2_2_5();\n\n\t}",
"public static void thisDemo() {\n\t}",
"@Override\n public void setup() {\n }",
"@Override\n public void setup() {\n }",
"private stendhal() {\n\t}",
"@Override\n public void setup() {\n\n }",
"public Demo() {\n\t\t\n\t}",
"pro... | [
"0.68579745",
"0.6791555",
"0.63562196",
"0.63562196",
"0.6308156",
"0.6298465",
"0.6289347",
"0.6174535",
"0.6174432",
"0.61587614",
"0.615207",
"0.6151343",
"0.61457914",
"0.6135589",
"0.61004746",
"0.60628283",
"0.60287917",
"0.60206497",
"0.6015875",
"0.600717",
"0.600038... | 0.0 | -1 |
Overridden to include exception ID. | @Override
public String toString() {
String localizedMessage = getLocalizedMessage();
return getClass().getName() + ": [" + id.code() + "] " + (localizedMessage == null ? "" : localizedMessage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BasicException.Parameter getIdParameter();",
"public int getExceptionNumber(\n ) {return (0);}",
"@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the... | [
"0.65344214",
"0.632069",
"0.6215705",
"0.6199855",
"0.61706406",
"0.6130655",
"0.6119836",
"0.6040654",
"0.6040654",
"0.60391897",
"0.5922437",
"0.5922437",
"0.592118",
"0.58797485",
"0.5878518",
"0.5869744",
"0.5835687",
"0.5834707",
"0.5821093",
"0.5821093",
"0.5820846",
... | 0.0 | -1 |
Overridden to support args. | @Override
public String getMessage() {
String thisMessage = super.getMessage();
if (thisMessage != null && args != null && args.length > 0) {
return MessageFormatter.arrayFormat(thisMessage, args).getMessage();
}
return thisMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void run(String... args) {\n\t}",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override public void run(ApplicationArguments args) {\n }",
"@Override\n public... | [
"0.6747847",
"0.6631279",
"0.6631279",
"0.66055244",
"0.6580914",
"0.6547172",
"0.6532662",
"0.64666134",
"0.64197046",
"0.6395926",
"0.6368419",
"0.63424224",
"0.63424224",
"0.63424224",
"0.63331807",
"0.63308465",
"0.6328004",
"0.63248396",
"0.63186187",
"0.63108796",
"0.62... | 0.0 | -1 |
for our internal exceptions we have and ExceptionId for identifying exception place! | @Override
public synchronized Throwable fillInStackTrace() {
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((dotIndex < (type.length() - 1)) ?... | [
"0.6303885",
"0.6264262",
"0.62626606",
"0.6142371",
"0.6095618",
"0.6041569",
"0.6004844",
"0.59847826",
"0.5956491",
"0.59313554",
"0.58717394",
"0.5866401",
"0.5866401",
"0.58413565",
"0.5818192",
"0.57691795",
"0.5763649",
"0.5732063",
"0.57142293",
"0.569144",
"0.5678406... | 0.0 | -1 |
for presenting information to external users about exceptions, we should use cause exception | @Override
public StackTraceElement[] getStackTrace() {
return getCause() == null ? super.getStackTrace() : getCause().getStackTrace();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Throwable cause();",
"String getCauseException();",
"public exceptiona(Throwable cause)\n {\n String Message = \" not in number system\";\n }",
"public SucheException(Throwable cause) {\n super(cause);\n // TODO Auto-generated constructor stub\n }",
"@Override\n public Thro... | [
"0.81509775",
"0.75396967",
"0.7378183",
"0.6941752",
"0.689952",
"0.6887287",
"0.6858238",
"0.68094224",
"0.6806589",
"0.67974514",
"0.67974514",
"0.6776621",
"0.67742074",
"0.6773063",
"0.6743524",
"0.6735456",
"0.6731731",
"0.670367",
"0.6696148",
"0.66863436",
"0.6616905"... | 0.0 | -1 |
This method gets the information from the "GetTestCaseInformation()" method. The information contains the class and method names to run from excel The information also contains the TestNG configuration information from the excel It creates the TestNG.xml file based on the information gathered Finally it triggers the ex... | public void ExecuteTests() throws IOException{
AutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();
testcaseinfo.GetTestCaseInformation();
TestsBrowserList = testcaseinfo.getTestsBrowserList();
TestsClassesList = testcaseinfo.getTestsClassesList();
ClassesMethodList = testcaseinf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startTest() throws Throwable\n {\n ExcelFileUtil excel= new ExcelFileUtil();\n // iterate all row in masterTestCases sheet\n\n for(int i=1;i<=excel.rowCount(\"MasterTestCases\");i++)\n {\n String ModuleStatus=\"\";\n if(excel.getData(\"MasterTestCase... | [
"0.66087574",
"0.64632934",
"0.62950444",
"0.62946534",
"0.60439295",
"0.6000439",
"0.59471744",
"0.58886313",
"0.57912964",
"0.578283",
"0.57688093",
"0.5699535",
"0.5665456",
"0.5655089",
"0.56278586",
"0.5623686",
"0.5614885",
"0.56016004",
"0.5579845",
"0.5578108",
"0.557... | 0.7011062 | 0 |
Iterates through the test cases and sets parameters for them | private void SetParameters(XmlTest test){
for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){
test.addParameter(entry.getKey(), entry.getValue());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setupParameters() {\n \n \n\n }",
"private void getConfigParameters(String[] parameters, Map<String, String> params,\n String testName) {\n for (int i = 0; i < parameters.length; i++) {\n params.put(parameters[i], null);\n }\n Log.v(TAG, \"[... | [
"0.65117896",
"0.6504845",
"0.6259734",
"0.6101751",
"0.6090006",
"0.6050044",
"0.5950355",
"0.59231925",
"0.59231925",
"0.583754",
"0.58262813",
"0.5826187",
"0.581411",
"0.5802065",
"0.5797228",
"0.57944435",
"0.5785927",
"0.57638097",
"0.5750672",
"0.5721558",
"0.57094586"... | 0.75485426 | 0 |
The Factory for the model. It provides a create method for each nonabstract class of the model. | public interface RaspiroverFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
RaspiroverFactory eINSTANCE = rover.raspirover.raspirover.impl.RaspiroverFactoryImpl.init();
/**
* Returns a new object of class '<em>Ras P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"TestModelFactory getTestModelFactory();",
"public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public SqliteModelFactoryImp... | [
"0.71578854",
"0.71578854",
"0.71578854",
"0.71578854",
"0.71578854",
"0.71578854",
"0.71578854",
"0.7074172",
"0.70526475",
"0.6984003",
"0.6975082",
"0.6965171",
"0.69569916",
"0.6949672",
"0.686028",
"0.6813341",
"0.6806566",
"0.6756512",
"0.66958994",
"0.6656827",
"0.6654... | 0.0 | -1 |
Returns a new object of class 'Ras Pi Board'. | RasPiBoard createRasPiBoard(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MainBoard createMainBoard();",
"public IntelMainboard createMainboard() {\n\t\treturn new IntelMainboard();\n\t}",
"Board() {\r\n init();\r\n }",
"Board() {\n this.cardFactory = new CardFactory(this);\n }",
"private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }... | [
"0.668153",
"0.64728916",
"0.6431444",
"0.6409319",
"0.63772273",
"0.62201554",
"0.62145793",
"0.61559814",
"0.6154189",
"0.6148407",
"0.6122802",
"0.6116964",
"0.61138874",
"0.61027753",
"0.6064614",
"0.6040054",
"0.6027843",
"0.6009926",
"0.59597313",
"0.5933425",
"0.592140... | 0.8899056 | 0 |
Returns a new object of class 'Project'. | Project createProject(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createProject(Project newProject);",
"public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}",
"public Project build() {\n return new Project(descriptor.build());\n }",
"private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\... | [
"0.7584945",
"0.7551854",
"0.7549684",
"0.75401187",
"0.74671805",
"0.7432529",
"0.7270543",
"0.71195436",
"0.71105796",
"0.70749086",
"0.70686734",
"0.7064501",
"0.7064501",
"0.7017828",
"0.698956",
"0.6983459",
"0.69682777",
"0.6962118",
"0.695292",
"0.69281733",
"0.6908292... | 0.79533494 | 1 |
Returns a new object of class 'Sketch'. | Sketch createSketch(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Drawing createDrawing() {\n return new StandardDrawing();\n }",
"public DrawHouse(){\r\n\t\tcanvas = new SketchPad(1000, 1000);\r\n\t\tpen = new DrawingTool(canvas);\r\n\t}",
"public interface ProcessingSketch {\n /**\n * Called when the sketch is initialized to define viewport configura... | [
"0.6141494",
"0.58406717",
"0.5641401",
"0.5541839",
"0.5512653",
"0.5431966",
"0.5375829",
"0.5373856",
"0.53472656",
"0.53081965",
"0.5240113",
"0.521576",
"0.51168823",
"0.51033276",
"0.5084883",
"0.5083571",
"0.5073515",
"0.5042838",
"0.5032566",
"0.5031387",
"0.5017432",... | 0.8590619 | 0 |
Returns a new object of class 'Block'. | Block createBlock(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Block create(int xpos, int ypos);",
"public Block() {\n this((byte) 0, (byte) 0);\n }",
"RclBlock createRclBlock();",
"private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at ... | [
"0.78786117",
"0.74444324",
"0.7440069",
"0.7431922",
"0.7427614",
"0.7422476",
"0.7402394",
"0.7227763",
"0.72180986",
"0.7173089",
"0.7170796",
"0.7160321",
"0.71365076",
"0.71118903",
"0.7097744",
"0.707931",
"0.70513916",
"0.7035166",
"0.7034163",
"0.70044476",
"0.6928766... | 0.87243813 | 0 |
Returns a new object of class 'Digital Pin'. | DigitalPin createDigitalPin(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DigitalInputPin createDigitalInputPin();",
"Pin createPin();",
"AnalogPin createAnalogPin();",
"public DigitalInput(int pin) {\n\t\tthis.pin = (byte) pin;\n\t}",
"public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }",
"static Sbpayment newInstance() {\n retur... | [
"0.8044985",
"0.7668104",
"0.6828266",
"0.63786054",
"0.6325404",
"0.5957316",
"0.5795742",
"0.5795742",
"0.5676772",
"0.5652471",
"0.5625835",
"0.5623824",
"0.56086785",
"0.5596392",
"0.5596242",
"0.55093086",
"0.5491281",
"0.5446135",
"0.5444796",
"0.5444576",
"0.5414404",
... | 0.83340794 | 0 |
Returns a new object of class 'Pin'. | Pin createPin(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DigitalPin createDigitalPin();",
"public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }",
"DigitalInputPin createDigitalInputPin();",
"public void setPin(int pin);",
"public void pin();",
"public void pin();",
"@Override\n public String toString() {\n ret... | [
"0.6671866",
"0.65882427",
"0.63663465",
"0.58952993",
"0.58934397",
"0.58934397",
"0.5852051",
"0.57847744",
"0.5675183",
"0.5654122",
"0.5575618",
"0.55433154",
"0.55337346",
"0.5528429",
"0.55257785",
"0.5524725",
"0.5456661",
"0.5444648",
"0.53961253",
"0.5393971",
"0.538... | 0.8163774 | 0 |
Returns a new object of class 'Analog Pin'. | AnalogPin createAnalogPin(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Pin createPin();",
"DigitalInputPin createDigitalInputPin();",
"DigitalPin createDigitalPin();",
"public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }",
"public MaxBotixAnalog(DigitalOutput pingCh... | [
"0.65306985",
"0.653028",
"0.6339364",
"0.6235408",
"0.5842684",
"0.57312214",
"0.56470925",
"0.5621348",
"0.5583435",
"0.55629855",
"0.5523089",
"0.5476842",
"0.5434252",
"0.5434252",
"0.53685796",
"0.5316998",
"0.5306823",
"0.5301927",
"0.5300418",
"0.52929056",
"0.52875984... | 0.87900597 | 0 |
Returns a new object of class 'Rover Program'. | RoverProgram createRoverProgram(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Program createProgram();",
"Program createProgram();",
"Program createProgram();",
"public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}",
"public static void main(String[] args) throws CloneNotSupportedExc... | [
"0.64300084",
"0.64300084",
"0.64300084",
"0.5631515",
"0.5538715",
"0.54806894",
"0.54785305",
"0.5458714",
"0.54214543",
"0.53843886",
"0.538159",
"0.53586537",
"0.5352706",
"0.53382224",
"0.5330065",
"0.5322794",
"0.52720934",
"0.52663654",
"0.52642936",
"0.5258836",
"0.52... | 0.85696584 | 0 |
Returns a new object of class 'Param'. | Param createParam(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Parameter createParameter();",
"PARAM createPARAM();",
"ParameterStructInstance createParameterStructInstance();",
"protected static ParameterDef createParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_ONLY);\n }",
"default HxParameter createParamet... | [
"0.74869335",
"0.71336603",
"0.6880125",
"0.66832507",
"0.64831567",
"0.64729106",
"0.64239204",
"0.6410029",
"0.6224486",
"0.62041813",
"0.61916655",
"0.6188823",
"0.61844957",
"0.6182748",
"0.6166019",
"0.61643404",
"0.61201644",
"0.6120102",
"0.6111926",
"0.61064494",
"0.6... | 0.8269285 | 2 |
Returns a new object of class 'Var Assignment'. | VarAssignment createVarAssignment(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Variable createVariable();",
"Variable createVariable();",
"VarReference createVarReference();",
"Assignment createAssignment();",
"Assignment createAssignment();",
"private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n ... | [
"0.6800663",
"0.6800663",
"0.65856224",
"0.6520467",
"0.6520467",
"0.64772034",
"0.64616317",
"0.6410337",
"0.64072937",
"0.62896013",
"0.6221834",
"0.6154628",
"0.6112681",
"0.6108742",
"0.6107517",
"0.60947186",
"0.60945606",
"0.60740244",
"0.60577726",
"0.6055093",
"0.6048... | 0.8679791 | 0 |
Returns a new object of class 'Conditional'. | Conditional createConditional(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ConditionalExpression createConditionalExpression();",
"ConditionalDependency createConditionalDependency();",
"public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase... | [
"0.70619625",
"0.6763616",
"0.6719",
"0.66610193",
"0.6499538",
"0.64967006",
"0.6448861",
"0.6433274",
"0.6298117",
"0.62877893",
"0.61971146",
"0.606936",
"0.6002863",
"0.599678",
"0.599678",
"0.59313244",
"0.5931229",
"0.59010774",
"0.5895269",
"0.5820201",
"0.5819129",
... | 0.8407893 | 0 |
Returns a new object of class 'Loop'. | Loop createLoop(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void loop();",
"@Override public void loop () {\n }",
"public void loop(){\n\t}",
"@Override public void loop() {\n }",
"@Override\n public void loop()\n {\n }",
"public void loop(){\n \n \n }",
"public void loop(){\n\t\t\n\t}",
"@Override\n public vo... | [
"0.64822114",
"0.64296544",
"0.6403959",
"0.63889873",
"0.6377906",
"0.6358063",
"0.6340867",
"0.62935793",
"0.62935793",
"0.6112797",
"0.60972273",
"0.60567963",
"0.5875264",
"0.58539337",
"0.5840517",
"0.5835401",
"0.57839453",
"0.5745847",
"0.5745847",
"0.57351613",
"0.573... | 0.8066995 | 0 |
Returns a new object of class 'Rcl Block'. | RclBlock createRclBlock(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Block createBlock();",
"Block create(int xpos, int ypos);",
"public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}",
"Bl... | [
"0.76345384",
"0.6808605",
"0.6724014",
"0.67054915",
"0.6700901",
"0.667991",
"0.66647774",
"0.6652296",
"0.65980303",
"0.6553757",
"0.651347",
"0.65064794",
"0.6335816",
"0.6328527",
"0.6295479",
"0.6271767",
"0.62552947",
"0.6223398",
"0.6197014",
"0.61753905",
"0.6163589"... | 0.8964747 | 0 |
Returns a new object of class 'Temperature Query'. | TemperatureQuery createTemperatureQuery(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"HumidityQuery createHumidityQuery();",
"public Temperature() {\n\t\tsuper();\n\t}",
"public static TemperatureTrackingDto getInstance () {\n return new TemperatureTrackingDto ();\n }",
"public TemperatureResponse getTemperatures(TemperatureRequest request) throws Exception{\n TemperatureResp... | [
"0.69529706",
"0.6112602",
"0.6058479",
"0.5974574",
"0.5661714",
"0.55227005",
"0.5510662",
"0.5502886",
"0.54717636",
"0.54542726",
"0.54346025",
"0.5431166",
"0.5409984",
"0.5403147",
"0.53972393",
"0.53417575",
"0.53151584",
"0.53118604",
"0.5268133",
"0.52454525",
"0.520... | 0.8585795 | 0 |
Returns a new object of class 'Humidity Query'. | HumidityQuery createHumidityQuery(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TemperatureQuery createTemperatureQuery();",
"public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }",
"public static QueryInterface createQuery() {\n return new XmlQuery();\n }",
"public Query() {\r\n }"... | [
"0.66430074",
"0.63913053",
"0.57374364",
"0.57177126",
"0.5707679",
"0.56702644",
"0.562832",
"0.5589528",
"0.55889684",
"0.5552455",
"0.5463013",
"0.5405929",
"0.53851277",
"0.5360286",
"0.53512067",
"0.53385055",
"0.530181",
"0.5297769",
"0.52932405",
"0.52916014",
"0.5273... | 0.86512816 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.