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 |
|---|---|---|---|---|---|---|
set object as invalid | public void setInvalid(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void markObjectAsInvalid(Object object) {\n if (deadObjects == null)\n throw new IllegalStateException(\"Tried to use pool before it was Initialized or after it was ShutDown!\");\n deadObjects.add(object); //a synchronized set\n\n }",
"public void validate() {\n\t\tthis.invalid... | [
"0.68841183",
"0.68073833",
"0.6613967",
"0.65984684",
"0.650193",
"0.640863",
"0.6307369",
"0.63026255",
"0.63026255",
"0.63026255",
"0.6283445",
"0.62692404",
"0.62479085",
"0.61952",
"0.6193746",
"0.6149288",
"0.60939443",
"0.60363114",
"0.6024438",
"0.6018958",
"0.5976879... | 0.82137376 | 0 |
set object as loaded | public void setLoaded(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void load(Object o) {\n \n }",
"@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}",
"public void setLoaded(boolean loaded);",
"public void load() {\n\t}",
"@Override\r\n\tpublic void load() {\n\t}",
"public void load() {\n }",
"public void load() ;",
"protected void s... | [
"0.74955034",
"0.72149134",
"0.71437705",
"0.7083117",
"0.70636827",
"0.70310944",
"0.70110136",
"0.70070356",
"0.70011026",
"0.69772637",
"0.69761264",
"0.6946008",
"0.69296783",
"0.69211954",
"0.69169235",
"0.6823678",
"0.6778364",
"0.6778364",
"0.67683786",
"0.67683786",
"... | 0.7724509 | 0 |
set object as modified | public void setModified(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateByObject()\r\n\t{\n\t}",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"public void setModified (boolean modified);",
"public void setModified(boolean state) {\n //System.out.println(\"setting modified to \" + state);\n //new Exception().printStack... | [
"0.69497395",
"0.69294",
"0.6885891",
"0.673504",
"0.6705385",
"0.6611307",
"0.6589417",
"0.6536072",
"0.6511677",
"0.65041685",
"0.6486119",
"0.64375067",
"0.64299756",
"0.64299756",
"0.64196986",
"0.64142406",
"0.63730675",
"0.6361957",
"0.6352638",
"0.63397586",
"0.633358"... | 0.76807904 | 0 |
set object as new | public void setNew(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T set(T obj);",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"public void setNewObject(boolean newObject)\r\n\t{\r\n\t\tthis.newObject = newObject;\r\n\... | [
"0.64177555",
"0.64047605",
"0.6296393",
"0.6283783",
"0.62281245",
"0.6196057",
"0.6176013",
"0.6104455",
"0.602503",
"0.6003246",
"0.5975951",
"0.59591806",
"0.59490323",
"0.57859886",
"0.57837653",
"0.57677764",
"0.5735462",
"0.57279986",
"0.5723946",
"0.5704261",
"0.56960... | 0.673781 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Parents child = new Childs(100);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This method mainly calls insertRec() | public void insert(int val) {
root = insertRec(root, val);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int insert(R_order record);",
"@Override\n\tpublic void addRec() {\n\t\t\n\t}",
"int insert(Assist_table record);",
"int insert(AccuseInfo record);",
"int insert(ClOrderInfo record);",
"int insert(TbSnapshot record);",
"int insert(TbSerdeParams record);",
"void insert(Mi004 record);",
"int insert(P... | [
"0.6748122",
"0.66918945",
"0.6675314",
"0.66327155",
"0.6582515",
"0.6564689",
"0.6542758",
"0.65400606",
"0.65277517",
"0.65199625",
"0.6500875",
"0.6494015",
"0.6493681",
"0.6481238",
"0.64754725",
"0.64741826",
"0.6458697",
"0.64552665",
"0.6446811",
"0.643674",
"0.642980... | 0.0 | -1 |
/ A recursive function to insert a new val in BST | public TreeNode insertRec(TreeNode root, int val) {
/* If the tree is empty, return a new TreeNode */
if (root == null) {
root = new TreeNode(val);
return root;
}
/* Otherwise, recur down the tree */
if (val < root.val)
root.left = insertRec(r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static TreeNode insertIntoBST(TreeNode root, int val)\n{\n TreeNode droot = root;\n TreeNode par = find(droot, val, null);\n if(par==null)\n return par;\n if(par.val < val)\n par.right = new TreeNode(val);\n else\n par.left = new TreeNode(val);\n return root;\n}",
"... | [
"0.8181429",
"0.74125385",
"0.7364496",
"0.73452395",
"0.72565126",
"0.7236438",
"0.7225741",
"0.71806896",
"0.7146498",
"0.7131966",
"0.71207005",
"0.7109175",
"0.710113",
"0.70941365",
"0.7086518",
"0.7084186",
"0.7081664",
"0.7052922",
"0.7046997",
"0.7034228",
"0.7033798"... | 0.70336527 | 21 |
A utility function to do inorder traversal of BST | private void inorderRec(TreeNode root, List<Integer> result) {
if (root != null) {
inorderRec(root.left,result);
result.add(root.val);
inorderRec(root.right,result);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inorder()\r\n {\r\n inorder(root);\r\n }",
"public void inorder()\n {\n inorder(root);\n }",
"public void inorder()\n {\n inorder(root);\n }",
"private void inorder() {\n inorder(root);\n }",
"private void inorder() {\r\n\t\t\tinorder(... | [
"0.78557944",
"0.76716846",
"0.76716846",
"0.760627",
"0.756379",
"0.74606323",
"0.74202836",
"0.7370048",
"0.7351069",
"0.7310717",
"0.7266621",
"0.7228449",
"0.72112036",
"0.72037566",
"0.71787786",
"0.7166969",
"0.71584356",
"0.7150216",
"0.71344554",
"0.7092105",
"0.70795... | 0.0 | -1 |
the set of values is small enough to do linear search | public static Profile lookup(String name) {
for (Profile p: values()) {
if (name.equals(p.name))
return p;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int search(double value) {\n int n = sequence.size();\n int left = 0, right = n - 1, index = 0;\n while (left != right) {\n index = (right - left) / 2 + left;\n if (value >= sequence.get(index == left ? index + 1 : index)) {\n ... | [
"0.59729546",
"0.597027",
"0.595236",
"0.5882182",
"0.578552",
"0.5784462",
"0.57791823",
"0.57494324",
"0.5741557",
"0.5731668",
"0.5703415",
"0.57002366",
"0.5671119",
"0.56458515",
"0.56406975",
"0.56343263",
"0.5634267",
"0.563415",
"0.56281316",
"0.5603641",
"0.56015867"... | 0.0 | -1 |
the set of values is small enough to do linear search | public static Profile lookup(int value) {
for (Profile p: values()) {
if (value == p.value)
return p;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int search(double value) {\n int n = sequence.size();\n int left = 0, right = n - 1, index = 0;\n while (left != right) {\n index = (right - left) / 2 + left;\n if (value >= sequence.get(index == left ? index + 1 : index)) {\n ... | [
"0.59724146",
"0.5969525",
"0.5951679",
"0.5881554",
"0.57848895",
"0.5784456",
"0.5779918",
"0.5748727",
"0.5740938",
"0.57310516",
"0.57025445",
"0.5700235",
"0.567095",
"0.56449133",
"0.56405133",
"0.5634366",
"0.5633807",
"0.56333363",
"0.5627202",
"0.56033033",
"0.560149... | 0.0 | -1 |
this list use for relationship between note and label | @Override
public String toString() {
return "Notemodel [id=" + id + ", title=" + title + ", description=" + description + ", color=" + color
+ ", pin=" + pin + ", trash=" + trash + ", archive=" + archive + ", remider=" + remider
+ ", date=" + date + "]";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getListTitle() {\n\t\treturn \"Saisir des notes\";\n\t}",
"Collection<? extends Object> getLabel();",
"Collection<? extends Object> getLabel();",
"@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<NoteToken> ... | [
"0.6299371",
"0.6246113",
"0.6246113",
"0.61593366",
"0.592678",
"0.58947253",
"0.58947253",
"0.58114266",
"0.57509655",
"0.57370144",
"0.5732278",
"0.57052636",
"0.5696343",
"0.56823814",
"0.56811225",
"0.56563693",
"0.56554806",
"0.5627493",
"0.5617963",
"0.56110495",
"0.56... | 0.0 | -1 |
Created by LiYang on 2020/11/16. | public interface EmploymentSurveyService extends Service<EmploymentSurvey> {
/**
* 通过userId获得用户就业意向信息
* @param stuId
*/
Result getInfoByUserId(Integer stuId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r... | [
"0.58878773",
"0.578366",
"0.54803616",
"0.54803616",
"0.5475624",
"0.5449036",
"0.5424591",
"0.54196286",
"0.536395",
"0.5348931",
"0.53392035",
"0.5329791",
"0.53283393",
"0.53283393",
"0.53283393",
"0.53283393",
"0.53283393",
"0.53283393",
"0.5327587",
"0.53079486",
"0.530... | 0.0 | -1 |
Referenced classes of package org.joda.time.convert: Converter | public interface IntervalConverter
extends Converter
{
public abstract boolean isReadableInterval(Object obj, Chronology chronology);
public abstract void setInto(ReadWritableInterval readwritableinterval, Object obj, Chronology chronology);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"Date... | [
"0.63393223",
"0.5864311",
"0.5853036",
"0.56975675",
"0.5620401",
"0.5614557",
"0.5571388",
"0.55071396",
"0.55021155",
"0.5419838",
"0.52592176",
"0.5242534",
"0.5230243",
"0.5227852",
"0.52158064",
"0.5208427",
"0.5152119",
"0.5096937",
"0.5059831",
"0.50330985",
"0.501129... | 0.49874252 | 23 |
pega data e hora do sistema | public void calcularHash() {
LocalDateTime agora = LocalDateTime.now();
// coverção da string data/hora atual para o formato de 13 digitos
DateTimeFormatter formatterData = DateTimeFormatter.ofPattern("ddMMuuuuHHmmss");
String dataFormatada = formatterData.format(agora);
System.out.println(dataFormatada... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHora(){\n return minutosStamina;\n }",
"public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }",
"public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(... | [
"0.6633142",
"0.6592141",
"0.65841734",
"0.65361",
"0.63733786",
"0.6303406",
"0.62742805",
"0.62218046",
"0.6167309",
"0.61651266",
"0.6065104",
"0.59947044",
"0.59735346",
"0.5964615",
"0.59358823",
"0.5880998",
"0.5840579",
"0.58036685",
"0.5794369",
"0.57843494",
"0.57804... | 0.55180955 | 38 |
Simonish constructor that creates and implements other classes to run the game | public Simonish(){
frame = new JFrame();
frame.setTitle("Simon Supreme");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(true);
pane = frame.getContentPane();
pane.setLayout(new BorderLayout());
pane.setPreferredSize(new Dimension(450, 500));
color = new Container();
color... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Game() \n {\n Logger.setLogger(null);\n createInstances();\n parser = new Parser();\n player = new Player();\n userInputs = new ArrayList<String>();\n }",
"public Game()//Method was given\n {\n parser = new Parser();\n player = new Player();\n }... | [
"0.79123265",
"0.7665383",
"0.7550738",
"0.7472933",
"0.74138755",
"0.74129593",
"0.7411813",
"0.74035186",
"0.73833936",
"0.73734725",
"0.73726106",
"0.73538697",
"0.73147124",
"0.7279149",
"0.72680146",
"0.72680146",
"0.7230265",
"0.7228103",
"0.7220643",
"0.71182024",
"0.7... | 0.0 | -1 |
calls computer sequence function | public void populateList(){
for (int i = 0; i < 10; i++){
scoreList.add(-1);
nameList.add("");
}
int i=0;
try {
Scanner results = new Scanner(new File("results.txt"));
while (results.hasNext()){
nameList.set(i, results.next());
scoreList.set(i, results.nextInt());
i++;
}
} catch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString arr[]= {\"2\",\"22\",\"222\",\"3\",\"33\",\"333\",\"4\",\"44\",\"444\",\"5\",\"55\",\"555\",\"6\",\"66\",\"666\",\"7\",\"77\",\"777\",\"7777\",\"8\",\"88\",\"888\",\"9\",\"99\",\"999\",\"9999\"};\r\n\t\tString input=sc... | [
"0.59624845",
"0.57748616",
"0.5693931",
"0.56223905",
"0.55898315",
"0.5584146",
"0.5577855",
"0.55513984",
"0.5532477",
"0.55299544",
"0.5516157",
"0.54384625",
"0.54345846",
"0.5432916",
"0.54057807",
"0.539063",
"0.5348604",
"0.53307545",
"0.5311372",
"0.5246174",
"0.5242... | 0.0 | -1 |
finds a random number and adds that to the computer's sequence | public void displayComSeq(){
Thread t = new Thread(new Runnable() {
public void run(){
compTurn = true;
Random random = new Random();
int val = random.nextInt(5 - 1)+1;
input.add(val);
displayCounter = 0;
displayTimer.start();
}
});
t.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"public static int randomNext() { r... | [
"0.6979052",
"0.69659203",
"0.6949826",
"0.6945122",
"0.6931316",
"0.679541",
"0.6772434",
"0.67002016",
"0.6683414",
"0.6659728",
"0.6643747",
"0.66332537",
"0.6627051",
"0.65424144",
"0.6535865",
"0.6526564",
"0.6493835",
"0.64846265",
"0.64425325",
"0.6413073",
"0.6401033"... | 0.0 | -1 |
compares each click the user makes with the computer's sequence and returns an action | public void compare(){
boolean gameOver = false;
for (int j = 0; j < player.size(); j++){
/**
* gameover screen
*/
if (player.get(j) != input.get(j)){
if (score <= 3){JOptionPane.showMessageDialog(pane, "Game Over!\n" + "You got the rank "
+ "of a Joker with a score of " + score + '.');}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void determineNextAction();",
"public void job() {\n \tcards[0][0].doClick();\n \tcards[0][1].doClick();\n \tcards[0][0].doClick();\n \tcards[0][0].doClick();\n \tcards[0][2].doClick();\n \tcards[0][0].doClick();\n \tcards[0][0].doClick();\n \tcards[0][3].doClick();\n \tcards[0][0].doC... | [
"0.6417777",
"0.62873083",
"0.6255911",
"0.6169966",
"0.6093945",
"0.6064686",
"0.60217553",
"0.5945469",
"0.5928378",
"0.58941543",
"0.58830917",
"0.586179",
"0.5821985",
"0.57940876",
"0.57849294",
"0.5779549",
"0.5776402",
"0.57508355",
"0.57285124",
"0.57157296",
"0.57015... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseClicked(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseEntered(MouseEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent e) {
} | {
"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 |
imagePortada.setPreserveRatio(false); imagePortada.fitHeightProperty().bind(imagePortadaContainer.heightProperty()); imagePortada.fitWidthProperty().bind(imagePortadaContainer.widthProperty()); Image img = new Image("file:src/main/resources/grupo1/labtic/ui/restaurants/imgRestaurante/arreglo.jpg"); imagePortada.setImag... | @FXML
void initialize() {
reservasActivas.setRowFactory(tv -> {
TableRow<Reserva> row = new TableRow<>();
row.setOnMouseClicked((event1) -> {
if (event1.getClickCount() == 2 && (!row.isEmpty())) {
reserva = row.getItem();
FXMLLo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\n private void initialize() {\n logo.setImage(new Image(\n FileLoader.class.getResourceAsStream(\"panama_express_logo_big.jpg\")));\n\n }",
"void setImage(IViewModel image);",
"@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(vi... | [
"0.6391637",
"0.6161114",
"0.61535645",
"0.6103558",
"0.60971254",
"0.6041176",
"0.60335547",
"0.5988155",
"0.5984321",
"0.5983375",
"0.59047556",
"0.58656776",
"0.58394897",
"0.58365965",
"0.5836244",
"0.5834959",
"0.5808688",
"0.5747881",
"0.570675",
"0.56863564",
"0.567123... | 0.0 | -1 |
Creates a keystore with a single key and saves it to a file. | public static void createKeyStore(String filename,
String password, String keyPassword, String alias,
Key privateKey, Certificate cert)
throws GeneralSecurityException, IOException {
KeyStore ks = createEmptyKeyStore();
ks.setKeyEntry(alias, privateKey, keyPassword.toCharArray(),
new C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveKeystore(File meKeystoreFile) throws IOException {\n FileOutputStream output;\n\n output = new FileOutputStream(meKeystoreFile);\n\n keystore.serialize(output);\n output.close();\n }",
"@Override\n public void saveKeyStore(File file, KeyStore keyStore, String key... | [
"0.68251884",
"0.658801",
"0.6571539",
"0.6299374",
"0.628374",
"0.60673296",
"0.59922516",
"0.59732777",
"0.57624626",
"0.5632876",
"0.56292504",
"0.5613079",
"0.5610401",
"0.5591497",
"0.5578311",
"0.55466634",
"0.55312717",
"0.55147105",
"0.54654616",
"0.5374965",
"0.53626... | 0.72412926 | 0 |
Performs complete setup of SSL configuration in preparation for testing an SSLFactory. This includes keys, certs, keystores, truststores, the server SSL configuration file, the client SSL configuration file, and the master configuration file read by the SSLFactory. | public static void setupSSLConfig(String keystoresDir, String sslConfDir,
Configuration conf, boolean useClientCert) throws Exception {
setupSSLConfig(keystoresDir, sslConfDir, conf, useClientCert, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void setupSSL() {\n\t\ttry {\n\t\t\tTrustManager[] trustAllCerts = createTrustAllCertsManager();\n\t\t\tSSLContext sslContext = SSLContext.getInstance(SSL_CONTEXT_PROTOCOL);\n\t\t\tSecureRandom random = new java.security.SecureRandom();\n\t\t\tsslContext.init(null, trustAllCerts, random);\n\t\t\tHtt... | [
"0.7296782",
"0.7275015",
"0.71449226",
"0.68620366",
"0.67638063",
"0.66711664",
"0.6657904",
"0.6598367",
"0.64380604",
"0.63841826",
"0.6332867",
"0.6053843",
"0.59614646",
"0.58908886",
"0.5876075",
"0.5845097",
"0.58107835",
"0.5733593",
"0.57177174",
"0.5713079",
"0.567... | 0.65060544 | 8 |
Performs complete setup of SSL configuration in preparation for testing an SSLFactory. This includes keys, certs, keystores, truststores, the server SSL configuration file, the client SSL configuration file, and the master configuration file read by the SSLFactory. | public static void setupSSLConfig(String keystoresDir, String sslConfDir,
Configuration conf, boolean useClientCert,
boolean trustStore)
throws Exception {
setupSSLConfig(keystoresDir, sslConfDir, conf, useClientCert, true,"");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void setupSSL() {\n\t\ttry {\n\t\t\tTrustManager[] trustAllCerts = createTrustAllCertsManager();\n\t\t\tSSLContext sslContext = SSLContext.getInstance(SSL_CONTEXT_PROTOCOL);\n\t\t\tSecureRandom random = new java.security.SecureRandom();\n\t\t\tsslContext.init(null, trustAllCerts, random);\n\t\t\tHtt... | [
"0.72965395",
"0.727474",
"0.7145225",
"0.6861642",
"0.67639875",
"0.6671568",
"0.665787",
"0.6598121",
"0.6506878",
"0.6383686",
"0.6333414",
"0.6054159",
"0.59610486",
"0.5890603",
"0.5877266",
"0.58447534",
"0.58114195",
"0.573292",
"0.5718668",
"0.57129043",
"0.5669883",
... | 0.6438468 | 9 |
Performs complete setup of SSL configuration in preparation for testing an SSLFactory. This includes keys, certs, keystores, truststores, the server SSL configuration file, the client SSL configuration file, and the master configuration file read by the SSLFactory. | public static void setupSSLConfig(String keystoresDir, String sslConfDir,
Configuration conf, boolean useClientCert, boolean trustStore,
String excludeCiphers) throws Exception {
setupSSLConfig(keystoresDir, sslConfDir, conf, useClientCert, trustStore,
excludeCiphers, SERVER_KEY_STORE_PASSWORD_D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void setupSSL() {\n\t\ttry {\n\t\t\tTrustManager[] trustAllCerts = createTrustAllCertsManager();\n\t\t\tSSLContext sslContext = SSLContext.getInstance(SSL_CONTEXT_PROTOCOL);\n\t\t\tSecureRandom random = new java.security.SecureRandom();\n\t\t\tsslContext.init(null, trustAllCerts, random);\n\t\t\tHtt... | [
"0.72966963",
"0.7275468",
"0.7145653",
"0.6862152",
"0.67641145",
"0.6671151",
"0.6658022",
"0.6598983",
"0.65066755",
"0.6438762",
"0.63841206",
"0.605356",
"0.5960841",
"0.5890509",
"0.58764744",
"0.58449715",
"0.5810667",
"0.5733224",
"0.57181656",
"0.5712962",
"0.5670226... | 0.6333333 | 11 |
Performs complete setup of SSL configuration in preparation for testing an SSLFactory. This includes keys, certs, keystores, truststores, the server SSL configuration file, the client SSL configuration file, and the master configuration file read by the SSLFactory and the passwords required to access the keyStores (Ser... | @SuppressWarnings("checkstyle:parameternumber")
public static void setupSSLConfig(String keystoresDir, String sslConfDir,
Configuration conf, boolean useClientCert, boolean trustStore,
String excludeCiphers, String serverPassword, String clientPassword,
String trustPassword) throws Exception {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() throws Exception {\n\t\tString trustKeyStore = null;\n\t\tString trustKsPsword = null;\n\t\tString trustKsType = null;\n\t\t\n\t\t// Read ssl keystore properties from file\n\t\tProperties properties = new Properties();\n\t\tInputStream sslCertInput = Resources.getResourceAsStream(\"sslCertificat... | [
"0.71617526",
"0.7017273",
"0.7010134",
"0.6671843",
"0.6584643",
"0.65698946",
"0.6511554",
"0.6509905",
"0.6495535",
"0.64741045",
"0.63499534",
"0.60426575",
"0.5981222",
"0.59380126",
"0.59351206",
"0.5809276",
"0.5792423",
"0.5782328",
"0.5777134",
"0.57223177",
"0.57093... | 0.688892 | 3 |
Creates SSL configuration for a client. | public static Configuration createClientSSLConfig(String clientKS,
String password, String keyPassword, String trustKS,
String trustPassword) {
return createSSLConfig(SSLFactory.Mode.CLIENT,
clientKS, password, keyPassword, trustKS, trustPassword, "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void createConnectionOptions(ClientOptions clientOptions) {\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUST_ALL).hasParsedValue()) {\n try {\n SSLContext ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(new KeyManager[0], new Trust... | [
"0.74064857",
"0.72199214",
"0.6903076",
"0.6847636",
"0.6842136",
"0.66690177",
"0.6578228",
"0.6550781",
"0.6486218",
"0.64799756",
"0.6439721",
"0.62699795",
"0.62694335",
"0.6218494",
"0.6169073",
"0.6162704",
"0.6117234",
"0.6097277",
"0.60756046",
"0.60685587",
"0.59963... | 0.6959461 | 2 |
Creates SSL configuration for a client. | public static Configuration createClientSSLConfig(String clientKS,
String password, String keyPassword, String trustKS,
String trustPassword, String excludeCiphers) {
return createSSLConfig(SSLFactory.Mode.CLIENT,
clientKS, password, keyPassword, trustKS, trustPassword, excludeCiphers);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void createConnectionOptions(ClientOptions clientOptions) {\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUST_ALL).hasParsedValue()) {\n try {\n SSLContext ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(new KeyManager[0], new Trust... | [
"0.74057513",
"0.7219337",
"0.69597024",
"0.69028145",
"0.6847903",
"0.66700196",
"0.6576411",
"0.65489244",
"0.6483517",
"0.6479219",
"0.64393157",
"0.62680817",
"0.62671816",
"0.62166184",
"0.61676824",
"0.61605686",
"0.6117786",
"0.6095081",
"0.60745144",
"0.60662436",
"0.... | 0.684267 | 5 |
Creates SSL configuration for a server. | public static Configuration createServerSSLConfig(String serverKS,
String password, String keyPassword, String trustKS, String trustPassword)
throws IOException {
return createSSLConfig(SSLFactory.Mode.SERVER,
serverKS, password, keyPassword, trustKS, trustPassword, "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Configuration createServerSSLConfig(String serverKS,\n String password, String keyPassword, String trustKS, String trustPassword,\n String excludeCiphers) throws IOException {\n return createSSLConfig(SSLFactory.Mode.SERVER,\n serverKS, password, keyPassword, trustKS, trustPassword,... | [
"0.7107636",
"0.7081277",
"0.70379466",
"0.7014655",
"0.6888736",
"0.68502736",
"0.67017514",
"0.6608975",
"0.65523094",
"0.6338287",
"0.63118345",
"0.6297484",
"0.62897575",
"0.62520653",
"0.6215559",
"0.6206689",
"0.61933154",
"0.61567557",
"0.61005753",
"0.6070669",
"0.606... | 0.7283393 | 0 |
Creates SSL configuration for a server. | public static Configuration createServerSSLConfig(String serverKS,
String password, String keyPassword, String trustKS, String trustPassword,
String excludeCiphers) throws IOException {
return createSSLConfig(SSLFactory.Mode.SERVER,
serverKS, password, keyPassword, trustKS, trustPassword, excludeC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Configuration createServerSSLConfig(String serverKS,\n String password, String keyPassword, String trustKS, String trustPassword)\n throws IOException {\n return createSSLConfig(SSLFactory.Mode.SERVER,\n serverKS, password, keyPassword, trustKS, trustPassword, \"\");\n }",
"@Post... | [
"0.7283393",
"0.7081277",
"0.70379466",
"0.7014655",
"0.6888736",
"0.68502736",
"0.67017514",
"0.6608975",
"0.65523094",
"0.6338287",
"0.63118345",
"0.6297484",
"0.62897575",
"0.62520653",
"0.6215559",
"0.6206689",
"0.61933154",
"0.61567557",
"0.61005753",
"0.6070669",
"0.606... | 0.7107636 | 1 |
Returns the client SSL configuration file name. Under parallel test execution, this file name is parameterized by a unique ID to ensure that concurrent tests don't collide on an SSL configuration file. | public static String getClientSSLConfigFileName() {
return getSSLConfigFileName("ssl-client");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }",
"private static String getSSLConfigFileName(String base) {\n String testUniqueForkId = System.getProperty(\"test.unique.fork.id\");\n String fileSuffix = testUniqueForkId != null ? \"-\" + testUniqu... | [
"0.7495121",
"0.7161658",
"0.60491705",
"0.6015172",
"0.5853195",
"0.580346",
"0.5741025",
"0.5681826",
"0.567301",
"0.5624645",
"0.5570294",
"0.5517091",
"0.55095035",
"0.54886687",
"0.5429792",
"0.53931236",
"0.536366",
"0.5360773",
"0.5338625",
"0.5335422",
"0.52954143",
... | 0.847563 | 0 |
Returns the server SSL configuration file name. Under parallel test execution, this file name is parameterized by a unique ID to ensure that concurrent tests don't collide on an SSL configuration file. | public static String getServerSSLConfigFileName() {
return getSSLConfigFileName("ssl-server");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getClientSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-client\");\n }",
"private static String getSSLConfigFileName(String base) {\n String testUniqueForkId = System.getProperty(\"test.unique.fork.id\");\n String fileSuffix = testUniqueForkId != null ? \"-\" + testUniqu... | [
"0.77387005",
"0.7341642",
"0.61796135",
"0.58561206",
"0.58124316",
"0.5801641",
"0.57457036",
"0.572384",
"0.56925505",
"0.56524235",
"0.54822034",
"0.547784",
"0.5427925",
"0.54242015",
"0.54242015",
"0.54119563",
"0.5355344",
"0.5322939",
"0.5312359",
"0.52688843",
"0.524... | 0.84138083 | 0 |
Returns an SSL configuration file name. Under parallel test execution, this file name is parameterized by a unique ID to ensure that concurrent tests don't collide on an SSL configuration file. | private static String getSSLConfigFileName(String base) {
String testUniqueForkId = System.getProperty("test.unique.fork.id");
String fileSuffix = testUniqueForkId != null ? "-" + testUniqueForkId : "";
return base + fileSuffix + ".xml";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getClientSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-client\");\n }",
"public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }",
"public static String getConfigFileName() {\r\n\t\treturn configFileName;\r\n\t}",
"String... | [
"0.73171633",
"0.7273646",
"0.60075325",
"0.60058933",
"0.56284714",
"0.53804195",
"0.53733456",
"0.53301835",
"0.5325277",
"0.5257759",
"0.5242666",
"0.5214131",
"0.5207995",
"0.5178953",
"0.5144905",
"0.51410484",
"0.50954384",
"0.5092523",
"0.50859076",
"0.5070159",
"0.505... | 0.7665884 | 0 |
Saves configuration to a file. | public static void saveConfig(File file, Configuration conf)
throws IOException {
Writer writer = new FileWriter(file);
try {
conf.writeXml(writer);
} finally {
writer.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save() {\n\t\tif (fileConfiguration == null || configFile == null)\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tgetConfig().save(configFile);\n\t\t} catch (final IOException e) {\n\t\t\tplugin.getLogger().severe(String.format(\"[%s] Could not save config to %s : %s\", plugin.getName(), configFile, e));\n\t\t}\n\... | [
"0.80568326",
"0.80266684",
"0.7736813",
"0.7486891",
"0.74418044",
"0.7430497",
"0.7413714",
"0.7242733",
"0.71378547",
"0.71294326",
"0.70629483",
"0.7053846",
"0.7018399",
"0.7002823",
"0.6973724",
"0.69413435",
"0.69339156",
"0.6679563",
"0.66777974",
"0.6662616",
"0.6658... | 0.6981648 | 14 |
Create a TrustManager that trusts anything | private static void setAllowAllSSL(HttpsURLConnection httpsConn,
KeyManager km) throws KeyManagementException, NoSuchAlgorithmException {
TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
@Override
public java.security.cert.X509Certificate[] getAcceptedIs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void installTrustManagerNotValidatingCertificateChains() throws NoSuchAlgorithmException,\n KeyManagementException\n {\n // see http://code.google.com/p/misc-utils/wiki/JavaHttpsUrl\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, new TrustMa... | [
"0.68436325",
"0.6790842",
"0.668782",
"0.6683954",
"0.6598801",
"0.63816017",
"0.62645185",
"0.6233498",
"0.62291485",
"0.6172212",
"0.61569077",
"0.6107734",
"0.60550123",
"0.6041398",
"0.5983119",
"0.5834571",
"0.5810913",
"0.5729405",
"0.5660881",
"0.5625229",
"0.561292",... | 0.5026512 | 45 |
TODO Autogenerated method stub | protected void doPost1(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(req, resp);
} | {
"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 |
Enable or disable animation for needle true will enable animation false will disable animation | public void enableAnimation(boolean enableAnimation){
this.enableAnimation = enableAnimation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAnimationEnabled(final boolean animationEnabled);",
"@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }",
"public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else... | [
"0.69697803",
"0.6379626",
"0.6322455",
"0.6267465",
"0.61763346",
"0.6173348",
"0.6151359",
"0.61425626",
"0.61149555",
"0.61033833",
"0.5958462",
"0.59443223",
"0.58927745",
"0.58429897",
"0.5806964",
"0.57950383",
"0.5769908",
"0.5761548",
"0.57575774",
"0.5754158",
"0.574... | 0.6906218 | 1 |
Check if animation enable or disable for needle | public boolean isEnableAnimation() {
return enableAnimation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }",
"protected boolean animationsEnabled() {\n if (!isShown()) {\n return false;\n }\n if (getAlpha() != 1f) {\n return false;\n }\n getLocationOnScreen(mLocInScreen);\n retu... | [
"0.6690101",
"0.6678884",
"0.64635205",
"0.634456",
"0.6284137",
"0.6172328",
"0.6155681",
"0.61159694",
"0.5973593",
"0.59270704",
"0.59152216",
"0.5890354",
"0.58551306",
"0.58437955",
"0.5829561",
"0.57790023",
"0.57546574",
"0.5729606",
"0.57245666",
"0.57100993",
"0.5687... | 0.682421 | 0 |
constructor with no argument | public void registration() {
System.out.print("Enter Name : ");
this.name=scan.nextLine();
System.out.print("Enter Age : ");
this.age=scan.nextInt();
System.out.print("Enter Gender : ");
this.gender=scan.next().charAt(0);
scan.nextLine();
System.out.print("Enter Price : ");
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"public Constructor(){\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public Generic(){\n\t\tthis(null);\n\t}",
"O() { super(null); }",
"priva... | [
"0.7818268",
"0.7579275",
"0.75477976",
"0.7275399",
"0.7168549",
"0.71658146",
"0.71153885",
"0.70463675",
"0.7044018",
"0.69783705",
"0.69580334",
"0.6905129",
"0.68845445",
"0.68844473",
"0.6884166",
"0.68576795",
"0.68558264",
"0.6841299",
"0.68369323",
"0.6835857",
"0.67... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return groupList == null ? 0 : groupList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Object getItem(int position) {
return groupList.get(position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public long getItemId(int position) {
return position;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View getView(int position, View convertView, ViewGroup parent) {
final ViewHolder mHolder;
group = groupList.get(position);
if (convertView == null) {
mHolder = new ViewHolder();
convertView = mInflater.inflate(R.layout.listitem_group, null);
mHolder.admin = (TextView) convertView... | {
"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 |
Stringify the seconds fields | private static String maskUndefined(
int seconds,
BigDecimal fractionalSeconds
){
if(seconds == DatatypeConstants.FIELD_UNDEFINED) {
return null;
} else if (fractionalSeconds == null) {
return Integer.toString(seconds);
} else {
return frac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString(){\r\n String strout = \"\";\r\n strout = String.format(\"%02d:%02d\", this.getMinutes(), this.getSeconds());\r\n return strout;\r\n }",
"private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }",
"pu... | [
"0.70237625",
"0.69573605",
"0.6921143",
"0.6903184",
"0.6774344",
"0.67687625",
"0.668816",
"0.66838866",
"0.66426677",
"0.661841",
"0.65933466",
"0.6569436",
"0.6550443",
"0.6424816",
"0.63877773",
"0.63824123",
"0.63751906",
"0.636858",
"0.6364903",
"0.6256432",
"0.6223694... | 0.55899173 | 76 |
Use UTC for org::w3c::dateTime values < 19700101T00:00:00.000Z | private String sqlDateTime(
XMLGregorianCalendar xmlDateTime,
boolean withTimeZone
){
final long millisecondsSince1970 = xmlDateTime.toGregorianCalendar().getTimeInMillis();
final SimpleDateFormat format;
final String part1;
if(millisecondsSince1970 < 0){
format = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ZonedDateTime toUTCDateTime(Timestamp timestamp) {\n return toInstant(timestamp).atZone(UTCZone);\n }",
"DateTime nowUtc();",
"public static Date GetUTCdatetimeAsDate()\n {\n return StringDateToDate(GetUTCdatetimeAsString());\n }",
"@NoProxy\n @NoWrap\n @NoDump\n publ... | [
"0.6070469",
"0.59046715",
"0.5886862",
"0.5879508",
"0.5820249",
"0.57899666",
"0.5779935",
"0.5771637",
"0.5766099",
"0.57595783",
"0.5644949",
"0.55695623",
"0.55229384",
"0.55050236",
"0.549931",
"0.54570305",
"0.5455186",
"0.5449738",
"0.5415271",
"0.541095",
"0.54001945... | 0.0 | -1 |
Build the time zone information | private String getTimeZone(TimeZone standardTimeZone, Date dateTime) {
return standardTimeZone.inDaylightTime(dateTime) ? this.dateTimeDaylightSavingTimeZone : standardTimeZone.getID();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getTimeZone();",
"com.google.protobuf.ByteString getTimeZoneBytes();",
"private static Map<String, DateTimeZone> m68915c() {\n Map linkedHashMap = new LinkedHashMap();\n linkedHashMap.put(\"UT\", DateTimeZone.f8461a);\n linkedHashMap.put(\"UTC\", DateTimeZone.f8461a);\n ... | [
"0.61170876",
"0.6060032",
"0.5813029",
"0.58005583",
"0.5687488",
"0.5661899",
"0.5561205",
"0.5530253",
"0.54522765",
"0.54461867",
"0.5418691",
"0.5417035",
"0.5366932",
"0.5364738",
"0.5357199",
"0.53509176",
"0.5337322",
"0.5333994",
"0.5327987",
"0.531201",
"0.5284552",... | 0.50520563 | 47 |
Unmarshal an XML datatype value | private Object parse(
String value
){
return
value.startsWith("P") || value.startsWith("-P") ? Datatypes.create(Duration.class, value) :
value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) :
Datatypes.create(java.util.Date.class, value)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testUnmarshal() throws Exception {\n TypeXMLAdapter adapter = new TypeXMLAdapter();\n Assert.assertEquals(currentType, adapter.unmarshal(currentType.toString()));\n }",
"@Override\n\tpublic Object fromXMLString(String arg0) {\n\t\treturn null;\n\t}",
"public Object unmar... | [
"0.6292998",
"0.5674264",
"0.566287",
"0.5602366",
"0.5524045",
"0.54801875",
"0.54553044",
"0.54127574",
"0.5357877",
"0.5315717",
"0.52783376",
"0.5233004",
"0.52185446",
"0.5155818",
"0.51555306",
"0.5151342",
"0.5131529",
"0.5125747",
"0.51161927",
"0.5103191",
"0.5076059... | 0.47993702 | 52 |
Method count client visas | @Override
public int getVisasCountForTheClient(int clientId) throws SQLException {
return dao.getVisasCountForTheClient(clientId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getViewsCount();",
"public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }",
"public int clientsCount(){\n return clientsList.size();\n }",
"public int getNumVisits() {\n return this.numVisits;\n }",
"public void somaVezes(){\n qtVezes++... | [
"0.66462034",
"0.6120704",
"0.6069218",
"0.6064734",
"0.6026779",
"0.599492",
"0.599492",
"0.59930384",
"0.5937724",
"0.5931635",
"0.5924705",
"0.59124017",
"0.5906876",
"0.58576834",
"0.5801299",
"0.57934576",
"0.57927394",
"0.57703876",
"0.57703876",
"0.573716",
"0.57366014... | 0.6942247 | 0 |
Method that find and return all client visas in DB. | @Override
public List<Visa> getVisasForTheClient(int clientId) throws SQLException {
return dao.getVisasForTheClient(clientId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Collection<CentreVisite> getAll() {\n\t\treturn CR.findAll();\n\t}",
"List<Client> findAll();",
"@Override\r\n public List<Visitors> visfindAll() {\n return userMapper.visfindAll();\r\n }",
"public List<T> showAllClients();",
"public List<Client> getAllClient();",
"public... | [
"0.66145533",
"0.6440332",
"0.6394083",
"0.629428",
"0.62671983",
"0.62215143",
"0.6213975",
"0.6209354",
"0.6169638",
"0.6160821",
"0.6152551",
"0.6126849",
"0.6122951",
"0.6094486",
"0.60785943",
"0.60701275",
"0.6045578",
"0.6024032",
"0.601469",
"0.6005303",
"0.60019904",... | 0.7722177 | 0 |
Method that find visa id by his name. | @Override
public int getVisaIdByName(String name) throws SQLException, ClassNotFoundException {
return dao.getId(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String findId(String name) throws Exception {\n\t\treturn null;\n\t}",
"public String getNamedId();",
"public int getId(String name){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tif(myGraph[i].name.compareToIgnoreCase(name) == 0){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1... | [
"0.68927217",
"0.67223454",
"0.64756346",
"0.6353364",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
"0.6328637",
... | 0.7685549 | 0 |
Add information to the ToString builder | public void toStringSegment(final ToString ts) {
ts.append("collectionRef", getCollectionRef());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public StringBuilder toString(StringBuilder sb) {\n super.toString(sb);\n sb.append(\" Alias: \").append(name).append(\"\\n\")\n .append(\" Price: \").append(String.format(\"%,d\", price)).append(\"\\n\");\n return sb;\n }",
"@Synt... | [
"0.6842099",
"0.67688423",
"0.671359",
"0.6685954",
"0.66310203",
"0.6625699",
"0.65783066",
"0.65773344",
"0.6575789",
"0.65644175",
"0.6560143",
"0.65518355",
"0.64933014",
"0.6450422",
"0.6446481",
"0.6445861",
"0.64320755",
"0.6409491",
"0.64045846",
"0.64041",
"0.6403132... | 0.0 | -1 |
get and set function // | public Rectangle getChartArea() {
return chartArea;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String setValue();",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"boolean get();",
"public void get() {\n }",
"String get();",
"String get();",
"protected abstract Set method_1559();",
"public T get() {\n return value;\n }",
"voi... | [
"0.6667771",
"0.6634411",
"0.6622001",
"0.6445336",
"0.6427127",
"0.6427127",
"0.64116937",
"0.63272566",
"0.6318293",
"0.6287037",
"0.6287037",
"0.6273776",
"0.6273207",
"0.62447715",
"0.62440056",
"0.6170988",
"0.61592185",
"0.60793483",
"0.6078814",
"0.60537624",
"0.605376... | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Feature)) {
return false;
}
Feature other = (Feature) object;
return !((this.id == null && other.id != null)
|| (this.id != null && !this.id.equals(other.id)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
Since all other Controllers need the dbcontroller to first set a connection we will call this function first and then init the others. | public static void initDb(String dbUrl, String dbUsername, String dbPwd) throws SQLException {
dbController = DBController.getInstance();
dbController.init(dbUrl, dbUsername, dbPwd);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DatabaseController() {\n\n\t\tloadDriver();\n\t\tconnection = getConnection(connection);\n\t}",
"public static void init() throws SQLException{\n dbController = DBController.getInstance();\n billingController = BillingController.getInstance();\n employeeController ... | [
"0.794178",
"0.77040386",
"0.7072313",
"0.6965111",
"0.69523644",
"0.68981516",
"0.68649566",
"0.6814136",
"0.6773883",
"0.66294926",
"0.66052794",
"0.6573253",
"0.65296584",
"0.65151525",
"0.6507963",
"0.64601684",
"0.6444417",
"0.6443451",
"0.64417344",
"0.643905",
"0.64197... | 0.0 | -1 |
Initializes all the controllers and sets their Singleton instances. | public static void init() throws SQLException{
dbController = DBController.getInstance();
billingController = BillingController.getInstance();
employeeController = EmployeeController.getInstance();
customerServiceController = CustomerServiceController.getInsta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}",
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"private void initializeWashControllers() {\n trNewPetWash = WashesControllersFactory.cre... | [
"0.7529541",
"0.7308692",
"0.7007377",
"0.6995076",
"0.6994584",
"0.68196326",
"0.6814821",
"0.67492115",
"0.67196125",
"0.6712069",
"0.6707599",
"0.6674054",
"0.6651636",
"0.6562943",
"0.65411675",
"0.6505855",
"0.6493874",
"0.6484405",
"0.6475191",
"0.6457365",
"0.6433822",... | 0.6484918 | 17 |
Create an Explicit intent | public void calculateLoan(View view){
Intent intent = new Intent(this, ResultActivity.class);
//TODO: calculate monthly payment and determine
double carPrice;
double downPayment;
double loadPeriod;
double interestRate;
//loan application status; approv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Intent createOne();",
"public static Intent createExplicitFromImplicitIntent(Context context, Intent implicitIntent) {\n PackageManager pm = context.getPackageManager();\r\n List<ResolveInfo> resolveInfo = pm.queryIntentServices(implicitIntent, 0);\r\n // Make sure only o... | [
"0.721807",
"0.7050727",
"0.6798924",
"0.6596142",
"0.6549501",
"0.6466936",
"0.6343085",
"0.6182988",
"0.60968584",
"0.60789347",
"0.6035445",
"0.5999972",
"0.59452397",
"0.5944258",
"0.5944258",
"0.59398055",
"0.59381485",
"0.5933939",
"0.5928116",
"0.5881933",
"0.58627033"... | 0.0 | -1 |
Make this return true when this Command no longer needs to run execute() | @Override
protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean execute() {\n return false;\n }",
"@Override\n public boolean execute() {\n return false;\n }",
"public boolean execute(){\n return false;\n }",
"@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}",
"p... | [
"0.77345294",
"0.77345294",
"0.7678753",
"0.76457655",
"0.75966",
"0.7554271",
"0.6877811",
"0.6748956",
"0.6728847",
"0.66855806",
"0.65891784",
"0.65624696",
"0.64980483",
"0.63857424",
"0.63736373",
"0.6356819",
"0.6356819",
"0.63498974",
"0.63401324",
"0.63290936",
"0.632... | 0.62499565 | 51 |
Called once after isFinished returns true | @Override
protected void end() {
if(Robot.usePivot()) {
Robot.acquisition.acquisitionMotor.set(ControlMode.PercentOutput, 0);
}
Robot.acquisition.rollerMotor.set(ControlMode.PercentOutput, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\... | [
"0.85854495",
"0.85395205",
"0.83341306",
"0.83313096",
"0.83313096",
"0.83068",
"0.8305024",
"0.8298836",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
... | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | @Override
protected void interrupted() {
if(Robot.usePivot()) {
Robot.acquisition.acquisitionMotor.set(ControlMode.PercentOutput, 0);
}
Robot.acquisition.rollerMotor.set(ControlMode.PercentOutput, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi... | [
"0.5763735",
"0.5597857",
"0.5525979",
"0.5434967",
"0.53826046",
"0.53644043",
"0.5349786",
"0.5344097",
"0.5329482",
"0.53283983",
"0.5299414",
"0.5261541",
"0.5256005",
"0.52316135",
"0.52242804",
"0.52031666",
"0.5192441",
"0.5177707",
"0.5162963",
"0.51539654",
"0.514155... | 0.0 | -1 |
TODO: Remove dependencies outside com.molamil package | static public int toPX(int dp)
{
DisplayMetrics displayMetrics = OsoNegroApp.getAndroidActivity().getResources().getDisplayMetrics();
return (int)((dp * displayMetrics.density) + 0.5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private MApi() {}",
"private OMUtil() { }",
"private MetallicityUtils() {\n\t\t\n\t}",
"private Marinator() {\n }",
"private Marinator() {\n }",
"private JacobUtils() {}",
"public void mo6081a() {\n }",
"public void mo4359a() {\n }",
"protected void mo6255a() {\n }",
"publi... | [
"0.6389777",
"0.60897136",
"0.60128164",
"0.5702566",
"0.5702566",
"0.5667425",
"0.548341",
"0.5472393",
"0.54119116",
"0.5384011",
"0.53799653",
"0.53720176",
"0.5369671",
"0.535969",
"0.5326857",
"0.53248215",
"0.531459",
"0.531459",
"0.531459",
"0.531459",
"0.531459",
"0... | 0.0 | -1 |
Always use a SecureRandom generator | public static byte[] getSalt() throws NoSuchAlgorithmException {
SecureRandom sr = SecureRandom.getInstance(SHA1PRNG);
//Create array for salt
byte[] salt = new byte[16];
//Get a random salt
sr.nextBytes(salt);
//return salt
return salt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private SecureRandom getSecureRandom() {\n if (secureRandom == null)\r\n try {\r\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\r\n } catch (NoSuchAlgorithmException ex) {\r\n throw new RuntimeException(\"Could not obtain a SecureRandom instance\... | [
"0.7485308",
"0.7483688",
"0.7438803",
"0.74106485",
"0.71173334",
"0.6980634",
"0.67387",
"0.6718733",
"0.6580044",
"0.65155953",
"0.65010023",
"0.63909304",
"0.63769495",
"0.6330764",
"0.6321673",
"0.6319388",
"0.6312853",
"0.6312311",
"0.62641156",
"0.626281",
"0.62617975"... | 0.0 | -1 |
Always use a SecureRandom generator | public static byte[] getSalt(String provider) throws NoSuchAlgorithmException, NoSuchProviderException
{
SecureRandom sr = SecureRandom.getInstance("SHA1PRNG", provider);
//Create array for salt
byte[] salt = new byte[16];
//Get a random salt
sr.nextBytes(salt);
//ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private SecureRandom getSecureRandom() {\n if (secureRandom == null)\r\n try {\r\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\r\n } catch (NoSuchAlgorithmException ex) {\r\n throw new RuntimeException(\"Could not obtain a SecureRandom instance\... | [
"0.7485308",
"0.7483688",
"0.7438803",
"0.74106485",
"0.71173334",
"0.6980634",
"0.67387",
"0.6718733",
"0.6580044",
"0.65155953",
"0.65010023",
"0.63909304",
"0.63769495",
"0.6330764",
"0.6321673",
"0.6319388",
"0.6312853",
"0.6312311",
"0.62641156",
"0.626281",
"0.62617975"... | 0.0 | -1 |
Convierte una lista de ComentarioEntity a una lista de ComentarioDTO. | private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {
List<ComentarioDTO> list = new ArrayList();
for (ComentarioEntity entity : entityList) {
list.add(new ComentarioDTO(entity));
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"public static List<CoordinadorDTO> tolistCoordinador(List... | [
"0.789117",
"0.77017903",
"0.7560199",
"0.75267863",
"0.72587353",
"0.7229463",
"0.70988077",
"0.70970166",
"0.7048061",
"0.701236",
"0.69753796",
"0.69705826",
"0.67414826",
"0.6736463",
"0.6703461",
"0.6679879",
"0.6677622",
"0.665331",
"0.66448474",
"0.6638013",
"0.6590001... | 0.8195336 | 0 |
Convierte una lista de ComentarioDTO a una lista de ComentarioEntity. | private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {
List<ComentarioEntity> list = new ArrayList<>();
for (ComentarioDTO dto : dtos) {
list.add(dto.toEntity());
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n for (ComentarioEntity entity : entityList) {\n list.add(new ComentarioDTO(entity));\n }\n return list;\n }",
"public static List<CoordinadorDTO... | [
"0.7900706",
"0.7590194",
"0.7353792",
"0.7286994",
"0.7203164",
"0.719567",
"0.7120462",
"0.6765408",
"0.676236",
"0.6713006",
"0.6702619",
"0.6616651",
"0.6553828",
"0.65360403",
"0.65008265",
"0.6488733",
"0.64156395",
"0.64141685",
"0.6407195",
"0.63984716",
"0.6387752",
... | 0.8025601 | 0 |
TODO Autogenerated method stub | @Override
public boolean eliminaDipendente() {
return false;
} | {
"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 |
/ returns the number of toonies | public int getLoonie () {
return NLoonie;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumTowns() {\n \t\treturn towns;\n \t}",
"int getWayCount();",
"int getNoOfParties();",
"public int numberOfTires() {\n int tires = 4;\n return tires;\n }",
"int getTrucksCount();",
"int getTransitFlightsCount();",
"public Integer getTrophies()\n\t{\n\t\treturn trophies;\... | [
"0.71784395",
"0.66633683",
"0.663641",
"0.6593956",
"0.65842104",
"0.6317688",
"0.62867117",
"0.62747204",
"0.62472135",
"0.62462634",
"0.6235465",
"0.62259483",
"0.6210533",
"0.6210146",
"0.6179769",
"0.6170088",
"0.6129577",
"0.6118585",
"0.6115021",
"0.61024654",
"0.60889... | 0.0 | -1 |
/ returns the number of loonie | public int getQuarter () {
return NQuarter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLoonie () {\n return NLoonie;\n }",
"int nbLignes();",
"int getNumberOfInfantry();",
"int getAoisCount();",
"public int lancia() {\r\n\t\tlancio = dado.tiraDado();\r\n\t\tthis.numLanci++;\r\n\t\treturn lancio;\r\n\t}",
"public int numberOfKnightsIn() { // numero di cavalie... | [
"0.74992",
"0.70372516",
"0.6968442",
"0.6783946",
"0.67544",
"0.6729066",
"0.66627043",
"0.66216874",
"0.65696174",
"0.6529639",
"0.64981705",
"0.648302",
"0.64762497",
"0.6469946",
"0.64420485",
"0.643031",
"0.6401792",
"0.6399092",
"0.63970506",
"0.6377978",
"0.63770324",
... | 0.0 | -1 |
/ returns the number of quarter | public int getDime () {
return NDime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getQuarter () {\n return NQuarter;\n }",
"public String getQuarter() {\r\n return quarter;\r\n }",
"public Integer getQuarter() {\r\n return QTR;\r\n }",
"@Override\n\tpublic void endOfQuarter(int quarter) {\n\t\t\n\t}",
"public void setQuarter(String quarter) {\r\n... | [
"0.8099115",
"0.7443062",
"0.7427083",
"0.68280756",
"0.68219095",
"0.67486095",
"0.6587478",
"0.632712",
"0.63174313",
"0.61740416",
"0.6083072",
"0.6007693",
"0.59573424",
"0.5825226",
"0.5795027",
"0.5775016",
"0.571722",
"0.5691237",
"0.5668771",
"0.560013",
"0.55856365",... | 0.0 | -1 |
/ returns the number of dime | public int getNickel () {
return NNickel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDimes()\n {\n\treturn dimes;\n }",
"public int getDime () {\n return NDime;\n }",
"public static int numDimes(double money) {\n int dimes=0;\n while (money>0.10){\n dimes++;\n money=(money-0.10);}\n return dimes;}",
"public i... | [
"0.7233531",
"0.718697",
"0.6705334",
"0.6682813",
"0.6631919",
"0.6402761",
"0.62567604",
"0.62073034",
"0.6206399",
"0.6173451",
"0.6152678",
"0.61475176",
"0.61374456",
"0.61275715",
"0.6122518",
"0.60652333",
"0.6060714",
"0.60371244",
"0.60311586",
"0.60299176",
"0.60299... | 0.0 | -1 |
/ returns the number of nickel | public void removeCoin (Coin coin, int amount) {
if(!ableToRemove(coin, amount)) System.out.println("There are not enough of this coin type to be removed!");
if(coin.getType().equalsIgnoreCase("Nickel")) { /* removing nickel from piggy bank */
NNickel -= amount;
for(int i = 0; i ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int numNickels(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }",
"public int getNickel () {\n return NNickel;\n }",
"public int getNickels()\n {\n\treturn nickels;\n }",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n... | [
"0.8230887",
"0.7406735",
"0.7050908",
"0.70159745",
"0.65547645",
"0.6532295",
"0.6520461",
"0.64482003",
"0.6393321",
"0.639126",
"0.6389043",
"0.63873285",
"0.6384724",
"0.6342317",
"0.6295661",
"0.62833965",
"0.62805736",
"0.62805736",
"0.6269438",
"0.62685853",
"0.626427... | 0.0 | -1 |
List of Unused Functions | public void takeoutMoney (double amount) {
if(amount >= 2.0) {
int numberToRemove = (int) Math.min(getToonie(), amount / 2.0);
for(int i = 0; i < numberToRemove; i++) {
for(int j = 0; j < coins.size(); j++) {
if(coins.get(j).getValue() == 2.0) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Function> getFunctions(){\n\t\t\n\t\treturn null;\n\t}",
"public FunctionInfo[] getFunctions() {\n/* 236 */ return this.functions;\n/* */ }",
"public String getFunctions();",
"public Set<String> getRegisteredFunctions();",
"public final List<DepFunction> getFunctions() {\n\t\treturn n... | [
"0.672745",
"0.66415775",
"0.6459036",
"0.634174",
"0.61377513",
"0.6048555",
"0.5862743",
"0.58455306",
"0.57959235",
"0.5788388",
"0.56966",
"0.5674232",
"0.5662299",
"0.5662217",
"0.56602067",
"0.56076235",
"0.5578546",
"0.5563728",
"0.55499226",
"0.5515371",
"0.5508848",
... | 0.0 | -1 |
Builds and returns a Plus service object authorized with the service accounts that act on behalf of the given user. | private static PlusDomains authenticate() throws GeneralSecurityException, IOException {
System.out.println(String.format("Authenticate the domain for %s", USER_EMAIL));
HttpTransport httpTransport = new NetHttpTransport();
JsonFactory jsonFactory = new JacksonFactory();
// Setting the sub field with... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer addUser(ServiceUserEntity user);",
"@WebMethod public Account getUser(String user);",
"@WebMethod\n public String addUser(\n @WebParam(name = \"access_token\") String access_token,\n @WebParam(name = \"user\") String user) {\n return ProfileHandler.doAddUser(access_token, user);\n }",
... | [
"0.5449965",
"0.53361857",
"0.51152474",
"0.50948304",
"0.508586",
"0.5065033",
"0.49902734",
"0.49746117",
"0.49746117",
"0.49408194",
"0.49404854",
"0.4859658",
"0.4854103",
"0.48448554",
"0.48445123",
"0.4825901",
"0.48196372",
"0.48103455",
"0.48015612",
"0.4795637",
"0.4... | 0.5812347 | 0 |
Create a new post on behalf of the user associated with the credential object of the service, restricted to the domain. | public static void main(String[] args) throws Exception {
// Create an authorized API client
PlusDomains service = authenticate();
File file = new java.io.File(SERVICE_ACCOUNT_PKCS12_FILE_PATH);
System.out.println("file Can Read :: "+ file.canRead());
System.out.println("service :: "+service);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostMapping(\"/\")\n private ResponseEntity<Post> createPost(@RequestBody Post post) {\n User user = getCurrentUser();\n post.setCreated(new Date());\n post.setUserId(user.getId());\n post = postService.add(post);\n\n return new ResponseEntity<>(post, HttpStatus.OK);\n }",... | [
"0.6032855",
"0.59485",
"0.5859256",
"0.55106753",
"0.54277253",
"0.5427065",
"0.5380902",
"0.5357984",
"0.53460246",
"0.53449726",
"0.53366756",
"0.53120744",
"0.5283967",
"0.52422756",
"0.52263457",
"0.5222032",
"0.5187935",
"0.5181213",
"0.5151395",
"0.51292413",
"0.512369... | 0.5566686 | 3 |
Constructs a map category. | public static native MapCategory newInstance() /*-{
return new $wnd.google.gdata.maps.MapCategory();
}-*/; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void fill_map(){\n\t\tcategory_links_map.put(\"Categories\", \"Movies\");\n\t\tcategory_links_map.put(\"Actors\", \"Movies\");\n\t\tcategory_links_map.put(\"Movies\", \"Actors\");\n\t\tcategory_links_map.put(\"Artists\", \"Creations\");\n\t\tcategory_links_map.put(\"Creations\", \"Artists\");\n\t\tca... | [
"0.6161598",
"0.6160585",
"0.6003029",
"0.59996676",
"0.5982134",
"0.58997643",
"0.5863643",
"0.5797237",
"0.57544905",
"0.57104427",
"0.5685703",
"0.5680304",
"0.56679404",
"0.566595",
"0.56624657",
"0.56419647",
"0.56324005",
"0.56302255",
"0.562707",
"0.5597694",
"0.558890... | 0.73017836 | 0 |
Launches SNP statistics gatherer (getSNPStatisticsPerSample) function for each snvmix file in the sample folders from dirName | public void runForEachSample(String dirName, String fnamePattern){
System.out.println("Getting all files with reads per transcripts counts. Files names finish with " + fnamePattern);
File dir = new File(dirName);
for (File ch : dir.listFiles()) {
if (ch.isDirectory())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getSNPStatisticsPerSample(String fName) throws IOException{\n File mpileupFile = new File(fName.replace(\".snvmix\", \"\").replace(\".cov5\", \"\"));\n if (! mpileupFile.exists()){\n mpileupFile = new File(fName.replace(\".snvmix\", \".gz\"));\n if (! mpileupFile.exi... | [
"0.7458163",
"0.5927335",
"0.53683025",
"0.519948",
"0.49675798",
"0.49259335",
"0.4919175",
"0.48844492",
"0.48248503",
"0.47904533",
"0.47854796",
"0.4732136",
"0.47193488",
"0.47024897",
"0.46683294",
"0.46680552",
"0.46492088",
"0.46304312",
"0.46192893",
"0.46192893",
"0... | 0.7160522 | 1 |
/ checks if the 2 genotypes are equal (Strings AA, BB, AB) | private boolean equalGenotypes(String g1, String g2){
HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));
HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));
return gt1.equal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean typeStringsEqual(String uti1, String uti2);",
"public boolean equalGenotypes(AbstractEAIndividual individual) {\n if (individual instanceof GAIndividualBinaryData) {\n GAIndividualBinaryData indy = (GAIndividualBinaryData) individual;\n if (this.m_GenotypeLength != ind... | [
"0.6933437",
"0.6485176",
"0.64546597",
"0.63674414",
"0.6345751",
"0.63231885",
"0.61995685",
"0.6164875",
"0.61461467",
"0.6136558",
"0.6129298",
"0.6127991",
"0.60916907",
"0.60774964",
"0.60763973",
"0.6064488",
"0.60591215",
"0.60522616",
"0.6036259",
"0.6035609",
"0.600... | 0.8665744 | 0 |
Gathers information about all SNPs called: coverage, exon/intron, average base quality, genotype probability from SNVMix, CR, MAF, HWEP, etc | public void getSNPStatisticsPerSample(String fName) throws IOException{
File mpileupFile = new File(fName.replace(".snvmix", "").replace(".cov5", ""));
if (! mpileupFile.exists()){
mpileupFile = new File(fName.replace(".snvmix", ".gz"));
if (! mpileupFile.exists()){
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDatasets(VerifiedSNP snp, String phenotype) {\r\n int overallMaxN = 0;\r\n double overallMaxSEM = 0;\r\n double overallMinSEM = -1;\r\n double overallMaxPercentile = 0;\r\n double overallMinPercentile = -1;\r\n double overallMaxMedian = 0;\r\n double ... | [
"0.57948387",
"0.5734693",
"0.55424094",
"0.5449878",
"0.53462976",
"0.5263561",
"0.5239934",
"0.5235682",
"0.52219564",
"0.5177299",
"0.5165616",
"0.5109626",
"0.5096646",
"0.50941944",
"0.5069448",
"0.5067453",
"0.5067453",
"0.5067453",
"0.5062525",
"0.5045458",
"0.5045458"... | 0.7114548 | 0 |
Makes a map for conversion of sample IDs (used if they are different in expression (and RNAseq genotype) and genotype) | private void makeIDconverter(String fName) throws IOException{
TextFile gte = new TextFile(fName, false);
IDconverter = gte.readAsHashMap(1, 0);
gte.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Map<String,List<Integer>> getProvisionIdMapStream(Map<String,List<Integer>> nameMapIdMap,Map<String,Integer> mapIdProbIdMap){\n return null;\n }",
"Map getGenAttributes();",
"private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\... | [
"0.55928266",
"0.55443287",
"0.5490522",
"0.5469199",
"0.5388154",
"0.5361145",
"0.5357056",
"0.5356547",
"0.53436714",
"0.5333347",
"0.53094804",
"0.5306779",
"0.5277456",
"0.5175003",
"0.5170858",
"0.5168361",
"0.51583505",
"0.5158017",
"0.51390785",
"0.5131554",
"0.5116043... | 0.47433132 | 50 |
Cleanup after the tests. Close all the browsers. | @AfterStories
public final void afterStories() {
chromeDriver.quit();
firefoxDriver.close();
internetExplorerDriver.quit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AfterTest\n\tpublic void closeBrowser() {\n\t\tdriver.close();\n\t}",
"public void closeAllBrowsers() {\n\n driver.quit();\n\n\n }",
"@AfterClass\n\tpublic void closeBrowser(){\n\t\tdriver.quit();\n\t}",
"@AfterClass(alwaysRun = true)\n public static void cleanup() {\n try {\n ... | [
"0.83192676",
"0.82458204",
"0.8154822",
"0.8150641",
"0.812489",
"0.8067977",
"0.7972055",
"0.7911395",
"0.7882202",
"0.7865319",
"0.7863479",
"0.7844277",
"0.7841058",
"0.7829714",
"0.78196305",
"0.7805551",
"0.77923834",
"0.7743011",
"0.7713298",
"0.76699233",
"0.76370007"... | 0.74755496 | 36 |
Step. Given the user opens the index page. | @Given("the user opens the index page")
public final void givenTheUserOpensTheIndexPage() {
getHomePage(chromeDriver);
getHomePage(firefoxDriver);
getHomePage(internetExplorerDriver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToHome() throws IOException {\n\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"index.xhtml\");\n\t}",
"@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}",
"@Given(\"^user is on the main page of website$\")\n public void userIsOnTheMainPageOfWebsite()... | [
"0.6280735",
"0.6162676",
"0.61014795",
"0.6090098",
"0.6029322",
"0.60230714",
"0.5990079",
"0.5931358",
"0.5928872",
"0.59156835",
"0.59034735",
"0.5895339",
"0.5865551",
"0.58396786",
"0.58341485",
"0.5829936",
"0.58254814",
"0.58254176",
"0.5790076",
"0.57766545",
"0.5776... | 0.8083341 | 0 |
Navigate to the home page. | private void getHomePage(final WebDriver webDriver) {
webDriver.get(HTML_URL);
checkTitle(webDriver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gotoHome(){ application.gotoHome(); }",
"public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}",
"public void goHome();",
"public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"An... | [
"0.77888614",
"0.77680314",
"0.77047575",
"0.7647945",
"0.7478706",
"0.7426852",
"0.74121463",
"0.7280449",
"0.72790796",
"0.7247383",
"0.7218302",
"0.720553",
"0.71726364",
"0.71715957",
"0.7170332",
"0.71474475",
"0.71295863",
"0.71268404",
"0.71132433",
"0.70534897",
"0.70... | 0.64947283 | 65 |
Checks the page title. | private void checkTitle(final WebDriver driver) {
final String title = driver.getTitle();
Assert.assertEquals("Wrong page title", PAGE_TITLE, title);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean verifyTitle(String title) {\n\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\tSystem.out.println(\"Page title: \"+title+\" matched successfully\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Page url: \"+title+\" not matched\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
... | [
"0.7897582",
"0.7833746",
"0.77996296",
"0.77963513",
"0.7665104",
"0.7468255",
"0.74295324",
"0.7375685",
"0.7347679",
"0.7313187",
"0.729706",
"0.72888404",
"0.7287802",
"0.72559565",
"0.7190007",
"0.7137491",
"0.70602334",
"0.7029524",
"0.7020071",
"0.6967235",
"0.69620806... | 0.7690249 | 4 |
Step. When the user waits for the next news to be loaded. | @When("the user waits for the next news to be loaded")
public final void whenTheUserWaitsForTheNextNewsToBeLoaded() {
waitForNextNews(chromeDriver);
waitForNextNews(firefoxDriver);
waitForNextNews(internetExplorerDriver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void waitForNextNews(final WebDriver webDriver) {\r\n\t\tfinal WebDriverWait wait = new WebDriverWait(webDriver, WAIT_SECONDS);\r\n\t\twait.until(\r\n\t\t\tExpectedConditions.elementToBeClickable(By.className(\"tbutton\"))\r\n\t\t);\r\n\t}",
"private void waitForFirstPageToBeLoaded() {\n IdlingRes... | [
"0.69078183",
"0.66592133",
"0.6326353",
"0.6269005",
"0.5996554",
"0.59938073",
"0.5979058",
"0.5861923",
"0.58569837",
"0.58432436",
"0.5830982",
"0.5800704",
"0.5788761",
"0.57387865",
"0.5695055",
"0.5686664",
"0.56733406",
"0.56565136",
"0.5649892",
"0.5615647",
"0.56118... | 0.79620034 | 0 |
Wait for next news to be loaded (using AJAX). | private void waitForNextNews(final WebDriver webDriver) {
final WebDriverWait wait = new WebDriverWait(webDriver, WAIT_SECONDS);
wait.until(
ExpectedConditions.elementToBeClickable(By.className("tbutton"))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@When(\"the user waits for the next news to be loaded\")\r\n\tpublic final void whenTheUserWaitsForTheNextNewsToBeLoaded() {\r\n\t\twaitForNextNews(chromeDriver);\r\n\t\twaitForNextNews(firefoxDriver);\r\n\t\twaitForNextNews(internetExplorerDriver);\r\n\t}",
"public synchronized void waitUntilLoad() {\n\t\twhile... | [
"0.74193776",
"0.6850754",
"0.6566519",
"0.64797086",
"0.64620435",
"0.64592373",
"0.6405414",
"0.6375288",
"0.6299245",
"0.62564725",
"0.6092329",
"0.59882355",
"0.59826535",
"0.5951816",
"0.5931038",
"0.59281677",
"0.59275365",
"0.5905267",
"0.5863022",
"0.5857864",
"0.5843... | 0.69996727 | 1 |
Step. When the user clicks the $button button. | @When("the user clicks the $button button")
public final void whenTheUserClicksTheButton(
@Named("button") final String button) {
String buttonClass = null; // NOPMD
if ("verdadero".equals(button)) {
buttonClass = "tbutton"; // NOPMD
}
if ("falso".equals(button)) {
buttonClass = "fbutton";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"public void buttonClicked();",
"public void buttonClic... | [
"0.7211605",
"0.70059735",
"0.69907624",
"0.68824816",
"0.6879817",
"0.6849602",
"0.6810869",
"0.6770595",
"0.66839564",
"0.66378933",
"0.66167986",
"0.6571792",
"0.65644306",
"0.65624726",
"0.65547293",
"0.6540677",
"0.65166503",
"0.65012187",
"0.6493904",
"0.64616066",
"0.6... | 0.6990764 | 2 |
Test if the button can be clicked. | private void clickTheButton(final String buttonClass,
final WebDriver webDriver) {
final WebElement button =
webDriver.findElement(By.className(buttonClass));
Assert.assertTrue("The button is not visible", button.isDisplayed());
Assert.assertTrue("The button is not enabled", button.isEnabled());
but... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean canClickButtons(int interfaceId, int buttonId, int slotId,\r\n\t\t\tint packetId) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean canClickButtons(int interfaceId, int buttonId, int slotId,\r\n\t\t\tint packetId) {\n\t\treturn false;\r\n\t}",
"public boolean isButton()... | [
"0.6994241",
"0.6994241",
"0.6977759",
"0.6751723",
"0.6748796",
"0.66628444",
"0.66433907",
"0.6616504",
"0.66013706",
"0.66008073",
"0.65863585",
"0.65752774",
"0.6557608",
"0.6500877",
"0.6499443",
"0.6498286",
"0.6466998",
"0.64486253",
"0.6387088",
"0.6384908",
"0.637651... | 0.0 | -1 |
Step. Then the user view the results page realono. | @Then("the user view the results page realono")
public final void thenTheUserViewTheResultsPageRealono() {
checkTitle(chromeDriver);
checkTitle(firefoxDriver);
checkTitle(internetExplorerDriver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Given(\"I am on the search results page\")\n\t\tpublic void i_am_on_the_search_results_page() {\n\t\t\t//I am on the results page\n\t\t\tdriver.get(ResultsUrl);\n\n\t\t}",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted()... | [
"0.722898",
"0.66561246",
"0.65602934",
"0.6305501",
"0.62683505",
"0.6190191",
"0.61588407",
"0.6132535",
"0.61319727",
"0.61319727",
"0.60763776",
"0.60586536",
"0.60308427",
"0.60241807",
"0.6015225",
"0.60025454",
"0.59992653",
"0.5987323",
"0.5945022",
"0.58834136",
"0.5... | 0.6507223 | 3 |
TODO Autogenerated method stub | @Override
public void fillCmd(DNSCmd cmd) {
Assert.isTrue(startNum <= endNum);
for (int i = startNum; i < endNum; i++) {
String record;
record = template.replaceAll("\\$", new Integer(i).toString());
DNSRecord newRecord;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean matchesRecord(DNSRecord rec) {
return false;
} | {
"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 |
fill this with a default | public void run()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setToDefault(){\n\n\t}",
"public void setToDefault();",
"private Default()\n {}",
"public void initDefaultValues() {\n }",
"public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _... | [
"0.7198515",
"0.69806564",
"0.6837951",
"0.6791578",
"0.6463181",
"0.6451376",
"0.6432569",
"0.6426094",
"0.63688564",
"0.6330886",
"0.62878793",
"0.6129214",
"0.61127293",
"0.6106072",
"0.6095421",
"0.6069953",
"0.6037903",
"0.59954447",
"0.59836733",
"0.59836733",
"0.595878... | 0.0 | -1 |
Dinero que gana el jugador | public void setDineroGanado(int dineroGanado) {
this.dineroGanado += dineroGanado;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Jugador obtenerJugador();",
"public jugador(){\n\t\tnombre=\"Dave\";\n\t\ttipo=\"jugador\";\n\t\tpoderataque=6;\n\t\tpuntosvida=20;\n\t}",
"private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Tec... | [
"0.75493497",
"0.73842734",
"0.7376589",
"0.7305615",
"0.72379625",
"0.7235442",
"0.71937776",
"0.71874887",
"0.7164109",
"0.7115061",
"0.7068579",
"0.7034413",
"0.7021295",
"0.69806916",
"0.67653203",
"0.67560834",
"0.67516506",
"0.6743471",
"0.6732037",
"0.6712194",
"0.6697... | 0.0 | -1 |
Sets the action to be executed when the specified resource bar element is clicked by the user | public void setElementAction(ResourceBarElement element, IAction action) {
elementActions.put(element, action);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setElementAction(ResourceBarElement element, IAction action) {\n\n\t\telementActions.put(element, action);\n\t\t\n\t}",
"public void setElementAction(ResourceBarElement element, IAction action) {\n\t\telementActions.put(element, action);\n\t}",
"public void setElementAction(ResourceBarElement eleme... | [
"0.68120456",
"0.67898595",
"0.6755757",
"0.6242667",
"0.6242667",
"0.6132856",
"0.6111578",
"0.6028628",
"0.59530085",
"0.59080887",
"0.5907615",
"0.58443034",
"0.58077776",
"0.5801471",
"0.57828164",
"0.57377017",
"0.56828874",
"0.5681671",
"0.5680529",
"0.5647994",
"0.5644... | 0.68350714 | 0 |
TODO PROVJERI DA LI SMIJE PREUZIMATI | public synchronized void ProvjeriPreuzimanje() {
dopustenoPreuzimanje = true;
if (dopustenoPreuzimanje) {
SveFunkcijeDretve();
} else {
//sleep
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void cajas() {\n\t\t\n\t}",
"private void remplirPrestaraireData() {\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"private void remplirUtiliseData() {\n\t}",
"@Override\n\tpublic void emprestimo(... | [
"0.64261705",
"0.6211965",
"0.61410046",
"0.59834856",
"0.5884912",
"0.58550334",
"0.5772392",
"0.5695025",
"0.5682749",
"0.56358",
"0.5611806",
"0.56111175",
"0.55867684",
"0.5576996",
"0.55588514",
"0.5551256",
"0.55498433",
"0.5542351",
"0.55380297",
"0.55277073",
"0.55262... | 0.0 | -1 |
Funckija za provjeru novog datuma da li treba zaustaviti dretu | private synchronized boolean ProvjeriNoviDatum(Timestamp datum) {
boolean doKraja = false;
String datumKraj = konf.getKonfig().dajPostavku("preuzimanje.kraj");
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy");
Date datumProvjere = new Date(datum.getTime());
try {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\tpublic void funkcie() {\n\t\tTableColumn<Znamka, String> datumColumn = new TableColumn<>(\"Datum pisomky\");\n\t\tdatumColumn.setMinWidth(velkostPolickaX - 1);\n\t\tdatumColumn.setCellValueFactory(new PropertyValueFactory<>(\"datumS\"));\n\n\t\tTableColumn<Znamka, Double> hodnot... | [
"0.6648571",
"0.6565758",
"0.62956387",
"0.621873",
"0.61843413",
"0.617814",
"0.61298275",
"0.6129391",
"0.6113149",
"0.6090085",
"0.60836154",
"0.6028837",
"0.60255504",
"0.6014319",
"0.60122365",
"0.6009393",
"0.6008343",
"0.5998458",
"0.5993818",
"0.59688157",
"0.59552777... | 0.5714506 | 73 |
4B: one minute cnt scan requests | public ADStructManufacturer_iBLio_N05(byte type, byte[] content, String mac) {
super(type, content, mac);
this.batteryLevel = BleUtil.uint16(content[6], content[7]);
createMTemp(content[8], content[9]);
createSTemp(content[10], content[11]);
this.sensorHum100 = BleUtil.uint16(content[12], content[13]);
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws InterruptedException {\n\n Random random = new Random();\n RateLimitingVOne rateLimiter = new RateLimitingVOne();\n UUID userId = UUID.randomUUID();\n\n List<Request> allRequests = new ArrayList<>();\n\n long start = System.currentTi... | [
"0.6337913",
"0.61280864",
"0.5916046",
"0.59097433",
"0.56598055",
"0.56598055",
"0.56586826",
"0.56576437",
"0.56016874",
"0.55831236",
"0.55541396",
"0.5547547",
"0.5540944",
"0.54914737",
"0.5439462",
"0.5433061",
"0.5367361",
"0.5333262",
"0.53219503",
"0.5309526",
"0.52... | 0.0 | -1 |
create book rest api | @PostMapping("/books")
public Book createBook(@RequestBody Book book)
{
return bookRepository.save(book);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createBook(Book book) {\n final BookServiceResult result = bookService.addBook(book);\n return Response\n .status(result.getStatus())\n .entity(getJsonFromServiceResult(result))\n .build... | [
"0.7434796",
"0.7427654",
"0.7287865",
"0.7166335",
"0.7087834",
"0.70000684",
"0.69093287",
"0.6881707",
"0.67889035",
"0.67800564",
"0.6539675",
"0.6487031",
"0.641225",
"0.63496",
"0.62690824",
"0.6204239",
"0.6178928",
"0.6143928",
"0.61103",
"0.6105109",
"0.608926",
"0... | 0.7281837 | 3 |
update book rest api | @PutMapping("/books/{id}")
public ResponseEntity<Book> updateBook(@PathVariable Long id,@RequestBody Book bookDetails)
{
Book book = bookRepository.findById(id)
.orElseThrow(() -> new ResourceNotFoundException("Book Not found with id" + id));
book.setTitle(bookDetails.getTitle());
book.setAuthors(bookDetail... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PutMapping(\"/book\")\n public ResponseEntity<?> update(@RequestBody Book book) {\n bookService.update(book);\n\n return ResponseEntity.ok().body(\"Book has been updated successfully.\");\n }",
"@PutMapping(\"/update/{id}\")\n public ResponseEntity<Void> updateBook(@RequestBody Book book,... | [
"0.79115504",
"0.761791",
"0.7594724",
"0.7433961",
"0.73141384",
"0.712209",
"0.7049201",
"0.68607354",
"0.6820148",
"0.6789789",
"0.6730211",
"0.6621733",
"0.6617187",
"0.66157585",
"0.6584804",
"0.6571681",
"0.64735585",
"0.64735585",
"0.6449864",
"0.64390296",
"0.64293444... | 0.7615846 | 2 |
delete book rest api | @DeleteMapping("/books/{id}")
public ResponseEntity<Map<String, Boolean>> deleteBook(@PathVariable Long id)
{
Book book = bookRepository.findById(id)
.orElseThrow(() -> new ResourceNotFoundException("Book Not found with id" + id));
bookRepository.delete(book);
Map<String, Boolean> response = new HashMap<>()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DeleteMapping(\"/book\")\n public ResponseEntity<?> delete(@RequestBody Book book) {\n bookService.delete(book);\n return ResponseEntity.ok().body(\"Book has been deleted successfully.\");\n }",
"@RequestMapping(\"/book/delete/{id}\")\n public String delete(@PathVariable Long id){\n ... | [
"0.8126222",
"0.7564207",
"0.7544556",
"0.75414526",
"0.751665",
"0.74875736",
"0.73983175",
"0.73705333",
"0.7349144",
"0.7298184",
"0.7271831",
"0.72666657",
"0.72024614",
"0.7160692",
"0.7115867",
"0.7075714",
"0.703446",
"0.69998235",
"0.6981933",
"0.696088",
"0.6941267",... | 0.73072934 | 9 |
Resets the object manager. | public final void reset(String newTrackingID, String newRootSceneID, boolean addRootScene) {
this.trackingID = newTrackingID;
this.references.clear();
this.chestCharacters.clear();
this.rootSceneID = newRootSceneID;
newObjectGroup = null;
activeLayer = null;
all.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }",
"public static void reset() {\n\t\tE_Location.THIS.reset();\n\t\tE_Resource.THIS.reset();\n\t\t\n\t\tT_Object.reset();\n\t\tT_Location.reset();\n\t\tT_Resource.reset(... | [
"0.74585843",
"0.71777695",
"0.7163098",
"0.7099402",
"0.68625325",
"0.68446445",
"0.68281925",
"0.6813091",
"0.6758361",
"0.6676819",
"0.66669613",
"0.6662798",
"0.66341674",
"0.66341674",
"0.66341674",
"0.66341674",
"0.662638",
"0.6617255",
"0.6617255",
"0.6617255",
"0.6617... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.