query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
/ WordPres Block nonpaying users Description: This function is intended to block all WordPress users who have not made purchases on Woocommerce within a stipulated period. Function Name: WordPres Block nonpaying users Function URL: Version: 1.0 Author: Renato de Lima Marques Author URI: This function depends on: Wordpr...
function wp_block_non_paying_users() { //get current date $today = date("Ymd"); //specific role $specific_role = 'customer'; //get specific role $users = get_users(['role__in' => [$specific_role]]); $initial_date = '2020-01-01'; $final_date = '2020-12-31'; $initial_date = date('Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function userUnblock()\n\t{\n\t\t// Make sure the payment is complete\n\t\tif($this->state != 'C') return;\n\t\t\n\t\t// Make sure the subscription is enabled\n\t\tif(!$this->enabled) return;\n\t\t\n\t\t// Paid and enabled subscription; enable the user if he's not already enabled\n\t\t$user = JFactory::get...
[ "0.6540568", "0.61093587", "0.6025784", "0.5831303", "0.57975626", "0.5781903", "0.57431173", "0.57319325", "0.5706095", "0.5696983", "0.56873477", "0.5627067", "0.56168973", "0.56053555", "0.5579712", "0.55587804", "0.55393374", "0.5524267", "0.5508076", "0.5480539", "0.5440...
0.8051911
0
Convert a number from any base to base 10
function base_decode($str, $base=62, $chars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') { if(!isset($base)) $base = strlen($chars); $len = strlen($str); $val = 0; $arr = array_flip(str_split($chars)); for($i = 0; $i < $len; ++$i) { $val = bcadd($val, bcmul($arr[$str[$i]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Base62To10($num)\n {\n $from = 62;\n $num = strval($num);\n $len = strlen($num);\n $dec = 0;\n for ($i = 0; $i < $len; $i++)\n {\n $pos = strpos(Base62Dict, $num[$i]);\n $dec = bcadd(bcmul(bcpow($from, $len - $i - 1), $pos), $dec);\n ...
[ "0.7466083", "0.7399061", "0.73195326", "0.7286478", "0.7261712", "0.71432006", "0.7136964", "0.70754397", "0.68738204", "0.6849612", "0.6841015", "0.679202", "0.6781211", "0.67708355", "0.67560166", "0.67493254", "0.6685662", "0.6681982", "0.66797656", "0.6660688", "0.664532...
0.6040569
32
check if the client IP is allowed to shorten
function is_ip_allowed () { if($_SERVER['REMOTE_ADDR'] != LIMIT_TO_IP) { die('You are not allowed to shorten URLs with this service.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allow_ip_address()\r\n\t{\r\n\t\t$bad = apply_filters('three_strikes_count', 0, $_SERVER['REMOTE_ADDR']);\r\n\t\treturn ($bad < THREE_STRIKES_LIMIT);\r\n\t}", "function controlAccess() {\n $ip = FILTER_INPUT(INPUT_SERVER, \"REMOTE_ADDR\");\n $whitelist = [\n \"127.0.0.1\",\n \"91.231...
[ "0.8080497", "0.7119515", "0.7067942", "0.699049", "0.6944062", "0.6934478", "0.6894841", "0.6794907", "0.67066944", "0.67011815", "0.667278", "0.6652571", "0.660994", "0.66075885", "0.65926033", "0.6574921", "0.6570565", "0.6544291", "0.65422857", "0.6538646", "0.64844304", ...
0.81054
0
check if a url is real, and this also NEEDS an internet connection.
function is_url_real ($url_to_shorten) { $test_flag = true; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url_to_shorten); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $response = curl_exec($ch); if( curl_getinfo($ch, CURLINFO_HTTP_CODE) == '404' || FALSE == $response ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function url_exists($url){ \r\n $url_data = parse_url($url); // scheme, host, port, path, query\r\n if(!fsockopen($url_data['host'], isset($url_data['port']) ? $url_data['port'] : 80)){\r\n $this->set_message('url_exists', 'The URL you entered is not acces...
[ "0.74476564", "0.7328188", "0.7165436", "0.7102114", "0.7072362", "0.7022588", "0.7007732", "0.697753", "0.69448036", "0.6938936", "0.6936785", "0.6925411", "0.6925268", "0.6925268", "0.69144535", "0.6885639", "0.68828374", "0.6877787", "0.68609935", "0.68333614", "0.68274146...
0.73342687
1
return encodeURI(str_replace(PHP_EOL, ', ', trim($val)));
function cleanVal ($val) { return encodeURI($val); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function strip_line_breaks($val) {\n\t\t$val = preg_replace(\"/([\\r\\n])/\", \"\", $val);\n\t\treturn $val;\n\t\t}", "function commatize($val) {\n\treturn preg_replace('/ /', ',', $val);\n}", "function trailingslashit($value)\n {\n }", "function url_encode(array $values)\n{\n return http_build_que...
[ "0.63441443", "0.6067088", "0.5987674", "0.59518975", "0.5888186", "0.58645386", "0.5836371", "0.58281636", "0.58135754", "0.57746273", "0.5763866", "0.57485896", "0.5696421", "0.56608796", "0.56268626", "0.5582995", "0.5538696", "0.55369574", "0.5524898", "0.5508624", "0.549...
0.7021967
0
no defaul: $service = '
function get_short_url ($url, $service) { $test_flag = true; $ready_url = $service . '/set/?l=' . urlencode($url); // dumper($ready_url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $ready_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $response = curl_exec($ch); if( curl_ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get(string $service = '');", "public function __construct($service = 'https://pkserv.spring-dvs.org') {\n\t\t$this->service = $service;\n\t\t\n\t}", "public function __construct($service) {\n $this->service = $service;\n }", "public function setService($service) {\r\n\t\t$this->serv...
[ "0.7173132", "0.7107487", "0.70005244", "0.69842076", "0.69676805", "0.6876819", "0.67946494", "0.6617458", "0.6598943", "0.6397475", "0.6344054", "0.6283071", "0.62714654", "0.6212513", "0.6163743", "0.6163373", "0.6159513", "0.61392033", "0.61125636", "0.61035055", "0.60965...
0.0
-1
Add Meta Boxes for our Workshop Attendees management interface add_action( 'add_meta_boxes', 'workshop_attendees_add_meta_boxes', 10, 2 ); add_action( 'wp_insert_post_data', 'workshop_attendees_filter_workshop_data', 10, 2 ); add_action( 'save_post', 'workshop_attendees_save_meta_fields', 10, 2 ); Add the admin menus f...
function workshop_action_admin_menu() { add_submenu_page( 'edit.php?post_type=workshop', // $parent_slug -> edit.php?post_type=workshop __( 'Workshop Attendees', 'workshop' ), // $page_title __( 'Attendees', 'workshop' ), // $menu_title 'list_users', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wck_settings_page_add_meta_boxes() {\r\n global $post;\r\n\t\tdo_action( 'add_meta_boxes', $this->hookname, $post );\r\n\t}", "function AP_Meta_Box_Setup() {\n\tadd_action('add_meta_boxes','AP_Meta_Box_Add');\n\n\tadd_action( 'save_post', 'AP_Meta_Box_Save', 10, 2 );\n}", "function badgeos_grav...
[ "0.7704473", "0.7566888", "0.73577917", "0.7311609", "0.73107386", "0.7287415", "0.7236324", "0.72296643", "0.7225412", "0.72196543", "0.71333337", "0.7133271", "0.7131367", "0.7130306", "0.71103895", "0.70988375", "0.7091291", "0.7085761", "0.7079204", "0.70631504", "0.70517...
0.0
-1
View a List Table of all Attendees
function workshop_view_attendees_list() { // Allow Attendees to be deleted if ( isset( $_GET['action'], $_GET[id], $_GET['_wpnonce'] ) && 'delete' == $_GET['action'] ) { // Make sure the user is who they say they are if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'attendee-delete' ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index(){\n\n\t\t//$attendeeList = Attendees::whereRaw('id IN (select MAX(id) FROM attendees GROUP BY user_id)')->get();\n\n$attendeeList = \\DB::select('SELECT *, COUNT(user_id) as usercount FROM ( SELECT * FROM attendees ORDER BY created_at DESC) AS h GROUP BY user_id ORDER BY created_at DESC');\n...
[ "0.6603051", "0.6577745", "0.6382508", "0.6343238", "0.6343238", "0.62969446", "0.62661946", "0.6235249", "0.62158126", "0.6196463", "0.6187395", "0.618595", "0.61850435", "0.6165392", "0.61443985", "0.6134557", "0.6130784", "0.6130323", "0.612657", "0.61090136", "0.6107174",...
0.6001389
28
Define database migrations after database refreshed.
protected function defineDatabaseMigrationsAfterDatabaseRefreshed() { // Define database migrations after database refreshed. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function defineDatabaseMigrations()\n {\n $this->loadMigrationsFrom(realpath(__DIR__.'/../database/migrations'));\n\n $this->artisan('migrate', ['--database' => 'testbench'])->run();\n\n $this->beforeApplicationDestroyed(function () {\n $this->artisan('migrate:rollback'...
[ "0.7730976", "0.7715023", "0.7492565", "0.74633193", "0.72608143", "0.7217466", "0.7207532", "0.7180919", "0.7109654", "0.7063033", "0.70168734", "0.6963182", "0.6902732", "0.67402375", "0.6738535", "0.6722642", "0.66789997", "0.6664156", "0.6662574", "0.6612362", "0.66031295...
0.8890752
0
Create a new job instance.
public function __construct($importedUser) { $this->importedUser = $importedUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createJob( $creationParameters ){ return $this->APICallSub( '/jobs', array( 'create' => $creationParameters ), \"Could not create new job with query \" . $creationParameters['query'] . \" and operation \" . $creationParameters['operation'] ); }", "abstract public function makeJob();", "abstract...
[ "0.6920272", "0.6905722", "0.6905722", "0.6869542", "0.6808916", "0.65271425", "0.65184414", "0.64918077", "0.6489135", "0.6468623", "0.6425879", "0.64058304", "0.63938236", "0.63899404", "0.63753885", "0.6304669", "0.6256802", "0.6241474", "0.620155", "0.61789167", "0.607414...
0.0
-1
Checks to see if a staff member already exists matching the imported user's email.
private function exists($user) { return $user ? $user->update(['deleted_at' => null]) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isStaffExists($email) {\n $stmt = $this->conn->prepare(\"SELECT staff_id from staff WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_r...
[ "0.7163442", "0.6588523", "0.64358175", "0.6343514", "0.63418746", "0.63230133", "0.6265022", "0.6243569", "0.6238838", "0.6172833", "0.612734", "0.61083055", "0.6090559", "0.60742265", "0.6046485", "0.60462415", "0.6028347", "0.59985757", "0.5992202", "0.598288", "0.59708345...
0.0
-1
Create an address and verify that the serialization matches TwinJet's requirements
public function testAddressToJson(): void { $dateFormat = 'Y-m-d H:i:s'; $job = new Job(); $job->setIsLive(true); $job->setApiToken("APITOKEN1234567"); $job->setOrderContactName("Contact name"); $job->setOrderContactPhone("5141234567"); $readyTime = date_cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreate() {\n $address_params = array(\"street1\" => \"388 Townsend St\",\n \"street2\" => \"Apt 20\",\n \"city\" => \"San Francisco\",\n \"state\" => \"CA\",\n \"zip\" => \"94107\"...
[ "0.73406285", "0.7073295", "0.7005931", "0.6718553", "0.66435045", "0.6558891", "0.65314233", "0.6207487", "0.6156183", "0.610657", "0.60627884", "0.6038833", "0.6015393", "0.59778196", "0.59718543", "0.5946212", "0.5945763", "0.59213763", "0.59202605", "0.59013766", "0.58906...
0.5761712
30
Generate a new Job and send it to the Postman echo API. Compare the response.
public function testJsonPostToPostmanEcho() { $directConnect = new \TwinJet\DirectConnect("FAKE_API_TOKEN", 1); $jobsApi = $directConnect->jobs(); $this->invokeMethod($jobsApi, 'setJobsUrl', array('https://postman-echo.com/post')); $dateFormat = 'Y-m-d H:i:s'; $job = new Jo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function generateJob()\n\t{\n\t\t$name = $this->inflector->getJob();\n\n\t\t$this->call('make:job', compact('name'));\n\t}", "private function createSearchJob() {\n $response = $this->client->request('POST','search/jobs', [\n 'json' => [\n 'query' => $this->getSumoQuery(),\n 'f...
[ "0.70654947", "0.6437038", "0.63184685", "0.63184685", "0.62090534", "0.6156774", "0.6139843", "0.6075314", "0.5988197", "0.59829783", "0.59427613", "0.594224", "0.59077555", "0.5844832", "0.58393323", "0.5831245", "0.5817139", "0.58100724", "0.5804894", "0.5804105", "0.57686...
0.67738265
1
Call protected/private method of a class.
private function invokeMethod(&$object, $methodName, array $parameters = array()) { $reflection = new \ReflectionClass(get_class($object)); $method = $reflection->getMethod($methodName); $method->setAccessible(true); return $method->invokeArgs($object, $parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function call($class){\n\t\t$this->plow( new $class );\n }", "public function method(&$class, $method);", "abstract public function processMethod (ReflectionMethod $met, $className);", "abstract public function __invoke(): void;", "protected function callProtectedClassMethod($classInstance, $m...
[ "0.6376761", "0.61923915", "0.6095721", "0.60400313", "0.597402", "0.59470445", "0.59445286", "0.5940069", "0.5923648", "0.59171706", "0.59171706", "0.59171706", "0.59171706", "0.5883526", "0.5851986", "0.5822817", "0.58166254", "0.5801187", "0.5801187", "0.5782801", "0.57810...
0.0
-1
Parse the css classes to an array.
private function parse($classes) { if ($classes instanceof Closure) { $self = new self(); $classes = call_user_func($classes, $self) ?? $self; } if (empty($classes)) { return []; } if (is_string($classes)) { $classes = preg_sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCssClasses(): array;", "protected function _getCSSClassNames()\n {\n return $this->_classes;\n }", "public function classNames(): array {\n\t\treturn $this->m_attributes[\"class\"];\n\t}", "public static function css_class_list() {\r\n\r\n\t\t\tself::$css_class_arr = array(\r\...
[ "0.7940902", "0.7008589", "0.68122476", "0.6768028", "0.67559147", "0.6750058", "0.66705674", "0.65317786", "0.653025", "0.6337759", "0.62844723", "0.62635446", "0.6251662", "0.6241625", "0.623837", "0.61491144", "0.61113787", "0.6060339", "0.6060339", "0.6060339", "0.6058205...
0.6255796
12
Add css to the css items.
public function add(...$classes): self { foreach ($classes as $class) { $class = $this->parse($class); $class and $this->items = array_unique(array_merge($this->items, $class)); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _addCss() {\r\n JHtml::styleSheet( Sh404sefHelperGeneral::getComponentUrl() . '/assets/css/list.css');\r\n }", "function App_CSS_Add()\n {\n array_push($this->MyApp_Interface_Head_CSS_OnLine,\"CSS/sivent2.css\");\n }", "protected function addCSS() {\n foreach ($this->cs...
[ "0.79056495", "0.7419918", "0.73934543", "0.7337543", "0.72857815", "0.72664154", "0.7138773", "0.7093515", "0.7084077", "0.6935116", "0.69266635", "0.680832", "0.680832", "0.680832", "0.680832", "0.680832", "0.67209417", "0.66859543", "0.6626337", "0.66225743", "0.6600783", ...
0.0
-1
Prepend css to the beginning of the css items.
public function prepend(...$classes): self { $array = []; foreach ($classes as $class) { $class = $this->parse($class); $array = array_merge($array, $class); } $array and $this->items = array_unique(array_merge($array, $this->items)); return $this; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prepend(...$items): self;", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "private function a...
[ "0.6537265", "0.6531303", "0.6531303", "0.6531303", "0.6531303", "0.6531303", "0.6387123", "0.63505155", "0.624448", "0.6194907", "0.6097155", "0.601353", "0.59581697", "0.5929894", "0.5833765", "0.58168", "0.58107173", "0.5810423", "0.57906705", "0.5786793", "0.5770308", "...
0.5514909
34
Determine if the give css class exists.
public function has(string $class): bool { return in_array($class, $this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function olc_class_exists($class_name) {\n\tif (function_exists('class_exists')) {\n\t\treturn class_exists($class_name);\n\t} else {\n\t\treturn true;\n\t}\n}", "function is_class_exists($class_name, $class_type) {\n\t$file_path = ROOT . $class_type . 's/' . $class_name . '.' . $class_type . '.php';\n\tif(!file...
[ "0.74213254", "0.73050684", "0.72709286", "0.7169938", "0.7163104", "0.71598804", "0.7104351", "0.7032125", "0.6982009", "0.6955278", "0.69241345", "0.6852442", "0.6744058", "0.67116743", "0.6704837", "0.6657004", "0.6637622", "0.66035646", "0.6598207", "0.64170337", "0.63502...
0.6207294
26
Determine if the css items is empty.
public function isEmpty(): bool { return empty($this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEmpty() {\n return empty($this->items);\n }", "public function isEmpty()\n {\n return empty($this->items);\n }", "public function isEmpty()\n {\n return empty($this->items);\n }", "public function isEmpty()\n {\n return $this->getContent()->isEm...
[ "0.7030314", "0.70192856", "0.70192856", "0.7001313", "0.7001313", "0.6998406", "0.69940317", "0.69180197", "0.68916446", "0.6836098", "0.67983764", "0.6767467", "0.6767132", "0.67645043", "0.6748641", "0.67351824", "0.67314905", "0.66901237", "0.6688074", "0.66455066", "0.66...
0.6747261
16
Clear all css items.
public function clear(): self { $this->items = []; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n\t\t{\n\t\t\t$this->styles = [];\n\t\t}", "function ResetCSS() {\n \t$this->RowAttrs[\"style\"] = \"\";\n\t\t$this->RowAttrs[\"class\"] = \"\";\n\t\tforeach ($this->fields as $fld) {\n\t\t\t$fld->ResetCSS();\n\t\t}\n\t}", "function ResetCSS() {\n \t$this->RowAttrs[\"style\"] = \"...
[ "0.72807336", "0.7222495", "0.7222495", "0.71798867", "0.7022371", "0.6928472", "0.6808075", "0.68040174", "0.67602396", "0.6713563", "0.6678631", "0.6670095", "0.66643196", "0.66365814", "0.66365814", "0.66255534", "0.6590876", "0.65504616", "0.65238124", "0.65013885", "0.64...
0.0
-1
Reset the css items.
public function reset(...$classes): self { return $this->clear()->add(...$classes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n\t\t{\n\t\t\t$this->styles = [];\n\t\t}", "function ResetCSS() {\n \t$this->RowAttrs[\"style\"] = \"\";\n\t\t$this->RowAttrs[\"class\"] = \"\";\n\t\tforeach ($this->fields as $fld) {\n\t\t\t$fld->ResetCSS();\n\t\t}\n\t}", "function ResetCSS() {\n \t$this->RowAttrs[\"style\"] = \"...
[ "0.7840784", "0.76533765", "0.76533765", "0.69446635", "0.6744381", "0.66961867", "0.657591", "0.64422077", "0.6393177", "0.6387745", "0.63174486", "0.6293693", "0.6284368", "0.62789947", "0.6275443", "0.6270233", "0.62630063", "0.6262174", "0.6242628", "0.6228706", "0.618909...
0.0
-1
Get all the css items.
public function all(): array { return $this->items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllCSS()\n {\n return $this->css;\n }", "public function getCSS()\n\t{\n\t\t$css = array();\n\t\treturn $css;\n\t}", "public function getCss();", "public function getCss();", "public function getCss()\n {\n $result = $this->_css;\n foreach ($this->_packages as $pack...
[ "0.8065247", "0.77013284", "0.7684331", "0.7684331", "0.76302874", "0.7492544", "0.7268488", "0.7043285", "0.7042064", "0.6993798", "0.6933878", "0.68403274", "0.67908525", "0.67896634", "0.67707014", "0.67006737", "0.6689764", "0.6586905", "0.6538275", "0.65084875", "0.65065...
0.0
-1
Build the Css object to content as a string.
public function build(): string { return implode(' ', $this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build_css() {\n\t\t\t\n\t\t}", "public function toString()\n {\n return $this->toCSS(new Context());\n }", "public function getConcatenateCss() {}", "function style(){\r\n\t\t// Sorry mom :(\r\n\t\t$style=\"<style>\r\n\t\t\t.debug{\r\n\t\t\t\tposition: relative;\r\n\t\t\t\tpaddin...
[ "0.7218737", "0.6990195", "0.6682975", "0.6512634", "0.64489365", "0.64419365", "0.6376423", "0.63501614", "0.6349988", "0.6293518", "0.62503034", "0.62245274", "0.6182383", "0.6129957", "0.6102617", "0.6102412", "0.6081074", "0.6044209", "0.6044209", "0.6036453", "0.6005631"...
0.0
-1
Run the database seeds.
public function run() { //Crear el usuario por defecto $usu = new User(); $usu->name = 'Heimys M. Alvarado'; $usu->email = 'ing.halvarado.7s@gmail.com'; $usu->email_verified_at = now(); $usu->password = bcrypt('Venezuela2021'); $usu->edad = '40'; $usu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8014072", "0.7980389", "0.7977261", "0.79545176", "0.7951285", "0.7949779", "0.79447794", "0.79427236", "0.7938544", "0.7937133", "0.7933888", "0.7892658", "0.78813094", "0.7879304", "0.78790134", "0.7875582", "0.78718805", "0.7870327", "0.7851507", "0.78506047", "0.784165...
0.0
-1
This method writes the data to the file i.e. any exception thrown will be written to the log files
private function writeToFile($Data){ //Do not write to log files if Flag is turned off if($this->_status != self::OFF ) { fwrite( $this->file_handle , $Data.PHP_EOL); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function write()\n {\n $r=false;\n \n if(!empty($this->buffer))\n {\n foreach($this->buffer as $entry)\n {\n if(empty($this->logs[$entry['log']]))\n ...
[ "0.7822152", "0.7272261", "0.7185782", "0.7086981", "0.70389414", "0.700715", "0.6957095", "0.689453", "0.6763002", "0.66927683", "0.6688381", "0.6591501", "0.6528703", "0.6460666", "0.6439643", "0.64377475", "0.642324", "0.6422961", "0.6402736", "0.6386448", "0.6373215", "...
0.65572214
12
check admin have permission or not, if not redirect to admin/home
public function __construct() { $this->middleware(function ($request, $next) { $adminUser = Auth::guard('admin')->user(); if(is_object($adminUser)){ if($adminUser->hasRole('admin') || $adminUser->hasRole('sub-admin')){ return $next($request); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkPermissionAdmin() {\n\t\tif ($_SESSION['log_admin']!=='1'){\n\t\t\theader('Location: start.php');\n\t\t\tdie();\n\t\t}\n\t}", "static function adminGateKeeper() {\n if (!loggedIn() || !adminLoggedIn()) {\n new SystemMessage(translate(\"system_message:not_allowed_to_view\"));\n ...
[ "0.80104464", "0.7819135", "0.7709363", "0.7707436", "0.76906365", "0.76666224", "0.7609691", "0.7591457", "0.75836563", "0.7565964", "0.75606173", "0.7548622", "0.7542071", "0.7537364", "0.75130695", "0.75069267", "0.75060606", "0.7496931", "0.74589825", "0.7443948", "0.7441...
0.0
-1
show list of courses
protected function show(){ $courseCourses = CourseCourse::getCoursesWithPaginationForAdmin(); return view('courseCourse.list', compact('courseCourses')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show_course_list()\n {\n $renderer = new CourseTypeCourseListRenderer($this);\n\n $html = array();\n\n $html[] = $this->display_page_header();\n $html[] = $this->getButtonToolbarRenderer($renderer)->render();\n $html[] = '<div class=\"clear\"></div><br />';\n ...
[ "0.8122427", "0.77784616", "0.7724677", "0.7714357", "0.7657581", "0.7656655", "0.76502866", "0.7629177", "0.76085126", "0.7594853", "0.7510176", "0.7490492", "0.7454889", "0.7452719", "0.7448408", "0.74336135", "0.7426952", "0.7412166", "0.74033296", "0.73841697", "0.7362347...
0.7796318
1
show create course UI
protected function create(){ $courseCategories = CourseCategory::getCourseCategoriesForAdmin(); $courseSubCategories = []; $course= new CourseCourse; return view('courseCourse.create', compact('courseCategories','courseSubCategories','course')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n //\n return view(\"course.create\");\n }", "public function create()\n {\n return view(\"guardian.pages.courses.create\");\n }", "public function create()\n {\n return view('admin.course.create');\n }", "public function create()\n ...
[ "0.8167941", "0.81317586", "0.8005507", "0.8005507", "0.79980224", "0.79744184", "0.79687244", "0.79599524", "0.7946125", "0.787317", "0.78545886", "0.78427213", "0.78427213", "0.78164107", "0.7804425", "0.78021497", "0.77990425", "0.7775276", "0.7759248", "0.77545846", "0.77...
0.78697056
10
return course sub categories by categoryId
protected function getCourseSubCategories(Request $request){ $id = InputSanitise::inputInt($request->get('id')); if(isset($id)){ return CourseSubCategory::getCourseSubCategoriesByCategoryId($id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function category_wise_course_get($category_id) {\n\t\t$category_details = $this->crud_model->get_category_details_by_id($category_id)->row_array();\n\n\t\tif ($category_details['parent'] > 0) {\n\t\t\t$this->db->where('sub_category_id', $category_id);\n\t\t}else {\n\t\t\t$this->db->where('category_id', $ca...
[ "0.75099796", "0.74941456", "0.73776084", "0.7251243", "0.71976084", "0.71747494", "0.7093869", "0.7066056", "0.6994046", "0.6985668", "0.6943622", "0.6927452", "0.6867666", "0.6794659", "0.66719687", "0.66428614", "0.663006", "0.6621736", "0.6603185", "0.66009283", "0.658177...
0.71232855
6
Set the API Credentials
private function setCredentials() { $this->credentials['app_token'] = $this->settings_repo->getSiteSetting('facebook', 'app_token'); $this->credentials['page_id'] = $this->settings_repo->getSiteSetting('facebook', 'page_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setApiCredentials($credentials) {\n\t\t$secure = (isset($credentials['secure'])) ? $credentials['secure'] : true;\n\t\t$this->api_url = $secure ? 'https://' : 'http://';\n\t\t$this->api_url .= $credentials['api_domain'] . '/@api/deki/';\n\n\t\t$this->api_username = (!empty($credentials['api_usernam...
[ "0.7554595", "0.7552922", "0.7106264", "0.6948599", "0.6731067", "0.6669727", "0.6519652", "0.64831996", "0.647173", "0.6378397", "0.6190249", "0.6172432", "0.6033286", "0.6027945", "0.6019881", "0.60171604", "0.59932953", "0.59816176", "0.5979538", "0.5961867", "0.5933376", ...
0.71124214
2
Get the Page Feed
private function queryFeed() { $api_endpoint = $this->supported_sites->getKey('facebook', 'api_endpoint'); $client = new Client(['base_url' => $api_endpoint]); try { $response = $client->get($this->id, [ 'query' => [ 'access_token' => $this->credentials['app_token'] ] ]); $feed = json_dec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFeed()\n\t{\n\t\ttry {\n\t\t\t$facebook_client = new Client('https://graph.facebook.com/v2.0');\n\t\t\t$request = $facebook_client->get($this->credentials['facebook_page_id'] . '/feed');\n\t\t\t$request->getQuery()->set('date_format', 'U');\n\t\t\t$request->getQuery()->set('access_token', $this-...
[ "0.75946367", "0.7431627", "0.70329076", "0.69740325", "0.6919647", "0.69001883", "0.69001883", "0.6878707", "0.68715256", "0.6867247", "0.665832", "0.6657339", "0.66109776", "0.65811515", "0.65191823", "0.6441336", "0.6391889", "0.63879097", "0.6385648", "0.6305643", "0.6277...
0.6634956
12
Create a stub for the SomeClass class.
public function testServiceDisabled() { $configStub = $this->createMock(ReCaptchaConfigV2::class); // Configure the stub. $configStub->method('isServiceEnabled') ->willReturn(false); $clientStub = $this->createMock(GuzzleRequestClient::class); $clientStub->metho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_someClass() {\n new someClass();\n}", "public function createStub()\n {\n $stub = <<<STUB\n#!/usr/bin/env php\n<?php\n\n/**\n * Genereated by Box: http://github.com/kherge/Box\n */\n\nPhar::mapPhar('{$this->alias}');\n\n\nSTUB\n ;\n\n if ($this->intercept) {\n ...
[ "0.58797854", "0.5812303", "0.57958466", "0.5780736", "0.57584363", "0.57090336", "0.565362", "0.5608007", "0.55514866", "0.5534576", "0.5505089", "0.5495277", "0.5494104", "0.5468626", "0.54249114", "0.5423782", "0.5407396", "0.5407396", "0.53918225", "0.53507257", "0.534519...
0.0
-1
Create a stub for the SomeClass class.
public function testMissingInput() { $configStub = $this->createMock(ReCaptchaConfigV2::class); // Configure the stub. $configStub->method('isServiceEnabled') ->willReturn(true); $clientStub = $this->createMock(GuzzleRequestClient::class); $clientStub->method('p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_someClass() {\n new someClass();\n}", "public function createStub()\n {\n $stub = <<<STUB\n#!/usr/bin/env php\n<?php\n\n/**\n * Genereated by Box: http://github.com/kherge/Box\n */\n\nPhar::mapPhar('{$this->alias}');\n\n\nSTUB\n ;\n\n if ($this->intercept) {\n ...
[ "0.58818483", "0.5810311", "0.579175", "0.57790446", "0.57593274", "0.5707363", "0.56514657", "0.560418", "0.5551317", "0.55334604", "0.5501121", "0.5493321", "0.5493148", "0.5468044", "0.5423095", "0.5422132", "0.5407793", "0.5407793", "0.53930587", "0.5349993", "0.5344242",...
0.0
-1
Create a stub for the SomeClass class.
public function testEmptyResponse() { $configStub = $this->createMock(ReCaptchaConfigV2::class); // Configure the stub. $configStub->method('isServiceEnabled') ->willReturn(true); $testJson = null; $clientStub = $this->createMock(GuzzleRequestClient::class); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_someClass() {\n new someClass();\n}", "public function createStub()\n {\n $stub = <<<STUB\n#!/usr/bin/env php\n<?php\n\n/**\n * Genereated by Box: http://github.com/kherge/Box\n */\n\nPhar::mapPhar('{$this->alias}');\n\n\nSTUB\n ;\n\n if ($this->intercept) {\n ...
[ "0.58818483", "0.5810311", "0.579175", "0.57790446", "0.57593274", "0.5707363", "0.56514657", "0.560418", "0.5551317", "0.55334604", "0.5501121", "0.5493321", "0.5493148", "0.5468044", "0.5423095", "0.5422132", "0.5407793", "0.5407793", "0.53930587", "0.5349993", "0.5344242",...
0.0
-1
Create a stub for the SomeClass class.
public function testFalseResponse() { $configStub = $this->createMock(ReCaptchaConfigV2::class); // Configure the stub. $configStub->method('isServiceEnabled') ->willReturn(true); $testJson = '{"success":false,"ip":"::1","challengeTs":null,"hostname":"","errorCodes":[],...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_someClass() {\n new someClass();\n}", "public function createStub()\n {\n $stub = <<<STUB\n#!/usr/bin/env php\n<?php\n\n/**\n * Genereated by Box: http://github.com/kherge/Box\n */\n\nPhar::mapPhar('{$this->alias}');\n\n\nSTUB\n ;\n\n if ($this->intercept) {\n ...
[ "0.58818483", "0.5810311", "0.579175", "0.57790446", "0.57593274", "0.5707363", "0.56514657", "0.560418", "0.5551317", "0.55334604", "0.5501121", "0.5493321", "0.5493148", "0.5468044", "0.5423095", "0.5422132", "0.5407793", "0.5407793", "0.53930587", "0.5349993", "0.5344242",...
0.0
-1
Create a stub for the SomeClass class.
public function testHostName1() { $configStub = $this->createMock(ReCaptchaConfigV2::class); // Configure the stub. $configStub->method('isServiceEnabled') ->willReturn(true); $testJson = '{ "success": true, "challenge_ts": "2018-12-25T03:35:32Z", "hostname": "ryandeng....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_someClass() {\n new someClass();\n}", "public function createStub()\n {\n $stub = <<<STUB\n#!/usr/bin/env php\n<?php\n\n/**\n * Genereated by Box: http://github.com/kherge/Box\n */\n\nPhar::mapPhar('{$this->alias}');\n\n\nSTUB\n ;\n\n if ($this->intercept) {\n ...
[ "0.58797854", "0.5812303", "0.57958466", "0.5780736", "0.57584363", "0.57090336", "0.565362", "0.5608007", "0.55514866", "0.5534576", "0.5505089", "0.5495277", "0.5494104", "0.5468626", "0.54249114", "0.5423782", "0.5407396", "0.5407396", "0.53918225", "0.53507257", "0.534519...
0.0
-1
Create a stub for the SomeClass class.
public function testHostName2() { $configStub = $this->createMock(ReCaptchaConfigV2::class); // Configure the stub. $configStub->method('isServiceEnabled') ->willReturn(true); $testJson = '{ "success": true, "challenge_ts": "2018-12-25T03:35:32Z", "hostname": "ryandeng....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_someClass() {\n new someClass();\n}", "public function createStub()\n {\n $stub = <<<STUB\n#!/usr/bin/env php\n<?php\n\n/**\n * Genereated by Box: http://github.com/kherge/Box\n */\n\nPhar::mapPhar('{$this->alias}');\n\n\nSTUB\n ;\n\n if ($this->intercept) {\n ...
[ "0.58818483", "0.5810311", "0.579175", "0.57790446", "0.57593274", "0.5707363", "0.56514657", "0.560418", "0.5551317", "0.55334604", "0.5501121", "0.5493321", "0.5493148", "0.5468044", "0.5423095", "0.5422132", "0.5407793", "0.5407793", "0.53930587", "0.5349993", "0.5344242",...
0.0
-1
Database Relations Verify email belongs to user
public function user() { return $this->belongsTo(User::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateUserEmail()\n {\n if (!$this->hasErrors() && !$this->getUser()) {\n $this->addError('id', Yii::t('skeleton', 'Your email was not found.'));\n }\n }", "public function verifyEmail()\n {\n $this->verified = true;\n\n $this->save();\n\n ...
[ "0.6652299", "0.66419864", "0.6519688", "0.65038335", "0.6472839", "0.6417882", "0.63645566", "0.6308649", "0.62775123", "0.6218751", "0.6217776", "0.6208806", "0.6206509", "0.6142267", "0.61161196", "0.60852367", "0.6081127", "0.60579014", "0.6045642", "0.6030235", "0.602374...
0.0
-1
Persists model form and returns the created/updated `Project` model.
public function save(): ?Project { if ($this->validate()) { $transaction = Project::getDb()->beginTransaction(); try { $user = $this->getUser(); $project = $this->getProject() ?: (new Project); $project->title = $this->title; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(ProjectRequest $request): Project\n {\n return Project::create($request->validated());\n }", "public function save() {\r\n if ($this->model->getId()) {\r\n return $this->model->update();\r\n }\r\n return $this->create();\r\n }", "public func...
[ "0.64166117", "0.6408449", "0.6390602", "0.62700725", "0.62251973", "0.6202418", "0.6176008", "0.6072273", "0.6034284", "0.59963185", "0.5983986", "0.58857733", "0.58763367", "0.5866395", "0.58639854", "0.58594793", "0.5844027", "0.58371985", "0.58361363", "0.5788718", "0.578...
0.6208484
5
The topmost class is the source of truth, so we go only down to avoid up/down collission
private function refactorParamForSelfAndSiblings(\PhpParser\Node\Stmt\ClassMethod $classMethod, int $position, \PHPStan\Analyser\Scope $scope) : void { $class = $classMethod->getAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::CLASS_NODE); if ($class === null) { return; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isOuterMostInstance() {}", "protected function getOuterMostInstance() {}", "private function setStateToClassHierarchyWithOnlyClasses() {\n\t\t$this->state->method(\"isClass\")->willReturn(true);\n\t\t$this->state->method(\"isTrait\")->willReturn(false);\n\t\t$this->state->method(\"isInterface\"...
[ "0.6020672", "0.5843705", "0.5611762", "0.55537647", "0.5486589", "0.54494655", "0.5390978", "0.5325806", "0.5253481", "0.5245568", "0.523721", "0.521395", "0.51998705", "0.51845264", "0.50957525", "0.50833416", "0.5082497", "0.5076392", "0.50390154", "0.5018173", "0.4984187"...
0.0
-1
Determines whether a column has been sorted
public function isSortedBy($column);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSortedByAsc($column);", "public function isSortedByDesc($column);", "public function hasSorting()\n {\n return ($this->sortBy !== '');\n }", "public function hasSort() {\n return $this->_has(3);\n }", "public function isSorted()\n {\n if (Request::input(conf...
[ "0.80668825", "0.7860892", "0.72309643", "0.7226553", "0.71211314", "0.7091226", "0.684487", "0.684487", "0.68193406", "0.681152", "0.66592723", "0.6512118", "0.6473128", "0.63637847", "0.6327596", "0.63122874", "0.6305161", "0.62685394", "0.6265388", "0.6234319", "0.6233932"...
0.8374677
0
Determines whether a column has been sorted by ASC method
public function isSortedByAsc($column);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSortedAsc()\n {\n return $this->sorting === Grid::SORT_ASC;\n }", "public function isSortedBy($column);", "public function isSortedByDesc($column);", "public function hasSorting()\n {\n return ($this->sortBy !== '');\n }", "public function isSorted()\n {\n ...
[ "0.7960119", "0.78817743", "0.73792094", "0.7018416", "0.69814706", "0.6920065", "0.6702299", "0.6672751", "0.6672306", "0.6672306", "0.65423656", "0.6535923", "0.6530466", "0.65034586", "0.65026724", "0.6483072", "0.6428104", "0.6414826", "0.6395482", "0.6348206", "0.6252102...
0.82702
0
Determines whether a column has been sorted by DESC method
public function isSortedByDesc($column);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSortedDesc()\n {\n return $this->sorting === Grid::SORT_DESC;\n }", "public function isSortedBy($column);", "public function isSortedByAsc($column);", "public function hasSorting()\n {\n return ($this->sortBy !== '');\n }", "public function hasSort() {\n ret...
[ "0.77092284", "0.7612812", "0.7259792", "0.6627039", "0.66045743", "0.64956146", "0.63588774", "0.63330936", "0.62965685", "0.62431693", "0.6164901", "0.6123141", "0.6097916", "0.60559094", "0.604025", "0.598404", "0.5924434", "0.5924434", "0.57834506", "0.57660306", "0.57234...
0.8318225
0
Returns sorting URL for a particular column
public function getColumnSortingUrl($column);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sortUrl(string $column): string;", "function get_url($column){\r\n\r\n\t\tif(strpos($this->sort_url,'#COLUMN_ID#')!==false){\r\n\r\n\t\t\treturn str_replace('#COLUMN_ID#',$column,$this->sort_url);\r\n\r\n\t\t}else{\r\n\r\n\t\t\treturn $this->sort_url.(strpos($this->sort_url,'?')!==false ? '&' : '...
[ "0.8579922", "0.8451457", "0.8018003", "0.7589161", "0.75258934", "0.710265", "0.6990983", "0.69864553", "0.68532413", "0.6831732", "0.67305994", "0.67193013", "0.6563522", "0.6519757", "0.6475076", "0.6350249", "0.6306378", "0.6296779", "0.62445414", "0.62277913", "0.6178751...
0.897216
0
Returns grouped element name
public function getElementName($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Name(){\n\t\tif(!$this->title) {\n\t\t\t$fs = $this->FieldSet();\n\t\t\t$compositeTitle = '';\n\t\t\t$count = 0;\n\t\t\tforeach($fs as $subfield){\n\t\t\t\t$compositeTitle .= $subfield->Name();\n\t\t\t\tif($subfield->Name()) $count++;\n\t\t\t}\n\t\t\tif($count == 1) $compositeTitle .= 'Group';\n\t\t\tretu...
[ "0.70499665", "0.69039696", "0.6843804", "0.6803702", "0.6756681", "0.6726092", "0.66895443", "0.66633344", "0.6535991", "0.65347916", "0.6519244", "0.6491546", "0.64416593", "0.64324707", "0.6419942", "0.6362303", "0.6355523", "0.6306548", "0.627686", "0.6245255", "0.6221202...
0.5778825
51
Checks whether a filter has been applied
public function isApplied();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasFilter(): bool;", "protected function hasFilter()\n {\n return ! empty($this->filter);\n }", "public function hasFilter() {\n return $this->_has(1);\n }", "public function has_filters()\n {\n }", "private function hasFilters()\n {\n return (co...
[ "0.79709804", "0.7877371", "0.77119386", "0.7602544", "0.75917417", "0.7524423", "0.74709976", "0.72297794", "0.718541", "0.7177093", "0.71166587", "0.7104364", "0.70937717", "0.7090012", "0.70630234", "0.706236", "0.7032085", "0.6999839", "0.69974023", "0.6948303", "0.692747...
0.6398877
36
Returns key's value if exists
public function get($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($key) {\n if (isset($this->_hash[$key])) return $this->_hash[$key]; else return NULL;\n }", "public function getValue($key);", "public function getValue($key);", "static function get($key)\n {\n return isset(self::$values[$key]) ? self::$values[$key] : false;...
[ "0.6956251", "0.6912412", "0.6912412", "0.68940556", "0.6837318", "0.68328154", "0.6806142", "0.67233354", "0.6696626", "0.66901827", "0.66901827", "0.66519606", "0.6621449", "0.66186005", "0.6595274", "0.65726066", "0.6568565", "0.6568565", "0.6568565", "0.6568565", "0.65685...
0.6579062
42
Returns DB table name for entity.
public static function getTableName() { return 'b_documentgenerator_template_provider'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . ...
[ "0.81963015", "0.78254443", "0.77567416", "0.77524954", "0.7682658", "0.7679655", "0.76560557", "0.76435214", "0.7619593", "0.7598804", "0.75848323", "0.7510282", "0.75085706", "0.7464006", "0.7452752", "0.74250716", "0.7417714", "0.7394121", "0.7394121", "0.7394121", "0.7386...
0.0
-1
Returns entity map definition.
public static function getMap() { return [ new Main\Entity\IntegerField('TEMPLATE_ID', [ 'primary' => true, ]), new Main\Entity\StringField('PROVIDER', [ 'primary' => true, ]), new Main\Entity\ReferenceField('TEMPLATE', '\Bitrix\DocumentGenerator\Model\Template', ['=this.TEMPLATE_ID' => 'r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => new Entity\\IntegerField('ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true\n\t\t\t)),\n\t\t\t'ORDER_NEW_TASK' => new Entity\\StringField('ORDER_NEW_TASK', array(\n\t\t\t\t'required' => true\n\t\t\t))\n\t\t);\n\t}", "pub...
[ "0.6637542", "0.6594023", "0.648225", "0.64311457", "0.64077604", "0.6392645", "0.6384917", "0.629275", "0.6263408", "0.6239673", "0.6159177", "0.61396015", "0.6062293", "0.60510415", "0.59983045", "0.59882057", "0.5968825", "0.59648436", "0.596274", "0.596274", "0.59273875",...
0.6319827
7
Get the root domain
public function __construct() { $url = url('/'); // Find the site in the database $site = Site::where('url', $url)->first(); // Set the siteID globally $this->siteID = $site->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getRootDomain()\n\t{\n\t\t$host = $_SERVER['HTTP_HOST'];\n\t\t$parts = explode('.', $host);\n\t\tif(count($parts)>1){\n\t\t\t$tld = array_pop($parts);\n\t\t\t$domain = array_pop($parts).'.'.$tld;\n\t\t} else {\n\t\t\t$domain = array_pop($parts);\n\t\t}\n\t\treturn '.'.$domain;\n\t}", "function a...
[ "0.87338483", "0.8514534", "0.8010379", "0.76280266", "0.7622107", "0.7598844", "0.75983405", "0.7590166", "0.75644577", "0.7526932", "0.74387264", "0.7429018", "0.74016595", "0.7401166", "0.7323497", "0.72748333", "0.72397715", "0.72297806", "0.7218729", "0.7162882", "0.7147...
0.0
-1
lay danh sach hoi vien
protected function dsHoiVien(){ $arrHoiviens = array(''=>'----- Chọn hội viên -----'); $hoiviens = csdl_lylichhoivienTable::dsHoivienForThe(); if(count($hoiviens)>0){ foreach($hoiviens as $value){ $arrHoiviens[$value['hoivien_id']] = $value['hodem']; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "public function bernafas()\n \t{\n \t\tec...
[ "0.6848701", "0.65068763", "0.63570076", "0.6339973", "0.633612", "0.62746733", "0.6271343", "0.6214045", "0.620856", "0.61674565", "0.61587", "0.6133639", "0.6124672", "0.6116215", "0.61108816", "0.60485697", "0.60417706", "0.599224", "0.59799606", "0.5955984", "0.59405345",...
0.0
-1
Default actions of all types Routines used by the default actions
public function plugins_loadedWPaction() { load_plugin_textdomain ( get_class ( $this ), false, dirname ( plugin_basename ( $this->application()->filename ) ) . "/languages/" ); wp_enqueue_style ( 'jquery-ui_smoothness', $this->application ()->pluginuri () . '/library/public/css/smoothness/jquery-ui-1.8.13.custom.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultAction();", "public function getDefaultAction();", "public function getDefaultAction();", "public function actionDefault()\n {\n\n }", "protected function actionDefault()\n\t{\n\t\tzf::halt(\"You can't call this function \\\"actionDefault\\\" directly. You must redefine it in yo...
[ "0.7752654", "0.7752654", "0.7752654", "0.7479365", "0.7409233", "0.7319744", "0.7310315", "0.72657806", "0.693578", "0.68144906", "0.67632484", "0.6713071", "0.6713071", "0.6713071", "0.6702846", "0.66698664", "0.6626762", "0.6626762", "0.6562886", "0.6554001", "0.6549908", ...
0.0
-1
Array contains info about response after request to paypal server to checkout
public function __construct($apiUsername, $apiPassword, $apiSignature, $apiEndpoint) { $this->apiUsername = $apiUsername; $this->apiPassword = $apiPassword; $this->apiSignature = $apiSignature; $this->apiEndpoint = $apiEndpoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPayPalResponse(){\r\n\t\t\r\n\t}", "public function getPaymentResponse()\r\n {\r\n $reason_text = $this->request_data['Message'];\r\n $order_status = '';\r\n $transaction_id = $this->request_data['CrossReference'] ;\r\n switch ($this->request_data['StatusCod...
[ "0.7134929", "0.64355004", "0.63487226", "0.6258246", "0.6125082", "0.6124789", "0.6016057", "0.6004903", "0.5988919", "0.59851426", "0.59176344", "0.5876483", "0.58587575", "0.58585787", "0.58490944", "0.5844511", "0.58370525", "0.58144575", "0.5814335", "0.5795131", "0.5776...
0.0
-1
Goi request len server cua paypal de xu ly
protected function Paypal_PPHttpPost($methodName_, $version_, $nvpStr_) { //simulator error return form paypal $version = urlencode($version_); // Set the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->apiEndpoint); curl_setopt($ch, C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buy(){\n\n $id=89025555; //id di connessione\n $password=\"test\"; //password di connessione\n\n //è necessario foramttare il totale in NNNNNN.NN\n $importo= number_format(StadiumCart::total(),2,'.','');//importo da pagare\n\n $trackid=\"STDRX\".ti...
[ "0.63429326", "0.58276874", "0.5659031", "0.55736434", "0.5536477", "0.55324835", "0.5530528", "0.5517934", "0.54965204", "0.54866934", "0.5483034", "0.545433", "0.54180473", "0.54113895", "0.5410554", "0.54066706", "0.54033816", "0.53783613", "0.53698677", "0.53695124", "0.5...
0.0
-1
Gets an array of all possible relationship types in the database. Caches the data in the session.
function getRelationships($db) { if (isset($_SESSION["relationships"])) { $relationships = json_decode($_SESSION["relationships"], JSON_UNESCAPED_UNICODE); } else { $results = $db->query("SELECT rel_id, forward_desc, reverse_desc FROM Relationships ORDER BY rel_id;"); $relationships = ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function relationships(): array\n {\n return [];\n }", "public function get_relations_types() {\n\n\t\t\treturn array(\n\t\t\t\t'one_to_one' => __( 'One to one', 'jet-engine' ),\n\t\t\t\t'one_to_many' => __( 'One to many', 'jet-engine' ),\n\t\t\t\t'many_to_many' => __( 'Many to many', '...
[ "0.68402815", "0.671333", "0.6590537", "0.65895885", "0.6538687", "0.65007204", "0.64900565", "0.62355113", "0.62181354", "0.62181354", "0.6139461", "0.61270374", "0.61008656", "0.60733885", "0.6062062", "0.60361457", "0.59915066", "0.5956203", "0.5942781", "0.5911667", "0.58...
0.54586166
84
Gets an array of all statuses in the database. Caches the data in the session.
function getStatuses($db) { if (isset($_SESSION["statuses"])) { $statuses = json_decode($_SESSION["statuses"], JSON_UNESCAPED_UNICODE); } else { $results = $db->query("SELECT status_id, name, percentage, complete FROM Statuses ORDER BY status_id;"); $statuses = array(); while ($r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_all_statuses() {\n\t\tglobal $wpdb;\n\n\t\t$cache_key = 'orders-all-statuses';\n\t\t$statuses = Cache::get( $cache_key );\n\n\t\tif ( false === $statuses ) {\n\t\t\t$table_name = self::get_db_table_name();\n\t\t\t$statuses = $wpdb->get_col(\n\t\t\t\t\"SELECT DISTINCT status FROM {$tab...
[ "0.76346576", "0.74520326", "0.7343489", "0.7318856", "0.7258145", "0.7255388", "0.7222859", "0.71823645", "0.7176541", "0.707188", "0.69935995", "0.6977699", "0.69400483", "0.68888855", "0.68618304", "0.68595266", "0.68068117", "0.67754287", "0.67501163", "0.667417", "0.6669...
0.6942685
12
Gets a distinct list of users with any kind of access to the specified project.
function getProjectUsers($db, $user_id, $project_id) { $query = "SELECT DISTINCT u.user_id, u.username, u.first_name, u.last_name ". "FROM Users u INNER JOIN Users_Projects up ON u.user_id = up.user_id ". "WHERE up.proj_id = ? AND (". "EXISTS (SELECT * FROM Users WHERE user_id = $user_id AND...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProjectUsers()\n {\n $project_users = array();\n $users = $this->users()->whereNull('deleted_at')->get();\n $user_ids = array();\n if(!empty($users))\n {\n foreach ($users as $user)\n {\n // using this is faster than in_array\n if(!isset($user_ids[$user->u...
[ "0.6775352", "0.6717849", "0.6099334", "0.60371816", "0.60102904", "0.59947455", "0.59868", "0.5947854", "0.5935428", "0.5889077", "0.5889077", "0.5889077", "0.5886075", "0.58810955", "0.586382", "0.5844827", "0.5828061", "0.58164424", "0.58094585", "0.5789597", "0.5771524", ...
0.6557938
2
Gets a comprehensive list of all roles held by all users in the specified project.
function getProjectUsersRoles($db, $user_id, $project_id) { global $PROJECT; $query = "SELECT u.user_id, u.username, u.first_name, u.last_name, up.role ". "FROM Users u INNER JOIN Users_Projects up ON u.user_id = up.user_id ". "WHERE up.proj_id = ? AND (". "EXISTS (SEL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllRoles()\n {\n $id = $this->get(TableFactory::getUserModel()\n ->getPrimaryKey());\n\n return Cache::remember(sprintf(Constants::CACHE_ROLES, $id), function() use ($id) {\n return TableFactory::getRoleModel()\n ...
[ "0.74871695", "0.7318362", "0.7247225", "0.7217689", "0.7181436", "0.7176855", "0.71264654", "0.70992565", "0.70990056", "0.705716", "0.7025387", "0.7021553", "0.69855857", "0.6983046", "0.6949308", "0.6940445", "0.6919154", "0.68944705", "0.68932784", "0.688446", "0.6873287"...
0.66678363
44
Gets an array of all users in the tracker.
function getAllUsers($db) { if (isset($_SESSION["users"])) { $users = json_decode($_SESSION["users"], JSON_UNESCAPED_UNICODE); } else { $results = $db->query("SELECT user_id, first_name, last_name, username, email, ui_lang_id, name AS lang_name, admin FROM Users INNER JOIN Languages on ui_lang_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllUsers(): array\n {\n return $this->users;\n }", "public function getUsers()\n {\n return $this->users->getValues();\n }", "public function getUsers() {\n \n // Call getAllUsers method in userDataService and set to variable\n $users = $this->g...
[ "0.82290596", "0.8152276", "0.8023721", "0.8008946", "0.7978173", "0.7970328", "0.7822989", "0.7817812", "0.7816336", "0.77802724", "0.77734816", "0.77410436", "0.77332896", "0.7726368", "0.76890916", "0.7685897", "0.7644158", "0.76271063", "0.76256263", "0.76181185", "0.7611...
0.0
-1
Gets an array with all projects that the user has access to, or with one project if a project ID is specified.
function getProjects($db, $userId, $sort_col, $sort_dir, $proj_id = NULL) { /* set ORDER BY column based on row number */ switch ($sort_col) { case "2": $ob = "p.name"; break; case "3": $ob = "p.description"; break; default: $ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getProjects() {\n if($this->projects === false) {\n if($this->isAdministrator() || $this->isProjectManager()) {\n $this->projects = Projects::findAll();\n } else {\n $this->projects = Projects::findByUser($this);\n } // if\n } // if\n return $this->pro...
[ "0.76337427", "0.75402856", "0.7538248", "0.7434623", "0.7367371", "0.73414", "0.728968", "0.7235242", "0.71689415", "0.7156759", "0.71197635", "0.7107138", "0.71010494", "0.70988727", "0.7084288", "0.70156455", "0.7000117", "0.6986773", "0.697774", "0.6888783", "0.68790513",...
0.0
-1
Gets the name of a language based on the language ID.
function getLangName($db, $langId) { $stmt = prepareQuery($db, "SELECT name FROM Languages WHERE lang_id = ?;"); bindParam($stmt, "i", $langId); executeStatement($stmt); $result = getSingleResult($stmt); return isset($result)? $result['name'] : NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function language_name($language)\n{\n\tif (!isset($language)) {\n\t\treturn null;\n\t} \n\t\n\tstatic $name = array();\n if (!count($name)) {\n $name = languagelist();\n } \n return $name[$language];\n}", "public function name(string $language): string;", "public function getLanguageIdentifier...
[ "0.7461554", "0.7419944", "0.7405007", "0.70518327", "0.70338225", "0.7024929", "0.6981074", "0.690628", "0.6886443", "0.6858828", "0.68507165", "0.6850021", "0.6804669", "0.6803565", "0.67814785", "0.67323464", "0.67300236", "0.67300236", "0.67300236", "0.67300236", "0.67300...
0.70951945
3
Sets the interface language for the specified user.
function setUserLang($db, $userId, $langId) { $stmt = prepareQuery($db, "UPDATE Users SET ui_lang_id = ? WHERE user_id = ?;"); bindParam($stmt, "ii", $langId, $userId); executeStatement($stmt); return $stmt->affected_rows > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setLanguage() {\n//\t\tYii::app()->language = @Yii::app()->user->getState('lang');\n\t}", "protected function _setLanguage() {\n\t// Get the default user language\n\t$userLanguage = Configure::read('User.defaultLanguage');\n\n\t// Use cookie, session, or params\n\tif ($this->Cookie->read('User.l...
[ "0.73085093", "0.72684366", "0.7168609", "0.7093347", "0.69777155", "0.6960544", "0.6818629", "0.67589176", "0.6583034", "0.65310633", "0.65246356", "0.64523137", "0.6432237", "0.6429394", "0.6381985", "0.6295468", "0.6291768", "0.62820095", "0.6275491", "0.62568575", "0.6239...
0.0
-1
Handles a GET request to update the interface language.
function handleLangRequest($db, $userId) { if (setUserLang($db, $userId, $_REQUEST['lang'])) { $ui_lang_name = getLangName($db, $_REQUEST['lang']); $ui_lang_id = $_REQUEST['lang']; $_SESSION['ui_lang_id'] = $ui_lang_id; $_SESSION['ui_lang_name'] = $ui_lang_name; } // redirect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function languageAction() {\n\t\n\t\t//START LANGUAGE WORK\n\t\tEngine_Api::_()->getApi('language', 'sitestore')->languageChanges();\n\t\t//END LANGUAGE WORK\n\t\t$redirect = $this->_getParam('redirect', false);\n\t\tif($redirect == 'install') {\n\t\t\t$this->_redirect('install/manage');\n\t\t} elseif($redi...
[ "0.6718477", "0.6581742", "0.65365076", "0.6502821", "0.6502296", "0.645925", "0.6256527", "0.62376976", "0.62303585", "0.62011594", "0.60818917", "0.6048187", "0.6016487", "0.59984744", "0.5996128", "0.5986321", "0.5985964", "0.5973397", "0.59192336", "0.5907595", "0.5905303...
0.5700622
39
Checks whether a user is an admin in any project.
function isAdmin($db, $userId) { $query = "SELECT admin FROM Users WHERE user_id = ?;"; $stmt = prepareQuery($db, $query); bindParam($stmt, "i", $userId); executeStatement($stmt); $result = $stmt->get_result(); $admin = $result->fetch_assoc(); return $admin['admin'] == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isAdmin() {\n\t\tif (Auth::user()->user == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "function is_admin()\n {\n //is a user logged in?\n\n //if so, check admin status\n\n //returns true/false\n\n }", "public static function isAdmin()...
[ "0.75974566", "0.75546", "0.75531477", "0.75426", "0.75105", "0.7509922", "0.7410747", "0.7407569", "0.73867404", "0.73867404", "0.7381504", "0.73668945", "0.73552316", "0.7353113", "0.7352708", "0.7347983", "0.73458457", "0.7342117", "0.73349583", "0.73218405", "0.7318816", ...
0.0
-1
Gets the roles of a specific user in a specific project.
function getProjectRoles($db, $userId, $projId) { $query = "SELECT role FROM Users_Projects WHERE user_id = ? AND proj_id = ?;"; $stmt = prepareQuery($db, $query); bindParam($stmt, "ii", $userId, $projId); executeStatement($stmt); $results = $stmt->get_result(); $roles = array(); while ($row...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findProjectRolesForUser($user_id){\n\t\t\n\t\t$user = $this->findOneUser($user_id);\n\t\t\n\t\t$stmt = 'SELECT p FROM App\\Entity\\ProjectRole p WHERE p.user = ?1 GROUP BY p.name';\r\n\r\n\t\t$query = $this->em->createQuery($stmt);\r\n\t\t$query->setParameter(1, $user_id);\n\t\t//$query->setParamet...
[ "0.74156886", "0.713815", "0.69047904", "0.6728472", "0.67085135", "0.66048026", "0.6557166", "0.64961594", "0.64715147", "0.6427627", "0.63642645", "0.6359523", "0.63502115", "0.6304309", "0.62607646", "0.6257329", "0.6256626", "0.62528473", "0.62148637", "0.6203928", "0.619...
0.6738142
3
Adds or updates the issue text in a specific language.
function addIssueText($db, $issue_id, $lang_id, $subject, $description) { if (trim($description) == '') { $description = null; } $query = "INSERT INTO Issues_Languages (lang_id, issue_id, subject, description) VALUES (?, ?, ?, ?) ". "ON DUPLICATE KEY UPDATE lang_id = ?, issue_id = ?, su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addTexte( $lang, $texte )\n\t{\n\t\t$this->textes[$lang] = $texte ;\n\t}", "public function addTextContainer($name, $content, $language);", "public function settingLanguage() {}", "public function add_text($text)\n {\n }", "function addText($key, $text);", "function addText($text);"...
[ "0.6327067", "0.61664826", "0.6114741", "0.6110861", "0.58492583", "0.5786753", "0.5741753", "0.57378024", "0.56574935", "0.56124234", "0.55852985", "0.55524546", "0.55197537", "0.55132776", "0.54478794", "0.5429359", "0.5427737", "0.5424876", "0.53960603", "0.5356029", "0.53...
0.62842304
1
Updates user information. Hashes the password if one is specified.
function updateUser($db, $user_id, $first_name, $last_name, $username, $email, $lang_id, $pw) { if ($last_name == '') { $last_name = NULL; } if ($email == '') { $email = NULL; } if ($pw == NULL || $pw == '') { $stmt = prepareQuery($db, "UPDATE Users SET first_name = ?, last_n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update()\n { if (is_null($this->id))\n trigger_error(\"User::update(): Attempt to update a User object that does not have its ID property set.\", E_USER_ERROR);\n \n // Update the User\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $sql = \"UPDATE us...
[ "0.7290778", "0.72181857", "0.71694404", "0.71387583", "0.7114397", "0.7022852", "0.6992686", "0.6954892", "0.6935676", "0.68397075", "0.6783665", "0.67814666", "0.6775424", "0.6774635", "0.67221296", "0.67037416", "0.6683721", "0.66710234", "0.66612506", "0.66583234", "0.665...
0.62112516
99
This function will interpret the request parameters either from a compressed base64 string, or from the $_REQUEST array when no compressed string is present
public function getRequestParameters() { switch($_SERVER['REQUEST_METHOD']) { case 'GET': $uri = $_SERVER['REQUEST_URI']; if(preg_match(RestAPI::CUSTOM_BASE64_REGEX, $_SERVER['REQUEST_URI'], $m)) return $this->parseCompressedParameters($m[0]); return $_GET; b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkZlibStr(){\n\t\t\n\t\t// $rawInput format : appid=xx&uid=xx&json_var=xx\t\n\t\tif( isset($_SERVER['HTTP_CONTENT_ENCODINGg']) && $_SERVER['HTTP_CONTENT_ENCODING'] == 'zlib' )\n\t\t{\n\t\t\t$urlZlibStirng = file_get_contents('php://input');\n\t\t\t$inflated = gzuncompress($urlZlibStirng,2048)...
[ "0.73243725", "0.6438085", "0.6409322", "0.6338132", "0.60481787", "0.5987733", "0.5855466", "0.58542573", "0.5840124", "0.5834622", "0.5692299", "0.56589246", "0.564348", "0.5623868", "0.55992687", "0.55913293", "0.5560114", "0.5488897", "0.5466301", "0.5450261", "0.543854",...
0.610066
4
Callback for the rest_api_init action, this function registers the plugins REST API routes.
public function onRestAPIInit() { // NB: Permalink Manager Lite compatibility. This fix prevents the plugin from causing POST REST requests being redirected to GET // NB: We also check the plugin is active to mitigate any potential effects to other plugins. This could be removed, as an optimization global $w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function register_rest_routes() {\n\t\tforeach (static::$apis as $api) {\n\t\t\t$api->register_rest_route();\n\t\t}\n }", "public function register_routes() {\n\n\t\tregister_rest_route( $this->namespace, '/location', array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::CREATABLE,\n\t\t\t\...
[ "0.76671755", "0.7524267", "0.7409069", "0.74011797", "0.738197", "0.7368013", "0.73632133", "0.73548836", "0.7343026", "0.73375875", "0.73208725", "0.7298212", "0.7244369", "0.72373813", "0.72190744", "0.719756", "0.7183139", "0.7175638", "0.7170645", "0.71684754", "0.713574...
0.81734467
0
Register routes for the nonce table
public function onParseRequest() { if(!defined('REST_REQUEST')) $this->registerRoutes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public function register_routes()\n {\n }", "public fun...
[ "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987", "0.66615987"...
0.0
-1
Callback for the /markers REST API route.
public function markers($request) { global $wpdb; global $wpgmza_tblname; $route = $_SERVER['REQUEST_URI']; $params = $this->getRequestParameters(); switch($_SERVER['REQUEST_METHOD']) { case 'GET': if(preg_match('#/wpgmza/v1/markers/(\d+)#', $route, $m)) { $marker = Ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allMapAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('UCrmCoreBundle:Client')->findAll();\n $googleSetting = $em->getRepository('UCrmCoreBundle:Setting')->findOneBy(['name' => 'google/api/key']);\n\n $markers = [];\n ...
[ "0.58146137", "0.57224566", "0.56612664", "0.55657756", "0.54533625", "0.54506075", "0.5401688", "0.5396483", "0.538044", "0.536063", "0.53246564", "0.53172624", "0.5309084", "0.5292169", "0.52536005", "0.5246612", "0.5221076", "0.5218896", "0.5208984", "0.5193157", "0.518794...
0.64974946
0
$key = (strpos($key, '_') === false) ? '_'.$key : $key;
public function get($key){ if(!property_exists(__CLASS__, $key)){ throw new Exception( '( ' . $key . ' ) Property Does not Exist'); } return $this->{$key}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _key($key) {\n if (empty($key)) {\n return false;\n }\n $key = preg_replace('/[\\s]+/', '_', strtolower(trim(str_replace(array(DIRECTORY_SEPARATOR, '/', '.'), '_', strval($key)))));\n return $key;\n }", "function str_underscore($str)\n{\n return strto...
[ "0.7640418", "0.6991398", "0.6686646", "0.66539776", "0.660206", "0.65845627", "0.6531224", "0.64472586", "0.6407885", "0.63711256", "0.6363484", "0.6355219", "0.6319458", "0.6317319", "0.6267234", "0.6243209", "0.62382853", "0.6229548", "0.6225973", "0.6223999", "0.62178105"...
0.0
-1
Handles PRE_SAVE storage event
public function onPreSave(StorageEvent $event) { // The ContentType of the record being saved $contenttype = $event->getContentType(); // The record being saved $record = $event->getContent(); // A flag to tell if the record was created, updated or deleted, // for m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preSave() {}", "function preSave()\n {\n }", "public function preSave() { }", "function preSave()\n\t{\n\n\t}", "public function preSaveCallback()\n {\n $this->performPreSaveCallback();\n }", "public function preSaveCallback()\n {\n $this->performPreSaveCallba...
[ "0.7629454", "0.76179045", "0.757922", "0.7398182", "0.7314148", "0.7314148", "0.70623374", "0.6951738", "0.6896127", "0.6855618", "0.68370724", "0.6822962", "0.6753438", "0.6680892", "0.6671837", "0.6661566", "0.6615564", "0.65894306", "0.65894306", "0.65544957", "0.6498888"...
0.7649959
0
Handles GET requests on the /example/url route.
public function routeExampleUrl(Request $request) { $response = new Response('Hello, Bolt!', Response::HTTP_OK); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function handleGET() {\n /* ... Do the stuff ... */\n\n return $this->render('default.html', array());\n }", "public function get($url);", "public function get(...$args) {\n $this->registerRouteHandler('GET', ...$args);\n }", "public function index_get() {\n $action = $t...
[ "0.64937466", "0.62216854", "0.62149876", "0.61636645", "0.61409914", "0.6134053", "0.6048498", "0.6003379", "0.6000507", "0.59063834", "0.59006375", "0.5888174", "0.5886635", "0.58744806", "0.58654106", "0.585502", "0.58294827", "0.5807118", "0.5785255", "0.57797927", "0.576...
0.0
-1
Handles GET requests on /bolt/mycustombackendpage and return a template.
public function exampleBackendPage(Request $request) { $html = $this->renderTemplate('custom_backend_site.twig', ['title' => 'My Custom Page']); return new Markup($html, 'UTF-8'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function handleGET() {\n /* ... Do the stuff ... */\n\n return $this->render('default.html', array());\n }", "protected abstract function _getBackend();", "public function initializeBackendTemplate() {}", "public abstract function getBackend();", "public function getBackend() {}"...
[ "0.66927063", "0.5895179", "0.5894921", "0.58881783", "0.58346105", "0.58346105", "0.58234954", "0.5814583", "0.57722443", "0.57219666", "0.5703323", "0.56822485", "0.55785835", "0.55703247", "0.5560361", "0.550637", "0.54953194", "0.5492058", "0.5472881", "0.5462857", "0.546...
0.60857064
1
get an instance of CI so we can access our configuration
function site_name() { $CI =& get_instance(); //return the full asset path return $CI->config->item('site_name'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ci()\n{\n\tstatic $CI;\n\tif (!$CI) $CI = get_instance();\n\treturn $CI;\n}", "function __construct()\n {\n $this->CI = &get_instance();\n }", "function &get_instance()\n{\n return FakeCI::get_instance();\n}", "public function __construct()\n {\n $this->CI = &get_instance()...
[ "0.7161254", "0.6990518", "0.68587166", "0.6808975", "0.6808975", "0.67444265", "0.657433", "0.65295994", "0.6516918", "0.65106386", "0.6508495", "0.64937043", "0.6437279", "0.6406346", "0.63971704", "0.6230189", "0.61055815", "0.608202", "0.60453576", "0.6037943", "0.6022826...
0.0
-1
get an instance of CI so we can access our configuration
function config_item($field) { $CI =& get_instance(); //return the full asset path return $CI->config->config[$field]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ci()\n{\n\tstatic $CI;\n\tif (!$CI) $CI = get_instance();\n\treturn $CI;\n}", "function __construct()\n {\n $this->CI = &get_instance();\n }", "function &get_instance()\n{\n return FakeCI::get_instance();\n}", "public function __construct()\n {\n $this->CI = &get_instance()...
[ "0.71604395", "0.69893897", "0.6859466", "0.6807826", "0.6807826", "0.67434734", "0.65733325", "0.65283203", "0.65159553", "0.6509803", "0.6507545", "0.64933205", "0.64364487", "0.6405922", "0.63960046", "0.6230663", "0.6105303", "0.6082127", "0.6044773", "0.60367477", "0.602...
0.0
-1
retrive data for user type
function get_user_type() { $CI =& get_instance(); $CI->load->library("session"); $CI->load->model('user_model'); $user_type_query = array( 'select' => array('user_type.*'), ); $user_type = $CI->user_model->get_rows($user_type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserType();", "public function getUserType();", "public function userDetails()\r\n {\r\n return UserType::find(Auth::user()->type_id);\r\n }", "public function getFullUserDetailsTypeWise($type)\n{\n\tif(!empty($type)){\n\t$this->sql = \"SELECT * FROM \".USER.\" AS U INNER JOIN...
[ "0.7764946", "0.7764946", "0.7405261", "0.723445", "0.7173163", "0.71149266", "0.6997949", "0.69967145", "0.6989882", "0.6972615", "0.69049746", "0.6898813", "0.68654597", "0.68157184", "0.67838067", "0.67751867", "0.677205", "0.6768623", "0.6763104", "0.6729404", "0.67271537...
0.7319931
3
retrive data for user type
function get_credit_card_info($user_id) { $CI =& get_instance(); $CI->load->library("session"); $CI->load->model('user_model'); $user_type_query = array( 'select' => array('credit_card_info.*'), 'where' => array('credit_card_info.user_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserType();", "public function getUserType();", "public function userDetails()\r\n {\r\n return UserType::find(Auth::user()->type_id);\r\n }", "function get_user_type()\r\r\n {\r\r\n $CI =& get_instance();\r\r\n $CI->load->library(\"session\");\r\r\n\t\t$CI->l...
[ "0.7764946", "0.7764946", "0.7405261", "0.7319931", "0.723445", "0.7173163", "0.71149266", "0.6997949", "0.69967145", "0.6989882", "0.6972615", "0.69049746", "0.6898813", "0.68654597", "0.68157184", "0.67838067", "0.67751867", "0.677205", "0.6768623", "0.6763104", "0.6729404"...
0.0
-1
retrive data for user type
function get_certificate($user_id) { $CI =& get_instance(); $CI->load->library("session"); $CI->load->model('user_model'); $user_type_query = array( 'select' => array('certificate_info.*'), 'where' => array('certificate_info.c_user' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserType();", "public function getUserType();", "public function userDetails()\r\n {\r\n return UserType::find(Auth::user()->type_id);\r\n }", "function get_user_type()\r\r\n {\r\r\n $CI =& get_instance();\r\r\n $CI->load->library(\"session\");\r\r\n\t\t$CI->l...
[ "0.77678704", "0.77678704", "0.7407689", "0.7322294", "0.72354484", "0.71742225", "0.7116158", "0.6998552", "0.6995419", "0.6990761", "0.6970757", "0.6906737", "0.68948317", "0.6866968", "0.68153024", "0.67853194", "0.677747", "0.6774331", "0.67697394", "0.67591983", "0.67307...
0.0
-1
retrive data for user type
function get_skill($user_id) { $CI =& get_instance(); $CI->load->library("session"); $CI->load->model('user_model'); $skill_query = array( 'select' => array('skill.*'), 'where' => array('skill.user_id' => $user_id), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserType();", "public function getUserType();", "public function userDetails()\r\n {\r\n return UserType::find(Auth::user()->type_id);\r\n }", "function get_user_type()\r\r\n {\r\r\n $CI =& get_instance();\r\r\n $CI->load->library(\"session\");\r\r\n\t\t$CI->l...
[ "0.7764946", "0.7764946", "0.7405261", "0.7319931", "0.723445", "0.7173163", "0.71149266", "0.6997949", "0.69967145", "0.6989882", "0.6972615", "0.69049746", "0.6898813", "0.68654597", "0.68157184", "0.67838067", "0.67751867", "0.677205", "0.6768623", "0.6763104", "0.6729404"...
0.0
-1
Make a Tradeoff Analytics Problem model.
function tradeoff_problem($definition) { return app(Models\Problem\Problem::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tradeoff_objective($definition)\n {\n return app(Models\\Resolution\\Objective::class)->setData($definition);\n }", "protected function makeModel()\n {\n return factory(Employee::class)->create();\n }", "public function problem()\n\t{\n\t\treturn $this->belongsTo('GoodlerJudg...
[ "0.5387841", "0.5368803", "0.53357875", "0.52323616", "0.49480316", "0.49337792", "0.49044344", "0.48836714", "0.48703688", "0.47872674", "0.47815168", "0.4777872", "0.47388592", "0.4682906", "0.46458", "0.46437058", "0.4639767", "0.46192256", "0.46188444", "0.46091655", "0.4...
0.6932116
0
Make a Tradeoff Analytics Column model.
function tradeoff_column($definition) { return app(Models\Problem\Column::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function modelColumn();", "public function newColumnChart()\n {\n return $this->newChart('column');\n }", "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new Data...
[ "0.55865693", "0.53712475", "0.52920145", "0.525313", "0.520232", "0.518808", "0.51679075", "0.5116892", "0.5109464", "0.5093892", "0.50252277", "0.49910828", "0.49740988", "0.4973126", "0.4961992", "0.49565408", "0.49563792", "0.49073502", "0.48833624", "0.48475957", "0.4846...
0.61425686
0
Make a Tradeoff Analytics Option model.
function tradeoff_option($definition) { return app(Models\Problem\Option::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function option()\n {\n return $this->belongsTo(Option::class);\n }", "public function option()\n {\n return $this->hasOne('App\\Option');\n }", "public function run()\n {\n PaymentOption::create([\n 'type' => 'Paid',\n\n ]);\n PaymentO...
[ "0.53746706", "0.5258451", "0.5211948", "0.51423496", "0.513975", "0.5004978", "0.497407", "0.49617735", "0.49544948", "0.49401957", "0.48718283", "0.484678", "0.48243806", "0.47866303", "0.47739577", "0.4749094", "0.47436422", "0.47419932", "0.47333917", "0.47311863", "0.472...
0.6467772
0
Make a Tradeoff Analytics CategoricalRange model.
function tradeoff_categorical_range($definition) { return app(Models\Problem\Range\CategoricalRange::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newColumnRangeChart()\n {\n return $this->newChart('columnrange');\n }", "public function newAreaRangeChart()\n {\n return $this->newChart('arearange');\n }", "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }",...
[ "0.6077352", "0.55718756", "0.53451973", "0.52583504", "0.5255813", "0.5057003", "0.49795285", "0.48774493", "0.47808704", "0.46851113", "0.4673235", "0.46658993", "0.45550042", "0.45510018", "0.45510018", "0.4509307", "0.44942454", "0.4472816", "0.44661167", "0.44647938", "0...
0.7246017
0
Make a Tradeoff analytics DateRange model.
function tradeoff_date_range($definition) { return app(Models\Problem\Range\DateRange::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createModel()\n {\n $groupby['period_1'] = new \\Zend_Db_Expr(\"YEAR($this->dateFrom)\");\n\n $date = new \\MUtil_Date();\n\n switch ($this->dateType) {\n case 'D':\n $keyCount = 1;\n $groupby['period_1'] = new \\Zend_Db_Expr(\"CON...
[ "0.6555594", "0.633932", "0.6170477", "0.60939115", "0.5960038", "0.5833196", "0.57870334", "0.5717987", "0.5715865", "0.568564", "0.56799614", "0.5622919", "0.55530155", "0.55112225", "0.55045235", "0.5456811", "0.5443545", "0.5440013", "0.54226375", "0.5409994", "0.5379887"...
0.72877276
0
Make a Tradeoff analytics ValueRange model.
function tradeoff_value_range($definition) { return app(Models\Problem\Range\ValueRange::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tradeoff_date_range($definition)\n {\n return app(Models\\Problem\\Range\\DateRange::class)->setData($definition);\n }", "public function getRange() {\n\n }", "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }", "function trad...
[ "0.6332894", "0.59103686", "0.5671258", "0.5618868", "0.5614305", "0.5456147", "0.5456147", "0.54478186", "0.54024965", "0.5399841", "0.53787833", "0.5333866", "0.5299879", "0.52891177", "0.5215852", "0.5187049", "0.51647687", "0.5104551", "0.50985104", "0.5089292", "0.508729...
0.7410352
0
Make a Tradeoff analytics Dilemma model.
function tradeoff_dilemma($definition) { return app(Models\Dilemma::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTransformer()\n {\n return new FaqTransformer();\n }", "public function run()\n {\n Symptom::unguard();\n\n $this->insert(267036007, 'Dyspnea', 'Atemnot');\n $this->insert(418290006, 'Itching', 'Juckreiz');\n $this->insert(422400008, 'Vomiting', 'Erb...
[ "0.4999008", "0.49759442", "0.47418952", "0.46867752", "0.46634892", "0.46490675", "0.46423227", "0.46423227", "0.46423227", "0.46423227", "0.46168604", "0.46116447", "0.46116447", "0.46116447", "0.46116447", "0.45410812", "0.45115525", "0.45019677", "0.44891387", "0.44792363",...
0.6802226
0
Make a Tradeoff Analytics Resolution model.
function tradeoff_resolution($definition) { return app(Models\Resolution\Resolution::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tradeoff_solution($definition)\n {\n return app(Models\\Resolution\\Solution::class)->setData($definition);\n }", "function tradeoff_objective($definition)\n {\n return app(Models\\Resolution\\Objective::class)->setData($definition);\n }", "public static function newResolutio...
[ "0.55096525", "0.54689956", "0.49807534", "0.47744232", "0.4763056", "0.47543567", "0.46611014", "0.45604604", "0.4510209", "0.45078897", "0.44649595", "0.44575173", "0.44481984", "0.444243", "0.44362897", "0.44333607", "0.4396089", "0.43610474", "0.43444967", "0.43355688", "...
0.66056156
0
Make a Tradeoff Analytics Solution model.
function tradeoff_solution($definition) { return app(Models\Resolution\Solution::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tradeoff_objective($definition)\n {\n return app(Models\\Resolution\\Objective::class)->setData($definition);\n }", "function tradeoff_problem($definition)\n {\n return app(Models\\Problem\\Problem::class)->setData($definition);\n }", "protected function makeModel()\n {\n ...
[ "0.5663596", "0.5576707", "0.54545355", "0.5380355", "0.5358235", "0.52995664", "0.5278444", "0.5258599", "0.5182371", "0.5124637", "0.5033073", "0.50270295", "0.4946104", "0.49460104", "0.49400827", "0.49145082", "0.48916852", "0.48861104", "0.48855788", "0.4863523", "0.4851...
0.6489289
0
Make a Tradeoff Analytic StatusCause model.
function tradeoff_status_cause($definition) { return app(Models\Resolution\StatusCause::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSttOne()\n\t\t{\n\t\t\treturn $this->hasOne(Status::className(), ['STS_ID' => 'EMP_STS']);\n\t\t}", "public function updateUrgencyStatuses() {\n\n\n $deadlineOverdue = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.OVERDUE_DAYS') . ' days'));\n $overdueTickets = $thi...
[ "0.49016166", "0.47538278", "0.47369498", "0.47008187", "0.4678369", "0.4673617", "0.45981714", "0.4580917", "0.45793414", "0.45649642", "0.4555066", "0.4542887", "0.45220673", "0.4503431", "0.44841963", "0.44782856", "0.44782856", "0.44782856", "0.44782856", "0.44577873", "0...
0.72557455
0
Make a Tradeoff Analytic ExcludedBy model.
function tradeoff_excluded_by($definition) { return app(Models\Resolution\ExcludedBy::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exclude_offered() {\n\t\treturn new PSU_Student_Finaid_Awards_ExcludeOfferedFilterIterator( $this->getIterator() );\n\t}", "public function getDoktypeExcludeWhere() {}", "function BuyableCalculatedExcludedFrom(){\n\t\tif($this->owner InstanceOf ProductVariation) {\n\t\t\tif($product = $this->ow...
[ "0.6157554", "0.61405677", "0.58670014", "0.57367826", "0.56896824", "0.56858283", "0.55758315", "0.5535915", "0.54443634", "0.5409606", "0.5384123", "0.5357098", "0.53203064", "0.5307071", "0.52815884", "0.5239547", "0.52279764", "0.5154376", "0.51279855", "0.51240456", "0.5...
0.7108702
0
Make a Tradeoff Analytic Objective model.
function tradeoff_objective($definition) { return app(Models\Resolution\Objective::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function takeObjective() {\n return Engine::send('takeObjective');\n}", "public function model()\n {\n return Avaliacoe::class;\n }", "public function makeGoal()\n\t\t{\n\t\t\t$this->estimated = 0;\n\t\t}", "public function doApology()\n {\n\n // Check for a token authority.\n ...
[ "0.50612545", "0.50540435", "0.5012794", "0.48829517", "0.47404012", "0.46976373", "0.46690518", "0.4581245", "0.45736402", "0.45678732", "0.45147532", "0.45055532", "0.44445407", "0.44371048", "0.4411628", "0.44058284", "0.43689695", "0.43680695", "0.43556556", "0.4353994", ...
0.646052
0
Make a Tradeoff Analytic PreferableSolutions model.
function tradeoff_preferable_solutions($definition) { return app(Models\Resolution\PreferableSolutions::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tradeoff_solution($definition)\n {\n return app(Models\\Resolution\\Solution::class)->setData($definition);\n }", "function tradeoff_objective($definition)\n {\n return app(Models\\Resolution\\Objective::class)->setData($definition);\n }", "public function getSolutions()\n ...
[ "0.5997858", "0.5355454", "0.5093907", "0.4920176", "0.4840708", "0.48018634", "0.474178", "0.47090665", "0.4702331", "0.4641228", "0.46193802", "0.46183017", "0.46158707", "0.4601059", "0.4569019", "0.45001954", "0.4490552", "0.44210723", "0.44103464", "0.4407048", "0.439835...
0.7049877
0
Make a Tradeoff Analytics Map model.
function tradeoff_map($definition) { return app(Models\Resolution\Map\Map::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_model($map) {\n\n $billing_payment_extranet_model = new Billing_Payment_Extranet_Model();\n $billing_payment_extranet_model->populate($map);\n return $billing_payment_extranet_model;\n }", "public static function buildTableMap()\n {\n $dbMap = Propel::getDatabaseMap(BaseG...
[ "0.59187526", "0.5787678", "0.5739227", "0.5716564", "0.5670551", "0.5582077", "0.5549138", "0.5500925", "0.5492351", "0.54567426", "0.5406554", "0.539647", "0.5386758", "0.5360815", "0.53603566", "0.53166103", "0.5316526", "0.53158975", "0.5310564", "0.5275705", "0.52270895"...
0.66230464
0
Make a Tradeoff Analytics Anchor model.
function tradeoff_map_anchor($definition) { return app(Models\Resolution\Map\Anchor::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function convert(ProtobufAnchor $protobufAnchor): Anchor\n {\n $anchorSubType = $protobufAnchor->getSubType();\n $yotiSignedTimeStamp = self::convertToYotiSignedTimestamp($protobufAnchor);\n $X509CertsList = self::convertCertsListToX509($protobufAnchor->getOriginServerCerts())...
[ "0.5559214", "0.49653018", "0.48458144", "0.48174313", "0.4785243", "0.47813904", "0.4609878", "0.4587412", "0.45784315", "0.45731735", "0.45549545", "0.4547141", "0.45197347", "0.45041877", "0.44910425", "0.4483744", "0.4477654", "0.44319275", "0.44319275", "0.44294828", "0....
0.63269764
0
Make a Tradeoff Analytics Node model.
function tradeoff_map_node($definition) { return app(Models\Resolution\Map\MapNode::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n $this->nodeStorage = \\Drupal::entityTypeManager()->getStorage('node');\n }", "public function model()\n {\n return Node::class;\n }", "public function definition()\n {\n $price = $this->faker->randomFloat(8, 0.25, 46743.27); //BTC on 2021.09.14\n ...
[ "0.5012227", "0.50008374", "0.48934618", "0.48525146", "0.48333496", "0.48301962", "0.47349432", "0.4722667", "0.46991792", "0.46785918", "0.46502763", "0.4623387", "0.46198723", "0.46171236", "0.46158236", "0.46055305", "0.46021736", "0.460181", "0.4599481", "0.45965418", "0...
0.51790166
0
Make a Tradeoff Analytics MapNodeCoordinates object.
function tradeoff_map_node_coordinates($definition) { return app(Models\Resolution\Map\MapNodeCoordinates::class)->setData($definition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCoordinates();", "public function test_make_coordinates_2()\n {\n $coord = \"-120,\";\n $dd = \\SimpleMappr\\Mappr::makeCoordinates($coord);\n $this->assertEquals($dd[0], null);\n $this->assertEquals($dd[1], null);\n }", "public function test_make_coordinate...
[ "0.58356076", "0.5559687", "0.54970896", "0.5429192", "0.53995705", "0.5352744", "0.52874845", "0.52556044", "0.5248904", "0.52272356", "0.51944643", "0.50153875", "0.50012714", "0.4990762", "0.49254802", "0.48194978", "0.47588524", "0.47515777", "0.47357926", "0.4675521", "0...
0.66810024
0
Relation recettes ...1 bougie
public function bougie(): Bougie { return $this->belongsTo(Bougie::class, $this->id_bougie); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function relations();", "protected static function _relations() {\n\n\t}", "public function getRelations();", "public function getRelations();", "abstract public static function relations() : ? array;", "public function getRelationList();", "public function setRelations() {}", "public functi...
[ "0.6857864", "0.6534578", "0.60392004", "0.60392004", "0.59569347", "0.595135", "0.59344643", "0.5930568", "0.5913725", "0.5900189", "0.5900189", "0.5900189", "0.5900189", "0.5900189", "0.5900189", "0.5900189", "0.5900189", "0.5900189", "0.58769953", "0.58769953", "0.58769953...
0.0
-1
Relation recettes ...1 odeur
public function odeur(): Odeur { return $this->belongsTo(Odeur::class, $this->id_odeur); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function relations();", "protected static function _relations() {\n\n\t}", "public function getRelationList();", "public function getRelations();", "public function getRelations();", "function userelation($relation) { atkuse(\"relation\" , $relation); }", "abstract public static function rela...
[ "0.70831686", "0.6612953", "0.62101054", "0.62095916", "0.62095916", "0.618602", "0.60655785", "0.60252166", "0.6022163", "0.6021206", "0.5975618", "0.5931128", "0.5881327", "0.5881327", "0.5881327", "0.5881327", "0.5881327", "0.5881327", "0.5881327", "0.5881327", "0.5881327"...
0.0
-1