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
maybe a search method which adds everything to the next moves linked list. And then use that in this method just to remove it one at a time.
public void addToNextMoves(GameTile[][] visibleMap) { //Breadth First Search Code // WumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY); Queue<WumpusState> queue = new LinkedList<WumpusState>(); //use the queue in the same way HashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>(); //add all children to the queue, //add all the children to the hash and set values to true. //once all the children have been visited, generate children sequentially for the children that already been added WumpusState state = new WumpusState(visibleMap, playerX, playerY); long nodesExpanded = 0; queue.add(state); while(!queue.isEmpty()) { WumpusState currentState = queue.remove(); System.out.println(currentState.toString()); if(currentState.getPlayerX() == 4 && currentState.getPlayerY() == 1) { nodesExpanded = visitedStates.size(); System.out.println("Nodes Expanded: "+nodesExpanded); ArrayList<AgentAction> actions = currentState.getAllActions(); for(int i=1;i<actions.size(); i++) { System.out.println(actions.get(i)); nextMoves.add(actions.get(i)); } nextMoves.add(AgentAction.declareVictory); return; } if(visitedStates.containsKey(currentState.toString())) { continue; } else { visitedStates.put(currentState.toString(), true); WumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates(); for(int j=0; j<childrenOfCurrentChild.length; j++) { if(childrenOfCurrentChild[j]!=null) { queue.add(childrenOfCurrentChild[j]); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LinkedList<Move> getPossibleMoves() {\n\t\tAIPossibleMoves.clear();\n\t\tint xOrigin = 0, yOrigin = 0, xMove1 = 0, xMove2 = 0, yMove1 = 0, yMove2 = 0;\n\t\tMove move = null;\t\n\t\t\tint type = 0;\n\t\t\tfor(Checker checker: model.whitePieces) {\n\t\t\t\t\n\t\t\t\txOrigin = checker.getCurrentXPosition();\n\...
[ "0.6524632", "0.6492453", "0.63604873", "0.63604015", "0.6225683", "0.6215696", "0.61656314", "0.60807765", "0.60528284", "0.6012279", "0.6000292", "0.595628", "0.58880734", "0.5867926", "0.5849853", "0.58181655", "0.58014154", "0.57809573", "0.5777177", "0.5769508", "0.57488...
0.54843074
58
breakthrough maybe since its a doing a new search every single time it is putting a new player every time take a look at that try making the search return only one move at a time. hunting the wumpus function copy of the function above. Need to return only one function and then call the earlier search function so it is shooting the wumpus but it isn't finding it's way back
public WumpusState huntTheWumpus(GameTile[][] visibleMap) { WumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY); Queue<WumpusState> queue = new LinkedList<WumpusState>(); //use the queue in the same way HashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>(); //add all children to the queue, queue.add(state); while(!queue.isEmpty()) { WumpusState currentState = queue.remove(); System.out.println(currentState.toString()); //check whether the wumpus can be shot if(canShootWumpus(currentState)) { //need a function to check where the agent needs to shoot his arrow ArrayList<AgentAction> actions = currentState.getAllActions(); //maybe just not run this for loop //we don't know for(int i=1;i<actions.size(); i++) { System.out.println(actions.get(i)); nextMoves.add(actions.get(i)); } nextMoves.add(shootTheWumpus(currentState)); wumpusHunted = true; return currentState; } if(visitedStates.containsKey(currentState.toString())) { continue; } else { visitedStates.put(currentState.toString(), true); WumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates(); for(int j=0; j<childrenOfCurrentChild.length; j++) { if(childrenOfCurrentChild[j]!=null) { queue.add(childrenOfCurrentChild[j]); } } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MahjongSolitaireMove findMove()\n {\n // MAKE A MOVE TO FILL IN \n MahjongSolitaireMove move = new MahjongSolitaireMove();\n\n // GO THROUGH THE ENTIRE GRID TO FIND A MATCH BETWEEN AVAILABLE TILES\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; ...
[ "0.64678603", "0.6398068", "0.636176", "0.6291425", "0.6158604", "0.6097308", "0.59930885", "0.59894586", "0.59359473", "0.5910914", "0.5897649", "0.5883964", "0.58720523", "0.58641785", "0.58518535", "0.58368903", "0.5826227", "0.5819011", "0.5812716", "0.5811734", "0.578944...
0.56386954
35
For wumpus world, we do one move at a time
public AgentAction getNextMove(GameTile [][] visibleMap) { //Possible things to add to your moves // nextMove = AgentAction.doNothing; // nextMove = AgentAction.moveDown; // nextMove = AgentAction.moveUp; // nextMove = AgentAction.moveUp; // nextMove = AgentAction.moveLeft; // nextMove = AgentAction.pickupSomething; // nextMove = AgentAction.declareVictory; // // nextMove = AgentAction.shootArrowNorth; // nextMove = AgentAction.shootArrowSouth; // nextMove = AgentAction.shootArrowEast; // nextMove = AgentAction.shootArrowWest; // nextMove = AgentAction.quit //Ideally you would remove all this code, but I left it in so the keylistener would work if(keyboardPlayOnly) { if(nextMove == null) { return AgentAction.doNothing; } else { AgentAction tmp = nextMove; nextMove = null; return tmp; } } else { //This code plays 5 "games" and then quits //Just does random things if(numGamesPlayed > 19) { return AgentAction.quit; } else { if(nextMoves.isEmpty()) { setStartingPosition(visibleMap); // findWumpus(visibleMap); // findWumpus(visibleMap); // WumpusState currentState = huntTheWumpus(visibleMap); // System.out.println(wumpusHunted); // if(wumpusHunted) { // currentState.setParent(null); // addToNextMoves(currentState); // } //this is the code to collect the gold // currentState.setParent(null); // currentState = findTheGold(currentState); // if(currentState.getGoldCollected()) { // currentState.setParent(null); // addToNextMoves(currentState); // } if(!goldCollected) { wellItsDarkNow(visibleMap); } if(goldCollected) { // currentState.setParent(null); addToNextMoves(visibleMap); // goldCollected = false; } } if(!nextMoves.isEmpty()) { System.out.println(nextMoves.peek()); setNextMove(nextMoves.remove()); // System.out.println(nextMove); // return nextMove; } return nextMove; // currentNumMoves++; // if(currentNumMoves < 20) { // return AgentAction.randomAction(); // } // else { // return AgentAction.declareVictory; // } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t...
[ "0.75048465", "0.74915534", "0.7331837", "0.7314553", "0.7094466", "0.70800775", "0.7049123", "0.7017267", "0.7009483", "0.6987414", "0.6949657", "0.69361573", "0.6912714", "0.6905602", "0.6891326", "0.68871003", "0.68775856", "0.68752843", "0.6826517", "0.68227184", "0.68219...
0.0
-1
Add the ChatesFragment to the layout
private void initFragment(Fragment fragment) { FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction transaction = fragmentManager.beginTransaction(); transaction.add(R.id.contentFrame, fragment); transaction.commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n B...
[ "0.6358225", "0.62895215", "0.61767966", "0.61719227", "0.61459374", "0.6104038", "0.608988", "0.60758865", "0.6061545", "0.60388416", "0.602701", "0.5989416", "0.5965938", "0.59514946", "0.5948713", "0.5947826", "0.5945335", "0.59440345", "0.5942944", "0.5921184", "0.591734"...
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { // TODO sp.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); sp.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); sp.setFitToHeight(true); sp.setHmax(3); sp.setHvalue(0); sp.setDisable(false); RefreshP(); RefreshC(); // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
/ protected int startBit, mask; protected double multiplier, offset; protected String name;
public ULongParser(int startBit, int size, double multiplier, double offset, String name) { super(startBit, size, multiplier, offset, name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1281();", "private void mul() {\n\n\t}", "Double getMultiplier();", "Sum getMultiplier();", "public int getMultiplier() {\n return multiplier;\n }", "java.lang.String getField1128();", "private void SetZN16 ( int Work )\n\t{\n\t\t_Zero = Work != 0 ? 1 : 0;\n\t\t_Negative = ...
[ "0.5492402", "0.5440503", "0.54244083", "0.54023004", "0.5367835", "0.53539085", "0.5337495", "0.5301961", "0.5296569", "0.5292203", "0.52839226", "0.52762115", "0.5241461", "0.5238877", "0.522047", "0.52203745", "0.5213186", "0.5203527", "0.5186173", "0.5185563", "0.5173845"...
0.5955542
0
TODO Autogenerated method stub
@Override public String toString() { return name+" : "+ weight +" KG "+(isMale?", ─đ":", ┼«")+ ", "+education; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean equals(Object target) { return name.equals(((Person)target).getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public int hashCode() { return name.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
the command has been executed, so extract extract the needed information from the application context.
public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); IStructuredSelection structured = (IStructuredSelection) PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getSelectionService().getSelection("org.eclipse.jdt.ui.PackageExplorer"); Object selected = structured.getFirstElement(); if (selected instanceof ICompilationUnit) { ICompilationUnit icu = (ICompilationUnit) selected; ClassParser classParser = new EclipseClassParser(); JavaClass javaClass = classParser.parse(icu); Renderer renderer = new FreeMarkerRenderer(); List<RendererResult> rendererResults = renderer.render(javaClass, RendererType.IBatis); RendererResult rendererResult = rendererResults.get(0); ClipboardUtil.copyTo(rendererResult.getResult()); MessageDialog.openInformation(window.getShell(), "SmartCNP", "Copy " + javaClass.getName() + " Success"); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\n SubProcessExecDetails\n ( \n String cmd, \n Map<String,String> env\n )\n {\n pCommand = cmd; \n pEnvironment = new TreeMap<String,String>(env);\n }", "public interface AdminCommandContext extends ExecutionContext, Serializable {\n \n /**\n * Returns the Reporter for this ac...
[ "0.57161385", "0.56221956", "0.5565454", "0.55064636", "0.54805905", "0.54533446", "0.5428104", "0.5389963", "0.5320454", "0.5316146", "0.5305518", "0.5295063", "0.5274414", "0.52641356", "0.5247774", "0.5243216", "0.5241533", "0.52260023", "0.5224965", "0.5220645", "0.520798...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public DwiCtStationTpaDExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.5910757", "0.5878975", "0.5615024", "0.5370662", "0.5272959", "0.52477545", "0.5245158", "0.5241223", "0.51585937", "0.51369065", "0.5114784", "0.50870794", "0.50794065", "0.5063974", "0.50555295", "0.50101817", "0.49546438", "0.49456918", "0.49232027", "0.4916349", "0.489...
0.49214992
19
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.59109074", "0.5878743", "0.5614784", "0.53707135", "0.5274438", "0.5248382", "0.5248085", "0.5242144", "0.51573026", "0.5139427", "0.51159614", "0.50873387", "0.50810254", "0.5066746", "0.50568897", "0.5009373", "0.49561456", "0.49471977", "0.49246684", "0.49194127", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.5908091", "0.5876222", "0.56118476", "0.5368432", "0.52710587", "0.5249704", "0.5247749", "0.5242562", "0.51580656", "0.51393163", "0.5114143", "0.5086069", "0.50789565", "0.50661635", "0.505473", "0.50096756", "0.49533215", "0.49458078", "0.4924187", "0.49195573", "0.4915...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.591335", "0.5880227", "0.5618331", "0.5373254", "0.5276252", "0.52508575", "0.5247334", "0.52444965", "0.5158177", "0.5139137", "0.51171196", "0.50889933", "0.508064", "0.50659186", "0.5057405", "0.5011186", "0.49564764", "0.4949543", "0.49231407", "0.49218547", "0.4918716...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.5910757", "0.5878975", "0.5615024", "0.5370662", "0.5272959", "0.52477545", "0.5245158", "0.5241223", "0.51585937", "0.51369065", "0.5114784", "0.50870794", "0.50794065", "0.5063974", "0.50555295", "0.50101817", "0.49546438", "0.49456918", "0.49232027", "0.49214992", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.59109074", "0.5878743", "0.5614784", "0.53707135", "0.5274438", "0.5248382", "0.5248085", "0.5242144", "0.51573026", "0.5139427", "0.51159614", "0.50873387", "0.50810254", "0.5066746", "0.50568897", "0.5009373", "0.49561456", "0.49471977", "0.49246684", "0.49194127", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.5908091", "0.5876222", "0.56118476", "0.5368432", "0.52710587", "0.5249704", "0.5247749", "0.5242562", "0.51580656", "0.51393163", "0.5114143", "0.5086069", "0.50789565", "0.50661635", "0.505473", "0.50096756", "0.49533215", "0.49458078", "0.4924187", "0.49195573", "0.4915...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.591335", "0.5880227", "0.5618331", "0.5373254", "0.5276252", "0.52508575", "0.5247334", "0.52444965", "0.5158177", "0.5139137", "0.51171196", "0.50889933", "0.508064", "0.50659186", "0.5057405", "0.5011186", "0.49564764", "0.4949543", "0.49231407", "0.49218547", "0.4918716...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.5910757", "0.5878975", "0.5615024", "0.5370662", "0.5272959", "0.52477545", "0.5245158", "0.5241223", "0.51585937", "0.51369065", "0.5114784", "0.50870794", "0.50794065", "0.5063974", "0.50555295", "0.50101817", "0.49546438", "0.49456918", "0.49232027", "0.49214992", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.59109074", "0.5878743", "0.5614784", "0.53707135", "0.5274438", "0.5248382", "0.5248085", "0.5242144", "0.51573026", "0.5139427", "0.51159614", "0.50873387", "0.50810254", "0.5066746", "0.50568897", "0.5009373", "0.49561456", "0.49471977", "0.49246684", "0.49194127", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public ab...
[ "0.5908091", "0.5876222", "0.56118476", "0.5368432", "0.52710587", "0.5249704", "0.5247749", "0.5242562", "0.51580656", "0.51393163", "0.5114143", "0.5086069", "0.50789565", "0.50661635", "0.505473", "0.50096756", "0.49533215", "0.49458078", "0.4924187", "0.49195573", "0.4915...
0.0
-1
Zetten van juiste woorden in een lijst
public void setwoorden() { String[] woorden = taInput.getText().split(" |\n"); for (int i = 0; i < woorden.length; i++) { if(!woorden[i].isEmpty()) { AllText.add(woorden[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.ge...
[ "0.66404295", "0.66108334", "0.65401953", "0.63176346", "0.6310601", "0.6290196", "0.6206217", "0.6200298", "0.619932", "0.6156241", "0.6145893", "0.61073", "0.6097698", "0.60931426", "0.6070752", "0.60664636", "0.6059312", "0.6047309", "0.6036667", "0.60116667", "0.60014683"...
0.0
-1
uniekewoorden = new HashSet(AllText); taOutput.setText(Integer.toString(AllText.size()) + " " + Integer.toString(uniekewoorden.size()));
@FXML private void aantalAction(ActionEvent event) { taOutput.setText(woordenMethods.calcaantal(DEFAULT_TEXT)); //throw new UnsupportedOperationException("Not supported yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshText() {\n mTagsCountText.setText(String.valueOf(tagList.size()));\n\n }", "public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }", "pu...
[ "0.63027537", "0.56336004", "0.5606347", "0.5583567", "0.55150443", "0.5495749", "0.54748684", "0.5449733", "0.54379827", "0.5433967", "0.5426167", "0.53801745", "0.53501946", "0.5320156", "0.53149337", "0.53022635", "0.5301991", "0.52922064", "0.52853173", "0.5274383", "0.52...
0.0
-1
Collections.reverse((List) uniekewoorden); AllSortedSet = new TreeSet(Collections.reverseOrder()); AllSortedSet.addAll(uniekewoorden);
@FXML private void sorteerAction(ActionEvent event) { taOutput.setText(woordenMethods.calcsort(DEFAULT_TEXT)); //throw new UnsupportedOperationException("Not supported yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n TreeSet<String> ts = new TreeSet<>(new MyComp().reversed());\n\n ts.add(\"C\");\n ts.add(\"B\");\n ts.add(\"A\");\n ts.add(\"G\");\n ts.add(\"Z\");\n ts.add(\"Q\");\n\n for (String element : ts){\n System....
[ "0.6420143", "0.6408913", "0.6355877", "0.63282925", "0.6304356", "0.62062454", "0.60861397", "0.60647434", "0.6017355", "0.599709", "0.5952579", "0.5936244", "0.5927828", "0.59216815", "0.5913819", "0.5875925", "0.58699113", "0.5861611", "0.58594817", "0.58536196", "0.584560...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int a[] = { 9, 3, 6, 4, 7, 2, 1 }; // size=7 int b[] = { 14, 3, 2, 6, 9, 7 }; //size =6 int c[] = {24,23,12,13,7,6,7,2}; // size=8 int d[] = new int[a.length + b.length+c.length]; //merging for (int i = 0; i < a.length; i++) { d[i] = a[i]; } int k = 0; for (int j = a.length; j < a.length+b.length; j++) { d[j] = b[k]; k = k + 1; } int m=0; for (int l = a.length+b.length; l < d.length; l++) { d[l]=c[m]; m=m+1; } //merging print statement for (int i =0;i < d.length; i++) { /// System.out.print(d[i]+" "); } //duplicate checking for (int i =0;i < d.length; i++) { for (int j =i+1;j < d.length; j++) { if(d[i]==d[j]) { d[j]=0; } if (d[i] > d[j]) { // sorting swap logic //int temp; //temp = d[i]; // d[i] = d[j]; // d[j] = temp; d[i] = d[i] + d[j]; d[j] = d[i] - d[j]; d[i] = d[i] - d[j]; } } } //removing the finding duplicates for (int h =0;h < d.length; h++) { if(d[h]!=0) { System.out.print(d[h]+" "); } } }
{ "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
Created by Goran on 1/16/2018.
public interface ApiService { //--------------------------------------------Movies------------------------------------------------------------------------------ @GET("discover/movie?" + ApiConstants.ApiKey) Call<MovieModel> getMoviesByGenre(@Query("with_genres") String genre,@Query("page") int page); @GET("discover/movie?" + ApiConstants.ApiKey) Call<MovieModel> getMoviesByYear(@Query("primary_release_year") int year,@Query("page") int page); @GET("movie/{popular}?" + ApiConstants.ApiKey) Call<MovieModel> getMovies(@Path("popular")String popular,@Query("page") int page); @GET("movie/{movie_id}?" + ApiConstants.ApiKey) Call<Movie> getMovie(@Path("movie_id") int link,@Query("append_to_response")String credits); @GET("movie/{movie_id}/credits?" + ApiConstants.ApiKey) Call<CreditsModel> getMovieCredits(@Path("movie_id") int link); @GET("genre/movie/list?" + ApiConstants.ApiKey) Call<GenresModel> getGenres(); @GET("movie/{movie_id}/" + "similar?" + ApiConstants.ApiKey) Call<MovieModel> getSimilar(@Path("movie_id") int link); @GET("movie/{movie_id}/" + "videos?" + ApiConstants.ApiKey) Call<VideoModel> getVideo(@Path("movie_id") int link); @GET("search/movie?" + ApiConstants.ApiKey) Call<MovieModel> getSearchMovie(@Query("query") String query); @GET("movie/{movie_id}/images?" + ApiConstants.ApiKey) Call<ImageModel> getMovieImages(@Path("movie_id") int link); @GET("movie/{movie_id}/reviews?" + ApiConstants.ApiKey) Call<ReviewsModel> getMovieReviews(@Path("movie_id") int link); //--------------------------------------------Shows------------------------------------------------------------------------------ @GET("genre/tv/list?" + ApiConstants.ApiKey) Call<GenresModel> getTVGenres(); @GET("discover/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getTVByGenre(@Query("with_genres") String genre,@Query("page") int page); @GET("discover/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getTVByNetwork(@Query("with_networks") int id,@Query("page") int page); @GET("discover/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getTVByYear(@Query("primary_release_year") int year,@Query("page") int page); @GET("tv/{tv_id}?" + ApiConstants.ApiKey) Call<Shows> getShows(@Path("tv_id") int link ,@Query("append_to_response")String credits); @GET("tv/{shows}?" + ApiConstants.ApiKey) Call<ShowsModel> getShows(@Path("shows")String shows,@Query("page") int page); @GET("search/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getSearchShows(@Query("query") String query); @GET("tv/{tv_id}/" + "videos?" + ApiConstants.ApiKey) Call<VideoModel> getShowVideo(@Path("tv_id") int link); @GET("tv/{tv_id}/" + "similar?" + ApiConstants.ApiKey) Call<ShowsModel> getSimilarShows(@Path("tv_id") int link); @GET("tv/{tv_id}/credits?" + ApiConstants.ApiKey) Call<CreditsModel> getShowCredits(@Path("tv_id") int link); @GET("tv/{tv_id}/images?" + ApiConstants.ApiKey) Call<ImageModel> getShowsImages(@Path("tv_id") int link); //--------------------------------------------Person------------------------------------------------------------------------------ @GET("person/popular?" + ApiConstants.ApiKey) Call<PersonModel> getPopularPeople(@Query("page") int page); @GET("person/{person_id}/" + "movie_credits?" + ApiConstants.ApiKey) Call<CreditsModel> getPersonCredits(@Path("person_id") int link); @GET("person/{person_id}?" + ApiConstants.ApiKey) Call<Person> getPerson(@Path("person_id") int link); @GET("search/person?" + ApiConstants.ApiKey) Call<PersonModel> getSearchPerson(@Query("query") String query); //--------------------------------------------Login------------------------------------------------------------------------------ @GET("authentication/{guest_session}/new?" + ApiConstants.ApiKey) Call<User> getGuestUser(@Path("guest_session")String guest); @GET("authentication/token/validate_with_login?" + ApiConstants.ApiKey) Call<User> getValidateUser(@Query("username") String username,@Query("password") String password,@Query("request_token")String request_token); @GET("authentication/session/new?" + ApiConstants.ApiKey) Call<User> getUserSession(@Query("request_token") String reques_token); @GET("account?" + ApiConstants.ApiKey) Call<User> getUserDetails(@Query("session_id") String session_id); //--------------------------------------------Favorites------------------------------------------------------------------------------ @GET("account/{account_id}/favorite/movies?" + ApiConstants.ApiKey) Call<MovieModel> getUserFavorites(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("movie/{movie_id}/" + "account_states?" + ApiConstants.ApiKey) Call<Movie> getFavorites(@Path("movie_id") int link,@Query("session_id")String session_id); @POST("account/{account_id}/favorite?" + ApiConstants.ApiKey) Call<Movie> postUserFavorites(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body FavoriteMoviePost body); @POST("account/{account_id}/favorite?" + ApiConstants.ApiKey) Call<Shows> postUserShowFavorites(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body FavoriteMoviePost body); @GET("account/{account_id}/favorite/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getUserShowsFavorites(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("tv/{tv_id}/" + "account_states?" + ApiConstants.ApiKey) Call<Shows> getShowFavorite(@Path("tv_id") int link,@Query("session_id")String session_id); //--------------------------------------------Watchlist------------------------------------------------------------------------------ @GET("account/{account_id}/watchlist/movies?" + ApiConstants.ApiKey) Call<MovieModel> getUserWatchlist(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("movie/{movie_id}/" + "account_states?" + ApiConstants.ApiKey) Call<Movie> getWatchlist(@Path("movie_id") int link,@Query("session_id")String session_id); @POST("account/{account_id}/watchlist?" + ApiConstants.ApiKey) Call<Movie> postUserWatchlist(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body WatchlistMoviePost body); @POST("account/{account_id}/watchlist?" + ApiConstants.ApiKey) Call<Shows> postUserShowWatchlist(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body WatchlistMoviePost body); @GET("account/{account_id}/watchlist/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getUserShowsWatchlist(@Path("account_id") String account_id,@Query("session_id") String session_id); //--------------------------------------------Rated------------------------------------------------------------------------------ @POST("movie/{movie_id}/rating?" + ApiConstants.ApiKey) Call<Movie> postUserRating(@Path("movie_id") int account_id, @Query("session_id") String session_id,@Body Rated body); @POST("tv/{tv_id}/rating?" + ApiConstants.ApiKey) Call<Shows> postUserShowRating(@Path("tv_id") int account_id, @Query("session_id") String session_id,@Body Rated body); @GET("account/{account_id}/rated/movies?" + ApiConstants.ApiKey) Call<MovieModel> getUserRated(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("account/{account_id}/rated/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getUserRatedShows(@Path("account_id") String account_id,@Query("session_id") String session_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n ...
[ "0.58313966", "0.5680538", "0.55990076", "0.550928", "0.54450375", "0.54450375", "0.5423022", "0.5420628", "0.54164964", "0.54108554", "0.5383826", "0.53682435", "0.53559065", "0.53451", "0.5327728", "0.5300649", "0.5300649", "0.5300649", "0.5300649", "0.5300649", "0.5300649"...
0.0
-1
Create transaction dao and insert data in db
@Override public TransactionModel createTransaction(String custId, LocalDateTime transactionTime, String accountNumber, TransactionType type, BigDecimal amount,String description) { return transactionDao.createTransaction(custId,accountNumber,transactionTime,type,amount,description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "public void createTransaction(Tra...
[ "0.71228206", "0.7121368", "0.7081182", "0.69417006", "0.6884682", "0.6698649", "0.6678883", "0.6623655", "0.6615424", "0.6513479", "0.6503319", "0.64620155", "0.6458925", "0.64206195", "0.6411749", "0.63685894", "0.63669", "0.6328621", "0.63004166", "0.6293783", "0.62717485"...
0.0
-1
Add cake id in to comboBox
public void loadCakeID() throws SQLException, ClassNotFoundException { ArrayList<Cake> cakeArrayList = new CakeController().getAllCake(); ArrayList<String> ids = new ArrayList<>(); for (Cake cake : cakeArrayList) { ids.add(cake.getCakeID()); } cmbCakeID.getItems().addAll(ids); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rebuildIDSComboBox(){\n\t\tfinal List<OWLNamedIndividual> IDSes = ko.getIDSes();\n\t\t\n\t\tcomboBox.setModel(new DefaultComboBoxModel() {\n\t\t\t@Override\n\t\t\tpublic Object getElementAt(int index){\n\t\t\t\treturn IDSes.get(index);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int getSize(){\n\t...
[ "0.6415728", "0.63552177", "0.6296608", "0.62816674", "0.6199298", "0.6111729", "0.59944576", "0.59674245", "0.59313464", "0.5926618", "0.58298784", "0.58193886", "0.58128715", "0.57621676", "0.57498384", "0.57100284", "0.5700086", "0.56954825", "0.568683", "0.5671698", "0.56...
0.69868225
0
Add All ingredients Ids in to comboBox
public void loadIngreID() throws SQLException, ClassNotFoundException { ArrayList<Ingredient> ingredients = new IngredientControllerUtil().getAllIngredient(); ArrayList<String> name = new ArrayList<>(); for (Ingredient ingredient : ingredients) { name.add(ingredient.getIngreName()); } cmbIngreName.getItems().addAll(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rebuildIDSComboBox(){\n\t\tfinal List<OWLNamedIndividual> IDSes = ko.getIDSes();\n\t\t\n\t\tcomboBox.setModel(new DefaultComboBoxModel() {\n\t\t\t@Override\n\t\t\tpublic Object getElementAt(int index){\n\t\t\t\treturn IDSes.get(index);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int getSize(){\n\t...
[ "0.7217845", "0.686763", "0.65223974", "0.64616036", "0.63827944", "0.61323506", "0.61288184", "0.6102426", "0.6100327", "0.60864013", "0.60713404", "0.60177517", "0.5990369", "0.59722465", "0.59384936", "0.5898438", "0.58849454", "0.58639145", "0.5855672", "0.58225983", "0.5...
0.6776922
2
Add Item to the Recipe
public void addRecipe(MouseEvent mouseEvent) { if (!txtqty.getText().trim().isEmpty() && !cmbIngreName.getSelectionModel().isEmpty() && !cmbIngreName.getSelectionModel().isEmpty()) { lbQTY.setStyle("-fx-text-fill: #ff7197"); txtqty.setStyle("-fx-border-color: #ff7197"); Recipe recipe = new Recipe( cmbCakeID.getSelectionModel().getSelectedItem(), txtID.getText(), cmbIngreName.getSelectionModel().getSelectedItem(), txtUnit.getText(), Double.parseDouble(txtUnitPrice.getText()), Double.parseDouble(txtqty.getText()) ); saveIngreInRecipe(recipe); } else { lbQTY.setStyle("-fx-text-fill: red"); txtqty.setStyle("-fx-border-color: red"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "RecipeObject addRecipe(RecipeObject recipe);", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public void addRecipe(Recipe recipe){\n //recipes.add(recipe);\n if(recipe != nul...
[ "0.7554811", "0.74532366", "0.7311308", "0.7191009", "0.7173282", "0.7171949", "0.71433944", "0.70720786", "0.7000506", "0.69542253", "0.6951036", "0.6892663", "0.68764704", "0.6854262", "0.68098396", "0.6711052", "0.6711052", "0.6670829", "0.6664575", "0.66555893", "0.664585...
0.5968803
97
Save the item in recipe table in database
private void saveIngreInRecipe(Recipe recipe) { Alert alert = new Alert(Alert.AlertType.CONFIRMATION); Optional<ButtonType> result = alert.showAndWait(); if (result.get() == ButtonType.OK) { try { if (saveRecipe(recipe)) { Alert alert2 = new Alert(Alert.AlertType.INFORMATION); alert2.setTitle("Message"); alert2.setContentText("Saved.."); alert2.show(); tblRecipe.getItems().clear(); try { loadRecipe(getRecipe(cmbCakeID.getSelectionModel().getSelectedItem())); } catch (SQLException | ClassNotFoundException throwables) { throwables.printStackTrace(); } } else { new Alert(Alert.AlertType.WARNING, "Try Again..").show(); } } catch (Exception e) { new Alert(Alert.AlertType.WARNING, "Duplicate Entry..").show(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void save(RecipeTable recipe) {\n\t\t\n\t}", "public void saveRecipe(Recipe recipe) {\r\n \t\tif (!recipeList.contains(recipe)) {\r\n \t\t\trecipeList.add(recipe);\r\n \t\t}\r\n \t\tpersistenceManager.save(recipe);\r\n \t}", "@Override\n public void createRecipe(RecipeEntity recipeEntity...
[ "0.75322217", "0.6977065", "0.67844313", "0.667451", "0.6673244", "0.6639916", "0.6598797", "0.6591917", "0.65556544", "0.6524081", "0.6294708", "0.62704325", "0.62649775", "0.62409073", "0.61168283", "0.60912126", "0.60650516", "0.60618645", "0.6056391", "0.60434186", "0.600...
0.6466848
10
Load recipe in the table
private void loadRecipe(ArrayList<Recipe> recipe) throws SQLException, ClassNotFoundException { ArrayList<Ingredient> ingredients = new IngredientControllerUtil().getAllIngredient(); ObservableList<RecipeTM> obList = FXCollections.observableArrayList(); for (Recipe r : recipe) { for (Ingredient ingredient : ingredients) { if (r.getIngreID().equals(ingredient.getIngreID())) { String scale; Button btn = new Button("Remove"); double unit = 1; if (ingredient.getIngreUnit().matches("[0-9]*(g)$")) { scale = "g"; unit = Double.parseDouble(ingredient.getIngreUnit().split("g")[0]); } else if (ingredient.getIngreUnit().matches("[0-9]*(ml)$")) { scale = "ml"; unit = Double.parseDouble(ingredient.getIngreUnit().split("m")[0]); } else { scale = ""; unit = Double.parseDouble(ingredient.getIngreUnit()); } double price = (ingredient.getUnitePrice() / unit) * r.getQty(); RecipeTM tm = new RecipeTM( r.getIngreID(), ingredient.getIngreName(), ingredient.getIngreUnit(), r.getQty() + scale, price, btn ); obList.add(tm); removeIngre(btn, tm, obList); break; } } } tblRecipe.setItems(obList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveT...
[ "0.66418874", "0.6197097", "0.6089562", "0.59983575", "0.58602816", "0.5858919", "0.58556753", "0.5777911", "0.57220197", "0.5694795", "0.5693966", "0.5692639", "0.56861657", "0.56705993", "0.56509805", "0.5631841", "0.56105256", "0.5600471", "0.55772364", "0.555799", "0.5545...
0.6670334
0
Remove a Ingredient from the Recipe
public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) { btn.setOnAction((e) -> { Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Warning"); alert.setContentText("Are you sure ?"); Optional<ButtonType> result = alert.showAndWait(); if (result.get() == ButtonType.OK) { try { deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem()); } catch (SQLException | ClassNotFoundException throwables) { throwables.printStackTrace(); } obList.remove(tm); tblRecipe.refresh(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeRecipe(IRecipe recipe) {\n this.recipes.remove(recipe);\n }", "public void removeRecipe(Recipe recipe) {\r\n \t\trecipeList.remove(recipe);\r\n \t\tpersistenceManager.remove(recipe);\r\n \t}", "void deleteRecipe(RecipeObject recipe);", "@FXML\n public void removeIngredFromMeal(...
[ "0.7546928", "0.7186144", "0.6862263", "0.6736994", "0.6720478", "0.6657244", "0.66237247", "0.65703607", "0.64967614", "0.6460439", "0.6438788", "0.64351916", "0.62545264", "0.62425923", "0.6230416", "0.6148782", "0.6133035", "0.6085198", "0.6061368", "0.60190135", "0.597756...
0.0
-1
Construct json for notify the API Rest Mydashboard notification
private JSONObject constructJsonNotification( MassNotificationTaskConfig config, HtmlTemplate html, ResourceExtenderHistory resourceExtenderHistory, Map<String, Object> model ) { Map<String, Object> map = new HashMap< >( ); map.put( FormsExtendConstants.JSON_OBJECT, AppTemplateService.getTemplateFromStringFtl( config.getSubjectForDashboard( ), null, model ).getHtml( ) ); map.put( FormsExtendConstants.JSON_SENDER, config.getSenderForDashboard( ) ); map.put( FormsExtendConstants.JSON_MESSAGE, html.getHtml( ) ); map.put( FormsExtendConstants.JSON_ID_USER, resourceExtenderHistory.getUserGuid( ) ); return new JSONObject( map ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendNotify(JSONObject notification, String staffID) {\r\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(FCM_API, notification,\r\n new Response.Listener<JSONObject>() {\r\n @Override\r\n public void onResponse(JSONObject respons...
[ "0.6045183", "0.59547615", "0.59154606", "0.5850425", "0.5837815", "0.58286613", "0.5806073", "0.57724077", "0.57412183", "0.5661836", "0.56225014", "0.5615757", "0.55874634", "0.55630404", "0.55591285", "0.5530151", "0.54154336", "0.53848654", "0.5365178", "0.53501946", "0.5...
0.6058793
0
Populate email list by users cached attribute
public static String getEmailListByUsersCachedAttribute ( List<String> listGuid ) { Map<String, String> listCachedAttributes = new HashMap< >( ); List<String> listEmail = new ArrayList< >( ); int nIdEmailAttribute = AppPropertiesService.getPropertyInt( PROPERTY_ID_EMAIL_ATTRIBUTE, 1 ); listCachedAttributes.putAll( CacheUserAttributeService.getCachedAttributesByListUserIdsAndAttributeId( listGuid, nIdEmailAttribute ) ); for ( Map.Entry<String, String> cachedAttribute : listCachedAttributes.entrySet( ) ) { listEmail.add( cachedAttribute.getValue( ) ); } return StringUtils.join( listEmail, ";"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override \r\n\tpublic Set<String> emailList() {\n\t\treturn new HashSet<String>(jdbcTemplate.query(\"select * from s_member\",\r\n\t\t\t\t(rs,idx)->{return rs.getString(\"email\");}));\r\n\t}", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByUsedFor(UByte... values) {\n...
[ "0.6687878", "0.64342725", "0.6321577", "0.612716", "0.6024995", "0.6013052", "0.59690374", "0.59411335", "0.59272885", "0.59178287", "0.58428586", "0.5806764", "0.5791775", "0.57874227", "0.5786541", "0.5781843", "0.57807094", "0.5765513", "0.5742272", "0.5734903", "0.573078...
0.69000304
0
Get resource extender history filtered list for email notification
private List<ResourceExtenderHistory> getResourceExtenderHistoryListForEmail( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm ) { List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( ); for ( String extenderType : config.getListExtenderTypesForEmail( ) ) { ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( ); filter.setExtenderType( extenderType ); filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) ); filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) ); listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) ); } return listResourceExtenderHistory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<ResourceExtenderHistory> getResourceExtenderHistoryListForDashboard( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm )\n {\n List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( );\n\n for ( String extenderType : config.getListEx...
[ "0.70336926", "0.66236037", "0.661627", "0.6372828", "0.6304487", "0.6221855", "0.61286515", "0.6045993", "0.6025018", "0.60130966", "0.59868574", "0.59828895", "0.5914531", "0.58753836", "0.5869433", "0.58632386", "0.5770808", "0.5767074", "0.5754002", "0.57025415", "0.56716...
0.7728827
0
Get resource extender history filtered list for dashboard notification
private List<ResourceExtenderHistory> getResourceExtenderHistoryListForDashboard( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm ) { List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( ); for ( String extenderType : config.getListExtenderTypesForDashboard( ) ) { ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( ); filter.setExtenderType( extenderType ); filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) ); filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) ); listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) ); } return listResourceExtenderHistory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<ResourceExtenderHistory> getResourceExtenderHistoryListForEmail( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm )\n {\n List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( );\n \n for ( String extenderType : config.getLi...
[ "0.71513516", "0.6843377", "0.6459882", "0.64429516", "0.64009494", "0.6335435", "0.59773016", "0.59682906", "0.5944167", "0.59156275", "0.5902789", "0.5892813", "0.5886703", "0.58395773", "0.5832155", "0.5808384", "0.57758486", "0.57630104", "0.57481116", "0.5745351", "0.574...
0.75217366
0
Constructor with mandatory data.
public TextAreaMessageDisplay(@NotNull final TextArea textArea) { super(); Utils4J.checkNotNull("textArea", textArea); this.textArea = textArea; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Data() {}", "public Data() {\n }", "public Data() {\n }", "public Data() {\n \n }", "public InitialData(){}", "public DesastreData() { //\r\n\t}", "public CompanyData() {\r\n }", "protected VersionData() {}", "public PollData() {\n\n\n super(TYPE_NAME);\n }", "publi...
[ "0.7703046", "0.76198286", "0.76198286", "0.757147", "0.7489552", "0.7036348", "0.6942842", "0.6894445", "0.68792385", "0.6865027", "0.6850808", "0.68383026", "0.6817499", "0.68145984", "0.6813137", "0.67934644", "0.67736113", "0.6763576", "0.67204726", "0.66975945", "0.66972...
0.0
-1
Take action based on the selection
@Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) { selectedMenuItemAtPosition(position); //Close the drawer. mDrawerLayout.closeDrawer(mDrawerList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selected(String action);", "public void toSelectingAction() {\n }", "private void processSelection(int selection) {\n\t\tswitch (selection) {\n\t\tcase 1:\n\t\t\tcoach.displayAvailableSeats();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbookSeats();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trefundSeats();\n\t\t\t...
[ "0.7909599", "0.751264", "0.7224576", "0.7177272", "0.7168567", "0.7168567", "0.71490073", "0.71382034", "0.7115", "0.7106604", "0.7102816", "0.7028199", "0.7020854", "0.70086336", "0.70026493", "0.6951248", "0.6943875", "0.69279665", "0.6919341", "0.68829674", "0.683105", ...
0.0
-1
Called when a drawer has settled in a completely closed state.
public void onDrawerClosed(View view) { if (Build.VERSION.SDK_INT >= 11) { invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() } else { //Call it directly on gingerbread. onPrepareOptionsMenu(mMenu); } // startFullscreenIfNeeded(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDrawerClosed(View view) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n Log.d(TAG, \"onDrawerClosed\");\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n ...
[ "0.7114474", "0.6925135", "0.68684775", "0.6848966", "0.6848966", "0.67969453", "0.67969453", "0.67589223", "0.6744687", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894",...
0.5851618
61
Called when a drawer has settled in a completely open state.
public void onDrawerOpened(View drawerView) { if (Build.VERSION.SDK_INT >= 11) { invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() } else { //Call it directly on gingerbread. onPrepareOptionsMenu(mMenu); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n handleEvent_onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerStateCh...
[ "0.70580786", "0.69017404", "0.6729584", "0.6729584", "0.6729584", "0.6729584", "0.67231274", "0.67104286", "0.67104286", "0.67104286", "0.67104286", "0.65841967", "0.64536935", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", ...
0.6020119
71
Called as the drawer slides by percentage
@Override public void onDrawerSlide(View drawerView, float slideOffset) { super.onDrawerSlide(drawerView, slideOffset); //SlideOffset comes in on a scale of 0-1. //40% looks roughly about right to swap out if (slideOffset > 0.4) { getSupportActionBar().setTitle(R.string.drawer_close); stopFullscreenIfNeeded(); } else { setTitleForActiveTag(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\n public void onDrawerSlide(View dra...
[ "0.7172811", "0.7171446", "0.7171446", "0.7171446", "0.7103148", "0.6854072", "0.6647569", "0.6427705", "0.6374646", "0.6318756", "0.6318756", "0.61858314", "0.61042005", "0.60914963", "0.5950339", "0.59232444", "0.58951914", "0.5844745", "0.58128726", "0.58128726", "0.581287...
0.6789544
6
Note: For this to fire, you have to declare in your AndroidManifest.xml what changes you're handling. For this activity, I've declared android:configChanges="orientation|screenSize", to show that this activity is going to handle rotation.
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); // Pass any configuration change to the drawer toggle mDrawerToggle.onConfigurationChanged(newConfig); //If there's a custom view, then set the customViewContainer as the content view. if (mCustomView != null) { setContentView(mCustomViewContainer); //TODO: Better handling of rotation including maintenance of play/pause state. } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfiguratio...
[ "0.7501346", "0.7385723", "0.7342114", "0.7321669", "0.717653", "0.7063117", "0.70427966", "0.69904965", "0.68924177", "0.6697558", "0.66059226", "0.65554583", "0.6513684", "0.65086967", "0.6471585", "0.6433439", "0.6410583", "0.6406114", "0.63965654", "0.6362466", "0.6335808...
0.5547916
99
The action bar home/up action should open or close the drawer. ActionBarDrawerToggle will take care of this.
@Override public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true; } //If the drawer toggle was not selected, switch (item.getItemId()) { case R.id.action_share: Toast.makeText(this, "Share!", Toast.LENGTH_LONG).show(); break; default: Log.d(Constants.LOG_TAG, "Unhandled action item!"); break; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n switch (item.getItemId()) {\n case android.R.id.home:\n drawerLayout.openDrawer(GravityCompat.START);\n ...
[ "0.7326823", "0.72217923", "0.72066426", "0.709211", "0.7061509", "0.7045113", "0.70420563", "0.70230347", "0.6996679", "0.6996679", "0.69864404", "0.69864404", "0.6963795", "0.6963547", "0.69378424", "0.6937765", "0.6937765", "0.6937765", "0.6937765", "0.6937765", "0.6937765...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { mMenu = menu; getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.724863", "0.7203384", "0.7197011", "0.71784776", "0.71090055", "0.7040796", "0.7039464", "0.7013998", "0.70109546", "0.6982435", "0.6946134", "0.6939684", "0.6935636", "0.69193685", "0.69193685", "0.6892893", "0.6884914", "0.68768066", "0.68763", "0.68635243", "0.68635243"...
0.0
-1
/ Called whenever we call invalidateOptionsMenu()
@Override public boolean onPrepareOptionsMenu(Menu menu) { // If the nav drawer is open, hide action items related to the content view boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList); // If the nav drawer is open, hide action items that are related to the content view. menu.findItem(R.id.action_share).setVisible(!drawerOpen); return super.onPrepareOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDrawerOpened(View drawerView) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "@Override\r\n public void onPageSelected(int position) {\n invalidateOptionsMenu();\r\n }", "public void onDrawerOpened(View drawerView) {\n ...
[ "0.74695104", "0.7392627", "0.7339764", "0.72670704", "0.72611153", "0.724913", "0.7239336", "0.7216229", "0.7208133", "0.71414095", "0.7135056", "0.7113613", "0.7102028", "0.70916605", "0.70880747", "0.7076588", "0.7076588", "0.703805", "0.7026065", "0.7019834", "0.7002915",...
0.0
-1
Method to handle selection from the drawer menu.
private void selectedMenuItemAtPosition(int position) { switch (DrawerIndex.fromInteger(position)) { case INDEX_VIDEO: Log.d(Constants.LOG_TAG, "Selected Video"); FullscreenVideoWebviewFragment videoFragment = new FullscreenVideoWebviewFragment(); showFragment(videoFragment, TAG_VIDEO_FRAGMENT); break; case INDEX_KITTENS: Log.d(Constants.LOG_TAG, "Selected Kittens!"); KittensFragment kittensFragment = new KittensFragment(); showFragment(kittensFragment, TAG_KITTENS_FRAGMENT); break; case INDEX_TEXT_SPAN: Log.d(Constants.LOG_TAG, "Selected Text Span!"); SpannedTextFragment spannedTextFragment = new SpannedTextFragment(); showFragment(spannedTextFragment, TAG_TEXT_SPAN_FRAGMENT); break; // case INDEX_IMMERSIVE: // Log.d(Constants.LOG_TAG, "Selected Immersive!"); // ImmersiveFragment immersiveFragment = new ImmersiveFragment(); // showFragment(immersiveFragment, TAG_IMMERSIVE_FRAGMENT); // break; case INDEX_NOTIFICATION: Log.d(Constants.LOG_TAG, "Selected Notifications!"); NotificationFragment notificationFragment = new NotificationFragment(); showFragment(notificationFragment, TAG_NOTIFICATION_FRAGMENT); break; default: Log.e(Constants.LOG_TAG, "Unhandled position selection from drawer " + position); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void itemSelection(int mSelectedId) {\n switch(mSelectedId){\n\n case R.id.navigation_Home:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n\n break;\n\n case R.id.navigation_PreEngineering:\n mDrawerLayout.closeDrawer(GravityComp...
[ "0.7317215", "0.71194994", "0.71194994", "0.7057776", "0.70137763", "0.6945798", "0.68625975", "0.68599075", "0.6855485", "0.6806737", "0.6804475", "0.6734881", "0.6625697", "0.66172785", "0.6613255", "0.6613255", "0.6604024", "0.6603713", "0.6576625", "0.656779", "0.6557535"...
0.6786764
11
Shows the given fragment and updates the action bar title
public void showFragment(Fragment fragment, String tag) { fragment.setRetainInstance(true); getSupportFragmentManager() .beginTransaction() .replace(R.id.content_frame, fragment, tag) .addToBackStack(null) .commit(); setTitleForTag(tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(\"Toán Học\");\n return inflater.inflate(R.layout.fragment_toan_hoc, container, false);\n ...
[ "0.66312367", "0.6543402", "0.65173507", "0.6482803", "0.64350176", "0.643457", "0.6429912", "0.6362567", "0.63599205", "0.6343877", "0.63064206", "0.6298341", "0.6297696", "0.6295421", "0.62558484", "0.62548745", "0.62179047", "0.61500853", "0.61473036", "0.61385316", "0.613...
0.6506737
3
Gets the fragment tag of the currently visible fragment
private String getActiveFragmentTag() { List<Fragment> fragments = getSupportFragmentManager().getFragments(); if (fragments == null) { return null; } for (Fragment fragment : fragments) { if (fragment.isVisible()) { return fragment.getTag(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFragmentTag() {\n return this.getClass().getSimpleName();\n }", "public String getFragment() {\n\t\treturn fragment;\n\t}", "public String getFragment() {\n return m_fragment;\n }", "public Fragment getFragment() {\n return fragment;\n }", "public abstract...
[ "0.75224376", "0.6811579", "0.6634773", "0.6388855", "0.63854116", "0.63011795", "0.62251097", "0.6129852", "0.61155766", "0.60286254", "0.598937", "0.59693563", "0.5887596", "0.5879297", "0.5752021", "0.57505167", "0.5720415", "0.569118", "0.56878567", "0.56706274", "0.56671...
0.7797167
0
Gets the title based on the passed in fragment tag.
private String titleForTag(String fragmentTag) { if (fragmentTag == null) { return getString(R.string.app_name); } DrawerIndex tagIndex = DrawerIndex.fromTag(fragmentTag); int tagValue = DrawerIndex.valueOf(tagIndex); String title = getResources().getStringArray(R.array.examples_array)[tagValue]; return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public java.lang.String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String g...
[ "0.6991958", "0.6991958", "0.6991958", "0.6991958", "0.6991958", "0.66002506", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", ...
0.7815011
0
Sets the title based on a given fragment's tag to the action bar.
private void setTitleForTag(String tag) { getSupportActionBar().setTitle(titleForTag(tag)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTitleForActiveTag() {\n String activeTag = getActiveFragmentTag();\n getSupportActionBar().setTitle(titleForTag(activeTag));\n }", "protected void setActionBarTitle(String title) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof ContentActivi...
[ "0.73806715", "0.72805864", "0.7266485", "0.7227987", "0.72150123", "0.714091", "0.69626546", "0.6905081", "0.68812466", "0.68335915", "0.68335915", "0.68335915", "0.6828761", "0.67941934", "0.6786958", "0.67294514", "0.6708314", "0.66937464", "0.66718906", "0.6649696", "0.66...
0.75072545
0
Sets the title to the action bar based on the tag of the currently active fragment.
private void setTitleForActiveTag() { String activeTag = getActiveFragmentTag(); getSupportActionBar().setTitle(titleForTag(activeTag)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTitleForTag(String tag) {\n getSupportActionBar().setTitle(titleForTag(tag));\n }", "protected void setActionBarTitle(String title) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof ContentActivity) {\n\t\t\tContentActivity activity = (ContentActivi...
[ "0.754064", "0.73957485", "0.73066723", "0.72411335", "0.7219707", "0.7209292", "0.71918774", "0.7097873", "0.68938005", "0.68873405", "0.68873405", "0.68873405", "0.68640894", "0.68419576", "0.6831007", "0.6817119", "0.67750674", "0.6748344", "0.6715526", "0.6715526", "0.671...
0.822465
0
Calculates the height of the Status Sar (the bar at the top of the screen).
private int getStatusBarHeight() { if (mStatusBarHeight == 0) { Rect screenFrame = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(screenFrame); mStatusBarHeight = screenFrame.top; } return mStatusBarHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getStatusBarHeight(int position);", "private int getStatusBarHeight() {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimens...
[ "0.78515995", "0.77735597", "0.7693139", "0.7561896", "0.7561896", "0.7558338", "0.7276038", "0.7151325", "0.6999906", "0.688343", "0.6838436", "0.6838436", "0.6797281", "0.6703044", "0.6699787", "0.6680192", "0.6675784", "0.6656688", "0.65989983", "0.6584444", "0.65824574", ...
0.75268954
6
Calculates the height of the Navigation Bar (ie, the bar at the bottom of the screen with the Home, Back, and Recent buttons).
@SuppressLint("Deprecation") //Device getHeight() is deprecated but the replacement is API 13+ public int getNavigationBarHeight() { if (mNavigationBarHeight == 0) { Rect visibleFrame = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(visibleFrame); DisplayMetrics outMetrics = new DisplayMetrics(); if (Build.VERSION.SDK_INT >= 17) { //The sane way to calculate this. getWindowManager().getDefaultDisplay().getRealMetrics(outMetrics); mNavigationBarHeight = outMetrics.heightPixels - visibleFrame.bottom; } else { getWindowManager().getDefaultDisplay().getMetrics(outMetrics); //visibleFrame will return the same as the outMetrics the first time through, // then will have the visible frame the full size of the screen when it comes back // around to close. OutMetrics will always be the view - the nav bar. mNavigationBarHeight = visibleFrame.bottom - outMetrics.heightPixels; } } return mNavigationBarHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private int getNavigationBarHeight() {\n int resourceId = getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (!hasPermanentKeys() && resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }", "public sta...
[ "0.81968313", "0.7628664", "0.70133996", "0.64783025", "0.64414936", "0.6431897", "0.6421459", "0.6362958", "0.6362958", "0.6359861", "0.6358111", "0.6353921", "0.6350182", "0.63246125", "0.6319038", "0.6250031", "0.6232908", "0.6232908", "0.62244654", "0.6196046", "0.6185214...
0.774967
1
Method to mirror onShowCustomView from the WebChrome client, allowing WebViews in a Fragment to show custom views.
public void showCustomView(View view, WebChromeClient.CustomViewCallback callback) { //If there's already a custom view, this is a duplicate call, and we should // terminate the new view, then bail out. if (mCustomView != null) { callback.onCustomViewHidden(); return; } //Create a reusable set of FrameLayout.LayoutParams FrameLayout.LayoutParams fullscreenParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT); //Save the drawer view into an instance variable, then hide it. mContentView = findViewById(R.id.drawer_layout); mContentView.setVisibility(View.GONE); //Create a new custom view container mCustomViewContainer = new FrameLayout(MainActivity.this); mCustomViewContainer.setLayoutParams(fullscreenParams); mCustomViewContainer.setBackgroundResource(android.R.color.black); //Set view to instance variable, then add to container. mCustomView = view; view.setLayoutParams(fullscreenParams); mCustomViewContainer.addView(mCustomView); mCustomViewContainer.setVisibility(View.VISIBLE); //Save the callback an instance variable. mCustomViewCallback = callback; //Hide the action bar getSupportActionBar().hide(); //Set the custom view container as the activity's content view. setContentView(mCustomViewContainer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onShowCustomView(View view,CustomViewCallback callback) {\n if (mCustomView != null) {\n callback.onCustomViewHidden();\n return;\n }\n mCustomView = view;\n webView.setVisibility(View.GONE);\n custo...
[ "0.7800526", "0.7622201", "0.64313", "0.6107888", "0.60119575", "0.59459573", "0.58645207", "0.57972324", "0.5762246", "0.5704724", "0.5698005", "0.5656398", "0.56296843", "0.55775464", "0.54804474", "0.54612947", "0.5423833", "0.5414461", "0.53922474", "0.53574556", "0.53417...
0.7097764
2
Method to mirror onShowCustomView from the WebChrome client, allowing WebViews in a Fragment to hide custom views.
public void hideCustomView() { if (mCustomView == null) { //Nothing to hide - return. return; } else { // Hide the custom view. mCustomView.setVisibility(View.GONE); // Remove the custom view from its container. mCustomViewContainer.removeView(mCustomView); mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); mCustomView = null; // Show the ActionBar getSupportActionBar().show(); // Show the content view. mContentView.setVisibility(View.VISIBLE); setContentView(mContentView); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onShowCustomView(View view,CustomViewCallback callback) {\n if (mCustomView != null) {\n callback.onCustomViewHidden();\n return;\n }\n mCustomView = view;\n webView.setVisibility(View.GONE);\n custo...
[ "0.7790519", "0.74489003", "0.6981145", "0.69237053", "0.6221333", "0.5936551", "0.58458745", "0.5726643", "0.57186425", "0.57079375", "0.57005924", "0.54546", "0.5408783", "0.5404337", "0.53841716", "0.5379586", "0.5368325", "0.5350706", "0.53355217", "0.53283566", "0.531546...
0.71686244
2
If there's a custom view, hide it
@Override public void onBackPressed() { if (mCustomView != null) { hideCustomView(); } else { //Otherwise, treat back press normally. super.onBackPressed(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hideCustomView() {\n if (mCustomView == null) {\n //Nothing to hide - return.\n return;\n } else {\n // Hide the custom view.\n mCustomView.setVisibility(View.GONE);\n\n // Remove the custom view from its container.\n mCust...
[ "0.7967074", "0.7256161", "0.72066396", "0.7197229", "0.71449065", "0.71449065", "0.71449065", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", ...
0.0
-1
Created by matthew on 2020/5/17 15:34 day day up!
public interface IHistoryDaoCallback { /** * 添加历史的结果 * * @param isSuccess */ void onHistoryAdd(boolean isSuccess); /** * 删除历史的结果 * * @param isSuccess */ void onHistoryDel(boolean isSuccess); /** * 历史数据加载的结果 * * @param tracks */ void onHistoriesLoaded(List<Track> tracks); /** * 历史内容清楚结果 */ void onHistoriesClean(boolean isSuccess); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "public void mo21877s() {\n }", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n ...
[ "0.5209859", "0.5202735", "0.51136553", "0.51021653", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5039181", "0.50339526", "0.5008947", "0.49992177", "0.49832502", "0.49763894", "0.49069637", "0.49055064", "0.48970243", "0.4892...
0.0
-1
O array de valores (vals) nao pode ser null Se este for o caso, gostariamos de indicar que aconteceu um erro Para isso, gostariamos de usar a mesma abordagem do metodo acima No entanto, como a media pode ser um valor positivo, zero ou um valor negativo, nao temos um valor especial que seja diferente de todos os possiveis valores de retorno deste metodo Se o array de valores (vals) eh null, o que fazer?
public double calculaMedia(int[] vals) { if (vals == null) { System.out.println("vals == null: Como indicar que aconteceu um" + " erro e interromper a execucao normal do metodo " + "calculaMedia?"); } int soma = 0; for(int val : vals) { soma += val; } return soma / vals.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nA...
[ "0.56757176", "0.5470263", "0.5293861", "0.5263242", "0.51637673", "0.51613", "0.513037", "0.5128133", "0.5042855", "0.5041759", "0.498325", "0.49791926", "0.496552", "0.49556583", "0.49461913", "0.49329823", "0.48283988", "0.48164344", "0.48023936", "0.4798299", "0.4796711",...
0.5777025
0
destroy Node, this method only for api < 11, do not call if min api 11+
@Deprecated public void destroy(){ if (DeviceUtils.getVersionSDK() >= 11){ //just for api < 11 return; } final NodeController controller = this.controller.get(); if (controller != null) { controller.onDestroy(); controller.getLogger().d("[NodeRemoter]destroy (api<11), nodeId:" + controller.getNodeId()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deallocateNode(){\n this.processId = NO_PROCESS;\n this.full = false;\n }", "public void destroy()\n {\n if (spinning)\n stopSpinning();\n node.destroy();\n }", "public void destroy() {\n \t\n }", "public void destroy(PluginNode node, DMConnection con,...
[ "0.7096436", "0.68371904", "0.6648735", "0.6601139", "0.6601139", "0.65735036", "0.65735036", "0.6565331", "0.6521389", "0.6521389", "0.6521389", "0.6521389", "0.6521389", "0.6521389", "0.6498427", "0.6484987", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", ...
0.7678141
0
OVERRIDE DEI METODI EREDITATI DA ABSTRACT PLAYER ///////////////////////////////////////////////// notifica l'inizio della partita passando i giocatori avversarie le tessere scomunica
@Override public void gameIsStarted(Map<Integer, String> opponents, List<String> codeList) { try { if (getClientInterface() != null) getClientInterface().isGameStarted(getIdPlayer(), opponents, codeList); } catch (RemoteException e) { System.out.println("remote sending is game started error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void attiva(Player player) {\n\n\t}", "@Override\n public void landedOn(Player player) {}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\n\tpublic void play() {\n\n\t}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "protected ...
[ "0.649219", "0.63990587", "0.616955", "0.61518997", "0.6127892", "0.61091197", "0.6107002", "0.60978144", "0.6087458", "0.60841876", "0.6082119", "0.60777545", "0.6076305", "0.60696805", "0.6064463", "0.606277", "0.6026998", "0.60191196", "0.5971824", "0.5966076", "0.5959357"...
0.0
-1
notifica al giocatore che ha vinto per abbandono
public void youWinByAbandonment() { try { if (getClientInterface() != null) getClientInterface().gameEndedByAbandonment("YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!"); } catch (RemoteException e) { System.out.println("remote sending ended by abandonment error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public boolean tieneRepresentacionGrafica();", ...
[ "0.7237491", "0.6832159", "0.68130857", "0.6685288", "0.6644234", "0.6637566", "0.66303074", "0.6552638", "0.65508467", "0.64677227", "0.64413995", "0.6416077", "0.64052296", "0.6377259", "0.63684046", "0.63597775", "0.63099986", "0.63003397", "0.62990785", "0.6278867", "0.62...
0.0
-1
notifica al giocatore che ha vinto
@Override public void youWin(Map<String, Integer> rankingMap) { try { if (getClientInterface() != null) getClientInterface().gameEnded("YOU WON, CONGRATS BUDDY!!", rankingMap); } catch (RemoteException e) { System.out.println("remote sending you won error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n ...
[ "0.7008663", "0.68916965", "0.6771343", "0.6743496", "0.672291", "0.666665", "0.66164875", "0.66085434", "0.6604666", "0.6595136", "0.6513277", "0.6492251", "0.6488509", "0.6384009", "0.6347016", "0.63138866", "0.631231", "0.6311336", "0.6310717", "0.6301897", "0.63004476", ...
0.0
-1
notifica al giocatore che ha perso
@Override public void youLose(Map<String, Integer> rankingMap) { try { if (getClientInterface() != null) getClientInterface().gameEnded(" YOU LOSE, SORRY ", rankingMap); } catch (RemoteException e) { System.out.println("remote sending you lose error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public void carroNoAgregado(){\n System.out.println(\"No ...
[ "0.6731509", "0.66543865", "0.65344006", "0.63967186", "0.63419116", "0.62499017", "0.6249714", "0.617824", "0.61710346", "0.6155579", "0.61476195", "0.61461693", "0.61411726", "0.61328745", "0.6121998", "0.6097938", "0.6095522", "0.60933685", "0.60923046", "0.6084696", "0.60...
0.0
-1
notifica al giocatore le modifiche avvenute in seguito alla mossa di un suo avversario
@Override public void updateOpponentMove(int id, Map<CardType, List<String>> personalCardsMap, Map<ResourceType, Integer> qtaResourcesMap, MessageAction msgAction) { try { if (getClientInterface() != null) getClientInterface().opponentMove(id, personalCardsMap, qtaResourcesMap); if (msgAction != null) getClientInterface().opponentFamilyMemberMove(id, msgAction); } catch (RemoteException e) { System.out.println("remote sending opponent move error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean estaEnModoAvion();", "private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSiti...
[ "0.6965008", "0.63845146", "0.6273276", "0.6162897", "0.6121299", "0.6065877", "0.60008603", "0.5995705", "0.59376353", "0.5935058", "0.5923186", "0.58647877", "0.5863335", "0.58615685", "0.5828057", "0.58221394", "0.5819011", "0.5815814", "0.5764641", "0.57532215", "0.575250...
0.0
-1
mi informa il giocatore che deve tirare i dadi
@Override public void notifyRollDice() { try { if (getClientInterface() != null) getClientInterface().notifyHaveToShotDice(); } catch (RemoteException e) { System.out.println("remote sending have to shot error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextIn...
[ "0.6730571", "0.66811824", "0.6612346", "0.6535037", "0.6431082", "0.6361448", "0.6315179", "0.6306969", "0.63065064", "0.63054127", "0.63016504", "0.62810224", "0.6264575", "0.6250319", "0.624394", "0.62199175", "0.6161039", "0.6152224", "0.61495703", "0.6125063", "0.6102027...
0.0
-1
mi invia i valori dei dadi ai giocatori
@Override public void sendDicesValues(int orange, int white, int black) { try { if (getClientInterface() != null) getClientInterface().setDiceValues(orange, white, black); } catch (RemoteException e) { System.out.println("remote sending dice values error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextIn...
[ "0.6357464", "0.62255573", "0.61927557", "0.6187694", "0.6136286", "0.6039893", "0.6015071", "0.60133123", "0.59747785", "0.59492314", "0.59396815", "0.5937007", "0.5922132", "0.5916638", "0.58805853", "0.5876198", "0.58672184", "0.58641356", "0.58592063", "0.585891", "0.5854...
0.0
-1
metodo che invia al giocatore la lista delle carte sulle torri
@Override public void initializeBoard(List<DevelopmentCard> towersCardsList) { List<String> list = new ArrayList<>(); towersCardsList.forEach((developmentCard -> list.add(developmentCard.getName()))); try { if (getClientInterface() != null) getClientInterface().setTowersCards(list); } catch (RemoteException e) { System.out.println("remote sending tower cards error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il camp...
[ "0.6629664", "0.64889646", "0.63924044", "0.6348945", "0.634663", "0.6306211", "0.62950236", "0.6247808", "0.62442905", "0.61947525", "0.6190669", "0.6165821", "0.61337024", "0.61271614", "0.612698", "0.61142355", "0.61132413", "0.61128", "0.61061895", "0.6102098", "0.6093094...
0.0
-1
notifica al giocatore che ha terminato il turno
@Override public void notifyEndMove() { try { if (getClientInterface() != null) getClientInterface().notifyEndMove(); } catch (RemoteException e) { System.out.println("remote sending end move error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endOfTurn();", "@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}", "public void endTurn() {\n }", "public void toEndingTurn() {\n }", "void finishTurn();", "protected void end() {\n \tRobot.conveyor.stop();\n }", "@Override\n\tprotected void terminarJuego() {\n\t\t\n\t}", "...
[ "0.74775314", "0.72043383", "0.71707433", "0.70938355", "0.70106417", "0.695917", "0.6939305", "0.6929092", "0.6925388", "0.6916553", "0.68939203", "0.6878661", "0.6876647", "0.68285036", "0.6828183", "0.67854124", "0.67600006", "0.67544293", "0.6724626", "0.6706844", "0.6690...
0.0
-1
notifica che ha appena ottenuto un privilegio
@Override public void notifyPrivilege() { try { if (getClientInterface() != null) getClientInterface().notifyPrivilege(); } catch (RemoteException e) { System.out.println("remote sending privilege error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public Boolean isPrivado() {\n return privado;\n }", "public void setPrivado(Boolean privado) {\n this.privado = privado;\n }", "public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden a...
[ "0.82628244", "0.6882345", "0.6572089", "0.656022", "0.64780104", "0.64354527", "0.64321876", "0.64094186", "0.6404381", "0.63767034", "0.62623847", "0.62602174", "0.62363404", "0.6231745", "0.6225002", "0.6220072", "0.62030464", "0.61959773", "0.6163507", "0.6159153", "0.615...
0.5803005
56
invio la lista degli id dei giocatori nell'ordine corretto
@Override public void sendOrder(List<AbstractPlayer> playersOrderList) { List<Integer> orderList = new ArrayList<>(); for (AbstractPlayer player : playersOrderList) { orderList.add(player.getIdPlayer()); } try { if (getClientInterface() != null) getClientInterface().notifyTurnOrder(orderList); } catch (RemoteException e) { System.out.println("remote sending order error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.g...
[ "0.68677664", "0.6562753", "0.65609354", "0.6455237", "0.6426952", "0.6424789", "0.623023", "0.62032795", "0.6165172", "0.6152857", "0.61409783", "0.60894895", "0.6061763", "0.5966939", "0.5960076", "0.59590614", "0.5951901", "0.59447354", "0.59027404", "0.5891937", "0.587749...
0.0
-1
notifica al giocatore che il suo avversario ha abbandonato
@Override public void opponentSurrender(int id) { try { if (getClientInterface() != null) getClientInterface().notifyOpponentSurrender(id); } catch (RemoteException e) { System.out.println("remote sending opponent surrender error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combative...
[ "0.71943575", "0.6959349", "0.66827124", "0.66705424", "0.66355807", "0.66263163", "0.6603937", "0.6584134", "0.65376323", "0.6522522", "0.64817256", "0.6468562", "0.64408", "0.64375174", "0.63892895", "0.6388627", "0.6353496", "0.6319392", "0.6314705", "0.6302916", "0.630244...
0.0
-1
This response object will have the details of all import operations performed on this import sink.
@GetMapping("/queryPriceImportOperations") public CompletableFuture<ApiHttpResponse<ImportOperationPagedResponse>> queryImportOperations() throws ExecutionException, InterruptedException { CompletableFuture<ApiHttpResponse<ImportOperationPagedResponse>> imoprtOperationResponse = ctoolsImportApiClient.withProjectKeyValue(project) .prices() .importSinkKeyWithImportSinkKeyValue(importSink.getKey()) .importOperations() .get().withLimit(10000.0).execute(); return imoprtOperationResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getImportStatus() {\n return this.importStatus;\n }", "public ImportDataResponse importData(ImportDataRequest importRequest) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ...
[ "0.58819056", "0.5707575", "0.52002037", "0.5107812", "0.5055166", "0.5024373", "0.499922", "0.49711156", "0.4968984", "0.4961321", "0.49288908", "0.49238423", "0.49163222", "0.48611", "0.48353186", "0.4796557", "0.4779332", "0.47706175", "0.4763573", "0.4752079", "0.47450644...
0.53613865
2
Construct this sketch with the given memory.
DirectCompactSketch(final Memory mem) { mem_ = mem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AVRMemory()\n {\n super(32, 256, 4096, 65535);\n }", "public MyMemory(int size){\n super(size);\n printSize();\n loadMemory(); //loads memory with instructions to be executed during the instruction cycle\n }", "Memory() {}", "public Memory() {\n this(false);\...
[ "0.64334047", "0.61582744", "0.61100453", "0.60197675", "0.59290075", "0.59283984", "0.57709956", "0.5758578", "0.5741903", "0.57085884", "0.56874335", "0.5686294", "0.56579167", "0.5639698", "0.5602238", "0.5585184", "0.5563322", "0.55620617", "0.5556765", "0.55557454", "0.5...
0.52557385
28
compact is always valid
@Override public int getRetainedEntries(final boolean valid) { if (otherCheckForSingleItem(mem_)) { return 1; } final int preLongs = extractPreLongs(mem_); final int curCount = (preLongs == 1) ? 0 : extractCurCount(mem_); return curCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void compact() {\n\t}", "@Override\n public void compact() {\n\n }", "default void compact() {\n\t\t/* no-op by default */\n\t}", "public void testCompact()\n {\n System.out.println(\"compact\");\n \n\n AbstractSparseMatrix m1 = (AbstractSparseMatrix) this.createRandom();...
[ "0.73212343", "0.7188941", "0.71306854", "0.64657325", "0.6447402", "0.6416426", "0.5873186", "0.5613442", "0.5425408", "0.5401279", "0.539359", "0.5384356", "0.5360514", "0.53551286", "0.53023005", "0.52870446", "0.52709496", "0.5233201", "0.52276385", "0.521837", "0.5207653...
0.0
-1
If s.length != t.length, return false Sort the two strings, and check if s equals t. Time complexity is mlg(m) + nlg(n) + m+n Space complexity is m+n m is length of s, n is length of t
public boolean isAnagram(String s, String t) { if (s.length() != t.length()) { return false; } char[] sChars = s.toCharArray(); Arrays.sort(sChars); char[] tChars = t.toCharArray(); Arrays.sort(tChars); return new String(sChars).equals(new String(tChars)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean checkPermutaionSort(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n char c1[] = s1.toCharArray();\n char c2[] = s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n for (int i = 0; i < s1.length(); ++i) {\n ...
[ "0.72938305", "0.724049", "0.7065459", "0.69572157", "0.69106716", "0.6882692", "0.6836495", "0.65994644", "0.6570536", "0.6492206", "0.64709294", "0.6451883", "0.64132077", "0.63676614", "0.63644236", "0.63619334", "0.63577056", "0.6350187", "0.6328196", "0.6325302", "0.6319...
0.6455424
11
the assumption is all elements in a[] are different
public static int count(int[] a) { sort(a); int N = a.length; // print out the sorted array System.out.print("Sorted array: "); for (int i = 0; i < N; i++) { System.out.print(a[i] + " "); } System.out.println(); int count = 0; for (int i = 0; i < N; i++) { int j = i + 1; int k = N - 1; while (j < k) { if (a[i] + a[j] + a[k] == 0) { System.out.println(i + "," + j + "," + k); count++; j++; } else if (a[i] + a[j] + a[k] > 0) { k--; } else { j++; } } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean RepVec(String []a){\n boolean rep=false;\n String aux1=\"\",aux2=\"\";\n for (int i = 0; i < a.length; i++) {\n aux1=a[i];\n for (int j = 0; j < a.length; j++) {\n aux2=a[j];\n if( i!=j ){ \n if(...
[ "0.68888634", "0.65231", "0.6467812", "0.6425589", "0.6333656", "0.6289289", "0.62615925", "0.62407184", "0.60220927", "0.60145676", "0.5997038", "0.59634364", "0.59533304", "0.5887015", "0.5879661", "0.5872793", "0.5850803", "0.5846037", "0.5806474", "0.5754974", "0.5750831"...
0.0
-1
shuffle to avoid worst case scneario
private static void sort(int[] a) { shufle(a); // we use quicksort here because there's no need for stability sort(a, 0, a.length - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shuffle();", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "void shuffle();", "void shuffle();", "private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for ...
[ "0.7943672", "0.7872671", "0.7841667", "0.7841667", "0.7626503", "0.76101655", "0.75154656", "0.7494708", "0.74839884", "0.7476577", "0.7468383", "0.73991627", "0.734207", "0.7327059", "0.7307463", "0.7300375", "0.7285667", "0.72821456", "0.727858", "0.7268608", "0.7267551", ...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass(MainActivity.this, ControlActivity.class); MainActivity.this.startActivity(intent); finish(); System.exit(0); }
{ "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
protected void start() { hellotv.setText(""); Map<String, Object> params = new LinkedHashMap<String, Object>(); String event = null; event = SpeechConstant.ASR_START; if (enableOffline) { params.put(SpeechConstant.DECODER, 2); } params.put(SpeechConstant.ACCEPT_AUDIO_VOLUME, false); //params.put(SpeechConstant.PID, 1737);//English String json = null; json = new JSONObject(params).toString(); asr.send(event, json, null, 0, 0); printresult("输入参数"+ json); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onEvent(String name, String params, byte[] data, int offset, int length) { String result = "name:" + name; //if(params != null && !params.isEmpty()){ // result+=";params:"+params; //} if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_PARTIAL)){ if(params.contains("\"final_result\"")){ result += "\n"+"语义解析结果:" + params.substring(45, 47); if(result.contains("前进")){ Toast.makeText(MainActivity.this,"识别出了前进!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_FORWARD); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("后退")){ Toast.makeText(MainActivity.this,"识别出了后退!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_BACKWARD); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("左转")){ Toast.makeText(MainActivity.this,"识别出了左转!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_LEFT); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("右转")){ Toast.makeText(MainActivity.this,"识别出了右转!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_RIGHT); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("停")){ Toast.makeText(MainActivity.this,"识别出了停止!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_STOP); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("避障")){ Toast.makeText(MainActivity.this,"识别出了避障!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_AVOID); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("跟踪")){ Toast.makeText(MainActivity.this,"识别出了跟踪!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_FOLLOW); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("抓取")){ Toast.makeText(MainActivity.this,"识别出了抓取!",Toast.LENGTH_SHORT).show(); Intent intent = new Intent(); intent.setClass(MainActivity.this, GraspActivity.class); MainActivity.this.startActivity(intent); finish(); System.exit(0); } } }else if(data != null){ result += ";data length=" + data.length; } /*if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_READY)){ result +="引擎准备就绪,可以开始说话"; }else if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_BEGIN)){ result += "检测到用户已经开始说话"; }else if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_END)){ result += "检测到用户已经停止说话"; }else if (data != null) { result += " ;data length=" + data.length; }*/ //show the result printresult(result); }
{ "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
Gets the city value for this Organization.
public java.lang.String getCity() { return city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCity() {\n return (String) get(\"city\");\n }", "public String getCity() {\n return (String)getAttributeInternal(CITY);\n }", "public String getCity() {\n\t\treturn this.city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\tret...
[ "0.81543916", "0.79602826", "0.78014594", "0.7780688", "0.7780688", "0.7780688", "0.7780688", "0.7775878", "0.7775878", "0.77312946", "0.77151406", "0.77097243", "0.76958543", "0.766109", "0.7657789", "0.76388574", "0.7556762", "0.7546482", "0.75131696", "0.75131696", "0.7513...
0.77540064
10
Sets the city value for this Organization.
public void setCity(java.lang.String city) { this.city = city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCity(String value) {\n setAttributeInternal(CITY, value);\n }", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }"...
[ "0.7670501", "0.76246333", "0.75675035", "0.75675035", "0.75467163", "0.753441", "0.753441", "0.753441", "0.753441", "0.753441", "0.753441", "0.752025", "0.7499718", "0.7499718", "0.74823713", "0.7477186", "0.7434478", "0.7428167", "0.74218047", "0.73966336", "0.73950636", ...
0.74184036
20
Gets the complianceBccEmail value for this Organization.
public java.lang.String getComplianceBccEmail() { return complianceBccEmail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setComplianceBccEmail(java.lang.String complianceBccEmail) {\n this.complianceBccEmail = complianceBccEmail;\n }", "public Bcc bcc() {\n if (_bcc == null)\n _bcc = new Bcc(this, Keys.BCC_MANIFEST_BCC_ID_FK);\n\n return _bcc;\n }", "public String getConsigneeAdd...
[ "0.6785237", "0.5838467", "0.5674878", "0.55735517", "0.55105156", "0.54592466", "0.53975904", "0.5354438", "0.5350766", "0.5350564", "0.5315163", "0.5308339", "0.5299799", "0.52940124", "0.52940124", "0.52940124", "0.52838725", "0.52728325", "0.52728325", "0.52685237", "0.52...
0.8629658
0
Sets the complianceBccEmail value for this Organization.
public void setComplianceBccEmail(java.lang.String complianceBccEmail) { this.complianceBccEmail = complianceBccEmail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getComplianceBccEmail() {\n return complianceBccEmail;\n }", "@GenIgnore\n public MailMessage setBcc(String bcc) {\n List<String> bccList = new ArrayList<String>();\n bccList.add(bcc);\n this.bcc = bccList;\n return this;\n }", "public void setBcc(Address bcc) {\...
[ "0.69233704", "0.5826039", "0.5412688", "0.5311108", "0.5193045", "0.4978488", "0.4925379", "0.47976613", "0.47816816", "0.47814313", "0.4760642", "0.4749891", "0.4693668", "0.45931938", "0.45811105", "0.45648566", "0.45604306", "0.4545056", "0.45341173", "0.45341173", "0.452...
0.78441465
0
Gets the country value for this Organization.
public java.lang.String getCountry() { return country; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull public CountryCode getCountry() { return country; }", "public final String getCountry() {\n\t\treturn country;\n\t}", "public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }", "public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n ...
[ "0.72588396", "0.7191923", "0.71720004", "0.71720004", "0.71720004", "0.70754874", "0.70601946", "0.69896394", "0.6970349", "0.69640553", "0.6952608", "0.6952608", "0.6952608", "0.6913086", "0.6913086", "0.6906522", "0.68581504", "0.68281597", "0.67907035", "0.6783172", "0.67...
0.7098295
5
Sets the country value for this Organization.
public void setCountry(java.lang.String country) { this.country = country; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setCountry(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.country = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setCountry(Country country) {\n this.country = co...
[ "0.7157324", "0.7152306", "0.70738786", "0.70738786", "0.70738786", "0.6979612", "0.6979612", "0.69243497", "0.69243497", "0.69243497", "0.69243497", "0.69243497", "0.69243497", "0.6897591", "0.68739694", "0.68739694", "0.68739694", "0.6862417", "0.6860498", "0.67801297", "0....
0.6860214
19
Gets the createdBy value for this Organization.
public com.sforce.soap.enterprise.sobject.User getCreatedBy() { return createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "pub...
[ "0.7700736", "0.7700736", "0.7611713", "0.7540534", "0.7539302", "0.7522346", "0.75007033", "0.748752", "0.74822146", "0.74822146", "0.74822146", "0.7468165", "0.74382454", "0.74212945", "0.7334435", "0.7334435", "0.7334435", "0.73156583", "0.73156583", "0.73156583", "0.73156...
0.75651586
3
Sets the createdBy value for this Organization.
public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) { this.createdBy = createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCre...
[ "0.77043176", "0.7416511", "0.7340652", "0.73148096", "0.73087686", "0.73087686", "0.73070055", "0.7306526", "0.7295745", "0.7295543", "0.7295543", "0.7295543", "0.7253061", "0.7185557", "0.7165718", "0.70937365", "0.70701635", "0.70701635", "0.70701635", "0.70701635", "0.707...
0.74277925
1
Gets the createdById value for this Organization.
public java.lang.String getCreatedById() { return createdById; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public Integer getCreatedPersonId() {\n return createdPersonId;\n }", "public Integer getCreatedUserId() {\n return this...
[ "0.75772184", "0.75772184", "0.65701747", "0.62109756", "0.62109756", "0.6057474", "0.602221", "0.6009112", "0.6009112", "0.6009112", "0.5908752", "0.5893557", "0.58721113", "0.58322185", "0.58322185", "0.5814726", "0.5814726", "0.5814726", "0.5814726", "0.5812714", "0.576146...
0.76185817
1
Sets the createdById value for this Organization.
public void setCreatedById(java.lang.String createdById) { this.createdById = createdById; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }", "public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }"...
[ "0.6879117", "0.6879117", "0.59342027", "0.59342027", "0.59333456", "0.59333456", "0.58772033", "0.57124734", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.53991985", "0.53935736", "0.53269076", "0.5280735", "0.5279942", ...
0.6854704
3
Gets the createdDate value for this Organization.
public java.util.Calendar getCreatedDate() { return createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Long getCreatedDate() {\...
[ "0.78007096", "0.76810235", "0.76788014", "0.7670968", "0.7596998", "0.75882316", "0.7485282", "0.7484164", "0.748243", "0.746936", "0.7455736", "0.7455736", "0.7432128", "0.7408021", "0.7408021", "0.7404395", "0.738456", "0.73655045", "0.73655045", "0.73626465", "0.73571396"...
0.74946386
7
Sets the createdDate value for this Organization.
public void setCreatedDate(java.util.Calendar createdDate) { this.createdDate = createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDateCreated(final Date dateCreated);", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "void setCreatedDate(Date createdDate);", "public void s...
[ "0.7607315", "0.75710964", "0.75710964", "0.7529779", "0.7528454", "0.75250435", "0.749474", "0.7470944", "0.74367285", "0.74367285", "0.72751814", "0.7252572", "0.7246146", "0.7211241", "0.7200449", "0.71685386", "0.71685386", "0.71685386", "0.71683323", "0.71389437", "0.712...
0.7431493
11
Gets the defaultAccountAndContactAccess value for this Organization.
public java.lang.String getDefaultAccountAndContactAccess() { return defaultAccountAndContactAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "public java.lang....
[ "0.66893137", "0.6620492", "0.65258723", "0.6357077", "0.605064", "0.6037283", "0.59631455", "0.5820304", "0.56667197", "0.54883885", "0.5359158", "0.53520155", "0.5339856", "0.52576536", "0.52092075", "0.51746726", "0.5076488", "0.49598184", "0.4922565", "0.4913488", "0.4891...
0.81986034
0
Sets the defaultAccountAndContactAccess value for this Organization.
public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) { this.defaultAccountAndContactAccess = defaultAccountAndContactAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public java.lan...
[ "0.65892476", "0.64843315", "0.6427673", "0.62579614", "0.57780296", "0.5479313", "0.5395985", "0.51663333", "0.51358414", "0.5092904", "0.49839777", "0.48346335", "0.47749504", "0.47496042", "0.46955913", "0.4666469", "0.46662092", "0.4605472", "0.45979425", "0.45730188", "0...
0.80644405
0
Gets the defaultCalendarAccess value for this Organization.
public java.lang.String getDefaultCalendarAccess() { return defaultCalendarAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public java.lang.String getDefaultAccountAndContactAc...
[ "0.7119246", "0.65905833", "0.6297649", "0.62664986", "0.6088871", "0.5839437", "0.5811371", "0.57975614", "0.57395214", "0.56072545", "0.55822486", "0.55610865", "0.55527085", "0.5544805", "0.55394286", "0.55359805", "0.5535407", "0.55313647", "0.54953736", "0.5468925", "0.5...
0.82065725
0
Sets the defaultCalendarAccess value for this Organization.
public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) { this.defaultCalendarAccess = defaultCalendarAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "default T setCalendarAccessAuthorized(boolean v...
[ "0.6933316", "0.6494543", "0.607661", "0.6074602", "0.59321004", "0.5911666", "0.55700624", "0.54886156", "0.54886156", "0.5454032", "0.54196274", "0.54146063", "0.53633636", "0.53537786", "0.5318011", "0.53150374", "0.525296", "0.5247527", "0.52092135", "0.5064855", "0.50644...
0.82851243
0
Gets the defaultCaseAccess value for this Organization.
public java.lang.String getDefaultCaseAccess() { return defaultCaseAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public java.lang.String getDefaultLeadAccess() {\n return defa...
[ "0.6969778", "0.6877304", "0.6567286", "0.6458737", "0.63611835", "0.60128987", "0.596801", "0.5862285", "0.58578026", "0.5709077", "0.56016064", "0.54757977", "0.5283641", "0.5245555", "0.51287466", "0.5071223", "0.5049625", "0.5034388", "0.49460712", "0.48960444", "0.482291...
0.75213856
0
Sets the defaultCaseAccess value for this Organization.
public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) { this.defaultCaseAccess = defaultCaseAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", ...
[ "0.68943065", "0.6711335", "0.65386117", "0.6249705", "0.59772885", "0.5437913", "0.5193849", "0.5162167", "0.5096674", "0.50891316", "0.5051074", "0.48884743", "0.4884469", "0.47621644", "0.47260258", "0.47160012", "0.46853188", "0.46686497", "0.46518698", "0.46482337", "0.4...
0.79535663
0
Gets the defaultLeadAccess value for this Organization.
public java.lang.String getDefaultLeadAccess() { return defaultLeadAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n thi...
[ "0.75256693", "0.7114996", "0.70480627", "0.62520325", "0.6190178", "0.5978903", "0.5732577", "0.5721856", "0.5600486", "0.555101", "0.55342984", "0.5480681", "0.52042556", "0.5148841", "0.5140146", "0.5128099", "0.5096368", "0.5045125", "0.49348393", "0.4911738", "0.48903063...
0.813658
0