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
Gets the private 'locale_listener' shared service.
Получает приватный общий сервис 'locale_listener'.
protected function getLocaleListenerService() { return $this->services['locale_listener'] = new \Symfony\Component\HttpKernel\EventListener\LocaleListener(${($_ = isset($this->services['request_stack']) ? $this->services['request_stack'] : $this->services['request_stack'] = new \Symfony\Component\HttpFounda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLocaleListenerService()\n {\n return $this->services['locale_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener($this->get('request_stack'), 'en', $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE));\n }", "protected function getLa...
[ "0.82841414", "0.72171485", "0.72171485", "0.72171485", "0.716531", "0.7074446", "0.7026078", "0.69089997", "0.6866057", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6721692", "0.6720305", "0.6720305", "0.67196417", "0.67196417", "0.6719641...
0.8450227
0
Gets the private 'logger' shared service.
Получает приватный «logger» общедоступный сервис.
protected function getLoggerService() { return $this->services['logger'] = new \Symfony\Component\HttpKernel\Log\Logger(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogger()\n {\n if (!$this->logger)\n {\n $this->logger = $this->getDi()->getShared('logger');\n }\n return $this->logger;\n }", "public function getLogger()\n {\n return $this->getService('logger');\n }", "private function getLogger()...
[ "0.78902847", "0.77114844", "0.7637587", "0.7612341", "0.7612341", "0.7612341", "0.7590496", "0.7582935", "0.7576", "0.75731695", "0.7532807", "0.7498358", "0.748957", "0.748957", "0.748957", "0.7403776", "0.73789334", "0.73789334", "0.7314383", "0.73050183", "0.72859967", ...
0.77782667
1
Gets the private 'resolve_controller_name_subscriber' shared service.
Получает приватный общедоступный сервис 'resolve_controller_name_subscriber'.
protected function getResolveControllerNameSubscriberService() { return $this->services['resolve_controller_name_subscriber'] = new \Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber(${($_ = isset($this->services['controller_name_converter']) ? $this->services['controller_name_con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getControllerNameConverterService()\n {\n return $this->services['controller_name_converter'] = new \\Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNameParser(${($_ = isset($this->services['kernel']) ? $this->services['kernel'] : $this->get('kernel', 1)) && false ?: '_'});\n ...
[ "0.73876977", "0.7332215", "0.68224996", "0.66770595", "0.6594536", "0.6594536", "0.64360017", "0.63503516", "0.62597805", "0.61912596", "0.61863446", "0.6181331", "0.61558515", "0.61314017", "0.6104685", "0.61045015", "0.61045015", "0.6005062", "0.597336", "0.5938183", "0.59...
0.8670332
0
Gets the private 'response_listener' shared service.
Получает приватный общий сервис 'response_listener'.
protected function getResponseListenerService() { return $this->services['response_listener'] = new \Symfony\Component\HttpKernel\EventListener\ResponseListener('UTF-8'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSecurity_Rememberme_ResponseListenerService()\n {\n return $this->services['security.rememberme.response_listener'] = new \\Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener();\n }", "protected function getSecurity_Rememberme_ResponseListenerService()\n {\n ...
[ "0.6912883", "0.6912883", "0.67666113", "0.65895987", "0.65895987", "0.6515243", "0.6493368", "0.64684206", "0.63182724", "0.614903", "0.6133055", "0.6073726", "0.6070657", "0.6015426", "0.5980343", "0.5924861", "0.5920159", "0.5861435", "0.5733203", "0.57256013", "0.57254016...
0.72640127
1
Gets the private 'router.request_context' shared service.
Получает приватный 'router.request_context' общедоступный сервис.
protected function getRouter_RequestContextService() { return $this->services['router.request_context'] = new \Symfony\Component\Routing\RequestContext('', 'GET', 'localhost', 'http', 80, 443); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getContext()\n {\n if ($this->context === null) {\n $this->context = $this->container->get('security.context');\n }\n return $this->context;\n }", "private function getContext()\n {\n $context = $this->request->getData('context');\n\n return...
[ "0.69826", "0.6805456", "0.66820264", "0.6676382", "0.66699517", "0.66699517", "0.6661133", "0.6650406", "0.6615614", "0.6587547", "0.65424395", "0.6526213", "0.6516481", "0.6516481", "0.6516481", "0.64759976", "0.6470407", "0.6438179", "0.6438179", "0.6438179", "0.6438179", ...
0.7954178
1
Gets the private 'security.firewall' shared service.
Получает приватный общий сервис 'security.firewall'.
protected function getSecurity_FirewallService() { return $this->services['security.firewall'] = new \Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener(new \Symfony\Bundle\SecurityBundle\Security\FirewallMap(new \Symfony\Component\DependencyInjection\ServiceLocator(array('security.firewall.map.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSecurity_FirewallService()\n {\n return $this->services['security.firewall'] = new \\Symfony\\Component\\Security\\Http\\Firewall(new \\Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap($this, array('security.firewall.map.context.dev' => new \\Symfony\\Component\\HttpFoundation...
[ "0.7632931", "0.6013259", "0.57017845", "0.57015216", "0.56986797", "0.56626725", "0.5647969", "0.55708706", "0.54786897", "0.5465613", "0.53859884", "0.5366292", "0.53347784", "0.5327251", "0.5272802", "0.51747155", "0.51740646", "0.5158551", "0.5153504", "0.51518106", "0.51...
0.7082073
1
Gets the private 'security.logout_url_generator' shared service.
Получает приватный общий сервис 'security.logout_url_generator'.
protected function getSecurity_LogoutUrlGeneratorService() { return $this->services['security.logout_url_generator'] = new \Symfony\Component\Security\Http\Logout\LogoutUrlGenerator(${($_ = isset($this->services['request_stack']) ? $this->services['request_stack'] : $this->services['request_stack'] = new \S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSecurity_LogoutUrlGeneratorService()\n {\n $this->services['security.logout_url_generator'] = $instance = new \\Symfony\\Component\\Security\\Http\\Logout\\LogoutUrlGenerator($this->get('request_stack', ContainerInterface::NULL_ON_INVALID_REFERENCE), $this->get('router', ContainerIn...
[ "0.85819894", "0.80964446", "0.6951211", "0.6837144", "0.6588155", "0.65787697", "0.65088797", "0.64163136", "0.63358444", "0.62621814", "0.62448835", "0.6154229", "0.60733163", "0.60431445", "0.6020845", "0.59701246", "0.5965806", "0.59387827", "0.59384555", "0.59226066", "0...
0.87888914
0
Gets the private 'security.rememberme.response_listener' shared service.
Получает приватный общий сервис 'security.rememberme.response_listener'.
protected function getSecurity_Rememberme_ResponseListenerService() { return $this->services['security.rememberme.response_listener'] = new \Symfony\Component\Security\Http\RememberMe\ResponseListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getResponseListenerService()\n {\n return $this->services['response_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener('UTF-8');\n }", "protected function getResponseListenerService()\n {\n return $this->services['response_listener'] = new...
[ "0.6281826", "0.6281826", "0.5595383", "0.55235827", "0.54999614", "0.5439218", "0.535383", "0.53421855", "0.53421855", "0.53097177", "0.5270848", "0.52513707", "0.521899", "0.51879483", "0.51879483", "0.5129571", "0.5090823", "0.50110465", "0.4958566", "0.4956837", "0.492391...
0.8791988
1
Gets the private 'session.save_listener' shared service.
Получает приватный общий сервис 'session.save_listener'.
protected function getSession_SaveListenerService() { return $this->services['session.save_listener'] = new \Symfony\Component\HttpKernel\EventListener\SaveSessionListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSessionListenerService()\n {\n return $this->services['session_listener'] = new \\Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener($this);\n }", "protected function getSessionListenerService()\n {\n return $this->services['session_listener'] = new \\Sy...
[ "0.71934307", "0.70844615", "0.63576585", "0.617447", "0.6145519", "0.59975874", "0.597419", "0.5769014", "0.5704673", "0.5678744", "0.56208915", "0.56163603", "0.55713034", "0.55548275", "0.5543441", "0.5534325", "0.55169547", "0.5489803", "0.5390698", "0.5373917", "0.53106"...
0.8417319
1
Gets the private 'session_listener' shared service.
Получает приватный общий сервис 'session_listener'.
protected function getSessionListenerService() { return $this->services['session_listener'] = new \Symfony\Component\HttpKernel\EventListener\SessionListener(new \Symfony\Component\DependencyInjection\ServiceLocator(array('session' => function () { return ${($_ = isset($this->services['session']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSessionListenerService()\n {\n return $this->services['session_listener'] = new \\Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener($this);\n }", "protected function getSession_SaveListenerService()\n {\n return $this->services['session.save_listener'] ...
[ "0.7906166", "0.6913504", "0.6913504", "0.6668468", "0.6476957", "0.63308644", "0.61534315", "0.6152553", "0.6119494", "0.6093838", "0.6055146", "0.5999446", "0.5961343", "0.5928969", "0.5917099", "0.5865591", "0.5863194", "0.58018684", "0.58018684", "0.5799536", "0.57886904"...
0.7960047
0
Gets the private 'streamed_response_listener' shared service.
Получает приватный общедоступный сервис 'streamed_response_listener'.
protected function getStreamedResponseListenerService() { return $this->services['streamed_response_listener'] = new \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getResponseListenerService()\n {\n return $this->services['response_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener('UTF-8');\n }", "protected function getResponseListenerService()\n {\n return $this->services['response_listener'] = new...
[ "0.6964602", "0.6964602", "0.6646084", "0.6445306", "0.6445306", "0.6370569", "0.6245782", "0.6130004", "0.60417694", "0.59607446", "0.59505457", "0.5903538", "0.5880026", "0.58570784", "0.58344215", "0.57355744", "0.5716154", "0.5657327", "0.5654008", "0.55570143", "0.551069...
0.7617495
1
Gets the private 'translator.default' shared service.
Получает приватный 'translator.default' общедоступный сервис.
protected function getTranslator_DefaultService() { $this->services['translator.default'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\Translator(new \Symfony\Component\DependencyInjection\ServiceLocator(array('translation.loader.csv' => function () { return ${($_ = isset($this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTranslator_DefaultService()\n {\n $this->services['translator.default'] = $instance = new \\Victoire\\Bundle\\I18nBundle\\Translation\\Translator($this, ${($_ = isset($this->services['translator.selector']) ? $this->services['translator.selector'] : $this->getTranslator_SelectorServ...
[ "0.7794712", "0.71553725", "0.70864004", "0.70750856", "0.7064083", "0.7053452", "0.7004476", "0.69586575", "0.6952777", "0.6881039", "0.6728637", "0.6568065", "0.65642715", "0.65399647", "0.6455868", "0.6447735", "0.64358634", "0.64052016", "0.6398615", "0.6304873", "0.62376...
0.7827094
0
Gets the private 'translator_listener' shared service.
Получает приватный общий сервис 'translator_listener'.
protected function getTranslatorListenerService() { return $this->services['translator_listener'] = new \Symfony\Component\HttpKernel\EventListener\TranslatorListener(${($_ = isset($this->services['translator.default']) ? $this->services['translator.default'] : $this->getTranslator_DefaultService()) && fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTranslatorListenerService()\n {\n return $this->services['translator_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\TranslatorListener($this->get('translator.default'), $this->get('request_stack'));\n }", "public function _getServTranslator() {\n if (!...
[ "0.83105755", "0.7376979", "0.7368228", "0.7240916", "0.7240371", "0.72346175", "0.69821835", "0.6775994", "0.6753803", "0.669038", "0.66442525", "0.6635897", "0.6575431", "0.65557075", "0.6499195", "0.6497636", "0.64452547", "0.63993", "0.63869196", "0.6373831", "0.6367928",...
0.8392903
0
Gets the private 'validate_request_listener' shared service.
Получает приватный общий сервис 'validate_request_listener'.
protected function getValidateRequestListenerService() { return $this->services['validate_request_listener'] = new \Symfony\Component\HttpKernel\EventListener\ValidateRequestListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getListener(/* ... */)\n {\n return $this->_listener;\n }", "public function getValidatorService()\n {\n return $this->validatorService;\n }", "protected function getVictoireI18n_Kernelrequest_ListenerService()\n {\n return $this->services['victoire_i18n.kern...
[ "0.66137916", "0.6396105", "0.6364457", "0.61866176", "0.61820257", "0.6032988", "0.60188395", "0.5995926", "0.5994554", "0.59464383", "0.5937568", "0.590241", "0.58865523", "0.58669937", "0.58431375", "0.58279085", "0.57887363", "0.5788313", "0.567367", "0.5650776", "0.56303...
0.8275839
1
Get the retention period of the queue.
Получить период хранения очереди.
public function getRetentionPeriod(): int { return $this->retention; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRetentionPolicy()\n {\n return $this->retention_policy;\n }", "public function getRetentionPolicy()\n {\n return isset($this->retention_policy) ? $this->retention_policy : null;\n }", "public function getNotificationPeriod() {\n\t\treturn $this->notificationPeriod;\...
[ "0.6595944", "0.64349014", "0.6189129", "0.56548446", "0.5642858", "0.5437651", "0.53894114", "0.5388871", "0.536849", "0.5351594", "0.5335235", "0.52806747", "0.52806747", "0.52806747", "0.52806747", "0.5256423", "0.5256263", "0.5248035", "0.52397484", "0.5229205", "0.518396...
0.7492495
0
Check whether the job has a cron expression.
Проверьте, имеет ли задача выражение cron.
public function hasCronExpression(): bool { return $this->cron_expression !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function custom_rules_is_cron_running(){\n\t$cron_expires = db_query(\"SELECT `expire` FROM {semaphore} WHERE `name` = 'cron' LIMIT 1\")->fetchField();\n\n\tif ( $cron_expires && $cron_expires > microtime(TRUE) ) {\n\t\treturn TRUE;\n\t}\n\n\treturn FALSE;\n}", "public static function checkExistsInCron()\n {\...
[ "0.7627952", "0.71951854", "0.69973326", "0.697178", "0.689996", "0.68244946", "0.6809378", "0.6763793", "0.664453", "0.65923613", "0.6525312", "0.6439563", "0.63350785", "0.6311451", "0.6262836", "0.6123856", "0.61046135", "0.6095", "0.6093918", "0.6022005", "0.594719", "0...
0.84565985
0
Query refund by out refund number.
Запрос возврата по номеру возврата.
public function queryByOutRefundNumber(string $outRefundNumber) { return $this->query($outRefundNumber, 'out_refund_no'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function byOutTradeNumber(string $number, string $refundNumber, int $totalFee, int $refundFee, array $optional = [])\n {\n return $this->refund($refundNumber, $totalFee, $refundFee, array_merge($optional, ['out_trade_no' => $number]));\n }", "public function refund();", "public function que...
[ "0.62180483", "0.5886423", "0.5576089", "0.55759174", "0.538651", "0.5346416", "0.53318256", "0.53263605", "0.52578115", "0.5233923", "0.5190454", "0.5182684", "0.5145772", "0.5143019", "0.5080008", "0.5052677", "0.5029043", "0.50286967", "0.49866453", "0.49849376", "0.497162...
0.7322755
0
====================================================================// Blocks Generation Functions ====================================================================// Block Building Text Intro
====================================================================// Функции генерации блоков ====================================================================// Введение в текстовое описание блока
private function buildIntroBlock(): void { //====================================================================// // Into Text Block $this->blocksFactory() ->addTextBlock("This is a Demo Text Block!!"."You can repeat me as much as you want!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlockTypeDescription()\n {\n return t(\"Adds an intro title and a title\");\n }", "public function blockStart() {\n\n $this->outputEditmode('<div class=\"pimcore_block_entry ' . $this->getName() . '\" key=\"' . $this->indices[$this->current] . '\">');\n $this->output...
[ "0.61965877", "0.6093575", "0.6045783", "0.5945323", "0.5933385", "0.586049", "0.5848969", "0.5790183", "0.5754983", "0.56994605", "0.56792575", "0.5662628", "0.566199", "0.5653779", "0.5623735", "0.56066054", "0.56013435", "0.55888855", "0.5557027", "0.5553107", "0.5546684",...
0.80693436
0
Get the value of is_prepaid_blocked
Получить значение is_prepaid_blocked
public function getIsPrepaidBlocked() { return $this->is_prepaid_blocked; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsBlocked();", "public function getIsBlocked()\n {\n return $this->isBlocked;\n }", "public function setIsPrepaidBlocked(bool $is_prepaid_blocked)\n {\n $this->is_prepaid_blocked = $is_prepaid_blocked;\n\n return $this;\n }", "public function isPaid(){\n ...
[ "0.67508316", "0.6637024", "0.64902437", "0.644289", "0.6418084", "0.63644296", "0.6297203", "0.6227804", "0.6204604", "0.613352", "0.6111656", "0.6111517", "0.6068546", "0.60638833", "0.6048685", "0.5962005", "0.5961285", "0.59565264", "0.59541005", "0.5941489", "0.5934664",...
0.8310946
0
Set the value of is_prepaid_blocked
Установите значение is_prepaid_blocked
public function setIsPrepaidBlocked(bool $is_prepaid_blocked) { $this->is_prepaid_blocked = $is_prepaid_blocked; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsPrepaidBlocked()\n {\n return $this->is_prepaid_blocked;\n }", "public function markAsUnpaid() {\n $this->status = parent::STATUS_APPROVED_BY_USER;\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->c...
[ "0.7127651", "0.6327588", "0.6018615", "0.5995637", "0.5935298", "0.5896967", "0.5778362", "0.57450676", "0.5683287", "0.5662277", "0.56392175", "0.5610785", "0.55330133", "0.55123067", "0.5510463", "0.5510463", "0.5497974", "0.54363984", "0.537157", "0.53710544", "0.53608775...
0.79809797
0
Get the value of channel_id
Получить значение channel_id
public function getChannelId() { return $this->channel_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getChannelId() {\n $event = $this->getEvent();\n\n if (isset($event['channel'])) {\n return $event['channel'];\n }\n\n return $event['channel_id'];\n }", "public function getChannel()\n {\n $value = $this->get(self::channel);\n return $v...
[ "0.8004537", "0.7412812", "0.7219134", "0.7179654", "0.7087462", "0.7020301", "0.69980395", "0.69170344", "0.6790924", "0.6619758", "0.65257514", "0.65257514", "0.65257514", "0.6493556", "0.6478824", "0.6452272", "0.64094377", "0.64090765", "0.6404424", "0.63797617", "0.63797...
0.8076765
0
Get the value of gateway_id
Получить значение gateway_id
public function getGatewayId() { return $this->gateway_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getGatewayIdentifier() {\n\t\treturn $this->gatewayIdentifier;\n\t}", "protected function getGatewayIdentifier() {\n\t\treturn $this->gatewayIdentifier;\n\t}", "public function getGatewayKey ();", "public function getGwId() {\n return $this->item->getGwId();\n }", "function get...
[ "0.76668173", "0.76668173", "0.6857284", "0.6633344", "0.66180843", "0.6616044", "0.6479276", "0.6403749", "0.6334142", "0.6264326", "0.6256725", "0.6189527", "0.6172127", "0.61718786", "0.6169241", "0.6159494", "0.61590904", "0.61030996", "0.6080583", "0.6059491", "0.6041302...
0.8065019
0
Get the value of payment_methods
Получить значение payment_methods
public function getPaymentMethods() { return $this->payment_methods; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAvailablePaymentMethods ();", "public function iN_PaymentMethods() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_payment_methods WHERE payment_method_id = '1'\") or die(mysqli_error($this->db));\n\t\t$data = mysqli_fetch_array($query, MYSQLI_ASSOC);\n\t\treturn $data;\n\t}", "pu...
[ "0.76866084", "0.7319511", "0.72661173", "0.7221665", "0.695435", "0.6938", "0.69353247", "0.69261116", "0.6920887", "0.68708", "0.68012893", "0.6790588", "0.67754084", "0.6710001", "0.66888267", "0.66288024", "0.66189337", "0.66116416", "0.66103154", "0.65877295", "0.6587016...
0.73413765
1
Get the value of shipping_profiles
Получить значение shipping_profiles
public function getShippingProfiles() { return $this->shipping_profiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShippingPolicyProfile()\n {\n return $this->shippingPolicyProfile;\n }", "public function getShippingDetails();", "function get_shipping_type($shipping_profile_id)\n\t{\n\t\t$shipping_profile_id = mysql_escape_string($shipping_profile_id);\n\t\t$sql = \"SELECT shipping_type FROM...
[ "0.6806734", "0.66213655", "0.6515504", "0.6509815", "0.6359894", "0.62811923", "0.62667805", "0.6251507", "0.6250057", "0.6204455", "0.6183997", "0.6169621", "0.6153559", "0.6153559", "0.6153559", "0.61286604", "0.6119736", "0.6083255", "0.59905535", "0.59312236", "0.5903608...
0.78327453
0
Set the value of shipping_profiles
Установите значение shipping_profiles
public function setShippingProfiles(array $shipping_profiles) { $this->shipping_profiles = $shipping_profiles; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setShipping($shipping);", "public function setShippingPolicyProfile(array $shippingPolicyProfile)\n {\n $this->shippingPolicyProfile = $shippingPolicyProfile;\n return $this;\n }", "public function setShipping($shipping)\n {\n $this->shipping = $shipping;\n }", ...
[ "0.62533206", "0.60267454", "0.6007191", "0.59815156", "0.58917296", "0.58784646", "0.5840728", "0.5788696", "0.57856846", "0.5728427", "0.57164305", "0.571469", "0.56986743", "0.56973845", "0.5642806", "0.5616884", "0.5593729", "0.55740577", "0.5571537", "0.55700624", "0.551...
0.73087424
0
Get the value of return_profiles
Получить значение return_profiles
public function getReturnProfiles() { return $this->return_profiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetProfilesValues()\n\t{\n\t\treturn self::$aPROFILES;\n\t}", "public function getProfiles()\n {\n return $this->profiles;\n }", "public function getReturnPolicyProfileList()\n {\n return $this->returnPolicyProfileList;\n }", "public function getAllProfiles()\...
[ "0.73352987", "0.68788", "0.68065435", "0.6677281", "0.66333145", "0.6404519", "0.6382641", "0.62967443", "0.62537235", "0.62351567", "0.6222724", "0.6174596", "0.6174596", "0.6174596", "0.61528885", "0.6142884", "0.61423206", "0.61174154", "0.6114831", "0.6101218", "0.606596...
0.7934923
0
Set the value of return_profiles
Задайте значение return_profiles
public function setReturnProfiles(array $return_profiles) { $this->return_profiles = $return_profiles; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReturnProfiles()\n {\n return $this->return_profiles;\n }", "public function setProfiles($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\ZwiftPHP\\Protobuf\\Profile::class);\n $this->profiles = $arr;\n\n ...
[ "0.6165424", "0.6018269", "0.5884993", "0.5694176", "0.5627235", "0.5333177", "0.53190994", "0.52437717", "0.5233144", "0.51650345", "0.51650345", "0.5162533", "0.51583725", "0.5143957", "0.51410943", "0.50946885", "0.5085443", "0.5052869", "0.5047257", "0.50444204", "0.50436...
0.7404647
0
Get the value of coupon_profiles
Получить значение coupon_profiles
public function getCouponProfiles() { return $this->coupon_profiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetProfilesValues()\n\t{\n\t\treturn self::$aPROFILES;\n\t}", "public function getCouponCode();", "public function getProfile()\n {\n return $this->getFieldValue(self::FIELD_PROFILE);\n }", "public function get()\n {\n return $this->coupon->get();\n }", "pub...
[ "0.63687015", "0.6294413", "0.60774785", "0.60598344", "0.60544753", "0.60258913", "0.6008101", "0.59009206", "0.58125716", "0.5784459", "0.57645506", "0.57645506", "0.57597435", "0.57444996", "0.57444996", "0.57444996", "0.56989723", "0.56974196", "0.5684037", "0.5665834", "...
0.7436424
0
Get the value of postback_profiles
Получить значение postback_profiles
public function getPostbackProfiles() { return $this->postback_profiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProfile()\n {\n return $this->getFieldValue(self::FIELD_PROFILE);\n }", "public static function GetProfilesValues()\n\t{\n\t\treturn self::$aPROFILES;\n\t}", "public function getProfile() {\n\t\treturn $this->profile;\n\t}", "public function getProfile()\n {\n return...
[ "0.66234016", "0.6343087", "0.61335546", "0.60755986", "0.60755986", "0.60755986", "0.6033517", "0.60306144", "0.60228944", "0.5992966", "0.5988742", "0.5933398", "0.5917927", "0.59088445", "0.5883375", "0.58692276", "0.5833819", "0.5833819", "0.5825711", "0.57548976", "0.573...
0.7618986
0
Make header search in OceanWP theme compatible with JetMenu
Сделать поиск в заголовке темы OceanWP совместимым с JetMenu
function jet_menu_oceanwp_fix_header_search( $items, $args ) { if ( ! isset( $args->menu_class ) || 'jet-menu' !== $args->menu_class ) { return $items; } $items = str_replace( array( 'search-toggle-li', 'site-search-toggle', ), array( 'search-toggle-li jet-menu-item jet-simple-menu-item jet-regular...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function techmarket_navbar_search() {\n\t\ttechmarket_get_template( 'sections/navbar-search.php' );\n\t}", "function cosmetro_top_search( $format = '%s' ) {\n\t$is_enabled = get_theme_mod( 'top_panel_search', cosmetro_theme()->customizer->get_default( 'top_panel_search' ) );\n\n\tif ( ! $is_enabled ) {\n\t\tretu...
[ "0.7333754", "0.7208384", "0.70770043", "0.68466973", "0.67504126", "0.6710541", "0.6684724", "0.66337186", "0.653288", "0.6329191", "0.6309149", "0.6306499", "0.6290177", "0.62791806", "0.6261569", "0.62576604", "0.6240682", "0.6239846", "0.62398326", "0.6220703", "0.6214041...
0.7612716
0
Fix nav menu arguments
Исправить аргументы меню навигации
function jet_menu_oceanwp_fix_menu_args( $args ) { if ( ! isset( $args['menu_class'] ) || 'jet-menu' !== $args['menu_class'] ) { return $args; } $args['link_before'] = ''; $args['link_after'] = ''; return $args; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function modify_nav_arguments($arguments){\n\n $arguments['walker'] \t\t\t\t= new accesspress_mag_walker();\n //$arguments['container_class'] \t\t= $arguments['container_class'] .= 'mega-menu-wrapper';\n $arguments['menu_class']\t\t\t= 'menu accesspress_mag_mega_menu';\n\n ...
[ "0.74896514", "0.7166882", "0.7108001", "0.7035943", "0.69678605", "0.69671065", "0.6921737", "0.6907766", "0.6883245", "0.6865129", "0.6849561", "0.68393326", "0.68393326", "0.68393326", "0.68393326", "0.67384404", "0.670297", "0.6644116", "0.6643656", "0.6622157", "0.661208...
0.72354436
1
Check if the current model is blocking another model.
Проверьте, блокирует ли текущая модель другую модель.
public function isBlocking($model): bool { if (! $model instanceof Blockable && ! $model instanceof Blocking) { return false; } return ! is_null( $this ->blocking((new $model)->getMorphClass()) ->find($model->getKey()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function blocks($model): bool\n {\n return $this->isBlocking($model);\n }", "public function isBlocked()\n {\n return $this->getStatus() == self::STATUS_BLOCKED;\n }", "public function block($model): bool\n {\n if (! $model instanceof Blockable && ! $model instanceof ...
[ "0.7495757", "0.69053787", "0.6801635", "0.67990774", "0.666782", "0.66282904", "0.66282904", "0.6483337", "0.64489037", "0.6397326", "0.6258957", "0.61333466", "0.6101863", "0.5955755", "0.5909152", "0.5907648", "0.5903484", "0.56196004", "0.5583856", "0.5568157", "0.5546071...
0.73818463
1
Check if the current model is blocking another model.
Проверьте, блокирует ли текущая модель другую модель.
public function blocks($model): bool { return $this->isBlocking($model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBlocking($model): bool\n {\n if (! $model instanceof Blockable && ! $model instanceof Blocking) {\n return false;\n }\n\n return ! is_null(\n $this\n ->blocking((new $model)->getMorphClass())\n ->find($model->getKey())\n ...
[ "0.73832715", "0.6907038", "0.6803754", "0.68004143", "0.66683084", "0.66294", "0.66294", "0.6484921", "0.6448815", "0.63986456", "0.6259316", "0.6132957", "0.6103157", "0.59570366", "0.59099674", "0.59087884", "0.59076244", "0.56187606", "0.55834043", "0.5570577", "0.5543173...
0.7497042
0
Block a certain model.
Блокировать определенную модель.
public function block($model): bool { if (! $model instanceof Blockable && ! $model instanceof Blocking) { return false; } if ($this->isBlocking($model)) { return false; } $this->blocking()->attach($model->getKey(), [ 'blockable_type' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function blocks($model): bool\n {\n return $this->isBlocking($model);\n }", "public function blocking($model = null)\n {\n $modelClass = $this->getModelMorphClass($model);\n\n return $this\n ->morphToMany($modelClass, 'blocker', 'blockers', 'blocker_id', 'blockable...
[ "0.70781046", "0.67674917", "0.66868395", "0.63721085", "0.6241705", "0.6199661", "0.6120879", "0.60077304", "0.5959452", "0.5919647", "0.5855017", "0.5822905", "0.5740309", "0.5712021", "0.5683392", "0.5660049", "0.5628826", "0.56132895", "0.5609749", "0.55894256", "0.558795...
0.7396769
0
Unblock a certain model.
Разблокировать определенную модель.
public function unblock($model): bool { if (! $model instanceof Blockable && ! $model instanceof Blocking) { return false; } if (! $this->isBlocking($model)) { return false; } return (bool) $this ->blocking((new $model)->getMorphClass()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model_call_unfreeze(Jam_Model $model, Jam_Event_Data $data)\n\t{\n\t\t$this->call_associations_method($model, 'unfreeze');\n\n\t\tforeach ($this->_fields as $name)\n\t\t{\n\t\t\t$model->{$name} = NULL;\n\t\t}\n\n\t\tif ( ! $this->_parent)\n\t\t{\n\t\t\t$model->is_frozen = FALSE;\n\t\t\t$model->is_j...
[ "0.5904039", "0.58149767", "0.57980645", "0.56206995", "0.56146276", "0.55990344", "0.5561475", "0.55518764", "0.55389905", "0.55290645", "0.5515547", "0.54373765", "0.54258466", "0.5419757", "0.5404829", "0.5404829", "0.5391785", "0.538996", "0.53700364", "0.53700364", "0.53...
0.7174353
0
Display a calendar view to logged in user
Показать календарный вид для авторизованного пользователя
public function index() { if (!Sentry::check()) { // User is not logged in, or is not activated return Redirect::route('landing'); } else { return View::make('calendar.index'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $this->view('calendar');\n }", "public function getindex()\n\t{\n\t\t$id = Sentry::getUser()->id;\n\t\tif(!$id)\n\t\t{\n\t\t\techo \"please login first\";\n\n\t\t}\n\t\telse\n\t\t{\n\t\t$events = Calender::all(); \n\t\t\n\t\treturn View::make('event.index')->with('event...
[ "0.767319", "0.74256873", "0.7383843", "0.7354142", "0.7311155", "0.72852856", "0.72561646", "0.7242718", "0.71803486", "0.7152835", "0.71456623", "0.7111431", "0.7097638", "0.70280796", "0.70278424", "0.7003563", "0.6972465", "0.69253826", "0.68868345", "0.687292", "0.685287...
0.74838424
1
Set the "iid" parameter for the current command
Установите параметр "iid" для текущей команды
public function setIid($iid) { return $this->set('pio_iid', $iid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_ubi($iid_ubi = '')\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_item($iid_item)\n {\n $this->iid_...
[ "0.68654287", "0.68654287", "0.6860936", "0.6767778", "0.6767778", "0.67226034", "0.65090114", "0.63108695", "0.62251186", "0.6211543", "0.6206826", "0.6198715", "0.61696315", "0.61487794", "0.61487794", "0.61411536", "0.6100642", "0.60032284", "0.5945139", "0.5840505", "0.57...
0.72621
0
get messages by customer_id
получить сообщения по customer_id
static public function getMessagesByCustomerId($rest) { $data = array(); $h = $rest->getHierarchy(); $vars = $rest->getRequestVars(); $errors = Validation::required(array("customer_id"), $vars); // do we have any errors if (count($errors)) { echo json_enc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomer($customer_id);", "public function get_customer_byid($customer_id = \"\"){\r\n $query = $this->db->get_where('view_customer_info', array('customer_id' => $customer_id));\r\n return $query->row_array();\r\n }", "function get_customer($customer_id)\n {\n retu...
[ "0.7138294", "0.6650438", "0.64562356", "0.6380742", "0.63308996", "0.62943935", "0.6182489", "0.6180501", "0.6141007", "0.61152154", "0.61106724", "0.6098833", "0.6061245", "0.60532624", "0.60470766", "0.60314983", "0.5998347", "0.5983128", "0.5935894", "0.59161615", "0.5890...
0.71544516
0
get messages by contact id
получить сообщения по идентификатору контакта
static public function getMessagesByContactId($rest) { $data = array(); $h = $rest->getHierarchy(); $vars = $rest->getRequestVars(); $errors = Validation::required(array("contact_id"), $vars); // do we have any errors if (count($errors)) { echo json_encod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMessagesFor($id)\n {\n Receiver::where('message_id', $id)->where('recipient_id', Auth::user()->id)->update(['is_seen' => true]);\n\n // get all messages between the authenticated user and the selected user\n $messages = Message_Thread::where(function($q) use ($id) {\n ...
[ "0.7237493", "0.69647366", "0.69646186", "0.6845872", "0.67688006", "0.6650879", "0.6597531", "0.6565107", "0.6554185", "0.65397", "0.6507119", "0.6504515", "0.6472354", "0.6444423", "0.6437541", "0.64051396", "0.64051396", "0.64051396", "0.64051396", "0.64051396", "0.6405139...
0.77144456
0
Test Request GET (orchestra)/users without auth
Тестовый запрос GET (orchestra)/users без аутентификации
public function testGetUsersPageWithoutAuth() { $response = $this->call('orchestra::users@index'); $this->assertInstanceOf('Laravel\Redirect', $response); $this->assertEquals(302, $response->foundation->getStatusCode()); $this->assertEquals(handles('orchestra::login'), $response->foundation->headers->g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetUser()\n {\n $headers = $this->authenticate();\n $response = $this->json('GET', '/api/user', [], $headers);\n $response->assertStatus(200);\n }", "public function testGetUser()\n {\n $response = $this->get('getuser');\n\n $response->assertStatus(...
[ "0.73905694", "0.7291999", "0.7228858", "0.7228108", "0.69783807", "0.6955865", "0.6943423", "0.69301015", "0.68712085", "0.68689054", "0.6837579", "0.6836188", "0.67942494", "0.67812806", "0.67724943", "0.67131424", "0.6707258", "0.67035097", "0.6684727", "0.6673713", "0.667...
0.73100895
1
Test Request GET (orchestra)/users/view/1
Тестовый запрос GET (orchestra)/users/view/1
public function testGetSingleUserPage() { $this->be($this->user); $response = $this->call('orchestra::users@view', array(1)); $this->assertInstanceOf('Laravel\Response', $response); $this->assertEquals(200, $response->foundation->getStatusCode()); $this->assertEquals('orchestra::users.edit', $response->c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetUsersPage()\n\t{\n\t\t$this->be($this->user);\n\n\t\t$response = $this->call('orchestra::users@index');\n\t\t\n\t\t$this->assertInstanceOf('Laravel\\Response', $response);\t\n\t\t$this->assertEquals(200, $response->foundation->getStatusCode());\n\t\t$this->assertEquals('orchestra::users.inde...
[ "0.7879806", "0.7369127", "0.7257651", "0.721911", "0.7211713", "0.7178979", "0.714752", "0.7143988", "0.71155167", "0.7100919", "0.7097062", "0.7065654", "0.7030911", "0.6973102", "0.69707596", "0.69518113", "0.690639", "0.6853581", "0.684652", "0.6835651", "0.6828917", "0...
0.7388909
1
/end of find neighbor function /print function for vertex neighbors
/конец функции поиска соседа /функция вывода соседей вершины
function printNeighbors(){ foreach($vertexList as $v){ if(count($v->neighbors) > 0){ print($word . ": "); foreach($v->neighbors as $vertex){ print($vertex->word.", "); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function neighbors($v);", "function findNeighbor($Vertex_forWho,$Vertex_finder,$word,$differenceCount){\n\t\t//since some words like car had r as the end but cars had the r and s as end\n\t\t//this function kept breaking, because this was my base case, but to save myself\n\t\t// a headache i split them up...
[ "0.7257222", "0.60856897", "0.6082075", "0.5742842", "0.5733574", "0.56998277", "0.5598441", "0.55713034", "0.54402417", "0.5418688", "0.5408478", "0.538175", "0.5363773", "0.5344014", "0.52620125", "0.5234594", "0.51420575", "0.5111883", "0.5072339", "0.5070315", "0.50499874...
0.78646415
0
Return the method name for the setter of a given variable Example: Converts 'user_id' to 'setUserId'
Верните имя метода для установщика заданной переменной Пример: Преобразует 'user_id' в 'setUserId'
protected function getSetter($key) { $key = str_replace('_', ' ', $key); $key = ucwords($key); $key = str_replace(' ', '', $key); return 'set'.$key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSetterName()\n {\n return \"set\" . self::underscoreToCamelCase($this->name,true);\n }", "function setter(string $property): string\n{\n return 'set' . Str::studly($property);\n}", "private function setterMethodName($parameter)\n {\n return 'set' . studly_case($para...
[ "0.77010584", "0.7133158", "0.67792386", "0.6497578", "0.6461078", "0.64607704", "0.632203", "0.61418223", "0.6036828", "0.5963286", "0.5763751", "0.5756819", "0.5698017", "0.56674814", "0.5553794", "0.55533886", "0.55370986", "0.55077225", "0.54966855", "0.54821616", "0.5457...
0.7297386
1
Set the given field with the given value typecasted as an integer
Установите заданное поле с заданным значением, приведенным к целому числу
protected function setAsInteger($field, $value) { $this->object[$field] = (int) $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setValue(int $field, $value) : void;", "public function setValue($field, $value): int {\n if (in_array($field, static::fields, TRUE)){\n $this->{$field}->setValue($value);\n return 1;\n }\n return 0;\n }", "function o_castInt($value) {\n\t\t\treturn Obj::s...
[ "0.7122519", "0.6866179", "0.6641615", "0.6443829", "0.6291112", "0.6191459", "0.6169387", "0.6167649", "0.6090318", "0.60780144", "0.6063863", "0.60432625", "0.6023284", "0.60185283", "0.59998816", "0.59918654", "0.5924552", "0.5913186", "0.59008855", "0.5897239", "0.5891658...
0.7137426
0
Set the given field with the given value typecasted as a float
Задайте заданное поле заданным значением, приведенным к типу float
protected function setAsFloat($field, $value) { $this->object[$field] = (float) $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFloatField($value)\n {\n return $this->set(self::FLOAT_FIELD, $value);\n }", "function o_castFloat($value) {\n\t\t\treturn Obj::singleton()->castFloat($value);\n\t\t}", "public function set($value = null)\r\n {\r\n return parent::set((float)$value);\r\n ...
[ "0.7726843", "0.7273483", "0.7042471", "0.7024189", "0.70025975", "0.6977175", "0.6860591", "0.6653839", "0.6648697", "0.6625575", "0.66055685", "0.6603513", "0.6565375", "0.6536551", "0.64959276", "0.64860475", "0.64772356", "0.63983834", "0.63973117", "0.6386981", "0.634534...
0.77681315
0
Tests the 'Back to site' link behaves with manage layout as admin page.
Тестирует поведение ссылки 'Вернуться на сайт' при управлении макетом как страницы администрирования.
public function testBackToSiteLink() { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $this->drupalLogin($this->drupalCreateUser([ 'configure any layout', 'access administration pages', 'administer node display', 'administer node fields', 'ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function BackLink()\n {\n return BackendRouter::ModuleUrl(new Overview());\n }", "protected function BackLink()\n {\n return BackendRouter::ModuleUrl(new Overview());\n }", "public function testgoBackOneLevel()\n {\n\n // this link is available to users who are not...
[ "0.67043716", "0.67043716", "0.62552434", "0.6172643", "0.60133404", "0.60096174", "0.5935994", "0.5867099", "0.5849595", "0.5849595", "0.58401513", "0.5789324", "0.57285047", "0.5714606", "0.57101625", "0.5685016", "0.5673081", "0.5656947", "0.5649427", "0.56389576", "0.5607...
0.7478297
0
==== Property Declarations ============================================= ======================================================================== ==== End of Property Declarations ====================================== ======================================================================== ==== Method Declarations ===...
==== Объявления свойств ============================================= ======================================================================== ==== Конец объявлений свойств ====================================== ======================================================================== ==== Объявления методов ===========...
protected function getForm(string $name, string $email) { $sql = "SELECT * FROM " . $this->formsTableName . " WHERE name = ? AND email = ?"; $stmt = $this->connect()->prepare($sql); $stmt->bindParam(1, $name, \PDO::PARAM_STR); $stmt->bindParam(2, $email, \PDO::PARAM_STR); $stmt->execute();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getForm();", "public static function getForm();", "abstract function getForm();", "function getForms()\n {\n $func_status = 'pass';\n $func_error = '';\n $forms = '';\n\n try {\n $tableName = \"permissions_forms\";\n\n $getForms = new Mysql...
[ "0.6425265", "0.63722837", "0.6259364", "0.62215644", "0.6205603", "0.6174275", "0.59410477", "0.589464", "0.58898467", "0.5853461", "0.5797628", "0.574772", "0.57431763", "0.5741406", "0.570083", "0.5668568", "0.5650954", "0.5633477", "0.56190294", "0.56185323", "0.5615549",...
0.79565746
0
end of getForm() ==== setForm() ========================================================= Upload the contact form data into the database. Parameters: $arr associated array of contact form data Return: TRUE insertion of contact form successful FALSE unsccessful insertion of contact form =================================...
конец getForm() ==== setForm() ========================================================= Загрузка данных формы контакта в базу данных. Параметры: $arr ассоциативный массив данных формы контакта Возвращаемое значение: TRUE успешная запись формы контакта в базу данных FALSE неудачная запись формы контакта в базу данных =...
protected function setForm(array $arr) { $sql = "INSERT INTO " . $this->formsTableName . " (name, email, telNum, persFavFood, msg, rating, retCust, favCat, ts) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"; $stmt = $this->connect()->prepare($sql); $res = $stmt->execute([$arr['name'], $arr['email'], $arr[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SaveForm($form_data) {\n $this->db->insert('adebiti', $form_data);\n if ($this->db->affected_rows() == '1') {\n return TRUE;\n }\n return FALSE;\n }", "public function processFormData($arrPost, $arrForm, $arrFiles)\n {\n\t\tif(!$arrForm['csvExport']){\n\t\t\t...
[ "0.5889654", "0.58836126", "0.5765263", "0.57520115", "0.5687094", "0.56868714", "0.56360644", "0.5554503", "0.5480203", "0.5460281", "0.54574454", "0.5454157", "0.54475754", "0.5447162", "0.54355466", "0.54097307", "0.53602475", "0.5350493", "0.5347769", "0.5320692", "0.5311...
0.7853629
0
end of setForm() ==== getRecByEmail() =================================================== Check how many rows exists in the database with the email parameter. Parameters: $email string of an email Return: $res string number of rows found ========================================================================
конец setForm() ==== getRecByEmail() =================================================== Проверить, сколько строк существует в базе данных с параметром email. Параметры: $email строка электронной почты Возвращается: $res строка с количеством найденных строк ==============================================================...
protected function getRecByEmail(string $email) { $sql = "SELECT COUNT(*) FROM " . $this->formsTableName . " WHERE email = ?"; $stmt = $this->connect()->prepare($sql); $stmt->bindParam(1, $email, \PDO::PARAM_STR); $stmt->execute(); $res = $stmt->fetchAll(); return $res[0]['COUNT(*)']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRecByNameEmail(string $name, string $email) {\n $sql = \"SELECT COUNT(*) FROM \" . $this->formsTableName . \" WHERE name = ? AND email = ?\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->bindParam(1, $name, \\PDO::PARAM_STR);\n $stmt->bindParam(2, $email, \\PDO::PAR...
[ "0.7195172", "0.71636033", "0.6947688", "0.69180524", "0.6747372", "0.6745044", "0.6716814", "0.67041016", "0.667102", "0.6626002", "0.6569871", "0.6568219", "0.6541039", "0.6529713", "0.65229553", "0.64886206", "0.644988", "0.64486545", "0.64356935", "0.6435421", "0.64329886...
0.7843579
0
end of getRecByEmail() ==== getRecByNameEmail() =============================================== Check how many rows exists in the database with the name & email parameters. Parameters: $name string of a name $email string of an email Return: $res string number of rows found =============================================...
конец getRecByEmail() ==== getRecByNameEmail() =============================================== Проверьте, сколько строк существует в базе данных с параметрами имени и электронной почты. Параметры: $name строка имени $email строка электронной почты Возвращается: $res строка числа найденных строк ========================...
protected function getRecByNameEmail(string $name, string $email) { $sql = "SELECT COUNT(*) FROM " . $this->formsTableName . " WHERE name = ? AND email = ?"; $stmt = $this->connect()->prepare($sql); $stmt->bindParam(1, $name, \PDO::PARAM_STR); $stmt->bindParam(2, $email, \PDO::PARAM_STR); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function emailTaken($email) {\n\t$db = connectDB();\n $sql = <<<SQL\n \tSELECT userID\n \tFROM users\n \tWHERE email = ?\nSQL;\n\n $statement = $db->prepare($sql);\n $statement->bind_param(\"s\", $email);\n $statement->execute();\n $statement->store_result();\n\t$res = $statement->num_rows;...
[ "0.72584003", "0.6987202", "0.68426913", "0.680507", "0.67845136", "0.6750169", "0.6718966", "0.67175156", "0.6664361", "0.66412026", "0.6638678", "0.6634671", "0.66083956", "0.6603715", "0.65979105", "0.6587985", "0.6562047", "0.65560746", "0.6551698", "0.6508218", "0.650817...
0.78417575
0
end of getRecByNameEmail() ==== delRecByEmail() =================================================== Find and delete the oldest contact form using the email parameter Parameters: $email string of a email Return: TRUE row deletion successful FALSE row deletion failed ======================================================...
конец getRecByNameEmail() ==== delRecByEmail() =================================================== Найти и удалить старейший контакт-форму с использованием параметра email Параметры: $email строка электронной почты Возвращаемое значение: TRUE удаление строки успешно FALSE удаление строки не удалось ====================...
protected function delRecByEmail(string $email) { try { $sql = "DELETE FROM " . $this->formsTableName . " WHERE email = ? ORDER BY ts ASC LIMIT 1"; $stmt = $this->connect()->prepare($sql); $stmt->bindParam(1, $email, \PDO::PARAM_STR); $stmt->execute(); $res = $stmt->fetchAl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeEmail( $email ){\n \n $conn = $this->connect();\n \n $sql = 'select email from ' . $this->dbtable . ' where email = lower(\"' . trim($email) . '\")';\n\t\t\t$query = mysql_query( $sql, $conn);\n\t\t\t\n\t\t\tif( mysql_num_rows( $query ) > 0 ){\n\t\t\t\t$sql = 'd...
[ "0.66217035", "0.65925646", "0.6545741", "0.6542247", "0.6494282", "0.64216745", "0.6401216", "0.637896", "0.6308607", "0.6303122", "0.6250834", "0.61782515", "0.61770433", "0.6162416", "0.6112688", "0.6103987", "0.6094252", "0.60901666", "0.6050489", "0.6047234", "0.6010882"...
0.8066477
0
Return the list of injection strategies used
Верните список используемых стратегий инъекции
public function getInjectionStrategies(): TypedCollectionInterface { return $this->injectionStrategies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAvailableStrategies() {\n\t\t$availableStrategies = array();\n\t\t$path = APP . 'Lib' . DS . 'Migrations' . DS;\n\t\tforeach (new \\DirectoryIterator($path) as $info) {\n \t\t\tif ($info->isDot()) {\n \t\t\t\tcontinue;\n \t\t\t}\n\n \t\t\tif (preg_match('/Strategy\\.php/', $info->getBasename())...
[ "0.7098468", "0.62777054", "0.62403274", "0.6216394", "0.62068605", "0.61737406", "0.59344494", "0.5932356", "0.5887029", "0.5873927", "0.5868579", "0.58343774", "0.5786879", "0.574524", "0.57451737", "0.5710181", "0.5653659", "0.5627613", "0.5617549", "0.56082076", "0.560770...
0.7091983
1
/////////////////////////////////////////////////////////////////// Get total product count
/////////////////////////////////////////////////////////////////// Получить общее количество продуктов
public static function getTotalProductCount() { Db_Actions::DbSelect("SELECT COUNT(id) FROM cscart_products"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductCount()\n {\n $count = 0;\n \tforeach ($this->getItems() as $item) {\n \t $count += $item['count'];\n \t}\n \treturn $count;\n }", "public function getTotalProducts()\n {\n $resource = $this->_productFactory->create()->getResource();\n \n $connection = $res...
[ "0.90284467", "0.8108571", "0.8093267", "0.8035205", "0.7779086", "0.77560496", "0.77557915", "0.76248777", "0.76099056", "0.7558842", "0.75444514", "0.753077", "0.75024605", "0.74686164", "0.74683267", "0.74584734", "0.735191", "0.735191", "0.7341474", "0.73247087", "0.72771...
0.83563393
1
/////////////////////////////////////////////////////////////////// Get all top level categories
/////////////////////////////////////////////////////////////////// Получить все верхнеуровневые категории
public static function getCategories() { $top_level_cats = array(); //Select all top level categories Db_Actions::DbSelect("SELECT * FROM cscart_categories LEFT OUTER JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id WHERE cscart_catego...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllCategories()\n\t{\n\t\treturn $this->_db->loadAssoc(\"SELECT * FROM @_#_categories ORDER BY title\", 'parent_id', true);\n\t}", "public function getCategories();", "public function getCategories();", "public function getAllCategories();", "function getAllCategories()\n {\n r...
[ "0.7896574", "0.7813748", "0.7813748", "0.77887344", "0.77032274", "0.7661748", "0.7658546", "0.76123273", "0.7598974", "0.75817806", "0.7560357", "0.754041", "0.7532735", "0.7523088", "0.7491185", "0.74835724", "0.7466275", "0.74441797", "0.7423476", "0.74049145", "0.7397464...
0.83286905
0
////////////////////////////////////////////////////////////////////// Delete product from cart
////////////////////////////////////////////////////////////////////// Удалить продукт из корзины
public static function deleteProductFromCart($product_id) { $auth = fn_fill_auth(); $cart = $_SESSION['cart']; fn_delete_cart_product($cart, $cart_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeProduct(Product $product){\n \t$this->myCart->remove($product);\n }", "public function delete() {\n if (!$this->customer->isLogged()) {\n die();\n }\n $product_id = $this->request->post['product_id'];\n $this->load->model('catalog/product');\n\n ...
[ "0.7960117", "0.772794", "0.771067", "0.7682363", "0.7673694", "0.7645469", "0.75880367", "0.7546866", "0.7544915", "0.7503153", "0.74693835", "0.74689454", "0.746671", "0.74597186", "0.74350214", "0.7421636", "0.7408494", "0.73823726", "0.7378197", "0.7328592", "0.7292169", ...
0.77758974
1
/////////////////////////////////////////////////////////////////////// Load background images
/////////////////////////////////////////////////////////////////////// Загрузка фоновых изображений
public static function loadBackgroundImages() { $dir = scandir('../img/bgs'); $bg_images = array(); foreach ($dir as $file) { if ($file != "." && $file != "..") { if (file_exists("../img/bgs/" . $file)) { $currFileExt = pathinfo("../img/bgs/" . $fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_background_image()\n {\n }", "function _captcha_show_gd_img_get_backgrounds()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\t\t\n\t\t$images = array();\n\t\t$_path = $this->path_background;\n\t\t\n\t\tif ( $_dir = @opendi...
[ "0.7112916", "0.70450956", "0.66364455", "0.65244246", "0.6285328", "0.6258714", "0.6213515", "0.60697585", "0.6044611", "0.5965043", "0.5903245", "0.5897445", "0.5887693", "0.5850463", "0.5773511", "0.56341195", "0.56041133", "0.5596392", "0.55842763", "0.5557801", "0.551145...
0.7271041
0
/////////////////////////////////////////////////////////////////////// Load filter images
/////////////////////////////////////////////////////////////////////// Загрузка изображений фильтра
public static function loadFilterImages() { $dir = scandir('../img/effects'); $bg_images = array(); foreach ($dir as $file) { if ($file != "." && $file != "..") { if (file_exists("../img/effects/" . $file)) { $currFileExt = pathinfo("../img/effects...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFilter($_image, $filter, $param1, $param2, $param3)\n {\n \n //se o filtro estiver no array de filtros simples\n if(array_key_exists($filter,self::$_simpleFilters))\n {\n imagefilter($_image, self::$_simpleFilters[$filter]);\n return $...
[ "0.6393928", "0.62254095", "0.6221049", "0.59474915", "0.5925864", "0.58376104", "0.58333474", "0.57603294", "0.5747043", "0.5700138", "0.56835365", "0.5663423", "0.5642942", "0.5636832", "0.5601619", "0.55926204", "0.5569385", "0.55532074", "0.5515226", "0.5499478", "0.54870...
0.7335104
0
/////////////////////////////////////////////////////////////////////// get number of pages with effect images
/////////////////////////////////////////////////////////////////////// получение количества страниц с изображениями эффектов
public static function getEffectsNumPages() { $dir = scandir('../img/effects'); $bg_images = array(); foreach ($dir as $file) { if ($file != "." && $file != "..") { if (file_exists("../img/bgs/" . $file)) { $currFileExt = pathinfo("../img/bgs/" . $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_page_count() {\n global $connexion, $config;\n $nb_images = $connexion->query('SELECT COUNT(id) FROM image')->fetchColumn();\n $nb_pages = ceil($nb_images / $config['nb_pictures_page']);\n return $nb_pages;\n}", "public function numOfPages(): int;", "public function getPageNumber();", ...
[ "0.7511876", "0.6687339", "0.65935946", "0.65935946", "0.6548419", "0.6490648", "0.6467559", "0.63953197", "0.6363755", "0.6362878", "0.6362878", "0.6351505", "0.63401836", "0.63002276", "0.62988055", "0.62848926", "0.62848926", "0.6284278", "0.62774885", "0.6248097", "0.6238...
0.8249625
0
///////////////////////////////////////////////////////////////////////// Get dress type by product id
///////////////////////////////////////////////////////////////////////// Получение типа одежды по идентификатору продукта
public static function GetDressTypeByID($productID = null) { $category_dress_type_id = Db_Actions::DbSelectRow("SELECT category_dress_type_id FROM cscart_products WHERE product_id=$productID"); if (!isset($category_dress_type_id->empty_result)) { return $category_dress_type_id->category_dre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductType();", "public function getProductType()\n {\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}...
[ "0.7453759", "0.69906604", "0.67866784", "0.65888214", "0.6587682", "0.6511979", "0.6503158", "0.6491178", "0.64238894", "0.6414557", "0.64011276", "0.63666785", "0.63503695", "0.6309984", "0.63068414", "0.62736684", "0.62623", "0.622652", "0.6197643", "0.61783797", "0.615799...
0.75321233
0
//////////////////////////////////////////////////////// Get product color variations
//////////////////////////////////////////////////////// Получить варианты цвета продукта
public static function getProductColorVariations($productID) { Db_Actions::DbSelect("SELECT * FROM cscart_product_color_variations WHERE product_id=$productID ORDER BY id DESC"); $data = Db_Actions::DbGetResults(); if (!isset($data->empty_result)) { $counter = 1; $product...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function colorList() {\n $colorArr = (new \\yii\\db\\Query())\n ->select(['color'])\n ->from('product_variation')\n ->where(['!=', 'color', ''])\n ->groupBy(['color'])\n ->all();\n return $colorArr;\n }", "public function...
[ "0.7293336", "0.6595711", "0.63992804", "0.6195265", "0.61694485", "0.6166649", "0.6166649", "0.6166649", "0.6160724", "0.61212796", "0.6115576", "0.60391694", "0.6014347", "0.59842944", "0.59842634", "0.59842634", "0.59842634", "0.59842634", "0.59842634", "0.59842634", "0.59...
0.7296927
0
Get Tracking Number from session
Получить номер отслеживания из сессии
public function getTrackingNumber($removeFromSession = false) { // Using session since currently signup is made via AJAX. Need to show lead pixel later $trackingNumber = Yii::$app->session->get(self::SESSION_KEY); if ($removeFromSession) { Yii::$app->session->remove(self::SESSION...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTrackingNumber()\n {\n return $this->tracking_number;\n }", "public function getTrackingNumber()\n {\n return $this->trackingNumber;\n }", "public function getTrackingNumber() : string\n\t{\n\t\treturn $this->trackingNumber;\n\t}", "public function getTrackingID()...
[ "0.78255403", "0.777399", "0.76148957", "0.7233682", "0.6962543", "0.67749804", "0.67300135", "0.6602317", "0.65683454", "0.6556503", "0.64596075", "0.6437846", "0.64263564", "0.63654274", "0.63055474", "0.63038117", "0.62856865", "0.6276421", "0.62431353", "0.62251395", "0.6...
0.7838732
0
Finds cheapest flight between two cities
Находит самый дешевый рейс между двумя городами
public function findCheapest(string $city1, string $city2): array { $airport1 = $this->airportRepository->findByCity($city1); abort_if(is_null($airport1), 404, 'Airport in the city ' . $city1 . ' does not exist.'); $airport2 = $this->airportRepository->findByCity($city2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findMinPrice() : array {\n $minPriceFlight = null;\n foreach (range(0, $this->flexibility) as $index) {\n $fromDate = $this->incrementDate($this->startingDate, $index);\n $returnDate = $this->incrementDate($fromDate, $this->duration);\n foreach ($this-...
[ "0.5897992", "0.5793001", "0.57794833", "0.57518566", "0.5623613", "0.5551021", "0.54757845", "0.54124254", "0.53923035", "0.5346151", "0.5260339", "0.52358395", "0.52074176", "0.5170392", "0.51621073", "0.51505125", "0.51358765", "0.50730205", "0.5036109", "0.49859467", "0.4...
0.71475494
0
Create a Font Awesome icon.
Создайте иконку Font Awesome.
public static function newFontAwesomeIcon(): FontAwesomeIconInterface { return new FontAwesomeIcon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fa_icon( $icon = 'user' ) {\n\t\treturn \"<i class=\\\"fa fa-{$icon}\\\"></i>\";\n\t}", "function font_awesome($icon){\n\treturn \"<span class='fa fa-fw $icon'></span>\";\n}", "public function get_icon()\n\t{\n\t\treturn 'fab fa-algolia';\n\t}", "static function icon($icon) {\n\t\treturn self::tag('...
[ "0.76038563", "0.75430125", "0.7001806", "0.6913122", "0.68559563", "0.6789669", "0.65218407", "0.6414753", "0.6343736", "0.6298402", "0.6298402", "0.62157124", "0.62005365", "0.61868227", "0.6165205", "0.615888", "0.60706115", "0.60706115", "0.60683924", "0.60541767", "0.604...
0.75936645
1
Create a Material Design Iconic Font icon.
Создайте иконку Material Design Iconic Font.
public static function newMaterialDesignIconicFontIcon(): MaterialDesignIconicFontIconInterface { return new MaterialDesignIconicFontIcon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function parseMaterialDesignIconicFontIcon(array $args): MaterialDesignIconicFontIconInterface {\n\n $icon = static::newMaterialDesignIconicFontIcon();\n\n $icon->setName(ArrayHelper::get($args, \"name\", \"home\"));\n $icon->setStyle(ArrayHelper::get($args, \"style\"));\n\n ...
[ "0.7058905", "0.68383014", "0.66942304", "0.66805327", "0.66458786", "0.6594002", "0.6594002", "0.65276146", "0.65077174", "0.65077174", "0.6405133", "0.6391595", "0.63782626", "0.63415873", "0.6339644", "0.6339644", "0.6338894", "0.6338894", "0.6316775", "0.62772155", "0.627...
0.833063
0
Get the observers attached to this object.
Получить наблюдателей, присоединенных к этому объекту.
public function observers() { return $this->observers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getObservers()\n {\n return $this->observers;\n }", "public function getObservers()\n {\n return $this->observers;\n }", "public static function getObservers()\n\t{\n\t\t$observers = self::$_observers;\n\t\treturn $observers;\n\t}", "public function get_observers() :...
[ "0.8706012", "0.8706012", "0.84819514", "0.8188519", "0.74312025", "0.7168714", "0.71632785", "0.6904595", "0.6642985", "0.6642676", "0.66323316", "0.6561525", "0.6549337", "0.6512406", "0.64812803", "0.6333697", "0.6272465", "0.6260663", "0.6260663", "0.62135774", "0.6192441...
0.89210606
0
Detach an observer from the list of observers.
Открепить наблюдателя от списка наблюдателей.
public function detach(Observer $observer) { if (($key = array_search($observer, $this->observers, true)) !== false) { unset($this->observers[$key]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function detach(Observer $observer) {\n foreach ($this->observers as $key => $obs) {\n if ($observer == $obs) {\n unset($this->observers[$key]);\n break;\n }\n }\n }", "public function detach(Observer $observer)\n\t{\n\t\tunset($this->_o...
[ "0.82576317", "0.8136378", "0.7937366", "0.7899317", "0.78832656", "0.7800022", "0.7721606", "0.7624079", "0.7622597", "0.7566358", "0.74750525", "0.733576", "0.7317719", "0.7245711", "0.71319586", "0.7009916", "0.69106203", "0.6609986", "0.65475345", "0.6437398", "0.6430881"...
0.82060266
1
Get Data content by index Pay attention to the return value, If no $indexTo target will return the empty array, When the target may be 0 or null, you need to pay attention to the judgment. Usage: $data = ['user' => ['name' => 'Mars', 'birthday' => '20000101']]; var_export(ArrayHelper::getContent($data)); // full $data ...
Получить содержимое данных по индексу. Обратите внимание на возвращаемое значение. Если нет $indexTo, будет возвращен пустой массив. Когда целевой элемент может быть 0 или null, необходимо обратить внимание на проверку. Использование: $data = ['user' => ['name' => 'Mars', 'birthday' => '20000101']]; var_export(ArrayHel...
public static function getContent(Array $data, $indexTo = [], $exception = false) { /* Arguments prepare */ if (is_string($indexTo)) { $indexTo = array_map('trim', explode(',', $indexTo)); } $indexed = []; foreach ($indexTo as $idx) { // s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getData($key = '', $index = null);", "function getContents($index=null) {\n\t\tif($index===null) {\n\t\t\treturn $this->_dataobjects;\n\t\t}\n\t\tif(!isset($this->_dataobjects[$index])) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->_dataobjects[$index];\n\n\t}", "function data_get($target, $...
[ "0.55672264", "0.5444089", "0.52943254", "0.52768844", "0.5165288", "0.5115654", "0.508357", "0.506074", "0.506074", "0.504804", "0.5003804", "0.49891353", "0.49476627", "0.49091896", "0.49020645", "0.48923212", "0.48923212", "0.48923212", "0.48905784", "0.48905784", "0.48905...
0.7320773
0
Array Deff Recursive Compare $srcArray with $contrast and display it if something on $srcArray is not on $contrast.
Рекурсивное сравнение массива $srcArray с $contrast и вывод его, если что-либо в $srcArray отсутствует в $contrast.
public static function diffRecursive(Array $srcArray, $contrast) { $diffArray = []; foreach ($srcArray as $key => $value) { if (is_array($contrast) && array_key_exists($key, $contrast)) { if (is_array($value)) { $aRecursiveDiff = self::diffRec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function __remarkFlow($array1, $array2){\r\n return array_diff($array1, $array2);\r\n }", "function multi_array_diff($array1, $array2)\n{\n\t$diff = array();\n\t\n\t#Do a foreach only if there are more than one levels of array below the current value (first value in array)\n\tif(contains_...
[ "0.47898644", "0.46050486", "0.4549538", "0.44723508", "0.4381586", "0.4353555", "0.4328056", "0.43077257", "0.43019485", "0.42559448", "0.4249547", "0.4248624", "0.4238721", "0.42297322", "0.4105353", "0.4098338", "0.40856826", "0.40750143", "0.40749344", "0.406409", "0.4056...
0.7281569
0
output git DiffChunkLine content
output git DiffChunkLine содержимое
public function outputChunk(DiffChunk $diffChunk) { //var_dump($diffChunkLine); return implode($diffChunk->getLines(), "\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function html_shortlog($repo, $count) {\n echo '<table>';\n $c = git_commit($repo, \"HEAD\");\n for ($i = 0; $i < $count && $c; $i++) {\n\n $date = date('D n/j/y G:i', intval($c['date']));\n $commit_id = $c['commit_id'];\n $parent_id = $c['parent'];\n\n $commit_message = short_...
[ "0.58935595", "0.5771478", "0.5690661", "0.5257246", "0.52250886", "0.52140003", "0.5173087", "0.5094269", "0.5065596", "0.50597435", "0.50582755", "0.50370955", "0.49841663", "0.49563992", "0.4903894", "0.48786676", "0.48729935", "0.4847911", "0.48276314", "0.4826947", "0.47...
0.7083244
1
/ MiningBuddy ( $Header: /usr/home/mining/cvs/mining/functions/html/showEvents.php,v 1.19 2008/01/02 20:01:32 mining Exp $ Copyright (c) 20052008 Christian Reiss. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ar...
MiningBuddy ( $Header: /usr/home/mining/cvs/mining/functions/html/showEvents.php,v 1.19 2008/01/02 20:01:32 mining Exp $ Авторские права (c) 20052008 Christian Reiss. Все права защищены. Разрешается распространять и использовать программное обеспечение в исходном и двоичном виде, с изменениями или без них, при условии ...
function showEvents() { // Lets import some globals, shall we? global $MySelf; global $DB; global $TIMEMARK; $delta = $TIMEMARK -259200; // is the events module active? if (!getConfig("events")) { makeNotice("The admin has deactivated the events module.", "warning", "Module not active"); } /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ShowEvents()\n {\n $this->ReadEvents();\n echo\n $this->H(1,$this->MyLanguage_GetMessage(\"Events_Table_Title\")).\n $this->EventsHtmlTable(),\n \"\";\n }", "function DisplayEvents()\r\n\t{\t\r\n\t\tglobal $_GET;\r\n\t\tglobal $_POST;\r\n\t\tglobal $_...
[ "0.7772302", "0.74917644", "0.7270854", "0.72544175", "0.71525925", "0.7111285", "0.71041787", "0.70760643", "0.700652", "0.6831481", "0.6783804", "0.671174", "0.66664046", "0.66620207", "0.6639366", "0.6624541", "0.66156113", "0.6591692", "0.6563447", "0.65535104", "0.650904...
0.7623232
1
delete platfom from platforms table
удалить платформу из таблицы platforms
function delPlatform($id) { global $mysqli; $sql="DELETE FROM platforms WHERE platformID=$id "; $mysqli->query($sql)or die("query failed due to ".mysqli_error()); logSuccess("platform deleted successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteById($platformcodeId);", "abstract protected function platformDeleteStatement($table);", "public function deleteDatabaseStructure( );", "function lp_delete_table(){\r\n\tglobal $wpdb;\r\n\t$charset_collation = $wpdb->get_charset_collate();\r\n\t$table_name = $wpdb->prefix.'like_post';\r...
[ "0.6479251", "0.60560787", "0.58929604", "0.57621294", "0.5667425", "0.56584334", "0.5554934", "0.5511369", "0.5505877", "0.54978275", "0.54888195", "0.54655534", "0.5438904", "0.5415529", "0.5412757", "0.5387609", "0.53848165", "0.5369056", "0.53464377", "0.53305924", "0.532...
0.70832175
0
Solidifies the temporary password into the permenant password
Фиксирует временный пароль как постоянный
public function ConvertTemporaryPassword() { if ( ($this->TempPassword) && ($this->TempPasswordSalt) ) { $this->Password = $this->TempPassword; $this->PasswordSalt = $this->TempPasswordSalt; $this->TempPassword = null; $this->TempPasswordSalt = null; $this->write(); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function temp_pass(){\n\treturn 'password199';\n}", "public function initPassword() {\n\t\t$this->salt = mt_rand();\n\t\t$clearPassword = mt_rand();\n\t\t$this->password = sha1($this->salt . $clearPassword);\n\t\treturn $clearPassword;\t\n\t}", "function saltPassword($tempPassword)\n{\n\t$salt1 = \"qm\\$h*\";\...
[ "0.7096385", "0.6645637", "0.66241175", "0.6456425", "0.6315426", "0.6308458", "0.629177", "0.62652874", "0.6196825", "0.6174643", "0.61710614", "0.61566466", "0.61452216", "0.6140846", "0.6128573", "0.6106052", "0.60904795", "0.6075013", "0.60732186", "0.60632324", "0.606169...
0.71860015
0
begin here; enter into a directory and recursively look into it.
Начните здесь; войдите в каталог и рекурсивно исследуйте его.
function dir_enter($entry_dir='/', $depth=0) { $found = 0; # Remove the last trailing slash and void dual writing $entry_dir = preg_replace('/\/$/i', '', $entry_dir); $skip_list = array( '.', # self '..', # parent ); if($dir_handle = opendir($entry_dir)) { while(false !== ($filename = rea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rScanDir($scanMe) {\r\n\t\tglobal $path, $tmpPath, $cur_folder, $tags2;\r\n\t\tforeach($scanMe as $folder)\r\n\t\t{\r\n\t\t\tif(is_dir($path.$tmpPath.$folder) && $folder !=\".\" && $folder !=\"..\")\r\n\t\t\t{\r\n\t\t\t\t$cur_folder[] = $tmpPath.$folder;\r\n\t\t\t\techo \"getTagString input:\".$tmpPath.$f...
[ "0.5582389", "0.5535926", "0.5441885", "0.5426914", "0.5365969", "0.536421", "0.5345124", "0.52839905", "0.527695", "0.52621114", "0.5251651", "0.52430516", "0.52245325", "0.5203092", "0.5202012", "0.5191469", "0.5188438", "0.5171857", "0.5151295", "0.5150924", "0.5150247", ...
0.71078455
0
Get the generated interface name
Получить сгенерированное имя интерфейса
public function getGeneratedInterface() { return 'I'.ucfirst($this->name).'Adapter'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function name(): string\n {\n return 'interface';\n }", "protected function getInterfaceDefinition($name) {\n return 'Webforge\\Types\\Interfaces\\\\'.$name;\n }", "abstract protected function generateName();", "public function getUniqueName()\n {\n \t// load the identifiers\n ...
[ "0.7561654", "0.67842674", "0.6774712", "0.6696295", "0.6657731", "0.6585888", "0.6551176", "0.64950436", "0.648664", "0.6471242", "0.6444275", "0.6396577", "0.639656", "0.6378045", "0.6378045", "0.6378045", "0.6369798", "0.6356752", "0.63536525", "0.635339", "0.6336516", "...
0.75436175
1
Generate the adapter code
Сгенерировать код адаптера
public function GenerateAdapter() { $this->writeLine( 'class '.$this->getClassName() ); $this->writeLine( 'extends '.$this->getExtends() ); $this->writeLine('implements '); $this->writeLine( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGeneratedInterface() {\n\t\t\treturn 'I'.ucfirst($this->name).'Adapter';\t\n\t\t}", "abstract protected function createAdapter();", "abstract protected function getAdapter();", "abstract protected function getAdapter();", "public function generateInitCode();", "public function getAdapt...
[ "0.662946", "0.6511017", "0.60634387", "0.60634387", "0.6019794", "0.58341897", "0.58341897", "0.58334684", "0.58334684", "0.583344", "0.583344", "0.583344", "0.583344", "0.583344", "0.58287543", "0.580936", "0.5801711", "0.57794714", "0.5778451", "0.5763455", "0.5762898", ...
0.820904
0
Generate the entity code
Сгенерировать код сущности
public function GenerateEntity() { return $this->entity->Generate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateEntityCode()\n {\n $tables = $this->getTables();\n \n $code = \" require_once 'grandprix.data.php';\";\n foreach ($tables as $table)\n {\n $columns = $this->getColumns($table['tableName']);\n $chi...
[ "0.85135317", "0.6651294", "0.6615616", "0.6508623", "0.63875175", "0.6356612", "0.6240284", "0.6197398", "0.6104176", "0.61031663", "0.60996467", "0.60996467", "0.6099628", "0.6099628", "0.6099628", "0.6099628", "0.6099628", "0.6053485", "0.60358304", "0.6029271", "0.5932153...
0.7133943
1
Generates an anchor name based on a given heading.
Генерирует имя якоря на основе заданного заголовка.
public function generateAnchorName($heading) { // Remove HTML tags $heading = preg_replace('/<(.*?)>/', '', $heading); // Remove parentheses $heading = preg_replace('/\(.*?\)/', '', $heading); // Remove inner-word punctuation $heading = preg_replace('/[\'"‘’“”]/', '', $heading); // Get the "words". Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function heading_anchors() {\r\n\t\t// headings to have an anchor, so we can take the option that the structure() function now offers us for achieving the same end.\r\n\t\t$count = 0;\r\n\t\t$arrayRxp = array(\r\n\t\t//'(<h1>)(<em>)*([0-9]{1,2})' => '$1$2<a name=\"$3\"></a>$3',\r\n\t\t//'(<h2>)(<em>)*([0-9]{1,2})(...
[ "0.67633224", "0.6057888", "0.60150397", "0.58401763", "0.58030105", "0.5766994", "0.5761064", "0.56733775", "0.5601421", "0.5550285", "0.5527711", "0.55157316", "0.5511428", "0.549522", "0.54193324", "0.54011625", "0.5390055", "0.5373236", "0.5349038", "0.5334081", "0.529850...
0.84614486
0
Private Methods ========================================================================= Adds an anchor link to the given HTML tag match.
Приватные методы ========================================================================= Добавляет ссылку на якорь в заданный HTML-тег.
private function _addAnchorToTagMatch($match) { $anchorName = $this->generateAnchorName($match[3]); return '<'.$match[1].$match[2].' id='.$anchorName.'>' . $match[3] . ' <a class="anchor" href="#'.$anchorName.'" title="'.Craft::t('Direct link to {heading}', array('heading' => $match[3])).'">#</a>' . '</'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function __parseLinksHTML($match)\n\t{\n\t\t$completeUrl = $match[1] ? $match[0] : \"http://{$match[0]}\";\n\n\t\treturn '<a target=\"_blank\" href=\"' . $completeUrl . '\">'\n\t\t . $match[2] . $match[3] . $match[4] . '</a>';\n\t}", "public function renderTagAnchor($result);", "public function appen...
[ "0.7048786", "0.6548224", "0.6483145", "0.6248656", "0.62374574", "0.61355644", "0.6080457", "0.60681975", "0.5975719", "0.58886385", "0.5886247", "0.5843463", "0.5804454", "0.5783415", "0.5773873", "0.57414365", "0.57133985", "0.5709507", "0.5705729", "0.5649693", "0.5619515...
0.77676207
0
Returns an Identity object based on session_id() getIdentity() returns a base Scenario_Identity object with the identity string provided by session_id(). If the session is not yet started, it will throw an error, as when to start the session should be up to the developer.
Возвращает объект Identity на основе session_id(). Метод getIdentity() возвращает базовый объект Scenario_Identity с идентификатором, предоставленным session_id(). Если сессия еще не начата, будет возбуждено исключение, так как начало сессии должно быть выполнено разработчиком.
public function getIdentity(array $params) { $id = session_id(); if ($id == "") { /** * @see Scenario_Exception */ require_once 'Scenario/Exception.php'; throw new Scenario_Exception('Unable to use session_id() as an identity string, are you...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetSessionIdentity ();", "public function getSessionID();", "public static function getSessionid();", "public function get_session_id()\n {\n }", "protected function _getId ()\n {\n return session_id();\n }", "protected function getSessionId()\n {\n ret...
[ "0.729675", "0.6675893", "0.65923226", "0.6418689", "0.63862914", "0.6324631", "0.63078356", "0.62673134", "0.62353605", "0.62349796", "0.6232178", "0.62279487", "0.62115616", "0.6198297", "0.61880475", "0.6180125", "0.6169896", "0.6162204", "0.6162204", "0.615711", "0.613693...
0.7623249
0
Load all items from the cart
Загрузить все товары из корзины
private function loadItems() { if ($this->items === null) { $this->items = $this->storage->load(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load() {\n if(isset($_SESSION['cart'])) {\n $this->items = $_SESSION['cart'];\n } \n }", "public function loadPreviousItems()\n {\n //first get it out of db.\n if ($orderId = $this->_order->check_cart($this->_auth->id)) {\n $order = $...
[ "0.7864368", "0.70897734", "0.675945", "0.67422634", "0.65406716", "0.6492334", "0.64723665", "0.6472274", "0.6456924", "0.63853735", "0.63778657", "0.63772964", "0.63579094", "0.6341696", "0.63258237", "0.62854457", "0.6269724", "0.61998665", "0.61774546", "0.6154933", "0.61...
0.7335535
1
Creates a new Permission model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый модель разрешения. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $model = new Permission(); if ($model->load(Yii::$app->request->post())) { $this->_saveRecord($model, 'permission_id'); } return $this->render(ACTION_CREATE, [MODEL => $model, 'titleView' => 'Create']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new PermissionForm();\n $post = Yii::$app->request->post();\n unset($this -> menuList[0]);\n if ($model->load($post) && $model->save()) {\n $model->menu_id = $post['PermissionForm']['menu_id'];\n $model->save();\n ...
[ "0.80862355", "0.74901825", "0.74845266", "0.74669313", "0.74579203", "0.74530274", "0.7448191", "0.7389891", "0.7350964", "0.734821", "0.7344983", "0.730681", "0.730681", "0.7271402", "0.7271402", "0.7264901", "0.7261882", "0.72546726", "0.7240605", "0.71993816", "0.71978396...
0.84697866
0
Verifies the disconnected player list can properly be retrieved.
Проверяет, можно ли корректно получить список отключенных игроков.
public function test_list_disconnected_players() { $playerList = $this->postScriptumServer->listDisconnectedPlayers(); $this->assertCount(3, $playerList); foreach ($playerList as $player) { if ($player->getId() === 88) { $this->assertSame(195, $player->getDiscon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_list_disconnected_players()\n {\n $playerList = $this->btwServer->listDisconnectedPlayers();\n\n $this->assertCount(0, $playerList);\n }", "public function test_list_disconnected_players()\n {\n $playerList = $this->btwServer->listDisconnectedPlayers();\n\n ...
[ "0.77570873", "0.76441556", "0.61054873", "0.6088999", "0.60659385", "0.60154957", "0.601074", "0.58628076", "0.58405006", "0.57007873", "0.5678933", "0.56211114", "0.54537207", "0.52979136", "0.52176505", "0.5153377", "0.5098705", "0.50837123", "0.5053778", "0.49932352", "0....
0.7647972
1
Verifies the set next map command does work properly
Проверяет, что команда установки следующего карты работает корректно
public function test_admin_set_next_map() { $this->assertTrue($this->postScriptumServer->adminSetNextMap('Heelsum Single 01')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_next_map()\n {\n $this->assertSame('Driel Single 01', $this->postScriptumServer->nextMap());\n }", "public function test_admin_set_next_map()\n {\n $this->assertTrue($this->btwServer->adminSetNextMap('Al Basrah AAS v1'));\n }", "public function test_admin_set_next...
[ "0.7176545", "0.70906556", "0.7056645", "0.6848051", "0.6822363", "0.66957504", "0.6047744", "0.59268945", "0.58230567", "0.5736064", "0.5708287", "0.5708287", "0.56693184", "0.55760986", "0.55047345", "0.5459054", "0.5459054", "0.54217076", "0.53869563", "0.5307856", "0.5269...
0.72295284
0
Verifies the restart match command does work properly
Проверяет, что команда перезапуска соответствует команде правильно работает
public function test_admin_restart_match() { $this->assertTrue($this->postScriptumServer->adminRestartMatch()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_restart_match()\n {\n $this->assertTrue($this->btwServer->adminRestartMatch());\n }", "public function adminRestartMatch() : bool\n {\n return $this->_consoleCommand('AdminRestartMatch', '', 'Game restarted');\n }", "public function test_admin_restart_match(...
[ "0.73609245", "0.7221903", "0.7208859", "0.6367601", "0.6331943", "0.6096358", "0.5967439", "0.5864611", "0.5577808", "0.55695707", "0.5523084", "0.5491819", "0.54550093", "0.5379564", "0.53795165", "0.5377231", "0.53632176", "0.53461796", "0.52655584", "0.5247932", "0.523564...
0.7437495
0
Verifies the admin set max num players command does work properly
Проверяет, что команда admin set max num players работает корректно
public function test_admin_set_max_num_players() { $this->assertTrue($this->postScriptumServer->adminSetMaxNumPlayers(78)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_set_max_num_players()\n {\n $this->assertTrue($this->btwServer->adminSetMaxNumPlayers(78));\n }", "public function test_admin_set_max_num_players()\n {\n $this->assertTrue($this->btwServer->adminSetMaxNumPlayers(78));\n }", "public function adminSetMaxNumPla...
[ "0.8642783", "0.8642783", "0.70288604", "0.6582735", "0.6343313", "0.6321232", "0.62790173", "0.6207885", "0.6161848", "0.6079425", "0.5897885", "0.5821605", "0.5804494", "0.57887733", "0.5751407", "0.57191855", "0.5702126", "0.56975454", "0.5673302", "0.5585022", "0.5541913"...
0.8645664
0
Verifies the kick command does work properly
Проверяет, что команда kick работает корректно
public function test_admin_kick() { $this->assertTrue($this->postScriptumServer->adminKick('Marcel', 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_kick()\n {\n $this->assertTrue($this->btwServer->adminKick('Marcel', 'Test'));\n }", "public function test_admin_kick_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminKickById(1, 'Test'));\n }", "public function test_admin_kick_by_id()\n {\...
[ "0.6991278", "0.62694955", "0.6166438", "0.569332", "0.5669721", "0.56419355", "0.55808455", "0.55148077", "0.5514137", "0.5499427", "0.54472655", "0.5446986", "0.54001576", "0.5393819", "0.5324072", "0.525964", "0.52108175", "0.520291", "0.51139", "0.5081888", "0.5005252", ...
0.70317525
0
Verifies the kick by id command does work properly
Проверяет, что команда kick by id работает корректно
public function test_admin_kick_by_id() { $this->assertTrue($this->postScriptumServer->adminKickById(1, 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_kick_by_id()\n {\n $this->assertTrue($this->btwServer->adminKickById(1, 'Test'));\n }", "public function adminKickById(int $id, string $reason = '') : bool\n {\n return $this->_consoleCommand('AdminKickById', $id . ' ' . $reason, 'Kicked player ');\n }", "pu...
[ "0.7142423", "0.6444565", "0.59535444", "0.59183806", "0.5911984", "0.59015626", "0.5898159", "0.58456606", "0.56715405", "0.56634456", "0.5462734", "0.5407593", "0.5350294", "0.527448", "0.52650887", "0.5239024", "0.5181409", "0.51670814", "0.5155887", "0.5153842", "0.510887...
0.71932113
0
Verifies the ban by id command does work properly
Проверяет корректность работы команды бан по идентификатору
public function test_admin_ban_by_id() { $this->assertTrue($this->postScriptumServer->adminBanById(1, '1h', 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_ban_by_id()\n {\n $this->assertTrue($this->btwServer->adminBanById(1, '1h', 'Test'));\n }", "public function banORunBan($id)\n {\n try {\n $instance = $this->find($id);\n if ($instance->banned === 0) {\n \\Toastr::warning(tran...
[ "0.7984984", "0.70188737", "0.6972131", "0.68740016", "0.65127015", "0.6477991", "0.6394135", "0.6374035", "0.63722444", "0.6286647", "0.6277863", "0.62589586", "0.624427", "0.6225984", "0.6191506", "0.608635", "0.59782594", "0.59320784", "0.58829206", "0.5880357", "0.5861235...
0.79278874
1
Scope a query that matches a full text search of a term.
Охватить запрос, который соответствует полному текстовому поиску термина.
public function scopeSearch($query, $term) { $columns = implode(',',$this->searchable); $query->whereRaw("MATCH ({$columns}) AGAINST (? IN BOOLEAN MODE)" , $this->fullTextWildcards($term)); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeSearch($query, $term);", "public function scopeMatchingTerm($query, $term)\n {\n if ($term == '')\n return $query;\n else\n return $query->where('name', 'like', '%' . $term . '%')\n ->orWhere('description', 'like', '%' . $term . '%');\n ...
[ "0.808432", "0.7413824", "0.7222598", "0.72054404", "0.7191608", "0.71395236", "0.64251107", "0.6399057", "0.6366055", "0.63552713", "0.62934667", "0.6277461", "0.62724614", "0.62619597", "0.6256577", "0.624123", "0.6213066", "0.62068313", "0.62060946", "0.61942387", "0.61856...
0.7715841
1
Get the user model by principal URI
Получить модель пользователя по URI принципала
private function _getUser($principalUri) { $username = basename($principalUri); return \GO\Base\Model\User::model()->findSingleByAttribute('username', $username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUserModel()\n {\n $config = $this->app->make('config');\n\n if (is_null($guard = $config->get('auth.defaults.guard'))) {\n return null;\n }\n\n if (is_null($provider = $config->get(\"auth.guards.{$guard}.provider\"))) {\n return null;\n ...
[ "0.6329774", "0.6171094", "0.6139268", "0.6118511", "0.60709256", "0.60309404", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.5990263", "0.59812427", "0.59791493", "0.59632057", "0.595907", "0.5937105", "0.59332234", "0.5...
0.7263936
0
Returns a list of calendars for a principal
Возвращает список календарей для принципала
public function getCalendarsForUser($principalUri) { \GO::debug("c:getCalendarsForUser($principalUri)"); if(!isset($this->_cachedCalendars[$principalUri])){ $user = $this->_getUser($principalUri); $findParams = \GO\Base\Db\FindParams::newInstance()->ignoreAcl() ->joinModel(array( 'mod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchAllForCalendarHome(string $principalUri): array;", "public function listCalendars()\n {\n Kronolith::initialize();\n $all_external_calendars = $GLOBALS['calendar_manager']->get(Kronolith::ALL_EXTERNAL_CALENDARS);\n $result = new stdClass;\n $auth_name = $GLOBAL...
[ "0.70131445", "0.6858883", "0.67017037", "0.66978055", "0.65352964", "0.6442766", "0.6253367", "0.61964846", "0.61364025", "0.6092897", "0.599893", "0.5983254", "0.586558", "0.58069414", "0.5733568", "0.5713105", "0.56808126", "0.56793064", "0.5621551", "0.56128055", "0.55851...
0.7077838
0
Returns all calendar objects within a calendar object. Will create the DavEvent record when they do not exist and update them when the mtime differs
Возвращает все объекты календаря внутри объекта календаря. Создаст запись DavEvent, если она не существует, и обновит её, если различается mtime
public function getCalendarObjects($calendarId) { \GO::debug("c:getCalendarObjects($calendarId)"); //weird bug? if(!\GO::user()) { throw new Sabre\DAV\Exception\NotAuthenticated(); } //Get the calendar object and check if the user has delete permission. $calendar = \GO\Calendar\Model\Calendar::model(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCalendarObjects($calendarId) {\n \n $this->mylog(' getCalendarObjects');\n\n $evts = $this->base->events_event_liste ($this->auth->token, $calendarId, NULL, NULL, NULL, NULL, NULL, NULL);\n\n $results = [];\n\n if (count($evts)) {\n\tforeach ($evts as $evt) {\n\t \n\t $calen...
[ "0.6850148", "0.66243887", "0.6605277", "0.60973716", "0.599606", "0.5961908", "0.5959493", "0.5886915", "0.58813703", "0.58649564", "0.5777857", "0.5770414", "0.56889725", "0.5660429", "0.5658748", "0.56363565", "0.56211215", "0.55728775", "0.55705047", "0.5560506", "0.55298...
0.70425195
0
The getChanges method returns all the changes that have happened, since the specified syncToken in the specified calendar. This function should return an array, such as the following: [ 'syncToken' => 'The current synctoken', 'added' => [ 'new.txt', ], 'modified' => [ 'modified.txt', ], 'deleted' => [ 'foo.php.bak', 'o...
Метод getChanges возвращает все изменения, которые произошли с момента последнего указанного syncToken в указанном календаре. Эта функция должна возвращать массив, например, следующий: [ 'syncToken' => 'текущий synctoken', 'added' => [ 'new.txt', ], 'modified' => [ 'modified.txt', ], 'deleted' => [ 'foo.php.bak', 'old....
public function getChangesForCalendar($calendarId, $syncToken, $syncLevel, $limit = null) { \GO::debug("getChangesForCalendar($calendarId,$syncToken)"); // Current synctoken $calendar = GO\Calendar\Model\Calendar::model()->findByPk($calendarId); $currentToken = $calendar->version; if($calendar->tasklist_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChanges();", "public function getChanges();", "public function getChangedEntries();", "public function getChanges()\n {\n $this->conn->initialize();\n $response = $this->conn->getClient()->request(\"/{$this->name}/_changes\");\n\n if (false === $response->isSuccessf...
[ "0.66692466", "0.66692466", "0.6117554", "0.59589154", "0.5900768", "0.5793931", "0.55515593", "0.5520223", "0.5491338", "0.5489072", "0.54851055", "0.543287", "0.5409003", "0.5372565", "0.5359157", "0.5355645", "0.5341408", "0.5274084", "0.5220829", "0.5167407", "0.51571125"...
0.76397246
0
Gets word from DB with sentenceId and wordIndex
Получает слово из БД по sentenceId и wordIndex
public function getWord($sentenceId, $wordIndex){ $query = $this->conn->createQueryBuilder(); $query->select('w.*') ->from('word', 'w') ->where('w.sentenceId = '.$sentenceId) ->andWhere('w.wordIndex = '.$wordIndex) ; $w = $query->execute(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWord($id){\n $stmt = $this->con->prepare(\"SELECT name FROM words WHERE id = ?\");\n $stmt->bind_param(\"i\",$id);\n $stmt->execute();\n $word = $stmt->get_result()->fetch_assoc();\n $stmt->close(); \n return $word['name'];\n }", "public function...
[ "0.6754498", "0.6531486", "0.6379945", "0.6379895", "0.62475497", "0.6008331", "0.57935303", "0.5738375", "0.57151735", "0.5705406", "0.56879294", "0.56734633", "0.56500775", "0.5636636", "0.5630476", "0.5612837", "0.5600672", "0.5571276", "0.5543773", "0.5537048", "0.5535245...
0.80146056
0
Matches a search word in the wordlist Creates a list of matches that is used by OpenIE to find relations
Совпадает с поисковым словом в списке слов Создает список совпадений, используемый OpenIE для поиска отношений
public function matchSearchTerm($searchTerm, $wordList){ $matches = array(); foreach($wordList as $type => $nodes){ foreach($nodes as $node){ if($node['value'] == $searchTerm){ $matches[$node['openieId']] = $type; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function matching_words($query_words_list, $protein_subject_words_list) {\n $index = 0;\n $query_size = count($query_words_list);\n $matching_words_indices = array();\n\n // go through the whole query words list\n while ($index < $query_size) {\n // key — Fetch a key from an array\n $q...
[ "0.6542435", "0.6202444", "0.61278224", "0.60425925", "0.6024874", "0.6019819", "0.60154897", "0.6004835", "0.59040576", "0.58794105", "0.587241", "0.5844331", "0.58227473", "0.5818288", "0.5773552", "0.57596505", "0.57596505", "0.57431686", "0.5720849", "0.56956834", "0.5660...
0.7194467
0
Generate many users automatically
Генерировать множество пользователей автоматически
function generateUsers() { global $connect; for($i=0;$i<25;$i++){ $sql = 'INSERT INTO USER(ID,FIRSTNAME,LASTNAME,CITY,ADDRESS,POSTALCODE,COUNTRY,EMAIL,PASSWORD,BIRTH) VALUES(NULL,:firstname,:lastname,:city,:address,:postalcode,:country,:email,:password,:birth)'; $req = $connect->prepare($sql); $req->execute(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate()\n {\n $this->createUsersEntity();\n }", "public function run()\n {\n for ($i = 0; $i < 100; $i++) {\n \\App\\Users::create(\n [\n 'user_login' => 'randuser' . $i,\n ]\n );\n }\n }", ...
[ "0.7765107", "0.73565406", "0.73421544", "0.7247794", "0.72263837", "0.7126828", "0.7126134", "0.71033555", "0.7051161", "0.70499974", "0.7024163", "0.7023744", "0.70157665", "0.70096755", "0.6997771", "0.6948282", "0.6946799", "0.6940183", "0.6940076", "0.6939349", "0.693163...
0.74618286
1
Retrieve the mimeType for a given pid and dsid.
Получить mimeType для заданного pid и dsid.
public function getMimeType($pid, $dsid) { // Query for mime type. $stream = Zend_Registry::get('gateway')->query( "{$this->url}/objects/$pid/datastreams?format=xml", "//*[local-name() = 'datastream'][@dsid='" . $dsid . "']" ); return $stream->item(0)->getAt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMimetypeById($id) {\n\t\tif (!$this->mimetypes) {\n\t\t\t$this->loadMimetypes();\n\t\t}\n\t\tif (isset($this->mimetypes[$id])) {\n\t\t\treturn $this->mimetypes[$id];\n\t\t}\n\t\treturn null;\n\t}", "public static function fetchMime($id)\n {\n $file = static::data($id);\n $file...
[ "0.6449824", "0.6321696", "0.6191946", "0.6171012", "0.6101198", "0.6045775", "0.6017324", "0.5928317", "0.5853361", "0.5836331", "0.5836331", "0.5836331", "0.5836331", "0.5836331", "0.5816346", "0.57314503", "0.57314503", "0.57314503", "0.57314503", "0.5700815", "0.5695331",...
0.83234537
0
Find Area By name
Найти площадь по имени
public function find_by_name($name) { $this->db->where('area_name',$name); $q=$this->db->get($this->table_name); //$q=$this->db->query("SELECT GetAreaIdByName('{$name}') as id LIMIT 1"); return $q->row(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAreaByName($name) {\n\t\t$db = Flight::db(false);\n\t\t$response = new stdClass();\n\t\t$req = $db->query(\"select MAX(idArea) as idArea from area where nameArea like '$name'\");\n\t\tif ($result = $req->fetchAll(PDO::FETCH_OBJ)) {\n\t\t\t$response->count = 1;\n\t\t\t$response->result = $...
[ "0.7308833", "0.65800565", "0.6567851", "0.64259386", "0.6338269", "0.62128526", "0.6041777", "0.5957886", "0.5822349", "0.5751498", "0.5748758", "0.57384574", "0.56934506", "0.5675208", "0.5668515", "0.56389594", "0.5618905", "0.55988896", "0.55467045", "0.55121773", "0.5493...
0.72456974
1
Set a value. If the value is such that it cannot be stored directly in the database for example an object, then it is stored in $this>metaCache. Only when the object is saved, then $this>row is updated. This function expects objects, unix timestamps and scalars as values.
Установите значение. Если значение не может быть сохранено напрямую в базу данных, например, объект, то оно сохраняется в $this>metaCache. Только при сохранении объекта $this>row обновляется. Эта функция ожидает значения в виде объектов, unix-времени и скаляров.
public function set($name, $value) { $spec = SERIA_Meta::_getSpec($this); if(!isset($spec['fields'][$name])) throw new SERIA_Exception('No such field '.$name); if(is_object($value)) { $this->metaCache[$name] = $value; } else { if(isset($spec['fields'][$name]['type'])) { $tok...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function set(object $value): CacheItemInterface\n\t{\n\t\tif ($stm = $this->_prepare('INSERT INTO `Cache` (\n\t\t\t\t`key`,\n\t\t\t\t`value`,\n\t\t\t\t`expires`\n\t\t\t) VALUES (:key, :value, :expires)\n\t\t\tON DUPLIATE KEY UPDATE\n\t\t\t\t`value` = :value,\n\t\t\t\t`expires`= COALESCE(:expires, NULL...
[ "0.6863212", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6810166", "0.6770276", "0.6770276", "0.6770223", "0.6770223", "0.6770223", "0.6770223", "0.6770223", "0.6770223", "0.6770223", "0.6770223", "...
0.7231991
0
Print total count of results
Вывести общее количество результатов
function print_count() { $span = '<span class="count">' . number_format($this->result_count) . '</span> result'; if ($this->result_count > 1) { $span .= 's'; } return $span; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalNumberOfResults();", "public function totalCount();", "public function totalCount();", "public function getTotalResults();", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "function print_results() {\r\n if ($list...
[ "0.76372206", "0.75731957", "0.75731957", "0.7538539", "0.7512835", "0.7512835", "0.7512835", "0.71726066", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554", "0.7101554",...
0.76789707
0