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
generate the output schedule
сгенерировать расписание вывода
public function generateSchedule() { $specialistregulations = Specialistregulation::getList(); $turns = Turn::getAvailableTurns(); $turn = Turn::findOrFail(Session::get('overview_schedule_turn')); $specialistregulation = Specialistregulation::findOrFail(Session::get('overview_schedule_specialistregulation')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function schedule_generate($classes_arr, $options,$bChkIns) {\r\n\t\tif ( intval($options[\"row_interval\"]) == 0 ) $options[\"row_interval\"] = 30;\t\r\n\r\n\t\t// define start time as 8am if not set\r\n\t\tif ( ! isset($options[\"start_time\"]) ) {\r\n\t\t\t$options[\"start_time\"] = 800;\r\n\t\t}\r\n\t\telse {\...
[ "0.66280127", "0.61845225", "0.6181191", "0.6163803", "0.5968244", "0.5952934", "0.5910105", "0.58771664", "0.58283955", "0.5815785", "0.5802191", "0.5746059", "0.5736694", "0.5732906", "0.5719591", "0.5718419", "0.5702668", "0.5699374", "0.5698609", "0.56934744", "0.568128",...
0.70173866
0
Retrieve button attributes html
Получить атрибуты кнопки html
public function getButtonAttributesHtml() { $disabled = $this->getDisabled() ? 'disabled' : ''; $title = $this->getTitle(); if (!$title) { $title = $this->getLabel(); } $classes = []; $classes[] = 'action-default'; $classes[] = 'primary'; /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributesHtml()\n {\n $title = $this->getTitle();\n if (!$title) {\n $title = $this->getLabel();\n }\n $classes = [];\n if ($this->hasSplit()) {\n $classes[] = 'actions-split';\n }\n //@TODO Perhaps use $this->getClass() ...
[ "0.70783854", "0.70731235", "0.6970188", "0.69461733", "0.68908036", "0.68867534", "0.6788533", "0.6745584", "0.67433476", "0.6738169", "0.6724579", "0.67037123", "0.66937965", "0.6690594", "0.663605", "0.6585531", "0.65836287", "0.65760493", "0.6465513", "0.64596397", "0.645...
0.7861026
0
Save loan to the repository
Сохранить кредит в репозиторий
public function save(Loan $loan) { $this->getEntityManager()->persist($loan); $this->getEntityManager()->flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Save(){\n return LoanProSDK::GetInstance()->GetApiComm()->SaveLoan($this);\n }", "Public Function save();", "public function save()\n {\n $this->getRepository()->save();\n }", "public function save_new_loan()\n {\n $this->load->model('admin/prestamo/Loan_model');\n ...
[ "0.7702996", "0.6386678", "0.6355872", "0.6352657", "0.63039", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0.6286737", "0....
0.7448458
1
Delete loan from the repository
Удалить кредит из репозитория
public function delete(Loan $loan) { $this->getEntityManager()->remove($loan); $this->getEntityManager()->flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Loan $loan)\n {\n //\n }", "public function destroy(Loan $loan)\n {\n //\n }", "public function destroy(Loan $loan)\n {\n //\n }", "public function destroy(Loan $loan)\n {\n //\n }", "public function deleteRepository(): void;", "...
[ "0.711046", "0.711046", "0.711046", "0.711046", "0.7009779", "0.69464624", "0.6831739", "0.651765", "0.64352894", "0.6415047", "0.6352554", "0.632649", "0.6295681", "0.62899864", "0.62814045", "0.62773025", "0.62773025", "0.62773025", "0.62773025", "0.62773025", "0.62773025",...
0.752095
0
Get protected value fillable
Получить защищённое значение fillable
public function getFillable() { return $this->fillable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFillable()\n {\n return $this->fillable;\n }", "public function getFillable()\n {\n return $this->fillable;\n }", "public function getFillable()\n\t{\n\t\t\treturn $this->fillable;\n\t}", "public function getFillable()\n\t{\n\t\t\treturn $this->fillable;\n\t}", ...
[ "0.705937", "0.705937", "0.7051226", "0.7051226", "0.69734013", "0.689669", "0.65590847", "0.6546662", "0.64673424", "0.62643194", "0.62231153", "0.62059724", "0.61643744", "0.6140431", "0.61306596", "0.60848016", "0.60654795", "0.60415566", "0.6020141", "0.59862334", "0.5978...
0.70875853
0
Get protected value $possibleRelations
Получить защищённое значение $possibleRelations
public function getPossibleRelations() { return $this->possibleRelations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPossibleRelations()\n {\n return $this->possibleRelations;\n }", "public function getRelations()\n {\n if (array_key_exists(\"relations\", $this->_propDict)) {\n return $this->_propDict[\"relations\"];\n } else {\n return null;\n }\n ...
[ "0.85407144", "0.7160672", "0.7141845", "0.6850292", "0.68277156", "0.6775931", "0.6775931", "0.66220987", "0.65688187", "0.6509803", "0.6448849", "0.6420533", "0.6419721", "0.6386259", "0.63564086", "0.6266628", "0.624987", "0.6194527", "0.6168041", "0.6166368", "0.6133607",...
0.87294054
0
check if the input test contains white spaces inside
проверить, содержит ли входной тест пробелы внутри
function whiteSpaceInside($inputText){ if( preg_match('/\s/',$inputText) ){ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWithWhiteSpace(){\n $string = \"azertyuiop qsdfghjklm wxcvbn\";\n $boolean = StringValidator::noWhiteSpace($string);\n $this->assertFalse($boolean);\n }", "public function testOnlySpaces()\r\n {\r\n // a varaiable that stores the results from the cleaner\r\n ...
[ "0.74885803", "0.73238236", "0.7271135", "0.72282356", "0.71889156", "0.70929843", "0.69303966", "0.69034964", "0.688442", "0.6769292", "0.6742722", "0.6736647", "0.6692914", "0.6661057", "0.66508394", "0.6607078", "0.65559566", "0.6550116", "0.6538761", "0.65149033", "0.6512...
0.76743466
0
below function checks the date of birth receives the pointer to the variable that should capture errors related to the DOB
ниже приведенная функция проверяет дату рождения, получая указатель на переменную, которая должна захватывать ошибки, связанные с датой рождения
function validateDOB($day, $month, $year, &$errorsDOB, &$db){ $dateOK = true; settype($day, "integer"); settype($month, "integer"); settype($year, "integer"); $cleanedDay = cleanInput($day); $cleanedMonth = cleanInput($month); $cleanedYear = cleanInput($year); if((strcmp($day, $cleane...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dateOfBirthValidate($DoB) {\n $DoB = sanitiseInput($DoB);\n $errMsg = \"\";\n if ($DoB == \"\") {\n $errMsg = \"You must enter your date of birth\";\n }\n else if (!preg_match(\"/^[\\d]{2}\\/[\\d]{2}\\/[\\d]{4}$/\", $DoB)) {\n $errMsg = \"Invalid fo...
[ "0.76914334", "0.75910413", "0.7574657", "0.73620164", "0.7343922", "0.7304664", "0.7281899", "0.7038945", "0.69888216", "0.69083166", "0.6872496", "0.6864057", "0.6864057", "0.68343335", "0.6752715", "0.66908395", "0.6634313", "0.65908635", "0.65752274", "0.6553136", "0.6545...
0.77715945
0
below function checks the gender receives the pointer to the variable that should capture errors related to the gender
ниже функция проверяет пол, получает указатель на переменную, которая должна захватывать ошибки, связанные с полом
function validateGender($gender, &$errorsGender, &$db){ $cleanedGender = cleanInput($gender); if(strcmp($gender, $cleanedGender) !== 0){ $errorsGender['invalidGender'] = 'Trying to hack our website, aren\'t you?'; return false; } return true; // if valid }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function check_gender () {\n\t}", "function isValidGender(&$gender)\n{\n switch ($gender)\n {\n case 'female':\n $gender = 1;\n return true;\n case 'male':\n $gender = 2;\n return true;\n case 'other':\n $gender = 3;\...
[ "0.8079292", "0.77491736", "0.76410383", "0.76338667", "0.7442705", "0.7115827", "0.7031553", "0.70151144", "0.6954415", "0.6896186", "0.68728375", "0.68045276", "0.67891014", "0.6752879", "0.66244197", "0.64510196", "0.63518584", "0.6327934", "0.6242487", "0.62324333", "0.62...
0.78913295
1
Get the results of the relationship.
Получите результаты отношения.
public function getResults() { return ! is_null($this->parent->{$this->foreignKey}) ? $this->get() : $this->related->newCollection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function results()\n\t{\n\t\treturn $this->hasMany( Result::class );\n\t}", "public function results()\n {\n return $this->hasMany('App\\Result');\n }", "public function results()\n {\n return $this->hasMany('App\\Result');\n }", "public function results()\n {\n ret...
[ "0.75248265", "0.7376699", "0.7376699", "0.7376699", "0.7102293", "0.7074116", "0.70504665", "0.70504665", "0.70504665", "0.70504665", "0.70372486", "0.70111734", "0.6841588", "0.67756367", "0.67756367", "0.67756367", "0.67756367", "0.67756367", "0.67756367", "0.67756367", "0...
0.78630346
0
Create a person and return the person's ID
Создайте человека и верните идентификатор человека
protected function createPerson() { $response = $this->client->post('/platform/tree/persons', [ 'body' => new \Gedcomx\Extensions\FamilySearch\FamilySearchPlatform($this->personData()) ]); return $response->headers['X-ENTITY-ID']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_person($person_data) {\n $person_id = $this->model->insert($person_data);\n return $person_id;\n }", "public function person_create($person_name, $face_id = '', $group_name = '') {\r\n\t\t$param ['person_name'] = $person_name;\r\n\t\tempty ( $face_id ) || $param ['face_id'] = $fa...
[ "0.8375548", "0.719356", "0.7025862", "0.698751", "0.6985066", "0.6838075", "0.6801476", "0.6786637", "0.6652867", "0.66102976", "0.6555934", "0.6535398", "0.6503698", "0.64488643", "0.6441316", "0.64114004", "0.63992524", "0.6397454", "0.6392136", "0.6384028", "0.63722056", ...
0.7370957
1
print theme file name with some html markup. Magical hidden feature: when viewing any given page, add "?pagecheck=1" to the URL to invoke the page_check function.
Напечатать имя файла темы с некоторой html-маркировкой. Магический скрытый функционал: при просмотре любой страницы добавьте "?pagecheck=1" в URL, чтобы вызвать функцию page_check.
function njimedia_show_theme($f){ //return; if( ! defined('WP_DEBUG') || ! WP_DEBUG ) return; // only enable if debugging turned on. // only run for hosts containing ".local" or .dev or .loc if( ! is_local_server() ) return; // optionally display results of running most all WP c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function theme_call_page($theme, $page, $data = array()){\n\tif(file_exists(\"themes/\".$theme.\"/\".$page.\".tpl\")){\n\t\tinclude (\"themes/\".$theme.\"/\".$page.\".tpl\");\n\t}else{\n\t\tprint \"<!-- The Template '$page' does not exist inside the Theme '$theme' -->\";\n\t}\n}", "public static function\t\tpri...
[ "0.6218707", "0.6164907", "0.6129963", "0.605903", "0.60570806", "0.6056052", "0.6049597", "0.59757304", "0.5902433", "0.5901056", "0.5885756", "0.588031", "0.58783036", "0.58615375", "0.58215684", "0.5771414", "0.57142377", "0.5701565", "0.5700658", "0.56927615", "0.56789684...
0.7087872
0
page_check List output of each of WP's conditional tags (like is_page() )
page_check Список вывода каждого из условных тегов WP (например, is_page() )
public static function check_page(){NJIMEDIA_WP_Utils::page_check();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function conditional_widgets_page_checkboxes($selected=array()) {\n\techo \"<ul class='conditional-widget-selection-list'>\";\n\twp_list_pages( array( 'title_li' => null, 'walker' => new Conditional_Widgets_Walker_Page_Checklist($selected) ) );\n\techo \"</ul>\";\n}", "public function hasPages() {}", "function...
[ "0.6849578", "0.63453275", "0.6342275", "0.63171124", "0.6200736", "0.60087425", "0.59676373", "0.59668595", "0.5953083", "0.5942731", "0.5916142", "0.590025", "0.5896661", "0.58504784", "0.5825219", "0.5797219", "0.57817924", "0.5763344", "0.5737802", "0.5733106", "0.5731443...
0.7034032
0
Validates whether the passed variable is a nonempty string.
Проверяет, является ли переданная переменная непустой строкой.
public static function is_non_empty_string( $variable ) { _deprecated_function( __METHOD__, 'WPSEO 15.6' ); return self::is_string( $variable ) && $variable !== ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function IsNullOrEmptyString($var) {\n return (!isset($var) || trim($var)==='');\n}", "static private function isNonBlankString($string)\n\t{\n\t\treturn ((string) $string) !== '';\n\t}", "function validate_blank ( $sValue )\n{\n return (!is_string($sValue) and !is_null($sValue)) ? false : trim($sValue) ==...
[ "0.7572529", "0.7333937", "0.72624695", "0.72221863", "0.72104305", "0.7090756", "0.7053956", "0.7042054", "0.7021446", "0.70186037", "0.69629604", "0.6946886", "0.69380623", "0.6918974", "0.6916628", "0.689423", "0.6889628", "0.68828535", "0.6874106", "0.6859737", "0.6850287...
0.7464605
1
Set up the API Broker endpoint and callback
Настройте конечную точку API-брокера и обратный вызов
protected function setupBroker() { $this->endpoint = mconfig('finance.mpesa.endpoint'); $this->callbackUrl = mconfig('finance.mpesa.callback_url'); $this->callbackMethod = mconfig('finance.mpesa.callback_method'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupBroker()\n {\n $this->endpoint = (object)[\n 'identity' =>config('payments.equity.endpoint-identity'),\n 'transaction' => config('payments.equity.endpoint-transaction'),\n ];\n $this->callbackUrl = config('payments.equity.callback_url');\n ...
[ "0.7495751", "0.69207686", "0.62813395", "0.6196975", "0.61348885", "0.6108062", "0.60820085", "0.6073439", "0.6033774", "0.59992146", "0.5956986", "0.5938", "0.590728", "0.58934355", "0.5881625", "0.5871297", "0.5837902", "0.5814883", "0.5785541", "0.5778723", "0.5755105", ...
0.7626657
0
Set up Merchant Paybill account.
Настройте аккаунт Merchant Paybill.
protected function setupPaybill() { $this->paybillNumber = mconfig('finance.mpesa.paybill_number'); $this->passkey = mconfig('finance.mpesa.passkey'); $this->demo = mconfig('finance.mpesa.demo'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUpBanklink()\n {\n $this->protocol = new $this->protocolClass(\n $this->sellerId,\n __DIR__.'/../keys/IPizza/private_key.pem',\n '',\n __DIR__.'/../keys/IPizza/public_key.pem',\n $this->customRequestUrl\n );\n\n $t...
[ "0.63650966", "0.60254574", "0.5980514", "0.59143674", "0.59046996", "0.58789843", "0.5808735", "0.577177", "0.57615435", "0.571024", "0.5656342", "0.5635923", "0.56147254", "0.55978453", "0.5565168", "0.5564571", "0.55224854", "0.5499494", "0.54779714", "0.5476568", "0.54764...
0.7579333
0
sanitize user entered css as seen here:
очистить введённый пользователем CSS, как показано здесь:
function sanitize_css( $css ) { if ( ! class_exists( 'csstidy' ) ) { include_once( 'csstidy/class.csstidy.php' ); } $csstidy = new csstidy(); $csstidy->set_cfg( 'remove_bslash', false ); $csstidy->set_cfg( 'compress_colors', false ); $csstidy->set_cfg( 'compress_font-weight', false ); $csst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function simple_css_validate( $input ) \n{\n\t$input['css'] = wp_kses( $input['css'], array( '\\'', '\\\"', '>', '+' ) );\n\t$input['css'] = str_replace( '&gt;', '>', $input['css'] );\n\t$input['theme'] = wp_filter_nohtml_kses($input['theme']);\n\treturn $input;\n}", "function sanitize_custom_css($input){\n $o...
[ "0.7737274", "0.7618496", "0.7415824", "0.7284593", "0.7004667", "0.6905426", "0.69027907", "0.68957573", "0.6854619", "0.6836568", "0.6813237", "0.6733662", "0.67104334", "0.66186076", "0.66089374", "0.6601469", "0.6596227", "0.65891725", "0.6556909", "0.6527033", "0.6506226...
0.8262102
0
display a color picker in place of a text input
показать палитру цветов вместо текстового поля ввода
function form_color( $args ) { $id = ''; $value = ''; $description = ''; // set values if ( ! empty( $args['value'][$args['id']] ) ) { $value = $args['value'][$args['id']]; } else { if ( ! empty( $args['default'] ) ) { $value = $args['default']; } } if ( ! empty( $args['de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toptal_ss_facebook_colorpicker() { ?>\n <input type=\"text\" name=\"toptal_ss_facebook_color\" value=\"<?php echo get_option('toptal_ss_facebook_color'); ?>\" class=\"color-field\">\n <?php\n }", "function show_color($val, $fld='', $update_fg='', $update_bg='') {\n if(!is_color($val)) return $val...
[ "0.7426354", "0.7152844", "0.6959532", "0.6885358", "0.67705196", "0.6694915", "0.6682407", "0.66363466", "0.6558079", "0.653321", "0.6475488", "0.6442951", "0.64293885", "0.6412754", "0.6327765", "0.63069046", "0.6271035", "0.623082", "0.6204317", "0.61759895", "0.6153689", ...
0.7244195
1
Get auto incremented field
Получить поле с автоматическим увеличением
public function getAutoIncrementedField() { return $this->autoIncrementedField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAutoIncrementField(){\n\t\tforeach (array_keys($this->keys()) as $field){\n\t\t\tif (strtolower($this->_fields[$field]['Extra']) == 'auto_increment'){\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function fieldAutoIncrement();", "public function getAutoIncrement()\r\n\t{...
[ "0.8421127", "0.83421946", "0.7761375", "0.7654174", "0.74766064", "0.73036397", "0.71493536", "0.71099174", "0.70699567", "0.70286816", "0.70096534", "0.7008616", "0.69820374", "0.69467926", "0.693892", "0.69249743", "0.6915341", "0.689709", "0.6893194", "0.68637383", "0.679...
0.8721693
0
trim the text to trimNumber amount of words
отсечь текст на trimNumber слов
function trimText ( $text, $trimNumber ) { $text = str_replace(" ", " ", $text); $trimmed = NULL; $string = explode(" ", $text); if ( count($string) > $trimNumber ) { for ( $wordCounter = 0 ; $wordCounter <= $trimNumber ; $wordCounter++ ){ $trimmed .= $string[$wordCounter]; if ( $wordCounter < $trim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_trim_words($text, $num_words = 55, $more = \\null)\n{\n}", "function trim_text ($string, $truncation=25) {\n\t\tif (str_word_count($string) > $truncation) {\n\t\t\t$string = preg_split(\"/\\s+/\",$string,($truncation+1));\n\t\t\tunset($string[(sizeof($string)-1)]);\n\t\t\treturn implode(' ',$string);...
[ "0.74418277", "0.6934533", "0.6890033", "0.6880798", "0.6815208", "0.6813299", "0.6757643", "0.6591416", "0.65708584", "0.65597284", "0.6480878", "0.6458832", "0.64586407", "0.64367104", "0.6429382", "0.6394227", "0.63720965", "0.63665", "0.6347749", "0.63473994", "0.63160723...
0.8003808
0
MySQL AES Encryption replication in PHP These methods will replicate MySQL's AES encryption methods MySQL Equivalent: SELECT AES_ENCRYPT('test', '') AS enc EXAMPLE : Group 1 $a = mysql_aes_encrypt('test'); echo base64_encode($a).''; $result = $this>getApplication()>getDatabase()>query("SELECT AES_ENCRYPT('test', '" . c...
MySQL AES шифрование репликация в PHP Эти методы будут реплицировать методы шифрования AES MySQL MySQL эквивалент: SELECT AES_ENCRYPT('test', '') AS enc ПРИМЕР: Группа 1 $a = mysql_aes_encrypt('test'); echo base64_encode($a).''; $result = $this->getApplication()->getDatabase()->query("SELECT AES_ENCRYPT('test', '" . co...
function genetate_mysql_aes_key($key) { $new_key = str_repeat(chr(0), 16); for($i=0,$len=strlen($key);$i<$len;$i++) { $new_key[$i%16] = $new_key[$i%16] ^ $key[$i]; } return $new_key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mysql_aes_encrypt($val)\r\n{\r\n\t$key = genetate_mysql_aes_key(constant('__ENCRYPTION_KEY__'));\r\n\t$pad_value = 16-(strlen($val) % 16);\r\n\t$val = str_pad($val, (16*(floor(strlen($val) / 16)+1)), chr($pad_value));\r\n\treturn (mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $val, MCRYPT_MODE_ECB, mcrypt_cre...
[ "0.80324954", "0.7058521", "0.7040508", "0.6987216", "0.6972717", "0.6914716", "0.69106245", "0.68980724", "0.6879728", "0.6867153", "0.6840199", "0.680175", "0.679666", "0.672067", "0.6718179", "0.6705085", "0.66954327", "0.667347", "0.66673136", "0.66524535", "0.6617439", ...
0.7097407
1
This method encrypts a value in the MySQL AES methods
Этот метод шифрует значение с использованием методов AES MySQL
function mysql_aes_encrypt($val) { $key = genetate_mysql_aes_key(constant('__ENCRYPTION_KEY__')); $pad_value = 16-(strlen($val) % 16); $val = str_pad($val, (16*(floor(strlen($val) / 16)+1)), chr($pad_value)); return (mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $val, MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function encrypt($value);", "public function encrypt($value);", "function fnEncrypt($sValue, $sSecretKey) {\n global $iv;\n return rtrim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $sSecretKey, $sValue, MCRYPT_MODE_CBC, $iv)), \"\\0\\3\");\n}", "function __encrypt($value) {\n\t\tif (is_arr...
[ "0.7920617", "0.7920617", "0.7406333", "0.74042046", "0.7271434", "0.7267906", "0.72603035", "0.71719134", "0.71719134", "0.71719134", "0.71558684", "0.69614756", "0.69546527", "0.6948834", "0.69369876", "0.69002455", "0.6854905", "0.6849619", "0.6848351", "0.6846382", "0.682...
0.82888377
0
This method decrpts a value in the MySQL AES methods
Этот метод расшифровывает значение в методах MySQL AES
function mysql_aes_decrypt($val) { $key = genetate_mysql_aes_key(constant('__ENCRYPTION_KEY__')); $val = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $val, MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB), MCRYPT_DEV_URANDOM)); return rtrim($val, "\0..\16"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function desencriptar($cadena)\r\n{\r\n //$decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($cadena), MCRYPT_MODE_CBC, md5(md5($key))), \"\\0\");\r\n $cadena = $cadena;\r\n return $cadena;//$decrypted; //Devuelve el string desencriptado\r\n}", "public function decrypt($valu...
[ "0.6586331", "0.65180576", "0.65180576", "0.6408004", "0.6208227", "0.61033124", "0.6081545", "0.60696137", "0.59813654", "0.5949197", "0.5948739", "0.5948111", "0.5944134", "0.5896072", "0.5894872", "0.5891855", "0.58679724", "0.5793876", "0.5729231", "0.57291293", "0.572912...
0.72609544
0
Lists all Agent models.
Список всех моделей агента.
public function actionIndex() { $searchModel = new AgentSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex() {\n\t\t//die();\n\n\t\t$agents = Agent::find()->asArray()->all();\n\n\n\t\t$searchModel = new LandingSearch();\n\t\t$dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n\t\t$dataProvider->setSort(['defaultOrder' => ['request_id'=>SORT_DESC]]);\n\n\t\treturn $this...
[ "0.6676386", "0.6641991", "0.66166794", "0.64911133", "0.6431228", "0.63950336", "0.6360094", "0.6346962", "0.6329126", "0.6329126", "0.6288809", "0.6257495", "0.62278837", "0.6191854", "0.61681867", "0.61495465", "0.61490226", "0.614493", "0.614493", "0.6137975", "0.61350006...
0.71099406
0
Creates a new Agent model. If creation is successful, the browser will be redirected to the 'view' page.
Создаёт новый модель Agent. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $model = new Agent(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('create', [ 'model' => $model, ]);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Agendamento();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ...
[ "0.7011105", "0.6988782", "0.6967453", "0.69214225", "0.6844043", "0.6829928", "0.6821386", "0.6807075", "0.6785979", "0.6781844", "0.67736167", "0.6756884", "0.6723861", "0.67213726", "0.67044574", "0.66760164", "0.6674415", "0.6672053", "0.6659266", "0.6645087", "0.6644683"...
0.8752268
0
Get the first cell that cancels the given cell. More precisely, get the first cell that: is in the same row, column or block of the given cell; contains the given value. The order used for the "first" is not defined, but is garanteed to be consistent across multiple invications.
Получите первую ячейку, которая отменяет заданную ячейку. Более точно, получите первую ячейку, которая: находится в той же строке, столбце или блоке заданной ячейки; содержит заданное значение. Порядок, используемый для определения "первой", не определен, но гарантируется, что он будет последовательным при нескольких в...
public function getFirstCancellerOf(Zwe_Sudoku_Cell $Target, $Value) { foreach(self::getRegionTypes() as $RegionType) { $Region = $this->getRegionAt($RegionType, $Target->getX(), $Target->getY()); for($i = 0; $i < 9; ++$i) { $Cell = $Region->getCel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCell($row)\n {\n foreach ($this->cells as $cell) {\n if ($cell->getCsvRow()->getRowPosition() === $row) {\n return $cell;\n }\n }\n\n throw new CellNotFoundException(\n 'That cell doesn\\'t exist in the column');\n }", ...
[ "0.5393277", "0.5353821", "0.5319437", "0.5175311", "0.51576", "0.5152985", "0.50925475", "0.5049276", "0.49436587", "0.48900267", "0.4819488", "0.47998172", "0.47192118", "0.47085324", "0.47060645", "0.4704234", "0.47038502", "0.4701121", "0.4683631", "0.46833068", "0.467045...
0.7115825
0
Get the number of occurrences of a given value in this grid.
Получите количество вхождений заданного значения в этой сетке.
public function getCountOccurrencesOfValue($Value) { $Ret = 0; for($y = 0; $y < 9; ++$y) for($x = 0; $x < 9; ++$x) if($this->_cells[$y][$x]->getValue() == $Value) $Ret++; return $Ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countValue($value)\n {\n $i = 0;\n foreach ($this as $v) {\n if ($v === $value) {\n $i += 1;\n }\n }\n\n return $i;\n }", "public function count() {\n $count = 0;\n\n foreach ($this as $value) {\n $cou...
[ "0.7465518", "0.72393364", "0.7034492", "0.6955243", "0.6952484", "0.68913823", "0.68913823", "0.6845005", "0.68056864", "0.6799885", "0.6792768", "0.6725792", "0.6697379", "0.669318", "0.669318", "0.6691576", "0.66070026", "0.6600221", "0.65968424", "0.658258", "0.65340686",...
0.74278075
1
Clever little function that takes a table structure defined in PHP, and turns into a mySQL table, and creates it in the db.
Умная маленькая функция, которая принимает структуру таблицы, определенную на PHP, и преобразует ее в таблицу mySQL, создавая ее в базе данных.
function create_table(&$table_structure) { global $db; $sql = ''; foreach ( $table_structure as $type => $fields ) { if ( ! is_array($fields) ) continue; foreach ($fields as $key => $field) { switch ($type) { case 'INDEX': $sql .= "INDEX {$field}_idx ($fie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_new_table($table_name, $rows) {\n\t$connection = connect();\n\t$expanded_array = \"\";\n\tforeach ($rows as $key => $value) {\n\t\t$expanded_array = $expanded_array . $key . \" \" . $value . \",\";\n\t}\n\t$query = \"CREATE TABLE IF NOT EXISTS `$table_name` (\" . substr($expanded_array, 0, -1) . \"...
[ "0.7075447", "0.68467337", "0.6844587", "0.6818616", "0.67480147", "0.67471695", "0.6700414", "0.669276", "0.66750365", "0.66495043", "0.6623398", "0.65973073", "0.6593019", "0.65884596", "0.6557792", "0.65315276", "0.65275985", "0.6519569", "0.65023786", "0.64947534", "0.649...
0.71741587
0
Stores a version of a file
Хранит версию файла
public function storeVersion(File $file, $version, $tempFile);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function store($filename) {\n\t\tif (\\OCP\\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {\n\n\t\t\t// if the file gets streamed we need to remove the .part extension\n\t\t\t// to get the right target\n\t\t\t$ext = \\pathinfo($filename, PATHINFO_EXTENSION);\n\t\t\tif ($e...
[ "0.6968143", "0.6536738", "0.6495951", "0.64852333", "0.6469875", "0.6419708", "0.6259066", "0.6251129", "0.61760885", "0.6121667", "0.60605794", "0.6030391", "0.6024975", "0.6013538", "0.5988619", "0.5953834", "0.5951644", "0.59220576", "0.590778", "0.5838933", "0.58376795",...
0.74184257
0
Retrieves a version of a file and temporarily stores it somewhere so it can be read.
Получает версию файла и временно хранит её в некотором месте, чтобы можно было её прочитать.
public function retrieveVersion(File $file, $version);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVersionFile() : string\n {\n return Storage::get(static::NEW_VERSION_FILE);\n }", "function get_directory_version(){\n\t$filename = '../version.txt';\n\t$handle = fopen($filename,'r');\n\t$content = fread($handle,filesize($filename));\n\t\n\tfclose($handle);\n\t\n\treturn $cont...
[ "0.69453984", "0.6709108", "0.6580733", "0.6367437", "0.61993676", "0.61993676", "0.61888117", "0.615342", "0.6105794", "0.60921305", "0.60600907", "0.6008926", "0.59862363", "0.5942278", "0.5942278", "0.5903488", "0.5876944", "0.58318955", "0.5825823", "0.5825823", "0.582582...
0.766122
0
Deletes a version of a file
Удаляет версию файла
public function deleteVersion(File $file, $version);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function deleteVersionFile() : bool\n {\n return Storage::delete(static::NEW_VERSION_FILE);\n }", "public function deleteVersionFile(): bool\n {\n return Storage::delete($this->versionFile);\n }", "public static function delete($path) {\n\t\t$deletedFile = self::$deletedFile...
[ "0.7367289", "0.7345703", "0.72692496", "0.71598125", "0.71598125", "0.7043644", "0.6846617", "0.68219", "0.6814203", "0.6809942", "0.6804855", "0.67901754", "0.67839056", "0.67810535", "0.67765814", "0.6745827", "0.6736504", "0.67278653", "0.67197424", "0.6684765", "0.667077...
0.858596
0
Usado para mudar senha pelo proprio usuario
Используется для изменения пароля самого пользователя
function mudarSenha() { if (!empty($this->data['Usuario']['nova_senha'])) { $this->Usuario->id = $this->Session->read('Auth.Usuario.id'); $this->Usuario->set('password', $this->Auth->password($this->data['Usuario']['nova_senha'])); if ($this->Usuario->save($this->data)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mudarSenhaUsuario() {\r\n if (!empty($this->data)) {\r\n $this->Usuario->set('password', $this->Auth->password($this->data['Usuario']['nova_senha']));\r\n if ($this->Usuario->save($this->data)) {\r\n $this->Session->setFlash('Senha alterada com sucesso!');\r\n ...
[ "0.77320844", "0.6523819", "0.6485763", "0.6387085", "0.6367003", "0.63468635", "0.63374585", "0.6329587", "0.6287937", "0.6274482", "0.62266237", "0.62054616", "0.62041014", "0.6202725", "0.6190708", "0.618142", "0.617872", "0.6166756", "0.61401135", "0.61400366", "0.6139725...
0.82560563
0
Usado pelo admin para mudar senha do usuario
Используется администратором для изменения пароля пользователя
function mudarSenhaUsuario() { if (!empty($this->data)) { $this->Usuario->set('password', $this->Auth->password($this->data['Usuario']['nova_senha'])); if ($this->Usuario->save($this->data)) { $this->Session->setFlash('Senha alterada com sucesso!'); } els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mudarSenha() {\r\n if (!empty($this->data['Usuario']['nova_senha'])) {\r\n $this->Usuario->id = $this->Session->read('Auth.Usuario.id');\r\n $this->Usuario->set('password', $this->Auth->password($this->data['Usuario']['nova_senha']));\r\n if ($this->Usuario->save($t...
[ "0.82059455", "0.6627835", "0.6563661", "0.65426284", "0.64990556", "0.6478475", "0.6445614", "0.6364669", "0.634681", "0.63382536", "0.6329761", "0.6309557", "0.63035417", "0.6271096", "0.6252177", "0.62426627", "0.62366945", "0.6226829", "0.62251574", "0.6222775", "0.622272...
0.8176741
1
Gets the number of character replacements required to turn a into b
Получает количество замен символов, необходимых для преобразования a в b
private function getReplacementCount($a, $b) { $count = 0; $length = strlen($a); for ($i = 0; $i < $length; $i++) { $aChar = substr($a, $i, 1); $bChar = substr($b, $i, 1); if ($aChar !== $bChar) { $count++; } } retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumberOfIdenticalCharacters(string $a, string $b): int\n {\n $set = [];\n $aLength = strlen($a);\n $bLength = strlen($b);\n $number = 0;\n\n for ($i = 0; $i < $aLength; $i++) {\n $set[$a[$i]] = true;\n }\n\n for ($i = 0; $i < $bLengt...
[ "0.6659242", "0.6170879", "0.60684663", "0.6042461", "0.58299744", "0.56666124", "0.5653821", "0.5615992", "0.56157446", "0.56142753", "0.56133014", "0.5548136", "0.55242217", "0.5509795", "0.5382315", "0.5369354", "0.53438276", "0.5327885", "0.53198963", "0.5289708", "0.5277...
0.7902229
0
Gets an array of all words with one repeat sequence removed from given word
Получает массив всех слов с одной последовательностью повторов, удаленной из заданного слова
public function getCollapsedWords($word) { // Find short tandem repeat sequences in string $matches = array(); preg_match_all('/(.{1,2}?)\1+/', $word, $matches); if ($matches === FALSE) { return array(); } // Collect words with one repeat removed ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUniqueWords(string $text) : array {\n $result = [];\n $countableWordsFromText = [];\n $clearedText = preg_replace (\"/[^a-zA-ZА-Яа-я0-9\\'\\-\\s]/\",\"\", $text);\n $wordsFromText = explode(' ', $clearedText);\n foreach ($wordsFromText as $word) {\n $word = strtolower($word);\n ...
[ "0.6097654", "0.5771132", "0.5731454", "0.5707609", "0.5702156", "0.55021656", "0.54767597", "0.5432228", "0.5400023", "0.53491133", "0.53161275", "0.5273379", "0.52193373", "0.51947844", "0.51920134", "0.5191007", "0.5179947", "0.50968033", "0.5061476", "0.5047539", "0.50346...
0.73989123
0
Return whether the check is muted
Вернуть, является ли проверка отключенной
public function isMuted();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMuted(): bool;", "public static function is_muted(): bool {\n\t\ttry {\n\t\t\treturn self::instance()->is_muted;\n\t\t} catch ( Instance_Not_Ready ) {\n\t\t\treturn true;\n\t\t}\n\t}", "public function isMuted()\n {\n $this->muted = true;\n return $this;\n }", "public fu...
[ "0.82457256", "0.7940962", "0.68179005", "0.6635542", "0.6494036", "0.6317881", "0.60770375", "0.6036864", "0.6033434", "0.5994543", "0.5956197", "0.5875003", "0.5870164", "0.58557093", "0.5794399", "0.5792948", "0.569581", "0.56817216", "0.5647172", "0.5598564", "0.55537075"...
0.8274749
0
Get the value of docenciaTecnicoSuperiorId
Получить значение docenciaTecnicoSuperiorId
public function getDocenciaTecnicoSuperiorId() { return $this->docenciaTecnicoSuperiorId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciaTecnicoSuperior()\n\t{\n\t\treturn $this->docenciaTecnicoSuperior;\n\t}", "public function getTbResenhaIdusuario(){\n\treturn $this->tbResenhaIdusuario;\n}", "public function getIdDocumento(){\n return $this->idDocumento;\n }", "public function getIdTecnico()\n {\n ...
[ "0.7322086", "0.6471894", "0.64057714", "0.6307427", "0.62978894", "0.62460184", "0.62283766", "0.6227694", "0.61430484", "0.61257696", "0.6098401", "0.6043181", "0.60257", "0.5999434", "0.59783053", "0.5971451", "0.59392667", "0.5936872", "0.5914631", "0.5903064", "0.5893180...
0.86926556
0
Get the value of docenciatecnicosuperiorcodigo
Получить значение docenciatecnicosuperiorcodigo
public function getDocenciatecnicosuperiorcodigo() { return $this->docenciatecnicosuperiorcodigo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperioruser()\n\t{\n\t\treturn $this->docenciatecnicosuperioruser;\n\t}", "public function getDocenciatecnicosuperiorAccion()\n\t{\n\t\treturn $this->docenciatecnicosuperiorAccion;\n\t}", "public function getDocenciatecnicosuperiorOculto()\n\t{\n\t\treturn $this->docenciatecn...
[ "0.7995349", "0.7896575", "0.75334233", "0.72918797", "0.71138304", "0.68551964", "0.66142666", "0.65074086", "0.6358993", "0.63467723", "0.6340258", "0.62530994", "0.62530994", "0.62427163", "0.6230801", "0.6218532", "0.61867046", "0.61760676", "0.6166761", "0.61629367", "0....
0.8590021
0
Set the value of docenciatecnicosuperiorcodigo
Установите значение docenciatecnicosuperiorcodigo
public function setDocenciatecnicosuperiorcodigo($docenciatecnicosuperiorcodigo) { $this->docenciatecnicosuperiorcodigo = $docenciatecnicosuperiorcodigo; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperiorcodigo()\n\t{\n\t\treturn $this->docenciatecnicosuperiorcodigo;\n\t}", "public function setDocenciatecnicosuperiorAccion($docenciatecnicosuperiorAccion)\n\t{\n\t\t$this->docenciatecnicosuperiorAccion = $docenciatecnicosuperiorAccion;\n\n\t\treturn $this;\n\t}", "public...
[ "0.76423323", "0.7607078", "0.7487135", "0.71910924", "0.7022585", "0.69820625", "0.68600434", "0.66026473", "0.6388049", "0.6156373", "0.58268386", "0.5794305", "0.573147", "0.5719573", "0.5697118", "0.56849015", "0.5660533", "0.5641834", "0.5633044", "0.5632996", "0.5592834...
0.78169596
0
Get the value of docenciaTecnicoSuperior
Получить значение docenciaTecnicoSuperior
public function getDocenciaTecnicoSuperior() { return $this->docenciaTecnicoSuperior; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciaTecnicoSuperiorId()\n\t{\n\t\treturn $this->docenciaTecnicoSuperiorId;\n\t}", "public function getDocente(){\n return $this->docente;\n }", "public function getDoc_entrega()\r\r\n {\r\r\n return $this->doc_entrega;\r\r\n }", "public function getDocenciatecnicosup...
[ "0.79660505", "0.67628485", "0.6636483", "0.65748715", "0.6565824", "0.64856356", "0.64565", "0.6390121", "0.63317007", "0.6329752", "0.6270035", "0.6255078", "0.6217856", "0.6145309", "0.6145309", "0.61291766", "0.61058503", "0.6103006", "0.60103434", "0.60103434", "0.598402...
0.84337074
0
Set the value of docenciaTecnicoSuperior
Задайте значение docenciaTecnicoSuperior
public function setDocenciaTecnicoSuperior($docenciaTecnicoSuperior) { $this->docenciaTecnicoSuperior = $docenciaTecnicoSuperior; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciaTecnicoSuperior()\n\t{\n\t\treturn $this->docenciaTecnicoSuperior;\n\t}", "public function getDocenciaTecnicoSuperiorId()\n\t{\n\t\treturn $this->docenciaTecnicoSuperiorId;\n\t}", "public function setDocente($docente){\n $this->docente = $docente;\n }", "public function setDo...
[ "0.7163129", "0.70580655", "0.6394334", "0.61933315", "0.5897315", "0.5851867", "0.5794801", "0.569034", "0.569034", "0.5622441", "0.55850047", "0.5481487", "0.54763526", "0.5435316", "0.54039365", "0.5402173", "0.54014266", "0.5391904", "0.5385581", "0.53241587", "0.53202474...
0.72694695
0
Get the value of docenciatecnicosuperiorOculto
Получить значение docenciatecnicosuperiorOculto
public function getDocenciatecnicosuperiorOculto() { return $this->docenciatecnicosuperiorOculto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperiorcodigo()\n\t{\n\t\treturn $this->docenciatecnicosuperiorcodigo;\n\t}", "public function getDocenciatecnicosuperiorAccion()\n\t{\n\t\treturn $this->docenciatecnicosuperiorAccion;\n\t}", "public function getDocenciatecnicosuperioruser()\n\t{\n\t\treturn $this->docenciate...
[ "0.7737143", "0.75608665", "0.7401242", "0.73436934", "0.6785097", "0.66439015", "0.63776046", "0.63598394", "0.6183907", "0.6171249", "0.6147413", "0.613967", "0.61217237", "0.608746", "0.60697865", "0.60697865", "0.60697865", "0.6060941", "0.603345", "0.6029385", "0.6016737...
0.8746775
0
Set the value of docenciatecnicosuperiorOculto
Установите значение docenciatecnicosuperiorOculto
public function setDocenciatecnicosuperiorOculto($docenciatecnicosuperiorOculto) { $this->docenciatecnicosuperiorOculto = $docenciatecnicosuperiorOculto; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperiorOculto()\n\t{\n\t\treturn $this->docenciatecnicosuperiorOculto;\n\t}", "public function setDocenciatecnicosuperiorAccion($docenciatecnicosuperiorAccion)\n\t{\n\t\t$this->docenciatecnicosuperiorAccion = $docenciatecnicosuperiorAccion;\n\n\t\treturn $this;\n\t}", "public...
[ "0.7681365", "0.7256629", "0.71716726", "0.6897664", "0.66576385", "0.66411394", "0.6335637", "0.6326201", "0.5781382", "0.56918454", "0.54628897", "0.5208211", "0.51508087", "0.5117822", "0.5107852", "0.5107816", "0.5104319", "0.509899", "0.5091746", "0.5049238", "0.5046708"...
0.8097579
0
Get the value of docenciatecnicosuperiorAccion
Получить значение docenciatecnicosuperiorAccion
public function getDocenciatecnicosuperiorAccion() { return $this->docenciatecnicosuperiorAccion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperioruser()\n\t{\n\t\treturn $this->docenciatecnicosuperioruser;\n\t}", "public function getDocenciatecnicosuperiorcodigo()\n\t{\n\t\treturn $this->docenciatecnicosuperiorcodigo;\n\t}", "public function setDocenciatecnicosuperiorAccion($docenciatecnicosuperiorAccion)\n\t{\n...
[ "0.7562908", "0.7478036", "0.7314452", "0.71479493", "0.66410977", "0.66127384", "0.6564338", "0.6418767", "0.6242707", "0.6044208", "0.6025301", "0.59860605", "0.5969121", "0.59176356", "0.59154016", "0.58870095", "0.5825581", "0.581465", "0.58076584", "0.58013386", "0.57280...
0.8831688
0
Set the value of docenciatecnicosuperiorAccion
Задайте значение docenciatecnicosuperiorAccion
public function setDocenciatecnicosuperiorAccion($docenciatecnicosuperiorAccion) { $this->docenciatecnicosuperiorAccion = $docenciatecnicosuperiorAccion; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperiorAccion()\n\t{\n\t\treturn $this->docenciatecnicosuperiorAccion;\n\t}", "public function getDocenciatecnicosuperioruser()\n\t{\n\t\treturn $this->docenciatecnicosuperioruser;\n\t}", "public function setDocenciatecnicosuperioruser($docenciatecnicosuperioruser)\n\t{\n\t\t...
[ "0.7741958", "0.6434762", "0.64057165", "0.6392408", "0.6177989", "0.6123427", "0.6106398", "0.60793465", "0.5691952", "0.5661072", "0.56559575", "0.5565367", "0.54919606", "0.5457916", "0.5272307", "0.5268193", "0.51792914", "0.51641864", "0.50588375", "0.49943402", "0.49775...
0.7864108
0
Get the value of docenciatecnicosuperiorfecha
Получить значение docenciatecnicosuperiorfecha
public function getDocenciatecnicosuperiorfecha() { return $this->docenciatecnicosuperiorfecha; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocenciatecnicosuperiorfecha($docenciatecnicosuperiorfecha)\n\t{\n\t\t$this->docenciatecnicosuperiorfecha = $docenciatecnicosuperiorfecha;\n\n\t\treturn $this;\n\t}", "public function getDocenciatecnicosuperiorcodigo()\n\t{\n\t\treturn $this->docenciatecnicosuperiorcodigo;\n\t}", "public fun...
[ "0.6913614", "0.6742745", "0.6591978", "0.6556826", "0.6500509", "0.6444201", "0.64052045", "0.6381659", "0.63372743", "0.6256808", "0.61954945", "0.6174018", "0.61542803", "0.6146081", "0.6142345", "0.61012393", "0.6075728", "0.6061941", "0.6045042", "0.60335124", "0.6023287...
0.8519631
0
Set the value of docenciatecnicosuperiorfecha
Задайте значение docenciatecnicosuperiorfecha
public function setDocenciatecnicosuperiorfecha($docenciatecnicosuperiorfecha) { $this->docenciatecnicosuperiorfecha = $docenciatecnicosuperiorfecha; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperiorfecha()\n\t{\n\t\treturn $this->docenciatecnicosuperiorfecha;\n\t}", "public function setFecha($n)\n {\n this->$v_fecha=$n;\n \n }", "function set_fechaIngreso( $fechaIngreso ) {\n // sets the value of fechaIngreso\n $this->fechaIngreso = ...
[ "0.7610573", "0.65105325", "0.6371779", "0.6366613", "0.6299142", "0.6299142", "0.626528", "0.62557006", "0.6230568", "0.62291753", "0.6204742", "0.617649", "0.611721", "0.60733527", "0.6047168", "0.60248935", "0.60099703", "0.5978425", "0.5948567", "0.5940033", "0.59189504",...
0.77383554
0
Get the value of docenciatecnicosuperioruser
Получить значение docenciatecnicosuperioruser
public function getDocenciatecnicosuperioruser() { return $this->docenciatecnicosuperioruser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperiorAccion()\n\t{\n\t\treturn $this->docenciatecnicosuperiorAccion;\n\t}", "public function getDocenciatecnicosuperiorcodigo()\n\t{\n\t\treturn $this->docenciatecnicosuperiorcodigo;\n\t}", "public function setDocenciatecnicosuperioruser($docenciatecnicosuperioruser)\n\t{\n...
[ "0.75135756", "0.7430221", "0.71762055", "0.682253", "0.660004", "0.6512649", "0.6318544", "0.6097247", "0.6071828", "0.6053352", "0.6025008", "0.5960315", "0.5929004", "0.5869627", "0.5833031", "0.5818664", "0.580293", "0.5802742", "0.5787103", "0.5781825", "0.57517886", "...
0.87381166
0
Set the value of docenciatecnicosuperioruser
Установите значение docenciatecnicosuperioruser
public function setDocenciatecnicosuperioruser($docenciatecnicosuperioruser) { $this->docenciatecnicosuperioruser = $docenciatecnicosuperioruser; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocenciatecnicosuperioruser()\n\t{\n\t\treturn $this->docenciatecnicosuperioruser;\n\t}", "public function setDocenciatecnicosuperiorAccion($docenciatecnicosuperiorAccion)\n\t{\n\t\t$this->docenciatecnicosuperiorAccion = $docenciatecnicosuperiorAccion;\n\n\t\treturn $this;\n\t}", "public fun...
[ "0.7831225", "0.71516573", "0.6856415", "0.66940844", "0.6541031", "0.6529658", "0.65052706", "0.5984992", "0.58550185", "0.5839715", "0.5795965", "0.5760395", "0.5717772", "0.5693049", "0.5592019", "0.5582209", "0.55253357", "0.5503266", "0.5386917", "0.53843236", "0.5376962...
0.8015556
0
Get Collection of Criteria
Получить коллекцию критериев
public function getCriteria();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCriteria() : Collection\n {\n return $this->criteria;\n }", "public function getCriteria()\n {\n return $this->get(self::CRITERIA);\n }", "public function findByCriteria(array $criteria = []): Collection;", "function getCriteria() { return $this->criteria; }", "...
[ "0.83410877", "0.74191", "0.74055", "0.7361331", "0.7310955", "0.72863144", "0.72719765", "0.7051612", "0.69718474", "0.68758726", "0.6813313", "0.6798747", "0.6793565", "0.6782673", "0.6676319", "0.6636873", "0.6636873", "0.6579025", "0.65608746", "0.65498614", "0.651376", ...
0.81661814
1
Retrieve a plan with $id.
Получить план с $id.
public function retrieve($id) { try { Stripe::setApiKey($this->secretKey); $plan = Plan::retrieve($id); return $plan; } catch (\Exception $e) { return (object) ['isError' => 'true', 'message' => $e->getMessage()]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOnePlan($id) {\n\n $response = $this->flutterwave->request->request(\"get\", \"payment-plans/$id\", $this->flutterwave->token);\n\n return $response->responseBody;\n\n }", "public function retrivePlan($plan_id = null, $opts = null)\n {\n if (!empty($plan_id)) {\n ...
[ "0.7961439", "0.7588121", "0.7578665", "0.75133276", "0.7433144", "0.7420968", "0.7408363", "0.73769844", "0.7362013", "0.73578787", "0.7347736", "0.7295046", "0.72919786", "0.72725046", "0.7252492", "0.72296333", "0.7177066", "0.7172078", "0.7041199", "0.69755197", "0.697482...
0.79229075
1
/ donas tago laux vorto_id (la malo de troviVortonId) EN : vortoid EL : tago, monato, jaro
/ донас таго лаух ворто_ид (ла мало дэ трофиВортоId) EN : вортоид EL : таго, монато, яро
function troviTagLauxVortonId($vorto_id) { $query = "select tago,monato,jaro from sam_vortoj where id=".$vorto_id; mysql_select_db("sam"); $result = mysql_query($query) or die ("SELECT : Invalid query :".$query); $row = mysql_fetch_array($result); $tago['tago'] = $row['tago']; $tago['monato'] = $row['monato...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function DetalleOrdenVentaxIdOrdenVenta() {\n $idOrdenVenta = $_REQUEST['id'];\n }", "public function getVinculaciones_idVeterinaria(){\n return $this->Vinculaciones_idVeterinaria;\n }", "function troviVortonId($tago, $monato, $jaro) {\r\n\t$query = \"select id from sam_vortoj where tago...
[ "0.6611174", "0.6428615", "0.6413764", "0.631226", "0.61347693", "0.60198396", "0.6019558", "0.6015457", "0.60096604", "0.5984948", "0.597833", "0.59354526", "0.59293383", "0.5905861", "0.5899985", "0.5872902", "0.5871128", "0.586719", "0.5846188", "0.58453894", "0.58367604",...
0.70337623
0
Converts a time in any format to an RSS time
Конвертирует время в любом формате в формат RSS
function time($time) { return $this->Time->toRSS($time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convertTimeRSS($ugly){\n\t$date = new DateTime($ugly);\n\treturn $date->format('r');\n}", "function convert_time($time){\n\t$timestamp = strtotime($time);\n\treturn $timestamp;\n}", "function acf_convert_time_to_php($time = '') {}", "static function my_strtotime($time) {\n // Incoming format:...
[ "0.72878826", "0.6350171", "0.616021", "0.61572295", "0.6071855", "0.6055282", "0.60375965", "0.59952515", "0.5978951", "0.5965665", "0.5955919", "0.5899351", "0.5896571", "0.5885395", "0.5883937", "0.58767843", "0.58736736", "0.58674234", "0.5865733", "0.5803355", "0.580291"...
0.7797548
0
If GooglePay order payment success
Если оплата заказа GooglePay успешна
public function googlePayTransactionSuccess() { // успешный платеж $response = ["action" => "SALE", 'result' => 'SUCCESS']; $order = $this->getCookieOrder(); $order_id = $order['data']['order_id']; $this->updatePaymentOrder($order_id, self::GOOGLE_PAY, $response); $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function processPayment(){\n var_dump('pay with paypal');\n }", "public function process_pre_order_release_payment( $order ) {\r\n\r\n writeLog( get_class($this). '->' .__FUNCTION__. ' -> order id ->'.$order->id );\r\n\r\n $Paycertify_Process = new Paycertify_API( $order, $this->settings ...
[ "0.6991698", "0.68768245", "0.6837104", "0.68300796", "0.67029905", "0.6702087", "0.6669221", "0.6658528", "0.6656175", "0.66503", "0.664724", "0.6642404", "0.6623684", "0.6608741", "0.66033167", "0.65943116", "0.6593562", "0.658879", "0.6571298", "0.65634936", "0.65612495", ...
0.76823217
0
Get order from cookie
Получить заказ из куки
public function getCookieOrder() { $order = (isset($_COOKIE["san"])) ? json_decode(base64_decode($_COOKIE["san"]), true) : []; if(!empty($order)) return $order; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOrder() ;", "function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", ...
[ "0.64667374", "0.63487154", "0.6225081", "0.6225081", "0.6225081", "0.6225081", "0.6225081", "0.6225081", "0.6225081", "0.6225081", "0.62242293", "0.61988115", "0.6196117", "0.6165243", "0.6165243", "0.6141949", "0.6141949", "0.61384726", "0.61384726", "0.61384726", "0.613847...
0.74988633
0
When we defer a DeferEvent. (The publisher decides that this should be a defer event)
Когда мы откладываем DeferEvent. (Издатель решает, что это должен быть событие откладывания)
public function onDeferEvent(DeferEvent $event) { $message=$this->messageService->createMessage($event->getDeferredEvent()); $this->queue->addMessage($message, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function defer() {\n return TRUE;\n }", "public function defer($callback) {}", "public function onNonDeferEvent(Event $event)\n {\n // save original dispatcher\n $orgDispatcher=$event->getDispatcher();\n\n // add a dummy dispatcher because we cannot serialize or unseriali...
[ "0.6208928", "0.61595905", "0.611216", "0.59390754", "0.5911803", "0.57107836", "0.57071763", "0.56608886", "0.55944246", "0.55901974", "0.5486446", "0.5220866", "0.51642513", "0.5089483", "0.5083392", "0.4981265", "0.49689227", "0.48111248", "0.47716898", "0.47673228", "0.47...
0.70311224
0
/ Function to get the url of the photo (for the moment it's the photo of the main site)
Функция для получения URL фотографии (на данный момент это фотография главной страницы)
function getPhotoURL() { $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https'; $host = $_SERVER['HTTP_HOST']; $script = substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],"/")); return $protocol . '://' . $host . $script . '/assets/img/lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPhotoUrl() : string {\n\t\treturn($this->photoUrl);\n\t}", "public function getURLToPhoto(): string {\n return \"photo.php?p=\" . $this->id;\n }", "public function getPhotoUrl()\n {\n return $this->photoUrl;\n }", "public function getURL() {\n\t\t$title = elgg_get_friendly...
[ "0.78519726", "0.78453827", "0.78194207", "0.7818686", "0.78033864", "0.77162457", "0.76255137", "0.75872093", "0.7580941", "0.75610477", "0.7546526", "0.752417", "0.75132704", "0.74617463", "0.74301726", "0.741664", "0.7410718", "0.7373296", "0.736129", "0.73463553", "0.7334...
0.80528075
0
Get the value of id_commande
Получить значение id_commande
public function getId_commande() { return $this->id_commande; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId_Commande()\n{\nreturn $this->Id_Commande;\n}", "public function getId_produit()\n {\n return $this->id_produit;\n }", "public function getIdCommandeLabo(): ?string\n {\n return $this->id;\n }", "function getIdProduit() {\n return $this->idProduit;\n }...
[ "0.71336746", "0.7053007", "0.7039846", "0.69142807", "0.68051493", "0.67889714", "0.6682382", "0.6659845", "0.6630929", "0.6627981", "0.66007066", "0.65974534", "0.6582739", "0.6576865", "0.6576816", "0.6566035", "0.6547698", "0.65432316", "0.65041924", "0.6500318", "0.64856...
0.84991646
0
Set the value of id_commande
Задайте значение id_commande
public function setId_commande($id_commande) { $this->id_commande = $id_commande; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId_commande()\n {\n return $this->id_commande;\n }", "public function getId_Commande()\n{\nreturn $this->Id_Commande;\n}", "function Modification_Etat_Commande($id_commande)\n{\n\t$bdd_connection = new Connection();\n\t$bdd=$bdd_connection->Bdd_get();\n\ttry\n\t{\n\t\t$req = $bd...
[ "0.7484102", "0.65616846", "0.64374965", "0.6434715", "0.64233816", "0.64196914", "0.6346106", "0.6338109", "0.630157", "0.6301549", "0.63008624", "0.6288424", "0.6273643", "0.62680674", "0.62521684", "0.62421405", "0.62056214", "0.6188389", "0.6165666", "0.6163171", "0.61631...
0.7608562
0
Runs the EnsureIndexes Job
Запускает задачу EnsureIndexes
public function perform() { try { $this->debugLog("[JOBID " . $this->job->payload['id'] . "] EnsureIndexes::perform() start"); $timer = new \Tripod\Timer(); $timer->start(); $this->validateArgs(); \Tripod\Mongo\Config::setConfig($this->a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSuccessfullyEnsureIndexesJob()\n {\n $job = $this->createMockJob();\n $job->args = $this->createDefaultArguments();\n $this->jobSuccessfullyEnsuresIndexes($job);\n\n $this->performJob($job);\n }", "protected function commitUpdateIndex() {}", "public functio...
[ "0.7329709", "0.6914656", "0.6716275", "0.65391535", "0.64643335", "0.6451751", "0.6418415", "0.6404797", "0.6367451", "0.6361012", "0.6303565", "0.62668496", "0.62599045", "0.61926776", "0.61322784", "0.6123085", "0.61051285", "0.6083867", "0.6068649", "0.60152316", "0.60102...
0.79790497
0
Delete calendar from CalendarsGrid
Удалить календарь из CalendarsGrid
public function calendarsGridDelete(){ // Get record $record = model('CalendarModel')->get(Input::postInt('id')); if(!$record){ output_json_encode(array( 'success' => false, 'message' => 'Record bestaat niet (meer)' )); } // Delete record model('CalendarModel')->delete($record['id']); outp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete() {\n\t\t\ttry {\n\t\t\t\tDB::beginWork('Deleting calendar @ ' . __CLASS__);\n\n\t\t\t\tparent::delete();\n\n\t\t\t\t$calendar_events = CalendarEvents::findByCalendar($this->object, STATE_TRASHED);\n\t\t\t\tif (is_foreachable($calendar_events)) {\n\t\t\t\t\tforeach ($calendar_events as $calendar_ev...
[ "0.7237205", "0.7003718", "0.673249", "0.6630412", "0.661975", "0.661975", "0.66135013", "0.64451325", "0.64200187", "0.63776016", "0.6228385", "0.6132179", "0.60730684", "0.60518086", "0.60363424", "0.60208064", "0.6018489", "0.59864014", "0.5973407", "0.59635925", "0.595785...
0.7789034
0
Save calendar details from CalendarsFormWindow
Сохранить детали календаря из CalendarsFormWindow
public function calendarsFormWindowSave(){ // Validate input $validator = library('Validator'); $validator->registerPost('id')->number(); $validator->registerPost('month')->required()->date(); $validator->registerPost('online')->number(); $validator->registerFile('file')->fileType('application/pdf'); if(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveCalendar($title, $color, $calendarId = NULL) {\n\n $calInfo = array(\n 'title' => $title,\n 'color' => substr($color, 0, 1) == '#' ? substr($color, 1) : $color,\n );\n\n $update = FALSE;\n if (!is_null($calendarId)) {\n $calInfo['calendar_id'] = $calendarId;\n $update =...
[ "0.645075", "0.62630063", "0.60733974", "0.6031356", "0.5811947", "0.57962567", "0.5769755", "0.5726817", "0.5725749", "0.57005763", "0.56272745", "0.5575811", "0.5554741", "0.5552255", "0.55511665", "0.5550441", "0.54934", "0.54918534", "0.54860747", "0.547901", "0.547901", ...
0.7375619
0
Get spaceseparated list of classes to be added to the form class
Получить список классов, разделенных пробелами, которые необходимо добавить в класс формы
function getFormClasses(){ return " user "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function extraClass()\n {\n $aClasses = array('field', 'form-control', parent::extraClass());\n $aClasses[] = $this->getFieldClassName();\n\n return implode(' ', $aClasses);\n }", "protected function getFormClasses($parameters)\n {\n $classes = [];\n\n if (\n ...
[ "0.72874683", "0.70465124", "0.6990947", "0.69322443", "0.69008523", "0.6887923", "0.6806093", "0.67606723", "0.67256176", "0.67044777", "0.6702368", "0.66958725", "0.66885495", "0.6663512", "0.66404593", "0.662699", "0.6609973", "0.6583803", "0.65737236", "0.6568306", "0.653...
0.7663836
0
Returns the app event for this event.
Возвращает событие приложения для этого события.
public function getAppEvent() { return $this->appEvent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getApp()\n {\n $this->ensureExact();\n return $this->app;\n }", "public function getEvent()\n {\n return $this->event;\n }", "public function getEvent()\n {\n return $this->event;\n }", "public function getEvent()\n {\n return $this->eve...
[ "0.7065368", "0.697586", "0.697586", "0.697586", "0.697586", "0.697586", "0.697586", "0.697586", "0.697586", "0.697586", "0.697586", "0.6896223", "0.6884865", "0.6835442", "0.673032", "0.673032", "0.673032", "0.673032", "0.673032", "0.6708661", "0.6693505", "0.6693366", "...
0.8755152
0
Get paginator for the current selection. Paginate method should be already called.
Получить пагинатор для текущего выбора. Метод paginate должен быть уже вызван.
public function paginator() { return $this->paginator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaginator()\n {\n return $this->call('paginator');\n }", "public function getPaginator () {\n return $this->paginator;\n }", "public function getPaginator()\n {\n return $this->paginator;\n }", "public function getPaginator()\n {\n return $this...
[ "0.77047014", "0.7548794", "0.7490026", "0.7490026", "0.7484127", "0.72254497", "0.72254497", "0.71468973", "0.7091693", "0.7061334", "0.70466477", "0.70466477", "0.67260987", "0.67260987", "0.67260987", "0.67260987", "0.67260987", "0.66085297", "0.660181", "0.6601755", "0.66...
0.7702893
1
Indication that object was paginated.
Указание на то, что объект был пагинирован.
public function isPaginated() { return !empty($this->paginator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_paged()\n {\n }", "public function paginated(): bool\n {\n return $this->paginate;\n }", "function results_are_paged()\n {\n }", "public function isPaged()\n\t{\n\t\treturn $this->withPaging;\n\t}", "public function hasPagination(): bool;", "protected function ...
[ "0.7284793", "0.70886016", "0.7032561", "0.6935953", "0.686017", "0.67942566", "0.67031884", "0.66436523", "0.65619475", "0.65048796", "0.6443378", "0.6424259", "0.63822937", "0.63822937", "0.6375883", "0.63592607", "0.62580657", "0.62580657", "0.62178844", "0.6155788", "0.60...
0.71195346
1
Apply pagination to current object. Will be applied only if internal paginator already constructed.
Применить пагинацию к текущему объекту. Будет применена только в том случае, если внутренний пагинатор уже построен.
protected function applyPagination() { if (empty($this->paginator)) { return $this; } return $this->paginator->paginate($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function applyPagination() {\n $this->countRows = count($this->values);\n\n if (!$this->pageRows) {\n return;\n }\n\n $this->pages = ceil($this->countRows / $this->pageRows);\n if ($this->page > $this->pages || $this->page < 1) {\n $this->page = 1;...
[ "0.73005015", "0.6975258", "0.6975258", "0.6680574", "0.63993156", "0.6336676", "0.63058853", "0.6280248", "0.62520164", "0.6187304", "0.6183992", "0.6171521", "0.61657834", "0.6103009", "0.60938114", "0.60743976", "0.60743976", "0.604447", "0.604399", "0.6023894", "0.6001677...
0.82521784
0
Check if you send raw data.
Проверьте, отправляете ли вы сырые данные.
protected function isRawData(): bool { return 1 === (int) ($this->controller->headers['x-raw-data'] ?? 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isRaw(): bool;", "public function isRaw(): bool\n\t{\n\t\treturn true;\n\t}", "public function hasRawDatas();", "function data() {\n\n if ($this->is_connected()\n AND $this->send_data('DATA')\n AND substr(trim($error = $this->get_data()), 0, 3) === '354') ...
[ "0.70491666", "0.69811314", "0.6874076", "0.663485", "0.64363086", "0.6400417", "0.63298064", "0.62203413", "0.61425406", "0.61297375", "0.61125636", "0.6096543", "0.60864174", "0.6056251", "0.5970877", "0.58993363", "0.58993363", "0.5890126", "0.58682746", "0.58571833", "0.5...
0.76551473
0
Get test value for a webform element.
Получить тестовое значение для элемента веб-формы.
public function getTestValue(WebformInterface $webform, $name, array $element, array $options = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue($formElement)\n {\n if( !isset( $_POST[$formElement] ) ) {\n return null;\n }\n\n return $_POST[$formElement];\n }", "public function getValue()\n\t{\n\t\t// redefine html & value\n\t\t$value = $this->value;\n\n\t\t// added to form\n\t\tif($this->isS...
[ "0.6563485", "0.6386876", "0.6181173", "0.61392695", "0.6073513", "0.6042063", "0.6036194", "0.60195786", "0.59547704", "0.58792573", "0.58497286", "0.5838449", "0.58138734", "0.58001024", "0.5796593", "0.5764889", "0.5722554", "0.5710036", "0.56938237", "0.56938237", "0.5693...
0.72658044
0
Clear existing message variables
Очистить существующие переменные сообщений
public function clearVariables() { $this->message_variables = []; $this->assignTemplate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearMessages() {\n $this->messages = array();\n }", "public static function clearMessage()\r\n {\r\n self::setMessage(null);\r\n }", "public function clearMessages() {\n\t\t\t$this->messages = [];\n\t\t}", "public function resetMessages()\n {\n $this->messages = ar...
[ "0.77420336", "0.7680396", "0.7545209", "0.7501912", "0.74997336", "0.7473374", "0.7388973", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "0.73697466", "...
0.8060194
0
Get the translation of a phrase or a word using its code.
Получите перевод фразы или слова с использованием его кода.
static public function translate($code) { return (isset($_ENV['lang'][$code])) ? $_ENV['lang'][$code] : $code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function trans($str, $code = LANGUAGE_CODE)\n {\n return $this->language->get($str, $code);\n }", "public function getTranslateByCode($code, $lang)\n {\n $sql = \"SELECT `t`.`value` \".\n \"FROM \".DB::TBL_WORDS.\" `w` \".\n \"INNER JOIN \".DB::TBL_TRA...
[ "0.7179566", "0.6907574", "0.6645235", "0.66408044", "0.66391605", "0.6518", "0.64890146", "0.6452511", "0.6404422", "0.6402969", "0.63455844", "0.62614274", "0.6254002", "0.62362236", "0.6176131", "0.6155744", "0.6135554", "0.61124074", "0.6089931", "0.6031316", "0.6021483",...
0.7128687
1
Returns an array of all form fields to add changelog support to a form.
Возвращает массив всех полей формы для добавления поддержки истории изменений в форму.
protected function getChangelogFormFields() { Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery-metadata/jquery.metadata.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js'); Requirements::javascript(THIRDPARTY_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function form_fields() {\n\t\treturn array();\n\t}", "public function getFormFields();", "public function getFormFields()\n {\n return $this->form_fields;\n }", "public function getFormFields()\n {\n return $this->formFields;\n }", "public function getFormFields(): array\n\...
[ "0.747895", "0.7470036", "0.72402996", "0.71540314", "0.71422845", "0.7124841", "0.712438", "0.7070278", "0.7064084", "0.70488554", "0.69544536", "0.68278193", "0.6811699", "0.6789714", "0.67896414", "0.67790365", "0.67544544", "0.6670298", "0.66472757", "0.6644289", "0.66359...
0.7860163
0
/ SELECT COUNT( assess_status ) FROM `view_house` WHERE `assess_status` = '1' AND `year` = '105' AND `school` = 'NFU'
SELECT COUNT( assess_status ) FROM `view_house` WHERE `assess_status` = '1' AND `year` = '105' AND `school` = 'NFU'
public function getStatistics($status){ $year = $_SESSION['years_assesstable'] ; $sitename = $_SESSION['sitename'] ; $this->db->select("assess_status"); if ($status == 0){ $this->db->where(Array("school"=> $sitename ,"year"=>$year,"asses...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_students_count($filter){\n\n \n $str_query=\"select count(*) as no_rec \n from view_sponsored_student_detail v \n left join scholarship_package sp on v.`sponsored_student_id`=sp.`sponsored_student_sponsored_student_id` \n where $filter \";\n \n ...
[ "0.6422154", "0.6302173", "0.6238389", "0.6168983", "0.615595", "0.61435676", "0.60602474", "0.6057242", "0.60399854", "0.6028442", "0.60251844", "0.60178995", "0.6000841", "0.59182537", "0.5908597", "0.5890122", "0.588174", "0.58789194", "0.58591473", "0.5856962", "0.5836640...
0.71415704
0
// get_list_product_ajax : get list products when search by textbox
// get_list_product_ajax : получение списка продуктов при поиске по полю ввода
public function get_list_product_ajax() { $strQuery = isset($_GET['query']) ? $_GET['query'] : FALSE; $arrResponse = array( 'query' => '', 'suggestions' => array(), 'data' => array(), ); if($strQuery) { $objFound = $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxProcessSearchProducts() {\n\n $array = $this->searchProducts(Tools::getValue('product_search'));\n $this->content = trim(json_encode($array));\n }", "public function ajaxProcessSearchProducts()\n {\n $context = Context::getContext();\n $id_lang = $context->la...
[ "0.7595903", "0.7469975", "0.7267011", "0.7253815", "0.72137004", "0.71609443", "0.7155305", "0.714695", "0.7131165", "0.7117685", "0.69470125", "0.6803618", "0.67543024", "0.6708489", "0.6690731", "0.66840416", "0.6678837", "0.66747177", "0.666151", "0.66340804", "0.6630745"...
0.84728575
0
// function::load_popup_list_mobile_user description: popup display list mobiles of one user
// функция::load_popup_list_mobile_user описание: отображение списка мобильных устройств одного пользователя
public function load_popup_list_mobile_user() { // pd($_REQUEST); $iUserId = $_REQUEST['userid']; $strIncidentId = !empty($_REQUEST['incident_id']) ? $_REQUEST['incident_id'] : null; $strAlertId = !empty($_REQUEST['alert_id']) ? $_REQUEST['alert_id'] : null; $strAlertMsg = !empty($_REQUEST['alert_msg'])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_popup_list_mobile_user_vng_staff_list() {\n \t$iUserId = $_REQUEST['userid'];\n\t\t$strIncidentId = !empty($_REQUEST['incident_id']) ? $_REQUEST['incident_id'] : null;\n\t\t$strAlertId = !empty($_REQUEST['alert_id']) ? $_REQUEST['alert_id'] : null;\n\t\t$strAlertMsg = !empty($_REQUEST['aler...
[ "0.7389057", "0.59958255", "0.597863", "0.59509087", "0.5880628", "0.5835865", "0.5531006", "0.53775644", "0.52668685", "0.5249553", "0.5211918", "0.52056134", "0.5205135", "0.5178242", "0.5148441", "0.51392317", "0.51273984", "0.51169246", "0.5114876", "0.5110442", "0.510410...
0.8253963
0
// function::load_popup_call_user_by_id description: popup execute action call user
// function::load_popup_call_user_by_id описание: попап выполнить действие вызвать пользователя
public function load_popup_call_user_by_id($iUserId, $strZbxHostName, $strIncidentId) { $iUserActionId = $_SESSION['userId']; $arrUser = $this->contact_model->getUserById($iUserId); //write log for user calling $strContent = 'Called to '.$arrUser['full_name']; $oCurrentDatetime = new DateTime(null, new Dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_popup_call_user($arrUser, $strIncidentId, $strAlertId, $strAlertMsg, $strTimeAlert, $strChangeId) {\n \t// pd(count($arrUser['mobile']));\n \t$iUserActionId = $_SESSION['userId'];\n\t\t//write log for user calling\n\t\t$strContent = 'Called to '.$arrUser['full_name'];\n\t\tif(!empty($str...
[ "0.7222576", "0.63039213", "0.6278553", "0.619835", "0.5971505", "0.5882891", "0.5878816", "0.5559325", "0.5541314", "0.53865814", "0.5320677", "0.53088343", "0.53068644", "0.5301212", "0.52984035", "0.5294703", "0.52903855", "0.5260099", "0.5259418", "0.52333885", "0.5185931...
0.7159825
1
// function::load_popup_call_user description: popup execute action call user
// function::load_popup_call_user описание: вызов действия попапа пользователю
public function load_popup_call_user($arrUser, $strIncidentId, $strAlertId, $strAlertMsg, $strTimeAlert, $strChangeId) { // pd(count($arrUser['mobile'])); $iUserActionId = $_SESSION['userId']; //write log for user calling $strContent = 'Called to '.$arrUser['full_name']; if(!empty($strAlertMsg)) { $s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_popup_call_staff_VNGHR($arrUser, $strIncidentId, $strAlertId, $strAlertMsg, $strTimeAlert, $strChangeId) {\n\t\t//write log for user calling\n\t\t$this->insert_call_action_history($arrUser['id'], $arrUser['fullname'], $strIncidentId, $strAlertId, $strAlertMsg, $strTimeAlert, $strChangeId, NOTI...
[ "0.6286082", "0.61060566", "0.6089301", "0.6027647", "0.5904545", "0.54589564", "0.53752124", "0.53517175", "0.533417", "0.5298489", "0.52074975", "0.51855475", "0.51475376", "0.51372045", "0.51038253", "0.50035274", "0.4930683", "0.48815554", "0.4863001", "0.48230842", "0.48...
0.7194398
0
// get_list_email_ajax : get list email when search by textbox
// get_list_email_ajax : получение списка email при поиске по полю ввода
public function get_list_email_ajax() { $strQuery = isset($_GET['query']) ? $_GET['query'] : FALSE; $arrResponse = array( 'query' => '', 'suggestions' => array(), 'data' => array(), ); if($strQuery) { $objFound = $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function list_email(){\n $mailboxes_list = $this->email_listing();\n $email_list = array();\n if(count($mailboxes_list)>0){\n foreach($mailboxes_list as $mailbox){\n array_push($email_list, $mailbox->email);\n }\n }\n //$email_list = get_option($this->option_name);\n $show...
[ "0.66073936", "0.6439824", "0.64282167", "0.64208156", "0.6396709", "0.6344597", "0.6315514", "0.6262703", "0.6243132", "0.6159879", "0.6140631", "0.6138967", "0.6131449", "0.6078444", "0.59522367", "0.59412056", "0.59217995", "0.59149694", "0.5911882", "0.5893602", "0.586741...
0.8242982
0
// load_popup_user_information : launch popup contained users data result when searching
// load_popup_user_information : выводит всплывающее окно с результатами поиска данных пользователей
public function load_popup_user_information() { $strUserDomain = $_REQUEST['user']; $strIncidentId = $strAlertId = $strAlertMsg = $strTimeAlert = $strIdentifier = $strChangeId = null; if(!empty($_REQUEST['incident_id'])) { $strIncidentId = $_REQUEST['incident_id']; } if(!empty($_REQUEST['alert_id'])) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadProfilePopup()\n {\n $this->error(false);\n\n $sM = $this->get('m');\n $sModule = $this->get('module');\n $sName = $this->get('name');\n $sMatchType = $this->get('match_type');\n $sMatchID = $this->...
[ "0.65871745", "0.62799877", "0.62113804", "0.5741333", "0.5700467", "0.5655772", "0.5591941", "0.55554247", "0.5515804", "0.55042523", "0.54829365", "0.5454467", "0.5453171", "0.5447385", "0.5444987", "0.5421256", "0.5419404", "0.5367143", "0.53412956", "0.5337654", "0.531577...
0.78488106
0
// function::load_popup_list_mobile_user_vng_staff_list description: popup display list mobiles of one user
// function::load_popup_list_mobile_user_vng_staff_list описание: отображение попапа со списком мобильных устройств одного пользователя
public function load_popup_list_mobile_user_vng_staff_list() { $iUserId = $_REQUEST['userid']; $strIncidentId = !empty($_REQUEST['incident_id']) ? $_REQUEST['incident_id'] : null; $strAlertId = !empty($_REQUEST['alert_id']) ? $_REQUEST['alert_id'] : null; $strAlertMsg = !empty($_REQUEST['alert_msg']) ? $_REQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_popup_list_mobile_user() {\n \t// pd($_REQUEST);\n \t$iUserId = $_REQUEST['userid'];\n\t\t$strIncidentId = !empty($_REQUEST['incident_id']) ? $_REQUEST['incident_id'] : null;\n\t\t$strAlertId = !empty($_REQUEST['alert_id']) ? $_REQUEST['alert_id'] : null;\n\t\t$strAlertMsg = !empty($_REQ...
[ "0.7575135", "0.7333101", "0.622374", "0.5857883", "0.57600456", "0.5568894", "0.5437219", "0.54301727", "0.54237646", "0.5413581", "0.54107255", "0.53901863", "0.53796375", "0.53324294", "0.5287662", "0.5280543", "0.52754915", "0.5275469", "0.5259568", "0.52591616", "0.52539...
0.84669435
0
// function::load_popup_call_staff_VNGHR description: popup execute action call user
// function::load_popup_call_staff_VNGHR описание: попап выполнения действия вызова пользователя
public function load_popup_call_staff_VNGHR($arrUser, $strIncidentId, $strAlertId, $strAlertMsg, $strTimeAlert, $strChangeId) { //write log for user calling $this->insert_call_action_history($arrUser['id'], $arrUser['fullname'], $strIncidentId, $strAlertId, $strAlertMsg, $strTimeAlert, $strChangeId, NOTIFY_ACTION_T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_popup_list_mobile_user_vng_staff_list() {\n \t$iUserId = $_REQUEST['userid'];\n\t\t$strIncidentId = !empty($_REQUEST['incident_id']) ? $_REQUEST['incident_id'] : null;\n\t\t$strAlertId = !empty($_REQUEST['alert_id']) ? $_REQUEST['alert_id'] : null;\n\t\t$strAlertMsg = !empty($_REQUEST['aler...
[ "0.61957216", "0.61486053", "0.6120051", "0.6027643", "0.5955577", "0.5190054", "0.50964916", "0.49379218", "0.493334", "0.47388077", "0.46594888", "0.46551737", "0.4594182", "0.45923123", "0.4554101", "0.45207456", "0.4502881", "0.44956747", "0.44872376", "0.4483614", "0.447...
0.71400404
0
/ Only allow POST requests.
Разрешить только запросы POST.
function only_post_requests() { if ($_SERVER['REQUEST_METHOD'] !== 'POST') { header('HTTP/1.1 403 Forbidden'); exit(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_post_request(){\n return $_SERVER['REQUEST_METHOD'] == 'POST';\n }", "function is_post_request(){\n return $_SERVER[\"REQUEST_METHOD\"] == \"POST\";\n }", "public function requirePostMethod()\n {\n // require POST requests\n if($_SERVER['REQUEST_METHOD'] && $_...
[ "0.80665916", "0.795455", "0.7869887", "0.7813274", "0.77910936", "0.76115704", "0.7607549", "0.75984937", "0.7594815", "0.7583378", "0.7551293", "0.75239867", "0.743296", "0.73993146", "0.7362356", "0.7328075", "0.7307894", "0.7294617", "0.7292972", "0.72845036", "0.7269567"...
0.8420306
0
Gets the Kinesis client.
Получает клиент Kinesis.
public function getKinesisClient($type) { if (!empty($this->clients[$type])) { return $this->clients[$type]; } $config = [ 'version' => $this->config['api_version'], 'region' => $this->config['region'], ]; $config['credentials'] = [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClient()\n {\n return $this->call('client');\n }", "protected function getClient() {\n if(!isset($this->_client)) {\n if(!Yii::app()->hasComponent($this->sentryComponent)) {\n Yii::log(\"'$this->sentryComponent' does not exist\", \n ...
[ "0.6696503", "0.6696288", "0.6669996", "0.666104", "0.66567403", "0.658225", "0.6480747", "0.64740276", "0.64737946", "0.64623976", "0.6459512", "0.6451112", "0.64481366", "0.64481366", "0.6436296", "0.6436296", "0.6436296", "0.64333093", "0.6420943", "0.641422", "0.63960826"...
0.7541577
0
/$this>datos>toggle_estado(); return "Cambio de estado realizado con éxito";
$this>datos>toggle_estado(); return "Изменение состояния успешно выполнено";
function grid_toggle_estado() { //return $_POST["accion_activa"]; if($_POST["accion_activa"]== 3) { $this->datos->toggle_estado(); return "Cambio de estado realizado con &eacute;xito"; } else { $this->datos->toggle_estado_actualizar_est...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function aktivasi(){\n return \"kartu telah aktif\";\n }", "function icono_activo($estado){\n if($estado==0){ return '<i class=\"fas fa-toggle-off text-danger\" title=\"Inactivo\"></i>'; }\n else{return '<i class=\"fas fa-toggle-on text-info\" title=\"Activo\"></i>';}\n}", "public fu...
[ "0.69799083", "0.6731099", "0.661886", "0.6486427", "0.6439503", "0.6435641", "0.63865453", "0.62568516", "0.62303615", "0.62239975", "0.62234586", "0.6207084", "0.61711687", "0.61708033", "0.615454", "0.6149173", "0.6126454", "0.6121989", "0.6110878", "0.6097893", "0.6083753...
0.81839
0
END printLastMiniCif FUNCTION HEADER / / Function to print one CIF from its id with its comment / / id of the cif to show /URL of the page where we call the method, used to redirecte after sending a comment
КОНЕЦ printLastMiniCif ФУНКЦИОНАЛЬНЫЙ ЗАГОЛОВОК // Функция для печати одного CIF по его идентификатору с его комментарием // Идентификатор CIF для отображения // URL страницы, с которой вызывается метод, используется для перенаправления после отправки комментария
public function printCifById($id, $URL) { /* * -------------------------------------------------------------- * Fonction à améliorer, créer une method pour afficher * les étoiles. Possible de réduire le code. SI LE TEMPS LE PERMET * ---------------------------------...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printLastMiniCif($URL)\r\n {\r\n //Req to get all the cifs\r\n $reqCif = $this->db->query('SELECT cifTitle,cifDescription,idCIF FROM t_cif ORDER BY idCif DESC LIMIT 5');\r\n\r\n //Write all the cifs\r\n while($cif = $reqCif->fetch())\r\n {\r\n $this-...
[ "0.6918587", "0.6373034", "0.55923116", "0.55398756", "0.55040264", "0.54107624", "0.53813976", "0.53779054", "0.5336471", "0.52939546", "0.5250689", "0.52495146", "0.5230155", "0.5218188", "0.5182718", "0.5182171", "0.5181696", "0.5178596", "0.5167777", "0.5166081", "0.51559...
0.7309745
0
Creates Admin menu entry.
Создает пункт меню Admin.
function create_admin_menu_entry () { if (@$_POST && isset($_POST['option_page']) && 'wdcp' == @$_POST['option_page']) { if (isset($_POST['wdcp_options'])) { $this->data->set_options($_POST['wdcp_options']); } $goback = add_query_arg('settings-updated', 'true', wp_get_referer()); wp_redirect($goback)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addMenuSettings(){\n new adminMenu();\n }", "public function run()\n {\n Menu::create([\n 'title' => 'Administrator Menu',\n 'type' => 'backend',\n 'description' => 'Administrator Default Main Menu'\n ]);\n }", "p...
[ "0.7180991", "0.7123836", "0.7096379", "0.7050208", "0.70362175", "0.7032939", "0.6991376", "0.69814295", "0.6970495", "0.69562817", "0.6942163", "0.6932069", "0.69302523", "0.69168544", "0.69086087", "0.69008064", "0.6889323", "0.68703175", "0.68603855", "0.6841583", "0.6835...
0.73919404
0
test that a test expects that an assertion failed
тест, который ожидает, что произойдет сбой утверждения
public function testAssertionFailed(): void { $this->expectAssertionFailed(); $this->assertTrue(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function shouldFailInTest();", "protected function assertFailure()\n {\n $this->setExpectedException('PHPUnit_Framework_AssertionFailedError');\n }", "public function testAssertionFailedWithBadMessage(): void\n {\n $this->expectAssertionFailed('this is no true');\n $this->a...
[ "0.7956532", "0.7783085", "0.776224", "0.7732346", "0.7712616", "0.7647668", "0.7635252", "0.74722725", "0.73293513", "0.7146509", "0.7034224", "0.7015353", "0.6957162", "0.6957162", "0.686121", "0.6852438", "0.6849406", "0.6828744", "0.67528296", "0.6732447", "0.67190224", ...
0.8414891
0
test that a test expects that an assertion failed, with the failure message
тест, который ожидает, что произойдет сбой утверждения с сообщением об ошибке
public function testAssertionFailedWithMessage(): void { $this->expectAssertionFailed('this is no true'); $this->assertTrue(false, 'this is no true'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAssertionFailedWithBadMessage(): void\n {\n $this->expectAssertionFailed('this is no true');\n $this->assertTrue(false);\n }", "public function testAssertionFailed(): void\n {\n $this->expectAssertionFailed();\n $this->assertTrue(false);\n }", "protec...
[ "0.8311704", "0.82445335", "0.7877279", "0.78222877", "0.7816951", "0.76236635", "0.76056445", "0.75128067", "0.7376212", "0.7093963", "0.7014907", "0.70128495", "0.6987118", "0.69219005", "0.6915418", "0.6899895", "0.68542373", "0.6830328", "0.67980134", "0.6794343", "0.6775...
0.83573437
0
test that a test expects that an assertion failed, which does not occur (the assertion is missing)
тест, который ожидает, что произойдет сбой утверждения, который не происходит (утверждение отсутствует)
public function testAssertionFailedMissingAssertion(): void { $this->expectAssertionFailed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAssertionFailed(): void\n {\n $this->expectAssertionFailed();\n $this->assertTrue(false);\n }", "public function testAssertionFailedMissingFailure(): void\n {\n $this->expectAssertionFailed();\n $this->assertTrue(true);\n }", "public function testAsse...
[ "0.8563314", "0.8141441", "0.7898481", "0.78749996", "0.7785555", "0.77144414", "0.7659244", "0.7644858", "0.73231804", "0.7202426", "0.7114179", "0.71026635", "0.7088035", "0.7017355", "0.70168024", "0.6985386", "0.6985386", "0.6927081", "0.6920055", "0.68824905", "0.6853003...
0.81451535
1
test that a test expects that an assertion failed, but it has another message
тест, который ожидает, что утверждение не прошло, но у него другое сообщение
public function testAssertionFailedWithBadMessage(): void { $this->expectAssertionFailed('this is no true'); $this->assertTrue(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAssertionFailedWithMessage(): void\n {\n $this->expectAssertionFailed('this is no true');\n $this->assertTrue(false, 'this is no true');\n }", "public function testAssertionFailed(): void\n {\n $this->expectAssertionFailed();\n $this->assertTrue(false);\n ...
[ "0.8435056", "0.7782759", "0.73334795", "0.7325337", "0.73132455", "0.7272055", "0.72609496", "0.72371644", "0.7224806", "0.70850825", "0.70588934", "0.7023829", "0.69817275", "0.6959208", "0.69285935", "0.6916064", "0.6883936", "0.68651", "0.6820587", "0.68088996", "0.680855...
0.83413786
1
Loades all modules by going through all folders that are placed directly in modules folder and loads load.php file in each. Hooks to flow_elated_after_options_map action
Загружает все модули, проходя по всем папкам, которые находятся напрямую в папке modules, и загружает файл load.php в каждой. Привязывается к действию flow_elated_after_options_map
function flow_elated_load_modules() { foreach(glob(ELATED_FRAMEWORK_ROOT_DIR.'/modules/*/load.php') as $module_load) { include_once $module_load; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aton_qodef_load_modules() {\n foreach(glob(QODE_FRAMEWORK_ROOT_DIR.'/modules/*/load.php') as $module_load) {\n include_once $module_load;\n }\n }", "private function load_modules() {\r\n\t\t/**\r\n\t\t * Filters the modules slugs list\r\n\t\t */\r\n\t\t$modules = apply_filter...
[ "0.7451278", "0.68853533", "0.6849821", "0.6844776", "0.6713825", "0.6624547", "0.6583829", "0.65774816", "0.65543497", "0.65480757", "0.6436774", "0.64074576", "0.6337761", "0.62961304", "0.6275687", "0.6263796", "0.6233801", "0.62314445", "0.6228013", "0.6207165", "0.618163...
0.760124
0
Loades all shortcodes by going through all folders that are placed directly in shortcodes folder and loads load.php file in each. Hooks to flow_elated_after_options_map action
Загружает все шорткоды, проходя через все папки, расположенные напрямую в папке shortcodes, и загружает файл load.php в каждой. Привязывается к действию flow_elated_after_options_map
function flow_elated_load_shortcodes() { foreach(glob(ELATED_FRAMEWORK_ROOT_DIR.'/modules/shortcodes/*/load.php') as $shortcode_load) { include_once $shortcode_load; } include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR.'/shortcodes/lib/shortcode-loader.inc'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aton_qodef_load_shortcodes() {\n foreach(glob(QODE_FRAMEWORK_ROOT_DIR.'/modules/shortcodes/*/load.php') as $shortcode_load) {\n include_once $shortcode_load;\n }\n\n do_action('aton_qodef_shortcode_loader');\n }", "function qodef_re_include_shortcodes_file() {\n\t\tfor...
[ "0.7271929", "0.6763691", "0.6754", "0.66796833", "0.66394913", "0.6430661", "0.6366046", "0.6267927", "0.62081766", "0.60144645", "0.58500665", "0.58319", "0.582226", "0.58074117", "0.5796336", "0.5784376", "0.5675476", "0.5624564", "0.5617605", "0.5534536", "0.55253726", ...
0.7326872
0
Loades all widgets by going through all folders that are placed directly in widgets folder and loads load.php file in each. Hooks to flow_elated_after_options_map action
Загружает все виджеты, проходя через все папки, которые находятся напрямую в папке widgets, и загружает файл load.php в каждой. Привязывается к действию flow_elated_after_options_map
function flow_elated_load_widgets() { foreach(glob(ELATED_FRAMEWORK_ROOT_DIR.'/modules/widgets/*/load.php') as $widget_load) { include_once $widget_load; } include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-loader.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aton_qodef_load_widgets() {\n\t\t\n foreach(glob(QODE_FRAMEWORK_ROOT_DIR.'/modules/widgets/*/load.php') as $widget_load) {\n include_once $widget_load;\n }\n\n include_once QODE_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-loader.php';\n }", "function bizz_load_widg...
[ "0.7622263", "0.67964506", "0.6604515", "0.65217775", "0.64398754", "0.6412477", "0.6410669", "0.63087267", "0.63083124", "0.62683433", "0.6252574", "0.61995727", "0.6197615", "0.61772716", "0.61285245", "0.6122483", "0.6113885", "0.6096605", "0.60724133", "0.6068006", "0.605...
0.7657539
0
Get all settings with cache support.
Получить все настройки с поддержкой кэша.
public static function allCached() { return Cache::tags(['settings'])->rememberForever('settings.all:' . locale(), function () { return self::all()->mapWithKeys(function ($setting) { return [$setting->key => $setting->value]; }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAllSettings()\n {\n return Cache::rememberForever('settings.all', function () {\n return self::all();\n });\n }", "public function hydrateSettingsCache()\n {\n // Get all settings\n $settings = setting()->all();\n // Cache it foreve...
[ "0.83407587", "0.78834736", "0.78409624", "0.77207595", "0.75558627", "0.7475883", "0.74726087", "0.7395053", "0.7313714", "0.7303871", "0.7180174", "0.7169363", "0.7162563", "0.7156257", "0.7155408", "0.7145997", "0.71397233", "0.7130503", "0.71075106", "0.70991564", "0.7055...
0.8287533
1
Set a translatable settings.
Установите переводимые настройки.
public static function setTranslatableSettings($settings = []) { foreach ($settings as $key => $value) { static::updateOrCreate(['key' => $key], [ 'is_translatable' => true, 'value' => $value, ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setTranslatableSettings($settings = [])\n {\n foreach ($settings as $key => $value) {\n static::updateOrCreate(['key' => $key], [\n 'is_translatable' => true,\n 'value' => $value,\n ]);\n }\n }", "public functi...
[ "0.7550523", "0.6898122", "0.66566694", "0.65755504", "0.64996827", "0.649314", "0.6465875", "0.6465875", "0.63470644", "0.63007957", "0.6273977", "0.623258", "0.6207181", "0.620041", "0.61765623", "0.60895663", "0.6081022", "0.60715836", "0.5990154", "0.5965973", "0.5965973"...
0.7477678
1
/ Konstruktor string $documentURI: URI des Dokuments string $stringValue: StringWert des Dokuments string $typeName: Type des Dokuments string $typedValue: Getypter Wert des Dokuments
Конструктор string $documentURI: URI документа string $stringValue: строковое значение документа string $typeName: тип документа string $typedValue: типизованное значение документа
function Document($documentURI = null, $stringValue = "", $typeName = "xdt:untyped", $typedValue = "") { /* Variablen initialisieren */ $this->documentURI = $documentURI; $this->stringValue =$stringValue; $this->typeName = $typeName; $this->typedValue = $typedValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_document_type( $value ) {\n\t\t$this->set_mapped_property( 'document_type', $value );\n\t}", "public function __construct($value = '', $string_type, $line = -1, $docComment = null) {\n if ($string_type === \"'\") \n $value = preg_replace_callback(\"#[^\\\\\\][']+?#Uis\", \n ...
[ "0.60800356", "0.5669771", "0.55671334", "0.5534795", "0.5486757", "0.54433304", "0.5420358", "0.5377083", "0.5375083", "0.5375083", "0.5305819", "0.5273849", "0.5263391", "0.5253162", "0.52162606", "0.51693255", "0.51471204", "0.5131992", "0.51317877", "0.51233965", "0.51223...
0.74505097
0
protected function _pull Pulls all settings data from the database
protected function _pull Извлекает все данные настроек из базы данных
protected function _pull( ) { $query = " SELECT * FROM `".self::SETTINGS_TABLE."` ORDER BY `sort` "; $results = $this->_mysql->fetch_array($query); if ( ! $results) { die('Settings were not pulled properly'); } foreach ((array) $results as $result) { $this->_settings[$result['setting']] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _pull( )\n\t{\n\t\tcall(__METHOD__);\n\n\t\tif ( ! $this->id) {\n\t\t\treturn;\n\t\t}\n\n\t\t$query = \"\n\t\t\tSELECT *\n\t\t\tFROM \".self::SETUP_TABLE.\"\n\t\t\tWHERE setup_id = '{$this->id}'\n\t\t\";\n\t\t$setup = Mysql::get_instance( )->fetch_assoc($query);\n\n\t\t$this->board = expandFEN($...
[ "0.69537425", "0.65979844", "0.6384289", "0.63575834", "0.6347856", "0.63179475", "0.62937665", "0.6244098", "0.61846805", "0.6115954", "0.61101824", "0.61085105", "0.60998756", "0.60449857", "0.6034018", "0.600415", "0.59823", "0.5982081", "0.597073", "0.597073", "0.597073",...
0.83147585
0
public function save Saves all settings data to the database if the settings are different
public function save Сохраняет все данные настроек в базу данных, если настройки отличаются
public function save( ) { call(__METHOD__); $query = " SELECT * FROM `".self::SETTINGS_TABLE."` ORDER BY `sort` "; $results = $this->_mysql->fetch_array($query); $data = []; $settings = $this->_settings; foreach ($results as $result) { if (isset($settings[$result['setting']])) { if ($re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveSettings()\n {\n static $booleans = array('site' => array('private', 'inviteonly', 'closed'));\n\n foreach ($booleans as $section => $parts) {\n foreach ($parts as $setting) {\n $values[$section][$setting] = ($this->boolean($setting)) ? 1 : 0;\n }\...
[ "0.7692789", "0.76728", "0.7669477", "0.7663767", "0.7663767", "0.76179737", "0.74388057", "0.73614156", "0.72357774", "0.72167516", "0.705608", "0.7038783", "0.6971959", "0.6965207", "0.6954552", "0.6929036", "0.687074", "0.68635446", "0.6851993", "0.684465", "0.68342364", ...
0.7829387
0
protected function put_settings Merges the submitted settings into the settings array
защищённая функция put_settings Объединяет переданные настройки в массив настроек
protected function put_settings($settings) { if (is_array($settings)) { $this->_settings = array_merge($this->_settings, $settings); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mergeSettings( $settings = array() );", "public static function import_settings() {\n\t\tcheck_ajax_referer( SEARCHWP_PREFIX . 'settings' );\n\n\t\t$settings = isset( $_REQUEST['settings'] ) ? json_decode( stripslashes( $_REQUEST['settings'] ), true ) : false;\n\n\t\tif ( ! is_null( $settings['en...
[ "0.6960649", "0.6933709", "0.68555903", "0.67833257", "0.67679137", "0.67455447", "0.67092484", "0.6662847", "0.6575437", "0.64918953", "0.6489591", "0.6463942", "0.64381206", "0.6424835", "0.6419955", "0.63965183", "0.6394232", "0.63867396", "0.63804895", "0.6372832", "0.637...
0.80018485
0
static public function get_instance Returns the singleton instance of the Settings Object as a reference
static public function get_instance Возвращает экземпляр объекта Settings в виде ссылки
static public function get_instance( ) { if (is_null(self::$_instance) && self::test( )) { self::$_instance = new Settings( ); } return self::$_instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function get_instance()\n \t{\n\t\tif( self::$_instance === NULL ) {\n\t\t\t// get the settings from the database\n\t\t\tself::$_instance = get_option( 'wgobd_settings' );\n\n\t\t\t// if there are no settings in the database\n\t\t\t// save default values for the settings\n\t\t\tif( ! self::$_instance ) {\n\...
[ "0.8520589", "0.82903796", "0.8280836", "0.80722505", "0.8035968", "0.80247766", "0.80247766", "0.8006231", "0.79958284", "0.7980812", "0.7924295", "0.7920061", "0.7920061", "0.7918104", "0.7914695", "0.7905592", "0.7891555", "0.788849", "0.788849", "0.78861666", "0.7885806",...
0.90437275
0