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 |
|---|---|---|---|---|---|---|
Instantiates a new inflection rule with the given name. | public InflectionRule(String ruleName) {
this();
setName(ruleName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InflectionRule(String ruleName, PatternActionRule defRule) {\n\t\tthis(ruleName);\n\t\tsetDefaultRule(defRule);\n\t}",
"public SingleRuleBuilder newRule(String name) {\n return new SingleRuleBuilder(name);\n }",
"public InflectionRule() {\n\t\tthis.patternActionRules = new ArrayList<PatternActio... | [
"0.6479892",
"0.5726584",
"0.5719241",
"0.5707696",
"0.5669891",
"0.5538595",
"0.5496099",
"0.5493396",
"0.53449696",
"0.5234366",
"0.5234366",
"0.5234366",
"0.5074436",
"0.5060135",
"0.5059415",
"0.5042934",
"0.50350994",
"0.4975618",
"0.4967806",
"0.49456745",
"0.4936896",
... | 0.75110704 | 0 |
Instantiates a new inflection rule with the given name and a boolean value indicating whether this rule should apply stem umlaut. | public InflectionRule(String ruleName, boolean applyUmlaut) {
this();
setName(ruleName);
setApplyUmlaut(applyUmlaut);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InflectionRule(String ruleName, boolean applyUmlaut,\n\t\t\tPatternActionRule defRule) {\n\t\tthis(ruleName, defRule);\n\t\tsetApplyUmlaut(applyUmlaut);\n\t}",
"public InflectionRule(String ruleName, boolean applyUmlaut,\n\t\t\tPatternActionRule defRule, PatternActionRule... ruleSet) {\n\t\tthis(ruleName,... | [
"0.6328105",
"0.57902306",
"0.57151574",
"0.53428715",
"0.51218385",
"0.5066499",
"0.4765127",
"0.46350712",
"0.45474613",
"0.45300156",
"0.45286027",
"0.4468703",
"0.44366384",
"0.44033712",
"0.44018504",
"0.4385833",
"0.43828022",
"0.4372839",
"0.43566838",
"0.4351327",
"0.... | 0.6940361 | 0 |
Instantiates a new inflection rule with the given name, and a default PatternActionRule. | public InflectionRule(String ruleName, PatternActionRule defRule) {
this(ruleName);
setDefaultRule(defRule);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InflectionRule() {\n\t\tthis.patternActionRules = new ArrayList<PatternActionRule>();\n\t\tthis.umlaut = false;\n\t}",
"public InflectionRule(String ruleName) {\n\t\tthis();\n\t\tsetName(ruleName);\n\t}",
"public InflectionRule(String ruleName, boolean applyUmlaut,\n\t\t\tPatternActionRule defRule) {\n\... | [
"0.68913573",
"0.6476668",
"0.5976306",
"0.5794394",
"0.53270745",
"0.5172883",
"0.51092106",
"0.51092106",
"0.51092106",
"0.5103463",
"0.50622064",
"0.49678457",
"0.49260175",
"0.48456594",
"0.48324797",
"0.48131424",
"0.4780458",
"0.47738358",
"0.47380877",
"0.473792",
"0.4... | 0.7398747 | 0 |
Instantiates a new inflection rule with the given name, default rule, and a set of PatternActionRules that make up the exception list. | public InflectionRule(String ruleName, PatternActionRule defRule,
PatternActionRule... ruleSet) {
this(ruleName, defRule);
setExceptionRules(ruleSet);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InflectionRule(String ruleName, PatternActionRule defRule) {\n\t\tthis(ruleName);\n\t\tsetDefaultRule(defRule);\n\t}",
"public InflectionRule() {\n\t\tthis.patternActionRules = new ArrayList<PatternActionRule>();\n\t\tthis.umlaut = false;\n\t}",
"public InflectionRule(String ruleName) {\n\t\tthis();\n\t... | [
"0.63741875",
"0.636866",
"0.59417796",
"0.54586893",
"0.51890475",
"0.5090803",
"0.50282335",
"0.50187093",
"0.50187093",
"0.50187093",
"0.4953882",
"0.49173555",
"0.48281187",
"0.48172078",
"0.48078513",
"0.48068574",
"0.47888193",
"0.47687313",
"0.47417435",
"0.47381935",
... | 0.64888173 | 0 |
Instantiates a new inflection rule with the given name, a boolean value indicating whether this rule should apply stem umlaut, and a default rule. | public InflectionRule(String ruleName, boolean applyUmlaut,
PatternActionRule defRule) {
this(ruleName, defRule);
setApplyUmlaut(applyUmlaut);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InflectionRule(String ruleName, boolean applyUmlaut) {\n\t\tthis();\n\t\tsetName(ruleName);\n\t\tsetApplyUmlaut(applyUmlaut);\n\t}",
"public InflectionRule(String ruleName, boolean applyUmlaut,\n\t\t\tPatternActionRule defRule, PatternActionRule... ruleSet) {\n\t\tthis(ruleName, defRule);\n\t\tsetExceptio... | [
"0.7164315",
"0.6295385",
"0.62119037",
"0.6052056",
"0.54880565",
"0.5149753",
"0.5051061",
"0.48118597",
"0.46609345",
"0.45167977",
"0.44444588",
"0.4434571",
"0.44213146",
"0.44157055",
"0.44086418",
"0.44086418",
"0.44086418",
"0.43539292",
"0.433482",
"0.43112335",
"0.4... | 0.68663824 | 1 |
Instantiates a new inflection rule with the given name, a boolean value indicating whether this rule should apply stem umlaut, default rule, and a set of PatternActionRules that make up the exception list. | public InflectionRule(String ruleName, boolean applyUmlaut,
PatternActionRule defRule, PatternActionRule... ruleSet) {
this(ruleName, defRule);
setExceptionRules(ruleSet);
setApplyUmlaut(applyUmlaut);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InflectionRule() {\n\t\tthis.patternActionRules = new ArrayList<PatternActionRule>();\n\t\tthis.umlaut = false;\n\t}",
"public InflectionRule(String ruleName, boolean applyUmlaut,\n\t\t\tPatternActionRule defRule) {\n\t\tthis(ruleName, defRule);\n\t\tsetApplyUmlaut(applyUmlaut);\n\t}",
"public Inflectio... | [
"0.6520883",
"0.6478397",
"0.6462844",
"0.63689154",
"0.63270164",
"0.6205554",
"0.48216978",
"0.48216978",
"0.48216978",
"0.4802934",
"0.47894043",
"0.47707874",
"0.47148395",
"0.46662873",
"0.4586682",
"0.4534958",
"0.45016965",
"0.4484887",
"0.4412861",
"0.4399314",
"0.437... | 0.6472304 | 2 |
Check whether an inflection rule applies stem umlaut. | public boolean appliesUmlaut() {
return this.umlaut;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public boolean isStem ()\r\n {\r\n return getShape() == Shape.STEM;\r\n }",
"public InflectionRule(String ruleName, boolean applyUmlaut) {\n\t\tthis();\n\t\tsetName(ruleName);\n\t\tsetApplyUmlaut(applyUmlaut);\n\t}",
"public boolean isStem() {\n return this.type == Type.STE... | [
"0.5838809",
"0.5831151",
"0.57957965",
"0.57534516",
"0.5507555",
"0.5409492",
"0.53403634",
"0.529766",
"0.52818114",
"0.5249421",
"0.5221976",
"0.5205901",
"0.51355284",
"0.5108321",
"0.5070713",
"0.5061159",
"0.5059265",
"0.50565165",
"0.5047478",
"0.5041489",
"0.5009245"... | 0.5952463 | 0 |
Adds an arbitrary number of exceptionhandling PatternActionRule. | public void addExceptionRules(PatternActionRule... rules) {
addExceptionRules(Arrays.asList(rules));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addExceptionRules(Collection<PatternActionRule> rules) {\n\t\tthis.patternActionRules.addAll(rules);\n\t\tCollections.sort(this.patternActionRules);\n\t}",
"public void setExceptionRules(PatternActionRule... actionRules) {\n\t\tthis.patternActionRules.clear();\n\t\taddExceptionRules(actionRules);\n\t... | [
"0.75447357",
"0.72920066",
"0.68001527",
"0.58816606",
"0.5495575",
"0.5463466",
"0.5420513",
"0.51887316",
"0.5170896",
"0.51203036",
"0.5084878",
"0.49143383",
"0.4912038",
"0.4895046",
"0.482704",
"0.47397104",
"0.46006972",
"0.45437497",
"0.4523913",
"0.45199823",
"0.448... | 0.78751004 | 0 |
Adds the exceptionhandling PatternActionRule in the specified collection. | public void addExceptionRules(Collection<PatternActionRule> rules) {
this.patternActionRules.addAll(rules);
Collections.sort(this.patternActionRules);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addExceptionRules(PatternActionRule... rules) {\n\t\taddExceptionRules(Arrays.asList(rules));\n\t}",
"public void setExceptionRules(Collection<PatternActionRule> actionRules) {\n\t\tthis.patternActionRules.clear();\n\t\taddExceptionRules(actionRules);\n\t}",
"public void setExceptionRules(PatternAc... | [
"0.6863983",
"0.6474128",
"0.6398316",
"0.5922537",
"0.5780969",
"0.5411278",
"0.49612182",
"0.49507985",
"0.48868394",
"0.4800719",
"0.4793166",
"0.47868246",
"0.47793138",
"0.47316045",
"0.46981838",
"0.46203497",
"0.45963812",
"0.458406",
"0.4562364",
"0.45550725",
"0.4553... | 0.729703 | 0 |
Set the exceptionhandling rules. | public void setExceptionRules(PatternActionRule... actionRules) {
this.patternActionRules.clear();
addExceptionRules(actionRules);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setExceptionHandlers(Catch[] exceptions);",
"public void addExceptionRules(PatternActionRule... rules) {\n\t\taddExceptionRules(Arrays.asList(rules));\n\t}",
"public void setExceptionRules(Collection<PatternActionRule> actionRules) {\n\t\tthis.patternActionRules.clear();\n\t\taddExceptionRules(acti... | [
"0.6974118",
"0.63153386",
"0.62546104",
"0.6035945",
"0.5613442",
"0.53892624",
"0.5335208",
"0.5332489",
"0.5207346",
"0.5198329",
"0.51211935",
"0.51091796",
"0.50406265",
"0.50375026",
"0.50240463",
"0.49591452",
"0.49582314",
"0.49397308",
"0.49307105",
"0.48079315",
"0.... | 0.62101513 | 3 |
Set the exceptionhandling rules to those in the specified collection. | public void setExceptionRules(Collection<PatternActionRule> actionRules) {
this.patternActionRules.clear();
addExceptionRules(actionRules);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setExceptionHandlers(Catch[] exceptions);",
"public void addExceptionRules(Collection<PatternActionRule> rules) {\n\t\tthis.patternActionRules.addAll(rules);\n\t\tCollections.sort(this.patternActionRules);\n\t}",
"public void setExceptionRules(PatternActionRule... actionRules) {\n\t\tthis.patternAc... | [
"0.6535678",
"0.6014286",
"0.55960256",
"0.55268407",
"0.54373455",
"0.5101412",
"0.49524042",
"0.48288682",
"0.48119426",
"0.4801835",
"0.47482905",
"0.4680757",
"0.46659133",
"0.46642292",
"0.4649825",
"0.46467957",
"0.46312752",
"0.4616956",
"0.45762578",
"0.4574471",
"0.4... | 0.6060122 | 1 |
Gets the number of PatternActionRules in the exception list. | public int getNumberOfRules() {
return this.patternActionRules.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getRulesCount();",
"int getResourcePatternsCount();",
"@Override\r\n public final int getUselessCount() {\r\n int i;\r\n\r\n i = 0;\r\n for (Rule r : this.m_rules) {\r\n if (r.isUseless())\r\n i++;\r\n }\r\n\r\n return i;\r\n }",
"int getExceptionsCount();",
"public int siz... | [
"0.67680234",
"0.6433718",
"0.622761",
"0.62274635",
"0.62070155",
"0.6175882",
"0.6175882",
"0.6074706",
"0.6065472",
"0.6061127",
"0.6048775",
"0.5956172",
"0.5920408",
"0.59132427",
"0.590726",
"0.58685637",
"0.5867692",
"0.5762675",
"0.57249665",
"0.569166",
"0.5618687",
... | 0.7991715 | 0 |
Set the default rule to handle all cases not marked as exceptions. | public void setDefaultRule(PatternActionRule defRule) {
this.defaultRule = defRule;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDefaultRuleSet(String ruleSetName)\n/* */ {\n/* 1326 */ if (ruleSetName == null) {\n/* 1327 */ if (this.publicRuleSetNames.length > 0) {\n/* 1328 */ this.defaultRuleSet = findRuleSet(this.publicRuleSetNames[0]);\n/* */ } else {\n/* 1330 */ this.defaultRule... | [
"0.6095964",
"0.57424116",
"0.5730868",
"0.5656098",
"0.56387925",
"0.56056035",
"0.5562685",
"0.54915065",
"0.53770953",
"0.5227547",
"0.5208063",
"0.5193398",
"0.51762897",
"0.5121289",
"0.5106253",
"0.5080986",
"0.50645655",
"0.5060777",
"0.50520176",
"0.5007911",
"0.50071... | 0.61234385 | 0 |
/ Util method to double the final consonant of a word | private String doubleFinalConsonant(String word) {
StringBuffer buffer = new StringBuffer(word);
buffer.append(buffer.charAt(buffer.length() - 1));
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int ConsonantFrequency(String para_word) {\n\r\n\t\tint frequency = 0;\r\n\t\tString temp = turnIntoCV(para_word);\r\n \r\n\t\tfor (int i = 0; i < temp.length() - 1; i++) {\r\n\t\t\tif (temp.charAt(i) == 'V' && temp.charAt(i + 1) == 'C')\r\n\t\t\t\tfrequency++;\r\n\t\t}\r\n\r\n\t\treturn frequency;\r... | [
"0.6678946",
"0.5748359",
"0.57216907",
"0.5702819",
"0.5674097",
"0.56312865",
"0.5629798",
"0.5624149",
"0.5562832",
"0.55517787",
"0.5528511",
"0.5374403",
"0.53722763",
"0.53599113",
"0.5357783",
"0.53471553",
"0.5283801",
"0.52810293",
"0.52791965",
"0.5206484",
"0.51891... | 0.8478389 | 0 |
/ Layout Generation Methods | public View getViewPage(FragmentActivity context, EvaluationActivity.PlaceholderFragment caller){
ScrollView scroller = new ScrollView(context);
LinearLayout container = new LinearLayout(context);
container.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, Li... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void doLayout();",
"void computeNewLayout();",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"public void recordLayout()\r\n\t{\n\t}",
"Board createLayout();",
"publ... | [
"0.74337536",
"0.72972745",
"0.72375894",
"0.7162934",
"0.7090142",
"0.7083824",
"0.7025652",
"0.7003269",
"0.6936747",
"0.6926738",
"0.6883288",
"0.6799917",
"0.67733663",
"0.6750693",
"0.6721664",
"0.6655641",
"0.6646456",
"0.6627929",
"0.65834755",
"0.65834254",
"0.6559025... | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (Exception ex) {
Logger.getLogger(ValidationScenarioHandlerServlet.class.getName()).log... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro... | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",... | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (Exception ex) {
Logger.getLogger(ValidationScenarioHandlerServlet.class.getName()).lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n ... | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197"... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
... | 0.0 | -1 |
funfa,tranformar para maquina de estado | private void SearchCtes(){
double d1=0.0;
boolean elev=false;
boolean c1=true;
boolean c2=false;
boolean c3=false;
String A="";
String B="";
String C="";
int i=0;
int j=0;
while(this.Eq.charAt(i)!='=') {
//j=i;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inCompo... | [
"0.60719085",
"0.5898732",
"0.58958614",
"0.5823466",
"0.58107823",
"0.5807987",
"0.56885064",
"0.56858164",
"0.56717026",
"0.56441265",
"0.5573571",
"0.5554398",
"0.5523631",
"0.55203533",
"0.54785883",
"0.54759276",
"0.5471658",
"0.5462509",
"0.544454",
"0.54387337",
"0.543... | 0.0 | -1 |
Created by PerryGarg on 10/05/18. | public interface BaseRecyclerAdapterListener
{
void loadMore();
void handleError();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void c... | [
"0.5907532",
"0.5828536",
"0.5803058",
"0.5792062",
"0.5751966",
"0.5743571",
"0.5731565",
"0.57188106",
"0.5710939",
"0.5681939",
"0.56603724",
"0.5601565",
"0.5600686",
"0.5600686",
"0.55928415",
"0.55900395",
"0.55584806",
"0.55584806",
"0.55584806",
"0.55584806",
"0.55584... | 0.0 | -1 |
Created by dominictootell on 20/02/2014. | public interface FrequentlyRelatedItemHttpResponseParser {
public FrequentlyRelatedItemSearchResponse[] parse(String json);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}"... | [
"0.6207955",
"0.61649984",
"0.60623",
"0.6015767",
"0.60088336",
"0.60088336",
"0.60068065",
"0.5982284",
"0.5972039",
"0.5958866",
"0.5943929",
"0.58875847",
"0.58819586",
"0.5881796",
"0.5876735",
"0.5858606",
"0.5858143",
"0.5832119",
"0.58200055",
"0.5795426",
"0.5786352"... | 0.0 | -1 |
The abstract class com.raulgpena.application.repository.jpa.IUserRepository is a interface for define the CRUD operations for login entity. | @Repository
public interface ILoginRepository extends JpaRepository<Login, Long> {
// Method declarations.
/**
*
* <p>Method that find a user by user name.
*
* @param username User name
* @return User name object.
* */
Login findByUserName (String username);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface UserRepository extends Repository<User, Long> {\n User save(User user);\n User findByLogin(String login);\n User findById(long id);\n}",
"public interface UserRepository extends GenericRepository<User> {\n\n /**\n * Gets the user with such login and password combination.\n *\... | [
"0.77171594",
"0.7517569",
"0.74874145",
"0.7325764",
"0.7291153",
"0.72211456",
"0.7154156",
"0.71431774",
"0.7140666",
"0.7128298",
"0.71277994",
"0.7079718",
"0.7076214",
"0.7064736",
"0.7061711",
"0.7034164",
"0.700764",
"0.69671357",
"0.695933",
"0.695625",
"0.69530016",... | 0.78717655 | 0 |
Method declarations. Method that find a user by user name. | Login findByUserName (String username); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User search_userinfo(String user_name);",
"@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}",
"public int search_userid(String user_name);",
"public boolean findUserBYName(String name);",
"public AgtUser findUserByName(String username);",
... | [
"0.81474644",
"0.8005868",
"0.78420717",
"0.77510345",
"0.7725291",
"0.77225804",
"0.77225804",
"0.77005583",
"0.7690755",
"0.7627547",
"0.7566441",
"0.7545092",
"0.7544089",
"0.7544089",
"0.75214404",
"0.7498693",
"0.7378771",
"0.73520434",
"0.73447233",
"0.72777045",
"0.724... | 0.0 | -1 |
No instance variables Constructor for objects of class Bubble | public Bubble(IToken _token, double posX, double posY)
{
// CALL super behaviour with the _token and _m params:
super(_token);
// CALL the super method generateSpeed with the param slow to generate a random 'slower' speed:
super.generateSpeed("slow");
// CALL the su... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BubbleFactory() {\n // TODO Auto-generated constructor stub\n }",
"private BubbleGravityBehaviour()\n {\n\n }",
"public BubbleSort(){\r\n super();\r\n }",
"public BeanGame () {\n\t}",
"public static void main(String[] args) {\n BubbleLuba bubbleLuba2 = new BubbleLuba(5,0)... | [
"0.76165",
"0.6742763",
"0.64919865",
"0.637726",
"0.6222139",
"0.62001073",
"0.61873317",
"0.6166241",
"0.6163591",
"0.6154859",
"0.6020693",
"0.60179514",
"0.59812474",
"0.592333",
"0.591573",
"0.5915725",
"0.5909678",
"0.5908424",
"0.5890226",
"0.58840954",
"0.5834378",
... | 0.5918467 | 14 |
METHOD: used to initialise all the IComponents a Bubble requires within an aquarium | public void Initialise(List<IComponent> _components)
{
// LOOP through all the IComponents within the _components List passed:
for(IComponent _c : _components)
{
// CALL Initialise and pass a reference to this:
_c.Initialise(this);
// ADD the IC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void initcomponent() {\n\r\n\t}",
"private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n ... | [
"0.6984348",
"0.6984348",
"0.6840111",
"0.68217736",
"0.6598695",
"0.6585556",
"0.65812016",
"0.6580061",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
"0.6494351",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Hotel> listar() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int a = 10;
int b = 20;
int c = 30;
int d = 40;
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(d);
System.out.println("addition of a and b = " + (a+b... | {
"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 |
String imagePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "dengzi.png"; File file = new File(imagePath); Log.e("TAG", file.exists() + " "); String url = " RequestBody requestBody = new RequestBody() .setType(RequestBody.FORM) .addFormDataPart("file1", RequestBody.create(file)) .a... | public void okhttpClick(View view) {
String url = "https://gank.io/api/add2gank";
RequestBody requestBody = new MultipartRequestBody()
.addFormDataPart("pageNo", "1")
.addFormDataPart("pageSize", "50")
.addFormDataPart("platform", "android");
fin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String uploadImage(final String pat,String area, String subarea, String cat ,\n String subcat, String userid, String comtext,String url) {\n Log.d(\"all_data\", \"\" + \"\\n\" + comtext + \"\\n\" + \"\\n\" );\n String res = null;\n try {\n ... | [
"0.7073781",
"0.7070055",
"0.6948168",
"0.68133456",
"0.6747343",
"0.671295",
"0.6475356",
"0.64503354",
"0.63634783",
"0.6300217",
"0.6279606",
"0.62710226",
"0.6268043",
"0.6258233",
"0.6235999",
"0.6152666",
"0.6131907",
"0.6128326",
"0.60618657",
"0.60323185",
"0.600093",... | 0.5740821 | 32 |
Translates an URL by replacing the beginning like in the example passed as parameters. | public static String translateUrl(String sourceUrl, String sourceContext, String targetContext) {
// Find what has been replaced at the beginning of sourceContext to
// transform it to targetContext
String commonSuffix =
StringUtils.reverse(StringUtils.getCommonPrefix(StringUtils... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"URI translate(URI original);",
"String rewriteUrl(String originalUrl);",
"public URL standardizeURL(URL startingURL);",
"ILoLoString translate();",
"private static String translateUrl(Reader r) throws IOException {\n StringBuilder s = new StringBuilder();\n while (true) {\n int c =... | [
"0.7262927",
"0.62186974",
"0.5881204",
"0.5744115",
"0.5541374",
"0.5498024",
"0.5442145",
"0.5374859",
"0.52291256",
"0.5200726",
"0.51951075",
"0.51729876",
"0.516877",
"0.5161747",
"0.51572084",
"0.515633",
"0.51026946",
"0.5096967",
"0.50829256",
"0.50313485",
"0.5004144... | 0.5856709 | 3 |
Returns the raw query component of this URI. The query component of a URI, if defined, only contains legal URI characters. | public static String getRawQuery(String uri) {
return createUri(uri).getRawQuery();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public java.lang.String getQuery() {\n java.lang.Object ref = query_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteStr... | [
"0.68798697",
"0.68798697",
"0.68576455",
"0.67897743",
"0.6735076",
"0.6688474",
"0.66190314",
"0.660564",
"0.65183264",
"0.6468357",
"0.6421266",
"0.6421266",
"0.6390984",
"0.63044935",
"0.6294538",
"0.6271702",
"0.62677246",
"0.62600714",
"0.62271786",
"0.62074476",
"0.620... | 0.7427484 | 0 |
Returns the decoded path component of this URI. The string returned by this method is equal to that returned by the getRawPath method except that all sequences of escaped octets are decoded. | public static String getPath(String uri) {
return createUri(uri).getPath();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEncodedPath() {\n return getEncodedPath(false);\n }",
"@Override\r\n public String getPathDecoded() throws FileSystemException {\r\n if (decodedAbsPath == null) {\r\n decodedAbsPath = UriParser.decode(getPath());\r\n }\r\n\r\n return decodedAbsPath;\r\n ... | [
"0.75446916",
"0.7425774",
"0.6423461",
"0.6321208",
"0.6269192",
"0.6248937",
"0.61036175",
"0.594197",
"0.5876605",
"0.5751326",
"0.5668213",
"0.556751",
"0.5562871",
"0.5538438",
"0.55283606",
"0.5474498",
"0.54564166",
"0.54448855",
"0.5440742",
"0.5399704",
"0.53850883",... | 0.0 | -1 |
Returns the number of words in the lexicon. | public int getWordCount() {
return list.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumWords() {\n return wordMap.get(\"TOTAL_WORDS\").intValue();\n }",
"public int getWordCount() {\n\t\treturn 10;\n\t}",
"public int getWordCount(){\r\n\t\treturn wordCount;\r\n\t}",
"public int getWordCount()\n {\n return m_iWordCount;\n }",
"public int getWordCount() ... | [
"0.76407826",
"0.7363889",
"0.73516726",
"0.73305583",
"0.72629386",
"0.7248017",
"0.715241",
"0.71184534",
"0.6979742",
"0.6949355",
"0.6935645",
"0.6924131",
"0.6912108",
"0.6870454",
"0.6837543",
"0.682206",
"0.6813805",
"0.6809291",
"0.6734004",
"0.6716664",
"0.6688996",
... | 0.7313213 | 4 |
Returns the word at the specified index. This method returns word from the list at the specified index | public String getWord(int index){
return (String)list.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String get(int index){\n return words.get(index);\n }",
"public String wordAt(int index) {\n if (index < 0 || index >= myWords.length) {\n throw new IndexOutOfBoundsException(\"bad index in wordAt \"+index);\n }\n return myWords[index];\n }",
"private String ... | [
"0.8178702",
"0.80469334",
"0.76438344",
"0.7478857",
"0.72910666",
"0.7191211",
"0.69373125",
"0.68435544",
"0.681981",
"0.6799564",
"0.6772118",
"0.6693445",
"0.6651419",
"0.6623627",
"0.6473986",
"0.64091367",
"0.63765454",
"0.6373974",
"0.63731635",
"0.6338178",
"0.633131... | 0.87473685 | 0 |
This is the HangmanLexicon constructor | public HangmanLexicon() {
try {
r = new BufferedReader(new FileReader("HangmanLexicon.txt"));
text = r.readLine(); // Read and save in text
while (text != null) { // While there is still words
list.add(text); // Add them in ArrayList called "list"
text = r.readLine();
}
} catch (IOException e) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Lexicon lex()\n/* */ {\n/* 505 */ return new BaseLexicon();\n/* */ }",
"public Lex()\n {\n num_tags = Tags.num_tags;\n }",
"public Hangman(String lexiconFilePath) {\n\t\tthis.lexiconFilePath = lexiconFilePath;\n\t\tinit();\n\t\trunGame();\n\t}",
"private Glossary() {\n\n ... | [
"0.71053505",
"0.7068796",
"0.70379066",
"0.6721355",
"0.67145056",
"0.6498889",
"0.6320866",
"0.62975293",
"0.6286776",
"0.6261184",
"0.6183299",
"0.61781234",
"0.6163859",
"0.61602455",
"0.61476874",
"0.6097222",
"0.6091441",
"0.606825",
"0.60544163",
"0.60475975",
"0.60459... | 0.7261598 | 0 |
Mapper for the entity AdamKhesarat and its DTO AdamKhesaratDTO. | @Mapper(componentModel = "spring", uses = {SabegheMapper.class, NoeSabegheMapper.class})
public interface AdamKhesaratMapper extends EntityMapper<AdamKhesaratDTO, AdamKhesarat> {
@Mapping(source = "sabeghe.id", target = "sabegheId")
@Mapping(source = "sabeghe.name", target = "sabegheName")
@Mapping(source ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mappi... | [
"0.65282756",
"0.6162655",
"0.60850775",
"0.6030883",
"0.60174155",
"0.5833345",
"0.5798937",
"0.572676",
"0.5651969",
"0.5647537",
"0.5632082",
"0.55301416",
"0.54826003",
"0.5481418",
"0.54244894",
"0.5422758",
"0.5417583",
"0.5394781",
"0.5358348",
"0.53455347",
"0.5310555... | 0.7627565 | 0 |
To check if user is logged in | @RequestMapping(value = "/student_courses")
public String getCourses(ModelMap model, HttpSession session) {
String loginuser = (String) session.getAttribute( "loginuser" );
if (loginuser==null){
model.addAttribute("error", true);
model.addAttribute("message", "Login credential not found. Kindly login... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isUserLoggedIn();",
"public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }",
"boolean hasLoggedIn();",
"private boolean isLoggedInUser(){\n return true;\n }",
"public boolean... | [
"0.8656457",
"0.8393358",
"0.83857995",
"0.8285198",
"0.8121154",
"0.811417",
"0.81091326",
"0.7999044",
"0.79840964",
"0.7956953",
"0.7932503",
"0.791179",
"0.7907868",
"0.7869194",
"0.7819226",
"0.7807734",
"0.77870214",
"0.77581316",
"0.7744491",
"0.77295405",
"0.7719218",... | 0.0 | -1 |
To check if user is logged in | @RequestMapping(value = "/view_student_threads", method = RequestMethod.GET)
public String viewThread(@RequestParam(value = "courseId", required = true) String courseId,HttpSession session, ModelMap model)
{
String loginuser = (String) session.getAttribute( "loginuser" );
if (loginuser==null){
model.ad... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isUserLoggedIn();",
"public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }",
"boolean hasLoggedIn();",
"private boolean isLoggedInUser(){\n return true;\n }",
"public boolean... | [
"0.8656457",
"0.8393358",
"0.83857995",
"0.8285198",
"0.8121154",
"0.811417",
"0.81091326",
"0.7999044",
"0.79840964",
"0.7956953",
"0.7932503",
"0.791179",
"0.7907868",
"0.7869194",
"0.7819226",
"0.7807734",
"0.77870214",
"0.77581316",
"0.7744491",
"0.77295405",
"0.7719218",... | 0.0 | -1 |
To check if user is logged in | @RequestMapping(value = "/view_student_contributions", method = RequestMethod.GET)
public String view_contributions(@RequestParam(value = "threadId", required = true) String threadId,HttpSession session, ModelMap model)
{
String loginuser = (String) session.getAttribute( "loginuser" );
if (loginuser==null){ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isUserLoggedIn();",
"public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }",
"boolean hasLoggedIn();",
"private boolean isLoggedInUser(){\n return true;\n }",
"public boolean... | [
"0.8656457",
"0.8393358",
"0.83857995",
"0.8285198",
"0.8121154",
"0.811417",
"0.81091326",
"0.7999044",
"0.79840964",
"0.7956953",
"0.7932503",
"0.791179",
"0.7907868",
"0.7869194",
"0.7819226",
"0.7807734",
"0.77870214",
"0.77581316",
"0.7744491",
"0.77295405",
"0.7719218",... | 0.0 | -1 |
To check if user is logged in | @RequestMapping(value = "/create_student_Contribution", method = RequestMethod.POST)
public String createContribution(@RequestParam(value = "threadId", required = true) String threadId,
@RequestParam(value = "message", required = true) String message,
@RequestParam("name") String name,
@RequestParam("file... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isUserLoggedIn();",
"public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }",
"boolean hasLoggedIn();",
"private boolean isLoggedInUser(){\n return true;\n }",
"public boolean... | [
"0.8656457",
"0.8393358",
"0.83857995",
"0.8285198",
"0.8121154",
"0.811417",
"0.81091326",
"0.7999044",
"0.79840964",
"0.7956953",
"0.7932503",
"0.791179",
"0.7907868",
"0.7869194",
"0.7819226",
"0.7807734",
"0.77870214",
"0.77581316",
"0.7744491",
"0.77295405",
"0.7719218",... | 0.0 | -1 |
Serialize objects in the state to the output stream. Because the state normally contains multiple objects, multiple streams will be written to the output stream. How this occurs is implementation dependant. | void serialize(PackageState state, OutputStream out); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void writeObject(final java.io.ObjectOutputStream out) throws java.io.IOException {\n\t\t/*\n\t\t * out.writeInt(0); // Version of the stream. // Version 0 outstuff...\n\t\t * out.writeObject(states); out.writeObject(initialState);\n\t\t * out.writeObject(finalStates); out.writeObject(transitions); if (thi... | [
"0.68420494",
"0.6788118",
"0.67626303",
"0.6604277",
"0.6581749",
"0.65157044",
"0.6491792",
"0.6470462",
"0.6384111",
"0.63352096",
"0.6328222",
"0.6304064",
"0.62779814",
"0.6270973",
"0.62498903",
"0.6243458",
"0.62414855",
"0.6225965",
"0.6201309",
"0.6156022",
"0.615440... | 0.6664369 | 3 |
Creates new form DepControlar | public DepControlar() {
initComponents();
depservice = new DepService();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CrearPedidos() {\n initComponents();\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }",
"public V... | [
"0.67620724",
"0.6451278",
"0.6438423",
"0.63688165",
"0.6362741",
"0.6349663",
"0.63163465",
"0.6314157",
"0.62862825",
"0.6277177",
"0.62080216",
"0.61975163",
"0.6176284",
"0.61114734",
"0.6068878",
"0.60678375",
"0.6051422",
"0.6036051",
"0.60243535",
"0.6019524",
"0.5996... | 0.67892253 | 0 |
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() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
tname = new javax.swing.JTextField();
jLabel3 = new ja... | {
"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.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
... | 0.0 | -1 |
load du lieu lop List | public LopAdaptor(Activity context, int resource){
super(context ,resource);
this.context=context;
this.resource=resource;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadLists() {\n }",
"public void loadList(String name){\n }",
"public List<String> load();",
"public void loadAllLists(){\n }",
"public void loadLists() {\n Cursor cListas = getAllLists(); // Cursor en tabla listas\n Cursor cMovieList; // Cursor en tabla lista-pelicula\n... | [
"0.7596364",
"0.72570425",
"0.70676386",
"0.69390875",
"0.6629858",
"0.6614087",
"0.6593278",
"0.6568807",
"0.6522591",
"0.6492868",
"0.6449711",
"0.6437455",
"0.6254462",
"0.623587",
"0.62347186",
"0.62137467",
"0.61856055",
"0.61770266",
"0.6163674",
"0.6163674",
"0.6150771... | 0.0 | -1 |
load du lieu qua man hinh update | public View getView(int postion, View convertView, ViewGroup parent){
//View custom=contextA.getLayoutInflater().inflate(resource, null);
View custom = LayoutInflater.from(context).inflate(R.layout.item, parent, false );
TextView txtIdLop=custom.findViewById(R.id.txtID);
TextView txtTen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void load() {\n updater.load(-1); // -1 because Guest ID doesn't matter.\n }",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\n public boolean update(Revue objet) {\n return false;\n }",
"protected void updateLoadTime() {\r\n\t\tthis.loadTime = new Timestamp(System.curre... | [
"0.6581717",
"0.629679",
"0.61268985",
"0.6107713",
"0.61073804",
"0.6086042",
"0.60750204",
"0.6063751",
"0.6033355",
"0.6033355",
"0.6019061",
"0.6002396",
"0.6002396",
"0.6001571",
"0.598445",
"0.598445",
"0.598445",
"0.598445",
"0.598445",
"0.59841746",
"0.5981747",
"0.... | 0.0 | -1 |
Runtime: 23 ms, faster than 17.28% of Java online submissions for ZigZag Conversion. Memory Usage: 40.5 MB, less than 31.92% of Java online submissions for ZigZag Conversion. | public String convert(String s, int numRows) {
char[][] map = new char[numRows][s.length() * numRows / (2 * numRows - 1) + 1];
char[] chars = s.toCharArray();
boolean isDown = true;
int i = 0, j = 0;
int idx = 0;
while (idx < chars.length) {
map[i][j] = chars... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n ... | [
"0.6024099",
"0.5814797",
"0.5785254",
"0.5708514",
"0.5695393",
"0.5643912",
"0.555878",
"0.5548834",
"0.55392486",
"0.55232656",
"0.55122733",
"0.5503554",
"0.54863024",
"0.54457206",
"0.54181117",
"0.5405264",
"0.5378568",
"0.5340302",
"0.5335955",
"0.53356427",
"0.5333133... | 0.0 | -1 |
Constructor for the player | public Player(GameEngine engine, double h, String n, double b, Point l, int uID) {
this.engine = engine;
health = h;
name = n;
bitcoins = b;
baseLocation = l;
this.uID = uID;
modules = new ArrayList<Module>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player(){}",
"public Player(){}",
"public Player() {\t\n\t}",
"public Player(){\r\n\r\n }",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player(){\n\n }",
"public Player(){\n default_init();\n }",
"public Player() {\n ... | [
"0.84791076",
"0.84791076",
"0.8425611",
"0.8354094",
"0.8251593",
"0.8251593",
"0.8251593",
"0.8251593",
"0.8248288",
"0.8198885",
"0.80415875",
"0.80317044",
"0.79304165",
"0.781852",
"0.76926184",
"0.7687032",
"0.76587254",
"0.7649313",
"0.7633084",
"0.76264405",
"0.760895... | 0.0 | -1 |
Methods Check if the player can build or upgrade the desired module | private boolean CheckCostToBuildOrUpgrade(double cost)
{
return cost <= this.bitcoins;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canBuild(Player player) {\n\t\treturn canBuild(player.getUsername());\n\t}",
"public boolean checkRequirements(PlayerBoard playerBoard);",
"protected void checkCanRun() throws BuildException {\n \n }",
"public IStatus canAddModule(IModule module);",
"private void isAbleToBuild() th... | [
"0.6580254",
"0.647073",
"0.63196063",
"0.6312948",
"0.6247259",
"0.6174293",
"0.6106005",
"0.5905591",
"0.5894633",
"0.5890034",
"0.58857656",
"0.58856356",
"0.58819187",
"0.58801574",
"0.58548695",
"0.57831347",
"0.5770173",
"0.5759736",
"0.57549685",
"0.5753238",
"0.574723... | 0.0 | -1 |
Retrieve a SoftwareInjector object from the modules field and call the Upgrade method from inside the class | public boolean upgradeSoftwareInjector(SoftwareInjector injector) {
if(injector.getCost() <= this.getBitcoins())
{
try {
if(injector.upgrade())
{
this.removeBitcoins(injector.getCost());
return true;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void upgrade();",
"public abstract void Upgrade(Tower t);",
"public abstract void doUpgrade();",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void refreshModules()\n\t{\n\t\t// Scan each directory in turn to find JAR files\n\t\t// Subdirectories are not scanned\n\t\tList<File> jar... | [
"0.60568494",
"0.6006226",
"0.59664685",
"0.5640694",
"0.5507281",
"0.5506424",
"0.5364673",
"0.528203",
"0.51612455",
"0.51608276",
"0.5150902",
"0.51335526",
"0.51306003",
"0.5127999",
"0.5126667",
"0.511281",
"0.50937164",
"0.5084756",
"0.50717926",
"0.50690204",
"0.506090... | 0.6788303 | 0 |
Retrieve a BitcoinMiner object from the modules field, lower the player bitcoins and call the Upgrade method from inside the class | public boolean upgradeBitcoinMiner(BitcoinMiner miner) throws NotEnoughBitcoinsException{
try {
this.removeBitcoins(miner.getCost());
return miner.upgrade();
} catch (NoUpgradeAllowedException ex) {
Logger.getLogger(Player.class.getName()).log(Level.SEVERE, null,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void Upgrade(Tower t);",
"public abstract void upgrade();",
"public boolean upgradeSoftwareInjector(SoftwareInjector injector) {\r\n if(injector.getCost() <= this.getBitcoins())\r\n {\r\n try {\r\n if(injector.upgrade()) \r\n { \r\n\r\n ... | [
"0.580943",
"0.57317644",
"0.57245064",
"0.56388265",
"0.5591306",
"0.5579522",
"0.55678505",
"0.5431084",
"0.54090756",
"0.53782946",
"0.5228096",
"0.52227724",
"0.5185961",
"0.51471114",
"0.5090598",
"0.504897",
"0.49970978",
"0.49569854",
"0.49422136",
"0.493363",
"0.49030... | 0.64473337 | 0 |
Initialize a CpuUpgrade object and add the object to the modules field | public CPUUpgrade buildCPUUpgrade(CPUUpgrade cpu) throws NotEnoughBitcoinsException{
this.removeBitcoins(cpu.getCost());
modules.add(cpu);
return cpu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initModules()\n {\n\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void refreshModules()\n\t{\n\t\t// Scan each directory in turn to find JAR files\n\t\t// Subdirectories are not scanned\n\t\tList<File> jarFiles = new ArrayList<>();\n\n\t\tfor (File dir : moduleDirectories) {... | [
"0.5899634",
"0.5845595",
"0.55703163",
"0.54954845",
"0.54044366",
"0.540201",
"0.53101516",
"0.5282952",
"0.5264605",
"0.5214047",
"0.51837015",
"0.5172786",
"0.51381487",
"0.5123945",
"0.5096415",
"0.5093895",
"0.508856",
"0.50866294",
"0.5071566",
"0.5068344",
"0.50504845... | 0.6369685 | 0 |
Retrieve the player's private health field | public double getHealth(){
return health;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getHealth(){\n return health.getHealth();\n }",
"public int getHealth()\r\n {\r\n return health;\r\n }",
"int getHealth() {\n return health;\n }",
"public int getHealth()\r\n {\r\n return this.health;\r\n }",
"public int getHealth(){\n return heal... | [
"0.72015715",
"0.7144063",
"0.7139968",
"0.70896924",
"0.7077035",
"0.70502055",
"0.7048621",
"0.70375836",
"0.7027004",
"0.70158964",
"0.69893724",
"0.69878334",
"0.6981984",
"0.69552594",
"0.69339806",
"0.69194543",
"0.69125277",
"0.68594176",
"0.67969245",
"0.6791264",
"0.... | 0.7028026 | 8 |
Set the player's private health field from the Health parameter | public void setHealth(double Health){
health = Health;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHealth(double h){\n health = h;\n }",
"public void SetHealth(int h)\n{\n\thealth=h;\n}",
"@Override\n\tpublic void setHealth(double health) {\n\n\t}",
"public void setHealth(int health)\r\n {\r\n this.health = health;\r\n }",
"public abstract void setHealth(int health);",
... | [
"0.75350875",
"0.7469693",
"0.72432977",
"0.7228619",
"0.716609",
"0.71526176",
"0.7151206",
"0.7144569",
"0.70860064",
"0.7085244",
"0.68754315",
"0.6763202",
"0.6485446",
"0.6473024",
"0.6442454",
"0.641933",
"0.6381806",
"0.6276136",
"0.6260588",
"0.62531126",
"0.6235094",... | 0.747516 | 1 |
Retrieve the player's private name field | public String getName(){
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPlayerName();",
"String getName(){\n\t\treturn playerName;\n\t}",
"public String getName(){\r\n\t\treturn playerName;\r\n\t}",
"public String getPlayerName() {\n return name; \n }",
"public String getPlayerName() {\n return props.getProperty(\"name\");\n }",
"public String g... | [
"0.79750794",
"0.7854191",
"0.782568",
"0.779712",
"0.7793645",
"0.77395946",
"0.7725347",
"0.77145416",
"0.7647669",
"0.76378036",
"0.7630799",
"0.7625015",
"0.76198834",
"0.75854546",
"0.75854546",
"0.7546761",
"0.7515826",
"0.7464611",
"0.74286115",
"0.73876035",
"0.737492... | 0.0 | -1 |
Set the player's private name field from the Name parameter | public void setName(String Name){
name = Name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}",
"public void setName(String name)\r\n\t{\r\n\t\tthis.playerName = name;\r\n\t}",
"public void setPlayerName(String name) {\n \tplayername = name;\n }",
"public void setName(String name)\n {\n playersName = name;\n }",
"voi... | [
"0.84070915",
"0.82760787",
"0.7901718",
"0.7862223",
"0.7789053",
"0.7749768",
"0.75167644",
"0.7516561",
"0.7508275",
"0.74966496",
"0.7470441",
"0.74421394",
"0.7434339",
"0.74007237",
"0.73794454",
"0.7360889",
"0.7293573",
"0.728344",
"0.72739536",
"0.72734",
"0.72650355... | 0.7139935 | 25 |
Retrieve the player's private bitcoins field | public double getBitcoins(){
return bitcoins;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getReceivedBitcoins()\r\n {\r\n return this.receivedBitcoins;\r\n }",
"public BigInteger getPrivKey() {\n if (priv == null)\n throw new MissingPrivateKeyException();\n return priv;\n }",
"public PlayerWallet getGameWallet() {\n return gameWallet;\n\n ... | [
"0.66803783",
"0.61004955",
"0.60123587",
"0.5960419",
"0.59268886",
"0.5911684",
"0.59037554",
"0.5890871",
"0.58455443",
"0.5844282",
"0.58048695",
"0.5749988",
"0.57288104",
"0.56838644",
"0.5676687",
"0.56753707",
"0.5639611",
"0.5635288",
"0.5578314",
"0.5549132",
"0.553... | 0.6894834 | 0 |
Set the player's private bitcoin field from the Bitcoin parameter | public void setBitcoins(double Bitcoins){
bitcoins = Bitcoins;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }",
"void sendSignChangeToPlayer(Player player, Location location, byte data);",
"public void setCardMoney(java.math.BigDecimal param) {\r\n this.localCardMoney = param;\r\n }",
"void setP( byte[] buffer, short off... | [
"0.55740833",
"0.5460104",
"0.54110575",
"0.5371469",
"0.5328518",
"0.5317934",
"0.5270284",
"0.52684015",
"0.52455837",
"0.52427095",
"0.5168732",
"0.5141426",
"0.5130175",
"0.5122431",
"0.51118076",
"0.5106511",
"0.50917757",
"0.5086684",
"0.5075119",
"0.5074365",
"0.504089... | 0.60703427 | 0 |
Subtract the damage parameter from the health field | public void receiveDamage(double damage) {
health = health - damage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void subtractPlayerHealth(int damage) {\n this.playerShipHealth -= damage;\n }",
"private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }",
"void decreaseHealth(Float damage);",
"private void subtractEnemySheild(int damage) {\n this.enemyShield ... | [
"0.82231003",
"0.8149904",
"0.8147739",
"0.8021862",
"0.79736763",
"0.7953612",
"0.787718",
"0.7862331",
"0.7838573",
"0.7596013",
"0.7428163",
"0.73605245",
"0.73507005",
"0.73499984",
"0.7269619",
"0.72024757",
"0.71866184",
"0.71105456",
"0.71069443",
"0.7088486",
"0.70660... | 0.7643868 | 9 |
Retrieve the player's private modules field | public List<Module> getModules(){
return modules;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMod() {\n\t\treturn this.mod;\n\t}",
"protected abstract Player getModPlayer(String name);",
"public String getmoduleID() {\t\r\n\treturn ModuleID;\t\r\n}",
"public String getmoduleName() {\t\r\n\treturn ModuleName;\t\r\n}",
"synchronized List<Module> getModules()\n {\n return m_... | [
"0.61880535",
"0.60677534",
"0.5976232",
"0.5917846",
"0.5848906",
"0.5848839",
"0.5848839",
"0.5778802",
"0.57768375",
"0.5750266",
"0.57385445",
"0.5713714",
"0.56259084",
"0.5616671",
"0.5610988",
"0.55950123",
"0.5575695",
"0.5549694",
"0.5547238",
"0.5545827",
"0.5532291... | 0.6026892 | 2 |
Increase the amount of bitcoins for the player with the given amount value | public void addBitcoins(double amount){
if(amount < 0) throw new IllegalArgumentException("Amount may not be less than 0");
bitcoins += amount;
receivedBitcoins += amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void increaseCoin(String userID, double coin){\n }",
"public void changeBalance (int amount){\n balance += amount;\n }",
"public void addJackpot(int amount){\n this.amount += amount;\n }",
"public void addCoins(Integer amount) {\n this.amount = ((this.amount + amount) ... | [
"0.70944345",
"0.6941606",
"0.69212514",
"0.67569387",
"0.66742957",
"0.663296",
"0.66084087",
"0.6583902",
"0.65711135",
"0.6543561",
"0.6510549",
"0.6497497",
"0.64954543",
"0.64901257",
"0.6457361",
"0.64520854",
"0.6442557",
"0.639099",
"0.6340292",
"0.6334273",
"0.632814... | 0.7391921 | 0 |
Remove the amount from the player's bitcoins. First check if the amount > 0, than check if the amount is not greater than the amount of bitcoins the player has. | public void removeBitcoins(double amount) throws NotEnoughBitcoinsException{
if (amount < 0) throw new IllegalArgumentException("Amount may not be less than 0");
if (!this.CheckCostToBuildOrUpgrade(amount)) throw new NotEnoughBitcoinsException("You do not have enough Bitcoins to build this... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeCoins(Integer amount) {\n addCoins(amount*-1);\n }",
"public void takeoutMoney (double amount) {\n if(amount >= 2.0) {\n int numberToRemove = (int) Math.min(getToonie(), amount / 2.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j ... | [
"0.7682243",
"0.6843811",
"0.6781125",
"0.6542103",
"0.6390025",
"0.61662656",
"0.60493565",
"0.5971044",
"0.59503865",
"0.5945937",
"0.5929663",
"0.59195685",
"0.5893675",
"0.5862963",
"0.5815035",
"0.5807508",
"0.5756257",
"0.5749185",
"0.57235783",
"0.5689183",
"0.5675842"... | 0.76890874 | 0 |
Get the amount of bitcoins the player received during the game. This method should only be used to update the score when a game has finished. | public int getReceivedBitcoins()
{
return this.receivedBitcoins;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberOfCoins() {\n return coins;\n }",
"public int getCoins() {\n return coins; //XXX-CHANGE-XXX\n }",
"public int getCoinCount() {\n return coinCount;\n }",
"public int getCoinCount() {\r\n\t\treturn this.coinCount;\r\n\t}",
"public int getCoin() {\n return ... | [
"0.7364428",
"0.7086895",
"0.7072337",
"0.69205195",
"0.69112056",
"0.68973106",
"0.6849016",
"0.68454105",
"0.6700005",
"0.66926074",
"0.664794",
"0.6637237",
"0.65977204",
"0.6476181",
"0.6320238",
"0.6260242",
"0.6259658",
"0.62573683",
"0.62480426",
"0.62372756",
"0.61931... | 0.7609059 | 0 |
programa que calcule el area de un cuadrado 20 metros | public static void main (String [] args){
int lado;
lado=20;
int area;
area=lado*lado;
System.out.print("Tu resultado es:");
System.out.print(area);
System.out.print(" metros");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double calculaArea(){\r\n double area;\r\n area= (double) (Math.pow((cir.getY()-cir.getX()), 2)*Math.PI);\r\n return area;\r\n \r\n }",
"public abstract float calArea();",
"double getArea(){\n return 3.14 * raggio * raggio;\n }",
"double getArea();",
"double... | [
"0.7642532",
"0.75536984",
"0.74551195",
"0.7443701",
"0.7443701",
"0.74109584",
"0.7232854",
"0.72057986",
"0.7200566",
"0.71931326",
"0.7187535",
"0.7185139",
"0.717864",
"0.717864",
"0.717864",
"0.7165186",
"0.71557593",
"0.71331143",
"0.7121996",
"0.7121996",
"0.7121996",... | 0.0 | -1 |
onCreate / is where we will do two things: 1 to associate Java variables to the XML elements that matter to the app 2 to give behaviour to the XML elements of relevance, via the Java variables | void init(){
//to do associations
mButtonBottomLeftCorner = findViewById(R.id.idButtonBottomLeftCorner);
mButtonBottomRightCorner = findViewById(R.id.idButtonBottomRightCorner);
mButtonTopLeftCorner = findViewById(R.id.idButtonTopLeftCorner);
mButtonTopRightCorner = findViewById... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupVariables() {\n mCalendarView = findViewById(R.id.calendarView);\n mTextView = findViewById(R.id.eventsView);\n }",
"private void initializeXml() {\n Bundle bundle = this.getIntent().getExtras();\n\n // Texts.\n dateText = (TextView)findViewById(R.id.date_t... | [
"0.66905546",
"0.66874564",
"0.6621233",
"0.65782523",
"0.64958125",
"0.6490697",
"0.6488477",
"0.64768374",
"0.6466246",
"0.6416801",
"0.6414936",
"0.63887805",
"0.63866526",
"0.6378674",
"0.63583255",
"0.6336919",
"0.6331399",
"0.63222814",
"0.63170743",
"0.6309562",
"0.630... | 0.0 | -1 |
Launching Blood Pressure Screen | @Override
public void onClick(View view) {
Intent i = new Intent(getApplicationContext(), BPActivity.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadScreen() {\n Intent intent = new Intent(this, DataCapture.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n System.exit(0);\n\n }",
"private void startin... | [
"0.63694525",
"0.6281674",
"0.6101862",
"0.6051804",
"0.60160667",
"0.60153955",
"0.59149927",
"0.59149927",
"0.59149927",
"0.59149927",
"0.59149927",
"0.59149927",
"0.5873438",
"0.5869072",
"0.5864327",
"0.5857367",
"0.58569497",
"0.5847923",
"0.58408016",
"0.5835139",
"0.58... | 0.0 | -1 |
Launching Heart Rate Screen | @Override
public void onClick(View view) {
Intent i = new Intent(getApplicationContext(), HeartRateActivity.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n SimpleDateFormat todayFormat = new SimpleDateFormat(\"dd-MMM-yyyy\");\n String todayKey = todayFormat.format(Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault()).getTime());\n contactsToday.setText... | [
"0.6198108",
"0.6177248",
"0.6051021",
"0.603573",
"0.59700966",
"0.5904443",
"0.5901155",
"0.57887316",
"0.5771215",
"0.5740992",
"0.57249475",
"0.5714899",
"0.5691178",
"0.561717",
"0.5600672",
"0.559735",
"0.5593249",
"0.55833936",
"0.5578384",
"0.557545",
"0.55728304",
... | 0.56556755 | 13 |
/ Autoshipping some items | private void autoship(World world, EntityPlayer player, List<ItemStack> list) {
Iterator<ItemStack> it = list.iterator();
while (it.hasNext()) {
ItemStack stack = it.next();
if (BlockStorage.hasShippedItem(world, player, stack)) {
it.remove();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomE... | [
"0.61394346",
"0.61267215",
"0.58739465",
"0.5870442",
"0.5821957",
"0.57579905",
"0.5720273",
"0.5681229",
"0.56789327",
"0.56515545",
"0.5608289",
"0.5582019",
"0.5562465",
"0.55507475",
"0.5544137",
"0.5540596",
"0.5538511",
"0.55046165",
"0.55032843",
"0.54840666",
"0.546... | 0.0 | -1 |
forming the packet to send in each prbobe | private String formPacket(int mSize,String payLoad){
String toBeSent="";
for(int i=0;i<mSize/payLoad.length();i++){ //append until message size is reached
toBeSent+=payLoad;
}
if(payLoad.length()>mSize){
toBeSent=toBeSent.substring(0,mSize+1); //truncate if pay... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void encode() {\n\t\tsuper.rawPkt = new byte[12 + this.PID.length*4];\n\t\t\n\t\tbyte[] someBytes = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(someBytes, 0, super.rawPkt, 4, 4);\n\t\tsomeBytes = StaticProcs.uIntLongToByteWord(this.ssrcMediaSource);\n\t\tSystem.arraycopy(someBytes, ... | [
"0.6790411",
"0.6775146",
"0.6623437",
"0.65751237",
"0.6510832",
"0.6498492",
"0.64873064",
"0.6440684",
"0.63696057",
"0.6363356",
"0.63300985",
"0.6302934",
"0.6213296",
"0.62032163",
"0.619669",
"0.618435",
"0.61141855",
"0.6092362",
"0.60781634",
"0.60515094",
"0.6040844... | 0.60006094 | 23 |
/ create item option with other items | private void initOption() {
this.option = new JMenu("Options");
this.add(option);
this.initNewGame();
this.initNewServer();
this.initNewConnect();
this.initExitConnect();
this.initExitGame();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ListItem createListItem();",
"public void createItem(View view) {\n \t\n String[] temp = getCurrentItemTypes();\n \n Intent intent = new Intent(this, CreateItem.class);\n intent.putExtra(EDIT, \"no\");\n intent.putExtra(TYPES, temp);\n startActivityForResult(intent, 1... | [
"0.6325699",
"0.6298616",
"0.62524337",
"0.6123689",
"0.609704",
"0.60327125",
"0.6022412",
"0.6002291",
"0.5979869",
"0.5950869",
"0.5948165",
"0.5939827",
"0.5935354",
"0.591588",
"0.58712876",
"0.5831979",
"0.5802135",
"0.57676333",
"0.5749795",
"0.5746342",
"0.57404727",
... | 0.0 | -1 |
new connection item with textfield and keylistener | private void initNewConnect() {
this.newConnect = new JMenu("Connect To");
// textfield for ip address with keylistener
JTextField ipAddress = new JTextField("000.000.0.000");
ipAddress.setPreferredSize(new Dimension(100,18));
ipAddress.setMaximumSize(new Dimension(100,18));
ipAddress.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Connection\n {\n // CharSequence getSelectedText();\n CharSequence getTextAfterCursor( InputConnection ic, int n);\n CharSequence getTextBeforeCursor( InputConnection ic, int n);\n boolean isStoreTextEnabled();\n }",
"public CryptCCInfo()\n{\n\tinitComponents();\n\tbindComponen... | [
"0.60634345",
"0.5922296",
"0.56093735",
"0.55700064",
"0.5551061",
"0.5514861",
"0.5492284",
"0.54838705",
"0.5476612",
"0.54510236",
"0.5450441",
"0.54329175",
"0.540949",
"0.5393102",
"0.5381031",
"0.53787184",
"0.53686106",
"0.53591377",
"0.5358746",
"0.53565395",
"0.5352... | 0.64983803 | 0 |
/ actionlistener for all menu items | private void setActionListener() {
actListener = new ActionListener() {
public void actionPerformed(ActionEvent e) {
actController.handleMenuAction(e);
}
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onMenuItemClicked();",
"public void menuItemClicked( Menu2DEvent e );",
"public void menuClicked(MenuItem menuItemSelected);",
"@Override\n public void actionPerformed(ActionEvent event) {\n String buttonName = ((JMenuItem) event.getSource()).getText();\n if (buttonName.equa... | [
"0.7495839",
"0.7200473",
"0.7188014",
"0.7145049",
"0.7063745",
"0.69857705",
"0.6968107",
"0.69558024",
"0.69188607",
"0.69175225",
"0.6894311",
"0.67891574",
"0.678907",
"0.6749907",
"0.673498",
"0.67344576",
"0.6726496",
"0.67200315",
"0.6707319",
"0.6672613",
"0.6657474"... | 0.0 | -1 |
open URL in default browser | public void openURL(String url) {
final String errMsg = "Error attempting to launch web browser";
String osName = System.getProperty("os.name");
try {
if (osName.startsWith("Mac OS")) {
Class fileMgr = Class.forName("com.apple.eio.FileManager");
Method openURL = fileMgr.getDeclaredMethod("ope... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void openUrlInBrowser(String URL) {}",
"private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runti... | [
"0.82925934",
"0.8167046",
"0.7798665",
"0.7763871",
"0.75948507",
"0.75674516",
"0.75673455",
"0.7564395",
"0.7432211",
"0.7399006",
"0.7355418",
"0.73509175",
"0.733924",
"0.73135746",
"0.72668076",
"0.7260368",
"0.7254385",
"0.72511613",
"0.72404003",
"0.7237378",
"0.72191... | 0.72804576 | 14 |
Creates a new instance of this component in the specified desktop. | public Component(Desktop desktop) {
this.desktop = desktop;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addDesktop(WSDesktop desktop) {\n\t\tdesktops.add(desktop);\n\t}",
"public MacroModule(JDesktopPane desktop) {\n\t\tthis.desktop = desktop;\n\t\tpropertySupport = new PropertyChangeSupport(this);\n\t\tinitialize();\n\t}",
"public Desktop getDesktop() {\r\n return desktop;\r\n }",
"Deskt... | [
"0.6448553",
"0.6193209",
"0.6116214",
"0.56435055",
"0.56082404",
"0.56039643",
"0.55725914",
"0.543683",
"0.5376232",
"0.53602946",
"0.5315748",
"0.5315498",
"0.53057605",
"0.51725966",
"0.51685214",
"0.5137999",
"0.51369303",
"0.5076717",
"0.504888",
"0.5044539",
"0.489572... | 0.7798967 | 0 |
Sets the offsets that define the "inside" bounds for this component. The resulting bounds are used by the contains. The first two offsets are the width and height to offset from (0, 0). The second two offsets are the width and height to offset from (width, height). | public void setInsideOffsets(float xOff, float yOff, float xOff2, float yOff2) {
this.xOff = xOff;
this.yOff = yOff;
this.xOff2 = xOff2;
this.yOff2 = yOff2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }",
"public void setBounds(double anX, double aY, double aW, double aH) { setX(anX); setY(aY); setWidth(aW); setHeight(aH); }",
"public Rectangle getOffsetBounds()\r\n\t{\r\n\t\treturn new Rectangle(mFrameX, mFrameY, mImageBuf... | [
"0.574757",
"0.53942853",
"0.53659797",
"0.5353559",
"0.5329497",
"0.5250397",
"0.51973754",
"0.5189158",
"0.5175357",
"0.5158575",
"0.51421654",
"0.5110349",
"0.510033",
"0.5059704",
"0.5054845",
"0.50519097",
"0.502822",
"0.5003925",
"0.5002456",
"0.49726567",
"0.4969353",
... | 0.64193404 | 0 |
Sets the name for this component. If this component was created through XML, the name change will not be reflected in the OxyDoc object. | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }",
"@Override\r\n\tpublic void setName(String name... | [
"0.7658229",
"0.75729597",
"0.7553002",
"0.7553002",
"0.75241023",
"0.7521833",
"0.7520702",
"0.7520702",
"0.7495695",
"0.7469094",
"0.7454168",
"0.7448634",
"0.7448634",
"0.7421978",
"0.7421978",
"0.7421978",
"0.74184513",
"0.7408307",
"0.73950684",
"0.73927414",
"0.7388368"... | 0.736121 | 58 |
Returns the name for this component, or null if it does not have one. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }",
"public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name =... | [
"0.78622806",
"0.7823214",
"0.7349486",
"0.72963434",
"0.7285601",
"0.7285601",
"0.72452986",
"0.7242803",
"0.72043735",
"0.72043735",
"0.7189898",
"0.7189898",
"0.71784174",
"0.71361107",
"0.707446",
"0.70658386",
"0.70595145",
"0.7028504",
"0.7028504",
"0.7013387",
"0.70051... | 0.0 | -1 |
Returns true if this component should consume key and mouse button input after the events have been received, false otherwise. | protected boolean isConsumingInput() {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean dealWithKeyPressed(KeyEvent ke)\n {\n setUpMouseState(KEY_PRESSED);\n return true;\n }",
"@Override\n\tpublic boolean takeControl() {\n\t\treturn (touch_r.isPressed() || touch_l.isPressed());\n\t}",
"public Boolean isInputOver() {\n if (this.currentState == states.... | [
"0.6741675",
"0.67335963",
"0.66899574",
"0.6671406",
"0.66293555",
"0.661583",
"0.6477178",
"0.646617",
"0.6452987",
"0.6374658",
"0.6334274",
"0.6284457",
"0.61667776",
"0.6142609",
"0.61404693",
"0.61336625",
"0.61151963",
"0.61111975",
"0.6110351",
"0.610384",
"0.609314",... | 0.59822553 | 28 |
Returns true if we can traverse with the specified key, otherwise return false and no traversals will be fired. By default, this method returns true. | protected boolean isTraversalAvailable(int key, char c) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }",
"@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\tr... | [
"0.65427464",
"0.64965487",
"0.6336523",
"0.6277079",
"0.62590635",
"0.62442607",
"0.6229253",
"0.6225921",
"0.61337376",
"0.61333185",
"0.6100075",
"0.60800135",
"0.6049409",
"0.5981526",
"0.59659183",
"0.5950068",
"0.59351",
"0.58696145",
"0.58644",
"0.58644",
"0.58644",
... | 0.6546392 | 0 |
Called to resolve any references after the entire document has been parsed. | protected void resolveReferences(OxyDoc doc) throws OxyException {
try {
if (upstr!=null && upstr.length()!=0)
next_up = (Component)doc.getElement(upstr);
if (leftstr!=null && leftstr.length()!=0)
next_left = (Component)doc.getElement(leftstr);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resolvePageReferences()\n {\n int count = _pages.size();\n while (count-- > 0)\n getPage(count).resolvePageReferences(this);\n }",
"void resolveRefs(SymbolTable symbolTable)\n {\n \tEnumeration e = defs.elements();\n\twhile (e.hasMoreElements())\n\t{\n\t Definiti... | [
"0.7232908",
"0.6729553",
"0.66419697",
"0.6022513",
"0.59725976",
"0.5949737",
"0.58332676",
"0.576817",
"0.573763",
"0.5602745",
"0.5589736",
"0.55459654",
"0.55289215",
"0.55230683",
"0.55049884",
"0.5460531",
"0.544859",
"0.5438556",
"0.5383178",
"0.5332611",
"0.5316952",... | 0.6444809 | 3 |
Returns the owner of this control, or null if this component is not a control. A control is one such as a Spinner's button or text field. | protected Component getControlOwner() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<T extends Component> T getOwner();",
"public Control getControl() {\n checkWidget();\n return control;\n }",
"@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}",
"public static SuiContainer getFocusOwner() {\r\n \t//focus owner becomes null if the last wasn't focusable/... | [
"0.68416196",
"0.66024065",
"0.64886993",
"0.6299879",
"0.6286111",
"0.62096053",
"0.6204347",
"0.6086009",
"0.60811317",
"0.60159",
"0.6009678",
"0.6003576",
"0.59607166",
"0.5931805",
"0.59013",
"0.5891012",
"0.58306336",
"0.5807687",
"0.5757259",
"0.5743412",
"0.57301027",... | 0.7841572 | 0 |
A convenience method to execute the given method. | protected Object execScript(String call) {
if (call==null||call.length()==0)
return null;
Desktop desktop = getDesktop();
Object client = desktop.getClient();
Doc doc = desktop.getDoc();
int left = call.indexOf('(');
String name = call.substri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object executeMethod(Object instance, Method method, Object args) {\n try {\n if (args == null) {\n return method.invoke(instance);\n } else {\n return method.invoke(instance, args);\n }\n } catch (Exception e) {\n ex... | [
"0.66017354",
"0.63265055",
"0.6275429",
"0.62407076",
"0.61395043",
"0.6068723",
"0.601286",
"0.59927756",
"0.59849787",
"0.59835947",
"0.5949953",
"0.5949953",
"0.5949953",
"0.5949953",
"0.5934624",
"0.59251004",
"0.5907959",
"0.58334345",
"0.581504",
"0.5798315",
"0.579313... | 0.0 | -1 |
Handles a unique setter (such as setBackground which requires a color). Returns true if the given bean/value pair was changed successfully, or false if it still requires changing. | protected boolean handleSpecialSetter(String bean, String value) throws OxyException {
if (bean == "name") {
setName(value);
return true;
} else if (bean == "focused") {
if ("true".equals(value))
grabFocus();
else if ("false".equals(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isSetter(Method meth) {\n return startsWith(meth.getName(), \"set\")\n || startsWith(meth.getName(), \"add\")\n || startsWith(meth.getName(), \"remove\")\n || startsWith(meth.getName(), \"insert\")\n || startsWith(meth.getName(), \"clear\")\n ... | [
"0.59087145",
"0.5805426",
"0.5805426",
"0.5692593",
"0.5622916",
"0.56104434",
"0.5599586",
"0.5538194",
"0.5485501",
"0.54686105",
"0.54349935",
"0.5390054",
"0.5376459",
"0.53600687",
"0.52488065",
"0.5240781",
"0.5229976",
"0.5209265",
"0.5156142",
"0.51547545",
"0.511404... | 0.7287613 | 0 |
Convenience method to turn a token into a float. | protected float toFloat(String bean, String value) throws OxyException {
try {
return Float.parseFloat(value);
} catch (NumberFormatException e) {
throw new OxyException("cannot parse '"+bean+"' with float value: "+value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getFloat() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Float.parseFloat(s);\n }",
"public float evaluateAsFloat();",
"float applyAsFloat(T value);",
"public Float toReal(String lex){\r\n\t\treturn Flo... | [
"0.7018179",
"0.6621734",
"0.6561357",
"0.64518857",
"0.64111644",
"0.6301161",
"0.62888414",
"0.6188185",
"0.6150429",
"0.6128647",
"0.60838467",
"0.6017916",
"0.6001047",
"0.5994859",
"0.59810156",
"0.5954573",
"0.59356344",
"0.58897394",
"0.5887188",
"0.5876742",
"0.585895... | 0.55286264 | 63 |
Copies the specified color to the alphaFilter values. | protected Color getAlphaCopy(Color copy, Color orig) {
if (copy==null)
copy = new Color(orig);
copy.r = orig.r;
copy.g = orig.g;
copy.b = orig.b;
copy.a = alphaFilter!=null ? alphaFilter.a : orig.a;
return copy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int setAlpha(int color, int alpha) {\n return (color & 0x00FFFFFF) | (alpha << 24);\n }",
"public static int applyAlphaToColor(int color, float alpha) {\n return (int) (0xFF * alpha) << 24 | color & 0xFFFFFF;\n }",
"private int adjustAlpha( int color, float alphaArg ) {\n \t\t... | [
"0.67435616",
"0.646604",
"0.63611656",
"0.630261",
"0.613211",
"0.6036017",
"0.59124637",
"0.5813129",
"0.5755203",
"0.5753993",
"0.56766456",
"0.5649819",
"0.5622928",
"0.5608052",
"0.55943197",
"0.55436665",
"0.5474578",
"0.5456621",
"0.5447227",
"0.54456395",
"0.5441207",... | 0.7147706 | 0 |
Returns true if this component can receive focus. | public boolean isFocusAvailable() {
if (!isEnabled() || !isRequestFocusEnabled() || !isFocusable() || !isShowing())
return false;
else {
Window modal = getDesktop().getModalWindow();
if (modal!=null && modal!=this && modal.isVisible()) {
return t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFocusable() {\r\n return focusable;\r\n }",
"public boolean isFocusable() {\r\n\t\treturn true;\r\n\t}",
"public boolean hasFocus() {\n return hasFocus;\n }",
"boolean hasFocus() {\n\t\t\tif (text == null || text.isDisposed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn ... | [
"0.7814596",
"0.76362395",
"0.7341911",
"0.7332383",
"0.72865963",
"0.7121867",
"0.6990207",
"0.69753516",
"0.695486",
"0.6878226",
"0.6845414",
"0.66046405",
"0.65704155",
"0.6526852",
"0.64140403",
"0.6377204",
"0.6363809",
"0.6294916",
"0.6283163",
"0.6227813",
"0.6203728"... | 0.7727234 | 1 |
The desktop root component. | public Desktop getDesktop() {
return desktop;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Desktop getDesktop()\r\n {\r\n return Desktop.getDesktop();\r\n }",
"public JDesktopPane getDesktopPane() {\n\t return desktopPane;\n\t}",
"private JComponent getRootPane()\n\t{\n\t\treturn null;\n\t}",
"public Component(Desktop desktop) {\r\n this.desktop = desktop;\r\n }",
"Desk... | [
"0.72529596",
"0.7035984",
"0.6465949",
"0.64241904",
"0.6286187",
"0.6224582",
"0.6214246",
"0.6162558",
"0.60836273",
"0.60361534",
"0.59364647",
"0.586946",
"0.586946",
"0.5820367",
"0.5801147",
"0.5799707",
"0.5794262",
"0.5745207",
"0.5733521",
"0.5732769",
"0.57169497",... | 0.7210217 | 1 |
whether this component is enabled | public boolean isEnabled() {
return enabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEnable() {\n return _enabled;\n }",
"public boolean isEnable() {\n return enable;\n }",
"final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }",
"public boolean enabled(){\n return enabled;\n }",
"public Boolean isEnable() ... | [
"0.8229427",
"0.81282383",
"0.8121358",
"0.8088663",
"0.8065651",
"0.80290514",
"0.79983884",
"0.79487795",
"0.7924085",
"0.7924085",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.79029095"... | 0.795458 | 8 |
whether this component is enabled | public void setEnabled(boolean enabled) {
this.enabled = enabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEnable() {\n return _enabled;\n }",
"public boolean isEnable() {\n return enable;\n }",
"final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }",
"public boolean enabled(){\n return enabled;\n }",
"public Boolean isEnable() ... | [
"0.8229427",
"0.81282383",
"0.8121358",
"0.8088663",
"0.8065651",
"0.80290514",
"0.79983884",
"0.795458",
"0.795458",
"0.79487795",
"0.7924085",
"0.7924085",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
"0.7913502",
... | 0.0 | -1 |
whether to request focus on grab | public boolean isRequestFocusEnabled() {
return requestFocusEnabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void focus() {}",
"void focus();",
"void focus();",
"boolean isTestAlwaysFocus();",
"public void setFocus();",
"public void setFocus() {\n\t}",
"public void setFocus() {\n }",
"@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}",
"@Override\n public void requestFocus... | [
"0.7423582",
"0.717358",
"0.717358",
"0.7075606",
"0.7019507",
"0.6960697",
"0.693324",
"0.6911267",
"0.68771267",
"0.6873302",
"0.6856476",
"0.6856476",
"0.6856476",
"0.6856476",
"0.6856476",
"0.68363196",
"0.6830936",
"0.68134665",
"0.6773327",
"0.6765869",
"0.6756802",
"... | 0.6347461 | 56 |
whether to request focus on grab | public void setRequestFocusEnabled(boolean requestFocusEnabled) {
this.requestFocusEnabled = requestFocusEnabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void focus() {}",
"void focus();",
"void focus();",
"boolean isTestAlwaysFocus();",
"public void setFocus();",
"public void setFocus() {\n\t}",
"public void setFocus() {\n }",
"@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}",
"@Override\n public void requestFocus... | [
"0.7423582",
"0.717358",
"0.717358",
"0.7075606",
"0.7019507",
"0.6960697",
"0.693324",
"0.6911267",
"0.68771267",
"0.6873302",
"0.6856476",
"0.6856476",
"0.6856476",
"0.6856476",
"0.6856476",
"0.68363196",
"0.6830936",
"0.68134665",
"0.6773327",
"0.6765869",
"0.6756802",
"... | 0.0 | -1 |
//////////////////////////////////// MAX/MIN SIZES // //////////////////////////////////// | public float getMinWidth() {
return width.min;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getMaxIntermediateSize();",
"public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}",
"public abstract long getMaxSize();",
"protected abstract int getMaxDesiredSize();",
"private int calcMaxSize(int capacity) {\n // Clip the upper bound so that there will always be at least one ... | [
"0.7109599",
"0.68269324",
"0.6816682",
"0.66994",
"0.6570539",
"0.65603834",
"0.6556906",
"0.6508128",
"0.6507186",
"0.6492712",
"0.649249",
"0.6491799",
"0.64908206",
"0.64496773",
"0.64331234",
"0.637479",
"0.63599616",
"0.6355836",
"0.63260806",
"0.6306555",
"0.6288931",
... | 0.0 | -1 |
whether XYcentering is enabled | public boolean isCenteringEnabled() {
return isCenteringX() && isCenteringY();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCenteringX() {\r\n return centeringX;\r\n }",
"public boolean isMouseCentered() {\n return mouseCentered.get();\n }",
"public boolean isCenteringOverCoords()\n\t{\n\t\treturn centerOverCoords;\n\t}",
"public void setCenteringEnabled(boolean x, boolean y) {\r\n setC... | [
"0.73011094",
"0.71197665",
"0.70402974",
"0.6999849",
"0.68777376",
"0.6785137",
"0.67317474",
"0.65376276",
"0.6449034",
"0.63824385",
"0.63465667",
"0.63258904",
"0.6230923",
"0.61064047",
"0.6023389",
"0.60160345",
"0.5941156",
"0.59070975",
"0.579314",
"0.57711786",
"0.5... | 0.75837314 | 0 |
whether XYcentering is enabled | public void setCenteringEnabled(boolean x, boolean y) {
setCenteringX(x);
setCenteringY(y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }",
"public boolean isCenteringX() {\r\n return centeringX;\r\n }",
"public boolean isMouseCentered() {\n return mouseCentered.get();\n }",
"public boolean isCenteringOverCoords()\n\t{\n\t\tre... | [
"0.75837314",
"0.73011094",
"0.71197665",
"0.70402974",
"0.68777376",
"0.6785137",
"0.67317474",
"0.65376276",
"0.6449034",
"0.63824385",
"0.63465667",
"0.63258904",
"0.6230923",
"0.61064047",
"0.6023389",
"0.60160345",
"0.5941156",
"0.59070975",
"0.579314",
"0.57711786",
"0.... | 0.6999849 | 4 |
whether XYcentering is enabled | public void setCenteringEnabled(boolean centeringEnabled) {
setCenteringEnabled(centeringEnabled, centeringEnabled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }",
"public boolean isCenteringX() {\r\n return centeringX;\r\n }",
"public boolean isMouseCentered() {\n return mouseCentered.get();\n }",
"public boolean isCenteringOverCoords()\n\t{\n\t\tre... | [
"0.75837314",
"0.73011094",
"0.71197665",
"0.70402974",
"0.6999849",
"0.68777376",
"0.6785137",
"0.67317474",
"0.65376276",
"0.6449034",
"0.63465667",
"0.63258904",
"0.6230923",
"0.61064047",
"0.6023389",
"0.60160345",
"0.5941156",
"0.59070975",
"0.579314",
"0.57711786",
"0.5... | 0.63824385 | 10 |
whether Xcentering is enabled | public boolean isCenteringX() {
return centeringX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }",
"public void setCenteringX(boolean centeringX) {\r\n this.centeringX = centeringX;\r\n }",
"public void setCenteringEnabled(boolean x, boolean y) {\r\n setCenteringX(x);\r\n setCentering... | [
"0.77387345",
"0.7644275",
"0.7004901",
"0.69323444",
"0.6819482",
"0.6599864",
"0.6541452",
"0.64025843",
"0.6386501",
"0.6376717",
"0.6366704",
"0.6347911",
"0.63145083",
"0.6188551",
"0.6176241",
"0.616129",
"0.6113694",
"0.6092286",
"0.60840034",
"0.60572964",
"0.6049741"... | 0.8199087 | 0 |
whether Xcentering is enabled | public void setCenteringX(boolean centeringX) {
this.centeringX = centeringX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCenteringX() {\r\n return centeringX;\r\n }",
"public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }",
"public void setCenteringEnabled(boolean x, boolean y) {\r\n setCenteringX(x);\r\n setCenteringY(y);\r\n }",
"public ... | [
"0.8199087",
"0.77387345",
"0.7004901",
"0.69323444",
"0.6819482",
"0.6599864",
"0.6541452",
"0.64025843",
"0.6386501",
"0.6376717",
"0.6366704",
"0.6347911",
"0.63145083",
"0.6188551",
"0.6176241",
"0.616129",
"0.6113694",
"0.6092286",
"0.60840034",
"0.60572964",
"0.6049741"... | 0.7644275 | 2 |
whether Ycentering is enabled | public boolean isCenteringY() {
return centeringY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCenteringY(boolean centeringY) {\r\n this.centeringY = centeringY;\r\n }",
"public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }",
"public boolean isMouseCentered() {\n return mouseCentered.get();\n }",
"public void setCentering... | [
"0.7324087",
"0.70164204",
"0.66025865",
"0.6554369",
"0.64782494",
"0.64718217",
"0.64278823",
"0.6420463",
"0.6257783",
"0.62357986",
"0.6232078",
"0.62232834",
"0.6179929",
"0.6074657",
"0.6061881",
"0.6061881",
"0.6061881",
"0.6050433",
"0.6006548",
"0.5988882",
"0.597303... | 0.78931934 | 0 |
whether Ycentering is enabled | public void setCenteringY(boolean centeringY) {
this.centeringY = centeringY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCenteringY() {\r\n return centeringY;\r\n }",
"public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }",
"public boolean isMouseCentered() {\n return mouseCentered.get();\n }",
"public void setCenteringEnabled(boolean x, boolean ... | [
"0.78931934",
"0.70164204",
"0.66025865",
"0.6554369",
"0.64782494",
"0.64718217",
"0.64278823",
"0.6420463",
"0.6257783",
"0.62357986",
"0.6232078",
"0.62232834",
"0.6179929",
"0.6074657",
"0.6061881",
"0.6061881",
"0.6061881",
"0.6050433",
"0.6006548",
"0.5988882",
"0.59730... | 0.7324087 | 1 |
gets the current font | public Font getFont() {
if (font==null)
return getDesktop().getDefaultFont();
else
return font;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Font getFont(\n )\n {return font;}",
"public String getFont() {\n return font;\n }",
"public static Font getFont() {\n return getFont(12);\n }",
"@Override\n public String getFont() {\n return graphicsEnvironmentImpl.getFont(canvas);\n }",
"public Str... | [
"0.8188725",
"0.8168685",
"0.8106997",
"0.8045523",
"0.8010371",
"0.79259837",
"0.787478",
"0.78687155",
"0.7853689",
"0.7849652",
"0.7849652",
"0.7820287",
"0.7820287",
"0.78085226",
"0.7770157",
"0.7696032",
"0.7695138",
"0.7656448",
"0.7641204",
"0.7535678",
"0.7517342",
... | 0.81627655 | 2 |
gets the current theme, or null | public ComponentTheme getTheme() {
return ui;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getTheme();",
"public String getTheme() {\r\n\t\treturn _theme;\r\n\t}",
"public String getTheme() {\n return theme;\n }",
"public String getTheme() {\n return theme;\n }",
"public String getTheme() {\n return theme;\n }",
"public String getTheme() {\n return ... | [
"0.81870866",
"0.7737726",
"0.7716217",
"0.7716217",
"0.7716217",
"0.7696919",
"0.7683149",
"0.7631582",
"0.7592858",
"0.75615096",
"0.75076264",
"0.73982054",
"0.71936256",
"0.714791",
"0.70406973",
"0.70162976",
"0.6855099",
"0.65945405",
"0.657687",
"0.6576531",
"0.6535588... | 0.7052919 | 14 |
installs a new theme | public void setTheme(ComponentTheme ui) {
ComponentTheme old = this.ui;
this.ui = ui;
if (old != this.ui) {
if (this.ui!=null) {
try {
this.ui.initComponent(this);
} catch (OxyException e) {
Log.error("er... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void installThemeTemplate() throws CoreException\n {\n SDK sdk = getSDK();\n String themeName = this.masterModel.getStringProperty( THEME_NAME );\n String displayName = this.masterModel.getStringProperty( DISPLAY_NAME );\n IPath newThemePath = sdk.createNewThemeProject( the... | [
"0.7294872",
"0.6537108",
"0.6472737",
"0.6306795",
"0.63041294",
"0.6103426",
"0.60862553",
"0.5976903",
"0.57770497",
"0.5771337",
"0.57443863",
"0.5734009",
"0.57278144",
"0.57278144",
"0.57170105",
"0.57151973",
"0.5658743",
"0.5641252",
"0.56153166",
"0.5599208",
"0.5596... | 0.53161955 | 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.