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
Return the freebusy server.
Верните сервер freebusy.
public function getFreebusyServer() { return $this->_session->getFreebusyServer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function Get_Server() {\n\t\treturn $this->task->getServer();\n\t\t//return $GLOBALS['server'];\n\t}", "private function get_server()\n\t{\n\t\treturn $this->m_server;\n\t}", "public function getFreeBusy()\n {\n $result = new stdClass;\n if ($this->vars->email) {\n try {\n ...
[ "0.62881863", "0.627518", "0.6209033", "0.61120355", "0.60667396", "0.6043975", "0.6041987", "0.582743", "0.5711433", "0.5688209", "0.5674528", "0.5674528", "0.5654738", "0.5632281", "0.563113", "0.5577124", "0.5565382", "0.5553608", "0.55528295", "0.55239826", "0.55239826", ...
0.88430095
0
Import the session data from an array.
Импортируйте данные сессии из массива.
public function import(array $session_data) { $this->_session->import($session_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function from_array(/*array*/ $data) /*void*/\n {\n foreach($data as $key => $val)\n {\n $_SESSION[self::KEY][$key] = $val;\n }\n }", "protected abstract function loadSessionData();", "public function importFrom(array $data);", "protected function session_set($arr...
[ "0.70474803", "0.62924147", "0.62362784", "0.61328906", "0.6032199", "0.60261875", "0.5869413", "0.5808842", "0.57729256", "0.5666391", "0.5646963", "0.5469053", "0.5423319", "0.5394335", "0.53810304", "0.53773654", "0.5368319", "0.5349525", "0.534683", "0.5336638", "0.532415...
0.7734848
0
Setter method for pairKey
Метод установки для парного ключа
public function setPairKey($pairKey) { $this->pairKey = $pairKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setKey($value) {\r\n $this->key = $value;\r\n }", "public function createNewKeyPair() {}", "public function createNewKeyPair() {}", "abstract public function createNewKeyPair() ;", "public function setKeyName($key);", "function SetKey( $i ) { $this->_key = $i; $this->SetValue('...
[ "0.6482042", "0.6336776", "0.6334582", "0.6300198", "0.60749424", "0.6062346", "0.60247993", "0.5946875", "0.5898695", "0.5881636", "0.5876714", "0.5847243", "0.5823735", "0.57673275", "0.57555956", "0.575378", "0.5752819", "0.5740288", "0.5740288", "0.5737828", "0.5737828", ...
0.7660684
0
Getter method for pairKey
Метод получения для pairKey
public function getPairKey() { return $this->pairKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getKey();", "abstract public function getKey();", "public function getKeyValue() {}", "public function getKey() {}", "public function getKey() {}", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public ...
[ "0.7198057", "0.7198057", "0.71118295", "0.70971686", "0.70971686", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", "0.7051432", ...
0.8298951
0
Return $word in plural form.
Верните $word в множественном числе.
public function pluralize($word);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function pluralize($word)\n\t{\n\t\treturn $word[strlen($word)-1] == \"s\" ? $word : $word.\"s\";\n\t}", "public static function pluralize( $word )\n {\n // special cases\n if( 'access' == $word ) return $word;\n \n if( 'y' == substr( $word, -1 ) )\n { // likely, any word ending in ...
[ "0.8520422", "0.82383126", "0.82207495", "0.8121244", "0.80694824", "0.77744085", "0.76048833", "0.76048833", "0.75968826", "0.7475084", "0.7454992", "0.7448753", "0.7233726", "0.7216899", "0.7210019", "0.7154876", "0.7106664", "0.7064146", "0.7020741", "0.69655085", "0.69515...
0.8776715
0
Return $word in singular form.
Верните $word в единственном числе.
public function singularize($word);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function singularize($word)\n { \n static $rules = NULL;\n if ($rules == NULL)\n $rules = $this->getSingularRules();\n return $this->transform($word, $rules);\n }", "public function singularize($word)\n {\n return \\Doctrine\\Common\\Inflector\\Inflector::singularize($word);\n ...
[ "0.8601173", "0.8359876", "0.814224", "0.80064267", "0.74464303", "0.7334848", "0.72201043", "0.7032598", "0.69603", "0.6958903", "0.68590814", "0.67128503", "0.66770154", "0.6671671", "0.6611235", "0.6602578", "0.6602578", "0.6585511", "0.65845907", "0.65366906", "0.65366906...
0.88660747
0
Returns the given underscored_word_group as a Human Readable Word Group. (Underscores are replaced by spaces and capitalized following words.)
Возвращает заданный подчеркнутый_слово_группу в виде читаемой человеком группы слов. (Подчеркивания заменяются на пробелы, а следующие слова становятся заглавными.)
public function humanize($lowerCaseAndUnderscoredWord);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function humanize($lower_case_and_underscored_word) {\n return ucwords(str_replace(\"_\",\" \",$lower_case_and_underscored_word));\n }", "public static function humanize($word, $ucwords = false)\n {\n $ucwords = $ucwords ? 'ucwords' : 'ucfirst';\n return $ucwords(str_repl...
[ "0.69900936", "0.66332304", "0.6295941", "0.60372114", "0.58670646", "0.5838542", "0.5826802", "0.5823334", "0.577435", "0.57209074", "0.5667585", "0.5650745", "0.56298757", "0.5629118", "0.5620067", "0.5599377", "0.5591152", "0.5545615", "0.55165625", "0.55138016", "0.549647...
0.7142337
0
functionadd author to load the view of add author
функция добавления автора для загрузки представления добавления автора
public function addAuthor() { $this->load->view('add_author'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_author_resault()\n\t{\n\t\t$this->add_author_model->addAuthor();\n\t\t$this->load->view('add_author_resault');\n\t}", "public function author()\n {\n $this->renderView('author.twig',['articleList' => $this->articleList]);\n }", "public function show()\n {\n return vie...
[ "0.820474", "0.7744466", "0.7671247", "0.7461834", "0.7396992", "0.7279519", "0.71492213", "0.7128376", "0.71254164", "0.70768905", "0.6926914", "0.68494225", "0.68381673", "0.6824228", "0.6735143", "0.67103267", "0.66787016", "0.6671385", "0.6671385", "0.6671385", "0.6657507...
0.8462237
0
loading the view of add genre
загрузка представления добавления жанра
public function add_genre() { $this->load->view('add_genre'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_genre_resault()\n\t{\n\t\t$this->add_genre_model->addgenre();\n\t\t$this->load->view('add_genre_resault');\n\t}", "public function create()\n {\n return view('genre.genre_create');\n }", "public function create()\n {\n return view('admin.genre.create');\n }", "pu...
[ "0.81723887", "0.70907927", "0.70684916", "0.7018223", "0.69296783", "0.6587534", "0.6558097", "0.64407015", "0.64368224", "0.6414588", "0.63849753", "0.63811255", "0.637712", "0.63285995", "0.6326143", "0.629019", "0.62672484", "0.6223414", "0.6174343", "0.6158098", "0.61356...
0.84127885
0
loading the moadel and the view of add genre result
загрузка модели и просмотр результата добавления жанра
public function add_genre_resault() { $this->add_genre_model->addgenre(); $this->load->view('add_genre_resault'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_genre()\n\t{\n\t\t$this->load->view('add_genre');\n\t}", "public function add()\r\n {\r\n $genreModel = new GenreModel();\r\n $genreList = $genreModel->read();\r\n $publisherModel = new PublisherModel();\r\n $publisherList = $publisherModel->read();\r\n\r\n ...
[ "0.7404547", "0.6817273", "0.6187923", "0.61012644", "0.6035905", "0.5993234", "0.5984862", "0.58716166", "0.5852429", "0.58313966", "0.5771213", "0.575113", "0.57449424", "0.57273215", "0.5721005", "0.5709859", "0.5679842", "0.5640678", "0.56278706", "0.5626649", "0.5624931"...
0.7482217
0
loading the model and view of add book result
загрузка модели и представления результата добавления книги
public function add_book_resault() { $this->add_book_model->addBook(); $this->load->view('add_book_resault'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_book()\n\t{\n\t\t$data = array();\n\t\t$authors = $this->add_book_model->getAuthors();\n\t\t$genres = $this->add_book_model->getGenres();\n\t\t$types = $this->add_book_model->getTypes();\n\t\t$data['authorsList'] = $authors;\n\t\t$data['genresList'] = $genres;\n\t\t$data['typesList'] = $types;\...
[ "0.7453213", "0.6886185", "0.6478804", "0.64101565", "0.63959116", "0.63890547", "0.63887453", "0.63596606", "0.63267785", "0.6285249", "0.6278246", "0.62443703", "0.62413156", "0.62236124", "0.6205592", "0.6182767", "0.61786544", "0.6125108", "0.6125108", "0.611311", "0.6108...
0.74163884
1
loading the view and the model of edit book result
загрузка представления и модели результата редактирования книги
public function edit_book_resault() { $this->edit_book_model->editBook(); $this->load->view('edit_book_resault'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editBook()\n\t{\n\t\t$data = array();\n\t\t$ISBN = $this->input->post('bookISBN');\n\t\t$data['authorsList'] = $this->add_book_model->getAuthors();\n\t\t$data['genresList'] = $this->add_book_model->getGenres();\n\t\t$data['typesList'] = $this->add_book_model->getTypes();\n\t\t$data['bookAuthor'] = ...
[ "0.7230249", "0.7018042", "0.67291224", "0.6724525", "0.6713704", "0.6713704", "0.6713704", "0.6713704", "0.6713704", "0.6713704", "0.6713704", "0.6713704", "0.6713704", "0.66996664", "0.6609929", "0.6585362", "0.6502124", "0.6501296", "0.65004116", "0.6436648", "0.63116443",...
0.7693302
0
in this function it gets the data and load the view of edit book
в этой функции получается данные и загружается вид редактирования книги
public function editBook() { $data = array(); $ISBN = $this->input->post('bookISBN'); $data['authorsList'] = $this->add_book_model->getAuthors(); $data['genresList'] = $this->add_book_model->getGenres(); $data['typesList'] = $this->add_book_model->getTypes(); $data['bookAuthor'] = $this->edit_book_model->g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit_book_resault()\n\t{\n\t\t$this->edit_book_model->editBook();\n\t\t$this->load->view('edit_book_resault');\n\t}", "public function edit()\n {\n return view(\"web_admin.books.edit\");\n }", "public function edit()\n {\n $user_id = Auth::user()->id;\n $data = INP...
[ "0.71323884", "0.67739147", "0.67564225", "0.65892285", "0.655315", "0.6528914", "0.6519636", "0.6519636", "0.6519636", "0.6519636", "0.6519636", "0.6519636", "0.6519636", "0.6519636", "0.6519636", "0.6469797", "0.6435183", "0.64113414", "0.63559586", "0.6339652", "0.63027424...
0.7039829
1
loading the view of add book and getting data from it
загрузка представления добавления книги и получение данных из него
public function add_book() { $data = array(); $authors = $this->add_book_model->getAuthors(); $genres = $this->add_book_model->getGenres(); $types = $this->add_book_model->getTypes(); $data['authorsList'] = $authors; $data['genresList'] = $genres; $data['typesList'] = $types; $this->load->view('add_boo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_book_resault()\n\t{\n\t\t$this->add_book_model->addBook();\n\t\t$this->load->view('add_book_resault');\n\t}", "public function addbook()\n {\n $genres = Genre::get();\n return view('books.addbook', [\n 'genres' => $genres,\n ]);\n }", "public function a...
[ "0.73251903", "0.69771695", "0.6761929", "0.6727124", "0.6660653", "0.6654489", "0.66218853", "0.655893", "0.65501076", "0.65501076", "0.6496833", "0.6483637", "0.6478043", "0.64551425", "0.63759434", "0.63643426", "0.633123", "0.6324493", "0.63055545", "0.63027906", "0.62867...
0.777912
0
/ Write a factorial function that takes a positive integer, N as a parameter and prints the result of N!(N factorial). input format: A single integer, (the argument to pass to factorial).
Напишите функцию факториала, которая принимает положительное целое число N в качестве параметра и выводит результат N! (факториал N). Формат ввода: одно целое число, (аргумент, который нужно передать факториалу).
function factorial($n) { if ( $n > 1 ) { return $n * factorial($n - 1 ) ; } else { return 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function factorial($n) \r\n{ \r\n $fact = 1; \r\n while($n != 0) \r\n { \r\n $fact = $fact * $n; \r\n $n--; \r\n } \r\n \r\n return $fact; \r\n}", "function factorial($number=5, $print=false) {\t\n\t$factor = abs($number);\n\t$ret = 0;\n\t\n\twhile($factor != 1) {\n\t\tif($ret =...
[ "0.80590206", "0.79342586", "0.7707185", "0.77048624", "0.7682784", "0.7597825", "0.7571241", "0.75415665", "0.7523419", "0.7456353", "0.74278855", "0.739532", "0.73808527", "0.7346075", "0.72085214", "0.7094395", "0.6969232", "0.6804576", "0.67516756", "0.6700523", "0.658745...
0.80399567
1
Ensure we can get the sha1 attribute from our model [Hash].
Убедитесь, что мы можем получить атрибут sha1 из нашего модели [Hash].
public function testGetSha1(): void { $model = Hash::load([ "sha1" => "sha1", ], $this->container); $this->assertSame("sha1", $model->getSha1()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSha1()\n {\n if (array_key_exists(\"sha1\", $this->_propDict)) {\n return $this->_propDict[\"sha1\"];\n } else {\n return null;\n }\n }", "public function getSha1() {}", "public function getSha1() {}", "public function getSha1()\n {\n ...
[ "0.7250995", "0.7019234", "0.7018143", "0.6868334", "0.6753277", "0.66950494", "0.6678944", "0.6425878", "0.6260761", "0.6169835", "0.6130185", "0.609424", "0.6084998", "0.60648537", "0.6021175", "0.60089386", "0.60089386", "0.60089386", "0.60089386", "0.5974173", "0.58615094...
0.72415084
1
Ensure we can get the sha256 attribute from our model [Hash].
Убедитесь, что мы можем получить атрибут sha256 из нашего модели [Hash].
public function testGetSha256(): void { $model = Hash::load([ "sha256" => "sha256", ], $this->container); $this->assertSame("sha256", $model->getSha256()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSha256()\n {\n if (array_key_exists(\"sha256\", $this->_propDict)) {\n return $this->_propDict[\"sha256\"];\n } else {\n return null;\n }\n }", "public function getHash() {}", "final public function getHash() {}", "public function afterValid...
[ "0.6970593", "0.6527766", "0.65114564", "0.6255825", "0.623338", "0.623338", "0.623338", "0.623338", "0.61896706", "0.5949322", "0.59262705", "0.5871593", "0.5855968", "0.5855968", "0.5855968", "0.5855968", "0.5855968", "0.5855968", "0.58527154", "0.5774572", "0.5737375", "...
0.7055426
0
Converts a DateTime to a RFC3339 string in UTC
Конвертирует DateTime в строку RFC3339 в UTC
public static function dateTimeToRFC3339String($dt) { return str_replace("+00:00", "Z", $dt->format("Y-m-d\\TH:i:s.000P")); // Backport from PHP7 - https://github.com/php/php-src/blob/master/ext/date/php_date.c#L824 // DATE_FORMAT_RFC3339_EXTENDED - Format "v" not existing PHP5 -> .000 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function convertToUtc(string $timestamp): string\n {\n $datetime = new \\DateTime($timestamp, new \\DateTimeZone('Asia/Kuala_Lumpur'));\n $datetime->setTimeZone(new \\DateTimeZone('UTC'));\n\n return $datetime->format('Y-m-d H:i:s');\n }", "function convertTimeToUTCzone($str, $...
[ "0.61701703", "0.60335606", "0.597711", "0.5901869", "0.5895172", "0.58903813", "0.58049875", "0.5789502", "0.5787269", "0.5759312", "0.57070595", "0.5644446", "0.5632355", "0.56157315", "0.56009847", "0.56004", "0.55998784", "0.5551591", "0.5546338", "0.5538313", "0.5537893"...
0.7316874
0
Call Constructor To Get Service Manager Object
Вызовите Конструктор Для Получения Объекта Управителя Услуг
public function __construct($serviceManager) { // Set Service Manaer Object $this->serviceManager = $serviceManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this->Service = new ContactsService();\n $this->GroupService = new GroupService();\n }", "public function __construct()\r\n\t{\r\n\t\t// Services dont have constructors Apparently\r\n\t\t//parent::__construct();\r\n\t\t//\r\n\r\n\t}", "function __constru...
[ "0.68940294", "0.6862049", "0.6823355", "0.66526926", "0.6570083", "0.6540774", "0.6531868", "0.65157884", "0.64722145", "0.6462027", "0.6443514", "0.6390992", "0.6324763", "0.63098675", "0.6283023", "0.62771624", "0.6274473", "0.6255679", "0.62387925", "0.62331825", "0.62261...
0.74532497
0
Display a listing of the resource. GET /financial_categories
Показать список ресурса. GET /financial_categories
public function index() { $input = Request::all(); $categories = $this->repo->getCategories($input); return ApiResponse::success($this->response->collection($categories, new FinancialCategoriesTransformer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n { \n $categories = $this->categoryService->getAll();\n \n return view('backend.category.list',compact('categories')); \n }", "public function categoryList()\n {\n return view(\"Category::list\");\n }", "public function list() {\n $list...
[ "0.67078406", "0.6678282", "0.66412836", "0.66119486", "0.66052854", "0.6600064", "0.6543509", "0.6535608", "0.6530594", "0.6527541", "0.651532", "0.6493316", "0.64915615", "0.648659", "0.6479841", "0.6473041", "0.6463951", "0.64610785", "0.64610785", "0.64610785", "0.6458695...
0.74841523
0
Store a newly created resource in storage. POST /financial_categories
Хранение только что созданного ресурса в хранилище. POST /financial_categories
public function store() { $input = Request::onlyLegacy('name', 'default'); $validator = Validator::make($input, FinancialCategory::getRules()); if ($validator->fails()) { return ApiResponse::validation($validator); } try { $input['default'] = ine($inpu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(Request $request)\n {\n //\n $request['StorageType_Id'] = $request->get('StorageTypes');\n unset($request['StorageTypes']);\n //echo '<pre>';\n //print_r($request->all());\n //echo '</pre>'; exit;\n StorageCategories::create($request->all())...
[ "0.6889409", "0.67769784", "0.6753517", "0.67229563", "0.66954076", "0.66860044", "0.6671927", "0.66685617", "0.6667864", "0.66611737", "0.66459274", "0.6629974", "0.6628755", "0.66218185", "0.66179127", "0.6585795", "0.6582435", "0.6579381", "0.6564981", "0.65639865", "0.656...
0.7515322
0
Ask user for the size of the coffee shop.
Запросите у пользователя размер кофейни.
public function getShopSize() { $size = $this->ask('What is the size of the shop? [width:int height:int]'); if (preg_match('/^[0-9]+ [0-9]+$/', $size)) { return $size; } else { $this->throwErrors('you have to enter the shop size in the format :int :int!'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function coffeeSize()\n{\nif(isset ($_POST['Submit']))\n{\n\t\t//if a radio button has been selected\n\t\tif (isset($_POST['size'])){\n\t\t\techo $_POST['size'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"Your answer will not be displayed\";\n\t\t\t}\n\t}\n}", "function calc_size()\n\t{\n\t}", "function vie...
[ "0.6445814", "0.59024364", "0.5614817", "0.549942", "0.54964775", "0.5459021", "0.5442154", "0.5412367", "0.5399397", "0.5358608", "0.5347404", "0.53462505", "0.5323667", "0.5323064", "0.5322076", "0.5322076", "0.5322076", "0.5322076", "0.53220606", "0.53158593", "0.52907896"...
0.73269874
0
/ ============================================================= Load all certs for a given identifier
/ ============================================================= Загрузить все сертификаты для заданного идентификатора
public function loadPersonCertsForIdentifier($identifier) { $repo = $this->_em->getRepository($this->getPersonCertClassName()); return $repo->findAll(array('identifier' => $identifier)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function loadCACertificates(): void\n {\n if (!empty(self::$caCertificates)) {\n // the certificates have already been loaded\n return;\n }\n\n $caCertificates = [];\n\n // Load Trusted CA's, first the .cer which are DER certificates (binary)\n ...
[ "0.68057793", "0.56662726", "0.54932714", "0.5480219", "0.53765804", "0.5343494", "0.5295278", "0.52372926", "0.52328634", "0.5231701", "0.5156399", "0.5094091", "0.50385463", "0.50378686", "0.502214", "0.496002", "0.49352327", "0.49342638", "0.4882692", "0.4870819", "0.48533...
0.71720403
0
/ ============================================================== Eiether creates a new person or loads an existing one
/ ============================================================== Eiether создает нового человека или загружает существующего
public function createOrLoadPerson($params) { $personLeague = null; $person = null; // Have to have a league identifier if (isset($params['aysoVolunteerId'])) { // AYSOV12345678 $identifier = $params['aysoVolunteerId']; $pers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addPerson(){\n\t\t \n\t\t $this->getMakeMetadata();\n\t\t $changesMade = false;\n\t\t $requestParams = $this->requestParams;\n\t\t if(isset($requestParams[\"uuid\"]) && isset($requestParams[\"role\"])){\n\t\t\t\t\n\t\t\t\t$personUUID = trim($requestParams[\"uuid\"]);\n\t\t\t\t$uri = self::personBaseU...
[ "0.70317394", "0.66959244", "0.65592927", "0.6317556", "0.6272475", "0.6265822", "0.6210575", "0.6170006", "0.6128799", "0.61251974", "0.60046643", "0.5997559", "0.59394294", "0.5904211", "0.59017897", "0.58776385", "0.58703136", "0.586925", "0.586657", "0.5815235", "0.579664...
0.713189
0
Get a collector by name.
Получить сборщик по имени.
public function getCollector(string $name) { if ($this->enabled) { return $this->debugbar[$name]; } return $this->dummyCollector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCollector($name)\n {\n if ($this->debugbar && $this->debugbar->hasCollector($name)) {\n return $this->debugbar->getCollector($name);\n }\n\n return null;\n }", "public function getByName($name)\n {\n return $this->collection->where('name', $name)...
[ "0.7446773", "0.6341603", "0.618847", "0.61004746", "0.6057169", "0.60221374", "0.59786725", "0.5919978", "0.58458143", "0.57153565", "0.5715276", "0.5709378", "0.5691128", "0.5599041", "0.54944706", "0.54790443", "0.5448542", "0.5421035", "0.5421035", "0.54112643", "0.538492...
0.7634845
0
Return all teaser content templates as array
Вернуть все шаблоны контента teasers в виде массива
public function getTeaserContentTemplates(): array { return Backend::getTemplateGroup('linkteaser_content_'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTeaserTemplate(): array\n {\n return Controller::getTemplateGroup('teasers_');\n }", "function templates()\n {\n return [];\n }", "public function getTemplates (){\n $dir = conf::pathHtdocs() . \"/templates\";\n $templates = file::getFileList($dir, arr...
[ "0.75979865", "0.73062825", "0.6651", "0.66402715", "0.66394323", "0.66038525", "0.6561062", "0.65042037", "0.6492308", "0.64407283", "0.64401793", "0.63885146", "0.6354753", "0.63544446", "0.6348523", "0.63427806", "0.6313959", "0.6313959", "0.6292139", "0.6286212", "0.62807...
0.82027596
0
Get rid of 'Uncategorised' category and replace with 'Blog' as default
Удалите категорию 'Uncategorised' и замените её на 'Blog' по умолчанию
function sensible_category() { wp_update_term(1, 'category', array( 'name' => 'News', 'slug' => 'news', 'description' => 'News' )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gravit_categorized_blog() {\r\r\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\r\r\n\t\t// Create an array of all the categories that are attached to posts.\r\r\n\t\t$all_the_cool_cats = get_categories( array(\r\r\n\t\t\t'hide_empty' => 1,\r\r\n\t\t) );\r\r\n\r\r\n\t\t...
[ "0.6426769", "0.6405496", "0.63685673", "0.6320921", "0.6306058", "0.62783873", "0.62606823", "0.6169434", "0.61490583", "0.61449736", "0.61323917", "0.611136", "0.6080154", "0.60699254", "0.6065129", "0.606421", "0.6057871", "0.60530955", "0.60527855", "0.60482174", "0.60317...
0.7135418
0
Create a 'Home' page if it doesn't exist, and 'run once' a whole bunch of settings
Создайте страницу 'Home', если она не существует, и выполните один раз настройки
function create_home_page() { if(get_page_by_title('Home')) { } else { global $wpdb; // First Page $first_page = get_site_option( 'first_page'); $first_post_guid = get_option('home') . '/?page_id=1'; $wpdb->insert( $wpdb->posts, array( 'post_content' => '', 'post_ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Home()\n {\n $this->template->set('global_setting', $this->global_setting);\n $this->template->set('page', 'home');\n $this->template->set_theme('default_theme');\n $this->template->set_layout('frontend')\n ->title($this->global_setting['site_title'] . ...
[ "0.7133009", "0.70048374", "0.67309535", "0.6700195", "0.6669351", "0.6624313", "0.66156644", "0.6565937", "0.65327203", "0.6449744", "0.64467186", "0.6425754", "0.63844216", "0.6364035", "0.6331732", "0.63312024", "0.63202363", "0.6307865", "0.62927574", "0.6275253", "0.6259...
0.75307983
0
Setup Theme to use a static front page
Настройка темы для использования статической главной страницы
function set_front_page() { $about = get_page_by_title( 'Home' ); update_option( 'page_on_front', $about->ID ); update_option( 'show_on_front', 'page' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setup_theme()\n {\n }", "public function Home()\n {\n $this->template->set('global_setting', $this->global_setting);\n $this->template->set('page', 'home');\n $this->template->set_theme('default_theme');\n $this->template->set_layout('frontend')\n ...
[ "0.7035188", "0.6858233", "0.6803855", "0.6749122", "0.67055166", "0.6631101", "0.66120493", "0.6596751", "0.65673685", "0.6557913", "0.6501965", "0.649025", "0.6450095", "0.6434242", "0.6394806", "0.6390522", "0.63842344", "0.6379715", "0.6350359", "0.63470465", "0.6343558",...
0.7036992
0
Find and delete the WP default 'Sample Page'
Найдите и удалите WP по умолчанию 'Sample Page'
function delete_sample_page() { $default_page = get_page_by_title( 'Sample Page' ); if ($default_page) { wp_delete_post( $default_page->ID ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_hello_world() {\n $post = get_page_by_path('hello-world',OBJECT,'post');\n if ($post){\n wp_delete_post($post->ID,true);\n }\n }", "public function deleteContentAndCopyLivePage() {}", "function run_at_deactivation(){\n $my_page = get_page_by_title( 'Angular page', OBJECT, 'page'...
[ "0.7497721", "0.6620963", "0.6290378", "0.6288423", "0.6250656", "0.60554695", "0.60059685", "0.5978876", "0.58690345", "0.58576345", "0.5857168", "0.58076173", "0.58016366", "0.57677907", "0.57639235", "0.57262605", "0.5711098", "0.5705164", "0.5680034", "0.5666567", "0.5640...
0.85780364
0
Find and delete the WP default post 'Hello world!'
Найдите и удалите по умолчанию WP пост 'Hello world!'
function delete_hello_world() { $post = get_page_by_path('hello-world',OBJECT,'post'); if ($post){ wp_delete_post($post->ID,true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function colormag_delete_post_import() {\n\t$page = get_page_by_title( 'Hello world!', OBJECT, 'post' );\n\n\tif ( is_object( $page ) && $page->ID ) {\n\t\twp_delete_post( $page->ID, true );\n\t}\n}", "function wp_idolondemand_delete_post()\n{\n}", "function hello_pro_remove_default_blog_meta( $content, $impor...
[ "0.72906995", "0.72514135", "0.7010427", "0.6964475", "0.6956808", "0.67201114", "0.66264117", "0.6473356", "0.64147913", "0.64030397", "0.63964516", "0.6394125", "0.6301597", "0.62511235", "0.6217427", "0.62150246", "0.6155675", "0.6146969", "0.6136728", "0.6096446", "0.6055...
0.7831921
0
/ en este metodo se genera el reporte de las ganancias de los servicios del hotel en pdf
В этом методе генерируется отчет о доходах от услуг отеля в формате PDF
public function reporteServiciosPDF(){ $datos=TablaSimulacion::all(); $serv = Servicio::all(); $servicios=[]; $gananciaServicio=0; $indice = 0; foreach ($serv as $ser) { $count = 0; foreach ($datos as $dato) { if (strpos($dato->serv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generar()\n {\n $Pilones = \\DB::table('pilons')\n ->select(['id','codigo_pilon','descripcion_pilon','Fecha_datos_pilones','ubicacion','sucursal_id'])\n ->get();\n $view = \\View::make('Reportes.Reporte', compact('Pilones'))->render();\n $pdf = \\App::make('dom...
[ "0.71640587", "0.70914996", "0.70729095", "0.7033202", "0.7033202", "0.6968235", "0.6968235", "0.6948693", "0.6798735", "0.6764573", "0.6743903", "0.672656", "0.6695303", "0.6649507", "0.66484696", "0.6626598", "0.6613439", "0.660863", "0.6597588", "0.6587956", "0.65741205", ...
0.77827626
0
Display Form for Weblink
Форма отображения для ссылки на веб-сайт
private function weblinkContent_form() { // Textarea Settings if (!fusion_get_settings("tinymce_enabled")) { $ExtendedSettings = [ 'required' => ($this->weblinksSettings['links_extended_required'] ? TRUE : FALSE), 'preview' => TRUE, 'ht...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formLink(){\n\t\t$yuiSuggest = &weSuggest::getInstance();\n\n\t\t$textname = 'we_' . $this->Name . '_txt[LinkPath]';\n\t\t$idname = 'we_' . $this->Name . '_txt[LinkID]';\n\t\t$extname = 'we_' . $this->Name . '_txt[LinkHref]';\n\t\t$linkType = $this->getElement('LinkType') ? : 'no';\n\t\t$linkPath = f('SEL...
[ "0.7115836", "0.67314684", "0.65939957", "0.6566115", "0.6503539", "0.64709353", "0.63975644", "0.63893175", "0.6363089", "0.634193", "0.6336527", "0.63079244", "0.626837", "0.62467366", "0.62431645", "0.622481", "0.61984384", "0.6189397", "0.6183969", "0.6143", "0.6133762", ...
0.72179496
0
Creates an asset directly from a URL and send it directly to S3
Создает актив напрямую из URL и отправляет его напрямую в S3
public static function createFromUrlToS3( $url, $options=array() ) { $app = \Base::instance(); $s3_options = array( 'clientPrivateKey' => $app->get('aws.clientPrivateKey'), 'serverPublicKey' => $app->get('aws.serverPublicKey'), 'serverPrivateKey' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function send_to_bucket($attachment, $filename) {\n $aws_key = get_option('aws_key');\n $aws_secret = get_option('secret_key');\n $aws_can_id = get_option('can_id');\n $aws_can_name = get_option('can_name');\n $host = get_option('bucket_host');\n // require the amazon sdk for php library\n req...
[ "0.6937025", "0.6507629", "0.6393667", "0.61442024", "0.6114538", "0.6071911", "0.59604025", "0.5954291", "0.5950298", "0.59481055", "0.58902264", "0.5877805", "0.5871365", "0.5869446", "0.58601", "0.58442307", "0.58336496", "0.5766536", "0.57628024", "0.5755007", "0.5689445"...
0.7382233
0
Get (first) Route by name
Получить (первый) маршрут по имени
public function get(string $name){ foreach($this->routes as $route){ if($route->matchName($name)) return $route; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNamed(string $name): Route|null;", "public function getRoute($name){ }", "public function getByName($name)\n {\n if (isset($this->attributes[$name])) {\n return $this->newRoute($this->attributes[$name]);\n }\n\n return $this->routes->getByName($name);\n ...
[ "0.82682604", "0.80586004", "0.77409554", "0.7633624", "0.74825174", "0.74146736", "0.739919", "0.7341763", "0.7263172", "0.72495914", "0.7225822", "0.70335174", "0.6996922", "0.69856113", "0.69608253", "0.6923731", "0.690417", "0.68972564", "0.6896263", "0.6894062", "0.68824...
0.82078826
1
Show faq's list based on a type.
Показать список часто задаваемых вопросов в зависимости от типа.
protected function list($type = null) { $faqs = $this->repository ->pushCriteria(app('Litepie\Repository\Criteria\RequestCriteria')) ->scopeQuery(function($query){ return $query->orderBy('id','DESC'); })->paginate(); return $this->response->title(trans('faq::faq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function list_of($type)\n {\n }", "public function show(Type $type)\n {\n //\n }", "public function show(Type $type)\n {\n //\n }", "public function show(Type $type)\n {\n //\n }", "public function faqs()\n\t\t{\n\t\t\t$this->load->model('faqs_mod...
[ "0.6468524", "0.5914334", "0.5914334", "0.5914334", "0.5857151", "0.58541447", "0.5833194", "0.5772917", "0.56843114", "0.56090957", "0.5606768", "0.55985606", "0.5579221", "0.5569759", "0.5565749", "0.5557027", "0.55265695", "0.5516182", "0.5510907", "0.5487353", "0.54870445...
0.7069579
0
Add item to favorites
Добавить элемент в избранное
public function addToFavorites($data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToFavorite($account_id, $item_id);", "public function addToFavorites($objid);", "private function addFavorite()\n {\n try\n {\n $request = $_POST;\n\n if (!isset($request['type'])) {\n throw_error_msg(\"Type not provided\");\n ...
[ "0.78158325", "0.72525686", "0.7233528", "0.70963883", "0.7083004", "0.7076158", "0.7059853", "0.7059709", "0.702876", "0.68874323", "0.6886355", "0.6757128", "0.6738898", "0.67260206", "0.6676352", "0.6671619", "0.66396934", "0.65958905", "0.65388453", "0.6524121", "0.645766...
0.780604
1
Get user's favorites items
Получить любимые элементы пользователя
public function getAllFavorites($user_id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFavorites();", "public function favorites($user, $options = []);", "function favorites() {\n if ($this->getRequestMethod() != \"GET\") {\n $this->response('', 406);\n }\n $id = (int)$this->_request['user_id'];\n $auth = $this->getAut...
[ "0.8196245", "0.7918854", "0.78840804", "0.76141477", "0.7572267", "0.748734", "0.7378432", "0.7309927", "0.7254667", "0.7252614", "0.72335434", "0.7192537", "0.7157988", "0.70559645", "0.70401627", "0.70359206", "0.70261395", "0.6959931", "0.6958222", "0.69548297", "0.689296...
0.80127865
1
method for listing your SMS Newsletter lists assigned to this your project from your Ozioma dashboard
метод для просмотра списка ваших списков SMS-рассылок, назначенных этому вашему проекту, из вашего панелей управления Ozioma
public function newsletterList() { return $this->ozioma->newsletter->list(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mailchimp_list(){\n\t\t$list = $this->mailchimp->lists(array(), 0, 25);\n\t\tif($list) {\n\t\t\t$this->sci->assign('maindata' , $list['data']);\n\t\t\t$this->sci->assign('total' , $list['total']);\n\t\t}\n\t\t//print_r($list);\n\t\t$this->sci->da('mailchimp_list.htm');\n\t}", "public function newsletter...
[ "0.6782974", "0.6409464", "0.6407492", "0.6396513", "0.6388375", "0.635588", "0.63536304", "0.63075686", "0.6307071", "0.6292246", "0.6276975", "0.62680036", "0.6267592", "0.62374824", "0.62318176", "0.6202594", "0.61833817", "0.6178932", "0.61611986", "0.61141497", "0.611305...
0.7439377
0
methode for adding bulk subscribers to your SMS Newsletter list
метод для добавления большого количества подписчиков в ваш список SMS-рассылки
public function addBulkSubscribers(array $data) { return $this->ozioma->newsletter->addBulkSubscribers($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function importSubscribers() \n\t{\n\t\tif (!$this->_isImportSubscribersEnabled()) \n\t\t{\n\t\t\treturn;\n\t\t}\n Mage::getModel(\"contactlab_hub/importer_subscribers\")->import();\n\t}", "public function send_subscriptions(){\r\n //send email to all those who have subscribed to posts from ...
[ "0.6960083", "0.6944793", "0.6615353", "0.65713173", "0.6560805", "0.6432089", "0.6412875", "0.641053", "0.6397734", "0.6291299", "0.62762654", "0.6212064", "0.61694837", "0.61464685", "0.61343634", "0.6115798", "0.6072402", "0.6043365", "0.6025463", "0.598478", "0.5982158", ...
0.71236855
0
method for list birthday groups assigned to this your project from your Ozioma dashboard
метод для списка групп дней рождения, назначенных этому вашему проекту из вашего дашборда Ozioma
public function birthdayGroupList() { return $this->ozioma->birthday->getGroupList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getGroupList() {}", "protected function getGroupList() {}", "public static abstract function getGroupList();", "public function getGroups() {}", "public function groupList(){\n\t\techo json_encode($this->read_database->get_groups());\n\t}", "abstract protected function getGroupList() ;...
[ "0.7366737", "0.7366737", "0.6977468", "0.68911505", "0.6887472", "0.68666977", "0.68356335", "0.68356335", "0.680625", "0.6789279", "0.67562515", "0.67064667", "0.67064667", "0.66489965", "0.6616503", "0.6616503", "0.6605729", "0.65468967", "0.6543358", "0.6467403", "0.64286...
0.7872811
0
method for adding birthday contact to your birthday group
метод для добавления контакта с днем рождения в вашу группу дней рождения
public function addBirthdayContactToGroup(array $data) { return $this->ozioma->birthday->addContactToGroup($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addBulkBirthdayContactsToGroup(array $data)\n {\n return $this->ozioma->birthday->addBulkContactsToGroup($data);\n }", "public function addContactToGroup($request, $group_id){\n\n $contacts = $request->input('contacts');\n\n if(!empty($contacts)){\n foreach (...
[ "0.6602471", "0.6457992", "0.61770815", "0.6163682", "0.6038913", "0.5968414", "0.59041387", "0.57158333", "0.5674613", "0.5668324", "0.56509453", "0.560169", "0.55788314", "0.5564168", "0.5560567", "0.5544435", "0.5539445", "0.5538062", "0.55091476", "0.54957753", "0.5494705...
0.7496413
0
method for addming bulk birthday contacts to your birthday group
метод для добавления большого количества контактов с днем рождения в вашу группу дней рождения
public function addBulkBirthdayContactsToGroup(array $data) { return $this->ozioma->birthday->addBulkContactsToGroup($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addBirthdayContactToGroup(array $data)\n {\n return $this->ozioma->birthday->addContactToGroup($data);\n }", "protected function saveAddressBookContacts($data)\n {\n \n if(!$data || empty($data)) return false;\n \n $insertArray = array();\n $ind ...
[ "0.6790205", "0.61954993", "0.60577077", "0.6043629", "0.60369086", "0.6023005", "0.5995623", "0.59390384", "0.5861095", "0.584413", "0.57975745", "0.57962286", "0.5709241", "0.5652704", "0.5603426", "0.56014526", "0.55992013", "0.54902595", "0.54828644", "0.5457244", "0.5415...
0.7686565
0
lists time zones which is required for schedule method
список часовых зон, необходимых для метода schedule
public function listTimeZones() { return $this->ozioma->timezones->list(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getTimezones() {}", "function timeZoneList() {\r\n $zones_array = array();\r\n $timestamp = time();\r\n foreach (timezone_identifiers_list() as $key => $zone) {\r\n date_default_timezone_set($zone);\r\n $zones_array[$key]['zone'] = $zone;\r\n $zones_array[$key]['diff_from_GMT']...
[ "0.8173725", "0.76755786", "0.75447553", "0.7499001", "0.7447406", "0.7304395", "0.6959726", "0.6906043", "0.6872931", "0.6823212", "0.6739219", "0.67339057", "0.6675887", "0.6614219", "0.6561852", "0.6538345", "0.6459808", "0.64454", "0.64205444", "0.6266571", "0.624788", ...
0.7939741
1
fetches a sent message by id recorded at Ozioma server
получает отправленное сообщение по идентификатору, записанному на сервере Ozioma
public function fetchSentMessage($id) { return $this->ozioma->message->fetch($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function ctrObtenerMensajePorId(){\n\n\t\t\tif(isset($_GET[\"id\"])){\n\n\t\t\t\t$tabla = \"mensajes\";\n\n\t\t\t\t$id = $_GET[\"id\"];\n\n\t\t\t\t$respuesta = ModeloMensajes::mdlObtenerMensajePorId($tabla, $id);\n\n\t\t\t\treturn $respuesta;\t\n\t\t\t\n\t\t\t}\n\n \t}", "public function getById...
[ "0.6574855", "0.6486302", "0.64409", "0.6383792", "0.63788015", "0.634561", "0.63173485", "0.6283836", "0.62577736", "0.62457263", "0.62288207", "0.6185053", "0.61672956", "0.6163216", "0.6124636", "0.6124636", "0.6124636", "0.6124636", "0.60661316", "0.6011235", "0.6008061",...
0.7486926
0
This function uses query parameters to retrieve and print all posts within a specified date range.
Эта функция использует параметры запроса для получения и вывода всех постов в заданном диапазоне дат.
public function printPostsInDateRange($startDate, $endDate) { $query = new Zend_Gdata_Query('http://www.blogger.com/feeds/' . $this->blogID . '/posts/default'); $query->setParam('published-min', $startDate); $query->setParam('published-max', $endDate); $feed = $this->gdClient->getF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function make_post_query($params) {\n \t$args = array();\n $skip = (isset($params['skip'])) ? $params['skip'] : 0;\n $num = (isset($params['num'])) ? $params['num'] : 20;\n $sectionid = (isset($params['sectionid'])) ? $params['sectionid'] : FALSE;\n $postid ...
[ "0.64659476", "0.61773354", "0.5959776", "0.5932699", "0.5911305", "0.58927524", "0.5848476", "0.5843662", "0.58347", "0.58093274", "0.57796496", "0.5774192", "0.57603043", "0.57387096", "0.57308656", "0.5722702", "0.5708846", "0.5707179", "0.56985986", "0.5684715", "0.568108...
0.71039677
0
This function creates a new comment and adds it to the specified post. A comment is created as a Zend_Gdata_Entry.
Эта функция создает новый комментарий и добавляет его в указанный пост. Комментарий создается как Zend_Gdata_Entry.
public function createComment($postID, $commentText) { $uri = 'http://www.blogger.com/feeds/' . $this->blogID . '/' . $postID . '/comments/default'; $newComment = $this->gdClient->newEntry(); $newComment->content = $this->gdClient->newContent($commentText); $newComment->conte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newComment($post)\n\t{ \n\t\t$comment=new Comment;\n if(isset($_POST['ajax']) && $_POST['ajax']==='comment-form')\n\t\t{\n\t\t\techo CActiveForm::validate($comment);\n\t\t\tYii::app()->end();\n\t\t}\n if(isset($_POST['Comment']))\n\t\t{ $comment->attributes=$_POST...
[ "0.68906695", "0.6888502", "0.6845042", "0.66638386", "0.66182977", "0.65571535", "0.65124524", "0.6495846", "0.64954084", "0.6471151", "0.6448738", "0.6430944", "0.63907546", "0.6371817", "0.63600284", "0.6353912", "0.63431203", "0.6311017", "0.63083774", "0.6302683", "0.629...
0.7467955
0
This function prints all comments associated with the specified post.
Эта функция выводит все комментарии, связанные с указанным постом.
public function printAllComments($postID) { $query = new Zend_Gdata_Query('http://www.blogger.com/feeds/' . $this->blogID . '/' . $postID . '/comments/default'); $feed = $this->gdClient->getFeed($query); $this->parseFeed($feed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function comments($post_id)\n {\n $data = $this->Post_model->basic($post_id);\n $data['table_id'] = 2000; //Código tabla posts\n\n $data['view_a'] = 'posts/comments_v';\n $this->App_model->view(TPL_ADMIN, $data);\n }", "public function showComments(){\n if (isset($_GET[...
[ "0.6822033", "0.6521522", "0.64885306", "0.64643216", "0.64192826", "0.6417115", "0.6348566", "0.63324314", "0.6311992", "0.62370956", "0.62312734", "0.62260175", "0.61849344", "0.61162096", "0.60954785", "0.608153", "0.60664576", "0.606276", "0.6055467", "0.60092515", "0.599...
0.7233827
0
This function deletes the specified comment from a post.
Эта функция удаляет указанный комментарий из поста.
public function deleteComment($postID, $commentID) { $uri = 'http://www.blogger.com/feeds/' . $this->blogID . '/' . $postID . '/comments/default/' . $commentID; $this->gdClient->delete($uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deletePostComment($id) {\n\n\t\t$manager = $this->manager->getManager();\n\n\t\t$destroy = $manager->prepare('DELETE FROM comments WHERE post_id = ?') or die(print_r($manager->errorMessage()));\n\n\t\t$destroy->execute(array($id)); \n\t}", "private function deleteComment()\n {\n try\n ...
[ "0.74356616", "0.72813135", "0.72593707", "0.72490525", "0.7185086", "0.71563596", "0.715472", "0.707158", "0.7063948", "0.705214", "0.7038451", "0.7015344", "0.6978435", "0.6962452", "0.6954976", "0.6939753", "0.69325995", "0.69130844", "0.6895481", "0.6890901", "0.6886784",...
0.7353848
1
Creates a form to delete a materiel entity.
Создает форму для удаления материальной сущности.
private function createDeleteForm(Materiel $materiel) { return $this->createFormBuilder() ->setAction($this->generateUrl('materieladmin_delete', array('id' => $materiel->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteForm()\n\t{\n\t\t$form = new \\IPS\\Helpers\\Form( 'form', 'delete' );\n\t\t$form->addMessage( 'node_delete_blurb_no_content' );\n\t\t\n\t\treturn $form;\n\t}", "private function createDeleteForm(ArmasMedico $armasMedico)\n {\n return $this->createFormBuilder()\n ->setA...
[ "0.74447644", "0.7400374", "0.7393008", "0.73726153", "0.73419356", "0.7229251", "0.7194122", "0.71832794", "0.717898", "0.716541", "0.7161432", "0.71375334", "0.71373", "0.71303076", "0.712698", "0.711908", "0.70932895", "0.7086911", "0.70322627", "0.701766", "0.70043683", ...
0.7568182
0
Add the 3B Meteo admin link to the Settings Bar.
Добавьте ссылку на административную панель 3B Meteo в панель настроек.
function SetAdminConfiguration() { add_options_page("3B Meteo", "3B Meteo", 8, basename(__FILE__), array("TreBiMeteo",'DesignAdminPage')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function _admin_menu(){\n\t\tadd_options_page( 'aitch ref! Settings', 'aitch ref!', 'manage_options', 'aitch-ref', 'AitchRef::_options_page' );\n\t}", "function adminMenu() {\r\n\t\t\tadd_options_page('Track The Book Settings', 'Track The Book', 8, 'trackthebook.php', array($this,'adminOptions'));\...
[ "0.7428078", "0.7384377", "0.73556495", "0.7140172", "0.71383435", "0.7123832", "0.71019936", "0.7068343", "0.70496684", "0.70453614", "0.70442444", "0.7041072", "0.7028308", "0.702349", "0.70226264", "0.7017077", "0.7014769", "0.69554406", "0.69527084", "0.6898852", "0.68927...
0.7593989
0
Returns the plugin version Uses the WP API to get the meta data from the top of this file (comment)
Возвращает версию плагина Использует WP API для получения метаданных с верхней части этого файла (комментарий)
function GetVersion() { if(!function_exists('get_plugin_data')) { if(file_exists(ABSPATH . 'wp-admin/includes/plugin.php')) require_once(ABSPATH . 'wp-admin/includes/plugin.php'); //2.3+ else if(file_exists(ABSPATH . 'wp-admin/admin-functions.php')) require_once(ABSPATH . 'wp-admin/admin-functions.php'); //2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function get_plugin_version() {\n\t\t$plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');\n\t\tself::$version = $plugin_data['version'];\n\t\treturn $plugin_data['version'];\n\t}", "function dynamo_support_get_plugin_version() {\n if ( ! function_exists( 'get_plugins' ) ...
[ "0.80949503", "0.7754171", "0.75889754", "0.7555283", "0.7446713", "0.7320148", "0.7320148", "0.72679675", "0.7220204", "0.721517", "0.71672815", "0.71672815", "0.7070828", "0.69666547", "0.6940682", "0.6890476", "0.68352664", "0.6804998", "0.67954093", "0.6794438", "0.678102...
0.81095755
0
Sets the value of resourceType.
Устанавливает значение resourceType.
public function setResourceType($resourceType);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setResourceType($resourceType)\n {\n $this->resourceType = $resourceType;\n return $this;\n }", "public function setToResource()\n {\n $this->type = \"resource\";\n }", "public function getResourceType()\n {\n return $this->resourceType;\n }", "pu...
[ "0.67667675", "0.6254635", "0.5729264", "0.5719486", "0.56485003", "0.54606044", "0.5443589", "0.53701735", "0.50708866", "0.5055621", "0.5031923", "0.49992794", "0.49421614", "0.49421614", "0.49421614", "0.49421614", "0.49421614", "0.49421614", "0.49421614", "0.49421614", "0...
0.8034799
0
Sets the value of resourceClass.
Устанавливает значение resourceClass.
public function setResourceClass($resourceClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setClass($class)\n {\n $this->class = $class;\n }", "public function setClass($class) {\r\n\t$this->class = $class;\r\n }", "public function setClass($class){\n $this->_class = $class;\n }", "public function setClass($class);", "public function setClass($class){\n $...
[ "0.69735175", "0.6944851", "0.6909085", "0.69000214", "0.6853613", "0.67909735", "0.6752796", "0.6685585", "0.66289747", "0.64270633", "0.63064224", "0.62726456", "0.6241402", "0.6138783", "0.6134936", "0.61220306", "0.61112475", "0.6094878", "0.6054206", "0.6040085", "0.6033...
0.8340604
0
Sets the value of resourceMethod.
Устанавливает значение resourceMethod.
public function setResourceMethod($resourceMethod);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setMethod($Resource, $method) {\n switch ($method) {\n case Request::METHOD_GET:\n curl_setopt($Resource, CURLOPT_HTTPGET, true);\n break;\n case Request::METHOD_POST:\n curl_setopt($Resource, CURLOPT_POST, true);\n ...
[ "0.7250663", "0.6672955", "0.6633832", "0.6633832", "0.658674", "0.65548307", "0.6539644", "0.6499373", "0.64456993", "0.64456993", "0.64456993", "0.64456993", "0.64332944", "0.6430416", "0.64093554", "0.63906044", "0.63669264", "0.63201344", "0.6171844", "0.6170483", "0.6118...
0.8532477
0
Send the whole file content as a response
Отправьте весь содержимое файла в качестве ответа
public function sendResponse(){ header( 'Content-Type:' . $this->getMimeType() ); $encodedName = rawurlencode($this->getFilename()); if (preg_match("/MSIE/", $_SERVER["HTTP_USER_AGENT"])){ header( 'Content-Disposition: attachment; filepath="' . $encodedName . '"' ); } else { header('Content-D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serving()\n\t{\n\t\tif ( $size = filesize( $this->path ) )\n\t\t\t$body = $this;\n\t\telse\n\t\t{\n\t\t\t$body = array( Prb_IO::withFile( $this->path, Prb_IO_File::NO_CREATE_READ )->read() );\n\t\t\t$size = Prack_Utils::singleton()->bytesize( reset( $body ) );\n\t\t}\n\t\t\n\t\t$pathinfo = pathinf...
[ "0.67695236", "0.65831745", "0.6583125", "0.65529495", "0.6538509", "0.65300924", "0.65230614", "0.6476376", "0.64292157", "0.64250976", "0.6416642", "0.6367223", "0.6358976", "0.63580275", "0.62750036", "0.6254965", "0.62437963", "0.6210568", "0.61903536", "0.6182765", "0.61...
0.73561025
0
Prepares a type 'range' render element for input.html.twig.
Подготавливает элемент отображения типа 'range' для input.html.twig.
public static function preRenderRange($element) { $element['#attributes']['type'] = 'range'; Element::setAttributes($element, ['id', 'name', 'value', 'step', 'min', 'max']); static::setAttributes($element, ['form-range']); return $element; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getControlType()\n {\n return 'range';\n }", "function range($args) {\r\n\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\techo \"<div style='line-height:24px;'><input style=' float:left;\" . $this->width($args['width']) . \"' type='range' data-tooltip='\"...
[ "0.6613399", "0.6447215", "0.6160551", "0.5944013", "0.5882009", "0.5871181", "0.5787785", "0.5723896", "0.5494734", "0.54375637", "0.5422409", "0.5395408", "0.5344752", "0.5270596", "0.52471167", "0.5237579", "0.52311844", "0.5197426", "0.5190628", "0.514808", "0.5138085", ...
0.73295146
0
Method used to save a search profile record for this user, for the specified project, and profile type.
Метод, используемый для сохранения записи профиля поиска для этого пользователя, для указанного проекта и типа профиля.
public static function save($usr_id, $prj_id, $type, $profile) { if (!self::_exists($usr_id, $prj_id, $type)) { return self::_insert($usr_id, $prj_id, $type, $profile); } else { return self::_update($usr_id, $prj_id, $type, $profile); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _insert($usr_id, $prj_id, $type, $profile)\n {\n $stmt = 'INSERT INTO\n {{%search_profile}}\n (\n sep_usr_id,\n sep_prj_id,\n sep_type,\n sep_user_profile\n ) VA...
[ "0.6382605", "0.62214124", "0.6120181", "0.60800636", "0.5930378", "0.5813941", "0.5676957", "0.5584016", "0.55739844", "0.5543957", "0.5506078", "0.54591084", "0.5440704", "0.5421816", "0.5421314", "0.53836596", "0.5375851", "0.53757584", "0.53482133", "0.53466964", "0.53268...
0.70661557
0
Method used to update an existing search profile record for this user, for the specified project, and profile type.
Метод, используемый для обновления существующего записи профиля поиска для этого пользователя, для указанного проекта и типа профиля.
private static function _update($usr_id, $prj_id, $type, $profile) { $stmt = 'UPDATE {{%search_profile}} SET sep_user_profile=? WHERE sep_usr_id=? AND sep_prj_id=? AND sep_ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateProfile($user, array $profile);", "public static function save($usr_id, $prj_id, $type, $profile)\n {\n if (!self::_exists($usr_id, $prj_id, $type)) {\n return self::_insert($usr_id, $prj_id, $type, $profile);\n } else {\n return self::_update($usr_id,...
[ "0.65602106", "0.62772644", "0.60926104", "0.60682446", "0.6047178", "0.60397255", "0.6036102", "0.60218513", "0.5947089", "0.58837134", "0.58799034", "0.5867141", "0.58564085", "0.58361214", "0.5831699", "0.5830015", "0.58228886", "0.5802385", "0.57933944", "0.57933944", "0....
0.7581129
0
Tests for a valid client email hostanme and returns TRUE or FALSE Optional bool param to enforce client hostnames
Тесты для проверки действительного электронного адреса клиента и возвращает TRUE или FALSE. Опциональный параметр bool для принудительной проверки имен хостов клиентов
public function validate_hostname($email, $enforce_hostnames = FALSE) { if ( ! $enforce_hostnames ) { $client_email_hostnames = $this->get_all(); if ( ! $client_email_hostnames ) { return TRUE; } } $hostname = substr(strrchr($email, "@"), 1); $client_email_hostname = $this->get_by(a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_valid_email($address) {\n $fields = preg_split(\"/@/\", $address, 2);\n if ((!preg_match(\"/^[0-9a-z]([-_.]?[0-9a-z])*$/i\", $fields[0])) || (!isset($fields[1]) || $fields[1] == '' || !is_valid_hostname_fqdn($fields[1], 0))) {\n return false;\n }\n return true;\n}", "private functi...
[ "0.69905114", "0.6617407", "0.6562686", "0.6555657", "0.6542164", "0.6511218", "0.6500884", "0.64788383", "0.64778423", "0.6465645", "0.6463108", "0.6460839", "0.6456674", "0.64541626", "0.64367944", "0.6436247", "0.643504", "0.6432797", "0.6428988", "0.6427511", "0.64122134"...
0.78042614
0
getController Return controller name, by default controller is $_GET['m'] and if any controller is specified, we return the default controller in general configuration file.
getController Возвращает имя контроллера, по умолчанию контроллер — $_GET['m'], и если указан какой-либо контроллер, мы возвращаем контроллер из общего конфигурационного файла.
public function getController() { if (isset($_GET[$this->config->get('controllerParam')])) $controller = clearPath(urldecode($_GET[$this->config->get('controllerParam')])); else $controller = clearPath($this->config->get('defaultController')); return strtolower($controller); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getControllerName() {\n if(isset($_GET['c']) && !empty($_GET['c'])) {\n return $_GET['c'];\n }\n return Config::getDefaultController();\n }", "public function getController() {\n\n\t\t\t$masterView = new \\permag\\view\\MasterView();\n\n\t\t\tif (isset($_GET[se...
[ "0.8069454", "0.7519281", "0.74769515", "0.74224347", "0.7414075", "0.7342893", "0.73114425", "0.7310702", "0.72783464", "0.725658", "0.72538257", "0.7227466", "0.7227466", "0.72252804", "0.7211046", "0.72079045", "0.7202782", "0.7201237", "0.7194594", "0.7160602", "0.7126961...
0.8117806
0
getMethod Return method name, by default method is $_GET['a'] and if any method is specified, we return the default method in general configuration file.
Метод получения возвращает имя метода, по умолчанию метод $_GET['a'], и если указан какой-либо метод, мы возвращаем стандартный метод из общего конфигурационного файла.
public function getMethod() { if (isset($_GET[$this->config->get('methodParam')])) $method = urldecode($_GET[$this->config->get('methodParam')]); else $method = $this->config->get('defaultMethod'); return strtolower($method); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getMethod(): string\n {\n if (strlen($this->method) == 0) {\n $this->method = 'get';\n }\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method ?: 'GET';\n }", "public function getMethod()\n {\n if (i...
[ "0.74952185", "0.7368082", "0.72663933", "0.7253924", "0.72093624", "0.7201384", "0.71367043", "0.7112936", "0.70976835", "0.7092887", "0.7086804", "0.7086804", "0.7086804", "0.7086804", "0.7086804", "0.7086804", "0.7086804", "0.70532954", "0.70484537", "0.70318455", "0.70222...
0.8155076
0
'StasisStart' is the first event that is triggered by Asterisk when a channel enters your Stasis application.
'StasisStart' — это первый событие, которое вызывается Asterisk, когда канал входит в ваше приложение Stasis.
public function onAriEventStasisStart(StasisStart $stasisStart): void { $channelId = $stasisStart->getChannel()->getId(); printf( "The channel '%s' has entered the MyExampleStasisApp.\n", $channelId ); /* * Now we make a call to the Asterisk REST Int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function on_start(){\n //$userID = $u->getUserID();\n \n //print \"runnin\";\n //$cartEventClassName = 'ScottcAffiliateRelation';\n //$cartEventClassPath = 'packages/scottc_affiliates/libraries/affiliate_relation.php';\n $eventClassName = 'AffiliateGateway';\n $eventClassPath = 'packages/affil...
[ "0.55838156", "0.53749937", "0.52757436", "0.5148081", "0.50365037", "0.50271064", "0.5009414", "0.49982074", "0.49949548", "0.4993002", "0.49915546", "0.49803543", "0.4942543", "0.49370456", "0.49370456", "0.49370456", "0.49370456", "0.49370456", "0.49370456", "0.49370456", ...
0.780445
0
Form callback for configuring multisite aggregate types.
Форма обратного вызова для настройки типов множественных сайтов.
function multisite_aggregate_type_form($form, &$form_state, $aggregate_type, $op = 'edit') { if ($op == 'clone') { $aggregate_type->label .= ' (cloned)'; $aggregate_type->type = ''; } $form['label'] = array( '#title' => t('Label'), '#type' => 'textfield', '#default_value' => $aggregate_type->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multisite_aggregate_type_form_submit(&$form, &$form_state) {\n $aggregate_type = entity_ui_form_submit_build_entity($form, $form_state);\n $aggregate_type->save();\n $form_state['redirect'] = 'admin/structure/multisite_aggregate_types';\n}", "function multisite_aggregate_type_form_submit_delete(&$for...
[ "0.7496588", "0.55077887", "0.55065984", "0.5483719", "0.5481266", "0.5465761", "0.54309005", "0.5399339", "0.53879654", "0.53642356", "0.53511554", "0.5258819", "0.5255536", "0.52473664", "0.5246154", "0.52235234", "0.521184", "0.5153078", "0.5151034", "0.51439625", "0.51428...
0.7490199
1
__construct() Check if the $access integer contains the $permission and return true on success
__construct() Проверьте, содержит ли целое число $access значение $permission, и верните true при успешном выполнении
public function checkPermissions($access, $permission) { if ($access & $permission) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAccess($permission);", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "publ...
[ "0.73530895", "0.69361305", "0.69361305", "0.6935666", "0.6935666", "0.6935666", "0.6935659", "0.6935659", "0.6935659", "0.68762964", "0.6859596", "0.68074864", "0.6715599", "0.6652232", "0.6634888", "0.6573188", "0.6566981", "0.65485966", "0.6521009", "0.64772916", "0.645628...
0.7000601
1
Wandelt einen String in einen Float Wert um. Geht davon aus, dass Dezimalzahlen mit ',' und nicht mit '.' eingegeben wurden.
Преобразует строку в значение с плавающей точкой. Предполагает, что десятичные числа вводятся с использованием ',' вместо '.'.
public function str2float($string) { $string = str_replace('.', '', $string); $string = str_replace(',', '.', $string); $float = floatval($string); return $float; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testStringToFloat()\n {\n $locale = localeconv();\n $string = \"13{$locale['decimal_point']}543\";\n $this->assertSame(13.543, $this->_filter->filter($string));\n }", "function to_float($string_number){\n $number = floatval(str_replace('.', ',', str_replace(',', ...
[ "0.7535865", "0.71942073", "0.71678495", "0.7072014", "0.7010229", "0.69629824", "0.6846567", "0.6786576", "0.66990817", "0.66291845", "0.65625507", "0.6529434", "0.64952415", "0.6493561", "0.64274275", "0.64057875", "0.6393516", "0.63531435", "0.6268283", "0.6257727", "0.625...
0.73391795
1
Aktualisiert den Wert $new_value des Datensatz $id
Обновить значение $new_value записи $id
public function setValue($new_value, $id) { $value = ''; $where = array(); $where[self::field_id] = $id; $config = array(); if (!$this->sqlSelectRecord($where, $config)) { $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $this->getError())); return false; } if (sizeo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setValue($new_value, $id) {\n \t$value = '';\n \t$where = array();\n \t$where[self::field_id] = $id;\n \t$config = array();\n \tif (!$this->sqlSelectRecord($where, $config)) {\n \t\t$this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $this->getError()));\n \t\treturn false;\n \t}\...
[ "0.7375441", "0.6635621", "0.6442674", "0.6200797", "0.61908036", "0.6143793", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "0.61206627", "...
0.74675447
0
get_static Get static css always when reload wp_admin
get_static Получать статические css всегда при перезагрузке wp_admin
public function get_static() { global $wp_filesystem; $css = ''; $css_min = ''; $css .= self::get_custom_category_colors(); $css_min = $css; // Remove space after colons $css_min = str_replace(': ', ':', $css_min); // Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getStaticCss(){\r\n\t\tif ( is_multisite() ){\r\n\t\t\tif(!get_site_option('revslider-static-css')){\r\n\t\t\t\t$contentCSS = @file_get_contents(RevSliderGlobals::$filepath_static_captions);\r\n\t\t\t\tself::updateStaticCss($contentCSS);\r\n\t\t\t}\r\n\t\t\t$contentCSS = get_site_option('rev...
[ "0.7449672", "0.6887984", "0.6653862", "0.6627445", "0.6498575", "0.641243", "0.6338296", "0.6306795", "0.63039744", "0.62612003", "0.62341255", "0.622903", "0.6226901", "0.62180877", "0.62164956", "0.62160295", "0.6215843", "0.6201142", "0.61919343", "0.6188936", "0.61855686...
0.7150431
1
Generated from protobuf field .clarifai.api.UserAppIDSet user_app_id = 1;
Сгенерировано из поля protobuf .clarifai.api.UserAppIDSet user_app_id = 1;
public function setUserAppId($var) { GPBUtil::checkMessage($var, \Clarifai\Api\UserAppIDSet::class); $this->user_app_id = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserAppId()\n {\n return $this->user_app_id;\n }", "public function getAppUserId()\n {\n return $this->app_user_id;\n }", "public function setAppUserId($var)\n {\n GPBUtil::checkString($var, True);\n $this->app_user_id = $var;\n\n return $thi...
[ "0.6420586", "0.63355845", "0.59803927", "0.5962194", "0.5904621", "0.5897139", "0.5666246", "0.562621", "0.560994", "0.5606746", "0.5555819", "0.5555819", "0.5555819", "0.5555819", "0.5555819", "0.5555819", "0.5555819", "0.5529959", "0.55265397", "0.5480745", "0.54805005", ...
0.73763245
0
Generated from protobuf field bool trained_before = 5;
Сгенерировано из поля protobuf bool trained_before = 5;
public function setTrainedBefore($var) { GPBUtil::checkBool($var); $this->trained_before = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTrainedBefore()\n {\n return $this->trained_before;\n }", "public function trained() : bool\n {\n return $this->estimator->trained();\n }", "public function getRequiredLinearHistory() : bool\n {\n return $this->requiredLinearHistory;\n }", "public fun...
[ "0.6975226", "0.6637127", "0.5221338", "0.5064209", "0.49841246", "0.49756524", "0.49741313", "0.4910547", "0.48545575", "0.4836523", "0.48337328", "0.47744262", "0.477067", "0.47622576", "0.47407368", "0.47226396", "0.47199404", "0.47154272", "0.4707854", "0.47019935", "0.46...
0.7827282
0
Get the application path.
Получить путь приложения.
public function getApplicationPath() { return app_path(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppPath() {\n return $this->_application_path;\n }", "public function getApplicationPath() {\r\n\t\treturn $this->getFramework()->getPath(Core::PATH_APPLICATION);\r\n\t}", "public function getApplicationPath()\n {\n return $this->applicationPath;\n }", "protected fun...
[ "0.8896119", "0.8850165", "0.8699659", "0.86884815", "0.8671237", "0.8663962", "0.85488796", "0.8462266", "0.83612794", "0.83125645", "0.81617504", "0.80328864", "0.80236703", "0.79852027", "0.7979133", "0.79707414", "0.7968854", "0.79553163", "0.79553163", "0.79359454", "0.7...
0.90373456
0
AJAX callback: hide child theme notice for current theme
AJAX-запрос: скрыть уведомление о дочерней теме для текущей темы
public function ajax_if_child_theme_hide_notice() { if( ! check_ajax_referer( $this->plugin_slug, '_wpnonce', false ) ) { echo 0; exit; } set_transient( 'if_hide_child_theme_notice_' . get_stylesheet(), 1 ); echo 1; exit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display_admin_notice()\n\t{\n /* Ask The Question: \"Does Your Child Theme Work?\" To Improve Our Child Theme Library */\n\t\tglobal $wpdb;\n\t\t$table_name = esc_attr($wpdb->prefix.'childthemewp');\n\t\t$childthemeconfirmed = $wpdb->get_results(\"SELECT datavalue FROM $table_name ORDER BY id DESC ...
[ "0.68607605", "0.67341954", "0.65762484", "0.64262986", "0.63839066", "0.6318127", "0.6160272", "0.6099611", "0.6092307", "0.60683304", "0.60411173", "0.60017383", "0.5994711", "0.5980504", "0.5948674", "0.5933495", "0.59327996", "0.59031695", "0.58929044", "0.58806574", "0.5...
0.8191918
0
AJAX callback: create child theme
AJAX-вызов: создание дочерней темы
public function ajax_if_child_theme_create_child_theme() { if( ! isset( $_REQUEST['form_data'] ) ) { die('0'); } // parse form request parse_str( $_REQUEST['form_data'], $_REQUEST ); if( ! check_ajax_referer( $this->plugin_slug, '_wpnonce', false ) ) { die('0'); } // get selected theme da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_ajax_install_theme()\n {\n }", "function wp_ajax_update_theme()\n {\n }", "public function get_child() {\n\n\t\t$theme_data = Plugin::instance()->storage->get( $this->settings['parent_data'] );\n\t\t$install_data = Plugin::instance()->storage->get( 'theme_data' );\n\t\t$id =...
[ "0.71439135", "0.7012372", "0.6791214", "0.67347485", "0.66474205", "0.65851295", "0.656912", "0.64636976", "0.6457598", "0.642625", "0.6336711", "0.63171506", "0.62671274", "0.6231093", "0.62133425", "0.60770947", "0.60391426", "0.6014445", "0.6008262", "0.6006393", "0.60060...
0.78255445
0
AJAX callback: activate child theme
AJAX-вызов: активация дочерней темы
public function ajax_if_child_theme_activate_theme() { if( ! check_ajax_referer( $this->plugin_slug, '_wpnonce', false ) ) { die('0'); } $parent_theme = trim( $_REQUEST['parent_theme'] ); $child_theme = get_transient( 'if_child_gen_last_theme_created' ); if( ! $child_theme || ! $parent_theme ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate_child() {\n\t\t$this->activate_theme( 'child', Plugin::instance()->dashboard->page_url( 'select-skin' ) );\n\t}", "function wp_ajax_install_theme()\n {\n }", "function wp_ajax_update_theme()\n {\n }", "public function activate_parent() {\n\t\t$this->activate_theme( 'paren...
[ "0.74724907", "0.72084945", "0.7181581", "0.68392223", "0.6823716", "0.66648495", "0.6619996", "0.64898664", "0.6436101", "0.6396647", "0.639593", "0.6339583", "0.62959564", "0.628945", "0.62666893", "0.6228636", "0.6213585", "0.6161271", "0.614941", "0.61154133", "0.6106555"...
0.79862255
0
Get WordPress theme tags
Получить теги темы WordPress
public static function getThemeTags() { $theme_tags = get_transient( 'if_child_gen_theme_tags' ); if( ! $theme_tags ) { $response = wp_remote_get( 'https://api.wordpress.org/themes/info/1.1/?action=feature_list' ); if( ! is_wp_error( $response ) ) { $theme_tags = wp_remote_ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tc_get_the_tags() {\r\n return the_tags();\r\n}", "public function getTags() {\n\t\treturn Template::getSiteMetaTags();\n\t}", "public static function get_tags() {\n global $wpdb;\n $query = \"SELECT * FROM XTB_TAGS\";\n return $wpdb->get_results($query);\n }", "private fu...
[ "0.77390546", "0.71178776", "0.6788377", "0.67343545", "0.67343545", "0.6722934", "0.66906494", "0.66906494", "0.66906494", "0.66906494", "0.66906494", "0.6634789", "0.6634016", "0.66253763", "0.6573643", "0.6554589", "0.6542228", "0.65098715", "0.65071857", "0.64983904", "0....
0.7819027
0
The fees route redirect params
Параметры перенаправления маршрута сборов
protected function getFeesRouteParams() { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFeesRouteParams()\n {\n return [\n 'licence' => $this->getFromRoute('licence'),\n 'busRegId' => $this->getFromRoute('busRegId'),\n ];\n }", "public function getRedirectParams() { return $this->_redirectParams; }", "public function getRouteParams()...
[ "0.6982264", "0.64983267", "0.6359946", "0.6102662", "0.59102607", "0.5905592", "0.58925664", "0.5845387", "0.5798042", "0.57973653", "0.5779364", "0.57676417", "0.57665783", "0.5701231", "0.5696163", "0.5680387", "0.56780386", "0.5607719", "0.5587419", "0.5587419", "0.558741...
0.70548564
0
The controller specific fees table params
Таблица параметров сборов, специфичных для контроллера
protected function getFeesTableParams() { return [ 'isMiscellaneous' => 1, 'status' => 'current', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFeesTableParams()\n {\n return [\n 'licence' => $this->getFromRoute('licence'),\n 'busReg' => $this->getFromRoute('busRegId'),\n 'status' => 'current',\n ];\n }", "public function getFees()\n {\n $fees = Fee::where('archived', '...
[ "0.7869816", "0.6258615", "0.6240061", "0.61754674", "0.61439186", "0.6104845", "0.6007251", "0.5993598", "0.5876465", "0.58667254", "0.58340406", "0.57908803", "0.57640564", "0.5716276", "0.57110554", "0.56908286", "0.56632394", "0.5659645", "0.5644361", "0.5634361", "0.5632...
0.7482303
1
Gets the trophy title for this trophy group.
Получает заголовок трофея для этой группы трофеев.
public function title(): AbstractTrophyTitle { return $this->trophyTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function name(): string\n {\n return $this->pluck('trophyTitleName');\n }", "public function getTitle() {\r\n\tif (!is_null($this->title))\r\n\t return $this->title;\r\n\telse\r\n\t return $this->name;\r\n }", "public function getTitle() {\n\t\t\treturn $this->title;\n\t\t}", "pu...
[ "0.7716297", "0.7056447", "0.70023334", "0.69535613", "0.6950904", "0.6948396", "0.6944267", "0.6944267", "0.6944267", "0.6944267", "0.69435227", "0.6938703", "0.6938703", "0.6927068", "0.69226134", "0.6919356", "0.6918852", "0.6918852", "0.691452", "0.6913334", "0.6909443", ...
0.7584532
1
Gets the trophy group icon URL.
Получает URL иконки группы трофеев.
public function iconUrl(): string { return $this->groupIconUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function iconUrl(): string\n {\n return $this->pluck('trophyTitleIconUrl');\n }", "public function getIcon()\n {\n return \"group_channel\";\n }", "public function getIconUrl(): string\n {\n return $this->iconUrl;\n }", "public function getIcon()\n {\n return M...
[ "0.69994205", "0.6981392", "0.6761805", "0.67431474", "0.6629611", "0.6619049", "0.65743494", "0.64833575", "0.6400647", "0.6346151", "0.6334698", "0.631999", "0.63110954", "0.6310036", "0.6283181", "0.62736225", "0.6246968", "0.6237309", "0.6216903", "0.6209366", "0.6208838"...
0.84720606
0
Gets whether this trophy group has a platinum or not.
Проверяет, имеет ли эта группа трофеев платину или нет.
public function hasPlatinum(): bool { return $this->pluck('definedTrophies.platinum') == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasPlatinum(): bool\n {\n return $this->pluck('definedTrophies.platinum') ?? false;\n }", "public function isPengunjung()\n {\n return $this->role === Role::PENGUNJUNG;\n }", "public function hasProducenum(){\n return $this->_has(35);\n }", "public function i...
[ "0.8400996", "0.59475887", "0.5926758", "0.58759826", "0.57962453", "0.574612", "0.57296365", "0.56715655", "0.5657419", "0.56116855", "0.56057894", "0.55982316", "0.55546594", "0.55295414", "0.5474433", "0.544722", "0.53645295", "0.53645295", "0.5342158", "0.5282316", "0.528...
0.83485585
1
Gets the trophy count for a specificed trophy type.
Получает количество трофеев для указанного типа трофея.
public function trophyCount(TrophyType $trophyType): int { switch ($trophyType) { case TrophyType::Bronze: return $this->bronze(); case TrophyType::Silver: return $this->silver(); case TrophyType::Gold: return $this->gold();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function trophyCount(): int\n {\n $count = ($this->bronzeTrophyCount() + $this->silverTrophyCount() + $this->goldTrophyCount());\n\n if ($this->hasPlatinum()) {\n $count++;\n }\n\n return $count;\n }", "public function totalTrophyCount(): int\n {\n $c...
[ "0.75086236", "0.7112089", "0.6759844", "0.66058105", "0.65774107", "0.6434526", "0.62485206", "0.6212028", "0.6119697", "0.60706663", "0.6043928", "0.6017805", "0.59379596", "0.58991253", "0.57762766", "0.57259727", "0.5718705", "0.57107925", "0.5709909", "0.567281", "0.5642...
0.8022124
0
f\get_or($coll, $key, $default) Returns a element of a collection by key. The default is returned if the key does not exist. f\get(array('a' => 1, 'b' => 2), 'a'); => 1 f\get(array('a' => 1, 'b' => 2), 'c', 3); => 3
f\get_or($coll, $key, $default) Возвращает элемент коллекции по ключу. Возвращается значение по умолчанию, если ключ отсутствует. f\get(array('a' => 1, 'b' => 2), 'a'); => 1 f\get(array('a' => 1, 'b' => 2), 'c', 3); => 3
function get_or($coll, $key, $default) { foreach ($coll as $k => $v) { if ($key == $k) { return $v; } } return $default; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getOrElse($key, \\Closure $default);", "private function _get($key, $default = null) {}", "function get($key, $default = null);", "public function get($key, $default = []);", "public function getIfExists($key, $default_value=null);", "public function get($key = null, $collection ...
[ "0.7317577", "0.6866757", "0.68037313", "0.6584168", "0.65777063", "0.65500784", "0.6547326", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", "0.6493449", ...
0.8862986
0
Apply processing to a node
Применить обработку к узлу
public function applyToNode(Node $node);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function apply($node)\r\n\t\t{\r\n\t\t\t$this->address = $node->address;\r\n\t\t\t$this->elements = $node->elements;\r\n\t\t\t$this->size = $node->size;\r\n\t\t\t$this->parent = $node->parent;\r\n\t\t\t$this->less = $node->less;\r\n\t\t\t$this->previous = $node->previous;\r\n\t\t\t$this->next = $node->next;\r\n\t\...
[ "0.65854883", "0.6480023", "0.58990484", "0.5850213", "0.58067065", "0.5654651", "0.56538194", "0.5583923", "0.55741674", "0.55233073", "0.551199", "0.5425025", "0.5403142", "0.5394361", "0.539326", "0.5350149", "0.5350149", "0.5350149", "0.5350149", "0.5350102", "0.53432184"...
0.76412857
0
Adds a child with $value inside CDATA
Добавляет дочерний элемент с $value внутри CDATA
public function addChildWithCDATA($name, $value = NULL) { $new_child = $this->addChild($name); if ($new_child !== NULL) { $node = dom_import_simplexml($new_child); $no = $node->ownerDocument; $node->appendChild($no->createCDATASection($value)); } return $new_child; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function addChildAsCDATA($parent, $name, $value = null)\n {\n $new_child = $parent->addChild($name);\n\n if ($new_child !== null) {\n $node = dom_import_simplexml($new_child);\n $no = $node->ownerDocument;\n // createCDATASection() returns an empty CD...
[ "0.6551285", "0.6548089", "0.6264865", "0.6241267", "0.5981477", "0.5902882", "0.58256525", "0.5823363", "0.5822971", "0.5752596", "0.5726234", "0.56230617", "0.5594003", "0.5534395", "0.5398143", "0.5382254", "0.5358379", "0.5347191", "0.5308721", "0.53064173", "0.5264244", ...
0.7213165
0
Publishing Versioning support. When publishing copy the editable form fields to the live database Not going to version emails and submissions as they are likely to persist over multiple versions
Поддержка версионирования при публикации. При публикации копируйте поля редактируемой формы в живую базу данных. Не версионируйте электронные письма и подачи, так как они, вероятно, будут сохраняться в течение нескольких версий
public function doPublish() { // remove fields on the live table which could have been orphaned. $live = Versioned::get_by_stage("EditableFormField", "Live", "\"EditableFormField\".\"ParentID\" = $this->ID"); if($live) { foreach($live as $field) { $field->doDeleteFromStage('Live'); } } // publish ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save_upgrade() {\n\t\tglobal $wpdb;\n\n\t\tif ( !isset( $_REQUEST['action'] ) || !isset( $_GET['page'] ) )\n\t\t\treturn;\n\n\t\tif ( 'visual-form-builder-pro' !== $_GET['page'] )\n\t\t\treturn;\n\n\t\tif ( 'vfb-upgrade' !== $_REQUEST['action'] )\n\t\t\treturn;\n\n\t\t// Set database names of free ...
[ "0.67845464", "0.64832", "0.6120493", "0.58839643", "0.5870289", "0.57205176", "0.5701501", "0.56471294", "0.5635828", "0.5625082", "0.56217504", "0.55880237", "0.5584719", "0.5578864", "0.55648214", "0.5557147", "0.5556878", "0.5542916", "0.5529872", "0.55260587", "0.5482956...
0.72757256
0
Unpublishing Versioning support When unpublishing the page it has to remove all the fields from the live database table
Отмена поддержки версионирования При отмене публикации страницы необходимо удалить все поля из таблицы живой базы данных
public function doUnpublish() { if($this->Fields()) { foreach($this->Fields() as $field) { $field->doDeleteFromStage('Live'); } } parent::doUnpublish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function unpublish() { \n\t\t$adsdetail = JRequest::get('POST');\n\t\t$model = $this->getModel('showads');\n\t\t$model->statusChange($adsdetail);\n\t}", "function edithistory_uninstall()\n{\n\tglobal $db;\n\tif($db->table_exists(\"edithistory\"))\n\t{\n\t\t$db->drop_table(\"edithistory\");\n\t}\n\n\tif($db->fiel...
[ "0.6793452", "0.67041206", "0.6471959", "0.62842226", "0.6257258", "0.61982924", "0.6180866", "0.61454445", "0.61387396", "0.6127713", "0.61084396", "0.61064047", "0.60899734", "0.60882485", "0.6077919", "0.6040685", "0.6007107", "0.5984419", "0.59417254", "0.59336674", "0.59...
0.7772495
0
Duplicate this UserDefinedForm page, and its form fields. Submissions, on the other hand, won't be duplicated.
Создайте дубликат этой страницы UserDefinedForm и её полей формы. С другой стороны, подачи не будут дублироваться.
public function duplicate() { $page = parent::duplicate(); // the form fields if($this->Fields()) { foreach($this->Fields() as $field) { $newField = $field->duplicate(); $newField->ParentID = $page->ID; $newField->write(); } } // the emails if($this->EmailRecipients()) { foreach($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function duplicatePage() {\n\t\t\n\t\t$output = array();\n\t\t$url = Request::post('url');\n\t\t\n\t\tif ($url) {\n\t\t\t\n\t\t\tif ($url != '/' && ($Page = $this->Automad->getPage($url))) {\n\t\t\t\t\n\t\t\t\t// Check permissions.\n\t\t\t\tif (is_writable(dirname(FileSystem::fullPagePath($Page->path)))) {\...
[ "0.6811267", "0.6375686", "0.62473464", "0.6113915", "0.60197526", "0.6014976", "0.599103", "0.59580404", "0.5935139", "0.586244", "0.58509326", "0.57910824", "0.5766566", "0.5756103", "0.57322586", "0.5702522", "0.5698835", "0.56959224", "0.5661987", "0.56613797", "0.5620241...
0.79248756
0
Return if this form has been modified on the stage site and not published. this is used on the workflow module and for a couple highlighting things
Возвращать, если форма была изменена на этапе сайта и не опубликована. используется в модуле workflow и для выделения нескольких элементов
public function getIsModifiedOnStage() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isChangingOnlyThisForm()\n {\n /** @var \\Symfony\\Component\\HttpFoundation\\Request $request */\n $request = \\Zend_Registry::get('iris_container')->get('request');\n\n if ($request->query->has('changeOnlyThisForm')) {\n return (bool)$request->query->get('chang...
[ "0.6585784", "0.65484405", "0.6493444", "0.6493444", "0.6493444", "0.6493444", "0.6399945", "0.63777494", "0.63777494", "0.63777494", "0.63273406", "0.63273406", "0.63052106", "0.6287702", "0.6254699", "0.6252785", "0.6134419", "0.61289436", "0.61289436", "0.6118995", "0.6108...
0.7098645
0
This action handles rendering the "finished" message, which is customisable by editing the ReceivedFormSubmission.ss template.
Это действие обрабатывает отображение сообщения "завершено", которое можно настроить, редактируя шаблон ReceivedFormSubmission.ss.
function finished() { $referrer = isset($_GET['referrer']) ? urldecode($_GET['referrer']) : null; return $this->customise(array( 'Content' => $this->customise( array( 'Link' => $referrer ))->renderWith('ReceivedFormSubmission'), 'Form' => ' ', )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function finished()\n\t{\n\t\t$submission = $this->getSubmission();\n\n\t\tif (!$submission) return $this->httpError(404);\n\n\t\t$referrer = isset($_GET['referrer']) ? urldecode($_GET['referrer']) : null;\n\n\t\tif (!$this->DisableAuthenicatedFinishAction && !$submission) {\n\t\t\t$formProcessed = Session:...
[ "0.75565994", "0.6674177", "0.65471655", "0.6179794", "0.6174499", "0.6172387", "0.60494584", "0.581128", "0.5758147", "0.57392627", "0.57096606", "0.56986415", "0.5675629", "0.56689405", "0.5591396", "0.5581662", "0.55771554", "0.55646944", "0.555747", "0.5554267", "0.554992...
0.7696166
0
Calls the given `$closure` and chains the `$next` closure, "bound" to the same object.
Вызывает заданный `$closure` и цепляет `$next` closure, "связанный" с тем же объектом.
public static function bound(Closure $closure, Closure $next): Closure { return function () use ($closure, $next): void { if (! is_object($this)) { // @phpstan-ignore-line throw ShouldNotHappen::fromMessage('$this not bound to chainable closure.'); } \Pes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function boundStatically(Closure $closure, Closure $next): Closure\n {\n return static function () use ($closure, $next): void {\n \\Pest\\Support\\Closure::bind($closure, null, self::class)(...func_get_args());\n \\Pest\\Support\\Closure::bind($next, null, self::class...
[ "0.6954192", "0.6761698", "0.6105748", "0.59878117", "0.5710368", "0.56842065", "0.5659905", "0.5579749", "0.54282784", "0.54128623", "0.5348229", "0.5271637", "0.5189096", "0.5174379", "0.5163598", "0.5161289", "0.51552707", "0.51479775", "0.5133237", "0.5126987", "0.5126845...
0.7840287
0
Calls the given `$closure` and chains the `$next` closure, "unbound" of any object.
Вызывает заданный `$closure` и цепляет `$next` closure, "не привязанный" к любому объекту.
public static function unbound(Closure $closure, Closure $next): Closure { return function () use ($closure, $next): void { $closure(...func_get_args()); $next(...func_get_args()); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function bound(Closure $closure, Closure $next): Closure\n {\n return function () use ($closure, $next): void {\n if (! is_object($this)) { // @phpstan-ignore-line\n throw ShouldNotHappen::fromMessage('$this not bound to chainable closure.');\n }\n\n ...
[ "0.71356446", "0.61540514", "0.5544128", "0.53912216", "0.5339274", "0.5312196", "0.5304845", "0.5294343", "0.52863646", "0.5280867", "0.5262079", "0.52234864", "0.5193474", "0.5175158", "0.51624066", "0.51417255", "0.5136493", "0.5082271", "0.50580335", "0.50459397", "0.5037...
0.7041458
1
Call the given static `$closure` and chains the `$next` closure, "bound" to the same object statically.
Вызовите данный статический `$closure` и цепочку `$next` closure, "связанного" с тем же объектом статически.
public static function boundStatically(Closure $closure, Closure $next): Closure { return static function () use ($closure, $next): void { \Pest\Support\Closure::bind($closure, null, self::class)(...func_get_args()); \Pest\Support\Closure::bind($next, null, self::class)(...func_get_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function bound(Closure $closure, Closure $next): Closure\n {\n return function () use ($closure, $next): void {\n if (! is_object($this)) { // @phpstan-ignore-line\n throw ShouldNotHappen::fromMessage('$this not bound to chainable closure.');\n }\n\n ...
[ "0.7239427", "0.6551593", "0.5629245", "0.53945076", "0.53138316", "0.5224135", "0.5202528", "0.5201451", "0.51438916", "0.513661", "0.5032958", "0.5005509", "0.49011242", "0.48873457", "0.48801866", "0.48694587", "0.4862143", "0.4861449", "0.48547414", "0.4838695", "0.482010...
0.819601
0
Check if the svn is enabled
Проверьте, включен ли svn
public function svnEnabled() { return $this->container->get('request')->getSession()->has('context'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkConfigChanged()\n {\n if(!file_exists($this->full_path.'/.svn'))\n {\n $this->logger->info('SvnAdapter: config changed, not a svn repo');\n return true;\n }\n \n //url from file\n $out = self::_system('svn info '.$this->full_path.' | grep \"URL\"');\n $url_file ...
[ "0.62462884", "0.5756144", "0.56727916", "0.56674075", "0.56151336", "0.5588764", "0.5575064", "0.5574457", "0.5547703", "0.55327296", "0.54856706", "0.54800683", "0.54627144", "0.54569477", "0.5434834", "0.5420138", "0.54018915", "0.5399685", "0.53864586", "0.53816307", "0.5...
0.82370996
0
Sets the named state with a given value.
Устанавливает состояние с заданным именем и значением.
public function setState($name, $value) { $this->_state[$name]=$value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function set($name,$value) {\n\t\treturn (self::$state[$name] = $value);\n\t}", "public function setState($value) {\n\t\tself::$_state = $value;\n\t}", "public function setState($name, $value) {\r\n\t\treturn $this->context->setState($name, $value);\r\n\t}", "public function setStateAttribute($...
[ "0.7679419", "0.74722046", "0.7416376", "0.73666686", "0.724528", "0.7051078", "0.67619294", "0.67585254", "0.6715298", "0.6715298", "0.6715298", "0.6715298", "0.6678841", "0.6678841", "0.6678841", "0.6645634", "0.6645634", "0.6645634", "0.6629134", "0.66223574", "0.6605979",...
0.8418572
0
set the merchant key
установить ключ продавца
private function setMerchantKey() { $this->key = config('gladepay.key'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setKey()\n {\n $paymentGateway = \\App\\Models\\PaymentGateway::where('name', 'paystack')->first();\n $this->secretKey = $paymentGateway['information']['private_key'];\n $this->publicKey = $paymentGateway['information']['public_key'];\n }", "protected function setTra...
[ "0.7159414", "0.70542556", "0.67290086", "0.6549121", "0.65118396", "0.6469898", "0.6453179", "0.643843", "0.62950546", "0.6273401", "0.6273363", "0.62063044", "0.6170294", "0.6147147", "0.6118758", "0.61034256", "0.6078778", "0.6078778", "0.6078778", "0.6052375", "0.6039363"...
0.8467071
0
set the merchant id
установить идентификатор продавца
private function setMerchantD() { $this->mid = config('gladepay.mid'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMerchantId($val)\n\t{\n\t\t$this->_merchantId = $val;\n\t\treturn $this;\n\t}", "public function setMerchantId($value)\n {\n return $this->setParameter('merchantId', $value);\n }", "public function setMerchantId($value) {\n if(strlen($value) > 9 ){\n throw new ...
[ "0.759497", "0.7099819", "0.70207936", "0.692726", "0.6866224", "0.6864853", "0.6825114", "0.67309296", "0.6710883", "0.6625088", "0.6610558", "0.6547952", "0.65470546", "0.651474", "0.6451621", "0.63985777", "0.62981874", "0.6279977", "0.6278694", "0.62105656", "0.61904603",...
0.7455148
1
set the bank endpoint
установить конечную точку банка
private function setBankTransferUrl() { $this->bankUrl = config('gladepay.endpoint').'/payment'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setEndpoint($endpoint): void {\r\n $this->endpoint = $endpoint;\r\n }", "public function setEndpoint(string $endpoint) {\n if (!empty($endpoint)) {\n $this->endpoint = $endpoint;\n }\n }", "public function setEndpoint($host)\n\t{\n\t\tself::$endpoint = $host;\n\t}", "pu...
[ "0.6745269", "0.65088856", "0.6350606", "0.6350606", "0.6326298", "0.62738985", "0.62348425", "0.60089993", "0.60065305", "0.5989189", "0.5957193", "0.5857897", "0.5855164", "0.5720681", "0.5622374", "0.5610077", "0.5516242", "0.5491386", "0.5452876", "0.54496765", "0.5428641...
0.7406707
0
This calculates the profit. Price minus cost.
Это рассчитывает прибыль. Цена минус стоимость.
public function profit() : void { echo ($this->price - $this->cost); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function profit()\n\t{\n\t\t$total = 0;\n\t\t$ante = $this->properties->get('ante');\n\t\tforeach ($this->all() as $record)\n\t\t\tif (!empty($record->making))\n\t\t\t\t$total += $record->balance - $ante;\n\n\t\treturn $total;\n\t}", "public function getProfit() {\n return round($this->getTotalPrice()*0.2...
[ "0.74062383", "0.7378033", "0.68724465", "0.67366844", "0.6702469", "0.66773754", "0.6637563", "0.66316545", "0.66180795", "0.6592848", "0.6589719", "0.6521431", "0.65130115", "0.6489839", "0.6481624", "0.6481624", "0.6470596", "0.64310527", "0.64265615", "0.6424501", "0.6365...
0.83184195
0
remove style declarations from the core
удалить декларации стилей из ядра
public function removeStyleDec() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function remove_editor_styles()\n {\n }", "function _style_fix()\n {\n }", "function remove_word_styles() {\r\n\t\t$this->code = preg_replace('/<style[^<>]*?>(.*?)<\\/style>/is', '<style type=\"text/css\"></style>', $this->code);\r\n\t}", "function remove_default_admin_stylesheets() {\n \...
[ "0.78846145", "0.7276639", "0.72436374", "0.7186782", "0.7098289", "0.70039064", "0.69824326", "0.687352", "0.6850692", "0.68358856", "0.68286186", "0.6753885", "0.67119986", "0.66977817", "0.6673121", "0.6673121", "0.6671765", "0.6647909", "0.65867174", "0.65746856", "0.6569...
0.77486867
1
force latest IE & chrome frame
force latest IE & chrome frame
public function forceIeChromeFrame() { return $this->doc->setMetadata('x-ua-compatible', 'IE=edge,chrome=1'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function for_ie_ssl()\n {\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified\n header('Cache-Control: cache, must-revalidate'); // HTTP/1.1\n header('Pragma: public...
[ "0.5870274", "0.57280827", "0.5690793", "0.5679611", "0.56775475", "0.56267", "0.5594381", "0.55941874", "0.55189824", "0.5506379", "0.5505889", "0.5434009", "0.542348", "0.54077214", "0.5259174", "0.525024", "0.5245584", "0.52443933", "0.51814204", "0.51568586", "0.51558715"...
0.7962591
0