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
Method to set end time.
public void setEndTime(long endTime) { this.endTime = endTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEnd_time(long end_time) {\n this.end_time = end_time;\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "public void setTimeEnd(int timeEnd) {\r\n this.timeEnd = timeEnd;\r\n }", "void setEndPosition(net.opengis.gml.x32.TimePosi...
[ "0.83972114", "0.82601315", "0.8233867", "0.8171966", "0.81081665", "0.8066703", "0.80105454", "0.7941301", "0.78403836", "0.78010535", "0.77957773", "0.7780262", "0.7746328", "0.77029455", "0.76190645", "0.76155365", "0.7610344", "0.7609722", "0.755666", "0.755666", "0.75566...
0.7466905
28
Method to get start time as a Calendar object.
public Calendar getStartDate() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(startTime); return cal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Calendar getStartTime();", "public Calendar getStartTime() {\r\n\t\treturn startTime;\r\n\t}", "public Calendar startOfDay() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(...
[ "0.79637295", "0.7454102", "0.7065269", "0.70075566", "0.67628175", "0.6733714", "0.6714372", "0.67070884", "0.66573554", "0.6643242", "0.6635216", "0.6635216", "0.66306573", "0.661293", "0.661293", "0.6588584", "0.65357965", "0.6530472", "0.64914346", "0.6474685", "0.6459065...
0.7761896
1
Method to get end time as a Calendar object.
public Calendar getEndDate() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(startTime); return cal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Calendar getEndTime();", "public Calendar getEndTime() {\r\n\t\treturn endTime;\r\n\t}", "public DateTime getEnd() {\r\n return new DateTime(getEndMillis(), getChronology());\r\n }", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "public Calendar calculateEn...
[ "0.82363445", "0.77739406", "0.7120876", "0.69648045", "0.69172204", "0.68756354", "0.68733525", "0.6842866", "0.68264496", "0.6821172", "0.68140125", "0.6800202", "0.67929256", "0.6756476", "0.6756476", "0.67343545", "0.6731496", "0.6731496", "0.67238545", "0.67238545", "0.6...
0.80280495
1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
Creates an instance of the uncommitted history.
UncommittedHistory(Supplier<Snapshot> makeSnapshot) { this.makeSnapshot = makeSnapshot; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SyncHistory createEntity() {\n return new SyncHistory();\n }", "private History() {}", "public History() {\n }", "LoginHistory create(LoginHistory entity);", "public UpdateHistory() {\n this(\"update_history\", null);\n }", "@Override\n public EditHistory creat...
[ "0.75713146", "0.6779951", "0.6547535", "0.6390588", "0.61611336", "0.60672563", "0.6011959", "0.5855723", "0.58553773", "0.57460505", "0.57454884", "0.572838", "0.56459534", "0.5638035", "0.5625076", "0.55831796", "0.5541692", "0.55258524", "0.55176216", "0.5495956", "0.5449...
0.5736115
11
Returns all tracked uncommitted events.
UncommittedEvents events() { var events = get().stream() .flatMap(segment -> segment.getEventList() .stream()) .collect(toList()); return UncommittedEvents.ofNone() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DomainEventStream getUncommittedEvents();", "public Collection<Event> getEvents() {\n\t\treturn null;\n\t}", "public Set<EventTO> getEvents() {\n\n Iterable<Event> events = eventRepository.findAll();\n LOGGER.info(\"Returning all events\");\n return mapperService.convertToEventTO(events);\...
[ "0.7946483", "0.66182935", "0.6250365", "0.62073004", "0.6148778", "0.61461896", "0.6117569", "0.6117053", "0.61105394", "0.6091177", "0.6089549", "0.6023422", "0.6019001", "0.5981392", "0.59347796", "0.5869428", "0.582751", "0.58246404", "0.57687414", "0.5761236", "0.5749077...
0.79589313
0
Tells if this history contains any uncommitted events.
boolean hasEvents() { return !currentSegment.isEmpty() || !historySegments.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tboolean hasUnsavedChanges();", "public boolean isEmpty() {\n return indexedEvents.isEmpty();\n }", "public boolean isEmpty() {\n return history.size() == 0;\n }", "@Override\n\tpublic boolean isHistoryEmpty() {\n\t\tif (this.movements == null) {\n\t\t\tString token = \"UNKO...
[ "0.661019", "0.64297575", "0.6361325", "0.6319891", "0.6277752", "0.6184033", "0.6179611", "0.61185074", "0.6096125", "0.6081947", "0.60388446", "0.6031673", "0.59767294", "0.597021", "0.5949019", "0.5930497", "0.58745223", "0.58677816", "0.58596736", "0.58574724", "0.5855695...
0.72022307
0
Marks this history as stored and no longer uncommitted.
void commit() { historySegments.clear(); currentSegment.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void markAsNotPersisted() {\n systemId=NOT_PERSISTED;\n externalSystemId=null;\n serialVersion=0;\n }", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "public void markFileAsNotSaved()\r\n {\r\n saved = false;\r\n }", "public void undo() {\n ...
[ "0.6307724", "0.6055755", "0.59588593", "0.56752205", "0.5628883", "0.55913305", "0.5588754", "0.5583425", "0.5556751", "0.5516118", "0.55002797", "0.5495106", "0.548023", "0.54307497", "0.5424741", "0.5407555", "0.5380282", "0.5369356", "0.5352294", "0.5351956", "0.53411674"...
0.58485967
3
Records the history loaded from the aggregate storage. This is only required in order to know the number of events since the last snapshot.
void onAggregateRestored(AggregateHistory history) { this.eventCountAfterLastSnapshot = history.getEventCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void saveActivityHistForAddEntity(Record inputRecord);", "public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}", "public RecordSet loadAllProcessEventHistory(Record inputRecord);", "public void trackRetention() {\n track(\"_retention\");\n }", "public void storeResid...
[ "0.61931044", "0.5949002", "0.59476775", "0.5943062", "0.5898352", "0.58400786", "0.5725064", "0.5716961", "0.5649224", "0.56356007", "0.56010556", "0.55263025", "0.5514896", "0.5509808", "0.5492963", "0.5492434", "0.5439115", "0.5419929", "0.5412437", "0.53948087", "0.539453...
0.70389736
0
Represents a model of a single document. Provides useful methods for retrieving information about the current state of a document.
public interface SingleDocumentModel { /** * Returns {@link JTextArea} component used by {@code this} document. * * @return {@link JTextArea} component used by {@code this} document */ JTextArea getTextComponent(); /** * Returns path of this document. If document was not saved yet returned * path is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SingleDocumentModel getCurrentDocument();", "public Document getModel(){\n return getDocument();\n }", "public Document getDocument() {\n return document;\n }", "public Document getDocument() {\n return document;\n }", "public Document getDocument() {\n return document;\n }", ...
[ "0.7674045", "0.7203142", "0.66517574", "0.6626125", "0.6626125", "0.6613072", "0.6565656", "0.6542304", "0.65365595", "0.6521884", "0.64840907", "0.6482819", "0.6446297", "0.6446297", "0.63338095", "0.6332499", "0.6331556", "0.6297107", "0.62824017", "0.62812436", "0.6278417...
0.70355046
2
TODO Autogenerated method stub
public static void main(String[] args) { bonusDos(); }
{ "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
/IndexSpecification iSpec = new IndexSpecification(indexName); new IndexAdmin
public void createIndex(Configuration configuration){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SimpleIndexFactory() {\n\t}", "IndexNameReference createIndexNameReference();", "InstAssignIndex createInstAssignIndex();", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityMana...
[ "0.65782964", "0.6543969", "0.65415955", "0.6472992", "0.6344739", "0.62694544", "0.62341213", "0.6210918", "0.61791617", "0.6136026", "0.6130912", "0.61277336", "0.5962831", "0.59323704", "0.58755577", "0.5853533", "0.5834842", "0.58284867", "0.5827028", "0.58265257", "0.579...
0.6426545
4
A scriptable object is one that has custom defined behavior. A scriptable object defines three methods: start: called when the object enters scope. If it is persistent, then this is when the quest is first loaded. If it is a regular object, then this is when the object enters the view. Returns an int representing the n...
public interface Scriptable { public int start(); public int update(); public void stop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void gameObjectStartsSleeping();", "public long startTime();", "Duration subsystemFreezeDuration();", "public interface Startable extends Runnable {\n \n /**\n * Waits until the thread this object is running in is finished before returning.\n */\n public void join();\n \n ...
[ "0.5830736", "0.5589975", "0.55546165", "0.54641694", "0.53911775", "0.53421605", "0.5335093", "0.53216535", "0.52920693", "0.5280625", "0.5277016", "0.52634484", "0.52634484", "0.5227023", "0.5217511", "0.5205522", "0.52035046", "0.5201867", "0.51882136", "0.5186511", "0.518...
0.5948194
0
This constructor reads mirror data from the modifier structure. The stored data is a map of parameters for mirror modifier. No additional data is loaded. When the modifier is applied it is necessary to get the newly created node.
public MirrorModifier(Structure modifierStructure, BlenderContext blenderContext) { if(this.validate(modifierStructure, blenderContext)) { modifierData.put("flag", modifierStructure.getFieldValue("flag")); modifierData.put("tolerance", modifierStructure.getFieldValue("tolerance")); Pointer pMirrorO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NodeMap<CDMNode, DapNode> create() throws DapException {\n // Netcdf Dataset will already have a root group\n Group cdmroot = ncfile.getRootGroup();\n this.nodemap.put(cdmroot, this.dmr);\n fillGroup(cdmroot, this.dmr, ncfile);\n return this.nodemap;\n }", "public NetworkNode(Node treeNode...
[ "0.51930255", "0.5042065", "0.48803726", "0.48518702", "0.4796629", "0.47775087", "0.476264", "0.47405535", "0.47129685", "0.47014093", "0.46705955", "0.46569684", "0.46482506", "0.46445397", "0.4629687", "0.46258676", "0.46222237", "0.46015716", "0.45707586", "0.4543647", "0...
0.6159965
0
testRemaining(); testmark(); allocateTest(); flipFunTest(); clearFunTest(); rewindFunTest();
public static void main(String[] args) { markFunTest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "public void testReset() {\n\t}", "void test02(){\n\t}", "private void test() {\n\n\t}", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "public static void res...
[ "0.69104755", "0.68086517", "0.67845976", "0.6542514", "0.63691837", "0.6312736", "0.62872124", "0.62846696", "0.62129235", "0.6145084", "0.614492", "0.614407", "0.6138511", "0.61304647", "0.6129774", "0.6124357", "0.6111207", "0.60817915", "0.60418004", "0.6025298", "0.60223...
0.0
-1
Created by 57014 on 2017/2/27.
public interface UserDao { //添加新用户 public int addUser(User user); public User getUserByOpenId(String openId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@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.60233957", "0.58578074", "0.5827032", "0.57720107", "0.5738626", "0.5738626", "0.56915677", "0.5665688", "0.56499064", "0.5649681", "0.5613133", "0.56085944", "0.5600617", "0.5600371", "0.5596324", "0.5596324", "0.5596324", "0.5596324", "0.5596324", "0.5595621", "0.5588649...
0.0
-1
Always returns null currently because: the Linux kernel does not currently support obtaining it in userspace. and Java 11 does not seem to support detection if the above is still the case, it will just return a different one of the timestamps. TODO: Remove the implementation and thereby the above limitation once it is ...
public final Date getBirthTime() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.walgreens.rxit.ch.cda.TS getBirthTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.TS target = null;\n target = (com.walgreens.rxit.ch.cda.TS)get_store().find_element_user(BIRTHTIME$12, 0);\n if (target ...
[ "0.71731627", "0.6394494", "0.61131996", "0.61131996", "0.6101269", "0.6099227", "0.60895497", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025", "0.5999025",...
0.66851336
1
find view by id
protected void findViewByIds(View layout) { contentStub = (ViewStub) layout.findViewById(R.id.stub_content); netView = (NetworkView) layout.findViewById(R.id.net_view); int rid = getContentLayout(); if (rid <= 0) { throw new RuntimeException("network base fragment has none v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\treturn (View)t;\n\t}", "public View findViewById(int id) {\r\n\t\tView _view;\r\n\r\n\t\t// get parent view\r\n\t\tView _presentView = getPresentView();\r\n\r\n\t\t// chec...
[ "0.7231291", "0.7224539", "0.7221255", "0.7173908", "0.7104514", "0.6994234", "0.69177836", "0.659414", "0.6472925", "0.63974106", "0.63638794", "0.63214713", "0.6320859", "0.63099355", "0.62851244", "0.6241746", "0.62195414", "0.62191504", "0.614961", "0.6064633", "0.6052453...
0.0
-1
cartesian angle if lower coordinate was origin, result 0180
public double findAngle() { return 0d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "public double getAngleXY() {\...
[ "0.7042089", "0.698532", "0.69801635", "0.6925555", "0.6827021", "0.67443687", "0.67201144", "0.67147243", "0.67147243", "0.6612739", "0.66093975", "0.6603316", "0.6599892", "0.6570884", "0.6568324", "0.656495", "0.6538432", "0.65169585", "0.64868844", "0.6472751", "0.6468498...
0.6166714
41
/ compiled from: ILoggerFactory
public interface a { b nJ(String str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface LogFactory {\n\n /**\n * Check if logger class is compatible with the log factory.\n *\n * @param loggerClass logger class\n * @return true if compatible and false - otherwise\n */\n boolean isCompatible(Class<?> loggerClass);\n\n /**\n * Create logger with the giv...
[ "0.6516323", "0.64115417", "0.6258581", "0.6238512", "0.61845505", "0.61704814", "0.61454487", "0.60936064", "0.60757595", "0.6040329", "0.60401726", "0.6026679", "0.5988575", "0.5969397", "0.59513754", "0.59039813", "0.5897599", "0.5832124", "0.5826622", "0.5798065", "0.5789...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); char c[]=s.toCharArray(); int flag=0; for(int i=0;i<c.length;i++) { for(int j=i+1;j<c.length;j++) if(c[i]==c[j]) flag=1; else continue; } if(flag==1) System.out.println("No"); else System.out.printl...
{ "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
public static void main(String[] args) { BankAccount joe = new BankAccount(); System.out.println(joe.getAccountNumber()); joe.deposit("checking", 4000.00); joe.withdraw("savings", 300.00); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Returns a page of transactions data as a JSON object by passing a paging restriction in a GET request.
@GetMapping public Page<Transaction> getTransactionsByPageable(Pageable pageable) { Page<Transaction> pageOfTransactions = transactionService.getTransactionsByPageable(pageable); return pageOfTransactions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getAmountPage();", "Page<BalanceDTO> findAll(Pageable pageable);", "@PostMapping(\"/tlb-trade/pageList\")\n @Timed\n public ResponseEntity<ResponseResult> pageList(@RequestBody HashMap<String, Object> params) {\n log.debug(\"REST request to get a page of TlbTrades\");\n HashMap<String...
[ "0.64720666", "0.62258196", "0.6136524", "0.6114454", "0.61090183", "0.6042395", "0.5988201", "0.59235394", "0.58942336", "0.5878266", "0.58758104", "0.58758104", "0.58758104", "0.5875067", "0.58541924", "0.584401", "0.5836903", "0.5835543", "0.5820804", "0.5809535", "0.58092...
0.5505506
71
Returns a page of transactions of a specified type's data as a JSON object by passing a paging restriction in a GET request. Allowed transaction types (caseinsensitive): "INCOME" "EXPENSE" "TRANSFER"
@GetMapping(params = "type") public Page<Transaction> getTransactionsByTypeAndPageable( @RequestParam String type, Pageable pageable) { Page<Transaction> pageOfTransactions = null; try { pageOfTransactions = transactionService.getTransactionsByTypeAndPageable(type, pageable); } catch (InvalidDataE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<HCLFieldTransaction> getTransactionbyType(String transactionType)\r\n\t\t\tthrows JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTransactionbyType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTransactionbyType() :: \" + transactionType);\r\n\...
[ "0.6208336", "0.6185962", "0.61406195", "0.60567725", "0.60110146", "0.59041893", "0.5875894", "0.5861357", "0.58481574", "0.58437485", "0.5842148", "0.5829919", "0.5811512", "0.5807885", "0.57914364", "0.571719", "0.5685893", "0.5676234", "0.56722885", "0.5651801", "0.564343...
0.72378045
0
Returns the total sum for transactions of a specified type. Allowed transaction types (caseinsensitive): "INCOME" "EXPENSE" "TRANSFER"
@GetMapping("/total-sum") public Double getTotalTransactionsSumByType(@RequestParam String type) { Double totalSum = null; try { totalSum = transactionService.getTotalTransactionsSumByType(type); } catch (InvalidDataException e) { String exceptionMessage = e.getMessage(); throw new InvalidDataExcep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getTotalAmountbyTransactionType(String transactionType) throws JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTotalAmountbyTransactionType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTotalAmountbyTransactionType() :: \" + transactionType);...
[ "0.71558654", "0.64647", "0.6439451", "0.6358833", "0.620706", "0.5992195", "0.5976083", "0.5946288", "0.5909173", "0.58215445", "0.5786642", "0.5774706", "0.5767801", "0.5745366", "0.5639643", "0.5606071", "0.5552366", "0.55426985", "0.5539011", "0.5517396", "0.550875", "0...
0.8004295
0
Returns a page of transactions of a specified type's data (which were made between two dates INCLUSIVE), as a JSON object by passing a paging restriction in a GET request. Allowed transaction types (caseinsensitive): "INCOME" "EXPENSE" "TRANSFER"
@GetMapping("/between-dates") public Page<Transaction> getTransactionsBetweenDatesByTypeAndPageable( @RequestParam String type, @RequestParam @DateTimeFormat(pattern = "dd.MM.yyyy") Date startDate, @RequestParam @DateTimeFormat(pattern = "dd.MM.yyyy") Date endDate, Pageable pageable) { Page<Transaction> pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(params = \"type\")\n\tpublic Page<Transaction> getTransactionsByTypeAndPageable(\n\t\t@RequestParam String type, \n\t\tPageable pageable) \n\t{\n\t\tPage<Transaction> pageOfTransactions = null;\n\t\t\n\t\ttry {\n\t\t\tpageOfTransactions = transactionService.getTransactionsByTypeAndPageable(type, pageab...
[ "0.7160284", "0.61342114", "0.6027253", "0.60142547", "0.6008987", "0.5859295", "0.57943374", "0.57307434", "0.57193667", "0.5713425", "0.5702201", "0.56737757", "0.5612348", "0.56118613", "0.56050235", "0.5571055", "0.5565149", "0.5557887", "0.5557085", "0.5552736", "0.54814...
0.717142
0
Returns the total sum for transactions of a specified type, which were made between two dates (inclusive). Allowed transaction types (caseinsensitive): "INCOME" "EXPENSE" "TRANSFER"
@GetMapping("/total-sum-between-dates") public Double getTotalTransactionsSumBetweenDatesByType( @RequestParam String type, @RequestParam @DateTimeFormat(pattern = "dd.MM.yyyy") Date startDate, @RequestParam @DateTimeFormat(pattern = "dd.MM.yyyy") Date endDate) { Double totalSum = null; try { totalSu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/total-sum\")\n\tpublic Double getTotalTransactionsSumByType(@RequestParam String type) {\n\t\tDouble totalSum = null;\n\t\t\n\t\ttry {\n\t\t\ttotalSum = transactionService.getTotalTransactionsSumByType(type);\n\t\t}\n\t\tcatch (InvalidDataException e) {\n\t\t\tString exceptionMessage = e.getMessage(...
[ "0.6863992", "0.62299436", "0.61933976", "0.61445755", "0.55187166", "0.54619086", "0.54394954", "0.5400155", "0.53853095", "0.53339136", "0.5259555", "0.52413774", "0.5196179", "0.5168055", "0.5159353", "0.5099769", "0.509975", "0.50910556", "0.50615096", "0.5051203", "0.503...
0.7685579
0
Returns a page of transactions with the passed fromtype & fromID.
@GetMapping("/by-from-data") public Page<Transaction> getTransactionsByFromDataAndPageable( @RequestParam TransactionFromType fromType, @RequestParam Long fromId, Pageable pageable) { Page<Transaction> pageOfTransactions = transactionService.getTransactionsByFromDataAndPageable(fromType, fromId, pageable); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/by-to-data\")\n\tpublic Page<Transaction> getTransactionsByToDataAndPageable(\n\t\t@RequestParam TransactionToType toType,\n\t\t@RequestParam Long toId,\n\t\tPageable pageable) \n\t{\n\t\tPage<Transaction> pageOfTransactions = transactionService.getTransactionsByToDataAndPageable(toType, toId, pagea...
[ "0.6165028", "0.5836625", "0.56521326", "0.5648518", "0.5574145", "0.5553556", "0.5532756", "0.5509735", "0.55058676", "0.55021393", "0.5496128", "0.5488209", "0.53730005", "0.5274957", "0.52651185", "0.5246786", "0.523536", "0.5213824", "0.52003497", "0.51971585", "0.5169461...
0.77182466
0
Returns a page of transactions with the passed totype & toID.
@GetMapping("/by-to-data") public Page<Transaction> getTransactionsByToDataAndPageable( @RequestParam TransactionToType toType, @RequestParam Long toId, Pageable pageable) { Page<Transaction> pageOfTransactions = transactionService.getTransactionsByToDataAndPageable(toType, toId, pageable); return pageOfT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/by-from-data\")\n\tpublic Page<Transaction> getTransactionsByFromDataAndPageable(\n\t\t@RequestParam TransactionFromType fromType,\n\t\t@RequestParam Long fromId,\n\t\tPageable pageable) \n\t{\n\t\tPage<Transaction> pageOfTransactions = transactionService.getTransactionsByFromDataAndPageable(fromTyp...
[ "0.5985545", "0.56559575", "0.55581415", "0.53280264", "0.5224148", "0.5207313", "0.5127363", "0.5103201", "0.509056", "0.5077135", "0.50234216", "0.4999423", "0.49940604", "0.4977278", "0.49765405", "0.49558452", "0.49242884", "0.49195638", "0.4910839", "0.48938003", "0.4855...
0.78900266
0
Returns a specific transaction's data as a JSON object
@GetMapping("/{id}") public Transaction getTransactionById(@PathVariable Long id) { Transaction transaction = null; try { transaction = transactionService.getTransactionById(id); } catch (TransactionNotFoundException e) { throw new TransactionNotFoundException(id); } catch (UserDoesNotOwnResourceE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTransaction() {\n return transaction;\n }", "@JsonProperty(\"transaction\")\n public TransactionReference getTransaction() {\n return transaction;\n }", "@Override\n public JSONObject dataBody() {\n\n JSONObject transactionAmount = new JSONObject();\n tr...
[ "0.6534589", "0.6371599", "0.6321012", "0.6181734", "0.6115501", "0.6115501", "0.61118734", "0.6072663", "0.6041695", "0.6004585", "0.5991566", "0.5954065", "0.5944942", "0.5919454", "0.5909448", "0.5882255", "0.58598495", "0.5836986", "0.5830261", "0.58039314", "0.58039314",...
0.0
-1
This method creates a transaction by passing the transaction's data in a POST request's body and returns the newly created transaction's data as a JSON object. The data is validated before the transaction is stored in the database.
@PostMapping @ResponseStatus(HttpStatus.CREATED) public Transaction createTransaction( @RequestBody @Valid TransactionRequest transaction, BindingResult bindingResult) { if (bindingResult.hasErrors()) { String errorMessageFromBindingResult = ControllerUtils.getErrorMessageFromBindingResult(bindingResult); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTransaction(Transaction trans);", "Transaction createTransaction();", "public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;", "Transaction createTransaction(Settings settings);", "protected abstract Transaction createAndAdd();", "@Override...
[ "0.6777012", "0.6439321", "0.62170744", "0.61467344", "0.608021", "0.60461", "0.60361797", "0.60203284", "0.5909369", "0.57639045", "0.575789", "0.5715204", "0.56233305", "0.5620446", "0.560429", "0.56032133", "0.5563792", "0.5562626", "0.55624825", "0.55282146", "0.5502882",...
0.6434518
2
This method updates an existing transaction in the database by passing the updated transaction's data in a POST request's body and returns the updated transaction's data as a JSON object. The data is validated before the transaction is updated in the database.
@PutMapping("/{id}") public Transaction updateTransactionById( @PathVariable Long id, @RequestBody @Valid TransactionRequest transaction, BindingResult bindingResult) { if (bindingResult.hasErrors()) { String errorMessageFromBindingResult = ControllerUtils.getErrorMessageFromBindingResult(bindingResult)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateTransaction(Transaction trans);", "@Override\n\tpublic Transaction update(Integer transactionId, Transaction transaction) {\n\t\treturn null;\n\t}", "public CleaningTransaction update(CleaningTransaction cleaningTransaction);", "public void update(TransactionUpdateRequest transactionUpdateR...
[ "0.6317664", "0.618459", "0.6150585", "0.6018397", "0.58696336", "0.58434033", "0.5798128", "0.556333", "0.5556791", "0.54974496", "0.54714924", "0.5438281", "0.54277164", "0.54242533", "0.5305876", "0.5292039", "0.5277749", "0.51936394", "0.5183868", "0.51360214", "0.512267"...
0.51984537
17
This method deletes an existing transaction in the database by passing an ID and returns the deleted transaction's data as a JSON object. If the transaction does not exist, an exception is thrown.
@DeleteMapping("/{id}") public Transaction deleteTransactionById(@PathVariable Long id) { Transaction deletedTransaction = null; try { deletedTransaction = transactionService.deleteTransactionById(id); } catch (TransactionNotFoundException e) { throw new TransactionNotFoundException(id); } catch ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteTransactionById(int id);", "@Override\n\tpublic void delete(Integer transactionId) {\n\n\t}", "public void deleteTransaction(int id) throws SQLException {\n String sql = \"DELETE FROM LabStore.Transaction_Detail WHERE id = ?\";\n\n try (Connection conn = database.getConnection();\n ...
[ "0.753673", "0.6809074", "0.6488862", "0.6386934", "0.6386035", "0.63694596", "0.62858444", "0.6281927", "0.6278688", "0.62536734", "0.6245001", "0.6237728", "0.62231517", "0.6130976", "0.60943145", "0.60876477", "0.6067783", "0.598507", "0.59845376", "0.5982056", "0.59771633...
0.7412095
1
Used to create an order from a checkout object once payment has been successful.
public Order createOrder(final Checkout checkout) { Map<String, Object> logMap = LoggingUtils.createLogMap(); LoggingUtils.logIfNotNull(logMap, LoggingUtils.CHECKOUT_ID, checkout.getId()); LoggingUtils.logIfNotNull(logMap, LoggingUtils.USER_ID, checkout.getUserId()); LOGGER.info("Creatin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(Order order);", "OrderDTO create(OrderDTO orderDTO);", "public void startOrder() {\r\n this.o= new Order();\r\n }", "public Invoice createInvoice(Order order);", "Order placeNewOrder(Order order, Project project, User user);", "ResponseDTO createPurchase(PurchaseOrderDTO purchaseOrderDT...
[ "0.6177483", "0.60883343", "0.6077429", "0.59993476", "0.5940168", "0.5925199", "0.5872652", "0.5838313", "0.57553816", "0.5730214", "0.572309", "0.572014", "0.57014555", "0.566924", "0.56452566", "0.56360394", "0.5626455", "0.56045824", "0.559872", "0.5592355", "0.5566444", ...
0.7404722
0
Resends a message to the Kafka 'orderreceived' topic for an existing order.
public void reprocessOrder(final Order order) { final String orderId = order.getId(); final Map<String, Object> logMap = LoggingUtils.createLogMap(); LoggingUtils.logIfNotNull(logMap, LoggingUtils.ORDER_ID, orderId); LOGGER.info("REPUBLISHING notification to Kafka 'order-received' topic ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendOrderReceivedMessage(String orderId) {\n String orderURI = orderEndpoint + \"/\" + orderId;\n OrderReceived orderReceived = new OrderReceived();\n orderReceived.setOrderUri(orderURI);\n ordersMessageProducer.sendMessage(orderId, orderReceived);\n }", "public void r...
[ "0.6584561", "0.6312004", "0.6262885", "0.604059", "0.5977281", "0.58717227", "0.5770618", "0.569623", "0.5573367", "0.5327472", "0.5306379", "0.52738833", "0.5250023", "0.51896906", "0.51843107", "0.51465017", "0.5086658", "0.50776064", "0.50699943", "0.50551176", "0.5048705...
0.7257221
0
Sends a message to Kafka topic 'orderreceived'
private void sendOrderReceivedMessage(String orderId) { String orderURI = orderEndpoint + "/" + orderId; OrderReceived orderReceived = new OrderReceived(); orderReceived.setOrderUri(orderURI); ordersMessageProducer.sendMessage(orderId, orderReceived); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(Order brokerMsg) {\n// System.out.println(\"Sending a transaction from. price\" + brokerMsg.getPrice() + \" buy : \" + brokerMsg.isBuy());\n\n\n MessageCreator messageCreator = new MessageCreator() {\n @Override\n public Message createMessage(Session session) ...
[ "0.6709554", "0.63692266", "0.6306248", "0.61487687", "0.6038939", "0.6038598", "0.5971001", "0.58872175", "0.58596146", "0.5818123", "0.5788833", "0.57573074", "0.5754925", "0.5694619", "0.5639414", "0.5616895", "0.5590712", "0.55445635", "0.55196357", "0.5518391", "0.551807...
0.66317993
1
Sets the created at and updated at date time 'timestamps' to now.
void setCreationDateTimes(final Order order) { final LocalDateTime now = LocalDateTime.now(); order.setCreatedAt(now); order.setUpdatedAt(now); order.getData().setOrderedAt(now); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "public void setCreatedOn(DateTime createdOn);", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tth...
[ "0.6785111", "0.66643435", "0.6616319", "0.649848", "0.63866776", "0.6372061", "0.6369535", "0.6367599", "0.63468665", "0.633895", "0.633895", "0.6325532", "0.6325094", "0.63050926", "0.6303485", "0.6303485", "0.6303485", "0.6303485", "0.6303485", "0.6303485", "0.6303485", ...
0.6450516
4
now create constructor and getter setter method using shortcut like command+n for mac & Alt+Insert for window.
public Aliments(boolean isSelected, String userName) { this.isSelected = isSelected; this.userName = userName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWitho...
[ "0.5839078", "0.5739004", "0.5454901", "0.544741", "0.54460675", "0.54093856", "0.537973", "0.535405", "0.53186935", "0.5318297", "0.53046334", "0.52554506", "0.5216066", "0.52150124", "0.52073795", "0.5178625", "0.5146281", "0.51397955", "0.51134837", "0.5105941", "0.5100202...
0.0
-1
Selects a random genome from the species chosen, where genomes with a higher adjusted fitness have a higher chance of being selected
private int intGetRandomGenomeBiasedAdjustedFitness(Species selectFrom, Random random) { double completeWeight = 0.0; for (integerFitnessGenome fg : selectFrom.fitnessInt) { completeWeight += fg.fitness; } double r = Math.random() * completeWeight; double countWeight = 0.0; for (integerFitnessGeno...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testSelect_4()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n selector.setDoubletteChromosomesAllowed(true);\n // the following original rate controls that only 30% of the chromosomes\n // will be considered for selection as given with Be...
[ "0.70849746", "0.67207676", "0.66603166", "0.6616979", "0.6592662", "0.6511219", "0.6497152", "0.63983804", "0.6278317", "0.62573147", "0.6200497", "0.60701215", "0.6044686", "0.5986516", "0.58632153", "0.5747644", "0.57337946", "0.5726141", "0.57244766", "0.57184184", "0.571...
0.7082302
1
Selects a random species, species with higher total fitness have a better chance
private Species getRandomSpeciesBaisedAdjustedFitness(Random random) { double completeWeight = 0.0; for (Species s : species) { completeWeight += s.totalAdjustedFitness; } double r = Math.random() * completeWeight; double countWeight = 0.0; for (Species s : species) { countWeight += s.totalAdj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int intGetRandomGenomeBiasedAdjustedFitness(Species selectFrom, Random random) {\r\n\t\tdouble completeWeight = 0.0;\r\n\t\tfor (integerFitnessGenome fg : selectFrom.fitnessInt) {\r\n\t\t\tcompleteWeight += fg.fitness;\r\n\t\t}\r\n\t\tdouble r = Math.random() * completeWeight;\r\n\t\tdouble countWeight = 0...
[ "0.67735416", "0.668827", "0.6636664", "0.6442247", "0.6338223", "0.62818784", "0.6263116", "0.62417674", "0.609552", "0.60946715", "0.605212", "0.6047439", "0.59446347", "0.59425735", "0.59074855", "0.590543", "0.5900689", "0.58974457", "0.58897424", "0.5885863", "0.58802223...
0.7312582
0
gets the number of species in the generation
public int getSpeciesAmount() { return species.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int numGenes() {\n\t\treturn genes.size();\n\t}", "public int getNumberOfAnimalSpecies() {\n\t\treturn numberOfAnimalSpecies;\n\t}", "public int countOfGenerations ();", "public int getGenCount(){\n return generationCount;\n }", "int getSnInfoCount();", "int getSnInfoCount();", "int getSn...
[ "0.7139024", "0.70569736", "0.6915409", "0.670612", "0.653085", "0.653085", "0.653085", "0.651371", "0.6511091", "0.646953", "0.646953", "0.64571303", "0.6441098", "0.64406437", "0.64279217", "0.6391149", "0.6384125", "0.6372432", "0.6372432", "0.63639873", "0.63598406", "0...
0.768738
0
Returns the highest fitness score
public float getHighestFitness() { return highestScore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }", "public int getWorstScore()\n {\n return -1;\n }", "public double getBestScore();", "public Fitness bestScore() {\r\n Map.Entry<Fitness, List<Element>> bestEntry\r\n = elementsByFitness.lastEntry()...
[ "0.7745151", "0.772958", "0.77217704", "0.74953836", "0.7490183", "0.74297506", "0.73877704", "0.73828405", "0.7371105", "0.73243135", "0.7312658", "0.7269876", "0.72273207", "0.72211313", "0.71054846", "0.7063551", "0.70618725", "0.70194584", "0.7016894", "0.68865085", "0.68...
0.8445418
0
Called when "CANCEL" TextView is clicked
public void onCancelClicked(View v) { goBackToStart(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onCancelClicked();", "public void marksCancel(View view) {\n }", "public void clickedCancel(View view) {\n \treturnResult(Activity.RESULT_CANCELED);\n }", "public void onCancelClick()\r\n {\r\n\r\n }", "@Override\n public void onClick(View v) {\n ...
[ "0.77257025", "0.74787694", "0.7464892", "0.7442671", "0.73714185", "0.7369516", "0.7347374", "0.7340034", "0.7292851", "0.7245623", "0.7178994", "0.7134079", "0.71260166", "0.7125511", "0.7099085", "0.708023", "0.7047394", "0.7042151", "0.703564", "0.70090526", "0.70090526",...
0.71870613
10
Called when "NEXT" TextView is clicked
public void onNextClicked(View v) { // TODO: format phone number final String email = etEmail.getText().toString(); final String mobile = etMobile.getText().toString(); final String password = etPassword.getText().toString(); if (email.isEmpty() || mobile.isEmpty() || password.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "@Override\n public void onNextPressed() {\n }", "public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t...
[ "0.7814236", "0.7793505", "0.7659741", "0.7554862", "0.73219514", "0.71528786", "0.70896095", "0.7038609", "0.70270705", "0.6904517", "0.68905324", "0.68402904", "0.6839023", "0.6837556", "0.6768104", "0.675036", "0.6743863", "0.6666009", "0.66589075", "0.6652525", "0.6643012...
0.0
-1
column where the game piece will be positioned methods
public GamePiece() //constructor { type="?"; //initializes type to ? symbol='?'; //initializes symbol to ? }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPositionColumn(){return this.positionColumn;}", "public void setPositionColumn(int value){this.positionColumn = value;}", "private int colPos(int pos) {\r\n return pos % squareDimension;\r\n }", "public int getCurrentPawnColumn(){\r\n GamePosition curPos = currentGame.getCurrentPositi...
[ "0.7097758", "0.70789164", "0.68644863", "0.6838201", "0.6791147", "0.65965194", "0.655818", "0.6526553", "0.65221673", "0.6481675", "0.6471398", "0.64640915", "0.6464078", "0.6446514", "0.64310503", "0.64267254", "0.64078534", "0.63765323", "0.635659", "0.6344121", "0.631138...
0.0
-1
TODO Autogenerated method stub
@Override public void onDialogNegativeClick(DialogFragment dialog) { }
{ "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
whitebox branch coverage tests
@Test void testInoltroSegnalazioneJpg() throws IOException { request.setParameter("oggetto", "Perdita d'acqua"); request.setParameter("descrizione", "Perdita d’acqua in via roma, altezza supermercato, civico 3"); request.setParameter("via", "Via roma"); request.setParameter("civico",...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBranchCoverageSuccess() throws Exception {\n Jenkins jenkins = jenkinsRule.jenkins;\n WorkflowJob project = jenkins.createProject(WorkflowJob.class, \"cob-test\");\n \n project.setDefinition(new CpsFlowDefinition(new ScriptBuilder().setBranchCoverage(\"76,75,0...
[ "0.75518453", "0.74084544", "0.73195064", "0.6707676", "0.6665466", "0.6564801", "0.65455675", "0.6544816", "0.64717275", "0.6459267", "0.6436063", "0.63723785", "0.63609207", "0.63508797", "0.6292521", "0.6273476", "0.6251672", "0.62385285", "0.6205011", "0.6155288", "0.6117...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setListAdapter(new ArrayAdapter<String>(Menu.this,android.R.layout.simple_list_item_1, class...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); }
{ "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 protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); String sample=classes[position]; try{ Class ob=Class.forName("com.example.mohit."+sample); Intent navigate=new Intent(Menu.this,ob); startActivity(navigate); }catch(ClassNot...
{ "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 onCreateOptionsMenu(android.view.Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater muu= getMenuInflater(); muu.inflate(R.menu.cool_menu, menu); 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
TODO Autogenerated method stub
@Override public boolean onOptionsItemSelected(MenuItem item) { switch(item.getItemId()){ case R.id.aboutus: Intent about=new Intent(Menu.this,AboutUs.class); startActivity(about); break; case R.id.pre: Intent pre=new Intent(Menu.this,Prefs.class); startActivity(pre); break; case R.id.exi...
{ "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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static InscricoesFragment newInstance(String param1, String param2) { InscricoesFragment fragment = new InscricoesFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fra...
{ "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.7259323", "0.72325355", "0.7113618", "0.699069", "0.69899815", "0.6833516", "0.68299687", "0.6813079", "0.6800701", "0.6800411", "0.6765796", "0.67397755", "0.67397755", "0.67275816", "0.6716515", "0.6706048", "0.6691217", "0.66904765", "0.6688572", "0.66629845", "0.664517...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6621546", "0.65269053", "0.6475754", "0.6475754", "0.643746", "0.63244635", "0.6238664", "0.6191726", "0.6161001", "0.6144338", "0.61246425", "0.6107387", "0.60993314", "0.6094632", "0.6048703", "0.6048703", "0.60470945", "0.6043571", "0.6043571", "0.6009135", "0.5999534",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7323901", "0.720826", "0.71346456", "0.712432", "0.71223646", "0.7014406", "0.6975986", "0.6975986", "0.6975986", "0.6973731", "0.69676983", "0.69656146", "0.6960717", "0.69542384", "0.6943149", "0.6933716", "0.69288176", "0.69264686", "0.6922715", "0.6909953", "0.6902666"...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Join a room using it's id
private void joinRoom(int roomId) { // Reset room state variables messages.clear(); ChatAdapter adapter = new ChatAdapter(getApplicationContext(),messages); adapter.notifyDataSetChanged(); chatRecyclerView.setAdapter(adapter); this.destinationPublicKey = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void joinRoom(int roomId) throws RoomNotFoundException, RoomPermissionException, IOException;", "@Override\n\tpublic SocketIOSocket join(String room) {\n\t\tString roomName = namespace.getName() + \"/\" + room;\n\t\tthis.manager.onJoin(this.id, roomName);\n//\t\tthis.manager.store.publish('join', this.id, name);...
[ "0.82181656", "0.6988733", "0.6938875", "0.6817491", "0.66829425", "0.6460929", "0.6433009", "0.6284499", "0.62599164", "0.62436765", "0.61286056", "0.6018839", "0.6006031", "0.59977823", "0.5990762", "0.5982656", "0.5959819", "0.5929774", "0.5903012", "0.58325154", "0.583152...
0.7685982
1
Send message to current room
private void sendMessage(String message) { // we need to encrypt message using destination public-key if (destinationPublicKey == null) return; /** * Encrypt Message Here */ PublicKey publicKey = getPublicKey(Base64.decode(destinationPublicKey, Base64.URL_SAFE)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendMessage(String content, String room) {\n }", "public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute...
[ "0.7628863", "0.75732416", "0.69629115", "0.6925068", "0.68793005", "0.6784194", "0.6765136", "0.6754809", "0.66841114", "0.65865314", "0.6583517", "0.65779793", "0.6558191", "0.6525422", "0.6521595", "0.6515703", "0.64649993", "0.6447764", "0.6437228", "0.6409398", "0.640313...
0.0
-1
Send publickey to every other person on the chat
private void sendPublicKey() { PublicKey publicKey = EncryptionUtils.getKeyPair(getApplicationContext()).getPublic(); String encodedPublicKey = Base64.encodeToString(publicKey.getEncoded(),Base64.URL_SAFE); socket.emit("public_key",encodedPublicKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPublicKeyActorSend();", "String getPublicKeyActorReceive();", "private static void keyExchange() throws IOException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException {\r\n\t\t//receive from server\r\n\t\tPublicKey keyserver = cryptoMessaging.recvPublicKey(auctioneer.getInput...
[ "0.6792673", "0.6373727", "0.6203933", "0.6081435", "0.5997752", "0.5936513", "0.59312654", "0.58880174", "0.5823006", "0.58064234", "0.57835734", "0.56887436", "0.5678968", "0.5661653", "0.56535196", "0.5621096", "0.5612598", "0.5609919", "0.5571997", "0.5563427", "0.5509268...
0.70544165
0
Convert base64url encoded string to public key
private PublicKey getPublicKey(byte[] publicKeyBytes) { try { KeyFactory keyFactory = KeyFactory.getInstance("RSA"); X509EncodedKeySpec keySpec = new X509EncodedKeySpec(publicKeyBytes); return keyFactory.generatePublic(keySpec); } catch (NoSuchAlgorithmException | Inv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static PublicKey buildPublicKeyFromString(String publicKeyAsString) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException, CertificateException {\n String publicKeyStrWithoutHeaderFooter = publicKeyAsString.\n replaceAll(\"-----BEGIN PUBLIC KEY-----\...
[ "0.6814906", "0.6729484", "0.67117435", "0.66883886", "0.6682766", "0.66287345", "0.6470619", "0.6429858", "0.64209366", "0.63776004", "0.6377535", "0.6373564", "0.6298133", "0.62961835", "0.624829", "0.6245648", "0.6200661", "0.6178753", "0.6159828", "0.613426", "0.5979282",...
0.0
-1
States of user disconnection
@Override public void onBackPressed() { super.onBackPressed(); socket.emit("user_disconnected",""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected void onDisconnection();", "protected void processDisconnection(){}", "void onDisconnected();", "public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDeviceName);\n...
[ "0.7494824", "0.7238941", "0.68365794", "0.6806254", "0.67839384", "0.6711997", "0.6601257", "0.6589258", "0.65658134", "0.65634793", "0.65634793", "0.6501628", "0.648018", "0.648018", "0.64706814", "0.64120704", "0.64029044", "0.6397521", "0.63803184", "0.63731956", "0.63502...
0.0
-1
It initializes the class by connecting to the database
public DataHandlerDBMS() { try { Class.forName("com.mysql.jdbc.Driver"); DBMS = DriverManager.getConnection(url); System.out.println("DBSM inizializzato"); } catch (SQLException e) { System.out.println("Errore apertura DBMS"); e.printStackTrace(); } catch (ClassNotFoundException e) { System.out....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DBConnection() \n {\n initConnection();\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:p...
[ "0.81281894", "0.7828036", "0.7755878", "0.76907", "0.76548564", "0.76482874", "0.76384693", "0.7636664", "0.7634969", "0.76286805", "0.76031727", "0.7587989", "0.7554947", "0.75407237", "0.7523875", "0.7520403", "0.7499743", "0.7497395", "0.7481627", "0.744421", "0.74342513"...
0.70144767
62
Created by budde on 4/26/15.
public interface AssignmentNode extends StackOperationNode { TemporaryVariableName getValueName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n ...
[ "0.5982899", "0.5884431", "0.5876487", "0.58756727", "0.5866924", "0.58666587", "0.5820854", "0.5820854", "0.5779621", "0.5776179", "0.57668734", "0.57613975", "0.57510513", "0.57180643", "0.5675869", "0.5672647", "0.56649584", "0.5654211", "0.5654211", "0.5654211", "0.565421...
0.0
-1
Creates a variable grid layout manager with the specified mode and zero horizontal and vertical gap.
public VariableGridLayout(int mode, int size) { this(mode, size, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return m...
[ "0.6481506", "0.6308262", "0.62355196", "0.62108725", "0.6017477", "0.5944937", "0.5905617", "0.5900884", "0.58796716", "0.5793823", "0.5765277", "0.575119", "0.5695213", "0.5666735", "0.565249", "0.5648782", "0.5632991", "0.5595765", "0.55904025", "0.55747306", "0.55661875",...
0.6166298
4
Creates a variable grid layout manager with mode FIXED_NUM_ROWS, number of rows == 1 and zero horizontal and vertical gap.
public VariableGridLayout() { this(FIXED_NUM_ROWS, 1, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "private GridLayout initGridLayout(int rows, int colums) {\n GridLayout gridLayout = new GridLayout(this);\n ...
[ "0.6688575", "0.6266112", "0.6240668", "0.62241185", "0.59883046", "0.5956099", "0.59238017", "0.58897537", "0.58695024", "0.58412755", "0.58249074", "0.5816845", "0.5814632", "0.571843", "0.5679437", "0.5664741", "0.56318045", "0.562016", "0.5587103", "0.55542445", "0.554322...
0.7052298
0
Not used in this class.
public void addLayoutComponent(String name, Component component) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n ...
[ "0.64961404", "0.63214976", "0.6217457", "0.62030166", "0.61921257", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61731684", "0.6170836", "0.6168173", "0.606804", "0.6052826", "0.60429525", "0.60247415", "0.6019729", "0.6019729", "0.5...
0.0
-1
Not used in this class.
public void addLayoutComponent(Component component, Object constraints) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n ...
[ "0.64961404", "0.63214976", "0.6217457", "0.62030166", "0.61921257", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61731684", "0.6170836", "0.6168173", "0.606804", "0.6052826", "0.60429525", "0.60247415", "0.6019729", "0.6019729", "0.5...
0.0
-1
Not used in this class.
public void removeLayoutComponent(Component component) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n ...
[ "0.64961404", "0.63214976", "0.6217457", "0.62030166", "0.61921257", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61761427", "0.61731684", "0.6170836", "0.6168173", "0.606804", "0.6052826", "0.60429525", "0.60247415", "0.6019729", "0.6019729", "0.5...
0.0
-1
Returns the string representation of this variable grid layout's values.
public String toString() { return getClass().getName() + "[mode=" + mode + ",size=" + size + ",hgap=" + hgap + ",vgap=" + vgap + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString ()\n\t{\n\t\tString s = \"Grid:\\n\";\n\t\tfor (int row=0; row<GRID_SIZE; row++)\n\t\t{\n\t\t\tfor (int col=0; col<GRID_SIZE; col++) {\n\t\t\t\ts = s + grid[col][row].value()+ \" \";\n\t\t\t}\n\t\t\ts += \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "public String getVals(){\n return (\"a: ...
[ "0.7440584", "0.73196363", "0.71897566", "0.7112965", "0.70539814", "0.7043449", "0.6970052", "0.687129", "0.6826369", "0.6772515", "0.6728624", "0.67231405", "0.66838753", "0.66534096", "0.66103905", "0.6607271", "0.66032124", "0.65970397", "0.65555644", "0.65553665", "0.653...
0.6294244
45
TODO:get only last 1000 tweets
@Override public List<String> getTweetsForMaps(String collectionName) { Query q = new Query(); q.addCriteria(Criteria.where("coordinates").ne(null)); List<String> results = mongoOps.find(q, String.class, collectionName); return results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getTweets(long lastUid) {\n client.getMentionsTimeline(lastUid, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n Log.d(\"DEBUG\", response.toString());\n addAll(Tweet.fromJ...
[ "0.7314263", "0.71743536", "0.6953106", "0.6950714", "0.6929173", "0.6648685", "0.65586746", "0.653748", "0.6507607", "0.6501363", "0.64768595", "0.64459735", "0.63425577", "0.63357526", "0.6312763", "0.6297232", "0.62880236", "0.6267043", "0.62669015", "0.61617", "0.61502445...
0.0
-1
TODO:get only last 1000 tweets
@Override public List<String> getTweetsForMapsWithLimit(String collectionName, int numberOfTweetsWanted) { DBCollection collection = mongoOps.getCollection(collectionName); DBObject q = QueryBuilder.start().put("coordinates").notEquals(null).get(); DBCursor c = collection.find(q).sort(new BasicDBObject("times...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getTweets(long lastUid) {\n client.getMentionsTimeline(lastUid, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n Log.d(\"DEBUG\", response.toString());\n addAll(Tweet.fromJ...
[ "0.73136574", "0.7174499", "0.6952694", "0.69507605", "0.6927795", "0.66479594", "0.6558417", "0.6537975", "0.6509105", "0.65012723", "0.6477718", "0.63433737", "0.6334751", "0.6312809", "0.6294906", "0.62884545", "0.6267186", "0.6266112", "0.61599195", "0.61501795", "0.61394...
0.64467126
11
This method is called timely during a day. outCollection is the same for a day, the output will be mapreduced value of tweets from the beginning of the day up to the current time (replace documents of the same date in the outCollection).
public void dailyMapReduce(Date date, String collectionName) { DBCollection tweets = mongoOps.getCollection(collectionName); Calendar today = Calendar.getInstance(); today.setTime(date); today.set(Calendar.HOUR_OF_DAY, 0); today.set(Calendar.MINUTE, 0); today.set(Calendar.SECOND, 0); long today_beginn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<String> getTweetsForMapsWithLimit(String collectionName, int numberOfTweetsWanted) {\n\t\t\n\t\tDBCollection collection = mongoOps.getCollection(collectionName);\n\t\tDBObject q = QueryBuilder.start().put(\"coordinates\").notEquals(null).get();\n\t\tDBCursor c = collection.find(q).sort(new...
[ "0.53302634", "0.5168099", "0.51377493", "0.51096606", "0.5087629", "0.5016696", "0.49084026", "0.4877642", "0.48442405", "0.47640502", "0.47331098", "0.47022772", "0.46195874", "0.46137488", "0.45982295", "0.4588334", "0.45749775", "0.45457515", "0.45267063", "0.45105115", "...
0.74311656
0
This method is called once a day to calculate trends for the past week/month outCollection is always the same, one for weekly collection, one for monthly collection
public void mergingMapReduce(TimePeriod timePeriod) { System.out.println("Starting merging mapreduce..."); DBCollection dailyCollection = mongoOps .getCollection(DAILY_COLLECT_NAME); Calendar stDate = Calendar.getInstance(); if (timePeriod.equals(TimePeriod.PASTWEEK)) { stDate.add(Calendar.DATE, -7); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void calculateFinalData() {\n\t\tfor(TeamPO oneTeam:teams.getAllTeams()){\r\n\t\t\toneTeam.calculateTeamDataInOneSeason();\r\n\t\t}\r\n\t}", "private void refreshWeeklyStats() {\n TextView weekView = findViewById(R.id.weekView);\n weekView.setText(WeeklyStatistics.getWeek());\...
[ "0.5666071", "0.5572565", "0.55444705", "0.55368674", "0.5402027", "0.5400183", "0.53737056", "0.53050536", "0.52338743", "0.5226111", "0.52181864", "0.52168465", "0.5167598", "0.51623434", "0.5137425", "0.50964135", "0.5055697", "0.5047333", "0.50373495", "0.50328493", "0.50...
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t...
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.77...
0.0
-1
Created by Admin on 2017/3/13.
public interface BaseView { void onRequestError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.6197314", "0.6150779", "0.58690417", "0.5822133", "0.58148414", "0.5776922", "0.5717138", "0.56939745", "0.5667726", "0.5651427", "0.56426895", "0.5642246", "0.56350553", "0.56337124", "0.5617193", "0.5617073", "0.5605596", "0.5605596", "0.5595463", "0.5595463", "0.5566597...
0.0
-1
Compress a byte array.
private static @Nonnull byte[] compress(@Nonnull final byte[] repBytes) { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); try (OutputStream compos = new GZIPOutputStream(baos)) { compos.write(repBytes); } catch (final IOException e) { log.error("can not co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] compress(byte[] value) {\n return compress(value, 0, value.length, Deflater.BEST_COMPRESSION);\n }", "public static byte[] compressBytes(byte[] data) {\n\t\t\tDeflater deflater = new Deflater();\n\t\t\tdeflater.setInput(data);\n\t\t\tdeflater.finish();\n\t\t\tByteArrayOutputStream output...
[ "0.75386703", "0.75070834", "0.6864196", "0.6785783", "0.66676646", "0.6352923", "0.5977097", "0.59370357", "0.58528614", "0.584832", "0.5806848", "0.5788821", "0.57337445", "0.56762", "0.560887", "0.55941725", "0.55817115", "0.5496655", "0.5495921", "0.5490827", "0.5468545",...
0.65223116
5
WHEN THIS METHOD IS CALLED THE 'MAIN MENU' LABEL WILL CHANGE COLOR WHEN THE MOUSE IS HOVERING OVER IT
@FXML public void highlightMainMenu() { mainMenuButton.setOnMouseEntered(mouseEvent -> mainMenuButton.setTextFill(Color.valueOf("#FFD700"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the colour of the text when hovered over\n if(type == \"close\"){//if the close button is being edited\n button.setBackground(new Color(237,6...
[ "0.7070657", "0.6976949", "0.6976949", "0.6976949", "0.6976949", "0.6966293", "0.68612677", "0.6836607", "0.68303484", "0.6813698", "0.6789987", "0.6749973", "0.6749386", "0.6749386", "0.6749386", "0.6749386", "0.6741178", "0.668672", "0.6686132", "0.66432816", "0.6604458", ...
0.7721617
0
WHEN THIS METHOD IS CALLED THE 'MAIN MENU' LABEL WILL CHANGE BACK TO THE DEFAULT TEXT COLOR WHEN THE MOUSE IS NO LONGER HOVERING OVER IT
@FXML public void resetMainMenu() { mainMenuButton.setOnMouseExited(mouseEvent -> mainMenuButton.setTextFill(Color.WHITE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n public void highlightMainMenu()\n {\n mainMenuButton.setOnMouseEntered(mouseEvent -> mainMenuButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//...
[ "0.74602145", "0.6626836", "0.6531539", "0.6378797", "0.6378797", "0.6378797", "0.6378797", "0.6371857", "0.63590103", "0.6344005", "0.6344005", "0.6344005", "0.6344005", "0.633006", "0.629345", "0.62917614", "0.6267323", "0.62528664", "0.6243272", "0.6233858", "0.62244314", ...
0.7101342
1
WHEN THIS METHOD IS CALLED THE 'SINGLE PLAYER' LABEL WILL CHANGE COLOR WHEN THE MOUSE IS HOVERING OVER IT
@FXML public void highlightSinglePlayer() { singlePlayerButton.setOnMouseEntered(mouseEvent -> singlePlayerButton.setTextFill(Color.valueOf("#FFD700"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t\t\tPlay.setForeground(Color.darkGray);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n Play.setForeground(Color.blue);\r\n\t\t\t\t}", "@FXML\n public void highlightMultiplayer()\n {\n ...
[ "0.74457985", "0.7068642", "0.6918731", "0.6799224", "0.6624195", "0.6560291", "0.64805484", "0.64746594", "0.64746594", "0.64746594", "0.64746594", "0.64620256", "0.6460264", "0.64529353", "0.64443904", "0.6410446", "0.6387461", "0.6369308", "0.6368521", "0.6307471", "0.6299...
0.7173504
1
WHEN THIS METHOD IS CALLED THE 'SINGLE PLAYER' LABEL WILL CHANGE BACK TO THE DEFAULT TEXT COLOR WHEN THE MOUSE IS NO LONGER HOVERING OVER IT
@FXML public void resetSinglePlayer() { singlePlayerButton.setOnMouseExited(mouseEvent -> singlePlayerButton.setTextFill(Color.WHITE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t\t\tPlay.setForeground(Color.darkGray);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n Play.setForeground(Color.blue);\r\n\t\t\t\t}", "@FXML\n public void highlightSinglePlayer()\n {\n ...
[ "0.72617406", "0.68760914", "0.68516254", "0.6602688", "0.6366173", "0.63638675", "0.624103", "0.623306", "0.620269", "0.6202467", "0.61554384", "0.6143652", "0.6123331", "0.60854894", "0.60361004", "0.60292155", "0.6028257", "0.60253423", "0.6018459", "0.6009734", "0.6002121...
0.64958143
4
WHEN THIS METHOD IS CALLED THE 'MULTIPLAYER' LABEL WILL CHANGE COLOR WHEN THE MOUSE IS HOVERING OVER IT
@FXML public void highlightMultiplayer() { multiplayerButton.setOnMouseEntered(mouseEvent -> multiplayerButton.setTextFill(Color.valueOf("#FFD700"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t\t\tPlay.setForeground(Color.darkGray);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n Play.setForeground(Color.blue);\r\n\t\t\t\t}", "@FXML\n public void highlightSinglePlayer()\n {\n ...
[ "0.72880036", "0.72213817", "0.6917842", "0.6740541", "0.6682677", "0.6673845", "0.6673845", "0.6673845", "0.6673845", "0.6655611", "0.660408", "0.6599581", "0.6588155", "0.6583062", "0.6574559", "0.65659744", "0.65592706", "0.6558226", "0.64592534", "0.63860106", "0.6363133"...
0.71188664
2
WHEN THIS METHOD IS CALLED THE 'MULTIPLAYER' LABEL WILL CHANGE BACK TO THE DEFAULT TEXT COLOR WHEN THE MOUSE IS NO LONGER HOVERING OVER IT
@FXML public void resetMultiplayer() { multiplayerButton.setOnMouseExited(mouseEvent -> multiplayerButton.setTextFill(Color.WHITE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t\t\tPlay.setForeground(Color.darkGray);\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n Play.setForeground(Color.blue);\r\n\t\t\t\t}", "@FXML\n public void highlightMultiplayer()\n {\n ...
[ "0.7084677", "0.7008625", "0.67963105", "0.66276056", "0.65209264", "0.64366204", "0.6285756", "0.62551576", "0.622657", "0.61962", "0.61689365", "0.615505", "0.61409605", "0.6129943", "0.611427", "0.6110282", "0.6093854", "0.6093854", "0.6093854", "0.6093854", "0.6092148", ...
0.62423337
8
WHEN THIS METHOD IS CALLED THE 'VIEW PROFILE' LABEL WILL CHANGE COLOR WHEN THE MOUSE IS HOVERING OVER IT
@FXML public void highlightProfile() { profileButton.setOnMouseEntered(mouseEvent -> profileButton.setTextFill(Color.valueOf("#FFD700"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.blue);\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)a...
[ "0.67789614", "0.67727536", "0.67727536", "0.67727536", "0.67727536", "0.65867376", "0.6570135", "0.65028375", "0.6466315", "0.6438101", "0.6423861", "0.641214", "0.641018", "0.63795894", "0.6371793", "0.63684404", "0.6359702", "0.6359702", "0.6359702", "0.6359702", "0.629275...
0.71056974
0
WHEN THIS METHOD IS CALLED THE 'VIEW PROFILE' LABEL WILL CHANGE BACK TO THE DEFAULT TEXT COLOR WHEN THE MOUSE IS NO LONGER HOVERING OVER IT
@FXML public void resetProfile() { profileButton.setOnMouseExited(mouseEvent -> profileButton.setTextFill(Color.WHITE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n public void highlightProfile()\n {\n profileButton.setOnMouseEntered(mouseEvent -> profileButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "@FXML\n public void highlightAboutUs()\n {\n aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf...
[ "0.68333024", "0.6317564", "0.62320006", "0.6191193", "0.6187908", "0.6187908", "0.6187908", "0.6187908", "0.6118015", "0.6050775", "0.604278", "0.60401356", "0.60360074", "0.6019747", "0.6015371", "0.60147345", "0.60147345", "0.60147345", "0.60147345", "0.59952927", "0.59845...
0.6354126
1
WHEN THIS METHOD IS CALLED THE 'ABOUT US' LABEL WILL CHANGE COLOR WHEN THE MOUSE IS HOVERING OVER IT
@FXML public void highlightAboutUs() { aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf("#FFD700"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the colour of the text when hovered over\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)a...
[ "0.69527006", "0.6785854", "0.6785854", "0.6785854", "0.6785854", "0.6767963", "0.67108166", "0.66657805", "0.6625409", "0.654829", "0.652651", "0.64756185", "0.64756185", "0.64756185", "0.64756185", "0.6464127", "0.63815314", "0.6378437", "0.6360437", "0.63600576", "0.635243...
0.73939544
0
WHEN THIS METHOD IS CALLED THE 'ABOUT US' LABEL WILL CHANGE BACK TO THE DEFAULT TEXT COLOR WHEN THE MOUSE IS NO LONGER HOVERING OVER IT
@FXML public void resetAboutUs() { aboutUsButton.setOnMouseExited(mouseEvent -> aboutUsButton.setTextFill(Color.WHITE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n public void highlightAboutUs()\n {\n aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the...
[ "0.7041606", "0.6608928", "0.61784875", "0.61373746", "0.6113497", "0.6113497", "0.6113497", "0.6113497", "0.60962427", "0.6093891", "0.6089243", "0.60782456", "0.6074856", "0.60688275", "0.60688275", "0.60688275", "0.60688275", "0.60611594", "0.60589355", "0.6053076", "0.604...
0.65548956
2
WHEN THIS METHOD IS CALLED THE 'ABOUT US' LABEL WILL CHANGE COLOR WHEN THE MOUSE IS HOVERING OVER IT
@FXML public void highlightLogout() { logoutButton.setOnMouseEntered(mouseEvent -> logoutButton.setTextFill(Color.valueOf("#FFD700"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n public void highlightAboutUs()\n {\n aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the...
[ "0.7393359", "0.6952964", "0.67861086", "0.67861086", "0.67861086", "0.67861086", "0.6768276", "0.67112446", "0.6666458", "0.66255057", "0.65485084", "0.65272474", "0.6475323", "0.6475323", "0.6475323", "0.6475323", "0.64639133", "0.6382166", "0.63785195", "0.63609356", "0.63...
0.5744584
76
WHEN THIS METHOD IS CALLED THE 'ABOUT US' LABEL WILL CHANGE BACK TO THE DEFAULT TEXT COLOR WHEN THE MOUSE IS NO LONGER HOVERING OVER IT
@FXML public void resetLogout() { logoutButton.setOnMouseExited(mouseEvent -> logoutButton.setTextFill(Color.WHITE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n public void highlightAboutUs()\n {\n aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the...
[ "0.70407087", "0.660858", "0.6554531", "0.61788124", "0.61373335", "0.6113147", "0.6113147", "0.6113147", "0.6113147", "0.60964584", "0.6093723", "0.608885", "0.6078542", "0.6074614", "0.6068882", "0.6068882", "0.6068882", "0.6068882", "0.60611856", "0.6058631", "0.6053163", ...
0.0
-1
Step 1: sum elements in the array, and return 1 if the sum % len(array) is not 0 Step 2: set target = sum / len(array) Step 3: Declare parameter gap, Loop n in array, set gap = gap + n target Step 4: The result is the max value of abs(gap) and n target and the result itself.
public static int findMinMoves(int[] machines) { int sum = Arrays.stream(machines).sum(); if (sum % machines.length > 0) { return -1; } int target = sum / machines.length; int steps = 0, gap = 0; for (int m : machines) { gap += m - target; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int go(int a[]) {\n int n = a.length;\n int maxsofar = Integer.MIN_VALUE;\n int minsofar = Integer.MAX_VALUE;\n int curmin = 0, curmax = 0, total = 0;\n int ans = 0;\n\n for (int i = 0; i < n; i++) {\n curmax = Math.max(curmax + a[i], a[i]);\n ...
[ "0.659966", "0.63381314", "0.6327291", "0.6286009", "0.62497157", "0.6200822", "0.6174756", "0.6146556", "0.6139896", "0.612998", "0.6095135", "0.6092634", "0.60916984", "0.6066553", "0.6046255", "0.598568", "0.5956618", "0.594289", "0.5941816", "0.593344", "0.59274197", "0...
0.0
-1
Created by Mybatis Generator 2018/12/27
@Mapper public interface EmployeeMapper { int deleteByPrimaryKey(Long id); int insert(Employee record); int insertSelective(Employee record); Employee selectByPrimaryKey(Long id); int updateByPrimaryKeySelective(Employee record); int updateByPrimaryKey(Employee record); List<Employee>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res...
[ "0.68924445", "0.644766", "0.6446459", "0.6407602", "0.6402186", "0.63600945", "0.62743396", "0.62222123", "0.6133197", "0.6118093", "0.6101474", "0.60863227", "0.6067665", "0.6048755", "0.6047952", "0.60404813", "0.60340196", "0.60338086", "0.6031036", "0.60206074", "0.60167...
0.0
-1
String sql="insert into emp99(Name,Salary,Designation) values("+p.getName()+","+p.getSalary()+","+p.getDesignation()+")";
public Boolean save(Emp p){ String sql="insert into emp99(Name,Salary,Designation) values(?,?,?)"; return (Boolean) template.execute(sql, new PreparedStatementCallback<Boolean>() { @Override public Boolean doInPreparedStatement(PreparedStatement ps) throws SQLException, DataAccessException { p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEmployee(employee emp){\n try {\n \n \n String insert =\"INSERT INTO JEREMY.EMPLOYEE (NAME, USERNAME, PASSWORD) VALUES \"\n + \"('\"+emp.name+\"','\"\n +emp.username+\"','\"\n +emp.password+\"')\";\n ...
[ "0.7237608", "0.70615846", "0.70599073", "0.7047677", "0.68344766", "0.67971295", "0.6792392", "0.66321474", "0.65681845", "0.652344", "0.64894956", "0.6474434", "0.6472098", "0.64428747", "0.6436767", "0.64298856", "0.63942033", "0.6390655", "0.6294027", "0.6259522", "0.6258...
0.6480368
11
String sql="update emp99 set name='"+p.getName()+"',salary="+p.getSalary()+",+ designation='"+p.getDesignation()+"' where id="+p.getId()+"";
public void update(Emp p){ String sql="UPDATE emp99 set name=?, salary=?, designation=? WHERE id="+p.getId(); template.update(sql, p.getName(),p.getSalary(),p.getDesignation()); /*return template.execute(sql, new PreparedStatementCallback<Boolean>() { @Override public Boolean doInPreparedStatement(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateData() throws SQLException {\n pst=con.prepareStatement(\"update employee set name=?,city=? where id=?\");\n System.out.println(\"Enter name: \");\n String name=sc.next();\n pst.setString(1,name);\n\n System.out.println(\"Enter city: \");\n String city=sc...
[ "0.7439988", "0.7348397", "0.6724844", "0.6626602", "0.6585726", "0.65425134", "0.6510522", "0.64831007", "0.6471415", "0.6419215", "0.6393494", "0.6373654", "0.63638204", "0.6350563", "0.6322565", "0.62852234", "0.627455", "0.6240798", "0.62367076", "0.621524", "0.6204541", ...
0.7637653
0
Initialize your data structure here.
public MyStack() { queue = new LinkedList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n }", "private void initData() {\n\t}", "private void initData() {\n\n }", "public void initData() {\n }", "public void initData() {\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\...
[ "0.79950666", "0.79734904", "0.78092736", "0.7776931", "0.7776931", "0.7643151", "0.76366234", "0.76366234", "0.76366234", "0.76366234", "0.76366234", "0.76366234", "0.7555222", "0.75431204", "0.75431204", "0.75423974", "0.75423974", "0.75423974", "0.75321865", "0.7522416", "...
0.0
-1
Push element x onto stack.
public void push(int x) { queue.offer(x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(int x) {\n stack.add(x);\n }", "public void push(int x) {\r\n inStack.push(x);\r\n }", "public void push(int x) {\n this.stack1.add(x);\n }", "public void push(int x) {\n pushStack.add(x);\n }", "public void push(int x) {\n\t\tstack.push(x);\n\t}", ...
[ "0.86726034", "0.85932225", "0.85570914", "0.8550038", "0.852482", "0.8498592", "0.8488227", "0.8461912", "0.8458076", "0.8428038", "0.8376653", "0.8370226", "0.8368897", "0.8343204", "0.83385926", "0.8335069", "0.8333074", "0.83219844", "0.83110696", "0.8299808", "0.82648236...
0.75231606
73
Removes the element on top of the stack and returns that element.
public int pop() { int size = queue.size(); for (int i = 0; i < size - 1; i++) { Integer poll = queue.poll(); queue.offer(poll); } return queue.poll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = ...
[ "0.7831054", "0.78167725", "0.7808246", "0.7797564", "0.7689596", "0.7677747", "0.7633739", "0.76071864", "0.7598945", "0.7597015", "0.7577195", "0.75743157", "0.75456405", "0.75169796", "0.750027", "0.74873495", "0.74667877", "0.7460093", "0.74569875", "0.7456191", "0.744837...
0.0
-1
Get the top element.
public int top() { int size = queue.size(); for (int i = 0; i < size - 1; i++) { Integer poll = queue.poll(); queue.offer(poll); } Integer poll = queue.poll(); queue.offer(poll); return poll; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int top() {\n return topElem;\n }", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public T getTop( ...
[ "0.8335419", "0.79350287", "0.77536744", "0.7748599", "0.76948357", "0.76440716", "0.76287603", "0.76287603", "0.76210487", "0.761078", "0.75897783", "0.757352", "0.75697553", "0.75569373", "0.75336695", "0.74941546", "0.7478168", "0.7464024", "0.7455516", "0.744731", "0.7420...
0.66882724
86
Returns whether the stack is empty.
public boolean empty() { return queue.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "publi...
[ "0.9056825", "0.89871675", "0.89270204", "0.89137876", "0.88953143", "0.8862492", "0.881352", "0.8804085", "0.8804085", "0.8802169", "0.8761835", "0.8756231", "0.87347007", "0.87344116", "0.8714369", "0.87058264", "0.8695712", "0.8680448", "0.8662702", "0.863666", "0.8620814"...
0.0
-1
Push element x onto stack.
public void push(int x) { data.add(x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(int x) {\n stack.add(x);\n }", "public void push(int x) {\r\n inStack.push(x);\r\n }", "public void push(int x) {\n this.stack1.add(x);\n }", "public void push(int x) {\n pushStack.add(x);\n }", "public void push(int x) {\n\t\tstack.push(x);\n\t}", ...
[ "0.86726034", "0.85932225", "0.85570914", "0.8550038", "0.852482", "0.8498592", "0.8488227", "0.8461912", "0.8458076", "0.8428038", "0.8376653", "0.8370226", "0.8368897", "0.8343204", "0.83385926", "0.8335069", "0.8333074", "0.83219844", "0.83110696", "0.8299808", "0.82648236...
0.8075835
34
Removes the element on top of the stack and returns that element.
public int pop() { if (data.size() != 0) { return data.remove(data.size() - 1); } throw new RuntimeException("栈为空,非法操作"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = ...
[ "0.7831054", "0.78167725", "0.7808246", "0.7797564", "0.7689596", "0.7677747", "0.7633739", "0.76071864", "0.7598945", "0.7597015", "0.7577195", "0.75743157", "0.75456405", "0.75169796", "0.750027", "0.74873495", "0.74667877", "0.7460093", "0.74569875", "0.7456191", "0.744837...
0.0
-1
Get the top element.
public int top() { if (data.size() != 0) { return data.get(data.size() - 1); } throw new RuntimeException("top: 栈为空,非法操作"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int top() {\n return topElem;\n }", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public T getTop( ...
[ "0.8335419", "0.79350287", "0.77536744", "0.7748599", "0.76948357", "0.76440716", "0.76287603", "0.76287603", "0.76210487", "0.761078", "0.75897783", "0.757352", "0.75697553", "0.75569373", "0.75336695", "0.74941546", "0.7478168", "0.7464024", "0.7455516", "0.744731", "0.7420...
0.6572038
96