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
Renamed DFS file $oldPath to DFS file $newPath
Переименован DFS файл $oldPath в DFS файл $newPath
public function renameOnDFS( $oldPath, $newPath ) { $this->accumulatorStart(); $oldPath = $this->makeDFSPath( $oldPath ); $newPath = $this->makeDFSPath( $newPath ); if(strpos($oldPath,'/storage/') !== FALSE ) { try { $result = $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rename($path, $newpath)\n {\n }", "public static function rename ($path, $newPath) {\n\t\t\\rename($path, $newPath);\n\t}", "public function rename($new_name) {\n\t\t$new_path = $this->getParentDirectory()->getPath().DIRECTORY_SEPARATOR.$new_name;\n\t\tif (!rename($this->getPath(), $new_p...
[ "0.7062583", "0.67067456", "0.6563949", "0.6544492", "0.6403296", "0.6402059", "0.6241665", "0.61887175", "0.6181325", "0.61770827", "0.61722696", "0.6149701", "0.6117788", "0.6092157", "0.6085943", "0.6080786", "0.607072", "0.60589546", "0.604953", "0.6032748", "0.6017932", ...
0.7969562
0
Returns the mount point
Возвращает точку монтирования
public function getMountPoint() { return $this->mountPointPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMountPoint() {}", "public function getDeviceFile()\n {\n return $this->mountPoint;\n }", "static public function getMountPoint($path) {\n\t\tif (!self::$mounts) {\n\t\t\t\\OC_Util::setupFS();\n\t\t}\n\t\t$mount = self::$mounts->find($path);\n\t\tif ($mount) {\n\t\t\treturn $moun...
[ "0.8356879", "0.7497773", "0.6851022", "0.6726027", "0.6407037", "0.6349824", "0.6326226", "0.6278108", "0.61439145", "0.611247", "0.6107204", "0.60659134", "0.5953335", "0.5882445", "0.58684546", "0.5832708", "0.5822374", "0.57539594", "0.5707855", "0.5701818", "0.56719524",...
0.8618232
0
Get a state name with its ID
Получить имя состояния с его ID
public static function getNameById($id_state) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getNameById($idState) {\n\n if (!$idState) {\n return false;\n }\n\n $cacheId = 'State::getNameById_' . (int) $idState;\n\n if (!Cache::isStored($cacheId)) {\n $result = Db::getInstance(_EPH_USE_SQL_SLAVE_)->getValue(\n (new Db...
[ "0.75291455", "0.74185705", "0.74185705", "0.73911005", "0.7297949", "0.7213894", "0.70656556", "0.70159227", "0.68673813", "0.6845389", "0.67814434", "0.6770061", "0.6677608", "0.6635337", "0.6594246", "0.65396017", "0.6523814", "0.65023565", "0.64536005", "0.63751614", "0.6...
0.8232608
0
Save product type data
Сохранить данные о типе продукта
protected function saveProductType($data) { $productTypeTable = $this->getServiceLocator()->get('ProductTypeTable'); $dataFinal = $data; $type = new ProductType(); $type->exchangeArray($dataFinal); return $productTypeTable->save($type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveType()\n {\n }", "function createProductType($productType_data)\n {\n \n $producttype_model = new ProductType();\n //var_dump($productType_data);die;\n $producttype_model->cat_id = $productType_data['cat_id'];\n $producttype_model->subcat_id = $prod...
[ "0.7206531", "0.70115745", "0.6761928", "0.66824704", "0.666031", "0.6584429", "0.65807194", "0.65082884", "0.6485228", "0.6407306", "0.62490577", "0.6232236", "0.61708146", "0.6169321", "0.61578", "0.61055356", "0.6079512", "0.60629886", "0.60304195", "0.60255885", "0.600492...
0.7369319
0
Build html tag e return string
Создать html-тег и вернуть строку
protected function build() { $tag = array_shift($this->attributes); $content = implode('', $this->childs); if (empty($tag) || $tag == 'dummy') { return $content; } $spaces = $this->tagdep != 0 ? PHP_EOL.str_repeat(" ",abs($this->tagdep)) : ''; $st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build(){\n\n\t\t// Node Attributes;\n\t\t$this->getAttrString();\n\t\t\n\t\tif(is_array($this->content)){\n\t\t\t$this->html.= '<'. $this->tag .' '. $this->attrString .'>' ;\n\t\t\tforeach ($this->content as $key => $value) \n\t\t\t\t$this->html.= $value->build() ;\n\n\t\t\t$this->html .= '</'. $th...
[ "0.71763337", "0.7045052", "0.69497347", "0.69471395", "0.69408315", "0.6769022", "0.6746614", "0.67395085", "0.6730583", "0.67227894", "0.67162395", "0.6677183", "0.66708964", "0.6670767", "0.6660257", "0.66111207", "0.65865374", "0.6567448", "0.654911", "0.6548516", "0.6547...
0.73326147
0
/ IN: $book > bitstamp book IN: $qty > quantity of bitcoin to buy/sell IN: $action > are we buying or selling? OUT: price in (USD) for $qty Bitcoins including Commission
/ ВХОД: $book > книга битстампа ВХОД: $qty > количество биткоинов для покупки/продажи ВХОД: $action > покупка или продажа? ВЫХОД: цена в (USD) за $qty биткоинов, включая комиссию
function coin_to_usd($book, $qty, $action) { $cnt = 0; // current bid/ask we are looking at $total = 0; // total price $whats_left = $qty; // how many bitcoins are left to buy/sell if($action == 'sell') { $book_data = $book->bids; } else if($action == 'buy') { $book_data = $book->asks; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBookletCoverCost ($Nup, $quantity, $coverPrice, &$rawCost) {\n\tif ($_POST[\"book\"] == \"book\") {\n\t\t$coverCost = (($quantity / $Nup) * $coverPrice);\n\t}\n$rawCost += $coverCost;\n}", "function moneyDistribution($money, $source_id, $destin_id, $payment_type, $pdo_bank, $pdo) {\n $credit_c...
[ "0.6058015", "0.6057354", "0.60060334", "0.5935691", "0.57803166", "0.57643336", "0.5746035", "0.5666133", "0.5598961", "0.5559883", "0.5550718", "0.55246174", "0.5513653", "0.5501625", "0.5482901", "0.5477178", "0.5403722", "0.54011154", "0.53794396", "0.5375584", "0.5367629...
0.7894011
0
Returns XML description of opensearch feed
Возвращает XML-описание корма opensearch
public function desc() { $desc = ' <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>' . $this->feedTitle . '</ShortName> <Description>' . $this->feedDescription . '</Description> <Langua...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function opensearchdescription() {\n // Set the correct content type\n $this->response->type('application/opensearchdescription+xml');\n // and return the default view\n return;\n }", "public function rss() {\n $this->response->type('application/rss+xml');\n $r...
[ "0.7209295", "0.6345715", "0.6280838", "0.61937165", "0.61186427", "0.60378593", "0.60247403", "0.5908472", "0.59030014", "0.58783126", "0.58468693", "0.5831966", "0.58291715", "0.5779888", "0.57717544", "0.5748836", "0.57371426", "0.5726594", "0.57145345", "0.56641436", "0.5...
0.7979862
0
Check php package exists and has corresponding version Returns 0 on success, nonzero otherwise
Проверяет, существует ли пакет php и имеет ли он соответствующую версию. Возвращает 0 в случае успеха, ненулевое значение в противном случае
public function check() { require_once 'PEAR/Registry.php'; $registry = new PEAR_Registry(); $installedVersion = $registry->packageInfo($this->name, 'version', $this->channel); if (is_null($installedVersion)) { $this->log('Package "'.$this->name.'" from "'.$this->channel.'" is required', Project::MSG_ERR); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkExistsPhp()\n {\n $server_info = AiBolitHelper::getServer()->get_info();\n $php = isset($server_info['phparr'][self::getScannerPhpVersion()]) ? $server_info['phparr'][self::getScannerPhpVersion()] : 0;\n return $php ? true : false;\n }", "protected function ...
[ "0.6739444", "0.6569344", "0.64490646", "0.64352036", "0.63685185", "0.6299148", "0.62232006", "0.62232006", "0.60514754", "0.6051344", "0.60476935", "0.60080016", "0.598131", "0.59732085", "0.5969059", "0.59402484", "0.5935177", "0.5916551", "0.58818376", "0.58401644", "0.58...
0.73459953
0
"UPDATE IGNORE table SET foo = bar WHERE hallo = world"
"UPDATE IGNORE table SET foo = bar WHERE hallo = world"
public function update_or_ignore() { $this->update_ignore('table', array('foo' => 'bar'), array('hello' => 'world')); // you can also do $this->ignore(); $this->update('table', array('foo' => 'bar'), array('hello' => 'world')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_or_ignore()\n {\n $this->insert_ignore('table', array('foo' => 'bar'));\n\n // you can also do\n $this->ignore();\n $this->insert('table', array('foo' => 'bar'));\n }", "public function insert_ignore($table, array $values);", "public function add_or_update()\n {\n $this->o...
[ "0.60989666", "0.5541755", "0.5111483", "0.48818597", "0.4840777", "0.47943693", "0.4763685", "0.47367382", "0.47195423", "0.47115836", "0.46986747", "0.46842548", "0.4674695", "0.46598226", "0.4655495", "0.46513155", "0.46349826", "0.46239203", "0.46048772", "0.45855588", "0...
0.703073
0
"INSERT INTO table (foo) VALUES (bar) ON DUPLICATE KEY UPDATE foo = foo + 1"
"INSERT INTO table (foo) VALUES (bar) ON DUPLICATE KEY UPDATE foo = foo + 1"
public function add_or_update() { $this->on_duplicate_key('foo = foo + 1'); $this->insert('table', array('foo' => 'bar')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dbupinsert($table, $fields, $onduplicate, $funcs = null) {\r\n\tglobal $msq;\r\n\tlist($keys, $vals) = db_fields_to_keys_vals($fields, $funcs);\r\n\t$upds = [];\r\n\tforeach ($onduplicate as $o) {\r\n\t\t$upds []= $o.\" = values(\".$o.\") \";\r\n\t}\r\n\t$q = \"insert into \".$table.\" (\".implode(\", \",...
[ "0.625163", "0.5756864", "0.5683194", "0.54887074", "0.5465198", "0.537633", "0.53289455", "0.5313028", "0.5273307", "0.5252517", "0.52489406", "0.521494", "0.5210163", "0.52081966", "0.5178834", "0.5176518", "0.51713914", "0.51504874", "0.5111412", "0.509894", "0.5075848", ...
0.76335025
0
/====================================================== SUMAR EL TOTAL DE VENTAS SIN ENVASES Y SIN SERVICIOS ======================================================== $tabla="hist_salidas"; $item=$_POST["fechasalida"]; $fechacutvta=null; $valor=$_POST["numcaja"]; $cerrado=$_POST["cerrado"];
/====================================================== СУММИРОВАНИЕ ОБЩЕГО КОЛИЧЕСТВА ПРОДАЖ БЕЗ УПАКОВОК И БЕЗ УСЛУГ ======================================================== $tabla="hist_salidas"; $item=$_POST["fechasalida"]; $fechacutvta=null; $valor=$_POST["numcaja"]; $cerrado=$_POST["cerrado"];
static public function mdlSumaTotales($tabla, $item, $valor, $cerrado, $fechacutvta){ $campo="id_caja"; $rsp=array(); $ventas=self::mdlSumaTotalVentas($tabla, $item, $valor, $cerrado, $fechacutvta); $ventasgral=$ventas["sinpromo"]>0?$ventas["sinpromo"]:0; $ventaspromo=$ventas["promo"]>0?$ventas["promo"]:0; $su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function mdlSumaTotalVentas($tabla, $item, $valor, $cerrado, $fechacutvta){\t\n //CAMBIAR EL FORMATO DE FECHA A yyyy-mm-dd \n //$fechadehoy = explode('/', $valor); \n\t//$valor = $fechadehoy[2].'-'.$fechadehoy[1].'-'.$fechadehoy[0];\n\t/*\n*/\n if($fechacutvta!=null){\n\t\t$stmt = Conexion...
[ "0.7623576", "0.7444876", "0.73746806", "0.7367838", "0.7235917", "0.71097195", "0.70996803", "0.6955557", "0.67195123", "0.6680896", "0.66331273", "0.65827423", "0.65657026", "0.65552944", "0.65450805", "0.6520679", "0.6519042", "0.64844173", "0.6476044", "0.64497286", "0.64...
0.77842
0
Renders notifications mail output
Отображает вывод электронной почты с уведомлениями
protected function renderNotifications() { $notifications = Yii::$app->getModule('notification')->getMailNotifications($this->user, $this->interval); $result['html'] = ''; $result['text'] = ''; foreach ($notifications as $notification) { $result['html'] .= $notification...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajan_core_render_message() {\n\n\t// Get ActivityNotifications\n\t$ajan = activitynotifications();\n\n\tif ( !empty( $ajan->template_message ) ) :\n\t\t$type = ( 'success' === $ajan->template_message_type ) ? 'updated' : 'error';\n\t\t$content = apply_filters( 'ajan_core_render_message_content', $ajan-...
[ "0.7247294", "0.6991157", "0.6989844", "0.6970031", "0.6961334", "0.6759613", "0.67397475", "0.6645717", "0.66312414", "0.6627612", "0.66237766", "0.66104823", "0.65930617", "0.658493", "0.65463364", "0.6538838", "0.65281373", "0.6496861", "0.6496755", "0.6490204", "0.6473041...
0.7846416
0
Renders activity mail output
Отображает выходное письмо о деятельности
protected function renderActivities() { $activities = Yii::$app->getModule('activity')->getMailActivities($this->user, $this->interval); $result['html'] = ''; $result['text'] = ''; foreach ($activities as $activity) { $result['html'] .= $activity->render(BaseActivity::O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render() {\n\t\t$supportUrl = 'https://wpml.org/forums/forum/english-support/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmltm';\n\t\t$supportLink = '<a target=\"_blank\" rel=\"nofollow\" href=\"' . esc_url( $supportUrl ) . '\">'\n\t\t . esc_html__( 'contact our support team', 'w...
[ "0.67172384", "0.6651724", "0.6639264", "0.64766324", "0.63712144", "0.6335329", "0.62818974", "0.6252626", "0.6235316", "0.62030286", "0.61920345", "0.61312646", "0.6070423", "0.6039241", "0.6016759", "0.6015052", "0.5979328", "0.5960076", "0.595852", "0.59103173", "0.590236...
0.705034
0
Checks if user should receive emails
Проверяет, должен ли пользователь получать электронные письма
protected function isMailingEnabled() { if ($this->user->email === "") { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canMail() {\n\t\tif ($this->ignoredUser || ($this->onlyBuddyCanMail && !UserProfile::isBuddy($this->userID)) || (!$this->userCanMail && !$this->onlyBuddyCanMail)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "protected function shouldSendEmail(): bool\r\n {\r\n return $t...
[ "0.73008347", "0.72299373", "0.7039424", "0.69517875", "0.6918258", "0.68700665", "0.6837848", "0.6789897", "0.67749554", "0.6741886", "0.6676521", "0.6610327", "0.6604623", "0.6598073", "0.6594624", "0.6573234", "0.6515267", "0.6514192", "0.65025866", "0.64827526", "0.647756...
0.724195
1
Get the default disk name
Получить имя диска по умолчанию
public static function getDiskName() { $defaultDisk = config('filesystems.default', 'public'); // $defaultDisk = config('filesystems.cloud'); // Only for tests purpose! return $defaultDisk; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDefaultDisk()\n {\n return Config::get('assets.disk', self::STORAGE_DISK);\n }", "public function getDiskName(): string\n {\n return $this->disk;\n }", "public static function getDisk()\n {\n\t\t$defaultDisk = self::getDiskName();\n\t\t$disk = Storage::dis...
[ "0.7900356", "0.7814121", "0.7730502", "0.6800342", "0.66934264", "0.6450787", "0.6450787", "0.6395856", "0.63587856", "0.63587856", "0.63243264", "0.6302482", "0.62986475", "0.6290895", "0.6232352", "0.6215477", "0.61628944", "0.6148586", "0.6141489", "0.61113113", "0.610837...
0.88432
0
Set the backup system disks
Установите системные диски резервного копирования
public static function setBackupDisks() { $disks = config('backup.backup.destination.disks'); if (config('settings.backup.storage_disk') == '1') { $disks = [config('filesystems.cloud')]; } else if (config('settings.backup.storage_disk') == '2') { $disks = array_merge($disks, [config('filesystems.cloud')]);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDisks($value)\n {\n return $this->set('Disks', $value);\n }", "public function setDisk($value)\n {\n return $this->set('Disk', $value);\n }", "public function setDisk($value)\n {\n return $this->set('Disk', $value);\n }", "public function setDisk($val...
[ "0.6493285", "0.62382245", "0.62378967", "0.62378967", "0.58338773", "0.57062984", "0.5659764", "0.55471164", "0.55146724", "0.54551667", "0.53790575", "0.53432935", "0.52415246", "0.51776415", "0.5160577", "0.5149313", "0.5138544", "0.51159835", "0.5083638", "0.50364596", "0...
0.775691
0
Get the company finished tasks
Получить завершенные задачи компании
public function getFinishedCompanyTasks(Company $company): Collection { return CompanyTask::where('company_tasks.status', CompanyTask::STATUS_FINISHED) ->join('company_task_user_applies', 'company_tasks.id', '=', 'company_task_user_applies.company_task_id') ->wher...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTasks();", "public function getTasks();", "public function getAllTasks()\n\t{\n\t\treturn $this->task->orderBy('is_completed', 'ASC')->get();\t\n\t}", "public function getUserFinishedCompanyTasks(User $user): Collection {\n return CompanyTask::where('company_tasks.status', CompanyTa...
[ "0.7064209", "0.7064209", "0.6779647", "0.6549908", "0.65304404", "0.65202427", "0.6426082", "0.6421798", "0.6381044", "0.6340571", "0.6265502", "0.62553954", "0.62544584", "0.62501144", "0.61828315", "0.6178079", "0.6177303", "0.61642313", "0.61109793", "0.6108499", "0.61084...
0.71601343
0
Check if company can accept user apply on it is task
Проверить, может ли компания принять заявку пользователя на её задачу
public function canCompanyAcceptUserApply(CompanyTaskUserApply $companyTaskUserApply, CompanyTask $companyTask, Company $company): bool { if (!$this->canCompanyViewTask($companyTask, $company) || $companyTaskUserApply->company_task_id !== $companyTask->id || $companyTask->status === CompanyTask::STATUS_FINISHED...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canUserApplyOnTask(CompanyTask $companyTask, User $user): bool {\n if (!$companyTask->suspendedByAdmin) {\n if ($companyTask->status !== CompanyTask::STATUS_FINISHED) {\n if (!$this->isUserApplied($companyTask, $user)) {\n if ($companyTask->status...
[ "0.7233736", "0.714033", "0.67320824", "0.6709452", "0.66451645", "0.65449524", "0.6476504", "0.64407486", "0.64098305", "0.6396289", "0.6258771", "0.6244518", "0.61870915", "0.6167896", "0.6160291", "0.61535925", "0.611619", "0.60892415", "0.6050478", "0.6042235", "0.6032406...
0.7226644
1
Check if company can reject user apply on it is task
Проверить, может ли компания отказать пользователю в заявке на её задание
public function canCompanyRejectUserApply(CompanyTaskUserApply $companyTaskUserApply, CompanyTask $companyTask, Company $company): bool { if (!$this->canCompanyViewTask($companyTask, $company) || $companyTaskUserApply->company_task_id !== $companyTask->id || $companyTask->status === CompanyTask::STATUS_FINISHED...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rejectApplyOnTask(Company $company, CompanyTask $companyTask, CompanyTaskUserApply $companyTaskUserApply): bool {\n try {\n DB::transaction(function () use ($companyTaskUserApply) {\n $companyTaskUserApply->companyTask->decrement('appliedUsersCount');\n ...
[ "0.6986812", "0.6550319", "0.6463827", "0.64286447", "0.6158812", "0.61558217", "0.6149039", "0.6088151", "0.6088083", "0.60650927", "0.6014823", "0.5911986", "0.5835319", "0.5832451", "0.5831522", "0.58108014", "0.5802723", "0.5787871", "0.57846075", "0.5782173", "0.5779435"...
0.70179826
0
Check if company can view task
Проверить, может ли компания просматривать задачу
public function canCompanyViewTask(CompanyTask $companyTask, Company $company): bool { if ($companyTask->suspendedByAdmin || $companyTask->company_id !== $company->id) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAuthorized($task = '') {\n\n\t\t$controllerName = KenedoController::getControllerNameFromClass(get_class($this));\n\n\t\tif (strpos($controllerName, 'admin') === 0) {\n\n\t\t\t$asset = $this->component.'.core.manage';\n\t\t\t$authorized = KenedoPlatform::p()->isAuthorized($asset, NULL, 20);\n\n\t...
[ "0.6995473", "0.67358375", "0.6582371", "0.6502737", "0.6470593", "0.6450751", "0.6445717", "0.6400311", "0.636937", "0.63486296", "0.6319936", "0.6317438", "0.6289903", "0.6250967", "0.6203537", "0.61471176", "0.6141465", "0.6119527", "0.6112572", "0.60477024", "0.602819", ...
0.77281475
0
Gets only one user according to surname and firstname.
Получает только одного пользователя по фамилии и имени.
public function getUser($surname, $firstname) { return self::getModel("users WHERE firstname = '$firstname' AND surname = '$surname'", "*"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserOne()\r\n {\r\n return $this->getOne(User::class, [\r\n 'id' => 'user_id',\r\n ]); \r\n }", "function getFirst_Name(){\n $user = $this->loadUser(Yii::app()->user->id);\n\treturn $user->firstname;\n }", "function getFirst_Name() {\n $user = $this->...
[ "0.68115884", "0.65044653", "0.6303529", "0.63035244", "0.62909275", "0.6284422", "0.6250763", "0.6226812", "0.6225557", "0.62107885", "0.6189521", "0.6189521", "0.6183788", "0.6180784", "0.6170203", "0.6166087", "0.6139786", "0.61262965", "0.61133623", "0.6106927", "0.610028...
0.7623513
0
Is current user student ?
Является ли текущий пользователь студентом?
public function is_student() { return $this->session->get("niveau_acces") >= 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isStudent()\n\t{\n\t\treturn $this->isUser() && $this->user->getIsStudent();\n\t}", "public function isStudent(){\n\t\t// get user type\n\t\t$session_data = $this->session->userdata('logged_in'); // get userid from session\n\t\t\t\n\t\t// redirect to home if user is not a student\n\t\tif($session...
[ "0.84200203", "0.77661914", "0.71982414", "0.70233965", "0.688675", "0.6878892", "0.6872088", "0.6845466", "0.6805094", "0.6794017", "0.6757122", "0.67321455", "0.6731513", "0.67155933", "0.6660349", "0.6629409", "0.654821", "0.65211713", "0.6471025", "0.6471025", "0.6458451"...
0.8232161
1
Is current user surveillant ?
Является ли текущий пользователь наблюдателем?
public function is_surveillant() { return $this->session->get("niveau_acces") >= 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isLost(){\n\tglobal $userid;\n\tif(!isConnected() && !isVisitor()) return true;\n\n\treturn false;\n}", "public function isLogged()\n {\n return $this->getID() && $this->getID() == get_current_user_id();\n }", "public function notYou()\n {\n return $this->user_id !== auth()->id(...
[ "0.67867756", "0.6728233", "0.66866714", "0.66710365", "0.6662985", "0.6624156", "0.65643173", "0.65439445", "0.6516247", "0.651496", "0.6513065", "0.65051466", "0.65042055", "0.64929175", "0.64924335", "0.6483878", "0.6483021", "0.6477736", "0.6466861", "0.6466861", "0.64667...
0.73407996
0
Gets query for [[DetailFasilitas]].
Получает запрос для [[DetailFasilitas]].
public function getDetailFasilitas() { return $this->hasMany(DetailFasilitas::className(), ['kode_fasilitas' => 'kode_fasilitas']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetDetailFilter() {\n\n\t\t// Detail filter\n\t\t$sDetailFilter = \"\";\n\t\tif ($this->getCurrentMasterTable() == \"t_gaji_master\") {\n\t\t\tif ($this->gjm_id->getSessionValue() <> \"\")\n\t\t\t\t$sDetailFilter .= \"`gjm_id`=\" . ew_QuotedValue($this->gjm_id->getSessionValue(), EW_DATATYPE_NUMBER, \"DB\...
[ "0.6253785", "0.61486953", "0.5916725", "0.58044374", "0.5752545", "0.56992537", "0.56282383", "0.56152314", "0.56091", "0.5598165", "0.5552816", "0.55494237", "0.5545406", "0.55236906", "0.54999363", "0.54436976", "0.5440283", "0.5422778", "0.5396026", "0.5391901", "0.537874...
0.71495706
0
Function that will convert an input PlexID to their Username.
Функция, которая преобразует вводимый PlexID в их Имя пользователя.
function plexIDToUsername($id, $data) { foreach ($data->User as $usr){ if ($usr->attributes()['id'] == $id) { return $usr->attributes()['username']; break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUsernameByID($ID)\r\n\t{\r\n\t\t// init the output\r\n\t\t$name = \"\";\r\n\r\n\t\t// did we get a valid id\r\n\t\tif(isset($ID) && !empty($ID))\r\n\t\t{\r\n\t\t\t// get the items in the list\r\n\t\t\t$items = $this->getUserNameList();\r\n\r\n\t\t\t// for each item returned\r\n\t\t\tforeach($items as $...
[ "0.64716107", "0.6396393", "0.633493", "0.62104654", "0.6200001", "0.6184609", "0.61399287", "0.61309755", "0.61116934", "0.61075747", "0.61028033", "0.6075735", "0.6064913", "0.603788", "0.6011897", "0.598451", "0.5966318", "0.5936838", "0.59354234", "0.5910382", "0.5907873"...
0.70308983
0
Displays a Heartbeat revision.
Показывает ревизию Heartbeat.
public function revisionShow($heartbeat_revision) { $heartbeat = $this->entityManager()->getStorage('heartbeat')->loadRevision($heartbeat_revision); $view_builder = $this->entityManager()->getViewBuilder('heartbeat'); return $view_builder->view($heartbeat); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function revisionOverview(HeartbeatInterface $heartbeat) {\n $account = $this->currentUser();\n $langcode = $heartbeat->language()->getId();\n $langname = $heartbeat->language()->getName();\n $languages = $heartbeat->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n ...
[ "0.70681256", "0.6313926", "0.6229943", "0.60081744", "0.6007743", "0.60065734", "0.5908668", "0.58766884", "0.5865913", "0.5828987", "0.5708711", "0.5686116", "0.56860125", "0.56798047", "0.56447643", "0.5595136", "0.55705947", "0.5569736", "0.55065954", "0.54985285", "0.549...
0.7822323
0
Page title callback for a Heartbeat revision.
Возврат заголовка страницы для ревизии Heartbeat.
public function revisionPageTitle($heartbeat_revision) { $heartbeat = $this->entityManager()->getStorage('heartbeat')->loadRevision($heartbeat_revision); return $this->t('Revision of %title from %date', array('%title' => $heartbeat->label(), '%date' => format_date($heartbeat->getRevisionCreationTime()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function titleCallback() {\r\n return [\r\n '#markup' => $this->t('The title of this page is dynamically changed by the title callback for this route defined in menu_example.routing.yml.'),\r\n ];\r\n }", "protected function regeneratePageTitle() {}", "protected function renderPageTitle() {}...
[ "0.77275234", "0.66672003", "0.66649276", "0.65771765", "0.6536775", "0.64468586", "0.6440742", "0.6432068", "0.6378361", "0.63727564", "0.6367884", "0.6338725", "0.63135403", "0.6296663", "0.62862086", "0.62862086", "0.62786686", "0.6274142", "0.62445015", "0.61860335", "0.6...
0.71346354
1
Generates an overview table of older revisions of a Heartbeat .
Генерирует обзорную таблицу старых ревизий Heartbeat.
public function revisionOverview(HeartbeatInterface $heartbeat) { $account = $this->currentUser(); $langcode = $heartbeat->language()->getId(); $langname = $heartbeat->language()->getName(); $languages = $heartbeat->getTranslationLanguages(); $has_translations = (count($languages) > 1); $heartbe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function node_revision_overview($node) {\n drupal_set_title(t('Revisions for %title', array('%title' => $node->title)));\n\n $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));\n\n $revisions = node_revision_list($node);\n\n $rows = array();\n $revert_permission = FALSE;\n if ((...
[ "0.6617448", "0.64417744", "0.6434576", "0.6222176", "0.6190369", "0.609945", "0.60667366", "0.5871122", "0.584748", "0.5826864", "0.5801592", "0.5800364", "0.5749291", "0.57405126", "0.57390064", "0.567782", "0.5646553", "0.5645041", "0.5639626", "0.56383854", "0.5636559", ...
0.7712173
0
end testAction() Read orders.
end testAction() Чтение заказов.
public function readordersAction() { $this->getResponse()->setBody(self::getHelper()->readorders()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readAll()\n {\n $response = $this->createClient()->v1()->orders()->get();\n $this->assertEquals(200, $response->getStatusCode());\n }", "function orders() {\n\t \treturn $this->hook(\"/{$this->subject_slug}/v1/orders.xml?api_key={$this->api_key}\",\"order\");\n\t}", "funct...
[ "0.70690286", "0.6616077", "0.63778144", "0.6355066", "0.6306281", "0.62750727", "0.6173533", "0.61647964", "0.61563927", "0.61563927", "0.61563927", "0.61563927", "0.61563927", "0.61563927", "0.615614", "0.6134274", "0.612696", "0.6108542", "0.6081507", "0.6073699", "0.60518...
0.76356447
0
end readordersAction() Read refunds.
end readordersAction() Чтение возвратов.
public function readrefundsAction() { $this->getResponse()->setBody(self::getHelper()->readrefunds()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readordersAction()\n {\n $this->getResponse()->setBody(self::getHelper()->readorders());\n\n }", "public function refund($params)\n {\n return $this->request(Resource::RESOURCE_ORDER_REFUND, $params);\n }", "public function refund();", "public function refund(){\n\t\treturn ...
[ "0.6504675", "0.6368288", "0.61771435", "0.60852444", "0.6058139", "0.6008617", "0.59694165", "0.5922033", "0.5854285", "0.5853004", "0.58450085", "0.5730567", "0.5723405", "0.5716843", "0.5707936", "0.5653021", "0.56470716", "0.5613124", "0.5609688", "0.5592876", "0.5591783"...
0.7580365
0
end infoAction() Read Config.
end infoAction() Read Config.
public function readConfigAction() { $this->getResponse()->setBody(self::getHelper()->readconfig()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getConfig();", "abstract public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getCon...
[ "0.67728543", "0.6694912", "0.6630782", "0.6630782", "0.6630782", "0.6630782", "0.6630782", "0.6630782", "0.6630782", "0.6630782", "0.66267914", "0.6563057", "0.65599424", "0.6530876", "0.6511697", "0.6506125", "0.6468117", "0.64532924", "0.64286894", "0.64286894", "0.6421859...
0.7415825
0
Finds a count of Inspection Rating by Inspection Id
Находит количество оценок инспекции по идентификатору инспекции
public function findCountByInspectionId($inspectionId) { $count = R::count('inspectionrating', ' uuid = :inspectionId ', [':inspectionId' => $inspectionId]); return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countRatingsForRun($runid, $rating)\n {\n $qb = $this->em->createQueryBuilder();\n\n return $this->em->createQueryBuilder()\n ->select(\"count(a.document) as documents\")\n ->from(Assessment::class, 'a')\n ->leftJoin(SearchResult::class, \"s\", \"WI...
[ "0.5818809", "0.5777182", "0.57440203", "0.562496", "0.5612205", "0.54981273", "0.5494153", "0.54362094", "0.5413987", "0.5351213", "0.5347897", "0.5301699", "0.52959716", "0.5281363", "0.5271863", "0.5258434", "0.5230992", "0.522749", "0.52048624", "0.51909584", "0.51829195"...
0.71490407
0
pluralize word if count 0 or > 1
условно слово, если количество равно 0 или больше 1
function pluralize_word($word, $count) { if ($count == 1) return singular($word); return plural($word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pluralize($word);", "function pluralize($num, $word, $plural) {\n return $num . ' ' . ($num == 1 ? $word : $plural);\n}", "private function _plural($num) {\n\t\tif ($num != 1) { return \"s\"; }\n\t}", "public static function pluralize( $word )\n {\n // special cases\n if( 'access' =...
[ "0.78767097", "0.76176137", "0.72877276", "0.70969933", "0.7060179", "0.70560867", "0.70054513", "0.6986864", "0.69614655", "0.6891581", "0.6854376", "0.68263125", "0.68231815", "0.6794357", "0.67884713", "0.6781829", "0.6756448", "0.6756315", "0.6700575", "0.6659232", "0.663...
0.7957694
0
today date for insertion into db
дата сегодня для вставки в базу данных
function date_today_db() { return date('Y-m-d H:i:s'); //in the format yyyy-mm-dd }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertDate()\n {\n //\n }", "public function __datetoday() {\n\t\t\treturn date(\"Y-m-d\");\n\t\t}", "function date_today_db() {\n return $today = date('Y-m-d H:i:s'); //in the format yyyy-mm-dd\n}", "function today() {\n return date(\"Y-m-d\");\n }", "public funct...
[ "0.7562217", "0.72257173", "0.7222415", "0.70394146", "0.6914569", "0.681983", "0.68182594", "0.6807119", "0.6790486", "0.6756994", "0.6558052", "0.6480253", "0.64585924", "0.644712", "0.644103", "0.6424822", "0.64204025", "0.6370521", "0.6310184", "0.62792295", "0.62792295",...
0.730864
1
Get list of attributes for the CHAOS objects, i.e. the list of registered filters for the WPChaosObject
Получить список атрибутов для объектов CHAOS, т.е. список зарегистрированных фильтров для WPChaosObject
public static function get_chaos_attributes() { global $wp_filter; if(empty(self::$attributes)) { $matches = array(); foreach($wp_filter as $filter => $arr) { if(preg_match('/^'.self::OBJECT_FILTER_PREFIX.'([^-]*)/',$filter,$matches)) { self::$attributes[$matches[1]] = ucfirst($matches[1]); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilterableAttributes()\n {\n $facets = array();\n if($config = Mage::getStoreConfig('antidot/engine/facets')) {\n $config = unserialize($config);\n\n foreach($config as $facet) {\n list($id, $label) = explode('|', $facet['facet']);\n ...
[ "0.6508215", "0.6363615", "0.62185484", "0.61991626", "0.619255", "0.61793137", "0.61416817", "0.61337554", "0.6132033", "0.6132033", "0.6132033", "0.6132033", "0.6132033", "0.6132033", "0.6132033", "0.6132033", "0.6132033", "0.61292154", "0.6122108", "0.6122108", "0.61120456...
0.74156415
0
This is called on admin_init to check if this plugins options was updated.
Это вызывается при admin_init, чтобы проверить, было ли обновлено настроек этого плагина.
public function settings_updated() { global $pagenow; $on_options_page = ($pagenow == 'options-general.php'); $on_plugins_page = (isset($_GET['page']) && $_GET['page'] == $this->menu_page); $just_updated = (isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true'); if($on_options_page && $on_p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isOptionsUpdated()\n {\n return !empty($this->itemErrors[SkuValidator::ERROR_OPTIONS_UPDATED]);\n }", "function is_plugin_update() {\n\t\t\treturn ! $this->is_plugin_new_install();\n\t\t}", "public static function has_update() {\n\t\trequire_once(trailingslashit(ABSPATH) . 'wp-admi...
[ "0.72275656", "0.7098408", "0.67521167", "0.67451674", "0.6666509", "0.6614534", "0.6586488", "0.6574364", "0.6541197", "0.6471475", "0.6452227", "0.64156306", "0.64077204", "0.63718235", "0.6371274", "0.6367192", "0.6331224", "0.6321558", "0.63204193", "0.62826055", "0.62790...
0.71906817
1
Get instance of CHAOS Portal
Получить экземпляр CHAOS Portal
public static function instance($renew = false) { if(self::$instance == null || $renew) { //Instantiate CHAOS Portal self::$instance = new WPPortalClient(get_option('wpchaos-servicepath'), get_option('wpchaos-clientguid')); } return self::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(WePortal $portal);", "protected function createView()\n {\n LayoutModule::setLayoutClassName( PortalLayout::class );\n return new PortalView();\n }", "public function newPortal(){\n\t\t$this->wlan_if = null;\n\t\t$this->ssid = null;\n\t\t$this->remote_file = null...
[ "0.62269515", "0.60814506", "0.60130674", "0.57743967", "0.5603142", "0.5478353", "0.54096144", "0.5395613", "0.5367181", "0.5330788", "0.53179824", "0.53077525", "0.5278012", "0.5256139", "0.52243567", "0.51629996", "0.5162306", "0.5161927", "0.5145954", "0.51316416", "0.512...
0.7037967
0
Returns the aggregators instances of the provided entities.
Возвращает экземпляры агрегаторов предоставленных сущностей.
private function getAggregatorsFromEntities(ObjectManager $objectManager, array $entities): array { $aggregators = []; foreach ($entities as $entity) { $entityClassName = ClassUtils::getClass($entity); if (array_key_exists($entityClassName, $this->entitiesAggregators)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAggregations();", "public function GetAggregates(){\n $this->current();\n return $this->aggs;\n }", "public function getAgitators()\n {\n $agitators = [];\n foreach ($this->agitator_ids as $agitator_type_id) {\n $agitators[] = new Agitator($agitat...
[ "0.630382", "0.5888959", "0.5699487", "0.5661722", "0.56544477", "0.56400406", "0.54690784", "0.5458191", "0.5411325", "0.53419286", "0.5243848", "0.51695675", "0.5142999", "0.5135723", "0.5095625", "0.50060016", "0.49990615", "0.49681923", "0.4955163", "0.49434903", "0.48870...
0.74045324
0
Set synonyms. Update the thesaurus_updated timestamp and insert IDs into thesaurus table.
Установить синонимы. Обновить метку thesaurus_updated и вставить идентификаторы в таблицу thesaurus.
public function setSynonyms( WordEntity\Word $wordEntity, array $synonymEntities ) { $this->wordTable->updateSetThesaurusUpdatedToNowWhereWordId( $wordEntity->wordId ); $order = 0; foreach ($synonymEntities as $synonymEntity) { $order++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSynonyms(array $synonyms): self\n {\n $this->synonyms = $synonyms;\n\n return $this;\n }", "public function synonyms()\n {\n return $this->hasMany('App\\Synonym');\n }", "function addSynonymForAuthor($author, $syn_author)\r\n {\r\n $CI = &get_instance();\...
[ "0.6849119", "0.55565876", "0.5409407", "0.53804827", "0.5180966", "0.5010149", "0.498114", "0.489857", "0.48015466", "0.4796241", "0.47846672", "0.476474", "0.473207", "0.4724123", "0.4715815", "0.47050074", "0.46363425", "0.45722556", "0.45710227", "0.45640573", "0.45577514...
0.7151396
0
Merge webpack bundles with classic bundles and cache it if needed
Объединить пакеты webpack с классическими пакетами и кэшировать их при необходимости
protected function mergeWebpackBundles() { try { if ((isset($this->webpackPath) === true) && (is_array($this->webpackBundles) === true)) { $cacheKey = self::CACHE_KEY . get_called_class(); if ((Yii::$app->cache === null) || (Yii::$app->cache->get($cacheKey) === fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function mergeWebpackBundles()\n {\n try {\n if ((isset($this->webpackPath) === true) && (is_array($this->webpackBundles) === true)) {\n $cacheKey = self::CACHE_KEY . get_called_class();\n $this->sourcePath = $this->webpackPath . '/' . $this->webpackDist...
[ "0.7900619", "0.59971756", "0.57063276", "0.56426203", "0.5534146", "0.55128914", "0.5481134", "0.5401295", "0.5374209", "0.53625435", "0.53541327", "0.5319685", "0.525655", "0.5209463", "0.51961994", "0.51942325", "0.51717484", "0.5091901", "0.50840914", "0.50753534", "0.506...
0.79349864
0
Checks whether the user's account has expired. Internally, if this method returns false, the authentication system will throw an AccountExpiredException and prevent login.
Проверяет, истек ли срок действия учетной записи пользователя. Внутренне, если этот метод возвращает false, система аутентификации вызовет исключение AccountExpiredException и запретит вход в систему.
public function isAccountNonExpired() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAccountNonExpired()\n {\n if (true === $this->expired) {\n return false;\n }\n \n if (null !== $this->expiresAt && $this->expiresAt->getTimestamp() < time()) {\n return false;\n }\n \n return true;\n }", "public functi...
[ "0.7964153", "0.7673763", "0.7646444", "0.7641096", "0.76265705", "0.76265705", "0.76265705", "0.76265705", "0.76265705", "0.76265705", "0.76265705", "0.7556685", "0.73178524", "0.73178524", "0.70580554", "0.7031991", "0.6948178", "0.6853292", "0.68489736", "0.68269616", "0.6...
0.768895
1
Retrieve donation by ID.
Получить пожертвование по ID.
public function get(int $id): DonationInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($id)\n {\n $donation = new Donation();\n return response()->json(['data' => $donation->getAllRowsByUser($id)]);\n }", "public function donor()\n {\n return Donor::where('id', $this->donor_id)->first();\n }", "public static function getDonorInfo(int $id)\n ...
[ "0.7119602", "0.64426875", "0.6322316", "0.6276467", "0.6085106", "0.6003948", "0.59763175", "0.5970964", "0.5953955", "0.5926439", "0.5906427", "0.5855858", "0.58339787", "0.58312356", "0.58267087", "0.5823407", "0.58130753", "0.57713735", "0.575731", "0.5756731", "0.5755548...
0.80427223
0
/ end spartan head cleanup remove WP version from RSS
/ end spartan head cleanup remove WP version from RSS
function spartan_rss_version() { return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function theme_rss_version() { return ''; }", "function mdwpfp_rss_version() { return ''; }", "function po_rss_version() { return ''; }", "function wpgrade_rss_version() { return ''; }", "function bulledev_rss_version() { return ''; }", "function bones_rss_version() { return ''; }", "public function re...
[ "0.7911835", "0.7854354", "0.7851502", "0.7800763", "0.7693358", "0.7692792", "0.74901474", "0.74326235", "0.73291606", "0.7293848", "0.70061773", "0.688168", "0.68303776", "0.68045944", "0.6755963", "0.671834", "0.6708776", "0.66664153", "0.6653587", "0.65734696", "0.6573469...
0.7988534
0
Test case for deleteImage Delete Property Image.
Тестовый случай для удаления изображения Удалить свойство изображения.
public function testDeleteImage() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function imageDelete($property);", "public static function deleteImage(){}", "public function testDeleteInvalidImage() {\n\t\t//create an Image and try to delete it without actually inserting it\n\t\t$image = new Image(null, $this->VALID_IMAGEPATH, $this->VALID_IMAGETYPE);\n\t\t$image->delete($this->getPDO());...
[ "0.81620413", "0.7836337", "0.75928587", "0.75732315", "0.7435937", "0.72809833", "0.71713895", "0.71031284", "0.7081989", "0.6984858", "0.694571", "0.68997", "0.687802", "0.6847116", "0.684034", "0.6839487", "0.68112165", "0.67676944", "0.6751206", "0.67463315", "0.6737016",...
0.82296914
0
Test case for postImage Create Property Image.
Тест-кейс для создания свойства изображения после загрузки изображения.
public function testPostImage() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPeopleImagesCreate()\n { \n $randomId = self::$f1->randomId('person');\n $checkNoImage = self::$f1->get('/v1/people/'.$randomId['person'].'.json');\n if($checkNoImage['body']['person']['@imageURI'] != null){\n $this->testPeopleImagesCreate();\n } else {\n ...
[ "0.69396055", "0.68839186", "0.6668655", "0.656441", "0.65614885", "0.6471278", "0.6309087", "0.62911105", "0.6241709", "0.62404317", "0.6234814", "0.6157079", "0.6102657", "0.60614675", "0.603974", "0.60344017", "0.6003374", "0.59988034", "0.59611654", "0.5955236", "0.595391...
0.7838705
0
Test case for putImage Update Property Image (image urls can't be modified).
Тест-кейс для putImage Update Property Image (URL-адреса изображений не могут быть изменены).
public function testPutImage() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProfilePrototypeUpdateImage()\n {\n\n }", "public function testUpdateValidImage() {\n\t\t//count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"image\");\n\n\t\t//create a new Image and insert into MySQL\n\t\t$image = new Image(null, $this...
[ "0.7276464", "0.7124142", "0.7074878", "0.68612546", "0.68158495", "0.6800185", "0.678134", "0.6774994", "0.6772635", "0.6673678", "0.6660689", "0.6612816", "0.65616214", "0.64439005", "0.6396785", "0.6377192", "0.6370503", "0.6369418", "0.6369418", "0.6369418", "0.6369418", ...
0.7851837
0
Getter for blockchain storage service.
Геттер для службы хранения блокчейна.
public function getStorageService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStorage();", "public function getStorage();", "public function getStorage() {}", "public function getStorage() {}", "public function getStorage() {}", "public static function getStorage() {}", "public function getStorage()\n {\n return $this->get(self::_STORAGE);\n }", ...
[ "0.72118986", "0.72118986", "0.7209249", "0.7208744", "0.72073627", "0.7201312", "0.7155105", "0.6978931", "0.6978931", "0.6978931", "0.6978931", "0.6978931", "0.6978931", "0.6978931", "0.6978931", "0.6978931", "0.69442225", "0.693043", "0.6924442", "0.6901123", "0.6870161", ...
0.74181235
0
Getter for API service.
Геттер для API-сервиса.
public function getApiService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function api() {\n return Injector::inst()->get(self::APIServiceName);\n }", "public function getApi();", "public function getApi();", "public function getApi();", "public function getApi() {\n return $this->_api;\n }", "public function getApi() {\n return $this->...
[ "0.86247116", "0.7559001", "0.7559001", "0.7559001", "0.75429", "0.7536004", "0.7385949", "0.721928", "0.72091997", "0.7061953", "0.7016665", "0.69415", "0.69279003", "0.67990124", "0.67957103", "0.6774304", "0.67392015", "0.67256063", "0.6719684", "0.671626", "0.6610649", ...
0.8688654
0
Getter for Blockchain Node service.
Геттер для службы Blockchain Node.
public function getNodeService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNode()\n {\n return parent::getNode();\n }", "public function getNode()\n {\n return $this->node;\n }", "public function getNode()\n {\n return $this->node;\n }", "public function getNode()\n {\n return $this->node;\n }", "public function getNo...
[ "0.67257065", "0.66419953", "0.66419953", "0.66419953", "0.66419953", "0.66261506", "0.6398864", "0.62835294", "0.6272444", "0.6202637", "0.61874664", "0.61234593", "0.6096318", "0.5994709", "0.5959757", "0.5908073", "0.5854837", "0.57569414", "0.5755349", "0.573461", "0.5648...
0.7169266
0
Getter for validator service.
Геттер для службы валидатора.
public function getValidatorService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValidatorService()\n {\n return $this->validatorService;\n }", "protected function getValidatorService()\n {\n return $this->services['validator'] = $this->get('validator.builder')->getValidator();\n }", "public function getValidator() {}", "public function getVal...
[ "0.8766802", "0.8591562", "0.8327008", "0.8077115", "0.8077115", "0.8071118", "0.8071118", "0.8071118", "0.7931332", "0.7899831", "0.78671175", "0.78595436", "0.7654234", "0.7518818", "0.74754775", "0.7460895", "0.74276316", "0.72247684", "0.72247684", "0.72247684", "0.722356...
0.87392807
1
Getter for miner service.
Геттер для сервиса добычи.
public function getMinerService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVictoireBusinessEntity_WarmerService()\n {\n return $this->services['victoire_business_entity.warmer'] = new \\Victoire\\Bundle\\BusinessEntityBundle\\CacheWarmer\\BusinessEntityWarmer($this->get('victoire_business_entity.annotation_driver'));\n }", "public function service()\r...
[ "0.60824364", "0.6004154", "0.5987587", "0.59317344", "0.59191585", "0.5821621", "0.57836825", "0.57301426", "0.57277596", "0.57277596", "0.56994486", "0.56945974", "0.56773823", "0.5666145", "0.5666145", "0.5666145", "0.5666145", "0.5666145", "0.5666145", "0.5666145", "0.564...
0.7420642
0
Getter for locker service.
Геттер для службы блокировки.
public function getLockerService();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLocker() {\n\t\treturn $this->locker;\n\t}", "function getLocked() {\n\t\treturn $this->get(\"locked\");\n\t}", "public function getLocked()\r\n {\r\n return $this->locked;\r\n }", "public function lockedBy()\n {\n return $this->_provider->lockedBy($this->_mutexKey);\n }"...
[ "0.78964764", "0.64543647", "0.61726564", "0.61661273", "0.6142465", "0.60900277", "0.6020717", "0.5988857", "0.5981771", "0.5958241", "0.59289235", "0.584559", "0.5825705", "0.5783677", "0.5767252", "0.5589563", "0.5589563", "0.5589563", "0.5559477", "0.5547033", "0.5546849"...
0.8654619
0
Getter for collision handler service.
Геттер для службы обработки столкновений.
public function getCollisionHandler();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSecurity_Authentication_GuardHandlerService()\n {\n return $this->services['security.authentication.guard_handler'] = new \\Symfony\\Component\\Security\\Guard\\GuardAuthenticatorHandler($this->get('security.token_storage'), $this->get('event_dispatcher', ContainerInterface::NULL_ON...
[ "0.5716819", "0.546085", "0.5398477", "0.53773445", "0.53773445", "0.5368404", "0.52571315", "0.5236057", "0.52228045", "0.5179687", "0.51370335", "0.5127971", "0.51226896", "0.5075777", "0.5051773", "0.5051773", "0.5048904", "0.50032574", "0.49175495", "0.48876044", "0.48856...
0.83824307
0
Verify that indexer still valid after deleting inactive category
Проверьте, что индексатор все еще действителен после удаления неактивной категории
public function testDeleteInactiveCategory(): void { $this->indexer->reindexAll(); $isInvalidIndexer = $this->indexer->isInvalid(); $this->categoryRepository->deleteByIdentifier(8); $state = $this->indexer->getState(); $state->loadByIndexer($this->indexer->getId()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDelete()\r\n\t{\r\n\t\t// Load table\r\n\t\t$table = Table::model()->findByPk(array(\r\n\t\t\t'TABLE_SCHEMA' => 'indextest',\r\n\t\t\t'TABLE_NAME' => 'table2',\r\n\t\t));\r\n\r\n\t\t// Delete all indices\r\n\t\tforeach($table->indices AS $index)\r\n\t\t{\r\n\t\t\t$this->assertNotSame(false, $in...
[ "0.6327399", "0.61410004", "0.60755813", "0.60209644", "0.59261143", "0.58820504", "0.5826264", "0.5746543", "0.57310915", "0.57223344", "0.5710727", "0.56792355", "0.5664767", "0.5633114", "0.5623863", "0.5618683", "0.55989856", "0.5553925", "0.5542716", "0.55197597", "0.551...
0.74183947
0
Create the default share provider.
Создайте по умолчанию провайдера общей папки.
protected function defaultShareProvider() { if ($this->defaultProvider === null) { $this->defaultProvider = new DefaultShareProvider( $this->serverContainer->getDatabaseConnection(), $this->serverContainer->getUserManager(), $this->serverContainer->getGroupManager(), $this->serverContainer->getLazy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newShare();", "public function createProvider();", "function frame_share($provider, $post_id = null)\n{\n\n // $postid = url_to_postid( $url );\n\n $defaults = array(\n 'provider' => null,\n 'post_id' => $post_id,\n 'url' => ($post_id === null) ? $_SERVER['HTTP_HOST'].$_SERV...
[ "0.68245995", "0.6304345", "0.62470454", "0.5827953", "0.58104867", "0.5770697", "0.5743137", "0.5712811", "0.5700583", "0.5687931", "0.56744957", "0.5590707", "0.5542622", "0.54945594", "0.5456368", "0.5417902", "0.54012316", "0.5342617", "0.53243846", "0.53130853", "0.53088...
0.78211373
0
Create the federated share provider
Создайте провайдера распределенного участка
protected function federatedShareProvider() { if ($this->federatedProvider === null) { /* * Check if the app is enabled */ $appManager = $this->serverContainer->getAppManager(); if (!$appManager->isEnabledForUser('federatedfilesharing')) { return null; } /* * TODO: add factory to feder...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newShare();", "public function createProvider();", "function frame_share($provider, $post_id = null)\n{\n\n // $postid = url_to_postid( $url );\n\n $defaults = array(\n 'provider' => null,\n 'post_id' => $post_id,\n 'url' => ($post_id === null) ? $_SERVER['HTTP_HOST'].$_SERV...
[ "0.6098349", "0.6071421", "0.569043", "0.56890345", "0.53863555", "0.5330654", "0.53259677", "0.5311188", "0.5305052", "0.52513254", "0.5186984", "0.5169871", "0.51597357", "0.50967264", "0.50742257", "0.50590384", "0.5035094", "0.50190246", "0.4990763", "0.49793625", "0.4954...
0.7335105
0
Gets a unique chart number that increases each time you get it.
Получает уникальный номер диаграммы, который увеличивается каждый раз, когда вы его получаете.
protected function getChartNum() { self::$chartNum++; return self::$chartNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDrawNumber();", "protected final function _getUniqueId()\n {\n // Because this method is not static, this counter will start at zero\n // for each class.\n static $counter = 0;\n\n $counter++;\n\n return get_class($this).$counter;\n }", "public functi...
[ "0.6311815", "0.6078389", "0.606906", "0.6062993", "0.6003859", "0.59561205", "0.5946648", "0.5932908", "0.58738625", "0.5867547", "0.5791817", "0.5757635", "0.57320386", "0.5732009", "0.5697937", "0.56835246", "0.5683035", "0.56783295", "0.5676049", "0.5657333", "0.5651874",...
0.8223003
0
Gets the width of a difference of two DateTimes. The width will be calculated using a DateInterval object and the set month width.
Получает ширину разности двух DateTime. Ширина будет рассчитываться с использованием объекта DateInterval и установленной месячной ширины.
protected function getDatetimeDifferenceWidth(DateInterval $difference) { $width = 0; $width += $difference->y * 12 * $this->monthWidth; $width += $difference->m * $this->monthWidth; $width += $difference->d * ($this->monthWidth/31); if ($difference->invert) $width *= -1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLayoutWidth() {\r\n\t\t$paperWidth = !empty($this->paperWidth) ? $this->paperWidth : $this->rtf->paperWidth;\r\n\t\t$marginLeft = !empty($this->marginLeft) ? $this->marginLeft : $this->rtf->marginLeft;\r\n\t\t$marginRight = !empty($this->marginRight) ? $this->marginRight : $this->rtf->marginRight;\r\n\...
[ "0.55363435", "0.54574436", "0.5444512", "0.5392176", "0.5335742", "0.53211534", "0.53211534", "0.53211534", "0.53211534", "0.53211534", "0.53211534", "0.53211534", "0.53211534", "0.53211534", "0.52946377", "0.52946377", "0.52946377", "0.52946377", "0.52946377", "0.52946377", ...
0.7093172
0
Calculate the position and size of each event according to their start time, end time and depth. Depth is calculated in the Chart model. Also sets the chart's maximum height, which is the bottom of the "deepest" event.
Вычислите положение и размер каждого события в соответствии со временем начала, временем окончания и глубиной. Глубина рассчитывается в модели Chart. Также устанавливается максимальная высота графика, которая соответствует нижней границе «самого глубокого» события.
public function calculateEventDimensions() { if (!$this->eventsByGroupId) return; foreach ($this->eventsByGroupId as $group => &$events) { // Use the current chart height as defined // by the previous groups as a baseline to // add the group padding to. T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function adjust_graph_dimensions(){\n\t\t$this->axiswidth = ($this->startingmonth + 1.5) * $this->monthwidth;\n\t\tif($this->max_graph_height < $this->max_month_value){\n\t\t\t$this->yscale = $this->max_graph_height / $this->max_month_value;\n\t\t}\n\t\t$this->axisheight = $this->yscale * ($this->max_month...
[ "0.48411804", "0.48246312", "0.47137117", "0.4634538", "0.4593116", "0.45712733", "0.4550794", "0.4540781", "0.4529125", "0.4467551", "0.44294372", "0.4370614", "0.43417317", "0.43371803", "0.4310887", "0.42887473", "0.4260112", "0.4259854", "0.42528793", "0.42525142", "0.422...
0.7148644
0
Creates the HTML needed for the decades and years above the chart.
Создает HTML, необходимый для десятилетий и лет над графиком.
public function getYearHtml() { $decadeHtml = ''; $yearHtml = ''; // Start at the next full year on the chart, // i.e. the 1st of January on the next year on the chart. $chartNextFullYear = intval($this->startDatetime->format('Y')) + 1; $yearListingStartDatetime = Da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChartHtml()\n {\n $this->calculateEventDimensions();\n $chartNum = $this->getChartNum();\n\n $return = '';\n\n // if (!$this->initialized) $return .= $this->getInitializationHtml();\n\n list($decadeHtml, $yearHtml) = $this->getYearHtml();\n\n $return ...
[ "0.6448941", "0.63333064", "0.61237043", "0.59817076", "0.5923019", "0.5913205", "0.5865294", "0.5801703", "0.57205087", "0.5608657", "0.5560347", "0.5483141", "0.54402965", "0.5420298", "0.5415295", "0.5402146", "0.5381383", "0.53754765", "0.5353595", "0.53142136", "0.530912...
0.7333869
0
Gets the HTML (and JS) for the whole chart. Uses above HTML functions to construct the chart.
Получает HTML (и JS) для всего графика. Использует вышеуказанные функции HTML для построения графика.
public function getChartHtml() { $this->calculateEventDimensions(); $chartNum = $this->getChartNum(); $return = ''; // if (!$this->initialized) $return .= $this->getInitializationHtml(); list($decadeHtml, $yearHtml) = $this->getYearHtml(); $return .= '<div class="...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHTML()\n\t{\n\t\tglobal $tpl;\n\t\t\n\t\tinclude_once \"Services/jQuery/classes/class.iljQueryUtil.php\";\n\t\tiljQueryUtil::initjQuery();\n\t\t\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/excanvas.min.js\");\n\t\t$tpl->addJavascript(\"Services/Chart/js/flot/jquery.flot.min.js\");\n\t\t$tp...
[ "0.77730197", "0.7320741", "0.7154422", "0.6703536", "0.6658739", "0.6614969", "0.6603938", "0.65406954", "0.64072806", "0.6392487", "0.6360179", "0.6348163", "0.6288448", "0.6221748", "0.6218504", "0.6188709", "0.6141529", "0.6135939", "0.6130884", "0.61275345", "0.61118716"...
0.8005009
0
Set description for page theme.
Установить описание для темы страницы.
public static function description($description) { // Set page description self::$data['description'] = $description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPageDescription($text)\n {\n $metaDescription = $this->query('meta[name=\"description\"]')->first();\n if ($text === '') {\n // If empty value passed we need to remove title tag\n if ($metaDescription) {\n $this->removeElement($metaDescriptio...
[ "0.7351178", "0.72685695", "0.7089906", "0.69417226", "0.6891816", "0.68605053", "0.68266195", "0.67997324", "0.67996085", "0.6741969", "0.6739201", "0.67170936", "0.66881907", "0.6580293", "0.656371", "0.655874", "0.6552799", "0.6552799", "0.6545006", "0.65240437", "0.650227...
0.7369327
0
Disable a page theme.
Отключить тему страницы.
public static function disable() { // Disable the page theme unset(self::$data['theme']); // Disable the optimizer self::$data['optimize'] = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GTPress_hide_themes()\r\n{\r\n\t$disabled_menu_items = get_option('gtpressMenu_disabled_menu_items');\r\n\t$disabled_submenu_items = get_option('gtpressMenu_disabled_submenu_items');\r\n\tif (in_array('themes.php', $disabled_menu_items)) {\r\n\t\tadd_menu_page ( 'Look & Feel', 'Look & Feel', 'edit_theme_o...
[ "0.6838532", "0.65959734", "0.6553485", "0.6523759", "0.6287824", "0.62150854", "0.6198759", "0.61799824", "0.6165356", "0.61248153", "0.60871047", "0.6078559", "0.60567814", "0.60368294", "0.60304713", "0.5982001", "0.5925758", "0.5913176", "0.5896895", "0.58676666", "0.5831...
0.7571476
0
/ function adding new award
Функция добавления нового награды
function addAward($data,$firebase) { $key = array("award_title","given_by"); $values = array($data['award_title'],$data['award_by']); $final = array_combine($key,$values); if(!empty($data['award_title']) && !empty($data['award_by'])) $firebase->push(DEFAULT_PATH.'awards/',$final); $firebase->set(DEFAULT_P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAward(\\GT\\CriteriaAward $award){\n \n // If it already exists, don't append another one, update the existing object\n if ($award->isValid()){\n if ($this->awards){\n foreach($this->awards as $key => $awrd){\n if ($awrd->getID() ...
[ "0.7569473", "0.7028286", "0.6637355", "0.6385091", "0.62100774", "0.61921394", "0.61541367", "0.6128644", "0.610803", "0.6104509", "0.603505", "0.6029502", "0.59381694", "0.5937844", "0.58901656", "0.5875639", "0.58591455", "0.5842732", "0.57852024", "0.5761602", "0.57555103...
0.7141495
1
/ function updating award
Функция обновления награды
function updateAward($firebase,$key_award,$award_title,$given_by) { $CI=&get_instance(); define('DEFAULT_PATH','users/'.$CI->session->userdata('user').'/'); $firebase->set(DEFAULT_PATH.'awards/'.$key_award.'/award_title',$award_title); $firebase->set(DEFAULT_PATH.'awards/'.$key_award.'/given_by',$given_by...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gaindailyawardsAction()\n {\n \t$uid = $this->uid;\n \t$key = 'gaindlyawardlock:' . $uid;\n $lock = Hapyfish2_Cache_Factory::getLock($uid);\n\n\t //get lock\n\t\t$ok = $lock->lock($key);\n if (!$ok) {\n\t\t\t$resultVo = array('status' => -1, 'content' => 'serverWord_103');...
[ "0.6467588", "0.6462195", "0.64072114", "0.64039016", "0.6385639", "0.6276048", "0.6275751", "0.6185314", "0.6137356", "0.6094081", "0.6087309", "0.6016873", "0.59568655", "0.5873634", "0.5871903", "0.58670074", "0.58347726", "0.5812473", "0.5778455", "0.57470465", "0.5741718...
0.7308814
0
Display all unverified posts
Показать все непроверенные посты
public function unverified() { $items = $this->postService::getByStatus('unverified'); return view('admin.pages.posts')->with(compact('items')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function my_is_not_approved()\n {\n $user = User::all();\n $category = Category::all();\n $posts = Post::where('user_id',Auth::user()->id)->where('post_status', 0)->orWhere('post_status', 1)->orWhere('post_status', 3)->orderBy('post_id', 'DESC')->paginate(15);\n return view('a...
[ "0.6599792", "0.6327688", "0.6299969", "0.618281", "0.6041733", "0.6041733", "0.60009664", "0.5947039", "0.5928035", "0.5825199", "0.5798848", "0.5778822", "0.57681197", "0.5739688", "0.5717873", "0.5704673", "0.569424", "0.5693893", "0.5693489", "0.5677247", "0.5651123", "...
0.77769965
0
Display all verified posts
Показать все проверенные посты
public function verified() { $items = $this->postService::getByStatus('verified'); return view('admin.pages.posts')->with(compact('items')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showApprovedPost();", "public function unverified()\n {\n $items = $this->postService::getByStatus('unverified');\n\n return view('admin.pages.posts')->with(compact('items'));\n }", "public function draftPost()\n {\n \t$posts = Post::where([['status', 0], ['user_id', a...
[ "0.68614227", "0.67129827", "0.65810174", "0.651094", "0.64608616", "0.64421254", "0.6391232", "0.6380765", "0.63659066", "0.6272749", "0.6245862", "0.6221003", "0.6219381", "0.6184735", "0.6177991", "0.6160495", "0.6105621", "0.6100208", "0.60997534", "0.6075162", "0.6073572...
0.7686898
0
Display selected posts for editors pick
Показать выбранные посты для редакторского выбора
public function selected() { $items = $this->postService::getSelectedPost('selected'); return view('admin.pages.posts')->with(compact('items')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generate_posts_list( $post_args, $selected = 0 ) {\n\n\t\t$defaults = array( 'posts_per_page' => - 1, 'suppress_filters' => true );\n\n\t\tif ( is_array( $post_args ) ) {\n\t\t\t$post_args = wp_parse_args( $post_args, $defaults );\n\t\t} else {\n\t\t\t$post_args = wp_parse_args( array( 'post_type' => $pos...
[ "0.65834713", "0.64433926", "0.6306449", "0.6189468", "0.6101942", "0.60990363", "0.6057777", "0.6025539", "0.60225004", "0.5988161", "0.59869206", "0.59769", "0.5973693", "0.5972943", "0.5969142", "0.5967433", "0.5901745", "0.5901745", "0.5882803", "0.58665365", "0.58333987"...
0.77163535
0
Returns the schemator instance
Возвращает экземпляр schemator
public function getSchemator(): SchematorInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getInstance()\n {\n return Doctrine_Core::getTable('Sesion');\n }", "public function getInstance() {\n\t\treturn $this->sh;\n\t}", "public function getHydrator(): object\n {\n return new $this->hydratorClass();\n }", "static function getInstance(){\n if...
[ "0.5959535", "0.594841", "0.59289664", "0.5874383", "0.58608437", "0.5795387", "0.5711273", "0.56918037", "0.56855154", "0.56710863", "0.56681263", "0.5643933", "0.5642107", "0.5622021", "0.5585079", "0.5561398", "0.5561398", "0.5550796", "0.55428743", "0.5542755", "0.5542755...
0.83524835
0
Insert a value. This method always creates a new node somewhere down the tree.
Вставьте значение. Этот метод всегда создает новый узел где-то ниже в дереве.
public function insert($value) { if ($this->value <= $value) { // Insert in right subtree. if ($this->right) { // If right child already exists then pass the value to it. $this->right->insert($value); } else { // If not then...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($val) {\n // Make sure element being inserted is type of Node.\n if (!is_object($val) || getclass($val) !== \"Node\") {\n $node = new Node($val);\n } else {\n $node = $val;\n }\n\n $this->_head->setPrev($node);\n\n $node->setNext($this->_head);\n $node->setPrev...
[ "0.74273974", "0.7029458", "0.6676563", "0.650346", "0.6325886", "0.6306829", "0.6166695", "0.6088201", "0.60779643", "0.5990184", "0.597932", "0.5956387", "0.59286755", "0.58687", "0.5857045", "0.58566654", "0.58378977", "0.58246624", "0.57976884", "0.57858264", "0.5781896",...
0.79873836
0
test updating the player
тест обновления игрока
public function testUpdated() { $player_factory = factory(KillingMode::class)->create(); $player_factory->mode = sprintf('Randon mode %s', microtime()); $this->assertTrue($player_factory->save()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updatePlayer($player)\n\t{\n\t}", "static function updatePlayer($player) {\n CommonDao::connectToDb();\n $query = \"update player set first_name = \\\"\" . $player->getFirstName() . \"\\\",\n last_name = \\\"\" . $player->getLastName() . \"\\\",\n ...
[ "0.7680347", "0.6426356", "0.630844", "0.6130855", "0.61088574", "0.6068825", "0.60561836", "0.60312355", "0.6010733", "0.60106575", "0.5997435", "0.5989835", "0.5989835", "0.5985899", "0.59511876", "0.5923873", "0.5902978", "0.58808", "0.5874633", "0.5874633", "0.5874633", ...
0.70132434
1
/ $Id: twe_get_manufacturers.inc.php,v 1.1 2005/04/06 21:47:50 oldpa Exp $ TWECommerce community made shopping Copyright (c) 2003 TWECommerce based on: (c) 20002001 The Exchange Project (earlier name of osCommerce) (c) 20022003 osCommerce(general.php,v 1.225 2003/05/29); (c) 2003 nextcommerce (twe_get_manufacturers.inc...
/ $Id: twe_get_manufacturers.inc.php,v 1.1 2005/04/06 21:47:50 oldpa Exp $ TWECommerce community made shopping Copyright (c) 2003 TWECommerce based on: (c) 20002001 The Exchange Project (earlier name of osCommerce) (c) 20022003 osCommerce(general.php,v 1.225 2003/05/29); (c) 2003 nextcommerce (twe_get_manufacturers.inc...
function twe_get_manufacturers($manufacturers_array = '') { global $db; if (!is_array($manufacturers_array)) $manufacturers_array = array(); $manufacturers_query = "select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"; $manufacturers = $db->Execute( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getManufacturers()\n\t{\n if (isset(self::$_cache['manufacturers'])) {\n return self::$_cache['manufacturers'];\n }\n $sql = new SqlStatement();\n $sql->select(array('id' => 'm.manufacturer_id', 'm.name'))\n ->distinct()\n ->from(array('m...
[ "0.7001593", "0.69887054", "0.69240236", "0.66490155", "0.65470815", "0.6521411", "0.6310265", "0.6272157", "0.6253864", "0.617395", "0.6137718", "0.6054325", "0.60014874", "0.5997552", "0.59718657", "0.59527314", "0.5872564", "0.58581626", "0.58458155", "0.58285195", "0.5809...
0.713984
0
This method is called, when the keypressed event occurs.
Этот метод вызывается, когда происходит событие нажатия клавиши.
function keyPressed(KeyEvent $event);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cli_keyboardInput() {}", "function keyReleased(KeyEvent $event);", "public function onKeyPressed( Streamwide_Engine_Events_Event $event )\n {\n $key = $event->getParam( 'receivedKey' );\n $promptType = $event->getContextParam( 'promptType' );\n if ( $this->_isEndKey( $ke...
[ "0.6490012", "0.63663805", "0.6085115", "0.60659647", "0.58836126", "0.5803182", "0.5653066", "0.55745405", "0.54684293", "0.5408819", "0.53536004", "0.5295444", "0.5270084", "0.52350336", "0.5211976", "0.5179422", "0.5155755", "0.51263875", "0.51210654", "0.50712353", "0.504...
0.7303595
0
Return the image width and height.
Верните ширину и высоту изображения.
public function getImageSize() { list($width, $height) = getimagesize($this->getFullpath()); return compact('width', 'height'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImageWidth()\n {\n return $this->imageWidth;\n }", "public function getImageWidth()\n\t{\n\t\treturn $this->imageWidth;\n\t}", "function image_dimensions ( $image_path ) {\r\n\t\t$image = image_read($image_path,false);\r\n\t\tif ( !$image ) return $image;\r\n\t\t$width = imagesx...
[ "0.7919355", "0.7911107", "0.7876604", "0.7796075", "0.77808386", "0.7753947", "0.7753777", "0.7735236", "0.77317816", "0.76292276", "0.75865984", "0.75785446", "0.7560722", "0.7560008", "0.7545714", "0.7522794", "0.74921876", "0.7468613", "0.7460012", "0.7387677", "0.7385069...
0.85194725
0
method to change penanggung jawab if penanggungjawab_id is not null if null this method will create new row in table penanggungjawab_m digunakan pada : 1. Modul Rekam Medis > informasi pasien baru > ubah penanggung jawab
метод для изменения ответственного, если penanggungjawab_id не равен null; если null, этот метод создаст новую строку в таблице penanggungjawab_m используется в: 1. Модуль Реквизитов > информация о новом пациенте > изменение ответственного
public function actionUbahPenanggungJawab($id=null,$pendaftaran_id=null) { // if (!empty($id)) { // if (!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)) { // throw new CHttpException(401, Yii::t('mds', 'You are prohibited to access this page. Contact Su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function aksi_setujui_permohonan_009()\n {\n $data = array(\n 'tgl_persetujuan_admin' => date(\"Y/m/d\"),\n 'notif' => 'Belum Dibaca',\n 'notif_rt' => 'Belum Dibaca',\n );\n\n $data_surat...
[ "0.73798877", "0.73348534", "0.7326117", "0.73152375", "0.72792435", "0.7271631", "0.72641987", "0.72512686", "0.7223622", "0.72187966", "0.7216692", "0.7207165", "0.7198463", "0.71755636", "0.7139562", "0.712678", "0.69791085", "0.695543", "0.69304204", "0.6883314", "0.68568...
0.7352771
1
set dropdown daerah pasien berdasarkan propinsi_id kabupaten_id kecamatan_id kelurahan_id pasien_id
установить выпадающий список района пациента в зависимости от propinsi_id, kabupaten_id, kecamatan_id, kelurahan_id, pasien_id
public function actionSetDropdownDaerahPasien() { if(Yii::app()->getRequest()->getIsAjaxRequest()) { $modPasien = new RKPasienM; $propinsi_id = $_POST['propinsi_id']; $kabupaten_id = $_POST['kabupaten_id']; $kecamatan_id = $_POST['kecamatan_id']; $kelurahan_id = (isset($_POST['kelurahan_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionSetDropdownKasusPenyakit()\n\t{\n\t\tif(Yii::app()->getRequest()->getIsAjaxRequest()) {\n\t\t\t$pendaftaran_id = isset($_POST['pendaftaran_id']) ? $_POST['pendaftaran_id'] : null;\n\t\t\t$pasienadmisi_id = isset($_POST['pasienadmisi_id']) ? $_POST['pasienadmisi_id'] : null;\n\t\t\t$jeniskasus...
[ "0.7337189", "0.6919506", "0.69018835", "0.6890511", "0.68868953", "0.6750065", "0.67323506", "0.66582394", "0.66465837", "0.6626953", "0.6623632", "0.66198415", "0.66149056", "0.6572996", "0.6533287", "0.6531813", "0.6497228", "0.6447846", "0.6428577", "0.6418049", "0.635590...
0.7651296
0
Reads a 32bits floating point number in big endian byte order.
Читает 32-битное число с плавающей точкой в порядке байтов большого эндияна.
public function readFloat32BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readFloat32LE();", "public function readFloat32();", "public function readFloat64BE();", "public function readFloat64LE();", "public function readF8le(): float {\n $bits = $this->readU8le();\n return $this->decodeDoublePrecisionFloat($bits);\n }", "private function readfl...
[ "0.8212134", "0.7815348", "0.76957554", "0.7366473", "0.72936517", "0.7188255", "0.6999246", "0.69757193", "0.6719681", "0.66550875", "0.6417863", "0.629752", "0.62764513", "0.6212432", "0.60949963", "0.600179", "0.59878397", "0.5980429", "0.590155", "0.58984655", "0.58746004...
0.8298309
0
Reads a 32bits floating point number in little endian byte order.
Читает 32-битное число с плавающей точкой в порядке байтов little endian.
public function readFloat32LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readFloat32BE();", "public function readFloat32();", "public function readFloat64BE();", "public function readFloat64LE();", "public function readF8le(): float {\n $bits = $this->readU8le();\n return $this->decodeDoublePrecisionFloat($bits);\n }", "private function readfl...
[ "0.832344", "0.80510217", "0.7262007", "0.72445726", "0.70936024", "0.6887954", "0.6675332", "0.6659456", "0.6455003", "0.6414091", "0.6386284", "0.6302965", "0.6230067", "0.62128365", "0.61387426", "0.60955775", "0.59688556", "0.5942185", "0.59339696", "0.59328306", "0.58940...
0.8433588
0
Reads a 64bits floating point number in big endian byte order.
Читает 64-битное число с плавающей точкой в порядке байтов большого эндина.
public function readFloat64BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readFloat64LE();", "public function readFloat64();", "function readDouble(): float {\n return \\unpack('e', $this->read(8))[1];\n }", "public function readF8le(): float {\n $bits = $this->readU8le();\n return $this->decodeDoublePrecisionFloat($bits);\n }", "privat...
[ "0.8113202", "0.75741667", "0.6949676", "0.67662185", "0.6688553", "0.6581996", "0.65664595", "0.6559116", "0.65470624", "0.6231502", "0.61944973", "0.5982099", "0.59017366", "0.587877", "0.58544403", "0.58502406", "0.5798037", "0.5767484", "0.57656926", "0.57349664", "0.5718...
0.82249606
0
Reads a 64bits floating point number in little endian byte order.
Читает 64-битное число с плавающей точкой в порядке байтов little endian.
public function readFloat64LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readFloat64BE();", "public function readFloat64();", "public function readFloat32LE();", "public function readFloat32BE();", "function readDouble(): float {\n return \\unpack('e', $this->read(8))[1];\n }", "public function readF8le(): float {\n $bits = $this->readU8le();\...
[ "0.8204861", "0.75799507", "0.7077457", "0.69211686", "0.68198335", "0.68149453", "0.66516215", "0.64836663", "0.63514245", "0.6338001", "0.62538815", "0.6206183", "0.604322", "0.60312665", "0.5911853", "0.59045357", "0.58729535", "0.58510315", "0.57601595", "0.5757364", "0.5...
0.8402859
0
Reads an 8bit integer in machine byte order.
Читает 8битное целое число в машинном порядке байтов.
public function readInt8();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt8BE();", "public function readInt8LE();", "public function readUInt8BE();", "public function readUInt8LE();", "public function readUInt8();", "function readInt8() {\n $strInt = $this->read(8);\n \n if(\\PHP_INT_SIZE > 4) {\n return \\unpack('P', $str...
[ "0.8181665", "0.8055478", "0.78419614", "0.7827971", "0.7562366", "0.75179505", "0.70842415", "0.705107", "0.6913267", "0.6773275", "0.673915", "0.64575016", "0.6448602", "0.63746965", "0.6364235", "0.6321767", "0.6316339", "0.6293774", "0.629377", "0.6274212", "0.6264331", ...
0.8197214
0
Reads an 8bit integer in big endian byte order.
Читает 8битное целое число в порядке байтов большого эндина.
public function readInt8BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readUInt8BE();", "public function readInt8LE();", "public function readInt8();", "public function readUInt8LE();", "public function readUInt8();", "function readInt8() {\n $strInt = $this->read(8);\n \n if(\\PHP_INT_SIZE > 4) {\n return \\unpack('P', $strIn...
[ "0.76739633", "0.7599872", "0.7583879", "0.75553894", "0.72041816", "0.7176898", "0.6669521", "0.65521795", "0.6440006", "0.6366909", "0.62748504", "0.62465084", "0.6199311", "0.6142115", "0.605836", "0.5993878", "0.5971871", "0.5963896", "0.59554964", "0.5941761", "0.5917477...
0.7926082
0
Reads an 8bit integer in little endian byte order.
Читает 8-битное целое число в порядке байтов little endian.
public function readInt8LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt8BE();", "public function readInt8();", "public function readUInt8LE();", "public function readUInt8BE();", "function readInt8() {\n $strInt = $this->read(8);\n \n if(\\PHP_INT_SIZE > 4) {\n return \\unpack('P', $strInt)[1];\n }\n \n ...
[ "0.79329383", "0.787638", "0.76778454", "0.7548723", "0.72578", "0.7112677", "0.6999866", "0.6997232", "0.66332364", "0.6616311", "0.6495807", "0.6483948", "0.63538414", "0.6252917", "0.6227847", "0.6162122", "0.61582094", "0.6099315", "0.6073958", "0.6073227", "0.6070493", ...
0.8141978
0
Reads an 16bit integer in machine byte order.
Читает 16битное целое число в машинном порядке байтов.
public function readInt16();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt16BE();", "public function readUInt16BE();", "function readInt16() {\n $int = $this->readUInt16();\n\n if ($int >= 0x8000) {\n $int -= 0x10000;\n }\n\n return $int;\n }", "public function readInt16LE();", "public function readUInt16();", "public function readUInt1...
[ "0.81801546", "0.8127905", "0.8099021", "0.7934034", "0.7919298", "0.7835721", "0.7831563", "0.7584429", "0.7291614", "0.7113653", "0.6892027", "0.67915356", "0.6780735", "0.6707748", "0.6575464", "0.6429062", "0.6422179", "0.6349014", "0.63408315", "0.63198835", "0.6289615",...
0.81948566
0
Reads an 16bit integer in big endian byte order.
Читает 16-битное целое число в порядке байтов большого эндина.
public function readInt16BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readUInt16BE();", "function readUInt16() {\n $tmp = unpack(\"v\", $this->read(2));\n return $tmp[1];\n }", "function readInt16() {\n $int = $this->readUInt16();\n\n if ($int >= 0x8000) {\n $int -= 0x10000;\n }\n\n return $int;\n }", "public function readUInt16LE();", ...
[ "0.80624765", "0.7690689", "0.76784927", "0.76233894", "0.76159936", "0.7614902", "0.7597552", "0.70943904", "0.68494344", "0.6724476", "0.6685669", "0.6600846", "0.65565443", "0.6473818", "0.62909234", "0.6259572", "0.62571615", "0.6206088", "0.61804557", "0.61799663", "0.61...
0.8073086
0
Reads an 16bit integer in little endian byte order.
Читает 16битное целое число в порядке байтов little endian.
public function readInt16LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt16BE();", "public function readInt16();", "public function readUInt16BE();", "function readInt16() {\n $int = $this->readUInt16();\n\n if ($int >= 0x8000) {\n $int -= 0x10000;\n }\n\n return $int;\n }", "public function readUInt16LE();", "function readUInt16() {\n...
[ "0.8302621", "0.8154308", "0.80670804", "0.8062425", "0.78301567", "0.7695277", "0.7682277", "0.7183085", "0.70690066", "0.700087", "0.6987698", "0.6911424", "0.6668128", "0.6577722", "0.6553902", "0.65532565", "0.6416221", "0.6347009", "0.62838316", "0.62734145", "0.6268327"...
0.8203041
1
Reads an 32bit integer in machine byte order.
Читает 32-битное целое число в порядке байтов машины.
public function readInt32();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt32LE();", "public function readInt32BE();", "public function readint32()\n {\n }", "public function consumeInt32()\n {\n $s = $this->consume(4);\n list(, $ret) = unpack(\"l\", self::$isLittleEndian ? self::swapEndian32($s) : $s);\n return $ret;\n ...
[ "0.84116995", "0.8292816", "0.8148863", "0.78837633", "0.7695419", "0.7645496", "0.7413565", "0.73960674", "0.7392219", "0.7284167", "0.7063024", "0.69770336", "0.6844918", "0.6793378", "0.666707", "0.66653943", "0.6593358", "0.65814716", "0.6577683", "0.6540787", "0.64664596...
0.84323394
0
Reads an 32bit integer in big endian byte order.
Читает 32-битное целое число в порядке байтов большого эндина.
public function readInt32BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt32LE();", "public function readInt32();", "public function readUInt32BE();", "public function readint32()\n {\n }", "public function readUInt32LE();", "public function consumeInt32()\n {\n $s = $this->consume(4);\n list(, $ret) = unpack(\"l\", self::$...
[ "0.79591084", "0.774799", "0.7504297", "0.7380171", "0.73461086", "0.71680784", "0.70821327", "0.6889622", "0.68672144", "0.6851406", "0.6842401", "0.67944145", "0.6567264", "0.64511305", "0.64327055", "0.6404126", "0.63995117", "0.6399301", "0.6377772", "0.6342818", "0.63222...
0.7989808
0
Reads an 32bit integer in little endian byte order.
Читает 32-битное целое число в порядке байтов little endian.
public function readInt32LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInt32();", "public function readInt32BE();", "public function readint32()\n {\n }", "public function readInt32($pos = null, $byteOrder = self::BYTE_ORDER_BIG_ENDIAN) {}", "public function readUInt32LE();", "public function consumeInt32()\n {\n $s = $this->consu...
[ "0.82340646", "0.80827516", "0.7749857", "0.74996895", "0.74621516", "0.7445294", "0.7365325", "0.71753603", "0.71550167", "0.71522486", "0.70399225", "0.689506", "0.6789406", "0.6760904", "0.6640796", "0.6593847", "0.650532", "0.64846134", "0.64659387", "0.64462215", "0.6426...
0.8317972
0
Reads an 8bit unsigned integer in machine byte order.
Читает 8-битное беззнаковое целое число в порядке байтов машины.
public function readUInt8();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readUInt8LE();", "public function readUInt8BE();", "function readUnsignedByte();", "public function readInt8();", "public function readInt8BE();", "public function readInt8LE();", "public function readUint8($offset = 0)\n {\n list(, $ret) = unpack(\"C\", $this->read(1, $offset...
[ "0.8450421", "0.8161693", "0.7638189", "0.7405183", "0.7344763", "0.7319811", "0.707232", "0.7044314", "0.6916395", "0.6830395", "0.67931837", "0.6738937", "0.6738359", "0.6728678", "0.6689186", "0.65968776", "0.65862995", "0.65519184", "0.64789456", "0.6355707", "0.6282518",...
0.82593167
1
Reads an 8bit unsigned integer in big endian byte order.
Читает 8-битное беззнаковое целое число в порядке байтов большого эндияна.
public function readUInt8BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readUInt8LE();", "public function readUInt8();", "function readUnsignedByte();", "public function readInt8BE();", "public function readInt8LE();", "public function readInt8();", "public function readUint8($offset = 0)\n {\n list(, $ret) = unpack(\"C\", $this->read(1, $offset))...
[ "0.8227093", "0.7967938", "0.7348521", "0.73389727", "0.70971686", "0.70729715", "0.7008824", "0.6746979", "0.6645419", "0.6558581", "0.653479", "0.6520718", "0.6471096", "0.6444497", "0.644096", "0.63163316", "0.61807793", "0.6117978", "0.6115657", "0.60754603", "0.60467166"...
0.80900496
1
Reads an 8bit unsigned integer in little endian byte order.
Читает 8битное беззнаковое целое число в порядке байтов little endian.
public function readUInt8LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readUInt8BE();", "public function readUInt8();", "public function readInt8LE();", "public function readInt8BE();", "public function readInt8();", "function readUnsignedByte();", "public function readUInt32LE();", "public function readUint8($offset = 0)\n {\n list(, $ret) = u...
[ "0.81072235", "0.79999423", "0.76333797", "0.7424487", "0.73761743", "0.7170001", "0.7110522", "0.7098517", "0.68969524", "0.6758698", "0.67430663", "0.6725315", "0.66720915", "0.6639261", "0.6627008", "0.6587923", "0.65530527", "0.65160024", "0.6458431", "0.64291674", "0.631...
0.8460013
0
Reads an 16bit unsigned integer in machine byte order.
Читает 16-битное беззнаковое целое число в порядке байтов машины.
public function readUInt16();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readUInt16() {\n $tmp = unpack(\"v\", $this->read(2));\n return $tmp[1];\n }", "public function readUInt16BE();", "public function readUInt16LE();", "function readInt16() {\n $int = $this->readUInt16();\n\n if ($int >= 0x8000) {\n $int -= 0x10000;\n }\n\n return $int;\n }", ...
[ "0.8472893", "0.82827604", "0.827618", "0.76615876", "0.75852734", "0.75284284", "0.75272083", "0.7480727", "0.73452747", "0.7321643", "0.7053022", "0.702899", "0.6989416", "0.6945379", "0.6914527", "0.6852113", "0.67826915", "0.6746559", "0.67450124", "0.6659432", "0.6466366...
0.8369079
1
Reads an 16bit unsigned integer in big endian byte order.
Читает 16битное беззнаковое целое число в порядке байтов большого эндияна.
public function readUInt16BE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readUInt16() {\n $tmp = unpack(\"v\", $this->read(2));\n return $tmp[1];\n }", "public function readUInt16();", "public function readUInt16LE();", "public function readInt16BE();", "function readInt16() {\n $int = $this->readUInt16();\n\n if ($int >= 0x8000) {\n $int -= 0x10000;\...
[ "0.8328539", "0.80971134", "0.8083526", "0.7618282", "0.7459694", "0.7272981", "0.7259723", "0.720764", "0.72051096", "0.7066333", "0.6849103", "0.6846233", "0.68164444", "0.6810253", "0.66636586", "0.6639263", "0.6614813", "0.6420493", "0.6364018", "0.6342771", "0.63409567",...
0.8275673
1
Reads an 32bit unsigned integer in little endian byte order.
Читает 32-битное беззнаковое целое число в порядке байтов младшего порядка.
public function readUInt32LE();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readUInt32() {\n $tmp = unpack(\"V\", $this->read(4));\n return $tmp[1];\n }", "public function readUInt32BE();", "public function readInt32LE();", "public function readUInt32();", "function read_uint32(&$payload) {\n $uint32 = \\unpack('N', $payload)[1];\n $payload = \\substr($payloa...
[ "0.8191923", "0.7919581", "0.7916553", "0.7864374", "0.7859073", "0.7750476", "0.7629474", "0.73172504", "0.7110931", "0.70802337", "0.70469284", "0.6998958", "0.69382256", "0.6931899", "0.6906456", "0.6893612", "0.6813682", "0.6793025", "0.6608584", "0.65983456", "0.6560093"...
0.83658326
0
Add og:video meta tag for episodes and videos
Добавьте мета-тег og:video для эпизодов и видео
function yoast_add_og_video() { if ( get_post_format() == 'video' ) { $post = get_post(); preg_match('/\[embed(.*)](.*)\[\/embed]/', $post->post_content, $video); $videoParts = explode('/',$video[2]); echo '<meta property="og:video" content="' . $video[2] . '" />', "\n"; ech...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mars_video_meta() {}", "function get_facebook_meta_for_videos(){\n global $post;\n if(strstr($_SERVER['REQUEST_URI'], '/videos/') && $post){\n echo ' <meta property=\"og:type\" content=\"website\"/>'.\"\\n\";\n echo ' <meta property=\"og:url\" content=\"'.$post->guid.'\"/>'.\"\\n\";\n echo ...
[ "0.7388809", "0.6944116", "0.65602213", "0.6323821", "0.6323479", "0.62947184", "0.61744744", "0.61036694", "0.60948896", "0.60610175", "0.605728", "0.5941355", "0.59270847", "0.59071547", "0.588455", "0.5884256", "0.588399", "0.58725536", "0.58525676", "0.5843906", "0.581355...
0.78101724
0
Constructor method for getTrackingwithRefResponse
Конструктор метода getTrackingwithRefResponse
public function __construct(\Alhoqbani\SmsaWebService\Soap\Type\GetTrackingwithRefResult $getTrackingwithRefResult = null) { $this ->setGetTrackingwithRefResult($getTrackingwithRefResult); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this->responseStatus = new ResponseStatus();\n $this->transactionReference = new TransactionReference();\n }", "public function __construct($response)\n {\n $this->address = $response['address'];\n $this->url = $response['url'];\n $...
[ "0.6383308", "0.5976478", "0.59046364", "0.58760375", "0.58412707", "0.57775396", "0.57775396", "0.57775396", "0.57775396", "0.56889015", "0.5652788", "0.5652355", "0.5630191", "0.55683124", "0.552504", "0.55179447", "0.5508984", "0.54693216", "0.54612595", "0.5448985", "0.54...
0.732437
0
public methods Delete the cached version of an url
Публичные методы удаляют кэшированную версию URL
public function deleteCache($url){ unlink($this->cacheFilename(($url))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function purgeUrl($url);", "public function cache_delete()\n {\n }", "public function purge($url)\n {\n }", "public function delete($cache_name);", "public function delete_cache()\r\n {\r\n $this->clear_file_cache();\r\n }", "public function url_delete () {\n\t\tif...
[ "0.7804787", "0.74361193", "0.7303174", "0.70873797", "0.702928", "0.7009296", "0.68978554", "0.68891543", "0.6632428", "0.6632428", "0.6608225", "0.6596118", "0.65828407", "0.6568438", "0.65076613", "0.6480225", "0.6435489", "0.6394303", "0.63896143", "0.63811797", "0.636889...
0.8335434
0
Set the user agent
Установите пользовательский агент
public function setUserAgent($user_agent){ curl_setopt($this->ch, CURLOPT_USERAGENT, $user_agent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUserAgent($useragent){ }", "public function setUserAgent($userAgent)\n {\n\t$this->userAgent = (string) $userAgent;\n }", "public function setup_user_agent()\n {\n self::$USER_AGENT = \"Mozilla/5.0 (FPPVoteApiPlugin/\" . VOTING_API_PLUGIN_VERSION . \"; PHPD/\" . PHP_VERSION ....
[ "0.85730225", "0.77466524", "0.77359223", "0.7667412", "0.7570217", "0.75282484", "0.73268896", "0.7320088", "0.7201684", "0.71421206", "0.71221244", "0.71221244", "0.71221244", "0.71221244", "0.71221244", "0.70367134", "0.6977718", "0.69354624", "0.6899491", "0.6855937", "0....
0.78689504
1
Set curl timeout in milliseconds
Установить тайм-аут curl в миллисекундах
public function setTimeout($timeout){ curl_setopt($this->ch, CURLOPT_TIMEOUT_MS, $timeout); curl_setopt($this->ch, CURLOPT_CONNECTTIMEOUT_MS, $timeout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTimeout($timeout) {\n\t\t\tcurl_setopt($this->_curl, CURLOPT_TIMEOUT, $timeout);\n\t\t}", "public function setConnectionTimeout($timeout);", "public function getCurlTimeout()\n {\n return $this->curlTimeout;\n }", "public function getCurlTimeout()\n {\n return $this-...
[ "0.7921364", "0.6905187", "0.6869171", "0.6869171", "0.6815169", "0.67289644", "0.66777986", "0.65738213", "0.6572323", "0.6572323", "0.6503571", "0.6440264", "0.6398468", "0.6397895", "0.6381558", "0.6341914", "0.63282055", "0.63034576", "0.63005435", "0.6298661", "0.6245006...
0.82187647
0