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
Returns what attribute set is being used. This is always "basic1"
public String getDefaultAttributeSet () { return defaultAttributeSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashSet<String> getUsefulAttributes() {\n\t\t \n\t\tHashSet<String> attr = new HashSet<>();\n\t\tQuery firstQ = this.rset.get(1); // get first query on rewriting set 'rset'.\n\t\t\n\t\tGrouping gPart = firstQ.getQueryTriple()._1();\n\t attr.addAll(gPart.getUsefulAttributes());\n\t \n\t Measuring mP...
[ "0.6179415", "0.61432666", "0.6102594", "0.6048373", "0.6021399", "0.5957014", "0.5909193", "0.5909193", "0.5887722", "0.5871856", "0.58663875", "0.5851473", "0.58496046", "0.5846434", "0.58430606", "0.5817044", "0.5788415", "0.57797676", "0.57770866", "0.5713953", "0.5713014...
0.60518295
3
Do constant folding. If any children can be folded, replace it with a IRConst node.
@Override public IRConst doConstFolding() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void constantPropagationAndFolding(JmmNode node) {\n Object value = getValue(node);\n if (value != null) {\n prepareForReplacement(node, value);\n return;\n }\n\n for (JmmNode child : node.getChildren()) {\n constantPropagationAndFolding(child);\n...
[ "0.648148", "0.59118724", "0.572733", "0.56445724", "0.55411565", "0.5539723", "0.5524278", "0.55209947", "0.54806274", "0.53851414", "0.5209296", "0.5134231", "0.5091418", "0.5045537", "0.49637246", "0.49097973", "0.48884124", "0.48676297", "0.48245573", "0.4772248", "0.4734...
0.68473697
0
TODO Autogenerated method stub
@Override public OpTarget genAssem(StringWriter sw, IRFuncDecl f, FuncSymbolTable funcs) { return operand; }
{ "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
Test for the constructor Notification(java.lang.String, java.lang.Object, long)
public final void testNotificationStringObjectlong() { Notification n = new Notification("type", "src", 1); assertEquals("type", n.getType()); assertEquals("src", n.getSource()); assertEquals(1, n.getSequenceNumber()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testConstructor() {\r\n\r\n\t\t// Create a new Notification using the Constructor to set the note name\r\n\t\t// and body\r\n\t\tINotification note = new Notification(\"TestNote\", 5, \"TestNoteType\");\r\n\r\n\t\t// test assertions\r\n\t\tAssert.assertEquals(\"Expecting note.getName() == 'T...
[ "0.75734675", "0.7428803", "0.73494697", "0.73494697", "0.7257661", "0.7257323", "0.708658", "0.69524276", "0.6868368", "0.67319643", "0.632028", "0.6234794", "0.6204121", "0.6167991", "0.61473644", "0.61255765", "0.6063975", "0.5978366", "0.59031093", "0.5871704", "0.5842486...
0.7320686
4
Test for the constructor Notification(java.lang.String, java.lang.Object, long, java.lang.String)
public final void testNotificationStringObjectlongString() { Notification n = new Notification("type", "src", 1, "msg"); assertEquals("type", n.getType()); assertEquals("src", n.getSource()); assertEquals(1, n.getSequenceNumber()); assertEquals("msg", n.getMessage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testConstructor() {\r\n\r\n\t\t// Create a new Notification using the Constructor to set the note name\r\n\t\t// and body\r\n\t\tINotification note = new Notification(\"TestNote\", 5, \"TestNoteType\");\r\n\r\n\t\t// test assertions\r\n\t\tAssert.assertEquals(\"Expecting note.getName() == 'T...
[ "0.7622732", "0.75054073", "0.739522", "0.739522", "0.73715883", "0.73070246", "0.7305213", "0.7146267", "0.7065726", "0.6946054", "0.6372164", "0.63301665", "0.6267084", "0.6227162", "0.61918116", "0.6175725", "0.61159265", "0.6069423", "0.5970105", "0.59017724", "0.5873146"...
0.6826707
10
Test for the constructor Notification(java.lang.String, java.lang.Object, long, long)
public final void testNotificationStringObjectlonglong() { Notification n = new Notification("type", "src", 1, 2); assertEquals("type", n.getType()); assertEquals("src", n.getSource()); assertEquals(1, n.getSequenceNumber()); assertEquals(2, n.getTimeStamp()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testConstructor() {\r\n\r\n\t\t// Create a new Notification using the Constructor to set the note name\r\n\t\t// and body\r\n\t\tINotification note = new Notification(\"TestNote\", 5, \"TestNoteType\");\r\n\r\n\t\t// test assertions\r\n\t\tAssert.assertEquals(\"Expecting note.getName() == 'T...
[ "0.7583443", "0.7358116", "0.7358116", "0.728853", "0.72676253", "0.7237193", "0.7110254", "0.6932517", "0.6908801", "0.66771585", "0.62939805", "0.62847775", "0.6201152", "0.6191296", "0.6153072", "0.61427724", "0.6130433", "0.5980659", "0.5929731", "0.5900671", "0.58698726"...
0.7389312
1
Test for the constructor Notification(java.lang.String, java.lang.Object, long, long, java.lang.String)
public final void testNotificationStringObjectlonglongString() { Notification n = new Notification("type", "src", 1, 2, "msg"); assertEquals("type", n.getType()); assertEquals("src", n.getSource()); assertEquals(1, n.getSequenceNumber()); assertEquals(2, n.getTimeStamp()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testConstructor() {\r\n\r\n\t\t// Create a new Notification using the Constructor to set the note name\r\n\t\t// and body\r\n\t\tINotification note = new Notification(\"TestNote\", 5, \"TestNoteType\");\r\n\r\n\t\t// test assertions\r\n\t\tAssert.assertEquals(\"Expecting note.getName() == 'T...
[ "0.7626797", "0.74774754", "0.73883206", "0.73883206", "0.73161703", "0.7314222", "0.7300705", "0.7152946", "0.69515896", "0.6789302", "0.63620836", "0.6354984", "0.6257269", "0.6203458", "0.61891526", "0.61806273", "0.61568844", "0.60625494", "0.59818304", "0.5947584", "0.58...
0.7049162
8
Test for the method getMessage()
public final void testGetMessage() { assertEquals(Hello.SAY_HELLO_INVOKED_MSG, n.getMessage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t\t\tpublic void getMessageTest() {\n\t\t\t\tString message;\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString result = msgjunit.getMessage();\n\t\t\t\tif (result == null) {\n\n\t\t\t\t\tmessage = \"Is a Messages which is a String type\";\n\t\t\t\t} else {\n\n\t\t\t\t\tmessage = \"\";\n\t\t\t\t}\n...
[ "0.84643185", "0.8360616", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.81889844", "0.8124186", ...
0.73844534
34
Test for the method getSequenceNumber()
public final void testGetSequenceNumber() { assertEquals(hello.sequenceNumber, n.getSequenceNumber()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSequenceNumber();", "long getSequenceNumber();", "public int getSequenceNumber();", "public long getSequenceNumber();", "@Test\n\tpublic void getSequenceNumberTest() {\n\t\tAssert.assertEquals(DEFAULT_SEQUENCE, getDefaultKey().getId());\n\t}", "public INT getSequenceNumber() { return _sequenceNumb...
[ "0.8271942", "0.8267868", "0.8194243", "0.8070943", "0.8058193", "0.78607917", "0.76827234", "0.76207066", "0.760127", "0.76010096", "0.759706", "0.7490817", "0.7378817", "0.7377479", "0.7370657", "0.73295295", "0.72701925", "0.7218898", "0.7146512", "0.71387935", "0.70867187...
0.82118607
2
Test for the method getTimeStamp()
public final void testGetTimeStamp() { assertEquals(hello.timeStamp, n.getTimeStamp()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTstamp001() throws VistaWebServiceFault {\n\n\t\tresponse = service.tstamp();\n\n\t\tassertNotNull(response);\n\t\tif (response.getCurrentTimeStamp() != null) {\n\t\t\tassertEquals(\"5464917241\", response.getCurrentTimeStamp());\n\t\t} else {\n\t\t\tfail(\"currentTimeStamp is NULL !!\");\...
[ "0.76164883", "0.74641114", "0.73428494", "0.7193577", "0.7155765", "0.7145676", "0.7131457", "0.7075143", "0.6999286", "0.6948197", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", "0.6929114", ...
0.8517129
0
Test for the method getType()
public final void testGetType() { assertEquals(Hello.SAY_HELLO_INVOKED, n.getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType()...
[ "0.8340158", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "0.7793567", "...
0.7386344
72
Test for the method getUserData()
public final void testGetUserData() { assertEquals(hello.userData, n.getUserData()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Object getUserData();", "Object getUserData();", "public Object getUserData();", "public User getUserData();", "public Object getUserData() {\n return userData;\n }", "public Object getUserData()\n\t{\n\t\treturn userData;\n\t}", "public Object getUserData () {\n\t\treturn us...
[ "0.8076923", "0.80695236", "0.7842419", "0.7501287", "0.7380492", "0.7355399", "0.72651786", "0.7218042", "0.71057147", "0.67868507", "0.6690298", "0.64748657", "0.64507216", "0.6379091", "0.63406575", "0.63405627", "0.63363904", "0.63270867", "0.6318731", "0.630218", "0.6300...
0.83865404
0
Test for the method setSequenceNumber(long)
public final void testSetSequenceNumber() { Notification n = new Notification("type", "src", 1); assertEquals(1, n.getSequenceNumber()); n.setSequenceNumber(123); assertEquals(123, n.getSequenceNumber()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSequenceNumber(int sequenceNumber);", "public void setSequenceNumber(long value) {\n this.sequenceNumber = value;\n }", "long getSequenceNumber();", "@Test\n\tpublic void setSequenceNumberTest() {\n\t\tProductScanImageURIKey key = getDefaultKey();\n\t\tkey.setSequenceNumber(OTHER_SEQUENCE);...
[ "0.8356587", "0.8098556", "0.7829134", "0.7648917", "0.7618395", "0.7603035", "0.7587133", "0.7533126", "0.7523554", "0.74832374", "0.7442633", "0.73646456", "0.7279896", "0.7240265", "0.7129849", "0.7113924", "0.7113924", "0.70861316", "0.7056962", "0.7030139", "0.70070374",...
0.7892859
2
Test for the method setSource(java.lang.Object)
public final void testSetSource() { Notification n = new Notification("type", "src", 1); assertEquals("src", n.getSource()); n.setSource("new src"); assertEquals("new src", n.getSource()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSource (String source);", "public void setSource(String source);", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public void setSo...
[ "0.8058444", "0.80343926", "0.7569998", "0.75564915", "0.75145763", "0.75052357", "0.7442611", "0.74372447", "0.74372447", "0.7229703", "0.7193015", "0.713178", "0.7083631", "0.70727503", "0.6981096", "0.6905707", "0.6839982", "0.680204", "0.667736", "0.6664558", "0.6663387",...
0.7812976
2
Test for the method setTimeStamp(long)
public final void testSetTimeStamp() { Notification n = new Notification("type", "src", 1); n.setTimeStamp(123); assertEquals(123, n.getTimeStamp()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void setTimeStamp(long parseLong) throws IOException {\n\r\n }", "public final void testGetTimeStamp() {\n assertEquals(hello.timeStamp, n.getTimeStamp());\n }", "public void setTimestamp(long value) {\r\n this.timestamp = value;\r\n }", "public final void s...
[ "0.7560474", "0.73851836", "0.7337843", "0.73025364", "0.7265595", "0.72513676", "0.71890473", "0.701843", "0.7008139", "0.7008139", "0.69075584", "0.6906845", "0.68899465", "0.6835928", "0.68084484", "0.6795475", "0.6744467", "0.6679005", "0.6651941", "0.66355485", "0.663554...
0.7598855
0
Test for the method setUserData(java.lang.Object)
public final void testSetUserData() { Notification n = new Notification("type", "src", 1); assertNull(n.getUserData()); n.setUserData("User data"); assertEquals("User data", n.getUserData()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void setUserData(Object data);", "public void setUserData(Object data);", "void setUserData(Object userData);", "private void setUserData(){\n }", "public void setUserData(Object userData) {\n this.userData = userData;\n }", "@Override\n public void setUserData(final Object use...
[ "0.86974174", "0.8611972", "0.8391432", "0.8183526", "0.8048637", "0.8019504", "0.7980015", "0.7951364", "0.7457122", "0.7239873", "0.71690774", "0.716893", "0.69357985", "0.69248074", "0.6879652", "0.6821412", "0.6626081", "0.66061336", "0.653726", "0.6527745", "0.652449", ...
0.7827873
8
Test for the method toString()
public final void testToString() { try { Notification.class.getDeclaredMethod("toString", new Class[0]); } catch (SecurityException e) { printStackTrace(e); } catch (NoSuchMethodException e) { fail("The method toString() is not overridden"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testToString() {\n }", "@Test\r\n public void testToString() {\r\n // TODO \r\n assertTrue(true); \r\n }", "@Test\r\n public void testToString() {\r\n System.out.println(\"toString\");\r\n RevisorParentesis instance = null;\r\n String expResult = \"\";...
[ "0.80555093", "0.7994907", "0.77078116", "0.76320314", "0.76233333", "0.75767636", "0.75629634", "0.7544433", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527", "0.7542527...
0.73160267
71
Create MBean server, register Hello MBean.
public final void init() throws Exception { // Get the Platform MBean Server mbs = MBeanServerFactory.createMBeanServer(); // Construct the ObjectName for the Hello MBean name = new ObjectName( "org.apache.harmony.test.func.api.javax.management:type=Hello"); // Crea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish...
[ "0.64054984", "0.6090911", "0.6068584", "0.6056415", "0.59954417", "0.59790117", "0.59417135", "0.59157056", "0.591526", "0.58756536", "0.5791861", "0.5745052", "0.5744979", "0.56956595", "0.5604972", "0.5598364", "0.55901676", "0.5572905", "0.5561953", "0.55569035", "0.55099...
0.672296
0
Check if the notification is received.
public final void setUp() { if (n == null) { fail("The AttributeChangeNotification " + "has not been received in 3 seconds."); finish(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasReceived();", "boolean hasUnReceived();", "public boolean hasReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasReceived()\" );\n Via via=(Via)sipHeader;\n return via.hasParameter(Via.RECEIVED);\n }", "...
[ "0.7532237", "0.6870824", "0.6864633", "0.6710677", "0.668272", "0.6651822", "0.66120505", "0.65941656", "0.6580544", "0.6412728", "0.6407918", "0.6356687", "0.63025475", "0.62832916", "0.6268506", "0.6186443", "0.61587745", "0.6150294", "0.6134524", "0.60926706", "0.6082171"...
0.0
-1
Deregister Hello MBean, shut down the server.
public final void release() throws Exception { mbs.unregisterMBean(name); MBeanServerFactory.releaseMBeanServer(mbs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}", "public void shutdown() {\n if (configurations.isRegisterMXBeans()) {\n JmxConfigurator.get().removeMXBean(this);\n }\n configurations.shutdown();\n }", "public void shutdown() {\n _udpServer.stop...
[ "0.6875452", "0.6597035", "0.6523463", "0.62454927", "0.6210904", "0.62105834", "0.6126846", "0.60403544", "0.60072833", "0.5973529", "0.5959917", "0.5947844", "0.59310067", "0.5882913", "0.5869339", "0.5868646", "0.58659124", "0.5835242", "0.58323234", "0.58323234", "0.58323...
0.56935894
32
Factory method to create the list of cards that displays a list of company information.
public static ListPanel<CompanyItem> getCompanyListPanel(ObservableList<CompanyItem> companyItems) { return new CompanyListPanel(companyItems); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(),...
[ "0.6413757", "0.6261926", "0.6171829", "0.61545086", "0.61178327", "0.6027431", "0.5992721", "0.5989751", "0.590254", "0.5900946", "0.583031", "0.58291525", "0.5815131", "0.5752185", "0.5750599", "0.573878", "0.5712407", "0.5656832", "0.562937", "0.56094545", "0.55823517", ...
0.5495257
27
for (int i=0; i<=24; i++)
public void modifyButtons(int i) { { if (colorList.get(i) == 0) { buttonList.get(i).setBackground(RED); redLeft--; redRemaining.setText("Red: " + redLeft); } else if (colorList.get(i) == 1) { buttonList.get(i).setBackground(BLUE); blueLeft--; blueRemaining.setText("Blue: " + bl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\t...
[ "0.56720644", "0.5618324", "0.5512645", "0.54996514", "0.54618686", "0.54602176", "0.53867674", "0.5379493", "0.5374998", "0.5366387", "0.5333125", "0.53237903", "0.5317054", "0.52993685", "0.5262835", "0.5233887", "0.5233224", "0.52118975", "0.5185564", "0.5168291", "0.51644...
0.0
-1
Creates new form OptionsMenu
public OptionsMenu() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void addMenuOptions();", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /*...
[ "0.7060575", "0.697736", "0.69220656", "0.6853756", "0.6805438", "0.66533846", "0.6639378", "0.659168", "0.6562891", "0.65445715", "0.65163124", "0.6510486", "0.64902824", "0.64767975", "0.64676607", "0.64518595", "0.64353263", "0.64197826", "0.6405152", "0.6355358", "0.63426...
0.70751673
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel1 = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
Function: returns the SMILES string of the requested starter unit.
private String getWorkingSMILES_Starter(int starterID) { currUnit = new PolyketideUnit(Predyketide.starterUnits.get(starterID)); String forwardSMILES = currUnit.getForwardSMILES(); forwardSMILES = "SC(=O)C" + forwardSMILES; return forwardSMILES; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSIunit() {\n\t\tStringBuffer b = new StringBuffer(64);\n\t\ttoSI(b, 0);\n\t\treturn(\"\"+b);\n\t}", "String getUnitsString();", "@Override\n public String getSprintMPasString() {\n if (hasArmedMASC()) {\n return getRunMPwithoutMASC() + \"(\" + getSprintMP() + \")\";\n ...
[ "0.6712307", "0.6215729", "0.5953402", "0.59297717", "0.5772139", "0.5757248", "0.57161194", "0.5699439", "0.5680122", "0.5661166", "0.5621922", "0.55948335", "0.5574943", "0.557132", "0.5559976", "0.55480665", "0.5538155", "0.552299", "0.5521997", "0.5492202", "0.54758275", ...
0.74267036
0
Register the model of the mixer
public void registerModel(ColorMixerModel model){ cmModel = model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void registerModels() \n\t{\n\t\tMain.proxy.registerItemRenderer(this, 0, \"inventory\");\n\t}", "public RegisterPhotographerOrModel() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void registerModel(ColorPickerModel model){\n cpModel = model;\n }", ...
[ "0.6370163", "0.5929743", "0.5916541", "0.56212705", "0.5470191", "0.5423123", "0.5331549", "0.52827996", "0.52613217", "0.52605104", "0.52425414", "0.52383727", "0.52229345", "0.5221974", "0.52157223", "0.5207331", "0.5199233", "0.5195237", "0.51634157", "0.5157754", "0.5147...
0.7550988
0
Register the UI of the mixer
public void registerUI(ColorMixerUI ui){ cmUI = ui; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeMixerLocalization() {\n\t\ttry {\n\t\t\tmixerTab.setText(bundle.getString(\"mixerTab\"));\n\n\t\t\tlabelSelectFile.setText(bundle.getString(\"mixerSelectFileText\"));\n\t\t\tlabelOr.setText(bundle.getString(\"mixerOrText\"));\n\t\t\tlabelRecordFile.setText(bundle.getString(\"mixerRecordFileT...
[ "0.65773755", "0.6493881", "0.637635", "0.62523067", "0.59198284", "0.58828324", "0.5878994", "0.5878994", "0.5851493", "0.584694", "0.5839817", "0.5818718", "0.58162814", "0.5806759", "0.57655483", "0.5744753", "0.56981593", "0.56766975", "0.566458", "0.5658017", "0.5658017"...
0.7214618
0
Register the model of the picker
public void registerModel(ColorPickerModel model){ cpModel = model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CustomComboBoxModel() {\n\t\t// TODO Auto-generated constructor stub\n\t\tZipcodeDAO dao = new ZipcodeDAO();\n\t\tdatas = dao.allSido();\n\t}", "ModuleInfoPickerView bind();", "public void registerModel(ColorMixerModel model){\n cmModel = model;\n }", "public void createModel() {\r\n\t\t\r\n...
[ "0.5750925", "0.56995904", "0.556159", "0.55580276", "0.55391175", "0.54899526", "0.54643375", "0.5386849", "0.53653044", "0.53608286", "0.5347334", "0.5313155", "0.5303865", "0.5301586", "0.52970576", "0.52787197", "0.52751833", "0.52359545", "0.5223919", "0.51877385", "0.51...
0.74103796
0
Register the UI of the picker
public void registerUI(ColorPickerUI ui){ cpUI = ui; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerUI(PaletteUI ui){\n pUI = ui;\n }", "private void registerUiNode() {\n }", "private void initControlUI() {\n typeAdapter = new SpinnerSimpleAdapter(self, android.R.layout.simple_spinner_item, self.getResources().getStringArray(R.array.arr_feedback_type));\n ...
[ "0.6273047", "0.60616744", "0.6059375", "0.5962181", "0.594369", "0.5915888", "0.5896677", "0.58839965", "0.58383226", "0.5827862", "0.58244956", "0.581171", "0.57006437", "0.5696311", "0.5694857", "0.56948334", "0.5692416", "0.56823134", "0.56526697", "0.56495667", "0.564331...
0.72737837
0
Register the UI/Model of the palette
public void registerUI(PaletteUI ui){ pUI = ui; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerModel(ColorPickerModel model){\n cpModel = model;\n }", "private void registerUiNode() {\n }", "public void registerUI(ColorMixerUI ui){\n cmUI = ui;\n }", "public void registerModel(ColorMixerModel model){\n cmModel = model;\n }", "public void registerU...
[ "0.6677372", "0.62792", "0.62758136", "0.6248796", "0.61848044", "0.6179377", "0.60555637", "0.6012312", "0.5979671", "0.5979671", "0.59643215", "0.58693516", "0.5856125", "0.58358175", "0.5807299", "0.5802916", "0.5796969", "0.5720974", "0.56501573", "0.56270707", "0.5608034...
0.7338488
0
click event comes from Color mixer panel
public void mouseClicked(MouseEvent e){ if(e.getSource() == cmUI){ ColorMixerModel.ColorItem tempC = selectedColor(e.getPoint()); if(e.getClickCount() == 1){ if(!cmModel.isCreating()) { // if there is no color creating and no color selected ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseClicked(final MouseEvent e)\n {\n ColorChooserFrame.COLOR_CHOOSER_FRAME.chooseColor(this.color.getRGB(), this);\n }", "public void mouseClicked(MouseEvent e) {\n\t\tthis.setColor(colorHolder.getColor());\n\t}", "public void colorClicked(View view) {\n //Selec...
[ "0.72637767", "0.7191206", "0.7156888", "0.6920491", "0.68002737", "0.67856514", "0.6767363", "0.6733772", "0.6678462", "0.66692513", "0.66459376", "0.6579099", "0.6577512", "0.6572483", "0.65713376", "0.65546435", "0.65480846", "0.65480846", "0.65480846", "0.65480846", "0.65...
0.7598506
0
mouse event comes from Color mixer panel
public void mouseDragged(MouseEvent e){ if(e.getSource() == cmUI) { // finish the creation cmModel.stopCreating(); // if we are sampling the model // move the sample color to pass it to another color if (cmModel.sample != null) { cmMod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked(MouseEvent e){\n if(e.getSource() == cmUI){\n ColorMixerModel.ColorItem tempC = selectedColor(e.getPoint());\n if(e.getClickCount() == 1){\n if(!cmModel.isCreating()) {\n // if there is no color creating and no color selected\n...
[ "0.74696535", "0.72716475", "0.72088504", "0.6993352", "0.69275415", "0.69057333", "0.6867794", "0.6857101", "0.6819927", "0.6782713", "0.6781096", "0.67399347", "0.6733751", "0.6733751", "0.67316663", "0.67299896", "0.67299896", "0.67299896", "0.67255634", "0.6702321", "0.66...
0.7358701
1
if mouse event is called from the color mixer
public void mousePressed(MouseEvent e){ if(e.getSource() == cmUI) { ColorMixerModel.ColorItem tmpC = selectedColor(e.getPoint()); if(tmpC == null) { // if clicked on a empty space // create a new color // or draw a trace to delete color ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n ad...
[ "0.6986306", "0.69855005", "0.6949898", "0.6679874", "0.6608602", "0.6603275", "0.65868753", "0.65510315", "0.64980716", "0.6487075", "0.64777535", "0.6465445", "0.6455608", "0.6447798", "0.63979053", "0.63949114", "0.6384409", "0.63490224", "0.6343157", "0.6330708", "0.63100...
0.70472443
0
Delete the circles in the color mixer
public void mouseExited(MouseEvent e) { if (e.getSource() == pUI) { if (pColorPressed >= 0 && pColorPressed < pModel.getSize()) { pModel.removeColor(pColorPressed); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteColors();", "public void clearCircle();", "private void clear() {\n\t\tremoveAll();\n\t\taddCircle();\n\t}", "public void deleteExperimentColors();", "public void clearColors() {\r\n colors.clear();\r\n }", "void removeComponents()\n {\n JPanel panel = Simulator.ge...
[ "0.7427896", "0.6793945", "0.67317855", "0.6694119", "0.6626402", "0.65651643", "0.6395102", "0.62066007", "0.6196195", "0.6164517", "0.603332", "0.60227823", "0.6004408", "0.598293", "0.59748614", "0.5937305", "0.58994704", "0.58966553", "0.58966553", "0.5889326", "0.5889049...
0.0
-1
to detect whether a point is inside the existing color if yes, return the color item if not, return null
private ColorMixerModel.ColorItem selectedColor(Point p){ for(ColorMixerModel.ColorItem c: cmModel.colorSet){ if(p.distance(c.getPos()) < c.getR()){ return c; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SpawnPoint getSpawnPoint(Color color){\n for(SpawnPoint sp : spawnPoints){\n if(sp.getColor() == color)\n return sp;\n\n }\n return null;\n }", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Point)) {\n return fals...
[ "0.6611812", "0.6122607", "0.6106729", "0.6100056", "0.6006392", "0.5995252", "0.5990452", "0.5939294", "0.5930437", "0.5877358", "0.5855848", "0.58065987", "0.57606155", "0.5746543", "0.57432574", "0.5737077", "0.5717502", "0.56649065", "0.5663453", "0.5656989", "0.56351954"...
0.7103042
0
repaint a certain color item
public void repaint(ColorMixerModel.ColorItem c){ cmUI.repaint(c.getBound()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized private void changeColor()\n {\n if ( ++colorIndex == someColors.length )\n colorIndex = 0;\n setForeground( currentColor() );\n repaint();\n }", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50...
[ "0.70127195", "0.7002354", "0.6979626", "0.69446945", "0.68046737", "0.67770076", "0.67366403", "0.672168", "0.6636047", "0.6595583", "0.6592856", "0.6588924", "0.6535635", "0.65297145", "0.650675", "0.6505231", "0.64632475", "0.64473516", "0.6427596", "0.6420563", "0.6413289...
0.70850843
0
repaint a certain color in palette
public void repaint(int c){ pUI.repaint(pUI.getBound(c)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean changeColor(Color newColor){\n boolean change=false;\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n TShape theShape = (TShape) iter.next();\r\n\r\n if (theShape.getSelected()) {\r\n theShape.setColor(newColor);\...
[ "0.70253307", "0.68635046", "0.6789747", "0.67703193", "0.67057204", "0.669642", "0.666346", "0.6626912", "0.6568324", "0.65160614", "0.642176", "0.6407509", "0.63276386", "0.62700784", "0.62469345", "0.6220497", "0.6196382", "0.6181139", "0.616897", "0.6153737", "0.6141159",...
0.0
-1
repaint color item when there is intersection of two colors
public void repaint(ColorMixerModel.ColorItem c1, ColorMixerModel.ColorItem c2){ if(c1 == null){ repaint(c2); } else if(c2 == null){ repaint(c1); } else { cmUI.repaint(c1.getBound().union(c2.getBound())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintComponent(Graphics g) \r\n {\r\n super.paintComponent(g);\r\n Graphics2D g2d = (Graphics2D) g;\r\n //inital light is red\r\n String intLight = \"Red\";\r\n \r\n \r\n //loops through the 2d array of the intersection and draws a sqare for each value that is colored dependnig \r...
[ "0.65095216", "0.6142006", "0.6123255", "0.6062466", "0.5977006", "0.59162813", "0.585296", "0.5759594", "0.5751628", "0.5731671", "0.5713353", "0.5711614", "0.5705983", "0.5646722", "0.56284034", "0.55921054", "0.55860996", "0.55851", "0.55627465", "0.5551438", "0.5548723", ...
0.62238044
1
repaint a region of color mixer
public void repaint(Rectangle r){ cmUI.repaint(r); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void repaint(ColorMixerModel.ColorItem c){\n cmUI.repaint(c.getBound());\n }", "public void repaint() {}", "public void repaint() {\n\n\t}", "public void repaint();", "public void setAreaColor(Color c)\r\n/* 53: */ {\r\n/* 54: 37 */ this.areaColor = c;repaint();\r\n/* 55: */...
[ "0.71007115", "0.68158084", "0.67694855", "0.65373176", "0.6529003", "0.6506908", "0.6487273", "0.642973", "0.640693", "0.64052755", "0.64052755", "0.6381097", "0.6380822", "0.6355028", "0.6345685", "0.63438797", "0.63211447", "0.6316286", "0.6305167", "0.6297354", "0.6264307...
0.6242595
22
Calculate the rotation angle and hue
public void calculateHue(int mode) { double side1 = distance(mouseClickedPoint, cpUI.getCircleCenter()); double side2 = distance(mouseDraggedPoint, cpUI.getCircleCenter()); double vec1x = (double)(mouseClickedPoint.x - cpUI.getCircleCenter().x)/side1; double vec1y = (double)(mouseClickedPoint.y - cpUI.getCircle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\...
[ "0.63703734", "0.6266268", "0.6266268", "0.62575305", "0.62216645", "0.6216929", "0.6176744", "0.6168085", "0.61555713", "0.61204123", "0.6062895", "0.6047827", "0.6023417", "0.6010182", "0.59909374", "0.5930525", "0.59174013", "0.59144056", "0.59138095", "0.5909371", "0.5875...
0.54560065
60
Calculate the saturation and brightness
public void calculateSandB(int mode) { double dx = mouseClickedPoint.getX() - mouseDraggedPoint.getX(); dx *= -1.0; double dy = mouseClickedPoint.getY() - mouseDraggedPoint.getY(); dy *= -1.0; float ds = (float)dx/(float)400.0; float db = (float)dy/(float)600.0; //Set the saturation float s = cpModel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float saturation() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n\n int V = Math.max(b, Math.max(r, g));\n int temp = Math.min(b, Math.min(r, g));\n\n float S;\n\n if (V == temp) {\n S = 0;\n } e...
[ "0.78095454", "0.70009255", "0.6728896", "0.6712432", "0.6651958", "0.6630311", "0.65954477", "0.6483707", "0.63388735", "0.626861", "0.6266386", "0.6001507", "0.59279346", "0.58630204", "0.5858774", "0.584963", "0.58433473", "0.5836961", "0.583169", "0.5757395", "0.5755599",...
0.57395285
22
Calculate the distance between two points
public double distance(Point a, Point b) { double dx = a.x - b.x; double dy = a.y - b.y; return Math.sqrt(dx * dx + dy * dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math...
[ "0.8193554", "0.79431725", "0.78885096", "0.7805773", "0.7795841", "0.7778616", "0.7750714", "0.7680233", "0.7658234", "0.76053584", "0.75928336", "0.7552777", "0.7527077", "0.7470544", "0.7450884", "0.74488837", "0.7401367", "0.7401103", "0.7400872", "0.7363836", "0.73536706...
0.7562959
11
to judge whether the path intersects with a certain coloritem so as to delete them
private ArrayList<ColorMixerModel.ColorItem> pathIntersection(){ ArrayList<ColorMixerModel.ColorItem> toDel = new ArrayList<>(); for(ColorMixerModel.ColorItem c: cmModel.colorSet){ Ellipse2D.Float cobj = new Ellipse2D.Float(c.getPos().x,c.getPos().y, c.getR(),c.getR()); if(mouseT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkColoring(int[] ccolor){\n // \tfor(int i = 0; i < ccolor.length; i++){\n //\t System.out.println(Arrays.toString(ccolor));\n \t//}\n for(int i = 0; i < ccolor.length; i++){\n for(int w = 0; w < ccolor.length; w++){\n ...
[ "0.55097854", "0.5503732", "0.5471881", "0.5466857", "0.54589653", "0.54093164", "0.537206", "0.53694355", "0.5343877", "0.5332871", "0.5295665", "0.529197", "0.5283043", "0.52658033", "0.5255171", "0.52491295", "0.52477247", "0.5243856", "0.52034056", "0.5195145", "0.5172699...
0.6678451
0
~~~ getters and setters Getter method for property timeoutDiscard.
public boolean isTimeoutDiscard() { return timeoutDiscard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTimeoutDiscard(boolean timeoutDiscard) {\n this.timeoutDiscard = timeoutDiscard;\n }", "public Duration timeout() {\n return this.timeout;\n }", "public long getTimeout() { return timeout; }", "public long GetTimeout() { return timeout; }", "public int getTimeout();", "...
[ "0.76342684", "0.61287993", "0.60342056", "0.5957337", "0.57899106", "0.57442635", "0.57316834", "0.57316834", "0.57316834", "0.5728361", "0.5719706", "0.5640813", "0.5557964", "0.55477375", "0.55414486", "0.55300564", "0.55251014", "0.55177236", "0.55016863", "0.5495417", "0...
0.7492874
1
Setter method for property timeoutDiscard.
public void setTimeoutDiscard(boolean timeoutDiscard) { this.timeoutDiscard = timeoutDiscard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTimeoutDiscard() {\n return timeoutDiscard;\n }", "void cancelTimeout() {\n timeoutCancelled = true;\n if (timeout != null) {\n timeout.cancel();\n }\n }", "public void resetTimeout(){\n this.timeout = this.timeoutMax;\n ...
[ "0.6654559", "0.55841815", "0.538439", "0.52742416", "0.5204564", "0.5129255", "0.50950396", "0.5049261", "0.5027111", "0.5009631", "0.5002329", "0.49711066", "0.49366194", "0.49366194", "0.49366194", "0.49352813", "0.4931248", "0.49137056", "0.49083027", "0.49064273", "0.490...
0.80879277
0
TODO: encrypt GUID. Constructor for a newly created message
public Message(MessageType messageType, byte[] payload) { this.messageType = messageType; this.payloadLength = ByteBuffer.allocate(4).putInt(payload.hashCode()).array(); this.payload = payload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbstractMessage() {\n\t\t//this.idMessage = SecUtils.getHex(SecUtils.getRandomBytes(SecUtils.getSeed(), 20));\n\t\tthis.idMessage = this.hashCode();\n\t\tthis.setChallenge(new Challenge());\n\t}", "public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }", "public ...
[ "0.75486934", "0.73693955", "0.72563666", "0.72321975", "0.7227561", "0.72130185", "0.7133448", "0.7133448", "0.710931", "0.7092032", "0.70920175", "0.7006931", "0.699205", "0.69516283", "0.6902361", "0.6893529", "0.68768716", "0.68602085", "0.68579197", "0.68579197", "0.6853...
0.61591476
82
Construct couple seat with intial status is empty
public CoupleSeat() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Seat() {\n }", "public Seat(int showid, int seatNumber, boolean isOccupied){\n this.showid = showid;\n this.seatNumber = seatNumber;\n this.isOccupied = isOccupied;\n }", "public void creationSable(){\n\t\tfor(int x=2;x<=this.taille-3;x++) {\n\t\tfor(int y=2;y<=this.taille-3;y...
[ "0.6049627", "0.5857255", "0.5681599", "0.56313777", "0.5562588", "0.5421268", "0.54133636", "0.5303173", "0.5296971", "0.52955216", "0.5236515", "0.5195107", "0.5183151", "0.5180175", "0.51306593", "0.51100266", "0.5083952", "0.5048348", "0.5027209", "0.5026502", "0.49882755...
0.6079625
0
Display couple seat with status
public void displayseat() { String occ; if (this.isOccupied()) { occ = ANSI_RED+"XX"+ANSI_RESET+".."+ANSI_RED+"XX"+ANSI_RESET; } else if (this.isReserved()){ occ = ANSI_GREEN+"ME"+ANSI_RESET+".."+ANSI_GREEN+"ME"+ANSI_RESET; } else { occ = ANSI_BLUE+"__"+ANSI_RESET+".."+ANSI_BLUE+"__"+ANSI_RESET; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printSeats() {\n int rownum = seatPlan.length;\n int colnum = seatPlan[0].length;\n System.out.println(\"---------------- <THE SCREEN>-----------------\");\n System.out.println();\n System.out.print(\"columns \");\n for (int i = 0; i < colnum; i++) {\n ...
[ "0.6990796", "0.69219315", "0.6750288", "0.64940155", "0.63366365", "0.63074756", "0.62802047", "0.6225288", "0.6192619", "0.60394216", "0.58805794", "0.5858466", "0.58042586", "0.5789084", "0.57884717", "0.5784693", "0.5781831", "0.5754185", "0.57378757", "0.5725123", "0.570...
0.69781923
1
Methode commune de sauvegarde lors de l'edition des infos dans la table.
protected void ajaxSave(final Item<T> item, AjaxRequestTarget target) { try { T o = (T) item.getModel().getObject(); updateItem(o); System.out.println("Transaction update saved"); for (Component p:getTargetsToRefresh()) target.add(p); target.add(form); } catch (Exception e) { System.out.pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void datos() {\n int row;\n row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n vista.txtNombre.setText(String.valueOf(vista.tblClientes.getValueAt(row, 1)));\n vista.txtApellido.setText(Strin...
[ "0.6544396", "0.6531299", "0.6528992", "0.6346091", "0.63254523", "0.6315058", "0.62880015", "0.6269095", "0.6237021", "0.6223965", "0.6210191", "0.6199528", "0.61993784", "0.61954325", "0.6190122", "0.6188456", "0.61876935", "0.61841345", "0.61780435", "0.6174826", "0.617288...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_number, container, false); localeSpinner = (Spinner) view.findViewById(R.id.locale); editText = (EditTex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
Converte um objeto para JSON byte array.
public static byte[] convertObjectToJsonBytes(Object object) throws IOException { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); JavaTimeModule module = new JavaTimeModule(); mapper.registerModule(module); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] convertObjectToJsonBytes(Object object) throws IOException {\n\t\treturn MAPPER.writeValueAsBytes(object);\n\t}", "byte[] toJson(Object object) throws Exception {\r\n return this.mapper.writeValueAsString(object).getBytes();\r\n }", "@Override\r\n public byte[] toBinary(Object...
[ "0.7254462", "0.7240447", "0.7207499", "0.67471296", "0.66588235", "0.66149515", "0.6599176", "0.6599176", "0.65843856", "0.6573521", "0.6557755", "0.654276", "0.6494906", "0.64477307", "0.64044255", "0.6378137", "0.63670695", "0.6355817", "0.631104", "0.6306322", "0.6301401"...
0.68342745
3
close the connection statement and resultset.
private static void close(Connection myConnection, Statement myStatment, ResultSet myResultSet) throws SQLException{ if (myResultSet != null) { myResultSet.close(); } if (myStatment != null) { myStatment.close(); } if (myConnection != null) { myConnection.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void close() {\n\t\t try {\n\t\t\tresultSet.close();\n\t\t\tstatement.close();\n\t\t\t connect.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t }", "public void close() {\n\t\tcloseConnection();\n\t\tcloseStatement();\n\t\tcloseResultSet();\n\t}", "public static...
[ "0.7963481", "0.7917776", "0.78579366", "0.78577405", "0.78577405", "0.7836456", "0.7629951", "0.7628296", "0.74719816", "0.7469573", "0.7468363", "0.7461231", "0.745258", "0.73607075", "0.7340203", "0.73298645", "0.7320323", "0.7309353", "0.73088443", "0.7271192", "0.7269237...
0.7063186
33
bookType constructor pre: none. post: intialize all variables to 0 and all string to null.
public bookTypes() { title = ""; copies = 0; price = 0; authorsNum = 0; ISBN = 0; authors = new String []{"","","",""}; publisher = ""; year = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Book() {\n this.bookName = \"Five Point Someone\";\n this.bookAuthorName = \"Chetan Bhagat\";\n this.bookIsbnNumber = \"9788129104595\";\n\n }", "public Book() {\n\t\t// Default constructor\n\t}", "public Book () {\n\t\tsuper ();\n\t\t_title = \"\";\n\t\t_text = \"\";\n\t\t_publi...
[ "0.6790424", "0.6767336", "0.66717184", "0.657859", "0.6528097", "0.65232795", "0.6404486", "0.6345305", "0.6341001", "0.6258243", "0.6222354", "0.61611634", "0.6142054", "0.6079379", "0.60424507", "0.6016968", "0.59291923", "0.5858505", "0.5833556", "0.5813534", "0.579451", ...
0.7900494
0
intialize author numbers = 0
public void clearAuthors() { authorsNum = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumAuthorsAtStart() {\n\t\treturn numAuthorsAtStart;\n\t}", "public void setAuthorisor(String authorisor)\n\t{\n\t\tthis.authorisor = Toolbox.trim(authorisor, 4);\n\t}", "public void setNumAuthorsAtStart(int numAuthorsAtStart)\n\t\tthrows TarlException {\n\t\tif (numAuthorsAtStart > 0)\n\t\t\tthi...
[ "0.64916795", "0.6173322", "0.6117015", "0.6073468", "0.6019448", "0.5958397", "0.5957172", "0.5898619", "0.5898619", "0.5813248", "0.57739127", "0.57697254", "0.575646", "0.5738125", "0.5698188", "0.568594", "0.5638351", "0.5622978", "0.56224453", "0.555648", "0.55563915", ...
0.645202
1
/ batch.end(); dogRunner.renderer.begin(ShapeType.Filled); dogRunner.renderer.setColor(color); dogRunner.renderer.rect(x, y, width, height); dogRunner.renderer.end(); batch.begin();
@Override public void draw(Batch batch, float parentAlpha) { Color origColor = font.getColor(); //batch.setColor(color); font.setColor(color); font.draw(batch, "Start", fontX, fontY); font.setColor(origColor); //batch.setColor(origColor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render(float delta, float runTime) {\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n\n batch.begin();\n// shapeRenderer.begin(ShapeRenderer.ShapeType.Filled);\n// shapeRenderer.setColor(Color.BLUE);\n// shapeRenderer.rect(rabb...
[ "0.710266", "0.6388544", "0.63245267", "0.6307645", "0.6305863", "0.627213", "0.6266907", "0.6264177", "0.62077945", "0.6182257", "0.614078", "0.6138233", "0.6138233", "0.6138233", "0.6137904", "0.61217326", "0.6121511", "0.6113793", "0.6093375", "0.6045693", "0.6045461", "...
0.5634378
98
get other logged in place.
public String getOtherPlace() { return otherPlace; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getCurrentLoggedInUser();", "public User getLoggedUser();", "LoggedUser getLoggedUser();", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuth...
[ "0.6958473", "0.68663126", "0.6835426", "0.64862317", "0.6293786", "0.62251115", "0.61974055", "0.610213", "0.60821974", "0.60453224", "0.60442305", "0.60442305", "0.60442305", "0.60307556", "0.60147464", "0.60042113", "0.5953593", "0.59440327", "0.5915636", "0.58699304", "0....
0.0
-1
Template method Default behavior
protected List<S> toActionClassHook(List<T> recordInfos) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void returnDefault();", "@Override\n public void defaultMethod() {\n I4.super.defaultMethod();\n }", "default boolean isSpecial() { return false; }", "protected abstract S createDefault();", "abstract public E addDefault();", "default void method_default() {\n\t System.out.println(...
[ "0.67212296", "0.64936435", "0.64923155", "0.64301103", "0.6389184", "0.63769144", "0.6293117", "0.62531024", "0.625166", "0.6149062", "0.6114196", "0.6078803", "0.60550505", "0.6011803", "0.6011803", "0.5995804", "0.59716505", "0.59716505", "0.59716505", "0.59716505", "0.597...
0.0
-1
Template method: default behavior
protected Class<? extends DeciTree<S>> getTreeClassHook() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default boolean isSpecial() { return false; }", "@Override\n public void defaultMethod() {\n I4.super.defaultMethod();\n }", "public void returnDefault();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void function()\n {\n }", ...
[ "0.66087633", "0.64799154", "0.6341313", "0.6327941", "0.6297877", "0.6297877", "0.621984", "0.6183041", "0.6168176", "0.6128907", "0.60954547", "0.6083102", "0.60537994", "0.60161394", "0.5997941", "0.5993253", "0.5982636", "0.5930955", "0.59294146", "0.59231263", "0.5915961...
0.0
-1
Template method: default behavior
protected Class<? extends ActionStd<S>> getActionClassHook() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default boolean isSpecial() { return false; }", "@Override\n public void defaultMethod() {\n I4.super.defaultMethod();\n }", "public void returnDefault();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void function()\n {\n }", ...
[ "0.66087824", "0.64799917", "0.6341463", "0.63279635", "0.6297878", "0.6297878", "0.62199104", "0.618305", "0.61682963", "0.61289966", "0.60954404", "0.6083205", "0.6053915", "0.60162336", "0.59979653", "0.59932816", "0.59826446", "0.5930966", "0.5929499", "0.59231585", "0.59...
0.0
-1
Template method to be overridden by subclasses
protected List<T> pruneHook(List<T> recordInfos, List<S> selectedInfos) { logException(new IllegalStateException(SystemMessage.NO_TEMPLATE_IMPLEMENTATION)); throw new IllegalStateException(SystemMessage.NO_TEMPLATE_IMPLEMENTATION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "protected abstract void switchOnCustom();", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n public boolean isGeneric() { \n return false;\n }", "@Override\n\tpublic void dosomethi...
[ "0.62978756", "0.61713994", "0.6144599", "0.6131753", "0.61139524", "0.6106866", "0.6032971", "0.6032971", "0.59949696", "0.5981594", "0.5976414", "0.5941565", "0.5923298", "0.5906005", "0.5906005", "0.5906005", "0.59005314", "0.58710593", "0.58710593", "0.58710593", "0.58710...
0.0
-1
NOTE: the header can be larger than 1 page due to cmd line
@Override public long getVendorRamdiskOffset() { return NumericUtilities.getUnsignedAlignedValue(header_size, getPageSize()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prnHEADER()\n\t{ \n\t try\n\t {\n\t\t\tcl_dat.M_PAGENO +=1;\n\t\t\tcl_dat.M_intLINNO_pbst=0;\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n...
[ "0.64463174", "0.6394738", "0.63446575", "0.62300324", "0.62300324", "0.6215042", "0.6136692", "0.60895747", "0.6079107", "0.60704356", "0.6059702", "0.6054618", "0.6047724", "0.6043613", "0.6039428", "0.6008075", "0.59911156", "0.59252626", "0.58832157", "0.58532566", "0.584...
0.0
-1
private LineFormatter formatter = new LineFormatter(); Method that compares 2 files' content line by line
private static boolean equalFile(String expectedFileName, String actualFileName) { boolean equal; BufferedReader bExpected; BufferedReader bActual; String expectedLine ; String actualLine ; equal = false; bExpected = null ; bActual = null ; try { bExpected = new Buf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void compareFiles() {\n\t \n\t\tprepareLinesFile(fileName1, linesFile1);\n\t\tprepareLinesFile(fileName2, linesFile2);\n\t\t\n\t\t//If both files have the same number of lines then we compare each line\n\t if (linesFile1.size() == linesFile2.size()) {\n\t \t \tfor (int i = 0; i < linesFile1.size(...
[ "0.7072563", "0.6906423", "0.6543597", "0.6538391", "0.6485754", "0.63228446", "0.6165082", "0.6162203", "0.6114118", "0.6055101", "0.59751606", "0.58659226", "0.5810183", "0.58062255", "0.5692159", "0.56522274", "0.5626313", "0.559894", "0.5594716", "0.55877924", "0.5584981"...
0.5814166
12
Just a sample test case to check if the equalFile method works
@Test void test() throws IOException { File f1=new File("testcase1.txt"); f1.createNewFile(); FileWriter fileWriter; fileWriter = new FileWriter(f1.getPath()); String str1="I am a test string and number one two three four five six seven eight nine ten eleven twelve."; fileWriter.write(str1); f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testCompareEqual() {\n System.out.println(\"compare\");\n FileNameComparator instance = new FileNameComparator();\n int expResult = 0;\n int result = instance.compare(testFileA, testFileA);\n Assert.assertEquals(expResult, result);\n }", "private static boolean equalFile(Stri...
[ "0.75571585", "0.72940546", "0.72695833", "0.7216742", "0.71765584", "0.68195724", "0.6812948", "0.6812596", "0.6736037", "0.6614584", "0.6566829", "0.6564356", "0.6542978", "0.6525659", "0.6480451", "0.6477998", "0.6477844", "0.6475993", "0.6416637", "0.6406711", "0.63883215...
0.62389374
34
Public method to get all SetupUrls in order.
@SuppressWarnings("unchecked") public List<SetupUrls> findAll() { Session session = getSession(); Criteria crit = session.createCriteria(SetupUrls.class) .addOrder(Order.asc(ORDER)); return (List<SetupUrls>) crit.list(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Scheduled(fixedRate = checkRate - 1000) // Un minuto menos\n public void getUrls() {\n urlList = shortURLRepository.listAll();\n }", "public URL[] getUrls() {\n\t\treturn urls.toArray(new URL[urls.size()]);\n\t}", "public Set<URL> getTargetPageURLs(){\n\t\tSet<URL> urls = new HashSet<URL>();\n\t\...
[ "0.5908128", "0.5860301", "0.58224285", "0.5661132", "0.5657672", "0.55913067", "0.5461419", "0.54606956", "0.545669", "0.5453134", "0.5434774", "0.53890324", "0.5268963", "0.52266634", "0.52191305", "0.52150667", "0.51848865", "0.51695406", "0.516495", "0.5140309", "0.513842...
0.78030103
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use followi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589819", "0.71670026", "0.71134603", "0.7056349", "0.7030202", "0.70289457", "0.6996126", "0.6975816", "0.6888662", "0.6873633", "0.6853793", "0.6843488", "0.6843488", "0.68354696", "0.68354696", "0.68354696", "0.6819225", "0.6818393", "0.6797782", "0.6780766", "0.6761152...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.8763708", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.85319316", "0.85319316", "0.85287464", "0.8528...
0.0
-1
Tests configureKafka() with a null input properties.
@Test public void testConfigureKafkaNullProps() { Map<String, Object> config = Utils.configureKafka(null); Assert.assertEquals(new HashMap<>(), config); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConfigureKafkaNoUsername() {\n Map<String, String> props = new HashMap<>();\n props.put(PASSWORD, \"password\");\n Map<String, Object> config = Utils.configureKafka(props);\n Assert.assertEquals(new HashMap<>(), config);\n }", "@Test\n public void testConfigureKafkaNoPasswo...
[ "0.7776921", "0.76515687", "0.6787464", "0.6698596", "0.66520274", "0.6310002", "0.576985", "0.5613455", "0.5590926", "0.55871284", "0.5553768", "0.55346847", "0.55141157", "0.5502171", "0.54886585", "0.54637635", "0.54433393", "0.5414486", "0.5411563", "0.5373385", "0.536383...
0.843769
0
Tests configureKafka() without a Password in input properties.
@Test public void testConfigureKafkaNoPassword() { Map<String, String> props = new HashMap<>(); props.put(USERNAME, "username"); Map<String, Object> config = Utils.configureKafka(props); Assert.assertEquals(new HashMap<>(), config); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConfigureKafkaNoUsername() {\n Map<String, String> props = new HashMap<>();\n props.put(PASSWORD, \"password\");\n Map<String, Object> config = Utils.configureKafka(props);\n Assert.assertEquals(new HashMap<>(), config);\n }", "@Test\n public void testConfigureKafka() {\n ...
[ "0.83904344", "0.7710053", "0.67299855", "0.59020275", "0.5802715", "0.54860485", "0.54735214", "0.5360955", "0.5347198", "0.53192556", "0.52639264", "0.5262002", "0.52609295", "0.52467793", "0.52406216", "0.52150583", "0.52104646", "0.51850694", "0.51846176", "0.5180827", "0...
0.88181055
0
Tests configureKafka() without a Username in input properties.
@Test public void testConfigureKafkaNoUsername() { Map<String, String> props = new HashMap<>(); props.put(PASSWORD, "password"); Map<String, Object> config = Utils.configureKafka(props); Assert.assertEquals(new HashMap<>(), config); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConfigureKafkaNoPassword() {\n Map<String, String> props = new HashMap<>();\n props.put(USERNAME, \"username\");\n Map<String, Object> config = Utils.configureKafka(props);\n Assert.assertEquals(new HashMap<>(), config);\n }", "@Test\n public void testConfigureKafka() {\n ...
[ "0.8391633", "0.7380286", "0.66859984", "0.6000575", "0.5884113", "0.570467", "0.5621901", "0.55494434", "0.54929876", "0.545737", "0.5400985", "0.5393212", "0.5364927", "0.5293584", "0.5288234", "0.5274564", "0.52340335", "0.52068466", "0.51971215", "0.5154466", "0.5119283",...
0.864695
0
Tests configureKafka() with an appropriate input properties.
@Test public void testConfigureKafka() { Map<String, String> props = new HashMap<>(); props.put(USERNAME, "username"); props.put(PASSWORD, "password"); Map<String, Object> expectedConfig = new HashMap<>(); expectedConfig.put(SaslConfigs.SASL_MECHANISM, ScramMechanism.SCRAM_SHA_512.mechanismName()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConfigureKafkaNoUsername() {\n Map<String, String> props = new HashMap<>();\n props.put(PASSWORD, \"password\");\n Map<String, Object> config = Utils.configureKafka(props);\n Assert.assertEquals(new HashMap<>(), config);\n }", "@Test\n public void testConfigureKafkaNoPasswo...
[ "0.7374338", "0.723919", "0.7197733", "0.69771427", "0.6269411", "0.6209521", "0.61195225", "0.6087073", "0.5996828", "0.595661", "0.59551704", "0.59187853", "0.5893352", "0.5851146", "0.5844761", "0.5828661", "0.58281934", "0.57991886", "0.57937634", "0.57906747", "0.5760911...
0.81269103
0
Tests getKafkaCredentialsFromVault() with an invalid url.
@Test public void testGetKafkaCredentialsFromVaultInvalidUrl() { Map<String, Map<String, String>> credentials = getKafkaCredentialsFromVault("some-url", "some-token"); Assert.assertEquals(new HashMap<>(), credentials); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testInvalidAuthenticationCredentials() throws Exception {\n client = new PaysafeApiClient(\"username\", \"password\", Environment.TEST, merchantAccountNumber);\n\n try {\n SingleUseToken sObjResponse = client.customerVaultService().createSingleUseToken(\n Sin...
[ "0.56279933", "0.5423962", "0.5413268", "0.5218087", "0.52145284", "0.5209623", "0.5203696", "0.5199489", "0.5156659", "0.5150591", "0.51327527", "0.5112203", "0.51074296", "0.5056694", "0.50345457", "0.502406", "0.50153065", "0.5009214", "0.5005211", "0.4976924", "0.497472",...
0.8719781
0
end of main method create other methods method check char with string
public static boolean checkchar(String sentence, int total){ if (total>sentence.length()){ //if the number entered is bigger than the total length for (int i =0; i < sentence.length(); i++) { //just compare for the whole length if (Character.isLetter(sentence.charAt(i))==false){ //if it is not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean checkChar(String s1, String s2);", "@Test\n\tpublic void secindForInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\ta...
[ "0.7420439", "0.7353079", "0.721534", "0.70939976", "0.69690627", "0.69538957", "0.6862357", "0.6839629", "0.6786915", "0.67610157", "0.67595375", "0.6719351", "0.6717649", "0.67042893", "0.6637025", "0.6615993", "0.6615254", "0.661357", "0.6554593", "0.65391725", "0.65244627...
0.6248151
36
end of checkchar method
public static boolean checkchar(String sentence){ for (int i =0; i < sentence.length(); i++){ //just compare for the whole length if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter return false; //return false } return true; //otherwise return true ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChar();", "private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }", "boolean hasHasCharacter();", "private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\...
[ "0.773342", "0.7276603", "0.7263064", "0.7249116", "0.7229974", "0.71430415", "0.71079284", "0.70939124", "0.70481247", "0.7011552", "0.70113194", "0.6977039", "0.6968501", "0.6946711", "0.692162", "0.689953", "0.6882262", "0.68481684", "0.6843065", "0.68145585", "0.6794806",...
0.63740057
36
Eclipse getters and setters
public String getPersonCode() { return personCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String get();", "public void get() {\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public java.lang.String getOldProperty_description(){\n return localOldProperty_description;\n ...
[ "0.610916", "0.6080585", "0.60194236", "0.5997366", "0.5929047", "0.592717", "0.58928293", "0.5850548", "0.58291876", "0.5812475", "0.5726587", "0.57107747", "0.5710315", "0.5691069", "0.5677786", "0.5669182", "0.5665944", "0.56469244", "0.5642332", "0.5634279", "0.56286967",...
0.0
-1
TODO: Add additional methods here
public void addEmail(String email) { this.emails.add(email); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "protected MetadataUGWD() {/* intentionally empty block */...
[ "0.57208496", "0.55947125", "0.5495357", "0.54407805", "0.54377353", "0.5425327", "0.53937846", "0.5380373", "0.5357805", "0.5344002", "0.5344002", "0.5344002", "0.5344002", "0.5344002", "0.5344002", "0.527839", "0.5263481", "0.52543116", "0.52538383", "0.5234837", "0.5230928...
0.0
-1
Create a new REST template for us to issue web calls.
@Bean RestTemplate getRestTemplate() { return new RestTemplate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"users/templates\")\n Call<TemplateResource> createUserTemplate(\n @retrofit2.http.Body TemplateResource userTemplateResource\n );", "RESTElement createRESTElement();", "private RestTemplate getRestTemplateForPatch() {\n HttpComponen...
[ "0.69727606", "0.6331061", "0.62411076", "0.614315", "0.60166496", "0.6001534", "0.59962255", "0.58725154", "0.5849307", "0.5835624", "0.5792371", "0.57831913", "0.57647663", "0.5744846", "0.574254", "0.57401806", "0.56914645", "0.5669049", "0.5624838", "0.56230575", "0.56129...
0.52773446
41
Here we get employee details and address details as list
public Employee(int id, String name, double salary, Date dateOfBirth, String mobileNumber, String emailId, List<Address> address) { this.name = name; this.id = id; this.salary = salary; this.dateOfBirth = dateOfBirth; this.address = address; this.mobileNumber ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Employee> allEmpInfo();", "public List<EmployeeDetails> getEmployeeDetails();", "@Override\r\n\tpublic List<Employee> getdetails() {\n\t\treturn empdao.findAll();\r\n\t}", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeSe...
[ "0.7342536", "0.72670466", "0.7167473", "0.70633566", "0.6843961", "0.68355864", "0.68210226", "0.68174624", "0.6788897", "0.67554647", "0.6611698", "0.65937346", "0.65545607", "0.6524981", "0.64625585", "0.6447682", "0.64475346", "0.6330506", "0.6307142", "0.62974274", "0.62...
0.60938156
44
Here we get employee details,address details as list and project as list
public Employee(int id, String name, double salary, Date dateOfBirth, String mobileNumber, String emailId, List<Address> address, List<Project> project) { this.id = id; this.name = name; this.salary = salary; this.dateOfBirth = dateOfBirth; this.mobileNumb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Employee> allEmpInfo();", "public List<Project> findProjectByEmpId(String employeeId) {\n\t\tProject project;\r\n\t\tList<Project> projectList = new ArrayList<Project>();\r\n\t\tString query = \"SELECT P.`PROJECT_ID`,PROJECT_NAME,MANAGER_ID FROM TA_PROJECTS P JOIN TA_EMPLOYEE_PROJECT E ON E.`PROJECT_ID` = P...
[ "0.66002244", "0.6422036", "0.6365796", "0.63455445", "0.6236975", "0.62217367", "0.6146488", "0.6132653", "0.6119741", "0.61002266", "0.6095066", "0.60866505", "0.6039749", "0.6026903", "0.6008403", "0.60031223", "0.59651923", "0.59446526", "0.5929931", "0.5925863", "0.59166...
0.60465634
12
Here we get employee details
public Employee(int id, String name, double salary, Date dateOfBirth, String emailId, String mobileNumber) { this.id = id; this.name = name; this.salary = salary; this.dateOfBirth = dateOfBirth; this.emailId = emailId; this.mobileNumber = mobileNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Employeedetails getEmployeeDetailByName(String employeeId);", "@Override\r\n\tpublic List<Employee> getdetails() {\n\t\treturn empdao.findAll();\r\n\t}", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmploye...
[ "0.7708388", "0.7619725", "0.7571602", "0.74223316", "0.7404974", "0.73685586", "0.73351026", "0.72504276", "0.7216056", "0.72068924", "0.71624297", "0.7072393", "0.7053331", "0.7017446", "0.6985522", "0.69788647", "0.6937188", "0.6907421", "0.690164", "0.68328273", "0.681849...
0.0
-1
/ protected ArrayList arrDatoGeneral; protected Connexion connexion; protected DatosCliente datosCliente; protected ConnexionType connexionType; protected ParameterDbType parameterDbType; protected EntityManagerFactory entityManagerFactory; protected DatosDeep datosDeep; protected Boolean isConDeep=false;
public ValorPorUnidadLogic()throws SQLException,Exception { super(); try { this.valorporunidadDataAccess = new ValorPorUnidadDataAccess(); this.valorporunidads= new ArrayList<ValorPorUnidad>(); this.valorporunidad= new ValorPorUnidad(); this.valorporunidadObject=new Object(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatoGeneralEmpleadoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess = new DatoGeneralEmpleadoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleados= new ArrayList<DatoGeneralEmpleado>();\r\n\t\t\tthis.datogeneralemplead...
[ "0.7088472", "0.70724094", "0.69842136", "0.68938226", "0.68871576", "0.6833586", "0.657058", "0.65588295", "0.6555329", "0.6426482", "0.6183737", "0.6060377", "0.60320514", "0.6012887", "0.60053366", "0.6004844", "0.5956013", "0.594451", "0.59404016", "0.5927973", "0.5906358...
0.66892916
6
Trae cualquier tipo de query select
public void getEntitiesWithConnection(String sQuerySelect,String sFinalQuery,List<String> listColumns,DeepLoadType deepLoadType,Boolean conMapGenerico)throws Exception { valorporunidads = new ArrayList<ValorPorUnidad>(); QueryWhereSelectParameters queryWhereSelectParameters=new QueryWhereSelectParameters(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SelectQuery createSelectQuery();", "protected T selectImpl(String sql, String... paramentros) {\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = BancoHelper.db.rawQuery(sql, paramentros);\n\t\t\t\n\t\t\tif (cursor.getCount() > 0 && cursor.moveToFirst()) {\n\t\t\t\treturn fromCursor(cursor);\n\t\t\t}\n\n\t\t...
[ "0.6894108", "0.6673102", "0.6364868", "0.63426423", "0.6324614", "0.6252882", "0.6225898", "0.62130845", "0.6179456", "0.6141216", "0.6114035", "0.60982764", "0.60917705", "0.6085731", "0.60822606", "0.6052532", "0.60362256", "0.6034554", "0.6023656", "0.6018007", "0.5983797...
0.0
-1
VERIFICA EL OBJETO NO IMPORTA ESTADO
public void getSetVersionRowValorPorUnidadWithConnection()throws Exception { if(valorporunidad.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) { //TEMPORAL //if((valorporunidad.getIsDeleted() || (valorporunidad.getIsChanged()&&!valorporunidad.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void abrirEntTransaccion(){\n try{\n entTransaccion = new ObjectInputStream(\n Files.newInputStream(Paths.get(\"trans.ser\")));\n }\n catch(IOException iOException){\n System.err.println(\"Error al abrir el archivo. Terminado.\");\n Syste...
[ "0.67007095", "0.6580584", "0.61618423", "0.6146253", "0.61434245", "0.5972748", "0.59514666", "0.58484036", "0.58304316", "0.5730107", "0.57244587", "0.5689938", "0.5676898", "0.56538206", "0.5633796", "0.5615445", "0.55863506", "0.5583309", "0.55786115", "0.5572966", "0.556...
0.0
-1
//AuditoriaLogicAdditional auditoriaLogicAdditional=new AuditoriaLogicAdditional(); //auditoriaLogicAdditional.setConnexion(connexion); //AuditoriaDataAccess.SCHEMA="bydan_erp";
public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception { try { if(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalResidenciaColaborador() {\n //ORM\n }", "private static void registrarAuditoriaDetallesDatoGeneralEmpleado(Connexion connexion,DatoGeneralEmpleado datogeneralempleado)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(...
[ "0.61131954", "0.60374564", "0.59772336", "0.594911", "0.58838975", "0.58799934", "0.58360255", "0.5834582", "0.57943714", "0.57771933", "0.57728976", "0.5767035", "0.57539874", "0.574741", "0.5727968", "0.5711639", "0.5709089", "0.56994975", "0.5697687", "0.56664056", "0.565...
0.0
-1
//AuditoriaLogicAdditional auditoriaLogicAdditional=new AuditoriaLogicAdditional(); //auditoriaLogicAdditional.setConnexion(connexion); //AuditoriaDataAccess.SCHEMA="bydan_erp";
public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception { try { if(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) { if(valorporunidad.getIsNew()) { ////auditoriaLogicAdditional.registrar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalResidenciaColaborador() {\n //ORM\n }", "private static void registrarAuditoriaDetallesDatoGeneralEmpleado(Connexion connexion,DatoGeneralEmpleado datogeneralempleado)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(...
[ "0.6114701", "0.6037152", "0.5977612", "0.59496546", "0.58839744", "0.58799344", "0.5836617", "0.58342576", "0.57949376", "0.5776977", "0.57667536", "0.57539296", "0.574734", "0.57270557", "0.5711543", "0.570983", "0.57004046", "0.5697066", "0.5666479", "0.56550497", "0.56310...
0.5772642
10
//AuditoriaDetalleLogicAdditional auditoriaDetalleLogicAdditional= new AuditoriaDetalleLogicAdditional(); //auditoriaDetalleLogicAdditional.setConnexion(connexion); //AuditoriaDetalleDataAccess.SCHEMA="bydan_erp";
private static void registrarAuditoriaDetallesValorPorUnidad(Connexion connexion,ValorPorUnidad valorporunidad)throws Exception { String strValorActual=null; String strValorNuevo=null; if(valorporunidad.getIsNew()||!valorporunidad.getid_empresa().equals(valorporunidad.getValorPorUnidadOriginal().g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void registrarAuditoriaDetallesDatoGeneralEmpleado(Connexion connexion,DatoGeneralEmpleado datogeneralempleado)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(datogeneralempleado.getIsNew()||!datogeneralempleado.getid_numero...
[ "0.63768387", "0.6366135", "0.6298859", "0.6228739", "0.6217979", "0.6133731", "0.61321145", "0.61269665", "0.6062077", "0.6031903", "0.60248923", "0.5996012", "0.59745747", "0.5952388", "0.5946748", "0.5943758", "0.5943608", "0.59267366", "0.5925493", "0.5924288", "0.5915978...
0.5808184
29
firebase setters and getters
public void setCorrect_answer(String correct_answer) { this.correct_answer=correct_answer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SetProperty(Builder builder) {\n super(builder);\n }", "private void addMember(String firstName, String lastName, String emailId) {\n Log.e(\"AddMember\", \"Fn \" + firstName + \", Ln \" + lastName + \"eid \" + emailId);\n\n\n// myRef.setValue(\"Hello, World!\");\n St...
[ "0.59551084", "0.58145326", "0.5780312", "0.57798237", "0.5754718", "0.57433486", "0.5739784", "0.5684166", "0.5622293", "0.5615572", "0.56140286", "0.5611932", "0.5556149", "0.5523981", "0.5517261", "0.54722977", "0.5454161", "0.54368365", "0.5402593", "0.53818417", "0.53808...
0.0
-1
Create the ButtonColumn to be used as a renderer and editor. The renderer and editor will automatically be installed on the TableColumn of the specified column.
public CheckboxColumn(JTable table, int column){ this.table = table; chkbox=new JCheckBox("", false); TableColumnModel columnModel = table.getColumnModel(); columnModel.getColumn(column).setCellRenderer( this ); columnModel.getColumn(column).setCellEditor( this ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Column createColumn();", "private void createRowForNewColumnButton(Composite section2)\n {\n buttonNewColumn = toolkit.createButton(section, \"New Column...\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonNewColumn, SWT.TOP);\n buttonNewColumn.addSelectionListener(new SelectionListener...
[ "0.62431324", "0.6216283", "0.5971061", "0.5852302", "0.57174176", "0.57055324", "0.56799674", "0.56617224", "0.55844796", "0.55776393", "0.5573299", "0.5572073", "0.55690694", "0.5446293", "0.54357", "0.54356885", "0.54346985", "0.5422028", "0.5412787", "0.54088753", "0.5403...
0.51602995
44
/ In editing mode. Checkbox has been checked.
@Override public void actionPerformed(ActionEvent e) { int row = table.convertRowIndexToModel( table.getEditingRow() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void checkEditing() {\n }", "boolean isEdit();", "public abstract void checkEditing();", "public void setEdit(boolean bool){\r\n edit = bool;\r\n }", "void setUserIsActiveEditable(boolean b);", "public Boolean getEditFlag() {\n return editFlag;\n }", "protec...
[ "0.7199986", "0.70196766", "0.6997419", "0.6966827", "0.6913045", "0.68936306", "0.6890757", "0.6802934", "0.6758545", "0.6758545", "0.67034835", "0.6699325", "0.6619231", "0.6616557", "0.6610919", "0.6609878", "0.6603316", "0.65952563", "0.65638745", "0.6554465", "0.65303975...
0.0
-1
Initialize your data structure here.
public Twitter355() { followerMap = new HashMap<>(); followeeMap = new HashMap<>(); tweetMap = new HashMap<>(); selfTweetMap = new HashMap<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n }", "private void initData() {\n\t}", "private void initData() {\n\n }", "public void initData() {\n }", "public void initData() {\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\...
[ "0.79946685", "0.7973242", "0.7808862", "0.77763873", "0.77763873", "0.7643394", "0.76371324", "0.76371324", "0.76371324", "0.76371324", "0.76371324", "0.76371324", "0.75553316", "0.7543321", "0.7543321", "0.75426376", "0.75426376", "0.75426376", "0.7532583", "0.75228804", "0...
0.0
-1
Retrieve the 10 most recent tweet ids in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user herself. Tweets must be ordered from most recent to least recent.
public List<Integer> getNewsFeed(int userId) { List<Node> tweets = tweetMap.get(userId); if (tweets == null) { return new LinkedList<>(); } return tweets.stream().map(node -> node.tweetId).collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Integer> getNewsFeed(int userId) {\n if (!userId2TopTenTweets.containsKey(userId)) {\n return new ArrayList<>(0);\n }\n\n\n userId2TopTenTweets.get(userId).sort((i1, i2)->i2.getTimestamp() - i1.getTimestamp() > 0 ? 1:i2.getTimestamp() - i1.getTimestamp() == 0 ? 0 : -1);...
[ "0.7397653", "0.7278448", "0.71187943", "0.71106225", "0.70958", "0.70919716", "0.7091873", "0.7042934", "0.7003579", "0.7002558", "0.69657755", "0.69579434", "0.68434596", "0.67740476", "0.6608485", "0.6443418", "0.6273183", "0.6068626", "0.60614294", "0.5999146", "0.5979056...
0.6167249
17
consulta de saldo por pantalla
public void consultaDinero(){ System.out.println(this.getMonto()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public long deposito(long deposito) {\n saldo += deposito;\r\n \r\n // Mediante un cuadro de dialogo se anuncia el nuevo saldo\r\n JOptionPane.showMessageDialog(null, \"Su nuevo saldo es: \" + saldo);\r\n\r\n return saldo;\r\n\r\n }", "@Override\n\t/*Método ...
[ "0.70826876", "0.6545989", "0.64924955", "0.6456441", "0.6426071", "0.6426071", "0.6377788", "0.6377788", "0.63637245", "0.63482845", "0.6314449", "0.63062054", "0.63017297", "0.62196094", "0.61748904", "0.6169963", "0.61367935", "0.61226326", "0.60719734", "0.6067571", "0.60...
0.0
-1
agregar saldo a la cuenta
public void ponerDinero(double platita){ if (platita > 0) setMonto(getMonto() + platita); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public long deposito(long deposito) {\n saldo += deposito;\r\n \r\n // Mediante un cuadro de dialogo se anuncia el nuevo saldo\r\n JOptionPane.showMessageDialog(null, \"Su nuevo saldo es: \" + saldo);\r\n\r\n return saldo;\r\n\r\n }", "public void depositar(...
[ "0.7241217", "0.70261574", "0.6871407", "0.6842357", "0.6838458", "0.67256725", "0.65775", "0.6433521", "0.64181143", "0.6411422", "0.629421", "0.629421", "0.6264843", "0.6262658", "0.6262658", "0.6243987", "0.6243355", "0.62368363", "0.62149286", "0.62103987", "0.6181162", ...
0.0
-1
sacar plata de la cuenta
public double sacarDinero(double platita){ if (getMonto() >= platita){ setMonto(getMonto() - platita); return platita; } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new H...
[ "0.6520831", "0.64898443", "0.6470454", "0.6394333", "0.6317282", "0.6286594", "0.6282725", "0.62603915", "0.6253036", "0.6220981", "0.62200105", "0.6219661", "0.6212622", "0.62104195", "0.6207795", "0.62011266", "0.61939603", "0.6181485", "0.61687464", "0.6159506", "0.615152...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Print the method // SAME AS ASTERICKS QUESTION!
public void printMaze(char[][] maze) { // Go through every row for (int row = 0; row < maze.length; row++) { // Go though column for (int col = 0; col < maze[row].length; col++) { System.out.print(maze[row][col]); } System.out.printl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}", "public void printYourself(){\n\t}", "public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Method name: \" + name);\r\n\t\tSystem.out.println(\"Return type: \" + returnType);\r\n\t\tSystem.out.println(\"Modifiers: \" + modifiers);\r\n\r\...
[ "0.74804056", "0.73718464", "0.73001343", "0.7032874", "0.7022817", "0.70175093", "0.7006164", "0.7001829", "0.7001829", "0.69890356", "0.69756347", "0.69608396", "0.69106877", "0.69106877", "0.69106877", "0.69106877", "0.68995893", "0.6888787", "0.6887347", "0.68616784", "0....
0.0
-1
Bad conditions Not even in the maze
public boolean solveMaze(char[][] maze, int row, int col) { if (row < 0 || row >= maze.length) { return false; } // Not even in the maze if (col < 0 || col >= maze.length) { return false; } // Can't move to this spot(Hit a wall and hit a spo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n ...
[ "0.6792285", "0.6778577", "0.6688429", "0.65337795", "0.6475296", "0.64351237", "0.6425798", "0.64072084", "0.6343267", "0.6336661", "0.63207144", "0.6315848", "0.6309471", "0.6307548", "0.6302988", "0.6276479", "0.6272757", "0.6263659", "0.62430525", "0.6216042", "0.6200257"...
0.6317355
11
This will be implemented by the House and Condo classes
public abstract double calculateAppraisalPrice();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }", ...
[ "0.6404364", "0.62060386", "0.60516363", "0.59385675", "0.5881693", "0.586149", "0.57225406", "0.56825775", "0.56760716", "0.5672043", "0.56699806", "0.5664282", "0.5637297", "0.5620679", "0.5607407", "0.5602862", "0.5602293", "0.5581698", "0.5578382", "0.55214703", "0.551220...
0.0
-1
We make this protected so that not just anybody can change the Appraisal Price just because they calculated it. That would make some of our buyers quite unhappy!
protected void setAppraisalPrice(double ap) { appraisalPrice = ap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double calculateAppraisalPrice();", "@Override\r\n\tpublic double CalculatePrice() {\n\t\treturn 0;\r\n\t}", "@Override\n public double getPrice() {\n return souvenir.getPrice() + 20;\n }", "double purchasePrice();", "public void payEconomical() {\n if (this.balance >= 2...
[ "0.74185234", "0.64789015", "0.64322233", "0.64032227", "0.6367188", "0.63518214", "0.6308667", "0.6268758", "0.62619203", "0.6257862", "0.62258875", "0.6185788", "0.6182317", "0.61771315", "0.61675453", "0.6166085", "0.6156515", "0.61517143", "0.6146419", "0.6144849", "0.611...
0.729729
1