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
This method was generated by MyBatis Generator. This method sets the value of the database column litemall_product.detail
public void setDetail(String detail) { this.detail = detail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDetail(String detail) {\r\n this.detail = detail;\r\n }", "public void setDetail(String detail) {\n this.detail = detail;\n }", "public String getDetail_id() {\n return detail_id;\n }", "public void updateDetail(String proid) {\n\t\tsqlSession.update(\"product.updateDet...
[ "0.615766", "0.60687464", "0.5777879", "0.5730875", "0.5635794", "0.56026417", "0.55669445", "0.54656935", "0.5456115", "0.53488886", "0.5174802", "0.5144448", "0.5115276", "0.5115276", "0.51132095", "0.50828654", "0.50548077", "0.50459427", "0.5045198", "0.5045198", "0.50451...
0.609053
3
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", IS_DELETED=").append(IS_DELETED); sb.append(", NOT_DELETED=").append(NOT_DELETED); sb.append(", id=").append(id); sb.append(", goodsId=").append(goodsId); sb.append(", name=").append(name); sb.append(", seriesId=").append(seriesId); sb.append(", brandId=").append(brandId); sb.append(", gallery=").append(gallery); sb.append(", keywords=").append(keywords); sb.append(", brief=").append(brief); sb.append(", sortOrder=").append(sortOrder); sb.append(", picUrl=").append(picUrl); sb.append(", buyLink=").append(buyLink); sb.append(", addTime=").append(addTime); sb.append(", updateTime=").append(updateTime); sb.append(", deleted=").append(deleted); sb.append(", detail=").append(detail); sb.append("]"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
@Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } LitemallProduct other = (LitemallProduct) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getSeriesId() == null ? other.getSeriesId() == null : this.getSeriesId().equals(other.getSeriesId())) && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId())) && (Arrays.equals(this.getGallery(), other.getGallery())) && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords())) && (this.getBrief() == null ? other.getBrief() == null : this.getBrief().equals(other.getBrief())) && (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder())) && (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl())) && (this.getBuyLink() == null ? other.getBuyLink() == null : this.getBuyLink().equals(other.getBuyLink())) && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted())) && (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.653806", "0.63270307", "0.63212883", "0.6198039", "0.6083512", "0.59967434", "0.59753954", "0.5972599", "0.59454894", "0.5943329", "0.59426767", "0.59426767", "0.5914499", "0.58946496", "0.58838457", "0.5815691", "0.58124167", "0.5810385", "0.58074087", "0.57994294", "0.57...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode()); result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); result = prime * result + ((getSeriesId() == null) ? 0 : getSeriesId().hashCode()); result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode()); result = prime * result + (Arrays.hashCode(getGallery())); result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode()); result = prime * result + ((getBrief() == null) ? 0 : getBrief().hashCode()); result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode()); result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode()); result = prime * result + ((getBuyLink() == null) ? 0 : getBuyLink().hashCode()); result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode()); result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode()); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.6538569", "0.6326936", "0.63223284", "0.61975235", "0.60833627", "0.59977186", "0.5975833", "0.59727526", "0.5945911", "0.59440315", "0.5943318", "0.5943318", "0.59146917", "0.5894258", "0.5884854", "0.5815905", "0.5811975", "0.5810037", "0.5807719", "0.5800055", "0.578664...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
Deleted(Boolean value, String name) { this.value = value; this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public Boolean getValue() { return this.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public Boolean value() { return this.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.653806", "0.63270307", "0.63212883", "0.6198039", "0.6083512", "0.59967434", "0.59753954", "0.5972599", "0.59454894", "0.5943329", "0.59426767", "0.59426767", "0.5914499", "0.58946496", "0.58838457", "0.5815691", "0.58124167", "0.5810385", "0.58074087", "0.57994294", "0.57...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.6538569", "0.6326936", "0.63223284", "0.61975235", "0.60833627", "0.59977186", "0.5975833", "0.59727526", "0.5945911", "0.59440315", "0.5943318", "0.5943318", "0.59146917", "0.5894258", "0.5884854", "0.5815905", "0.5811975", "0.5810037", "0.5807719", "0.5800055", "0.578664...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String value() { return this.column; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String getValue() { return this.column; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String getJavaProperty() { return this.javaProperty; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.653806", "0.63270307", "0.63212883", "0.6198039", "0.6083512", "0.59967434", "0.59753954", "0.5972599", "0.59454894", "0.5943329", "0.59426767", "0.59426767", "0.5914499", "0.58946496", "0.58838457", "0.5815691", "0.58124167", "0.5810385", "0.58074087", "0.57994294", "0.57...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String getJdbcType() { return this.jdbcType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.6538569", "0.6326936", "0.63223284", "0.61975235", "0.60833627", "0.59977186", "0.5975833", "0.59727526", "0.5945911", "0.59440315", "0.5943318", "0.5943318", "0.59146917", "0.5894258", "0.5884854", "0.5815905", "0.5811975", "0.5810037", "0.5807719", "0.5800055", "0.578664...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; this.javaProperty = javaProperty; this.jdbcType = jdbcType; this.isColumnNameDelimited = isColumnNameDelimited; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String desc() { return this.getEscapedColumnName() + " DESC"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String asc() { return this.getEscapedColumnName() + " ASC"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.653806", "0.63270307", "0.63212883", "0.6198039", "0.6083512", "0.59967434", "0.59753954", "0.5972599", "0.59454894", "0.5943329", "0.59426767", "0.59426767", "0.5914499", "0.58946496", "0.58838457", "0.5815691", "0.58124167", "0.5810385", "0.58074087", "0.57994294", "0.57...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public static Column[] excludes(Column ... excludes) { ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); if (excludes != null && excludes.length > 0) { columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); } return columns.toArray(new Column[]{}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.6538569", "0.6326936", "0.63223284", "0.61975235", "0.60833627", "0.59977186", "0.5975833", "0.59727526", "0.5945911", "0.59440315", "0.5943318", "0.5943318", "0.59146917", "0.5894258", "0.5884854", "0.5815905", "0.5811975", "0.5810037", "0.5807719", "0.5800055", "0.578664...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String getEscapedColumnName() { if (this.isColumnNameDelimited) { return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); } else { return this.column; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_product
public String getAliasedEscapedColumnName() { return this.getEscapedColumnName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t...
[ "0.65381384", "0.6327605", "0.63234967", "0.6197391", "0.608372", "0.5998906", "0.5976797", "0.59724194", "0.5946152", "0.5945253", "0.5944576", "0.5944576", "0.59153074", "0.58949244", "0.5884854", "0.581619", "0.58115894", "0.5810023", "0.5808849", "0.58005947", "0.5786624"...
0.0
-1
1. identify person based on name and birth date, retrieve internal reference
private void processPerson(SwsService swsService) { PersonSokResponse personSokResponse = swsService.personSearch(getPersonSearchRequest()); Personalia personalia = personSokResponse.getPersonalia().get(0); Long internalRef = personalia.getInternref(); // 2. fetch person information based in retrieved internal reference HentPersonResponse hentPersonResponse = swsService.personInfo(internalRef); // 3. output person name System.out.println(hentPersonResponse.getNavnAdresse().getNavn()); // 4. output messages (if any) List<com.bisnode.services.sws.generated.person.Meldinger> messages = hentPersonResponse.getMeldinger(); if (messages != null && messages.size() > 0) { for (com.bisnode.services.sws.generated.person.Meldinger msg : hentPersonResponse.getMeldinger()) { System.out.println(msg.getMeldingsKode() + ": " + msg.getMeldingsTekst()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void lookupAndSaveNewPerson();", "public PersonRecord(long id, String name, long birthDate)\n\t{\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t\tthis.birthDate = birthDate;\n\t}", "public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t...
[ "0.6477444", "0.62159115", "0.61080956", "0.5976093", "0.590655", "0.590558", "0.5868182", "0.58679485", "0.5861895", "0.5854706", "0.57489395", "0.5748439", "0.57388556", "0.5728451", "0.57177407", "0.5713583", "0.5704473", "0.569515", "0.56588644", "0.56499314", "0.5648606"...
0.0
-1
1. identify company based on name and address, retrieve organization number
private void processCompany(SwsService swsService) { ForetakSokResponse foretakSokResponse = swsService.companySearch(getCompanySearchRequest()); ForetakData foretakData = foretakSokResponse.getForetakData().get(0); Integer orgNo = foretakData.getOrgnr(); // 2. fetch company information based in retrieved organization number HentForetakResponse hentForetakResponse = swsService.companyInfo(orgNo); // 3. output company name System.out.println(hentForetakResponse.getNavnAdresse().getNavn()); // 4. output messages (if any) List<com.bisnode.services.sws.generated.company.Meldinger> messages = hentForetakResponse.getMeldinger(); if (messages != null && messages.size() > 0) { for (com.bisnode.services.sws.generated.company.Meldinger msg : hentForetakResponse.getMeldinger()) { System.out.println(msg.getMeldingsKode() + ": " + msg.getMeldingsTekst()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCompany();", "public Company getCompany(String companyShortName);", "String getOrganization();", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "String organizationId();", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n ...
[ "0.6397367", "0.63585335", "0.633638", "0.6249675", "0.6249675", "0.6232155", "0.62262416", "0.6211688", "0.60975724", "0.6080466", "0.6080466", "0.6080466", "0.6080466", "0.6080466", "0.6071584", "0.6022749", "0.5998732", "0.5998732", "0.5998732", "0.5998732", "0.5998732", ...
0.0
-1
true:already in using false:not using
public static boolean isLoclePortUsing(int port){ boolean flag = true; try { flag = isPortUsing("127.0.0.1", port); } catch (Exception e) { } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isUsed();", "boolean isUsed();", "protected boolean func_70814_o() { return true; }", "boolean hasAutomatic();", "boolean isImmediate();", "public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}", "public boolean method_2453() {\r\n return false;\r\n }", "public boolean method_24...
[ "0.65574694", "0.65574694", "0.6392495", "0.6298212", "0.6218924", "0.61236787", "0.6049768", "0.59939253", "0.59713745", "0.59604406", "0.5912916", "0.5897225", "0.58829963", "0.5881868", "0.5876904", "0.586899", "0.5857157", "0.58435446", "0.58058375", "0.5790041", "0.57774...
0.0
-1
true:already in using false:not using
@SuppressWarnings("unused") public static boolean isPortUsing(String host, int port) throws UnknownHostException { boolean flag = false; InetAddress theAddress = InetAddress.getByName(host); try { Socket socket = new Socket(theAddress,port); flag = true; } catch (IOException e) { } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isUsed();", "boolean isUsed();", "protected boolean func_70814_o() { return true; }", "boolean hasAutomatic();", "boolean isImmediate();", "public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}", "public boolean method_2453() {\r\n return false;\r\n }", "public boolean method_24...
[ "0.65574694", "0.65574694", "0.6392495", "0.6298212", "0.6218924", "0.61236787", "0.6049768", "0.59939253", "0.59713745", "0.59604406", "0.5912916", "0.5897225", "0.58829963", "0.5881868", "0.5876904", "0.586899", "0.5857157", "0.58435446", "0.58058375", "0.5790041", "0.57774...
0.0
-1
write your code here
public static void main(String[] args) { int [] A = {5,1,5,2,5,3,5,4}; HashSet<Integer> aa = new HashSet<>(); for (int i = 0; i <A.length ; i++) { if (aa.contains(A[i])) { System.out.println(A[i]); break; }else aa.add(A[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table student
int deleteByPrimaryKey(String studentId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}", "Student ...
[ "0.6846619", "0.667396", "0.6659281", "0.6643235", "0.65672743", "0.655134", "0.6525622", "0.6446765", "0.6441642", "0.6436953", "0.6408551", "0.6398778", "0.636464", "0.63535106", "0.6348836", "0.6324246", "0.63122916", "0.6256756", "0.6250504", "0.6236604", "0.61924213", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table student
int insert(StudentEntity record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}", "Student ...
[ "0.6846619", "0.667396", "0.6659281", "0.6643235", "0.65672743", "0.655134", "0.6525622", "0.6446765", "0.6441642", "0.6436953", "0.6408551", "0.6398778", "0.636464", "0.63535106", "0.6348836", "0.6324246", "0.63122916", "0.6256756", "0.6250504", "0.6236604", "0.61924213", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table student
int insertSelective(StudentEntity record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}", "Student ...
[ "0.6846619", "0.667396", "0.6659281", "0.6643235", "0.65672743", "0.655134", "0.6525622", "0.6446765", "0.6441642", "0.6436953", "0.6408551", "0.6398778", "0.636464", "0.63535106", "0.6348836", "0.6324246", "0.63122916", "0.6256756", "0.6250504", "0.6236604", "0.61924213", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table student
StudentEntity selectByPrimaryKey(String studentId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}", "Student ...
[ "0.68482924", "0.66748536", "0.6660703", "0.6568679", "0.65522546", "0.6526688", "0.64487123", "0.6442029", "0.64378613", "0.640918", "0.64003026", "0.6365248", "0.6353563", "0.6349074", "0.6324798", "0.63134515", "0.62572813", "0.6252572", "0.6237362", "0.61945933", "0.61641...
0.66433567
3
This method was generated by MyBatis Generator. This method corresponds to the database table student
int updateByPrimaryKeySelective(StudentEntity record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}", "Student ...
[ "0.6846619", "0.667396", "0.6659281", "0.6643235", "0.65672743", "0.655134", "0.6525622", "0.6446765", "0.6441642", "0.6436953", "0.6408551", "0.6398778", "0.636464", "0.63535106", "0.6348836", "0.6324246", "0.63122916", "0.6256756", "0.6250504", "0.6236604", "0.61924213", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table student
int updateByPrimaryKey(StudentEntity record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}", "Student ...
[ "0.6846619", "0.667396", "0.6659281", "0.6643235", "0.65672743", "0.655134", "0.6525622", "0.6446765", "0.6441642", "0.6436953", "0.6408551", "0.6398778", "0.636464", "0.63535106", "0.6348836", "0.6324246", "0.63122916", "0.6256756", "0.6250504", "0.6236604", "0.61924213", ...
0.0
-1
ensure we remove registered listener first before closing
public void close(){ this.mMovieCursor.unregisterContentObserver(mContentObserver); mContentObserver = null; this.mMovieCursor.close(); loadedMovies.clear(); loadedMovies = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cleanUp() { listener = null; }", "private void close() {\r\n closeListener.run();\r\n }", "private void cleanup() {\n\t\tif (myListener!=null)\n\t\t\t_prb.removeListener(myListener);\n\t}", "public void shutdown() {\n shutdown = true;\n //\n // Cancel our event list...
[ "0.7597592", "0.742679", "0.7156113", "0.6850634", "0.68338704", "0.68338704", "0.68271214", "0.6746269", "0.67273855", "0.6716424", "0.66978484", "0.66698885", "0.6658031", "0.6650224", "0.6628255", "0.660082", "0.65984774", "0.6582496", "0.65645546", "0.65140694", "0.648648...
0.0
-1
Creates new form ViewEntry
public ViewEntry() { initComponents(); pnlRates.add(new ViewRateSchedule()); pnlRates.validate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);", "@RequestMapping(value = \"/createentry\", method = RequestMethod.GET)\n\tpublic String navigateCreateEntry(Model model){\n\t\tmodel.addAttribute(\"entry\", new Entry());\t\n\t\treturn \"entry/createEntry\";\n\t}", "public void onClick(View v...
[ "0.64134467", "0.63760495", "0.61429524", "0.6132442", "0.6075351", "0.5999366", "0.5925292", "0.5910132", "0.5879446", "0.5857012", "0.5826599", "0.58116585", "0.57903135", "0.5734818", "0.56965697", "0.5693239", "0.56878465", "0.5685138", "0.56712186", "0.56553763", "0.5638...
0.6101081
4
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() { btnGetTicket = new javax.swing.JButton(); btnOpenGate = new javax.swing.JButton(); btnCancel = new javax.swing.JButton(); pnlRates = new javax.swing.JPanel(); btnEnterGarage = new javax.swing.JButton(); btnGetTicket.setText("Get Entry Ticket"); btnGetTicket.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnGetTicketActionPerformed(evt); } }); btnOpenGate.setText("Open Gate"); btnOpenGate.setEnabled(false); btnOpenGate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnOpenGateActionPerformed(evt); } }); btnCancel.setText("Cancel"); btnCancel.setEnabled(false); btnCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCancelActionPerformed(evt); } }); pnlRates.setLayout(new java.awt.GridLayout(1, 0)); btnEnterGarage.setText("Enter Garage"); btnEnterGarage.setEnabled(false); btnEnterGarage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEnterGarageActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(43, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnGetTicket, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnOpenGate, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnEnterGarage, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(38, 38, 38) .addComponent(pnlRates, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(pnlRates, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(btnGetTicket) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnOpenGate) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnEnterGarage) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnCancel))) .addContainerGap()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.694635...
0.0
-1
An effect that causes a change in the control flow of the method. Examples are if or for loops.
public interface IBranchFunctionDef { /** * Verifies that the branch function is valid * @return If the usage of the branch function is valid */ boolean verify(@Nullable IBranchFunctionDef parent, ISkriptFunctionDef function, ICodeDef codeDef); /** * Gets the variables of the def * @return Def's variables */ List<IVariableDef> getVariables(); /** * Sets up the variables of the def * @param factory Variable factory */ void setupVariables(IVariableFactory factory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void effect() {\n }", "private void courseEffects() {\n\t\t\n\t}", "@Override\n public void effect() {\n\n }", "@Override\n\tpublic int effect() {\n\t\treturn 0 ;\n\t}", "public int logic3()\r\n\t{\r\n\t\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public void exec...
[ "0.65651274", "0.5982496", "0.5973679", "0.59303355", "0.5928593", "0.5861858", "0.5850642", "0.58162826", "0.5789341", "0.57823646", "0.56453013", "0.55831134", "0.551279", "0.55095553", "0.5507321", "0.54928625", "0.544033", "0.5421758", "0.5411846", "0.5397866", "0.539298"...
0.0
-1
Verifies that the branch function is valid
boolean verify(@Nullable IBranchFunctionDef parent, ISkriptFunctionDef function, ICodeDef codeDef);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isBranchTaken();", "boolean checkVerification();", "void checkValid();", "public void verifyBusinessRules(Coin Coin) throws Exception {\n\t}", "private static void _VerifyAllowedFunction(short function, short state){\r\n\t\tswitch (function){\r\n\t\t\tcase FUNC_blockCard: {\r\n\t\t\t\tif (state == ...
[ "0.70271343", "0.6508005", "0.64637786", "0.6211294", "0.61893034", "0.6125854", "0.5986505", "0.59729743", "0.59694505", "0.59694505", "0.59694505", "0.59596145", "0.5915466", "0.5915466", "0.5915466", "0.5915466", "0.5915466", "0.5911535", "0.5858919", "0.58388096", "0.5800...
0.70989674
0
Gets the variables of the def
List<IVariableDef> getVariables();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> getVariables();", "@Override\n\tpublic Set<Variable> getDefVariables() {\n\t\tSet<Variable> used = new HashSet<Variable>();\n\t\treturn used;\n\t}", "String getVariableDefinition();", "@Override\n public List<String> getVariables() {\n return super.getVariables();\n }"...
[ "0.7189992", "0.7098173", "0.69988346", "0.69619954", "0.6787666", "0.6718184", "0.6611415", "0.65880203", "0.65832067", "0.65805566", "0.65637445", "0.6519397", "0.6504307", "0.64920014", "0.6467851", "0.6415459", "0.6411162", "0.6409466", "0.64009196", "0.63983965", "0.6368...
0.74625075
0
Sets up the variables of the def
void setupVariables(IVariableFactory factory);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initVars() {}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "protected void setupPar...
[ "0.7601528", "0.74024796", "0.72107875", "0.6695143", "0.65252614", "0.6523724", "0.6501492", "0.6476506", "0.6447959", "0.6430436", "0.6392226", "0.6350725", "0.6339317", "0.629882", "0.62680566", "0.62439996", "0.6223906", "0.6200494", "0.61866856", "0.61860764", "0.6182262...
0.64025
10
alle Spielfeldbelegungen sind ausgeglichen
@Test public void equally() throws IOException { Board field = new Board("P----C" + "------" + "------" + "------" + "------" + "P----C"); assertEquals(0, field.evaluate(true)); assertEquals(0, field.evaluate(false)); Board field2 = new Board("------" + "-P--C-" + "------" + "------" + "-P--C-" + "------"); assertEquals(0, field2.evaluate(true)); assertEquals(0, field2.evaluate(false)); Board field3 = new Board("C----P" + "-P--C-" + "------" + "------" + "-P--C-" + "P----C"); assertEquals(0, field3.evaluate(true)); assertEquals(0, field3.evaluate(false)); Board field4 = new Board("CC--PP" + "------" + "------" + "------" + "------" + "------"); // nicht blockiert, daher selbe Bewertung fuer beide Strategien assertEquals(0, field4.evaluate(false)); assertEquals(0, field4.evaluate(true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielfeld();", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName i...
[ "0.71218073", "0.6631115", "0.65812826", "0.64358586", "0.63495505", "0.63217974", "0.6311024", "0.62865615", "0.6268399", "0.6260399", "0.6241332", "0.62163347", "0.6207064", "0.6155174", "0.61239433", "0.6089678", "0.60613644", "0.6049381", "0.6048815", "0.60418946", "0.603...
0.0
-1
Vorteil fuer Spieler in Zeile 0 und 2
@Test public void computerOffensive() throws IOException { Board field = new Board("CP----" + "-P--C-" + "-P----" + "-C----" + "-P--C-" + "------"); assertTrue(field.evaluate(false) < 0); // Vorteil fuer Spieler in Spalte 1 Board field2 = new Board("CP----" + "-PC-C-" + "-P--P-" + "------" + "-PC-C-" + "------"); assertTrue(field2.evaluate(false) < 0); // Vorteil Computer in Zeile 0, 2 // Vorteil Spieler in Zeile 2 Board field3 = new Board("PC----" + "-PC-C-" + "-P--P-" + "-C----" + "-P--C-" + "------"); assertTrue(field3.evaluate(false) > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public double berechneVolumen() {\n\t\treturn laenge * breite * hoehe;\n\t}", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\...
[ "0.56345606", "0.5575931", "0.5566772", "0.55557644", "0.55165136", "0.55110085", "0.55048007", "0.54199386", "0.5395538", "0.5381806", "0.53736585", "0.53101844", "0.5305847", "0.52795464", "0.5273277", "0.5269913", "0.5264817", "0.5261262", "0.52265686", "0.5224643", "0.521...
0.0
-1
Spieler kann 5 vertikale erreichen, sehr hohe Bewertung
@Test public void verticalAdvantage() throws IOException { Board field0 = new Board("------" + "-C--P-" + "----P-" + "----P-" + "-C--P-" + "----C-"); assertTrue(field0.evaluate(false) < -50); assertTrue(field0.evaluate(true) < -50); // Gewinnreihe fuer Spieler wird blockiert // hohe Bewertung fuer Blockierung bei defensiver Strategie Board field2 = new Board("----C-" + "-C--P-" + "----P-" + "----P-" + "-C--P-" + "----C-"); assertTrue(field2.evaluate(false) > -10); assertTrue(field2.evaluate(false) < 10); assertTrue(field2.evaluate(true) > 20); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m3205a(View view, int i, int i2, int i3, int i4, int i5) {\n int i6 = i5 & 7;\n int i7 = i5 & 112;\n if (i6 == 5) {\n i3 -= i;\n } else if (i6 == 1) {\n i3 -= i / 2;\n }\n if (i7 == 80) {\n i4 -= i2;\n } else if (i7 == 1...
[ "0.59952676", "0.59760696", "0.5850827", "0.5795049", "0.57803625", "0.57803625", "0.57755643", "0.57685554", "0.573745", "0.5709588", "0.5703141", "0.5670772", "0.56592834", "0.5649973", "0.56317526", "0.5605044", "0.5555962", "0.5546251", "0.5534286", "0.5534262", "0.553152...
0.0
-1
Felder enthalten 2 Spielsteine die nicht blockiert werden
@Test public void defensiveStrategy_notBlocked() throws IOException { Board f0 = new Board("------" + "-C----" + "------" + "------" + "P-P---" + "------"); // nicht blockiert, daher selbe Bewertung fuer beide Strategien assertEquals(f0.evaluate(true), f0.evaluate(false)); assertTrue(f0.evaluate(false) < 0); // ausgeglichene Vorteile beider Spieler Board f1 = new Board("C--P-P" + "-C----" + "------" + "------" + "------" + "------"); assertEquals(f1.evaluate(false), f1.evaluate(true)); assertEquals(0, f1.evaluate(false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean block() {\n return false;\n }", "@Override\n public void endBlock() {\n }", "@Override\n\t\tpublic void onBlock(User arg0, User arg1) {\n\t\t\t\n\t\t}", "private synchronized void loadSecondaryBlock(boolean next) {\n int step = (next) ? 1 : -2;\n ...
[ "0.6425107", "0.6129394", "0.60474557", "0.5983596", "0.5976003", "0.59047866", "0.5894273", "0.5871679", "0.5854567", "0.58539194", "0.5807687", "0.5793489", "0.5785629", "0.57602555", "0.5731958", "0.5719597", "0.57035476", "0.56627434", "0.56622285", "0.56271064", "0.56230...
0.0
-1
Computerstein blockiert 2 Spielersteine. Defensive Strategie erhaelt zusaetzliche Punkte blockiert horizontal mittig
@Test public void defensiveStrategy_blocked() throws IOException { Board f0 = new Board("------" + "-C----" + "------" + "------" + "PCP---" + "------"); assertTrue(f0.evaluate(true) > 10); // blockiert links Board f1 = new Board("C--CPP" + "------" + "------" + "------" + "------" + "------"); assertTrue(f1.evaluate(true) > 10); // blockiert vertikal Board f2 = new Board("C----P" + "-----C" + "-----P" + "------" + "------" + "------"); assertTrue(f2.evaluate(true) > 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), ...
[ "0.7063266", "0.65757567", "0.65291995", "0.63484854", "0.6267792", "0.6166394", "0.6089539", "0.6086169", "0.60637236", "0.60432523", "0.602106", "0.5997692", "0.5953082", "0.59525573", "0.59283197", "0.5910408", "0.588462", "0.58836675", "0.5880797", "0.5879604", "0.5866303...
0.0
-1
Toggle the visibility of the book filter ComboBox
public void toggleBookComboBoxes() { bookFilter.setVisible(!bookFilter.isVisible()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleCharacterComboBoxes() {\n characterFilter.setVisible(!characterFilter.isVisible());\n }", "public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}", "private void actionShowF...
[ "0.70631564", "0.65606457", "0.6448709", "0.6286323", "0.6095406", "0.6070855", "0.6052806", "0.6009775", "0.59897876", "0.5972687", "0.58978784", "0.5875458", "0.58699626", "0.5859855", "0.5856141", "0.5816228", "0.58149195", "0.5810635", "0.5790291", "0.5774635", "0.5773052...
0.8698819
0
Toggle the visibility of the character filter ComboBox
public void toggleCharacterComboBoxes() { characterFilter.setVisible(!characterFilter.isVisible()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleBookComboBoxes() {\n bookFilter.setVisible(!bookFilter.isVisible());\n }", "public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}", "private void actionShowFilters() {\n ...
[ "0.69911623", "0.6299275", "0.61278707", "0.6009233", "0.5934171", "0.5834041", "0.5812634", "0.5747541", "0.57324576", "0.56776226", "0.5636882", "0.56275254", "0.5621919", "0.56202", "0.561819", "0.5569137", "0.5567431", "0.55412066", "0.5529194", "0.55142087", "0.5509512",...
0.867922
0
Toggles all the ComboBoxes
public void toggleComboBoxes() { this.toggleBookComboBoxes(); this.toggleCharacterComboBoxes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleBookComboBoxes() {\n bookFilter.setVisible(!bookFilter.isVisible());\n }", "public void toggleCharacterComboBoxes() {\n characterFilter.setVisible(!characterFilter.isVisible());\n }", "public void ClickToggleAll( ) {\n\t\t\tCHACKBOX_FIELD_LOCATOR.click();\n\t\t\t\n\t\t}", ...
[ "0.7030019", "0.6832463", "0.6415633", "0.63204825", "0.6208623", "0.6094308", "0.6027072", "0.5988927", "0.59338224", "0.58731276", "0.5852481", "0.58438426", "0.58299035", "0.58287114", "0.5759253", "0.5739", "0.57208365", "0.5699463", "0.5697734", "0.5681219", "0.563238", ...
0.85090154
0
Call the relevant search method based on whether the selected filter is for books or for characters
public void search() { String q = this.query.getText(); String cat = this.category.getValue(); if(cat.equals("Book")) { searchBook(q); } else { searchCharacter(q); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String searchByFilter() {\n if (selectedFilter.size() != 0) {\n for (Genre filterOption : selectedFilter) {\n searchTerm = searchResultTerm;\n searchBook();\n\n System.out.println(\"CURRENT NUMBER OF BOOKS: \" + books.size());\n\n ...
[ "0.7084923", "0.65828824", "0.6547411", "0.6409511", "0.6389838", "0.6351831", "0.6349972", "0.6329711", "0.6327319", "0.62601054", "0.62520176", "0.6238328", "0.62054175", "0.6195384", "0.61628574", "0.61576486", "0.61576486", "0.6129763", "0.6122615", "0.6107595", "0.610244...
0.7423736
0
Search for books in the library.
private void searchBook(String query) { String filter = this.bookFilter.getValue(); String sort = this.sort.getValue(); // Get the user defined comparator Comparator<Book> c = getBookComparator(filter, sort); // Create a book used for comparison Book book = createBookForQuery(filter, query); // Find all matches GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c); // Cast results to an array Book[] bookResults = bookResultsToArray(results, c); // Load the results in a new scene this.loadBookResultsView(bookResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String advancedSearchBooks() {\r\n List<Books> books = new ArrayList<Books>();\r\n keywords = keywords.trim();\r\n \r\n switch (searchBy) {\r\n case \"all\":\r\n return searchBooks();\r\n case \"title\":\r\n books = findBooksByT...
[ "0.7507324", "0.7468649", "0.7460989", "0.7157946", "0.7040013", "0.6999006", "0.6978607", "0.69436306", "0.68705463", "0.6867494", "0.6866332", "0.6803694", "0.67744386", "0.67651033", "0.6692865", "0.6668389", "0.6610903", "0.6573644", "0.6566347", "0.6551438", "0.6537893",...
0.7281314
3
Search for characters in the library.
private void searchCharacter(String query) { String filter = this.characterFilter.getValue(); String sort = this.sort.getValue(); // Get the user defined comparator Comparator<Character> c = getCharacterComparator(filter, sort); // Create a character used for comparison Character character = createCharacterForQuery(filter, query); // Find all matches GenericList<Character> results = DashboardController.library.getCharacterTable().findAll(character, c); // Cast results to an array Character[] characterResults = characterResultsToArray(results, c); // Load the results in a new scene this.loadCharacterResultsView(characterResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public search()\n\t { b = new char[INC];\n\t i = 0;\n\t i_end = 0;\n\t }", "private void searchCode() {\n }", "int search(ICard toFind);", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>(...
[ "0.61830556", "0.5971373", "0.59394133", "0.592535", "0.57896763", "0.57712805", "0.5735827", "0.5713889", "0.5713889", "0.5640731", "0.563661", "0.5544584", "0.54890907", "0.5466173", "0.5458051", "0.543672", "0.5382942", "0.5362945", "0.5358207", "0.5322218", "0.5321387", ...
0.5646419
9
Load the book results view and pass in the array of results
private void loadBookResultsView(Book[] results) { try { DashboardController.dbc.bookResults(results); } catch(IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadCharacterResultsView(Character[] results) {\n try {\n DashboardController.dbc.characterResults(results);\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "void loadResults(ArrayList<Comic> results, int totalItems);", "private void loadRe...
[ "0.6646165", "0.6251011", "0.61544424", "0.6080233", "0.6024435", "0.5952454", "0.5939651", "0.58147526", "0.57783467", "0.577821", "0.5748296", "0.56746405", "0.5655933", "0.55686283", "0.5556611", "0.5515921", "0.5512885", "0.5512048", "0.55067873", "0.550309", "0.54910797"...
0.8674307
0
Load the book results view and pass in the array of results
private void loadCharacterResultsView(Character[] results) { try { DashboardController.dbc.characterResults(results); } catch(IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadBookResultsView(Book[] results) {\n try {\n DashboardController.dbc.bookResults(results);\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "void loadResults(ArrayList<Comic> results, int totalItems);", "private void loadResult() {\n ...
[ "0.8674307", "0.6251011", "0.61544424", "0.6080233", "0.6024435", "0.5952454", "0.5939651", "0.58147526", "0.57783467", "0.577821", "0.5748296", "0.56746405", "0.5655933", "0.55686283", "0.5556611", "0.5515921", "0.5512885", "0.5512048", "0.55067873", "0.550309", "0.54910797"...
0.6646165
1
Create a book based on the filter and sort parameters chosen. This book object will not be added to the library, merely used for comparison purposes.
private Book createBookForQuery(String filter, String query) { switch(filter) { case "Title": return new Book( null, query, null, 0, null, 0, null); case "Author": return new Book(query, null, null, 0, null, 0, null); case "Publisher": return new Book(null, null, query, 0, null, 0, null); case "Year": return new Book(null, null, null, Integer.parseInt(query), null, 0, null); case "Genre": return new Book(null, null, null, 0, query, 0, null); case "Pages": return new Book(null, null, null, 0, null, Integer.parseInt(query), null); default: return new Book(null, query, null, 0, null, 0, null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Book createBook();", "void create(Book book);", "private Book createBook() {\n Book book = null;\n\n try {\n\n //determine if fiction or non-fiction\n if (radFiction.isSelected()) {\n //fiction book\n book = new Fiction(Integer.parseInt(tfBookID...
[ "0.65848297", "0.6440952", "0.6437226", "0.6230862", "0.6046226", "0.60268086", "0.5985002", "0.5978895", "0.589927", "0.588453", "0.5829655", "0.57748306", "0.57355326", "0.5681672", "0.56477374", "0.5633993", "0.56269157", "0.5622095", "0.5609664", "0.5606584", "0.5566372",...
0.76458585
0
Create a character based on the filter and sort parameters chosen. This character object will not be added to the library, merely used for comparison purposes.
private Character createCharacterForQuery(String filter, String query) { switch(filter) { case "Name": return new Character(query, 'n', 0, null, null); case "Gender": return new Character(null, query.charAt(0), 0, null, null); case "Age": return new Character(null, 'n', Integer.parseInt(query), null, null); case "Creator": return new Character(null, 'n', 0, null, query); default: return new Character(query, 'n', 0, null, null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Comparator<Character> getCharacterComparator(String type, String sort) {\n String term = type + \" \" + sort;\n return DashboardController.getCharacterComparator(term);\n }", "@Override\r\n\tpublic Character createCharacter(CharacterStateSet characterStateSet) {\r\n\t\tCharacterImpl char...
[ "0.5861166", "0.57703596", "0.57258505", "0.57022434", "0.5630512", "0.55895114", "0.55217767", "0.5469379", "0.5449655", "0.5449655", "0.5449655", "0.5431158", "0.5382204", "0.5331937", "0.53237367", "0.53116035", "0.52843344", "0.5262146", "0.5243112", "0.5224436", "0.52122...
0.69082505
0
Convert the search results from a LinkList to an array.
private Book[] bookResultsToArray(GenericList<Book> results, Comparator<Book> c) { Book[] resultArray = new Book[results.size()]; int i = 0; for(Book bookResult : results) { resultArray[i] = bookResult; i++; } MergeSort.sort(resultArray, c); return resultArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }", "@SuppressWarnings(\"unchecked\")\n publi...
[ "0.60544807", "0.59211564", "0.5849331", "0.57775694", "0.5736166", "0.5629172", "0.555584", "0.552468", "0.5511856", "0.5434878", "0.54336894", "0.5432959", "0.54170305", "0.53999484", "0.5398112", "0.5353147", "0.53426754", "0.5315368", "0.52921224", "0.5257401", "0.5253745...
0.5991319
1
Convert the search results from a LinkList to an array.
private Character[] characterResultsToArray(GenericList<Character> results, Comparator<Character> c) { Character[] resultArray = new Character[results.size()]; int i = 0; for(Character characterResult : results) { resultArray[i] = characterResult; i++; } MergeSort.sort(resultArray, c); return resultArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }", "private Book[] bookResultsToArray(GenericL...
[ "0.60544807", "0.5991319", "0.59211564", "0.5849331", "0.57775694", "0.5736166", "0.5629172", "0.555584", "0.552468", "0.5511856", "0.5434878", "0.54336894", "0.5432959", "0.54170305", "0.53999484", "0.5398112", "0.5353147", "0.53426754", "0.5315368", "0.5257401", "0.5253745"...
0.52921224
19
Go back to the home scene
public void goBack() throws IOException { DashboardController.dbc.loadHomeScene(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "@FXML\r\n\t\tpublic void back(ActionEvent event) {\r\n\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t}", "public void back() {\n Views.goBack();\n }", "private void backToMenu() {\n game.setScree...
[ "0.8226858", "0.812101", "0.8089654", "0.79502475", "0.7892907", "0.7747578", "0.77155006", "0.7684218", "0.7658398", "0.7638553", "0.7603878", "0.7572905", "0.7572905", "0.7432523", "0.74260825", "0.7390854", "0.73639977", "0.7350217", "0.73419094", "0.73253065", "0.73207366...
0.8385241
0
Get the custom comparator based on the options selected in the GUI
public Comparator<Book> getBookComparator(String type, String sort) { String term = type + " " + sort; return DashboardController.getBookComparator(term); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Comparator getNameComparator()\n {\n if(nameComparator == null)\n {\n nameComparator = new SMComponentNameComparator();\n }\n\n return nameComparator;\n }", "public Comparator<Integer> comparator() {\n return new Comparator<Integer>() {\n @...
[ "0.57550263", "0.5734556", "0.5687747", "0.56401956", "0.5558633", "0.5544929", "0.5544929", "0.5536594", "0.5504267", "0.54842705", "0.5458318", "0.54220676", "0.5399959", "0.539501", "0.5390637", "0.5371794", "0.5368819", "0.5340449", "0.53261894", "0.53236634", "0.5312753"...
0.0
-1
Get the custom comparator based on the options selected in the GUI
private Comparator<Character> getCharacterComparator(String type, String sort) { String term = type + " " + sort; return DashboardController.getCharacterComparator(term); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Comparator getNameComparator()\n {\n if(nameComparator == null)\n {\n nameComparator = new SMComponentNameComparator();\n }\n\n return nameComparator;\n }", "public Comparator<Integer> comparator() {\n return new Comparator<Integer>() {\n @...
[ "0.5755355", "0.57336825", "0.56870633", "0.5639804", "0.55576664", "0.55440736", "0.55440736", "0.5534786", "0.5502685", "0.54836625", "0.545614", "0.542133", "0.5399066", "0.5392439", "0.53896564", "0.5372688", "0.5370043", "0.5341257", "0.5327983", "0.53226817", "0.5311664...
0.0
-1
================================================== All Right Reserved Date:2019/08/06 Author:Sire Description: ==================================================
public interface IAlgorithm { void go(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n ...
[ "0.6095672", "0.60940623", "0.60745054", "0.60745054", "0.60745054", "0.60745054", "0.60745054", "0.60745054", "0.60745054", "0.60058683", "0.59970146", "0.5985917", "0.5972846", "0.58889693", "0.58320564", "0.58063895", "0.579159", "0.5721819", "0.5717117", "0.5713899", "0.5...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static ReinfStatusControle createEntity(EntityManager em) { ReinfStatusControle reinfStatusControle = new ReinfStatusControle() .codStatus(DEFAULT_COD_STATUS) .descr(DEFAULT_DESCR); return reinfStatusControle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Te...
[ "0.7722704", "0.75043625", "0.7488018", "0.73615193", "0.7313557", "0.71551895", "0.71551895", "0.715222", "0.71504104", "0.7077861", "0.7015717", "0.68047553", "0.6752499", "0.6740017", "0.6740017", "0.671227", "0.6681439", "0.6665812", "0.6641303", "0.6624968", "0.6624293",...
0.0
-1
Remove the element at the specific index
private T remove(int idx) { if (head == null) { throw new IllegalArgumentException("The list is empty"); } if (idx < 0 || idx > size - 1) { throw new IndexOutOfBoundsException(); } // now the idx is valid // if we only have one element if (head.prev == null) { T ret = (T) head.val; head = null; tail = null; size = 0; return ret; } // we have more than one element int k = idx; ListNode curr = tail; while (k-- > 0) { curr = curr.next; } T ret = (T) curr.val; // now we need to remove this curr // curr is tail if (curr.prev == null) { tail = curr.next; tail.prev = null; } // curr is head else if (curr.next == null) { head = curr.prev; head.next = null; } // curr is in the middle else { curr.prev.next = curr.next; curr.next.prev = curr.prev; } curr.prev = null; curr.next = null; size--; return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(int index);", "public void removeElementAt(int index);", "void remove( int index );", "public Type remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "public E remove(int index);", "public void remove...
[ "0.86678576", "0.8631051", "0.8500615", "0.84788024", "0.84665596", "0.84665596", "0.84665596", "0.84665596", "0.8400389", "0.83708596", "0.83613443", "0.824687", "0.824687", "0.8227054", "0.8144981", "0.8143023", "0.8108057", "0.8086409", "0.80432713", "0.8041194", "0.799313...
0.0
-1
TouchX=(int) event.getX(); TouchY=(int) event.getY();
@Override public boolean onTouchEvent(MotionEvent event) { LogUtil.d(TAG,"onTouchEvent()"); int MAX_TOUCHPOINTS=3; int pointerCount = event.getPointerCount(); if (pointerCount>MAX_TOUCHPOINTS){ pointerCount = MAX_TOUCHPOINTS; } //判断触摸事件是单触摸还是多触摸, int touchType = event.getActionMasked(); switch (touchType){ //第一个按下 case MotionEvent.ACTION_DOWN: ; break; //非第一个按下 case MotionEvent.ACTION_POINTER_DOWN: for(int i=0;i<pointerCount;i++){ int j=event.getPointerId(i); int x1=(int) event.getX(j); int y1= (int) event.getY(j); } ; break; } if(event.getAction()==MotionEvent.ACTION_UP){ rocker.reset(); }else{ TouchX=(int) event.getX(); TouchY=(int) event.getY(); if (event.getAction()==MotionEvent.ACTION_DOWN){ rocker.begin(TouchX,TouchY); }else if (event.getAction()==MotionEvent.ACTION_MOVE){ rocker.update(TouchX,TouchY); } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void touchEvent(MotionEvent event);", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tswitch (event.getAction()) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\tcx = event.getX();\n\t\t\tcy = event.getY();\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t...
[ "0.7641222", "0.7310772", "0.70206034", "0.70206034", "0.70206034", "0.69119936", "0.6904525", "0.68947095", "0.68932045", "0.6845485", "0.6822781", "0.68046045", "0.68046045", "0.6791563", "0.6786056", "0.67007023", "0.66891104", "0.66747373", "0.662803", "0.6594189", "0.657...
0.65119004
22
ArangoDB host. If host and port are default, this field is Optional.
public void setHost(String host) { this.host = host; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatabaseConfig setHost(String host) {\n this.host = host;\n return this;\n }", "public void setHost(String host);", "public String getHost() { return host; }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String ge...
[ "0.6872575", "0.68383557", "0.67576706", "0.6742382", "0.6742382", "0.67305326", "0.67305326", "0.6717981", "0.669144", "0.669144", "0.669144", "0.669144", "0.669144", "0.669144", "0.6677783", "0.6650896", "0.66502225", "0.66502225", "0.66272986", "0.65700877", "0.65694195", ...
0.66685706
19
ArangoDB exposed port. If host and port are default, this field is Optional.
public void setPort(int port) { this.port = port; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default Object port() {\n return metadata().get(\"server-port\");\n }", "default int getPort() {\n return getServer().getPort();\n }", "Builder setPort(String port);", "public int getPort() { return port; }", "default int getPort()\n {\n return getInt(\"port\", 80);\n }",...
[ "0.7096015", "0.6574009", "0.653823", "0.6532558", "0.6508642", "0.645393", "0.6437173", "0.6430485", "0.6428689", "0.6399539", "0.6399539", "0.6399539", "0.6399539", "0.6399539", "0.63679534", "0.63679534", "0.63679534", "0.63679534", "0.63553995", "0.6342217", "0.63367003",...
0.0
-1
ArangoDB user. If user and password are default, this field is Optional.
public void setUser(String user) { this.user = user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Optional<String> user();", "public Optional<AuthLoginUserpass> authLoginUserpass() {\n return Codegen.objectProp(\"authLoginUserpass\", AuthLoginUserpass.class).config(config).get();\n }", "@Nonnull\n public abstract Optional<String> getUserName();", "public User getUser(String userName, String ...
[ "0.680292", "0.64890873", "0.6199702", "0.61741596", "0.61150956", "0.59790266", "0.59398025", "0.5896866", "0.58865285", "0.5871125", "0.5867468", "0.58439994", "0.5843098", "0.5813041", "0.5776814", "0.574983", "0.5739008", "0.57202417", "0.5703493", "0.57027626", "0.570052...
0.0
-1
ArangoDB password. If user and password are default, this field is Optional.
public void setPassword(String password) { this.password = password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"Returns the user password. <p> Passwords are not returned when querying user information, so this property will always be empty when reading information from a server.\")\n\n\n public String getPassword() {\n return password;\n }", "public Optional<AuthLoginUserpass> authLoginUse...
[ "0.7323481", "0.7312363", "0.71441174", "0.7114826", "0.7103605", "0.7103605", "0.7103605", "0.7103605", "0.7103605", "0.7103605", "0.7103605", "0.70434755", "0.70430726", "0.70203674", "0.70118004", "0.70038515", "0.70038515", "0.7003699", "0.69838935", "0.6954375", "0.69414...
0.0
-1
Collection name, when using ArangoDb as a Document Database. Set the documentCollection name when using the CRUD operation on the document database collections (SAVE_DOCUMENT , FIND_DOCUMENT_BY_KEY, UPDATE_DOCUMENT, DELETE_DOCUMENT).
public void setDocumentCollection(String documentCollection) { this.documentCollection = documentCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCollectionName(String collectionName);", "void addCollectionName(Object newCollectionName);", "public String getCollectionName() {\n return collectionName;\n }", "@Override\n\tpublic void setCollectionName(java.lang.String collectionName) {\n\t\t_dictData.setCollectionName(collection...
[ "0.79977995", "0.7402989", "0.73001426", "0.7026394", "0.6868489", "0.681541", "0.656545", "0.6393396", "0.63319516", "0.622815", "0.6208176", "0.6110529", "0.60209304", "0.5995717", "0.5990385", "0.5918025", "0.59069175", "0.57985264", "0.5784347", "0.5766036", "0.5765851", ...
0.7883033
1
Operations to perform on ArangoDb. For the operation AQL_QUERY, no need to specify a collection or graph.
public void setOperation(ArangoDbOperation operation) { this.operation = operation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Query query();", "Query queryOn(Connection connection);", "public void Query() {\n }", "public interface IDBQuery {\n String query();\n}", "public List<IEntity> query(IQuery query) throws SQLException;", "public interface Query {\n\n\t/**\n\t * @return ID of the given query\n\t */\n\tint queryID();...
[ "0.72635657", "0.6696746", "0.63632005", "0.61517686", "0.60534775", "0.6024747", "0.59913856", "0.59132314", "0.58488053", "0.58398134", "0.580533", "0.5796404", "0.57859236", "0.57595044", "0.5717077", "0.57146657", "0.5710789", "0.56519747", "0.56456876", "0.56350386", "0....
0.0
-1
Graph name, when using ArangoDb as a Graph Database. Combine this attribute with one of the two attributes vertexCollection and edgeCollection.
public void setGraph(String graph) { this.graph = graph; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getGraphName() {\r\n\t\treturn graphName;\r\n\t}", "public void setGraphName(String name) {\n this.graphname = name;\n }", "public java.lang.String getGraphName() {\n java.lang.Object ref = graphName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n }...
[ "0.6960004", "0.6872439", "0.65983427", "0.65575963", "0.65459853", "0.6533561", "0.6434407", "0.640343", "0.61450493", "0.60814625", "0.6065173", "0.59984493", "0.59874517", "0.5972048", "0.5909699", "0.58822924", "0.58710694", "0.57695985", "0.5737811", "0.5727842", "0.5723...
0.55104613
28
Collection name of vertices, when using ArangoDb as a Graph Database. Set the vertexCollection name to perform CRUD operation on vertices using these operations : SAVE_EDGE, FIND_EDGE_BY_KEY, UPDATE_EDGE, DELETE_EDGE. The graph attribute is mandatory.
public void setVertexCollection(String vertexCollection) { this.vertexCollection = vertexCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArangoDBVertex(ArangoDBGraph graph, String collection) {\n\t\tthis(null, collection, graph);\n\t}", "public String getVertexName()\n\t{\n\t\treturn vertexName ;\n\t}", "public void setEdgeCollection(String edgeCollection) {\n this.edgeCollection = edgeCollection;\n }", "public void setCollec...
[ "0.6722427", "0.65761673", "0.65164924", "0.65135664", "0.6505551", "0.5997319", "0.58637255", "0.5827505", "0.57725257", "0.5731219", "0.5720345", "0.56604517", "0.5654145", "0.5653783", "0.56085974", "0.5536752", "0.5488827", "0.5479873", "0.5475647", "0.54129386", "0.53861...
0.7978436
0
Collection name of vertices, when using ArangoDb as a Graph Database. Set the edgeCollection name to perform CRUD operation on edges using these operations : SAVE_VERTEX, FIND_VERTEX_BY_KEY, UPDATE_VERTEX, DELETE_VERTEX. The graph attribute is mandatory.
public void setEdgeCollection(String edgeCollection) { this.edgeCollection = edgeCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVertexCollection(String vertexCollection) {\n this.vertexCollection = vertexCollection;\n }", "public ArangoDBVertex(ArangoDBGraph graph, String collection) {\n\t\tthis(null, collection, graph);\n\t}", "public void setCollectionName(String collectionName);", "public String getVertexN...
[ "0.7691941", "0.6544376", "0.64779645", "0.63881236", "0.6289408", "0.6024897", "0.5864184", "0.56793934", "0.5666525", "0.5627642", "0.5614587", "0.55207855", "0.5501071", "0.5499984", "0.5477163", "0.5475086", "0.5460393", "0.542354", "0.536884", "0.53655434", "0.5328928", ...
0.71196675
1
Get the list of rectangles from the second RDD input.
public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception { List<Rectangle> firstInputCollection = firstInput.value(); ArrayList<Integer> secondInputIds = new ArrayList<Integer>(); // Iterate the second input and check for the second set // of rectangle id’s // that hold the rectangle from first set obtained from // the mapped RDD for (Rectangle firstRects : firstInputCollection) { if (rectangle.isRectangleinsideQueryWindow(firstRects)) { secondInputIds.add(firstRects.getRectangleId()); } } // Create a new tuple of the mapped values and return // back the mapped // transformation. Tuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle .getRectangleId(), secondInputIds); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Pair<Rectangle, Rectangle> getRectangles();", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Point> firstInputCollection = firstInput.getValue();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second inp...
[ "0.6875965", "0.64977616", "0.6119617", "0.60262483", "0.60080063", "0.5978688", "0.5886191", "0.5794341", "0.5703578", "0.56618994", "0.56525797", "0.5640751", "0.56389904", "0.55607814", "0.552457", "0.55051017", "0.54960096", "0.54750764", "0.546643", "0.5349733", "0.53441...
0.65614516
1
Get the list of rectangles from the second RDD input.
public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception { List<Point> firstInputCollection = firstInput.getValue(); ArrayList<Integer> secondInputIds = new ArrayList<Integer>(); // Iterate the second input and check for the second set // of rectangle id’s // that hold the rectangle from first set obtained from // the mapped RDD for (Point point : firstInputCollection) { if (point.isPointinsideQueryWindow(rectangle)) { secondInputIds.add(point.getPointID()); } } // Create a new tuple of the mapped values and return // back the mapped // transformation. Tuple2<Integer, ArrayList<Integer>> resultList = new Tuple2<Integer, ArrayList<Integer>>(rectangle .getRectangleId(), secondInputIds); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Pair<Rectangle, Rectangle> getRectangles();", "public Tuple2<Integer, ArrayList<Integer>> call(Rectangle rectangle) throws Exception {\n\t\t\t\t\tList<Rectangle> firstInputCollection = firstInput.value();\n\t\t\t\t\tArrayList<Integer> secondInputIds = new ArrayList<Integer>();\n\t\t\t\t\t// Iterate the second in...
[ "0.6874502", "0.656296", "0.61177635", "0.6024949", "0.6005587", "0.59764415", "0.5885748", "0.57927483", "0.57015795", "0.565999", "0.565082", "0.56407624", "0.56381714", "0.5562117", "0.5522451", "0.5503903", "0.54945195", "0.5472336", "0.5464752", "0.5347521", "0.534489", ...
0.6499244
2
Read the file in an array of string object indicating each point.
public Rectangle call(String inputString) { String[] points = inputString.split(","); // Initialize the leftmost x and y coordinate Double leftMostUpperXCoord = Math.min(Double.parseDouble(points[1]), Double.parseDouble(points[3])); Double leftMostUpperYCoord = Math.max(Double.parseDouble(points[2]), Double.parseDouble(points[4])); // holds the upper left point for the rectangle Point upperLeftPoint = new Point(leftMostUpperXCoord, leftMostUpperYCoord); Double rightMostLowerXCoord = Math.max(Double.parseDouble(points[1]), Double.parseDouble(points[3])); Double rightMostLowerYCoord = Math.min(Double.parseDouble(points[2]), Double.parseDouble(points[4])); // holds the lower right point for the rectangle Point lowerRightPoint = new Point(rightMostLowerXCoord, rightMostLowerYCoord); return new Rectangle(Integer.parseInt(points[0]), upperLeftPoint, lowerRightPoint); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Point[] readTestFile(String filename) {\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }...
[ "0.73457736", "0.7168758", "0.7082354", "0.64045626", "0.6315582", "0.6261066", "0.62520695", "0.6245726", "0.62130827", "0.61372125", "0.6133134", "0.6083917", "0.60496885", "0.60399073", "0.6020722", "0.60045004", "0.599126", "0.5985417", "0.59815055", "0.5959026", "0.59165...
0.0
-1
Gets the (maybe inherited) source directory of this item, or "./" if undefined.
public String getSourceDir() { if (sourceDir != null) return sourceDir; else if (parent == null) return "./"; else return parent.getSourceDir(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getSourceDir()\n {\n\t\treturn srcDir;\n\t}", "java.lang.String getSrcPath();", "public String getTargetDir() {\n\t\tif (targetDir != null)\n\t\t\treturn targetDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getTargetDir();\n\t}", "public String getPath(...
[ "0.71713614", "0.6595044", "0.6494467", "0.64510834", "0.6428414", "0.629978", "0.62814784", "0.62739235", "0.6266205", "0.6261407", "0.6226259", "0.6184462", "0.61729676", "0.6102616", "0.60660905", "0.6019864", "0.6018726", "0.6016404", "0.6014446", "0.6008485", "0.6004556"...
0.812076
0
Gets the (maybe inherited) target directory of this item, or "./" if undefined.
public String getTargetDir() { if (targetDir != null) return targetDir; else if (parent == null) return "./"; else return parent.getTargetDir(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getTargetDir() {\n return targetDir;\n }", "File getTargetDirectory();", "public String getSourceDir() {\n\t\tif (sourceDir != null)\n\t\t\treturn sourceDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getSourceDir();\n\t}", "abstract File getTarge...
[ "0.68484217", "0.67597115", "0.6620326", "0.649709", "0.64156497", "0.63396525", "0.62967545", "0.62707275", "0.62635905", "0.6198307", "0.6136807", "0.6129611", "0.6102343", "0.603879", "0.6030972", "0.60222614", "0.601431", "0.5977303", "0.59496623", "0.5946685", "0.5922228...
0.77684474
0
Gets all files of this item.
public abstract List<LocalFile> getAllFiles();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<File> findAll() {\n\t\treturn files;\n\t}", "@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}", "public List<File> getFiles();", "public List<FileObjects> getFiles() {\n\n\t\t...
[ "0.747974", "0.73202413", "0.72469974", "0.71946853", "0.7107538", "0.70764303", "0.70389134", "0.7006926", "0.698653", "0.69665295", "0.693215", "0.69173706", "0.69099116", "0.6905936", "0.6892142", "0.6843628", "0.6823858", "0.68156433", "0.6741485", "0.6732988", "0.6717391...
0.7396405
1
Printing an error message if there aren't any input files.
public static void main (String [] args) throws Exception { if(args.length < 1){ System.err.println("Usage: java Main <inputFile1> <inputFile2> ... <inputFileN> "); System.exit(1); } FileInputStream fis = null; try{ for (String s: args) { System.out.println("Type check on program: "+s); System.out.print("\n"); //Parsing the input program. fis = new FileInputStream(s); MiniJavaParser parser = new MiniJavaParser(fis); System.err.println("Program parsed successfully."); System.out.print("\n"); Goal root = parser.Goal(); //If the parsing was successful, we move on to the FirstVisitor which will create the Symbol Table and perform declaration checks. FirstVisitor eval = new FirstVisitor(); boolean decl_error = false; try{ root.accept(eval, null); }catch(Exception ouch){ //If we encounter any declaration errors, the semantic check ends. System.out.println("We encountered at least one declaration error! "); System.out.print("\n"); decl_error = true; } //We encountered a declaration error, so now we move on to the next program. if(decl_error == true){ continue; } //Checking if the symbol table has a object from a class that was never declared. If so, we stop the semantic check. //This is the only check performed in the main function. All other checks are in the Visitor files. for (int counter = 0; counter < eval.idList.size(); counter++) { String id_check = eval.idList.get(counter); if( !(eval.visitor_sym.classId_table.containsKey(id_check)) ){ System.out.println("We encountered at least one declaration error! "); System.out.print("\n"); decl_error = true; } } if(decl_error == true){ continue; } //Our program is free of declaration errors, so now we go to the second visitor which will perform type checking. SecondVisitor eval2 = new SecondVisitor(eval.visitor_sym); boolean type_error = false; try{ root.accept(eval2, null); }catch(Exception ouch){ //If we encounter any type errors, the semantic check ends. System.out.println("We encountered at least one type error! "); System.out.print("\n"); type_error = true; } //We encountered a type error, so now we move on to the next program. if (type_error == true){ continue; } System.out.println("Our program is free of type errors, moving on to the offset table: "); System.out.print("\n"); //Creating the offset table with the OffsetTable class. OffsetTable ot = new OffsetTable(eval.visitor_sym); ot.OutputCreator(); System.out.print("\n"); } } catch(ParseException ex){ System.out.println(ex.getMessage()); } catch(FileNotFoundException ex){ System.err.println(ex.getMessage()); } finally{ try{ if(fis != null) fis.close(); } catch(IOException ex){ System.err.println(ex.getMessage()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printFileError() {\n printLine();\n System.out.println(\" Oops! Something went wrong with duke.txt\");\n printLine();\n }", "public static void printReadFileAddTaskError() {\n System.out.println(Message.READ_FILE_ADD_TASK_ERROR);\n }", "@Test\n public ...
[ "0.62110066", "0.60541403", "0.602108", "0.5932784", "0.5860525", "0.5847631", "0.5834925", "0.5727057", "0.5696999", "0.5696364", "0.56938684", "0.56733936", "0.5634275", "0.56316984", "0.56061155", "0.5593881", "0.55872357", "0.5551752", "0.5550122", "0.5519461", "0.5511443...
0.0
-1
TODO Autogenerated method stub
@Override public Catalog viewCatalog2() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO setup valid consent
@BeforeAll public void prepare() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String handleUserConsent(HttpServletRequest request, String consent, OAuth2Parameters oauth2Params, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ throws OAuthSystemException\r\n/* */ {\r\n/* 331 */ String applicationName = sessionDataCacheEntry.getoAuth2Parameters().getApplication...
[ "0.63599646", "0.6298429", "0.61158407", "0.57775044", "0.5771861", "0.57688355", "0.5632301", "0.55896056", "0.5479408", "0.54623014", "0.54611343", "0.5440077", "0.5434917", "0.5404948", "0.5384003", "0.5346125", "0.5340515", "0.53263974", "0.5326138", "0.5322747", "0.53100...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","D:/Softwares/chromedriver/chromedriver.exe"); ChromeOptions options=new ChromeOptions(); options.setPageLoadStrategy(PageLoadStrategy.EAGER); WebDriver driver=new ChromeDriver(); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.manage().deleteCookieNamed("cricket"); driver.get("https://www.cricbuzz.com/live-cricket-scores/37567/dc-vs-srh-33rd-match-indian-premier-league-2021"); driver.navigate().back(); driver.close(); }
{ "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
game user profile parameters need to take private static Image background = new Image( "File:C:\\Users\\Acer\\Desktop\\MsComputer\\MscProject\\pics\\XO.png"); private static Image Play1image, Play2image;
public void start(Stage primaryStage) { try { /** * * collect players names for game mode person to person */ // creating label First Number Text player1 = new Text("First Player"); // creating label Second Number Text player2 = new Text("Second Player"); // Creating Text Field for First Number TextField name1 = new TextField(); // Creating Text Field for Second Number TextField name2 = new TextField(); /** * collecting game setting -getting the desired level user of app need to play */ /* * level buttons container -button level low or easy -button level normal or * medium -button level high or hard and all required setting for that */ GridPane levelBtn = new GridPane(); // Setting the padding levelBtn.setPadding(new Insets(10, 10, 10, 10)); Button level1 = new Button(); level1.setMinSize(60, 60); ImageView easy = new ImageView("File:C:\\Users\\Acer\\Desktop\\MsComputer\\Msc-Project\\pics\\low1.jpg"); easy.setFitWidth(60); easy.setFitHeight(60); level1.setGraphic(easy); Button level2 = new Button(); level2.setMinSize(60, 60); ImageView normal = new ImageView( "File:C:\\Users\\Acer\\Desktop\\MsComputer\\Msc-Project\\pics\\normal2.png"); normal.setFitWidth(60); normal.setFitHeight(60); level2.setGraphic(normal); Button level3 = new Button(); level3.setMinSize(60, 60); ImageView hard = new ImageView("File:C:\\Users\\Acer\\Desktop\\MsComputer\\Msc-Project\\pics\\high1.png"); hard.setFitWidth(60); hard.setFitHeight(60); level3.setGraphic(hard); level1.setOnAction(e -> { /* * parameters of this state */ BoardSize = 3; gLevel = 1; FramX = FramY = 600; System.out.println(nameP1); System.out.println(nameP2); gameSetting setGame = new gameSetting(nameP1, nameP2, gMode, gLevel, numGame, FramX, FramY, BoardSize); gameDriver run = new gameDriver(); run.start(primaryStage); }); level2.setOnAction(e -> { BoardSize = 5; gLevel = 1; FramX = FramY = 600; gameSetting setGame = new gameSetting(nameP1, nameP2, gMode, gLevel, numGame, FramX, FramY, BoardSize); gameDriver run1 = new gameDriver(); run1.start(primaryStage); }); level3.setOnAction(e -> { BoardSize = 9; gLevel = 2; FramX = FramY = 600; gameSetting setGame = new gameSetting(nameP1, nameP2, gMode, gLevel, numGame, FramX, FramY, BoardSize); gameDriver run2 = new gameDriver(); run2.start(primaryStage); }); // } levelBtn.setPadding(new Insets(10, 10, 10, 10)); // Setting the vertical and horizontal gaps between the columns levelBtn.setVgap(20); // Setting the Grid alignment levelBtn.setAlignment(Pos.CENTER); // Arranging all the nodes in the grid levelBtn.add(level1, 0, 0); levelBtn.add(level2, 0, 1); levelBtn.add(level3, 0, 2); levelBtn.setMinSize(200, 200); /** * main page which contain the desired mode or mode option for user of game * -person to person mode -person to android or computer mode all required * setting for that * */ /* * image setting for representing mode */ ImageView pp = new ImageView(mode1); pp.setFitWidth(100); pp.setFitHeight(100); ImageView pc = new ImageView(mode2); pc.setFitWidth(100); pc.setFitHeight(100); /* * grid pane contains all modes and relating setting */ GridPane Mode = new GridPane(); Mode.setPadding(new Insets(10, 10, 10, 10)); Mode.setStyle("-fx-background-color: ANTIQUEWHITE;"); /* * button mode person to person and relating setting for this mode */ Button P2P = new Button(); P2P.setMinSize(100, 100); P2P.setStyle("-fx-background-color: ANTIQUEWHITE;"); P2P.setGraphic(pp); P2P.setOnAction(e -> { /* * Parameters this state */ gMode = 1; nameP1 = name1.getText(); nameP2 = name2.getText(); if (name1.getText().isEmpty() || name2.getText().isEmpty()) { nameP1 = "Player 1-Green"; nameP2 = "player 2-Blue"; } /** * drawing all info and setting in single grid pane */ /* * creating grid pane contains all elements to get player info in person to * person mode */ GridPane gridPane = new GridPane(); // Setting the padding gridPane.setPadding(new Insets(10, 10, 10, 10)); // Setting the vertical and horizontal gaps between the columns gridPane.setVgap(5); gridPane.setHgap(5); // Setting the Grid alignment gridPane.setAlignment(Pos.CENTER); // Arranging all the nodes in the grid gridPane.add(player1, 0, 0); gridPane.add(name1, 1, 0); gridPane.add(player2, 0, 1); gridPane.add(name2, 1, 1); /* * creating border pane contains all elements in person to person mode page and * relating setting */ BorderPane rProfile = new BorderPane(); rProfile.setTop(gridPane); rProfile.setCenter(levelBtn); rProfile.setStyle("-fx-background-color:ANTIQUEWHITE; -fx-text-fill: white;"); // set scene for person to person mode page page2 = new Scene(rProfile, 300, 300); primaryStage.setScene(page2); }); /* * button mode person to computer and relating setting for this mode */ Button P2C = new Button(); P2C.setMinSize(100, 100); P2C.setStyle("-fx-background-color: ANTIQUEWHITE;"); P2C.setGraphic(pc); P2C.setOnAction(e -> { /* * Parameters this state */ gMode = 2; nameP1 = "Person"; nameP2 = "Robot"; /* * creating border pane contains all elements in person to computer mode page * and relating setting */ BorderPane rProfile = new BorderPane(); rProfile.setCenter(levelBtn); rProfile.setStyle("-fx-background-color:ANTIQUEWHITE; -fx-text-fill: white;"); // set scene for person to computer mode page page2 = new Scene(rProfile, 400, 400); primaryStage.setScene(page2); }); Mode.add(P2P, 0, 0); Mode.add(P2C, 1, 0); // Mode.setVgap(5); Mode.setHgap(15); Mode.setAlignment(Pos.CENTER); /* * Creating exist button to exist from game * and relating setting * */ Button exist = new Button(); exist.setStyle("-fx-background-color: ANTIQUEWHITE;"); exist.setMinSize(50, 50); ImageView ext = new ImageView("File:C:\\Users\\Acer\\Desktop\\MsComputer\\Msc-Project\\pics\\out.png"); ext.setFitWidth(50); ext.setFitHeight(50); exist.setGraphic(ext); exist.setPadding(new Insets(10, 10, 10, 10)); exist.setOnAction(e -> { /* * exist the game */ System.exit(-1); }); /* * creating border pane as root contains all modes */ BorderPane rMode = new BorderPane(); rMode.setCenter(Mode); rMode.setTop(exist); rMode.setStyle("-fx-background-color:ANTIQUEWHITE; -fx-text-fill: white;"); // set scene for mode page and welcom page page1 = new Scene(rMode, 400, 300); primaryStage.setTitle("Tic-Tac-Toe for Children"); // ImagePattern pattern = new ImagePattern(background); // page1.setFill(pattern); page1.getStylesheets().addAll(this.getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(page1); primaryStage.setX(500); primaryStage.setY(100); primaryStage.show(); } catch ( Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Background(GameLevel w, int width, int height) {\n super(w, 800, 800);\n this.world = w;\n //this.gameLevel = gameLevel;\n try {\n //All images being read from their respective image files and being assigned to variables.\n bg = ImageIO.read(new File(\"data/...
[ "0.6627689", "0.6515183", "0.6455087", "0.64539593", "0.6325781", "0.6299549", "0.6254066", "0.62415946", "0.62071264", "0.62047", "0.616859", "0.6155738", "0.6120427", "0.60743517", "0.60678643", "0.6060169", "0.6059997", "0.6051628", "0.603907", "0.6002325", "0.5985508", ...
0.0
-1
Set the next Combo and returns true if it was a success and false if not
public boolean setNextCombo(int pointsInRow) { if(this.scoreIndex < this.comboScores.length){ // Checks if it's a valid combo, if the combo was already used, and if the given points are the next one in // the array if(checkCombo(pointsInRow) && ((Boolean)this.combos.values().toArray()[this.comboIndex+1]) && pointsInRow == nextScore) { // Sets the combo to false (false = used) this.combos.put(this.comboNames[this.comboIndex+1], false); // Sets the new name of the current combo this.currentCombo = (String) this.combos.keySet().toArray()[this.comboIndex+1]; // increases the combo index this.comboIndex++; // increases the score index this.scoreIndex++; // Sets the next score that'll be needed for the next combo this.nextScore = this.scoreIndex < this.comboScores.length ? this.comboScores[this.scoreIndex] : 0; return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setReadyNext() {\n\t\tint nextIndex=getNextIndex();\r\n\t\tLog.d(TAG, \"setReadyNext: \"+nextIndex);\r\n\t\tmApplications.get(nextIndex).resetToBackPlace();\r\n\t\tif(mApplications.get(nextIndex).getReady() == -1)\r\n\t\t\tsetTexId(nextIndex);\r\n\t}", "boolean nextItem();", "public void next(){\n...
[ "0.61899936", "0.5802058", "0.5663781", "0.56429446", "0.5641801", "0.56268185", "0.56155866", "0.5561374", "0.55531436", "0.5483264", "0.5469178", "0.5454208", "0.5453691", "0.5423535", "0.5423535", "0.5375189", "0.53594756", "0.53577983", "0.5354762", "0.5328616", "0.531936...
0.6719159
0
Checks if its a valid combo based on pointsInRow
public boolean checkCombo(int pointsInRow) { for(int i : this.comboScores) { if(i == pointsInRow) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean validCoord(int row, int col) {\n\t\treturn (row >= 0 && row < b.size() && col >= 0 && col < b.size());\n\t}", "public boolean setNextCombo(int pointsInRow) {\r\n\t\tif(this.scoreIndex < this.comboScores.length){\r\n\t\t\t// Checks if it's a valid combo, if the combo was already used, and if the...
[ "0.6846643", "0.6792586", "0.65659446", "0.64516723", "0.6340084", "0.6194225", "0.6180826", "0.61464006", "0.6126621", "0.6097954", "0.60960793", "0.60844034", "0.59997684", "0.59908915", "0.59814525", "0.5973675", "0.5937757", "0.5934127", "0.5925241", "0.59162104", "0.5897...
0.8033557
0
Fills the HashMap based on the enum with combo names and the corresponding boolean (true)
private void fillCombos() { this.combos = new LinkedHashMap<String, Boolean>(); for(int i = 0; i < this.comboNames.length; i++) { this.combos.put(this.comboNames[i], true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n...
[ "0.5816837", "0.53661025", "0.53654355", "0.5292757", "0.5277964", "0.5266059", "0.5244241", "0.5233285", "0.5212321", "0.5125425", "0.5119899", "0.50813967", "0.50679266", "0.5046303", "0.5042891", "0.5015517", "0.50092757", "0.49968314", "0.49811122", "0.4977102", "0.496849...
0.682726
0
Get the combo name based on the setNextCombo Method
public String getCurrentComboName() { return this.currentCombo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getComboName(int pointsInRow) {\r\n\t\tint index = this.getComboIndex(pointsInRow);\r\n\t\treturn index == -1 ? \"\" : this.comboNames[index];\r\n\t}", "public String getComboString(int combo)\n {\n if (combo == -1) return \"\";\n return getComboString(convertId(combo));\n }", ...
[ "0.68558997", "0.6685276", "0.6572716", "0.65507764", "0.64365095", "0.6429794", "0.6332826", "0.6220863", "0.61570346", "0.60578763", "0.603363", "0.6015507", "0.60087365", "0.5978338", "0.5977471", "0.59527373", "0.5943868", "0.59261566", "0.584505", "0.58383036", "0.580155...
0.7758039
0
Gets the current Comboname independent of the setNextCombo Method
public String getComboName(int pointsInRow) { int index = this.getComboIndex(pointsInRow); return index == -1 ? "" : this.comboNames[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentComboName() {\r\n\t\treturn this.currentCombo;\r\n\t}", "private JComboBox getOrderCB() {\n \t\tif (orderCB == null) {\n \t\t\torderCB = new JComboBox();\n \t\t\torderCB.addItem(1);\n \t\t\torderCB.addItem(2);\n \t\t\torderCB.addItem(3);\n \t\t\torderCB.addItem(4);\n \t\t\torderCB.addItem...
[ "0.7829618", "0.68923414", "0.68386835", "0.67898285", "0.67813504", "0.67027515", "0.6668119", "0.66168445", "0.6616843", "0.66000324", "0.65640926", "0.65171593", "0.65033025", "0.6473723", "0.64654994", "0.6411656", "0.64076054", "0.637186", "0.63627434", "0.63610154", "0....
0.0
-1
Gets the combo index based of the given points
private int getComboIndex(int pointsInRow) { for (int i=0; i<this.comboScores.length; i++) { if (this.comboScores[i]==pointsInRow) { return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getShipIndex(Point point) {\n\t\tPoint tempPoint;\n\t\tif (startPos.x == endPos.x) {\n\t\t\t// must be horizontal\n\t\t\tfor (int i = startPos.y , j = 0; i <= endPos.y ; i++, j++) {\n\t\t\t\ttempPoint = new Point(startPos.x, i);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn j;\n\t\t\t}\n\t\t}\...
[ "0.62185067", "0.5979898", "0.58169013", "0.5746719", "0.5719035", "0.5682463", "0.56798834", "0.56671566", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", "0.56315106", ...
0.7567681
0
TODO Autogenerated method stub
@Override public FareCalcVO mapRow(ResultSet rs, int rowNum) throws SQLException { int i=0; FareCalcVO fareCalcVo=new FareCalcVO(); fareCalcVo.setSubLotId(rs.getInt(++i)); fareCalcVo.setReceivingDate(rs.getDate(++i)); fareCalcVo.setTruckNo(rs.getString(++i)); fareCalcVo.setSourceName(rs.getString(++i)); fareCalcVo.setAgentDestName(rs.getString(++i)); fareCalcVo.setAgentName(rs.getString(++i)); fareCalcVo.setAgentMark(rs.getString(++i)); fareCalcVo.setItemName(rs.getString(++i)); fareCalcVo.setBoxName(rs.getString(++i)); fareCalcVo.setBoxWt(rs.getInt(++i)); fareCalcVo.setTotQty(rs.getInt(++i)); fareCalcVo.setFarePerBox(rs.getDouble(++i)); return fareCalcVo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void updateStockAccountInfo(StockAccount account) { }
{ "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 PlaceOrder(Order order) { 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 void CancelOrder(Order order) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void UpdateOrder(Order order) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void CancelOrders(ArrayList<Order> orders) { }
{ "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
The default CharGenUDPClient constructor. It initializes some internal data structures for sending and receiving the necessary datagrams for the chargen and related protocols.
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-02-25 10:38:11.973 -0500", hash_original_method = "1269355D60D7190EAE617D5C71982259", hash_generated_method = "5E1FC5222F1D24E03DD02D8882E1411F") public CharGenUDPClient() { // CharGen return packets have a maximum length of 512 __receiveData = new byte[512]; __receivePacket = new DatagramPacket(__receiveData, 512); __sendPacket = new DatagramPacket(new byte[0], 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UDPclient()\n\t{\n\t}", "UDPInstance() {\n this(null, null, null, null);\n }", "public DNSUDPTransport() {\r\n\t\tlistHostPort = new ArrayList();\r\n\t\tconnTimeout = 0;\r\n\t}", "public UDPLayer() \n\t\tthrows SocketException\n\t{\n\t\tthis(0, true); // use any available port on the local host ma...
[ "0.73827845", "0.681122", "0.6562394", "0.6174006", "0.61678874", "0.603081", "0.6030348", "0.59609675", "0.58443844", "0.5814623", "0.58103204", "0.57637286", "0.5736856", "0.5686159", "0.5598217", "0.55839545", "0.5543375", "0.5532808", "0.5499969", "0.549866", "0.54880923"...
0.6571064
2
Sends the data initiation datagram. This data in the packet is ignored by the server, and merely serves to signal that the server should send its reply.
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-02-25 10:38:11.976 -0500", hash_original_method = "24A3E423DE78176900F1058E127BC8B2", hash_generated_method = "5B5F51BF25DAE30DEF4DFB5C781A6B4A") public void send(InetAddress host, int port) throws IOException { __sendPacket.setAddress(host); __sendPacket.setPort(port); _socket_.send(__sendPacket); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPack...
[ "0.7440666", "0.66673315", "0.6506965", "0.6363322", "0.6178018", "0.6123998", "0.60397124", "0.59422284", "0.5905447", "0.58058995", "0.57760197", "0.57719326", "0.5749392", "0.5721284", "0.5720358", "0.56937283", "0.5669129", "0.5654815", "0.5644902", "0.56353784", "0.56276...
0.0
-1
Same as send(host, CharGenUDPClient.DEFAULT_PORT);
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-02-25 10:38:11.979 -0500", hash_original_method = "C03B7BA0DE1B470242B235172550195E", hash_generated_method = "7D506C9D568D8CEEB8F867DEA192AADC") public void send(InetAddress host) throws IOException { send(host, DEFAULT_PORT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-25 10:38:11.976 -0500\", hash_original_method = \"24A3E423DE78176900F1058E127BC8B2\", hash_generated_method = \"5B5F51BF25DAE30DEF4DFB5C781A6B4A\")\n \npublic void send(InetAddress host, int port) throws IOException\n ...
[ "0.72637653", "0.6418433", "0.6357802", "0.630531", "0.61944515", "0.6158832", "0.60349244", "0.6000922", "0.598158", "0.5960926", "0.59563714", "0.59541863", "0.59182715", "0.5907025", "0.59068143", "0.5887282", "0.58265823", "0.5822132", "0.58042073", "0.57893807", "0.57849...
0.7019116
1
Receive the reply data from the server. This will always be 512 bytes or less. Chargen and quote of the day only return one packet. Netstat and systat require multiple calls to receive() with timeout detection.
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-02-25 10:38:11.982 -0500", hash_original_method = "4C2C559A1F5EA512B39B33D53CB17E9D", hash_generated_method = "172F68C5AE823BE13435DB055190A3AF") public byte[] receive() throws IOException { int length; byte[] result; _socket_.receive(__receivePacket); result = new byte[length = __receivePacket.getLength()]; System.arraycopy(__receiveData, 0, result, 0, length); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized String receiveResponse() {\n\t\t\n\t\tlog.debug(\"Waiting for response from the device.\");\n\t\t\n\t\t//Initialize the buffers\n\t\tStringBuffer recievedData = new StringBuffer();\n\t\tchar currentChar = ' ';\n\n\t\ttry {\n\t\t\tdo {\n\t\t\t\t\n\t\t\t\t//If there are bytes available, read the...
[ "0.6720049", "0.65182364", "0.64307356", "0.6426841", "0.6303136", "0.6277913", "0.6267992", "0.6236772", "0.6197098", "0.6125063", "0.6083285", "0.5949131", "0.5931302", "0.59292835", "0.5908579", "0.5893565", "0.5890699", "0.5880583", "0.58727086", "0.5834654", "0.5826918",...
0.5506703
48
Generate ID that has the first digit as year grade
private void setStudentID() { id++; this.studentId = gradeYear + "" + id; System.out.println(this.studentId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String generateCurrentInYearString() {\n\t Calendar cal = Calendar.getInstance();\n\t cal.setTime(new Date());\n\t int currentYear = cal.get(Calendar.YEAR);\n\t return new Integer(currentYear).toString();\n\t}", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\...
[ "0.6740649", "0.66913146", "0.64991075", "0.6490605", "0.64265895", "0.6345931", "0.6340316", "0.63054955", "0.63004076", "0.6262506", "0.62558234", "0.6233054", "0.6214898", "0.6204611", "0.6202906", "0.62010986", "0.61895317", "0.61811256", "0.61767644", "0.6145516", "0.613...
0.6098937
23
Enroll in courses, here the courses should also reflect the tuition fee of the enrolled student
public void enroll() { do { System.out.print("Enter Courses to enroll (Q for Quit Enrollment): "); Scanner in = new Scanner(System.in); String course = in.nextLine(); if(!course.equals("Q")){ countCourses++; courses = courses + "\n " +course; tuitionBalance = tuitionBalance + costOfCourse; }else {System.out.println("You have decided to quit Enrolment"); break;} }while (1 != 0); int ccount = countCourses++; System.out.println("You have registered for " + ccount + " Courses: " + courses + "\nYour tuition balance is " + tuitionBalance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enroll_Student(CourseOffering course, String studentID){\n\n StudentModel student = findStudent(course, studentID);\n if(student == null){\n System.out.println(\"\\n>>Enrollment denied: \" + studentID + \"<<\");\n\n return;\n }\n\n\n for(StudentModel st...
[ "0.69214875", "0.6693825", "0.66004753", "0.6593339", "0.631868", "0.62829584", "0.62827957", "0.6212349", "0.6194439", "0.6131752", "0.6125613", "0.61137986", "0.60964", "0.6080985", "0.6051351", "0.6040513", "0.601266", "0.59923476", "0.59597576", "0.59405017", "0.59275734"...
0.70924264
0
we want the student to distinctly see her balance in this method
public void viewBalance() { System.out.println("This is your current Balance $" + tuitionBalance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getBalance() { return balance; }", "double getBalance();", "double getBalance();", "private void listBalances() {\n\t\t\r\n\t}", "public double getBalance(){\n return this.balance;\r\n }", "protected double getTotalBalance()\r\n {\r\n return totalBalance;\r\n }", "publ...
[ "0.7188264", "0.71735185", "0.71735185", "0.71067905", "0.71015084", "0.7062497", "0.70219994", "0.7007605", "0.6989032", "0.694164", "0.6939966", "0.6932859", "0.6914075", "0.687568", "0.6849059", "0.68321645", "0.6823693", "0.68231684", "0.6798306", "0.6777626", "0.67752016...
0.678385
19
Retrieve the certificate and validate signature
public boolean isValidSignature(SignedJWT signedJWT, String tenantDomain, String alias) throws IdentityOAuth2Exception { try { X509Certificate cert = getCertificate(tenantDomain, alias); return validateSignature(signedJWT, cert); } catch (JOSEException e) { return handleException("Error when verifying signature with error:" + e.getMessage(), e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCertificate();", "public X509Certificate getCertificate();", "public ValidationResult validate(CertPath certPath);", "byte[] getPackageCertificate() throws Exception {\n\t\tPackageInfo info;\n\t\tinfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES);\n\t\tfor (S...
[ "0.7098489", "0.6951704", "0.68320996", "0.65529275", "0.65150404", "0.6341604", "0.6324533", "0.6307147", "0.62316006", "0.62245524", "0.61922854", "0.6158243", "0.6086025", "0.6052337", "0.60519344", "0.6046883", "0.6043567", "0.6040802", "0.60136855", "0.5980374", "0.59729...
0.0
-1