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
Removes a die, given the position in the arraylist
public Die removeDie(int position) { return this.bag.remove(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAt(int pos)\n {\n for (int i = pos; i < length - 1; i++)\n {\n list[i] = list[i + 1];\n }\n length--;\n }", "public void removeElementAt(int index);", "void remove( int index );", "void remove(int index);", "void remove(int index);", "void re...
[ "0.6990488", "0.67773044", "0.6586357", "0.65557784", "0.65557784", "0.65557784", "0.65557784", "0.65306264", "0.648827", "0.6487825", "0.64579463", "0.6394195", "0.63924867", "0.6369092", "0.6283725", "0.6279464", "0.62688965", "0.62598264", "0.62573457", "0.619362", "0.6191...
0.6742432
2
Getter for size of the bag
public int size() { return bag.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size () {\r\n return this.size;\r\n }", "public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int get_size();", "public int get_size();", "public Integer getSize() {\n return size;\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", ...
[ "0.77630806", "0.77142304", "0.77092963", "0.77092963", "0.7676121", "0.76683825", "0.7666734", "0.76393557", "0.7621788", "0.7617487", "0.75997514", "0.75997514", "0.75997514", "0.75997514", "0.75997514", "0.75979984", "0.75979984", "0.75979984", "0.75979984", "0.7595614", "...
0.8576556
0
Helper method to unify async and sync invocation
public void call(Runnable task) { if (asyncLogging) { executor.submit(task); } else { task.run(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void callSync() {\n\n }", "public abstract T await();", "public interface AsyncOperationHelper {\n\t\n\t/**\n\t * Inserisce l'operazione asincrona e restituisce il risultato dell'invocazione.\n\t * \n\t * @param account l'account relativo alla richiesta\n\t * @param azioneRichi...
[ "0.687267", "0.6424739", "0.6183051", "0.6165986", "0.61597127", "0.6090134", "0.6015153", "0.60033166", "0.5914713", "0.58099794", "0.5806812", "0.5757185", "0.57531464", "0.5747152", "0.57114923", "0.5683409", "0.5610133", "0.5608276", "0.556951", "0.55649847", "0.5562638",...
0.0
-1
name: IMultifragmentActivity desc: date: 20150615 author: David Copyright (c) 2015 David Han
public interface IMultifragmentActivity { Toolbar getToolbar(); void showBackButton(boolean visible); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentCla...
[ "0.62524146", "0.6149453", "0.6058842", "0.6035932", "0.5941804", "0.58317626", "0.5782318", "0.57816", "0.57365066", "0.570155", "0.5659747", "0.5609193", "0.56071436", "0.5584818", "0.5584818", "0.55742866", "0.55733806", "0.5567801", "0.5534542", "0.5519502", "0.55131805",...
0.68135893
0
IFoodMgr: a thing that takes care of creating food tokens and their behaviours.
public interface IFoodMgr { /** * Update the IBubbleMgr - must be called on each pass thru update loop */ void update(Env world) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createFood() {\n }", "public TinyTokenManager() throws IOException {\n init();\n }", "Yard createYard();", "public interface Manager {\n\n}", "ImplementationManager createManager();", "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "public interface IFood {\n double ...
[ "0.5587027", "0.5546627", "0.5492893", "0.5420454", "0.5312046", "0.52070284", "0.5157828", "0.5151679", "0.5117358", "0.505299", "0.50483865", "0.49931166", "0.4974423", "0.49700472", "0.49493557", "0.4938349", "0.49226826", "0.49193904", "0.49126104", "0.49109197", "0.49056...
0.5073321
9
Update the IBubbleMgr must be called on each pass thru update loop
void update(Env world) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IFoodMgr\n{\n /**\n * Update the IBubbleMgr - must be called on each pass thru update loop\n */\n void update(Env world) throws Exception;\n\n}", "@Override\n public void update() {\n updateBuffs();\n }", "@Override\n public void update() {\n this.blnDoUpda...
[ "0.69970614", "0.6664835", "0.6504675", "0.632884", "0.62836546", "0.62421936", "0.6234469", "0.6217059", "0.62159145", "0.6107097", "0.6095852", "0.608168", "0.60681057", "0.6066313", "0.60582894", "0.6057306", "0.604292", "0.6042586", "0.6042586", "0.6042586", "0.6042586", ...
0.0
-1
Users for corresponding credential
@BeforeAll public void setup() throws CredentialAlreadyExistsException { LocalDate now_ld = LocalDate.now(); user1 = new User("testuser1@email.com", "FirstName1", "LastName1", now_ld, null); user2 = new User("testuser2@email.com", "FirstName2","LastName2", now_ld, null); // Add credentials to the datab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult s...
[ "0.64990723", "0.6433972", "0.64023525", "0.64015865", "0.6399378", "0.6387578", "0.6386855", "0.6368299", "0.6355506", "0.6328035", "0.62497354", "0.62077665", "0.62007457", "0.6192849", "0.61926", "0.61876374", "0.6178185", "0.61770695", "0.6168805", "0.61226606", "0.612204...
0.0
-1
Invoked by candidates to gather votes
public RequestVoteRsp RequestVote(RequestVoteReq candidate) { boolean voted = false; //if term > currentTerm if (candidate.getTerm() > this.persistentState.getCurrentTerm()) { // currentTerm = term; this.persistentState.setCurrentTerm(candidate.getTerm()); //s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void doVote() {\n }", "@Override\n public void processElection() {\n if (context.getState().equals(LEADER) || !context.getActive()) {\n return;\n }\n\n log.info(\"Peer #{} Start election\", context.getId());\n\n context.setState(CANDIDATE);\n Long...
[ "0.7137386", "0.6700155", "0.66670275", "0.66662633", "0.6659692", "0.64801073", "0.64489865", "0.6413851", "0.63723963", "0.6362356", "0.630888", "0.62448484", "0.62448484", "0.62196606", "0.6217235", "0.6214323", "0.61805224", "0.6170283", "0.6165395", "0.61578107", "0.6129...
0.5503159
66
Invoked by leader to replicate log entries and discover inconsistencies; also used as heartbeat.
public AppendEntriesRsp AppendEntries(AppendEntriesReq leader) { // return if term < currentTerm if (leader.getTerm() < this.persistentState.getCurrentTerm()) { return new AppendEntriesRsp(this.persistentState.getCurrentTerm(), false); } //if term > currentTerm if (le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void apply(LogReplicationEntryMsg message) {\n\n verifyMetadata(message.getMetadata());\n\n if (message.getMetadata().getSnapshotSyncSeqNum() != recvSeq ||\n message.getMetadata().getEntryType() != LogReplicationEntryType.SNAPSHOT_MESSAGE) {\n log.error...
[ "0.6087714", "0.60176736", "0.5866482", "0.5665832", "0.5658016", "0.5595778", "0.55055237", "0.5439433", "0.5374405", "0.53269523", "0.5305012", "0.5303569", "0.5283202", "0.52688706", "0.5266859", "0.5257779", "0.5257144", "0.5257051", "0.5196675", "0.5181687", "0.5155523",...
0.5425972
8
Get user's data space
@GetMapping("{userId}") public List<DSNodeDto> getDataSpace(@PathVariable Long userId) { return dataSpaceDataService.getDataSpace(userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "DataStoreInfo getUserDataStoreInfo();", "public char[] storage_GET()\n {return storage_GET(new char[120], 0);}", "protected String[] getUserData(){\n ...
[ "0.68218005", "0.68218005", "0.68218005", "0.68218005", "0.68218005", "0.6488377", "0.6341221", "0.62097335", "0.6093358", "0.6092986", "0.6064636", "0.6026567", "0.5954931", "0.59206706", "0.59206706", "0.59206706", "0.59206706", "0.586811", "0.5847229", "0.5832935", "0.5790...
0.62275416
7
Get Shared data (SingleContactActivity and SharedActivity)
@GetMapping("shared") public List<DSNodeDto> getSharedDataSpace(@RequestParam Long userId, @RequestParam Long contactId, @RequestParam Optional<Long> nodesCount) { if (nodesCount.isPresent()) { return dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "@Override\n ...
[ "0.653829", "0.6441773", "0.63521385", "0.60727453", "0.6008678", "0.5929861", "0.590332", "0.58575255", "0.58559775", "0.58555037", "0.57967466", "0.57899106", "0.57465494", "0.5704947", "0.5678368", "0.5671453", "0.56426054", "0.5628212", "0.55985415", "0.5580397", "0.55612...
0.5237079
38
TODO Autogenerated method stub
public Builder withFileProcessor(FileProcessor fileProcessor) throws IOException, NullPointerException, FileNotFoundException { String[] sentenceList = fileProcessor.readLine().split("\\."); for (int i = 0; i < sentenceList.length; i++) { String trimmedWord = sentenceList[i].trim(); String pattern = "...
{ "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
Accept method to accept the visitor
@Override public void accept(Visitor visitor) throws FileNotFoundException, IOException { for (Element e : sentenceArrayLst) { ((Element) e).accept(visitor); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void accept(Visitor visitor);", "public void accept(Visitor visitor);", "public abstract void accept(Visitor v);", "void accept(Visitor visitor);", "public void accept(IVisitor visitor);", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n\tpublic void accep...
[ "0.8497198", "0.8368343", "0.824339", "0.8119222", "0.8010293", "0.79943144", "0.7914533", "0.79072976", "0.7879103", "0.7809967", "0.7809967", "0.7744914", "0.77223945", "0.7704816", "0.76914215", "0.76707125", "0.75965345", "0.7547948", "0.7523831", "0.7505709", "0.7481668"...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { String header = this.header.toString(); String preHeader = ""; if (this.preHeader != null) preHeader = this.preHeader.toString(); String backjump = this.backJump.toString(); String loopStmts = loopStatements.toString(); String loop = "[\n header = " + header...
{ "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
A loop has a preheader if there is only one edge to the header of the loop from outside of the loop. If this is the case, the block branching to the header of the loop is the preheader node.
public Stmt getPreHead() { return preHeader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "public abstract boolean isFirstLineHeader();", "public void forceNotInsideHeader() {\n insideHeader = false;\n }", "static Boolean detectloop(Node Header){\n Node slow_pointer = Header;\n ...
[ "0.625578", "0.5977192", "0.5552086", "0.55303925", "0.5361787", "0.5309528", "0.52713794", "0.52122647", "0.5154217", "0.50999093", "0.5098157", "0.50861424", "0.5061568", "0.5029217", "0.502713", "0.5023365", "0.50124043", "0.5004666", "0.50016135", "0.49975538", "0.4954439...
0.65629566
0
Returns the statement that jumps back to the head, thereby constituing the loop.
public Stmt getBackJumpStmt() { return backJump; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void jumpBack() {\n this.instructionList = this.stack.pop();\n }", "@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}", "public IClause back() {\n if (back==front)\n throw new BufferUnderflowException();\n\n ...
[ "0.6669797", "0.5888254", "0.5878648", "0.5868084", "0.5832601", "0.5829164", "0.58139634", "0.57802784", "0.5734363", "0.57318753", "0.5717664", "0.5703153", "0.56959766", "0.5687707", "0.5645735", "0.56289923", "0.5628599", "0.559676", "0.5587306", "0.55676377", "0.5562304"...
0.7008729
0
Returns all loop exists. A loop exit is a statement which has a successor that is not contained in the loop.
public Collection<Stmt> getLoopExits() { if (loopExists == null) { loopExists = new HashSet<Stmt>(); for (Stmt s : loopStatements) { for (Unit succ : g.getSuccsOf(s)) { if (!loopStatements.contains(succ)) { loopExists.add(s); } } } } return loopExists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Stmt> targetsOfLoopExit(Stmt loopExit) {\r\n\t\tassert getLoopExits().contains(loopExit);\r\n\t\tList<Unit> succs = g.getSuccsOf(loopExit);\r\n\t\tCollection<Stmt> res = new HashSet<Stmt>();\r\n\t\tfor (Unit u : succs) {\r\n\t\t\tStmt s = (Stmt) u;\r\n\t\t\tres.add(s);\r\n\t\t}\r\n\t\tres.removeA...
[ "0.67214876", "0.64514077", "0.6031465", "0.59678584", "0.59129584", "0.5706948", "0.5684911", "0.5673955", "0.56156635", "0.54829556", "0.54511815", "0.5353918", "0.53394616", "0.53345764", "0.5304363", "0.52732587", "0.52657866", "0.5252882", "0.51744664", "0.5128678", "0.5...
0.8353576
0
Computes all targets of the given loop exit, i.e. statements that the exit jumps to but which are not part of this loop.
public Collection<Stmt> targetsOfLoopExit(Stmt loopExit) { assert getLoopExits().contains(loopExit); List<Unit> succs = g.getSuccsOf(loopExit); Collection<Stmt> res = new HashSet<Stmt>(); for (Unit u : succs) { Stmt s = (Stmt) u; res.add(s); } res.removeAll(loopStatements); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Collection<Node> findTarget(final JumpType type, final String label) {\n Collection<Node> result = new Object() {\n private Collection<Node> find(final int i) {\n if (i < 0) return null;\n\n Node nd = ctxt.get(i);\n\n if (nd instanceof Finally) {\n BlockSta...
[ "0.60222983", "0.58839786", "0.5788627", "0.5410975", "0.5401089", "0.5384056", "0.53550327", "0.5344843", "0.5344444", "0.52529407", "0.520782", "0.51890105", "0.517491", "0.514603", "0.51334876", "0.5108512", "0.51054806", "0.5089299", "0.50832415", "0.50446427", "0.5044491...
0.75591123
0
Returns true if this loop certainly loops forever, i.e. if
public boolean loopsForever() { return getLoopExits().isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasSelfLoops();", "protected boolean isInLoop() {\n return _loopInfo != null;\n }", "public boolean isLoopMode();", "public boolean foundLoop();", "boolean endLoop();", "public boolean isRestartNextLoop() {\n return restartNextLoop;\n }", "public boolean isSelfLoop(...
[ "0.6949792", "0.69492626", "0.67856854", "0.67206746", "0.65139997", "0.6396498", "0.6328528", "0.62224233", "0.6209434", "0.616975", "0.61662614", "0.6157515", "0.61154664", "0.6110592", "0.60881823", "0.60872126", "0.6068813", "0.6053645", "0.6043785", "0.6023546", "0.60113...
0.8214128
0
JimpleLocal local = (JimpleLocal) v;
private int getIncrement(Value v) { if (v instanceof IntConstant) { return ((IntConstant) v).value; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object instObj(final Value v) throws QueryException {\r\n return cls.isInstance(v) ? v : v.toJava();\r\n }", "public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }", "public interface One2OneParametrisedObject extends ParametrisedObject\n{\n\t/**\n\t * Calcu...
[ "0.56428415", "0.5486729", "0.5416595", "0.5395854", "0.5298548", "0.52976686", "0.52743447", "0.5268615", "0.5214528", "0.5164162", "0.5151124", "0.50995684", "0.5092289", "0.50883156", "0.5071223", "0.5059311", "0.5056408", "0.50508493", "0.50425977", "0.50425977", "0.50425...
0.0
-1
getServerCharacter(); insert(); query(); dump();
public static void main(String[] args) throws SQLException, UnsupportedEncodingException { System.out.println(info.getHostname()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(TerminalInfo record);", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n...
[ "0.57816505", "0.57471603", "0.5607036", "0.5558689", "0.5550952", "0.55431944", "0.5489939", "0.5489939", "0.54829985", "0.54596925", "0.5432055", "0.54196656", "0.54128695", "0.541072", "0.5404037", "0.54017544", "0.5399198", "0.539479", "0.5389993", "0.5383671", "0.537684"...
0.0
-1
Hamcrest matcher that matches a callback event with the given name
public static Matcher<CallbackEvent> isCallbackEvent(String callbackName) { return new FeatureMatcher<CallbackEvent, String>(equalTo(callbackName), "is the callback event", "callback name") { @Override protected String featureValueOf(final CallbackEvent actual) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Matcher<CallbackEvent> isCallbackEvent()\n {\n return new FeatureMatcher<CallbackEvent, Void>(anything(\"\"), \"is any callback event\", \"\")\n {\n @Override\n protected Void featureValueOf(final CallbackEvent actual)\n {\n return null...
[ "0.7043329", "0.635968", "0.57293206", "0.5537791", "0.54234546", "0.53911966", "0.53680646", "0.5361304", "0.53365034", "0.52992266", "0.5296547", "0.5272698", "0.5272053", "0.5218018", "0.5118315", "0.51168984", "0.5103437", "0.502849", "0.5028274", "0.49937752", "0.4989331...
0.74578375
0
Hamcrest matcher that matches any callback event (any name)
public static Matcher<CallbackEvent> isCallbackEvent() { return new FeatureMatcher<CallbackEvent, Void>(anything(""), "is any callback event", "") { @Override protected Void featureValueOf(final CallbackEvent actual) { return null; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Matcher<CallbackEvent> isCallbackEvent(String callbackName)\n {\n return new FeatureMatcher<CallbackEvent, String>(equalTo(callbackName), \"is the callback event\", \"callback name\")\n {\n @Override\n protected String featureValueOf(final CallbackEvent actual)\...
[ "0.6881982", "0.63808966", "0.558532", "0.5458978", "0.5428081", "0.5392336", "0.5391927", "0.53883505", "0.5350767", "0.5336626", "0.5311333", "0.53014714", "0.5274754", "0.52038676", "0.5092475", "0.5087881", "0.50730735", "0.50560606", "0.5040477", "0.5030911", "0.5011525"...
0.73838127
0
Use this factory method to create a new instance of this fragment using the provided parameters.
public static SecondFragment newInstance(String tag,String url) { SecondFragment fragment = new SecondFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, tag); args.putString(ARG_PARAM2, url); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View myView = inflater.inflate(R.layout.fragment_second, container, false); TextView myTextView = (TextView) myView.findViewById(R.id.textView2); //set t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6742135", "0.6726157", "0.6724717", "0.67012674", "0.66944426", "0.66910595", "0.66888237", "0.668751", "0.66790944", "0.667782", "0.66679764", "0.66676605", "0.6667572", "0.6663008", "0.66553324", "0.66510403", "0.6644715", "0.6641966", "0.6639501", "0.66363883", "0.66273...
0.0
-1
TODO Autogenerated method stub
@Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; }
{ "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
scan the file for the xmlns entry
private String readSpaceNameFromFile(File file) throws IOException { String space = null; BufferedReader br = new BufferedReader(new FileReader(file)); String buffer; while ((buffer = br.readLine()) != null) { int startIndex = buffer.indexOf("xmlns="); if (startIndex > -1) { int endIndex = buffer.inde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleNamespaceDeclaration() throws IOException {\r\n if (this.tempMapping != null) {\r\n PrefixMapping pm = null;\r\n for (int i = 0; i < tempMapping.size(); i++) {\r\n pm = (PrefixMapping)tempMapping.get(i);\r\n this.writer.write(\" xmlns\");\r\n // specify a prefix...
[ "0.6392059", "0.53883857", "0.5348895", "0.526127", "0.5237556", "0.52362204", "0.5234314", "0.52262944", "0.5202048", "0.5165088", "0.5165088", "0.5165088", "0.5165088", "0.5165088", "0.5117389", "0.5080548", "0.501448", "0.501441", "0.500836", "0.49653366", "0.4937346", "...
0.58695924
1
/ renamed from: a
public void write(JsonWriter jsonWriter, VerificationType verificationType) { kotlin.jvm.internal.i.f(jsonWriter, "out"); jsonWriter.jsonValue(verificationType != null ? verificationType.getServerValue() : null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: z
public VerificationType read(JsonReader jsonReader) { String nextString; kotlin.jvm.internal.i.f(jsonReader, "reader"); if (jsonReader.peek() != JsonToken.NULL) { nextString = jsonReader.nextString(); } else { jsonReader.skipValue(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo28717a(zzc zzc);", "public abstract void zza(zzk zzk, zzk zzk2);", "protected abstract String getZ();", "private zza.zza()\n\t\t{\n\t\t}", "public final zzgol<zzgop<?>> zzn() {\n zzr();\n return this.zzae;\n }", "public final boolean zza() {\n boolean z = false;\n if...
[ "0.65399295", "0.65334034", "0.64992756", "0.6454422", "0.633271", "0.62128067", "0.6165423", "0.6165423", "0.6165423", "0.6124191", "0.6119251", "0.6119251", "0.6119251", "0.6111508", "0.6058931", "0.6057021", "0.60344595", "0.60329384", "0.6026692", "0.60265875", "0.6009064...
0.0
-1
Use a Scanner to input integer values
public static void main( String [] args ) { Scanner input = new Scanner( System.in ); int weightInput = 0; // Init weight input int heightInput = 0; // Init height input double weightKg = 0; // Init weight conversion double heightM = 0; // Init height conversion double ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Integer scanInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n...
[ "0.7407607", "0.7184235", "0.6961381", "0.68804544", "0.68266886", "0.67345214", "0.67325336", "0.67024165", "0.66930616", "0.66787326", "0.66558415", "0.6652037", "0.6640183", "0.6560875", "0.65461385", "0.65448225", "0.65430564", "0.65299886", "0.6508046", "0.6497077", "0.6...
0.0
-1
~~~~~~~~~~~~~~~~~~~~~ INTERFACE METHODS ~~~~~~~~~~~~~~~~~~~~~
public void start() { vcr().start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void grabar() {\n\...
[ "0.6480341", "0.6441726", "0.64168435", "0.62268484", "0.62067235", "0.6134919", "0.6123034", "0.6123034", "0.610814", "0.610814", "0.6102763", "0.6086268", "0.60862", "0.60862", "0.60862", "0.60862", "0.60862", "0.60862", "0.6023383", "0.5985689", "0.59737015", "0.59517163...
0.0
-1
~~~~~~~~~~~~~~~~~~~~~ INTERNAL DISPLAY UI OPTIONS ~~~~~~~~~~~~~~~~~~~~~
private void display(Object a) { System.out.print(a.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDisplay() {\n\t\tDisplayOpt.add(\"-sd\");\n\t\tDisplayOpt.add(\"/sd\");\n\t\tDisplayOpt.add(\"showdetails\");\n\n\t}", "@Override\n\tpublic void setDisplayOptions(int options) {\n\t\t\n\t}", "@Override\n\tpublic void setDisplayOptions(int options, int mask) {\n\t\t\n\t}", "public void options...
[ "0.7291141", "0.66969454", "0.6559331", "0.6499757", "0.6476105", "0.6406997", "0.6387788", "0.63428307", "0.6312972", "0.6259573", "0.62153333", "0.6207948", "0.6194798", "0.6189074", "0.6189074", "0.6189074", "0.6161293", "0.6121482", "0.6119945", "0.6052121", "0.6051019", ...
0.0
-1
Required interface for hosting activities
public interface Callbacks { void onCrimeSelected(Crime crime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MeetingAddActivityView {\n\n void startMeetingsActivity();\n void successInfo(String msg);\n void errorInfo(String msg);\n void startGetCustomers();\n}", "public interface MeetingsActivityView {\n void startMainActivity();\n\n void startMeetingDetailsActivity();\n\n void sta...
[ "0.678551", "0.677891", "0.67556226", "0.6751048", "0.6576519", "0.6547811", "0.65348285", "0.6508385", "0.6453314", "0.64335525", "0.6399343", "0.63523906", "0.63367563", "0.632219", "0.63099533", "0.62697166", "0.62562466", "0.6254899", "0.62426776", "0.6241071", "0.6239756...
0.0
-1
Required interface for deleting
public interface OnDeleteCallback { void onCrimeIdSelected(UUID crimeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Delete {}", "@Override\n\tpublic void delete() {\n\n\t}", "private Delete() {}", "private Delete() {}", "@Override\n public void delete() {\n }", "@Override\n public void delete()\n {\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Exclude\n public abstra...
[ "0.8605295", "0.8300967", "0.829209", "0.829209", "0.8275999", "0.8265494", "0.82525796", "0.8221235", "0.8177796", "0.8177796", "0.81338584", "0.8118925", "0.8118925", "0.80940515", "0.8081593", "0.8058647", "0.79359263", "0.7929376", "0.7925372", "0.7900431", "0.7870417", ...
0.0
-1
Diff Utils to handle list difference on crime deletion
public void setCrimes(List<Crime> crimes) { DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new CrimeDiffCallback(crimes, mCrimes)); diffResult.dispatchUpdatesTo(this); // Swap out list of crimes displayed for new list mCrimes = crimes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void compareDeletion();", "@Test\n\tpublic void testDifference5() {\n\n\t\t// parameters inpt here\n\n\t\tint[] arr = { 1, 2, 3, 5, 7, 8, 9 };\n\t\tint[] diff1 = { 1, 2, 3, 7, 8 }; // this list\n\n\t\t// test difference\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet listObj19 = new SLLSet(diff1);\n\t\tSLLSe...
[ "0.6584537", "0.6147717", "0.5938402", "0.592219", "0.59161747", "0.57708395", "0.57168955", "0.57122105", "0.56789047", "0.567062", "0.5670239", "0.5624797", "0.5618697", "0.55583084", "0.5545474", "0.551152", "0.55075854", "0.5496753", "0.54877317", "0.5459826", "0.54120404...
0.0
-1
Created by emerio on 5/25/17.
@CustomScope @Component(dependencies = NetComponent.class,modules = ListUserActivityModule.class) public interface ListUserActivityComponent { void inject(ListUserActivity listUserActivity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.6247492", "0.61112154", "0.6016456", "0.59765136", "0.5971416", "0.59257096", "0.59257096", "0.5902323", "0.58706445", "0.5825382", "0.58094573", "0.57932377", "0.5784062", "0.57666767", "0.5764075", "0.57528514", "0.5735992", "0.5735992", "0.5735992", "0.5735992", "0.5735...
0.0
-1
The final call of system before the activity is destroyed, so the AlertDialog is closed //
@Override protected void onDestroy() { super.onDestroy(); gameAlertDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tcancelDialog();\n\t\tsuper.onDestroy();\n\t}", "private void DestroyAlertDialog() {\r\n Log.d(TAG, \"DestroyAlertDialog\");\r\n ...
[ "0.76862913", "0.7277543", "0.7234791", "0.7110183", "0.70220274", "0.68504876", "0.68237966", "0.6775601", "0.6754394", "0.6740884", "0.6732463", "0.67275774", "0.6722056", "0.67219394", "0.66966426", "0.66961026", "0.66552734", "0.66073006", "0.65921265", "0.65813476", "0.6...
0.71199083
3
The system calls this before Activity is destroyed and saves the game state //
@Override protected void onSaveInstanceState(Bundle outState) { outState.putParcelable(GAME_TAG, game); outState.putBoolean(EXIT_ALERT_VISIBILITY, exitAlertVisible); // is EXIT AlertDialog shown? super.onSaveInstanceState(outState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tManager.onDestroy();\n\t\tSystem.out.println(\"DESTROYING APP\");\n//\t\tManager.analytics.sendUserTiming(\"Total Activity Time\", System.currentTimeMillis() - game.activityStartTime);\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsup...
[ "0.76030105", "0.7205809", "0.7028754", "0.69274384", "0.690338", "0.6887425", "0.6884441", "0.68595326", "0.6857087", "0.6853532", "0.6822584", "0.6802938", "0.6780852", "0.6736875", "0.6733805", "0.67307574", "0.67307574", "0.67057526", "0.6697604", "0.6697604", "0.6697604"...
0.0
-1
The game state is restored and set views according that state //
@Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); game = savedInstanceState.getParcelable(GAME_TAG); exitAlertVisible = savedInstanceState.getBoolean(EXIT_ALERT_VISIBILITY); initViews(); updateState(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "@Override\n protected void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n gameView.saveInstanceState(bundle);\n }", "@Override\n public void onRestoreInstanceState(Bundle ...
[ "0.7389506", "0.71037143", "0.693971", "0.6722261", "0.66829664", "0.66501117", "0.6616675", "0.660723", "0.66017926", "0.66015464", "0.6480049", "0.64735883", "0.64449406", "0.6440015", "0.64344484", "0.64288986", "0.63990134", "0.6389338", "0.6368733", "0.6361312", "0.63492...
0.7022666
2
Ask if exit or start a new game on AlertDialog //
@Override public void onBackPressed() { gameAlertDialog.show("EXIT"); exitAlertVisible = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tstartGame();\n\t\t\t\t\t\t\t\t}", "private void newGame() \n {\n int input = JOptionPane.showConfirmDialog(null, \"Would you like to play again?\\n\",\"Game has ended\",JOptionPan...
[ "0.7498104", "0.7496344", "0.74890995", "0.731687", "0.73111683", "0.7140732", "0.71378285", "0.7133079", "0.71286696", "0.7036474", "0.7000598", "0.6996611", "0.6923314", "0.68619895", "0.68578035", "0.6819008", "0.681824", "0.68035173", "0.6798959", "0.679548", "0.67937666"...
0.6908062
13
Activity views initialization //
private void initViews() { TextView textViewPlayer1 = (TextView) findViewById(R.id.textView_player1); TextView textViewScorePlayer1 = (TextView) findViewById(R.id.textView_player1_score); ProgressBar progressBarPlayer1 = (ProgressBar) findViewById(R.id.progressBar_player1); TextView tex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initViews() {\n\n }", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "private void initViews() {\n\n\t}", "public void initViews(){\n }", "private void initView() {\n\n }", "public void initView(){}", "protected abstract void initViews();", ...
[ "0.810082", "0.80266285", "0.8014161", "0.7964455", "0.7859383", "0.7838937", "0.7791669", "0.7784806", "0.77718705", "0.77649134", "0.7756578", "0.7738576", "0.7738576", "0.77202016", "0.77192557", "0.77178556", "0.7704845", "0.77021426", "0.770144", "0.76998377", "0.7686270...
0.0
-1
Depending on the game state is executed a method //
private void updateState() { switch (game.getGameState()) { case GAME: gamePlay(); break; case ONE: lostTurnByOne(); break; case READY: readyToPlay(); break; case START...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gameRunning()\n{\n}", "public abstract void RunOnGameOpen();", "void gameStarted();", "void gameStarted();", "protected abstract boolean isGameFinished();", "public abstract void onSolvedGame();", "protected void updateGameState() {\n }", "public void checkGame() {\n\n\t}", "void gam...
[ "0.7522514", "0.74140334", "0.7139217", "0.7139217", "0.7006436", "0.69189787", "0.6815441", "0.68066674", "0.6780273", "0.6752666", "0.6744098", "0.67431146", "0.6738026", "0.6711743", "0.6699791", "0.6684456", "0.66764927", "0.6657682", "0.66112846", "0.6610016", "0.6591078...
0.6557273
23
These methods only loop the gameObjects array and execute the methods of the interface //
private void finishGame() { for (GameObject gameObject : gameObjects) gameObject.finishGame(game); gameAlertDialog.show("FINISH"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runAll() {\n GameObjectManager.instance.runAll();\n }", "public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}", "public abstract void gameObjectAwakens();", "public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.l...
[ "0.70161635", "0.64741653", "0.6419679", "0.63058877", "0.6267603", "0.6222207", "0.61659014", "0.61374885", "0.6132982", "0.6117513", "0.61108196", "0.6065879", "0.6059367", "0.6059367", "0.60558397", "0.59955066", "0.5993179", "0.59873027", "0.59841996", "0.5978291", "0.594...
0.0
-1
Yes, you can have multiple methods that are named the same, as long as they take a different number/type of parameters
public void driveArcade(double drive, double turn) { //Takes a drive and turn value and converts it to motor values. leftMotor.setPower(Range.clip((drive + turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); rightMotor.setPower(Range.clip((drive - turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elemen...
[ "0.65231603", "0.6434375", "0.6355994", "0.6236812", "0.6220885", "0.6150433", "0.6147845", "0.60281384", "0.5992894", "0.5966725", "0.59309196", "0.5897549", "0.5891495", "0.5888608", "0.5886714", "0.5884485", "0.5849528", "0.5828783", "0.5821997", "0.5794314", "0.57698554",...
0.0
-1
Takes a drive and turn value and converts it to motor values. This also excepts a scaling boolean
public void driveArcade(double drive, double turn, boolean slowState) { leftMotor.setPower(Range.clip((drive + turn) * (slowState ? DRIVE_SLOW_SPEED_SCALE : DRIVE_FULL_SPEED_SCALE), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED)); rightMotor.setPower(Range.clip((drive - turn) * (slowState ? DRIVE_SLOW_SPEED_SCALE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void driveArcade(double drive, double turn) { //Takes a drive and turn value and converts it to motor values.\n leftMotor.setPower(Range.clip((drive + turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED));\n rightMotor.setPower(Range.clip((drive - turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED));\n }", ...
[ "0.615981", "0.5869432", "0.57899594", "0.57582587", "0.5748531", "0.56993115", "0.5660349", "0.5635552", "0.56308055", "0.55994546", "0.5498941", "0.54924405", "0.5470792", "0.5458113", "0.54276913", "0.54117715", "0.5410027", "0.5389441", "0.53571165", "0.5355914", "0.53490...
0.55454427
10
Takes an enumeration as a input and chooses the case based off of that
public void grip(GRIPPER_STATES state) { switch (state) { case GRIPPER_FULL_OPEN: pink.setPosition(PINK_RELEASE_POSITION); blue.setPosition(BLUE_RELEASE_POSITION); orange.setPosition(ORANGE_RELEASE_POSITION); green.setPosition(GREEN_REL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String enumPatternItemCase()\n {\n read_if_needed_();\n \n return _enum_pattern_item_case;\n }", "private PatternType matchPatternEnum(String s){\n s = s.toLowerCase();\n switch(s){\n case \"factory method\":\n return PatternType.FACTORY_METHOD;\n ...
[ "0.6555226", "0.65526474", "0.63769823", "0.630515", "0.6279718", "0.62451416", "0.61990047", "0.6130721", "0.6088853", "0.60772824", "0.58524483", "0.5784886", "0.575386", "0.57119936", "0.5570894", "0.5552012", "0.5513577", "0.5502843", "0.546173", "0.54466397", "0.54334056...
0.0
-1
Some methods for pushing data out of this 'black box'
public int getLiftPosition() { //Do some math on getting the encoder positions return liftStageOne.getCurrentPosition() + liftStageTwo.getCurrentPosition(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(T data);", "public void push(T data);", "public void push(E data);", "public Object push(Object arg)\n {\n dataList.add(arg);\n return arg;\n }", "public void push(T dato );", "void addData();", "public void push(T data)\n {\n ll.insert(ll.getSize(), data)...
[ "0.6307935", "0.6307935", "0.62205935", "0.62021273", "0.6157707", "0.5908351", "0.5908339", "0.5826235", "0.5820556", "0.5815159", "0.57938313", "0.57303506", "0.57151425", "0.5662427", "0.5641033", "0.5601779", "0.55989933", "0.55687565", "0.5556501", "0.55326784", "0.55312...
0.0
-1
BUILDERS Only use if loopsToMake > 1
public TimedTrigger ticksBeforeStartLooping(int ticksBeforeStartLooping) { this.ticksBeforeStartLooping = ticksBeforeStartLooping; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BDD buildEndGame(){\n\t\tBDD res = factory.makeOne();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\t\t\t\tres.andWith(board[i][j].not());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "private static void loop() throws GameActionException {\n Ro...
[ "0.5724698", "0.55273837", "0.5471781", "0.5455753", "0.5445534", "0.5336893", "0.53340286", "0.53078", "0.5279148", "0.5275623", "0.5257397", "0.5245589", "0.524439", "0.520526", "0.518925", "0.51832944", "0.51553535", "0.51489174", "0.5140847", "0.51057386", "0.51037633", ...
0.0
-1
Run the timer and returns true if ticksBeforeStartLooping is reached and ticks > triggeringTicks
public boolean triggered(float delta) { if(finished || triggeringTicks.isEmpty()) return false; ticks += delta; //Ticks reached if(ticks >= triggeringTicks.get(triggeringTicksIndex) + ticksBeforeStartLooping) { if(++triggeringTicksIndex < triggeringTicks.size()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isRunningDuringTick(int tick);", "boolean trigger(int ticks);", "public boolean startTimerIsRunning() {\n\t\treturn startMoveDownTimer.isRunning();\n\t}", "@Override\n public boolean isFinished() {\n return !(System.currentTimeMillis() - currentMs < timeMs) &&\n // Th...
[ "0.69880813", "0.6848529", "0.6073796", "0.6052584", "0.5948436", "0.5937426", "0.59330976", "0.5923573", "0.58962184", "0.58671045", "0.5606294", "0.56032914", "0.5566768", "0.55269724", "0.5502023", "0.5415148", "0.5391508", "0.537318", "0.536566", "0.5340461", "0.53141224"...
0.70844185
0
main class for backend operations Constuctor for FocusListener class
public FocusListener(String console, String instructionText, String type, GUIUpdater updater, MainInterpreter interpreter){ consoleText = console; instruction = instructionText; uiType = type; guiUpdater = updater; mainInterpreter = interpreter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initFocusListening() {\n addFocusListener(new FocusListener() {\n private boolean firstFocusGain = true;\n\n public void focusGained(FocusEvent e) {\n repaint();\n if (firstFocusGain) {\n \n firstFocusGain...
[ "0.6933359", "0.680908", "0.6761201", "0.67117995", "0.6482405", "0.6474581", "0.6381604", "0.6352681", "0.6333493", "0.63255036", "0.62745655", "0.6222113", "0.6209501", "0.6209501", "0.6209501", "0.6209501", "0.6209501", "0.6181156", "0.6158695", "0.6141516", "0.6141516", ...
0.72730964
0
Updates the instruction screen when the view is being focused && Updates elements' value in backend and create console log for the changes made after losing focus
@Override public void onFocusChange(View view, boolean b) { //In Focus if (b){ guiUpdater.updateInstructions(instruction); } //Lose focus else { //for predicate elements in coding playground if(uiType.equalsIgnoreCase("Predicate"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotal...
[ "0.61975646", "0.60416216", "0.60338074", "0.5970912", "0.5942357", "0.59296805", "0.59014916", "0.58918715", "0.58770317", "0.5856674", "0.58372873", "0.5822962", "0.5819183", "0.58032745", "0.5792652", "0.5787523", "0.5757978", "0.5755204", "0.57453156", "0.5735373", "0.573...
0.6791213
0
Initializes a TarHeader with the supplied buffer. Then it extracts header information and populates the header attributes.
public TarHeader(byte buff[]) throws IOException { this.header = buff; initlializeHeaderFields(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TarEntry CreateEntry(byte[] headerBuffer);", "public TarArchiveEntry(byte[] headerBuf, ArchiveEntryEncoding encoding) throws IOException {\n this();\n parseTarHeader(headerBuf, encoding);\n }", "public Header parseHeader(CharArrayBuffer buffer) throws ParseException {\n/* 445 */ return (He...
[ "0.6662747", "0.65779656", "0.6253181", "0.621582", "0.6161134", "0.6045143", "0.6039432", "0.5972711", "0.562571", "0.5586709", "0.5577412", "0.55381244", "0.54261434", "0.5369906", "0.5330284", "0.5291149", "0.52497137", "0.5232076", "0.52219254", "0.51829714", "0.51814497"...
0.7717323
0
Initializes a TarHeader by reading the supplied file attributes and then populates the header attributes.
public TarHeader(File file, String ppath) { this.header = new byte[TarLibConstants.TAR_HEADER_SIZE]; initlializeHeaderFields(file, ppath); writeToBuffer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TarHeader(byte buff[]) throws IOException {\r\n this.header = buff;\r\n initlializeHeaderFields();\r\n }", "private void initMetadata() throws IOException {\n \n // start by reading the file header\n in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long ...
[ "0.7192794", "0.58140695", "0.5799738", "0.5775392", "0.57689697", "0.56931627", "0.5661732", "0.56263256", "0.55323255", "0.55315244", "0.5508927", "0.54734164", "0.5449029", "0.54362345", "0.541314", "0.54022384", "0.5395003", "0.5355366", "0.5353745", "0.53437734", "0.5282...
0.6317993
1
Compute the checksum of a tar entry header.
public static long computeCheckSum(final byte[] buf) { long sum = 0; for (int i = 0; i < buf.length; ++i) { sum += BYTE_MASK & buf[i]; } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getChecksum();", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "public St...
[ "0.6431495", "0.60488033", "0.58404195", "0.5669164", "0.5618391", "0.55881834", "0.5585545", "0.55431145", "0.55309904", "0.54139405", "0.53988296", "0.5385062", "0.5345088", "0.53386676", "0.5301279", "0.52901626", "0.5273019", "0.52519614", "0.52427566", "0.5227671", "0.52...
0.4494831
82
Returns you the buffer associated with this header.
public byte[] getBuffer() { return this.header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ByteBuffer getBuffer() {\n return _buf;\n }", "public Buffer getBuffer() {\n return buffer.getCopy();\n }", "public ByteBuffer getBuffer() {\n return buffer;\n }", "public final ByteBuffer getBuffer() {\n return buf;\n }", "protected ByteBuffer getBuffer() {\n...
[ "0.7695279", "0.76004773", "0.75912327", "0.7559755", "0.7385815", "0.73651075", "0.71458554", "0.7095035", "0.6945379", "0.67840135", "0.6729331", "0.6564716", "0.64992326", "0.6425868", "0.6352961", "0.6342217", "0.63395023", "0.6325471", "0.6255709", "0.61713153", "0.61336...
0.84731764
0
Getter method for file name
public String getFileName() { return fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String ge...
[ "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8741226", "0.8541808", "0.8541808", "0.8512379", "0.8512379", "0.8512379", "0.8512379", "0.8512379", "0.84856933", "0.84856933", "0.8448822", "0.8440679", "0.8400226", ...
0.79869413
37
Setter method to set the name of the file.
public void setFileName(String fileName) { this.fileName = fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileName( String name ) {\n\tfilename = name;\n }", "public void setFileName(String name) {\r\n this.fileName = name == null ? null : name.substring(name.lastIndexOf(File.separator) + 1);\r\n }", "public void setFileName(String name)\n\t{\n\t\tfileName = name;\n\t}", "public void ...
[ "0.80961746", "0.7971805", "0.7891024", "0.78165", "0.7706754", "0.7662618", "0.7621634", "0.75951636", "0.7497318", "0.7329077", "0.73077565", "0.7296822", "0.7296721", "0.7273174", "0.72707677", "0.7206543", "0.7172623", "0.7157991", "0.7156188", "0.7143601", "0.71386236", ...
0.7197829
16
Returns the file size in bytes.
public long getFileSize() { return fileSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long size() {\n return file.length();\n }", "public long size() {\n return this.filePage.getSizeInfile();\n }", ...
[ "0.8380398", "0.82824004", "0.81919116", "0.8130729", "0.8122667", "0.80664366", "0.7987896", "0.7937613", "0.7923065", "0.7923065", "0.78927386", "0.7739394", "0.7706008", "0.76779574", "0.7666144", "0.7657571", "0.76551133", "0.76413655", "0.7634756", "0.75949275", "0.75241...
0.7561722
20
Returns the file type. Currently only two types are supported. 1. Normal File 2. Directory.
public byte getLinkIndicator() { return this.linkIndicator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public String getFileType()\n {\n if (m_fileOptions.m_type == null ||\n m_fileOptions.m_type.length() <= 0)\n {\n return getTypeFromExtension();\n }\n\n return m_fileOptions.m_type;\n }...
[ "0.7988", "0.79863083", "0.7823593", "0.78130996", "0.7794088", "0.77875125", "0.76612735", "0.7601769", "0.7592868", "0.7406518", "0.7389412", "0.7092527", "0.69622993", "0.69281584", "0.69247013", "0.6918668", "0.6867187", "0.6792004", "0.67585677", "0.6708846", "0.6646549"...
0.0
-1
Creates new form per_bidBond
public per_bidBond() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.ge...
[ "0.61111224", "0.58795077", "0.562075", "0.5557155", "0.55487657", "0.5545591", "0.55206263", "0.5492724", "0.54016757", "0.53788036", "0.537523", "0.5366189", "0.5354759", "0.53271145", "0.53242266", "0.5266772", "0.52666026", "0.52595484", "0.5247074", "0.52264255", "0.5220...
0.62161547
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); pro_Bid = new javax.swing.JProgressBar(); Pro_perf = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
puts all the file in a single string
private void messagesLoad(String mesagesFileName) throws IOException { String temp = new String(Files.readAllBytes(Paths.get(mesagesFileName))); String allMessages = stripAccents(temp); // only if you use mockmock or an non UTF-8 compatible SMPT server //then we split the String into an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "public String readMultipleFromFiles()\n {\n String result = \"\";\n ...
[ "0.6805603", "0.65760523", "0.64838594", "0.64143234", "0.63987565", "0.6378096", "0.6357946", "0.63493127", "0.6266244", "0.62476546", "0.6138269", "0.60705453", "0.6064859", "0.60217774", "0.6006778", "0.5989748", "0.59699523", "0.59699523", "0.59699523", "0.59521633", "0.5...
0.0
-1
helper just for mockmock server mockmock server is not utf8 compatible mockmock server is not compatible with \' and \"
public static String stripAccents(String s) { s = Normalizer.normalize(s, Normalizer.Form.NFD); s = s.replaceAll("[\\p{InCombiningDiacriticalMarks}]", ""); s= s.replace('\'', '\u0020'); s= s.replace('\"', '\u0020'); s= s.replace('’', '\u0020'); s= s.replace('-', '\u0020'); s= s.replace('«',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test092() throws Throwable {\n String string0 = JSONObject.quote(\"</IFXFL[\\u0007U86s$n`t?\");\n assertEquals(\"\\\"<\\\\/IFXFL[\\\\u0007U86s$n`t?\\\"\", string0);\n }", "@Test\n public void testunicode32() {\n assertEquals(\"\\uD834\\uDD1E\", JsonRe...
[ "0.5741775", "0.5737021", "0.5533718", "0.5533004", "0.54587173", "0.54500985", "0.54494214", "0.5426125", "0.5419492", "0.5395067", "0.5337351", "0.5325896", "0.5266869", "0.5252074", "0.52517164", "0.52381784", "0.52205855", "0.5176668", "0.5173867", "0.51653093", "0.514249...
0.0
-1
endregion region Constructors If no pronoun is specified, it is implied the change applies to all subjects (excluding vosotros, nosotros in present)
StemChange(String _old, String _new) { this(_old, _new, TenseType.PRESENT, (Pronoun[]) null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Topic( String title )\n {\n activation = 0;\n label = title;\n associations = new String[100];\n numAssocs = 0;\n response1 = \"\";\n response2 = \"\";\n response3 = \"\";\n probability1 = -1;\n probability2 = -1;\n probability3 = -1;\n generator = new Random();\n }", "p...
[ "0.64905393", "0.6391066", "0.5937908", "0.58613604", "0.5847779", "0.57527316", "0.57415926", "0.5737275", "0.5728635", "0.571746", "0.5670859", "0.5639272", "0.56170976", "0.558149", "0.55738115", "0.5532422", "0.5521938", "0.55072004", "0.5497206", "0.5495631", "0.5472958"...
0.0
-1
region Overrides Doesn't compare pronouns
@Override public boolean equals(Object obj) { if (obj.getClass().equals(getClass())) { StemChange sc = (StemChange) obj; return _new.equals(sc._new) && _old.equals(sc._old); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isPronoun(AnalyzedTokenReadings[] tokens, int n) {\n return (tokens[n].getToken().matches(\"(d(e[mnr]|ie|as|e([nr]|ss)en)|welche[mrs]?|wessen|was)\")\n && !tokens[n - 1].getToken().equals(\"sowie\"));\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ri...
[ "0.6016104", "0.5906519", "0.5749095", "0.57117295", "0.5587394", "0.5582457", "0.54995185", "0.5489228", "0.5419934", "0.5392421", "0.535806", "0.53037024", "0.5299926", "0.52918905", "0.52661777", "0.5265072", "0.52559114", "0.5210002", "0.5202682", "0.5199572", "0.51850986...
0.0
-1
/ kali baris i dengan suatu konstanta k
void scaleRow(Matrix m, int i, double k) { int j, n = m.cols; for (j=0; j<n; j++) { m.M[i][j] = k * m.M[i][j]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL k...
[ "0.67495245", "0.661955", "0.6569739", "0.6497958", "0.64578927", "0.64096415", "0.63138896", "0.62916994", "0.6287841", "0.62343854", "0.6216168", "0.6191973", "0.61895907", "0.6182705", "0.6154348", "0.6153824", "0.6152273", "0.6120276", "0.6116837", "0.60663015", "0.603473...
0.0
-1
/ tukar baris i1 dengan baris i2
void swapRow(Matrix m, int i1, int i2) { double[] temp = m.M[i1]; m.M[i1] = m.M[i2]; m.M[i2] = temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public void mo9255g(int i, int i2) {\n }", "void mo7304b(int i, int i2);", "public void mo5369d(int i, int i2) {\n }", "void mo7445h(int i, int i2);", "public static void laukiHorizontalaIrudikatu(int neu...
[ "0.61581117", "0.6124259", "0.59645563", "0.59376293", "0.5821908", "0.57961303", "0.57534283", "0.5751974", "0.57237655", "0.5720385", "0.57147986", "0.5713675", "0.5713142", "0.57113093", "0.57090026", "0.5701512", "0.569355", "0.5692318", "0.56825083", "0.5669155", "0.5668...
0.0
-1
/ tambahkan baris i2 dengan hasil kali i1 dengan suatu konstanta k
void replaceRow(Matrix m, int i1, int i2, double k) { int j, n = m.cols; for (j=0; j<n; j++) { m.M[i2][j] = m.M[i2][j] + (k * m.M[i1][j]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : ...
[ "0.68225276", "0.6779897", "0.66802174", "0.6640903", "0.6581742", "0.6450677", "0.6380785", "0.637048", "0.6321939", "0.6278995", "0.62147313", "0.6206834", "0.61978364", "0.6182612", "0.61695206", "0.6154844", "0.6154733", "0.6147631", "0.61426413", "0.613294", "0.6119221",...
0.0
-1
/ mencari determinan dengan reduksi baris
float DetGauss(Matrix m){ Matrix mtemp = new Matrix(m.M); float hasil=1; int count = 0; int swap = -1; for(int i=0;i<mtemp.rows-1;i++){ for(int j=i+1; j<mtemp.rows; j++){ if(mtemp.M[i][i]<mtemp.M[j][i]){ count++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showBars() {\n graph.removeAllSeries();\n Log.d(\"ShowGraph \", \"started\");\n Log.d(\"Tuples length \", tuples.size() + \"\");\n ArrayList<Double> vkupno = new ArrayList<Double>();\n //vo vkupno, sekoj element, e vkupnata vrednost za nutrientot pod toj broj\n ...
[ "0.657854", "0.64396334", "0.63852", "0.62752575", "0.6191511", "0.6106471", "0.59001696", "0.5893223", "0.5863403", "0.58374286", "0.58213073", "0.5803374", "0.58017874", "0.579197", "0.5791181", "0.57766336", "0.5749767", "0.5745919", "0.5738243", "0.5732386", "0.5729752", ...
0.0
-1
/ mencari determinan dengan ekspansi kofaktor
float DetCofactor(Matrix m){ int a,b; double sum=0; Matrix mtemp; if(m.rows==2){ sum = ((m.M[0][0])*(m.M[1][1])) - (((m.M[0][1])*(m.M[1][0]))); } else{ for(int i=0; i<m.cols; i++){ mtemp = new Matrix(m.rows-1,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String dohvatiKontakt();", "void tampilKarakterA();", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = ne...
[ "0.62324995", "0.6172935", "0.6144738", "0.6134466", "0.6093376", "0.60246766", "0.60167605", "0.59666586", "0.59661263", "0.59581184", "0.59565634", "0.5949175", "0.594563", "0.5941732", "0.59409386", "0.5930756", "0.59149855", "0.58855253", "0.5884177", "0.58695406", "0.584...
0.0
-1
/ mencari matriks balikan menggunakan reduksi baris dan matriks identitas
Matrix inverse(Matrix m){ Matrix mtemp = new Matrix(m.M); Matrix miden = new Matrix(m.rows,m.cols); miden = miden.identity(); for(int i=0;i<mtemp.rows-1;i++){ for(int j=i+1; j<mtemp.rows; j++){ if(mtemp.M[i][i]<mtemp.M[j][i]){ swapRo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void idGrupos() {\n\t\tmyHorizontalListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tURL_BOOKS = \"http://tutoriapps.herokuapp.com/api/v1/groups/\"\n\t\t\t\t\t\t+ gid[position].toString...
[ "0.6030397", "0.58275735", "0.5762984", "0.5705561", "0.5699085", "0.5665107", "0.56042045", "0.5569961", "0.5567978", "0.5567941", "0.5516675", "0.5511873", "0.55047464", "0.5501817", "0.5493431", "0.5492301", "0.54815084", "0.54642457", "0.545465", "0.54434985", "0.54151464...
0.0
-1
dispose of the object
void closeSessionFactory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dispose() {\n\t\t\t\r\n\t\t}", "@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t}", "public void dispose()...
[ "0.81694204", "0.8134302", "0.80706674", "0.80706674", "0.80706674", "0.802286", "0.802286", "0.7989313", "0.7920221", "0.7919203", "0.79022986", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78997016", "0.78624135", "0.7...
0.0
-1
creates a new hibernate session and transaction.
IDAOSession createNewSession();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void open() {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n }", "public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session...
[ "0.736572", "0.7005818", "0.6817611", "0.67892003", "0.6735229", "0.6704372", "0.65962267", "0.6526055", "0.65213037", "0.64718115", "0.64436674", "0.64228004", "0.64012766", "0.6327793", "0.6280543", "0.6275146", "0.6267901", "0.6250715", "0.6226042", "0.62191015", "0.621730...
0.0
-1
add a new item to the specific session.
Item addItem(IDAOSession session, String title, String description, int userId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Session session);", "void add(InternalSession session);", "@Override\n\tpublic void addItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"+++++++++++Add items here+++++++++++\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(Syst...
[ "0.7854425", "0.77764016", "0.73590565", "0.72629935", "0.704036", "0.6883372", "0.6855052", "0.68393326", "0.6808924", "0.67770034", "0.67754716", "0.66893417", "0.6672635", "0.66604114", "0.6618581", "0.659875", "0.6534188", "0.65316796", "0.650338", "0.6452781", "0.6451162...
0.72129256
4
delete an item for a specific hibernate session
void deleteItem(IDAOSession session, int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doDelete(Session session) {\n\n\t}", "public void remove(Session session);", "@Override\r\n\tpublic void delete(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().delete(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "void remove(InternalSession ...
[ "0.7556648", "0.75001574", "0.73053026", "0.72714835", "0.688676", "0.6834048", "0.6833697", "0.6786299", "0.6782448", "0.6777444", "0.6769148", "0.6768628", "0.67105055", "0.6700852", "0.6690293", "0.66804606", "0.66585755", "0.65979916", "0.6590976", "0.6590192", "0.6575163...
0.77260035
0
gets all items from the database, for a specific session
List<Item> getItems(IDAOSession session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Item> getAll() {\r\n List<Item> list = new ArrayList<Item>();\r\n //Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n //trans = session.beginTransaction();\r\n\r\n list = session.createQue...
[ "0.71704763", "0.7088821", "0.6894705", "0.6756345", "0.6675839", "0.65349865", "0.6409996", "0.63759834", "0.63649607", "0.6361792", "0.6360889", "0.63222486", "0.63098705", "0.62834513", "0.6263585", "0.6246348", "0.62423414", "0.62252396", "0.6202327", "0.6201736", "0.6185...
0.7372672
0
updates/edit a given item, for a specific session
void updateItem(IDAOSession session, Item item);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"++++------++++Update items here++++------++++\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id, (name, price or quantity)-whic...
[ "0.73905563", "0.670471", "0.66353476", "0.6520354", "0.64265716", "0.6421292", "0.6379992", "0.6319996", "0.61887944", "0.61654", "0.6111781", "0.61007965", "0.60488033", "0.6043964", "0.60409796", "0.5989633", "0.5975946", "0.5969679", "0.5956093", "0.5931047", "0.5931047",...
0.7861957
0
add a new user to the database, for a specific session
User addUser(IDAOSession session, String fullName, String userName, String password);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=\"/add-new-user\", method=RequestMethod.GET)\n\tpublic String addNewUser(HttpSession session) {\n\t\ttry {\n\t\t\tString userRole = UserDatabaseTemplate.getRoleWithId(session, connection());\n\t\t\t\n\t\t\tif(userRole.equals(ADMIN)) {\n\t\t\t\treturn \"redirect:manage-users\";\n\t\t\t}else if...
[ "0.72379506", "0.7195642", "0.7135936", "0.70628893", "0.70628893", "0.70052344", "0.6998487", "0.6998469", "0.6989007", "0.6972318", "0.69352025", "0.69296056", "0.6926026", "0.6921418", "0.68929946", "0.6865836", "0.6838056", "0.681968", "0.67794657", "0.6749064", "0.673633...
0.7755944
0
authenticates the given user and password, for a specific session.
int authenticateUser(IDAOSession session, String userName, String password);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void login(String user, String password);", "User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;", "public void logIn(String username, String password) {\n\t\t// Validate input\n\t\tif (username == null) throw new IllegalArgumentException(\"Username cannot be null\");\n\t\tif (pass...
[ "0.7050792", "0.699894", "0.68599105", "0.6725428", "0.66692907", "0.666441", "0.6641647", "0.6520994", "0.6439491", "0.6417129", "0.64045465", "0.6394728", "0.6383981", "0.63530546", "0.63523245", "0.6312231", "0.62978506", "0.6287176", "0.62728244", "0.62608534", "0.6259399...
0.74528784
0
TODO: make monster movement less retarded
public void move() { super.move(DIRECTION.getRandom()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "@Override\n //Movement of a smallMonster\n public void movement(Canvas canvas) {\n if(zero == 0){\n ammountOfRandom = (int)(Math.random() * 50 + 1);\n randomMove = (int )(Math.random() * 8 + 1);\n ...
[ "0.77358514", "0.729655", "0.7139258", "0.7111118", "0.70716494", "0.70466554", "0.70428914", "0.70095706", "0.7007319", "0.6897133", "0.6802624", "0.679546", "0.67729956", "0.6735546", "0.67220473", "0.6711622", "0.66770107", "0.66719514", "0.6669595", "0.6653526", "0.664041...
0.6358196
76
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); Imagen = new javax.swing.JButton(); Salir = new javax.swing.JLabel(); Inicio = new javax.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
End of variables declaration//GENEND:variables
private Object String(char[] password) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.6293893", "0.5986822", "0.59341836", "0.5806106", "0.56999904", "0.5624687", "0.5621564", "0.56039053", "0.55890507", "0.5526677", "0.55266404", "0.5502451", "0.5450132", "0.54496264", "0.54482853", "0.543936", "0.54213905", "0.5396499", "0.53930473", "0.53853625", "0.5378...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Image image = (Image) o; if (image.getId() == null || getId() == null) { return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.6330276", "0.61092085", "0.5661362", "0.5651382", "0.5533474", "0.54645836", "0.5463423", "0.5449911", "0.54352325", "0.5415033", "0.53884166", "0.53799725", "0.53515357", "0.53424025", "0.5336392", "0.5330025", "0.5324882", "0.53230155", "0.5317087", "0.53032845", "0.5294...
0.0
-1
TODO: inflate a fragment view
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = super.onCreateView(inflater, container, savedInstanceState); unbinder = ButterKnife.bind(this, rootView); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInfla...
[ "0.7521221", "0.7492381", "0.748727", "0.747935", "0.74779373", "0.74665123", "0.7466305", "0.74525577", "0.74525565", "0.74439466", "0.7438845", "0.7434395", "0.7428372", "0.7417974", "0.7409175", "0.74005073", "0.73949224", "0.73864675", "0.7384268", "0.73831", "0.73830247"...
0.0
-1
private static final Logger logger = LoggerFactory.getLogger("hee.com.controller.HomeController");
@GetMapping(value = "/") public String home(Locale locale, HttpServletRequest request) { // DEBUG level 이므로 trace는 출력안됨 logger.trace("trace level: Welcome home! The client locale is {}", locale); logger.debug("debug level: Welcome home! The client locale is {}", locale); logger.info("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HomeController() {\n }", "public HomeController() {\n }", "public interface IndexController {\n\n @LoggerInfo(Method = \"/sys/index\",Name = \"系统模块首页\")\n String index(Model model);\n}", "@RequestMapping(\"/\")\n String hello(){\n logger.debug(\"Debug message\");\n logger...
[ "0.71918774", "0.71918774", "0.67351997", "0.66062474", "0.6475156", "0.6457372", "0.64225507", "0.6320028", "0.62775844", "0.6229974", "0.6190498", "0.61837345", "0.6159446", "0.61368036", "0.612363", "0.6098507", "0.6051007", "0.6025336", "0.6023844", "0.59955364", "0.59851...
0.5782088
49
/ Write a program to print only vowel (a,e,o,i,u) in given string String word = "CybertekSchool"; Output:e,e,o,o
public static void main(String[] args) { String bio = "AY was born in Germany, studied in Turkey, and worked in various countries as an educator and peace activist."; char a = 'a'; char e = 'e'; char i = 'i'; char o = 'o'; char u = 'u'; for(int j = 0; j < bio.length(); j++) { if(bio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String convertVowels(String word) {\n StringBuffer sb = new StringBuffer();\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (((c == 'a') || (c == 'e') || (c == 'i') || (c == 'o') || (c == 'u'))){\n sb.append(\"*\");\n } else {\n sb.append(...
[ "0.7577029", "0.7407392", "0.7366443", "0.72724444", "0.725793", "0.7070867", "0.70030046", "0.7001866", "0.673604", "0.6720127", "0.6613379", "0.652312", "0.6409654", "0.63605946", "0.6355286", "0.6353047", "0.6323406", "0.6279396", "0.62760216", "0.6254948", "0.6249999", ...
0.0
-1
/ access modifiers changed from: public
ErrorType(@StringRes int i, @StringRes int i2) { this.mTitleResourceId = i; this.mMessageResourceId = i2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() ...
[ "0.7046954", "0.6840786", "0.6732438", "0.66625404", "0.6642832", "0.66361874", "0.661149", "0.6526749", "0.63912535", "0.6354607", "0.6341408", "0.6341408", "0.6285121", "0.6281917", "0.6281917", "0.6271172", "0.6264127", "0.62395954", "0.62393844", "0.62390846", "0.6238553"...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.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.7247938", "0.7202959", "0.7196692", "0.71785426", "0.7108701", "0.70417315", "0.70402646", "0.70132303", "0.7011096", "0.69826573", "0.6946997", "0.69409776", "0.6935366", "0.69191027", "0.69191027", "0.6893088", "0.6885528", "0.6877815", "0.68763673", "0.686437", "0.68643...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.790433", "0.78052884", "0.7766116", "0.77269244", "0.7631314", "0.76214564", "0.75844425", "0.7530182", "0.748751", "0.7457498", "0.7457498", "0.7438209", "0.74215984", "0.74033666", "0.7391367", "0.7386547", "0.7378906", "0.73700386", "0.73624307", "0.73555857", "0.734534...
0.0
-1
initialise heap from inverse heap
public void initialise() { heap = new ArrayList<>(inverseHeap.keySet()); inverseHeap = null; //null inverse heap to save space }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeHeap() {\r\n\t\t//for (int i = (theHeap.size() >> 1) - 1; i >= 0; i--) {\r\n\t\tfor (int i = (theHeap.size() - 1) >> 1; i >= 0; i--) {\r\n\t\t\tsiftDown(i);\r\n\t\t}\r\n\t}", "void buildHeap() {\n\tfor(int i=parent(size-1); i>=0; i--) {\n\t percolateDown(i);\n\t}\n }", "void buildHeap() {...
[ "0.7259565", "0.69031245", "0.6863625", "0.68169725", "0.67934006", "0.66959864", "0.66709566", "0.6655873", "0.6605544", "0.6593296", "0.65812665", "0.65484697", "0.65456545", "0.6523345", "0.64849716", "0.64817756", "0.6479022", "0.645559", "0.6420997", "0.63419235", "0.634...
0.8017587
0
/ Read more about Camera2 here
private boolean useCamera2() { return Camera2Enumerator.isSupported(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean useCamera2();", "public void onCamera();", "Camera getCamera();", "public void openCamera() {\n \n\n }", "public void updateCamera() {\n\t}", "void cameraSetup();", "private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance...
[ "0.8292385", "0.76617134", "0.7639758", "0.7327926", "0.7293729", "0.71089697", "0.70516807", "0.7039667", "0.69910085", "0.6908397", "0.6892335", "0.68641406", "0.68407077", "0.6836613", "0.68103194", "0.6790013", "0.6774853", "0.67658645", "0.67541784", "0.6744614", "0.6741...
0.7223694
5
Get the previous readings recorded by this sensor.
public List<Double> getPreviousReadings() { return unmodifiableReadings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0...
[ "0.63234", "0.6141553", "0.5994989", "0.5934755", "0.59150374", "0.58921194", "0.5830622", "0.57747227", "0.5732534", "0.5726061", "0.5713068", "0.56726265", "0.565757", "0.56544435", "0.56279767", "0.55994016", "0.5592232", "0.5586237", "0.55771166", "0.55580807", "0.5545020...
0.78717226
0
Decide whether to filter out a given PhysicalObject instance due to some state changing in the object being observed.
protected boolean filterOutObject(PhysicalObject object) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isDiscarded(Object obj) {\n if (obj instanceof Item) {\n return isDiscardedStatus(((Item) obj).getStatus());\n } else if (obj instanceof Container) {\n return isDiscardedStatus(((Container) obj).getStatus());\n } else if (obj instanceof Space) {\n return isDiscardedStatus(((...
[ "0.59941626", "0.57600504", "0.56739885", "0.54530805", "0.54380214", "0.53236985", "0.53211963", "0.53189546", "0.53110486", "0.52784854", "0.5254679", "0.5224874", "0.5206144", "0.5202914", "0.51894885", "0.51788414", "0.5153048", "0.51525253", "0.51486266", "0.5126352", "0...
0.7067099
0
Converts a list of objects that have been determined to fall within the sensor's range into a list of readings in the range [0.0, 1.0].
protected abstract void provideObjectReading(List<SensedObject> objects, List<Double> output);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double readingsInRange (ArrayList<Background> list, int min, int max) {\r\n\t\tint currentMin, currentMax;\r\n\t\tdouble totEvents=0;\r\n\t\tfor (Background bc : list) {\r\n\t\t\tcurrentMin = bc.getMin();\r\n\t\t\tcurrentMax = bc.getMax();\r\n\r\n\t\t\tif (currentMin >= min && currentMax <= max) {\r\...
[ "0.5922021", "0.5736906", "0.54872537", "0.5479234", "0.53833777", "0.5327215", "0.52832466", "0.5269828", "0.5235055", "0.5231443", "0.5184775", "0.51840806", "0.5160278", "0.5139454", "0.5097163", "0.50850004", "0.50808567", "0.5064336", "0.5046897", "0.5043255", "0.5038447...
0.5017824
24
Facade simplifies usage of complex system:
public void turnOnCooler() { oilPompController.turnPompsOn(); breakController.turnOff(); mainPowerController.turnOn(); supportPowerController.turnOn(); try { Thread.sleep(1000); } catch (InterruptedException e) { System.out.println("Waiting to stan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProjectFacade {\n /**\n * Saving new project\n * @param projectDTO - project object\n */\n ProjectDTO saveProject(ProjectDTO projectDTO);\n\n /**\n * Updating project\n * @param projectDTO - project object\n */\n ProjectDTO updateProject(ProjectDTO projectDTO);\...
[ "0.6694303", "0.66918993", "0.649613", "0.6476743", "0.6403728", "0.63483965", "0.63254714", "0.61969596", "0.6010587", "0.5998647", "0.59929705", "0.59515184", "0.59502137", "0.59482574", "0.58981293", "0.5882454", "0.5876504", "0.5867974", "0.5863893", "0.5863893", "0.58638...
0.0
-1
But also provides the way to use elements of subsystem directly:
public BreakController getBreakController() { return breakController; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PnuematicSubsystem() {\n\n }", "private ExampleSubsystem()\n {\n\n }", "protected String getSubsystem() {\n return subsystem;\n }", "void importSubsystem() {\n\t\t//Update attributes of target subsystem//\r\n\t\t/////////////////////////////////////////\r\n\t\tblockElementInto.setAttribute(\"Na...
[ "0.66938776", "0.6417196", "0.60614264", "0.59753644", "0.5908838", "0.5826567", "0.56293297", "0.5615924", "0.5565891", "0.5546835", "0.5541865", "0.5541677", "0.5513627", "0.54839015", "0.5421945", "0.54069895", "0.5386535", "0.53819185", "0.53788525", "0.5364584", "0.53568...
0.0
-1
Created by hgwang on 2017/1/25.
public interface StationService { //1. /api/station/save 保存更新 public void save(Station entity); //2. /api/station/remove 删除 public void remove(long id); //3. /api/station/1 查询 public Station findOne(long id); //4. /api/station/findAll 获取所有 public Page<Station> findAll(int page, int s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private sta...
[ "0.6061531", "0.60198885", "0.58419544", "0.5825182", "0.5793375", "0.5793375", "0.5716404", "0.5698378", "0.56853944", "0.5633607", "0.56314063", "0.5621663", "0.5616289", "0.5613867", "0.5586396", "0.5583151", "0.5577464", "0.5566472", "0.5565948", "0.5563528", "0.55554825"...
0.0
-1
Get list of success responses from nodes.
@NotNull public static List<Response> proxyReplicas(@NotNull final Request request, @NotNull final Collection<HttpClient> httpClients, final int min) { final List<Response> responses = new ArrayList<>(); f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getSuccesses() {\n return successes;\n }", "public abstract Collection<Node> getAllSuccessors();", "public abstract LinkedList<Node> getSuccessors();", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n ...
[ "0.6351108", "0.63219935", "0.6108686", "0.5745971", "0.5727248", "0.56141835", "0.5576302", "0.5474291", "0.5448821", "0.5428537", "0.5382468", "0.52741843", "0.5235424", "0.5179148", "0.5162785", "0.5159893", "0.5149111", "0.5116679", "0.5102967", "0.50888014", "0.50851583"...
0.0
-1
Handle CompletableFuture Response on responding to proxy request.
public static void proxyHandle(@NotNull final HttpSession session, @NotNull final CompletableFuture<Response> proxyHandler) { if (proxyHandler .whenComplete((r, t) -> proxyWhenCompleteHandler(session, r, t)) .isCancelled()) { throw n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompletableFuture<WebClientServiceResponse> whenComplete();", "public void operationComplete(Future<Response> future) throws Exception {\n }", "void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);", "void onResponseTaskCompleted(Request request, Response response, OHExc...
[ "0.6522086", "0.597929", "0.58286685", "0.5790402", "0.5680723", "0.5586284", "0.5581479", "0.5566876", "0.5554092", "0.55281633", "0.5522896", "0.5506522", "0.54959387", "0.54959387", "0.5486358", "0.5472722", "0.5472722", "0.5465208", "0.54591304", "0.54317486", "0.5412848"...
0.65580255
0