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
$sqlA[] = "UPDATE adiciondetalleingresotalla SET cantidad='0', WHERE iddetalleingreso='$iddetalleingreso' AND talla='$tallafinal1';";
$sqlA[] = "UPDATE adiciondetalleingresotalla SET cantidad='0', WHERE iddetalleingreso='$iddetalleingreso' AND talla='$tallafinal1';";
function actualizarsoloparesnulossinmin($idkardex,$tallafinal,$tallafinal1,$cantidad1,$iddetalleingreso,$idmodelodetalle,$return = false ){ $sqlA[] = "UPDATE adicionkardextienda SET saldocantidad='0',cantidad='0',generado='0' WHERE idmodelodetalle='$idmodelodetalle' AND idcalzado='$iddetalleingreso' AND talla='$tal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function alteraTreinoAluno($conexao,$aluno,$academia,$idtreinoPadraoAluno){\n\n\t$sql = \"update treinoAluno set aluno = $aluno, academia=$academia where treinoPadraoAluno=$idtreinoPadraoAluno and idtreinoAluno <>0\";\n\n\n\t$altera= mysqli_query($conexao,$sql);\n\techo (\"<br>Linha alterada = \" . mysqli_affected...
[ "0.71112686", "0.70778257", "0.69791406", "0.6623139", "0.6599758", "0.6566934", "0.6518915", "0.6486147", "0.6454191", "0.6434565", "0.6428749", "0.6411174", "0.6332832", "0.6324948", "0.631287", "0.63090336", "0.62995434", "0.6288741", "0.62842005", "0.6274706", "0.6255504"...
0.74017036
0
$sqlA[] = "UPDATE adiciondetalleingresotalla SET cantidad='$cantidad1' WHERE iddetalleingreso='$iddetalleingreso' AND talla='$talla';";
$sqlA[] = "UPDATE adiciondetalleingresotalla SET cantidad='$cantidad1' WHERE iddetalleingreso='$iddetalleingreso' AND talla='$talla';";
function actualizarsoloparesnulosin($idkardex,$talla,$cantidad1,$iddetalleingreso,$idmodelodetalle,$return = false ){ $sqlA[] = "UPDATE adicionkardextienda SET saldocantidad='$cantidad1',cantidad='$cantidad1' WHERE idmodelodetalle='$idmodelodetalle' AND idcalzado='$iddetalleingreso' AND talla='$talla';"; $sqlA[] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function actualizarsoloparesnulossinmin($idkardex,$tallafinal,$tallafinal1,$cantidad1,$iddetalleingreso,$idmodelodetalle,$return = false ){\n $sqlA[] = \"UPDATE adicionkardextienda SET saldocantidad='0',cantidad='0',generado='0' WHERE idmodelodetalle='$idmodelodetalle' AND idcalzado='$iddetalleingreso' AND tall...
[ "0.7258362", "0.7095367", "0.6984995", "0.69590396", "0.6917446", "0.68281543", "0.6815225", "0.68030214", "0.6675013", "0.662284", "0.6620051", "0.65986735", "0.659735", "0.65568113", "0.65140784", "0.6506686", "0.64998215", "0.6495025", "0.64855886", "0.6483198", "0.6448969...
0.7290716
0
Test that the author page is not accessible since not authorized.
Тестирование того, что страница автора недоступна, так как не выполнен вход в систему.
public function testAuthorPageTest() { $response = $this->get('/authors'); $response->assertStatus(302); //expect 302 since not logged in }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testNonAdminUserCannotViewThePageIndex()\n {\n $response = $this\n ->actingAs($this->user)\n ->get('/admin/blog/pages');\n\n $response->assertStatus(403);\n }", "function disable_author_page() {\n\tglobal $wp_query;\n\n\tif ( is_author() ) {\n\t\t$wp_quer...
[ "0.74397033", "0.71675205", "0.7091112", "0.7034383", "0.697517", "0.6921509", "0.68423295", "0.6814638", "0.6761533", "0.6747833", "0.6720907", "0.66947794", "0.66917264", "0.666251", "0.6659985", "0.6653762", "0.6626726", "0.6618566", "0.6594027", "0.6581228", "0.6580142", ...
0.7359431
1
Set CookeMode Param to true if cookieHandling is enables
Установите параметр CookeMode в true, если cookieHandling включен
private function initializeCookieMode(): void { if (isset($this->configuration['cookieHandling']) && (bool)$this->configuration['cookieHandling'] === true) { $this->logger->info('Cookie Handling is set.'); $this->cookieMode = true; $this->cookieName = $this->configuration...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enableCookies() {}", "public function enableCookies() {\n\t\t$this->cookiesEnabled = TRUE;\n\t}", "public function set_cookie()\n {\n }", "protected function handle_cookie()\n {\n }", "public function cookieAction() {\n if($_COOKIE['tx_cookies_accepted'] &...
[ "0.70665276", "0.6843895", "0.6147448", "0.6005707", "0.5873348", "0.5846875", "0.58276325", "0.5818137", "0.5797959", "0.57474506", "0.57393813", "0.568613", "0.5682982", "0.56511074", "0.56361943", "0.5608472", "0.55333525", "0.5525064", "0.5491687", "0.5486682", "0.5467062...
0.7337784
0
Store a newly created resource in storage. store new Restaurant
Храните новый ресурс в хранилище. store new Restaurant
public function store(CreateRestaurantRequest $request) { $hash = bin2hex(random_bytes(25)); $res = Restaurant::create([ 'name' => $request->input('name'), 'country_id' => $request->input('country'), 'city_id' => $request->input('city'), 'type_food' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(StoreRestaurantRequest $request)\n {\n $restaurant = new Restaurant;\n $restaurant->name = $request->input('name');\n $restaurant->state = $request->input('state');\n $restaurant->city = $request->input('city');\n $restaurant->suburb = $request->input('su...
[ "0.72208565", "0.71438205", "0.6749259", "0.6676085", "0.66396374", "0.66314346", "0.6603712", "0.65827566", "0.65827566", "0.65827566", "0.6580772", "0.6580772", "0.6580772", "0.6538441", "0.6538441", "0.6538441", "0.6538441", "0.6538441", "0.6538441", "0.6538441", "0.653844...
0.7311572
0
/ Add custom text just before the "Purchase" button at checkout
/ Добавить пользовательский текст непосредственно перед кнопкой "Покупка" во время оформления заказа
function cfc_edd_purchase_form_before_submit() { ?> <p><?php _e('Click on the button below to make your donation', 'cfctranslation'); ?> </p> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function organique_single_add_to_cart_text() {\n\t\treturn __( 'Add to shopping cart', 'organique_wp' );\n\t}", "function woo_custom_cart_button_text(){\n\treturn __('Comprar', 'woocommerce');\n}", "public function single_add_to_cart_text() {\n\n\t\tif ( $this->is_purchasable() && $this->is_in_stock() ) {\n\t\...
[ "0.73344785", "0.7121958", "0.7116409", "0.7001793", "0.68807924", "0.68762046", "0.6747143", "0.6694471", "0.6607422", "0.6541256", "0.6494585", "0.6481205", "0.6462282", "0.63546205", "0.6309921", "0.6306728", "0.62925106", "0.62601227", "0.62507546", "0.62402976", "0.62344...
0.7251224
1
/ Remove decimal places from all prices
Удалить десятичные знаки из всех цен
function cfc_edd_remove_decimals( $decimals ) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeFormatPrice($price='')\n {\n //Agregamos el punto decimal\n $price = str_replace(\"<sup>\", \"<sup>.\", $price);\n //removemos etiquetas html y espacios duplicados\n $price = preg_replace('/\\s+/', ' ',strip_tags($price));\n //\n //Extraemos el valor nume...
[ "0.7252864", "0.7083453", "0.67638874", "0.66886955", "0.66367626", "0.6538925", "0.6491706", "0.6450495", "0.6450495", "0.63677996", "0.6332667", "0.63204926", "0.6299777", "0.62808216", "0.62567765", "0.6206479", "0.61482006", "0.61339724", "0.6094123", "0.60912126", "0.605...
0.71151227
1
Replace total at the bottom of the checkout page
Замените total внизу страницы оформления заказа
function cfc_edd_checkout_final_total() { ?> <p id="edd_final_total_wrap"> <strong><?php _e( 'Donation Total:', 'cfctranslation' ); ?></strong> <span class="edd_cart_amount" data-subtotal="<?php echo edd_get_cart_subtotal(); ?>" data-total="<?php echo edd_get_cart_subtotal(); ?>"><?php edd_cart_total(); ?></span> </p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cfc_edd_replace_final_total() {\n\tremove_action( 'edd_purchase_form_before_submit', 'edd_checkout_final_total', 999 );\n}", "function give_checkout_final_total( $form_id ) {\n\n\t$total = isset( $_POST['give_total'] ) ?\n\t\tapply_filters( 'give_donation_total', give_maybe_sanitize_amount( $_POST['give...
[ "0.7132521", "0.70181906", "0.67041427", "0.63068277", "0.6192923", "0.6184784", "0.61493003", "0.6080056", "0.5956307", "0.5937804", "0.59151644", "0.5896362", "0.5896362", "0.5896362", "0.58667964", "0.58597046", "0.5841471", "0.5837415", "0.583453", "0.5830658", "0.5829643...
0.74943095
0
The index method render the resolve of the searching. If the 'word' is empty or the found journals is not global them the it renders the Searching form
Метод index отображает результат поиска. Если слово пустое или найденные журналы не являются глобальными, то отображается форма поиска.
public function index(){ $user_id = Authcomponent::user('id'); $word = $this->request->data['Search']['word']; $this->set('word', $word); $this->loadAditionalCss('bootstrap.components.alert'); if(!empty($this->data)){ //Who is performing the search $this->Search->setLoggedUser($this->objLoggedU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchAction()\n {\n $search = $this->createSearchObject();\n $result = $search->searchWord($this->view->word);\n $this->view->assign($result);\n\n if (Model_Query::$debug) {\n $this->view->actionTrace = [\n 'action' => sprintf('%s::searchWor...
[ "0.6885726", "0.6434963", "0.6429755", "0.6421807", "0.6378111", "0.6368966", "0.62786925", "0.62631464", "0.625469", "0.6228568", "0.6216042", "0.6214887", "0.61760634", "0.6132783", "0.60826176", "0.60450447", "0.6030578", "0.6030431", "0.6008182", "0.59906137", "0.5970503"...
0.7879346
0
Function to fetch last updated time of QR Code September 27,2016
Функция для получения времени последнего обновления QR-кода 27 сентября 2016 года
function fetchQRCodeUpdatedTime() { $data= array(); $session_values=get_user_session(); $my_session_id = $session_values['id']; if($my_session_id>0) { $data=getLastUpdatedTimeQRCode($my_session_id); } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLastUpdatedTimeQRCode($clientid)\n{\n\t$data= array();\n\t$qry=\"SELECT qrCodeUpdatedDateTime FROM entrp_login WHERE clientid=\".$clientid.\" \";\n\t$res=getData($qry);\n $count_res=mysqli_num_rows($res);\n if($count_res>0)\n {\n \twhile($row=mysqli_fetch_array($res))\n \t{\n \t\t$data['las...
[ "0.7343355", "0.6841837", "0.67392385", "0.66538715", "0.66022307", "0.6558668", "0.65031064", "0.64733154", "0.639261", "0.63361514", "0.6335765", "0.6330887", "0.6309272", "0.62332886", "0.62285817", "0.6221351", "0.6209335", "0.6182824", "0.61695707", "0.61618495", "0.6147...
0.7967727
0
Function to fetch last updated time for QR Codes September 27,2016
Функция для получения времени последнего обновления QR-кодов 27 сентября 2016 года
function getLastUpdatedTimeQRCode($clientid) { $data= array(); $qry="SELECT qrCodeUpdatedDateTime FROM entrp_login WHERE clientid=".$clientid." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $data['lastUpdatedAt'] = $row['qrCod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetchQRCodeUpdatedTime()\n{\n\t$data= array();\n\t$session_values=get_user_session();\n\t$my_session_id\t= $session_values['id'];\n\tif($my_session_id>0)\n\t{\n\t $data=getLastUpdatedTimeQRCode($my_session_id);\n\t}\n\treturn $data;\n}", "function getLastModifiedTime(){\n /*$output = dbcCmd(\"getLa...
[ "0.80050284", "0.67817587", "0.6763335", "0.6659092", "0.6514451", "0.6468063", "0.6441403", "0.6416095", "0.64122826", "0.6400522", "0.63803434", "0.6361667", "0.62756574", "0.6240706", "0.6212971", "0.6182546", "0.6177763", "0.6171232", "0.61680955", "0.613054", "0.6129054"...
0.74388975
1
Function to change a user's QR Code September 27,2016
Функция для изменения QR-кода пользователя 27 сентября 2016 года
function changeQRCode() { $data= array(); $session_values=get_user_session(); $my_session_id = $session_values['id']; if($my_session_id>0) { $qrCodeToken = uniqueQRCodeToken(); saveQRCOdeforUser($my_session_id,$qrCodeToken); $data=getLastUpdatedTimeQRCode($my_session_id); } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function qrCode(){\n }", "function update_qr_code_with_user ( $user_id, $form_id, $form_settings, $form_vars ) {\n foreach ( $form_vars as $value ) {\n if( $value['input_type'] == 'qr_code' ) {\n $post_data = $_POST[$value['name']];\n $this->save_qr_meta_...
[ "0.64189076", "0.6334579", "0.6301796", "0.6230757", "0.6188718", "0.6108842", "0.5811042", "0.5739008", "0.5672111", "0.5582518", "0.55706817", "0.5555643", "0.55349094", "0.55248266", "0.5464873", "0.5456323", "0.54541564", "0.5434868", "0.541987", "0.54063636", "0.54046696...
0.76036614
0
Function to fetch qrcode from database, if already generated September 22,2016
Функция для получения qrcode из базы данных, если он уже сгенерирован 22 сентября 2016 года
function fetchUserQRCodeFromDB($clientid) { $qrCode= ''; $qry="SELECT qrCode FROM entrp_login WHERE clientid=".$clientid." "; $res=getData($qry); $count_res=mysqli_num_rows($res); if($count_res>0) { while($row=mysqli_fetch_array($res)) { $qrCode = $row['qrCode']; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function qrCode(){\n }", "function uniqueQRCodeToken()\n{\n\t$token = substr(md5(uniqid(rand(), true)),0,32); // creates a 32 digit token\n\t//SELECT * FROM entrp_login where qrCode='70f804625753d84827ef993329c3b1b8'\n $qry = \"SELECT * FROM entrp_login WHERE qrCode='\".$token.\"'\";\n $res=getDat...
[ "0.6689841", "0.6598756", "0.6598087", "0.62843734", "0.6255885", "0.6210461", "0.6180097", "0.59823817", "0.5951755", "0.5935147", "0.5934314", "0.58158976", "0.5798777", "0.5797228", "0.57851756", "0.57811624", "0.5737487", "0.5725353", "0.5701284", "0.569396", "0.56815964"...
0.70207036
0
Function to save QR code of the user in database September 22,2016
Функция для сохранения QR-кода пользователя в базе данных 22 сентября 2016 года
function saveQRCOdeforUser($clientid,$qrCodeToken) { date_default_timezone_set('UTC'); $updatedAt=date('Y-m-d H:i:s'); $qry="UPDATE entrp_login SET qrCode='".$qrCodeToken."',qrCodeUpdatedDateTime='".$updatedAt."' WHERE clientid=".$clientid." "; setData($qry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function qrcodeSave() {\r\n $user_id = \\Yii::$app->user->getId();\r\n $baseimgurl = 'date/upload/wechat/qrcode/';\r\n $createpath=\\Yii::$app->basePath.'/web/'.$baseimgurl;\r\n ToolService::createdir($createpath);\r\n //生成随机文件名\r\n $basefilename = $user_id . '_' . ...
[ "0.6927675", "0.66051584", "0.64536387", "0.64484525", "0.6445947", "0.6445253", "0.6400585", "0.63203114", "0.6203617", "0.6072156", "0.6022365", "0.59619814", "0.58937997", "0.58912724", "0.58901906", "0.587052", "0.5861061", "0.5836587", "0.5833277", "0.57605004", "0.57149...
0.7427749
0
Function to generate qrcode for a user September 17,2016
Функция для генерации QR-кода для пользователя 17 сентября 2016 года
function getUserQRCode() { $qr = new qrcode(); //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 generateQrCode()\n {\n return $this->doRequest('GET', 'qr-code', []);\n }", "public function generateQRCode()\n {\n if (! $this->getUser()->loginSecurity || ! $this->getUser()->loginSecurity->google2fa_secret) {\n $this->generate2faSecret();\n $this->g...
[ "0.7057807", "0.6992457", "0.6919701", "0.6863013", "0.6595573", "0.65870583", "0.65730387", "0.6352657", "0.63361603", "0.63141984", "0.6283551", "0.6168217", "0.6090191", "0.60780007", "0.6055569", "0.60196775", "0.5964249", "0.5955374", "0.5946925", "0.5930047", "0.5871183...
0.7094792
0
Function to cache an image
Функция для кэширования изображения
function cacheThisImage($img) { require_once 'externalLibraries/ImageCache.php'; $baseurl=base_url(); $imagecache = new ImageCache(); //$imagecache->cached_image_directory = $baseurl. 'entreprenity/api/cachedImages/'; $imagecache->cached_image_directory = dirname(__FILE__) . '/cachedImages'; $cached_src_one = $i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cacheImage($url) {\r\n\t\ttry {\r\n\t\t\t$cacheDir = dirname(__FILE__) . '/img/cache/';\r\n if (!file_exists($cacheDir)) {\r\n mkdir($cacheDir, 0777, true);\r\n }\r\n \t$cached_filename = md5($url);\r\n\t\t\t$files = glob($cacheDir . '*.{jpg,jpeg,png,gif}', GLO...
[ "0.7534191", "0.7436239", "0.71659476", "0.709847", "0.7057842", "0.704647", "0.6944", "0.68771976", "0.67925733", "0.6783626", "0.66606313", "0.65780807", "0.65701824", "0.65622705", "0.6553189", "0.6546614", "0.65371907", "0.6492414", "0.64840305", "0.6443609", "0.64056194"...
0.81290287
0
Function to fetch events hosted by a company using company user name (Not in use as of now. This is fetched from mother function internally) June 28,2016
Функция для получения событий, организованных компанией, используя имя пользователя компании (Не используется в настоящее время. Получается внутренне из главной функции) 28 июня 2016 года
function getEventsHostedByCompany() { $companyUserName=validate_input($_GET['companyUserName']); $companyid=getCompanyIdfromCompanyUserName($companyUserName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetchCompanyEvents($companyid)\n{\n\t//the defaults starts\n\tglobal $myStaticVars;\n\textract($myStaticVars); // make static vars local\n\t$member_default_avatar \t\t= $member_default_avatar;\n\t$member_default_cover\t\t= $member_default_cover;\n\t$member_default\t\t\t\t= $member_default;\n\t$company_de...
[ "0.58884996", "0.5864408", "0.5729649", "0.5683063", "0.5665857", "0.55873835", "0.5560339", "0.55186605", "0.5514727", "0.55022305", "0.5478791", "0.5450705", "0.5442758", "0.542622", "0.5418258", "0.5413679", "0.5412229", "0.5382358", "0.5369456", "0.53636694", "0.5359975",...
0.8137219
0
To Return Chart Of Account Primary Key
Вернуть первичный ключ счета учета
public function getChartOfAccountId() { return $this->chartOfAccountId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccountID()\n {\n return $this->getKey('AccountID');\n }", "public function getAccountID();", "public function getAccount_id()\n {\n return $this->fv_account_id;\n }", "public function getUserAccountPublicId();", "public function getAccountID()\n {\n r...
[ "0.673483", "0.6549242", "0.59513855", "0.59432256", "0.58281016", "0.58281016", "0.57594967", "0.57327837", "0.5704079", "0.56193835", "0.5602827", "0.5602827", "0.55944484", "0.5572595", "0.55538255", "0.55458677", "0.5545149", "0.5545149", "0.55444443", "0.55444443", "0.55...
0.7041185
0
To Return Equipment Status
Возврат статуса оборудования
public function getEquipmentStatusId() { return $this->equipmentStatusId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetStatus()\n\t{\n\t\t// Demnach ist der Status in IPS der einzige der vorliegt.\t\t\n\t}", "public function get_status()\n {\n }", "public function get_status()\n {\n }", "public function getStatus();", "public function getStatus();", "public function getStatu...
[ "0.71064234", "0.68311775", "0.68311775", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.6795706", "0.679065", "0.66528785", "0.66528463", "0.66528463", "0.66356784", "0.65806115", "0.65105337", "0.64966...
0.7082567
1
To Return Document Number
Возврат номера документа
public function getDocumentNumber() { return $this->documentNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentNumber()\n {\n return $this->documentNumber;\n }", "public function getPageNo(\\SetaPDF_Core_Document $document) {}", "public function getNextDocumentNumber() {\n \n }", "public function getNextInitAppDocNumber(){\n $lastDoc = File::orderBy('id', 'desc')->firs...
[ "0.8033857", "0.75927866", "0.7371253", "0.71659225", "0.71575606", "0.7060846", "0.6928596", "0.6813762", "0.66853154", "0.65247136", "0.65247136", "0.6488724", "0.64376456", "0.64333916", "0.64084774", "0.6389939", "0.63849664", "0.6376377", "0.63759756", "0.63759756", "0.6...
0.791522
1
Get the value of withUser
Получите значение withUser
public function getWithUser() { return $this->withUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_user() {\r\n\t\treturn ($this->user);\r\n\t}", "function get_user () {\n\t\treturn $this->user_id;\n\t}", "function get_user()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_USER);\r\n }", "function get_user()\r\n {\r\n return $this->get_default_prope...
[ "0.72810036", "0.7270481", "0.7226088", "0.7226088", "0.7047616", "0.7002039", "0.69639933", "0.6932346", "0.69226205", "0.6906708", "0.6902393", "0.69004846", "0.68988764", "0.68957585", "0.68550485", "0.68309766", "0.6807405", "0.6807405", "0.6807405", "0.68018425", "0.6801...
0.77812624
0
Publish the language directory if it doesn't exists.
Публикуйте каталог языка, если он не существует.
private function publishLanguage() { if (!file_exists(base_path().'/resources/lang/')) { mkdir(base_path().'/resources/lang'); $this->info('Published language directory in '.base_path().'/resources/lang/'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function publishContentLanguages()\n\t{\n\t\t// Publish the Content Languages.\n\t\t$tableLanguage = Table::getInstance('Language');\n\n\t\t$siteLanguages = $this->getInstalledlangs('site');\n\n\t\t// For each content language.\n\t\tforeach ($siteLanguages as $siteLang)\n\t\t{\n\t\t\tif ($tableLanguage->lo...
[ "0.6533153", "0.6461036", "0.63219535", "0.62832725", "0.626728", "0.62158537", "0.6187548", "0.6109286", "0.6003677", "0.5981178", "0.5979843", "0.5906641", "0.5882832", "0.5814616", "0.5704598", "0.5700723", "0.5692256", "0.5544377", "0.5489684", "0.5462505", "0.5439634", ...
0.90800023
0
End of Declare \Markguyver\LivefyreImporter\Data\Livefyre\Conversation>get_delay_export() function
Конец объявления функции \Markguyver\LivefyreImporter\Data\Livefyre\Conversation>get_delay_export()
public function get_delay_export() { // Declare \Markguyver\LivefyreImporter\Data\Livefyre\Conversation->get_delay_export() function return $this->delay_export; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_delay_export( $delay_export ) { // Declare \\Markguyver\\LivefyreImporter\\Data\\Livefyre\\Conversation->set_delay_export() function\n\t\t\t$this->delay_export = $this->validate_boolean( $delay_export );\n\t\t}", "public function getDelay(): int;", "public function getDelay()\n {\n ...
[ "0.68835616", "0.6474485", "0.64270294", "0.640562", "0.63719296", "0.62447023", "0.62289864", "0.62289864", "0.6030264", "0.59385717", "0.583899", "0.56244296", "0.540658", "0.538695", "0.52635485", "0.5241311", "0.5220851", "0.51730233", "0.51513165", "0.51444924", "0.51021...
0.87689084
0
returns an absolute path to the include directory, without trailing slash
возвращает абсолютный путь к каталогу include, без последнего слеша
function includePath() { $self = __FILE__; $lastSlash = strrpos($self, "/"); return substr($self, 0, $lastSlash); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIncludePath()\n {\n return $this->includePath;\n }", "public function loader_get_include_path () {\r\n\t\treturn $this->_include_path;\r\n\t}", "function dirPath() {return (\"../../../../\"); }", "function serendipity_getRealDir($file) {\n $dir = str_replace( \"\\\\\", \"/\...
[ "0.72928655", "0.72707367", "0.7077098", "0.70489055", "0.70401007", "0.6928244", "0.6870859", "0.6756299", "0.66347796", "0.6632205", "0.66260797", "0.6542704", "0.63725823", "0.63158613", "0.6309371", "0.63003606", "0.6268338", "0.6232803", "0.6219213", "0.6190017", "0.6166...
0.8402538
0
secure_random_bytes from / The function is providing, at least at the systems tested :), $len bytes of entropy under any PHP installation or operating system. The execution time should be at most 1020 ms in any system.
secure_random_bytes из / Функция предоставляет, по крайней мере, на тестированных системах :), $len байтов энтропии при любой установке PHP или операционной системы. Время выполнения должно составлять не более 1020 мс на любой системе.
function secure_random_bytes($len = 10) { /* * Our primary choice for a cryptographic strong randomness function is * openssl_random_pseudo_bytes. */ $SSLstr = '4'; // http://xkcd.com/221/ if (function_exists('openssl_random_pseudo_bytes') && (version_compare(PHP_VERSION, '5.3.4') >= 0 || substr(PHP_O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tf_secure_rand($length)\r\n {\r\n if (function_exists('openssl_random_pseudo_bytes')) {\r\n $rnd = openssl_random_pseudo_bytes($length, $strong);\r\n if ($strong) {\r\n return $rnd;\r\n }\r\n }\r\n\r\n $sha ='';\r\n $rnd ='';\r...
[ "0.77263725", "0.71910405", "0.6986814", "0.6916504", "0.6887284", "0.6835139", "0.68115693", "0.6751972", "0.6737933", "0.6737527", "0.6734642", "0.67274714", "0.67096144", "0.67087436", "0.66707814", "0.664992", "0.660424", "0.65923333", "0.6587896", "0.6571497", "0.6562536...
0.841408
0
accessor method for user city
метод доступа для города пользователя
public function getUserCity(){ return($this->userCity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCity() {}", "public function getCity();", "function getCity() {\r\r\n\t\treturn $this->city;\r\r\n\t}", "public function getCity() \n {\n return $this->city;\n }", "public function getUserCity() {\n\t\treturn ($this->userCity);\n\t}", "public function getCity(){\r\n\t\treturn $thi...
[ "0.8596332", "0.84837425", "0.84189755", "0.8347452", "0.8284131", "0.82552654", "0.8232774", "0.81867206", "0.81867206", "0.81867206", "0.8144807", "0.81186444", "0.8089398", "0.8089398", "0.8089398", "0.8089398", "0.8089398", "0.8089398", "0.8089398", "0.8089398", "0.808939...
0.8735699
0
accessor method for user state
метод доступа для состояния пользователя
public function getUserState(){ return($this->userState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserState() {\n\t\treturn ($this->userState);\n\t}", "public function getEnableUserState();", "public function state(){\n return $this->state;\n }", "public function getState() {}", "public function getState() {}", "public function getState() {}", "public function state();", "p...
[ "0.76730424", "0.7081535", "0.69570285", "0.69018674", "0.6900374", "0.68998414", "0.6738225", "0.6705128", "0.67023635", "0.6680954", "0.6623362", "0.6581329", "0.656958", "0.6569548", "0.6557736", "0.6519172", "0.6513234", "0.6513234", "0.6513234", "0.6513234", "0.6513234",...
0.8023415
0
accessor method for user zip code
метод доступа для ZIP-кода пользователя
public function getUserZip(){ return($this->userZip); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getZipCode()\n {\n return parent::getValue('zip_code');\n }", "public function getZipCode(){\r\n\t\treturn $this->zipCode;\r\n\t}", "public function getZipcode()\n {\n return $this->zipcode;\n }", "public function getZipcode()\n {\n return $this->zipcode;\n...
[ "0.8226972", "0.7949336", "0.7905355", "0.7905355", "0.7905355", "0.78147596", "0.78147596", "0.7728549", "0.7577471", "0.7571427", "0.7568071", "0.75587696", "0.73121023", "0.72362256", "0.72362256", "0.7234989", "0.72164655", "0.7211782", "0.70051414", "0.6905916", "0.68723...
0.795889
1
mutator method for user zip code
метод мутатор для ZIP-кода пользователя
public function setUserZip($newUserZip){ //clear out white space $newUserZip = trim($newUserZip); //allows null if($newUserZip === null){ $this->userZip = null; return; } //validates value is Integer if(filter_va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_zip( $zip ) {\n\t\treturn $this->set_field( 'OWNERZIP', $zip );\n\t}", "function setZip( $value )\n {\n $this->Zip = $value;\n }", "public function getUserZip(){\n return($this->userZip);\n }", "public function getZipCode()\n {\n return parent::getValue('z...
[ "0.70573556", "0.6840066", "0.68258786", "0.68133986", "0.65185314", "0.65127647", "0.64797896", "0.640869", "0.640869", "0.640869", "0.63626444", "0.63626444", "0.6360515", "0.6360515", "0.63586694", "0.6336586", "0.62823594", "0.6226586", "0.62069285", "0.61757106", "0.6155...
0.71179193
0
accessor method for user website link
метод доступа для ссылки на сайт пользователя
public function getUserWebsite(){ return($this->userWebsite); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLink();", "public function getLink();", "public function getOfficialLink();", "public function getLink() {}", "public function getLink(): string;", "public function getLink(): string;", "function getLink(): string;", "public function link() {\n return isset($this->_adaptee->user...
[ "0.7495109", "0.7495109", "0.74159247", "0.7360608", "0.7346507", "0.7346507", "0.7342497", "0.7325689", "0.73169696", "0.73045343", "0.725687", "0.71604466", "0.71265966", "0.7114497", "0.7112476", "0.7098522", "0.70774454", "0.70651215", "0.70521", "0.70521", "0.7050066", ...
0.7524807
0
accessor method for user avatar
метод доступа для аватара пользователя
public function getUserAvatar(){ return($this->userAvatar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAvatar()\n {\n return $this->user['avatar'];\n }", "public function getAvatar(): string;", "public function getAvatar()\n {\n return $this->avatar;\n }", "public function getAvatar()\n {\n return $this->avatar;\n }", "public function getAvatar()\n ...
[ "0.85839665", "0.8453341", "0.83607984", "0.83607984", "0.83607984", "0.83607984", "0.83607984", "0.83607984", "0.83596975", "0.83207226", "0.82787347", "0.8274242", "0.8260178", "0.8260178", "0.81948733", "0.8182618", "0.8173914", "0.8130568", "0.8120114", "0.8118852", "0.80...
0.8747592
0
gets values of userActivityList
получает значения userActivityList
public function getUserActivityList(){ return($this->userActivityList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getList()\n {\n $result = array();\n $list = Pi::registry('activity', 'user')->read();\n foreach ($list as $name => $activity) {\n $result[$name] = array(\n 'title' => $activity['title'],\n 'icon' => $activity['icon'],\n )...
[ "0.7410807", "0.6813622", "0.6753115", "0.65422654", "0.63250273", "0.63079065", "0.62400573", "0.6175359", "0.6076435", "0.5984821", "0.597571", "0.5968565", "0.5952024", "0.59403527", "0.5912986", "0.5908393", "0.5896454", "0.5862293", "0.57719445", "0.5769078", "0.57370466...
0.8255953
0
/ sets value of userActivityList
/ устанавливает значение userActivityList
public function setUserActivityList($newUserActivityList){ //filter $newUserActivityList = trim($newUserActivityList); $newUserActivityList = filter_var($newUserActivityList, FILTER_SANITIZE_STRING); //set values $this->userActivityList = $newUserActivityList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserActivityList(){\n return($this->userActivityList);\n }", "public function setActivity($value)\n {\n return $this->set('Activity', $value);\n }", "function activityList($userId,$data){\n\n $activity = array(); \n $activity['hasAffiliates'] = 0;\n ...
[ "0.6604992", "0.62129027", "0.5811472", "0.57975274", "0.57975274", "0.5797365", "0.5797365", "0.5797365", "0.5797365", "0.5797365", "0.57298046", "0.57009274", "0.56257886", "0.5439595", "0.5376976", "0.5341953", "0.531483", "0.5311148", "0.5298516", "0.52786875", "0.5273712...
0.73870367
0
Handle an escalation of an interaction. This is also called when all users are forced to follow an existing interaction
Обработка эскалации взаимодействия. Это также вызывается, когда все пользователи вынуждены следовать существующему взаимодействию
public function escalated(Interaction $interaction) { $id = $interaction->id; $message = $interaction->message; $attribution = $interaction->attribution($this->site, $this->user, true); $url = $this->site->server . $this->site->root . '/cl/interact/' . $id; $announce = '<strong>Interaction has been Escalated...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reactToOnAfterDealtDamage($event) { }", "public function undoFinalAdmit()\n {\n if (!is_null($this->acceptOffer) and !is_null($this->declineOffer)) {\n throw new \\Jazzee\\Exception('Cannot undo admit for an applicant with a offer response.');\n }\n $this->finalAdmit = null;\n $...
[ "0.5407917", "0.52230626", "0.5199871", "0.50991845", "0.5069394", "0.50540364", "0.4964697", "0.49339163", "0.4917487", "0.480529", "0.47932002", "0.4739742", "0.46850604", "0.46784502", "0.4669317", "0.4659351", "0.46370843", "0.4570588", "0.4567197", "0.45294803", "0.45293...
0.70590514
0
Gets user information for a given user Returns the contents of the usertable if the user is found or false
Получает информацию о пользователе для заданного пользователя Возвращает содержимое таблицы usertable, если пользователь найден, или false
public function getInformation( $userid ) { $this->debug->guard( ); $sql = $this->database->prepare( "SELECT * FROM " . $this->configuration->getConfiguration( 'zeitgeist', 'tables', 'table_users' ) . " WHERE user_id = ?" ); $sql->bindParam( 1, $userid ); if ( !$sql->execute( ) ) { $this->debug...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getProfileInfo($user){\n\t\tglobal $db;\n\t\t$sql = \"SELECT * from personalinfo WHERE user_email ='$user'\";\n\t\t$result =$db->query($sql);\n\t\t$infotable = $result->fetch_assoc();\n\t\treturn $infotable;\n\t}", "public static function retrieveUserInformation($user) {\n return R::find('user', ...
[ "0.7075433", "0.6991077", "0.6984418", "0.6941098", "0.69405437", "0.6934852", "0.68880785", "0.6868895", "0.6860437", "0.6852069", "0.68350416", "0.680874", "0.6804602", "0.67736745", "0.6772155", "0.67243004", "0.67113876", "0.66955745", "0.6679575", "0.6675333", "0.6674183...
0.70491934
1
Gets the confirmation key for a given user Returns the confirmation key if the user is found or false
Получает ключ подтверждения для заданного пользователя Возвращает ключ подтверждения, если пользователь найден, или false
public function getConfirmationKey( $userid ) { $this->debug->guard( ); $sql = $this->database->prepare( "SELECT * FROM " . $this->configuration->getConfiguration( 'zeitgeist', 'tables', 'table_userconfirmation' ) . " WHERE userconfirmation_user = ?" ); $sql->bindParam( 1, $userid ); if ( !$sql->execu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getUserFromKey() {\n\t\tstatic $user;\n\t\t\n\t\tif ($user === null) {\n\t\t\t$user = false;\n\t\t\tif ($key = Request::getGET('key')) {\n\t\t\t\t$l = User::getUsers();\n\t\t\t\t$l = $l->filter($l->exprEqual($l->exprMember('unconfirmedEmailKey'),\n\t\t\t\t\t$key));\n\t\t\t\tif ($l->getCount...
[ "0.67937714", "0.65344864", "0.6500987", "0.64060664", "0.6258799", "0.624875", "0.6248397", "0.612746", "0.6071338", "0.59913766", "0.59913766", "0.59913766", "0.5953208", "0.59467226", "0.593326", "0.59253746", "0.5823985", "0.5819847", "0.5817748", "0.5816006", "0.58100146...
0.78570145
0
Checks if the confirmation key exists Returns the user id if the key is found or false if key is invalid
Проверяет, существует ли ключ подтверждения. Возвращает идентификатор пользователя, если ключ найден, или false, если ключ недействителен.
public function checkConfirmation( $confirmationkey ) { $this->debug->guard( ); $sql = $this->database->prepare( "SELECT * FROM " . $this->configuration->getConfiguration( 'zeitgeist', 'tables', 'table_userconfirmation' ) . " WHERE userconfirmation_key = ?" ); $sql->bindParam( 1, $confirmationkey ); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CheckActivationKeyExists( )\n\t\t{\n\t\t\t$dataArray = array(\n \"activationKey\"=>$this->activationKey\n );\n \n $response = ServiceAPIUtils::CallAPIService( $dataArray,\"/User/CheckActivationKeyExists/123\", \"json...
[ "0.6910243", "0.690416", "0.6830469", "0.6740901", "0.6632601", "0.6622493", "0.649094", "0.6441743", "0.64118266", "0.6394355", "0.62788266", "0.62299716", "0.615836", "0.6095198", "0.6050283", "0.60411996", "0.5985923", "0.59826607", "0.5981559", "0.5977365", "0.597291", ...
0.7233384
0
Options key can be 'shipping address' and 'billing_address' or 'address' Each of these keys must have an address array like: $address['name'] $address['company'] $address['address1'] $address['address2'] $address['city'] $address['state'] $address['country'] $address['zip'] $address['phone'] common pattern for address ...
Ключ опций может быть 'shipping address' и 'billing_address' или 'address'. Каждый из этих ключей должен иметь массив адреса, например: $address['name'], $address['company'], $address['address1'], $address['address2'], $address['city'], $address['state'], $address['country'], $address['zip'], $address['phone']. Общая п...
private function addAddress($options) { $address = $options['billing_address'] ?: $options['address']; $this->post['card']['address_line1'] = $address['address1']; $this->post['card']['address_line2'] = $address['address2']; $this->post['card']['address_city'] = $address...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addAddress($options)\n {\n if (!isset($options['address'])\n || !isset($options['billing_address'])\n ) {\n return false;\n }\n\n $address = isset($options['billing_address'])\n ? $options['billing_address']\n : $options['a...
[ "0.73244375", "0.61901116", "0.6184904", "0.6105477", "0.60853773", "0.608445", "0.60805005", "0.6030986", "0.6005295", "0.5986377", "0.5928364", "0.59214926", "0.59046155", "0.5876022", "0.5863342", "0.5849309", "0.5841731", "0.58101356", "0.57722956", "0.5761561", "0.574314...
0.7215753
1
Returns fraud review from gateway response
Возвращает обзор мошенничества из ответа шлюза
private function fraudReviewFrom($response) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_correct_response()\n {\n return null;\n }", "public function reportaproblem() {\n // Fetch the request data in JSON format and convert it into object\n $request_data = $this->request->input('json_decode');\n switch (true) {\n // When request is not...
[ "0.6473846", "0.58423346", "0.5823156", "0.56975937", "0.5694275", "0.5677829", "0.5630861", "0.5574338", "0.5541718", "0.55250627", "0.5519216", "0.54644585", "0.54472065", "0.5440155", "0.5435801", "0.54085773", "0.53901", "0.5371655", "0.53619933", "0.53540766", "0.5353162...
0.77837133
0
Determine whether the user can decline the invitation.
Определите, может ли пользователь отклонить приглашение.
public function decline(User $user, TeamInvitation $invitation) { return $user->tokenCan('invitations.update') && $invitation->email === $user->email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canDecline()\n {\n $user = $this->getUser();\n\n if (\n $this->getData('status') == Service\\BalanceWithdrawals::STATUS_PENDING &&\n $user->getData('role') == 'Admin'\n ) {\n return true;\n }\n\n return false;\n }", "public...
[ "0.7785536", "0.6738831", "0.66666186", "0.663526", "0.6346927", "0.63197255", "0.62608874", "0.6235877", "0.61979324", "0.6174087", "0.6160771", "0.60629195", "0.6033861", "0.6033442", "0.60274357", "0.59790295", "0.59214264", "0.5880089", "0.5879498", "0.5840702", "0.583533...
0.71523523
1
Creates a new WidgetConfig entity.
Создает новый объект WidgetConfig.
public function createAction(Request $request) { $entity = new WidgetConfig(); $form = $this->createCreateForm($entity); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->persist($entity); $em->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createCreateForm(WidgetConfig $entity)\n {\n $form = $this->createForm(new WidgetConfigType($this->container), $entity, array(\n 'action' => $this->generateUrl('JiraListWidgetBundle_widgetconfig_create'),\n 'method' => 'POST',\n 'attr' => array('id' => ...
[ "0.64416844", "0.5845211", "0.5661026", "0.5535026", "0.54402304", "0.5380737", "0.5354208", "0.5327283", "0.53268576", "0.5302483", "0.5276132", "0.52704084", "0.5262174", "0.522955", "0.52164817", "0.5186459", "0.51846534", "0.51477456", "0.5127694", "0.5125528", "0.5112743...
0.7006721
0
Creates a form to create a WidgetConfig entity.
Создает форму для создания сущности WidgetConfig.
private function createCreateForm(WidgetConfig $entity) { $form = $this->createForm(new WidgetConfigType($this->container), $entity, array( 'action' => $this->generateUrl('JiraListWidgetBundle_widgetconfig_create'), 'method' => 'POST', 'attr' => array('id' => 'create-fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction(Request $request)\n {\n $entity = new WidgetConfig();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n ...
[ "0.7221046", "0.6988917", "0.6911975", "0.65564334", "0.6555002", "0.6486294", "0.647967", "0.6442476", "0.64085037", "0.6367591", "0.6361026", "0.63076043", "0.63030326", "0.6222301", "0.62037486", "0.6194983", "0.61946195", "0.61645263", "0.6146219", "0.61363536", "0.613234...
0.8032763
0
Creates a form to edit a WidgetConfig entity.
Создает форму для редактирования сущности WidgetConfig.
private function createEditForm(WidgetConfig $entity) { $form = $this->createForm(new WidgetConfigType($this->container), $entity, array( 'action' => $this->generateUrl('JiraListWidgetBundle_widgetconfig_update', array('id' => $entity->getId())), 'method' => 'PUT', 'attr'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction() {\n $entities = $this\n ->_getRepository()\n ->findAllOrdered();\n $entities = $this->_transformAllConfigEntities($entities);\n $form = $this->createForm(new ConfigType(), array(\n ...
[ "0.76150525", "0.72103137", "0.6988287", "0.6985973", "0.6775217", "0.659091", "0.64150053", "0.63663816", "0.62734085", "0.62159514", "0.62137496", "0.6198284", "0.6194777", "0.6189547", "0.61706394", "0.61090297", "0.61068547", "0.6097817", "0.60536045", "0.60442275", "0.60...
0.8210811
0
Sets the MailLanguage if the Language is valid
Устанавливает MailLanguage, если Language является допустимым
public function setMailLang(string $mailLang): void { if(mb_language($mailLang)) { $this->mailLang = $mailLang; } else { // Reset after failed test mb_language($this->mailLang); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function settingLanguage() {}", "public function setLanguage($langcode = 'en', $lang_path = '')\n {\n // Define full set of translatable strings in English\n $PHPMAILER_LANG = array(\n 'authenticate' => 'SMTP Error: Could not authenticate.',\n 'connect_host' => 'SMTP...
[ "0.7196574", "0.71701324", "0.69363976", "0.66316336", "0.66257817", "0.6551656", "0.650135", "0.6487647", "0.64815927", "0.64602995", "0.6442396", "0.6429237", "0.6403217", "0.63686633", "0.63434476", "0.6334233", "0.62832254", "0.61805373", "0.61746234", "0.617252", "0.6157...
0.7500286
0
Returns a List of all "To"EMail Addresses as string
Возвращает список всех "To"EMail-адресов в виде строки
public function getToList(): string { return $this->createEMailList($this->getTo()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getToAddresses()\n {\n return $this->to;\n }", "public function getToAddresses()\n {\n }", "public function getTo()\n {\n return $this->getAddressListFromHeader('to', '\\Zend\\Mail\\Header\\To');\n }", "public function getAllRecipients() {}", "protect...
[ "0.77637", "0.7331206", "0.7303739", "0.72472876", "0.70828646", "0.7068877", "0.70497423", "0.70406806", "0.70167404", "0.69749993", "0.69666976", "0.6956513", "0.6950772", "0.6941614", "0.69305843", "0.6828137", "0.6720843", "0.66598445", "0.6598039", "0.65711224", "0.65649...
0.76592815
1
Returns a List of all "CC"EMail Addresses as string
Возвращает список всех "CC"EMail-адресов в виде строк
public function getCcList(): string { return $this->createEMailList($this->getCc()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBccList(): string {\n\t\treturn $this->createEMailList($this->getBcc());\n\t}", "public function getCcAddresses()\n {\n }", "public function getCcEmails()\n {\n return $this->cc_emails;\n }", "public function getCcAddresses()\n {\n return $this->cc;\n ...
[ "0.80103636", "0.72665733", "0.7266053", "0.7195456", "0.7167231", "0.71054775", "0.70847094", "0.6900931", "0.68313795", "0.67774975", "0.6762539", "0.67459476", "0.67334485", "0.67288905", "0.65809315", "0.6456838", "0.6435162", "0.64236826", "0.6394043", "0.6369936", "0.63...
0.81520504
0
Returns a List of all "BCC"EMail Addresses as string
Возвращает список всех "BCC" адресов электронной почты в виде строк
public function getBccList(): string { return $this->createEMailList($this->getBcc()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBccAddresses()\n {\n return $this->bcc;\n }", "public function getBCCString ( \\r8\\Mail $mail )\n {\n return $this->getAddressList( $mail->getBCC() );\n }", "public function getBCCString() {\n\t\tif (!empty($this->bcc)) return implode(', ', $this->bcc);\n\t\telse r...
[ "0.75910026", "0.7487743", "0.7463866", "0.74027985", "0.71144027", "0.70184594", "0.6979278", "0.69683564", "0.67722744", "0.6743325", "0.67205715", "0.6677988", "0.6664843", "0.6611249", "0.65893024", "0.6588787", "0.65603775", "0.6560066", "0.6519561", "0.6506426", "0.6502...
0.8134515
0
Set the current BCC(s)
Установите текущие BCC(ы)
private function setBcc(?array $bcc): void { $this->bcc = $bcc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setBccs($bccs) {\n\t\t$this->setData('bccs', $bccs);\n\t}", "public function setCC()\n {\n }", "function setBCC($bcc){\n\t\t\t$this->bcc = $bcc;\n\t\t}", "function Bcc( $bcc )\r\n\t\t{\r\n\t\tif( is_array($bcc) )\r\n\t\t\t$this->abcc = $bcc;\r\n\t\telse\r\n\t\t\t$this->abcc[]= $bcc;\r\n\r\n\t\...
[ "0.72352976", "0.6829289", "0.6815921", "0.64783955", "0.6365614", "0.6335257", "0.6328292", "0.6315059", "0.62778836", "0.6187776", "0.6127968", "0.6033498", "0.5986882", "0.592427", "0.57863873", "0.5771991", "0.57553065", "0.56745905", "0.56397223", "0.5635517", "0.5599", ...
0.7432336
0
Sets the ReplyTo Address
Устанавливает адрес ReplyTo
public function setReplyTo(?string $replyTo): void { self::checkValidEMail($replyTo); $this->replyTo = $replyTo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setReplyTo($replyTo);", "public function set_reply_to(EmailAddress $address);", "function set_reply($reply)\n\t{\n\t\t$this->reply_to = $reply;\n\t}", "protected function setReplyTo() {}", "public function set_reply_to(EmailAddress $address) {\n $this->reply_to = $address->as_string(...
[ "0.8439289", "0.82721573", "0.8165782", "0.7808875", "0.7797", "0.7602927", "0.7489625", "0.7486512", "0.74699366", "0.7218967", "0.7059083", "0.70283806", "0.70110697", "0.6945633", "0.6919751", "0.68974", "0.67539054", "0.67100304", "0.66055965", "0.65641886", "0.6545238", ...
0.83361214
1
Replaces LineBreaks with HTML LineBreaks
Заменяет переносы строк на HTML-переносы строк
private function makeLineBreaksHTML(): void { $this->setMsg(str_replace([PHP_EOL, '\r\n'], '<br />', $this->getMsg())); if($this->getMaxLineLength()) { $this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), '<br />' . PHP_EOL)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cropHtmlWorksWithLinebreaks() {}", "public static function normalizeLineBreaks($text) {}", "function removelinebreaks($str) {\n $str = str_replace(\"\\r\", '', str_replace(\"\\n\", '', $str));\n //$str = str_ireplace(\"&lt;br /&gt;\", \"<br />\");\n return $str;\n }", "function pun_...
[ "0.77037287", "0.7303562", "0.7258134", "0.7178968", "0.71079963", "0.70021373", "0.6951339", "0.6947477", "0.6903619", "0.6902479", "0.68358004", "0.68200403", "0.67850167", "0.67740035", "0.6769825", "0.6765468", "0.66993344", "0.6668953", "0.6668953", "0.6641147", "0.66313...
0.7485008
1
Creates an String of the EMailArray
Создает строку массива EMailArray
private function createEMailList(array $emailArray): string { return implode(', ', $emailArray); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function mail_string($array) {\n return array_map(function ($el) use ($array) {\n return ($array[$el] ? \"$array[$el] \": \"\") .\"<$el>\";\n }, array_keys($array));\n }", "private function buildEmailAddressArray()\n {\n $emailAddress = ['original_address' => '',\n...
[ "0.66208005", "0.65222365", "0.6418827", "0.63000757", "0.62699795", "0.6186357", "0.6152824", "0.61220735", "0.61072016", "0.6047019", "0.59996194", "0.59960324", "0.5992376", "0.5953696", "0.5943963", "0.5903529", "0.5896923", "0.58929425", "0.5877948", "0.587322", "0.58564...
0.7524883
0
Parse groups and messages into array.
Разобрать группы и сообщения в массив.
protected function parse() { $payload = ['data' => []]; foreach ($this->groups->all() as $group) { $payload['data'][$group->name] = array_merge($group->properties, ['messages' => $group->messages->toArray()]); } return $payload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parse()\r\n\t{\r\n\t\t// Suppress annoying notices/warnings\r\n\t\tset_error_handler(function() { /* Nothing */ }, E_NOTICE|E_WARNING);\r\n\r\n\t\t$structure = mailparse_msg_get_structure($this->resource);\r\n\t\t$this->parts = array();\r\n\t\tforeach ($structure as $part_id) {\r\n\t\t\t$part = ma...
[ "0.6582938", "0.658095", "0.6286727", "0.6274002", "0.62457454", "0.6026719", "0.5852959", "0.5851536", "0.5797247", "0.57475275", "0.573267", "0.5653507", "0.5632668", "0.5632668", "0.56138486", "0.5606487", "0.55996823", "0.5598198", "0.55910945", "0.5590614", "0.5575261", ...
0.71277076
0
Get all of the group translations for a given language.
Получить все переводы группы для заданного языка.
public function getGroupTranslationsFor($language) { if (isset($this->groupTranslationCache[$language])) { return $this->groupTranslationCache[$language]; } $languageModel = $this->getLanguage($language); if (is_null($languageModel)) { return collect(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTranslationByLanguage();", "public function getTranslations( $language )\n\t{\n\t\t$sql = <<<TRANSLATIONS\nSELECT\n\t*\nFROM\n\t`i18n_messages` m\nLEFT JOIN\n\ti18n_translations t ON m.id=t.id_message AND lang =?\nORDER BY\n\tt.translation ASC, m.message ASC\nTRANSLATIONS;\n\n\treturn $this...
[ "0.8138102", "0.76827073", "0.76056105", "0.7578398", "0.7326033", "0.7072164", "0.69632876", "0.6837255", "0.68156505", "0.6770995", "0.6574898", "0.6550389", "0.63904655", "0.6380167", "0.6308701", "0.63025516", "0.62761766", "0.6270693", "0.6243963", "0.6241541", "0.622902...
0.83933824
0
Get a collection of group names for a given language.
Получите коллекцию имен групп для заданного языка.
public function getGroupsFor($language) { return $this->allGroup($language); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allGroup($language)\n {\n $groups = TranslationModel::getGroupsForLanguage($language);\n\n return $groups->map(function ($translation) {\n return $translation->group;\n });\n }", "public function getGroupsParrain()\n {\n $sql = 'SELECT `id_group`, `...
[ "0.7377839", "0.7119765", "0.70609635", "0.67920524", "0.6682249", "0.64471", "0.64471", "0.62915134", "0.6211722", "0.61385846", "0.60357136", "0.59997606", "0.59950763", "0.5976012", "0.593286", "0.59212255", "0.5907873", "0.59026015", "0.58974314", "0.58933806", "0.5890502...
0.79726505
0
Get related model from request.
Получить связанный модель из запроса.
protected function getRelated(Request $request, $model) { return $this->field->getQuery()->findOrFail($request->related_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRequest()\n {\n return $this->hasOne(Requests::className(), ['req_id' => 'requestID']);\n }", "public function request_object()\n {\n return $this->hasOne(Request::class, 'request_type_id', 'id');\n }", "public function get_model() {\r\n\t\t$model = null;\r\n\t\t\r\...
[ "0.6595816", "0.65473264", "0.6237786", "0.61865216", "0.59839815", "0.5964299", "0.5947911", "0.59446263", "0.59100264", "0.5907455", "0.59000516", "0.58817893", "0.583998", "0.5823073", "0.58008", "0.58008", "0.58008", "0.58008", "0.58008", "0.58008", "0.58008", "0.58008"...
0.7210011
0
Get related model from request and delete if it should be deleted.
Получите связанный модель из запроса и удалите, если она должна быть удалена.
public function getRelatedOrDelete(Request $request, $model) { return $this->deleteIfDesired( $request, $this->getRelated($request, $model) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function deleteIfDesired(Request $request, Model $related)\n {\n if (! $request->delete_unlinked) {\n return $related;\n }\n\n $related->delete();\n }", "public function detachRelationship(Request $request, object $model, string $fieldName): bool;", "public funct...
[ "0.7314298", "0.6813701", "0.6585565", "0.6504182", "0.6382519", "0.63508505", "0.6214229", "0.61600125", "0.61101025", "0.59803873", "0.5966762", "0.59654146", "0.59575784", "0.59546274", "0.59507024", "0.5913784", "0.5854765", "0.58111095", "0.578945", "0.5775799", "0.57646...
0.71491945
1
find if quoteID already exists
найти, существует ли quoteID уже
function checkQuoteExists($id){ $sql = "SELECT quote_id FROM `quote_main` WHERE id=$id"; serverConnect("voiplion"); $result = mysql_query($sql); serverClose(); //return the number of rows we find using $id return mysql_numrows($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function duplicateQuote($id) {\n\t\ttry{\n\t\t\t$invoiceTbl = $this->_serviceManager->get('Invoice\\Model\\InvoiceTable');\n\t\n\t\t\t$invoiceItems = $invoiceTbl->fetchInvoiceItemsById($id);\n\t\t\t\n\t\t\t$data = (array) $invoiceTbl->getInvoiceById($id);\n\t\t\tunset($data['id']);\n\t\t\tunset($data['invoi...
[ "0.66156244", "0.6303719", "0.6280709", "0.60887504", "0.60694313", "0.60619044", "0.6033992", "0.59576327", "0.58803153", "0.58446455", "0.57809615", "0.5735741", "0.5689608", "0.5680908", "0.5646948", "0.56171227", "0.56157863", "0.55917543", "0.5576947", "0.557242", "0.557...
0.70547366
0
Get the value of idCreatorTicket
Получить значение idCreatorTicket
public function getIdCreatorTicket() { return $this->idCreatorTicket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdTicket()\n {\n return $this->idTicket;\n }", "public function getTicketId() {\n\t\treturn($this->ticketId);\n\t}", "public function getTicketid()\n {\n return $this->ticketid;\n }", "public function getId_ticket()\n {\n return $this->id_ticket;\n }"...
[ "0.74386597", "0.74183327", "0.74066377", "0.7397767", "0.7288356", "0.71249443", "0.66872764", "0.6316312", "0.63156915", "0.63156915", "0.63151956", "0.60512704", "0.60506356", "0.60319996", "0.5964431", "0.5956653", "0.59357154", "0.5915358", "0.59102124", "0.5907161", "0....
0.8557095
0
set value of idCreatorTicket
установить значение idCreatorTicket
public function setIdCreatorTicket($idCreatorTicket) { $idCreatorTicket = (int) $idCreatorTicket; $this->idCreatorTicket = $idCreatorTicket; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdCreatorTicket()\n {\n return $this->idCreatorTicket;\n }", "public function setTicketNumber(?string $value): void {\n $this->getBackingStore()->set('ticketNumber', $value);\n }", "public function setCreatedByUserId(?string $value): void {\n $this->getBackingSt...
[ "0.71199286", "0.6261422", "0.610728", "0.6085484", "0.59923244", "0.5977071", "0.5926813", "0.5903066", "0.58962876", "0.5875632", "0.58724576", "0.5855807", "0.58414775", "0.5838156", "0.5821005", "0.5808897", "0.58020216", "0.5799407", "0.57953453", "0.5793011", "0.5788231...
0.7111059
1
Get the value of idUserTicket
Получить значение idUserTicket
public function getIdUserTicket() { return $this->idUserTicket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTicketid()\n {\n return $this->ticketid;\n }", "public function getId_ticket()\n {\n return $this->id_ticket;\n }", "public function getIdTicket()\n {\n return $this->idTicket;\n }", "public function getTicketId() {\n\t\treturn($this->ticketId);\n\t}"...
[ "0.77900314", "0.77710015", "0.7764154", "0.757128", "0.6983016", "0.6879867", "0.67410517", "0.66984844", "0.66984844", "0.6685233", "0.6654477", "0.66305673", "0.659783", "0.6590122", "0.65823203", "0.6570702", "0.6561681", "0.65428203", "0.6525545", "0.6524205", "0.6517936...
0.8580416
0
set value of idUserTicket
установить значение idUserTicket
public function setIdUserTicket($idUserTicket) { $idUserTicket = (int) $idUserTicket; $this->idUserTicket = $idUserTicket; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIduser($value)\n {\n $this->iduser = $value;\n }", "public function setUserid($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_90'));\n\t\tif(!Validator::AccountId($value)) throw new Exception(lang('error_90'));\n\t\t\n\t\t$this->_userid = $value;\n\t}", "public...
[ "0.6875363", "0.68253666", "0.68185985", "0.67837024", "0.6739931", "0.66166484", "0.6520812", "0.6491636", "0.64542115", "0.6411979", "0.6386069", "0.6334526", "0.63268715", "0.63135344", "0.63135344", "0.63135344", "0.6312226", "0.62947285", "0.62921023", "0.62855494", "0.6...
0.71626925
0
Get the value of idAppartmentsTicket
Получить значение idAppartmentsTicket
public function getIdAppartmentsTicket() { return $this->idAppartmentsTicket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId_ticket()\n {\n return $this->id_ticket;\n }", "public function getIdTicket()\n {\n return $this->idTicket;\n }", "public function getTicketid()\n {\n return $this->ticketid;\n }", "public function getTicketId() {\n\t\treturn($this->ticketId);\n\t}"...
[ "0.74684185", "0.7272837", "0.7266551", "0.7017781", "0.65781397", "0.6365536", "0.6330119", "0.630961", "0.630961", "0.6161037", "0.59240973", "0.5918334", "0.5917971", "0.5917971", "0.5917971", "0.59145796", "0.5852218", "0.5813276", "0.58116674", "0.5797368", "0.56758595",...
0.85232115
0
return 10 last posts added by the user;
вернуть 10 последних постов, добавленных пользователем;
public function getLastPosts() { $repository = $this->entityManager->getRepository("DUT\\Models\\Post"); return $repository->findBy([], ["idPost" => "DESC"], 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LatestPosts() {\n\t\treturn Post::get()\n\t\t\t->filter('AuthorID', (int)$this->urlParams['ID'])\n \t\t\t->limit(0,5)\n\t\t\t->sort(\"Created\", \"DESC\")\n\t\t\t->filterByCallback(function($post){\n\t\t\t\treturn $post->canView();\n\t\t\t});\n\t}", "public static function recent($max=10) \n {\n $sq...
[ "0.71344864", "0.7057911", "0.68948615", "0.6889683", "0.68614", "0.6848096", "0.68347454", "0.678938", "0.67441726", "0.6718012", "0.6703186", "0.6640007", "0.66213685", "0.6605818", "0.65266424", "0.65076655", "0.650155", "0.64843106", "0.6454801", "0.64441115", "0.64414823...
0.77852726
0
Remove Commentary matching idPost & idCommentary.
Удалить комментарий, соответствующий idPost & idCommentary.
public function removeCommentary($idPost, $idCommentary) { $repository = $this->entityManager->getRepository("DUT\\Models\\Commentary"); $item = $repository->findOneBy(["idPost" => $idPost, "idCommentary" => $idCommentary]); if (isset($item)) { $this->entityManager->remove($item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteComments(int $idPost):void\n {\n $req=$this->pdo->prepare('DELETE FROM comments WHERE post_id=?');\n $req->execute([$idPost]);\n }", "public function delete($idPost);", "public function deletePostComment($id) {\n\n\t\t$manager = $this->manager->getManager();\n\n\t\t$de...
[ "0.631693", "0.622226", "0.61375666", "0.6114938", "0.61066544", "0.59695506", "0.5906721", "0.58543307", "0.5820936", "0.5820677", "0.58117425", "0.58014345", "0.5779276", "0.5747124", "0.57318896", "0.5723307", "0.57190096", "0.57157683", "0.57129765", "0.56702554", "0.5661...
0.80935276
0
Get Commentary matching idPost & idCommentary.
Получить комментарий, соответствующий idPost & idCommentary.
public function getCommentary($idPost, $idCommentary) { $repository = $this->entityManager->getRepository("DUT\\Models\\Commentary"); return $repository->findOneBy(["idPost" => $idPost, "idCommentary" => $idCommentary]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCommentaryForPost($idPost)\n {\n $repository = $this->entityManager->getRepository(\"DUT\\\\Models\\\\Commentary\");\n $items = $repository->findBy([\"idPost\" => $idPost], [\"idCommentary\" => \"ASC\"]);\n\n if (!isset($items)) {\n $items = [];\n }\n\n ...
[ "0.74139", "0.64530575", "0.6273472", "0.61929065", "0.6082815", "0.59567904", "0.59154886", "0.590333", "0.58877707", "0.58381975", "0.5802937", "0.5802937", "0.5794991", "0.57825375", "0.5748661", "0.57134837", "0.5710164", "0.5679281", "0.56562614", "0.5603581", "0.5595231...
0.84613204
0
Return the html code of a tooltip
Верните html-код всплывающей подсказки
function cp_html_tooltip($label){ return '<span class="tooltip-icon">&#128269;<span class="tooltip-content">'.$label.'</span></span>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function asStringWithTooltip() {\n\t\treturn Ajax::tooltip($this->asString(), $this->value.' '.$this->unitExplanation());\n\t}", "public function getTooltipScript()\n {\n $oTemplate = new FrontendTemplate('j_tooltip');\n $oTemplate->amountMin = Pricing::getMinAmount();\n $oTe...
[ "0.74053484", "0.729461", "0.72456366", "0.72456366", "0.70713973", "0.7022842", "0.7019933", "0.69879663", "0.6931201", "0.68398166", "0.6838374", "0.6793131", "0.67804813", "0.6744422", "0.67192453", "0.66320854", "0.6610452", "0.6584165", "0.65683854", "0.6562692", "0.6549...
0.7469096
0
STR Check if a string is an int
Проверка, является ли строка целым числом
function cp_str_isInt($str){ return preg_match('/^[[:digit:]]+$/',$str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_int_val( string $str )\n {\n return is_numeric( $str ) && \\intval( $str ) == $str;\n }", "public static function integer($string) {\n if (preg_match('/^[0-9]*$/', trim($string))) {\n return trim($string);\n } else {\n return false;\n }\n }",...
[ "0.7843969", "0.7250829", "0.72261196", "0.72203875", "0.7095151", "0.6992929", "0.6986993", "0.6860072", "0.68520707", "0.6788434", "0.67806196", "0.673724", "0.67285985", "0.6718087", "0.6703411", "0.67013353", "0.6683213", "0.6625776", "0.65892714", "0.65857893", "0.657328...
0.81164384
0
INT Check is an integer is include between two others
Проверка, является ли целое число включенным между двумя другими
function cp_intIsBetween($number,$min,$max){ if(!cp_str_isInt($number)){ return false; } return $number >= $min && $number <= $max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function betweenIntRange($value, $params = array()) {\t\t\n\t\t$min = 0;\n\t\t$max = 255;\n\t\textract($params);\n\t\tif (is_array($value)) {\n\t\t\t$value = array_shift($value);\n\t\t}\n\t\tif (preg_match('/^[0-9]+$/', $value)) {\n\t\t\tif ($value >= $min && $value <= $max) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}...
[ "0.6406248", "0.63987124", "0.61780536", "0.61545837", "0.6077671", "0.60667986", "0.6054604", "0.6039442", "0.60199547", "0.601712", "0.6010891", "0.5950606", "0.5887432", "0.5862342", "0.58585566", "0.5769312", "0.57571554", "0.5747653", "0.5740613", "0.5735412", "0.5730887...
0.71972954
0
Check if two array is equals for given keys
Проверьте, равны ли два массива для заданных ключей
function cp_arrayIsSame($array1, $array2,$keys){ foreach($keys as $key){ if($array1[$key] != $array2[$key]){ return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array_compare_assoc($array1, $array2, $keys)\n {\n return empty(array_diff(\n array_only($array1, $keys),\n array_only($array2, $keys)\n ));\n }", "function arrays_are_similar($a, $b) {\n\tif (count(array_diff_assoc($a, $b))) {\n\t\treturn false;\n\t}\n\t// we k...
[ "0.7139387", "0.69737387", "0.6724897", "0.66522795", "0.66360307", "0.6629007", "0.654539", "0.6515762", "0.6487532", "0.64609945", "0.64133745", "0.64027804", "0.63773894", "0.6341503", "0.6284742", "0.6284432", "0.60849696", "0.60465246", "0.603985", "0.6014743", "0.595000...
0.832373
0
Determine if the given operator and value combination is legal. Prevents using Null values with invalid operators.
Определите, является ли комбинация заданного оператора и значения допустимой. Предотвращает использование значений Null с недопустимыми операторами.
protected function invalidOperatorAndValue($operator, $value) { return is_null($value) && in_array($operator, $this->operators) && !in_array($operator, ['=', '<>', '!=']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function invalidOperatorAndValue(?string $operator, $value): bool\n\t{\n\t\treturn is_null($value) && in_array($operator, self::OPERATORS) && !in_array($operator, ['=', '!=', '<>']);\n\t}", "private function isValidOdataOperator(string $operator): bool {\n switch ($operator) {\n case ...
[ "0.7208542", "0.7061433", "0.7034064", "0.64274836", "0.6340623", "0.6276362", "0.62251526", "0.62118495", "0.62034166", "0.6163217", "0.616047", "0.6030629", "0.60094476", "0.596918", "0.5964903", "0.5951364", "0.5930098", "0.58455944", "0.5821398", "0.58108497", "0.57569605...
0.7323415
0
init innerjoin of the $classname, base on the $classnameon. if the $classnameon is not specified, it will be set as the current class
Инициализация внутреннего соединения $classname на основе $classnameon. если $classnameon не указан, он будет установлен как текущий класс
public function innerjoin($classname, $classnameon = "") { $this->join = strtolower(get_class($classname)); if (!$classnameon) $classnameon = $this->objectName; $this->query .= " inner join `" . $this->join . "` on " . $this->join . ".id = " . strtolower($classnameon) . "." . $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leftjoin($classname, $classnameon = \"\")\n {\n $this->join = strtolower($classname);\n\n if (!$classnameon)\n $classnameon = $this->objectName;\n\n $from = '';\n// if($this->sequence == 'delete')\n// $from = \" from `\" . $this->table . \"` \";\...
[ "0.6246231", "0.62325734", "0.6178048", "0.6088276", "0.5657699", "0.5649829", "0.54719955", "0.5463519", "0.5458925", "0.53606564", "0.52775186", "0.5253936", "0.5252508", "0.523351", "0.52071136", "0.5184048", "0.51707584", "0.51162404", "0.510046", "0.50447804", "0.5039996...
0.754243
0
init leftjoin of the $classname, base on the $classnameon. if the $classnameon is not specified, it will be set as the current class
Инициализация левого соединения $classname на основе $classnameon. если $classnameon не указан, он будет установлен как текущий класс
public function leftjoin($classname, $classnameon = "") { $this->join = strtolower($classname); if (!$classnameon) $classnameon = $this->objectName; $from = ''; // if($this->sequence == 'delete') // $from = " from `" . $this->table . "` "; // on ".strt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leftjoinrecto($classname, $classnameon = \"\")\n {\n $this->join = strtolower($classname);\n\n if (!$classnameon)\n $classnameon = $this->objectName;\n\n $from = '';\n// if($this->sequence == 'delete')\n// $from = \" from `\" . $this->table . \"`...
[ "0.7836769", "0.66424334", "0.6244974", "0.5974932", "0.5930075", "0.59267914", "0.58211577", "0.5787775", "0.5762358", "0.5638465", "0.55470324", "0.5389203", "0.5287189", "0.52760506", "0.5267496", "0.5256966", "0.5216469", "0.51886606", "0.5153684", "0.511942", "0.5085554"...
0.79463404
0
return $this>where($column, $sign, $value, 'or');
return $this->where($column, $sign, $value, 'or');
public function orwhere($column, $sign = null, $value = null) { if ($this->initwhereclause) return $this->where($column, $sign, $value, 'or'); else return $this->where($column, $sign, $value, 'where'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orWhere($column, $operator = null, $value = null);", "public function orWhere($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "public function orwhere_str($column, $sign = null, $value = null)\n {\n if ($this->initwhereclause)\n return $this->where_str($col...
[ "0.79292613", "0.78984606", "0.78441834", "0.7707074", "0.75117034", "0.746384", "0.7315671", "0.7284011", "0.7277138", "0.7273747", "0.7251913", "0.7221887", "0.72124135", "0.71497285", "0.7131901", "0.70968914", "0.7057879", "0.7041685", "0.7031474", "0.7024187", "0.7016779...
0.82851833
0
Check error log file exists/writable
Проверить, существует ли файл журнала ошибок/можно ли его записывать
function check_error_log() { if (is_writable(ERROR_LOG_PATH)) { echo "<div class='success'>The error log file exists and is writeable<br>" . ERROR_LOG_PATH . " </div>\n"; } else { echo "<div class='error_custom'>The error log file does not exist or is not writable<br>" . ERROR_LOG_PA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function checkPaths() {\n\t\tif(!is_dir (self::$logpath)) mkdir(self::$logpath, 0777);\n\t\tif(!is_file(self::$logfile)) file_put_contents(self::$logfile, \"<?\\n/**\\n#\\n# Tools Tool Log file\\n#\\n*/\\n\\n\");\n\t}", "public function logfileExists()\n {\n return ($this->directory->isE...
[ "0.73330176", "0.70416546", "0.6806679", "0.6682927", "0.65131474", "0.64990044", "0.6494963", "0.6447638", "0.63692343", "0.6262848", "0.6260383", "0.623943", "0.6211068", "0.61003935", "0.6084368", "0.60820675", "0.6051173", "0.6008302", "0.59992605", "0.5996796", "0.597099...
0.79131883
0
Determine if the given user recently created a password reset token.
Определите, создал ли указанный пользователь недавно токен сброса пароля.
public function recentlyCreatedToken(CanResetPassword $user);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exists(CanResetPassword $user, $token);", "public function validate_forgotten_password_token($user_id, $token) {\n // Confirm token is 40 characters long (length of sha1).\n if (!is_numeric($user_id) || strlen($token) !== 40) {\n return FALSE;\n }\n\n $sql_w...
[ "0.7115514", "0.62436306", "0.6127317", "0.6120552", "0.60869575", "0.60257256", "0.60232514", "0.6020535", "0.5979988", "0.59504306", "0.5908123", "0.5848214", "0.5844997", "0.58331406", "0.5819733", "0.5817969", "0.5815237", "0.57809055", "0.57744074", "0.5765667", "0.57508...
0.78758603
0
Configure explicit route model bindings
Настройка явных маршрутизационных связей модели
protected function configureModelBindings() { Route::model('user', \App\Models\User::class); Route::bind('product', function ($value) { try { $service = app('App\Services\RedSky'); return $service->findProductById($value); } catch (\Exception ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerRouteBindings()\n {\n //\n }", "public static function bind(): void\n {\n Route::bind('item', function ($value) {\n $model = request()->resource->model();\n\n return $model::withoutGlobalScopes()\n ->where((new $model)->getRou...
[ "0.68001056", "0.66934305", "0.65283835", "0.6183463", "0.612282", "0.611904", "0.60359454", "0.5770746", "0.57391846", "0.57231295", "0.56801116", "0.5676782", "0.5534896", "0.54963946", "0.54872924", "0.5468549", "0.5465276", "0.54526484", "0.5447488", "0.5438566", "0.54364...
0.77931327
0
Function that return main shop page ID
Функция, возвращающая ID главной страницы магазина
function stal_woo_get_main_shop_page_id() { // Get page id from options table $shop_id = get_option( 'woocommerce_shop_page_id' ); if ( ! empty( $shop_id ) ) { return $shop_id; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fiorello_mikado_get_page_id() {\n\t\tif ( fiorello_mikado_is_woocommerce_installed() && fiorello_mikado_is_woocommerce_shop() ) {\n\t\t\treturn fiorello_mikado_get_woo_shop_page_id();\n\t\t}\n\n\t\tif ( fiorello_mikado_is_default_wp_template() ) {\n\t\t\treturn - 1;\n\t\t}\n\n\t\treturn get_queried_object...
[ "0.75279504", "0.741462", "0.7343399", "0.7279431", "0.72337794", "0.72337794", "0.7215868", "0.71733314", "0.71432555", "0.71307987", "0.7100153", "0.7071161", "0.7071161", "0.7071161", "0.707112", "0.706765", "0.7066708", "0.7063766", "0.70568526", "0.7055517", "0.7007855",...
0.81299156
0
Function that set main shop page ID for get_post_meta options
Функция, устанавливающая основной идентификатор страницы магазина для опций get_post_meta
function stal_woo_set_main_shop_page_id( $post_id ) { if ( stal_is_woo_page( 'shop' ) || stal_is_woo_page( 'single' ) || stal_is_woo_page( 'category' ) || stal_is_woo_page( 'tag' ) ) { $shop_id = stal_woo_get_main_shop_page_id(); if ( ! empty( $shop_id ) ) { $post_id = $shop_id; } } return $post_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stal_woo_get_main_shop_page_id() {\n\t\t// Get page id from options table\n\t\t$shop_id = get_option( 'woocommerce_shop_page_id' );\n\n\t\tif ( ! empty( $shop_id ) ) {\n\t\t\treturn $shop_id;\n\t\t}\n\n\t\treturn false;\n\t}", "public function set_page_id() {\n\n\t\t\t$page_id = false;\n\t\t\t$object_...
[ "0.70752037", "0.70681304", "0.68924594", "0.68766415", "0.6875481", "0.6425765", "0.63815403", "0.6374999", "0.6268509", "0.61362785", "0.6101561", "0.6052643", "0.5856958", "0.5828998", "0.5823728", "0.5790113", "0.5784417", "0.5784417", "0.57280296", "0.57131445", "0.57109...
0.76533204
0
Function that disable page title area for single product page
Функция, отключающая область заголовка страницы для страницы отдельного продукта
function stal_woo_single_disable_page_title( $enable_page_title ) { $is_enabled = stal_get_post_value_through_levels( 'qodef_woo_single_enable_page_title' ) !== 'no'; if ( ! $is_enabled && stal_is_woo_page( 'single' ) ) { $enable_page_title = false; } return $enable_page_title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function shoestrap_empty_page_title() {}", "function hide_page_title( $post_id = false ) {\r\n global $post;\r\n\r\n if ( is_home() ) {\r\n return true;\r\n }\r\n\r\n if ( !$post_id ) {\r\n $post_id = $post->ID;\r\n }\r\n\r\n return get_post_meta( $post_id, 'hide_page_title', true ) =...
[ "0.72413284", "0.6752428", "0.66947585", "0.6552726", "0.65171427", "0.64811605", "0.6449337", "0.63706046", "0.6345523", "0.63297063", "0.6264017", "0.62583375", "0.6212067", "0.62044317", "0.61891186", "0.6184742", "0.61611027", "0.61356336", "0.6123137", "0.6121789", "0.61...
0.73286736
0
Function that returns grid gutter classes
Функция, возвращающая классы промежутков сетки
function stal_set_woo_sidebar_grid_gutter_classes( $classes ) { if ( stal_is_woo_page( 'shop' ) || stal_is_woo_page( 'category' ) || stal_is_woo_page( 'tag' ) ) { $option = stal_get_post_value_through_levels( 'qodef_woo_product_list_sidebar_grid_gutter' ); if ( isset( $option ) && ! empty( $option ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCssClassesForContainer(): string\n {\n $colsXl = $this->getWidth() >= 100 ? 12 : ceil(12 * ($this->getWidth() / 100));\n $colsXlLeft = floor((12 - $colsXl) / 2);\n $colsLg = $colsXl >= 10 ? 12 : $colsXl + 2;\n $colsLgLeft = floor((12 - $colsLg) / 2);\n retur...
[ "0.7002325", "0.6854433", "0.6574488", "0.6409208", "0.6347117", "0.63204706", "0.62795556", "0.6273312", "0.61376655", "0.60508907", "0.60186857", "0.6010835", "0.5968997", "0.59239036", "0.5856429", "0.5853801", "0.5846595", "0.5824972", "0.58195657", "0.5817089", "0.580727...
0.70210785
0
Counts the number of objects.
Считает количество объектов.
public abstract function countObjects();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count() {\r\n return count($this->objects);\r\n }", "public function count() {\r\n if (is_null($this->objectcount)) {\r\n $this->fetchData();\r\n }\r\n return $this->objectcount;\r\n }", "public function count() {\n\t\treturn count($this->_dataobjects);\n\t}", "public...
[ "0.8373121", "0.80419934", "0.76104844", "0.75429237", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", "0.7475456", ...
0.8884777
0
Reads the objects from database.
Читает объекты из базы данных.
public abstract function readObjects();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readAll(){\n $rq = \"SELECT * FROM Objets\";\n $stmt = $this->pdo->prepare($rq);\n $data = array();\n if(!$stmt->execute($data)){\n throw new Exception($pdo->errorInfo());\n }\n return $result = $stmt->fetchAll();\n }", "public function read...
[ "0.70933366", "0.69594175", "0.6610913", "0.6577652", "0.65706676", "0.6562444", "0.64736825", "0.6429971", "0.6388984", "0.63229483", "0.6322606", "0.63116926", "0.62839174", "0.6271321", "0.62637544", "0.6158461", "0.6150558", "0.60702187", "0.60666674", "0.605558", "0.6013...
0.72074383
0
Returns the objects of the list.
Возвращает объекты списка.
public abstract function getObjects();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getList();", "public function getList();", "function listObjects();", "public function items() {\n return $this->list;\n }", "abstract public function getList();", "public function getObjects()\n {\n return $this->objects;\n }", "public function getObjectivesList() {\n ...
[ "0.7455263", "0.7455263", "0.7418507", "0.7318926", "0.72593045", "0.72008854", "0.71927285", "0.7154619", "0.71460664", "0.7141654", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199", "0.7139199",...
0.75168186
0
Get all meals of a certain customer on a certain date (POST) returns json object
Получить все приемы пищи определенного клиента на определенную дату (POST) возвращает json-объект
public function customerMeals(Application $app, $customerId, Request $request) { if (!$app['session']->get('customer')) { return $app->json("Not allowed", 401); } if (!isset($_POST['date'])) { return $app->json("Not allowed", 401); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dieticianCustomerMeals(Application $app, $customerId, Request $request) {\n $dietician = $app['session']->get('dietician');\n if (!$dietician) {\n return $app->json(\"Not allowed\", 401);\n }\n\n $customer = $app['dietician']->getDietistCus...
[ "0.6894027", "0.59189653", "0.5870549", "0.57726574", "0.54461217", "0.542007", "0.5418349", "0.5402398", "0.5390307", "0.5385312", "0.5374025", "0.5364554", "0.535547", "0.53552896", "0.5321662", "0.52797747", "0.5264347", "0.5255316", "0.52519035", "0.5246612", "0.5245273",...
0.7377984
0
Get all meals of a certain customer on a certain date (POST) This method is used on the dietician controller, it needs more data to return returns json object
Получить все приемы пищи определенного клиента на определенную дату (POST) Этот метод используется на контроллере диетолога, ему требуется больше данных для возврата возвращает объект JSON
public function dieticianCustomerMeals(Application $app, $customerId, Request $request) { $dietician = $app['session']->get('dietician'); if (!$dietician) { return $app->json("Not allowed", 401); } $customer = $app['dietician']->getDietistCustomer($dietic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function customerMeals(Application $app, $customerId, Request $request) {\n if (!$app['session']->get('customer')) {\n return $app->json(\"Not allowed\", 401);\n }\n \n if (!isset($_POST['date'])) {\n return $app->json(\"Not allowed\"...
[ "0.75354534", "0.6411136", "0.63581866", "0.57841164", "0.57591665", "0.57551825", "0.5753269", "0.5745578", "0.5736069", "0.5733861", "0.5655166", "0.562118", "0.5610254", "0.56075", "0.5603902", "0.5593549", "0.55550295", "0.55449957", "0.55421686", "0.55362064", "0.5532800...
0.7323205
1
Returns the "find public" query builder.
Возвращает построитель запроса "поиск публичных".
public function getFindPublicQueryBuilder(): QueryBuilder;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getIsPublicQuery()\n {\n return $this->isPublicQuery;\n }", "public function scopePublic(Builder $query)\n {\n return $query->where('public', 1)->get();\n }", "public function findAllPublic(){\n $qb = $this->getMainPublicQb();\n return $qb->getQuery()-...
[ "0.6408995", "0.6201754", "0.61751086", "0.6052113", "0.5934476", "0.5886837", "0.5886837", "0.58368367", "0.58329844", "0.5747809", "0.5715092", "0.56633914", "0.5627203", "0.560774", "0.560774", "0.5550591", "0.5527726", "0.55126864", "0.550627", "0.5503841", "0.5489631", ...
0.8187451
0
Finds one audience by its key.
Находит одну аудиторию по её ключу.
public function findOneByKey(string $key): ?AudienceInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_audience( $audience_id ) {\n\t\treturn $this->request( array(\n\t\t\t'function' => 'audiences/' . abs( intval( $audience_id ) ),\n\t\t\t'method' => 'GET',\n\t\t) );\n\t}", "public function getAudience();", "public function findFirstByKey($key);", "public function getAudienceById($audience...
[ "0.6248942", "0.5906168", "0.5792309", "0.5779682", "0.5669061", "0.5669061", "0.55472666", "0.54033285", "0.5258339", "0.52220774", "0.5164721", "0.5153821", "0.50971794", "0.5092655", "0.5073852", "0.50633013", "0.5028998", "0.49790525", "0.49372843", "0.4920506", "0.488778...
0.76212275
0
Function count_search_product_result to count search products
Функция count_search_product_result для подсчета поисковых продуктов
function count_search_product_result($conditions_array=array()){ $this->db->where($conditions_array); $this->db->like('product', $this->input->post('search_text')); $this->db->or_like('description', $this->input->post('search_text')); return $this->db->count_all_results('red_support_product as rsp'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function count_products()\n\t{\t\n\t\tif(!$this->validate())\n\t\t\treturn false;\n\n\t\tif(empty($this->keywords_to_search_for))\n\t\t\t$this->set_keywords_from_search_query();\n\t\t\t\t\t\n\t\t$keyword_filter \t= $this->build_keyword_sql_filter($this->keywords_to_search_for);\n\t\t\n\t\t$category_filter \t= $thi...
[ "0.795604", "0.7946691", "0.71109647", "0.70771486", "0.69888085", "0.6962998", "0.69287753", "0.69064826", "0.6798425", "0.67960376", "0.6778815", "0.67184484", "0.66904205", "0.6677716", "0.6660633", "0.66586196", "0.6632377", "0.6612655", "0.6603798", "0.654938", "0.653783...
0.8049452
0
Stores the delay, in seconds, for requests with the given rate limit ID. This uses a transient, set to expire after the delay duration or after 24 hours, whichever is sooner.
Хранит задержку в секундах для запросов с заданным идентификатором ограничения скорости. Используется временное значение, истекающее через указанный период задержки или через 24 часа, whichever occurs first.
public function set_rate_limit_delay( $rate_limit_id, $delay ) { if ( ! empty( $delay ) ) { $expiration = min( $delay, 24 * HOUR_IN_SECONDS ); set_transient( "wc_facebook_rate_limit_${rate_limit_id}", $delay, $expiration ); } else { delete_transient( "wc_facebook_rate_limit_${rate_limit_id}" ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_rate_limit_delay( $rate_limit_id ) {\n\n\t\treturn (int) get_transient( \"wc_facebook_rate_limit_${rate_limit_id}\" );\n\t}", "public function setDelay($delayInMiliSeconds)\n {\n return $this->delay = ($delayInMiliSeconds / 1000);\n }", "public function delay(int $delay): self\...
[ "0.6348559", "0.5725731", "0.5577599", "0.54768795", "0.547066", "0.5331065", "0.52849853", "0.5265625", "0.52643424", "0.52643424", "0.5186939", "0.50807315", "0.50513357", "0.50049394", "0.49889874", "0.49771973", "0.4914493", "0.48875904", "0.48509175", "0.47851756", "0.47...
0.7662733
0
Register an Account on this manager.
Зарегистрируйтесь в этом менеджере.
public function registerAccount($key, Account $account);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAccount(){\n\n\t}", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return $this;\n }", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return ...
[ "0.6375323", "0.63398594", "0.63398594", "0.6291264", "0.61976093", "0.6083767", "0.6006623", "0.5929608", "0.5815848", "0.56671417", "0.56583893", "0.5602596", "0.5602128", "0.5591492", "0.5591492", "0.5582113", "0.55733687", "0.5530913", "0.5529505", "0.5483724", "0.5470129...
0.7463336
0
Returns the Account for a key.
Возвращает аккаунт для ключа.
public function getAccount($key = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccountKey()\n {\n return $this->accountKey;\n }", "public function getAccount();", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n {\n return $this->account;\n }", "public function getAccount()\n ...
[ "0.72206414", "0.64716655", "0.64114076", "0.64114076", "0.64114076", "0.64114076", "0.64114076", "0.64114076", "0.6357816", "0.6326866", "0.62252307", "0.6204153", "0.62015593", "0.61962485", "0.6166093", "0.6150457", "0.60922915", "0.60778296", "0.6058627", "0.6050836", "0....
0.864108
0
Changes the key for the default account.
Изменяет ключ для аккаунта по умолчанию.
public function setDefaultAccount($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function SetKey($key = ''){\n \tself::$userKey = $key;\n }", "protected function setNewEncryptionKeyAndLogOut() {}", "public function setAuthKey()\n {\n $this->auth_key = Yii::$app->security->generateRandomString();\n }", "public function updateAuthKey() {\n $user = self::login($...
[ "0.6665551", "0.6409194", "0.6156921", "0.61385393", "0.6078722", "0.6029782", "0.6018351", "0.5936339", "0.5888792", "0.584557", "0.58286655", "0.5770166", "0.57274085", "0.57124895", "0.56829095", "0.56743157", "0.5667101", "0.56619036", "0.5636807", "0.5612603", "0.5606569...
0.80083
0
Returns the application's default account.
Возвращает учетную запись по умолчанию приложения.
public function getDefaultAccount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDefaultAccount() {\n $type = 'system';\n $id = 0;\n $account = self::query($type, $id);\n if (!$account) {\n $account = self::createAccount($type, $id);\n }\n return $account;\n }", "public function getProfileDefault()\n {\n return $this->getConfig('pac...
[ "0.8160592", "0.6645687", "0.663576", "0.6603466", "0.6602178", "0.65649045", "0.6539245", "0.6473755", "0.6420024", "0.63939023", "0.639303", "0.6345215", "0.63152707", "0.6252368", "0.62268853", "0.62268853", "0.6224285", "0.6188713", "0.61705583", "0.61657804", "0.61260873...
0.8504286
0
Append another semigroup and return the result.
Добавьте еще один полугруппу и верните результат.
public function append(SemigroupInterface $other) { if ($other instanceof static) { return new static(array_merge($this->value, $other->value)); } $this->throwMismatchedDataTypeException($other); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function concat(Semigroup $value);", "public function append(IteratorAggregate $other)\n {\n return self::from(Iterables::concat($this, $other));\n }", "public function addGroup($group) {}", "public function addGroup($attributes) {\n return $this->get('add_group', $attributes);\n }", ...
[ "0.6806429", "0.5894069", "0.5792984", "0.56675094", "0.5643763", "0.5643583", "0.55650795", "0.5440076", "0.5431618", "0.53478247", "0.5345905", "0.529712", "0.5248809", "0.52465224", "0.52278763", "0.5175918", "0.5168406", "0.51604193", "0.5146403", "0.5131479", "0.5129351"...
0.7048063
0
/ sigkill a process by pid file
Убить процесс по файлу pid
function sigkillbypid($pidfile, $sig) { if (file_exists($pidfile)) { mwexec("/bin/kill -s $sig `/bin/cat " . $pidfile . "`"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function killbypid($pidfile) {\n\tsigkillbypid($pidfile, \"TERM\");\n\tunlink_if_exists($pidfile);\n}", "function killProcess($pid)\n{\n $mapper = systemToolkit::getInstance()->getMapper('process', 'process');\n $process = $mapper->searchOneByField('pid', $pid);\n if($process) {\n $mapper->delete...
[ "0.7514653", "0.69423324", "0.6522514", "0.6505354", "0.6482062", "0.6433005", "0.6375065", "0.6282453", "0.61879396", "0.6032519", "0.59860533", "0.5951961", "0.5908137", "0.5853857", "0.5841968", "0.583586", "0.58018845", "0.5654211", "0.56488204", "0.56131124", "0.5585551"...
0.7922978
0
/ kill a process by name
/ убить процесс по имени
function killbyname($procname) { return mwexec("/bin/killall " . escapeshellarg($procname)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function killProcess($pid)\n{\n $mapper = systemToolkit::getInstance()->getMapper('process', 'process');\n $process = $mapper->searchOneByField('pid', $pid);\n if($process) {\n $mapper->delete($process);\n }\n}", "function killProcess(string $id) : void\n {\n shell_exec(\"kill $id\")...
[ "0.74862087", "0.71212125", "0.6927956", "0.6826314", "0.6765308", "0.64480174", "0.6404901", "0.63436407", "0.63113123", "0.6285731", "0.6280154", "0.6183702", "0.6129235", "0.59257585", "0.59125763", "0.57981336", "0.57880163", "0.5779802", "0.5771462", "0.57318234", "0.557...
0.78580165
0
/ returns a subnet mask (long given a bit count)
возвращает маску подсети (в виде long по количеству бит)
function gen_subnet_mask_long($bits) { $sm = 0; for ($i = 0; $i < $bits; $i++) { $sm >>= 1; $sm |= 0x80000000; } return $sm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gen_subnet_mask($bits) {\n\treturn long2ip(gen_subnet_mask_long($bits));\n}", "function mask2cidr($mask){\n\t$long = ip2long($mask);\n\t$base = ip2long('255.255.255.255');\n\treturn 32-log(($long ^ $base)+1,2);\n}", "function gen_subnet_max($ipaddr, $bits) {\n\tif (!is_ipaddr($ipaddr) || !is_numeric($...
[ "0.74414444", "0.6648165", "0.6428519", "0.64035046", "0.6256522", "0.62064344", "0.6161025", "0.59682065", "0.59665924", "0.59655565", "0.59148484", "0.59143245", "0.587592", "0.5825588", "0.5822473", "0.57552147", "0.57359046", "0.5719687", "0.57150656", "0.5678774", "0.560...
0.76189566
0
/ returns true if $ipaddr is a valid dotted IPv4 address or an alias thereof
возвращает true, если $ipaddr является допустимым адресом IPv4 в формате с точками или является его алиасом
function is_ipaddroralias($ipaddr) { global $aliastable; if (isset($aliastable[$ipaddr]) && is_ipaddr($aliastable[$ipaddr])) return true; else return is_ipaddr($ipaddr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_ipaddr($ipaddr) {\n\tif (!is_string($ipaddr))\n\treturn false;\n\n\t$ip_long = ip2long($ipaddr);\n\t$ip_reverse = long2ip($ip_long);\n\n\tif ($ipaddr == $ip_reverse)\n\treturn true;\n\telse\n\treturn false;\n}", "function is_ipaddroranyalias($ipaddr) {\n\n\tglobal $aliastable;\n\n\tif (isset($aliasta...
[ "0.7613692", "0.73716396", "0.7042272", "0.68294126", "0.67949903", "0.6769745", "0.6738966", "0.66656506", "0.6619137", "0.6596755", "0.65795755", "0.6563379", "0.6544879", "0.6533568", "0.6510523", "0.649464", "0.6476166", "0.6455342", "0.6428787", "0.64279044", "0.63905674...
0.75361717
1
/ convert a netmask (ex: 255.255.255.240) to a cidr mask (ex: /28)
/ преобразование маски сети (например, 255.255.255.240) в маску CIDR (например, /28)
function mask2cidr($mask){ $long = ip2long($mask); $base = ip2long('255.255.255.255'); return 32-log(($long ^ $base)+1,2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _convertCIDRToNetworkMask($cidr)\n {\n return long2ip(pow(2, 32)-1<<32-$cidr);\n }", "private static function _Mask2cidr($mask) {\n\t\t$long = ip2long($mask);\n\t\t$base = ip2long('255.255.255.255');\n\t\treturn 32-log(($long ^ $base)+1,2);\n\t}", "public function mask2Cidr($mask)...
[ "0.7776686", "0.7700399", "0.74678105", "0.73044395", "0.72240496", "0.6715027", "0.66486245", "0.66295725", "0.6471668", "0.6364788", "0.63178575", "0.61513406", "0.6136669", "0.6088117", "0.608554", "0.60822153", "0.5965173", "0.5883106", "0.5851156", "0.5845759", "0.584475...
0.8081906
0
/ returns true if $subnet is a valid subnet in CIDR format
возвращает true, если $subnet является допустимым подсетью в формате CIDR
function is_subnet($subnet) { if (!is_string($subnet)) return false; list($hp,$np) = explode('/', $subnet); if (!is_ipaddr($hp)) return false; if (!is_numeric($np) || ($np < 1) || ($np > 32)) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate_subnet($subnet) {\n\t\t\t$parts = explode(\"/\", $subnet);\n\t\t\tif (count($parts) != 2)\n\t\t\t\treturn false;\n\n\t\t\tif (!IPv6::validate_ip($parts[0]) || !IPv6::validate_cidr($parts[1]))\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}", "function validate_cidr($cidr) {\n\t\...
[ "0.7888921", "0.71092504", "0.7060674", "0.7056377", "0.7045833", "0.700696", "0.69766045", "0.6823672", "0.6790082", "0.67890835", "0.6758776", "0.67118853", "0.6647906", "0.6527489", "0.6461891", "0.6445815", "0.6441652", "0.6411922", "0.63140976", "0.6313809", "0.62850857"...
0.79416513
0