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
int i = iUserDao.selectCount(); System.out.println(i);
@Test public void SelectCount(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional\r\n\tpublic Integer countUserss() {\r\n\t\treturn ((Long) usersDAO.createQuerySingleResult(\"select count(o) from Users o\").getSingleResult()).intValue();\r\n\t}", "@Override\r\n\tpublic int selectCount() {\n\t\treturn userdao.selectCount();\r\n\t}", "public int SelectCount() {\n return ...
[ "0.79016507", "0.7832126", "0.7611722", "0.7394623", "0.7294247", "0.7288647", "0.7288647", "0.7288647", "0.72880065", "0.7247059", "0.72297364", "0.709031", "0.7089123", "0.70742077", "0.70620245", "0.7048518", "0.70185417", "0.6949235", "0.6936789", "0.6933357", "0.6927444"...
0.0
-1
button for add comment for line, use NewComment and newCommentController
@FXML private void bComm() throws IOException, SQLException { int index = tableView.getSelectionModel().getSelectedIndex(); if(index>=0) { calc calc = data.get(index); newCommentController.calc.setDate(calc.getDate()); Parent parent = FXMLLoader.load(getClass().getResource("NewComment.fxml")); Stage stage = new Stage(); stage.initModality(Modality.WINDOW_MODAL); stage.setScene(new Scene(parent)); stage.setTitle("Comment"); stage.showAndWait(); refresh(); }else { Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("ERROR"); alert.setContentText("Nothing Selected!!!"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/flood/addComment\", method = RequestMethod.POST)\n public String addCommentPost(@ModelAttribute(\"newComment\") Comment comment,\n HttpServletRequest request,\n Model model) {\n comment.setUserId(1L);\n mode...
[ "0.686741", "0.6859968", "0.66990584", "0.6458132", "0.6442736", "0.63884723", "0.6302816", "0.6246331", "0.6153052", "0.6142015", "0.6132555", "0.61109555", "0.6102284", "0.61021924", "0.6085413", "0.60428065", "0.60305625", "0.5999062", "0.5986239", "0.5957992", "0.5936071"...
0.0
-1
delete comment from line and db
@FXML private void bRem() throws SQLException { int index = tableView.getSelectionModel().getSelectedIndex(); if(index>=0) { calc calc = data.get(index); String tmp = calc.getComment(); try{ UpdateDb(tmp.substring(0,tmp.lastIndexOf("\n")), calc.getDate()); }catch (StringIndexOutOfBoundsException e) { UpdateDb("", calc.getDate()); } refresh(); }else { Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("ERROR"); alert.setContentText("Nothing Selected!!!"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(int commentId);", "public void deleteComment() {\n text = null;\n authorName = null;\n timestamp = null;\n }", "@Override\r\n\tpublic void delRecomment(int cm_Seq) {\n\t\trdao.delRecomment(cm_Seq);\r\n\t}", "public void deleteComment(CommentAttributes comment){\n co...
[ "0.6906828", "0.6837419", "0.6742783", "0.6660366", "0.64900947", "0.6314927", "0.6286737", "0.6212056", "0.6197046", "0.6195016", "0.61923426", "0.6108258", "0.6107228", "0.60649735", "0.6023304", "0.60164243", "0.59371746", "0.59299743", "0.5919574", "0.5913981", "0.5887297...
0.0
-1
delete cell from line and db
@FXML private void bRemCell() throws SQLException { int index = tableView.getSelectionModel().getSelectedIndex(); if(index>=0) { calc calc = data.get(index); Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Delete cell"); alert.setHeaderText("Start of Day: " + String.valueOf(calc.getStartDay()) + "\n" + "End of Day: " + String.valueOf(calc.getOverDay()) + "\n" + "Start of Receipt: " + String.valueOf(calc.getStartOfReceipt()) + "\n" + "End of Receipt: " + String.valueOf(calc.getEndOfReceipt()) + "\n" + "Sum of Receipt: " + String.valueOf(calc.getSumReceipt()) + "\n" + "User: " + String.valueOf(calc.getUser()) + "\n" + "Date: " + String.valueOf(calc.getDate()) + "\n" + "Comment: " + String.valueOf(calc.getComment())); alert.setContentText("Are you sure you want to delete cell with data?"); Optional<ButtonType> result = alert.showAndWait(); if(result.get() == ButtonType.OK) { delete(String.valueOf(calc.getDate())); refresh(); } else { refresh(); } }else { Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("ERROR"); alert.setContentText("Nothing Selected!!!"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eraseCell(CellID cid){\n db.eraseCell(cid);\n }", "public void removeCell(int index) {\r\n cells.remove(index);\r\n if(DEBUG) IJ.log(\"Cell \" + (index+1) + \" is gone. Now record has \" + size() + \" cells.\");\r\n }", "public DResult delete(byte[] row, long startId) throws IOExcept...
[ "0.6640689", "0.64109457", "0.6279506", "0.6267244", "0.62574667", "0.62112087", "0.6210918", "0.6203589", "0.6130822", "0.6125463", "0.61213523", "0.6109539", "0.6080671", "0.60507154", "0.60049504", "0.5995819", "0.5969249", "0.5940733", "0.5917228", "0.5908123", "0.5905632...
0.5882888
23
This static method is only used by DatabaseHelper to create database;
public static Boolean create(SQLiteDatabase db) { db.execSQL(CREATE); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n //\n public void onCreate(SQLiteDatabase db)\n {\n db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase _db) {\n _db.e...
[ "0.76751584", "0.75747985", "0.7550815", "0.7509883", "0.7444217", "0.7429938", "0.74149156", "0.738659", "0.7383583", "0.7383583", "0.73730034", "0.73441637", "0.7334073", "0.7323588", "0.7307694", "0.7307694", "0.7307694", "0.7267725", "0.72467947", "0.72282666", "0.7227059...
0.0
-1
This static method is only used by DatabaseHelper to drop table when Upgrade database;
public static Boolean drop(SQLiteDatabase db) { db.execSQL(DROP); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDowngrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table ...
[ "0.76792145", "0.751198", "0.7496128", "0.7475934", "0.7467342", "0.7457051", "0.7423681", "0.7417777", "0.73880726", "0.7366078", "0.73567456", "0.7353656", "0.7341667", "0.7340798", "0.73382175", "0.73320234", "0.73290795", "0.73290795", "0.73290795", "0.73290795", "0.73290...
0.0
-1
getting the value of attribute in xpath
public String getAttributeValue(WebDriver screenName, String ObjectxPath, String attributeName, String Element_Name) throws Exception { try { WebElement inputText = screenName.findElement(By.xpath(ObjectxPath)); Extent_Reporting.Log_Pass(Element_Name + " exist", Element_Name + " has " + inputText.getText()); return inputText.getAttribute(attributeName); } catch (Throwable t) { Extent_Reporting.Log_Fail(Element_Name + " does not Exist", Element_Name + " does not Exist", screenName); t.printStackTrace(); throw new Exception("Element Not Present"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAttribute();", "java.lang.String getAttribute();", "Attribute getAttribute();", "public String getXpath() { \n\t\treturn getXpathElement().getValue();\n\t}", "public String getAttribute(final String attributeLocator);", "public String getAttribute(String name);", "Object getAttribute(String ...
[ "0.7108542", "0.7064096", "0.6971019", "0.66208506", "0.65701026", "0.64591646", "0.6454501", "0.6454501", "0.6454501", "0.6437176", "0.64335567", "0.6432893", "0.6424802", "0.63947356", "0.63813573", "0.6360038", "0.6345627", "0.6299483", "0.6287757", "0.62342566", "0.619015...
0.54584056
67
Rohit ETS 11 June 2015
public void mouseHoverAction_3(WebDriver driver, String mainElementXP, String subElementXP, String subSubElementXP, String Element_Name) throws Exception { try { Actions action = new Actions(driver); WebElement mainElement = driver.findElement(By.xpath(mainElementXP)); action.moveToElement(mainElement).perform(); WebElement subElement = driver.findElement(By.xpath(subElementXP)); action.moveToElement(subElement).perform(); WebElement subSubElement = driver.findElement(By.xpath(subSubElementXP)); action.moveToElement(subSubElement); action.click(); action.perform(); Extent_Reporting.Log_Pass("Click action is performed on the selected Product Type" + Element_Name, "Click action is performed on the selected Product Type" + Element_Name); } catch (Throwable t) { Extent_Reporting.Log_Fail(Element_Name + " does not Exist", Element_Name + " does not Exist", driver); t.printStackTrace(); throw new Exception("Element Not Present"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tCalendar today = new GregorianCalendar();\n\t\tSystem.out.println(today);\n\t\t\n\t\tGregorianCalendar christmas = new GregorianCalendar(1970,11,5);\n\t\t\n\t\tSystem.out.println(christmas.get(Calendar.DAY_OF_WEEK));\n\t\t\n\t\tSimpleDateFormat sdf = new SimpleDateForm...
[ "0.6114887", "0.5998004", "0.59669936", "0.5927795", "0.5892362", "0.5767015", "0.56985855", "0.5693347", "0.56589127", "0.56582046", "0.56559", "0.5654136", "0.5653497", "0.5638857", "0.56350803", "0.5627467", "0.560635", "0.55662537", "0.55580866", "0.5554747", "0.55521274"...
0.0
-1
Function for fetching the value from the object when value attribute is not present.
public String getObjectValue(WebDriver driver, WebElement webElement) { JavascriptExecutor e = (JavascriptExecutor) driver; return (String) e.executeScript(String.format("return $('#%s').val();", webElement.getAttribute("id"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValueFrom();", "@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}", "public Optional<T> getValue() {\n return Opt...
[ "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.70452243", "0.6830089", "0.6733364", "0.6719113", "0.6709822", "0.6679156", "0.6671453", "0.6659978", "0.6659978", "0.6659978", "0.6659978", "0.6659978", "0.65862554", "0.65862554", ...
0.0
-1
Options passed to Beam to influence the job's execution environment
public interface ImportOptions extends PipelineOptions, DataflowPipelineOptions, DirectOptions { @Required @Description( "Default feast project to apply to incoming rows that do not specify project in its feature set reference.") String getDefaultFeastProject(); void setDefaultFeastProject(String defaultProject); @Required @Description( "JSON string representation of the SpecsPipe configuration." + "Job will use this to know where read new FeatureSetSpec from (kafka broker & topic)" + "and where send acknowledgment on successful update of job's state to." + "SpecsStreamingUpdateConfig follows the format in feast.core.IngestionJob.SpecsStreamingUpdateConfig proto." + "The conversion of Proto message to JSON should follow this mapping:" + "https://developers.google.com/protocol-buffers/docs/proto3#json" + "Please minify and remove all insignificant whitespace such as newline in the JSON string" + "to prevent error when parsing the options") String getSpecsStreamingUpdateConfigJson(); void setSpecsStreamingUpdateConfigJson(String json); @Required @Description( "JSON string representation of the Source that will be used to read FeatureRows from." + "Source follows the format in featst.core.Source proto. Currently only kafka source is supported" + "The conversion of Proto message to JSON should follow this mapping:" + "https://developers.google.com/protocol-buffers/docs/proto3#json" + "Please minify and remove all insignificant whitespace such as newline in the JSON string" + "to prevent error when parsing the options") String getSourceJson(); void setSourceJson(String json); @Required @Description( "JSON string representation of the Store that import job will write FeatureRow to." + "Store follows the format in feast.core.Store proto." + "Multiple Store can be passed by specifying '--store={...}' multiple times" + "The conversion of Proto message to JSON should follow this mapping:" + "https://developers.google.com/protocol-buffers/docs/proto3#json" + "Please minify and remove all insignificant whitespace such as newline in the JSON string" + "to prevent error when parsing the options") List<String> getStoresJson(); void setStoresJson(List<String> storeJson); @Description("Properties Map for Kafka Consumer used to pull FeatureRows") Map<String, String> getKafkaConsumerProperties(); void setKafkaConsumerProperties(Map<String, String> kafkaConsumerProperties); @Description( "(Optional) Deadletter elements will be written to this BigQuery table." + "Table spec must follow this format PROJECT_ID:DATASET_ID.PROJECT_ID" + "The table will be created if not exists.") String getDeadLetterTableSpec(); /** * @param deadLetterTableSpec (Optional) BigQuery table for storing elements that failed to be * processed. Table spec must follow this format PROJECT_ID:DATASET_ID.PROJECT_ID */ void setDeadLetterTableSpec(String deadLetterTableSpec); @Description("MetricsAccumulator exporter type to instantiate. Supported type: statsd") @Default.String("none") String getMetricsExporterType(); void setMetricsExporterType(String metricsExporterType); @Description("Host to write the metrics to. Required if the metrics exporter is set to StatsD.") @Default.String("localhost") String getStatsdHost(); void setStatsdHost(String StatsdHost); @Description( "Port on StatsD server to write metrics to. Required if the metrics exporter is set to StatsD.") @Default.Integer(8125) int getStatsdPort(); void setStatsdPort(int StatsdPort); @Description( "Fixed window size in seconds (default 60) to apply before aggregating the numerical value of " + "features and exporting the aggregated values as metrics. Refer to " + "feast/ingestion/transform/metrics/WriteFeatureValueMetricsDoFn.java" + "for the metric nameas and types used.") @Default.Integer(60) int getWindowSizeInSecForFeatureValueMetric(); void setWindowSizeInSecForFeatureValueMetric(int seconds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void runJobFlow() throws InterruptedException{\n JobFlowInstancesConfig instances = new JobFlowInstancesConfig();\n //********************************************************************//\n instances.setHadoopVersion(HADOOP_VERSION);\n instances.withEc2KeyName(\"ayuda-vp1\");\n ...
[ "0.56019413", "0.558995", "0.5176342", "0.5106984", "0.5078236", "0.50298", "0.5023733", "0.49883634", "0.49602735", "0.49530092", "0.49485883", "0.49420777", "0.49089518", "0.49071196", "0.48988658", "0.4865687", "0.4862277", "0.48613524", "0.4823387", "0.48152512", "0.48093...
0.57903475
0
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String Selecteditem = itemname[+position]; if(Selecteditem.equals("Usage Monitor")){ Intent appInfo = new Intent(AP_Menu.this, ActivityMain.class); startActivity(appInfo); } else if(Selecteditem.equals("Data Sniffer")){ Intent appInfo = new Intent(AP_Menu.this, ApplicationListDataSniff.class); startActivity(appInfo); } else if(Selecteditem.equals("Log Manager")){ Intent appInfo = new Intent(AP_Menu.this, CallLogger.class); startActivity(appInfo); } else if(Selecteditem.equals("Task Manager")){ Intent appInfo = new Intent(AP_Menu.this, AndroidTaskManager.class); startActivity(appInfo); } else if(Selecteditem.equals("Version Updates")){ Intent appInfo = new Intent(AP_Menu.this, ApkListActivity.class); startActivity(appInfo); } else if(Selecteditem.equals("Frames Calculation")){ Intent appInfo = new Intent(AP_Menu.this, MaxFPSActivity.class); startActivity(appInfo); } else if(Selecteditem.equals("Battery Radar")){ Intent appInfo = new Intent(AP_Menu.this, BatteryTop.class); startActivity(appInfo); } else if(Selecteditem.equals("App Advisor")){ Intent appInfo = new Intent(AP_Menu.this, PowerManagerActivity.class); startActivity(appInfo); } }
{ "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
Exported constructors. Construct a new parallel section.
public ParallelSection() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IntPar() { }", "@Override\n\tpublic void visit(ParallelSectionsConstruct n) {\n\t\tcfgNode = n;\n\t}", "void create(Section section);", "private SectionSets ()\r\n {\r\n }", "Section createSection();", "public SectionDesc ()\r\n {\r\n }", "protected void createSection() {\r\n...
[ "0.6135611", "0.59943116", "0.5973167", "0.5957472", "0.5908618", "0.5827007", "0.5817449", "0.5561983", "0.5543419", "0.52969307", "0.5296177", "0.5269992", "0.5219785", "0.5176894", "0.51348245", "0.51020586", "0.50781965", "0.5072841", "0.50675166", "0.49891087", "0.497479...
0.81657517
0
Exported operations. Execute this parallel section. The run() method must be implemented in a subclass.
public abstract void run() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void execute() {\n\t\tlog.debug(\"Execute was called\");\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\texe.startStep(getStep(),\n\t\t\t\t\tMtxUtils.list2DoubleArray(displacementsMap.get(mdl)));\n\t\t}\n\t}", "public void execute() {\n\t\tl...
[ "0.6536316", "0.6172779", "0.61268", "0.6122819", "0.6069699", "0.6069699", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.59975874", "0.5980408", "0.59721446", "0.59510607", "0.59417045", "0.59370446", "0.590748", "0.5865413", ...
0.0
-1
Gets the metric unit.
@Override public IMetricDimension getMetricUnit() { // TODO Auto-generated method stub return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}", "public String unit() {\n return this.unit;\n }", "TimeUnit getUnit();", "public String getUnit()\n {\n return (this.un...
[ "0.84433717", "0.8131432", "0.8035111", "0.8025007", "0.79209155", "0.78993434", "0.78993434", "0.78993434", "0.78964394", "0.77192277", "0.7712121", "0.77056396", "0.7602951", "0.7601868", "0.7595201", "0.75803494", "0.7460136", "0.73038226", "0.7293079", "0.72504723", "0.72...
0.7876791
9
Gets the metric value.
@Override public double getMetricValue() { // TODO Auto-generated method stub return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }", "public String getMetric() {\n return this.metric;\n }", "public String getMetric() {\n return metric;\n }", "public double getValue() {\n return val...
[ "0.7417612", "0.735728", "0.73550636", "0.73321533", "0.72863066", "0.72751075", "0.72751075", "0.72751075", "0.7232794", "0.7232794", "0.7225768", "0.7225768", "0.7225768", "0.72246945", "0.7220427", "0.7215571", "0.72152877", "0.71903265", "0.7189901", "0.71730435", "0.7169...
0.71360457
22
This interface will allow to have multiple data storage implementations.
public interface TransactionDAO { String addTransaction(Long userId, String transaction) throws Exception; String showTransaction(Long userId, String transactionId) throws Exception; String listTransactions(Long userId) throws Exception; String sumTransactions(Long userId) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataStorage getDataStorage();", "public interface DataStore {\n\n Bucket loadBucket(String bucketName);\n\n List<Bucket> loadBuckets();\n\n void saveBucket(Bucket bucket);\n\n void deleteBucket(String bucketName);\n\n Blob loadBlob(String bucketName, String blobKey);\n\n List<Blob> loadB...
[ "0.7826507", "0.77183306", "0.7460902", "0.7365257", "0.7241195", "0.71717155", "0.7147815", "0.71369857", "0.7126275", "0.7054258", "0.6936826", "0.6916722", "0.6892586", "0.6850171", "0.68116397", "0.67953616", "0.67093", "0.6688883", "0.66715056", "0.6660584", "0.66268027"...
0.0
-1
contains all earnings, except for current payroll receipt
public SHrsLoan(SDbLoan loan) { moLoan = loan; maPayrollReceiptEarnings = new ArrayList<>(); maPayrollReceiptDeductions = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateEarnings(){\n if (wages.size() > expenses.size()){\n //check size difference\n int sizeUp = wages.size() - expenses.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no expenses for the week(s)...
[ "0.62775844", "0.603326", "0.59390545", "0.58572334", "0.58474296", "0.5637213", "0.5629337", "0.5577645", "0.55577236", "0.54193693", "0.5381246", "0.5320783", "0.52873427", "0.5249083", "0.524592", "0.52296597", "0.51790327", "0.51768637", "0.5163349", "0.51588684", "0.5156...
0.0
-1
Get a database connection.
public void getConnection() throws RtpException { /* Create the database connection */ try { conn = Connector.connect(cInfo, credentials, null); } catch (RtpException rtpe) { throw rtpe; } catch (Exception e) { throw new RtpException("Database Connection has failed for:" + cInfo.toString(), e); } log.info("Database Connected Successfully. ID: {}", conn.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Connection getConnection()\n {\n if (ds == null) {\n try {\n initCtx = new InitialContext();\n envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(dbName);\n }\n catch (javax.naming.NamingException e) {\n Logger.log(Lo...
[ "0.79740214", "0.7870475", "0.7821664", "0.77915174", "0.77844065", "0.77358437", "0.76986563", "0.7691666", "0.76805294", "0.7679787", "0.767893", "0.764312", "0.7635242", "0.7630473", "0.7613832", "0.7608595", "0.7607148", "0.75812817", "0.7576804", "0.75540596", "0.7544787...
0.0
-1
Close the database connection.
public void closeConnection() { try { String token = conn.toString(); conn.close(); log.info("Database Connection Closed. ID: {} ", token); } catch (Exception e) { log.error("Error closing the database connection. \n Trace: {}", ExceptionUtilities.stacktraceToString(e)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeDB() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tconn = null;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Failed to close database connection: \" + e);\n\t\t}\n\t}", "public void closeDB() throws SQLException\r\n {\r\n conn.close();\r\n }", "public void close() {\n ...
[ "0.82049865", "0.8109345", "0.80854", "0.8083696", "0.8069195", "0.8038914", "0.79841536", "0.79841536", "0.7964884", "0.79640317", "0.79610175", "0.7958632", "0.7910468", "0.7853626", "0.7845886", "0.77667254", "0.7746259", "0.77236414", "0.77164465", "0.77006805", "0.770068...
0.7420047
37
Close the statement connection.
public void closeStmt(CallableStatement stmt) { try { stmt.close(); } catch (Exception e) { log.error("Error closing the statement. \n Trace: {}", ExceptionUtilities.stacktraceToString(e)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeStatement() {\n\t\tif (stmt != null) {\n\t\t\ttry {\n\t\t\t\tstmt.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t}\n\t\t} \n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t...
[ "0.7691169", "0.7663132", "0.76481664", "0.7578802", "0.7576546", "0.7527081", "0.7488203", "0.74849063", "0.7471875", "0.7453921", "0.74535316", "0.73837674", "0.7352254", "0.72955364", "0.726536", "0.72442514", "0.7225725", "0.72255284", "0.7219425", "0.72043395", "0.720300...
0.0
-1
Executes a SELECT statement. By default this method will print the output to the console as a CSV. The output manager can be set explicitly by using the setOutputManager method. If the query is successful a CallableStatement is returned. Otherwise null is returned.
public CallableStatement execute(String query) throws RtpException { /* Create a Callable statement. */ CallableStatement stmt = Connector.createCallableStatement(conn, query); /* Execute the statement */ if (stmt != null) { try { boolean check = stmt.execute(); if (check) { if(outputManager.getFormat() != OutputFormat.NONE || outputManager.getDevice() != OutputDevice.NONE) { // ResultWriter.writeResult(stmt, outputManager, stmt.getResultSet()); } } else { log.error("Error executing the statement"); } } catch (Exception e) { throw new RtpException("Error preparing/executing the statement: " + query, e); } } return stmt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultSet executeSQL() {\t\t\n\t\tif (rs != null) {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t} catch(SQLException se) {\n\t\t\t} finally {\n\t\t\t\trs = null;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\trs = pstmt.executeQuery();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t...
[ "0.5637839", "0.5481321", "0.52849656", "0.52032787", "0.51812637", "0.516199", "0.51539886", "0.5095385", "0.50707227", "0.5068915", "0.501845", "0.49983972", "0.49754044", "0.49501216", "0.49486443", "0.49484292", "0.4910265", "0.4904683", "0.48732117", "0.4850092", "0.4844...
0.5652669
0
Sets the Output type for the query.
public void setOutputManager(OutputDevice device, OutputFormat format) { outputManager.setDevice(device); outputManager.setFormat(format); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AIOutput(int type) {\n\t\tsetOutput(type);\n\t}", "public void setQueryType(String queryType);", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "public Type getOutputType() {\n...
[ "0.60731065", "0.6044213", "0.5971325", "0.58461314", "0.57925457", "0.57590777", "0.5699003", "0.56939656", "0.5691975", "0.5634489", "0.5577086", "0.5576054", "0.5552802", "0.55326146", "0.54963213", "0.54706407", "0.54706407", "0.54706407", "0.54329395", "0.5423155", "0.54...
0.0
-1
String bs = ((ActivityAlbum)myActivity).myGroup; Log.d("PASSED", bs);
@Override public void onBindViewHolder(Adapter_Album.myViewHolder holder, int position) { holder.tv_title.setText(mData.get(position).getProfileName()); //holder.background_img.setImageResource(mData.get(position).getBackground()); //holder.profile_photo.setImageResource(mData.get(position).getProfilePhoto()); //holder.tv_nbfollowers.setText(mData.get(position).getFollowers()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbum()\n {\n return album;\n }", "@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }", "private String getAlbumName(){\n return getStri...
[ "0.5848568", "0.57778215", "0.56821287", "0.5651277", "0.5456501", "0.54489446", "0.5399678", "0.5374931", "0.53035897", "0.52785593", "0.5267306", "0.52658886", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242...
0.0
-1
Create line instance with name and color
public static Line CreateLine(String id) { return new MyLine(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Line createLine();", "private void lineColor() {\n\n\t}", "public Line(){\n\t\t\n\t}", "public Line (String name, int x1, int y1, int x2, int y2, Color color, GeometricalObjectListener[] listeners) {\n\t\tif (name == null || color == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.name ...
[ "0.73658496", "0.69451976", "0.6713903", "0.6692684", "0.6590157", "0.64523125", "0.62965965", "0.6278601", "0.62517035", "0.6244132", "0.623395", "0.61511296", "0.6114047", "0.60906976", "0.6028875", "0.6020669", "0.59632313", "0.5954356", "0.5953129", "0.5930354", "0.590011...
0.69584537
1
Add given stop with name and time to get there on line
@Override public void AddStop(Stop stop, int delta) { // is the street neighboring any existing streets? if(!AddTraversalStreet(stop.getStreet())) return; if(!stop.getStreet().AddStopToStreet(stop)) return; stops.add(new AbstractMap.SimpleImmutableEntry<>(stop,delta)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToStopList(Stop s){ this.stopList.add(s); }", "public void addToStopList(String stopID, String stopName, String weekTimes, String satTimes\n , String sunTimes, float latitude, float longitude) {\n Stop s = new Stop(stopID, stopName, weekTimes, satTimes,sunTimes, latitude, longitu...
[ "0.6932524", "0.63434625", "0.6188373", "0.6020072", "0.60186595", "0.5964824", "0.59588784", "0.58356255", "0.5793081", "0.5782304", "0.5745042", "0.5736816", "0.57171184", "0.570476", "0.56693107", "0.563705", "0.56294394", "0.56187224", "0.5561436", "0.55443186", "0.551474...
0.6133071
3
Get all stops line vehicles have to cross
public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Stopsinlinedb> fetchStopsInLines();", "List<Stop> getStops();", "public ArrayList<Circle> getLineVehicles()\r\n {\r\n return this.all_line_vehicles;\r\n }", "public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_stree...
[ "0.66766936", "0.6656607", "0.66482365", "0.63938344", "0.616795", "0.61021537", "0.60648894", "0.5929004", "0.57783055", "0.5707533", "0.56995386", "0.5663641", "0.5632082", "0.56263965", "0.5609045", "0.56038064", "0.55673677", "0.5563195", "0.5560462", "0.5552706", "0.5544...
0.5899569
8
Add a street that vehicles will have to traverse on their way
@Override public boolean AddTraversalStreet(Street street) { boolean follows = false; if(streets.size() == 0) { follows = true; } else { for (Street s : streets) { if (s.follows(street)) { follows = true; break; } } } if(!follows) { return false; } if(!streets.contains(street)) streets.add(street); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDetourStreet( Street s)\r\n {\r\n detour_streets.add(s);\r\n }", "public boolean addStreet(Street street)\r\n {\r\n streets_map.add(street);\r\n return true;\r\n }", "public void setStreet(String street) {\n this.street = street;\n }", "public void se...
[ "0.73900557", "0.71773684", "0.69434005", "0.6874142", "0.6874142", "0.681994", "0.6797619", "0.679255", "0.66306317", "0.6616252", "0.64676505", "0.64393353", "0.6391812", "0.63893104", "0.6305381", "0.63009864", "0.6215396", "0.62050337", "0.6149344", "0.61464024", "0.60546...
0.62432355
16
Add vehicle instance to line
@Override public boolean AddVehicleToLine(Vehicle v) { boolean alreadyContainsThisVehicle = false; for(Vehicle vehicle : vehicles) { if(vehicle.getStart() == v.getStart()) { alreadyContainsThisVehicle = true; break; } } if(!alreadyContainsThisVehicle) { vehicles.add(v); for(int i=0; i<stops.size()-1;i++) { Route route = new MyRoute(); route.ConstructRoute(streets, new PointInPath(route, stops.get(i).getKey().getStreet(), stops.get(i).getKey().getCoordinate()), new PointInPath(route, stops.get(i+1).getKey().getStreet(), stops.get(i+1).getKey().getCoordinate()), stops.get(i+1).getValue()); v.AddRoute(route); } return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLineVehicles(Circle c)\r\n {\r\n this.all_line_vehicles.add(c);\r\n return;\r\n }", "private void addVehicle(Vehicle v){\n\t\tthis.putResource(v);\n\t}", "public void addVehicle(Vehicle v) {\n\t\tvehicles.add(v); \n\t}", "public void addVehicle(Vehicle vehicle) {\n t...
[ "0.7003773", "0.6922888", "0.6805053", "0.6773486", "0.6669955", "0.66132265", "0.6552834", "0.6499587", "0.6480336", "0.6179533", "0.6112945", "0.6102945", "0.6099592", "0.6096222", "0.60885316", "0.6049331", "0.60163766", "0.5996623", "0.59137505", "0.586588", "0.5855263", ...
0.74412876
0
Get color of this line
@Override public Color getMapColor() { return mapColor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLineColor()\n {\n return lineColor;\n }", "public Color getLineColor();", "public int getLineColor() {\r\n return LineColor;\r\n }", "public String getLine() {\n \treturn this.lineColor;\n }", "public Color getLineColor()\n {\n return lineacolore;\n ...
[ "0.8400988", "0.83902687", "0.8286077", "0.8266954", "0.8202169", "0.8091884", "0.8003305", "0.771744", "0.77032244", "0.76660436", "0.7504694", "0.7482236", "0.7482236", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", ...
0.0
-1
Test ADSB tuple builder (2d)
@Test public void testADSBTupleBuilder1() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ADSB_2D); final Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1); final Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2); final Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3); final Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4); final Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5); final Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6); final Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7); final Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8); final Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9); final Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10); final Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11); final Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12); Assert.assertNull(tuple1); Assert.assertNull(tuple2); Assert.assertNotNull(tuple3); Assert.assertNull(tuple4); Assert.assertNull(tuple5); Assert.assertNotNull(tuple6); Assert.assertNull(tuple7); Assert.assertNull(tuple8); Assert.assertNotNull(tuple9); Assert.assertNull(tuple10); Assert.assertNull(tuple11); Assert.assertNotNull(tuple12); final GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes())); final GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes())); final GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes())); final GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes())); Assert.assertEquals("AW119KX", geoJson1.getProperties().get("Callsign")); Assert.assertEquals("6600", geoJson1.getProperties().get("Altitude")); Assert.assertEquals("125.706009", geoJson1.getProperties().get("GroundSpeed")); Assert.assertEquals("297.992065", geoJson1.getProperties().get("Track")); Assert.assertEquals(2, tuple3.getBoundingBox().getDimension()); Assert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals("MSR706", geoJson2.getProperties().get("Callsign")); Assert.assertEquals("37000", geoJson2.getProperties().get("Altitude")); Assert.assertEquals("487.345886", geoJson2.getProperties().get("GroundSpeed")); Assert.assertEquals("102.924118", geoJson2.getProperties().get("Track")); Assert.assertEquals(2, tuple6.getBoundingBox().getDimension()); Assert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals("AW119KX", geoJson3.getProperties().get("Callsign")); Assert.assertEquals("6500", geoJson3.getProperties().get("Altitude")); Assert.assertEquals("126.909416", geoJson3.getProperties().get("GroundSpeed")); Assert.assertEquals("300.808899", geoJson3.getProperties().get("Track")); Assert.assertEquals(2, tuple9.getBoundingBox().getDimension()); Assert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals("MSR706", geoJson4.getProperties().get("Callsign")); Assert.assertEquals("37010", geoJson4.getProperties().get("Altitude")); Assert.assertEquals("488.320587", geoJson4.getProperties().get("GroundSpeed")); Assert.assertEquals("102.897881", geoJson4.getProperties().get("Track")); Assert.assertEquals(2, tuple12.getBoundingBox().getDimension()); Assert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple t...
[ "0.74835503", "0.7423203", "0.6586801", "0.6403908", "0.6331261", "0.61956614", "0.60327524", "0.6022626", "0.60036427", "0.6003457", "0.59366167", "0.5923611", "0.5911536", "0.5843716", "0.5840235", "0.57710797", "0.57474774", "0.57253", "0.5629403", "0.5622894", "0.56046903...
0.7795727
0
Test ADSB tuple builder wrong order
@Test public void testADSBTupleBuilder2() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ADSB_2D); final Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3); final Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2); final Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1); final Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3); Assert.assertNull(tuple1); Assert.assertNull(tuple2); Assert.assertNull(tuple3); Assert.assertNotNull(tuple4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple t...
[ "0.76614404", "0.7437438", "0.64851236", "0.61646825", "0.6139136", "0.6126149", "0.6116273", "0.6107939", "0.6081955", "0.60756993", "0.59791726", "0.59663785", "0.59062505", "0.5825361", "0.57727027", "0.57466435", "0.5736327", "0.56731594", "0.56335646", "0.55610156", "0.5...
0.75231284
1
Test ADSB tuple builder
@Test public void testADSBTupleBuilder3() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ADSB_3D); final Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1); final Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2); final Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3); final Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4); final Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5); final Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6); final Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7); final Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8); final Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9); final Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10); final Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11); final Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12); Assert.assertNull(tuple1); Assert.assertNull(tuple2); Assert.assertNotNull(tuple3); Assert.assertNull(tuple4); Assert.assertNull(tuple5); Assert.assertNotNull(tuple6); Assert.assertNull(tuple7); Assert.assertNull(tuple8); Assert.assertNotNull(tuple9); Assert.assertNull(tuple10); Assert.assertNull(tuple11); Assert.assertNotNull(tuple12); Assert.assertEquals(3, tuple3.getBoundingBox().getDimension()); Assert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001); Assert.assertEquals(3, tuple6.getBoundingBox().getDimension()); Assert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001); Assert.assertEquals(3, tuple9.getBoundingBox().getDimension()); Assert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001); Assert.assertEquals(3, tuple12.getBoundingBox().getDimension()); Assert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple t...
[ "0.7595559", "0.7298296", "0.6622004", "0.6369777", "0.63313496", "0.626919", "0.6204806", "0.6187241", "0.61731076", "0.6135138", "0.60675085", "0.60119236", "0.59789044", "0.594887", "0.5945981", "0.5916428", "0.5785475", "0.57767475", "0.57423455", "0.5696377", "0.5661042"...
0.7259623
2
Test the geo json tuple builder
@Test public void testGeoJsonTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608); Assert.assertEquals(expectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple t...
[ "0.6347261", "0.5962633", "0.5952094", "0.59454995", "0.5866534", "0.58530885", "0.56027776", "0.55560654", "0.548897", "0.54756546", "0.54427505", "0.5417528", "0.5403955", "0.54036355", "0.54022866", "0.53917825", "0.53715616", "0.536232", "0.53087884", "0.5278399", "0.5270...
0.83738136
0
Test the rome taxi range tuple builder
@Test public void testRomeTaxiPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_POINT); final Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d, 41.91924450823211, 41.91924450823211, 12.5027184734508, 12.5027184734508); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleB...
[ "0.7550462", "0.7455729", "0.7380854", "0.68866867", "0.6664961", "0.59053653", "0.58800185", "0.57921904", "0.5780536", "0.5736095", "0.5735725", "0.57078034", "0.56945866", "0.5691799", "0.56580913", "0.56577736", "0.56422406", "0.5616093", "0.5615235", "0.5610656", "0.5601...
0.6369648
5
Test the forex 1d tuple builder
@Test public void testForex1DTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.FOREX_1D); final Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, "1"); Assert.assertNotNull(tuple1); Assert.assertEquals(Integer.toString(1), tuple1.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d); Assert.assertEquals(exptectedBox, tuple1.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\...
[ "0.69807434", "0.6626617", "0.645579", "0.6251174", "0.60217994", "0.5894638", "0.58813876", "0.58542097", "0.5840944", "0.5741036", "0.5739194", "0.56826735", "0.5677035", "0.5649317", "0.56225806", "0.560122", "0.56003034", "0.5586924", "0.5497678", "0.5454338", "0.54277724...
0.7418168
0
Test the forex 2d tuple builder
@Test public void testForex2DTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.FOREX_2D); final Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, "1"); Assert.assertNotNull(tuple1); Assert.assertEquals(Integer.toString(1), tuple1.getKey()); Assert.assertEquals(2, tuple1.getBoundingBox().getDimension()); Assert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\...
[ "0.7025494", "0.67349833", "0.65891755", "0.64682657", "0.644466", "0.619995", "0.6169597", "0.60717374", "0.60449016", "0.60295427", "0.60240215", "0.59507316", "0.59434974", "0.5939845", "0.5870343", "0.5783792", "0.57642317", "0.57505155", "0.5740378", "0.57323", "0.567556...
0.72785497
0
Test the rome taxi range tuple builder
@Test public void testRomeTaxiRangeTupleBuilder1() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_RANGE); final Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); final Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, "1"); Assert.assertNull(tuple1); Assert.assertNotNull(tuple2); Assert.assertEquals(Integer.toString(1), tuple2.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d, 41.91924450823211, 41.92924450823211, 12.5027184734508, 14.5527184734508); Assert.assertEquals(exptectedBox, tuple2.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1...
[ "0.7455994", "0.73814833", "0.68870604", "0.6665033", "0.63692766", "0.5905835", "0.58806205", "0.57926965", "0.57813114", "0.5737117", "0.57366365", "0.57095844", "0.56956303", "0.5692609", "0.5658925", "0.5658484", "0.5642776", "0.56169826", "0.5615756", "0.5612439", "0.560...
0.75509214
0
Test the rome taxi range tuple builder
@Test public void testRomeTaxiRangeTupleBuilder2() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_RANGE); final Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, "1"); final Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); Assert.assertNull(tuple1); Assert.assertNotNull(tuple2); Assert.assertEquals(Integer.toString(1), tuple2.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d, 41.91924450823211, 41.92924450823211, 12.5027184734508, 14.5527184734508); Assert.assertEquals(exptectedBox, tuple2.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleB...
[ "0.7550462", "0.7455729", "0.68866867", "0.6664961", "0.6369648", "0.59053653", "0.58800185", "0.57921904", "0.5780536", "0.5736095", "0.5735725", "0.57078034", "0.56945866", "0.5691799", "0.56580913", "0.56577736", "0.56422406", "0.5616093", "0.5615235", "0.5610656", "0.5601...
0.7380854
2
Test the rome taxi range tuple builder with padding
@Test public void testRomeTaxiRangeTupleBuilder3() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_RANGE); tupleBuilder.setPadding(1.0); final Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, "1"); final Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); Assert.assertNull(tuple1); Assert.assertNotNull(tuple2); Assert.assertEquals(Integer.toString(1), tuple2.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d, 40.91924450823211, 42.92924450823211, 11.5027184734508, 15.5527184734508); Assert.assertEquals(exptectedBox, tuple2.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleB...
[ "0.6997034", "0.6898166", "0.6266392", "0.61858296", "0.6067971", "0.60479695", "0.5959636", "0.5952216", "0.5780876", "0.57549495", "0.5751389", "0.5741642", "0.571054", "0.57050604", "0.56294525", "0.55886483", "0.55741584", "0.55252457", "0.54873365", "0.5482618", "0.54750...
0.74011195
0
Test the yellow taxi range tuple builder
@Test public void testYellowTaxiRangeTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.YELLOWTAXI_RANGE); final Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); final Date dateLow = dateParser.parse("2016-01-01 00:00:00"); final Date dateHigh = dateParser.parse("2016-01-01 00:00:00"); final Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625, 40.732406616210937, 40.734695434570313, (double) dateLow.getTime(), (double) dateHigh.getTime()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleB...
[ "0.719991", "0.71929526", "0.6999576", "0.68291473", "0.6347331", "0.62267107", "0.619406", "0.61868507", "0.61532736", "0.6121757", "0.60997444", "0.60965496", "0.60538626", "0.605048", "0.60274273", "0.6019505", "0.60085493", "0.5969683", "0.5960751", "0.5956813", "0.593237...
0.76432323
0
Test the yellow taxi range tuple builder
@Test public void testYellowTaxiPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.YELLOWTAXI_POINT); final Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); final Date dateLow = dateParser.parse("2016-01-01 00:00:00"); final Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563, 40.734695434570313, 40.734695434570313, (double) dateLow.getTime(), (double) dateLow.getTime()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(...
[ "0.76435053", "0.7200995", "0.71930724", "0.70008713", "0.6829869", "0.6348446", "0.6228896", "0.6189135", "0.6155455", "0.61239266", "0.61012894", "0.6099098", "0.60566807", "0.6053085", "0.6028902", "0.60219824", "0.60098076", "0.59721816", "0.5962656", "0.5959674", "0.5934...
0.6193931
7
Test the tpch point tuple builder
@Test public void testTPCHLineitemPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.TPCH_LINEITEM_POINT); final Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd"); final Date date = dateParser.parse("1993-12-04"); final double doubleTime = (double) date.getTime(); final Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNot...
[ "0.75734377", "0.6780683", "0.65508384", "0.620435", "0.6095667", "0.5779748", "0.577906", "0.57592344", "0.5710004", "0.56102204", "0.5555315", "0.5541541", "0.5521745", "0.54956794", "0.5478259", "0.54234666", "0.5395509", "0.5337482", "0.53327656", "0.53280807", "0.5315006...
0.7297143
1
Test the tpch range tuple builder
@Test public void testTPCHLineitemRangeTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.TPCH_LINEITEM_RANGE); final Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd"); final Date shipDateTime = dateParser.parse("1993-12-04"); final Date receiptDateTime = dateParser.parse("1994-01-01"); final double doubleShipDateTime = (double) shipDateTime.getTime(); final double doublereceiptDateTime = (double) receiptDateTime.getTime(); final Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1...
[ "0.67310286", "0.6659138", "0.65370893", "0.6493376", "0.6331656", "0.6193803", "0.6160918", "0.6152105", "0.6130052", "0.6039156", "0.59983903", "0.59983325", "0.5989504", "0.59817964", "0.5965886", "0.5961833", "0.5957433", "0.5956415", "0.59542084", "0.5891196", "0.5889674...
0.6910771
0
Test the tpch range tuple builder
@Test public void testTPCHOrderPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.TPCH_ORDER_POINT); final Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd"); final Date orderDate = dateParser.parse("1996-01-02"); final double doubleOrder = (double) orderDate.getTime(); final Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder); Assert.assertEquals(expectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert....
[ "0.69108725", "0.6731333", "0.6659592", "0.65374637", "0.6493511", "0.6332022", "0.61917335", "0.6161596", "0.61525244", "0.6130798", "0.60387796", "0.5998984", "0.59983456", "0.5987852", "0.5982748", "0.5965352", "0.5960541", "0.5957237", "0.5955771", "0.5954874", "0.5890625...
0.0
-1
Test the synthetic tuple builder
@Test public void testSyntheticTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.SYNTHETIC); final Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267, 49.11808592466023, 52.72529828070016); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); Assert.assertEquals("e1k141dox9rayxo544y9", new String(tuple.getDataBytes())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple t...
[ "0.63941044", "0.6324068", "0.631651", "0.6303905", "0.62405205", "0.6232282", "0.6172458", "0.6137569", "0.6124512", "0.6115262", "0.6011244", "0.5813424", "0.58006275", "0.57714564", "0.575989", "0.5759463", "0.57387286", "0.5712315", "0.57034844", "0.5694052", "0.5685846",...
0.69940907
0
Test the synthetic tuple builder
@Test public void testSyntheticStreamTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.SYNTHETIC_STREAM); final Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE); Assert.assertNotNull(tuple); Assert.assertEquals("2so3r7lmmlt2204", tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414, 17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562, 96.82571259235081,96.82571259235081); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); Assert.assertEquals("y9ucczzo53", new String(tuple.getDataBytes())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\...
[ "0.69940907", "0.63941044", "0.6324068", "0.631651", "0.6303905", "0.62405205", "0.6232282", "0.6172458", "0.6137569", "0.6124512", "0.6115262", "0.6011244", "0.5813424", "0.58006275", "0.57714564", "0.575989", "0.57387286", "0.5712315", "0.57034844", "0.5694052", "0.5685846"...
0.5759463
16
Test the nari dynamic tuple builder
@Test public void testNariDynamicTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.NARI_DYNAMIC); final Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d, -4.4657183d, -4.4657183d, 48.38249d, 48.38249d); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer...
[ "0.5905363", "0.59041667", "0.58584577", "0.58517355", "0.57238084", "0.5722391", "0.5711123", "0.57041633", "0.56786823", "0.5615037", "0.5614897", "0.56061727", "0.55753577", "0.55032974", "0.54619056", "0.5450383", "0.5416129", "0.5393162", "0.5372092", "0.536073", "0.5344...
0.7548259
0
Test the berlinmod player tuple builder
@Test public void testBerlinModPlayerTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.BERLINMOD_PLAYER); final Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d); Assert.assertEquals(1180332136000L, tuple.getVersionTimestamp()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer...
[ "0.68796426", "0.60688406", "0.5763348", "0.57168525", "0.55864894", "0.554079", "0.55101347", "0.54654884", "0.5464319", "0.5454121", "0.5435191", "0.5392258", "0.5383253", "0.5368929", "0.53538144", "0.53087324", "0.52957976", "0.52944094", "0.52901846", "0.52825165", "0.52...
0.8201551
0
Test the berlinmod tuple builder
@Test public void testBerlinModTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.BERLINMOD); final Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d); Assert.assertEquals(1180224000000L, tuple.getVersionTimestamp()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert....
[ "0.7240996", "0.6553515", "0.63719726", "0.63089037", "0.62498945", "0.6190413", "0.59872437", "0.5926607", "0.5921008", "0.58710504", "0.58131474", "0.580672", "0.57696104", "0.5747781", "0.57006615", "0.5579303", "0.5537323", "0.5522208", "0.5516633", "0.5500709", "0.545166...
0.7792293
0
Test the tuple file builder Process non existing file
@Test(expected=IOException.class) public void testTupleFile1() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.delete(); Assert.assertFalse(tempFile.exists()); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); tupleFile.processFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNonExistentFile() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n boolean success =\n job.processFile(NON_EXISTENT_FILE, new ByteArrayOutputStream());\n assertEquals(\"Should record exactly one exception\",\n job.getExceptionArray().length, 1)...
[ "0.66262996", "0.6258809", "0.6003044", "0.5991069", "0.5926792", "0.59126204", "0.5895254", "0.58673775", "0.58643895", "0.5840117", "0.5824747", "0.5810087", "0.57928276", "0.5746489", "0.57279897", "0.57046777", "0.57040083", "0.57020396", "0.5696421", "0.5693844", "0.5693...
0.6601547
1
Test the tuple file builder
@Test public void testTupleFile2() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.deleteOnExit(); // The reference tuple final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); final BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile)); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.close(); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); final AtomicInteger seenTuples = new AtomicInteger(0); tupleFile.addTupleListener(t -> { Assert.assertEquals(tuple.getKey(), t.getKey()); Assert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox()); Assert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes()); seenTuples.incrementAndGet(); }); tupleFile.processFile(); Assert.assertEquals(1, seenTuples.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\...
[ "0.68338674", "0.6514055", "0.64944285", "0.60987353", "0.6027181", "0.6017185", "0.59189016", "0.5880815", "0.5838037", "0.5724345", "0.57201225", "0.5678641", "0.565049", "0.56413835", "0.5636311", "0.56271595", "0.5580934", "0.5574664", "0.55700225", "0.55302006", "0.55165...
0.6527122
1
Test the tuple file builder
@Test public void testTupleFile3() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.deleteOnExit(); // The reference tuple final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); final BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile)); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.close(); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); final AtomicInteger seenTuples = new AtomicInteger(0); tupleFile.addTupleListener(t -> { Assert.assertEquals(tuple.getKey(), t.getKey()); Assert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox()); Assert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes()); seenTuples.incrementAndGet(); }); tupleFile.processFile(1); Assert.assertEquals(1, seenTuples.get()); Assert.assertEquals(2, tupleFile.getProcessedLines()); Assert.assertEquals(GEO_JSON_LINE, tupleFile.getLastReadLine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\...
[ "0.68338674", "0.6527122", "0.6514055", "0.60987353", "0.6027181", "0.6017185", "0.59189016", "0.5880815", "0.5838037", "0.5724345", "0.57201225", "0.5678641", "0.565049", "0.56413835", "0.5636311", "0.56271595", "0.5580934", "0.5574664", "0.55700225", "0.55302006", "0.551654...
0.64944285
3
Test the tuple file builder Read 5 of 3 lines
@Test public void testTupleFile4() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.deleteOnExit(); // The reference tuple final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); final BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile)); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.close(); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); final AtomicInteger seenTuples = new AtomicInteger(0); tupleFile.addTupleListener(t -> { Assert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox()); Assert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes()); seenTuples.incrementAndGet(); }); tupleFile.processFile(3); Assert.assertEquals(3, seenTuples.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTupleFile3() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfi...
[ "0.6841933", "0.64200556", "0.6253322", "0.5968343", "0.5796541", "0.57869613", "0.57597077", "0.57048655", "0.56782216", "0.5617918", "0.5595664", "0.55775326", "0.5480814", "0.5469382", "0.54679763", "0.5441572", "0.5434384", "0.540035", "0.53986216", "0.53974503", "0.53849...
0.67151576
1
Optional. 1 or 0 (true/false) Setting to true will cause the vindicator to exhibit Johnny behavior. Setting to false will prevent the vindicator exhibiting Johnny behavior, even if named Johnny.
public byte getJohnny() { return compound.getByte("Johnny"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setV(boolean v) {\n\tthis.v = v;\n }", "public void setHasVacuum(boolean value){this.hasVacuum = value;}", "public void setIndicadorNuevo(boolean indicadorNuevo)\r\n/* 215: */ {\r\n/* 216:222 */ this.indicadorNuevo = indicadorNuevo;\r\n/* 217: */ }", "public void setVivant(boolea...
[ "0.6771163", "0.6123328", "0.6070498", "0.59422076", "0.5930227", "0.588861", "0.5868426", "0.58258915", "0.58249724", "0.578416", "0.5762678", "0.57442033", "0.5742004", "0.5729519", "0.566614", "0.56491303", "0.5640724", "0.5633752", "0.5633667", "0.56233674", "0.56231195",...
0.0
-1
ListFrame constructor add JScrollPane containing JList to JFrame
public ListFrameRobots(ArrayList<Team> teamRobotInfo) { super( "List Test" ); setLayout( new FlowLayout() ); // set frame layout for(int i = 0; i < 12; i ++) { teamNames[i] = teamRobotInfo.get(i).getTeamName(); } teamNamesJList = new JList(teamNames); teamNamesJList.setVisibleRowCount(12); teamNamesJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); /* add( new JScrollPane(teamNamesJList)); colorJList.addListSelectionListener( new ListSelectionListener() // anonymous inner class { // handle list selection events public void valueChanged( ListSelectionEvent event ) { getContentPane().setBackground( colors[ colorJList.getSelectedIndex() ] ); label.setName("Dogs"); } // end method valueChanged } // end anonymous inner class ); // end call to addListSelectionListener /* teamNamesJList.addListSelectionListener( new ListSelectionListener() // anonymous inner class { // handle list selection events public void valueChanged( ListSelectionEvent event ) { getContentPane().setBackground( colors[ colorJList.getSelectedIndex() ] ); } // end method valueChanged } // end anonymous inner class ); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\r\n private void initComponents() {\r\n\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jList1 = new ScrollableList();\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n\r\n ...
[ "0.75408036", "0.7497929", "0.73417395", "0.7108261", "0.71024644", "0.69952685", "0.695173", "0.6891038", "0.6880951", "0.6862034", "0.68053734", "0.6709397", "0.66866666", "0.667956", "0.6676605", "0.666539", "0.6631546", "0.66176724", "0.6615017", "0.65792465", "0.65387744...
0.6893674
7
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() { jLabel7 = new javax.swing.JLabel(); jCheckBox2 = new javax.swing.JCheckBox(); jCheckBox1 = new javax.swing.JCheckBox(); jLabel6 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jTextField1 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); btn_begin = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(null); jLabel7.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 255, 51)); jLabel7.setText("BEGIN"); getContentPane().add(jLabel7); jLabel7.setBounds(890, 420, 110, 50); jCheckBox2.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jCheckBox2.setText("READY..??"); jCheckBox2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox2ActionPerformed(evt); } }); getContentPane().add(jCheckBox2); jCheckBox2.setBounds(1550, 540, 150, 30); jCheckBox1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jCheckBox1.setText("READY..??"); jCheckBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox1ActionPerformed(evt); } }); getContentPane().add(jCheckBox1); jCheckBox1.setBounds(300, 480, 140, 30); jLabel6.setFont(new java.awt.Font("Tempus Sans ITC", 3, 36)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 51, 0)); jLabel6.setText("PLAYER-2"); getContentPane().add(jLabel6); jLabel6.setBounds(1570, 140, 190, 110); jLabel5.setFont(new java.awt.Font("Tempus Sans ITC", 3, 36)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 51, 0)); jLabel5.setText("PLAYER-1"); getContentPane().add(jLabel5); jLabel5.setBounds(200, 140, 190, 110); jLabel4.setFont(new java.awt.Font("Viner Hand ITC", 3, 24)); // NOI18N jLabel4.setForeground(new java.awt.Color(0, 0, 204)); jLabel4.setText("ENTER YOUR NAME :"); getContentPane().add(jLabel4); jLabel4.setBounds(1320, 380, 290, 60); jTextField2.setFont(new java.awt.Font("Segoe Script", 0, 24)); // NOI18N jTextField2.setText("PLAYER2"); jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } }); getContentPane().add(jTextField2); jTextField2.setBounds(1600, 390, 280, 40); jTextField1.setFont(new java.awt.Font("Segoe Script", 0, 24)); // NOI18N jTextField1.setText("PLAYER1"); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); getContentPane().add(jTextField1); jTextField1.setBounds(290, 380, 280, 40); jLabel3.setFont(new java.awt.Font("Viner Hand ITC", 3, 24)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 51, 0)); jLabel3.setText("ENTER YOUR NAME :"); getContentPane().add(jLabel3); jLabel3.setBounds(10, 370, 290, 60); jLabel2.setFont(new java.awt.Font("Segoe Script", 3, 24)); // NOI18N jLabel2.setForeground(new java.awt.Color(51, 204, 255)); jLabel2.setText("WELCOME TO POKE WORLD"); getContentPane().add(jLabel2); jLabel2.setBounds(770, 20, 400, 50); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/login.jpg"))); // NOI18N getContentPane().add(jLabel1); jLabel1.setBounds(0, 0, 1920, 1080); btn_begin.setText("jButton2"); btn_begin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_beginActionPerformed(evt); } }); getContentPane().add(btn_begin); btn_begin.setBounds(870, 390, 150, 100); pack(); }
{ "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
Main Close Button should exit the program
@Override public void actionPerformed(ActionEvent e) { System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "public void exit() {\r\n \t\t// Sen...
[ "0.83941716", "0.810796", "0.807887", "0.80033326", "0.79395384", "0.7865755", "0.78424895", "0.78287005", "0.78053755", "0.77623373", "0.77616054", "0.7742279", "0.7738406", "0.77370656", "0.7698379", "0.76809555", "0.76642334", "0.76442313", "0.7604757", "0.7576654", "0.756...
0.7309899
65
Constructor of the add operation action.
public AddOperationAction(Classifier classifier, Operation operation) { super("Add operation"); Helper.checkNotNull(classifier, "classifier"); Helper.checkNotNull(operation, "operation"); this.classifier = classifier; this.operation = operation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Add() {}", "private Add() {}", "public A3Add(){}", "public InsertDataAction() {\n\t\tsuper();\n\t}", "public static OperationMBean getAddOperationMBean()\n {\n return new Operation(\"add\");\n }", "public Operation() {\n super();\n }", "public AddResource() {\n }", "...
[ "0.7073881", "0.7073881", "0.69029224", "0.64818877", "0.6424291", "0.6421044", "0.63361275", "0.6309694", "0.62875617", "0.628705", "0.6270338", "0.62527317", "0.6213457", "0.6201381", "0.6196531", "0.6193372", "0.6165291", "0.6162506", "0.61514336", "0.6151405", "0.61484295...
0.6631831
3
Undo the add operation action.
public void undoAction() { classifier.removeFeature(operation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void undoAction(){}", "public void undo() {\n }", "void undoPreviousAction() throws NothingToUndoException;", "public void undo() {\n\t\t\r\n\t}", "public void undo() {\n setExecuted(false);\n }", "public void undo() throws CannotUndoException;", "public void undo() {\n // on...
[ "0.7761433", "0.7692915", "0.76483583", "0.76159286", "0.75821793", "0.7495652", "0.7465516", "0.7444439", "0.7435778", "0.74346566", "0.74346566", "0.74346566", "0.74287254", "0.7378582", "0.7378582", "0.73776203", "0.7360142", "0.73190826", "0.72556174", "0.7248187", "0.720...
0.7250814
19
Execute the add operation action.
public void executeAction() { classifier.addFeature(operation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public void add() {\n }", "public void add() {\n\t\t\n\t}", "private void add() {\n\n\t}", "public void add() {\n\n }", "public void add();", "@Override\n public CommandResult execute() {\n tasks.add(taskToAd...
[ "0.6821945", "0.6571148", "0.6561974", "0.6558206", "0.6518525", "0.64857286", "0.6457851", "0.6446194", "0.6182148", "0.61717665", "0.61509824", "0.6102016", "0.60857594", "0.6079566", "0.60791516", "0.607698", "0.6059528", "0.60370725", "0.6033323", "0.6015098", "0.6008581"...
0.5482762
73
Redo the add operation action.
public void redoAction() { executeAction(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addRedoButton() {\n\t\tredoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.REDO);\n redoButton.setEnabled(false);\n\t\ttoolPanel.add(redoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tc...
[ "0.7290276", "0.71061206", "0.7104899", "0.7094811", "0.6912603", "0.6895579", "0.6848139", "0.6840342", "0.6828163", "0.68203086", "0.6762429", "0.6731581", "0.671502", "0.6656015", "0.6645083", "0.66341376", "0.662952", "0.6572321", "0.6544615", "0.6439839", "0.6394932", ...
0.6632004
16
Default constructor. Initalises common properties for the MuleConfiguration object
public ImmutableMuleDescriptor(ImmutableMuleDescriptor descriptor) { inboundRouter = descriptor.getInboundRouter(); outboundRouter = descriptor.getOutboundRouter(); responseRouter = descriptor.getResponseRouter(); nestedRouter = descriptor.getNestedRouter(); //serviceFactory = descriptor.getServiceFactory(); properties = descriptor.getProperties(); name = descriptor.getName(); threadingProfile = descriptor.getThreadingProfile(); exceptionListener = descriptor.getExceptionListener(); initialState = descriptor.getInitialState(); modelName = descriptor.getModelName(); entryPointResolverSet = descriptor.getEntryPointResolverSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Configuration() {\r\n }", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\"...
[ "0.6646774", "0.66317856", "0.6609006", "0.6543846", "0.6495085", "0.644757", "0.6395954", "0.6371395", "0.63548", "0.6344677", "0.6333841", "0.63301337", "0.63136864", "0.6309619", "0.62793005", "0.62706226", "0.62687135", "0.62665987", "0.62660414", "0.6247728", "0.6231802"...
0.0
-1
Default constructor used by mutable versions of this class to provide defaults for certain properties
protected ImmutableMuleDescriptor() { inboundRouter = new InboundRouterCollection(); inboundRouter.addRouter(new InboundPassThroughRouter()); outboundRouter = new OutboundRouterCollection(); responseRouter = new ResponseRouterCollection(); nestedRouter = new NestedRouterCollection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Default()\n {}", "DefaultAttribute()\n {\n }", "defaultConstructor(){}", "public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }", "void DefaultConstructor(){}", "public Property() {\n this(0, 0, 0, 0);\n }", "public void initializeDefault() {\n\t\tthis.numAu...
[ "0.7330257", "0.69114673", "0.69016165", "0.67552614", "0.6735714", "0.670048", "0.66533333", "0.663382", "0.65726656", "0.6542521", "0.652948", "0.6523897", "0.6464651", "0.6462916", "0.63570595", "0.6255017", "0.62457216", "0.62266", "0.6224983", "0.62220496", "0.6210038", ...
0.0
-1
The threading profile used by the UMO when managing a component. Can be used to allocate more or less resources to this particular umo component.
public ThreadingProfile getThreadingProfile() { return threadingProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getThreadUsed();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumbe...
[ "0.60212505", "0.59625435", "0.5869545", "0.5745812", "0.57080775", "0.5665162", "0.56401527", "0.5582028", "0.55084586", "0.5476532", "0.54536986", "0.54532194", "0.54380363", "0.54232836", "0.54091525", "0.54008305", "0.53974587", "0.53714883", "0.53656495", "0.536086", "0....
0.7343981
0
A descriptor can have a custom entrypoint resolver for its own object. By default this is null. When set this resolver will override the resolver on the model
public UMOEntryPointResolverSet getEntryPointResolverSet() { return entryPointResolverSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XMLClassDescriptorResolverImpl() {\n super();\n _descriptorCache = new DescriptorCacheImpl();\n }", "public void preResolve(Contribution contribution, ModelResolver resolver, ProcessorContext context)\n throws ContributionResolveException {\n // Resolve the contribution m...
[ "0.52340066", "0.493313", "0.47993734", "0.47585264", "0.4711174", "0.4701523", "0.46937677", "0.4684465", "0.4615868", "0.4614262", "0.46108088", "0.46092778", "0.45833713", "0.45686024", "0.45611984", "0.45569822", "0.45366442", "0.4502861", "0.45027542", "0.44953704", "0.4...
0.5386456
0
String path = "/home/suporte/Workspace/Teste/spyclass.jar";
public boolean contains(String path, String canonicalName) { try { File meuRecurso = new File(path); URLClassLoader child; child = new URLClassLoader( new URL[] {meuRecurso.toURI().toURL()}, JarLoad.class.getClassLoader() ); Class<?> classToLoad = Class.forName(canonicalName, true, child); if (classToLoad != null) { return false; } else { return false; } } catch (MalformedURLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File jarFile(String path) {\n\t\treturn FileUtils.getFile(new File(JAR_DIR + StringUtils.substringAfterLast(path, \"/\")));\n\t}", "public String getJarLocation();", "public static String getJarPath() {\n String classPath = \"/\" + JavaUtils.class.getName();\n classPath = classPath.repl...
[ "0.67052054", "0.63835585", "0.629565", "0.61885506", "0.60159326", "0.5846819", "0.5815674", "0.58081406", "0.57265055", "0.5621626", "0.5532876", "0.5500779", "0.54962176", "0.5480171", "0.5480171", "0.5459465", "0.5430465", "0.5409352", "0.5359796", "0.5356714", "0.5340373...
0.0
-1
Repeat 3 times to ensure command send successfully
public String sendCommand(int id, String command){ int status = ts.sendCmd(id, command,3); String rback = "SUCCESS"; if(status != 0){ String error = ts.getErrorString(status); log.info("sendCmd failed with error " + error); rback = error; } return rback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean sendTryTwice(byte[] head, byte[] chunk) {\n for (int action = 0; action < 2; action++) {\n if (send0(head, chunk)) {\n return true;\n }\n }\n return false;\n }", "public boolean send() {\n\n int timeout = 15000; // 10 secondi in ...
[ "0.62264454", "0.6073031", "0.6054927", "0.6044903", "0.59716046", "0.5936907", "0.5913834", "0.5776307", "0.5743227", "0.5717353", "0.5674061", "0.5640098", "0.56232727", "0.5618026", "0.5602935", "0.5591535", "0.5579656", "0.5577691", "0.55428004", "0.55258226", "0.55120635...
0.5131585
72
Populate a field with foxes and rabbits.
public void populate(Field field, List<Actor> actors) { field.clear(); for (int row = 0; row < field.getDepth(); row++) { for (int col = 0; col < field.getWidth(); col++) { ActorFactory actorFactory = AbstractActorFactory.create(); if(actorFactory != null) { Actor actor = actorFactory.create(row, col); if (actor != null) { actors.add(actor); field.place(actor, row, col); } } // else leave the location empty. } } Collections.shuffle(actors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FI...
[ "0.5925521", "0.5750529", "0.57372284", "0.57230145", "0.57181865", "0.5608259", "0.559423", "0.5552469", "0.554736", "0.5532081", "0.5519413", "0.5484925", "0.54789144", "0.5404927", "0.5378566", "0.5364743", "0.5359614", "0.53397644", "0.53192794", "0.52772", "0.52708346", ...
0.5194055
30
TODO Autogenerated method stub
public static void main(String[] args) { WebDriver driver=new FirefoxDriver(); driver.get("http://jqueryui.com/tooltip/"); driver.switchTo().frame(0); Sleeper.sleepTightInSeconds(10); Actions action=new Actions(driver); WebElement TTip=driver.findElement(By.id("age")); action.moveToElement(TTip).build().perform(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n ...
[ "0.6757336", "0.6757336", "0.6757336", "0.6757336", "0.645736", "0.6433992", "0.6267839", "0.6221642", "0.6050435", "0.6049693", "0.59963495", "0.5994846", "0.5976839", "0.596635", "0.5930063", "0.592898", "0.5919676", "0.58836275", "0.58732635", "0.57894117", "0.57894117", ...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.id
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JSProperty(\"id\")\n void setId(String value);", "@JsProperty(name = \"id\")\n public native void setId(String value);", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n ...
[ "0.620044", "0.6184319", "0.6040156", "0.6040156", "0.6040156", "0.6040156", "0.56492466", "0.56492466", "0.56492466", "0.56492466", "0.5601641", "0.55862296", "0.5582284", "0.5567145", "0.5566135", "0.5443805", "0.543631", "0.5433364", "0.54230034", "0.5417466", "0.53722453"...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.codename
public String getCodename() { return codename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSqlCode();", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "java.lang.String getCodeName();", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValu...
[ "0.6546719", "0.63949364", "0.6391833", "0.63560605", "0.62525296", "0.62525296", "0.62078923", "0.6200258", "0.6087942", "0.6085286", "0.6085286", "0.60363704", "0.60257447", "0.60198385", "0.6006937", "0.59908843", "0.5978963", "0.5971112", "0.5971112", "0.5971112", "0.5971...
0.6488797
1
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.codename
public void setCodename(String codename) { this.codename = codename == null ? null : codename.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "protected void setCode(UiAction uiAction, ResultSet rs, ...
[ "0.60229695", "0.6000668", "0.5913043", "0.589895", "0.58141756", "0.57970583", "0.5775211", "0.57547015", "0.5713422", "0.568161", "0.5668318", "0.56383973", "0.56053853", "0.5597828", "0.55947316", "0.5592016", "0.5587544", "0.557759", "0.5551554", "0.5523622", "0.55176634"...
0.6440192
0
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.created_by
public Long getCreatedBy() { return createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public nati...
[ "0.7533305", "0.7533305", "0.7533305", "0.7533305", "0.74241453", "0.7199911", "0.7150119", "0.7096294", "0.7079361", "0.7079361", "0.7079361", "0.7079361", "0.7079361", "0.7079361", "0.70688975", "0.70483565", "0.70326823", "0.7032523", "0.7031703", "0.70275605", "0.70275605...
0.7077564
17
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.created_by
public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void s...
[ "0.71048564", "0.7104235", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.70583946", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.6914771", "0.6893549", "0.689...
0.6849385
28
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.updated_by
public Long getUpdatedBy() { return updatedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String updatedBy() {\n return this.updatedBy;\n }", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public...
[ "0.7781837", "0.7738684", "0.76653904", "0.766309", "0.76545054", "0.76545054", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.76335263", "0.7598023", ...
0.7655598
6
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.updated_by
public void setUpdatedBy(Long updatedBy) { this.updatedBy = updatedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void set...
[ "0.74325424", "0.74259806", "0.73132294", "0.73132294", "0.73132294", "0.73088896", "0.7259521", "0.72231597", "0.71523386", "0.708115", "0.7052403", "0.7011093", "0.6996633", "0.6996633", "0.6996633", "0.6996633", "0.6995091", "0.69668925", "0.69668925", "0.69668925", "0.696...
0.7324931
4
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.created_at
public Date getCreatedAt() { return createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCreated_at();", "public String getCreated_at() {\n return created_at;\n }", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTi...
[ "0.7055657", "0.6775134", "0.67460823", "0.6744897", "0.6712351", "0.6650904", "0.664823", "0.6589708", "0.6573367", "0.65676004", "0.6547102", "0.6542456", "0.65286624", "0.652719", "0.65251297", "0.6514878", "0.6504472", "0.6498088", "0.6474023", "0.6459495", "0.6459495", ...
0.6407314
33
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.created_at
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedOn(DateTime createdOn);", "public void setDateCreated(Date dateCreated);", "void setCreatedDate(Date createdDate);", "public void setCreatedDate(Date createdDate);", "public void setCreatedAt(final Date value)\n\t{\n\t\tsetCreatedAt( getSession().getSessionContext(), value );\n\t}", ...
[ "0.632875", "0.6194673", "0.6079446", "0.60722727", "0.60578775", "0.60564905", "0.5953267", "0.59489596", "0.5937728", "0.59037447", "0.58602077", "0.58547497", "0.5853452", "0.5853452", "0.5853233", "0.5849766", "0.5847937", "0.58288896", "0.58223194", "0.58223194", "0.5819...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.updated_at
public Date getUpdatedAt() { return updatedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedOn();", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", ...
[ "0.7312936", "0.7258646", "0.72030634", "0.72030634", "0.72030634", "0.71277344", "0.7106542", "0.7088406", "0.7088406", "0.7076607", "0.70598054", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458"...
0.7153162
11
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.updated_at
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdatedOn(Date updatedOn);", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedOn();", "public Date getUpda...
[ "0.6856163", "0.66755384", "0.66755384", "0.66755384", "0.65978587", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6580089", "0.651685", "0.651685", "0.65093136", "0.64927316", "0.6374614", "0.6374614", "0.63341904", "0.6308645"...
0.60720015
52
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.code
public String getCode() { return code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSqlCode();", "public String getCode() {\n return (String) get(\"code\");\n }", "java.lang.String getCode();", "java.lang.String getCode();", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public String getCode();", "public String getCode();", ...
[ "0.71845037", "0.6736679", "0.67142093", "0.67142093", "0.6595733", "0.65932745", "0.65932745", "0.65679944", "0.65510106", "0.65510106", "0.65172935", "0.6516805", "0.6512707", "0.6497759", "0.6478006", "0.64755934", "0.64755934", "0.6473249", "0.6473249", "0.6473249", "0.64...
0.642547
61
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.code
public void setCode(String code) { this.code = code == null ? null : code.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCode(String code);", "public void setCode(Code code) {\n this.Code = code;\n }", "public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public void setCode (String code) {\r\n\t\tthis.code = c...
[ "0.6412472", "0.6333422", "0.6280086", "0.62630606", "0.62519324", "0.6245834", "0.62335473", "0.6205098", "0.6168635", "0.6168635", "0.6168635", "0.6168635", "0.6168635", "0.6168635", "0.6151458", "0.6147877", "0.6146674", "0.6146674", "0.6146674", "0.61236995", "0.61236995"...
0.5751548
98
Check if the existing view is being reused, otherwise inflate the view
@NonNull @Override public View getView(int position, View convertView, ViewGroup parent) { View listItemView = convertView; if(listItemView == null) { listItemView = LayoutInflater.from(getContext()).inflate( R.layout.list_items_3, parent, false); } //Get the current position of the subscription in the listview and update accordingly Subscription currentSubscription = getItem(position); TextView nameTextView = (TextView) listItemView.findViewById(R.id.listName); nameTextView.setText(currentSubscription.getName()); TextView dateTextView = (TextView) listItemView.findViewById(R.id.listDate); dateTextView.setText("Date: "+ currentSubscription.getDate()); TextView chargeTextView = (TextView) listItemView.findViewById(R.id.listCharge); chargeTextView.setText("Charge: "+ currentSubscription.getCharge()); TextView commentTextView = (TextView) listItemView.findViewById(R.id.listComment); commentTextView.setText("Comment: "+ currentSubscription.getComment()); return listItemView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recycleCheck(){\n getScreenRect();\n\n //ok...seriously, I have no idea why I need to wrap it in post()\n //but if I don't, it won't be able to setHtml() again (the second time)\n //TODO investigate what the fuck is going on\n post(new Runnable() {\n @Overr...
[ "0.6012342", "0.5880934", "0.58615726", "0.584449", "0.5721151", "0.5706904", "0.5685344", "0.5645247", "0.5608972", "0.5608311", "0.55974954", "0.55745643", "0.5554787", "0.55531025", "0.5546757", "0.55425113", "0.5530094", "0.55143195", "0.55095357", "0.54927", "0.5490238",...
0.0
-1
Created by qibin on 2015/11/29.
public interface INetStack<T> { void get(final String url, final Net.Parser<T> parser, final Net.Callback<T> callback, final Object tag); void post(final String url, final RequestParams params, final Net.Parser<T> parser, final Net.Callback<T> callback, final Object tag); void onNetResponse(final Net.Parser<T> parser, final Net.Callback<T> callback, final String response); void onError(final Net.Callback<T> callback, final String msg); void cancel(Object tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r...
[ "0.62480736", "0.6081809", "0.6069182", "0.6069182", "0.6051236", "0.6010622", "0.59796727", "0.59622866", "0.5909171", "0.5868666", "0.58638847", "0.5836325", "0.58330756", "0.5824269", "0.5822569", "0.58122754", "0.58046925", "0.58046925", "0.58046925", "0.58046925", "0.580...
0.0
-1
Created by tao.zhang on 1698.
public interface OnFragmentListener { void onAction(Intent intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private sta...
[ "0.61882395", "0.61289203", "0.60830927", "0.6075613", "0.6022615", "0.6022615", "0.6010686", "0.5974607", "0.5941067", "0.59291255", "0.5902528", "0.5900336", "0.5900239", "0.589506", "0.58796877", "0.58388627", "0.5811917", "0.5800816", "0.5792881", "0.57799673", "0.5770795...
0.0
-1
Method for handling intents
private void handleIntent(Intent intent) { // TODO Auto-generated method stub if (Intent.ACTION_VIEW.equals(intent.getAction())) { Intent paintingIntent = new Intent(this, PaintingActivity.class); paintingIntent.setData(intent.getData()); startActivity(paintingIntent); } else if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String query = intent.getStringExtra(SearchManager.QUERY); Log.v("Debug", "Search started"); showResults(query); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "void mo21580A(Intent intent);", "protected abstract Intent getIntent();", "@Override\n ...
[ "0.72728276", "0.71978676", "0.716102", "0.7096474", "0.6881334", "0.6819282", "0.67519546", "0.6633404", "0.6623485", "0.6440437", "0.64118636", "0.6406174", "0.62522674", "0.6240561", "0.6239783", "0.6232728", "0.61714053", "0.61385953", "0.61321056", "0.6117069", "0.611029...
0.6307373
12
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_search, menu); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); mSearchView = (SearchView) menu.findItem(R.id.search_bar2).getActionView(); mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); mSearchView.setIconifiedByDefault(false); mSearchView.setOnQueryTextListener(this); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615...
0.0
-1
Search the database for the artwork name
public void showResults(String query) { //For prototype will replace with db operations String[] str = { "Artowrk1", "Some other piece", "This art", "Mona Lisa" }; ArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str); mListView.setAdapter(aa); mListView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Artist getByName(String name);", "public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listS...
[ "0.66649735", "0.5820493", "0.58148855", "0.5814819", "0.5773751", "0.57073826", "0.56265485", "0.5607924", "0.555997", "0.55572706", "0.5523879", "0.5520313", "0.5511705", "0.55027354", "0.5502106", "0.54873353", "0.54777", "0.54702246", "0.54284656", "0.5397645", "0.5351807...
0.0
-1
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onQueryTextChange(String newText) { Log.v("query","onQueryTextChange"); mTextView.setText("Searching for " + newText); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onQueryTextSubmit(String query) { Log.v("query", "onQueryTextSubmit"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.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
Returns the value of the 'Label' containment reference. If the meaning of the 'Label' containment reference isn't clear, there really should be more of a description here...
StopLabel getLabel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getLabel() \n {\n return label;\n }", "public Label getLabel() {\n return this.label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public String getLabel() {\n return getElement().get...
[ "0.6856982", "0.6768644", "0.6749633", "0.6749633", "0.6690487", "0.6689128", "0.6685343", "0.6683489", "0.66688234", "0.6654614", "0.6632365", "0.6621764", "0.6617058", "0.6615535", "0.6601654", "0.6597522", "0.65922475", "0.65892327", "0.65726256", "0.65726256", "0.65680856...
0.0
-1
is it minheap or maxHeap if max is false or not passed > minheap if max is true > maxheap
GenericHeap() { // default }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isMinHeap() {\r\n return isMinHeap(1);\r\n }", "public boolean isHeap() \n {\n \tint childIndex;\n \tfor (int i=0 ; i < this.getSize() ; i++) {\n \t\tfor (int j=1 ; j <= this.d ; j++) {\n \t\t\tif( (childIndex=child(i, j, this.d))>=this.getSize() ) {\n \t\t\t\treturn t...
[ "0.69718903", "0.6598609", "0.6522736", "0.64383113", "0.6374067", "0.6353035", "0.62961227", "0.62398964", "0.6238846", "0.6139538", "0.6117683", "0.6015477", "0.6006109", "0.60004306", "0.59689105", "0.5962973", "0.59278715", "0.59127444", "0.5880587", "0.58731246", "0.5787...
0.0
-1
Getter for the name field.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String getName() { return name.get(); }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getName() {\n return name.get();\n }", "PropertyName getName();", ...
[ "0.8404591", "0.8180093", "0.8139232", "0.81318563", "0.8063437", "0.80438507", "0.80030763", "0.80014485", "0.8000715", "0.79985684", "0.79748446", "0.7973473", "0.7969857", "0.7969857", "0.7969857", "0.7967183", "0.7958005", "0.7958005", "0.79561895", "0.7943691", "0.793874...
0.0
-1
TODO test models with more than one end (should work but if it doesn't is going to be hard to fix) and more than one start(wont probably work but it's easy to fix)
@Test void getMandatoryDeepSuccessors () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findEndIndex(){\n\t\tint end=models.size()-1;\n\t\tfor(int i=0;i<modelNames.size();i++){\n\t\t\tif(Integer.parseInt(modelNames.get(i).substring(0,8))>this.date_end)\n\t\t\t{end=i-1;break;}\n\t\t}\n\t\treturn end;\n\t}", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified ...
[ "0.61507183", "0.5714179", "0.54118353", "0.5360236", "0.5209344", "0.5178409", "0.5170473", "0.5146349", "0.51449275", "0.5130759", "0.50928235", "0.5086126", "0.5059386", "0.5050349", "0.5023374", "0.5003183", "0.49951643", "0.49945253", "0.4986519", "0.4981423", "0.4943762...
0.0
-1
TODO maybe create an equal model but from Signavio? It will fail, because types are different, unless I add a translator to the code which is not difficult i just have to find the right place to add it in.
@Test void ignoreDifferentPlacement () throws ParserConfigurationException, SAXException, IOException, XPathExpressionException { Model base = new Model("./tests/TestModels/TravelAgency" + "/BaseModelForTA.bpmn.xml"); //the model against which all others will be tested. Model onlyPositionsAreDifferent = new Model("./tests/TestModels" + "/TravelAgency/onlyPositionsAreDifferent.bpmn.xml"); assertFalse(TravelAgency.modelsAreDifferent(base, onlyPositionsAreDifferent)); //The position of the BPMN symbols should not matter. As such, it // should be equal to the base model. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = ...
[ "0.5822156", "0.5484212", "0.54234064", "0.54111373", "0.5273645", "0.52729976", "0.52450526", "0.52322215", "0.52191854", "0.5213905", "0.52050775", "0.5203702", "0.5168074", "0.51376146", "0.51178217", "0.5107337", "0.50923824", "0.5079053", "0.50770456", "0.50746226", "0.5...
0.0
-1
Only one element type is different, in the second pool.
@Test void twoPools () throws XPathExpressionException, ParserConfigurationException, SAXException, IOException { Model base = new Model("./tests/TestModels/TravelAgency" + "/TwoPools" + ".bpmn.xml"); //the model against which all others will be tested. Model onlyTypesAreDifferent = new Model("./tests/TestModels" + "/TravelAgency/TwoPoolsOneDifferent.bpmn.xml"); assertTrue(TravelAgency.modelsAreDifferent(base, onlyTypesAreDifferent)); //The type of the models matters: as such it is a different model // from the original. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean areEqual(Element element1, Element element2, HashMap<String, Integer> lengthMap, GUIState state, GUIState currentState) throws MultipleListOrGridException {\n if (!isAttributeEqual(element1, element2)) {\n return false;\n }\n\n for (int i = 0; i < max(element1.element...
[ "0.54815245", "0.53346574", "0.5245602", "0.49695712", "0.49635178", "0.4938609", "0.49249282", "0.4866258", "0.48508543", "0.4823402", "0.48194894", "0.4818599", "0.47971088", "0.47880647", "0.47812667", "0.4765915", "0.47541448", "0.47469106", "0.47084153", "0.4698717", "0....
0.5669081
0
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { // configure orders table orderID_column.setCellValueFactory(new PropertyValueFactory<>("order_id")); brandName_column.setCellValueFactory(new PropertyValueFactory<>("brand_name")); price_column.setCellValueFactory(new PropertyValueFactory<>("total_price")); date_column.setCellValueFactory(new PropertyValueFactory<>("order_date")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
get Customer Information from waitingCustomer scene
public void initData(Customer customer) throws SQLException{ this.selectedCustomer = customer ; this.fullnameLabel.setText(selectedCustomer.getFullname()); this.username.setText(selectedCustomer.getUsername()); this.phone.setText(selectedCustomer.getPhone()); this.email.setText(selectedCustomer.getEmail()); this.address.setText(selectedCustomer.getAddress()); this.customer_id.setText(Integer.toString(selectedCustomer.getCustomer_id())); this.tableView.setItems(getOrders()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getCustomer() {\n final LoginGet loginget = new LoginGet();\n loginget.setLoginGetListener(new LoginGetListener() {\n\n @Override\n public void getMember(ArrayList<Customer> list) {\n\n }\n\n @Override\n public void getCustomer(Array...
[ "0.65148777", "0.64383847", "0.6332182", "0.63138485", "0.6164114", "0.6159675", "0.6135262", "0.6127739", "0.6127739", "0.6123475", "0.61202383", "0.61183345", "0.60973686", "0.6094477", "0.608623", "0.6081957", "0.6077083", "0.6055366", "0.60077953", "0.59884816", "0.598251...
0.0
-1