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 |
|---|---|---|---|---|---|---|
Checks if there is any input for the timeframe of the event. If not, throws an exception. | public void parseTimeframe(Scanner s) throws WrongCommandFormatException {
if (s.hasNextLine()) {
this.timeframe = s.nextLine();
} else {
throw new WrongCommandFormatException(
"No timeframe specified. Please specify a deadline after `/at`"
);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void assertValidTimeWindow() {\n if (getSuggestedWindowStart().isAfter(getSuggestedWindowEnd())) {\n throw new AcmeProtocolException(\"Received an invalid suggested window\");\n }\n }",
"boolean hasErrorTime();",
"private boolean verify_AdjustedTimeIsSet() {\n \n ... | [
"0.6341885",
"0.6030281",
"0.6008907",
"0.597474",
"0.5873875",
"0.58178145",
"0.5758716",
"0.5686813",
"0.56760806",
"0.5657958",
"0.5649803",
"0.5620468",
"0.5579046",
"0.5522259",
"0.5511377",
"0.55049354",
"0.54628825",
"0.54222673",
"0.5409976",
"0.53852886",
"0.53674084... | 0.0 | -1 |
Returns the timeframe of this event. | public String getTimeframe() {
return this.timeframe;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getFrameTime() {\n\n\t\t// Convert from milliseconds to seconds\n\t\treturn getInteger(ADACDictionary.FRAME_TIME) / 1000;\n\n\t}",
"public double getFrameDuration();",
"public String getEventTime() {\r\n\t\treturn eventTime;\r\n\t}",
"public long getEventTime() {\n return eventTime;\n }",
... | [
"0.67363983",
"0.6393468",
"0.6259323",
"0.62114394",
"0.618711",
"0.6179649",
"0.6174025",
"0.61456114",
"0.61456114",
"0.61191916",
"0.60701436",
"0.606098",
"0.5888928",
"0.58708024",
"0.5793781",
"0.57475686",
"0.5687663",
"0.5620112",
"0.5534035",
"0.5522908",
"0.5496701... | 0.73949546 | 0 |
Returns the specific type icon. | @Override
public String getTypeIcon() {
return "[E]";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String typeIcon();",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"String getIcon();",
"String getIcon();",
"public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n ... | [
"0.8631564",
"0.82132185",
"0.82132185",
"0.8171697",
"0.8171697",
"0.80298805",
"0.8005066",
"0.7862093",
"0.7770436",
"0.77611303",
"0.7516897",
"0.7516897",
"0.7516897",
"0.7516897",
"0.74621344",
"0.7445161",
"0.7445161",
"0.74433726",
"0.7442072",
"0.7423902",
"0.7355876... | 0.7166562 | 26 |
Returns the status icon. | @Override
public String getStatusIcon() {
if (isDone) {
return "[X]";
} else {
return "[ ]";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStatusIcon() {\n return (isDone? \"v\" : \"x\");\n }",
"public String getStatusIcon() {\n return (isDone ? \"/\" : \"X\"); // Return / or X symbols\n }",
"public String getStatusIcon() {\n return (isDone ? \"[X]\" : \"[ ]\");\n }",
"private String getStatusIcon(... | [
"0.8510238",
"0.8459623",
"0.8356925",
"0.8318045",
"0.8268028",
"0.826283",
"0.82437146",
"0.82437146",
"0.82437146",
"0.82412046",
"0.8240812",
"0.8238219",
"0.8159044",
"0.8143632",
"0.8134218",
"0.8116804",
"0.8035919",
"0.72898275",
"0.7253838",
"0.7218342",
"0.7218342",... | 0.7787417 | 17 |
Returns the event description. | public String getDescription() {
return this.description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEventDescription() {\n\t\treturn description;\n\t}",
"private String getEventDescription(Event event) {\n String day = getDayDescription(event);\n String typeOfEvent = getEventType(event);\n String description = day + \" \" + typeOfEvent + event.getName();\n if (descr... | [
"0.88623524",
"0.8058379",
"0.7690583",
"0.76460594",
"0.7551483",
"0.7461317",
"0.7366161",
"0.73029417",
"0.7272172",
"0.72646916",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72423446",
"0.72325784",
"0... | 0.0 | -1 |
Returns the string representation of the event task. | @Override
public String toString() {
String typeIcon = getTypeIcon();
String statusIcon = getStatusIcon();
return typeIcon
+ " "
+ statusIcon
+ this.description
+ " (at:"
+ this.timeframe
+ ")";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String pendingToString() {\n InterruptibleTask interruptibleTask = this.task;\n if (interruptibleTask == null) {\n return super.pendingToString();\n }\n StringBuilder stringBuilder = new StringBuilder(\"task=[\");\n stringBuilder.append(interruptibleTask);\n ... | [
"0.70244974",
"0.7020232",
"0.6940612",
"0.6882159",
"0.6859032",
"0.68471473",
"0.6844124",
"0.68114036",
"0.68047416",
"0.6763093",
"0.6763093",
"0.67315465",
"0.6692309",
"0.66747063",
"0.666471",
"0.6657239",
"0.66520864",
"0.66217977",
"0.66214925",
"0.6619316",
"0.66130... | 0.0 | -1 |
Marks the task as completed If the task has already been completed, inform the user. Else indicate that the task has been correctly marked. | @Override
public String markComplete() {
if (this.isDone) {
return Ui.getTaskAlrCompletedMessage(this);
} else {
this.isDone = true;
return Ui.getMarkCompleteEventMessage(this);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String markAsDone() {\n this.isComplete = true;\n return Ui.getTaskDoneMessage(this);\n }",
"private void doMarkTaskAsCompleted() {\n System.out.println(\n \"Select the task you would like to mark as complete by entering the appropriate index number.\");\n int... | [
"0.77777076",
"0.77448916",
"0.7665797",
"0.7512818",
"0.744397",
"0.7240662",
"0.72001433",
"0.7184999",
"0.71725315",
"0.7160414",
"0.7129607",
"0.71265435",
"0.71265435",
"0.71265435",
"0.7115502",
"0.71144927",
"0.70939356",
"0.70722514",
"0.7057358",
"0.7057358",
"0.7057... | 0.79253775 | 0 |
Converts the task into string format to be stored in Data.txt | @Override
public String createData() {
String data = getTypeIcon()
+ ""
+ getStatusIcon()
+ " "
+ this.command;
return data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String taskToText();",
"public abstract String[] formatTask();",
"public String toData(int taskId) {\n String dataLine = taskId + \", Task\";\n return dataLine;\n }",
"public String updateTaskToFile() {\n String updatedText = Messages.EMPTY_STRING;\n for (int i ... | [
"0.73724955",
"0.7087018",
"0.7028772",
"0.6855188",
"0.6831888",
"0.67719656",
"0.6486201",
"0.6420983",
"0.6382172",
"0.63685787",
"0.6358208",
"0.62836796",
"0.6256715",
"0.6221369",
"0.6205104",
"0.61369866",
"0.6132951",
"0.612521",
"0.6104008",
"0.6103983",
"0.60581696"... | 0.0 | -1 |
Returns the task type. | @Override
public String getTaskType() {
return this.taskType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getType() {\n return theTaskType ;\n }",
"public String getTaskType() {\n return taskType;\n }",
"public TaskType getTaskType() {\n return (TaskType) commandData.get(CommandProperties.TASK_TYPE);\n }",
"public TaskType getTaskType() {\n return taskType;\n ... | [
"0.8878055",
"0.8728602",
"0.84908444",
"0.844658",
"0.8386835",
"0.83180857",
"0.7992983",
"0.7966128",
"0.71635735",
"0.7086917",
"0.7004535",
"0.6991958",
"0.6747526",
"0.6691012",
"0.6691012",
"0.65387243",
"0.6534095",
"0.647132",
"0.6446829",
"0.64441955",
"0.643793",
... | 0.8404277 | 4 |
Checks if the task has been marked as completed. | @Override
public boolean isDone() {
return this.isDone;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean done() {\n\t\tfor(Task t : details.getPendingTasks()){\n\t\t\tif(!t.isComplete())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isDone()\n {\n return (this.elapsed >= this.duration);\n }",
"public boolean isCompleted() {\n\t\t\n\t\treturn comple... | [
"0.7971159",
"0.7747513",
"0.7714719",
"0.76595384",
"0.7659408",
"0.76384777",
"0.76187575",
"0.7604988",
"0.75741136",
"0.75420153",
"0.7489894",
"0.74662274",
"0.74541754",
"0.7407429",
"0.7315861",
"0.7295933",
"0.72695374",
"0.72519493",
"0.7195105",
"0.71740663",
"0.716... | 0.7057023 | 34 |
TODO Autogenerated method stub | public static void main(String[] args) {
Project project=new Project();
project.id=100;
project.name="Java_Training";
ArrayList<Employee>empList=new ArrayList<Employee>();
Scanner sc=new Scanner(System.in);
System.out.println("Enter the no of employees");
int limit=sc.nextInt();
System.out.pr... | {
"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 |
Loads/creates an Image as a resource using the ClassLoader of BundledImageLoader. | public static Image getBundledImage(final String classpathRelativeResource) {
return getBundledImage(classpathRelativeResource, BundledImageLoader.class.getClassLoader());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Image getBundledImage(final String classpathRelativeResource, final ClassLoader loader)\n throws IllegalArgumentException {\n\n // Check sanity\n Validate.notEmpty(classpathRelativeResource, \"Cannot handle null or empty classpathRelativeResource.\");\n Validate.notNul... | [
"0.714858",
"0.6716045",
"0.6573047",
"0.6361624",
"0.6308362",
"0.6304324",
"0.6185965",
"0.61304367",
"0.60596734",
"0.60540545",
"0.6027867",
"0.5965539",
"0.59458065",
"0.5908048",
"0.5900878",
"0.5883922",
"0.5871568",
"0.5805713",
"0.58015597",
"0.5777411",
"0.57578105"... | 0.6683089 | 2 |
Loads/creates an Image as a resource using the provided ClassLoader. | public static Image getBundledImage(final String classpathRelativeResource, final ClassLoader loader)
throws IllegalArgumentException {
// Check sanity
Validate.notEmpty(classpathRelativeResource, "Cannot handle null or empty classpathRelativeResource.");
Validate.notNull(loader, "C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Image loadImageFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n return new Image(is);\n } catch (Exception e) {\n ... | [
"0.6558681",
"0.64202565",
"0.6224311",
"0.59886044",
"0.5946566",
"0.5878115",
"0.5862906",
"0.58614373",
"0.5815893",
"0.57733494",
"0.5717857",
"0.5684822",
"0.56769365",
"0.5654259",
"0.5648782",
"0.55742687",
"0.55607736",
"0.55585057",
"0.55530113",
"0.55378574",
"0.553... | 0.6699205 | 0 |
Private helpers Acquires the default Toolkit. | @SuppressWarnings("PMD")
private static Toolkit getToolkit() {
if (toolkit == null) {
toolkit = Toolkit.getDefaultToolkit();
}
return toolkit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Toolkit getToolkit() {\n return Toolkit.getDefaultToolkit();\n }",
"public LWToolkit getLWToolkit() {\n return LWToolkit.getLWToolkit();\n }",
"private BrowserToolbar() {\n\t\tinitComponents();\n\t}",
"protected final AWTEventListener getToolkitAWTEventListener() {\n return ... | [
"0.69019747",
"0.6108133",
"0.5558999",
"0.5410899",
"0.5356208",
"0.5352201",
"0.5303665",
"0.528632",
"0.5272839",
"0.5241574",
"0.51910084",
"0.5187608",
"0.51817155",
"0.5172056",
"0.5167174",
"0.5130563",
"0.51236993",
"0.51226836",
"0.5111228",
"0.5108849",
"0.50591975"... | 0.7605998 | 0 |
Sets the two nodes, ID and the value of the Voltage Source. | public VoltageSource(double value, Node node1, Node node2) {
super(node1, node2);
this.VS_ID=++No_of_VS;
setValue(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void iSetSourcetoTv() {\n\t\tif (null!=iGetCurrentSouce() && null!=mTVInputManager.getTypeFromInputSource(iGetCurrentSouce()) && !TVInputManager.INPUT_TYPE_TV.equals(\n\t\t\t\tmTVInputManager.getTypeFromInputSource(iGetCurrentSouce()))) {\n\t\t\tmTVInputManager.changeInputSource(iFindTvSource());\n\t\t}\n\t... | [
"0.5825545",
"0.53647786",
"0.5236839",
"0.52331203",
"0.5230551",
"0.5177278",
"0.51478904",
"0.51174235",
"0.5103989",
"0.50753987",
"0.50748456",
"0.5014632",
"0.50030595",
"0.49954134",
"0.4979356",
"0.49573094",
"0.49499997",
"0.49433774",
"0.49412274",
"0.49284706",
"0.... | 0.75714517 | 0 |
Prints the description of the Voltage Source as the Output. | @Override
public String toString() {
return "V"+this.VS_ID+"\tNodes: "+getNodes()[0]+" & "+getNodes()[1]+"\t"+"DC\t"+getValue()+" V";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void print() {\n System.out.println(\"VIn:- \"+getVehicalIndentificationNumber());\n System.out.println(\"Description:- \"+getVechicalDiscription());\n System.out.println(\"Manufacturer:- \"+getManufacturerName());\n System.out.println(\"isSelfDrive:- \"+getSelfDri... | [
"0.6101939",
"0.6022768",
"0.5898222",
"0.5826458",
"0.57908905",
"0.5754257",
"0.57407224",
"0.572727",
"0.5688149",
"0.5686182",
"0.56845504",
"0.5664508",
"0.56353813",
"0.56154424",
"0.5615391",
"0.56064165",
"0.5603296",
"0.5595304",
"0.5564343",
"0.5552572",
"0.55442744... | 0.59986246 | 2 |
TODO Autogenerated method stub | @Override
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
showDatePickerDialog();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
showDatePickerDialog();
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onDateSet(DatePicker view, int year, int month, int day) {
date.setText(year+"/"+(month+1)+ "/"+ day);
hDate = year+"/"+(month+1)+ "/"+ day;
check(hDate, status);
} | {
"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 |
Creates new form DesktopGUI | public DesktopGUI() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up ... | [
"0.71127445",
"0.71021336",
"0.70862687",
"0.7013548",
"0.69952315",
"0.6971967",
"0.6959033",
"0.6947043",
"0.6943295",
"0.69165534",
"0.6915349",
"0.69033074",
"0.6881785",
"0.68497896",
"0.67987317",
"0.67785215",
"0.6757156",
"0.67269945",
"0.67036366",
"0.66938335",
"0.6... | 0.7481621 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jPopupMenu1 = new javax.swing.JPopupMenu();
yesPopupMenu1Item = new javax.swing.JMenuIte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7322098",
"0.7292275",
"0.7292275",
"0.7292275",
"0.72872275",
"0.72507876",
"0.7214814",
"0.7209056",
"0.7197325",
"0.71918863",
"0.71856284",
"0.7160448",
"0.7148918",
"0.7094831",
"0.70820963",
"0.70585436",
"0.6988433",
"0.6978755",
"0.69569016",
"0.6955245",
"0.694635... | 0.0 | -1 |
Returns the list of acceptable DN of CA opaque DistinguishedName; | public List<DistinguishedName> getValidDN(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<String> getValidDescriptors();",
"public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.... | [
"0.5392252",
"0.529119",
"0.5282777",
"0.51934063",
"0.5075784",
"0.49964884",
"0.49629685",
"0.4956163",
"0.4949103",
"0.49472207",
"0.4916629",
"0.48861557",
"0.48804316",
"0.4879836",
"0.48678955",
"0.48654354",
"0.4846967",
"0.48374808",
"0.48303092",
"0.4819824",
"0.4818... | 0.783984 | 0 |
Created by OldMan on 19.06.2017. | public interface Parser {
Object getObject(String name, Class c) throws JAXBException;
void saveObject(String name, Object o) throws JAXBException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic... | [
"0.5914477",
"0.5863213",
"0.58533835",
"0.5803729",
"0.5709417",
"0.57031167",
"0.569964",
"0.569964",
"0.5614862",
"0.5614052",
"0.55957806",
"0.55937654",
"0.55651015",
"0.55489904",
"0.55402553",
"0.5534562",
"0.5507283",
"0.550471",
"0.5500217",
"0.54982924",
"0.54912543... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_dialog, container, false);
youTubePlayerView = view.findViewById(R.id.youtube_player_view);
getLifecycle(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int compare(int[] o1, int[] o2) {
return 0;
} | {
"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 |
doesn't really test anything, but you should hear "Well hello mister fanycpants" when running this | @Test
public void testAnonymousSource() throws WavCreationException, InterruptedException
{
LWJGLJoalWav wav = new LWJGLJoalWav(res.getInputStream("FancyPants.wav"));
wav.start(0);
Thread.sleep(5000);
wav.stop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws Exception {\nSystem.out.println(\"i love nayanthara\");\nSystem.out.println(\"i love trisha\");\nSystem.out.println(\"i love keerthisuresh\");\n\n \n \n\t }",
"private void strin() {\n\n\t}",
"public static void main(String[] args) {\n String exclamation1 = ... | [
"0.6762724",
"0.6473537",
"0.64598405",
"0.63558775",
"0.63351077",
"0.63340247",
"0.63182557",
"0.6315368",
"0.631139",
"0.629588",
"0.62956816",
"0.62921757",
"0.62816584",
"0.62778646",
"0.6276213",
"0.62628174",
"0.6261526",
"0.62592363",
"0.6255617",
"0.62466985",
"0.624... | 0.0 | -1 |
stores results of toTreeString method CONSTRUCTOR PhyloTree Preconditions: speciesFile contains the path of a valid FASTA input file printingDepth is a positive number Postconditions: this.printingDepth has been set to printingDepth A linked tree structure representing the inferred hierarchical species relationship has... | public PhyloTree(String speciesFile,int printingDepth) {
builder = new StringBuilder();
builderTree = new StringBuilder();
if(printingDepth < 0) {
System.err.println("Error: negative printing Depth ");
throw new IndexOutOfBoundsException();
}
this.printingDepth = printing... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.pus... | [
"0.57795024",
"0.57668257",
"0.5674787",
"0.5650554",
"0.56401503",
"0.5523856",
"0.547445",
"0.5441351",
"0.5399292",
"0.5338418",
"0.53347754",
"0.5331757",
"0.5330426",
"0.5310606",
"0.5283386",
"0.52694935",
"0.5261014",
"0.5236888",
"0.5221247",
"0.52208495",
"0.52092767... | 0.81008536 | 0 |
ACCESSORS getOverallRoot Preconditions: None Postconditions: Returns the overall root | public PhyloTreeNode getOverallRoot() {
return overallRoot;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getRoot() {\n\t\treturn null;\n\t}",
"public Object getRoot(){\r\n\t\treturn _root;\r\n\t}",
"public String getRoot();",
"public String getRoot() {\n\t\treturn null;\n\t}",
"public String describeRoot();",
"private HtmlElement getRoot()\n\t{\n\t\treturn getBaseRootElement( ROOT_BY );\n\t}",... | [
"0.6912168",
"0.6860097",
"0.68094695",
"0.65862405",
"0.6583005",
"0.65348786",
"0.6519459",
"0.64831674",
"0.6478918",
"0.64334756",
"0.6391878",
"0.63739675",
"0.63653266",
"0.63629276",
"0.6334469",
"0.63131684",
"0.6294975",
"0.6285797",
"0.6275367",
"0.62753326",
"0.625... | 0.75773644 | 0 |
toString Preconditions: None Postconditions: Returns a string representation of the tree | public String toString() {
return toString(overallRoot, 0.0, weightedNodeHeight(overallRoot));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n return tree.toString();\n }",
"public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }",
"public String toString() {\n if (size == 0) {\n return \"Empty tree\";\n }\n\n\n StringBuilder... | [
"0.7948097",
"0.7646496",
"0.7642357",
"0.7576084",
"0.7513742",
"0.7482344",
"0.74553174",
"0.7392474",
"0.734123",
"0.7327236",
"0.7276557",
"0.7164076",
"0.7121149",
"0.71054244",
"0.70775187",
"0.706971",
"0.7055717",
"0.7049526",
"0.70468843",
"0.7044934",
"0.7041102",
... | 0.66033286 | 79 |
toString Preconditions: node points to the root of a tree you intend to print weightedDepth is the sum of the edge weights from the overall root to the current root maxDepth is the weighted depth of the overall tree Postconditions: Returns a string representation of the tree | private String toString(PhyloTreeNode node, double weightedDepth, double maxDepth) {
if(node == null) {
return "";
}
toString(node.getRightChild(), weightedDepth + node.getDistanceToChild(), maxDepth);
int k = (int) Math.ceil(printingDepth * (weightedDepth / maxDepth));
for(int i ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toTreeString(PhyloTreeNode node) {\n if(node == null) {\n return \"\";\n }\n if(node.isLeaf()) {\n if(node.getParent() != null)\n builderTree.append(node.getLabel() + \":\" + String.format(\"%.5f\", node.getParent().getDistanceToChild()));\n else{\n ... | [
"0.7112262",
"0.6725188",
"0.6654721",
"0.66099846",
"0.65772194",
"0.6576309",
"0.6562505",
"0.65596354",
"0.65187573",
"0.6516422",
"0.64752984",
"0.64577574",
"0.6438301",
"0.6436665",
"0.63739395",
"0.6354177",
"0.631867",
"0.63169223",
"0.6311315",
"0.6301503",
"0.627008... | 0.7661427 | 0 |
toTreeString Preconditions: None Postconditions: Returns a string representation in tree format | public String toTreeString() {
return toTreeString(overallRoot);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String tree2Str(TreeNode t){\n\t\tif(t == null)\n\t\t\treturn \"\";\n\t\t\n\t\tStack<TreeNode> stack = new Stack<>();\n\t\tstack.push(t);\n\t\t\n\t\tSet<TreeNode> visited = new HashSet<>();\n\t\tStringBuilder s = new StringBuilder();\n\t\twhile(!stack.isEmpty()){\n\t\t\tt = stack.peek();\n\t\t\t\n\t\t\tif(v... | [
"0.7786878",
"0.7459996",
"0.7184253",
"0.7045973",
"0.6991482",
"0.6961953",
"0.69108397",
"0.68845636",
"0.6867167",
"0.6858644",
"0.6829835",
"0.6826511",
"0.6820694",
"0.6808267",
"0.67441106",
"0.67422193",
"0.67415506",
"0.67175823",
"0.67002827",
"0.6671126",
"0.666103... | 0.77797383 | 1 |
toTreeString Preconditions: node points to the root of a tree you intend to print Postconditions: Returns a string representation in tree format | private String toTreeString(PhyloTreeNode node) {
if(node == null) {
return "";
}
if(node.isLeaf()) {
if(node.getParent() != null)
builderTree.append(node.getLabel() + ":" + String.format("%.5f", node.getParent().getDistanceToChild()));
else{
builderT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String tree2Str(TreeNode t){\n\t\tif(t == null)\n\t\t\treturn \"\";\n\t\t\n\t\tStack<TreeNode> stack = new Stack<>();\n\t\tstack.push(t);\n\t\t\n\t\tSet<TreeNode> visited = new HashSet<>();\n\t\tStringBuilder s = new StringBuilder();\n\t\twhile(!stack.isEmpty()){\n\t\t\tt = stack.peek();\n\t\t\t\n\t\t\tif(v... | [
"0.6729135",
"0.6201085",
"0.61915904",
"0.61440057",
"0.6105982",
"0.609951",
"0.60812986",
"0.6073973",
"0.606896",
"0.60487366",
"0.60376716",
"0.6024078",
"0.6017323",
"0.60055405",
"0.5993556",
"0.59798497",
"0.5966338",
"0.5905799",
"0.58998406",
"0.58806247",
"0.587742... | 0.70988905 | 0 |
getHeight Preconditions: None Postconditions: Returns the tree height as defined in class | public int getHeight() {
return nodeHeight(overallRoot);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHeight() {\r\n\t\treturn getHeight(rootNode);\r\n\t}",
"public int getHeight(){\n\tif (root == null) {\n\t return 0;\n\t}\n\treturn root.height();\n }",
"@Override\n\tpublic int height() {\n\t\tif(root == null) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tNode tempRoot = root;\n\t\t\treturn hei... | [
"0.7947067",
"0.7861412",
"0.78610224",
"0.7851715",
"0.7800967",
"0.77828234",
"0.77646625",
"0.77373874",
"0.7714238",
"0.77011496",
"0.76563996",
"0.76364577",
"0.7625635",
"0.76162416",
"0.76143956",
"0.76055545",
"0.7580455",
"0.75696725",
"0.7543378",
"0.7530975",
"0.74... | 0.76480335 | 11 |
getWeightedHeight Preconditions: None Postconditions: Returns the sum of the edge weights along the "longest" (highest weight) path from the root to any leaf node. | public double getWeightedHeight() {
return weightedNodeHeight(overallRoot);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHeight(){\n\t\tint h=maxDepth(root);\n\t\treturn h;\n\t}",
"public static double weightedNodeHeight(PhyloTreeNode node) {\n if(node == null) {\n return java.lang.Double.NEGATIVE_INFINITY;\n }\n else{\n return weightedNodeHeightHelper(node);\n }\n }",
"public ... | [
"0.70158935",
"0.70112294",
"0.69788074",
"0.6854754",
"0.68081665",
"0.6773524",
"0.67733896",
"0.67132306",
"0.6575906",
"0.6549628",
"0.65034443",
"0.64943206",
"0.64921576",
"0.6491936",
"0.64731044",
"0.6469212",
"0.6445841",
"0.64335364",
"0.64326024",
"0.64276797",
"0.... | 0.77520496 | 0 |
countAllSpecies Preconditions: None Postconditions: Returns the number of species in the tree | public int countAllSpecies() {
if(overallRoot == null)
return 0;
return (overallRoot.getNumLeafs());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuer... | [
"0.6567414",
"0.65579355",
"0.6509478",
"0.64939266",
"0.64812213",
"0.6459693",
"0.6424538",
"0.63779324",
"0.6325764",
"0.62969697",
"0.62798613",
"0.6269341",
"0.622444",
"0.62159467",
"0.61989886",
"0.61939144",
"0.6181566",
"0.6144069",
"0.6137553",
"0.61300266",
"0.6130... | 0.8262538 | 0 |
getAllSpecies Preconditions: None Postconditions: Returns an ArrayList containing all species in the tree | public java.util.ArrayList<Species> getAllSpecies() {
ArrayList<Species> answer = new ArrayList<Species>();
getAllDescendantSpecies(overallRoot, answer);
return answer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Species> getSpeciesList() {\n return speciesList;\n }",
"public List<String> getSpecies() {\n\t\tif (species == null || species.isEmpty())\n\t\t\tspecies = getSpeciesFromMiapes();\n\t\tif (species != null) {\n\t\t\tfinal List<String> ret = new ArrayList<String>();\n\t\t\tfor (final String s... | [
"0.66374934",
"0.643214",
"0.61832094",
"0.60753614",
"0.6012667",
"0.59786916",
"0.5847346",
"0.582889",
"0.57937694",
"0.57902056",
"0.57019424",
"0.565586",
"0.5652522",
"0.5643486",
"0.56093377",
"0.55925035",
"0.5564047",
"0.5562034",
"0.55385154",
"0.5503036",
"0.549595... | 0.8636355 | 0 |
findTreeNodeByLabel Preconditions: label is the label of a tree node you intend to find Assumes labels are unique in the tree Postconditions: If found: returns the PhyloTreeNode with the specified label If not found: returns null | public PhyloTreeNode findTreeNodeByLabel(String label) {
return findTreeNodeByLabel(overallRoot, label);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static PhyloTreeNode findTreeNodeByLabel(PhyloTreeNode node,String label) {\n if(node == null)\n return null;\n if(node.getLabel().equals(label))\n return node;\n if(node.getLeftChild() != null && node.getLeftChild().getLabel().contains(label))\n return findTreeNodeBy... | [
"0.8376705",
"0.6111021",
"0.5975243",
"0.5927094",
"0.58213055",
"0.58202237",
"0.57523817",
"0.5700353",
"0.5669813",
"0.5669813",
"0.5669813",
"0.56450695",
"0.5616124",
"0.5579989",
"0.5551707",
"0.5485222",
"0.5484612",
"0.5412409",
"0.53894943",
"0.5328788",
"0.52273566... | 0.8454138 | 0 |
findLeastCommonAncestor Preconditions: label1 and label2 are the labels of two species in the tree Postconditions: If either node cannot be found: returns null If both nodes can be found: returns the PhyloTreeNode of their common ancestor with the largest depth Put another way, the least common ancestor of nodes A and ... | public PhyloTreeNode findLeastCommonAncestor(String label1, String label2) {
PhyloTreeNode node1 = findTreeNodeByLabel(label1);
PhyloTreeNode node2 = findTreeNodeByLabel(label2);
return findLeastCommonAncestor(node1, node2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static PhyloTreeNode findLeastCommonAncestor(PhyloTreeNode node1, PhyloTreeNode node2) {\n if(node1 == null || node2 == null) {\n return null;\n }\n else{\n String label1 = node1.getLabel();\n String label2 = node2.getLabel();\n if(label1.contains(label2) && (... | [
"0.83648807",
"0.7471822",
"0.7156127",
"0.71365184",
"0.70799375",
"0.70318216",
"0.695674",
"0.69132066",
"0.6808827",
"0.6797234",
"0.6764471",
"0.6718281",
"0.66913456",
"0.66875327",
"0.6634372",
"0.66280407",
"0.6627668",
"0.66012055",
"0.65992576",
"0.6587041",
"0.6563... | 0.8439255 | 0 |
findEvolutionaryDistance Preconditions: label1 and label2 are the labels of two species in the tree Postconditions: If either node cannot be found: returns POSITIVE_INFINITY If both nodes can be found: returns the sum of the weights along the paths from their least common ancestor to each of the two nodes | public double findEvolutionaryDistance(String label1, String label2) {
PhyloTreeNode node1 = findTreeNodeByLabel(label1);
PhyloTreeNode node2 = findTreeNodeByLabel(label2);
if(node1 == null || node2 == null) {
return java.lang.Double.POSITIVE_INFINITY;
}
PhyloTreeNode ancestor = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer distance(PathFindingNode a, PathFindingNode b);",
"public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);",
"public static int distanceBetweenNodes(Node node, int d1, int d2){\n ArrayList<Integer> al1= nodeToRootPath(node,d1);\n ArrayList<Integer> al2=nodeToRootPa... | [
"0.6351225",
"0.60963863",
"0.58822566",
"0.58456105",
"0.57785827",
"0.57370347",
"0.56956315",
"0.5680968",
"0.5675966",
"0.56246024",
"0.561999",
"0.5603931",
"0.5598999",
"0.5563331",
"0.5547179",
"0.554384",
"0.5493271",
"0.54372793",
"0.54353637",
"0.5423691",
"0.541263... | 0.7893597 | 0 |
Recursive helper method for findEvolutionaryDistance | private double findEvolutionaryDistanceHelper(PhyloTreeNode ancestor, PhyloTreeNode node) {
if(ancestor == null || ancestor == node) {
return 0.0;
}
if(ancestor.getLeftChild() != null && ancestor.getLeftChild().getLabel().contains(node.getLabel())) {
return (ancestor.getDistanceToChi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }",
"public void recalculateDistanceFunction()\r\n {\n findBoundaryGivenPhi();\r\n \r\n active.removeAllElements();\r\n\tfor(int i=0; i<pixelsWide; i++)\r\... | [
"0.64201826",
"0.5836795",
"0.5710678",
"0.5441651",
"0.5405245",
"0.5396119",
"0.538511",
"0.53834355",
"0.5339456",
"0.53127426",
"0.5282549",
"0.5279458",
"0.518625",
"0.5174145",
"0.516434",
"0.5138545",
"0.51302123",
"0.510254",
"0.50985754",
"0.5093629",
"0.5079061",
... | 0.6080688 | 1 |
MODIFIER buildTree Preconditions: species contains the set of species for which you want to infer a phylogenetic tree Postconditions: A linked tree structure representing the inferred hierarchical species relationship has been created, and overallRoot points to the root of said tree | private void buildTree(Species[] species) {
List<PhyloTreeNode> treeList = new ArrayList<PhyloTreeNode>();
MultiKeyMap<Double> speciesMap = new MultiKeyMap<Double>();
for(Species s : species) {
treeList.add(new PhyloTreeNode(null, s));
}
for(int i = 0; i < species.length - 1; i++)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhyloTree(String speciesFile,int printingDepth) {\n builder = new StringBuilder();\n builderTree = new StringBuilder();\n if(printingDepth < 0) {\n System.err.println(\"Error: negative printing Depth \");\n throw new IndexOutOfBoundsException();\n }\n this.printingDe... | [
"0.6478967",
"0.61052537",
"0.60079896",
"0.59140086",
"0.5893669",
"0.5789286",
"0.5763983",
"0.5670807",
"0.56517315",
"0.56490844",
"0.56454796",
"0.564161",
"0.56397927",
"0.5614179",
"0.55959815",
"0.5592653",
"0.5585127",
"0.55498385",
"0.5545275",
"0.55251414",
"0.5521... | 0.6811181 | 0 |
helper method that given an entrySet key input, extracts the two words, then returns them in an array with the alphebetically lesser string at index 0 and the alphebetically greater string at index 1 | private String[] compareKeys(String currentString) {
String s1 = "";
String s2 = "";
String[] answer = new String[2];
for(int i = 0; i < currentString.length(); i++) {
if(currentString.charAt(i) == '|') {
s1 = currentString.substring(0,i);
s2 = currentString.subs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] sortingwords(String p1)\n {\n String[] splitedword;\n splitedword = p1.split(\"\\\\s\");\n //splits the string\n\n for (int i = 0; i < splitedword.length; i++)\n {\n for (int j = i + 1; j < splitedword.length; j++)\n {\n if ... | [
"0.5825875",
"0.5816711",
"0.57608086",
"0.57550216",
"0.56425524",
"0.55972636",
"0.55893093",
"0.5487083",
"0.5467908",
"0.546497",
"0.54631114",
"0.543035",
"0.5400791",
"0.5391479",
"0.5340301",
"0.5336853",
"0.53348994",
"0.5311944",
"0.5311269",
"0.53086394",
"0.5302483... | 0.6444275 | 0 |
STATIC nodeDepth Preconditions: node is null or the root of tree (possibly subtree) Postconditions: If null: returns 1 Else: returns the depth of the node within the overall tree | public static int nodeDepth(PhyloTreeNode node) {
if(node == null) {
return -1;
}
else if(node.getParent() == null) {
return 0;
}
else{
return 1 + nodeDepth(node.getParent());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Integer getDepth(BinaryNode node, int depth) {\n\n if (node == null) return depth;\n else return Math.max(getDepth(node.left, depth + 1),getDepth(node.right, depth + 1));\n }",
"public static int getNodeDepth(BinaryTreeNode node) {\n int depth = 0;\n while (node != null) {\n n... | [
"0.77061075",
"0.7661409",
"0.7621293",
"0.7613905",
"0.74483633",
"0.7334252",
"0.71929455",
"0.7116589",
"0.702679",
"0.70110416",
"0.69711244",
"0.69140095",
"0.6909143",
"0.68721145",
"0.6853974",
"0.67961967",
"0.6778862",
"0.6778862",
"0.6762914",
"0.67293125",
"0.66923... | 0.7682193 | 1 |
nodeHeight Preconditions: node is null or the root of tree (possibly subtree) Postconditions: If null: returns 1 Else: returns the height subtree rooted at node | public static int nodeHeight(PhyloTreeNode node) {
if(node == null) {
return -1;
}
else{
return 1 + Math.max(nodeHeight(node.getLeftChild()), nodeHeight(node.getRightChild()));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int get_height(Node node) {\n\t\tif (node == null) \n\t\t\treturn 0;\n\t\telse if (node.leftChild == null && node.rightChild == null)\n\t\t\treturn 0;\t\t\n\t\telse return 1 + max(get_height(node.leftChild), get_height(node.rightChild));\n\t}",
"private int height(Node<T> node){\n if(node == null){\n ... | [
"0.82905406",
"0.82594365",
"0.8090154",
"0.8081449",
"0.80791956",
"0.8076742",
"0.80245334",
"0.80026233",
"0.788301",
"0.7870205",
"0.7852237",
"0.78225094",
"0.7821471",
"0.7808036",
"0.7781381",
"0.7744625",
"0.7739692",
"0.77348846",
"0.7715763",
"0.7705517",
"0.7701814... | 0.7684622 | 22 |
weightedNodeHeight Preconditions: node is null or the root of tree (possibly subtree) Postconditions: If null: returns NEGATIVE_INFINITY Else: returns the weighted height subtree rooted at node (i.e. the sum of the largest weight path from node to a leaf; this might NOT be the same as the sum of the weights along the l... | public static double weightedNodeHeight(PhyloTreeNode node) {
if(node == null) {
return java.lang.Double.NEGATIVE_INFINITY;
}
else{
return weightedNodeHeightHelper(node);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static double weightedNodeHeightHelper(PhyloTreeNode node) {\n if(node == null) {\n return 0;\n }\n else{\n return Math.max(node.getDistanceToChild() + weightedNodeHeightHelper(node.getLeftChild()),\n node.getDistanceToChild() + weightedNodeHeightHelper(node.getRightC... | [
"0.78837746",
"0.72609526",
"0.6747391",
"0.67266846",
"0.6725178",
"0.67242897",
"0.6707706",
"0.66957986",
"0.66210103",
"0.65875477",
"0.65188015",
"0.6514237",
"0.6499425",
"0.6485439",
"0.6459962",
"0.64286053",
"0.6409321",
"0.6397185",
"0.63933045",
"0.63424987",
"0.63... | 0.8368732 | 0 |
Recursive helper method for weightedNodeHeight | private static double weightedNodeHeightHelper(PhyloTreeNode node) {
if(node == null) {
return 0;
}
else{
return Math.max(node.getDistanceToChild() + weightedNodeHeightHelper(node.getLeftChild()),
node.getDistanceToChild() + weightedNodeHeightHelper(node.getRightChild()));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getWeightedHeight() {\n return weightedNodeHeight(overallRoot);\n }",
"public static double weightedNodeHeight(PhyloTreeNode node) {\n if(node == null) {\n return java.lang.Double.NEGATIVE_INFINITY;\n }\n else{\n return weightedNodeHeightHelper(node);\n }\... | [
"0.7308488",
"0.7175153",
"0.6700683",
"0.66870815",
"0.66831684",
"0.66728115",
"0.66699016",
"0.6656521",
"0.6651581",
"0.664868",
"0.66009057",
"0.6581163",
"0.6574743",
"0.65617996",
"0.6534815",
"0.65143496",
"0.64771694",
"0.6467787",
"0.64234686",
"0.6414188",
"0.64006... | 0.7519981 | 0 |
loadSpeciesFile Preconditions: filename contains the path of a valid FASTA input file Postconditions: Creates and returns an array of species objects representing all valid species in the input file | public static Species[] loadSpeciesFile(String filename) {
java.util.Scanner input = null;
java.io.File inputFile = new java.io.File(filename);
try {
input = new java.util.Scanner(inputFile);
} catch( java.io.FileNotFoundException e ) {
System.err.println("Error: Unable to open... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nex... | [
"0.61352724",
"0.60918105",
"0.6056454",
"0.58977085",
"0.58723515",
"0.57907677",
"0.5782882",
"0.57788193",
"0.5740149",
"0.5577499",
"0.55183756",
"0.55026436",
"0.5493958",
"0.5491671",
"0.5483032",
"0.546331",
"0.5448932",
"0.5443919",
"0.5421311",
"0.54167217",
"0.54151... | 0.8166855 | 0 |
getAllDescendantSpecies Preconditions: node points to a node in a phylogenetic tree structure descendants is a nonnull reference variable to an empty arraylist object Postconditions: descendants is populated with all species in the subtree rooted at node in in/pre/postorder (they are equivalent here) | private static void getAllDescendantSpecies(PhyloTreeNode node,java.util.ArrayList<Species> descendants) {
getAllDescendantSpeciesHelper(node, descendants);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ArrayList<Species> getAllDescendantSpeciesHelper(PhyloTreeNode node,java.util.ArrayList<Species> descendants) {\n if(node == null)\n return descendants;\n if(node.isLeaf()) {\n descendants.add(node.getSpecies());\n return descendants;\n }\n else{\n ... | [
"0.7997299",
"0.6032539",
"0.5720345",
"0.56855726",
"0.56433105",
"0.5557313",
"0.54986745",
"0.54525083",
"0.54295665",
"0.53900236",
"0.53550506",
"0.5346563",
"0.53406346",
"0.53158325",
"0.5235676",
"0.52332157",
"0.5227533",
"0.52267265",
"0.5210326",
"0.52054435",
"0.5... | 0.7989751 | 1 |
Recursive helper method for getAllDescendantSpecies | private static ArrayList<Species> getAllDescendantSpeciesHelper(PhyloTreeNode node,java.util.ArrayList<Species> descendants) {
if(node == null)
return descendants;
if(node.isLeaf()) {
descendants.add(node.getSpecies());
return descendants;
}
else{
if(node.getL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void getAllDescendantSpecies(PhyloTreeNode node,java.util.ArrayList<Species> descendants) {\n getAllDescendantSpeciesHelper(node, descendants);\n }",
"public java.util.ArrayList<Species> getAllSpecies() {\n ArrayList<Species> answer = new ArrayList<Species>();\n getAllDescendantSp... | [
"0.70780396",
"0.6690978",
"0.608809",
"0.6086594",
"0.5957264",
"0.5834222",
"0.58201647",
"0.5752633",
"0.5723062",
"0.5723062",
"0.5723062",
"0.567872",
"0.56688493",
"0.5649605",
"0.5642683",
"0.56284446",
"0.5616407",
"0.5615028",
"0.5601841",
"0.55830854",
"0.557134",
... | 0.7093587 | 0 |
findTreeNodeByLabel Preconditions: node points to a node in a phylogenetic tree structure label is the label of a tree node that you intend to locate Postconditions: If no node with the label exists in the subtree, return null Else: return the PhyloTreeNode with the specified label Assumes labels are unique in the tree | private static PhyloTreeNode findTreeNodeByLabel(PhyloTreeNode node,String label) {
if(node == null)
return null;
if(node.getLabel().equals(label))
return node;
if(node.getLeftChild() != null && node.getLeftChild().getLabel().contains(label))
return findTreeNodeByLabel(node.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PhyloTreeNode findTreeNodeByLabel(String label) {\n return findTreeNodeByLabel(overallRoot, label);\n }",
"Optional<CoreLabelSequence> getGroupedByFirstLabel(CoreLabel label);",
"public INode addOrGetNode(String label);",
"public TrieNode<F> getChild(char label) {\r\n if(trieNodeMap.cont... | [
"0.75316465",
"0.5607089",
"0.55660725",
"0.5509723",
"0.54183066",
"0.539392",
"0.53135145",
"0.530163",
"0.5261839",
"0.5138437",
"0.5107402",
"0.510439",
"0.50924593",
"0.5075335",
"0.5031769",
"0.502636",
"0.502636",
"0.502636",
"0.50040025",
"0.4989079",
"0.49852958",
... | 0.78762084 | 0 |
findLeastCommonAncestor Preconditions: node1 and node2 point to nodes in the phylogenetic tree Postconditions: If node1 or node2 are null, return null Else: returns the PhyloTreeNode of their common ancestor with the largest depth | private static PhyloTreeNode findLeastCommonAncestor(PhyloTreeNode node1, PhyloTreeNode node2) {
if(node1 == null || node2 == null) {
return null;
}
else{
String label1 = node1.getLabel();
String label2 = node2.getLabel();
if(label1.contains(label2) && (label2.conta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BinaryTreeNode getCommonAncestor(BinaryTreeNode head, BinaryTreeNode node1, BinaryTreeNode node2) {\n if (head == null || node1 == null || node2 == null) {\n return null;\n }\n\n List<BinaryTreeNode> nodes = findAncestor(head, node1, node2);\n if (nodes.contains(node1)... | [
"0.76902294",
"0.7664961",
"0.7595351",
"0.75952435",
"0.7546598",
"0.7397514",
"0.73957014",
"0.73634005",
"0.7294442",
"0.725962",
"0.7234116",
"0.72274333",
"0.7092403",
"0.7067522",
"0.70266545",
"0.70261997",
"0.70115715",
"0.69468045",
"0.6920614",
"0.68250895",
"0.6799... | 0.845092 | 0 |
Stmts evaluate to nothing | public abstract void executeVoid(VirtualFrame frame); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Stmt> getStmtsNoTransform() {\n return getStmtListNoTransform();\n }",
"@Override\n public Void visit(DebuggerStatement node, StatementVisitor mv) {\n return null;\n }",
"@Override\n public String visit(NoOpStmt n) {\n String _ret = null;\n Global.outputSt... | [
"0.64402676",
"0.6077729",
"0.5875619",
"0.5827554",
"0.5777766",
"0.56559646",
"0.5624793",
"0.552043",
"0.55001146",
"0.54122496",
"0.5380874",
"0.5376272",
"0.5355543",
"0.53468055",
"0.53065926",
"0.5277182",
"0.522682",
"0.5217285",
"0.52124256",
"0.5178101",
"0.51768833... | 0.0 | -1 |
initializes partial likelihood arrays. | @Override
public void initialize(int nodeCount, int patternCount, int matrixCount, boolean integrateCategories) {
this.nodeCount = nodeCount;
this.patternCount = patternCount;
this.matrixCount = matrixCount;
this.integrateCategories = integrateCategories;
if (integrateCategor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arr... | [
"0.627176",
"0.62473506",
"0.590901",
"0.58930874",
"0.5713828",
"0.56439304",
"0.5589675",
"0.5579586",
"0.5567001",
"0.5564258",
"0.5528285",
"0.54941595",
"0.54419684",
"0.5420858",
"0.5419815",
"0.54118586",
"0.54060215",
"0.5387109",
"0.5380997",
"0.5371232",
"0.5362928"... | 0.5808082 | 4 |
cleans up and deallocates arrays. | @Override
public void finalize() throws java.lang.Throwable {
super.finalize();
nodeCount = 0;
patternCount = 0;
matrixCount = 0;
partials = null;
// storedPartials = null;
currentPartialsIndices = null;
storedPartialsIndices = null;
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void deallocate()\r\n/* 541: */ {\r\n/* 542:554 */ freeArray(this.array);\r\n/* 543:555 */ this.array = null;\r\n/* 544: */ }",
"public static native void deleteAllTempArrays();",
"public void cleanup(){\n for(int i = 0; i < 3 && Array != null; ++i){\n if( Array[i]... | [
"0.7609909",
"0.71824443",
"0.7143006",
"0.6964647",
"0.6831924",
"0.676775",
"0.6705324",
"0.6702081",
"0.6654933",
"0.66143185",
"0.65528727",
"0.64936155",
"0.64787203",
"0.64681125",
"0.64598787",
"0.63754135",
"0.6359693",
"0.6357648",
"0.6306748",
"0.62726116",
"0.62676... | 0.5776239 | 56 |
Allocates partials for a node | @Override
public void createNodePartials(int nodeIndex) {
this.partials[0][nodeIndex] = new double[partialsSize];
this.partials[1][nodeIndex] = new double[partialsSize];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void createNodePartials(int iNode) {\n this.m_fPartials[0][iNode] = new double[m_nPartialsSize];\n this.m_fPartials[1][iNode] = new double[m_nPartialsSize];\n }",
"@Override\n\tpublic void setNodePartials(int nodeIndex, double[] partials) {\n\n if (this.partials[0][n... | [
"0.6572281",
"0.60020655",
"0.58936876",
"0.5538609",
"0.5319728",
"0.53083",
"0.52910024",
"0.51824147",
"0.51358706",
"0.503253",
"0.50130904",
"0.49727887",
"0.49386978",
"0.4871437",
"0.48623353",
"0.480621",
"0.47590664",
"0.46952736",
"0.46765253",
"0.46552855",
"0.4632... | 0.7108744 | 0 |
Sets partials for a node | @Override
public void setNodePartials(int nodeIndex, double[] partials) {
if (this.partials[0][nodeIndex] == null) {
createNodePartials(nodeIndex);
}
if (partials.length < partialsSize) {
int k = 0;
for (int i = 0; i < matrixCount; i++) {
Sys... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setCurrentNodePartials(int nodeIndex, double[] partials) {\n if (partials.length < partialsSize) {\n int k = 0;\n for (int i = 0; i < matrixCount; i++) {\n System.arraycopy(partials, 0, this.partials[currentPartialsIndices[nodeIndex]][nodeIndex],... | [
"0.7037536",
"0.65581614",
"0.61064214",
"0.5329648",
"0.5279274",
"0.49480197",
"0.49454963",
"0.48673126",
"0.48503783",
"0.48132232",
"0.48112452",
"0.47889155",
"0.47600913",
"0.4602104",
"0.45845312",
"0.4583088",
"0.4579729",
"0.45715073",
"0.4568263",
"0.45554182",
"0.... | 0.7368888 | 0 |
Sets probability matrix for a node | @Override
public void setNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {
// System.out.println("old:"+Arrays.toString(
// ArrayUtils.subarray(matrices[0][nodeIndex], matrixIndex * matrixSize, matrixIndex * matrixSize + matrixSize)
// ));
// System.out.println("new:"+Arrays.toString(matrix... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void initiateProbabilityMatrix( int numberOfDocs ) {\r\n double jTransition = 1 / (double)numberOfDocs;\r\n for (int i = 0; i < numberOfDocs; i++) {\r\n //Determine probability of going to a link\r\n double prob;\r\n if (out[i] == 0) prob = jTransition;\r\n ... | [
"0.6284617",
"0.6273003",
"0.5990141",
"0.5695894",
"0.5638299",
"0.55797786",
"0.5521909",
"0.55108815",
"0.54799426",
"0.544988",
"0.5412841",
"0.53168356",
"0.5312805",
"0.53065246",
"0.52873147",
"0.5279626",
"0.52759284",
"0.52622986",
"0.5259606",
"0.5249681",
"0.524273... | 0.6322386 | 0 |
Gets probability matrix for a node | public void getNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {
System.arraycopy(matrices[currentMatricesIndices[nodeIndex]][nodeIndex],
matrixIndex * matrixSize, matrix, 0, matrixSize);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void initiateProbabilityMatrix( int numberOfDocs ) {\r\n double jTransition = 1 / (double)numberOfDocs;\r\n for (int i = 0; i < numberOfDocs; i++) {\r\n //Determine probability of going to a link\r\n double prob;\r\n if (out[i] == 0) prob = jTransition;\r\n ... | [
"0.5655995",
"0.5598477",
"0.5585688",
"0.55539584",
"0.5516092",
"0.54179376",
"0.54109925",
"0.535896",
"0.5351092",
"0.5310904",
"0.52699363",
"0.52647996",
"0.5255457",
"0.52513325",
"0.5225911",
"0.51991683",
"0.5196658",
"0.51717913",
"0.5169152",
"0.5160804",
"0.513081... | 0.0 | -1 |
Sets the currently updating node partials for node nodeIndex. This may need to repeatedly copy the partials for the different category partitions | @Override
public void setCurrentNodePartials(int nodeIndex, double[] partials) {
if (partials.length < partialsSize) {
int k = 0;
for (int i = 0; i < matrixCount; i++) {
System.arraycopy(partials, 0, this.partials[currentPartialsIndices[nodeIndex]][nodeIndex], k, partial... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setNodePartials(int nodeIndex, double[] partials) {\n\n if (this.partials[0][nodeIndex] == null) {\n createNodePartials(nodeIndex);\n }\n if (partials.length < partialsSize) {\n int k = 0;\n for (int i = 0; i < matrixCount; i++) {\n ... | [
"0.70919985",
"0.6409162",
"0.59029186",
"0.54546565",
"0.53971946",
"0.5393797",
"0.5288987",
"0.5205949",
"0.5098222",
"0.50544745",
"0.50267655",
"0.4842496",
"0.48232716",
"0.4813239",
"0.47977924",
"0.47775596",
"0.47635898",
"0.4723509",
"0.47151336",
"0.47014776",
"0.4... | 0.7281614 | 0 |
Calculates partial likelihoods at a node. | @Override
public void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3) {
calculatePartialsPartialsPruning(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],
partials[currentPartialsIndices[nodeIndex2]][nodeIndex2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void calculatePartials(int nodeIndex1, int nodeIndex2,\n\t\t\tint nodeIndex3, int[] matrixMap) {\n\t\tthrow new RuntimeException(\"calculatePartials is not implemented using matrixMap\");\n\n\t}",
"private void calculatePartialsPartialsPruning(int iNode1, int iNode2, int iNode3) {\n\t\t// pre... | [
"0.5495542",
"0.5391333",
"0.51284826",
"0.50485575",
"0.501902",
"0.49469334",
"0.49465704",
"0.4927927",
"0.49222293",
"0.49040568",
"0.48944917",
"0.48510727",
"0.48175785",
"0.48040548",
"0.47489592",
"0.4722983",
"0.47120938",
"0.46532527",
"0.46488762",
"0.46167582",
"0... | 0.5920073 | 0 |
Calculates partial likelihoods at a node when both children have partials. | protected abstract void calculatePartialsPartialsPruning(double[] partials1, double[] matrices1,
double[] partials2, double[] matrices2,
double[] partials3); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3) {\n\n calculatePartialsPartialsPruning(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],\n partials[currentPartialsIndices[nodeIndex2]][... | [
"0.6054234",
"0.55058604",
"0.541237",
"0.5316975",
"0.520604",
"0.49943167",
"0.49831358",
"0.4923568",
"0.48410976",
"0.47919187",
"0.47542226",
"0.47418508",
"0.47297534",
"0.47053814",
"0.46761397",
"0.46686321",
"0.46572763",
"0.46387357",
"0.4574429",
"0.45616663",
"0.4... | 0.5354823 | 3 |
Integrates partials across categories. | protected abstract void calculateIntegratePartials(double[] inPartials, double[] proportions, double[] outPartials); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }",
"public static View renderCategory(Context context, AppCategoryInfo category)\n\t{\n\t\tLayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SER... | [
"0.4751386",
"0.46634308",
"0.4658147",
"0.45960402",
"0.45661375",
"0.45531648",
"0.4544342",
"0.44685107",
"0.44570184",
"0.43849653",
"0.43721467",
"0.43706816",
"0.43285203",
"0.43158323",
"0.4311758",
"0.42673305",
"0.42609143",
"0.42544854",
"0.42448905",
"0.42220715",
... | 0.45325065 | 7 |
Scale the partials at a given node. This uses a scaling suggested by Ziheng Yang in Yang (2000) J. Mol. Evol. 51: 423432 This function looks over the partial likelihoods for each state at each pattern and finds the largest. If this is less than the scalingThreshold (currently set to 1E40) then it rescales the partials ... | protected void scalePartials(int nodeIndex) {
int u = 0;
for (int i = 0; i < patternCount; i++) {
double scaleFactor = 0.0;
int v = u;
for (int k = 0; k < matrixCount; k++) {
for (int j = 0; j < stateCount; j++) {
if (partials[cur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void scalePartials(int iNode) {\n \tdouble [] fPartials = m_fPartials[m_iCurrentPartials[iNode]][iNode];\n \tint k = fPartials.length;\n \tfor (int v = 0; v < k; v++) {\n \t\tfPartials[v] *= SCALE;\n \t}\n }",
"public void rescale(double newFactor) {\n\t\tthis.branchScale = branchScale*newFacto... | [
"0.72369415",
"0.5600734",
"0.556908",
"0.55643016",
"0.5383432",
"0.5284252",
"0.5280316",
"0.5250181",
"0.51424384",
"0.50832736",
"0.5041626",
"0.49989516",
"0.4989861",
"0.4962324",
"0.49604636",
"0.49561277",
"0.49096575",
"0.48967874",
"0.48215228",
"0.48091927",
"0.478... | 0.7914731 | 0 |
This function returns the scaling factor for that pattern by summing over the log scalings used at each node. If scaling is off then this just returns a 0. | @Override
public double getLogScalingFactor(int pattern) {
double logScalingFactor = 0.0;
if (useScaling) {
for (int i = 0; i < nodeCount; i++) {
logScalingFactor += scalingFactors[currentPartialsIndices[i]][i][pattern];
}
}
return logScalingFacto... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getLogScalingFactor(int iPattern) {\n \tif (m_bUseScaling) {\n \t\treturn -(m_nNodes/2) * Math.log(SCALE);\n \t} else {\n \t\treturn 0;\n \t}\n }",
"protected void scalePartials(int nodeIndex) {\n int u = 0;\n\n for (int i = 0; i < patternCount; i++) {\n\n double... | [
"0.806299",
"0.59598905",
"0.58125514",
"0.58123785",
"0.58119017",
"0.5778553",
"0.5740606",
"0.5722171",
"0.57111555",
"0.56978005",
"0.5673728",
"0.5611475",
"0.56088704",
"0.5569753",
"0.5569449",
"0.5563891",
"0.5540734",
"0.55343616",
"0.5512033",
"0.55067325",
"0.55031... | 0.7842274 | 1 |
Gets the partials for a particular node. | @Override
public void getPartials(int nodeIndex, double[] outPartials) {
double[] partials1 = partials[currentPartialsIndices[nodeIndex]][nodeIndex];
System.arraycopy(partials1, 0, outPartials, 0, partialsSize);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void createNodePartials(int nodeIndex) {\n\n this.partials[0][nodeIndex] = new double[partialsSize];\n this.partials[1][nodeIndex] = new double[partialsSize];\n }",
"@Override\n\tpublic void setNodePartials(int nodeIndex, double[] partials) {\n\n if (this.partials[0][n... | [
"0.49758324",
"0.49528977",
"0.49305075",
"0.49070397",
"0.4753037",
"0.4573664",
"0.45350996",
"0.4438202",
"0.44045788",
"0.42561927",
"0.4091904",
"0.40782842",
"0.40631092",
"0.40339938",
"0.40313908",
"0.40240085",
"0.40171853",
"0.4012975",
"0.4001577",
"0.397777",
"0.3... | 0.5833013 | 0 |
Restore the stored state | @Override
public void restoreState() {
// Rather than copying the stored stuff back, just swap the pointers...
int[] tmp1 = currentMatricesIndices;
currentMatricesIndices = storedMatricesIndices;
storedMatricesIndices = tmp1;
int[] tmp2 = currentPartialsIndices;
current... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void restoreState() {\n\t\tsuper.restoreState();\n\t}",
"public void restoreState() \n\t{\n\t\tsuper.restoreState();\n\t}",
"@Override\n public void restore() {\n }",
"public abstract void restore();",
"@Override\n public void restore() {\n // Rather than copying the stored stuff bac... | [
"0.8539892",
"0.8419759",
"0.81075686",
"0.8096795",
"0.793684",
"0.78928095",
"0.775733",
"0.7618813",
"0.7518793",
"0.74626356",
"0.73550487",
"0.7344125",
"0.73408747",
"0.73295105",
"0.72284585",
"0.7213229",
"0.71739703",
"0.7145834",
"0.7069663",
"0.69867",
"0.6983505",... | 0.7324748 | 14 |
/ Allocates states for a node | @Override
public void createNodeStates(int nodeIndex) {
throw new IllegalArgumentException("createNodeStates in AbstractSpectrumLikelihoodCore should not be called");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node(State state) {\r\n\t\t\tthis.state=state;\r\n\t\t}",
"public TemporalStateNode(){ \n\t\t\tchilds=new HashMap<String,TemporalStateNode>();\n\t\t\t//transitions=new HashMap<StateNode,Transition>();\n\t\t\t//transitions=new HashSet<Transition>();\n\t\t\tstates=new ArrayList<TemporalState>();\n\t\t\t//... | [
"0.647711",
"0.6148144",
"0.6137376",
"0.61088866",
"0.6029485",
"0.59720784",
"0.59378284",
"0.59042513",
"0.58142066",
"0.5790367",
"0.5752809",
"0.5748258",
"0.57472175",
"0.57420856",
"0.57214355",
"0.5715655",
"0.57042176",
"0.5700205",
"0.5693578",
"0.5672737",
"0.56705... | 0.6293107 | 1 |
/ Sets states for a node | @Override
public void setNodeStates(int nodeIndex, int[] states) {
throw new IllegalArgumentException("setNodeStates in AbstractSpectrumLikelihoodCore should not be called");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setNodeStatesForUpdate(int iNode) {\n }",
"public void setState(NodeState state) {\n this.state = state;\n }",
"public abstract void setNodes();",
"void setState(int state);",
"public void setState(int state);",
"public void setState(int state);",
"@Override\n ... | [
"0.7609391",
"0.7164788",
"0.69752294",
"0.65729886",
"0.65407187",
"0.65407187",
"0.653852",
"0.6419596",
"0.63960534",
"0.63615316",
"0.63422126",
"0.6321701",
"0.63100845",
"0.62617683",
"0.626169",
"0.6258273",
"0.6219371",
"0.6202737",
"0.6191703",
"0.61846054",
"0.61527... | 0.7365024 | 1 |
/ Gets states for a node | public void getNodeStates(int nodeIndex, int[] states) {
throw new IllegalArgumentException("getNodeStates in AbstractSpectrumLikelihoodCore should not be called");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NodeState getState() {\n return state;\n }",
"public NodeStateElements getNodeStateAccess() {\r\n\t\treturn pNodeState;\r\n\t}",
"public int getStates() {\n return states;\n }",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
... | [
"0.7056558",
"0.6978972",
"0.68185616",
"0.67615575",
"0.67615575",
"0.67615575",
"0.67615575",
"0.67615575",
"0.67615575",
"0.6753476",
"0.6741061",
"0.6709916",
"0.6595925",
"0.6591085",
"0.65815187",
"0.65815187",
"0.65815187",
"0.65815187",
"0.64514786",
"0.64343244",
"0.... | 0.0 | -1 |
Calculates partial likelihoods at a node. | @Override
public void calculatePartials(int nodeIndex1, int nodeIndex2,
int nodeIndex3, int[] matrixMap) {
throw new RuntimeException("calculatePartials is not implemented using matrixMap");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3) {\n\n calculatePartialsPartialsPruning(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],\n partials[currentPartialsIndices[nodeIndex2]][... | [
"0.5920073",
"0.5391333",
"0.51284826",
"0.50485575",
"0.501902",
"0.49469334",
"0.49465704",
"0.4927927",
"0.49222293",
"0.49040568",
"0.48944917",
"0.48510727",
"0.48175785",
"0.48040548",
"0.47489592",
"0.4722983",
"0.47120938",
"0.46532527",
"0.46488762",
"0.46167582",
"0... | 0.5495542 | 1 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static ProfileFragment newInstance(String param1, String param2) {
ProfileFragment fragment = new ProfileFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n ... | [
"0.7260997",
"0.7233023",
"0.71139246",
"0.69902015",
"0.6990197",
"0.68339634",
"0.68298686",
"0.6814042",
"0.6802172",
"0.68006206",
"0.6766425",
"0.6740456",
"0.6740456",
"0.67286223",
"0.6717106",
"0.6707997",
"0.6691045",
"0.66906345",
"0.66888523",
"0.6664766",
"0.66462... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
profileBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_profile, container, false);
SharedPreferences sharedpreferences = getContext().getSharedPre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
Toast.makeText(cogetApplicationContext(), "Text entered is " + input.getText().toString(), Toast.LENGTH_SHORT).show(); | @Override
public void onClick(DialogInterface dialogInterface, int i) {
userphone=editText_phone.getText().toString();
useremail=editText_email.getText().toString();
if (validate(userphone,useremail)){
editProfile(user_id,userphone,userem... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }",
"public String getText(){\n return input.getText().toString();\n }",
"@Override\n public void onClick(View v) {... | [
"0.70633084",
"0.70555043",
"0.68599254",
"0.67061055",
"0.66644514",
"0.6590501",
"0.6579288",
"0.65344954",
"0.6429945",
"0.6334268",
"0.63334346",
"0.62956643",
"0.62485516",
"0.62321776",
"0.6223944",
"0.61575085",
"0.6150982",
"0.6148129",
"0.6108335",
"0.6038133",
"0.60... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.out.println(args[0]);
System.out.println(args[1]);
try
{
FileInputStream f1=new FileInputStream(args[0]);
FileInputStream f2=new FileInputStream(args[1]);
InputStreamReader input= new InputStreamReader(f1);
BufferedReader reader=new BufferedRead... | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
compare last DateTime from file to DateTime.now() | public static boolean isTimeToUpdate() throws IOException {
LocalDateTime now = LocalDateTime.now();
LocalDateTime lastRunDatetime = null;
try {
lastRunDatetime = readDateFromFile(timeTrackingFilePath);
} catch (IOException e) {
e.printStackTrace();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkTimeStamp(File file) {\n // uses sharedpreferences\n return (lastUpdate < file.getModifiedDate().getValue());\n }",
"long getLastWriteTimeUtc(String path) throws IOException;",
"@Test\n\tpublic void sameModificationDate() throws IOException {\n\t\tFile firstFile = File.cre... | [
"0.6936757",
"0.64980304",
"0.6430983",
"0.6427329",
"0.6163333",
"0.6150832",
"0.6150832",
"0.6095986",
"0.60524035",
"0.5912183",
"0.5885091",
"0.58320355",
"0.5827897",
"0.58083785",
"0.5788375",
"0.57768244",
"0.5774598",
"0.5767391",
"0.57445395",
"0.57418853",
"0.571431... | 0.56711763 | 24 |
Command the camera to enter whatever mode it is not in | public ToggleCameraMode() {
requires(Robot.vision);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startCamera()\n {\n startCamera(null);\n }",
"public void nextCameraMode() {\n cameraMode = cameraMode.next();\n setCameraControlMode(cameraMode);\n }",
"@Override\n protected void screenMode(int mode) {\n\n }",
"public void switchInsMode() {\n this.inpu... | [
"0.64984965",
"0.64913315",
"0.64813894",
"0.6356478",
"0.6272217",
"0.6263197",
"0.6189272",
"0.61606663",
"0.6144035",
"0.61156034",
"0.6030402",
"0.6030221",
"0.6027529",
"0.59795976",
"0.5953841",
"0.5953237",
"0.5947448",
"0.5933446",
"0.59288734",
"0.59066993",
"0.58995... | 0.64972204 | 1 |
Make this return true when this Command no longer needs to run execute() | @Override
protected boolean isFinished() {
return true;
} | {
"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.0 | -1 |
implement the callable interface to execute in the Executorservice. | public Map call() {
Map result=null;
int i=tasks.size();
int j=0;
int groupId=0;
try {
for(Task t:tasks){
groupId=t.getGroupId();
result=this.excuteTask(t);
j++;
}
} catch (BusinessException e) {
String errorMessage="Task execute error--task name:"+tasks.get(j).getTaskName()+",... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void submit(Callable callable);",
"@Override\r\n\tvoid execute(Runnable task);",
"public interface ExecutorListener {\n\n void invokeMethod(int id, ExecutorObject object, ExecuteRunType type, User user, String uniqueMethodId, Method method);\n\n}",
"public interface ExecutorService {\n\n\n... | [
"0.73068",
"0.700109",
"0.6991209",
"0.6863501",
"0.6852095",
"0.6787062",
"0.6766641",
"0.67594904",
"0.67594904",
"0.67594904",
"0.67594904",
"0.66832566",
"0.66617554",
"0.663223",
"0.66137505",
"0.66096026",
"0.6600821",
"0.6600821",
"0.6600821",
"0.65936923",
"0.65854007... | 0.0 | -1 |
clean up relative resource and cache | private void cleanUp(){
SSHUtil sSHUtil=(SSHUtil) SpringUtil.getBean("sSHUtil");
try {
sSHUtil.disconnect();
} catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearScriptPath() {\r\n loader = null;\r\n }",
"public void cleanup();",
"public void cleanup() {\r\n }",
"public void removeResources() {\n\t\tresources.clear();\n\t}",
"@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}",
"private void clearAssetPath() {\n \n assetPath... | [
"0.6477999",
"0.6397699",
"0.63524365",
"0.6351091",
"0.63180923",
"0.62815046",
"0.62555027",
"0.6213218",
"0.62068444",
"0.62029463",
"0.6194744",
"0.6177178",
"0.61634433",
"0.61510223",
"0.6150353",
"0.6146723",
"0.6142708",
"0.61422396",
"0.61422396",
"0.6136901",
"0.611... | 0.0 | -1 |
Invoke before every task. | @Override
public void preExecuteTask(Task t,Map context) {
log.info("Task Id:"+t.getTaskId()+"--Task Name:"+t.getTaskName()+"--Task begin execute!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void prePerform() {\n // nothing to do by default\n }",
"@Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }",
"@Override\r\n\tpublic void PreExecute(TaskConfig config){\n\t... | [
"0.70699084",
"0.6687115",
"0.6654983",
"0.6619339",
"0.65941966",
"0.6591843",
"0.64847267",
"0.6466044",
"0.64417434",
"0.6428163",
"0.6306929",
"0.620973",
"0.61876094",
"0.61281645",
"0.6105604",
"0.6075537",
"0.60354805",
"0.6023644",
"0.5993997",
"0.59910953",
"0.596774... | 0.62473506 | 11 |
Invoke after every task. | @Override
public void afterExecuteTask(Task t,Map context) {
log.info("Task Id:"+t.getTaskId()+"--Task Name:"+t.getTaskName()+"--Running result:"+context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void tasksFinished()\r\n {\n }",
"protected void runAfterIteration() {}",
"private void invokePostRefreshTasks(boolean success) {\r\n Vector tasksToRun = null;\r\n \r\n synchronized(postRefreshTasks) {\r\n int size = post... | [
"0.6883178",
"0.6492407",
"0.64819384",
"0.6446031",
"0.6446031",
"0.6408402",
"0.63889194",
"0.6385235",
"0.637379",
"0.636464",
"0.6349564",
"0.6348533",
"0.63077915",
"0.6302713",
"0.6285544",
"0.6255237",
"0.6240593",
"0.62223375",
"0.62151074",
"0.6140005",
"0.6122691",
... | 0.5738545 | 62 |
All the config options | public String getName(String bossName)
{
if(!conf().isSet(bossName + ".name"))return "Boss not found!";
return conf().getString(bossName + ".name");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map getOptions();",
"@Override\n protected void options()\n {\n super.options();\n addOption(Opt.APPLICATION_ID);\n addOption(Opt.SERVER_ID);\n addOption(Opt.CATEGORY);\n addOption(Opt.NAME, \"The name of the label\");\n }",
"public abstract String[] getOptions();",
... | [
"0.6760284",
"0.6684401",
"0.66219383",
"0.6469816",
"0.64611",
"0.6410112",
"0.6396514",
"0.6346798",
"0.63255036",
"0.6275269",
"0.62491685",
"0.62301564",
"0.6225814",
"0.622503",
"0.6177504",
"0.6159023",
"0.61518085",
"0.61466384",
"0.6138501",
"0.6134361",
"0.6133985",
... | 0.0 | -1 |
We must set the path to log4j.xml via the method YConnectLogger.setFilePath. If the process is skipped, YConnectLogger will set "./yconnect_log_conf.xml" as default. | @Test
public void testSetFilePath() {
YConnectLogger.setFilePath(getResourcePath("/log4j.xml"));
YConnectLogger.debug("Some Object",
"should put a message with the class name.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void getLoggerConfiguration() {\n\t\tPropertyConfigurator.configure(System.getProperty(\"user.dir\")+ \"\\\\Config\\\\log4j.properties\");\n\t}",
"private static void logConfigLocation(HiveConf conf) throws LogUtils.LogInitializationException\n {\n if (conf.getHiveDefaultLocation() != nul... | [
"0.6894173",
"0.6460476",
"0.60472614",
"0.5937109",
"0.58963084",
"0.5880791",
"0.58135605",
"0.57920873",
"0.57914895",
"0.5767122",
"0.5697823",
"0.5633343",
"0.56216747",
"0.5615929",
"0.56078815",
"0.55873024",
"0.5492726",
"0.54511046",
"0.5410935",
"0.53981096",
"0.537... | 0.6598753 | 1 |
Integer siteId = Integer.parseInt((String)request.getSession().getAttribute("siteId")); Map param = ParameterUtil.getParameterMap(request); param.put("siteId",siteId); param.put("isShow",1); | @ResponseBody
@RequestMapping("/addcomment")
public String addComment(@RequestBody Map<String,Object> param){
return commentService.addComment(param);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }",
"@Override\n\tprotected void doPost(HttpServlet... | [
"0.5788552",
"0.5730625",
"0.5640184",
"0.55337113",
"0.5393509",
"0.53346074",
"0.5304848",
"0.52803487",
"0.52734035",
"0.5270314",
"0.5228953",
"0.5217055",
"0.5166211",
"0.5143904",
"0.5136016",
"0.51358616",
"0.5123729",
"0.50857604",
"0.50824106",
"0.50814754",
"0.50776... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onRequest() {
} | {
"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 |
onPreExecute(), invoked on the UI thread before the task is executed. This step is normally used to setup the task, for instance by showing a progress bar in the user interface. | @Override
protected void onPreExecute() {
// setup dialog
if (dialog!=null){
dialog.setProgress(0);
dialog.setMessage("Initialized");
}
if (callback!=null){
callback.onTaskUpdate(null, 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onTaskPreExecute() {\n\t\tLog.i(TAG, \"pre executing\");\n\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n // Do something like display a progress bar\n }",
"@Override\n protected void onPreExecute() {\n }"... | [
"0.8372588",
"0.83555776",
"0.81101394",
"0.81101394",
"0.81101394",
"0.81101394",
"0.81101394",
"0.808684",
"0.80694884",
"0.80694884",
"0.80694884",
"0.80694884",
"0.80694884",
"0.80694884",
"0.80694884",
"0.80694884",
"0.80379033",
"0.80379033",
"0.80379033",
"0.80379033",
... | 0.8233726 | 2 |
health = local variable + class instance variable + parent class instance variable + grandparent instance variable; | void displayHealth(int health){
health = health + this.health + super.health + a.health;
System.out.println(health);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHealth() { return this.health; }",
"public double getHealth() { return health; }",
"public int getHealth(){\n return health;\n }",
"public double getHealth(){\r\n return health;\r\n }",
"public int getHealth()\r\n {\r\n return health;\r\n }",
"int getH... | [
"0.70781416",
"0.6985797",
"0.69140416",
"0.6809093",
"0.67949176",
"0.67789704",
"0.6758473",
"0.67362523",
"0.6671836",
"0.6635351",
"0.6606578",
"0.65887725",
"0.65057296",
"0.64745194",
"0.64571476",
"0.6451916",
"0.64319485",
"0.64276534",
"0.63524866",
"0.63124293",
"0.... | 0.6969448 | 2 |
Upcasting and Downcasting > Inheritance | public static void main(String[] args) {
Dog d = new Dog();
d.displayHealth(5);
// Scope of an Object
//Dog dog = new Dog();
// Animal dog = new Dog(); // upcasting --> internally
// // upcasting is an implicit process or done automatically
// Dog d = (Dog)dog; // downcasting
// dog.eat();
//... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n// ChildPrint childPrint = new ChildPrint();\n// childPrint.printName();\n\n// ChildOverridingPrivate child = new ChildOverridingPrivate();\n// child.printName();\n\n ParentCasting parent = new ParentCasting();\n ChildCasting chi... | [
"0.68934375",
"0.6537934",
"0.6537934",
"0.6537934",
"0.64239794",
"0.6382923",
"0.63003063",
"0.6219378",
"0.6168856",
"0.6003799",
"0.5996166",
"0.59590626",
"0.5846181",
"0.58201635",
"0.5801867",
"0.57938147",
"0.57211924",
"0.5719705",
"0.5703136",
"0.56754434",
"0.56599... | 0.0 | -1 |
dir is 0 for read and 1 for write | public native int cGPIOWrite(int pin, boolean value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDir(int dir) {\n this.dir = dir;\n }",
"Object getDir();",
"@Override\n public boolean isDir() { return true; }",
"public int getDir() {\n return this.dir;\n }",
"private static void checkAccess(File directory, boolean isWriteable) throws IOException {\n if(!directory.exis... | [
"0.63615566",
"0.62817633",
"0.6208051",
"0.6196093",
"0.6131665",
"0.60952836",
"0.60769033",
"0.607574",
"0.60435665",
"0.60232466",
"0.59878147",
"0.59531814",
"0.5917885",
"0.5871875",
"0.5866857",
"0.5863239",
"0.5860985",
"0.5856777",
"0.58328176",
"0.5804497",
"0.58044... | 0.0 | -1 |
Declaring the native function | public native int cStopInterrupt(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Function createFunction();",
"private native String native_init();",
"org.globus.swift.language.Function addNewFunction();",
"public abstract int mo123247f();",
"private native long nativeCreateDelegate();",
"public abstract int mo9732a();",
"void mo41083a();",
"public abstract int mo9797a();",
"vo... | [
"0.64908355",
"0.64782196",
"0.6394182",
"0.6387968",
"0.63706166",
"0.6359349",
"0.6343832",
"0.63418025",
"0.6333693",
"0.6303164",
"0.6296964",
"0.6292477",
"0.628951",
"0.6277845",
"0.62775767",
"0.6238693",
"0.6235368",
"0.62138337",
"0.6211121",
"0.61642927",
"0.6155203... | 0.0 | -1 |
Lineartime partition routine to sort an array containing 0, 1 and 2 It similar to threeway Partitioning for Dutch national flag problem | public static void sort012(int a[], int n)
{
int start=0, mid=0, end=n-1, pivot=1;
while(mid <= end)
{
if(a[mid] < pivot) // current element is 0
{
swap(a, mid, start);
start++;
mid++;
}
else if(a[mid] > pivot) // current e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void partition();",
"private int hoaresPartition2(int[] arr, int start, int end)\n {\n int pivot = arr[end];\n int left = start;\n int right = end - 1;\n\n while(left < right)\n {\n while(arr[left] < pivot && left < end) left ++;\n while(arr[righ... | [
"0.65437347",
"0.65207845",
"0.63775516",
"0.63095117",
"0.62759954",
"0.6268635",
"0.62238777",
"0.6216587",
"0.62069494",
"0.61888397",
"0.61827004",
"0.6164247",
"0.61186",
"0.6104275",
"0.6103819",
"0.6103214",
"0.6095885",
"0.6079997",
"0.6076938",
"0.6051437",
"0.604660... | 0.0 | -1 |
TODO Autogenerated method stub | public int addOptype(Optype optype) throws Exception {
return mapper.addOptype(optype);
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public int delOptype(Optype optype) throws Exception {
return mapper.delOptype(optype);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public List<Optype> getOptypeList() throws Exception {
return mapper.getOptypeList();
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
This should never be called! Should throw an exception, but doesn't yet. | public void setChild(int position, Node n) {
System.out.println("Attempt to add child to Variable");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void m9741j() throws cf {\r\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"zzafe mo29840Y() throws RemoteException;",
"public void mo1964g() throws cf {\r\n }",
"public voi... | [
"0.6075321",
"0.6030565",
"0.6015713",
"0.58192754",
"0.5795747",
"0.5788906",
"0.5770915",
"0.5763618",
"0.5763618",
"0.5752863",
"0.5723007",
"0.57074356",
"0.5683766",
"0.5676585",
"0.5675383",
"0.5662918",
"0.5651869",
"0.5642396",
"0.56314903",
"0.56233364",
"0.5621912",... | 0.0 | -1 |
Returns the value in data indexed by this Variable's index member. | public double eval(double[] data) {
if (index < data.length)
return data[index];
else {
System.out.println("Variable index exceeds data array length.");
return 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getValue(int index);",
"public Object getValue()\n {\n Object[] a = (Object[]) getArray().getValue();\n int i = ((Number) getIndex().getValue()).intValue();\n\n return a[i];\n }",
"public int getValue() {\r\n return index;\r\n }",
"public int ge... | [
"0.737111",
"0.72364825",
"0.7226827",
"0.7136772",
"0.7136644",
"0.70849454",
"0.70442504",
"0.7001928",
"0.69874996",
"0.69312996",
"0.67952186",
"0.6761745",
"0.67399806",
"0.67399764",
"0.6706482",
"0.6704196",
"0.6701157",
"0.6687667",
"0.6667973",
"0.66240776",
"0.66170... | 0.0 | -1 |
Does nothing, since Variables can't have children. | public void addRandomKids(OperatorFactory o, TerminalFactory t,
int maxDepth, Random rand) {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Node visitVarType(VarTypeContext ctx) {\n\t\treturn super.visitVarType(ctx);\r\n\t}",
"@Override\n\t\t\tpublic Ast var(Var ast, Void arg) {\n\t\t\t\treturn super.var(ast, arg);\n\t\t\t}",
"@Override\n\tpublic Expr visit(VarExpr e) {\n\t\treturn e;\n\t}",
"@Override\n public Void visi... | [
"0.6769684",
"0.66327894",
"0.65548754",
"0.65354073",
"0.65269816",
"0.64204645",
"0.64068526",
"0.6374239",
"0.63484734",
"0.6343797",
"0.6258687",
"0.6252925",
"0.6151648",
"0.60965973",
"0.6095147",
"0.60515904",
"0.59849656",
"0.5951362",
"0.59502655",
"0.59466845",
"0.5... | 0.0 | -1 |
Returns a new Variable object with the same index. | public Node duplicate() {
Variable alterEgo = new Variable(index);
return alterEgo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IVariable getVariable(int index) {\n return null;\n }",
"Variable createVariable();",
"Variable createVariable();",
"VariableExp createVariableExp();",
"public VariableIF createVariable(VariableDecl decl);",
"public static Variable variable( String name )\n {\n NullArgumentExce... | [
"0.64288485",
"0.62841797",
"0.62841797",
"0.5935769",
"0.5805075",
"0.57848984",
"0.5761565",
"0.5736893",
"0.5706012",
"0.57024485",
"0.56926465",
"0.5657664",
"0.56255305",
"0.561498",
"0.55757606",
"0.555849",
"0.55339026",
"0.546692",
"0.54568905",
"0.54286355",
"0.53451... | 0.70259887 | 0 |
Returns a NodePairPlus object whose parent and child are null, and whose counter equals the incoming nodeNumber. | public NodePairPlus traceTree(int nodeNumber, int clipNumber) {
NodePairPlus p = new NodePairPlus();
p.parent = null;
p.child = null;
p.counter = nodeNumber;
return p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node getNewNode(){\n for (Node n:nodes) {\n if(n.isNewTag()){\n return n;\n }\n }\n return null;\n }",
"public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}",
"Node<T> parent();",
"private Node createNode(EventPair ep... | [
"0.5003337",
"0.4964289",
"0.48687437",
"0.48459065",
"0.4833924",
"0.48290116",
"0.48257458",
"0.48145944",
"0.4805801",
"0.4737691",
"0.47157648",
"0.46980047",
"0.46849543",
"0.4682266",
"0.46674657",
"0.46511132",
"0.46487153",
"0.46372807",
"0.4634512",
"0.46304458",
"0.... | 0.65421975 | 0 |
This should never be called! Should throw an exception. | public void changeChild(Node oldChild, Node newChild) {
System.out.println("Variable.changeChild() should never be called!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public void m9741j() throws cf {\r\n }",
"zzafe mo29840Y() throws RemoteException;",
"@Override\n protected void initialize() {\n }",
"@Overri... | [
"0.6114908",
"0.60219747",
"0.59103686",
"0.5837857",
"0.57236",
"0.5706409",
"0.5706409",
"0.5706409",
"0.5706409",
"0.5706409",
"0.5706409",
"0.57007915",
"0.56874985",
"0.56874985",
"0.5685644",
"0.5684165",
"0.56742245",
"0.5666511",
"0.5647938",
"0.5638265",
"0.56281006"... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.