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
/ Returns the current cache client
Возвращает текущего клиентского кэша
public function getCacheClient() { if ($this->cacheClient) { return $this->cacheClient; } return $this->cacheClient = new CacheClient($this->cacheConnectionDsn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClient()\n\t{\n\t\treturn $this->redisClient;\n\t}", "public function getClient()\n {\n if (!$this->client) {\n $this->client = $this->createClient();\n $this->client->addCache($this->cachePool);\n }\n\n return $this->client;\n }", "public fun...
[ "0.7260233", "0.724409", "0.71030086", "0.69043005", "0.682955", "0.6823672", "0.6822708", "0.67673963", "0.67619896", "0.6756854", "0.67511517", "0.6738703", "0.6736963", "0.6727503", "0.67053026", "0.6704763", "0.6696726", "0.6694915", "0.6692241", "0.6680761", "0.6680061",...
0.80121833
0
Connect to MPD server
Подключение к серверу MPD
public function connect($timeout = 30){ $this->connection = \stream_socket_client("tcp://$this->host:$this->port", $errno, $errstr, $timeout); if (!$this->connection) { echo "$errstr ($errno)<br />\n"; return; } $resp = fgets($this->connection, 1024); if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function connect() { \n\t\n\t\t// Look at the current instance and pull the options for said instance\n\t\t$options = self::get_instance(); \n\t\t$this->_mpd = new mpd($options['host'],$options['port'],$options['password']);\n\n\t\tif ($this->_mpd->connected) { return true; } \n\n\t\treturn false;\n\n\t}", ...
[ "0.72100955", "0.67200947", "0.6688605", "0.66860205", "0.6523335", "0.6515528", "0.6492286", "0.64142805", "0.6376998", "0.63415784", "0.62969965", "0.62872267", "0.6283951", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0...
0.7104345
1
Mark this leaf as completed for a user.
Отметьте этот лист как завершенный для пользователя.
public function markCompletedFor($a_user_id) { global $ilAppEventHandler; $ilAppEventHandler->raise("Services/Tracking", "updateStatus", array( "obj_id" => $this->getId(), "usr_id" => $a_user_id, "status" => ilLPStatus::LP_STATUS_COMPLETED_NUM, "percentage" => 100 )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mark_complete() {\n // Create record\n $this->timecompleted = time();\n\n // Save record\n if ($this->id) {\n $this->update();\n } else {\n $this->insert();\n }\n\n // Mark course completion record as started (if not already)\n ...
[ "0.68063885", "0.6559841", "0.63267815", "0.62253404", "0.59917057", "0.58770436", "0.58551323", "0.57687795", "0.5694659", "0.56599915", "0.56224483", "0.5597721", "0.5558037", "0.5512748", "0.54968286", "0.54931045", "0.54824984", "0.54628104", "0.5461529", "0.5454887", "0....
0.7415121
0
get array number day by month current
получить массив номер дня по месяцу текущий
function getDay($month, $year) { if ( empty($year) ) { $year = date('Y'); } $day_arr = array(); if ( $month != 0 ) { $number = date('t', mktime(0, 0, 0, $month, 1, $year)); for ( $i = 1; $i <= $number; $i++ ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_month_days_cm ($fecha) {\n $labels = array();\n $month = month_converter($fecha->month);\n $monthdays = cal_days_in_month(CAL_GREGORIAN, $fecha->month, $fecha->year);\n $i = 0;\n while ($i < $monthdays) {\n $i++;\n $labels[] = $i;\n }\n return $labels;\n}", "functi...
[ "0.6923537", "0.6776679", "0.6755445", "0.66507155", "0.66411805", "0.6601844", "0.65470237", "0.65130025", "0.6460665", "0.64301217", "0.6428734", "0.637385", "0.6306657", "0.6304316", "0.62353903", "0.61570704", "0.61460215", "0.6082594", "0.6061218", "0.6047434", "0.601705...
0.70013785
0
convert date to YYYYMM
преобразовать дату в YYYYMM
function date2YearMonth($date=null){ if(!empty($date)){ return date('Ym', strtotime($date)); }else{ return ''; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convert_date_to_mmdd($date) {\n\t$date = date('m/d', strtotime($date));\n\n\treturn $date;\n}", "public function transform($date)\n {\n if ($date === null) {\n return '';\n }\n return $date->format('d') . '/' . $date->format('m') . '/' . $date->format('Y');\n }", ...
[ "0.6681563", "0.6523007", "0.6498544", "0.6492454", "0.6471678", "0.64606804", "0.6431762", "0.6411973", "0.6279234", "0.6236314", "0.6206356", "0.61481196", "0.61475796", "0.6126886", "0.6065553", "0.6064248", "0.6042289", "0.6038749", "0.603303", "0.602878", "0.6013536", ...
0.7367376
0
convert time 3 digit to 4 digit
преобразовать время 3 цифры в 4 цифры
function time2D4($time){ if ( strlen($time) <= 3 ) $time = sprintf('%04d', $time); $result = array( 'hh' => '00', 'mm' => '00' ); if ( strlen($time) == 4 ) { $result['hh'] = substr($time, 0, 2); $result['mm'] = substr($time, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convert_time ($time = '') {\n $str_time = '';\n\n $time_in_second = $time / 1000;\n\n $nb_minutes = $time_in_second / 60;\n $nb_seconds = $time_in_second % 60;\n\n $str_time = $nb_seconds.'s';\n\n if ($nb_minutes >= 60) {\n $nb_heures = $nb_minutes ...
[ "0.71102345", "0.6962839", "0.6711381", "0.6686256", "0.6601823", "0.65190905", "0.65145236", "0.65109605", "0.649926", "0.64447546", "0.639491", "0.637864", "0.6365775", "0.6347314", "0.6306025", "0.6298372", "0.62940764", "0.628181", "0.6281184", "0.62802505", "0.6277497", ...
0.801905
0
/ Add discovery process.
/ Добавить процесс открытия.
protected function _addDiscoveryProcess() { if (empty($this->_server)) { throw new Exception('init failed'); } $process = new SwooleProcess([ $this, 'onDiscoveryProcessAdd' ]); $this->setProcess($process); $this->_server->addProcess($process); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildDiscovery();", "public function discover () {\n\t\techo \"They can only discover\";\n\t}", "public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery);", "function wp_oembed_add_discovery_links()\n {\n }", "protected function listen()\n {\n // Set time lim...
[ "0.648646", "0.57982194", "0.5671558", "0.53643703", "0.5324215", "0.5293005", "0.52735525", "0.5151731", "0.51439315", "0.51206493", "0.51106125", "0.5098104", "0.507639", "0.49984893", "0.49599975", "0.49526846", "0.49359635", "0.4885875", "0.4883293", "0.4833266", "0.48331...
0.780687
0
Move the internal data for a username to a new username. Is NEVER called for the currently loaded user, so Storage backend writers can safely assume that you'll never be asked to rename the loaded user. Before performing the move, this function MUST validate that the OLD user EXISTS and that the NEW user DOESN'T EXIST,...
Переместите внутренние данные пользователя с одного имени пользователя на другое имя. Эта функция НИКОГДА не вызывается для текущего загруженного пользователя, поэтому разработчики хранилищ могут безопасно предполагать, что вы никогда не будете попрошены переименовать загруженного пользователя. Перед выполнением переме...
public function moveUser ($oldUsername, $newUsername) { // Verify that the old username exists and fetch the old data. $oldSettings = $this->_getUserKey($oldUsername, self::SETTINGS); $oldCookies = $this->_getUserKey($oldUsername, self::COOKIES); if ($oldSettings === null) { // Only settings are vital. thr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function change_username($new_username) {\n $this->user->username = $new_username;\n $this->user->update();\n\n $this->impersonate($this->id);\n }", "function user_set_name($user_id, $new_username)\n{\n\tif(strcmp($new_username,user_get_name($user_id)))\n\t{\n\t\t//check that no ot...
[ "0.64323926", "0.63914484", "0.6341779", "0.62913924", "0.60810673", "0.60505277", "0.6014536", "0.59819937", "0.5809437", "0.5794171", "0.57554567", "0.57224655", "0.5705922", "0.56143767", "0.55717576", "0.5559833", "0.5557186", "0.55230534", "0.5513415", "0.55081934", "0.5...
0.70961016
0
Save the settings for the currently active user. Is called every time any setting changes. The triggerkey can be used for selectively saving only the modified setting. But most backends should simply JSONencode the whole $userSettings array and store that string.
Сохраните настройки для текущего активного пользователя. Вызывается каждый раз, когда изменяется любая настройка. Триггерный ключ может использоваться для селективного сохранения только измененной настройки. Но большинство бэкендов должны просто сериализовать весь массив $userSettings в формат JSON и сохранить эту стро...
public function saveUserSettings (array $userSettings, $triggerKey) { // Store the settings as a JSON blob. $encodedData = json_encode($userSettings); $this->_setUserKey($this->_username, self::SETTINGS, $encodedData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SaveSettings()\n\t{\n\t\t$this->GetDb();\n\n\t\t$tempSettings = $this->Db->Quote(serialize($this->settings));\n\t\t$tempUserID = intval($this->userid);\n\n\t\t$query = \"\n\t\t\tUPDATE [|PREFIX|]users\n\t\t\tSET settings='{$tempSettings}'\n\t\t\tWHERE userid={$tempUserID}\n\t\t\";\n\n\t\t$result = $this->...
[ "0.7115756", "0.68787223", "0.6819958", "0.6615483", "0.64693767", "0.6369531", "0.6365924", "0.63436824", "0.63341576", "0.63057685", "0.6304582", "0.6268117", "0.62590814", "0.6219204", "0.6161533", "0.6159846", "0.6023926", "0.6004178", "0.5995158", "0.5974717", "0.5957768...
0.83645856
0
Whether the storage backend has cookies for the currently active user. Even cookiefile (filebased jars) MUST answer this question, for example by checking if their desired cookiefile exists and is nonempty. And all other storage backends (such as databases) MUST also verify that their existing cookie data is nonempty. ...
Имеются ли в хранилище cookie для текущего активного пользователя. Даже cookiefile (файловые хранилища) обязаны ответить на этот вопрос, например, проверив, существует ли их желаемый cookiefile и не пуст ли он. И все другие хранилища (такие как базы данных) также обязаны убедиться, что их существующие данные cookie не ...
public function hasUserCookies () { // Simply check if the storage key for cookies exists and is non-empty. return ! empty($this->loadUserCookies()) ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cookieExists(): bool\n {\n $result = true;\n if (empty($_COOKIE)) {\n $result = false;\n }\n return $result;\n }", "public function hasCookies() {\n\t\treturn $this->hasFirstPartyCookies() || $this->hasThirdPartyCookies();\n\t}", "public function coo...
[ "0.73646384", "0.72484255", "0.7026608", "0.69638735", "0.6844069", "0.6802924", "0.6802924", "0.67953223", "0.6784761", "0.67574275", "0.67271584", "0.66777676", "0.66728944", "0.664498", "0.65714896", "0.65262324", "0.649147", "0.64878434", "0.6419699", "0.6406596", "0.6399...
0.8070163
0
Get the cookiefile disk path (only if a filebased cookie jar is wanted). The file does not have to exist yet. It will be created by the caller ondemand when necessary.
Получите путь к файлу cookie (только в случае, если требуется файловый cookie-жар). Файл не обязательно должен существовать. Он будет создан вызывающим процессом по мере необходимости.
public function getUserCookiesFilePath () { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function configCookiePath()\n\t{\n\t\treturn dirname(__FILE__) . '\\cookiefile';\n\t}", "function get_cookie_path()\n{\n global $SITE_INFO;\n $ret = array_key_exists('cookie_path', $SITE_INFO) ? $SITE_INFO['cookie_path'] : '/';\n return ($ret == '') ? null : $ret;\n}", "function getCookiePath(...
[ "0.7095272", "0.6541507", "0.65231365", "0.60637665", "0.57342523", "0.569794", "0.56609076", "0.5528602", "0.55081236", "0.5483616", "0.5446217", "0.5440193", "0.5433883", "0.5433056", "0.5375775", "0.5375775", "0.53735507", "0.53735507", "0.5372021", "0.5351479", "0.5328312...
0.73801416
0
Get all images from gallery folder
Получить все изображения из папки галереи
private function images() { return File::allFiles(public_path('img/gallery')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_all_gallery_images() {\n\n\t\tcheck_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' );\n\t\trequire_once( dirname( __FILE__ ) . '/class-wp-daylife-api.php' );\n\t\t$daylife = new WP_Daylife_API( get_option( 'daylife' ) );\n\n\t\t// Should be int but santize value as id can be bigger than max...
[ "0.7814598", "0.7772644", "0.7670666", "0.7548918", "0.73371917", "0.7319401", "0.72812206", "0.71849316", "0.71804935", "0.71597433", "0.71211255", "0.7070795", "0.7044805", "0.7040692", "0.6957863", "0.69230336", "0.6921784", "0.6920976", "0.6919768", "0.6905779", "0.689871...
0.8162983
0
Generated from protobuf field float score = 1;
Сгенерировано из поля protobuf float score = 1;
public function setScore($var) { GPBUtil::checkFloat($var); $this->score = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getScore()\n {\n return $this->score;\n }", "public function getScore()\n {\n return $this->score;\n }", "public function getScore()\n {\n return $this->score;\n }", "public function getScore()\n {\n return $this->score;\n }", "public func...
[ "0.6787265", "0.6787265", "0.6787265", "0.6787265", "0.67662615", "0.67303276", "0.6714648", "0.6710551", "0.67060196", "0.65232396", "0.6488983", "0.6413199", "0.64010215", "0.6375659", "0.6287169", "0.6229824", "0.6150764", "0.61242944", "0.609062", "0.6087809", "0.6084411"...
0.7095722
1
Generated from protobuf field int32 detection_id = 3;
Сгенерировано из поля protobuf int32 detection_id = 3;
public function getDetectionId() { return $this->detection_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDetectionId($var)\n {\n GPBUtil::checkInt32($var);\n $this->detection_id = $var;\n\n return $this;\n }", "public function getDetectionClass()\n {\n return $this->detection_class;\n }", "public function getId() {\n\t\treturn (string) $this->photo['id'];...
[ "0.7037807", "0.5350284", "0.5243273", "0.5230687", "0.5138672", "0.5099635", "0.50109506", "0.49675262", "0.494784", "0.49134162", "0.48817244", "0.48485684", "0.48055425", "0.4771033", "0.47501564", "0.47292325", "0.47213992", "0.47014728", "0.4695155", "0.4649501", "0.4636...
0.7689458
0
Generated from protobuf field int32 detection_id = 3;
Сгенерировано из поля protobuf int32 detection_id = 3;
public function setDetectionId($var) { GPBUtil::checkInt32($var); $this->detection_id = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetectionId()\n {\n return $this->detection_id;\n }", "public function getDetectionClass()\n {\n return $this->detection_class;\n }", "public function getId() {\n\t\treturn (string) $this->photo['id'];\n\t}", "public function getGamerId()\n {\n $value = ...
[ "0.7689458", "0.5350284", "0.5243273", "0.5230687", "0.5138672", "0.5099635", "0.50109506", "0.49675262", "0.494784", "0.49134162", "0.48817244", "0.48485684", "0.48055425", "0.4771033", "0.47501564", "0.47292325", "0.47213992", "0.47014728", "0.4695155", "0.4649501", "0.4636...
0.7037807
1
Generated from protobuf field string detection_class = 4;
Сгенерировано из поля protobuf string detection_class = 4;
public function getDetectionClass() { return $this->detection_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDetectionClass($var)\n {\n GPBUtil::checkString($var, True);\n $this->detection_class = $var;\n\n return $this;\n }", "abstract public static function detect();", "public function getDetectionId()\n {\n return $this->detection_id;\n }", "public funct...
[ "0.76851404", "0.5568269", "0.5485261", "0.5476471", "0.5427775", "0.52677506", "0.5258469", "0.5161848", "0.49667016", "0.4836566", "0.48180425", "0.4815602", "0.47887242", "0.47630548", "0.475217", "0.46893963", "0.4687226", "0.46643898", "0.4662026", "0.46571922", "0.46397...
0.7694972
0
Generated from protobuf field string detection_class = 4;
Сгенерировано из поля protobuf string detection_class = 4;
public function setDetectionClass($var) { GPBUtil::checkString($var, True); $this->detection_class = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetectionClass()\n {\n return $this->detection_class;\n }", "abstract public static function detect();", "public function getDetectionId()\n {\n return $this->detection_id;\n }", "public function detector(): Detect;", "public function getClassification()\n {\...
[ "0.7694972", "0.5568269", "0.5485261", "0.5476471", "0.5427775", "0.52677506", "0.5258469", "0.5161848", "0.49667016", "0.4836566", "0.48180425", "0.4815602", "0.47887242", "0.47630548", "0.475217", "0.46893963", "0.4687226", "0.46643898", "0.4662026", "0.46571922", "0.463972...
0.76851404
1
get achievement main category
получить основную категорию достижения
function achieve_get_main_category() { global $sql; $main_cat = array(); $result = $sql["dbc"]->query("SELECT ID, Name FROM achievement_category WHERE ParentID=-1 and ID<>1 ORDER BY `GroupID` ASC"); while ($main_cat[] = $sql["dbc"]->fetch_assoc($result)); return $main_cat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_category()\n {\n return 'Fun and Games';\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "public function getAchievementCategories() { return $this->Achieve...
[ "0.6870378", "0.6870378", "0.6870378", "0.6811938", "0.6756315", "0.66453063", "0.6571418", "0.650833", "0.64865017", "0.64717835", "0.64717835", "0.644416", "0.6429914", "0.64065254", "0.6350811", "0.6332416", "0.63123274", "0.62535274", "0.62401485", "0.61982644", "0.619507...
0.7274885
0
get achievement sub category
получить подкатегорию достижения
function achieve_get_sub_category() { global $sql; $sub_cat = array(); $result = $sql["dbc"]->query("SELECT ID, ParentID, Name FROM achievement_category WHERE ParentID<>-1 ORDER BY `GroupID` ASC"); $temp = $sql["dbc"]->fetch_assoc($result); while ($sub_cat[$temp["ParentID"]][$temp["ID"]] = $temp["Name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function achieve_get_main_category()\r\n{\r\n global $sql;\r\n\r\n $main_cat = array();\r\n $result = $sql[\"dbc\"]->query(\"SELECT ID, Name FROM achievement_category WHERE ParentID=-1 and ID<>1 ORDER BY `GroupID` ASC\");\r\n while ($main_cat[] = $sql[\"dbc\"]->fetch_assoc($result));\r\n return $main_cat;\r\n...
[ "0.72061515", "0.6711597", "0.6661108", "0.6615862", "0.65241337", "0.63100463", "0.63100463", "0.627684", "0.6225231", "0.6208588", "0.61809105", "0.6161485", "0.6149699", "0.6127967", "0.6127967", "0.6127967", "0.611247", "0.6107959", "0.60363334", "0.60246027", "0.60006267...
0.7583286
0
get achievement details by its id
получить детали достижения по его идентификатору
function achieve_get_details($id) { global $sql; $result = ($sql["dbc"]->query("SELECT id, name, description, reward, points FROM achievement WHERE id='".$id."' LIMIT 1")); $details = $sql["dbc"]->fetch_assoc($result); return $details; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAchievementById($achievementId)\n {\n $data = $this->db->query(\n 'SELECT id, charactergroupsgroup_id, pos, title, url, hash, description, achievementsmedia_id '.\n 'FROM charactergroupsachievements '.\n 'WHERE id = ?',\n ...
[ "0.69263995", "0.67529386", "0.64793265", "0.64174473", "0.6417173", "0.6373577", "0.630916", "0.62361795", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923", "0.620923"...
0.74833083
0
get achievement icon if icon not exists in item_icons folder D/L it from web.
получить иконку достижения, если иконка не существует в папке item_icons, загрузить её с веб-сайта.
function achieve_get_icon($achieveid) { global $proxy_cfg, $get_icons_from_web, $item_icons, $sql; $result = $sql["dbc"]->query("SELECT spellIcon FROM achievement WHERE id='".$achieveid."' LIMIT 1"); if ($result) $displayid = $sql["dbc"]->result($result, 0); else $displayid = 0; if ($d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAchievementIcon($id)\n{\n\tglobal $wowhead_url;\n\t\n\t$data = getXML($wowhead_url . '?achievement=' . $id . '&power');\n\t\n\tif (preg_match('#icon: \\'(.+?)\\'#', $data, $match))\n\t{\n\t\t// icon found\n\t\treturn 'http://static.wowhead.com/images/icons/small/' . strtolower($match[1]) . '.jpg';\t\n\...
[ "0.7616838", "0.6804254", "0.6631242", "0.66083825", "0.66083825", "0.65563077", "0.6525396", "0.6508459", "0.64941746", "0.64858323", "0.64612895", "0.64612895", "0.64140487", "0.6406971", "0.64009464", "0.64009464", "0.63777065", "0.6350124", "0.6323305", "0.6322778", "0.63...
0.7307229
1
Loads the product from the DB, incuding product variation info
Загружает продукт из БД, включая информацию о вариациях продукта
public function load($id) { global $DB; parent::load($id); $productVariations = $DB->get_records( 'local_moodec_variation', array( 'product_id' => $id, ) ); if(!!$productVariations) { foreach ($productVariations as $pv) { $variationid = (int) $pv->id; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load($product, $productAttribute, $options, $data);", "public function load()\n {\n $query\n = '\n select\n *\n from\n aca_product\n where\n product_id = \"' . $this->productId . '\"';\n\n $this->db->setQuery($query...
[ "0.6955738", "0.6884401", "0.68206215", "0.6680621", "0.640358", "0.6381325", "0.6380651", "0.63370186", "0.63091284", "0.62851", "0.62492704", "0.62274253", "0.6206193", "0.6196525", "0.6160851", "0.6158004", "0.61410207", "0.60924953", "0.604175", "0.6021404", "0.5966728", ...
0.72337687
0
Registra la sesion del usuario
Зарегистрируйте сессию пользователя
function registrarSesion () { if (!empty($this->id_usuario)) { $this->salvar(['ultima_session' => 'current_timestamp', 'activo' => 1 ]); Helpers\Sesion::sessionLogin(); } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function register(): void\n {\n $user = User::factory()->create();\n $this->actingAs($user);\n }", "public function register () : void\n {\n $this->getHttpReferer();\n\n // if the user is already logged in,\n // redirection to the previous page\...
[ "0.6576822", "0.6534289", "0.64748466", "0.6435742", "0.64080954", "0.6390943", "0.6385458", "0.6348849", "0.63176566", "0.6269694", "0.62469727", "0.6242618", "0.6229436", "0.6209444", "0.62056667", "0.61699224", "0.6160058", "0.6127496", "0.6113927", "0.6113444", "0.6065418...
0.7339701
0
Write a procedure ShiftLeft3(A, B, C) that performs a left cyclic shift by assigning the initial values of A, B, C to variables C, A, B respectively (A, B, C are input and output realvalued parameters). Using this procedure, perform the left cyclic shift for each of two given triples of real numbers: (A1, B1, C1) and (...
Напишите процедуру ShiftLeft3(A, B, C), которая выполняет циклический сдвиг влево, присваивая исходные значения A, B, C переменным C, A, B соответственно (A, B, C — входные и выходные параметры с вещественными значениями). Используя эту процедуру, выполните циклический сдвиг влево для каждой из двух заданных троек веще...
function ShiftLeft3(&$A, &$B, &$C){ $var = $C; $C = $B ; $B = $A ; $A = $var; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bitwiseLeftShift(int $shift);", "private function getLeftShift()\n {\n if ($this->currentPage < 3) {\n $shift = 3;\n } else {\n $shift = 1;\n }\n return $shift;\n }", "function shift_left_CD($CorD, $shift_schedule){\n $arr[16][28] = a...
[ "0.51497823", "0.49912277", "0.48430577", "0.46106917", "0.45953348", "0.45932406", "0.4551648", "0.45476073", "0.44131067", "0.43816963", "0.43816963", "0.43797442", "0.43797442", "0.43543637", "0.41905352", "0.41420537", "0.41283697", "0.41007546", "0.40672085", "0.4000949", ...
0.73764396
0
Get read permission checker.
Проверка получения разрешения на чтение.
public static function getReadPermissionChecker() { return array(__CLASS__, 'onReadPermissionCheck'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_read () {\r\n\r\n return $this->permissions[\"R\"] ? true : false;\r\n\r\n }", "function isReadable() { return $this->flagAccessRead; }", "public function check_read_permission($post)\n {\n }", "public function check_read_permission($post)\n {\n ...
[ "0.7392462", "0.7036591", "0.66918", "0.66918", "0.66576624", "0.657163", "0.65252495", "0.6428532", "0.6401286", "0.63801414", "0.63638514", "0.62240356", "0.6202258", "0.6183938", "0.6167421", "0.61546487", "0.61390316", "0.6138477", "0.6138477", "0.61219746", "0.61157024",...
0.79322946
0
Get write permission checker.
Проверка на наличие прав на запись.
public static function getWritePermissionChecker() { return array(__CLASS__, 'onWritePermissionCheck'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_write () {\r\n\r\n return $this->permissions[\"W\"] ? true : false;\r\n\r\n }", "public function canWrite(){\n\t\treturn is_writable($this->file);\n\t}", "public function isWriteable(): bool;", "public function isWriteable()\n {\n $this->is_writable = null;...
[ "0.7644738", "0.6752038", "0.6724825", "0.67009765", "0.6555009", "0.6518307", "0.6468478", "0.6432084", "0.6390556", "0.63715786", "0.63186526", "0.63186526", "0.6317494", "0.6317494", "0.63150537", "0.6287586", "0.6266522", "0.6256065", "0.6205228", "0.6195523", "0.61613965...
0.8053417
0
Get permission checker for modifying Letter.
Получить проверщик прав для изменения письма.
public static function getModifyLetterPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyLetters()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCES...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getViewLetterPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canViewLetters()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_RE...
[ "0.6133229", "0.61281526", "0.60791415", "0.6056289", "0.60234785", "0.5973391", "0.5890391", "0.5704964", "0.5696499", "0.56874144", "0.5668803", "0.56526756", "0.56501627", "0.56007904", "0.5599411", "0.55924153", "0.5582373", "0.5548666", "0.55447257", "0.55447257", "0.554...
0.7384962
0
Get permission checker for modifying Abuse.
Получить проверщик прав для изменения Abuse.
public static function getModifyAbusePermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyAbuses()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function uses_permissions(): bool;", "private function permissionInstance()\n\t{\n\t\treturn new PermissionMaker();\n\t}", "public static function getModifyAdPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\...
[ "0.69026065", "0.65754366", "0.64763993", "0.6440685", "0.639471", "0.63770056", "0.63055724", "0.63027704", "0.63027704", "0.63027704", "0.63027704", "0.63027704", "0.6266197", "0.62584025", "0.6225956", "0.6209819", "0.62080765", "0.62080765", "0.62080765", "0.62067884", "0...
0.70240664
0
Get permission checker for selecting Segment.
Получить проверщик прав для выбора Сегмента.
public static function getSelectSegmentPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewSegments()) { return; } if (Security\Access::getInstance()->canViewLetters()) { return; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModifySegmentPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySegments()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR...
[ "0.60791427", "0.60461384", "0.5780635", "0.5740629", "0.5740629", "0.5689016", "0.5608048", "0.55742043", "0.557218", "0.54922813", "0.54641026", "0.5454264", "0.5454264", "0.5454264", "0.5454264", "0.5454264", "0.5403058", "0.5379075", "0.53535944", "0.5271953", "0.5267266"...
0.78514
0
Get permission checker for modifying Segment.
Получить проверщик прав для изменения Сегмента.
public static function getModifySegmentPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifySegments()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getSelectSegmentPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canViewSegments()) {\n return;\n }\n if (Security\\Access::getInstance()->canViewLetters()) {\n return;...
[ "0.69190854", "0.6452372", "0.6450016", "0.6296729", "0.61881", "0.615267", "0.5978442", "0.5963707", "0.5963707", "0.5963707", "0.5963707", "0.5963707", "0.5943561", "0.5942078", "0.59220827", "0.5902732", "0.58819616", "0.58792764", "0.58548754", "0.580614", "0.580614", "...
0.72991794
0
Get permission checker for modifying RC.
Получить проверщик прав для изменения RC.
public static function getModifyRcPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyRc()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function getModifySettingsPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySettings()) {\n return;\n }\n\n $result->addError(new Error(Loc::ge...
[ "0.6704651", "0.65782005", "0.63510907", "0.6344431", "0.6317396", "0.6310521", "0.62894964", "0.62569547", "0.62562865", "0.62562865", "0.62562865", "0.62562865", "0.62562865", "0.6221094", "0.6184906", "0.6177133", "0.61091477", "0.610039", "0.6084153", "0.6059748", "0.6059...
0.7098316
0
Get permission checker for modifying ad.
Получить проверщик прав для изменения рекламы.
public static function getModifyAdPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyAds()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function getModifyAbusePermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifyAbuses()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMess...
[ "0.6759991", "0.6660755", "0.65371853", "0.62435865", "0.62106514", "0.6200163", "0.6168307", "0.61410314", "0.6109556", "0.6108003", "0.6106346", "0.6106346", "0.6106346", "0.6106346", "0.6106346", "0.60883087", "0.60842174", "0.6045964", "0.60349435", "0.60338366", "0.60067...
0.7263932
0
Get permission checker for modifying recipients.
Получить проверщик разрешений для изменения получателей.
public static function getModifyRecipientsPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifySegments()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModifySettingsPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySettings()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERRO...
[ "0.6416856", "0.6386573", "0.63151634", "0.6233498", "0.6038729", "0.58068275", "0.57921255", "0.57638216", "0.5547894", "0.5500841", "0.5479608", "0.5475386", "0.54669327", "0.5465107", "0.5405045", "0.5393103", "0.53840935", "0.5377553", "0.53530544", "0.5327288", "0.532157...
0.74266493
0
Get permission checker for modifying settings.
Получить проверщик прав для изменения настроек.
public static function getModifySettingsPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifySettings()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_AC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getSettingsPermissions() {\n $settings_permissions_read_only = TRUE;\n // http://en.wikipedia.org/wiki/File_system_permissions.\n $writes = array('2', '3', '6', '7');\n $settings_file = './' . DrupalKernel::findSitePath(\\Drupal::request(), TRUE) . '/settings.php';\n $permissions = ...
[ "0.6640244", "0.65241057", "0.62436396", "0.6203463", "0.61914337", "0.61419463", "0.6092144", "0.609213", "0.6044892", "0.6027715", "0.6024488", "0.6024488", "0.6024488", "0.6024488", "0.6024488", "0.6003032", "0.5994742", "0.5972926", "0.5972926", "0.59399426", "0.59333557"...
0.73782706
0
Test case for addPackingPlan Create a packingPlan.
Тестовый случай для addPackingPlan. Создать packingPlan.
public function testAddPackingPlan() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createPlan(){\n if(!$this->request->plan_name || !$this->request->plan_description) {\n return false;\n }\n $this->plan = Planes::create([\n 'name' => $this->request->plan_name,\n 'description' => $this->request->plan_description,\n ...
[ "0.69531554", "0.6901942", "0.6676506", "0.63307506", "0.6304023", "0.6225091", "0.61637425", "0.6150241", "0.6102987", "0.608851", "0.60822415", "0.6023581", "0.59372133", "0.57835346", "0.5757038", "0.57414585", "0.56579274", "0.56268644", "0.55209213", "0.5484042", "0.5446...
0.7591891
0
Test case for addPackingPlanAudit Add new audit for a packingPlan.
Тест-кейс для addPackingPlanAudit Добавление нового аудита для плана упаковки.
public function testAddPackingPlanAudit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddPackingPlan()\n {\n }", "public function addAudit(Audit $audit);", "public function testAddExternalShipmentAudit()\n {\n }", "public function test_addExternalShipmentAudit() {\n\n }", "public function testAddReplenishmentAudit()\n {\n }", "public function testA...
[ "0.60553193", "0.5969876", "0.5941007", "0.58760846", "0.57419807", "0.5704287", "0.56345534", "0.56341517", "0.5615037", "0.5517533", "0.5516703", "0.54870427", "0.546986", "0.5468823", "0.537823", "0.53143084", "0.5251664", "0.5245915", "0.5208634", "0.51976657", "0.5169436...
0.75321937
0
Test case for addPackingPlanFile Attach a file to a packingPlan.
Тестовый случай для addPackingPlanFile Прикрепление файла к packingPlan.
public function testAddPackingPlanFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddPackingPlanFileByURL()\n {\n }", "public function addFile($file);", "public function testGetPackingPlanFiles()\n {\n }", "public function testAddExternalShipmentFile()\n {\n }", "public function testAddPackingPlan()\n {\n }", "function addFile(FileUpload $fi...
[ "0.64937943", "0.6147898", "0.5951913", "0.57769436", "0.57392806", "0.5660011", "0.5600821", "0.5544153", "0.55356807", "0.5426812", "0.54084337", "0.54066163", "0.53932345", "0.53909034", "0.5379048", "0.5373547", "0.53595406", "0.53562784", "0.5340339", "0.5317471", "0.531...
0.7034536
0
Test case for addPackingPlanFileByURL Attach a file to a packingPlan by URL..
Тест-кейс для addPackingPlanFileByURL. Прикрепить файл к packingPlan по URL.
public function testAddPackingPlanFileByURL() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddExternalShipmentFileByURL()\n {\n }", "public function testAddReplenishmentFileByURL()\n {\n }", "public function testAddPackingPlanFile()\n {\n }", "public function testAddLowStockFileByURL()\n {\n }", "public function testAddVendorComplianceSurveyFileByURL()...
[ "0.719052", "0.6704658", "0.6700121", "0.6331982", "0.6223605", "0.6202839", "0.6042983", "0.6011462", "0.5978323", "0.5866754", "0.5808024", "0.5804502", "0.573996", "0.5668431", "0.56314516", "0.5616567", "0.5586306", "0.55138797", "0.55037266", "0.5491123", "0.54792", "0...
0.80135447
0
Test case for addPackingPlanTag Add new tags for a packingPlan..
Тест-кейс для addPackingPlanTag Добавление новых тегов для packingPlan.
public function testAddPackingPlanTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetPackingPlanTags()\n {\n }", "function TestPlan_add_tag($plan_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.add_tag', array(new xmlrpcval($plan_id, \"int\"), new xmlrpcval($tag_name, \"string\")), \"array\");\n\n\t// Do call and return value\n\treturn do_call($...
[ "0.7443316", "0.7109381", "0.69109", "0.6716628", "0.6704143", "0.6696913", "0.6470231", "0.6455306", "0.6453562", "0.64048386", "0.63709253", "0.627634", "0.6233461", "0.6232321", "0.6210739", "0.6147645", "0.6126428", "0.6117921", "0.61094236", "0.60676575", "0.6034293", ...
0.8144903
0
Test case for deletePackingPlan Delete a packingPlan.
Тестовый случай для deletePackingPlan Удаление packingPlan.
public function testDeletePackingPlan() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeletePackingPlanTag()\n {\n }", "public function testDeletePackingPlanFile()\n {\n }", "function delete($id_plan) {\r\n $sql = \"DELETE FROM planes WHERE planes.id_plan ='\" . $id_plan . \"'\";\r\n\r\n $response = getResultSQL($sql);\r\n if (!$response) {\...
[ "0.7143373", "0.7074826", "0.68252337", "0.656634", "0.6563426", "0.65526646", "0.65000063", "0.6320457", "0.61559975", "0.6149151", "0.6058827", "0.6050592", "0.6044464", "0.60418653", "0.59389263", "0.58917886", "0.5835245", "0.5801051", "0.5733828", "0.5711874", "0.5699017...
0.7878823
0
Test case for deletePackingPlanFile Delete a file for a packingPlan..
Тестовый случай для deletePackingPlanFile Удаление файла для packingPlan.
public function testDeletePackingPlanFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteExternalShipmentFile()\n {\n }", "public function testDeletePackingPlan()\n {\n }", "public function testDeleteReplenishmentFile()\n {\n }", "public function testDeleteOrderFile()\n {\n }", "public function testDeleteFile()\n {\n\n }", "public funct...
[ "0.737229", "0.7365223", "0.72413445", "0.71475613", "0.7139573", "0.7068676", "0.6961639", "0.6852623", "0.6636421", "0.64679205", "0.63812435", "0.6374441", "0.6262466", "0.6213497", "0.6207218", "0.61939514", "0.6192248", "0.61883134", "0.61622506", "0.61516905", "0.609758...
0.84973305
0
Test case for deletePackingPlanTag Delete a tag for a packingPlan..
Тестовый случай для deletePackingPlanTag Удаление тега для packingPlan.
public function testDeletePackingPlanTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteReplenishmentTag()\n {\n }", "public function testDeletePackingPlan()\n {\n }", "public function testDeleteExternalShipmentTag()\n {\n }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "public function testDeleteOrderTag()\n {\n }", "...
[ "0.75049424", "0.74548256", "0.73071057", "0.72864676", "0.72135395", "0.71300733", "0.71039486", "0.69620395", "0.67902803", "0.6778699", "0.6758027", "0.6744535", "0.665486", "0.65008515", "0.64844185", "0.64660484", "0.64602417", "0.6387559", "0.6356673", "0.63381916", "0....
0.8673388
0
Test case for getDuplicatePackingPlanById Get a duplicated a packingPlan by id.
Тестовый случай для getDuplicatePackingPlanById Получить дублированный план упаковки по идентификатору.
public function testGetDuplicatePackingPlanById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPlanById()\n {\n // Arrange\n // Act\n if (! isset($this->plans)) {\n $this->getsAListOfPlans();\n }\n $plans = $this->plans;\n $plan = $plans['data'][0];\n\n $plan = Ezypay::getPlan($plan['id']);\n\n // Assert\n $this-...
[ "0.6362934", "0.6326791", "0.5976135", "0.5921401", "0.58511144", "0.58135414", "0.58023816", "0.5753263", "0.56158876", "0.55545306", "0.55315685", "0.54724145", "0.5409555", "0.5407465", "0.5402911", "0.5362996", "0.5341648", "0.52647996", "0.5260013", "0.5235977", "0.52282...
0.7463125
0
Test case for getPackingPlanByFilter Search packingPlans by filter.
Тест-кейс для getPackingPlanByFilter Поиск packingPlans по фильтру.
public function testGetPackingPlanByFilter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetPackingPlanById()\n {\n }", "public function getsAListOfPlans()\n {\n // Arrange\n // Act\n $plans = Ezypay::getPlans();\n\n // Assert\n //$this->assertEquals(3, sizeof($plans->data)); // Causing issues as there are aditional plans\n $this...
[ "0.58953774", "0.5631039", "0.549957", "0.54921854", "0.54473865", "0.5440574", "0.54392135", "0.54009104", "0.53968537", "0.53416896", "0.5280663", "0.5257933", "0.51928085", "0.5184721", "0.5144235", "0.5115523", "0.5068483", "0.5067525", "0.5060737", "0.5035444", "0.501442...
0.7464687
0
Test case for getPackingPlanFiles Get the files for a packingPlan..
Тестовый случай для getPackingPlanFiles Получение файлов для packingPlan.
public function testGetPackingPlanFiles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFiles() {}", "public function getFiles ();", "public function testAddPackingPlanFile()\n {\n }", "public function getFiles();", "public function getFiles();", "public function getFiles();", "private function getTestFileList() {\n\t\treturn [\n\t\t\tself::makeFileInfo('a.txt', 4...
[ "0.6358665", "0.6284666", "0.6281518", "0.6195965", "0.6195965", "0.6195965", "0.6157322", "0.60981625", "0.59759873", "0.585842", "0.5834721", "0.581556", "0.5802916", "0.5802916", "0.5802916", "0.580035", "0.57596576", "0.5733025", "0.56986207", "0.5646056", "0.56386656", ...
0.7125844
0
Test case for getPackingPlanTags Get the tags for a packingPlan..
Тест-кейс для getPackingPlanTags Получить теги для упаковочного плана.
public function testGetPackingPlanTags() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TestPlan_get_tags($plan_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.get_tags', array(new xmlrpcval($plan_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function testAddPackingPlanTag()\n {\n }", "public function getTags() {}", "public fun...
[ "0.71208864", "0.6392587", "0.6225167", "0.6007116", "0.6007116", "0.6007116", "0.6007116", "0.6007116", "0.5823012", "0.579516", "0.5794438", "0.5788409", "0.5757023", "0.57225233", "0.5714984", "0.56988513", "0.56901634", "0.56783414", "0.56783414", "0.5649785", "0.5606331"...
0.73883945
0
Test case for updatePackingPlan Update a packingPlan.
Тестовый случай для updatePackingPlan Обновление packingPlan.
public function testUpdatePackingPlan() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdatePackingPlanCustomFields()\n {\n }", "public function updateListingPackageUsage(&$plan_info)\n {\n global $rlDb, $account_info, $reefless, $lang;\n\n $paid_status = false;\n\n // Existing package mode\n if ($plan_info['Type'] == 'package' && $plan_inf...
[ "0.7085014", "0.64787024", "0.64551836", "0.63667226", "0.63057375", "0.618564", "0.60914385", "0.6039051", "0.5972267", "0.59612525", "0.58209085", "0.58053815", "0.5709977", "0.5689258", "0.5667135", "0.5660933", "0.56361514", "0.5576673", "0.555598", "0.5493142", "0.547912...
0.8442888
0
Test case for updatePackingPlanCustomFields Update a packingPlan custom fields.
Тестовый случай для updatePackingPlanCustomFields Обновление пользовательских полей packingPlan.
public function testUpdatePackingPlanCustomFields() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_updateReplenishmentProcessCustomFields() {\n\n }", "public function testUpdateExternalShipmentCustomFields()\n {\n }", "public function testUpdateReplenishmentCustomFields()\n {\n }", "public function testUpdateOrderCustomFields()\n {\n }", "public function test_up...
[ "0.6866356", "0.681878", "0.676151", "0.6522969", "0.6496353", "0.6493229", "0.6392022", "0.63785917", "0.62884486", "0.6207397", "0.5950137", "0.5714613", "0.5666781", "0.54865575", "0.5420234", "0.5369768", "0.5338579", "0.53100634", "0.5309191", "0.5246068", "0.5223773", ...
0.84104824
0
Debug an extbase query result. Before debugging the query you must execute it. ($query>execute())
Отладить результат запроса extbase. Перед отладкой запроса его необходимо выполнить. ($query>execute())
public function debugQuery(\TYPO3\CMS\Extbase\Persistence\Generic\QueryResult $queryResult) { $GLOBALS['TYPO3_DB']->debugOuput = 2; $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = true; $queryResult->toArray(); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($GLOBALS['TYPO3_DB']->debug_lastBuiltQuery); $GL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function queryDebug($resultVar){\n\tif (!$resultVar) {\n\t\t$message = 'Invalid query: ' . mysql_error() . \"\\n\";\n\t\t$message .= 'Whole query: ' . $query;\n\t\tdie($message);\n\t}\n}", "public function debug(){\r\n $this->db->debugMode(function($args){\r\n echo ($args[\"query\"]);\r\n ...
[ "0.67332107", "0.67195904", "0.66700304", "0.64472026", "0.6435239", "0.6428209", "0.63536006", "0.6341092", "0.63402104", "0.63164425", "0.6301908", "0.63003266", "0.62771124", "0.6272097", "0.6268642", "0.62641454", "0.62490714", "0.62346864", "0.6230715", "0.6230699", "0.6...
0.7498202
0
Create a in uid query part. $query>in(uid, $uid) not working
Создайте в uid часть запроса. $query>in(uid, $uid) не работает
public function inUid(\TYPO3\CMS\Extbase\Persistence\QueryInterface $query, $uid) { $or = []; foreach($uid as $single) { $or[] = $query->equals('uid', $single); } return $query->logicalAnd($query->logicalOr($or)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_users_in($itemids) {}", "public function in($column,$val);", "public function where_emp_in($emp) {\n\t\t$this->db->where_in('ID', $emp);\n\t}", "public function setUidListConstraint(Tx_Extbase_Persistence_QueryInterface $query) {\n\t\t$idList = (empty($this->uidList)) ? array('0') ...
[ "0.6495714", "0.5879846", "0.5753212", "0.5721153", "0.56351167", "0.5502334", "0.5445983", "0.5370739", "0.5366118", "0.5342043", "0.52690643", "0.526707", "0.52370226", "0.52168655", "0.5216827", "0.5216827", "0.5216826", "0.5212076", "0.5195517", "0.5193435", "0.51743174",...
0.7238444
0
Core::getCourier Online Booking delivered()
Core::getCourier Online Booking delivered()
public function getCourier_list_booking_delivered() { $sql = "SELECT a.id, a.order_inv, a.r_name, a.c_driver, a.r_address, a.r_dest, a.r_city, a.r_curren, a.r_costtotal, a.r_description, a.total_insurance, a.total_tax, a.payment_status, a.pay_mode, a.created, a.r_hour, a.status_courier, a.act_status, a.con_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDeliveredCount()\n {\n return $this->deliveredCount;\n }", "public function isReadyForIssuing()\n {\n return $this->isFeePaid();\n }", "public function isRedelivered();", "public function getDeliveries()\n {\n return $this->deliveries;\n }", "public...
[ "0.631243", "0.6241944", "0.60767645", "0.5952808", "0.5925427", "0.5905212", "0.5860488", "0.582135", "0.5814719", "0.57733107", "0.5763579", "0.5735767", "0.57323754", "0.5717282", "0.57066816", "0.56492406", "0.560451", "0.5557361", "0.5552874", "0.5543098", "0.5499387", ...
0.7154301
0
Script adding shipping type attribute for products
Скрипт добавления атрибута типа доставки для продуктов
public function apply() { /** @var EavSetup $eavSetup */ $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]); if (!$eavSetup->getAttribute(Product::ENTITY, 'am_shipping_type')) { $eavSetup->addAttribute( Product::ENTITY, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hook_shipping_type() {\n $weight = variable_get('uc_quote_type_weight', array('small_package' => 0));\n\n $types = array();\n $types['small_package'] = array(\n 'id' => 'small_package',\n 'title' => t('Small Packages'),\n 'weight' => $weight['small_package'],\n );\n\n return $types;\n}", "...
[ "0.6803826", "0.6436384", "0.63552606", "0.6342926", "0.6214153", "0.6146409", "0.5982885", "0.5975315", "0.59531474", "0.59239525", "0.5897245", "0.588454", "0.58802414", "0.5836447", "0.5820645", "0.5786976", "0.5760866", "0.5731677", "0.57273954", "0.5708754", "0.568646", ...
0.7075091
0
Create PurchaseLabel from JSON string
Создать PurchaseLabel из строки JSON
public static function fromJson($json) { $value = json_decode($json, true); return PurchaseLabel::fromString($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Label_isni($jsonString='')\n {\n //--------------------------------------------------------------------\n // I'm basically OK with being quiet on missing JSON property names\n //--------------------------------------------------------------------\n error_reporting( error_rep...
[ "0.52658886", "0.5149901", "0.50144184", "0.49271137", "0.47502184", "0.4749456", "0.47452065", "0.47268164", "0.46878815", "0.4677468", "0.46685994", "0.46589783", "0.46467033", "0.46402663", "0.46071574", "0.45938554", "0.45135733", "0.45074317", "0.45042673", "0.4457392", ...
0.78822225
0
Returns an index scope from the application context (channel, locale, currency)
Возвращает область индекса из контекста приложения (канал, локаль, валюта)
public function getFromContext(Index $index): IndexScope;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromChannelAndLocaleAndCurrency(\n Index $index,\n string $channelCode = null,\n string $localeCode = null,\n string $currencyCode = null\n ): IndexScope;", "#[CustomOpenApi\\Operation(id: 'channelIndex', tags: [Tags::Channel, Tags::V1])]\n #[CustomOpenApi\\Pa...
[ "0.75075257", "0.6033961", "0.540871", "0.5361528", "0.52263415", "0.50955284", "0.508293", "0.5064449", "0.50310546", "0.50261116", "0.49943587", "0.49943587", "0.49889183", "0.4978954", "0.49274015", "0.4917363", "0.49060947", "0.48657656", "0.48547855", "0.4851444", "0.483...
0.73292917
1
Activate Apps From DB.
Активировать приложения из БД.
public function activateApp(Request $request) { Apps::where('title', 'service')->update( ['active' => $request->get("service_Activate")]); Apps::where('title', 'project')->update( ['active' => $request->get("project_Activate")]); Apps::where('title', 'product')->update( ['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AppActivate ( $app )\n\t {\n\t\t$this -> ShellInstance -> AppActivate ( $app ) ;\n\t }", "public function activateApp($teamid, $appid)\n {\n $user = Auth::user(); \n $result = UserActiveApp::processUpdates($user->id, $appid);\n\n return redirect()->route('apps.show',...
[ "0.66192937", "0.60342765", "0.5970644", "0.5957167", "0.5907916", "0.59026814", "0.58523256", "0.56782097", "0.5605068", "0.55934376", "0.5564146", "0.5544416", "0.55189824", "0.5514357", "0.5472157", "0.54548717", "0.5451909", "0.5445915", "0.5413645", "0.54125524", "0.5411...
0.7309194
0
Get a team by name
Получить команду по имени
public function getTeam($name) { if (!is_string($name)) { throw new InvalidTypeException('Name', 'string', gettype($name)); } return $this->get(sprintf('teams/%s', $name)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTeam();", "public function getTeam() {\n return $this->db->getTeamById($this->teamId);\n }", "public static function getByID($id){\n\t\treturn DB::table('teams')->where('id', $id)->first();\n\t}", "public function getTeam($id)\n {\n return $this->_getTeam($id);\n }",...
[ "0.778894", "0.69826925", "0.6979283", "0.6946591", "0.6900469", "0.6855721", "0.68554854", "0.6837608", "0.6782374", "0.6681516", "0.6655595", "0.6634102", "0.662447", "0.66222507", "0.66196036", "0.6587913", "0.65724945", "0.6550653", "0.65500575", "0.65219235", "0.6477591"...
0.7587281
1
Check help_requests table for existing request
Проверьте таблицу help_requests на наличие существующего запроса
public function checkHelpRequests($helper_id, $request_help_id ){ $query = " SELECT * FROM help_requests WHERE helper_id = :helper_id and request_help_id = :request_help_id "; $stmt = $this->_db->prepare($query); $stmt->bindValue(':helper_id',$helper_id); $stmt->bindValue(':request_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateHelpRequests($helper_id, $request_help_id, $tag) {\n\t\t\n\t\tif($tag == 'help_request_add'){\n\t\t$combosAlreadyMade = $this->checkHelpRequests($helper_id, $request_help_id);\n\t\t\n\t\tif($combosAlreadyMade == 'Exists'){\n\t\t\treturn 'Exists';\n\t\t}\n\t\t}\n\t\t\n\t\tif ($tag == 'help_req...
[ "0.6180808", "0.58976334", "0.58936745", "0.58855444", "0.5875356", "0.5729869", "0.5626661", "0.56181514", "0.55960053", "0.55850476", "0.55850476", "0.541711", "0.5380878", "0.5359403", "0.5348564", "0.53327745", "0.53033966", "0.52853775", "0.5236666", "0.5232295", "0.5196...
0.7164381
0
Get the game repository.
Получите репозиторий игры.
public function getGameRepository() { if (!$this->gameRepository) { $this->setGameRepository($this->getEntityManager()->getRepository('Game\Entity\Game')); } return $this->gameRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRepo()\n {\n return $this->repo;\n }", "public static function getRepository()\n {\n if (is_null(static::$repository)) {\n static::$repository = static::buildRepository();\n }\n\n return static::$repository;\n }", "protected function getRepo...
[ "0.6835937", "0.68132406", "0.68061304", "0.6754571", "0.6751498", "0.67270786", "0.669591", "0.6689973", "0.6679487", "0.6665942", "0.6665942", "0.6665942", "0.6665942", "0.6665942", "0.6665942", "0.6649803", "0.65772676", "0.65682507", "0.65501386", "0.6501997", "0.6501997"...
0.800295
0
Set the game repository.
Установите репозиторий игры.
public function setGameRepository($gameRepository) { $this->gameRepository = $gameRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRepositories() {\n }", "public function setRepository($repository)\n {\n $this->repository = $repository;\n }", "public function setStore(Repository $store): void\n {\n $this->store = $store;\n }", "protected function initRepository()\n {\n $this->rep...
[ "0.58705366", "0.58612347", "0.58441687", "0.582995", "0.5752099", "0.5752099", "0.5713818", "0.5655421", "0.5519581", "0.54645926", "0.5461204", "0.5455026", "0.54211634", "0.54075104", "0.53905654", "0.5358484", "0.53451365", "0.53406084", "0.53219634", "0.5297242", "0.5272...
0.7280576
0
Get the feed repository.
Получите репозиторий корма.
public function getFeedRepository() { if (!$this->feedRepository) { $this->setFeedRepository($this->getEntityManager()->getRepository('Feed\Entity\Feed')); } return $this->feedRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFeedRepository()\n {\n if (null === $this->feedRepository)\n $this->feedRepository = $this->getEntityManager()->getRepository('\\Feed\\Entity\\Feed');\n return $this->feedRepository;\n }", "public function getFeed()\n {\n return ($this->useCache() ? $th...
[ "0.7908239", "0.6989024", "0.6947741", "0.6895661", "0.6815322", "0.6808293", "0.6808293", "0.6808293", "0.6808293", "0.6808293", "0.6808293", "0.6781473", "0.6761941", "0.6657423", "0.66564983", "0.6643288", "0.6643288", "0.6575057", "0.6562751", "0.65257615", "0.64812016", ...
0.792677
0
Set the feed repository.
Установите репозиторий для подачи.
public function setFeedRepository($feedRepository) { $this->feedRepository = $feedRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRepository($repository)\n {\n $this->repository = $repository;\n }", "public function setRepositories() {\n }", "public function setBlogFeed()\n\t{\n\t\t$this->ensureAuthed();\n\t\t$input = Input::getInstance();\n\t\t$output = Output::getInstance();\n\t\t$feeds = Feeds::get...
[ "0.63340527", "0.6265423", "0.60142463", "0.59895504", "0.5945083", "0.5930427", "0.59149903", "0.5886122", "0.5785131", "0.5690031", "0.5673123", "0.5633818", "0.55160135", "0.54651564", "0.54288673", "0.5400471", "0.5378434", "0.5341513", "0.5323708", "0.5323708", "0.532044...
0.7807347
0
Get the account repository.
Получить репозиторий учетной записи.
public function getAccountRepository() { if (!$this->accountRepository) { $this->setAccountRepository($this->getEntityManager()->getRepository('Account\Entity\Account')); } return $this->accountRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRepo()\n {\n return $this->repo;\n }", "public function getRepository()\n {\n return $this->repository;\n }", "public function getRepository()\n {\n return $this->repository;\n }", "public function getRepository()\n {\n return $this->reposit...
[ "0.7269168", "0.6900497", "0.6900497", "0.6900497", "0.6900497", "0.6900497", "0.6900497", "0.68958604", "0.68842185", "0.685694", "0.6821314", "0.6811614", "0.6725852", "0.6720549", "0.6685367", "0.6685367", "0.66707015", "0.6640209", "0.65711904", "0.65668863", "0.65665036"...
0.7860508
0
Set the account repository.
Установите репозиторий учетных записей.
public function setAccountRepository($accountRepository) { $this->accountRepository = $accountRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRepository($repository)\n {\n $this->repository = $repository;\n }", "public function setRepo($user, $repo)\n {\n $this->apibase = \"https://api.github.com/repos/$user/$repo/\";\n }", "public function setCredentials()\n\t{\n\t\t$settings_repo = new \\Kickapoo\\Repos...
[ "0.619429", "0.6138165", "0.606795", "0.60392356", "0.5993383", "0.5989423", "0.59035885", "0.5862703", "0.5761476", "0.57221514", "0.5714378", "0.55787075", "0.55787075", "0.5557932", "0.5550746", "0.546888", "0.5467246", "0.5418929", "0.5417918", "0.54096025", "0.5373821", ...
0.7335295
0
Sets the zend translator instance.
Устанавливает экземпляр zend-переводчика.
public function setTranslator($translator) { $this->translator = $translator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTranslator($translator = null)\n {\n if (null === $translator) {\n $this->_translator = null;\n } elseif ($translator instanceof Zend_Translate_Adapter) {\n $this->_translator = $translator;\n } elseif ($translator instanceof Zend_Translate) {\n ...
[ "0.710912", "0.70416385", "0.69322914", "0.68018186", "0.65943766", "0.65633565", "0.6551201", "0.6423835", "0.64007485", "0.6377069", "0.63324505", "0.61093616", "0.60839605", "0.60759836", "0.6056153", "0.6055779", "0.60155386", "0.6005526", "0.59665436", "0.5965346", "0.59...
0.71666676
0
Sets the message's parent message
Устанавливает родительское сообщение для сообщения
public function setParent(Message $parentMessage) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setParentMessage(Message $parentMessage)\n {\n $this->parentMessage = $parentMessage;\n }", "public function setParentMessageID($id) {\n $this->setParam('parent-message-id', $id);\n return $this;\n }", "public function getParentMessage()\n {\n return $this->parentM...
[ "0.8436252", "0.7404321", "0.73649937", "0.722682", "0.69097733", "0.69054955", "0.68956333", "0.68187684", "0.68187684", "0.6791542", "0.6684931", "0.6594282", "0.65560156", "0.65093875", "0.65007055", "0.6465919", "0.6315305", "0.63080525", "0.6305308", "0.63053024", "0.628...
0.92184514
0
Action "overview" URL: /index.php?controllers=Location&action=overview
Действие "overview" URL: /index.php?controllers=Location&action=overview
public function overview() { // load model require_once APP_PATH . '/models/LocationsModel.php'; // get all locations $locationsModel = new LocationsModel(); $locations = $locationsModel->getAll(); // show views loadView('theme/header'); loadView('locations/overvie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function overviewAction(){\n\t\t\t\t\t\t$this->redirectToIndex();\n\t\t\t\t\t if($this->_getParam ( 'actions' )==\"overview\"){\n\t\t\t\t\t $idOverview= $this->_getParam ( 'id' );\n\t\t\t\t\t $idUser = $this->_getParam ( 'userid' );\n\t\t\t\t\t\t\t$GetSelectViewCompanys = $this->GetModelOrg...
[ "0.7275991", "0.6984445", "0.6890046", "0.67462003", "0.66326696", "0.65779954", "0.6489939", "0.64196724", "0.6364081", "0.6324517", "0.6273836", "0.6263286", "0.62370545", "0.62310046", "0.6214828", "0.6214201", "0.6209151", "0.61951053", "0.61903936", "0.6189673", "0.61867...
0.70951855
1
_shouldProcess Default to PHP files only
_Обработка по умолчанию только для файлов PHP
protected function _shouldProcess($path) { return substr($path, -4) === '.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function shouldProcess($path) {\n\n //Handle something special\n return true;\n\n }", "public function runOnFiles(): bool;", "public function shouldRunFile(string $file): bool;", "public function isFilebased() {\n\t\treturn FALSE;\n\t}", "protected function _allowProcess()\n\t{\n\t...
[ "0.7020225", "0.68208265", "0.6239241", "0.6182589", "0.6101586", "0.60849506", "0.60775363", "0.5967233", "0.58954483", "0.58923894", "0.5875959", "0.58618", "0.5855111", "0.58184403", "0.57757986", "0.57221097", "0.5660384", "0.5644789", "0.56268215", "0.561094", "0.560019"...
0.7122054
0
Set jQuery param: showAnim
Установить параметр jQuery: showAnim
public function setAnimation($param){ $this->_config_mapper(array('showAnim' => $param)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAnimated($value) {\r\n $this->animated = $value;\r\n }", "function jquery_loadinganimation_init() {\n $module_path = drupal_get_path('module', 'exam');\n $js_settings = _jquery_loadinganimation_get_settings();\n drupal_add_js(array('jquery_loadinganimation' => $js_settings), 'sett...
[ "0.5865406", "0.5532385", "0.5524836", "0.5094545", "0.49960297", "0.49097446", "0.49047753", "0.48552394", "0.48325107", "0.47908565", "0.4753761", "0.47518334", "0.46917227", "0.46686888", "0.46620557", "0.46072653", "0.46038592", "0.46038592", "0.46038592", "0.45947656", "...
0.74300146
0
Set jQuery params: minDate, maxDate
Установить параметры jQuery: minDate, maxDate
public function setMinMaxDate($minDate = 'null', $maxDate = 'null') { if($minDate != 'null'){ $this->_config_mapper(Array('minDate' => "'" . $minDate . "'")); } if($maxDate != 'null'){ $this->_config_mapper(Array('maxDate' => "'" . $maxDate . "'")); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMinMaxDate($minDate, $maxDate) {\r\n $this->setMinMax($minDate->toDouble(), $maxDate->toDouble());\r\n }", "private function setFilter(): void\n {\n // start date is set\n if ($this->getRequest()->query->has('start_date') && $this->getRequest()->query->get('start_dat...
[ "0.67372954", "0.59364897", "0.5883318", "0.57690585", "0.57052", "0.5564721", "0.5560985", "0.5523682", "0.55008084", "0.54079777", "0.532863", "0.5322418", "0.52361155", "0.5219683", "0.5208982", "0.51432866", "0.5142769", "0.51232296", "0.5114214", "0.51087546", "0.5084568...
0.71662825
0
Set jQuery params: showWeek, firstDay
Установить параметры jQuery: showWeek, firstDay
public function showWeek($showWeek, $firstDay = 0) { if($showWeek) { $this->_config_mapper(Array('showWeek' => 'true')); } else { $this->_config_mapper(Array('showWeek' => 'false')); } $this->_config_mapper(Array('firstDay' => $firstDay...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFirstWeekDay($daynum){\n\tif ($daynum==0) $this->startOnSun=true;\n\telse $this->startOnSun=false;\n}", "public function setShowWeekDayNum($sw=false)\n\t{\n\t\t$this->addWeekDay = $sw;\n\t}", "public function setWeekDate($a = null, $b = null, $c = null)\n {\n throw new NotImplementedExcep...
[ "0.65920395", "0.5864524", "0.5842388", "0.5789946", "0.57759345", "0.5764967", "0.5752445", "0.57277286", "0.5643445", "0.5637567", "0.5604179", "0.5601334", "0.5568413", "0.5541798", "0.54923224", "0.54643625", "0.5445229", "0.54316026", "0.54229194", "0.5409349", "0.536643...
0.74004716
0
Set jQuery param: showButtonPanel
Установить параметр jQuery: showButtonPanel
public function showButtonPanel($showButtonPanel){ if($showButtonPanel){ $this->_config_mapper(Array('showButtonPanel' => 'true')); } else { $this->_config_mapper(Array('showButtonPanel' => 'false')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show_in_panel() {\n\t\treturn false;\n\t}", "public function openAddPanel()\n {\n sleep(1);\n // TODO: Add ID to \"Add\" button\n $this->_webui->clickButton('.btn.btn-primary.btn-xs.pull-right.mb20');\n }", "public function showNewClientButton()\n {\n $this-...
[ "0.661741", "0.6019365", "0.5686028", "0.5668716", "0.56454724", "0.56302196", "0.56301653", "0.5454913", "0.5452624", "0.5446394", "0.5438562", "0.5431659", "0.5400272", "0.5399156", "0.5379872", "0.53700435", "0.53681576", "0.53379023", "0.53378904", "0.5333831", "0.5303617...
0.7856778
0
Set jQuery params: numberOfMonths, showButtonPanel
Установите параметры jQuery: numberOfMonths, showButtonPanel
public function setCalendarNumber($numberOfMonths, $showButtonPanel){ $this->_config_mapper(Array('numberOfMonths' => (int)$numberOfMonths)); if($showButtonPanel) { $this->_config_mapper(Array('showButtonPanel' => 'true')); } else { $this->_config_ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMonths() {\n\tglobal $monthList,\t$monthListShort, $weekdaysList;\n\t$monthList=array('一月','二月','三月','四月','五月','六月',\n\t\t\t\t\t'七月','八月','九月','十月','十一月','十二月');\n\t$monthListShort=array('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');\n\t$weekdaysList=array('Mon','Tue','Wed',...
[ "0.57487535", "0.5748314", "0.5517207", "0.54982084", "0.5494076", "0.5456071", "0.5357836", "0.533942", "0.52991515", "0.528616", "0.52715534", "0.5241927", "0.52283514", "0.5196813", "0.51745176", "0.5151567", "0.5142982", "0.51267374", "0.5067817", "0.5064153", "0.5058148"...
0.7088348
0
Gets the number of rounds.
Получает количество раундов.
public function getRounds() : int { return $this->rounds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoundsCount()\n {\n return $this->rounds()->count();\n }", "public function getNumberOfRuns() {\n return (float) $this->profile->userTotals->totalRuns;\n }", "public function getRoundNum() {\n\t\treturn $this->roundNum;\n\t}", "public function count()\n {\n ...
[ "0.8325318", "0.7074183", "0.67591107", "0.6620794", "0.66092235", "0.65581274", "0.65006757", "0.6394199", "0.6391075", "0.63897616", "0.63416266", "0.62902933", "0.6289839", "0.6261498", "0.62479323", "0.62313557", "0.62259954", "0.6215902", "0.62153083", "0.6163273", "0.61...
0.8386471
0
Validates the given salt string. Important: A valid salt is one starting with $5$ having an optional rounds=$ mid part followed by a 16 long string and ending with $. The rounds value must be between 1000 and 999999999.
Проверяет заданный строковый соль. Важно: допустимый соль начинается с $5$, имеет необязательную часть rounds=$, за которой следует строка длиной 16 символов и заканчивается символом $. Значение rounds должно находиться в диапазоне от 1000 до 999999999.
public static function isValid(string $salt) : bool { $matches = []; $regex = '/^\$5\$(?:rounds=(?<rounds>\d{4,9})\$)?.{16}\$$/'; if (!(bool) preg_match($regex, $salt, $matches)) { return false; } $rounds = intval($matches['rounds']); return ($rounds >= s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifySalt($input)\n {\n $regex = '/^\\$sha1\\$(\\d{1,10})\\$([\\.\\/0-9A-Za-z]{0,64})\\$?$/';\n $matches = array ();\n\n $appearsValid = (1 === preg_match($regex, $input, $matches));\n if ($appearsValid) {\n $rounds = (int) $matches[1];\n $salt ...
[ "0.7102222", "0.57533675", "0.56755304", "0.5631861", "0.5601734", "0.5560309", "0.55600774", "0.55174667", "0.549579", "0.54636085", "0.5379163", "0.53334194", "0.53330284", "0.52810013", "0.5275898", "0.5263952", "0.5261657", "0.5248574", "0.5236559", "0.52357626", "0.52348...
0.775768
0
Handling the saving of the Grievance form.
Обработка сохранения формы жалобы.
public function handleGrievanceSave() { $rules = array( 'title' => 'required|min:3', 'body' => 'required|min:10', 'category' => 'required', 'urgency' => 'required', ); $messages = array( 'title.required' => 'A title is required', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveForm(){\t\n\t\t$this->saveFormBase();\n\t\t$this->saveFormGeoCoverage();\n\t\t$this->saveVaFormResolution();\n\t\tif ($this->dataset->nbModForm >0) $this->saveModForm();\n\t\tif ($this->dataset->nbSatForm >0) $this->saveSatForm();\n\t\tif ($this->dataset->nbInstruForm >0) $this->saveInstruForm();\n\t\...
[ "0.72827417", "0.6942034", "0.6922067", "0.6868379", "0.6828924", "0.68148637", "0.6787164", "0.6787164", "0.6787164", "0.6761275", "0.6718057", "0.67121875", "0.6634515", "0.66339207", "0.6622403", "0.6616926", "0.6573769", "0.65668154", "0.65543133", "0.6511021", "0.6497866...
0.72191095
1
Handle for Request for Reopen
Ручка для запроса повторного открытия
public function handleGrievanceRequestReopen() { //code for request to reopen $Grievance = new Grievance; if ($Grievance->RequestReoopenGrievance()) { SentryHelper::setMessage('Request sent ....'); } else { SentryHelper::setMessage('Request Not sent', 'warning...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleRequest() {}", "function handleRequest() ;", "abstract public function handle_request();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "function req_unhook() {\n \\...
[ "0.6340992", "0.62985456", "0.6265283", "0.6189609", "0.6189609", "0.6189609", "0.6088414", "0.5917999", "0.5850783", "0.5790484", "0.5726067", "0.5696581", "0.56604344", "0.5660314", "0.5640664", "0.5628068", "0.55742216", "0.5559663", "0.5554176", "0.55314547", "0.54796207"...
0.7514798
0
TODO $charset_remoto podria volverse opcional si pudiesemos detectar automaticamente el charset de $datos Espera que $datos este en formato $formato e intenta convertirlo a php.
TODO $charset_remoto может стать необязательным, если мы сможем автоматически определить charset для $datos. Ожидайте, что $datos будет в формате $formato, и попытайтесь преобразовать его в php.
function formatearEntrada($datos, $formato, $charset_local, $charset_remoto){ switch($formato){ case "application/php" : $datos_php = unserialize(trim($datos)); if($charset_local != $charset_remoto){ $datos_php = convertir_charset_mix($datos_php, $charset_local, $charset_remoto); } return $datos_ph...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatearSalida($datos, $formato, $charset_remoto, $charset_local){\n\n switch($formato){\n\tcase \"application/php\" :\n\t\tif($charset_local != $charset_remoto){\n\t\t\t$datos = convertir_charset_mix($datos, $charset_remoto, $charset_local);\n \t\t} \n\t\treturn serialize($datos);\n\tca...
[ "0.69566005", "0.58332425", "0.5765321", "0.56932706", "0.56637764", "0.56604564", "0.56287706", "0.55785847", "0.556895", "0.54836196", "0.54818404", "0.5448594", "0.5428814", "0.54053783", "0.53852713", "0.53700095", "0.53395414", "0.532923", "0.5308344", "0.5294057", "0.52...
0.7636499
0
Configures the application representative
Настройка представителя приложения
protected function _configureApplication() { $this->getApplication() ->setRequest(\App\Factory::createRequest()) ->setRouter(\App\Factory::createRouter()) ->setDispatcher(\App\Factory::createDispatcher()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function configure();", "protected function configure()\n {\n $this->setName('appconfig')\n ->setDescription('Create appserver.io Config')\n ->addArgument('application-name', InputOption::VALUE_REQUIRED, 'config application name')\n ->addArgument('namesp...
[ "0.6875046", "0.6846799", "0.68386084", "0.66899", "0.66442764", "0.66442764", "0.66149086", "0.66149086", "0.6572139", "0.6527485", "0.6494877", "0.6491571", "0.6490498", "0.64818615", "0.6464976", "0.6456143", "0.6443482", "0.64179", "0.6393115", "0.63750184", "0.6363162", ...
0.7210944
0
Returns short version of the footer
Возвращает короткую версию футера
public function getShortFooter() { $footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' . '<br/>' . $this->getSlogan(); return $footer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLongFooter() {\n\t\t$footer = '© ' . date('Y') . ' <a href=\"' . $this->getBaseUrl() . '\" target=\"_blank\">' . $this->getEntity() . '</a>' .\n\t\t\t'<br/>' . $this->getSlogan();\n\n\t\treturn $footer;\n\t}", "public function getFooter();", "public function getFooter();", "public function...
[ "0.8119948", "0.8013002", "0.8013002", "0.790851", "0.778197", "0.7726154", "0.77153075", "0.7683358", "0.76807904", "0.76455015", "0.7595655", "0.7595655", "0.75911385", "0.7584095", "0.7559178", "0.7552255", "0.75474787", "0.7524389", "0.7497075", "0.74882084", "0.7474699",...
0.8595473
0
Returns long version of the footer
Возвращает длинную версию подвала
public function getLongFooter() { $footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' . '<br/>' . $this->getSlogan(); return $footer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShortFooter() {\n\t\t$footer = '© ' . date('Y') . ' <a href=\"' . $this->getBaseUrl() . '\" target=\"_blank\">' . $this->getEntity() . '</a>' .\n\t\t\t'<br/>' . $this->getSlogan();\n\n\t\treturn $footer;\n\t}", "public function getFooter();", "public function getFooter();", "public functio...
[ "0.8146224", "0.78987974", "0.78987974", "0.7714934", "0.76309913", "0.7554746", "0.75386643", "0.7467841", "0.74452364", "0.7434521", "0.7415478", "0.7406883", "0.7390948", "0.73530614", "0.7286164", "0.7229945", "0.7229945", "0.7227742", "0.7175284", "0.7161438", "0.7117651...
0.889675
0
Generate a documentation link for a given key
Создайте ссылку на документацию для заданного ключа
public function buildDocLinkToKey($key) { return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gen_help_url($sub_key = '') {\n\t\tif ($this->config->get('config_help_links') != 1) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!empty($sub_key)) {\n\t\t\t$main_key = $sub_key;\n\t\t} else {\n\t\t\t$main_key = str_replace('/', '_', $this->controller);\n\t\t}\n\n\t\t$url = \"http://docs.abantecart.com/...
[ "0.6885762", "0.632404", "0.6261652", "0.6214391", "0.619343", "0.6083077", "0.6082882", "0.5912607", "0.5892871", "0.5849717", "0.58432573", "0.5837815", "0.57979935", "0.5767185", "0.57078314", "0.5693553", "0.56548554", "0.56516445", "0.5613801", "0.55771536", "0.55565697"...
0.8161257
0
Returns variables to overload defaults from core/css/variables.scss
Возвращает переменные для переопределения значений по умолчанию из core/css/variables.scss
public function getScssVariables() { return [ 'color-primary' => '#745bca' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_scss_set_font_variables() {\n\n\t// Get the defaults.\n\tglobal $starter_default_fonts;\n\tglobal $starter_default_colors;\n\n\t// Create array of color variables.\n\t$variables = [];\n\n\tforeach ( $starter_default_colors as $key => $value ) {\n\n\t\t$variables[ $key ] = get_theme_mod( $key, $value );...
[ "0.71115303", "0.66057557", "0.6466062", "0.63583344", "0.6246334", "0.6243435", "0.6101464", "0.597163", "0.5958315", "0.5900788", "0.58901644", "0.5856367", "0.5819409", "0.57871747", "0.5755374", "0.5726822", "0.56927145", "0.56634414", "0.5653974", "0.56538546", "0.564378...
0.74441427
0
Creates a form to delete a justicium entity.
Создает форму для удаления сущности justicium.
private function createDeleteForm(Justicia $justicium) { return $this->createFormBuilder() ->setAction($this->generateUrl('justicia_delete', array('id' => $justicium->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Indicateur $indicateur) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('indicateur_delete', array('id' => $indicateur->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n ...
[ "0.7565924", "0.7354222", "0.7341708", "0.72316676", "0.7150517", "0.71355915", "0.70999205", "0.70867336", "0.70777845", "0.7053388", "0.69993454", "0.6972959", "0.6926406", "0.69212687", "0.69024855", "0.6899233", "0.6884797", "0.6874771", "0.6871098", "0.68676955", "0.6859...
0.7891954
0
Fetches the FE user groups (fe_groups) of the logged in FE user
Получает группы FE пользователей (fe_groups) авторизованного FE пользователя
static public function fetchFeGroups () { $result = []; if ( isset($GLOBALS['TSFE']->fe_user) && isset($GLOBALS['TSFE']->fe_user->user) && isset($GLOBALS['TSFE']->fe_user->user['usergroup']) ) { $result = explode(',', $GLOBALS['TSFE']->fe_user-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getGroups()\n {\n $where = '';\n if ($this->userGroups)\n {\n $groups = explode(',', $this->userGroups);\n $where .= \" uid IN ('\" . implode(\"','\", $groups) . \"') \";\n }\n $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'fe_gro...
[ "0.73203427", "0.72411937", "0.7110806", "0.70966804", "0.6991979", "0.69108355", "0.6858293", "0.683968", "0.68328565", "0.68182594", "0.67765075", "0.6734005", "0.6715941", "0.6677012", "0.66682076", "0.6649335", "0.66362655", "0.6630931", "0.6619236", "0.6615782", "0.66018...
0.80179447
0
Fetches the FE user groups (fe_groups) of the logged in FE user as an array of record
Получает группы FE пользователей (fe_groups) авторизованного FE пользователя в виде массива записей
static public function readFeGroupsRecords () { $result = false; $feGroups = static::fetchFeGroups(); if (!empty($feGroups)) { $feGroupList = implode(',', $feGroups); $where_clause = 'uid IN (' . $feGroupList . ')'; $result = $GLOBALS['TYPO3_DB']->exec_SE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function fetchFeGroups ()\n {\n $result = [];\n\n if (\n isset($GLOBALS['TSFE']->fe_user) &&\n isset($GLOBALS['TSFE']->fe_user->user) &&\n isset($GLOBALS['TSFE']->fe_user->user['usergroup'])\n ) {\n $result = explode(',', $GLOBALS['TS...
[ "0.82356024", "0.73394096", "0.7101859", "0.6964421", "0.6897223", "0.68906516", "0.68772984", "0.68538755", "0.67828745", "0.67818874", "0.6777793", "0.67765665", "0.67484015", "0.6706977", "0.66732204", "0.66684747", "0.66283506", "0.6609227", "0.65978146", "0.65956306", "0...
0.7721719
1
Adds the time zone to the given unix time parameter
Добавляет часовой пояс к заданному параметру unix времени
static public function addTimeZone (&$time) { if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'])) { $time += ($GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'] * 3600); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_time_zone()\n {\n $this->set_date_to_now();\n $offset = $GLOBALS['time_diff'] - $GLOBALS['server_time_offset'];\n $this->timestamp+=($offset*3600);\n }", "public function createInTimeZone($time, \\DateTimeZone $timezone);", "function set_time_from_unix_time($unixtime)\n ...
[ "0.687727", "0.6207628", "0.6129918", "0.5756463", "0.57331896", "0.56162614", "0.5605271", "0.5579205", "0.55276346", "0.54616207", "0.5435536", "0.5430819", "0.539762", "0.53060365", "0.5254436", "0.5254418", "0.52477884", "0.52259606", "0.51958334", "0.51543206", "0.514200...
0.7310976
0
Clears cache content for a list of page ids
Очищает содержимое кэша для списка идентификаторов страниц
static public function clearPageCacheContent_pidList($pidList) { $pageCache = static::getPageCache(); $pageIds = GeneralUtility::trimExplode(',', $pidList); foreach ($pageIds as $pageId) { $pageCache->flushByTag('pageId_' . (int)$pageId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearCachesOfRegisteredPageIds() {}", "public function clearPageCacheContent() {}", "function clearCacheIfSet()\t{\n\t\tif ($this->conf['clearCacheOfPages'])\t{\n\t\t\t$cc_pidList = $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['clearCacheOfPages']);\n\t\t\t$GLOBALS['TSFE']->clearPageCacheCont...
[ "0.76232606", "0.72297263", "0.6905112", "0.6659995", "0.64680296", "0.6443081", "0.6390617", "0.6294601", "0.6283241", "0.62448406", "0.6223703", "0.62227744", "0.6164316", "0.61532426", "0.61532426", "0.61458236", "0.614209", "0.61338717", "0.6115275", "0.6077659", "0.60319...
0.7235665
1
Gets an array of external entity type permissions.
Получает массив разрешений на типы внешних сущностей.
public function ExternalEntityTypePermissions() { $perms = array(); // Generate node permissions for all node types. foreach (ExternalEntityType::loadMultiple() as $type) { $perms += $this->buildPermissions($type); } return $perms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function entityGalleryTypePermissions() {\n $perms = array();\n // Generate entity gallery permissions for all entity gallery types.\n foreach (EntityGalleryType::loadMultiple() as $type) {\n $perms += $this->buildPermissions($type);\n }\n\n return $perms;\n }", "public function permi...
[ "0.7189829", "0.6989495", "0.6966285", "0.6898314", "0.6896353", "0.68632835", "0.67812526", "0.6763675", "0.673349", "0.6726324", "0.66731304", "0.66731304", "0.66682696", "0.6648148", "0.664122", "0.664122", "0.65730786", "0.65605384", "0.6505143", "0.64764386", "0.6433009"...
0.84525174
0
Builds a standard list of external entity permissions for a given type.
Создает стандартный список разрешений внешних сущностей для заданного типа.
protected function buildPermissions(ExternalEntityType $type) { $type_id = $type->id(); $type_params = array('%type_name' => $type->label()); return array( "create $type_id external entity" => array( 'title' => $this->t('%type_name: Create new external entity', $type_params), ), "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildPermissions(EntityGalleryType $type) {\n $type_id = $type->id();\n $type_params = array('%type_name' => $type->label());\n\n return array(\n \"create $type_id entity galleries\" => array(\n 'title' => $this->t('%type_name: Create new entity galleries', $type_params),\n ...
[ "0.6803465", "0.6761389", "0.6692831", "0.6634918", "0.6594306", "0.64647055", "0.64469683", "0.6351283", "0.586982", "0.58554333", "0.5835833", "0.5782066", "0.57617277", "0.5740527", "0.57039744", "0.5545564", "0.547719", "0.54566735", "0.545404", "0.5372211", "0.5347817", ...
0.81037617
0
Test for execute() method if sales representatives IDs of company and initial company are equal.
Тест на выполнение метода execute(), если идентификаторы представителей продаж компании и начальной компании совпадают.
public function testExecuteIfSalesRepresentativesIdsEqual() { $salesRepresentativeId = 1; $company = $this ->getMockBuilder(\Magento\Company\Api\Data\CompanyInterface::class) ->disableOriginalConstructor() ->setMethods(['getSalesRepresentativeId']) ->g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExecute()\n {\n $company = $this\n ->getMockBuilder(\\Magento\\Company\\Api\\Data\\CompanyInterface::class)\n ->disableOriginalConstructor()\n ->setMethods(['getSalesRepresentativeId'])\n ->getMockForAbstractClass();\n $initialCompany...
[ "0.59031135", "0.5580825", "0.5340377", "0.52788275", "0.5170822", "0.51461387", "0.51396227", "0.5054827", "0.5035228", "0.500984", "0.49981907", "0.4992841", "0.4984993", "0.4982965", "0.497837", "0.4953366", "0.49393314", "0.49281672", "0.49234185", "0.49032775", "0.489836...
0.76329875
0
Sets a new virkningTilFilter
Устанавливает новый фильтр virkningTil
public function setVirkningTilFilter(?\Digitaliseringskataloget\Sagdok3_0_0\VirkningTilFilter $virkningTilFilter = null) { $this->virkningTilFilter = $virkningTilFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function setFilter(string $filter);", "public function setDataFilter($filter)\n {\n // TODO: improve logging when we finally have a central Tesseract debugging workflow\n if (...
[ "0.6256199", "0.6116941", "0.60776716", "0.6061939", "0.5935819", "0.59337145", "0.589211", "0.5759268", "0.569589", "0.5630974", "0.5625592", "0.5606651", "0.55725634", "0.5515273", "0.5496747", "0.5495308", "0.54719603", "0.547118", "0.5464948", "0.5416283", "0.538264", "...
0.7448768
0
Sets a new registreringTilFilter
Устанавливает новый registreringTilFilter
public function setRegistreringTilFilter(?\Digitaliseringskataloget\Sagdok3_0_0\RegistreringTilFilter $registreringTilFilter = null) { $this->registreringTilFilter = $registreringTilFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "public function setFilter(string $filter);", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function setVirkningTilFilter(?\\Digitaliseringskataloget\\Sagdok3_0_0\\VirkningTilFilter $virkningTilFilter = null)\n {\n $this->virkni...
[ "0.7077936", "0.68532735", "0.68118304", "0.67019135", "0.65534437", "0.63818544", "0.6334924", "0.624136", "0.61934924", "0.61549014", "0.60904306", "0.6050619", "0.6007504", "0.600214", "0.5954915", "0.59159064", "0.58857167", "0.5855579", "0.5853472", "0.58460265", "0.5841...
0.7234813
0
Create location change notification message
Создать сообщение о изменении местоположения
function create_location_change_message($user_id, $device_token, $latitude, $longitude, $distance) { $notification_array = array( 'title' => 'Location Change Alert', 'message' => 'You are out of the preferred location. Please change the location to get more alerts.', 'latitude' => $latitude...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showNoticeLocation()\n {\n $id = $this->notice->id;\n\n $location = $this->notice->getLocation();\n\n if (empty($location)) {\n return;\n }\n\n $name = $location->getName();\n\n $lat = $this->notice->lat;\n $lon = $this->notice->lon;\n ...
[ "0.58110785", "0.5752141", "0.5654719", "0.54998213", "0.53405035", "0.53264284", "0.5291446", "0.52883244", "0.52883244", "0.5213636", "0.518438", "0.51799464", "0.517806", "0.51536566", "0.51158094", "0.50687534", "0.5055135", "0.5051269", "0.50446486", "0.501496", "0.49730...
0.7608566
0
Function to send the notification if the user is near to the store
Функция для отправки уведомления, если пользователь находится рядом со store
function create_location_nearby_message($user_id, $device_token, $nearby_store_data) { $notification_array = array( 'title' => 'Nearby Store Alert', 'message' => 'You are near to store: ' . $nearby_store_data['StoreName'] . '. ' . $nearby_store_data['SpecialCount'] . ' specials are available here.'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function send_push_notification_location($notification_array, $user_id, $device_token, $store_near = 0) {\n $CI = &get_instance();\n $can_send = TRUE;\n// if($store_near === 0){ \n// if ($this -> session -> userdata('location_notification_send_time')) {\n// $start = date_create($this -> ...
[ "0.6043288", "0.57348716", "0.53542256", "0.5348562", "0.5305889", "0.5199681", "0.51625484", "0.51314044", "0.5063772", "0.5049372", "0.50391716", "0.5036657", "0.50204957", "0.50019825", "0.49854276", "0.4969458", "0.49552038", "0.49531442", "0.4949317", "0.49484727", "0.49...
0.70245343
0
Creates the navigation options for the table, including the pagination and sorting options If wrap is set to true, it return an array of the top and bottom navigation menus
Создает опции навигации для таблицы, включая опции пагинации и сортировки. Если wrap установлен в true, возвращает массив верхнего и нижнего меню навигации
public function tableNav($options = [], $wrap = false) { $return = $wrap ? ['',''] : ''; $out = ''; if (!empty($options['sort'])) { $out .= $this->tableSortMenu($options['sort'], ['class' => 'pull-right']); } $model = !empty($options['model']) ? $options['model'] : $this->Paginator->defaultMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPagesLinks()\n\t{\n\t\tglobal $mainframe;\n\n\t\t$lang =& JFactory::getLanguage();\n\n\t\t// Build the page navigation list\n\t\t$data = $this->_buildDataObject();\n\n\t\t$list = array();\n\n\t\t$itemOverride = false;\n\t\t$listOverride = false;\n\n\t\t$chromePath = JPATH_THEMES.DS.$mainframe->getTempl...
[ "0.6120339", "0.5898749", "0.5884466", "0.58527035", "0.5819622", "0.5768236", "0.57286805", "0.56696594", "0.56555665", "0.5626478", "0.56094486", "0.5602402", "0.55946827", "0.5591048", "0.5585551", "0.557883", "0.5568153", "0.5538077", "0.5525394", "0.552008", "0.5502185",...
0.7501029
0
this is the function that processes the signup
это функция, которая обрабатывает регистрацию
public function p_signup() { $q= 'Select email From users WHERE email="'.$_POST['email'].'"'; # see if the email exists $emailexists= DB::instance(DB_NAME)->select_field($q); # email exists, throw an error if($emailexists){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_signup(){\n\t\tforeach($_POST as $field => $value){\n\t\t\tif(empty($value)){\n\t\t\t\tRouter::redirect('/users/signup/empty-fields');\n\t\t\t}\n\t\t}\n\n\t\t#check for duplicate email\n\t\tif ($this->userObj->confirm_unique_email($_POST['email']) == false){\n\t\t\t#send back to signup page\n\t\t...
[ "0.79888904", "0.7733975", "0.7696055", "0.76869136", "0.7677835", "0.7580091", "0.7570841", "0.753299", "0.7530093", "0.7511039", "0.7456928", "0.7436119", "0.7405426", "0.7391708", "0.7373141", "0.7359808", "0.7333507", "0.73007435", "0.72976786", "0.7270636", "0.72257054",...
0.7936471
1
this sets up email password view and displays error if any
это настраивает представление пароля электронной почты и отображает ошибку, если она есть
public function emailpassword($error = NULL) { $this->template->content3=View::instance('v_users_emailpassword'); $this->template->title= APP_NAME. " :: Login"; // add required js and css files to be used in the form $client_files_head=Array('/js/languages/jquery.validationE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forgotPassword(){\n\t\t// Set the Page Title ('pageName', 'pageSection', 'areaName')\n\t\t$this->_view->pageTitle = array('Forgot Your Password', 'Login');\n\t\t// Set Page Description\n\t\t$this->_view->pageDescription = 'You can reset your password.';\n\t\t// Set Page Section\n\t\t$this->_view->p...
[ "0.73582804", "0.7041275", "0.7005018", "0.693003", "0.6710612", "0.6689102", "0.66279", "0.6622148", "0.6612885", "0.6609213", "0.6575785", "0.6553878", "0.655179", "0.65469784", "0.6537619", "0.65359753", "0.6494458", "0.64927274", "0.6472844", "0.6464832", "0.6445919", "...
0.7696021
0
Get the cards that are available for the given request.
Получить карты, доступные для данного запроса.
public function availableCards(AdminRequest $request) { return $this->resolveCards($request)->filter->authorize($request)->values(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index(CardRequest $request)\n {\n return $request->availableCards();\n }", "public function cards(Request $request)\n {\n return [\n\n ];\n }", "public function cards(Request $request)\n {\n return [\n new Bookings,\n ...
[ "0.79891163", "0.7243225", "0.71895236", "0.71414095", "0.7123965", "0.7123965", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", ...
0.726391
1
Method to retrieve all Programmes
Метод для получения всех Программ
public function getAllProgrammes() { try { $programes = $this->em->getRepository(Entity\Programme::class)->findAll(); $this->em->flush(); } catch (\Doctrine\ORM\OptimisticLockException $e) { $this->em->rollback(); } return $programes === null ? 0 : $pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProgrammes()\r\n {\r\n $sql=\"SELECT * FROM programmes\";\r\n $query=$this->db->query($sql);\r\n return $query->result_array();\r\n }", "public static function getPrograms()\n {\n $s = self::$_db->prepare('SELECT * FROM emission');\n $s->execute();\n ...
[ "0.7603743", "0.7042983", "0.67120755", "0.6561479", "0.63808376", "0.6342765", "0.6267164", "0.60983896", "0.6052791", "0.5973888", "0.5926106", "0.5925172", "0.59239125", "0.59002656", "0.5872258", "0.5838603", "0.58146966", "0.57869637", "0.5783099", "0.57418656", "0.57202...
0.7481882
1
checkOnlineList Checks users online
checkOnlineList Проверяет, онлайн ли пользователи
private function checkOnlineList() { $this->online->checkOnlineList($this->loginTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsersOnline()\r\n {\r\n $result = $this->getBitrixApi(array(\r\n 'FILTER' => array('IS_ONLINE' => 'Y',),\r\n ), 'user.get');\r\n\r\n if ($result) {\r\n if (isset($result['total']) && $result['total'] > 0) {\r\n return $result['result']...
[ "0.7345724", "0.7073978", "0.70617306", "0.68892986", "0.6867892", "0.6864916", "0.6840707", "0.6835407", "0.67512155", "0.6697396", "0.6697396", "0.6685548", "0.66441566", "0.6642902", "0.66096693", "0.6605822", "0.6593062", "0.65782773", "0.65550184", "0.65521514", "0.65440...
0.88326967
0