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
Get all the boxes in the house
Получить все коробки в доме
public function getBoxes() { return $this->_boxes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function all()\n\t{\n\t\treturn $this->boxes;\n\t}", "public function getBoxes()\n\t{\n\t\t$boxes = array();\n\t\tforeach($this->getData() as $data){\n\t\t\tif($this->idAllowed($data['id'])){\n\t\t\t\t$boxes[] = array(\n\t\t\t\t\t'class' => sprintf('Webwijs\\Admin\\Metabox\\%s', $data['type']), \n\t\t\t\t...
[ "0.7474385", "0.639613", "0.62573683", "0.6232857", "0.6060521", "0.6002215", "0.59658647", "0.59508747", "0.5812474", "0.57570344", "0.5749778", "0.5747989", "0.5720612", "0.5688814", "0.5682613", "0.55466264", "0.55276996", "0.5514015", "0.550272", "0.5485187", "0.54788196"...
0.70391613
1
Get all the cats currently sitting in boxes
Получить всех котов, которые сейчас сидят в коробках
public function getCatsInBoxes() { $boxes = $this->getBoxes(); $count = []; foreach($boxes as $box) { $boxclass = new $box; foreach ($box->getCatsInside() as $data) { $count[] = $data; } } return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCatsInside() {\r\n\t\treturn $this->_cats;\r\n\t}", "public function all()\n\t{\n\t\treturn $this->boxes;\n\t}", "public function putCatsOutside() {\r\n\t\t$cats_house = $this->getCatsInside();\r\n\t\t$cats_boxes = $this->getCatsInBoxes();\r\n\t\t$cats_remaining = [];\r\n\t\tforeach ($cats_h...
[ "0.69447863", "0.647043", "0.6119685", "0.59854776", "0.58953077", "0.56735706", "0.5560696", "0.5544028", "0.5394787", "0.53181094", "0.53165793", "0.5313872", "0.52838695", "0.5259635", "0.5233337", "0.5232654", "0.5215281", "0.52139217", "0.52017653", "0.51751333", "0.5172...
0.7421057
0
Put all the cats not in boxes outside
Поместите всех котов, не находящихся в коробках, вне коробок
public function putCatsOutside() { $cats_house = $this->getCatsInside(); $cats_boxes = $this->getCatsInBoxes(); $cats_remaining = []; foreach ($cats_house as $cat_in_house) { if(!in_array($cat_in_house,$cats_boxes)) { $cats_remaining[] = $cat_in_house; $key = array_search($cat_in_house,$this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCatsInBoxes() {\r\n\t\t$boxes = $this->getBoxes();\r\n\t\t$count = [];\r\n\t\tforeach($boxes as $box) {\r\n\t\t\t$boxclass = new $box;\r\n\t\t\tforeach ($box->getCatsInside() as $data) {\r\n\t\t\t\t$count[] = $data;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $count;\r\n\t}", "public function getCatsIns...
[ "0.5827777", "0.561097", "0.5430037", "0.52211714", "0.5149653", "0.5008143", "0.4876721", "0.48433372", "0.479822", "0.4783819", "0.47699538", "0.47699538", "0.47310612", "0.47289073", "0.47098428", "0.4709301", "0.4707443", "0.46870184", "0.45907366", "0.45672676", "0.45299...
0.77402765
0
return coordonates of a bound
вернуть координаты границы
private function bound_to_coord($bound){ $vertices=$bound->getVertices(); $polygon=[ 'x1' => $vertices[0]->getX(), 'y1' => $vertices[0]->getY(), 'x2' => $vertices[1]->getX(), 'y2' => $vertices[1]->getY(), 'x3' => $vertices[2]->getX(), 'y3' => $vertices[2]->getY(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function bounds()\n {\n return array(\n array(static::LAT_MIN, static::LNG_MIN),\n array(static::LAT_MAX, static::LNG_MAX),\n );\n }", "public function getBounds();", "public function getBoundaries()\n {\n }", "public function getCoordinat...
[ "0.70974463", "0.7022513", "0.67515576", "0.6750437", "0.6524603", "0.63886905", "0.6337157", "0.6232092", "0.6231566", "0.6037148", "0.5962984", "0.59235525", "0.59235525", "0.58738315", "0.5803752", "0.5798574", "0.56908786", "0.5680748", "0.5635285", "0.5629793", "0.561888...
0.7274079
0
write translated text over cleaned image
напишите переведенный текст над очищенным изображением
function write_translation() { $this->final_image = cloneImg($this->get_cleaned_image()); foreach ($this->text_blocks as $block) { $black = imagecolorallocate($this->final_image, 0, 0, 0); $red = imagecolorallocate($this->final_image, 255, 0, 0); $green = imagecolorallocate($this->final_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveImageWithText($text, $color, $source_file,$x,$y) {\n $public_file_path = '.';\n\n // dublicate the realimage\n list($width, $height) = getimagesize($source_file);\n $image_p = imagecreatetruecolor($width, $height);\n $image = imagecreatefromjpeg($source_file);\n imagecopyresampled($image_p, $ima...
[ "0.62937266", "0.6212041", "0.6175117", "0.6169217", "0.6163095", "0.6133462", "0.6110493", "0.6067842", "0.6045199", "0.5997946", "0.5989308", "0.5921113", "0.5917975", "0.59053606", "0.5856272", "0.58374774", "0.5804439", "0.5801649", "0.5800891", "0.57586837", "0.5752927",...
0.78006923
0
Indicate if the user is a visitor
Укажите, является ли пользователь посетителем
public function isVisitor() { return $this->isVisitor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkVisitor() {\n $request = app('request');\n $showMessage = TRUE;\n if (isset($_COOKIE['alchemy_visited']) && $_COOKIE['alchemy_visited'] != null)\n {\n $showMessage = FALSE;\n } else {\n self::updateVisitorCookie();\n ...
[ "0.74604666", "0.6546451", "0.6530089", "0.6361134", "0.6346938", "0.6281783", "0.62603295", "0.61972946", "0.6183672", "0.61348164", "0.6101214", "0.60972446", "0.60796535", "0.60688186", "0.6054961", "0.6049391", "0.6032998", "0.6020495", "0.5966115", "0.59493035", "0.59325...
0.7121975
1
Indicate if the user is a valid user He must have a username, password, email
Укажите, является ли пользователь действительным. Он должен иметь имя пользователя, пароль и электронную почту
public function isAValidUser() { return !isset($this->username) || empty($this->username) || !isset($this->email) || empty($this->email) || !isset($this->password) || empty($this->password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validUser();", "public function isUserValid() {\n $user = self::getUserFromDb($this->login, $this->password, $this->authKey);\n return $user != null;\n }", "public function validasi()\n\t{\n\t\tif($this->_identity===null)\n\t\t{\n\t\t\t$this->_identity=new UserIdentity($this->username,$t...
[ "0.80334485", "0.7575628", "0.74361616", "0.7359933", "0.7247499", "0.70888823", "0.70642453", "0.7047656", "0.70423627", "0.6956352", "0.6954689", "0.69533306", "0.6913059", "0.690794", "0.69064474", "0.6905207", "0.68953824", "0.68946964", "0.686467", "0.6848813", "0.683969...
0.7804732
1
Checks if there is no internet connection
Проверяет, нет ли интернет-соединения
function isOffline() { $connected = checkdnsrr("google.com"); if ($connected) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkConnection(){\r\n\t\treturn false;\r\n\t}", "function isOnline()\n{\n $connected = checkdnsrr(\"google.com\");\n\n if ($connected) {\n return true;\n }\n\n return false;\n}", "public function isOnline() \n {\n // pings example.com and google.com\n $is_co...
[ "0.7066811", "0.6934948", "0.6932121", "0.6823726", "0.67982674", "0.66690797", "0.6649602", "0.66100264", "0.65598047", "0.6515916", "0.64874446", "0.64285755", "0.63859063", "0.6350297", "0.6283407", "0.6279498", "0.6273934", "0.6263765", "0.62510926", "0.6238878", "0.61839...
0.71076655
0
Returns a copy of the pivot vector.
Возвращает копию вектора поворота.
public function getPivot() { return new_copy($this->pivot_); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pivot($pivot)\n {\n return $this->pivots($pivot,$pivot);\n }", "public function pivot($pivot)\n {\n return $this->pivots($pivot, $pivot);\n }", "public function getV() {\n return (new Matrix($this->V))->transpose();\n }", "public function pivot()\n {\n ...
[ "0.64660573", "0.62106806", "0.5598672", "0.552452", "0.5441567", "0.54120517", "0.53172135", "0.5269097", "0.5196344", "0.51469845", "0.5124015", "0.5048972", "0.49366263", "0.48702702", "0.48551282", "0.48537037", "0.4734701", "0.47108558", "0.46541962", "0.46541962", "0.46...
0.78250325
0
Displays a form to create a new Instant entity.
Показывает форму для создания нового сущности Instant.
public function newAction() { if(($tmp=$this->userEmailIsConfirmed())!==true){ return $tmp; } $user = $this->get('security.context')->getToken()->getUser(); $em = $this->getDoctrine()->getManager(); $entity = new Instant(); $entity->setUser($user); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n if (!$this->get('security.context')->isGranted('ROLE_ADMIN') ) {\n return $this->redirect($this->generateUrl('error'), 302); \n } \n\n $entity = new Intervalosips();\n $form = $this->createCreateForm($entity);\n\n return $this->rend...
[ "0.6810413", "0.6678462", "0.66678774", "0.66353196", "0.6620886", "0.6615995", "0.6614339", "0.6610534", "0.6597291", "0.6590061", "0.65880615", "0.65741", "0.655166", "0.65196776", "0.6508145", "0.6505837", "0.64974165", "0.64935327", "0.64796984", "0.64713186", "0.6469892"...
0.7657971
0
/ Fungsi Jenis Surat
/ Функция вида письма
function jenis_surat(){ $a['data'] = $this->model_admin->tampil_jenis()->result_object(); $a['page'] = "jenis_surat"; $this->load->view('admin/index', $a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function jenis_surat()\n\t{ \n\t\t$data['title'] = 'Jenis Surat';\n\t\t$data['count'] = $this->tmail->count_data('jenis_surat');\n\t\t$this->load->view('admin/includes/_header', $data);\n\t\t$this->load->view('admin/tracemail/jenis_surat/index', $data);\n\t\t$this->load->view('admin/includes/_footer', $data...
[ "0.75074273", "0.6948102", "0.6922894", "0.69192207", "0.6914962", "0.68206114", "0.6811002", "0.6775002", "0.6765974", "0.67634296", "0.6703221", "0.6689659", "0.66726005", "0.66705394", "0.6655495", "0.6645103", "0.66441894", "0.6631819", "0.663075", "0.6619037", "0.6617765...
0.74073553
1
/ Fungsi Manage User
/ Функция Управления Пользователем
function manage_user(){ $a['data'] = $this->model_admin->tampil_user()->result_object(); $a['page'] = "manage_user"; $this->load->view('admin/index', $a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateUser()\n {\n }", "public function modify_user($user);", "public function user()\n {\n if ($this->form_validation->run() === FALSE)\n {\n $users = $this->admin_model->get_admin();\n $data['users'] = $users;\n $data['title'] = 'Utilisateur'; \n $this...
[ "0.73343414", "0.7297019", "0.72828597", "0.72456604", "0.7172528", "0.712452", "0.7063867", "0.7018378", "0.69928795", "0.69859576", "0.6984292", "0.6973974", "0.69517666", "0.69182205", "0.6913008", "0.6879981", "0.68788314", "0.68770194", "0.6871187", "0.6868987", "0.68579...
0.74076277
0
Gets maximum attempt times, default to 3.
Получает максимальное количество попыток, по умолчанию 3.
public function getMaxAttemptTimes(): int { return 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaximumAttempts();", "public function maxAttempts(): int\n {\n return 5;\n }", "public function maxAttempts()\n {\n return property_exists($this, 'maxAttempts') ? $this->maxAttempts : 5;\n }", "protected function maxLoginAttempts()\n {\n return Arr::get(...
[ "0.8147667", "0.79908574", "0.7676411", "0.7501502", "0.74150187", "0.7390487", "0.72394246", "0.71915305", "0.6705423", "0.65373063", "0.6520651", "0.64243144", "0.6187638", "0.61512846", "0.61076033", "0.6088782", "0.6086899", "0.6086852", "0.6057669", "0.6057669", "0.60388...
0.9040343
0
Valida o email informado
Проверьте введенный email
public function validaEmail() { $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; if (!strlen(trim($this->email)) || !preg_match($regex, $this->email)) { return 'E-mail inválido! <br>'; } return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function emailOk ($email) {\r\n return filter_var($email, FILTER_VALIDATE_EMAIL);\r\n }", "function validate_email() {\n # Check Value is an Email Address\n if ($this->check_email_address($this->cur_val)) {\n # Remove any existing error message\n $this->error...
[ "0.77756774", "0.7645229", "0.7603607", "0.7574858", "0.75736356", "0.7515717", "0.747242", "0.7416354", "0.7383072", "0.7379574", "0.7316178", "0.7286062", "0.7275026", "0.7264028", "0.72556704", "0.7248354", "0.7217748", "0.7206186", "0.7203417", "0.72004277", "0.7198168", ...
0.78577626
0
Valida os dados do login
Проверьте данные входа
public function validaDadosLogin() { $errors = ''; $errors .= $this->validaEmail(); $errors .= $this->validaSenha(); $userDb = $this->getUserEmail(); if (!strlen($errors)) { if (!$userDb instanceof $this) { $errors .= 'Usuário não cadastrado!'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateLogin(){\n // store fieldnames inside the $fieldnames variable\n $fieldnames = ['email', 'password'];\n\n // initialize $error variable and set it as FALSE\n $error = FALSE;\n\n // for each $fieldname, check if its set or empty, if the fieldname is not set...
[ "0.7528918", "0.75275993", "0.73904294", "0.7325022", "0.72156906", "0.70951706", "0.70335066", "0.69941014", "0.6952299", "0.69141346", "0.68889415", "0.6875221", "0.6819352", "0.6816023", "0.68042684", "0.6793945", "0.6785087", "0.676555", "0.67593473", "0.67559314", "0.671...
0.7961005
0
set_cors Setea las cabeceras necesarias para permitir acceso a xmlhttprequests desde otro dominio (CORS).
set_cors Устанавливает необходимые заголовки для разрешения доступа xmlhttprequests с другого домена (CORS).
function set_cors() { // Permitir el dominio de origen if (isset($_SERVER['HTTP_ORIGIN'])) { // Ajustar aqui dominios para consumo permitidos header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Credentials: true'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setCORSHeaders($response) {\n $response->headers->set('Access-Control-Allow-Origin', '*');\n $response->headers->set('Access-Control-Allow-Methods', 'GET,POST,PUT,PATCH,DELETE,OPTIONS');\n $response->headers->set('Access-Control-Allow-Headers', 'Authorization, Origin, Accept, Content-Ty...
[ "0.6915725", "0.68769133", "0.6864505", "0.6847778", "0.67677593", "0.6677791", "0.66653574", "0.65260285", "0.65231586", "0.64876723", "0.64849305", "0.6412922", "0.6387627", "0.6387116", "0.6357087", "0.63100356", "0.6300249", "0.6259239", "0.6238656", "0.6215462", "0.61647...
0.7850506
0
Displays a list of members
Показывает список членов
public function members_list() { if (!in_array($this->type, $this->membership_types)) { redirect(base_url('members/list/active')); } $data['type'] = ($this->type === NULL)? 'active': $this->type; $data['user_mode'] = $this->session->userdata('mode'); $data['members'] = $this->get_members($this->type); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showMembers() {\n\n $memberModel = $GLOBALS[\"memberModel\"];\n // Get all of the members from the db.\n $included_members = $memberModel->getAll();\n $data = array(\"included_members\" => $included_members);\n return $this->render(\"listMembers\", $data);\n }"...
[ "0.8813764", "0.80702716", "0.79012483", "0.7883174", "0.7790819", "0.7576296", "0.75366735", "0.7495018", "0.7420997", "0.74113137", "0.7397996", "0.73734355", "0.73632824", "0.73518276", "0.7332597", "0.72988266", "0.72926134", "0.7291102", "0.7247467", "0.7245087", "0.7220...
0.8254455
1
Process membership enrollment (called by AJAX)
Членство в процессе (вызывается AJAX)
public function process_enrollment() { $member_id = $_POST['member_id']; $program_id = $_POST['program_id']; $program_price_id = $_POST['program_price_id']; $old_member_date_started = $_POST['date_started']; $program_price = $this->Program_Model->get_program_price_by_id($program_price_id); if ($program_pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function individual_enrollment() {\n // $this->output->enable_profiler(TRUE);\n $data['sideMenuData'] = fetch_non_main_page_content();\n $tenant_id = $this->tenant_id;\n $loggedin_user_id = $this->session->userdata('userDetails')->user_id;\n extract($_POST);\n $class...
[ "0.58984977", "0.57440287", "0.5513321", "0.5463083", "0.545324", "0.54376876", "0.5344094", "0.5176431", "0.5174266", "0.5173508", "0.5144191", "0.51336694", "0.5110516", "0.509", "0.50706506", "0.5019247", "0.50045514", "0.49927738", "0.4972062", "0.4951617", "0.49484703", ...
0.74352586
0
Ajax call to unfreeze the member and update the status of membership
Ajax-запрос для разблокировки члена и обновления статуса членства
public function ajax_unfreeze_member() { $member_id = $this->input->post('member_id'); $result = $this->Member_Model->unfreeze_membership($member_id); if ($result) { $return_data = [ 'code' => 200, 'message' => 'Successfully unfrozen member' ]; } else { $return_data = [ 'code' => 400, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_freeze_member() {\n\t\t$member_id = $this->input->post('member_id');\n\t\t$freeze_data = $this->input->post('freeze_data');\n\t\t\n\t\t$results = $this->Member_Model->get_memberships_by_id_status($member_id, 'Active');\n\t\t$isValidDate = true;\n\n\t\tforeach ($results as $row) {\n\t\t\tif ($i...
[ "0.70005304", "0.6354348", "0.6285145", "0.611159", "0.60222894", "0.5971456", "0.5968948", "0.5921556", "0.58860236", "0.5815345", "0.5777961", "0.57731086", "0.57398", "0.57380486", "0.57323676", "0.5730678", "0.5723719", "0.57075965", "0.56808573", "0.56319344", "0.5617093...
0.8589839
0
Ajax call to check if email exists on the database
Ajax-запрос для проверки существования email в базе данных
public function check_email() { $email = urldecode($_GET['email']); $result = $this->Member_Model->check_email_if_exists($email); if ($result > 0) { echo json_encode(false); } else { echo json_encode(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkEmailExistsAjaxAction()\n {\n if(isset($_POST['Email']) && !empty($_POST['Email'])) {\n header('Content-type: text/plain');\n if(UserModel::emailExists($this->filterString($_POST['Email'])) !== false) {\n echo 1;\n } else {\n ...
[ "0.8455055", "0.77551913", "0.76543176", "0.76486146", "0.7640316", "0.7626405", "0.7615176", "0.7596973", "0.7565456", "0.7528658", "0.74538714", "0.7366866", "0.731909", "0.72844464", "0.72390383", "0.7233515", "0.7225275", "0.72196674", "0.72147274", "0.7190811", "0.718524...
0.8024957
1
Ajax call to freeze the member and insert data to membership_frozen table
Ajax-запрос для блокировки члена и вставки данных в таблицу membership_frozen
public function ajax_freeze_member() { $member_id = $this->input->post('member_id'); $freeze_data = $this->input->post('freeze_data'); $results = $this->Member_Model->get_memberships_by_id_status($member_id, 'Active'); $isValidDate = true; foreach ($results as $row) { if ($isValidDate) { $date_expi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_unfreeze_member() {\n\t\t$member_id = $this->input->post('member_id');\n\n\t\t$result = $this->Member_Model->unfreeze_membership($member_id);\n\n\t\tif ($result) {\n\t\t\t$return_data = [\n\t\t\t\t'code' => 200,\n\t\t\t\t'message' => 'Successfully unfrozen member'\n\t\t\t];\n\t\t} else {\n\t\t...
[ "0.72326124", "0.59494185", "0.5946439", "0.56819063", "0.5618945", "0.56142384", "0.54971004", "0.54644704", "0.54339427", "0.5383092", "0.53724265", "0.5311549", "0.5290048", "0.5260571", "0.52548814", "0.52266335", "0.5212335", "0.51939654", "0.51793754", "0.5168246", "0.5...
0.7782169
0
Cancels the membership of the user
Отменяет членство пользователя
public function cancel_membership() { $membership_id = $this->uri->segment(3); $data = [ 'id' => $membership_id, 'status' => 'Cancelled' ]; $this->Member_Model->update_membership($data); redirect('members/list/active'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelUserDeletion(): void\n {\n $this->dispatch('close-modal', id: 'confirmingUserDeletion');\n }", "public function cancelRequest(){\n //the other users Id\n $otherUserId = $_POST[\"otherUserId\"];\n //deletes the record in the database\n $this->individualGroupM...
[ "0.6718956", "0.6646883", "0.6559957", "0.6558013", "0.6521166", "0.64928705", "0.6473996", "0.64666647", "0.64150274", "0.6386971", "0.6271083", "0.62458134", "0.6217586", "0.618652", "0.6148257", "0.61202526", "0.6103228", "0.60632986", "0.6048439", "0.60355973", "0.6030957...
0.7733377
0
Get all of the receipts for the Billable model.
Получите все чеки для модели Billable.
public function receipts() { return $this->morphMany(Receipt::class, 'billable')->orderByDesc('created_at'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReceipts()\n {\n return $this->hasMany(Receipt::className(), ['cust_id' => 'id']);\n }", "public function receipts()\n {\n \treturn $this->hasMany(Receipt::class);\n }", "public function readReceipts()\n {\n return $this->hasManyThrough(\"App\\ReadReceipt\", \...
[ "0.71628696", "0.6834277", "0.6656039", "0.6626118", "0.65093344", "0.6488457", "0.6375603", "0.633999", "0.6324477", "0.5783843", "0.57594454", "0.5731252", "0.57213837", "0.5631051", "0.5618998", "0.56047106", "0.5457948", "0.5434079", "0.54098153", "0.53848517", "0.5383289...
0.7973398
0
tests that the textbox html is correctly formed
тестирование того, что html-поле ввода правильно сформировано
public function testGetHtml() { $expected = '<p id="' . self::TEST_CONTROL_ID . '_container"><input id="' . self::TEST_CONTROL_ID . '" type="text" maxlength="255" value=""/></p>'; $actual = $this->testObject->getHtml (); echo "\nHTML FOR TEXTBOX CONTROL:\n$actual\n"; $this->assertTrue ( $expected ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInputFieldText()\n {\n $this->assertEquals(\n '<input type=\"text\" name=\"name\" value=\"val\" id=\"id\" required=\"required\">',\n $this->fixture->inputFieldText('name', 'val', 'id', true)\n );\n\n $this->assertEquals(\n '<input type=\"...
[ "0.6832851", "0.6615179", "0.65627205", "0.63116133", "0.6242383", "0.6077313", "0.6033561", "0.5964917", "0.5948888", "0.581062", "0.5796315", "0.5789175", "0.5737993", "0.57226205", "0.57199806", "0.57167214", "0.5713314", "0.5687207", "0.56789386", "0.56729823", "0.5660187...
0.80335325
0
Lists similar words by relevance threshold.
Список похожих слов по порогу релевантности.
function find_similar_words($word, $threshold) { $similar = array(); $tbl = 'babl_words_' . $this->lan; $word = addslashes( ( trim( $word ) ) ); $sndx = substr($word, 0, 2); $query = "select `word` AS word from `$tbl` where `di`=?"; @$result = $this->mDb->query($query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function spellcheck_text($text, $threshold = 5)\n {\n $words = preg_split(\"/\\s/\", $text);\n $results = array();\n foreach ($words as $word)\n {\n if (!$this->word_exists($word))\n {\n $results[$word] = $this->find_similar_words($word, $threshol...
[ "0.6663263", "0.60722655", "0.5948818", "0.56099963", "0.54622084", "0.5443361", "0.53343165", "0.5331835", "0.5208351", "0.5089758", "0.497933", "0.4977011", "0.49601692", "0.49583992", "0.4954021", "0.4939157", "0.49381113", "0.4931144", "0.49046764", "0.48815802", "0.48731...
0.72863674
0
Checks if a word exists
Проверяет, существует ли слово
function word_exists($word) { $tbl = 'babl_words_' . $this->lan; $word = addslashes( ( trim( $word ) ) ); $query = "select `word` AS word from `$tbl` where `word`=?"; $result = $this->mDb->query($query,array($word)); return $result->numRows(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wordExists($word) {\r\n\t\tApp::import('Model', 'LilBlogs.NbWordfreq'); $this->NbWordfreq = new NbWordfreq();\r\n\t\treturn $this->NbWordfreq->find('count', array('conditions' => array('word' => $word)))>0;\r\n\t}", "function check($paragraph, $word)\n{\n if (stripos($paragraph, $word) !== false)\n ...
[ "0.78360206", "0.77058566", "0.76230747", "0.7265423", "0.6843376", "0.6805705", "0.67948216", "0.66915697", "0.6642276", "0.66208434", "0.6598605", "0.6593569", "0.65624017", "0.65541315", "0.64796007", "0.6447747", "0.6383974", "0.63547206", "0.63113046", "0.6302208", "0.62...
0.7706841
1
Trim string Trim string
Удалить строку Удалить строку
public static function trim(string $input = ""){ # Return trimed string return trim($input); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function trim( $string )\n\t\t{\n\t\t\treturn trim( $string );\n\t\t}", "private function trimString($s)\n {\n $trimFilter = new \\Laminas\\Filter\\StringTrim();\n return $trimFilter->filter($s);\n }", "protected static function __trim(string $str): string {\n\t\treturn trim($str);\n\t}", ...
[ "0.7653099", "0.7461816", "0.7386919", "0.7355993", "0.7281803", "0.72287774", "0.71468794", "0.7078926", "0.7067877", "0.7021028", "0.70131534", "0.7009765", "0.69842905", "0.6983621", "0.6957601", "0.6912429", "0.688361", "0.6882199", "0.6869631", "0.6844285", "0.68281984",...
0.76067114
1
Get the cover video attribute
Получить атрибут видео-обложки
public function getCoverVideoAttribute() { $videos = $this->videos; if ($videos->count() >= 1) { // get the cover video $video = $videos->where('is_cover', true)->first(); if ($video) { return $video; } // no videos marked ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCover()\n {\n return $this->cover;\n }", "public function getCover()\n {\n return $this->cover;\n }", "public function getCover()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\tif(!array_key_exists('cover', $this->data))\n\t\t\t\treturn ...
[ "0.70272744", "0.70272744", "0.69921815", "0.69693923", "0.68297917", "0.66990906", "0.6654685", "0.6574343", "0.6504548", "0.65044236", "0.6463928", "0.6417927", "0.6368192", "0.6336084", "0.6303754", "0.62933445", "0.6290656", "0.62720865", "0.62496716", "0.6200463", "0.616...
0.775218
0
/ get usewr google sheet Details
/ получить детали google sheet пользователя
public function getGoogleSheetDetails() { $user_id = Auth::user()->id; return $this->systemUser->find($user_id)->userGoogleSheet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpreadsheetDetails()\n {\n return $this->get('SpreadsheetDetails');\n }", "function retrieveSpreadsheets($client, $html)\n{\n if ($html) {echo \"<h2>Your spreadsheets</h2>\\n\";}\n\n $feed = $client->getDocumentListFeed(\n 'https://docs.google.com/feeds/documents/private/fu...
[ "0.6770244", "0.6688976", "0.6225983", "0.61952376", "0.61761373", "0.6025955", "0.577248", "0.5698664", "0.55926543", "0.55323416", "0.54015505", "0.53679526", "0.5330889", "0.53232634", "0.5319794", "0.53084487", "0.5252668", "0.52467835", "0.52188843", "0.5212176", "0.5210...
0.7909965
0
Return ufc from given color
Вернуть ufc из заданного цвета
public function get_ufc( $color = null){ $color = empty( $color ) ? self::$_ufc : $color; if( strpos($color, self::VAR_PREFIX) !== false ) return $color; $color = self::utils()->hex2rgb( $color ); $theme_colors = self::$_theme_colors->colors; foreach( $theme_colors as $key => $theme_color ){ if( $colo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_color( $ufc = null){\n\t\t$ufc = empty( $ufc ) ? self::$_ufc : $ufc;\n\n\t\t$index = (int) str_replace(self::VAR_PREFIX, \"\", $ufc);\n\n\t\t$theme_colors = self::$_theme_colors->colors;\n\n\t\tforeach($theme_colors as $key => $theme_color){\n\t\t\tif( $key === $index ) return $theme_color->co...
[ "0.676521", "0.6348553", "0.61684734", "0.6135911", "0.60988486", "0.5876665", "0.5837745", "0.580085", "0.5751522", "0.5726009", "0.5709305", "0.5650527", "0.56221163", "0.5605181", "0.5594245", "0.55757815", "0.554908", "0.5515855", "0.5515855", "0.5515855", "0.5515855", ...
0.7493247
0
Returns color string from ufc
Возвращает строку цвета из ufc
public function get_color( $ufc = null){ $ufc = empty( $ufc ) ? self::$_ufc : $ufc; $index = (int) str_replace(self::VAR_PREFIX, "", $ufc); $theme_colors = self::$_theme_colors->colors; foreach($theme_colors as $key => $theme_color){ if( $key === $index ) return $theme_color->color; } return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uabb_parse_color_to_hex( $code = '' ) {\n\t$color = '';\n\t$hex = '';\n\tif( $code != '' ) {\n\t\tif ( strpos( $code, 'rgba' ) !== false ) {\n\t\t\t$code = ltrim( $code, 'rgba(' );\n\t\t\t$code = rtrim( $code, ')' );\n\t\t\t$rgb = explode( ',', $code );\n\t\t\t$hex .= str_pad(dechex($rgb[0]), 2, \"0\", ST...
[ "0.6608769", "0.65372145", "0.6412643", "0.6210418", "0.6202435", "0.6080626", "0.6068538", "0.59658784", "0.58891267", "0.5824665", "0.58172417", "0.578846", "0.57827455", "0.5775954", "0.577294", "0.5766286", "0.57611895", "0.5756657", "0.5741413", "0.57278645", "0.57278645...
0.73151255
0
Returns instance of Upfront_UFC_Utils
Возвращает экземпляр Upfront_UFC_Utils
static function utils(){ if( self::$_utils instanceof Upfront_UFC_Utils) return self::$_utils; self::$_utils = new Upfront_UFC_Utils(); return self::$_utils; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function util()\n {\n if(self::$util == null)\n {\n self::$util = new BUtil();\n }\n \n return self::$util;\n }", "public function getUtils() {\n\t\tglobal $site;\n\t\t//// set up $_ENV\n\t\t$this->setEnvironment();\n\t\t//// create global object...
[ "0.6764135", "0.62716645", "0.61848783", "0.6108967", "0.60108286", "0.5948844", "0.5852256", "0.5642277", "0.56257373", "0.56105334", "0.5588946", "0.5578272", "0.5550415", "0.5538352", "0.5437641", "0.5401204", "0.5399148", "0.53706497", "0.5342501", "0.5337169", "0.5293116...
0.82051384
0
delete point by point_type_id
удалить точку по point_type_id
public function delete($id){ $this->db->set('delete_flag', '1', FALSE); $this->db->where('point_type_id', $id); $delete = $this->db->update('point'); // gives UPDATE point_type SET delete_flag = 1 WHERE id = $id if($delete) { //delete point_type by id $this->db->set('delete_flag', '1', FALSE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_point($id)\n {\n return $this->db->delete('point',array('id_point'=>$id));\n }", "function delete(){\n\t\t$sql = \"DELETE FROM `layer_points` WHERE `id`='\".addslashes($this->id).\"'\";\n\n\t\t$this->connection->send_query($sql);\n\t}", "public function deleteByIdType($id, $type);"...
[ "0.75246274", "0.7048572", "0.697453", "0.67196995", "0.6504555", "0.64502007", "0.63437194", "0.6259519", "0.62545556", "0.62512815", "0.61475897", "0.6147247", "0.6136815", "0.6021484", "0.60190207", "0.5976942", "0.59736323", "0.59355855", "0.5932789", "0.59281534", "0.591...
0.74682325
1
Operation createScript Creates a script.
Операция createScript создаёт скрипт.
public function createScript($script_body) { list($response) = $this->createScriptWithHttpInfo($script_body); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create($scriptName = null);", "public function createScriptAsync($script_body)\n {\n return $this->createScriptAsyncWithHttpInfo($script_body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }...
[ "0.7089862", "0.6244983", "0.61884737", "0.6141076", "0.6032594", "0.5641298", "0.5624347", "0.53380793", "0.53009856", "0.52114433", "0.5211049", "0.52084005", "0.5153073", "0.5083117", "0.49985036", "0.49532557", "0.48413554", "0.47756034", "0.4771451", "0.47051254", "0.465...
0.7756135
0
Operation createScriptWithHttpInfo Creates a script.
Операция createScriptWithHttpInfo создает скрипт.
public function createScriptWithHttpInfo($script_body) { $returnType = '\BigCommerce\Api\V3\Model\Swagger\ScriptResponse'; $request = $this->createScriptRequest($script_body); try { $options = $this->createHttpClientOption(); try { $response = $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createScript($script_body)\n {\n list($response) = $this->createScriptWithHttpInfo($script_body);\n return $response;\n }", "public function createScriptAsyncWithHttpInfo($script_body)\n {\n $returnType = '\\BigCommerce\\Api\\V3\\Model\\Swagger\\ScriptResponse';\n ...
[ "0.6627162", "0.6403261", "0.5620703", "0.5615042", "0.5550489", "0.5515684", "0.54138714", "0.53723425", "0.5142126", "0.5005213", "0.48561856", "0.4732154", "0.45904797", "0.4585192", "0.45442092", "0.45037213", "0.44760504", "0.43956465", "0.4378161", "0.43278497", "0.4305...
0.70319927
0
Operation createScriptAsync Creates a script.
Операция createScriptAsync создаёт скрипт.
public function createScriptAsync($script_body) { return $this->createScriptAsyncWithHttpInfo($script_body) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createScriptAsyncWithHttpInfo($script_body)\n {\n $returnType = '\\BigCommerce\\Api\\V3\\Model\\Swagger\\ScriptResponse';\n $request = $this->createScriptRequest($script_body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ...
[ "0.6556281", "0.62659407", "0.5601918", "0.55162466", "0.5311717", "0.5270764", "0.5255284", "0.5163359", "0.500709", "0.49040225", "0.4864082", "0.48355082", "0.48182446", "0.48173037", "0.48150963", "0.48085627", "0.48032272", "0.4800399", "0.47758776", "0.4773219", "0.4768...
0.7739794
0
Operation createScriptAsyncWithHttpInfo Creates a script.
Операция createScriptAsyncWithHttpInfo создаёт скрипт.
public function createScriptAsyncWithHttpInfo($script_body) { $returnType = '\BigCommerce\Api\V3\Model\Swagger\ScriptResponse'; $request = $this->createScriptRequest($script_body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createScriptAsync($script_body)\n {\n return $this->createScriptAsyncWithHttpInfo($script_body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function createScriptWithHttpInfo($s...
[ "0.7138738", "0.63261217", "0.6098808", "0.58555937", "0.5766377", "0.5363502", "0.52343315", "0.51362383", "0.5036669", "0.5006434", "0.4996542", "0.49688092", "0.49297488", "0.48601723", "0.4815331", "0.4793649", "0.47840428", "0.47677663", "0.4720005", "0.4664868", "0.4656...
0.74933
0
Create request for operation 'createScript'
Создать запрос для операции 'createScript'
protected function createScriptRequest($script_body) { // verify the required parameter 'script_body' is set if ($script_body === null || (is_array($script_body) && count($script_body) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $script_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function postScriptsRequest($script_create_request)\n {\n // verify the required parameter 'script_create_request' is set\n if ($script_create_request === null || (is_array($script_create_request) && count($script_create_request) === 0)) {\n throw new \\InvalidArgumentExceptio...
[ "0.70108485", "0.6771881", "0.6710271", "0.6260344", "0.61418134", "0.6103231", "0.58564407", "0.58213", "0.5785878", "0.56093943", "0.54968435", "0.54849017", "0.545047", "0.53577673", "0.53577673", "0.5280457", "0.52486336", "0.52467746", "0.52431303", "0.522142", "0.518483...
0.7433376
0
Operation deleteScriptAsync Deletes a script.
Операция deleteScriptAsync удаляет скрипт.
public function deleteScriptAsync($uuid) { return $this->deleteScriptAsyncWithHttpInfo($uuid) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteScriptAsyncWithHttpInfo($uuid)\n {\n $returnType = '';\n $request = $this->deleteScriptRequest($uuid);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnTy...
[ "0.6443684", "0.53265214", "0.5090115", "0.50643253", "0.50114125", "0.4975724", "0.49639913", "0.49265316", "0.4892767", "0.48630255", "0.4826697", "0.4817903", "0.4748871", "0.47356102", "0.47125456", "0.47092915", "0.47052667", "0.4701939", "0.4672888", "0.46504274", "0.46...
0.71871984
0
Operation deleteScriptAsyncWithHttpInfo Deletes a script.
Операция deleteScriptAsyncWithHttpInfo удаляет скрипт.
public function deleteScriptAsyncWithHttpInfo($uuid) { $returnType = ''; $request = $this->deleteScriptRequest($uuid); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteScriptAsync($uuid)\n {\n return $this->deleteScriptAsyncWithHttpInfo($uuid)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function deleteScriptWithHttpInfo($uuid)\n {\n ...
[ "0.6313669", "0.6109843", "0.5578565", "0.5493871", "0.54715323", "0.5144255", "0.510572", "0.5060953", "0.49795005", "0.4948888", "0.49233845", "0.4913416", "0.48969", "0.4878231", "0.4871664", "0.4862713", "0.48377898", "0.4817576", "0.4801308", "0.47855556", "0.47784823", ...
0.71272576
0
Operation getScriptAsync Gets a script.
Операция getScriptAsync Получает скрипт.
public function getScriptAsync($uuid) { return $this->getScriptAsyncWithHttpInfo($uuid) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getScript()\n {\n return self::getTransport()->getScript();\n }", "public function getScript()\n {\n if ($this->script == null) {\n $this->script = new Script($this->getScriptBuf());\n }\n\n return $this->script;\n }", "public function g...
[ "0.65979606", "0.6361963", "0.62780416", "0.6254628", "0.609053", "0.605287", "0.5985254", "0.57176435", "0.55697334", "0.55535156", "0.55522573", "0.5539108", "0.54904664", "0.5469785", "0.5437432", "0.5435952", "0.5434487", "0.5297144", "0.51896757", "0.5170481", "0.5122981...
0.73113924
0
Operation updateScriptAsync Updates a script.
Операция updateScriptAsync обновляет скрипт.
public function updateScriptAsync($uuid, $script_body) { return $this->updateScriptAsyncWithHttpInfo($uuid, $script_body) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateScriptAsyncWithHttpInfo($uuid, $script_body)\n {\n $returnType = '\\BigCommerce\\Api\\V3\\Model\\Swagger\\ScriptResponse';\n $request = $this->updateScriptRequest($uuid, $script_body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientO...
[ "0.6709036", "0.5877997", "0.58555555", "0.5756228", "0.55654675", "0.54820365", "0.5165043", "0.5139103", "0.50693524", "0.50327283", "0.49893543", "0.4819233", "0.4789189", "0.47301814", "0.4634591", "0.45758554", "0.45569593", "0.4529661", "0.44994923", "0.44808778", "0.44...
0.70897907
0
Operation updateScriptAsyncWithHttpInfo Updates a script.
Операция updateScriptAsyncWithHttpInfo обновляет скрипт.
public function updateScriptAsyncWithHttpInfo($uuid, $script_body) { $returnType = '\BigCommerce\Api\V3\Model\Swagger\ScriptResponse'; $request = $this->updateScriptRequest($uuid, $script_body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateScriptAsync($uuid, $script_body)\n {\n return $this->updateScriptAsyncWithHttpInfo($uuid, $script_body)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function updateScriptW...
[ "0.67365104", "0.6462972", "0.5959043", "0.5785257", "0.5643819", "0.5520772", "0.54813963", "0.546919", "0.5340889", "0.52795404", "0.5183998", "0.51548076", "0.5115699", "0.5024584", "0.5010162", "0.49869093", "0.49461287", "0.4884652", "0.48252785", "0.4791219", "0.4741203...
0.7343803
0
Create request for operation 'updateScript'
Создать запрос для операции 'updateScript'
protected function updateScriptRequest($uuid, $script_body) { // verify the required parameter 'uuid' is set if ($uuid === null || (is_array($uuid) && count($uuid) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $uuid when calling updateScri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(ScriptUpdateRequest $request, $id)\n {\n try{\n $script = Script::find($id);\n\n if (empty($script)) {\n return $this->notFound(__('user.not_found'), __('user.scripts.not_found'));\n }\n\n $data = $request...
[ "0.65720755", "0.65001106", "0.63794005", "0.61779535", "0.616577", "0.58682364", "0.58634174", "0.5827301", "0.5807717", "0.5644193", "0.5528734", "0.5525777", "0.550225", "0.54534537", "0.5353298", "0.5324639", "0.53224283", "0.5303818", "0.52800614", "0.5209878", "0.520987...
0.71218497
0
/ Function: UpdateToken Here's the OAuth curl bits to pass the specified token data array to login to the Patron API, and decode the response
Функция: UpdateToken Здесь представлены фрагменты curl для OAuth, которые передают указанный массив данных токена для входа в API Patron и декодирования ответа
private function UpdateToken($data) { $postUrl = 'https://api.patreon.com/oauth2/token'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$postUrl); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded')); curl_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateDeviceTokens($token, $data){\r\n global $pdo;\r\n\t\t$update = $pdo->prepare(\"UPDATE device_registry \r\n\t\t\tSET apn_token = ?, c2dm_device_id = ?, wp7_channel_url = ?\r\n\t\t\tWHERE token=?\");\r\n $update->execute(array($data['apn_token'], $data['c2dm_device_id'], $data['wp7_chann...
[ "0.63355964", "0.607727", "0.601", "0.6007992", "0.59600157", "0.59084666", "0.5879445", "0.580463", "0.5798566", "0.57871974", "0.5744131", "0.57374", "0.5729853", "0.57127637", "0.56969696", "0.5696944", "0.56951153", "0.5693335", "0.568191", "0.5640352", "0.56184685", "0...
0.7474152
0
/ Function: fetchUser Grab the Patreon details for the currently logged in user
Функция: fetchUser Получить сведения о Patreon для текущего пользователя, авторизованного в системе
public function fetchUser() { return $this->QueryAPI("current_user"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "abstract protected function getUser();", "function getUserInfo(){\n\n\t\t/* Fetch user in...
[ "0.6220186", "0.6220186", "0.6220186", "0.6220186", "0.6220186", "0.6220186", "0.6220186", "0.6198923", "0.61733675", "0.6160339", "0.6159576", "0.6150888", "0.61343855", "0.6119698", "0.60865664", "0.6023712", "0.60113513", "0.6003728", "0.6000336", "0.5987476", "0.5982714",...
0.70949495
0
/ Function: fetchCampaign_and_patrons Fetch the campaign and patrons info for the currently logged in user
/ Функция: fetchCampaign_and_patrons Получает информацию о кампании и патронах для текущего пользователя, который вошёл в систему
public function fetchCampaign_and_patrons() { return $this->QueryAPI("current_user/campaigns?include=rewards,creator,goals,pledges"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchCampaign() {\n return $this->QueryAPI(\"current_user/campaigns?include=rewards,creator,goals\");\n }", "public function getCampaign();", "public function get_campaigns() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/campaigns.json\");\n }", "public function fe...
[ "0.71346366", "0.56749445", "0.5615817", "0.54755336", "0.5458593", "0.5301842", "0.52805686", "0.5275948", "0.52507436", "0.5238038", "0.5214012", "0.520645", "0.5192906", "0.51578677", "0.5134787", "0.5128017", "0.51136225", "0.5112223", "0.51105773", "0.507392", "0.5048992...
0.8414139
0
/ Function: fetchCampaign Retrieve only the campaign info for the currently logged in user
/ Функция: fetchCampaign Получает только информацию о кампании для текущего авторизованного пользователя
public function fetchCampaign() { return $this->QueryAPI("current_user/campaigns?include=rewards,creator,goals"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchCampaign_and_patrons() {\n return $this->QueryAPI(\"current_user/campaigns?include=rewards,creator,goals,pledges\");\n }", "public function getCampaign();", "private function getCampaignData($campaign = FALSE) {\n $sql = \"SELECT * FROM `campaigns` WHERE `id`='$campaign' ORDER B...
[ "0.75803816", "0.74248314", "0.67011684", "0.6598048", "0.63727444", "0.6149502", "0.6088995", "0.60824925", "0.60708", "0.605597", "0.6019274", "0.60183924", "0.60060406", "0.60015464", "0.5997557", "0.5990435", "0.5975927", "0.59756315", "0.5959285", "0.5917764", "0.5897906...
0.8543751
0
/ Function: fetchCampaignPledges Return the list of pledges made to a specific campaign
/ Функция: fetchCampaignPledges Возвращает список пожертвований, сделанных в пользу конкретной кампании
public function fetchCampaignPledges($campaign_id, $page_size, $cursor = null) { $url = "campaigns/{$campaign_id}/pledges?page%5Bcount%5D={$page_size}"; if ($cursor != null) { $escaped_cursor = urlencode($cursor); $url = $url . "&page%5Bcursor%5D={$escaped_cursor}"; } return $this->QueryAPI(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchCampaign_and_patrons() {\n return $this->QueryAPI(\"current_user/campaigns?include=rewards,creator,goals,pledges\");\n }", "public static function cmac_get_campaigns()\n {\n global $wpdb;\n\n $sql = 'SELECT c.*, count(ci.image_id) as banners_cnt '\n . 'FRO...
[ "0.572302", "0.56223327", "0.5612162", "0.556334", "0.5389709", "0.5324571", "0.5295684", "0.5273941", "0.526126", "0.5254024", "0.5251465", "0.5201588", "0.5183265", "0.516989", "0.5166479", "0.5143105", "0.51233643", "0.51134306", "0.50415796", "0.5016958", "0.5007522", "...
0.70093495
0
// Grab total unique records ratings in the DB
// Получить общее количество уникальных записей оценок в БД
public function total_unique_ratings($rating_type=0) { //$this->EE->db->save_queries = TRUE; /// ---------------------------------------- /// Total Records in the DB /// ---------------------------------------- $this->EE->db->select('COUNT(*) as total_records', FALSE); $this->EE->db->from('exp_channel_rat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function count_vehicle_ratings($data)\n\t{\n\t\tglobal $cid , $db;\n\n\t\t//Lets See If This Is To Update Or Insert A Rating\n\t \t$sql = \"SELECT count(*) as total FROM \" . GARAGE_RATING_TABLE . \"\n\t\t\tWHERE user_id = '\".$data['user_id'].\"' AND garage_id = '$cid'\";\n\n\t\tif(!$result = $db->sql_query...
[ "0.6729541", "0.6465329", "0.57940614", "0.5786649", "0.57728887", "0.5701665", "0.56656414", "0.56144387", "0.55480146", "0.55383176", "0.5516888", "0.5508872", "0.54968923", "0.5470316", "0.5452865", "0.54265267", "0.5424323", "0.5412221", "0.53956115", "0.5370143", "0.5369...
0.712695
0
Get validated normalized default value.
Получить проверенное нормализованное значение по умолчанию.
public function getValidDefaultValue(): mixed;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultValue() {}", "public function getDefaultValue() {}", "public function getDefaultValue(): mixed;", "public function getDefaultValue()\n {\n return $this->defaultValue;\n }", "public function getDefaultValue()\n {\n return $this->defaultValue;\n }", "publ...
[ "0.72859704", "0.7284937", "0.71923035", "0.71859014", "0.71859014", "0.7142759", "0.7141741", "0.70887494", "0.7078462", "0.70531476", "0.7043004", "0.7036489", "0.7036489", "0.7000147", "0.69716096", "0.69342875", "0.6913797", "0.67197853", "0.66698766", "0.66611135", "0.66...
0.78000283
0
Get Mime by Extension Translates a file extension into a mime type based on config/Mimes.php. Returns FALSE if it can't determine the type, or open the mime config file Note: this is NOT an accurate way of determining file mime types, and is here strictly as a convenience It should NOT be trusted, and should certainly ...
Получить Mime по расширению Переводит расширение файла в тип mime на основе файла config/Mimes.php. Возвращает FALSE, если невозможно определить тип или открыть файл mime конфигурации. Примечание: это НЕ точный способ определения типов файлов mime, и здесь он предоставлен исключительно для удобства. Его НЕ следует дове...
public static function getMimeByExtension(string $filename) { static $mimes; if (!is_array($mimes)) { $mimes = self::getMimes(); if (empty($mimes)) { return false; } } $extension = strtolower(substr(strrchr($filename, '.'), 1)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function mime_by_ext($extension)\r\n {\r\n $mimes = Core::config('mimes');\r\n\r\n return isset($mimes[$extension])?$mimes[$extension][0]:false;\r\n }", "function lookupMimeType( $pExtension ) {\n\n\t\t$this->loadMimeTypes();\n\t\tif( preg_match( \"#\\.[0-9a-z]+$#i\", $pExtensio...
[ "0.81289977", "0.7404996", "0.72458816", "0.7095002", "0.7084406", "0.6932139", "0.6931821", "0.6914391", "0.6912895", "0.69030344", "0.6884118", "0.68273854", "0.6809619", "0.68016243", "0.679209", "0.6763026", "0.6759434", "0.6730926", "0.67220765", "0.6720069", "0.671029",...
0.75724983
1
/! Utility that allows checking of more posts within Wordpress' "The Loop" without side effects like advancing the loop.
/! Инструмент, позволяющий проверять больше постов внутри цикла "The Loop" WordPress без побочных эффектов, таких как продвижение по циклу.
function more_posts() { global $wp_query; return $wp_query->current_post + 1 < $wp_query->post_count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function more_posts() {\n global $wp_query; // following the current one\n return $wp_query->current_post + 1 < $wp_query->post_count;\n}", "public function has_remaining_posts() {\n\t\treturn $this->has_remaining_posts;\n\t}", "function voyage_mikado_post_has_read_more() {\n global $post;\n\n ...
[ "0.8502068", "0.65865177", "0.63399893", "0.6318288", "0.6259145", "0.62530905", "0.6219934", "0.62119645", "0.6107311", "0.60712796", "0.60672915", "0.6059481", "0.6027895", "0.59714377", "0.59709793", "0.5967936", "0.5963536", "0.5962622", "0.595881", "0.5956856", "0.595268...
0.84663445
1
Also test with DocumentSet instead of Collection.
Также протестируйте с использованием DocumentSet вместо Collection.
public function testLoadWithDocumentSet() { $options = $this->_loadOptions; $options['collection'] = 'DocumentSet'; $posts = Fixture::load('models/Posts', $options); $this->_testLoad($posts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateCollection()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testCollectionsOne()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testSet()\n {\n ...
[ "0.6579224", "0.6474824", "0.63749754", "0.63478696", "0.6329748", "0.6215819", "0.62068874", "0.6161399", "0.61582196", "0.61521614", "0.61065173", "0.608458", "0.60822684", "0.6070054", "0.6061224", "0.601893", "0.6008045", "0.6000685", "0.5984352", "0.59707975", "0.5967461...
0.71337014
0
Test Load with invalid collection name
Тестовое загрузка с неправильным именем коллекции
public function testInvalidCollectionParam() { $options = $this->_loadOptions; $options['collection'] = 'Foobar'; $this->expectException('/Unsupported class given/'); $posts = Fixture::load('models/Posts', $options); $this->_testLoad($posts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLoadWithCustomCollection() {\n\t\t$options = $this->_loadOptions;\n\t\t$options['collection'] = 'lithium\\util\\Collection';\n\t\t$posts = Fixture::load('models/Posts', $options);\n\t\t$this->_testLoad($posts);\n\t}", "public function testLoadWithCollection() {\n\t\t$options = $this->_loadOpt...
[ "0.7639734", "0.7454017", "0.6783551", "0.66673756", "0.66576767", "0.632642", "0.61155224", "0.6088475", "0.60658395", "0.5995497", "0.5991894", "0.59485245", "0.5871522", "0.58596975", "0.5825441", "0.578636", "0.57711107", "0.5750033", "0.5747792", "0.5746307", "0.5724207"...
0.77278984
0
The swarm's unlock key.
Ключ разблокировки стаи.
public function getUnlockKey(): ?string { return $this->unlockKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unlock($key=null,$value=null){\n return $this->methodsData(\"unlock\",$key,$value);\n }", "public function unlock(): void;", "public function unlock() {\n }", "protected function _unlock($key) {\n\t\treturn apc_delete($key);\n\t}", "public static function getSecretKey()\n {\n ...
[ "0.65972096", "0.6186644", "0.61517864", "0.6119079", "0.6078685", "0.6002311", "0.6002311", "0.6002311", "0.6002311", "0.6002311", "0.59594995", "0.5938554", "0.59107274", "0.5886099", "0.5831463", "0.5806643", "0.5806643", "0.5806643", "0.57954013", "0.5790725", "0.5785486"...
0.7507449
0
Checks if the given field is an actual input field.
Проверяет, является ли заданное поле настоящим полем ввода.
public function isInputField($field) { return ! is_null(array_get($this->data, $field)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isField($field_name){\n\t\treturn isset($this->Fields[$field_name]) && is_object($this->Fields[$field_name]);\n\t}", "public function isField() : bool\n {\n return null == $this->fields || empty($this->fields);\n }", "function drush_behat_op_is_field($is_field_info) {\n list($enti...
[ "0.6352772", "0.6159096", "0.6152488", "0.6122456", "0.6117799", "0.61105496", "0.60992545", "0.6064141", "0.60640156", "0.6058416", "0.602486", "0.59379816", "0.5910427", "0.5844582", "0.5828518", "0.57905126", "0.5787624", "0.5787507", "0.57669795", "0.5750376", "0.5748695"...
0.7679886
0
assert that a method not called at all
утверждать, что метод не вызывался вообще
public function assertFunctionNotCalled($name) { if (count(func_get_args()) !== 1) { throw new \InvalidArgumentException('@assertFunctionNotCalled() expects only a method parameter. Did you mean to use @assertFunctionNotCalledWith()?'); } if ($method = $this->getFunctionUnderTest($name) and $method->wasCal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function shouldntRaiseAnEvent()\n {\n }", "public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }", "function method_no_specs() {}", "function expectNever($method, $message = '%s') {\n $this->exp...
[ "0.7093764", "0.69746256", "0.69739497", "0.6788292", "0.67160386", "0.66289246", "0.6577254", "0.65452284", "0.6494318", "0.64904326", "0.6484143", "0.6418296", "0.6407286", "0.63969946", "0.6369835", "0.6358832", "0.63532805", "0.63532805", "0.6343085", "0.6328855", "0.6295...
0.715213
0
assert that a method last called with specific arguments
утвердить, что метод был последним вызван с конкретными аргументами
public function assertFunctionLastCalledWith($name, array $args) { $message = null; if (!$method = $this->getFunctionUnderTest($name)) { $message = 'Expected [' . $name . '] to be called, but it was never called.'; } elseif (!$method->wasLastCalledWith($args)) { $message = 'Expected [' . $name . '] l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetArgs0()\n{\n\n $actual = $this->methodCall->getArgs();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "function expectAt($timing, $method, $args, $message = '%s') {\n $this->dieOnNoMethod($method, 'set expected arguments at ...
[ "0.663617", "0.6197283", "0.6181118", "0.6123616", "0.61158055", "0.60656667", "0.60416925", "0.6019767", "0.6013353", "0.59729475", "0.5905827", "0.58947515", "0.58783907", "0.57981527", "0.5776777", "0.5765131", "0.5691031", "0.56734025", "0.5584787", "0.5557388", "0.554498...
0.72324044
0
Test delting a cube from the datawarehouse
Тест удаления куба из хранилища данных
function testDelete() { $olap = new Olap($this->dbh); $cube = $olap->getCube($this->testCubeName); $cid = $cube->id; $olap->deleteCube($this->testCubeName); $this->assertFalse($this->dbh->TableExists("facts_".$cid)); $this->assertFalse($this->dbh->TableExists("dimdat_".$cid)); $this->assertEquals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDestroyData()\n {\n $store = new Storage(TESTING_STORE);\n\n // get id from our first item\n $id = $store->read()[0]['_id'];\n\n // destroy the data by id\n $store->destroy($id);\n\n // get the rest of data after destroy\n $rest_of_items = $st...
[ "0.6458169", "0.6409271", "0.6284906", "0.62696135", "0.6229614", "0.61590683", "0.61413807", "0.60660404", "0.6056308", "0.6036282", "0.5992165", "0.5991647", "0.59905094", "0.59745127", "0.5966316", "0.5935869", "0.5919343", "0.59118456", "0.58981013", "0.58669305", "0.5845...
0.8215077
0
Test dynamically adding dimensions and measures This process is desinged to be very dynamic so that new cubes can be created easily simply by inserting data for the first time
Тест динамического добавления измерений и показателей Этот процесс спроектирован для того, чтобы быть очень динамичным, чтобы новые кубы можно было создавать легко, просто вставив данные впервые
function testCreateCubeDimensionMeasures() { $olap = new Olap($this->dbh); $olap->deleteCube($this->testCubeName); // Purge cube if already exists // Get new cube $cube = $olap->getCube($this->testCubeName); // Now dynamically create dimension $dim = $cube->getDimension("country"); $this->ass...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testCreateCubeDimensionDynTypes()\r\n\t{\r\n\t\t$olap = new Olap($this->dbh);\r\n\t\t$olap->deleteCube($this->testCubeName); // Purge cube if already exists\r\n\r\n\t\t// Get new cube\r\n\t\t$cube = $olap->getCube($this->testCubeName);\r\n\r\n\t\t// Now dynamically create dimension called time which shoul...
[ "0.689197", "0.61982375", "0.61427003", "0.5953578", "0.5591546", "0.5512107", "0.55117154", "0.5497767", "0.53323084", "0.53080904", "0.5259773", "0.5244668", "0.5133032", "0.5087535", "0.50332665", "0.5024692", "0.49972546", "0.49882406", "0.49519858", "0.49470866", "0.4940...
0.7783917
0
Get the Suggestions instance
Получить экземпляр Suggestions
private function getSuggest(): Suggestions { if (!$this->suggest) { $this->suggest = new Suggestions(config("dadataapi.token", "")); $this->suggest->init(); } return $this->suggest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSuggestions()\n {\n return $this->suggestions;\n }", "public function getSuggestions()\n {\n return $this->suggestions;\n }", "public function getSuggestions()\n {\n return $this->suggestions;\n }", "public function getSuggestion()\n {\n ret...
[ "0.7947267", "0.7947267", "0.7947267", "0.7461611", "0.7064526", "0.69612247", "0.6940691", "0.68623954", "0.67576015", "0.65973693", "0.6486007", "0.6377333", "0.6363485", "0.6336623", "0.6326396", "0.6220813", "0.6191525", "0.61677074", "0.6164581", "0.61405957", "0.6137644...
0.84407645
0
Get the Clean instance
Получить экземпляр Clean
private function getClean(): Clean { if (!$this->clean) { $this->clean = new Clean(config("dadataapi.token", ""), config("dadataapi.secret", "")); $this->clean->init(); } return $this->clean; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getCleanInstance() {\n\t\treturn new self();\n\t}", "public static function inst() {\n\t\tif (class_exists('HTMLPurifier')) return new PurifierHTMLCleaner();\n\t\telseif (class_exists('tidy')) return new TidyHTMLCleaner();\n\t}", "public static function getInstance()\n {\n retu...
[ "0.7661074", "0.6260626", "0.59662575", "0.59662575", "0.5936132", "0.59254", "0.5911795", "0.5882356", "0.5882356", "0.5882356", "0.5882356", "0.5872427", "0.5853848", "0.58532685", "0.58178556", "0.57843477", "0.57768387", "0.5771152", "0.5767381", "0.5764695", "0.57628983"...
0.8249438
0
Transpile the endpush statements into valid PHP.
Преобразуйте инструкции endpush в корректный PHP.
protected function transpileEndPush(): string { return '<?php $__env->stopPush(); ?>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function transpileEndWhile(): string\n {\n return '<?php endwhile; ?>';\n }", "protected function transpileEndEmpty(): string\n {\n return '<?php endif; ?>';\n }", "function popEnd();", "protected function transpileEndForElse(): string\n {\n return '<?php endif; ...
[ "0.6062892", "0.5919314", "0.5888236", "0.58232933", "0.569826", "0.5395661", "0.5386874", "0.50884247", "0.5070526", "0.49963802", "0.49697468", "0.49627882", "0.49270317", "0.47720084", "0.47627184", "0.47275335", "0.47258148", "0.4695156", "0.4661549", "0.461586", "0.46113...
0.7379488
0
Transpile the endprepend statements into valid PHP.
Транспилируйте инструкции endprepend в корректный PHP.
protected function transpileEndPrepend(): string { return '<?php $__env->stopPrepend(); ?>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function transpileEndEmpty(): string\n {\n return '<?php endif; ?>';\n }", "protected function transpileEndForeach(): string\n {\n return '<?php endforeach; ?>';\n }", "protected function transpilePrepend($expression): string\n {\n return \"<?php \\$__env->startPre...
[ "0.59632754", "0.5913365", "0.5886368", "0.5828892", "0.57878953", "0.55147606", "0.5476671", "0.5432337", "0.5395477", "0.53937656", "0.53665245", "0.5327773", "0.531286", "0.5241707", "0.5236197", "0.52219677", "0.51253927", "0.50604236", "0.50117904", "0.4954012", "0.49334...
0.7411938
0
Validates a proposed dimension length.
Проверяет предложенную длину размера.
public function validateDimensionLength($length) { $length = intval($length); if ($length > 1) { return $length; } throw new \InvalidArgumentException( $this->trans('commands.site_builder_console.responsive-image.messages.length-error') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validateDimensions($element, FormStateInterface $form_state) {\n $values = $form_state->getValue($element['#parents']);\n\n if (!($values['width'] || $values['height'])) {\n $form_state\n ->setError($element['width'], t('Width or height must be set.'))\n ->setError($...
[ "0.6615437", "0.63692", "0.63066304", "0.6260365", "0.6174759", "0.6119951", "0.6079696", "0.60157114", "0.5959943", "0.58906597", "0.58675194", "0.5743624", "0.5721003", "0.5694551", "0.5631127", "0.5623533", "0.56182754", "0.560359", "0.55832493", "0.5574126", "0.5555166", ...
0.75270975
0
controller for the 'About' view
контроллер для представления 'About'
public function about() { $data = [ 'title' => 'Welcome to the About page.' // associative array ]; $this->view('pages/about', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionAbout()\n\t{\n\t\t$this->render('about');\n\t}", "public function actionAbout()\n\t{\n\t\t//$model=Event::model()->find('id=?',array(User::getUserSelectedEvent()));\n\t\t$this->render('pages/about');\n\t}", "public function about(){\n return view ('pages.about');\n }", "public...
[ "0.84067214", "0.81902933", "0.818836", "0.81132483", "0.81091154", "0.80831116", "0.8079613", "0.8070135", "0.8058509", "0.80572337", "0.8054231", "0.80529314", "0.8044396", "0.8038179", "0.8021706", "0.80161613", "0.80021477", "0.7995905", "0.7993695", "0.7984452", "0.79751...
0.82924235
1
Get the renraku main elevator.
Получить основной лифт renraku.
public function getRenrakuElevator() { return $this->getLocation('Elevator'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Elevator $elevator)\n {\n $elevator = Elevator::find($elevator->id);\n return $elevator;\n }", "public function getMain()\n {\n return $this->get(self::MAIN);\n }", "public function index(Elevator $elevator)\n {\n $elevator = Elevator::all();\n ...
[ "0.6722224", "0.58128506", "0.5804517", "0.55325747", "0.5317013", "0.5300721", "0.52545345", "0.522242", "0.5170715", "0.50961226", "0.5092875", "0.50465465", "0.50375867", "0.5030795", "0.5028747", "0.4995099", "0.49825627", "0.49447304", "0.49129862", "0.49021974", "0.4899...
0.845781
0
Test case for reportsSkillv1reportsbenchcount Calculates the \"Bench Strength\" for a Role.
Тест-кейс для reportsSkillv1reportsbenchcount Рассчитывает \"Bench Strength\" для Роли.
public function testReportsSkillv1reportsbenchcount() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportsbench()\n {\n\n }", "public function testReportsSkillv1reportsroleidskills()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidskillsid2()\n {\n\n }", "public function testReportsSkillv1reportsrolesroleId()\n {\n\n }", "publi...
[ "0.6523906", "0.6064717", "0.5978368", "0.5875494", "0.5863678", "0.58062905", "0.58028096", "0.57900167", "0.57597107", "0.55892015", "0.55733585", "0.5558232", "0.55079305", "0.5384664", "0.5292347", "0.5262277", "0.5262277", "0.51984715", "0.5114373", "0.5069586", "0.50341...
0.71458066
0
Test case for reportsSkillv1reportsbranchesroles Retrieves the Roles of one or more Branches.
Тест-кейс для reportsSkillv1reportsbranchesroles Получает роли одного или нескольких веток.
public function testReportsSkillv1reportsbranchesroles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportsbranchesrolesroleId()\n {\n\n }", "public function getRoles()\r\n {\r\n return $this->roles;\r\n }", "public function & GetRoles ();", "public function getRoles() \n {\n return $this->roles;\n }", "public function getRoles()\n\t{\n\t\...
[ "0.69185275", "0.58412087", "0.5811287", "0.57940686", "0.5783887", "0.57807046", "0.57672215", "0.57672215", "0.57672215", "0.5763683", "0.57483304", "0.5741969", "0.5718944", "0.5718944", "0.5718944", "0.5718944", "0.5718944", "0.5718944", "0.569821", "0.567226", "0.5663351...
0.7043786
0
Test case for reportsSkillv1reportscalibrationid Calibrate Manager Requests.
Тестовый случай для отчетовSkillv1reportscalibrationid Запросы к менеджеру калибровки.
public function testReportsSkillv1reportscalibrationid() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportscalibration()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidusers()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidskills()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidskillsid2()\n {...
[ "0.74241346", "0.7225526", "0.72201425", "0.7005692", "0.681683", "0.63618636", "0.6307236", "0.60188794", "0.5978364", "0.59382004", "0.5798529", "0.5717405", "0.56868565", "0.5587941", "0.5435142", "0.54343563", "0.5417498", "0.53608346", "0.53501225", "0.52482784", "0.5160...
0.74433064
0
Test case for reportsSkillv1reportscalibrationidskills List of Skills In Managers Calibration.
Тестовый случай для отчетов Skillv1reports calibrationid skills Список навыков в калибровке менеджеров.
public function testReportsSkillv1reportscalibrationidskills() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportscalibrationidusers()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidskillsid2()\n {\n\n }", "public function testReportsSkillv1reportscalibrationid()\n {\n\n }", "public function testReportsSkillv1reportscalibration()\n {\n\n ...
[ "0.72161853", "0.72022086", "0.7200928", "0.7175613", "0.68999", "0.6816111", "0.6661367", "0.6619578", "0.6515071", "0.64454484", "0.63959134", "0.6257187", "0.61638916", "0.59000736", "0.57072604", "0.5623211", "0.55558586", "0.5512703", "0.5228359", "0.51875955", "0.505004...
0.7894917
0
Test case for reportsSkillv1reportscalibrationidskillsid2 View latest evaluation comparison (Skill).
Тест-кейс для отчетовSkillv1reportscalibrationidskillsid2 Просмотр последней оценки сравнения (Skill).
public function testReportsSkillv1reportscalibrationidskillsid2() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportscalibrationidusersid2()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidskills()\n {\n\n }", "public function testReportsSkillv1reportsbench()\n {\n\n }", "public function testReportsSkillv1reportscalibration()\n {\n\n }", ...
[ "0.7377889", "0.73298985", "0.71655643", "0.7142424", "0.71249443", "0.6981827", "0.6974524", "0.65450656", "0.64922154", "0.6456633", "0.6449578", "0.6336866", "0.6321389", "0.6259015", "0.6006524", "0.5888725", "0.5841711", "0.57918775", "0.56113863", "0.5355491", "0.520615...
0.7926563
0
Test case for reportsSkillv1reportscalibrationidusers List of Users In Managers Calibration.
Тест-кейс для отчетов Skillv1reports calibrationid пользователей Список пользователей в калибровке менеджеров.
public function testReportsSkillv1reportscalibrationidusers() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportscalibrationidusersid2()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidskills()\n {\n\n }", "public function testReportsSkillv1reportscalibrationid()\n {\n\n }", "public function testReportsSkillv1reportsskillidusers()\n {\n\n ...
[ "0.7048717", "0.65648806", "0.6537084", "0.64929116", "0.64076555", "0.63650024", "0.62222016", "0.60703206", "0.60524577", "0.57142085", "0.5631932", "0.56110173", "0.5553373", "0.54262197", "0.53882074", "0.5349296", "0.5344669", "0.53328055", "0.5315474", "0.5261463", "0.5...
0.74573135
0
Test case for reportsSkillv1reportscalibrationidusersid2 View latest evaluation comparison (User).
Тестовый случай для отчета Skillv1reportscalibrationidusersid2 Просмотр последней оценки сравнения (Пользователь).
public function testReportsSkillv1reportscalibrationidusersid2() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportscalibrationidskillsid2()\n {\n\n }", "public function testReportsSkillv1reportscalibrationidusers()\n {\n\n }", "public function testReportsSkillv1reportsskillidusers()\n {\n\n }", "public function testReportsSkillv1reportsjohariusersuserId()\n {\...
[ "0.7116553", "0.7076583", "0.6648443", "0.6541337", "0.6475375", "0.6406435", "0.6405899", "0.6355836", "0.6349908", "0.63233477", "0.60344416", "0.5814094", "0.57633936", "0.5714469", "0.56711715", "0.5629468", "0.5607509", "0.5588484", "0.5555198", "0.5549478", "0.5543734",...
0.75708514
0
Test case for reportsSkillv1reportsjoharimanagersmanagerIdcellscellId Retrieves the list of Skills in one cell of the Calibration Matrix Manager report.
Тест-кейс для отчета reportsSkillv1reportsjoharimanagersmanagerIdcellscellId Получает список навыков в одной ячейке отчета Calibration Matrix Manager.
public function testReportsSkillv1reportsjoharimanagersmanagerIdcellscellId() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportsjoharimanagersmanagerId()\n {\n\n }", "public function getMetricsManager($manager_id)\n {\n $dateRange = Carbon::now();\n \n\n //Get past Last Month = 4 Week Lag\n $endIniLag = $dateRange->copy()->subWeek(4);\n $dateNow = Ca...
[ "0.56606007", "0.5240909", "0.45637423", "0.4557764", "0.45374626", "0.44850805", "0.44461027", "0.4426108", "0.4412339", "0.4408985", "0.44059372", "0.42902392", "0.4280367", "0.4272948", "0.4268982", "0.4258941", "0.42425618", "0.42388588", "0.4233732", "0.4201831", "0.4194...
0.7454594
0
Test case for reportsSkillv1reportsroleidskills Retrieves all Roles from all roles who should have the given skill.
Тест-кейс для reportsSkillv1reportsroleidskills Получает все роли из всех ролей, которым должна принадлежать заданная компетенция.
public function testReportsSkillv1reportsroleidskills() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportsrolesroleId()\n {\n\n }", "public function testReportsSkillv1reportsrolesroleIdskillsskillId()\n {\n\n }", "public function testReportsSkillv1reportsskillidroles()\n {\n\n }", "public function testReportsSkillv1reportsroleidusers()\n {\n\n }", ...
[ "0.6811063", "0.65955716", "0.65916336", "0.63338804", "0.59569407", "0.5790797", "0.5741023", "0.54813", "0.54129696", "0.5408658", "0.54008687", "0.5400436", "0.5390288", "0.5385416", "0.5372779", "0.535811", "0.53196025", "0.52962136", "0.52709365", "0.52684796", "0.525720...
0.70661277
0
Test case for reportsSkillv1reportsroleidusers Retrieves Report for all Users in a role.
Тест-кейс для reportsSkillv1reportsroleidusers Получает отчет для всех пользователей в роли.
public function testReportsSkillv1reportsroleidusers() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportsrolesroleId()\n {\n\n }", "function admin_userReports()\n\t{\n\t\t$this->User->recursive = 0;\n\t\t$rol = $this->data['User']['role_id'];\t\n\t\tforeach($this->data['User'] as $indice =>$valor)\n\t\t{\n\t\t\tif($valor==1)\n\t\t\t{\n\t\t\t\t$array[] = $indice;\n\t\t\...
[ "0.66675955", "0.6554896", "0.6339028", "0.6233831", "0.6206203", "0.60357016", "0.5904139", "0.5776291", "0.5647879", "0.5631027", "0.56124485", "0.5603335", "0.5599912", "0.55691105", "0.55643445", "0.5509548", "0.55043477", "0.54992723", "0.5462931", "0.54588455", "0.54350...
0.7167384
0
Test case for reportsSkillv1reportsskillidroles Retrieves all Roles from all roles who should have the given skill.
Тест-кейс для reportsSkillv1reportsskillidroles. Получает все роли из всех ролей, которым должен быть присвоен данный навык.
public function testReportsSkillv1reportsskillidroles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReportsSkillv1reportsrolesroleIdskillsskillId()\n {\n\n }", "public function testReportsSkillv1reportsrolesroleId()\n {\n\n }", "public function testReportsSkillv1reportsroleidskills()\n {\n\n }", "public function testReportsSkillv1reportsroleidusers()\n {\n\n }", ...
[ "0.69135195", "0.6775212", "0.6655031", "0.6249186", "0.61530596", "0.5817435", "0.57081425", "0.56971705", "0.56935227", "0.5676055", "0.5635882", "0.56285626", "0.5619122", "0.5609887", "0.5568366", "0.5566593", "0.5557561", "0.55532616", "0.5549703", "0.5495251", "0.548781...
0.71777993
0
/ Test export of a truefalsequestion with 'True' as the right answer.
/ Тест экспорта вопроса с выбором правильного ответа с правильным ответом 'True'.
public function test_export_truefalse_true() { // Create moodle question object. $qdata = new stdClass(); $qdata->id = 12; $qdata->contextid = 0; $qdata->qtype = 'truefalse'; $qdata->name = 'True false question'; $qdata->questiontext = 'The answer is true.'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_truefalse_false() {\n // Create moodle question object.\n $qdata = new stdClass();\n $qdata->id = 12;\n $qdata->contextid = 0;\n $qdata->qtype = 'truefalse';\n $qdata->name = 'True false question';\n $qdata->questiontext = 'The answer is ...
[ "0.7996276", "0.6497824", "0.6454147", "0.644593", "0.6151401", "0.613849", "0.6039864", "0.60047907", "0.6000208", "0.5989386", "0.59543693", "0.59249306", "0.59044784", "0.590114", "0.5865645", "0.5852168", "0.5832759", "0.58129305", "0.579751", "0.575005", "0.5736989", "...
0.80866563
0
/ Test export of a truefalsequestion with 'False' as the right answer.
/ Тест экспорта вопроса с выбором правильного ответа с 'False' как правильного ответа.
public function test_export_truefalse_false() { // Create moodle question object. $qdata = new stdClass(); $qdata->id = 12; $qdata->contextid = 0; $qdata->qtype = 'truefalse'; $qdata->name = 'True false question'; $qdata->questiontext = 'The answer is true.'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_truefalse_true() {\n // Create moodle question object.\n $qdata = new stdClass();\n $qdata->id = 12;\n $qdata->contextid = 0;\n $qdata->qtype = 'truefalse';\n $qdata->name = 'True false question';\n $qdata->questiontext = 'The answer is t...
[ "0.7983532", "0.63990045", "0.6363772", "0.63408196", "0.6270577", "0.6232118", "0.60734636", "0.60333943", "0.6031601", "0.5982358", "0.591571", "0.5911538", "0.5823321", "0.5783189", "0.5773132", "0.57641125", "0.57500976", "0.57121074", "0.5700361", "0.5698581", "0.5695056...
0.8054624
0
/ Test export of a multiplechoicequestion with one right answer.
/ Тест экспорта вопроса с несколькими вариантами ответов с одним правильным ответом.
public function test_export_multichoice_1() { $qdata = new stdClass(); $qdata->id = 123; $qdata->contextid = 0; $qdata->qtype = 'multichoice'; $qdata->name = 'Multiple choice question'; $qdata->questiontext = 'Questiontext of muliple choice question.'; $qdata->que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_multichoice_2() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'multichoice';\n $qdata->name = 'Multiple choice question';\n $qdata->questiontext = 'Questiontext of muliple choice question.';\n ...
[ "0.8165019", "0.75053316", "0.6803077", "0.67497796", "0.66980463", "0.6653375", "0.6635471", "0.6498156", "0.6498156", "0.64314824", "0.6310864", "0.63024724", "0.62119484", "0.6203218", "0.61787975", "0.61667657", "0.6112036", "0.6107537", "0.6068423", "0.6068423", "0.60347...
0.8222393
0
/ Test export of a multiplechoicequestion with two right answers.
/ Тест экспорта вопроса с несколькими вариантами ответов, где правильными являются два ответа.
public function test_export_multichoice_2() { $qdata = new stdClass(); $qdata->id = 123; $qdata->contextid = 0; $qdata->qtype = 'multichoice'; $qdata->name = 'Multiple choice question'; $qdata->questiontext = 'Questiontext of muliple choice question.'; $qdata->que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_multichoice_1() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'multichoice';\n $qdata->name = 'Multiple choice question';\n $qdata->questiontext = 'Questiontext of muliple choice question.';\n ...
[ "0.80292404", "0.70845556", "0.66224164", "0.6592941", "0.6530584", "0.651155", "0.6451827", "0.6428118", "0.6418482", "0.6383064", "0.6370345", "0.6370345", "0.6365396", "0.6188581", "0.6085074", "0.606559", "0.5949427", "0.5931897", "0.5904636", "0.58991724", "0.58991724", ...
0.80154294
1
/ Test export of a shortanswerquestion.
/ Тест экспорта короткого вопроса с ответом.
public function test_export_shortanswer() { $qdata = new stdClass(); $qdata->id = 123; $qdata->contextid = 0; $qdata->qtype = 'shortanswer'; $qdata->name = 'Short answer question'; $qdata->questiontext = 'Fill in the gap in this sequence: Alpha, ________, Gamma.'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_formattings() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'shortanswer';\n $qdata->name = 'Short answer question';\n $qdata->questiontext = \"<p>This is some text <a href=\\\"test\\\">link</a></p>\...
[ "0.7109705", "0.68223125", "0.67818344", "0.67400974", "0.6566877", "0.65603596", "0.6408688", "0.6394501", "0.628608", "0.628608", "0.6260088", "0.6218631", "0.6175346", "0.6175346", "0.6091874", "0.60362047", "0.6022505", "0.6022505", "0.6022072", "0.6022072", "0.60001755",...
0.8313905
0
/ Test export of a numericalquestion.
/ Тест экспорта числового вопроса.
public function test_export_numerical() { question_bank::load_question_definition_classes('numerical'); $qdata = new stdClass(); $qdata->id = 123; $qdata->contextid = 0; $qdata->qtype = 'numerical'; $qdata->name = 'Numerical question'; $qdata->questiontext = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_shortanswer() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'shortanswer';\n $qdata->name = 'Short answer question';\n $qdata->questiontext = 'Fill in the gap in this sequence: Alpha, ________, Gamma...
[ "0.6790269", "0.6640056", "0.66179854", "0.6462575", "0.6414698", "0.63925827", "0.62711763", "0.5965449", "0.5777919", "0.57633394", "0.5640636", "0.559452", "0.559452", "0.5490388", "0.5476816", "0.5394211", "0.5361497", "0.53091663", "0.52704066", "0.5269134", "0.5269134",...
0.79377633
0
/ Test export of a matchingquestion.
/ Тест экспорта вопроса с соответствием.
public function test_export_matching() { $qdata = new stdClass(); $qdata->id = 123; $qdata->contextid = 0; $qdata->qtype = 'match'; $qdata->name = 'Matching question'; $qdata->questiontext = 'Match the upper and lower case letters.'; $qdata->questiontextformat = F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_shortanswer() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'shortanswer';\n $qdata->name = 'Short answer question';\n $qdata->questiontext = 'Fill in the gap in this sequence: Alpha, ________, Gamma...
[ "0.67380065", "0.6375668", "0.63270503", "0.6327032", "0.631221", "0.6292438", "0.6233561", "0.615129", "0.5685606", "0.5587672", "0.5516082", "0.5516082", "0.5485494", "0.54517585", "0.53691936", "0.5320687", "0.5320014", "0.5282536", "0.5282536", "0.52816486", "0.52583456",...
0.72561455
0
/ Test export of a shortanswerquestion.
/ Тест экспорта короткого вопроса с ответом.
public function test_export_formattings() { $qdata = new stdClass(); $qdata->id = 123; $qdata->contextid = 0; $qdata->qtype = 'shortanswer'; $qdata->name = 'Short answer question'; $qdata->questiontext = "<p>This is some text <a href=\"test\">link</a></p>"; $qdata...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_export_shortanswer() {\n $qdata = new stdClass();\n $qdata->id = 123;\n $qdata->contextid = 0;\n $qdata->qtype = 'shortanswer';\n $qdata->name = 'Short answer question';\n $qdata->questiontext = 'Fill in the gap in this sequence: Alpha, ________, Gamma...
[ "0.83143216", "0.6823012", "0.67824703", "0.67401737", "0.65669054", "0.6561187", "0.6409035", "0.63943607", "0.6287779", "0.6287779", "0.62613237", "0.6219846", "0.6176603", "0.6176603", "0.6092933", "0.6037888", "0.6024012", "0.6024012", "0.6023389", "0.6023389", "0.6001486...
0.71101743
1
a hack to remove the group tags menu item before the admin bar is displayed. it works because the admin bar is called last
хак для удаления элемента меню с групповыми тегами перед отображением панели администратора. он работает потому что панель администратора вызывается последней
function gtags_remove_tags_from_admin_bar() { global $bp; unset ( $bp->bp_options_nav['groups']['98564'] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove_admin_bar_item() {\n\t\tglobal $wp_admin_bar;\n\n\t\tif ( is_tax( 'ctrs-groups' ) ) {\n\t\t\t$wp_admin_bar->remove_menu( 'edit' );\n\t\t}\n\t}", "function lgm_theme_remove_tags_menu() {\n\t global $submenu;\n\t unset($submenu['edit.php'][16]);\n\t}", "function remove_admin_bar() {\...
[ "0.7713562", "0.76230097", "0.73601264", "0.72772735", "0.7105073", "0.70696485", "0.7057334", "0.6975749", "0.6954849", "0.69312185", "0.6868854", "0.6868198", "0.6868116", "0.6815004", "0.680022", "0.67818713", "0.6770074", "0.67426085", "0.6738314", "0.6731177", "0.6731177...
0.82862747
0
hook into group listing function, output the groups that match a given tag
внедриться в функцию списка групп, выводить группы, соответствующие заданному тегу
function gtags_show_groups_for_tag( $groups ) { global $bp, $groups_template, $gtags_done; /*echo '<pre>ajax_querystring: '; print_r( $bp->ajax_querystring ); echo '</pre>'; echo '<pre>current_action: '; print_r( $bp->current_action ); echo '</pre>'; echo '<pre>POST: '; print_r( $_POST ); echo '</pre>';*/ if ( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gtags_group_tags() {\n\techo gtags_get_group_tags();\n}", "function gtags_make_tags_for_group() {\n\tglobal $bp, $wpdb;\n\t\n\t$group_tags = gtags_get_group_tags();\n\t$items = explode( \",\", $group_tags );\n\t$output = '';\n\tforeach( $items as $item ) {\n\t\t$item = trim( strtolower( $item ) );\n\t\t...
[ "0.68997806", "0.64606094", "0.64570034", "0.63846564", "0.627462", "0.627462", "0.620892", "0.6189643", "0.6162111", "0.61269486", "0.61269486", "0.61019164", "0.6045043", "0.59646183", "0.592743", "0.5879378", "0.5841851", "0.58017784", "0.5764879", "0.5677415", "0.5677415"...
0.7026163
0
return tag cloud args array. If nothing is passed get the value stored from the admin. Either way mix with the defaults NOTE: EDIT THESE VALUES VIA THE NEW ADMIN, NOT HERE
вернуть массив аргументов теговой облака. Если ничего не передано, получить значение, сохранённое в административной панели. В любом случае смешать с дефолтными значениями. Заметка: РЕДАКТИРОВАТЬ ЭТИ ЗНАЧЕНИЯ В НОВОЙ АДМИНИСТРАЦИИ, А НЕ ЗДЕСЬ.
function gtags_cloud_args( $args = '' ) { if ( !$args ) $args = get_option( 'gtags_cloud_args' ); $defaults = array( 'smallest' => 9, 'largest' => 20, 'number' => 36, 'orderby' => 'count', 'order' => 'DESC', 'separator' => ' ' ); $r = wp_parse_args( $args, $defaults ); //echo '<pre style=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function caldol_hook_widget_tag_cloud_args($args = array()){\n\n\n$newArgs = array(\n'smallest' => 8,\n'largest' => 15,\n'number' => 20,\n\n);\nreturn array_merge($args, $newArgs);\n}", "function pulcherrimum_widget_tag_cloud_args($args)\n {\n $args['largest'] = 1;\n $args['smallest'] = 1;\n...
[ "0.74286026", "0.73751366", "0.7282202", "0.72037154", "0.71901053", "0.7079049", "0.70757693", "0.70679957", "0.7062735", "0.68988866", "0.6862165", "0.6725804", "0.6682936", "0.64634186", "0.64187825", "0.6295519", "0.6174228", "0.61135566", "0.6048166", "0.6046552", "0.582...
0.7671822
0
create the form to add tags
создать форму для добавления тегов
function gtags_add_tags_form() { global $show_group_add_form; if ($show_group_add_form) return; $show_group_add_form = true; ?> <p class="editfield"> <label for="group-tags">Mots-clés</label> <input type="text" name="group-tags" id="group-tags" value="<?php gtags_group_tags() ?>" /> Séparez les mots-clés par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createTag()\n {\n $this->di->common->verifyAdmin();\n $form = new Form('tag-form', Models\\Tag::class);\n if ($this->di->request->getMethod() == 'POST') {\n if ($this->di->tag->createFromForm($form)) {\n $this->di->common->redirectMessage('admin/tag...
[ "0.7419961", "0.7333812", "0.6872685", "0.6872685", "0.680366", "0.67319494", "0.6721222", "0.6680202", "0.6678446", "0.66120154", "0.6590822", "0.6590822", "0.65587604", "0.6556337", "0.6538833", "0.6500245", "0.6494125", "0.6491835", "0.64738804", "0.6445646", "0.6440283", ...
0.7462191
0
show list of the most popular tags used when adding tags
показать список самых популярных тегов, используемых при добавлении тегов
function gtags_show_tags_in_add_form() { if ( !get_option('gtags_popular_limit') ) $popular_tag_limit = 36; else $popular_tag_limit = get_option('gtags_popular_limit'); $tags = gtags_make_tags(); uasort( $tags, create_function('$a, $b', 'return ($b->count > $a->count);') ); $i = 0; foreach ( $tags as $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function topTags()\r\n {\r\n $this->paginatedResult->setLimit(15); \r\n\t $this->paginatedResult->setOffset(0);\r\n\t $query = \"SELECT count(a.tag_name) total, a.tag_name as name FROM tags a inner join list_tags_links b on a.ID = b.ID_tags inner join links l on l.id = b.ID_Links where l.id_status = 4...
[ "0.68703026", "0.6846059", "0.67717826", "0.67083925", "0.66938275", "0.66036844", "0.6550811", "0.6456048", "0.63251466", "0.62863475", "0.6222407", "0.6167334", "0.6108464", "0.6100883", "0.601592", "0.60112643", "0.5997048", "0.593871", "0.5889783", "0.5888817", "0.5881361...
0.7358918
0
create the form to add group categories
создать форму для добавления категорий групп
function gtags_group_category_form() { global $bp, $show_group_add_form_cats; if ($show_group_add_form_cats) return; // prevents showing form twice $show_group_add_form_cats = true; // the group category $group_cats = get_option('gtags_category'); if (empty($group_cats)) return; $selected = groups_get_grou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create() \n\t{\n\t\n\t\t$this->data = (object) array();\n\t\t// Check for post data\n\t\t$this->form_validation->set_rules($this->_validation_rules);\n\t\t\n\t\t\n\t\t// if postback-validate\n\t\tif ($this->form_validation->run()) \n\t\t{\n\t\t\t$input = $this->input->post();\n\t\t\t$id = $this->ca...
[ "0.7164739", "0.71135646", "0.711268", "0.7093541", "0.70554733", "0.70485276", "0.6980817", "0.6980715", "0.69707566", "0.6960069", "0.695919", "0.6900631", "0.68955296", "0.6819081", "0.68073636", "0.6784756", "0.67825097", "0.6780719", "0.67767566", "0.6775497", "0.6768015...
0.7599373
0
show tags in group directory listing
показывать теги в группе при перечислении каталога
function gtags_show_tags_in_directory() { if ( get_option('gtags_show_in_dir_list') == 'true' && gtags_get_group_tags() ) { ?><div class="gtags-item-desc gtags-item-tags absolute"><?php echo gtags_make_tags_for_group() ?></div><?php } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gtags_group_tags() {\n\techo gtags_get_group_tags();\n}", "function printTags(){\n\n\t\t/* Start HTML */\n\t\t$output = '<ul class=\"taglist\">';\n\t\t$tags = explode(',',$this->tags);\n\t\tforeach($tags as $tag){\n\t\t\t$output .= '<li class=\"tag\"><a href=\"#!/search&tags='.urlencode(strtolower(str_r...
[ "0.69700783", "0.6242676", "0.6143441", "0.61358124", "0.6057817", "0.59937644", "0.5981897", "0.5948769", "0.59247035", "0.59072196", "0.58871144", "0.5860508", "0.58542746", "0.58462656", "0.5757939", "0.5743946", "0.57331616", "0.57303905", "0.5720494", "0.5717864", "0.570...
0.82107353
0
show tags in group header
показывать теги в заголовке группы
function gtags_show_tags_in_header( $description ) { $gtags_single_header = get_option('gtags_single_header'); if ( $gtags_single_header == 'true' || !$gtags_single_header ) { // default is to show if ( gtags_get_group_tags() ) { $description .= '<div class="center gtags-header">' . gtags_make_tags_for_group(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gtags_group_tags() {\n\techo gtags_get_group_tags();\n}", "function getHeaderTags()\n {\n $filter = '(';\n for ($i = 1; $i <= 20; $i++) {\n $filter .= '//h' . $i . '|';\n }\n $filter = trim($filter, '|') . ')';\n \n $elements = $this->xpath->query($fil...
[ "0.6548573", "0.64746636", "0.6217371", "0.61318195", "0.6127571", "0.6099975", "0.6061292", "0.60564303", "0.605181", "0.601027", "0.59603345", "0.5951846", "0.5933976", "0.59272224", "0.58899605", "0.58689654", "0.5823299", "0.58204496", "0.5818664", "0.5814127", "0.5800693...
0.7378042
0
show tags for an individual group with links
показать теги для отдельной группы с ссылками
function gtags_make_tags_for_group() { global $bp, $wpdb; $group_tags = gtags_get_group_tags(); $items = explode( ",", $group_tags ); $output = ''; foreach( $items as $item ) { $item = trim( strtolower( $item ) ); if ($item=='') continue; $link = $bp->root_domain . '/projets/tag/' . urlencode( $item ); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gtags_group_tags() {\n\techo gtags_get_group_tags();\n}", "function gtags_show_groups_for_tag( $groups ) {\n\tglobal $bp, $groups_template, $gtags_done;\n\n\t/*echo '<pre>ajax_querystring: '; print_r( $bp->ajax_querystring ); echo '</pre>';\n\techo '<pre>current_action: '; print_r( $bp->current_action )...
[ "0.6887231", "0.6569886", "0.64282626", "0.64076185", "0.6394879", "0.6394242", "0.6352002", "0.6195861", "0.61637825", "0.6153456", "0.613417", "0.61196923", "0.61017656", "0.60538167", "0.6038117", "0.59808826", "0.59432054", "0.5926009", "0.59009004", "0.58874017", "0.5874...
0.707514
0
Api get all Idea Pending
Api получение всех идей в ожидании
public function apiGetIdeaPending(Request $request){ $staff_id = Auth::user()->id; $ideas = Idea::with('niche1','niche2','source1','source2','source3')->where('staff_id', $staff_id)->where('result_approve', '0')->get(); $niches = Niche::all(); $sources = Source::all(); return res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllPending(): array;", "public function get_project_all(){\n }", "public static function Pending()\n {\n $pending = \\ApprovalSequence\\Models\\Entity::Where('entity_type', self::class)->get();\n $PendingEntity = $pending->map(function ($item) {\n // check ever...
[ "0.69825804", "0.6199115", "0.6188225", "0.607146", "0.6011159", "0.597972", "0.59654677", "0.59312016", "0.5930032", "0.58894914", "0.5870544", "0.5868693", "0.58361626", "0.5821395", "0.5817028", "0.580315", "0.579051", "0.57878387", "0.5782575", "0.577676", "0.57704526", ...
0.72289324
0
/ Get familydetail by ID
/ Получить familydetail по ID
function get_familydetail($ID) { return $this->db->get_where('FamilyDetails',array('Person_ID'=>$ID))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function find_family($id){\n return Recommendation::where('id_recomendado',$id)->where('status', Recommendation::REGISTER)->get();\n }", "function select_family($familyID)\n\t{\n\t\t$select_stmt = sprintf('SELECT * FROM family WHERE familyID = %s;', $familyID);\n\t\t$results = $this->db->query($...
[ "0.7446797", "0.71426636", "0.6950394", "0.66200143", "0.6551593", "0.6480988", "0.64791435", "0.6390417", "0.6376604", "0.637373", "0.6339436", "0.6306604", "0.6276279", "0.62472034", "0.6243148", "0.6230481", "0.62251174", "0.6219882", "0.6203033", "0.6185428", "0.6179999",...
0.8036156
0
/ F2 queryData([SQL query]) a method that will be supplied a SQL query and then return the data using an associative array. returns a single associative array (beware for errors ;) )
/ F2 queryData([SQL query]) метод, который получает SQL-запрос и возвращает данные с использованием ассоциативного массива. возвращает один ассоциативный массив (осторожно с ошибками ;) )
function queryData($query){ try { $pdo = db_init(); $rs = $pdo->query($query); return $rs->fetch(PDO::FETCH_ASSOC); } catch (PDOException $e) { logging($_SERVER['PHP_SELF'] . ", 44, Error Pulling Data:". $e->getMessage() ." ," . date("Y-m-d") . " " . date("h:i:sa")); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function query_data($sql) {\n try {\n $result = $this->conn->query($sql);\n return $result->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n die(\"DB ERROR: \".$e->getMessage());\n }\n\n }", "Public function get_data_by_query($query)\n\t\t{\n...
[ "0.73219293", "0.719383", "0.70522314", "0.70220757", "0.70062816", "0.69686294", "0.69070786", "0.6894684", "0.6861482", "0.6835143", "0.6806003", "0.68059844", "0.6794774", "0.6793355", "0.6720394", "0.6697206", "0.6670878", "0.6668211", "0.6646068", "0.66421163", "0.663575...
0.7585359
0
/ F5 insertData([table name], [data in associative array]) associative array which uses the KEY as the column names of the database.table and the value is the data that will be punched into the database.table. Example ... insertData('table_name' , Array('col_name' => 'value', ...));
/ F5 insertData([table name], [data in associative array]) ассоциативный массив, в котором ключ используется в качестве названия колонок базы данных.table, а значение — это данные, которые будут вставлены в базу данных.table. Пример ... insertData('table_name' , Array('col_name' => 'value', ...));
function insertData($table, $data){ validate(); $values = $cols = ""; foreach ($data as $key => $value) { $cols .= " " . $key . ","; $values .= " " . $value . ","; } $cols = substr($cols, 0, strlen($cols) - 1); $values = substr($values, 0, strlen($values) - 1); $query = "INSERT INTO $table ($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($table, array $data);", "public function insertData($table, $data){// method inserData body start\n\t\t$fields \t\t\t= array_keys( $data );\n\t\t//$values \t\t\t= array_map( \"mysql_real_escape_string\", array_values( $data ) );\n\t\t$values \t\t\t= array_values( $data );\n\t\t$query \t\t\...
[ "0.77261144", "0.7353225", "0.7293181", "0.72904634", "0.7263451", "0.7222435", "0.72201973", "0.7219743", "0.7206048", "0.7206048", "0.7203151", "0.71869284", "0.7109613", "0.70456785", "0.70409954", "0.7030569", "0.7023917", "0.70109946", "0.7005318", "0.69965225", "0.69715...
0.7421299
1