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 |
|---|---|---|---|---|---|---|
method berikut akan dijalankan saat aktifitas dimulai | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
inputUsername = findViewById(R.id.inputUsername);
inputPassword = findViewById(R.id.inputPassword);
btnLogin = findViewById(R.id.btnLog... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }",
... | [
"0.67283756",
"0.66400015",
"0.6504073",
"0.6489299",
"0.6399456",
"0.6331666",
"0.62710947",
"0.6221071",
"0.620584",
"0.618479",
"0.6136403",
"0.61355734",
"0.6121654",
"0.61155546",
"0.61064667",
"0.61014605",
"0.6090265",
"0.6087239",
"0.6086301",
"0.6064314",
"0.60579854... | 0.0 | -1 |
Returns the URL of the unproxied field data server. (this should really be downloaded by the proxy, but it's not at this point). | public String getUnproxiedFieldDataServerUrl() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
String hostName = prefs.getString("serverHostName", "");
String context = "bdrs-core";//prefs.getString("contextName", "");
String path = prefs.getString("path", "");
StringBuilde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServerUrl() {\r\n return this.fedoraBaseUrl;\r\n }",
"public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}",
"public String getServerUrl()\n {\n return null;\n }",
"public String getServerUrl() {\n return props.getProperty(\"url\");\n }",
"public ... | [
"0.64248013",
"0.6379213",
"0.62995017",
"0.6298492",
"0.6234547",
"0.6197112",
"0.6140422",
"0.6085308",
"0.60813683",
"0.6066307",
"0.60497713",
"0.6038381",
"0.6025874",
"0.6022919",
"0.60156715",
"0.6014221",
"0.5999225",
"0.5983523",
"0.5983523",
"0.5973316",
"0.59730387... | 0.84153795 | 0 |
Overload test for one inetger parameter | void test(int a){
System.out.println("a: "+a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSubnetRequest();",
"private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int por... | [
"0.57445914",
"0.5695257",
"0.5611535",
"0.5604132",
"0.5590844",
"0.5584221",
"0.55576324",
"0.5435351",
"0.53978664",
"0.5389462",
"0.53325987",
"0.53283226",
"0.53271407",
"0.5307994",
"0.52813333",
"0.52786994",
"0.5268412",
"0.5210944",
"0.5196365",
"0.51734364",
"0.5169... | 0.0 | -1 |
overload test for two integer parameter | void test(int a ,int b){
System.out.println("a and b: "+a+" "+b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean check(int value);",
"@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}",
"protected abstract int intOp(int i1, int i2);",
"public static boolean isValid(String args[]){\n \n if(args.length < 2){\n System.out.println(\"Not enough arguments detec... | [
"0.6174018",
"0.6165494",
"0.6083793",
"0.6068398",
"0.6046936",
"0.60311395",
"0.59895355",
"0.5988235",
"0.59144455",
"0.5886998",
"0.58751714",
"0.58751714",
"0.5826508",
"0.58180344",
"0.5797576",
"0.57794756",
"0.57770586",
"0.57670337",
"0.57640934",
"0.57552284",
"0.57... | 0.5621301 | 27 |
overload test for a double parameter | double test(double a){
System.out.println("double a: "+a);
return a*a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDouble();",
"double expectDoubleParameter(String strParamName);",
"boolean hasDouble();",
"public static void isValid(double dbl) throws IllegalArgumentException {\n\t//nothing to do here\n }",
"public boolean a(double paramDouble)\r\n/* 28: */ {\r\n/* 29: 44 */ double d1 = a... | [
"0.7497219",
"0.7290741",
"0.7255311",
"0.6977204",
"0.67575973",
"0.645851",
"0.6336559",
"0.6308263",
"0.6258263",
"0.6184239",
"0.61465585",
"0.6137859",
"0.61316514",
"0.6124018",
"0.6105412",
"0.61030906",
"0.6094091",
"0.60569334",
"0.60499287",
"0.6017544",
"0.59979516... | 0.56811583 | 47 |
create the command line parser create the Options | private static Options getOptions() {
Options options = new Options();
options.addOption(OptGenMode, "generate", false,
"generate private key sharing");
options.addOption("h", "help", false, "Print help.");
options.addOption(OptionBuilder.withType(Integer.class)
.withLongOpt("shares")
.withDescripti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Options createOptions() {\n \n \t\tOptions options = new Options();\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the input file / directory\");\n \t\tOptionBuilder.isRequired(true);\n \t\toptions.addOption(OptionBui... | [
"0.7718264",
"0.7578929",
"0.7254021",
"0.7155391",
"0.7132748",
"0.703786",
"0.70333457",
"0.7007586",
"0.699301",
"0.6976877",
"0.6948752",
"0.6776155",
"0.67010766",
"0.66602045",
"0.6565388",
"0.6561843",
"0.6552747",
"0.65337825",
"0.6519944",
"0.6420583",
"0.6408867",
... | 0.6804849 | 11 |
Copies all the info in this to create an independent clone that is not a pointer. | public ChessPiece getClone(ChessOwner owner){
ChessPiece temp = new ChessPiece(pieceName, uniquePieceID, attackDirectionVectors,
movementDirectionVectors, specialMovementVectors, movementVectors,
attackVectors, blackArtFile, whiteArtFile, NPCArtFile);
temp.setOwner(owner);
return temp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Object clone() {\n return super.clone();\n }",
"Object clone();",
"Object clone();",
"public abstract Object clone();",
"public abstract Object clone() ;",
"public Object clone() {\n return this.copy();\n }",
"public Object clone() {\n // No problems cloning h... | [
"0.7603676",
"0.74927336",
"0.74927336",
"0.7448434",
"0.74025923",
"0.73986864",
"0.7385297",
"0.7379618",
"0.7379618",
"0.7379618",
"0.7379618",
"0.73793954",
"0.7366074",
"0.7357229",
"0.73504794",
"0.73146087",
"0.71775234",
"0.7092684",
"0.7092684",
"0.7092684",
"0.70870... | 0.0 | -1 |
Executes all operations in extendDocument to modify the xml code in originalDocument | protected Document parse(Document originalForm, Document extendDocument) throws Exception {
ArrayList operationNodes = this.extractOperationNodes(extendDocument);
for (int i = 0; i < operationNodes.size(); i++) {
Node operationNode = (Node) operationNodes.get(i);
if (operat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Document augmentDocumentXml(Document document) throws IOException, SAXException {\n\t\tString fileName = getBbnFileName(document);\n\n\t\t// move to the next BBN file if necessary\n\t\t// this will be efficient if the documents are passed in WSJ order as it avoids reloading the same file\n\t\tif (!fileName.... | [
"0.60807246",
"0.5806678",
"0.5721297",
"0.56783766",
"0.55960155",
"0.5523403",
"0.5522375",
"0.55119884",
"0.5508105",
"0.5482522",
"0.5474889",
"0.5461473",
"0.5461473",
"0.5461473",
"0.5451502",
"0.5433711",
"0.542213",
"0.5397407",
"0.5394368",
"0.5393752",
"0.5393401",
... | 0.6516983 | 0 |
This method processes a node that contains an operation and returns an instance of class XmlExtendsOperation with necessary information to apply this operation in original xml document | protected ExtendedXmlOperation getNodeOperation(Node node) throws Exception {
NamedNodeMap mapAtributes = node.getAttributes();
Node attrNode = mapAtributes.getNamedItem(ExtendedXmlParser.ATTR_ATRIBUTE);
Node containerNode = mapAtributes.getNamedItem(ExtendedXmlParser.CONTAINER_ATRIBUTE);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ArrayList extractOperationNodes(Document extendDocument) {\r\n\r\n ArrayList extendNodes = new ArrayList();\r\n\r\n Node rootExtendsNode = extendDocument.getFirstChild();\r\n if (rootExtendsNode != null) {\r\n // Get childs of root extend node\r\n NodeList nodes... | [
"0.6302545",
"0.60325456",
"0.58293813",
"0.56916565",
"0.5617109",
"0.55486757",
"0.55486757",
"0.5503607",
"0.54977995",
"0.54759866",
"0.5455842",
"0.545292",
"0.5445702",
"0.53372854",
"0.5329533",
"0.5318857",
"0.53027445",
"0.5286441",
"0.52554333",
"0.5247685",
"0.5194... | 0.6438629 | 0 |
This method iterate along the extend document extracting all nodes of operations | protected ArrayList extractOperationNodes(Document extendDocument) {
ArrayList extendNodes = new ArrayList();
Node rootExtendsNode = extendDocument.getFirstChild();
if (rootExtendsNode != null) {
// Get childs of root extend node
NodeList nodes = rootExtendsNode.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<OperationImplementation> getOperations() {\n List<?> operationsUnknown = (List<?>) properties.get(XPATH_OPERATIONS);\n List<OperationImplementation> operations = new ArrayList<OperationImplementation>();\n if (operationsUnknown != null) {\n \t for (Object operationUnknown... | [
"0.6128879",
"0.6059279",
"0.5989023",
"0.5598431",
"0.5344307",
"0.531004",
"0.530384",
"0.52856624",
"0.5248519",
"0.5244817",
"0.52242875",
"0.51984406",
"0.51218235",
"0.51197654",
"0.5098788",
"0.5089017",
"0.5036594",
"0.50101465",
"0.49981213",
"0.49550033",
"0.4951004... | 0.7799714 | 0 |
Returns true or false if the node doesn't need attributes | protected boolean checkNodeWithoutAttributes(Node node) {
String nodeName = node.getNodeName();
if (nodeName.equalsIgnoreCase(ExtendedXmlParser.MODIFY_FORM)
|| nodeName.equalsIgnoreCase(ExtendedXmlParser.ADD_REMOTE_REFERENCE)) {
return true;
}
return f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAttributes();",
"boolean hasAttributes();",
"@java.lang.Override\n public boolean hasAttributes() {\n return attributes_ != null;\n }",
"@Override\r\n\t\tpublic boolean hasAttributes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}",
"boolean hasSetAttribute();",
"private boolean read... | [
"0.7496312",
"0.7496312",
"0.7179123",
"0.71723527",
"0.6974269",
"0.696695",
"0.6921248",
"0.6907282",
"0.6866029",
"0.6839544",
"0.6735846",
"0.6735846",
"0.6720176",
"0.66309756",
"0.6548352",
"0.6543871",
"0.6543871",
"0.6519286",
"0.64891624",
"0.6458597",
"0.6458597",
... | 0.73662204 | 2 |
Returns true or false if the node parameter is a operation node | protected boolean isExtendedNode(Node node) {
String nodeName = node.getNodeName();
if (nodeName.equalsIgnoreCase(ExtendedXmlParser.INSERT_AFTER_OP)
|| nodeName.equalsIgnoreCase(ExtendedXmlParser.INSERT_BEFORE_OP)
|| nodeName.equalsIgnoreCase(ExtendedXmlParser.REM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isOp();",
"boolean hasOperation();",
"public boolean isOp ( ) {\n\t\treturn extract ( handle -> handle.isOp ( ) );\n\t}",
"public boolean isOperation() {\n return operation != null;\n }",
"public boolean hasOperation() {\n return operationBuilder_ != null || operation_ != null;\n ... | [
"0.7408291",
"0.7209179",
"0.714858",
"0.7090589",
"0.6805448",
"0.67852396",
"0.6480799",
"0.64769506",
"0.6441291",
"0.639811",
"0.63172865",
"0.623535",
"0.623535",
"0.623535",
"0.623535",
"0.6202315",
"0.6143498",
"0.60830176",
"0.6069327",
"0.60334396",
"0.60097677",
"... | 0.6262077 | 11 |
Sets the background of the button as focused | public void openGame(View view) {
setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);
// Calculates the first level least completed on file
String levelCodes = loadLevelStatus(this);
int firstUnsolvedLevel = levelCodes.indexOf("0");
if (firstUnsolvedLevel =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFocusChange(View button, boolean isFocus) {\n\t\t\t\tif(isFocus){\n\t\t\t\t\tbutton.setBackgroundColor(getResources().getColor(R.color.blue));\n\t\t\t\t}else \n\t\t\t\t\tbutton.setBackground(getResources().getDrawable(R.drawable.button_style)); \n\t\t\t}",
"@Override\n public vo... | [
"0.754511",
"0.7022663",
"0.6803246",
"0.66151035",
"0.6492519",
"0.64506006",
"0.6420154",
"0.6410517",
"0.64089185",
"0.640417",
"0.6375894",
"0.63564885",
"0.635415",
"0.6267172",
"0.62303793",
"0.6224276",
"0.6176164",
"0.61504877",
"0.61336476",
"0.61124843",
"0.6099544"... | 0.0 | -1 |
Sets the background of the button as focused | public void openLevels(View view) {
setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);
// Starts the new activity
Intent intent = new Intent(this, LevelsActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFocusChange(View button, boolean isFocus) {\n\t\t\t\tif(isFocus){\n\t\t\t\t\tbutton.setBackgroundColor(getResources().getColor(R.color.blue));\n\t\t\t\t}else \n\t\t\t\t\tbutton.setBackground(getResources().getDrawable(R.drawable.button_style)); \n\t\t\t}",
"@Override\n public vo... | [
"0.754511",
"0.7022663",
"0.6803246",
"0.66151035",
"0.6492519",
"0.64506006",
"0.6420154",
"0.6410517",
"0.64089185",
"0.640417",
"0.6375894",
"0.63564885",
"0.635415",
"0.6267172",
"0.62303793",
"0.6224276",
"0.6176164",
"0.61504877",
"0.61336476",
"0.61124843",
"0.6099544"... | 0.0 | -1 |
Sets the background of the button as focused | public void openSettings(View view) {
setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);
// Starts the new activity
Intent intent = new Intent(this, SettingsActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFocusChange(View button, boolean isFocus) {\n\t\t\t\tif(isFocus){\n\t\t\t\t\tbutton.setBackgroundColor(getResources().getColor(R.color.blue));\n\t\t\t\t}else \n\t\t\t\t\tbutton.setBackground(getResources().getDrawable(R.drawable.button_style)); \n\t\t\t}",
"@Override\n public vo... | [
"0.7545188",
"0.7024956",
"0.6803572",
"0.66167253",
"0.6493439",
"0.6452654",
"0.6421814",
"0.6411543",
"0.6409164",
"0.6404046",
"0.6378395",
"0.6357997",
"0.63561624",
"0.6267539",
"0.6231931",
"0.6223347",
"0.61769545",
"0.6149706",
"0.6133999",
"0.61133957",
"0.60994595"... | 0.0 | -1 |
Sets the background of the button as focused | public void openHelp(View view) {
setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);
// Starts the new activity
Intent intent = new Intent(this, HelpActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFocusChange(View button, boolean isFocus) {\n\t\t\t\tif(isFocus){\n\t\t\t\t\tbutton.setBackgroundColor(getResources().getColor(R.color.blue));\n\t\t\t\t}else \n\t\t\t\t\tbutton.setBackground(getResources().getDrawable(R.drawable.button_style)); \n\t\t\t}",
"@Override\n public vo... | [
"0.754511",
"0.7022663",
"0.6803246",
"0.66151035",
"0.6492519",
"0.64506006",
"0.6420154",
"0.6410517",
"0.64089185",
"0.640417",
"0.6375894",
"0.63564885",
"0.635415",
"0.6267172",
"0.62303793",
"0.6224276",
"0.6176164",
"0.61504877",
"0.61336476",
"0.61124843",
"0.6099544"... | 0.0 | -1 |
Sets the background of the button as focused | public void openAbout(View view) {
setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFocusChange(View button, boolean isFocus) {\n\t\t\t\tif(isFocus){\n\t\t\t\t\tbutton.setBackgroundColor(getResources().getColor(R.color.blue));\n\t\t\t\t}else \n\t\t\t\t\tbutton.setBackground(getResources().getDrawable(R.drawable.button_style)); \n\t\t\t}",
"@Override\n public vo... | [
"0.754511",
"0.7022663",
"0.6803246",
"0.66151035",
"0.6492519",
"0.64506006",
"0.6420154",
"0.6410517",
"0.64089185",
"0.640417",
"0.6375894",
"0.63564885",
"0.635415",
"0.6267172",
"0.62303793",
"0.6224276",
"0.6176164",
"0.61504877",
"0.61336476",
"0.61124843",
"0.6099544"... | 0.0 | -1 |
/ This method allows you to close the app by pressing twice the back button | @Override
public void onBackPressed() {
if (lastBackPressTime < System.currentTimeMillis() - 2500) {
toast = Toast.makeText(this, R.string.toast_close_app, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
toast.show();
lastBackPressTime = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onBackPressed()\n {\n if(backButtonCount >= 1)\n {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n ... | [
"0.7971689",
"0.7904344",
"0.78447294",
"0.7831272",
"0.7831272",
"0.7810363",
"0.7741567",
"0.7719002",
"0.7715131",
"0.7699846",
"0.7694287",
"0.7694287",
"0.7694287",
"0.76857585",
"0.76857585",
"0.76700294",
"0.7668314",
"0.76666707",
"0.76514745",
"0.7610184",
"0.7606452... | 0.0 | -1 |
Initialize the database by passing an URL to the database Pointing to a "key" addressed by the path to store and write data whenever myRef is used. | public AndroidInterfaceClass(){
database = FirebaseDatabase.getInstance("https://brainstorming-1fa06-default-rtdb.europe-west1.firebasedatabase.app/");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public URLDB(String path)\n\t{\n\t\tsuper(Tools.getHash(path));\n\t\tif (!FileManager.isDirExisted(path))\n\t\t{\n\t\t\tFileManager.makeDir(path);\n\t\t}\n\t\tthis.envPath = new File(path);\n\t\tthis.env = new DBEnv(this.envPath, false, DBConfig.DB_CACHE_SIZE, DBConfig.LOCK_TIME_OUT, DBConfig.URL_STORE);\n\t\tthis... | [
"0.66163355",
"0.6605214",
"0.6265088",
"0.61742574",
"0.5881067",
"0.58151513",
"0.57241666",
"0.56347406",
"0.5588754",
"0.5579006",
"0.5555184",
"0.55549026",
"0.55160296",
"0.5510476",
"0.54828703",
"0.54657584",
"0.54546106",
"0.54316866",
"0.5429628",
"0.5409953",
"0.53... | 0.52616644 | 35 |
Sets a value in the database on a given target to a given value. | @Override
public void setValueInDb(String target, String value) {
DatabaseReference currentRef = database.getReference(target);
currentRef.setValue(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set(String target, String value){\n\t\tif (target == null || value == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'set' method!\");\n\t\t\treturn;\n\t\t}\n\t\tif (valueCache.containsKey(target)){\n\t\t\tString oldValue = valueCache.get(target);\n\t\t\tdeleteOne(oldValue);\n\t\t}\n\t\tvalueCache.... | [
"0.72304285",
"0.7154211",
"0.71350867",
"0.69359124",
"0.66866344",
"0.6666791",
"0.665836",
"0.6498744",
"0.64443195",
"0.63864565",
"0.6366866",
"0.63514656",
"0.6311853",
"0.63090044",
"0.6272029",
"0.6264039",
"0.624068",
"0.6220126",
"0.61897665",
"0.61897665",
"0.61772... | 0.80739576 | 0 |
Increases a value in the database with one, in the field specified by target | private void increaseDBValue(String target, int value){
database.getReference(gameCodeRef).child(target).setValue(value+1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startDBValue(String target){\n database.getReference(gameCodeRef).child(target).setValue(1);\n }",
"public double increaseNumberTo(double oldValue, double speed, double target){\r\n\t\t\r\n\t\tif(Math.abs(oldValue - target) <= speed)return target;\r\n\t\t//if (false) return 0;\r\n\t\telse{... | [
"0.64365286",
"0.6266113",
"0.6009681",
"0.58166456",
"0.57996815",
"0.5796801",
"0.57354045",
"0.5711112",
"0.56535476",
"0.5645197",
"0.5645197",
"0.56358296",
"0.56101847",
"0.55949116",
"0.55400187",
"0.553954",
"0.55240446",
"0.54826343",
"0.544774",
"0.5442794",
"0.5425... | 0.7588778 | 0 |
Initialized a databasefield with the number 1. | private void startDBValue(String target){
database.getReference(gameCodeRef).child(target).setValue(1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Field() {\n value = 0;\n }",
"public IntegerField() {\r this(3, 0, 0, 0);\r }",
"public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }",
"@Override\r\n public List<DbField> initDbField(String controlID) {\n return null;\r\n }",
"public Builder setFiel... | [
"0.6803919",
"0.6640705",
"0.61883783",
"0.60726595",
"0.5792531",
"0.57363385",
"0.57135963",
"0.5693921",
"0.5629311",
"0.56053823",
"0.5599316",
"0.5596846",
"0.5572543",
"0.5569355",
"0.55464",
"0.55349195",
"0.5517477",
"0.54753584",
"0.5470828",
"0.54682845",
"0.5448531... | 0.50723946 | 77 |
Initializes the values in the database | public void initializeGameRoom() {
DatabaseReference game = database.getReference(gameCodeRef);
game.child("NumberOfPlayers").setValue(0);
game.child("PlayersDoneBrainstorming").setValue(0);
game.child("PlayersDoneEliminating").setValue(0);
game.child("AllDoneBrainstorming").setV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initValues() {\n \n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}",
"Values(... | [
"0.72415143",
"0.71450084",
"0.7111421",
"0.70834327",
"0.66712934",
"0.66300136",
"0.6630006",
"0.65931326",
"0.6585253",
"0.65782267",
"0.65484273",
"0.65379024",
"0.6528263",
"0.6509669",
"0.64070356",
"0.6382539",
"0.6374706",
"0.6371908",
"0.63607067",
"0.6337409",
"0.63... | 0.6310352 | 25 |
Sets the gameCodeRef to the current game | @Override
public void setGameCodeRef(String gameCodeRef){
this.gameCodeRef = gameCodeRef;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setGame(Game game) {\n this.game = game;\n }",
"public void setGame(Game g)\r\n\t{\r\n\t\tgame = g;\r\n\t}",
"public void setGame(Game game) {\n this.game = game;\n }",
"void createGameCode(GameCode gameCode);",
"void setGame (Game game) {\n this.game = game;\n }",... | [
"0.61030084",
"0.600516",
"0.5982645",
"0.5980898",
"0.59212077",
"0.5914281",
"0.58156466",
"0.58021307",
"0.5746162",
"0.5736753",
"0.5661602",
"0.56567013",
"0.5616315",
"0.55592453",
"0.5558053",
"0.55183816",
"0.54891056",
"0.5482428",
"0.5480744",
"0.5417632",
"0.540042... | 0.78908336 | 0 |
Sets the nrPlayers to the given value | @Override
public void setNrPlayers(int value) {
this.nrPlayers = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }",
"public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }",
"public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }",
"public void setPlayerNumber... | [
"0.79450196",
"0.7935872",
"0.7121908",
"0.70836014",
"0.6782407",
"0.66791016",
"0.6602108",
"0.658758",
"0.6534241",
"0.65129054",
"0.64881283",
"0.6472078",
"0.6466902",
"0.6424133",
"0.6422792",
"0.63735676",
"0.6358204",
"0.634661",
"0.628081",
"0.62726843",
"0.6270993",... | 0.9028313 | 0 |
Creates a listener that updates the nrPlayers value each time the NumberOfPlayers value in the DB is updated. | @Override
public void setNrPlayersChangedListener() {
database.getReference(gameCodeRef).child("NumberOfPlayers").addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
String value = String.valueOf(snapsh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface RoomNbPlayersCallback {\n void onCallback(long value);\n }",
"void notifyPlayerChanged(PlayerNumber newPlayer);",
"public void getRoomNbPlayersDB(final RoomNbPlayersCallback myCallback, String location) {\n FirebaseDatabase mDatabase = FirebaseDatabase.getInstance();\n ... | [
"0.62660444",
"0.6188508",
"0.5873412",
"0.5813658",
"0.5809205",
"0.57569987",
"0.57261324",
"0.5615186",
"0.55521464",
"0.55357605",
"0.55102605",
"0.5456137",
"0.54458517",
"0.5439049",
"0.5434233",
"0.5420355",
"0.5388777",
"0.5373996",
"0.5361637",
"0.5360676",
"0.535163... | 0.70268005 | 0 |
Adds a new player to the database, and increases the number of players | @Override
public void writeNewPlayer(Player player){
if (gameCodeRef == null){
throw new IllegalStateException("GameRoom is not set");
}
DatabaseReference currentRef = database.getReference(gameCodeRef);
currentRef.child("Players").child(player.getUsername()).setValue(pla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\t\t\tString name = scan.next();\r\n\t\t\t\t\t\r\n\t\t\t//establishing the connection\r\n\t\t\tstatement = connection.createStatement... | [
"0.760491",
"0.72573704",
"0.7243338",
"0.69845456",
"0.69302386",
"0.6924533",
"0.6898035",
"0.6872906",
"0.6855223",
"0.68444675",
"0.68068814",
"0.68040216",
"0.6741173",
"0.67065126",
"0.6666453",
"0.66619223",
"0.6643581",
"0.662264",
"0.66206837",
"0.6566522",
"0.647638... | 0.70915675 | 3 |
Updates the number of different player values: Number of players Players done brainstorming Players done eliminating Calls on internal methods depending on whats being changed. | private void updateNrPlayerValues(String target) {
database.getReference(gameCodeRef).child(target).addListenerForSingleValueEvent(new ValueEventListener()
{
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
String value = String.valueOf(snapshot.getValue());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}",
"private void updatePlayersWorth(){\n for (Player e : playerList) {\n ... | [
"0.7077757",
"0.7035762",
"0.69948125",
"0.69702965",
"0.6860906",
"0.67904365",
"0.67181975",
"0.6693154",
"0.6688415",
"0.6673988",
"0.66665286",
"0.66272193",
"0.65927315",
"0.6535226",
"0.65332896",
"0.650556",
"0.6497468",
"0.6479667",
"0.64683527",
"0.64575493",
"0.6453... | 0.6609076 | 12 |
Checks if all players are done brainstorming by comparing the number of players with the number of players done brainstorming. Sets the field AllDoneBrainstorming to true, PlayersDoneEliminating to 0, and AllDoneEliminating to false | private void checkPlayersDoneBrainstorming(int nrDoneBrainstorming) {
if (nrDoneBrainstorming == nrPlayers){
database.getReference(gameCodeRef).child("AllDoneBrainstorming").setValue(true);
database.getReference(gameCodeRef).child("PlayersDoneEliminating").setValue(0);
databa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkPlayersDoneEliminating(int nrDoneEliminating) {\n if (nrDoneEliminating == nrPlayers){\n database.getReference(gameCodeRef).child(\"AllDoneEliminating\").setValue(true);\n database.getReference(gameCodeRef).child(\"PlayersDoneBrainstorming\").setValue(0);\n ... | [
"0.68080765",
"0.58999085",
"0.57700676",
"0.5751559",
"0.57060504",
"0.5644421",
"0.5632383",
"0.56102914",
"0.5602953",
"0.55554974",
"0.5536772",
"0.55304027",
"0.5514823",
"0.5496973",
"0.5495052",
"0.5489859",
"0.54174286",
"0.5413321",
"0.5405954",
"0.5381949",
"0.53792... | 0.7268466 | 0 |
Checks if all players are done eliminating by comparing the number of players with the number of players done eliminating. Sets the field AllDoneEliminating to true, PlayersDoneBrainstorming to 0, and AllDoneBrainstorming to false | private void checkPlayersDoneEliminating(int nrDoneEliminating) {
if (nrDoneEliminating == nrPlayers){
database.getReference(gameCodeRef).child("AllDoneEliminating").setValue(true);
database.getReference(gameCodeRef).child("PlayersDoneBrainstorming").setValue(0);
database.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkPlayersDoneBrainstorming(int nrDoneBrainstorming) {\n if (nrDoneBrainstorming == nrPlayers){\n database.getReference(gameCodeRef).child(\"AllDoneBrainstorming\").setValue(true);\n database.getReference(gameCodeRef).child(\"PlayersDoneEliminating\").setValue(0);\n ... | [
"0.65164",
"0.5664674",
"0.5652523",
"0.5495186",
"0.54689467",
"0.5462751",
"0.5455661",
"0.5453483",
"0.54456335",
"0.5428715",
"0.54035723",
"0.5340873",
"0.53356415",
"0.53218496",
"0.5312907",
"0.53124243",
"0.526904",
"0.52687126",
"0.52489036",
"0.52348745",
"0.5232934... | 0.70947164 | 0 |
Sets the player field "DoneBrainstorming" to given value for a selected player. If the value is true it updates the PlayersDoneBrainstorming field in the database | @Override
public void setPlayerDoneBrainstorming(Player player, boolean value){
DatabaseReference currentRef = database.getReference(gameCodeRef).child("Players").child(player.getUsername());
currentRef.child("DoneBrainstorming").setValue(value);
if(value){
updateNrPlayerValues("... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setPlayerDoneEliminating(Player player, boolean value) {\n DatabaseReference currentRef = database.getReference(gameCodeRef).child(\"Players\").child(player.getUsername());\n currentRef.child(\"DoneEliminating\").setValue(value);\n if(value){\n updateNrPla... | [
"0.6681529",
"0.66558194",
"0.58751595",
"0.55911547",
"0.55102587",
"0.55057037",
"0.54615325",
"0.5444105",
"0.5436171",
"0.54254985",
"0.53895754",
"0.53471553",
"0.5291201",
"0.52427596",
"0.5230458",
"0.51894504",
"0.51780665",
"0.5152055",
"0.5117819",
"0.51166236",
"0.... | 0.8326602 | 0 |
Sets the player field "DoneEliminating" to given value for a selected player. If the value is true it updates the PlayersDoneEliminating field in the database | @Override
public void setPlayerDoneEliminating(Player player, boolean value) {
DatabaseReference currentRef = database.getReference(gameCodeRef).child("Players").child(player.getUsername());
currentRef.child("DoneEliminating").setValue(value);
if(value){
updateNrPlayerValues("Pla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setPlayerDoneBrainstorming(Player player, boolean value){\n DatabaseReference currentRef = database.getReference(gameCodeRef).child(\"Players\").child(player.getUsername());\n currentRef.child(\"DoneBrainstorming\").setValue(value);\n if(value){\n updateNr... | [
"0.641798",
"0.62074167",
"0.5567685",
"0.5537385",
"0.54358953",
"0.5409029",
"0.5378445",
"0.535365",
"0.5348681",
"0.53353024",
"0.5331715",
"0.5318771",
"0.53008765",
"0.5276042",
"0.5259469",
"0.52056324",
"0.517578",
"0.5173195",
"0.51689374",
"0.51668173",
"0.5158018",... | 0.79034 | 0 |
Listener for allDoneBrainstorming Informs the controller that everyone is done brainstorming | @Override
public void setAllDoneBrainstormingChangedListener() {
database.getReference(gameCodeRef).child("AllDoneBrainstorming").addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
String stringValue =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void done()\n\t{\n\t\tgetController().done();\n\t}",
"@Override\n public void setFinished() {\n finishedBanking = true;\n }",
"private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}"... | [
"0.59672153",
"0.5706678",
"0.5685895",
"0.56581634",
"0.5585082",
"0.54582506",
"0.5428556",
"0.5428556",
"0.54280525",
"0.54109514",
"0.54066867",
"0.54066867",
"0.54066867",
"0.54053175",
"0.53914434",
"0.5374124",
"0.53552043",
"0.5353591",
"0.5345121",
"0.5342092",
"0.53... | 0.0 | -1 |
Listener for AllDoneEliminating Informs the controller that the players are done eliminating | @Override
public void setAllDoneEliminatingChangedListener() {
database.getReference(gameCodeRef).child("AllDoneEliminating").addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
String stringValue = Str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}",
"public void processEliminar() {\n }",
"private void quit() {\n\t\t\tArrayList<ClientThread> delList = ne... | [
"0.6018421",
"0.59518254",
"0.58729625",
"0.5856929",
"0.5819042",
"0.58111334",
"0.580402",
"0.5794528",
"0.5786696",
"0.5780891",
"0.5705528",
"0.565968",
"0.5644352",
"0.56393313",
"0.5629771",
"0.56222236",
"0.560471",
"0.56032866",
"0.56017286",
"0.5597914",
"0.5580557",... | 0.0 | -1 |
Updates the player's list of brains with a given ArrayList of brains | @Override
public void setPlayerBrainList(Player player, ArrayList<Brain> brains) {
DatabaseReference currentRef = database.getReference(gameCodeRef).child("Players").child(player.getUsername());
currentRef.child("BrainList").setValue(brains);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BowlingGame(List<BowlingPlayer> bowlingPlayers){\n _bowlingPlayers = bowlingPlayers;\n }",
"void updateBetsResults(ArrayList<Bet> allBetsOfMatch) throws DAOException;",
"void updateLeaderSlot(String username, ArrayList<LightLeaderCard> leaderSlot);",
"public void updateLobby(Set<String> play... | [
"0.65133876",
"0.58506536",
"0.58499163",
"0.5844934",
"0.58153224",
"0.57061976",
"0.56618124",
"0.5631095",
"0.5593717",
"0.55331236",
"0.54927397",
"0.54896283",
"0.54783815",
"0.5474074",
"0.5471707",
"0.5466119",
"0.5457933",
"0.54514664",
"0.541447",
"0.5400595",
"0.539... | 0.7500451 | 0 |
Gets all the brains saved in the database for the game, and saves them in a dataholder class. | @Override
public void getAllBrains(Dataholder dataholder) {
database.getReference(gameCodeRef).child("Players").addListenerForSingleValueEvent(new ValueEventListener()
{
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
ArrayList<Brain> brai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}",
"public void saveBorrowings() {\n\t}",
"@Override\r\n\tpublic List<Buss> findbid() {\n\t\treturn dao.findbid();\r\n\t}",
"public ArrayList<Bike> getAllAvailableBikes() {\n bikelist = new ArrayList<>();\n \n... | [
"0.592895",
"0.57870656",
"0.5779027",
"0.5776196",
"0.57653886",
"0.57301885",
"0.56986886",
"0.5669815",
"0.56642973",
"0.5651253",
"0.5588436",
"0.55846506",
"0.5551296",
"0.5522019",
"0.5512533",
"0.5467831",
"0.54574895",
"0.541328",
"0.54058766",
"0.5394261",
"0.5388397... | 0.65363234 | 0 |
Sets the variable "StartGame" to true | @Override
public void setStartGame() {
database.getReference(gameCodeRef).child("StartGame").setValue(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startGame() {\n \t\ttimeGameStarted = System.nanoTime();\n \t\tisStarted = true;\n \n \t}",
"public void startGame() {\r\n this.setupGame();\r\n }",
"public void startGame() \n\t{\n\t\tgamePanel.startGame();\n\t}",
"private void startGame() {\r\n gameRunning = true;\r\n gameW... | [
"0.7932197",
"0.76830125",
"0.75743616",
"0.7549111",
"0.751591",
"0.75136787",
"0.75116485",
"0.74995714",
"0.7451776",
"0.73699427",
"0.7307206",
"0.73016703",
"0.7300614",
"0.7253851",
"0.7223504",
"0.7181396",
"0.7138277",
"0.7116495",
"0.71038175",
"0.71038175",
"0.71038... | 0.8164419 | 0 |
Sets a listener for the variable "StartGame" and notifies the controller when its set to true. | @Override
public void setStartGameChangedListener() {
database.getReference(gameCodeRef).child("StartGame").addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
String stringValue = String.valueOf(snapsh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void start() {\n \tthis.currentState = this.initialState;\n \tstop=false; //indica que el juego no se ha detenido\n \tnotifyObservers(new GameEvent<S, A>(EventType.Start,null,currentState,\n \t\t\t\t\tnull,\"The game started\"));\n\n }",
"public void startGame() {\n \t\tcontroller = new Gam... | [
"0.6897829",
"0.68804216",
"0.6727288",
"0.6653285",
"0.6570202",
"0.6437939",
"0.63963354",
"0.6359516",
"0.6336541",
"0.6328113",
"0.63271695",
"0.63230395",
"0.6319155",
"0.6314938",
"0.62342155",
"0.6222789",
"0.6214617",
"0.62026405",
"0.61897886",
"0.61254114",
"0.60955... | 0.6273183 | 14 |
if (event.getClickCount() < 2) return; | public void tableClicked(KDTMouseEvent event) {
int iIndex = kdtRWOItemSpEntry.getColumnIndex("i");
int colIndex = event.getColIndex();
int rowIndex = event.getRowIndex();
IEnum newIType = null;
IRow row = kdtRWOItemSpEntry.getRow(rowIndex);
if (iIndex == colIndex) { // I状态
IEnum iTyp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) {\n getDoubleClick();\n }\n }",
"protected void dopositiveClick2() {\n\n }",
"public static void clickEvent() {\n counterClicks += 1;\n }",
"@Override\r\n\tpu... | [
"0.74183923",
"0.6759659",
"0.67134464",
"0.6703238",
"0.66576153",
"0.66223514",
"0.6594924",
"0.6594924",
"0.65758806",
"0.6563159",
"0.6556339",
"0.647464",
"0.6442416",
"0.63698936",
"0.63688636",
"0.63169986",
"0.631569",
"0.63138527",
"0.6309551",
"0.6309302",
"0.629405... | 0.0 | -1 |
KDTSelectManager selectManager = kdTable.getSelectManager(); KDTSelectBlock selectBlock = selectManager.get(0); | private void prmtRepairItem_dataChange(KDTable kdTable,
RepairItemEntryInfo[] repairItemEntryInfos) {
try {
super.isNotNull();
} catch (Exception e) {
UIUtils.handUIExceptionAndAbort(e);
}
if (PublicUtils.isEmpty(txtMile.getText())) {
MsgBoxEx.showInfo("进厂行驶里程不能为空");
return;
}
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Select getSelect()\n {\n return select;\n }",
"@Override\n\tpublic void select() {\n\t}",
"private void MenuBlockStartActionPerformed(java.awt.event.ActionEvent evt) {\n BlockStart = this.jTable1.getSelectedRow();\n }",
"public void select() {}",
"public void select();",
"public voi... | [
"0.5787117",
"0.55516404",
"0.5533364",
"0.55135757",
"0.5369034",
"0.53654176",
"0.5347834",
"0.53313607",
"0.5290957",
"0.52807844",
"0.5270662",
"0.52602524",
"0.5256539",
"0.52512264",
"0.52269727",
"0.5222093",
"0.5216575",
"0.52134794",
"0.5213459",
"0.5208335",
"0.5207... | 0.0 | -1 |
kdtRWOItemSpEntry.getColumn("originalEntryId").getStyleAttributes(). setHided(false); kdtRWOItemSpEntry.getColumn("originalQty").getStyleAttributes(). setHided(false); | @Override
public void actionSplitLine_actionPerformed(ActionEvent e) throws Exception {
// kdtRWOItemSpEntry.getColumn("originalQty").getStyleAttributes().
// setHided(false);
if (PublicUtils.isEmpty(editData.getString("id"))) {
throw new EASBizException(new NumericExceptionSubItem("",
"未保存工单,不允许分... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void hideColumn() {\n remindersTable.getColumnModel().getColumn(0).setMinWidth(0);\n remindersTable.getColumnModel().getColumn(0).setMaxWidth(0);\n remindersTable.getColumnModel().getColumn(0).setWidth(0);\n }",
"public void getGroupHideColumn() {\r\n\t\tString showHide = FacesCon... | [
"0.5920909",
"0.5917374",
"0.5873319",
"0.58657736",
"0.58650845",
"0.5834518",
"0.5582152",
"0.52953154",
"0.5191816",
"0.51872337",
"0.5172309",
"0.51218635",
"0.5094027",
"0.5084632",
"0.5073455",
"0.50690365",
"0.5067069",
"0.5056764",
"0.5047959",
"0.5047285",
"0.5038163... | 0.51632595 | 11 |
Auto wired constructor with dependencies. | public CreateElectionParametersShellComponent(final CryptographyHelper cryptographyHelper) {
this.cryptographyHelper = cryptographyHelper;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutowireService() {\n\t\tSystem.out.println(\"Default constructor used\");\n\t}",
"public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }",
"public Dependency() \r\n {\r\n }",
"private ServiceLocator(){}",
"private ServiceFactory() {}",
"p... | [
"0.7149536",
"0.6602515",
"0.65193343",
"0.636442",
"0.6360622",
"0.63315916",
"0.6276332",
"0.6249655",
"0.62393075",
"0.6213136",
"0.62127435",
"0.62095886",
"0.62040365",
"0.6190298",
"0.61614794",
"0.61542016",
"0.61536974",
"0.6151307",
"0.613872",
"0.61229384",
"0.61024... | 0.0 | -1 |
Constructor allow the fields to be set. | public CreateElectionParametersOptions(final File publish, final String name, final boolean noTellers, final int numberOfTellers, final int thresholdTellers,
final int dsaL, final int dsaN, final int primeCertainty) {
this.publish = publish;
this.name = name;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"private Request() {\n initFields();\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"public Field() {\r\n\t}",
"public Field(){\n\n // this(\"\",\"\",\"\",... | [
"0.74948794",
"0.70504737",
"0.6923182",
"0.6881568",
"0.6870727",
"0.68705857",
"0.6831775",
"0.6796321",
"0.67710143",
"0.6767139",
"0.6753934",
"0.6724847",
"0.67184263",
"0.6717854",
"0.6706322",
"0.6698559",
"0.66817945",
"0.66525406",
"0.6649274",
"0.66359514",
"0.66179... | 0.0 | -1 |
Constructor for reflective instantiation. | private CreateElectionParametersOptions() {
// Do nothing.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"Reproducible newInstance();",
"public Reflect() {\n this(MethodReflectorFactory.class);\n }",
"protected abstract void construct();",
"defaultConstructor(){}",
"public Constructor(){\n\t\t\n\t}",
"private ReflectionUtil()\n {\n }",
"private void __sep__Con... | [
"0.7881425",
"0.7317621",
"0.70323783",
"0.679486",
"0.66558707",
"0.65678525",
"0.6565601",
"0.65541065",
"0.6519801",
"0.6501306",
"0.6494287",
"0.649358",
"0.6485318",
"0.6433569",
"0.6389513",
"0.6367162",
"0.6342249",
"0.63359755",
"0.6332813",
"0.632344",
"0.6306783",
... | 0.0 | -1 |
Created by Code Generator on 20191014 | public interface QueryAllianceDao extends BaseMapper<Alliance> {
//
List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param("record") AllianceRecord record,
@Param("search") String search, @Param("orderBy") String orderBy,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
... | [
"0.59231997",
"0.58876604",
"0.5847965",
"0.5750648",
"0.57480264",
"0.57480264",
"0.5686354",
"0.5647087",
"0.56393373",
"0.5601981",
"0.5601981",
"0.5601981",
"0.5601981",
"0.5601981",
"0.5601981",
"0.5601981",
"0.55949086",
"0.5587495",
"0.5576187",
"0.55725724",
"0.556254... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int calculate(int a, int b) {
return (a + b) * 2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7249256",
"0.72037125",
"0.7197713",
"0.7180111",
"0.71107703",
"0.70437056",
"0.70412415",
"0.7014533",
"0.7011124",
"0.6983377",
"0.69496083",
"0.69436663",
"0.69371194",
"0.69207716",
"0.69207716",
"0.6893342",
"0.6886841",
"0.6879545",
"0.6877086",
"0.68662405",
"0.686... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
// noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577... | 0.0 | -1 |
Refer to the javadoc for ConnectionResult to see what error codes might be returned in onConnectionFailed. | @Override
public void onConnectionFailed(ConnectionResult result) {
Log.i(TAG, "Connection failed: ConnectionResult.getErrorCode() = " + result.getErrorCode());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConn... | [
"0.8234315",
"0.81696045",
"0.81696045",
"0.81696045",
"0.8165342",
"0.815472",
"0.815381",
"0.81204534",
"0.8109111",
"0.8099556",
"0.80961084",
"0.8075019",
"0.8059573",
"0.80544144",
"0.8042482",
"0.79683757",
"0.79420555",
"0.7930617",
"0.79002225",
"0.78676206",
"0.78069... | 0.8279333 | 0 |
The connection to Google Play services was lost for some reason. We call connect() to attempt to reestablish the connection. | @Override
public void onConnectionSuspended(int cause) {
Log.i(TAG, "Connection suspended");
mGoogleApiClient.connect();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void connectGoogleApiAgain(){\n if (!mGoogleApiClient.isConnected()) {\n ConnectionResult connectionResult =\n mGoogleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n Log.e(TAG, \"DataLayerListenerServ... | [
"0.75260144",
"0.7320096",
"0.7318053",
"0.7318053",
"0.7318053",
"0.7318053",
"0.7318053",
"0.7318053",
"0.7318053",
"0.7292153",
"0.7290903",
"0.7174132",
"0.7091109",
"0.699247",
"0.68724185",
"0.68633896",
"0.68633896",
"0.68051785",
"0.6798532",
"0.6765093",
"0.6623286",... | 0.69638294 | 14 |
/ Query the USGS API for data at the end of interval | private void createAndStartTimer() {
CountDownTimer timer = new CountDownTimer(INTERVAL, SECOND) {
@Override
public void onTick(long millisUntilFinished) { }
@Override
public void onFinish() {
/* Get the saved JSON file and store in variable */
/* will be implemented later *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\... | [
"0.6212057",
"0.584421",
"0.56214297",
"0.5593522",
"0.55005574",
"0.5422862",
"0.53591996",
"0.5297793",
"0.52971566",
"0.5282749",
"0.52454376",
"0.5243795",
"0.5228543",
"0.52189",
"0.5205255",
"0.5198698",
"0.51564485",
"0.51439816",
"0.5135881",
"0.5134343",
"0.5132579",... | 0.0 | -1 |
/ Get the saved JSON file and store in variable / will be implemented later / Get the new JSON file | @Override
public void onFinish() {
Log.d("timer", "finished one timer cycle");
new DownloadDataTask().execute(USGS_URL);
try {
// get the most recent earthquake
mostRecentEarthquake = getFirstEarthquakeFromJson();
} catch (JSONException e) {
e.printSta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\r\n\tInputStream is = new FileInputStream(jsonFilePath);\r\n\tJsonReader jsonReader = Json.createReader(is);\r\n\tJsonObject json = jsonReader.readObject();\r\n\tjsonReader.close();\r\n\tis.close();\r\n\treturn json;\r\n }",
"private vo... | [
"0.63788867",
"0.63785064",
"0.6332725",
"0.63288766",
"0.63201225",
"0.63055235",
"0.62892306",
"0.62493306",
"0.62434137",
"0.62407494",
"0.619948",
"0.61920756",
"0.6190414",
"0.61767596",
"0.6175056",
"0.61669457",
"0.6144824",
"0.6142312",
"0.613334",
"0.61082447",
"0.60... | 0.0 | -1 |
scanner class object creation | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// input from user
System.out.print("Enter Starting Number : ");
int start = sc.nextInt();
System.out.print("Enter Ending Number : ");
int end = sc.nextInt();
System.out.println("Prime numbers between " + start + " and " + end +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CoolParser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(java_cup.runtime.Scanner s) {super(s);}",
"public parser(ja... | [
"0.6853074",
"0.6829428",
"0.6829428",
"0.6829428",
"0.6829428",
"0.6829428",
"0.6829428",
"0.6829428",
"0.6829428",
"0.6815232",
"0.6815232",
"0.6815232",
"0.6815232",
"0.6815232",
"0.6815232",
"0.6786842",
"0.6741533",
"0.6686122",
"0.66069704",
"0.66069704",
"0.6507213",
... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.login, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.72500116",
"0.7204146",
"0.71987385",
"0.7180757",
"0.71107906",
"0.7043322",
"0.7041613",
"0.7015376",
"0.7013112",
"0.6982869",
"0.69475657",
"0.6941377",
"0.6937569",
"0.69213736",
"0.69213736",
"0.6892679",
"0.6887231",
"0.6877873",
"0.68772626",
"0.68644464",
"0.68644... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7904231",
"0.78061396",
"0.7767007",
"0.77273244",
"0.76318634",
"0.7621818",
"0.7585249",
"0.7531511",
"0.7488678",
"0.74574006",
"0.74574006",
"0.7439257",
"0.7421747",
"0.7403457",
"0.73920685",
"0.7387285",
"0.7379893",
"0.73710734",
"0.7363068",
"0.73565257",
"0.73461... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
WebDriver driver=new ChromeDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.get("file:///E:/Qspiders/Notes/Selenium%20notes/Upload.html");
String rpath = "./TestData/URL.txt";
System.out.print... | {
"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 |
Created by Julian on 12/23/2015. | public interface ResourcePaths {
String imageFolderPath();
String imageResourcePath();
String videoFolderPath();
String videoResourcePath();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"private void m50366E() {\n }",
... | [
"0.5749408",
"0.5733485",
"0.5691969",
"0.56711197",
"0.56481755",
"0.56338817",
"0.56287795",
"0.5628299",
"0.5613484",
"0.5582988",
"0.55688846",
"0.55435395",
"0.5530329",
"0.55256176",
"0.55256176",
"0.5520307",
"0.5514745",
"0.55108774",
"0.550145",
"0.5468344",
"0.54371... | 0.0 | -1 |
/~ constructors Dear JPA ... | protected LocationPK() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected CompanyJPA() {\n\t}",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"protected JpaModule() {\n }",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"protected void entityInit() {}",
"public NamedEntity() {}",
"private AdminEntity() {\n \tsuper();\... | [
"0.709997",
"0.6590552",
"0.6524255",
"0.6348252",
"0.62945795",
"0.62742096",
"0.6267447",
"0.6264553",
"0.62268215",
"0.6192787",
"0.6187149",
"0.6163689",
"0.6137692",
"0.61270005",
"0.6119572",
"0.6067697",
"0.6063403",
"0.60300106",
"0.60267395",
"0.6016325",
"0.6006536"... | 0.0 | -1 |
Create a new builder instance to create LocationPK from. | public static Builder newBuilder() {
return new Builder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LocationBuilder() {\n super(\"locations\");\n }",
"private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"protected LocationPK() {\n super();\n }",
"private LocationProtocol(com.google.protobuf.GeneratedMessageV3.Builder<?> bu... | [
"0.70768183",
"0.6647645",
"0.65161836",
"0.63645816",
"0.6124453",
"0.6083423",
"0.5981626",
"0.58737534",
"0.57379574",
"0.57379574",
"0.57379574",
"0.56913275",
"0.568286",
"0.56506985",
"0.56062806",
"0.56006193",
"0.56006193",
"0.56006193",
"0.558154",
"0.55652875",
"0.5... | 0.0 | -1 |
/~ methods Get the area region. | public String getArea() {
return this.area;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"IRegion getRegion();",
"public abstract int getArea();",
"public Rectangle getArea() {\n return area;\n }",
"public CoordinateRadius getRegion();",
"public int getArea() {\n\t\treturn area;\n\t}",
"public int getArea()\n {\n return area;\n }",
"public TypeOfRegion getRegion();",
... | [
"0.7903885",
"0.7709677",
"0.766932",
"0.7522972",
"0.7504434",
"0.7475805",
"0.7456614",
"0.74527776",
"0.7445367",
"0.7445367",
"0.7445367",
"0.7422934",
"0.7422934",
"0.7385808",
"0.7385808",
"0.7385808",
"0.7368982",
"0.7355744",
"0.73375696",
"0.73375696",
"0.73375696",
... | 0.7431284 | 11 |
Get the aisle region. | public String getAisle() {
return this.aisle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"IRegion getRegion();",
"public CoordinateRadius getRegion();",
"public EnumRegion getRegion()\n {\n return region;\n }",
"public TypeOfRegion getRegion();",
"public Region getRegion() {\n return region;\n }",
"Region region();",
"Region region();",
"Region region();",
"Region region(... | [
"0.7917981",
"0.71359986",
"0.7089115",
"0.70592713",
"0.6994784",
"0.69043607",
"0.69043607",
"0.69043607",
"0.69043607",
"0.69025606",
"0.6840478",
"0.67617303",
"0.67617303",
"0.67617303",
"0.67517805",
"0.6748365",
"0.6743939",
"0.6743939",
"0.6743939",
"0.6743939",
"0.67... | 0.0 | -1 |
Return a String like AREA/AISLE/X/Y/Z. | @Override
public String toString() {
return this.area + "/" + this.aisle + "/" + this.x + "/" + this.y + "/" + this.z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String land() {\r\n\t\tint[] temp=tile.getLand();\r\n\t\tString out=\"Tile Land: \\n\\n\";\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.leng... | [
"0.60642606",
"0.60327536",
"0.5913798",
"0.58958215",
"0.58670825",
"0.58548224",
"0.5766822",
"0.5704158",
"0.5683854",
"0.5645434",
"0.5545053",
"0.5545053",
"0.5545053",
"0.5545053",
"0.5545053",
"0.5545053",
"0.5545053",
"0.5545053",
"0.55249155",
"0.5516606",
"0.5475556... | 0.6376056 | 0 |
Converts AccountEntity object into AccountDto object and returns it. AccountDto object contains current account balance information. Method accepts AccountNumberDto as parameter. | @Override
public AccountDto getBalance(AccountNumberDto accountNumber) {
AccountEntity accountEntity = new AccountDaoImpl(new StatementsRunnerImpl()).readBalance(accountNumber);
return new AccountDto(accountEntity.getId(), accountNumber.getAccountNumber(), accountEntity.getCurrency());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AccountDto getBalanceFor(UUID accountId) {\n Account account = repository.getAccount(accountId);\n return getAccountDtoFor(account);\n }",
"AccountDTO toDTO(Account account);",
"Account toDomain(AccountDTO accountDto);",
"Account coverEmpDTOToAccount(AccountDTO accountDTO);",
"AccountDTO cove... | [
"0.75170684",
"0.719183",
"0.669086",
"0.65872043",
"0.6369819",
"0.624895",
"0.6181215",
"0.608207",
"0.5953702",
"0.5769916",
"0.5674819",
"0.56470186",
"0.56389683",
"0.5581933",
"0.557917",
"0.5570979",
"0.55658776",
"0.55540174",
"0.5548535",
"0.55280596",
"0.5517304",
... | 0.7383558 | 1 |
Method accepts ChangeBalanceDto object and returns nothing. Calls changeBalance method from DAO layer. | @Override
public void changeBalance (ChangeBalanceDto changeBalanceDto) {
new AccountDaoImpl(new StatementsRunnerImpl()).changeBalance(changeBalanceDto);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int updateBalance(CardVO cv) throws RemoteException;",
"public void changeBalance (int amount){\n balance += amount;\n }",
"public void setBalance(){\n balance.setBalance();\n }",
"public void editBalance() {\n\t\tAccount account = getAccountForEditBalance();\n\n\t\tif (adminDao.editBalan... | [
"0.60450137",
"0.6013407",
"0.5940314",
"0.5894107",
"0.5883125",
"0.58376694",
"0.5831541",
"0.58002967",
"0.57803637",
"0.57658315",
"0.5764399",
"0.5700969",
"0.56888425",
"0.56888425",
"0.5678654",
"0.56724006",
"0.5656092",
"0.5646212",
"0.5597202",
"0.5596356",
"0.55913... | 0.7948502 | 0 |
Get LP Scale array. | public byte[] parseLPScale(){
byte[] scale = new byte[2];
scale[0] = data[OFS_ARP_SCALE];
scale[1] = data[OFS_ARP_SCALE];
return scale;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_SCALE);\n }",
"int getScale();",
"private int[] createScale(int octave, int rootNote, ArrayList<Integer> targetMode) {\n int[] sca... | [
"0.6558298",
"0.58568",
"0.5837136",
"0.5815511",
"0.57637316",
"0.5712733",
"0.5711864",
"0.571005",
"0.5701254",
"0.5693912",
"0.5691564",
"0.5691564",
"0.5686932",
"0.56671035",
"0.56594104",
"0.56464994",
"0.5643816",
"0.5637163",
"0.56163573",
"0.5604739",
"0.5600512",
... | 0.7356033 | 0 |
Get Active Power+ Scale. | public byte parseAPScale(){
return data[OFS_ARP_SCALE];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EDataType getActivePower();",
"public String getCurrentScale() {\n return currentScale;\n }",
"public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_SCALE);\n }",
"public Scale ge... | [
"0.7172796",
"0.6904203",
"0.6753756",
"0.6675848",
"0.66752213",
"0.6637146",
"0.65991956",
"0.64964926",
"0.64964926",
"0.64617264",
"0.64473855",
"0.6403717",
"0.64027154",
"0.6396282",
"0.63418007",
"0.6338014",
"0.6337997",
"0.6332791",
"0.6314179",
"0.6307078",
"0.63047... | 0.5721868 | 82 |
Get Reactive Power+ Scale. | public byte parseRPScale(){
return data[OFS_ARP_SCALE];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EDataType getReactivePower();",
"public Scale getScale() {\n return this.scale;\n }",
"public TempScale getInputScale() {return inputScale;}",
"float getPower();",
"public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return ... | [
"0.76364636",
"0.68352973",
"0.68317777",
"0.6827721",
"0.67701256",
"0.672546",
"0.6718631",
"0.6692529",
"0.66924167",
"0.6683051",
"0.6683051",
"0.66534925",
"0.6651021",
"0.66433764",
"0.664122",
"0.6636017",
"0.6609446",
"0.6604239",
"0.6582359",
"0.65811247",
"0.6557087... | 0.0 | -1 |
Created by Calcious on 12/2/16. | public interface validator {
//what are the minimum requirements
//what we need for our methods
//write down the methods/processes that are in common
//define the methods
public boolean isValid();
public String errorMessage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true... | [
"0.58188623",
"0.57748294",
"0.573876",
"0.56648135",
"0.56648135",
"0.566126",
"0.5650107",
"0.5606125",
"0.56050503",
"0.5571725",
"0.5563394",
"0.55474335",
"0.55448365",
"0.5544657",
"0.55357045",
"0.5517727",
"0.55038357",
"0.5501267",
"0.54907244",
"0.5486836",
"0.54853... | 0.0 | -1 |
what are the minimum requirements what we need for our methods write down the methods/processes that are in common define the methods | public boolean isValid(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void additionalProcessing() {\n\t}",
"public void process() {\n\t}",
"public void backEndProcesses() {\n\n }",
"public abstract boolean process();",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public static void main(String [] args){\n \n \tpart1();\n \n \tpart2();\n ... | [
"0.63546807",
"0.5892632",
"0.5882792",
"0.5824134",
"0.5802987",
"0.57665217",
"0.5755918",
"0.57446015",
"0.57306665",
"0.5630638",
"0.55391115",
"0.55391115",
"0.5523474",
"0.5523474",
"0.5520888",
"0.5516604",
"0.54960674",
"0.54926735",
"0.5474654",
"0.54703224",
"0.5432... | 0.0 | -1 |
Constructor voor de class table | public Tabel(Object[][] data, String[] header) {
super(data, header);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MultTable() //do not use the name of the constructor for the name of another method\n {}",
"public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }",
"public DatabaseTable() { }",
"public SwitchColTable() {\r\r\r\r\n }",
"public CursosTable() {\n \n \n ... | [
"0.7645842",
"0.73702276",
"0.7334134",
"0.7208463",
"0.71410793",
"0.7105291",
"0.7102943",
"0.70980597",
"0.70932144",
"0.70684105",
"0.69868577",
"0.6969184",
"0.68924177",
"0.6866195",
"0.68568885",
"0.68094236",
"0.68062335",
"0.67980444",
"0.6796995",
"0.6761718",
"0.67... | 0.0 | -1 |
De constructor voor de class Tabel | public Tabel(SearchModel model) {
super(model.getData(), model.getHeader());
dataModel = model;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TTau() {}",
"public DetalleTablaComplementario() {\r\n }",
"public Tabono() {\n }",
"public Tabuada() {\n initComponents();\n }",
"public TelaContaUnica() {\n initComponents();\n }",
"public Tra() {\n super();\n initComponents();\n loadData();\n }"... | [
"0.72951734",
"0.72368085",
"0.71713656",
"0.7135787",
"0.7133217",
"0.7115089",
"0.70941705",
"0.7026592",
"0.7015128",
"0.6992988",
"0.6992988",
"0.6991808",
"0.6991554",
"0.69902414",
"0.6980354",
"0.69663495",
"0.69608414",
"0.6947428",
"0.69432616",
"0.6929799",
"0.69006... | 0.703254 | 7 |
Met deze methode wordt de data in de tabel aangepast door het TableModel te wijzigen. | public void changeData() {
DefaultTableModel dtm = new DefaultTableModel(dataModel.getData(),
dataModel.getHeader());
setModel(dtm);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getI... | [
"0.72926325",
"0.7017664",
"0.6992412",
"0.69623023",
"0.6904483",
"0.6897858",
"0.68733174",
"0.68350196",
"0.67995",
"0.6782475",
"0.67808384",
"0.6768116",
"0.6713612",
"0.6686993",
"0.6684211",
"0.6673062",
"0.6647151",
"0.6637408",
"0.66334474",
"0.66313624",
"0.66285884... | 0.65755284 | 27 |
Met deze methode wordt de data in de tabel aangepast door het TableModel te wijzigen. | public void changeData(Object[][] data, String[] header) {
DefaultTableModel dtm = new DefaultTableModel(data, header);
setModel(dtm);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getI... | [
"0.72920996",
"0.70169073",
"0.69914114",
"0.696322",
"0.69038564",
"0.68977416",
"0.687209",
"0.68341696",
"0.67995375",
"0.67816603",
"0.6780183",
"0.6767789",
"0.67128634",
"0.66866696",
"0.66822296",
"0.6672459",
"0.6647186",
"0.6636696",
"0.66323",
"0.66313785",
"0.66283... | 0.0 | -1 |
De methode voor de rendersetup. | public void setupRenderer(int column) {
tcm = this.getColumnModel();
tcm.getColumn(column).setCellRenderer(new NumberRenderer());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setupRender() {\n\t\tif (!init()) {\n\t\t\tisAccess = false;\n\t\t\treturn;\n\t\t}\n\t}",
"@Override\n public void beforeRender()\n {\n\n }",
"void setupRender() {\n\t\t_highlightFacilityId = _facilityId;\n\t}",
"public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\... | [
"0.76984274",
"0.7262248",
"0.71952367",
"0.71206677",
"0.7119788",
"0.7043017",
"0.7042241",
"0.7042241",
"0.7042241",
"0.7042241",
"0.7042241",
"0.7042241",
"0.7025864",
"0.7003666",
"0.6986758",
"0.6985571",
"0.6974754",
"0.6973534",
"0.6967676",
"0.69333684",
"0.6931241",... | 0.0 | -1 |
SETTERS MENU ACTIONS Configure RecyclerView, Adapter, LayoutManager & glue it together | private void configureRecyclerView(){
// - Reset list
this.users = new ArrayList<>();
// - Create adapter passing the list of Restaurants
this.mCoworkerAdapter = new CoWorkerAdapter(this.users, Glide.with(this), true);
// - Attach the adapter to the recyclerview to populate ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id=item.getItemId();\n\t\tswitch (id) {\n\t\tcase R.id.action_listview:\n\t\t\tLinearLayoutManager linearLayoutManager= new LinearLayoutManager(this);\n\t\t\tmRecyclerView.setLayoutManager(linearLayoutManager);\n\t\t\tbreak;\n\t\tcase R.id... | [
"0.6873889",
"0.6513224",
"0.6327247",
"0.6310091",
"0.6280005",
"0.62415504",
"0.6238787",
"0.6207353",
"0.61603194",
"0.6140465",
"0.61153185",
"0.6114198",
"0.6096654",
"0.6065348",
"0.6030387",
"0.60130346",
"0.59974927",
"0.5993885",
"0.59823924",
"0.5966547",
"0.5947612... | 0.5706812 | 51 |
Set the user that will eat to this restaurant | public void updateUser() {
users.clear();
RestaurantHelper.getCollectionFromARestaurant(currentRest.getPlaceId(), "luncherId").addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
@Override
public void onComplete(@NonNull Task<QuerySnapshot> task) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setRestaurant(RestaurantChung restaurant) {\n\t\t\n\t}",
"public void setRestaurant(Restaurant restaurant) {\n this.restaurant = restaurant;\n }",
"public void setUser(String user)\n {\n _user = user;\n }",
"public void addRestaurant(UserRestaurant restaurant) {\n\tif (re... | [
"0.6773287",
"0.6707321",
"0.64366275",
"0.6426011",
"0.63916594",
"0.63760376",
"0.6369457",
"0.6353541",
"0.63224256",
"0.62994874",
"0.62994874",
"0.62994874",
"0.62994874",
"0.62374854",
"0.6232334",
"0.6229307",
"0.62104875",
"0.61546004",
"0.6115846",
"0.61080927",
"0.6... | 0.5704301 | 80 |
Style for floating button | @OnClick(R.id.floating_button_go)
public void floatingButtonClick(){
if(imIn){
floatingButton.setImageDrawable(getResources().getDrawable(R.drawable.baseline_check_circle_grey_48));
UserHelper.updateLunchId(getCurrentUser().getUid(), "").addOnCompleteListener(new OnCompleteListene... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void floatingMenu(){\n btn_main = findViewById(R.id.fab_main);\n btn_lang = findViewById(R.id.fab_language);\n btn_profil = findViewById(R.id.fab_profil);\n\n btn_lang.setTranslationY(translationY);\n btn_profil.setTranslationY(translationY);\n\n btn_lang.setAlpha(... | [
"0.5871122",
"0.58273095",
"0.5780257",
"0.57630825",
"0.55624175",
"0.54984474",
"0.54766136",
"0.54649365",
"0.54456407",
"0.54356503",
"0.5398736",
"0.5397469",
"0.5354966",
"0.530746",
"0.52847326",
"0.5265557",
"0.5252768",
"0.51814294",
"0.5175363",
"0.5158679",
"0.5156... | 0.49711472 | 29 |
run 1. father with CC, diagnosed at 50 | @Test
public void testGetCondition35() {
CancerHistory h1 = new CancerHistory("NHI123", "eref1",
(short) Util.FATHER, "", true, (short) 50, false, false,
(short) -1, false, (short) -1, "");
CancerHistory[] td1 = { h1 };
manager.setHistories(td1);
assertEquals("# condition 3-5 (run 1) ", fal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ConnectingGraphIII(int x) {\n father = new int[x + 1];\n totalcount = x; //initial state, total number of graph = x nodes.\n //init\n for (int i = 1; i < x + 1; i++) {\n father[i] = i;\n }\n }",
"long fcalc(LinkedList<Edge> l[], LinkedList<Integer> path[], int sn... | [
"0.51957536",
"0.514724",
"0.5122616",
"0.5119349",
"0.50524735",
"0.49539223",
"0.49504936",
"0.49088737",
"0.48907283",
"0.48596737",
"0.4847309",
"0.48439905",
"0.4822296",
"0.48209926",
"0.48203376",
"0.481249",
"0.4809957",
"0.48055968",
"0.48008934",
"0.47931594",
"0.47... | 0.0 | -1 |
Close the connection when an exception is raised. | @Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
cause.printStackTrace();
ChannelFuture close = ctx.close();
close.addListener((ChannelFutureListener) future -> System.out.println("server channel closed!!!"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void close() throws Exception {\r\n if (connection != null){\r\n connection.close();\r\n }\r\n }",
"@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n ... | [
"0.7704145",
"0.7646479",
"0.73898673",
"0.735185",
"0.73500484",
"0.72937244",
"0.7225274",
"0.71796983",
"0.71198434",
"0.7105107",
"0.70827043",
"0.7079053",
"0.70499283",
"0.7044209",
"0.70103747",
"0.700723",
"0.70043784",
"0.69742817",
"0.6962846",
"0.6953861",
"0.69520... | 0.0 | -1 |
Creates new graph statistics | protected BinningTemporalGraphStatistics(List<TemporalElementStats> vertexStats,
List<TemporalElementStats> edgeStats,
Set<String> relevantProperties) {
this.vertexStats = new HashMap<>();
this.edgeStats = new HashMap<>();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void createGraphForMassiveLoad();",
"void createGraphForSingleLoad();",
"private void createGraphs() {\n initialGraphCreation.accept(caller, listener);\n graphCustomization.accept(caller, listener);\n caller.generateAndAdd(params.getNumCallerEvents(), callerAddToGraphTest);\n listen... | [
"0.65636504",
"0.63402504",
"0.6223766",
"0.6108251",
"0.60059303",
"0.58987206",
"0.5898187",
"0.5851093",
"0.58379734",
"0.58134127",
"0.57909596",
"0.572367",
"0.57214653",
"0.56426316",
"0.56249124",
"0.56071615",
"0.5571095",
"0.5537738",
"0.5536168",
"0.5502458",
"0.548... | 0.57216674 | 12 |
Initializes the statistics for distinct vertices | private void initDistinctVertices() {
this.distinctSourceCount = new HashMap<>();
this.distinctTargetCount = new HashMap<>();
// for every type of edge...
for (Map.Entry<String, TemporalElementStats> entries : edgeStats.entrySet()) {
TemporalElementStats stats = edgeStats.get(entries.getKey());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected BinningTemporalGraphStatistics(List<TemporalElementStats> vertexStats,\n List<TemporalElementStats> edgeStats,\n Set<String> relevantProperties) {\n this.vertexStats = new HashMap<>();\n this.edgeStats = new HashMap... | [
"0.57007056",
"0.56959814",
"0.5646419",
"0.5640674",
"0.5602938",
"0.55348337",
"0.5492142",
"0.54863554",
"0.5483797",
"0.5472887",
"0.5461016",
"0.54359055",
"0.5417159",
"0.5397831",
"0.5395393",
"0.53945667",
"0.5376853",
"0.53632385",
"0.5359021",
"0.5357973",
"0.534846... | 0.8178903 | 0 |
Returns the vertex statistics list | public Map<String, TemporalElementStats> getVertexStats() {
return vertexStats;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();",
"List<V> getVertexList();",
"public List<wVertex> getVertices(){\r\n return vertices;\r\n }",
"public List<Number> getStatistics() {\n return statistics;\n }",
"public Collection< VDataT > vertexData();",
"publ... | [
"0.6863938",
"0.67950344",
"0.64394933",
"0.6422412",
"0.6368056",
"0.6345937",
"0.6275204",
"0.61813027",
"0.6105624",
"0.6039544",
"0.60254794",
"0.6001269",
"0.59851557",
"0.59427",
"0.5916614",
"0.59057283",
"0.58573973",
"0.5856164",
"0.58471656",
"0.58468354",
"0.583365... | 0.7453895 | 0 |
Returns the edge statistics list | public Map<String, TemporalElementStats> getEdgeStats() {
return edgeStats;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HashMap<String, Edge> getEdgeList () {return edgeList;}",
"public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }",
"public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}",
"public Collection< EDataT > edgeData();",
"java.util.List<uk.ac.cam.acr31.features.jav... | [
"0.67151016",
"0.667431",
"0.65438306",
"0.6527472",
"0.6516466",
"0.6500565",
"0.63902473",
"0.6376357",
"0.63592345",
"0.635322",
"0.63418925",
"0.63275594",
"0.62750524",
"0.6273071",
"0.6267057",
"0.62475264",
"0.6242619",
"0.61987346",
"0.6171426",
"0.61535364",
"0.61071... | 0.74887 | 0 |
no further estimations for = and != | @Override
public double estimateTemporalProb(ElementType type1, Optional<String> label1,
TimeSelector.TimeField field1, Comparator comp, Long value) {
if (comp == EQ) {
return VERY_LOW_PROB;
} else if (comp == Comparator.NEQ) {
return VERY_HIGH_PROB;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void equal() {\n if (operatorAssigned != Operator.NON || operatorType != Operator.NON) {\n double subResult;\n if (numberStored[1] != 0) {\n subResult = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n numb... | [
"0.6503968",
"0.6258709",
"0.60975295",
"0.5961683",
"0.5918876",
"0.57779557",
"0.5758474",
"0.57476956",
"0.57098097",
"0.56317246",
"0.56194675",
"0.56119734",
"0.5610941",
"0.5597895",
"0.5579187",
"0.5562886",
"0.55582607",
"0.5554576",
"0.55515903",
"0.5537743",
"0.5532... | 0.0 | -1 |
no further estimations for = and != | @Override
public double estimateTemporalProb(ElementType type1, Optional<String> label1,
TimeSelector.TimeField field1, Comparator comp, ElementType type2,
Optional<String> label2, TimeSelector.TimeField field2) {
if (comp == EQ) {
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void equal() {\n if (operatorAssigned != Operator.NON || operatorType != Operator.NON) {\n double subResult;\n if (numberStored[1] != 0) {\n subResult = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n numb... | [
"0.6503968",
"0.6258709",
"0.60975295",
"0.5961683",
"0.5918876",
"0.57779557",
"0.5758474",
"0.57476956",
"0.57098097",
"0.56317246",
"0.56194675",
"0.56119734",
"0.5610941",
"0.5597895",
"0.5579187",
"0.5562886",
"0.55582607",
"0.5554576",
"0.55515903",
"0.5537743",
"0.5532... | 0.0 | -1 |
Estimates the probability that a comparison between two time selectors holds Both selectors are described by the statistics that are relevant for them (one statistic if label was specified, more than one if not). | private double estimateTimeSelectorComparison(List<TemporalElementStats> statsLhs,
TimeSelector.TimeField fieldLhs,
Comparator comparator, List<TemporalElementStats> statsRhs,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double estimateTemporalProb(ElementType type1, Optional<String> label1,\n TimeSelector.TimeField field1, Comparator comp, ElementType type2,\n Optional<String> label2, TimeSelector.TimeField field2) {\n if (comp == EQ) {... | [
"0.67859405",
"0.6193166",
"0.6034328",
"0.58638054",
"0.55303705",
"0.5498047",
"0.53819484",
"0.5367287",
"0.5258237",
"0.52009875",
"0.51538837",
"0.51496834",
"0.51197684",
"0.5100851",
"0.5085184",
"0.5048313",
"0.503383",
"0.50103027",
"0.49998733",
"0.4943711",
"0.4917... | 0.61733246 | 2 |
Estimates the probability that a comparison between two time selectors holds Both selectors are described by the statistics that are relevant for them (one statistic for both lhs and rhs). | private double estimateTimeSelectorComparison(TemporalElementStats statsLhs,
TimeSelector.TimeField fieldLhs,
Comparator comparator, TemporalElementStats statsRhs,
TimeSelector... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double estimateTimeSelectorComparison(List<TemporalElementStats> statsLhs,\n TimeSelector.TimeField fieldLhs,\n Comparator comparator, List<TemporalElementStats> statsRhs,\n ... | [
"0.7259421",
"0.6782026",
"0.64932996",
"0.6169344",
"0.61664295",
"0.6133705",
"0.5635771",
"0.553865",
"0.5453735",
"0.5428815",
"0.5395481",
"0.5390642",
"0.5379364",
"0.53663945",
"0.53608716",
"0.530568",
"0.5298934",
"0.52622604",
"0.52588576",
"0.52582383",
"0.52398026... | 0.7348284 | 0 |
Estimates the probability that a comparison on numerical property data holds. RHS and LHS elements are described by a list of element statistics Note that the method assumes lhs and rhs to be independent, i.e. a call does not yield a reasonable value for comparing the same property of the exact same element. | private double estimateNumericalPropertyProb(List<TemporalElementStats> relevantStats1, String property1,
Comparator comp, List<TemporalElementStats> relevantStats2,
String property2) {
long count1 = relevantStats1.stream(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double estimateNumericalPropertyProb(List<TemporalElementStats> relevantStats, String property,\n Comparator comp, PropertyValue value) {\n long overallCount = 0L;\n for (TemporalElementStats stat : relevantStats) {\n overallCount += stat.getElementC... | [
"0.6328605",
"0.62810785",
"0.5980775",
"0.5881799",
"0.5666061",
"0.5396976",
"0.53865814",
"0.534969",
"0.5302866",
"0.52968943",
"0.52686423",
"0.51991236",
"0.51865286",
"0.5182825",
"0.51785314",
"0.5172783",
"0.5169077",
"0.5143732",
"0.5117793",
"0.5113213",
"0.5102675... | 0.6813901 | 0 |
Estimates the probability that a comparison between numerical properties holds. LHS and RHS are described by one statistics element. They are assumed to be independent, otherwise the estimation may not be reasonable. | private double estimateNumericalPropertyProb(TemporalElementStats stats1, String property1,
Comparator comp,
TemporalElementStats stats2, String property2) {
Map<String, Double[]> map1 = stats1.getNumericalPropertyStatsEst... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double estimateNumericalPropertyProb(List<TemporalElementStats> relevantStats1, String property1,\n Comparator comp, List<TemporalElementStats> relevantStats2,\n String property2) {\n long count1 = relevantStats1... | [
"0.6965154",
"0.65613604",
"0.65560055",
"0.6399473",
"0.6279234",
"0.62487954",
"0.61338866",
"0.60149455",
"0.5924172",
"0.57947266",
"0.57795674",
"0.5769615",
"0.5714954",
"0.56513107",
"0.5547097",
"0.5497202",
"0.5453772",
"0.54494816",
"0.5449419",
"0.5441959",
"0.5349... | 0.69470984 | 1 |
Estimates the probability that a comparison between categorical property values holds. LHS and RHS are described by lists of stats | private double estimateCategoricalPropertyProb(List<TemporalElementStats> relevantStats1, String property1,
Comparator comp,
List<TemporalElementStats> relevantStats2,
Strin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double estimateCategoricalPropertyProb(TemporalElementStats stats1, String property1,\n Comparator comp,\n TemporalElementStats stats2, String property2) {\n Map<String, Map<PropertyValue, Double>> map1 =\n ... | [
"0.713752",
"0.6353627",
"0.5948709",
"0.5841516",
"0.57953703",
"0.5770536",
"0.55455595",
"0.5460104",
"0.5254225",
"0.5179305",
"0.51788646",
"0.5159865",
"0.5144939",
"0.51426405",
"0.5111936",
"0.5097921",
"0.5090738",
"0.5056363",
"0.50341576",
"0.50176775",
"0.4975424"... | 0.70758194 | 1 |
Estimates the probability that a comparison between categorical properties holds. LHS and RHS are both described by a statistics element. | private double estimateCategoricalPropertyProb(TemporalElementStats stats1, String property1,
Comparator comp,
TemporalElementStats stats2, String property2) {
Map<String, Map<PropertyValue, Double>> map1 =
stats... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double estimateCategoricalPropertyProb(List<TemporalElementStats> relevantStats1, String property1,\n Comparator comp,\n List<TemporalElementStats> relevantStats2,\n ... | [
"0.7060264",
"0.65624344",
"0.584823",
"0.5833933",
"0.5749905",
"0.57399297",
"0.57054514",
"0.5422686",
"0.5387758",
"0.53338873",
"0.531692",
"0.53159326",
"0.52916616",
"0.52835584",
"0.5282838",
"0.527649",
"0.5248659",
"0.52462375",
"0.52017796",
"0.51797265",
"0.515714... | 0.74083185 | 0 |
Estimates the probability that a comparison between a categorical property value and a constant holds | private double estimateCategoricalPropertyProb(List<TemporalElementStats> relevantStats, String property,
Comparator comp, PropertyValue value) {
if (comp != EQ && comp != NEQ) {
return 0.;
}
long overallCount = 0L;
boolean found = false;
for (T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double estimateCategoricalPropertyProb(TemporalElementStats stats1, String property1,\n Comparator comp,\n TemporalElementStats stats2, String property2) {\n Map<String, Map<PropertyValue, Double>> map1 =\n ... | [
"0.7008502",
"0.6304912",
"0.62759376",
"0.6249664",
"0.62105983",
"0.6209285",
"0.61749446",
"0.6027815",
"0.60186154",
"0.59934926",
"0.5959477",
"0.59542066",
"0.5935759",
"0.5926076",
"0.5855525",
"0.5846497",
"0.58087",
"0.5791518",
"0.5662906",
"0.565303",
"0.564364",
... | 0.74845296 | 0 |
Estimates the probability that a comparison between a numerical property value and a numerical constant holds | private double estimateNumericalPropertyProb(List<TemporalElementStats> relevantStats, String property,
Comparator comp, PropertyValue value) {
long overallCount = 0L;
for (TemporalElementStats stat : relevantStats) {
overallCount += stat.getElementCount();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getSpecialProb();",
"private double estimateNumericalPropertyProb(TemporalElementStats stat, String property,\n Comparator comp, PropertyValue value) {\n // property not sampled or not considered\n if (!stat.getNumericalPropertyStatsEstimation().containsK... | [
"0.68849975",
"0.68608713",
"0.6840237",
"0.6320506",
"0.6299873",
"0.62508506",
"0.62238115",
"0.62102956",
"0.613504",
"0.6094198",
"0.608834",
"0.6025691",
"0.6017188",
"0.6004745",
"0.60025173",
"0.59728223",
"0.5936255",
"0.59271145",
"0.5926284",
"0.585305",
"0.582738",... | 0.6740829 | 3 |
Estimates the probability that a comparison between a numerical property value and a numerical constant holds for one type of element | private double estimateNumericalPropertyProb(TemporalElementStats stat, String property,
Comparator comp, PropertyValue value) {
// property not sampled or not considered
if (!stat.getNumericalPropertyStatsEstimation().containsKey(property)) {
// if property ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getSpecialProb();",
"private double estimateNumericalPropertyProb(List<TemporalElementStats> relevantStats, String property,\n Comparator comp, PropertyValue value) {\n long overallCount = 0L;\n for (TemporalElementStats stat : relevantStats) {\n ove... | [
"0.67362046",
"0.66729504",
"0.6648027",
"0.6189943",
"0.61638343",
"0.6156395",
"0.6113725",
"0.609256",
"0.5961919",
"0.58877575",
"0.58455175",
"0.5843957",
"0.583769",
"0.58294207",
"0.57533115",
"0.57253623",
"0.5704991",
"0.56814754",
"0.56760967",
"0.56721354",
"0.5645... | 0.66765606 | 1 |
Estimates probability of a comparison for elements without label (i.e. probability is determined over all vertices/edges) | private double estimateTemporalProb(ElementType type1, TimeSelector.TimeField field1,
Comparator comp, Long value) {
double sum = 0.;
Map<String, TemporalElementStats> stats = type1 == ElementType.VERTEX ?
vertexStats : edgeStats;
Long overallCount = type1 == Ele... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getSpecialProb();",
"public void calculateProbabilities(){\n\t}",
"private double p_l(Label label) {\n\t\t// TODO : Implement\n\t\t// Calculate the probability for the label. No smoothing here.\n\t\t// Just the number of label counts divided by the number of documents.\n\t\tint total = docCount.get(Label... | [
"0.6106692",
"0.6104147",
"0.5993298",
"0.59074825",
"0.58663756",
"0.58397627",
"0.58323675",
"0.58240294",
"0.58062124",
"0.5692272",
"0.5691476",
"0.5680095",
"0.5627197",
"0.5602392",
"0.55983883",
"0.5596707",
"0.559395",
"0.55536884",
"0.55407995",
"0.5477025",
"0.54769... | 0.0 | -1 |
Estimates the probability that a comparison holds using bin statistics | private double estimateFromBins(Binning bins, Comparator comp, Long value) {
int[] valueBins = findBins(bins, value);
int numBins = bins.getBins().length;
if (comp == Comparator.LT) {
return ((double) valueBins[0]) / ((double) numBins);
} else if (comp == LTE) {
return ((double) valueBins[1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void checkUpdateProbabilityOnHORNRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 1; j < 255; j++)\r\n\t\t\t{\r\... | [
"0.60727185",
"0.6051957",
"0.60488087",
"0.60360634",
"0.5832695",
"0.5767766",
"0.574631",
"0.5743619",
"0.57048637",
"0.56984425",
"0.5673323",
"0.56555647",
"0.56493473",
"0.5622068",
"0.55082595",
"0.54818165",
"0.5453951",
"0.54383653",
"0.54353017",
"0.54037124",
"0.53... | 0.5708298 | 8 |
Checks whether a property key should be considered. This is the case iff no property keys to consider are specified (then all are relevant) or the set of specified relevant key contains the property | private boolean isPropertyRelevant(String property) {
return relevantProperties == null || relevantProperties.contains(property);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean containsProperties(\n java.lang.String key);",
"public boolean hasProperty( String key );",
"boolean hasProperty(String key);",
"@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}",
"protected boolean shouldAddProperty(String key) {\n return !key.equals(... | [
"0.7082596",
"0.7011994",
"0.6987903",
"0.68087023",
"0.68075746",
"0.6417838",
"0.636531",
"0.6322306",
"0.62886155",
"0.6283057",
"0.6149533",
"0.6136181",
"0.61277777",
"0.6038725",
"0.5929781",
"0.5879005",
"0.58297354",
"0.58017635",
"0.5787135",
"0.5744327",
"0.5741552"... | 0.71237427 | 0 |
Checks whether a suitable bin was found for a value. | private boolean matchesBin(Long[] arr, Long value, int index) {
if (arr.length == 1) {
return true;
}
if (index == arr.length - 1) {
return value >= arr[index];
} else if (index == 0) {
return value < arr[index + 1];
} else {
boolean lowerCond = value >= arr[index];
boo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAabbValue();",
"boolean valueCheckMatch(String value) {\r\n\t\tif (value.length() > intLength) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (hasRange) {\r\n\t\t\tLong ulongValue = Long.valueOf(Long.parseLong(value));\r\n\t\t\tif ((ulongValue.compareTo(minimum) < 0)\r\n\t\t\t\t\t|| (ulongValue.compareTo... | [
"0.5748814",
"0.5683275",
"0.5672402",
"0.56611127",
"0.5601631",
"0.55888563",
"0.55825573",
"0.5539914",
"0.552132",
"0.550828",
"0.54437935",
"0.5436934",
"0.5359214",
"0.5359214",
"0.53437096",
"0.5318964",
"0.531487",
"0.53113854",
"0.52973604",
"0.5278034",
"0.52607495"... | 0.614349 | 0 |
Auxiliary method to get the bin for a certain time field (tx_from, tx_to, valid_from, valid_to) | private Binning getBins(TemporalElementStats elementStats, TimeSelector.TimeField field1) {
if (field1 == TimeSelector.TimeField.TX_FROM) {
return elementStats.getEstimatedTimeBins()[0];
} else if (field1 == TX_TO) {
return elementStats
.getEstimatedTimeBins()[1];
} else if (field1 == Ti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean matchesBin(Long[] arr, Long value, int index) {\n if (arr.length == 1) {\n return true;\n }\n if (index == arr.length - 1) {\n return value >= arr[index];\n } else if (index == 0) {\n return value < arr[index + 1];\n } else {\n boolean lowerCond = value >= arr[ind... | [
"0.54376554",
"0.53201956",
"0.5158189",
"0.50616354",
"0.50160706",
"0.5002081",
"0.4917764",
"0.48939493",
"0.48912534",
"0.48790854",
"0.48627922",
"0.48439038",
"0.4816689",
"0.47597313",
"0.47437724",
"0.47434828",
"0.47430557",
"0.46794474",
"0.46629468",
"0.46575207",
... | 0.68158025 | 0 |
/ Casts any one argument method reference to a Function type | static <T, R> Function<T, R> function(Function<T, R> function) {
return function;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FunctionalInterface\npublic interface Convert<S,T> {\n T convert(S arg);\n}",
"private void visitFunction(SoyFunction fn, FunctionNode node) {\n if (fn instanceof LengthFunction) {\n checkArgType(node.getChild(0), ListType.of(AnyType.getInstance()), node);\n } else if (fn instanceof ParseInt... | [
"0.6113485",
"0.58296674",
"0.5828075",
"0.5820763",
"0.57446563",
"0.5708111",
"0.57000595",
"0.569828",
"0.5672721",
"0.5669309",
"0.5645141",
"0.5641719",
"0.56388354",
"0.56187576",
"0.55844545",
"0.55588776",
"0.5513432",
"0.55038244",
"0.5497543",
"0.54735404",
"0.54554... | 0.5604479 | 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.