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
Display a VAT summary on the invoice page.
Показать итог по НДС на странице счета.
function it_exchange_easy_eu_value_added_taxes_display_vat_summary_on_invoice() { if ( ! function_exists( 'it_exchange_invoice_addon_get_invoice_transaction_id' ) ) { return; } $txn_id = it_exchange_invoice_addon_get_invoice_transaction_id( $GLOBALS['it_exchange']['product']->ID ); if ( ! $txn_id ) { echo '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function vat() {\n \treturn $this->price * env('VAT_PERCENTAGE');\n }", "function view ()\n {\n $this->tran = get_customer_trans($this->tran_no, ST_SALESINVOICE);\n $this->tran_branch = get_branch($this->tran[\"branch_code\"]);\n \n \n box_start(sprintf(_(\"SALE...
[ "0.6339603", "0.629288", "0.62129724", "0.6176688", "0.6175033", "0.61738306", "0.6071754", "0.6039997", "0.6035963", "0.60305417", "0.60137075", "0.6007355", "0.59861016", "0.59674436", "0.5923015", "0.5909396", "0.58970517", "0.58669007", "0.58631235", "0.5857052", "0.58307...
0.7233633
0
Add taxes to the receipt.
Добавить налоги в чек.
function it_exchange_easy_eu_value_added_taxes_add_taxes_row_to_receipt() { if ( empty( $GLOBALS['it_exchange']['transaction'] ) ) { return; } $transaction = $GLOBALS['it_exchange']['transaction']; $tax_items = get_post_meta( $transaction->ID, '_it_exchange_easy_eu_value_added_taxes', true ); $vat_moss_tax_it...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_order_tax()\n {\n }", "public function add_tax($tax_rate_id, $tax_amount = 0, $shipping_tax_amount = 0)\n {\n }", "public function update_taxes()\n {\n }", "public function tax($tax_settings = array()) {\r\n\t\t// populate defaults, and ver...
[ "0.76517946", "0.6920187", "0.6815829", "0.66841936", "0.64733964", "0.6438473", "0.63943166", "0.6337682", "0.6326519", "0.6321325", "0.6280823", "0.62474555", "0.6246831", "0.62458193", "0.6209646", "0.62085146", "0.6161046", "0.6125087", "0.61055666", "0.61040545", "0.6061...
0.71669096
1
Function that gets the search term submitted through AJAX and retrieves all the data as required by the specification. Retrieves: Question, who posted the question as well as the date All the answers with the person who answered and their rating All users who answered are ranked based on the rating of the provided answ...
Функция, которая получает термин поиска, отправленный через AJAX, и получает все данные, как требуется в спецификации. Получает: Вопрос, кем был задан вопрос, а также дата. Все ответы с информацией о том, кто дал ответ и его рейтинг. Пользователи, которые дали ответы, ранжируются на основе рейтинга предоставленного отв...
public function term(){ $search_term = urldecode($this->uri->segment(3)); $data["questions"] = $this->questions_model->search_titles($search_term); if($data["questions"] != false){ for($i=0;$i<count($data["questions"]);$i++){ $data["questions"][$i]["answers"] = $this->answers_model->get_answer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function quickSearchData()\n{\t\n\n\t$query = $_POST[\"query\"];\n\t$reDataManager = new researchDataManager();\n\n\tsession_start();\n\t$user = $_SESSION[\"username\"];\n\n\t$userManager = new userManager();\n\t$userInfo = $userManager->get_info_basedOnName($user);\n\t$permission = $userInfo[0][\"vOrS_a_redata\"]...
[ "0.6158669", "0.58787596", "0.5840209", "0.582931", "0.5786454", "0.5783403", "0.57822955", "0.57767683", "0.5764717", "0.57512164", "0.57440186", "0.5742759", "0.5740957", "0.5711106", "0.57093006", "0.56789213", "0.5662155", "0.56008524", "0.5595618", "0.559297", "0.5590218...
0.7478094
0
Get default image size labels.
Получить метки размера изображения по умолчанию.
function mai_get_image_size_labels() { return array( 'banner' => __( 'Banner', 'mai-theme-engine' ), 'section' => __( 'Section', 'mai-theme-engine' ), 'full-width' => __( 'Full Width', 'mai-theme-engine' ), 'featured' => __( 'Featured', 'mai-theme-engine' ), 'one-half' => __( 'One Half', 'mai-them...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getLabelDefaultSize()\n\t{\n\t\treturn self::$lsize_default;\n\t}", "public static function get_image_size_names() {\n\t\treturn apply_filters( 'image_size_names_choose', array(\n\t\t\t'thumbnail' => __( 'Thumbnail', 'blazersix-widget-image-i18n' ),\n\t\t\t'medium' => __( 'Medium', 'bla...
[ "0.78558487", "0.6952518", "0.68511486", "0.68213946", "0.68063104", "0.6634839", "0.66105884", "0.6550924", "0.64686716", "0.64578885", "0.63611424", "0.62464774", "0.61962944", "0.6185257", "0.61579746", "0.6129411", "0.610702", "0.6088839", "0.60782945", "0.6071912", "0.60...
0.77725565
1
Utility method to get a combined list of default and custom registered image sizes. Originally taken from CMB2. Static variable added here.
Полезный метод для получения объединенного списка размеров изображений по умолчанию и пользовательских зарегистрированных. Оригинально взят из CMB2. Здесь добавлена статическая переменная.
function mai_get_available_image_sizes() { // Cache. static $image_sizes = array(); if ( ! empty( $image_sizes ) ) { return $image_sizes; } // Get image sizes. global $_wp_additional_image_sizes; $default_image_sizes = array( 'thumbnail', 'medium', 'large' ); foreach ( $default_image_sizes as $size ) { $ima...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_image_sizes() {\n\tstatic $sizes;\n\tif ( empty( $sizes ) ) {\n\t\t$manifest = get_manifest();\n\t\tif ( $manifest->get_path( 'custom_image_sizes.enabled' ) ) {\n\t\t\t$sizes = $manifest->get_path( 'custom_image_sizes.config' );\n\n\t\t\treturn $sizes;\n\t\t}\n\t}\n\n\treturn array();\n}", "function...
[ "0.8075198", "0.8001889", "0.78569573", "0.78544277", "0.78320116", "0.7783915", "0.77804196", "0.7778983", "0.7761917", "0.77380353", "0.77264065", "0.77224874", "0.76010793", "0.7584208", "0.7556867", "0.7531068", "0.75034124", "0.7492093", "0.7491678", "0.7485869", "0.7480...
0.80057317
1
Check if viewing a content archive page. This is any archive page that may inherit (custom) archive settings.
Проверьте, отображается ли страница архива содержимого. Это любая страница архива, которая может наследовать (пользовательские) настройки архива.
function mai_is_content_archive() { global $wp_query; if ( ! $wp_query->is_main_query() ) { return false; } $is_archive = false; // Blog. if ( is_home() ) { $is_archive = true; } // Term archive. elseif ( is_category() || is_tag() || is_tax() ) { $is_archive = true; } // CPT archive - this may be c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function this_is_a_blog_page(){\n if (is_home() || is_singular( 'post' ) || is_post_type_archive('post') || is_tag() || is_category() || is_date() || is_search()) {\n if(!is_post_type_archive('product')){\n return true;\n }\n }\n return false;\n}", "public function is_archive() {\n\n\t\treturn wp_m...
[ "0.690848", "0.66528183", "0.6432294", "0.63794196", "0.6362669", "0.6313892", "0.63002074", "0.6289387", "0.61776644", "0.61709076", "0.61417687", "0.6119925", "0.60839844", "0.6073033", "0.60628486", "0.6052502", "0.6052396", "0.60507494", "0.6021615", "0.6020601", "0.60201...
0.7423643
0
Check if banner area is enabled. Force this in a template via: add_filter( 'theme_mod_enable_banner_area', '__return_true' ); First check global settings, then archive setting (if applicable), then immediate setting.
Проверьте, включен ли баннерный блок. Силой включите это в шаблоне с помощью: add_filter( 'theme_mod_enable_banner_area', '__return_true' ); Сначала проверьте глобальные настройки, затем настройки архива (если применимо), затем непосредственную настройку.
function mai_is_banner_area_enabled() { $enabled = true; // If not enabled at all. if ( ! mai_is_banner_area_enabled_globally() ) { $enabled = false; } else { /** * If disabled per post_type or taxonomy. */ // Singular page/post. if ( is_singular( array( 'page', 'post' ) ) ) { // Get 'disabled'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isFrontendBannerEnabled()\n {\n return ($this->scopeConfig->getValue('environmentbanner/frontend/enabled', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE) == true);\n }", "function themify_theme_show_area( $area = '' ) {\n\t\tif ( 'header' == $area ) {\n\t\t\treturn 'none' == t...
[ "0.66828555", "0.64199406", "0.6316575", "0.62665373", "0.62583196", "0.5956985", "0.588412", "0.5842796", "0.5704131", "0.5655449", "0.5646243", "0.5605022", "0.56014496", "0.5570305", "0.5567539", "0.556516", "0.5562694", "0.55447996", "0.5529619", "0.55198205", "0.55164933...
0.8371379
0
Get the banner image ID. First check immediate setting, then archive setting (if applicable), then fallback to default image.
Получите идентификатор баннерного изображения. Сначала проверьте непосредственное настройка, затем архивную настройку (если применимо), а затем используйте дефолтное изображение.
function mai_get_banner_id() { // Start of without an image $image_id = false; // Static front page if ( is_front_page() && $front_page_id = get_option( 'page_on_front' ) ) { $image_id = get_post_meta( $front_page_id, 'banner_id', true ); // If no image and featured images as banner is enabled if ( ! $image...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_banner_images_id(){\n\treturn get_page_by_title( 'Banner Images', OBJECT, 'banner_images' )->ID;\n}", "public function getArchiveImageID()\n {\n return $this->getMeta('archive_image');\n }", "public function getBannerImage()\n {\n return $this->banner_image;\n }", "publ...
[ "0.6450492", "0.6387885", "0.60053325", "0.5939566", "0.5891544", "0.5864952", "0.5861757", "0.58474606", "0.5842442", "0.5817217", "0.5806644", "0.5797073", "0.57910264", "0.5786749", "0.57691866", "0.57554054", "0.57554054", "0.5750361", "0.574316", "0.574047", "0.5731793",...
0.7392732
0
Get gutter size name from gutter value.
Получить имя размера поля из значения поля.
function mai_get_gutter_size( $gutter ) { switch ( (string) $gutter ) { case '0': case 'none': $size = '0'; break; case '5': case 'xxxs': $size = 'xxxs'; break; case '10': case 'xxs': $size = 'xxs'; break; case 'xs': $size = 'xs'; break; case '20': case 'sm': $size = 'sm'; br...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormattedSize(): string\n {\n $identifiers = [\n 'b',\n 'kb',\n 'mb',\n 'gb',\n 'tb'\n ];\n $cycle = 0;\n $unit = $this->size;\n\n while ($unit > 1024) {\n $unit = (double) $unit / 1024;\n ...
[ "0.61306936", "0.583199", "0.5812914", "0.57850236", "0.5775636", "0.5692937", "0.56847066", "0.556415", "0.5560069", "0.5546885", "0.5540935", "0.5518208", "0.5517917", "0.55093604", "0.54552805", "0.54552805", "0.54512113", "0.54457253", "0.5440763", "0.54364717", "0.543387...
0.7021309
0
Helper function to check if archive is a flex loop. This doesn't check if viewing an actual archive, but this layout should not be an option if ! is_archive()
Помощь функция для проверки, является ли архив гибким циклом. Эта функция не проверяет, отображается ли реальный архив, но такой формат не должен быть вариантом, если ! is_archive()
function mai_is_flex_loop() { // Bail if not a content archive. if ( ! mai_is_content_archive() ) { return false; } // Get columns. $columns = mai_get_columns(); // If we have more than 1 column or if we are using featured image as bg image, it's a flex loop. if ( ( $columns > 1 ) || ( 'background' === mai_get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mai_is_content_archive() {\n\n\tglobal $wp_query;\n\n\tif ( ! $wp_query->is_main_query() ) {\n\t\treturn false;\n\t}\n\n\t$is_archive = false;\n\n\t// Blog.\n\tif ( is_home() ) {\n\t\t$is_archive = true;\n\t}\n\t// Term archive.\n\telseif ( is_category() || is_tag() || is_tax() ) {\n\t\t$is_archive = true...
[ "0.6282635", "0.6276777", "0.6267492", "0.6255459", "0.61884147", "0.6185945", "0.6124314", "0.610723", "0.6095868", "0.59862787", "0.59439933", "0.5912041", "0.59014136", "0.57815915", "0.57696724", "0.5714028", "0.5699461", "0.5618901", "0.5596224", "0.55235755", "0.5519379...
0.7995922
0
Filter the CPT's that get archive settings. Add via: $post_types['cpt_name'] = get_post_type_object( 'cpt_name' ); Remove via: unset( $post_types['cpt_name'] );
Фильтруйте CPT, которые получают настройки архива. Добавить через: $post_types['cpt_name'] = get_post_type_object( 'cpt_name' ); Удалить через: unset( $post_types['cpt_name'] );
function mai_get_cpt_settings_post_types() { return apply_filters( 'mai_cpt_settings_post_types', genesis_get_cpt_archive_types() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_custom_post_types_to_archives($query)\n{\n if (is_admin() || !$query->is_main_query()) {\n return;\n }\n\n if (is_category() || is_tag() && empty($query->query_vars['suppress_filters'])) {\n $cptui_post_types = cptui_get_post_type_slugs();\n\n $query->set(\n 'p...
[ "0.712941", "0.68971956", "0.68861055", "0.6788533", "0.6761468", "0.67229486", "0.666778", "0.6639411", "0.66035295", "0.65848804", "0.6573268", "0.65545166", "0.65454566", "0.65420777", "0.6502791", "0.6495623", "0.6494843", "0.64861625", "0.64693636", "0.6449982", "0.64428...
0.7618946
0
Create a breadcrumb of the current dir and path.
Создайте хлебные крошки текущей директории и пути.
public function GetBreadcrumbFromPath() { $html = "<ul class='src-breadcrumb'>\n"; $html .= "<li><a href='?'>" . basename($this->baseDir) . "</a>/</li>"; $path = null; foreach($this->breadcrumb as $val) { $path .= "$val/"; $html .= "<li><a href='?path={$path}'>{$val}</a>/</li>"; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function breadcrumb() {}", "function renderBreadcrumb() {\n\n\t\t//$basedir = $_GET['dir'] ? str_replace($_SERVER['DOCUMENT_ROOT'], '', $_GET['dir']) : '';\n\t\t\n\t\t$bcstart = '\n\t <div id=\"breadcrumb\">\n\t <div id=\"breadcrumb-dummy\">&nbsp;</div>\n\t\t';\n\n\t\t$bcend = '\n\t...
[ "0.75598556", "0.69891673", "0.6983649", "0.6909792", "0.68622", "0.68598044", "0.68085", "0.67473984", "0.67449015", "0.6661941", "0.662242", "0.65769863", "0.6500509", "0.6489445", "0.6487247", "0.64869636", "0.645919", "0.64450246", "0.6418843", "0.63972896", "0.6377557", ...
0.7349029
1
Get the details such as encoding and line endings from the file.
Получите сведения, такие как кодировка и конечные символы строки, из файла.
public function DetectFileDetails() { $this->encoding = null; // Detect character encoding if(function_exists('mb_detect_encoding')) { if($res = mb_detect_encoding($this->content, "auto, ISO-8859-1", true)) { $this->encoding = $res; } } // Is it BOM? if(substr($this->conte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readInfo()\n {\n return file_get_contents($this->filePath);\n }", "public function getInfo()\n {\n return $this->file->getInfo();\n }", "function get_file_info()\n {\t\t\t\n return( array(\n 'file_name' => $this->out_file_co...
[ "0.65984654", "0.59430176", "0.58782524", "0.58756846", "0.57749844", "0.5741651", "0.56889", "0.56235313", "0.560669", "0.5602052", "0.5580893", "0.55795914", "0.55408055", "0.5490084", "0.5473527", "0.5370461", "0.5370461", "0.53522307", "0.534788", "0.5344871", "0.5307112"...
0.7629329
0
Checks whether the given element is a valid email address.
Проверяет, является ли заданный элемент действительным адресом электронной почты.
function _element_email_validate($element, &$form_state) { if (!valid_email_address($element['#value'])) { form_error($element, t('The @name option must contain a valid email address.', array('@name' => $element['#title']))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _content_reminder_email_element_validate($element, &$form_state, $form) {\n if (!empty($element['#value']) && !valid_email_address($element['#value'])) {\n form_error($element, t('Please enter a valid email address.'));\n }\n}", "function isValidEmailAddress ($email) {\r\n return filter_var(...
[ "0.7811595", "0.7779888", "0.7735906", "0.74954027", "0.74883574", "0.74729717", "0.74729717", "0.7436475", "0.74206084", "0.73901105", "0.73869723", "0.7343846", "0.7332016", "0.730633", "0.72971827", "0.72865295", "0.72785807", "0.7276951", "0.7270523", "0.7268427", "0.7246...
0.7831211
0
Checks whether the given element is alphanumeric only.
Проверяет, является ли данный элемент только алфаванumericом.
function _element_alnum_validate($element, &$form_state) { if (!ctype_alnum($element['#value'])) { form_error($element, t('The @name option must contain letters and numbers only.', array('@name' => $element['#title']))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAlphanumeric()\n {\n return $this->matchesPattern('^[[:alnum:]]*$');\n }", "public function is_alphanumeric($value)\n\t{\n\t\tif($this->is_empty($value)\n\t\t\t|| preg_match('/^[a-zA-Z0-9\\._\\/\\\\&*!#$()@`?;:\"\\'\\t\\s\\rn\\n\\a><{}[]+$/', trim($value))) \n\t\t{\n\t\t \treturn ...
[ "0.7693149", "0.7456527", "0.73894894", "0.7356308", "0.72770643", "0.7276353", "0.72215104", "0.7129714", "0.7064156", "0.70183986", "0.69903743", "0.6974339", "0.6946827", "0.6933136", "0.69041973", "0.6862991", "0.6807178", "0.68060917", "0.6800555", "0.6799918", "0.678287...
0.8121598
0
! Helpers Get the name of the "published at" column.
! Помощники Получите имя столбца "опубликовано".
public function getPublishedAtColumn() { return defined('static::PUBLISHED_AT') ? static::PUBLISHED_AT : 'published_at'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPublishedAtColumn()\n {\n return defined('static::PUBLISHED_AT') ? static::PUBLISHED_AT : 'published_at';\n }", "public function getQualifiedPublishedAtColumn()\n\t{\n\t\treturn $this->getTable().'.'.$this->getPublishedAtColumn();\n\t}", "public function getQualifiedPublishedAtC...
[ "0.89104635", "0.8629019", "0.8383704", "0.82326597", "0.78479326", "0.7382827", "0.68717605", "0.6790093", "0.6636546", "0.6550954", "0.64868104", "0.64559877", "0.6435699", "0.64010745", "0.631032", "0.6214445", "0.6188276", "0.61823386", "0.6092456", "0.60900337", "0.60829...
0.8862062
1
Get the fully qualified "published at" column.
Получите полностью квалифицированную колонку "опубликовано в".
public function getQualifiedPublishedAtColumn() { return $this->getTable().'.'.$this->getPublishedAtColumn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getQualifiedPublishedAtColumn()\n {\n return $this->qualifyColumn($this->getPublishedAtColumn());\n }", "public function getPublishedAtColumn()\n {\n return defined('static::PUBLISHED_AT') ? static::PUBLISHED_AT : 'published_at';\n }", "public function getPublishedAtCo...
[ "0.8709744", "0.8683397", "0.86726195", "0.7920348", "0.7901534", "0.70576376", "0.70397747", "0.68843436", "0.6775695", "0.67286724", "0.6721289", "0.6636728", "0.6263351", "0.62372655", "0.62246484", "0.61950517", "0.60647297", "0.60484946", "0.60377914", "0.5996302", "0.59...
0.86921006
1
/ Tests the Cookie File
Тестирование файла Cookie
function cookie($cookie_file) { if (file_exists($cookie_file)) { $this->cookie_file=$cookie_file; } else { @fopen($cookie_file,'w') or $this->error("The cookie file could not be opened. Make sure this directory has the correct permissions"); $this->co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetCookie()\n {\n $this->get('/unit_test/test_action/123');\n $this->assertEquals('test cookie data', $this->getCookie('functional_cookie'));\n }", "public function checkForCookie()\n\t{\n\t\t$cookie = isset($this->file->cookie) ? $this->file->cookie : \"\";\n\n\t\tif ($co...
[ "0.69548696", "0.69244957", "0.6901456", "0.6891342", "0.67465216", "0.67016876", "0.66701096", "0.65983176", "0.6541075", "0.6523928", "0.651467", "0.65140337", "0.6502596", "0.6497522", "0.64853644", "0.646569", "0.6441597", "0.64112836", "0.63568056", "0.63363147", "0.6328...
0.7308585
0
Sort C functions in the order of protosMap, unknown funcs last
Сортировать функции C в порядке protosMap, неизвестные функции в конце
private function getSortedCFuncs($cFuncs, $protosMap) { $sortedCFuncs = []; foreach ($protosMap as $name => $proto) { if (isset($cFuncs[$name])) { $sortedCFuncs[$name] = $cFuncs[$name]; } } foreach ($cFuncs as $name => $cFunc) { if (!is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function userfunclist($file, $sort = FALSE) {\n\n $file = join(\"\\n\",file($file));\n preg_match_all('/function\\s+(\\w+)/', $file, $m);\n $functions = $m[1];\n if ($sort===TRUE) {\n asort($functions);\n }\n return $functions;\n}", "private function getUpdatedCFuncs($cFuncs, $namespace,...
[ "0.63171166", "0.6117585", "0.5767525", "0.57076067", "0.5685004", "0.5586178", "0.5577647", "0.5557816", "0.5556671", "0.55301523", "0.55301523", "0.55144656", "0.5513778", "0.54754543", "0.54715073", "0.54674363", "0.54398745", "0.5414751", "0.54147494", "0.538431", "0.5379...
0.78355867
0
Extract C functions from $cFile
Извлечь функции C из $cFile
private function extractCFuncs($cFile) { $cFuncs = []; $cLines = explode("\n", file_get_contents($cFile)); $sourceBefore = null; $sourceAfter = ''; $i = 0; $l = count($cLines); $lastFuncLine = $l - 1; while ($i < $l) { $cLine = $cLines[$i]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFunctionsOfFile($file) {\n $source = file_get_contents($file);\n $tokens = token_get_all($source);\n\n $functions = array();\n $nextStringIsFunc = false;\n $inClass = false;\n $bracesCount = 0;\n\n foreach($tokens as $token) {\n switch($token[0]) {\n case T_CLASS:...
[ "0.64806247", "0.6156399", "0.6017205", "0.58467567", "0.5618383", "0.5550291", "0.55083144", "0.55049634", "0.5443541", "0.5378412", "0.5378412", "0.537549", "0.53617907", "0.53617907", "0.5331509", "0.53196555", "0.5251245", "0.5251245", "0.5251245", "0.5251245", "0.5246564...
0.7648693
0
Converts given distance from $sourceUnit to $destinationUnit.
Преобразует заданное расстояние из $sourceUnit в $destinationUnit.
public static function convertDistance($distance, $sourceUnit, $destinationUnit) { if (!isset(self::$unitConversion[$sourceUnit])) { throw new ConversionException('Cannot convert distance with unit: ' . $sourceUnit); } if (!isset(self::$unitConversion[$destinationUnit])) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function convert(float $distance, string $from, string $to): float\n {\n return UnitConverter::convert($distance, $from, $to);\n }", "function distance( $distance, $unit = 'metres') {\r\n //debug($distance);\r\n\t\t\r\n\t\t\r\n\t\tif ( Configure::read('Vcc.measurement_units') ==...
[ "0.6257955", "0.57811964", "0.5655082", "0.54536206", "0.54287237", "0.53791267", "0.5362439", "0.5343395", "0.52929354", "0.52006054", "0.5195562", "0.51511455", "0.51494807", "0.5141358", "0.50655055", "0.5061959", "0.5040879", "0.5029252", "0.49953398", "0.49652678", "0.49...
0.7246302
0
If the parser is successful, call the $receiver function with the output of the parser. The resulting parser behaves identical to the original one. This combinator is useful for expressing side effects during the parsing process. It can be hooked into existing event publishing libraries by using $receiver as an adapter...
Если парсер успешно завершает работу, вызовите функцию $receiver с результатом парсинга. Получающийся парсер ведет себя идентично оригинальному. Этот комбинатор полезен для выражения побочных эффектов в процессе парсинга. Он может быть использован для интеграции с существующими библиотеками публикации событий, использу...
function emit(Parser $parser, callable $receiver): Parser { return Parser::make("emit", static function (Stream $input) use ($receiver, $parser): ParseResult { $result = $parser->run($input); if ($result->isSuccess()) { $receiver($result->output()); } return $result; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse($val)\n {\n if (is_callable($val)) {\n $this->answerParse = $val;\n return;\n }\n\n if (!is_array($pVal = json_decode($val, true))) {\n $this->outSystem->stdout(\"Wrong data: '$val'\", OutSystem::LEVEL_IMPORTANT);\n return;\n...
[ "0.5464215", "0.5301189", "0.515997", "0.50794154", "0.50782186", "0.49404836", "0.48944512", "0.4718603", "0.46885362", "0.4683059", "0.4674766", "0.46669388", "0.46580613", "0.46556345", "0.46475184", "0.4639089", "0.4601938", "0.45676437", "0.4556105", "0.45428145", "0.454...
0.7367169
0
Pop the value of a params parameter in the request. I.e. get the value and then remove the value from the params.
Извлеките значение параметра params из запроса. То есть получите значение и затем удалите его из params.
public function popParam($name) { $v = NULL; if(isset($this->payload['params'][$name])) { $v = $this->payload['params'][$name]; } unset($this->payload['params'][$name]); return $v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function popParams() {\r\n $object = array_pop($this->params);\r\n if (is_null($object))\r\n $this->logger->warn('Empty stack (returning null)');\r\n\r\n return $object;\r\n }", "public function pop():string\n\t{\n\t\treturn array_pop( $this->params );\n\t}", "private function removeFirst...
[ "0.6743773", "0.6548695", "0.65338796", "0.6407457", "0.6282886", "0.6245411", "0.62150526", "0.6197519", "0.6162953", "0.6072655", "0.6072012", "0.60032624", "0.59432805", "0.5911469", "0.5876065", "0.5866705", "0.5854599", "0.5828399", "0.57361346", "0.5729886", "0.57282645...
0.72078884
0
Get the UUID value from the outgoing call.
Получите значение UUID из исходящего вызова.
public function getUUID() { if(isset($this->payload['params']['UUID'])) { return $this->payload['params']['UUID']; } return NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uuid(){\n return $this->getValue(\"uuid\");\n }", "public function getUuid() {\n\t\t$this->getData();\n\t\treturn $this->uuid;\n\t}", "public function getUuid() {\n\t\t$this->getData();\n\t\treturn $this->uuid;\n\t}", "public function getUuid();", "public function getUuid(...
[ "0.7031863", "0.7005515", "0.7005515", "0.69660074", "0.69078225", "0.69078225", "0.69078225", "0.69078225", "0.6885082", "0.6837989", "0.6826535", "0.6774635", "0.67529047", "0.67529047", "0.67529047", "0.67529047", "0.66634166", "0.66310436", "0.6499257", "0.64776367", "0.6...
0.71131724
0
Get the Method value from the outgoing call.
Получите значение Method из исходящего вызова.
public function getMethod() { return $this->get('method'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function method() {\n return $GLOBALS['_input']->method();\n }", "public function method() {\n\t\treturn $this->getMethod();\n\t}", "function GetMethod()\n {\n return $this->_method;\n }", "public function getMethod()\n {\n return $this->_currentMethod;\n }",...
[ "0.7088238", "0.7021103", "0.70144314", "0.70059997", "0.69802725", "0.6978632", "0.6972939", "0.69689906", "0.69687724", "0.69412166", "0.6936075", "0.6919347", "0.6914772", "0.6914772", "0.69142425", "0.69126517", "0.6912448", "0.6887199", "0.6886376", "0.6886376", "0.68863...
0.7131341
0
Get the value of one parameter in the params>Data section of the request. Or the entire Data section if no name is given.
Получите значение одного параметра в разделе params>Data запроса. Или весь раздел Data, если не указано имя.
public function getData($name=NULL) { if(isset($name)) { if(isset($this->payload['params']['Data'][$name])) { return $this->payload['params']['Data'][$name]; } } else { if(isset($this->payload['params']['Data'])) { return $this->payload['params']['Data']; } } return NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParameter(string $name): mixed {\n $val = null;\n if ($this->hasParameter($name)) {\n $val = $this->query[$name];\n }\n return $val;\n }", "public function getParameter($name) {\n if (!array_key_exists($name, $this->parameters))\n return null;\n else\...
[ "0.6745732", "0.67114", "0.6666945", "0.665019", "0.66354585", "0.6547727", "0.6547727", "0.6512533", "0.6471807", "0.646996", "0.646111", "0.63898444", "0.63864523", "0.6363745", "0.63628596", "0.6346946", "0.6316015", "0.63084084", "0.63000005", "0.62666434", "0.6253803", ...
0.73800594
0
Get the value of one parameter in the params>Data>Attributes section of the request. Or the entire Attributes section if no name is given.
Получите значение одного параметра в разделе params>Data>Attributes запроса. Или весь раздел Attributes, если не указано имя.
public function getAttribute($name) { if(isset($this->payload['params']['Data']['Attributes'][$name])) { return $this->payload['params']['Data']['Attributes'][$name]; } return NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAttr($name) {\n return isset($_REQUEST[$name]) ? $_REQUEST[$name] : null;\n }", "public function get_attr($name)\r\n {\r\n return array_key_exists($name, $this->attributes) ? $this->attributes[$name] : null;\r\n }", "public function getAttribute( $name ) {\r\n ...
[ "0.73048633", "0.6550146", "0.6479063", "0.6426437", "0.64106745", "0.6401654", "0.6379345", "0.6379345", "0.63743603", "0.635582", "0.6346136", "0.63444126", "0.6342159", "0.6331441", "0.6320784", "0.6300853", "0.62943536", "0.6289744", "0.6270912", "0.6268764", "0.62673914"...
0.71932155
1
Retrieve number of replies to display
Получить количество ответов для отображения
public function getNumberOfReplies() { return $this->_scopeConfig->getValue( 'comments/general/number_of_replies', ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReplyCount() : int {\n\t\tif ( isset( $this->reply_count ) ) {\n\t\t\treturn $this->reply_count;\n\t\t}\n\t\treturn $this->getTotal( self::COUNT_SQL );\n\t}", "function forum_reply_number() {\n\n $db = SokialDB::getInstance();\n\n $number = $db->query(\"SELECT id_reply FROM forum_topics_...
[ "0.78894436", "0.73385125", "0.7068024", "0.69236535", "0.6840969", "0.6832649", "0.67978096", "0.6719049", "0.6698079", "0.6667101", "0.6627292", "0.66083324", "0.6594059", "0.65918136", "0.6564117", "0.6531002", "0.65179443", "0.651758", "0.6517172", "0.649602", "0.6473178"...
0.7879084
1
Gets the cell in the price table that contains the price for this ingredient.
Получает ячейку в таблице цен, содержащую цену для этого ингредиента.
protected function getPriceCell() { return new PriceCell(self::PRICE_TABLE_ROW_NUM, self::PRICE_TABLE_COL_NUM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPrice()\n {\n $currency = $this->getCurrency();\n $priceColumn = \"price_\".$currency;\n\n return $this->$priceColumn;\n }", "public function getPrice()\n {\n return $this->_fields['Price']['FieldValue'];\n }", "public function getPrice()\n\t{\n\t\t$co...
[ "0.71225154", "0.6759141", "0.6758368", "0.6739091", "0.66514516", "0.66075695", "0.6595988", "0.6552465", "0.65171415", "0.64511114", "0.6418368", "0.6411609", "0.63858545", "0.6383639", "0.6375516", "0.6368775", "0.6368775", "0.63590336", "0.63590336", "0.63590336", "0.6359...
0.8093637
0
function to create table that the current auth and refresh tokens will be stored in
функция для создания таблицы, в которую будут храниться текущие токены аутентификации и обновления
function sw_create_table(){ global $wpdb; $table_name = $wpdb->prefix . 'sw_creds'; $charset_collate = $wpdb->get_charset_collate(); //crete table query $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL PRIMARY KEY AUTO_INCREMENT, auth_token text NOT NULL, refresh_token text NOT NULL )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createTable() {\n\t\ttry {\n\t\t\t$driver = $this->pdo->getAttribute(\\PDO::ATTR_DRIVER_NAME);\n\t\t\tif (!isset(self::CREATE_TABLE[$driver])) {\n\t\t\tthrow new OAuthClientException(\n\t\t\t\tsprintf(\n\t\t\t\t\t'The database driver %s is not supported',\n\t\t\t\t\t$driver\n\t\t\t\t)\n\t\t\t);\n\...
[ "0.76250136", "0.73555964", "0.69405276", "0.69173795", "0.6854798", "0.66961837", "0.6607074", "0.6577548", "0.6475565", "0.6430224", "0.6368042", "0.6256351", "0.6208842", "0.6202615", "0.61807483", "0.6141855", "0.6141855", "0.61347747", "0.61108536", "0.6090892", "0.60453...
0.75871485
1
Returns the configured GitDirectory for the plugin
Возвращает настроенный GitDirectory для плагина
function getGitDir() { global $conf; $gitdir = $conf['plugin']['gitlivesync']['gitdir']; if (!isset($gitdir) || $gitdir === false || $gitdir === "") { $gitdir = $conf['savedir']."/git/"; } return DOKU_INC.$gitdir; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirectory() {\n\t\treturn $this->config['plugin_dir'];\n\t}", "protected function getDirectory()\n {\n return config('repositories.repository_path');\n }", "public function getGitRootDirectory(){\r\n \r\n return $this->git_root_directory;\r\n \r\n }", "publ...
[ "0.73652023", "0.73375666", "0.7122872", "0.7077771", "0.7076493", "0.7027722", "0.6718198", "0.66385615", "0.65860987", "0.65795135", "0.65437245", "0.6538846", "0.65360326", "0.64672923", "0.64672923", "0.64672923", "0.6413069", "0.64107203", "0.64069027", "0.637358", "0.63...
0.78230226
0
get_beneficios_vaga Busca dados pessoais de vaga
get_beneficios_vaga Ищет персональные данные вакансии
public function get_beneficios_vaga($id) { log_message('debug', 'get_beneficios_vaga. Param1: ' . $id); $this->db->where('idvaga', $id); $result = $this->db->get('beneficio_vaga'); log_message('debug', 'Last Query: ' . $this->db->last_query()); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_vagas(){\n\t\t\t$vagas = array();\n\t\t\t$criteria=new Criteria;\n\t\t\t$criteria->add(new Filter('id_empresa','=',$this->id));\n\t\t\t$repo= new Repository('Vaga');\n\t\t\t$vinculos = $repo->load($criteria);\n\t\t\tif ($vinculos){\n\t\t\t\tforeach ($vinculos as $vinculo){\n\t\t\t\t\t$vagas[] =...
[ "0.70555633", "0.6996315", "0.67456317", "0.6548096", "0.6519631", "0.650713", "0.65042335", "0.6458812", "0.64573425", "0.6454458", "0.6441072", "0.6425286", "0.6420453", "0.63881105", "0.63458294", "0.6339843", "0.6309227", "0.63090456", "0.6307644", "0.6302221", "0.6285059...
0.7289408
0
get_idioma Seleciona um idioma da vaga
get_idioma Выбирает язык вакансии
public function get_idioma($id, $id_idioma) { log_message('debug', 'get_idioma. Param1: ' . $id . ' Param2: ' . $id_idioma); $this->db->select('conhecimento_vaga.idconhecimento_vaga, conhecimento_vaga.idconhecimento, conhecimento_vaga.id_vaga, conheciment...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_idiomas($id)\n {\n log_message('debug', 'get_idiomas. Param1: ' . $id);\n\n $this->db->select('conhecimento_vaga.*, nivel_idioma.nivel_idioma');\n $this->db->from('conhecimento_vaga');\n $this->db->join('conhecimento', \n 'conhec...
[ "0.6851279", "0.6532635", "0.6525465", "0.6440139", "0.64222497", "0.6361569", "0.63533247", "0.6286005", "0.6277582", "0.6246969", "0.6228053", "0.6175209", "0.61736095", "0.6157031", "0.6140831", "0.6140257", "0.6118549", "0.6118549", "0.608115", "0.606539", "0.60498494", ...
0.7280726
0
Initializes a new Validator with rules and the data to perform the validation on
Инициализирует новый Validator с правилами и данными для выполнения проверки
public function __construct($rules, $data) { $this->rules = $rules; $this->data = $data; // Initialize the bootstrapper $bootstrap = new \Validator\Bootstrapper(dirname(__FILE__)); $bootstrap->register(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function initValidator();", "public function __construct ()\n {\n $this->validationResult = new RuleValidationResult();\n }", "public function __construct($data)\n {\n $this->data = $data;\n $this->validationRules = new ValidationRules();\n }", "public func...
[ "0.73084366", "0.7160404", "0.70271856", "0.68940884", "0.68823254", "0.68682325", "0.68583214", "0.6825045", "0.6762306", "0.6749039", "0.6749039", "0.674874", "0.6723393", "0.6705015", "0.6687723", "0.6660225", "0.665351", "0.6650007", "0.66481704", "0.66360146", "0.6577570...
0.74406916
0
Gets forms wrapper id.
Получает идентификатор обертки форм.
public static function getFormWrapperId(array $form) { $wrapper_id = 'os2web-spotbox-form-wrapper'; if (!empty($form['#ief_id'])) { $wrapper_id .= '-' . $form['#ief_id']; } return $wrapper_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFormRebuildWrapperId() {\n $wrapper = [];\n $wrapper[] = $this->getFormId();\n if ($id = $this->getEntity()->id()) {\n $wrapper[] = \"id-{$id}\";\n }\n $wrapper[] = 'wrapper';\n $result = implode('-', $wrapper);\n\n return $result;\n }", "public function getFormId...
[ "0.8070361", "0.7716349", "0.7716349", "0.7598352", "0.7428284", "0.733693", "0.7305592", "0.72699064", "0.72399193", "0.721514", "0.7168973", "0.71549106", "0.7147141", "0.71431106", "0.7084894", "0.7061743", "0.6973223", "0.6962654", "0.685108", "0.6808817", "0.6782072", ...
0.7926933
1
Bind an instance of the Source Adapter Factory to the container. Attaches the default adapter types
Привязывает экземпляр фабрики адаптера источника к контейнеру. Прикрепляет типы адаптеров по умолчанию
public function registerSourceAdapterFactory(): void { $this->app->singleton('mediable.source.factory', function (Container $app) { $factory = new SourceAdapterFactory; $classAdapters = $app['config']->get('mediable.source_adapters.class', []); foreach ($classAdapters as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setAdapters()\n {\n if ($this->requestAdapter === null) {\n $this->withRequestAdapter(new Request\\SlimRequest());\n }\n\n if ($this->responseAdapter === null) {\n $this->withResponseAdapter(new Response\\SlimResponse());\n }\n\n }", "funct...
[ "0.58426905", "0.5804445", "0.56457007", "0.5589984", "0.5569588", "0.55514497", "0.5541657", "0.54910845", "0.5489063", "0.5414662", "0.538319", "0.5379529", "0.53766733", "0.5372261", "0.53696114", "0.53452355", "0.5232904", "0.5223148", "0.5223148", "0.5218677", "0.5195284...
0.7551
0
Bind the Media Uploader to the container.
Привяжите загрузчик медиа к контейнеру.
public function registerUploader(): void { $this->app->bind('mediable.uploader', function (Container $app) { return new MediaUploader( $app['filesystem'], $app['mediable.source.factory'], $app['config']->get('mediable') ); }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function getFacadeAccessor() { return 'Media'; }", "public function registerMover(): void\n {\n $this->app->bind('mediable.mover', function (Container $app) {\n return new MediaMover($app['filesystem']);\n });\n $this->app->alias('mediable.mover', MediaMover::c...
[ "0.6134095", "0.5916855", "0.58648044", "0.58349884", "0.5828895", "0.57410496", "0.57410496", "0.5693286", "0.56301695", "0.5571576", "0.55582714", "0.55495316", "0.5529391", "0.5524607", "0.5504332", "0.54864925", "0.5475324", "0.5467869", "0.5467869", "0.545377", "0.542745...
0.74740493
0
Get the total distance of the route.
Получите общую длину маршрута.
public function getTotalDistance() { return $this->totalDistance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRouteTotalCost()\n {\n return $this->route_total_cost;\n }", "public function get_distance()\n {\n return $this->distance;\n }", "public function getRouteDistance($rtid){\n return $this->routes[$rtid]->dist;\n }", "public function getDistance()\r\n\t{\r\n\t\tr...
[ "0.77349806", "0.75247", "0.7453689", "0.7415888", "0.73855704", "0.73855704", "0.73281527", "0.7322439", "0.7252946", "0.7198157", "0.7126041", "0.66853786", "0.6680643", "0.64995414", "0.6377076", "0.6336832", "0.6217813", "0.6186372", "0.6163189", "0.6153886", "0.61398983"...
0.8187838
0
Get the total time of the route.
Получить общее время маршрута.
public function getTotalTime() { return $this->totalTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalTime()\n {\n $totalTime = 0;\n foreach ($this->data['requests'] as $services) {\n $totalTime += $services['time'];\n }\n\n return $totalTime;\n }", "public function total_time() {\n\t\treturn $this->meta( 'wprm_total_time', 0 );\n\t}", "priva...
[ "0.7448094", "0.74213004", "0.7414481", "0.72786444", "0.72262895", "0.7184281", "0.7090729", "0.7007694", "0.7007397", "0.6927438", "0.6919316", "0.69157743", "0.6779001", "0.6757148", "0.6724403", "0.66339254", "0.6511829", "0.6510296", "0.6484311", "0.64688116", "0.6465382...
0.7610155
0
Test cache expire / duration
Тестирование истечения срока действия кэша / продолжительности
public function testCacheExpire() { $this->cache->set('test-expire', 'test-value', 2); # assert existing cache $this->assertTrue($this->cache->has('test-expire')); sleep(3); # assert for expire cache $this->assertFalse($this->cache->has('tes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCachePageExpire()\n {\n \n //SiteAuditCheckCachePageExpire:\n \n //default: no expiration set\n $this->drush('audit:cache');\n $json = $this->getOutputFromJSON();\n $this->assertEquals('Expiration of cached pages not set!', $json['checks']['Si...
[ "0.7619506", "0.7564585", "0.7500123", "0.7477303", "0.726132", "0.71512413", "0.7092052", "0.7091983", "0.7081149", "0.70594704", "0.7055793", "0.7038809", "0.6944846", "0.6944846", "0.69361544", "0.6916545", "0.684411", "0.683898", "0.68304616", "0.6826825", "0.68051463", ...
0.854116
0
Return Crud form object.
Вернуть объект формы Crud.
abstract protected function getCrudForm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function form()\n {\n return $this->scaffoldForm();\n }", "private function createFormCuestionario()\n {\n $form = $this->createFormBuilder()\n ->getForm();\n \n return $form;\n }", "private function createFormCuestionario()\n {\n $form = $thi...
[ "0.7548153", "0.74721646", "0.74721646", "0.74232996", "0.74200296", "0.7346146", "0.7330075", "0.7315616", "0.7315616", "0.726464", "0.7246966", "0.7241799", "0.72415626", "0.72331345", "0.7226597", "0.7196512", "0.7191639", "0.7177947", "0.714925", "0.7140731", "0.7140658",...
0.8025035
0
Return Crud Api view class name.
Верните имя класса представления Crud Api.
abstract protected function getApiViewClass(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getViewFileName() {\n return str_replace('Controller', '', get_class($this));\n }", "public function getViewClass(): string\n {\n $answer = \"\";\n if($this->isInstanceFunction(end(explode('::', __METHOD__)))){\n $answer = $this->_function_decorations[end(ex...
[ "0.66304725", "0.63682127", "0.6337349", "0.633103", "0.63125974", "0.6269235", "0.62529176", "0.62106633", "0.6139402", "0.61107725", "0.61098313", "0.61004615", "0.6096247", "0.60794413", "0.60733557", "0.6029426", "0.60058516", "0.5987978", "0.59757125", "0.597101", "0.593...
0.74150044
0
// IsValidDate // IsValidDate() Check the validity of a short date Check the validity of a short date, which should be in the format yyyymmdd
// IsValidDate // IsValidDate() Проверка корректности короткой даты Проверка корректности короткой даты, которая должна быть в формате yyyymmdd
static function IsValidDate($strShortDate) { $dateParts = array(); $ok = preg_match ("/^(?:(\d\d\d\d)\-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))$/", $strShortDate, $dateParts); if (!$ok) { return FALSE; } return checkdate((int)$dateParts[2], (int)$dateParts[3], (int)$dateParts[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function IsValidDateInPast($strShortDate)\n\t{\n\t\t$dateParts = array();\n\t\t$ok = preg_match (\"/^(?:(\\d\\d\\d\\d)\\-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))$/\", $strShortDate, $dateParts);\n\t\tif (!$ok)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t$year = (int)$dateParts[1];\n\t\t$month = (int)$dateParts...
[ "0.74197954", "0.6969477", "0.6894445", "0.6841316", "0.6837362", "0.6815581", "0.67970324", "0.67744076", "0.6716108", "0.67120326", "0.6704664", "0.6684145", "0.66765654", "0.667356", "0.6622271", "0.6622271", "0.6622271", "0.6622271", "0.65815616", "0.6576226", "0.656074",...
0.8272387
0
// IsNotNull // IsNotNull() Returns TRUE if the value is not NULL Returns TRUE if the value is not NULL This will return TRUE if $mixValue == 0
// IsNotNull // IsNotNull() Возвращает TRUE, если значение не равно NULL Возвращает TRUE, если значение не равно NULL Этот метод вернет TRUE, если $mixValue == 0
static function IsNotNull($mixValue) { // take care of the special case where $mixValue == 0 if (is_numeric($mixValue)) { // if the value is a number then it can't be NULL return TRUE; } return (bool)($mixValue != NULL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isNull($value = null)\n{\n return \\is_null($value);\n}", "public function isNotNull()\n {\n return !$this->isNull();\n }", "static function NonZeroInteger($mixValue)\n\t{\n\t\tif ((int)$mixValue != 0 && (string)(int)$mixValue == (string)$mixValue)\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t...
[ "0.6138052", "0.60997266", "0.60764426", "0.59772414", "0.5969182", "0.5948857", "0.5948857", "0.58857113", "0.58242804", "0.5819009", "0.57519394", "0.5742671", "0.57363707", "0.5722936", "0.5722163", "0.5707536", "0.56073886", "0.5599908", "0.5571832", "0.5567101", "0.55580...
0.8068408
0
// IsValidFNN // IsValidFNN() Returns TRUE if the value is a valid FNN Returns TRUE if the value is a valid FNN Wrapper for the function IsValidFNN found in framework/functions.php
// IsValidFNN // IsValidFNN() Возвращает TRUE, если значение является допустимым FNN Возвращает TRUE, если значение является допустимым FNN Обертка для функции IsValidFNN, найденной в framework/functions.php
static function IsValidFNN($mixValue) { return IsValidFNN($mixValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NIF_check($NIF) {\n if (isValidNIF($NIF)) {\n return true;\n } else {\n return false;\n }\n }", "public function isValidNif($nif)\n {\n if (!is_numeric($nif) || strlen($nif) != 9) {\n return false;\n }\n\n $narray = str_spl...
[ "0.6207302", "0.6158566", "0.5815785", "0.56427914", "0.56054974", "0.55636793", "0.5520766", "0.5500099", "0.54428357", "0.5260668", "0.525978", "0.52458245", "0.52091426", "0.52031887", "0.5166895", "0.510996", "0.5091624", "0.5066398", "0.50531644", "0.5026028", "0.502045"...
0.7023941
0
/ Function to get consultant skill by id return result of array
Функция для получения навыка консультанта по идентификатору возвращает результат массива
function getConsultantSkillById($params = array()){ $qry = 'CALL getConsultantSkillById(%d)'; $qry = $this->db->prepareQuery($qry,$params['skillUpateId']); $recordSet = $this->db->multiQuery($qry); $rslt = $recordSet[0]; if($rslt){ $rslt['consultantSkillData'] = $recordSet[0][0]; $rslt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_skill(){\n $q = $this->db->get('personal_skill');\n if ($q->num_rows() > 0){\n return $q->result();\n }return array();\n }", "function getSkill($idSkill) {\n\tglobal $DB_DB;\n\t$request = $DB_DB->prepare(\"SELECT * FROM VariousSkills WHERE idSkill = :idSkil...
[ "0.72334605", "0.69803184", "0.68083656", "0.6686127", "0.6652845", "0.66138804", "0.65807855", "0.6566748", "0.6554629", "0.6503671", "0.6483226", "0.6431495", "0.64131105", "0.63296074", "0.63198483", "0.6308647", "0.62847805", "0.6254881", "0.6243205", "0.6228653", "0.6155...
0.7402969
0
/ Function to delete consultant skill By Id return result of single row
Функция для удаления навыка консультанта по Id, возвращает результат одной строки
function deleteSkill($params = array()){ $qry = 'CALL deleteSkill(%d,%d,"%s")'; $qry = $this->db->prepareQuery($qry,$params['userId'],$params['skillDeleteId'],DB_DATE_TIME); $rslt = $this->db->getSingleRow($qry); return $rslt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteExpert(Request $req, $skillId)\n {\n $uid = $req->input('user_id');\n $manage = UserExpert::where([['user_id', '=', $uid], ['skill_category_id', '=', $skillId]])->first();\n //제거시 cascade라면 여기서 작업해줘야 한다.\n if ($manage) {\n $manage->delete();\n ...
[ "0.7037367", "0.70017236", "0.6898957", "0.68575317", "0.6831635", "0.6789982", "0.67755294", "0.67656326", "0.66721034", "0.6651045", "0.66096646", "0.65226585", "0.6519458", "0.6514184", "0.65041876", "0.6495969", "0.6447932", "0.6423026", "0.64227015", "0.6410273", "0.6405...
0.7355536
0
Constructs a new StudentExercise
Создает новый StudentExercise
public function __construct($student, $exercise) { $this->student = $student; $this->exercise = $exercise; $this->answered = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(UserExercise $userExercise)\n {\n $this->userExercise = $userExercise;\n }", "function createExercise( $createName, $createArea, $createMuscle, $createDesc, $createInstr, $createAuthor ) {\r\n\r\n // Executes query\r\n try {\r\n\r\n //...
[ "0.68417674", "0.6155349", "0.5909868", "0.5787374", "0.57584006", "0.5735551", "0.573374", "0.57171893", "0.5707187", "0.56661636", "0.562335", "0.5599553", "0.55448335", "0.55367047", "0.55297285", "0.5480413", "0.547466", "0.54666543", "0.5458481", "0.54258746", "0.5385208...
0.7440047
0
Sets the DB connection used by the cache component.
Устанавливает соединение с БД, используемое компонентом кэширования.
public function setDbConnection($value) { $this->_db=$value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDBConn($value) {\n\t\t\t$this->_dbConn = $value;\n\t\t}", "public function setConnection()\n\t{\n\t\t$connection = $this->configuration->load('database')->use('default');\n\t\t\n\t\tswitch($connection)\n\t\t{\n\t\t\tcase \"mysql\":\n\t\t\t \t$connectionName = \"mysql\";\n\t\t\t \t$database = \...
[ "0.70237446", "0.67704415", "0.670634", "0.6696905", "0.66861904", "0.66574544", "0.6615857", "0.6605817", "0.660232", "0.6405666", "0.6396194", "0.6375787", "0.63332844", "0.63291", "0.6321632", "0.6321632", "0.62915605", "0.6280359", "0.62572825", "0.6253243", "0.6227485", ...
0.7205553
0
Function to fetch available user credits February 04,2017
Функция для получения доступных кредитов пользователя 04 февраля 2017 года
function fetchAvailableUserCredits($voffClientID) { //SELECT perm_core_credit FROM entrp_credit_core where client_id=12 $qry="SELECT perm_core_credit FROM entrp_credit_core WHERE client_id=".$voffClientID." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ReadUserCreditUsage() {\n\t\t\t$this->data[sgc_reseller_credit_management_api_params::API_RESELLER_CREDIT_MANAGEMENT_FROM_DATE] = $this->reseller->getFromDate();\n\t\t\t$this->data[sgc_reseller_credit_management_api_params::API_RESELLER_CREDIT_MANAGEMENT_TO_DATE] = $this->reseller->getToDate();\n\t\t\t$th...
[ "0.67092943", "0.64648336", "0.6356664", "0.6273839", "0.626176", "0.6161771", "0.61024487", "0.60285026", "0.6015536", "0.59755176", "0.59735906", "0.596426", "0.59549516", "0.58732414", "0.5850787", "0.5813026", "0.58115196", "0.58063614", "0.58050597", "0.5799658", "0.5772...
0.7231521
0
Function to fetch user voff id from clientid February 04,2017
Функция для получения идентификатора voff пользователя из clientid 04 февраля 2017 года
function getUserVOfffromENId($userID) { $qry="SELECT vof_clientid FROM entrp_login WHERE clientid=".$userID." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $id = $row['vof_clientid']; } return $id; } else { return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserID();", "function getClientID( $client ) {\n\t\tswitch ($client) {\n\t\t\tcase '2':\n\t\t\tcase 'installation':\n\t\t\t\treturn 2;\n\t\t\t\tbreak;\n\n\t\t\tcase '1':\n\t\t\tcase 'admin':\n\t\t\tcase 'administrator':\n\t\t\t\treturn 1;\n\t\t\t\tbreak;\n\n\t\t\tcase '0':\n\t\t\tcase 'site':\...
[ "0.60556424", "0.60151327", "0.59709716", "0.59191215", "0.58972716", "0.5887157", "0.58589906", "0.58558977", "0.5841651", "0.5791574", "0.57472664", "0.57210755", "0.5716801", "0.5713967", "0.56919676", "0.56915766", "0.56862473", "0.5679722", "0.56662256", "0.5660749", "0....
0.77272594
0
Function to get item price id from item tag January 17,2017
Функция получения идентификатора цены товара из метки товара 17 января 2017 года
function getItemPriceIDFromItemtag($itemTag) { $id= 0; $qry="SELECT id FROM entrp_products_pricing WHERE itemTag='".$itemTag."' "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $id = $row['id']; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPrice($item_id){\n $item_id = explode(';',$item_id);\n $price = 0;\n $map = [];\n $map['wxapp_id'] = array('=',self::$wxapp_id);\n foreach($item_id as $key=>$val){\n $map['id'] = array('=',$val);\n $res = db('item')->where($map)->find();\n ...
[ "0.6704027", "0.6492716", "0.6473549", "0.62694347", "0.6085087", "0.60041255", "0.5985558", "0.5891266", "0.5822322", "0.58117497", "0.57943064", "0.57639605", "0.5763808", "0.570832", "0.5702157", "0.56343424", "0.5630134", "0.5587878", "0.5580463", "0.5561069", "0.5560727"...
0.7751449
0
Function to remove company profile pic path from table September 21,2016
Функция для удаления пути к аватару компании из таблицы 21 сентября 2016 года
function removeCompanyProfilePicPathFromDB($userID) { $companyID = getCompanyIDFromCompUserRelation($userID); $qry="UPDATE company_profiles SET avatar='' WHERE id=".$companyID." "; setData($qry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeUserProfilePicPathFromDB($userID)\n{\n\t$qry=\"UPDATE client_profile SET avatar='' WHERE clientid=\".$userID.\" \";\n\tsetData($qry);\n}", "function removeStudentPicture($conn, $stu_reg, $path) { \r\n\r\n\t\t\t\tglobal $i_reg_tb, $i_student_tb; global $foreal;\r\n\r\n\t\t\t\t$ebele_mark = \"SELE...
[ "0.6972489", "0.685564", "0.62205184", "0.6197167", "0.6096044", "0.6090056", "0.605073", "0.6038337", "0.60256237", "0.5970196", "0.59524626", "0.5866881", "0.58423936", "0.5816373", "0.58035326", "0.5800067", "0.5791572", "0.5785607", "0.5772028", "0.57505643", "0.57343614"...
0.75128144
0
Function to remove user image path from table September 21,2016
Функция для удаления пути к изображению пользователя из таблицы 21 сентября 2016 года
function removeUserProfilePicPathFromDB($userID) { $qry="UPDATE client_profile SET avatar='' WHERE clientid=".$userID." "; setData($qry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeCompanyProfilePicPathFromDB($userID)\n{\n\t$companyID\t=\tgetCompanyIDFromCompUserRelation($userID);\n\t$qry=\"UPDATE company_profiles SET avatar='' WHERE id=\".$companyID.\" \";\n\tsetData($qry);\n}", "public function old_pic_remove($user_id='')\r\n\t{\r\n\t\t\t$data = DB::table('users')->find($u...
[ "0.7466158", "0.6946634", "0.68737954", "0.6834665", "0.6585394", "0.65310866", "0.6486161", "0.6474933", "0.6390922", "0.6318148", "0.6313522", "0.631313", "0.62896323", "0.6242983", "0.6221651", "0.621417", "0.61970735", "0.6183413", "0.61627895", "0.60919935", "0.60880613"...
0.7574094
0
Function to fetch event id from event tag August 17,2016
Функция для получения идентификатора события из тега события 17 августа 2016 года
function getEventTagfromEventId($eventId) { $qry="SELECT eventTagId FROM entrp_events WHERE id=".$eventId." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $eventTagId = $row['eventTagId']; } return $eventTagId; } else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEventIdfromEventTag($eventTagid)\n{\n\t\n\t$qry=\"SELECT id FROM entrp_events \n\t\t\tWHERE eventTagId='\".$eventTagid.\"' \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n\tif($count_res>0)\n\t{\n\t\twhile($row=mysqli_fetch_array($res))\n\t\t{\n\t\t\t$id\t\t=\t$row['id']; \t\t\t\t\t...
[ "0.7604229", "0.7437202", "0.6756875", "0.672269", "0.67168766", "0.6675681", "0.6666887", "0.6642331", "0.6593998", "0.65636075", "0.6554212", "0.6528966", "0.64781874", "0.6446437", "0.6369353", "0.6349308", "0.63269824", "0.6321424", "0.6290486", "0.6269141", "0.6248235", ...
0.74864405
1
Function to get company description using companyuser relationship August 10,2016
Функция для получения описания компании с использованием отношения companyuser 10 августа 2016 года
function getCompanyDescriptionUsingCompUserRelation($companyID) { $companyDesc= ''; $qry="SELECT description FROM company_profiles WHERE id=".$companyID." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $company...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthorcompany() {}", "function getCompanyNameUsingCompUserRelation($companyID)\n{\n\t$companyN= '';\n \t$qry=\"SELECT company_name\n\t\t\tFROM company_profiles \n\t\t\tWHERE id=\".$companyID.\"\n\t \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n\tif($count_res>0)\n {\...
[ "0.69583976", "0.6698672", "0.66759896", "0.65466285", "0.65331596", "0.6475569", "0.6390462", "0.6351868", "0.62524736", "0.6180494", "0.6179023", "0.6141388", "0.6109716", "0.6044551", "0.5983206", "0.59749675", "0.5953146", "0.593824", "0.5923772", "0.5910357", "0.5909158"...
0.7928572
0
Function to get company name using companyuser relationship August 10,2016
Функция получения названия компании с использованием отношения companyuser 10 августа 2016 года
function getCompanyNameUsingCompUserRelation($companyID) { $companyN= ''; $qry="SELECT company_name FROM company_profiles WHERE id=".$companyID." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $companyN = $ro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCompanyUserNameUsingCompUserRelation($companyID)\n{\n\t$companyUN= '';\n \t$qry=\"SELECT company_username\n\t\t\tFROM company_profiles \n\t\t\tWHERE id=\".$companyID.\"\n\t \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n\tif($count_res>0)\n {\n \twhile($row=mysqli_fetch_arra...
[ "0.7884789", "0.71432775", "0.7142753", "0.7087555", "0.68974185", "0.68360156", "0.68224037", "0.68224037", "0.68224037", "0.681811", "0.6817082", "0.6807195", "0.67675906", "0.6751767", "0.67011046", "0.66690385", "0.6667677", "0.66607505", "0.66607505", "0.66239226", "0.66...
0.8005472
0
Function to get company username using companyuser relationship August 10,2016
Функция для получения имени пользователя компании с использованием отношения companyuser 10 августа 2016 года
function getCompanyUserNameUsingCompUserRelation($companyID) { $companyUN= ''; $qry="SELECT company_username FROM company_profiles WHERE id=".$companyID." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $company...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCompanyNameUsingCompUserRelation($companyID)\n{\n\t$companyN= '';\n \t$qry=\"SELECT company_name\n\t\t\tFROM company_profiles \n\t\t\tWHERE id=\".$companyID.\"\n\t \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n\tif($count_res>0)\n {\n \twhile($row=mysqli_fetch_array($res))\...
[ "0.7777102", "0.71496695", "0.6767089", "0.67268276", "0.66490734", "0.6618706", "0.66040933", "0.65894794", "0.6548301", "0.6532547", "0.65239334", "0.6495556", "0.6376524", "0.6370351", "0.63672715", "0.6336677", "0.6306507", "0.6289471", "0.6270877", "0.6264617", "0.623548...
0.8265596
0
Function to get company id of a user from companyuser relationship August 10,2016
Функция получения идентификатора компании пользователя из отношения companyuser 10 августа 2016 года
function getCompanyIDFromCompUserRelation($userID) { $companyid= ''; $qry="SELECT companyid FROM entrp_company_members WHERE clientid=".$userID." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $companyid = $r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserCompanyId() {\n\t\treturn ($this->userCompanyId);\n\t}", "function getCompanyIdfromCompanyUserName($companyUserName)\n{\n\t\n\t$qry=\"SELECT id FROM company_profiles \n\t\t\tWHERE company_username='\".$companyUserName.\"' \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n\...
[ "0.76584285", "0.72442925", "0.7226014", "0.72216964", "0.6955183", "0.6947831", "0.6923713", "0.67613566", "0.6750918", "0.6692723", "0.6667125", "0.6647442", "0.66413796", "0.6582488", "0.6567295", "0.6559507", "0.65448624", "0.65115726", "0.65115726", "0.65104866", "0.6493...
0.7576126
1
Function to fetch event id from event tag June 29,2016
Функция для получения идентификатора события из метки события 29 июня 2016 года
function getEventIdfromEventTag($eventTagid) { $qry="SELECT id FROM entrp_events WHERE eventTagId='".$eventTagid."' "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $id = $row['id']; } return $id; } else { return nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEventTagfromEventId($eventId)\n{\n\t\n\t$qry=\"SELECT eventTagId FROM entrp_events \n\t\t\tWHERE id=\".$eventId.\" \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n\tif($count_res>0)\n\t{\n\t\twhile($row=mysqli_fetch_array($res))\n\t\t{\n\t\t\t$eventTagId\t\t=\t$row['eventTagId']; \t...
[ "0.7335999", "0.72840303", "0.65985143", "0.6596887", "0.6584066", "0.6581364", "0.6547023", "0.6503339", "0.64996284", "0.64983803", "0.64681673", "0.6453821", "0.6360222", "0.6324342", "0.6280439", "0.6260421", "0.6249616", "0.6243286", "0.6206875", "0.617815", "0.6169124",...
0.74543667
0
Function to fetch event details based on event tag June 21,2016
Функция для получения деталей события на основе тега события 21 июня 2016 года
function fetchEventDetailsBasedonEventTAG($eventTag) { //the defaults starts global $myStaticVars; extract($myStaticVars); // make static vars local $member_default_avatar = $member_default_avatar; $member_default_cover = $member_default_cover; $member_default = $member_default; $company_default_cover = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventInfo($event_id) {\n\n $eventInfo = array();\n\n $query = $this->db->prepare('SELECT * FROM `events`\n WHERE event_id=:event_id');\n $query->setFetchMode(PDO::FETCH_OBJ);\n $query->execute(array(\n ':event_id' => $event_id));\n\n if ($...
[ "0.64505035", "0.6438669", "0.6371193", "0.6318094", "0.63152856", "0.623393", "0.623393", "0.623393", "0.623393", "0.621981", "0.6182076", "0.61699986", "0.6118436", "0.6099091", "0.6046582", "0.60341066", "0.6028612", "0.5996923", "0.5946938", "0.5941459", "0.5929603", "0...
0.70714414
0
Function to get company owner from company id June 07,2016
Функция получения владельца компании по идентификатору компании 07 июня 2016 года
function getCompanyOwnerFromCOMPANYID($companyid) { //SELECT clientid FROM company_profiles WHERE id=1; $qry="SELECT clientid FROM company_profiles WHERE id='".$companyid."' "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $id = $row...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findOwnerCompany() {\n return Companies::find(array(\n 'conditions' => array('is_owner = ?', true),\n 'one' => true,\n ));\n }", "static function findOwnerCompany($force_load = false) {\n if($force_load || self::$owner_company === false) {\n self::$owner_company = ...
[ "0.8091783", "0.70899624", "0.68842024", "0.68662053", "0.68313235", "0.682629", "0.680928", "0.67952836", "0.67616403", "0.6729423", "0.66068554", "0.65758765", "0.6557534", "0.6550894", "0.6550894", "0.6547305", "0.6541176", "0.6473814", "0.64513385", "0.64474785", "0.64362...
0.76563936
1
Function to get event host id from event id June 07.2016
Функция получения идентификатора хоста события по идентификатору события 07.06.2016
function getEventHostFromEVENTID($eventId) { //SELECT clientid FROM entrp_events WHERE id=1 $qry="SELECT clientid FROM entrp_events WHERE id='".$eventId."' "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $id = $row['clientid']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventID() {\n return $this->_getField(\"eventID\", 0, 2);\n }", "public function getHostId()\n {\n if ($this->hostId === null) {\n $this->getHostIdFromDatabase();\n }\n\n return $this->hostId;\n }", "public function get_event_hash_code();", "...
[ "0.6672849", "0.65184546", "0.6258759", "0.62220293", "0.6138068", "0.6028127", "0.60222685", "0.60109395", "0.5981562", "0.596578", "0.5929788", "0.59025747", "0.58780265", "0.5874352", "0.5869213", "0.58583003", "0.58567953", "0.584162", "0.58062583", "0.58000207", "0.57757...
0.77582455
0
Function to fetch total (count) users following a company May 05,2016
Функция для получения общего (количество) пользователей, следящих за компанией 05 мая 2016 года
function entrp_company_follows($company_id) { //To fetch user followers //SELECT COUNT(entrp_user_follows.clientid) AS followers FROM entrp_user_follows WHERE entrp_user_follows.follows=1 $qry="SELECT COUNT(entrp_company_follows.clientid) AS followers FROM entrp_company_follows WHERE entrp_company_follows....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFollowerCount();", "public function getFollowingCount();", "public function getUsersCount();", "public function follow_count() {\n\t\treturn $this->redis()->sCard(\"graph:user:{$this->id}:following\");\n\t}", "public function follower_count() {\n\t\treturn $this->redis()->sCard(\"graph:u...
[ "0.6974691", "0.69552404", "0.67665464", "0.6765142", "0.6623989", "0.6610851", "0.6590651", "0.65889543", "0.65856117", "0.65334296", "0.651396", "0.65035725", "0.6496585", "0.6494528", "0.64925444", "0.6480491", "0.64635074", "0.64264363", "0.64264363", "0.64264363", "0.642...
0.70552003
0
Function to delete company categories May 05,2016 (Not in use now)
Функция удаления категорий компаний 05 мая 2016 года (не используется сейчас)
function delete_company_categories($company_id) { $qry="DELETE FROM entrp_company_categories WHERE companyid=".$company_id." "; setData($qry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteCategory()\n {\n }", "public function deleteCategory()\n { \n Database::_beginTransaction();\n $req = \"DELETE FROM blog_category\n WHERE idc = '\".$this->idc.\"'\";\n $res = Database::_exec($req);\n if(!$res){\n Database::_ro...
[ "0.68750715", "0.6843826", "0.6821846", "0.65499544", "0.64259607", "0.6382352", "0.63459516", "0.6332128", "0.6323224", "0.6319958", "0.6201725", "0.60686034", "0.60551167", "0.60512954", "0.6040695", "0.60331166", "0.6023399", "0.6001682", "0.60001594", "0.5999868", "0.5996...
0.75186765
0
Function to fetch company user id from company username May 10,2016
Функция для получения идентификатора пользователя компании из имени пользователя компании 10 мая 2016 года
function getCompanyIdfromCompanyUserName($companyUserName) { $qry="SELECT id FROM company_profiles WHERE company_username='".$companyUserName."' "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $id = $row['id']; } } re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserCompany(){\r\n $this->initDb();\r\n $un = \"\";\r\n $ui = $this->getUserId();\r\n if($ui != \"\"){\r\n $un = getValue(\"SELECT user_company FROM tbl_users WHERE user_id = \" . $ui);\r\n }\r\n return $un;\r\n ...
[ "0.7459984", "0.72976017", "0.7286665", "0.7239125", "0.7231983", "0.7165278", "0.7125658", "0.71221215", "0.71165127", "0.69953156", "0.6988421", "0.6968509", "0.69543606", "0.6925809", "0.6913319", "0.6900381", "0.68816525", "0.68510574", "0.68148464", "0.6804554", "0.67852...
0.78413177
0
Function to fetch company categories based on company id May 05,2016
Функция для получения категорий компании на основе идентификатора компании 05 мая 2016 года
function fetch_company_categories($company_id) { $data= array(); $qry="SELECT * FROM entrp_company_categories WHERE companyid=".$company_id." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $data = json_decode($row['category']); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getCategoryList()\n {\n // $company_id_encode = DbAgent::queryEncode($company_id,DbAgent::$DB_STRING);\n $query = \"SELECT *\n FROM category_t\n WhERE category_t.del_flag = 0\";\n // if($company_id != \"\"){\n // $query .= \...
[ "0.6955229", "0.68454957", "0.6625912", "0.65414315", "0.6526536", "0.65259224", "0.6498788", "0.64867806", "0.6475774", "0.64410883", "0.6429175", "0.64260906", "0.6407785", "0.6407785", "0.6407785", "0.6407785", "0.6407785", "0.6407785", "0.6407785", "0.63947487", "0.637620...
0.77064824
0
Register our REST Server
Зарегистрируем наш REST-сервер
public function hook_rest_server() { add_action( 'rest_api_init', array( $this, 'register_routes' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_rest_routes()\n {\n }", "public function register_rest_routes()\n {\n }", "public function register_routes() {\n\t\tregister_rest_route(\n\t\t\t$this->get_namespaced_version(),\n\t\t\t$this->rest_base,\n\t\t\t[\n\t\t\t\t[\n\t\t\t\t\t'methods' => WP_REST_Ser...
[ "0.70180386", "0.70159334", "0.67918795", "0.6787925", "0.6782419", "0.67548156", "0.67526925", "0.6605095", "0.65682477", "0.6473124", "0.64636827", "0.64625096", "0.64606655", "0.64276403", "0.6399448", "0.63880277", "0.63688886", "0.6354456", "0.63367593", "0.6334721", "0....
0.7037776
0
Test deserialization of SOAP header
Тест десериализации заголовка SOAP
#[@test] public function testHeader() { $msg= XPSoapMessage::fromString(' <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Header> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddingSoapHeader()\n {\n AnnotationRegistry::registerUniqueLoader('class_exists');\n\n $serializer = SerializerBuilder::create()\n ->setSerializationVisitor('soap', new SoapSerializationVisitorFactory())\n ->setPropertyNamingStrategy(\n new ...
[ "0.7334333", "0.6802322", "0.6414256", "0.6364348", "0.626319", "0.6212157", "0.613688", "0.60970306", "0.60029256", "0.59881216", "0.5980635", "0.59353864", "0.58880013", "0.5862513", "0.58504283", "0.5803147", "0.5776766", "0.5756765", "0.57308847", "0.5728367", "0.57116264...
0.73993033
0
Sets the accepted status for a given challenge ID to true.
Устанавливает принятый статус для заданного идентификатора вызова в true.
function acceptChallenge($challengeID): bool { $statementAcceptChallenge = $this->connection->prepare ( "UPDATE challenge SET accepted = 1 WHERE challengeid = ?" ); $statementAcceptChallenge->bind_param("i", $challengeID); if ($statementAcceptChallenge->execute()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function flagChallenge ($user_id, $challenge_id) {\n\t\t// update the challenge status\n\t\t$query = 'UPDATE `tblChallenges` SET `status_id` = 6 WHERE `id` = '. $challenge_id .';';\n\t\t$result = mysql_query($query);\n\t\t\n\t\t// insert record to flagged challenges\n\t\t$query = 'INSERT INTO `tblFlaggedChallenges...
[ "0.6503961", "0.623913", "0.61524296", "0.5956954", "0.5909641", "0.58289325", "0.58206725", "0.57881624", "0.5672585", "0.56722385", "0.55885667", "0.55478865", "0.5533097", "0.55217284", "0.5502786", "0.5496148", "0.54958606", "0.5494372", "0.54610735", "0.5438003", "0.5433...
0.73633313
0
Obtain all challenges for a user, preceded by the depreciated getChallengesData() method. First obtains a list of challenge ID's and initiation status' from the player_challenge table, and inserts these into an array of keypair values. Using the challenge ID's, query for challenge metadata as well as opponent data. As ...
Получить все вызовы для пользователя, используя устаревший метод getChallengesData(). Сначала получить список идентификаторов вызовов и статусов инициации из таблицы player_challenge, а затем вставить эти значения в массив пар ключей. Используя идентификаторы вызовов, запросить метаданные вызова и данные оппонента. По ...
function getChallenges($playerID): array { /* Construct a list of challenge ID's an initiation status'. -1 indicates that a result has not been posted and the match not yet played. */ $statementGetIDList = $this->connection->prepare ( "SELECT challengeid, didinitiate ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getChallengesForUser($user_id) {\n\t\t\n\t\t// get list of past opponents & loop thru\n\t\t$opponentID_arr = $this->challengeOpponents($user_id);\n\t\tforeach($opponentID_arr as $key => $val)\n\t\t\t$opponentChallenges_arr[$user_id .'_'. $val][] = $this->challengesWithOpponent($user_id, $val);\n\t\t\n\t\t...
[ "0.66353166", "0.66182715", "0.65480685", "0.6528065", "0.5831964", "0.5786181", "0.5719432", "0.56597257", "0.5641381", "0.5559926", "0.5487983", "0.5466323", "0.5308102", "0.53014857", "0.5279256", "0.5225644", "0.517017", "0.51219106", "0.5120738", "0.50948834", "0.5064407...
0.72299063
0
Identify the current highest Elo at a given users club.
Определите текущий самый высокий Эло в клубе пользователя.
function getClubMaxElo($playerID) { /* Fetch every players Elo from the users club. */ $statementGetElos = $this->connection->prepare ( "SELECT playerid, elo FROM player WHERE clubid = (SELECT clubid FROM player WHERE playerid = ?)" ); $statem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetchMaxRankedGiven()\n\t{\n\t\t$fetchCondition = $this->fetchCurrentUser().\"_id = \".$this->getSession(SYSTEM_JUDGE_USER_ID);\n\t\t$sQuery = \"SELECT MAX(vd.score) as maxRanked FROM \".DB_PREFIX.\"vote v,\".DB_PREFIX.\"vote_detail vd WHERE \".$fetchCondition.\" AND v.contest_id='\".$this->contest_id.\...
[ "0.5922233", "0.58977103", "0.5889017", "0.57614815", "0.5687641", "0.5588224", "0.55512327", "0.55208766", "0.55103767", "0.54654616", "0.54261214", "0.5416697", "0.5413776", "0.54046285", "0.5384997", "0.5373763", "0.5373605", "0.53517926", "0.5329143", "0.52734214", "0.524...
0.75281465
0
An array of class names for supported fields
Массив имен классов для поддерживаемых полей
public static function getSupportedFields(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getSupportedFields(): array;", "static public function getAllowedFields(): array\n {\n // @todo this where some more magic should happen and class introspection to be done\n }", "public static function getClassFields(): array\n {\n static::init();\n ret...
[ "0.7173848", "0.71516335", "0.71513623", "0.70241505", "0.68291664", "0.6818795", "0.6704316", "0.6681499", "0.66428965", "0.6638397", "0.6625429", "0.661209", "0.65699303", "0.6561561", "0.65612495", "0.65556926", "0.65494907", "0.65266585", "0.65266585", "0.65266585", "0.65...
0.72777975
0
Returns the supported strategies for this field type
Возвращает поддерживаемые стратегии для этого типа поля
public static function getSupportedStrategies(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEngineTypeAllowableValues()\r\n {\r\n return [\r\n self::ENGINE_TYPE_MYSQL,\r\n self::ENGINE_TYPE_MONGODB,\r\n self::ENGINE_TYPE_CLOUD_DATA_GUARD_MYSQL,\r\n ];\r\n }", "public function getPossibleAuthenticationStrategies(): array;", "funct...
[ "0.6299996", "0.60379666", "0.6023046", "0.5935905", "0.59177047", "0.5884486", "0.5884486", "0.58735627", "0.5861368", "0.57942873", "0.5747198", "0.5662729", "0.56301415", "0.55726814", "0.5556044", "0.5556044", "0.5556044", "0.5556044", "0.5554475", "0.5541618", "0.5537764...
0.73182017
0
Creates a CustomJob. A created CustomJob right away will be attempted to be run.
Создает CustomJob. Созданный CustomJob сразу попытается запуститься.
public function CreateCustomJob(\Google\Cloud\AIPlatform\V1\CreateCustomJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CreateCustomJob', $argument, ['\Google\Cloud\AIPlatform\V1\CustomJob', 'decode'], $met...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create($job) {}", "public static function job()\n {\n return new Job();\n }", "public function created(Job $job)\n {\n //\n }", "public function createJob(string $jobId)\n {\n }", "public function CreateJob(\\Google\\Cloud\\Talent\\V4\\CreateJobRequest $argument,\n ...
[ "0.6828253", "0.64805055", "0.6231752", "0.6180873", "0.6113062", "0.59989166", "0.5895712", "0.5875988", "0.5845092", "0.58394456", "0.5824068", "0.57316864", "0.57308066", "0.57308066", "0.57036394", "0.56966877", "0.5651939", "0.5638987", "0.5630156", "0.56100595", "0.5598...
0.7157244
0
Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or other methods to check whether the cancellation succeeded or whether t...
Отменяет CustomJob. Начинает асинхронную отмену для CustomJob. Сервер делает все возможное, чтобы отменить задание, но гарантии успешности отмены нет. Клиенты могут использовать [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] или другие методы, чтобы проверить, успешно ли прошла отмена или...
public function CancelCustomJob(\Google\Cloud\AIPlatform\V1\CancelCustomJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CancelCustomJob', $argument, ['\Google\Protobuf\GPBEmpty', 'decode'], $metadata, $opti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CancelJob(\\Google\\Cloud\\Dataplex\\V1\\CancelJobRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.cloud.dataplex.v1.DataplexService/CancelJob',\n $argument,\n ['\\Google\\Protobuf\\GPBEmpty', 'decode'],\n $metadata, $opt...
[ "0.6740561", "0.67306876", "0.66296685", "0.6477405", "0.6413668", "0.62767917", "0.61814004", "0.6180634", "0.6151152", "0.61309147", "0.61019987", "0.60067624", "0.5961885", "0.5955048", "0.59482276", "0.59351224", "0.59008837", "0.5887221", "0.5863935", "0.5735192", "0.569...
0.78898513
0
Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
Отменяет DataLabelingJob. Успех отмены не гарантируется.
public function CancelDataLabelingJob(\Google\Cloud\AIPlatform\V1\CancelDataLabelingJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CancelDataLabelingJob', $argument, ['\Google\Protobuf\GPBEmpty', 'decode'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelJob(string $id);", "public function cancel() {}", "public function cancel()\n {\n $this->cancelled = true;\n }", "public function cancel()\n\t\t{\n\n\t\t}", "public function cancelOperation()\n {\n echo \"Cancelling...\\n\";\n $this->cancelled = true;\n posix_ki...
[ "0.6962837", "0.67892504", "0.6720551", "0.6699085", "0.6675865", "0.66618764", "0.6633632", "0.6633632", "0.6633632", "0.66257644", "0.6560391", "0.647641", "0.6452896", "0.64215726", "0.6408621", "0.63618976", "0.6352493", "0.6221184", "0.6190519", "0.6187844", "0.6144897",...
0.73982286
0
Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or other methods ...
Отменяет HyperparameterTuningJob. Начинает асинхронную отмену HyperparameterTuningJob. Сервер делает все возможное, чтобы отменить задание, но гарантии успешности отмены нет. Клиенты могут использовать [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] или другие м...
public function CancelHyperparameterTuningJob(\Google\Cloud\AIPlatform\V1\CancelHyperparameterTuningJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CancelHyperparameterTuningJob', $argument, ['\Google\Protobuf\GPBE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelJob(string $id);", "public function cancel_job($job_id, $opt = null)\n\t{\n\t\tif (!$opt) $opt = array();\n\t\t$opt['JobId'] = $job_id;\n\n\t\treturn $this->authenticate('CancelJob', $opt, $this->hostname);\n\t}", "public function cancelJob(int $jobid): Job;", "protected function cancel...
[ "0.60312235", "0.5945591", "0.58861023", "0.58425826", "0.5495961", "0.5462282", "0.5461355", "0.5449487", "0.5392084", "0.5380225", "0.5379037", "0.5379037", "0.5379037", "0.5344339", "0.530406", "0.52727306", "0.5267312", "0.5239845", "0.52285486", "0.52092737", "0.5201589"...
0.76935387
0
Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job compl...
Отменяет NasJob. Запускает асинхронную отмену для NasJob. Сервер делает все возможное, чтобы отменить задание, но гарантии успешности отмены нет. Клиенты могут использовать [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] или другие методы, чтобы проверить, успешно ли была отмена или завершилось ...
public function CancelNasJob(\Google\Cloud\AIPlatform\V1\CancelNasJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CancelNasJob', $argument, ['\Google\Protobuf\GPBEmpty', 'decode'], $metadata, $options); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel(){\n\t\t$this->checkWorkflow(self::STATUS_CANCELED, false);\n\t\t$this->setStatus(self::STATUS_CANCELED)->save();\n\t\t$this->getSubscription()->deletePendingJobs();\n\t\t$this->getLogger()->info('The subscription was canceled.');\n\t}", "public function cancelJob(string $id);", "public ...
[ "0.6455503", "0.6139648", "0.60112274", "0.59774745", "0.5857124", "0.58436906", "0.57653666", "0.5762934", "0.5762934", "0.5762934", "0.5743769", "0.571832", "0.5715099", "0.5708255", "0.57051796", "0.5641223", "0.56251055", "0.5600443", "0.5597115", "0.559201", "0.55878437"...
0.78453267
0
Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.
Создает BatchPredictionJob. После создания BatchPredictionJob сразу попытается запустить его.
public function CreateBatchPredictionJob(\Google\Cloud\AIPlatform\V1\CreateBatchPredictionJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CreateBatchPredictionJob', $argument, ['\Google\Cloud\AIPlatform\V1\BatchPre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createBatch()\n {\n return new Batch(\n $this->client,\n false,\n $this->rootUrl,\n $this->batchPath\n );\n }", "public function new_batch($batch_id = null)\n\t{\n\t\treturn new UM_MailChimp_Batch($this, $batch_id);\n\t}", "public function BatchCreateJobs(\\G...
[ "0.65339065", "0.6052965", "0.55761164", "0.5454842", "0.5451175", "0.5440572", "0.5424403", "0.5260914", "0.52393943", "0.5183495", "0.51737964", "0.5143152", "0.5126253", "0.5042985", "0.50293237", "0.49831697", "0.4966023", "0.49621236", "0.49249142", "0.49176604", "0.4915...
0.72695357
0
Deletes a BatchPredictionJob. Can only be called on jobs that already finished.
Удаляет BatchPredictionJob. Может быть вызван только для завершенных заданий.
public function DeleteBatchPredictionJob(\Google\Cloud\AIPlatform\V1\DeleteBatchPredictionJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/DeleteBatchPredictionJob', $argument, ['\Google\LongRunning\Operation', 'dec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n $this->job->delete();\n }", "public function delete(Job $job): void;", "public function delete(string $batchId);", "public function delete()\n {\n $this->clearAllJobs();\n parent::delete();\n }", "public function destroy($batch_id)\n {\n ...
[ "0.6750561", "0.62216765", "0.61984074", "0.5851483", "0.5815578", "0.5784374", "0.5767931", "0.57359266", "0.57359266", "0.57359266", "0.57359266", "0.57359266", "0.57359266", "0.57359266", "0.57359266", "0.56880265", "0.568243", "0.5659933", "0.5641727", "0.56348455", "0.55...
0.7341163
0
Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or other methods to check whether t...
Отменяет BatchPredictionJob. Начинает асинхронную отмену BatchPredictionJob. Сервер делает все возможное для отмены задания, но успех не гарантируется. Клиенты могут использовать [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] или другие методы, чтобы проверить, удалось л...
public function CancelBatchPredictionJob(\Google\Cloud\AIPlatform\V1\CancelBatchPredictionJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/CancelBatchPredictionJob', $argument, ['\Google\Protobuf\GPBEmpty', 'decode'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel(string $batchId);", "public function cancelBatch(): void\n {\n $this->isBatch = false;\n $this->batch = [];\n }", "public function CancelJob(\\Google\\Cloud\\Dataplex\\V1\\CancelJobRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simp...
[ "0.72209096", "0.67732173", "0.63318807", "0.6320682", "0.6164839", "0.6150619", "0.6018299", "0.58497477", "0.581684", "0.5689756", "0.5643298", "0.5625561", "0.56121725", "0.5554514", "0.5534514", "0.55243146", "0.54579186", "0.54234934", "0.5421379", "0.54060245", "0.53713...
0.7658616
0
Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.
Приостанавливает ModelDeploymentMonitoringJob. Если задание запущено, сервер делает все возможное, чтобы отменить задание. Установит [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] в 'PAUSED'.
public function PauseModelDeploymentMonitoringJob(\Google\Cloud\AIPlatform\V1\PauseModelDeploymentMonitoringJobRequest $argument, $metadata = [], $options = []) { return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/PauseModelDeploymentMonitoringJob', $argument, ['\Google\P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ResumeModelDeploymentMonitoringJob(\\Google\\Cloud\\AIPlatform\\V1\\ResumeModelDeploymentMonitoringJobRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.cloud.aiplatform.v1.JobService/ResumeModelDeploymentMonitoringJob',\n $argument,\n ...
[ "0.5900222", "0.5747765", "0.5676182", "0.55002916", "0.5250379", "0.5157673", "0.51567686", "0.511964", "0.5084085", "0.49897754", "0.48479062", "0.48279864", "0.48000082", "0.46823025", "0.46624193", "0.4656604", "0.4611887", "0.4591218", "0.45653987", "0.45582506", "0.4541...
0.7640479
0
Get locale display name.
Получить отображаемое имя локали.
public function getLocaleDisplayName($locale);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDisplayName(){\n\t\t$name = languageModel::getString($this->displayName);\n\n\t\treturn $name ? $name : $this->displayName;\n\n\t}", "function altLocaleName ()\n{\n return ucfirst(LocalizationHelper::getLocaleProperty( 'native', altLocale() ));\n}", "public function getName($locale = 'hr'...
[ "0.77360535", "0.7522137", "0.74384886", "0.731795", "0.72486347", "0.72260445", "0.7211966", "0.7177125", "0.7143481", "0.71272916", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705", "0.7110705",...
0.8426672
0
Find a user by user_id and current site_id.
Найдите пользователя по user_id и текущему site_id.
function site_user($id = NULL) { if ( ! is_numeric($id)) return FALSE; $this->where('site_id', kohana::config('chapterboard.site_id'))->where('id', $id)->find(); return $this->loaded ? $this : FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find_user($id);", "public function findUser($id);", "public function getUserById($id){\n $this->db->query('SELECT * FROM users\n WHERE id = :userId');\n //bind parameters\n $this->db->bind('userId', $id);\n\n //set the found user to a varia...
[ "0.7136494", "0.6954151", "0.6942713", "0.6884158", "0.6884158", "0.6884158", "0.6868575", "0.68552756", "0.6782675", "0.6710622", "0.67063653", "0.6702199", "0.6700574", "0.6696213", "0.6689242", "0.6685981", "0.6677521", "0.6632326", "0.66123396", "0.6588248", "0.6574539", ...
0.7377346
0
Find user by calendar token.
Найдите пользователя по токену календаря.
function find_by_token($token) { return $this->where('calendar_token', $token)->find(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function findUser($token) {\n $this->createConnection();\n\n $query_str = \"\n SELECT * FROM LIGHT_USER\n WHERE LIGHT_USER.token = '$token';\n \";\n $res = $this->connection->query($query_str);\n\n $this->closeConnection();\n\n $user_...
[ "0.69936484", "0.6978337", "0.69096893", "0.6874104", "0.67598754", "0.6699388", "0.66697246", "0.6654324", "0.6651768", "0.6646052", "0.66432095", "0.6572863", "0.6572575", "0.65724444", "0.65699327", "0.65171707", "0.6443959", "0.64019346", "0.63994455", "0.639573", "0.6394...
0.7324513
0
Find by phone number.
Найти по телефону.
public function find_by_phone($number) { $user = $this->with('profile')->where('profile.phone', $number)->find(); if ($user->loaded) { return $user; } return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findByPhoneNumber($phoneNumber);", "public static function findByPhone($phone) {\n return static::findOne(['real_phone' => $phone]);\n }", "public function findByPhone ($phone) {\n return $this->findOneBy(array('phone' => $phone, 'state' => TRUE));\n \t}", "public static func...
[ "0.75672585", "0.6828187", "0.6632549", "0.6563812", "0.65606153", "0.65035754", "0.6486199", "0.64487725", "0.6436445", "0.6419675", "0.63939095", "0.6372756", "0.6221273", "0.6213917", "0.6210041", "0.6208453", "0.61951107", "0.61939144", "0.6185977", "0.6167627", "0.613257...
0.7469414
1
Generate a list of upcoming birthdays
Создать список следующих дней рождения
public function upcoming_birthdays() { return $this->with('profile')->select('users.*, DAYOFYEAR(`profile`.`birthday`) as days') ->custom_where('DAYOFYEAR(CURDATE()) <= DAYOFYEAR(`profile`.birthday) AND DAYOFYEAR(CURDATE() + 8) >= DAYOFYEAR(`profile`.`birthday`)') ->where('site_id', kohana::config('chap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function who_has_birthday_today()\n\t{\n\t\t$return = array('list' => array());\n\n\t\t$current_day = strval(date('d', CURRENT_TIME));\n\t\tif (strlen($current_day) == 1)\n\t\t{\n\t\t\t$current_day = '0' . $current_day;\n\t\t}\n\n\t\t$current_month = strval(date('m', CURRENT_TIME));\n\t\tif (strlen($current...
[ "0.686507", "0.66045964", "0.6556877", "0.6368723", "0.6256299", "0.61074483", "0.59971267", "0.5914416", "0.5792398", "0.57707816", "0.5760661", "0.5758047", "0.57350594", "0.5732079", "0.5725393", "0.5706679", "0.5705457", "0.5694938", "0.56858337", "0.5668591", "0.5613193"...
0.76072335
0
Provide list of current active users.
Предоставьте список текущих активных пользователей.
public function active_users_list() { $users = $this->where('site_id', kohana::config('chapterboard.site_id'))->orderby('searchname', 'ASC') ->where('status', 1) ->find_all(); foreach ($users as $user) { $results[$user->id] = $user->name(); } return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getActiveUsersList() {\n $sql = \"SELECT u.id, u.username, concat(p.firstname,' ',p.middlename,' ',p.lastname) \"\n . \"as emp_name FROM infinity._user u INNER JOIN infinity.person p \"\n . \"ON u.person_id=p.id where u.isactive=1;\";\n $result = s...
[ "0.7880743", "0.7852048", "0.7772754", "0.7657688", "0.76355875", "0.76153857", "0.7600951", "0.7596497", "0.7579816", "0.7573507", "0.74572235", "0.74246025", "0.7368947", "0.7351534", "0.73169047", "0.72758526", "0.7236981", "0.7235644", "0.7233961", "0.72087014", "0.717959...
0.8077087
0
Build a set of member statistics. Return an array of histogram data about the members in the result.
Создайте набор статистики членов. Верните массив данных гистограммы о членах в результате.
function get_statistics($members) { $data = array(); foreach ($members as $member) { $data['types'][$member->type]++; $data['shirt_size'][$member->profile->shirt_size]++; $data['year'][$member->profile->school_year]++; $data['initiation_year'][text::searchable($member->profile->initiatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatistics() : array;", "function getStatistic()\n {\n $ret = array();\n foreach ($this->data as $entry) {\n if (array_key_exists($entry['entryType'], $ret)) {\n $ret[$entry['entryType']]++;\n } else {\n $ret[$entry['entryTyp...
[ "0.6108417", "0.6026728", "0.600337", "0.58875924", "0.5847526", "0.58153206", "0.57751054", "0.5770831", "0.5770831", "0.57395416", "0.5705578", "0.5666157", "0.56169254", "0.56169254", "0.5607143", "0.5607143", "0.556979", "0.556494", "0.5549599", "0.554724", "0.55360526", ...
0.723998
0
Update the searchname field.
Обновите поле searchname.
private function _update_searchname() { $this->searchname = sprintf('%s%s', text::searchable($this->first_name), text::searchable($this->last_name)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSearchName($name_search)\n {\n $this->name_search = $name_search;\n $this->search = true;\n }", "public function updateSearchIndex()\n {\n $searchIndex =\n $this->getFullName()\n . ' '\n . $this->getEmail();\n \n $thi...
[ "0.78626394", "0.70388836", "0.68125737", "0.66192096", "0.6534201", "0.64795756", "0.63940513", "0.63769346", "0.6370071", "0.6305634", "0.6259021", "0.6208206", "0.61456174", "0.6129177", "0.61110586", "0.6038199", "0.60266393", "0.59991777", "0.59419763", "0.593425", "0.59...
0.90800065
0
Conexion para la Base De Datos
Соединение с базой данных
public function Conexion() { $usuario = $this->GetUsuario(); $clave = $this->GetClave(); $servidor = $this->GetServidor(); $nomBD = $this->GetNomBaseDatos(); $this->SetDsn ( "postgres8://$usuario:$clave@$servidor/$nomBD" );//postgres8!=mysql $this->SetDB ( NewADOConnection ( $this->GetDsn () ) ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function conectarConBaseDatos(){\n\n //Configurar la conexión\n $this->conexion= mysqli_connect(\n $this->servidor,\n $this->usuario,\n $this->clave,\n $this->nombreBaseDatos\n );\n\n //Verificar la conex...
[ "0.7984605", "0.77093685", "0.7690302", "0.7661626", "0.7632539", "0.7606131", "0.758884", "0.7582044", "0.7563489", "0.7558513", "0.75079155", "0.7503986", "0.7489331", "0.74865955", "0.7465534", "0.7435732", "0.7386728", "0.73854107", "0.7350121", "0.7343738", "0.7327039", ...
0.7978354
1
Gets the isDowngradeJustificationRequired property value. Exposes whether justification input is required on label downgrade.
Получает значение свойства isDowngradeJustificationRequired. Отображает необходимость ввода обоснования при понижении метки.
public function getIsDowngradeJustificationRequired(): ?bool { $val = $this->getBackingStore()->get('isDowngradeJustificationRequired'); if (is_null($val) || is_bool($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'isDowngr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIsDowngradeJustificationRequired(?bool $value): void {\n $this->getBackingStore()->set('isDowngradeJustificationRequired', $value);\n }", "public function getIsDiscountLossProtection()\n {\n return isset($this->IsDiscountLossProtection) ? $this->IsDiscountLossProtection : n...
[ "0.6643391", "0.5520487", "0.53588325", "0.5305857", "0.51270336", "0.49677268", "0.49421895", "0.48778743", "0.4834891", "0.48045918", "0.47323826", "0.46895826", "0.46895826", "0.46798998", "0.4651015", "0.4651015", "0.46365902", "0.46221855", "0.46172783", "0.46080548", "0...
0.72811425
0
Sets the defaultLabelId property value. The defaultLabelId property
Устанавливает значение свойства defaultLabelId. Свойство defaultLabelId
public function setDefaultLabelId(?string $value): void { $this->getBackingStore()->set('defaultLabelId', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setDefault($id, $value){ }", "public function setDefaultId(SetCalendarItemInfo $defaultId)\n {\n return $this->setChild('default', $defaultId);\n }", "protected function defaultLabel() {\n return $this->label;\n }", "public function getDefaultLabel()\n {\n $t...
[ "0.64870733", "0.6314512", "0.6272941", "0.6247607", "0.62231964", "0.62171036", "0.60467035", "0.6026453", "0.5972191", "0.59211034", "0.5799472", "0.57908475", "0.57795167", "0.5778368", "0.57721245", "0.5769674", "0.57538134", "0.5752518", "0.57431215", "0.57360166", "0.57...
0.76983887
0
Sets the isDowngradeJustificationRequired property value. Exposes whether justification input is required on label downgrade.
Устанавливает значение свойства isDowngradeJustificationRequired. Открывает возможность указания, требуется ли ввод обоснования при понижении метки.
public function setIsDowngradeJustificationRequired(?bool $value): void { $this->getBackingStore()->set('isDowngradeJustificationRequired', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsDowngradeJustificationRequired(): ?bool {\n $val = $this->getBackingStore()->get('isDowngradeJustificationRequired');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store f...
[ "0.58590525", "0.46192506", "0.45975095", "0.4596133", "0.4399195", "0.43901506", "0.43623197", "0.43206373", "0.4296451", "0.42407954", "0.42234066", "0.41937667", "0.413793", "0.40989488", "0.40989488", "0.40545747", "0.4043705", "0.40272954", "0.40220627", "0.40055147", "0...
0.751954
0
Sets the isMandatory property value. Exposes whether mandatory labeling is enabled.
Устанавливает значение свойства isMandatory. Открывает возможность включения обязательной метки.
public function setIsMandatory(?bool $value): void { $this->getBackingStore()->set('isMandatory', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIsMandatory($isMandatory)\n {\n $this->isMandatory = $isMandatory;\n return $this;\n }", "public function setIsMandatory($val)\n {\n $this->_propDict[\"isMandatory\"] = boolval($val);\n return $this;\n }", "public function setMandatory($mandatory)\n ...
[ "0.75773144", "0.71457034", "0.6682013", "0.66472", "0.66472", "0.6475998", "0.63951194", "0.6351878", "0.6239574", "0.618667", "0.61564535", "0.61451876", "0.6118286", "0.6118286", "0.59960693", "0.59960693", "0.5983344", "0.597214", "0.5912987", "0.5829744", "0.58255196", ...
0.72451216
1
Sets the moreInfoUrl property value. Exposes the more information URL that can be configured by the administrator.
Устанавливает значение свойства moreInfoUrl. Открывает URL-адрес с дополнительной информацией, который может быть настроен администратором.
public function setMoreInfoUrl(?string $value): void { $this->getBackingStore()->set('moreInfoUrl', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_more_info( array $more_info ) {\n\t\treturn $this->setMoreInfo( $more_info );\n\t}", "public function setMoreInfo( array $more_info ) {\n\t\treturn $this->more_info = $more_info;\n\t}", "public function getMoreInfo() {\n\t\treturn $this->more_info;\n\t}", "protected function setThemeDetai...
[ "0.72342706", "0.72158843", "0.60150266", "0.58062106", "0.57732284", "0.57554066", "0.5714154", "0.56402206", "0.5629214", "0.5629214", "0.5569417", "0.555205", "0.5501795", "0.5494463", "0.5428504", "0.5422514", "0.53674453", "0.53377515", "0.5308631", "0.52803403", "0.5279...
0.7803096
0
Generates a custom mail link, based on host
Генерирует кастомную ссылку на электронную почту на основе хоста
function mailLink($mail){ $mail = strtolower($mail); $b1 = strchr($mail, "@"); $b2 = strchr($b1, "."); $host = str_replace($b2 ,"",$b1); $host = str_replace("@","",$host); switch($host){ case "gmail": return "http://www.gmail.com"; case "hotmail": return "http://w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function modify_email_from_address() : string {\n $sitename = wp_parse_url( network_home_url(), PHP_URL_HOST );\n if ( 'www.' === substr( $sitename, 0, 4 ) ) {\n $sitename = substr( $sitename, 4 );\n }\n\n return 'info@' . $sitename;\n}", "function emaillink($address, $name = null) {\n }", ...
[ "0.6658858", "0.6603748", "0.6591502", "0.65795285", "0.64149874", "0.6376494", "0.6374564", "0.6357162", "0.6304129", "0.6289649", "0.6289001", "0.6276879", "0.62686265", "0.6221273", "0.6208649", "0.6200831", "0.6189265", "0.6164481", "0.61220473", "0.6117297", "0.6116252",...
0.76197267
0
api/useropeninviteswithcreds?userId=text,1&authToken=text, user authentication token&lat=34.017&lon=118.495
api/useropeninviteswithcreds?userId=text,1&authToken=text, пользовательский токен аутентификации&lat=34.017&lon=118.495
public function useropeninviteswithcredsAction() { $status=array(); $data=array(); $request = $this->getRequest(); $user= new DatabaseObject_User($this->db); if ($user->loadByValidatedSession($request->getParam('userId'), $request->getParam('authToken'))){ //Check Session ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function oauthOpen($params = []);", "function get_user_data() {\n $paramUserId = $_GET[\"UserId\"];\n $getIndividualProfile = \"/Individuals/Profile/\" . $paramUserId;\n $data = authenticate();\n $response = send_request($data->uri . $getIndividualProfile, null, array('usertoken: ' . $data->us...
[ "0.57124126", "0.55073595", "0.53830445", "0.5382341", "0.53213924", "0.53178114", "0.53106576", "0.52755636", "0.5252386", "0.52206016", "0.5187878", "0.5172296", "0.5161919", "0.5154369", "0.51525575", "0.5142898", "0.51405585", "0.51368123", "0.5134308", "0.513404", "0.513...
0.8000302
0
Remove unused column `sales_methods`
Удалить неиспользуемую колонку `sales_methods`
protected function removeSalesMethodsColumn(SchemaSetupInterface $setup) { $connection = $setup->getConnection(); $connection->dropColumn($setup->getTable('mageworx_multifees_fee'), 'sales_methods'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uninstallSalesData()\n {\n $this->setup->getConnection()->dropColumn(\n $this->setup->getTable('sales_order'),\n CustomFieldsInterface::CHECKOUT_BUYER_NAME\n );\n $this->setup->getConnection()->dropColumn(\n $this->setup->getTable('sales_orde...
[ "0.6794716", "0.6715027", "0.6039653", "0.5922968", "0.5805446", "0.57876676", "0.5672022", "0.5654059", "0.56412387", "0.56345767", "0.56336254", "0.56115544", "0.5589795", "0.55863076", "0.5547152", "0.5493787", "0.5488529", "0.54804105", "0.5477713", "0.5464804", "0.544491...
0.7232772
0