query
stringlengths
9
43.3k
document
stringlengths
17
1.17M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Returns whether $code appears in the OrigCurrency element of the XML.
public function isOriginalCurrency($code) { return $this->getOriginalCurrency() === strtoupper($code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isInISO($code) {\n $xml = simplexml_load_file('http://www.currency-iso.org/dam/downloads/lists/list_one.xml');\n $result = $xml -> xpath(\"//CcyNtry[Ccy='{$code}']\");\n if($result != null) {\n return true;\n } else {\n return false;\n }\n }", "public function has($code) {\n\t...
[ "0.7249582", "0.6548625", "0.63530695", "0.616148", "0.613512", "0.581938", "0.581938", "0.5816914", "0.5813855", "0.580396", "0.5651243", "0.56309867", "0.56309867", "0.55289704", "0.55249566", "0.55030996", "0.5494372", "0.5493275", "0.5476785", "0.54743254", "0.5421173", ...
0.7188052
1
Get the console command options.
protected function getOptions() { return [ ['command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned', 'command:name'], ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOptions() {\n return [\n ['env', null, InputOption::VALUE_OPTIONAL, 'The environment the command should run under.', null],\n ];\n }", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t['testMode', null, InputOption::VALUE_OPTIONAL, 'Runs the command in ...
[ "0.7800682", "0.751765", "0.7345173", "0.73404354", "0.7306238", "0.72790045", "0.7268271", "0.7237944", "0.71917665", "0.715652", "0.7155546", "0.7137", "0.71122515", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945"...
0.77591324
1
Get popup background url
public function getBgImage(){ return $this->scopeConfigInterface->getValue(self::XML_PATH_POPUP_BG_IMAGE,ScopeInterface::SCOPE_WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_url_background_pion(){ return $this->_url_background_pion;}", "public function get_url_background_card(){ return $this->_url_background_card;}", "function get_background_image()\n {\n }", "public function getPopup() {}", "function getBackground() {return $this->readBackground()...
[ "0.7662499", "0.65181", "0.63692915", "0.62914294", "0.60900795", "0.5884704", "0.58233964", "0.57780117", "0.5726911", "0.5686214", "0.5676823", "0.5669619", "0.56365454", "0.55923164", "0.5589073", "0.55470103", "0.55421066", "0.54672974", "0.5455209", "0.5407353", "0.53895...
0.72030306
1
Get popup static block id
public function getStaticBlockId(){ return $this->scopeConfigInterface->getValue(self::XML_PATH_POPUP_STATIC_BLOCK,ScopeInterface::SCOPE_WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_ID()\n {\n return $this->blockId;\n }", "public function getBlockId($name='')\n\t{\n\t\tif (!$name)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t$this->_db->setQuery( \"SELECT id FROM $this->_tbl WHERE block=\" . $this->_db->quote($name) . \" LIMIT 1\" );\n\t\treturn $this->_db->load...
[ "0.6915995", "0.6216904", "0.6204871", "0.60660446", "0.6021487", "0.60035217", "0.5912662", "0.58703965", "0.5808187", "0.5794352", "0.57913446", "0.57251763", "0.5600986", "0.5600986", "0.5586825", "0.5564948", "0.5546049", "0.55442536", "0.554154", "0.5524439", "0.5505612"...
0.8631903
0
Get popup cookie time
public function getCookieTime(){ return $this->scopeConfigInterface->getValue(self::XML_PATH_POPUP_COOKIE_TIME,ScopeInterface::SCOPE_WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLastTime(){\n\t \t if (!empty($_COOKIE['lastVisit'])) {\n\t\techo \"你上次登陆的时间是:\".$_COOKIE['lastVisit'];\n\t}else{\n\t\techo \"你是第一次登陆\";\n\t}\n\t\tsetCookie(\"lastVisit\",date(\"Y-m-d : H:i:s\"),time()+24*3600*30);\n }", "private static function cookieLifetime()\n {\n return time() + (self:...
[ "0.6724043", "0.6605812", "0.6433711", "0.64166373", "0.6311801", "0.6257696", "0.6249962", "0.622519", "0.6133038", "0.6073651", "0.6008927", "0.6008927", "0.60028315", "0.5937981", "0.5823877", "0.58137786", "0.58137786", "0.58137786", "0.58137786", "0.5795732", "0.5792176"...
0.8568498
0
Publishes the Configuration File.
protected function publishConfigurationFile() { // Determine the Local Configuration Path $source = $this->getLocalConfigurationPath(); // Determine the Application Configuration Path $destination = $this->getApplicationConfigPath(); // Publish the Configuration File ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function publishConfig()\n {\n $this->publishes([\n $this->basePath('config/flare/config.php') => config_path('flare/config.php'),\n ]);\n }", "private function publishConfig()\n\t{\n\t\t$config = __DIR__ . '/config/workflow.php';\n\n\t\t$this->publishes([$config => confi...
[ "0.82678056", "0.8150707", "0.8066025", "0.80007505", "0.77923054", "0.7743851", "0.75718474", "0.74415666", "0.73615843", "0.72795933", "0.72750515", "0.72675", "0.71052104", "0.7055335", "0.69835", "0.6956444", "0.68562484", "0.681237", "0.6802941", "0.6791647", "0.6775968"...
0.8816268
0
test that finding data of an object with its primary keys
public function byPrimaryKeys() { $mockResult = $this->getMock('stubDatabaseResult'); $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult)); $mockResult->expects($this->exactly(2)) ->method('fetch') ->will($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFindByIdIsSuccess()\n {\n $tblGateMock = $this->getMockBuilder(TableGateway::class)\n ->setConstructorArgs(array($this->getDbal()))\n ->setMethodsExcept(['findById', 'setTable'])\n ->getMock();\n $tblGateMock->setTable('Person');\n\n //ex...
[ "0.6809215", "0.67438644", "0.66932243", "0.66594833", "0.663723", "0.64941967", "0.6440742", "0.638353", "0.63748986", "0.6342824", "0.63073933", "0.62981206", "0.62323785", "0.621608", "0.6201697", "0.61924386", "0.61577064", "0.6116611", "0.6113921", "0.6097877", "0.606665...
0.68219626
0
test that finding data of an object with a criterion works as expected
public function byCriterion() { $mockCriterion = $this->getMock('stubCriterion'); $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example')); $mockResult = $this->getMock('stubDatabaseResult'); $this->mockConnection->expects($this->any())->method('que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFind()\n {\n $this->assertEquals(1, $this->object->find(function ($item) {\n return $item === 2;\n })->count());\n $this->assertEquals(2, $this->object->find(function ($item) {\n return $item % 2;\n })->count());\n }", "public function t...
[ "0.6125974", "0.57594967", "0.5737834", "0.5663683", "0.5638742", "0.5592787", "0.5589237", "0.55706584", "0.5555321", "0.55334795", "0.55194634", "0.5481652", "0.5456586", "0.5441099", "0.5437106", "0.5410632", "0.5400165", "0.539853", "0.5375005", "0.53451425", "0.5343051",...
0.62691027
0
Get the calendar from this event.
public function getCalendar() { return $this->calendar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendar()\r\n {\r\n if (!$this->_calendar && $this->getCalendarId()) {\r\n $this->_calendar = Mage::getModel('google/calendar')->load($this->getCalendarId());\r\n }\r\n\r\n return $this->_calendar;\r\n }", "public function getCalendar()\n {\n re...
[ "0.7920089", "0.7573589", "0.73638797", "0.72971344", "0.7145896", "0.7012212", "0.6862772", "0.6771605", "0.6688989", "0.64592737", "0.64512366", "0.64512366", "0.6415997", "0.64020973", "0.6395439", "0.63549966", "0.6231698", "0.6060423", "0.59474295", "0.5864934", "0.58567...
0.80141985
0
Get the organiser from this event.
public function getOrganiser() { return $this->organiser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrganisation()\n {\n return $this->organisation;\n }", "public function organizer()\n {\n return $this->belongsTo(User::class, 'organizer_id');\n }", "public function getOrganisation()\n\t{\n\t\treturn $this->_organisation;\n\t}", "public function getOrganization(...
[ "0.6697686", "0.6507971", "0.64969254", "0.648617", "0.648617", "0.648617", "0.6372064", "0.61768335", "0.6144404", "0.6089184", "0.60589164", "0.60294944", "0.5977343", "0.59507185", "0.5903315", "0.5806831", "0.5783075", "0.5752315", "0.57308006", "0.57056224", "0.56900215"...
0.79483306
0
Get the contact info from this event.
public function getContactInfo() { return $this->contactInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getContact()\n\t{\n\t\treturn $this->Info['Contact'];\n\t}", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "pu...
[ "0.77773935", "0.729121", "0.729121", "0.729121", "0.72665775", "0.7256344", "0.7149975", "0.71452886", "0.6844479", "0.6794244", "0.658297", "0.65391105", "0.6429791", "0.64087987", "0.6387042", "0.630271", "0.62434536", "0.62045443", "0.6178928", "0.6142353", "0.61272514", ...
0.7819706
0
Get the maximum amount of participants.
public function getMaxParticipants() { return $this->maxParticipants; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxParticipants()\n {\n return $this->max_participants;\n }", "public function limitPerParticipant()\n {\n if ($this->acceptsGuestEntries()) {\n return;\n }\n\n $limit = $this->settings['limit-per-participant'] ?? 1;\n\n return $limit !== ...
[ "0.83796704", "0.73337865", "0.7174557", "0.71393937", "0.7088084", "0.6965768", "0.6949374", "0.6934905", "0.6926936", "0.6925162", "0.68878186", "0.6872525", "0.67364603", "0.67028195", "0.66730255", "0.665985", "0.66541666", "0.6636262", "0.66084987", "0.6601371", "0.66003...
0.8278022
1
Get the booking period.
public function getBookingPeriod() { return $this->bookingPeriod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriod() {}", "public function getPeriod();", "public function getPeriod()\n {\n return $this->period;\n }", "public function getPeriod()\n {\n return $this->period;\n }", "public function getPeriod()\n {\n return $this->period;\n }", "public func...
[ "0.7230923", "0.71676385", "0.6909265", "0.6909265", "0.6909265", "0.6909265", "0.67613584", "0.65692484", "0.6470812", "0.64168024", "0.63482606", "0.6346187", "0.6337608", "0.6302562", "0.6266849", "0.62030804", "0.6163268", "0.6121682", "0.61178577", "0.6074483", "0.605462...
0.85103947
0
Set the calendar data for the event.
public function setCalendar(CultureFeed_Cdb_Data_Calendar $calendar) { $this->calendar = $calendar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setData($data)\n {\n $this->date=$data;\n }", "function setEvent($year,$month,$day,$id=false,$url=false){\n$eventTime=$this->mkActiveTime(0,0,1,$month,$day,$year);\n\tif (!$id) $id=$this->cssEvent;\n$this->calEvents[$eventTime]=$id;\n$this->calEventsUrl[$eventTime]=$url;\n}", "public func...
[ "0.6326102", "0.62080693", "0.59551716", "0.5905344", "0.58078855", "0.5721358", "0.5721358", "0.57208437", "0.57203865", "0.57196915", "0.5718755", "0.5718755", "0.5718755", "0.5718755", "0.56782216", "0.5675194", "0.5636373", "0.5578467", "0.55449253", "0.55270684", "0.5507...
0.70743966
0
Set the organiser from this event.
public function setOrganiser(CultureFeed_Cdb_Data_Organiser $organiser) { $this->organiser = $organiser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrganiser() {\n return $this->organiser;\n }", "protected function setOrganization() {}", "public function set_organizer_key($organizer_key) {\n\t\t$_SESSION['citrix_organizer_key'] = $organizer_key;\n\t\t$this->organizer_key = $organizer_key;\n\t}", "public function organizer()\n {...
[ "0.6622959", "0.61169004", "0.59210384", "0.5665311", "0.5624373", "0.56112605", "0.5436014", "0.5255994", "0.51777697", "0.5140903", "0.5056154", "0.50486976", "0.50321203", "0.5020482", "0.5020482", "0.5020482", "0.5015321", "0.49897176", "0.4970243", "0.49462056", "0.49192...
0.72573936
0
Delete the organiser from this event.
public function deleteOrganiser() { $this->organiser = NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Organizator $organizator)\n {\n //\n }", "public function remove_organiser($memberid){\n $sql = \"DELETE FROM tournamentOrganisers WHERE tournamentID=$this->id AND organiserID=$memberid\";\n $result = self::$database->query($sql);\n }", "public function delete()\n ...
[ "0.69003993", "0.631365", "0.59371656", "0.5741597", "0.57172453", "0.5633651", "0.55949855", "0.5469599", "0.54365337", "0.5415219", "0.5362119", "0.53501904", "0.53059244", "0.53002864", "0.52841663", "0.5278787", "0.5266372", "0.5265326", "0.5262433", "0.5243839", "0.52348...
0.79746175
0
Set the maximum amount of participants.
public function setMaxParticipants($maxParticipants) { $this->maxParticipants = $maxParticipants; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMaxParticipants($max_participants)\n {\n $this->max_participants = $max_participants;\n }", "public function setMaxParticipants(int $maxParticipants): self\n {\n $this->options['maxParticipants'] = $maxParticipants;\n return $this;\n }", "public function set_...
[ "0.78886503", "0.77239615", "0.6783981", "0.67523926", "0.6752334", "0.67200416", "0.66341704", "0.66165245", "0.6608612", "0.660743", "0.6554045", "0.65503496", "0.6531691", "0.6506651", "0.648476", "0.6442044", "0.6442044", "0.6341335", "0.6337405", "0.6337405", "0.6337405"...
0.8105075
0
Set the booking period.
public function setBookingPeriod(CultureFeed_Cdb_Data_Calendar_BookingPeriod $bookingPeriod) { $this->bookingPeriod = $bookingPeriod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPeriod($_period){\n\t\t$this->period=$_period;\n\t}", "private function _setBookingData()\n {\n // Request the booking data from the tabs api instance\n $booking = \\tabs\\api\\booking\\booking::createBookingFromId(\n $this->getBookingId()\n );\n\n // Loop th...
[ "0.7051499", "0.5833409", "0.5730289", "0.5631127", "0.5631127", "0.5631127", "0.56135935", "0.55542153", "0.5504153", "0.5479121", "0.5470114", "0.5467011", "0.54498273", "0.5427049", "0.54265", "0.5397962", "0.53862077", "0.5379819", "0.5339468", "0.53365767", "0.5327102", ...
0.65940213
1
Select Random Question for create random quizz
public function randomQuestion() { return $this->createQueryBuilder('qb') ->orderBy('RAND()') ->setMaxResults($this->maxResult) ->getQuery() ->getResult() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateQuestion()\n\t{\n\t\t//get random question type\n\t\t$type = $this->questionTypes[array_rand($this->questionTypes)];\n\n\t\t//get random section\n\t\t$section = $this->getRandomSection();\n\n\t\t//get random function (within the above section)\n\t\t$function = $this->getRandomFunction($sect...
[ "0.71189064", "0.6902919", "0.68481266", "0.6843635", "0.6796101", "0.67782533", "0.6649818", "0.66162694", "0.656714", "0.6566387", "0.65618706", "0.6390598", "0.63462085", "0.62936205", "0.62838244", "0.6251915", "0.62392616", "0.6157968", "0.6123096", "0.6100483", "0.60967...
0.71238166
0
Lazily append the next iterator to the chain
private function lazyAppend() { if (!parent::valid() and $this->iterators->valid()) { $this->append($this->iterators->current()); $this->iterators->next(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function next()\n {\n do {\n $this->iterated->attach($this->current());\n parent::next();\n } while ($this->valid() && (!$this->passes($this->current()) || $this->iterated->contains($this->current())));\n }", "public function addNext($next) {}", "public function...
[ "0.6881747", "0.6595135", "0.6353351", "0.63301194", "0.6285945", "0.6239726", "0.6239441", "0.62301123", "0.61991644", "0.6193487", "0.6192673", "0.61845446", "0.6175125", "0.6175125", "0.6174535", "0.6172818", "0.61664975", "0.61664975", "0.61664975", "0.6149026", "0.613233...
0.66689026
1
INSERT INTO TWO TABLES
function insertTwoTables($table1, $data1, $table2, $data2) { $this->db->trans_start(); $this->db->insert($table1, $data1); $this->db->insert($table2, $data2); $this->db->trans_complete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fromOneToTheOther($db1, $table1, $db2, $table2){\n\n\t$firstRecs = dbMassData(\"SELECT * FROM \".$db1.\".\".$table1.\" WHERE Package = 'Local' OR Package IS NULL\");\n\t$secRecs = dbMassData(\"SELECT * FROM \".$db2.\".\".$table2.\" WHERE Package = 'Local' OR Package IS NULL\");\n\t\n\t\n\n\t//print_r($fir...
[ "0.62865627", "0.6264757", "0.6251418", "0.6082616", "0.6032613", "0.6028603", "0.6028603", "0.6028603", "0.6021217", "0.60015815", "0.59932166", "0.5974147", "0.59570485", "0.59310013", "0.5905858", "0.5857635", "0.58183163", "0.58095086", "0.5785111", "0.57785124", "0.57755...
0.7591835
0
Test case for listPastWebinarFiles List Past Webinar Files.
public function testListPastWebinarFiles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_test_file_uploads()\n {\n }", "public function testListPastWebinarPollResults()\n {\n }", "public function testGetFilesList()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n CellsA...
[ "0.58834845", "0.5769307", "0.5767245", "0.57574075", "0.572067", "0.56012434", "0.5557108", "0.5524374", "0.5524374", "0.5524374", "0.54968965", "0.54968965", "0.54968965", "0.54705936", "0.5462373", "0.5406382", "0.5346848", "0.5325001", "0.531251", "0.5304454", "0.5276892"...
0.82050633
0
Test case for listPastWebinarPollResults List Past Webinar Poll Results.
public function testListPastWebinarPollResults() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarQA()\n {\n }", "public function testPastEvents()\n {\n // otherwise test will fail.\n // Other approach is to use fake data or mock it.\n \n $response = $this->json('GET', '/events/expired');\n \n $response\n ...
[ "0.6463519", "0.5745448", "0.54532343", "0.5325194", "0.52149856", "0.5209032", "0.51816463", "0.51735336", "0.51557595", "0.5139043", "0.51316184", "0.5059295", "0.5046634", "0.5028113", "0.501984", "0.4969596", "0.491994", "0.491994", "0.49058336", "0.48983213", "0.4859388"...
0.79743946
0
Test case for listPastWebinarQA List Q&A of Past Webinar.
public function testListPastWebinarQA() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testPastWebinars()\n {\n }", "public function testWebinarPanelists()\n {\n }", "public function testListPastWebinarFiles()\n {\n }", "public function testWebinarPolls()\n {\n }", "public function tes...
[ "0.6955456", "0.59452575", "0.58298326", "0.5821201", "0.5732911", "0.56243193", "0.54987425", "0.54416364", "0.5420459", "0.5414977", "0.54115117", "0.53685975", "0.5187622", "0.5177601", "0.5177601", "0.5174332", "0.51445574", "0.5130628", "0.5130628", "0.51046103", "0.5099...
0.7940479
0
Test case for webinarAbsentees Get Webinar Absentees.
public function testWebinarAbsentees() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testListPastWebinarQA()\n {\n }", "public function testListEnrollmentRequests()\n {\n }", "public function testGetEventsIdSchedulesOut()\n {\n $eventId = '1';\n\n $result = $this->visit('events/' . $eventId ....
[ "0.6012117", "0.5984477", "0.5918694", "0.5873598", "0.58436704", "0.58301497", "0.58196026", "0.5788358", "0.5774703", "0.57724416", "0.5754003", "0.57515645", "0.570997", "0.5703932", "0.5624342", "0.5612756", "0.560048", "0.5572901", "0.5554806", "0.55531824", "0.5505148",...
0.7858616
0
Test case for webinarCreate Create a Webinar.
public function testWebinarCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarRegistrantCreate()\n {\n }", "public function testWebinarPollCreate()\n {\n }", "public function testWebinar()\n {\n }", "public function testWebinarRegistrants()\n {\n }", "public function testWebinarPanelistCreate()\n {\n }", "public function tes...
[ "0.7855212", "0.7379238", "0.69512796", "0.6878894", "0.6584363", "0.6553019", "0.64912003", "0.6440262", "0.6421352", "0.64194024", "0.6349812", "0.63445705", "0.62597454", "0.62102824", "0.61887443", "0.6174561", "0.61369574", "0.6054688", "0.601544", "0.5883184", "0.587968...
0.8172204
0
Test case for webinarDelete Delete a Webinar.
public function testWebinarDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPollDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function deleteSportsVenue($venue);", "public function testDeleteSurvey()\n {\n $survey = Survey::factory()->c...
[ "0.7386751", "0.7297796", "0.71680236", "0.66529924", "0.6622835", "0.6563354", "0.65136284", "0.6496925", "0.6489714", "0.64357275", "0.64357275", "0.637083", "0.63620377", "0.6346963", "0.6310489", "0.6308891", "0.6300885", "0.6295698", "0.6273204", "0.62324136", "0.6232029...
0.8196134
0
Test case for webinarPanelistCreate Add Panelists.
public function testWebinarPanelistCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelists()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function set_panelist() {\n\t\tif (!isset($this->args[0]) || empty($this->args[0])) {\n\t\t\t$this->out('Provide MV user_id...
[ "0.7211089", "0.65043837", "0.6392804", "0.5913536", "0.5587062", "0.5463761", "0.5356804", "0.5312291", "0.5305108", "0.5288998", "0.5263735", "0.5252212", "0.52127165", "0.5202787", "0.52021176", "0.52019876", "0.5184639", "0.51807183", "0.5171748", "0.5163554", "0.51232785...
0.81021476
0
Test case for webinarPanelistDelete Remove a Panelist.
public function testWebinarPanelistDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistCreate()\n {\n }", "public function testRemoveListSuccessfully(): void\n {\n $this->createMailchimpList($list);\n\n $this->delete(\\sprintf('/mailchimp/lists/%s', $list['list_id']));\n\n ...
[ "0.795948", "0.58884895", "0.5749253", "0.5748073", "0.573655", "0.5675471", "0.5661825", "0.5626825", "0.55920637", "0.5565379", "0.5538664", "0.5531006", "0.5487608", "0.5451873", "0.5446417", "0.54163927", "0.5416242", "0.54077244", "0.54077244", "0.54077244", "0.54077244"...
0.7986915
0
Test case for webinarPanelists List Panelists.
public function testWebinarPanelists() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelistCreate()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function testListPastWebinarQA()\n {\n }", "public function testListPastWebinarPollResults()\n {\n }", ...
[ "0.8041716", "0.69889045", "0.68276155", "0.6213921", "0.61039495", "0.60195667", "0.5794682", "0.5651228", "0.563803", "0.5618443", "0.55301744", "0.5524846", "0.5513889", "0.54806244", "0.5478555", "0.5473747", "0.53977513", "0.5363002", "0.5349754", "0.5313243", "0.5302042...
0.8328777
0
Test case for webinarPanelistsDelete Remove Panelists.
public function testWebinarPanelistsDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelistDelete()\n {\n }", "public function testWebinarPanelists()\n {\n }", "public function testWebinarPanelistCreate()\n {\n }", "function action_remove() {\n\t\t\t$data = UTIL::get_post('data');\n\t\t\t$id = (int)$data['rem_id'];\n\t\t\t$table = $data['rem_...
[ "0.80611134", "0.6175651", "0.6084192", "0.5854993", "0.5779039", "0.56939197", "0.5672255", "0.5665499", "0.5657381", "0.56455123", "0.5625484", "0.5580941", "0.5545405", "0.55362356", "0.55231667", "0.5510384", "0.54702806", "0.5467625", "0.5467625", "0.5467625", "0.5467625...
0.83671415
0
Test case for webinarPollCreate Create a Webinar's Poll.
public function testWebinarPollCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPollGet()\n {\n }", "public function testWebinarPollUpdate()\n {\n }", "public function createpollAction(Request $request)\n {\n $poll = new PollImpl();\n $form = $this->createForm(new NewPoll(), $poll);\n\n $form->handleRequest($request);\n ...
[ "0.645826", "0.64233947", "0.6303108", "0.62919855", "0.6287759", "0.6279859", "0.61923283", "0.59656316", "0.59515786", "0.59352744", "0.5929518", "0.59017617", "0.589709", "0.5864389", "0.5771486", "0.5754985", "0.5707631", "0.5687261", "0.5679037", "0.56305504", "0.5621797...
0.7899342
0
Test case for webinarPollDelete Delete a Webinar Poll.
public function testWebinarPollDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deletepoll(){\n \tSiteController::loggedInCheck();\n\n\t\t$pollid = $_POST['pollid'];\n\t\t$poll = Poll::loadById($pollid);\n\t\t$pollAuthorId = $poll->get('userId');\n\t\t$pollAuthor = User::loadById($pollAuthorId);\n\n\t\t//user is the author of the poll, allow delete\n\t\tif($pollAuthor->get(...
[ "0.71641266", "0.66191196", "0.6587096", "0.6559964", "0.64290196", "0.6392854", "0.63748217", "0.6316476", "0.61818117", "0.60412574", "0.59323484", "0.5928612", "0.58898", "0.5859758", "0.5821917", "0.5783073", "0.5772443", "0.57544917", "0.5753902", "0.5753902", "0.5738498...
0.8047244
0
Test case for webinarPollGet Get a Webinar Poll.
public function testWebinarPollGet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testWebinarPollUpdate()\n {\n }", "public function polls_get($pollId = NULL){\n $this->load->model(\"poll\");\n\n if (isset($pollId)) {\n try {\n $poll = $this->poll->getPoll($pollId)...
[ "0.6517212", "0.63763607", "0.63285667", "0.61603045", "0.61146563", "0.5927292", "0.58602315", "0.56228215", "0.54828477", "0.54216975", "0.53326815", "0.5261555", "0.5261327", "0.5234743", "0.5209806", "0.51862484", "0.5137796", "0.51247567", "0.5106876", "0.50816756", "0.5...
0.761019
0
Test case for webinarPollUpdate Update a Webinar Poll.
public function testWebinarPollUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_poll()\n {\n //var_dump::display($_POST);\n @session::init();\n $v_website_id = session::get('session_website_id');\n $v_poll_id = get_post_var('hdn_item_id','');\n $v_poll_name = get_post_var('txt_poll_name');\n $v_p...
[ "0.67058426", "0.6567143", "0.6510409", "0.5973442", "0.59719884", "0.5864462", "0.5863904", "0.58290815", "0.57604766", "0.5751709", "0.57137495", "0.5650021", "0.5637855", "0.56267464", "0.5623237", "0.56209123", "0.56080276", "0.5605678", "0.55975664", "0.5576203", "0.5551...
0.79205805
0
Test case for webinarPolls List a Webinar's Polls.
public function testWebinarPolls() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testGetAllPolls()\n {\n Passport::actingAs(\n factory(\"App\\User\")->create(),\n ['*']\n );\n $polls= factory(\"App\\Poll\",5)->create();\n $response = $this->get('/polls');\n ...
[ "0.7220611", "0.67623955", "0.64286876", "0.6334028", "0.61761254", "0.5999231", "0.58641374", "0.58622104", "0.5815001", "0.5744109", "0.562562", "0.5541564", "0.5434194", "0.54106075", "0.5409291", "0.5376", "0.53354937", "0.53315526", "0.53140426", "0.53073347", "0.5287145...
0.7082206
1
Test case for webinarRegistrantCreate Add a Webinar Registrant.
public function testWebinarRegistrantCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarRegistrants()\n {\n }", "function citrixonline_create_registrant_of_webinar($webinar_id=false, $data = array(), $all_fields_chk = false) \n {\n\t\tif($webinar_id and isset($data['first_name']) and isset($data['last_name']) and isset($data['email']))\n\t\t{\n\t\t\t$params = arr...
[ "0.68164665", "0.68048227", "0.65093935", "0.64443994", "0.6280504", "0.6259114", "0.6228451", "0.6091112", "0.59748995", "0.5923236", "0.58715576", "0.58711356", "0.586229", "0.58319163", "0.58306944", "0.5823281", "0.58220184", "0.5764362", "0.57226545", "0.57079804", "0.56...
0.7710731
0
Test case for webinarRegistrantGet Get a Webinar Registrant.
public function testWebinarRegistrantGet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_registrants_of_webinars($webinar_id=false) \n {\n\t\tif($webinar_id)\n\t\t{\n\t\t\tif(!$this->organizer_key or !$this->access_token)\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t$return_array = array();\n\t\t\t\n\t\t\t$return_array = json_decode($this->make_request(\"https://api.citrixonline.com/G2W/res...
[ "0.68977153", "0.6843426", "0.6761253", "0.6463811", "0.64311665", "0.6392972", "0.63280797", "0.62443304", "0.60247093", "0.5908627", "0.57308906", "0.55995554", "0.5596293", "0.558569", "0.5451014", "0.54231215", "0.53971064", "0.53788775", "0.53557867", "0.5348735", "0.533...
0.7519076
0
Test case for webinarRegistrantQuestionUpdate Update Registration Questions.
public function testWebinarRegistrantQuestionUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateSurveyQuestion0()\n {\n }", "public function testUpdateSurveyQuestion0()\n {\n }", "public function testWebinarRegistrantsQuestionsGet()\n {\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function testUpdateSurveyQuestionChoice0...
[ "0.6326959", "0.6326959", "0.6215054", "0.6106913", "0.5868318", "0.5868318", "0.5843494", "0.58333194", "0.5764647", "0.5714424", "0.5704338", "0.570071", "0.570071", "0.56935734", "0.5648956", "0.5614041", "0.5593699", "0.5581167", "0.558031", "0.5559604", "0.5554796", "0...
0.81059843
0
Test case for webinarRegistrantStatus Update Webinar Registrant Status.
public function testWebinarRegistrantStatus() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_organiser_status(){\r\n\t\t$this->organiser_model->update_organiser_status($_POST['status'],$_POST['organiser_id']);\r\n\t\t$this->send_status_email($_POST['status'],$_POST['organiser_id']);\r\n\t\techo \"1\";exit;\r\n\t}", "public function testWebinarUpdate()\n {\n }", "public function t...
[ "0.61954045", "0.596753", "0.5939235", "0.59271204", "0.58863634", "0.58448845", "0.5814457", "0.5804797", "0.573674", "0.55866015", "0.5571828", "0.554309", "0.5540145", "0.55377865", "0.5517234", "0.5506369", "0.54942244", "0.5482305", "0.5469329", "0.5466056", "0.54422605"...
0.7310263
0
Test case for webinarRegistrants List Webinar Registrants.
public function testWebinarRegistrants() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_registrants_of_webinars($webinar_id=false) \n {\n\t\tif($webinar_id)\n\t\t{\n\t\t\tif(!$this->organizer_key or !$this->access_token)\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t$return_array = array();\n\t\t\t\n\t\t\t$return_array = json_decode($this->make_request(\"https://api.citrixonline.com/G2W/res...
[ "0.712533", "0.6706353", "0.65471625", "0.63244635", "0.60663444", "0.59959614", "0.5994309", "0.5917624", "0.5810444", "0.57461953", "0.5665831", "0.5652421", "0.56106544", "0.5591197", "0.5565672", "0.5482361", "0.54760706", "0.5439773", "0.54333013", "0.543098", "0.5406093...
0.72998947
0
Test case for webinarRegistrantsQuestionsGet List Registration Questions.
public function testWebinarRegistrantsQuestionsGet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registration_questions() {\n\t\t// return $this->get_registration_token_list();\n\t\t$category = Category::with('questions')->where('name', 'registration')->first();\n\n\t\tif($this->categoryHasLessThanFiveQuestions($category)) {\n\t\t\treturn response()->json(['status' => false, 'code' => 200, 'me...
[ "0.7154707", "0.60555196", "0.60346353", "0.5704522", "0.5638833", "0.5632243", "0.5621794", "0.5526942", "0.5455713", "0.54485816", "0.5391416", "0.53890324", "0.53485394", "0.53445524", "0.53413343", "0.53380704", "0.5323038", "0.5306515", "0.5293291", "0.5253302", "0.52309...
0.7223803
0
Test case for webinarStatus Update Webinar Status.
public function testWebinarStatus() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarUpdate()\n {\n }", "public function testWebinarPollUpdate()\n {\n }", "public function testWebinarRegistrantStatus()\n {\n }", "public function update_status();", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t\n\t\tif(!empty($dat...
[ "0.7402796", "0.7066509", "0.6592195", "0.65656424", "0.614286", "0.6069463", "0.6058696", "0.59344006", "0.5911069", "0.5883186", "0.5882107", "0.58265615", "0.5811445", "0.5768166", "0.5738013", "0.5712161", "0.569947", "0.568407", "0.56723994", "0.56482786", "0.5633261", ...
0.7082255
1
Test case for webinarUpdate Update a Webinar.
public function testWebinarUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPollUpdate()\n {\n }", "public function testWebinarRegistrantQuestionUpdate()\n {\n }", "public function update($meeting)\n {\n\n }", "public function test_update() {\n global $DB;\n\n self::setAdminUser();\n $this->resetAfterTest(true);\n\n ...
[ "0.73612994", "0.6821884", "0.6562233", "0.6452065", "0.64265007", "0.6362201", "0.6313415", "0.6226509", "0.6219833", "0.60943675", "0.6045985", "0.6031974", "0.6031974", "0.6027522", "0.5991147", "0.5972692", "0.59578246", "0.59480345", "0.59453034", "0.59413856", "0.592457...
0.8108941
0
Test case for webinars List Webinars.
public function testWebinars() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelists()\n {\n }", "public function testListPastWebinarQA()\n {\n }", "public function list_wilayah()\n\t{\n\t\tif($this->is_login){\n\t\t\t$products = $this->M_region->getAll();\n\t\t\t// Set Response\n\t\t\t$this->response_code = 200;\n\t\t\t$this->response['status']...
[ "0.635775", "0.6300158", "0.6266826", "0.61853427", "0.6053846", "0.5991229", "0.59525377", "0.59223324", "0.5878913", "0.5813563", "0.5790048", "0.57246953", "0.5714969", "0.5712513", "0.56930894", "0.5674928", "0.5632804", "0.5627633", "0.5627321", "0.56119186", "0.559497",...
0.7002258
0
Test for Directory::factory() The directory doesn't exist. Throws Kaili\DirectoryException because the provided directory doesn't exist.
public function test_factory_not_exist() { Directory::factory(ROOT.DS.'test_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function should_throw_if_trying_to_build_on_non_existing_directory(): void\n {\n $this->expectException(\\InvalidArgumentException::class);\n new DirectorySnapshot(__DIR__ . '/not-existing');\n }", "private function ensureDirectory() {\n\t\tif (!is_dir($this -> directory)) {\n\t\t\tif ...
[ "0.7088399", "0.6924278", "0.6888639", "0.68042946", "0.6631374", "0.6572095", "0.6568139", "0.6549179", "0.64917636", "0.6464703", "0.64470893", "0.64444333", "0.6375025", "0.63464355", "0.63353115", "0.63278794", "0.6325423", "0.6319147", "0.6303984", "0.6292826", "0.626997...
0.82290375
0
Test for Directory::create() The Directory already exist. Throws Exception because provided path is an already existent Directory
public function test_create_exists() { Directory::create(ROOT.DS.'application'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDirectoryIfNonExistent() {\n if (! file_exists($this->path)) {\n mkdir($this->path);\n }\n }", "public function testExists() {\n $testDirName = self::TEST_DIR . '/testExists';\n\n $handle = (new Directory($testDirName));\n\n mkdir($t...
[ "0.803957", "0.738031", "0.7285328", "0.7276571", "0.7262561", "0.7183224", "0.71716", "0.705012", "0.70488226", "0.70256615", "0.69991064", "0.69938815", "0.6983108", "0.6961843", "0.69514316", "0.6939701", "0.6902881", "0.68776363", "0.6841167", "0.68147177", "0.68039656", ...
0.74785715
1
Test for Directory::rename() Create a new directory named test_dir and renames it as test_new_dir. At the end of the test, remove the created directory.
public function test_rename() { $object = Directory::create(ROOT.DS.'test_dir'); $object->rename('test_new_dir'); $this->assertEquals($object->get_base_name(), 'test_new_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_rename_same_name()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->rename('test_dir');\n $this->assertEquals($object->get_base_name(), 'test_dir');\n }", "public function testMoveDirectoryMovesEntireDirectoryAndOverwrites()\n {\n mkdir(s...
[ "0.7675573", "0.6942143", "0.6803566", "0.66557056", "0.6410179", "0.63514674", "0.63316065", "0.6303983", "0.62753636", "0.6271949", "0.6264431", "0.6144328", "0.6107304", "0.6092823", "0.60601956", "0.6049897", "0.6024232", "0.60035455", "0.59846485", "0.59535265", "0.59388...
0.8054311
0
Test for Directory::rename() Create a new Directory named test_dir and renames it with the same name. At the end of the test, remove the created directory.
public function test_rename_same_name() { $object = Directory::create(ROOT.DS.'test_dir'); $object->rename('test_dir'); $this->assertEquals($object->get_base_name(), 'test_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_rename()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->rename('test_new_dir');\n $this->assertEquals($object->get_base_name(), 'test_new_dir');\n }", "public function testMoveDirectoryMovesEntireDirectoryAndOverwrites()\n {\n mkdir(sel...
[ "0.8073711", "0.69530237", "0.6793304", "0.67131215", "0.66003954", "0.63539195", "0.6330553", "0.62984866", "0.6267685", "0.6255804", "0.6138651", "0.61358964", "0.61334026", "0.609102", "0.6087658", "0.597927", "0.59581673", "0.5946811", "0.59413356", "0.59262115", "0.59253...
0.78430563
1
Test for Directory::move() Create the Directory test_dir in [ROOT] and moves it to [SYSTEM] At the end of the test, remove the moved directory.
public function test_move() { $object = Directory::create(ROOT.DS.'test_dir'); $object->move(SYSTEM); $this->assertTrue(is_dir(SYSTEM.DS.'test_dir')); $this->assertFalse(is_dir(ROOT.DS.'test_dir')); $this->assertEquals($object->get_path(), SYSTEM.DS.'test_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_move_directory_exists()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(ROOT, false);\n }", "public function testMoveDirectoryMovesEntireDirectory()\n {\n mkdir(self::$temp.DS.'tmp2', 0777, true);\n file_put_contents(self::$temp.DS....
[ "0.80949366", "0.7867393", "0.76190865", "0.7546802", "0.73030376", "0.7230169", "0.7162468", "0.6590736", "0.6350258", "0.6209349", "0.6183593", "0.6081983", "0.60330856", "0.5999443", "0.59931886", "0.5987112", "0.5961271", "0.59227955", "0.59041375", "0.5877521", "0.584598...
0.84177864
0
Test for Directory::move() Attempts to move [ROOT]/test.txt to [ROOT] with overwriting disabled Throws \Kaili\DirectoryException because Directory alredy exists
public function test_move_directory_exists() { $object = Directory::create(ROOT.DS.'test_dir'); $object->move(ROOT, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_move_not_exists_dir()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(ROOT.DS.'not_exist');\n }", "public function test_move()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(SYSTEM);\n $this->assertTru...
[ "0.8364826", "0.8341061", "0.8054002", "0.80286586", "0.78115845", "0.7408394", "0.7035016", "0.6758503", "0.66618764", "0.6528062", "0.6508351", "0.6483764", "0.6476313", "0.64304525", "0.6402691", "0.640205", "0.62653875", "0.62580246", "0.6214017", "0.6189024", "0.615714",...
0.84916425
0
Test for Directory::move() Attempts to move [ROOT]/index.php to [ROOT]/not_exist Throws \InvalidArgumentException because provided path doesn't exist
public function test_move_not_exists_dir() { $object = Directory::create(ROOT.DS.'test_dir'); $object->move(ROOT.DS.'not_exist'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_move_directory_exists()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(ROOT, false);\n }", "public function test_move()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(SYSTEM);\n $this->assertTrue(is_d...
[ "0.77261436", "0.7507489", "0.7113042", "0.6941977", "0.6908604", "0.67369854", "0.6474342", "0.6204443", "0.6170524", "0.6140496", "0.6086301", "0.6080597", "0.6074179", "0.60411793", "0.5988749", "0.5920087", "0.59006655", "0.58893067", "0.58556426", "0.58260906", "0.581966...
0.798785
0
Test for Directory::remove() Create and remove [ROOT]/test_dir
public function test_remove() { $path = ROOT.DS.'test_dir'; $object = Directory::create($path); $object->remove($path); $this->assertFalse(is_dir($path)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRemoveDirectory()\n {\n $directory = vfsStream::url('foo');\n $method = $this->makeMethodPublic('empty_directory');\n $method->invokeArgs($this->testModel, [$directory, true]);\n\n $this->assertFileNotExists(vfsStream::url('foo'));\n }", "public function test...
[ "0.7788672", "0.76651603", "0.7491406", "0.73429984", "0.73013794", "0.71828717", "0.715201", "0.6991792", "0.69013095", "0.6786815", "0.6779039", "0.6778822", "0.66575205", "0.66531", "0.65665174", "0.65494186", "0.6527012", "0.6483709", "0.6471884", "0.6419089", "0.6408338"...
0.8669114
0
Test for Directory::scan() Scan the content of ROOT directory
public function test_scan() { $content = array('.','..','application','.git','.gitignore','.htaccess','index.php','nbproject','README','system'); $object = Directory::factory(ROOT); $res = $object->scan(Directory::SORT_ASC); $output = array(); foreach($res as $f) $ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_scan_directories()\n {\n $content = array('.','..','application','.git','nbproject','system');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS);\n \n $this->assertEquals(count($content), count($res));\...
[ "0.7979879", "0.77180135", "0.7239821", "0.71102506", "0.68057096", "0.676981", "0.65207386", "0.64884", "0.6479395", "0.639054", "0.6378024", "0.6366621", "0.63291353", "0.62446964", "0.61983824", "0.61747074", "0.6162355", "0.6128189", "0.6079859", "0.6079535", "0.6075999",...
0.77456445
1
Test for Directory::scan() Scan only the directories inside ROOT directory
public function test_scan_directories() { $content = array('.','..','application','.git','nbproject','system'); $object = Directory::factory(ROOT); $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS); $this->assertEquals(count($content), count($res)); for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function scanFolder()\n {\n return scandir($this->currentPath);\n }", "function rScanDir($scanMe) {\r\n\t\tglobal $path, $tmpPath, $cur_folder, $tags2;\r\n\t\tforeach($scanMe as $folder)\r\n\t\t{\r\n\t\t\tif(is_dir($path.$tmpPath.$folder) && $folder !=\".\" && $folder !=\"..\")\r\n\t\t\t{\r\...
[ "0.7312299", "0.7297761", "0.7171603", "0.71259856", "0.7107098", "0.70851773", "0.6768123", "0.65986484", "0.6514543", "0.63404167", "0.63298833", "0.63052875", "0.6296188", "0.62949747", "0.6283482", "0.6276984", "0.6272302", "0.6215177", "0.6211419", "0.61895525", "0.61505...
0.7933779
0
Test for Directory::scan() Scan only the files inside ROOT directory
public function test_scan_files() { $content = array('.gitignore','.htaccess','index.php','README'); $object = Directory::factory(ROOT); $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_FILES); $this->assertEquals(count($content), count($res)); foreach($res ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_scan_directories()\n {\n $content = array('.','..','application','.git','nbproject','system');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS);\n \n $this->assertEquals(count($content), count($res));\...
[ "0.7491994", "0.7418604", "0.7250043", "0.71842724", "0.7012226", "0.688901", "0.6712443", "0.66900235", "0.6572419", "0.65611196", "0.6556684", "0.6530685", "0.65249497", "0.64954686", "0.6491414", "0.64674044", "0.64471996", "0.6423127", "0.64098424", "0.6407863", "0.634250...
0.7820266
0
Test for Directory::search() Search file 'index.php' inside the ROOT directory
public function test_search() { $object = Directory::factory(ROOT); $res = $object->search('/(index.php|.htaccess)/'); $this->assertArrayHasKey(ROOT.DS.'index.php', $res); $this->assertArrayHasKey(ROOT.DS.'.htaccess', $res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_search_by_name()\n {\n $object = Directory::factory(ROOT);\n $res = $object->search_by_name('index.php');\n \n $this->assertArrayHasKey(ROOT.DS.'index.php', $res);\n }", "public function test_search_by_extension()\n {\n $object = Directory::factory...
[ "0.7856435", "0.7526942", "0.6122159", "0.61114746", "0.60262454", "0.59891254", "0.58569324", "0.5847987", "0.582122", "0.58177185", "0.58087236", "0.5745908", "0.57202494", "0.5702491", "0.5669456", "0.5634786", "0.56143713", "0.5592482", "0.55711865", "0.5551054", "0.55406...
0.8318728
0
Test for Directory::search_by_name() Search file 'index.php' inside the ROOT directory
public function test_search_by_name() { $object = Directory::factory(ROOT); $res = $object->search_by_name('index.php'); $this->assertArrayHasKey(ROOT.DS.'index.php', $res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_search()\n {\n $object = Directory::factory(ROOT);\n $res = $object->search('/(index.php|.htaccess)/');\n \n $this->assertArrayHasKey(ROOT.DS.'index.php', $res);\n $this->assertArrayHasKey(ROOT.DS.'.htaccess', $res);\n }", "public function test_search...
[ "0.7803914", "0.74054193", "0.6096329", "0.59778947", "0.59626746", "0.5898367", "0.58588976", "0.5772092", "0.57219416", "0.56567097", "0.56024987", "0.55696607", "0.5523678", "0.55153424", "0.54849744", "0.5467967", "0.5423201", "0.5414956", "0.53814286", "0.5311357", "0.52...
0.8326893
0
Test for Directory::search_by_extension() Search files with 'php' extension inside the ROOT directory
public function test_search_by_extension() { $object = Directory::factory(ROOT); $res = $object->search_by_extension(array('php')); $this->assertArrayHasKey(ROOT.DS.'index.php', $res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _findExtensionFiles() {\r\n\t\r\n\t\t\tif (empty($this->_extensionsPath)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\t//make sure we only get the package files in that directory\r\n\t\t\t$zipFiles = JFolder::files($this->_extensionsPath, '\\.zip$', false, false);\r\n\t\t\t$gzFiles = JFolder::file...
[ "0.6378908", "0.62099826", "0.61495525", "0.6130767", "0.6104926", "0.6008885", "0.59576637", "0.5952251", "0.593186", "0.59039265", "0.58814347", "0.58732206", "0.5866185", "0.5841527", "0.584152", "0.58406514", "0.57603306", "0.5739005", "0.57352954", "0.572393", "0.5692", ...
0.84767115
0
Set the attributes for the table cell containing the form button(s)
public function set_button_attrs($button_attrs) { if (is_array($button_attrs)) { $this->button_cell_attrs = $button_attrs; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function inputAttributes()\n {\n $this->input_attributes['name'] = $this->name;\n $this->input_attributes['type'] = 'submit';\n $this->input_attributes['value'] = $this->params['title'];\n }", "function formProperties() {\n\t\tglobal $l_we_class;\n\n\t\t// Create table\n\t\t$...
[ "0.5834517", "0.5720483", "0.57074565", "0.55786395", "0.5570131", "0.5531497", "0.5462197", "0.5442811", "0.5442811", "0.5427319", "0.53662515", "0.5363505", "0.5363505", "0.53543967", "0.5331065", "0.52888775", "0.527464", "0.5266644", "0.52394706", "0.52268016", "0.5225646...
0.64959556
0
Set a row attribute
public function set_row_attr($row, $attr_name, $attr_val) { $row = (int)$row; $attr_name = (string)$attr_name; $attr_val = (string)$attr_val; if ($attr_name == '' || $attr_val == '') { return false; } if (isset($this->row_attrs[$row][$attr_name])) { $this->row_attrs[$row][$attr_name] .= ' ' . $attr_val; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTrTdAttr ($attr, $row=null) {\n if (is_numeric ($row))\n $this->_setAttr ($attr, $this->trtdAttr[$row]);\n else\n $this->_setAttr ($attr, $this->trtdAttr[]);\n }", "public function setRow($row)\n {\n $this->row = $row;\n }", "pu...
[ "0.7184818", "0.69530857", "0.6781479", "0.67430913", "0.65449625", "0.6439724", "0.64035505", "0.6400028", "0.6385595", "0.6361818", "0.6347521", "0.63459355", "0.63459355", "0.634324", "0.6320215", "0.6309764", "0.62964934", "0.6223196", "0.6202105", "0.6145299", "0.6120304...
0.71445227
1
End a fieldset in the form
public function end_fieldset() { $fs_attrs = array('marker' => 'end'); $fieldset = new GenElement('fieldset', '', $fs_attrs); array_push($this->form_elements, array($fieldset->render(1), 0, 'fieldset')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function end_fieldset()\n\t{\n\t\tif( $this->has_fieldset )\n\t\t\t$this->buffer.= '</fieldset>';\n\t\t$this->has_fieldset = false;\n\t}", "public static function fieldset_close() {\n\t\t\treturn '</fieldset>';\n\t\t}", "static function closeFieldset()\n {\n echo '</ul>';\n echo '</fiel...
[ "0.8683747", "0.7981708", "0.79485416", "0.7723414", "0.72680134", "0.7240373", "0.7168367", "0.7066881", "0.6913539", "0.6906262", "0.66773194", "0.66431904", "0.66132414", "0.65945315", "0.65435416", "0.651934", "0.6514329", "0.6514329", "0.65118724", "0.6454397", "0.640488...
0.88671374
0
Set alternating row class "alt"
public function set_alt_rows() { $this->alt_rows = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fancy_altrows($rows) {\r\n\tif(is_array($rows)) {\r\n\t\t$i = 0;\r\n\t\tforeach($rows as $text) { $i++; ?>\r\n\t\t\t\t\t<li class=\"<?php tablealt($i); ?>\"><?php echo $text; ?></li>\r\n<?php\r\n\t\t}\r\n\t}\r\n}", "function boxGetAltRowStyle($i, $classonly = false) {\n\t\tif ($i % 2 == 0)\n\t\t\t$ret =...
[ "0.65590525", "0.64634025", "0.6176579", "0.60998696", "0.5913443", "0.591332", "0.5154975", "0.51529646", "0.514892", "0.51306105", "0.50625557", "0.49814966", "0.4877604", "0.48713368", "0.48532298", "0.48380193", "0.47815675", "0.47287244", "0.4720446", "0.46988484", "0.46...
0.75887257
0
Turn off xsl transformation
public function no_xsl() { $this->xsl_template = ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transformToXmlReturnsTransformedXml(): void\n {\n $this->baseXsltProcessor->returns(['transformToXml' => '<foo>']);\n assertThat($this->xslProcessor->toXML(), equals('<foo>'));\n }", "public function doXHTML_cleaning() {}", "protected function transform()\n {\n // ...
[ "0.58941406", "0.56895256", "0.5678719", "0.5654335", "0.55474824", "0.5529772", "0.552298", "0.5462376", "0.54589814", "0.5355058", "0.5347424", "0.53075933", "0.5186075", "0.511506", "0.5105281", "0.50885534", "0.50488853", "0.5037611", "0.5032306", "0.5014301", "0.49986935...
0.7720259
0
Creates a new Uptime check configuration. (uptimeCheckConfigs.create)
public function create($parent, UptimeCheckConfig $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], UptimeCheckConfig::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CreateUptimeCheckConfig(\\Google\\Cloud\\Monitoring\\V3\\CreateUptimeCheckConfigRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.UptimeCheckService/CreateUptimeCheckConfig',\n $argument,\n ['\\Google\\Cloud\\Monito...
[ "0.7086295", "0.66852397", "0.5832289", "0.58181393", "0.5645919", "0.5617374", "0.55739444", "0.53473675", "0.51100296", "0.5091077", "0.49437207", "0.47102794", "0.46942794", "0.45402044", "0.44555312", "0.44000417", "0.43998283", "0.4356518", "0.43465766", "0.43297982", "0...
0.80216384
0
Gets a single Uptime check configuration. (uptimeCheckConfigs.get)
public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], UptimeCheckConfig::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUptimeCheckConfig()\n {\n return $this->uptime_check_config;\n }", "public function GetUptimeCheckConfig(\\Google\\Cloud\\Monitoring\\V3\\GetUptimeCheckConfigRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.Upt...
[ "0.78731394", "0.6626676", "0.5898211", "0.5777897", "0.5675747", "0.56366116", "0.55743366", "0.5553726", "0.5539036", "0.5508878", "0.54915833", "0.54881966", "0.5483576", "0.5481618", "0.54761094", "0.5475268", "0.545728", "0.5454844", "0.5446216", "0.54440486", "0.5430929...
0.79686177
0
Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations). (uptimeCheckConfigs.listProjectsUptimeCheckConfigs)
public function listProjectsUptimeCheckConfigs($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListUptimeCheckConfigsResponse::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ListUptimeCheckConfigs(\\Google\\Cloud\\Monitoring\\V3\\ListUptimeCheckConfigsRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.UptimeCheckService/ListUptimeCheckConfigs',\n $argument,\n ['\\Google\\Cloud\\Monitorin...
[ "0.6722513", "0.5504905", "0.53350157", "0.52022237", "0.5178261", "0.49790195", "0.49472752", "0.47796518", "0.4686594", "0.4643526", "0.46052107", "0.4591228", "0.45873624", "0.4557695", "0.4524556", "0.45164093", "0.44967884", "0.4488663", "0.44674298", "0.44586378", "0.44...
0.7945477
0
Updates an Uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via updateMask. Returns the updated configuration. (uptimeCheckConfigs.patch)
public function patch($name, UptimeCheckConfig $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], UptimeCheckConfig::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function UpdateUptimeCheckConfig(\\Google\\Cloud\\Monitoring\\V3\\UpdateUptimeCheckConfigRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.UptimeCheckService/UpdateUptimeCheckConfig',\n $argument,\n ['\\Google\\Cloud\\Monito...
[ "0.6711495", "0.66990566", "0.5914926", "0.582598", "0.5785443", "0.56012374", "0.5382435", "0.49926636", "0.49801952", "0.48861706", "0.48679906", "0.48537675", "0.48073092", "0.47214732", "0.47213593", "0.46373323", "0.46329278", "0.46152425", "0.45887405", "0.45285544", "0...
0.77980983
0
test getting WP profile no relation
public function testGetProfileWPNoRel() { $url = "http://127.0.0.1/app_test.php/profile/view/natasha-romanov"; $username = 'profileBucky@gmail.com'; $password = 'password'; $response = \Httpful\Request::get($url)->basicAuth($username, $password)->send(); $this->as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWPGetProfileOtherUserNoRel()\r\n {\r\n $url = \"http://127.0.0.1/app_test.php/profile/view/bucky-barnes\";\r\n\r\n $username = 'profileNatasha@gmail.com';\r\n $password = 'password';\r\n\r\n $response = \\Httpful\\Request::get($url)->basicAuth($username, $password...
[ "0.7313183", "0.67644936", "0.6726738", "0.6717151", "0.6700389", "0.6694808", "0.65982246", "0.6515449", "0.6451861", "0.64039105", "0.63828796", "0.6347496", "0.633259", "0.62712973", "0.6269025", "0.6254397", "0.62381446", "0.62373203", "0.62109494", "0.6209512", "0.618217...
0.7236867
1
tests WP getting other user profile
public function testWPGetProfileOtherUserNoRel() { $url = "http://127.0.0.1/app_test.php/profile/view/bucky-barnes"; $username = 'profileNatasha@gmail.com'; $password = 'password'; $response = \Httpful\Request::get($url)->basicAuth($username, $password)->send(); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDestiny2GetProfile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "abstract protected function getUserProfile();", "public function testWPGetProfileOtherUserPatientRel()\r\n {\r\n $url = \"http://127.0.0.1/app_test.php/profile/...
[ "0.7305726", "0.71837515", "0.7180283", "0.6933108", "0.68574077", "0.68501556", "0.677595", "0.6709536", "0.6694701", "0.6604053", "0.65933204", "0.6558116", "0.6557394", "0.65279", "0.63662887", "0.6222691", "0.62009585", "0.61989343", "0.61876166", "0.6178911", "0.61762846...
0.77301717
0
test WP getting patient profile
public function testWPGetProfileOtherUserPatientRel() { $url = "http://127.0.0.1/app_test.php/profile/view/bucky-barnes"; $username = 'profileVision@gmail.com'; $password = 'password'; $response = \Httpful\Request::get($url)->basicAuth($username, $password)->send(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProfilePersonalInfo()\n {\n // Create a user with the username 'johndoe'\n $user = factory(User::class)->create(['username'=>'johndoe']);\n // Add a profile record to the user\n $profile = factory(Profile::class)->make(['country_id'=>4]);\n // Save the user...
[ "0.66872036", "0.6682553", "0.66458416", "0.6529471", "0.6407498", "0.640187", "0.6374029", "0.636708", "0.63409925", "0.625468", "0.6236356", "0.62344956", "0.62273055", "0.622525", "0.62183315", "0.6185998", "0.61758316", "0.60946333", "0.6046463", "0.59812826", "0.59422874...
0.7107858
0
sg_map_meta_cap function to add Meta Capability Handling.
public function sg_map_meta_cap( $caps, $cap, $user_id, $args ) { $capability_type = 'small_group'; if ( 'edit_' . $capability_type == $cap || 'delete_' . $capability_type == $cap || 'read_' . $capability_type == $cap ) { $post = get_post( $args[0] ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMapMetaCap($metaCap = true){\n\t\t$this->mapMetaCap = $metaCap;\n\t}", "function map_meta_cap($cap, $user_id, ...$args)\n {\n }", "function erp_map_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {\n return apply_filters( 'erp_map_meta_caps', $caps, $cap, $use...
[ "0.7113233", "0.68950325", "0.68331647", "0.6664682", "0.6118787", "0.6091864", "0.5811714", "0.58066976", "0.5763529", "0.56482375", "0.56384635", "0.55844116", "0.5581189", "0.55544406", "0.55460584", "0.5411758", "0.5384209", "0.5345685", "0.51998556", "0.5140477", "0.5113...
0.7116632
0
Creates a demand object from settings
public function createFromSettings(array $settings) { /** @var ReservationDemand $demand */ $demand = $this->objectManager->get(static::DEMAND_CLASS); if ($demand instanceof PeriodAwareDemandInterface) { $this->setPeriodConstraints($demand, $settings); } $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createDemandFromSettings ($settings) {\n\t\t/** @var PlaceDemand $demand */\n\t\t$demand = $this->objectManager->get('DWenzel\\\\Ajaxmap\\\\Domain\\\\Model\\\\Dto\\\\PlaceDemand');\n\t\tif (isset($settings['orderBy']) && isset($settings['orderDirection'])) {\n\t\t\t$demand->setOrder($settings['orde...
[ "0.7201751", "0.7110685", "0.6074803", "0.5508471", "0.53642505", "0.535256", "0.535256", "0.535256", "0.5309225", "0.5165147", "0.5156386", "0.5149077", "0.5134196", "0.5104301", "0.5065539", "0.50389946", "0.50341195", "0.502032", "0.49730998", "0.49667892", "0.4958916", ...
0.714715
1
TODO: Implement deleteStatement() method.
public function deleteStatement() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function getDeleteStatement();", "public function walkDeleteStatement(AST\\DeleteStatement $deleteStatement): void;", "public function testDeleteStmt()\n {\n $delete = $this->getConnection()\n ->delete()\n ('dummy_posts')\n ('blog_id = :id');\n ...
[ "0.8400239", "0.70125234", "0.6945524", "0.6887968", "0.6805836", "0.67936546", "0.6769431", "0.67364323", "0.66977626", "0.66763014", "0.6607683", "0.6605072", "0.65323144", "0.65315753", "0.64970666", "0.6473081", "0.64414334", "0.6420754", "0.64002836", "0.63570464", "0.63...
0.8804365
0
Parse transaction redirect success URL
public function validateSuccessURL() { return $this->validateResultURL(self::SUCCESS_STATUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSuccessUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "protected function getSuccessLocation() {\n\t\treturn $_SERVER['HTTP_REFERER'];\n\...
[ "0.71170336", "0.629864", "0.629864", "0.629864", "0.629864", "0.629864", "0.62781817", "0.62279457", "0.6156074", "0.61440563", "0.6119394", "0.6098481", "0.6061107", "0.60521966", "0.6027535", "0.5992193", "0.5902258", "0.5846273", "0.5846273", "0.5832094", "0.58214056", ...
0.66811
1
Parse transaction redirect failed URL
public function validateFailedURL() { return $this->validateResultURL(self::FAILED_STATUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parseURLRequest() {\n\t\t# Redirects the user upon success and redirects to following error-messages upon errors:\n\t\t# 201 - Missing url-entry for the given ID\n\n\t\t$this->parseCustomURL();\t# Let's see if there's an custom-url we gotten our hands on\n\n\t\t$urlID = $this->baseToInt($_GET['u']...
[ "0.64620984", "0.6188506", "0.6073079", "0.60307777", "0.5978192", "0.5978192", "0.5978192", "0.5978192", "0.5978192", "0.59565467", "0.5854566", "0.5853595", "0.58483976", "0.58380926", "0.5820106", "0.58071005", "0.5725522", "0.56887007", "0.56564033", "0.563576", "0.559916...
0.62009406
1
Parse transaction redirect canceled URL
public function validateCanceledURL() { return $this->validateResultURL(self::CANCELED_STATUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRedirectUrl(): string;", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "protected function getRedirectUrl()\n {\n return null;\n }",...
[ "0.58109176", "0.57798684", "0.57798684", "0.57798684", "0.57798684", "0.57798684", "0.5774087", "0.5745655", "0.5706383", "0.5702832", "0.57019633", "0.5668898", "0.5656144", "0.5628209", "0.56242675", "0.55989325", "0.5575704", "0.5551249", "0.5544042", "0.55298066", "0.551...
0.6333161
0
bridges Get form bridge instance for ADT
public function getFormBridgeForInstance(ilADT $a_adt) { $class = $this->initTypeClass($a_adt->getType(), "FormBridge"); return new $class($a_adt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getBridge() {}", "private function get_bridge()\n\t{\n\t\treturn $this->m_bridge;\n\t}", "function getBridgeModel() {\n return $this->bridgeModel;\n }", "public function getDBBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"DBBridg...
[ "0.6226911", "0.6221184", "0.60709274", "0.5868567", "0.5578884", "0.5485785", "0.5461808", "0.5460027", "0.5388528", "0.53154093", "0.52404904", "0.5183814", "0.5161728", "0.5161465", "0.5150575", "0.5140566", "0.5127729", "0.509111", "0.50733495", "0.5071981", "0.50525117",...
0.7022916
0
Get DB bridge instance for ADT
public function getDBBridgeForInstance(ilADT $a_adt) { $class = $this->initTypeClass($a_adt->getType(), "DBBridge"); return new $class($a_adt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveRecordBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"ActiveRecordBridge\");\t\t\r\n\t\treturn new $class($a_adt);\r\n\t}", "private function getDBA() {\n\t\tif ( $this->dba != null ) {\n\t\t\treturn $this->dba;\n\t\t}\n\t\tswitch ( $this-...
[ "0.7011467", "0.66538334", "0.6570967", "0.6403578", "0.63902646", "0.6369858", "0.6368706", "0.62863606", "0.625861", "0.62197703", "0.61985743", "0.619759", "0.61788714", "0.61603236", "0.61416847", "0.61349", "0.6133471", "0.61327225", "0.61229753", "0.6114849", "0.6108568...
0.79595876
0
Get presentation bridge instance for ADT
public function getPresentationBridgeForInstance(ilADT $a_adt) { $class = $this->initTypeClass($a_adt->getType(), "PresentationBridge"); return new $class($a_adt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveRecordBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"ActiveRecordBridge\");\t\t\r\n\t\treturn new $class($a_adt);\r\n\t}", "public function getDBBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType()...
[ "0.6440561", "0.6297715", "0.6102629", "0.6033755", "0.5811633", "0.57800436", "0.5729517", "0.56088495", "0.52797216", "0.5263347", "0.5245963", "0.51340455", "0.5122018", "0.51195294", "0.5107162", "0.51070225", "0.5100116", "0.50740755", "0.5073153", "0.5071852", "0.507106...
0.78331214
0
Get search bridge instance for ADT definition
public function getSearchBridgeForDefinitionInstance(ilADTDefinition $a_adt_def, $a_range = true, $a_multi = true) { if($a_range) { try { $class = $this->initTypeClass($a_adt_def->getType(), "SearchBridgeRange"); return new $class($a_adt_def); } catch(Exception $e) { } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveRecordBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"ActiveRecordBridge\");\t\t\r\n\t\treturn new $class($a_adt);\r\n\t}", "public function getDBBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType()...
[ "0.5672799", "0.55703974", "0.5428149", "0.52475214", "0.51427054", "0.5131958", "0.51317525", "0.5120147", "0.5120147", "0.5118711", "0.51143926", "0.51143926", "0.510476", "0.50948733", "0.5080495", "0.50742376", "0.5065063", "0.5056488", "0.50546724", "0.5035494", "0.50160...
0.66711986
0
Init active record by type
public static function initActiveRecordByType() { require_once "Services/ADT/classes/ActiveRecord/class.ilADTActiveRecordByType.php"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init(string $type = \"PDO\") {\n $this -> __createAdapter($type, static::$table);\n }", "public function __construct(){\n\n\t\t$this->types_model = new Types();\n\t}", "protected function initDatabaseRecord() {}", "private function init() {\r\n settype($this->id, \"int\"...
[ "0.71986485", "0.6576926", "0.6419527", "0.62899625", "0.62655044", "0.6261549", "0.62429035", "0.6198593", "0.6197844", "0.61652935", "0.6157843", "0.6111789", "0.6106766", "0.60818005", "0.6047299", "0.60472363", "0.6037188", "0.60242766", "0.6020157", "0.6000934", "0.59628...
0.75186765
0
Test that pagination parameters are passed to the endpoint.
public function testGetWithPagination() { $expected_count = 2; $results_1 = self::$api->getAll([], 0, $expected_count); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertCount($expected_count, $results_1); $expected_page = 1; $results_2 = self::$api->getAll...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPagination()\n {\n\n // Set public page length to 2.\n set_option('per_page_public', 2);\n\n $item1 = $this->_item(true, 'Item 1');\n $item2 = $this->_item(true, 'Item 2');\n $item3 = $this->_item(true, 'Item 3');\n $item4 = $this->_item(true, 'Item ...
[ "0.70548224", "0.67531145", "0.67249376", "0.6706914", "0.6686927", "0.66857654", "0.6682336", "0.6552432", "0.6549364", "0.6505953", "0.64882123", "0.64774555", "0.6447404", "0.6440942", "0.64331806", "0.641788", "0.64111185", "0.63885736", "0.6384449", "0.63785315", "0.6356...
0.7644956
0
Test that the "include_totals" parameter works.
public function testGetAllIncludeTotals() { $expected_page = 0; $expected_count = 2; $results = self::$api->getAll(['include_totals' => true], $expected_page, $expected_count); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertArrayHasKey('total', $results); $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTotal()\n {\n\n \t$data = [\n \t\t'base_price' => 10,\n \t\t'spacing_cost' => 10,\n \t\t'work_level_cost' => 50,\n \t\t'urgency_cost' => 20,\n \t\t'number_of_pages' => 5,\n \t\t'total_additional_services_cost' => 10\n \t\t// 'vat' => 100\n \t];\n\n $foo = se...
[ "0.6468725", "0.61584353", "0.61541104", "0.61541104", "0.61541104", "0.61541104", "0.61541104", "0.6009728", "0.59305", "0.5900423", "0.5868993", "0.58609045", "0.5784935", "0.5773006", "0.57543004", "0.57496685", "0.57306576", "0.5725652", "0.5710329", "0.5680534", "0.56702...
0.7849056
0
Test that we can create, update, and delete a Client Grant.
public function testCreateUpdateDeleteGrant() { $client_id = self::$env['APP_CLIENT_ID']; $audience = self::$apiIdentifier; // Create a Client Grant with just one of the testing scopes. $create_result = self::$api->create($client_id, $audience, [self::$scopes[0]]); usleep(A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_machine_user_can_perform_client_credentials_grant() {\n\n $user = factory(User::class)->create();\n\n $createdClientResponse = $this->log_in_and_create_client_for_user($user);\n\n // so you can logout for client credentials grant!\n auth()->logout();\n\n $res...
[ "0.6682855", "0.664292", "0.66278887", "0.6474675", "0.63155806", "0.619589", "0.6142597", "0.6067689", "0.6056032", "0.6029367", "0.60248876", "0.5914911", "0.5910681", "0.5909496", "0.5839494", "0.5836691", "0.58031607", "0.5800475", "0.58004636", "0.579917", "0.57944465", ...
0.7718429
0
/$query = $this>db>get('tb_collection'); return $query>result_array();
public function getAllCollection() { return $this->db->get('tb_collection')->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}", "public function getCollection($table)\n {\n $sql = 'SELECT * FROM '.$table;\n ...
[ "0.7017653", "0.6901569", "0.67929614", "0.67762166", "0.6691817", "0.6596962", "0.65945613", "0.656072", "0.65531754", "0.6491643", "0.64909357", "0.64734757", "0.6461831", "0.64484036", "0.64322704", "0.64143544", "0.6387219", "0.6387219", "0.6370071", "0.6370071", "0.63700...
0.7420564
0
Builds tabs of the Wizard.
function buildTabs() { $this->_formBuilt = true; // Here we get all page names in the controller $pages = array(); $myName = $current = $this->getAttribute('id'); while (null !== ($current = $this->controller->getPrevName($current))) { $pages[] = $curren...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createTabs() {}", "private function createTab()\n {\n try {\n if (LengowMain::compareVersion()) {\n $tabParent = new Tab();\n $tabParent->name[Configuration::get('PS_LANG_DEFAULT')] = 'Lengow';\n $tabParent->module = 'lengow';\n...
[ "0.7487054", "0.6603563", "0.6448827", "0.63951415", "0.6376598", "0.6342076", "0.63246083", "0.6316735", "0.62946516", "0.6253495", "0.6227628", "0.62228113", "0.61793476", "0.6155166", "0.61530346", "0.6118265", "0.6103463", "0.6070469", "0.6066338", "0.6050339", "0.5984342...
0.795176
0
Builds the form that define the main properties of your progress bar
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: main properties'); $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1'); $shape[] =& $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: run demo');\r\n\r\n $this->addElement('static', 'progressBar',\r\n 'Your progress me...
[ "0.77083474", "0.6770756", "0.6582365", "0.62868875", "0.6283344", "0.6056346", "0.60378045", "0.60249215", "0.595588", "0.5948091", "0.57597005", "0.5717113", "0.57070196", "0.5703448", "0.5602351", "0.5581841", "0.5547263", "0.5502277", "0.5478038", "0.5475706", "0.5434613"...
0.76451546
1
Builds the form that define cell properties of your progress bar
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: cell properties'); $this->addElement('text', 'cellid', 'Id mask:', array('size' => 32)); $this->addElement('tex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: main properties');\r\n\r\n $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1');\r\n ...
[ "0.6875267", "0.6660737", "0.61252147", "0.59181416", "0.5750583", "0.5628293", "0.56004137", "0.54911566", "0.5465777", "0.54592305", "0.5447524", "0.5405576", "0.5394894", "0.5352851", "0.5344981", "0.5321192", "0.5305566", "0.52538455", "0.51949364", "0.51825327", "0.51637...
0.7368667
0
Builds the form that define border properties of your progress bar
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: border properties'); $borderpainted[] =& $this->createElement('radio', null, null, 'Yes', true); $borderpainted...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: main properties');\r\n\r\n $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1');\r\n ...
[ "0.69055814", "0.68195033", "0.61908114", "0.61072564", "0.5682266", "0.56485695", "0.5436292", "0.5436292", "0.5434116", "0.5432274", "0.5432274", "0.5432274", "0.5432274", "0.5432274", "0.5430103", "0.53658926", "0.5246863", "0.5181012", "0.516103", "0.5084275", "0.50808173...
0.75592405
0
Builds the form that show a preview of your progress bar design
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: run demo'); $this->addElement('static', 'progressBar', 'Your progress meter looks like:'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: main properties');\r\n\r\n $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1');\r\n ...
[ "0.710235", "0.63623637", "0.62253284", "0.6152803", "0.60618824", "0.5923924", "0.57680374", "0.57551", "0.57166356", "0.56992376", "0.56499654", "0.5645377", "0.5642863", "0.56302464", "0.5626179", "0.5624876", "0.56189144", "0.56085944", "0.56044364", "0.55827785", "0.5565...
0.76990116
0
Builds the form that allow to save your PHP/CSS code
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: save PHP/CSS code'); $code[] =& $this->createElement('checkbox', 'P', null, 'PHP'); $code[] =& $this->createEle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function beaver_extender_fe_style_editor_build_form() {\n\t\n?>\n\t\t<form action=\"/\" id=\"beaver-extender-fe-style-editor-form\" name=\"beaver-extender-fe-style-editor-form\">\n\t\t\t\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"beaver_extender_fe_style_editor_save\" />\n\t\t\t<input type=\"hidden\" na...
[ "0.7886451", "0.68713915", "0.67178565", "0.6539944", "0.6483157", "0.6474773", "0.64229256", "0.6420625", "0.63697195", "0.63479596", "0.6323945", "0.63135266", "0.62959915", "0.6291068", "0.6272934", "0.6272123", "0.62512887", "0.6247538", "0.6239279", "0.6233017", "0.62312...
0.7944517
0
/ Usage In the following example we generate a select field with three options. mdx:Render Outputs: mdx:Render o httidy Notice: the `options` method also accepts other formats besides an associative array. Take a look at the documentation of the [HtChoice]( class in order to learn more.
function testRender(){ #mdx:Render $select = new HtSelect("id_category"); $select->options([1=>'Category1',2=>'Category2',3=>'Category3']); #/mdx echo $select $this->expectOutputRegex("/select.*?id.*?name.*?option.*?1.*?Category1.*?3.*?Category3.*?select/s"); echo $select; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hundope_select_field_render() { \n\t\n}", "public static function renderSelect();", "public function it_shows_select_input_with_options()\n {\n // configure\n $inputs = [\n [\n 'type' => 'select',\n 'name' => 'country',\n 'option...
[ "0.6602616", "0.65285176", "0.65074456", "0.64679456", "0.6366054", "0.62528723", "0.6250871", "0.6240499", "0.62020624", "0.6188851", "0.6174806", "0.61741877", "0.614924", "0.6126591", "0.61098266", "0.6106556", "0.6067673", "0.6064495", "0.60634756", "0.6050614", "0.605013...
0.6652916
0
/ Selecting an option If you have read the documentation of the `HtField` and the `HtWidget` parent classes you already know that you are supposed to use the `context` method in order to set the value of a field/widget: mdx:SelectedOption Outputs: mdx:SelectedOption o httidy
function testSelectedOption(){ #mdx:SelectedOption $select = new HtSelect('id_category'); $select->options([1=>'Category1',2=>'Category2',3=>'Category3']); $select->context(['id_category'=>2]); #/mdx echo $select $this->expectOutputRegex("/option.*?2.*selected/"); echo $select; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testSelectedOption(){\n\t\t#mdx:SelectedOption\n\t\t$select = new HtCklist(\"select_days\");\n\t\t$select->options([1=>'Mon',2=>'Tue',3=>'Wed',4=>'Thu',5=>'Fri',6=>'Sat']);\n\t\t$select->context(['select_days'=>[2,5]]); // check Tue and Fri\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/input.*?...
[ "0.67317617", "0.67007697", "0.61267126", "0.6101564", "0.6092063", "0.6082261", "0.59615076", "0.5959076", "0.59364", "0.5885151", "0.58820623", "0.58743864", "0.58718723", "0.5857547", "0.58489746", "0.5836531", "0.5825224", "0.58173037", "0.58064955", "0.57943064", "0.5789...
0.71186876
0
/ Setting a caption The "caption" is the default text which appears on the select field when no option has been selected yet. This is usally a message indicating that the user should choose something: mdx:Caption Outputs: mdx:Caption o httidy
function testCaption(){ #mdx:Caption $select = new HtSelect('id_category'); $select->options([1=>'Category1',2=>'Category2',3=>'Category3']); $select->caption('CHOOSE A CATEGORY:'); #/mdx echo $select $this->expectOutputRegex("/select.*?CHOOSE A CATEGORY.*?/s"); echo $select; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testCaptionValue(){\n\t\t#mdx:CaptionValue\n\t\t$select = new HtSelect('id_category');\n\t\t$select->options([1=>'Category1',2=>'Category2',3=>'Category3']);\n\t\t$select->caption('CHOOSE A CATEGORY:', 'none'); # change value to 'none'\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/select.*?opti...
[ "0.72729474", "0.69511145", "0.6939236", "0.6899094", "0.6625466", "0.651141", "0.64263403", "0.64084697", "0.62733597", "0.6265194", "0.6231165", "0.6140197", "0.6131023", "0.6128065", "0.6066711", "0.6044273", "0.60297805", "0.60256106", "0.6001828", "0.5976827", "0.5966360...
0.7215593
1
/ Notice that by default the value "0" is used for the caption option. This means that when the form gets sent, if no option has been selected, then the "0" value will be sent as the category id, which in most cases would mean "no category". However, you can change that value if you want by using a second paramenter to...
function testCaptionValue(){ #mdx:CaptionValue $select = new HtSelect('id_category'); $select->options([1=>'Category1',2=>'Category2',3=>'Category3']); $select->caption('CHOOSE A CATEGORY:', 'none'); # change value to 'none' #/mdx echo $select $this->expectOutputRegex("/select.*?option.*?none.*?CHOOSE A CAT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testCaption(){\n\t\t#mdx:Caption\n\t\t$select = new HtSelect('id_category');\n\t\t$select->options([1=>'Category1',2=>'Category2',3=>'Category3']);\n\t\t$select->caption('CHOOSE A CATEGORY:');\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/select.*?CHOOSE A CATEGORY.*?/s\");\n\t\techo $select;\n...
[ "0.6484493", "0.6234255", "0.6195198", "0.6007746", "0.5943674", "0.5917132", "0.5907298", "0.5901107", "0.5729295", "0.5701957", "0.56089604", "0.5607314", "0.55738", "0.55517393", "0.55383116", "0.5505386", "0.55046487", "0.5491411", "0.5473566", "0.5465717", "0.5463196", ...
0.67867893
0
Schreibt eine Dateiliste des Fileadmins, ohne Deploymentdateien
public function readFilesInFileadmin() { $fileArr = $newArr = array(); // direktes auslesen des Ordners, da evtl. nicht alle Dateien in Tabellen indexiert sind $path = GeneralUtility::getIndpEnv('TYPO3_DOCUMENT_ROOT') . GeneralUtility::getIndpEnv('TYPO3_SITE_PATH') . 'fileadmin/'; $file...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeLists() {\n\n\t\t// get lists file name\n\t\t$adminops_file = $this->settings['adminops_file'];\n\n\t\t// compile lists file contents\n\t\t$lists = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" . CRLF\n\t\t . \"<lists>\" . CRLF\n\t\t . \"\\t<titles>\" . CRLF;\n\t\tforeach ($this...
[ "0.6159149", "0.60997367", "0.604208", "0.578313", "0.57729435", "0.57020223", "0.56754524", "0.5642211", "0.5625906", "0.56167734", "0.55953205", "0.5579391", "0.5572567", "0.5568225", "0.5556994", "0.5549812", "0.55435014", "0.5527608", "0.5522776", "0.55180866", "0.5497576...
0.6809908
0
Adds additional entries to the `dependencies` option.
public function addDependencies(array $dependencies) { $this->add('dependencies', $dependencies); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_dependencies(self ...$plugins): static;", "public function configureDependencies(DependencyBuilder $dependencies)\n {\n }", "public function addDevDependencies(array $dependencies)\n {\n $this->add('devDependencies', $dependencies);\n }", "public function add($field, ar...
[ "0.6254967", "0.6019367", "0.6013622", "0.59439564", "0.5775454", "0.57066584", "0.56225526", "0.556659", "0.5558864", "0.54927766", "0.5428987", "0.5427373", "0.54099107", "0.5399456", "0.53858376", "0.5379771", "0.5350694", "0.5330845", "0.53156006", "0.5287463", "0.5239191...
0.6559166
0
Adds additional entries to the `devDependencies` option.
public function addDevDependencies(array $dependencies) { $this->add('devDependencies', $dependencies); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addRequirePackages()\n {\n $devPackages = [\n \"orangehill/iseed:*\",\n \"barryvdh/laravel-debugbar:*\",\n \"barryvdh/laravel-ide-helper:*\",\n \"laravel/dusk:*\",\n \"mediactive-digital/laravel:*\",\n \"mediactive-digital...
[ "0.5920187", "0.58762705", "0.55962074", "0.5414203", "0.5285141", "0.525705", "0.5253719", "0.52028227", "0.5188637", "0.5140187", "0.51334393", "0.5119874", "0.51079035", "0.5081996", "0.50043845", "0.49999052", "0.49728587", "0.49551252", "0.49512973", "0.49407893", "0.492...
0.6786218
0
Filter the query on the scene_id column Example usage: $query>filterBySceneId(1234); // WHERE scene_id = 1234 $query>filterBySceneId(array(12, 34)); // WHERE scene_id IN (12, 34) $query>filterBySceneId(array('min' => 12)); // WHERE scene_id > 12
public function filterBySceneId($sceneId = null, $comparison = null) { if (is_array($sceneId)) { $useMinMax = false; if (isset($sceneId['min'])) { $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $sceneId['min'], Criteria::GREATER_EQUAL); $useMinMax =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $key, Criteria::EQUAL);\n }", "public function filterId(int $id): self;", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(SceneTableMap::COL_SCENE_ID,...
[ "0.62507355", "0.52833366", "0.5076601", "0.5074339", "0.50417024", "0.49674606", "0.48690894", "0.48471305", "0.482481", "0.4824601", "0.48025548", "0.47710732", "0.47683024", "0.47671998", "0.47402745", "0.47310618", "0.47300684", "0.47291607", "0.47286707", "0.47137916", "...
0.62240636
1