query
stringlengths
11
3.13k
ru_query
stringlengths
9
3.91k
document
stringlengths
18
71k
metadata
dict
negatives
listlengths
0
100
negative_scores
listlengths
0
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Build the activated Search panel
Создайте активированный панель поиска
function buildSearchPanel() { if( !$this->searchPanelActivated || !$this->permis[$this->searchTableName]["search"] ) { return; } include_once(getabspath("classes/searchpanel.php")); include_once(getabspath("classes/searchpanelsimple.php")); include_once(getabspath("classes/searchcontrol.php")); in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildFilterPanel() \n\t{\n\t\tif( !$this->permis[$this->tName][\"search\"] \n\t\t\t|| $this->pSetEdit->isSearchRequiredForFiltering() && !$this->isRequiredSearchRunning() )\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tinclude_once getabspath(\"classes/filterpanel.php\");\t\n\t\t$params = array();\n\t\t$params[...
[ "0.7346653", "0.6937985", "0.6568849", "0.6395285", "0.6345965", "0.63354206", "0.6327548", "0.628403", "0.625018", "0.6235857", "0.6205785", "0.6172597", "0.61286867", "0.6119818", "0.6101216", "0.6080075", "0.6050376", "0.6033174", "0.59802115", "0.59547675", "0.59395105", ...
0.85289824
0
Build and show the Filter panel on the page if there are corresponding search permissions
Показать панель фильтра на странице, если есть соответствующие разрешения на поиск
function buildFilterPanel() { if( !$this->permis[$this->tName]["search"] || $this->pSetEdit->isSearchRequiredForFiltering() && !$this->isRequiredSearchRunning() ) { return; } include_once getabspath("classes/filterpanel.php"); $params = array(); $params["pageObj"] = &$this; $filterPanel = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ShowFilterList() {}", "public function get_search_filter_html() {\n // load the search_id from POST\n $search_id = $this->input->post('search_id');\n\n // load the search library\n $this->load->library('search');\n\n try {\n // get available filters\n ...
[ "0.6819633", "0.6683614", "0.64521617", "0.64513737", "0.6359626", "0.62849665", "0.6212182", "0.620691", "0.6189618", "0.61832815", "0.6172713", "0.6131703", "0.61273795", "0.6116951", "0.60999817", "0.60905343", "0.60635877", "0.60398096", "0.6034493", "0.603389", "0.602836...
0.7566164
0
Get the filters WHERE condition
Получить условия WHERE фильтров
function getFiltersWhere() { $whereClause = ""; $whereComponents = $this->getWhereComponents(); foreach($whereComponents["filterWhere"] as $fWhere) { $whereClause = whereAdd($whereClause, $fWhere); } return $whereClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getWhere() {\n // if we have applied a filter\n // count($this->where) should be >= 2\n $count = count($this->where);\n if ($count < 2) {\n return '';\n } else {\n // base case\n $wherecondition = ' WHERE ( ('.$this->where[1].' ) ';\n\n // add other filters\n ...
[ "0.766403", "0.7491883", "0.73900527", "0.7367225", "0.73366344", "0.72893494", "0.72576386", "0.7234439", "0.72197384", "0.71673095", "0.7143994", "0.7137593", "0.71219075", "0.71219075", "0.71219075", "0.70782036", "0.70730716", "0.70396614", "0.70372874", "0.70141995", "0....
0.82624084
0
Get the filters HAVING condition
Получить условия HAVING фильтров
function getFiltersHaving() { $havingClause = ""; $whereComponents = $this->getWhereComponents(); foreach($whereComponents["filterHaving"] as $fHaving) { $whereClause = whereAdd($havingClause, $fHaving); } return $whereClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCombinedFilterHaving()\r\n\t{\r\n\t\t$havingClause = $this->whereComponents[\"commonHaving\"];\r\n\t\t\t\t\t\r\n\t\tforeach($this->whereComponents[\"filterHaving\"] as $fName => $fHaving)\r\n\t\t{\r\n\t\t\tif($fName != $this->fName)\r\n\t\t\t{\r\n\t\t\t\t$havingClause = whereAdd($havingClause...
[ "0.70959735", "0.6714346", "0.6683653", "0.6667619", "0.6645", "0.6540102", "0.63665724", "0.62842816", "0.6251006", "0.62101156", "0.62058526", "0.61900234", "0.61801344", "0.61801344", "0.61339474", "0.6121631", "0.6121631", "0.6121631", "0.6121631", "0.6118172", "0.6100915...
0.7656193
0
Displays the page using $templatefile
Показывает страницу с использованием $templatefile
function display($templatefile) { $this->assignStyleFiles(); $this->xt->display($templatefile); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "public function display(){\r\n\t\t$type = (isset($this->viewData[\"type\"])) ? $this->viewData[\"type\"] : null;\r\n\t\tif ($type == \"ajax\"){\r\n\t\t\t$fileName = dirname(__DIR__).DIRECTORY_SEPARATOR.$this->ajaxFile;\r\n\t\t} else ...
[ "0.77796626", "0.7661226", "0.7608919", "0.749315", "0.7368119", "0.7356742", "0.731026", "0.7306661", "0.7232457", "0.71666247", "0.71540624", "0.71540123", "0.71220154", "0.71127355", "0.7108959", "0.7072894", "0.7072794", "0.70336926", "0.70149916", "0.70038086", "0.699163...
0.77967113
0
Check details and master tables field for types.They must be the same type. return true if they are same or if database is mySQL, otherwise returns false
Проверьте детали и поля таблицы мастеров на типы. Они должны быть одного типа. Возвращайте true, если они совпадают, или если база данных — mySQL, иначе возвращайте false.
function checkDetailAndMasterFieldTypes() { if($this->dbType == nDATABASE_MySQL) { return false; } // all details tables for which current table is master //$allDetailsTablesArr = GetDetailTablesArr($this->tName); for($i = 0; $i < count($this->allDetailsTablesArr); $i ++) { foreach($this->mast...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function plugin_check_data($db,&$fieldvalues,$table_desc,$modify=false) \n{\n\n $protocoltable=get_cell($db,\"tableoftables\",\"real_tablename\",\"table_desc_name\",$table_desc);\n $protocoltablelabel=get_cell($db,\"tableoftables\",\"tablename\",\"table_desc_name\",$table_desc);\n $authortable=get_cell($db,$...
[ "0.6239243", "0.6225262", "0.6192576", "0.61815804", "0.6161671", "0.60739255", "0.60175264", "0.59936595", "0.5985222", "0.5943222", "0.5935224", "0.5912158", "0.5891575", "0.586532", "0.5780397", "0.5768551", "0.57583106", "0.575293", "0.57517284", "0.5750784", "0.5716202",...
0.8342352
0
Returns the list of master key values read from either request or session
Возвращает список значений мастер-ключа, прочитанных из запроса или сессии
function getActiveMasterKeys() { $i = 1; $ret = array(); while(true) { if( isset( $this->masterKeysReq[$i] ) ) $ret[] = $this->masterKeysReq[$i]; else if( isset( $_SESSION[$this->sessionPrefix."_masterkey".$i] ) ) $ret[] = $_SESSION[$this->sessionPrefix."_masterkey".$i]; else break; ++...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeys(){\r\n\t\t\treturn array_keys($_SESSION);\r\n\t\t}", "public function getAll() : array\n {\n $arr = [];\n\n // Take care to remove the prefix before returning the\n // list of keys in the $_SESSION\n foreach ($_SESSION as $key => $value) {\n if (S...
[ "0.63451177", "0.632481", "0.6202628", "0.6202628", "0.6132102", "0.61266816", "0.6069635", "0.6036833", "0.59734726", "0.5936534", "0.5910698", "0.5895419", "0.5894756", "0.5855469", "0.58471364", "0.5844813", "0.58187777", "0.58008975", "0.57830495", "0.57739866", "0.576554...
0.80625504
0
function getUserTimeZone() Returns the current users timezone info or another user; $user user object for which you want to display, null for current user
function getUserTimeZone() Возвращает информацию о часовом поясе текущего пользователя или другого пользователя; $user объект пользователя, для которого вы хотите отобразить информацию, null для текущего пользователя
function getUserTimeZone($user = null){ global $timezones, $current_user; static $current_user_timezone; $usertimezone = array(); if(empty($user) || (!empty($user->id) && $user->id == $current_user->id)) { if(isset($current_user_timezone)) return $current_user_timezone; // current user, return saved timezone...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getUserTime($userTimeZone)\n {\n date_default_timezone_set($userTimeZone);\n\n $date = new DateTime('now');\n $date->setTimezone(new DateTimeZone(PROJ_CONF::TIME_ZONE));\n $str_server_now = $date->format(PROJ_CONF::TIME_FORMAT);\n\n // return timezone to server...
[ "0.74715394", "0.7131789", "0.69246155", "0.6923954", "0.68982774", "0.68847257", "0.68389505", "0.6796359", "0.6758924", "0.65361136", "0.64500415", "0.64500415", "0.64500415", "0.6442398", "0.6248276", "0.60515934", "0.5983366", "0.5983366", "0.5983366", "0.5983366", "0.595...
0.83376735
0
function adjustmentForUserTimeZone() this returns the adjustment for a user against the server time $timezone pass in a timezone to adjust for
функция adjustmentForUserTimeZone() возвращает корректировку для пользователя относительно времени сервера $timezone передайте часовой пояс для корректировки
function adjustmentForUserTimeZone($timezone_to_adjust = null){ static $current_user_adjustment; static $tz_to_adjust; if(isset($current_user_adjustment) && $tz_to_adjust == $timezone_to_adjust){ return $current_user_adjustment; } $adjustment = 0; $tz_to_adjust = $timezone_to_adjust; if(empty($t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserTimeZone($user = null){\n\t\tglobal $timezones, $current_user;\n\t\tstatic $current_user_timezone;\n\t\t$usertimezone = array();\n\t\tif(empty($user) || (!empty($user->id) && $user->id == $current_user->id)) {\n\t\t\tif(isset($current_user_timezone)) return $current_user_timezone; // current user, ...
[ "0.6441751", "0.6431132", "0.6363957", "0.6347674", "0.62693375", "0.6214744", "0.6074219", "0.5970203", "0.59616077", "0.59569395", "0.59433544", "0.59372896", "0.59292567", "0.5925486", "0.5910476", "0.59097767", "0.5907831", "0.589959", "0.5876953", "0.58538884", "0.583569...
0.84243584
0
function getWeekDayName($indexOfDay) Returns a days name
Функция getWeekDayName($indexOfDay) Возвращает название дня
function getWeekDayName($indexOfDay){ static $dow = array ( 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' ); return $dow[$indexOfDay]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWeekDayName(): string;", "public static function getWeekDayNameByIndex($int) {\n return Weekdays::$Weekdays[$int];\n }", "public function dayName() {\n\t\t$names = array('Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So');\n\t\treturn $names[$this->DateArray['w']-1];\n\t}", "public functio...
[ "0.792895", "0.76457983", "0.7622805", "0.7618564", "0.7542789", "0.7464695", "0.73105305", "0.72976327", "0.72720444", "0.7195842", "0.7116646", "0.71124053", "0.70327723", "0.6979328", "0.69695336", "0.6963856", "0.6914745", "0.6911799", "0.688465", "0.6869233", "0.68510616...
0.9285707
0
function getMonthName($indexMonth) Returns a Months Name
Функция getMonthName($indexMonth) Возвращает название месяца
function getMonthName($indexMonth){ static $months = array ( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ); return $months[$indexMonth]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMonthName($monthIndex, $current_language='en')\n{\n\t#$current_language = get_current_language();\n\n\t\tif( $current_language == 'en') {\n\t\t\t\t$dateTime = new I18N_DateTime( 'en_GB' );\n\t\t}\n\t\telse if( $current_language == 'fr') {\n\t\t\t\t$dateTime = new I18N_DateTime( 'fr_FR' );\n\t\t}\n\n\t\...
[ "0.832778", "0.8028594", "0.8028329", "0.77687395", "0.775492", "0.7622408", "0.75580186", "0.75191545", "0.75161135", "0.74449325", "0.7324851", "0.7321671", "0.7312435", "0.7258515", "0.7141372", "0.71061665", "0.70721126", "0.7055071", "0.70483464", "0.70031726", "0.688800...
0.9327878
0
function getDateFromRules($year, $startMonth, $startDate, $weekday, $startTime ) Converts the rules for a timezones dst into a string representation of a date for the given year
Функция getDateFromRules($year, $startMonth, $startDate, $weekday, $startTime ) Преобразует правила для часового пояса с переходом на летнее время в строковое представление даты для заданного года
function getDateFromRules($year, $startMonth, $startDate, $weekday, $startTime ){ if($weekday < 0)return date( 'Y-m-d H:i:s', strtotime("$year-$startMonth-$startDate") + $startTime); $dayname = TimeDate::getWeekDayName($weekday); if($startDate > 0)$startMonth--; $month = TimeDate::getMonthName($startMonth); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function produceDateString($start, $end) {\n\tif (!$start && !$end) {\n\t\treturn \"\";\n\t}\n\tif (!$end) {\n\t\treturn \"[\".getYear($start).\"]\";\n\t} else {\n\t\t$startYear = getYear($start);\n\t\t$endYear = getYear($end);\n\t\tif ($startYear == $endYear) {\n\t\t\treturn \"[$startYear]\";\n\t\t} else {\n\t\t\...
[ "0.5294198", "0.51896113", "0.5125798", "0.50653577", "0.5032602", "0.49910378", "0.49608433", "0.4919991", "0.48819974", "0.48333898", "0.48123363", "0.48085558", "0.47854996", "0.4784485", "0.4750921", "0.4709784", "0.4708062", "0.4699854", "0.46922094", "0.46771535", "0.46...
0.75726175
0
function getDSTRange($year, $zone) returns the start and end date for dst for a given timezone and year or false if that zone doesn't support dst
функция getDSTRange($year, $zone) возвращает начальную и конечную даты для времени летнего времени для заданного часового пояса и года или false, если этот часовой пояс не поддерживает летнее время
function getDSTRange($year, $zone){ $range = array(); if(empty($zone['dstOffset'])){ return false; } $range['start'] = $this->getDateFromRules($year, $zone['dstMonth'], $zone['dstStartday'], $zone['dstWeekday'], $zone['dstStartTimeSec']); $range['end'] = $this->getDateFromRules($year, $zone['stdMonth'],...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_est($time)\n{\n // get year\n $Y = gmdate(\"Y\", $time);\n\n // calc start / end dates and time for that year\n $begin_date = (31 - (5*$Y/4 + 4) % 7);\n $end_date = (31 - (5*$Y/4 + 1) % 7);\n $begin_time = gmmktime(0,0,0, 3,$begin_date,$Y);\n $end_time = gmmktime(0,0,0, 10,$end_date,$Y);\n\n ...
[ "0.65932244", "0.64492124", "0.55867493", "0.5560552", "0.54607654", "0.5234691", "0.51982313", "0.5194571", "0.51681465", "0.5145504", "0.5113916", "0.510932", "0.50317717", "0.5026498", "0.49893022", "0.490839", "0.48888052", "0.48834297", "0.47732577", "0.4745327", "0.4742...
0.8172667
0
1. Go to the Shows panel in the main page 2. Do some filtering 3. Select one of the shows 4. Select a season 5. Select an episode 6. Request a video from the episode
1. Перейдите на панель "Серии" на главной странице 2. Выполните некоторое фильтрование 3. Выберите одну из серий 4. Выберите сезон 5. Выберите эпизод 6. Запросите видео из эпизода
public function testSelectShow() { $this->getShows(); $filteredShow = $this->getFilteredShow(); $seasons = $this->getSeasons($filteredShow->id); $episodes = $this->getEpisodes($filteredShow->id, $seasons[0]->id); $this->getVideo($episodes[0]->videos[0]->id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showAvailableEpisodes($seriesname,$agent,$accesslevel,$videoServer,$fullSeriesName,$seoname,$canDownload,$type){\n\t\t\t$query = mysqli_query($conn, \"SELECT id FROM episode WHERE seriesname='$seriesname' AND Movie='0' AND ova='0'\");\n\t\t\t$total_episodes = mysqli_num_rows($query);\n\t\t\tif($total_epis...
[ "0.6529669", "0.62782604", "0.62730306", "0.626812", "0.6126227", "0.6038503", "0.59910953", "0.5958312", "0.5917614", "0.58946437", "0.5872933", "0.58377916", "0.58127826", "0.5812727", "0.5762306", "0.57605314", "0.57572955", "0.57435983", "0.5701998", "0.5694732", "0.56943...
0.75437796
0
Return the markup for distribution addons labels
Верните разметку для меток распределенных дополнений
function componentAddonsDistributionTags ($deployment_descriptor) { $content='<span class="label label-addon" rel="tooltip" data-original-title="distribution add-ons: '.$deployment_descriptor->PRODUCT_ADDONS_DISTRIB.'"><i class="icon-gift"></i></span>'; return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function componentAddonsTags ($deployment_descriptor) {\n $content=\"\";\n\n $content.=componentAddonsDistributionTags($deployment_descriptor).\"&nbsp;\";\n\n if (property_exists($deployment_descriptor, 'DEPLOYMENT_ADDONS')) {\n if (is_array($deployment_descriptor->DEPLOYMENT_ADDONS)) {\n $labels = $dep...
[ "0.70772487", "0.6888768", "0.6731252", "0.6662052", "0.66406596", "0.6594156", "0.6461241", "0.64379853", "0.64329576", "0.63864857", "0.63359404", "0.63353294", "0.6263923", "0.6240165", "0.62126505", "0.61868745", "0.6178308", "0.6158769", "0.6134787", "0.6129814", "0.6110...
0.74363065
0
Get the markup for the Edit Note icon
Получить разметку для иконки Редактировать заметку
function componentEditNoteIcon ($deployment_descriptor) { $content='<a rel="tooltip" title="Add/Edit Instance Note"'; $content.='href="#edit-note-'.str_replace(".", "_", $deployment_descriptor->INSTANCE_KEY).'"'; $content.='data-toggle="modal"><i class="icon-pencil"></i></a>'; $content.=getFormEditNote($deploym...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function icon() {\n\t\treturn 'custom_html';\n\t}", "public function modify()\n {\n return '<div class=\"icon_side icon_modify\">\n <a href=\"' . $this->linkModify() . '\">\n <i class=\"fa fa-edit\"></i>\n <span>' . __('modify') . ...
[ "0.67170024", "0.6713041", "0.6710664", "0.66937023", "0.6660513", "0.656861", "0.6367105", "0.6344837", "0.63206285", "0.6302611", "0.6244158", "0.623625", "0.623625", "0.61903626", "0.61748165", "0.6164406", "0.6082948", "0.6075821", "0.6075821", "0.6075821", "0.6064167", ...
0.76705617
0
Get the markup for the Specification link icon
Получить маркировку для иконки ссылки на спецификацию
function componentSpecificationIcon ($deployment_descriptor) { $content=""; if (!empty($deployment_descriptor->SPECIFICATIONS_LINK)) { $content.='<a rel="tooltip" title="Specifications link"'; $content.='href="'.$deployment_descriptor->SPECIFICATIONS_LINK.'" target="_blank">'; $content.='<i class="icon-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLinkIcon()\n {\n $iconImage = $this->getViewFileUrl('Abm_Productdocument::images/link.png');\n return $iconImage;\n }", "function componentProductInfoIcon ($deployment_descriptor) {\n return '<a rel=\"popover\" data-content=\"'.componentProductHtmlPopover($deployment_descr...
[ "0.6712538", "0.6539411", "0.65037304", "0.6409655", "0.6409655", "0.6370723", "0.6363142", "0.6256067", "0.6210961", "0.61971694", "0.61700726", "0.60312194", "0.6030185", "0.6021853", "0.6009222", "0.59841424", "0.598209", "0.59613436", "0.5958402", "0.59502375", "0.5950237...
0.7707014
0
Get the markup for the Product Info icon with popover
Получить разметку для иконки Product Info с всплывающим окном
function componentProductInfoIcon ($deployment_descriptor) { return '<a rel="popover" data-content="'.componentProductHtmlPopover($deployment_descriptor).'" data-html="true"><i class="icon-info-sign"></i></a>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function woocommerce_rb_open_product_info() {\n \n echo '<div class=\"product-cart__info\">';\n \n\t}", "private function generateInfoBar()\n\t{\n\t\t$return = '<div class=\"tl_attributewizard_columninfo\"><span class=\"cell label\"></span>';\n\n\t\t$arrColumns = array\n\t\t(\n\t\t\t'tl_class_se...
[ "0.6766172", "0.64899224", "0.6390678", "0.635556", "0.6271324", "0.62437177", "0.62040424", "0.6199866", "0.6191014", "0.61846846", "0.6163982", "0.6127666", "0.6118515", "0.610309", "0.61023813", "0.6078463", "0.6062556", "0.60402983", "0.60037214", "0.5997268", "0.5971171"...
0.8388647
0
Insert markup for the Artifact download icon link
Вставить маркировку для иконки ссылки на загрузку Артефакта
function componentDownloadIcon ($deployment_descriptor) { $data_content="<strong>GroupId:</strong> ".$deployment_descriptor->ARTIFACT_GROUPID."<br/>"; $data_content.="<strong>ArtifactId:</strong> ".$deployment_descriptor->ARTIFACT_ARTIFACTID."<br/>"; $data_content.="<strong>Version/Timestamp:</strong> ".$deployme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIcon()\n {\n return 'download';\n }", "public function how_to_download() {\n \t$this->template->set_title('Belancon | Belanja Icon untuk Kebutuhan Desainmu');\n \t//set meta tag\n $this->template->set_meta('author','Belancon Team');\n ...
[ "0.6931861", "0.67724967", "0.6664341", "0.6661538", "0.65894973", "0.65601826", "0.6352819", "0.6326744", "0.6272622", "0.6231444", "0.6229783", "0.6214023", "0.6202034", "0.62006086", "0.61936563", "0.61779386", "0.61727667", "0.61709356", "0.61431956", "0.60856307", "0.607...
0.76971245
0
Return the markup for the Product Html Popover
Верните разметку для всплывающей подсказки Product Html Popover
function componentProductHtmlPopover ($deployment_descriptor) { $content = '<strong>Product:</strong> '.componentProductHtmlLabel($deployment_descriptor).'<br/>'; $content .= '<strong>Version:</strong> '.$deployment_descriptor->PRODUCT_VERSION.'<br/>'; $content .= '<strong>Packaging:</strong> '.$deployment_descri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function componentProductInfoIcon ($deployment_descriptor) {\n return '<a rel=\"popover\" data-content=\"'.componentProductHtmlPopover($deployment_descriptor).'\" data-html=\"true\"><i class=\"icon-info-sign\"></i></a>';\n}", "public function getHtml()\n {\n \t$html = '<button style=\"margin: 15px 0;\" on...
[ "0.66403", "0.6388551", "0.62726986", "0.6212488", "0.62079245", "0.6153165", "0.6133425", "0.61260915", "0.6101895", "0.60966057", "0.60819334", "0.60650283", "0.6054286", "0.60400045", "0.6029523", "0.60255", "0.59934574", "0.598513", "0.59827673", "0.59174573", "0.5870106"...
0.7192736
0
Get markup for a Feature Branch SCM Branch label
Получить разметку для ярлыка ветки SCM ветки Feature Branch
function componentFBScmLabel($deployment_descriptor) { $content="-"; if (!empty($deployment_descriptor->SCM_BRANCH)) { $content='<a href="/features.php#'; $content.=str_replace(array("/", "."), "-", $deployment_descriptor->SCM_BRANCH).'"'; $content.='rel="tooltip" title="SCM Branch used to host this FB ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function componentFeatureRepoBrancheStatus($fb_project) {\n $content=\"\";\n\n $content='<a href=\"'.$fb_project['http_url_behind'].'\" target=\"_blank\" title=\"[behind]\">';\n $content.='<span rel=\"tooltip\" title=\"'.$fb_project['behind_commits'].' commits on the base branch that do not exist on this branch...
[ "0.6705507", "0.63018864", "0.6278836", "0.6270365", "0.61842936", "0.5968171", "0.5956096", "0.59451", "0.593743", "0.59305716", "0.5898156", "0.5888441", "0.5856442", "0.5825666", "0.5762619", "0.5762619", "0.5748743", "0.5741554", "0.5729346", "0.5711585", "0.5652633", "...
0.7273156
0
Get markup for a Feature Branch Edit action icon
Получить разметку для иконки действия редактирования ветки Feature Branch
function componentFBEditIcon($deployment_descriptor) { $content=""; $content='<a href="#edit-'; $content.=str_replace(".", "_", $deployment_descriptor->INSTANCE_KEY).'"'; $content.='rel="tooltip" title="Edit feature branch details" data-toggle="modal">'; $content.='<i class="icon-pencil"></i></a>'; $content...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIconMarkup()\n {\n $iconElement = config('stlc.action_icon.element');\n $iconClassPrefix = config('stlc.action_icon.class_prefix');\n\n return '<'.$iconElement.' class=\"'.$iconClassPrefix.$this->getIcon().'\" title=\"'.$this->action.'\"></'.$iconElement.'>';\n }",...
[ "0.720536", "0.67180276", "0.6336403", "0.62217313", "0.61591256", "0.6110172", "0.6074603", "0.5970686", "0.5963704", "0.59556526", "0.595468", "0.59514457", "0.5945095", "0.5918083", "0.59134215", "0.59134215", "0.59134215", "0.59085643", "0.5904241", "0.5904241", "0.589000...
0.7493075
0
Get markup for a Feature Branch Deploy action icon
Получить разметку для иконки действия развертывания ветки Feature Branch
function componentFBDeployIcon($deployment_descriptor) { $content=""; if(isset($deployment_descriptor->DEPLOYMENT_BUILD_URL)) { $content='<a href="'.$deployment_descriptor->DEPLOYMENT_BUILD_URL.'/build?delay=0sec"'; $content.='rel="tooltip" title="Restart your instance or reset your instance data" target="_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIconMarkup()\n {\n $iconElement = config('stlc.action_icon.element');\n $iconClassPrefix = config('stlc.action_icon.class_prefix');\n\n return '<'.$iconElement.' class=\"'.$iconClassPrefix.$this->getIcon().'\" title=\"'.$this->action.'\"></'.$iconElement.'>';\n }",...
[ "0.74010456", "0.7022771", "0.6895379", "0.66232574", "0.6587832", "0.6548686", "0.65174204", "0.64136034", "0.6372501", "0.63231957", "0.62978417", "0.62231284", "0.6210882", "0.6202492", "0.62013644", "0.6198728", "0.6179827", "0.6175154", "0.61717826", "0.6157168", "0.6157...
0.7035999
1
Get markup for a Git repository branch commits status
Получить разметку для статуса коммитов ветки репозитория Git
function componentFeatureRepoBrancheStatus($fb_project) { $content=""; $content='<a href="'.$fb_project['http_url_behind'].'" target="_blank" title="[behind]">'; $content.='<span rel="tooltip" title="'.$fb_project['behind_commits'].' commits on the base branch that do not exist on this branch [behind]">'; if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function git_status() {\n\t\tIDE::check_perms();\n\n\t\t$this->git_open_repo(); // make sure git repo is open\n\n\t\t// echo branch\n\t\t$branch = $this->git->getCurrentBranch();\n\t\techo '<p><strong>' . __( 'Current branch:' ) . '</strong> ' . $branch . '</p>';\n\n\t\t// [0] => Array\n\t\t// (\n\t\t// ...
[ "0.7044258", "0.6318542", "0.6030396", "0.5842051", "0.5832046", "0.57618964", "0.5653013", "0.5639658", "0.56223494", "0.5609177", "0.5607033", "0.55842245", "0.55626845", "0.5549874", "0.5534006", "0.55306876", "0.5511305", "0.54823613", "0.546556", "0.5427999", "0.54144895...
0.7291497
0
Static URL Static URL return static files URL and generate absolute URL of any path.
Статический URL Статический URL возвращает URL статических файлов и генерирует абсолютный URL любого пути.
function static_url(string $path=NULL) { global $static_url; $static = rtrim(url(), '/').'/'.ltrim($static_url, '/'); if(isset($path)) { $path = ltrim($path, '/'); return rtrim($static, '/').'/'.$path; } else { return $static; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBaseStaticUrl();", "static function createStaticUrl($url) \n\t{\n $baseUrl=Registry::get('baseurl');\n \n echo $baseUrl . '/static/' . $url;\n }", "public function getSecureBaseStaticUrl();", "function static_url()\n {\n $CI =& get_instance();\n ...
[ "0.81700766", "0.74430203", "0.7414972", "0.71954566", "0.7092196", "0.69038904", "0.6814062", "0.6675694", "0.6657266", "0.6521686", "0.6441216", "0.6389003", "0.6378432", "0.6373712", "0.636751", "0.6362914", "0.63512075", "0.6340887", "0.6301475", "0.62948716", "0.6287957"...
0.76600945
1
Devuelve el valor correspondiente a idFundacionVinculacion
Возвращает значение, соответствующее idFundacionVinculacion
public function getIdFundacionVinculacion(){ return $this->idFundacionVinculacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIdFundacionVinculacion($idFundacionVinculacion){\n $this->idFundacionVinculacion = $idFundacionVinculacion;\n }", "public function getFundacion_idFundacion(){\n return $this->Fundacion_idFundacion;\n }", "public function getIdVacuna()\n {\n return $this->idVacuna;\n ...
[ "0.6954326", "0.6924059", "0.6633918", "0.6430039", "0.6173362", "0.6151996", "0.6138691", "0.6113139", "0.6112403", "0.61093944", "0.6108608", "0.61084735", "0.59830606", "0.5959161", "0.59475446", "0.590434", "0.58634984", "0.58634984", "0.585264", "0.581137", "0.5788454", ...
0.83166784
0
Modifica el valor correspondiente a idFundacionVinculacion
Измените значение, соответствующее idFundacionVinculacion
public function setIdFundacionVinculacion($idFundacionVinculacion){ $this->idFundacionVinculacion = $idFundacionVinculacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdFundacionVinculacion(){\n return $this->idFundacionVinculacion;\n }", "function rebajar_cantidad_producto($producto_id,$existencia)\r\n {\r\n \r\n //cargar el inventario actualizado\r\n $sql = \"update inventario set inventario.existencia=inventario.existencia-\"...
[ "0.6956646", "0.61223096", "0.61223096", "0.6096688", "0.6040557", "0.59701836", "0.59701836", "0.5968685", "0.59121", "0.5893965", "0.58528626", "0.5823174", "0.5791747", "0.5750165", "0.5735065", "0.5734148", "0.5732974", "0.57238406", "0.57175994", "0.567794", "0.5675581",...
0.7199305
0
Devuelve el valor correspondiente a Fundacion_idFundacion
Возвращает значение, соответствующее Fundacion_idFundacion
public function getFundacion_idFundacion(){ return $this->Fundacion_idFundacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdFundacionVinculacion(){\n return $this->idFundacionVinculacion;\n }", "public function setFundacion_idFundacion($fundacion_idFundacion){\n $this->Fundacion_idFundacion = $fundacion_idFundacion;\n }", "public function getIdfaturamento()\n {\n return $this->idfaturament...
[ "0.77915716", "0.6405706", "0.6385462", "0.62910056", "0.61467063", "0.6135399", "0.597236", "0.5962923", "0.59133315", "0.5884457", "0.5815796", "0.57755834", "0.5770868", "0.5762983", "0.57580537", "0.5746441", "0.5683367", "0.5669744", "0.56654704", "0.5647744", "0.5623284...
0.81159693
0
Devuelve el valor correspondiente a Vinculaciones_idVeterinaria
Возвращает значение, соответствующее Vinculaciones_idVeterinaria
public function getVinculaciones_idVeterinaria(){ return $this->Vinculaciones_idVeterinaria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdVacuna()\n {\n return $this->idVacuna;\n }", "public function getIdVenta()\n {\n return $this->idVenta;\n }", "public function DetalleOrdenVentaxIdOrdenVenta() {\n $idOrdenVenta = $_REQUEST['id'];\n }", "public function getTipo_vinculacion_id(){\n ...
[ "0.71648955", "0.7011051", "0.6967916", "0.6872204", "0.68705016", "0.6865345", "0.68650866", "0.6795988", "0.66827834", "0.66552144", "0.65443164", "0.64800704", "0.6367361", "0.63627416", "0.6304312", "0.63033015", "0.62471586", "0.6231489", "0.62203306", "0.62171423", "0.6...
0.8350819
0
Notifies the customer of their delivery.
Уведомляет клиента о доставке.
public function notifyCustomerOfDelivery(Customer $customer, Order $order) { $this->_mailer->setFrom('orders@chrisweldon.net', 'Grumpy Baby Orders'); $this->_mailer->setSubject('Order #' . $order->getId() . ' out for Delivery'); $this->_mailer->setBodyText('Your order is being shipped!'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function notifyCustomerAction() {\n \n // get order id\n $orderId = $this->getRequest()->getParam('order_id');\n\n try {\n //get order infos\n $order = Mage::getModel('sales/order')->load($orderId);\n\n // call helper to send email with informatio...
[ "0.73064303", "0.7008425", "0.69530225", "0.683667", "0.66686934", "0.6665292", "0.66284865", "0.6560967", "0.6556794", "0.65412766", "0.652633", "0.6441242", "0.6419304", "0.63553673", "0.63368225", "0.63051087", "0.62982666", "0.6259621", "0.62267566", "0.62159187", "0.6207...
0.721696
1
NFL Player Object / Constructor: Draft() Parameters: $leagueName Name of league $leagueYear Year of league Description: Creates the table names needed for draft functions based on name and year Returns: Nothing
Объект / Конструктор игрока NFL: Draft() Параметры: $leagueName Название лиги $leagueYear Год лиги Описание: Создает имена таблиц, необходимые для функций драфта, на основе названия и года Возвращает: Ничего
function Draft($leagueName, $leagueYear) { $this->DraftTableName = CreateTableName(DRAFT_TABLE_NAME, $leagueName, $leagueYear); //$this->NFLPlayerTableName = CreateTableName(NFL_PLAYER_TABLE_NAME, $leagueName, $leagueYear); $this->CNFLPlayer = new NFLPlayer($leagueName, $leagueYear); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdraft($year, $array){\n\t\t\n$players = get_players_assoc ();\t\n$teaminfo = get_teams();\n\n$printit .= '<div class=\"panel panel-dark\">';\n$printit .= '<div class=\"panel-heading\">';\n\t\t$printit .= '<h3 class=\"panel-title\">'.$year.' Draft</h3>';\n\t$printit .= '</div>';\n\t$printit .= '<div cla...
[ "0.5843503", "0.5770692", "0.57104695", "0.5677765", "0.56389207", "0.5218976", "0.51102465", "0.50977784", "0.50941426", "0.5091895", "0.50846416", "0.5052785", "0.50291646", "0.50090355", "0.4983044", "0.49156848", "0.48963502", "0.48931393", "0.48772466", "0.48681837", "0....
0.8381897
0
/ Method: DoQuery() Parameters: None Description: Runs a generic query from the base class after having it's query set Returns: Nothing
Метод: DoQuery() Параметры: Нет Описание: Выполняет общий запрос из базового класса после его установки Запрос возвращает: Ничего
function DoQuery() { parent::DoQuery(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function query($query);", "abstract public function query($query);", "abstract public function query($query);", "protected abstract function query($query);", "protected abstract function _query($query);", "abstract public function query();", "abstract public function query();", "funct...
[ "0.7621855", "0.7621855", "0.7621855", "0.76191884", "0.7616766", "0.75460273", "0.75460273", "0.7438568", "0.73740464", "0.7244956", "0.71704555", "0.71704555", "0.71704555", "0.71704555", "0.71704555", "0.7079307", "0.7072298", "0.7061306", "0.7041044", "0.7041044", "0.7041...
0.8173749
0
/ Function: IsInitialized() Parameters: None Description: Determines if the draft records exist Returns: True if the records exist else false
Функция: IsInitialized() Параметры: Нет Описание: Определяет, существуют ли записи черновика Возвращает: Истина, если записи существуют, иначе ложь
function IsInitialized() { $method = "IsInitialized()"; $retval = true; $query = "Select * FROM $this->DraftTableName"; $result = mysql_query ($query) or die("$method query failed $query"); //determine if the draft was set up if (mysql_num_rows($result) == 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isInitialized()\n {\n return is_integer($this->ID) && $this->ID > 0;\n }", "public function hasRecords(): bool;", "public function isLoaded()\n {\n return isset($this->schema['_options']['pk']);\n }", "static public function hasInitialised () {\n return (self::$_p...
[ "0.6770602", "0.67004544", "0.6563099", "0.65236557", "0.6375527", "0.63397795", "0.6324761", "0.6270696", "0.6264725", "0.61797756", "0.6156779", "0.61230654", "0.6112746", "0.6107847", "0.61065024", "0.61060584", "0.6099302", "0.6095996", "0.60915315", "0.60784656", "0.6075...
0.794956
0
Extract values from the provided object Extracts values via the object's getArrayCopy() method.
Извлекает значения из предоставленного объекта. Извлекает значения с помощью метода getArrayCopy() объекта.
public function extract($object) { if (!is_callable(array($object, 'getArrayCopy'))) { throw new Exception\BadMethodCallException(sprintf( '%s expects the provided object to implement getArrayCopy()', __METHOD__ )); } $data = $object->getArray...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function extract($object): array;", "public function extract($object);", "public function extract($object);", "public function getArrayCopy(){\n return get_object_vars($this);\n }", "public function getArrayCopy(){\n return get_object_vars($this);\n }", ...
[ "0.75780505", "0.7282481", "0.7282481", "0.7083778", "0.7061537", "0.70465755", "0.7033336", "0.7033336", "0.700979", "0.6994263", "0.69506776", "0.69430345", "0.69409615", "0.69409615", "0.69409615", "0.6919661", "0.6919661", "0.6919661", "0.6919661", "0.6919661", "0.6910552...
0.758677
0
Get the uploaded file path
Получить путь загруженного файла
public function getUploadedFilePath() { return $this->uploadedFilePath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUploadPath() {\n\t\treturn $this->getFilesPath()->append($this->getUploadSegment());\n\t}", "public function getPath()\n {\n return $this->file->get('tmp_name');\n }", "public function getUploadPath()\r\n {\r\n return $this->upload_path;\r\n }", "private function ...
[ "0.822038", "0.8143979", "0.81172353", "0.8064822", "0.8041538", "0.7991813", "0.79764026", "0.7928874", "0.7805633", "0.7798392", "0.7794233", "0.77783835", "0.7748552", "0.771871", "0.7712705", "0.7686293", "0.76799613", "0.76682705", "0.7634727", "0.76337475", "0.75759786"...
0.82728964
0
Does a folder exist
Существует ли папка
public abstract function folderExists($path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function folder_exist($folder)\n{\n // Get canonicalized absolute pathname\n $path = realpath($folder);\n\n // If it exist, check if it's a directory\n return ($path !== false AND is_dir($path)) ? $path : false;\n}", "function folder_exist($folder)\n{\n $path = realpath($folder);\n\n // If it e...
[ "0.8116682", "0.80915725", "0.80614513", "0.8040494", "0.80304366", "0.7952682", "0.78971374", "0.7887902", "0.76730794", "0.7524918", "0.74946827", "0.7465879", "0.74603164", "0.74525946", "0.7443399", "0.7433759", "0.7408322", "0.7369489", "0.73507804", "0.7314866", "0.7306...
0.8155078
0
Set a file's permissions
Установить права доступа к файлу
public abstract function setPermissions($filepath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPermission($file, $set = false) {\r\n\t\tif (!file_exists($file)) return false;\r\n\t\t$base = str_replace('/system', '', DIR_SYSTEM);\r\n\t\t$perms = fileperms($file);\r\n\t\tif (!$set) {\r\n\t\t\tif (!is_writable($file)) {\r\n\t\t\t\tif ($this->ftp_connection) {\r\n\t\t\t\t\t$file = str_replac...
[ "0.73590136", "0.73566735", "0.7282476", "0.72137505", "0.7160538", "0.71346384", "0.71346384", "0.7117794", "0.70024383", "0.68645847", "0.68405634", "0.68232363", "0.6820459", "0.6763577", "0.6760058", "0.6743658", "0.67237544", "0.66951114", "0.66731995", "0.6642501", "0.6...
0.85482466
0
Creates a new Record from the passed model.
Создаёт новый Record на основе переданной модели.
public static function fromModel(Model $model) { $record = new Record($model->getTable(), $model->context); $record->model = $model; return $record; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createRecord(Model $model = null): Record\n {\n return new Record($this, $model);\n }", "public function create(Model $model) ;", "public function create(Record $record): Record;", "public static function model($model)\n {\n return new static($model);\n }", "public...
[ "0.82175714", "0.7353119", "0.70485276", "0.7033366", "0.69527006", "0.68880534", "0.686657", "0.6849002", "0.6843341", "0.6840846", "0.67922455", "0.6735188", "0.6707959", "0.6694667", "0.6677718", "0.6660097", "0.66205037", "0.6614678", "0.66105586", "0.6609078", "0.6604936...
0.8514283
0
Gets the underlying model represented by this record. If the record has not been created from a model, then the model will be loaded from the database.
Получает модель, представленную этим записью. Если запись не была создана из модели, то модель будет загружена из базы данных.
public function getModel() { if (!$this->model) { $id = $this->data[$this->table->getPrimaryKeyName()]; return $this->table->loadModel($id, $this->context); } return $this->model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\n {\n if (empty($this->model)) {\n $this->model = $this->buildModel();\n }\n\n return $this->model;\n }", "public function _get_Model() {\n return $this->_model;\n }", "public function getModel()\n {\n \tswitch ($this->model_type){\n...
[ "0.80677986", "0.7790804", "0.7737038", "0.7724932", "0.77096796", "0.77073556", "0.7704763", "0.76939946", "0.76723605", "0.76642305", "0.7615569", "0.7615569", "0.7610415", "0.7565621", "0.75621206", "0.7553104", "0.75372463", "0.75286776", "0.75286776", "0.75286776", "0.75...
0.81512284
0
Returns the indices path for the given hash in the multidimensional array of buckets.
Возвращает путь индексов для заданного хеша в многомерном массиве ящиков.
protected function getBucketsArrayIndicesPathForHash($hash) { $nodePath = []; foreach (self::DIMENSION_PRIMES as $dimensionPrime) { $index = $hash % $dimensionPrime; if ($index < 0) { $index = $dimensionPrime + $index; } $nodePath[] = $index; } return $nodePath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function findHashInIndexes(string $hash): ?Location;", "private function getArrayIndex(int $hash): int {\n return $hash % $this->maxSize;\n\n }", "function getPathFromHash($hash)\n{\n return substr(chunk_split(substr($hash,0,6),2,'/'), 0, -1);\n}", "public function getPartitioned...
[ "0.6353457", "0.6127774", "0.60515106", "0.5433275", "0.5387014", "0.5383707", "0.5367645", "0.5286564", "0.52708167", "0.51978415", "0.5033581", "0.5026102", "0.49562958", "0.49181226", "0.4754758", "0.4754627", "0.47467032", "0.47371534", "0.47344646", "0.47128478", "0.4659...
0.8530546
0
Return a duplicated version of $request with the new $newpath as request_uri.
Верните дублированную версию $request с новым $newpath в качестве request_uri.
private function rebuildRequest(Request $request, string $newPath): Request { $server = $request->server->all(); $server['REQUEST_URI'] = $newPath; return $request->duplicate(null, null, null, null, null, $server); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function rewriteRequest()\n {\n $this->request->server->set('REQUEST_URI', $this->path);\n $this->request->initialize(\n $this->request->query->all(),\n $this->request->request->all(),\n $this->request->attributes->all(),\n $this->request->cookie...
[ "0.6556126", "0.6147185", "0.58940345", "0.5840043", "0.56455535", "0.5609078", "0.555787", "0.5541075", "0.55401534", "0.55396295", "0.5532048", "0.5520003", "0.5434692", "0.54162276", "0.5389198", "0.53882426", "0.53816843", "0.53780556", "0.53507197", "0.53212047", "0.5321...
0.803391
0
Check if a booking is confirmed or if the pending status is not yet expired
Проверьте, подтверждена ли бронь или не истек еще статус "ожидание"
private function isBookingConfirmedOrPendingNotExpired($booking, $max_life_pending_booking): bool { //booking is confirmed if ($booking->status == 'confirmed') { return true; } //for a gust user, booking in pending state could be expired or not expired if (Auth::user() == null) { return (Carb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mbc_booking_cancBooking() {\n\tglobal $wpdb;\n\n\tif ( !current_user_can( mbc_booking_admin_capabilities() ) ) {\n\t\twp_die(\"Go away\");\n\t}\n\tif (isset($_GET[\"id\"])) {\n\t\t$bookingId = intval($_GET[\"id\"]);\n\t\t$wpdb->update($wpdb->prefix.'mbc_bookings', array('state' => 'canceled'), array('id' ...
[ "0.69086426", "0.65778595", "0.6515561", "0.64855164", "0.6467837", "0.63847154", "0.6372412", "0.6341857", "0.63351", "0.6333049", "0.63147897", "0.62795043", "0.62615925", "0.62398994", "0.6230497", "0.622174", "0.62212956", "0.61826813", "0.6180585", "0.6163366", "0.615639...
0.70174396
0
countKeyHits. Counts the number of adapters containing the specified key.
countKeyHits. Считает количество адаптеров, содержащих указанный ключ.
public function countKeyHits($key) { $hits = 0; foreach ($this->adapters as $adapter) { if ($adapter->isConnected()) { foreach ($adapter->keys($key) as $k) { $hits++; } } } return $hits; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count($key): int;", "public function size($key);", "public function count($key = null)\r\n {\r\n return count($this->get($key));\r\n }", "public function countDocs(string $key): int;", "protected function getCount($key):int\n {\n if ($count = Redis::get($key)){\n ...
[ "0.6840595", "0.64595324", "0.64133066", "0.63998955", "0.62894696", "0.60219693", "0.59263796", "0.5776057", "0.5593646", "0.5573359", "0.5568723", "0.5557903", "0.5511661", "0.5487889", "0.5482334", "0.5461879", "0.5437012", "0.5415684", "0.5344816", "0.5324585", "0.5323484...
0.82091445
0
getClockDrift. Calculates the clock drift.
getClockDrift. Вычисляет смещение часов.
private function getClockDrift() { return ($this->defaultLockValidityTime * self::CLOCK_DRIFT_FACTOR) + 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function drift()\n {\n return $this->drift;\n }", "public function getDrift() {\n $nbDaysDrift = 0;\n $myEstim = 0;\n\n foreach ($this->issueList as $issue) {\n $nbDaysDrift += $issue->getDrift();\n $myEstim += $issue->effortEstim + $issue->effortAdd;\n ...
[ "0.63682836", "0.5517219", "0.543885", "0.5177556", "0.5100331", "0.5091206", "0.48899475", "0.48096234", "0.48089436", "0.4778266", "0.4662647", "0.46597323", "0.46469566", "0.46263748", "0.45655698", "0.45653906", "0.45519435", "0.45460594", "0.44898897", "0.44598025", "0.4...
0.7560892
0
waitRandomDelay. Makes the script sleep for a random time but using the max delay specified.
waitRandomDelay. Замедляет выполнение скрипта на случайное время, но используя указанное максимальное задержку.
private function waitRandomTime() { $time = mt_rand(floor($this->retryMaxDelay / 2), $this->retryMaxDelay) * 1000; usleep($time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function random_sleep() {\r\n // sleep(rand(1, 4));\r\n sleep(1);\r\n}", "protected function delay()\n\t{\n\t\t$delay = 1;\n\n\t\tif (is_numeric($this->delay)) {\n\t\t\t$delay = $this->delay;\n\t\t} elseif (is_array($this->delay)) {\n\t\t\t$delay = rand($this->delay[0], $this->delay[1]);\n\t\t}\n\n\t\t// S...
[ "0.64069027", "0.6242651", "0.5957308", "0.59241796", "0.5896552", "0.5878506", "0.57823896", "0.5753143", "0.5687033", "0.55928594", "0.5521977", "0.5480489", "0.5433716", "0.5375993", "0.5365034", "0.5331622", "0.53267753", "0.5311682", "0.530095", "0.5282677", "0.51718515"...
0.758629
0
releaseLock. Releases the specified lock. This method also works as a cleanup when the lock has not been acquired because of the quorum. The return value specifies if the locks was actually acquired (true) or not (false), but this does not influence the removal of the keys in the adapters.
releaseLock. Освобождает указанный замок. Этот метод также используется для очистки при том, что замок не был захвачен из-за квоты. Значение возвращаемого значения указывает, был ли замок на самом деле захвачен (true) или нет (false), но это не влияет на удаление ключей в адаптерах.
public function releaseLock(LockInterface $lock) { $key = $this->generateKey($lock); $i = 0; foreach ($this->adapters as $adapter) { if ($adapter->isConnected() && $adapter->del($key)) { $i++; } } return $this ->quorum ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function lockRelease()\n {\n if (isset($this->redis, $this->lockKey) && $this->isLocked) {\n if ( ! $this->redis->delete($this->lockKey)) {\n if ($this->logger instanceof LoggerInterface) {\n $this->logger->error('SESSION_E_FREE_LOCK', [$this->lockKe...
[ "0.7399176", "0.7230919", "0.67737323", "0.65060693", "0.64259803", "0.63729244", "0.634263", "0.6320318", "0.62418693", "0.6233776", "0.6217381", "0.621439", "0.61929184", "0.6182465", "0.61543083", "0.6150135", "0.60553974", "0.6041167", "0.60403776", "0.6005182", "0.594978...
0.7673594
0
releaseAllLocks. Releases all the locks in every adapter.
releaseAllLocks. Освобождает все замки в каждом адаптере.
public function releaseAllLocks() { foreach ($this->getCurrentLocks('*') as $lock) { $this->releaseLock($lock); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearAllLocks()\n {\n foreach ($this->adapters as $adapter) {\n foreach ($adapter->keys('*') as $key) {\n $adapter->del($key);\n }\n }\n }", "public function releaseAll()\n {\n $type = Request::get('lockable_type');\n\n if(...
[ "0.76151574", "0.6516975", "0.60743725", "0.5745287", "0.56904185", "0.5574885", "0.5566256", "0.54918253", "0.544718", "0.5362755", "0.5210429", "0.5208888", "0.51562804", "0.5153496", "0.5144208", "0.5099146", "0.5092125", "0.5089699", "0.502435", "0.50204545", "0.49957314"...
0.8379798
0
clearAllLocks. Clears every lock (even the not acquired ones) in every adapter.
clearAllLocks. Очищает все замки (даже не захваченные) в каждом адаптере.
public function clearAllLocks() { foreach ($this->adapters as $adapter) { foreach ($adapter->keys('*') as $key) { $adapter->del($key); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function releaseAllLocks()\n {\n foreach ($this->getCurrentLocks('*') as $lock) {\n $this->releaseLock($lock);\n }\n }", "function SQLLock_ClearAll()\n {\n $this->Exec4DSQL (\"SQLLock_ClearAll\", \"\");\n }", "public function flushAll()\n {\n $this->...
[ "0.74681455", "0.6674583", "0.61198056", "0.6113541", "0.60888875", "0.60544294", "0.5942984", "0.5942984", "0.5902516", "0.5877635", "0.5831095", "0.58039606", "0.5786044", "0.5783873", "0.57365465", "0.571412", "0.5704599", "0.56524044", "0.5624156", "0.5623365", "0.5621306...
0.86579686
0
determineLastBatchId function. Determines the last batch id from the data_url page
Функция determineLastBatchId. Определяет последний идентификатор партии из страницы data_url
public function determineLastBatchId() { return date('Y-m-d', time()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastBatchId()\n {\n return $this->db_last_id;\n }", "public function findLastBatchId()\n {\n $qb = $this->createQueryBuilder('i')\n ->select('i, MAX(i.batchId) AS maxId')\n ;\n\n return (int) $qb->getQuery()->getSingleResult()['maxId'];\n }", ...
[ "0.7538638", "0.7291377", "0.7112387", "0.67373306", "0.67326456", "0.662339", "0.6553469", "0.6509067", "0.6509067", "0.6469043", "0.64537203", "0.6409424", "0.6387829", "0.63251394", "0.6239848", "0.62088543", "0.616636", "0.61311954", "0.61311954", "0.61274457", "0.6105603...
0.7483631
1
Get widget name. Retrieve Portfolio About Edu and Exp widget name.
Получить имя виджета. Получить имя виджета "Portfolio About Edu and Exp".
public function get_name() { return 'portfolio-about-edu-and-exp-widget'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_name() {\n\t\treturn 'portfolio-services-widget';\n\t}", "public function get_title() {\n\t\treturn __( 'portfolio-about-edu-and-exp-widget', 'portfolio-elementor' );\n\t}", "public static function get_name() {\r\n\t\treturn __('Pro Widget', 'psts');\r\n\t}", "public function get_name() {...
[ "0.74496925", "0.7122129", "0.70489997", "0.68780535", "0.68123746", "0.67939955", "0.66988504", "0.66382974", "0.6549069", "0.6469376", "0.64654726", "0.6390604", "0.63308203", "0.6304287", "0.6157861", "0.6052374", "0.60351443", "0.6002562", "0.59855986", "0.59251016", "0.5...
0.82239497
0
Get widget title. Retrieve portfolioabouteduandexpwidget title.
Получить заголовок виджета. Получить заголовок портфолио abouteduandexpwidget.
public function get_title() { return __( 'portfolio-about-edu-and-exp-widget', 'portfolio-elementor' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_title() {\n\t\treturn __( 'portfolio-services-widget', 'portfolio-elementor' );\n\t}", "function getWidgetTitle() {\n if (!isset($this->widgetTitle)) {\n if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {\n Toolbox::logDebug(\"PluginMydashboardModule::getWidgetTi...
[ "0.80988985", "0.7676796", "0.7614871", "0.7362979", "0.7304894", "0.7207428", "0.7195341", "0.6970688", "0.69429725", "0.68276703", "0.67905426", "0.6758802", "0.67401063", "0.67317533", "0.6730646", "0.67192346", "0.6709798", "0.66990817", "0.66911805", "0.668735", "0.66826...
0.8441656
0
Render about edu and exp widget output on the frontend. Written in PHP and used to generate the final HTML.
Отображение данных о образовании и опыте работы в виде виджета на фронтенде. Написан на PHP и используется для генерации окончательного HTML.
protected function render() { $settings = $this->get_settings_for_display(); ?> <!-- About Edu and Exp Output Start Here --> <div class="about-education-experience"> <ul> <?php foreach ( $settings['portfolio_about_edu_and_exp_list'] as $item ) { $about_edu_and_exp_organization ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render()\n\t{\n\n\t\t$tags\t=\tarray(\n\n\t\t\t\"{{case_key}}\"\t\t\t\t=>\t$this->case_key,\n\t\t\t\"{{code}}\"\t\t\t\t\t=>\t$this->policy_code,\n\t\t\t\"{{company_id}}\"\t\t\t=>\t$this->company_id,\n\t\t\t\"{{text_string}}\"\t\t\t=>\t$this->text_string,\n\t\t\t\"{{logo}}\"\t\t\t\t\t=>\t$this->logo...
[ "0.6902599", "0.6626286", "0.64963657", "0.64169955", "0.6416835", "0.6407015", "0.6406469", "0.63958687", "0.6363086", "0.6341392", "0.6240848", "0.6240057", "0.6229465", "0.6224518", "0.6220256", "0.6207851", "0.6185602", "0.6178305", "0.6176906", "0.6169254", "0.6168293", ...
0.71171224
0
Returns the identifier in azure active directory for a given user
Возвращает идентификатор в Azure Active Directory для заданного пользователя
protected function getAzureUserIdentifier(User $user) { return $this->getUserService()->getAzureUserIdentifier($user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserIdentifier(): string;", "public function getUserNameIdentifier();", "protected function getUserIdentifier(): string\n {\n return $this->getValidWebsiteUser()->getIdentifier();\n }", "public function getUserIdentifier(): string\n {\n return (string) $this->id;\n ...
[ "0.7235009", "0.70585465", "0.6929142", "0.68605536", "0.68605536", "0.6775956", "0.67607903", "0.67607903", "0.6696933", "0.66435087", "0.6638824", "0.6638824", "0.6638824", "0.6638824", "0.6638824", "0.66222817", "0.657799", "0.65761507", "0.6526593", "0.65089256", "0.64925...
0.7696408
0
Syncs the given users to the given groups. Optionally excluding some users from being removed
Синхронизует заданных пользователей с заданными группами. Возможна опциональная исключение некоторых пользователей из удаления
public function syncUsersToGroup($groupId, $users = array(), $excludedUsersForRemoval = []) { $group = $this->groupRepository->getGroup($groupId); if (!$group instanceof Group) { throw new \RuntimeException( 'The group with identifier ' . $groupId . ' could not be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function syncGroups(...$groups)\n {\n $this->groups()->detach();\n\n $retval = $this->assignGroup($groups); \n\n // if ($this instanceof Contact){\n // $event = new ContactEvent($this);\n // $event->setGroup($groups[0]);\n // event(ContactEvents::GROU...
[ "0.64826804", "0.6259686", "0.62380445", "0.62261903", "0.619611", "0.61420226", "0.5917106", "0.58822614", "0.5862244", "0.5760215", "0.57210034", "0.57160145", "0.5669227", "0.5589384", "0.5468841", "0.54642516", "0.54432875", "0.5437751", "0.54027003", "0.539381", "0.53868...
0.71905935
0
Returns the FTP log.
Возвращает журнал FTP.
public function log() { $config = $this->config('dam.ftp_settings'); $logFilePath = $config->get('log'); $header = [ 'sno.' => $this->t('SNo'), 'log' => $this->t('Log'), ]; $rows = []; if (!empty($logFilePath)) { $file = file_get_contents($logFilePath); if (!empty($file))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_log() {\n\t\treturn $this->logger->get_log();\n\t}", "public function getLogFile() {}", "function get_log()\n\t{\n\t\treturn $this->log;\n\t}", "public function getLogs()\n {\n return file($this->getLogger()->getFullLogFile(), FILE_IGNORE_NEW_LINES);\n }", "private function...
[ "0.68799937", "0.68461037", "0.6756436", "0.6751665", "0.6662082", "0.6615404", "0.6611185", "0.66021705", "0.6575278", "0.6566842", "0.6566842", "0.6566842", "0.65490335", "0.654038", "0.6535507", "0.652522", "0.6516851", "0.6508628", "0.65056777", "0.64836127", "0.645078", ...
0.7058227
0
Create FTP log file Zip.
Создать архив лога FTP.
public function createFTPLogZip() { if (!class_exists('ZipArchive')) { throw new \Exception('Requires the "zip" PHP extension to be installed and enabled in order to create ZipArchive of FTP logs.'); return FALSE; } $config = $this->config('dam.ftp_settings'); $logFilePath = $config->get('l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createLogZip()\n {\n $zip = new ZipArchive();\n $zipFileName = 'C:/Users/Alvydas/catalog/laravel/catalog/storage/logs/laravel-log.zip';\n\n if ($zip->open($zipFileName, ZipArchive::CREATE) === TRUE){\n $zip->addFile('C:/Users/Alvydas/catalog/laravel/catalog/storag...
[ "0.7646464", "0.67946655", "0.63530445", "0.62348235", "0.6226156", "0.6219642", "0.6208961", "0.6118792", "0.6118792", "0.59410375", "0.5905465", "0.58963734", "0.58244264", "0.5778511", "0.57729274", "0.57195115", "0.5680734", "0.56771004", "0.5649578", "0.5644319", "0.5639...
0.8311393
0
Returns Server disk space.
Возвращает объем дискового пространства сервера.
public function damServerSpace() { $dsTotal = disk_total_space("/"); $dsTotalsBytes = $this->dataSize($dsTotal); $dsFree = disk_free_space("/"); $dsFreeBytes = $this->dataSize($dsFree); $dsUsed = $dsTotal - $dsFree; $dsUsedBytes = $this->dataSize($dsUsed); return [ '#markup' => $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHardDisks()\n {\n return $this->sys->getHardDisks();\n }", "function getDiskQuota()\n\t{\n\t\treturn $this->disk_quota;\n\t}", "public function diskSpace($drive = null)\n {\n // Get default Drive if this function is called with no parameters.\n // In Windows this will most oft...
[ "0.7007308", "0.6958438", "0.6818605", "0.6753868", "0.6688268", "0.66807556", "0.6600584", "0.6595788", "0.6574201", "0.65306556", "0.65203416", "0.65203416", "0.6519797", "0.651018", "0.6504563", "0.64991915", "0.64991915", "0.64991915", "0.64801353", "0.6464774", "0.646177...
0.819822
0
Get all junk files.
Получить все ненужные файлы.
public function getDamJunkFiles() { $query = \Drupal::database()->select('file_extend', 'fe') ->fields('fe', ['id', 'name', 'directory']); $query->condition('fe.trash', 1, '='); $result = $query->execute()->fetchAll(); $header = [ 'id' => $this->t('ID'), 'name' => $this->t('Name'), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllFiles()\n\t{\n\t\treturn $this->all_files;\n\t}", "public function getAllFiles()\n {\n return $this->all_files;\n }", "public function getFiles ()\n\t{\n\t\treturn $this->getFilesInDirectory('');\n\t}", "protected function getSiteFiles()\n {\n $files = array_filte...
[ "0.6519955", "0.64756346", "0.64432603", "0.633138", "0.62624556", "0.62159693", "0.6213361", "0.61926126", "0.61482394", "0.6147887", "0.6141552", "0.613249", "0.6085737", "0.6081267", "0.60785574", "0.6061626", "0.6060063", "0.6055297", "0.60497844", "0.6038709", "0.6030636...
0.70225465
0
Controller for file comments.
Контроллер для комментариев к файлам.
public function fileComment(Request $request) { $file_id = $request->query->get('file'); $comment = $request->query->get('comment'); $comment_save = FALSE; if (is_numeric($file_id) && isset($comment)) { $comment_entity = Comment::create([ 'comment_type' => 'file', 'entity_type' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fileGetComments(Request $request) {\n $file_id = $request->query->get('file');\n $cids = \\Drupal::entityQuery('comment')\n ->condition('entity_id', $file_id)\n ->condition('entity_type', 'file')\n ->sort('cid', 'DESC')\n ->execute();\n $comments = [];\n foreach ($ci...
[ "0.6766918", "0.6623874", "0.6598249", "0.65850866", "0.6531813", "0.642024", "0.6400029", "0.6394927", "0.6384645", "0.6373231", "0.63082916", "0.6247524", "0.62237895", "0.62046134", "0.61917794", "0.6177318", "0.6166217", "0.6148551", "0.6142192", "0.6141417", "0.6135354",...
0.724332
0
Get comments of a file.
Получить комментарии файла.
public function fileGetComments(Request $request) { $file_id = $request->query->get('file'); $cids = \Drupal::entityQuery('comment') ->condition('entity_id', $file_id) ->condition('entity_type', 'file') ->sort('cid', 'DESC') ->execute(); $comments = []; foreach ($cids as $cid) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_comments($file) {\n\t\t\t$url = $this->build_url(\"/files/$file/comments\");\n\t\t\treturn json_decode($this->get($url), true);\n\t\t}", "public function getComments();", "public function getComments();", "public function getComments();", "public function getComments();", "public func...
[ "0.7931181", "0.70351243", "0.70351243", "0.70351243", "0.70351243", "0.6969428", "0.6935165", "0.68724936", "0.67635524", "0.65924025", "0.65663546", "0.65290457", "0.6473825", "0.63803726", "0.63745695", "0.6344809", "0.6335521", "0.63278425", "0.63275814", "0.6278137", "0....
0.72359294
1
Lazy load function to get the dropbox database table
Функция для ленивой загрузки таблицы базы данных Dropbox
private function get_dropbox_table() { $this->dropbox_table = Database :: get_course_table(TABLE_DROPBOX_FILE); return $this->dropbox_table; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function getDbTable();", "public static function getDbTable();", "public function get_db();", "function _get_table() { return $this->table(); }", "public function getTable() {}", "public function getTable() {}", "protected function getTable() {}", "function dbGetTables();", "functio...
[ "0.69285494", "0.6845259", "0.68421346", "0.6824323", "0.67924595", "0.67912173", "0.6708417", "0.6598474", "0.65515167", "0.6525333", "0.6525333", "0.6525333", "0.6461938", "0.6458951", "0.64532965", "0.64532965", "0.64532965", "0.64532965", "0.64532965", "0.64532965", "0.64...
0.7530635
0
Returns whether an order exists for the given email.
Возвращает наличие заказа для заданного email.
public function existsForEmail(string $email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function emailExists($email);", "public function emailExists($email);", "private static function _isOrderCodeExists($orderCode)\n\t{\n\t\treturn Order::where('code', '=', $orderCode)->exists();\n\t}", "public function get_account_email_exists($email)\n {\n\n $query = $this->db->q...
[ "0.68221563", "0.68221563", "0.6807997", "0.6807928", "0.67990464", "0.67887306", "0.67788696", "0.6756277", "0.6740227", "0.6711632", "0.6681449", "0.6677382", "0.66636795", "0.66612846", "0.66464853", "0.66295326", "0.6610355", "0.6594125", "0.65873694", "0.6579158", "0.656...
0.71188587
0
Finds the sales by origin customer, optionally filtered by states.
Находит продажи по клиентам по месту происхождения, при необходимости фильтруя по штатам.
public function findByOriginCustomer(CustomerInterface $customer, array $states = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCustomerSales($startIndex, $maxRecords, $sort, $sort_dir, $selectMethod, $location, $region, $slsm, $dealerType, $specialType,$accountIDs, $export = false, $fields = array()) {\r\n\t\tsession_save_path(self::sessionSavePath);\r\n\t\tsession_start();\r\n\t\tself::sugarDBConnect ();\r\n\t\t\r\n\t\t$prima...
[ "0.5970692", "0.5815932", "0.5714417", "0.5470799", "0.5434901", "0.54046124", "0.53719634", "0.53690255", "0.5346919", "0.5344498", "0.5340595", "0.53262657", "0.53004813", "0.52762604", "0.52757996", "0.5262385", "0.5261877", "0.5248851", "0.522367", "0.5222023", "0.5198113...
0.72688377
0
Finds orders completed yesterday.
Находит заказы, завершенные вчера.
public function findCompletedYesterday(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchCompletedToday()\n { \n return $this->order\n ->where('status', 6)\n ->whereBetween('updated_at', [\n Carbon::now()->startOfDay(), \n Carbon::now()->endOfDay()\n ])\n ...
[ "0.6727235", "0.62534493", "0.6104751", "0.60249054", "0.5994359", "0.58271474", "0.5817349", "0.5752755", "0.5705449", "0.57052207", "0.55988854", "0.55537426", "0.55534", "0.55436057", "0.54507124", "0.5400691", "0.53366387", "0.5310281", "0.5295337", "0.52879393", "0.52725...
0.7001803
0
Returns the regular (payment term less) due.
Возвращает обычный (меньше срока платежа) срок.
public function getRegularDue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentDueDefault()\n\t{\n\t\treturn now() + $this->setting('payment_due');\n\t}", "public function getDueOn()\r\n\t{\r\n\t\treturn $this->due_on;\r\n\t}", "public function getMinimumPaymentDue() {\n\t\treturn $this->minimumPaymentDue;\n\t}", "public function getTotalPaymentDue() {\n\t\tre...
[ "0.6828505", "0.67738545", "0.6695068", "0.6507703", "0.6498654", "0.64081734", "0.6406826", "0.64014995", "0.63516164", "0.63516164", "0.6298793", "0.6298182", "0.6277451", "0.622848", "0.6177781", "0.6160258", "0.6125404", "0.60511804", "0.60511804", "0.6050442", "0.6047278...
0.7682946
0
Returns the regular (payment term less) due orders.
Возвращает регулярные (с меньшим сроком оплаты) заказы.
public function getRegularDueOrders();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOutstandingExpiredDueOrders();", "public function getOutstandingPendingDueOrders();", "public function findDueOrders();", "public function getRemainingOrders();", "public function getOutstandingFallDueOrders();", "public function getRegularDue();", "public function getNotPaidOrders()...
[ "0.67925507", "0.67881477", "0.640165", "0.6312783", "0.63127047", "0.60519916", "0.5862669", "0.5861366", "0.5664704", "0.55880284", "0.5528872", "0.55276805", "0.5457782", "0.54522234", "0.54325575", "0.5419286", "0.5375509", "0.5365853", "0.53626627", "0.53369397", "0.5327...
0.76389605
0
Returns the customers expired due.
Возвращает клиентов, истекшие срок действия.
public function getOutstandingExpiredDue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_sandler_debt_deadline_expired()\n {\n return Sandler::where('is_paid', 0)->where('paid_date', '<=', date('Y-m-d'))->get();\n }", "public static function paymentExpired(){\n $cust = new Customer();\n $customerPaymentExpiryList = $cust->select('gym_id', 'name', 'phone...
[ "0.70017946", "0.6804156", "0.67873764", "0.6630622", "0.66158754", "0.66042846", "0.6464659", "0.63245577", "0.62878877", "0.62843436", "0.6269513", "0.6242591", "0.6242591", "0.6237752", "0.6236025", "0.62287414", "0.6183491", "0.6150054", "0.6102669", "0.6099202", "0.60874...
0.7046241
0
Returns the customers expired due orders.
Возвращает просроченные заказы клиентов.
public function getOutstandingExpiredDueOrders();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOutstandingPendingDueOrders();", "public static function paymentExpired(){\n $cust = new Customer();\n $customerPaymentExpiryList = $cust->select('gym_id', 'name', 'phone', 'package_end_date')->where('payment_expiry', $this->paymentExpired)->get();\n foreach ($customerPaym...
[ "0.671556", "0.6665436", "0.6523486", "0.64795995", "0.64737487", "0.6383338", "0.6333535", "0.62325656", "0.6174786", "0.61489016", "0.6028736", "0.60242796", "0.59682107", "0.59047556", "0.587309", "0.5817807", "0.5800743", "0.5774139", "0.57732004", "0.576084", "0.5747288"...
0.7847072
0
Returns the customers fall due orders.
Возвращает заказы клиентов, срок оплаты которых наступил.
public function getOutstandingFallDueOrders();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOutstandingPendingDueOrders();", "public function getOutstandingExpiredDueOrders();", "public function getRegularDueOrders();", "public function findDueOrders();", "public function getRemainingOrders();", "public function getOutstandingFallDue();", "public function getOutstandingPend...
[ "0.6854875", "0.6821344", "0.6748629", "0.6724701", "0.62430984", "0.575232", "0.5531363", "0.54626286", "0.5459909", "0.5393389", "0.5381323", "0.5378357", "0.5319904", "0.5307354", "0.5254775", "0.52529794", "0.5252118", "0.5239342", "0.523391", "0.5218677", "0.5179385", ...
0.7440461
0
Returns the customers pending due.
Возвращает ожидаемые платежи клиентов.
public function getOutstandingPendingDue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOutstandingPendingDueOrders();", "public function findRemainingForConfirmation()\n {\n return $this->bloodRequest->with('blood_type')->where('completed', '=', 1)->where('confirmed','!=',1)->orderBy('due_date')->get();\n }", "public function pendingDeliveryNotes()\n {\n ...
[ "0.6775154", "0.6614331", "0.6538819", "0.653751", "0.63767016", "0.62937874", "0.6224823", "0.6157819", "0.60962725", "0.60909104", "0.6033297", "0.60016274", "0.5982347", "0.5950516", "0.5950516", "0.5933808", "0.5930184", "0.58992034", "0.5881022", "0.58793724", "0.5869914...
0.72090846
0
Returns the customers pending due orders.
Возвращает заказы на оплату клиентов.
public function getOutstandingPendingDueOrders();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRegularDueOrders();", "public function getOutstandingExpiredDueOrders();", "public function getRemainingOrders();", "public function getOutstandingPendingDue();", "public function findDueOrders();", "private static function get_pending_requests()\n {\n return FormOrder::where...
[ "0.72658545", "0.7224406", "0.68863577", "0.6772357", "0.6770159", "0.6552664", "0.6472933", "0.6273798", "0.6243857", "0.6240131", "0.6204395", "0.6167193", "0.6105806", "0.6066637", "0.6061772", "0.6039807", "0.6033747", "0.60266125", "0.59160876", "0.58652824", "0.58375657...
0.7750276
0
Returns the remaining (that needs to be invoiced) total.
Возвращает оставшуюся (неоплаченную) общую сумму.
public function getRemainingTotal();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remaining_fee() {\n\t\treturn $this->input_count-$this->output_count;\n\t}", "public function totalDeposit()\r\n {\r\n $total = 0.0;\r\n foreach ($this->items->find_all() as $item)\r\n {\r\n if ($item->refund > 0)\r\n {\r\n ...
[ "0.75442195", "0.7464704", "0.7360271", "0.72704893", "0.7259883", "0.72524375", "0.7252268", "0.7193344", "0.7075459", "0.70598036", "0.7046294", "0.7033429", "0.6973464", "0.69701666", "0.6925436", "0.69220114", "0.69061005", "0.6881541", "0.68779737", "0.6865604", "0.68568...
0.8812313
0
Returns the remaining (that needs to be invoiced) orders.
Возвращает оставшиеся (неоплаченные) заказы.
public function getRemainingOrders();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOutstandingPendingDueOrders();", "public function getOutstandingExpiredDueOrders();", "public function getOutstandingFallDueOrders();", "public function getRegularDueOrders();", "public function get_remaining_refund_items()\n {\n }", "public function getCompletedOrders()\...
[ "0.78019625", "0.75963736", "0.71684265", "0.69128263", "0.68309414", "0.67914313", "0.66309154", "0.65887815", "0.6451458", "0.62975657", "0.6280467", "0.62528", "0.62364393", "0.6207924", "0.61912227", "0.61806244", "0.6177555", "0.6177555", "0.6175136", "0.6126542", "0.612...
0.8731191
0
Starts a section buffer in a subpage. All data within the call of this and the call of the end_section method will be buffered and stored by the sections' name which will be accessed by the master page
Начинает буфер секции в подстранице. Все данные внутри вызова этого метода и вызова метода end_section будут буферизованы и сохранены по имени секций, которые будут доступны из главной страницы
public static function start_section($section_name) { ob_start(); //Start an output buffer View::$open_section = $section_name; //Store the section's name }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _section_start($section)\n {\n array_push($this->_last_section, $section);\n ob_start();\n }", "public function startSection($section, $content = '') {\n if ($content === '') {\n ob_start() && ($this->sectionStack[] = $section);\n } else {\n $this->extendSec...
[ "0.6623516", "0.6487093", "0.6435034", "0.6411222", "0.6411222", "0.64017916", "0.6393575", "0.61826557", "0.57316977", "0.5714959", "0.5699299", "0.56587046", "0.5616886", "0.55476856", "0.55422884", "0.5512732", "0.5438199", "0.5435364", "0.5401348", "0.5401348", "0.5354336...
0.70677406
0
Ends a section's buffer that has been started by start_section
Завершает буфер секции, начатый start_section
public static function end_section() { //Check if there is a section waiting to be closed if (!empty(View::$open_section)) { View::$data[View::$open_section] = ob_get_clean(); //Close buffer, return and store content in data array View::$open_section = ''; //Reset open section } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sectionEnd() {}", "public function EndSection();", "protected function _section_end()\n {\n $last = array_pop($this->_last_section);\n $this->_section_extend($last, ob_get_clean());\n\n return $last;\n }", "function section_close() {\n }", "function end()\r\n\t...
[ "0.75629956", "0.7492075", "0.6736363", "0.5786357", "0.5678513", "0.56742436", "0.5656768", "0.56504124", "0.5602187", "0.5587677", "0.5587677", "0.55790746", "0.5569389", "0.556895", "0.55653965", "0.5561614", "0.5535302", "0.55075485", "0.5482056", "0.5479053", "0.546151",...
0.758081
0
Load the content of a specific section. Usually called by a master page It ouputs the contents stored in a section buffer by the methods (start_section and end_section)
Загрузите содержимое конкретного раздела. Обычно вызывается главной страницей. Вы outputs содержимое, сохраненное в буфере раздела методами (start_section и end_section)
public static function load_section($section) { if (isset(View::$data[$section])) //if section exist echo View::$data[$section]; //Echo the section's content }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function LoadContent() {\r\n echo '<section id=\"main\">\r\n <section id=\"content\">';\r\n include $this->Path['includes'] . $this->currentPage . '.php';\r\n echo '</section>';\r\n include $this->Path['core'] . 'footer.ht...
[ "0.6864837", "0.65761274", "0.65029305", "0.64875317", "0.64233327", "0.64069444", "0.6272708", "0.62309825", "0.62150484", "0.6212236", "0.6200515", "0.6165122", "0.6139804", "0.61261094", "0.6112868", "0.61118925", "0.6050059", "0.6003458", "0.6003458", "0.6003458", "0.6001...
0.7120814
0
Checks whether a specfic section is defined
Проверяет, определена ли конкретная секция
public static function is_section_defined($section) { return isset(View::$data[$section]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasSection(string $section): bool;", "public function has(string $section): bool;", "public function hasCpSection();", "public function section_exists($section)\n\t{\n\t\tif (isset($this->config[$section]))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", ...
[ "0.7760612", "0.76875556", "0.7427902", "0.7364999", "0.72018397", "0.6904002", "0.68985915", "0.6846266", "0.6846266", "0.6823271", "0.67981505", "0.6778209", "0.673701", "0.67339057", "0.67283255", "0.6722611", "0.67124325", "0.66804844", "0.66730195", "0.66730195", "0.6666...
0.8050028
0
Load the content of a view file
Загрузить содержимое файла представления
private static function load_content($view, $data) { //Construct the path to the view $view_path = VIEWS_PATH.'/'.$view.'.tpl'; ob_start(); //Start buffer if (file_exists($view_path)) { //if view file exists extract($data); //convert data to variables include($view_path); //load view's data } return o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load_view($file = '', $data = array())\n {\n extract($data);\n $view_path = APPPATH.'views/'.$file.'.php';\n if(!file_exists($view_path)) echo 'Berkas view tidak ditemukan!<br>'.$view_path.'<br>';\n else include $view_path;\n }", "protected function loadView()\n {\n ...
[ "0.74916923", "0.74805146", "0.7455514", "0.7455514", "0.7415758", "0.74056077", "0.7302564", "0.7302564", "0.7298344", "0.7178563", "0.7169244", "0.7121503", "0.7120653", "0.7082389", "0.7082389", "0.7082389", "0.7079459", "0.7033623", "0.70327777", "0.702282", "0.7020515", ...
0.75757766
0
Returns the array of page ids to export.
Возвращает массив идентификаторов страниц для экспорта.
protected function map_page_ids(): array { $ids = array( LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Section_Registration_Pages', 'registration' ), LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Section_Registration_Pages', 'registration_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPageIds() {\n return $this->pageIds;\n }", "function get_all_page_ids()\n{\n}", "function mje_get_page_ids() {\n\t$pages = get_pages(array(\n\t\t'post_status' => array('publish'),\n\t));\n\n\t$page_ids = array();\n\tforeach ($pages as $page) {\n\t\t$page_ids[$page->ID] = $page->post_title;\n\t}...
[ "0.75600016", "0.71715915", "0.7164855", "0.70693415", "0.7001097", "0.661635", "0.65800655", "0.64988685", "0.6452056", "0.644725", "0.64031357", "0.63248813", "0.63034725", "0.6276469", "0.62572575", "0.62255734", "0.61848533", "0.61772597", "0.61685514", "0.6155822", "0.61...
0.76555574
0
A basic test penjumlahan.
Базовый тест сложения.
public function testPenjumlahan() { $perhitungan = new PerhitunganController(); $hasil_penjumlahan = $perhitungan->penjumlahan(2,2); $this->assertEquals(4, $hasil_penjumlahan); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPositifSemua()\r\n{\r\n$hasilPangkat = Matematika::pangkatBilangan(2, 3);\r\n$this->assertEquals(8, $hasilPangkat);\r\n}", "public function testInputNgawur()\r\n{\r\n$hasilPangkat = Matematika::pangkatBilangan(\"a\", 4);\r\n$this->assertEquals(10, $hasilPangkat);\r\n}", "public function tes...
[ "0.7775481", "0.75782704", "0.7330774", "0.7206507", "0.7152339", "0.71521205", "0.70752823", "0.70537686", "0.68811685", "0.6804329", "0.6803355", "0.67016727", "0.6696001", "0.6685203", "0.662982", "0.66209716", "0.6620414", "0.6581368", "0.6569763", "0.6566612", "0.6562128...
0.80993354
0
Returns a list of all emoticon objects for Twitch.
Возвращает список всех объектов эмодзи для Twitch.
public function chatEmoticons() { $parameters = $this->getDefaultHeaders(); $response = $this->client->request('GET', '/kraken/chat/emoticons', $parameters); return json_decode($response->getBody()->getContents(), true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function chatEmoticons()\n {\n $chatAPI = new Chat();\n\n return $chatAPI->chatEmoticons();\n }", "public static function getEmoticons()\n\t{\n\t\tif( !isset( \\IPS\\Data\\Store::i()->emoticons ) )\n\t\t{\n\t\t\t\\IPS\\Data\\Store::i()->emoticons = iterator_to_array( \\IPS\\Db::i()->se...
[ "0.76455534", "0.72320396", "0.69315994", "0.67489684", "0.6589704", "0.65783834", "0.6521559", "0.65139085", "0.6386525", "0.57487965", "0.56960255", "0.56186575", "0.55148786", "0.5480456", "0.5473722", "0.5456548", "0.54552716", "0.5423166", "0.54081583", "0.53960323", "0....
0.7624607
1
Initializes and renders alert container block.
Инициализирует и отображает блок контейнера уведомлений.
protected function renderAlertBlock() { $session = Yii::$app->session; $flashes = $session->getAllFlashes(); if ($this->showErrorSummary) { // Show form error summary in error flash if ($this->model->getErrors()) { $flashes['kv-detail-error'] = $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Render(){\n echo $this->alert->Render();\n }", "public function render()\n {\n $this->addClass('alert');\n\n // Block alert\n if ($this->isBlock) $this->addClass('alert-block');\n\n // Add close icon if necessary\n if ($this->isCloseable) {\...
[ "0.6710268", "0.6338474", "0.63179636", "0.6300174", "0.62065905", "0.62065905", "0.62065905", "0.6140842", "0.6113979", "0.58798635", "0.58107674", "0.5686698", "0.5666848", "0.56641126", "0.5643906", "0.5567624", "0.5565542", "0.55477434", "0.5505876", "0.5504664", "0.54984...
0.7029808
0
Check if model has editing errors.
Проверьте, есть ли в модели ошибки редактирования.
protected function hasEditErrors() { if ($this->model instanceof Model && $this->model->hasErrors()) { return true; } foreach ($this->attributes as $attribute) { /** * @var Model $attribute ['editModel'] */ if (empty($attribute['e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isError() {\n\t\treturn count($this->getErrors()) > 0;\n\t}", "public function validateEdit() {\n\t\t//z widoku listy osób (parametr jest wymagany)\n\t\t$this->form->id = getFromRequest('id',true,'Błędne wywołanie aplikacji');\n\t\treturn ! getMessages()->isError();\n\t}", "public function vali...
[ "0.6711782", "0.6694486", "0.6552206", "0.6495479", "0.64652324", "0.64352065", "0.64299035", "0.64032227", "0.6382074", "0.63743997", "0.6360545", "0.6360545", "0.6339236", "0.6282792", "0.62679076", "0.6253115", "0.62474304", "0.6244933", "0.6238221", "0.6237243", "0.623573...
0.8136776
0
Checks if a bootstrap grid column class has been added to the container.
Проверяет, добавлен ли класс колонки сетки bootstrap в контейнер.
protected static function hasGridCol($container = []) { $css = ArrayHelper::getValue($container, 'class', ''); $css = Lib::trim($css); $css = Lib::preg_replace('/\s+/', ' ', $css); if (empty($css)) { return false; } $classes = Lib::explode(' ', $css); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasColumns(): bool\n {\n }", "function hasColumns() {\n\t\treturn $this->_columns !== null;\n\t}", "protected function checkColumns()\n {\n $this->getHeaders();\n $headerCount = count($this->headers);\n\n return true;\n }", "public function checkAddedColumns()...
[ "0.6439765", "0.6328678", "0.6207698", "0.62004155", "0.61148995", "0.6081917", "0.6072861", "0.60601413", "0.6044165", "0.5981661", "0.58891803", "0.5842662", "0.5739459", "0.56815916", "0.5679524", "0.5671356", "0.5648376", "0.56301284", "0.5615866", "0.5614532", "0.5600089...
0.8032647
0
Renders the buttons for a specific mode.
Отображает кнопки для определённого режима.
protected function renderButtons($mode = 1) { $buttons = "buttons{$mode}"; return Lib::strtr( $this->$buttons, [ '{view}' => $this->renderButton('view'), '{update}' => $this->renderButton('update'), '{delete}' => $this->renderBu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderButtons() {\n\t\t$buttons = array();\n\t\tforeach ($this->getButtons() as $button) {\n\t\t\t$buttons[] = $this->renderElement($button);\n\t\t}\n\t\treturn !empty($buttons) ? BsHtml::tag('div', array('class' => 'form-actions'), implode(\"\\n\", $buttons)) : '';\n\t}", "protected function ren...
[ "0.6224551", "0.62154776", "0.6166439", "0.60375947", "0.6007168", "0.60049254", "0.592318", "0.590284", "0.58804375", "0.58421403", "0.58395505", "0.58059037", "0.5782371", "0.57785046", "0.575474", "0.5744644", "0.5728267", "0.5705104", "0.5697985", "0.5697925", "0.5697925"...
0.7988242
0
/ for a given upc in a given department, find the previous and next upcs in that department 1 for a upc value indicates no previous or next item. Returns true
Для заданного upc в заданном отделе найдите предыдущий и следующий upcs в этом отделе. Значение 1 для upc указывает отсутствие предыдущего или следующего элемента. Возвращает истину
function deptPrevNext($dept,$upc,&$prev,&$next){ global $sql; $deptQ = "select upc from products where department = $dept order by upc"; $deptR = $sql->query($deptQ); $p = -1; while ($row = $sql->fetch_array($deptR)){ if ($upc == $row[0]){ $prev = $p; break; } $p = $row[0]; } $row = $sql->fetch_arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prevExists() {\n\treturn ($this->page - 1 > 0);\n}", "function isContinuousSequence ($arr) \n{\n if (sizeof($arr) < 2) {\n // print_r ($arr);\n return false;\n }\n foreach ($arr as $key => $value) {\n if (array_key_exists($key-1, $arr) && ($value != $arr[$key - 1] + 1)) {\n...
[ "0.51699615", "0.50717324", "0.5034226", "0.50277454", "0.49262848", "0.4882608", "0.48775524", "0.48357394", "0.4744863", "0.4688606", "0.46746498", "0.46706513", "0.4646797", "0.46386436", "0.46253914", "0.46171552", "0.46153438", "0.4587819", "0.4551701", "0.45457017", "0....
0.7764175
0
Get the value of id_genero
Получить значение id_genero
public function getId_Genero() { return $this->id_genero; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdGenero()\n {\n return $this->idGenero;\n }", "public function getIdGenero()\n {\n return $this->idGenero;\n }", "function getGenero($idGenero){\n global $db; # manejo la bases de datos dentro de la funcion\n\n # creo la consulta SQL\n $sql = \...
[ "0.81604594", "0.81604594", "0.75955206", "0.71583474", "0.7025605", "0.70006883", "0.70006883", "0.68088526", "0.6800505", "0.677175", "0.66528386", "0.6640454", "0.66183853", "0.65813917", "0.6578434", "0.6566003", "0.65623605", "0.65498763", "0.6535004", "0.65223616", "0.6...
0.83008325
0
Get the value of nombre_gen
Получить значение nombre_gen
public function getNombre_Gen() { return $this->nombre_gen; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getNombre_generico()\n {\n return $this->nombre_generico;\n }", "public function getNombreGenero()\n {\n return $this->nombreGenero;\n }", "public function generatorName(): string;", "public function getsNom()\n {\n return $this->sNom;\n }", "public f...
[ "0.7800889", "0.7116433", "0.6584359", "0.6434515", "0.6393396", "0.63664967", "0.6342359", "0.63371927", "0.6276019", "0.6251589", "0.62413317", "0.62413317", "0.6220476", "0.6196741", "0.61950266", "0.61388916", "0.6134727", "0.6134727", "0.6106886", "0.6100676", "0.6096609...
0.8332276
0
Set the value of nombre_gen
Задайте значение nombre_gen
public function setNombre_Gen($nombre_gen) { $this->nombre_gen= $nombre_gen; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNombre_Gen()\n {\n return $this->nombre_gen;\n }", "public function setnombre($n){\n $this->nombre = $n;\n }", "public function setgenero($gen){\n\t\t$this->genero = $gen;\t\t\t\t\n }", "private function assignName()\n {\n $this->name = $this...
[ "0.7199437", "0.6959355", "0.6576554", "0.64143753", "0.63677114", "0.62509674", "0.6224218", "0.61665744", "0.61622226", "0.6161065", "0.6159863", "0.61065525", "0.60715204", "0.60715204", "0.60715204", "0.6069539", "0.6056521", "0.60037744", "0.60037744", "0.5997034", "0.59...
0.7293526
0
Check if Route is Matching Current URL
Проверить, совпадает ли маршрут с текущим URL
private function isMatchCurrentRoute($pattern) { return preg_match($pattern , $this->app->request->url()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useRouteMatch(): bool;", "public function canHandleCurrentUrl() {}", "protected function isUrlExist()\n {\n $uri = $this->env->uri();\n $potentialRoutes = null;\n\n foreach ($this->requestRoutes as $route) {\n // echo $route->route . '<br>';\n if ($...
[ "0.7242244", "0.7212098", "0.70765936", "0.70534587", "0.7051082", "0.700264", "0.69707996", "0.69169956", "0.68778783", "0.6829752", "0.67763513", "0.67589986", "0.67516947", "0.6748308", "0.6716805", "0.6702918", "0.6691604", "0.6681247", "0.6672892", "0.6672637", "0.667116...
0.7441959
0
Test the getValue result when a $resolverItems had not been resolved. The result value must be the input value.
Проверьте результат getValue, когда элементы $resolverItems не были разрешены. Результат должен быть равен входному значению.
public function testGetValueWithoutResolving() { $myInputValue = ['test 1', 'test 2']; $myOutputValue = ['test 1', 'test 2']; $resolverItems = new ItemCollection($myInputValue); $this->assertEquals( $myOutputValue, $resolverItems->getValue() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolverMultiplePathItemMustNotReturnASingleValue()\n {\n\n $testObject = SourceDataHelper::getDataNamedL2();\n\n // Assertion using targeted modifier\n $resolverItems = new ItemCollection($testObject);\n $resolverItems->resolve([\n 'getAllObjects/%any/...
[ "0.60294455", "0.59136295", "0.5830834", "0.58052236", "0.5612004", "0.55201036", "0.5492348", "0.54873955", "0.5434338", "0.538801", "0.5371075", "0.52970004", "0.527994", "0.5265617", "0.5253722", "0.5197707", "0.5197707", "0.5158721", "0.5151387", "0.5151019", "0.51160496"...
0.76778096
0
Test default result when requesting with a valid but nonmatching path Similar to ResolverTest::testResolveWithValidButNonMatchingPath but use defaultvalue modifier.
Тестирование результата по умолчанию при запросе с корректным, но не совпадающим путем. Похоже на ResolverTest::testResolveWithValidButNonMatchingPath, но использует модификатор defaultvalue.
public function testResolveWithValidButNonMatchingPath1() { $testObject = SourceDataHelper::getDataIndexedL2(); // Must return provided default value when passing it using a modifier. $defaultValueSet = [ ['in' => NULL, 'out' => NULL], ['in' => new NullDefaultValue(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFindSchemDirectoryUseDefaultFallback() {\n // Setup.\n $mock = $this->getMockBuilder(SchemaRetriever::class)\n ->setMethods(['getDefaultSchemaDirectory'])\n ->disableOriginalConstructor()\n ->getMock();\n\n $vfs = vfsStream::setup(\n uniqid('vfs'), NULL, [\n ...
[ "0.62938416", "0.61953676", "0.6153454", "0.6088984", "0.6028475", "0.59508806", "0.5907046", "0.5900216", "0.57938236", "0.5788131", "0.5769482", "0.57664746", "0.5753569", "0.57228667", "0.56961066", "0.5695264", "0.56890875", "0.56887466", "0.56561196", "0.559589", "0.5593...
0.7721876
0
Test if resolving with a non matching path raise a ResolverException exception. Similar to ResolverTest::testResolveWithBadPathReturnException but using exceptionenabled modifier.
Проверьте, вызывает ли разрешение с несоответствующим путем исключение ResolverException. Аналогично ResolverTest::testResolveWithBadPathReturnException, но с использованием модификатора exceptionenabled.
public function testResolveWithBadPathReturnException() { $testObject = SourceDataHelper::getDataIndexedL2(); $resolverItems = new ItemCollection($testObject); // Must raise an exception when exception enabled and path not found. $expectedException = NULL; try { $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithBadPathReturnException2()\n {\n $testObject = SourceDataHelper::getDataIndexedL1();\n $resolverItems = new ItemCollection($testObject);\n // Must raise an exception when exception enabled and path not found.\n $expectedException = NULL;\n try {\n...
[ "0.770429", "0.7500093", "0.6800076", "0.6109257", "0.6007177", "0.5953736", "0.5952366", "0.58974385", "0.5853226", "0.58449864", "0.58423257", "0.58082014", "0.57228136", "0.5697318", "0.56516814", "0.56467915", "0.56253684", "0.55918366", "0.5591115", "0.5590576", "0.55866...
0.8142325
0
Test if resolving with a non matching path raise a ResolverException exception. Similar to ResolverTest::testResolveWithBadPathReturnException but using exceptionenabled modifier.
Проверьте, вызывает ли разрешение с несоответствующим путем исключение ResolverException. Аналогично ResolverTest::testResolveWithBadPathReturnException, но с использованием модификатора exceptionenabled.
public function testResolveWithBadPathReturnException2() { $testObject = SourceDataHelper::getDataIndexedL1(); $resolverItems = new ItemCollection($testObject); // Must raise an exception when exception enabled and path not found. $expectedException = NULL; try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithBadPathReturnException()\n {\n $testObject = SourceDataHelper::getDataIndexedL2();\n $resolverItems = new ItemCollection($testObject);\n // Must raise an exception when exception enabled and path not found.\n $expectedException = NULL;\n try {\n ...
[ "0.81417286", "0.7499314", "0.6799617", "0.6108192", "0.6007073", "0.59522647", "0.59510577", "0.5895707", "0.5852502", "0.5843691", "0.5841029", "0.5807205", "0.57216877", "0.56956166", "0.56503886", "0.5645807", "0.56239796", "0.55910176", "0.55905694", "0.5589632", "0.5584...
0.7703441
1
Test resolving with numerical index values in path. Similar test to ResolverTest::testResolveWithIndex but on a set of Item.
Тест разрешения с числовыми значениями индекса в пути. Аналогичный тест к ResolverTest::testResolveWithIndex, но на наборе Item.
public function testResolveWithIndex() { // One level structure test. $testObject = SourceDataHelper::getDataIndexedL1(); $pathVariants = ['getAllObjects/#3/getName', 'allObjects/#3/name', 'objects/#3/myName']; foreach ($pathVariants as $pathVariant) { $resolverItems = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithGetMethodWithIntParameter()\n {\n\n // With Numeric parameter\n $testObject = SourceDataHelper::getDataIndexedL1();\n $resolverItems = new ItemCollection([\n new Item($testObject),\n new Item($testObject)\n ], FALSE);\n\n $p...
[ "0.7931674", "0.7280124", "0.68915814", "0.65590614", "0.6437833", "0.6174878", "0.6127065", "0.6067262", "0.59839284", "0.57533664", "0.57081056", "0.5608203", "0.5559468", "0.5549684", "0.5472616", "0.54551524", "0.54532146", "0.54430616", "0.53940725", "0.53666526", "0.533...
0.8186466
0
Test resolving with numerical index (2 levels) values in path. Similar test to ResolverTest::testResolveWithIndexOn2Levels but on a set of Item.
Тест разрешения с числовым индексом (2 уровня) в пути. Подобный тест ResolverTest::testResolveWithIndexOn2Levels, но на наборе элементов Item.
public function testResolveWithIndexOn2Levels() { // Two level structure test. $testObject = SourceDataHelper::getDataIndexedL2(); $pathVariants = ['getAllObjects/#3/getAllObjects/#2/getName', 'allObjects/#3/allObjects/#2/name', 'objects/#3/objects/#2/myName']; foreach ($pathVariant...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithIndex()\n {\n // One level structure test.\n $testObject = SourceDataHelper::getDataIndexedL1();\n $pathVariants = ['getAllObjects/#3/getName', 'allObjects/#3/name', 'objects/#3/myName'];\n foreach ($pathVariants as $pathVariant) {\n $resolve...
[ "0.83888435", "0.7930199", "0.7644998", "0.66627204", "0.63006663", "0.6152262", "0.60065806", "0.5890157", "0.587545", "0.5836702", "0.5784623", "0.5589173", "0.5523221", "0.55190235", "0.5466658", "0.5453451", "0.5446559", "0.53270316", "0.52318424", "0.5198781", "0.5197410...
0.83320177
1
Test resolving with key index values in path. Similar test to ResolverTest::testResolveWithKey but on a set of Item.
Тест разрешения с значениями индекса ключа в пути. Похожий тест на ResolverTest::testResolveWithKey, но на наборе элементов Item.
public function testResolveWithKey() { $testObject = SourceDataHelper::getDataNamedL1(); $pathVariants = ['getAllObjects/my_value_2/getName', 'allObjects/my_value_2/name', 'objects/my_value_2/myName']; foreach ($pathVariants as $pathVariant) { $resolverItems = new ItemCollection...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithIndex()\n {\n // One level structure test.\n $testObject = SourceDataHelper::getDataIndexedL1();\n $pathVariants = ['getAllObjects/#3/getName', 'allObjects/#3/name', 'objects/#3/myName'];\n foreach ($pathVariants as $pathVariant) {\n $resolve...
[ "0.7549", "0.6847747", "0.6574021", "0.63845485", "0.63202226", "0.62918997", "0.6203549", "0.6169853", "0.61315215", "0.60100067", "0.57347876", "0.56208456", "0.55831075", "0.5562712", "0.5557919", "0.5522974", "0.5446692", "0.54298615", "0.542691", "0.541237", "0.5408909",...
0.8009746
0
Test resolving with method + string parameter in path. Similar test to ResolverTest::testResolveWithGetMethodWithStringParameter but on a set of Item.
Тест разрешения с помощью метода + параметра строки в пути. Аналогичный тест к ResolverTest::testResolveWithGetMethodWithStringParameter, но на наборе Item.
public function testResolveWithGetMethodWithStringParameter() { $testObject = SourceDataHelper::getDataNamedL1(); $resolverItems = new ItemCollection([ new Item($testObject), new Item($testObject) ], FALSE); // With string parameter $pathVariants = [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithGetMethodWithIntParameter()\n {\n\n // With Numeric parameter\n $testObject = SourceDataHelper::getDataIndexedL1();\n $resolverItems = new ItemCollection([\n new Item($testObject),\n new Item($testObject)\n ], FALSE);\n\n $p...
[ "0.75792", "0.65460616", "0.5905353", "0.5882435", "0.5879173", "0.5770526", "0.55270636", "0.5508703", "0.5506221", "0.55013937", "0.5471832", "0.54437834", "0.5440347", "0.5398387", "0.5338812", "0.53234357", "0.5302453", "0.5294384", "0.52578896", "0.52495444", "0.5227238"...
0.8473742
0
Test resolving with method + int parameter in path. Similar test to ResolverTest::testResolveWithGetMethodWithIntParameter but on a set of Item.
Тест разрешения с помощью метода + параметр int в пути. Подобный тест ResolverTest::testResolveWithGetMethodWithIntParameter, но для набора Item.
public function testResolveWithGetMethodWithIntParameter() { // With Numeric parameter $testObject = SourceDataHelper::getDataIndexedL1(); $resolverItems = new ItemCollection([ new Item($testObject), new Item($testObject) ], FALSE); $pathVariants = [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolveWithGetMethodWithStringParameter()\n {\n $testObject = SourceDataHelper::getDataNamedL1();\n $resolverItems = new ItemCollection([\n new Item($testObject),\n new Item($testObject)\n ], FALSE);\n\n // With string parameter\n $pat...
[ "0.74791497", "0.6508468", "0.61391234", "0.6138113", "0.6074008", "0.57623786", "0.5743663", "0.5698187", "0.5655988", "0.56267333", "0.55599624", "0.5559178", "0.5532372", "0.5514749", "0.550306", "0.5475231", "0.5387326", "0.5361251", "0.52806187", "0.5230874", "0.52254343...
0.8512308
0
Test resolving path with %any keyword Similar test to ResolverTest::testResolverWithAny but on a set of Item.
Тест разрешения пути с использованием ключевого слова %any. Похожий тест на ResolverTest::testResolverWithAny, но на наборе Item.
public function testResolverWithAny() { $testObject = SourceDataHelper::getDataIndexedL1(); $pathList = [ 'getAllObjects/%any/getName', 'allObjects/%any/getName', 'objects/%any/getName', ]; foreach ($pathList as $path) { $resolverItem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolverQueryWithAny2level()\n {\n $resolverItems = new ItemCollection(SourceDataHelper::getDataNamedL2());\n\n $resolverItems->resolve([\n 'getAllObjects/%any' => [\n 'id:myId',\n 'name:getName',\n 'content:getAllObjects/...
[ "0.7465595", "0.6828143", "0.6758769", "0.64936596", "0.648512", "0.64243287", "0.6118962", "0.6063136", "0.60425925", "0.59331495", "0.58840036", "0.5878071", "0.5877889", "0.57351", "0.5533599", "0.54765856", "0.54764915", "0.5471908", "0.5461939", "0.5461446", "0.53928035"...
0.8281011
0