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
Get an alias for given translation direction
Получить псевдоним для заданного направления перевода
protected function _getDirectionAlias($direction) { if (!isset($this->_translationAliases[$direction])) { throw new Exception("Unsupported translation direction $direction"); } return $this->_translationAliases[$direction]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAlias($alias);", "public function getAlias();", "public function getAlias();", "public function getAlias();", "public function getAlias();", "public function getAlias()\n {\n return 'lsw_gettext_translation';\n }", "public function getAlias(): string;", "function getAlias()\r\...
[ "0.62927014", "0.60527563", "0.60527563", "0.60527563", "0.60527563", "0.5970789", "0.5938167", "0.59338945", "0.5929773", "0.588593", "0.5862592", "0.58361715", "0.5814745", "0.5798652", "0.5798652", "0.5798652", "0.5798652", "0.5798652", "0.5798652", "0.5798652", "0.5798652...
0.71957207
0
Find the ContratoRescisao that is informed on request (key parameter)
Найдите ContratoRescisao, который указан в запросе (ключевой параметр)
public function getConfiguracaoContratoRescisaoFromRequest() { $codContrato = null; $codEntidade = null; $exercicio = null; $data = $this->getRequest()->get('key'); $data = explode(self::ID_SEPARATOR, $data); $data = array_filter($data); if (3 === count($dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findOneByIdpagocontrarecibo($key, $con = null)\n {\n return $this->findPk($key, $con);\n }", "public function actionLoadContratoRescisao()\n {\n /** @var ContratoRescisaoRepository $repository */\n $repository = $this->getRepository(ContratoRescisao::class);\n ...
[ "0.6224255", "0.59003353", "0.5759329", "0.57521266", "0.5743694", "0.56904435", "0.55450463", "0.5505226", "0.5486736", "0.5470141", "0.54484487", "0.54444915", "0.5443241", "0.54323506", "0.54110545", "0.5404854", "0.53823537", "0.53635335", "0.53608197", "0.5359123", "0.53...
0.7632271
0
/ Handles creating content
Обрабатывает создание контента
function ccontent_create() { lusers_require('content/create'); $post_data = linput_post(); $post_data['time'] = date('Y-m-d', strtotime($post_data['date'])) . ' ' . date('H:i:s', strtotime($post_data['time'])); if (hform_validate(array('name', 'link', 'body'))) { $content_created = mcontent_create($post...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction() : object\n {\n $title = \"Skapa nytt innehåll\";\n\n // Check if not logged in, redirect to login page\n if (!$this->app->session->get('user')) {\n return $this->app->response->redirect(\"content/login\");\n }\n\n if (hasKeyPost(\"doSa...
[ "0.73407996", "0.7067988", "0.69180113", "0.68899196", "0.6853541", "0.6819691", "0.67385286", "0.67256165", "0.6725061", "0.6697067", "0.66924524", "0.66761", "0.66516757", "0.66514444", "0.6633802", "0.6572128", "0.6555266", "0.6534698", "0.6516016", "0.650716", "0.6501603"...
0.77365446
0
Add item to array by specified index
Добавить элемент в массив по указанному индексу
public function add($item, int $index): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add(array &$array, $value, $index = 0)\n{\n global $size;\n\n $inputSize = count($array);\n\n if ($inputSize >= $size) {\n resize($array);\n }\n\n $array[$index] = $value;\n\n return ++$index;\n}", "public function addItem(array $item, ?int $idx = null)\n {\n if ($idx ...
[ "0.70679563", "0.69577545", "0.64538866", "0.64179397", "0.63648134", "0.6289984", "0.61484724", "0.6115474", "0.60724324", "0.6069989", "0.595698", "0.5953627", "0.59424764", "0.59116846", "0.58946323", "0.58946323", "0.5817835", "0.57836205", "0.57411295", "0.57321256", "0....
0.7568227
0
echo 'now: '.$now>format('Y/m/d H:i:s').''; when game is done go through $players and group them in winning and losing teams find out which one corresponds to $json['teams'] and update them
echo 'now: '.$now>format('Y/m/d H:i:s').''; когда игра завершена, пройдите по $players и сгруппируйте их в победные и проигравшие команды, определите, какая из них соответствует $json['teams'] и обновите их
function updateTeams($players, $json) { unset($teams); $teams = array( 'won' => array(), 'lost' => array() ); foreach ($players as $player) { if ($player['state'] == 'Won') { array_push($teams['won'], $player['id']); } else { array_push($teams['lost'], $player['id']); } } //updateWinnerTeam($teams['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkNamesUpdates($gamejson, $json_teams) {\n\tforeach ($gamejson['players'] as $player) {\n\t\tforeach ($json_teams as &$team) {\n\t\t\tforeach ($team['players'] as &$thisplayer) {\n\t\t\t\t//echo 'comparing '.$thisplayer['name'].' to '.$player['name'].'<br>';\n\t\t\t\tif (($player['id'] == $thisplayer['...
[ "0.708525", "0.6918165", "0.68459415", "0.63336843", "0.6219135", "0.6131833", "0.6117418", "0.60799164", "0.6073109", "0.60169744", "0.5991577", "0.5962018", "0.59329", "0.5932797", "0.58588266", "0.5847978", "0.5832307", "0.5787989", "0.5778283", "0.57124", "0.5688228", "...
0.79477865
0
check names of players on a game see if their name in the json players list needs an update the system allows the users to change their names every few weeks checking for updates on all using validatetokenapi would become costly this way of checking on active games is gentler on the server
Проверьте имена игроков в игре, убедитесь, что их имя в списке игроков json нуждается в обновлении. Система позволяет пользователям изменять свои имена каждые несколько недель. Проверка обновлений для всех с использованием validateTokenApi станет дорогостоящей. Таким образом, проверка активных игр менее нагрузочна для ...
function checkNamesUpdates($gamejson, $json_teams) { foreach ($gamejson['players'] as $player) { foreach ($json_teams as &$team) { foreach ($team['players'] as &$thisplayer) { //echo 'comparing '.$thisplayer['name'].' to '.$player['name'].'<br>'; if (($player['id'] == $thisplayer['token']) && ($player['na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_player($name) {\n $urlbase64 = array('+' => '-', '/' => '_', '=' => '');\n $data = array();\n $data['ident'] = $this->config['BF3APIIdent'];\n $data['time'] = time();\n $data['player'] = $name;\n $data = strtr(base64_encode(json_encode($data)), $urlb...
[ "0.6336474", "0.62682176", "0.60104024", "0.582989", "0.57613456", "0.5677831", "0.5657246", "0.5616155", "0.5531327", "0.5499279", "0.5491784", "0.5466665", "0.54575056", "0.54376477", "0.54049826", "0.53610474", "0.53552747", "0.53430796", "0.5302835", "0.5247247", "0.52336...
0.7497677
0
isEnum retourne vrai si la relation est enum
isEnum возвращает true, если отношение является enum
final public function isEnum():bool { return $this->mode === 'enum'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEnumType()\n {\n return $this->getType() == PropelTypes::ENUM;\n }", "public function testEnumField()\n {\n $field = $this->table->getField('yeahnay'); // An enum column\n $this->assertInstanceOf('Metrol\\DBTable\\Field\\PostgreSQL\\Enumerated',\n ...
[ "0.74469995", "0.6806217", "0.67597944", "0.67544144", "0.64804", "0.62170595", "0.61727035", "0.61234754", "0.59866035", "0.59627914", "0.59458244", "0.58471674", "0.5781682", "0.567248", "0.5665234", "0.5579896", "0.5579144", "0.5557559", "0.5544177", "0.5542606", "0.545534...
0.77459705
0
searchMinLength retourne la longueur minimale de la recherche
searchMinLength возвращает минимальную длину поиска
final public function searchMinLength():int { return $this->col()->searchMinLength(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSearchMinimumLength()\n\t\t{\n\t\t\treturn $this->_search_min_length;\n\t\t}", "function testMinlen(){\n\t\t#mdx:minlen\n\t\tParam::get('description')->filters()->minlen(10, \"Description must be at least %d characters long!\");\n\n\t\t$error = Param::get('description')->process(['description'...
[ "0.75173384", "0.6449355", "0.62790763", "0.62365735", "0.60223", "0.6011815", "0.5979493", "0.5972049", "0.59177744", "0.5902586", "0.5897095", "0.58726066", "0.5857275", "0.5824986", "0.5778852", "0.57223797", "0.5715221", "0.57041854", "0.56818944", "0.56806797", "0.564670...
0.75567484
0
isRelationTable retourne vrai si le type de relation est table
isRelationTable возвращает истину, если тип отношения — таблица
final public function isRelationTable():bool { return $this->isType('table'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isRelationTable($table)\n\t{\n\t\t$pk=$table->primaryKey;\n\t\treturn (count($pk) === 2 // we want 2 columns\n\t\t\t&& isset($table->foreignKeys[$pk[0]]) // pk column 1 is also a foreign key\n\t\t\t&& isset($table->foreignKeys[$pk[1]]) // pk column 2 is also a foriegn key\n\t\t\t&& $table->forei...
[ "0.7740442", "0.75586855", "0.672551", "0.6718213", "0.6695743", "0.65345997", "0.6464603", "0.62197894", "0.6188172", "0.61541706", "0.6152013", "0.6040243", "0.6024436", "0.5883671", "0.5883671", "0.5883671", "0.5883671", "0.5883671", "0.5883671", "0.5862426", "0.5814623", ...
0.8816972
0
Is ssl host check enabled?
Включен ли проверка хоста SSL?
public function isSslHostCheckEnabled(): bool { return $this->sslHostCheckEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enableSslHostCheck()\n {\n $this->sslHostCheckEnabled = true;\n }", "public function isSsl();", "function is_ssl()\n {\n }", "static public function checkSSL() {\n\t\treturn ($_SERVER['SERVER_PORT'] == self::ssl_port);\n\t}", "protected function isSSLEnabled()\n {\n ...
[ "0.809156", "0.78305674", "0.7813119", "0.7655382", "0.75284106", "0.75029624", "0.74152154", "0.7313308", "0.72781944", "0.7267427", "0.72480476", "0.72462463", "0.7214264", "0.7202661", "0.71738297", "0.7133466", "0.7127471", "0.71211034", "0.7100116", "0.7093938", "0.70850...
0.87034225
0
Disable ssl host check
Отключить проверку хоста ssl
public function disableSslHostCheck() { $this->sslHostCheckEnabled = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enableSslHostCheck()\n {\n $this->sslHostCheckEnabled = true;\n }", "public function disableSSLChecks() {}", "public function forceSSL();", "public function forceSSL();", "public function enableSSLChecks() {}", "function ds_https_verify()\r\n{\r\n\tadd_filter( 'https_ssl_veri...
[ "0.79544413", "0.7916414", "0.7165428", "0.7165428", "0.71166295", "0.7070175", "0.69311273", "0.68144375", "0.67084247", "0.6702887", "0.66570354", "0.6543485", "0.64833194", "0.64569664", "0.64511716", "0.6348992", "0.6332717", "0.6304851", "0.6292677", "0.6291788", "0.6185...
0.8943765
0
Enable ssl host check
Включить проверку хоста ssl
public function enableSslHostCheck() { $this->sslHostCheckEnabled = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disableSslHostCheck()\n {\n $this->sslHostCheckEnabled = false;\n }", "public function enableSSLChecks() {}", "public function isSslHostCheckEnabled(): bool\n {\n return $this->sslHostCheckEnabled;\n }", "public function checkSslBackendAndRedirectIfNeeded() {}", "p...
[ "0.82252306", "0.78801143", "0.780191", "0.7191356", "0.71248364", "0.6953787", "0.6953787", "0.6804713", "0.676093", "0.66857505", "0.66372925", "0.6617696", "0.661568", "0.6502202", "0.64972806", "0.6485816", "0.6432949", "0.64283174", "0.64183867", "0.63993084", "0.6363634...
0.8961259
0
Creates a form to delete a profile entity.
Создает форму для удаления сущности профиля.
private function createDeleteForm(Profile $profile, Resume $resume): \Symfony\Component\Form\Form { return $this->createFormBuilder() ->setAction($this->generateUrl('profile_delete', [ 'id' => $profile->getId(), 'res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteProfile($user, $type, $id) {\n return $this->entityFormBuilder()->getForm(Profile::load($id), 'delete');\n }", "public function deleteAction()\n {\n $request = $this->getRequest(); /* @var $request Zend_Controller_Request_Http */\n $profileRepoFactory = new A...
[ "0.72520554", "0.70373434", "0.6696654", "0.66770524", "0.6490679", "0.64373404", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.6408741", "0.63995224", "0.6361116", "0.63038146", "0.6303662", "0.6239231...
0.7587982
0
Attaches the external plugin integration daos to the post generating process, For example:
Присоединяет внешний плагин интеграции daos к процессу генерации поста, Например:
private function attach_external_plugin_integration() { $daos = ShoutemStandardDaoFactory :: instance()->get_external_plugin_integration_daos(); foreach ($daos as $dao) { $dao->attach_to_hooks(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function hooks() {\n\t\t\t// check for EDD when plugin is activated\n\t\t\tadd_action( 'admin_init', array( $this, 'activation' ), 1 );\n\t\t\t\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// settings link on plugin page\n\t\t\tadd_filter( '...
[ "0.5904829", "0.5864157", "0.5863337", "0.58620703", "0.58575934", "0.5803403", "0.5799202", "0.578801", "0.57016504", "0.5657121", "0.5612753", "0.5581795", "0.55367625", "0.55312574", "0.5528379", "0.55085254", "0.54632044", "0.5453301", "0.54494005", "0.5440996", "0.539260...
0.7328982
0
Discussions module on_quick_add event handler
Модуль обсуждений обработчик события on_quick_add
function discussions_handle_on_quick_add(&$quick_add_urls) { $quick_add_urls['discussion'] = assemble_url('project_discussions_quick_add', array('project_id' => '-PROJECT-ID-')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function options_discussion_add_js()\n {\n }", "function _add_help( $data=array() )\n\t{\n\t\t$help = array();\n\t\t\n\t\t$help['title'] = $data['title']['VALUE'];\n\t\t$help['text'] = $data['text']['VALUE'];\n\t\t$help['description'] = $data['description']['VALUE'];\n\t\t$help['position'] ...
[ "0.62329876", "0.5810963", "0.57619786", "0.5664878", "0.5656524", "0.55528843", "0.55246705", "0.5511356", "0.5497968", "0.5486111", "0.5421646", "0.537634", "0.537062", "0.5349164", "0.5337845", "0.53325", "0.53316075", "0.5304636", "0.52939844", "0.52877843", "0.52726364",...
0.7450207
0
Add the nonces to the JavaScript.
Добавьте нонсы в JavaScript.
public function add_js_nonces( $js_nonces ) { $js_nonces['tools'][ $this->tool_key ] = $this->create_tool_nonces( array( 'start', 'purge' ) ); return $js_nonces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function addAjaxNoceJs() {\n\t\t// self::pw('config')->scripts->append(self::getFileHasher()->getHashUrl('scripts/ajax-noce-modal.js'));\n\t}", "public function disableConcatenateJavascript() {}", "protected function doConcatenateJavaScript() {}", "protected function generateJavascript() {}", ...
[ "0.6211042", "0.6185595", "0.6026698", "0.6014239", "0.6013358", "0.590854", "0.58644295", "0.582533", "0.57985914", "0.5785253", "0.57614285", "0.57612705", "0.5709529", "0.56909925", "0.5677261", "0.56607217", "0.5655319", "0.564911", "0.56491035", "0.56329465", "0.5625079"...
0.73017496
0
Get queued status text.
Получить текст статуса о очереди.
public function get_queued_status() { return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusText()\r\n {\r\n return $this->status_text;\r\n }", "protected function _getSyncStatusText()\n {\n if ($this->_getSchedule()->getLastRunningJob()) {\n $html = 'Running';\n if (strlen($this->_getSchedule()->getLastRunningJob()->getExecutedAt())...
[ "0.73107356", "0.69674695", "0.69418675", "0.6941667", "0.69267774", "0.69116133", "0.690648", "0.68942404", "0.68378717", "0.67558867", "0.66844547", "0.6663658", "0.6616844", "0.6602954", "0.65812325", "0.6577775", "0.657652", "0.65496033", "0.6526245", "0.6509522", "0.6494...
0.78211254
0
Returns text to be displayed in Next Scan block.
Возвращает текст, который будет отображаться в блоке следующего сканирования.
private function get_next_scan_text() { if ( ! $this->as3cf->is_plugin_enabled() ) { return ''; } $next_scan_time = $this->as3cf->get_next_scan_time(); $next_scan = empty( $next_scan_time ) ? '' : esc_html__( 'Next scan:', 'as3cf-assets' ) . date( ' M d, Y @ H:i', $next_scan_time ); return $next_sca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNextText()\n {\n return _t(__CLASS__ . '.NEXT', 'Next');\n }", "function ts_get_next_slider_text()\r\n{\r\n\treturn SLIDER_NEXT_TEXT;\r\n}", "public function getText(): string\n {\n return $this->before.$this->text.$this->after;\n }", "public function next(): stri...
[ "0.7051207", "0.60140336", "0.60085136", "0.58740175", "0.5857873", "0.5684931", "0.5681526", "0.5602955", "0.5576297", "0.55563307", "0.5552638", "0.5544837", "0.55351824", "0.5520863", "0.5509315", "0.5503674", "0.54986775", "0.548598", "0.5477392", "0.5459246", "0.5436115"...
0.7643682
0
Get background process class.
Получить класс фонового процесса.
protected function get_background_process_class() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProcess()\n {\n return $this->get(self::PROCESS);\n }", "public function getProcess();", "public function getProcess()\n {\n return $this->process;\n }", "public function getProcess() {\n return $this->process;\n }", "public function getProcess() {\n ...
[ "0.6451762", "0.615897", "0.61183345", "0.60859025", "0.60859025", "0.59433347", "0.5809969", "0.5809277", "0.5713228", "0.56743735", "0.567037", "0.56601113", "0.56355727", "0.56221575", "0.5575491", "0.55676067", "0.5560555", "0.5560555", "0.5560555", "0.5560555", "0.556055...
0.8801267
0
Calculate order gross price
Рассчитать общий цену заказа
public function calculateOrderGrossPrice(Order $order): float { $price = 0; /** @var ProductInterface $product */ foreach ($order->getItems() as $product) { $price += $this->calculateProductPrice->calculateProductPrice($product); } return $price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGrossPrice()\n {\n return $this->getPrice(false);\n }", "public function getGrossPrice()\n {\n return (float) $this->getTotal();\n }", "public function getGrossPrice()\n {\n return $this->calculateGrossPrice($this->getPrice());\n }", "public function ...
[ "0.7726325", "0.75993127", "0.7564146", "0.75204873", "0.72878397", "0.6987609", "0.67609566", "0.6616196", "0.6614428", "0.656961", "0.6559597", "0.6503748", "0.6470534", "0.6461813", "0.634561", "0.63383615", "0.63354105", "0.63354105", "0.6335039", "0.6323132", "0.6313227"...
0.7723041
1
Sets the composer filename. "composer.json" by default.
Устанавливает имя файла композера. По умолчанию "composer.json".
public function setComposerFilename($name) { $this->composerFilename = $name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_composer_json() {\n\t\treturn new JsonFile( $this->get_composer_json_path() );\n\t}", "protected function patchComposerJson()\n {\n if ( ! $this->fileExists('composer.json')) {\n $this->write('Failed to locate composer.json in local directory', 'error');\n\n r...
[ "0.62771076", "0.6178341", "0.6172446", "0.6063324", "0.6002563", "0.58658874", "0.58205277", "0.57380354", "0.5725501", "0.57254475", "0.5654487", "0.5646915", "0.5646915", "0.56458366", "0.56458366", "0.5620795", "0.55939937", "0.55916184", "0.5556143", "0.5542747", "0.5530...
0.75479627
0
Checks if the class implements the PluginInterface.
Проверяет, реализует ли класс интерфейс PluginInterface.
protected function hasImplementedPluginInterface($name) { $result = false; if (class_exists($name)) { $implements = class_implements($name); if (isset($implements['Yosymfony\\Spress\\Core\\Plugin\\PluginInterface'])) { $result = true; } }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function is_plugin();", "protected static function check_interface( $class ) {\n\n\t\tif ( ! class_exists( $class ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$interfaces = class_implements( $class, false );\n\n\t\tif ( in_array( 'ht_dms\\api\\internal\\actions\\action_interface', $interfaces ) ) {\n\t\t\treturn ...
[ "0.75175756", "0.6567491", "0.6457324", "0.6427957", "0.64217156", "0.6322859", "0.63053", "0.6303267", "0.62326664", "0.62288517", "0.62097406", "0.6129532", "0.61221963", "0.611289", "0.6097621", "0.6052736", "0.6037906", "0.59057486", "0.58873063", "0.5858857", "0.5858246"...
0.7077632
1
Reads a "composer.json" file.
Читает файл "composer.json".
protected function readComposerFile(SplFileInfo $file) { $json = $file->getContents(); $data = json_decode($json, true); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_composer_json() {\n\t\treturn new JsonFile( $this->get_composer_json_path() );\n\t}", "public static function composer() {\n\t\tif (is_null(static::$composer)) {\n\t\t\t$path = static::root('composer.json');\n\t\t\tstatic::$composer = json_decode(file_get_contents($path));\n\t\t}\n\n\t\tretu...
[ "0.69763285", "0.6707332", "0.6518872", "0.6175717", "0.6138728", "0.61274076", "0.6048044", "0.59656066", "0.5952727", "0.59034556", "0.5876861", "0.5857348", "0.5852895", "0.56897604", "0.56762296", "0.56744015", "0.5660998", "0.5624778", "0.5559245", "0.55406755", "0.55177...
0.7114205
0
Gets the attribute resolver.
Получает разрешитель атрибутов.
protected function getResolver() { $resolver = new AttributesResolver(); $resolver->setDefault('name', '', 'string') ->setDefault('description', '', 'string') ->setDefault('author', '', 'string') ->setDefault('license', '', 'string'); return $resolver; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConfigResolver()\n {\n if (is_null($this->configResolver) === false) {\n return $this->configResolver;\n }\n\n $resolver = new AttributesResolver();\n $resolver->setDefault('host', '0.0.0.0', 'string', true)\n ->setDefault('port', 4000, 'in...
[ "0.668547", "0.65846014", "0.64471084", "0.6335554", "0.6335554", "0.63253224", "0.6158075", "0.5798115", "0.5798115", "0.566648", "0.56617177", "0.55324006", "0.5516427", "0.5410485", "0.5354313", "0.52767533", "0.5237235", "0.51937217", "0.5099694", "0.5089646", "0.507701",...
0.7525276
0
Returns a Finder set up for finding both composer.json and php files.
Возвращает Finder, настроенный для поиска как composer.json, так и файлов php.
protected function buildFinder() { $finder = new Finder(); $finder->files() ->name('/(\.php|composer\.json)$/') ->in($this->path) ->exclude($this->excludeDirs); return $finder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getComposerFiles () : array\n {\n $file = new Filesystem();\n\n return $file->glob (base_path ('packages') . '/*/*/composer.json');\n }", "public function finder()\n {\n $finder = new Finder();\n\n $base_path = get_input('path');\n $example = \"http:...
[ "0.65128064", "0.6356328", "0.5951234", "0.59196043", "0.59196043", "0.5905797", "0.5904669", "0.5856826", "0.5848515", "0.5848515", "0.5847978", "0.58396107", "0.5794376", "0.57371885", "0.57240796", "0.5700166", "0.5690461", "0.56280404", "0.55888164", "0.5479629", "0.54514...
0.733536
0
Model Relations get course section
Model Relations get course section
public function course_section () { return $this->belongsTo('App\CourseSection', 'course_section_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function section()\n {\n return $this->belongsTo('App\\Models\\CourseSection');\n }", "public function course() {\n\t\treturn $this->belongsToMany('Course')->where(\"course_role\", 1)->first();\n\t}", "public function getCourses()\n {\n return $this->hasMany(Section::className(), ...
[ "0.7709867", "0.7370466", "0.7063565", "0.70218337", "0.7012293", "0.69733036", "0.69650656", "0.69631344", "0.6911253", "0.691031", "0.6907753", "0.68742406", "0.68742406", "0.68742406", "0.6852214", "0.6795665", "0.67757845", "0.67313594", "0.6720531", "0.6682019", "0.66500...
0.7582523
1
Construct list of update files for the outdated components
Создать список файлов обновления для устаревших компонентов
private function loadComponentsWithUpdateFile() { $componentsWithUpdateFile = array(); foreach ($this->componentsWithNewVersion as $name => $versions) { $currentVersion = $versions[self::INDEX_CURRENT_VERSION]; $newVersion = $versions[self::INDEX_NEW_VERSION]; i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAvailableUpdates()\n\t{\n\t\t$updateArray = array();\n\t\t$updateFiles = get_dir_contents (INCLUDE_FILES . '/updates');\n\n\t\tforeach ($updateFiles as $file)\n\t\t{\n\t\t\t$updateVersion = substr($file, -8, -4);\n\t\t\t// .. and where the version indicator is greater than the current ph versio...
[ "0.69794965", "0.6938474", "0.6584261", "0.6276361", "0.61769056", "0.6030878", "0.60208243", "0.5976363", "0.5916868", "0.5869621", "0.5862408", "0.5821809", "0.57902473", "0.57358474", "0.5732978", "0.569066", "0.568195", "0.55737054", "0.5545393", "0.5539431", "0.55266047"...
0.7810581
0
returns the klout rank of a user
возвращает ранг klout пользователя
public function getKloutRank() { if ($this->getCommunity()->getName() == "twitter") { $profile = str_replace("http://twitter.com/", "", $this->getProfileUri()); $result = UrlUtils::sendGetRequest("http://api.klout.com/1/klout.json?key=n7mb4vu5ka7um88remypp2bw&users=".$profile); if ($kloutobj = js...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRank($userid);", "public function userRanked($user);", "public function getRank();", "function getUserRank($id = null)\n\t{\n\t $uid = ($id == null) ? $_SESSION['uid'] : $id;\n\t $users = $this->getUsersByRank(); //Get list of users associated by their points\n\t for($i = 0; $i < ...
[ "0.7724708", "0.76154274", "0.73502505", "0.73025924", "0.71476257", "0.6985126", "0.69556063", "0.6913268", "0.6898573", "0.6858", "0.6858", "0.6858", "0.6858", "0.6858", "0.68576264", "0.680587", "0.680587", "0.680587", "0.68047386", "0.6767865", "0.67125875", "0.67121744...
0.7912486
0
Define Learnpress Pay.ir payment constants.
Определить константы оплаты Learnpress Pay.ir.
protected function _define_constants() { define( 'LP_ADDON_PAYIR_PAYMENT_PATH', dirname( LP_ADDON_PAYIR_PAYMENT_FILE ) ); define( 'LP_ADDON_PAYIR_PAYMENT_INC', LP_ADDON_PAYIR_PAYMENT_PATH . '/inc/' ); define( 'LP_ADDON_PAYIR_PAYMENT_URL', plugin_dir_url( LP_ADDON_PAYIR_PAYMENT_FILE ) ); define( 'LP_ADDO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _define_constants() {\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_PATH', dirname( LP_ADDON_STRIPE_ADVANCED_PAYMENT_FILE ) );\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_INC', LP_ADDON_STRIPE_ADVANCED_PAYMENT_PATH . '/inc/' );\n\t\t\tdefine( 'LP_ADDON_STRIPE_ADVANCED_PAYMENT_URL', plugi...
[ "0.7219783", "0.62955415", "0.6152063", "0.60547197", "0.60200816", "0.59295577", "0.5850407", "0.5822037", "0.58177495", "0.57846564", "0.5736412", "0.5731439", "0.56567657", "0.56440663", "0.563271", "0.5593315", "0.5572867", "0.5551111", "0.5528653", "0.5527069", "0.548712...
0.75618273
0
setHorarioDeVerao A funcao possui um if ternario para saber se eh horario de verao mas nao eh dinamico precisa ser alterado para cada ano. O Horario de verao inicia no terceiro domingo de outubro e vai ate o terceiro domingo do ano seguinte. ( Se este domingo coincidir com o carnaval o fim do horario de verao vai para ...
setHorarioDeVerao Функция содержит тернарный if для определения, является ли текущее время часом летнего времени, но она не динамична и должна быть изменена для каждого года. Часовой пояс летнего времени начинается в третий воскресенье октября и продолжается до третьего воскресенья следующего года. (Если это воскресень...
private static function setHorarioDeVerao() { $dataJunta = self::getAnoAtual() . self::getMesAtual() . self::getDiaAtual(); //self::$horario_de_verao = ($dataJunta > '20121021' && $dataJunta < '20130217' ) ? true : false; self::$horario_de_verao = (date('I') == "1") ? true : false; retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ponerHorasTaller(){\n // y precios 15 1h, 21, 1.5h, 31 2h.\n $sql=\"SELECT id,precio_trimestre FROM casal_talleres WHERE id_curso=4 AND tipo_taller='Professional'\";\n $result=$this->db->query($sql)->result();\n foreach($result as $k=>$v){\n $horasSesion=0;\n ...
[ "0.6599573", "0.6309206", "0.62540925", "0.62068444", "0.6008114", "0.59754986", "0.59349394", "0.5915686", "0.5884904", "0.5858733", "0.57538265", "0.57404387", "0.5719058", "0.5658033", "0.562477", "0.56216305", "0.5603034", "0.5600502", "0.55651", "0.55465204", "0.5531599"...
0.7865379
0
Metodos de Calculo executaCalculo
Методы вычисления executaCalculo
public static function executaCalculo(){ self::set(date("d/m/Y H:i:s", mktime(self::getHora(), self::getMinuto(), self::getSegundo(), self::getMes(), self::getDia(), self::getAno()))); return self::getDataEHoraCompleta('BR'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function establecer_m2_reservas_concretadas() {\n// inner join lote on (res_lot_id=lot_id)\n// inner join zona on (lot_zon_id=zon_id)\n// where res_promotor like 'NET%'\");\n// $reservas = FUNCIONES::lista_bd_sql(\"select res_id,zon_precio from reserva_terreno\n// inner join lote on ...
[ "0.6509263", "0.6344286", "0.6299828", "0.6230207", "0.6198475", "0.6191138", "0.61422944", "0.6094303", "0.60511667", "0.60083723", "0.6002257", "0.5991683", "0.5990403", "0.59824795", "0.5974873", "0.5972111", "0.59563214", "0.59195143", "0.5906489", "0.5906201", "0.58984",...
0.7484933
0
Check whether an address of a give type exists within the given list.
Проверьте, существует ли адрес заданного типа в заданном списке.
public function exists($address, $list, $type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exists($address, $list, $type)\n {\n $range = Range::parse($address);\n\n return $this->getQuery()\n ->where('type', '=', $type)\n ->where('list', '=', $list)\n ->where('range_start', '<=', $range->getFirstIp()->long)\n ->where('range_end...
[ "0.8228765", "0.6297772", "0.6161127", "0.60697", "0.60207576", "0.5983673", "0.5941344", "0.58662796", "0.581865", "0.581098", "0.57753754", "0.57584316", "0.574257", "0.5738788", "0.56814873", "0.5681343", "0.56106466", "0.56101525", "0.55421925", "0.552463", "0.5509344", ...
0.8988454
0
Get all of the entries of a given type within a given list.
Получить все элементы заданного типа из заданного списка.
public function all($list, $type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function all($list, $type)\n {\n return $this->getQuery()\n ->where('type', '=', $type)\n ->where('list', '=', $list)\n ->get()\n ->map(function ($item) {\n return $item->label;\n })->toArray();\n }", "public function getAl...
[ "0.779419", "0.6664333", "0.6412447", "0.6368458", "0.63018286", "0.61864865", "0.6080269", "0.6007344", "0.60003465", "0.599751", "0.59265584", "0.58359784", "0.5822067", "0.57777464", "0.5724244", "0.5700707", "0.5692467", "0.56567675", "0.5656578", "0.56447536", "0.5617721...
0.7795739
0
Creates a new Solar_Php instance with some default settings.
Создаёт новый экземпляр Solar_Php с некоторыми настройками по умолчанию.
protected function _newPhp() { $php = Solar::factory('Solar_Php'); $php->setEcho($this->_verbose) ->setIniVal('include_path', $this->_dir) ->setIniVal('error_reporting', E_ALL | E_STRICT) ->setIniVal('display_errors', true) ->setIniVal('html_errors', f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\n\t\t$solariumClient = new SolariumClient();\n\t\t$this->_solariumClient = $solariumClient->getSolrClient();\n\t}", "public function test__construct()\n {\n $obj = Solar::factory('Solar_Json');\n $this->assertInstance($obj, 'Solar_Json');\n }", "public functio...
[ "0.5783946", "0.55448", "0.5501907", "0.5414606", "0.53642", "0.53351915", "0.53201014", "0.5307424", "0.52835727", "0.5277362", "0.52476215", "0.5197244", "0.51954526", "0.51782537", "0.51642376", "0.5158923", "0.515608", "0.51305103", "0.5107864", "0.509696", "0.5085394", ...
0.7749831
0
Count the number of rules already added.
Посчитайте количество уже добавленных правил.
public function countRules() { return count($this->getRules()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n {\n return count($this->rules);\n }", "public function getValidatorRuleCount()\n {\n return count($this->owner->getValidatorRules());\n }", "public function count(): int\n {\n return count($this->violations);\n }", "public function count() {\n\...
[ "0.8045867", "0.67496276", "0.67457426", "0.6689657", "0.66455674", "0.66223097", "0.66094136", "0.66094136", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.66090596", "0.65770227", ...
0.791595
1
Sets a name for the variable column.
Устанавливает имя для переменной столбца.
public function setVariableColumnName($name) { $this->variable_column_name = $name; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVariableColumnName()\r\n\t{\r\n\t\treturn $this->variable_column_name;\r\n\t}", "function setName($value) {\n\t\treturn $this->setColumnValue('name', $value, Model::COLUMN_TYPE_VARCHAR);\n\t}", "public function setName($var)\n {\n GPBUtil::checkString($var, False);\n $this->...
[ "0.6726923", "0.6550339", "0.6445987", "0.64367855", "0.64274347", "0.64274347", "0.64274347", "0.64274347", "0.64274347", "0.63185644", "0.62895334", "0.622942", "0.61835605", "0.6131865", "0.61197215", "0.6086479", "0.60774153", "0.6073519", "0.6073519", "0.60710996", "0.60...
0.7960918
0
Get array of registered pools.
Получить массив зарегистрированных пулов.
public function getPools() { return $this->pools; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPools()\n\t{\n\t\t$pools = array();\n\t\t$result = '';\n\t\t\n\t\tswitch( $this->db_link->getDriver() )\n\t\t{\n\t\t\tcase 'sqlite':\n\t\t\tcase 'mysql':\n\t\t\t\t$query \t\t= \"SELECT name, numvols, poolid FROM Pool\";\n\t\t\tbreak;\n\t\t\tcase 'pgsql':\n\t\t\t\t$query \t\t= \"SELECT name, num...
[ "0.7435857", "0.6323017", "0.62743014", "0.6233807", "0.6228676", "0.6202111", "0.60278946", "0.6020051", "0.60081923", "0.5992089", "0.5957828", "0.592699", "0.59268403", "0.59228903", "0.5886813", "0.5863673", "0.5838875", "0.5827909", "0.5812698", "0.5803838", "0.57930696"...
0.7679813
0
Initializes all pools registered.
Инициализирует все зарегистрированные пулы.
public function initPools() { foreach (array_keys($this->getPools()) as $key) { $this->initPool($key); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function initialize()\n {\n date_default_timezone_set('Asia/Shanghai');\n PoolManager::getInstance()->register(MysqlPool::class, Config::getInstance()->getConf('MYSQL.POOL_MAX_NUM'));\n PoolManager::getInstance()->register(RedisPool::class, Config::getInstance()->getConf('REDI...
[ "0.74286705", "0.6861976", "0.6382691", "0.63039416", "0.63032824", "0.6191859", "0.6118755", "0.6063863", "0.59947133", "0.5983027", "0.59762317", "0.5945788", "0.59047353", "0.59044915", "0.5878957", "0.5863919", "0.5834438", "0.5815869", "0.58003426", "0.5791146", "0.57627...
0.74842304
0
Gets the next record length in bits
Получает длину следующей записи в битах
protected function nextRecordLength() { list($size, $temp) = ['', '']; while ($temp != "," and $this->hasNext()) { $size .= $temp; $temp = Bin::toStr($this->readBits()); } return intval($size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLength() : int\n {\n return $this->b[$this->offset];\n }", "public function incLen() { return $this->_m_incLen; }", "public function NextReadSize() {\n switch($this->state) {\n case INITIAL:\n case IN_HEADER:\n case ENDOFDATA:\n return 1;\n...
[ "0.6396065", "0.638693", "0.6362006", "0.62343824", "0.62230814", "0.6180562", "0.6113434", "0.6093374", "0.602863", "0.597441", "0.5932218", "0.59156764", "0.590978", "0.5884751", "0.58670866", "0.58657026", "0.5844368", "0.5844368", "0.58419204", "0.5808549", "0.57766324", ...
0.81850386
0
add_action( 'init', 'labdevs_rtcookie_post_type_init' );
add_action( 'init', 'labdevs_rtcookie_post_type_init' );
function labdevs_rtcookie_post_type_init() { $labels = array( 'name' => _x('labdevsrtcookies', 'post type general name', 'your-plugin-textdomain'), 'singular_name' => _x('labdevsrtcookie', 'post type singular name', 'your-plugin-textdomain'), 'menu_name' => _x('labdevsrtcookies', 'admin menu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init() {\n\t\tadd_action( 'init', array( __CLASS__, 'register_post_type' ), 1 );\n\t}", "public static function init () : void\n {\n add_action(\"init\", function () {\n self::register_post_type();\n });\n }", "function __construct(){\n\t\t\tadd_action( 'in...
[ "0.79248536", "0.7823041", "0.7410728", "0.72109485", "0.71970654", "0.71832263", "0.7173762", "0.7164205", "0.70526683", "0.70350695", "0.69642806", "0.6933288", "0.68729305", "0.6794221", "0.67785066", "0.67147994", "0.6713906", "0.6696972", "0.6694412", "0.66544807", "0.66...
0.78683394
1
Changes the path from uploads to uploads/pafdfiles when pafd_alter_upload_dir is true
Изменяет путь с uploads на uploads/pafdfiles, когда pafd_alter_upload_dir истинно
function pafd_filter_upload_dir() { global $pafd_helper, $post; $upload_dir = $pafd_helper[ 'upload_dir' ]; // If pafd_alter_upload_dir is false then don't touch the path if ( ! K::get_var( 'pafd_alter_upload_dir', $pafd_helper ) ) { return $upload_dir; } // Add global and local file suffix $suffix = '/pafd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upload_dir($uploads, $field){\r\n \r\n // vars\r\n $upload_folder = acf_maybe_get($field, 'upload_folder');\r\n \r\n // check setting\r\n if(!$upload_folder){\r\n return $uploads;\r\n }\r\n \r\n // vars\r\n $folder = trim($upload...
[ "0.66126186", "0.6450906", "0.6437449", "0.6433781", "0.6415751", "0.63577616", "0.6321915", "0.62923545", "0.6249763", "0.62444216", "0.6235336", "0.6198342", "0.6171774", "0.61118925", "0.611004", "0.6097389", "0.608547", "0.6077233", "0.60660964", "0.60617197", "0.60586405...
0.7169413
0
Deletes a pa_file post revisions
Удаляет ревизии файла pa_file после опубликования
function pafd_action_delete_revisions( $post_ID ) { global $pafd_helper, $post; /** * Get the uploads basedir, * don't add $post_ID when global $post is not empty */ $pafd_helper[ 'pafd_alter_upload_dir' ] = true; $upload_dir = wp_upload_dir(); if( empty( $post ) ) { $post_upload_basedir = $upload_dir[ '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_delete_post_revision($revision)\n {\n }", "public function delete($args)\n\t\t{\n\t\t\t$this->set_file($args['id']);\n\n\t\t\tif($this->files_count > 0)\n\t\t\t{\n\t\t\t\t// Delete the slug\n\t\t\t\t$this->slug_delete($args['id']);\n\n\t\t\t\t// Save config file post.xml\n\t\t\t\t$this->savetof...
[ "0.7282634", "0.6530132", "0.64835674", "0.64666975", "0.64458966", "0.6349742", "0.6311906", "0.6288767", "0.6217752", "0.6186423", "0.6183742", "0.6166952", "0.6166115", "0.61495745", "0.6148532", "0.61368996", "0.6131555", "0.6067335", "0.6058155", "0.6056901", "0.6055179"...
0.7394487
0
parseENVFile parse .env file options
parseENVFile парсит файл .env опции
private function parseENVFile(): array { $envPath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.env'; if(!is_file($envPath)) { throw new \Exception(".env file not found"); } $options = (new Loader($envPath)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function parseEnvProperties(): array\r\n {\r\n $envProperties = array();\r\n $vars = file(Config::$baseDir . '/../.env', FILE_IGNORE_NEW_LINES);\r\n foreach ($vars as $var) {\r\n if (substr($var, 0, 2) === '##') continue;\r\n $envProperties[explode('=', ...
[ "0.66184384", "0.65557355", "0.6422461", "0.6075679", "0.5917561", "0.5895217", "0.5895102", "0.58330333", "0.5768423", "0.5656112", "0.5617184", "0.5584946", "0.55382353", "0.55272657", "0.5398027", "0.5393643", "0.53694105", "0.52707183", "0.52533954", "0.5247431", "0.52412...
0.7513177
0
Check whether specified files are writable
Проверьте, являются ли указанные файлы записываемыми
function areFilesWritable($files) { global $langPatcher; $notWritable = array(); foreach ($files as $curFile) { if (!$this->isWritable($curFile)) $notWritable[] = $curFile; } if (count($notWritable) > 0) message($langPatcher['Files not writable info'].':<br />'.implode('<br />', $notWritable));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canWriteFiles()\n {\n return is_writable(__FILE__);\n }", "public function is_writable($file);", "public function checkIsWritable($path);", "public function isWriteable()\n {\n $this->is_writable = null;\n\n if ($this->exists === true) {\n } else {\n ...
[ "0.8094347", "0.73939675", "0.73769337", "0.73594236", "0.7342566", "0.7330753", "0.7224654", "0.72206247", "0.717481", "0.717339", "0.69856", "0.69848335", "0.6912004", "0.6889954", "0.6884523", "0.6868251", "0.6833388", "0.6818913", "0.67508435", "0.67334473", "0.67313683",...
0.7671598
1
Test that all demo's have been covered. If i ever add new demo's this test will fail.
Тест, проверяющий, что все демо-примеры были охвачены. Если я когда-нибудь добавлю новые демо-примеры, этот тест завалится.
public function testClassCoversAllDemos() { $expected = count(glob(DEMO_DIR . '/*.php')) - 1; $actual = count(array_keys($this->expectedResults())); $this->assertEquals($expected, $actual, "Not all demo's where covered in " . __CLASS__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testSample() {\n\t\t$this->assertTrue( true );\n\t}", "function test_sampleme() {\n\t\t// Replace this with some actual testing code.\n\t\t$this->assertTrue( true );\n\t}", "function test_sample() {\n\n\t\t$this->assertTrue( true );\n\n\t}", "function test_sample() {\n\t\t$this->assertTrue( true );\...
[ "0.6849202", "0.6783557", "0.6765019", "0.6582213", "0.6573856", "0.65641344", "0.6561205", "0.6491675", "0.6481", "0.64592564", "0.63989997", "0.63702834", "0.63628125", "0.63628125", "0.6344803", "0.6298084", "0.6298084", "0.62907255", "0.62837905", "0.62694865", "0.6264893...
0.7563434
0
Clear alreadyloaded permissions collection. This is only intended to be called by the PermissionServiceProvider on boot, so that longrunning instances like Octane or Swoole don't keep old data in memory.
Очистить уже загруженную коллекцию разрешений. Это предназначено только для вызова в процессе запуска PermissionServiceProvider, чтобы долгоживущие экземпляры, такие как Octane или Swoole, не сохраняли старые данные в памяти.
public function clearPermissionsCollection(): void { $this->permissions = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function revokeAllPermissions()\n {\n $this->permissions()->sync([]);\n\n if (config('permissionsHandler.seeder') == true) {\n Seeder::revokeAllRolePermissions($this);\n }\n\n $this->clearRelatedCache();\n }", "public function forgetCachedPermissions()\n {\n...
[ "0.76832896", "0.7410279", "0.7313419", "0.72335005", "0.6821024", "0.6821024", "0.6742483", "0.6713801", "0.64446914", "0.64077866", "0.62850386", "0.6262778", "0.6203288", "0.61099756", "0.6028694", "0.6009851", "0.5999459", "0.5975091", "0.5943897", "0.5931014", "0.5915633...
0.8524518
0
Load permissions from cache This get cache and turns array into \Illuminate\Database\Eloquent\Collection
Загрузить разрешения из кэша. Этот метод получает кэш и преобразует массив в \Illuminate\Database\Eloquent\Collection
private function loadPermissions(): void { if ($this->permissions) { return; } $this->permissions = $this->cache->remember( $this->cacheKey, $this->cacheExpirationTime, fn () => $this->getSerializedPermissionsForCache() ); // fallback for old cache m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cachedPermissions()\n {\n return Cache::remember(\n $this->getCachePrefix(),\n config('permissionsHandler.cacheExpiration'),\n function () {\n return $this->permissions;\n }\n );\n }", "public function cachedPermission...
[ "0.7476557", "0.7393459", "0.7371009", "0.7259749", "0.7020498", "0.68531966", "0.6777861", "0.67514217", "0.66931975", "0.6660652", "0.64218295", "0.62590426", "0.6250412", "0.62258536", "0.62244", "0.62167823", "0.62128216", "0.61747223", "0.6163228", "0.6130289", "0.609561...
0.7422773
1
Test mail with attachments
Тестовая почта с приложениями
public function testQSendgridSendEmailWithAttachmentFunctionality() { $attachmentUrls = [ './src/attachments/sample1.jpg', './src/attachments/sample2.jpg' ]; foreach ($attachmentUrls as $url) { $this->assertFileExists($url); } $qSendgrid = new QSendgrid($this->noReplyEmail, $this->sendgridApiKey);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testMailAttachmentParse()\n {\n $raw = \"UmV0dXJuLVBhdGg6IDxzdXBwb3J0QGNvbW9kby5jb20+ClgtT3JpZ2luYWwtVG86IHNzbEB0ZXN0LmRlCkRlbGl2ZXJlZC1UbzogY2Rzc2xAaG9zdDJjMS50ZXN0LmRlClJlY2VpdmVkOiBmcm9tIG14cDAubmljZ2F0ZS5jb20gKG14cDAubmljZ2F0ZS5jb20gWzE4OC40MC42OS43Nl0pCiAgICBieSBob3N0MmMxLnRlc3QuZGUg...
[ "0.7103725", "0.7087703", "0.7028114", "0.70267606", "0.6988914", "0.6981682", "0.6956945", "0.6772072", "0.6754798", "0.66960984", "0.66676205", "0.66056794", "0.6484717", "0.6449245", "0.6415915", "0.63937885", "0.6365764", "0.63133776", "0.63078654", "0.62508917", "0.61617...
0.7531
0
Print label by ajax
Печать ярлыка по ajax
public function ajaxProcessPrintLabel() { $this->ajax = true; $id_order = (int)Tools::getValue('id_order'); $order = new Order($id_order); if (!Validate::isLoadedObject($order)) { exit('Order not exists'); } return $this->printLabel($id_order); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxProcessPrintZprnLabel()\n {\n $id_order = (int)Tools::getValue('id_order');\n $order = new Order($id_order);\n\n if (!Validate::isLoadedObject($order)) {\n exit('Order not exists');\n }\n\n $label_format = SpringXbsHelper::get(Springxbs::LABEL_FO...
[ "0.7443208", "0.68930846", "0.68283254", "0.6541824", "0.6251214", "0.62216836", "0.62216836", "0.62216836", "0.62216836", "0.62216836", "0.62216836", "0.62216836", "0.62216836", "0.6192379", "0.6177828", "0.61461836", "0.605855", "0.605855", "0.6042884", "0.60189694", "0.599...
0.77723867
0
Print existing ZPL label by ajax
Печать существующей этикетки ZPL через AJAX
public function ajaxProcessPrintZprnLabel() { $id_order = (int)Tools::getValue('id_order'); $order = new Order($id_order); if (!Validate::isLoadedObject($order)) { exit('Order not exists'); } $label_format = SpringXbsHelper::get(Springxbs::LABEL_FORMAT); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxProcessPrintLabel()\n {\n $this->ajax = true;\n $id_order = (int)Tools::getValue('id_order');\n $order = new Order($id_order);\n\n if (!Validate::isLoadedObject($order)) {\n exit('Order not exists');\n }\n\n return $this->printLabel($id_or...
[ "0.7355697", "0.6820257", "0.6618435", "0.63670933", "0.6245403", "0.6240559", "0.6179476", "0.6179476", "0.6179476", "0.6179476", "0.6179476", "0.6179476", "0.6179476", "0.6179476", "0.6167895", "0.6150272", "0.61346763", "0.61346763", "0.6080241", "0.6064971", "0.60166824",...
0.8114629
0
Void label by ajax
Пустая метка через AJAX
public function ajaxProcessVoidLabel() { $this->ajax = true; $id_order = (int)Tools::getValue('id_order'); die(json_encode($this->voidShipment($id_order))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_edit_label($new_label) { \n }", "public function ajax_response()\n {\n }", "public function ajaxGuion() {\n\t\t\tif($this->peticion->ajax() == true):\n\t\t\t\t$this->existenciaDatos();\n\t\t\telse:\n\t\t\t\texit('Guión no fue creado por Error en petición Ajax');...
[ "0.65973604", "0.5940631", "0.5918286", "0.5878716", "0.5868773", "0.5861369", "0.58271575", "0.56872165", "0.5628125", "0.5583215", "0.5544116", "0.5516725", "0.55052054", "0.5486352", "0.5453495", "0.5453495", "0.5453495", "0.5453495", "0.5453495", "0.5453495", "0.5453495",...
0.7839605
0
Reorder label by ajax
Переупорядочить метку с помощью AJAX
public function ajaxProcessReorderLabel() { $this->ajax = true; $id_order = (int)Tools::getValue('id_order'); $void = $this->voidShipment($id_order); if ($void['error']) { return array('error' => $void['error']); } $result = $this->orderShipment($id_orde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxReorderList()\n\t{\n\t\t$this->saveReorder($_POST['sort']['order-posts-list-nested']);\t\n\t}", "public function ajax_edit_label($new_label) { \n }", "function fed_get_admin_up_label_input_order( $row ) {\n\t$change = '';\n\tif ( ! fed_check_field_is_belongs_to_extra( $row['in...
[ "0.6377135", "0.6359323", "0.6314374", "0.6257263", "0.60625404", "0.60039544", "0.5996786", "0.59376824", "0.5868332", "0.58174163", "0.5743569", "0.56972516", "0.56507224", "0.56479335", "0.5646921", "0.56467503", "0.564394", "0.5582784", "0.5535698", "0.5533966", "0.553016...
0.77381396
0
Get shipment by id, service name, label format
Получить отправление по идентификатору, имени сервиса, формату этикетки
protected function getShipment($id_order, $service_name = false, $label_format = false) { return self::getShipmentStatic($id_order, $service_name, $label_format); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getShipmentStatic($id_order, $service_name = false, $label_format = false)\n {\n $id_order = (int)$id_order;\n $service_cond = '';\n\n if ($service_name) {\n $service_cond = \"AND service = '\" . pSQL($service_name) . \"'\";\n }\n\n $label_for...
[ "0.6721589", "0.65488064", "0.61890477", "0.59936035", "0.59183997", "0.58625025", "0.5815907", "0.579326", "0.57880676", "0.57500404", "0.57053477", "0.5705285", "0.56864554", "0.5633328", "0.5618979", "0.5603788", "0.5570481", "0.5552089", "0.55078554", "0.5503277", "0.5490...
0.7047044
0
/ ================================================================================== Nucleus TestPostAddCategory Plugin Copyright 2007 by Kimitake ================================================================================== This program is free software and open source software; you can redistribute it and/or mod...
/ ================================================================================== Плагин Nucleus TestPostAddCategory Авторство 2007 Kimitake ================================================================================== Эта программа является свободным программным обеспечением и открытым исходным кодом; вы может...
function getName() { return 'TestPostAddCategory'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_postAction() {\r\n\t\t$info = $this->getPost(array('sort', 'title', 'img', 'status', 'hits'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$result = Game_Service_Category::addCategory($info);\r\n\t\tif (!$result) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功');\r\n\t}", "public ...
[ "0.68062705", "0.6620918", "0.6431859", "0.63459677", "0.6185133", "0.61515313", "0.6058729", "0.6004369", "0.5956009", "0.5948669", "0.589281", "0.58586895", "0.58493763", "0.5825526", "0.58017814", "0.57970864", "0.5790628", "0.5744541", "0.5734168", "0.5731661", "0.5724337...
0.7001461
0
Get the IDs for the tenants the user is associated with.
Получите идентификаторы для арендаторов, с которыми связан пользователь.
public function getUserTenantIds() { if ( $this->user) { return $this->user->{$this->config->get('tenantable.tenant.plural', 'tenants')}->lists('id'); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTenantIds()\n {\n return $this->tenant_ids;\n }", "public function tenants()\n\t{\n\t\t$tenants_users = TenantUser::where( 'user_id', '=', $this->id )->get();\n\t\t$tenant_list = [];\n\t\tforeach( $tenants_users as $tenant_user )\n\t\t{\n\t\t\t$tenant = Tenant::where( 'id', '=', $...
[ "0.77094376", "0.7467291", "0.6989901", "0.6895374", "0.63189185", "0.62082916", "0.62082916", "0.6143698", "0.61228126", "0.6060154", "0.6044263", "0.60008913", "0.5989482", "0.59576213", "0.5936613", "0.5918507", "0.5888695", "0.5886671", "0.5837691", "0.5826906", "0.576582...
0.7902984
0
loadFilteredPolicy loads only policy rules that match the filter.
loadFilteredPolicy загружает только правила политики, соответствующие фильтру.
public function loadFilteredPolicy(Model $model, $filter) : void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadFilteredPolicy($filter) : void\n {\n $this->model->clearPolicy();\n\n if (!$this->adapter instanceof AdapterFiltered)\n {\n throw new GodException('filtered policies are not supported by this adapter');\n }\n\n /** @var AdapterFiltered $adapterFi...
[ "0.7448763", "0.68359214", "0.6352384", "0.6336248", "0.62649745", "0.6174942", "0.5599233", "0.54905826", "0.52303636", "0.51809704", "0.5079385", "0.5030678", "0.49957642", "0.49784273", "0.4878781", "0.4832219", "0.48250166", "0.48246974", "0.48242894", "0.48170683", "0.48...
0.73590547
1
Gets a url to wmc directory or to file with "$filename
Получает URL на директорию wmc или на файл с "$filename
public function getWmcUrl($filename = null) { $url_base = \Mapbender\CoreBundle\Component\Application::getAppWebUrl($this->container, $this->application->getSlug()); $url_wmc = $url_base . '/' . WmcHandler::$WMC_DIR; if ($filename !== null) { return $url_wmc . '/' . $filename; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFileUrl()\n {\n\n return get_bloginfo('url') . \"/\" . $this->getFileName();\n\n }", "public function getUrl(){\n\t \treturn $this->dirname.'/'.$this->filename.'.'.$this->extension;\n\t }", "protected function getLink($filename) {\n return 'http://' . $_SERVER['HTTP_HOST'...
[ "0.6439382", "0.6263817", "0.6111991", "0.6106281", "0.608341", "0.60602933", "0.6048809", "0.60410416", "0.60278296", "0.5936134", "0.59165496", "0.59072435", "0.5896861", "0.58703", "0.5851949", "0.58307153", "0.57996213", "0.5776761", "0.57692325", "0.5766551", "0.5757413"...
0.7498838
0
Gets a path to wmc directory
Получает путь к каталогу wmc
public function getWmcDir() { $uploads_dir = \Mapbender\CoreBundle\Component\Application::getAppWebDir($this->container, $this->application->getSlug()); $wmc_dir = $uploads_dir . '/' . WmcHandler::$WMC_DIR; if (!is_dir($wmc_dir)) { if (mkdir($wmc_dir)) { return $w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirectory()\n {\n return mfConfig::get('mf_sites_dir').\"/\".$this->getSiteName().\"/\".$this->getApplication().\"/view/pictures/\".$this->get('lang');\n }", "public function getWwwDir(): string\n\t{\n\t\treturn $this->wwwDir;\n\t}", "public static function get_directory() : str...
[ "0.68552506", "0.67924714", "0.66691375", "0.6620554", "0.6604709", "0.6537328", "0.65326625", "0.6528048", "0.65177846", "0.64901096", "0.64268076", "0.64166623", "0.6382329", "0.63580614", "0.6356927", "0.63314986", "0.63248646", "0.6324471", "0.6324471", "0.63164306", "0.6...
0.843154
0
Creates a date from an ISO 8601 string, i.e., formatted as `YYYYMMDD`. Years beyond 4 digits are supported, i.e., `'123450130'` is a valid input, representing a date of year 12345. As defined by ISO 8601, years before Christ are expected to be represented by numbers prefixed with a minus sign, `0000` representing year ...
Создает дату из строки в формате ISO 8601, то есть в виде `YYYYMMDD`. Поддерживаются годы, превышающие 4 цифры, например, `'123450130'` является допустимым вводом и представляет дату года 12345. Согласно ISO 8601, годы до н.э. должны представляться числами, предшествующими знаком минус, `0000` соответствует году 1 н.э....
public static function fromISOString(string $isoDateString): Date { // check out for more than 4 digits for the year - something date_create_immutable() does not handle properly $intPrefix = (int)$isoDateString; if ($intPrefix > -10000 && $intPrefix < 10000) { // optimization for the typical...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function parse($str) {\n if (($str === null) || ($str == '')) {\n return null;\n }\n\n $ary = explode('-', $str);\n\n $year = (integer) $ary[0];\n $month = (integer) $ary[1];\n $day = (integer) $ary[2];\n\n return new Date($year, $month, ...
[ "0.58866996", "0.58464587", "0.57681936", "0.5719628", "0.5604681", "0.5594104", "0.5460567", "0.543904", "0.5422494", "0.54002756", "0.53825474", "0.53518534", "0.5344379", "0.53302616", "0.5321863", "0.52767384", "0.5273211", "0.5256877", "0.5250418", "0.5192518", "0.519062...
0.7239693
0
Registers the Symfony EventDispatcher with the Laravel Container.
Регистрирует Symfony EventDispatcher с контейнером Laravel.
public function registerSymfonyDispatcher() { try { $this->app['symfony.dispatcher']; } catch (\ReflectionException $e) { $this->app['symfony.dispatcher'] = $this->app->share( function ($app) { return new EventDispatcher; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerEvents(): void\n {\n $events = $this->app->make(Dispatcher::class);\n\n foreach ($this->events as $event => $listeners) {\n foreach ($listeners as $listener) {\n $events->listen($event, $listener);\n }\n }\n }", "protected...
[ "0.6932601", "0.6897997", "0.67063475", "0.64533544", "0.63644844", "0.63259375", "0.63220954", "0.62660676", "0.6232863", "0.61910796", "0.6091158", "0.59743655", "0.5943606", "0.5931229", "0.59237516", "0.5921321", "0.59171915", "0.5913044", "0.58981985", "0.5875769", "0.58...
0.8151133
0
Handles the submission of the grunion contact form, in lieu of there being a function within Grunion Contact Form that saves the data (it's done as part of the shortcode).
Обрабатывает отправку формы контакта Grunion, так как в самой форме Grunion Contact Form нет функции, сохраняющей данные (это делается в рамках короткого кода).
public static function handle_form_submission(){ global $post; // Setup $_POST & $_REQUEST to appear as if the form had been submitted in the traditional way... yep, all sorts of fudge parse_str( $_POST['data'], $data ); $_POST = array_merge( $_POST, $data ); unset( $_POST['action'] ); unset( $_POST['data'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_form_submission() {\n\t\t// Add a filter to replace tokens in the subject field with sanitized field values\n\t\tadd_filter( 'contact_form_subject', array( $this, 'replace_tokens_with_input' ), 10, 2 );\n\n\t\t$id = stripslashes( $_POST['contact-form-id'] );\n\n\t\tif ( is_user_logged_in() ) {\n\t...
[ "0.74343663", "0.7238717", "0.70657367", "0.7019588", "0.68788975", "0.68286204", "0.6775293", "0.6770494", "0.6731777", "0.66590893", "0.6612958", "0.6582889", "0.65039605", "0.6501335", "0.64911824", "0.6488967", "0.647922", "0.6478152", "0.64301413", "0.6424504", "0.641952...
0.7675383
0
CODE COVERAGE ANALYSIS Checks if a line of text starts with another text
АНАЛИЗ ПОКРЫТИЯ КОДА Проверяет, начинается ли строка текста с другого текста
function startsWith($line,$text) { return substr($line,0,strlen($text))==$text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beginsWithReturnsTrueForMatchingFirstPartDataProvider() {}", "function testStartsWith1 ()\n\t{\n\t\t\t$input1 = \"Barry\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}", "function testStartsWith2 ()\n\...
[ "0.6479566", "0.623711", "0.6232749", "0.61704147", "0.61609846", "0.6001994", "0.59754044", "0.594559", "0.59119403", "0.58816206", "0.58500624", "0.5843203", "0.57486206", "0.569113", "0.5689543", "0.56636953", "0.56598127", "0.5649834", "0.56477267", "0.56475884", "0.56255...
0.72588116
0
Checks whether a line of PHP code requires code coverage or not Should be called on consecutive lines to detect multiline comments.
Проверяет, требуется ли коду покрытия для строки кода PHP. Должен вызываться на последовательных строках для обнаружения многострочных комментариев.
function needCoverage($line) { static $isComment=false; $line=trim($line); if ($line=="") return false; if (startsWith($line,"/*")) { $isComment=true; return false; } if (substr($line,-2)=="*/") { $isComment=false; return false; } if ($isComment) return false; if (startsWith($line,"<"."?php")) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canCollectCodeCoverage(): bool;", "public function testExecutableLines() {\n\t\tdo {\n\t\t\t// These lines should be ignored\n\t\t\t//\n\n\t\t\t/* And these as well are ignored */\n\n\t\t\t/**\n\t\t\t * Testing never proves the absence of faults,\n\t\t\t * it only shows their presence.\n\t\t\t * ...
[ "0.6223159", "0.5989232", "0.5933584", "0.58497506", "0.5839007", "0.5801836", "0.5730774", "0.5678033", "0.5655939", "0.56358266", "0.5621241", "0.56110024", "0.5595993", "0.5591363", "0.5575876", "0.55719477", "0.5570656", "0.5556221", "0.55176693", "0.5486334", "0.54587674...
0.80749786
0
returns an array of lines needing coverage on a file
возвращает массив строк, требующих покрытия в файле
function linesNeedingCoverage($filename) { $outLines=array(); $content=file_get_contents($filename); $lines=explode("\n",$content); $number=0; foreach ($lines as $line) { $number++; if (needCoverage($line)) $outLines[]=$number; } return $outLines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readCoverage() {\n $test_results = Filesystem::readFile($this->coverageFile);\n if (empty($test_results)) {\n return array();\n }\n\n $coverage_dom = new DOMDocument();\n $coverage_dom->loadXML($test_results);\n\n $reports = array();\n $files = $coverage_dom->getElementsB...
[ "0.7514104", "0.7177626", "0.7000646", "0.6988133", "0.6800294", "0.6527089", "0.6360691", "0.6298541", "0.6269469", "0.6145759", "0.6004127", "0.59962785", "0.5987619", "0.59697133", "0.5922791", "0.5902145", "0.58828247", "0.5811045", "0.5791215", "0.5716065", "0.5678959", ...
0.8636075
0
Returns all parts for a specific maintenance.
Возвращает все части для конкретного ремонта.
public function getPartsForSpecificMaintenance($id_company = null, $id_maintenance = null) { try { global $con; /* Statement declaration */ $sql = "SELECT * ". "FROM maintenance m, partsmaintenance p, stock s, parts pa, currencies c ". "WHERE m.id_maintenance = p.id_maintenance ". "AND p....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function all()\n {\n $this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n return $this->rest->get('recipe/maintenance');\n }", "public function maintenances()\n {\n return $this->hasMany('Ap...
[ "0.5872079", "0.5829675", "0.5757631", "0.55281293", "0.53391623", "0.52300847", "0.52230924", "0.517794", "0.51775646", "0.51420665", "0.51420665", "0.5139383", "0.5133389", "0.51087373", "0.501751", "0.49949843", "0.49922702", "0.49887756", "0.49797034", "0.4960442", "0.493...
0.7004639
0
Returns all type of maintenance.
Возвращает все виды обслуживания.
public function getTypeMaintenace() { try { global $con; /* Statement declaration */ $sql = "SELECT * FROM typemaintenance;"; /* Statement execution */ $stmt = $con->query($sql); /* Statement result */ return $stmt->fetchAll(PDO::FETCH_OBJ); } catch(PDOException $e) { return array("error" =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function maintenances()\n {\n return $this->hasMany('App\\Maintenance');\n }", "public function maintenances()\n {\n return $this->hasMany('App\\Models\\Maintenance');\n }", "function all()\n {\n $this->rest->initialize(array('server' => REST_SERVER));\n ...
[ "0.6806228", "0.6778363", "0.65527695", "0.6223701", "0.60422385", "0.5989526", "0.5984585", "0.59812444", "0.5969025", "0.5958823", "0.57805115", "0.5777032", "0.57155144", "0.56794393", "0.56179273", "0.56124306", "0.5600255", "0.55918825", "0.5574084", "0.5552066", "0.5536...
0.7236746
0
FUNCTION TO FIND THE CLEARANCE function takes the content of the resume, the list of desired clearances, and a string of the clearances already found from the resume
ФУНКЦИЯ ДЛЯ НАХОЖДЕНИЯ ПРОХОДНОСТИ функция принимает содержимое резюме, список желаемых допусков и строку уже найденных допусков из резюме
function findClear($lines, $clear, $curClear) { $foundClear = $curClear; $clearFound = FALSE; $ct = 0; //Go through the lines of the resume's contant and search them for the clearance by cycling through the list of clearances until one is found while (($clearFound == FALSE) && ($ct < count($lines)))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function comics_dcp()\n\t{\n\t\tif (preg_match('/\\d{4}\\.(\\d{2}\\.){2} - \"(.+?)\\.cb[rz]\" yEnc$/i', $this->subject, $match)) {\n\t\t\treturn array('cleansubject' => $match[2], 'properlynamed' => false);\n\t\t}\n\t\t//Re: Req: Dark Tower - The Battle of Jericho Hill 05 (of 05) TIA - File 1 of 1 - yEnc\n\...
[ "0.46625444", "0.46540317", "0.45728287", "0.45619988", "0.45241302", "0.45081332", "0.45035976", "0.44920295", "0.44706222", "0.4462771", "0.44611102", "0.44223684", "0.4420005", "0.44156164", "0.44143957", "0.44077295", "0.43976268", "0.4396705", "0.43903708", "0.436857", "...
0.7660777
0
Deals with OAuth authentication
Обрабатывает аутентификацию OAuth
public function OAuthAuthenticate() { throw new Exception( "OAuthAuthenticate Not yet implemented" ); // $response = Auth1::legs(2) // ->set( 'key', $this->OAuthConsumerKey ) // ->set( 'secret', $this->OAuthConsumerSecret ) // -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function oauth() {\n if ($this->IntuitAnywhere->handle($this->the_username, $this->the_tenant))\n {\n ; // The user has been connected, and will be redirected to $that_url automatically.\n }\n else\n {\n // If this happens, something went wrong with ...
[ "0.7440411", "0.73322237", "0.7006425", "0.6962791", "0.695359", "0.68990403", "0.6890276", "0.6835084", "0.6784783", "0.67224246", "0.67149556", "0.6703821", "0.6670424", "0.666273", "0.6627504", "0.65771353", "0.6565806", "0.656431", "0.65619045", "0.65619045", "0.65600014"...
0.739983
1
Resolve data array to WHERE condition string
Преобразовать массив данных в строку условия WHERE
public function resolveConditionData($params) { $dataWhere = ""; $lowerKeyd = array_change_key_case($params, CASE_LOWER); $glue = strtoupper(isset($lowerKeyd[self::OPERATOR_PREFIX . 'operator']) && strtolower($lowerKeyd[self::OPERATOR_PREFIX . 'operator']) == "or" ? "OR" : "AND"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCondition(array $data) : string {\n\n\t\t\treturn implode(' AND ', array_filter($this->config->castArray($data, true)));\n\t\t}", "function s_m_put_get_condition($ref_id_db_arr, $ref_data){\r\n $where = \"\";\r\n for($i = 0; $i < count($ref_id_db_arr); $i++){\r\n $where .= $ref_id_db_a...
[ "0.7359268", "0.7156503", "0.7058279", "0.70507634", "0.6978363", "0.6916493", "0.6913597", "0.6803185", "0.67760265", "0.67709035", "0.67674625", "0.671004", "0.67099273", "0.6701261", "0.659374", "0.6592068", "0.6550421", "0.65258545", "0.64912313", "0.6477182", "0.6454241"...
0.734247
1
Persist a new product in the system.
Закрепить новый продукт в системе.
public function insertProduct(Product $product);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function storeProduct();", "public function store()\n {\n $this->product->name = $_POST['name'];\n $this->product->price = $_POST['price'];\n $this->product->description = $_POST['description'];\n $this->product->category_id = $_POST['category_id'];\n\n // create the ...
[ "0.7749707", "0.71717346", "0.7153738", "0.7148023", "0.7122245", "0.71136105", "0.7091845", "0.70655066", "0.70402086", "0.7037825", "0.70376736", "0.7022481", "0.702027", "0.7011224", "0.70073426", "0.6995553", "0.69935757", "0.6991656", "0.69757056", "0.69714975", "0.69475...
0.72713816
1
Update an existing product in the system.
Обновить существующий продукт в системе.
public function updateProduct(Product $product);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_product() {\n\t\t$values=array(\"product_name\"=>$_POST['product_name'],\"description\"=>$_POST['description']);\t\t\t\t\n\t\t$where =array(\"id\"=>$_POST['product_id']);\n\t\tif($this->update(\"products\",$values,$where)) {\t\t\t\n\t\t\techo true;\n\t\t}\n\t\telse\n\t\t\techo 'Error while u...
[ "0.80140334", "0.80104387", "0.76534724", "0.7646831", "0.7366892", "0.7324864", "0.731051", "0.72914934", "0.7290811", "0.7276978", "0.7273005", "0.7273005", "0.7273005", "0.7264833", "0.7252686", "0.72470754", "0.7237713", "0.7224218", "0.72172904", "0.72159755", "0.720268"...
0.8664123
0
Delete a product from the system.
Удалить продукт из системы.
public function deleteProduct(Product $product);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function deleteProduct()\n {\n echo PHP_EOL;\n \n try\n {\n $productToDelete = $this->productDao->getByEan(self::PRODUCT_TURKEY_EAN);\n $resultOfDelete = $this->productDao->delete($productToDelete); \n\n echo 'Product with id: ' . $pro...
[ "0.8236517", "0.8171804", "0.8062506", "0.8029423", "0.79570735", "0.7870929", "0.76017886", "0.75357527", "0.7483234", "0.7477104", "0.7477104", "0.7457793", "0.7457793", "0.74566257", "0.74423033", "0.74278766", "0.74278766", "0.74278766", "0.74278766", "0.74278766", "0.742...
0.86438406
0
function to return an array of three strings based on the current and past two football seasons, ie '20132014'
функция для возвращения массива из трех строк на основе текущего и предыдущих двух футбольных сезонов, например, '20132014'
function get_football_seasons() { $currseasonstring = $lastseasonstring = $lastlastseasonstring = ''; $seasonout[] = array(); $currentyear = date("Y"); $currentmonth = date("m"); if ( $currentmonth > 2 ) { $seasonout[0] = (string)$currentyear . '-' . (string)($currentyear + 1); $seasonout[1] = (string)($curr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChampionshipSeasons()\n {\n $championships = $this->teams->map(function ($team) {\n return ($team->position == 1) ? $team->season->year : null;\n })->toArray();\n\n return implode(array_filter($championships), ', ');\n }", "function getSeason(){\n $today ...
[ "0.65031576", "0.6229947", "0.6183938", "0.61378396", "0.6105551", "0.59049684", "0.58951175", "0.5797884", "0.5777845", "0.5610181", "0.5578902", "0.55442184", "0.55267024", "0.55261445", "0.54346085", "0.54137677", "0.53475976", "0.5220569", "0.51867944", "0.51834446", "0.5...
0.81382823
0
Generate CSS for editor font sizes from the provided theme support.
Создайте CSS для размеров шрифта редактора на основе предоставленной темы.
function hello_pro_inline_font_sizes() { $css = ''; $appearance = genesis_get_config( 'appearance' ); $editor_font_sizes = $appearance['editor-font-sizes']; if ( ! $editor_font_sizes ) { return ''; } foreach ( $editor_font_sizes as $font_size ) { $css .= sprintf( '.site-container .ha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function block_core_page_list_build_css_font_sizes($context)\n {\n }", "function block_core_page_list_build_css_font_sizes( $context ) {\n\t// CSS classes.\n\t$font_sizes = array(\n\t\t'css_classes' => array(),\n\t\t'inline_styles' => '',\n\t);\n\n\t$has_named_font_size = array_key_exists( 'fontSize', $...
[ "0.69679564", "0.6818648", "0.6623064", "0.6505413", "0.6480874", "0.6360905", "0.6289054", "0.6185245", "0.61142665", "0.60099524", "0.5979224", "0.59462607", "0.5942977", "0.5942977", "0.59286654", "0.58685195", "0.5862345", "0.5843786", "0.58324033", "0.58280027", "0.58189...
0.7104507
0
Generate CSS for editor colors based on theme color palette support.
Создать CSS для цветов редактора на основе поддержки палитры цветов темы.
function hello_pro_inline_color_palette() { $css = ''; $appearance = genesis_get_config( 'appearance' ); $editor_color_palette = $appearance['editor-color-palette']; foreach ( $editor_color_palette as $color_info ) { $css .= sprintf( '.site-container .has-%1$s-color, .site-container .wp-block-button .wp-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tewwie_gutenberg_color_palette() {\n\tadd_theme_support(\n\t\t'editor-color-palette', array(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Primary', '@@textdomain' ),\n\t\t\t\t'slug' => 'primary',\n\t\t\t\t'color' => 'rgb(94, 114, 228)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Secondary'...
[ "0.7083772", "0.69846886", "0.6881379", "0.6824591", "0.67768556", "0.67483157", "0.6716318", "0.6685684", "0.6678164", "0.6564287", "0.6555995", "0.6517984", "0.6482668", "0.6461042", "0.64503974", "0.6442215", "0.63907444", "0.6355985", "0.6329145", "0.62536573", "0.6244194...
0.7104443
0
Process to execute after restore tool_carcastc and handle files.
Процесс выполнения после восстановления инструмента tool_carcastc и обработка файлов.
protected function after_restore_course() { // Add tool_carcastc related files, no need to maching itemname with itemid. $this->add_related_files('tool_carcastc', 'rowfile', 'itemid'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process() {\n $this->migrate_course_files();\n // todo $this->migrate_site_files();\n }", "public function postImport() {\n $this->closeFile();\n }", "protected function after_execute() {\n// \t$this->add_related_files('mod_vcubeseminar', 'intro', null);\n// \...
[ "0.5979957", "0.5858631", "0.5856797", "0.57442814", "0.56378806", "0.56272024", "0.5624056", "0.5466654", "0.54612035", "0.53680474", "0.5363085", "0.53303367", "0.5288731", "0.5267744", "0.52640015", "0.5255643", "0.5232553", "0.5217391", "0.5212753", "0.520873", "0.5196531...
0.7337473
0
The name of a Cloud Storage bucket. Required. Generated from protobuf field string bucket_name = 1;
Имя хранилища Cloud Storage. Обязательно. Генерируется из поля protobuf string bucket_name = 1;
public function getBucketName() { return $this->bucket_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBucketName()\n {\n return $this->data['bucket'];\n }", "public function getBucketName()\n {\n return $this->bucketname;\n }", "public function setBucketName($var)\n {\n GPBUtil::checkString($var, True);\n $this->bucket_name = $var;\n\n return...
[ "0.8015028", "0.78816265", "0.76057804", "0.7314152", "0.7222436", "0.68371785", "0.68070734", "0.668721", "0.663329", "0.6607793", "0.65988", "0.6564409", "0.6563238", "0.6561884", "0.6561884", "0.6561884", "0.65470284", "0.65265405", "0.64601475", "0.6410286", "0.6410286", ...
0.7917681
1
/ Get ajudante by id_ajud
/ Получить ajudante по id_ajud
function get_ajudante($id_ajud) { return $this->db->get_where('ajudante',array('id_ajud'=>$id_ajud))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function recupVendeurAd($id)\n{\n require(\"./modele/connexionBD.php\");\n $sql_ajt = \"SELECT * from `utilisateur` where idUtilisateur=:id\";\n try {\n $statement = $pdo->prepare($sql_ajt);\n $statement->bindParam(':id', $id);\n $statement->execute();\n $rowAll = $statement->f...
[ "0.65683764", "0.6357052", "0.6342774", "0.6271935", "0.62081826", "0.6164264", "0.61525553", "0.61353576", "0.61249894", "0.6119492", "0.61057276", "0.6078875", "0.6074379", "0.6065225", "0.60640126", "0.6052212", "0.6041189", "0.60331666", "0.60205173", "0.60198045", "0.600...
0.799369
0
/ Get all ajudante
/ Получить всех ajudante
function get_all_ajudante() { $this->db->order_by('id_ajud', 'desc'); return $this->db->get('ajudante')->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function liste()\n {\n return $this->createQueryBuilder('a')\n ->orderBy('a.pseudonyme', 'ASC')\n ;\n }", "public function recuperarTodos() {\n $query = \"select * from tb_atividade where id_evento = :id\";\n\n $stmt = $this->conexao->prepare($query...
[ "0.7013304", "0.7009795", "0.6961555", "0.68924046", "0.6883702", "0.66657484", "0.6664432", "0.66620344", "0.6661112", "0.66581434", "0.6657179", "0.6657179", "0.6657179", "0.6656179", "0.6656179", "0.6642615", "0.6622679", "0.6622679", "0.6622679", "0.66173023", "0.66173023...
0.7525358
0
Index action of the Log in controller. Returns a response that has log in page content.
Действие индекса контроллера входа. Возвращает ответ, содержащий содержимое страницы входа.
public function indexAction(): Response { if ($this->loginService->isSessionActive() || $this->loginService->automaticLogIn()) { return new RedirectResponse('/admin'); } return new HTMLResponse('login', ['title' => 'Log In']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\n return view('pages.logs.index');\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $dql = 'SELECT p FROM LOCKSSOMaticLoggingBundle:LogEntry p ORDER BY p.id DESC';\n $query = $em->createQuery($dql);\n $pagina...
[ "0.7074844", "0.7042333", "0.692431", "0.69220126", "0.68987936", "0.68942446", "0.68935525", "0.6873003", "0.6867431", "0.6830376", "0.6811705", "0.67224705", "0.66943973", "0.66880083", "0.66836256", "0.6683206", "0.66741276", "0.665598", "0.6643359", "0.6643359", "0.663972...
0.70954996
0
Answers an array list object containing the detail fields for the template.
Возвращает массив объектов списка, содержащий детальные поля для шаблона.
public function getDetailFields() { // Create Details List: $details = ArrayList::create(); // Define Details List: foreach ($this->owner->getDetailFieldsConfig() as $name => $spec) { if ($spec) { if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldsList(){\n return $this->_get(1);\n }", "public static function getFieldMasterList()\n {\n return [\n 'form_fields' => [\n // LA fields\n 'transaction_type',\n 'type_of_plate',\n 'vin',\n ...
[ "0.6527261", "0.6372789", "0.6369382", "0.6334233", "0.6250661", "0.61815774", "0.6143772", "0.612705", "0.6084271", "0.60554236", "0.6035559", "0.6034822", "0.6024162", "0.59772474", "0.59360904", "0.5928932", "0.58959234", "0.58882415", "0.58859426", "0.58653176", "0.586428...
0.76527506
0
Answers true if the extended object has detail fields available.
Возвращает true, если расширенный объект имеет доступные поля деталей.
public function hasDetailFields() { return $this->owner->getDetailFields()->exists(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasDetail() : bool\n {\n return ! empty($this->getDetail());\n }", "public function hasDetails()\n {\n return $this->details !== null;\n }", "public function isDetails() {\n\t\tif (!is_null($this->details))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public functi...
[ "0.75739616", "0.7397299", "0.72966594", "0.71488506", "0.7026929", "0.68223745", "0.67546374", "0.6682217", "0.66601014", "0.6640169", "0.6639825", "0.66333187", "0.6562465", "0.6561667", "0.6494923", "0.6494563", "0.64840364", "0.64547783", "0.6446789", "0.6446244", "0.6421...
0.8237599
0
Answers the detail fields config for the extended object.
Отвечает на детальные поля конфигурации для расширенного объекта.
public function getDetailFieldsConfig() { $config = $this->owner->getDefaultDetailFieldsConfig(); if (is_array($this->owner->config()->detail_fields)) { foreach ($this->owner->config()->detail_fields as $name => $spec) { if (!$spec) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultDetailFieldsConfig()\n {\n if (is_array($this->owner->config()->default_detail_fields)) {\n return $this->owner->config()->default_detail_fields;\n }\n \n return [];\n }", "public function getDetailFields()\n {\n // Create Details L...
[ "0.6724029", "0.6558028", "0.63291556", "0.619918", "0.6025847", "0.59389585", "0.59168714", "0.590053", "0.5880854", "0.5871316", "0.58635515", "0.5837509", "0.5812105", "0.57377505", "0.57049084", "0.57049084", "0.57049084", "0.5664724", "0.56125474", "0.55868053", "0.55175...
0.7595028
0
Answers the default detail fields config for the extended object.
Отвечает настройке по умолчанию полей детализации для расширенного объекта.
public function getDefaultDetailFieldsConfig() { if (is_array($this->owner->config()->default_detail_fields)) { return $this->owner->config()->default_detail_fields; } return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetailFieldsConfig()\n {\n $config = $this->owner->getDefaultDetailFieldsConfig();\n \n if (is_array($this->owner->config()->detail_fields)) {\n \n foreach ($this->owner->config()->detail_fields as $name => $spec) {\n \n ...
[ "0.7396518", "0.6226305", "0.61173046", "0.60416013", "0.5995031", "0.5880811", "0.586889", "0.58317596", "0.581428", "0.5810751", "0.5753053", "0.57388324", "0.5686518", "0.56764793", "0.5657688", "0.56003433", "0.55983776", "0.5594766", "0.55849993", "0.55605006", "0.553849...
0.7533042
0
Answers the heading tag for the detail fields section.
Отвечает на тег заголовка для раздела полей деталей.
public function getDetailFieldsHeadingTag() { $tag = $this->owner->config()->detail_fields_heading_level; return $tag ? $tag : Config::inst()->get(static::class, 'default_detail_fields_heading_level'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetailFieldsHeadingText()\n {\n return _t(__CLASS__ . '.DEFAULTHEADING', 'Details');\n }", "public function getDetailFieldsUseHeading()\n {\n if ($this->owner->config()->detail_fields_use_heading) {\n return true;\n }\n \n return Config::i...
[ "0.70912796", "0.6963582", "0.6960953", "0.6947727", "0.65913796", "0.64447314", "0.6399137", "0.6294349", "0.62500787", "0.6234815", "0.61730003", "0.614735", "0.6100082", "0.60906035", "0.6072378", "0.6031449", "0.6023002", "0.5991228", "0.5955928", "0.5940286", "0.5936539"...
0.7109039
0
Answers the heading tag for an individual detail field.
Отвечает на тег заголовка для отдельного поля детали.
public function getDetailFieldHeadingTag() { $tag = $this->owner->config()->detail_field_heading_level; return $tag ? $tag : Config::inst()->get(static::class, 'default_detail_field_heading_level'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _field_heading($fval) \n {\n return '<span class=\"formHeading\">' . $this->descrip . '</span>';\n\t}", "public function getDetailFieldsHeadingTag()\n {\n $tag = $this->owner->config()->detail_fields_heading_level;\n \n return $tag ? $tag : Config::inst()->get(static::c...
[ "0.7092855", "0.70813286", "0.6961908", "0.668968", "0.64559317", "0.6373591", "0.63121974", "0.63007414", "0.6288896", "0.61918354", "0.61117387", "0.60844916", "0.60526043", "0.604193", "0.60316765", "0.60133535", "0.60132307", "0.59388226", "0.59297884", "0.59047943", "0.5...
0.7121493
0
Answers true if heading tags are to be used for each detail field.
Возвращает true, если для каждого поля detail должны использоваться теги заголовков.
public function getDetailFieldsUseHeading() { if ($this->owner->config()->detail_fields_use_heading) { return true; } return Config::inst()->get(static::class, 'default_detail_fields_use_heading'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasTitles()\n\t{\n\t\treturn true;\n\t}", "private function headings() {\n\t\t$this->section_data['general_h_tags'] = array(\n\t\t\t'name' \t\t\t\t\t=> 'general_h_tags',\n\t\t\t'label' \t\t\t\t=> __( 'Headings', 'fixedtoc' ),\n\t\t\t'default' \t\t\t=> array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ),\...
[ "0.6309639", "0.63081527", "0.63025033", "0.6155098", "0.6054593", "0.6009016", "0.5937454", "0.59213156", "0.58910614", "0.5847454", "0.5825849", "0.5814774", "0.58121294", "0.5799877", "0.5799877", "0.57980186", "0.5781381", "0.5766826", "0.57311994", "0.5702651", "0.566794...
0.7364285
0
Answers true if the detail fields are to be shown inline.
Возвращает true, если поля деталей должны отображаться в строку.
public function getDetailFieldsInline() { if ($this->owner->config()->detail_fields_inline) { return true; } return Config::inst()->get(static::class, 'default_detail_fields_inline'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isInline() : bool\n {\n return $this->getDisposition() == 'inline';\n }", "public function hasDetailFields()\n {\n return $this->owner->getDetailFields()->exists();\n }", "public function showOnDetail(): bool\n {\n return $this->showOnDetail;\n }", "publ...
[ "0.701981", "0.69370335", "0.6916581", "0.6634512", "0.64370567", "0.64312124", "0.63446665", "0.63045967", "0.62210757", "0.62209445", "0.61513007", "0.6076819", "0.603383", "0.6032877", "0.59685636", "0.5938807", "0.58799934", "0.5753967", "0.5743322", "0.5740464", "0.57241...
0.8241858
0
Answers true if the detail fields header is to be hidden.
Возвращает true, если заголовок полей деталей должен быть скрыт.
public function getDetailFieldsHideHeader() { if ($this->owner->config()->detail_fields_hide_header) { return true; } return Config::inst()->get(static::class, 'default_detail_fields_hide_header'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_hidden() {\n return $this->hidden;\n }", "function is_hidden() {\n return $this->hidden;\n }", "function is_hidden() {\n return $this->hidden;\n }", "public function isHidden()\n {\n return false;\n }", "public function isHidden()\n {\n retur...
[ "0.71130896", "0.71130896", "0.71130896", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", "0.7101491", ...
0.7996131
0
Answers true if the detail fields icons are to be hidden.
Возвращает true, если иконки полей деталей должны быть скрыты.
public function getDetailFieldsHideIcons() { if ($this->owner->config()->detail_fields_hide_icons) { return true; } return Config::inst()->get(static::class, 'default_detail_fields_hide_icons'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isHidden();", "public function isHidden();", "public function isHidden();", "public function isHidden();", "function is_hidden() {\n return $this->hidden;\n }", "function is_hidden() {\n return $this->hidden;\n }", "function is_hidden() {\n return $this->hidde...
[ "0.710308", "0.710308", "0.710308", "0.710308", "0.7055139", "0.7055139", "0.7055139", "0.6999879", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.6989495", "0.69...
0.83315724
0
Answers true if the detail fields names are to be hidden.
Возвращает true, если имена полей деталей должны быть скрыты.
public function getDetailFieldsHideNames() { if ($this->owner->config()->detail_fields_hide_names) { return true; } return Config::inst()->get(static::class, 'default_detail_fields_hide_names'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_hidden() {\n return $this->hidden;\n }", "function is_hidden() {\n return $this->hidden;\n }", "function is_hidden() {\n return $this->hidden;\n }", "public function hasDetailFields()\n {\n return $this->owner->getDetailFields()->exists();\n }", "publi...
[ "0.7070926", "0.7070926", "0.7070926", "0.7025343", "0.69730175", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", "0.6970787", ...
0.78455234
0
Answers the text for the detail fields heading.
Отвечает на текст для заголовка полей деталей.
public function getDetailFieldsHeadingText() { return _t(__CLASS__ . '.DEFAULTHEADING', 'Details'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetailsHeadingText()\n {\n return $this->DetailsHeading ? $this->DetailsHeading : _t(__CLASS__ . '.DETAILS', 'Details');\n }", "function _field_heading($fval) \n {\n return '<span class=\"formHeading\">' . $this->descrip . '</span>';\n\t}", "public function getHeaderTe...
[ "0.73353577", "0.6947854", "0.6516628", "0.6475728", "0.64556664", "0.6383712", "0.63128984", "0.6310809", "0.6303933", "0.62615657", "0.6240406", "0.6204522", "0.6168996", "0.6157619", "0.61253446", "0.60651237", "0.60573375", "0.60571665", "0.6016311", "0.6007466", "0.59957...
0.7923815
0
Answers a string of class names for the detail fields wrapper.
Возвращает строку имен классов для обертки полей деталей.
public function getDetailFieldsClass() { return ViewTools::singleton()->array2att($this->owner->getDetailFieldsClassNames()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetailFieldsClassNames()\n {\n $classes = ['detail-fields'];\n \n $classes[] = $this->owner->DetailFieldsInline ? 'inline' : 'block';\n \n if ($this->owner->DetailFieldsHideIcons) {\n $classes[] = 'hide-icons';\n }\n \n if ($t...
[ "0.7474539", "0.6285461", "0.62081903", "0.60115886", "0.5948103", "0.5846506", "0.58076805", "0.577823", "0.5769568", "0.5754579", "0.5743119", "0.56991565", "0.5642164", "0.563993", "0.5634435", "0.56261337", "0.5579919", "0.55673397", "0.5551287", "0.5550516", "0.55445594"...
0.82257617
0
Answers an array of class names for the detail fields wrapper.
Возвращает массив имен классов для обертки полей деталей.
public function getDetailFieldsClassNames() { $classes = ['detail-fields']; $classes[] = $this->owner->DetailFieldsInline ? 'inline' : 'block'; if ($this->owner->DetailFieldsHideIcons) { $classes[] = 'hide-icons'; } if ($this->owner->Det...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetailFieldsClass()\n {\n return ViewTools::singleton()->array2att($this->owner->getDetailFieldsClassNames());\n }", "public function fields() : array\n {\n $fields = [];\n foreach ($this->queries as $class) {\n $fields[$class::$name] = (new $class)->to...
[ "0.79805887", "0.62823695", "0.62771416", "0.6243713", "0.62187964", "0.6178151", "0.6137691", "0.6119625", "0.6077622", "0.60653204", "0.6037557", "0.6023431", "0.59633017", "0.59078026", "0.58966416", "0.5884871", "0.58751196", "0.5819977", "0.5810677", "0.5804589", "0.5795...
0.7592409
1
Gets the Javascript Integration status
Получает статус интеграции JavaScript
public function getJsIntegrationStatus(Request $request) { return $this->employer->getJsIntegrationStatus($request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatus(){\n $this->client->request('GET','/session/status');\n $status_message = $this->getJsonResponse();\n return $status_message;\n }", "public function getSiteStatus();", "public function getAjaxStatus() {}", "public function getSiteStatus()\n {\n retu...
[ "0.6877553", "0.67437917", "0.6667384", "0.6522912", "0.6502797", "0.64502287", "0.6427195", "0.63840896", "0.63656706", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63482004", "0.63222593", "...
0.7565544
0
Adds a Vertex to the Graph that corresponds to the Candidate if it is not already present. Otherwise returns the existing Vertex associated with the Candidate.
Добавляет вершину в граф, соответствующую кандидату, если она еще не существует. В противном случае возвращает существующую вершину, связанную с кандидатом.
public function addCandidateToGraph(Candidate $candidate) : Vertex { $id = $candidate->getId(); if ($this->graph->hasVertex($id)) { $vertex = $this->graph->getVertex($id); } else { $vertex = $this->graph->createVertex($id); $vertex->setAttribute(self::CAND...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVertex($id) {\n\t\tif(!isset($this->inAdjacents[$id])) {\n\t\t\t$this->inAdjacents[$id] = array();\n\t\t}\n\t\t\n\t\tif(!isset($this->outAdjacents[$id])) {\n\t\t\t$this->outAdjacents[$id] = array();\n\t\t}\n\t}", "public function getEdgeSource(EdgeInterface $edge): VertexInterface;", "public...
[ "0.5201435", "0.50961584", "0.49450403", "0.48364013", "0.479496", "0.4760712", "0.469797", "0.46798828", "0.45601657", "0.45565608", "0.45036912", "0.4479735", "0.44686842", "0.4462724", "0.4419987", "0.44142875", "0.43477973", "0.4337454", "0.42777482", "0.42574704", "0.425...
0.80237544
0
Remove candidates from the graph so that they are no longer considered. The parameters to this method are
Удалите кандидатов из графа, чтобы они больше не учитывались. Параметры этого метода
public function removeCandidates(Candidate ...$candidates) : void { foreach ($candidates as $candidate) { $vertex = $this->graph->getVertex($candidate->getId()); $vertex->destroy(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prune ();", "protected function pruning()\n {\n $this->pizzas()->detach();\n }", "public function prune()\n {\n if (!$this->isEmpty()) {\n $this->root->prune();\n $this->root = null;\n }\n }", "function resetPred(){\n\t\tforeach($vertexList as $...
[ "0.6071886", "0.6030505", "0.5967655", "0.5751932", "0.56833756", "0.54475", "0.54475", "0.53821534", "0.5364622", "0.53504866", "0.53417474", "0.53417474", "0.5341454", "0.5341454", "0.5341454", "0.5341454", "0.5321652", "0.53089243", "0.52705795", "0.52639025", "0.5192794",...
0.7194651
0
Returns the text value of the [[state]] property.
Возвращает текстовое значение свойства [[state]].
public function getStateText() { $options = $this->getStateOptions(); return isset($options[$this->state]) ? $options[$this->state] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getState() : string\n {\n return $this->state;\n }", "public function getState(): string\n {\n return $this->state;\n }", "public function getState(): string\n {\n return $this->state;\n }", "public function getState(): string\n {\n return $thi...
[ "0.79011905", "0.7796921", "0.7796921", "0.7789376", "0.7637851", "0.75732815", "0.7480519", "0.72880584", "0.7254427", "0.72012156", "0.7122617", "0.710406", "0.7079944", "0.7079944", "0.7057695", "0.7045537", "0.7045537", "0.70211995", "0.69877803", "0.69877803", "0.6976536...
0.84278095
0
Lists all Viaje entities.
Перечисляет все сущности Viaje.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('ArmensaViajesBundle:Viaje')->findAll(); return array( 'entities' => $entities, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n //\n return Viaje::all();\n }", "public function getAllEntities();", "public function index()\n {\n return Entity::all();\n }", "function listaAll() {\n require ROOT . \"config/bootstrap.php\";\n return $em->getRepository('models\\E...
[ "0.7374998", "0.68355143", "0.6808762", "0.68059176", "0.6733168", "0.6727673", "0.66925764", "0.65782225", "0.6498571", "0.6496393", "0.64402497", "0.6395564", "0.6375229", "0.6370838", "0.63493043", "0.6301545", "0.6278534", "0.62780195", "0.62760425", "0.62635", "0.6256401...
0.71297383
1
Lists all vxv entities.
Список всех сущностей vxv.
public function vxvAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('ArmensaViajesBundle:Viaje')->findAll(); return array( 'entities' => $entities, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function vxcAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('ArmensaViajesBundle:Viaje')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "public function indexAction()\n {\n $em = $this->...
[ "0.7099036", "0.6628833", "0.6343633", "0.6304857", "0.6153569", "0.6143793", "0.612489", "0.60735244", "0.59821993", "0.59459615", "0.5903298", "0.58897024", "0.5885917", "0.582877", "0.58117515", "0.5802448", "0.5779667", "0.576888", "0.57652813", "0.5756239", "0.5739994", ...
0.77532214
0