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
Function : privCheckFileHeaders() Description : Parameters : Return Values : 1 on success, 0 on error;
Функция: privCheckFileHeaders() Описание: Параметры: Значения возвращаемые: 1 при успехе, 0 при ошибке;
function privCheckFileHeaders(&$p_local_header, &$p_central_header) { $v_result=1; // ----- Check the static values // TBC if ($p_local_header['filename'] != $p_central_header['filename']) { } if ($p_local_header['version_extracted'] != $p_central_header['version_extracted']) { } if ($p_loca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function privCheckFileHeaders(&$p_local_header, &$p_central_header)\n {\n }", "function privCheckFormat($p_level=0)\n {\n $v_result = true;\n\n\t// ----- Reset the file system cache\n clearstatcache();\n\n // ----- Reset the error handler\n $this->privErrorReset();\n\n // ----- Look...
[ "0.79715097", "0.6331113", "0.6266581", "0.6051741", "0.60202813", "0.59728754", "0.59353125", "0.5894247", "0.5889451", "0.5873963", "0.5853939", "0.5835543", "0.5768048", "0.57541263", "0.5711242", "0.5704415", "0.56907976", "0.5679218", "0.5668934", "0.56580734", "0.562207...
0.78430194
1
Function : privDirCheck() Description : Check if a directory exists, if not it creates it and all the parents directory which may be useful. Parameters : $p_dir : Directory path to check. Return Values : 1 : OK 1 : Unable to create directory
Функция: privDirCheck() Описание: Проверяет, существует ли директория, если её нет, создаёт её и все родительские директории, что может быть полезно. Параметры: $p_dir : Путь к директории для проверки. Значения возвращаемые: 1 : OK 1 : Не удалось создать директорию
function privDirCheck($p_dir, $p_is_dir=false) { $v_result = 1; // ----- Remove the final '/' if (($p_is_dir) && (substr($p_dir, -1)=='/')) { $p_dir = substr($p_dir, 0, strlen($p_dir)-1); } // ----- Check the directory availability if ((is_dir($p_dir)) || ($p_dir == "")) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_dir_exists($dir,$create=false) {\n\n global $CFG; \n\n $status = true;\n if(!is_dir($dir)) {\n if (!$create) {\n $status = false;\n } else {\n umask(0000);\n $status = mkdir ($dir,$CFG->directorypermissions);\n ...
[ "0.75298345", "0.7497985", "0.7153419", "0.6980526", "0.6941495", "0.6858837", "0.6787238", "0.6729172", "0.6580235", "0.63681155", "0.63385254", "0.63279766", "0.63176316", "0.6279769", "0.6272958", "0.6240449", "0.6210179", "0.61951584", "0.61946064", "0.6147492", "0.614016...
0.8253215
0
Function : privMerge() Description : If $p_archive_to_add does not exist, the function exit with a success result. Parameters : Return Values :
Функция: privMerge() Описание: Если $p_archive_to_add не существует, функция завершается с результатом успешного выполнения. Параметры: Значения возвращения:
function privMerge(&$p_archive_to_add) { $v_result=1; // ----- Look if the archive_to_add exists if (!is_file($p_archive_to_add->zipname)) { // ----- Nothing to merge, so merge is a success $v_result = 1; // ----- Return return $v_result; } // ----- Look if the arch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function privMerge(&$p_archive_to_add)\n {\n }", "function merge($p_archive_to_add)\n {\n $v_result = 1;\n\n // ----- Reset the error handler\n $this->privErrorReset();\n\n // ----- Check archive\n if (!$this->privCheckFormat()) {\n return(0);\n }\n\n // ----- Look if the...
[ "0.8532001", "0.80233395", "0.7956731", "0.64733917", "0.6096254", "0.6047943", "0.5982017", "0.5600416", "0.5541441", "0.5299162", "0.49369055", "0.48128662", "0.4672116", "0.46657136", "0.46494415", "0.45804155", "0.45589435", "0.45413777", "0.45235953", "0.45219028", "0.44...
0.81681406
1
Function : privDisableMagicQuotes() Description : Parameters : Return Values :
Функция : privDisableMagicQuotes() Описание : Параметры : Значения возвращаемые :
function privDisableMagicQuotes() { $v_result=1; // ----- Look if function exists if ( (!function_exists("get_magic_quotes_runtime")) || (!function_exists("set_magic_quotes_runtime"))) { return $v_result; } // ----- Look if already done if ($this->magic_quotes_status != -1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function privDisableMagicQuotes()\n {\n }", "function privSwapBackMagicQuotes()\n {\n }", "public function removeMagicQuotes() {\n if ( get_magic_quotes_gpc() ) {\n $_GET = $this->stripSlashesDeep($_GET);\n $_POST = $this->stripSlashesDeep($_POST);\...
[ "0.9342688", "0.78234506", "0.74710405", "0.7467771", "0.7369817", "0.72923", "0.72668463", "0.7175164", "0.7113433", "0.70848036", "0.69795936", "0.69222176", "0.6921849", "0.6866812", "0.6842617", "0.6561063", "0.6528466", "0.652168", "0.65008146", "0.6377862", "0.6346926",...
0.8059457
1
Function : privSwapBackMagicQuotes() Description : Parameters : Return Values :
Функция: privSwapBackMagicQuotes() Описание: Параметры: Значения возвращаемые:
function privSwapBackMagicQuotes() { $v_result=1; // ----- Look if function exists if ( (!function_exists("get_magic_quotes_runtime")) || (!function_exists("set_magic_quotes_runtime"))) { return $v_result; } // ----- Look if something to do if ($this->magic_quotes_status != -1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function privSwapBackMagicQuotes()\n {\n }", "function privDisableMagicQuotes()\n {\n }", "private static function _undoMagicQuotes(){\n\t\t\n\t\tif (get_magic_quotes_gpc()) {\n\n\t\t\tfunction stripslashes_array($data) {\n\t\t\t\tif (is_array($data)) {\n\t\t\t\t\tforeach ($data as ...
[ "0.9239293", "0.72350353", "0.70064443", "0.68302166", "0.64431494", "0.63650686", "0.63194054", "0.6307809", "0.6273771", "0.6233617", "0.61650515", "0.61650515", "0.614892", "0.6144658", "0.60960877", "0.6078494", "0.6072133", "0.60513943", "0.6025399", "0.6006188", "0.5979...
0.74646086
1
End of class Function : PclZipUtilPathReduction() Description : Parameters : Return Values :
Конец класса Function : PclZipUtilPathReduction() Описание : Параметры : Значения возвращаемые:
function PclZipUtilPathReduction($p_dir) { $v_result = ""; // ----- Look for not empty path if ($p_dir != "") { // ----- Explode path by directory names $v_list = explode("/", $p_dir); // ----- Study directories from last to first $v_skip = 0; for ($i=sizeof($v_list)-1; $i>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PclZipUtilPathReduction($p_dir)\n {\n }", "function PclZipUtilPathInclusion($p_dir, $p_path)\n {\n $v_result = 1;\n\n // ----- Look for path beginning by ./\n if ( ($p_dir == '.')\n || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) {\n $p_dir = PclZipUtilTranslat...
[ "0.8209627", "0.61703014", "0.61390555", "0.6104472", "0.60813", "0.6005115", "0.58885884", "0.58101815", "0.57502866", "0.55941176", "0.55700743", "0.5510569", "0.5404109", "0.5390533", "0.5342025", "0.53158987", "0.5292571", "0.5273299", "0.5250634", "0.51394033", "0.511210...
0.7349223
1
Function : PclZipUtilPathInclusion() Description : This function indicates if the path $p_path is under the $p_dir tree. Or, said in an other way, if the file or subdir $p_path is inside the dir $p_dir. The function indicates also if the path is exactly the same as the dir. This function supports path with duplicated '...
Функция : PclZipUtilPathInclusion() Описание : Эта функция указывает, находится ли путь $p_path внутри дерева $p_dir. Иными словами, указывает ли она, находится ли файл или подкаталог $p_path внутри каталога $p_dir. Эта функция также указывает, является ли путь идентичным каталогу $p_dir. Эта функция поддерживает пути ...
function PclZipUtilPathInclusion($p_dir, $p_path) { $v_result = 1; // ----- Look for path beginning by ./ if ( ($p_dir == '.') || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) { $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1); } if ( ($p_pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PclZipUtilPathInclusion($p_dir, $p_path)\n {\n }", "public function has($path) {\n $return = parent::has($path);\n // Appease file.inc's calls to is_dir()\n return ($return !== FALSE) ? $return : parent::has($path . '/');\n }", "protected static function pathIsRelative($path) {\n\t\tre...
[ "0.72979736", "0.5792201", "0.5615257", "0.55725557", "0.55142134", "0.5458316", "0.54091555", "0.54026055", "0.5395223", "0.538937", "0.5292802", "0.5158521", "0.5158521", "0.5152624", "0.514745", "0.50935113", "0.5091261", "0.50875735", "0.50828934", "0.50755155", "0.502989...
0.7967008
0
Function : PclZipUtilCopyBlock() Description : Parameters : $p_mode : read/write compression mode 0 : src & dest normal 1 : src gzip, dest normal 2 : src normal, dest gzip 3 : src & dest gzip Return Values :
Функция : PclZipUtilCopyBlock() Описание : Параметры : $p_mode : режим чтения/записи сжатия 0 : источник и назначение нормальные 1 : источник gzip, назначение нормальное 2 : источник нормальный, назначение gzip 3 : источник и назначение gzip Значения возвращаемые :
function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) { $v_result = 1; if ($p_mode==0) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_src, $v_read_size); @fwrite($p_dest, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode = 0)\n {\n }", "function tc_file_system_copy($source, $destination, $overwrite = false, $mode = false){\r\n\t\r\n\t//initialize processed files object\r\n\t$processed_files = WPTC_Factory::get('processed-restoredfiles',true);\r\n\t$current_proc...
[ "0.84548885", "0.5026981", "0.4946617", "0.464165", "0.46398866", "0.46188366", "0.45914027", "0.45761955", "0.43530065", "0.43221796", "0.4295753", "0.42858264", "0.41748497", "0.41744345", "0.41313854", "0.4118747", "0.4113469", "0.40921018", "0.4067844", "0.40339753", "0.4...
0.8384455
1
Function : PclZipUtilRename() Description : This function tries to do a simple rename() function. If it fails, it tries to copy the $p_src file in a new $p_dest file and then unlink the first one. Parameters : $p_src : Old filename $p_dest : New filename Return Values : 1 on success, 0 on failure.
Функция : PclZipUtilRename() Описание : Эта функция пытается выполнить простую функцию rename(). Если это не удается, она пытается скопировать файл $p_src в новый файл $p_dest, а затем удалить исходный файл. Параметры : $p_src : Старое имя файла $p_dest : Новое имя файла Значения возвращаемые : 1 при успешном выполнени...
function PclZipUtilRename($p_src, $p_dest) { $v_result = 1; // ----- Try to rename the files if (!@rename($p_src, $p_dest)) { // ----- Try to copy & unlink the src if (!@copy($p_src, $p_dest)) { $v_result = 0; } else if (!@unlink($p_src)) { $v_result = 0; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PclZipUtilRename($p_src, $p_dest)\n {\n }", "public function rename($source, $destination);", "public function rename($src, $dest)\n {\n if (!$this->copy($src, $dest)) {\n return false;\n }\n\n $this->unlink($src);\n\n return true;\n }", "abstract f...
[ "0.82147187", "0.65584713", "0.6306523", "0.6259325", "0.61518836", "0.6074757", "0.596215", "0.59456927", "0.59426355", "0.59162986", "0.58952534", "0.58226", "0.5716704", "0.56861216", "0.5623452", "0.56182635", "0.56063706", "0.56016916", "0.55824476", "0.5575874", "0.5526...
0.8743061
0
Function : PclZipUtilOptionText() Description : Translate option value in text. Mainly for debug purpose. Parameters : $p_option : the option value. Return Values : The option text value.
Функция : PclZipUtilOptionText() Описание : Переводит значение опции в текст. В основном используется для отладки. Параметры : $p_option : значение опции. Значения возвращаемые : Текстовое значение опции.
function PclZipUtilOptionText($p_option) { $v_list = get_defined_constants(); for (reset($v_list); $v_key = key($v_list); next($v_list)) { $v_prefix = substr($v_key, 0, 10); if (( ($v_prefix == 'PCLZIP_OPT') || ($v_prefix == 'PCLZIP_CB_') || ($v_prefix == 'PCLZIP_ATT')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PclZipUtilOptionText($p_option)\n {\n }", "public function getOptionText($optionId)\r\n {\r\n $options = self::getOptionArray();\r\n\r\n return isset($options[$optionId]) ? $options[$optionId] : null;\r\n }", "public function getOptionText($optionId)\n {\n $options ...
[ "0.84477437", "0.6535721", "0.6479831", "0.5885575", "0.5884847", "0.5663856", "0.5625642", "0.56250685", "0.5598823", "0.55187404", "0.54956", "0.5469273", "0.5425484", "0.5377285", "0.53443813", "0.53321034", "0.5273797", "0.5254335", "0.52475137", "0.52211773", "0.5175592"...
0.7528706
1
Function : PclZipUtilTranslateWinPath() Description : Translate windows path by replacing '\' by '/' and optionally removing drive letter. Parameters : $p_path : path to translate. $p_remove_disk_letter : true | false Return Values : The path translated.
Функция : PclZipUtilTranslateWinPath() Описание : Переводит пути Windows, заменяя '\' на '/' и по желанию удаляя букву диска. Параметры : $p_path : путь для перевода. $p_remove_disk_letter : true | false Значения возвращаемые : Переведенный путь.
function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) { if (stristr(php_uname(), 'windows')) { // ----- Look for potential disk letter if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { $p_path = substr($p_path, $v_position+1); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter = \\true)\n {\n }", "static public function ConvertToNativePath($path) {\n if (stripos(ApplicationProcess::$PlatformInfo['platform'], 'win') !== FALSE) {\n return str_replace('/', '\\\\', $path);\n } else {\n ...
[ "0.8195347", "0.6082577", "0.57559174", "0.55540353", "0.52970845", "0.52895075", "0.52168447", "0.5189461", "0.51889265", "0.51837575", "0.51815856", "0.5168656", "0.5150407", "0.5102495", "0.5056021", "0.5034335", "0.50284165", "0.49800298", "0.49788728", "0.4941864", "0.49...
0.8455233
0
Prepare routes Ensure no duplicate routes, determine what named routes are available, and determine which routes respond to which methods.
Подготовьте маршруты. Убедитесь, что нет дублирующихся маршрутов, определите, какие именованные маршруты доступны, и определите, какие маршруты отвечают за какие методы.
protected function prepareRoutes () { foreach ($this->routes as $index => $route) { $this->registerNamedRoute($route); $this->registerRouteMethods($route, $index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function load_routes() {\n\n // 1. plugins routes\n foreach($this->context->plugins() as $plugin) {\n \n if(false === $plugin->is_type('IRoutesPlugin')) continue;\n\n foreach($plugin->routes() as $route_value) {\n $this->routes[]= $route_value;\n }\n }\n\n // 2. confi...
[ "0.66179216", "0.6609761", "0.6593632", "0.6564523", "0.65294874", "0.6499746", "0.6484968", "0.6484048", "0.6474604", "0.64569664", "0.64067405", "0.6346816", "0.63245", "0.6313963", "0.63036186", "0.6293164", "0.6214971", "0.6213926", "0.6203458", "0.6200525", "0.61942786",...
0.82676107
0
se trae todo de la tabla usuario_credencial
извлекается всё из таблицы usuario_credencial
static public function getUsuario_credencial() { try { $sql = 'SELECT usuario_credencial.id, usuario_credencial.usuario_id, usuario_credencial.credencial_id FROM usuario_credencial'; return dataBaseClass::getInstance()->query($sql)->fetchAll(PDO::FETCH_ASSOC); } catch (PDOExcepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getcredencial() {\n try {\n $sql = 'SELECT credencial.id, credencial.nombre FROM credencial';\n return dataBaseClass::getInstance()->query($sql)->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n return $e;\n }\n }", "publi...
[ "0.6551575", "0.6538795", "0.63728184", "0.63444823", "0.6286748", "0.6265796", "0.61967033", "0.61354136", "0.61309534", "0.6122019", "0.60914016", "0.6072015", "0.5984797", "0.5966875", "0.5944398", "0.5934195", "0.59301597", "0.5928702", "0.59220296", "0.5920137", "0.59066...
0.72791857
0
Get activity for a given tag
Получить активность для заданного тега
public function getActivityForTag($tag) { $response = $this->doRequest("get", "activities?query=$tag&key=" . $this->getKey()); $transformer = new GooglePlusTransformer; $transformedData = $transformer->transformCollection($response["items"]); return $transformedData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($tag)\n {\n $tag = Tag::where('slug', $tag)->firstOrFail();\n return $tag;\n }", "public function getTag($tag){\n\t\tif(is_string($tag)){\n\t\t\t$query = Queries::gettagbyname($tag);\n\t\t}else{\n\t\t\t$query = Queries::gettagbyid($tag);\n\t\t}\n\t\t$singletag = $this->qu...
[ "0.58531845", "0.58378965", "0.581559", "0.57046473", "0.5685892", "0.56813085", "0.55969286", "0.55405116", "0.55068046", "0.5506692", "0.55053794", "0.55053794", "0.54772526", "0.5476143", "0.54678273", "0.5454178", "0.5436571", "0.5428959", "0.5374405", "0.53487635", "0.53...
0.7395804
0
Gets the current Browscap release time stamp (or 0 if not available)
Получает текущий временной штамп выпуска Browscap (или 0, если он недоступен)
public function getReleaseTime();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentTime() {\n $timestamp = $this->getInfo();\n $http_code = $timestamp->code;\n $current_time = 'Time not set yet';\n if ($http_code == 200) {\n $current_time = date('H:i', $timestamp->data->date->timestamp);\n }\n return $current_time;\n }", "public...
[ "0.62254405", "0.6207653", "0.61964417", "0.6189617", "0.617004", "0.60855025", "0.60839814", "0.6044101", "0.6012151", "0.6007037", "0.5983887", "0.5983239", "0.59798235", "0.5971161", "0.596282", "0.5957784", "0.59309745", "0.59243965", "0.59235877", "0.5913385", "0.5906157...
0.72160715
0
Checks a given URL (+shortened) against the cache to verify if they were previously posted on the channel.
Проверяет заданный URL (сокращённый) в соответствие с кэшем, чтобы убедиться, что они ранее были опубликованы в канале.
protected function checkUrlCache($url, $shortenedUrl) { $source = $this->getEvent()->getSource(); /** * Transform the URL (+shortened) into a HEX CRC32 checksum to prevent potential problems * and minimize the size of the cache for less cache bloat. */ $url = $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_cache ( $url ) {\n $this->ERROR = \"\";\n $filename = $this->file_name( $url );\n \n if ( file_exists( $filename ) ) {\n // find how long ago the file was added to the cache\n // and whether that is longer then MAX_AGE\n $mtime = filemtime...
[ "0.68257624", "0.6508006", "0.6501219", "0.63633126", "0.61448187", "0.6112615", "0.6023871", "0.60218686", "0.6011155", "0.60066533", "0.59906745", "0.5961047", "0.5960294", "0.5917109", "0.59137493", "0.5910826", "0.5894025", "0.5880164", "0.5879324", "0.5875243", "0.586532...
0.76953876
0
Updates the cache and adds the given URL (+shortened) to the cache. It also handles cleaning the cache of old entries as well.
Обновляет кэш и добавляет заданный URL (сокращённый) в кэш. Также обрабатывает очистку кэша от старых записей.
protected function updateUrlCache($url, $shortenedUrl) { $source = $this->getEvent()->getSource(); /** * Transform the URL (+shortened) into a HEX CRC32 checksum to prevent potential problems * and minimize the size of the cache for less cache bloat. */ $url = $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateCache();", "protected function checkUrlCache($url, $shortenedUrl)\n {\n $source = $this->getEvent()->getSource();\n\n /**\n * Transform the URL (+shortened) into a HEX CRC32 checksum to prevent potential problems\n * and minimize the size of the cache for le...
[ "0.6608446", "0.6278341", "0.6144913", "0.5926656", "0.58164644", "0.5784135", "0.57787734", "0.5744984", "0.57012725", "0.5697245", "0.5671027", "0.56335133", "0.55394197", "0.5539139", "0.55320364", "0.55090314", "0.5462291", "0.5461335", "0.5404066", "0.5392619", "0.538935...
0.77171725
0
Takes a url, parses and cleans the URL without of all the junk and then return the hex checksum of the url.
Принимает URL, парсит и очищает его от всех лишних символов, а затем возвращает хеш-сумму URL.
protected function getUrlChecksum($url) { $checksum = strtolower(urldecode($this->glueUrl($url, true))); $checksum = preg_replace('#\s#', '', $this->decodeTranslit($checksum)); return dechex(crc32($checksum)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_url_hash( $url ) {\n\treturn md5( strtolower( $url ) );\n}", "public function createHashFromUrl($url)\n {\n return md5(str_replace($this->getStartUrl(), '', $this->convertToAbsoluteUrl($url)));\n }", "private function getHash($url){\r\n return $url;\r\n }", "function HashURL($St...
[ "0.68698514", "0.66342366", "0.6593875", "0.60462666", "0.6035789", "0.5981841", "0.59646004", "0.58783644", "0.58773476", "0.5870437", "0.5859463", "0.5829297", "0.5811198", "0.580112", "0.573129", "0.57195884", "0.5682166", "0.5643051", "0.561329", "0.55894494", "0.55434036...
0.8156651
0
Parses a given URI and then glues it back together in the proper format. If base is set, then it chops off the scheme, user and pass and fragment information to return a more unique base URI.
Разбирает заданный URI, а затем собирает его снова в правильном формате. Если задано base, то удаляется информация о схеме, пользователе, пароле и фрагменте, чтобы вернуть более уникальный базовый URI.
protected function glueUrl($uri, $base = false) { $parsed = $uri; if (!is_array($parsed)) { $parsed = $this->parseUrl($parsed); } if (is_array($parsed)) { $uri = ''; if (!$base) { $uri .= (!empty($parsed['scheme']) ? $parsed['schem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function parse($URI, array $baseURI = array('scheme' => '', 'path' => '', 'query' => array()));", "public function baseOn(Uri $base) {\n $uri = null;\n if($base->isRelativeUri()) {\n throw new UriException(\"Can't base $this against $base. Invalid base URI\");\n }\n if($this->isAbs...
[ "0.72529346", "0.69600713", "0.66593766", "0.6465936", "0.64247525", "0.61623853", "0.61467266", "0.613504", "0.6108716", "0.6092333", "0.60694575", "0.6047797", "0.60277903", "0.59586114", "0.5943494", "0.59247595", "0.59201056", "0.58803624", "0.58273524", "0.57992107", "0....
0.7513088
0
self::$engine = new Outline(array(
self::$engine = new Outline(array(
public static function init() { // 'trace_callback' => array(__CLASS__, 'trace') // )); self::$engine = new Outline(array( 'quiet' => true, 'plugins' => array('system', 'custom') )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\r\n {\r\n //$this->getRender();\r\n }", "function __construct() {\n //var_dump($this);\n // Quantum\\Output::initSmarty();\n }", "public function paper() {\n\t}", "public function __construct()\n {\n $this->_out = new ConsoleOutput();\n ...
[ "0.5780506", "0.57360226", "0.5654987", "0.5641466", "0.56384337", "0.56384337", "0.5636053", "0.5636053", "0.5636053", "0.5636053", "0.5636053", "0.5636053", "0.5636053", "0.5602168", "0.5597355", "0.5595825", "0.5593751", "0.5571597", "0.5571597", "0.5557364", "0.5548901", ...
0.77160525
0
Verify if the customer have a service, if have it return the subscription if not, return false
Проверьте, есть ли у клиента услуга, если есть, верните подписку, если нет, верните false
public function existSubscription(Users $customer, Services $service) { $subscription = Subscriptions::where([ 'user_id' => $customer->id, 'service_id' => $service->id ])->orderBy('id', 'desc')->first(); return $subscription?$subscription:false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isServiceEligibleForChargeGeneration()\n\t{\n\t\tif ($this->service == null)\n\t\t{\n\t\t\tthrow new Exception_Assertion(\"RecurringCharge is not associated with a service, yet the 'isServiceEligibleForChargeGeneration' test was called\", \"RecurringCharge:\\n\". print_r($this, true));\n\t\t}\n\t\t...
[ "0.65304476", "0.6457356", "0.63068044", "0.62310135", "0.62173474", "0.61917734", "0.6175343", "0.6046784", "0.60284257", "0.6021902", "0.6015195", "0.598097", "0.59722286", "0.5959279", "0.5955133", "0.594156", "0.5935755", "0.59256643", "0.59143835", "0.5905632", "0.590296...
0.7572341
0
create and save a Subscriptions object
создать и сохранить объект Subscriptions
public function save(array $data) { $subscription = new Subscriptions(); $subscription->user()->associate($data['customer']); $subscription->service()->associate($data['service']); $subscription->status()->associate($data['status']); $subscription->status_change = $data['date']; if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSubscription($request);", "function createNewSubscription(array $data){\nreturn $this->post($data, \"/subscription\");\n}", "function create_subscription($subscription) {\n\n // Get codeigniter object instance\n $CI = &get_instance();\n\n // Try to save the subscripti...
[ "0.69697785", "0.69102764", "0.68853533", "0.66784495", "0.66161114", "0.6583459", "0.6570644", "0.65435743", "0.65413535", "0.65161484", "0.64982486", "0.6373992", "0.63427186", "0.6335825", "0.6250374", "0.61837685", "0.60343987", "0.60318375", "0.60266304", "0.602433", "0....
0.75852424
0
Return the count of Subscriptions of the given date
Верните количество подписок заданной даты
public function getSubscriptions($date) { $start = $date . ' 00:00:00'; $end = $date . ' 23:59:59'; return $this->countByDate($start, $end, 'subscribe'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listSubscriptionsCount($request);", "public function getUnsubscriptions($date) {\n $start = $date . ' 00:00:00';\n $end = $date . ' 23:59:59';\n \n return $this->countByDate($start, $end, 'unsubscribe');\n }", "public function countByDate($start, $end, $status) {\n $subscription...
[ "0.7018379", "0.68194664", "0.676039", "0.67266244", "0.6664083", "0.6583007", "0.6468495", "0.6431165", "0.6101073", "0.60732776", "0.6034024", "0.60147303", "0.5972687", "0.59511733", "0.58899456", "0.5857489", "0.579757", "0.57090515", "0.5671492", "0.56495816", "0.5646544...
0.7997402
0
Return the count of UnSubscriptions of the given date
Верните количество UnSubscriptions заданной даты
public function getUnsubscriptions($date) { $start = $date . ' 00:00:00'; $end = $date . ' 23:59:59'; return $this->countByDate($start, $end, 'unsubscribe'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubscriptions($date) {\n $start = $date . ' 00:00:00';\n $end = $date . ' 23:59:59';\n return $this->countByDate($start, $end, 'subscribe');\n }", "public function listSubscriptionsCount($request);", "public function listSubscriptionsCount($request)\n {\n //require_once (...
[ "0.71726215", "0.6518837", "0.64428514", "0.6274555", "0.5863989", "0.5832366", "0.5791832", "0.5775906", "0.5755926", "0.5737207", "0.5657237", "0.56538695", "0.5619156", "0.5413443", "0.537008", "0.53649724", "0.5357264", "0.53524315", "0.5331553", "0.5315431", "0.5315427",...
0.81261224
0
Return the quantity of subscription by date range and status
Верните количество подписок по диапазону дат и статусу
public function countByDate($start, $end, $status) { $subscriptions = Subscriptions::query() ->whereHas('status', function($query) use ($status) { $query->where('status', '=', $status); }) ->where('status_change', '>=', $start) ->where('status_change', '<=', $end)->coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubscriptions($date) {\n $start = $date . ' 00:00:00';\n $end = $date . ' 23:59:59';\n return $this->countByDate($start, $end, 'subscribe');\n }", "function get_acquisition_qty_by_country(){\n \n $from_date = $_REQUEST['from_date'];\n $to_date = $_REQUEST['to_date'];\n\n ...
[ "0.5899732", "0.58817405", "0.58522403", "0.5812131", "0.56369895", "0.56112957", "0.56044686", "0.5527279", "0.552243", "0.54516494", "0.54205453", "0.53753763", "0.5312676", "0.5310503", "0.52964604", "0.52808183", "0.5245231", "0.5241964", "0.52341026", "0.5209294", "0.516...
0.7042926
0
Return the subscriptions actives until the date
Верните активные подписки до указанной даты
public function getActives($date) { $start = $date . ' 23:59:59'; $subscriptionsAll = DB::table('subscriptions') ->select(DB::raw('MAX(id) as id')) ->where('status_change', '<=', $start) ->groupBy('user_id'); $subscriptionsActives = DB::table('subscriptions') ->join('sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubscriptions();", "public function getSubscriptions($date) {\n $start = $date . ' 00:00:00';\n $end = $date . ' 23:59:59';\n return $this->countByDate($start, $end, 'subscribe');\n }", "public function getUnsubscriptions($date) {\n $start = $date . ' 00:00:00';\n $end = $dat...
[ "0.66632944", "0.6589575", "0.6134781", "0.5993504", "0.59667075", "0.57656205", "0.57263356", "0.5683748", "0.56169564", "0.5556296", "0.5554506", "0.54950726", "0.54950726", "0.5491688", "0.54827684", "0.5453369", "0.5443998", "0.54273427", "0.5407857", "0.5401976", "0.5400...
0.71486044
0
funcion para agregar la extencion al nombre que tentra la imagen
функция для добавления расширения к имени файла изображения
public function agregarExtencionImagen($nombreImagen,$tipo_imagen){ $nuevoNombreImagen=$nombreImagen; if ($tipo_imagen=='image/jpeg') { $nuevoNombreImagen.='.jpg'; }else if($tipo_imagen=='image/gif'){ $nuevoNombreImagen.='.gif'; }else if($tipo_imagen=='image/png'){ $nuevoNombreImagen.='.png'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ImageExt($filename){\n \n $size = getimagesize($filename);\nif($size==FALSE){\n $er=''; \n\n}else{\n $ext=explode(\"/\", $size['mime']);\n $er=$ext[1]; \n}\nreturn $er;\n}", "function getExtension($imagem)\n {\n // isso para obter o mime-type da imagem.\n $mime= getimagesize...
[ "0.6553577", "0.6254514", "0.6238906", "0.62154686", "0.6092499", "0.6092384", "0.5937541", "0.5937341", "0.592293", "0.5911647", "0.59102917", "0.58781826", "0.5863148", "0.5859487", "0.5807655", "0.580713", "0.5806389", "0.5779305", "0.5768415", "0.57635784", "0.57521063", ...
0.7043146
0
Returns count of skipped
Возвращает количество пропущенных
public function getSkipped(): int { return $this->skipped; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSkippedCount()\n {\n $skipped = $this->_skippedRowCount;\n $this->_skippedRowCount = 0;\n return $skipped;\n }", "public function getNumberOfSkips()\r\n {\r\n return $this->number_of_skips;\r\n }", "public function getNumberOfSkips()\n {\n re...
[ "0.8499571", "0.78994817", "0.78348833", "0.756344", "0.7374985", "0.731575", "0.72401017", "0.69237155", "0.6787928", "0.6689184", "0.6662737", "0.66354936", "0.6573794", "0.6551956", "0.64745724", "0.6454548", "0.6434167", "0.6373999", "0.6308891", "0.6295752", "0.62903833"...
0.8410789
1
Returns count of scheduled
Возвращает количество запланированных
public function getScheduled(): int { return $this->scheduled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function taskCount(): int {}", "public function getTaskCount()\n {\n return $this->count(self::_TASK);\n }", "public function count()\n {\n try {\n return $this->col->count($this->taskModel->buildAvailableTaskFilter());\n } catch (MongoException $e) {\n ...
[ "0.69175875", "0.68645644", "0.6786082", "0.6781547", "0.6614889", "0.6590773", "0.6468684", "0.6436884", "0.64361066", "0.6409045", "0.63885623", "0.63725996", "0.6347941", "0.6334817", "0.6326607", "0.6310556", "0.6299576", "0.6291156", "0.6282632", "0.62673384", "0.6235163...
0.7213617
0
Returns count of duplicates
Возвращает количество дубликатов
public function getDuplicates(): int { return $this->duplicates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function duplicateCount() {\n try {\n $duplicates = $this->database->query(\n \"select wsd.value as uid,\n ws.entity_id,\n count(*) as duplicates\n from {webform_submission} ws\n left join {webform_submission_data} wsd on ws.sid = wsd....
[ "0.76839983", "0.74748003", "0.72041047", "0.6784898", "0.6569601", "0.6497616", "0.64509475", "0.63888025", "0.62175274", "0.61825716", "0.61716753", "0.6123609", "0.6011838", "0.5877411", "0.58687747", "0.58491856", "0.5810578", "0.57857054", "0.5742351", "0.57412666", "0.5...
0.78392875
0
Returns count of created
Возвращает количество созданного
public function getCreated(): int { return $this->created; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimeCreated(): int\n {\n return (int) $this->_getEntity()->getTimeCreated();\n }", "public static function count()\n\t{\n\t\treturn self::new_instance_records()->count();\n\t}", "public function getCreated() {}", "public function getCreated() {}", "public function count() {}...
[ "0.72384596", "0.7037134", "0.7036003", "0.7036003", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69719964", "0.69715446", "0.69715446", "0.68810284", "0.68810284", "0.68600476", ...
0.7765218
0
Returns count of deleted
Возвращает количество удаленных
public function getDeleted(): int { return $this->deleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function countDeletedLines()\n {\n }", "public function trashCount()\n\t{\n\t return $this->blog->onlyTrashed()->count();\n\t}", "public function getDeleted();", "static final public function count_users_to_undelete() {\n global $CFG, $DB;\n $params = array('confirmed' => 1, 'd...
[ "0.7784568", "0.7220402", "0.7101939", "0.7100366", "0.6898759", "0.6898759", "0.6858003", "0.6857676", "0.68393046", "0.6755767", "0.668429", "0.6672652", "0.66209525", "0.6599011", "0.65963244", "0.6594029", "0.6584001", "0.6566844", "0.65584314", "0.6545398", "0.6542109", ...
0.75695574
1
Create request for operation 'retrieveAllLoanCharges'
Создать запрос для операции 'retrieveAllLoanCharges'
protected function retrieveAllLoanChargesRequest($loanId) { // verify the required parameter 'loanId' is set if ($loanId === null || (is_array($loanId) && count($loanId) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $loanId when calling re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function retrieveLoanChargeRequest($loanId, $chargeId)\n {\n // verify the required parameter 'loanId' is set\n if ($loanId === null || (is_array($loanId) && count($loanId) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $loan...
[ "0.5849542", "0.5822731", "0.5612755", "0.5574077", "0.5452209", "0.5374262", "0.53588057", "0.5338362", "0.53357756", "0.5312534", "0.5270238", "0.52597135", "0.52595764", "0.52452433", "0.51544935", "0.51267517", "0.51157045", "0.51121885", "0.51028806", "0.5098837", "0.508...
0.7412027
0
Operation retrieveTemplate8WithHttpInfo Retrieve Loan Charges Template
Операция retrieveTemplate8WithHttpInfo Получить шаблон кредитных сборов
public function retrieveTemplate8WithHttpInfo($loanId) { $returnType = '\Frengky\Fineract\Model\GetLoansLoanIdChargesTemplateResponse'; $request = $this->retrieveTemplate8Request($loanId); try { $options = $this->createHttpClientOption(); try { $respo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveTemplate8AsyncWithHttpInfo($loanId)\n {\n $returnType = '\\Frengky\\Fineract\\Model\\GetLoansLoanIdChargesTemplateResponse';\n $request = $this->retrieveTemplate8Request($loanId);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOpti...
[ "0.64297646", "0.6168995", "0.5939627", "0.5695345", "0.5317796", "0.5165267", "0.5145868", "0.5141278", "0.50928754", "0.50928754", "0.50928754", "0.50928754", "0.50928754", "0.50928754", "0.50021213", "0.4958478", "0.49457037", "0.48911807", "0.48886204", "0.4881844", "0.48...
0.7152458
0
Does page have children?
Есть ли у страницы дочерние элементы?
function has_children(){ global $post; $pages = get_pages('child_of='.$post->ID); return count($pages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function cws_has_children() {\n\t\tglobal $post;\n\n\t\t$children = get_pages( array( 'child_of' => $post->ID ) );\n\n\t\tif ( count( $children ) == 0 ) {\n\n\t\t\treturn false;\n\n\t\t} else {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t}", "final public function hasChildren(): bool\n {\n return $this-...
[ "0.8533047", "0.83497554", "0.828461", "0.819148", "0.8174808", "0.81294906", "0.81294805", "0.81294805", "0.81294805", "0.81294805", "0.8128217", "0.8128217", "0.8128217", "0.8128217", "0.8078419", "0.8039335", "0.79044294", "0.78178585", "0.78178585", "0.78072685", "0.77305...
0.84215575
1
Display the one or all sensors for a specific room. If $sensor = 'all' then all sensor data for a room will be returned.
Показать один или все датчики для конкретной комнаты. Если $sensor = 'all', то будут возвращены все данные датчиков для комнаты.
public function showSensor($roomID, $sensor = 'all') { $room = Room::where('internal_id', '=', strtoupper($roomID))->first(); if (empty($room)) { return response()->json('Invalid parameter data', 400); } $data = $room->averageSensorData; if(empty($data)) { retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logger_sensor_edition_page($meter = NULL) {\n\n if ($meter) {\n //TODO: use logger_get_sensors\n $query = db_select('logger_meters', 'm')\n ->fields('m', array('device', 'meter', 'external_id', 'type', 'function', 'forecast', 'latitude', 'longitude', 'virtual', 'price'))\n ->condition('m....
[ "0.6144668", "0.60963595", "0.587241", "0.5818134", "0.5676918", "0.5676918", "0.5676918", "0.5676918", "0.5676918", "0.5537027", "0.5472728", "0.54001594", "0.5385614", "0.5375129", "0.536198", "0.5337384", "0.5330387", "0.52924687", "0.5249467", "0.5235536", "0.52333087", ...
0.7438389
0
Utilizada para bloquear una unidad y no se pueda editar
Используется для блокировки единицы, чтобы она не могла быть редактирована
public function bloquear($id) { $unidad = Propiedad::find($id); $unidad->editable = 0; $unidad->save(); return redirect('unidad/'.$unidad->id_des.'/edit'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bloqueosCambiar(){\n global $tsCore, $tsUser;\n //\n $auser = $tsCore->setSecure($_POST['user']);\n $bloquear = empty($_POST['bloquear']) ? 0 : 1;\n // EXISTE?\n $exists = $tsUser->getUserName($auser);\n // SI EXISTE Y NO SOY YO\n if($exists && $tsUs...
[ "0.7382277", "0.6650284", "0.66497594", "0.65766525", "0.6434575", "0.6313588", "0.59106237", "0.5844072", "0.5689901", "0.566079", "0.5630497", "0.56064236", "0.55937827", "0.55827874", "0.5580231", "0.5570324", "0.5569003", "0.5545102", "0.55361664", "0.55345404", "0.551923...
0.72491664
1
list users MySQL query SELECT FROM users ORDER BY date_add DESC
список пользователей MySQL запрос SELECT FROM users ORDER BY date_add DESC
public function listUsers() { $query = new Query(); $rows = $query->select(['id', 'name']) ->from('users') ->orderBy(['date_add' => SORT_DESC]) ->all(); return $rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetch_all_users() {\n global $pdo;\n\n $query = $pdo->prepare(\"SELECT * FROM users ORDER BY CAST(date_register AS DATE) DESC\");\n $query -> execute();\n return $query->fetchAll(\\PDO::FETCH_ASSOC);\n }", "public function get_user_list() {\n\n $sql = \" SELECT u...
[ "0.7156888", "0.685712", "0.661211", "0.6522018", "0.6407215", "0.64020544", "0.64017963", "0.63737047", "0.6368454", "0.63643134", "0.62656456", "0.62536055", "0.62505805", "0.6221944", "0.62129337", "0.6202945", "0.6201542", "0.617151", "0.6145882", "0.6143127", "0.61419576...
0.730095
0
Test Generate Without Arguments Make sure a key was generated
Тест Генерация Без Аргументов Убедитесь, что был сгенерирован ключ
public function testGenerateWithoutArguments() { $key = Keys::Generate(); $this->assertNotEquals(FALSE, $key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_generate_key_random()\n {\n $key1 = GuestToken::generate_key();\n $key2 = GuestToken::generate_key();\n $this->assertNotEquals($key1, $key2);\n }", "abstract protected function generateKey();", "public function test_generate_key()\n {\n $key = GuestToke...
[ "0.75657904", "0.7433123", "0.7387133", "0.7009535", "0.6861473", "0.6859691", "0.68158996", "0.6762322", "0.6761626", "0.6689959", "0.66504055", "0.6626176", "0.6626176", "0.6626176", "0.6626176", "0.6626176", "0.66261685", "0.66261685", "0.66130364", "0.6607594", "0.6595343...
0.8426146
0
Shortcut to construct a new decimal.
Сокращение для построения нового десятичного числа.
function decimal(...$args) { return new Decimal(...$args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function decimal() {}", "public function __construct($decimal = 2)\n {\n $this->decimal = $decimal;\n }", "public function getDecimal(?int $precision, ?int $scale, bool $isNullable): IDecimalTypeReference\n {\n // Facet values may render this reference as semantically inval...
[ "0.72500104", "0.6343888", "0.5539762", "0.54940903", "0.5451105", "0.5368434", "0.5360783", "0.53499514", "0.53195226", "0.52772754", "0.52534944", "0.5188222", "0.51822937", "0.51765996", "0.5115331", "0.5081042", "0.50691545", "0.506376", "0.50355995", "0.50355995", "0.503...
0.7816078
0
Get csv file with attributes and return array
Получить файл csv с атрибутами и вернуть массив
public function get_CSV_Attr() { $handle = fopen("./tables/attributes.csv", "r"); $first_row = true; $final_ata = array(); $headers = array(); while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { if($first_row) { $headers = $data; $first_row = false; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function read_csv()\n {\n return array_map('str_getcsv', file($this->filename));\n ////OR\n // $handle = fopen('$this->filename', 'r');\n // $contacts = [];\n // while(!feof($handle)) {\n // $contacts[] = fgetcsv($handle);\n // }\n // fclose($hand...
[ "0.7020307", "0.69592434", "0.6877291", "0.68373924", "0.6747223", "0.67065686", "0.6703759", "0.6660884", "0.6597874", "0.6597417", "0.6561454", "0.6514898", "0.6493267", "0.6474082", "0.6422211", "0.6410565", "0.6395633", "0.6393754", "0.6385996", "0.63783044", "0.6364973",...
0.7754708
0
Get csv wit combat techniques and return as array
Получить csv с техниками боя и вернуть как массив
public function get_CSV_Combat(){ $handle = fopen("combatTable.csv", "r"); $first_row = true; $final_ata = array(); $headers = array(); while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { if($first_row) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_CSV_Tal()\n\t\t {\n\n $handle = fopen(\"./tables/talents.csv\", \"r\");\n \n $first_row = true;\n $final_ata = array();\n $headers = array();\n \n while (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) \n\t\t\t{ \n ...
[ "0.6368188", "0.62423724", "0.6214539", "0.60844857", "0.60752565", "0.6030114", "0.6015771", "0.6011334", "0.59913576", "0.593175", "0.5904596", "0.58775413", "0.5838528", "0.5838528", "0.583056", "0.5819462", "0.581092", "0.5793326", "0.5790744", "0.5779395", "0.57736945", ...
0.723171
0
$query = 'SELECT FROM `notice_board` ORDER BY date DESC';
$query = 'SELECT FROM `notice_board` ORDER BY date DESC';
public function notice_board(){ $query = 'SELECT * FROM `notice_board` WHERE DATE(date) = DATE(NOW()) ORDER BY created_at ASC'; $sql = $this->db->query($query); return $sql->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newsItem_BacaDataListing_Terkini_All( $tbl_news ){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news ORDER BY urutan DESC, timeunix DESC \");\n\treturn $sql;\n}", "function news_view_sql()\n {\n \t$news_view=mysqli_query($this->con,\"SELECT * FROM `news` order by id desc\");\n \treturn $news_view...
[ "0.6263882", "0.6216914", "0.61992437", "0.61286384", "0.6013481", "0.6012708", "0.59233564", "0.5909981", "0.5909645", "0.5862026", "0.58152777", "0.5811794", "0.57975614", "0.57936347", "0.57560056", "0.5732142", "0.569112", "0.56905854", "0.567527", "0.56547374", "0.564849...
0.74859244
0
Get the root node name. Just the unqualified classname.
Получите имя корневого узла. Просто имя класса без квалификации.
public static function getRootNodeName() { return 'SuperFund'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRootClassName(): ?string\n {\n return $this->get(self::ROOT_CLASS_NAME);\n }", "protected static function getNode() {\r\n if (!$namespace = static::getNamespace()) {\r\n return static::$node;\r\n }\r\n return camelTo_(substr(get_called_class(), strl...
[ "0.7213398", "0.67008704", "0.6499949", "0.64484864", "0.6420151", "0.641196", "0.63837075", "0.638001", "0.6361585", "0.629289", "0.6236057", "0.62314606", "0.62137794", "0.621167", "0.6190429", "0.6165464", "0.6149549", "0.6137815", "0.61248803", "0.610953", "0.60939306", ...
0.71471065
1
Update telegram chat id | method: PUT | host:port/user/telegram
Обновление telegram chat id | метод: PUT | host:port/user/telegram
public function updateTelegramChatId(Request $request) { $valid = $request->validate([ 'chat_id' => 'nullable|numeric', ]); $telegram = Telegram::where('user_id', Auth::id())->first(); if ($telegram == null) { $telegram = new Telegram(); } $tele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, Chat $chat)\n {\n //\n }", "public function update(Request $request, Chat $chat)\n {\n //\n }", "public function update(Request $request, Chat $chat)\n {\n //\n }", "public function updatechat($id){\n// $online_frends = $t...
[ "0.6920212", "0.6920212", "0.6920212", "0.65390193", "0.6534375", "0.6534375", "0.6534375", "0.6534375", "0.642622", "0.6321113", "0.6235875", "0.6145444", "0.6145444", "0.61336017", "0.6123144", "0.60900617", "0.59498024", "0.59498024", "0.59414124", "0.59087664", "0.5898543...
0.77239573
0
Creates a new InstructionDisposal model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект InstructionDisposal. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $this->layout = 'blank'; $model = new InstructionDisposal(); $model->scenario = 'create'; if ($model->load(Yii::$app->request->post())) { $model->id_modul = $this->id_modul; $model->status_listing = 50; if (isset...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n\t\t$idInstitucion = $_SESSION['instituciones'][0];\n $model = new InfraestructuraEducativa();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\t\n\t\t$sedes = $...
[ "0.6661194", "0.6593024", "0.65900934", "0.65835935", "0.65759", "0.64894766", "0.64740384", "0.63763165", "0.63127685", "0.6310554", "0.6302974", "0.6292884", "0.62752014", "0.62710226", "0.62571156", "0.62565273", "0.6254305", "0.62484354", "0.6236861", "0.6227768", "0.6222...
0.72469723
0
Finds the InstructionDisposal model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
Находит модель InstructionDisposal по значению первичного ключа. Если модель не найдена, будет выброшено исключение HTTP 404.
protected function findModel($id) { if (($model = InstructionDisposal::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function findModel($id)\n\t{\n\t\tif (($model = Operation::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t\t}\n\t}", "public function loadModel($id) {\n $model = MissionCarers::model()->findByPk($id);...
[ "0.6154631", "0.61100966", "0.6077804", "0.60775614", "0.6038117", "0.603458", "0.6023294", "0.5989065", "0.5974688", "0.5970791", "0.5957636", "0.5957634", "0.59547293", "0.5952233", "0.59454983", "0.59425837", "0.5941181", "0.5936054", "0.5935096", "0.5932709", "0.5917266",...
0.7005465
0
Registers the auto loader. Return TRUE if the autoloader has been successful registered, return FALSE otherwise.
Зарегистрировать автозагрузчик. Вернуть TRUE, если автозагрузчик успешно зарегистрирован, и FALSE в противном случае.
public function registerAutoloader() { if (!$this->isLoaderRegistered()) { $this->_loaderRegistered = spl_autoload_register(array($this, 'loadClass')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function register_autoloader()\n {\n }", "protected static function register()\n {\n if (!self::$registered) {\n // set up __autoload\n $autoload = spl_autoload_functions();\n spl_autoload_register('PEAR2\\Autoload::load')...
[ "0.7192384", "0.71321654", "0.69765234", "0.66884285", "0.6552095", "0.65422755", "0.6526248", "0.65252787", "0.64992225", "0.6413237", "0.63756436", "0.63403624", "0.6308047", "0.6281787", "0.62586975", "0.6257429", "0.62474185", "0.6155451", "0.6143017", "0.6128421", "0.611...
0.72044563
0
Determines whether the autoloader is registered or not.
Определяет, зарегистрирован ли автозагрузчик или нет.
public function isLoaderRegistered() { return $this->_loaderRegistered; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _isRegistered()\n {\n $autoloader = Zend_Loader_Autoloader::getInstance();\n $registeredAutoloaders = $autoloader->getAutoloaders();\n\n foreach ($registeredAutoloaders as $registered) {\n if (is_array($registered) && $registered[0] == 'P4Cms_Loader') {\n ...
[ "0.8173019", "0.7306374", "0.7131834", "0.69914645", "0.6988694", "0.6839002", "0.6705686", "0.66051424", "0.6584698", "0.65538526", "0.6520343", "0.6472422", "0.64249665", "0.6419184", "0.63583773", "0.6310877", "0.6284166", "0.627425", "0.6249364", "0.62490046", "0.62020844...
0.75993013
1
Check if showspace_do_redirect_after_activation option has been set
Проверьте, задан ли параметр showspace_do_redirect_after_activation
function showspace_redirect_after_activation() { if (get_option('showspace_do_redirect_after_activation', false)) { delete_option('showspace_do_redirect_after_activation'); wp_redirect(admin_url('options-general.php?page=showspace-settings')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function seed_csp4_welcome_screen_do_activation_redirect() {\r\n if ( ! get_transient( '_seed_csp4_welcome_screen_activation_redirect' ) ) {\r\n return;\r\n }\r\n\r\n // Delete the redirect transient\r\n delete_transient( '_seed_csp4_welcome_screen_activation_redirect' );\r\n\r\n // Bail if activating fr...
[ "0.7135909", "0.68118936", "0.66843355", "0.6634701", "0.6524979", "0.6453554", "0.6352207", "0.6323343", "0.6323145", "0.6230358", "0.6121632", "0.6025146", "0.6019209", "0.6014961", "0.5980857", "0.5976878", "0.59750444", "0.59082204", "0.58589864", "0.5843979", "0.5835229"...
0.7844448
0
Creates a form to delete a personal entity.
Создает форму для удаления личного сущности.
private function createDeleteForm(Personal $personal) { return $this->createFormBuilder() ->setAction($this->generateUrl('personal_delete', array('idpersonal' => $personal->getIdpersonal()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Person $person)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('users_delete', array('id' => $person->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Phpp...
[ "0.7304171", "0.72419614", "0.7207789", "0.7085513", "0.6951759", "0.6951739", "0.68626094", "0.68052626", "0.66911334", "0.6670202", "0.6657682", "0.66450024", "0.6611541", "0.65843695", "0.65828985", "0.6573903", "0.65618867", "0.6555775", "0.6551509", "0.65412897", "0.6538...
0.76667297
0
Test case for projectAssignmentsArchive .
Тестовый случай для проекта проектAssignmentsArchive.
public function testProjectAssignmentsArchive() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsUnarchive()\n {\n }", "public function testProjectAssignmentsRead()\n {\n }", "public function testProjectAssignmentsSave()\n {\n }", "public function testProjectAssignments() {\n\t\t$api = $this->getApiMock();\n\n\t\t$this->assertInstanceOf( ProjectAss...
[ "0.8224578", "0.730587", "0.70859957", "0.67613244", "0.67201954", "0.66013736", "0.6555453", "0.6330373", "0.62824535", "0.58579654", "0.57859826", "0.5727894", "0.5593889", "0.55741", "0.552144", "0.544939", "0.5341085", "0.5329258", "0.53195566", "0.5300242", "0.5296014", ...
0.9097708
0
Test case for projectAssignmentsDefineNew Defines a new projectAssignment instance, without saving it..
Тест-кейс для projectAssignmentsDefineNew Определяет новый экземпляр projectAssignment, не сохраняя его.
public function testProjectAssignmentsDefineNew() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsSave()\n {\n }", "public function testProjectAssignmentsUpdateAvailability()\n {\n }", "public function testProjectAssignmentsRead()\n {\n }", "public function testProjectAssignments() {\n\t\t$api = $this->getApiMock();\n\n\t\t$this->assertInstanceOf( P...
[ "0.7644811", "0.67679214", "0.67400557", "0.6722497", "0.6429431", "0.6258179", "0.6254229", "0.61424863", "0.6103009", "0.60312396", "0.5980041", "0.5938782", "0.588492", "0.5801362", "0.57439786", "0.57037276", "0.56785035", "0.5664402", "0.56353474", "0.562364", "0.5600644...
0.8575218
0
Test case for projectAssignmentsDelete Delete selected projectAssignment.
Тест-кейс для projectAssignmentsDelete Удаление выбранного projectAssignment.
public function testProjectAssignmentsDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsUndelete()\n {\n }", "public function delete() {\n\t\t$this->assignment->delete();\n\t}", "public function deleting(assignment $assignment)\n {\n //code...\n }", "public function deleted(assignment $assignment)\n {\n //code...\n }", "pub...
[ "0.74150807", "0.7232327", "0.7205189", "0.6982715", "0.67620176", "0.67124474", "0.64126277", "0.6356476", "0.6222572", "0.6067261", "0.60293174", "0.59970635", "0.5995447", "0.5993912", "0.59866613", "0.5965748", "0.596424", "0.5956555", "0.59433234", "0.5930678", "0.590987...
0.7914902
0
Test case for projectAssignmentsLinkRelation Link a relation to the specified project assignments network..
Тестовый случай для проектAssignmentsLinkRelation Связь отношения с указанным проектом assignments network.
public function testProjectAssignmentsLinkRelation() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsUnlinkRelation()\n {\n }", "public function testProjectAssignmentsRead()\n {\n }", "public function testProjectAssignments() {\n\t\t$api = $this->getApiMock();\n\n\t\t$this->assertInstanceOf( ProjectAssignments::class, $api->projectAssignments() );\n\t}", "pu...
[ "0.7243166", "0.5930383", "0.57157505", "0.5708474", "0.55838925", "0.5509034", "0.5465729", "0.5443334", "0.53880775", "0.535277", "0.53398454", "0.53353244", "0.5316237", "0.5306164", "0.5279292", "0.52596706", "0.5257137", "0.52376723", "0.522226", "0.5214916", "0.5180349"...
0.8351706
0
Test case for projectAssignmentsRead Read a single projectAssignment..
Тест-кейс для projectAssignmentsRead Чтение одного проектного назначения.
public function testProjectAssignmentsRead() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignments() {\n\t\t$api = $this->getApiMock();\n\n\t\t$this->assertInstanceOf( ProjectAssignments::class, $api->projectAssignments() );\n\t}", "public function testProjectAssignmentsSave()\n {\n }", "public function testProjectAssignmentsDefineNew()\n {\n }", "public ...
[ "0.66869384", "0.6358263", "0.6245807", "0.6105069", "0.6013175", "0.5996874", "0.5904705", "0.5829135", "0.56375784", "0.5613895", "0.5613807", "0.5605075", "0.5559165", "0.55357033", "0.5471204", "0.54646987", "0.5419903", "0.54155415", "0.53986263", "0.53511256", "0.534759...
0.8579749
0
Test case for projectAssignmentsSave Save given projectAssignment.
Тест-кейс для projectAssignmentsSave Сохранение заданного projectAssignment.
public function testProjectAssignmentsSave() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saving(assignment $assignment)\n {\n //code...\n }", "public function saved(assignment $assignment)\n {\n //code...\n }", "public function test_save() {\n global $DB;\n\n $this->resetAfterTest();\n\n // Create data object for default assignment set...
[ "0.7028725", "0.6844662", "0.5763546", "0.5713488", "0.5711794", "0.5683594", "0.5604278", "0.5577518", "0.5563075", "0.5541333", "0.54247046", "0.5386992", "0.53825086", "0.53183883", "0.5305647", "0.53037626", "0.53014755", "0.52902174", "0.5276936", "0.52637196", "0.526201...
0.75546616
0
Test case for projectAssignmentsUnarchive .
Тестовый случай для проекта projectAssignmentsUnarchive.
public function testProjectAssignmentsUnarchive() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsArchive()\n {\n }", "public function testProjectAssignmentsUndelete()\n {\n }", "public function testProjectAssignmentsDelete()\n {\n }", "public function testProjectAssignmentsUnlinkRelation()\n {\n }", "public function testProjectAssignmentsRe...
[ "0.7722527", "0.7422933", "0.6869775", "0.6546463", "0.6211243", "0.6045546", "0.5707618", "0.5644579", "0.5638682", "0.5629077", "0.55808747", "0.552223", "0.54020715", "0.53455347", "0.5301914", "0.5261132", "0.5237147", "0.523391", "0.5167878", "0.5140735", "0.5135285", ...
0.92253786
0
Test case for projectAssignmentsUndelete Undelete selected projectAssignment.
Тестовый случай для projectAssignmentsUndelete Отмена удаления выбранного проектного назначения.
public function testProjectAssignmentsUndelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsDelete()\n {\n }", "public function delete() {\n\t\t$this->assignment->delete();\n\t}", "public function testProjectAssignmentsUnarchive()\n {\n }", "public function deleting(assignment $assignment)\n {\n //code...\n }", "public function testPr...
[ "0.75027555", "0.67104805", "0.66708153", "0.66267425", "0.62692565", "0.6211503", "0.59817004", "0.5936784", "0.5936622", "0.58878946", "0.58767366", "0.5790691", "0.56776685", "0.5654066", "0.56490475", "0.5646195", "0.5575666", "0.54783124", "0.5466528", "0.54555726", "0.5...
0.808499
0
Test case for projectAssignmentsUnlinkRelation Unlink a relation from the specified project assignments network..
Тест-кейс для projectAssignmentsUnlinkRelation Открепление связи от указанной сети назначений проекта.
public function testProjectAssignmentsUnlinkRelation() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignmentsUndelete()\n {\n }", "public function testProjectAssignmentsLinkRelation()\n {\n }", "public function testProjectAssignmentsDelete()\n {\n }", "public function testProjectAssignmentsUnarchive()\n {\n }", "public function testProfilePrototypeUnli...
[ "0.6884922", "0.6599453", "0.6435329", "0.6094902", "0.5790577", "0.57702965", "0.5735144", "0.57042587", "0.5619057", "0.5474973", "0.5432891", "0.5380408", "0.537674", "0.53662026", "0.53502065", "0.5336207", "0.53235644", "0.523056", "0.52294505", "0.51868266", "0.5170229"...
0.8349076
0
Test case for projectAssignmentsUpdateAvailability Update projectAssignment availability..
Тест-кейс для projectAssignmentsUpdateAvailability Обновление доступности проектного назначения.
public function testProjectAssignmentsUpdateAvailability() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProjectAssignments() {\n\t\t$api = $this->getApiMock();\n\n\t\t$this->assertInstanceOf( ProjectAssignments::class, $api->projectAssignments() );\n\t}", "public function testProjectAssignmentsSave()\n {\n }", "public function testProjectAssignmentsDefineNew()\n {\n }", "public ...
[ "0.67328537", "0.64488435", "0.6391385", "0.6375984", "0.6233013", "0.6014636", "0.5929907", "0.591498", "0.59113324", "0.5892227", "0.5889138", "0.5841938", "0.5830519", "0.5816376", "0.56954324", "0.5688998", "0.5688976", "0.56794935", "0.56612474", "0.55984575", "0.5579794...
0.8914538
0
Display $message as a short message in the sfWebDebug toolbar
Отобразить $message как краткое сообщение в панели sfWebDebug
public function debugMessage ($message) { if (sfConfig::get('sf_web_debug')) { sfWebDebug::getInstance()->logShortMessage($message); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function debugAlertMessage($message) {\n global $show_debug_alert_messages;\n\n if ($show_debug_alert_messages) {\n echo \"<script type='text/javascript'>alert('\" . $message . \"');</script>\";\n }\n }", "function debugAlertMessage($message) {\n ...
[ "0.72188175", "0.72188175", "0.72080755", "0.71897185", "0.69630235", "0.68984133", "0.6856574", "0.68532646", "0.68511903", "0.68157053", "0.68147534", "0.68092066", "0.67253906", "0.67143387", "0.66484886", "0.66421247", "0.6641954", "0.6611306", "0.660617", "0.6579685", "0...
0.78112364
0
Returns true if a request parameter exists. This is a proxy method equivalent to: $this>getRequest()>getParameterHolder()>has($name)
Возвращает true, если параметр запроса существует. Это метод-прокси, эквивалентный: $this>getRequest()>getParameterHolder()>has($name)
public function hasRequestParameter($name) { return $this->request_parameter_holder->has($name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasParam($name)\n {\n return isset($this->params[$name]);\n }", "public function hasParam($name)\n {\n return (isset($this->params[$name]));\n }", "function hasParam($name)\n {\n return isset($_REQUEST[$name]);\n }", "public function hasParameter($name)\...
[ "0.79915285", "0.7952633", "0.7815712", "0.7812557", "0.7809496", "0.7746102", "0.7716956", "0.77089655", "0.7685866", "0.76661444", "0.7661377", "0.76431257", "0.7642568", "0.76103026", "0.760253", "0.7594464", "0.75887597", "0.75777423", "0.7555887", "0.7544481", "0.7537944...
0.85180354
0
Retrieve the Controller. This is a proxy method equivalent to: $this>getContext()>getController()
Получить контроллер. Это метод-прокси, эквивалентный: $this>getContext()>getController()
public function getController() { return $this->getContext()->getController(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getController()\n {\n return $this->_controller;\n }", "public function getController()\n {\n return $this->_controller;\n }", "public function getController()\n {\n return $this->__get($this->getControllerKey());\n }", "public function getController() {...
[ "0.8694582", "0.8694582", "0.8687888", "0.86650765", "0.864006", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.86314386", "0.85996413", "0.8592716", "0.85464966", "0.8532763", "0....
0.8931581
0
create SQL To create the constraint passed in the $constraint array
создать SQL Для создания ограничения, переданного в массиве $constraint
public function get_constraint_sql($constraint) { if ( !is_array($constraint) ) { throw new exception("constraint is not an array?"); } if ( strlen($constraint['table_name']) == 0 ) { var_dump(array_keys($constraint)); throw new exception("table_name is blank"); } $sql = "ALTER TAB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function makeConstraintSQL($conditions) {\n $keytext = \"\";\n $all_keytext = array();\n $key_conditions = array();\n if (is_array($conditions)) {\n if ($this->is_assoc($conditions)){\n foreach ($conditions as $column_name => $value) {\n\t$final_value = \"\";\n\t$operator = ' = ';\n\tif (is_arr...
[ "0.6941367", "0.6673023", "0.6284132", "0.6142902", "0.6142365", "0.6022942", "0.5928318", "0.5865961", "0.58366597", "0.576025", "0.5687969", "0.56797373", "0.5658565", "0.5649342", "0.5637097", "0.5596486", "0.55816764", "0.55816764", "0.556941", "0.55517566", "0.55482817",...
0.7577659
0
Returns the Redirects service.
Возвращает службу Redirects.
public function getRedirects() { if ($this->_redirectsService == null) { $this->_redirectsService = new Redirects(); } /** @var WebApplication|ConsoleApplication $this */ return $this->_redirectsService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRedirect_urls()\r\n {\r\n return $this->redirect_urls;\r\n }", "public function getRedirectUrls()\r\n {\r\n return $this->redirect_urls;\r\n }", "public function getRedirects();", "function getRedirect() {\n\t\treturn $this->_Redirect;\n\t}", "public function ac...
[ "0.6145787", "0.60814875", "0.6047887", "0.5972296", "0.59068024", "0.58936155", "0.5822734", "0.5770181", "0.57425344", "0.5706364", "0.5704973", "0.5671789", "0.566924", "0.5486683", "0.53571796", "0.53220505", "0.52712613", "0.52572817", "0.52476144", "0.5244536", "0.52350...
0.8088026
0
Register CP URL rules
Регистрация правил URL для CP
public function registerCpUrlRules(RegisterUrlRulesEvent $event) { // only register CP URLs if the user is logged in if (!Craft::$app->user->identity) return; $rules = [ // register routes for the sub nav 'redirect' => 'redirect/settings/', 're...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addRules()\n {\n $rules = [\n 'maintenance' => 'maintenance/index',\n 'maintenance/<_a:\\w+>' => 'maintenance/<_a>'\n ];\n $rules = (YII_DEBUG) ? ArrayHelper::merge($rules, [\n '<_m:debug>/<_c:\\w+>/<_a:\\w+>' => '<_m>/<_c>/<_a>',\n ]...
[ "0.6727217", "0.6336268", "0.63174576", "0.6063893", "0.60440457", "0.60416794", "0.5969931", "0.5946741", "0.59454536", "0.5935581", "0.5918109", "0.5883399", "0.58799493", "0.58245295", "0.582353", "0.57786685", "0.5765941", "0.5757766", "0.5740499", "0.57037765", "0.570088...
0.70939744
0
Get the image as a PHP image resource This method has "dummy" parameters to comply with PHP strict standards, but does not actually use them in any capacity
Получите изображение в виде ресурса PHP. Этот метод имеет «пустые» параметры, чтобы соответствовать строгим стандартам PHP, но не использует их ни в какой манере.
public function getImageResource() { return imagecreatefromstring($this->getRaw()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createImageResource()\n {\n // In case of failure, image will be false\n\n $mimeType = $this->getMimeTypeOfSource();\n\n if ($mimeType == 'image/png') {\n $image = imagecreatefrompng($this->source);\n if ($image === false) {\n throw new ...
[ "0.7419634", "0.73590297", "0.73167306", "0.72289056", "0.72066945", "0.69972503", "0.6869377", "0.6816492", "0.6816492", "0.6816492", "0.6816492", "0.6677847", "0.6614015", "0.6517259", "0.64425737", "0.64348847", "0.6404161", "0.6371902", "0.6329659", "0.6300644", "0.628024...
0.75799245
0
Alias of $this>getImageSize()[2]; Get the PHP IMAGETYPE_XXX constant
Псевдоним $this>getImageSize()[2]; Получение константы PHP IMAGETYPE_XXX
public function getType() { $size = $this->getImageSize(); return $size[2]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFileType()\n {\n try\n {\n list($this->m_Width, $this->m_height, $this->m_type, $this->m_attr) = getimagesize($this->m_ImagePath);\n return $this->m_type;\n }\n catch (Exception $ex)\n {\n return 0;\n }\n }", "public fun...
[ "0.697524", "0.6965937", "0.6857124", "0.6814388", "0.6646664", "0.6637873", "0.6564341", "0.65549374", "0.6507953", "0.6482973", "0.6463625", "0.6431965", "0.64278406", "0.6426665", "0.64251447", "0.6413312", "0.6368322", "0.6348858", "0.63289917", "0.632639", "0.63082826", ...
0.76974875
0
Alias of $this>getImageSize()[3]; Get the dimensions as an HTML compatible string ex: `width="120" height="120"`
Алиас $this>getImageSize()[3]; Получить размеры в виде строки, совместимой с HTML, например: `width="120" height="120"`
public function getDimensionsString() { $size = $this->getImageSize(); return $size[3]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_size()\n\t\t{\n\t\t\treturn $this->width().'x'.$this->height();\n\t\t}", "public function getImageSize()\n {\n return (($this->isWrapped() || $this->isTemp()) ?\n getimagesizefromstring($this->getRaw())\n : getimagesize($this->getPathname())\n );\n }"...
[ "0.7758084", "0.71336114", "0.7064847", "0.7026922", "0.6875499", "0.67823833", "0.6773737", "0.6710912", "0.667444", "0.66378284", "0.6549277", "0.65464133", "0.65286094", "0.64623976", "0.6459991", "0.645544", "0.6452618", "0.644091", "0.6423324", "0.64206284", "0.6401883",...
0.81764084
0
Alias of $this>getImageSize()['mime']; Get the MIMEtype of the image based on PHP's detection
Псевдоним $this>getImageSize()['mime']; Получение MIME-типа изображения на основе обнаружения PHP
public function getMime() { $size = $this->getImageSize(); return $size['mime']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImageMimeType(): string\n {\n return $this->imageMimeType;\n }", "public function getMimeType() {\r\n\t\t// hard coding\r\n\t\treturn \"image/jpeg\";\r\n\t}", "function getFileType()\n {\n try\n {\n list($this->m_Width, $this->m_height, $this->m_type,...
[ "0.7939923", "0.756304", "0.75003946", "0.7307356", "0.7307356", "0.7307356", "0.7307356", "0.72944593", "0.7282856", "0.7258395", "0.7258395", "0.7258395", "0.7258395", "0.7258395", "0.72070354", "0.7155767", "0.70822334", "0.70763034", "0.7057324", "0.7057324", "0.7057324",...
0.80369174
0
Alias of $this>getImageSize()['channels']; Get the RGB/CMYK channels of the image
Алиас $this>getImageSize()['channels']; Получить каналы RGB/CMYK изображения
public function getChannels() { $size = $this->getImageSize(); return $size['channels']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColorSpace() {}", "public function getColorSpace() {}", "public function getPixelFormat() {}", "public function getAlternateColorSpace() {}", "public function getAlternateColorSpace() {}", "public function getAlternateColorSpace() {}", "public function getColorSpace($signature = fals...
[ "0.64175344", "0.6417393", "0.58455664", "0.5819911", "0.5819911", "0.5819911", "0.5765957", "0.5639542", "0.55958956", "0.5488545", "0.53533065", "0.5352284", "0.53515136", "0.5341084", "0.528942", "0.5274117", "0.52521646", "0.5226269", "0.5212814", "0.51657313", "0.5133646...
0.79404795
0
Alias of $this>getImageSize()['bits']; Get the bit depth of the image
Псевдоним $this>getImageSize()['bits']; Получение глубины цвета изображения
public function getBits() { $size = $this->getImageSize(); return $size['bits']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBitDepth()\n {\n return $this->bitDepth;\n }", "public function getBitsPerComponent() {}", "public function getBitsPerComponent() {}", "public function getBits(): int;", "public function getBitsPerSample();", "public function getSize()\n {\n return $this->details...
[ "0.7313299", "0.7275825", "0.7275237", "0.6971666", "0.693137", "0.69178814", "0.6732063", "0.6485355", "0.6479828", "0.6478225", "0.6369237", "0.63315576", "0.6265876", "0.61992896", "0.61752164", "0.61645997", "0.6160587", "0.6155685", "0.6148394", "0.6146513", "0.6144582",...
0.7800855
0
Get all stored session
Получить все сохраненные сессии
public static function all() { return $_SESSION; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAll() {\n \n $this->start();\n return $_SESSION;\n \n }", "public function all()\n {\n return $_SESSION;\n }", "public function get_all_session()\n\t\t{\n\t\t\treturn parent::get_all_items('session_items');\n\t\t}", "public static function getAll...
[ "0.84562504", "0.83953553", "0.83684325", "0.8367251", "0.8332718", "0.81907094", "0.81148547", "0.8097965", "0.78364676", "0.78213817", "0.7776848", "0.77393013", "0.7707474", "0.7682302", "0.761688", "0.76032865", "0.75982153", "0.7564883", "0.7514105", "0.7416139", "0.7389...
0.8488507
0
Process notification from recurring profile payments
Уведомление о процессе платежей по расписанию из профиля
protected function _processRecurringProfile() { try { $this->_registerRecurringProfilePaymentCapture(); if ($this->_periodType == Mage_Sales_Model_Recurring_Profile::PAYMENT_TYPE_TRIAL) { $additionalInfo = $this->_recurringProfile->getAdditionalInfo(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _registerRecurringProfilePaymentCapture()\r\n {\r\n $price = $this->_price;\r\n $tax = $this->_taxAmount;\r\n $shipping = $this->_shippingAmount;\r\n $grandTotal = $this->_amount;\r\n $periodType = $this->_periodType;\r\n $transactionId = $this->_txdI...
[ "0.70324343", "0.69204044", "0.65713036", "0.65153605", "0.64160085", "0.632116", "0.63205755", "0.6251744", "0.62359613", "0.62268466", "0.62099314", "0.6185975", "0.61627805", "0.61393493", "0.611405", "0.6089897", "0.60207874", "0.60181916", "0.6005091", "0.5963098", "0.59...
0.7068042
0
update period max cycles of recurring profile when cron job create order
период обновления максимального количества циклов повторяющегося профиля при создании заказа через крон-задачу
public function updatePeriodMaxCycles() { // edit period max cycles if It is greater than or equal 0 and is numeric // If period max cycles <= 0 or null, recurring profile will run forever if ($periodMaxCycles = $this->_recurringProfile->getPeriodMaxCycles()) { if ((string)(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function chargeRecurringProfiles(Mage_Cron_Model_Schedule $schedule){\n\t\tif (!Mage::getStoreConfig('payment/gpndatarecurring/activecron'))\n\t\t\treturn false;\n\t\t\n\t\t$_resource = Mage::getSingleton('core/resource');\n\t\t$sql = '\n\t\t\tSELECT\n\t\t\t\tCASE srp.period_unit\n\t\t\t\t\tWHEN \"day\" \t\...
[ "0.6026216", "0.6020808", "0.5817328", "0.56965375", "0.56505585", "0.5562594", "0.5559983", "0.55261105", "0.5487441", "0.5351518", "0.5288174", "0.52836394", "0.52728504", "0.52659285", "0.525364", "0.5217661", "0.52023476", "0.51909614", "0.51802844", "0.51772153", "0.5176...
0.7341154
0
Retrieves the SalesForce instance url after the authentication.
Получает URL экземпляра SalesForce после аутентификации.
public function getInstanceUrl(): string { return $this->instanceUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getLoginUrl(){\r\n\t\t\r\n\t\t$settings = $this->getConnectionSettings();\r\n\t\t\r\n\t\t$base = $this->_loginInstance['production'];\r\n\t\tif ($settings['type'] !== 'production')\r\n\t\t\t$base = $this->_loginInstance['sandbox'];\r\n\t\t\r\n\t\treturn $base . $this->_authUri;\r\n\t}", "public...
[ "0.6590367", "0.64716107", "0.637981", "0.6272297", "0.61720943", "0.6166185", "0.6095151", "0.6090316", "0.6072457", "0.60332376", "0.6023", "0.6007711", "0.5999244", "0.59602165", "0.59373343", "0.5935424", "0.59077406", "0.59054714", "0.5901357", "0.59011775", "0.5897047",...
0.7187701
0
/ Gets survival data for given exons, cancer type, survival analysis method and classification method
Получает данные выживаемости для заданных экзонов, типа рака, метода анализа выживаемости и метода классификации
function get_survival_data($exons, $cancer, $classification, $db) { // generate question marks for inputting exons to the statement $in = join(',', array_pad(array(), count($exons), '?')); // generate parameters array with cancer type and exons $params = array_merge(array($cancer), array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function vegData()\n\t{\n\t\t//Submission of data is a privilege of logged in users. Checking if the user has logged it.\n\t\tif(!$this->Session->check('User'))\n\t\t{\n\t\t\t$this->Session->setFlash('Please login to access this page.');\n $this->redirect(array('controller' => 'teachers', 'action' => '...
[ "0.498317", "0.48960182", "0.48345277", "0.4754041", "0.46114093", "0.4605818", "0.4602552", "0.45962882", "0.45557222", "0.45108217", "0.44662786", "0.44401762", "0.4429874", "0.43669263", "0.43233255", "0.4317378", "0.42787495", "0.4224303", "0.42044133", "0.4202441", "0.41...
0.7381149
0
Returns size of the shared memory block.
Возвращает размер блока общего памяти.
public function size() { $this->init(); return shmop_size($this->shmId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSize(): int\n {\n return $this->buffer->getSize();\n }", "private function getSize()\n {\n $this->seek($this->offset);\n\n return $this->readLong();\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize...
[ "0.6649366", "0.66026413", "0.65479547", "0.65479547", "0.65479547", "0.65337974", "0.6532625", "0.6528054", "0.651806", "0.65034217", "0.64865714", "0.64844275", "0.64844275", "0.64573896", "0.643297", "0.6432952", "0.6423518", "0.6412804", "0.64097255", "0.6396717", "0.6374...
0.79667
0
GetInstance of "StandaloneTerms" Singleton
GetInstance "StandaloneTerms" Singleton
public static function getInstance() : StandaloneTerms { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getInstance($inID) {\n\t\t/**\n\t\t * Check for an existing instance\n\t\t */\n\t\tif ( isset(self::$_Instances[$inID]) ) {\n\t\t\treturn self::$_Instances[$inID];\n\t\t}\n\t\t\n\t\t/**\n\t\t * No instance, create one\n\t\t */\n\t\t$oObject = new mofilmTerms();\n\t\t$oObject->setID($inID);\n...
[ "0.6383242", "0.62223685", "0.62133026", "0.6107135", "0.61013263", "0.6082796", "0.59236324", "0.59052795", "0.58806765", "0.58806765", "0.58806765", "0.58806765", "0.5880485", "0.5880485", "0.5880485", "0.58802706", "0.58802706", "0.58802706", "0.58667785", "0.58019817", "0...
0.84604
0
Adds taxonomy name to array of supported taxonomies.
Добавляет имя таксономии в массив поддерживаемых таксономий.
private function add_taxonomy( $taxonomy_name ) { $this->taxonomies[] = $taxonomy_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addTaxonomies() {\n\n echo \"\\nAdding taxonomies to post {$this->wp_post_id}...\\n\";\n\n if( is_array($this->taxonomy_info) ){\n foreach( $this->taxonomy_info as $taxonomy_name => $terms ){\n $term_ids = implode( \" \", $this->getRandomTerms($terms) );\n ...
[ "0.71170473", "0.69581753", "0.68880016", "0.682039", "0.6760836", "0.6705327", "0.66794115", "0.66794115", "0.66794115", "0.66527075", "0.6639676", "0.66206723", "0.6606597", "0.65561515", "0.65133876", "0.6505883", "0.6505096", "0.64882916", "0.6486451", "0.648146", "0.6456...
0.7214258
0
Adds an specified amount of points of progress
Добавляет указанное количество точек прогресса
public function addProgressToAchiever($achiever, $points);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function calculatePoints()\n {\n $this->points += 100;\n $this->points = $this->points < 0 ? 0 : $this->points;\n }", "public function addProgress(CanAchieve $instance, $points = 1): void\n {\n $instance->addProgressToAchiever($this, $points);\n }", "public function add...
[ "0.67024744", "0.654631", "0.6534389", "0.6447174", "0.6129888", "0.60362625", "0.60098946", "0.5863665", "0.5844476", "0.5766858", "0.5750069", "0.57019806", "0.5680258", "0.5652555", "0.5504347", "0.5472247", "0.54474896", "0.540144", "0.53943354", "0.53882796", "0.5379258"...
0.72236127
0
Check if the user is sponsor or has a sponsor
Проверьте, является ли пользователь спонсором или имеет спонсора
public function isOrHasSponsor() { $sponsor = $this->getAnswer('sponsor'); if (!empty($sponsor)) { return TRUE; } $is_sponsor_of = $this->isSponsorOf(); if ($is_sponsor_of > 0) return TRUE; return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasSponsor()\n {\n return $this->Sponsor !== null;\n }", "public function isSponsor()\n\t{\n\n\t\t$is_sponsor_of = $this->isSponsorOf();\n\n\t\tif ($is_sponsor_of > 0) return TRUE;\n\n\t\treturn FALSE;\n\n\t}", "public function hasSponsor()\n\t{\n\n\t\t$sponsor = $this->getAnswer('...
[ "0.8126523", "0.8047444", "0.80425245", "0.7936938", "0.687122", "0.6160303", "0.6041953", "0.59574366", "0.59175193", "0.584906", "0.5841173", "0.5839194", "0.5825479", "0.5779109", "0.5776017", "0.57718694", "0.5761232", "0.57539374", "0.5711449", "0.57026803", "0.5690672",...
0.80828255
1
Check if the user is sponsor
Проверить, является ли пользователь спонсором
public function isSponsor() { $is_sponsor_of = $this->isSponsorOf(); if ($is_sponsor_of > 0) return TRUE; return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasSponsor()\n {\n return $this->Sponsor !== null;\n }", "public function hasSponsor()\n\t{\n\n\t\t$sponsor = $this->getAnswer('sponsor');\n\t\tif (!empty($sponsor)) {\n\n\t\t\treturn TRUE;\n\n\t\t}\n\n\t\treturn FALSE;\n\n\t}", "public function isSponsorOf() {\n\n\t\t$email = $thi...
[ "0.82246375", "0.818128", "0.8089971", "0.78672826", "0.6780416", "0.63546216", "0.6220769", "0.61851555", "0.61798847", "0.6136465", "0.61313945", "0.6085141", "0.60730094", "0.60671943", "0.60631585", "0.6046013", "0.60425776", "0.6025937", "0.5991742", "0.5982361", "0.5971...
0.8290999
0
We get the exact age of the person from his `birthday` (getAnswer)
Мы получаем точный возраст человека из его `birthday` (getAnswer)
public function getAge() { $date_birthday = $this->getAnswer('birthday'); $date_birthday = convert_date_to_age($date_birthday); return $date_birthday; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAge()\n {\n return $this->getAge($this->dob);\n }", "public function get_age($dob){\n\t\treturn floor((time() - strtotime($dob))/31556926);\n\t}", "function ageCalculator($dob)\n{\n\tif(!empty($dob))\n\t{\n\t\t$birthdate = new DateTime($dob);\n\t\t$today = new DateTime('today...
[ "0.76644623", "0.745723", "0.73393595", "0.7310339", "0.7226365", "0.7221014", "0.7208492", "0.71952736", "0.71063155", "0.7101336", "0.70439863", "0.6988709", "0.6947943", "0.6905668", "0.6874918", "0.6865213", "0.6862053", "0.6816776", "0.67828315", "0.6767292", "0.67425615...
0.82930803
0
Weird payment profile datas or non existing ones
Неправильные данные профиля платежей или несуществующие
public function badPaymentProfile() { $payment_profile = $this->payment_profile()->first(); if ($payment_profile === NULL) return TRUE; if (empty($payment_profile->stripe_customer)) return TRUE; return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentProfiles() {\n if (!$this->hasData('payment_profiles')) {\n $profilesArray = array();\n $profiles = Mage::getModel('ipay/profile')->getCollection()\n ->addCustomerFilter($this->getCustomer());\n foreach ($profiles as $profile) {\n...
[ "0.5850062", "0.582892", "0.5788163", "0.5787804", "0.57419676", "0.5736113", "0.57133824", "0.57096493", "0.5707051", "0.5671017", "0.55465615", "0.551804", "0.55120957", "0.54848564", "0.5481239", "0.54785436", "0.5477732", "0.54670775", "0.546274", "0.5458822", "0.54237604...
0.70397335
0
Description This function will return the module and package version information from the _versions.info file. Arguments ciniki:
Описание Эта функция возвращает информацию о версии модуля и пакета из файла _versions.info. Аргументы ciniki:
function ciniki_core_getCodeVersions($ciniki) { // // Check for the _versions.info file // if( !file_exists($ciniki['config']['ciniki.core']['root_dir'] . "/_versions.ini") ) { return array('stat'=>'ok', 'versions'=>array('package'=>array(), 'modules'=>array())); } $modules_ini = parse_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getVersionInfo();", "private function getVersionInfo() {\n $store = $this->dataStoreGet(array('platform'));\n $server = (!empty($store) && isset($store['platform'])) ? $store['platform']['php_quantum']['SERVER'] : \\Drupal::request()->server->all();\n $ver = array();\n\n $ver['...
[ "0.7690725", "0.71634716", "0.7032802", "0.6937562", "0.6937562", "0.6903583", "0.6780916", "0.6692677", "0.66879505", "0.6636834", "0.66331166", "0.66174537", "0.6617435", "0.66112566", "0.65482885", "0.65153325", "0.6350097", "0.63160855", "0.6263277", "0.6247935", "0.62479...
0.8016804
0
Symbolic Permissions Takes a numeric value representing a file's permissions and returns standard symbolic notation representing that value
Символьные разрешения принимают числовое значение, представляющее разрешения файла, и возвращают стандартную символическую нотацию, представляющую это значение
public static function symbolicPermissions($perms) { if (($perms & 0xC000) == 0xC000) { $symbolic = 's'; // Socket } elseif (($perms & 0xA000) == 0xA000) { $symbolic = 'l'; // Symbolic Link } elseif (($perms & 0x8000) == 0x8000) { $symbolic = '-'; // Regular } elseif (($perms & 0x6000) == 0x6000) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function octalPermissions($perms) {\n\t\treturn substr(sprintf('%o', $perms), -3);\n\t}", "public function getPermissionsString()\n {\n $out = \"\";\n\n $perm = octdec( $this->getPermissions() );\n\n for ( $i = 6; $i >= 0; $i -= 3 )\n {\n $part = ( $perm >> $i );\n\n ...
[ "0.72816944", "0.71466583", "0.6899618", "0.6638782", "0.6632235", "0.6571255", "0.65661275", "0.61352384", "0.6089094", "0.60865635", "0.6069641", "0.58221483", "0.5807917", "0.58032596", "0.5764933", "0.5739034", "0.56821346", "0.56658834", "0.5661036", "0.5607993", "0.5589...
0.7709532
0
Octal Permissions Takes a numeric value representing a file's permissions and returns a three character string representing the file's octal permissions
Восьмеричные разрешения Принимает числовое значение, представляющее разрешения файла, и возвращает трехсимвольную строку, представляющую восьмеричные разрешения файла
function octalPermissions($perms) { return substr(sprintf('%o', $perms), -3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPermissionsString()\n {\n $out = \"\";\n\n $perm = octdec( $this->getPermissions() );\n\n for ( $i = 6; $i >= 0; $i -= 3 )\n {\n $part = ( $perm >> $i );\n\n if ( $part & 4 )\n {\n $out .= \"r\";\n }\n ...
[ "0.7829662", "0.7508838", "0.7241295", "0.7060648", "0.70070755", "0.6697713", "0.65828925", "0.6572047", "0.65606064", "0.6483789", "0.63561755", "0.6342379", "0.63394165", "0.6313656", "0.6215662", "0.5972746", "0.5960271", "0.59485304", "0.59405863", "0.59393644", "0.58777...
0.8293027
0
Get a reflected entity
Получить отражаемый объект
protected function getReflectedEntity() { return new \ReflectionClass($this->getEntityName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntity() {\n\t\treturn get_entity($this->entity_guid);\n\t}", "public function getEntity( )\n {\n\n return $this->entity;\n\n }", "public function getEntity() {\n return $this->entity;\n }", "public function getEntity(): Entity {\n return $this->entity;\n }", "public f...
[ "0.7337907", "0.7312627", "0.7283141", "0.7261512", "0.7247704", "0.7242214", "0.7242214", "0.7242214", "0.72420406", "0.7237029", "0.72187763", "0.72114164", "0.7195529", "0.7195529", "0.7195529", "0.71546894", "0.7124764", "0.69209635", "0.6913869", "0.68949974", "0.6889107...
0.7875725
0
Get an entity's property names as an array
Получить имена свойств сущности в виде массива
protected function getEntityPropertyNames() { if (empty($this->entityProperties)) { $this->entityProperties = array_map( function ($property) { return $property->getName(); }, $this->getReflectedEntity()->getProperties() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function _getPropertyNames(): array\n {\n return [\n 'name',\n ];\n }", "public static function _getPropertyNames(): array\n {\n return [\n ];\n }", "public function getPropertyNames();", "public function getPropertyNames() {\n // {Prope...
[ "0.75132525", "0.74901676", "0.7457103", "0.7295317", "0.7177224", "0.7092132", "0.70590574", "0.704671", "0.70002425", "0.6878127", "0.6840729", "0.6811677", "0.6793662", "0.6779259", "0.6767328", "0.67139494", "0.66273534", "0.6622694", "0.6616796", "0.66013694", "0.6601369...
0.7944317
0
Returns the minimum longitude coordinate for this location box.
Возвращает минимальную долготу для этой области.
public function getMinLng() { return $this->minLng; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MinLongitude() {\n return $GLOBALS[\"minLong\"];\n }", "public function GetLongitude()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n return $this->_search_center_long;\n }", "public function getLongitude() {\n return $this->nLongitude;\n }", ...
[ "0.76780033", "0.7259453", "0.72411406", "0.7215399", "0.7176336", "0.7175052", "0.7174581", "0.71734565", "0.71734565", "0.71734565", "0.71734565", "0.71734565", "0.71734565", "0.71734565", "0.71734565", "0.71687126", "0.7161102", "0.7157892", "0.7144896", "0.7143111", "0.71...
0.7444176
1
Returns the maximum longitude coordinate for this location box.
Возвращает максимальную долготу координаты для этого прямоугольника местоположения.
public function getMaxLng() { return $this->maxLng; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MaxLongitude() {\n return $GLOBALS[\"maxLong\"];\n }", "public function GetLongitude()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n return $this->_search_center_long;\n }", "public function getLongitude()\n\t\t\t{\n\t\t\t\treturn $this->longitude...
[ "0.81661314", "0.7638997", "0.7619328", "0.7578965", "0.7578965", "0.7544245", "0.754217", "0.7520273", "0.751259", "0.75074303", "0.75027937", "0.75027937", "0.75027937", "0.75027937", "0.75027937", "0.75027937", "0.75027937", "0.75027937", "0.7483487", "0.7482857", "0.74502...
0.76743287
1
Returns the minimum latitude coordinate for this location box.
Возвращает минимальную широту координату для этого прямоугольника местоположения.
public function getMinLat() { return $this->minLat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLatitude()\n {\n if (! isset($this->latitude)) {\n $this->latitude = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getLatitudeQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n r...
[ "0.77156484", "0.7695343", "0.7662209", "0.75814444", "0.75806546", "0.7580163", "0.7513864", "0.7513864", "0.74953264", "0.7460153", "0.7460153", "0.7460153", "0.7460153", "0.7460153", "0.7460153", "0.7460153", "0.7460153", "0.74465805", "0.744474", "0.7421342", "0.74093103"...
0.8539243
0
Returns the maximum latitude coordinate for this location box.
Возвращает максимальную широту координаты для этого прямоугольника местоположения.
public function getMaxLat() { return $this->maxLat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MaxLatitude() {\n return $GLOBALS[\"maxLat\"];\n }", "public function getMaxLng() {\n return $this->maxLng;\n }", "function MaxLongitude() {\n return $GLOBALS[\"maxLong\"];\n }", "public function getLongitude() {\n return $this->nLongitude;\n }", "public f...
[ "0.7731561", "0.76780415", "0.7505956", "0.7133261", "0.70355123", "0.6969748", "0.6956495", "0.6953815", "0.6953815", "0.6953815", "0.6953815", "0.6953815", "0.6953815", "0.6953815", "0.6953815", "0.6945942", "0.6910617", "0.6910037", "0.6909658", "0.68877596", "0.68877596",...
0.83819056
0
determines if the given location is in this box.
определяет, находится ли заданное положение в этом прямоугольнике.
public function inBox($location) { return $this->minLng <= $location->getLng() && $location->getLng() <= $this->maxLng && $this->minLat <= $location->getLat() && $location->getLat() <= $this->maxLat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function contains($otherRect) {}", "function isLocationowner(){\r\n\t\tif($this->user_type == 'LocationOwner'){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected function useCheck($location)\n {\n if(current($this->location->where('parent_id', $location->id)->get())){\n ...
[ "0.6213081", "0.6095292", "0.60933465", "0.6074214", "0.60653645", "0.6043408", "0.59332544", "0.59021133", "0.5881645", "0.583138", "0.5817808", "0.579709", "0.5703027", "0.56853324", "0.5670082", "0.56515867", "0.55678535", "0.55589056", "0.5555789", "0.5534555", "0.5532524...
0.7411527
0
/ Checks if the date entered by the user is valid. If it is valid, the view bookings page is displayed If the date is invalid the form is redisplayed to the user.
Проверяет, является ли дата, введенная пользователем, корректной. Если дата корректна, отображается страница просмотра бронирований. Если дата некорректна, форма снова отображается пользователю.
function processForm() { if(isDateValid()) { viewBookings(); } else { echo "<p>The date entered was not valid! Please try again.</p>"; displayForm(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validate_booking(): bool {\n\t $this->errors = array();\n\n // Clear data using test_input function\n foreach ($this->request->post as $key => $value) {\n $this->request->post[$key] = self::test_input($this->request->post[$key]);\n }\n\n // Time\n i...
[ "0.71737945", "0.6413085", "0.61752415", "0.608169", "0.59280163", "0.5903243", "0.5892216", "0.58607167", "0.586066", "0.5859114", "0.5814244", "0.5811573", "0.5724774", "0.57018965", "0.57000834", "0.567548", "0.56082124", "0.55998737", "0.5594442", "0.55888563", "0.558303"...
0.809474
0
/ Function that displays the bookings for the date specified by the user.
Функция, которая отображает бронирования на дату, указанную пользователем.
function viewBookings() { try { $databaseConnection = new PDO( DB_NAME, DB_USERNAME, DB_PASSWORD ); //Creates database connection $databaseConnection->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); } catch ( PDOException $e ) { echo "Connection failed: " . $e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bookingListByDate()\n {\n $dateOptipns = [];\n $bookingMgr = new BookingMgr();\n $bookings = $bookingMgr->getBookings();\n foreach ($bookings->toArray() as $booking) {\n $dateOptipns[] = $booking['reserve_date'];\n }\n $dateOptipns = array_uni...
[ "0.7078635", "0.6895612", "0.68075335", "0.6736216", "0.67046916", "0.66970617", "0.66096294", "0.66061383", "0.6554679", "0.6533772", "0.6527581", "0.6473118", "0.64721525", "0.6437454", "0.6421281", "0.6417185", "0.6389261", "0.6276182", "0.6264219", "0.62556833", "0.624642...
0.73695475
0
Checks whether $value is an array or an object that implements ArrayAccess.
Проверяет, является ли $value массивом или объектом, реализующим ArrayAccess.
public static function isArrayAccessible($value) : bool { return $value instanceof \ArrayAccess || is_array($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isArrayable($value)\n {\n return is_array($value) or $value instanceof Arrayable;\n }", "public static function isArray($value): bool\n {\n if (is_array($value))\n {\n // Definitely an array\n return TRUE;\n }\n\n // Possibl...
[ "0.78594464", "0.78137225", "0.77776295", "0.77681243", "0.7729821", "0.7652933", "0.75885564", "0.74791986", "0.74462515", "0.7421078", "0.7211101", "0.71756816", "0.71371925", "0.7118598", "0.69788253", "0.6973963", "0.68935907", "0.68920344", "0.6851621", "0.6833774", "0.6...
0.7925129
0
Returns the value as an 'iterable'.
Возвращает значение в виде итерируемого объекта.
public static function toIterable($value) : iterable { return is_iterable($value) ? $value : self::toArray($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function toIterable(): iterable;", "public function iterable(): iterable\n {\n return $this->array;\n }", "function &iterable(iterable $value, string $namespace = 'default'): iterable\n{\n $var = new Variable\\IterableVariable($value);\n Repository::add($var, $namespace);\n ...
[ "0.7280305", "0.72724634", "0.7235119", "0.71800804", "0.7076066", "0.6839405", "0.68045634", "0.68005234", "0.66962737", "0.6644599", "0.66360486", "0.6614245", "0.66091245", "0.65580857", "0.6534506", "0.651222", "0.64216036", "0.6378288", "0.63761675", "0.6345211", "0.6325...
0.83648336
0