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
Add state with the premise that the country has to be added already
Добавить состояние с предпосылкой, что страна уже должна быть добавлена
public function addState(CountryInterface $country, $stateCode, $stateName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addstate() {\n $clang = Yii::app()->lang;\n\n if (!Permission::model()->hasGlobalPermission('Regions', 'create')) {\n Yii::app()->setFlashMessage($clang->gT(\"You do not have sufficient rights to access this page.\"), 'error');\n $this->getController()->redirect(array(\...
[ "0.6905804", "0.65976435", "0.64965063", "0.63934594", "0.6323928", "0.6323273", "0.61978704", "0.60011256", "0.5988661", "0.59711146", "0.5956881", "0.593808", "0.5867185", "0.5817282", "0.5797978", "0.57608277", "0.57472676", "0.57372206", "0.57142234", "0.5654052", "0.5609...
0.7326078
0
Add province with the premise that the state has to be added already
Добавить провинцию с тем условием, что состояние должно быть добавлено заранее
public function addProvince(StateInterface $state, $provinceCode, $provinceName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function state($province=null)\n {\n\n $tblProvince = new App_Model_Db_Table_State();\n $row = $tblProvince->fetchAll();\n\n $select_province = \"<select name=\\\"province\\\" id=\\\"province\\\">\\n\";\n if ($province) {\n $rowProvince = $tblProvince->find($provinc...
[ "0.6325191", "0.6201344", "0.6183753", "0.61542463", "0.6075722", "0.6055882", "0.6007619", "0.5911047", "0.5902562", "0.5751536", "0.5619218", "0.5605563", "0.5598254", "0.55853134", "0.5579313", "0.55748", "0.5507533", "0.5501459", "0.549906", "0.5486766", "0.5483851", "0...
0.7440003
0
Add a city with the premise that the province has to be added already
Добавить город с условием, что провинция должна быть добавлена уже
public function addCity(ProvinceInterface $province, $cityName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addCity($inputCity) {\n if($inputCity == '')\n return; \n $userCity = $this->cityName($inputCity); \n \n # always add Vacation qualities\n $this->perfectCity = array_merge($this->perfectCity, \n $this->cities[$userCity]['Vacation']...
[ "0.7182254", "0.7104158", "0.67245895", "0.6528631", "0.65125173", "0.64910495", "0.6488488", "0.64337486", "0.64106745", "0.6393945", "0.63826734", "0.63524616", "0.6146576", "0.6134758", "0.6133513", "0.6065262", "0.59993565", "0.59527475", "0.594308", "0.5908465", "0.58425...
0.7796505
0
Add a postalcode with the premise that the city has to be added already
Добавить почтовый код с условием, что город должен быть уже добавлен
public function addPostalCode(CityInterface $city, $postalCodeCode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addPostalCode($postalCode);", "public function addZipCode($postal) {\n // $postalc = new PostalCode();\n // $postalc = $postal;\n // $date = date_create($postal->getDate_create());\n // $date_new_create = date_format($date, \"Y-m-d H:m:s\");\n //print \"<pre>\";...
[ "0.7813068", "0.71782875", "0.7163949", "0.7070533", "0.64887136", "0.61355746", "0.6086631", "0.6005364", "0.59882647", "0.5983254", "0.59779006", "0.5972252", "0.5972252", "0.5923307", "0.58764356", "0.58664334", "0.58158827", "0.57967526", "0.5766173", "0.57283694", "0.571...
0.753308
1
Get HTML Checked Attribute If the field has indicated value checked then return html checked attribute
Получить атрибут HTML checked Если поле имеет указанное значение checked, то вернуть атрибут html checked
function get_checked_attribute($row=NULL, $field, $checked_value=NULL) { $return = ''; if (isset($row->$field)) { $field_value = $row->$field; if (isset($checked_value)) { if ($field_value == $checked_value) $return = INPUT_CHECKED; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChecked()\n {\n return $this->getValue();\n }", "function get_checked($value)\n{\n\treturn ($value == TRUE) ? 'checked': ''; \n}", "public function getChecked($key)\n {\n\n if (isset($this->data[$key]) && $this->data[$key] && 'f' != $this->data[$key])\n return ' checked...
[ "0.7332958", "0.71624815", "0.69046575", "0.69011", "0.6798455", "0.67749405", "0.6771182", "0.67297214", "0.66545963", "0.66417485", "0.6623358", "0.65751827", "0.648659", "0.6436243", "0.6381616", "0.6321739", "0.63181496", "0.62336534", "0.6213341", "0.61842555", "0.618405...
0.76100135
0
Throws a runtime exception of the last socket error
Выбрасывает исключение времени выполнения последней ошибки сокета
function throw_socket_error() { $code = socket_last_error(); $str = socket_strerror($code); throw new \RuntimeException(sprintf( '(%s) - %s', $code, $str )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function trigger_socket_error($socket = null)\n {\n $code = $socket ? socket_last_error($socket) : socket_last_error();\n debug_print_backtrace();\n trigger_error(\"[${code}] \" . socket_strerror($code), E_USER_ERROR);\n }", "private function getLastSocketError() {\n $errStr = '-1: Unknown erro...
[ "0.74690366", "0.710616", "0.7054681", "0.67295015", "0.64258456", "0.6271294", "0.61298865", "0.599408", "0.5984312", "0.5980148", "0.591567", "0.58781844", "0.58147323", "0.579264", "0.5750981", "0.57174844", "0.5684886", "0.56821096", "0.5640841", "0.56379145", "0.56379145...
0.7958063
0
show all the invalid properties with reasons.
показать все недопустимые свойства с причинами.
public function listInvalidProperties() { $invalid_properties = []; $allowed_values = ["CREDIT_CARD", "CASH", "THIRD_PARTY_CARD", "NO_SALE", "SQUARE_WALLET", "SQUARE_GIFT_CARD", "UNKNOWN", "OTHER"]; if (!in_array($this->container['event_type'], $allowed_values)) { $invalid_proper...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listInvalidProperties();", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n $allowedValues = $this->getStyleIdentifierAllowableValues();\n if (!in_array($this->container['style_identifier'], $allowedValues)) {\n ...
[ "0.7885589", "0.7691335", "0.76856136", "0.76856136", "0.76856136", "0.7683929", "0.76756734", "0.7666285", "0.7653707", "0.7653707", "0.76334393", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.76262254", "0.7612341", "0.75995564", "0.759955...
0.7704446
1
function This method finds a free IPv6 by a given IP assignment from the "isys_ipv6_assignment" table.
функция Этот метод находит свободный IPv6 по заданному IP-присвоению из таблицы "isys_ipv6_assignment".
public function find_free_ipv6_by_assignment($p_net_obj, $p_ip_assignment) { global $g_comp_database; $l_ip_dao = new isys_cmdb_dao_category_g_ip($g_comp_database); $l_dhcp_dao = new isys_cmdb_dao_category_s_net_dhcp($g_comp_database); // Because the values of the assignments dif...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find_free_v6()\n {\n global $g_comp_database;\n\n $l_net_dao = new isys_cmdb_dao_category_s_net($g_comp_database);\n\n return $l_net_dao->find_free_ipv6_by_assignment($_POST['net_obj_id'], $_POST['ip_assignment']);\n }", "public static function cmpIPv6DataProviderMatchi...
[ "0.8235722", "0.60066944", "0.5923821", "0.58840746", "0.5706141", "0.5705568", "0.57038325", "0.5502891", "0.542809", "0.5360367", "0.53234977", "0.5267414", "0.5235169", "0.5038733", "0.49958214", "0.49727923", "0.49607086", "0.49538073", "0.49422103", "0.4936256", "0.49340...
0.80262685
1
function Method for getting the GLOBAL layer3 IPv4 net object. The ID of the global layer3 net should also be available via C__OBJ__NET_GLOBAL_IPV4.
Функция метода для получения объекта глобального слоя 3 IPv4 сети. Идентификатор глобальной сети слоя 3 также должен быть доступен через C__OBJ__NET_GLOBAL_IPV4.
public function get_global_ipv4_net() { $l_sql = 'SELECT * FROM isys_cats_net_list INNER JOIN isys_obj ON isys_obj__id = isys_cats_net_list__isys_obj__id LEFT JOIN isys_net_type ON isys_cats_net_list__isys_net_type__id = isys_net_type__id WHERE isys_obj__const = "C__OBJ__NET_GLOBAL_IPV4" AND isy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_ipv4Nets()\n\t{\n\t\treturn $this->m_ipv4Nets;\n\t}", "public function get_global_ipv6_net()\n {\n $l_sql = 'SELECT isys_cats_net_list__isys_obj__id FROM isys_cats_net_list\n\t\t\tINNER JOIN isys_obj ON isys_obj__id = isys_cats_net_list__isys_obj__id\n\t\t\tLEFT JOIN isys_net_type ...
[ "0.5961948", "0.593959", "0.576473", "0.541781", "0.52891994", "0.51555026", "0.5152047", "0.5061661", "0.5004251", "0.50002646", "0.49157494", "0.49005365", "0.47842112", "0.4762458", "0.46713027", "0.46535495", "0.462228", "0.46024153", "0.45765895", "0.45748144", "0.457106...
0.7621462
0
function Method for getting the GLOBAL layer3 IPv6 net object. The ID of the global layer3 net should also be available via C__OBJ__NET_GLOBAL_IPV6.
Функция метода для получения объекта глобального слоя 3 IPv6. Идентификатор глобального слоя 3 сети также должен быть доступен через C__OBJ__NET_GLOBAL_IPV6.
public function get_global_ipv6_net() { $l_sql = 'SELECT isys_cats_net_list__isys_obj__id FROM isys_cats_net_list INNER JOIN isys_obj ON isys_obj__id = isys_cats_net_list__isys_obj__id LEFT JOIN isys_net_type ON isys_cats_net_list__isys_net_type__id = isys_net_type__id WHERE isys_obj__const = "C__O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_global_ipv4_net()\n {\n $l_sql = 'SELECT * FROM isys_cats_net_list\n\t\t\tINNER JOIN isys_obj ON isys_obj__id = isys_cats_net_list__isys_obj__id\n\t\t\tLEFT JOIN isys_net_type ON isys_cats_net_list__isys_net_type__id = isys_net_type__id\n\t\t\tWHERE isys_obj__const = \"C__OBJ__NET_GLO...
[ "0.6750115", "0.64675796", "0.5838748", "0.5605258", "0.5550961", "0.5527551", "0.5372299", "0.5346776", "0.52024347", "0.5162671", "0.50833666", "0.505658", "0.49397048", "0.48762432", "0.48431733", "0.48042744", "0.4789408", "0.47284657", "0.4726236", "0.46404412", "0.46155...
0.7959759
0
function Method for retrieving assigned hosts and their DNS data from an object (This might result in multiple rows).
Функция метода для получения назначённых хостов и их данных DNS из объекта (это может привести к нескольким строкам).
public function get_assigned_hosts_with_dns($p_obj_id, $p_record_status = C__RECORD_STATUS__NORMAL) { if (empty($p_obj_id)) { return false; } // if $l_sql = 'SELECT main.isys_catg_ip_list__isys_ip_assignment__id, main.isys_catg_ip_list__isys_ipv6_assignment__id, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function certificateapi_get_hosts() {\n global $CFG, $DB;\n return $DB->get_records_sql('SELECT\n h.id,\n h.ip_address,\n h.wwwroot,\n h.fullname,\n ...
[ "0.62887985", "0.62135774", "0.61559325", "0.6122984", "0.6037537", "0.6022453", "0.5998098", "0.56702334", "0.5631588", "0.56258726", "0.56205183", "0.5604602", "0.55636513", "0.549985", "0.549935", "0.54893917", "0.54100984", "0.5390518", "0.53769034", "0.53568274", "0.5338...
0.7252987
0
Gets all existing dns domains with a normal status.
Получает все существующие домены DNS с нормальным статусом.
public function get_dns_domains($p_filter = '') { return $this->retrieve( 'SELECT * FROM isys_net_dns_domain WHERE isys_net_dns_domain__status = ' . $this->convert_sql_int(C__RECORD_STATUS__NORMAL) . ' ' . $p_filter . ';' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllDomains();", "public function list($expired = false) \n\t{\n\t\treturn $this->api->call(['command' => ($expired ? 'GetExpiredDomains' : 'GetDomains')])->response();\n\t}", "public function getDomainList()\r\n\t{\r\n\t\t$request = Requests::get($this->url . '/api/domain/list', array('Api-S...
[ "0.72103506", "0.6946658", "0.66654956", "0.658658", "0.654227", "0.6462294", "0.64236027", "0.6418587", "0.62896246", "0.6286229", "0.6268825", "0.6259706", "0.6247715", "0.6239939", "0.6239157", "0.62193733", "0.620805", "0.6205417", "0.61430216", "0.6129646", "0.6108604", ...
0.7305636
0
function Gets all information about the net by the specified object id.
Функция получает всю информацию о сети по заданному идентификатору объекта.
public function get_all_net_information_by_obj_id($p_obj_id) { $l_net_row = []; if (class_exists('isys_cmdb_dao_category_s_net_ip_addresses')) { $l_dao_ip_list = new isys_cmdb_dao_category_s_net_ip_addresses($this->get_database_component()); $l_ip_list_res = $l_dao_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function networkDetail($networkid) {\n $url ='/v2.0/networks/'.$networkid;\n\n return $this->_req->get($url, [], []);\n }", "private function get_object_resources($p_obj_id)\n {\n $l_quick_info = new isys_ajax_handler_quick_info();\n $l_dao_memory = new isys_cmdb_dao_category_g_...
[ "0.6377451", "0.60383636", "0.5972441", "0.5748513", "0.571606", "0.55897725", "0.5578445", "0.55751216", "0.553547", "0.5515632", "0.55015635", "0.5501546", "0.547696", "0.54558444", "0.5452822", "0.5417061", "0.54170436", "0.54029655", "0.5382568", "0.5360003", "0.53436047"...
0.7284949
0
function to display user data in databale using ajax Function for get users data use in ajax datatable pagination.
Функция для отображения данных пользователей в таблице с использованием ajax. Функция для получения данных пользователей, используемая в ajax datatable для пагинации.
function ajaxloadUser(){ $length = Input::get('length'); $start = Input::get('start'); $search = Input::get('search'); $totaldata = AdminUser::CountUsers(); // function counts records in user table. $total_filtered_data = $totaldata; $search = $search['value']; $ord...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listuser(){\n\t\t\tif(!empty($_GET['paginado'])){\n\t\t\t\t$pag = $_GET['paginado'];\n\t\t\t\t$list = $this -> model -> selectuser($pag);\n\t\t\t}else{\n\t\t\t\t$list = $this -> model -> selectuser();\n\t\t\t}\n\t\t\t$this -> ajax_set($list);\n\t\t}", "public function active_users_datatable()\n\t\t{\n\t...
[ "0.7668475", "0.74126935", "0.73711145", "0.7321071", "0.72842884", "0.7167021", "0.7146747", "0.7073471", "0.6986613", "0.6934406", "0.69325924", "0.69315135", "0.6909658", "0.68809414", "0.6867183", "0.6867087", "0.68645626", "0.6854365", "0.6822632", "0.6822233", "0.681484...
0.78632456
0
Modifies the current Form Component by changing any properties that were passed in $structure. If a component supports special indices in $structure (for example a "fields" property) then that component may specify its own `modify()` method and manually process each of the specially supported keywords. For example, the...
Модифицирует текущий компонент формы, изменяя любые свойства, переданные в $structure. Если компонент поддерживает специальные индексы в $structure (например, свойство "fields"), то такой компонент может указать свой собственный метод `modify()` и вручную обработать каждый из специальных ключевых слов. Например, Abstra...
public function modify(array $structure);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Structure $structure = null)\n {\n\n }", "public function setDataStructure($structure)\n {\n }", "public function setStructure($structure) {\n\t\t$this->structure = $structure;\n\t\treturn $this;\n\t}", "public function modify($nested=false) {\n $action = ($nested) ?...
[ "0.6147368", "0.5987541", "0.59657854", "0.57873654", "0.57715195", "0.54476374", "0.5380078", "0.5350614", "0.51539475", "0.51234716", "0.508409", "0.5083332", "0.49369153", "0.48850787", "0.48491663", "0.47941446", "0.4789302", "0.47484148", "0.4731295", "0.46949214", "0.46...
0.7054034
0
Find the hosts for each event so that they can be excluded later.
Найдите хосты для каждого события, чтобы их можно было исключить позже.
private function getHosts() { foreach ($this->events as $event) { $this->hosts = array_unique(array_merge($this->hosts, array_map(function ($host) { return $host->host_name; }, $event->hosts))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hosts() {\n // Query each HttpRequest object sequentially, and add to a master list.\n $hosts = array();\n foreach ($this->requests as $request) {\n $url = $request->url;\n $hostname = parse_url($url, PHP_URL_HOST);\n if (!in_array($hostname, $h...
[ "0.7058571", "0.70169204", "0.6617256", "0.6465032", "0.6335695", "0.6220404", "0.602014", "0.5994093", "0.59110224", "0.59044397", "0.57700473", "0.5685068", "0.5678926", "0.5649511", "0.56350493", "0.56253076", "0.55366266", "0.5420782", "0.54169184", "0.53667855", "0.53496...
0.8320707
0
Calculates the number of new requests made per minute.
Вычисляет количество новых запросов в минуту.
public function getRate() { // Get number of requests made in the last minute $count = 0; $Test = new DateTime('-1 min -23 sec'); foreach ($this->Stats['NewConnections'] as $k => $Time) { // Time is not expired? Add to count if ($Time > $Test) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumberOfRequests()\n {\n return array_sum($this->numberOfRequestsByPattern);\n }", "function count_new_messages() {\n $last_visit = UserConfigOptions::getValue('status_update_last_visited', $this->logged_user);\n echo StatusUpdates::countNewMessagesForUser($this->logged_...
[ "0.62863785", "0.58068776", "0.5777564", "0.5631723", "0.56140244", "0.5571207", "0.5566276", "0.555838", "0.5549194", "0.55460215", "0.55120146", "0.5511028", "0.55016637", "0.54953843", "0.5480695", "0.5474713", "0.5363728", "0.5358628", "0.5318494", "0.5281771", "0.5261617...
0.7019287
0
Detect Archive URLs Get list of archive URLs ie
Обнаружение URL-адресов архивов Получить список URL-адресов архивов, то есть
public static function detect() : array { global $wpdb; $archive_urls = []; $archive_urls_with_markup = ''; $yearly_archives = wp_get_archives( [ 'type' => 'yearly', 'echo' => 0, ] ); $archi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_scan_urls() {\r\n\t\t// Calculate URLs to Check.\r\n\t\t$args = array(\r\n\t\t\t'orderby' => 'rand',\r\n\t\t\t'posts_per_page' => '1',\r\n\t\t\t'ignore_sticky_posts' => true,\r\n\t\t\t'post_status' => 'publish',\r\n\t\t);\r\n\r\n\t\t$urls = array();\r\n\r\n\t\t$urls[] =...
[ "0.60054785", "0.59981877", "0.59981877", "0.58989465", "0.5842823", "0.5830648", "0.5781017", "0.57387936", "0.5728988", "0.56817114", "0.5667066", "0.5634258", "0.56116", "0.55779374", "0.5553984", "0.55254227", "0.5517351", "0.5467853", "0.5437017", "0.5364133", "0.5333904...
0.7094688
0
Is the message associated with the specified headers a text type?
Является ли сообщение, связанное с указанными заголовками, текстового типа?
public static function isText(array $hHeaders = []) { if (isset($hHeaders['content-type']) && preg_match("#text/(plain|html)#", $hHeaders['content-type'], $aMatch)) { return $aMatch[1] == 'html' ? 'html' : 'text'; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isText() {}", "public function isText()\n {\n $mime_type = $this->getMimeType() ?: $this->detectMimeType();\n\n return (strpos($mime_type, 'text') === 0);\n }", "public function isText() {\n\t\treturn MimeType::isText($this);\n\t}", "public function isText()\n {\n ...
[ "0.692273", "0.6901829", "0.6888901", "0.6571261", "0.65481013", "0.64570147", "0.64306873", "0.6398995", "0.6364831", "0.6198548", "0.60552645", "0.60186076", "0.5898842", "0.57575345", "0.5746007", "0.5696775", "0.5696775", "0.5695806", "0.5686755", "0.56797075", "0.5617372...
0.7309512
0
Is the message associated with the specified headers an attachment?
Является ли сообщение, связанное с указанными заголовками, приложением?
public static function isAttachment($hHeaders) { if (isset($hHeaders['content-disposition']) && preg_match("#attachment; filename=\"(.*?)\"#", $hHeaders['content-disposition'], $aMatch)) { return $aMatch[1]; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAttachment() : bool\n {\n return $this->getDisposition() == 'attachment';\n }", "public function isAttachment(): bool\n\t{\n\t\treturn $this->isOfType( static::TYPE_ATTACHMENT );\n\t}", "protected function _isHeadersRequired()\r\n {\r\n if(count($this->getAttachments()) > 0 |...
[ "0.7130498", "0.6986624", "0.6970534", "0.68640196", "0.6858158", "0.67706287", "0.6768062", "0.66123694", "0.6503366", "0.648582", "0.64770997", "0.64494306", "0.624622", "0.6107512", "0.6020075", "0.58978534", "0.5841888", "0.57844156", "0.5764501", "0.5762732", "0.57338667...
0.79741603
0
Is the message associated with the specified headers a multipart message?
Сообщение, связанное с указанными заголовками, является ли мультисегментным сообщением?
public static function isMultiPart($hHeaders) { if (isset($hHeaders['content-type']) && preg_match("#multipart/.*?; boundary=\"(.*?)\"#", $hHeaders['content-type'], $aMatch)) { return $aMatch[1]; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMultipart()\n {\n return true;\n }", "public function isMultipart()\n {\n return $this->getAttribute('enctype') === 'multipart/form-data';\n }", "protected function _isHeadersRequired()\r\n {\r\n if(count($this->getAttachments()) > 0 || $this->use_headers )\r\n ...
[ "0.7171997", "0.6818947", "0.64269274", "0.63786787", "0.6342468", "0.6266773", "0.6187231", "0.5930904", "0.5681379", "0.5655106", "0.5620213", "0.55696714", "0.55247223", "0.5487686", "0.5480219", "0.54320806", "0.54320806", "0.54320806", "0.5386963", "0.5379833", "0.535655...
0.78154904
0
Checks if product exists in the database based on its name
Проверяет, существует ли продукт в базе данных по его имени
public function checkProductExistsByName() { $category = $this::find() ->select('id') ->where(['name' => $this->name]) ->one(); if($category !== NULL) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _check_product_in_db($product){\n if (in_array($product, $this->db)){\n // echo 'Product already in the database.';\n return True;\n }\n // echo 'Product not in the database.';\n return False;\n }", "public function productExist()\n {\n if ($this->product) {\n ...
[ "0.76533973", "0.7240629", "0.71316373", "0.6875869", "0.68157244", "0.6765152", "0.6738141", "0.6593235", "0.6587415", "0.65115285", "0.64469236", "0.6420865", "0.6396978", "0.63568074", "0.6334977", "0.6334977", "0.6334977", "0.6334977", "0.6334977", "0.6328212", "0.6324737...
0.77978873
0
Move jQuery script include to the footer
Переместить включение скрипта jQuery в футер
public static function move_jquery_to_footer() { add_action('wp_enqueue_scripts', function() { if (is_admin()) { return; } $wp_scripts = wp_scripts(); $wp_scripts->add_data('jquery', 'group', 1); $wp_scripts->add_data('jquery-core', 'group', 1); $wp_scripts->add_data('jque...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function move_js_to_footer() {\n\t\t$this->remove_action( 'wp_head', 'wp_print_scripts' );\n\t\t$this->remove_action( 'wp_head', 'wp_print_head_scripts', 9 );\n\t\t$this->remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );\n\t}", "function wp_footer() {\n SLPlus_Actions::ManageTheScripts();\n\...
[ "0.7482841", "0.7109882", "0.71092767", "0.70924175", "0.7026485", "0.6949759", "0.69473714", "0.690166", "0.6879257", "0.6825306", "0.6820708", "0.6817645", "0.6796867", "0.67859644", "0.67785853", "0.6738475", "0.66899544", "0.6629538", "0.66239816", "0.66025186", "0.658613...
0.8380822
0
Returns TRUE if the route matches the filter and FALSE if not.
Возвращает TRUE, если маршрут соответствует фильтру, и FALSE в противном случае.
protected function routeMatches(string $filter, Route $route): bool { if(str_contains($route->getRoute(), $filter)) { return true; } if(str_contains($this->getNormalizedActionName($route), $filter)) { return true; } if(str_contains((string) $route->getName(), $filter)) { return true; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasRoute(): bool;", "public function match(): bool\n {\n $uri = $_SERVER['REQUEST_URI'];\n $parse = parse_url($uri);\n $url = trim($parse['path'] ?? '', '/');\n foreach ($this->routes as $route => $params) {\n if (preg_match($route, $url, $matches)) {\n ...
[ "0.707657", "0.6868592", "0.65790206", "0.64857113", "0.63828856", "0.63648313", "0.6349395", "0.6322933", "0.62939703", "0.626243", "0.62082624", "0.61796606", "0.6168364", "0.61516345", "0.6147093", "0.6116729", "0.609138", "0.6074885", "0.6057383", "0.6055772", "0.6052468"...
0.75885576
0
Create a quizp with questions and walk through a quizp attempt.
Создайте quizp с вопросами и пройдите попытку выполнения quizp.
public function test_quizp_attempt_walkthrough() { global $SITE; $this->resetAfterTest(true); // Make a quizp. $quizpgenerator = $this->getDataGenerator()->get_plugin_generator('mod_quizp'); $quizp = $quizpgenerator->create_instance(array('course'=>$SITE->id, 'questionsperpage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_quizp_with_random_question_attempt_walkthrough() {\n global $SITE;\n\n $this->resetAfterTest(true);\n question_bank::get_qtype('random')->clear_caches_before_testing();\n\n $this->setAdminUser();\n\n // Make a quizp.\n $quizpgenerator = $this->getDataG...
[ "0.76349396", "0.6763173", "0.6469097", "0.64066756", "0.6017654", "0.5983769", "0.5971516", "0.59537715", "0.59507346", "0.5914015", "0.5832889", "0.57762975", "0.5765079", "0.5750939", "0.5750079", "0.5732327", "0.57071424", "0.57052", "0.56721216", "0.5661432", "0.56369287...
0.769148
0
Create a quizp with a random as well as other questions and walk through quizp attempts.
Создайте quizp с случайными вопросами, а также другими вопросами и пройдите попытки quizp.
public function test_quizp_with_random_question_attempt_walkthrough() { global $SITE; $this->resetAfterTest(true); question_bank::get_qtype('random')->clear_caches_before_testing(); $this->setAdminUser(); // Make a quizp. $quizpgenerator = $this->getDataGenerator()->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_quizp_attempt_walkthrough() {\n global $SITE;\n\n $this->resetAfterTest(true);\n\n // Make a quizp.\n $quizpgenerator = $this->getDataGenerator()->get_plugin_generator('mod_quizp');\n\n $quizp = $quizpgenerator->create_instance(array('course'=>$SITE->id, 'que...
[ "0.7495671", "0.63325435", "0.61733365", "0.6148252", "0.61098903", "0.6068342", "0.60463625", "0.59748024", "0.5973014", "0.59567016", "0.5895462", "0.58555186", "0.58377725", "0.5822629", "0.5807805", "0.5736343", "0.57085407", "0.5646675", "0.5627417", "0.56231403", "0.560...
0.83981144
0
Create a quizp with a single question with variants and walk through quizp attempts.
Создайте quizp с одним вопросом и вариантами и пройдите через попытки quizp.
public function test_quizp_with_question_with_variants_attempt_walkthrough($variantno, $correctresponse, $done = false) { global $SITE; $this->resetAfterTest($done); $this->setAdminUser(); if ($this->quizpwithvariants === null) { // Make a quizp. $quizpgenerato...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_quizp_with_random_question_attempt_walkthrough() {\n global $SITE;\n\n $this->resetAfterTest(true);\n question_bank::get_qtype('random')->clear_caches_before_testing();\n\n $this->setAdminUser();\n\n // Make a quizp.\n $quizpgenerator = $this->getDataG...
[ "0.7419718", "0.69667053", "0.6091967", "0.59769595", "0.59140337", "0.59006685", "0.58695", "0.5824834", "0.5824834", "0.5812037", "0.5787143", "0.5611998", "0.5593689", "0.55851674", "0.55851674", "0.55576384", "0.55356145", "0.55082655", "0.54741", "0.54672533", "0.546011"...
0.70966285
1
Scope the query to only include non started events.
Ограничьте запрос, чтобы он включал только события, которые не начаты.
public function scopeNotStarted($query) { return $query->where('date_begin', ">", Carbon::now()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeStarted($query) {\n $query->where('start_date', '<=', Carbon::now());\n }", "public function scopePastEventsOnly($query)\n {\n return $query->where('date_start', '<=', Carbon::now());\n }", "public function scopeFutureEventsOnly($query)\n {\n return $query-...
[ "0.68658894", "0.6809262", "0.68086535", "0.6640144", "0.6439891", "0.6246338", "0.6222054", "0.6114988", "0.6107479", "0.60865635", "0.60248405", "0.6005466", "0.5921819", "0.58918643", "0.58851606", "0.58804977", "0.5867252", "0.58590406", "0.5846704", "0.58239627", "0.5822...
0.7088914
0
Scope the query to only include started events.
Ограничьте запрос, чтобы он включал только события, которые были запущены.
public function scopeStarted($query) { return $query->where('date_begin', "<=", Carbon::now())->where('date_end', ">=", Carbon::now()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeStarted($query) {\n $query->where('start_date', '<=', Carbon::now());\n }", "public function scopeFilterByStartDate( $query )\n { \n $date = request() -> get( 'start_date' );\n if( $date )\n {\n try \n {\n $date = Carbon...
[ "0.7775167", "0.6716673", "0.66064984", "0.6585067", "0.62775064", "0.6270628", "0.6111483", "0.60758907", "0.6070289", "0.5981551", "0.5897425", "0.58730745", "0.57950944", "0.5706399", "0.57001233", "0.56765765", "0.56661993", "0.565529", "0.5626473", "0.56015617", "0.55914...
0.75189656
1
Get topic messages list
Получить список сообщений темы
public function get_topic_message_list($data) { if (!isset($data['forum_topic_id'])) { throw new \Box_Exception('Forum Topic ID not passed'); } $table = $this->di['table']('ForumTopicMessage'); list($sql, $params) = $table->getSearchQuery($data); $per_page = $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTopics()\n {\n return [\n 'topicName' => 1\n ];\n }", "public function getAllTopic()\n {\n return $this->dal->getTopic(null,false);\n }", "public function getMessages();", "public function getMessages();", "public function getMessages();", "p...
[ "0.7135517", "0.71164143", "0.7090743", "0.7090743", "0.7090743", "0.7090743", "0.7090743", "0.7090743", "0.7090743", "0.707463", "0.6953233", "0.6943801", "0.6943801", "0.68840235", "0.6883212", "0.6717567", "0.67139053", "0.66860235", "0.66860235", "0.66860235", "0.66675764...
0.71788394
0
/ Devuelve el nombre de un campo de una consulta
Возвращает имя поля запроса
function nombrecampo($numcampo){return mysqli_field_name($this->Consulta_ID, $numcampo);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nombrecampo($numcampo) {\r\n\r\n return mysql_field_name($this->Consulta_ID, $numcampo);\r\n\r\n}", "function nombreCampo($result, $indice){\n\t return mysql_field_name($result, $indice);\t\n\t}", "public function nombreCampo($numcampo) {\n\t\t$meta = $this->query->getColumnMeta($numcampo);\n\t\t$...
[ "0.7922134", "0.7377288", "0.71420497", "0.7060528", "0.70041186", "0.7001186", "0.6884735", "0.68751854", "0.6776885", "0.65124124", "0.64981425", "0.6433757", "0.6430387", "0.6429114", "0.64281505", "0.63923633", "0.6350692", "0.6342653", "0.6298511", "0.6282917", "0.627979...
0.8191316
0
The results of running a [Replay][google.cloud.policysimulator.v1.Replay]. Generated from protobuf field repeated .google.cloud.policysimulator.v1.ReplayResult replay_results = 1;
Результаты выполнения [Replay][google.cloud.policysimulator.v1.Replay]. Генерируются из поля protobuf repeated .google.cloud.policysimulator.v1.ReplayResult replay_results = 1;
public function getReplayResults() { return $this->replay_results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setReplayResults($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\PolicySimulator\\V1\\ReplayResult::class);\n $this->replay_results = $arr;\n\n return $this;\n }", "public function getQueryReplay()\n ...
[ "0.77779174", "0.6110347", "0.6110347", "0.6099787", "0.578775", "0.54053783", "0.52967185", "0.5293707", "0.5192404", "0.517329", "0.5050758", "0.5037287", "0.50216436", "0.49210176", "0.49081644", "0.48471704", "0.48276582", "0.48268548", "0.4780751", "0.4775717", "0.475994...
0.78970385
0
The results of running a [Replay][google.cloud.policysimulator.v1.Replay]. Generated from protobuf field repeated .google.cloud.policysimulator.v1.ReplayResult replay_results = 1;
Результаты выполнения [Replay][google.cloud.policysimulator.v1.Replay]. Генерируются из поля protobuf repeated .google.cloud.policysimulator.v1.ReplayResult replay_results = 1;
public function setReplayResults($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\PolicySimulator\V1\ReplayResult::class); $this->replay_results = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReplayResults()\n {\n return $this->replay_results;\n }", "public function getQueryReplay()\n {\n return $this->get(self::_QUERY_REPLAY);\n }", "public function getQueryReplay()\n {\n return $this->get(self::_QUERY_REPLAY);\n }", "public function getR...
[ "0.7895785", "0.610941", "0.610941", "0.6099436", "0.57897633", "0.5404606", "0.5297664", "0.52946496", "0.51897067", "0.51730776", "0.50527394", "0.5034621", "0.5019206", "0.49218386", "0.4909336", "0.48454005", "0.4826863", "0.48244554", "0.477813", "0.47729188", "0.4757642...
0.77768373
1
Looks for the most relevant content excerpt of the page. For extracting the most relevant excerpt follows the next steps: 1. Check if the page layout is OpenGraph compliant and get the description if so. 2. If the page is not OG compliant, tries to get the meta description. 3. If the page has not meta description tag b...
Ищет наиболее релевантный фрагмент содержимого страницы. Для извлечения наиболее релевантного фрагмента следуют следующим шагам: 1. Проверить, соответствует ли разметка страницы OpenGraph, и получить описание, если это так. 2. Если страница не соответствует OpenGraph, попытаться получить мета-описание. 3. Если страница...
public function extractContent() { $metas = $this->parsedDOM->getElementsByTagName('meta'); // If exists meta-description, uses it foreach ($metas as $meta) { // Loops the list of attributes foreach ($meta->attributes as $attribute) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getExcerpt($content)\n {\n // Check for excerpt tags\n $pattern = '#(\\<\\!\\-\\-\\s?excerpt\\s?\\-\\-\\>)(.*)(\\<\\!\\-\\-\\s?endexcerpt\\s?\\-\\-\\>)#si';\n if (preg_match($pattern, $content, $matches)) {\n return $matches[2];\n }\n\n // If all ...
[ "0.66581935", "0.66392016", "0.6221437", "0.61910444", "0.6178585", "0.61264884", "0.61191046", "0.6092527", "0.60415566", "0.6011203", "0.598786", "0.594341", "0.58690476", "0.58599055", "0.58398885", "0.57887125", "0.5775605", "0.57638454", "0.57549316", "0.5712347", "0.568...
0.7406819
0
Execute a SITE command on the server This method tries to execute a SITE command on the ftp server.
Выполнить команду SITE на сервере. Этот метод попытается выполнить команду SITE на сервере FTP.
function site($command) { $res = @ftp_site($this->_handle, $command); if ( !$res ) { throw new ftpSiteCommandException($command); } else { return $res; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function site($command)\r\n {\r\n if ($this->_use_mod_ftp) {\r\n \t\tftp_site($this->_socket, $command);\r\n \t} else {\r\n \t $this->putcmd(\"SITE\", $command);\r\n \t}\r\n \treturn $this->ok();\r\n }", "function _site($command)\n\t{\n\t\treturn @ftp_site($this->connection, $comman...
[ "0.76268655", "0.7015597", "0.5551464", "0.5530256", "0.53217196", "0.5276184", "0.51790607", "0.5121527", "0.5119085", "0.50983864", "0.507158", "0.50473267", "0.49920434", "0.49905616", "0.49340725", "0.49266765", "0.492612", "0.49225768", "0.49119577", "0.48639384", "0.485...
0.72332525
1
This method will try to chmod a folder and all of its contents on the server. The target argument must be a folder or an array of folders and the permissions argument have to be an integer (i.e. 777). The file can be either a relative or absolute path. NOTE: Some servers do not support this feature. In that case, you w...
Этот метод попытается изменить права доступа к папке и всем её содержимому на сервере. Аргумент target должен быть папкой или массивом папок, а аргумент permissions должен быть целым числом (например, 777). Файл может быть как относительным, так и абсолютным путём. ВНИМАНИЕ: Некоторые серверы не поддерживают эту функци...
function chmodRecursive($target, $permissions) { if ( !self::$_dir_permissions ) { self::$_dir_permissions = $this->_makeDirPermissions($permissions); } if ( is_array($target) ) { for ( $i = 0; $i < count($target); $i++ ) { $res = $this->chmodRecursive($target[$i], $permissions); } } el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function chmod($target, $permissions) {\r\n\t\tif ( is_array($target) ) {\r\n\t\t\tfor ( $i = 0; $i < count($target); $i++ ) {\r\n\t\t\t\t$res = $this->chmod($target[$i], $permissions);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$res = $this->site(\"CHMOD \" . $permissions . \" \" . $target);\r\n\t\t\tif ( !$res ) {\r\n\...
[ "0.7088286", "0.65019256", "0.63009363", "0.61689377", "0.6148387", "0.6035399", "0.595986", "0.5959056", "0.58962417", "0.58626235", "0.5858042", "0.5847576", "0.58444333", "0.5833462", "0.5818773", "0.5795754", "0.5744853", "0.57395583", "0.57394207", "0.57214576", "0.56616...
0.7174637
0
This method returns a directorylist of the current directory or given one. To display the current selected directory, simply set the first parameter to null or leave it blank, if you do not want to use any other parameters. There are 4 different modes of listing directories. Either to list only the files (using ftpClie...
Этот метод возвращает список каталогов текущего каталога или указанного. Чтобы отобразить текущий выбранный каталог, просто установите первый параметр в null или оставьте его пустым, если не хотите использовать другие параметры. Существует 4 различных режима отображения каталогов. Либо отображать только файлы (использу...
function ls($dir = null, $mode = self::LS_MODE_DIRS_FILES) { if ( $dir === null ) { $dir = $this->pwd(); } if ( ($mode != self::LS_MODE_FILES_ONLY) && ($mode != self::LS_MODE_DIR_ONLY) && ($mode != self::LS_MODE_RAWLIST) ) { $mode = self::LS_MODE_DIRS_FILES; } switch ( $mode ) { case self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getDirectoryListing();", "function GetDirectoryList($bIsShowResult = true, $sInFilePath = '')\n{\t\n\t$sDirectoryPath = '';\n\t\n\tif(strlen($sInFilePath) === 0)\n\t{\n\t\tif(isset($_REQUEST['file-path']) === false)\n\t\t{\n\t\t\techo '<fail>no file path</fail>';\n\t\t\treturn;\n\t\t}\n\t\t$sDire...
[ "0.7070453", "0.6928776", "0.69244236", "0.68159485", "0.67324615", "0.6686486", "0.6603457", "0.6514352", "0.65143013", "0.65051925", "0.6398932", "0.63027406", "0.6298545", "0.62482154", "0.6223807", "0.62214774", "0.6115675", "0.6090025", "0.6064449", "0.6048543", "0.60315...
0.76958275
0
This method will delete the given file or directory ($path) from the server (maybe recursive). Whether the given string is a file or directory is only determined by the last sign inside the string ("/" or not). If you specify a directory, you can optionally specify $recursive as true, to let the directory be deleted re...
Этот метод удалит указанный файл или директорию ($path) с сервера (возможно, рекурсивно). То, является ли указанный строка файлом или директорией, определяется только по последнему знаку внутри строки ("/" или нет). Если вы указываете директорию, вы можете дополнительно указать $recursive как true, чтобы директория был...
function rm($path, $recursive = false, $filesonly = false) { $path = $this->_constructPath($path); if ( $this->_checkRemoteDir($path) === true ) { if ( $recursive ) { return $this->_rmDirRecursive($path, $filesonly); } else { return $this->_rmDir($path); } } else { return $this->_rmFi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($path, $recursive);", "public function delete( $file, $recursive = false, $type = false ) {\n\t\tif ( empty( $file ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( 'f' === $type || $this->is_file( $file ) ) {\n\t\t\treturn ftp_delete( $this->link, $file );\n\t\t}\n\n\t\tif ( ! $recursive ) {\...
[ "0.77975637", "0.6731399", "0.66654307", "0.66654307", "0.66474277", "0.6620933", "0.6620933", "0.6620933", "0.66208696", "0.66184694", "0.6570786", "0.639026", "0.6366436", "0.6351251", "0.6351251", "0.63443154", "0.63084537", "0.6296331", "0.62851125", "0.62797", "0.6258946...
0.70951134
1
This functionality allows you to transfer a whole directorystructure from your local host to the remoteftp. You have to give a remotedirectory (ending with '/') and the local directory (ending with '/') where to put the files you download. The remote path is automatically completed with the currentremotedir, if you giv...
Эта функциональность позволяет переносить всю структуру каталога с вашего локального хоста на удаленный ftp. Вам необходимо указать удаленный каталог (заканчивающийся на '/') и локальный каталог (заканчивающийся на '/') для размещения загруженных файлов. Удаленный путь автоматически дополняется текущим удаленным катало...
function putRecursive($local_path, $remote_path, $overwrite = false, $mode = null) { $remote_path = $this->_constructPath($remote_path); if ( !file_exists($local_path) || !is_dir($local_path) ) { throw new ftpPutRecursiveException("Given local-path '$local_path' seems not to be a directory."); } // try ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRecursive($remote_path, $local_path, $overwrite = false, $mode = null) {\r\n\t\t$remote_path = $this->_constructPath($remote_path);\r\n\t\tif ( $this->_checkRemoteDir($remote_path) !== true ) {\r\n\t\t\tthrow new ftpGetRecursiveException(\"Given remote-path '$remote_path' seems not to be a directory.\"...
[ "0.6840044", "0.63063794", "0.6051163", "0.5718282", "0.56136626", "0.56073457", "0.55651313", "0.55123526", "0.5510334", "0.5448246", "0.5443058", "0.5361282", "0.5351838", "0.5342508", "0.531576", "0.5276888", "0.52697504", "0.52126557", "0.5172134", "0.51385975", "0.513783...
0.70397973
0
Returns the baseOptionsSet object
Возвращает объект baseOptionsSet
function getOptionsSet() { if ( !$this->_OptionsSet instanceof baseOptionsSet ) { $this->_OptionsSet = new baseOptionsSet(); } return $this->_OptionsSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOptionsSet() {\n\t\tif ( !$this->_OptionsSet instanceof baseOptionsSet ) {\n\t\t\t$this->_OptionsSet = new baseOptionsSet();\n\t\t}\n\t\treturn $this->_OptionsSet;\n\t}", "public function getBaseOptions()\n {\n return array();\n }", "protected function getOptionSets() {\n return $th...
[ "0.836398", "0.6810016", "0.631381", "0.60119367", "0.5970159", "0.59405893", "0.5907657", "0.5883584", "0.5883584", "0.5828509", "0.5827756", "0.5814671", "0.58013594", "0.5790813", "0.5790813", "0.57905287", "0.5789148", "0.5783503", "0.5783503", "0.5783503", "0.5783503", ...
0.8351127
1
Set the transfermode. You can use the predefined constants FTP_ASCII or FTP_BINARY. The mode will be stored for any further transfers.
Установите режим передачи. Вы можете использовать предопределенные константы FTP_ASCII или FTP_BINARY. Режим будет сохранен для всех последующих передач.
function setMode($mode) { if ( ($mode == FTP_ASCII) || ($mode == FTP_BINARY) ) { $this->getOptionsSet()->setOptions(array(self::OPTION_TRANSFER_MODE => $mode)); return $this; } else { throw new ftpException('FTP-Mode has either to be FTP_ASCII or FTP_BINARY'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMode() {\r\n\t\treturn $this->getOptionsSet()->getOptions(self::OPTION_TRANSFER_MODE, FTP_ASCII);\r\n\t}", "function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}", "function setMode($mode) {\n\t\t$this->_mode = $mode;\n\t}", "public function SetMode($mode)\n\t{\n\t\t$this->mode = $mode;\n\t}"...
[ "0.6850781", "0.65944886", "0.65944886", "0.6564583", "0.65627694", "0.65428835", "0.6451531", "0.63967395", "0.6360661", "0.6278658", "0.6198315", "0.5991085", "0.59650475", "0.59004724", "0.5823119", "0.5705238", "0.56567866", "0.56388", "0.56295097", "0.5612661", "0.560837...
0.82249117
0
Set the transfermethod to passive mode
Установите режим передачи в пассивный режим
function setPassive() { $this->getOptionsSet()->setOptions(array(self::OPTION_TRANSFER_METHOD => self::TRANSFER_METHOD_PASSIVE)); @ftp_pasv($this->_handle, true); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPassive($passive = true)\n {\n $this->passive = $passive;\n }", "protected function passiveMode()\n {\n if(!filter_var($this->ip,FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE))\n {\n ftp_pasv($this->resource,true);\n }\n\n }", "function isPas...
[ "0.7559317", "0.75359666", "0.71501225", "0.70234513", "0.6735268", "0.6558415", "0.6455848", "0.61674577", "0.6076515", "0.5956675", "0.5813254", "0.5641019", "0.5641019", "0.54413456", "0.5257897", "0.5136559", "0.5117393", "0.51021487", "0.5034456", "0.5033596", "0.4978672...
0.7793043
0
Set the transfermethod to active mode
Установите режим передачи в активный режим
function setActive() { $this->getOptionsSet()->setOptions(array(self::OPTION_TRANSFER_METHOD => self::TRANSFER_METHOD_ACTIVE)); @ftp_pasv($this->_handle, false); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setActive()\n\t\t{\n\t\t\t$this->_state = 1;\n\t\t}", "public function setActive()\r\n {\r\n $this->active = true;\r\n }", "public function setActive() {}", "public function setTransferMethod($transfer_method) {\n $this->transfer_method = $transfer_method;\n }", "priv...
[ "0.6446733", "0.64192504", "0.63525045", "0.6117903", "0.6024459", "0.5942182", "0.5850992", "0.5840481", "0.5839646", "0.58149135", "0.5809298", "0.5809298", "0.5803175", "0.572635", "0.572635", "0.5717569", "0.57032007", "0.5702752", "0.5659796", "0.56547743", "0.55781746",...
0.7487946
0
Set the timeout for FTP operations Use this method to set a timeout for FTP operation. Timeout has to be an integer.
Установите тайм-аут для операций FTP. Используйте этот метод для установки тайм-аута для операций FTP. Тайм-аут должен быть целым числом.
function setTimeout($timeout = 0) { if ( !is_int($timeout) || ($timeout < 0) ) { throw new ftpException('Timeout '.$timeout.' is invalid, has to be an integer >= 0'); } $this->getOptionsSet()->setOptions(array(self::OPTION_TIMEOUT => $timeout)); if ( isset($this->_handle) && is_resource($this->_handle) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_timeout($timeout)\n {\n // Sanitize the timeout, and save to instance.\n \n $this->timeout = (int)$timeout;\n }", "public function setConnectionTimeout($timeout);", "public function set_timeout($timeout = 10)\n {\n }", "public function setTimeout($...
[ "0.6976904", "0.6955168", "0.6949712", "0.68502665", "0.66588414", "0.66486305", "0.66191757", "0.6510758", "0.6496033", "0.6495994", "0.6435909", "0.64264894", "0.63783514", "0.6364912", "0.63516015", "0.63516015", "0.6348588", "0.6340599", "0.63151735", "0.62643373", "0.623...
0.803322
0
Returns the transfermode, default FTP_ASCII
Возвращает режим передачи, по умолчанию FTP_ASCII
function getMode() { return $this->getOptionsSet()->getOptions(self::OPTION_TRANSFER_MODE, FTP_ASCII); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMode($mode) {\r\n\t\tif ( ($mode == FTP_ASCII) || ($mode == FTP_BINARY) ) {\r\n\t\t\t$this->getOptionsSet()->setOptions(array(self::OPTION_TRANSFER_MODE => $mode));\r\n\t\t\treturn $this;\r\n\t\t} else {\r\n\t\t\tthrow new ftpException('FTP-Mode has either to be FTP_ASCII or FTP_BINARY');\r\n\t\t}\r\n\...
[ "0.7063605", "0.7009786", "0.61256963", "0.5786866", "0.57228506", "0.5716351", "0.571261", "0.566911", "0.5609958", "0.560734", "0.5556411", "0.5522493", "0.5507663", "0.5490671", "0.532803", "0.5322894", "0.5318709", "0.52736455", "0.5236705", "0.52286404", "0.52075624", ...
0.87295794
0
Returns, whether the connection is set to passive mode or not
Возвращает, установлен ли режим соединения в пассивный режим или нет
function isPassive() { return $this->getOptionsSet()->getOptions(self::OPTION_TRANSFER_METHOD, self::TRANSFER_METHOD_PASSIVE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPassive();", "public function getPassive()\n {\n return $this->passive;\n }", "protected function passiveMode()\n {\n if(!filter_var($this->ip,FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE))\n {\n ftp_pasv($this->resource,true);\n }\n\n }", ...
[ "0.7929185", "0.76152426", "0.7356573", "0.67842066", "0.66578174", "0.63898975", "0.6260651", "0.6238535", "0.6108577", "0.6060114", "0.60431004", "0.6024618", "0.6018507", "0.5974547", "0.5953263", "0.594491", "0.59225506", "0.5892725", "0.5870056", "0.58573437", "0.5857343...
0.8220496
0
Returns the mode set for a fileextension
Возвращает режим, установленный для расширения файла
function getExtensionMode($ext) { if ( array_key_exists($ext, $this->_file_extensions) ) { return $this->_file_extensions[$ext]; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFileMode()\n {\n if (isset($this->raw->chmod)) {\n return intval($this->raw->chmod, 8);\n }\n\n return null;\n }", "function checkFileExtension($filename) {\r\n\t\tif ( ($pos = strrpos($filename, '.')) === false ) {\r\n\t\t\treturn $this->getMode();\r\n\t\...
[ "0.70943767", "0.7017578", "0.63967186", "0.63099325", "0.6278676", "0.62502825", "0.6250247", "0.61829853", "0.61474675", "0.6141805", "0.6138898", "0.6129679", "0.6115365", "0.6113114", "0.6085588", "0.6066616", "0.6054769", "0.60324866", "0.6029519", "0.60203546", "0.60203...
0.7742663
0
Adds a ftpClientObserver instance to the list of observers that are listening for messages emitted by this Net_FTP instance.
Добавляет экземпляр ftpClientObserver в список наблюдателей, которые слушают сообщения, испускаемые этим экземпляром Net_FTP.
function attach(ftpClientObserver $observer) { $this->_listeners[$observer->getId()] = $observer; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add($observer){\n $this->observers[] = $observer;\n }", "function addObserver(Observer $observer_in) {\n $this->observers[] = $observer_in;\n }", "function notify($event) {\r\n\t\tif ( count($this->_listeners) > 0 ) {\r\n\t\t\tif ( false ) $listener = new ftpClientObserver();\...
[ "0.6249877", "0.60950863", "0.59716177", "0.5705185", "0.561706", "0.55773526", "0.5526165", "0.55224204", "0.54940724", "0.5479578", "0.5478748", "0.5443663", "0.54420626", "0.54005563", "0.53310895", "0.5220643", "0.51744914", "0.51441795", "0.51218146", "0.50910205", "0.50...
0.7357347
0
Returns true if $observer is a currently attached listener
Возвращает true, если $observer является текущим присоединенным слушателем
function isAttached(ftpClientObserver $observer) { if ( isset($this->_listeners[$observer->getId()]) ) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function attached(&$observer)\n {\n return isset($this->observers[$observer->getHashCode()]);\n }", "public function hasObservers() : bool\n {\n\n return 0 < $this->countObservers();\n\n }", "public function isListening ()\r\n\t\t{\r\n\t\t\t\treturn $this -> currentState == self :: ST...
[ "0.79412216", "0.68658304", "0.66018933", "0.65932125", "0.64843065", "0.6340191", "0.62870955", "0.6272731", "0.6262706", "0.61173975", "0.6112861", "0.61037534", "0.60954267", "0.60746217", "0.60729647", "0.60577047", "0.60215765", "0.6006896", "0.6003025", "0.59668964", "0...
0.7775298
1
Sets the directory listing matcher Use this method to set the directory listing matcher to a specific pattern. Indicate the pattern as a perl regular expression and give an array containing as keys the fields selected in the regular expression and as values the offset of the subpattern in the pattern. Example: $pattern...
Устанавливает шаблон соответствия для списка каталогов. Используйте этот метод для установки шаблона соответствия списка каталогов в определённый шаблон. Укажите шаблон как perl-регулярное выражение и предоставьте массив, в котором ключами являются поля, выбранные в регулярном выражении, а значениями — смещения подшабл...
function setDirMatcher($pattern, $matchmap) { if ( !is_string($pattern) ) { throw new ftpException('The supplied pattern is not a string'); } if ( !is_array($matchmap) ) { throw new ftpException('The supplied matchmap pattern is not an array'); } else { foreach ( $matchmap as $val ) { if ( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function map($pattern, $defaults=false, $requirements=false) {\n\t\t# parse pattern into regex\n\t\t$this->maps[] = new UsherMap($pattern, $defaults, $requirements);\n\t}", "function setDirNameRegex($dirNameRegex) {\n $this->dirNameRegex = $dirNameRegex;\n }", "public function setMatcher(Matcher $mat...
[ "0.5060598", "0.49435905", "0.48913258", "0.4856138", "0.48100463", "0.4758084", "0.471023", "0.4632601", "0.4630211", "0.46175572", "0.4611517", "0.4597019", "0.4581685", "0.45802873", "0.44857332", "0.43892467", "0.43859693", "0.4378849", "0.4374053", "0.43589106", "0.43079...
0.7971091
0
/get el datatables Invoices
Получить данные таблицы Invoices
public function getInvoicesDataTable($codigoInvoices='') {//var_dump($_POST);exit; echo ($this->invm->ShowInvoicesTable($codigoInvoices)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoices()\n {\n $users = User::where('role_id', '=', 2)->lists('id')->toArray();\n $invoices = Invoice::whereIn('user_id', $users);\n\n return Datatables::of($invoices)\n ->editColumn('id', function ($invoice) {\n return '<a href=\"' . url('admi...
[ "0.7523435", "0.6980783", "0.6794872", "0.67808783", "0.67311484", "0.66760546", "0.66644865", "0.6654955", "0.6619565", "0.66085905", "0.6585801", "0.6575053", "0.65600234", "0.65282506", "0.6496797", "0.64775985", "0.64752084", "0.64749837", "0.64601135", "0.6440379", "0.64...
0.7548225
0
protected $guarded = ['is_read','box_type','created_at','updated_at','deleted_at_sender','deleted_at_receiver']; get relationship with sender user
protected $guarded = ['is_read','box_type','created_at','updated_at','deleted_at_sender','deleted_at_receiver']; получить связь с пользователем отправителя
public function sender(){ return $this->belongsTo('App\Models\User','sender_id_fk'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sender() {\n \treturn $this->belongsTo('User', 'sender_id');\n }", "public function receiving_user(){\n return $this->belongsTo('App\\User', 'received_by');\n }", "public function user()\r\n {\r\n // belongsTo(RelatedModel, foreignKey = user_id, keyOnRelatedModel = id...
[ "0.7413782", "0.73865575", "0.73354816", "0.73210055", "0.7281364", "0.7252628", "0.7237966", "0.7229828", "0.7204945", "0.71500844", "0.70627403", "0.70428604", "0.7012635", "0.7007487", "0.6989609", "0.6984055", "0.6980592", "0.683865", "0.6821914", "0.6816286", "0.67870045...
0.766727
0
Render a wavefront model.
Отрендерить модель Wavefront.
public function render_wavefront_model(\mod_wavefront\output\wavefront_model $wavefront): string { $context = $wavefront->export_for_template($this); if (count($context) == 0) { // An error has occured. return $this->output->heading(get_string("errornowavefrontfiles", "wavefront"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "publi...
[ "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.5729931", "0.56806767", "0.56806767", "0.55882424", ...
0.7161968
0
Render a collada model.
Отрендерить модель Collada.
public function render_collada_model(\mod_wavefront\output\collada_model $collada): string { $context = $collada->export_for_template($this); if (count($context) == 0) { // An error has occured. return $this->output->heading(get_string("errornocolladafiles", "wavefront")); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function display_model_in_ar($context, $model, $stagename) {\n $output = '';\n\n // Display model.\n if ($model->type === 'obj') {\n $wavefrontmodel = new \\mod_wavefront\\output\\wavefront_ar($context, $model, $stagename);\n $output .= $this->render($wavefrontmode...
[ "0.56103164", "0.52640855", "0.52640855", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816", "0.52343816"...
0.7178113
0
Output the HTML for a comment in the given context.
Выведите HTML для комментария в заданном контексте.
private function print_comment($comment, $context) { global $DB, $CFG, $COURSE; $output = ''; $user = $DB->get_record('user', array('id' => $comment->userid)); $deleteurl = new moodle_url('/mod/wavefront/comment.php', array('id' => $comment->wavefrontid, 'delete' => $comment->id)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process($context)\n {\n $context->setContents($this->setCDataPlaceholder($context->getContents(), $context->getPlaceholderContainer()));\n\n return $context->setContents($this->setConditionalCommentsPlaceholder($context->getContents(), $context->getPlaceholderContainer()));\n }"...
[ "0.64807594", "0.6228488", "0.60839254", "0.59880054", "0.5922078", "0.5841764", "0.5798406", "0.5753126", "0.57374626", "0.5680428", "0.56754065", "0.56631947", "0.5662908", "0.56453747", "0.5634299", "0.5623954", "0.5623763", "0.5623763", "0.56021094", "0.5588728", "0.55853...
0.71384794
0
Returns the boolean state of microdataAdress
Возвращает логическое состояние microdataAdress
public function isMicrodataAdress() { return $this->microdataAdress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readBoolean();", "public function getBool(): bool;", "function getIsOn(){\n\t\tglobal $db;\n\t\t$statement = $db->prepare('SELECT isOn FROM bot_on_off LIMIT 1');\n\t\t$statement->execute();\n\t\treturn $statement->fetch()['isOn'] == true;\n\t}", "public function getDressingFlag()\n {\n $va...
[ "0.62073547", "0.59223014", "0.5874524", "0.5840616", "0.5772342", "0.5735298", "0.5712108", "0.56853974", "0.5670812", "0.56657386", "0.5650252", "0.5627116", "0.5579414", "0.55777955", "0.5569634", "0.55137557", "0.5486736", "0.5481068", "0.5473054", "0.54687756", "0.544138...
0.70702624
0
sets the middleName attribute
устанавливает атрибут middleName
public function setMiddleName($middleName) { $this->middleName = $middleName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMiddleName()\n {\n return $this->middle_name;\n }", "function setStudentMiddleName($studentMiddleName) {\n\t\treturn $this->setData('studentMiddleName', $studentMiddleName);\n\t}", "public function getMiddleName()\n {\n return $this->middleName;\n }", "public func...
[ "0.7139385", "0.71204305", "0.7039969", "0.7039969", "0.7039969", "0.70280975", "0.7011664", "0.6992115", "0.6699688", "0.6694389", "0.6648134", "0.64145184", "0.6414481", "0.6165374", "0.61342394", "0.61179656", "0.61039025", "0.6060405", "0.6035471", "0.6019809", "0.5996572...
0.78728807
0
sets the longitude attribute
устанавливает атрибут долготы
public function setLongitude($longitude) { $this->longitude = $longitude; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLongitude(?float $longitude): void\n {\n $this->longitude['value'] = $longitude;\n }", "public function setLongitude($longitude) {\n\n $this->longitude = $longitude;\n\n }", "abstract public function longitude();", "public function setLon($value)\n {\n retu...
[ "0.7615567", "0.7376114", "0.72872937", "0.71950495", "0.71950495", "0.71677023", "0.71677023", "0.71677023", "0.71677023", "0.71138495", "0.7112261", "0.70749676", "0.7006854", "0.69517934", "0.68020046", "0.680126", "0.67163086", "0.66951776", "0.6689237", "0.6674679", "0.6...
0.7400527
1
returns the building attribute
возвращает атрибут здания
public function getBuilding() { return $this->building; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBuildingtype()\n {\n return $this->buildingtype;\n }", "public function getIdBuilding(){\n return $this->idBuilding;\n }", "public function getCbuilding()\n {\n return $this->cbuilding;\n }", "public function getBuildingName() :string\n {\n ret...
[ "0.6928334", "0.6820047", "0.6756153", "0.66879165", "0.65576094", "0.63487226", "0.6320311", "0.62454426", "0.6223838", "0.62041456", "0.6160483", "0.6160483", "0.61378056", "0.61351764", "0.6115606", "0.61023", "0.6070773", "0.6010017", "0.59708655", "0.59581614", "0.590427...
0.75128424
1
sets the room attribute
устанавливает атрибут комнаты
public function setRoom($room) { $this->room = $room; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRoom($room)\n {\n $this->room = (string)$room;\n return $this;\n }", "function it_gets_and_sets_the_room_id()\n {\n $this->getRoom()->shouldReturn(123456);\n\n // Set the room id\n $this->setRoom(654321);\n\n // Get the current room id\n ...
[ "0.71970046", "0.63591516", "0.6323128", "0.6299412", "0.6132031", "0.6004412", "0.6004412", "0.6004412", "0.5941713", "0.5873045", "0.5806969", "0.5780026", "0.56965244", "0.56106573", "0.5586913", "0.55191183", "0.55040455", "0.5467623", "0.54494834", "0.5409776", "0.537072...
0.789396
0
returns the room attribute
возвращает атрибут комнаты
public function getRoom() { return $this->room; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoom_name()\n {\n return $this->room_name;\n }", "public function getId_room()\n {\n return $this->id_room;\n }", "public function getRoomWithTypeAttribute()\n {\n return \"{$this->room->room_with_type}\";\n }", "public function getIdRoom()\n {\n ...
[ "0.7381183", "0.736099", "0.7209089", "0.71283317", "0.6980943", "0.6980943", "0.6817425", "0.66326666", "0.66019595", "0.644304", "0.63499427", "0.62407887", "0.62368745", "0.6234638", "0.6179508", "0.6148479", "0.6056378", "0.6002739", "0.5920239", "0.58789104", "0.5850902"...
0.7834874
0
sets the www attribute
устанавливает атрибут www
public function setWww($www) { $this->www = $www; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSiteUrl()\n {\n }", "public function getWww()\n {\n return $this->www;\n }", "public function setWebsite($val)\n {\n $this->_propDict[\"website\"] = $val;\n return $this;\n }", "public function setWebsite($uri);", "function setWebsiteS(string $websi...
[ "0.6796747", "0.6563193", "0.6443645", "0.6322359", "0.6233604", "0.6206018", "0.62003464", "0.6023501", "0.599406", "0.5929153", "0.58990055", "0.5888745", "0.5888548", "0.57971174", "0.5782571", "0.5757156", "0.5747267", "0.57394004", "0.5731308", "0.56471175", "0.5641395",...
0.7761134
0
returns the www attribute
возвращает атрибут www
public function getWww() { return $this->www; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWebsiteAttribute()\n {\n return $this->sanitizeWebsite($this->attributes['website']);\n }", "public function getWebsite(){\r\n\t\t\treturn $this->website;\r\n\t\t}", "public function getWebsite()\n {\n if (array_key_exists(\"website\", $this->_propDict)) {\n ...
[ "0.7269561", "0.7160661", "0.70780647", "0.70525694", "0.7027831", "0.69992083", "0.69992083", "0.69992083", "0.69855565", "0.6806791", "0.676768", "0.6707591", "0.6690853", "0.6573932", "0.64944804", "0.64118606", "0.6382563", "0.6363721", "0.6356134", "0.6329755", "0.621068...
0.7696881
0
sets the Skype attribute
устанавливает атрибут Skype
public function setSkype($skype) { $this->skype = $skype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSkype()\n {\n return $this->skype;\n }", "public function setSoundType ($typ) {\n\t\tif (ctype_digit ($typ))\n\t\t\t$this->soundType = $typ;\n\t\telse if (!is_null($this->soundTypeMap[$typ]))\n\t\t\t$this->soundType = $this->soundTypeMap[$typ];\n\t}", "function setSwimMeet($swim...
[ "0.64360106", "0.5360839", "0.51810896", "0.51673484", "0.5047819", "0.4973028", "0.4957092", "0.49377328", "0.49316448", "0.4913234", "0.4908118", "0.48766753", "0.48595825", "0.48453915", "0.4820496", "0.4806761", "0.47650525", "0.47495142", "0.4738293", "0.47273207", "0.46...
0.70952123
0
returns the Skype attribute
возвращает атрибут Skype
public function getSkype() { return $this->skype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributeName(): string\n {\n return 'Sender';\n }", "function GetAttributes();", "public function getWinger()\n {\n if ($this->isSkillsAvailable()) {\n return $this->getXml()->getElementsByTagName('WingerSkill')->item(0)->nodeValue;\n }\n retu...
[ "0.5383808", "0.5356875", "0.5239471", "0.52353203", "0.5228781", "0.5224491", "0.5205744", "0.51868135", "0.51776636", "0.5172952", "0.515826", "0.5153727", "0.51339024", "0.5119111", "0.50583917", "0.50332314", "0.50332314", "0.50332314", "0.50332314", "0.50332314", "0.5033...
0.73733634
0
sets the twitter attribute
устанавливает атрибут twitter
public function setTwitter($twitter) { if (substr($twitter, 0, 1) !== '@') { throw new \InvalidArgumentException('twitter name must start with @', 1357530444); } $this->twitter = $twitter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTwitterUsername($twitterUsername)\n {\n $this->twitterUsername = $twitterUsername;\n }", "public function setTwitter($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->twitter !== $v) {\n\t\t\t$this->twitter = $v;\n\t\t\t$this->modifiedColumns[] = V...
[ "0.7108215", "0.7088176", "0.70248353", "0.68421406", "0.68282783", "0.6761694", "0.66884774", "0.6673835", "0.66068304", "0.66024053", "0.65370077", "0.651318", "0.6512455", "0.64424044", "0.6405062", "0.63825417", "0.62867504", "0.62108415", "0.6209298", "0.6194429", "0.618...
0.70949453
1
returns the twitter attribute
возвращает атрибут twitter
public function getTwitter() { return $this->twitter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_twitter() {\r\n return $this->twitter;\r\n }", "public function getTwitter()\n\t{\n\t\treturn $this->twitter;\n\t}", "public function getTwitterIdentifier()\n {\n return $this->_getIdentifier('twitter');\n }", "public function getTwitterUrl()\n {\n return ...
[ "0.834715", "0.8154191", "0.7602827", "0.74698853", "0.7467845", "0.7444171", "0.73824924", "0.736928", "0.7140309", "0.7075989", "0.7002053", "0.6703779", "0.6683201", "0.66725594", "0.6661891", "0.66387475", "0.66113746", "0.65867096", "0.65150684", "0.64412993", "0.6438304...
0.8194156
1
sets the company attribute
устанавливает атрибут компании
public function setCompany($company) { $this->company = $company; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCompany(string $company): void\n {\n $this->_company = $company;\n }", "public function setCompany($company_nid);", "public function setCompanyNameAttribute($value) {\n\t\t$this->company_name = $value;\n\t}", "public function __construct($company) {\n $this->company = $...
[ "0.8082997", "0.76697564", "0.7195021", "0.6972501", "0.6943425", "0.6910738", "0.6910738", "0.69060874", "0.68849957", "0.68541604", "0.67947054", "0.6790856", "0.67523456", "0.66812164", "0.66740984", "0.66601485", "0.65668243", "0.6556261", "0.6549529", "0.6535149", "0.649...
0.80843353
0
returns the company attribute
возвращает атрибут компании
public function getCompany() { return $this->company; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_company() \n {\n return $this->company;\n }", "public function getCompany();", "public function getCompany() {}", "public function company(): string\n {\n return $this->getData('CompanyName');\n }", "public function getCompany()\n {\n return isset($th...
[ "0.8378989", "0.78750986", "0.784876", "0.78114724", "0.77708524", "0.7703485", "0.7699838", "0.762855", "0.7607188", "0.76038194", "0.7578189", "0.75520056", "0.7550505", "0.74769485", "0.74613637", "0.74413955", "0.74413955", "0.743876", "0.74333066", "0.7407259", "0.740289...
0.8223311
1
Gets array of suboptions.
Получает массив подвариантов.
public function getSubOptions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOptions() : array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getO...
[ "0.7106345", "0.7055212", "0.7055212", "0.7055212", "0.7055212", "0.7055212", "0.7055212", "0.7055212", "0.690142", "0.6891016", "0.68470705", "0.6823954", "0.6823954", "0.6823954", "0.6812171", "0.67960024", "0.67960024", "0.67960024", "0.67960024", "0.67960024", "0.67960024...
0.7902651
0
Missions where carer has not confirmed
Миссии, где ухаживающий не подтвердил
public function actionMissionsCarerNotConfirmed() { $missions = Mission::getMissionsCarerNotConfirmed(); $this->render('missionsCarerNotConfirmed', array( 'missions' => $missions, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionMissionsNoCarerApplied() {\n\n $missions = Mission::getMissionsNoCarerApplied();\n\n $this->render('missionsNoCarerApplied', array(\n 'missions' => $missions,\n ));\n }", "public function actionMissionsNoCarerSelected() {\n\n $missions = Mission::ge...
[ "0.6195166", "0.6165933", "0.5717856", "0.55818486", "0.53385353", "0.53327495", "0.5230382", "0.5190355", "0.51818615", "0.5169733", "0.51614577", "0.5030777", "0.5018356", "0.5012753", "0.49802107", "0.49677613", "0.49666324", "0.49653575", "0.49399075", "0.4934891", "0.493...
0.7245031
0
Supprimer le dossier de l'item
Удалить папку элемента
public function deleteThisItem(){ $this->deleteFiles(self::DATA_DIRECTORY.$this->_page."/items/".$this->_id); // Supprimer l'item de $this->_collectionAdministrator->_data $this->_collectionAdministrator->removeItem($this->_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteItem()\r\n\t{\r\n\t\t$this->content_obj->deleteItem();\r\n\t\t$_SESSION[\"il_pg_error\"] = $this->pg_obj->update();\r\n\t\t$this->ctrl->returnToParent($this, \"jump\".$this->hier_id);\r\n\t}", "function delete() {\n global $USER;\n if($this->Dir !== 0 && $this->mayI(DELETE)) {\n ...
[ "0.69789827", "0.6627578", "0.65693873", "0.6531691", "0.65255696", "0.65250987", "0.6487496", "0.6487232", "0.648498", "0.64619374", "0.6450932", "0.6405849", "0.6392673", "0.6345123", "0.63352144", "0.63315547", "0.6293979", "0.62774855", "0.626781", "0.6259536", "0.6258077...
0.7637732
0
Renderer the table separate block.
Отрендерить таблицу в отдельном блоке.
protected function renderTableSeparateBlock(): string { return '<tbody class="skipped">' . '<tr>' . '<td></td>' . '</tr>' . '</tbody>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "public function renderTableBody() {\n //$models = array_values($this->dataProvider->getModels());\n //$keys = $this->dataProvider->getKeys();\n $rows = []...
[ "0.6601555", "0.6601555", "0.65993", "0.6592703", "0.65726787", "0.65578127", "0.6525187", "0.64807254", "0.6419051", "0.6417795", "0.637154", "0.6371025", "0.6322328", "0.627491", "0.62220323", "0.6213446", "0.62116385", "0.59986055", "0.5983164", "0.59502876", "0.5947072", ...
0.7448807
0
Renderer the table block: equal.
Отображать блок таблицы: равно.
protected function renderTableBlockEqual(array $block): string { $block['new']['lines'] = $this->customFormatLines( $block['new']['lines'], SequenceMatcher::OP_EQ, ); $ret = ''; // note that although we are in a OP_EQ situation, // the old and the ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function renderTableSeparateBlock(): string\n {\n return\n '<tbody class=\"skipped\">' .\n '<tr>' .\n '<td></td>' .\n '</tr>' .\n '</tbody>';\n }", "public function render()\n\t{\n\t\t$changes = parent::render();\n\t\t$...
[ "0.6002137", "0.58134294", "0.5521011", "0.5475902", "0.54481405", "0.53713137", "0.5325261", "0.52899355", "0.5217159", "0.52142495", "0.51913327", "0.5176212", "0.5167724", "0.5084435", "0.5081667", "0.5081667", "0.5074342", "0.5046094", "0.50021935", "0.49961752", "0.49466...
0.7297379
0
Renderer the table block: delete.
Отрисовать блок таблицы: удалить.
protected function renderTableBlockDelete(array $block): string { $block['old']['lines'] = $this->customFormatLines( $block['old']['lines'], SequenceMatcher::OP_DEL, ); $ret = ''; foreach ($block['old']['lines'] as $oldLine) { $ret .= $this->rend...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callbackRowDelete() {\n $this->deleted = true;\n foreach(array_keys($this->widgets) as $w) {\n $this->widgets[$w]->hide();\n $this->table->table->remove($this->widgets[$w]);\n $this->widgets[$w]->destroy();\n }\n $this->deleteMenuItem->hide();\n...
[ "0.6875197", "0.6530267", "0.6465694", "0.63230854", "0.6289555", "0.6286913", "0.6247387", "0.6193367", "0.6185457", "0.6132531", "0.6041286", "0.60357696", "0.5999281", "0.5975246", "0.59517616", "0.5938059", "0.58755434", "0.5868963", "0.58682895", "0.58682895", "0.5864885...
0.72259766
0
/ Return the most recent post in a forum
Вернуть наиболее недавний пост в форуме
function get_last_post($topic_id) { return Database::get()->querySingle("SELECT post_time FROM forum_post WHERE topic_id = ?d ORDER BY post_time DESC LIMIT 1", $topic_id)->post_time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastPost()\n\t{\n\t\t$table = new Zend_Db_Table(array('name'=>PrecurioTableConstants::FORUM_POSTS, 'rowClass'=>'Post'));\n\t\t$select = $table->select(false);\n\t\t\n\t\t$select->setTable($table)->setIntegrityCheck(false);\t\t\t\n\t\t\t\n\t\t$select = $select->from(array('a' => PrecurioTableCons...
[ "0.78090596", "0.7702404", "0.76408726", "0.7517427", "0.7494771", "0.7268946", "0.7263293", "0.71630585", "0.71395594", "0.708205", "0.7035086", "0.69806117", "0.6976537", "0.6949564", "0.69139796", "0.68599737", "0.6851778", "0.6841379", "0.6837374", "0.6832675", "0.6804284...
0.7783283
1
/ Check if this is the first post in a topic. Used in editpost.php
Проверяет, является ли это первым постом в теме. Используется в editpost.php
function is_first_post($topic_id, $post_id) { $sql = Database::get()->querySingle("SELECT id FROM forum_post WHERE topic_id = ?d ORDER BY id LIMIT 1", $topic_id); if (!$sql) { return(0); } if ($sql->id == $post_id) { return(1); } else { return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMainPost()\n\t{\n\t\t$topic = ForumTopic::with(['messages' => function($q) {\n\t\t\t$q->orderBy('created_at','asc');\n\t\t}])->find($this->topic_id);\n\n\t\tif($topic->messages[0]->id == $this->id) return true;\n\n\t\treturn false;\n\n\t}", "public function isFirst($args)\n {\n // com...
[ "0.7733101", "0.7221089", "0.6805984", "0.6397334", "0.6385513", "0.6300556", "0.61920947", "0.61866754", "0.613705", "0.613258", "0.6109751", "0.61047494", "0.6073172", "0.6072064", "0.6015038", "0.6002247", "0.5985105", "0.5977372", "0.5974953", "0.59725684", "0.5953613", ...
0.8014893
0
Add a test case result.
Добавить результат тест-кейса.
public function addTestResult(Streamwide_PHPUnit_Runner_TestCaseResult $testCaseResult) { $this->_results[] = $testCaseResult; $status = $testCaseResult->getStatus(); $class = $testCaseResult->getTestCase()->getClass(); $index = count($this->_results) - 1; $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addResult($result) {\n //Adds a result to the results array\n $this->results[] = $result;\n }", "public function addResult($file, Blerby_TestRunner_Result $result)\r\n {\r\n $this->aResults[$file][] = $result;\r\n }", "public function testAddResult(): void\n {\...
[ "0.7610431", "0.7345003", "0.7161965", "0.6923906", "0.68557024", "0.6833275", "0.68203014", "0.636844", "0.6264018", "0.61194503", "0.6036211", "0.6020718", "0.5983659", "0.59633833", "0.5940598", "0.5940105", "0.59063363", "0.5870935", "0.5846462", "0.5844761", "0.58291215"...
0.73670316
1
Get all test case results that match selected criteria. If both class and status are null all results are returned. If class name or status is given test results are returned as an associative array indexed by status or class name.
Получить все результаты тестовых случаев, соответствующие выбранным критериям. Если и класс, и статус являются null, возвращаются все результаты. Если задано имя класса или статус, результаты тестов возвращаются в виде ассоциативного массива, индексированного по статусу или имени класса.
public function results($class = null, $status = null) { if (!is_null($status) && !in_array($status, Streamwide_PHPUnit_Runner_TestCaseResult::getAllStatusConstants())) { require_once 'Streamwide/PHPUnit/Runner/Exception.php'; throw new Streamwide_PHPUnit_Runner_Exception('Unknown st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTestResultsData()\n {\n $out = [];\n\n // Case #0, sorted in default acceding\n $out[] = [\n [\n 'green',\n 'yellow',\n 'red',\n 'blue',\n ],\n 'sc'\n ];\n\n // Case...
[ "0.5774507", "0.548367", "0.5424701", "0.5387216", "0.5350474", "0.52466846", "0.5225815", "0.51316285", "0.51116455", "0.5069681", "0.5031056", "0.50290185", "0.5016446", "0.5004323", "0.49807605", "0.49765748", "0.4976445", "0.49390647", "0.49213746", "0.49118143", "0.48978...
0.7384472
0
Tests the License::__toString method.
Тестирует метод License::__toString.
public function testToString () { //Asserts a license instance without an URL property is rendered as its name $license = new License(); $license->name = "Creative Commons Attribution 3.0 Unported License"; $license->code = "CC-BY 3.0"; $this->assertEquals($license, "Creative Com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", ...
[ "0.6532631", "0.6532631", "0.6532631", "0.6532631", "0.6532631", "0.6532631", "0.62583905", "0.6239285", "0.6197176", "0.6170597", "0.6170597", "0.6023847", "0.6019718", "0.5999887", "0.5986904", "0.59648365", "0.59648365", "0.59648365", "0.59648365", "0.59648365", "0.5964836...
0.7894142
0
$this>driver = new \Behat\Mink\Driver\GoutteDriver();
$this->driver = new \Behat\Mink\Driver\GoutteDriver();
public function __construct() { // $this->session = new \Behat\Mink\Session($this->driver); // $this->session->start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this->webDriver = new \\Behat\\Mink\\Driver\\Selenium2Driver();\n $this->session = new \\Behat\\Mink\\Session($this->webDriver);\n\n }", "protected function setup() {\n $driver = new \\Behat\\Mink\\Driver\\GoutteDriver();\n $this->session = n...
[ "0.7695862", "0.73308945", "0.6659397", "0.6629209", "0.62818694", "0.62619823", "0.62258536", "0.6194255", "0.61576587", "0.6147962", "0.5828477", "0.57865804", "0.5770614", "0.5727865", "0.5721946", "0.5720295", "0.57065696", "0.56932825", "0.56753725", "0.5667987", "0.5666...
0.7486583
1
TODO: Implement handlerNeedsRequest() method.
TODO: Реализовать метод handlerNeedsRequest().
public function handlerNeedsRequest() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleRequest() {}", "protected abstract function handleRequest();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "function handleRequest() ;", "abstract public function handle_request();", "protected function _request() {...
[ "0.7538037", "0.74037105", "0.7371647", "0.7371647", "0.7371647", "0.73347515", "0.7295493", "0.70803225", "0.70725745", "0.6853433", "0.684825", "0.6654085", "0.66294855", "0.66161615", "0.65380085", "0.65307254", "0.6512132", "0.64984614", "0.64984614", "0.64984614", "0.649...
0.8866101
0
TODO: Implement setRequestOnHandler() method.
TODO: Реализовать метод setRequestOnHandler().
public function setRequestOnHandler($request) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handlerNeedsRequest()\n {\n }", "function handleRequest() ;", "public function handleRequest() {}", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "public static function usesCustomHandler();", "public function getHand...
[ "0.7554208", "0.7077656", "0.70392", "0.6900539", "0.6900539", "0.6900539", "0.6790355", "0.6683081", "0.661483", "0.66009873", "0.657406", "0.6526367", "0.64150995", "0.6411265", "0.6358417", "0.63566446", "0.63566446", "0.6308758", "0.6279346", "0.6183508", "0.618286", "0...
0.85828817
0
Get average month pace
Получить среднюю месячную скорость
static public function getAverageMonthPace() { if (self::$AverageMonthPace === false) { $AverageMonthPace = DB::getInstance()->query('SELECT AVG(`s`/60/`distance`) AS `avg` FROM `'.PREFIX.'training` WHERE `time` > '.(time()-30*DAY_IN_S).' AND `sportid`='.CONF_RUNNINGSPORT.' LIMIT 1')->fetch(); self::$A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _getAverageByMonth($year, $sql, $format=0)\r\n\t{\r\n\t\tglobal $langs;\r\n\r\n\t\t$result=array();\r\n\t\t$res=array();\r\n\r\n\t\tdol_syslog(get_class($this).'::'.__FUNCTION__.\"\", LOG_DEBUG);\r\n\t\t$resql=$this->db->query($sql);\r\n\t\tif ($resql)\r\n\t\t{\r\n\t\t\t$num = $this->db->num_rows($resql);...
[ "0.60898495", "0.60419726", "0.6036731", "0.5888668", "0.5821262", "0.5768566", "0.5753833", "0.5710088", "0.5691186", "0.5679693", "0.5670632", "0.5667073", "0.5663346", "0.56205773", "0.5612766", "0.55786866", "0.5567447", "0.556689", "0.55248535", "0.5521102", "0.5505262",...
0.83187675
0
Get string for pulse [bpm]
Получить строку для импульса [bpm]
public static function PulseStringInBpm($pulse) { return round($pulse).'&nbsp;bpm'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function PulseString($pulse, $time = 0) {\r\n\t\tif ($pulse == 0)\r\n\t\t\treturn '';\r\n\r\n\t\t$hf_max = 0;\r\n\t\t$hf_rest = 0;\r\n\r\n\t\tif ($time != 0 && (time() - $time) > 365*DAY_IN_S) {\r\n\t\t\t$HFmax = DB::getInstance()->query('SELECT `time`,`pulse_max`,`pulse_rest` FROM `'.PREFIX.'user` ...
[ "0.6390728", "0.61920226", "0.58209085", "0.51919925", "0.51807094", "0.5094948", "0.5035294", "0.48548874", "0.48483163", "0.4828658", "0.48189285", "0.48034194", "0.4763777", "0.47488412", "0.47056884", "0.46789655", "0.46767196", "0.46698028", "0.4657336", "0.4651498", "0....
0.7604441
0
Get string for pulse [%HFmax]
Получить строку для импульса [%HFmax]
public static function PulseStringInPercent($pulse, $hf_max = 0) { if ($hf_max == 0) $hf_max = HF_MAX; return round(100*$pulse / $hf_max).'&nbsp;&#37;'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function PulseStringInPercentHRmax($pulse, $hf_max = 0, $hf_rest = 0) {\r\n\t\tif ($hf_max == 0)\r\n\t\t\t$hf_max = HF_MAX;\r\n\t\tif ($hf_rest == 0)\r\n\t\t\t$hf_rest = HF_REST;\r\n\t\t\r\n\t\treturn round(100*($pulse - $hf_rest) / ($hf_max - $hf_rest)).'&nbsp;&#37;';\r\n\t}", "public static funct...
[ "0.7385833", "0.6884543", "0.6306246", "0.5665393", "0.5637104", "0.55561644", "0.55329233", "0.5491132", "0.53176165", "0.51797426", "0.51271296", "0.5028008", "0.50100213", "0.49884233", "0.49599186", "0.49563447", "0.49520534", "0.49383733", "0.4928601", "0.49253798", "0.4...
0.7416421
0
Get string for pulse [%HRmax]
Получить строку для импульса [%HRmax]
public static function PulseStringInPercentHRmax($pulse, $hf_max = 0, $hf_rest = 0) { if ($hf_max == 0) $hf_max = HF_MAX; if ($hf_rest == 0) $hf_rest = HF_REST; return round(100*($pulse - $hf_rest) / ($hf_max - $hf_rest)).'&nbsp;&#37;'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function PulseStringInPercent($pulse, $hf_max = 0) {\r\n\t\tif ($hf_max == 0)\r\n\t\t\t$hf_max = HF_MAX;\r\n\t\t\r\n\t\treturn round(100*$pulse / $hf_max).'&nbsp;&#37;';\r\n\t}", "public static function PulseStringInPercentReserve($pulse, $hf_max = 0, $hf_rest = 0) {\r\n\t\treturn self::PulseInPerc...
[ "0.681444", "0.66602415", "0.62762254", "0.5988098", "0.5945628", "0.5793572", "0.55384547", "0.55068886", "0.53524005", "0.5294451", "0.5141364", "0.5136863", "0.51209456", "0.5117299", "0.51107424", "0.51084906", "0.5097561", "0.5086221", "0.50782734", "0.5021053", "0.49718...
0.7547067
0
Get pulse in percent of HRmax
Получить пульс в процентах от HRmax
public static function PulseInPercentHRmax($pulse, $hf_max = 0) { if ($hf_max == 0) $hf_max = HF_MAX; return round(100*$pulse / $hf_max); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function PulseStringInPercentHRmax($pulse, $hf_max = 0, $hf_rest = 0) {\r\n\t\tif ($hf_max == 0)\r\n\t\t\t$hf_max = HF_MAX;\r\n\t\tif ($hf_rest == 0)\r\n\t\t\t$hf_rest = HF_REST;\r\n\t\t\r\n\t\treturn round(100*($pulse - $hf_rest) / ($hf_max - $hf_rest)).'&nbsp;&#37;';\r\n\t}", "public static funct...
[ "0.7320955", "0.706793", "0.69072354", "0.68255115", "0.5934219", "0.5845462", "0.5733453", "0.56975806", "0.56789076", "0.5588057", "0.5581345", "0.5428586", "0.5414487", "0.54013747", "0.53894484", "0.5369945", "0.53273284", "0.53178924", "0.53178924", "0.5311947", "0.52964...
0.79469323
0
Get pulse in percent of reserve
Получить пульс в процентах от резерва
public static function PulseInPercentReserve($pulse, $hf_max = 0, $hf_rest = 0) { if ($hf_max == 0) $hf_max = HF_MAX; if ($hf_rest == 0) $hf_rest = HF_REST; return round(100*($pulse - $hf_rest) / ($hf_max - $hf_rest)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIptPercent();", "public function positivePercent(){\n\t\treturn round($this->positive*100/($this->positive+$this->negative+$this->indeterminate), 2);\n\t}", "public static function PulseStringInPercentReserve($pulse, $hf_max = 0, $hf_rest = 0) {\r\n\t\treturn self::PulseInPercentReserve($pul...
[ "0.62247795", "0.6200579", "0.61535877", "0.60962516", "0.5940428", "0.5897722", "0.5887478", "0.5880669", "0.5858405", "0.5851391", "0.5770558", "0.5762849", "0.57048124", "0.57017136", "0.56884074", "0.568168", "0.5667855", "0.5662728", "0.5661299", "0.5645571", "0.5630988"...
0.71626383
0
Creating a RGBcolor for a given stressvalue [0100]
Создание RGBcolor для заданного значения напряжения [0100]
public static function Stresscolor($stress) { if ($stress > 100) $stress = 100; if ($stress < 0) $stress = 0; $gb = dechex(200 - 2*$stress); if ((200 - 2*$stress) < 16) $gb = '0'.$gb; return 'C8'.$gb.$gb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function make_rgb()\n {\n $hsl = $this->_hsl;\n $hue = $hsl['hue'];\n $saturation = max(min($hsl['saturation'], 1), 0);\n $luminance = max(min($hsl['luminance'], 1), 0);\n\n $max = ($luminance <= 0.5) ? $luminance * ($saturation + 1) : $luminance + $saturation - $lum...
[ "0.66537195", "0.64617443", "0.63863766", "0.63863766", "0.63863766", "0.63863766", "0.63179445", "0.6200656", "0.6188311", "0.61396474", "0.61351144", "0.6085873", "0.6085873", "0.60797894", "0.6075413", "0.6075413", "0.6075413", "0.6075413", "0.6075413", "0.6075413", "0.607...
0.72860575
0
Get the demanded pace if set in description (e.g. "... in 3:05 ...")
Получить требуемую скорость, если она указана в описании (например, "... в 3:05 ...")
public static function DescriptionToDemandedPace($description) { $array = explode("in ", $description); if (count($array) != 2) return 0; $array = explode(",", $array[1]); $array = explode(":", $array[0]); return sizeof($array) == 2 ? 60*$array[0]+$array[1] : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPace() {\n\t\t$distance = $this->_distance;\n\t\t$time = $this->_time;\n\n\t\t$segments = explode(':',$time);\n\t\t$length = count($segments);\n\t\tswitch ($length) {\n\t\t\tcase 3:\n\t\t\t\t$seconds = $segments[0] * 3600 + $segments[1] * 60 + $segments[2];\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t...
[ "0.6967752", "0.63611", "0.6206354", "0.61865234", "0.60293937", "0.6021907", "0.6008417", "0.5956991", "0.5931534", "0.5893105", "0.58858645", "0.58798194", "0.58165604", "0.5774837", "0.5700692", "0.5700089", "0.56954086", "0.5680125", "0.56767917", "0.55821764", "0.5571704...
0.74396336
0
Load search values for validation
Загрузить значения для поиска валидации
function LoadSearchValues() { global $objForm; // Load search values // tanggal $this->tanggal->AdvancedSearch->SearchValue = @$_GET["x_tanggal"]; if ($this->tanggal->AdvancedSearch->SearchValue <> "" && $this->Command == "") $this->Command = "search"; $this->tanggal->AdvancedSearch->SearchOperator = @$_G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LoadSearchValues() {\n\t\tglobal $objForm;\n\n\t\t// Load search values\n\t\t// id\n\n\t\t$this->id->AdvancedSearch->SearchValue = ew_StripSlashes(@$_GET[\"x_id\"]);\n\t\tif ($this->id->AdvancedSearch->SearchValue <> \"\") $this->Command = \"search\";\n\t\t$this->id->AdvancedSearch->SearchOperator = @$_GE...
[ "0.7142175", "0.7106761", "0.70981145", "0.69927216", "0.6975144", "0.6898849", "0.6852258", "0.6795045", "0.66674805", "0.66674805", "0.6617435", "0.6617435", "0.6617435", "0.6617435", "0.661378", "0.6597139", "0.65731776", "0.64533865", "0.62756234", "0.60543895", "0.605438...
0.71265393
1
Resources list admin main page
Список ресурсов главной страницы администратора
public function action_index() { $this->template->title = 'Resources'; $this->view = View::factory('admin/resource/index'); $this->template->scripts[] = 'media/js/jquery.tablesorter.min.js'; $this->template->scripts[] = 'media/js/admin/resource.js'; $resources = Sprig::factory('resource')->load(NULL, FALS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $admins = Admin::paginate(5);\n return AdminResourceCollection::collection($admins);\n }", "public function admin_index()\n\t{\n\t\t$this->paginate['Role']['order'] = 'Role.id Desc';\n\t\t$this->set('roles', $this->paginate('Role'));\n\t}", "public function ind...
[ "0.7088972", "0.70579225", "0.70500714", "0.6972637", "0.6932615", "0.6887187", "0.68677866", "0.68597937", "0.68585765", "0.68477327", "0.6792406", "0.67574376", "0.67558056", "0.67252314", "0.6719069", "0.669233", "0.6688543", "0.668837", "0.6678554", "0.66667134", "0.66586...
0.80160224
0
Initializes the resource for edit/delete Also performs resource id validation so that only valid resource id will be processed on actions
Инициализирует ресурс для редактирования/удаления. Также выполняет проверку корректности идентификатора ресурса, чтобы только действительные идентификаторы ресурсов обрабатывались при действиях
protected function _init_resource() { $resource_id = $this->request->param('id'); if (!$resource_id) { $this->session->set('error', 'Invalid resource id'); $this->request->redirect('/admin/resource'); } // check if resource exists $this->resource = Sprig::factory('resource', array( 'resource_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postEditResources()\n {\n $id = $this->_params['id'];\n\n $errors = validateEditResource($id);\n\n if(!($errors === true)) {\n $database = new Database();\n\n $resource = $database->getResourceById($id);\n /*construct($resourceID = \"0\", $re...
[ "0.6838568", "0.64770764", "0.6466177", "0.64092463", "0.619019", "0.60112774", "0.59569925", "0.588963", "0.58311826", "0.58164364", "0.5812927", "0.57787544", "0.57583594", "0.5751433", "0.57492846", "0.5733288", "0.5715216", "0.57061183", "0.5698464", "0.56835157", "0.5651...
0.7816533
0
/ | | Ppe Controller | | | This controller handles request for Ppes | Sets delivered true and puts the Ppe in the Stock
| | Ppe Controller | | | Этот контроллер обрабатывает запросы на Ppes | Устанавливает delivered в true и помещает Ppe в Склад
public function deliveredPPE(Request $request) { $ppe = null; // Read in request objects if (array_key_exists('ppe', $request->all())) { $ppe = $request['ppe']; } else { return response()->json(['error' => 'Could not update Ppe (values have to be in a "ppe" ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_paf_stockintake()\r\n\t{\r\n\t\t$this->auth(PAF_ROLE);\r\n\t\t\r\n\t\t$paf_id = $this->input->post('paf_id');\r\n\t\t\r\n\t\t$product = $this->input->post('product');\r\n\t\t$mrp = $this->input->post('mrp');\r\n\t\t$pprice = $this->input->post('pprice');\r\n\t\t$qty = $this->input->post('qty');\r\...
[ "0.606009", "0.57359093", "0.55929077", "0.5572135", "0.55550003", "0.55527157", "0.55466765", "0.5532281", "0.5531894", "0.5522455", "0.54305845", "0.5395267", "0.5390566", "0.53898996", "0.53858286", "0.53610086", "0.5341713", "0.5338184", "0.53298265", "0.5313731", "0.5284...
0.7298293
0
Finds an album with given id.
Находит альбом с заданным идентификатором.
public function find($id, $params = array()) { $that = $this; return $this->cache->load("album-$id", function(&$dependencies) use ($that, $id, $params) { $dependencies[Cache::TAGS] = ["album-$id"]; return $that->doFind($id, $params); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($id)\n {\n return albumdetail::findOrFail($id);\n }", "public function getAlbum($id)\n {\n $key = md5($id);\n if($this->cache->hasItem($key)){\n return unserialize($this->cache->getItem($key));\n }\n\n $results = $this->realSpotifyApi->g...
[ "0.74278265", "0.7218482", "0.72008306", "0.7182056", "0.6999691", "0.69355935", "0.68361074", "0.6781345", "0.6738403", "0.6706008", "0.66796386", "0.6641169", "0.66108453", "0.65805566", "0.65318775", "0.65023935", "0.64957935", "0.6487847", "0.6480914", "0.64630157", "0.64...
0.746599
0
SEND NOTIFICATION to pending installments
ОТПРАВИТЬ УВЕДОМЛЕНИЕ о непогашенных платежах
public function send_notification_to_pending_installments() { $input_data = json_decode(file_get_contents('php://input'), TRUE); if ($this->input->server('REQUEST_METHOD') == 'POST') { $this->load->model('Background_model'); $resp = $this->Background_model->send_notification_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function notify()\n\t\t{\n\t\t\techo \"Notifying via YM\\n\";\n\t\t}", "public function sendUserUpdateNotification(): void\n {\n $this->notify(new VerifyAccountNotification());\n }", "public function do_notify($send, $mailer = NULL);", "public function trigger_notification()\n\t{\n ...
[ "0.61055446", "0.6080214", "0.6078353", "0.60544705", "0.60220015", "0.5970531", "0.5926754", "0.5915458", "0.5903208", "0.590277", "0.5901751", "0.5888898", "0.58834714", "0.5874796", "0.58671635", "0.5862883", "0.5851627", "0.5850492", "0.584404", "0.5837565", "0.583041", ...
0.72615194
0
Normalize a phone number (with or without country code)
Нормализовать телефонный номер (с кодом страны или без)
function normalize_phone($phone) { $phone = preg_replace('/\D/', '', $phone); return (strlen($phone) > 10) ? $phone : (getenv('PHONE_DEFAULT_COUNTRY_CODE') ?: '91') . $phone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLocalisedPhoneNumber($phone_number, $country_code='KE') { \n\t$phone_number = PhoneNumber::make($phone_number, $country_code)->formatNational();\n\t//remove spaces\n\treturn str_replace(\" \", \"\", $phone_number);\n\n}", "function getInternationalPhoneNumberNoSpaces($phone_number, $country_code='...
[ "0.7386986", "0.72516775", "0.7090571", "0.7044733", "0.69965905", "0.69056433", "0.67739207", "0.6738402", "0.6681144", "0.6672891", "0.6644825", "0.66391045", "0.65769625", "0.65477604", "0.65464294", "0.65433496", "0.6431092", "0.6375642", "0.6341561", "0.6334437", "0.6322...
0.7878908
0
Fix products that are assigned to configurable, but not assigned to categories and still marked as visible
Исправить товары, назначенные для конфигурируемого, но не назначенные категориям и все еще помеченные как видимые
public function fixVisibleButWithoutCategoryAndInConfigurable() { $visibilityAttribute = $this->eavConfig->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'visibility'); $select = $this->_getWriteAdapter()->select(); $select->join(['data_index' => $this->getMainTable()], 'data_index.entity_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _applyProductLimitations()\n {\n Mage::dispatchEvent('catalog_product_collection_apply_limitations_before', array(\n 'collection' => $this,\n 'category_id' => isset($this->_productLimitationFilters['category_id']) ?\n $this->_productLimitationF...
[ "0.61981714", "0.57942134", "0.57595116", "0.5728889", "0.5536832", "0.5514402", "0.5495427", "0.54748386", "0.5456363", "0.54441965", "0.5434492", "0.5411341", "0.5400371", "0.53919846", "0.5370955", "0.5361951", "0.53572994", "0.5349074", "0.5347654", "0.533975", "0.533648"...
0.720093
0
Get attribute this fillout is related to
Получить атрибут, к которому относится это заполнение
public function getAttribute() { return $this->attribute; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdentifyingAttribute();", "public function getAttribute(): string\n {\n return $this->attribute;\n }", "public function getCustomAttributesAttribute()\n {\n return $this->custom_attributes()->get();\n }", "public function __get($attribute)\n {\n if ( iss...
[ "0.7040517", "0.6969623", "0.69377625", "0.6904616", "0.6889881", "0.68839025", "0.6825785", "0.6743421", "0.6736131", "0.6705434", "0.66750336", "0.6618226", "0.6595473", "0.6573022", "0.6550089", "0.65021974", "0.6491478", "0.64845604", "0.64464784", "0.64333034", "0.642215...
0.7423581
1