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
Handle calculations when delete a dividend transaction instance.
Обработка вычислений при удалении экземпляра транзакции дивиденда.
public static function handleCalculationsOfDeletedDividend(Transaction $transaction): void { $transaction->share->handleCalculationsOfDeletedDividend($transaction); $transaction->share->portfolio->handleCalculationsOfDeletedDividend($transaction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteDiscount();", "public static function handleCalculationsOfDeletedBonus(Transaction $transaction): void\n {\n $transaction->share->handleCalculationsOfDeletedBonus($transaction);\n $transaction->share->portfolio->handleCalculationsOfDeletedBonus($transaction);\n }", "pu...
[ "0.6852793", "0.66659445", "0.6648401", "0.65028", "0.6370271", "0.6258419", "0.6238405", "0.6162668", "0.6144073", "0.60283566", "0.6001491", "0.6000658", "0.59866214", "0.594411", "0.59241426", "0.5904652", "0.5882009", "0.5882009", "0.5882009", "0.5882009", "0.58365566", ...
0.77221465
0
Handle calculations when delete a bonus transaction instance.
Обработка вычислений при удалении экземпляра бонусной транзакции.
public static function handleCalculationsOfDeletedBonus(Transaction $transaction): void { $transaction->share->handleCalculationsOfDeletedBonus($transaction); $transaction->share->portfolio->handleCalculationsOfDeletedBonus($transaction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteDiscount();", "public static function handleCalculationsOfDeletedBuying(Transaction $transaction): void\n {\n $transaction->share->handleCalculationsOfDeletedBuying($transaction);\n $transaction->share->portfolio->handleCalculationsOfDeletedBuying($transaction);\n }", ...
[ "0.6852363", "0.6524959", "0.64138687", "0.6275695", "0.6248315", "0.62324953", "0.62205285", "0.6214557", "0.61746526", "0.6169711", "0.60963464", "0.60755366", "0.60753053", "0.5974217", "0.5971819", "0.5971819", "0.5971819", "0.5971819", "0.59587824", "0.59102494", "0.5898...
0.7509622
0
Handle calculations when delete a rights transaction instance.
Обработка вычислений при удалении экземпляра правоустанавливающего документа.
public static function handleCalculationsOfDeletedRights(Transaction $transaction): void { $transaction->share->handleCalculationsOfDeletedRights($transaction); $transaction->share->portfolio->handleCalculationsOfDeletedRights($transaction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete()\n {\n $this->getDi()->hook->call(Am_Event::INVOICE_BEFORE_DELETE, array('invoice' => $this));\n foreach ($this->getItems() as $item) {\n $item->delete();\n }\n // $this->deleteFromRelatedTable('?_invoice_log'); // not good idea to delete\n $this->d...
[ "0.64385027", "0.6300594", "0.62733465", "0.6253001", "0.6253001", "0.6253001", "0.6253001", "0.620681", "0.61679566", "0.610806", "0.60725117", "0.6071964", "0.6071233", "0.60638446", "0.6060359", "0.603412", "0.5974813", "0.59660405", "0.59508824", "0.5945771", "0.59453", ...
0.70408875
0
This method returns to us a game given a title.
Этот метод возвращает нам игру по заданному названию.
public function findGameByTitle($title) { $title = htmlspecialchars(trim($title), ENT_COMPAT, 'UTF-8', false); $result = $this->fetchOne(array('title'=>$title)); if (!empty($result)) { return $result; } // Nope..., not here bud! return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getGame() {\n if (!isset($this->params['game'])) {\n DooUriRouter::redirect(Doo::conf()->APP_URL);\n return FALSE;\n }\n\n $key = $this->params['game'];\n $game = new SnGames();\n\t\t$url = Url::getUrlByName($key, URL_GAME);\n\n\t\tif ($url) {\n\t\...
[ "0.6788305", "0.6240881", "0.60855967", "0.6022973", "0.59908634", "0.5945933", "0.58170986", "0.57282376", "0.572054", "0.5708681", "0.56872356", "0.5654858", "0.5639713", "0.5620209", "0.55793685", "0.5576336", "0.5539285", "0.55269474", "0.5491251", "0.5465872", "0.5430805...
0.7333656
0
This method performs a sync with the games database from the Nerdery service database. Using this method ensures we are always getting the latest games from the web service and that we are not just using cache results. I've mentioned this a few times already that I hope this is acceptable due to my first couple of days...
Этот метод выполняет синхронизацию с базой данных игр из базы данных сервиса Nerdery. Использование этого метода гарантирует, что мы всегда получаем самые последние игры с веб-сервиса и не просто используем результаты кэширования. Я уже упоминал об этом несколько раз, и я надеюсь, что это приемлемо из-за ограничений пе...
private function sync() { // Check if we're in offline mode. if (XBOXAPP_OFFLINE === true) return false; // If we were in offline mode I'd go ahead and add all the games that were not // added to the service by checking if sync = 0. This was mainly if I was working // without the internet or if for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function serverSync() {\n\n\t\t// get current players on the server ...\n\t\t$this->client->query('GetPlayerList', 100, 0);\n\t\t$response['playerlist'] = $this->client->getResponse();\n\n\t\t// get game version the server runs on ...\n\t\t$this->client->query('GetVersion');\n\t\t$response['version'] = $this->clie...
[ "0.6314875", "0.5788685", "0.5776724", "0.5735581", "0.55856323", "0.55856323", "0.5575879", "0.556417", "0.5489072", "0.54048705", "0.53133744", "0.5311128", "0.5309001", "0.530137", "0.5281816", "0.5217794", "0.51931936", "0.5150927", "0.51063454", "0.504137", "0.5040073", ...
0.7715419
0
Creates a default chromosome.
Создает стандартный хромосому.
function createDefaultChromosome();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function generateGenome()\n\t{\n\t\tfor($a=1; $a<=3; $a++) {\n\t\t\tfor($b=1; $b<=3; $b++) {\n\t\t\t\tfor($c=1; $c<=3; $c++) {\n\t\t\t\t\tfor($d=1; $d<=3; $d++) {\n\t\t\t\t\t\tfor($e=1; $e<=3; $e++) {\n\t\t\t\t\t\t\tif($this->random or mt_rand(0,1000) < $this->mutation) {\n\t\t\t\t\t\t\t\t$this->genome[$a....
[ "0.5161879", "0.51169163", "0.5110057", "0.50518006", "0.49710712", "0.49699134", "0.49452725", "0.49234244", "0.48351145", "0.47843862", "0.4766253", "0.46624184", "0.46294048", "0.4619013", "0.4602764", "0.4585824", "0.45840526", "0.45733634", "0.45687002", "0.45591977", "0...
0.92477494
0
Swap genes at positions $i and $j
Обменять гены на позициях $i и $j
public function swapGenes($i, $j);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function swap($a, $i, $j) \n { \n $temp; \n //convert string into an array\n $charArray = str_split($a); \n $temp = $charArray[$i] ; \n $charArray[$i] = $charArray[$j]; \n $charArray[$j] = $temp; \n //convert back array into an string\n return implode($cha...
[ "0.5742254", "0.55348194", "0.55132675", "0.54502356", "0.5192657", "0.50175023", "0.4826076", "0.48215976", "0.4763406", "0.47493008", "0.4728692", "0.46957836", "0.46494663", "0.45249987", "0.450617", "0.4491856", "0.44712323", "0.4463605", "0.44398436", "0.4420064", "0.440...
0.9107245
0
Check the 'Same as billing address' checkbox in shipping address.
Проверьте галочку 'Та же, что и адрес доставки' в адресе доставки.
public function setSameAsBillingShippingAddress() { $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->hover(); $this->browser->find($this->accountInformationBlock)->hover(); $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_ship_to_different_address( $checked ) {\n\n\t\t$details = WC()->session->get( 'wc_braintree_paypal_cart_customer_details', array() );\n\n\t\tif ( ! empty( $details ) ) {\n\n\t\t\tunset( $details['billing']['email'] );\n\t\t\tunset( $details['billing']['phone'] );\n\n\t\t\tif ( empty( $details['...
[ "0.7289489", "0.72602266", "0.72127235", "0.6615329", "0.6605353", "0.6592912", "0.6454953", "0.62867737", "0.6274438", "0.61980087", "0.61537266", "0.6151004", "0.61016285", "0.60891175", "0.60596555", "0.60578346", "0.605712", "0.59909105", "0.5945812", "0.59352434", "0.593...
0.8210199
0
Uncheck the 'Same as billing address' checkbox in shipping address.
Снимите отметку с чекбокса 'Та же, что и адрес выставления счета' в адресе доставки.
public function uncheckSameAsBillingShippingAddress() { $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->hover(); $this->browser->find($this->accountInformationBlock)->hover(); $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSameAsBillingShippingAddress()\n {\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->hover();\n $this->browser->find($this->accountInformationBlock)->hover();\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'che...
[ "0.7044091", "0.63891894", "0.6298717", "0.6173141", "0.5616326", "0.5580946", "0.5524105", "0.551126", "0.5367759", "0.5284583", "0.52657604", "0.5242602", "0.5231994", "0.5230433", "0.5220637", "0.5208659", "0.5207737", "0.5182705", "0.51771134", "0.51303905", "0.51043916",...
0.8704405
0
Wait for form loading.
Ожидайте загрузки формы.
private function waitFormLoading() { $this->_rootElement->click(); $this->browser->waitUntil( function () { return $this->browser->find($this->waitElement)->isVisible() ? null : true; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function waitFormToLoad()\n {\n $browser = $this->browser;\n $selector = $this->formSelector;\n $browser->waitUntil(\n function () use ($browser, $selector) {\n $element = $browser->find($selector);\n return $element->isVisible() ? true : n...
[ "0.851611", "0.6307039", "0.6257618", "0.5820313", "0.5820275", "0.5818406", "0.58022374", "0.579065", "0.5763735", "0.5674831", "0.55756193", "0.5532999", "0.5512858", "0.5459693", "0.5458476", "0.5410221", "0.5409031", "0.53905845", "0.5363178", "0.5352831", "0.53275335", ...
0.8859467
0
Check whether $word starts with $prefix.
Проверьте, начинается ли $word с $prefix.
public static function startsWith(string $prefix, string $word): bool { return \preg_match(\sprintf('#^%s#', $prefix), $word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isPrefix($word): bool\n {\n return (array_key_exists($this->getKey($word), $this->prefixes));\n }", "public static function startsWith($str, $prefix) {\n\t\treturn $prefix === '' || strpos($str, $prefix) === 0;\n\t}", "public function startsWith($prefix);", "public function st...
[ "0.7902205", "0.7798422", "0.76830834", "0.7666427", "0.75608695", "0.74137527", "0.74093074", "0.7396006", "0.73260844", "0.7295106", "0.72742194", "0.7192292", "0.7119859", "0.71086895", "0.7051964", "0.69632506", "0.69427425", "0.6939426", "0.66984206", "0.66019696", "0.65...
0.9183985
0
Check whether $token matches a given syntax pattern.
Проверьте, соответствует ли $token заданному шаблону синтаксиса.
public static function hasSyntax($token, string $syntax = self::VAR_SYNTAX): bool { if (!\is_array($token)) { return false; } $regexp = \sprintf('#%s#', $syntax); return (bool) \preg_match($regexp, $token[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function match($token)\n {\n $lookaheadType = $this->lexer->lookahead['type'];\n\n if ($lookaheadType !== $token && ($token !== Lexer::T_TYPE || $lookaheadType <= Lexer::T_TYPE)) {\n throw $this->syntaxError($this->lexer->getLiteral($token));\n }\n\n $this->lexer...
[ "0.66204137", "0.64315945", "0.6400936", "0.6372737", "0.6367848", "0.6275672", "0.6250349", "0.62437993", "0.6214156", "0.6141109", "0.6134853", "0.60836786", "0.6059906", "0.6026015", "0.60105425", "0.5986414", "0.595635", "0.59499776", "0.5929025", "0.59276956", "0.5873335...
0.7461299
0
Check whether $token type is $which.
Проверьте, является ли тип $token $which.
public static function tokenIs($token, string $which): bool { if (!\is_array($token)) { return false; } return \token_name($token[0]) === $which; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _checkToken(KCommandContext $context)\n {\n //Check the token\n if($context->caller->isDispatched())\n { \n $method = KRequest::method();\n \n //Only check the token for PUT, DELETE and POST requests (AND if the view is not 'ipn')\n ...
[ "0.55055016", "0.5458382", "0.5456719", "0.540959", "0.540959", "0.5371062", "0.5344121", "0.5215533", "0.5172731", "0.5091362", "0.50280005", "0.5002302", "0.49758264", "0.4971031", "0.49484736", "0.49432147", "0.49338207", "0.4891005", "0.4825766", "0.4825766", "0.48164377"...
0.72973967
0
Check whether $token is an operator.
Проверьте, является ли $token оператором.
public static function isOperator($token): bool { if (!\is_string($token)) { return false; } return \strpos(self::MISC_OPERATORS, $token) !== false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasOperator(string $token): bool;", "protected function isOperator(TokenInterface $token): bool {\n return ($set = $this->getOperatorTokenSet()) ? $set->tokenIsMember($token) : false;\n }", "public function isOperator()\n {\n return\n $this->type === 'plus' ||\n ...
[ "0.88693404", "0.79390186", "0.77720106", "0.7617699", "0.73910433", "0.6879744", "0.68775165", "0.6775893", "0.66944265", "0.6678324", "0.6630048", "0.66155404", "0.6609061", "0.6592489", "0.65733826", "0.65582913", "0.6482953", "0.6382587", "0.6341057", "0.6340708", "0.6311...
0.8906139
0
Sundays felt on the first of the month during the twentieth century.
Воскресенья выпадали на первое число в течение двадцатого века.
public function firstOfTheMonthSundays() { $sundays = 0; for ($i=$this->startYear; $i<=$this->endYear; $i++) { for ($j=1; $j<=12; $j++) { if (date('l', strtotime("$j/1/$i")) == "Sunday" ) { $sundays++; } } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sundays()\n {\n return $this->days(0);\n }", "public function getFirstDay(){$day = getdate(mktime(0, 0, 0, $this->getMonth(), 1, $this->getYear())); return $day['wday'];}", "public function saturdays()\n {\n return $this->days(6);\n }", "function firstDayOfWeek($year...
[ "0.69498545", "0.64840597", "0.6220662", "0.6153934", "0.60710835", "0.60520834", "0.5945574", "0.58515733", "0.57897764", "0.5752972", "0.5747811", "0.5708191", "0.5670388", "0.56387705", "0.5636962", "0.5615819", "0.55794567", "0.55301565", "0.5493316", "0.54858154", "0.544...
0.7697573
0
Strip all ANSI sequences from the string.
Удалить все последовательности ANSI из строки.
public function stripAnsi() { $this->string = \preg_replace("/\033\[[;0-9]*\m/Us", '', $this->string); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function strip_ascii_ctrl($str) {\n\t\treturn preg_replace('/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]+/S', '', $str);\n\t}", "public function uncut($str)\n {\n return str_replace('&#8203;', '', str_replace('​', '', $str) );\n }", "private function trim(string $str)\n {\n return ...
[ "0.6504704", "0.6458302", "0.64382446", "0.6389204", "0.63798934", "0.62478584", "0.61580384", "0.6126654", "0.6077035", "0.6048878", "0.58608526", "0.58399624", "0.5787029", "0.57495016", "0.569537", "0.56937855", "0.5678807", "0.567321", "0.56728446", "0.56711745", "0.56709...
0.7544471
0
Test case for addReplenishmentProcessAudit Add new audit for a replenishmentProcess
Тест-кейс для addReplenishmentProcessAudit Добавление нового аудита для процесса пополнения
public function test_addReplenishmentProcessAudit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addFulfillmentProcessAuditRequest($fulfillment_process_id, $fulfillment_process_audit)\n {\n // verify the required parameter 'fulfillment_process_id' is set\n if ($fulfillment_process_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing th...
[ "0.6329952", "0.6321752", "0.61969584", "0.61357874", "0.578552", "0.57681775", "0.54374546", "0.54366595", "0.53849727", "0.53631514", "0.53532517", "0.53363013", "0.53009164", "0.5243142", "0.52309525", "0.5218652", "0.51374704", "0.51042664", "0.5102182", "0.5097951", "0.5...
0.73772097
0
Test case for addReplenishmentProcessTag Add new tags for a replenishmentProcess.
Тест-кейс для addReplenishmentProcessTag Добавление новых тегов для процесса пополнения.
public function test_addReplenishmentProcessTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_getReplenishmentProcessTags() {\n\n }", "public function testAddReplenishmentTag()\n {\n }", "public function test_addReplenishmentProcessAudit() {\n\n }", "public function AddProcess()\n {\n $this->app->response->setStatus( 201 );\n $body = $this->app->reque...
[ "0.64777243", "0.64514357", "0.58901095", "0.56725055", "0.56608963", "0.5588498", "0.5491947", "0.5420028", "0.53794855", "0.53539824", "0.5308997", "0.5272309", "0.51826715", "0.5174692", "0.5124133", "0.50844413", "0.50332147", "0.50120324", "0.500012", "0.49974453", "0.49...
0.7669442
0
Test case for deleteReplenishmentProcessTag Delete a tag for a replenishmentProcess.
Тест-кейс для deleteReplenishmentProcessTag Удаление тега для процесса пополнения.
public function test_deleteReplenishmentProcessTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteReplenishmentTag()\n {\n }", "public function testDeleteProcess () {\n $faker = \\Faker\\Factory::create();\n $process = [\n 'name' => $faker->name,\n 'description' => $faker->text,\n 'code' => $faker->text,\...
[ "0.7243982", "0.66308206", "0.6245989", "0.6193545", "0.61611915", "0.6085347", "0.60817456", "0.606098", "0.6054327", "0.5965658", "0.5935133", "0.58694756", "0.5852979", "0.58500284", "0.57902443", "0.5786409", "0.5765257", "0.567443", "0.56649065", "0.5650478", "0.5612543"...
0.7716604
0
Test case for getDuplicateReplenishmentProcessById Get a duplicated a replenishmentProcess by id
Тест-кейс для getDuplicateReplenishmentProcessById Получение дублированного replenishmentProcess по идентификатору
public function test_getDuplicateReplenishmentProcessById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetDuplicateReplenishmentById()\n {\n }", "public function test_getReplenishmentProcessById() {\n\n }", "protected function getDuplicateFulfillmentProcessByIdRequest($fulfillment_process_id)\n {\n // verify the required parameter 'fulfillment_process_id' is set\n i...
[ "0.66931516", "0.641027", "0.6232355", "0.61928725", "0.6187299", "0.613635", "0.6049829", "0.59200066", "0.57526034", "0.56979907", "0.568265", "0.56778294", "0.56549484", "0.56267667", "0.5626649", "0.56112266", "0.56046975", "0.5600475", "0.55439097", "0.55349207", "0.5514...
0.8148026
0
Test case for getReplenishmentProcessByFilter Search replenishmentProcesses by filter
Тест-кейс для getReplenishmentProcessByFilter Поиск replenishmentProcesses по фильтру
public function test_getReplenishmentProcessByFilter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_getReplenishmentProcessById() {\n\n }", "public function test_getDuplicateReplenishmentProcessById() {\n\n }", "public function getProcess();", "public function getSubprocessByProcessesId()\n\t\t{\n\n\t\t}", "function show_filter_process()\n\t\t{\n\t\t\t$this->t->set_var('filter_...
[ "0.6150384", "0.61182654", "0.55793357", "0.55449796", "0.5528093", "0.5508495", "0.54945415", "0.54615194", "0.54218364", "0.5378466", "0.53776765", "0.53209627", "0.52948743", "0.528947", "0.51721245", "0.5167252", "0.51595134", "0.51595134", "0.51595134", "0.51595134", "0....
0.7013398
0
Test case for getReplenishmentProcessById Get a replenishmentProcess by id
Тестовый случай для getReplenishmentProcessById Получение replenishmentProcess по идентификатору
public function test_getReplenishmentProcessById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_getDuplicateReplenishmentProcessById() {\n\n }", "public function testDeleteProcess () {\n $faker = \\Faker\\Factory::create();\n $process = [\n 'name' => $faker->name,\n 'description' => $faker->text,\n 'code' => $f...
[ "0.66488874", "0.5775771", "0.5759086", "0.57326126", "0.5636149", "0.5605933", "0.5582114", "0.55617845", "0.55186856", "0.5506978", "0.54961294", "0.5432883", "0.54059285", "0.53953886", "0.53817666", "0.53748924", "0.5329162", "0.5326452", "0.53258175", "0.53007764", "0.52...
0.7295529
0
Test case for updateReplenishmentProcessCustomFields Update a replenishmentProcess custom fields
Тестовый случай для updateReplenishmentProcessCustomFields Обновление пользовательских полей replenishmentProcess
public function test_updateReplenishmentProcessCustomFields() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateReplenishmentCustomFields()\n {\n }", "public function testUpdateExternalShipmentCustomFields()\n {\n }", "public function testUpdateOrderCustomFields()\n {\n }", "public function test_updateExternalShipmentCustomFields() {\n\n }", "public function updateFulfi...
[ "0.763807", "0.6707467", "0.6388299", "0.636021", "0.6327615", "0.619549", "0.6099532", "0.60668606", "0.6012192", "0.59926766", "0.5912831", "0.5901459", "0.58147943", "0.5694091", "0.5631779", "0.5425129", "0.5310978", "0.5303625", "0.5298002", "0.5267126", "0.52445257", ...
0.8002282
0
Retrieve require js map
Получить требуемую карту js
private function getRequireJsMap(array $map) { $jsonMap = []; foreach ($map as $fileId => $fileInfo) { if (!in_array(pathinfo($fileId, PATHINFO_EXTENSION), ['js', 'html'])) { continue; } $fileId = '/' . $fileId; // add leading slash to match exclu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadRequireJs() {}", "public function getRequireJsModules(): array\n {\n return $this->requireJsModules;\n }", "function get_map(){\n return $this->customizer_map_array;\n }", "function kilman_get_js_module() {\n return array(\n 'name' => 'mod_kilman',\n ...
[ "0.68215054", "0.6075022", "0.5759074", "0.5734098", "0.5694984", "0.5642087", "0.5634207", "0.5632614", "0.55906177", "0.5569664", "0.5560661", "0.55099", "0.550801", "0.54890877", "0.54742324", "0.5432718", "0.5430894", "0.5411922", "0.5376324", "0.5352512", "0.5337745", ...
0.70515954
0
funcao que insere agencia
функция, которая вставляет отделение
function inserirAgencia(){ $banco = abrirBanco(); //declarando as variáveis usadas na inserção dos dados $nomeAgencia = $_POST["nomeAgencia"]; $cidadeAgencia = $_POST["cidadeAgencia"]; //a consulta sql $sql = "INSERT INTO Agencias(nomeAgencia,cidadeAgencia) VALUES ('$no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inserir()\n {\n }", "public function inserir() {\n $query = '\n insert into tb_atividade(\n id_evento, nome, qntd_part, inscricao, valor, tipo, carga_hr, data_inicio, data_fim\n ) values ( \n :id_evento, ...
[ "0.7317266", "0.70757943", "0.7013392", "0.6997842", "0.69646317", "0.69528013", "0.6949227", "0.69331664", "0.686351", "0.68526584", "0.68459475", "0.6799076", "0.67926675", "0.67367244", "0.6685608", "0.66828966", "0.66764516", "0.6674532", "0.66578585", "0.66477484", "0.66...
0.73745555
0
A test when there is a user logged in the status is logged in
Тест, когда пользователь залогинен, статус залогинен
public function testLoggedStatus(){ Session::flush(); $user = $this->postuser(); $status_message = $this->getStatus(); $this->assertResponseOk(); $this->assertTrue($status_message['message'] == 'user logged in'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logInUserChangesToLoggedInStatus() {\n\t\t$user = new Tx_Oelib_Model_FrontEndUser();\n\t\t$this->subject->logInUser($user);\n\n\t\t$this->assertTrue(\n\t\t\t$this->subject->isLoggedIn()\n\t\t);\n\t}", "public function loginUserConditionMatchesSingleLoggedInUser() {}", "public function loginUser...
[ "0.7612605", "0.7515454", "0.7515185", "0.74784476", "0.74784476", "0.73585045", "0.72561693", "0.7198328", "0.7143894", "0.71422756", "0.70817685", "0.7065611", "0.70576364", "0.69980127", "0.69680476", "0.6946099", "0.693617", "0.6929924", "0.69293475", "0.6911833", "0.6887...
0.7661023
0
Generate the HTML list () representation of the hierarchical array.
Создайте представление иерархического массива в виде HTML-списка ().
private function htmlFromArray($hierarchicalArray) { $html = ''; foreach($hierarchicalArray as $item) { $html .= "<ul>"; $html .= "<li style='color: ". ( ($item['status'] == 1) ? "green" : "red" ) ."'>". $item['title'] . "<span style='color:black;'> --- ". $item['total_points'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeList($array) \n { \n //Base case: an empty array produces no list \n if (empty($array)) return '';\n\n //Recursive Step: make a list with child lists \n $output = '<ol class=\"dd-list\">'; \n foreach ($array as $key => $subArray) { \n $output .= '<li cla...
[ "0.75124466", "0.71984017", "0.70638716", "0.70274454", "0.6869798", "0.68629116", "0.6725132", "0.6677111", "0.66623545", "0.6646143", "0.65818644", "0.65482134", "0.6508053", "0.6503844", "0.6491401", "0.6407998", "0.64017045", "0.6382789", "0.6359215", "0.6357238", "0.6355...
0.7536651
0
$investigation = $this>Investigation>refer($shelter_id, $investigation_id);
$investigation = $this>Investigation>refer($shelter_id, $investigation_id);
public function refer($shelter_id, $investigation_id) { $investigation = $this->Investigation->find('first', array( 'conditions' => array( 'Investigation.id' => $investigation_id ) )); if ($this->request->is('post')) { $note = $this->request->data('Investigation.note'); //$investigation = $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function referal() {\n return $this->hasMany('App\\Referal','refered_by');\n }", "public function referred(){\n\t\treturn $this->hasMany('App\\Referrals', 'StudentId');\n\t}", "function &getInvestigator($id) {\n foreach ($this->investigators as $investigator) {\n ...
[ "0.59257346", "0.58999413", "0.57948905", "0.57023984", "0.5591613", "0.5545335", "0.5501912", "0.54542", "0.53877765", "0.5354222", "0.5345861", "0.5306764", "0.52794105", "0.52665704", "0.52276516", "0.5208388", "0.5205237", "0.5200974", "0.5200709", "0.5195093", "0.5191648...
0.73122716
0
Unlock account user by hash.
Разблокировать учетную запись пользователя по хэшу.
static function unlock_account() { $model = \Auth::$model; # hash GET param exists if ($hash = data('hash')) { # verificando se ha algum usuário com a hash. $user = $model::first(array( 'fields' => 'id, hash_unlock_account', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function logoutUser($hash){\n\n }", "public function logoutUser($hash){\n $where = array(\n \"hash\" => $hash\n );\n $user = $this->select($where);\n if( !empty($user) ){\n $this->delete($user[0]);\n }\n\n }", "protected function unlock($user)\n {\n $newPass = bin...
[ "0.7260432", "0.70276505", "0.62472713", "0.6214747", "0.6119245", "0.60331064", "0.59967935", "0.599631", "0.59360933", "0.5884661", "0.58180374", "0.5800626", "0.5786046", "0.5773707", "0.56095463", "0.56095463", "0.56095463", "0.56095463", "0.56095463", "0.5555076", "0.552...
0.82686746
0
Get the default directory for session files.
Получить default директорию для файлов сессии.
protected function getDefaultDirectory() { // Default to ~/.platformsh/.session, but if it's not writable, fall // back to the temporary directory. $home = $this->getHomeDirectory(); if ($home !== null) { $default = rtrim($home, '/') . '/.platformsh/.session'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sessionDirectoryPath();", "public function getDefaultDirectory(): string|null;", "public function getDefaultInstallDirectory() {\n return $this->getConfig(\"default_install_directory\");\n }", "protected function get_default_root_path(): string {\n return dirname($this->nowqs...
[ "0.7502687", "0.72565943", "0.6938768", "0.683527", "0.67522883", "0.6750491", "0.67405456", "0.67253673", "0.6653799", "0.66280484", "0.6455601", "0.6453387", "0.6416251", "0.63499206", "0.63499206", "0.6298146", "0.629094", "0.6288659", "0.62781996", "0.62071025", "0.616153...
0.756073
0
Configure an AspectContainer with advisors, aspects and pointcuts
Настройте AspectContainer с советниками, аспектами и точками среза
protected function configureAop(AspectContainer $container) { $container->registerAspect(new SecurityAspect()); $container->registerAspect(new TransactionAspect()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function configureAop(AspectContainer $container)\n {\n }", "public function __construct(AspectContainer $container, string $pointcutExpression, Advice $advice)\n {\n $this->container = $container;\n $this->pointcutExpression = $pointcutExpression;\n parent::__con...
[ "0.7459088", "0.6128755", "0.60932237", "0.56092423", "0.5601645", "0.546396", "0.5323014", "0.5210158", "0.51463664", "0.5128503", "0.5121235", "0.51201266", "0.5103017", "0.5070572", "0.50565577", "0.50511634", "0.5048153", "0.50261164", "0.50247574", "0.5020384", "0.499725...
0.73447657
1
Parse reference links from longdescription.
Разобрать ссылки на справочники из longdescription.
private static function parse_reference_links( $longdesc ) { $description = ''; foreach ( explode( "\n", $longdesc ) as $line ) { if ( 0 === strpos( $line, '#' ) ) { break; } $description .= $line . "\n"; } // Fires if it has description text at the head of `$longdesc`. if ( $description ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parse_references()\n {\n if($html = Functions::lookup_with_cache($this->page['taxa_refs'], $this->download_options)) {\n if(preg_match_all(\"/im_field_taxonomic_name%3A(.*?)\\\"/ims\", $html, $arr)) {\n $total = count($arr[1]); $i = 0;\n // print_...
[ "0.5898778", "0.5855734", "0.56484807", "0.56460124", "0.5576293", "0.55487746", "0.5403831", "0.528787", "0.5257685", "0.5257004", "0.52569366", "0.5211511", "0.5188169", "0.5151941", "0.5140594", "0.51305133", "0.51248246", "0.5118302", "0.5097134", "0.5095748", "0.5088709"...
0.8403241
0
Maybe register callback in WooCommerce Subscription hooks.
Может быть, зарегистрировать обратный вызов в хуках WooCommerce Subscription.
protected function _maybe_register_callback_in_subscriptions() { if ( ! class_exists( 'WC_Subscriptions_Order' ) ) { return; } add_action( 'woocommerce_scheduled_subscription_payment_' . $this->id, array( $this, 'scheduled_subscription_payment' ), 10, 2 ); add_action( 'woocommerce_subscription_failing_payme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mwznb_subscribe_callback() {\r\n\tif (!isset($_POST['mwznb_form_nonce']) || !wp_verify_nonce($_POST['mwznb_form_nonce'], basename(__FILE__))) {\r\n\t\texit(MailWizzApi_Json::encode(array(\r\n 'result' => 'error', \r\n 'message' => __('Invalid nonce!', 'mwznb')\r\n )));\r\...
[ "0.6343357", "0.62112117", "0.6181692", "0.61550903", "0.613899", "0.6079373", "0.6058273", "0.6037571", "0.6024137", "0.60170764", "0.59910655", "0.5941497", "0.58847654", "0.5868321", "0.5858017", "0.5840045", "0.5819449", "0.578131", "0.5779185", "0.5778699", "0.57622695",...
0.8077533
0
Checks whether order is part of subscription.
Проверяет, является ли заказ частью подписки.
public function is_subscription( $order_id ) { return ( function_exists( 'wcs_order_contains_subscription' ) && ( wcs_order_contains_subscription( $order_id ) || wcs_is_subscription( $order_id ) || wcs_order_contains_renewal( $order_id ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function order_contains_subscription( $order ) {\n\t\treturn WC_Subscriptions_Order::order_contains_subscription( $order );\n\t}", "protected function order_contains_subscription( $order_id ) {\n\t\treturn class_exists( 'WC_Subscriptions_Order' ) && ( WC_Subscriptions_Order::order_contains_subscription...
[ "0.73145604", "0.71832657", "0.7039286", "0.6850785", "0.6809523", "0.6675408", "0.66322035", "0.66141546", "0.6545899", "0.64850605", "0.6462891", "0.6410539", "0.63974303", "0.6393335", "0.635925", "0.6325357", "0.6325065", "0.63184077", "0.62597966", "0.6235251", "0.619570...
0.75912994
0
Process reference transaction response used when creating payment for scheduled subscription.
Ответ на транзакцию ссылающегося на процесс, используемый при создании платежа для запланированного подписки.
protected function _process_reference_transaction_response( $order, $response ) { $client = wc_gateway_ppec()->client; try { if ( ! $client->response_has_success_status( $response ) ) { throw new Exception( __( 'PayPal API error', 'woocommerce-gateway-paypal-express-checkout' ) ); } $status = ! empty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function handleGatewayCallback($reference)\n {\n $curl = curl_init();\n $sk = config('app.ps_secret'); // Paystack secret key\n $url = config('app.ps_url'); // Paystack payment url\n\n curl_setopt_array($curl, \n [\n CURLOPT_URL => \"{$url}/trans...
[ "0.6807607", "0.6216509", "0.6092531", "0.5993062", "0.5970466", "0.58522445", "0.58122176", "0.57300836", "0.57126147", "0.56970793", "0.5652897", "0.56362396", "0.56090647", "0.55589944", "0.5557577", "0.55318934", "0.5529978", "0.5522464", "0.5519557", "0.551316", "0.54826...
0.70716196
0
Increase the vehicle's speed by providing an acceleration rate (m/s^2) and a duration (s). Also going to pretend there is no friction.
Увеличьте скорость транспортного средства, указав ускорение (м/с²) и продолжительность (с). Также будем считать, что трения нет.
public function accelerate($rate, $duration) { //make sure engine is on if (!$this->engine_on) { echo PHP_EOL; $this->action("ERROR: Engine not on! Start vehicle first!"); return; } //engine is on, go! //if $rate is negative, pass i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function accelerate(float $velocity): void\n {\n if ($velocity < 0) {\n throw new InvalidArgumentException('Accelerating must be positive velocity.', E_ERROR);\n }\n $this->setVelocity($this->getVelocity() + $velocity);\n }", "public function Accelerate($mphIncrease)\...
[ "0.6875982", "0.68017757", "0.6493758", "0.64079857", "0.6100264", "0.6085745", "0.60552675", "0.6003016", "0.58228856", "0.5781426", "0.56494397", "0.5447254", "0.5357371", "0.5354695", "0.5316456", "0.52345675", "0.51513916", "0.5142515", "0.508259", "0.5073991", "0.5012539...
0.7384996
0
Decrease the vehicle's speed by providing an acceleration rate (m/s^2) and a duration (s). If the rate is negative, pass it to acceleration (negative deceleration == acceleration)
Уменьшите скорость транспортного средства, указав ускорение (м/с²) и продолжительность (с). Если значение ускорения отрицательное, передайте его как ускорение (отрицательное замедление == ускорение)
public function decelerate($rate, $duration) { //make sure engine is on if (!$this->engine_on) { echo PHP_EOL; $this->action("ERROR: Engine not on! Start vehicle first!"); return; } //engine is on, go! //if $rate is negative, pass it ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Decelerate($mphDecrease)\r\n {\r\n echo \"<b><u>Command Received: Decelerate by \" . $mphDecrease . \"mph</b></u><br />\";\r\n echo $this->carName . \"'s current speed is \" . $this->speed . \".<br />\";\r\n echo \"Decelerating by \" . $mphDecrease . \"<br />...
[ "0.6706126", "0.63894016", "0.6351853", "0.54388183", "0.5437738", "0.5421077", "0.5198288", "0.514183", "0.50479466", "0.50055534", "0.49584106", "0.49565533", "0.4935635", "0.49083826", "0.48947474", "0.48320657", "0.48265338", "0.48130295", "0.47844753", "0.47628754", "0.4...
0.7851707
0
Provide a method for a vehicle to change its speed to one passed in, will still accelerate or decelerate though because we can't just magically change speed.
Предоставьте метод для изменения скорости транспортного средства до переданной, при этом оно всё равно будет ускоряться или замедляться, поскольку мы не можем просто магически изменить скорость.
public function change_speed($speed) { //make sure engine is on if (!$this->engine_on) { echo PHP_EOL; $this->action("ERROR: Engine not on! Start vehicle first!"); return; } //engine is on, go! echo PHP_EOL; $this->action("is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSpeed($value)\n {\n return $this->set(self::SPEED, $value);\n }", "public function setSpeedAttribute(float $speed): void\n {\n $this->attributes['speed'] = $speed;\n }", "public function setSpeed($speed)\n {\n $this->speed = $speed;\n return $this;\...
[ "0.69849366", "0.67787296", "0.6470276", "0.63673824", "0.63160217", "0.62928694", "0.6292402", "0.6231505", "0.6197077", "0.603632", "0.60068953", "0.5987028", "0.5977294", "0.592089", "0.5888272", "0.58835876", "0.58236545", "0.57961965", "0.56930697", "0.5689779", "0.55722...
0.735738
0
Turn the vehicle's windshield wipers on and say so
Включите стеклоочистители автомобиля и сообщите об этом
public function wipers_on() { echo PHP_EOL; $this->action("turning windshield wipers on"); $this->wipers_on = TRUE; $this->action("windshield wipers are on"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function wipers_off() {\r\n echo PHP_EOL;\r\n $this->action(\"turning windshield wipers off\");\r\n $this->wipers_on = FALSE;\r\n $this->action(\"windshield wipers are off\");\r\n }", "public function check_wipers() {\r\n echo PHP_EOL;\r\n $this->action(\"check...
[ "0.68858397", "0.67571133", "0.64585125", "0.6389512", "0.6058146", "0.5924737", "0.58427685", "0.58376217", "0.5661815", "0.56383085", "0.5576052", "0.55307835", "0.54582673", "0.54477835", "0.52952784", "0.5288335", "0.5268739", "0.52103925", "0.5181608", "0.51578444", "0.5...
0.83995223
0
Turn the vehicle's windshield wipers off and say so
Выключите стеклоочистители автомобиля и сообщите об этом
public function wipers_off() { echo PHP_EOL; $this->action("turning windshield wipers off"); $this->wipers_on = FALSE; $this->action("windshield wipers are off"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function headlights_off() {\r\n echo PHP_EOL;\r\n $this->action(\"turning headlights off\");\r\n $this->lights_on = FALSE;\r\n $this->action(\"headlights are off\");\r\n\r\n }", "public function turnOff() //Einschalten geht nur über WOL! \n { \n $this->lg_handsha...
[ "0.6940853", "0.665587", "0.6653931", "0.6568121", "0.65494555", "0.6472957", "0.6152214", "0.61125106", "0.5893043", "0.5890121", "0.58431864", "0.57530046", "0.5743271", "0.56316966", "0.5598257", "0.55520046", "0.55294603", "0.547954", "0.5339683", "0.532005", "0.5300609",...
0.86797
0
Simple function to see if the windshield wipers are on
Простая функция для проверки, включены ли дворники
public function check_wipers() { echo PHP_EOL; $this->action("checking wipers"); $this->action($this->wipers_on ? "windshield wipers are on" : "windshield wipers are off"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function wipers_on() {\r\n echo PHP_EOL;\r\n $this->action(\"turning windshield wipers on\");\r\n $this->wipers_on = TRUE;\r\n $this->action(\"windshield wipers are on\");\r\n }", "public function isWormhole() : bool {\n return ($this->scope === 'wh');\n }", "fun...
[ "0.7370961", "0.6523211", "0.6485527", "0.6466761", "0.6466761", "0.62400895", "0.62400895", "0.61735916", "0.6141623", "0.6127233", "0.60532963", "0.5980827", "0.5944772", "0.5936714", "0.5892675", "0.58765763", "0.5866674", "0.58519655", "0.5833319", "0.58201665", "0.580818...
0.83180064
0
Turn the vehicle's headlights off
Выключите фары автомобиля
public function headlights_off() { echo PHP_EOL; $this->action("turning headlights off"); $this->lights_on = FALSE; $this->action("headlights are off"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function wipers_off() {\r\n echo PHP_EOL;\r\n $this->action(\"turning windshield wipers off\");\r\n $this->wipers_on = FALSE;\r\n $this->action(\"windshield wipers are off\");\r\n }", "public function ledsOff()\n {\n $payload = '';\n\n $this->sendRequest(sel...
[ "0.6708087", "0.6573409", "0.6436332", "0.64168584", "0.6293718", "0.58018315", "0.5776745", "0.57458085", "0.56274515", "0.56260884", "0.5607017", "0.55696243", "0.55295616", "0.5511122", "0.5467074", "0.5454244", "0.5415769", "0.5407163", "0.53947544", "0.5388518", "0.53847...
0.858816
0
Turn the vehicle's headlights on
Включите фары автомобиля
public function headlights_on() { echo PHP_EOL; $this->action("turning headlights on"); $this->lights_on = TRUE; $this->action("headlights are on"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check_headlights() {\r\n echo PHP_EOL;\r\n $this->action(\"checking headlights\");\r\n $this->action($this->lights_on ? \"headlights are on\" : \"headlights are off\");\r\n }", "public function headlights_off() {\r\n echo PHP_EOL;\r\n $this->action(\"turning ...
[ "0.7363306", "0.68911713", "0.6512324", "0.61402506", "0.59804076", "0.5937115", "0.5923228", "0.567806", "0.53265893", "0.53150856", "0.53087217", "0.53035927", "0.52730983", "0.5183143", "0.5041496", "0.49756184", "0.4904635", "0.48932427", "0.4883198", "0.48204786", "0.481...
0.85471225
0
Simple function to see if the vehicle's headlights are on
Простая функция для проверки, включены ли фары автомобиля
public function check_headlights() { echo PHP_EOL; $this->action("checking headlights"); $this->action($this->lights_on ? "headlights are on" : "headlights are off"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function headlights_on() {\r\n echo PHP_EOL;\r\n $this->action(\"turning headlights on\");\r\n $this->lights_on = TRUE;\r\n $this->action(\"headlights are on\");\r\n }", "public function areLedsOn()\n {\n $payload = '';\n\n $data = $this->sendRequest(self::F...
[ "0.7082882", "0.57546675", "0.56388485", "0.5610307", "0.54752856", "0.5443048", "0.5322987", "0.5313153", "0.5273697", "0.52671635", "0.52427834", "0.522431", "0.52237964", "0.5217415", "0.52028227", "0.5186477", "0.51632744", "0.5160209", "0.51535326", "0.51340723", "0.5105...
0.80851513
0
Tell us the state of the engine, ie is it on or not (note vehicle turns it off automatically).
Скажите нам состояние двигателя, то есть включен ли он или нет (иметь в виду, что автомобиль автоматически выключает его).
public function engine_state() { echo PHP_EOL; $this->action("checking engine"); if ($this->engine_on) { $this->action("engine is on! Don't forget to turn it off"); } else { $this->action("engine is off"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function turn_on()\n {\n $this->testing = TRUE;\n }", "public function switchOn();", "public function headlights_on() {\r\n echo PHP_EOL;\r\n $this->action(\"turning headlights on\");\r\n $this->lights_on = TRUE;\r\n $this->action(\"headlights are on\");\r\n }...
[ "0.62084776", "0.60974586", "0.5892616", "0.58890015", "0.58708686", "0.58308244", "0.58149576", "0.581077", "0.57627356", "0.5755748", "0.5746295", "0.5743609", "0.5727302", "0.5727302", "0.5727302", "0.5727302", "0.5727302", "0.5727302", "0.5727302", "0.5727302", "0.5727302...
0.869116
0
Initialize plugin loader for models
Инициализировать загрузчик плагинов для моделей
public function __construct() { $this->_loader = new Zend_Loader_PluginLoader(array( 'Bugapp' => APPLICATION_PATH . '/models', )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initLoader() {\n $this->_loader = new Loader();\n\t}", "public function initialize()\n {\n parent::initialize();\n $this->loadModel('Projects');\n $this->loadModel('ProjectsInjections');\n $this->loadModel('Colonies');\n }", "public static function init...
[ "0.70560014", "0.7022525", "0.7003943", "0.69552284", "0.68227637", "0.6815323", "0.6725727", "0.66877496", "0.66794556", "0.66536695", "0.66503805", "0.66343635", "0.6623057", "0.6615094", "0.65887064", "0.6578339", "0.65425426", "0.65246105", "0.6512719", "0.6504253", "0.64...
0.70711553
0
get a free id.
получить бесплатный id.
private function getFreeId() { $ids = self::queues(); for ($i = 1; $i < pow(2, 16); $i++) { if ($ids[$i] ?? false) { } else { return $i; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function obtenerID();", "public function obtenerId() {}", "function getFreeDrugId()\n {\n $request = \"SELECT id FROM DRUG WHERE id = (SELECT MAX(id) FROM DRUG ORDER BY id ASC)\";\n\n DBConnexion::getInstance()->prepareAndExecuterQuerySelect($request, null);\n $response = DBConne...
[ "0.67724544", "0.65510756", "0.65360796", "0.6516126", "0.6466356", "0.6439093", "0.6439093", "0.64252317", "0.64252317", "0.64252317", "0.63448864", "0.6304572", "0.63036263", "0.62964505", "0.62689054", "0.62636757", "0.6225233", "0.6169001", "0.6119997", "0.61110425", "0.6...
0.71075106
0
Show the form for creating new RequestToTechnical.
Показать форму для создания нового RequestToTechnical.
public function create() { if (! Gate::allows('request_to_technical_create')) { return abort(401); } $projects = \App\TimeProject::get()->pluck('name', 'id')->prepend('Please select', '');$work_types = \App\TimeWorkType::get()->pluck('name', 'id')->prepend('Please select', '');$a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n return view('medicalRequest.create');\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = ...
[ "0.71944946", "0.67354745", "0.6582597", "0.6563672", "0.65582204", "0.65582204", "0.65255874", "0.6521825", "0.647198", "0.6321018", "0.6297322", "0.6287054", "0.628262", "0.62734175", "0.62688255", "0.62688005", "0.62649804", "0.6255589", "0.6237941", "0.6228395", "0.622531...
0.7381584
0
Store a newly created RequestToTechnical in storage.
Храните новый созданный RequestToTechnical в хранилище.
public function store(StoreRequestToTechnicalsRequest $request) { if (! Gate::allows('request_to_technical_create')) { return abort(401); } $request = $this->saveFiles($request); $request_to_technical = RequestToTechnical::create($request->all()); $request_to_tech...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(TechnicianRequest $request)\n {\n\n //echo $request->pendinginvoiced_at;\n // store the data in database\n $technician = new Technician;\n $technician->pendinginvoiced_at = $request->pendinginvoiced_at;\n $technician->technician_name = $request...
[ "0.63589287", "0.61763245", "0.61763245", "0.614117", "0.60970384", "0.60969806", "0.6092926", "0.60915536", "0.60894495", "0.6085461", "0.6085461", "0.60569155", "0.60569155", "0.60569155", "0.60569155", "0.60569155", "0.60569155", "0.60569155", "0.6050527", "0.6041553", "0....
0.7451615
0
Show the form for editing RequestToTechnical.
Показать форму для редактирования RequestToTechnical.
public function edit($id) { if (! Gate::allows('request_to_technical_edit')) { return abort(401); } $projects = \App\TimeProject::get()->pluck('name', 'id')->prepend('Please select', '');$work_types = \App\TimeWorkType::get()->pluck('name', 'id')->prepend('Please select', '');$as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r...
[ "0.6753198", "0.65546346", "0.6549745", "0.6524874", "0.64573175", "0.636553", "0.63427705", "0.63347274", "0.6315249", "0.62827134", "0.62673265", "0.6239687", "0.62371385", "0.6234597", "0.6234597", "0.6224215", "0.61977535", "0.6161846", "0.6161846", "0.61428106", "0.61363...
0.71146655
0
Available socials for social picker
Доступные соцсети для социального выборщика
function pearl_available_socials() { $socials = array( '' => esc_html__('Select Option...', 'pearl'), 'facebook' => esc_html__('Facebook', 'pearl'), 'twitter' => esc_html__('Twitter', 'pearl'), 'vk' => esc_html__('VK', 'pearl'), 'instagram' => esc_html__('Instag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ds_get_social_profiles() {\n\n // Return a filterable social profile.\n return apply_filters(\n 'ds_social_profiles',\n array()\n );\n \n}", "function wpsight_options_social() {\n\t\n\t\tif( ! current_theme_supports( 'options-social' ) )\n\t\t\treturn;\n\t\t\n\t\t/** Create opt...
[ "0.6605316", "0.659257", "0.65631825", "0.65587336", "0.6498543", "0.6491676", "0.6476584", "0.64217055", "0.6402", "0.6362196", "0.6361725", "0.6333179", "0.63264555", "0.6314458", "0.6310492", "0.62749374", "0.6205243", "0.61970353", "0.6189213", "0.618046", "0.6143683", ...
0.7134292
0
Returns a path for the thumbnail source
Возвращает путь для источника миниатюры
abstract public function get_thumbnail_source_path();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function thumbnailPath() {\n return $this->baseDir() . '/tn-' . $this->fileName();\n }", "public function getRootThumbnailPath()\n {\n return \"{$this->thumbnail}\";\n }", "public function getThumbnail() {\n\n if (file_exists($this->getUploadDir() . '/min_' . $this->path)){\n ...
[ "0.80168724", "0.7964641", "0.7810865", "0.7748612", "0.7651174", "0.75961137", "0.75083584", "0.7369335", "0.7357117", "0.734409", "0.7317583", "0.7314274", "0.70809317", "0.7043076", "0.69830585", "0.6982412", "0.69629514", "0.6953417", "0.6908599", "0.6908599", "0.688267",...
0.9238036
0
Return a file source's subfolder setting
Вернуть настройку подпапки источника файла
public function source_subfolder() { $settings = $this->source()->settings(); return !empty($settings->subfolder) ? rtrim($settings->subfolder, '/').'/' : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getSubsetFile() {}", "public function getSrcPath()\n {\n return $this->getSettingArray()[\"src_path\"];\n }", "abstract public function subfolder($manipulation_name = '');", "function getRootLevelFolder() ;", "function greyhead_configuration_get_path_to_sites_directory($sub...
[ "0.6053696", "0.6021111", "0.5783398", "0.5782519", "0.5781409", "0.57484907", "0.57477015", "0.57281977", "0.5703876", "0.56885844", "0.5668091", "0.56541646", "0.55827457", "0.55719143", "0.556048", "0.55308264", "0.55308264", "0.5515675", "0.55105853", "0.55055624", "0.544...
0.78863657
0
Check if the given offset points on a channel on the list.
Проверьте, указывает ли заданный смещение на канал в списке.
public function offsetExists($offset) { return isset($this->channels[$offset]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offsetExists($offset)\r\n {\r\n return $offset < count($this->stack);\r\n }", "function offsetExists(/*. mixed .*/ $offset){}", "public function existsOffset($offset, $container = 'default');", "public function offsetExists($offset)\n {\n // init\n $length = $this->length(...
[ "0.585918", "0.5857861", "0.58514875", "0.58511525", "0.58492327", "0.5768492", "0.5745769", "0.5740244", "0.5696496", "0.5682665", "0.5681669", "0.563551", "0.5624604", "0.5599344", "0.5599344", "0.55674565", "0.5557006", "0.5557006", "0.5557006", "0.5557006", "0.5557006", ...
0.7002666
0
Return a channel which is pointed by the given offset.
Вернуть канал, указываемый заданным смещением.
public function offsetGet($offset) { return $this->channels[$offset]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardAt($offset)\n {\n return $this->get(self::CARD, $offset);\n }", "public function getCompAt($offset)\n {\n return $this->get(self::_COMP, $offset);\n }", "public function offsetSet($offset, $value)\n {\n $this->channels[$offset] = $value;\n }", "pu...
[ "0.60765564", "0.59392464", "0.5581068", "0.54837036", "0.5440446", "0.5434856", "0.5373593", "0.5354716", "0.5350612", "0.53098166", "0.527101", "0.5256933", "0.52534866", "0.52534866", "0.5238843", "0.52118057", "0.5211611", "0.5198176", "0.5198176", "0.5198176", "0.5198176...
0.7559827
0
Set the given channel on a place which is pointed by the given offset.
Установите заданный канал на место, указываемое заданным смещением.
public function offsetSet($offset, $value) { $this->channels[$offset] = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offsetSet($offset, $value);", "public function offsetSet($offset, $value);", "public function set($offset, $value);", "public function offsetSet($offset, $value) {}", "public function offsetSet($offset, $value) {}", "public function offsetSet($offset, $value) {}", "public function offse...
[ "0.6253893", "0.6253893", "0.6130315", "0.61113524", "0.61110735", "0.61110735", "0.61110735", "0.6104435", "0.6098266", "0.60702926", "0.6010596", "0.5994113", "0.5990749", "0.596533", "0.5953963", "0.59427494", "0.59427494", "0.59427494", "0.59427494", "0.59427494", "0.5942...
0.74692345
0
Remove a channel which is located in a place pointed by the given offset.
Удалить канал, находящийся в месте, указанном данным смещением.
public function offsetUnset($offset) { unset($this->channels[$offset]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($offset = null);", "public function offsetUnset($offset) {\n $this->remove(array($offset));\n }", "public function offsetUnset($offset) {\n\t\tunset($this->pile[$offset]);\n\t}", "public function offsetUnset($offset);", "public function offsetUnset($offset);", "public function ...
[ "0.66976106", "0.6495227", "0.6467733", "0.644756", "0.644756", "0.6369198", "0.6325927", "0.6310538", "0.6310538", "0.6305948", "0.6305948", "0.6305948", "0.6305564", "0.6305564", "0.62679297", "0.6231092", "0.6231092", "0.61906564", "0.6171805", "0.6106003", "0.61041474", ...
0.77622086
0
Return a number of all channels which are on the list.
Вернуть количество всех каналов, находящихся в списке.
public function count() { return count($this->channels); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsedChannels(): int\n {\n }", "public function count(): int\n {\n return count($this->channels);\n }", "public function getChannels()\n {\n $size = $this->getImageSize();\n\n return $size['channels'];\n }", "public function getMaxChannels(): int\n ...
[ "0.75981665", "0.7465623", "0.7113431", "0.6555332", "0.6452089", "0.6349365", "0.6347884", "0.6333027", "0.6282302", "0.6238018", "0.6218401", "0.6185132", "0.6154089", "0.6092683", "0.6086054", "0.6020538", "0.60061646", "0.5983918", "0.59553427", "0.5950792", "0.59294116",...
0.7719563
0
Return an array of ids of channels which are on the list.
Вернуть массив идентификаторов каналов, которые находятся в списке.
public function getChannelIds() { $ids = []; foreach ($this as $channel) { $channelId = $channel->getChannelId(); if (!empty($channelId)) { $ids[] = $channelId; } } return $ids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChannels(){\n\t\t//TODO: Change query\n\t\t$query = sprintf(\"SELECT idChannel FROM Channels limit 1\");\n\n\t\t$this->dbObj->Query($query);\n\n\t\tif ($this->dbObj->numErr) {\n\t\t\t$this->parent->SetError(5);\n\t\t}\n\n\t\t$out = NULL;\n\t\twhile (!$this->dbObj->EOF) {\n\t \t\t$out[] = $this->...
[ "0.7078454", "0.6962226", "0.6767074", "0.6725589", "0.6609322", "0.6567238", "0.649827", "0.64391017", "0.6383432", "0.6326732", "0.63179535", "0.62899053", "0.6277092", "0.62713474", "0.6242606", "0.62168366", "0.61238873", "0.6117613", "0.6103672", "0.60845137", "0.6051966...
0.8179587
0
Return a Script object which contains a script with Dotpay widget configuration.
Вернуть объект Script, который содержит скрипт с конфигурацией виджета Dotpay.
public function getWidgetScript() { foreach ($this as $channel) { if ($channel instanceof Dotpay) { return $channel->getScript($this->getChannelIds()); } } return new Script(new PlainText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWidgetScript() {\n //$vIsHasLHCAccount = $vCurrentSession->getValue('isHasLHCAccount');\n //if (!$vIsHasLHCAccount) {\n $script = $this->fillChatWidget();\n // }\n return isset($script) === true ? $script: false ;\n }", "public function setS...
[ "0.65830034", "0.64373696", "0.6301369", "0.6144808", "0.6102449", "0.60436356", "0.59874696", "0.59589416", "0.5873644", "0.58617055", "0.5819742", "0.5779247", "0.5774962", "0.57125235", "0.56367683", "0.5594633", "0.55920756", "0.5579904", "0.55306053", "0.55306053", "0.55...
0.80469626
0
Modifies the response to add LastModified header.
Модифицирует ответ для добавления заголовка LastModified.
public function onKernelResponse(FilterResponseEvent $event) { if (isset($this->lastModifiedDate)) { $event->getResponse()->setLastModified($this->lastModifiedDate); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_last_modified_header() {\n\t\tif ( headers_sent() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( is_single() || is_page() ) {\n\t\t\t$object = get_queried_object();\n\t\t\tif ( property_exists( $object, 'post_date_gmt' ) ) {\n\t\t\t\theader( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s \\G\\M\\T', strtot...
[ "0.7983931", "0.72746235", "0.7220157", "0.7012572", "0.67936856", "0.66962034", "0.66639125", "0.65936846", "0.6587019", "0.6574674", "0.65075415", "0.65075415", "0.65075415", "0.65075415", "0.64234424", "0.63427013", "0.62927854", "0.6278667", "0.62383336", "0.62226933", "0...
0.75007737
1
return a cleaned IPTC value
вернуть очищенный IPTC-значение
function clean_iptc_value($value) { // strip leading zeros (weird Kodak Scanner software) while ( isset($value[0]) and $value[0] == chr(0)) { $value = substr($value, 1); } // remove binary nulls $value = str_replace(chr(0x00), ' ', $value); return $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cleanValue()\n {\n return str_replace([\n '%',\n '-',\n '+',\n ], '', $this->condition->value);\n }", "function clean_value( $t )\n\t{\n\t\treturn $this->parse_clean_value( $t );\n\t}", "function pulisciInput($value) {\n\t$value=trim($valu...
[ "0.6317176", "0.6010486", "0.5952495", "0.5931623", "0.5857504", "0.5796812", "0.5747209", "0.5722128", "0.5715729", "0.57015157", "0.5666901", "0.5662041", "0.56577075", "0.56563574", "0.5653173", "0.56082827", "0.5607068", "0.5607063", "0.55888873", "0.55628186", "0.5550418...
0.70346045
0
Handle customer subscription updated.
Обработка обновления подписки клиента.
public function handleCustomerSubscriptionUpdated(array $payload) { $user = $this->getCustomerByStripeId($payload['data']['object']['customer']); if ($user) { $data = $payload['data']['object']; $user->subscriptions->filter(function (Subscription $subscription) use ($data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleCustomerSubscriptionUpdated($payload)\n {\n // Handle The Event\n $user = $this->getUserByStripeId($payload['data']['object']['customer']);\n if ( $user ) {\n $subscription = $user->subscriptions->filter(function ($subscription) use ($payload) {\n ...
[ "0.7938381", "0.6629907", "0.6474294", "0.6454521", "0.64393604", "0.6368669", "0.6290253", "0.6255986", "0.6196972", "0.6196972", "0.59801406", "0.59479505", "0.5939963", "0.59267765", "0.5903966", "0.589188", "0.58612907", "0.58470136", "0.5829545", "0.58078426", "0.5796042...
0.7524786
1
Handle customer source deleted.
Обработка удаленного источника клиента.
public function handleCustomerSourceDeleted(array $payload) { if ($user = $this->getCustomerByStripeId($payload['data']['object']['customer'])) { $user->updateCardFromStripe(); } // TODO: update our payment sources table return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($customerId);", "public function deleted() {\n // TODO Implement this\n }", "public function deleted(PurchaseReceipt $purchaseReceipt)\n {\n //\n }", "function deleteCustomer() {\n\n // Delete all notes of customer\n $stmt = $GLOBALS['con']->prepare...
[ "0.6692381", "0.6154661", "0.61180973", "0.61180395", "0.6079464", "0.60732335", "0.6065986", "0.60385084", "0.60385084", "0.60385084", "0.60385084", "0.6021553", "0.5993087", "0.59712505", "0.5969775", "0.5968384", "0.59656453", "0.59332234", "0.5929563", "0.59080976", "0.59...
0.75575286
0
Function enables caching. Params can be passed as an associative array or a set of param=value strings. phpSmug uses the PEAR MDB2 module to interact with the database. You will need to install PEAR, the MDB2 module and corresponding database driver yourself in order to use database caching.
Функция позволяет использовать кэширование. Параметры можно передавать в виде ассоциативного массива или набора строк вида param=value. phpSmug использует модуль PEAR MDB2 для взаимодействия с базой данных. Для использования кэширования с базой данных вам необходимо самостоятельно установить PEAR, модуль MDB2 и соответ...
public function enableCache() { $args = phpSmug::processArgs( func_get_args() ); $this->cacheType = $args['type']; $this->cache_expire = ( array_key_exists( 'cache_expire', $args ) ) ? $args['cache_expire'] : '3600'; $this->cache_table = ( array_key_exists( 'table', $args ) ) ? $args['table'] : 'phpsmug_cach...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cache();", "function start_cache()\r\n\t{\r\n\t\t$this->db->start_cache();\r\n\t}", "function setcache( $name, $d, $b = NULL )\n{\n\t\treturn FALSE;\n}", "public function setCaching($cache);", "abstract protected function cacheData();", "public static function cacheEnabled($mnt,$command,$params,...
[ "0.6279587", "0.6259032", "0.6239676", "0.6148387", "0.6139618", "0.60149646", "0.6008643", "0.59923345", "0.59058154", "0.5872038", "0.5841732", "0.58288556", "0.5762605", "0.5752095", "0.5749241", "0.57316184", "0.5715388", "0.5714111", "0.57120615", "0.5705842", "0.5688278...
0.7683221
0
Set Token and Token Secret for use by other methods in phpSmug. Use this method to pull in the token and token secret obtained during the OAuth authorisation process. If OAuth is being used, this method MUST be called so phpSmug knows about the token and token secret. NOTE: It's up to the application developer using ph...
Установите Token и Token Secret для использования другими методами в phpSmug. Используйте этот метод для получения token и token secret, полученных в процессе OAuth-авторизации. Если используется OAuth, этот метод ДОЛЖЕН быть вызван, чтобы phpSmug узнал о token и token secret. ВНИМАНИЕ: Хранение Access token и token se...
public function setToken() { $args = phpSmug::processArgs( func_get_args() ); $this->oauth_token = $args['id']; $this->oauth_token_secret = $args['Secret']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setToken($token, $token_secret) {}", "protected function _setOauthToken()\n {\n $this->_initHttpClient($this->_endpointUrls['access_token'], CurlHttpClient::POST);\n $this->_httpClient->setPostParam('client_id', $this->_config['client_id']);\n $this->_httpClient->setPostPa...
[ "0.699483", "0.69315577", "0.6595747", "0.6577421", "0.6567299", "0.6528033", "0.65255195", "0.6441816", "0.6316078", "0.62788004", "0.6229927", "0.6209302", "0.6206399", "0.61687607", "0.6126485", "0.6120952", "0.61163235", "0.6081622", "0.6048413", "0.6047142", "0.6026594",...
0.73831743
0
Single login function for all nonOAuth logins. I've created this function to try and get things consistent across the entire phpSmug functionality. This method will determine the login type from the arguments provided. If no arguments are provide, anonymous login will be used.
Функция входа в систему для всех неOAuth-логинов. Я создал эту функцию, чтобы попытаться сделать всё более последовательным в функциональности phpSmug. Этот метод определит тип входа на основе предоставленных аргументов. Если аргументов не будет, будет использоваться анонимный вход.
public function login() { if ( func_get_args() ) { $args = phpSmug::processArgs( func_get_args() ); if ( array_key_exists( 'EmailAddress', $args ) ) { // Login with password $this->request( 'smugmug.login.withPassword', array( 'EmailAddress' => $args['EmailAddress'], 'Password' => $args['Password'] ) )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkLogin($type=''){\n\t\tif ($type == 'A'){\n\t\t\treturn $this->session->userdata(APPNAMES.'_session_admin_id');\n\t\t}else if ($type == 'P'){\n\t\t\treturn $this->session->userdata(APPNAMES.'_session_admin_privileges');\n\t\t}else if ($type == 'U'){\n\t\t\treturn $this->session->userdata(APPNAM...
[ "0.6717653", "0.6710744", "0.6575434", "0.65627545", "0.6548706", "0.64384073", "0.6414711", "0.639196", "0.63869643", "0.6370147", "0.63649166", "0.63566893", "0.63566893", "0.63230646", "0.6279442", "0.6231368", "0.6199923", "0.61956143", "0.6194676", "0.6190852", "0.618108...
0.7755936
0
Sign the passed resource with the OAuth params. This essentially generates a signature for the passed URL and returns a string with the OAuth parameters and signature appended. This is very useful for allowing people to display images that are not set to allow external view within the gallery's settings on SmugMug.
Подпишите переданный ресурс с помощью параметров OAuth. Это по сути генерирует подпись для переданного URL и возвращает строку с параметрами OAuth и подписью. Это очень полезно для возможности отображения изображений, которые не настроены на разрешение внешнего просмотра в настройках галереи SmugMug.
public function signResource( $url ) { if ( $this->OAuthSecret ) { $sig = $this->generate_signature( null, null, $url ); $oauth_params = array ( 'oauth_version' => '1.0', 'oauth_nonce' => $this->oauth_nonce, 'oauth_timestamp' => $this->oauth_timestamp, 'oauth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sign($url) {\n $url_parts = parse_url($url);\n $name_value_pairs = isset($url_parts['query']) ? explode(\"&\",$url_parts['query']) : array();\n $query_string_params = array();\n foreach($name_value_pairs as $nvp) {\n $param = explode('=',$nvp);\n $query_string_params[urldecode...
[ "0.6546233", "0.63520104", "0.615349", "0.61214733", "0.60465074", "0.59580374", "0.58563226", "0.5769632", "0.5754695", "0.5697552", "0.56857383", "0.5666728", "0.5666559", "0.5650365", "0.5600977", "0.5583906", "0.55525774", "0.55485076", "0.55440557", "0.5519036", "0.55190...
0.7601161
0
Return the response headers. Raises a warning and returns if the request wasn't executed yet.
Возвращает заголовки ответа. Вызывает предупреждение и возвращает, если запрос ещё не был выполнен.
public function getHeaders() { if ( !$this->executed ) { return 'Trying to fetch response headers for a pending request.'; } return $this->response_headers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_response_headers()\n\t{\n\t\tif ( !$this->executed ) {\n\t\t\tthrow new \\Exception( _t( 'Unable to fetch response headers for a pending request.' ) );\n\t\t}\n\n\t\treturn $this->response_headers;\n\t}", "protected static function get_response_headers()\n {\n }", "public func...
[ "0.84360623", "0.7967158", "0.7838367", "0.77513504", "0.772623", "0.7628168", "0.761955", "0.761955", "0.761955", "0.761955", "0.761955", "0.761955", "0.7575078", "0.7523615", "0.7480291", "0.7461244", "0.74569726", "0.73560166", "0.7326027", "0.7278213", "0.7235361", "0.7...
0.85918343
0
Set the adapter to use. Accepted values are "curl" and "socket"
Установите адаптер для использования. Допустимые значения: "curl" и "socket"
public function setAdapter( $adapter ) { $adapter = strtolower( $adapter ); if ( $adapter == 'curl' || $adapter == 'socket' ) { $this->config['adapter'] = $adapter; // We need to reset the processor too. This is quite crude and messy, but we need to do it. if ( function_exists( 'curl_init' ) && ( $adapte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setConnection(AdapterInterface $adapter);", "public function setDefaultAdapter() {\n\t\t$this->setAdapter(new Client());\n\t}", "public function setAdapter(AdapterInterface $adapter);", "public function setRequestAdapter($adapter)\n {\n $this->connector->setAdapter($adapter);\n }...
[ "0.66564006", "0.6636478", "0.65077204", "0.63808286", "0.6239431", "0.6182475", "0.5958179", "0.5938879", "0.58823365", "0.58814996", "0.58574927", "0.5824818", "0.5800664", "0.5743228", "0.5669116", "0.5631398", "0.5513992", "0.5484887", "0.5427836", "0.53984195", "0.537302...
0.79114515
0
Return the response body. Raises a warning and returns if the request wasn't executed yet.
Возвращает тело ответа. Вызывает предупреждение и возвращает, если запрос еще не был выполнен.
public function getBody() { if ( !$this->executed ) { return 'Trying to fetch response body for a pending request.'; } return $this->response_body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_response_body()\n\t{\n\t\tif ( !$this->executed ) {\n\t\t\tthrow new \\Exception( _t( 'Unable to fetch response body for a pending request.' ) );\n\t\t}\n\n\t\treturn $this->response_body;\n\t}", "function getBody()\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"getBody()\\n\";\r\n\t\tret...
[ "0.8026754", "0.7355262", "0.731779", "0.7221386", "0.70006406", "0.68709886", "0.6863773", "0.68593746", "0.6851294", "0.6830669", "0.66897756", "0.6659507", "0.65971935", "0.65971935", "0.65971935", "0.65964866", "0.6578347", "0.6567191", "0.65599173", "0.651113", "0.648159...
0.8042646
0
Merge query params from the URL with given params.
Объединить параметры запроса из URL с заданными параметрами.
private function mergeQueryParams( $url, $params ) { $urlparts = parse_url( $url ); if ( ! isset( $urlparts['query'] ) ) { $urlparts['query'] = ''; } if ( ! is_array( $params ) ) { parse_str( $params, $params ); } if ( $urlparts['query'] != '' ) { $parts = array_merge( parse_str( $qparts ) , $p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function merge_query_params( $url, $params )\n\t{\n\t\t$urlparts = InputFilter::parse_url( $url );\n\n\t\tif ( ! isset( $urlparts['query'] ) ) {\n\t\t\t$urlparts['query'] = '';\n\t\t}\n\n\t\tif ( ! is_array( $params ) ) {\n\t\t\tparse_str( $params, $params );\n\t\t}\n\n\t\t$urlparts['query'] = http_build_q...
[ "0.7844842", "0.67367697", "0.6701334", "0.65532637", "0.6409734", "0.6400334", "0.62738305", "0.6230794", "0.6180502", "0.6090327", "0.60874206", "0.6069534", "0.603301", "0.60208654", "0.60070854", "0.6003561", "0.60019267", "0.5996016", "0.59826785", "0.59793067", "0.59689...
0.7434495
1
Loads the forum settings.
Загружает настройки форума.
public function load() { $statement = $this -> db -> query("SELECT * FROM " . FORUM_DB . ".forum_settings"); while($settingData = $statement -> fetch(PDO::FETCH_ASSOC)) { $this -> settings[$settingData['key']] = new ForumSetting($settingData['key'], $settingData['value']); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function load_settings() {\n\t\t\n\t}", "protected function loadSettings() {}", "protected function loadSettings() {}", "protected function loadSettings() {}", "private function load_site_settings() {\n\t\t\n\t\t$this->helper->load_editor_settings();\n\t\t$this->settings = array_merge($this->settin...
[ "0.7123575", "0.70884997", "0.70884997", "0.70869744", "0.694562", "0.68443495", "0.67842174", "0.6721807", "0.6694451", "0.662528", "0.660273", "0.6465523", "0.64469594", "0.6434062", "0.64337057", "0.6419886", "0.63121265", "0.62866616", "0.6134359", "0.6074875", "0.6054755...
0.8110576
0
Loads the sidebar modules.
Загружает модули боковой панели.
public function loadSidebarModules() { $setting = $this -> getSetting("sidebar_modules"); if (!$setting) { echo "No sidebar modules found."; return; } $user = Registry::get("user"); $modules = explode(',', $setting -> getValue()); foreach($modules as $module) { $user -> getModule($module) -> load()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadModules();", "function get_sidebar() {\n require_once(COMP_DIR . 'sidebars.php');\n }", "private function mapSidebars(){\n \n /* register menu package theme*/\n $manager = app()->make(SidebarManager::class);\n $manager->register(CoreSidebar::class);\n ...
[ "0.6854926", "0.6567983", "0.6566914", "0.63984954", "0.63822705", "0.6381198", "0.6372702", "0.631813", "0.62802625", "0.6275981", "0.6257298", "0.6189398", "0.61397094", "0.6131138", "0.6084721", "0.59940994", "0.59857446", "0.59790087", "0.5975131", "0.5969747", "0.594118"...
0.84616816
0
Gets the forum manager instance.
Получает экземпляр менеджера форума.
public function getForumManager() { return $this -> forumManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getForum()\n {\n return $this->hasOne(Forum::class, ['id' => 'fk_forum']);\n }", "public function get_forum() { // Declare \\Markguyver\\LivefyreImporter\\Data\\Livefyre\\Conversation->get_forum() function\n\t\t\treturn $this->forum;\n\t\t}", "protected function getManager()\n {...
[ "0.7137299", "0.70150113", "0.68473834", "0.6838214", "0.6838214", "0.6838214", "0.674113", "0.65930593", "0.6434213", "0.642184", "0.6415215", "0.63737756", "0.62580514", "0.6256893", "0.6238292", "0.6233609", "0.6200585", "0.60999805", "0.6099355", "0.6098383", "0.6036647",...
0.87442255
0
peerURLs is the list of URLs the member exposes to the cluster for communication. Generated from protobuf field repeated string peerURLs = 3;
peerURLs — это список URL-адресов, которые член предоставляет кластеру для коммуникации. Генерируется из поля protobuf repeated string peerURLs = 3;
public function setPeerURLs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->peerURLs = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeerURLs()\n {\n return $this->peerURLs;\n }", "public function getPeerURLs()\n {\n return $this->peerURLs;\n }", "public function getPeerInfo();", "public function getReportPeers()\n {\n return [self::ADMIN];\n }", "public function setRpcsByPeer($v...
[ "0.71117014", "0.71117014", "0.52823734", "0.5227439", "0.52265584", "0.51298815", "0.50742507", "0.50643456", "0.5057388", "0.49560156", "0.4914289", "0.4892287", "0.47719508", "0.47663406", "0.4672185", "0.4657408", "0.4636656", "0.45946988", "0.45934263", "0.4579446", "0.4...
0.74189276
1
clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty. Generated from protobuf field repeated string clientURLs = 4;
clientURLs — это список URL-адресов, которые член предоставляет клиентам для коммуникации. Если член не запущен, clientURLs будет пустым. Сгенерировано из поля protobuf repeated string clientURLs = 4;
public function setClientURLs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->clientURLs = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClientURLs()\n {\n return $this->clientURLs;\n }", "public function setPeerURLs($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->peerURLs = $arr;\n\n return $this;\n }", "public function setP...
[ "0.6257284", "0.55756074", "0.55756074", "0.5374163", "0.5335374", "0.5335374", "0.5020187", "0.4984704", "0.49747455", "0.49726826", "0.49726826", "0.48765936", "0.48242775", "0.4820912", "0.48079878", "0.4807234", "0.47617048", "0.47596228", "0.47440386", "0.47440186", "0.4...
0.754419
0
Test that custom definitions are not passed through to dependencies. Surprising things would happen if this did occur.
Тестирование того, что пользовательские определения не передаются в зависимости. Неожиданные события произошли бы, если бы это произошло.
public function testCustomDefinitionNotPassedThrough() { $injector = new Injector(); $injector->share('Auryn\Test\DependencyWithDefinedParam'); $injector->make('Auryn\Test\RequiresDependencyWithDefinedParam', array(':foo' => 5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddInvalid()\n {\n $this->todo('stub');\n }", "public function testRuleAppliesTwiceToClassWithNotImportedDependencies()\n {\n $rule = $this->getRule();\n $rule->setReport($this->getReportMock(2));\n $rule->apply($this->getMethod());\n }", "public func...
[ "0.6088606", "0.6087949", "0.6076389", "0.58834934", "0.58617955", "0.5830857", "0.58256596", "0.5783857", "0.57835245", "0.57812285", "0.57788897", "0.5745005", "0.5738211", "0.57338595", "0.5703734", "0.5700072", "0.569276", "0.56750834", "0.56738603", "0.5614036", "0.55545...
0.7236046
0
Test coverage for delegate closures that are defined outside of a class.ph
Тестовое покрытие для делегатов, определенных вне класса.
public function testDelegateClosure() { $delegateClosure = \Auryn\Test\getDelegateClosureInGlobalScope(); $injector = new Injector(); $injector->delegate('Auryn\Test\DelegateClosureInGlobalScope', $delegateClosure); $injector->make('Auryn\Test\DelegateClosureInGlobalScope'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClosure()\n {\n }", "public function getDelegate();", "public function testWithClosure()\n\t{\n\t\t$container = new Container();\n\t\t$container['service'] = function ()\n\t\t{\n\t\t\treturn new Service();\n\t\t};\n\n\t\t$this->assertInstanceOf(Service::class, $container['service']);\n...
[ "0.61740226", "0.61498696", "0.5824732", "0.5815946", "0.5633426", "0.55182683", "0.5500732", "0.54276323", "0.54195625", "0.5344668", "0.5340726", "0.5317321", "0.5262389", "0.5251866", "0.52285445", "0.52080905", "0.5182088", "0.5180927", "0.5173353", "0.5171993", "0.509854...
0.76464486
0
/ / Add Custom Apple Touch Icon /
// Добавить пользовательский иконку Apple Touch /
function wap8_touch_icon() { $touch_icon = of_get_option( 'sans_apple_icon' ); if ( !empty( $touch_icon ) ) { echo '<link rel="apple-touch-icon" href="' . esc_url( $touch_icon ) . '"/>' . "\n"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function anva_apple_touch_icon() {\n\t$image_path = get_template_directory_uri() . '/assets/images';\n\t?>\n\t<!-- ICONS (start) -->\n\t<link rel=\"shortcut icon\" href=\"<?php echo $image_path . '/favicon.png'; ?>\" />\n\t<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"<?php echo $image_path . '/apple-touch...
[ "0.72151935", "0.6754782", "0.65640014", "0.6481932", "0.64289725", "0.6346609", "0.63426703", "0.6300716", "0.6300716", "0.6300716", "0.6285573", "0.6285573", "0.6285573", "0.6220128", "0.619563", "0.6050486", "0.60321933", "0.60308677", "0.60025436", "0.59957725", "0.598764...
0.7411081
0
Retrieves one lob_repo_entry object via the foreign key lob_repo_entry_id.
Получает один объект lob_repo_entry через идентификатор внешнего ключа lob_repo_entry_id.
function getLobRepoEntryByLobRepoEntryId($dsn='default') { if ( $this->lobRepoEntryId == '' ) { trigger_error('Peer doSelect with empty key'); return false; } $array = LobRepoEntryPeer::doSelect('lob_repo_entry_id = \''.$this->lobRepoEntryId.'\'',$dsn); if ( count($array) > 1 ) { trigger_error('multiple objects o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntry($id) {\n\t\t$this->_initDbConnection();\n\t\t\n\t\t$stm = $this->_prepareStatement('entry', 'getByAtomId');\t\t\n\t\t$stm->execute(array(\n\t\t\t':id' => $id\n\t\t));\n\t\t\n\t\tif ($this->_checkPdoError($stm)) {\n\t\t\treturn NULL;\n\t\t}\n\n\t\tif ($entry = $stm->fetchObject()) {\n\t\t\t...
[ "0.60026747", "0.59394115", "0.58072275", "0.5761696", "0.57089466", "0.5557064", "0.54359233", "0.5417182", "0.5396182", "0.53627706", "0.53291416", "0.5315984", "0.5303665", "0.5233274", "0.5147509", "0.5144037", "0.5129586", "0.512721", "0.51170224", "0.5103033", "0.508864...
0.7666886
0
The index function lists all of the teams, along with its home field name.
Функция index перечисляет все команды, включая название их дома.
function index() { $teams = $this->teams->retrieve_with_field(); $data = array( 'title' => 'Teams', 'teams' => $teams, 'js' => array(''), 'css' => array('/styles/admin.css'), 'sidenav' => self::$user_links ); $this->load->view('admin/show_all_teams.php', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index($season)\n {\n return Team::all('id', 'name', 'location', 'stadium', 'season');\n }", "public function index()\n {\n //\n\n return view('admin.team.index')->withEntries(Team::orderByDesc('id')->get());\n }", "public function index()\n {\n $team = T...
[ "0.6993864", "0.6960239", "0.69140905", "0.69030076", "0.6826036", "0.67876905", "0.6787053", "0.6772154", "0.6759351", "0.67578924", "0.6754756", "0.6694994", "0.66769433", "0.6652781", "0.66515136", "0.6623055", "0.66101116", "0.66058445", "0.6598834", "0.65920824", "0.6581...
0.70675546
0
Function to show the roster.
Функция для отображения списка участников.
function show_roster() { // Retrieve all the players, teams, or seasons. $teams = $this->teams->retrieve_roster(); $seasons = $this->seasons->retrieve_roster(); // If there are no players, teams, or seasons... if (!$teams || !$seasons) { show_error('At least one team, one player, and one season must be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function action_show_roster()\n\t{\n\t\t// Loading form validation helper.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('tid', 'Team ID', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('sid', 'Season ID', 'trim|required|xss_clean');\n\n\t\t$tid = $this-...
[ "0.65671235", "0.6464007", "0.6398984", "0.6296228", "0.6222879", "0.6131415", "0.6127024", "0.60896206", "0.60896206", "0.60896206", "0.60511744", "0.60122025", "0.5989021", "0.5976034", "0.5964917", "0.5960634", "0.5957453", "0.590321", "0.589855", "0.5879422", "0.5866", ...
0.7986567
0
Action function to completely show a roster. If no roster exists for a team for that season, a friendly error is shown.
Функция действия для полного отображения списка игроков. Если для команды в тот сезон не существует списка игроков, отображается дружелюбная ошибка.
function action_show_roster() { // Loading form validation helper. $this->load->library('form_validation'); $this->form_validation->set_rules('tid', 'Team ID', 'trim|required|xss_clean'); $this->form_validation->set_rules('sid', 'Season ID', 'trim|required|xss_clean'); $tid = $this->input->post('tid'); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_roster()\n\t{\n\t\t// Retrieve all the players, teams, or seasons.\n\t\t$teams = $this->teams->retrieve_roster();\n\t\t$seasons = $this->seasons->retrieve_roster();\n\n\t\t// If there are no players, teams, or seasons...\n\t\tif (!$teams || !$seasons)\n\t\t{\n\t\t\tshow_error('At least one team, one ...
[ "0.73752326", "0.6504252", "0.6302066", "0.6302066", "0.62489116", "0.5633495", "0.5620838", "0.5595325", "0.54984736", "0.540403", "0.53705233", "0.5352601", "0.53130436", "0.5280591", "0.5267167", "0.524794", "0.52144045", "0.52117443", "0.51892495", "0.51892495", "0.518924...
0.771471
0
////////////////////////////////////////////////////// //////// SET/GET FUNCTIONS ///////// ////////////////////////////////////////////////////// Check and set idApp
////////////////////////////////////////////////////// //////// ФУНКЦИИ СЕТ/ГЕТ ///////// ////////////////////////////////////////////////////// Проверка и установка idApp
private function set_idapp($idapp = '') { if (empty($idapp)) { $this->add_log('set_idapp: IdApp KO, parameter is empty', 'ERROR'); return false; } $this->add_log('set_idapp: IdApp OK, setted to "'.$idapp.'"'); $this->idApp = $idapp; return true;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAppId($value)\n {\n $this->_props['AppId'] = $value;\n }", "public function setAppID($id)\n {\n $this->parameters['appid'] = $id;\n }", "public function setApplicationID($app_id) \n\t{\n\t\t$this->application_id = $app_id;\n\t}", "public function setUseAppID($use_appid) \n \t{\n...
[ "0.72380155", "0.70585686", "0.704561", "0.70331615", "0.69627553", "0.67790014", "0.6620967", "0.6578225", "0.6420999", "0.6363238", "0.6343049", "0.6264861", "0.62423706", "0.6224836", "0.6211544", "0.6191849", "0.6191849", "0.6191849", "0.6191849", "0.6191849", "0.6191849"...
0.8089351
0
Check and set replyAddress
Проверить и установить replyAddress
function set_replyAddress($replyAddress = '') { $replyAddress = trim($replyAddress); $replyAddress = strtolower($replyAddress); $replyAddress = addslashes($replyAddress); if (!preg_match("/^[a-zA-Z0-9]+[a-zA-Z0-9_.-]+[a-zA-Z0-9]+@[a-zA-Z0-9]+[a-zA-Z0-9-]+[a-zA-Z0-9.-]+[a-zA-Z0-9]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_reply($reply)\n\t{\n\t\t$this->reply_to = $reply;\n\t}", "public function set_reply_to(EmailAddress $address) {\n $this->reply_to = $address->as_string();\n return TRUE;\n\t}", "public function set_reply_to(EmailAddress $address);", "protected function setReplyTo() {}", "public f...
[ "0.6910569", "0.6768336", "0.66688424", "0.66045934", "0.64851975", "0.647443", "0.60504997", "0.6046929", "0.59513015", "0.5945489", "0.5781774", "0.5757276", "0.57436824", "0.5712577", "0.56954587", "0.56323856", "0.56307566", "0.5626689", "0.5618188", "0.5530642", "0.55306...
0.7840499
0
Print de log generated by the class
Логи, генерируемые классом
public function print_log() { if ($this->logger) { $this->logger->print_log(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function printLogMgm() {}", "protected function log() {\n }", "public static function logging()\n {\n }", "public function log()\n {\n $this->fetchFields();\n Log::console($this);\n }", "public function getLog();", "public function log()\r\n {\r\n ...
[ "0.7271405", "0.72196174", "0.7187643", "0.7183202", "0.7147934", "0.71100724", "0.7020852", "0.6983955", "0.6983955", "0.68706495", "0.681529", "0.6752521", "0.6742889", "0.66945916", "0.65374804", "0.652746", "0.65054417", "0.6493807", "0.6459312", "0.644791", "0.6430648", ...
0.7347737
0
OneToMany (owning side) Get fkLicitacaoLicitacoes
OneToMany (сторона, владеющая связью) Получить fkLicitacaoLicitacoes
public function getFkLicitacaoLicitacoes() { return $this->fkLicitacaoLicitacoes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function licencias()\n \t\t{\n \t\t\treturn $this->hasMany(Licencia::class);\n \t\t}", "function licencias()\n\t{\n\t\treturn $this->hasMany(\n\t\t\tLicencia::class,\n\t\t\t'Licencia_id',\n\t\t\t'id'\n\t\t);\n\t}", "public function getFkLicitacaoLicitacao()\n {\n return $this->fkLicit...
[ "0.7806485", "0.7769196", "0.7687912", "0.725875", "0.72260725", "0.7027727", "0.7027727", "0.6792753", "0.67544675", "0.6741008", "0.6731578", "0.6580049", "0.6521308", "0.64379", "0.6420448", "0.6383024", "0.63504493", "0.6295227", "0.62679446", "0.62295556", "0.61642784", ...
0.78587395
0
Get Address type Type of the address. This is a code. You can find the possible values at Guidelines
Получить тип адреса Тип адреса. Это код. Возможные значения можно найти в Руководстве
public function getAddressType(): ?string { return $this->AddressType ?? null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntityTypeCode()\n {\n return 'customer_address';\n }", "function &addressType()\n {\n $addressType = new eZAddressType( $this->AddressTypeID );\n return $addressType;\n }", "function wcs_get_address_type_to_display( $address_type ) {\n\tif ( ! is_string( $ad...
[ "0.6543431", "0.6517596", "0.642937", "0.63354874", "0.6272734", "0.6077691", "0.60380185", "0.59818393", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0.59714293", "0...
0.72235703
0
Get House Nr Ext House number extension
Номер дома Номер дома, расширение
public function getHouseNrExt(): ?string { return $this->HouseNrExt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNUMERO_EXT()\r\n {\r\n return $this->NUMERO_EXT;\r\n }", "public function getNUMEROEXT()\r\n {\r\n return $this->NUMERO_EXT;\r\n }", "public function getStreetHouseNrExt(): ?string\n {\n return $this->StreetHouseNrExt ?? null;\n }", "public function s...
[ "0.702107", "0.6901878", "0.6805921", "0.65295374", "0.64102876", "0.6309599", "0.6274928", "0.6239638", "0.6234429", "0.6223021", "0.61749154", "0.61749154", "0.61749154", "0.6156332", "0.6145746", "0.613606", "0.6122616", "0.61093265", "0.6107866", "0.6071061", "0.6057824",...
0.73245966
0
Set House Nr Ext House number extension
Номер дома Номер дома, расширение
public function setHouseNrExt(string $houseNrext) { $this->HouseNrExt = $houseNrext; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStreetHouseNrExt(string $streetHouseNrExt)\n {\n $this->StreetHouseNrExt = $streetHouseNrExt;\n return $this;\n }", "public function setNUMERO_EXT($NUMERO_EXT)\r\n {\r\n $this->NUMERO_EXT = $NUMERO_EXT;\r\n\r\n return $this;\r\n }", "public function se...
[ "0.67135334", "0.6133606", "0.6124855", "0.5796428", "0.5768478", "0.57374156", "0.5489238", "0.54830986", "0.54139805", "0.53745824", "0.5368581", "0.5298979", "0.5298979", "0.52520704", "0.52103114", "0.5191169", "0.5180162", "0.51444656", "0.5115058", "0.50961673", "0.5082...
0.72882456
0
Set Street + House number + Ext Combination of Street, HouseNr and HouseNrExt. The field StreetHouseNrExt is only usable for locations in NL, BE and DE. Please see Guidelines for the explanation.
Улица + Номер дома + Дополнительный номер дома. Комбинация улицы, номера дома и дополнительного номера дома. Поле StreetHouseNrExt используется только для местоположений в Нидерландах, Бельгии и Германии. См. Руководство для пояснения.
public function setStreetHouseNrExt(string $streetHouseNrExt) { $this->StreetHouseNrExt = $streetHouseNrExt; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_street_address($name='*', $suffix='*', $street_num='*', $apt_num='*')\r\n{\r\n\tif ( $this->debug ) $this->print_d(__FUNCTION__ . ' : set street address');\r\n\t\r\n\t// random apartment num\r\n\tif ( $apt_num == '*' ) $apt_num = $this->_get_random_apt_num();\r\n\t\r\n\t// random suffix (St, Ave, Blvd...
[ "0.653905", "0.6217615", "0.59952104", "0.5681976", "0.5654412", "0.55757797", "0.55592585", "0.5501735", "0.5403478", "0.5307102", "0.52656025", "0.525156", "0.5187446", "0.51689655", "0.51421046", "0.5124851", "0.5079204", "0.50033283", "0.49663797", "0.49525276", "0.495252...
0.7140926
0
Reads header lines up to an empty line, adding them to the passed $partBuilder.
Читает заголовочные строки до пустой строки, добавляя их в переданный $partBuilder.
protected function readHeaders($handle, PartBuilder $partBuilder) { $header = ''; do { $line = $this->readLine($handle); if (empty($line) || $line[0] !== "\t" && $line[0] !== ' ') { $this->addRawHeaderToPart($header, $partBuilder); $header = ''...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function headerRead(): void\n {\n if (false === $this->getStrategy()->hasHeader() || true === $this->headerRead) {\n return;\n }\n\n $this->rewind();\n $this->skipLeadingLines();\n $this->header = $this->normalizeHeader($this->convertRowToUtf8($this->current...
[ "0.66068035", "0.62099993", "0.60436", "0.6035181", "0.59966063", "0.58843535", "0.5817404", "0.5749378", "0.5554507", "0.54822177", "0.5398212", "0.5283301", "0.5273563", "0.52558815", "0.52252173", "0.5161422", "0.51337963", "0.5099408", "0.50793153", "0.5044355", "0.504157...
0.7107404
0
Reads lines from the passed $handle, calling $partBuilder>setEndBoundaryFound with the passed line until it returns true or the stream is at EOF. setEndBoundaryFound returns true if the passed line matches a boundary for the $partBuilder itself or any of its parents. Once a boundary is found, setStreamPartAndContentEnd...
Читает строки из переданного $handle, вызывая $partBuilder>setEndBoundaryFound с переданной строкой до тех пор, пока она не вернет true или поток не достигнет конца файла. setEndBoundaryFound возвращает true, если переданная строка соответствует границе для $partBuilder самого себя или любого из его родителей. После об...
private function findContentBoundary($handle, PartBuilder $partBuilder) { // last separator before a boundary belongs to the boundary, and is not // part of the current part while (!feof($handle)) { $endPos = ftell($handle) - $this->lastLineSeparatorLength; $line = $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readPartContent($handle, PartBuilder $partBuilder)\n {\n $partBuilder->setStreamContentStartPos(ftell($handle));\n $this->findContentBoundary($handle, $partBuilder);\n if ($partBuilder->isMultiPart()) {\n while (!$partBuilder->isParentBoundaryFound()) {\n ...
[ "0.673486", "0.6716486", "0.5889159", "0.5280628", "0.52759343", "0.50062305", "0.49922523", "0.46349126", "0.44557786", "0.44060352", "0.43990666", "0.43384293", "0.4314821", "0.42370558", "0.42342946", "0.42102474", "0.4207876", "0.41585806", "0.4150167", "0.40995175", "0.4...
0.7598995
0
Reads a part and any of its children, into the passed $partBuilder, either by calling readUUEncodedOrPlainTextMessage or readPartContent after reading headers.
Читает часть и любые из её дочерних элементов в переданный $partBuilder, либо вызывая readUUEncodedOrPlainTextMessage, либо readPartContent после чтения заголовков.
protected function readPart($handle, PartBuilder $partBuilder) { $partBuilder->setStreamPartStartPos(ftell($handle)); if ($partBuilder->canHaveHeaders()) { $this->readHeaders($handle, $partBuilder); $this->lastLineSeparatorLength = 0; } if ($partBuild...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readPartContent($handle, PartBuilder $partBuilder)\n {\n $partBuilder->setStreamContentStartPos(ftell($handle));\n $this->findContentBoundary($handle, $partBuilder);\n if ($partBuilder->isMultiPart()) {\n while (!$partBuilder->isParentBoundaryFound()) {\n ...
[ "0.6854424", "0.6652539", "0.6095895", "0.6033665", "0.59807307", "0.59359163", "0.57688373", "0.57632256", "0.5592209", "0.55527276", "0.55414104", "0.5446301", "0.54287213", "0.53455627", "0.53203166", "0.5269418", "0.5214278", "0.5210474", "0.5188151", "0.51605445", "0.515...
0.7132575
0
Clean file name, to remaining movie file
Чистое имя файла, оставляющее файл фильма
private function _set_movie_name($file_name){ $this->movie_name = preg_replace('/(\_|\.|\-|\[|\]|\(|\)|\{|\})/', ' ', $file_name); foreach($this->remove_from_title as $key => $patern){ $this->remove_from_title[$key] = '/(\s'.$patern.'\s)/i'; } $this->movie_name = preg_replace($this->remove_from_title,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cleanFileName($fileName)\n {\n // remove all special chars and keep only alphanumeric chars\n $fileName = preg_replace(\"/[^a-zA-Z0-9- .]/\", \"\", trim($fileName));\n // replace multiple white spaces with single white space\n $fileName = preg_replace(\"/\\s+/\", \" \", $fil...
[ "0.7119275", "0.702885", "0.6985996", "0.6956013", "0.69269127", "0.688942", "0.6875369", "0.67967", "0.6676304", "0.65985394", "0.65923345", "0.6554721", "0.65469795", "0.651788", "0.6517688", "0.65006334", "0.6454145", "0.64529085", "0.64317894", "0.6407714", "0.63831097", ...
0.75893
0
Checks whether receipt should be sent for Yandex.Checkpoint.
Проверяет, должен ли быть отправлен чек для Yandex.Checkpoint.
function fn_is_yandex_checkpoint_receipt_required($processor_data) { return !empty($processor_data['processor_params']['send_receipt']) && $processor_data['processor_params']['send_receipt'] == 'Y'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBackReceiptRequest() {\n return $this->_backReceiptRequest;\n }", "public function hasVerification()\r\n {\r\n // No need for CVN in creating/updating token\r\n return Mage::getModel('ewayrapid/method_notsaved')->hasVerification();\r\n }", "function backorders_re...
[ "0.60225683", "0.59885013", "0.5933373", "0.5830958", "0.5784357", "0.5744014", "0.5742959", "0.5708734", "0.5655175", "0.5641523", "0.5631752", "0.5631423", "0.5584363", "0.5570641", "0.55419666", "0.5447696", "0.5444135", "0.5430598", "0.5415492", "0.5412099", "0.54048926",...
0.7424377
0
Determines whether a Yandex.Checkpoint refund is partial.
Определяет, является ли возврат Yandex.Checkpoint частичным.
function fn_yandex_checkpoint_is_partial_refund($refund_data, $order_info) { $is_partial_refund = isset($refund_data['refund_shipping']) && $refund_data['refund_shipping'] == 'N' || isset($refund_data['refund_surcharge']) && $refund_data['refund_surcharge'] == 'N'; if (!$is_partial_refund) { fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canRefundPartialPerInvoice()\n {\n /** @var Mage_Sales_Model_Order $order */\n $order = $this->getInfoInstance()->getOrder();\n\n if ($order && $order->getId()) {\n $canInvoicePartialObject = new Varien_Object(\n array(\n 'can_partial...
[ "0.6884796", "0.6707256", "0.6615375", "0.63281107", "0.6317549", "0.6009568", "0.59429216", "0.5911595", "0.58684623", "0.5867166", "0.58670056", "0.5789645", "0.5694872", "0.5666817", "0.5653312", "0.55579823", "0.5557851", "0.5530326", "0.5510934", "0.5503578", "0.5428266"...
0.79273593
0
Returns the payment URL specified in the payment method settings for the current mode (test/live). If the payment URL for the current mode is not specified or it is incorrect, returns URL for the test work with the ASSIST system
Возвращает URL платежа, указанный в настройках метода платежа для текущего режима (тест/реальный). Если URL платежа для текущего режима не указан или неверен, возвращает URL для тестирования с системой ASSIST
function fn_assist_get_payment_url($processor_data) { return filter_var( trim( $processor_data['processor_params']['mode'] === 'L' ? $processor_data['processor_params']['payment_url_live'] : $processor_data['processor_params']['payment_url_test'], " \t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPayuCheckoutSharedUrl() {\r\r\n $mode = Mage::getStoreConfig('payment/payucheckout_shared/demo_mode');\r\r\n\r\r\n $url = 'https://test.payu.in/_payment.php';\r\r\n\r\r\n if ($mode == '') {\r\r\n $url = 'https://secure.payu.in/_payment.php';\r\r\n }\r\r\n\r...
[ "0.70994157", "0.6913184", "0.6889448", "0.68834037", "0.672753", "0.6646833", "0.65409946", "0.6513263", "0.64664674", "0.64523566", "0.64340544", "0.6392202", "0.63919157", "0.6391573", "0.63543457", "0.6300787", "0.6198549", "0.6156943", "0.60907423", "0.60652167", "0.6060...
0.7155246
0
Tests to see if the test type mapping exists when calling $index>getMapping().
Тесты, чтобы убедиться, что отображение типа теста существует при вызове $index>getMapping().
public function testIndexGetMapping(): void { $index = $this->_createIndex(); $mappings = new Mapping([ 'id' => ['type' => 'integer', 'store' => true], 'email' => ['type' => 'text'], 'username' => ['type' => 'text'], 'test' => ['type' => 'integer'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasMapping();", "public function isMappingSetUp()\r\n\t{\t\r\n\t\t// Return boolean\r\n\t\treturn ($this->getMappedIdFieldExternal() !== false);\r\n\t}", "protected function hasMappingErrorOccurred() {}", "public function test_add_and_get_mapping_work_as_expected()\n {\n $expected =...
[ "0.70059276", "0.63732606", "0.6348095", "0.6195489", "0.5756654", "0.57247555", "0.5679112", "0.5643431", "0.5634962", "0.5606758", "0.5530658", "0.5516111", "0.5510009", "0.5508741", "0.54928875", "0.54917866", "0.54801506", "0.5459627", "0.545908", "0.5456691", "0.5447218"...
0.7102806
0