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
github_test Create on 7/10/2017.
public interface WebhookParserService { boolean parse(String payload); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGitHub() {\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hellow GitHub!!!\");\n\t\t// commit testing...\n\t\t// add: line 9 write...\n\t\tSystem.out.println(\"add code\");\n\t\t\n\t\tint a = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(a...
[ "0.7706889", "0.60833806", "0.60202557", "0.59826475", "0.58978575", "0.58572614", "0.5782364", "0.5727749", "0.57275623", "0.57058126", "0.56743675", "0.5673115", "0.56724113", "0.5645737", "0.56357545", "0.55931795", "0.558891", "0.55675864", "0.55628103", "0.5558164", "0.5...
0.0
-1
below methods are to retrieve prices with all the time
@Transactional(readOnly = true) @Query(value = "SELECT s FROM StockPrice s where stockCd=:stockCd and curTime in (select lastDay from BFWeekDay bfw) order by s.curTime") public List<StockPrice> findWeekByStockCd(@Param("stockCd") String stockCd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<SpotPrice> getAll();", "List<PriceInformation> getPriceForProduct(ProductModel product);", "Price[] getTradePrices();", "public static String[] getItemPrice(String type, String entity, String item, String uom, String curr) {\n\r\n String[] TypeAndPrice = new String[2]; \r\n String ...
[ "0.7277533", "0.7252443", "0.7156731", "0.7074688", "0.6984907", "0.69261485", "0.6870187", "0.68462884", "0.6833076", "0.6833076", "0.6833076", "0.6808313", "0.68068796", "0.67865336", "0.6728266", "0.66835845", "0.66751677", "0.66725755", "0.66483843", "0.66195214", "0.6616...
0.0
-1
below methods are to retrieve prices for a company in a special period
@Transactional(readOnly = true) @Query(value = "SELECT s FROM StockPrice s where stockCd=:stockCd and curTime in (select lastDay from BFWeekDay bfw where date(lastDay) between :fromDate and :toDate) order by s.curTime") public List<StockPrice> findWeekByStockCd(@Param("stockCd") String stockCd, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(path=\"/company/companyStockPrice\")\r\n\t\tpublic List<CompanyStockPrice> getCompanyStockPriceDetails(@RequestBody CompanyPeriodModel companyPeriod){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<CompanyStockPrice> companyStockPriceList = null;\r\n\t\t\tif(companyPeriod.getPeriodicity()>0) {\r\n\t\t\t\t Local...
[ "0.6823377", "0.6778051", "0.6595854", "0.65364695", "0.6386531", "0.63376945", "0.62029344", "0.61404735", "0.599722", "0.59686565", "0.5967236", "0.5931702", "0.5926746", "0.59229904", "0.58927476", "0.5892173", "0.5852277", "0.5829733", "0.5822353", "0.58110505", "0.581105...
0.0
-1
below methods are to retrieve data for sector select avg(price), cur_time from stock_price where cur_time in (select last_day from bfmonthday) group by cur_time;
@Transactional(readOnly = true) @Query(value = "select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp " + "where curTime in (select lastDay from BFWeekDay) and " + "stockCd in (select stockCd from Stock where sectorCd=:sectorCd) group by curTime order by curTime") public List<Object[]> findWeekBySectorCd(@Param("sectorCd") String sectorCd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional(readOnly = true)\n\t@Query(value = \"select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp \"\n\t\t\t+ \"where curTime in (select lastDay from BFWeekDay bfw where date(lastDay) between :fromDate and :toDate) and \"\n\t\t\t+ \"stockCd in (select stockCd from Sto...
[ "0.6156036", "0.5832248", "0.56697875", "0.55162036", "0.5489111", "0.5427569", "0.5313548", "0.52817774", "0.525511", "0.52354383", "0.51499057", "0.51352996", "0.5129239", "0.5111864", "0.5090212", "0.50505185", "0.5046558", "0.5037822", "0.5027819", "0.50029945", "0.499780...
0.636197
0
below methods are to retrieve data for sector for a special period
@Transactional(readOnly = true) @Query(value = "select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp " + "where curTime in (select lastDay from BFWeekDay bfw where date(lastDay) between :fromDate and :toDate) and " + "stockCd in (select stockCd from Stock s where sectorCd=:sectorCd) group by curTime order by curTime") public List<Object[]> findWeekBySectorCd(@Param("sectorCd") String sectorCd, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String, Object> getSectorData() {\r\n Map<String, Object> data = new LinkedHashMap<String, Object>();\r\n for (String key : sectorData) {\r\n if (lineData.containsKey(key)) {\r\n if (channelMap.containsKey(key)) {\r\n c...
[ "0.6552528", "0.60807955", "0.60036105", "0.5930222", "0.580587", "0.5684824", "0.5542817", "0.55096555", "0.5488399", "0.5457125", "0.5418116", "0.5413812", "0.53971165", "0.5382499", "0.5352277", "0.53422904", "0.53017116", "0.52519786", "0.51855314", "0.51603204", "0.51289...
0.0
-1
select from user's table and find the balance. insert into the log to the user's table.
public int balance(String accountNumber, String userId) { Connection conn; PreparedStatement ps, pp; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ //connect to database conn=DriverManager.getConnection(url, username, password); String sql = "select balance from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; while(rs.next()) { nowBalance=rs.getInt("balance"); } String logs = "Checked balance: "+String.valueOf(nowBalance); String sql1 = "insert into "+userId+" (log) values (?)"; pp = (PreparedStatement) conn.prepareStatement(sql1); pp.setString(1, logs); pp.executeUpdate(); return nowBalance; } catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\"...
[ "0.6878144", "0.68564785", "0.6561314", "0.6490642", "0.63346833", "0.62879467", "0.6254589", "0.62490374", "0.61820877", "0.61494297", "0.6129089", "0.61149263", "0.607624", "0.607624", "0.60700846", "0.5971153", "0.5925294", "0.59250385", "0.59243953", "0.59196013", "0.5861...
0.6583115
2
add the amount to the accountHolder's balance. insert into the log to the user.
public void deposit(String accountNumber, int amount) { Connection conn; PreparedStatement ps, pp, ll; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; int lastBalance; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ conn=DriverManager.getConnection(url, username, password); String sql = "select balance,userId from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; String id = ""; while(rs.next()) { nowBalance=rs.getInt("balance"); id = rs.getString("userId"); } lastBalance = nowBalance + amount; //System.out.println(lastBalance); String sql1 = "UPDATE "+this.name+" SET balance=? where accountNumber=?"; pp = (PreparedStatement) conn.prepareStatement(sql1); pp.setInt(1, lastBalance); pp.setString(2, accountNumber.toString()); pp.executeUpdate(); String logs = "deposit : "+ amount+" / balance: "+String.valueOf(lastBalance); String sql11 = "insert into "+id+" (log) values (?)"; ll = (PreparedStatement) conn.prepareStatement(sql11); ll.setString(1, logs); ll.executeUpdate(); }catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void addBalance(long balance) {\r\n this.balance += balance;\r\n }", "public void addToBalance(double depositBalanceAmount) ...
[ "0.75239956", "0.72612834", "0.7259704", "0.7207534", "0.71564245", "0.7141517", "0.68621534", "0.68443114", "0.6793707", "0.67718893", "0.6743939", "0.67382574", "0.6707096", "0.66908216", "0.6678069", "0.6653389", "0.6649198", "0.6644424", "0.6630556", "0.660483", "0.659541...
0.66074
19
check the possibility to get withdraw from user's balance. remove the amount from user's balance. insert into the log to the user.
public void withdraw(String accountNumber, int amount) { Connection conn; PreparedStatement ps, pp, ll; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; int lastBalance; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ conn=DriverManager.getConnection(url, username, password); String sql = "select balance,userId from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; String id = ""; while(rs.next()) { nowBalance=rs.getInt("balance"); id = rs.getString("userId"); } if (nowBalance<amount) { System.out.println("No Balance"); return; } lastBalance = nowBalance - amount; //System.out.println(lastBalance); String sql1 = "UPDATE "+this.name+" SET balance=? where accountNumber=?"; pp = (PreparedStatement) conn.prepareStatement(sql1); pp.setInt(1, lastBalance); pp.setString(2, accountNumber.toString()); pp.executeUpdate(); String logs = "withdraw : "+ amount+" / balance: "+String.valueOf(lastBalance); String sql11 = "insert into "+id+" (log) values (?)"; ll = (PreparedStatement) conn.prepareStatement(sql11); ll.setString(1, logs); ll.executeUpdate(); System.out.println("Ypu got $"+String.valueOf(amount)); }catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n ...
[ "0.75840133", "0.75668716", "0.73089445", "0.7296453", "0.72819346", "0.7265774", "0.7173449", "0.7118101", "0.7101004", "0.7068247", "0.70644", "0.700727", "0.70030993", "0.6975043", "0.6955422", "0.6939497", "0.6924733", "0.69240355", "0.6912266", "0.69058824", "0.69007516"...
0.6956385
14
balance check. to find toAccountNumber's table. remove the amount from sender's balance. add the amount from recevier's balance. insert into the log to each users.
public void wire(String accountNumber,int bankNumber, String toAccountNumber, int amount) { Connection conn; PreparedStatement ps, pp, ll, lp, ls, mm, nn; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; int lastBalance; int tolastBalance; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ conn=DriverManager.getConnection(url, username, password); String sql = "select balance,userId from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; String id = ""; while(rs.next()) { nowBalance=rs.getInt("balance"); id = rs.getString("userId"); } if (nowBalance<amount) { System.out.println("No Balance"); return; } lastBalance = nowBalance - amount; //System.out.println(lastBalance); String sql1 = "UPDATE "+this.name+" SET balance=? where accountNumber=?"; ls = (PreparedStatement) conn.prepareStatement(sql1); ls.setInt(1, lastBalance); ls.setString(2, accountNumber.toString()); ls.executeUpdate(); //to account conn=DriverManager.getConnection(url, username, password); String sql3 = "select bankName from bank where bankNumber=?"; ll= (PreparedStatement) conn.prepareStatement(sql3); ll.setString(1, String.valueOf(bankNumber).toString()); ResultSet rs3 = ll.executeQuery(); String toname = ""; while(rs3.next()) { toname=rs3.getString("bankName"); } String sql4 = "select balance,userId from "+toname+" where accountNumber=?"; pp= (PreparedStatement) conn.prepareStatement(sql4); pp.setString(1, accountNumber.toString()); ResultSet rs4 = pp.executeQuery(); int tonowBalance = 0; String toid = ""; while(rs4.next()) { tonowBalance=rs4.getInt("balance"); toid = rs4.getString("userId"); } tolastBalance = tonowBalance + amount; //System.out.println(lastBalance); String sql5 = "UPDATE "+toname+" SET balance=? where accountNumber=?"; lp = (PreparedStatement) conn.prepareStatement(sql5); lp.setInt(1, tolastBalance); lp.setString(2, toAccountNumber.toString()); lp.executeUpdate(); //log String logs = "wired : "+ amount+" to "+toAccountNumber+"/ balance: "+String.valueOf(lastBalance); String sql11 = "insert into "+id+" (log) values (?)"; mm = (PreparedStatement) conn.prepareStatement(sql11); mm.setString(1, logs); mm.executeUpdate(); System.out.println("You wired $"+String.valueOf(amount)); String logs1 = "get : "+ amount+" from " +accountNumber+ "/ balance: "+String.valueOf(tolastBalance); String sql12 = "insert into "+toid+" (log) values (?)"; nn = (PreparedStatement) conn.prepareStatement(sql12); nn.setString(1, logs1); nn.executeUpdate(); System.out.println("You got $"+String.valueOf(amount)); }catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\"...
[ "0.6761513", "0.6567016", "0.6426179", "0.6406179", "0.6311181", "0.6277706", "0.6251824", "0.6239178", "0.6154758", "0.61531943", "0.6104967", "0.60805225", "0.60364366", "0.59996", "0.5969901", "0.5968958", "0.5960818", "0.5938173", "0.59323275", "0.5920108", "0.59151924", ...
0.6784812
0
TODO Autogenerated method stub
public static void main(String[] args) { for(int i=3; i>=1; i--) { for(int j=i; j>=1; j--) { System.out.print(i); } System.out.println(); } }
{ "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
An interface for a tree data structure where nodes can have an arbitrary number of children.
public interface Tree<E> extends Iterable<E> { //accessor methods /** * Returns the Position of the root of the tree. * @return the Position of the root of the tree */ Position<E> root(); /** * Returns the Position of the parent of given Position. * @param p Position to check * @return the Position of the parent of given Position (or null if p is the root). * @throws IllegalArgumentException if Position isn't valid */ Position<E> parent(Position<E> p) throws IllegalArgumentException; /** * Returns the number of children of given Position. * @param p Position to check * @return the number of children of given Position * @throws IllegalArgumentException if Position isn't valid */ int numChildren(Position<E> p) throws IllegalArgumentException; /** * Returns the number of positions (and therefore elements) that are contained in tree. * @return the number of positions (and therefore elements) that are contained in tree */ int size(); //query methods /** * Tests whether given Position has at least one child. * @param p Position to check * @return true if given Position has at least one child, false otherwise * @throws IllegalArgumentException if Position isn't valid */ boolean isInternal(Position<E> p) throws IllegalArgumentException; /** * Tests whether given Position has any children. * @param p Position to check * @return true if given Position does not have children, false otherwise * @throws IllegalArgumentException if Position isn't valid */ boolean isExternal(Position<E> p) throws IllegalArgumentException; /** * Tests whether given Position is the root of the tree. * @param p Position to check * @return true if given Position is the root, false otherwise * @throws IllegalArgumentException if Position isn't valid */ boolean isRoot(Position<E> p) throws IllegalArgumentException; /** * Tests whether tree contains any Positions (and therefore elements). * @return true if tree doesn't contain any Positions, false otherwise */ boolean isEmpty(); //additional methods /** * Returns an iterable Collection containing the children of given Position. * @param p Position to check * @return an iterable Collection containing the children of given Position * @throws IllegalArgumentException if Position isn't valid */ Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException; /** * Returns an iterable Collection of all Positions of the tree. * @return an iterable Collection of all Positions of the tree. */ Iterable<Position<E>> positions(); /** * Returns an iterator for all elements in the tree. * Ensures tree itself is iterable. * @return an iterator for all elements in the tree */ @Override Iterator<E> iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TreeNode {\n Collection<TreeNode> getChildren();\n boolean isDirectory();\n}", "List<Node<T>> children();", "public interface Tree<T extends Comparable<T>> {\n public boolean isEmpty();\n\n public int size();\n\n public T min();\n\n public T max();\n\n public boolean contains(T elem...
[ "0.7310871", "0.7023373", "0.6913325", "0.6864791", "0.6827212", "0.6805656", "0.673913", "0.668663", "0.6686099", "0.66259325", "0.66056156", "0.6594922", "0.6582207", "0.65821236", "0.657973", "0.6483286", "0.63617414", "0.6349703", "0.63451475", "0.6343801", "0.633805", ...
0.6601628
11
accessor methods Returns the Position of the root of the tree.
Position<E> root();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRoot() {\n return _root;\n }", "public int getRoot(){\n\t\t\treturn root;\n\t\t}", "public int getTreeIndex() {\n\t\treturn tree;\n\t}", "public int getRootX() {\n return this.mX + this.mOffsetX;\n }", "public abstract Position<E> getLeftRoot();", "public int get...
[ "0.7333948", "0.72187614", "0.71009237", "0.70257115", "0.70037097", "0.68907386", "0.6855207", "0.6825128", "0.6650911", "0.6613078", "0.6608307", "0.6584728", "0.6547098", "0.65444684", "0.65285736", "0.65037864", "0.6493481", "0.6465519", "0.64422894", "0.64208525", "0.641...
0.7146111
2
Returns the Position of the parent of given Position.
Position<E> parent(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int Parent(int position) {\r\n\t\treturn position/2;\r\n\t}", "public abstract Position<E> getLeftParent(Position<E> p);", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "private int parent(int pos)\n {\t\n return (int)Math.ceil((double)Math.ma...
[ "0.76465875", "0.702264", "0.70076305", "0.68443805", "0.642391", "0.641039", "0.6396616", "0.6349345", "0.63427705", "0.6330353", "0.6324198", "0.6324198", "0.6324198", "0.6324198", "0.62999535", "0.62999535", "0.62999535", "0.6288638", "0.6275332", "0.6218232", "0.6199318",...
0.70302945
1
Returns the number of children of given Position.
int numChildren(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getChildrenCount(int groupPosition) {\n return getGroup(groupPosition).getChildrenCount();\n }", "@Override\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn listChildren.get(listTitles.get(groupPosition)).size();\n\t}", "@Override\n public int getChildrenCo...
[ "0.75601965", "0.754064", "0.7535502", "0.75138605", "0.749001", "0.7483975", "0.74751234", "0.7457917", "0.73712796", "0.7330825", "0.7322761", "0.7282955", "0.7276247", "0.72332424", "0.7219335", "0.72018665", "0.7201855", "0.7201291", "0.72000617", "0.71338403", "0.7128475...
0.7560726
0
Returns the number of positions (and therefore elements) that are contained in tree.
int size();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n ...
[ "0.75499517", "0.7384061", "0.73581654", "0.72858506", "0.7223957", "0.71861595", "0.7178298", "0.7172881", "0.7160984", "0.7139664", "0.7122762", "0.7122762", "0.7094848", "0.70782876", "0.7073288", "0.70519346", "0.7051082", "0.70423377", "0.70423377", "0.70389783", "0.7032...
0.0
-1
query methods Tests whether given Position has at least one child.
boolean isInternal(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChildren();", "public boolean containsChild() {\n return !(getChildList().isEmpty());\n }", "public abstract boolean hasLeftChild(Position<E> p);", "private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\...
[ "0.7088544", "0.7057974", "0.6981565", "0.6929411", "0.67060465", "0.66240954", "0.66161084", "0.6591643", "0.6540021", "0.65123355", "0.64940894", "0.64940894", "0.6449241", "0.64283144", "0.638901", "0.638901", "0.6353791", "0.630398", "0.6256632", "0.620381", "0.61800396",...
0.0
-1
Tests whether given Position has any children.
boolean isExternal(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChildren();", "public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}", "@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ ...
[ "0.78347987", "0.7655872", "0.7650951", "0.7617872", "0.75482464", "0.75482464", "0.7527676", "0.74995124", "0.74962354", "0.7490506", "0.7416786", "0.73232377", "0.7300659", "0.722584", "0.69654596", "0.69206136", "0.69066846", "0.6869255", "0.67636466", "0.65802956", "0.655...
0.0
-1
Tests whether given Position is the root of the tree.
boolean isRoot(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isRoot(Position<E> p);", "public boolean isRoot()\r\n\t{\r\n\t\treturn (m_parent == null);\r\n\t}", "public boolean isRoot() {\r\n return (_parent == null);\r\n }", "public boolean isRoot() {\n return !hasParent();\n }", "default boolean isRoot() {\n if (i...
[ "0.7960154", "0.7250995", "0.717927", "0.7146708", "0.7072625", "0.701228", "0.6956644", "0.6920884", "0.68997085", "0.6821212", "0.6803034", "0.6736485", "0.67071986", "0.6690583", "0.66703486", "0.666091", "0.66507375", "0.65838504", "0.65545446", "0.6483741", "0.64370906",...
0.76554066
1
Tests whether tree contains any Positions (and therefore elements).
boolean isEmpty();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChildNodes();", "boolean hasChildren();", "public abstract boolean isRoot(Position<E> p);", "public interface Tree<E> extends Iterable<E>\r\n{\r\n //accessor methods\r\n /**\r\n * Returns the Position of the root of the tree.\r\n * @return the Position of the root of the tree\r\n ...
[ "0.69039893", "0.68967533", "0.67058593", "0.66558504", "0.6618011", "0.65028477", "0.6481072", "0.6468154", "0.6468154", "0.6468154", "0.6468154", "0.6462141", "0.6462141", "0.6433891", "0.6433605", "0.64101106", "0.6385131", "0.6327524", "0.6327234", "0.6266547", "0.6266547...
0.0
-1
additional methods Returns an iterable Collection containing the children of given Position.
Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<ChildType> getChildren();", "@Nonnull\n Iterable<? extends T> getChildren();", "protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }", "abs...
[ "0.77312875", "0.7320211", "0.7116451", "0.7089127", "0.70829", "0.7079006", "0.7055877", "0.7037648", "0.7034002", "0.695605", "0.6944902", "0.6921801", "0.6894887", "0.6872574", "0.6856538", "0.68552285", "0.6821626", "0.68140835", "0.6811373", "0.68017393", "0.6771212", ...
0.77882576
0
Returns an iterable Collection of all Positions of the tree.
Iterable<Position<E>> positions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<PortfolioPosition> getPositions() {\n return _positions;\n }", "public Position[] getPositions() {\n return _positions;\n }", "public List<Position> getPositions(){\r\n List<Position> listPosition = new ArrayList();\r\n int row=currentPosition.getRow(),column=currentPositi...
[ "0.7091416", "0.6883806", "0.68649584", "0.6808123", "0.6672328", "0.6635945", "0.65641105", "0.65624285", "0.649637", "0.64754784", "0.6431632", "0.6429634", "0.6377362", "0.6374483", "0.63697743", "0.634624", "0.6317248", "0.6195203", "0.61783385", "0.6176028", "0.6173296",...
0.7997695
0
Returns an iterator for all elements in the tree. Ensures tree itself is iterable.
@Override Iterator<E> iterator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract TreeIter<T> iterator();", "public Iterator<Object> iterator()\r\n {\r\n return new MyTreeSetIterator(root);\r\n }", "@Override\n public Iterator<T> iterator() {\n return new IteratorTree(this.root, this.modCount);\n }", "public interface TreeIterable<T> extends Iterable<T>{\...
[ "0.78662294", "0.7456184", "0.73565006", "0.7348381", "0.73353314", "0.73298913", "0.7176568", "0.7087759", "0.69816446", "0.6969877", "0.69050044", "0.68064326", "0.6799523", "0.6766345", "0.67618406", "0.67540777", "0.6680443", "0.6678775", "0.66557544", "0.65775114", "0.65...
0.596924
77
Utility method for quick printing to console
void p(Object o) { utils.log(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n void print();", "public static void print() {\r\n System.out.println();\r\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public void println() { System.out.println( toString() ); }", "void showInConsole();", "public void print() {\r\n\t\t System.out.p...
[ "0.76695764", "0.73383504", "0.72964615", "0.7281709", "0.7276981", "0.72625697", "0.7206026", "0.71252286", "0.7121794", "0.71115553", "0.71106786", "0.7076087", "0.70324486", "0.7015263", "0.6997165", "0.6987129", "0.6987129", "0.6987129", "0.6987129", "0.6953966", "0.69257...
0.0
-1
file use to save
public File getDataSaveFile() { return dataSaveFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(File file);", "File getSaveFile();", "void save(String fileName);", "void save(String filename);", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public boolean save(String file);"...
[ "0.80341303", "0.7802521", "0.77949286", "0.77870667", "0.75314677", "0.751276", "0.7505195", "0.74862266", "0.73834646", "0.7374541", "0.72952837", "0.72823167", "0.7281276", "0.7232519", "0.72094095", "0.71850514", "0.7151951", "0.7132313", "0.70922285", "0.7065146", "0.706...
0.0
-1
notify all listeners in listenerHashSet.
public boolean notifyListeners(DataEvent<DataElementType> event) { try { if (null == listenerHashSet) { return false; } Iterator iter = listenerHashSet.iterator(); ArrayList<Thread> thread_list = new ArrayList<>(listenerHashSet.size()); while (iter.hasNext()) { SensorDataListener<DataElementType> listener = (SensorDataListener<DataElementType>) iter.next(); Runnable task = () -> { try { listener.SensorDataEvent(event); } catch (InterruptedException e) { e.printStackTrace(); } }; Thread t = new Thread(task); t.start(); thread_list.add(t); } for(Thread t:thread_list){ t.join(); } } catch (Exception e) { e.printStackTrace(); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void fire(HashSet<Consumer<SpanNode<T>>> listeners){\n for (Consumer<SpanNode<T>> listener: listeners) listener.accept(this);\n }", "private void notifyListeners() \n\t{\n\t\tSystem.out.println(\"Event Source: Notifying all listeners\");\n\n\t\tfor(IListener listener : listeners)\n\t\t{\n...
[ "0.7122317", "0.68158764", "0.66327965", "0.65905684", "0.6574038", "0.6525433", "0.646498", "0.64599496", "0.63984704", "0.6368882", "0.63354236", "0.6303136", "0.6292097", "0.6191815", "0.61672395", "0.6162506", "0.61621827", "0.6153037", "0.6136554", "0.6128948", "0.612563...
0.58472973
43
Created by Administrator on 2016/12/6.
public interface IPublishArticle { @POST(ServerInterface.PUBLISH_ARTICLE) @Multipart Call<String> publishArticle(@Part MultipartBody.Part pic, @Part("type") String type, @Part("friendCircle.user.id") String userId, @Part("friendCircle.topic.id") String topicId, @Part("friendCircle.msg") String content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Ov...
[ "0.6197841", "0.6133664", "0.6056708", "0.60118645", "0.59580964", "0.59399956", "0.5914657", "0.59085876", "0.5887657", "0.58692795", "0.58692795", "0.5830893", "0.5819857", "0.5819857", "0.5805036", "0.58040106", "0.5797197", "0.57889426", "0.5788737", "0.5781579", "0.57657...
0.0
-1
do what you need to do
private void restoreSleepMode(){ wl.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public void processing();", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public void execute(){\n\t\t\n\t}", "protected void additionalProcessing()...
[ "0.6227504", "0.60906005", "0.5969728", "0.5939817", "0.58910096", "0.5880546", "0.58769715", "0.5873356", "0.58411336", "0.579991", "0.57992625", "0.5783903", "0.5773654", "0.5769613", "0.5768523", "0.5753223", "0.5694186", "0.56912005", "0.56798464", "0.5675148", "0.5653572...
0.0
-1
Expected number of proxies
@Schema(required = true, description = "Expected number of proxies") public Integer getExpectedProxiesCount() { return expectedProxiesCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPeerURLsCount();", "public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t...
[ "0.62589735", "0.6143268", "0.6104526", "0.5886667", "0.5870095", "0.5861299", "0.58572906", "0.58542573", "0.584562", "0.5844063", "0.58053005", "0.5798796", "0.57741797", "0.5756298", "0.56767166", "0.5671812", "0.56626356", "0.5654432", "0.56484324", "0.56465423", "0.56465...
0.7067267
0
Secret string for signature generation
@Schema(required = true, description = "Secret string for signature generation") public String getSignatureSecret() { return signatureSecret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSecret();", "String getSecret();", "String getUniqueSignature();", "public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }", "private String generateSecretKey()...
[ "0.7524962", "0.7423396", "0.72570646", "0.7208524", "0.7047588", "0.69776434", "0.6966646", "0.6803699", "0.67820364", "0.6767182", "0.65909976", "0.65909976", "0.65909976", "0.6511597", "0.6409063", "0.6398827", "0.6395951", "0.6355108", "0.63476586", "0.63198125", "0.63170...
0.7275947
2
Signature validity in milliseconds
@Schema(required = true, description = "Signature validity in milliseconds") public Long getSignatureValidForMillis() { return signatureValidForMillis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSA...
[ "0.6680803", "0.64696187", "0.6417674", "0.62471515", "0.6138094", "0.60706615", "0.60706615", "0.60496086", "0.6028363", "0.6008542", "0.59484595", "0.5942024", "0.5938955", "0.59221363", "0.5914019", "0.58342856", "0.582417", "0.5812463", "0.58076537", "0.58005285", "0.5800...
0.777445
0
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.7886073", "0.75506985", "0.74986166", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", ...
0.0
-1
Called by the board to initialise the action cache
protected static void initActions(int _boardSize) { boardSize = _boardSize; if (actions == null) actions = new Action[Player.values().length][]; for (Player p : Player.values()) { int i = p.ordinal(); actions[i] = new Action[boardSize]; for (int j = 0; j < boardSize; j++) actions[i][j] = new Action(p, j); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "public abstract void init_actions() throws Exception;", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "private void init() {\n clearCaches();\n }", "protected void resetActionsC...
[ "0.7114121", "0.6802696", "0.6761202", "0.66515607", "0.6650088", "0.6635021", "0.65453184", "0.65334994", "0.6526948", "0.65033466", "0.6468701", "0.6468701", "0.6468701", "0.6468701", "0.6468701", "0.6443508", "0.64348894", "0.64217013", "0.64217013", "0.63982093", "0.63982...
0.5926958
53
Unfortunately required by hibernate
ClassLoader getNewTempClassLoader() { return new ClassLoader(getClassLoader()) { }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn \"Hibernate\";\n\t}", "public AbstractHibernateDAOSupport() {\n super();\n }", "public static void main(String[] args) throws Exception {\n\r\n Session session = ourSessionFactory.openSession();\r\n Transaction tx = null;\r\n\r\n ...
[ "0.61058545", "0.6044256", "0.603981", "0.602379", "0.5989853", "0.5949583", "0.59016216", "0.58673644", "0.58625454", "0.5854164", "0.584983", "0.5825091", "0.57698077", "0.57690406", "0.5766387", "0.5763563", "0.57609034", "0.575974", "0.57424843", "0.57159126", "0.57145286...
0.0
-1
Created by Leo on 2018/12/15.
public interface ErrorCodeException { String getErrorCode(); default int getHttpCode() { return 400; } ; default String getHttpDesc() { return "Bad Request"; } ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6066086", "0.5742465", "0.57256687", "0.56617874", "0.5646751", "0.5609635", "0.5609635", "0.56050307", "0.5580791", "0.5574679", "0.5546965", "0.55425817", "0.5516529", "0.55076206", "0.5497008", "0.54799056", "0.5477826", "0.547318", "0.5461658", "0.5453545", "0.5449234"...
0.0
-1
String observacaoHorasAcima = setObservacaoHorasAcima(); String observacaoHorasAbaixo = setObservacaoHorasAbaixo();
private void setObservacoesHoras( int historicoAlterado, int exclusao, int inclusao, int horasAcima15m, int horasAcima30m, int horasAcima1h, int horasAcima3h, int horasAcima7h, int horasAcima12h, int horasAcima23h, int horasAbaixo15m, int horasAbaixo30m, int horasAbaixo1h, int horasAbaixo3h, int horasAbaixo5h) { String observacaoHorasInconsistencia = setObservacaoHorasInconsistentes(); String observacaoInclusao = ""; if (inclusao > 1) { observacaoInclusao = (inclusao == 2 ? "1 inclusão manual" : ((inclusao-1) + " inclusões manual")); } String observacaoExclusao = ""; if (exclusao > 1) { observacaoExclusao = (exclusao == 2 ? "1 apagado" : ((exclusao-1) + " apagados")); } String historicoAlteracao = ""; if (historicoAlterado > 1) { historicoAlteracao = (historicoAlterado == 2 ? "1 histórico alteração" : ((historicoAlterado-1) + " históricos de alterações")); } this.observacaoHoras = ""; //this.observacaoHoras += observacaoHorasAcima == "" ? "" : "<br>"+observacaoHorasAcima; //this.observacaoHoras += observacaoHorasAbaixo == "" ? "" : "<br>"+observacaoHorasAbaixo; this.observacaoHoras += observacaoHorasInconsistencia == "" ? "" : "<br>"+observacaoHorasInconsistencia; this.observacaoHoras += observacaoInclusao == "" ? "" : "<br>"+observacaoInclusao; this.observacaoHoras += observacaoExclusao == "" ? "" : "<br>"+observacaoExclusao; this.observacaoHoras += historicoAlteracao == "" ? "" : "<br>"+historicoAlteracao; if (this.ausenciaSolicitacoes != null && !this.ausenciaSolicitacoes.isEmpty()) { List<AusenciaSolicitacao> ferias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()=="férias").collect(Collectors.toList()); List<AusenciaSolicitacao> ausencias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()!="férias").collect(Collectors.toList()); } // folgas / ferias }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHorario(String horario);", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente(...
[ "0.6807989", "0.65826863", "0.6473995", "0.63609296", "0.63605845", "0.63457006", "0.634348", "0.6342363", "0.6291898", "0.62556285", "0.6250112", "0.6224845", "0.6201879", "0.6170074", "0.616568", "0.615917", "0.61368114", "0.61269057", "0.6110095", "0.6085609", "0.6001745",...
0.7473859
0
Check if it is possible to go to position `(x, y)` from the current position. The function returns false if the cell has a value 0, or it is already visited.
private static boolean isSafe(int mat[][], int visited[][], int x, int y) { if (mat[x][y] == 0 || visited[x][y] != 0) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canMoveTo(int x, int y) {\n for (Cell c : this.board) {\n if (c.x == x && c.y == y) {\n return !c.isFlooded;\n }\n }\n return false;\n }", "public boolean isReachable(int x, int y){\n return (x >= 0 && x < maze.length && y >= 0 && y < maze[0].length && maze[x][y]...
[ "0.68586755", "0.6779791", "0.6675035", "0.6649165", "0.66297513", "0.65838116", "0.65298027", "0.64933777", "0.6435982", "0.64147", "0.63704467", "0.63233316", "0.6322987", "0.63135713", "0.6310812", "0.62953424", "0.6284914", "0.62651896", "0.62427634", "0.6241796", "0.6236...
0.0
-1
Returns false if not a valid position
private static boolean isValid(int x, int y) { if (x < M && y < N && x >= 0 && y >= 0) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "private boolean...
[ "0.76883996", "0.7527309", "0.7527309", "0.7527309", "0.7527309", "0.75262636", "0.7434391", "0.74244857", "0.7292485", "0.7146059", "0.7146059", "0.7094296", "0.69705224", "0.6964137", "0.69480795", "0.6910443", "0.68979245", "0.68979245", "0.68781054", "0.6865954", "0.68535...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { root = inflater.inflate(R.layout.fragment_attention, container, false); listView = root.findViewById(R.id.viewAttention); btnAdd = root.findViewById(R.id.btnAdd); btnAdd.setOnClickListener(this); attentionDao = new AttentionDao(getContext()); items = new ArrayList<>(); List<AttentionRecord> tmp = attentionDao.getAll(); for(int i = 0; i < tmp.size(); i ++){ AttentionRecord e = tmp.get(i); Map<String,Object> item = new HashMap<>(); item.put("id",e.id); item.put("addTime",e.addTime); items.add(item); } MyAttentionApt simpleAdapter = new MyAttentionApt(getActivity(),items,R.layout.simple_item_attention, new String[]{"id","addTime"}, new int[]{R.id.itemId,R.id.itemAddTime}); listView.setAdapter(simpleAdapter); listView.setOnItemLongClickListener(onItemLongClickListener); return root; }
{ "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
/ access modifiers changed from: protected
public final void zza(zze zze, TaskCompletionSource<String> taskCompletionSource) throws RemoteException { taskCompletionSource.setResult(zze.zzbr()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
Interfaccia di politica di sconto
public interface Sconto { /** * Restituisce il valore dello sconto * @param costoIntero costo di tutti i biglietti snza sconto * @return importo dello sconto */ public double getImportoSconto(double costoIntero); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRes...
[ "0.6133665", "0.60442", "0.59917784", "0.595939", "0.5911782", "0.58939534", "0.5789125", "0.57744795", "0.56579506", "0.56264085", "0.56041235", "0.5603898", "0.5602211", "0.5571922", "0.55714846", "0.5569173", "0.5562015", "0.5547778", "0.554041", "0.55400586", "0.5539657",...
0.5642528
9
Restituisce il valore dello sconto
public double getImportoSconto(double costoIntero);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getValor();", "public java.lang.String getValor();", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public int getValore() {\n return valore;\n }", "String getVal();", "public int getValor() {\r\n return valor;\r\n }", "publ...
[ "0.6864691", "0.6609909", "0.6491137", "0.6271489", "0.60922104", "0.6073484", "0.60147786", "0.5964978", "0.5960762", "0.5902276", "0.589629", "0.58801574", "0.58472526", "0.5819265", "0.58097595", "0.5788694", "0.57801086", "0.575709", "0.5751117", "0.5740151", "0.57290435"...
0.0
-1
Creates a new MUnaryPostOperator object
public MUnaryPostOperator(String name, int index, ArrayList<String>scan) { super( isUnaryPostOperator(name)?name:""); if(this.getName().equals("")){ throw new IndexOutOfBoundsException("Invalid Name For Unary Post-MNumber MOperator." ); }//end if else{ this.index=(index>=0&&scan.get(index).equals(name))?index:-1; this.precedence=MOperator.getPrecedence(name); }//end else if(this.index==-1){ throw new IndexOutOfBoundsException("Invalid Index" ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Expr unaryPost(Position pos, X10Unary_c.Operator op, Expr e) throws SemanticException {\n Type ret = e.type();\n Expr one = getLiteral(pos, ret, 1);\n Assign.Operator asgn = (op == X10Unary_c.POST_INC) ? Assign.ADD_ASSIGN : Assign.SUB_ASSIGN;\n X10Binary_c.Operator bin = (op...
[ "0.69850135", "0.5658778", "0.55724204", "0.5540799", "0.55006725", "0.5446669", "0.5340541", "0.52417845", "0.5214555", "0.517174", "0.515017", "0.5067778", "0.5059232", "0.500739", "0.50050783", "0.5000366", "0.4971969", "0.49655065", "0.48926598", "0.4880556", "0.4870914",...
0.62088877
1
Carefully interpretes the correct arrangement of a loose math statement for objects of this class and applies the correct one to the Function object.
public static void assignCompoundTokens(ArrayList<String>scan){ for(int i=0;i<scan.size();i++){ if( isUnaryPostOperator( scan.get(i) ) ){ if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ int index=i-1; int j=i; while(isUnaryPostOperator(scan.get(j))){ ++j; } scan.add(j, ")"); scan.add(index,"("); i=j+1; }//end if else if(isClosingBracket(scan.get(i-1))){ int index=MBracket.getComplementIndex(false, i-1, scan); int j=i; while(isUnaryPostOperator(scan.get(j))){ ++j; } scan.add(j, ")"); scan.add(index,"("); i=j+1; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MathObject evaluate(Function input);", "public void doMath();", "private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Functio...
[ "0.6507766", "0.6129074", "0.5831082", "0.5822963", "0.56900924", "0.5688695", "0.56824726", "0.56766236", "0.5668551", "0.5630792", "0.5621324", "0.559014", "0.5478654", "0.5463613", "0.5462498", "0.5460476", "0.5415819", "0.5395154", "0.53715444", "0.5361533", "0.5331081", ...
0.0
-1
This methods checks whether a given location is already used for some product inside store
private boolean isAssignedPosition(String location) { return productTypeRepository.findAll().stream().anyMatch(p -> p.getLocation().equals(location)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean locationExists(Location location);", "boolean hasLocation();", "boolean hasLocation();", "public abstract Boolean isExist(LocationDto location);", "SkuAvailability lookupSKUAvailabilityForLocation(Long skuId, Long locationId, boolean realTime);", "private boolean isOccupied(Locati...
[ "0.6602385", "0.64715296", "0.64715296", "0.62492967", "0.6103133", "0.6031783", "0.59648377", "0.5909889", "0.58031434", "0.5797876", "0.5772252", "0.5726362", "0.5699897", "0.5665044", "0.5664258", "0.56535745", "0.5636929", "0.5636234", "0.5626882", "0.5618588", "0.5587164...
0.6848571
0
Sets the primary key of this vcms status.
public void setPrimaryKey(long primaryKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGastoCategoria.setPrimaryKey(primaryKey);\n\t}", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "@Ov...
[ "0.7039508", "0.66226876", "0.6602422", "0.6503189", "0.64841753", "0.64715385", "0.6452306", "0.6425876", "0.6414658", "0.6394547", "0.6394547", "0.6394547", "0.63649833", "0.63268125", "0.6320981", "0.6298696", "0.6280778", "0.6274412", "0.6251746", "0.6250901", "0.6229612"...
0.6386522
28
Returns the status ID of this vcms status.
public long getStatusId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "public int getStatusId() {\n return _statusId;\n }", "public String getIdStatus() {\n return idStatus;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue()...
[ "0.82242715", "0.80571854", "0.7467378", "0.7187053", "0.7187053", "0.7187053", "0.7187053", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.70190185", "0.70190185", "0.70190185", "0.69858956", "0.69858956", "0.69858956", "0.69858...
0.76191527
2
Sets the status ID of this vcms status.
public void setStatusId(long statusId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }", "public void setStatusId(int statusId) {\n _statusId = statusId;\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public abstract void setStatusId(long statusId);", "publ...
[ "0.79362994", "0.776962", "0.70378226", "0.689552", "0.68954706", "0.6804938", "0.6804938", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0...
0.77831054
1
Returns the company ID of this vcms status.
@Override public long getCompanyId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\n ...
[ "0.77015495", "0.7664906", "0.7588451", "0.7588451", "0.7546671", "0.75388587", "0.75150657", "0.75150657", "0.75150657", "0.7460279", "0.7451875", "0.7451875", "0.7447211", "0.7411139", "0.72743857", "0.71936804", "0.7182287", "0.71142054", "0.71142054", "0.71142054", "0.711...
0.71423984
19
Sets the company ID of this vcms status.
@Override public void setCompanyId(long companyId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(long companyId);", ...
[ "0.7635744", "0.7458757", "0.744766", "0.739295", "0.739295", "0.739295", "0.739295", "0.739295", "0.73099256", "0.73099256", "0.7298405", "0.7298405", "0.72365904", "0.72317725", "0.7205806", "0.71807986", "0.71807986", "0.71807986", "0.7163421", "0.70374423", "0.6984424", ...
0.7478215
3
Returns the group ID of this vcms status.
public long getGroupId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getGroup_id() {\n return group_id;\n }", "public Long getGroupID()\n {\n return groupID;\n }", "public int getIdGroup() {\n return idGroup;\n }", "public int getGroupID() {\n return groupID;\n }", "public String getGroupId() {\n\t\treturn groupId;\n\...
[ "0.715478", "0.70477504", "0.70462245", "0.696615", "0.69624573", "0.6945067", "0.6934586", "0.69344825", "0.68975234", "0.68975234", "0.6896082", "0.6890139", "0.6884585", "0.6880722", "0.6878142", "0.6878142", "0.68657386", "0.6847539", "0.6825118", "0.68142056", "0.6809228...
0.6554351
49
Sets the group ID of this vcms status.
public void setGroupId(long groupId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGroupID(int groupID) {\n this.groupID = groupID;\n }", "public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }", "public void setGroup_id(Long group_id) {\n this.group_id = group_id;\n }", "public void setGroup(String group) throws Invalid...
[ "0.66222405", "0.64083105", "0.63329434", "0.6292486", "0.62849885", "0.6257206", "0.6140181", "0.61399895", "0.6131386", "0.61294436", "0.610791", "0.6091815", "0.60475045", "0.603067", "0.6030138", "0.60246754", "0.5992557", "0.59895444", "0.5986439", "0.5986439", "0.598643...
0.5967674
26
Returns the created date of this vcms status.
public Date getCreatedDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;...
[ "0.7710185", "0.7684611", "0.7684611", "0.7579652", "0.7579652", "0.75736785", "0.75729716", "0.75676024", "0.75676024", "0.7559974", "0.7559974", "0.7559974", "0.7559974", "0.75359565", "0.7525446", "0.7525446", "0.75050694", "0.75050694", "0.7494009", "0.74852663", "0.74852...
0.72490287
63
Sets the created date of this vcms status.
public void setCreatedDate(Date createdDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n ...
[ "0.7615301", "0.7441088", "0.7441088", "0.7427418", "0.7427418", "0.7385075", "0.7385075", "0.7385075", "0.7385075", "0.7376386", "0.734623", "0.734623", "0.73374903", "0.7241315", "0.7241315", "0.7207511", "0.7103784", "0.7101526", "0.7101526", "0.7101526", "0.7095726", "0...
0.7197631
16
Returns the created by user of this vcms status.
@AutoEscape public String getCreatedByUser();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getCreatedByUser();", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public Long getCreateduser() {\n return createduser;\n }", "public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}", "public BoxUser.Info getCreatedBy() {\n retu...
[ "0.75586677", "0.747298", "0.7407453", "0.7380107", "0.72098994", "0.7136893", "0.71127594", "0.71127594", "0.71127594", "0.71127594", "0.7106994", "0.7098912", "0.7098912", "0.7096605", "0.7096605", "0.70889664", "0.7085737", "0.7022782", "0.7016456", "0.7016456", "0.7016456...
0.69204265
25
Sets the created by user of this vcms status.
public void setCreatedByUser(String createdByUser);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedByUser(long createdByUser);", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "void setCreateb...
[ "0.73076475", "0.70916635", "0.70133543", "0.68616647", "0.68172103", "0.6804077", "0.67988205", "0.6780111", "0.6774488", "0.67222357", "0.6704511", "0.6704511", "0.67035425", "0.6700776", "0.66482615", "0.66417325", "0.66412276", "0.66412276", "0.66412276", "0.66412276", "0...
0.71617645
1
Returns the modified date of this vcms status.
public Date getModifiedDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDatemodified() {\n return datemodified;\n }", "public String getDatemodified() {\n\t\treturn datemodified;\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", ...
[ "0.78470516", "0.7810164", "0.77208847", "0.77068657", "0.7691479", "0.7691479", "0.76443774", "0.7642032", "0.7642032", "0.76397544", "0.76361793", "0.76230484", "0.75616336", "0.74710804", "0.74185133", "0.7395894", "0.73932815", "0.7365711", "0.7356664", "0.7352733", "0.73...
0.7451694
15
Sets the modified date of this vcms status.
public void setModifiedDate(Date modifiedDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGtStatus.setModifiedDate(modifiedDate);\n\t}", "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modif...
[ "0.7551597", "0.7482998", "0.73284984", "0.7259171", "0.7259171", "0.72494596", "0.72494596", "0.7215061", "0.71688735", "0.71688735", "0.7129647", "0.7077799", "0.70462734", "0.6905126", "0.6902762", "0.6902135", "0.68728006", "0.6868324", "0.6868324", "0.6868324", "0.685309...
0.7283938
5
Returns the modified by user of this vcms status.
@AutoEscape public String getModifiedByUser();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getModifiedUser() {\n\t\treturn modifiedUser;\n\t}", "public Long getModifieduser() {\n return modifieduser;\n }", "public long getModifiedByUser();", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public Integer getModifiedUserId(...
[ "0.7896761", "0.7878203", "0.77876246", "0.7525876", "0.7482051", "0.7482051", "0.7383881", "0.7383881", "0.738341", "0.73749423", "0.7365329", "0.7332307", "0.7271853", "0.7271853", "0.7271853", "0.7271853", "0.7271853", "0.72485733", "0.71815413", "0.709213", "0.70603913", ...
0.73448575
11
Sets the modified by user of this vcms status.
public void setModifiedByUser(String modifiedByUser);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setModifiedByUser(long modifiedByUser);", "public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}", "public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n t...
[ "0.7710045", "0.7423283", "0.73368275", "0.72854304", "0.7284709", "0.7284709", "0.7284709", "0.7256602", "0.70542073", "0.70404", "0.70356154", "0.7005366", "0.7005366", "0.69329", "0.6925533", "0.69110376", "0.6844359", "0.6830165", "0.6798827", "0.6798827", "0.67786914", ...
0.75494826
1
Returns the name of this vcms status.
@AutoEscape public String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatusName() {\n return status.getText();\n }", "public String getStatusName() {\r\n\t\treturn statusName;\r\n\t}", "@Override\n\tpublic java.lang.String getStatusName() {\n\t\treturn _dmGtStatus.getStatusName();\n\t}", "public String status() {\n return statusEnum().toStrin...
[ "0.8386386", "0.82226294", "0.7669694", "0.7202327", "0.7140673", "0.71249336", "0.7102905", "0.7041333", "0.7016987", "0.70155495", "0.70095867", "0.70095867", "0.7008836", "0.698827", "0.698827", "0.698827", "0.698827", "0.698827", "0.6985787", "0.69820595", "0.6973781", ...
0.0
-1
Sets the name of this vcms status.
public void setName(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStatusName(String statusName);", "public void setStatusName(String statusName) {\r\n\t\tthis.statusName = statusName;\r\n\t}", "@Override\n\tpublic void setStatusName(java.lang.String statusName) {\n\t\t_dmGtStatus.setStatusName(statusName);\n\t}", "public void setName(String val) {\n n...
[ "0.7616834", "0.7483165", "0.72243524", "0.6951034", "0.69276524", "0.68436587", "0.67966783", "0.6775026", "0.6775026", "0.6775026", "0.6748349", "0.6748349", "0.6748349", "0.6726552", "0.6712161", "0.6700672", "0.66971046", "0.6695257", "0.6693822", "0.66865623", "0.6686562...
0.0
-1
Returns the description of this vcms status.
@AutoEscape public String getDescription();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatus() {\n return status.toString();\n }", "public String getStatusDetails() { return statusDetails; }", "public String getStatusString() {\n return status.toString();\n }", "public String status() {\n return statusEnum().toString();\n }", "public String get...
[ "0.7630656", "0.757325", "0.75270736", "0.7508538", "0.74905306", "0.74836683", "0.7474039", "0.7474039", "0.7474039", "0.7474039", "0.7474039", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", ...
0.0
-1
Sets the description of this vcms status.
public void setDescription(String description);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Status(String description) {\n this.description = description;\n }", "@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_dmGtStatus.setDescription(description);\n\t}", "public void setStatusDecription(String statusDecription) {this.statusDecription = statusDecription;}", ...
[ "0.7417339", "0.7194861", "0.68398696", "0.6693777", "0.66253084", "0.66030097", "0.65620756", "0.64888984", "0.64103514", "0.640991", "0.63958675", "0.63434684", "0.62951577", "0.62917453", "0.6258107", "0.6258107", "0.6258107", "0.62578934", "0.62563056", "0.62158954", "0.6...
0.0
-1
Returns the css class of this vcms status.
@AutoEscape public String getCssClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getSeverityClass(int status)\n/* */ {\n/* 611 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n...
[ "0.6858537", "0.68455625", "0.6829162", "0.6582034", "0.6570819", "0.6540505", "0.6454372", "0.6440477", "0.6402998", "0.6402998", "0.6384969", "0.63764155", "0.63601375", "0.6328864", "0.6314075", "0.6314075", "0.6314075", "0.6314075", "0.6314075", "0.6309119", "0.6309119", ...
0.0
-1
Sets the css class of this vcms status.
public void setCssClass(String cssClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final native void setCssClass(String cssClass) /*-{\r\n\t\tthis.cssClass = cssClass;\r\n\t}-*/;", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "void setStatus(java.lang.String status);", "void ...
[ "0.66268754", "0.6159346", "0.60069716", "0.5958716", "0.5942522", "0.5928981", "0.59084666", "0.5895605", "0.58846164", "0.5869175", "0.5840203", "0.5835988", "0.5819035", "0.5799196", "0.5799196", "0.57972586", "0.57879776", "0.57879776", "0.5780897", "0.57488555", "0.57420...
0.7033539
0
Returns the text color of this vcms status.
@AutoEscape public String getTextColor();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int textColor() {\n\t\treturn textColor;\n\t}", "public String getTextColor();", "public int getTextColor() {\n return mTextColor;\n }", "public Color getTextColor() {\r\n return textColor;\r\n }", "public RMColor getTextColor() { return RMColor.black; }", "public @ColorInt in...
[ "0.7495434", "0.73398423", "0.7199013", "0.70928997", "0.70716995", "0.70560396", "0.704501", "0.70371145", "0.7016925", "0.6988569", "0.6968021", "0.69146895", "0.69094986", "0.690693", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67...
0.70613307
5
Sets the text color of this vcms status.
public void setTextColor(String textColor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }", "public void setTextColor(int textColor) {\n this.textColor = textColor;\n }", "public void setTextColor(Color textColor) {\r\n this.textColor = textColor;\r\n }", "public void setProgressTextColor(@C...
[ "0.7269117", "0.7232748", "0.72320384", "0.7170874", "0.7080785", "0.7062139", "0.6825942", "0.6799403", "0.6680961", "0.6648897", "0.66143227", "0.6585395", "0.653602", "0.65343773", "0.64908075", "0.64121056", "0.6411668", "0.6394146", "0.6369116", "0.6298558", "0.6292718",...
0.74994344
0
Returns the position of this vcms status.
public int getPosition();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long position() {\n return _pos;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public Integer getPosition() {\n return position;\n }", "public int getPosition() {\n ret...
[ "0.71606433", "0.703336", "0.70179284", "0.7015262", "0.7006222", "0.7003551", "0.7003167", "0.69859356", "0.698026", "0.69790316", "0.69616413", "0.69616413", "0.69616413", "0.69509834", "0.69504654", "0.6950291", "0.69362575", "0.69214135", "0.6842111", "0.68347603", "0.682...
0.0
-1
Sets the position of this vcms status.
public void setPosition(int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPosition(Position position);", "void setPosition(Position position);", "public void setPosition(Position pos);", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "public void setPosition(BlockVector position)\n {\n this.position = position;\n }",...
[ "0.6547824", "0.6547824", "0.6529934", "0.6489304", "0.64579207", "0.6455364", "0.6455364", "0.640058", "0.63962847", "0.6390369", "0.6375851", "0.63468975", "0.6333381", "0.63201576", "0.63043046", "0.628143", "0.62812", "0.6259333", "0.62548566", "0.6250936", "0.62338763", ...
0.6511828
3
Returns the is primary of this vcms status.
public boolean getIsPrimary();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean primary() {\n return this.primary;\n }", "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public boolean isStatus() {\r\n return status;\r\n }", "public boolean isStatus() {\n ret...
[ "0.71882594", "0.7090003", "0.703671", "0.68962425", "0.688118", "0.688118", "0.6768944", "0.6768944", "0.6768944", "0.6748874", "0.6746102", "0.6743152", "0.6678254", "0.6678254", "0.6678254", "0.6669088", "0.6669088", "0.6669088", "0.6658172", "0.6653271", "0.6611103", "0...
0.68692905
6
Returns true if this vcms status is is primary.
public boolean isIsPrimary();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public Boolean primary() {\n return this.primary;\n }", "public boolean is_pdl_primary () {\n\n\t\t// Check if mode is forced\n\n\t\tswitch (force_primary) {\n\t\tca...
[ "0.7502429", "0.7390423", "0.7234737", "0.7229522", "0.70996505", "0.70293903", "0.70293903", "0.70144105", "0.6664826", "0.63329273", "0.63099587", "0.6219851", "0.6219851", "0.6193993", "0.6171121", "0.6143775", "0.6095248", "0.6068788", "0.6068788", "0.6068788", "0.6031104...
0.7264282
2
Sets whether this vcms status is is primary.
public void setIsPrimary(boolean isPrimary);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }", "protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}", "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public void setPrimaryProduct(java.lang.Boolean primaryProduct) {\n th...
[ "0.7580435", "0.7426011", "0.6684039", "0.6679975", "0.66260487", "0.65871453", "0.6579321", "0.6521268", "0.65148306", "0.65148306", "0.63962907", "0.6326156", "0.6088059", "0.60822624", "0.600398", "0.5846836", "0.5821407", "0.58108693", "0.5749604", "0.5727274", "0.5693786...
0.72316986
2
Returns the active of this vcms status.
public boolean getActive();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getStatus(){\n return activestatus;\n }", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public int isActive() {\n return isActive;\n }", "public Boolean isActive() {\n return this.active;\n }", "public Boolean getActive() {\n\t\treturn this.A...
[ "0.7887572", "0.785026", "0.7628425", "0.75559926", "0.7447829", "0.7439012", "0.7404936", "0.7404936", "0.7372734", "0.7328124", "0.7328124", "0.7327862", "0.7322155", "0.7310909", "0.7303159", "0.7296881", "0.7289332", "0.7289332", "0.7289332", "0.728919", "0.7288205", "0...
0.0
-1
Returns true if this vcms status is active.
public boolean isActive();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public final boolean isActive() {\n synchronized (this.lifecycleMonitor) {\n return this.active;\n }\n }", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public boolean isIsActive() {\n return isActive;\n ...
[ "0.7994043", "0.7287043", "0.72290057", "0.71921164", "0.7160507", "0.71594036", "0.71555614", "0.7142124", "0.7139117", "0.7136159", "0.71210825", "0.7119467", "0.71112764", "0.71112764", "0.7099638", "0.7079441", "0.7065826", "0.70645833", "0.70645833", "0.70604205", "0.704...
0.6950526
48
Sets whether this vcms status is active.
public void setActive(boolean active);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActive(boolean value) {\n this.active = value;\n }", "public void setActiveStatus(Boolean active){ this.status = active; }", "public void setIsActive(boolean value) {\r\n this.isActive = value;\r\n }", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}...
[ "0.77181286", "0.7679575", "0.7290821", "0.7242458", "0.72192913", "0.7206541", "0.71203834", "0.7116776", "0.71019256", "0.71019256", "0.709834", "0.7090622", "0.70760995", "0.70674217", "0.70566636", "0.7045466", "0.70340073", "0.7032995", "0.7015487", "0.7007646", "0.69920...
0.70076174
22
Creates a clientside handler.
public EchoClientHandler() { firstMessage = Unpooled.buffer(EchoClient.SIZE); for (int i = 0; i < firstMessage.capacity(); i ++) { firstMessage.writeByte((byte) i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CreateHandler()\n {\n }", "void createHandler(final String handlerClassName);", "public ConsoleHandler createConsoleHandler () {\r\n\t\t\t\r\n\t\tConsoleHandler consoleHandler = null;\r\n\t\t\t\r\n\t\ttry {\r\n\t\t \t\r\n\t\t\tconsoleHandler = new ConsoleHandler();\r\n\t\t\t\t\r\n\t\t} catch (Securit...
[ "0.7076311", "0.6381539", "0.6264399", "0.6254843", "0.6086346", "0.6003733", "0.59597456", "0.5927472", "0.58460176", "0.5841968", "0.5790982", "0.5764565", "0.57398653", "0.5739105", "0.57075405", "0.5673627", "0.5650818", "0.56372094", "0.5578924", "0.5546621", "0.5539873"...
0.50028944
73
Close the connection when an exception is raised. cause.printStackTrace();
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { ctx.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeConnection(final String reason) {\n closeConnection(new VertxException(reason).fillInStackTrace());\n }", "@Override\r\n public void close() throws Exception {\r\n if (connection != null){\r\n connection.close();\r\n }\r\n }", "private void closeConnec...
[ "0.7390019", "0.7328319", "0.7265027", "0.72466636", "0.7054442", "0.70419616", "0.70142317", "0.6988752", "0.6971809", "0.6950973", "0.69471335", "0.6944459", "0.69205564", "0.68948364", "0.6886849", "0.68476295", "0.68145084", "0.6812757", "0.6774703", "0.67664194", "0.6751...
0.65096134
50
Adds the given device to this theatre and then adds a reference back to this theatre in said device.
public void addDevice(Device device) { this.devices.add(device); device.addTheatre(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.hl7.fhir.ResourceReference addNewDevice()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(DEVICE$12);\n return targe...
[ "0.68463326", "0.6418961", "0.6295038", "0.5977453", "0.5969753", "0.5782885", "0.57578605", "0.5637833", "0.5572651", "0.55550265", "0.55467683", "0.5540011", "0.5498074", "0.5456284", "0.54307866", "0.5393489", "0.5374699", "0.5359142", "0.53584355", "0.5294124", "0.5286297...
0.7773966
0
Removes the given device from this theatre and then removes the reference to this theatre from said device.
public void removeDevice(Device device) { this.devices.remove(device); device.removeTheatre(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeDevice(String device) {\n availableDevices.remove(device);\n resetSelectedDevice();\n }", "private void removeDevice(final IDevice device) {\n int index = getDeviceIndex(device);\n if (index == -1) {\n Log.d(\"Can't find \" + device + \" in device list of D...
[ "0.6937829", "0.62624353", "0.61478806", "0.6116814", "0.59939396", "0.5957471", "0.59342587", "0.5737696", "0.5702972", "0.5663892", "0.5590101", "0.55755836", "0.55653185", "0.5533936", "0.549005", "0.5483307", "0.54710126", "0.5449543", "0.5448253", "0.5438228", "0.5434378...
0.80788535
0
Adds the given device group to this theatre and then adds a reference back to this theatre in said device group.
public void addDeviceGroup(DeviceGroup deviceGroup) { this.deviceGroups.add(deviceGroup); deviceGroup.setTheatre(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDevice(Device device) {\n this.devices.add(device);\n device.addTheatre(this);\n }", "public void addGroup(Group group) \n\t\t{\n\t\t\tif(m_groups == null)\n\t\t\t{\n\t\t\t\tm_groups = new Vector();\n\t\t\t}\n\t\t\tif(! hasGroup(group.getReference()))\n\t\t\t{\n\t\t\t\tm_groups.ad...
[ "0.66854745", "0.6116721", "0.5976429", "0.5914928", "0.5857859", "0.5670049", "0.56437755", "0.56068057", "0.5582185", "0.55671954", "0.5524317", "0.55205774", "0.551124", "0.5473988", "0.54618156", "0.54544526", "0.5421113", "0.53485936", "0.52916443", "0.5291102", "0.52633...
0.7990108
0
ArrayList arr = new ArrayList(); arr.add("work:add"); arr.add("work:edit"); arr.add("work:delete"); session.setAttribute("sysPermissionList", arr);
@RequestMapping("/find") public String find(HttpSession session) { return "work_list"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSessionList();", "@RequestMapping(\"/showallemployee\")\npublic String viewEmployee(HttpSession session)\n{\nArrayList<EmployeeRegmodel> alist = ergserv.getAllDetails();\nsession.setAttribute(\"aetall\", alist);\nSystem.out.println(alist.size());\nreturn \"showAllEmployee.jsp\";\n\n\n}"...
[ "0.5970514", "0.58473426", "0.5651242", "0.5537774", "0.55006963", "0.53738284", "0.53509176", "0.53276885", "0.5323527", "0.52997196", "0.52750945", "0.52678686", "0.52413636", "0.5208583", "0.5187343", "0.5175341", "0.5173869", "0.51674384", "0.5150561", "0.5126995", "0.512...
0.0
-1
Create I/O reactor configuration
private void init() throws IOReactorException { IOReactorConfig ioReactorConfig = IOReactorConfig.custom() .setIoThreadCount(Runtime.getRuntime().availableProcessors()) .setConnectTimeout(BaseConstants.TIMEOUT_SECONDS * 1000) .setSoTimeout(BaseConstants.TIMEOUT_SECONDS * 1000) .build(); // Create a custom I/O reactort ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor(ioReactorConfig); PoolingNHttpClientConnectionManager connManager = new PoolingNHttpClientConnectionManager(ioReactor); // Configure total max or per route limits for persistent connections // that can be kept in the pool or leased by the connection manager. connManager.setMaxTotal(100); connManager.setDefaultMaxPerRoute(100); HttpAsyncClientBuilder clientBuilder = HttpAsyncClients.custom(); RequestConfig.Builder requestConfig = RequestConfig.custom(); // 连接超时,连接建立时间 requestConfig.setConnectTimeout(BaseConstants.TIMEOUT_SECONDS * 1000); // 请求超时,数据传输过程中数据包之间间隔的最大时间 requestConfig.setSocketTimeout(BaseConstants.TIMEOUT_SECONDS * 1000); // 使用连接池来管理连接,从连接池获取连接的超时时间 requestConfig.setConnectionRequestTimeout(BaseConstants.TIMEOUT_SECONDS * 1000); clientBuilder.setConnectionManager(connManager); clientBuilder.setDefaultRequestConfig(requestConfig.build()); httpclient = clientBuilder.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract IOpipeConfiguration config();", "public DefaultConnectingIOReactor(final IOEventHandlerFactory eventHandlerFactory) {\n this(eventHandlerFactory, null, null);\n }", "@Override\n protected void configure() {\n MorphiaLoggerFactory.reset();\n init();\n bind();\n }", "privat...
[ "0.6509134", "0.57220006", "0.5619293", "0.5538858", "0.5535286", "0.5489608", "0.5435022", "0.53675234", "0.5336977", "0.5334702", "0.53220385", "0.52670395", "0.52192485", "0.5213821", "0.52109885", "0.52058375", "0.5183986", "0.5163822", "0.5133702", "0.5129479", "0.511058...
0.63554645
1
TODO Autogenerated method stub
public Document getXML() { 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 setValuesFromXML_local(Document dom) { }
{ "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 double getProbability() { return getD_errorProbability(); }
{ "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
Convert text to voice
public static void oralOutput(String text) { System.setProperty("mbrola.base","E:\\Automation\\mbrola"); VoiceManager vm=VoiceManager.getInstance(); Voice v=vm.getVoice("mbrola_us1"); //or kevin16 v.allocate(); v.speak(text); v.deallocate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ConvertTextToSpeech(String voice1) {\n text=voice1;\n //text = et.getText().toString();\n if (text == null || \"\".equals(text)) {\n tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);\n } else\n tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);\n }", ...
[ "0.7178406", "0.7015987", "0.6777949", "0.6595906", "0.65608716", "0.6539834", "0.648777", "0.638716", "0.63360417", "0.633589", "0.62818474", "0.62689006", "0.6225402", "0.6220925", "0.62190396", "0.6140639", "0.6107802", "0.6089201", "0.6059283", "0.60303533", "0.59644294",...
0.62692606
11
Callback for getting information about the host turret of various turret entities.
public interface HostTurretCallback { boolean setTurretAngle(float angle); Sprite getTurretBodySprite(); Sprite getTurretCannonSprite(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void turretCode() throws GameActionException {\n\t\t//Attack Enemy\n\t\tRobotInfo[] visibleEnemyArray = rc.senseHostileRobots(rc.getLocation(), 1000000);\n\t\tSignal[] incomingSignals = rc.emptySignalQueue();\n\t\tSignal[] signals;\n\t\tif (incomingSignals.length>125) {\n\t\t\tsignals = new Signal[1...
[ "0.6247144", "0.605032", "0.5642777", "0.5425117", "0.5263849", "0.5101658", "0.50486964", "0.50037307", "0.49852544", "0.49766368", "0.4956778", "0.4925707", "0.48555955", "0.48472133", "0.48398355", "0.47873378", "0.4785751", "0.47679514", "0.47632927", "0.47533613", "0.475...
0.70758915
0
EFFECTS: constructs the reader that will be used to read from the source file
public JsonReader(String source) { this.source = source; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MafSource readSource(File sourceFile);", "interface Source {\n /** Finds a reader for a given file name.\n */\n public java.io.Reader getReader (URL url) throws java.io.IOException;\n }", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiv...
[ "0.69944555", "0.6675886", "0.66525376", "0.6650528", "0.6468629", "0.6434816", "0.640259", "0.62631935", "0.6235539", "0.6229513", "0.62225986", "0.60771877", "0.6037908", "0.6000307", "0.5979552", "0.5957619", "0.5953384", "0.5937985", "0.5927591", "0.5915736", "0.5915155",...
0.567998
47
EFFECTS: reads Tamagotchi from file and returns it; throws IOException if an error occurs while attempting to read data from file
public Tamagotchi read() throws IOException { String jsonData = readFile(source); JSONObject jsonObject = new JSONObject(jsonData); return tamagotchiToJson(jsonObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile();", "public void readFromFile() {\n\n\t}", "public abstract void readFromFile( ) throws Exception;", "public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) ...
[ "0.5711801", "0.5551352", "0.5438148", "0.54342836", "0.53335094", "0.5287133", "0.52744704", "0.52461344", "0.52250403", "0.52080125", "0.5172898", "0.51399034", "0.5127591", "0.512196", "0.50880414", "0.50787014", "0.50683427", "0.50644034", "0.50608593", "0.5053074", "0.50...
0.7052108
0
reads source file as a String and returns it
private String readFile(String source) throws IOException { StringBuilder contentBuilder = new StringBuilder(); try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) { stream.forEach(s -> contentBuilder.append(s)); } return contentBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSourceFile();", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));...
[ "0.7756715", "0.76174396", "0.754522", "0.7433939", "0.7291035", "0.7249035", "0.72143316", "0.7166489", "0.7163222", "0.7017619", "0.70122546", "0.70076466", "0.6917472", "0.6917472", "0.6906425", "0.68855935", "0.68690646", "0.6855423", "0.6848636", "0.6837127", "0.6826983"...
0.7588872
2
EFFECTS: gets Tamagotchi object from JSON object and return it
private Tamagotchi tamagotchiToJson(JSONObject jsonObject) { String name = jsonObject.getString("name"); Tamagotchi tr = new Tamagotchi(name); return tr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tamagotchi read() throws IOException {\n String jsonData = readFile(source);\n JSONObject jsonObject = new JSONObject(jsonData);\n return tamagotchiToJson(jsonObject);\n }", "public native Object parse( Object json, String texturePath );", "private static FluidIngredient deserial...
[ "0.6217214", "0.6143175", "0.56993467", "0.56559867", "0.55414045", "0.546146", "0.5436388", "0.54205734", "0.5377395", "0.52978534", "0.52633536", "0.5261371", "0.52493227", "0.5232632", "0.52250695", "0.52199966", "0.5167445", "0.5152394", "0.51298606", "0.51206225", "0.510...
0.6695536
0
TODO Autogenerated method stub
@Override public void doFilter(ServletRequest req, ServletResponse resp, FilterChain filterChain) throws IOException, ServletException { if(filterConfig == null){ throw new ServletException("FilterConfig not set before first request"); } filterConfig.getServletContext().log("in LoggerFilter"); System.out.println("in LoggerFilter"); long starTime=System.currentTimeMillis(); String remoteAddress=req.getRemoteAddr(); String remoteHost=req.getRemoteHost(); HttpServletRequest myReq=(HttpServletRequest) req; String reqURI=myReq.getRequestURI(); System.out.println(reqURI); System.out.println(remoteAddress); System.out.println(remoteHost); req.setAttribute("URI", reqURI); req.setAttribute("RAddress", remoteAddress); req.setAttribute("RHost", remoteHost); filterChain.doFilter(req, resp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void init(FilterConfig config) throws ServletException { this.filterConfig=config; }
{ "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
Returns the content_id of this contentupdate.
@Override public long getContent_id() { return _contentupdate.getContent_id(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getId() {\n\t\treturn _contentupdate.getId();\n\t}", "public Integer getContentId() {\n return contentId;\n }", "java.lang.String getContentId();", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _contentupdate.getPrimaryKey();\n\t}", "public String getContentId()...
[ "0.8381198", "0.73636115", "0.7307739", "0.72634137", "0.7259851", "0.7207036", "0.71952283", "0.7162076", "0.71278", "0.63858545", "0.6245794", "0.62336946", "0.62220776", "0.607369", "0.5906465", "0.58776784", "0.58652204", "0.58030576", "0.5803013", "0.5780273", "0.5780273...
0.8475844
0
Returns the ID of this contentupdate.
@Override public long getId() { return _contentupdate.getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getContent_id() {\n\t\treturn _contentupdate.getContent_id();\n\t}", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public Strin...
[ "0.76859224", "0.71375406", "0.71375406", "0.7129061", "0.7129061", "0.7112516", "0.707252", "0.6609872", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6592708", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.6563808...
0.87505233
0
Returns the primary key of this contentupdate.
@Override public long getPrimaryKey() { return _contentupdate.getPrimaryKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _changesetEntry.getPrimaryKey();\n\t}", "public String getPrimaryKey() {\n return this.getString(R.string.primaryKey);\n }", "public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }...
[ "0.7430444", "0.73853856", "0.73522615", "0.7228831", "0.7209382", "0.71946406", "0.71923774", "0.71816736", "0.7178893", "0.71770966", "0.71547574", "0.71547574", "0.71547574", "0.71284515", "0.7079287", "0.7047937", "0.7016274", "0.7001971", "0.70017505", "0.6997745", "0.69...
0.829459
0
Sets the content_id of this contentupdate.
@Override public void setContent_id(long content_id) { _contentupdate.setContent_id(content_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "private void setContentId(int value) {\n bitField0_ |= 0x00000001;\n contentId_ = value;\n }", "public void setContentId(String id) {\n\t\tthis._contentId = id;\n\t}", "public void setContentId(Integer contentId) {\...
[ "0.7469184", "0.73653436", "0.7247825", "0.70519876", "0.6889905", "0.68646574", "0.6708231", "0.62738055", "0.6192091", "0.61377794", "0.60809135", "0.6006217", "0.5902357", "0.57808787", "0.57724416", "0.57170486", "0.5690235", "0.56509966", "0.5611452", "0.56060046", "0.55...
0.82543
0
Sets the ID of this contentupdate.
@Override public void setId(long id) { _contentupdate.setId(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r...
[ "0.74105626", "0.73089606", "0.73089606", "0.7308294", "0.7308294", "0.7308294", "0.7302104", "0.7284601", "0.7271405", "0.7253106", "0.7253106", "0.7253106", "0.7253106", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", ...
0.83802694
0
Sets the primary key of this contentupdate.
@Override public void setPrimaryKey(long primaryKey) { _contentupdate.setPrimaryKey(primaryKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(int primaryKey);", ...
[ "0.72353375", "0.7221746", "0.7221746", "0.7221746", "0.72063535", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "...
0.7673905
0
//GENEND:initComponents Muestra el historial del distribuidor seleccionado.
private void panelNuevoDistribuidor_botonHistorialDeDistribuidorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_panelNuevoDistribuidor_botonHistorialDeDistribuidorActionPerformed Logica.herramientas.procesoDeHistorial(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public jHistorialSeleccionarVoluntario() {\n initComponents();\n \n \n }", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void widgetSelected(...
[ "0.6493123", "0.5878878", "0.5858696", "0.5800288", "0.5740329", "0.5730957", "0.5730957", "0.57294667", "0.57294667", "0.57294667", "0.57294667", "0.57294667", "0.57294667", "0.570764", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56...
0.55542636
51