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 |
|---|---|---|---|---|---|---|
Gets array of all "controlPersonsExt" elements | ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] getControlPersonsArray();",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson... | [
"0.8021073",
"0.70704526",
"0.69206417",
"0.6918196",
"0.67546237",
"0.6397894",
"0.5875089",
"0.5814838",
"0.5675874",
"0.558572",
"0.55150723",
"0.55035913",
"0.54513997",
"0.5447108",
"0.54433054",
"0.5417286",
"0.54161686",
"0.53828746",
"0.53498304",
"0.53444517",
"0.531... | 0.8540219 | 0 |
Gets ith "controlPersonsExt" element | ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPe... | [
"0.70054287",
"0.61070615",
"0.5824978",
"0.56422424",
"0.55680144",
"0.548638",
"0.5483572",
"0.5420225",
"0.5405741",
"0.5281178",
"0.52805734",
"0.52513784",
"0.5219048",
"0.5132136",
"0.50610113",
"0.50115633",
"0.49319008",
"0.48981044",
"0.4868705",
"0.48659673",
"0.485... | 0.71490157 | 0 |
Returns number of "controlPersonsExt" element | int sizeOfControlPersonsExtArray(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int sizeOfControlPersonsArray();",
"int getPersonInfoCount();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"static public int numberOfPersons() {\n return personMap.... | [
"0.69262755",
"0.65279335",
"0.6339189",
"0.6127169",
"0.6089329",
"0.5972481",
"0.591932",
"0.5911664",
"0.5858981",
"0.58238006",
"0.5775095",
"0.57514524",
"0.5728135",
"0.5728135",
"0.5728135",
"0.5728135",
"0.5723703",
"0.5664328",
"0.5654301",
"0.5640226",
"0.5636717",
... | 0.7610635 | 0 |
Sets array of all "controlPersonsExt" element | void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"void setControlPersonsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription controlPersons);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.Con... | [
"0.8173493",
"0.7157065",
"0.71238166",
"0.70325047",
"0.69195265",
"0.6108046",
"0.5961515",
"0.59371954",
"0.5909876",
"0.58586216",
"0.5757228",
"0.575191",
"0.57411176",
"0.56812674",
"0.5678249",
"0.5532783",
"0.54940885",
"0.54211414",
"0.5344619",
"0.52547246",
"0.5221... | 0.8309985 | 0 |
Sets ith "controlPersonsExt" element | void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setE... | [
"0.7193674",
"0.6697412",
"0.58868283",
"0.5784266",
"0.5772683",
"0.56509167",
"0.5561164",
"0.5495903",
"0.53343",
"0.529717",
"0.5286957",
"0.5272755",
"0.5241403",
"0.5227206",
"0.5224109",
"0.52038383",
"0.51918066",
"0.5128836",
"0.5037844",
"0.49722868",
"0.4968561",
... | 0.7285255 | 0 |
Inserts and returns a new empty value (as xml) as the ith "controlPersonsExt" element | ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription insertNewControlPersons(int i);",
"privat... | [
"0.64133036",
"0.5569135",
"0.54560566",
"0.5300301",
"0.524321",
"0.51605374",
"0.50787795",
"0.50280917",
"0.4960225",
"0.49170315",
"0.48697168",
"0.48470053",
"0.48428577",
"0.48410445",
"0.4782611",
"0.47803947",
"0.47674266",
"0.47582847",
"0.47559613",
"0.47423965",
"0... | 0.59805983 | 1 |
Appends and returns a new empty value (as xml) as the last "controlPersonsExt" element | ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"void setControlPersonsExtAr... | [
"0.5474187",
"0.52779233",
"0.5256282",
"0.5187802",
"0.51420456",
"0.50690806",
"0.50361496",
"0.5015543",
"0.4959056",
"0.49494082",
"0.494939",
"0.48978895",
"0.47900632",
"0.4770422",
"0.47386792",
"0.4735773",
"0.4726832",
"0.4719523",
"0.47108287",
"0.46831924",
"0.4676... | 0.6173556 | 0 |
Removes the ith "controlPersonsExt" element | void removeControlPersonsExt(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeControlPersons(int i);",
"public void deleteUlIdPerson()\r\n {\r\n this._has_ulIdPerson= false;\r\n }",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$14, 0);\n }\n }"... | [
"0.72004825",
"0.62020755",
"0.6110028",
"0.6027847",
"0.58317304",
"0.57102674",
"0.56275123",
"0.5497395",
"0.54823333",
"0.5474253",
"0.5454718",
"0.5444882",
"0.53966",
"0.53943104",
"0.5379585",
"0.53782237",
"0.5318608",
"0.53076226",
"0.52882785",
"0.5281787",
"0.52695... | 0.7772411 | 0 |
Creates an empty (or nearempty) dictionary. The only value that may be put in by this constructor is DUMMY_LABEL, and only if the ADD_DUMMY_COMPONENT flag is on. | public FeatureDictionary() {
if (ADD_DUMMY_COMPONENT) {
id2label.add( DUMMY_LABEL );
label2id.put( DUMMY_LABEL, new Integer(0));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HashMap<String, Integer> makeEmpty() {\r\n\t\tHashMap<String, Integer> newMap = new HashMap<>();\r\n\t\tnewMap.put(new Gloom(\"Gloom\", null, 30, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Golbat(\"Golbat\", null, 28, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Growlithe(\"Growlithe\", null, 26, ... | [
"0.59386766",
"0.5742978",
"0.5704945",
"0.5656335",
"0.56171775",
"0.55995053",
"0.5594795",
"0.55376565",
"0.5505332",
"0.5501374",
"0.5458385",
"0.538607",
"0.53643125",
"0.535784",
"0.5351714",
"0.5351701",
"0.5331876",
"0.53059334",
"0.5303728",
"0.52860665",
"0.52601475... | 0.7417278 | 0 |
Returns true if the dictionary is either completely empty, or only contains the DUMMY_LABEL | public boolean isPracticallyEmpty() {
return getDimension()==0 ||
getDimension()==1 && id2label.elementAt(0).equals(DUMMY_LABEL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn bnetMap.size() == 0;\n\t}",
"public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"publ... | [
"0.7035335",
"0.6970327",
"0.69234174",
"0.69150174",
"0.68845993",
"0.6873317",
"0.68592393",
"0.68472284",
"0.6845623",
"0.68139815",
"0.67425925",
"0.6698052",
"0.66685945",
"0.6653419",
"0.6648883",
"0.6605862",
"0.6577473",
"0.6537044",
"0.6536673",
"0.6518595",
"0.64648... | 0.76478624 | 0 |
Retrieves the (0based integer) ID for the given feature label provided it's in the dictionary already | synchronized public int getId(String label) {
return label2id.get(label).intValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized public int getIdAlways(String label) throws BoxerXMLException {\n\tif (label==null) throw new IllegalArgumentException(\"label=null\");\n\tInteger x = label2id.get(label);\n\tif (x != null) return x.intValue();\n\tif (!IDValidation.validateFeatureName(label)) {\n\t throw new BoxerXMLException(\"Can... | [
"0.82379127",
"0.7012403",
"0.6333748",
"0.62604725",
"0.60031265",
"0.59292924",
"0.59282154",
"0.5851833",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
... | 0.77492374 | 1 |
Always returns a valid ID for the given feature label: an already recorded one, if there is one, or a new one, otherwise. In the latter case, the feature label is validated before being inserted into the dictionary. This method must be synchronized to prevent double insertion | synchronized public int getIdAlways(String label) throws BoxerXMLException {
if (label==null) throw new IllegalArgumentException("label=null");
Integer x = label2id.get(label);
if (x != null) return x.intValue();
if (!IDValidation.validateFeatureName(label)) {
throw new BoxerXMLException("Can't add feature with the name '"+label+"' to the feature dictionary, because this is not a legal name");
}
id2label.add( label );
int z = id2label.size() - 1; // the index of the last element
label2id.put(label, new Integer(z));
return z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized public int getId(String label) { \n\treturn label2id.get(label).intValue();\n }",
"private static int getInstanceID (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\tString id = label.substring (... | [
"0.62197065",
"0.5838515",
"0.53272533",
"0.5211662",
"0.5168204",
"0.5134798",
"0.50306606",
"0.5018059",
"0.49877432",
"0.4957968",
"0.4950193",
"0.49180958",
"0.4881392",
"0.4852855",
"0.48472324",
"0.48196852",
"0.47535765",
"0.47427204",
"0.47409505",
"0.47409505",
"0.47... | 0.75776833 | 0 |
How many features are there so far? | public int getDimension() {
return id2label.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFeaturesCount();",
"public int getFeaturesCount();",
"int countFeatures();",
"int countFeatures();",
"public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}",
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"int getFeatureCount();",
"long ge... | [
"0.8502633",
"0.8502181",
"0.84121907",
"0.84121907",
"0.82891697",
"0.82069784",
"0.8180103",
"0.80038273",
"0.7937981",
"0.7921489",
"0.7903021",
"0.7857824",
"0.7614551",
"0.7614551",
"0.75980014",
"0.757532",
"0.7567703",
"0.7567703",
"0.7557953",
"0.72165644",
"0.7124973... | 0.0 | -1 |
FIXME: is there a better place to set the dummy coeff? | void addDummyCompoIfRequired(Vector<DataPoint.FVPair> fv) throws BoxerXMLException {
if (ADD_DUMMY_COMPONENT) {
fv.add( new DataPoint.FVPair(getIdAlways(DUMMY_LABEL),1));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[] coeff();",
"public void setCoeff(double value) {\n\t\t\t\tthis.coeff = value;\n\t\t\t}",
"public double getCoeff() {\n\t\t\t\treturn coeff;\n\t\t\t}",
"public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }",
"protected void initCoefficients() {\n\n\t\tString ... | [
"0.6393611",
"0.6302359",
"0.60375935",
"0.598595",
"0.5785434",
"0.57768947",
"0.5673332",
"0.5659042",
"0.5659042",
"0.56244314",
"0.55984294",
"0.55713046",
"0.5398387",
"0.5396895",
"0.53049153",
"0.52686656",
"0.52418983",
"0.52041245",
"0.51559436",
"0.5153845",
"0.5145... | 0.5128713 | 23 |
Describe the list of features as an element of an XML document | public org.w3c.dom.Element createFeaturesElement(Document xmldoc) {
Element e = xmldoc.createElement(XML.FEATURES);
StringBuffer b=new StringBuffer();
for(int i=0; i< id2label.size();i++) {
if (b.length()>0) b.append(" ");
b.append(getLabel(i));
}
Text textNode = xmldoc.createTextNode(b.toString());
e.appendChild(textNode);
return e;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feat... | [
"0.7335973",
"0.7335973",
"0.67727166",
"0.67727166",
"0.65367436",
"0.65367436",
"0.65278834",
"0.65278834",
"0.64187",
"0.6400987",
"0.6322766",
"0.6313708",
"0.6310546",
"0.62164026",
"0.617124",
"0.61649287",
"0.61649287",
"0.61470425",
"0.61365014",
"0.61112624",
"0.6102... | 0.74310446 | 0 |
Saves the dictionary as an XML document | public Document saveAsXML() {
Document xmldoc= new DocumentImpl();
Element root = createFeaturesElement(xmldoc);
xmldoc.appendChild(root);
return xmldoc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveDictionaryToFile() {\n\t\tdictionary.saveDictionary();\n\t}",
"private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.sh... | [
"0.66641533",
"0.6575477",
"0.64320964",
"0.6391639",
"0.62154317",
"0.6181588",
"0.61354995",
"0.61349404",
"0.61049426",
"0.6081931",
"0.60552824",
"0.59904784",
"0.59677994",
"0.5956568",
"0.5934605",
"0.5925948",
"0.5904335",
"0.58764285",
"0.5860872",
"0.5844484",
"0.584... | 0.6395514 | 3 |
Saves the dictionary as an XML document and writes it to a file | public void saveAsXML(String fname) {
XMLUtil.writeXML(saveAsXML(), fname);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveDictionaryToFile() {\n\t\tdictionary.saveDictionary();\n\t}",
"private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.sh... | [
"0.7267578",
"0.66750264",
"0.65950835",
"0.65304065",
"0.63715214",
"0.6323625",
"0.628248",
"0.627343",
"0.62612915",
"0.61918736",
"0.6160098",
"0.61465853",
"0.61385375",
"0.6135619",
"0.61265105",
"0.612633",
"0.6099232",
"0.6082747",
"0.60649806",
"0.60585445",
"0.60293... | 0.5966353 | 24 |
Reads in a FeatureDictionary from an XML file. | public FeatureDictionary(File f)
throws IOException, SAXException, BoxerXMLException {
this(ParseXML.readFileToElement(f));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FeatureDictionary(Element e) throws BoxerXMLException {\n\tif (!e.getTagName().equals(XML.FEATURES)) {\n\t throw new BoxerXMLException(\"FeatureDictionary can only be deserialized from an XML element named `\" + XML.FEATURES + \"'\");\n\t}\n\n\tfor(Node n = e.getFirstChild(); n!=null; n = n.getNextSiblin... | [
"0.6218081",
"0.56283766",
"0.55765384",
"0.5490385",
"0.54159945",
"0.5415591",
"0.5390528",
"0.53499645",
"0.53454673",
"0.5267191",
"0.52648383",
"0.5232804",
"0.51854134",
"0.5150098",
"0.51436555",
"0.513898",
"0.51297617",
"0.50803393",
"0.50780195",
"0.5055929",
"0.504... | 0.6455725 | 0 |
Creates a new Feature Dictionary and loads it with the feature list from an XML element that may have been produced by createFeaturesElement(). | public FeatureDictionary(Element e) throws BoxerXMLException {
if (!e.getTagName().equals(XML.FEATURES)) {
throw new BoxerXMLException("FeatureDictionary can only be deserialized from an XML element named `" + XML.FEATURES + "'");
}
for(Node n = e.getFirstChild(); n!=null; n = n.getNextSibling()) {
int type = n.getNodeType();
//System.out.println("Node Name = " + n.getNodeName()+ ", type=" + type + ", val= " + val);
boolean found = false;
if (type == Node.COMMENT_NODE) { // skip
} else if (type == Node.TEXT_NODE) {
String val = n.getNodeValue().trim();
if (val.length()==0) { //skip
} else {
if (found) throw new BoxerXMLException("FeatureDictionary deserializer expects only one non-empty TEXT element in the XML element being parsed");
found = true;
String[] tokens = val.split("\\s+");
if (ADD_DUMMY_COMPONENT &&
(tokens.length==0 || !tokens[0].equals(DUMMY_LABEL))) {
throw new BoxerXMLException("FeatureDictionary deserializer: ADD_DUMMY_COMPONENT flag is on, but the feature list in the XML element does not start with " + DUMMY_LABEL);
}
id2label.setSize(tokens.length);
for(int i=0; i<tokens.length; i++) {
if (!IDValidation.validateFeatureName(tokens[i])) {
throw new BoxerXMLException("Can't add feature with the name '"+ tokens[i]+"' to the feature dictionary, because this is not a legal name");
}
id2label.set( i, tokens[i]);
label2id.put( tokens[i], i);
}
}
} else {
throw new IllegalArgumentException("FeatureDictionary deserializer: encountered unexpected node type " + type);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.w3c.dom.Element createFeaturesElement(Document xmldoc) {\n\tElement e = xmldoc.createElement(XML.FEATURES);\n\tStringBuffer b=new StringBuffer();\n\tfor(int i=0; i< id2label.size();i++) {\n\t if (b.length()>0) b.append(\" \");\n\t b.append(getLabel(i));\n\t}\n\tText textNode = xmldoc.createTextNod... | [
"0.624992",
"0.5953728",
"0.58241224",
"0.58241224",
"0.5728118",
"0.5600755",
"0.5600755",
"0.5594813",
"0.557801",
"0.5560329",
"0.55287695",
"0.5491148",
"0.5491148",
"0.54167444",
"0.53984034",
"0.5332785",
"0.53191197",
"0.52905595",
"0.5214474",
"0.5142754",
"0.5142754"... | 0.7359265 | 0 |
Returns String value of the selected radio button | private String getSelectedRadio()
{
if (InOrderRadio.isSelected())
{
return InOrderRadio.getText();
} else if (AlmostOrderRadio.isSelected())
{
return AlmostOrderRadio.getText();
} else if (ReverseOrderRadio.isSelected())
{
return ReverseOrderRadio.getText();
} else
{
return RandomOrderRadio.getText();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRadioButtonText() {\n\n String radioButtonText=radio.getText();\n System.out.println(radioButtonText );\n\n return radioButtonText;\n }",
"public String getDistribuidorSeleccionado(){\n RadioGroup rbGroup=(RadioGroup) findViewById( R.id.rbGroup);\n return ((... | [
"0.7718098",
"0.7531009",
"0.7342076",
"0.69783276",
"0.6946251",
"0.664794",
"0.6610206",
"0.652914",
"0.6485932",
"0.6481216",
"0.64271384",
"0.6363244",
"0.6343426",
"0.63236445",
"0.63186735",
"0.62691927",
"0.6237225",
"0.6235595",
"0.6188041",
"0.616107",
"0.616107",
... | 0.7387646 | 2 |
Create list based on list property | private void getArr()
{
// Create array of '0'
Random rand = new Random();
arr = new int[Integer.parseInt(SizeField.getText())];
// InOrder creates a list in ascending order
if (InOrderRadio.isSelected())
{
for (int i = 0; i < arr.length; i++)
{
arr[i] = i;
}
// AlmostOrder creates a list which is 50% sorted and 50% unsorted
} else if (AlmostOrderRadio.isSelected())
{
for (int i = 0; i < arr.length / 2; i++)
{
arr[i] = i;
}
for (int i = arr.length / 2; i < arr.length; i++)
{
arr[i] = rand.nextInt(arr.length);
}
// ReverseOrder creates list in descending order
} else if (ReverseOrderRadio.isSelected())
{
for (int i = arr.length, j = 0; i > 0; i--, j++)
{
arr[j] = i;
}
// RandomOrder creates 100% unsorted list
} else
{
for (int i = 0; i < arr.length; i++)
{
arr[i] = rand.nextInt(arr.length);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ListType createListType();",
"ListValue createListValue();",
"public static <T, U> List<?> copyListOfProperties(List<T> list, U u) {\n\t\tType listType = new TypeToken<List<U>>() {\n\t\t}.getType();\n\t\treturn modelMapper.map(list, listType);\n\t}",
"protected PropertyList createPropertyList(PropertyList pa... | [
"0.65156674",
"0.6399372",
"0.63301116",
"0.6329461",
"0.6258186",
"0.6242744",
"0.6176163",
"0.61351734",
"0.60937357",
"0.60772496",
"0.6076654",
"0.59794474",
"0.595499",
"0.5952742",
"0.5942655",
"0.59345275",
"0.59178114",
"0.5905522",
"0.5902329",
"0.5897733",
"0.589761... | 0.0 | -1 |
This function will run the selected algorithm and also fill in the remaining textboxes. It uses a switch statement to check what algorithm to use. | private void Sort(int[] list)
{
switch (SortField.getText())
{
case "Insertion Sort":
{
InsertionSort insertionSort = new InsertionSort();
long startTime = System.currentTimeMillis();
insertionSort.insertionSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(insertionSort.getComparisons()));
MovementField.setText(String.valueOf(insertionSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n*2)");
break;
}
case "Selection Sort":
{
SelectionSort selectionSort = new SelectionSort();
long startTime = System.currentTimeMillis();
selectionSort.selectionSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(selectionSort.getComparisons()));
MovementField.setText(String.valueOf(selectionSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n2)");
break;
}
case "Quick Sort":
{
QuickSort quickSort = new QuickSort();
long startTime = System.currentTimeMillis();
quickSort.quickSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(quickSort.getComparisons()));
MovementField.setText(String.valueOf(quickSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n log n)");
break;
}
case "Merge Sort":
{
MergeSort mergeSort = new MergeSort();
long startTime = System.currentTimeMillis();
mergeSort.mergeSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(mergeSort.getComparisons()));
MovementField.setText(String.valueOf(mergeSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("T(n) = 2T(n/2) + θ(n)");
break;
}
case "Heap Sort":
{
HeapSort heapSort = new HeapSort();
long startTime = System.currentTimeMillis();
heapSort.heapSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(heapSort.getComparisons()));
MovementField.setText(String.valueOf(heapSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(nLogn)");
break;
}
case "Radix Sort":
{
RadixSort radixSort = new RadixSort();
long startTime = System.currentTimeMillis();
radixSort.radixSort(list, Integer.parseInt(SizeField.getText()));
long endTime = System.currentTimeMillis();
CompareField.setText("Radix Sort has 0 comparisons");
MovementField.setText(String.valueOf(radixSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(kn)");
break;
}
case "Bubble Sort":
{
BubbleSort bubbleSort = new BubbleSort();
long startTime = System.currentTimeMillis();
bubbleSort.bubbleSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(bubbleSort.getComparisons()));
MovementField.setText(String.valueOf(bubbleSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n*n)");
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void chooseAlgorithm() {\n boolean runloop = true;\n CustomArrayList<Integer>[] graph = null;\n graph = util.initializeCNF(statement);\n while (runloop) {\n io.println(\"Which algorithm do you want to use to solve this?\");\n io.println(\"1: Tarjan algorithm... | [
"0.6634228",
"0.6030388",
"0.600044",
"0.5882935",
"0.58711886",
"0.58619624",
"0.5860654",
"0.57530135",
"0.56927526",
"0.5680776",
"0.56489694",
"0.56414163",
"0.5637436",
"0.5593951",
"0.5587365",
"0.55579513",
"0.553241",
"0.5525768",
"0.5518436",
"0.5466439",
"0.5465175"... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner ob=new Scanner(System.in);
int n=ob.nextInt();
int a[]=new int[n];
for(int i=0;i<n;i++)
{
a[i]=ob.nextInt();
}
selectionRecursive(a,0);
for(int i=0;i<n;i++)
{
System.out.println(a[i]);
}
} | {
"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 |
User: Ruben Dilanyan Company: SFL LLC Date: 4/28/15 Time: 11:28 AM | public interface PaymentProviderNotificationProcessor {
/**
* Create payment provider notification for request
*
* @param notificationRequest
* @return paymentProviderNotifications
*/
@Nonnull
List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest);
/**
* Process payment provider notification
*
* @param notification
*/
void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}",
"public void printUserInfo(){\n System.out.print(\"Username: \"+ getNa... | [
"0.6220873",
"0.57196754",
"0.5650903",
"0.55868304",
"0.55500567",
"0.5528258",
"0.5486137",
"0.54624325",
"0.54480404",
"0.54240906",
"0.5419408",
"0.54191196",
"0.54057086",
"0.5353582",
"0.53130245",
"0.53007203",
"0.5292785",
"0.5285653",
"0.52742577",
"0.52721334",
"0.5... | 0.0 | -1 |
Create payment provider notification for request | @Nonnull
List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PaymentProviderNotificationProcessor {\n\n /**\n * Create payment provider notification for request\n *\n * @param notificationRequest\n * @return paymentProviderNotifications\n */\n @Nonnull\n List<PaymentProviderNotification> createPaymentProviderNotificationForReque... | [
"0.64331126",
"0.61737186",
"0.60572076",
"0.6033924",
"0.59652126",
"0.59373844",
"0.59262615",
"0.574606",
"0.57337916",
"0.572125",
"0.5604758",
"0.5596243",
"0.55915964",
"0.5539423",
"0.5538814",
"0.55213416",
"0.5475482",
"0.54718214",
"0.5459695",
"0.5445009",
"0.54332... | 0.71471894 | 0 |
Process payment provider notification | void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PaymentProviderNotificationProcessor {\n\n /**\n * Create payment provider notification for request\n *\n * @param notificationRequest\n * @return paymentProviderNotifications\n */\n @Nonnull\n List<PaymentProviderNotification> createPaymentProviderNotificationForReque... | [
"0.6768026",
"0.6623257",
"0.65507174",
"0.62769616",
"0.6211419",
"0.60822415",
"0.6079284",
"0.6076215",
"0.5958826",
"0.58865917",
"0.5839472",
"0.5828317",
"0.58105946",
"0.5806158",
"0.5788563",
"0.5768486",
"0.57534",
"0.57497466",
"0.5738949",
"0.56814486",
"0.56792045... | 0.84031934 | 0 |
Primer constructor para la clase Menejador | public Cifrador(Manejador m){
manejador = m;
setTitle("Cifrador");
setResizable(false);
setBounds(400,100, 400, 400);
iniciarComponentes();
setDefaultCloseOperation(EXIT_ON_CLOSE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public prueba()\r\n {\r\n }",
"public Carrera(){\n }",
"public Alojamiento() {\r\n\t}",
"public MPaciente() {\r\n\t}",
"public Vocas(String jmeno) {\r\n super(jmeno);\r\n }",
"public AntrianPasien() {\r\n\r\n }",
"public Manusia() {}",
"public SlanjePoruke() {\n }",
"public P... | [
"0.7224217",
"0.72239345",
"0.7202316",
"0.7193612",
"0.6996022",
"0.69878846",
"0.6976005",
"0.6955824",
"0.6925814",
"0.68722904",
"0.68722904",
"0.6859452",
"0.6855601",
"0.68346167",
"0.6826513",
"0.6825916",
"0.68256545",
"0.6799014",
"0.6781381",
"0.6777331",
"0.6776543... | 0.0 | -1 |
Metodo que inicia todos los componentes del frame | public void iniciarComponentes(){
crearPanel();
colocarBotones();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void iniciarComponentesInterface() {\n\t\tPanelchildren panelchildren = new Panelchildren();\r\n\t\tpanelchildren.setParent(this);\r\n\t\tlistBox = new Listbox();\r\n\t\tlistBox.setHeight(\"300px\");\r\n\t\tlistBox.setCheckmark(true);\r\n\t\tlistBox.setMultiple(false);\r\n\t\tlistBox.setParent(panelchildre... | [
"0.7453051",
"0.7228718",
"0.7148749",
"0.7148749",
"0.7139205",
"0.69498235",
"0.6898561",
"0.689071",
"0.68786377",
"0.68474615",
"0.67837095",
"0.67836195",
"0.67579854",
"0.67226344",
"0.6701089",
"0.66701794",
"0.6650933",
"0.6648666",
"0.6630451",
"0.66292",
"0.6629017"... | 0.75177914 | 0 |
Metodo para colocar el panel en le FRAME | public void crearPanel(){
panel = new JPanel();
this.getContentPane().add(panel);
panel.setBackground(Color.CYAN);
panel.setLayout(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel... | [
"0.680107",
"0.67713094",
"0.6763397",
"0.6742561",
"0.6690549",
"0.6656769",
"0.6644066",
"0.66431737",
"0.65787673",
"0.6573778",
"0.6558472",
"0.65509987",
"0.65454656",
"0.65341043",
"0.6528946",
"0.6516638",
"0.651477",
"0.650808",
"0.6505102",
"0.6502639",
"0.6485501",
... | 0.0 | -1 |
Metodo cifrar: Este metodo corresponde al tipo de cifrado vigenere | public String cifrar(String palabra){
String cifrado= " ";
char auxiliar;
int i = 0;
for(i=0;i<palabra.length();i++){
auxiliar=palabra.charAt(i);
if(auxiliar ==' '){
}else{
auxiliar++;
if(auxiliar=='{'){
auxiliar='a';
}
}
cifrado=cifrado+""+auxiliar;
}
return cifrado;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTipoContingencia(String tipoContingencia) {\n this.tipoContingencia = tipoContingencia;\n }",
"Object getTipo();",
"public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n ... | [
"0.5966528",
"0.59167916",
"0.59099764",
"0.5853324",
"0.58215165",
"0.57884127",
"0.57441354",
"0.5740075",
"0.56833935",
"0.5669114",
"0.56562954",
"0.5622188",
"0.5589739",
"0.55866575",
"0.5569469",
"0.5569469",
"0.55659235",
"0.5549658",
"0.5549658",
"0.554076",
"0.55364... | 0.0 | -1 |
Metodo para Colocar opciones en el JComBobox | public void llenarOpciones(Manejador m ){
for(int i = 0 ; i < m.getTextos().size(); i++){
opciones.addItem(m.getTextos().get(i));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setOpc(int opc) {\n this.opc = opc;\n }",
"public void testOptions() {\n OptionsOperator optionsOper = OptionsOperator.invoke();\n optionsOper.selectEditor();\n optionsOper.selectFontAndColors();\n optionsOper.selectKeymap();\n optionsOper.selectGener... | [
"0.62820464",
"0.60817283",
"0.60496104",
"0.59433424",
"0.5619116",
"0.5524843",
"0.54717976",
"0.5457615",
"0.54566514",
"0.5442323",
"0.5442091",
"0.5437434",
"0.541037",
"0.5408176",
"0.53983366",
"0.53271705",
"0.5317899",
"0.53111184",
"0.5308063",
"0.5300563",
"0.52961... | 0.0 | -1 |
Recursively deepcopy all char sequences from parInput into Strings. | public static Object deepCharSequenceToString(final Object parInput) {
if (parInput == null) {
return null;
} else if (parInput instanceof CharSequence) {
return charSequenceToString((CharSequence) parInput);
} else if (parInput instanceof Map) {
final Map<?, ?> myInputMap = (Map) parInput;
final Map<String, Object> myInputMapCopy = new LinkedHashMap<String, Object>();
for (final Map.Entry<?, ?> myEntry : myInputMap.entrySet()) {
myInputMapCopy.put(charSequenceToString((CharSequence) myEntry.getKey()),
deepCharSequenceToString(myEntry.getValue()));
}
return myInputMapCopy;
} else if (parInput instanceof Collection) {
final Collection<?> myInputList = (Collection) parInput;
final Collection<Object> myInputListCopy = new LinkedList<Object>();
for (final Object myItem : myInputList) {
myInputListCopy.add(deepCharSequenceToString(myItem));
}
return myInputListCopy;
} else if (parInput.getClass().isArray()) {
final Object[] myInputArray = (Object[]) parInput;
for (int myIndex = 0; myIndex < myInputArray.length; myIndex++) {
myInputArray[myIndex] = deepCharSequenceToString(myInputArray[myIndex]);
}
} else if (parInput instanceof IJSONSerializeAware) {
return deepCharSequenceToString(((IJSONSerializeAware) parInput).toJSONable());
} else if (parInput instanceof Double) {
final double myValue = (Double) parInput;
if (myValue == (long) myValue) {
return (long) myValue;
}
} else if (parInput instanceof Float) {
final double myValue = (Float) parInput;
if (myValue == (long) myValue) {
return (long) myValue;
}
}
return parInput;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String charSequenceToString(final CharSequence parInput) {\n if (parInput instanceof String || parInput == null) {\n return (String) parInput;\n }\n\n final char[] myChars = new char[parInput.length()];\n CharBuffer.wrap(parInput).get(myChars);\n\n return... | [
"0.5258346",
"0.5037937",
"0.49831775",
"0.48374662",
"0.4815139",
"0.4740667",
"0.46018326",
"0.45827252",
"0.45482436",
"0.45444378",
"0.45330396",
"0.451002",
"0.4502527",
"0.45018667",
"0.4357434",
"0.43540052",
"0.43173975",
"0.43123958",
"0.43091682",
"0.43082005",
"0.4... | 0.6378579 | 0 |
Converts a character sequence to a string. | public static String charSequenceToString(final CharSequence parInput) {
if (parInput instanceof String || parInput == null) {
return (String) parInput;
}
final char[] myChars = new char[parInput.length()];
CharBuffer.wrap(parInput).get(myChars);
return new String(myChars);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String chars2String(char[] chars, int pos, int length) {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tfor (int i = pos + 1; i < pos + length - 1; ++i) {// omit initial and final \"\r\n\t\t\t\tchar ch = chars[i];\r\n\t\t\t\tif (ch == '\\\\') { // handle escape\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tch ... | [
"0.65990317",
"0.65250385",
"0.64390135",
"0.63607305",
"0.63378274",
"0.62678564",
"0.62046707",
"0.6035244",
"0.60194707",
"0.596348",
"0.5922108",
"0.5804257",
"0.56924754",
"0.56657666",
"0.56560296",
"0.56501144",
"0.5626548",
"0.56015855",
"0.5497649",
"0.54707944",
"0.... | 0.6771115 | 0 |
5write a java program to reverse string? Reverse a string word by word? | public static void main(String[] args) {
String given="Welcome to the Java class";
/*to reverse string
* step1:split-->array of string
* step 2:use for loop and use decrement to print values
*/
String reversed="";
String[]str=given.split(" ");
for(int i=str.length-1;i>=0;i--) {
reversed=reversed+str[i]+" ";
}
System.out.println(reversed);
//write a java program to reverse String?
//tochararray();charAt();
System.out.println("1st way_____");
String given1="Today is Java class";
String replaced1="";
char[]charArray=given1.toCharArray();
for(int i=charArray.length-1;i<=0;i--) {
replaced1=replaced1+charArray[i];
}
System.out.println(replaced1);
///2nd way
System.out.println("2nd way______");
String word3="I love JAVA";
String reversed2="";
for(int i=word3.length()-1;i>=0;i--) {
reversed2=reversed2+word3.charAt(i);
}
System.out.println(reversed2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!wo... | [
"0.7469434",
"0.74339396",
"0.735377",
"0.731329",
"0.7249151",
"0.72475415",
"0.7182789",
"0.7153199",
"0.71407425",
"0.71006036",
"0.7086287",
"0.70818996",
"0.7072714",
"0.7062455",
"0.7051683",
"0.6953522",
"0.69329077",
"0.6929381",
"0.6925139",
"0.69140685",
"0.69117975... | 0.0 | -1 |
TODO Autogenerated method stub | private static double FToC(double f) {
return (f-32)*5/9;
} | {
"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 |
Gets attribute value alias. | public String getAttributeValueAlias() {
return attributeValueAlias;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"public Name getAlias() {\n\t\treturn getSingleName();\n\t}",
"public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n ... | [
"0.7101191",
"0.70845705",
"0.7058604",
"0.7043525",
"0.6901694",
"0.6901694",
"0.68952215",
"0.686895",
"0.6854659",
"0.6854058",
"0.6836654",
"0.6745501",
"0.6745501",
"0.67402416",
"0.66021353",
"0.65486646",
"0.651843",
"0.6507738",
"0.6397602",
"0.6379974",
"0.6343271",
... | 0.78244483 | 0 |
Sets attribute value alias. | public void setAttributeValueAlias(String attributeValueAlias) {
this.attributeValueAlias = attributeValueAlias;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAlias(java.lang.CharSequence value) {\n this.alias = value;\n }",
"public export.serializers.avro.DeviceInfo.Builder setAlias(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.alias = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"public... | [
"0.73284954",
"0.7244069",
"0.69388705",
"0.6709019",
"0.6629519",
"0.6620057",
"0.6581526",
"0.64841944",
"0.62650615",
"0.62581176",
"0.621629",
"0.6138156",
"0.60421586",
"0.6025324",
"0.5995422",
"0.5965306",
"0.5965306",
"0.5963535",
"0.5962097",
"0.59533775",
"0.5944236... | 0.6583663 | 6 |
Gets account id type. | public String getAccountIdType() {
return accountIdType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public int getAccountType() {\r\n return accountType;\r\n }",
"GlAccountType getGlAccountType();",
"public abstract int getAccountType();... | [
"0.74639636",
"0.74639636",
"0.7458631",
"0.7313",
"0.7306576",
"0.72319704",
"0.72102505",
"0.71769273",
"0.71769273",
"0.7041861",
"0.7001838",
"0.69551957",
"0.6900362",
"0.68951756",
"0.6859013",
"0.6859013",
"0.67706585",
"0.67006606",
"0.6568521",
"0.6476085",
"0.640056... | 0.80406773 | 0 |
Sets account id type. | public void setAccountIdType(String accountIdType) {
this.accountIdType = accountIdType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public void setAccountType(PaymentAccountTypeId value) {\n this.accountType = value;\n }",
"public void setId_type(String id_type) {\n this.id_type = id_type;\n }",
"public void setIdT... | [
"0.7574974",
"0.7270411",
"0.70815605",
"0.7050753",
"0.6981319",
"0.6845383",
"0.6737334",
"0.6737334",
"0.6728479",
"0.66781753",
"0.6582205",
"0.65528095",
"0.64793485",
"0.64774996",
"0.64617705",
"0.64564633",
"0.63717645",
"0.6365468",
"0.6230471",
"0.62055236",
"0.6152... | 0.6976699 | 5 |
Gets meta object code. | public String getMetaObjectCode() {
return metaObjectCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInterna... | [
"0.64218247",
"0.6402877",
"0.6311344",
"0.6286154",
"0.62258625",
"0.62053525",
"0.6165645",
"0.6165645",
"0.6165645",
"0.6165645",
"0.6165645",
"0.6157909",
"0.6157909",
"0.6151058",
"0.6151058",
"0.6136269",
"0.6118319",
"0.60894793",
"0.6052755",
"0.601931",
"0.59956735",... | 0.7631958 | 0 |
Sets meta object code. | public void setMetaObjectCode(String metaObjectCode) {
this.metaObjectCode = metaObjectCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCode(String code);",
"public String getMetaObjectCode() {\n return metaObjectCode;\n }",
"public void setMeta(org.thdl.lex.component.Meta meta);",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"public v... | [
"0.6440932",
"0.6360448",
"0.6291863",
"0.6054057",
"0.59984314",
"0.5958018",
"0.5815122",
"0.5779112",
"0.5765155",
"0.5690103",
"0.5578588",
"0.55557966",
"0.5535253",
"0.5517533",
"0.5514867",
"0.5491303",
"0.54549223",
"0.54508114",
"0.5440514",
"0.5432248",
"0.5429511",... | 0.765781 | 0 |
Creates new form PatientPanel | public PatientPanelPrescription() {
initComponents();
set();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void createListPatientsPanel() {\n\n\t\tlistPatientsPanel = new JPanel();\n\t\tlistPatientsPanel.setSize(700, 430);\n\t\tlistPatientsPanel.setLocation(0, 70);\n\t\tlistPatientsPanel.setLayout(new GridLayout(1, 1));\n\t\t// textArea\n\t\tpatientList = new... | [
"0.68953466",
"0.6612389",
"0.65380454",
"0.6474942",
"0.64713883",
"0.64052445",
"0.6392737",
"0.6316887",
"0.6290799",
"0.6261326",
"0.61916",
"0.61813915",
"0.61473584",
"0.61103916",
"0.60625374",
"0.60616845",
"0.6040732",
"0.60185134",
"0.5998534",
"0.5976558",
"0.59621... | 0.6595617 | 2 |
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() {
jPanel13 = new javax.swing.JPanel();
jPanel12 = new javax.swing.JPanel();
add4 = new javax.swing.JLabel();
update3 = new javax.swing.JLabel();
jPanel11 = new javax.swing.JPanel();
update4 = new javax.swing.JLabel();
update5 = new javax.swing.JLabel();
jPanel4 = new javax.swing.JPanel();
jLabel8 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
name = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jFulname = new javax.swing.JTextField();
jLabel15 = new javax.swing.JLabel();
jDisease = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jMedicineName = new javax.swing.JTextField();
jLabel17 = new javax.swing.JLabel();
jDose = new javax.swing.JComboBox<>();
jLabel18 = new javax.swing.JLabel();
jTime = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jDiscription = new javax.swing.JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Hospital Management System");
jPanel13.setBackground(new java.awt.Color(255, 255, 255));
jPanel12.setBackground(new java.awt.Color(24, 44, 97));
add4.setBackground(new java.awt.Color(0, 204, 204));
add4.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
add4.setForeground(new java.awt.Color(255, 255, 255));
add4.setText("Prescription");
add4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
addMouseClicked(evt);
}
});
update3.setBackground(new java.awt.Color(0, 204, 204));
update3.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
update3.setForeground(new java.awt.Color(255, 255, 255));
update3.setText("Set Appointment");
update3.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
updateMouseClicked(evt);
}
});
jPanel11.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 8, Short.MAX_VALUE)
);
update4.setBackground(new java.awt.Color(0, 204, 204));
update4.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
update4.setForeground(new java.awt.Color(255, 255, 255));
update4.setText("Edit Profile");
update4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
update4updateMouseClicked(evt);
}
});
update5.setBackground(new java.awt.Color(0, 204, 204));
update5.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
update5.setForeground(new java.awt.Color(255, 255, 255));
update5.setText("My Appointments");
update5.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
update5updateMouseClicked(evt);
}
});
javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(update3, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
.addContainerGap(13, Short.MAX_VALUE))
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(add4)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(update4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(update5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addGap(77, 77, 77)
.addComponent(add4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(32, 32, 32)
.addComponent(update3)
.addGap(41, 41, 41)
.addComponent(update4)
.addGap(31, 31, 31)
.addComponent(update5)
.addContainerGap(335, Short.MAX_VALUE))
);
jPanel4.setBackground(new java.awt.Color(24, 44, 97));
jLabel8.setBackground(new java.awt.Color(0, 204, 204));
jLabel8.setFont(new java.awt.Font("Arial Black", 1, 36)); // NOI18N
jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("Prescription");
jLabel1.setBackground(new java.awt.Color(0, 204, 204));
jLabel1.setFont(new java.awt.Font("Arial Black", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/hms60.png"))); // NOI18N
jLabel1.setText("HMS");
name.setEditable(false);
name.setBackground(new java.awt.Color(24, 44, 97));
name.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
name.setForeground(new java.awt.Color(255, 255, 255));
name.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
name.setText("Abdul Wahid");
name.setBorder(null);
name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
nameActionPerformed(evt);
}
});
jLabel9.setFont(new java.awt.Font("Arial Black", 0, 14)); // NOI18N
jLabel9.setForeground(new java.awt.Color(232, 65, 24));
jLabel9.setText("(Logout)");
jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel9MouseClicked(evt);
}
});
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel9)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel8)
.addGap(130, 130, 130)
.addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel9)
.addContainerGap())
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel8)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 28, Short.MAX_VALUE))
);
jLabel2.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel2.setText("Full Name");
jFulname.setEditable(false);
jFulname.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel15.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel15.setText("Disease");
jDisease.setEditable(false);
jDisease.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel4.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel4.setText("Medicine Name");
jMedicineName.setEditable(false);
jMedicineName.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel17.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel17.setText("Dose");
jDose.setFont(new java.awt.Font("Segoe UI Semibold", 0, 14)); // NOI18N
jDose.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select", "1", "2", "3", "4", "5" }));
jLabel18.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel18.setText("Time");
jTime.setEditable(false);
jTime.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel7.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel7.setText("Description");
jDiscription.setEditable(false);
jDiscription.setColumns(20);
jDiscription.setRows(5);
jScrollPane1.setViewportView(jDiscription);
javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
jPanel13.setLayout(jPanel13Layout);
jPanel13Layout.setHorizontalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(79, 79, 79)
.addComponent(jFulname, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel13Layout.createSequentialGroup()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel15))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDisease, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jMedicineName, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel17)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addComponent(jLabel18))
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(66, 66, 66)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTime, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(62, 62, 62)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 499, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addContainerGap(106, Short.MAX_VALUE))
);
jPanel13Layout.setVerticalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jFulname, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel15)
.addComponent(jDisease, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jMedicineName, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel17)
.addComponent(jDose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel18)
.addComponent(jTime, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addComponent(jLabel7))
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(34, 34, 34)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE))))))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, 697, Short.MAX_VALUE)
);
pack();
setLocationRelativeTo(null);
} | {
"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.73208135",
"0.7291972",
"0.7291972",
"0.7291972",
"0.7287118",
"0.72494483",
"0.7214677",
"0.72086734",
"0.7197058",
"0.71912485",
"0.7185818",
"0.71596724",
"0.71489036",
"0.7094215",
"0.7082007",
"0.70579666",
"0.6988024",
"0.6978225",
"0.6955616",
"0.6955434",
"0.694586... | 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.menu_login_screen, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.saveRouteButton) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7904231",
"0.78061396",
"0.7767007",
"0.77273244",
"0.76318634",
"0.7621818",
"0.7585249",
"0.7531511",
"0.7488678",
"0.74574006",
"0.74574006",
"0.7439257",
"0.7421747",
"0.7403457",
"0.73920685",
"0.7387285",
"0.7379893",
"0.73710734",
"0.7363068",
"0.73565257",
"0.73461... | 0.0 | -1 |
Check if autologon option was enabled and then login to the app automatically based on the setting. If the user had signed out of the app explicitly in the previous session, then prompt for credentials | private void autoLogon() {
// Get the username from the shared preferences file
String strMailID = null;
SharedPreferences appPreferences = getSharedPreferences(RegistrationScreenActivity.PREFERENCES_FILENAME, MODE_PRIVATE);
if( appPreferences.contains(RegistrationScreenActivity.KEY_MAIL_ID) ) {
strMailID = appPreferences.getString(RegistrationScreenActivity.KEY_MAIL_ID, null);
}
// If the username is not stored in the file, then request
// the user to explicitly login by providing the credentials
if(strMailID != null) {
// Fetch the data from the database
DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());
AccountInformation accountInfo = dbHandler.getAccountInfo(strMailID);
if(accountInfo != null) {
// If the account exists, then check auto logon is set to true
if( !accountInfo.getIfSignedOut() && accountInfo.getIfAlwaysSignIn() ) {
strUserMailID = accountInfo.getEmail();
strUserName = accountInfo.getName();
// Do auto login by auto displaying the home screen
Intent intent = new Intent(this, HomeScreenActivity.class);
intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);
intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);
startActivity(intent);
} else {
// Request user to enter the credentials
Toast.makeText(getApplicationContext(), "Session signed out previously. \n " +
"Please enter credentials to login", Toast.LENGTH_LONG).show();
}
} else {
// Display error if the account does not exists
Toast.makeText(getApplicationContext(), "No such user exists. \n " +
"Please register to login", Toast.LENGTH_LONG).show();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }",
"public static v... | [
"0.7184883",
"0.6818082",
"0.6620058",
"0.6488171",
"0.6482528",
"0.62505496",
"0.6169603",
"0.6132178",
"0.60141295",
"0.6012879",
"0.5970502",
"0.5845902",
"0.5791021",
"0.57881284",
"0.5724141",
"0.57148975",
"0.5688584",
"0.56762636",
"0.5675487",
"0.5653096",
"0.56510884... | 0.752742 | 0 |
Opens up the register form when clicked on the text link "Register here" | public void displayRegisterForm(View v) {
Intent intent = new Intent(getApplicationContext(), RegistrationScreenActivity.class);
startActivityForResult(intent, NEW_USER_REGISTER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickRegisterLink() {\n $(registerLink).click();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPasswor... | [
"0.7322943",
"0.70038277",
"0.6948297",
"0.6787656",
"0.67688894",
"0.67616063",
"0.6681031",
"0.665794",
"0.65836054",
"0.6580108",
"0.6566178",
"0.65501916",
"0.65469277",
"0.6546877",
"0.6530983",
"0.64111936",
"0.64037186",
"0.6390357",
"0.63850623",
"0.637392",
"0.636446... | 0.6687969 | 6 |
Displays the dialog to accept email id input from the user | public void displayForgotPasswordDialog(View v) {
FragmentManager fm = getSupportFragmentManager();
ForgotPasswordFragment frag = new ForgotPasswordFragment();
frag.show(fm, "fragment_forgot_password");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openValidateDialog() {\n final ValidateEmailDialog dialog = new ValidateEmailDialog(EmailRegisterActivity.this, EmailRegisterActivity.this, editEmail.getText().toString().trim());\n }",
"public JoinNowPage enterEmailID() {\n\t\temail.sendKeys(\"afchoudhary@deloitte.com\");\n\t\treturn this... | [
"0.65931374",
"0.65840226",
"0.6536549",
"0.648942",
"0.64448404",
"0.63257843",
"0.6268225",
"0.6132105",
"0.61081696",
"0.60949856",
"0.5973427",
"0.59635895",
"0.58999634",
"0.58852094",
"0.58841896",
"0.5882737",
"0.5873745",
"0.5798977",
"0.57931894",
"0.5782095",
"0.574... | 0.0 | -1 |
Validate the user inputs and check for format errors and minimum requirement errors | private boolean validateInputs() {
boolean bValid = true;
// Extract the inputs entered by the user and verify them
String strEmail = m_tfUserEmailID.getText().toString();
String strPassword = m_tfUserPassword.getText().toString();
// Check if the e-mail format is right
if (strEmail.isEmpty() || !android.util.Patterns.EMAIL_ADDRESS.matcher(strEmail).matches()) {
m_tfUserEmailID.setError("Enter a valid email address");
bValid = false;
} else {
m_tfUserEmailID.setError(null);
}
// Check if the password is at least 6 characters long and within 12 characters
if (strPassword.isEmpty() || strPassword.length() < 6 || strPassword.length() > 12) {
m_tfUserPassword.setError("Must be between 6-12 alphanumeric characters");
bValid = false;
} else {
m_tfUserPassword.setError(null);
}
return bValid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new Nu... | [
"0.75146705",
"0.7265723",
"0.72547",
"0.70188713",
"0.7010859",
"0.6986153",
"0.6973848",
"0.69002277",
"0.68920785",
"0.68381095",
"0.681394",
"0.6776213",
"0.6765056",
"0.6725828",
"0.6724363",
"0.67155635",
"0.6674295",
"0.665545",
"0.6649459",
"0.6635753",
"0.66149867",
... | 0.6183972 | 74 |
Verify the user credentials by comparing it with the data store | private boolean verifyCredentials() {
boolean bCredentialsValid = false;
strUserMailID = strUserName = "";
// Get the account information, if existing
DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());
AccountInformation accInfo = dbHandler.getAccountInfo(m_tfUserEmailID.getText().toString());
if(accInfo != null) {
// Compute the hash for the user entered password
OperationsHelper helper = new OperationsHelper();
String strHashPwd = helper.getHashedPassword(m_tfUserPassword.getText().toString(), accInfo.getSaltValue());
if(strHashPwd.equals(accInfo.getPassword())) {
bCredentialsValid = true;
strUserMailID = accInfo.getEmail();
strUserName = accInfo.getName();
// If Always login option is checked, update the value in the database
if( ! (m_cbAutoLogon.isChecked() == accInfo.getIfAlwaysSignIn()) ) {
accInfo.setAlwaysSignIn(m_cbAutoLogon.isChecked());
dbHandler.updateAlwaysSignOnOption(accInfo);
}
} else {
Toast.makeText(getApplicationContext(), "Incorrect Password", Toast.LENGTH_LONG).show();
}
} else {
Toast.makeText(getApplicationContext(), "No such account exists. \n" +
" Create one to login", Toast.LENGTH_LONG).show();
}
return bCredentialsValid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean ValidCredentials() { \n\t\tif(!isEmptyFieldData()){\n\t\t\tSystemUserQuery sq = new SystemUserQuery();\n\t\t\tUser user = sq.loginQuery(getUsername(), getPassword());\n\t\t\t\n\t\t\tif(user != null){\n\t\t\t\tMain.setCurrentUser(user);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false... | [
"0.7149213",
"0.7120515",
"0.69274235",
"0.68846303",
"0.68140197",
"0.6788449",
"0.6779819",
"0.6746023",
"0.67270774",
"0.6673576",
"0.6578093",
"0.65571797",
"0.6542465",
"0.6534355",
"0.65340525",
"0.65267664",
"0.65189725",
"0.65180993",
"0.6505466",
"0.6487018",
"0.6449... | 0.74961734 | 0 |
Responds to the Login button click event in the Login screen | public void login(View v) {
// Disable the login button
m_loginButton.setEnabled(false);
if (validateInputs()) {
if (verifyCredentials()) {
// Start the home screen on successful login
Intent intent = new Intent(LoginScreenActivity.this, HomeScreenActivity.class);
intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);
intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);
startActivity(intent);
}
} else {
// On Login failure, display error to the user
Toast.makeText(getBaseContext(), "Login failed. Check credentials", Toast.LENGTH_LONG).show();
}
// Enable the login button for use
m_loginButton.setEnabled(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}",
"public void LoginButton() {\n\t\t\r\n\t}",
"public void onLoginButtonClicked() {\n // Start loading the process\n loginView.setProgressBarMessage(\"Logging in...\");\n loginView.showProgressBar();\n\n // Login ... | [
"0.78537434",
"0.78177553",
"0.7814914",
"0.7804252",
"0.7696836",
"0.7667992",
"0.7653028",
"0.75639427",
"0.7500713",
"0.7498822",
"0.74609745",
"0.7432396",
"0.741037",
"0.73246175",
"0.7300642",
"0.72957605",
"0.72892517",
"0.72742325",
"0.7264941",
"0.7253879",
"0.724155... | 0.70810544 | 31 |
remember even thought this is a service, the init will be called. do nothing here. | @SuppressWarnings("rawtypes")
public void doInit(CallbackHandler callbackHandler, Session session, Map options)
throws LoginException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initService() {\r\n\t}",
"public void service_INIT(){\n }",
"@ServiceInit\n public void init() {\n }",
"public InitService() {\n super(\"InitService\");\n }",
"@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}",
"private Service() {}",
"private voi... | [
"0.89152014",
"0.828832",
"0.81269014",
"0.789183",
"0.7818806",
"0.74422234",
"0.7293534",
"0.72678965",
"0.72592586",
"0.7229088",
"0.7229088",
"0.72077835",
"0.7188963",
"0.7170012",
"0.7162029",
"0.71437484",
"0.7134017",
"0.7130185",
"0.7126446",
"0.7089035",
"0.70386755... | 0.0 | -1 |
Is this message audio data? | public boolean isAudio() {
return this == AUDIO;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasMultimediaData();",
"boolean hasSendReading();",
"boolean hasDecodedAudioTimeoutMs();",
"boolean hasDecodedAudioTimeoutMs();",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasAudio() {\n\t\treturn this.recordingProperties.hasAudio... | [
"0.72087955",
"0.6877343",
"0.6844776",
"0.6844776",
"0.67210346",
"0.67201716",
"0.66729254",
"0.66521823",
"0.66351134",
"0.6530783",
"0.6500448",
"0.6489151",
"0.6474228",
"0.6473147",
"0.6415872",
"0.63993275",
"0.63841206",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63... | 0.6696938 | 6 |
Is this message video data? | public boolean isVideo() {
return (this == INTERFRAME || this == KEY_FRAME || this==DISPOSABLE_INTERFRAME);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasMultimediaData();",
"boolean hasVideo();",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffe... | [
"0.70196676",
"0.6864754",
"0.66531754",
"0.6608579",
"0.6598473",
"0.6573605",
"0.65477854",
"0.648377",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6398198",
"0.6386567",
"0.63304514",
"0.6319246",
"0.6316352",
... | 0.62690985 | 21 |
Is this message other data? | public boolean isOther() {
return this == OTHER;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMe... | [
"0.7509727",
"0.74615246",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.7035703",
"0.6961328",
"0.6889635",
"0.68617105",
"0.6853291",
"0.6814479",
"0.6801724",
"0.6785091",
"0.67805743",
"0.6756458",
"0.67... | 0.0 | -1 |
Is this an end of stream marker? | public boolean isEnd() {
return this == END_STREAM;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean endOfStream()\n {\n return false;\n }",
"@DISPID(1610940417) //= 0x60050001. The runtime will prefer the VTID if present\n @VTID(23)\n boolean atEndOfStream();",
"public boolean isEOF()\n\t{\n\t\tif (line == null || findTokenStart() == NOTOKENFOUND)\n\t\t{\n\t\t\ts.close();\n\t\t\... | [
"0.757502",
"0.7493045",
"0.7317223",
"0.7250385",
"0.7061254",
"0.70575124",
"0.6895242",
"0.68652195",
"0.6864218",
"0.6823847",
"0.67462826",
"0.67439187",
"0.67439187",
"0.67195684",
"0.671939",
"0.6668485",
"0.6635361",
"0.6587633",
"0.6542946",
"0.6512303",
"0.65117437"... | 0.74632317 | 2 |
Is this the beginning of a stream? | public boolean isHeader() {
return this == HEADER;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"boolean getStream();",
"private boolean readingHasStarted()\n {\n return readingHasStarted;\n }",
"public boolean isFirstStart() {\n return !sp.contains(UUID_SP_KEY);\n }",
"public boolean endOfStream()\... | [
"0.70805764",
"0.64329714",
"0.6355792",
"0.63300395",
"0.6243182",
"0.6228139",
"0.61371607",
"0.60777056",
"0.6075529",
"0.603668",
"0.6034223",
"0.60248137",
"0.6018535",
"0.60177237",
"0.60110176",
"0.6004547",
"0.60041463",
"0.5977275",
"0.59562993",
"0.59552395",
"0.595... | 0.0 | -1 |
Returns back a numeric id for this codec, that happens to correspond to the numeric identifier that FLV will use for this codec. | public int getId() {
return mId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIdNumber();",
"public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}",
"public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}",
"@DISPID(38)\r\n\t// = 0x26. Th... | [
"0.68448657",
"0.6641798",
"0.66157264",
"0.65803146",
"0.6577481",
"0.6569427",
"0.6553163",
"0.6543619",
"0.652456",
"0.6503201",
"0.6487808",
"0.64567614",
"0.64501053",
"0.64482224",
"0.644673",
"0.6441408",
"0.6429061",
"0.6407404",
"0.640317",
"0.640161",
"0.63782907",
... | 0.0 | -1 |
Returns back a numeric id for this codec, that happens to correspond to the numeric identifier that FLV will use for this codec. | public int getId() {
return mId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIdNumber();",
"public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}",
"public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}",
"@DISPID(38)\r\n\t// = 0x26. Th... | [
"0.68440455",
"0.66415614",
"0.6615458",
"0.65790766",
"0.65768343",
"0.65689635",
"0.65525657",
"0.65429366",
"0.652491",
"0.65028536",
"0.64882827",
"0.64562935",
"0.6450006",
"0.6447757",
"0.6445298",
"0.64409924",
"0.6429158",
"0.6405612",
"0.64028156",
"0.6400293",
"0.63... | 0.0 | -1 |
Crate a new message | public Red5Message(Type aType, IRTMPEvent aData) {
mType = aType;
mData = aData;
int dataSize = -1;
VideoCodec vidCodec=null;
AudioCodec audCodec=null;
int sampleRate = 0;
int sampleSize = 0;
boolean isStereo=false;
try {
if (mData != null) {
// Retain so we can cross a thread boundary
mData.retain();
}
if (aType.isAudio()) {
if (aData == null) {
throw new IllegalArgumentException("cannot pass null audio data");
}
if (!(aData instanceof AudioData)) {
throw new IllegalArgumentException("cannot pass non AudioData for audio");
}
IoBuffer data = ((AudioData)aData).getData();
if (data == null) {
throw new IllegalArgumentException("cannot pass empty audio data for audio");
}
data.rewind();
dataSize = data.remaining();
if (dataSize == 0) {
throw new IllegalArgumentException("cannot pass empty audio data");
}
byte firstByte = data.get(0);
byte soundFormat = (byte)((firstByte>>4) & 0x0F);
switch (soundFormat) {
case 0:
audCodec = AudioCodec.PCM;
break;
case 1:
audCodec = AudioCodec.ADPCM;
break;
case 2:
audCodec = AudioCodec.MP3;
break;
case 3:
audCodec = AudioCodec.PCM_LE;
break;
case 4:
audCodec = AudioCodec.Nellymoser_16khz;
break;
case 5:
audCodec = AudioCodec.Nellymoser_8khz;
break;
case 6:
audCodec = AudioCodec.Nellymoser;
break;
case 7:
audCodec = AudioCodec.PCM_ALAW;
break;
case 8:
audCodec = AudioCodec.PCM_MULAW;
break;
case 9:
audCodec = AudioCodec.RESERVED;
break;
case 10:
audCodec = AudioCodec.AAC;
break;
case 11:
audCodec = AudioCodec.SPEEX;
break;
case 14:
audCodec = AudioCodec.MP3_8khz;
break;
case 15:
audCodec = AudioCodec.DEVICE_SPECIFIC;
break;
default:
throw new RuntimeException("Unrecognized type of audio data: " + soundFormat);
}
byte soundRate = (byte)((firstByte>>2) & 0x03);
if (audCodec == AudioCodec.SPEEX) {
sampleRate = 16000;
}
else if (audCodec == AudioCodec.Nellymoser_8khz) {
sampleRate = 8000;
}
else if (audCodec == AudioCodec.Nellymoser_16khz) {
sampleRate = 16000;
}
else if (audCodec == AudioCodec.MP3_8khz) {
sampleRate = 8000;
}
else {
switch(soundRate) {
case 0:
sampleRate = 5512;
break;
case 1:
sampleRate = 11025;
break;
case 2:
sampleRate = 22050;
break;
case 3:
sampleRate = 44100;
break;
}
}
byte soundSize = (byte)((firstByte>>1) & 0x01);
sampleSize = soundSize > 0 ? 16 : 8;
byte stereo = (byte)((firstByte) & 0x01);
isStereo = stereo > 0;
}
else if (aType.isVideo()) {
if (aData == null) {
throw new IllegalArgumentException("cannot pass null video data");
}
if (!(aData instanceof VideoData)) {
throw new IllegalArgumentException("cannot pass non VideoData for video");
}
IoBuffer data = ((VideoData)aData).getData();
if (data == null) {
throw new IllegalArgumentException("cannot pass empty video data for video");
}
data.rewind();
dataSize = data.remaining();
byte firstByte = data.get(0);
byte codecId = (byte)((firstByte)& 0x0F);
switch(codecId) {
case 1:
vidCodec = VideoCodec.JPEG;
break;
case 2:
vidCodec = VideoCodec.H263;
break;
case 3:
vidCodec = VideoCodec.Screen;
break;
case 4:
vidCodec = VideoCodec.VP6;
break;
case 5:
vidCodec = VideoCodec.VP6a;
break;
case 6:
vidCodec = VideoCodec.Screen2;
break;
case 7:
vidCodec = VideoCodec.AVC;
break;
default:
throw new RuntimeException("Unrecognized video codec: " + codecId);
}
}
mVideoCodec = vidCodec;
mAudioCodec = audCodec;
mSampleRate = sampleRate;
mSampleSize = sampleSize;
mStereo = isStereo;
log.debug("Created red5 message; type: {}; data: {}; data size: {}; video codec: {}; audio codec: {}; "
+"sample rate: {}; sample size: {}; stereo: {}",
new Object[]{
mType,
mData,
dataSize,
mVideoCodec,
mAudioCodec,
mSampleRate,
mSampleSize,
mStereo
}
);
}
catch (RuntimeException ex) {
log.error("Got exception: {}", ex);
throw ex;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage... | [
"0.7078753",
"0.68768436",
"0.6854656",
"0.6773202",
"0.6766036",
"0.66889036",
"0.6671148",
"0.6637399",
"0.6629913",
"0.66124105",
"0.6575711",
"0.6524541",
"0.65089154",
"0.6486051",
"0.6467056",
"0.6457068",
"0.64563626",
"0.64548147",
"0.6448845",
"0.6446021",
"0.6391806... | 0.0 | -1 |
Returns the type of this red5 message | public Type getType() {
return mType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result =... | [
"0.7698541",
"0.7683481",
"0.76538414",
"0.7639415",
"0.76352626",
"0.76323175",
"0.76323175",
"0.76237833",
"0.7552931",
"0.7526781",
"0.7499197",
"0.7452993",
"0.7412018",
"0.7403205",
"0.73431224",
"0.7310951",
"0.73094964",
"0.73020715",
"0.7256558",
"0.72548646",
"0.7210... | 0.0 | -1 |
Get the audio sample rate in hertz | public int getAudioSampleRate() {
return mSampleRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Rational getAudioSampleRate();",
"@java.lang.Override\n public int getSampleRateHertz() {\n return sampleRateHertz_;\n }",
"@java.lang.Override\n public int getSampleRateHertz() {\n return sampleRateHertz_;\n }",
"public float getSampleRate();",
"public int getSampleRate() {\n ... | [
"0.80524457",
"0.7938407",
"0.7804729",
"0.778186",
"0.74449956",
"0.7353209",
"0.72574615",
"0.71965593",
"0.70852214",
"0.7062535",
"0.6971499",
"0.6957952",
"0.695273",
"0.6893425",
"0.68644947",
"0.6840376",
"0.6689246",
"0.6627866",
"0.6556558",
"0.6455756",
"0.6411016",... | 0.714737 | 8 |
Get the audio sample size. | public int getAudioSampleSize() {
return mSampleSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSampleSize() {\n return sampleSize;\n }",
"public long getSampleCount() {\r\n\t\tif (audioFile != null) {\r\n\t\t\treturn audioFile.getEffectiveDurationSamples();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"int getSampleSize();",
"public int getSampleSize(){\n\t\treturn sampleSize;\n\t}",
"... | [
"0.76030284",
"0.75803703",
"0.75713485",
"0.7541602",
"0.7314392",
"0.72587305",
"0.72096056",
"0.7148841",
"0.71044654",
"0.7085747",
"0.70190156",
"0.69505465",
"0.68396914",
"0.6741112",
"0.673192",
"0.65913236",
"0.65806115",
"0.64635813",
"0.6405206",
"0.6365599",
"0.63... | 0.8780764 | 0 |
Find out if the audio stream is present. | public boolean isAudioStereo() {
return mStereo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasAudio() {\n\t\treturn this.recordingProperties.hasAudio();\n\t}",
"public boolean isAudioPlaying() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {\n\t\t\treturn mPlayer.isPlaying();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"p... | [
"0.71586907",
"0.6479558",
"0.64533573",
"0.6445227",
"0.63591427",
"0.6329908",
"0.63067555",
"0.6303502",
"0.6223547",
"0.6221517",
"0.6221046",
"0.62097263",
"0.61611414",
"0.61238027",
"0.6119786",
"0.6077582",
"0.6059635",
"0.6056561",
"0.6002174",
"0.5982568",
"0.595632... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_LOGIN);
} | {
"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 v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_TOOLS);
} | {
"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 v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_SETTING);
} | {
"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 v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_HELP);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_ABOUT);
} | {
"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 v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_EXIT);
} | {
"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 |
Description: Call the method getCustomerDetails from CustomerService Modified by: Simon Escobar Benitez | public CustomerTO getCustomerDetails(CustomerTO customerTo) throws Exception
{
return new CustomerService().getCustomerDetails(customerTo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;",
"public String getCustomer(String custId);",
"public Customer getCustomerDetails() throws Exception {\n\t\treturn customersDBDAO.getOneCustomer(customerId);\n\t}",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<L... | [
"0.7892349",
"0.72243094",
"0.7184706",
"0.70809937",
"0.6992449",
"0.6882933",
"0.68497276",
"0.6842365",
"0.68081737",
"0.67829776",
"0.6757765",
"0.67506975",
"0.6747463",
"0.6746218",
"0.67125154",
"0.6710245",
"0.66850376",
"0.66590536",
"0.6653769",
"0.66412956",
"0.663... | 0.7647631 | 1 |
TODO Autogenerated method stub | @Override
protected void onLoginSuccess() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
UsersInfo ui = new UsersInfo(); model.addAttribute("user", ui); | @RequestMapping(method = RequestMethod.GET)
public String resiterMethod(@ModelAttribute UsersInfo info, ModelMap model) {
return "Register";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/displayUserForm\", method = RequestMethod.GET)\n public String displayUserForm(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"admin/addUser\";\n }",
"@RequestMapping(value = { \"/new\" }, method = RequestMethod.GET)\... | [
"0.7350018",
"0.7062552",
"0.69479144",
"0.69314677",
"0.69064015",
"0.68890536",
"0.6873567",
"0.68076944",
"0.6745031",
"0.6708383",
"0.6705567",
"0.6689754",
"0.6647017",
"0.66115695",
"0.6603545",
"0.6598067",
"0.65720904",
"0.64884686",
"0.6461021",
"0.6451765",
"0.64430... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public HotelPromotionVO toHotelPromotionVO() {
return new HotelPromotionVO(hotelID, "特定时间促销策略", start, end, null, -1, discount);
} | {
"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 |
Add a row to this TableView's row collection. The row is not yet added to the UI component. You to call layout() for the row to be physically added | public void addRow(TableViewRow row) {
this.rows.add(row);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}",
"public int addRow() {\n\t\t// Create a new row with nothing in it\n\t\tList row = new ArrayList();\n\t\treturn(addRow(row... | [
"0.7727202",
"0.7309577",
"0.7135193",
"0.7004519",
"0.697451",
"0.6970073",
"0.696764",
"0.677",
"0.6688811",
"0.66552764",
"0.65111846",
"0.6479",
"0.64344126",
"0.6378867",
"0.6349691",
"0.6349304",
"0.626424",
"0.6243588",
"0.6140592",
"0.6128744",
"0.6055728",
"0.60005... | 0.80209816 | 0 |
One of Titanium.UI.Android.OVER_SCROLL_ALWAYS, Titanium.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS, or Titanium.UI.Android.OVER_SCROLL_NEVER. Default: Titanium.UI.Android.OVER_SCROLL_ALWAYS | public native int getOverScrollMode() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.overScrollMode;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void setOverScrollMode(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.overScrollMode = value;\n }-*/;",
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"@Override \r\n protected boolean overScrollBy(int deltaX, i... | [
"0.6592114",
"0.6436934",
"0.61532843",
"0.60759044",
"0.6073717",
"0.6052103",
"0.5860891",
"0.5836",
"0.58104104",
"0.57912916",
"0.5790714",
"0.5783181",
"0.57405376",
"0.5737534",
"0.57342",
"0.57342",
"0.57342",
"0.57342",
"0.5732117",
"0.5724599",
"0.5711798",
"0.5700... | 0.6176545 | 2 |
One of Titanium.UI.Android.OVER_SCROLL_ALWAYS, Titanium.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS, or Titanium.UI.Android.OVER_SCROLL_NEVER. Default: Titanium.UI.Android.OVER_SCROLL_ALWAYS | public native void setOverScrollMode(double value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.overScrollMode = value;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"@Override \r\n protected boolean overScrollBy(int deltaX, int deltaY, int... | [
"0.6436398",
"0.61761284",
"0.61522704",
"0.60747236",
"0.6072514",
"0.60519",
"0.58597714",
"0.5835561",
"0.58091974",
"0.57903266",
"0.5790115",
"0.5782933",
"0.5739951",
"0.5738077",
"0.57331765",
"0.57331765",
"0.57331765",
"0.57331765",
"0.573176",
"0.5724316",
"0.571122... | 0.6592095 | 0 |
Style of the scrollbar, specified using one of the constants from Titanium.UI.iPhone.ScrollIndicatorStyle. Default: Titanium.UI.iPhone.ScrollIndicatorStyle.DEFAULT | public native int getScrollIndocatorStyle() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.scrollIndicatorStyle;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void setScrollIndocatorStyle(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.scrollIndicatorStyle = value;\n }-*/;",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVis... | [
"0.72330356",
"0.60959363",
"0.56876004",
"0.56791914",
"0.558031",
"0.5477686",
"0.5421987",
"0.5414987",
"0.54145384",
"0.53649354",
"0.53367114",
"0.53237313",
"0.531866",
"0.529352",
"0.5282688",
"0.52595055",
"0.5240132",
"0.5213513",
"0.5180537",
"0.5075054",
"0.5056793... | 0.6894016 | 1 |
Style of the scrollbar, specified using one of the constants from Titanium.UI.iPhone.ScrollIndicatorStyle. Default: Titanium.UI.iPhone.ScrollIndicatorStyle.DEFAULT | public native void setScrollIndocatorStyle(double value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.scrollIndicatorStyle = value;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native int getScrollIndocatorStyle() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.scrollIndicatorStyle;\n }-*/;",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScroll... | [
"0.68941504",
"0.60963523",
"0.5687767",
"0.5679639",
"0.5581329",
"0.5479532",
"0.54224706",
"0.54158014",
"0.54156995",
"0.536603",
"0.53374267",
"0.5324891",
"0.5320158",
"0.5293643",
"0.5283892",
"0.52608",
"0.5241784",
"0.52132875",
"0.5181762",
"0.5075489",
"0.5057737",... | 0.72334635 | 0 |
Determines whether the SearchBar or SearchView appears as part of the TableView. Set to false if the search view will be displayed in the action bar. Default: true | public native boolean searchAsChild() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.searchAsChild;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSearchTermView();",
"@Override\n public boolean onSearchRequested() {\n return !isSearchResultView && super.onSearchRequested();\n }",
"@UnsupportedAppUsage\n public boolean isVisible() {\n return mSearchDialog == null? false : mSearchDialog.isShowing();\n }",
"@Override\... | [
"0.6400807",
"0.6364153",
"0.61434543",
"0.60093385",
"0.6006697",
"0.5992868",
"0.58206266",
"0.57640797",
"0.5629552",
"0.56098425",
"0.5584559",
"0.55603206",
"0.5519551",
"0.5505976",
"0.54857713",
"0.5476976",
"0.5465224",
"0.5464336",
"0.54586154",
"0.54436475",
"0.5443... | 0.0 | -1 |
Determines whether the SearchBar or SearchView appears as part of the TableView. Set to false if the search view will be displayed in the action bar. Default: true | public native void setSearchAsChild(boolean value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.searchAsChild = value;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSearchTermView();",
"@Override\n public boolean onSearchRequested() {\n return !isSearchResultView && super.onSearchRequested();\n }",
"@UnsupportedAppUsage\n public boolean isVisible() {\n return mSearchDialog == null? false : mSearchDialog.isShowing();\n }",
"@Override\... | [
"0.64008147",
"0.636376",
"0.61439145",
"0.60080945",
"0.60071886",
"0.5991784",
"0.5820947",
"0.57646304",
"0.56281847",
"0.5609572",
"0.5584415",
"0.5559674",
"0.5519955",
"0.5506996",
"0.54851675",
"0.54763407",
"0.5466236",
"0.54650664",
"0.5458325",
"0.5443995",
"0.54429... | 0.0 | -1 |
Number of sections in this table view. | public native int getSectionCount() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.sectionCount;
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Kroll.getProperty\n\tpublic int getSectionCount()\n\t{\n\t\treturn getSections().length;\n\t}",
"public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}",
"@Override\n\tpublic int getGrou... | [
"0.75591993",
"0.74579644",
"0.7017626",
"0.69510394",
"0.6560977",
"0.65422475",
"0.6520446",
"0.6498923",
"0.6498923",
"0.64908105",
"0.64768714",
"0.6431918",
"0.6407966",
"0.6402006",
"0.63843346",
"0.6381299",
"0.63613856",
"0.63470024",
"0.63467324",
"0.6340252",
"0.632... | 0.6565135 | 4 |
Sections of this table. In Release 3.0, this property is readonly on Android. Due to a known issue, TIMOB12616, the sections property should not be used for adding sections on iOS. | public native List<TableViewSection> getSections() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
var obj = jso.sections;
return @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromJsArray(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public final @Nonnull List<Section> getSections() {\r\n return ImmutableList.copyOf(sections);\r\n }",
"@Override\n\tpublic Object[] getSections() {\n\t\treturn sections;\n\t}",
"@Kroll.getProperty\n\tpublic TableViewSectionProxy[] getSections()\n\t{\n\t\treturn this.sections.toArray(new Tab... | [
"0.70985645",
"0.7007529",
"0.6944946",
"0.66604125",
"0.66546774",
"0.6453281",
"0.63870066",
"0.6343112",
"0.62512094",
"0.6200355",
"0.61662054",
"0.60857433",
"0.6065376",
"0.60175544",
"0.59316295",
"0.5882851",
"0.58776987",
"0.58606744",
"0.58606744",
"0.5853654",
"0.5... | 0.7376711 | 0 |
Sections of this table. In Release 3.0, this property is readonly on Android. Due to a known issue, TIMOB12616, the sections property should not be used for adding sections on iOS. | public native void setSections(List<TableViewSection> values) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.sections = @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(values);
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native List<TableViewSection> getSections() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tvar obj = jso.sections;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromJsArray(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;",
"@Overri... | [
"0.7376779",
"0.7099775",
"0.70088893",
"0.69458145",
"0.66622037",
"0.6656656",
"0.6455186",
"0.63878953",
"0.6345025",
"0.6250979",
"0.6201818",
"0.6166637",
"0.60869384",
"0.6067039",
"0.59324706",
"0.5884162",
"0.5879567",
"0.5862651",
"0.5862651",
"0.58548117",
"0.584953... | 0.60181224 | 14 |
Append a row to the table, optionally with animation | public native void appendRow(List<TableViewRow> rows) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendRow(@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows));
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t... | [
"0.69417834",
"0.6749156",
"0.66258013",
"0.6578557",
"0.6471899",
"0.64325374",
"0.6339085",
"0.6270827",
"0.6253873",
"0.6225062",
"0.6209418",
"0.613314",
"0.6116576",
"0.61038494",
"0.6073821",
"0.6040296",
"0.59489393",
"0.58142287",
"0.58062476",
"0.57949424",
"0.577780... | 0.5589965 | 35 |
Append a row to the table, optionally with animation | public native void appendRow(List<TableViewRow> rows, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendRow(
@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t... | [
"0.69417834",
"0.66258013",
"0.6578557",
"0.6471899",
"0.64325374",
"0.6339085",
"0.6270827",
"0.6253873",
"0.6225062",
"0.6209418",
"0.613314",
"0.6116576",
"0.61038494",
"0.6073821",
"0.6040296",
"0.59489393",
"0.58142287",
"0.58062476",
"0.57949424",
"0.5777803",
"0.576382... | 0.6749156 | 1 |
Append a section to the table, optionally with animation | public native void appendSection(List<TableViewSection> sections) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendSection(@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections));
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void appendSection(List<TableViewSection> sections, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections),... | [
"0.6741472",
"0.6514724",
"0.5976536",
"0.5808446",
"0.56815976",
"0.55500543",
"0.55051297",
"0.53987306",
"0.524778",
"0.5232811",
"0.51703006",
"0.50923187",
"0.5057869",
"0.4990861",
"0.4974736",
"0.49715823",
"0.49671146",
"0.49655917",
"0.49305052",
"0.49036452",
"0.489... | 0.5611588 | 5 |
Append a section to the table, optionally with animation | public native void appendSection(List<TableViewSection> sections, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendSection(
@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Kroll.method\n\tpublic void appendSection(Object sectionObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (sectionObj instanceof Object[]) {\n\n\t\t\t// Append TableViewSection array.\n\t\t\tfor (final Object o : (Object[]) sectionObj) {\n\t\t\t\tfinal TableViewSectionProxy section = process... | [
"0.65154666",
"0.5975523",
"0.58083785",
"0.5681411",
"0.5611002",
"0.5549372",
"0.550457",
"0.53988",
"0.5247122",
"0.5232515",
"0.51702327",
"0.5091142",
"0.5056898",
"0.4989562",
"0.4974714",
"0.49708357",
"0.4966889",
"0.49651083",
"0.49291533",
"0.4902888",
"0.48966548",... | 0.6740743 | 0 |
Delete an existing row, optionally with animation | public native void deleteRow(int row, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.deleteRow(
row,
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRo... | [
"0.73066354",
"0.69291556",
"0.69291556",
"0.6883492",
"0.67462885",
"0.6741238",
"0.6661538",
"0.6605692",
"0.65403765",
"0.65343755",
"0.6527556",
"0.64918983",
"0.6430083",
"0.63414705",
"0.633538",
"0.63066244",
"0.6266151",
"0.62397885",
"0.62373847",
"0.61557376",
"0.61... | 0.7646308 | 0 |
Delete an existing row, optionally with animation | public native void deleteRow(int row) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.deleteRow(row);
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void deleteRow(int row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.deleteRow(\n\t\t\t\t\t\trow,\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpub... | [
"0.7646308",
"0.73066354",
"0.69291556",
"0.69291556",
"0.6883492",
"0.6741238",
"0.6661538",
"0.6605692",
"0.65403765",
"0.65343755",
"0.6527556",
"0.64918983",
"0.6430083",
"0.63414705",
"0.633538",
"0.63066244",
"0.6266151",
"0.62397885",
"0.62373847",
"0.61557376",
"0.615... | 0.67462885 | 5 |
Programmatically deselect a row | public native void deselectRow(int row) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.deselectRow(row);
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deselect();",
"@Override\n\tpublic void unselect() {\n\t}",
"public void deselect() {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 3);\n\t\t\tcb.setValue(false);\n\t\t}\n\t}",
"public native void deselectCell(String cell) /*-{\r\n... | [
"0.761847",
"0.7479642",
"0.7462697",
"0.7135401",
"0.694633",
"0.69184077",
"0.6912433",
"0.6886319",
"0.68528545",
"0.6845647",
"0.68375397",
"0.67366004",
"0.66322774",
"0.6603273",
"0.65740347",
"0.65305746",
"0.65267",
"0.6524816",
"0.6459828",
"0.64363027",
"0.64249563"... | 0.79538244 | 0 |
Insert a row before another row, optionally with animation | public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.insertRowAfter(
index,
row.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowBefore(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t... | [
"0.73440015",
"0.692187",
"0.6269379",
"0.60134536",
"0.58607626",
"0.58000207",
"0.5695581",
"0.56600726",
"0.5643905",
"0.560215",
"0.5556882",
"0.5546457",
"0.5515081",
"0.5512193",
"0.5473196",
"0.5425798",
"0.5406225",
"0.5360271",
"0.53539276",
"0.53538376",
"0.53356093... | 0.6551938 | 2 |
Insert a row after another row, optionally with animation | public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.insertRowBefore(
index,
row.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t... | [
"0.7147486",
"0.6675446",
"0.6167619",
"0.581313",
"0.57099575",
"0.56395185",
"0.55946237",
"0.55322033",
"0.5530597",
"0.54999906",
"0.5499793",
"0.5428751",
"0.5414961",
"0.54007167",
"0.5360196",
"0.5279908",
"0.5265713",
"0.5254661",
"0.52346486",
"0.52248114",
"0.521613... | 0.6108551 | 3 |
Scroll to a specific row index and ensure that that row is on screen | public native void scrollToIndex(int index, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.scrollToIndex(
index,
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Point scrollToRow(JTree tree, int row)\n\t{\n\t\tPoint p = scrollToRow(tree, row, new JTreeLocation()).ii;\n\t\twaitForIdle();\n\t\treturn p;\n\t}",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFin... | [
"0.73125035",
"0.69883084",
"0.64903754",
"0.6478993",
"0.64485204",
"0.6433946",
"0.6373719",
"0.62979406",
"0.6240981",
"0.6215499",
"0.61484087",
"0.6147012",
"0.610786",
"0.5993445",
"0.59766895",
"0.59085286",
"0.58853376",
"0.5804596",
"0.5793429",
"0.5773142",
"0.57154... | 0.0 | -1 |
Scroll to a specific row index and ensure that that row is on screen | public native void scrollToIndex(int index) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.scrollToIndex(index);
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Point scrollToRow(JTree tree, int row)\n\t{\n\t\tPoint p = scrollToRow(tree, row, new JTreeLocation()).ii;\n\t\twaitForIdle();\n\t\treturn p;\n\t}",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFin... | [
"0.73125035",
"0.69883084",
"0.64903754",
"0.6478993",
"0.64485204",
"0.6433946",
"0.6373719",
"0.62979406",
"0.6240981",
"0.6215499",
"0.61484087",
"0.6147012",
"0.610786",
"0.5993445",
"0.59766895",
"0.59085286",
"0.58853376",
"0.5804596",
"0.5793429",
"0.5773142",
"0.57154... | 0.5545582 | 51 |
Scroll the table to a specific top position where 0 is the topmost y position in the table view | public native void scrollToTop(double top, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.scrollToTop(
top,
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"public void syncTableTop() {\n\t\tsetVerticalScrollPosition(rowHeader.getTop());\n\t}",
"void scroll(int scrollTop);",
"void setScrollTop(int scrollTop);",
"public void selectAndScrollTo(URN urn) {\n if(table == null) {\n ... | [
"0.7437644",
"0.7361914",
"0.66083014",
"0.65853804",
"0.6237566",
"0.6228134",
"0.5980053",
"0.59542435",
"0.59486187",
"0.5928532",
"0.58925766",
"0.58044064",
"0.5748489",
"0.5671451",
"0.567114",
"0.5655113",
"0.55658484",
"0.55142343",
"0.54849595",
"0.5478502",
"0.54662... | 0.70309854 | 2 |
Programmatically select a row | public native void selectRow(int row) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.selectRow(row);
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay... | [
"0.73245454",
"0.71396035",
"0.7129284",
"0.7098055",
"0.7079501",
"0.6979927",
"0.68824005",
"0.68678397",
"0.6822098",
"0.6744708",
"0.6680245",
"0.6601359",
"0.654547",
"0.65180475",
"0.64909077",
"0.64781606",
"0.6471274",
"0.6469061",
"0.64662296",
"0.6439329",
"0.638760... | 0.7828633 | 0 |
Sets this tableview's content insets. A table view is essentially a scroll view that contains a set of static row views that represents the content. Thus, the setContentInsets method facilitates a margin, or inset, distance between the content and the container scroll view. Typically used with the headerPullView property. | public native void setContentInsets(TableViewEdgeInsets value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.setContentInsets(value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void setContentInsets(TableViewEdgeInsets value, Animation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.setContentInsets(\n\t\t\t\t\t\tvalue.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.... | [
"0.7241777",
"0.69630873",
"0.65624255",
"0.57023257",
"0.5641003",
"0.52710485",
"0.51617926",
"0.50991553",
"0.50948983",
"0.5080075",
"0.5071037",
"0.5055277",
"0.5032835",
"0.50236934",
"0.48530716",
"0.4795786",
"0.47743955",
"0.4744278",
"0.47238728",
"0.46911916",
"0.4... | 0.7366183 | 0 |
Sets this tableview's content insets. A table view is essentially a scroll view that contains a set of static row views that represents the content. Thus, the setContentInsets method facilitates a margin, or inset, distance between the content and the container scroll view. Typically used with the headerPullView property. | public native void setContentInsets(TableViewEdgeInsets value, boolean animate) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.setContentInsets(
value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),
{
animated : animate
});
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void setContentInsets(TableViewEdgeInsets value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.setContentInsets(value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public native void setContentInsets(TableViewEdgeInset... | [
"0.736842",
"0.72435945",
"0.6563402",
"0.57028306",
"0.56418645",
"0.5271829",
"0.51636297",
"0.5100106",
"0.509638",
"0.50811875",
"0.5073096",
"0.5056547",
"0.50334775",
"0.50243074",
"0.48541045",
"0.47992578",
"0.47729024",
"0.47436544",
"0.47238216",
"0.46917176",
"0.46... | 0.69646263 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.