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
Enable the start button
protected void enableStartButton(boolean enable) { m_startBut.setEnabled(enable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n m_enabled = true;\n }", "public void enableBeginButton(boolean bool) {\n\t\tbegin.setEnabled(bool);\n\t}", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public void updateStartButton(){\n if (getPrimHasRun() == true){\n startButton.setAlpha(0.5f)...
[ "0.78118306", "0.75889266", "0.75829166", "0.7525716", "0.7480814", "0.7375488", "0.7363032", "0.73625964", "0.7353882", "0.72830033", "0.723942", "0.7214462", "0.7083174", "0.7044068", "0.700929", "0.6985196", "0.69289786", "0.6878883", "0.6821285", "0.681695", "0.6815436", ...
0.827187
0
Opens the named result in a separate frame
protected void openResultFrame(String name) { StringBuffer buffer = m_history.getNamedBuffer(name); JTabbedPane tabbedPane = m_framedOutputMap.get(name); if (buffer != null && tabbedPane == null) { JTextArea textA = new JTextArea(20, 50); textA.setEditable(false); textA.setFont(new Font("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void resultPopup(final String name, int x, int y) {\n final String selectedName = name;\n JPopupMenu resultListMenu = new JPopupMenu();\n \n JMenuItem showMainBuff = new JMenuItem(\"View in main window\");\n if (selectedName != null) {\n showMainBuff.addActionListener(new ActionListen...
[ "0.6416849", "0.6052934", "0.6005124", "0.59740025", "0.5817895", "0.5803494", "0.57454133", "0.5699128", "0.5685408", "0.5661", "0.5660333", "0.5573635", "0.55545115", "0.5549685", "0.5542348", "0.5496237", "0.54740757", "0.54644555", "0.54478145", "0.54476386", "0.5434173",...
0.8031122
0
Pops up a contextual menu in the result history list
protected void resultPopup(final String name, int x, int y) { final String selectedName = name; JPopupMenu resultListMenu = new JPopupMenu(); JMenuItem showMainBuff = new JMenuItem("View in main window"); if (selectedName != null) { showMainBuff.addActionListener(new ActionListener() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void hookContextMenu() {\n\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from...
[ "0.6861732", "0.68428594", "0.67527", "0.65516627", "0.6460148", "0.6457302", "0.64379305", "0.6402329", "0.63134485", "0.6309047", "0.6308536", "0.6300881", "0.62838745", "0.62797856", "0.627131", "0.6239355", "0.62254256", "0.619455", "0.61713684", "0.61358833", "0.6120151"...
0.6199592
17
Load a forecaster and add it to the history list
protected void loadForecaster() { File sFile = null; int returnVal = m_fileChooser.showOpenDialog(this); if (returnVal == m_fileChooser.APPROVE_OPTION) { sFile = m_fileChooser.getSelectedFile(); if (m_log != null) { m_log.statusMessage("Loading forecaster..."); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadHistory(SyncedList<MSensor> history) {\n this.history = history;\n }", "List<HistoryData> loadAllHistoryData();", "public void add(Load load){\n\t\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamR...
[ "0.62162375", "0.5513379", "0.54949534", "0.5353376", "0.5349431", "0.5344388", "0.52954274", "0.5275724", "0.5269837", "0.5233251", "0.52081734", "0.51844454", "0.5161474", "0.5159172", "0.5133005", "0.51090103", "0.50922155", "0.50675493", "0.50584567", "0.50581944", "0.504...
0.6676846
0
Serialize a forecaster out to a file
protected void saveForecaster(String name, TSForecaster forecaster, Instances structure) { File sFile = null; boolean saveOK = true; int returnVal = m_fileChooser.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { sFile = m_fileChooser.getSelectedFile(); if (!s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(file...
[ "0.6586123", "0.6344652", "0.60864204", "0.6036489", "0.6004235", "0.5969633", "0.5951988", "0.5923388", "0.5909829", "0.5834531", "0.5811376", "0.5719602", "0.5691843", "0.5675943", "0.56744444", "0.5673868", "0.56715643", "0.5636538", "0.56264156", "0.5620242", "0.55830663"...
0.63215584
2
Updates the display with the results from the currently selected entry in the result history list
protected synchronized void updateComponentTabs(String name, JTabbedPane outputPane) { // remove any tabs that are not the text output int numTabs = outputPane.getTabCount(); if (numTabs > 1) { for (int i = numTabs - 1; i > 0; i--) { outputPane.removeTabAt(i); } } // see ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void resultsUpdated() {\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t\tif(mModel.getResults().size() == 1){\r\n\t\t\tmModel.selectPerson(mModel.getResults().get(0));\r\n\t\t\tmController.getProfilePicture(mModel.getResults().get(0).sciper);\r\n\t\t\tmDialog = new PersonDetailsDialog(this, mModel.g...
[ "0.69534415", "0.6212199", "0.61848724", "0.6137206", "0.6122751", "0.60618186", "0.604656", "0.6041361", "0.60197586", "0.5977221", "0.5971299", "0.5894363", "0.5880117", "0.5879362", "0.5859228", "0.58432597", "0.58400124", "0.5832458", "0.5786397", "0.57464296", "0.574424"...
0.0
-1
Updates the tabs in the main display.
protected synchronized void updateMainTabs(String entryName) { String name = m_history.getSelectedName(); if (!name.equals(entryName)) { return; } updateComponentTabs(name, m_outputPane); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void updateTabState();", "private void updateTabButtons() {\n\t\tif (currentTab == null || currentTab.equals(\"history\")) {\n\t\t\thistory.setDisable(true);\n\t\t\tlanguage.setDisable(false);\n\t\t} else if (currentTab == null || currentTab.equals(\"language\")) {\n\t\t\tlanguage.setDisable(t...
[ "0.74738693", "0.6629211", "0.6620609", "0.64234465", "0.6369335", "0.63432133", "0.6291333", "0.6258903", "0.61900747", "0.61768526", "0.61672807", "0.6163168", "0.6091528", "0.60662943", "0.60645956", "0.6058313", "0.6038355", "0.60297567", "0.6024504", "0.6004876", "0.5939...
0.6905175
1
Set the log to use
public void setLog(Logger log) { if (log instanceof JComponent) { if (m_log != null) { remove((JComponent)m_log); } m_log = log; add((JComponent)m_log, BorderLayout.SOUTH); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLog (Logger log) {\n this.log = log;\n }", "public void setLOG(Logger newLog)\r\n\t{\r\n\t\tlog = newLog;\r\n\t}", "void setLogFile(File log);", "public void setLog(Log log) {\r\n this.delegate.setLog(log);\r\n }", "public void setLog(String logName) {\r\n this.delegate....
[ "0.775041", "0.749579", "0.7459221", "0.7406854", "0.7387114", "0.7208518", "0.720592", "0.7179701", "0.71588403", "0.71109796", "0.70941985", "0.7052414", "0.7037837", "0.6976175", "0.6966206", "0.6894244", "0.6852857", "0.685144", "0.6821555", "0.67647326", "0.669783", "0...
0.62977034
48
Set the training instances to use
public void setInstances(Instances insts) throws Exception { // if this is the first set of instances seen then // install a listener on the simple config target panel's // table model so that we can enable/disable the start // button m_sortedCheck = false; boolean first = (m_simpleC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setDataset(final Instances instances) {\n\n\t}", "public InstanceGenerator(Instances training, Instances testing)\n {\n mTraining = training;\n mTesting = testing;\n }", "@Override\n\tpublic void setInstances(Instances insts) {\n\t\t\n\t}", "public void train() {\...
[ "0.66439515", "0.66014993", "0.6464587", "0.64414746", "0.63867855", "0.6385683", "0.61884916", "0.61291534", "0.6113696", "0.6075539", "0.6050825", "0.59568286", "0.59561443", "0.59365225", "0.5906458", "0.5865738", "0.58541584", "0.5807938", "0.5800142", "0.57869524", "0.57...
0.6115032
8
Check to see if the data is sorted in order of the date time stamp (if present)
protected void sortCheck() { if (m_instances == null) { return; } if (m_simpleConfigPanel.isUsingANativeTimeStamp()) { String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField(); Attribute timeStampAtt = m_instances.attribute(timeStampF); if (timeStampAtt != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSorted(){\n\tfor (int i = 0; i < (_size - 2); i++){\n\t if (_data[i].compareTo(_data[i + 1]) > 0){\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }", "boolean hasOrderByDay();", "boolean areSorted();", "private static boolean isInOrderTimestamp(\n long timestamp,\n ...
[ "0.67725754", "0.6720331", "0.65522736", "0.65505326", "0.63987", "0.6281803", "0.61534375", "0.6145648", "0.6121534", "0.6111012", "0.60559356", "0.6054158", "0.60358423", "0.6019825", "0.5982893", "0.5982893", "0.5980489", "0.5976513", "0.5957519", "0.5956309", "0.59483993"...
0.64897496
4
Stop the currently running thread
protected void stopForecaster() { if (m_runThread != null) { m_runThread.interrupt(); m_runThread.stop(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }", "public void stop() {\n if (this.thread != null) {\n Thread thre = this.thread;\n this.thread = null;\n thr...
[ "0.8615728", "0.844838", "0.8385642", "0.83531785", "0.8269198", "0.8265412", "0.82089096", "0.8153947", "0.8126142", "0.8089367", "0.8077967", "0.80659795", "0.79772824", "0.7911992", "0.7892529", "0.77011967", "0.76983476", "0.76854515", "0.7614345", "0.7611413", "0.7579938...
0.6940469
91
Log to the status area. Logs to the log area if the string begins with "WARNING" or "ERROR"
private void logStatusMessage(String string) { if (m_log != null) { m_log.statusMessage(string); if (string.contains("WARNING") || string.contains("ERROR")) { m_log.logMessage(string); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void logWarn(String warning);", "abstract void errorLogWarn(String warning);", "protected void logStatusMessage(int status) {\n switch (status) {\n case EXIT_OK:\n logger.info(\"SCHEMA CHANGE: OK\");\n break;\n case EXIT_BAD_ARGS:\n logger.severe(\...
[ "0.63180035", "0.6316209", "0.6047187", "0.6046506", "0.58261913", "0.5727774", "0.5705151", "0.5665437", "0.56489605", "0.564359", "0.5610276", "0.5579834", "0.5478774", "0.5475032", "0.5408738", "0.53926945", "0.5382894", "0.53825927", "0.53807616", "0.5366575", "0.5356315"...
0.7284537
0
Log to the status area
public void println(String string) { // make sure that the global weka log picks it up System.out.println(string); logStatusMessage(string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPlugi...
[ "0.7206895", "0.6726409", "0.65164864", "0.6413613", "0.6388692", "0.63260645", "0.62803644", "0.6273684", "0.62419516", "0.622637", "0.61432666", "0.610612", "0.60836273", "0.6035046", "0.6011565", "0.5997451", "0.5962452", "0.5949854", "0.59490806", "0.59422964", "0.5887037...
0.0
-1
Log to the status area
public void println(Object obj) { println(obj.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPlugi...
[ "0.7206895", "0.6726409", "0.65164864", "0.6413613", "0.6388692", "0.63260645", "0.62803644", "0.6273684", "0.62419516", "0.622637", "0.61432666", "0.610612", "0.60836273", "0.6035046", "0.6011565", "0.5997451", "0.5962452", "0.5949854", "0.59490806", "0.59422964", "0.5887037...
0.0
-1
Log to the status area
public void print(String string){ // make sure that the global weka log picks it up System.out.print(string); logStatusMessage(string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPlugi...
[ "0.7206895", "0.6726409", "0.65164864", "0.6413613", "0.6388692", "0.63260645", "0.62803644", "0.6273684", "0.62419516", "0.622637", "0.61432666", "0.610612", "0.60836273", "0.6035046", "0.6011565", "0.5997451", "0.5962452", "0.5949854", "0.59490806", "0.59422964", "0.5887037...
0.0
-1
Log to the status area
public void print(Object obj) { print(obj.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPlugi...
[ "0.7206895", "0.6726409", "0.65164864", "0.6413613", "0.6388692", "0.63260645", "0.62803644", "0.6273684", "0.62419516", "0.622637", "0.61432666", "0.610612", "0.60836273", "0.6035046", "0.6011565", "0.5997451", "0.5962452", "0.5949854", "0.59490806", "0.59422964", "0.5887037...
0.0
-1
Reevaluate the supplied forecaster on the current data
protected void reevaluateForecaster(final String name, final WekaForecaster forecaster, final Instances trainHeader) { if (!trainHeader.equalHeaders(m_instances)) { JOptionPane.showMessageDialog(null, "Data used to train this forecaster " + "is not compatible with the currently loa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void loadForecaster() {\n File sFile = null;\n int returnVal = m_fileChooser.showOpenDialog(this);\n if (returnVal == m_fileChooser.APPROVE_OPTION) {\n sFile = m_fileChooser.getSelectedFile();\n \n if (m_log != null) {\n m_log.statusMessage(\"Loading forecaster...\");\n ...
[ "0.5413741", "0.5121752", "0.50878686", "0.5053765", "0.5026636", "0.5006417", "0.49859497", "0.491702", "0.49144223", "0.4909001", "0.48135906", "0.4804059", "0.4749947", "0.47475663", "0.47350675", "0.47176862", "0.47034305", "0.4698982", "0.46916437", "0.46834046", "0.4666...
0.737718
0
Start the forecasting process for the supplied configured forecaster
protected void startForecaster(final WekaForecaster forecaster) { if (m_runThread == null) { synchronized (this) { m_startBut.setEnabled(false); m_stopBut.setEnabled(true); } m_runThread = new ForecastingThread(forecaster, null); m_runThread.setPriority(Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void reevaluateForecaster(final String name, \n final WekaForecaster forecaster, final Instances trainHeader) {\n \n if (!trainHeader.equalHeaders(m_instances)) {\n JOptionPane.showMessageDialog(null, \"Data used to train this forecaster \" +\n \"is not compatible with the ...
[ "0.6240035", "0.5815927", "0.5514844", "0.5433762", "0.5263932", "0.51601", "0.5134338", "0.51075816", "0.509322", "0.50703156", "0.49872515", "0.4929741", "0.492182", "0.48730928", "0.484717", "0.48075563", "0.4807113", "0.47835138", "0.47831738", "0.47713658", "0.4769055", ...
0.7252299
0
Tests the Weka Forecasting panel from the command line.
public static void main(String[] args) { try { if (args.length == 0) { throw new Exception("supply the name of an arff file"); } Instances i = new Instances(new java.io.BufferedReader( new java.io.FileReader(args[0]))); ForecastingPanel scp = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n try {\n Configuration configuration = new Configuration();\n ToolRunner.run(configuration,new FruitDriver(),args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args)...
[ "0.6124842", "0.60806465", "0.6071375", "0.6008696", "0.5967677", "0.59339887", "0.5928286", "0.59251624", "0.5885732", "0.58736837", "0.58396864", "0.5780947", "0.57351613", "0.5727369", "0.57178", "0.57054245", "0.5676241", "0.5673", "0.56398326", "0.5635634", "0.561891", ...
0.7439612
0
Interface etendue par les interfaces locale et remote du manager
public interface RappelManager extends GenericManager<Rappel, Long> { public final static String SERVICE_NAME = "RappelManager"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface LocalizationService {\n\n /**\n *\n * @param locale - the languge that we like to present\n * @return\n */\n Map<String, String> getAllLocalizationStrings(Locale locale);\n\n /**\n * @param prefix - show all strings which start with thr prefix\n * @param locale - ...
[ "0.6879806", "0.6270815", "0.6227726", "0.61852247", "0.6100339", "0.5967303", "0.59518534", "0.59347266", "0.5914048", "0.5908129", "0.583974", "0.5830078", "0.5822163", "0.5820339", "0.5814302", "0.5796019", "0.57848644", "0.5772592", "0.5765515", "0.57473564", "0.57352495"...
0.0
-1
check and get the wallet details from the db by the session id
private boolean getDetails(){ ResultSet rs = this.SQL.PreparedSelect("btcwallet", new String[]{"guid","rnd","time","session"}, "`session`="+this.Session, "1", ""); try { if(rs.first()){ this.GUID=rs.getString("guid"); this.Time=rs.getString("time"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getWalletId() {\r\n return walletId;\r\n }", "private int getWallet() {\n\t\treturn wallet;\n\t}", "public UUID getWalletId();", "public Wallet retrieve(long id) {\n Wallet wallet = repository.retrieve(id);\n\n if (wallet == null) {\n errorState.addError(\"id\", \"No results ...
[ "0.58102053", "0.5740966", "0.5721326", "0.5695709", "0.56499666", "0.5586825", "0.55430067", "0.5503893", "0.547076", "0.542043", "0.5366456", "0.535345", "0.5291553", "0.52734387", "0.5272928", "0.5210497", "0.5184846", "0.51704824", "0.51646817", "0.51624554", "0.5160239",...
0.68971956
0
get the active addresses and ballances from the wallet (it gets in bult rather then multiple queries)
private boolean getAddresses(){ try { URLtoJSON URLtoJSON = new URLtoJSON(); JSONObject json = URLtoJSON.open(this.URL+"merchant/"+this.GUID+"/list?password="+this.pswd()+"&api_code="+this.ApiCode); if(!json.isNull("error")) return false; //If t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listBalances() {\n\t\t\r\n\t}", "public List<Address> getAllAddresses() throws BackendException;", "@Override\n\tpublic List<Address> FindAllAddress() {\n\t\treturn ab.FindAll();\n\t}", "public List<Address> findAll();", "public List<UrlAddress> searchDBUrl() {\n log.info(new SimpleDate...
[ "0.602731", "0.601722", "0.59512407", "0.5861105", "0.5750117", "0.5714007", "0.5656505", "0.56539595", "0.5623041", "0.561931", "0.56168604", "0.5522406", "0.5514049", "0.55097663", "0.54808056", "0.54738957", "0.54738134", "0.54585266", "0.5451186", "0.54484856", "0.5447700...
0.62446684
0
generate the password from the details given
private String pswd(){ try{ PBEKeySpec spec = new PBEKeySpec(this.Creator.toUpperCase().toCharArray(), this.Time.getBytes(), 100, 512); SecretKeyFactory skf = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1"); //System.out.println("pswd="+this.toHex(skf.generateSecret(spec)....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public static String createPassword()\r\n\...
[ "0.7854275", "0.7660988", "0.7655341", "0.7491217", "0.748067", "0.74287885", "0.7405387", "0.7392047", "0.7368294", "0.7308388", "0.7308388", "0.7308388", "0.7308388", "0.7308388", "0.7308388", "0.7308388", "0.73077774", "0.7187292", "0.7142582", "0.71150994", "0.70912635", ...
0.0
-1
check if the address is allocated in the database
private String[] matchDB(String AddressDetails){ String state="SELECT `entry`.`sender`," + "`entry`.`nem`," + "`entry`.`option`" + "FROM `entry` " + "WHERE `entry`.`recipientaddress`=?" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAddress();", "boolean hasAddress();", "boolean hasHasAddress();", "protected boolean containsAddress(InetAddress address) {\n\t\ttry {\n\t\t\tPreparedStatement pstmt = this.agent.getDatabaseManager().getConnection().prepareStatement(\n\t\t\t\t\tthis.agent.getDatabaseManager().selectByAddress);\n\...
[ "0.7419916", "0.7419916", "0.73186314", "0.7045076", "0.6971722", "0.69513845", "0.6878853", "0.6771886", "0.66840285", "0.66556734", "0.6554892", "0.6530979", "0.65055215", "0.62505984", "0.6250283", "0.6166953", "0.6160906", "0.6159085", "0.61556417", "0.61525935", "0.60814...
0.0
-1
TODO Autogenerated method stub
@SuppressWarnings("deprecation") public String format(Date date,boolean time){ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); String timestamp=dateFormat.format(date)+"T"; if(time){ dateFormat = new SimpleDateFormat("HH:mm:ssZ"); timestamp+=dateFormat.format(date); } else{ dat...
{ "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
endregion your codes 1 region your codes 2
SiteLotteryOdds getOddBetSortLine(String code ,Integer siteId,String hid,String betSort);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void method2(){\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public static void CC2_1() {\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "private void t2() {\n // read from a super r...
[ "0.5790832", "0.57606393", "0.57233137", "0.5714987", "0.57091737", "0.5686841", "0.5670707", "0.5650829", "0.5545139", "0.5538972", "0.5538972", "0.5473905", "0.5470748", "0.54704225", "0.5469382", "0.5459013", "0.5457285", "0.5453491", "0.5444294", "0.54417765", "0.5428553"...
0.0
-1
A listener that will process a action sent to the ActionsService.
public interface ActionListener { /** * Process a action sent to {@link ActionListener}. * * @param action Action to be processed. */ void process(Action action); /** * The firing cycle has ended, the actions can be sent */ void flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processAction(CIDAction action);", "public void executeAction( String actionInfo );", "public abstract void onAction();", "interface Action {\n void process(AbstractMessagingService serviceAction,\n Message message);\n\n }", "void executeAction(String action, Map p...
[ "0.71305996", "0.6788807", "0.66836107", "0.65999764", "0.6598301", "0.6534034", "0.65116256", "0.64670956", "0.64602816", "0.64452505", "0.6393709", "0.638783", "0.63648796", "0.6353296", "0.62863755", "0.6277574", "0.62746674", "0.6265788", "0.62282604", "0.62097675", "0.61...
0.5737458
80
The firing cycle has ended, the actions can be sent
void flush();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finish() {\n if ( actor.hasActions() )\r\n actor.getActions().first().act(100000);\r\n // remove any remaining actions\r\n actor.clearActions();\r\n }", "public void run() {\n long startTime = 0;\n if (action.getClass().getName().contains(\"Too...
[ "0.6652162", "0.6333839", "0.61806417", "0.6172758", "0.60985804", "0.60862875", "0.6065532", "0.5999622", "0.59884244", "0.5966431", "0.5956225", "0.59423447", "0.59423447", "0.59375584", "0.59239626", "0.5923387", "0.59210724", "0.59089994", "0.59079874", "0.5903304", "0.59...
0.0
-1
Throw an error message.
public UnityDaoException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void error(String message);", "public void error(String message) {\n\tSystem.err.println(\"Error: \" + message);\n\tthrow new Error(message);\n }", "public void error(String message, Throwable throwable);", "public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }", "voi...
[ "0.71529675", "0.70535046", "0.6867079", "0.6783481", "0.6721653", "0.6721653", "0.65161926", "0.6469953", "0.64364517", "0.6409285", "0.63994735", "0.6397791", "0.6374994", "0.63315344", "0.62482023", "0.6243924", "0.6242904", "0.6229413", "0.62120116", "0.61976403", "0.6180...
0.0
-1
Throw an error message and its cause.
public UnityDaoException(String message, Throwable cause) { super(message, cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Throwable cause();", "public void buildException(String message, Throwable cause) {\n\n // lanca a exception\n if (cause != null) {\n\n // mostra o stactrace\n cause.printStackTrace();\n throw new BuildException(message, cause);\n\n } else {\n\n //...
[ "0.7253281", "0.6827928", "0.66463244", "0.654304", "0.65357846", "0.65208596", "0.6470054", "0.6462778", "0.64494926", "0.6445952", "0.6433264", "0.6427783", "0.64119256", "0.6361745", "0.63234633", "0.6295232", "0.629144", "0.62817967", "0.62731063", "0.62645286", "0.625449...
0.6020567
53
the following method will place nummines (a final variable defined above) mines on the board in random locations.
public void assignmines() { for(int row = 0; row < mineBoard.length; row++) { for(int col = 0; col < mineBoard[0].length; col++) { mineBoard[row][col] = 0; } } int minesPlaced = 0; Random t = new Random(); while(minesPlaced < nummines) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void placeMines() {\n\t\t Random rand = new Random();\n\t\t if(levelOption == 0) {\n\t\t\t rowCoordinates = new int[10];\n\t\t\t cowCoordinates = new int[10];\n\t\t\t numberOfMines = 10;\n\t\t }\n\t\t else if(levelOption == 1) {\n\t\t\t rowCoordinates = new int[45];\n\t\t\t cowCoordinates = new int[45];\n\...
[ "0.80514044", "0.7848224", "0.7245918", "0.71104866", "0.7000816", "0.69901764", "0.6943991", "0.6856922", "0.6814567", "0.6734489", "0.65657884", "0.6535531", "0.6513611", "0.6500734", "0.6468", "0.6458931", "0.64396346", "0.6438536", "0.64176744", "0.64013773", "0.6386537",...
0.7922503
1
This method tells the system what Characters the Values have.
static char getUserChar(int cellValue) { if(cellValue == Mine) { return 'X'; } else if( cellValue == Empty) { return '+'; } else if (cellValue == Flag || cellValue == FlaggedMine) { return 'F'; } else if (cellValue == UncoveredMine) { retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCharacters()\n\t{\n\t\treturn characters;\n\t}", "private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return r...
[ "0.6733539", "0.6385182", "0.6288003", "0.6250666", "0.6240441", "0.6140185", "0.6134791", "0.61099523", "0.6084589", "0.6040484", "0.6012751", "0.60035396", "0.5977172", "0.5965132", "0.59257615", "0.5904551", "0.59038585", "0.59023094", "0.5871824", "0.584439", "0.58395755"...
0.0
-1
This method shows how many mines are around the spot that was clicked
static int numAdjMines(int[][] mineBoard, int row, int col) { int numMines = 0; for(int dr = -1; dr <= 1; dr ++) { for(int dc = -1; dc <= 1; dc++) { if(row + dr >= 0 && row + dr < mineBoard.length && col+ dc >= 0 && col + dc < mineBoard[0].length) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getActionPoints(Unit unit);", "public void increaseCount()\n {\n minesLeft++;\n repaint();\n if (minesLeft == 0 && minesFound == numMines)\n {\n endGame(true); //This could only trigger if the player had flagged too many squares,\n }\t\t\t\t\t\t//then w...
[ "0.6463989", "0.64267135", "0.6219371", "0.60139334", "0.598323", "0.5974006", "0.58612895", "0.5821764", "0.57561255", "0.5751025", "0.57299674", "0.57266057", "0.56794137", "0.5658314", "0.56559396", "0.56380516", "0.56352806", "0.56158507", "0.5584912", "0.55830157", "0.55...
0.0
-1
This method takes in an x and y value and defines what should happen when the user clicks there.
public void click(int row, int col) { if(mineBoard[row][col] == Mine) { buttons[row][col].setText(Character.toString(getUserChar(mineBoard[row][col]))); lose(); } else { score += 1; updatescore(); buttons[row][col].setText("" + numAdjMines(mine...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void click(int x, int y)\n {\n\n if(!clicked)\n {\n if(game.setFirstClickCords(x/50,y/50))\n clicked = true;\n }\n else\n {\n game.move(x/50,y/50);\n clicked = false;\n \n }\n \n re...
[ "0.7988782", "0.78223526", "0.7778523", "0.77370405", "0.76945955", "0.76595986", "0.74496514", "0.73412734", "0.717095", "0.71571964", "0.71099347", "0.7001471", "0.6995293", "0.69870263", "0.6984565", "0.6983729", "0.69614416", "0.6958368", "0.6950887", "0.69405675", "0.693...
0.0
-1
a method to update the score, when the score gets to 80 points, you win!
public void updatescore() { scorelabel.setText("" + score + " points"); if (100 - score <= 10) win(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void updateScore()\n {\n nextPipe = pipes.get...
[ "0.8074336", "0.8007877", "0.8005602", "0.7945351", "0.78544563", "0.7717442", "0.76447064", "0.75620323", "0.74972355", "0.74855286", "0.7470002", "0.74509245", "0.74416035", "0.74330217", "0.74156404", "0.74032396", "0.73629904", "0.73433554", "0.7244882", "0.72418857", "0....
0.84324163
0
this method updates the status text to explain that you lost, and then change the instance variable that states that the game is going, and make it false
public void lose() { status.setText("You're finished"); gamegoing = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setGameStatus() {\n this.gameStatus = false;\n }", "public void lostGame(){\n\t\tSystem.out.println(\"Schade, du hast verloren. Möchtest du es noch einmal versuchen?\");\n\t\tif(!singleplayer){\n\t\t\tif(player.getLifes() == 0){\n\t\t\t\tSystem.out.println(\"Spieler 2 gewinnt!\");\n\t\t\t}...
[ "0.7612931", "0.71041", "0.69402736", "0.6938017", "0.68888056", "0.68524665", "0.68465704", "0.68365675", "0.6814691", "0.6779111", "0.6776302", "0.676937", "0.6755855", "0.6724525", "0.6707012", "0.6683885", "0.6656493", "0.66223866", "0.6620978", "0.6613485", "0.6588492", ...
0.80051124
0
/ The idea behind this algorithm 1. Build preliminary graphs that represent different connection types between variables. See `assignmentGraph`, `cloneGraph`, `arrayGraph`, `itemGraph`. 2. Build initial type sets where possible. See `types`. 3. Build additional info: casts, virtual invocations, exceptions. See `casts`,...
public void infer(Program program, MethodReference methodReference) { types = new IntHashSet[program.variableCount() << 3]; overflowTypes = new boolean[program.variableCount() << 3]; nodeChanged = new boolean[types.length]; formerNodeChanged = new boolean[nodeChanged.length]; no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void collectLastDefsBeforeCall(CallerClass caller) {\n Map<String,Map<BytecodeInstruction,Map<Integer,Set<BasicBlock>>>> nodesForAllCouplingPaths = new HashMap<>();\n// Set<BytecodeInstruction> nodesForAllCouplingPaths = new HashSet<>();\n // method --> call_site --> variable --...
[ "0.58219445", "0.54622597", "0.5437355", "0.53960204", "0.5372496", "0.53407747", "0.53069246", "0.5293674", "0.528412", "0.5276772", "0.5276119", "0.5273955", "0.52625906", "0.5260796", "0.5257277", "0.5227205", "0.52114975", "0.5179996", "0.51771325", "0.5171841", "0.516965...
0.54616684
2
Solution one union and find
public int countComponents(int n, int[][] edges) { int [] ids = new int [n]; for(int i=0; i<n; i++) ids[i] = i; for(int [] edge : edges) { union(edge[0], edge[1], ids); } Set<Integer> set = new HashSet<>(); for(int i : ids) set.add(find(ids[i], ids)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int union(int u, int v) {\n int p1 = find(u), p2 = find(v);\n if (p1 == p2) {\n return p1;\n }\n int s1 = _sizes[p1], s2 = _sizes[p2];\n if (s1 > s2) {\n _sizes[p1] += s2;\n// int i = 1;\n// while (s2 > 0) {\n// if...
[ "0.6307833", "0.6216925", "0.6203423", "0.615095", "0.61400247", "0.60676366", "0.6013048", "0.60048246", "0.5967264", "0.5918911", "0.5909046", "0.5902771", "0.5840612", "0.57647717", "0.57393336", "0.57332253", "0.5720657", "0.57021534", "0.56954104", "0.5682416", "0.564096...
0.0
-1
Initialize all states here
@Override public void initStatesList(GameContainer gc) throws SlickException { this.getState(MAINMENUSTATE).init(gc, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initStates() {\n\n\t\tstateManager.add(\"main_menu\", new MainMenuState(stateManager, stateWidget, inputManager, textureManager));\n\t\tstateManager.add(\"inner_game\", new InnerGameState(stateManager, stateWidget, inputManager, textureManager));\n\t\tstateManager.add(\"game_over\", new GameOverState(...
[ "0.7883139", "0.7769829", "0.7661109", "0.7245478", "0.7155878", "0.7147877", "0.7144205", "0.70951515", "0.70910907", "0.7082274", "0.7071771", "0.70115036", "0.6994433", "0.6983955", "0.69821984", "0.6980905", "0.6949941", "0.6923403", "0.6915652", "0.6914628", "0.69028825"...
0.6875266
23
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_five, container, false); initView(view); entries.add(new BarEntry(new float[]{16f,20f}, 0)); entries.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int countByExample(UserExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int deleteByExample(UserExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int deleteByPrimaryKey(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
Long insert(User record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
Long insertSelective(User record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
List<User> selectByExample(UserExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
User selectByPrimaryKey(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int updateByExampleSelective(User record, UserExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int updateByExample(User record, UserExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int updateByPrimaryKeySelective(User record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table User
int updateByPrimaryKey(User record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class...
[ "0.7103414", "0.67444175", "0.6739887", "0.6705276", "0.66744584", "0.664297", "0.6618272", "0.6617397", "0.65052736", "0.64737266", "0.64463055", "0.64026403", "0.63779306", "0.637233", "0.63657886", "0.63265127", "0.6275861", "0.626315", "0.6258682", "0.62428224", "0.622118...
0.0
-1
Sets this bounding sphere to the specified center point and radius.
public BoundingSphere set(Vec3 center, double radius) { if (center == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "BoundingSphere", "set", "missingPoint")); } if (radius < 0) { throw new IllegalArgumentException( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sphere(double radius, Point3D center) {\n super(radius);\n _center = center;\n }", "public Sphere(float radius) {\n\t\tsuper();\n\t\tthis.radius = radius;\n\t}", "public Sphere( double radius, Point3d center, Material material ) {\n \tsuper();\n \tthis.radius = radius;\n \tthis...
[ "0.7657534", "0.7353436", "0.70736635", "0.7039872", "0.66958964", "0.65399146", "0.65162903", "0.6475385", "0.6413559", "0.6351964", "0.63483065", "0.6340027", "0.6317401", "0.6300485", "0.6269708", "0.62543505", "0.62465954", "0.62228864", "0.61937076", "0.618519", "0.61100...
0.8384801
0
Indicates whether this bounding sphere intersects a specified frustum.
public boolean intersectsFrustum(Frustum frustum) { if (frustum == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "BoundingSphere", "intersectsFrustum", "missingFrustum")); } // See if the extent's bounding sphere is within or intersects ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean intersects(MeshObject object) {\r\n return intersects(this.getCurrentCollisionCenter(), this.boundingSphereRadius, object.getCurrentCollisionCenter(), object.boundingSphereRadius);\r\n }", "boolean intersects( Geometry gmo );", "public boolean isIntersectingWithViewport(ObjectWithPosit...
[ "0.6494527", "0.60418063", "0.59792626", "0.58116925", "0.5438293", "0.5433975", "0.54135025", "0.53998584", "0.53955454", "0.5365161", "0.53623396", "0.535821", "0.5357788", "0.5351217", "0.5324452", "0.5320989", "0.5311397", "0.5304124", "0.5282489", "0.5278474", "0.5269556...
0.7983897
0
TODO Autogenerated method stub
private void reply(HttpServletRequest request, HttpServletResponse response) throws IOException { int id = Integer.parseInt(request.getParameter("id")); complainVo complainVo = new complainVo(); complainVo.setComplainId(id); complainDao complainDao = new complainDao(); List ls = complainDao.edit(complainV...
{ "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
Handle request to download an Excel document
@RequestMapping(value = "/download", method = RequestMethod.GET) public PdfView download(final Model model) { final PdfView view = new PdfView(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected ModelAndView handleRequestInternal(HttpServletRequest request,\n HttpServletResponse response) {\n String query = Utility.decodeAndDecompress(request.getParameter(\"query\"));\n String uri = request.getRequestURI();\n try {\n uri = URLDecoder.deco...
[ "0.6454535", "0.63777316", "0.6305103", "0.6266585", "0.62482005", "0.6239341", "0.6213529", "0.60605496", "0.6014967", "0.59994596", "0.5990834", "0.59879446", "0.59779495", "0.5937033", "0.59184116", "0.58776355", "0.5833623", "0.58205533", "0.5808595", "0.58036065", "0.580...
0.5374994
53
TODO this may be sped up by not needing to create a list in getInEdges
public int inDegree(N v) { return getInEdges(v).size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<Node, Edge> getInEdges() {\n return inEdges;\n }", "public Set<E> getEdges();", "String getEdges();", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "Set<CyEdge> getExternalEdgeList();", "List<CyEdge> getInternalEdgeList();", "private List<Vertex> prepareGraphAdjacencyLi...
[ "0.70304185", "0.68992954", "0.6840946", "0.67345977", "0.6659359", "0.66491514", "0.66049707", "0.6563459", "0.6559416", "0.6477783", "0.64587086", "0.6451454", "0.64464843", "0.64453316", "0.6437285", "0.6423014", "0.63517505", "0.6351368", "0.63152397", "0.62979007", "0.62...
0.0
-1
TODO this may be sped up by not needing to create a list in getOutEdges
public int outDegree(N v) { return getOutEdges(v).size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<Node, Edge> getOutEdges() {\n return outEdges;\n }", "int[] getOutEdges(int... nodes);", "public abstract List<? extends DiGraphEdge<N, E>> getOutEdges(N nodeValue);", "@Override\n\tpublic List<Path> getOutEdges(Location src) {\n\t\treturn \tpaths.get(locations.indexOf(src));\n\t}", "Set<Edge...
[ "0.737541", "0.7156602", "0.7064077", "0.6945678", "0.6813843", "0.67379564", "0.6737883", "0.6702033", "0.6689952", "0.6674034", "0.6620964", "0.66027987", "0.655001", "0.65419734", "0.6515224", "0.64930236", "0.64490664", "0.64286834", "0.63961613", "0.62633055", "0.6258828...
0.0
-1
ver documentacao do banco para saber qual a ordem deste campo
private String getCampo3() { String campo = this.campoLivre.substring(15); return boleto.getDigitoCampo(campo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "public boolean getEditando() {\n return this.aluno.getId() != null;\n }", "@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(tele...
[ "0.59007967", "0.58532697", "0.5819034", "0.5741357", "0.5708051", "0.568766", "0.5625916", "0.55866295", "0.5406792", "0.54002655", "0.53948486", "0.5385524", "0.538551", "0.53657466", "0.53607476", "0.5359764", "0.53564227", "0.53557605", "0.5334001", "0.53299", "0.5327624"...
0.0
-1
Metodos especificos do banco
public String getDv43(String numero) { int total = 0; int fator = 2; int numeros, temp; for (int i = numero.length(); i > 0; i--) { numeros = Integer.parseInt( numero.substring(i-1,i) ); temp = numero...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Banco<B> {\n \n \n /**\n * Método para inserir um produto no banco de dados\n * @param b Produto a ser cadastrado\n * @return Retorna true para produto cadastrado e\n * false para produto não cadastrado\n */\n boolean cadastrar(B b);\n \n /**\n * Método...
[ "0.640554", "0.6371688", "0.63160014", "0.627977", "0.6226897", "0.61317056", "0.6086773", "0.5957697", "0.5812986", "0.57768065", "0.57000345", "0.5694587", "0.56762224", "0.56671304", "0.56293285", "0.5595627", "0.5559766", "0.5555979", "0.5527607", "0.5518397", "0.551812",...
0.0
-1
Recupera a carteira no padrao especificado pelo banco
public String getCarteiraFormatted() { return boleto.getCarteira(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VentaJPA obtenerVenta(int comprobante);", "@Override\n\tpublic int getBancoCobrador() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getBancoCobrador();\n\t}", "@Override\n\tpublic String getCodigoCarteira() {\n\t\treturn \"0\";\n\t}", "@Override\r\n public Cliente buscarCliente(String cedula...
[ "0.60372233", "0.5943185", "0.58365214", "0.57879883", "0.57443863", "0.5639191", "0.56040794", "0.55771476", "0.55198675", "0.55013776", "0.54985726", "0.54736346", "0.54294497", "0.5425619", "0.5418427", "0.5415304", "0.53837067", "0.5375511", "0.53589857", "0.53537387", "0...
0.52379173
30
Recupera a agencia / codigo cedente no padrao especificado pelo banco
public String getAgenciaCodCedenteFormatted() { return boleto.getAgencia() + " / " + boleto.getContaCorrente() + " " + boleto.getDvContaCorrente(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCodigo_agencia();", "@Override\n\tpublic String getDvAgenciaCedente() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getDvAgenciaCedente();\n\t}", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "@Override\n public String getAgenciaCodCedenteFormat...
[ "0.71476084", "0.6514138", "0.6497906", "0.64217883", "0.637938", "0.636841", "0.63430566", "0.63286674", "0.6303069", "0.6288847", "0.6211669", "0.61424917", "0.6116512", "0.61084175", "0.6094663", "0.6094663", "0.60892594", "0.60734284", "0.60499585", "0.6018331", "0.600199...
0.6621149
1
Recupera a nossoNumero no padrao especificado pelo banco
public String getNossoNumeroFormatted() { return boleto.getNossoNumero(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "private int getNumero() {\n\t\treturn numero;\n\t}", "@Override\n public String getNossoNumeroFormatted() {\n return \"24\" + boleto.getNossoNumero();\n }", "public int getNumero() { retu...
[ "0.6996787", "0.69093", "0.6823092", "0.67824584", "0.6671417", "0.65795755", "0.653008", "0.65076846", "0.64767754", "0.64767754", "0.64767754", "0.64369744", "0.64369744", "0.64369744", "0.64333993", "0.641886", "0.64027166", "0.6368942", "0.6360926", "0.6336792", "0.632961...
0.6642418
5
Gets e Sets para auxilio Get e set entre String(front) e Calendar(Objeto) Recebe a String da data e insere no objeto como calendar
public void setDataNascimentoString(String dataNascimento) { try { java.util.Date date = new SimpleDateFormat("dd/MM/yyyy").parse(dataNascimento); Calendar dataCalendar = Calendar.getInstance(); dataCalendar.setTime(date); this.dataNascimento = dataCalendar; } catch (ParseExcept...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar...
[ "0.60908645", "0.6072113", "0.58870375", "0.58680063", "0.58157414", "0.58119076", "0.57981735", "0.57943904", "0.56669617", "0.56523323", "0.5639815", "0.5639815", "0.56171155", "0.5504525", "0.54933774", "0.54855424", "0.54640496", "0.54475886", "0.54097205", "0.5369647", "...
0.5981612
2
Retorna String ja formatada
public String getDataNascimentoString() { SimpleDateFormat data = new SimpleDateFormat("dd/MM/yyyy"); return data.format(this.dataNascimento.getTime()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String format();", "@VTID(8)\r\n java.lang.String format();", "String getFormat();", "String getFormat();", "String getFormat();", "public String format(String key) {\r\n return getString(key);\r\n }", "public String format () {\n\t\treturn format;\n\t}", "public String ToSt...
[ "0.75547606", "0.73208594", "0.7006393", "0.7006393", "0.7006393", "0.66975355", "0.65464246", "0.6541735", "0.65192556", "0.6517303", "0.6470899", "0.64596903", "0.6442487", "0.6425059", "0.6409482", "0.6372122", "0.63363165", "0.6331379", "0.6331379", "0.6331379", "0.633137...
0.0
-1
Get e set para trabalhar com o banco Trabalhar com a data Vindo ou Indo para o Banco Recebe a data do Sql e insere no formado Calendar
public void setDataNascimentoFromSQL(Date dataNascimento) { // montando a data atrav�s do Calendar Calendar data = Calendar.getInstance(); data.setTime(dataNascimento); this.dataNascimento = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDataSituacao(DateTimeDB dataSituacao) {\n this.dataSituacao = dataSituacao;\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = s...
[ "0.61933416", "0.61257917", "0.5960649", "0.585691", "0.58518267", "0.58493686", "0.584924", "0.5823514", "0.57948625", "0.5788548", "0.5771921", "0.5753758", "0.5750462", "0.5732382", "0.57272667", "0.57260996", "0.57259136", "0.57200813", "0.57041323", "0.5692525", "0.56893...
0.61109495
2
Retorna a data Calendar em formato Date do SQL
public Date getDataNascimentoToSQL() { return new Date(dataNascimento.getTimeInMillis()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReactorResult<java.util.Calendar> getAllDate_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), DATE, java.util.Calendar.class);\r\n\t}", "@Override\n public Date getDate(Calendar cal) throws SQLException {\n if (isNull()) return null;\n return getDatatypeCoder().decodeDa...
[ "0.6714428", "0.67029774", "0.6670337", "0.6670337", "0.66548204", "0.66012377", "0.65784264", "0.6477912", "0.64655775", "0.63580143", "0.6303826", "0.63009757", "0.62133497", "0.6195131", "0.619075", "0.60840654", "0.6069714", "0.6059676", "0.60546714", "0.604036", "0.60200...
0.56432295
61
Returns all settings available in the system.
List<SettingDTO> getSettings();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Settings> getAllSettings() {\n return this.settingsRepository.findAll();\n }", "public List<Setting> getSettings() {\n // Usuario logeado\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n\n // Entidad del usuario\n User user ...
[ "0.84187585", "0.78670686", "0.74053913", "0.72824675", "0.7174831", "0.71022403", "0.70971537", "0.6992131", "0.6992131", "0.69488984", "0.69435084", "0.6898849", "0.6876836", "0.6769885", "0.66513366", "0.6617839", "0.65180945", "0.6509995", "0.6507619", "0.6494949", "0.648...
0.66078204
16
Returns the specified setting.
Optional<SettingDTO> getSetting(String settingKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T getSetting(Setting setting) {\n return getValue(setting.toString());\n }", "<S> S getSetting(Setting<S> setting);", "String getSettingByKey(String key);", "public possibleSettings setting (){\n\t\treturn setting;\n\t}", "<S> S getSetting(Setting<S> setting, S defaultValue);", "Settings g...
[ "0.7854044", "0.7728731", "0.7614338", "0.7559805", "0.7303801", "0.6990285", "0.68177104", "0.6759077", "0.67425793", "0.67010146", "0.66238666", "0.6621254", "0.6523011", "0.6521911", "0.64652944", "0.64279574", "0.63915306", "0.6287814", "0.6262445", "0.6253618", "0.624947...
0.68430465
6
This method is responsible for finding the specified file. If FILE_REPO is defined then file will be searched in FILE_REPO and if it is not defined then file will be searched in class path.
public static File[] findFiles(String fileName) { List<File> fileList_ = new ArrayList<File>(); if(fileRepoPath_ != null) listFiles(new File(fileRepoPath_),fileName, fileList_); if(fileList_.size()==0) { try { Enumeration<URL> en_ = FileFinder.class.getClassLoader().getResources(fileNa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public FileInfo findFile(String pkgPath) {\n if (fileLookup == null) {\n buildFileLookupMap();\n }\n return fileLookup.get(pkgPath);\n }", "private static File findConfigFile(String fileName, File specificFile, boolean giveConfigDirPrecedence) {\n File f =...
[ "0.6437782", "0.6268205", "0.5798959", "0.57425624", "0.5696093", "0.56534284", "0.55527997", "0.55357116", "0.5459458", "0.5434605", "0.54299814", "0.54217863", "0.5353801", "0.53441316", "0.5276593", "0.52744126", "0.52689874", "0.5261179", "0.525227", "0.5249818", "0.52489...
0.5184875
30
This function recursively scans the folders and lists the files
private static void listFiles(File rootFile, String filename, List<File> fileList) { File[] files_ = rootFile.listFiles(); if(files_ != null) { for(File file : files_) { if(file.isFile() && file.getName().equalsIgnoreCase(filename)) fileList.add(file); else listFiles(file...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the metho...
[ "0.74100554", "0.71029925", "0.7040395", "0.70088243", "0.69825083", "0.69313705", "0.68860143", "0.68250585", "0.6810361", "0.676608", "0.67640924", "0.6744588", "0.67430234", "0.67177004", "0.6715627", "0.66943806", "0.6677567", "0.6665871", "0.6654461", "0.66393775", "0.66...
0.64326894
31
We can't make this an abstract class because the PlayerCardsFragment needs to extend Fragment
public interface CardsDisplay { public void attachListeners(); public void attachListeners(List<Card> playableCards); public void detachListeners(); public void cancelCardSelection(); void removeSelectedCard(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddToCardFragment() {\n }", "public abstract Fragment getFragment();", "public static ArticleCardsFragment newInstance() {\n return new ArticleCardsFragment();\n }", "public PlayerCharacterListFragment()\n {\n\n }", "public CarModifyFragment() {\n }", "@Override\r\n\t\t\tpubl...
[ "0.6884922", "0.6470797", "0.64385366", "0.6288282", "0.62624013", "0.6177268", "0.6097672", "0.6094315", "0.6085935", "0.607979", "0.6077394", "0.60676724", "0.60636526", "0.60463196", "0.5997046", "0.5983056", "0.5978168", "0.59761286", "0.5974008", "0.59724575", "0.5958252...
0.0
-1
/ renamed from: a
public int compare(byte[] bArr, byte[] bArr2) { int i; int i2; if (bArr.length != bArr2.length) { i2 = bArr.length; i = bArr2.length; } else { for (int i3 = 0; i3 < bArr.length; i3++) { if (bArr[i3] != bArr2[i3]) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Created by eThaD on 18.02.2018.
public interface AccountStore { boolean insertAccount(String accountId, Account account); Account getAccount(String accountId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n...
[ "0.5853969", "0.5712609", "0.5540127", "0.5474368", "0.54636145", "0.54636145", "0.54636145", "0.54636145", "0.54636145", "0.54636145", "0.5454029", "0.5434628", "0.5430587", "0.54179454", "0.54179454", "0.5409856", "0.5397195", "0.5389613", "0.53684074", "0.535218", "0.53480...
0.0
-1
////////////////////////////////////////////////////////////////// Testing Utilities //////////////////////////////////////////////////////////////////
public static SList<Character> make(String str) { SList<Character> ans = new SList<Character>(); for (int i=0; i<str.length(); i++) ans.add(str.charAt(i)); return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\...
[ "0.65717554", "0.6494256", "0.643547", "0.6369704", "0.63345927", "0.63329816", "0.629733", "0.6291117", "0.6279751", "0.62532425", "0.62223893", "0.62141037", "0.6199976", "0.61929744", "0.61898935", "0.6176992", "0.61726826", "0.61678743", "0.61647063", "0.61614084", "0.615...
0.0
-1
TODO Autogenerated method stub
@Override public void validate(Component arg0, Object arg1) throws WrongValueException { if (arg0 instanceof Timebox) { // no need for checking ? if (((Timebox) arg0).isDisabled()) return; if (arg1 == null) throw new WrongValueException(arg0, "Campo obligatorio"); else{ Calendar validaMi...
{ "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
looking at webapp classpath, found alreadyparsed class of same name did it come from system or duplicate in webapp?
public boolean shouldOverride(String name) { if (context.isParentLoaderPriority()) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Class<?> findInternalClass(String name){\n Class<?> clazz = null;\n for (int i = 0; i < urls.length; i++) {\n String root = urls[i].getPath();\n clazz = realFindClass(root,name);\n if(clazz != null)\n break;\n }\n if(clazz != null)...
[ "0.5954853", "0.54999304", "0.5471964", "0.54456943", "0.5395812", "0.5386149", "0.5386149", "0.5316394", "0.5278457", "0.5257799", "0.52521217", "0.52493083", "0.5203976", "0.5181742", "0.5181742", "0.5165888", "0.51653147", "0.5120923", "0.511131", "0.51068395", "0.51041317...
0.0
-1
features can be singleobj or objarrays, sumup all counts.
public static int fullSize(Object... features) { if (features == null) { return 0; } int size = 0; for (Object feature: features) { if (feature instanceof Object[]) { size += ((Object[]) feature).length; } else if (feature instanceof Co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countTypedFeatures();", "int countFeatures();", "int countFeatures();", "int getFeaturesCount();", "public int getFeaturesCount();", "protected Long getOverallStats(List<PropertyType> featuresWithType, List<Statistic> stats, NxQueryBuilder qb) {\n for (PropertyType prop : featuresWithType) {\n...
[ "0.6707104", "0.66279286", "0.66279286", "0.64317447", "0.6409779", "0.61893094", "0.6135236", "0.6066138", "0.6066138", "0.6047535", "0.5993273", "0.5941767", "0.5941767", "0.5777212", "0.57622564", "0.5752593", "0.56094986", "0.5607409", "0.559816", "0.55824107", "0.5539676...
0.701035
0
compute feautre's value according to attrib.
public static double featureValue(Attribute attrib, Object feature) { switch (attrib.type()) { case Attribute.NOMINAL: classCheck(attrib, feature, String.class); int idx = attrib.indexOfValue((String)feature); if (idx == -1) { onIll...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract float getValue(Entity e,FloatTrait t);", "public double getFlete(){\n return localFlete;\n }", "public void setFlete(double param){\n \n this.localFlete=param;\n ...
[ "0.64198875", "0.6093752", "0.6058854", "0.6050175", "0.599829", "0.599829", "0.599829", "0.59499675", "0.59355533", "0.57905155", "0.5785761", "0.57603395", "0.5688964", "0.5675247", "0.5673279", "0.5672765", "0.56211084", "0.5608185", "0.5591688", "0.5589046", "0.5583255", ...
0.5899799
9
TODO Autogenerated method stub
public static void main(String[] args) { Set<String> hashset = new HashSet<String>(); hashset.add("Selenium"); hashset.add("Java"); hashset.add("Python"); hashset.add("dotNet"); System.out.println("Elements in hash set = "+hashset); Object[] obArr = hashset.toArray(); for (Obj...
{ "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
location data for display
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_location); //Retrieve location object from calling activity Intent intent = getIntent(); location = intent.getExtras().getParcelable("location"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLocation() { return location; }", "public String getLocation() { return location; }", "public String getLocation(){\n return this.location;\n }", "public String getLocation(){\r\n return location;\r\n }", "public String getLocationString() {\r\n\t\treturn \"Location = (...
[ "0.72892976", "0.72892976", "0.7258697", "0.7243011", "0.72103196", "0.72097564", "0.7153092", "0.7153092", "0.7153092", "0.71364516", "0.71277", "0.7087746", "0.70722646", "0.7037722", "0.70344865", "0.7020579", "0.70064396", "0.69880694", "0.69843763", "0.6978358", "0.69753...
0.0
-1
Add a marker in the location currently being viewed and move the map's camera to the same location.
@Override public void onMapReady(GoogleMap googleMap) { try{ Geocoder geo = new Geocoder(this); //Get address provided for location as Address object List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1); Address address = geo.getFro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveMap() {\n //String to display current latitude and longitude\n String msg = latitude + \", \" + longitude;\n //Creating a LatLng Object to store Coordinates\n LatLng latLng = new LatLng(latitude, longitude);\n\n CameraPosition cameraPosition = new CameraPosition....
[ "0.7403646", "0.7391662", "0.73650813", "0.726704", "0.7214454", "0.70940614", "0.7092615", "0.70907176", "0.7067379", "0.70668113", "0.7042033", "0.7028732", "0.7001196", "0.6942474", "0.6908988", "0.69028777", "0.6887828", "0.68842906", "0.6866279", "0.68627447", "0.6824887...
0.0
-1
Returns whether Address object can be created for location address String
private boolean canFindLocationAddress(){ Geocoder geo = new Geocoder(this); //Get address provided for location as Address object try{ List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1); //Return true if an address is found retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAddress();", "boolean hasAddress();", "boolean hasHasAddress();", "private boolean isAddressValid(String s) {\n for (Property prt : propertyList) { //(String t : propertyAddrLine1s)\n if (prt.getAddrline1().matches(s)) {\n createdProperty = prt;\n re...
[ "0.759911", "0.759911", "0.74118495", "0.7189626", "0.67880505", "0.67586887", "0.6701206", "0.66910636", "0.66383964", "0.663375", "0.6609181", "0.6609181", "0.6587685", "0.6484887", "0.64467293", "0.6430563", "0.641631", "0.6371728", "0.63518596", "0.6348716", "0.6268526", ...
0.78995395
0
Populate all activity views based on available resources
private void populateView(){ //Display image without blocking, and cache it ImageView imageView = (ImageView) findViewById(R.id.activity_location_image); Picasso.with(this) .load(location.getImageURL()).fit().centerCrop().into(imageView); //Display description T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadViews(){\n\t}", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "private void initializeViews()\n {\n ButterKnife.bind(this);\n\n LinearLayoutManager layo...
[ "0.66744214", "0.6558782", "0.6502132", "0.63999575", "0.6387165", "0.63698226", "0.63153595", "0.6312844", "0.62895495", "0.6253762", "0.6253529", "0.6250646", "0.6233529", "0.6214736", "0.6211028", "0.6161582", "0.6131009", "0.610479", "0.609797", "0.609797", "0.6091086", ...
0.0
-1
implementeras senare om tid finns
public void addFlag(Customer c){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "public void sendeSpielfeld();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void asetaTeksti(){\n }", "private void comerFantasma(Fantasma fantas...
[ "0.7284175", "0.63930225", "0.63254386", "0.62954843", "0.62713146", "0.6197161", "0.61911476", "0.6181856", "0.61654836", "0.6152601", "0.61427724", "0.6111684", "0.60915655", "0.6064338", "0.60380346", "0.6023555", "0.60137194", "0.60070384", "0.5997832", "0.5990205", "0.59...
0.0
-1
Create a new RouteDao without any configuration
public RouteDao() { super(Route.ROUTE, com.dator.jqtest.dao.model.tables.pojos.Route.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RouteDAO() {\n\t\tconn = DBConnection.getConnection();\n\t}", "public HRouterDAOImpl() {\r\n super();\r\n }", "public Route() {\n }", "@Autowired\n public RouteDao(Configuration configuration) {\n super(Route.ROUTE, com.dator.jqtest.dao.model.tables.pojos.Route.class, configurat...
[ "0.69442475", "0.65958434", "0.64283437", "0.637322", "0.6234105", "0.6012907", "0.5935262", "0.5927127", "0.5866783", "0.5848058", "0.57768667", "0.5767199", "0.5719216", "0.5700986", "0.5697805", "0.5696871", "0.5667943", "0.5625666", "0.5608509", "0.5606844", "0.56045604",...
0.7481996
0
Create a new RouteDao with an attached configuration
@Autowired public RouteDao(Configuration configuration) { super(Route.ROUTE, com.dator.jqtest.dao.model.tables.pojos.Route.class, configuration); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RouteDao() {\n super(Route.ROUTE, com.dator.jqtest.dao.model.tables.pojos.Route.class);\n }", "public RouteDAO() {\n\t\tconn = DBConnection.getConnection();\n\t}", "public void createRoute(Route route) throws SQLException {\n\t\trDb.createRoute(route);\n\t}", "public BaseRouteManager(Context...
[ "0.6652136", "0.62926984", "0.591212", "0.5565839", "0.55518365", "0.54614663", "0.5419811", "0.53733647", "0.5364653", "0.53504676", "0.5341284", "0.5310052", "0.52067256", "0.5165686", "0.51378345", "0.5077609", "0.5063454", "0.5030172", "0.49954528", "0.49867013", "0.49863...
0.6917056
0
Fetch records that have id IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchById(Integer... values) { return fetch(Route.ROUTE.ID, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public List<Produto> findByIdIn(Integer... ids);", "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "List<EssayQu...
[ "0.6118371", "0.6085298", "0.5983984", "0.5887595", "0.58625734", "0.5854982", "0.58316135", "0.5824877", "0.58105785", "0.576251", "0.57519555", "0.56913364", "0.5683802", "0.5664325", "0.56571996", "0.562483", "0.5618595", "0.5589928", "0.5541375", "0.55104876", "0.54454976...
0.0
-1
Fetch a unique record that has id = value
public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneById(Integer value) { return fetchOne(Route.ROUTE.ID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RecordLike selectByPrimaryKey(String id);", "public o selectById(long id);", "Abum selectByPrimaryKey(String id);", "PrhFree selectByPrimaryKey(Integer id);", "Dormitory selectByPrimaryKey(Integer id);", "Yqbd selectByPrimaryKey(Integer id);", "IceApp selectByPrimaryKey(Long id);", "Caiwu selectByPri...
[ "0.707741", "0.67793006", "0.6771426", "0.6745783", "0.67089444", "0.67008424", "0.6648538", "0.66397375", "0.6628966", "0.662001", "0.65759695", "0.65522146", "0.6527242", "0.65059394", "0.6501813", "0.6499407", "0.6497668", "0.6494193", "0.64935493", "0.64822686", "0.646274...
0.0
-1
Fetch records that have name IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByName(String... values) { return fetch(Route.ROUTE.NAME, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", opera...
[ "0.64787245", "0.63966537", "0.6357186", "0.62069565", "0.61871797", "0.5930089", "0.5865555", "0.5816682", "0.5801772", "0.55782986", "0.5559247", "0.54679656", "0.5455439", "0.5447918", "0.54234064", "0.5420519", "0.5398054", "0.5394402", "0.5389061", "0.53771347", "0.53693...
0.0
-1
Fetch a unique record that has name = value
public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneByName(String value) { return fetchOne(Route.ROUTE.NAME, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Student fetchBy(String name);", "SyncRecord findObject(String name, int type) throws NotFoundException\r\n\t{\r\n\t\tfor (int i=0; i<syncTable.size(); i++)\r\n\t\t{\r\n\t\t\tSyncRecord myrec = (SyncRecord)syncTable.elementAt(i);\r\n\t\t\tif ((myrec.name).equals(name) && (myrec.type)==type)\r\n\t\t\t\treturn myre...
[ "0.61136335", "0.58454645", "0.5739822", "0.5737208", "0.5704531", "0.56548554", "0.56426144", "0.5628949", "0.558532", "0.5551735", "0.5536054", "0.55126184", "0.54969597", "0.54548347", "0.54452765", "0.5439223", "0.54357237", "0.5433371", "0.5423823", "0.5421556", "0.54104...
0.0
-1
Fetch records that have parent_name IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByParentName(String... values) { return fetch(Route.ROUTE.PARENT_NAME, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Person> findAllChildrenOf(String name) {\n return relations.stream()\n .filter(x -> x.getValue0().name.equals(\"John\")\n && x.getValue1() == Relationship.PARENT)\n .map(Triplet::getValue2)\n .collect(Collectors.to...
[ "0.56123245", "0.5434004", "0.52708167", "0.515932", "0.51325494", "0.51197124", "0.50158757", "0.49833155", "0.4966892", "0.49497265", "0.48450148", "0.4836772", "0.47688687", "0.47636294", "0.4730744", "0.46828094", "0.46824026", "0.4671445", "0.4666392", "0.46577996", "0.4...
0.46387455
20
Fetch records that have strategies IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByStrategies(String... values) { return fetch(Route.ROUTE.STRATEGIES, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public void addWhereIn(String attributeName, Collection values, String operator) {\r\n\t\tif (!values.isEmpty()) {\r\n\t\t\tString valueListString = StringUtils.join(values, ',');\r\n\t\t\taddWhere(attributeName + \" in (\"+valueListString+\")\", opera...
[ "0.623752", "0.5537785", "0.526101", "0.52357674", "0.5015092", "0.5013957", "0.50032496", "0.5002032", "0.49766982", "0.4894526", "0.48917913", "0.48875314", "0.48873428", "0.48680946", "0.48573977", "0.48523358", "0.48435462", "0.480912", "0.47980568", "0.4773305", "0.47200...
0.0
-1
Fetch records that have order IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByOrder(Integer... values) { return fetch(Route.ROUTE.ORDER, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public Iterable<Order> getOrdersByCheckInOrStatus(Business business, Key<CheckIn> checkInKey, String status) {\n\t\t//Return empty list if we have no checkin\n\t\tif(checkInKey == null)\n\t\t\treturn new ArrayList<Order>();\n\t\tQuery<Order> query = or...
[ "0.5994353", "0.5622411", "0.5497561", "0.5481641", "0.5399047", "0.5332366", "0.52199215", "0.5202178", "0.51885056", "0.5121144", "0.5094587", "0.5088859", "0.50871825", "0.50664866", "0.50297505", "0.502896", "0.5025882", "0.50164616", "0.5005364", "0.49926075", "0.4963851...
0.0
-1
Fetch records that have target_name IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByTargetName(String... values) { return fetch(Route.ROUTE.TARGET_NAME, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public boolean contains(String target){\n\t\treturn list.contains(target);\n\t}", "List<Authority> findByNameIn(List<AuthorityName> names);", "@Query(value = \"SELECT u FROM Car u WHERE u.brandName IN :names\")\n\tList<Car> findByBrand(@Param(\"nam...
[ "0.5647441", "0.5357605", "0.5248938", "0.5234581", "0.51685697", "0.51269275", "0.50926965", "0.5069323", "0.4996474", "0.49833956", "0.49252182", "0.48866373", "0.48582605", "0.47868297", "0.47816664", "0.47769615", "0.47407338", "0.4713734", "0.4702425", "0.47020867", "0.4...
0.46490765
24
Fetch records that have isDefault IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByIsdefault(Byte... values) { return fetch(Route.ROUTE.ISDEFAULT, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean testMultiple(Set<Long> selectedSet, int columnId, boolean defaultflag) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return false;\n }\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getI...
[ "0.5704112", "0.53129584", "0.51112634", "0.5041284", "0.50298196", "0.50279874", "0.4995207", "0.49710166", "0.4961157", "0.4944858", "0.4877602", "0.48748776", "0.4863585", "0.48200974", "0.4789219", "0.47799164", "0.4746589", "0.47464812", "0.47441208", "0.4733591", "0.473...
0.5043823
3
Fetch records that have description IN (values)
public List<com.dator.jqtest.dao.model.tables.pojos.Route> fetchByDescription(String... values) { return fetch(Route.ROUTE.DESCRIPTION, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "private String getContainsList(){\n\t\t\n\t\tArrayList<String> containsList = new ArrayList<String>();\n\t\t\n\t\tIterator<String> it = tagArray.iterator();\n\t\tString tag;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\t\n\t\t\ttag = it.next();\n\t\t\t\n\t\...
[ "0.57721883", "0.5461951", "0.5405385", "0.5192511", "0.5183433", "0.5141533", "0.5128444", "0.51105785", "0.51056683", "0.50713193", "0.50682247", "0.5048135", "0.50401855", "0.5019177", "0.49962845", "0.4980511", "0.49772725", "0.4975426", "0.49586344", "0.49521366", "0.495...
0.0
-1
Check the given station is in which lines and return them
public ArrayList<Line> inLine(Station s) { ArrayList<Line> returnList = new ArrayList<>(); for(Line l: line) { if(l.stationExists(s)) { returnList.add(l); } } return returnList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkStationExists() {\n\n stationExists = false;\n dataExists = false;\n stationExistsCount = 0;\n thisSubdesCount = 0;\n// stationIgnore = false;\n\n for (int i = 0; i < MAX_STATIONS; i++) {\n stationExistsArray[i] = false;\n loadedDepthMin[i] ...
[ "0.6130806", "0.5967725", "0.5839506", "0.57434535", "0.5702162", "0.5689609", "0.56007093", "0.5594874", "0.5552436", "0.55259496", "0.5502064", "0.5492379", "0.5490873", "0.54723084", "0.54708576", "0.5467694", "0.5421695", "0.53837836", "0.5369791", "0.5366063", "0.5296117...
0.774594
0
Search through all lines and return the station by giving the code
public Station getStationByCode(int code) { for(Line l: line) { if(l.getStationByCode(code) != null) { return l.getStationByCode(code); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Line> inLine(Station s)\r\n\t{\r\n\t\tArrayList<Line> returnList = new ArrayList<>();\r\n\t\t\r\n\t\tfor(Line l: line)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif(l.stationExists(s))\r\n\t\t\t{\r\n\t\t\t\treturnList.add(l);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn returnList;\r\n\t}", "private void searchCo...
[ "0.61200625", "0.6050811", "0.59849894", "0.5772472", "0.5742908", "0.56614554", "0.5618986", "0.55984986", "0.5531159", "0.5491235", "0.5487273", "0.54733735", "0.54214865", "0.5408651", "0.53810525", "0.53426766", "0.5298371", "0.5296353", "0.527717", "0.5245395", "0.524309...
0.7433296
0
The method used in GUI, give the x and y position and return the station
public Station getStationByPos(int x, int y) { for(Line l : line) { int i = 0; for(int j = 0 ; j < l.getNumberOfStation() ; j++) { Station tmp = l.returnStation(i); if(Math.abs(tmp.getPosX() - x) < 5 && Math.abs(tmp.getPosY() - y) < 5) { return tmp; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getStation();", "org.landxml.schema.landXML11.Station xgetStation();", "double getXPosition();", "public void updateXLoc();", "public Point getLocation();", "public String get_station_location () {\n if (!this.on) {\n return null;\n }\n\n return this.stationLocation...
[ "0.67110056", "0.6380758", "0.6224452", "0.6223676", "0.61967057", "0.6180356", "0.6140353", "0.610724", "0.6103516", "0.6018441", "0.6011598", "0.6011311", "0.5979536", "0.5957167", "0.5952272", "0.5928711", "0.59225005", "0.5915243", "0.59055555", "0.59055555", "0.59007716"...
0.6761158
0
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static RegistreNaissance createEntity(EntityManager em) { RegistreNaissance registreNaissance = new RegistreNaissance() .numero(DEFAULT_NUMERO) .anneeRegistre(DEFAULT_ANNEE_REGISTRE); // Add required entity Extrait extrait = ExtraitResourceIntTest.createEntity(em);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Te...
[ "0.7722704", "0.75043625", "0.7488018", "0.73615193", "0.7313557", "0.71551895", "0.71551895", "0.715222", "0.71504104", "0.7077861", "0.7015717", "0.68047553", "0.6752499", "0.6740017", "0.6740017", "0.671227", "0.6681439", "0.6665812", "0.6641303", "0.6624968", "0.6624293",...
0.0
-1