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
Returns count information for a provided response. Will return 0, 0 for invalid or empty responses.
Возвращает информацию о количестве для предоставленного ответа. Вернет 0, 0 для недопустимых или пустых ответов.
protected function get_response_counts($response) { $found = 0; $included = 0; if (isset($response->grouped->solr_filegroupingid->ngroups)) { // Get the number of results for file grouped queries. $found = $response->grouped->solr_filegroupingid->ngroups; $in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function yummly_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $body = json_decode($response['body'], true);\n return isset($body['count']) ? intval($body['count']) : false;\n }", "public function getResponseCount()\n\t{\n\t\t$responses = $this...
[ "0.77404964", "0.73059255", "0.71634954", "0.71056175", "0.7097843", "0.7087203", "0.7076966", "0.70715576", "0.6980638", "0.6936526", "0.6893497", "0.68162316", "0.6814357", "0.67987025", "0.67770797", "0.6702731", "0.6609876", "0.6567173", "0.65531707", "0.64891845", "0.646...
0.7337817
1
Retreive any missing main documents and attach provided files. The missingdocs array should be an array, indexed by document id, of main documents we need to retrieve. The value associated to the key should be an array of stored_files or stored file ids to attach to the result document. Return array also indexed by doc...
Получите любые отсутствующие основные документы и прикрепите предоставленные файлы. Массив missingdocs должен быть массивом, индексированным по идентификатору документа, содержащим основные документы, которые нам нужно получить. Значение, связанное с ключом, должно быть массивом хранимых файлов или идентификаторов хран...
protected function get_missing_docs($missingdocs) { if (empty($missingdocs)) { return array(); } $docids = array_keys($missingdocs); // Build a custom query that will get all the missing documents. $query = new \SolrQuery(); $this->set_query($query, '*'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function display_tripartite_docs($id){\n\n $id = decrypt($id);\n $society = SocietyOfferLetter::where('user_id', auth()->user()->id)->first();\n $society_details = SocietyOfferLetter::find($society->id);\n $ol_applications = OlApplication::where('id', $id)->with(['request_form', ...
[ "0.5158339", "0.50848234", "0.50113887", "0.49208054", "0.49134216", "0.49117202", "0.4866552", "0.48521033", "0.481928", "0.48160812", "0.47630733", "0.47216538", "0.46955582", "0.46748927", "0.46545142", "0.46534598", "0.46481547", "0.46155483", "0.45986372", "0.45928583", ...
0.75582355
0
Checks to see if a passed file is indexable.
Проверяет, можно ли индексировать переданный файл.
protected function file_is_indexable($file) { if (!empty($this->config->maxindexfilekb) && ($file->get_filesize() > ($this->config->maxindexfilekb * 1024))) { // The file is too big to index. return false; } $mime = $file->get_mimetype(); if ($mime == 'applicati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uses_file_indexing() {\n return true;\n }", "function hasIndex($path, $filename)\n {\n $abs = $path.'\\\\'.$filename;\n\n if(file_exists($abs))\n {\n $info = pathinfo($abs);\n\n if (is_dir($abs)) {\n $dir = new DirectoryIterat...
[ "0.69158167", "0.68911785", "0.6787629", "0.6761945", "0.66530395", "0.65841174", "0.6559269", "0.6475115", "0.64705", "0.63869315", "0.6292608", "0.60971665", "0.608276", "0.6047081", "0.6044642", "0.5890538", "0.5854208", "0.5816649", "0.5781987", "0.5745017", "0.5744816", ...
0.78346115
0
Return true if file indexing is supported and enabled. False otherwise.
Верните true, если индексирование файлов поддерживается и включено. Иначе false.
public function file_indexing_enabled() { return (bool)$this->config->fileindexing; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uses_file_indexing() {\n return true;\n }", "protected function file_is_indexable($file) {\n if (!empty($this->config->maxindexfilekb) && ($file->get_filesize() > ($this->config->maxindexfilekb * 1024))) {\n // The file is too big to index.\n return false;\n...
[ "0.7904547", "0.6738836", "0.66007125", "0.6571293", "0.6497131", "0.64631677", "0.63461316", "0.6341854", "0.6321112", "0.6318555", "0.6279617", "0.6235169", "0.6214617", "0.619657", "0.6163514", "0.610955", "0.61092067", "0.60848236", "0.6062294", "0.60011375", "0.59803236"...
0.8639273
0
Is the solr server properly configured?.
Правильно ли настроена сервер solr?
public function is_server_configured() { if (empty($this->config->server_hostname) || empty($this->config->indexname)) { return 'No solr configuration found'; } if (!$client = $this->get_search_client(false)) { return get_string('engineserverstatus', 'search'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_installed() {\n return function_exists('solr_get_version');\n }", "public function is_server_ready() {\n\n $configured = $this->is_server_configured();\n if ($configured !== true) {\n return $configured;\n }\n\n // As part of the above we have a...
[ "0.7063379", "0.69436884", "0.65957624", "0.6428939", "0.63026583", "0.6142883", "0.60936415", "0.60374147", "0.6007144", "0.5940829", "0.5935877", "0.59016365", "0.58843374", "0.57983756", "0.5768858", "0.5750221", "0.57410985", "0.57216763", "0.5712808", "0.5696866", "0.566...
0.75209564
0
Returns the solr server major version.
Возвращает основную версию сервера Solr.
public function get_solr_major_version() { if ($this->solrmajorversion !== null) { return $this->solrmajorversion; } // We should really ping first the server to see if the specified indexname is valid but // we want to minimise solr server requests as they are expensive. sy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMajorVersion()\n {\n return $this->major_version;\n }", "public function getMajorVersion(): string {\n return $this->majorVersion;\n }", "public function versionMajor() { return $this->_m_versionMajor; }", "public function getMajorVersion() {}", "public function minimum_...
[ "0.76375264", "0.7621259", "0.72838813", "0.72543895", "0.7243337", "0.7233264", "0.7080781", "0.69703", "0.6951646", "0.69502294", "0.69228524", "0.69212204", "0.68455356", "0.6810683", "0.67780834", "0.67067945", "0.67019886", "0.67011684", "0.6691751", "0.66670233", "0.660...
0.82396156
0
Checks if the PHP Solr extension is available.
Проверяет, доступна ли PHP-расширение Solr.
public function is_installed() { return function_exists('solr_get_version'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function installSolr()\n {\n $this->span(\"Option not supported for this Linux distribution and version.\", 'error');\n }", "public static function check_required_ext() {\r\n $shmop = extension_loaded('shmop');\r\n $sysvsem = extension_loaded('sysvsem');\r\n if ($shmop && $sysvsem) {...
[ "0.6474907", "0.6369485", "0.6118117", "0.61093074", "0.6106799", "0.6102086", "0.6071297", "0.6029455", "0.59916615", "0.5970481", "0.5970481", "0.5922955", "0.58942163", "0.58739233", "0.5865526", "0.58651394", "0.5810938", "0.5787059", "0.5768697", "0.5749014", "0.57462907...
0.74286944
0
Returns a curl object for conntecting to solr.
Возвращает объект curl для подключения к solr.
public function get_curl_object() { if (!is_null($this->curl)) { return $this->curl; } // Connection to Solr is allowed to use 'localhost' and other potentially blocked hosts/ports. $this->curl = new \curl(['ignoresecurity' => true]); $options = array(); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function solr_proxy_main() {\n $params = array();\n\tglobal $userdata;\n\n // The names of Solr parameters that may be specified multiple times.\n $multivalue_keys = array('bf', 'bq', 'facet.date', 'facet.date.other', 'facet.field', 'facet.query', 'fq', 'pf', 'qf');\n\n foreach ($_GET as $key => $value...
[ "0.64386106", "0.63092905", "0.60837996", "0.596888", "0.59659225", "0.59054947", "0.5852627", "0.57875866", "0.5756786", "0.57407564", "0.5712075", "0.5664801", "0.56377655", "0.5634256", "0.55847466", "0.5571321", "0.55468297", "0.55258715", "0.54942966", "0.5458641", "0.54...
0.8133004
0
Return a Moodle url object for the server connection.
Верните объект Moodle url для соединения с сервером.
public function get_connection_url($path) { // Must use the proper protocol, or SSL will fail. $protocol = !empty($this->config->secure) ? 'https' : 'http'; $url = $protocol . '://' . rtrim($this->config->server_hostname, '/'); if (!empty($this->config->server_port)) { $url ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getServerUrl() {\n return $this->conn->getServerUrl();\n }", "public function getServerUrl() {\n $host = $this->getHeader(Header::HEADER_HOST);\n if (!$host) {\n $host = 'localhost';\n }\n\n if ($this->isSecure) {\n return 'https://' . $host;\...
[ "0.74605083", "0.691433", "0.6877399", "0.6744966", "0.66801834", "0.66236573", "0.649191", "0.6455794", "0.64392775", "0.64328206", "0.642971", "0.64204705", "0.64204377", "0.63444483", "0.63231915", "0.63135827", "0.6288305", "0.62718254", "0.62709564", "0.6267786", "0.6260...
0.725451
1
Solr supports deleting the index for a course.
Solr поддерживает удаление индекса для курса.
public function delete_index_for_course(int $oldcourseid) { $client = $this->get_search_client(); try { $client->deleteByQuery('courseid:' . $oldcourseid); $client->commit(true); return true; } catch (\Exception $e) { throw new \core_search\engine_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAction()\n {\n if ( $this->getRequest()->getParam('id') > 0) {\n try {\n $coursedoc = Mage::getModel('bs_coursedoc/coursedoc');\n $coursedoc->setId($this->getRequest()->getParam('id'))->delete();\n Mage::getSingleton('adminhtml...
[ "0.70918506", "0.68675065", "0.6867137", "0.68669105", "0.67086065", "0.6596933", "0.6543226", "0.6521045", "0.651846", "0.6515801", "0.64940685", "0.64712375", "0.64231974", "0.6408959", "0.63494295", "0.62561333", "0.6247472", "0.62444454", "0.6211767", "0.6196797", "0.6111...
0.73220253
0
/ Method to process the notifySmsDeliveryReceipt SOAP request from the client The programmer must save some code to record the parameters received into the database/file for further processing
Метод для обработки SOAP-запроса notifySmsDeliveryReceipt от клиента. Программисту необходимо сохранить некоторый код для записи полученных параметров в базу данных/файл для дальнейшей обработки
function notifySmsDeliveryReceipt($correlator,$deliveryStatus){ global $timeStamp; global $subReqID; global $traceUniqueID; //variables to be saved in a database or processed $msg_timeStamp=$timeStamp; $msg_subReqID=$subReqID; $msg_traceUniqueID=$traceUniqueID; $msg_correlator=$cor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function postProcessUpdateReceipt()\n {\n }", "public function process_gateway_notification() {\r\n\t\t$order_id = self::get_post_var( 'OrderID' );\r\n\t\t$message = self::get_post_var( 'Message' );\r\n\t\t$status_code = self::get_post_var( 'StatusCode' );\r\n\t\t$prev_statu...
[ "0.66655177", "0.6397369", "0.61713976", "0.6044066", "0.6040718", "0.59833896", "0.5917501", "0.58195776", "0.58002305", "0.57915616", "0.5745082", "0.56682366", "0.56661737", "0.5655749", "0.55598557", "0.5550321", "0.5512129", "0.5503838", "0.5487822", "0.5481361", "0.5479...
0.75695753
0
/ Method to process the notifySmsReception SOAP request from the client The programmer must save some code to record the parameters received into the database/file for further processing
Метод для обработки SOAP-запроса notifySmsReception от клиента. Программисту необходимо сохранить некоторый код для записи полученных параметров в базу данных/файл для дальнейшей обработки
function notifySmsReception($correlator,$message){ //refer to the global variables set by the XML parser from the SOAP header global $traceUniqueID; global $spRevId; global $spRevpassword; global $spId; global $serviceId; global $linkid; //soap header parameters $msg_spRevId=$spRevId; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function notifySmsDeliveryReceipt($correlator,$deliveryStatus){\r\n\t\t\tglobal $timeStamp;\r\n\t\t\tglobal $subReqID;\r\n\t\t\tglobal $traceUniqueID;\r\n\t\t\t\r\n\t\t\t//variables to be saved in a database or processed\r\n\t\t\t$msg_timeStamp=$timeStamp;\r\n\t\t\t$msg_subReqID=$subReqID;\r\n\t\t\t$msg_traceUniq...
[ "0.63784087", "0.6218579", "0.6094773", "0.6062073", "0.6008472", "0.59750414", "0.5975008", "0.5877912", "0.5796604", "0.57894254", "0.57369137", "0.5728501", "0.5720912", "0.57039386", "0.5642211", "0.5619749", "0.560745", "0.56046283", "0.55720204", "0.5560454", "0.5523847...
0.73905337
0
Now count the number of photos already in the database for this post
Теперь посчитайте количество фотографий, уже находящихся в базе данных для этого поста
function how_many_photos($data) { global $db; $query = 'SELECT spotlight_post_id FROM gv_spotlight_post_image WHERE (spotlight_image_block = 0) AND spotlight_post_id = ' . $data; $result = mysql_query($query, $db) or die(mysql_error($db)); if(mysql_num_rows($result) > 0) { $number_of_images = m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function record_count_photo(){\n $sql = $this->db->query(\"select * from `gallery` where status='1' and publish='1' and type='1'\");\n return $sql->num_rows();\n }", "public function count()\n {\n return $this->getImages()->count();\n }", "public function countGalleryImage...
[ "0.780966", "0.7443742", "0.717413", "0.7172642", "0.71261954", "0.71117663", "0.7102031", "0.7006374", "0.69846845", "0.68399876", "0.6803296", "0.6783839", "0.6729155", "0.67218703", "0.67039055", "0.67036545", "0.6691771", "0.6659499", "0.66453946", "0.66396224", "0.663663...
0.75709695
1
Update user balance after logging the transaction
Обновить баланс пользователя после записи транзакции
private static function logTransactionUpdateBalance($userId,$transactionType,$amount){ if($transactionType != 'charge'){ // Update User Balance $User = User::where('id',$userId)->select('id','balance')->first(); if($transactionType == 'withdraw'){ $User->balan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function updateBalance()\n {\n if (!auth()->user()->hasRole('admin')) {\n auth()->user()->update([\n 'credit' => auth()->user()->credit - $this->totalCost()\n ]);\n }\n }", "public function update_user_balance($user_id)\n\t\t{\n\t\t\t$this->is_login...
[ "0.78866696", "0.7121748", "0.69715625", "0.68346554", "0.66857535", "0.66464335", "0.65720725", "0.6536411", "0.65247357", "0.65052557", "0.64810747", "0.64774835", "0.6409805", "0.6324399", "0.6255594", "0.6225928", "0.6223625", "0.62147725", "0.62111217", "0.6205999", "0.6...
0.71761644
1
Delete CF Pro DB Table
Удалить таблицу CF Pro DB
function caldera_forms_pro_drop_tables(){ global $wpdb; $table_name = $wpdb->prefix . 'cf_pro_messages'; $sql = "DROP TABLE IF EXISTS $table_name"; $wpdb->query($sql); delete_option('cf_pro_db_v'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($table);", "function cp_delete_db_tables() {\r\n global $wpdb, $app_db_tables;\r\n\r\n echo '<p class=\"info\">';\r\n\r\n foreach ( $app_db_tables as $key => $value ) {\r\n $sql = \"DROP TABLE IF EXISTS \". $wpdb->prefix . $value;\r\n $wpdb->query($sql);\r\n\r\n ...
[ "0.71563727", "0.71361417", "0.7114313", "0.71037966", "0.69856507", "0.6984767", "0.6881291", "0.68637085", "0.683493", "0.6819857", "0.6793198", "0.67764807", "0.67654276", "0.6747497", "0.67440975", "0.6733918", "0.66952956", "0.6691924", "0.66807246", "0.6667285", "0.6634...
0.72045606
0
Get the URL for the Caldera Forms Pro App
Получить URL для приложения Caldera Forms Pro
function caldera_forms_pro_app_url(){ if( ! defined( 'CF_PRO_APP_URL' ) ){ /** * Default URL for CF Pro App */ define( 'CF_PRO_APP_URL', 'https://app.calderaformspro.com' ); } /** * Filter URL for Caldera Forms Pro app * * Useful for local dev or running your own instance of app * * @since 0.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAppUrl() {\r\n\r\n $url = getHost() . getAppPath();\r\n\r\n return $url;\r\n\r\n }", "public function getAppUrl(){\n return (app()->environment('local')) ? 'https://dev.adapt.libretexts.org' : config('app.url');\n }", "public function get_redirect_uri() {\n\n\t\treturn admin_url( '...
[ "0.74120367", "0.68687624", "0.6782437", "0.6771919", "0.6740096", "0.67041826", "0.6643197", "0.6628814", "0.6614428", "0.6544503", "0.6537374", "0.65324444", "0.65194553", "0.6470543", "0.6465585", "0.6415601", "0.64127135", "0.6396804", "0.6392746", "0.6391639", "0.6391639...
0.82464993
0
// Install the SIL dictionary infrastructure if needed.
// Установите инфраструктуру словаря SIL, если это необходимо.
function install_sil_dictionary_infrastructure() { create_search_tables(); create_reversal_tables(); set_options(); set_field_sortorder(); //upload_stylesheet(); register_semantic_domains_taxonomy(); register_part_of_speech_taxonomy(); register_language_taxonomy(); register_webstrings_taxonomy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install() {}", "public function loadInstaller() {\n\n $objManager = new class_module_packagemanager_manager();\n $arrModules = $objManager->getAvailablePackages();\n\n $this->arrMetadata = array();\n foreach($arrModules as $objOneModule)\n if($objOneModule->getBitP...
[ "0.5524984", "0.55036944", "0.54925716", "0.5361281", "0.5335393", "0.5169431", "0.5169431", "0.5149602", "0.51007533", "0.5085973", "0.5083907", "0.50509095", "0.50509095", "0.50461096", "0.50419873", "0.5041909", "0.5038159", "0.5034772", "0.49359745", "0.49204338", "0.4904...
0.7032753
0
// Provide a taxonomy for semantic domains in an online dictionary.
// Предоставьте таксономию семантических доменов в онлайн-словаре.
function register_semantic_domains_taxonomy () { $labels = array( 'name' => _x( 'Semantic Domains', 'taxonomy general name' ), 'singular_name' => _x( 'Semantic Domain', 'taxonomy singular name' ), 'search_items' => __( 'Search Domains' ), 'all_items' => __( 'All Semantic Domains' )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function taxonomy();", "function get_taxonomy($taxonomy)\n {\n }", "function rew_genreic_taxonomy(){\n\n\t$args= array(\n\t\t'label'=>'Services'\n\t\t);\n\tregister_taxonomy( 'services', array('apartment', 'villa', 'land', 'store'), $args );\n}", "function humcore_create_taxonomies() {\n\t// Add...
[ "0.7357998", "0.633915", "0.63367283", "0.6295454", "0.61599255", "0.615679", "0.6155072", "0.6094669", "0.6072738", "0.6038915", "0.59729993", "0.59704864", "0.596167", "0.59541714", "0.5953302", "0.5938137", "0.59322786", "0.5908872", "0.5906671", "0.59043896", "0.5894999",...
0.738532
0
Uninstall custom taxonomies set up here by the plugin.
Удалите пользовательские таксономии, настроенные здесь плагином.
function unregister_custom_taxonomies () { global $wpdb; $sql = "UPDATE $wpdb->term_taxonomy SET count = 1 WHERE count = 0"; $wpdb->query( $sql); unregister_custom_taxonomy ( 'sil_semantic_domains' ); unregister_custom_taxonomy ( 'sil_parts_of_speech' ); unregister_custom_taxonomy ( 'sil_writing_systems' ); un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unregister_taxonomies()\n {\n }", "protected function reset_taxonomies()\n {\n foreach (get_taxonomies() as $tax) {\n _unregister_taxonomy($tax);\n }\n create_initial_taxonomies();\n }", "function ks_unregister_default_taxonomies() {\n unre...
[ "0.84371597", "0.743861", "0.74265456", "0.72616994", "0.72006136", "0.71433705", "0.70604765", "0.70251065", "0.7008316", "0.69889754", "0.6918193", "0.6782261", "0.67288244", "0.664631", "0.6621243", "0.6608843", "0.6594509", "0.65935105", "0.6500693", "0.6465326", "0.63912...
0.80677396
1
// Remove a custom (not builtin) taxonomy.
// Удалить пользовательскую (не встроенную) таксономию.
function unregister_custom_taxonomy ( $taxonomy ) { global $wp_taxonomies; if ( ! $taxonomy->builtin ) { $terms = get_terms( $taxonomy ); foreach ( $terms as $term ) { wp_delete_term( $term->term_id, $taxonomy ); } unset( $wp_taxonomies[$taxonomy]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function remove_taxonomy( $taxonomy_name ) {\n\t\tif ( ! in_array( $taxonomy_name, $this->get_taxonomies(), true ) ) {\n\t\t\treturn;\n\t\t}\n\t\tunset( $this->taxonomies[ array_search( $taxonomy_name, $this->get_taxonomies(), true ) ] );\n\t}", "public function removeTaxonomyTerm($slug, $taxonomy);", ...
[ "0.7505771", "0.7332926", "0.7163043", "0.70509654", "0.70106816", "0.6919916", "0.6663194", "0.6653676", "0.6646267", "0.66397506", "0.65426016", "0.65285736", "0.64578986", "0.6408376", "0.6246474", "0.6246446", "0.61783946", "0.6138453", "0.6136498", "0.6098294", "0.606807...
0.768015
0
// Uninstall custom tables set up by the plugin.
// Удалить пользовательские таблицы, настроенные плагином.
function uninstall_custom_tables () { uninstall_custom_table( SEARCHTABLE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uninstall(){\n MergeRequestComment::dropTable();\n MergeRequest::dropTable();\n CommitCache::dropTable();\n Repo::dropTable();\n Project::dropTable();\n }", "public static function uninstall() {\n $sql = 'DROP TABLE IF EXISTS `'.self::tableName.'`;';\n...
[ "0.7394493", "0.7353897", "0.73148793", "0.7168884", "0.70924985", "0.6964701", "0.69434506", "0.68846446", "0.68774813", "0.68563443", "0.68337536", "0.68241984", "0.6800986", "0.6772397", "0.67410296", "0.67207503", "0.67190355", "0.66812474", "0.6634307", "0.6630845", "0.6...
0.77850246
0
// Uninstall a custom table.
// Удаление пользовательской таблицы.
function uninstall_custom_table ( $table ) { global $wpdb; $sql = "DROP TABLE " . $table . ";"; $return_value = $wpdb->get_var( $sql ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uninstall_custom_tables () {\n\tuninstall_custom_table( SEARCHTABLE );\n}", "public static function uninstall() {\n $sql = 'DROP TABLE IF EXISTS `'.self::tableName.'`;';\n db_query($sql);\n }", "public function uninstall(){\n MergeRequestComment::dropTable();\n MergeRequ...
[ "0.73688996", "0.7293513", "0.68297935", "0.6656285", "0.66352844", "0.6629389", "0.66157573", "0.6554082", "0.64667493", "0.6444726", "0.6432928", "0.64077246", "0.6364412", "0.6318164", "0.62566656", "0.6235323", "0.62310904", "0.62210387", "0.6216122", "0.618903", "0.61784...
0.7839316
0
affiche le detail du cocktail $cocktail
показывает детали коктейля $cocktail
public function view($cocktail) { $this->set('cocktail', $this->Cocktails->get($cocktail)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCocktail($id){\r\n $cocktails = array();\r\n $con = $this->db->getConnection();\r\n foreach(mysqli_query($con, 'SELECT * FROM cocktail_details WHERE idcoccktail_details='.$id)as $key){\r\n $titel = $key['c_name'];\r\n $description = $key['c_description'];\r\n $id ...
[ "0.6276121", "0.60229695", "0.5954305", "0.5857318", "0.56042", "0.55494034", "0.54885584", "0.54659456", "0.5464022", "0.54589", "0.5447622", "0.53956836", "0.53699887", "0.53479254", "0.53452706", "0.5290255", "0.5284558", "0.5278124", "0.52720845", "0.5268075", "0.5256777"...
0.7225833
0
Filter Events on type and action.
Фильтрация событий по типу и действию.
protected static function filterEvents(array $events, $type, $action) { return array_filter($events, function($m) use ($type, $action) { return $m->type === $type && $m->action === $action; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function withAction($type)\n {\n return $this->filter(function($visit) use($type) {\n return $visit->hasAction($type);\n });\n }", "protected function _run_filters($type)\n {\n $filters = array_merge_recursive((new ApplicationController())->_filters(), $this->_filt...
[ "0.6470973", "0.60970163", "0.6093109", "0.6033326", "0.59747356", "0.5947887", "0.5860879", "0.57912797", "0.5768657", "0.57123065", "0.5705815", "0.5677767", "0.5553431", "0.55365056", "0.5460435", "0.5432366", "0.5429818", "0.54180694", "0.54180694", "0.5417235", "0.541281...
0.765489
0
List origins List configured origins for a user
Список источников Список настроенных источников для пользователя
public function origins() { return $this->get('/user/load_balancers/origins'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllowedOrigins() {\n return $this->params['allowedOrigins'];\n }", "function get_allowed_http_origins()\n {\n }", "public function setOrigins($value)\n {\n return $this->set('Origins', $value);\n }", "public function setOrigins($value)\n {\n return $t...
[ "0.7011769", "0.67797923", "0.6674397", "0.66733825", "0.66733825", "0.66301066", "0.6336242", "0.63339126", "0.63177675", "0.6204805", "0.59686744", "0.5915987", "0.5743858", "0.57243156", "0.55870456", "0.55344105", "0.5526637", "0.5414796", "0.5340577", "0.5340577", "0.531...
0.80445385
0
Get the name of the triggering element based on the field name and the input array.
Получите имя запускающего элемента на основе имени поля и массива входных данных.
protected static function getTriggeringElementName($field_name, $input) { $triggering_element_name = $field_name . '_' . LANGUAGE_NONE . '_' . (sizeof( $input ) - 1) . '_upload_button'; return $triggering_element_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_trigger_name() {\n\t\treturn Clean::string( $this->get_meta( 'trigger_name' ) );\n\t}", "protected function getInputName(){\n if($this->_name===null)\n $this->defineNameId();\n return $this->_name;\n }", "public function getElementName();", "public function get_field_...
[ "0.6288559", "0.6186045", "0.60864276", "0.6007038", "0.58979744", "0.58470035", "0.5840798", "0.57785344", "0.5714716", "0.5694819", "0.567604", "0.5667586", "0.56617886", "0.56435", "0.5627257", "0.5601392", "0.55555177", "0.55555063", "0.5525391", "0.5488028", "0.5476943",...
0.7675703
0
Gets aggregation information for a given object
Получает информацию о агрегации для заданного объекта
function aggregate_info($object) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aggregation_info($object)\n{\n}", "public function getAggregations();", "public function getAggregate()\n {\n return $this->aggregate;\n }", "public function getAggregation()\n {\n return $this->aggregation;\n }", "public function getAggregations()\n {\n return ...
[ "0.7978132", "0.7067564", "0.6797081", "0.6693649", "0.65677035", "0.64635307", "0.64427024", "0.64077115", "0.5940156", "0.59228295", "0.5869769", "0.58090305", "0.5767733", "0.5715524", "0.5583498", "0.5509671", "0.5475969", "0.5464699", "0.5408493", "0.54033256", "0.537457...
0.7609567
1
Gets aggregation information for a given object
Получает информацию об агрегации для заданного объекта
function aggregation_info($object) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aggregate_info($object)\n{\n}", "public function getAggregations();", "public function getAggregate()\n {\n return $this->aggregate;\n }", "public function getAggregation()\n {\n return $this->aggregation;\n }", "public function getAggregations()\n {\n return Ar...
[ "0.7609567", "0.7067564", "0.6797081", "0.6693649", "0.65677035", "0.64635307", "0.64427024", "0.64077115", "0.5940156", "0.59228295", "0.5869769", "0.58090305", "0.5767733", "0.5715524", "0.5583498", "0.5509671", "0.5475969", "0.5464699", "0.5408493", "0.54033256", "0.537457...
0.7978132
0
Checks whether an entity is registered in the identity map of this UnitOfWork.
Проверяет, зарегистрирован ли сущность в карте идентичностей этого UnitOfWork.
public function isInIdentityMap($entity) { $oid = spl_object_hash($entity); if (!isset($this->entityIdentifiers[$oid])) { return false; } /** @var EntityMetadata $classMetadata */ $classMetadata = $this->manager->getClassMetadata(get_class($entity)); $id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _hasIdentity($id) {\r\n \treturn array_key_exists($id, $this->_identityMap);\r\n }", "public function hasIdentity() : bool\n {\n return !empty($this->identity);\n }", "public static function hasIdentity() {\n\t\treturn Core_Store::has('identity');\n\t}", "public function...
[ "0.668908", "0.6675529", "0.6666879", "0.66195655", "0.65654486", "0.6562997", "0.6448229", "0.6399473", "0.63772565", "0.6297024", "0.624825", "0.62006736", "0.6179675", "0.61719424", "0.61330223", "0.61286944", "0.6080472", "0.6072597", "0.606885", "0.59992844", "0.59635013...
0.7468485
0
INTERNAL: Registers an entity as managed.
ВНУТРЕННИЙ: Зарегистрировать сущность как управляемую.
public function registerManaged($entity, array $id, \stdClass $data = null) { $oid = spl_object_hash($entity); $this->entityIdentifiers[$oid] = $id; $this->entityStates[$oid] = self::STATE_MANAGED; $this->originalEntityData[$oid] = $data; $this->addToIdentityMap($ent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function manageEntity($entity) {\n\t\t$primaryKey = $this->getPrimaryKey($entity);\n\t\t$key = $this->getEntityKey(get_class($entity), $primaryKey);\n\n\t\tif (isset($this->managedEntities[$key])) {\n\t\t\t$managedEntity = $this->managedEntities[$key];\n\t\t}\n\t\telse {\n\t\t\t$managedEntity = new Custo...
[ "0.6636056", "0.637053", "0.6343942", "0.6319556", "0.61010575", "0.60283864", "0.59603876", "0.5879334", "0.58499306", "0.5815679", "0.58040404", "0.57976866", "0.5773069", "0.577154", "0.57192945", "0.57081985", "0.5707316", "0.5650304", "0.56032914", "0.55732864", "0.55693...
0.7063601
0
Gets the original data of an entity. The original data is the data that was present at the time the entity was reconstituted from the database.
Получает исходные данные сущности. Исходные данные — это данные, которые были присутствовали в момент восстановления сущности из базы данных.
public function getOriginalEntityData($entity) { $oid = spl_object_hash($entity); if (isset($this->originalEntityData[$oid])) { return $this->originalEntityData[$oid]; } return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOriginalData(): array\n {\n return $this->originalData;\n }", "public function getOriginal()\n {\n return $this->original;\n }", "public function getOriginal() {\n return $this->original;\n }", "public function getEntityClone()\n {\n return $th...
[ "0.73852265", "0.7259668", "0.724517", "0.682989", "0.6662281", "0.65547687", "0.65545535", "0.6517549", "0.6515324", "0.6491624", "0.643813", "0.641724", "0.6384538", "0.63562614", "0.6303087", "0.6195125", "0.6190197", "0.60893416", "0.6074006", "0.6031239", "0.6006399", ...
0.7742355
0
Persists an entity as part of the current unit of work.
Сохраняет сущность в рамках текущей единицы работы.
public function persist($entity) { $visited = []; $this->doPersist($entity, $visited); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function persist($entity)\n {\n }", "protected function saveEntity($entity)\n {\n $this->om->persist($entity);\n $this->om->flush($entity);\n }", "public function saveEntity($entity)\n\t{\n\t\t$entityManager = $this->getDoctrine()->getManager();\n\t $entityManager->persist($...
[ "0.7265586", "0.7156946", "0.70419127", "0.69679856", "0.69319594", "0.67965704", "0.67898655", "0.67898655", "0.67898655", "0.6765103", "0.67482007", "0.6705553", "0.6699121", "0.6672648", "0.6661682", "0.6654727", "0.6630365", "0.6603087", "0.65842164", "0.6575525", "0.6563...
0.74323505
0
Schedules an entity for insertion into the database. If the entity already has an identifier, it will be added to the identity map.
Запланировать сущность для вставки в базу данных. Если сущность уже имеет идентификатор, она будет добавлена в карту идентичностей.
public function scheduleForInsert($entity) { $oid = spl_object_hash($entity); if (isset($this->entityUpdates[$oid])) { throw new \InvalidArgumentException('Dirty entity cannot be scheduled for insertion'); } if (isset($this->entityDeletions[$oid])) { throw new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($entity){\n\t\ttry {\n\t\t\t$data = $entity->toArray();\n\t\t\t$this->callBehavior('beforeInsert',$data);\n\t\t\t$this->convertId($data);\n\t\t\t$result = $this->collection->insertOne($data);\n\t\t\t$data['_id'] = $result->getInsertedId();\n\t\t\t//$this->doIntegrateIn($data);\n\t\t\t$this->...
[ "0.6443065", "0.61004496", "0.60026985", "0.5821815", "0.57523113", "0.57495934", "0.57228684", "0.57188046", "0.56368434", "0.5620079", "0.5605891", "0.5591211", "0.5554549", "0.55505383", "0.5524627", "0.55125505", "0.55125505", "0.55125505", "0.5487709", "0.5443964", "0.53...
0.7246645
0
Checks whether an entity is scheduled for insertion.
Проверяет, запланировано ли сущность на вставку.
public function isScheduledForInsert($entity) { return isset($this->entityInsertions[spl_object_hash($entity)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isScheduledForInsert($document)\n {\n return isset($this->documentInsertions[spl_object_hash($document)]);\n }", "public function isEntityScheduled($entity)\n {\n $oid = spl_object_hash($entity);\n\n return isset($this->entityInsertions[$oid])\n || isse...
[ "0.7285275", "0.71066797", "0.66633147", "0.64562505", "0.6384283", "0.6182333", "0.6043015", "0.58971435", "0.5877219", "0.5859772", "0.5808111", "0.57987124", "0.577737", "0.57031256", "0.5689808", "0.567592", "0.5605905", "0.5516943", "0.54877526", "0.5467171", "0.5461221"...
0.82172245
0
Schedules an entity for being updated.
Запланировать обновление сущности.
public function scheduleForUpdate($entity) { $oid = spl_object_hash($entity); if (!isset($this->entityIdentifiers[$oid])) { throw new \InvalidArgumentException('Entity has no identity'); } if (isset($this->entityDeletions[$oid])) { throw new \InvalidArgumentEx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scheduleForDirtyCheck($entity)\n {\n $rootClassName =\n $this->manager->getClassMetadata(get_class($entity))->getRootEntityName();\n $this->scheduledForSynchronization[$rootClassName][spl_object_hash($entity)]...
[ "0.65676475", "0.6516831", "0.6245709", "0.62366974", "0.62163025", "0.62163025", "0.62041485", "0.61678916", "0.6134816", "0.6092333", "0.5997191", "0.598751", "0.5986676", "0.596645", "0.5929924", "0.5923015", "0.581971", "0.578057", "0.5729374", "0.57184106", "0.5679011", ...
0.7133237
0
INTERNAL: Schedules an entity for deletion.
ВНУТРЕННИЙ: Запускает планирование удаления сущности.
public function scheduleForDelete($entity) { $oid = spl_object_hash($entity); if (isset($this->entityInsertions[$oid])) { if ($this->isInIdentityMap($entity)) { $this->removeFromIdentityMap($entity); } unset($this->entityInsertions[$oid], $this->en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }", "public function delete(DimeEntityInterface $entity);", "public function delete($entity);", "public function delete()\n {\n ...
[ "0.68122494", "0.65605605", "0.65043515", "0.64815325", "0.6442284", "0.6427097", "0.6423082", "0.63825256", "0.6365594", "0.6331141", "0.62899256", "0.6255598", "0.6242541", "0.62094575", "0.6176845", "0.6167791", "0.6164634", "0.6157725", "0.606684", "0.60524666", "0.605060...
0.78132856
0
Checks whether an entity is registered as removed/deleted with the unit of work.
Проверяет, зарегистрирована ли сущность как удаленная/удаленная с помощью единицы работы.
public function isScheduledForDelete($entity) { return isset($this->entityDeletions[spl_object_hash($entity)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDeleteGranted($entity): bool;", "public function isDeletable($entity);", "abstract public function isUndeleting();", "abstract public function isUndeleting();", "public function isRemoved() : bool\n {\n return $this->trashed();\n }", "public function isRemoved(): bool;", ...
[ "0.652623", "0.641413", "0.63785315", "0.63785315", "0.63507855", "0.63302785", "0.6311879", "0.62787884", "0.6256839", "0.624097", "0.62399167", "0.6162394", "0.615992", "0.6154813", "0.6154338", "0.6153625", "0.6144432", "0.6038848", "0.6038848", "0.6001546", "0.5986203", ...
0.70188916
0
Checks whether an entity is scheduled for insertion, update or deletion.
Проверяет, назначено ли сущность для вставки, обновления или удаления.
public function isEntityScheduled($entity) { $oid = spl_object_hash($entity); return isset($this->entityInsertions[$oid]) || isset($this->entityUpdates[$oid]) || isset($this->entityDeletions[$oid]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isScheduledForInsert($entity)\n {\n return isset($this->entityInsertions[spl_object_hash($entity)]);\n }", "public function isScheduledForUpdate($entity)\n {\n return isset($this->entityUpdates[spl_object_hash($entity)]);\n }", "public function isScheduledForDelete($en...
[ "0.7501643", "0.7228504", "0.6750008", "0.6629385", "0.65199625", "0.6465619", "0.64119124", "0.62285113", "0.6079999", "0.59875816", "0.59359205", "0.58828944", "0.5831366", "0.5778416", "0.57631904", "0.5685744", "0.56377876", "0.56197417", "0.55845076", "0.5577598", "0.549...
0.78194445
0
INTERNAL: Removes an entity from the identity map. This effectively detaches the entity from the persistence management of Doctrine.
ВНУТРЕННИЙ: Удаляет сущность из карты идентичности. Это эффективно открепляет сущность от управления сохраняемостью Doctrine.
public function removeFromIdentityMap($entity) { $oid = spl_object_hash($entity); $classMetadata = $this->manager->getClassMetadata(get_class($entity)); $idHash = implode(' ', $this->entityIdentifiers[$oid]); if ($idHash === '') { throw new \InvalidArgume...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($entity) {\n $this->entityManager->remove($entity);\n $this->entityManager->flush($entity);\n }", "public function remove($entity)\n {\n $this->em->remove($entity);\n $this->em->flush();\n }", "public function remove($entity)\r\n {\r\n \t$cacheK...
[ "0.7267839", "0.7161556", "0.7087875", "0.68914974", "0.6699348", "0.6645745", "0.66303474", "0.6623875", "0.6512815", "0.6447999", "0.6407389", "0.63041", "0.6263506", "0.61878633", "0.61696035", "0.61103743", "0.6033797", "0.6032359", "0.59503365", "0.5939949", "0.5894022",...
0.71743983
1
Gets the changeset for an entity.
Получает изменения для сущности.
public function & getEntityChangeSet($entity) { $oid = spl_object_hash($entity); $data = []; if (!isset($this->entityChangeSets[$oid])) { return $data; } return $this->entityChangeSets[$oid]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntityChangeSet()\n {\n return $this->entityChangeSet;\n }", "public function getChanges();", "public function getChanges();", "public function getChanged()\n {\n return $this->entity->getChanged();\n }", "public function getDocumentChangeSet($document)\n {\n...
[ "0.7138202", "0.60301816", "0.60301816", "0.5950051", "0.56234515", "0.56115717", "0.5517315", "0.5429107", "0.5399836", "0.53871214", "0.53871214", "0.53871214", "0.53533167", "0.53494984", "0.534666", "0.53421867", "0.5318921", "0.53169423", "0.5228007", "0.51339304", "0.51...
0.74802804
0
Computes all the changes that have been done to entities and collections since the last commit and stores these changes in the _entityChangeSet map temporarily for access by the persisters, until the UoW commit is finished.
Вычисляет все изменения, внесенные в сущности и коллекции с момента последнего коммита, и временно сохраняет эти изменения в карте _entityChangeSet для последующего использования перистерами, пока не завершится коммит единицы работы.
public function computeChangeSets() { // Compute changes for INSERTed entities first. This must always happen. $this->computeScheduleInsertsChangeSets(); // Compute changes for other MANAGED entities. Change tracking policies take effect here. foreach ($this->identityMap as $classNam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function commit(): void\n {\n $this->eventDispatcher->dispatchPreFlush();\n\n if (\n $this->objectsToPersist === [] &&\n $this->objectsToUpdate === [] &&\n $this->objectsToRemove === []\n ) {\n return; // Nothing to do.\n }\n\n ...
[ "0.67323756", "0.65784436", "0.65124637", "0.5842119", "0.58298814", "0.5798723", "0.56928986", "0.5655057", "0.56357795", "0.56027126", "0.55588394", "0.5493468", "0.54738575", "0.54607826", "0.5354258", "0.53215307", "0.52805936", "0.5276481", "0.52614564", "0.525702", "0.5...
0.7001201
0
Schedules an entity for dirtychecking at committime.
Запланировать сущность на проверку на изменения в момент коммита.
public function scheduleForDirtyCheck($entity) { $rootClassName = $this->manager->getClassMetadata(get_class($entity))->getRootEntityName(); $this->scheduledForSynchronization[$rootClassName][spl_object_hash($entity)] = $entit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scheduleForDirtyCheck($document)\n {\n $rootClassName = $this->dm->getClassMetadata(get_class($document))->rootDocumentName;\n $this->scheduledForDirtyCheck[$rootClassName][spl_object_hash($document)] = $document;\n }", "public function onFlush(OnFlushEventArgs $args): void\n ...
[ "0.5977011", "0.5935937", "0.5903814", "0.5819824", "0.5568772", "0.5543887", "0.5423974", "0.53767806", "0.53666484", "0.5348927", "0.53122973", "0.52771056", "0.5264366", "0.5207867", "0.51983625", "0.51818347", "0.51775837", "0.5162352", "0.5151088", "0.5133162", "0.512415...
0.73611385
0
Computes the changesets of all entities scheduled for insertion.
Вычисляет наборы изменений для всех сущностей, запланированных на вставку.
private function computeScheduleInsertsChangeSets() { foreach ($this->entityInsertions as $entity) { $class = $this->manager->getClassMetadata(get_class($entity)); $this->computeChangeSet($class, $entity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function computeScheduleInsertsChangeSets()\n {\n foreach ($this->documentInsertions as $document) {\n $class = $this->dm->getClassMetadata(get_class($document));\n\n $this->computeChangeSet($class, $document);\n }\n }", "public function computeChangeSets()\n ...
[ "0.8103692", "0.75419444", "0.6774082", "0.61141384", "0.60324174", "0.5676234", "0.5670448", "0.55054337", "0.55054337", "0.54555905", "0.529142", "0.51799786", "0.51190394", "0.5113744", "0.51107645", "0.5099031", "0.5069252", "0.5060243", "0.50539273", "0.50276953", "0.496...
0.84592605
0
Executes any extra updates that have been scheduled.
Выполняет любые дополнительные обновления, которые были запланированы.
private function executeExtraUpdates() { foreach ($this->extraUpdates as $oid => $update) { list ($entity, $changeset) = $update; $this->entityChangeSets[$oid] = $changeset; $this->getEntityPersister(get_class($entity))->update($entity); } $this->extraUpda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function performUpdate() {}", "public function runDefaultUpdates()\n {\n }", "private function _updateCronStats()\n\t{\n\t $this->load->model('tasks');\n\t $this->tasks->updateCronStats();\n\t}", "public function cron_action()\n\t{\n\n\t\t// process any recently updated inventory\n\t\t$...
[ "0.69985986", "0.67624193", "0.67423105", "0.64693314", "0.6465017", "0.6463421", "0.6435094", "0.642019", "0.6291091", "0.628212", "0.6276596", "0.6226876", "0.6201103", "0.6176452", "0.61495537", "0.6146459", "0.613451", "0.61288965", "0.6125122", "0.612488", "0.6080202", ...
0.7026912
0
Tests if an entity is loaded must either be a loaded proxy or not a proxy
Проверяет, загружена ли сущность, должна ли быть либо загруженной прокси, либо не быть прокси
private function isLoaded($entity) { return !($entity instanceof Proxy) || $entity->__isInitialized(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsLoaded()\n {\n $this->fixtures('users', 'articles');\n $user = User::find($this->users('derek')->id);\n\n $this->assertFalse($user->reflectOnAssociation('Articles')->isLoaded());\n $user->articles;\n $this->assertTrue($user->reflectOnAssociation('Articles...
[ "0.64571166", "0.6063503", "0.6030817", "0.60101473", "0.59696347", "0.5918695", "0.591067", "0.5909854", "0.5898748", "0.5893923", "0.5883377", "0.57855", "0.56316155", "0.55966824", "0.55866694", "0.5580257", "0.5565966", "0.55561364", "0.55313534", "0.5478892", "0.54506344...
0.7593043
0
Compiles a string with surrounding quotes.
Собирает строку с окружающими кавычками.
public static function compileString($value) { $value = str_replace(chr(39), chr(92) . chr(39), $value); return "'{$value}'"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function intoQuote($string){ return \"'\".$string.\"'\"; }", "public function quoteAndEscape(string $str): string;", "static function quote($s){\r\n return '\"' . str_replace('\"', '\\\"', $s) . '\"';\r\n }", "private function quoted(string $value): string\n {\n return sprin...
[ "0.72523683", "0.65105623", "0.6499554", "0.632125", "0.63108873", "0.62722194", "0.62494767", "0.6243703", "0.62319124", "0.61714923", "0.61131537", "0.61055887", "0.6068739", "0.60152364", "0.6005905", "0.6003071", "0.6001343", "0.5998134", "0.5993074", "0.5947801", "0.5935...
0.7268459
0
Compiles an array of column names into a formatted SQL list, such as (`col`, `col`).
Собирает массив имен столбцов в отформатированный SQL-список, например, (`col`, `col`).
public static function compileColumnList(array $columns) { $compiled = array(); foreach ($columns as $column) { $compiled[] = static::compileName($column); } return '(' . implode(', ', $compiled) . ')'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function toSqlCols($cols)\r\n\t{\r\n\t\tif (is_array($cols)) {\r\n\t\t\t$c = array();\r\n\t\t\tforeach ($cols as $col)\r\n\t\t\t\t$c[] = \"[$col]\";\r\n\t\t\t$cols = implode(', ', $c);\r\n\t\t}\r\n\r\n\t\treturn $cols;\r\n\t}", "protected function getColumnsSQLDeclaration(array $columns)\n {\n ...
[ "0.7278298", "0.67235565", "0.66791713", "0.65615034", "0.65477085", "0.65350795", "0.6462377", "0.6440771", "0.641424", "0.63921005", "0.63232553", "0.63107604", "0.63018453", "0.6246741", "0.6186771", "0.61735237", "0.61245364", "0.6099124", "0.60884875", "0.60819983", "0.6...
0.7032936
1
Compiles a default value into a string that can be inserted directly into an SQL query without any further escaping. Returns false for invalid values.
Скомпилирует значение по умолчанию в строку, которую можно вставить напрямую в SQL-запрос без дополнительного экранирования. Возвращает false для недопустимых значений.
public static function compileDefault($value) { if (is_null($value)) { return 'NULL'; } if (is_bool($value)) { return $value ? 'TRUE' : 'FALSE'; } if (is_numeric($value)) { return "'{$value}'"; } if (is_string($value)) { if ($value === 'CURRENT_TIMESTAMP') { return $value; } $val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function defaultValueExpression($sqlsr_type, $default) {\n // The actual expression depends on the target data type as it might require conversions.\n $result = is_string($default) ? \"'\" . addslashes($default) . \"'\" : $default;\n if (DatabaseUtils::GetMSSQLType($sqlsr_type) == 'varbinary') {\n...
[ "0.6780953", "0.6366684", "0.6020631", "0.6000684", "0.5993202", "0.5954548", "0.5844232", "0.57530683", "0.5708392", "0.56852174", "0.5684584", "0.5618648", "0.5581451", "0.55813175", "0.558121", "0.55788606", "0.5572104", "0.55510205", "0.55494875", "0.5514948", "0.5507277"...
0.7489219
0
Compiles a comment into an escaped, quoted string.
Компилирует комментарий в экранированную, закавыченную строку.
public static function compileComment($comment) { $comment = str_replace(chr(39), chr(92) . chr(39), $comment); return "'{$comment}'"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function comment($comment)\n\t{\n\t\treturn $comment ? \"/* {$comment} */\" : null;\n\t}", "public function getEscapedComment()\n {\n return $this->Comment;\n }", "public function formatComment(string $comment): string;", "function plc_comment_display( $comment_to_display ) {\n\n\t// Put ...
[ "0.69216824", "0.6765353", "0.6728773", "0.6547503", "0.62745464", "0.61995023", "0.59058577", "0.57617533", "0.5729033", "0.56692404", "0.56359535", "0.56106603", "0.5607741", "0.5588188", "0.5586519", "0.555171", "0.5538503", "0.5520631", "0.5507768", "0.54783267", "0.54201...
0.8124401
0
Gets the category of a column (textual, numeric, date) given its blueprinted type name.
Получает категорию столбца (текстовая, числовая, дата) в зависимости от его типизированного имени.
public static function getColumnCategory($type) { foreach (static::getColumns() as $category => $columns) { foreach ($columns as $columnType) { if ($columnType === $type) { return $category; } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_category_type()\n {\n return $this->m_cat_dao->get_category_type();\n }", "public function get_category_type()\n {\n return C__CMDB__CATEGORY__TYPE_SPECIFIC;\n }", "public function getCategorieType() {\n\t\tif (empty($this->_oType)) {\n\t\t\t$this->_oType = Factory...
[ "0.6457734", "0.6379305", "0.6168145", "0.6022669", "0.6014673", "0.6008629", "0.5989536", "0.5978963", "0.5950525", "0.5927305", "0.5905874", "0.5893543", "0.58657724", "0.5853428", "0.5843605", "0.5810279", "0.57974505", "0.5795899", "0.5791327", "0.57889146", "0.57365704",...
0.7468524
0
Returns true if the column type is numeric.
Возвращает true, если тип столбца является числовым.
public static function isNumeric($type) { foreach (static::getColumns() as $category => $columns) { foreach ($columns as $columnType) { if ($columnType === $type) { return $category == 'numeric'; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isNumericType()\n {\n return PropelTypes::isNumericType($this->getType());\n }", "public function getIsNumeric() {\n $numerics = array(\"float\", \"integer\", \"int\");\n return is_numeric(array_search($this->getType(), $numerics));\n }", "public function isNumeric...
[ "0.8315964", "0.7860035", "0.7836113", "0.7780998", "0.77245474", "0.77174217", "0.76333416", "0.7574416", "0.7382834", "0.7369741", "0.6885642", "0.67460024", "0.67167914", "0.6701593", "0.6645853", "0.66162807", "0.64955556", "0.6483195", "0.64769495", "0.6441551", "0.64205...
0.8054228
1
Returns true if the column type is a variablelength string of some kind.
Возвращает true, если тип столбца представляет собой переменную длину строки какого-либо вида.
public static function isVariableLength($type) { return ($type == 'char' || $type == 'string' || $type == 'varbinary'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isVariableLengthType($type) {\n $types = [\n 'nvarchar' => TRUE,\n 'ntext' => TRUE,\n 'varchar' => TRUE,\n 'varbinary' => TRUE,\n 'image' => TRUE,\n ];\n return isset($types[$type]);\n }", "public function supportsVarcharWithoutSize();", "public function getI...
[ "0.769176", "0.6732441", "0.6483562", "0.64379513", "0.6245261", "0.61399895", "0.6084246", "0.60545033", "0.60292286", "0.59807783", "0.5966519", "0.595777", "0.59317267", "0.59146625", "0.5890587", "0.5887303", "0.58830994", "0.58511865", "0.58499676", "0.5834758", "0.58009...
0.76214814
1
Gets the SQL key statement for a given type (primary, index, unique, foreign).
Получает SQL-ключевое выражение для заданного типа (первичный, индекс, уникальный, внешний).
public static function getKey($type) { $type = strtolower(str_replace('drop', '', $type)); if ($type === 'primary') return 'PRIMARY KEY'; if ($type === 'index') return 'INDEX'; if ($type === 'unique') return 'UNIQUE'; return 'FOREIGN KEY'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function key($sql);", "abstract public static function get_column_key(): string;", "public function getKeyType();", "protected function key(Table $table, Magic $command, $type)\n {\n return 'ALTER TABLE ' . $this->wrap($table) . ' ADD ' . $type . ' '\n . $command->name . '(' . $th...
[ "0.71035993", "0.628179", "0.62336385", "0.61148244", "0.6080039", "0.6023662", "0.6014099", "0.6009108", "0.5984038", "0.59428936", "0.58642584", "0.58292806", "0.5819313", "0.5816611", "0.5811589", "0.5790188", "0.5779277", "0.57571805", "0.57498467", "0.57401025", "0.57345...
0.743866
0
Get aggregate for payment by Paynet
Получить агрегат для оплаты через Paynet
protected function get_payment_aggregate() { if (!$this->_payment_aggregate) { require_once DIR_FS_CATALOG . 'includes/modules/payment/payneteasyform/paynet_payment_aggregate.php'; $this->_payment_aggregate = new PaynetPaymentAggregate; } return $this->_payme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getPaymentAggregate(array $paymentConfig)\r\n {\r\n static $paynetProcessorAggregate = null;\r\n\r\n if (!$paynetProcessorAggregate)\r\n {\r\n $paynetProcessorAggregate = new static::$aggregateClass($paymentConfig);\r\n }\r\n\r\n return $paynetPro...
[ "0.65933335", "0.5753663", "0.5714264", "0.56978005", "0.565608", "0.565327", "0.5620532", "0.5576142", "0.55756605", "0.5554249", "0.5542535", "0.5535124", "0.5522467", "0.55125666", "0.5470977", "0.5453741", "0.5441059", "0.5418857", "0.5409308", "0.53870887", "0.53605825",...
0.72095317
0
Returns validators for XML_ID field.
Возвращает валидаторы для поля XML_ID.
public static function validateXmlId() { return array( new Main\Entity\Validator\Length(null, 255), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validateXmlId()\n\t{\n\t\treturn array(\n\t\t\tnew Main\\Entity\\Validator\\Length(null, 255),\n\t\t);\n\t}", "public static function validateXmlId()\n{\n return array(\n new Main\\Entity\\Validator\\Length(null, 50),\n );\n}", "public static function validateFieldId()\n\t{\...
[ "0.76855516", "0.71343017", "0.64530236", "0.63647896", "0.599423", "0.5977315", "0.59028876", "0.5890399", "0.58618265", "0.58618265", "0.5829755", "0.5725654", "0.5651362", "0.5587296", "0.5587296", "0.5587296", "0.5549857", "0.55476856", "0.55189764", "0.5464241", "0.54586...
0.7569767
1
Paints the end of the test with a summary of the passes and failures.
Покрывает конец теста итоговым отчетом о прошедших и не прошедших тестах.
function paintFooter($test_name) { $colour = ($this->getFailCount() + $this->getExceptionCount() > 0 ? "red" : "green"); print "<div id=\"results\" style=\"background-color: $colour;\">"; print $this->getTestCaseProgress() . "/" . $this->getTestCaseCount(); print " test c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _summary() {\n $text = $this->_failed ? 'TESTS FAILED!' : 'TESTS PASSED';\n $result = $this->_colors->getColoredString($text, $this->_colorsPalete[!$this->_failed]);\n $this->_log($result);\n }", "public function showTestResults() {\n echo \"Tests: {$this->tests}\\n...
[ "0.7444343", "0.68625915", "0.66298187", "0.6584047", "0.6504653", "0.64116", "0.63056314", "0.6161622", "0.6137382", "0.60925907", "0.6057485", "0.60488147", "0.60270494", "0.6016302", "0.60101306", "0.59871894", "0.5986292", "0.5920685", "0.5901865", "0.58979255", "0.588728...
0.78120774
0
Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
Отображает сбой теста с маршрутизацией хлебных крошек вложенных тестовых наборов ниже верхнего уровня теста.
function paintFail($message) { parent::paintFail($message); $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print "<div><span class=\"red\">Fail:</span> <strong>"; print implode(" -&gt; ", $breadcrumb); print " </strong><br />\n<span class=\"fail\">" . $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBlueScreen()\n {\n\n $tracy = new Tracy();\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n /*\n |---------------------------...
[ "0.601981", "0.59630036", "0.58524895", "0.58375275", "0.56649286", "0.560354", "0.5579519", "0.5525216", "0.5463562", "0.53190404", "0.52708405", "0.52101594", "0.5205633", "0.5204799", "0.51420987", "0.5140156", "0.51288825", "0.51245034", "0.50245214", "0.50097895", "0.498...
0.74110144
0
Create a reference to an item
Создайте ссылку на элемент
public function createRef(mixed $item): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createNewItem();", "protected function createItem()\n {\n return $this->_setUpNewNode(\n new Item()\n );\n }", "static public function factory($item)\n\t{\n\t\treturn new Item($item);\n\t}", "public function getNewItem():Item {\r\n\t\t$item = new Item($this);\r\...
[ "0.7110566", "0.69071543", "0.65728295", "0.65686893", "0.65166664", "0.65071255", "0.64549434", "0.64392424", "0.6415871", "0.6367542", "0.63601637", "0.6334513", "0.6302035", "0.6287497", "0.6259955", "0.6237168", "0.6211163", "0.61404705", "0.60798806", "0.60798806", "0.60...
0.76023394
0
Get the value of sigla
Получить значение sigla
public function getSigla() { return $this->sigla; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSigla($html = false) {\n\t\tif($this->getDisciplina(false) === null)\n\t\t\treturn null;\n\t\treturn $this->getDisciplina()->getSigla($html);\n\t}", "public function getSiglaunidad()\n {\n return $this->siglaunidad;\n }", "public function getSig()\n {\n return $this->s...
[ "0.65596807", "0.6495078", "0.59951806", "0.59473", "0.58122236", "0.5648063", "0.55172443", "0.5407703", "0.53971636", "0.53933156", "0.53543425", "0.53219277", "0.53219277", "0.53219277", "0.5302642", "0.5291449", "0.5276865", "0.5276865", "0.5276865", "0.5276865", "0.52768...
0.8082754
1
Purpose: This function will make a SELECT DISTINCT on the makes. The result will be used to fill the html form select options for the select make dropdown in the UI. Inputs: None. Output: An associative array of results, or an exception.
Цель: эта функция выполнит SELECT DISTINCT для таблицы makes. Результат будет использоваться для заполнения опций html-формы select для выпадающего списка выбора make в интерфейсе. Входные данные: Нет. Выход: ассоциативный массив результатов или исключение.
public function findDistinctMake() { // Try to run the SQL query. try { $this->query = $this->db->query("SELECT DISTINCT make FROM inventory ORDER BY make;"); $result = $this->query->fetchAll(\PDO::FETCH_ASSOC); return $result; } catch(\PDOException $e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function distinct($params=''){\n\t\t$this->_connect();\n\t\tif($this->_schema){\n\t\t\t$table = $this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$table = $this->_source;\n\t\t}\n\t\t$numberArguments = func_num_args();\n\t\t$params = Utils::getParams(func_get_args(), $numberArguments);\n\t\tif(!isset(...
[ "0.57166976", "0.5695816", "0.56835824", "0.5583975", "0.55825436", "0.5581544", "0.5538708", "0.5488304", "0.5487612", "0.5487096", "0.54698807", "0.5431122", "0.5425997", "0.5421101", "0.5403755", "0.5362288", "0.5355529", "0.53241444", "0.53171057", "0.5287446", "0.5264979...
0.70353496
0
TODO: Implement searchBook() method.
TODO: Реализовать метод searchBook().
public function searchBook(string $bookName) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function search_books_general($books, $search) {\n\t\t$books_filter = $books;\n\t\t// dd($result);\n\t\tif ($search->year != '0') {\n\t\t\t$books_filter = BooksBModel::filter_books_by_year($books_filter, $search->year);\n\t\t\t// dd($books_filter);\n\t\t} \n\t\tif ($search->status != '0') {\n\t\t\t$s...
[ "0.69732594", "0.6918285", "0.6834619", "0.6824576", "0.67595804", "0.67595804", "0.67555624", "0.67026967", "0.6656089", "0.66160285", "0.6592387", "0.65790975", "0.65790975", "0.65676326", "0.6549379", "0.65281063", "0.6496789", "0.6489736", "0.6475925", "0.643165", "0.6400...
0.7817797
0
TODO: Implement listBookByCategory() method.
TODO: Реализовать метод listBookByCategory().
public function listBookByCategory(string $bookCategory) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBookCategories() {\n return $this->hasMany(BookCategory::className(), ['book_id' => 'id']);\n }", "public function getBookList()\n {\n return $this->bookDao->getBookList();\n }", "public function getAllBooks(){\n $query = \"SELECT * FROM Book;\";\n return $this...
[ "0.692583", "0.6805241", "0.67611605", "0.67281735", "0.6658472", "0.6503451", "0.6453261", "0.6349605", "0.6200115", "0.6173448", "0.616176", "0.61473954", "0.611396", "0.609604", "0.6087827", "0.6073469", "0.6032806", "0.6032066", "0.60264146", "0.59760785", "0.5963027", ...
0.80921745
0
Handles incoming ajax requests for which the user must be authenticated. Forwards the request to plugin actions for the "context" portion of the URL.
Обрабатывает входящие ajax-запросы, для которых требуется аутентификация пользователя. Передает запрос плагинным действиям для "контекста" части URL.
public function act_auth_ajax() { $user = User::identify(); if ( $user->loggedin ) { /** * Triggers the ajax plugin action for the context if user is authenticated. * * @see act_auth_ajax() * @action ajax_auth_{$context} */ Plugins::act( 'auth_ajax_' . $this->handler_vars['context'], $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleRequest(){\n\n check_ajax_referer( 'mvc-ajax' );\n \n $class = apply_filters( 'mvc_theme_ajax_handle_class', $this->getControllerObject( $_POST['controller'] ), $_POST );\n\n if( !$this->no_priv ){\n if( !isset( $class->ajax_allow ) || !in_array( $_PO...
[ "0.64558387", "0.6173198", "0.6067804", "0.5952167", "0.5928823", "0.5876278", "0.5708022", "0.56828135", "0.56576234", "0.5640286", "0.561874", "0.561108", "0.55826503", "0.5570699", "0.55634767", "0.5521187", "0.552041", "0.5519421", "0.55112535", "0.54625475", "0.5458393",...
0.779768
0
app_template_dialogs Returns the custom dialog box HTML used in admin pages.
app_template_dialogs Возвращает HTML пользовательского диалогового окна, используемого на страницах администратора.
function app_template_dialogs() { global $App; $continue = __('continue'); $cancel = __('cancel'); $ok = __('ok'); $dialog_html = <<<HTML <div id="modal-warning" class="abstract-modal-popup" data-overlay-theme="b"> <div data-role="header"> <h1 id="modal-warning-label"></h1> </div> <div id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function app_template() {\n\t$template = <<<HTML\n\n\n\nHTML;\n\n $navigation = app_template_navigation();\n $dialogs = app_template_dialogs();\n\t$data['blocks'] = empty($navigation) ? array($dialogs) : array($dialogs, $navigation);\n\t$data['template'] = $template;\n\treturn $data;\n}", "public function ...
[ "0.63498247", "0.5821451", "0.58023083", "0.5711568", "0.5575509", "0.55612934", "0.5549516", "0.5520316", "0.550973", "0.54829264", "0.5426216", "0.5426116", "0.54202145", "0.5399814", "0.53182054", "0.53178173", "0.52876526", "0.52814466", "0.52783185", "0.52666575", "0.524...
0.74880165
0
app_template_navigation Returns the navigation menu HTML based on user permissions.
app_template_navigation Возвращает HTML-меню навигации в зависимости от разрешений пользователя.
function app_template_navigation() { global $Auth, $App; $user = $Auth->get_user_data(); $navigation = NULL; if ( ! empty($user) ) { $user_id = $user['is_super'] ? false : $user['user_id']; $Menu = new AdminMenu($user_id, $user['is_super']); $nav = $Menu->generate(); $na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function template_navigation() {\n\t\t$_ENV['menu'] = array();\n\t\t$_ENV['menu']['Main'] = _URL_;\n\t\tModule::includes('menus');\n\t\t$_ENV['menu']['Preferences'] = '?module=prefs';\n\t\t$_ENV['menu']['Logout'] = '?logout=true';\n\n\t\t$buffer = '<ul><li><h2>';\n\t\t$buffer .= array_key_exists('Menu',$_ENV['imgs...
[ "0.7305105", "0.67850035", "0.6637389", "0.66160345", "0.6464492", "0.6399221", "0.63659745", "0.63345915", "0.63326687", "0.6292554", "0.6261929", "0.62212855", "0.61710054", "0.61477906", "0.61224926", "0.60922724", "0.6067675", "0.60470074", "0.6036356", "0.5949508", "0.59...
0.7843991
0
Add fields to Edit taxonomy term screen.
Добавить поля на экран редактирования термина таксономии.
public function edit_taxonomy_fields( $term ) { $template_file = $this->media->plugin->template_path . 'taxonomy-term-transformation-fields.php'; if ( file_exists( $template_file ) ) { include $template_file; // phpcs:ignore } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bdpp_edit_taxonomy_field($term){\n\t\tinclude_once( BDPP_DIR . '/includes/admin/taxonomy/edit-form.php' );\n\t}", "public function edit_screen_fields( $term, $taxonomy ) {\n\t\t$doc_vicar_forane = get_term_meta( $term->term_id, 'doc_vicar_forane', true );\n\n\t\t// Form fields.\n\t\techo '<tr class=\"fo...
[ "0.74985325", "0.72452503", "0.72088474", "0.7183759", "0.70884484", "0.6951727", "0.6951727", "0.6702951", "0.6641194", "0.6519398", "0.6448476", "0.6406624", "0.63754696", "0.6302986", "0.62290657", "0.6180432", "0.6159408", "0.6135861", "0.60828745", "0.6068833", "0.605876...
0.7538446
0
Check if the image has a post taxonomy overwrite.
Проверьте, имеет ли изображение перезапись таксономии post.
public function is_taxonomy_overwrite() { $apply_type = false; if ( in_the_loop() ) { $post = get_post(); $apply_type = get_post_meta( $post->ID, self::META_APPLY_KEY . '_terms', true ); } return ! empty( $apply_type ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasTaxonomy() {\n return $this->_has(1);\n }", "public function hasTaxonomy() {\n return $this->_has(1);\n }", "function is_movie_taxonomy() {\n return is_tax( get_object_taxonomies( 'movie' ) );\n }", "public static function add_notice_if_publish_failed_due_to_missi...
[ "0.6135039", "0.6135039", "0.5955681", "0.5778112", "0.5769805", "0.5757012", "0.5737036", "0.5729192", "0.5727491", "0.5664555", "0.56128263", "0.55978876", "0.55933446", "0.5587934", "0.55795115", "0.5568868", "0.5542056", "0.5529233", "0.5519791", "0.54816175", "0.5468513"...
0.77912635
0
Check if the post has any public taxonomies.
Проверьте, имеет ли пост какие-либо публичные таксономии.
public function has_public_taxonomies( $post ) { $taxonomies = get_object_taxonomies( $post, 'objects' ); // Only get taxonomies that have a UI. $taxonomies = array_filter( $taxonomies, function ( $tax ) { return $tax->show_ui; } ); return ! empty( $taxonomies ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasTaxonomies() {\n return $this->_has(1);\n }", "public function hasTaxonomy() {\n return $this->_has(1);\n }", "public function hasTaxonomy() {\n return $this->_has(1);\n }", "public function hasTaxes()\n {\n return !empty($this->taxes);\n }", "public ...
[ "0.79673815", "0.7515551", "0.7515551", "0.68217105", "0.6574634", "0.6494449", "0.6356902", "0.6325235", "0.6238318", "0.6216023", "0.61740726", "0.61227643", "0.6086072", "0.5983104", "0.59752756", "0.59658426", "0.59424704", "0.5924158", "0.5920752", "0.5910281", "0.584301...
0.8528321
0
Get the year of the oldest movie.
Получить год самого старого фильма.
public static function getYearOldest() { if (Helpers::hasAccess('titles.create')) $year = Title::min('year'); else $year = Title::where('type', '=', 'movie') ->whereNotNull('video') ->where('video','<>','') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getYearNewest()\n {\n if (Helpers::hasAccess('titles.create'))\n $year = Title::max('year');\n else\n $year = Title::where('type', '=', 'movie')\n ->whereNotNull('video')\n ->where('video','<>','')\n ...
[ "0.81303746", "0.7449406", "0.7371676", "0.7352392", "0.7312623", "0.7278274", "0.724361", "0.72215223", "0.71951646", "0.71776026", "0.7151557", "0.7150249", "0.71406263", "0.70873475", "0.70543605", "0.7052554", "0.7052554", "0.70257914", "0.6981894", "0.69788736", "0.69694...
0.84857553
0
Get the year of the newest movie.
Получить год самого нового фильма.
public static function getYearNewest() { if (Helpers::hasAccess('titles.create')) $year = Title::max('year'); else $year = Title::where('type', '=', 'movie') ->whereNotNull('video') ->where('video','<>','') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getYearOldest()\n {\n if (Helpers::hasAccess('titles.create'))\n $year = Title::min('year');\n else\n $year = Title::where('type', '=', 'movie')\n ->whereNotNull('video')\n ->where('video','<>','')\n ...
[ "0.835145", "0.7984218", "0.7582918", "0.74839866", "0.74109054", "0.73996836", "0.73661256", "0.7364516", "0.735748", "0.73119915", "0.72938186", "0.72919935", "0.72705406", "0.72457206", "0.7229406", "0.7229406", "0.7185853", "0.7173339", "0.712127", "0.7105112", "0.7104063...
0.8412765
0
Helper function for processScore gets the amount of correct answers based on user answers
Вспомогательная функция для processScore получает количество правильных ответов на основе ответов пользователя
function getNumCorrect($dbanswers, $useranswers) { $total_correct = 0; //For each question, check if the correct answer text //is equal to the text submitted by the user foreach ($dbanswers as $question){ $question_num = $question['question_num']; if(isset($usera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function processScore($dbanswers, $useranswers){\n $total_questions = sizeof($dbanswers);\n $total_correct = getNumCorrect($dbanswers, $useranswers);\n \n //Calculate score to 0 decimal places\n if($total_questions === 0){\n return 0;\n } else {\n return ...
[ "0.7697667", "0.7206746", "0.6975713", "0.6899548", "0.66265345", "0.6618066", "0.6608911", "0.660323", "0.6570108", "0.6548585", "0.64751816", "0.64563644", "0.64508086", "0.64364505", "0.6392756", "0.6351335", "0.63261676", "0.63061935", "0.62870806", "0.62588596", "0.62446...
0.74057966
1
Return an apropriate file extension if it isn't already present in the $storageId.
Верните подходящее расширение файла, если оно не присутствует в $storageId.
private function _getPublicExtension($storageId, $mimeType) { if (!isset($this->_mimeTypeToExtension[$mimeType])) { return ''; } $extension = '.'.$this->_mimeTypeToExtension[$mimeType]; $extensionLength = strlen($extension); if (substr($storageId, -1 * $extensionLength, $extensionLength) !== $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFileExtension()\n {\n $filePath = '/downloads/episodes/'.\n $this->folder_name.'/'.\n $this->folder_name.'.';\n\n foreach(config('airflix.extensions.video') as $extension)\n {\n if(Storage::disk('public')->exists($filePath.$exte...
[ "0.6480627", "0.6448386", "0.6271833", "0.6247673", "0.6225415", "0.62209386", "0.62037295", "0.61474055", "0.61411065", "0.61323154", "0.6103478", "0.6094867", "0.608297", "0.6068494", "0.6055871", "0.6055871", "0.6055871", "0.6051647", "0.60451883", "0.6016836", "0.6008653"...
0.73287374
0
get public url for a storage id if file is linked
получить публичный url для идентификатора хранилища, если файл связан
public function getUrl($storageGroup, $storageId, $mimeType) { if (strlen($storageId) > $this->_storageDirectoryDepth) { $publicFilename = $this->_getPublicFilename( $storageGroup, $storageId, $mimeType, FALSE ); if ($this->_existLocalFile($publicFilename)) { $result = $this->_publ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getFileUrl() {\n return Storage::disk('public')->url('/uploads/' . $this->file_name);\n }", "abstract public function getPublicUrl(): string;", "public function url()\n {\n return Storage::url($this->path);\n }", "public function getUrl()\n {\n return $this->...
[ "0.7228313", "0.6935802", "0.68492264", "0.6710932", "0.67024344", "0.6653226", "0.6645142", "0.6596977", "0.658639", "0.65235883", "0.65070677", "0.64531", "0.64483756", "0.6442035", "0.64062357", "0.64061964", "0.63956827", "0.63956827", "0.63893205", "0.6376147", "0.636935...
0.70815825
1
Test channel link leads to route
Ссылка на тестовый канал ведет к маршруту
public function testChannelLink() { $this->createUser(1); $this->createChannel(); $this->createEpisode(); $this->visit('/channels') ->seePageIs('/channels'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_can_fetch_link_from_shortlink()\n {\n $this->get(route('shortlink.fetch.link', ['code' => 'AbcXyz']))->assertStatus(200);\n }", "public function test_yourls_link() {\n $this->assertEquals( yourls_link('bonjour'), YOURLS_SITE . '/bonjour' );\n }", "public function tes...
[ "0.65084064", "0.6497101", "0.6287377", "0.61032283", "0.60939246", "0.60430145", "0.6042514", "0.6008629", "0.6000013", "0.5961881", "0.58939767", "0.5892732", "0.58736193", "0.5837392", "0.5821259", "0.58124286", "0.580831", "0.57709587", "0.5756718", "0.5727109", "0.571924...
0.78059185
0
Test user channnel relationship
Тест пользователь-канал отношений
public function testUserChannelRelationship() { $user = $this->createUser(1); $channel = $this->createChannel(); $this->assertEquals($channel->user_id, $channel->user->id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCardToUserRelation()\n {\n $card = factory('App\\Card')->create();\n\n $response = $this->actingAs($card->owner, 'api')\n ->withHeader('Accept', 'application/json')\n ->get(route('api.cards.index'));\n\n $response->assertJson([\n [\n ...
[ "0.619815", "0.598721", "0.59070164", "0.59033644", "0.58914375", "0.58518094", "0.5804582", "0.5802631", "0.57935274", "0.5756727", "0.5733876", "0.5721465", "0.571348", "0.56963766", "0.5691173", "0.566787", "0.5661049", "0.56514287", "0.5648974", "0.5632167", "0.56148624",...
0.73628664
0
Test Episode Channel relationship
Тестирование отношения каналов эпизода
public function testEpisodechannelRelationship() { $this->createUser(1); $this->createChannel(); $episode = $this->createEpisode(); $this->assertEquals($episode->channel_id, $episode->channel->id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testChannelLink()\n {\n $this->createUser(1);\n $this->createChannel();\n $this->createEpisode();\n\n $this->visit('/channels')\n ->seePageIs('/channels');\n }", "public function testCreateNewEpisode()\n {\n Channel::create([\n 'c...
[ "0.7187579", "0.7142238", "0.6308638", "0.617252", "0.60988855", "0.60966086", "0.59683007", "0.5890005", "0.58379644", "0.5789139", "0.5784989", "0.5756073", "0.5755152", "0.5723444", "0.57038856", "0.56978106", "0.5693414", "0.55632377", "0.5558219", "0.55242616", "0.547604...
0.8547012
0
Test that an episode is created.
Тестирование создания эпизода.
public function testCreateNewEpisode() { Channel::create([ 'channel_name' => 'test', 'channel_description' => 'test', 'user_id' => 3, 'subscription_count' => 0 ]); $this->seeInDatabase('channels', [ 'cha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIfEpisodeSetupCorrectly()\n {\n $xmlData = '<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n <Episode>\n <id>332179</id>\n <DVD_chapter>2</DVD_chapter>\n <DVD_discid>1</DVD_discid>\n ...
[ "0.69182163", "0.68267256", "0.67848974", "0.67398393", "0.6581709", "0.64415246", "0.6357774", "0.629409", "0.6281182", "0.62561905", "0.62518626", "0.6193256", "0.6179043", "0.6177542", "0.6161685", "0.6161685", "0.61294514", "0.6100502", "0.6078363", "0.6057176", "0.604012...
0.78416437
0
Check if the two given passwords match.
Проверьте, совпадают ли два заданных пароля.
function checkIfPasswordsMatch($password1, $password2) { return $password1 == $password2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function passwordsMatch($pw1, $pw2) {\n if ($pw1 === $pw2)\n return true; \n else \n return false; \n }", "public function passwordsMatch($pw1, $pw2) {\n\t\tif ($pw1 == $pw2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function validateP...
[ "0.84097147", "0.813221", "0.8058318", "0.771545", "0.77089024", "0.7626296", "0.7620253", "0.7570164", "0.75353116", "0.74943864", "0.74825066", "0.74296194", "0.73639584", "0.73625475", "0.73066866", "0.73032904", "0.72073054", "0.71660393", "0.7160625", "0.71447635", "0.71...
0.8232039
1
Rebuild the search key field term_search_key from the source term_text field. Use the rebuildSearchKey.php maintenance script to invoke this from the command line. Database updates a batched into multiple transactions. Do not call this method whithin an (explicite) database transaction.
Пересоздайте поле поискового ключа term_search_key из поля исходного текста term_text. Используйте скрипт обслуживания rebuildSearchKey.php для вызова этого с командной строки. Обновления базы данных производятся партиями, разбитыми на несколько транзакций. Не вызывайте этот метод внутри (явной) транзакции базы данных.
public function rebuildSearchKey() { $dbw = $this->table->getWriteDb(); $rowId = $this->fromId - 1; $total = 0; while ( true ) { // Make sure we are not running too far ahead of the slaves, // as that would cause the site to be rendered read only. wfWaitForSlaves(); $dbw->begin(); $terms = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function updateSearchKey( DatabaseBase $dbw, $rowId, $text ) {\n\t\t$key = $this->table->getSearchKey( $text );\n\n\t\tif ( $key === '' ) {\n\t\t\twfDebugLog( __CLASS__, __FUNCTION__ . \": failed to normalized term: $text\" );\n\t\t\treturn false;\n\t\t}\n\n\t\twfDebugLog( __CLASS__, __FUNCTION__ . \": r...
[ "0.57552", "0.57265663", "0.5356105", "0.5284815", "0.5258372", "0.517849", "0.49408466", "0.48971274", "0.4832164", "0.4813756", "0.4807403", "0.48006803", "0.47924563", "0.4729824", "0.47278336", "0.4712542", "0.4662237", "0.46371254", "0.46255758", "0.46247804", "0.4608346...
0.72409534
0
Property API test example.
Пример тестирования API свойства.
public function testPropertyGetTest() { $response = $this->get('/api/v1/properties/filter'); $response->assertStatus(200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetPeopertyValueMethod()\n {\n $firstname = 'Chris';\n $subject = new TestPropertySubject();\n $en = new Enforcer();\n\n $result = $en->getPropertyValue('firstname', $subject);\n $this->assertEquals($firstname, $result);\n }", "public function testProp...
[ "0.69223106", "0.67629147", "0.675139", "0.66662264", "0.66627896", "0.6613403", "0.6569439", "0.6558765", "0.6512696", "0.6451224", "0.6433241", "0.6418071", "0.63868016", "0.63698196", "0.63589036", "0.63441265", "0.63437045", "0.6334283", "0.6333378", "0.6327432", "0.63217...
0.7466618
0
Get top 5 from a date
Получить топ-5 из даты
public function getTop5($requestDate = null) { $dates = DB::table('average_visibility')->select(DB::raw('DISTINCT date'))->get(); $data = $this->calculateData($requestDate !== null ? date('Y-m-d', strtotime($requestDate)) : date('Y-m-d')); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openskydora_get_most_viewed_items($count, $weeks_ago=7, $exclude=NULL) {\n\n $records = openskydora_get_most_viewed($count+20, $weeks_ago, $exclude);\n $item_records = array(); // No collections\n \n // filter out collection citation model\n foreach ($records as $pid=>$data) {\n $da...
[ "0.616973", "0.607121", "0.59597385", "0.59505755", "0.5813968", "0.57582307", "0.57543707", "0.57298315", "0.56566775", "0.56390345", "0.56149065", "0.55895144", "0.55706733", "0.5565169", "0.55427176", "0.5492948", "0.5482236", "0.5447673", "0.542438", "0.5396414", "0.53901...
0.7230187
0
Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. The returned settings may be stale by up to 1 minute.
Возвращает указанные [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. Возвращенные настройки могут быть устаревшими на до 1 минуты.
public function GetSecuritySettings(\Google\Cloud\Dialogflow\Cx\V3beta1\GetSecuritySettingsRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/GetSecuritySettings', $argument, ['\Google\Cloud\Dialogfl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ListSecuritySettings(\\Google\\Cloud\\Dialogflow\\Cx\\V3beta1\\ListSecuritySettingsRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/ListSecuritySettings',\n $argument,\n ['\\Go...
[ "0.65667975", "0.6233191", "0.58670014", "0.583099", "0.57284546", "0.5692893", "0.5665409", "0.5628611", "0.56143904", "0.5569531", "0.55685055", "0.5562755", "0.5562755", "0.5562755", "0.5562755", "0.55390817", "0.5524283", "0.5501231", "0.54746103", "0.5469988", "0.5465756...
0.70714307
0
Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
Обновляет указанные [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
public function UpdateSecuritySettings(\Google\Cloud\Dialogflow\Cx\V3beta1\UpdateSecuritySettingsRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/UpdateSecuritySettings', $argument, ['\Google\Cloud...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateSecurityVersion()\n {\n $this->_settings->set('securityversion', SPOTWEB_SECURITY_VERSION);\n }", "public function update(Request $request, UserSecurity $userSecurity)\n {\n //\n }", "public function update(UserSettingsRequest $request)\n {\n $input = $...
[ "0.5929953", "0.5390988", "0.52187425", "0.51739144", "0.5157332", "0.5136657", "0.5092442", "0.50909853", "0.49746796", "0.4967893", "0.49340108", "0.49268946", "0.49191937", "0.4916789", "0.49003476", "0.48954496", "0.488961", "0.48687983", "0.4868285", "0.4864761", "0.4831...
0.72015494
0
Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
Удаляет указанные [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
public function DeleteSecuritySettings(\Google\Cloud\Dialogflow\Cx\V3beta1\DeleteSecuritySettingsRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService/DeleteSecuritySettings', $argument, ['\Google\Proto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Settings $settings)\n {\n //\n }", "public function ListSecuritySettings(\\Google\\Cloud\\Dialogflow\\Cx\\V3beta1\\ListSecuritySettingsRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.cloud.dialogflow.cx.v3beta1.Securit...
[ "0.5684379", "0.55540955", "0.5546571", "0.52487713", "0.52474344", "0.51781285", "0.51387906", "0.5094438", "0.5087409", "0.504732", "0.49749067", "0.49723244", "0.49110207", "0.48516148", "0.47919494", "0.47624898", "0.47578615", "0.47492468", "0.45556813", "0.45528", "0.45...
0.7588426
0
function Participants_Friend_Levels_Latex, Parameter list: $friend Creates latex for $friend participants levels tables.
Функция Participants_Friend_Levels_Latex, Список параметров: $friend Создает latex для таблиц $friend уровней участников.
function Participants_Friend_Levels_Latex($friend,$pagehead) { $this->Participants_Friend_Read($friend); $tables=array(); foreach ($this->Participants_Friend_Levels() as $level) { array_push ( $tables, $this->Participants...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Participants_Friend_Level_Latex($friend,$level)\n {\n $table=\n $this->Participants_Friend_Level_Table\n (\n 0,\n $level,\n $friend,\n array()\n );\n\n // return array(array(\"ooo\"));;\n $tit...
[ "0.7951698", "0.57952476", "0.5599526", "0.5483928", "0.5089075", "0.503302", "0.49742818", "0.48381996", "0.48159468", "0.47754562", "0.47403786", "0.47366074", "0.47354376", "0.47252083", "0.4686854", "0.4650685", "0.4632562", "0.4521064", "0.45034105", "0.45029858", "0.443...
0.78198373
1
function Participants_Friend_Level_Latex, Parameter list: $friend,$level Creates latex for $friend participants levels tables.
Функция Participants_Friend_Level_Latex, Список параметров: $friend,$level Создает latex для таблиц $friend уровней участников.
function Participants_Friend_Level_Latex($friend,$level) { $table= $this->Participants_Friend_Level_Table ( 0, $level, $friend, array() ); // return array(array("ooo"));; $titles=array_shift($ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Participants_Friend_Levels_Latex($friend,$pagehead)\n {\n $this->Participants_Friend_Read($friend);\n \n $tables=array();\n foreach ($this->Participants_Friend_Levels() as $level)\n {\n array_push\n (\n $tables,\n $thi...
[ "0.74381435", "0.63679016", "0.6210783", "0.5488166", "0.5420102", "0.5234745", "0.5188523", "0.5135487", "0.51255983", "0.50654703", "0.49575117", "0.49445164", "0.49380684", "0.49192896", "0.4888377", "0.48757696", "0.48686963", "0.48625335", "0.47404295", "0.4739599", "0.4...
0.8429968
0
Define o valor do atributo sId
Определите значение атрибута sId
public function setId($sId) { $this->sId = $sId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setId($sId) \r\n\t{\r\n\t\t$this->sId = $sId;\r\n\t}", "function getSId() {\n return $this->sId;\n }", "public function setNameAndId() {}", "public function setId($x) { $this->id = $x; }", "public function getId() \r\n\t{\r\n\t\treturn $this->sId;\r\n\t}", "public function setId...
[ "0.7322991", "0.7056454", "0.6685727", "0.6613332", "0.6554034", "0.65516776", "0.6495617", "0.6444906", "0.6394313", "0.63942003", "0.6392534", "0.6387904", "0.6349595", "0.6320671", "0.6252567", "0.6229197", "0.62225413", "0.61767", "0.61662096", "0.61482006", "0.6142754", ...
0.7133046
1
Define o valor do atributo sClasseEvento
Определите значение атрибута sClasseEvento
public function setClasseEvento($sClasseEvento) { $this->sClasseEvento = $sClasseEvento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setClasseTipoEvento($sClasseTipoEvento) {\n $this->sClasseTipoEvento = $sClasseTipoEvento;\n }", "private function creaEvento() {\n $fevento = USingleton::getInstance('FEvento');\n $dati = $this->dati;\n $classe = $this->classe;\n \n //----------------...
[ "0.636072", "0.6224268", "0.58392745", "0.57443213", "0.56934464", "0.566301", "0.5646645", "0.5600154", "0.5567555", "0.55309844", "0.55157447", "0.5482661", "0.5471365", "0.54116607", "0.5392222", "0.5338377", "0.5316798", "0.5301684", "0.52991694", "0.52920985", "0.5266235...
0.71578324
0
Define o valor do atributo sClasseTipoEvento
Определите значение атрибута sClasseTipoEvento
public function setClasseTipoEvento($sClasseTipoEvento) { $this->sClasseTipoEvento = $sClasseTipoEvento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tipoSituacaoEvento($tipo){\n\t\t\t\tswitch($tipo){\n\t\t\t\t\t\n\t\t\t\tcase '1':\n\t\t\t\t\t$tipo\t= 'Solicitada';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '2':\n\t\t\t\t\t$tipo\t= 'Autorizada';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '3':\n\t\t\t\t\t$tipo\t= 'Em Andamento';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '4':\n\t...
[ "0.67441595", "0.651159", "0.61537474", "0.6132499", "0.58983386", "0.5800676", "0.5773088", "0.5701931", "0.5608873", "0.55731773", "0.5571442", "0.55386865", "0.5532937", "0.5479326", "0.54744047", "0.543784", "0.54335034", "0.5401527", "0.5372703", "0.536505", "0.536505", ...
0.7102245
0
Define o valor do atributo bMostraCabecalhoMes
Определите значение атрибута bMostraCabecalhoMes
public function setMostraCabecalhoMes($bMostraCabecalhoMes) { $this->bMostraCabecalhoMes = $bMostraCabecalhoMes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testConteoSmsPorMes() {\n $this->assertInternalType( 'integer', $this->ConteoSms->buscarConteoMes( date( 'n' ) ), \"El tipo de valor debe ser entero\" );\n $this->assertLessThanOrEqual( 8, $this->ConteoSms->buscarConteoMes( date( 'n' ) ), \"No corresponde la cantidad contabilizada del...
[ "0.57665944", "0.55229163", "0.5513831", "0.5474009", "0.54590523", "0.5432926", "0.5420104", "0.53375906", "0.5332814", "0.5326102", "0.5289684", "0.5265873", "0.52597535", "0.5255795", "0.52419394", "0.5240704", "0.5232482", "0.52143496", "0.52034795", "0.51920176", "0.5190...
0.7105792
0
find all account of current user
найдите все учетные записи текущего пользователя
public function findAccount() { // get current user id $loginUser = $_SESSION["loginUser"]; $userId = $loginUser->getId(); // search accounts from database $accountList = $this->accountHandler->findAccount($userId); require_once ('view/UserH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findAccounts() {\n\t\t\n\t}", "public function getAccounts();", "function user_accounts() {\n $mysqli = $this->mysqli;\n $sql = \"SELECT `users`.`user_id`, `users`.`email_id`,`users`.`emp_id`, `employee`.`emp_name`,`employee`.`emp_type`,`employee`.`emp_cntct`,`employee`.`doj` FROM empl...
[ "0.7289068", "0.7103661", "0.6822665", "0.68043005", "0.6781049", "0.6781049", "0.6780329", "0.6709087", "0.6707635", "0.668833", "0.66652244", "0.66408104", "0.65831184", "0.657737", "0.65223885", "0.65126747", "0.65115744", "0.6507559", "0.6499972", "0.64794546", "0.6479454...
0.73797363
0
This test checks if call of a method not implemented in helper is correctly passed via WebAPI client to soapClient (extended by WebAPI request param just one is tested here, as all required params are tested in ClientTest)
Этот тест проверяет, правильно ли вызов метода, не реализованного в хелпере, передается через клиент WebAPI soapClient (расширенный параметром WebAPI запроса, проверяется только один параметр, так как все необходимые параметры проверены в ClientTest)
public function testDirectWebapiCallFromSoapClient() { $this->soapClient->expects($this->once()) ->method('doQuerySysStatus') ->willReturn((object)['verKey' => 'someVersionKey']); $this->soapClient->expects($this->once()) ->method('doLogin') -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function invalid_calls_are_not_proxied()\n {\n // Arrange\n $method = 'nonExistingHttpVerb';\n $url = 'users/me';\n $client = Mockery::mock('GuzzleHttp\\Client');\n $service = (new Service)->setClient($client);\n\n // Act\n $result = $service->$method($url...
[ "0.59928775", "0.5964218", "0.591617", "0.56776655", "0.5676565", "0.55722433", "0.55510557", "0.5529052", "0.5516021", "0.55062884", "0.5505545", "0.55035347", "0.55011153", "0.54859686", "0.5447597", "0.54422486", "0.543645", "0.54330105", "0.54174197", "0.5413029", "0.5408...
0.76072216
0
Check if request should be prerendered.
Проверить, должен ли запрос быть предрендеренным.
protected function shouldPrerender(Request $request) { $userAgent = strtolower($request->server->get('HTTP_USER_AGENT')); $bufferAgent = $request->server->get('X-BUFFERBOT'); $shouldPrerender = false; if ( ! $userAgent) return false; if ( ! $request->isMethod('GET')) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _shouldRender()\n {\n return (!$this->getFrontController()->getParam('noViewRenderer')\n && !$this->_neverRender\n && !$this->_noRender\n && (null !== $this->_actionController)\n && $this->getRequest()->isDispatched()\n && !$this->...
[ "0.66752464", "0.65382284", "0.6432343", "0.6327087", "0.63021", "0.61993617", "0.5976503", "0.59615296", "0.58880913", "0.58692056", "0.5860077", "0.5824455", "0.58055824", "0.5793511", "0.578749", "0.57850075", "0.5760411", "0.5751262", "0.56999713", "0.5694178", "0.5688167...
0.7742392
1
Enable the query log on the connection.
Включите журнал запросов на соединении.
public function enableQueryLog() { $this->loggingQueries = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function enableQueryLog()\n {\n }", "public function enableQueryLog()\n\t{\n\t\t$this->neoeloquent->enableQueryLog();\n\t}", "public function enableLogging()\n {\n global $log;\n if (! $this->logger)\n {\n // create a log channel\n $this...
[ "0.8501042", "0.8350139", "0.7539824", "0.7162307", "0.69864655", "0.694962", "0.68933713", "0.6802872", "0.6782387", "0.65112114", "0.6488177", "0.6378712", "0.63591266", "0.6348143", "0.63405514", "0.6302678", "0.6302678", "0.6262357", "0.62497103", "0.6189126", "0.6112168"...
0.8874808
0
Lists all CatalogDocument models.
Список всех моделей CatalogDocument.
public function actionIndex() { $searchModel = new CatalogDocumentSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex()\n {\n $searchModel = new DocumentSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }...
[ "0.63009024", "0.6178566", "0.61719954", "0.61033046", "0.6081459", "0.60605943", "0.60524976", "0.60498667", "0.5914422", "0.59078455", "0.59078455", "0.5843777", "0.5829481", "0.57786274", "0.57765913", "0.5758959", "0.5756529", "0.57526815", "0.5745486", "0.57382923", "0.5...
0.7315632
0
Show the form for creating a new Siteprice.
Показать форму для создания нового Siteprice.
public function create() { return view('siteprices.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('admin.price.create');\n }", "public function create()\n\t{\n\t\treturn View::make('pages.Prices.create');\n\t}", "public function create()\n {\n return view('dashboard.price.create')->with('branches',Branch::get())->with('stages',Stage::get());...
[ "0.7599176", "0.7534403", "0.7247009", "0.7238054", "0.69676316", "0.6930718", "0.6917279", "0.690656", "0.68919164", "0.67396873", "0.66733265", "0.6552607", "0.65484715", "0.6525759", "0.65248835", "0.65033793", "0.650063", "0.6439921", "0.6425267", "0.64230686", "0.6412086...
0.7743742
0
Store a newly created Siteprice in storage.
Храните только что созданную Siteprice в хранилище.
public function store(CreateSitepriceRequest $request) { $input = $request->all(); $siteprice = $this->sitepriceRepository->create($input); Flash::success('Siteprice saved successfully.'); return redirect(route('siteprices.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n $this->save_meta_value('_sim_service_price', $this->service_price);\n $this->save_meta_value('_sim_service_price_registered', $this->service_price_registered);\n $this->save_meta_value('_sim_service_hide_price', $this->service_hide_price);\n }", "public fun...
[ "0.7175263", "0.66030836", "0.6424205", "0.63320243", "0.6319473", "0.63069737", "0.61832917", "0.6168941", "0.616738", "0.61648256", "0.61648256", "0.61648256", "0.6113378", "0.60926634", "0.6071317", "0.6071317", "0.6071317", "0.60651946", "0.60318494", "0.60318494", "0.603...
0.7153086
1
linkback for Tumblrlike posts
linkback для постов в стиле Tumblr
function tumblrLinkBacks( $content ) { global $wp_query, $post; $post_id = get_post( $post->ID ); $posttitle = $post_id->post_title; $permalink = get_permalink( get_post( $post->ID ) ); $tumblr_keys = get_post_custom_keys( $post->ID ); if( get_post_meta( $wp_query->post->ID, 'TumblrURL', true ) ) { if( $tumblr_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function link() { return site_url().'/'.$this->post->post_name; }", "function antica_next_prev_post_link ($output, $format, $link, $post, $adjacent) {\n $previous = $adjacent;\n\n // Only applies changes if EDDis active\n if ( ! class_exists('EDD_Download') ) {\n return $output;\n }\n ...
[ "0.64582175", "0.6300716", "0.6287317", "0.6286248", "0.61936206", "0.61920905", "0.6169207", "0.61544895", "0.6149232", "0.61160517", "0.61133784", "0.61133784", "0.60771376", "0.602152", "0.6003049", "0.5996477", "0.5991384", "0.5967364", "0.59616613", "0.5935982", "0.59253...
0.75995094
0
Use only one locale to test the skeleton output.
Используйте только один локал для тестирования вывода скелета.
public function testSkeleton(): void { $localeToTest = 'en'; $tests = $this->currencyPermutationsWithLocales(); $results = []; $localeTests = []; foreach ($tests as $test => $parameters) { if ($parameters['locale'] === $localeToTest) { $localeTes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function determine_locale()\n {\n }", "public function locale();", "public function testLocale()\n {\n $f = new Formatter(['locale' => 'en-US']);\n $this->assertEquals('en-US', $f->locale);\n\n // if not, take from application\n $f = new Formatter();\n $this->assertE...
[ "0.6591897", "0.6445888", "0.6383849", "0.6293422", "0.60938704", "0.6076018", "0.6069189", "0.60458046", "0.60306793", "0.60245323", "0.59586793", "0.5957089", "0.5869202", "0.58655906", "0.5857572", "0.5853094", "0.58461004", "0.58086514", "0.58086514", "0.5803839", "0.5767...
0.70959556
0
/ Private functions Creates SQL/PDO task to execute nad runs it.
/ Приватные функции Создает задачу SQL/PDO для выполнения и запускает её.
private function createTask() { $query = $this->createQuery(); echo $query; $task = $this->database->prepare($query); $task->execute($this->queryProperty->getWhereArgs()); return $task; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function executeTasks() {}", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function e...
[ "0.681511", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.6628601", "0.66015124", "0.65369254", "0.65369254", "0.65369254", "0.65369254",...
0.73869437
0