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
Sets the value of the iznos property.
public void setIznos(double value) { this.iznos = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIzq(int izq) {\r\n\t\tthis.izq = izq;\r\n\t}", "public double getIznos() {\n return iznos;\n }", "public void setIzquierdo(Nodo<T> izquierdo) {\n\t\tthis.izquierdo = izquierdo;\n\t}", "public void setNodoIzquierdo(Nodo nodo){\n izq = nodo;\n }", "private void setNumeros(Set<Int...
[ "0.66908383", "0.66216683", "0.6211611", "0.61193293", "0.606355", "0.59644365", "0.5682133", "0.5493766", "0.5434963", "0.5392054", "0.5358928", "0.53332853", "0.5278543", "0.52514505", "0.525084", "0.5241773", "0.523269", "0.5229975", "0.52269", "0.5215288", "0.5200263", ...
0.70203996
0
Gets the value of the ulaz property.
public boolean isUlaz() { return ulaz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getLA() {\n return la;\n }", "public long getLUC() {\r\n/* 180 */ return this._LUC;\r\n/* */ }", "java.lang.String getUa();", "public int getLac() {\n return lac_;\n }", "public int getLac() {\n return lac_;\n }", "public Float getHsupaUlTraff() {\n ...
[ "0.6275003", "0.62729746", "0.58803487", "0.5866642", "0.5855324", "0.57430273", "0.56333417", "0.56261563", "0.5605274", "0.5586499", "0.5580915", "0.55746824", "0.55616075", "0.55502194", "0.55421555", "0.55417883", "0.55417883", "0.5532531", "0.5517658", "0.5508258", "0.54...
0.68937045
0
Sets the value of the ulaz property.
public void setUlaz(boolean value) { this.ulaz = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLUC(long LUC) {\r\n/* 394 */ this._LUC = LUC;\r\n/* 395 */ this._has_LUC = true;\r\n/* */ }", "public boolean isUlaz() {\n return ulaz;\n }", "public void setLA(long value) {\n this.la = value;\n }", "public Builder setExplicitLac(com.google.protobuf.ByteStrin...
[ "0.637977", "0.62802774", "0.6236746", "0.57027984", "0.55034304", "0.5446279", "0.5367489", "0.53632635", "0.52625716", "0.52144724", "0.5205423", "0.5182648", "0.5165745", "0.51027846", "0.50929374", "0.5074975", "0.50574255", "0.5046482", "0.49925292", "0.49803057", "0.497...
0.6964524
0
TODO Autogenerated method stub
public static void main(String[] args) { one obj = new one(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table storage
int deleteByPrimaryKey(StorageKey key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.59743357", "0.59551793", "0.5953946", "0.5948315", "0.5815608", "0.57866806", "0.5743492", "0.57434845", "0.57413363", "0.57276547", "0.57164264", "0.5698415", "0.5684695", "0.56742334", "0.5673265", "0.5657313", "0.56537586", "0.56467736", "0.5635891", "0.5632242", "0.562...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table storage
int insert(Storage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.59743357", "0.59551793", "0.5953946", "0.5948315", "0.5815608", "0.57866806", "0.5743492", "0.57434845", "0.57413363", "0.57276547", "0.57164264", "0.5698415", "0.5684695", "0.56742334", "0.5673265", "0.5657313", "0.56537586", "0.56467736", "0.5635891", "0.5632242", "0.562...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table storage
int insertSelective(Storage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.59743357", "0.59551793", "0.5953946", "0.5948315", "0.5815608", "0.57866806", "0.5743492", "0.57434845", "0.57413363", "0.57276547", "0.57164264", "0.5698415", "0.5684695", "0.56742334", "0.5673265", "0.5657313", "0.56537586", "0.56467736", "0.5635891", "0.5632242", "0.562...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table storage
Storage selectByPrimaryKey(StorageKey key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.59743357", "0.59551793", "0.5953946", "0.5948315", "0.5815608", "0.57866806", "0.5743492", "0.57434845", "0.57413363", "0.57276547", "0.57164264", "0.5698415", "0.5684695", "0.56742334", "0.5673265", "0.5657313", "0.56537586", "0.56467736", "0.5635891", "0.5632242", "0.562...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table storage
int updateByPrimaryKeySelective(Storage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.59743357", "0.59551793", "0.5953946", "0.5948315", "0.5815608", "0.57866806", "0.5743492", "0.57434845", "0.57413363", "0.57276547", "0.57164264", "0.5698415", "0.5684695", "0.56742334", "0.5673265", "0.5657313", "0.56537586", "0.56467736", "0.5635891", "0.5632242", "0.562...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table storage
int updateByPrimaryKey(Storage record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.59743357", "0.59551793", "0.5953946", "0.5948315", "0.5815608", "0.57866806", "0.5743492", "0.57434845", "0.57413363", "0.57276547", "0.57164264", "0.5698415", "0.5684695", "0.56742334", "0.5673265", "0.5657313", "0.56537586", "0.56467736", "0.5635891", "0.5632242", "0.562...
0.0
-1
year do boundschecking to ensure object represents a valid date
public Group3Date(int month, int day, int year) { if (!isValid(month, day, year)) throw new Error("Invalid date"); this.month = month; this.day = day; this.year = year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectYear() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/1700\");\r\n }", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTes...
[ "0.760386", "0.7338926", "0.7122767", "0.6922692", "0.6898001", "0.67690134", "0.67298055", "0.6698588", "0.6673798", "0.6620741", "0.6613436", "0.65736496", "0.6572506", "0.6559963", "0.65229964", "0.65028095", "0.6479585", "0.6477804", "0.63891596", "0.625916", "0.6223474",...
0.0
-1
create new data by parsing from string of the form mm/dd/yy
public Group3Date(String date) { String[] fields = date.split("/"); if (fields.length != 3) { throw new Error("Date parse error"); } month = Integer.parseInt(fields[0]); day = Integer.parseInt(fields[1]); year = Integer.parseInt(fields[2]); if (!isValid(month, day, year)) throw new Error("In...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear...
[ "0.7173364", "0.68032086", "0.67664534", "0.6730712", "0.6650112", "0.6556935", "0.65096825", "0.6496426", "0.6458763", "0.6445693", "0.6424927", "0.6413139", "0.63754636", "0.63661504", "0.6354472", "0.6351842", "0.6322777", "0.63050836", "0.6254353", "0.6241144", "0.6192071...
0.5777007
50
is the given date valid?
private static boolean isValid(int m, int d, int y) { if (m < 1 || m > 12) return false; if (d < 1 || d > DAYS[m]) return false; if (m == 2 && d == 29 && !isLeapYear(y)) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isValidFor (@Nonnull DATATYPE aDate);", "boolean isValidForDate(LocalDate date);", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", ...
[ "0.80980885", "0.7970524", "0.78506005", "0.78341436", "0.7819129", "0.7778189", "0.7750392", "0.77502793", "0.77304274", "0.7646913", "0.75717515", "0.7563238", "0.7550295", "0.7535916", "0.7528795", "0.75007564", "0.7495145", "0.7478475", "0.74689883", "0.744953", "0.742602...
0.65459675
85
is y a leap year?
private static boolean isLeapYear(int y) { if (y % 400 == 0) return true; if (y % 100 == 0) return false; return y % 4 == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isLeapYear(int y) {\n if (y % 400 == 0) return true;\n if (y % 100 == 0) return false;\n return y % 4 == 0;\n }", "private static boolean isLeapYear(int y) {\r\n\t\tif (y % 400 == 0)\r\n\t\t\treturn true;\r\n\t\tif (y % 100 == 0)\r\n\t\t\treturn false;\r\n\t\tre...
[ "0.87723", "0.8763436", "0.805778", "0.7843906", "0.78231186", "0.7775126", "0.7755014", "0.7737467", "0.7737397", "0.7732945", "0.7713731", "0.76818395", "0.76803946", "0.76695347", "0.76439667", "0.7638443", "0.7610375", "0.76091206", "0.7587896", "0.749945", "0.7467662", ...
0.8733412
2
return the next Date
public Group3Date next() { if (isValid(month, day + 1, year)) return new Group3Date(month, day + 1, year); else if (isValid(month + 1, 1, year)) return new Group3Date(month + 1, 1, year); else return new Group3Date(1, 1, year + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void calcNextDate();", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new Date(month + 1, 1, year);\r\n\t\telse\r\n\t\t\treturn new Date(1, 1, year + 1);\r\n\t}", "pu...
[ "0.81519", "0.80676514", "0.8051648", "0.79376364", "0.7368402", "0.71293855", "0.710914", "0.7026197", "0.6930356", "0.6875625", "0.68604046", "0.6854532", "0.6774162", "0.67260545", "0.6661987", "0.6644358", "0.66157454", "0.65438855", "0.6538523", "0.6526571", "0.6511673",...
0.7288763
5
is this Date after b?
public boolean isAfter(Group3Date b) { return compareTo(b) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAfter(Date b) {\r\n\t\treturn compareTo(b) > 0;\r\n\t}", "public boolean isPartialAfter(Date b) {\r\n\t\treturn comparePartialTo(b) > 0;\r\n\t}", "public boolean isAfter(Date that) {\n return compareTo(that) > 0;\n }", "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) <...
[ "0.8393134", "0.7411943", "0.70691144", "0.70690614", "0.6930003", "0.659863", "0.65782416", "0.64170206", "0.64124584", "0.6410977", "0.6388751", "0.6329472", "0.62428135", "0.6237087", "0.6165847", "0.6050448", "0.60487235", "0.6020456", "0.6014435", "0.5884684", "0.5836024...
0.80416536
1
is this Date a before b?
public boolean isBefore(Group3Date b) { return compareTo(b) < 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}", "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "public boolean isPartialBefore(Date b) {\r\n\t\treturn comparePartialTo(b) < 0;\r\n\t}", "public boolean isBefore(Date d2)\r\n\t{\r\n\t\tint ret = th...
[ "0.85625416", "0.7633203", "0.7335357", "0.7278424", "0.70823133", "0.7080194", "0.6989077", "0.6892564", "0.68599075", "0.68518996", "0.6817783", "0.6727843", "0.6724142", "0.66913444", "0.6609345", "0.6585555", "0.65461284", "0.65131736", "0.65094465", "0.6498521", "0.64619...
0.7902019
1
compare this Date to that one
public int compareTo(Group3Date that) { if (this.year < that.year) return -1; if (this.year > that.year) return +1; if (this.month < that.month) return -1; if (this.month > that.month) return +1; if (this.day < that.day) return -1; if (this.day > that.day) return +1; return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "@Override\n public int compareT...
[ "0.72629654", "0.7128542", "0.7104356", "0.6919287", "0.6778587", "0.6725316", "0.66796154", "0.6580225", "0.6570955", "0.65148497", "0.651267", "0.64683634", "0.64604366", "0.643445", "0.6404742", "0.6374474", "0.6309507", "0.6293106", "0.62784", "0.6266718", "0.62363666", ...
0.57649
68
return a string representation of this date
public String toString() { return month + "/" + day + "/" + year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public String toString() {\r\n String date = month + \"/\" + day;\r\n return date;\r\n }", ...
[ "0.8303326", "0.79790354", "0.78961945", "0.78527033", "0.78065485", "0.77759427", "0.77560776", "0.77245706", "0.7691528", "0.76911145", "0.76055497", "0.75852835", "0.7576582", "0.7547376", "0.7485304", "0.7461871", "0.7455377", "0.7454579", "0.7378988", "0.73748314", "0.73...
0.7770539
6
is this Date equal to x?
public boolean equals(Object x) { if (x == this) return true; if (x == null) return false; if (x.getClass() != this.getClass()) return false; Group3Date that = (Group3Date) x; return (this.month == that.month) && (this.day == that.day) && (this.year == that.year); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "boolean hasDate();", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1...
[ "0.74859583", "0.7240705", "0.71420777", "0.7079727", "0.69796735", "0.6956895", "0.68527555", "0.6843361", "0.68052834", "0.6744066", "0.66746205", "0.6672351", "0.66503733", "0.66422004", "0.6588826", "0.65703344", "0.65193397", "0.6517673", "0.65169805", "0.64750177", "0.6...
0.6961384
5
String[] rowtobeEval = getRow(rowIndex);
public Boolean isRowHomogenous(Integer rowIndex) { return checkEqual(getRow(rowIndex)); //return rowtobeEval[0].equals(rowtobeEval[1]) && rowtobeEval[1].equals(rowtobeEval[2]) && rowtobeEval[0] != " "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "String getValue(String column, int row);", "RowFunction getRowFunction();", "String getRows(int index);", "public abstract String[] getRowValues(Cursor c);", "public ICalculator[] getRow(int row){\n return calcu...
[ "0.64263505", "0.63796884", "0.63444227", "0.6343731", "0.6325335", "0.62232846", "0.6222357", "0.6211793", "0.6184167", "0.61315745", "0.61146885", "0.6102503", "0.6094869", "0.6093127", "0.60818356", "0.6057571", "0.60302746", "0.602378", "0.59978056", "0.5993044", "0.59698...
0.0
-1
String[] columntobeEval = getColumn(columnIndex);
public Boolean isColumnHomogeneous(Integer columnIndex) { return checkEqual(getColumn(columnIndex)); // return columntobeEval[0].equals(columntobeEval[1]) && columntobeEval[1].equals(columntobeEval[2]) && columntobeEval[0] != " "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getColumn();", "String getColumn();", "String getColumn(int index);", "String getColumn(int index);", "public int getColumn(){ return (Integer)args[1]; }", "String getValue(String column, int row);", "public int getColumn()\n {\n return col;\n }", "int getColumn();", "publi...
[ "0.7070431", "0.6983892", "0.6718887", "0.6718887", "0.6584495", "0.65756506", "0.6367705", "0.6333483", "0.63158584", "0.6233634", "0.6204392", "0.6174", "0.61672765", "0.6160934", "0.6097755", "0.6078515", "0.605984", "0.60437024", "0.6037987", "0.599962", "0.59719336", "...
0.0
-1
Creating a set object
@Override @SuppressWarnings("resource") public void run(String... args) throws Exception { Comparator<GradeStore> c = (c1, c2) -> (int)(c2.calcAvgGrade() - c1.calcAvgGrade()) ; TopQueue<GradeStore> topQueue = new TopQueue<>(c, 3); // Adding elements to this set Student st_10 = new Student(10, "student_10", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set createSet();", "private Set() {\n this(\"<Set>\", null, null);\n }", "BSet createBSet();", "public SetSet() {\n\t}", "public static <T> HashSet<T> createHashSet() {\n \t\treturn new HashSet<T>();\n \t}", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "Set<X> toSet();", "pu...
[ "0.9146231", "0.7481421", "0.74087405", "0.72583085", "0.71287715", "0.7055375", "0.70145947", "0.6929472", "0.68694556", "0.68673927", "0.6849894", "0.6824409", "0.68226624", "0.68113005", "0.68022835", "0.6782211", "0.67432487", "0.67430043", "0.6741121", "0.67307025", "0.6...
0.0
-1
Builds a birthday event.
public BirthdayImpl(final boolean notify, final String description, final Contact celebratedContact, final LocalTime startTime) { super(description, startTime, notify); this.celebratedContact = celebratedContact; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void creatBirth(){\n\n for (int i = 0; i < repeatLunar.size() - 1; i++) {\n mLunar = repeatLunar.get(i);\n mLunarDay = mLunar.getLunarDay();\n mLunarMonth = mLunar.getLunarMonth();\n mLunarYear = mLunar.getLunarYear();\n mRepeat = mLunar.getRepeat();\n\n createEvent(getDate...
[ "0.64759153", "0.59558165", "0.5934379", "0.58117735", "0.5787073", "0.5774245", "0.5668523", "0.56599194", "0.5616052", "0.56130147", "0.5608567", "0.5608171", "0.5588825", "0.55783004", "0.55783004", "0.5575907", "0.5575907", "0.55375224", "0.55375224", "0.55375224", "0.553...
0.0
-1
pledge vote TestCommon.getAccountInfo(topj, account); ResponseBase result = topj.stakeVote(account, new BigInteger("10002"), new BigInteger("30")); System.out.println("stake vote hash >> " + result.getData().getOriginalTxInfo().getTxHash() + " > is success > " + result.getData().isSuccess());
@Test public void pledgeRedeemVoteTest() throws IOException { TestCommon.getAccountInfo(topj, account); // redeem vote // ResponseBase<XTransactionResponse> redeemTokenVote = topj.unStakeVote(account, new BigInteger("1000")); // System.out.println("un stake vote hash >> " + redeemToke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetReward() throws IOException {\n ResponseBase<VoterDividendResponse> voterRewardResult = topj.queryVoterDividend(account, \"T00000La8UTDgQQVRBjkCWEsKYk1XRpjZSK3zUbM\");\n System.out.println(\"voter reward result > \" + JSON.toJSONString(voterRewardResult));\n\n Res...
[ "0.6276756", "0.6021025", "0.59885395", "0.595836", "0.57543325", "0.5658556", "0.56329304", "0.558471", "0.55174226", "0.550901", "0.5454089", "0.5315225", "0.53126943", "0.5311029", "0.5279232", "0.527632", "0.5245743", "0.5245638", "0.52298766", "0.522307", "0.5215949", ...
0.83452266
0
ResponseBase nodeRewardResult = topj.getNodeReward(account); System.out.println("node reward result > " + JSON.toJSONString(nodeRewardResult)); TestCommon.getAccountInfo(topj, account);
@Test public void testGetReward() throws IOException { ResponseBase<VoterDividendResponse> voterRewardResult = topj.queryVoterDividend(account, "T00000La8UTDgQQVRBjkCWEsKYk1XRpjZSK3zUbM"); System.out.println("voter reward result > " + JSON.toJSONString(voterRewardResult)); ResponseBase<Acco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void getAccountBalance() throws JsonProcessingException {\n\n String idAccount = \"14537780\";\n\n Response response = greetingWebClient.getAccountBalance(idAccount);\n assertTrue(response.getPayload().getList().size()>0 && response.getStatus().equals(\"OK\"));\n\n }", "@Test\n...
[ "0.61826766", "0.5962999", "0.5817008", "0.57038105", "0.5654893", "0.5537359", "0.5443613", "0.54339457", "0.5423826", "0.5358858", "0.53545", "0.5344043", "0.5303979", "0.5292864", "0.529044", "0.52683425", "0.52430516", "0.5211834", "0.5186491", "0.5185468", "0.5176195", ...
0.79598755
0
Creates a bird object with specified x and y position & specified sizes
public Flappy() { //sets the properties of the bird x = 100; y = 150; yVel = 0; width = 45; height = 32; gravity = 0.5; jDelay = 0; rotate = 0.0; alive = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Ball create(int xpos, int ypos);", "protected GameObject(double x, double y, double xSize, double ySize, ID id) {\n\t\tthis.pos = new Point2D(x, y);\n\t\tthis.body = new Rectangle2D.Double(pos.getX(), pos.getY(), xSize, ySize);\n\t\tthis.id = id;\n\t}", "public Object2D(double xs,double ys,Dimension sizes)\r\n...
[ "0.6532229", "0.6485097", "0.6375604", "0.6357875", "0.6305713", "0.61705405", "0.60854983", "0.6046852", "0.60255134", "0.60189307", "0.59713084", "0.58830726", "0.58801097", "0.58747363", "0.5866349", "0.5839597", "0.57529217", "0.5751176", "0.5738883", "0.57373947", "0.573...
0.0
-1
Updates the y velocity of the bird and jump delay
public void act() { yVel += gravity; //Resets the jump delay to when greater than 0 if (jDelay > 0) { jDelay--; } //Sets the vertical velocity and jump delay of the bird after a jump if (alive == true && (Menu.keyPress == KeyEvent.VK_SPACE) && jDelay <= 0) { Menu.keyPress = 0; yVe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void jump(){\n if(onGround)\n y_velocity = -0.45f;\n }", "public void setVelocityY(double y) {\n\t\tvelocity.setY(y);\n\t}", "public void changeDy() {\n this.dyVelocity = -dyVelocity;\n }", "public void moveY(int dir) { velocity.add(PVector.mult(up, speed * dir)); }", ...
[ "0.696752", "0.69258744", "0.68889374", "0.66853404", "0.6656453", "0.6640907", "0.6567879", "0.656535", "0.6479058", "0.6436102", "0.64262587", "0.6425999", "0.64200634", "0.6412514", "0.6406407", "0.64063907", "0.63985115", "0.63795775", "0.6363525", "0.63351303", "0.631667...
0.6928318
1
Sets and updates the image of the bird when in motion
public Picture render() { Picture r = new Picture(); //Creates a new picture r.x = x; r.y = y; //Loads and sets the bird's image if (Bird == null) { Bird = Picture.loadImage("img/bird.png"); } r.image = Bird; rotate = (90 * (yVel + 20) / 20) - 90; rotate = rotate * Math.PI / 180; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateImage() {\n \t\tAnimation anim = this.animationCollection.at(\n \t\t\t\tfak.getCurrentAnimationTextualId());\n \n \t\t// if animation is set to something bad, then set it to back to initial\n \t\tif(anim==null)\n \t\t{\n \t\t\tfak.setCurrentAnimationTextualId(ConstantsForAPI.INITIAL);\n \t\t\tani...
[ "0.67409706", "0.66639143", "0.6653405", "0.6620958", "0.63784575", "0.6374666", "0.62807685", "0.62759215", "0.624358", "0.6237894", "0.6226056", "0.62218916", "0.62030464", "0.616474", "0.6164669", "0.6124642", "0.6105144", "0.6102239", "0.6082951", "0.6056575", "0.6043315"...
0.5767669
48
==================================================================================================================== Test Case Name: VINDEX ====================================================================================================================
@Test public void vinDex() throws Exception { reportLog("1.0: verify VIN Promo page is loaded "); promoPage.verifyPromoPage(); reportLog("1.1.0: Call Login method"); loginPage = promoPage.clickOnLoginButton(); reportLog("1.1.1: Verify login page is displayed"); loginPage.verifyUserLoginPage(); report...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(10)\n int getIndex();", "public int getIndex(V v);", "@Test\n public void testGetIndex() {\n System.out.println(\"getIndex\");\n Data instance = null;\n ArrayList<IndexKey> expResult = null;\n ArrayList<IndexKey> result = instance.getIndex();\n assertEquals(expResul...
[ "0.7054453", "0.67075604", "0.63858277", "0.62600815", "0.6218185", "0.6145214", "0.6109045", "0.6060799", "0.5947512", "0.59454566", "0.5829866", "0.5815851", "0.57993317", "0.579061", "0.5781194", "0.5777461", "0.5759036", "0.5759036", "0.5746999", "0.5736982", "0.5736982",...
0.0
-1
Usou Set e new TreeSet (orientado a interface) lista implementando a interface Set e especializando a classe TreeSet
public static void main(String[] args) { Set<String> lista = new TreeSet<>(); lista.add("vermelho"); lista.add("verde"); lista.add("verde"); lista.add("amarelo"); System.out.println(lista); //Result.: mostrou na ordem invertida }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,...
[ "0.68232846", "0.6798413", "0.67733544", "0.6718781", "0.66090244", "0.65723443", "0.6554381", "0.6494207", "0.648755", "0.6474849", "0.64515996", "0.62830377", "0.62654865", "0.6258997", "0.6235848", "0.6222683", "0.621415", "0.620799", "0.6173812", "0.6171552", "0.6165244",...
0.0
-1
Overwrite this method for custom highlighters
public void paint(final Graphics2D g, final int x, final int y, final int width, final int height) { if (this.getBorderColor() != null) { g.setColor(this.getBorderColor()); g.drawRect(0, y, width, height); } if (this.getContentColor() != null) { g.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DefaultHighlighter() {\n setDrawsLayeredHighlights(true);\n }", "public Color getHighlight();", "public SmartHighlightPainter() {\n\t\tsuper(DEFAULT_HIGHLIGHT_COLOR);\n\t}", "protected Highlighter createHighlighter() {\n return new BasicHighlighter();\n }", "public boolean getHig...
[ "0.7252889", "0.71972424", "0.7173242", "0.69743425", "0.6800314", "0.6661289", "0.66480017", "0.6607836", "0.6573502", "0.65224", "0.64751905", "0.64167434", "0.6402875", "0.6375174", "0.6322838", "0.62862784", "0.62633145", "0.6240488", "0.6231037", "0.62253565", "0.6221171...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
TODO Autogenerated method stub
public Emp selectEmp(int empno) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public List<Integer> getAllEmpno() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void insertEmp(Emp emp) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public List<Emp> getAllEmps() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void updateEmp(Emp emp) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void deleteEmp(int empno) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This is the Room constructor.
Room(int y, int x){ this.area = new String[y][x]; this.position = new int[y][x]; this.Garret = new int[y][x]; this.Ari = new int[y][x]; this.Items = new Item[y][x]; this.Door = new int[y][x]; this.Stairs = new int[y][x]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Room() {\n\n\t}", "public Room() {\n }", "public Room() {\n this(\"room\", null);\n }", "public MyRoom() {\r\n }", "public Room() {\n this(DEFAULT_DESC, DEFAULT_SHORT_DESC);\n }", "public Room() {\r\n\t\troomObjects = new ArrayList<GameObject>();\r\n\t\troom_listener = ne...
[ "0.8984437", "0.8936094", "0.87555784", "0.85383815", "0.8461346", "0.80992866", "0.7775075", "0.7673761", "0.7627828", "0.7587492", "0.7554859", "0.75413716", "0.74590516", "0.7454857", "0.74528766", "0.7427198", "0.7393696", "0.73534536", "0.7318702", "0.73119533", "0.73119...
0.65018904
68
end of room constructor A method that checks if the player is in the current room.
public boolean isHere(){ for(int i = 0; i < this.position.length ; i++){//loop that iterates through the array to see 1 for(int p = 0; p < this.position.length ; p++){ if(this.position[i][p] == 1){ return true;//if the position is 1 it sends a true } } } return false;//if not it's false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPlayerInRoom() {\n return !(roomPlayer == null);\n }", "boolean getCurrentRoom() {\n return currentRoom;\n }", "public boolean isRoom(){\n\t\treturn (cellType == CellType.ROOM);\n\t}", "public boolean getIsCurrentRoom()\n {\n return isCurrentRoom;\n }", "priv...
[ "0.7595766", "0.6854313", "0.6831292", "0.651341", "0.63947016", "0.6275015", "0.6268061", "0.6208945", "0.6202634", "0.6200917", "0.61696523", "0.61688954", "0.61669344", "0.61666125", "0.6161038", "0.6133461", "0.6117457", "0.6107821", "0.6025498", "0.6006283", "0.59974307"...
0.0
-1
end of is here method This method is to teleport the player to the other room, where the other door is.
public void teleportTo(int y, int x){ this.position[y][x] = 1;//makes the position here, used for other object room }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean teleport(Player p1, Player p2, boolean change);", "public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }", "public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }", "public Player getToTeleport...
[ "0.6949772", "0.6630154", "0.6416806", "0.63808763", "0.6265174", "0.6133966", "0.61049455", "0.60976636", "0.609623", "0.6079113", "0.603811", "0.599132", "0.5984435", "0.5971332", "0.59371334", "0.59205353", "0.5881921", "0.5869628", "0.58485955", "0.5831749", "0.58300716",...
0.61011595
7
end of teleportTo method This method is to make the position of the player in the past room gone.
public void ghost(){ for(int i = 0; i < this.position.length ; i++){//itterates through array for(int p = 0; p < this.position.length ; p++){ this.position[i][p] = 0;//makes the positions for the array 0, player not here } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeOut(final StandardPlayer p) {\n if (p == firstPlayerOnPos[p.getPosR()][p.getPosC()]) {\n firstPlayerOnPos[p.getPosR()][p.getPosC()]\n = secondPlayerOnPos[p.getPosR()][p.getPosC()];\n }\n secondPlayerOnPos[p.getPosR()][p.getPosC()] = null;\n ...
[ "0.6112452", "0.6098328", "0.5998135", "0.5992446", "0.5839167", "0.575454", "0.5741962", "0.5721066", "0.57154155", "0.5711066", "0.57005036", "0.5685818", "0.566666", "0.5656172", "0.5632", "0.5630312", "0.56265205", "0.5605626", "0.5601163", "0.55929554", "0.5577592", "0...
0.0
-1
end of ghost method This method is to see if the player is at a door.
public boolean onDoor(){ int yp = 0; int xp = 0;//coordinates to hold player position int yd = 1; int xd = 1;//coordinates to hold door position for(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position for(int p = 0 ; p < this.position.length; p++){ if(this.position[i][p] == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDoor() {\n return this.type == Type.DOOR;\n }", "private boolean checkDoor(Door door){\n\n\t \treturn(door.getStatus().equalsIgnoreCase(\"Unlocked\"));\n\t \t\t//return true;//returns the value true\n\t //else\n\t \t //return false;//returns the value false\n\t }", "public boo...
[ "0.73365015", "0.72655326", "0.71722305", "0.71679735", "0.68552476", "0.6840503", "0.68355256", "0.6708684", "0.6484926", "0.64750415", "0.643283", "0.64066064", "0.63935655", "0.63157624", "0.6312315", "0.6289394", "0.6255181", "0.62293863", "0.6218609", "0.6190501", "0.618...
0.7340268
0
end of onDoor method This method is to see if the player is at the stairs.
public boolean onStairs(){ int yp = 0; int xp = 0; int ys = 1; int xs = 1; for(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position for(int p = 0 ; p < this.position.length; p++){ if(this.position[i][p] == 1 && this.Stairs[i][p] == 1){ yp=i; xp=p; ys=i; xs=p; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean onDoor(){\n\t\tint yp = 0; int xp = 0;//coordinates to hold player position\n\t\tint yd = 1; int xd = 1;//coordinates to hold door position\n\t\tfor(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position\n\t\t\tfor(int p = 0 ; p < this.position.length; p++){\n\t\t\t\tif(...
[ "0.6738467", "0.66445917", "0.6570417", "0.64226717", "0.6186679", "0.6155942", "0.61274123", "0.61191374", "0.60611486", "0.60244334", "0.5969782", "0.59653103", "0.5962272", "0.59561837", "0.5888277", "0.5875378", "0.5856536", "0.5850888", "0.584555", "0.5839162", "0.581104...
0.70374143
0
end of onStairs method This method creates the game board, distributes items onto the board.
public void create(){ //creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there for(int i = 0; i <this.position.length; i++){ for(int p = 0; p < this.position.length; p++){ this.position[i][p] = 0;//filling with zero } }//end of position making board this.positio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position...
[ "0.68469596", "0.6612235", "0.62838125", "0.6146911", "0.609599", "0.6094007", "0.60869217", "0.6067302", "0.60143524", "0.590868", "0.5879469", "0.5856047", "0.5847817", "0.58273417", "0.5810305", "0.58027804", "0.5798951", "0.57750934", "0.5760477", "0.57509273", "0.5741489...
0.6484115
2
end of create This method creates the second game board and distributes the items onto it.
public void create2(){ //creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there for(int i = 0; i <this.position.length; i++){ for(int p = 0; p < this.position.length; p++){ this.position[i][p] = 0;//filling with zero } }//end of position making board //creatin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position...
[ "0.65539825", "0.64695245", "0.6448175", "0.6294802", "0.6141508", "0.6132015", "0.61204255", "0.59946185", "0.59584385", "0.5947826", "0.59276474", "0.59087557", "0.5900636", "0.5872359", "0.5835544", "0.5816897", "0.58103335", "0.57977825", "0.5796284", "0.57945377", "0.578...
0.7242972
0
end of create This method creates the third room and distributes the items onto it.
public void create3(){ //creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there for(int i = 0; i <this.position.length; i++){ for(int p = 0; p < this.position.length; p++){ this.position[i][p] = 0;//filling with zero } }//end of position making board //creatin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createRooms()\n {\n Room outside,bedroom, bathroom, hallway1, hallway2, spareroom, kitchen, fridge;\n\n // create the rooms\n bedroom = new Room(\"Bedroom\", \"your bedroom. A simple room with a little bit too much lego\");\n bathroom = new Room(\"Bathroom\", \"the bathro...
[ "0.7004151", "0.69557995", "0.6779053", "0.6584342", "0.6538506", "0.6452616", "0.64249283", "0.6353023", "0.6235582", "0.61555296", "0.6135179", "0.60896915", "0.6008179", "0.60015917", "0.5978497", "0.59539545", "0.58541554", "0.5828009", "0.5824125", "0.58163816", "0.58023...
0.65247834
5
end of create / This method makes it so that Garret the enemy can initiate a battle.
public boolean garretFight(){ int XG = 0; int YG = 0; int Xyou = 1; int Yyou = 1; for(int i = 0 ; i < this.Garret.length;i++){ for(int p = 0; p < this.Garret.length;p++){ if(this.Garret[i][p] == 1){ YG = i; XG = p; } if(this.position[i][p] == 1){ Yyou = i; Xyou = p; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void useInBattle(PlayerCharacter player, Opponent enemy) {\n\t}", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n endAnimationAttack = new CountDown(100);\n }", "public void battleComplete() {\n\t}", "publ...
[ "0.6944945", "0.6869196", "0.68681836", "0.67669433", "0.6717688", "0.66646004", "0.66453844", "0.65658087", "0.65630746", "0.654365", "0.6518733", "0.6477719", "0.6453887", "0.64522207", "0.6448205", "0.64345837", "0.6366469", "0.6362446", "0.63617", "0.6333657", "0.63192284...
0.0
-1
end of garretFight This method makes it so that Ari the enemy can initate a battle.
public boolean ariFight(){ int Xari = 0; int Yari = 0; int Xyou = 1; int Yyou = 1; for(int i = 0 ; i < this.Ari.length;i++){ for(int p = 0; p < this.Ari.length;p++){ if(this.Ari[i][p] == 1){ Yari = i; Xari = p; } if(this.position[i][p] == 1){ Yyou = i; Xyou = p; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readyNextAttackers() {\n if(battleAlly == null && battleEnemy == null){\n //if(battleAlly == null && battleEnemy == null && !isBattleOver()){\n battleAlly = battleAllies.get(0);\n battleEnemy = battleEnemies.get(0);\n }\n }", "private void enemyturn() {\n...
[ "0.7193198", "0.6824465", "0.66784674", "0.66617006", "0.6653865", "0.6612849", "0.65854836", "0.6534403", "0.6518777", "0.6504218", "0.6439674", "0.6425179", "0.6415702", "0.636352", "0.6343223", "0.6340772", "0.63355446", "0.6333062", "0.6303447", "0.6299343", "0.6290502", ...
0.0
-1
end of ariFight This method determines if there is an item on the game board that can be equipped.
public boolean itemonfloor(){ int XI = 0; int YI = 0; int Xyou = 1; int Yyou = 1; for(int i = 0 ; i < this.Items.length;i++){ for(int p = 0; p < this.Items.length;p++){ if(this.Items[i][p] != null && this.position[i][p] == 1){ YI = i; XI = p; Yyou = i; Xyou = p; } } }//end ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean canEquip(Item item,String target){\n\n\t\tif (! (item instanceof Equippable))return false;\n\t\tEquippable toEquip = (Equippable)item;\n\t\tswitch(toEquip.getEquipType()){\n\t\tcase HEAD:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.HEAD)) return true;\n\t\t\tbreak;\n\t\tcase CHEST:\n\t\t\ti...
[ "0.7238799", "0.7005665", "0.68964493", "0.6886309", "0.6822157", "0.6795174", "0.678564", "0.6767152", "0.67653865", "0.6702835", "0.66968644", "0.6633992", "0.6633808", "0.65976995", "0.6593606", "0.65929645", "0.6558456", "0.6483314", "0.64755225", "0.6435829", "0.6368426"...
0.61687714
41
holds variable that has list placment to make garret walk in pattern A method that makes Garret the enemy move throughout the board.
public void enemymoveGarret(){ int YEG = 0; int XEG = 0; int[] turns = new int[]{0,0,0,0,0,2,1,1,1,1,1,3};//dependign on the placement garret will move a certain way for(int i = 0 ; i < this.Garret.length;i++){//this grabs garrets current locations for(int p = 0; p < this.Garret.length;p++){ if(this.Garr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=fa...
[ "0.64536023", "0.6411624", "0.640115", "0.61510766", "0.61256546", "0.6125092", "0.60288894", "0.6021013", "0.59828246", "0.59543467", "0.59312344", "0.5927576", "0.58950126", "0.5879665", "0.58479995", "0.5820904", "0.58173764", "0.5805709", "0.57676715", "0.57595205", "0.57...
0.7470192
0
end bracket for enemy move A method that makes Ari the enemy move throughout the gameboard.
public void enemymoveAri(){ int YEari = 0; int XEari = 0; for(int i = 0 ; i < this.Ari.length;i++){ for(int p = 0; p < this.Ari.length;p++){ if(this.Ari[i][p] == 1){ YEari = i; XEari = p; } } } int move = fate.nextInt(4);// 0 is left, 1 is right , 2 is up , 3 is down switch(move){//f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enemyMove() {\n\t\tArrayList<EnemySprite> enemylist = this.model.getEnemy();\n\t\tfor(EnemySprite sp :enemylist) {\n\t\t\tif(sp instanceof NormalEnemySprite) {\n\t\t\t\t\n\t\t\t\t((NormalEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if(sp instanceof PatrollingEnemySprite) {\n\t\t\t\t\n\t\t\t\t(...
[ "0.73920935", "0.7004827", "0.6792384", "0.6791495", "0.6790173", "0.6737995", "0.67105114", "0.67102283", "0.6704631", "0.65676373", "0.65588254", "0.65588254", "0.6555812", "0.65452576", "0.65305626", "0.6529224", "0.6523818", "0.6523818", "0.6523818", "0.6523818", "0.65238...
0.76146054
0
end of anemy move ari A method that picks up an item from the game board.
public Item pickup(){ for(int i= 0; i< this.Items.length;i++){ for(int p = 0; p < this.Items.length; p++){ if(this.Items[i][p] != null && this.position[i][p] == 1){ Item loot = Items[i][p]; Items[i][p] = null; return loot; } } } return new Item(ItemType.other, "dust", 0,0,0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void grab() {\r\n\t\tString item = mapContents[currentPlayer.getCurrentRoom()];\r\n\t\tif (item == null) return;\r\n\t\t\r\n\t\t// If artifact, make sure has room or backpack\r\n\t\tif (item.startsWith(\"Artifact\")) {\r\n\t\t\tif (currentPlayer.count(\"Artifact\") <= currentPlayer.count(\"Backpack\")) {\r\...
[ "0.66447127", "0.65394276", "0.6412183", "0.6392832", "0.6378676", "0.636495", "0.62842095", "0.6242005", "0.6199231", "0.619037", "0.61467063", "0.614615", "0.6138021", "0.6109512", "0.6101114", "0.6097899", "0.60762763", "0.6040799", "0.6032408", "0.599229", "0.5965838", ...
0.5931842
25
end of pickup This method makes it so the player can move throughout the board.
public void MOVE(String input){ int YM=0; int XM=0; for(int i = 0; i<this.position.length;i++){ for(int p =0; p<this.position.length;p++){ if(this.position[i][p] == 1){ YM = i; XM = p; } } } switch(input){//first block is up and down second block is left and right case "a": if(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void end() {\n \tif (waitForMovement) Robot.intake.setHopperTracker(deploy ? Status.deployed : Status.stowed);\n }", "protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }", "public void endTurn() {\n\t\tturnEnd = false;\n\t\tmadeMove = false;\n\t\tcurrentPlayer.resetUndos();\n...
[ "0.68072057", "0.6520627", "0.6490814", "0.64823955", "0.6476333", "0.64622533", "0.6414615", "0.639873", "0.63979805", "0.6397892", "0.6396805", "0.6377071", "0.6374788", "0.6363279", "0.6347982", "0.63219875", "0.6312895", "0.62974226", "0.6292399", "0.62780297", "0.6250989...
0.0
-1
end of move This methods makes it so that Garret is represented by a :(, the empty space represented by +, items represented by $, door, represented by D, and stairs represented by S.
public void printG(){ for(int i = 0; i < this.area.length;i++){ System.out.println(" "); System.out.print(" "); for(int p = 0 ; p < this.area.length; p++){ if(this.Garret[i][p] == 1){ System.out.print(":( "); } else if(this.position[i][p] ==1){ System.out.print(" +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enemymoveGarret(){\n\t\tint YEG = 0;\n\t\tint XEG = 0;\n\t\tint[] turns = new int[]{0,0,0,0,0,2,1,1,1,1,1,3};//dependign on the placement garret will move a certain way\n\t\tfor(int i = 0 ; i < this.Garret.length;i++){//this grabs garrets current locations\n\t\t\tfor(int p = 0; p < this.Garret.length;p...
[ "0.60659057", "0.6030503", "0.599835", "0.5975266", "0.5968493", "0.5945316", "0.59361184", "0.59173465", "0.5893091", "0.58913994", "0.5874987", "0.58557093", "0.5816824", "0.58148545", "0.5786613", "0.5773583", "0.57568264", "0.57155156", "0.5698548", "0.5668519", "0.563843...
0.5374925
76
This methods makes it so that Ari is represented by a ?, the empty space represented by +, items represente d by $, door, represented by D, and stairs represented by S.
public void printA(){ for(int i = 0; i < this.area.length;i++){ System.out.println(" "); System.out.print(" "); for(int p = 0 ; p < this.area.length; p++){ if(this.Ari[i][p] ==1){ System.out.print(" ? "); } else if(this.position[i][p] ==1){ System.out.print(" + ")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Arbre residuelSousArbre(char c){\n\t\tArbre g, d;\n\t\tif(this.symbole == '.'){\n\t\t\tif(gauche.contientMotVide){\n\t\t\t\tg = gauche.residuelSousArbre(c);\n\t\t\t\td = droit.clone();\n\t\t\t\tif(g == null || d == null) g = null;\n\t\t\t\telse g = new Binaire('.', g, d);\n\t\t\t\td = droit.residuelSousArbr...
[ "0.5805723", "0.54593253", "0.51874214", "0.5157306", "0.51153696", "0.5022728", "0.5022009", "0.50024265", "0.4986282", "0.49449798", "0.49250162", "0.49148336", "0.49129015", "0.48856068", "0.48688254", "0.48601878", "0.48436984", "0.4826185", "0.48196387", "0.4807691", "0....
0.5414057
2
This method tests to see the position.
public void test(){ for(int i =0; i< this.position.length;i++){ System.out.println(" "); for(int p = 0 ; p<this.position.length;p++){ System.out.print(this.position[i][p]); } } System.out.println(" "); for(int i =0; i< this.position.length;i++){ System.out.println(" "); for(int p = 0 ; p<this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testPosition() {\n System.out.println(\"position\");\n BufferedCharSequence instance = null;\n int expResult = 0;\n int result = instance.position();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail...
[ "0.80618167", "0.76630765", "0.7300328", "0.72015256", "0.7172408", "0.7164219", "0.7146506", "0.7081903", "0.7031199", "0.70033777", "0.69766074", "0.6958146", "0.6934254", "0.6798414", "0.67746794", "0.67746794", "0.67746794", "0.67746794", "0.6756048", "0.6715234", "0.6701...
0.0
-1
end of test This method prints the game board to the screen.
public void print(){ System.out.println(" "); System.out.println(" "); System.out.println(" "); System.out.println(" "); System.out.println(" ~ THREE ROOM DUNGEON GAME ~ "); for(int i = 0; i < this.area.length;i++){ System.out.println(" "); System.out.print(" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printBoard() {\n printStream.println(\n \" \" + positions.get(0) + \"| \" + positions.get(1) + \" |\" + positions.get(2) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(3) + \"| \" + positions.get(4) + \" |\" + positions.get(5...
[ "0.8336725", "0.8270206", "0.8159433", "0.81591684", "0.81562394", "0.8143366", "0.80912995", "0.7978199", "0.79737675", "0.7970823", "0.79473114", "0.7941825", "0.79069936", "0.78578335", "0.7854875", "0.78477484", "0.78418505", "0.78379023", "0.7834487", "0.7823194", "0.780...
0.68352437
94
end of print This method saves the state of the game board and the players and items positions and stores it into a file.
void save(PrintWriter pw){ int YEG = 0; int XEG = 0; for(int i = 0 ; i < this.Garret.length;i++){//this grabs garrets cu rrent lo cations for(int p = 0; p < this.Garret.length;p++){ if(this.Garret[i][p] == 1){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void save(){\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tPrintWriter pw=new PrintWriter(f);\n\t\t\tpw.println(turn);\n\t\t\tpw.println(opponent.toString());\n\t\t\tfor(Unit u:punits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.print...
[ "0.7548275", "0.692615", "0.6828929", "0.68182003", "0.6810132", "0.6748227", "0.67017746", "0.6688937", "0.6681128", "0.6661693", "0.6573443", "0.65555525", "0.65406173", "0.65230906", "0.64932764", "0.64881855", "0.64872736", "0.6456967", "0.64475954", "0.6438539", "0.64225...
0.0
-1
end of save method
void save2(PrintWriter pw){ int YEG = 0; int XEG = 0; for(int i =0; i < this.Ari.length;i++){ for(int p= 0; p < this.Ari.length; p++){ if(this.Ari[i][p] == 1){ YEG = i; XEG = p; }//end of if statement }//end of inner for loop }//end of outer for loop pw.println...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n \n }", "@Override\n public void save()\n {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}...
[ "0.8167485", "0.8131333", "0.8062892", "0.8062892", "0.7905353", "0.7905353", "0.7882997", "0.7857697", "0.7781345", "0.7717348", "0.7635301", "0.7602069", "0.7460948", "0.7453943", "0.7356166", "0.7213759", "0.71668506", "0.715709", "0.71376795", "0.70257", "0.70257", "0.7...
0.0
-1
end of save2 methid
void save3(PrintWriter pw){ pw.println(" "); int YEG = 0; int XEG = 0; for(int i =0; i < this.position.length;i++){ for(int p= 0; p < this.position.length; p++){ if(this.position[i][p] == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void save() {\t\n\t\n\t\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\n public void Save() {\n\t \n }", "@Override\n pub...
[ "0.7444135", "0.7444135", "0.7392914", "0.7318031", "0.7318031", "0.7279988", "0.72069126", "0.7205703", "0.71892965", "0.7067109", "0.7058565", "0.7029092", "0.69141304", "0.69141304", "0.69141304", "0.6908128", "0.6897477", "0.68284833", "0.68284833", "0.68284833", "0.68284...
0.0
-1
end of save3 method
void save4(PrintWriter pw){ pw.println(" "); int YEG = 0; int XEG = 0; for(int i =0; i < this.Items.length;i++){ for(int p= 0; p < this.Items.length; p++){ if(this.Items[i][p] != null){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void save() {\t\n\t\n\t\n\t}", "@Override\n public void save() {\n \n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\n p...
[ "0.7296886", "0.7296886", "0.72558147", "0.7148999", "0.7119551", "0.7119551", "0.7119477", "0.7055846", "0.69643044", "0.6856452", "0.6822022", "0.6822022", "0.6822022", "0.67456776", "0.66838074", "0.6644745", "0.6638284", "0.6614802", "0.66038024", "0.6600396", "0.6578041"...
0.0
-1
already ended; ignore it
@Override public void finished() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isEnding() {\n return false;\n }", "protected void end() {\n \t// theres nothing to end\n }", "public abstract boolean shouldEnd();", "protected abstract boolean end();", "@Override\n protected void end() {\n }", "@Override\r\n protected void end()...
[ "0.7380021", "0.6999358", "0.67266196", "0.67252696", "0.6698899", "0.6694085", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.66779846", "0.6655504", "0.6611309", "0...
0.0
-1
Data is the data to be renedered for this column.
public abstract String render (String data, String type, T row);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "public void setData(E data) {\r\n\t\tthi...
[ "0.6116472", "0.61005133", "0.6053748", "0.5996619", "0.5958903", "0.5919323", "0.5900956", "0.58881336", "0.5875087", "0.58609295", "0.5856427", "0.58562064", "0.5833752", "0.5831239", "0.5811429", "0.5806275", "0.58032167", "0.578835", "0.5770249", "0.5770249", "0.5762839",...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_playlist, container, false); listView = view.findViewById(R.id.listView); final MergeAdapter mergeAdapter...
{ "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
TODO Autogenerated method stub
@Override public void handleMessage(Message msg) { processBluetoothDeviceMessage(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
Get the Iframe Macro Block type
private void getIMBType(BufferedBitStream stream) throws InterruptedException { int data[] = IMBTable[stream.showBits(2)]; stream.flushBits(data[1]); mbType = data[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BlockType getType()\n {\n return blockType;\n }", "public static String getFrameType(Frame frame)\r\n/* 64: */ {\r\n/* 65:84 */ return getFrameType(frame.getThing());\r\n/* 66: */ }", "protected void getMacroBlock(BufferedBitStream stream) throws InterruptedException\n {\n ...
[ "0.67084354", "0.597547", "0.5807596", "0.56598306", "0.5455809", "0.5449236", "0.5449236", "0.5449236", "0.5449236", "0.5449236", "0.5449236", "0.5443127", "0.54416263", "0.5407544", "0.54070306", "0.5406017", "0.5337006", "0.53356165", "0.533398", "0.5314286", "0.52744853",...
0.5051476
51
Get the Iframe Macro Block type
private void getPMBType(BufferedBitStream stream) throws InterruptedException { int code = stream.showBits(6); int data[]; if (code >= 8) data = PMBTable[ code >>> 3]; else data = PMBTable [ code + 8 ]; stream.flushBits(data[1]); mbType = data[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BlockType getType()\n {\n return blockType;\n }", "public static String getFrameType(Frame frame)\r\n/* 64: */ {\r\n/* 65:84 */ return getFrameType(frame.getThing());\r\n/* 66: */ }", "protected void getMacroBlock(BufferedBitStream stream) throws InterruptedException\n {\n ...
[ "0.67084354", "0.597547", "0.5807596", "0.56598306", "0.5455809", "0.5449236", "0.5449236", "0.5449236", "0.5449236", "0.5449236", "0.5449236", "0.5443127", "0.54416263", "0.5407544", "0.54070306", "0.5406017", "0.5337006", "0.53356165", "0.533398", "0.5314286", "0.52744853",...
0.0
-1
Get the Bframe Macro Block type
private void getBMBType(BufferedBitStream stream) throws InterruptedException { int code = stream.showBits(6); int data[]; if (code >= 8) data = BMBTable[ code >>> 2 ]; else data = BMBTable [ code + 16 ]; stream.flushBits(data[1]); mbType = data[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BlockType getType()\n {\n return blockType;\n }", "protected void getMacroBlock(BufferedBitStream stream) throws InterruptedException\n {\n // Starting from the Macroblock type\n /* read macro block bit flags */\n/*\n swi*tch (getPictureType()) {\n\n case Pictur...
[ "0.71397203", "0.6267466", "0.5937798", "0.5933787", "0.5922891", "0.5922891", "0.5922891", "0.5922891", "0.5922891", "0.5922891", "0.5828829", "0.5819598", "0.58067995", "0.5719481", "0.5701506", "0.5645116", "0.5634653", "0.5634016", "0.56191295", "0.56161875", "0.5604837",...
0.55788666
23
Get the Coded Block Pattern
private void getMBPattern (BufferedBitStream stream) throws InterruptedException { int data[]; int code = stream.showBits(9); if (code >= 128) data = CBPCode[code >>> 4]; else data = CBPCode[(code) + 32]; stream.flushBits(data[1]); codedBlockPattern = da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SwiftPattern getBbanPattern() {\n return bbanPattern;\n }", "public String getCodeBlock() {\n return codeBlock;\n }", "public String generateBlock(){\n return null;\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak getCodeBreak();", "public BlockStmt\ngetInitiationPart(...
[ "0.62513953", "0.6172814", "0.5968741", "0.59667444", "0.5922697", "0.58882225", "0.5883128", "0.58240485", "0.58198756", "0.5817437", "0.5808155", "0.577836", "0.5729239", "0.5707536", "0.5623298", "0.5615281", "0.5604527", "0.5604117", "0.56013894", "0.5582522", "0.55688304...
0.5855393
7
Reset the coded block pattern
private void resetMBPattern() { codedBlockPattern = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reset() {\n blocks.clear();\n }", "public void resetBlocks() {\n\t\tBLOCK_LIST.clear();\n\t}", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "void reset() {\n setPosition(-(TILE_...
[ "0.7387321", "0.7149385", "0.6904737", "0.6891746", "0.6879149", "0.6844712", "0.6816209", "0.6620288", "0.6613408", "0.6611838", "0.6606515", "0.65881157", "0.6583964", "0.6582226", "0.6575258", "0.6550097", "0.65390867", "0.6529945", "0.65282947", "0.6523587", "0.65099657",...
0.864582
0
Reset the Macro Block
void reset() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reset() {\n\t\tvxlFragment = new StringBuffer();\n\t\tpreprocessorList = new LinkedList<ASTNode>();\n\t}", "void reset() {\n blocks.clear();\n }", "public void reset() {\n\n\t}", "public void reset()\n\t{\n\t}", "public void reset()\n\t{\n\t}", "private void reset() {\n }"...
[ "0.7155069", "0.7080989", "0.698541", "0.695417", "0.695417", "0.69477385", "0.692311", "0.692311", "0.692311", "0.692311", "0.6922406", "0.6899504", "0.6897069", "0.6897069", "0.6897069", "0.6897069", "0.68840575", "0.68731534", "0.6859844", "0.6855241", "0.6758426", "0.67...
0.6975273
3
Parsing the Macro Block
protected void getMacroBlock(BufferedBitStream stream) throws InterruptedException { // Starting from the Macroblock type /* read macro block bit flags */ /* swi*tch (getPictureType()) { case Picture.I_TYPE: getIMBType(stream); break; case Picture.P_T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GmMacro createGmMacro(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "GmMacro createGmMacro(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "GmMacro createGmMacro(InputStream in) throws IOException, SAXException, ParserConfigurationException;"...
[ "0.6614255", "0.6236724", "0.60547084", "0.59081423", "0.5907108", "0.5871341", "0.5837266", "0.5808514", "0.58031696", "0.57457244", "0.5704397", "0.5650352", "0.55581695", "0.55505717", "0.5527417", "0.54860437", "0.54244095", "0.54083014", "0.54021674", "0.5384556", "0.535...
0.60514337
3
Set Default Intra Quantize Matrix
void setDefaultIntraQuantMatrix() { for (int i=0;i<defaultIntraQuantMatrix.length;i++) intraQuantMatrix[i] = defaultIntraQuantMatrix[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDefaultInterQuantMatrix()\n {\n for (int i=0;i<interQuantMatrix.length;i++)\n interQuantMatrix[i] = 16;\n }", "void setIntraQuantMatrix(BufferedBitStream stream) throws InterruptedException\n {\n for (int i=0;i<defaultIntraQuantMatrix.length;i++)\n intraQuantM...
[ "0.7790762", "0.58624136", "0.5577123", "0.54912674", "0.5233481", "0.5173861", "0.50818264", "0.49943638", "0.49177867", "0.48087332", "0.48028305", "0.4787359", "0.47515297", "0.47515297", "0.47380862", "0.47190386", "0.47057956", "0.46928757", "0.46914092", "0.4662076", "0...
0.8019095
0
Set Intra Quantize Matrix
void setIntraQuantMatrix(BufferedBitStream stream) throws InterruptedException { for (int i=0;i<defaultIntraQuantMatrix.length;i++) intraQuantMatrix[i] = stream.getBits(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDefaultIntraQuantMatrix()\n {\n for (int i=0;i<defaultIntraQuantMatrix.length;i++)\n intraQuantMatrix[i] = defaultIntraQuantMatrix[i];\n }", "void setDefaultInterQuantMatrix()\n {\n for (int i=0;i<interQuantMatrix.length;i++)\n interQuantMatrix[i] = 16;\n }...
[ "0.69671065", "0.66101027", "0.6097214", "0.5542436", "0.53414214", "0.532959", "0.52619505", "0.5124968", "0.49501252", "0.4946119", "0.49299797", "0.49288806", "0.48265484", "0.4823559", "0.47997817", "0.47969702", "0.47605067", "0.47565842", "0.4746874", "0.4735555", "0.47...
0.65518844
2
Set Default Inter Quantize Matrix
void setDefaultInterQuantMatrix() { for (int i=0;i<interQuantMatrix.length;i++) interQuantMatrix[i] = 16; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDefaultIntraQuantMatrix()\n {\n for (int i=0;i<defaultIntraQuantMatrix.length;i++)\n intraQuantMatrix[i] = defaultIntraQuantMatrix[i];\n }", "void setIntraQuantMatrix(BufferedBitStream stream) throws InterruptedException\n {\n for (int i=0;i<defaultIntraQuantMatrix.lengt...
[ "0.78731793", "0.55062854", "0.5404718", "0.53340966", "0.53306997", "0.52908856", "0.52744013", "0.52253246", "0.51974607", "0.51877445", "0.51803344", "0.5105055", "0.5103904", "0.5083465", "0.5079648", "0.5050295", "0.49509412", "0.49166682", "0.48565954", "0.4847656", "0....
0.8014084
0
Set Inter Quantize Matrix
void setInterQuantMatrix(BufferedBitStream stream) throws InterruptedException { for (int i=0;i<interQuantMatrix.length;i++) interQuantMatrix[i] = stream.getBits(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDefaultIntraQuantMatrix()\n {\n for (int i=0;i<defaultIntraQuantMatrix.length;i++)\n intraQuantMatrix[i] = defaultIntraQuantMatrix[i];\n }", "void setDefaultInterQuantMatrix()\n {\n for (int i=0;i<interQuantMatrix.length;i++)\n interQuantMatrix[i] = 16;\n }...
[ "0.6615782", "0.66129744", "0.62921387", "0.558368", "0.5518877", "0.53708935", "0.52342325", "0.52259666", "0.51316094", "0.512504", "0.5112171", "0.50711775", "0.5057484", "0.50503886", "0.50106907", "0.49963376", "0.4971023", "0.496672", "0.49657324", "0.49458152", "0.4941...
0.6289649
3
Set the Picture type
void setPictureType ( int code ) { pictureType = code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPicType(Integer picType) {\n this.picType = picType;\n }", "public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new ...
[ "0.7464305", "0.69569147", "0.6935429", "0.67556983", "0.6747403", "0.67241544", "0.6703912", "0.6681097", "0.66521555", "0.6457404", "0.6288501", "0.6288501", "0.6288501", "0.6174155", "0.617048", "0.61602974", "0.6107754", "0.6073489", "0.6056877", "0.6044199", "0.6033056",...
0.82571197
0
Set the Forward Vector's full_pel
void setFullPelForwardVector(int value) { forwardVector.setFullPel(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setFullPelBackwardVector(int value)\n {\n backwardVector.setFullPel(value);\n }", "public void setFocalPoints() {\n Equation e = new Equation();\n // read the refractive index and the curvature radius from the sliders and divide their slider values by 100\n double index = i...
[ "0.6963778", "0.6054927", "0.5760464", "0.5703884", "0.56204313", "0.5536059", "0.55313915", "0.55137515", "0.55039173", "0.5485805", "0.5368984", "0.5366793", "0.5261354", "0.5245055", "0.5242702", "0.52390146", "0.52223915", "0.5216517", "0.5189325", "0.5188077", "0.5182829...
0.77206546
0
Set the Forward Vector's f_code
void setForwardFCode(int value) { forwardVector.setMotionFCode(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBackwardFCode(int value)\n {\n backwardVector.setMotionFCode(value);\n }", "protected void setFunctionCode(int code) {\n m_FunctionCode = code;\n // setChanged(true);\n }", "public void mo3797c(float f) {\n this.f1455ad[0] = f;\n }", "void setFullPelForwardVect...
[ "0.75643235", "0.6159975", "0.6042705", "0.60208845", "0.5891855", "0.5795755", "0.5747993", "0.57087445", "0.57082164", "0.5703943", "0.56972474", "0.5587535", "0.5528833", "0.5526641", "0.55242103", "0.55217826", "0.55045915", "0.5494474", "0.54796326", "0.53965425", "0.538...
0.8407321
0
Set the Backward Vector's full_pel
void setFullPelBackwardVector(int value) { backwardVector.setFullPel(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setFullPelForwardVector(int value)\n {\n forwardVector.setFullPel(value);\n }", "void setupPointScaleFree() {\n\t\tbeginOffsetP.set(P);\n\n\t\tleftOppositeLine = neighborOppositeLinesFromPoint(selectedPoint)[0];\n\t\trightOppositeLine = neighborOppositeLinesFromPoint(selectedPoint)[1];\n\t\tlef...
[ "0.7141013", "0.5900874", "0.57737917", "0.57143444", "0.57143205", "0.56202793", "0.5547624", "0.5493438", "0.5481252", "0.5478915", "0.54778904", "0.5470231", "0.5466687", "0.54318637", "0.5420866", "0.5334012", "0.5331164", "0.531791", "0.5301193", "0.52923745", "0.5268931...
0.72528344
0
Set the Backward Vector's f_code
void setBackwardFCode(int value) { backwardVector.setMotionFCode(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setForwardFCode(int value)\n {\n forwardVector.setMotionFCode(value);\n }", "public void setCode(byte[] code);", "protected void setFunctionCode(int code) {\n m_FunctionCode = code;\n // setChanged(true);\n }", "public void setRcode(float value) {\n this.rcode = value;\n...
[ "0.7751717", "0.62571716", "0.6166785", "0.61579394", "0.6113395", "0.5890861", "0.5835803", "0.57732767", "0.57550263", "0.5651242", "0.5650977", "0.56208235", "0.559257", "0.5592557", "0.55855083", "0.5568876", "0.5566041", "0.5543752", "0.55327696", "0.5514462", "0.5495561...
0.7948792
0
Set the Quantizer Scale
void setQuantizerScale(int value) { quantizerScale = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setScale(float scale);", "void setScale(ScaleSelector sensor, int scaleNo);", "public void setScale(double value) {\n this.scale = value;\n }", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "@Override\n public void setScale(float scale) {\n ...
[ "0.7690676", "0.73892444", "0.7182646", "0.7173733", "0.7166117", "0.71284944", "0.6999559", "0.699854", "0.696217", "0.6917842", "0.6906745", "0.6886988", "0.688206", "0.6862832", "0.68454456", "0.68177944", "0.68153006", "0.68027025", "0.6768872", "0.6697267", "0.6650287", ...
0.88365674
0
Reset the DCT dc past predictor
void resetDCPredictor() { dctDCYPast = 128*8; dctDCCrPast = 128*8; dctDCCbPast = 128*8; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetVarD() {\n width = 0;\n height = 0;\n sizeY = 0;\n sizeCB = 0;\n sizeCR = 0;\n sizeYc = 0;\n sizeCBc = 0;\n sizeCRc = 0;\n iteradorFreq = 0;\n i = 0;\n FreqY = new HashMap<>();\n FreqCB = new HashMap<>();\n ...
[ "0.6341759", "0.61622924", "0.5991124", "0.5908236", "0.5884617", "0.5600638", "0.5577433", "0.557289", "0.55053246", "0.54421043", "0.53838897", "0.53753626", "0.53567153", "0.53537554", "0.53422415", "0.5337283", "0.53299516", "0.5323671", "0.5307828", "0.5298822", "0.52981...
0.8405523
0
If the Macro Block is bidirectional predicted
boolean isBidirPredicted() { return ((mbType & FORWARD)!=0) && ((mbType & BACKWARD)!=0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "boolean isForwardPredicted()\n {\n return ((mbType & FORWARD) != 0);\n }", "public boolean mo3882b() {\n return this.f3138s == 1;\n }", "boolean isMBIntra()\n {\n return ((mbType & INTRA) !...
[ "0.6396266", "0.6066403", "0.58455527", "0.56314075", "0.5594518", "0.5537884", "0.5492983", "0.5459701", "0.5432568", "0.54117423", "0.53964615", "0.53886133", "0.5336877", "0.5327598", "0.53176326", "0.53176326", "0.5312191", "0.5312191", "0.52881503", "0.52645046", "0.5259...
0.6687911
0
If the Macro Block is backward predicted
boolean isBackwardPredicted() { return (mbType & BACKWARD)!=0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBackward()\n {\n return (state == AnimationState.BACKWARD);\n }", "boolean isForwardPredicted()\n {\n return ((mbType & FORWARD) != 0);\n }", "boolean isBidirPredicted()\n {\n return ((mbType & FORWARD)!=0) && ((mbType & BACKWARD)!=0);\n }"...
[ "0.6458742", "0.63809854", "0.61890525", "0.6177451", "0.5823541", "0.5777023", "0.5740077", "0.56749946", "0.56156665", "0.5536502", "0.55280185", "0.55263674", "0.551976", "0.5494439", "0.54706645", "0.5463147", "0.54256415", "0.541205", "0.5397496", "0.5346185", "0.5339744...
0.73029566
0
If the Macro Block is forward predicted
boolean isForwardPredicted() { return ((mbType & FORWARD) != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "boolean isBidirPredicted()\n {\n return ((mbType & FORWARD)!=0) && ((mbType & BACKWARD)!=0);\n }", "public boolean consumeImpulse()\n {\n\treturn modelStep();\n }", "public boolean isTerm()\n {\n ...
[ "0.6582927", "0.62126213", "0.5855561", "0.58119583", "0.5809755", "0.5679889", "0.5647594", "0.5637653", "0.56019354", "0.5551766", "0.5544332", "0.5544332", "0.5544332", "0.5510054", "0.55057645", "0.5480604", "0.545939", "0.5446861", "0.53967726", "0.5385077", "0.5379195",...
0.7083185
0
If the Macro Block have Quantizer scale
boolean haveMBQuant() { return ((mbType & QUANT) != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "boolean hasScaler();", "public boolean hasScale() { return hasScale; }", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "boolean hasQuality();", "boolean hasQuality();", "private boolean isWithInScale(Rul...
[ "0.6541173", "0.6422094", "0.61340755", "0.58850724", "0.57901", "0.57901", "0.57705694", "0.56855994", "0.55942553", "0.5554574", "0.5548397", "0.5514187", "0.54098254", "0.53680307", "0.5265574", "0.5253669", "0.52226806", "0.52226806", "0.5181941", "0.51748806", "0.5162341...
0.59327257
3
If the Macro Block is intra coded
boolean isMBIntra() { return ((mbType & INTRA) != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isMacro(int nextVal) throws java.io.IOException, IOException {\n\t\tif (nextVal == PREPROCESSING) {\n\t\t\tint pos = (int) reader.getFilePointer();\n\t\t\tthis.readUntilEndOfLine(nextVal);\n\t\t\tthis.seek(pos);\n\t\t\treturn !(next.matches(\"!procedure.*\") || next.matches(\"!function.*\"));\n\t\t...
[ "0.6290604", "0.5823452", "0.5783222", "0.55749613", "0.55749613", "0.55749613", "0.5546713", "0.55387175", "0.55387175", "0.54812896", "0.5455842", "0.53953385", "0.5390106", "0.5346957", "0.53450525", "0.5325139", "0.5325139", "0.5301539", "0.527924", "0.5263989", "0.525022...
0.58522224
1
Reset the Motion Vector
void resetMotionVector() { forwardVector.resetMotionVector(); backwardVector.resetMotionVector(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void reset(){\n\t\tif(motor.isMoving())\n\t\t\treturn;\n\t\tmotor.rotateTo(0);\n\t}", "static void resetVelocity(){currentVelocity = INITIAL_SPEED;}", "public void clearVelocity();", "protected void resetMotion(){\n \tisMoving = false;\n \tframesForCurrentMove = 0;\n \ttargetMain...
[ "0.763107", "0.7590391", "0.7281384", "0.7255986", "0.71722937", "0.70829916", "0.70046866", "0.69889903", "0.6917795", "0.6879101", "0.6856196", "0.68262935", "0.68210423", "0.67826444", "0.6777189", "0.6771882", "0.6757872", "0.67440283", "0.6734218", "0.6709489", "0.669336...
0.88071805
0
Get the block data
int[][] getData() { return block; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte getBlockData();", "public final ByteBlock getData() { return data; }", "public byte[] getDataBlock() {\n return serialize;\n }", "public byte[][][] getBlockDatas() {\n \t\treturn this.blockDatas;\n \t}", "@Override\n public Object getData() {\n return blockValues.toString();\n }...
[ "0.80276066", "0.7836027", "0.77059174", "0.76159364", "0.74348044", "0.68212324", "0.6814268", "0.67701536", "0.6753543", "0.66969997", "0.66936255", "0.65381056", "0.6510521", "0.6510521", "0.6510521", "0.6510521", "0.6484447", "0.64708763", "0.6452896", "0.64507514", "0.64...
0.7521796
4
Get the Picture type
private int getPictureType() { return pictureType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPicType() {\n return picType;\n }", "ImageType getType();", "public static String getType() {\n type = getProperty(\"type\");\n if (type == null) type = \"png\";\n return type;\n }", "public final String getImageType() {\n String imageType = null;\n\...
[ "0.7884457", "0.77582616", "0.7506323", "0.7289983", "0.70948464", "0.7055148", "0.7053442", "0.70415825", "0.69112176", "0.6712545", "0.66797256", "0.6657728", "0.6539128", "0.6485133", "0.64104843", "0.63516736", "0.6307274", "0.6254452", "0.6225672", "0.6217336", "0.621733...
0.79860175
0
Get one Intra coded Block
private int getIntraBlock( int block[], BufferedBitStream stream, int dctDCPast, int dcValue) throws InterruptedException { int i, position; int data0,data1; int code, temp[]; int blocktemp; boolean endOfBlock = false; block[0] = dctDCPast + (dcValue * 8); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Block getBlock() {\r\n return this.block;\r\n }", "public Block getBlock(int index){\n\t\treturn ds[index];\n\t}", "Block getBlock(String congName, String blockName, String blockNumber);", "public Block getBlock()\n {\n return block;\n }", "public Block getBlock()\n\t{\n\t\tretur...
[ "0.71834", "0.7161985", "0.7122854", "0.7026025", "0.69415754", "0.6940942", "0.69215846", "0.69210726", "0.6919953", "0.69038737", "0.6893172", "0.6718846", "0.66931033", "0.6649665", "0.6649665", "0.6523154", "0.65199447", "0.65087545", "0.65064013", "0.64841884", "0.647316...
0.0
-1
Get one Inter Coded Block
private void getInterBlock(int block[], BufferedBitStream stream) throws InterruptedException { int i, position; int blocktemp=0; int data[] = new int[2]; int data0, data1; int sign = 0; int code, temp[]; boolean endOfBlock = false; i = -1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "protected Block getBlock() {\r\n return this.block;\r\n }", "int getBlockNumber();", "int getBlockNumber();", "public Block getBlock()\n {\n return block;\n }", ...
[ "0.72165567", "0.70829976", "0.7016294", "0.7016294", "0.69820935", "0.69456893", "0.68907464", "0.68890697", "0.68440807", "0.6840249", "0.6794779", "0.6783225", "0.6768443", "0.67212087", "0.66635966", "0.6576113", "0.65607166", "0.65535915", "0.65494883", "0.65430796", "0....
0.0
-1
If have coded Macro Block pattern
private boolean haveMBPattern() { return ((mbType & PATTERN) !=0 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean macro(Macro m, Token orig)\r\n throws IOException,\r\n LexerException {\r\n Token tok;\r\n List<Argument> args;\r\n\r\n // System.out.println(\"pp: expanding \" + m);\r\n if (m.isFunctionLike()) {\r\n OPEN:\r\n for (;;) {\r\n ...
[ "0.5899193", "0.56739175", "0.5557406", "0.55321515", "0.55201936", "0.5485145", "0.5478533", "0.5460543", "0.5458423", "0.5420557", "0.54030794", "0.53368723", "0.5312163", "0.53020453", "0.5242183", "0.5239727", "0.5225833", "0.52188736", "0.51877487", "0.5180312", "0.51789...
0.0
-1
write a program to check if the number is entered by the user is odd or even if it is odd print "odd" else print "even"
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please a number\n"); int num = sc.nextInt(); String msg = (num % 2 == 0) ? "The number is Even" : "The number is Odd"; System.out.println(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n // create a scanner for user input \n Scanner input = new Scanner(System.in);\r\n \n //prompt user for their number\n System.out.println(\"Enter your number\"); \n //intialize user's number\n int number = input.nextInt();\n //intialize the remain...
[ "0.84562546", "0.82568985", "0.81551045", "0.80020803", "0.7955388", "0.77144784", "0.77022445", "0.76232654", "0.74848497", "0.7461003", "0.74295586", "0.7268031", "0.7234553", "0.7207164", "0.7191421", "0.70059735", "0.7004863", "0.69318324", "0.68482924", "0.6781775", "0.6...
0.6590362
25
........................ C O N S T R U C T O R S ..........................//
public BookManager() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private USI_TRLT() {}", "private void strin() {\n\n\t}", "@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\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "protected void mo6255a() ...
[ "0.5768491", "0.56634897", "0.55411", "0.55315447", "0.54346466", "0.53735703", "0.5368076", "0.5364503", "0.5323158", "0.5300383", "0.5297362", "0.5297362", "0.52810156", "0.52602535", "0.52591777", "0.52568585", "0.525597", "0.5240802", "0.52322423", "0.52322423", "0.523224...
0.0
-1
end of the main method. get the recommend books.
public Book[] getRecommendBooks() { String stmnt = String.format( "SELECT * FROM book LIMIT %d ", PAGE_LIMIT); ResultSet rs = executeQuery(stmnt); ArrayList<Book> arr = resultSetPacker(rs, Book.class); return arr.toArray(new Book[arr.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Books getBooks(String title,String authors,String isbn,String publisher);", "private static void loadBooks() {\n\tbookmarks[2][0]=BookmarkManager.getInstance().createBook(4000,\"Walden\",\"\",1854,\"Wilder Publications\",new String[] {\"Henry David Thoreau\"},\"Philosophy\",4.3);\n\tbookmarks[2][1]=Bookma...
[ "0.7094824", "0.6905442", "0.6750297", "0.6569825", "0.6545984", "0.65235305", "0.64868104", "0.6380948", "0.6352877", "0.63490975", "0.6329586", "0.6307921", "0.6292627", "0.62908316", "0.6247378", "0.6163642", "0.6153332", "0.61501807", "0.6143615", "0.6132203", "0.6123668"...
0.7299154
0
end of the method
public Book[] getFavoriteBooks() { String stmnt = String.format( "SELECT * FROM book ORDER BY rating DESC LIMIT %d ", PAGE_LIMIT); ResultSet rs = executeQuery(stmnt); ArrayList<Book> arr = resultSetPacker(rs, Book.class); return arr.toArray(new Book[a...
{ "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\r\n protected void end() {\r\n\r\n }", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void perish() {\n \n }", "public void gored() ...
[ "0.6991654", "0.68388873", "0.6755269", "0.674208", "0.6627589", "0.65728456", "0.6569988", "0.65495783", "0.65220946", "0.6514692", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", ...
0.0
-1