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
take number of type from MySQL
public static function showProgramType($type) { // return program_type(string) switch ($type) { case '1': return 'Тренировки и питание'; break; case '2': return 'Только тренировки'; break; case '3': return 'Только питание'; break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function obtenirNbTypesChambres ($connexion) {\r\n\r\n $req = \"SELECT COUNT(*) FROM TypeChambre\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> execute ();\r\n return $stmt -> fetchColumn ();\r\n\r\n }", "public static function getNbType()\n {\n \n \t$conn = Connectio...
[ "0.6954503", "0.68636864", "0.6753471", "0.6485421", "0.64777714", "0.6458232", "0.6424691", "0.6402442", "0.6399041", "0.62880623", "0.6281615", "0.6275231", "0.6235195", "0.62259793", "0.6218766", "0.6184116", "0.61784405", "0.61619866", "0.6149986", "0.6133919", "0.6084360...
0.0
-1
Extract C14N content by path from the XML DOM.
private function calculateC14N( DOMXPath $xpath, string $path = '/', string $algorithm = 'REC-xml-c14n-20010315' ): string { switch ($algorithm) { case 'REC-xml-c14n-20010315': $exclusive = false; $withComments = false; brea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function read($path) {\n\t\ttry {\n\t\t\tif (!$this->domDocument->load($path)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (\\Exception $e) {\n\t\t\treturn null;\n\t\t}\n\t\tif ($this->domDocument->childNodes->length !== 1 || !($this->domDocument->childNodes->item(0) instanceof \\DOMElement)) {\n\t\t\ttri...
[ "0.5358944", "0.5131136", "0.5107001", "0.49894908", "0.4873425", "0.4852532", "0.48484993", "0.48452428", "0.48309934", "0.48294657", "0.479966", "0.47646958", "0.4755932", "0.4718193", "0.4673095", "0.45809853", "0.4547619", "0.44988406", "0.44892895", "0.44871345", "0.4451...
0.592041
0
Function that makes sure an auction is removed when timestamp is expired
function checkTimestamps() { $now = date("Y-m-d H:i:s"); $dbconnexion = pg_connect("host=localhost port=5432 dbname=Projet_Web user=postgres password=postgres") or die('connection failed'.pg_last_error()); $dbquery = pg_query($dbconnexion, "SELECT COUNT(*) FROM objets where statut=1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeExpired();", "function spamhurdles_db_remove_expired()\n{\n global $PHORUM;\n\n phorum_db_interact(\n DB_RETURN_RES, \n \"DELETE FROM {$PHORUM['spamhurdles_table']}\n WHERE expire_time < \" . time(),\n NULL, DB_MASTERQUERY\n );\n}", "public function ...
[ "0.75044245", "0.7293249", "0.68911415", "0.6873031", "0.6413359", "0.64056736", "0.6401015", "0.6396892", "0.63235426", "0.6318118", "0.6199717", "0.6194168", "0.61883366", "0.61504936", "0.60936505", "0.6072756", "0.60678685", "0.60574627", "0.6020272", "0.60188556", "0.601...
0.58750033
37
/ /Enqueue Admin Style /
function az_admin_scripts() { wp_enqueue_style( 'az-admin', get_template_directory_uri() . '/_include/css/admin-style.css' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_enqueue()\n\t{\n\t\t// styles.\n\n\t}", "public static function enqueue_admin_styles_and_scripts() {\n\t\n\t\t\t?>\n\t\t\t<style>#adminmenu .menu-icon-simple_sponsor div.wp-menu-image:before { content: \"\\f307\"; }</style>\n\t\t\t<?php\n\t\t\n\t}", "function enqueue_admin_styles()\n\t\t{...
[ "0.8195159", "0.76966995", "0.7665038", "0.7606376", "0.75390637", "0.74720097", "0.74720097", "0.74720097", "0.74720097", "0.74720097", "0.74720097", "0.74720097", "0.7428633", "0.74253887", "0.7414359", "0.7407026", "0.73964196", "0.7394788", "0.7378411", "0.73718375", "0.7...
0.7359686
21
Loads the javascript required for threaded comments
function az_page_specific_js() { if( is_singular() && comments_open() && get_option( 'thread_comments') ) wp_enqueue_script( 'comment-reply' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function morganceken_load_scripts() {\r\n\r\n\t/* Load the comment reply JavaScript. */\r\n\tif ( is_singular() && get_option( 'thread_comments' ) && comments_open() )\r\n\t\twp_enqueue_script( 'comment-reply' );\r\n}", "function commentqc_load_file()\n{\n\trequire MYBB_ROOT . 'inc/3rdparty/CommentQC.php';\n}", ...
[ "0.7110873", "0.69314384", "0.6694888", "0.66659963", "0.6625688", "0.6583102", "0.65795743", "0.65211", "0.6422994", "0.6420705", "0.64083695", "0.63988954", "0.6373788", "0.6362253", "0.63371396", "0.6239493", "0.6165775", "0.6140854", "0.6135658", "0.61091465", "0.6107277"...
0.6947317
1
/ /Common Fix / Twitter Filter
function TwitterFilter($string) { $content_array = explode(" ", $string); $output = ''; foreach($content_array as $content) { //starts with http:// if(substr($content, 0, 7) == "http://") $content = '<a href="' . $content . '">' . $content . '</a>'; //starts with www. if(substr($content, 0, 4) == "www.") $content = '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preProcessTweet($tweet) {\n // Pre-process the tweets\n //Convert to lower case\n $tweet = strtolower($tweet) ;\n //Convert @username to AT_USER\n\t$tweet = preg_replace('/(^|\\s)@([a-z0-9_]+)/i',' atuser',$tweet) ;\n\n /*Remove all punctuation is done in addToFeatureVector function\n\t/Rem...
[ "0.6333753", "0.6213161", "0.6031729", "0.5991029", "0.59811395", "0.5817174", "0.5797392", "0.57895756", "0.5713651", "0.5702641", "0.5656606", "0.56372696", "0.5592577", "0.5572264", "0.55515116", "0.5548035", "0.5548035", "0.5539803", "0.55269766", "0.5524552", "0.5521347"...
0.66003656
0
/ /Meta Config /
function enqueue_media(){ //enqueue the correct media scripts for the media library $wp_version = floatval(get_bloginfo('version')); if ( $wp_version < "3.5" ) { wp_enqueue_script( 'redux-opts-field-upload-js', AZ_FRAMEWORK_DIRECTORY . 'assets/upload/field_upload_3_4.js', array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readMetaConfig(){\r\n\t\tif($this->CI->config->item('zt_head_meta')){\r\n\t\t\t$metaTags = $this->CI->config->item('zt_head_meta');\r\n\t\t\t$meta = null;\r\r\n\t\t\tforeach($metaTags as $metaTag){\r\n\t\t\t\tif(isset($metaTag[\"type\"])){\r\t\t\t\t\tif(isset($metaTag[\"lang\"]) && $metaTag[\"lang...
[ "0.73531485", "0.6668278", "0.6654301", "0.6646699", "0.6602844", "0.65854317", "0.6527783", "0.64449346", "0.64428604", "0.63322103", "0.63322103", "0.63322103", "0.6305221", "0.6303865", "0.6289895", "0.6229139", "0.6229139", "0.62184143", "0.62172294", "0.621367", "0.62024...
0.0
-1
/ /Remove the page jump when clicking read more button /
function az_remove_more_jump_link($link) { $offset = strpos($link, '#more-'); if ($offset) { $end = strpos($link, '"',$offset); } if ($end) { $link = substr_replace($link, '', $offset, $end-$offset); } return $link; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function no_more_jumping($post) {\n\t\treturn '&nbsp;<a href=\"'.get_permalink($post->ID).'\" class=\"read-more\">'.'Continue Reading'.'</a>';\n\t}", "function remove_more_jump_link($link) { \n$offset = strpos($link, '#more-');\nif ($offset) {\n$end = strpos($link, '\"',$offset);\n}\nif ($end) {\n$link = substr_...
[ "0.7629213", "0.67812854", "0.67812854", "0.66489977", "0.6591094", "0.6491992", "0.6441442", "0.644008", "0.644008", "0.6431655", "0.63452196", "0.6335838", "0.62987417", "0.6293996", "0.6274563", "0.627172", "0.6247733", "0.6237034", "0.6208198", "0.6138921", "0.6136411", ...
0.63723165
10
/ / Enable SVG on Wordpress Media / If you want you can use this function for enabled the SVG file for Media Uploader
function cc_mime_types( $mimes ){ $mimes['svg'] = 'image/svg+xml'; return $mimes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ux_enable_svg( $mimes ){\r\n $mimes['svg'] = 'image/svg+xml';\r\n return $mimes;\r\n}", "function wp_global_styles_render_svg_filters()\n {\n }", "function add_svg_to_upload_mimes( $upload_mimes ) {\n\t$upload_mimes['svg'] = 'image/svg+xml';\n\t$upload_mimes['svgz'] = 'image/svg+xml';\n\tretur...
[ "0.7600582", "0.66606176", "0.66572917", "0.66572917", "0.66070944", "0.6474232", "0.6415761", "0.63227683", "0.63018835", "0.6215421", "0.6179185", "0.6115164", "0.60814095", "0.60710317", "0.60707575", "0.6053094", "0.5962119", "0.59348136", "0.5893191", "0.58926433", "0.58...
0.535665
41
/ ====================================== Frontend Enqueue function ======================================
function register_theme_styles_and_scripts(){ // Register style wp_enqueue_style( 'theme-icons', get_template_directory_uri(). '/css/icons.css', array(), '1.0.0', 'all' ); // Register font icons wp_enqueue_style( 'google_fonts', sunset_google_fonts_url(), array(), '1.0.0'); // Register Google fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enqueue(){\n\t\t}", "public function enqueue() {\n\t}", "public static function enqueue();", "function enqueue ($entry) {\n\n}", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public fu...
[ "0.8192888", "0.7921139", "0.7916165", "0.7715793", "0.7697094", "0.7697094", "0.7697094", "0.7697094", "0.7697094", "0.7697094", "0.6585265", "0.6398599", "0.6392195", "0.63734704", "0.6365838", "0.63481236", "0.62860113", "0.6207789", "0.6177022", "0.614136", "0.6100374", ...
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Execute the console command.
public function handle() { $this->downloadFile = storage_path(config('geoip2.tempFile')); $this->downloadUrl = config('geoip2.downloadUrl'); $this->dbFilePath = storage_path(config('geoip2.dbName')); if (!$this->downloadFile or !$this->downloadUrl or !$this->dbFilePath) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
only show the stats that have changed
private function displayIndividualStats($player) { $changes = $player->statChanges(); if (count($changes) > 0) { $this->ui->display("| $player->name:"); foreach ($changes as $change) { $this->ui->display("| " . $change->type . ": " . $change->value); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function renderStats() {\n\t\t$stats = WCF::getCache()->get('stat');\n\t\tWCF::getTPL()->assign('stats', $stats);\n\t}", "function svp_actualiser_stats() {\n\t\n\t// Initialisation du retour\n\t$retour = true;\n\n\t// Récupération des statistiques globales (toute version SPIP) et mise en base dans la t...
[ "0.62557626", "0.61388916", "0.61089915", "0.6011633", "0.59606117", "0.5898079", "0.5885448", "0.58326066", "0.57303363", "0.5688882", "0.5663375", "0.5663375", "0.5657756", "0.5654298", "0.56527036", "0.56269556", "0.56269556", "0.5621624", "0.55911", "0.55721366", "0.55013...
0.6033549
3
pick the first attacker based on stats
public function playRound() { $this->checkFirstAttack(); // Orderus attacks if ($this->orderus_attacks) { $attacks = $this->orderus->rapidStrike(); if ($attacks > 1) { $this->ui->display($this->narration->orderusRapidStrike()); $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getAttack();", "private function attack()\n {\n $this->tempAttackerStats = $this->attacker->stats;\n $this->tempDefenderStats = $this->defender->stats;\n\n // 1. Before hit check, apply all luck modifying skills\n $skills = array_filter($this->attacker->cha...
[ "0.56761307", "0.55927336", "0.5297794", "0.52945346", "0.5269434", "0.51673794", "0.51033634", "0.5098138", "0.50944054", "0.5078434", "0.5061303", "0.5044363", "0.4988698", "0.4959532", "0.49444476", "0.4935408", "0.48975685", "0.48947492", "0.4871777", "0.484587", "0.48445...
0.0
-1
Display the form to request a password reset link.
public function showLinkRequestForm() { if (property_exists($this, 'linkRequestView')) { return view($this->linkRequestView); } return $this->load_theme('auth.password.email'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showResetForm()\n {\n // if user is logged in, do not let him access this page\n if( Session::isLoggedIn() )\n {\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n $userID = SCMUtility::c...
[ "0.82746035", "0.8026065", "0.7937366", "0.790148", "0.77341527", "0.7705268", "0.7705268", "0.7630974", "0.76198614", "0.7568418", "0.7560725", "0.7485317", "0.7485177", "0.7482375", "0.7467139", "0.7437944", "0.74254894", "0.74085516", "0.73910666", "0.7389647", "0.73745", ...
0.72796863
23
See T13685. After changes to file attachment handling, the database
protected function getDefaultValueFromConfiguration($value) { // was briefly poisoned with "array()" values as defaults. try { $value = phutil_string_cast($value); } catch (Exception $ex) { $value = ''; } catch (Throwable $ex) { $value = ''; } return $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateAttachments() {\n $engine = defined('DB_CAN_TRANSACT') && DB_CAN_TRANSACT ? 'InnoDB' : 'MyISAM';\n\n try {\n $attachments_table = TABLE_PREFIX . 'attachments';\n $file_versions_table = TABLE_PREFIX . 'file_versions';\n $text_document_versions_table = TABLE_PREFIX . 'text_documen...
[ "0.6763393", "0.67332155", "0.6626543", "0.6595249", "0.62957585", "0.6158966", "0.6158898", "0.60258716", "0.6024181", "0.6007097", "0.5996392", "0.5933479", "0.5926783", "0.58787787", "0.58655405", "0.58633494", "0.5848731", "0.5847939", "0.58439785", "0.584132", "0.5836015...
0.0
-1
metodo para cargar la vista
public function view($view, $data=[]){ // verificamos que el archivo de la vista exista dentro de la carpeta vistas if(file_exists('../app/views/'. $view. '.php')){ //requerimos la vista require_once '../app/views/'. $view. '.php'; }else{ // si la vista no exi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getVista()\n {\n try {\n $list = $this->mCategory->get_All();\n include_once('./vistes/categoria.php');\n }catch(Exception $e){\n $this->error->throwException('304', 'No s`ha pogut carregar les dades i la vista', $e);\n }\n }", "function inform...
[ "0.66641486", "0.66492146", "0.6619045", "0.6597586", "0.65276545", "0.644221", "0.63991034", "0.6395894", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", "0.6355054", ...
0.0
-1
status class to change tailwind class in the idea container
public function statusClass() { if ($this->name == 'In Progress') { return 'bg-yellow text-white'; } if ($this->name == 'Closed') { return 'bg-red text-white'; } if ($this->name == 'Implemented') { return 'bg-green text-white'; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function status() {\n if ($this->getWillLend()) {\n if ($this->isItHome()) {\n return 'green';\n }\n else {\n return 'yellow';\n }\n }\n else {\n return 'red';\n }\n }", "public function publishedClass()\n {\n return $this->isActive() ? 'succes...
[ "0.5767516", "0.57019573", "0.57009804", "0.5644828", "0.5610666", "0.55680877", "0.5534342", "0.55323625", "0.55323243", "0.54496753", "0.54371345", "0.54339457", "0.54200757", "0.5385096", "0.5355824", "0.5354117", "0.5317713", "0.53157926", "0.5276648", "0.525097", "0.5242...
0.6497902
0
Create a new event instance.
public function __construct($iuguSubscription, $userId, $planId){ $this->iuguSubscription = $iuguSubscription; $this->userId = $userId; $this->planId = $planId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEvent()\n {\n return new Event();\n }", "public function __create()\n {\n $this->eventPath = $this->data('event_path');\n $this->eventName = $this->data('event_name');\n $this->eventInstance = $this->data('event_instance');\n $this->eventFilter = ...
[ "0.8178475", "0.73455495", "0.67515916", "0.6665345", "0.66544545", "0.66479546", "0.6640835", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6543442", "0.64682955", "0.645909", "0.64520663", "0.6441302", "0.6438299", "0.63917476", "0.6371641", "0.6371641...
0.0
-1
/ Press Releases Index
public function pressreleasesAction(){ Mage::register('profile_category_id', RichardMason_Profile_Model_Profile::CATEGORY_RELEASES); $this->_initAction() ->renderLayout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function index($args) {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$press =& Request::getPress();\n\t\t$pressId = $press->getId();\n\t\t$user =& Request::getUser();\n\n\t\t$editorSubmissionDao =& DAORegistry::getDAO('EditorSubmissionDAO');\n\n\t\...
[ "0.5970143", "0.59173495", "0.5848277", "0.578167", "0.56800824", "0.56756544", "0.55584323", "0.5544939", "0.5475875", "0.54617167", "0.53978467", "0.5390521", "0.53709507", "0.53709507", "0.53690994", "0.5368703", "0.5339302", "0.5331384", "0.53306925", "0.5330218", "0.5316...
0.5793721
3
/ Press Articles Index
public function pressarticlesAction(){ Mage::register('profile_category_id', RichardMason_Profile_Model_Profile::CATEGORY_ARTICLES); $this->_initAction() ->renderLayout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction() {\n //on forge la requete SQL\n $articles = $this->repo->getAll();\n \n if ($articles) {\n $nbRows = count($articles);\n \n \n \n \n \n \n \n }\n \n ...
[ "0.73535544", "0.7282216", "0.7262289", "0.7147805", "0.7123568", "0.7111366", "0.7109571", "0.70885646", "0.69762063", "0.6975377", "0.6964888", "0.6957466", "0.69342643", "0.6928019", "0.6918523", "0.6916031", "0.68950063", "0.68942255", "0.68832386", "0.68622696", "0.68620...
0.0
-1
Filtering posted data. Converting localized data if needed
protected function _filterPostData($data) { $data = $this->_filterDates($data, array('creation_time')); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter($data);", "function _prepareFilter(&$controller){\n \t\n\t\t$filter = array();\n if(isset($controller->data)){\n foreach($controller->data as $model=>$fields){\n foreach($fields as $key=>$field){\n if($field == ''){\n ...
[ "0.66446686", "0.6609953", "0.66077715", "0.6393963", "0.6388798", "0.6364545", "0.6357014", "0.63384354", "0.6317112", "0.63004816", "0.6291246", "0.6247857", "0.6206712", "0.61958313", "0.6186116", "0.61714375", "0.6144484", "0.6143591", "0.6095964", "0.6047715", "0.604055"...
0.6396508
3
This method is used to initialize Facebook connector
public function run($logged = false) { watch($_GET); $config = CMap::mergeArray(array( 'class' => 'greennet.modules.social.components.Facebook.GNFacebookConnector' ), Yii::app()->params['OAuth']['Facebook']); $this->_connector = Yii::createComponent($config); $this->_connector->init(); $isConnected...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function init()\n\t{\n\t\t$this->db = MySQL::factory(DB_HOST, DB_NAME, DB_USER, DB_PASS);\n\t\tFacebookSession::setDefaultApplication(FB_APP_ID, FB_APP_SECRET);\n\t}", "public function __construct() {\n $this->fb = new Facebook([\n 'app_id' => Config::FB_APP_ID,\n 'app_secr...
[ "0.7609443", "0.74677885", "0.73835385", "0.7266006", "0.72182274", "0.71855587", "0.7177647", "0.71776307", "0.7134793", "0.71260446", "0.71042454", "0.6933917", "0.6923499", "0.69021493", "0.6746781", "0.6400601", "0.63785857", "0.63093054", "0.6296889", "0.6280309", "0.624...
0.0
-1
Custom columns for post Type.
function mp_thumbnail_columns( $columns ){ $new_columns = array(); foreach( $columns as $column_name => $column_info ){ $new_columns[$column_name] = $column_info; if('cb' === $column_name ){ $new_columns['thumb_img'] = __('Thumbnail'); } } return $new_columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initColumns(){\n //Initialize our custom post type column management\n $this->cptWPDSCols = new Columns($this->wpdsPostType);\n \n //Remove our title\n $this->cptWPDSCols->removeColumn('title');\n \n //Add our content column\n $this->cptWPDSCols->addColumn('...
[ "0.762598", "0.7573291", "0.729674", "0.70902085", "0.70582235", "0.7049243", "0.7039391", "0.691305", "0.68555903", "0.6836154", "0.67929494", "0.67682314", "0.6741773", "0.67375535", "0.66525227", "0.66392493", "0.65915394", "0.6553996", "0.6528301", "0.65236664", "0.652185...
0.0
-1
Custom content on columns.
function posts_custom_columns( $column_name, $id ){ if( $column_name === 'thumb_img'){ echo the_post_thumbnail('thumb_img'); } //global $post; //$custom = get_post_custom($post->ID); //$email = $custom["email"][0]; //if($column_name === 'email'){ //echo $email; //} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_custom_columns($column) \n {\n global $post;\n \n //var_dump($post);\n switch($column) {\n case 'shortcode':\n printf(\"[bbquote id='%s']\", $post->ID);\n break;\n case 'quote':\n echo $post->post_content;\n break;\n }\n ...
[ "0.71387213", "0.70044196", "0.6993566", "0.69679165", "0.6887605", "0.6853894", "0.68093246", "0.6788378", "0.6740378", "0.6740052", "0.6616079", "0.6517235", "0.6500061", "0.64900064", "0.64820665", "0.64644533", "0.6458522", "0.6417948", "0.63920593", "0.6380379", "0.63756...
0.0
-1
Custom thumbnail on column.
function thumb_column(){ echo '<style type="text/css"> #thumb_img {width:100px; !important; } .thumb_img img {width:100% !important; height:auto !important; } </style>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function thumbnailCustomColumn($column_name, $id)\n {\n if ($column_name === '$this->postThumbs') {\n echo the_post_thumbnail([100, 100]);\n }\n }", "function foool_partner_custom_columns_render($column_name, $post_id){\n\n switch ($column_name) {\n case 'thumb' : ...
[ "0.7872307", "0.7632798", "0.7335973", "0.71589774", "0.7131351", "0.71109754", "0.7045007", "0.69355494", "0.69355494", "0.6888806", "0.68722403", "0.684062", "0.6818664", "0.6792824", "0.6764661", "0.6750271", "0.66647357", "0.66449326", "0.6616201", "0.6611976", "0.6584121...
0.6561748
22
/ Starting function check session
public function CheckTransactionUser() { try{ if (isset ( $_SESSION ['UserSession'] )) { return true; } else { return false; } }catch(ErrorException $ex){ echo "Message".$ex->getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function check()\n\t{\n\t\tif (!session_id())\n\t\t{\n\t\t\tsession_start();\n\t\t}\n\t}", "public static function startSession();", "public function canStartSession();", "public function startSession() {}", "public static function check_session() {\n\t\t\t// get redirect_to_default\n\t\t\t$redirec...
[ "0.7761359", "0.75546813", "0.744732", "0.7429733", "0.7417246", "0.7353871", "0.7326879", "0.73192984", "0.7308393", "0.7297916", "0.7295796", "0.7274759", "0.7271322", "0.7135932", "0.7135645", "0.71207225", "0.7098737", "0.7098524", "0.7093098", "0.7059327", "0.7027612", ...
0.0
-1
Returns a JsonResponse that uses the serializer component if enabled, or json_encode.
protected function json($data, int $status = 200, array $headers = [], array $context = []): JsonResponse { $json = $this->serializer->serialize($data, 'json', array_merge([ 'json_encode_options' => JsonResponse::DEFAULT_ENCODING_OPTIONS, ], $context)); return new JsonResponse($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __invoke(): JsonResponse\n {\n $ads = $this->show_properties_to_business_use_case->execute();\n\n $response = new JsonResponse($ads);\n $response->setEncodingOptions( $response->getEncodingOptions() | JSON_PRETTY_PRINT );\n\n return $response;\n }", "public funct...
[ "0.65581095", "0.6532343", "0.6447918", "0.6418799", "0.64065045", "0.63814557", "0.636419", "0.63357526", "0.63129485", "0.6267282", "0.62175584", "0.62056273", "0.62001437", "0.61992955", "0.61874104", "0.6167348", "0.6154875", "0.61490154", "0.6144792", "0.6133713", "0.608...
0.0
-1
Function that enforces that a bitmap must have only 1 color in it
public function getSingleColor($bitmap) { $colors = $this->getColorsFromBitMap($bitmap); if (count($bitmap) > 1) { throw new UnexpectedValueException('Given bitmap has more than 1 color bitmap number: ' . $bitmap); } return array_pop($colors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canStoreColor();", "public function testBitImageBlack()\n {\n $this -> requireGraphicsLibrary();\n $img = EscposImage::load(dirname(__FILE__).\"/resources/canvas_black.png\");\n $this -> printer -> bitImage($img);\n $this -> checkOutput(\"\\x1b@\\x1dv0\\x00\\x01\\x0...
[ "0.59641105", "0.5709525", "0.5681359", "0.56105226", "0.54447204", "0.5312561", "0.5283275", "0.5280717", "0.5230457", "0.52248067", "0.5166892", "0.51539564", "0.5105556", "0.5102181", "0.5083712", "0.5008444", "0.5008444", "0.4976832", "0.49613258", "0.4928574", "0.4919836...
0.5694032
2
Handles the 123flashchat settings form
public function flashchatSave() { /* INIT */ $fc_row['fc_server'] = intval( $this->request['fc_server'] ); switch ($fc_row['fc_server']) { case 0: if ($this->request['fc_server_local']) { $fc_row['fc_server_host'] = ($this->request['fc_server_host'] != '127.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function settings_view()\n {\n $this->register_handler('plugin.settingsform', array($this, 'settings_form'));\n $this->register_handler('plugin.settingslist', array($this, 'settings_list'));\n $this->register_handler('plugin.factoradder', array($this, 'settings_factoradder'));\n ...
[ "0.7717541", "0.74121", "0.69123155", "0.6849655", "0.6843033", "0.6784244", "0.67681605", "0.6751208", "0.6745375", "0.67021024", "0.669598", "0.6687587", "0.6678773", "0.66575354", "0.66292286", "0.6591164", "0.6589462", "0.65660053", "0.65586424", "0.6554676", "0.6551506",...
0.0
-1
Check 123 FlashChat Server Config
function validate_server($host, $port) { $s_own_loc = 1; $apiCommand = '<Init/>'; $resultDoc = ""; $fp = @fsockopen($host, $port, $errno, $errstr, 2); if($fp) { fputs($fp,$apiCommand."\0"); while (!feof($fp)) { $resultDoc ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkConfig();", "public function loadSettings() {\n $this->serverURL = Yii::$app->getModule('rocketchat')->settings->get('serverURL');\n return true;\n }", "public static function allowServerInfo()\n\t{\n\t\treturn MHTTPD::$config['Admin']['allow_server_info'];\n\t}", "private functio...
[ "0.5897462", "0.57956636", "0.57454693", "0.5717588", "0.5666763", "0.5582414", "0.55738294", "0.5550978", "0.55105567", "0.5505393", "0.5458723", "0.5424788", "0.5396599", "0.5372134", "0.53425103", "0.5334368", "0.5310528", "0.52664304", "0.52661866", "0.52633286", "0.52479...
0.551454
8
Check 123 FlashChat Data api
function validate_data_api($data_api) { $da = 1; if(@file_get_contents($data_api)) { $da = 0; } return $da; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getChat($d,$ip,$token){\n if (verify_token($ip, $token)) {\n echo getChatData($d['room']);\n } else {\n $result['token'] = 'fail';\n echo json_encode($result);\n }\n}", "public function api_chk(){\n\t \n\t \n\t var_dump('ss');\n\t die();\n\t}", "private functi...
[ "0.6375078", "0.62020016", "0.59936106", "0.59699315", "0.5911694", "0.58997726", "0.5862541", "0.58390355", "0.58347017", "0.5776037", "0.5735025", "0.57105994", "0.5656982", "0.5652057", "0.56249994", "0.56210554", "0.56189865", "0.56001616", "0.55943215", "0.55806506", "0....
0.5750474
10
Check 123 FlashChat Client Location
function validate_client($client_loc) { $c_own_loc = 1; $swf = $client_loc . '123flashchat.swf'; if($headers = @get_headers($client_loc)) { $c_own_loc = (substr($headers[0], 9, 3) == '200') ? 0 : 1; } return $c_own_loc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function is_valid_login_location(){\n\t\tif (in_array($_SERVER[\"REMOTE_ADDR\"], Config::$VALID_LOCATIONS) || in_array( gethostbyaddr($_SERVER[\"REMOTE_ADDR\"]), Config::$VALID_LOCATIONS) )\n\t\t\treturn true;\n\t\telse {\n\t\t\tif (Config::IS_TEST_ENV) {\r\n\t\t\t\treturn true;\t\t\r\n\t\t\t}\n\t\t\treturn...
[ "0.62371874", "0.6224583", "0.56233925", "0.5612909", "0.55241907", "0.5499576", "0.54177207", "0.5410043", "0.53289884", "0.5298199", "0.5295191", "0.52770835", "0.52741486", "0.5257632", "0.5217794", "0.52148527", "0.5211472", "0.5209903", "0.52095217", "0.52039737", "0.520...
0.77193314
0
Listen to `feature.run.before` event & print feature header.
public function printFeatureHeader(Event $event) { $feature = $event->getSubject(); $this->html .= '<div class="feature">'; // Print tags if had ones $this->html .= $this->getTagsHtml($feature); // Print feature header $this->html .= '<h2>'; $this->html .= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeFeature(FeatureEvent $event)\n {\n $this->isBackgroundPrinted = false;\n $this->printFeatureHeader($event->getFeature());\n }", "public function beforeScenario(ScenarioEvent $event)\n {\n $scenario = $event->getScenario();\n\n if (!$this->isBackgroundPri...
[ "0.7430049", "0.619206", "0.6099816", "0.5872682", "0.5862197", "0.5831321", "0.58241785", "0.56623155", "0.55902743", "0.5553821", "0.54815745", "0.54402375", "0.53579366", "0.53133893", "0.53106624", "0.52520615", "0.523674", "0.5145534", "0.50845474", "0.5036784", "0.50268...
0.75268114
0
Listen to `feature.run.after` event & print feature footer.
public function printFeatureFooter(Event $event) { $this->html .= '</div>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function afterFeature(FeatureEvent $event)\n {\n $this->printFeatureFooter($event->getFeature());\n }", "function suite_teardown($fn) {\n Preview::$world->current()->add_after_hook($fn);\n}", "public function afterSuite(SuiteEvent $event)\n {\n $this->printSuiteFooter($event->g...
[ "0.7954648", "0.65123594", "0.64523244", "0.63917667", "0.62437004", "0.6140168", "0.60659", "0.5982461", "0.59449905", "0.5939515", "0.5928832", "0.59218925", "0.5886463", "0.58766365", "0.58456117", "0.58442193", "0.58340526", "0.58225864", "0.5816619", "0.57202846", "0.570...
0.64421153
3
Listen to `outline.run.before` event & print outline header.
public function printOutlineHeader(Event $event) { $outline = $event->getSubject(); $examples = $outline->getExamples(); $this->html .= '<div class="scenario outline">'; // Print tags if had ones $this->html .= $this->getTagsHtml($outline); // Print outline he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeOutline(OutlineEvent $event)\n {\n $outline = $event->getOutline();\n\n if (!$this->isBackgroundPrinted && $outline->getFeature()->hasBackground()) {\n $this->delayedScenarioEvent = array(__FUNCTION__, $event);\n\n return;\n }\n\n $this->is...
[ "0.7762413", "0.69969547", "0.6189834", "0.5818968", "0.57603884", "0.5696772", "0.5463652", "0.5459972", "0.53831357", "0.5302883", "0.5280606", "0.5243001", "0.51704544", "0.51562375", "0.51248956", "0.5105145", "0.5093229", "0.5075405", "0.50745815", "0.5024025", "0.501547...
0.662505
2
Listen to `outline.sub.run.after` event & print outline subscenario results.
public function printOutlineSubResult(Event $event) { $outline = $event->getSubject(); $examples = $outline->getExamples(); // Print current scenario results row $this->html .= $this->getTableRow( $examples->getRow($event->get('iteration') + 1), $this->statuses[$eve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onAfterRun()\n\t{\n\t\t$this->raiseEvent('onAfterRun', new TestRunnerEvent($this, $this->collection));\n\t}", "public function afterOutlineExample(OutlineExampleEvent $event)\n {\n $this->inOutlineExample = false;\n\n $this->printOutlineExampleFooter(\n $event->getOutl...
[ "0.5880159", "0.57146764", "0.5707971", "0.54857045", "0.54383117", "0.5290766", "0.5135636", "0.5119768", "0.50247246", "0.4997492", "0.4979937", "0.49730146", "0.49529314", "0.49498278", "0.48984236", "0.48572704", "0.48526186", "0.48358023", "0.48165354", "0.48163733", "0....
0.5967113
0
Listen to `outline.run.after` event & print outline footer.
public function printOutlineFooter(Event $event) { $this->html .= '</tbody>'; $this->html .= '</table>'; $this->html .= '</div>'; $this->html .= '</div>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function afterOutline(OutlineEvent $event)\n {\n $this->printOutlineFooter($event->getOutline());\n }", "public function afterOutlineExample(OutlineExampleEvent $event)\n {\n $this->inOutlineExample = false;\n\n $this->printOutlineExampleFooter(\n $event->getOutlin...
[ "0.77502996", "0.6923017", "0.58134156", "0.57601315", "0.56367743", "0.5622358", "0.55438393", "0.5538019", "0.547621", "0.54752785", "0.5471828", "0.54634416", "0.5447504", "0.5399324", "0.5377141", "0.5371455", "0.5365419", "0.5356541", "0.53474087", "0.53365993", "0.53148...
0.5754431
4
Listen to `scenario.run.before` event & print scenario header.
public function printScenarioHeader(Event $event) { $scenario = $event->getSubject(); $this->html .= '<div class="scenario">'; // Print tags if had ones $this->html .= $this->getTagsHtml($scenario); // Print scenario header $this->html .= '<h3>'; $this->htm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeScenario(ScenarioEvent $event)\n {\n $scenario = $event->getScenario();\n\n if (!$this->isBackgroundPrinted && $scenario->getFeature()->hasBackground()) {\n $this->delayedScenarioEvent = array(__FUNCTION__, $event);\n\n return;\n }\n\n $thi...
[ "0.7347509", "0.6593127", "0.65878433", "0.6372865", "0.62977576", "0.6272186", "0.6038002", "0.5914147", "0.56895363", "0.5678295", "0.55489594", "0.5522928", "0.55144876", "0.549474", "0.54845273", "0.5483874", "0.5392809", "0.5358778", "0.5352309", "0.5346094", "0.53057545...
0.70123637
1
Listen to `scenario.run.after` event & print scenario footer.
public function printScenarioFooter(Event $event) { $this->html .= '</ol>'; $this->html .= '</div>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function afterScenario(ScenarioEvent $event)\n {\n $this->printScenarioFooter($event->getScenario());\n }", "public function afterSuite(SuiteEvent $event)\n {\n $this->printSuiteFooter($event->getLogger());\n }", "public function onAfterRun()\n\t{\n\t\t$this->raiseEvent('onAfte...
[ "0.7814858", "0.71242154", "0.6848073", "0.66027886", "0.6507026", "0.6407007", "0.64049804", "0.63768196", "0.6326416", "0.6293011", "0.62878305", "0.6240319", "0.6198906", "0.61826086", "0.6079975", "0.606982", "0.60538", "0.60377246", "0.60128164", "0.60081744", "0.5983906...
0.6845538
3
Listen to `background.run.before` event & print background header.
public function printBackgroundHeader(Event $event) { if (!$this->backgroundPrinted) { $background = $event->getSubject(); $this->html .= '<div class="scenario background">'; // Print tags if had ones $this->html .= $this->getTagsHtml($background); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeBackground(BackgroundEvent $event)\n {\n $this->inBackground = true;\n\n if ($this->isBackgroundPrinted) {\n return;\n }\n\n $this->printBackgroundHeader($event->getBackground());\n }", "function kickstart_background_callback() {\n if ( ! get_...
[ "0.7353659", "0.6222628", "0.5902234", "0.56894624", "0.559809", "0.54989976", "0.5252566", "0.52328944", "0.51972187", "0.5167006", "0.5163176", "0.5163176", "0.509935", "0.5074847", "0.5043136", "0.5007094", "0.4993906", "0.4964325", "0.49416795", "0.49405003", "0.4873746",...
0.6697038
1
Listen to `background.run.after` event & print background footer.
public function printBackgroundFooter(Event $event) { if (!$this->backgroundPrinted) { $this->html .= '</ol>'; $this->html .= '</div>'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function afterBackground(BackgroundEvent $event)\n {\n $this->inBackground = false;\n\n if ($this->isBackgroundPrinted) {\n return;\n }\n $this->isBackgroundPrinted = true;\n\n $this->printBackgroundFooter($event->getBackground());\n\n if (null !== $th...
[ "0.70799667", "0.5907957", "0.58639973", "0.5829296", "0.58249193", "0.574605", "0.56640947", "0.5646879", "0.5643365", "0.5593758", "0.55830634", "0.55830634", "0.5577207", "0.5535909", "0.553088", "0.5518695", "0.5455502", "0.54528767", "0.54439306", "0.5439393", "0.5417458...
0.594527
1
Listen to `step.run.after` event & print step run information.
public function printStep(Event $event) { $step = $event->getSubject(); if (!($step->getParent() instanceof BackgroundNode) || !$this->backgroundPrinted) { if (!($step->getParent() instanceof OutlineNode) || !$this->outlineStepsPrinted) { $this->html .= '<li class="' . $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function afterStep(StepEvent $event)\n {\n if ($this->inBackground && $this->isBackgroundPrinted) {\n return;\n }\n\n if (!$this->inBackground && $this->inOutlineExample) {\n $this->delayedStepEvents[] = $event;\n\n return;\n }\n\n $this...
[ "0.675675", "0.63879395", "0.6234337", "0.6055593", "0.5749453", "0.56949127", "0.56541777", "0.56532925", "0.54783916", "0.5477935", "0.5472323", "0.54280233", "0.5421384", "0.5370653", "0.5342069", "0.5309473", "0.5277567", "0.5156155", "0.5155144", "0.5140544", "0.5129396"...
0.55969757
8
Listen to `suite.run.after` event & print generated markup to console or file.
public function flushHTML(Event $event) { $statistics = $event->getSubject()->get('behat.statistics_collector'); $html = '<div class="statistics ' . ($statistics->isPassed() ? 'passed' : 'failed') . '">'; $html .= '<p class="scenarios">'; $html .= $this->translator->transChoice( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onAfterRun()\n\t{\n\t\t$this->raiseEvent('onAfterRun', new TestRunnerEvent($this, $this->collection));\n\t}", "public function afterSuite(SuiteEvent $event)\n {\n $this->printSuiteFooter($event->getLogger());\n }", "function suite_teardown($fn) {\n Preview::$world->current()->ad...
[ "0.6759636", "0.65885484", "0.6385277", "0.61560607", "0.61266047", "0.59919626", "0.5891363", "0.58906376", "0.57665515", "0.57516533", "0.57030535", "0.5636225", "0.5595511", "0.5595511", "0.5595511", "0.5576883", "0.55535215", "0.5538135", "0.55155593", "0.5468972", "0.544...
0.489228
89
Get node tags HTML representation.
protected function getTagsHtml($node) { $html = ''; if ($node->hasTags()) { $html .= '<ul class="tags">'; foreach ($node->getTags() as $tag) { $html .= '<li>@' . $tag . '</li>'; } $html .= '</ul>'; } return $html; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toHtml()\n {\n return $this->tags\n ->map(function ($tag) {\n return $tag->toHtml();\n })\n ->implode(PHP_EOL);\n }", "public function tags()\n {\n return array('html');\n }", "public final function getHtml() : string\n ...
[ "0.70636505", "0.66813153", "0.66523385", "0.6593736", "0.6524897", "0.6430984", "0.63786215", "0.6355559", "0.6300104", "0.6206184", "0.6194411", "0.6187809", "0.6187809", "0.61773795", "0.6127145", "0.61234134", "0.61177856", "0.61134475", "0.6111469", "0.6071728", "0.60540...
0.73425007
0
Get keyword HTML representation.
protected function getKeywordHtml($keyword, $locale = 'en') { $html = '<span class="keyword">'; $html .= $this->translator->trans($keyword, array(), 'messages', $locale) . ': '; $html .= '</span>'; return $html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeyword() : string\n {\n return $this->getMatchedText();\n }", "protected function getKeywordsExample()\n {\n return '<p><b>' . __('Example') . '</b><p><p>[name][, {color} color][, {size} measurements||size][, {category}] <p>' . __('will be transformed into') . '<br>\n ...
[ "0.6888865", "0.6624985", "0.660438", "0.660438", "0.6515261", "0.6515261", "0.6505806", "0.64182216", "0.6308927", "0.61062694", "0.5987487", "0.5898149", "0.58788586", "0.5848161", "0.58458954", "0.5814813", "0.57932365", "0.57889396", "0.57730126", "0.57558596", "0.5750192...
0.6717348
1
Get title HTML representation.
protected function getTitleHtml($title) { return '<span class="title">' . $title . '</span>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_title() {\n\t\treturn $this->format_string( $this->title );\n\t}", "public function getTitle()\n {\n if (!$this->_title) {\n return '';\n }\n if ($this->_titleReverse) {\n $this->_title = array_reverse($this->_title);\n }\n\n return ...
[ "0.8460114", "0.81495166", "0.81361896", "0.81261367", "0.81245124", "0.81245124", "0.8096396", "0.80959255", "0.809579", "0.8092755", "0.8087476", "0.8087476", "0.8087476", "0.8087476", "0.8087476", "0.8087476", "0.8087476", "0.8077653", "0.80616236", "0.80539787", "0.805397...
0.0
-1
Get source HTML representation.
protected function getSourcePathHtml($file, $line) { $html = ''; if (null !== $file) { $file = ConsoleFormatter::trimFilename($file); $html .= '<span class="path">'; $html .= $file . (null !== $line ? ':' . $line : ''); $html .= '</span>'; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHtmlSource();", "public function getHtmlSource() {}", "public function getCompiledHtml();", "public function getHTML();", "public function getHtml();", "public function getHtml()\n {\n return $this->_getHtml();\n }", "public function getHTML(): string;", "public function html(...
[ "0.8489538", "0.8448335", "0.76778245", "0.7552523", "0.7517221", "0.74744916", "0.74145675", "0.7367434", "0.7268175", "0.7251685", "0.72480756", "0.7188818", "0.71655196", "0.7118859", "0.7117626", "0.70957494", "0.708581", "0.7066776", "0.7054582", "0.70425326", "0.7039206...
0.0
-1
Get TableNode HTML representation.
protected function getTableHtml(TableNode $table, $class = null) { if (null === $class) { $html = '<table><tbody>'; } else { $html = '<table class="' . $class . '"><tbody>'; } foreach ($table->getHash() as $row) { $html .= $this->getTableRow($row)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHTML()\n {\n $rowIDs = $this->rowID;\n $numberOfColumns = $this->tableColumns;\n $html = \"\";\n $rowCounter = 0;\n\n $html .= \"<table class='table'>\";\n\n if ($this->tableHead != null) {\n $html .= \"<tr>\";\n\n foreach ($this...
[ "0.70696604", "0.6940966", "0.67826647", "0.6710971", "0.6677718", "0.661422", "0.6608141", "0.65234196", "0.6465829", "0.6438957", "0.6376549", "0.6237452", "0.62244505", "0.6213807", "0.62037647", "0.6196374", "0.6171662", "0.61575997", "0.61161447", "0.61140716", "0.611213...
0.6920937
2
Get table row HTML representation.
protected function getTableRow(array $row, $class = null) { if (null === $class) { $html = '<tr>'; } else { $html = '<tr class="' . $class . '">'; } foreach ($row as $col) { $html .= '<td>' . $col . '</td>'; } $html .= '</tr>'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enumerate_values_table_row(){\n\t\treturn \"\n\t\t\t<tr>\n\t\t\t\t<td>$this->avg_reaction_time_m_no_faces</td> \n\t\t\t\t<td>$this->accuracy_m_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_m_faces</td> \n\t\t\t\t<td>$this->accuracy_m_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_aba_no...
[ "0.74893516", "0.7465207", "0.7148943", "0.70558554", "0.70490515", "0.7015788", "0.70113206", "0.69383574", "0.6663223", "0.6637165", "0.657014", "0.6549925", "0.64757884", "0.6443349", "0.64188087", "0.64143646", "0.63963675", "0.6394422", "0.63840383", "0.6376446", "0.6369...
0.67564464
8
Get HTML body template for the output.
protected function getHTMLTemplate() { if (is_file($tpl = $this->supportPath . '/templates/html.tpl')) { return file_get_contents($tpl); } return <<<HTMLTPL <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHtmlTemplate() {}", "public function generate()\n {\n # Build teh Header\n $this->buildHeader();\n\n # Switch the Views\n switch ($this->view) {\n case 'day':\n $this->buildBodyDay();\n break;\n case 'week':\n ...
[ "0.74102414", "0.7221547", "0.6962432", "0.694437", "0.6918621", "0.69141763", "0.68849427", "0.68398535", "0.66756845", "0.6675109", "0.66685927", "0.6628965", "0.6618966", "0.66140276", "0.6611268", "0.6610185", "0.66028833", "0.6578175", "0.6576051", "0.65432674", "0.65205...
0.6201965
71
Lists all Direcciones models.
public function actionIndex() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return OrdenTrabajo::all();\n\n }", "public static function index()\n {\n return Comida::all();\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public static function getListado(){\n...
[ "0.69021666", "0.67627764", "0.6684214", "0.66465855", "0.652324", "0.65121585", "0.6490592", "0.6487869", "0.64790976", "0.6422846", "0.6402916", "0.63805974", "0.6372367", "0.6365719", "0.63632303", "0.6337811", "0.63332856", "0.6328639", "0.63227034", "0.6319818", "0.63116...
0.0
-1
Return an index of existing page types.
public function index(TypeTableBuilder $table) { return $table->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageTypes() {}", "public function __fetchAvailablePageTypes(){\n\t\t\t$system_types = array('index', 'XML', 'admin', '404', '403');\n\n\t\t\tif(!$types = Symphony::Database()->fetchCol('type', \"SELECT `type` FROM `tbl_pages_types` ORDER BY `type` ASC\")) return $system_types;\n\n\t\t\treturn ...
[ "0.7070376", "0.6602836", "0.64700603", "0.6325258", "0.6325258", "0.62430847", "0.5958092", "0.59059423", "0.58599097", "0.58455306", "0.583048", "0.5727285", "0.57215667", "0.5703883", "0.56989", "0.56330204", "0.561573", "0.56118053", "0.56031644", "0.5579788", "0.55754524...
0.0
-1
Return the modal to choose a page type.
public function choose(TypeRepositoryInterface $types) { return $this->view->make( 'module::admin/pages/choose', [ 'types' => $types->all(), ] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function selectType()\n {\n $permTypes = PermType::all();\n return view('dashboard.perms.selectType', compact('permTypes'));\n }", "public function get_page_type()\n {\n switch ($this->type) {\n case self::TYPE_SLIDESHOW:\n return 'slideshow';\n ...
[ "0.63718116", "0.6260241", "0.607535", "0.607535", "0.5992423", "0.5917491", "0.5780095", "0.57773995", "0.5713398", "0.5661382", "0.56551576", "0.56025565", "0.55859876", "0.5556417", "0.5520627", "0.54961365", "0.5467798", "0.54490227", "0.5437737", "0.5436315", "0.54287064...
0.60661817
4
Return the modal to change a page type.
public function change(TypeRepositoryInterface $types, $id) { return $this->view->make( 'module::admin/pages/change', [ 'types' => $types->all(), 'page' => $id, ] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEdit($type)\n {\n // Title\n $title = Lang::get('admin/types/title.type_update');\n\n // Show the page\n return View::make('admin/types/edit', compact('type', 'title'));\n }", "public function changeType(Request $request){\n $page = Page::find($request-...
[ "0.63958186", "0.6183568", "0.61737114", "0.5990753", "0.5974216", "0.58688676", "0.57909584", "0.5752543", "0.57272243", "0.5657593", "0.5603152", "0.5596905", "0.5596905", "0.55661076", "0.54852754", "0.547727", "0.5408986", "0.54039407", "0.53931785", "0.53873056", "0.5370...
0.0
-1
Return a form for a new page type.
public function create(TypeFormBuilder $form) { return $form->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_page_form($type, $arguments) {\n $class = 'languagelesson_add_page_form_'.$this->get_page_type_idstring($type);\n if (!class_exists($class) || get_parent_class($class)!=='languagelesson_add_page_form_base') {\n debugging('Lesson page type unknown class requested '.$clas...
[ "0.7426074", "0.7379368", "0.70121485", "0.6971374", "0.69579184", "0.69579184", "0.6942543", "0.6942543", "0.68512017", "0.6833165", "0.6819992", "0.6799059", "0.6736982", "0.67183286", "0.67045826", "0.66847086", "0.668121", "0.66463214", "0.6628871", "0.6619693", "0.658241...
0.0
-1
Return a form for editing an existing page type.
public function edit(TypeFormBuilder $form, $id) { return $form->render($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEditForm();", "public function getEdit($type)\n {\n // Title\n $title = Lang::get('admin/types/title.type_update');\n\n // Show the page\n return View::make('admin/types/edit', compact('type', 'title'));\n }", "public function actionEdit($type = null, $id = ...
[ "0.71947277", "0.71729964", "0.69602364", "0.69164145", "0.6873783", "0.68313974", "0.68223333", "0.68145317", "0.6764444", "0.67488664", "0.672392", "0.6705819", "0.6674449", "0.6647663", "0.6636939", "0.6636939", "0.6636939", "0.663534", "0.6623099", "0.6557663", "0.6549233...
0.0
-1
Bootstrap any application services.
public function boot(Router $router) { parent::boot($router); $router->bind('tracks', Track::class.'@findBySlug'); $router->bind('users', User::class.'@findBySlug'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\n {\n // Boot here application\n }", "public func...
[ "0.7344842", "0.7212776", "0.7207748", "0.7123287", "0.7109729", "0.70822036", "0.7076881", "0.70718396", "0.7051853", "0.7025475", "0.7011949", "0.70043486", "0.6955807", "0.69322443", "0.69319373", "0.69272774", "0.6911386", "0.69069713", "0.6898877", "0.6898432", "0.689659...
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the parter list to the user.
function getIndex() { $grid = DataGrid::source(new Task); $grid->add('name','Name', true); $grid->add('finishDate','Endtermin', true); $grid->add('assignedTo','Verantwortlich', false); //$grid->add('createdBy','Angelegt von', true); $grid->edit(url('/task/edit'), '','show'); $grid->link(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printlist(){\r\n\t\t$parishID = Convert::raw2sql($this->request->getVar('ParishID'));\t\t\r\n\t\tif(!$this->canAccess($parishID)){\r\n\t\t\treturn $this->renderWith(array('Unathorised_access', 'App'));\r\n\t\t}\r\n\t\t\r\n\t\t$this->title = 'Media list';\t\t\r\n\t\treturn $this->renderWith(array('M...
[ "0.6694236", "0.6289228", "0.60469896", "0.6016813", "0.59663635", "0.5891489", "0.5867456", "0.5834434", "0.57946086", "0.57921374", "0.5775281", "0.5748215", "0.5742317", "0.574195", "0.5737322", "0.57294905", "0.5713907", "0.5701411", "0.57002497", "0.569417", "0.5693274",...
0.0
-1
Start check flight to suspension
public function startCheck($flight);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function requireStarted() {\n $status = $this->getStatus(TRUE);\n if ($this->isEnabled() && (is_null($status) || !$status->running)) {\n $this->run('start');\n $this->updateStatus();\n }\n }", "public function resume () {\n if ($this->started) {\n $this->run = true;\n...
[ "0.6285834", "0.61563146", "0.6081993", "0.59801453", "0.597866", "0.58931357", "0.5813844", "0.58109987", "0.5807911", "0.5803595", "0.57766724", "0.57714343", "0.57703173", "0.5730291", "0.5730291", "0.5730291", "0.5721579", "0.5684114", "0.56289333", "0.5557956", "0.553810...
0.65324146
0
Display a listing of the resource.
public function index() { if (Session::get('login')) { $data = DB::table('h_billing')->select('h_billing.*', 'd_pasien.nama')->join('assessment', 'h_billing.id_asses', '=', 'assessment.id_asses')->join('d_pasien', 'assessment.id_pasien', '=', 'd_pasien.id_pasien')->get(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { if (Session::get('login')) { $data = DB::table('bukti_billing')->select('bukti_billing.*')->join('h_billing', 'bukti_billing.id_bill', '=', 'h_billing.id_bill')->where('bukti_billing.id_bill', $id)->get(); $update = DB::table('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { if (Session::get('login')) { $data = DB::table('bukti_billing')->select('bukti_billing.*')->join('h_billing', 'bukti_billing.id_bill', '=', 'h_billing.id_bill')->where('bukti_billing.id_bukti', $id); $getData = $data->first(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $r, $id) { if (Session::get('login')) { $billing = DB::table('h_billing')->select('*')->where('id_bill', $r->id_bill)->first(); $buktiBilling = DB::table('bukti_billing')->select('*')->where('id_bill', $r->id_bill)->first(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Returns an ASCII version from the input.
public static function asciify(string $input, string $language = 'en', bool $removeUnsupported = true): string { return S::toAscii($input, $language, $removeUnsupported); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function ascii() {}", "function toAscii(){\n\t\treturn $this->_copy(Translate::Trans($this->toString(),$this->getEncoding(),\"ASCII\"),\"ASCII\");\n\t}", "public function toAscii()\n {\n $str = UTF8::toAscii($this->str);\n\n return static::create($str, $this->encoding);\n }", "function ...
[ "0.76037526", "0.61645323", "0.6164052", "0.6033726", "0.6016154", "0.5954627", "0.59466773", "0.5923093", "0.5900118", "0.576922", "0.5753557", "0.5740814", "0.5735657", "0.57179993", "0.56850034", "0.56776863", "0.56767684", "0.5651371", "0.5636745", "0.5623721", "0.5601166...
0.0
-1
logic for showing all pending operators
function pend_operators($limit,$page) { $this->db2->limit($limit,$page); $this->db2->select('*'); $this->db2->where('status',0); $this->db2->or_where('status',NULL); $this->db2->order_by('operator_title','de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionShowAvailableOperators(): void\n {\n $operators = Operator::find()->onlyAvailable()->all();\n $table = new Table(new ConsoleOutput());\n\n $table->setHeaders(['name', 'status']);\n foreach ($operators as $operator) {\n $table->addRow(['name' => $o...
[ "0.7386029", "0.64094377", "0.63102627", "0.61931556", "0.6113764", "0.5968575", "0.5925923", "0.58827287", "0.5855636", "0.5833518", "0.5809006", "0.5809006", "0.5797399", "0.5797399", "0.57792145", "0.5776958", "0.5776958", "0.57682014", "0.5753734", "0.57258236", "0.570212...
0.6071175
5
logic for showing all activated operators
function active_operators($limit,$page) { $this->db2->limit($limit,$page); $this->db2->select('*'); $this->db2->where('status',1); $this->db2->order_by('operator_title','desc'); $query =$this->db2->get("registere...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionShowAvailableOperators(): void\n {\n $operators = Operator::find()->onlyAvailable()->all();\n $table = new Table(new ConsoleOutput());\n\n $table->setHeaders(['name', 'status']);\n foreach ($operators as $operator) {\n $table->addRow(['name' => $o...
[ "0.74534154", "0.73371863", "0.7113547", "0.7033803", "0.68678063", "0.6771533", "0.6771533", "0.66357976", "0.66270125", "0.66270125", "0.66014385", "0.6519645", "0.6514674", "0.6426661", "0.63389325", "0.62864417", "0.62802887", "0.62623525", "0.62623525", "0.62563336", "0....
0.62628156
17
logic for showing all operators
function all_operators($limit,$page) { $this->db2->limit($limit,$page); $this->db2->order_by('operator_title','desc'); $query = $this->db2->get('registered_operators'); return $query->result(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function operators();", "public function getOperators();", "public function operators() {\n $operators = [\n 'in' => [\n 'title' => $this->t('Is one of'),\n 'short' => $this->t('in'),\n 'short_single' => $this->t('='),\n 'method' => 'opSimple',\n 'values' => 1,...
[ "0.7885957", "0.75620043", "0.7248161", "0.69895816", "0.6939827", "0.6939827", "0.6934056", "0.69162774", "0.69162774", "0.69115037", "0.6877144", "0.6843529", "0.6825885", "0.6811184", "0.6811184", "0.6797957", "0.6772526", "0.6770645", "0.66962683", "0.6626081", "0.6625547...
0.5932608
56
logic for changing the status of all operators
function active($uid,$st) { if($st==1) { $st=0; } else if($st==0) { $st=1; } $query=$this->db2->query("UPDATE registered_operators ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeOperator($inparms){\n if ($this->selectedOperator >= 0) {\n $this->_query->setTitle($this->selectedOperator, $inparms['operator']);\n }\n\n return $this->output(NULL);\n }", "public function changeStatus()\n {\n }", "public function operators();", "publ...
[ "0.6423061", "0.6290499", "0.6288732", "0.6231145", "0.6231145", "0.6052453", "0.60096776", "0.5786914", "0.5786914", "0.574615", "0.5738492", "0.56892794", "0.5683887", "0.56623083", "0.56312644", "0.5593416", "0.5590363", "0.5581551", "0.5569811", "0.5551505", "0.5543122", ...
0.5213338
65
logic for showing the details of operators
function mail_send($name,$username,$password,$emailid,$status) { $this->load->library('email'); if($status==0) { $this->email->from('shivani.u@viveinfoservices.com', 'shivani...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function operators();", "public function getOperator();", "public function getOperator();", "public function getOperator(): string;", "public function getOperator(): string;", "protected abstract function getOperator();", "public function getOperators();", "public function getOperatorValue();"...
[ "0.77099836", "0.74169123", "0.74169123", "0.7389932", "0.7389932", "0.72951293", "0.7213722", "0.72060776", "0.7190415", "0.7180563", "0.70488626", "0.701383", "0.69983584", "0.6917655", "0.6847332", "0.6802265", "0.6747054", "0.67170894", "0.6697084", "0.66943216", "0.66761...
0.0
-1
logic for showing the details of operators
function detail_operators($uid) { $query = $this->db2->query("SELECT * FROM registered_operators WHERE id='$uid' "); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function operators();", "public function getOperator();", "public function getOperator();", "public function getOperator(): string;", "public function getOperator(): string;", "protected abstract function getOperator();", "public function getOperators();", "public function getOperatorValue();"...
[ "0.77099836", "0.74169123", "0.74169123", "0.7389932", "0.7389932", "0.72951293", "0.7213722", "0.72060776", "0.7190415", "0.7180563", "0.70488626", "0.701383", "0.69983584", "0.6917655", "0.6847332", "0.6802265", "0.6747054", "0.67170894", "0.6697084", "0.66943216", "0.66761...
0.582504
76
select the id and bus model store as in array
function bus() { $this->db2->select('id,model'); $this->db2->order_by("model", "asc"); $records = $this->db2->get('buses_model'); $data = array(); foreach($records->result() as $row) { $da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_all_id(K_Laravel_Creator\\Models\\Base_Model $base_mobel) {\n $model_datas = $base_mobel->all();\n //error_log($model_datas);\n $model_id = array();\n foreach($model_datas as $model_data){\n array_push($model_id,$model_data['id']);\n }\n return $model_id;\n}", "function bust...
[ "0.65174043", "0.6280475", "0.6237624", "0.5968811", "0.5892555", "0.5857849", "0.58405745", "0.5829391", "0.5745147", "0.5726216", "0.5724441", "0.5689815", "0.56757444", "0.56574804", "0.56104976", "0.5588159", "0.5587569", "0.5578369", "0.5564531", "0.5556962", "0.55080324...
0.7624956
0
update the bus model in database
function update_model($n,$o) { $query=$this->db2->query("UPDATE buses_model SET model='$n' WHERE model='$o' "); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update(){\n\t\t$this->model->update();\n\t}", "public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}", "abstract protected function updateModel();", "public function update() {\r\n\t\t$this->getMapper()->update($this);\r\n\t}", "public function updateBus($b) {\n $sqlQuer...
[ "0.6925782", "0.67521036", "0.65573835", "0.6531143", "0.6474417", "0.64532965", "0.6437636", "0.6410111", "0.63414115", "0.62871766", "0.62867564", "0.6264525", "0.62637323", "0.6258822", "0.6250998", "0.6218103", "0.61974764", "0.6072905", "0.60462683", "0.60443103", "0.603...
0.62360877
15
add new bus model in database
function add_model($text) { $query=$this->db2->query("INSERT INTO buses_model VALUES ('','$text')"); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert_bus_info(Request $request)\n \t{\n AddBus::insert([\n\n \t'operator_id' =>$request->operator_id,\n \t'from_id' =>$request->from_id,\n \t'to_id' =>$request->to_id,\n \t'coach_type_id' =>$request->coach_type_id,\n \t'date_id' =>$request->date_id,\n ...
[ "0.6519148", "0.6360226", "0.63298696", "0.626349", "0.62589574", "0.60545737", "0.60332555", "0.60148925", "0.59911555", "0.5990938", "0.59720105", "0.58318216", "0.58111554", "0.57956433", "0.57844406", "0.57525736", "0.5727319", "0.57193786", "0.5688885", "0.5664085", "0.5...
0.6392553
1
select the id and city_name and store as array
function cityadd() { $this->db2->select('city_id,city_name'); $this->db2->order_by("city_name", "asc"); $records = $this->db2->get('master_cities'); $data = array(); foreach($records->result() as $row...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_city_details_by_id( $city_id ) {\r\n\r\n \t$result = array();\r\n\r\n\t$ci = & get_instance();\r\n\r\n \t$ci->db->select( '*' );\r\n\r\n \t$ci->db->from( 'tbl_city' );\r\n\r\n\t$ci->db->where( 'city_id', $city_id) ;\r\n\r\n\t$query = $ci->db->get();\r\n\r\n \t$result = $query->result_array();\r\n\r\n ...
[ "0.69530433", "0.6920161", "0.68665683", "0.6794833", "0.66514856", "0.6590582", "0.658062", "0.6563575", "0.652122", "0.65008575", "0.6495878", "0.64851046", "0.64848924", "0.6478959", "0.6425625", "0.6392572", "0.6378617", "0.63765216", "0.6353796", "0.6335642", "0.6289494"...
0.7008045
0
update the existing city in database
function update_city($new,$old) { $query=$this->db2->query("UPDATE master_cities SET city_name='$new' WHERE city_name='$old' "); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function updateCities()\n {\n $this->execute(<<<SQL\nUPDATE jl_loc_city jlc \n INNER JOIN jl_loc_region jlr ON jlr.id = jlc.region_id\n INNER JOIN jl_loc_state jls ON jls.id = jlr.state_id\n INNER JOIN jl_loc_country jlco ON jlco.id = jls.country_id\n SET jlc.country_id = jlco.id, j...
[ "0.7907924", "0.7365353", "0.7138124", "0.7034398", "0.6900548", "0.6900548", "0.6900548", "0.6857253", "0.68020767", "0.67896783", "0.669461", "0.6632198", "0.6586418", "0.6576674", "0.65160507", "0.6514275", "0.65105647", "0.6476772", "0.64695215", "0.64324296", "0.64225054...
0.73272
2
add new city to database
function add_cities($text) { $query=$this->db2->query("INSERT INTO master_cities VALUES ('','$text')"); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addNewPersonToCity()\n {\n }", "function Add_City(){\n\t\t\n\t\t//when click on button\n\t\tif(isset($_POST['citybtn'])){\n\t\t\t\n\t\t\t//for insert values into table\n\t\t\t$values = \"'\".$_POST[\"city\"].\"'\";\n\t\t\t\n\t\t\t//add city into table\n\t\t\t$this->Add('city',$values,'Add-C...
[ "0.7717563", "0.7603256", "0.6980649", "0.69652796", "0.69526154", "0.6845927", "0.67766786", "0.6757252", "0.67408913", "0.6679937", "0.66453975", "0.6634239", "0.6600782", "0.6592319", "0.6575701", "0.65586305", "0.6551699", "0.65148425", "0.6498915", "0.6466622", "0.645134...
0.6965096
4
select the id and bus type and store as array
function bustypes() { $this->db2->select('id,bus_type'); $this->db2->order_by("bus_type", "asc"); $records = $this->db2->get('buses_type'); $data = array(); foreach($records->result() as $row) { $d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bus()\n {\n $this->db2->select('id,model');\n $this->db2->order_by(\"model\", \"asc\");\n $records = $this->db2->get('buses_model');\n\n $data = array();\n foreach($records->result() as $row) {\n ...
[ "0.62208325", "0.59364444", "0.59318703", "0.57801694", "0.57725394", "0.5732184", "0.56891656", "0.5681645", "0.5666568", "0.5646256", "0.56103015", "0.5606649", "0.56051344", "0.5555852", "0.553001", "0.5526978", "0.55185187", "0.5486661", "0.54392", "0.5436753", "0.5426774...
0.6909667
0
update the existing bus type in database
function update_bus($new,$old) { $query=$this->db2->query("UPDATE bus_type SET buses_type='$new' WHERE bus_type='$old' "); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function update_type($new_type) { \n\n\t\tif ($this->_update_item('type',$new_type,'50')) { \n\t\t\t$this->type = $new_type;\n\t\t}\n\n\t}", "function add_bustype($text)\n {\n $query=$this->db2->query(\"INSERT INTO buses_type VALUES ('','$text')\");\n ...
[ "0.6461468", "0.6095048", "0.6012951", "0.5797089", "0.5788866", "0.573766", "0.5641562", "0.5623037", "0.55962694", "0.5578379", "0.55665433", "0.556502", "0.55624825", "0.55560404", "0.55555826", "0.5555302", "0.55399376", "0.5535543", "0.55272675", "0.55176985", "0.5515458...
0.7743428
0
add new bus type to database
function add_bustype($text) { $query=$this->db2->query("INSERT INTO buses_type VALUES ('','$text')"); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addType($type);", "function makeType($rType, $blocktype){\n sqlQuery(\"INSERT INTO types (type_name, type_blocktype) VALUES ('$rType', '$blocktype')\");\n alog(\"Added type $rType\");\n}", "function add_id_type()\n\t{\n\t\t$data['name']\t\t\t\t\t=\t$this->input->post('name');\n\t\t$data['...
[ "0.65548295", "0.64075536", "0.60941887", "0.6070519", "0.6050379", "0.6014393", "0.5993885", "0.59577763", "0.59320366", "0.5929184", "0.5892682", "0.58805335", "0.5871783", "0.5809777", "0.5801818", "0.5750996", "0.5734488", "0.5713819", "0.5701329", "0.56832975", "0.567750...
0.7096428
0
select the id and seating arrangement and store as array
function seatarr() { $this->db2->select('id,seat_arr'); $this->db2->order_by("seat_arr", "asc"); $records = $this->db->get('seats_arrangement'); $data = array(); foreach($records->result() as $row) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function eventisegnalati(){\r\n $query = \"SELECT DISTINCT idev FROM segnalazione \";\r\n\t\t$result = self::$conn->query($query);\r\n $id = array();\r\n if($result){\r\n while($row = $result->fetch_assoc()){\r\n $id[] = $row['idev']; \r\n }\r\n }\r\n ...
[ "0.59071386", "0.590082", "0.5557298", "0.5551326", "0.5504313", "0.5499117", "0.5485742", "0.5434867", "0.5407695", "0.54043156", "0.5403173", "0.53737223", "0.5362745", "0.5332553", "0.5323813", "0.53160286", "0.52873504", "0.5285522", "0.52753466", "0.5272932", "0.5266151"...
0.68683434
0
update the existing seating arrangement in database
function update_seat($new,$old) { $query=$this->db2->query("UPDATE seats_arrangement SET seat_arr='$new' WHERE seat_arr='$old' "); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_save_RoomSeats_edit()\n {\n\n if(!empty($_POST['ids'])){\n foreach ($_POST['ids'] as $value) {\n $this->db->where('id', $value)->update(tablename('hostel_rooms_seats'), array('is_active'=>1));\n }\n }\n $rooms = $this->db->select('*')...
[ "0.598775", "0.5750359", "0.5722752", "0.57007927", "0.5679974", "0.5629797", "0.5558586", "0.5526877", "0.5473489", "0.5447079", "0.54420924", "0.5423477", "0.5390105", "0.53588456", "0.5330997", "0.532342", "0.5321751", "0.5308711", "0.52922153", "0.5284299", "0.5281243", ...
0.6912491
0
add new seating arrangement in database
function add_seatarr($text) { $query=$this->db2->query("INSERT INTO seats_arrangement VALUES ('','$text')"); if($query) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addSensSpec() {\n\t\t$data =&$this->params['form'];\n\t\t// Create the Sensitivity object\n\t\t$this->Sensitivity->create(\n\t\t\tarray(\"study_id\" =>$data['study_id'],\n\t\t\t\t\"sensitivity\"=>$data['sensitivity'],\n\t\t\t\t\"specificity\"=>$data['specificity'],\n\t\t\t\t\"prevalence\" =>$data['prevale...
[ "0.57045996", "0.55271125", "0.5485848", "0.5449657", "0.54493237", "0.54425484", "0.54421216", "0.5440335", "0.5434775", "0.542951", "0.5363274", "0.53149384", "0.5307406", "0.5291748", "0.5281699", "0.528031", "0.5261924", "0.52280164", "0.5213927", "0.52085763", "0.5202378...
0.6765891
0
get all agents list
function detail_agents($uid) { $query = $this->db2->query("SELECT * FROM agents_operator WHERE id='$uid' "); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function agents()\n\t{\n\t\t// Get all agents\n\t\t$agents = [];\n\t\tforeach (model(AgentModel::class)->findAll() as $agent)\n\t\t{\n\t\t\t$agents[] = [\n\t\t\t\t'name' => $agent->name,\n\t\t\t\t'uid' => $agent->uid,\n\t\t\t\t'class' => $agent->class,\n\t\t\t\t'icon' => $agent->icon,\n\t\t\t\t'...
[ "0.77506274", "0.6965611", "0.6863958", "0.67912215", "0.67634696", "0.6699545", "0.6591793", "0.63891715", "0.62826115", "0.6234706", "0.6227718", "0.61739784", "0.61146736", "0.607874", "0.6031633", "0.60148966", "0.60119045", "0.59876055", "0.59864813", "0.59744895", "0.59...
0.0
-1
$this>db2 = $this>load>database('forum', TRUE);
function getOperator_route_details(){ $travel_id=$this->input->post('opid'); $fdate=$this->input->post('fdate'); $tdate=$this->input->post('tdate'); $i=1; echo "<table align='center' width='650'> <tr style='font-size:13px; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function load_database()\n\t{\n\t\t$this->db= load_class(\"DB\", 'database');\n\t}", "public function load() {\n $CI =& get_instance();\n\n $CI->db = $CI->load->database('default', TRUE);\n $CI->db_akbar = $CI->load->database('db_akbar', TRUE);\n ...
[ "0.7055346", "0.70412296", "0.69500864", "0.6687215", "0.66505796", "0.6603241", "0.65297997", "0.6524255", "0.6520181", "0.65138674", "0.64730495", "0.64589363", "0.6448446", "0.6448095", "0.64343894", "0.64318806", "0.64220786", "0.6418901", "0.6417794", "0.63860863", "0.63...
0.0
-1
put your code here
function get_operator1() { $sql=$this->db2->query("select travel_id,operator_title from registered_operators "); $data=array(); foreach ($sql->result() as $rows) { $data[$rows->travel_id]=$rows->operator_title; } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n //\n \n }", "public function run()\n\t{\n\t\t//\n\t}", "public function preExecute(){\n\n\t\n\t}", "function script()\n {\n }", "public function run()\n {\n \n }", "public function run()\n {\n \n }", "public...
[ "0.60586566", "0.59289104", "0.5919654", "0.5899511", "0.5838488", "0.5838488", "0.58356965", "0.5814271", "0.5814271", "0.57796824", "0.5701954", "0.5700516", "0.5685669", "0.5684617", "0.5684617", "0.5684617", "0.5639208", "0.563027", "0.56278986", "0.56231225", "0.5620407"...
0.0
-1
In comparison to getKey() this function returns a human readable (maybe translated) name
public function getDisplayName() { return $this->addressBookInfo['{DAV:}displayname']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKey(): string {\n return $this->getType() . $this->getId() . $this->getLang() . $this->getRevisionId() ?? '';\n }", "public function getKeyName();", "public function getKeyName();", "public function getKeyName();", "function getKeyName() {\n\t\treturn (string)$this->keypair->keyName;...
[ "0.79923624", "0.76133966", "0.76133966", "0.76133966", "0.7581351", "0.7479785", "0.7374466", "0.7374466", "0.7345988", "0.73327816", "0.73254967", "0.73254967", "0.7279135", "0.7238994", "0.7216347", "0.7212017", "0.7209191", "0.71663064", "0.71663064", "0.71582735", "0.715...
0.0
-1
read vCard data into a vCard object
protected function readCard($cardData) { return Reader::read($cardData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function vcard_decode($vcard)\n {\n // Perform RFC2425 line unfolding and split lines\n $vcard = preg_replace(array(\"/\\r/\", \"/\\n\\s+/\"), '', $vcard);\n $lines = explode(\"\\n\", $vcard);\n $result = array();\n\n for ($i=0; $i < count($lines); $i++) {\n ...
[ "0.658128", "0.65231615", "0.64286023", "0.63236195", "0.6140981", "0.5976755", "0.58881", "0.57219875", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0.55972344", "0....
0.5643851
8
create UID for contact
protected function createUid() { do { $uid = $this->getUid(); $contact = $this->backend->getContact($this->getKey(), $uid . '.vcf'); } while (!empty($contact)); return $uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function make_uid()\n\t{\n\t\t$date = date('Ymd\\THisT');\n\t\t$unique = substr(microtime(), 2, 4);\n\t\t$base = 'aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPrRsStTuUvVxXuUvVwWzZ1234567890';\n\t\t$start = 0;\n\t\t$end = strlen( $base ) - 1;\n\t\t$length = 6;\n\t\t$str = null;\n\t\tfor( $p = 0; $p < $lengt...
[ "0.72955287", "0.6930339", "0.679951", "0.67476535", "0.64511037", "0.6399302", "0.6397542", "0.63973755", "0.63973755", "0.63973755", "0.63973755", "0.6396325", "0.63555914", "0.63555914", "0.6204787", "0.61653316", "0.61126405", "0.6086898", "0.6081138", "0.6046707", "0.604...
0.8518834
0
getUid is only there for testing, use createUid instead
protected function getUid() { return UUIDUtil::getUUID(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid ();", "public function getUid();", "public function getUid();", "protected function crea...
[ "0.86369354", "0.86358964", "0.86358964", "0.86358964", "0.86358964", "0.8635195", "0.8567914", "0.8519928", "0.8519928", "0.8035588", "0.7547585", "0.7538624", "0.7475762", "0.7475762", "0.7475762", "0.7475762", "0.7475762", "0.7475762", "0.7464312", "0.7440829", "0.7440829"...
0.8070499
9
create array with all vCard properties
protected function vCard2Array($uri, VCard $vCard) { $result = [ 'URI' => $uri, ]; foreach ($vCard->children() as $property) { $result[$property->name] = $property->getValue(); if ($property->name === 'PHOTO' && $property->getValueType() === 'BINARY') { $url = $this->urlGenerator->getAbsoluteURL( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function properties()\n {\n return [\n 'mount_point' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATG__DRIV...
[ "0.62458855", "0.6092446", "0.6042616", "0.6015807", "0.5984374", "0.5961977", "0.58948684", "0.5850741", "0.5836205", "0.57738584", "0.5761389", "0.57426316", "0.57426316", "0.57242835", "0.5720307", "0.56869495", "0.5683626", "0.56613696", "0.5619554", "0.5608279", "0.55791...
0.60912836
2
Run the database seeds.
public function run() { Loan::truncate(); Loan::create([ 'name' => 'Home Loan', 'title' => 'Hassle-free finance', 'slug' => 'home-loan', 'description' => 'It’s hard to find the time to search and compare finance options when you’re busy running your b...
{ "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.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Builds the LightKitPageRenderer instance.
public function __construct() { parent::__construct(); $this->applicationDir = null; $this->pageName = null; $this->container = null; $this->pageConfTransformers = []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initPageRenderer() {}", "protected function initPageRenderer() {}", "public function getPageRenderer() {}", "public function getPageRenderer() {}", "protected function getPageRenderer() {}", "public function __construct()\n {\n $this->rendererClass = Renderer::class;\n\n ...
[ "0.6911184", "0.6910984", "0.65599835", "0.6559695", "0.65285623", "0.58810014", "0.58179134", "0.5724869", "0.5669481", "0.5521602", "0.5492029", "0.53779626", "0.5322097", "0.5312344", "0.5289246", "0.52493453", "0.5247306", "0.5241614", "0.52237856", "0.51835144", "0.51747...
0.0
-1
Adds a PageConfigurationTransformerInterface to this instance.
public function addPageConfigurationTransformer(PageConfigurationTransformerInterface $transformer) { $this->pageConfTransformers[] = $transformer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addPage(PageInterface $page)\n {\n $this->items[$page->path()] = ['slug' => $page->slug()];\n\n return $this;\n }", "function addTransformer(TransformerInterface $transformer, $name = NULL)\n {\n return $this->getTransformerContainer()->addTransformer($transformer, $...
[ "0.56026727", "0.5221006", "0.49730077", "0.4871501", "0.48527852", "0.4793754", "0.47417933", "0.4635269", "0.46285692", "0.46074766", "0.4590371", "0.45874652", "0.45441607", "0.45199704", "0.4500807", "0.4493522", "0.44706634", "0.4461915", "0.44211408", "0.4385838", "0.43...
0.8337478
0
Configures thi instance. The settings array contains the following: application_dir: string. The path to the application directory
public function configure(array $settings) { if (array_key_exists('application_dir', $settings)) { $appDir = $settings['application_dir']; $this->applicationDir = $appDir; $this->setLayoutRootDir($appDir); } else { throw new LightKitException("configu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function configure()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../config/dashkit.php', 'dashkit'\n );\n }", "public function configurePaths()\n {\n $configurer = new Configurer($this, [\n 'models_path' => [\n 'question' => 'Where do y...
[ "0.6143592", "0.61415243", "0.61283284", "0.60008305", "0.598164", "0.5879499", "0.58390594", "0.5824073", "0.5808123", "0.5796868", "0.575521", "0.5744865", "0.57106423", "0.56967324", "0.56967324", "0.5692243", "0.56877846", "0.56873685", "0.56580245", "0.5657748", "0.56537...
0.70035505
0
Renders the given page.
public function renderPage(string $pageName, array $dynamicVariables = [], PageConfUpdator $pageConfUpdator = null): string { if (null !== $this->applicationDir) { if (null !== $this->confStorage) { //-------------------------------------------- // GET THE PAGE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function render_page();", "public function render_page() {\n\t\t$this->render_template();\n\t}", "function &renderPage( $page=0 )\r\n {\r\n $generator =& $this->generator();\r\n// print( \"Using renderer: \" . $this->RendererClass . \"<br>\");\r\n \r\n return $gene...
[ "0.82988644", "0.7994331", "0.76610744", "0.7611138", "0.7611138", "0.75823486", "0.7413766", "0.7291407", "0.727806", "0.71446496", "0.70031446", "0.69231015", "0.67971826", "0.67959154", "0.6778962", "0.6745908", "0.6694576", "0.6617106", "0.653981", "0.65390813", "0.642577...
0.0
-1