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 BC_GLOBAL_PROPS.CREATE_TIME
public void setCreateTime(Date createTime) { this.createTime = createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime...
[ "0.6898135", "0.67655724", "0.6757733", "0.6588139", "0.65806496", "0.65625924", "0.65625924", "0.65253997", "0.64885366", "0.6460832", "0.644762", "0.6387859", "0.6384947", "0.6378695", "0.6378695", "0.6378695", "0.6378695", "0.6378695", "0.6378695", "0.6377266", "0.63712454...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column BC_GLOBAL_PROPS.UPDATE_TIME
public Date getUpdateTime() { return updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "@gw.intern...
[ "0.72609407", "0.7255179", "0.7208309", "0.7208309", "0.71996284", "0.71931416", "0.71931416", "0.71903276", "0.7074863", "0.7074863", "0.707101", "0.69995815", "0.69684315", "0.69684315", "0.69684315", "0.6964374", "0.69575185", "0.6954826", "0.6940302", "0.6924055", "0.6899...
0.67037654
84
This method was generated by MyBatis Generator. This method sets the value of the database column BC_GLOBAL_PROPS.UPDATE_TIME
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateTime (java.sql.Timestamp updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public...
[ "0.7011633", "0.6935513", "0.6935513", "0.68029606", "0.6694025", "0.66706836", "0.6611854", "0.65506124", "0.65506124", "0.6547891", "0.6547891", "0.6547891", "0.6547891", "0.6546528", "0.6546528", "0.6546528", "0.6543492", "0.6543012", "0.65347254", "0.65347254", "0.6531703...
0.64545786
69
This method was generated by MyBatis Generator. This method corresponds to the database table BC_GLOBAL_PROPS
@Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } BCGlobalProps other = (BCGlobalProps) that; return (this.getLogUuid() == null ? other.getLogUuid() == null : this.getLogUuid().equals(other.getLogUuid())) && (this.getBversion() == null ? other.getBversion() == null : this.getBversion().equals(other.getBversion())) && (this.getBlockHeight() == null ? other.getBlockHeight() == null : this.getBlockHeight().equals(other.getBlockHeight())) && (this.getPropKey() == null ? other.getPropKey() == null : this.getPropKey().equals(other.getPropKey())) && (this.getPropValue() == null ? other.getPropValue() == null : this.getPropValue().equals(other.getPropValue())) && (this.getMptType() == null ? other.getMptType() == null : this.getMptType().equals(other.getMptType())) && (this.getHashValue() == null ? other.getHashValue() == null : this.getHashValue().equals(other.getHashValue())) && (this.getTxid() == null ? other.getTxid() == null : this.getTxid().equals(other.getTxid())) && (this.getPrevHashValue() == null ? other.getPrevHashValue() == null : this.getPrevHashValue().equals(other.getPrevHashValue())) && (this.getPrevBlockHeight() == null ? other.getPrevBlockHeight() == null : this.getPrevBlockHeight().equals(other.getPrevBlockHeight())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void populate(GlobalProperties properties, ResultSet rs) throws SQLException {\n while (rs.next()) {\n String name = rs.getString(\"name\");\n String value = rs.getString(\"value\");\n if (null != value) {\n properties.setProperty(name, value);\...
[ "0.58196455", "0.5739376", "0.57149154", "0.5623734", "0.55812013", "0.55106455", "0.55075824", "0.54401344", "0.5414387", "0.5231617", "0.5202545", "0.5185235", "0.5153226", "0.51491994", "0.51226056", "0.5098267", "0.50910884", "0.5020784", "0.5015128", "0.50148785", "0.501...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table BC_GLOBAL_PROPS
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getLogUuid() == null) ? 0 : getLogUuid().hashCode()); result = prime * result + ((getBversion() == null) ? 0 : getBversion().hashCode()); result = prime * result + ((getBlockHeight() == null) ? 0 : getBlockHeight().hashCode()); result = prime * result + ((getPropKey() == null) ? 0 : getPropKey().hashCode()); result = prime * result + ((getPropValue() == null) ? 0 : getPropValue().hashCode()); result = prime * result + ((getMptType() == null) ? 0 : getMptType().hashCode()); result = prime * result + ((getHashValue() == null) ? 0 : getHashValue().hashCode()); result = prime * result + ((getTxid() == null) ? 0 : getTxid().hashCode()); result = prime * result + ((getPrevHashValue() == null) ? 0 : getPrevHashValue().hashCode()); result = prime * result + ((getPrevBlockHeight() == null) ? 0 : getPrevBlockHeight().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void populate(GlobalProperties properties, ResultSet rs) throws SQLException {\n while (rs.next()) {\n String name = rs.getString(\"name\");\n String value = rs.getString(\"value\");\n if (null != value) {\n properties.setProperty(name, value);\...
[ "0.58196455", "0.5739376", "0.57149154", "0.5623734", "0.55812013", "0.55106455", "0.55075824", "0.54401344", "0.5414387", "0.5231617", "0.5202545", "0.5185235", "0.5153226", "0.51491994", "0.51226056", "0.5098267", "0.50910884", "0.5020784", "0.5015128", "0.50148785", "0.501...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table BC_GLOBAL_PROPS
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", bversion=").append(bversion); sb.append(", blockHeight=").append(blockHeight); sb.append(", propKey=").append(propKey); sb.append(", propValue=").append(propValue); sb.append(", mptType=").append(mptType); sb.append(", hashValue=").append(hashValue); sb.append(", txid=").append(txid); sb.append(", prevHashValue=").append(prevHashValue); sb.append(", prevBlockHeight=").append(prevBlockHeight); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); sb.append("]"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void populate(GlobalProperties properties, ResultSet rs) throws SQLException {\n while (rs.next()) {\n String name = rs.getString(\"name\");\n String value = rs.getString(\"value\");\n if (null != value) {\n properties.setProperty(name, value);\...
[ "0.58192945", "0.57392776", "0.57159984", "0.5624925", "0.55803746", "0.55107707", "0.5508323", "0.54407287", "0.54154205", "0.5231678", "0.52020764", "0.5184786", "0.51526856", "0.5149033", "0.5122257", "0.50973237", "0.5091077", "0.5020725", "0.501517", "0.50146204", "0.501...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
long countByExample(AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int deleteByExample(AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int deleteByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int insert(Ad record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53407776", "0.5273194", "0.52676857", "0.5242258", "0.5235894", "0.5182402", "0.51424336", "0.51312345", "0.51174104", "0.5107736", "0.5069654", "0.50473285", "0.50447196", "0.5023866", "0.502091", "0.50041354", "0.49774224", "0.49718004", "0.49621865", "0.49519724", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int insertSelective(Ad record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
Ad selectOneByExample(AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
Ad selectOneByExampleSelective(@Param("example") AdExample example, @Param("selective") Ad.Column ... selective);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
List<Ad> selectByExampleSelective(@Param("example") AdExample example, @Param("selective") Ad.Column ... selective);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53407776", "0.5273194", "0.52676857", "0.5242258", "0.5235894", "0.5182402", "0.51424336", "0.51312345", "0.51174104", "0.5107736", "0.5069654", "0.50473285", "0.50447196", "0.5023866", "0.502091", "0.50041354", "0.49774224", "0.49718004", "0.49621865", "0.49519724", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
List<Ad> selectByExample(AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
Ad selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") Ad.Column ... selective);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
Ad selectByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
Ad selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53407776", "0.5273194", "0.52676857", "0.5242258", "0.5235894", "0.5182402", "0.51424336", "0.51312345", "0.51174104", "0.5107736", "0.5069654", "0.50473285", "0.50447196", "0.5023866", "0.502091", "0.50041354", "0.49774224", "0.49718004", "0.49621865", "0.49519724", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int updateByExampleSelective(@Param("record") Ad record, @Param("example") AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int updateByExample(@Param("record") Ad record, @Param("example") AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int updateByPrimaryKeySelective(Ad record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int updateByPrimaryKey(Ad record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53407776", "0.5273194", "0.52676857", "0.5242258", "0.5235894", "0.5182402", "0.51424336", "0.51312345", "0.51174104", "0.5107736", "0.5069654", "0.50473285", "0.50447196", "0.5023866", "0.502091", "0.50041354", "0.49774224", "0.49718004", "0.49621865", "0.49519724", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int logicalDeleteByExample(@Param("example") AdExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_ad
int logicalDeleteByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bill> all() throws SQLException;", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@Select({\n \"select\",\n \"id, userid, medalId, bindUserid, remark, createTime\",\n \"from kd_user_medal\"\n })\n @Results({\n @Result(column=\"id\", property...
[ "0.53435653", "0.5274379", "0.52696335", "0.52425027", "0.5235826", "0.51826566", "0.51444304", "0.51331407", "0.5118644", "0.51095027", "0.50699705", "0.5046952", "0.50469166", "0.5023189", "0.5022513", "0.5004236", "0.49796233", "0.49747592", "0.49633887", "0.49547738", "0....
0.0
-1
/ renamed from: a
public abstract ZALogDao mo87644a();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Created by Arek on 13.01.2017.
@Repository public interface UserRoleRepository extends JpaRepository<UserRole, Long> { public void delete(UserRole userRole); public UserRole findByUser(User user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.5929215", "0.5817217", "0.57569164", "0.5666942", "0.56568146", "0.56428075", "0.56428075", "0.55935943", "0.55782163", "0.55611247", "0.5555344", "0.55475664", "0.554636", "0.55201787", "0.55066305", "0.55039686", "0.5497496", "0.5497496", "0.5497496", "0.5497496", "0.549...
0.0
-1
Devuelve el nombre. Es lo que lo identifica.
public String getNombreDelModelo() { return this.getModelo().getNombre(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}", "@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myName = myName.substring(index + 1);\n }\n }\n\n return myName;\n }...
[ "0.7720945", "0.7614786", "0.74012834", "0.73141295", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", "0.7300091", ...
0.0
-1
Prop: Descuenta en uno la cantidad que se registra del modelo. Obs: Por Invariante no puede haber menos que 1 en la cantidad ejemplares del modelo.
public void descontarUnidad() { cantidad--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarCantidad() {\r\n\t\tif (cantidad > 0) {\r\n\t\t\tif (cantidad <= inventarioProductoComprar.getCantidad()) {\r\n\t\t\t\tdetalleAgregar.setCantidad(cantidad);\r\n\t\t\t\tdetalleAgregar.setSubtotal(detalleAgregar.getProducto().getValorProducto() * cantidad);\r\n\t\t\t\tinventarioProductoComprar.set...
[ "0.6264719", "0.61865324", "0.60957634", "0.6021792", "0.6005037", "0.5968298", "0.59560907", "0.5935821", "0.59225553", "0.5895306", "0.5824247", "0.5824247", "0.5818374", "0.5799106", "0.5790019", "0.5784817", "0.5782925", "0.5765389", "0.5737278", "0.5733131", "0.57057047"...
0.0
-1
Prop: Suma en uno la cantidad que se registra del modelo.
public void sumarUnidad() { cantidad++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer cantidadPersonasEnMicro(){\r\n return pasajeros.size();\r\n }", "public void agregarCantidad() {\r\n\t\tif (cantidad > 0) {\r\n\t\t\tif (cantidad <= inventarioProductoComprar.getCantidad()) {\r\n\t\t\t\tdetalleAgregar.setCantidad(cantidad);\r\n\t\t\t\tdetalleAgregar.setSubtotal(detalleAg...
[ "0.596925", "0.587", "0.5806911", "0.57705855", "0.5760033", "0.57479906", "0.56641614", "0.56321836", "0.56115884", "0.56115884", "0.56094176", "0.56094176", "0.5588259", "0.5585077", "0.5580194", "0.5576674", "0.5574528", "0.55512094", "0.5539111", "0.5531787", "0.55279475"...
0.0
-1
Prop: Modifica el precio del modelo que se guarda en el registro.
public void cambiarPrecio(Float porcent) { modelo.cambiarPrecio(porcent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean beforeSave(boolean newRecord) {\n if (newRecord){\n\n // Me aseguro de tener la organización correcta\n MZOrdenPago ordenPago = (MZOrdenPago) this.getZ_OrdenPago();\n this.setAD_Org_ID(ordenPago.getAD_Org_ID());\n\n if (this.getZ_G...
[ "0.5924741", "0.57283765", "0.57055664", "0.5667239", "0.5618608", "0.56157225", "0.56141394", "0.5591469", "0.5590377", "0.5586908", "0.55769086", "0.55753845", "0.5522756", "0.55175614", "0.5454475", "0.5418615", "0.5393819", "0.53873146", "0.53717375", "0.536113", "0.53579...
0.5290171
31
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 Media createEntity(EntityManager em) { Media media = new Media().fileName(DEFAULT_FILE_NAME).fileType(DEFAULT_FILE_TYPE).fileDesc(DEFAULT_FILE_DESC); return media; }
{ "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);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.77234906", "0.75053483", "0.7488514", "0.73619807", "0.7314892", "0.715663", "0.715663", "0.7150997", "0.7150329", "0.707783", "0.70170516", "0.68032324", "0.675297", "0.67404056", "0.67404056", "0.6712416", "0.6681341", "0.6665129", "0.66405314", "0.662522", "0.66240084",...
0.0
-1
Create an updated 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 Media createUpdatedEntity(EntityManager em) { Media media = new Media().fileName(UPDATED_FILE_NAME).fileType(UPDATED_FILE_TYPE).fileDesc(UPDATED_FILE_DESC); return media; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB...
[ "0.6944054", "0.67897177", "0.678749", "0.67166066", "0.66931266", "0.6691545", "0.6664956", "0.663649", "0.66200274", "0.65134037", "0.65081054", "0.64465004", "0.64222306", "0.6419429", "0.6419323", "0.641392", "0.6411952", "0.6408659", "0.64028597", "0.63929445", "0.639074...
0.0
-1
Create the Media with an existing ID
@Test @Transactional void createMediaWithExistingId() throws Exception { media.setId(1L); int databaseSizeBeforeCreate = mediaRepository.findAll().size(); // An entity with an existing ID cannot be created, so this API call must fail restMediaMockMvc .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(media))) .andExpect(status().isBadRequest()); // Validate the Media in the database List<Media> mediaList = mediaRepository.findAll(); assertThat(mediaList).hasSize(databaseSizeBeforeCreate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Media addNewMedia(String id)\n\t\t{\n\t\t\tElement mediaElement = document.createElement(MEDIA_ELEMENT_NAME);\n\t\t\tMedia media = new Media(mediaElement);\n\t\t\tmedia.setId(id);\n\n\t\t\tendpointElement.appendChild(mediaElement);\n\t\t\tmediasList.add(media);\n\n\t\t\treturn media;\n\t\t}", "Media getMe...
[ "0.74645597", "0.678681", "0.66353774", "0.6420248", "0.6278457", "0.6274508", "0.6181689", "0.6119007", "0.6086514", "0.6077414", "0.6019402", "0.60152406", "0.60014594", "0.59745866", "0.5961213", "0.5959146", "0.5896909", "0.58551246", "0.5850954", "0.5831957", "0.58178926...
0.68688583
1
Validates entity lineage results.
public static void validateLineageGraphResult(LineageGraphResult lineageGraphResult, String[] expectedVertices, LineageGraphResult.Edge[] expectedEdgeArray) { String[] actualVertices; LineageGraphResult.Edge[] actualEdgeArray; Set<String> actualVerticesSet = new HashSet<>(); Set<LineageGraphResult.Edge> actualEdgeSet = new HashSet<>(); try { actualVertices = lineageGraphResult.getVertices(); actualVerticesSet = new HashSet<>(Arrays.asList(actualVertices)); } catch (NullPointerException e) { Assert.assertEquals(expectedVertices.length, 0); } try { actualEdgeArray = lineageGraphResult.getEdges(); actualEdgeSet = new HashSet<>(Arrays.asList(actualEdgeArray)); } catch (NullPointerException e) { Assert.assertEquals(expectedEdgeArray.length, 0); } Set<LineageGraphResult.Edge> expectedEdgeSet = new HashSet<>(Arrays.asList(expectedEdgeArray)); Set<String> expectedVerticesSet = new HashSet<>(Arrays.asList(expectedVertices)); Assert.assertEquals(actualEdgeSet, expectedEdgeSet, "Edges dont match"); Assert.assertEquals(actualVerticesSet, expectedVerticesSet, "Vertices dont match"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validateEntity() {\n super.validateEntity();\n }", "protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validat...
[ "0.6381777", "0.6261797", "0.59197754", "0.58552134", "0.5825173", "0.5812773", "0.5732397", "0.5715241", "0.5711473", "0.5701712", "0.5701712", "0.5688356", "0.56770563", "0.5660251", "0.5654477", "0.5651919", "0.5630427", "0.5601705", "0.5583108", "0.55806524", "0.55571824"...
0.506252
96
Validates that failed response contains specific error message.
public static void validateError(TriageResult triageResult, ResponseErrors error) { AssertUtil.assertFailed(triageResult); Assert.assertTrue(triageResult.getMessage().contains(error.getError()), "Error should contain '" + error + "'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Response error(ErrorMessage errorMessage) {\r\n\r\n\t\tJSONObject json = new JSONObject();\r\n\r\n\t\ttry {\r\n\t\t\tjson.put(STAT, FAIL);\r\n\t\t\tjson.put(CODE, errorMessage.getCode());\r\n\t\t\tjson.put(MESSAGE, errorMessage.getMessage());\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.prin...
[ "0.6207333", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.62026554", "0.61961836", "0.6120967", "0.6077921", "0.60268235", "0.6025215", "0.5958508", "0.59151655", "...
0.6080671
15
Produces list of expected vertices and edges in triage result.
public static LineageGraphResult getExpectedResult(int bundleIndx, Map<PipelineEntityType, List<String>> entityNamesMap, List<Integer> inputFeedFrequencies, String entityName, String clusterName, String startTime) { List<String> processNames = entityNamesMap.get(PipelineEntityType.PROCESS); List<String> inputFeedNames = entityNamesMap.get(PipelineEntityType.INPUT_FEED); List<String> outputFeedNames = entityNamesMap.get(PipelineEntityType.OUTPUT_FEED); List<String> vertices = new ArrayList<>(); List<LineageGraphResult.Edge> edges = new ArrayList<>(); final String startTimeMinus20 = TimeUtil.addMinsToTime(startTime, -20); String vertexTemplate = "name: %s, type: %s, cluster: %s, instanceTime: %s, tags: %s"; for (int i = 0; i <= bundleIndx; ++i) { //add vertex of i-th bundle process boolean isTerminalInstance = processNames.contains(entityName) && i == bundleIndx; String tag = isTerminalInstance ? "[WAITING]" : "Output[WAITING]"; final String processVertex = String.format(vertexTemplate, processNames.get(i), "PROCESS", clusterName, startTime, tag); vertices.add(processVertex); //add all input feed vertices & edges for i-th bundle LineageGraphResult.Edge edge; String feedVertex; for (DateTime dt = new DateTime(startTime); !dt.isBefore(new DateTime(startTimeMinus20)); dt = dt.minusMinutes(inputFeedFrequencies.get(i))) { feedVertex = String.format(vertexTemplate, inputFeedNames.get(i), "FEED", clusterName, TimeUtil.dateToOozieDate(dt.toDate()), "Input[MISSING]"); edge = new LineageGraphResult.Edge(feedVertex, processVertex, "consumed by"); vertices.add(feedVertex); edges.add(edge); } //add output feed edge for i-th bundle tag = (outputFeedNames.contains(entityName) && i == bundleIndx) ? "[MISSING]" : "Input[MISSING]"; feedVertex = String.format(vertexTemplate, outputFeedNames.get(i), "FEED", clusterName, startTime, tag); isTerminalInstance = i == bundleIndx && outputFeedNames.contains(entityName); if (i < bundleIndx || isTerminalInstance) { edge = new LineageGraphResult.Edge(processVertex, feedVertex, "produces"); edges.add(edge); } //add output feed vertex only if it is terminal; it will be added as the input for next bundle otherwise if (isTerminalInstance) { vertices.add(feedVertex); } } LineageGraphResult lineageGraphResult = new LineageGraphResult(); lineageGraphResult.setVertices(vertices.toArray(new String[vertices.size()])); lineageGraphResult.setEdges(edges.toArray(new LineageGraphResult.Edge[edges.size()])); return lineageGraphResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getVertexes() {\n\n for (int i = 0; i < 6; i++) {\n\n Vertex temp = new Vertex(i + \"\", \"Location number \" + i);\n assertTrue(temp.equals(testGraph.getVertices ().get(i)));\n\n }\n }", "private void generateVertexSignatures() {\n \t this.create(...
[ "0.6149149", "0.5939915", "0.5884091", "0.5857485", "0.57819456", "0.5770757", "0.5732992", "0.5699435", "0.5699384", "0.5674152", "0.5636708", "0.5626704", "0.5596947", "0.5549994", "0.5530509", "0.5526671", "0.54892164", "0.5476161", "0.5463816", "0.54434216", "0.54397714",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int trabaj, horas, salario, x=0, horas_ex, horas_obli=40; double salario_ex, salario_fin1, salario_fin2, acum=0; System.out.println("Dime cuantos trabajadores hay: "); trabaj = sc.nextInt(); System.out.println("Dime el salario/horas: "); salario = sc.nextInt(); salario_ex = (salario * 1.5); while (x < trabaj) { System.out.println("Dime las horas que trabajas: "); horas = sc.nextInt(); horas_ex = (horas - horas_obli); salario_fin1=((horas_ex * salario_ex) + (salario * horas_obli)); salario_fin2=(salario * horas); if (horas > horas_obli) { System.out.println("Tienes que cobrar un 50% más, tu sueldo será: " + salario_fin1); acum=(salario_fin1 + acum); x=(x+1); } else { System.out.println("Tu sueldo será de: " + salario_fin2); acum=(salario_fin2 + acum); x=(x+1); } System.out.println(" "); } System.out.println("El salario total del grupo es: " + acum); sc.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
Only the name, id and Status values of the image are retrieved from openstack.
public Image getImageById(String region, String id) throws Exception { getOs().useRegion(region); return getOs().imagesV2().get(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImageStatus(\n @Path(\"name\") String name);", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}/sta...
[ "0.67342293", "0.6478605", "0.6397475", "0.62645334", "0.59251827", "0.5888524", "0.5842723", "0.58404243", "0.5826802", "0.5779774", "0.57494754", "0.5714834", "0.56853825", "0.5665962", "0.5664369", "0.5650809", "0.5634681", "0.5618136", "0.5598834", "0.55961776", "0.558991...
0.0
-1
if something is updated in the model, reset the display shouldn't really ever be called
@Override public void update(Observable o, Object arg) { setDisplay(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateModel() {\n updateModel(false);\n }", "@Override\n public void reset() {\n model.reset();\n view.resetView();\n }", "@Override\n\tpublic void setModel() {\n\t\tsuper.setModel();\n\t\tclear();\n\t}", "public void performUpdateReset() {\n switchToPage(NavDrawerAd...
[ "0.75861764", "0.7209794", "0.6726214", "0.6666427", "0.6616241", "0.66081", "0.6604005", "0.66034454", "0.65939516", "0.658169", "0.6561048", "0.6546865", "0.6521235", "0.6493999", "0.6445901", "0.6403727", "0.64012", "0.6396366", "0.6395901", "0.6384975", "0.6371886", "0....
0.65425676
12
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_admin__home, container, false); InfoDetails = (TextView)v.findViewById(R.id.TextViewAdminHomeDetails); TodTT = (TextView)v.findViewById(R.id.TodayTT); TimeTable = (RecyclerView)v.findViewById(R.id.recyclerView); Welcome = (TextView)v.findViewById(R.id.TextViewWelcome); Welcome.setText("Welcome,"); mAuth = FirebaseAuth.getInstance(); FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser(); String uid = currentUser.getUid(); InfoRef = FirebaseDatabase.getInstance().getReference("Users/Admin/" + uid + "/") ; InfoRef.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { if(dataSnapshot.exists()){ Name = dataSnapshot.child("Name").getValue().toString(); InfoDetails.setText("Name : " + Name); } } @Override public void onCancelled(DatabaseError databaseError) { } }); adapter = new StudentTimeTableListAdapter(inflater ,getContext() , mStudTT); TimeTable.setLayoutManager(new LinearLayoutManager(getActivity())); TimeTable.setAdapter(adapter); adapter.notifyDataSetChanged(); Calendar calendar = Calendar.getInstance(); int day = calendar.get(Calendar.DAY_OF_WEEK); switch (day) { case Calendar.SUNDAY: TodTT.setText("Sunday"); InfoDetails.setText("Welcome,\n\nDay : Sunday" ); // Current day is Sunday break; case Calendar.MONDAY: TodTT.setText("Monday's Time Table"); InfoDetails.setText("Welcome,\n\nDay : Monday" ); // Current day is Monday break; case Calendar.TUESDAY: TodTT.setText("Tuesday's Time Table"); InfoDetails.setText("Welcome,\n\nDay : Tuesday" ); // etc. break; case Calendar.WEDNESDAY: TodTT.setText("Wednesday's Time Table"); InfoDetails.setText("Welcome,\n\nDay : Wednesday" ); // etc. break; case Calendar.THURSDAY: TodTT.setText("Thursday's Time Table"); InfoDetails.setText("Welcome,\n\nDay : Thursday" ); // etc. break; case Calendar.FRIDAY: TodTT.setText("Friday's Time Table"); InfoDetails.setText("Welcome,\n\nDay : Friday" ); // etc. break; case Calendar.SATURDAY: TodTT.setText("Saturday's Time Table"); InfoDetails.setText("Name : Hardik\nEmail : 2017008907.hardik@ug.sharda.ac.in\nSystem Id : 2017008907\nSchool : School Of Engineering And Technology\nYear : 1st Year\nClass : Sec - A\nGroup - G1" ); // etc. //InfoDetails.setText("Name : " + Name); break; } return v ; //return inflater.inflate(R.layout.fragment_admin__home, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
This method used for comparing objects.
public int compare (Object object1,Object object2) { Map map1 = (Map)object1; Map map2 = (Map)object2; /*Get sort info keys*/ Map sortKeys = getSortKeys(); String keyName = (String) sortKeys.get("name"); String keyDir = (String) sortKeys.get("dir"); String stringValue1 = (String) map1.get(keyName); String stringValue2 = (String) map2.get(keyName); boolean str1Empty = isEmpty(stringValue1); boolean str2Empty = isEmpty(stringValue2); /* * If both values are null or empty diff = 0 * If first string is null or empty diff = -1 * If second string is null or empty diff = 1 * If both the strings are not empty then compare the strings */ int diff = str1Empty && str2Empty ? 0 : str1Empty ? -1 : str2Empty ? 1 : compareAnchorDataPart(stringValue1, stringValue2); /* If the direction is not ascending, then invert the sign of 'diff' value * */ return "ascending".equals(keyDir)? diff : -diff ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n ass...
[ "0.6784168", "0.67376804", "0.67326254", "0.6695418", "0.6681426", "0.66114765", "0.66053516", "0.6597967", "0.65652543", "0.6558377", "0.6551371", "0.6545641", "0.6529914", "0.6522321", "0.6507746", "0.6502131", "0.6480268", "0.64722985", "0.6468935", "0.64669687", "0.646561...
0.0
-1
/convert the string to lower case, we are not taking case into consideration.
private String getAnchorTagDataPart(String string) { string = string.toLowerCase(); /*this data should be in the form of <a herf="action.jsp&objected=1.1.1.1">Value</a>*/ int anchorBegin = string.indexOf("<a "); int anchorEnd = string.indexOf("</a>"); /*If the string is not of above specified format i.e. not begining with '<a' or ending with '</a>' then return the original string.*/ if(anchorBegin == -1 || anchorEnd == -1) return string; /* * Remove the </a> part from the stirng * Now the string becomes <a herf="action.jsp&objected=1.1.1.1">Value * */ string = string.substring(anchorBegin, anchorEnd); /*Now get the index of '>' and return the sub string of string.indexOf('>') + 1*/ string = string.substring(string.indexOf('>') + 1); return string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String convertLowercase(String str)\r\n {\r\n return str.toLowerCase();\r\n }", "public static String lowerCase(String s){\n\t\tString lower= \" \";\n\t\tfor (int i=0; i<s.length(); i++){\n\t\t\tString letter=s.substring(i, i+1);\n\t\t\tif (Constants.UPPER_CASE.indexOf(letter)!= -1){\n\t\t\t\...
[ "0.83618677", "0.79173553", "0.7856366", "0.7648493", "0.7624818", "0.72698283", "0.7268506", "0.7238237", "0.7188879", "0.71656525", "0.71532124", "0.71509826", "0.71482956", "0.71051675", "0.71051216", "0.70986223", "0.7084663", "0.7063258", "0.70556927", "0.7044001", "0.69...
0.0
-1
logging an information message
public void log(String message) { for(LoggerInterface logger: loggers) { logger.log(message); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }", "void info(String message);", "public void info(String message);", "public void info(String message);", "private void logInfo(S...
[ "0.79565936", "0.7874966", "0.78475475", "0.78475475", "0.7558877", "0.7486628", "0.7395141", "0.7371557", "0.7371516", "0.7355985", "0.7345406", "0.73401326", "0.73367923", "0.729087", "0.7260475", "0.7240547", "0.7153392", "0.714285", "0.7141922", "0.71366584", "0.7125571",...
0.0
-1
logging an information message
public void log(String message, Severity sev) { for(LoggerInterface logger: loggers) { logger.log(message, sev); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }", "void info(String message);", "public void info(String message);", "public void info(String message);", "private void logInfo(S...
[ "0.79565936", "0.7874966", "0.78475475", "0.78475475", "0.7558877", "0.7486628", "0.7395141", "0.7371557", "0.7371516", "0.7355985", "0.7345406", "0.73401326", "0.73367923", "0.729087", "0.7260475", "0.7240547", "0.7153392", "0.714285", "0.7141922", "0.71366584", "0.7125571",...
0.0
-1
logging an information message
public void log(String message, Severity sev, Object source) { for(LoggerInterface logger: loggers) { logger.log(message, sev, source); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }", "void info(String message);", "public void info(String message);", "public void info(String message);", "private void logInfo(S...
[ "0.79565936", "0.7874966", "0.78475475", "0.78475475", "0.7558877", "0.7486628", "0.7395141", "0.7371557", "0.7371516", "0.7355985", "0.7345406", "0.73401326", "0.73367923", "0.729087", "0.7260475", "0.7240547", "0.7153392", "0.714285", "0.7141922", "0.71366584", "0.7125571",...
0.0
-1
logging a full object as Json
public void logObject(Object obj) { for(LoggerInterface logger: loggers) { logger.logObject(obj); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void printJsonObject(Object object) throws IOException {\n Logger logger = Logger.getLogger(PortfolioManagerApplication.class.getCanonicalName());\n ObjectMapper mapper = new ObjectMapper();\n logger.info(mapper.writeValueAsString(object));\n }", "public String toLogData() { \n\t re...
[ "0.74211556", "0.6690602", "0.65666395", "0.6495795", "0.6364734", "0.6251958", "0.6232437", "0.62291217", "0.6218827", "0.613082", "0.613082", "0.613082", "0.61087877", "0.6107171", "0.60313225", "0.59843564", "0.597311", "0.59699", "0.5955092", "0.5944518", "0.5907631", "...
0.0
-1
get inverted lookup table target specifies which of the arguments gets to be the output
public LookupTable2D getInverseLookupTableBinarySearch( // BinaryOperator<Scalar> function, int target, // int dimN0, int dimN1, Clip clipT, Chop chop) { Clip clipN0 = target == 0 ? clipT : clip0; Clip clipN1 = target == 0 ? clip1 : clipT; Clip clipNT = target == 0 ? clip0 : clip1; // switch x and out Scalar[][] table = new Scalar[dimN0][dimN1]; Tensor s0 = Subdivide.increasing(clipN0, dimN0 - 1); Tensor s1 = Subdivide.increasing(clipN1, dimN1 - 1); for (int i0 = 0; i0 < dimN0; ++i0) { Scalar value0 = s0.Get(i0); for (int i1 = 0; i1 < dimN1; ++i1) { Scalar value1 = s1.Get(i1); // find appropriate value // use approximative gradient descent Scalar mid = null; Scalar lower = clipNT.min(); Scalar upper = clipNT.max(); Scalar value = target == 0 ? value0 : value1; while (!chop.close(lower, upper)) { mid = lower.add(upper).multiply(HALF); Scalar midValue = target == 0 // ? function.apply(mid, value1) : function.apply(value0, mid); if (Scalars.lessThan(value, midValue)) upper = mid; else lower = mid; } table[i0][i1] = Objects.requireNonNull(mid); } } return new LookupTable2D(table, clipN0, clipN1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InsnLookupSwitch (InsnTarget defaultOp, int[] matchesOp,\n\t\t InsnTarget[] targetsOp, int offset) {\n super(opc_lookupswitch, offset);\n\n this.defaultOp = defaultOp; \n this.matchesOp = matchesOp;\n this.targetsOp = targetsOp;\n\n if (defaultOp == null || targetsOp == null || matchesOp == null ...
[ "0.59033114", "0.56376123", "0.5627766", "0.5301964", "0.5247834", "0.518899", "0.5049708", "0.5026915", "0.50225616", "0.501246", "0.50119054", "0.4998392", "0.4997547", "0.49625868", "0.49592507", "0.49481967", "0.49284002", "0.49272215", "0.4920052", "0.49169734", "0.48869...
0.59371537
0
delivers the extremal values along dimension 0
public Tensor getExtremalValues0(Scalar otherValue) { return Tensors.of( // lookup(clip0.min(), otherValue), // lookup(clip0.max(), otherValue)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "protected double[] getExtremes()\n {\n if (this.extremes != null)\n return this.extremes;\n\n if (this.tiles == null || tiles.size() == 0)\n return this.extreme...
[ "0.58931357", "0.57084084", "0.56960857", "0.55471176", "0.55227077", "0.5509835", "0.5450287", "0.5442257", "0.5358728", "0.53261757", "0.52569455", "0.5245837", "0.51976585", "0.51867735", "0.51854193", "0.517598", "0.51466405", "0.51278967", "0.5127561", "0.5111413", "0.51...
0.53539884
9
delivers the extremal values along dimension 1
public Tensor getExtremalValues1(Scalar otherValue) { return Tensors.of( // lookup(otherValue, clip1.min()), // lookup(otherValue, clip1.max())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "protected double[] getExtremes()\n {\n if (this.extremes != null)\n return this.extremes;\n\n ...
[ "0.59645075", "0.572256", "0.5715482", "0.55636597", "0.543804", "0.5432194", "0.5383399", "0.536592", "0.53598374", "0.53368187", "0.5310077", "0.52990884", "0.52591467", "0.52530396", "0.52363944", "0.5228126", "0.5176323", "0.5154355", "0.5148504", "0.5145275", "0.51041085...
0.5170596
17
Currently we won't have deleting account functionality So this method does not really matter In the future, should add some error handling based on delete
@DeleteMapping(path="/{id}") public ResponseEntity<Integer> deleteUserById(@PathVariable("id") Integer id) { es.deleteById(id); return new ResponseEntity<>(id, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean delete(Account account);", "@Test\n public void deleteAccount() {\n Account accountToBeDeleted = new Account(\"deleteMe\", \"deleteMe\", false,\n \"Fontys Stappegoor\", \"deleteme@trackandtrace.com\");\n accountQueries.addAccount(accountToBeDeleted);\n\n // Get ID o...
[ "0.7327448", "0.7214089", "0.7124681", "0.7093354", "0.69782776", "0.6949974", "0.6918323", "0.69010156", "0.6807026", "0.6776608", "0.6706686", "0.66904205", "0.6686057", "0.6674701", "0.66647303", "0.6632867", "0.66317815", "0.6615976", "0.6605626", "0.66016185", "0.6598522...
0.0
-1
takes in a vehicle and checks which implementation it is
public static void checkClass(Vehicle vehicle) { Class c = vehicle.getClass(); System.out.println(c.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void testVehicle() {\n\t\t\n\t}", "public boolean fitVehicle(Vehicle veh){\r\n // return true value if the vehicle fits\r\n // return statement\r\n return veh.canFitSpot(this) && isAvailable();\r\n }", "boolean collideWithVehicles(Vehicle v);", "public boolean canV...
[ "0.6568464", "0.6434776", "0.6407129", "0.63909286", "0.63004655", "0.62745404", "0.6253674", "0.61183095", "0.61183095", "0.6076287", "0.6044936", "0.6036204", "0.5990787", "0.5950989", "0.58620596", "0.5843902", "0.5801941", "0.5787508", "0.5780068", "0.57786095", "0.576618...
0.6476361
1
TODO Autogenerated method stub
@SuppressLint("HandlerLeak") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.intent_zhiwei_present); setupView(); resume_id = getIntent().getStringExtra("resume_id"); JianliParser parser = new JianliParser(this); parser.getIntentInfo(resume_id); receiver = new IntentReceiver(); IntentFilter filter = new IntentFilter(); filter.addAction(LessonApplication.GET_QIUZHI_INTENT_FROM_NET_SUCCESS); filter.addAction(LessonApplication.GET_QIUZHI_INTENT_FROM_NET_ERROR); registerReceiver(receiver, filter); progressDialog = ProgressDialog.show(this, "", "正在获取数据..."); progressDialog.dismiss(); mHandler = new Handler() { @Override public void handleMessage(Message msg) { int what = msg.what; if (1 == what) { Toast.makeText(QiuZhiPresentActivity.this, "获取信息成功", 2000).show(); } else if (2 == what) { Toast.makeText(QiuZhiPresentActivity.this, "获取信息失败", 2000).show(); } super.handleMessage(msg); } }; }
{ "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
Selection Sort Big O = O of n squared Quadratic time complexity This sort method is UNSTABLE
public static void main(String[] args) { int[] intArray = { 20, 35, -15, 7, 55, 1, -22}; System.out.println(Arrays.toString(selectionSort(intArray))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void selectionSort(int a[])\n {\n int n = a.length;\n for(int i = 0; i < n-1; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n if(a[i] > a[j])\n swap(a,i,j);\n }\n }\n }", "public static void Selectionsort(int a[]) ...
[ "0.7960087", "0.7743155", "0.76764596", "0.7583336", "0.7572143", "0.7526631", "0.7498305", "0.73918873", "0.7377391", "0.7338009", "0.7287538", "0.7239258", "0.7213534", "0.7122074", "0.7118176", "0.71096617", "0.7106982", "0.70985097", "0.70952106", "0.7083329", "0.7083329"...
0.0
-1
Notify consumer that we encountered the start of an array boundary
public abstract void notifyArrayStart();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void notifyArrayEnd();", "public abstract void startArray();", "@Override\r\n\tpublic void run() {\n\t\tsynchronized (arr) {\r\n\t\t\twhile (!arr.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Producer Waiting as array is full.\");\r\n\t\t\t\t\tarr.wait();\r\n\t\t\t\t} catch (I...
[ "0.6960815", "0.65807754", "0.58372337", "0.5619915", "0.56102836", "0.557432", "0.54146796", "0.53550375", "0.53490233", "0.5192887", "0.5141798", "0.51306635", "0.5128916", "0.51209646", "0.5091968", "0.50502187", "0.50473684", "0.5040388", "0.5034607", "0.50253075", "0.496...
0.811416
0
Notify consumer that we encountered the end of an array boundary
public abstract void notifyArrayEnd();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void notifyArrayStart();", "public abstract void endArray();", "public void notifyEnd() {\n\n\t}", "@Override\r\n\tpublic void run() {\n\t\tsynchronized (arr) {\r\n\t\t\twhile (!arr.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Producer Waiting as array is full.\");\r\n\t\t\...
[ "0.7007146", "0.6995566", "0.6056186", "0.6021374", "0.57168067", "0.56456095", "0.5565468", "0.5560236", "0.55212593", "0.5476348", "0.54385334", "0.53365153", "0.5330034", "0.5326968", "0.5319474", "0.5301167", "0.525587", "0.52326155", "0.51676154", "0.5166691", "0.5166290...
0.84587425
0
Notify consumer that we encountered an entity terminator (e.g.,) a comma
public abstract void notifyEntityEnd();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void handleComma() {\n\t\tif (isInClearText()) {\n\t\t\tsaveToken();\n\t\t}\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onNext(final String s) {\n\t\t\t\t\t\t\t\t\tif (s.contains(\"}\") && outJSVar.charAt(outJSVar.length()-2) == ',') {\n\t\t\t\t\t\t\t\t\t\toutJSVar.deleteCharAt(outJSVar...
[ "0.64983785", "0.54259217", "0.52726436", "0.52685386", "0.52516323", "0.52471715", "0.5226269", "0.51970196", "0.516194", "0.5100344", "0.5069852", "0.50438875", "0.5030848", "0.5018957", "0.50070953", "0.5000248", "0.49999774", "0.49757615", "0.49648345", "0.4958742", "0.49...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner s=new Scanner(System.in); String str=s.nextLine(); int count=0; char ch[]=str.toCharArray(); for(char c:ch) { count++; } System.out.println(count); }
{ "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
metodo para limitar a quantidade de carros no caminho max 1 por vez
public abstract void receberCarro(Carro carro);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getLimit();", "int getLimit();", "public double getLimit() {return limit;}", "Limit createLimit();", "public long limit();", "public void setMiterLimit(float limit);", "Limits limits();", "void setLimit(int limit);", "public int getLimit(){\r\n return limit;\r\n\r\n }", "public int ...
[ "0.7093867", "0.7093867", "0.66780597", "0.6651739", "0.6649021", "0.6364972", "0.63200265", "0.6253796", "0.62291116", "0.6205488", "0.61622304", "0.61622304", "0.61622304", "0.6150718", "0.6143232", "0.6116452", "0.6048429", "0.6033794", "0.60191816", "0.6012173", "0.600098...
0.0
-1
kittyFxn is our core function here
public static int kittyFxn(ArrayList<Integer> array, KittyNode root){ int sum = 0; int arr[] = new int[array.size()]; //convert arrayList to array for(int k=0; k<array.size(); k++){ arr[k] = array.get(k); } for(int i=0; i<arr.length; i++){ for(int j=i+1; j<arr.length; j++){ sum += arr[i]*arr[j]*distKittyNode(findKittyNode(arr[i],root),findKittyNode(arr[j],root)); } } return sum%((int)pow(10,9)+7); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JFXHelper() {}", "private void kk12() {\n\n\t}", "public static void main(String[] args){\n try {\n //wait to initialize toolkit\n final CountDownLatch latch = new CountDownLatch(1);\n SwingUtilities.invokeLater(() -> {\n new JFXPanel(); // initial...
[ "0.5847885", "0.56450975", "0.54748785", "0.5384144", "0.5360815", "0.53421545", "0.53177726", "0.523371", "0.52216756", "0.52107066", "0.52095956", "0.5158025", "0.5142695", "0.513185", "0.513185", "0.5111389", "0.5087022", "0.5077169", "0.50624406", "0.5008536", "0.5003501"...
0.0
-1
returns the distance between KittyNodes a and b
public static int distKittyNode(KittyNode a, KittyNode b){ KittyNode c = commAns(a,b); return a.lvl + b.lvl - 2*c.lvl;//since distance between 2 KittyNodes is the sum of the distances between lowest common KittyNode and the 2 KittyNodes }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double distanceBetween(Node a, Node b){\n // used to be its own function, now is implemented in the Node class\n return a.getDist(b);\n }", "public static double getDistance(Node a, Node b) {\n return Math.abs(a.getX() - b.getX()) + Math.abs(a.getY() - b.getY());\n }", "Intege...
[ "0.8096515", "0.7996235", "0.7817159", "0.72768986", "0.7217598", "0.7147819", "0.7092675", "0.70209384", "0.6868106", "0.67558956", "0.67123413", "0.6639771", "0.6622504", "0.6602831", "0.66011065", "0.659528", "0.6551299", "0.6542604", "0.64500475", "0.6408429", "0.636847",...
0.85822916
0
this returns the most recent common KittyNode between KittyNodes a and b
public static KittyNode commAns(KittyNode a, KittyNode b){ KittyNode trava,travb; trava = a; travb = b; if(trava == null) return travb; else if(travb == null) return trava; while(trava.prev != null || travb.prev != null){ if(trava.lvl == travb.lvl){ if(trava.prev == travb.prev) return trava.prev; trava = trava.prev; travb = travb.prev; } else if(trava.lvl > travb.lvl){ if(trava.prev == travb) return travb; trava = trava.prev; }else if(trava.lvl < travb.lvl){ if(trava == travb.prev) return trava; travb = travb.prev; } } if(trava != null) return trava; else return travb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node commonAncestor(Node one, Node two);", "@NativeType(\"hwloc_obj_t\")\n public static hwloc_obj hwloc_get_common_ancestor_obj(@NativeType(\"hwloc_topology_t\") long topology, @NativeType(\"hwloc_obj_t\") hwloc_obj obj1, @NativeType(\"hwloc_obj_t\") hwloc_obj obj2) {\n while (obj1.address() != obj2.a...
[ "0.6209166", "0.60935766", "0.6010139", "0.58662796", "0.58508205", "0.57167923", "0.56515473", "0.5634737", "0.5603082", "0.55985343", "0.55859053", "0.5493972", "0.5444727", "0.54149354", "0.5402839", "0.53883684", "0.5385917", "0.53736305", "0.5357219", "0.53469753", "0.53...
0.5666435
6
TransferReq req = new TransferReq(); req.setFinanceAmount(new BigDecimal("10000.00"));
public static void main3(String[] argv) throws IOException { TransferFormRequest apamaReq = new TransferFormRequest(); apamaReq.setFinanceAmount(new BigDecimal("10000.00")); String json2 = mapper.writeValueAsString(apamaReq); System.out.println(json2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPayAmt (BigDecimal PayAmt);", "public void transferMoney(float amount, String transferToNumber) {}", "public void setAmount( BigDecimal amount ) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\r\n this.amount = amount;\r\n }", "BigDecimal getAm...
[ "0.68214226", "0.6693695", "0.66618484", "0.6659032", "0.66061133", "0.6582625", "0.6582625", "0.6582625", "0.65507823", "0.6475532", "0.64565384", "0.6343729", "0.6338596", "0.63362575", "0.63190985", "0.630941", "0.63061893", "0.6301435", "0.6301353", "0.6273549", "0.626195...
0.58001924
98
/ The constructor calls a set method that accepts four sets of coordinates and verifies that each of these is in the first quadrant with no single x or ycoordinate larger than 20.0
private boolean setCoords(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) { // Ensure all x co-ordinates are in the first quadrant if(x1 < 0 || x2 < 0 || x3 < 0 || x4 < 0) { throw new IllegalArgumentException("Error: Non-negative numbers for the X co-ordinates only"); } else if(y1 < 0 || y2 < 0 || y3 < 0 || y4 < 0) { throw new IllegalArgumentException("Error: Non-negative numbers for the Y co-ordinates only"); } else if(x1 > 20 || x2 > 20 || x3 > 20 || x4 > 20) { throw new IllegalArgumentException("Error: X co-ordinate values cannot be greater than 20"); } else { return(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n PointSET set = new PointSET();\n assert set.isEmpty();\n assert set.size() == 0;\n\n set.insert(new Point2D(0.5, 0.5));\n set.insert(new Point2D(0.25, 0.5));\n set.insert(new Point2D(0.75, 0.5));\n set.insert(new Point2D(0....
[ "0.6292605", "0.6193834", "0.60074836", "0.5832831", "0.5826639", "0.5801359", "0.570679", "0.56714886", "0.56469893", "0.5638077", "0.5614418", "0.56049585", "0.56049585", "0.56049585", "0.55846506", "0.5567928", "0.5536493", "0.55256456", "0.5514808", "0.55094016", "0.55083...
0.71867245
0
/ Name: getLength Synopsis: Returns the length of the rectangle Description: The distance D between the points is given by the formula: D = sqrt(dx^2 + dy^2) Where dx is the difference of the x coordinates and dy is the difference in the y coordinates
public double getLength() { if (this.x2 >= this.x1) { if (this.y1 >= this.y2) { length = Math.sqrt(Math.pow((this.x2 - this.x1), 2) + Math.pow((this.y1 - this.y2), 2)); } else { length = Math.sqrt(Math.pow((this.x2 - this.x1), 2) + Math.pow((this.y2 - this.y1), 2)); } } else if(this.x2 < this.x1) { if (this.y1 < this.y2) { length = Math.sqrt(Math.pow((this.x1 - this.x2), 2) + Math.pow((this.y2 - this.y1), 2)); } else { length = Math.sqrt(Math.pow((this.x1 - this.x2), 2) + Math.pow((this.y2 - this.y1), 2)); } } return(length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getLength()\n {\n return Math.sqrt( Math.pow((x2-x1),2.0) + Math.pow((y2-y1),2.0) );\n }", "public double length()\n\t{\n\t\treturn Math.sqrt(x*x + y*y);\n\t}", "int getPointLength();", "public float length() {\r\n\t\treturn (float) Math.sqrt((x * x) + (y * y));\r\n\t}", "public final fl...
[ "0.78969324", "0.7634735", "0.75158155", "0.74121594", "0.7327961", "0.7315341", "0.7271457", "0.7167122", "0.71242577", "0.709278", "0.7089134", "0.7089134", "0.6998436", "0.6993607", "0.6958194", "0.69574594", "0.69314486", "0.6924592", "0.6884728", "0.6871866", "0.6864041"...
0.8048128
0
/ Name: getWidth Synopsis: Returns the width of the rectangle Description: The distance D between the points is given by the formula: D = sqrt(dx^2 + dy^2) Where dx is the difference of the x coordinates and dy is the difference in the y coordinates
public double getWidth() { if (this.x1 >= this.x3) { if (this.y1 >= this.y3) { width = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2)); } else { width = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2)); } } else if (this.x1 < this.x3) { if (this.y1 >= this.y3) { width = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2)); } else { width = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2)); } } return(width); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWidth() {\n return ((int) this.rectangle.getWidth());\n }", "public double getWidth();", "public double getWidth();", "double getWidth();", "double getWidth();", "public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / ...
[ "0.78674114", "0.7848042", "0.7848042", "0.7785875", "0.7785875", "0.7550524", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", "0.7468379", ...
0.7789744
3
/ Name: getPerimeter Synopsis: Returns the perimeter length of the rectangle Description: The perimeter distance is calculated as twice the width plus twice the length.
public double Perimeter() { return((getLength() * 2) + (getWidth() * 2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double perimeter()\n {\n double perimeter = (length * 2) + (width * 2);\n //System.out.println(perimeter);\n return perimeter;\n }", "public int perimeter()\n\t{\n\t\treturn 2*(length+width);\n\t}", "public int getPerimeter()\n {\n return 2 * (this.length + this.widt...
[ "0.8229083", "0.81376", "0.80848265", "0.8066315", "0.80637646", "0.80635726", "0.80635726", "0.804954", "0.8036247", "0.80078316", "0.8006084", "0.8006084", "0.8006084", "0.8006084", "0.7982169", "0.79626083", "0.79028255", "0.7872798", "0.7855705", "0.78148293", "0.7812572"...
0.8190802
1
/ Name: getArea Synopsis: Returns the area of the rectangle Description: The area A of a rectangle is given by the formula: A = L W Where L is the rectangle length and W is the width.
public double Area() { return(getLength() * getWidth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getArea();", "double getArea();", "public double getArea(){\n if (getHeight()<0 || getWidth()<0){\n System.out.println(\"Input Invalid\");\n return -1;\n }\n return (getWidth() * getHeight());\n }", "public double getArea();", "public double getArea();",...
[ "0.8115905", "0.8115905", "0.80791634", "0.7983243", "0.7983243", "0.7983243", "0.79298615", "0.7844744", "0.78222287", "0.7806043", "0.77410346", "0.77246165", "0.7722672", "0.77211994", "0.7710735", "0.7706403", "0.769876", "0.76904225", "0.76785886", "0.7677193", "0.767716...
0.75572574
33
/ Name: isSquare Synopsis: Tests if the coordinates are a square Description: Calls the getWidth() and getLength() methods and checks if they are equal. Returns true if equal and false otherwise.
public boolean isSquare() { if (getLength() == getWidth()) { return(true); } else { return(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSquare()\n {\n return width == height;\n }", "public boolean isSquare() {\n return (getRowDimension() == getColumnDimension());\n }", "@Test\r\n public void testIsValidSquare()\r\n {\r\n for(int y = 0; y < 8; y++)\r\n for(int x = 0; x < 8; x++)\r\n ...
[ "0.83521223", "0.76308703", "0.68357337", "0.6789196", "0.6675897", "0.64898545", "0.6470385", "0.6466013", "0.6452042", "0.644826", "0.63762057", "0.6335609", "0.63342965", "0.6328263", "0.63170695", "0.6231079", "0.6190272", "0.61362976", "0.61294955", "0.6079182", "0.60597...
0.8451967
0
Attempts to change the current activity to the JsonListActivity and logs the event. Called when the 'START' button is pressed from this MainActivity.
private void loadJsonAcitivty() { // log the event Log.i(this.getClass().getSimpleName(), "changing activity to JSON list activity"); // start new intent to change activity to JSON list activity Intent intent = new Intent(this, JsonListActivity.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n Intent i = new Intent(ActivityTestStart.this, ActivityTestList.class);\n startActivity(i);\n finish();\n }", "@Override\n public void...
[ "0.6107658", "0.6101911", "0.59097105", "0.57473224", "0.57405394", "0.5697574", "0.5680389", "0.56727237", "0.56520855", "0.56199694", "0.5569926", "0.5561561", "0.5550283", "0.5538809", "0.5516636", "0.5516119", "0.55091757", "0.5506951", "0.548294", "0.54777473", "0.546303...
0.7222717
0
Defaults to the "basic" animation set.
public FrameAnimator(String location) { this(location, "basic"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }", "protected AnimationSuite() {\n loop ...
[ "0.6965204", "0.6733234", "0.6562643", "0.6498122", "0.6332067", "0.632029", "0.6314115", "0.63005626", "0.6299707", "0.628838", "0.6283546", "0.6243741", "0.61305314", "0.6127479", "0.6115773", "0.6110773", "0.61094", "0.61064464", "0.61025906", "0.6077152", "0.602927", "0...
0.0
-1
Takes an argument for the location of the animation sets and the interval for changing frames.
public FrameAnimator(String location, int interval) { this(location, "basic", interval); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FrameAnimator(String location, String startingSet, int interval)\n\t{\n\t\tthis.location = location;\n\t\tsetAnimationSet(startingSet);\n\t\tsetInterval(interval);\n\t\tsetFrame(1);\n\t\tsetCenterOverCoords(true);\n\t\tsetImageSize(SpecialDimension.ORIGINAL, SpecialDimension.ORIGINAL);\n\t}", "public abst...
[ "0.69783837", "0.6873812", "0.63435096", "0.62090594", "0.6114918", "0.597283", "0.59562653", "0.58703995", "0.5845026", "0.5824276", "0.58145845", "0.58027333", "0.58027333", "0.5777804", "0.5775604", "0.5730484", "0.5726719", "0.5726719", "0.57095414", "0.5706953", "0.56881...
0.63560265
2
Set an initial animation set other than the default "basic".
public FrameAnimator(String location, String startingSet) { this(location, startingSet, 50); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setInitialAnim()\n {\n \n \n if(level.playerFacing == Direction.LEFT)\n {\t\n \tcurrentAnim = leftWalk;\n }\n else\n {\n \tcurrentAnim = rightWalk;\n }\n \n Image i = currentAnim.getCurrentFrame();\n width = i....
[ "0.70429194", "0.698376", "0.6801088", "0.6629414", "0.66023546", "0.6428557", "0.6391956", "0.63919425", "0.6268979", "0.6268627", "0.62634397", "0.62436414", "0.6241308", "0.6229067", "0.6197311", "0.61596125", "0.6156867", "0.6127072", "0.609201", "0.60809827", "0.60528797...
0.58938694
38
Set an initial animation set other than the default "basic".
public FrameAnimator(String location, String startingSet, int interval) { this.location = location; setAnimationSet(startingSet); setInterval(interval); setFrame(1); setCenterOverCoords(true); setImageSize(SpecialDimension.ORIGINAL, SpecialDimension.ORIGINAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setInitialAnim()\n {\n \n \n if(level.playerFacing == Direction.LEFT)\n {\t\n \tcurrentAnim = leftWalk;\n }\n else\n {\n \tcurrentAnim = rightWalk;\n }\n \n Image i = currentAnim.getCurrentFrame();\n width = i....
[ "0.70429194", "0.698376", "0.6801088", "0.6629414", "0.66023546", "0.6428557", "0.6391956", "0.63919425", "0.6268979", "0.6268627", "0.62634397", "0.62436414", "0.6241308", "0.6229067", "0.6197311", "0.61596125", "0.6156867", "0.6127072", "0.609201", "0.60809827", "0.60528797...
0.5522696
98
Render the current frame of this animation at the specified coordinates.
@Override public void renderAnimation(RenderEvent event, int x, int y) { // Update the current frame selectFrame(); if (isFinished) { return; } // Get the actual image BufferedImage img = GraphicsManager.getResManager().getRes(currFramePath); int imgWidth = this.imgWidth; int imgHeight = this.imgHeight; // Width needs to be scaled if (specialWidth == SpecialDimension.SCALE) { // Use both original image dimensions if (specialHeight == SpecialDimension.SCALE || specialHeight == SpecialDimension.ORIGINAL) { imgWidth = img.getWidth(); imgHeight = img.getHeight(); } // Scale only the width else { imgWidth = imgHeight * img.getWidth() / img.getHeight(); } } // Height needs to be scaled else if (specialHeight == SpecialDimension.SCALE) { // Use both original image dimensions if (specialWidth == SpecialDimension.ORIGINAL) { imgWidth = img.getWidth(); imgHeight = img.getHeight(); } // Scale only the height else { imgHeight = imgWidth * img.getHeight() / img.getWidth(); } } // Use the original image width else if (specialWidth == SpecialDimension.ORIGINAL) { imgWidth = img.getWidth(); // Use the original image height if (specialHeight == SpecialDimension.ORIGINAL) { imgHeight = img.getHeight(); } } // Use the original image height else if (specialHeight == SpecialDimension.ORIGINAL) { imgHeight = img.getHeight(); } // System.out.print("Original Width:"); // System.out.print(img.getWidth()); // System.out.print(", Original Height:"); // System.out.println(img.getHeight()); // // Print special stuff // System.out.print("Spec. Width:" + specialWidth.toString()); // System.out.println(", Spec. Height:" + specialHeight.toString()); // // Print calculated dims // System.out.print("Width:"); // System.out.print(imgWidth); // System.out.print(", Height:"); // System.out.println(imgHeight); // Reset back to actual image size for testing imgWidth = img.getWidth(); imgHeight = img.getHeight(); // Draw the current frame if (centerOverCoords) { ImageDrawer.drawGraphic( event.getGC(), img, x-imgWidth/2, y-imgHeight/2, imgWidth, imgHeight ); } else { ImageDrawer.drawGraphic( event.getGC(), img, x, y, imgWidth, imgHeight ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentT...
[ "0.6469769", "0.6392682", "0.6326687", "0.6310636", "0.62256145", "0.61301535", "0.61301535", "0.6093116", "0.604508", "0.5996294", "0.5980485", "0.59788835", "0.5943558", "0.5858216", "0.584428", "0.583908", "0.5831802", "0.58168626", "0.57761616", "0.57447547", "0.5727315",...
0.5957132
12
Changes the animation set to use for this animator. An "animator set" is a set of frames of an animation in a subfolder of where all the animation's frames are stored. For example you might have separate animation sets for when a character is walking verses when it is jumping.
public void setAnimationSet(String setName) { currentSet = setName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setAnim(int nextIn, int nextOut, int quitIn, int quitOut) {\n if (manager != null) {\n manager.setAnim(nextIn, nextOut, quitIn, quitOut);\n }\n }", "public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureR...
[ "0.65640444", "0.6196752", "0.6181436", "0.6121423", "0.6058004", "0.6037454", "0.599678", "0.59395146", "0.5864254", "0.5774823", "0.5692037", "0.5668091", "0.5655064", "0.5571469", "0.55631196", "0.5546703", "0.5430263", "0.5382398", "0.5358297", "0.53135616", "0.5305368", ...
0.75369895
0
Set how many milliseconds should elapse between each animation frame.
public void setInterval(int interval) { this.interval = (long) interval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnimationFrameTime(int milis) {\r\n animationFrameTime = milis; \r\n timer = new Timer(animationFrameTime, this);\r\n }", "public void setVideoJittcomp(int milliseconds);", "public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}", "pr...
[ "0.75650024", "0.65383613", "0.6529066", "0.65107846", "0.64775234", "0.6462777", "0.6438595", "0.64078707", "0.63942796", "0.63829285", "0.6329051", "0.62541145", "0.6253264", "0.6228003", "0.6207541", "0.61952984", "0.6159211", "0.61542803", "0.61138487", "0.60309064", "0.6...
0.0
-1
Set the dimensions at which to draw the animation images. FrameAnimator contains several constants for special dimension situations such as scaling a dimension to maintain the original aspect ratio.
public void setImageSize(int width, int height) { setImageWidth(width); setImageHeight(height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDimension(double width, double height);", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCA...
[ "0.63795877", "0.63098437", "0.61273265", "0.60679513", "0.60322785", "0.5944193", "0.5857081", "0.5844987", "0.58022636", "0.57951516", "0.574089", "0.5710026", "0.5638474", "0.5632429", "0.56080806", "0.55228555", "0.54833454", "0.5480517", "0.5479911", "0.5394108", "0.5373...
0.0
-1
Set the dimensions at which to draw the animation images. FrameAnimator contains several constants for special dimension situations such as scaling a dimension to maintain the original aspect ratio.
public void setImageSize(SpecialDimension width, SpecialDimension height) { setImageWidth(width); setImageHeight(height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDimension(double width, double height);", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCA...
[ "0.63809043", "0.6311605", "0.61277056", "0.60681164", "0.6033387", "0.5943218", "0.5858336", "0.5845382", "0.5804981", "0.5795528", "0.5741222", "0.5711347", "0.56396884", "0.5634733", "0.560918", "0.55235696", "0.54837817", "0.54829985", "0.5481677", "0.5396932", "0.5374082...
0.49232525
88
Set the dimensions at which to draw the animation images. FrameAnimator contains several constants for special dimension situations such as scaling a dimension to maintain the original aspect ratio.
public void setImageSize(int width, SpecialDimension height) { setImageWidth(width); setImageHeight(height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDimension(double width, double height);", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCA...
[ "0.63795877", "0.63098437", "0.61273265", "0.60679513", "0.60322785", "0.5944193", "0.5857081", "0.5844987", "0.58022636", "0.57951516", "0.574089", "0.5710026", "0.5638474", "0.5632429", "0.56080806", "0.55228555", "0.54833454", "0.5480517", "0.5479911", "0.5394108", "0.5373...
0.49017116
91
Set the dimensions at which to draw the animation images. FrameAnimator contains several constants for special dimension situations such as scaling a dimension to maintain the original aspect ratio.
public void setImageSize(SpecialDimension width, int height) { setImageWidth(width); setImageHeight(height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDimension(double width, double height);", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCA...
[ "0.6379075", "0.63100815", "0.6126416", "0.6068157", "0.6031644", "0.5943106", "0.58563083", "0.5843597", "0.58028346", "0.5793788", "0.57415366", "0.57107204", "0.56377596", "0.5631922", "0.5606852", "0.5521322", "0.5481873", "0.5480381", "0.54803735", "0.5393343", "0.537238...
0.48991054
93
Get the width that this animation will draw its images with. Note that any special dimension settings other than NONE will override this value.
public int getImageWidth() { return imgWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "public int getWidth() {\n return (int) Math.round(width);\n }", "public int width() {\n return picture().width();\n }", "public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, ...
[ "0.753279", "0.75076264", "0.74914086", "0.7478333", "0.74307096", "0.73786217", "0.73786217", "0.7371869", "0.73597145", "0.735241", "0.7345786", "0.73429227", "0.73429155", "0.7341085", "0.7332242", "0.7325518", "0.732334", "0.7305526", "0.7297555", "0.7288714", "0.7288714"...
0.0
-1
Get the current special dimension adjustment being applied to the width.
public SpecialDimension getSpecialWidth() { return specialWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getExtraWidth(int specifiedWidth);", "public double getWxInc() { return extents.getWidth() /getMyWidth(); }", "Integer getCurrentWidth();", "double getOldWidth();", "public abstract double getBaseWidth();", "public double getPrefWidth() { return getPrefWidth(-1); }", ...
[ "0.66000414", "0.65386605", "0.6471212", "0.6462048", "0.64179665", "0.6397436", "0.6345771", "0.6335583", "0.6233", "0.6204762", "0.6128417", "0.6113551", "0.61039317", "0.6041988", "0.60333234", "0.6004619", "0.59987575", "0.59987575", "0.5992876", "0.5989867", "0.5988003",...
0.7224351
0
Get the height that this animation will draw its images with. Note that any special dimension settings other than NONE will override this value.
public int getImageHeight() { return imgHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int height() {\n return picture().height();\n }", "public int getHeight() {\n\t\treturn canvasHeight;\n\t}", "public int height() {\n return picture.height();\n }", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "...
[ "0.7600407", "0.75137275", "0.7469964", "0.74272215", "0.74272215", "0.74272215", "0.74272215", "0.74272215", "0.74272215", "0.7424503", "0.7411878", "0.74111265", "0.74111265", "0.7408664", "0.7404487", "0.7366862", "0.73644567", "0.7362959", "0.7358246", "0.7338377", "0.732...
0.71929777
87
Get the current special dimension adjustment being applied to the height.
public SpecialDimension getSpecialHeight() { return specialHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBaseHeight();", "public double getWyInc() { return extents.getHeight() /getMyHeight(); }", "int getCurrentDimension() {\n if (!playerExists())\n return lastdim;\n return game.h.m;\n }", "public abstract double getBaseHeight();", "public static doub...
[ "0.6486379", "0.6394603", "0.63292843", "0.6313441", "0.6307115", "0.6307115", "0.6307115", "0.6307115", "0.62970203", "0.62942064", "0.6202959", "0.61883813", "0.61871946", "0.61736774", "0.61374545", "0.61078495", "0.6052144", "0.6049051", "0.6035234", "0.6035234", "0.60256...
0.73000133
0
Set the width to draw the animation images. FrameAnimator contains several constants for special dimension values. Negative dimension values could cause undesired widths.
public void setImageWidth(int width) { specialWidth = SpecialDimension.NONE; imgWidth = width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setWidth(int width);", "void setWidth(int width);", "public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }", "public void changeFrameWidth(int frameWidth) {\r\n ViewGroup.LayoutParams params = gameFram...
[ "0.6740416", "0.6740416", "0.6660559", "0.6629388", "0.6565771", "0.65020597", "0.64937824", "0.6486939", "0.647821", "0.63853914", "0.6355825", "0.63439465", "0.6325295", "0.6325184", "0.6319932", "0.6313861", "0.6294934", "0.6290923", "0.62826705", "0.62573147", "0.6244724"...
0.5913604
43
Set the height to draw the animation images. FrameAnimator contains several constants for special dimension values. Negative dimension values could cause undesired heights.
public void setImageHeight(int height) { specialHeight = SpecialDimension.NONE; imgHeight = height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int height);", "public void setHeight(int height);", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "void setHeight(VariableAmount height);", "public void setHeight(int newValue)\n {\n he...
[ "0.69049984", "0.69049984", "0.68187255", "0.6803192", "0.6803192", "0.6683313", "0.6545516", "0.65425026", "0.6388067", "0.6378664", "0.63688666", "0.63637364", "0.63065916", "0.62761563", "0.62750804", "0.6241699", "0.62380165", "0.62206936", "0.61828643", "0.6176668", "0.6...
0.59078896
43
Check if this frame animator is currently centering its images over the coordinates specified for drawing the animation.
public boolean isCenteringOverCoords() { return centerOverCoords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCenteringEnabled() {\r\n return isCenteringX() && isCenteringY();\r\n }", "private void checkBoundaries() {\n Position moveTo = pos.copy();\n boolean move = false;\n float minZoom = getZoomToFit();\n float maxZoom = minZoom * 3;\n if (maxZoom < getZoo...
[ "0.6154552", "0.6141145", "0.60461426", "0.6017034", "0.5910212", "0.5910212", "0.584314", "0.58288205", "0.5817897", "0.5754672", "0.57387215", "0.5708096", "0.57050383", "0.5690568", "0.5633286", "0.555244", "0.5421267", "0.5401056", "0.538719", "0.53533506", "0.53388405", ...
0.6884773
0
Set if this animation should center its images over the coodinates specified when rendering, or just draw the image with the specified coordinates as the upper left corner.
public void setCenterOverCoords(boolean doCenter) { centerOverCoords = doCenter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawImageCentered(float x, float y, float width, float height);", "public void render() { image.drawFromTopLeft(getX(), getY()); }", "void setCenter() {\n\t\tLine line02 = new Line(myParent, new PVector(), new PVector());\n\t\tLine line13 = new Line(myParent, new PVector(), new PVector());\n\t\tlin...
[ "0.64782965", "0.5967591", "0.5920543", "0.59178525", "0.59114987", "0.55717015", "0.55313045", "0.5525918", "0.54709464", "0.5428982", "0.5271492", "0.5269964", "0.5233358", "0.5220366", "0.5216929", "0.5210151", "0.5179757", "0.5159084", "0.51260996", "0.51024663", "0.51011...
0.64804155
0
Gets the integer value for the current frame.
public int getFrame() { return currFrame; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }", "public int value() {\r\n\t\treturn value;\r\n\t}", "public int intValue() {\n return value;\n }", "public int intValue( )\n {\n return value;\n }", "public int getInt(){\n return n...
[ "0.745868", "0.721191", "0.7114543", "0.71038175", "0.7091408", "0.7074057", "0.7056011", "0.70507336", "0.7042733", "0.7042733", "0.7042733", "0.7042733", "0.7042733", "0.7042733", "0.7042733", "0.7042733", "0.70186114", "0.70186114", "0.70186114", "0.70186114", "0.7017449",...
0.7011373
28
Set what frame number should render next. This updates on its own, so no need to worry about it unless you want to adjust the current animation (e.g. reset back to 1 when you change animation sets). Note that the first frame is 1, not 0.
public void setFrame(int frame) { isFinished = false; currFrame = frame; frameStart = (long) Game.getTimeMilli(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCurrentFrame(int frameNum) {\n this.currFrame = frameNum;\n }", "public void incrementFrameNumber()\n {\n\tframeNumber++;\n }", "public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }"...
[ "0.75710183", "0.71513677", "0.70819616", "0.7041806", "0.6742207", "0.6628145", "0.661951", "0.6583353", "0.65319276", "0.6510935", "0.64385915", "0.6407488", "0.6376892", "0.6278527", "0.62586135", "0.62418705", "0.62094724", "0.61600065", "0.61476773", "0.60616714", "0.605...
0.699412
4
Selects and updates what the next rendered frame is.
private void selectFrame() { // Increment the animation frame if ((long) Game.getTimeMilli() - frameStart >= interval) { setFrame(currFrame+1); } // Get the path to the current frame's image setFramePath(); // If the image frame doesn't exist... if (!GraphicsManager.getResManager().resExists(currFramePath)) { if (isLooping()) { setFrame(1); setFramePath(); } else { isFinished = true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=til...
[ "0.68758404", "0.6832613", "0.6689678", "0.66386586", "0.64855915", "0.64176583", "0.6415111", "0.6409733", "0.63996506", "0.63607574", "0.62416345", "0.6235076", "0.6093337", "0.6075667", "0.6072435", "0.6058181", "0.6032911", "0.5982471", "0.5972557", "0.59542346", "0.59391...
0.74077076
0
Sets the string representing the relative path to the image file of the current frame.
private void setFramePath() { currFramePath = location + "/" + currentSet + "/" + "frame" + Integer.toString(currFrame) + ".png"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setImagePath(String path);", "abstract public void setImageResourcesDir(String path);", "public void setStaticPicture(String path);", "@Override\r\n protected void setPath() {\r\n filePath = CARD_PATH;\r\n }", "public void setImage(String path) {\n\t\tthis.path = path;\n\t\tgetImage().set(new Ima...
[ "0.6308888", "0.6246263", "0.6208833", "0.6123576", "0.6076778", "0.5940791", "0.591398", "0.5911427", "0.5898804", "0.5897962", "0.58787316", "0.5867862", "0.58572286", "0.58531296", "0.5833648", "0.58303726", "0.5822249", "0.580635", "0.5796693", "0.5768506", "0.57482105", ...
0.7763213
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904669", "0.78062934", "0.77666116", "0.7727495", "0.7631956", "0.7622029", "0.75855523", "0.7530999", "0.7488249", "0.74583405", "0.74583405", "0.74391454", "0.742199", "0.7403733", "0.73921114", "0.7387281", "0.73795027", "0.73708874", "0.7363864", "0.7356251", "0.73459...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_camera) { // Handle the camera action } else if (id == R.id.nav_gallery) { } else if (id == R.id.nav_slideshow) { } else if (id == R.id.nav_manage) { } else if (id == R.id.nav_share) { } else if (id == R.id.nav_send) { } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
Class constructor that creates a boss enemy at the specified coordinates, boss enemies have default properties of a velocity with a total magnitude of 6, a radius of 40, 20 lives and a shootProbability with a range of 100.
public BossEnemy(double xCoord, double yCoord){ super(xCoord, yCoord, 0, 0, 40, 20, 100); velocity = 6; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestEnemy(Vector2 spawnPoint) {\n super(spawnPoint);\n this.health = MAX_HEALTH;\n this.speed = MAX_SPEED;\n this.damage = DAMAGE;\n this.moneyOnKill = MONEY_ON_KILL;\n this.bounds = new Circle(spawnPoint, RADIUS);\n this.ai = new RunnerAi(this);\n }", "...
[ "0.69866395", "0.6980607", "0.6398396", "0.635149", "0.63418555", "0.6322323", "0.628126", "0.6274031", "0.6267965", "0.62421155", "0.61602914", "0.6133119", "0.6119484", "0.6103475", "0.6090946", "0.6083652", "0.6064504", "0.6020253", "0.6009866", "0.59981406", "0.5971047", ...
0.7232893
0
Generates the next random direction that the boss enemy will move in, and changes the xvelocity, and yvelocity accordingly
public void randomWalk(){ int newAngle = (int) ( (double) Math.random() * 360) ; super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180)); super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t\tySpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t}", "private void rngDirection() {\r\n Random direction = new Random();\r\n float rngX = (direction.nextFloat() -0.5f) *2;\r\n ...
[ "0.7565708", "0.6938194", "0.6886998", "0.6875894", "0.6779405", "0.6651199", "0.6599042", "0.65706635", "0.6457506", "0.6404012", "0.6383318", "0.63463485", "0.6319069", "0.6295633", "0.6267539", "0.6262188", "0.6248536", "0.6243467", "0.62159526", "0.6206612", "0.6198108", ...
0.6919287
2
Updates the movement of the boss enemy on the canvas, if the next coordinate of the boss enemy is outside the bounds of the specified boundaries of the boss enemies movement, invert the velocity of the boss enemy in that direction.
public void move(){ double newXCoord = super.xCoord + super.xVelocity; double newYCoord = super.yCoord + super.yVelocity; if( (newXCoord - super.radius) <= -MAX_X_COORD || (newXCoord + super.radius) >= MAX_X_COORD){ super.xVelocity = -super.xVelocity; } if( (newYCoord - super.radius) <= MIN_Y_COORD || (newYCoord + super.radius) >= MAX_Y_COORD){ super.yVelocity = -super.yVelocity; } super.xCoord = super.xCoord + super.xVelocity; super.yCoord = super.yCoord + super.yVelocity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(){\n if (bossMoveTime > 10){\n if(random(0,16) <= 8){\n dir = 1;\n }else{\n dir = -1;\n }\n velX *= dir;\n bossMoveTime = 0;\n }\n posY *= 0.8f;\n posX += velX;\n posY += velY;...
[ "0.6217405", "0.603381", "0.6030876", "0.5940749", "0.5891319", "0.5882963", "0.5856945", "0.5827868", "0.5798362", "0.573174", "0.56912875", "0.5657578", "0.56494445", "0.5606434", "0.55994123", "0.55960786", "0.5593081", "0.55463725", "0.5535609", "0.55013514", "0.549885", ...
0.0
-1
A method that renders the boss enemy at a specific coordinate point on the canvas using the picture method of StdDraw, the width and height of the sprite to be drawn is specified as the diameter of the sprite, and the if the boss enemy's lives are halfway depleted then change the colour of the sprite.
public void render(){ if(getLives() >= 10){ StdDraw.picture(super.xCoord,super.yCoord,"EnemyPurple.png",super.radius*2,super.radius*2); } if(getLives() < 10){ StdDraw.picture(super.xCoord,super.yCoord,"EnemyPink.png",super.radius*2,super.radius*2); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\r\n\r\n if (this.z == 2) {\r\n //--- Shooting//---\r\n for (Enemy e: this.td.getEnemies()) {\r\n if (e.getX() < this.x + this.size / 2\r\n && e.getX() + e.getSize() > this.x - this.size / 2) {\r\n if (e.getY() < t...
[ "0.65022326", "0.6259464", "0.6158035", "0.6050333", "0.5972549", "0.5968187", "0.58703965", "0.5863077", "0.58591604", "0.58509314", "0.5849269", "0.5845409", "0.5838936", "0.5823929", "0.58227354", "0.5799625", "0.5790784", "0.5786662", "0.57818687", "0.5778276", "0.5760692...
0.67386603
0
Not in correct order of R data.table, this.featureNames has to be used for that
protected Variable[] getVariablesArray(Car carPreviousDay, Car car, int lastDay, int currentDay) { // Reconstruct data.table of R int lastWDay = lastDay % 7; int currentWDay = currentDay % 7; ArrayList<Variable> result = new ArrayList<>(); Variable[] variables = new Variable[] { new Variable("lastKnownArrivalSoC", false, carPreviousDay.getCurrentCapacity() / carPreviousDay.getMaxCapacity()), new Variable("lastKnownArrivalAbsSoC", false, carPreviousDay.getCurrentCapacity()), new Variable("lastKnownDepartureSoC", false, (carPreviousDay.getChargedCapacity()+carPreviousDay.getCurrentCapacity()) / carPreviousDay.getMaxCapacity()), new Variable("lastKnownDepartureAbsSoC", false, (carPreviousDay.getChargedCapacity()+carPreviousDay.getCurrentCapacity())), new Variable("nWorkdaysBetween", true, 1), new Variable("nDaysBetween", true, lastDay-currentDay), new Variable("isLastWDay0", true, (lastWDay==0) ? 1 : 0), new Variable("isLastWDay1", true, (lastWDay==1) ? 1 : 0), new Variable("isLastWDay2", true, (lastWDay==2) ? 1 : 0), new Variable("isLastWDay3", true, (lastWDay==3) ? 1 : 0), new Variable("isLastWDay4", true, (lastWDay==4) ? 1 : 0), new Variable("isCurrentWDay0", true, (currentWDay==0) ? 1 : 0), new Variable("isCurrentWDay1", true, (currentWDay==1) ? 1 : 0), new Variable("isCurrentWDay2", true, (currentWDay==2) ? 1 : 0), new Variable("isCurrentWDay3", true, (currentWDay==3) ? 1 : 0), new Variable("isCurrentWDay4", true, (currentWDay==4) ? 1 : 0), new Variable("isCarTypeBEV", true, (car.isBEV()) ? 1 : 0), new Variable("isCarTypePHEV", true, (car.isPHEV()) ? 1 : 0), new Variable("carMaxCapacity", false, car.getMaxCapacity()) }; for (Variable v : variables) result.add(v); // Car model names need some preprocessing for (CarModel carModel : CarModel.values()) { String carModelName = carModel.modelName.replaceAll(" ", "_"); int value = (car.getModelName().replaceAll(" ", "_").equals(carModelName)) ? 1 : 0; result.add(new Variable("isCarModelName" + carModelName, true, value)); } return result.toArray(new Variable[result.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DefaultFeatureTable() {\n }", "private StringBuffer tableToGML(Table table, ParameterList pl,\r\n StringBuffer gml) throws Exception {\r\n Debug.debugMethodBegin( this, \"tableToGML\" );\r\n \r\n HashMap propNameCache = new HashMap();\r\n...
[ "0.5592264", "0.5566519", "0.5527181", "0.53891486", "0.5300598", "0.52819246", "0.51636547", "0.51312196", "0.51081634", "0.51056725", "0.5094894", "0.5064308", "0.50399226", "0.503032", "0.5001041", "0.4993156", "0.49775985", "0.49518374", "0.49460647", "0.4943983", "0.4916...
0.0
-1