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 |
|---|---|---|---|---|---|---|
Test case for a null leftargument. | @Test
void testAssertPropertyReflectionEquals_leftNull() {
assertFailing(() ->
assertPropertyReflectionEquals("stringProperty", null, testObject)
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }",
"@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLC... | [
"0.69670904",
"0.6773204",
"0.66861594",
"0.66861594",
"0.64510924",
"0.63982004",
"0.6391154",
"0.63801765",
"0.6363709",
"0.63433605",
"0.62861234",
"0.62795717",
"0.6230823",
"0.62153435",
"0.6177279",
"0.6165777",
"0.6154508",
"0.613205",
"0.6125299",
"0.60671014",
"0.605... | 0.5764889 | 61 |
Test case for a null rightargument. | @Test
void testAssertPropertyReflectionEquals_rightNull() {
testObject.setStringProperty(null);
assertFailing(() ->
assertPropertyReflectionEquals("stringProperty", "stringValue", testObject)
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\... | [
"0.6328223",
"0.611266",
"0.611266",
"0.59809273",
"0.5974067",
"0.5962876",
"0.5931139",
"0.59096956",
"0.590199",
"0.58934844",
"0.57949615",
"0.57941806",
"0.57763416",
"0.57082725",
"0.5661993",
"0.5639155",
"0.56112695",
"0.5607692",
"0.55852574",
"0.5578966",
"0.5576348... | 0.50913686 | 87 |
Test case for null as actual object argument. | @Test
void testAssertPropertyReflectionEquals_actualObjectNull() {
assertFailing(() ->
assertPropertyReflectionEquals("aProperty", "aValue", null)
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TestCase notNull( Object obj );",
"public TestCase isNull( Object obj );",
"@Test\n public void testCheckNullForInjectedValue() {\n Helper.checkNullForInjectedValue(\"obj\", \"obj\");\n }",
"private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgAr... | [
"0.781609",
"0.75348336",
"0.73348737",
"0.72314835",
"0.7103162",
"0.7027443",
"0.6848957",
"0.6833671",
"0.67534345",
"0.6750033",
"0.67409575",
"0.6725542",
"0.6696573",
"0.66669405",
"0.665983",
"0.6627633",
"0.6623466",
"0.66023505",
"0.6568106",
"0.6561137",
"0.65606284... | 0.6693388 | 13 |
Test case for both null arguments. | @Test
void testAssertPropertyReflectionEquals_null() {
testObject.setStringProperty(null);
assertPropertyReflectionEquals("stringProperty", null, testObject);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean bothNull(String one, String two) {\n return (one == null && two == null);\n }",
"@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }",
"public void testCheckNull_NullArg() {\n try {\n Util.checkNull(null, \"test... | [
"0.7219919",
"0.70836526",
"0.70797634",
"0.70797634",
"0.6927687",
"0.6922478",
"0.69067925",
"0.68714255",
"0.68248",
"0.6787495",
"0.67801774",
"0.67654693",
"0.6760656",
"0.67537105",
"0.674699",
"0.67459583",
"0.6731852",
"0.67273897",
"0.6727203",
"0.67262244",
"0.67061... | 0.0 | -1 |
Test for ignored default left value. | @Test
void testAssertPropertyReflectionEquals_equalsIgnoredDefault() {
assertPropertyReflectionEquals(
"a message",
"stringProperty",
null,
testObject,
ReflectionComparatorMode.IGNORE_DEFAULTS
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDefaultValue();",
"String getDefaultValue();",
"String getDefaultValue();",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"boolean isDefault();",
"boolean isDefault();",
"protected final boolean toIsDefault() {\n return to < 0;\n }",
"public boolean is... | [
"0.604382",
"0.5865284",
"0.5865284",
"0.5755174",
"0.5755174",
"0.5753096",
"0.5753096",
"0.5701294",
"0.56243217",
"0.55995953",
"0.5515808",
"0.54824686",
"0.5476579",
"0.543216",
"0.5383249",
"0.53681153",
"0.5352287",
"0.5339254",
"0.5318922",
"0.5306531",
"0.5295496",
... | 0.0 | -1 |
Test for ignored default left value. | @Test
void testAssertPropertyLenientEquals_equalsIgnoredDefault() {
assertPropertyLenientEquals("stringProperty", null, testObject);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDefaultValue();",
"String getDefaultValue();",
"String getDefaultValue();",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"boolean isDefault();",
"boolean isDefault();",
"protected final boolean toIsDefault() {\n return to < 0;\n }",
"public boolean is... | [
"0.604382",
"0.5865284",
"0.5865284",
"0.5755174",
"0.5755174",
"0.5753096",
"0.5753096",
"0.5701294",
"0.56243217",
"0.55995953",
"0.5515808",
"0.54824686",
"0.5476579",
"0.543216",
"0.5383249",
"0.53681153",
"0.5352287",
"0.5339254",
"0.5318922",
"0.5306531",
"0.5295496",
... | 0.0 | -1 |
Create a user interface. | public UserInterface(CalcEngine engine) {
calc = engine;
makeFrame();
frame.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(co... | [
"0.71829444",
"0.7132414",
"0.712387",
"0.6990913",
"0.69422257",
"0.6870739",
"0.67819285",
"0.6777238",
"0.6760009",
"0.675585",
"0.6735661",
"0.6706321",
"0.6677355",
"0.6670018",
"0.6593893",
"0.65625536",
"0.65470654",
"0.6542945",
"0.6521631",
"0.6495892",
"0.64864635",... | 0.6498547 | 19 |
Set the visibility of the interface. | public void setVisible(boolean visible) {
frame.setVisible(visible);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setVisibility(long visibility) {\n throw new UnsupportedOperationException();\n }",
"public void setVisibility(int value) {\n this.visibility = value;\n }",
"public static void set_SetVisibility(aVisibility v) throws RuntimeException\n {\n UmlCom.send_... | [
"0.73048985",
"0.7196782",
"0.71788025",
"0.7114884",
"0.7114884",
"0.7101406",
"0.6948402",
"0.69455975",
"0.69233316",
"0.6909892",
"0.6908233",
"0.6869102",
"0.6842967",
"0.6830484",
"0.6818725",
"0.67950886",
"0.67950886",
"0.6758479",
"0.6749186",
"0.67303383",
"0.671553... | 0.5780537 | 82 |
Make the frame for the user interface. | private void makeFrame() {
frame = new JFrame(calc.getTitle());
JPanel contentPane = (JPanel) frame.getContentPane();
contentPane.setLayout(new BorderLayout(8, 8));
contentPane.setBorder(new EmptyBorder(10, 10, 10, 10));
display = new JTextField();
display.setEditable(false);
contentPane.add(display, Bo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisib... | [
"0.77120394",
"0.7289795",
"0.72397554",
"0.71691644",
"0.7095132",
"0.70798427",
"0.7039356",
"0.7013041",
"0.6975748",
"0.6933419",
"0.69191873",
"0.69182926",
"0.6908414",
"0.68920046",
"0.6872682",
"0.68626475",
"0.6858297",
"0.6852797",
"0.68288016",
"0.6816411",
"0.6805... | 0.6743929 | 30 |
Add a button to the button panel. | protected void addButton(Container panel, String buttonText) {
JButton button = new JButton(buttonText);
button.addActionListener(this);
panel.add(button);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }",
"private void addButton()\n {\n JButton button = new JButton();\n bu... | [
"0.7940039",
"0.7797184",
"0.7622967",
"0.7481208",
"0.74220043",
"0.73528165",
"0.7249088",
"0.72074187",
"0.7203826",
"0.713491",
"0.70704496",
"0.7017589",
"0.6993338",
"0.6916304",
"0.6895682",
"0.6879013",
"0.68180573",
"0.68091244",
"0.6779763",
"0.6774182",
"0.67551756... | 0.74325466 | 4 |
An interface action has been performed. Find out what it was and handle it. | public void actionPerformed(ActionEvent event) {
if (event.getActionCommand().equals("HEX")) {
if (CalcEngine.HexaMode) {
CalcEngine.HexaMode = false;
} else {
CalcEngine.HexaMode = true;
}
hexToggle();
} else {
try {
CalcEngine.stringInput(event.getActionCommand());
} catch (StackUnde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"abstract public void performA... | [
"0.6466983",
"0.6466983",
"0.6466983",
"0.6315764",
"0.62947905",
"0.6291376",
"0.62909204",
"0.6268702",
"0.61953217",
"0.6162881",
"0.6138673",
"0.61137766",
"0.61011",
"0.6094395",
"0.6079277",
"0.6060605",
"0.602848",
"0.6019337",
"0.6016047",
"0.6016047",
"0.6016047",
... | 0.0 | -1 |
/ Creates a toggle for HexaMode | private void hexToggle() {
JPanel content = (JPanel) frame.getContentPane();
JPanel innerContent = (JPanel) content.getComponents()[1];
Component[] com = innerContent.getComponents();
for (Component button : com) {
if (button instanceof JButton) {
JButton hexButton = (JButton) button;
if (hexButton.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toggleEnable();",
"public Toggle (Boolean setting, String name){\r\n \t\t\tthis.setting = setting;\r\n \t\t\tthis.name = name;\r\n \t\t\ttrueName = \"enabled\"; //Default names.\r\n \t\t\tfalseName = \"disabled\";\r\n \t\t}",
"public void toHexMode(){\r\n for(int i=2;i<numbers.length;i++){\r... | [
"0.6219095",
"0.6063403",
"0.6017939",
"0.5995144",
"0.5988472",
"0.59478664",
"0.5939954",
"0.5898284",
"0.5800982",
"0.5779511",
"0.5779434",
"0.56869435",
"0.5663217",
"0.5606648",
"0.5541335",
"0.55020654",
"0.5492257",
"0.5402495",
"0.5382249",
"0.5361357",
"0.5355808",
... | 0.66746235 | 0 |
Update the interface display to show the current value of the calculator. | protected void redisplay() {
display.setText("" + calc.getDisplayValue());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void update() {\n jTextField1.setText(mCalculator.getDisplay());\n }",
"protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }",
"public void update() {\n\n\t\tdisplay();\n\t}",
"public void displayCurrentValues() {\r\n curren... | [
"0.8419984",
"0.7915619",
"0.7036513",
"0.6841781",
"0.67001903",
"0.66915977",
"0.663101",
"0.65862924",
"0.6548088",
"0.65332824",
"0.65325975",
"0.64934796",
"0.6488891",
"0.6488677",
"0.6393093",
"0.6386485",
"0.6381857",
"0.6352632",
"0.63365227",
"0.6324087",
"0.6298212... | 0.805896 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.id | public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRecommendId() {\n return recommendId;\n }",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public void setRecommendId(Integer recommendId) {\n this.recommendId... | [
"0.68179333",
"0.5987353",
"0.5987353",
"0.5987353",
"0.5987353",
"0.5987353",
"0.5894158",
"0.58603024",
"0.58603024",
"0.58603024",
"0.58603024",
"0.5748062",
"0.57185435",
"0.5705393",
"0.5705393",
"0.56593907",
"0.56593907",
"0.56593907",
"0.5655056",
"0.5598506",
"0.5553... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.id | public void setId(Integer id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRecommendId(Integer recommendId) {\n this.recommendId = recommendId;\n }",
"public Integer getRecommendId() {\n return recommendId;\n }",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",... | [
"0.678404",
"0.6508946",
"0.59440684",
"0.59440684",
"0.59440684",
"0.59440684",
"0.59440684",
"0.5796197",
"0.573953",
"0.57178944",
"0.57178944",
"0.57178944",
"0.57178944",
"0.568868",
"0.5627931",
"0.5605439",
"0.5605439",
"0.5580662",
"0.5523654",
"0.5522375",
"0.5493163... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.company_id | public Long getCompanyId() {
return companyId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\... | [
"0.69952357",
"0.69952357",
"0.69952357",
"0.69952357",
"0.69952357",
"0.6982491",
"0.6982491",
"0.6982491",
"0.6982491",
"0.6979078",
"0.6979078",
"0.69738257",
"0.6939983",
"0.6806637",
"0.6806637",
"0.6806637",
"0.67330205",
"0.6723703",
"0.6714523",
"0.66748744",
"0.66748... | 0.6804942 | 16 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.company_id | public void setCompanyId(Long companyId) {
this.companyId = companyId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(Integer value) {\n this.companyId = value;\n ... | [
"0.723806",
"0.723806",
"0.723806",
"0.723806",
"0.723806",
"0.71739376",
"0.7081014",
"0.7081014",
"0.7081014",
"0.7081014",
"0.7049039",
"0.7022552",
"0.7022552",
"0.69752663",
"0.69721025",
"0.6846968",
"0.6846968",
"0.67464375",
"0.6744698",
"0.6676366",
"0.6671094",
"0... | 0.68465376 | 17 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.object_id | public Long getObjectId() {
return objectId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getObjectId(Object object) {\n int objectId = 0;\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n f.setAccessible(true);\n obje... | [
"0.63947767",
"0.60151494",
"0.60151494",
"0.60151494",
"0.58793473",
"0.57923657",
"0.5766779",
"0.5766779",
"0.5766779",
"0.5766779",
"0.5766779",
"0.5766779",
"0.5756512",
"0.5753453",
"0.57154065",
"0.5696883",
"0.5696883",
"0.5696883",
"0.5696883",
"0.5696883",
"0.569688... | 0.5056232 | 77 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.object_id | public void setObjectId(Long objectId) {
this.objectId = objectId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setObjId( String objId )\n {\n this.objId = objId;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ =... | [
"0.59993696",
"0.5892391",
"0.5892391",
"0.5892391",
"0.5892391",
"0.5892391",
"0.5892391",
"0.58702415",
"0.57341737",
"0.571133",
"0.5709747",
"0.5561492",
"0.5497234",
"0.54410136",
"0.5400082",
"0.5382002",
"0.53640515",
"0.5362707",
"0.5328958",
"0.53288823",
"0.5294994"... | 0.49122998 | 74 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.object_type | public Byte getObjectType() {
return objectType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getObjectTypeId();",
"@Override\n public Class<?> getObjectType() {\n return this.type;\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Class getObjectType()\n\t{\n\t\tObject obj = getObject();\n\t\... | [
"0.6184347",
"0.6002278",
"0.5887912",
"0.58752203",
"0.5869821",
"0.58655214",
"0.5773421",
"0.57376385",
"0.5720462",
"0.57190263",
"0.5714449",
"0.5662201",
"0.564225",
"0.56359655",
"0.5634986",
"0.5625279",
"0.5561041",
"0.5558718",
"0.5554838",
"0.5537756",
"0.5535456",... | 0.55622435 | 16 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.object_type | public void setObjectType(Byte objectType) {
this.objectType = objectType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setObjectType(String objectType);",
"@Override\n public void setObjectType(String type) {\n this.objectType = type;\n }",
"public void setType(String objectType)\n\t{\n\t\tthis.type = objectType;\n\t}",
"protected void addOrmTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescripto... | [
"0.61911",
"0.60450166",
"0.60242844",
"0.5907295",
"0.5743566",
"0.5730628",
"0.57201874",
"0.56818306",
"0.5641928",
"0.5567745",
"0.556031",
"0.55525476",
"0.5445717",
"0.5405121",
"0.539054",
"0.5387803",
"0.5363413",
"0.535357",
"0.5340851",
"0.53098553",
"0.53074944",
... | 0.5529307 | 12 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.position | public Integer getPosition() {
return position;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getRecommendPosition() {\n return recommendPosition;\n }",
"public int getPosition()\n {\n return getInt(\"Position\");\n }",
"public void setRecommendPosition(BigDecimal recommendPosition) {\n this.recommendPosition = recommendPosition;\n }",
"public Intege... | [
"0.6708772",
"0.6257722",
"0.60693675",
"0.58376914",
"0.5765101",
"0.57626677",
"0.5738417",
"0.57225466",
"0.56970555",
"0.5677516",
"0.56689143",
"0.56553805",
"0.5637952",
"0.563791",
"0.5633332",
"0.5613151",
"0.5613151",
"0.5613151",
"0.55894226",
"0.55830187",
"0.55763... | 0.5761422 | 6 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.position | public void setPosition(Integer position) {
this.position = position;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRecommendPosition(BigDecimal recommendPosition) {\n this.recommendPosition = recommendPosition;\n }",
"public void setPosition(Integer position);",
"public void setPosition(int position)\n {\n put(\"Position\", position);\n }",
"public BigDecimal getRecommendPosition() {... | [
"0.6993745",
"0.59610426",
"0.5941133",
"0.5833906",
"0.582794",
"0.5816658",
"0.57949585",
"0.579454",
"0.57565445",
"0.5742708",
"0.56564814",
"0.564058",
"0.564058",
"0.5616367",
"0.5606265",
"0.55938834",
"0.5570139",
"0.55647945",
"0.55647945",
"0.55647945",
"0.5549498",... | 0.5837993 | 3 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.create_time | public Date getCreateTime() {
return createTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getCreatetime() {\n return createtime;\n }",
"public String getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public String getCreateti... | [
"0.7190112",
"0.69430786",
"0.6938649",
"0.6938649",
"0.68888384",
"0.68888384",
"0.6845117",
"0.68082553",
"0.6802251",
"0.6802251",
"0.67920923",
"0.6775113",
"0.6775113",
"0.6775113",
"0.6767207",
"0.67568165",
"0.67443657",
"0.67443657",
"0.67443657",
"0.67443657",
"0.674... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.create_time | public void setCreateTime(Date createTime) {
this.createTime = createTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void set... | [
"0.7223736",
"0.7223736",
"0.6979298",
"0.6979298",
"0.6979298",
"0.69316345",
"0.69130576",
"0.69130576",
"0.69130576",
"0.69130576",
"0.69130576",
"0.69130576",
"0.69130576",
"0.69130576",
"0.68607694",
"0.67719966",
"0.6766541",
"0.6765385",
"0.6765385",
"0.6731332",
"0.66... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column t_company_recommend.update_time | public Date getUpdateTime() {
return updateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getUpdateDatetime() {\n return updateDatetime;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime... | [
"0.7216178",
"0.7167443",
"0.7167443",
"0.708995",
"0.708995",
"0.70618993",
"0.70534116",
"0.70534116",
"0.69397676",
"0.69346774",
"0.6882119",
"0.6882119",
"0.68064547",
"0.67782474",
"0.6773409",
"0.6743305",
"0.67099875",
"0.6689185",
"0.66362",
"0.6635864",
"0.6635864",... | 0.6486665 | 85 |
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_recommend.update_time | public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }",
"public void set... | [
"0.7364331",
"0.7364331",
"0.71463495",
"0.7106001",
"0.7106001",
"0.6908528",
"0.67999023",
"0.67999023",
"0.6785174",
"0.6661945",
"0.66595215",
"0.66494685",
"0.66494685",
"0.66494685",
"0.66494685",
"0.66303766",
"0.6588388",
"0.65741944",
"0.65515935",
"0.65515935",
"0.6... | 0.65825087 | 55 |
Class constructor for API > 21 | @TargetApi(Build.VERSION_CODES.LOLLIPOP)
public PageIndicatorLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
init();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Lollipop() {\r\n\t\t}",
"private NativeSupport() {\n\t}",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"private Instantiation(){}",
"public AndroidFactoryImpl() {\n\t\tsuper();\n\t}",
"private Consts(){\n //this prevents e... | [
"0.72039235",
"0.6812153",
"0.6744566",
"0.6528698",
"0.64797175",
"0.6452754",
"0.64214706",
"0.63388157",
"0.63118154",
"0.63051414",
"0.6245523",
"0.6223284",
"0.6211362",
"0.62103796",
"0.6203127",
"0.6180516",
"0.6177349",
"0.61640155",
"0.61620104",
"0.6158401",
"0.6158... | 0.0 | -1 |
Gets page indicator text view | public TextView getIndicator() {
return mIndicator;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPageText();",
"abstract TextView getTextView();",
"public String getTextOnPage()\n {\n return mainText.getText();\n }",
"protected void onPostExecute(String page) {\n textView.setText(page);\n }",
"int getPageNumber();",
"int getPage();",
"TextView getTitleView()... | [
"0.6874185",
"0.5909505",
"0.5769969",
"0.55137813",
"0.54589725",
"0.5437079",
"0.53901476",
"0.53325176",
"0.5329514",
"0.52740324",
"0.5256961",
"0.525664",
"0.5250561",
"0.5241829",
"0.52234155",
"0.5217567",
"0.5214308",
"0.5192259",
"0.51840293",
"0.51303774",
"0.512405... | 0.5957066 | 1 |
Gets the loading spinner | public ProgressBar getSpinner() {
return mSpinner;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LoadingStatus getLoadingStatus() {\n return loadingStatus;\n }",
"public int getLoadingStatus() {\n return loadingStatus;\n }",
"public ImageIcon getLoadingIcon() {\n\t\ttry {\n\t\t\treturn new ImageIcon(Image.class.getResource(\"/qu/master/blockchain/gui//resources/loading.gif\"));\... | [
"0.7048059",
"0.69482386",
"0.6926723",
"0.69063616",
"0.68899393",
"0.68442893",
"0.6757717",
"0.6635325",
"0.6598687",
"0.65766597",
"0.65573263",
"0.6505976",
"0.6502662",
"0.64828223",
"0.644524",
"0.6408703",
"0.6403608",
"0.6403608",
"0.6364775",
"0.6354566",
"0.6297625... | 0.74734044 | 0 |
Sets whether to auto adjust position when there is layout changes | public void setAutoAdjustPosition(boolean autoAdjust) {
mAutoAdjustPosition = autoAdjust;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAutoPosition(boolean autoPosition);",
"public void setAutoLayout(boolean autoLayout)\n\t{\n\t\tthis.autoLayout = autoLayout;\n\t}",
"void reconfigure() {\n computePosition(_primaryPlot.getScreenCoords(findCurrentCenterPoint()), false);\n }",
"public void onSetLayoutDirection() {\n ... | [
"0.7662329",
"0.6923025",
"0.63499045",
"0.6347243",
"0.6313916",
"0.62943435",
"0.62903064",
"0.623423",
"0.6226456",
"0.61544335",
"0.6071272",
"0.6063866",
"0.598293",
"0.5980306",
"0.5929699",
"0.5925255",
"0.58959186",
"0.58336115",
"0.5788696",
"0.57740265",
"0.57618636... | 0.7400873 | 1 |
Calculates the position of page indicator if it is going to adjust position automatically. | public int[] calculateAutoAdjustPosition() {
int[] result = new int[2];
if (mMainView.getLayoutParams() == null || !(mMainView.getLayoutParams() instanceof MarginLayoutParams)) {
return result;
}
// adjust position so it will align pdfviewctrl layout
measure(MeasureSp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean computeOffset() {\n\t\tif(mRoll != null){\n\t\t\tmRoll.onRoll(getCurrentPara());\n\t\t}\n\t\treturn mScroller.computeScrollOffset();\n\t}",
"@Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n float marginLefts = (position + po... | [
"0.6097318",
"0.5955377",
"0.5895611",
"0.589384",
"0.57849485",
"0.5760097",
"0.5741138",
"0.57374036",
"0.5706786",
"0.56591547",
"0.56475234",
"0.56462824",
"0.5634857",
"0.5630764",
"0.56124794",
"0.55842996",
"0.5573056",
"0.5562297",
"0.55622566",
"0.5561785",
"0.554938... | 0.6426289 | 0 |
Listener for PDFViewCtrl visibility change event | public interface OnPDFViewVisibilityChanged {
/**
* This method will be invoked when PDFViewCtrl visibility has changed
*
* @param prevVisibility previous PDFViewCtrl visibility
* @param currVisibility current PDFViewCtrl visibility
*/
void onPDFViewVisibilit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onPDFViewVisibilityChanged(int prevVisibility, int currVisibility);",
"void onControlVisibilityChange(Object object, boolean visible);",
"@Subscribe\n public void onViewChangedEvent(final ViewChangedEvent event) {\n if (event.getViewKey().equals(ViewKey.HEADER)) {\n log.trace(\"Saw a ViewChangedE... | [
"0.8466879",
"0.70005715",
"0.69210714",
"0.6564632",
"0.63866556",
"0.63823366",
"0.6340092",
"0.62977165",
"0.61996317",
"0.6099773",
"0.6098045",
"0.60739875",
"0.6053392",
"0.60298204",
"0.6008621",
"0.5968991",
"0.59547466",
"0.5935533",
"0.5925036",
"0.5914288",
"0.5862... | 0.8292154 | 1 |
This method will be invoked when PDFViewCtrl visibility has changed | void onPDFViewVisibilityChanged(int prevVisibility, int currVisibility); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnPDFViewVisibilityChanged {\n /**\n * This method will be invoked when PDFViewCtrl visibility has changed\n *\n * @param prevVisibility previous PDFViewCtrl visibility\n * @param currVisibility current PDFViewCtrl visibility\n */\n void onPDFV... | [
"0.80326563",
"0.68307817",
"0.68158543",
"0.6763593",
"0.6701492",
"0.66697276",
"0.6643166",
"0.65829587",
"0.6387817",
"0.63735974",
"0.6364383",
"0.63569355",
"0.62963295",
"0.6284036",
"0.6260267",
"0.6248277",
"0.6227019",
"0.62242997",
"0.62148154",
"0.6198576",
"0.619... | 0.8517467 | 0 |
TODO Autogenerated method stub | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
super.doGet(request, response);
doPost(request, response);
} | {
"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 |
We preserve the 'stableIndex' so that calls can be attributed to one host even across reshuffles | static PinUntilErrorNodeSelectionStrategyChannel of(
Optional<LimitedChannel> initialChannel,
DialogueNodeSelectionStrategy strategy,
List<LimitedChannel> channels,
DialoguePinuntilerrorMetrics metrics,
Random random,
Ticker ticker,
Str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void rehash() \n\t{\n\t\tnumKeys++;\n LinkedList<SpacePort<String, SpaceShipValet>>[] oldPort = chainedPortList;\n chainedPortList = new LinkedList[chainedPortList.length*2];\n\n for(int i = 0; i < oldPort.length; i++)\n {\n if(oldPort[i] != null && !oldPort[i].equal... | [
"0.5697894",
"0.5624492",
"0.5496296",
"0.54340935",
"0.5424244",
"0.53039056",
"0.5288327",
"0.5269549",
"0.52277386",
"0.52182907",
"0.5163292",
"0.5130579",
"0.5129206",
"0.51190406",
"0.51027656",
"0.50895613",
"0.5089032",
"0.5054672",
"0.5047961",
"0.50379896",
"0.50257... | 0.0 | -1 |
We specifically don't switch 429 responses to support transactional workflows where it is important for a large number of requests to all land on the same node, even if a couple of them get rate limited in the middle. | @Override
public void onSuccess(Response response) {
if (Responses.isServerErrorRange(response)
|| (Responses.isQosStatus(response) && !Responses.isTooManyRequests(response))) {
OptionalInt next = incrementHostIfNecessary(pin);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void requestRateLimited();",
"public void incrementActiveRequests() \n {\n ++requests;\n }",
"private synchronized int getNextRequestCode(){\r\n return currentRequestCode++;\r\n }",
"public static long getApiMaxInflightRequests() {\n return 5000L;\n }",
"public int getCountReques... | [
"0.5786817",
"0.5766637",
"0.5644317",
"0.5564209",
"0.5499861",
"0.5494812",
"0.5444402",
"0.52574944",
"0.5183944",
"0.5147976",
"0.5123521",
"0.5113365",
"0.5106784",
"0.50849164",
"0.50552374",
"0.50305283",
"0.5028631",
"0.50224185",
"0.5012869",
"0.49752995",
"0.4965685... | 0.0 | -1 |
If we have some reason to think the currentIndex is bad, we want to move to the next host. This is done with a compareAndSet to ensure that out of order responses which signal information about a previous host don't kick us off a good one. | private OptionalInt incrementHostIfNecessary(int pin) {
int nextIndex = (pin + 1) % nodeList.size();
boolean saved = currentPin.compareAndSet(pin, nextIndex);
return saved ? OptionalInt.of(nextIndex) : OptionalInt.empty(); // we've moved on already
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}",
"private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || current... | [
"0.6214779",
"0.6062746",
"0.59199834",
"0.5412903",
"0.52448934",
"0.5179153",
"0.5141887",
"0.5113796",
"0.50855356",
"0.5066376",
"0.50480455",
"0.5045059",
"0.50096875",
"0.4967164",
"0.49621424",
"0.4927192",
"0.49249882",
"0.49218944",
"0.49205887",
"0.49132928",
"0.489... | 0.5889371 | 3 |
Returns a new shuffled list, without mutating the input list (which may be immutable). | private static <T> ImmutableList<T> shuffleImmutableList(List<T> sourceList, Random random) {
List<T> mutableList = new ArrayList<>(sourceList);
Collections.shuffle(mutableList, random);
return ImmutableList.copyOf(mutableList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void shuffle(java.util.List arg0, java.util.Random arg1)\n { return; }",
"private static ArrayList<String> createShuffledDeck(ArrayList<String> originDeck) {\n\t\t// Make a copy of the originDeck, making sure we never change the originDeck\n\t\t// so we can always use it again to generate a ... | [
"0.6614739",
"0.65660584",
"0.6560417",
"0.6535085",
"0.6484433",
"0.64775956",
"0.6474545",
"0.6473149",
"0.64578164",
"0.64476407",
"0.64459914",
"0.64101464",
"0.6390531",
"0.6373922",
"0.6367781",
"0.6363213",
"0.63568753",
"0.6345229",
"0.63169885",
"0.6294249",
"0.62773... | 0.73229307 | 0 |
put the camera in a bad position | @Override
public void simpleInitApp() {
cam.setLocation(new Vector3f(-2.336393f, 11.91392f, -7.139601f));
cam.setRotation(new Quaternion(0.23602544f, 0.11321983f, -0.027698677f, 0.96473104f));
Material mat = new Material(assetManager,"Common/MatDefs/Light/Lighting.j3md");
mat.setFlo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void processCamera() {\n\t\tif (Mario.getX() > 300) {\n\t\t\tlevelCompound.move(-Mario.xVel, 0);\n\t\t\tPhysics.moveHitboxes(-Mario.xVel, 0);\n\t\t\tPhysics.moveEnemies(-Mario.xVel, 0);\n\t\t\tMario.setLocation(299, Mario.getY());\n\n\t\t\tlevelCompound.move(-3, 0);\n\t\t\tPhysics.moveHitboxes(-3, 0);\n\t\t... | [
"0.64793706",
"0.6385879",
"0.6347316",
"0.62918246",
"0.6221743",
"0.61876774",
"0.60630864",
"0.6046585",
"0.60401756",
"0.6009652",
"0.5973151",
"0.59573406",
"0.59368616",
"0.5922237",
"0.59194547",
"0.58759755",
"0.5875408",
"0.5855984",
"0.58511096",
"0.5827562",
"0.581... | 0.0 | -1 |
Scans the contents of the ZIP archive and populates the combo box. | public void scanZipFile() {
new SwingWorker<Void, String>() {
protected Void doInBackground() throws Exception {
ZipInputStream zin = new ZipInputStream(new FileInputStream(
zipname));
ZipEntry entry;
while ((entry = zin.getNextEntry()) != null) {
publish(entry.getName());
zin.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadZipFile(final String name) {\r\n\t\tfileCombo.setEnabled(false);\r\n\t\tfileText.setText(\"\");\r\n\t\tnew SwingWorker<Void, Void>() {\r\n\t\t\tprotected Void doInBackground() throws Exception {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tZipInputStream zin = new ZipInputStream(\r\n\t\t\t\t\t\t\tnew FileInputStr... | [
"0.68167526",
"0.5950626",
"0.57061696",
"0.5560422",
"0.55538577",
"0.5403483",
"0.5211471",
"0.5195684",
"0.51952106",
"0.5188248",
"0.5185015",
"0.5136056",
"0.5116724",
"0.5103213",
"0.5098314",
"0.50856686",
"0.50734156",
"0.5062823",
"0.50186676",
"0.5016373",
"0.501287... | 0.74152136 | 0 |
Loads a file from the ZIP archive into the text area | public void loadZipFile(final String name) {
fileCombo.setEnabled(false);
fileText.setText("");
new SwingWorker<Void, Void>() {
protected Void doInBackground() throws Exception {
try {
ZipInputStream zin = new ZipInputStream(
new FileInputStream(zipname));
ZipEntry entry;
/... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void decodeFile(InlineCssTextArea area, String name) {\n //checks if user has set a default directory\n String initialDir = \"\";\n if (SaveProperties.getPath() != null) {\n initialDir = SaveProperties.getPath();\n }\n File selectedFile;\n if (name == nul... | [
"0.59036225",
"0.58296096",
"0.57938695",
"0.57304543",
"0.5714483",
"0.5661321",
"0.56310093",
"0.5516618",
"0.54578453",
"0.5441189",
"0.53521216",
"0.5340722",
"0.5319838",
"0.53143555",
"0.529607",
"0.52940667",
"0.52751404",
"0.52004963",
"0.5176933",
"0.51694846",
"0.51... | 0.7689719 | 0 |
private constructor for singleton pattern | private ExampleSubsystem()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Singleton(){}",
"private Singleton()\n\t\t{\n\t\t}",
"private Singleton() {\n\t}",
"private Singleton() { }",
"private SingletonObject() {\n\n\t}",
"private Singleton(){\n }",
"private SingletonSample() {}",
"private SingletonSigar(){}",
"private LazySingleton(){}",
"private Instantiat... | [
"0.85439694",
"0.8541998",
"0.85217637",
"0.84979975",
"0.8401996",
"0.8252496",
"0.80485964",
"0.8003059",
"0.7978344",
"0.7873491",
"0.78097016",
"0.771452",
"0.77120113",
"0.76974905",
"0.7689763",
"0.768853",
"0.75913125",
"0.7542409",
"0.7521589",
"0.74739224",
"0.747392... | 0.0 | -1 |
===================================================================================== Public Methods ===================================================================================== | @Override
public void initDefaultCommand() {
// Set the default command for a subsystem here.
// setDefaultCommand(new MySpecialCommand());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tprotected void getExras() {\n... | [
"0.61833036",
"0.61277515",
"0.6067942",
"0.5951925",
"0.593585",
"0.58820736",
"0.5869487",
"0.5869487",
"0.5869487",
"0.5869487",
"0.5869487",
"0.5869487",
"0.5856861",
"0.58395684",
"0.58160895",
"0.5794771",
"0.57859266",
"0.57859266",
"0.5785857",
"0.5776638",
"0.5775704... | 0.0 | -1 |
===================================================================================== Special Methods for ISubsystem ===================================================================================== | @Override
public void updateLogData(LogDataBE logData)
{
//logData.AddData("Carriage: LimitSwitch", String.valueOf(get_isCubeInCarriage()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getSubsystem() {\n return subsystem;\n }",
"public PnuematicSubsystem() {\n\n }",
"public ChassisSubsystem() {\n \tleftMotor.setInverted(RobotMap.leftMotorInverted);\n \trightMotor.setInverted(RobotMap.rightMotorInverted);\n \tleftMiniCIM.setInverted(RobotMap.leftMiniCIMInverted)... | [
"0.7482866",
"0.744623",
"0.67540514",
"0.67340183",
"0.6705883",
"0.6572166",
"0.6419622",
"0.6385815",
"0.626615",
"0.621306",
"0.6100177",
"0.6081131",
"0.60775924",
"0.6058707",
"0.59685",
"0.5951337",
"0.5873599",
"0.5826585",
"0.580975",
"0.57918584",
"0.5732322",
"0.... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Comparator<? super K> comparator() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Returns the orientation of the specified ordered triple of points. Courtesy | private static double orientation(Point2d p, Point2d q, Point2d r) {
return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void orientation(double xOrientation, double yOrientation, double zOrientation);",
"public void orientation(Double ...coords);",
"public abstract double getOrientation();",
"private static int orientation(Coord p, Coord r, Coord q) \n { \n // See https://www.geeksforgeeks.org/orientation-3-ordered-poi... | [
"0.67613786",
"0.63015014",
"0.6017728",
"0.59122163",
"0.58396155",
"0.5693086",
"0.5681024",
"0.5631897",
"0.5499736",
"0.5498025",
"0.5470033",
"0.5464641",
"0.5463911",
"0.5413806",
"0.5373601",
"0.53727037",
"0.5301414",
"0.5258035",
"0.5257376",
"0.5222679",
"0.52120805... | 0.5572104 | 8 |
Returns the convex hull for the specified points. Courtesy | private static List<Point2d> createConvexHull(Point2d[] points) {
List<Point2d> hull = new ArrayList<>();
// Find the leftmost point
int leftmost = 0;
for (int i = 1; i < points.length; i++) {
if (points[i].x < points[leftmost].x) {
leftmost = i;
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Point2D.Float> getConvexHull(List<Point2D.Float> points)\n\t\t\tthrows IllegalArgumentException {\n\n\t\tList<Point2D.Float> sorted = new ArrayList<Point2D.Float>(\n\t\t\t\tgetSortedPointSet(points));\n\n\t\tif (sorted.size() < 3) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"can onl... | [
"0.7999104",
"0.799702",
"0.75788707",
"0.7341816",
"0.69155264",
"0.6427287",
"0.6242128",
"0.6240691",
"0.6211548",
"0.61728173",
"0.6145093",
"0.60901046",
"0.6072727",
"0.6026848",
"0.60071903",
"0.6002544",
"0.600172",
"0.5934915",
"0.5909108",
"0.5893299",
"0.58829963",... | 0.8188523 | 0 |
Project the three centers to the xz plane, create the convex hull of the resulting 8 vertices and compute its area with the Shoelace formula. | private static double computeArea(Point3d[] centers3d) {
assert centers3d.length == 3;
Point2d[] centers = new Point2d[] {
centers3d[0].projectOnY(),
centers3d[1].projectOnY(),
centers3d[2].projectOnY()
};
Point2d[] vertices = new Point2d[] {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static AlgebraicVector[] buildHull(Set<AlgebraicVector> points) throws Failure {\n if (points.size() < 3) {\n fail(\"At least three input points are required for a 2d convex hull.\\n\\n\" + points.size() + \" specified.\");\n }\n AlgebraicVector normal = AlgebraicVectors.getN... | [
"0.630383",
"0.5971842",
"0.580069",
"0.5650278",
"0.5597909",
"0.55904746",
"0.55815196",
"0.55289495",
"0.5432824",
"0.5385637",
"0.53590703",
"0.5329171",
"0.53197193",
"0.53052104",
"0.5288904",
"0.5171441",
"0.5144451",
"0.5127124",
"0.51098853",
"0.5101343",
"0.509302",... | 0.55289876 | 7 |
Binary search for a rotation angle along the specified axis to match the target area. 3D rotation formulas courtesy of | private static boolean searchRotationAngle(Point3d[] centers, int axis, double maxAngle, double targetArea) {
Point3d[] origCenters = new Point3d[3];
for (int i = 0; i < centers.length; i++) origCenters[i] = new Point3d(centers[i].x, centers[i].y, centers[i].z);
double from = 0;
double t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private float findRotation()\r\n\t{\r\n\t\t//conditionals for all quadrants and axis\r\n\t\tif(tarX > 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) ... | [
"0.633635",
"0.6255099",
"0.61803806",
"0.5948444",
"0.5926327",
"0.58845276",
"0.5874991",
"0.58599925",
"0.56805915",
"0.56209683",
"0.5607218",
"0.55947536",
"0.5588407",
"0.55751944",
"0.55344343",
"0.5529965",
"0.5480663",
"0.543501",
"0.5430669",
"0.53412485",
"0.531923... | 0.6905054 | 0 |
Binary search for a rotation angle that matches the target area. | private static Point3d[] solve(double targetArea) {
// First rotate along the z axis, from 0 degrees to 45 degrees for areas from 1 to sqrt(2)
Point3d[] centers = new Point3d[] {
new Point3d(0.5, 0, 0),
new Point3d(0, 0.5, 0),
new Point3d(0, 0, 0.5)
};
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean searchRotationAngle(Point3d[] centers, int axis, double maxAngle, double targetArea) {\n Point3d[] origCenters = new Point3d[3];\n for (int i = 0; i < centers.length; i++) origCenters[i] = new Point3d(centers[i].x, centers[i].y, centers[i].z);\n double from = 0;\n ... | [
"0.6185388",
"0.61131847",
"0.60918283",
"0.5905936",
"0.58982897",
"0.5739034",
"0.5704122",
"0.56761205",
"0.5625069",
"0.55626166",
"0.5464072",
"0.538875",
"0.53876275",
"0.53764343",
"0.53667635",
"0.5266698",
"0.5250641",
"0.5241136",
"0.5233075",
"0.52249634",
"0.51960... | 0.523533 | 18 |
Checks object string for Anagrams. Just simply sorts the strings and see if they line up equally. Object string cannot be the same exact word in the list. | public List<String> match(List<String> someList)
{
char[] objectWord = this.aWord.toCharArray();
Arrays.sort(objectWord);
List<String> answer = new ArrayList<>();
HashMap<String, Integer> mapForEachWord = new HashMap<>();
for (int i = 0; i < someList.size(); i++)
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }",
"public boolean checkForAnagrams(String inp) {\n return (new StringBuffer(inp).reverse(... | [
"0.72561175",
"0.7071511",
"0.70550036",
"0.70359755",
"0.69607365",
"0.6919469",
"0.6840697",
"0.67159563",
"0.67069215",
"0.66962945",
"0.6657493",
"0.66379195",
"0.65884316",
"0.65624404",
"0.6528833",
"0.6499701",
"0.64860344",
"0.64645404",
"0.64283526",
"0.6420888",
"0.... | 0.0 | -1 |
Effects: returns true if the item is already in the list | public boolean checkDuplicates(String value) {
for (Entry i : listentries) {
if (i.getName().equals(value))
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean itemListContains(Item item){\r\n\t\treturn items.containsKey(item.getItemIdentifier());\r\n\t}",
"public abstract boolean contains(Object item);",
"@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}",
"@Override\n public boolean hasDuplicates() {\n ArrayList<String> ite... | [
"0.74427384",
"0.7158621",
"0.71474624",
"0.7051927",
"0.69931877",
"0.695372",
"0.68736464",
"0.6869782",
"0.6826087",
"0.67482716",
"0.6710152",
"0.67070144",
"0.6702035",
"0.66985357",
"0.6674204",
"0.6651045",
"0.66314536",
"0.6626485",
"0.66072696",
"0.6586212",
"0.65781... | 0.0 | -1 |
REQUIRES: Non empty list Modifies: this Effects: changes a user specified entry to done Requires: Non empty list Effects: returns the size of the list of entries that are done | public int numdone(String s) {
Integer i = 0;
for (Entry entry : listentries) {
if (entry.getStatus().equals(s)) {
ArrayList<Entry> checkoff = new ArrayList<>();
checkoff.add(entry);
return (checkoff.size());
}
}
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size()\n\t{\n\t\tint size = 0;\n\t\t\n\t\tfor (LinkedList<Entry> list : entries)\n\t\t\tsize += (list == null) ? 0 : list.size();\n\t\t\n\t\treturn size;\n\t}",
"public Integer size() { return this.entries.length(); }",
"public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(tem... | [
"0.6866654",
"0.6658984",
"0.6573051",
"0.64954305",
"0.6476712",
"0.6434214",
"0.6433143",
"0.6429948",
"0.6423148",
"0.6419991",
"0.63909876",
"0.63775986",
"0.6361024",
"0.6336207",
"0.63345337",
"0.6316536",
"0.63155425",
"0.6262731",
"0.6262731",
"0.6262107",
"0.6254905"... | 0.6740683 | 1 |
Effects: Prints all entries in the list | public void print() {
for (Entry entry : listentries) {
System.out.println("These are the tasks currently on your lists:");
System.out.println("Name of Task:" + entry.getName());
System.out.println("Status:" + entry.getStatus());
System.out.println("Due Date:" + e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void print()\n {\n for (int i=0; i<list.length; i++)\n System.out.println(i + \":\\t\" + list[i]);\n }",
"public void print() {\r\n\t\tSystem.out.print(\"|\");\r\n\t\t//loop executes until all elements of the list are printed\r\n\t\tfor (int i=0;i<capacity;i++) {\r\n\t\t\tSystem.out.print(... | [
"0.7749627",
"0.77471757",
"0.76733005",
"0.7566521",
"0.7565239",
"0.7532118",
"0.74940044",
"0.747963",
"0.74308175",
"0.739522",
"0.7271525",
"0.7225578",
"0.7214751",
"0.7196004",
"0.71949685",
"0.715989",
"0.71586007",
"0.71428996",
"0.71306705",
"0.7110531",
"0.71029764... | 0.78692615 | 0 |
see above: acrelated permissions should not be required on ROOT_PATH (workaround for OAK5947) | @Test
public void testSetPolicy2() throws Exception {
setupPermission(PathUtils.ROOT_PATH, getTestUser().getPrincipal(), true, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);
setupPermission(null, getTestUser().getPrincipal(), true, JCR_READ_ACCESS_CONTROL, JCR_MODIFY_ACCESS_CONTROL);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void createRootDir() {\n }",
"@Test\n public void testListStatusACL() throws IOException {\n String testfilename = \"testFileACL\";\n String childDirectoryName = \"testDirectoryACL\";\n TEST_DIR.mkdirs();\n File infile = new File(TEST_DIR, testfilename);\n final byte[]... | [
"0.6487713",
"0.6196023",
"0.6117543",
"0.6043126",
"0.60137385",
"0.60059327",
"0.59608674",
"0.5912976",
"0.57953477",
"0.5726656",
"0.56849605",
"0.56815255",
"0.56087464",
"0.5553557",
"0.55283904",
"0.55071735",
"0.5504285",
"0.5467762",
"0.5429361",
"0.5418648",
"0.5415... | 0.5305145 | 34 |
int type = card.type; | public void getCard(Card card, Board board){
card.action(this, board);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getCardtype() {\n return cardtype;\n }",
"public Byte getCardType() {\r\n return cardType;\r\n }",
"public String getCardType() {\n return cardType;\n }",
"public CardTypes getType() {\n\t\treturn type;\n\t}",
"public int getCardType() {\n\t\t\treturn cardType;\... | [
"0.8159917",
"0.7683716",
"0.7373154",
"0.73135793",
"0.7189804",
"0.7156087",
"0.71125054",
"0.7032996",
"0.6985151",
"0.69846284",
"0.68849945",
"0.67751414",
"0.67285293",
"0.66595984",
"0.66475505",
"0.6637391",
"0.6632512",
"0.65910167",
"0.6542311",
"0.6539196",
"0.6512... | 0.0 | -1 |
these two methods set the balance. | public void reduceBalance(int amount){
this.money.subtractMoney(amount);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBalance(){\n balance.setBalance();\n }",
"public void setBalance(double bal){\n balance = bal;\r\n }",
"private void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance(double balance)\n {\n startingBalance = balance;\n }",
... | [
"0.8530299",
"0.8498358",
"0.8332212",
"0.81416124",
"0.80889547",
"0.8003441",
"0.79636604",
"0.7927131",
"0.78597325",
"0.7828332",
"0.7821337",
"0.7803835",
"0.7768165",
"0.7768165",
"0.77473253",
"0.7744634",
"0.77440774",
"0.77440774",
"0.77099264",
"0.770013",
"0.762684... | 0.0 | -1 |
this method rolls the dices and moves the piece of player based on result | public int move(Piece piece, int dices){
int step = this.roll(dices); //and returns the new position of piece of player.
this.piece.position += step;
this.piece.position = (this.piece.position%40);
System.out.println(this.name + " is now located in Square " + this.piece.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void otherRolls() {\n\t\t// program tells that player should select dices to re-roll.\n\t\tdisplay.printMessage(\"Select the dice you wish to re-roll and click \"\n\t\t\t\t+ '\\\"' + \"Roll Again\" + '\\\"');\n\t\t// program will wait until player clicks \"roll again\" button.\n\t\tdisplay.waitForPlayerToS... | [
"0.70380557",
"0.69892",
"0.6944864",
"0.6853904",
"0.68521756",
"0.6768379",
"0.67581016",
"0.67453235",
"0.6723913",
"0.66958183",
"0.66728103",
"0.66306156",
"0.6626112",
"0.66057885",
"0.6572408",
"0.6570638",
"0.6544046",
"0.64891744",
"0.6476945",
"0.6471574",
"0.643410... | 0.7119382 | 0 |
this method rolls the dices and returns the sum of them. | public int roll(int dices){
int faces[] = new int[dices];
int total = 0;
Dice dice = new Dice();
for(int i = 0; i < dices; i++){
faces[i] = (dice.rand.nextInt(6) + 1);
}
for(int i = 0; i < faces.length-1; i++){
if(faces[i] != faces[i+1]){
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int roll() \r\n {\r\n \r\n die1FaceValue = die1.roll();\r\n die2FaceValue = die2.roll();\r\n \r\n diceTotal = die1FaceValue + die2FaceValue;\r\n \r\n return diceTotal;\r\n }",
"public void rollAllDices() {\n for(int i = 0; i < dicesList.size(); i++) {\n ... | [
"0.7620617",
"0.729645",
"0.728228",
"0.71463865",
"0.7141321",
"0.7066133",
"0.7006131",
"0.699906",
"0.6992819",
"0.6966422",
"0.6909282",
"0.683792",
"0.67473686",
"0.67312753",
"0.6707857",
"0.66484505",
"0.66428345",
"0.66349244",
"0.6624151",
"0.66228527",
"0.6602322",
... | 0.785613 | 0 |
strings for original note | @Test
@Order(4)
public void noteTest() throws InterruptedException {
String noteTitle = "Get groceries";
String noteDescription = "Need milk and eggs";
// strings for updated note
String newTitle = "Fight crime";
String newDescription = "Karate is useful";
// get to login
driver.get(baseUrl + "/login");... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String notes();",
"java.lang.String getNotes();",
"java.lang.String getNotes();",
"String note();",
"String getNotes();",
"public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n ... | [
"0.7660845",
"0.7383761",
"0.7383761",
"0.7213935",
"0.69301736",
"0.691174",
"0.6824819",
"0.6796001",
"0.6717753",
"0.6711777",
"0.66882604",
"0.6640102",
"0.66075414",
"0.65373486",
"0.65123904",
"0.64608866",
"0.64608866",
"0.6383997",
"0.6376494",
"0.6376494",
"0.6329486... | 0.0 | -1 |
credentials to be inserted and tested | @Test
@Order(5)
public void credentialsTest() {
String url = "http://twitter.com/";
String username = "meepz";
String password = "spooki520boi";
// credentials to be updated
String newUrl = "clubpenguin.com";
String newUsername = "fightrOfDaNightMan";
String newPassword = "milkSteak";
// signup
driv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeAll\n\tpublic void setup() throws CredentialAlreadyExistsException {\n \t\tLocalDate now_ld = LocalDate.now();\n \t\tuser1 = new User(\"testuser1@email.com\", \"FirstName1\", \"LastName1\", now_ld, null);\n \t\tuser2 = new User(\"testuser2@email.com\", \"FirstName2\",\"LastName2\", now_ld, null);\n \t\t\n \... | [
"0.6726688",
"0.63382465",
"0.63274217",
"0.62923837",
"0.6285984",
"0.6080936",
"0.6058023",
"0.59987557",
"0.59800833",
"0.5950779",
"0.5948388",
"0.5947514",
"0.5934658",
"0.5926641",
"0.589653",
"0.58913016",
"0.5887893",
"0.58795017",
"0.58628523",
"0.5858153",
"0.584785... | 0.65386695 | 1 |
Call the owner of the gym | @Override
public void onClick(DialogInterface dialog, int which) {
Intent callOnwerIntent = new Intent(Intent.ACTION_DIAL,
Uri.parse("tel:"+gym.getOwnerMobile().toString()));
startActivity(callOnwerIntent);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void callHouseOwner() {\n\t\tSystem.out.println(\"联系房东\");\n\t}",
"public String callPlayer() {\n\t\treturn \"OVER HERE!!\";\n\t}",
"@Override\r\n\tpublic void setTheOwner(Player owner) {\n\t\t\r\n\t}",
"public void setOwner(Player player) {\n owner = player;\n }",
"boolean goHome(IGenet... | [
"0.65683025",
"0.5980802",
"0.58605576",
"0.5832477",
"0.58300483",
"0.57662714",
"0.5656795",
"0.56299865",
"0.56147516",
"0.5601204",
"0.5599524",
"0.5590864",
"0.5568423",
"0.55412185",
"0.554026",
"0.55393916",
"0.5538281",
"0.5533752",
"0.552096",
"0.54990613",
"0.546136... | 0.0 | -1 |
Dismiss the dialog box | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dismiss() {\r\n\t\tmWindow.dismiss();\r\n\t}",
"@Override\n public void onDismiss(DialogInterface dialog) {\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onDismiss(D... | [
"0.79436034",
"0.79428947",
"0.79237866",
"0.7920726",
"0.7920726",
"0.7908979",
"0.786646",
"0.78418374",
"0.783633",
"0.78264034",
"0.78264034",
"0.78258586",
"0.78150594",
"0.77982855",
"0.77958554",
"0.77958554",
"0.77958554",
"0.7795325",
"0.7789191",
"0.7781171",
"0.776... | 0.76613224 | 72 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_detail_dialog, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7249559",
"0.7204226",
"0.71981144",
"0.7180145",
"0.7110589",
"0.70431244",
"0.7041351",
"0.70150685",
"0.70118093",
"0.69832",
"0.6947845",
"0.69419056",
"0.6937257",
"0.6920975",
"0.6920975",
"0.68938893",
"0.68867826",
"0.6878929",
"0.6877472",
"0.68656766",
"0.6865676... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79046476",
"0.7805623",
"0.7766615",
"0.77274555",
"0.7632045",
"0.76220745",
"0.75848633",
"0.7531134",
"0.74884325",
"0.74575055",
"0.74575055",
"0.74388313",
"0.74218154",
"0.7403308",
"0.7391667",
"0.7386889",
"0.73792624",
"0.73705244",
"0.7362704",
"0.7355958",
"0.73... | 0.0 | -1 |
/setProperty getProperty of Properties | public static void main(String[] args) {
Properties props = new Properties();
props.setProperty("one", "Mot");
props.setProperty("school", "Truong Hoc");
props.setProperty("university", "Truong Dai Hoc");
props.setProperty("love", "Tinh Yeu");
props.setProperty("education", "Giao Duc");
String mean1 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"public void setProperty(String property) {\n }",
"PropertiesTask setProperty( String key, String value );",
"Property getProperty();",
"Property getProperty();",
"public void setProperty(Properties properties) {\r\n this.properti... | [
"0.7959971",
"0.7601533",
"0.749231",
"0.73415285",
"0.73415285",
"0.7282543",
"0.7175118",
"0.7147031",
"0.7103762",
"0.7060796",
"0.70065725",
"0.69958115",
"0.69805187",
"0.690755",
"0.6894582",
"0.68712425",
"0.68591493",
"0.6834786",
"0.67905027",
"0.67905027",
"0.679050... | 0.0 | -1 |
Gets the date value for this ForecastDayInfo. | public java.util.Calendar getDate() {
return date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getDayDate() {\n return (Number) getAttributeInternal(DAYDATE);\n }",
"public Date getDate(){\n\t\treturn day.date;\n\t}",
"public Date getDay() {\r\n return day;\r\n }",
"public Date getDay() {\r\n return day;\r\n }",
"public Date getDay() {\r\n return da... | [
"0.73801005",
"0.6871333",
"0.67295533",
"0.67295533",
"0.67295533",
"0.67295533",
"0.67295533",
"0.6712469",
"0.66618407",
"0.6583525",
"0.65774685",
"0.6542826",
"0.6498969",
"0.6401733",
"0.6385238",
"0.63330454",
"0.63330454",
"0.62140423",
"0.6183526",
"0.6180505",
"0.61... | 0.0 | -1 |
Sets the date value for this ForecastDayInfo. | public void setDate(java.util.Calendar date) {
this.date = date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDayDate(Number value) {\n setAttributeInternal(DAYDATE, value);\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"p... | [
"0.7376086",
"0.684865",
"0.684865",
"0.684865",
"0.684865",
"0.684865",
"0.6804704",
"0.68018013",
"0.6665542",
"0.6665542",
"0.6665542",
"0.6614127",
"0.66108096",
"0.660753",
"0.6605846",
"0.66051394",
"0.6591596",
"0.65558845",
"0.65501946",
"0.65501946",
"0.65501946",
... | 0.6393532 | 38 |
Gets the condition value for this ForecastDayInfo. | public WeatherCondition getCondition() {
return condition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Condition getCondition(){\n\t\treturn this.cond;\n\t}",
"public int getCondition() {\r\n\t\tif(this.condition == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.condition.ordinal();\r\n\t}",
"int getConditionValue();",
"public String getCondition() {\n\t\treturn condition;\n\t}",
"public Stri... | [
"0.64985245",
"0.63706046",
"0.6350418",
"0.6264132",
"0.6257159",
"0.6249322",
"0.619914",
"0.6197137",
"0.6173931",
"0.6090051",
"0.6083089",
"0.60740066",
"0.6051935",
"0.6039642",
"0.6033136",
"0.59799534",
"0.5966631",
"0.5881793",
"0.58625054",
"0.5705077",
"0.5692617",... | 0.6868149 | 0 |
Sets the condition value for this ForecastDayInfo. | public void setCondition(WeatherCondition condition) {
this.condition = condition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCondition(ExpressionNode condition);",
"public void setCondition(Expression condition)\n {\n this.condition = condition;\n }",
"public void set( final Condition condition )\n {\n m_condition = condition;\n }",
"@Override\n\tpublic void setCondition(VehicleCondition condition)... | [
"0.6222342",
"0.62221247",
"0.59968674",
"0.5886695",
"0.573757",
"0.56836253",
"0.5622574",
"0.55361086",
"0.54939324",
"0.5365833",
"0.532321",
"0.5304247",
"0.5274105",
"0.5249155",
"0.5199893",
"0.51981",
"0.5195832",
"0.51398605",
"0.5123618",
"0.500712",
"0.5006106",
... | 0.67027557 | 0 |
Gets the low value for this ForecastDayInfo. | public java.math.BigDecimal getLow() {
return low;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getLow() {\n return low;\n }",
"public final int getLow() {\n\treturn(this.low);\n }",
"public int getLow() {\n\t\t\treturn low;\n\t\t}",
"public int getLow() {\n\t\treturn low;\n\t}",
"public double getLow() {return low;}",
"public String getLow() {\n return this.low.toStri... | [
"0.69288486",
"0.6912642",
"0.6768653",
"0.67003393",
"0.6676053",
"0.66663957",
"0.65387046",
"0.63119256",
"0.62819064",
"0.60880667",
"0.59930193",
"0.5874134",
"0.5806832",
"0.57949597",
"0.5793499",
"0.57912606",
"0.5787831",
"0.57737404",
"0.57240885",
"0.57040167",
"0.... | 0.67556936 | 3 |
Sets the low value for this ForecastDayInfo. | public void setLow(java.math.BigDecimal low) {
this.low = low;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLow(double value) {\n this.low = value;\n }",
"public void setLow(int low) {\n\t\tthis.low = low;\n\t}",
"public void setLow(double value){low = value;}",
"public void setLow(int L)\t\n\t{\t//start of setLow method\n\t\tLOW_NUM = L;\n\t}",
"public void setLow(String low){\n ... | [
"0.7148751",
"0.6736627",
"0.6490645",
"0.61626613",
"0.599072",
"0.5897655",
"0.5790681",
"0.57774615",
"0.57197404",
"0.57101315",
"0.5708073",
"0.5686456",
"0.56785023",
"0.5644031",
"0.56312805",
"0.5616872",
"0.55625206",
"0.55284894",
"0.54517263",
"0.5440639",
"0.53732... | 0.6397327 | 3 |
Gets the lowUnit value for this ForecastDayInfo. | public TempUnit getLowUnit() {
return lowUnit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLow() {\n return this.low.toString();\n }",
"public double getLow() {\n return low;\n }",
"public int getLowUnits()\n {\n return m_cPruneUnits;\n }",
"public TempUnit getHighUnit() {\n return highUnit;\n }",
"public java.math.BigDecimal getLow()... | [
"0.6646836",
"0.66150594",
"0.65692025",
"0.6497278",
"0.6475699",
"0.63656145",
"0.6301047",
"0.6273745",
"0.62438965",
"0.6218236",
"0.6208168",
"0.6118967",
"0.5913328",
"0.5891801",
"0.58319634",
"0.58166194",
"0.5804318",
"0.5794097",
"0.5792639",
"0.57472104",
"0.563882... | 0.7550638 | 0 |
Sets the lowUnit value for this ForecastDayInfo. | public void setLowUnit(TempUnit lowUnit) {
this.lowUnit = lowUnit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHighUnit(TempUnit highUnit) {\n this.highUnit = highUnit;\n }",
"public TempUnit getLowUnit() {\n return lowUnit;\n }",
"public void setLow(double value) {\n this.low = value;\n }",
"public void setLow(java.math.BigDecimal low) {\n this.low = low;\n }",
... | [
"0.66394186",
"0.6637465",
"0.64773524",
"0.6290531",
"0.61898124",
"0.61241764",
"0.60356003",
"0.5729155",
"0.57213193",
"0.56870276",
"0.55099076",
"0.541361",
"0.53034157",
"0.53030765",
"0.52862066",
"0.52833456",
"0.52798253",
"0.52794623",
"0.52634734",
"0.524477",
"0.... | 0.77703774 | 0 |
Gets the high value for this ForecastDayInfo. | public java.math.BigDecimal getHigh() {
return high;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getHigh() {\n return high;\n }",
"public final int getHigh() {\n\treturn(this.high);\n }",
"public int getHigh() {\n\t\t\treturn high;\n\t\t}",
"public int getHigh() {\n\t\treturn high;\n\t}",
"public String getHigh() {\n return this.high.toString();\n }",
"public double ge... | [
"0.70533735",
"0.69255435",
"0.6827428",
"0.67887247",
"0.67875415",
"0.65844715",
"0.65593994",
"0.64961135",
"0.63696545",
"0.6256643",
"0.62500364",
"0.61451864",
"0.60064816",
"0.5901117",
"0.58532983",
"0.5803395",
"0.5793778",
"0.57880527",
"0.574139",
"0.57306355",
"0.... | 0.6991441 | 1 |
Sets the high value for this ForecastDayInfo. | public void setHigh(java.math.BigDecimal high) {
this.high = high;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHigh(double value) {\n this.high = value;\n }",
"public void setHigh(int high) {\n\t\tthis.high = high;\n\t}",
"public void setHigh(double value){high = value;}",
"public void setHigh(String high){\n range.setHigh(high);\n }",
"public void setHigh(int H)\t\n\t{\t//start o... | [
"0.731499",
"0.69552076",
"0.6700077",
"0.6465704",
"0.64069897",
"0.5937831",
"0.5889639",
"0.5776952",
"0.5736732",
"0.56972045",
"0.5692405",
"0.5633257",
"0.56254077",
"0.55363125",
"0.5534392",
"0.55239606",
"0.5481163",
"0.54776615",
"0.5476855",
"0.5467047",
"0.5447795... | 0.6776139 | 2 |
Gets the highUnit value for this ForecastDayInfo. | public TempUnit getHighUnit() {
return highUnit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUnitPriceHigh() {\n return this.UnitPriceHigh;\n }",
"public int getHighUnits()\n {\n return m_cMaxUnits;\n }",
"public String getHigh() {\n return this.high.toString();\n }",
"public double getHigh() {\n return high;\n }",
"public java.math.Big... | [
"0.6873439",
"0.6642057",
"0.66034627",
"0.6514822",
"0.64357823",
"0.63881296",
"0.63099784",
"0.62846065",
"0.6146178",
"0.6136969",
"0.61160815",
"0.60969937",
"0.60252404",
"0.6000945",
"0.5997377",
"0.5846446",
"0.5822097",
"0.5789584",
"0.5765885",
"0.57569176",
"0.5718... | 0.7597113 | 0 |
Sets the highUnit value for this ForecastDayInfo. | public void setHighUnit(TempUnit highUnit) {
this.highUnit = highUnit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUnitPriceHigh(String UnitPriceHigh) {\n this.UnitPriceHigh = UnitPriceHigh;\n }",
"public void setHigh(double value) {\n this.high = value;\n }",
"public TempUnit getHighUnit() {\n return highUnit;\n }",
"public void setHigh(String high){\n range.setHigh(hi... | [
"0.6881723",
"0.64292985",
"0.6404249",
"0.6331178",
"0.6316804",
"0.6280841",
"0.6271456",
"0.6046653",
"0.5735637",
"0.5729596",
"0.55752504",
"0.55372727",
"0.5432994",
"0.5376561",
"0.5297009",
"0.5252235",
"0.5231778",
"0.5230964",
"0.5206526",
"0.5194644",
"0.51930314",... | 0.7796182 | 0 |
Gets the phrase value for this ForecastDayInfo. | public String getPhrase() {
return phrase;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public io.dstore.values.StringValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }",
"public io.dstore.values.StringValue getDay... | [
"0.63093716",
"0.6149799",
"0.60816216",
"0.60082227",
"0.5860466",
"0.585341",
"0.58420897",
"0.58154863",
"0.5606199",
"0.5601221",
"0.559426",
"0.5589279",
"0.55407655",
"0.5507136",
"0.5507136",
"0.5496677",
"0.54872173",
"0.5465105",
"0.5464646",
"0.5454381",
"0.53204733... | 0.5835778 | 7 |
Sets the phrase value for this ForecastDayInfo. | public void setPhrase(String phrase) {
this.phrase = phrase;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setDay(io.dstore.values.StringValue value) {\n if (dayBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n day_ = value;\n onChanged();\n } else {\n dayBuilder_.setMessage(value);\n ... | [
"0.5700109",
"0.54533535",
"0.5409282",
"0.5391648",
"0.53602934",
"0.5278477",
"0.51292974",
"0.50592357",
"0.5015755",
"0.5009604",
"0.4984112",
"0.4967658",
"0.49606335",
"0.49606335",
"0.49586362",
"0.49399033",
"0.49222553",
"0.49222553",
"0.49222553",
"0.49051705",
"0.4... | 0.63908637 | 0 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type)... | [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",... | 0.0 | -1 |
This function detects all the sentences that are present in the input text based on Capitalization of words. | public ArrayList<Sentence> sentenceDetector(BreakIterator bi,
String text) {
ArrayList<Sentence> sentences = new ArrayList<Sentence>();
bi.setText(text);
int lastIndex = bi.first();
while (lastIndex != BreakIterator.DONE) {
int firstIndex = lastIndex;
lastIndex = bi.next();
if (lastInde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getAllSentences(String input) {\n List<String> output = new ArrayList();\n // create an empty Annotation just with the given text\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n // All the sentences in this document\n ... | [
"0.6483987",
"0.64814967",
"0.6447754",
"0.64288735",
"0.6331939",
"0.6311955",
"0.6253976",
"0.6115077",
"0.6099947",
"0.6085342",
"0.6073895",
"0.6050363",
"0.59663254",
"0.5939897",
"0.5902931",
"0.58798546",
"0.5819634",
"0.5781347",
"0.5752038",
"0.5730723",
"0.57258594"... | 0.6410676 | 4 |
This function recognizes all Named Entities present in each sentence comparing with the named entities list(NER.txt). | public void processNER(ArrayList<Sentence> listofSentences,
String path) throws FileNotFoundException {
Scanner sc = new Scanner(new File(path));
while (sc.hasNext()) {
String properNoun = sc.nextLine();
for (Sentence sentence : listofSentences) {
Map<String, Integer> tokenMap = sentence.token... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void parseEntities() {\n // See: https://github.com/twitter/twitter-text/tree/master/java\n entities.addExtractedEntities(TweetEntityAbstract.entitiesExtractor.extractCashtagsWithIndices(getText()));\n entities.addExtractedEntities(TweetEntityAbstract.entitiesExtractor.extractHashtagsW... | [
"0.6542218",
"0.65076256",
"0.615281",
"0.61223346",
"0.6088909",
"0.59227693",
"0.58138764",
"0.57853985",
"0.566433",
"0.5657016",
"0.5625843",
"0.5601119",
"0.55779254",
"0.5556276",
"0.5555386",
"0.54968804",
"0.54887503",
"0.54182076",
"0.5406389",
"0.5396856",
"0.535722... | 0.7048185 | 0 |
This function prints all the sentences,tokens in the sentences and named entities in the sentences. | public void printLists(ArrayList<Sentence> listofSentences) {
for (Sentence sentence : listofSentences) {
System.out
.println("----------------------------------------------------");
System.out.println("Program 1: Identified Sentences"
+ sentence.sentence);
System.out.println("Program 1: Ident... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static private void printSentenceTokens( final String documentId, final Iterable<String> tokenizedSentences ) {\n System.out.println( \"=========================== \" + documentId + \" ===========================\" );\n for ( String tokenizedSentence : tokenizedSentences ) {\n System.out.prin... | [
"0.7171602",
"0.65769994",
"0.6526442",
"0.6368096",
"0.61527157",
"0.58954597",
"0.5768429",
"0.57364446",
"0.5733557",
"0.5666427",
"0.56084394",
"0.55933297",
"0.55860627",
"0.5583607",
"0.55759585",
"0.55728626",
"0.5519069",
"0.5510952",
"0.549863",
"0.5484161",
"0.54710... | 0.71326756 | 1 |
An anonymous inner class implementation of FilenameFilter | public static void main(String[] args) {
File directory1=new File("./src/main/java");
String[] fileNames = directory1.list(new java.io.FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
return name.endsWith(".java");
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected FileExtensionFilter()\n\t{\n\t}",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"public abstract String filterFileName(final String fileName);",
"File(String fileName)\n {\n this.fileNameToFilterBy = fileName;\n }",
"public FileFilter(String expression) {\n thi... | [
"0.783007",
"0.7560401",
"0.7368576",
"0.71568286",
"0.7031571",
"0.6964623",
"0.68685347",
"0.67998916",
"0.6692023",
"0.65861183",
"0.65599203",
"0.64409876",
"0.64323354",
"0.6323142",
"0.6268264",
"0.62483233",
"0.62091875",
"0.6175015",
"0.6136132",
"0.61297077",
"0.6112... | 0.56256616 | 52 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.discussion_home, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.72473437",
"0.7202402",
"0.71960324",
"0.7177793",
"0.7108265",
"0.7040525",
"0.70388484",
"0.70126176",
"0.70101976",
"0.6981143",
"0.69461405",
"0.694",
"0.69346833",
"0.69183874",
"0.69183874",
"0.6891571",
"0.6884306",
"0.68758994",
"0.687534",
"0.68627334",
"0.6862733... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7905288",
"0.7806507",
"0.7767581",
"0.7728288",
"0.76327986",
"0.7622734",
"0.75856835",
"0.7531844",
"0.74890584",
"0.74584335",
"0.74584335",
"0.7439769",
"0.7422939",
"0.7404292",
"0.7392902",
"0.7388083",
"0.73805684",
"0.7371689",
"0.7363277",
"0.73572534",
"0.734688... | 0.0 | -1 |
Handle navigation view item clicks here. | @SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
Intent intent;
switch(item.getItemId()){
case R.id.nav_home:
finish();
intent = new Intent(this, NavigationActivity.class);
s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"void onDialogNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr... | [
"0.7882029",
"0.7235578",
"0.6987005",
"0.69458413",
"0.6917864",
"0.6917864",
"0.6883472",
"0.6875181",
"0.68681556",
"0.6766498",
"0.67418456",
"0.67207",
"0.6716157",
"0.6713947",
"0.6698189",
"0.66980195",
"0.66793925",
"0.66624063",
"0.66595167",
"0.6646381",
"0.6641224"... | 0.640229 | 87 |
Takes user to create a new thread | public void goToNewThread(View view){
Intent intent = new Intent(this, newThreadActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createThread() {\n }",
"ThreadStart createThreadStart();",
"@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }",
"NewThread (String threadname) {\r\n name =... | [
"0.7933865",
"0.7025495",
"0.6972341",
"0.67661905",
"0.67608786",
"0.66807926",
"0.66427124",
"0.6612596",
"0.6547119",
"0.65282047",
"0.6447171",
"0.6442953",
"0.6398694",
"0.6386863",
"0.63799024",
"0.63003004",
"0.6293518",
"0.606281",
"0.6034572",
"0.6024343",
"0.6018281... | 0.61801136 | 17 |
public Pedido findByNome(String pedido); public Optional findById(Long id); | @Query("select p from Pedido p where p.desc =?1")
public Pedido buscarPedidoPorDescricao(String desc); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<ItemPedido> findOne(Long id);",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Optional<Pedido>> find(@PathVariable Integer id) {\n\t\t\tOptional<Pedido> obj = service.find(id);\n\t\t\treturn ResponseEntity.ok().body(obj);\n\t\t}",
"public Optional<Persona> ... | [
"0.7905731",
"0.77748054",
"0.76325095",
"0.72882247",
"0.71620226",
"0.7121431",
"0.7020709",
"0.70140785",
"0.6999703",
"0.6957633",
"0.69224846",
"0.69187313",
"0.6903613",
"0.6898698",
"0.68622524",
"0.6862138",
"0.68556744",
"0.6849662",
"0.68488973",
"0.6847523",
"0.678... | 0.0 | -1 |
Created by peacewong on 2019/11/2. | public interface ReadJob {
Map<String, Object> getSharedNodesInfo();
String getSharedKey(String value);
void setSharedNodesInfo(Map<String, Object> sharedNodesInfo);
String[] getShareNodeIds();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.6087627",
"0.5952069",
"0.57108444",
"0.57072514",
"0.5703574",
"0.5703574",
"0.5646247",
"0.5633668",
"0.56295717",
"0.55712676",
"0.55635065",
"0.5555443",
"0.55430204",
"0.5538536",
"0.5533521",
"0.551799",
"0.55156606",
"0.54828197",
"0.54815274",
"0.5476918",
"0.54609... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
configGlobals();
configView(inflater, container);
configRecycler();
unbinder = ButterKnife.bind(this, view);
return view;
} | {
"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.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
JsonDeserializer objectJsonDeserializer = new JsonDeserializer(Object.class, false); objectJsonDeserializer.addTrustedPackages(""); | @Bean
public ConsumerFactory<String, String> consumerFactory() {
return new DefaultKafkaConsumerFactory<>(
kafkaProperties.buildConsumerProperties(), new StringDeserializer(), new StringDeserializer()
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private JsonApiEnvelopeDeserializer() {\n super(JsonApiEnvelope.class);\n }",
"public abstract Object deserialize(Object object);",
"public void deserialize() {\n\t\t\n\t}",
"T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;",
"T fromJso... | [
"0.673362",
"0.657392",
"0.6293521",
"0.6031134",
"0.58961606",
"0.5878918",
"0.5868192",
"0.58672476",
"0.58507645",
"0.57942724",
"0.5759205",
"0.57543457",
"0.57124895",
"0.5700934",
"0.56865317",
"0.56758595",
"0.5673689",
"0.5671799",
"0.56690466",
"0.56384474",
"0.56240... | 0.0 | -1 |
/! Wireup the events from the UI to the presenter. | @Override
public void addhandler(final ToDoPresenter.Display.EventHandler handler) {
// The TodoMVC project template has a markup / style that is not compatible with the markup
// generated by the GWT CheckBox control. For this reason, here we are using an InputElement
// directly. As a res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void onPresenter();",
"@Override\n public void setupEventHandlers(ControllerInterface controller) {\n events = Optional.of(new Events.ForView(controller));\n }",
"public interface DetailsPresenter {\n\n void init();\n\n void getEvents();\n}",
"public abstract void setupM... | [
"0.7445072",
"0.679894",
"0.671336",
"0.6503667",
"0.64522284",
"0.6431115",
"0.6407833",
"0.64070654",
"0.64070654",
"0.63629293",
"0.63304347",
"0.6271766",
"0.6225131",
"0.61840194",
"0.6175389",
"0.6155178",
"0.61434174",
"0.6122334",
"0.6100597",
"0.60997593",
"0.6052449... | 0.0 | -1 |
release all tabs manager | public void actionPerformed(ActionEvent e){
loginTF.setText("");
passwordTF.setText("");
mainJTabbedPane.setSelectedIndex(0);
mainJTabbedPane.setEnabledAt(1, false);
mainJTabbedPane.setEnabledAt(2, false);
mainJTabbedPane.setEnabledAt(3, false);
mainJTabbedPane.setEnabledAt(4, false);
ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeTab() {\n\t\tclose();\n\t\t\n\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\tif(hostName.equals... | [
"0.67070943",
"0.6438363",
"0.64290327",
"0.6411278",
"0.63592494",
"0.63519835",
"0.6318387",
"0.6227381",
"0.6217342",
"0.61913735",
"0.61769354",
"0.61618304",
"0.6159404",
"0.6152667",
"0.61509746",
"0.61463785",
"0.61230564",
"0.6111581",
"0.61053735",
"0.60744435",
"0.6... | 0.0 | -1 |
function to view a customer by id or name | public void actionPerformed(ActionEvent e){
if(employees.size() >= 1){
try{
for(Employee employee: employees){
if(employee.getEmployeeId()== Integer.parseInt(empIdCombo.getSelectedItem().toString())){
empJTextArea.setText("Employee ID: "+employee.getEmployeeId()
+"\n Name: " +empl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCustomer(String custId);",
"public Customer displayCustomer(int cid);",
"@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently ... | [
"0.8112768",
"0.78764266",
"0.7649006",
"0.76341236",
"0.76312673",
"0.7512647",
"0.7429471",
"0.73926246",
"0.73782283",
"0.73622465",
"0.7284316",
"0.7228286",
"0.7133519",
"0.7080263",
"0.70632434",
"0.7027587",
"0.70037717",
"0.6971586",
"0.6948662",
"0.69306904",
"0.6921... | 0.0 | -1 |
view by employee name | public void actionPerformed(ActionEvent e){
if(employees.size() >= 1){
if(empNameCombo.getSelectedIndex() != 0){
for(Employee employee: employees){
if(employee.getEmployeeName().equalsIgnoreCase(empNameCombo.getSelectedItem().toString())){
empJTextArea.setText("Employee ID: "+employee.getE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Employeedetails getEmployeeDetailByName(String employeeId);",
"@RequestMapping(value=\"empname/{name}\",method= RequestMethod.GET)\n\tpublic Employee empname(@PathVariable(\"name\") String name){\n\t\treturn this.service.findname(name);\n\t\t\n\t}",
"@RequestMapping(method=RequestMethod.POST ,value=\"/s... | [
"0.7376824",
"0.6958082",
"0.6948941",
"0.6828701",
"0.6627253",
"0.66008",
"0.6591377",
"0.65778345",
"0.64594024",
"0.6450096",
"0.64410865",
"0.6441033",
"0.6415199",
"0.64089614",
"0.63962835",
"0.6379003",
"0.6366473",
"0.63336927",
"0.63184464",
"0.6251462",
"0.6207234"... | 0.0 | -1 |
function to view all employees | public void actionPerformed(ActionEvent e){
empJTextArea.setText(null);
if(employees.size() >= 1){
for(Employee employee: employees){
empJTextArea.append("\n Employee ID: "+employee.getEmployeeId()
+"\n Name: " +employee.getEmployeeName()
+"\n Access Level: " +employee.getAccess()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Employee> viewAllEmployees() {\n\t\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\t\t CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);\n\t\t Root<Employee> rootEntry = cq.from(Employee.class);\n\t\t CriteriaQuery<Employee> all = cq.select(rootEntry);\n\t \n\t\t TypedQuery<Em... | [
"0.84952974",
"0.8213424",
"0.82030433",
"0.8018163",
"0.8016731",
"0.7946398",
"0.79225856",
"0.78507006",
"0.78254354",
"0.77668715",
"0.77415526",
"0.7736975",
"0.7713791",
"0.77058756",
"0.769707",
"0.7692233",
"0.766034",
"0.76524186",
"0.7641107",
"0.76398",
"0.7639696"... | 0.0 | -1 |
update a specific customer | public void actionPerformed(ActionEvent e){
if(viewEmpIdCombo.getSelectedIndex() != 0){
if(editEmpNameField.getText().isEmpty() || editEmpAccessField.getText().isEmpty() ||
editEmpSalaryField.getText().isEmpty() || editEmpPasswordField.getText().isEmpty()){
JOptionPane.showMessageDialog(null, "Pl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateCustomerById(Customer customer);",
"public void update(Customer customer) {\n\n\t}",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }",
"@PutMapping(\"/customerupdate\")\n\tpublic ... | [
"0.87376624",
"0.8472092",
"0.8274566",
"0.8170891",
"0.8145405",
"0.80692047",
"0.8065902",
"0.80265105",
"0.80265105",
"0.7989204",
"0.7979382",
"0.7961355",
"0.792467",
"0.785077",
"0.7815211",
"0.7793142",
"0.77847004",
"0.7753139",
"0.77140355",
"0.77116793",
"0.7709141"... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.