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
Show the form for creating a new resource.
public function create($id,$id_tiket) { // // $pemesanan = DataPenerbangan::findOrFail($id); $pemesanan = DB::table('data_penerbangans') ->join('tikets', 'data_penerbangans.id_tiket', '=', 'tikets.id')->select('data_penerbangans.*', 'tikets.id','tikets.kelas','tikets.harga','tikets....
{ "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) { // // User::create([ // 'nama' =>$request->get('nama'), // 'email' =>$request->get('email'), // 'password' =>Hash::make($request->get('password')), // ]); // return redirect()->route('pemesanan...
{ "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) { // }
{ "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) { // return view('admin.editpelanggan'); }
{ "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.7854417", "0.7692986", "0.72741747", "0.72416574", "0.7173436", "0.706246", "0.70551765", "0.698488", "0.6948513", "0.694731", "0.69425464", "0.6929177", "0.6902573", "0.6899662", "0.6899662", "0.6878983", "0.6865711", "0.6861037", "0.6858774", "0.6847512", "0.6836162", ...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "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
set the additional options on the product
public function execute(\Magento\Framework\Event\Observer $observer) { $actionName = ""; try { $action = $this->http; if($action) { $actionName = $this->http->getFullActionName(); } } catch(Exception $e) { $actionName = ""; } if ($actionName == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function catalogProductLoadAfter(Varien_Event_Observer $observer)\n{\n // set the additional options on the product\n if(Mage::getStoreConfigFlag('mycustom_section/mycustom_group2/field1')){\n $action = Mage::app()->getFrontController()->getAction();\n if ($action->getFullActionName() == 'checkout_...
[ "0.7350004", "0.66863334", "0.66532767", "0.6475836", "0.6460801", "0.643826", "0.6429967", "0.64079016", "0.6401282", "0.6386508", "0.63732004", "0.63626105", "0.6298049", "0.6276353", "0.62661636", "0.6212931", "0.62036175", "0.6188565", "0.61757505", "0.6125083", "0.612328...
0.0
-1
$book = new Book();
public function practice15() { //$books = Book::where('title', 'LIKE', '%Harry Potter%')->orWhere //('published_year', '>=', 1998)->get(); $books = Book::where('author', 'LIKE', '%Weir%')->get(); if ($books->isEmpty()) { dump('No matches found'); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\n // make sure you do something like that in your index.php\n require_once('models/book.php');\n $this->book = new Book();\n }", "public function __construct($book)\n {\n $this->book = $book;\n }", "public function __construct($book)\n {\n ...
[ "0.80280995", "0.79255366", "0.79255366", "0.7363427", "0.7297412", "0.6908077", "0.68804026", "0.6843309", "0.6593419", "0.65020704", "0.6411545", "0.63712853", "0.6367311", "0.6367311", "0.6367311", "0.6367311", "0.6367311", "0.6367311", "0.6367311", "0.6367311", "0.6367311...
0.0
-1
First get a book to delete
public function practice7() { $book = Book::where('author', '=', 'F. Scott Fitzgerald')->first(); if (!$book) { dump('Did not delete- Book not found.'); } else { $book->delete(); dump('Deletion complete; check the database to see if it worked...'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteFromBook(Book $book);", "public function deleteBook()\n {\n $id = $_POST['id'];\n $time = DELETE_AFTER;\n if (USE_ONE_TABLE) {\n $sql = \"UPDATE `books_authors` SET `deleted` = DATE_ADD(NOW(), interval $time HOUR) WHERE `id` = ?\";\n } else {\n ...
[ "0.74498904", "0.7313731", "0.6862981", "0.6697465", "0.6666762", "0.6635976", "0.6616745", "0.6591009", "0.65835017", "0.65826815", "0.6559451", "0.655623", "0.6545079", "0.65187466", "0.6509385", "0.6467198", "0.64564174", "0.64061874", "0.6401843", "0.639456", "0.6372571",...
0.67010933
3
Demonstrates the `first` method
public function practice5() { $book = Book::where('slug', '=', 'the-martian')->first(); dump($book); dump($book->toArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function first();", "public function first();", "public function first();", "public function first();", "public function first();", "public function first();", "public function first();", "public function first();", "public function first();", "public function first() {}", "public...
[ "0.8934642", "0.8873957", "0.8873957", "0.8873957", "0.8873957", "0.8873957", "0.8873957", "0.8873957", "0.8873957", "0.86838657", "0.82860124", "0.82731354", "0.8143046", "0.8127991", "0.8127991", "0.8059965", "0.7559193", "0.7521075", "0.7516891", "0.7487018", "0.747933", ...
0.0
-1
Demonstrates using the Book model
public function practice2() { //dump(Str::plural('mouse')); dump(Book::find(3)); dump(Book::all()->toArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(Book $book)\n {\n $this->BookModel = $book;\n }", "public function __construct(){\n // make sure you do something like that in your index.php\n require_once('models/book.php');\n $this->book = new Book();\n }", "public function get_book();", "public ...
[ "0.7382289", "0.7353146", "0.7243296", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6995395", "0.6942407", "0.6873094", "0.6837899", "0.6837899", "0.68110245", "0.67990917", "0.65762043", ...
0.61268765
46
funcion del helper validaciones que cargo automaticamente con autoload.php
public function registrar_usuario(){ //y sirve para confirmar que los campos ingresados sean correctos if (rules_regUsuario()){ //si falla guardo los errores individualmente con form_error('nombre del input') en un arreglo $resultado[]=array( 'res' => 'invalid', 'cedula' => form_error('cedula'), '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadHelpers()\n {\n require_once __DIR__.'/helpers.php';\n }", "function _load_helpers()\r\n\t{\r\n\t\t// Load inflector helper for singular and plural functions\r\n\t\t$this->load->helper('inflector');\r\n\r\n\t\t// Load security helper for prepping functions\r\n\t\t$this->load->hel...
[ "0.6692296", "0.65821534", "0.6329621", "0.63116217", "0.6296", "0.6079934", "0.60768557", "0.6059653", "0.6035517", "0.60074395", "0.59928846", "0.5983576", "0.5979646", "0.5979599", "0.594881", "0.5943658", "0.5927559", "0.59189403", "0.5890686", "0.58749366", "0.5864087", ...
0.0
-1
Call this function at the top of any page you wish to access a php session variable. This function makes your login script a whole lot more secure.
function sec_session_start() { $session_name = 'sec_session_id'; // Set a custom session name $secure = false; // Set to true if using https. $httponly = true; // This stops javascript being able to access the session id. ini_set('session.use_only_cookies', 1); // Forces sessions to only use cooki...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserSession(){\n\t\t\tChromePhp::log(\"inside retrieveCurrentUserInSession\");\n\t\t\tretrieveCurrentUserInSession();\n\t\t}", "public static function session_check(){\n if(!isset($_SESSION)){\n session_start();\n }\n if( !isset( $_SESSION[\"loggedIn\"])){\n\n ...
[ "0.672754", "0.6722894", "0.6679684", "0.6679684", "0.6677454", "0.6675996", "0.6637826", "0.6614509", "0.65809983", "0.65235126", "0.6490289", "0.6489063", "0.64788187", "0.64289784", "0.6426063", "0.6414544", "0.6409473", "0.6393316", "0.6384015", "0.63839126", "0.63651085"...
0.6205753
42
This function will check the email and password against the database, it will return true if there is a match.
function login($email, $password, $dbcon) { global $max_tolerate_attempts, $delay_before_login; // Using prepared Statements means that SQL injection is not possible. if ($stmt = $dbcon->prepare("SELECT u_id, u_last_name, u_first_name, u_password, u_salt, u_profile_picture FROM app_user WHERE u_email = ?...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isEmailAndPasswordRegistered ($email,$password) {\n $connect = $GLOBALS['connect'];\n $password = md5 ($password);\n $queryCheck = \"SELECT * FROM user WHERE email = '$email' AND password = '$password'\";\n \n $mysqlQueryCheck = mysqli_query ($connect,$queryCheck);\n \n if (mysqli_affected_rows ($c...
[ "0.7861309", "0.7700402", "0.7622779", "0.75971526", "0.758206", "0.7558894", "0.75190085", "0.74777883", "0.7432001", "0.74100816", "0.73722434", "0.7351054", "0.7350896", "0.73275816", "0.7322498", "0.7306699", "0.7291782", "0.729178", "0.7283442", "0.72537166", "0.71858233...
0.0
-1
If a user account has a failed login more than 5 times their account is locked. Prevent brute force attempt.
function checkbrute($user_id, $pdo) { global $delay_before_login; // Get timestamp of current time $now = time(); // All login attempts are counted from the past 15 minutes. $valid_attempts = $now - ($delay_before_login); $max_tolerate_attempts = 5000; //count = total of brute force $stateme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function verifyAttempts(){\n //if($sql->rowCount > 5){\n //echo 'Limite de tentativas de login excedido!';\n //exit;\n }", "public function checkTooManyFailedAttempts()\n {\n if (! RateLimiter::tooManyAttempts($this->throttleKey(), 10)) {\n return;...
[ "0.7288667", "0.70762527", "0.694726", "0.6795861", "0.670402", "0.6606038", "0.65549165", "0.6520058", "0.64543784", "0.64356726", "0.64217144", "0.62567234", "0.61860263", "0.61748785", "0.61559784", "0.61532897", "0.6142553", "0.6139284", "0.6136165", "0.6125477", "0.61220...
0.63968563
11
Check logged in status. Prevent session hijacking.
function login_check($pdo) { // Check if all session variables are set if(isset($_SESSION['user_id'], $_SESSION['username'], $_SESSION['login_string'])) { $user_id = $_SESSION['user_id']; $login_string = $_SESSION['login_string']; $username = $_SESSION['username']; $user_browser = $_S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkLoginStatus()\n\t{\n\t\tif (isset($_SESSION[$this->sess_auth]) || isset($_SESSION[$this->sess_cookie_auth])) {\n\t\t\treturn true;\n\t\t}\n\t}", "public function GetUserLoggedInStatus()\n {\n \n $this->User_Logged_In = isset($_SESSION['USER_LOGIN']['LOGIN_RECORD']) ? true :...
[ "0.7731657", "0.76753765", "0.76366633", "0.7622615", "0.7622615", "0.7598838", "0.7594346", "0.75304955", "0.7528792", "0.7524296", "0.75009876", "0.7497757", "0.7483669", "0.74669844", "0.7423289", "0.74013054", "0.7400563", "0.7394545", "0.7387937", "0.738301", "0.73828125...
0.0
-1
regeneate coords by adding ?coord_debug to URL
function rec_regenerate_coordinates() { if( ! isset( $_GET['coord_debug'] ) ) { return; } $posts = new WP_Query( array( 'post_type' => epl_get_core_post_types(), 'post_status' => 'any', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'property_address_coordinates', 'v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function build_pixel_url() {\n\t\tif ( $this->error ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$args = get_object_vars( $this );\n\n\t\t// Request Timestamp and URL Terminator must be added just before the HTTP request or not at all.\n\t\tunset( $args['_rt'] );\n\t\tunset( $args['_'] );\n\n\t\t$validated = self::validate...
[ "0.5615859", "0.5553344", "0.55347407", "0.54020506", "0.53896165", "0.53784454", "0.53530604", "0.51750964", "0.51146775", "0.50999045", "0.5054732", "0.5023287", "0.501986", "0.50038654", "0.49962163", "0.49820057", "0.49731204", "0.49692267", "0.49692267", "0.496648", "0.4...
0.5457036
3
Construct the basket item
public function __construct($id, $item);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($_name = NULL,$_number = NULL,$_quantity = NULL,$_tax = NULL,$_amount = NULL,$_ebayItemPaymentDetailsItem = NULL,$_promoCode = NULL,$_productCategory = NULL,$_description = NULL,$_itemWeight = NULL,$_itemLength = NULL,$_itemWidth = NULL,$_itemHeight = NULL,$_itemURL = NULL,$_enhancedIte...
[ "0.6277098", "0.60813564", "0.6048471", "0.601397", "0.5993974", "0.5983087", "0.5983087", "0.5942521", "0.593675", "0.59180576", "0.5895039", "0.58577913", "0.5853265", "0.58143425", "0.5810961", "0.5805979", "0.5781869", "0.57765776", "0.57380635", "0.57339346", "0.5672548"...
0.53406703
52
Magic get to allow us to pull individual item data vars
public function __get($param);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getItem() ;", "abstract function get ($item);", "public function getItemData()\n {\n return $this->_fields['ItemData']['FieldValue'];\n }", "abstract public function getItem();", "public function getItem();", "public function getItem() {}", "public function getItem() {}", "publi...
[ "0.7260159", "0.6695529", "0.65501076", "0.6511861", "0.6458563", "0.64195496", "0.64195496", "0.63570166", "0.6356423", "0.6336282", "0.62852556", "0.62852556", "0.62802005", "0.62462103", "0.62239057", "0.6205057", "0.6175269", "0.6175269", "0.6175269", "0.6175269", "0.6175...
0.0
-1
Allows setting any param value
public function __set($param, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($params) {}", "public function setParam($name, $value);", "public function setParam($param, $value);", "abstract protected function setParameter($key, $value);", "public function setParam($key, $value);", "public function setParameter($name, $value);", "abstract public function setV...
[ "0.7533565", "0.7122675", "0.7120944", "0.7078099", "0.70670426", "0.69775724", "0.6975281", "0.6967299", "0.69639844", "0.69639844", "0.6930339", "0.6846463", "0.68289834", "0.68227017", "0.6789295", "0.6789295", "0.6789295", "0.6789295", "0.6789295", "0.6789295", "0.6789295...
0.713207
1
Calculates and returns the item total from the unit price and quantity
public function total();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function total()\n {\n \treturn $this->price()*$this->quantity;\n }", "public function calcTotal()\n {\n\n $productBusinessService = new ProductBusinessService();\n\n // create an array to hold all subtotals\n $subtotals_array = array();\n $this->total_price = 0;\n\n foreach ($thi...
[ "0.7662698", "0.75393146", "0.7473209", "0.73755276", "0.7307806", "0.7300539", "0.7208036", "0.71769536", "0.7138646", "0.71382874", "0.71123123", "0.70972145", "0.70614463", "0.7052506", "0.7052069", "0.70471656", "0.696539", "0.69605327", "0.6949979", "0.6914651", "0.68863...
0.63554275
74
Returns the item data, which is already an array
public function toArray();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemArray()\n {\n return $this->itemArray;\n }", "public function getData() {\n return $this->items;\n }", "protected function _getItemsData()\n {\n return array();\n }", "public function getDataArray(){\n return array($this->item_id,$this->name,$this->...
[ "0.7801701", "0.7786829", "0.7713397", "0.76220894", "0.76195407", "0.74484944", "0.7406114", "0.7367317", "0.7332244", "0.73011386", "0.73011386", "0.73009783", "0.7272797", "0.72068936", "0.7171484", "0.7155383", "0.71465516", "0.71217704", "0.71217704", "0.71192384", "0.71...
0.0
-1
Initializes context. Every scenario gets its own context instance. You can also pass arbitrary arguments to the context constructor through behat.yml.
public function __construct(UserRepository $userRepository) { $user = $userRepository->findOneBy(['name' => 'behatTestuser']); $this->user = $user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init(&$context){}", "function testContext() {\n $this->ConfigFile();\n $this->ContextHierarchy();\n }", "public function before(BeforeScenarioScope $scope) {\n\t\t// Get the environment\n\t\t$environment = $scope->getEnvironment();\n\t\t// Get all the contexts you need in this context\n\t\t$thi...
[ "0.712063", "0.6949832", "0.69141215", "0.69123834", "0.68356997", "0.6668963", "0.6644645", "0.6632251", "0.65958416", "0.65619874", "0.65504867", "0.65504867", "0.65504867", "0.65504867", "0.65504867", "0.65504867", "0.65504867", "0.6519796", "0.64825034", "0.6473241", "0.6...
0.0
-1
Constructor method for NaftaLowValueStatementDetail
public function __construct($role = null) { $this ->setRole($role); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n parent::__construct(\"tr_125t_detail\");\n $this->primary_key = \"id_f125t_detail\";\n\n $this->attribute_labels = array_merge_recursive($this->_continuously_attribute_label, $this->attribute_labels);\n $this->rules = array_merge_recursive($this->_conti...
[ "0.5704482", "0.562243", "0.55198246", "0.5515601", "0.5389704", "0.53326315", "0.53022176", "0.53022176", "0.5221702", "0.5199897", "0.51848495", "0.5157446", "0.5147865", "0.51439726", "0.5143407", "0.5127532", "0.5122909", "0.512104", "0.508854", "0.49902788", "0.49703446"...
0.0
-1
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
public static function __set_state(array $array) { return parent::__set_state($array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ExportObject() {\n // Init object\n $plugin = new stdClass();\n // Set values\n $plugin->Name = $this->Name;\n $plugin->Version = $this->Version;\n $plugin->Author = $this->Author;\n $plugin->About = $this->About;\n $plugin->Root = $this->Roo...
[ "0.6952051", "0.6924868", "0.657655", "0.63783693", "0.6145847", "0.6125172", "0.6056005", "0.60397583", "0.59241486", "0.59241486", "0.59241486", "0.59241486", "0.59241486", "0.5859572", "0.5836334", "0.5811004", "0.5801863", "0.57161164", "0.571605", "0.5712643", "0.5690107...
0.0
-1
Method returning the class name
public function __toString() { return __CLASS__; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName();", "public function getClassName();", "public function getClassName() ;", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName()\n {\n ...
[ "0.87522393", "0.87522393", "0.8751158", "0.87397957", "0.87397957", "0.87397957", "0.87397957", "0.8731564", "0.8696754", "0.8673495", "0.8638432", "0.8615335", "0.8603119", "0.8566906", "0.8562364", "0.8555002", "0.85503733", "0.85503733", "0.85425884", "0.8533183", "0.8529...
0.0
-1
Order payment type config
public function types() { return [ self::TYPE_NONE => 'none', self::TYPE_WECHAT => 'wechat', self::TYPE_ALIPAY => 'alipay', self::TYPE_CASH => 'cash', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentType(){\n return $this->payment_type;\n }", "function get_payment_type()\n {\n // echeck - payment funded with e-check\n // instant - payment was funded with platnosci balance, credit card, or instant transfer\n return $this->platn...
[ "0.68356127", "0.6462882", "0.6461868", "0.6412778", "0.6395504", "0.6276764", "0.6186685", "0.6147888", "0.6129993", "0.61210924", "0.6056632", "0.6054406", "0.59554857", "0.5947917", "0.5935342", "0.59183097", "0.59178257", "0.5908918", "0.5886222", "0.58861613", "0.5885733...
0.0
-1
Order payment type text
public function typeText() { $params = $this->types(); return isset($params[$this->type]) ? $params[$this->type] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentType(){\n return $this->payment_type;\n }", "public function getOrderType();", "public function getPaymenttype()\n {\n return $this->paymenttype;\n }", "public function getPaymentType(): string\n {\n $paymentMethod = $this->getPaymentMethod();\n $pa...
[ "0.7083768", "0.68874735", "0.68731713", "0.68542033", "0.66822696", "0.668142", "0.6652296", "0.6624449", "0.657336", "0.649601", "0.6412057", "0.6406932", "0.6358015", "0.6316636", "0.630345", "0.63029146", "0.6234597", "0.62021464", "0.6165217", "0.61613643", "0.61593884",...
0.5969303
33
only does two levels of indexing warning: defaults were set prior to this
function doIndex() { $ret = array(); if( $this->statement->rowCount() > 0 ) { $data = $this->statement->fetchAll($this->fetch_style); } else { $data = array(); } foreach( $data as $line ) { if( !isset($line[$this->index[0]]) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ign_udef_index(&$name, $index, $default = \"\")\r\n{\r\n if (isset($name[$index]))\r\n {\r\n return $name[$index];\r\n }\r\n else\r\n {\r\n return $default;\r\n }\r\n}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function a...
[ "0.63405526", "0.6250408", "0.6250408", "0.6250408", "0.5995161", "0.59739393", "0.5924114", "0.5857008", "0.571377", "0.5694022", "0.56317025", "0.5582356", "0.5579831", "0.5545679", "0.5544567", "0.55301076", "0.5496537", "0.54830736", "0.5432381", "0.5416375", "0.541372", ...
0.0
-1
Constructs a new NodeRevisionDeleteForm.
public function __construct(EntityStorageInterface $node_storage, EntityStorageInterface $node_type_storage, Connection $connection, DateFormatterInterface $date_formatter) { $this->nodeStorage = $node_storage; $this->nodeTypeStorage = $node_type_storage; $this->connection = $connection; $this->dateForm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteForm()\n\t{\n\t\t$form = new \\IPS\\Helpers\\Form( 'form', 'delete' );\n\t\t$form->addMessage( 'node_delete_blurb_no_content' );\n\t\t\n\t\treturn $form;\n\t}", "function kala_revision_batch_delete_form() {\n // Initialize Vars.\n $form = array();\n\n // Date text field.\n $form['date']...
[ "0.71726966", "0.662137", "0.6137234", "0.61005753", "0.60496396", "0.6048721", "0.60043895", "0.5985221", "0.5976912", "0.5975743", "0.5926906", "0.592176", "0.58923095", "0.5874214", "0.58601123", "0.58413726", "0.5826029", "0.5809899", "0.5809899", "0.5809899", "0.5808734"...
0.0
-1
Gets the abridged version.
public function getDisplayLink() { return $this->displayLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBridgeApiVersion() {\n return $this->bridgeApiVersion;\n }", "public function get_version();", "abstract public function get_version();", "public function getCurrentVersion();", "function get_version() {\n\n\t\treturn $this->version;\n\n\t}", "public function retrieveVersion()\n {\...
[ "0.6712791", "0.66478693", "0.6558857", "0.6549252", "0.65477484", "0.6508815", "0.6446503", "0.64388424", "0.64146364", "0.63896656", "0.6376324", "0.63636196", "0.6360713", "0.6360713", "0.6352183", "0.6352183", "0.6352183", "0.6352183", "0.6352183", "0.6352183", "0.6352183...
0.0
-1
Determines if the subscribed link has block objects.
public function hasBodyLines() { return count($this->getBodyLines()) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasBlocks(): bool\n {\n return $this->blocks->isNotEmpty();\n }", "public function hasBlocks()\n {\n return (count($this->getBlocks())) ? true : false;\n }", "public function hasBlock(): bool\n {\n return $this->blockAttr !== NULL;\n }", "public function...
[ "0.69219816", "0.6662812", "0.6546309", "0.64016914", "0.6349995", "0.61806804", "0.6134335", "0.60716873", "0.6052961", "0.60414016", "0.6039339", "0.5993973", "0.5971793", "0.59312606", "0.58708566", "0.58666676", "0.584865", "0.58463985", "0.5841576", "0.57711387", "0.5759...
0.0
-1
Gets the block objects.
public function getBodyLines() { return $this->bodyLines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetAll() {\n\t\treturn $this->BlockList;\n\t}", "public function getBlocks(): Collection;", "public function get_blocks ()\n {\n return $this->_blocks;\n }", "public function blocks() { return $this->_m_blocks; }", "protected function getBlocks()\n\t{\n\t\treturn blx()->entries->getAll...
[ "0.7438673", "0.7231587", "0.7120659", "0.70964736", "0.70659983", "0.70158255", "0.70158255", "0.6979849", "0.69151515", "0.68567485", "0.68358064", "0.6835496", "0.6793833", "0.6779184", "0.6695098", "0.66527295", "0.6499171", "0.64834154", "0.6457472", "0.63945657", "0.629...
0.0
-1
Gets the image associated with the subscribed link.
public function getImage() { return $this->image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLinkImage()\n\t{\n\t\treturn $this->link_image;\n\t}", "final public function getPublicEmailAsImageUrl() {\r\n\t\t$cache = new ResultCache(\r\n\t\t\t$this->wrappedTopic->getConfig(),\r\n\t\t\t$this->wrappedTopic->getTopicFactory() );\r\n\r\n\t\treturn $cache->getCachedUrl(\r\n\t\t\tfunction($e...
[ "0.6743", "0.6536325", "0.6532911", "0.648258", "0.64089173", "0.62715656", "0.6178828", "0.6107334", "0.6086842", "0.6002543", "0.597445", "0.59502095", "0.59448534", "0.59448534", "0.5944302", "0.5924803", "0.591342", "0.5884116", "0.5871855", "0.58716357", "0.58598024", ...
0.5715125
61
persiste dados no repositorio
public function save (ValueObjectAbstract $valueObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function persist() {}", "public function persist();", "public function persist()\n {\n //\n }", "public function persist()\n {\n }", "function persist() ;", "public function persist($data);", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsu...
[ "0.7907571", "0.7867304", "0.7664455", "0.760681", "0.7465931", "0.74560267", "0.7340374", "0.732015", "0.72916275", "0.72656894", "0.71269345", "0.70736027", "0.70161843", "0.6981761", "0.68192315", "0.6761506", "0.6714606", "0.66606426", "0.66339755", "0.6604049", "0.657522...
0.0
-1
altera dados no repositorio
public function update (ValueObjectAbstract $valueObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function change()\n {\n \n $this->execute('DELETE FROM cotz_cotizaciones_catalogo WHERE id = 12');\n \n $this->execute(\"UPDATE cotz_cotizaciones_catalogo SET valor='Abierta', etiqueta='abierta' WHERE id = '7'\");\n $this->execute(\"UPDATE cotz_cotizaciones...
[ "0.61048025", "0.60472345", "0.59212965", "0.591724", "0.58632284", "0.5807111", "0.5786723", "0.5739889", "0.5731392", "0.5727093", "0.57014513", "0.5655117", "0.56248486", "0.5616638", "0.5616297", "0.5605044", "0.5584933", "0.55838645", "0.55800635", "0.5576717", "0.557097...
0.0
-1
deleta dados no repositorio
public function delete (ValueObjectAbstract $valueObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear()\n {\n $this->repository = array();\n }", "function cvs_delete_repository($cvs_project) {\r\n global $cvs_root;\r\n \r\n //We really don't want to delete the repository,\r\n //just erase the passwd file...\r\n\r\n $cvs_passwd_file = $cvs_root.\"/\".$cvs_project....
[ "0.6119121", "0.58106834", "0.5779818", "0.57742983", "0.57348275", "0.5726719", "0.5725282", "0.5694065", "0.5668206", "0.5665363", "0.5654355", "0.5638612", "0.5612577", "0.5584601", "0.5531272", "0.54952466", "0.5479441", "0.5470189", "0.54511344", "0.54158854", "0.5412988...
0.0
-1
recupera registro com base em seu ID
public function find ($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create($id) //pasamos el id del cliente\n {\n \n }", "public function carregarPorID($id) {\n $sid = \"\\\"$id\\\"\";\n $query = \"SELECT * FROM \" . get_class($this) . \" WHERE id=$sid\";\n $this->ATRIBUTO= bd::executeSqlParaArrayTitulada($query);\n if (is_...
[ "0.6769127", "0.6654688", "0.66291237", "0.6497269", "0.6496386", "0.6496386", "0.6496386", "0.6496386", "0.64775115", "0.64483666", "0.644692", "0.6405994", "0.6405457", "0.6405457", "0.639221", "0.63912046", "0.63842565", "0.63842565", "0.63842565", "0.63842565", "0.6384256...
0.0
-1
retorna Query para entidade inforamada
public function getQuery ($entity);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function query() {\n \n $this->ensure_my_table();\n \n if ($this->options['operator'] == 'in') {\n $keys = array_keys($this->value);\n\n $this->query->add_where(0, $this->table_alias.'.id IN ('. implode(',', $keys).')' );\n }\n\n }", "public function toQuery();", "function createQuery...
[ "0.70795757", "0.66988665", "0.6686787", "0.667608", "0.66729075", "0.66729075", "0.66729075", "0.66333383", "0.6571198", "0.6558071", "0.6552323", "0.654137", "0.6534297", "0.65267986", "0.65240705", "0.65229434", "0.65067303", "0.64471126", "0.64471126", "0.64471126", "0.64...
0.0
-1
Retorna uma entidade referente ao ValueObject informado, opcionalmente, uma relacao de colunas podera ser informada, limintando a relacao original de Entity. Persistable::getEntity(ValueObjectAbstract $valueObject [, array(string, colunm1, string column2)]) Persistable::getEntity(array(string 'alias' => ValueObjectAbst...
public function getEntity ($entity, array $columns = array());
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function toEntity($value);", "private function createEntityAlias($alias)\n {\n return array_map([$this, 'createEntityValue'], $alias);\n }", "public function getEntity();", "public function getEntity();", "public function getEntity();", "function getEntity() {\n if (!empty($this-...
[ "0.6168621", "0.6113466", "0.5937295", "0.5937295", "0.5937295", "0.5759876", "0.57164097", "0.5613206", "0.5578789", "0.55780506", "0.5564774", "0.5548554", "0.5533387", "0.55082875", "0.5504279", "0.5457655", "0.54312253", "0.539171", "0.5379372", "0.53581387", "0.53437734"...
0.5165371
34
Returns the name of schema.
public function getSchemaName() { return $this->schemaName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSchemaName()\n {\n return $this->schemaName;\n }", "public function getSchemaName(): string;", "public function getSchemaName()\n {\n return $this->getTable()->getSchema()->getName();\n }", "function getSchemaDisplayName() {\n\t\treturn __('plugins.schemas.dc.sche...
[ "0.88741386", "0.87666196", "0.85139966", "0.8023488", "0.7965228", "0.78538316", "0.75079054", "0.7373762", "0.7346069", "0.7297001", "0.72883636", "0.7172693", "0.7170861", "0.71295214", "0.71295214", "0.70897084", "0.70897084", "0.70897084", "0.70897084", "0.70897084", "0....
0.8812968
1
Returns the name of this table.
public function getTableName() { return $this->tableName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\...
[ "0.84115195", "0.83429444", "0.8341696", "0.83258975", "0.83258975", "0.83258975", "0.8323903", "0.83184475", "0.83115965", "0.82888895", "0.82888895", "0.82888895", "0.8281992", "0.82776093", "0.8277491", "0.82712644", "0.82667065", "0.8254365", "0.8241117", "0.8197876", "0....
0.78700745
39
Show the form for creating a new resource.
public function create() { $categories = Category::get(); $brands = Brand::get(); return view('admin.product.create')->with('categories', $categories)->with('brands', $brands); }
{ "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
Bootstrap any package services.
public function boot(): void { if ($this->app->runningInConsole()) { $this->publishes([ __DIR__.'/../config/janus.php' => config_path('janus.php'), ], 'janus'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootPackages()\n {\n // Get the namespace of the current plugin to use in accessing the Config of the plugin\n $pluginNamespace = str_replace('\\\\', '.', strtolower(__NAMESPACE__));\n\n // Instantiate the AliasLoader for any aliases that will be loaded\n $aliasLoader...
[ "0.76586616", "0.74863476", "0.73925996", "0.7310707", "0.72389156", "0.7210699", "0.7075735", "0.70725244", "0.70640147", "0.70606387", "0.70435154", "0.70326304", "0.70036054", "0.70030606", "0.6988627", "0.69814014", "0.6981051", "0.69792324", "0.69761664", "0.69684076", "...
0.0
-1
Register any package services.
public function register(): void { $this->mergeConfigFrom(__DIR__.'/../config/janus.php', 'janus'); $this->app->singleton(Janus::class, Janus::class); $this->app->alias(Janus::class, 'janus'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerServices(): void\n {\n $this->registerKernels();\n $this->registerFactories();\n $this->registerMicroServices();\n }", "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n // Only Enviro...
[ "0.76041305", "0.752103", "0.7361134", "0.73519534", "0.73024994", "0.7251972", "0.72163796", "0.71865344", "0.7177101", "0.7172552", "0.7171603", "0.71630555", "0.7162181", "0.7150971", "0.7144041", "0.7133666", "0.71206236", "0.7110271", "0.7097245", "0.7096116", "0.7090280...
0.0
-1
Agregar Nuevo taxonomy, make it hierarchical (like categories)
function create_my_taxonomies() { $labels_producto_productor = array( 'name' => _x( 'Productores', 'taxonomy general name' ), 'singular_name' => _x( 'Productor', 'taxonomy singular name' ), 'search_items' => __( 'Buscar productores' ), 'all_items' => __( 'Todos los productores' )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_topics_hierarchical_taxonomy() {\n \n// Add new taxonomy, make it hierarchical like categories\n//first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Sectores', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sector', 'taxonomy singular name' ),\n 'search_it...
[ "0.7972475", "0.75666225", "0.7522146", "0.7513263", "0.7436886", "0.73850834", "0.73836416", "0.7375152", "0.7344592", "0.7318267", "0.7251258", "0.7239166", "0.7224802", "0.7222011", "0.7202343", "0.7183035", "0.7182033", "0.7157975", "0.71246386", "0.7105719", "0.7077084",...
0.7172625
17
/ If editing, deleting, or reading a producto, get the post and post type object.
function producto_meta_cap( $caps, $cap, $user_id, $args ) { if ( 'edit_producto' == $cap || 'delete_producto' == $cap || 'read_producto' == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array(); } /* If editing ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_type_object($post_type)\n {\n }", "public function type() { return $this->post->post_type; }", "public static function post_object_type($type, $post) {\n $post_type = get_post_type($post);\n switch ( $post_type ) {\n case \"post\":\n $post_format = get_post_format($pos...
[ "0.73207545", "0.6869455", "0.662927", "0.6447375", "0.6398048", "0.6350403", "0.62490624", "0.6239269", "0.6228676", "0.620768", "0.61552685", "0.6133885", "0.6102788", "0.60884815", "0.60804206", "0.60798943", "0.6067799", "0.60603005", "0.60591745", "0.60401773", "0.603794...
0.0
-1
/ If editing, deleting, or reading a banner, get the post and post type object.
function banner_meta_cap( $caps, $cap, $user_id, $args ) { if ( 'edit_banner' == $cap || 'delete_banner' == $cap || 'read_banner' == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array(); } /* If editing a banner...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_type_object($post_type)\n {\n }", "public function type() { return $this->post->post_type; }", "public static function post_object_type($type, $post) {\n $post_type = get_post_type($post);\n switch ( $post_type ) {\n case \"post\":\n $post_format = get_post_format($pos...
[ "0.68518203", "0.6484236", "0.6368118", "0.6213858", "0.60906625", "0.6071706", "0.59947896", "0.59904826", "0.587064", "0.583413", "0.5824312", "0.5821228", "0.58065045", "0.58001584", "0.5768133", "0.57579136", "0.5737347", "0.5705168", "0.5689725", "0.5676037", "0.5631043"...
0.0
-1
/ If editing, deleting, or reading a documento, get the post and post type object.
function documento_meta_cap( $caps, $cap, $user_id, $args ) { if ( 'edit_documento' == $cap || 'delete_documento' == $cap || 'read_documento' == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array(); } /* If edit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_type_object($post_type)\n {\n }", "public function type() { return $this->post->post_type; }", "public static function post_object_type($type, $post) {\n $post_type = get_post_type($post);\n switch ( $post_type ) {\n case \"post\":\n $post_format = get_post_format($pos...
[ "0.73914164", "0.68031377", "0.6777489", "0.65495366", "0.6459245", "0.64289093", "0.63469017", "0.63322234", "0.6316179", "0.63037974", "0.6279231", "0.62593293", "0.62112105", "0.61820495", "0.6168927", "0.60844034", "0.60842794", "0.60195357", "0.6005012", "0.59869474", "0...
0.0
-1
/ If editing, deleting, or reading a convocatoria, get the post and post type object.
function convocatoria_meta_cap( $caps, $cap, $user_id, $args ) { if ( 'edit_convocatoria' == $cap || 'delete_convocatoria' == $cap || 'read_convocatoria' == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_type_object($post_type)\n {\n }", "public function type() { return $this->post->post_type; }", "public static function post_object_type($type, $post) {\n $post_type = get_post_type($post);\n switch ( $post_type ) {\n case \"post\":\n $post_format = get_post_format($pos...
[ "0.710287", "0.6955795", "0.6589064", "0.64783925", "0.64199907", "0.640507", "0.6375657", "0.6358842", "0.63502854", "0.6346296", "0.630643", "0.62996596", "0.622658", "0.61829966", "0.6146203", "0.6140258", "0.6112345", "0.61042535", "0.60034823", "0.59956247", "0.59690315"...
0.0
-1
/ If editing, deleting, or reading a servicio, get the post and post type object.
function servicio_meta_cap( $caps, $cap, $user_id, $args ) { if ( 'edit_servicio' == $cap || 'delete_servicio' == $cap || 'read_servicio' == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array(); } /* If editing ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_type_object($post_type)\n {\n }", "public function type() { return $this->post->post_type; }", "public function getPostType(){\n return $this->wpdsPostType;\n }", "public function getPostType()\n\t\t{\n\t\t\treturn $this->_postType;\n\t\t}", "public function getPostType() ...
[ "0.66037905", "0.64443016", "0.6231475", "0.60936433", "0.6065269", "0.5992466", "0.59074616", "0.58791625", "0.5838664", "0.5828246", "0.5824715", "0.58228725", "0.5815631", "0.579846", "0.5777325", "0.5762573", "0.5752127", "0.5713981", "0.56968015", "0.5670789", "0.5654672...
0.0
-1
/ If editing, deleting, or reading a directorio, get the post and post type object.
function directorio_meta_cap( $caps, $cap, $user_id, $args ) { if ( 'edit_directorio' == $cap || 'delete_directorio' == $cap || 'read_directorio' == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array(); } /* If ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_type_object($post_type)\n {\n }", "public static function post_object_type($type, $post) {\n $post_type = get_post_type($post);\n switch ( $post_type ) {\n case \"post\":\n $post_format = get_post_format($post);\n switch ( $post_format ) {\n case \"aside\...
[ "0.7147609", "0.6754253", "0.6714326", "0.64117664", "0.6273121", "0.62549907", "0.6247834", "0.61869997", "0.61488724", "0.6117223", "0.61043525", "0.60434896", "0.60413235", "0.6027562", "0.60134906", "0.59830374", "0.5980363", "0.5960375", "0.59589", "0.5953828", "0.593268...
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
Display all articles in the main page
public function index(Request $request) { //dd($request); $data = []; if(isset($request->search)) { $articles = Article::search($request->search)->paginate(5); $data['search'] = $request->search; } else if(isset($request->tag)) { //Simple method ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allArticles()\n {\n $articles = Article::where('public', '=', 0)->latest()->paginate(10);\n $this->parseArticle($articles);\n return view('articles.index',compact('articles'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "function index() {\n\t...
[ "0.7976499", "0.7948455", "0.77854806", "0.7753503", "0.767045", "0.766912", "0.7596599", "0.7589439", "0.7524294", "0.75202906", "0.7499428", "0.74817014", "0.7457369", "0.74339956", "0.7433", "0.7421562", "0.7396617", "0.7395616", "0.73874927", "0.7366563", "0.73035216", ...
0.0
-1
Get the appropriate reflector for a callable.
public function create($callable) { list($class, $name) = $this->normalize($callable); if (null === $class) { return new ReflectionFunction($name); } return new ReflectionMethod($class, $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reflectCallable($callable)\n {\n if (!is_callable($callable))\n throw new \\InvalidArgumentException(sprintf(\n 'Argument provided is not callable; given: (%s).'\n , \\Poirot\\Std\\flatten($callable)\n ));\n\n\n if ($callable instanceof ...
[ "0.70849216", "0.69985676", "0.6698216", "0.6681776", "0.6659174", "0.6651455", "0.65886694", "0.6515129", "0.6480661", "0.6117489", "0.5911057", "0.5848887", "0.58394045", "0.58189803", "0.5759841", "0.57181156", "0.56079096", "0.5582063", "0.55740637", "0.556551", "0.549179...
0.62436265
9
Normalize a callable into 2tuple form.
public function normalize($callable) { if ($callable instanceof Closure) { $class = null; $func = $callable; } elseif (is_object($callable)) { $class = get_class($callable); $func = '__invoke'; } elseif (is_array($callable)) { list(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function parse($callable)\n {\n list($callable, $args) = $this->parseArgs($callable);\n\n if ($this->isClassMethod($callable)) {\n $callable = $this->parseClassMethod($callable);\n } elseif ($this->isMutatorMethod($callable)) {\n $callable = [$this, $callable...
[ "0.574029", "0.5605994", "0.55629414", "0.556134", "0.5397531", "0.5327673", "0.500636", "0.49669617", "0.4955853", "0.49198663", "0.4821207", "0.47891495", "0.47592136", "0.47322276", "0.47072294", "0.46931612", "0.46281737", "0.45879304", "0.45803133", "0.4576079", "0.45749...
0.6501608
0
Returns the inner generator
public function getGenerator() { return $this->generator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function intoGenerator(): \\Generator {\n\t\tforeach ($this as $value) {\n\t\t\tyield $value;\n\t\t}\n\t}", "public function getGenerator(): \\Generator;", "public function getIterator(): \\Generator\n {\n return $this->resolve();\n }", "public function generator() {}", "public function...
[ "0.7272094", "0.7143516", "0.7072148", "0.7057108", "0.6837963", "0.6837963", "0.6834218", "0.67859405", "0.6647879", "0.6593753", "0.6565597", "0.65124685", "0.6454402", "0.64011943", "0.6374461", "0.62777644", "0.6243825", "0.6226238", "0.61078423", "0.61078423", "0.6107842...
0.6255991
16
Returns the format to generate
public function getFormat() { return $this->format; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormat() {}", "public function getFormat() {}", "public function getFormat() {}", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "pub...
[ "0.83414674", "0.83414674", "0.83414674", "0.81812805", "0.81812805", "0.81812805", "0.81812805", "0.81812805", "0.81812805", "0.8097912", "0.8026555", "0.7990642", "0.79142815", "0.76676077", "0.7612815", "0.75908107", "0.75843996", "0.75522226", "0.7548515", "0.754721", "0....
0.75731033
25
Indicates whether a pdf document should be generated from the response for the specified request. The request must be for the 'pdf' format and the response format must be html.
public function isConvertable(Request $request, Response $response) { // Request must be for the 'pdf' format if ($request->getRequestFormat() !== $this->getFormat()) return false; // Current response must be html if (!$this->isHtmlResponse($response)) return false; // All...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function pdf($request, $response)\n {\n $id = $request->getAttribute('id');\n if (!ModelsRequests::generatePdfForId($id)) {\n return $response->withStatus(404)->withText(\"Il congedo non è stato trovato!\");\n }\n }", "public function generte_pdf(Request $reque...
[ "0.6752349", "0.59716284", "0.5959558", "0.59247404", "0.5795268", "0.5757904", "0.5757904", "0.57113576", "0.5634374", "0.5624991", "0.56138057", "0.5599685", "0.5538908", "0.54689413", "0.54665947", "0.5413307", "0.5399296", "0.5374836", "0.5370826", "0.53654677", "0.535589...
0.7042534
0
Converts the response The replacement response should be returned from this method and will replace the current response.
public function convert(Request $request, Response $response) { $generator = $this->getGenerator(); $options = $request->attributes->get("{$this->getFormat()}_options", []); $headers = array_merge($request->headers->all(), [ 'Content-Type' => 'application/pdf', ]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function Transform_Response($response)\n\t{\n\t\t\n\t\tif (is_string($response))\n\t\t{\n\t\t\t$response = new OLP_Response($response);\n\t\t}\n\t\t\n\t\t// we want the merged result so we have tokens for promo_id, etc.\n\t\t$data = array_merge($response->Signature()->To_Array(), $response->Collection()-...
[ "0.6662942", "0.66546786", "0.64773995", "0.6319476", "0.62475926", "0.62037396", "0.62012994", "0.62001705", "0.6192364", "0.60928905", "0.608477", "0.6063771", "0.5978834", "0.5953515", "0.58966315", "0.5875891", "0.58654475", "0.58611166", "0.58577436", "0.5824209", "0.581...
0.5396677
56
Indicates whether the response contains html content
protected function isHtmlResponse(Response $response) { $headers = $response->headers; // Check the content type of the response, when there is no content type // set just assume that it's html. return strtolower($headers->get('Content-Type', 'text/html')) === 'text/html'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isHtml(Response $response): bool\n {\n return 0 === strpos($response->headers->get('Content-Type'), 'text/html');\n }", "public function isHtml()\n\t{\n\t\treturn stripos($this->getContentType(), 'html') !== false;\n\t}", "public function isHtml(): bool;", "public function IsHtm...
[ "0.79415995", "0.74773306", "0.7284421", "0.72704756", "0.7109057", "0.7105647", "0.70924926", "0.70425594", "0.70178795", "0.67502123", "0.66897285", "0.66847825", "0.66829515", "0.66519916", "0.66516846", "0.66315794", "0.65965873", "0.6574762", "0.6492977", "0.6478759", "0...
0.74559325
2
every thing in this calss is copied from socialite repo// Redirect the user to the GitHub authentication page.
public function redirectToProvider($provider) { return Socialite::driver($provider)->redirect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function githubRedirect(){\n $user = Socialite::driver('github')->user();\n\n // if this user does not exist, add them \n // If they do, get the model,\n // either way authenticate the user into the application and redirect afterwards\n\n Auth::login($user);\n }", "pu...
[ "0.83033866", "0.8265829", "0.80978984", "0.80978984", "0.80978984", "0.7734659", "0.7728145", "0.7687468", "0.7582287", "0.75486165", "0.7462744", "0.744874", "0.7434986", "0.7425647", "0.73443484", "0.73443484", "0.7209252", "0.7076142", "0.6969529", "0.69578713", "0.693717...
0.0
-1
Obtain the user information from GitHub for ex..
public function handleProviderCallback($provider) { $user = Socialite::driver($provider)->user(); $selectProvider = Provider::where('provider_id', $user->getId())->first(); if(!$selectProvider)//new user { $registeredUser = User::where('email', $user->getEmail())->first()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function github() {\n\t\t$user = Socialize::with ( 'github' )->user ();\n\t\t// Do your stuff with user data.\n\t\tprint_r ( $user );\n\t\tdie ();\n\t}", "private static function getGithubInfo($username)\n {\n $client = new Client([\"base_uri\" => \"https://api.github.com/users/\"]);\n\n ...
[ "0.8057484", "0.71040887", "0.7101486", "0.7065687", "0.6845495", "0.6793592", "0.6758416", "0.67528313", "0.67251027", "0.66836786", "0.658662", "0.6562301", "0.65356356", "0.65356356", "0.65356356", "0.65356356", "0.65356356", "0.65356356", "0.65356356", "0.6456487", "0.644...
0.0
-1
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
public function __construct() { parent::__construct(); $this->load->model("M_mahasiswa"); $this->load->library('form_validation'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome...
[ "0.7654014", "0.74132985", "0.7394691", "0.731586", "0.72269666", "0.72269666", "0.7189518", "0.7165739", "0.7151943", "0.71448207", "0.7107727", "0.70771956", "0.70734835", "0.70390546", "0.70293397", "0.70293397", "0.70293397", "0.70293397", "0.70293397", "0.6973074", "0.69...
0.0
-1
/ Plugin Name: Carousel MobileOneContainers Description: Display a carousel list of containers product Author: Edwin Marte | Ntono Digital Author URI: Version: 1.0 / Adding new metabox Image to post type Meta Boxes
function listing_image_add_metabox () { add_meta_box( 'listingimagediv', __( 'Image Containers Loop', 'text-domain' ), 'listing_image_metabox', 'product', 'side', 'low'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function thmplt_carousel_slide_meta(){\r\n\tadd_meta_box(\"thmplt_carousel_meta_box1\", \"Slide Settings\", \"thmplt_carousel_slide_settings_html\", \"thmplt_carousel\", \"normal\", \"high\");\r\n\tadd_meta_box(\"thmplt_carousel_meta_box2\", \"Slide Images\", \"thmplt_carousel_slide_settings_html2\", \"thmplt_caro...
[ "0.7375599", "0.68776506", "0.6871126", "0.6775046", "0.6683653", "0.66329354", "0.65745693", "0.6563255", "0.6533238", "0.6505103", "0.6492187", "0.6485759", "0.6443125", "0.64393926", "0.64239436", "0.64022046", "0.64015126", "0.64001495", "0.63472784", "0.633952", "0.63312...
0.7247765
1
/ Add new widget and sidebar Register and load the widget
function wpb_carousel_widget() { register_widget( 'wpb_widget' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_widget_sidebar()\r\n{\r\n register_sidebar(\r\n array(\r\n 'name' => 'Sidebar',\r\n 'id' => 'main-sidebar',\r\n )\r\n );\r\n register_sidebar(\r\n array(\r\n 'name' => 'Sidebar du footer',\r\n 'id' => 'footer...
[ "0.7579527", "0.75709325", "0.7525198", "0.7524214", "0.742772", "0.7372288", "0.73440224", "0.7307046", "0.7296743", "0.7290374", "0.7283591", "0.7273084", "0.7257985", "0.7252105", "0.7251498", "0.72389627", "0.72375774", "0.723633", "0.723633", "0.7222218", "0.7218984", ...
0.0
-1
Updating widget replacing old instances with new
public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; return $instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update($new_instance, $old_instance) {\n\t // The old instance($old_instance) is overwritten by the new instance($new_instance) which values are taken from the widget form\n $instance = $old_instance;\n \n $instance['widget_title'] = strip_tags(stripslashes($new_instance['widget_title']));\n ...
[ "0.6643358", "0.6617959", "0.66152173", "0.6563204", "0.6393471", "0.63617164", "0.6361357", "0.63406396", "0.63406396", "0.63406396", "0.63406396", "0.63161373", "0.62564623", "0.625466", "0.61360186", "0.60991", "0.60351616", "0.59230876", "0.59126264", "0.58962494", "0.589...
0.0
-1
Create a new location.
public function handle(array $data) { return $this->repository->create($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n $entity = new Location();\n $request = $this->getRequest();\n $form = $this->createForm(new LocationType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager(...
[ "0.7225131", "0.68196535", "0.6803153", "0.66719896", "0.6594091", "0.6589314", "0.65539926", "0.65479827", "0.6530749", "0.65188015", "0.65174556", "0.6502356", "0.6485227", "0.6358239", "0.6358239", "0.6358239", "0.6349178", "0.63370407", "0.633408", "0.6273726", "0.6263603...
0.0
-1
Create a new message instance.
public function __construct(Customers $customer) { $this->customer = $customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createMessage()\n {\n $message = new Message(new Swift_Message);\n\n\n // If a global from address has been specified we will set it on every message\n // instances so the developer does not have to repeat themselves every time\n // they create a new message. We wi...
[ "0.81376195", "0.7959614", "0.77619994", "0.7713793", "0.76559645", "0.7553059", "0.7458076", "0.71510184", "0.6852663", "0.68347865", "0.67154217", "0.6689976", "0.6683088", "0.6644564", "0.6628052", "0.6549025", "0.6514292", "0.6501647", "0.645071", "0.645071", "0.645071", ...
0.0
-1
Add all used primitevs to the scene
protected function preparePrimitives() { /* Primitive collections */ $this->aframeDomObj->appendEntities($this->childrens); /* Primitives which only one can be present */ (! $this->sky) ?: $this->aframeDomObj->appendEntity($this->sky); (! $this->videosphere) ?: $this->aframe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initAllPlugins()\n {\n $this->collAllPlugins = new ObjectCollection();\n $this->collAllPluginsPartial = true;\n\n $this->collAllPlugins->setModel('\\Plugins');\n }", "public function loadResources(): void {\n\t\t$sql = \"SELECT * FROM `npc_resource` WHERE `id_npc` = ?\"...
[ "0.5366149", "0.50816774", "0.50437003", "0.50370157", "0.50001884", "0.49473038", "0.49350184", "0.4897696", "0.48515388", "0.48363018", "0.48046112", "0.48024294", "0.47856084", "0.47807813", "0.47373492", "0.47373492", "0.47104174", "0.4696254", "0.46825588", "0.4673061", ...
0.501349
4
Handle an incoming request.
public function handle($request, Closure $next) { if(Auth::user()->permission_id==1||Auth::user()->permission_id==2){ return $next($request); } return view('welcome')->with('status','ban khong co quyen'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function handle_request();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "abstract public function handleRequest($request);", "abstract public function handleRequest(Request $...
[ "0.8299201", "0.8147294", "0.8147294", "0.8147294", "0.8127764", "0.7993589", "0.7927201", "0.7912899", "0.7899075", "0.76317674", "0.75089735", "0.7485808", "0.74074036", "0.7377414", "0.736802", "0.7294553", "0.72389543", "0.7230166", "0.72108", "0.71808434", "0.7170364", ...
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
Tries to determine ID of the current user's language by using cookies or browser language
public static function run() { // We are looking for language in the user's cookie if (isset($_COOKIE['x-language-id'])) { $isset = LangHelper::getLanguageByParam('id', $_COOKIE['x-language-id']); if ($isset !== null) { return $isset['id']; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getLanguageId()\n {\n $languageId = \"\";\n if (isset($_SESSION['Shopware'][\"Auth\"]->localeID) && $_SESSION['Shopware'][\"Auth\"]->localeID != \"\") {\n $languageId = $_SESSION['Shopware'][\"Auth\"]->localeID;\n }\n return $languageId;\n }", "functi...
[ "0.8108536", "0.7595774", "0.7449701", "0.7379859", "0.73620707", "0.7302966", "0.72833157", "0.7271093", "0.7148458", "0.70471257", "0.70351607", "0.70329005", "0.70298284", "0.7029382", "0.6996994", "0.69765896", "0.6961427", "0.69582677", "0.69292504", "0.6906385", "0.6876...
0.7636853
1
Specify data which should be serialized to JSON. Includes all public properties by default plus data from properties array.
public function jsonSerialize() { $publicProperties = get_object_vars($this); unset($publicProperties['properties']); return array_merge($publicProperties, $this->getPropertiesField()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function jsonSerialize()\n {\n $json = array();\n $json['persons'] = $this->persons;\n $json['companies'] = $this->companies;\n\n return array_merge($json, $this->additionalProperties);\n }", "public function jsonSerialize()\n {\n $json = array();\n $js...
[ "0.6588477", "0.64389616", "0.6410529", "0.63292783", "0.6321633", "0.6286873", "0.6277906", "0.626355", "0.62138224", "0.61932653", "0.61905366", "0.61827403", "0.61827403", "0.61605805", "0.60855246", "0.6085367", "0.60842156", "0.60544693", "0.60479873", "0.60398364", "0.6...
0.66726726
0
Run the database seeds.
public function run() { $filiations = ['Сумы', 'Киев', 'Николаев', 'удаленный филиал', ]; foreach ($filiations as $city_name) { if (!DB::table('filiations') ->where('city_name', $city_name)->first()) { DB::tab...
{ "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
Registers the required js files and script to initialize echarts plugin.
protected function registerClientScript() { $id = $this->options['id']; $view = $this->getView(); $option = !empty($this->pluginOptions['option']) ? Json::encode($this->pluginOptions['option']) : '{}'; if ($this->theme) { $js = "var {$this->clientId} = echarts.init(docum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_plugin_script() {\n\t\twp_enqueue_script ( 'tr-execute', plugin_dir_url ( __FILE__ ) . '../js/execute.js', array (\n\t\t\t\t'jquery' \n\t\t) );\n\t\twp_enqueue_script ( 'tr-jquery-custom', plugin_dir_url ( __FILE__ ) . '../js/jquery-ui.min.js', array (\n\t\t\t\t'jquery' \n\t\t) );\n\t\t// ...
[ "0.6930164", "0.6642013", "0.66358787", "0.659453", "0.65577745", "0.64857", "0.64182717", "0.6393153", "0.63474125", "0.63356113", "0.6265968", "0.62512493", "0.6246191", "0.62407136", "0.6223083", "0.62043434", "0.62031066", "0.61829865", "0.6176997", "0.6174723", "0.617444...
0.70504874
0
Quotes a string for use in JavaScript.
private function quote($string) { return "'" . addcslashes($string, "'") . "'"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function intoQuote($string){ return \"'\".$string.\"'\"; }", "public function jsEscape($string = '')\n {\n return addcslashes($string, \"\\\"\");\n }", "public function quote($stringValue);", "static function quote($s){\r\n return '\"' . str_replace('\"', '\\\"', $s) . '\"';...
[ "0.79302377", "0.7628505", "0.75779307", "0.74377644", "0.7375173", "0.7358651", "0.73324454", "0.73208463", "0.7233523", "0.71794486", "0.7146036", "0.7146036", "0.714414", "0.712353", "0.7116891", "0.71024257", "0.7098381", "0.7083006", "0.70734584", "0.7072708", "0.7060224...
0.726824
8
Returns the client ID of the echarts.
public function getClientId() { $id = $this->options['id']; if ($this->_clientId === null) { $this->_clientId = "echarts_{$id}"; } return $this->_clientId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClientId()\n {\n return $this->client_id;\n }", "public function getClientId()\n {\n return $this->client_id;\n }", "public function getClientId()\n {\n return $this->client_id;\n }", "public function getClientId()\n {\n return $this->client...
[ "0.7346107", "0.7346107", "0.7346107", "0.7346107", "0.7346107", "0.73284566", "0.73151404", "0.73117363", "0.7284441", "0.72842646", "0.72842646", "0.72842646", "0.72842646", "0.72842646", "0.72842646", "0.7238168", "0.7238168", "0.7189344", "0.7155751", "0.7155751", "0.7084...
0.8740448
0
Registers the JS files of the given themes.
public static function registerTheme($theme) { $themes = (array) $theme; array_walk($themes, function (&$name) { $name .= '.js'; }); static::$_themeJsFiles = array_unique(array_merge(static::$_themeJsFiles, $themes)); if (static::$_themeJsFiles) { Them...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_theme_styles_and_scripts(){\n // Register style\n wp_enqueue_style( 'theme-icons', get_template_directory_uri(). '/css/icons.css', array(), '1.0.0', 'all' ); // Register font icons\n wp_enqueue_style( 'google_fonts', sunset_google_fonts_url(), array(), '1.0.0'); // Register G...
[ "0.7101266", "0.705379", "0.69827694", "0.6899698", "0.6832402", "0.68117875", "0.6733613", "0.67205095", "0.6696908", "0.6695708", "0.66952455", "0.666374", "0.6651311", "0.66508657", "0.6647404", "0.6642767", "0.662506", "0.66236204", "0.66072047", "0.6562304", "0.6562304",...
0.734126
0
Registers the JS files of the given maps.
public static function registerMap($map) { $maps = (array) $map; array_walk($maps, function (&$name) { $name = 'js/' . $name . '.js'; }); static::$_mapJsFiles = array_unique(array_merge(static::$_mapJsFiles, $maps)); if (static::$_mapJsFiles) { MapAsse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addJavascriptFiles($js /* array */);", "protected function registerScripts() {\n\t\tforeach (static::$scripts as $handle => $scriptPath) {\n\t\t\tstatic::registerScript($handle, $scriptPath);\n\t\t}\n\t}", "public function register_assets() {\n\n $scripts = $this->get_scripts();\n ...
[ "0.67518306", "0.6558918", "0.6276848", "0.6230812", "0.6142105", "0.60572845", "0.60283715", "0.5963894", "0.59283364", "0.5891478", "0.58643115", "0.58173853", "0.5811111", "0.5769973", "0.57162094", "0.5711398", "0.57052994", "0.57046634", "0.568333", "0.56821173", "0.5674...
0.7561279
0
Ensure that deletes records remove their underlying file assets, without affecting other staged records.
public function onAfterDelete() { if (!$this->hasAssets()) { return; } // Prepare blank manipulation $manipulations = new AssetManipulationList(); // Add all assets for deletion $this->addAssetsFromRecord($manipulations, $this->owner, AssetManipulationLi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeDelete(){\n $files = $this->getFiles()->all();\n foreach($files as $file)\n $file->delete();\n\n return parent::beforeDelete();\n }", "protected function removeSysFileReferenceRecordsFromImportDataWithRelationToMissingFile() {}", "private function delete...
[ "0.6916688", "0.6694917", "0.6648253", "0.6619436", "0.65787554", "0.65740263", "0.643434", "0.6400751", "0.6371196", "0.631779", "0.6182005", "0.61655694", "0.61603624", "0.61326957", "0.60912347", "0.59851456", "0.5976356", "0.5969098", "0.59485453", "0.59480375", "0.593337...
0.6041394
15
Ensure that changes to records flush overwritten files, and update the visibility of other assets.
public function onBeforeWrite() { if (!$this->hasAssets()) { return; } // Prepare blank manipulation $manipulations = new AssetManipulationList(); // Mark overwritten object as deleted if ($this->owner->isInDB()) { $priorRecord = DataObject::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function flushAssets()\n\t{\n\t\t(new Version)->refreshMediaVersion();\n\t}", "public function flush() {\n if ($this->c_owner) {\n if ($this->update('owner', $this->owner, Project::$tableName)) {\n $this->c_owner = false;\n }\n }\n if ($this->c_nam...
[ "0.66175604", "0.59279233", "0.58682835", "0.5860525", "0.5831702", "0.578855", "0.578303", "0.56967306", "0.5691274", "0.5666461", "0.56320786", "0.5621597", "0.562093", "0.5562484", "0.5547433", "0.5499615", "0.5479114", "0.5458401", "0.5456594", "0.5452077", "0.54365784", ...
0.68842894
0
Check default state of this record
protected function getRecordState($record) { if ($this->isVersioned()) { // Check stage this record belongs to $stage = $record->getSourceQueryParam('Versioned.stage') ?: Versioned::get_stage(); // Non-live stages are automatically non-public if ($stage !== V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function get_default_state();", "public function getIsDefault();", "function getDefaultState()\r\n\t{\r\n\t}", "public function isDefault()\n {\n return ($this->getOriginalInstance()->Default);\n }", "protected function hasDefault() {\n return $this->getFieldDefinition()->hasDefault(...
[ "0.6837914", "0.6714377", "0.6639284", "0.6569754", "0.6529168", "0.64857405", "0.6465748", "0.63196856", "0.6317322", "0.6254194", "0.625237", "0.6222079", "0.6209048", "0.6204157", "0.6204157", "0.6204157", "0.6204157", "0.6191652", "0.61852527", "0.6172774", "0.61535347", ...
0.0
-1
Given a set of asset manipulations, trigger any necessary publish, protect, or delete actions on each asset.
protected function processManipulation(AssetManipulationList $manipulations) { // When deleting from stage then check if we should archive assets $archive = $this->owner->config()->get('keep_archived_assets'); // Check deletion policy $deletedAssets = $manipulations->getDeletedAsset...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actions(){\n $params = func_get_args();\n\n //This should be our trade object\n $tradeObject = $params[0];\n\n $this->orders = $tradeObject->getOrders();\n\n\n foreach($this->collection as $order){\n // if we cant find our order in open orders then trig...
[ "0.60173655", "0.58534074", "0.57009554", "0.55504906", "0.5447694", "0.5443552", "0.542013", "0.53905857", "0.53546125", "0.5334522", "0.5262782", "0.5244542", "0.5243241", "0.5241503", "0.52274954", "0.52269995", "0.52255386", "0.52150524", "0.51883805", "0.5181081", "0.517...
0.6238898
0
Checks all stages other than the current stage, and check the visibility of assets attached to those records.
protected function addAssetsFromOtherStages(AssetManipulationList $manipulation) { // Skip unversioned or unsaved assets if (!$this->isVersioned() || !$this->owner->isInDB()) { return; } // Unauthenticated member to use for checking visibility $baseClass = $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onBeforeWrite()\n {\n if (!$this->hasAssets()) {\n return;\n }\n\n // Prepare blank manipulation\n $manipulations = new AssetManipulationList();\n\n // Mark overwritten object as deleted\n if ($this->owner->isInDB()) {\n $priorRecor...
[ "0.5793878", "0.5756445", "0.5516381", "0.5369971", "0.5215049", "0.50056267", "0.49587068", "0.49037033", "0.48252228", "0.4821411", "0.48211318", "0.4803867", "0.47528902", "0.47431618", "0.4733472", "0.47045866", "0.46955317", "0.4675476", "0.46644557", "0.46627045", "0.46...
0.5076373
5
Given a record, add all assets it contains to the given manipulation. State can be declared for this record, otherwise the underlying DataObject will be queried for canView() to see if those assets are public
protected function addAssetsFromRecord(AssetManipulationList $manipulation, DataObject $record, $state) { // Find all assets attached to this record $assets = $this->findAssets($record); if (empty($assets)) { return; } // Add all assets to this stage fore...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onBeforeWrite()\n {\n if (!$this->hasAssets()) {\n return;\n }\n\n // Prepare blank manipulation\n $manipulations = new AssetManipulationList();\n\n // Mark overwritten object as deleted\n if ($this->owner->isInDB()) {\n $priorRecor...
[ "0.5983292", "0.59673995", "0.5171399", "0.5171399", "0.48691416", "0.48545712", "0.4832955", "0.48314267", "0.47808412", "0.4565236", "0.45315292", "0.44944543", "0.44396025", "0.41933188", "0.418899", "0.41816735", "0.4172173", "0.41716185", "0.4140145", "0.41389728", "0.41...
0.77252924
0
Return a list of all tuples attached to this dataobject Note: Variants are excluded
protected function findAssets(DataObject $record) { // Search for dbfile instances $files = []; $fields = DataObject::getSchema()->fieldSpecs($record); foreach ($fields as $field => $db) { $fieldObj = $record->$field; if (!($fieldObj instanceof DBFile)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toTuple();", "public function getTuple()\n {\n return $this->tuple;\n }", "public function get_all(){\n return get_object_vars($this);\n }", "public function getValuesList() {\n return $this->_get(3);\n }", "public function getValuesList() {\n return $thi...
[ "0.6198187", "0.6077092", "0.57596827", "0.57538587", "0.57482123", "0.5728062", "0.5667332", "0.566098", "0.56521875", "0.5603916", "0.55860615", "0.5580128", "0.5523734", "0.5517232", "0.5505672", "0.55034024", "0.54996634", "0.5460509", "0.54444206", "0.54403454", "0.54402...
0.0
-1
Delete all assets in the tuple list
protected function deleteAll($assets) { if (empty($assets)) { return; } $store = $this->getAssetStore(); foreach ($assets as $asset) { $store->delete($asset['Filename'], $asset['Hash']); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function deleteAssets() {\n // Fail due to invalid asset deletors \n assert(isset(self::$assetDeletors));\n\n // Remove assets \n foreach (self::$assetDeletors as $deletor) {\n $deletor->delete();\n }\n\n // Clear AssetDeletors cache\n self::$assetDeletors = array();\n }",...
[ "0.7267726", "0.6095042", "0.6054584", "0.60033196", "0.5995054", "0.59788436", "0.59439737", "0.59067565", "0.5851085", "0.58148855", "0.58003813", "0.57591504", "0.57591504", "0.57591504", "0.5752122", "0.57368726", "0.5729381", "0.5710298", "0.5706146", "0.5694879", "0.569...
0.54032046
59
Move all assets in the list to the public store
protected function swapAll($assets) { if (empty($assets)) { return; } $store = $this->getAssetStore(); // The `swap` method was introduced in the 1.4 release. It wasn't added to the interface to avoid breaking // custom implementations. If it's not available on ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function moveAssets()\n {\n foreach ($this->reports as $report) {\n $old_file = config('import.import_assets_reports_path') . DIRECTORY_SEPARATOR . $report->file;\n $new_file = config('momentum.reports_path') . DIRECTORY_SEPARATOR . $report->file;\n\n $this->moveF...
[ "0.63853717", "0.56475693", "0.56206787", "0.54758507", "0.5433083", "0.5412192", "0.5293561", "0.51931614", "0.5176156", "0.5174548", "0.5152773", "0.5148324", "0.5120564", "0.509165", "0.5081713", "0.507259", "0.5056157", "0.5045812", "0.50258976", "0.50258976", "0.50230664...
0.5157739
10
Move all assets in the list to the public store
protected function publishAll($assets) { if (empty($assets)) { return; } $store = $this->getAssetStore(); foreach ($assets as $asset) { $store->publish($asset['Filename'], $asset['Hash']); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function moveAssets()\n {\n foreach ($this->reports as $report) {\n $old_file = config('import.import_assets_reports_path') . DIRECTORY_SEPARATOR . $report->file;\n $new_file = config('momentum.reports_path') . DIRECTORY_SEPARATOR . $report->file;\n\n $this->moveF...
[ "0.63853717", "0.56475693", "0.56206787", "0.54758507", "0.5433083", "0.5412192", "0.5293561", "0.51931614", "0.5176156", "0.5174548", "0.5157739", "0.5152773", "0.5148324", "0.509165", "0.5081713", "0.507259", "0.5056157", "0.5045812", "0.50258976", "0.50258976", "0.50230664...
0.5120564
13
Move all assets in the list to the protected store
protected function protectAll($assets) { if (empty($assets)) { return; } $store = $this->getAssetStore(); foreach ($assets as $asset) { $store->protect($asset['Filename'], $asset['Hash']); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function moveAssets()\n {\n foreach ($this->reports as $report) {\n $old_file = config('import.import_assets_reports_path') . DIRECTORY_SEPARATOR . $report->file;\n $new_file = config('momentum.reports_path') . DIRECTORY_SEPARATOR . $report->file;\n\n $this->moveF...
[ "0.58997625", "0.5654946", "0.54312396", "0.5421908", "0.5395475", "0.5380937", "0.5306818", "0.52920246", "0.5279645", "0.5212913", "0.5197335", "0.5192536", "0.51516384", "0.5144705", "0.51177275", "0.51092696", "0.5081766", "0.5001659", "0.50009835", "0.49468723", "0.49309...
0.54681784
2
A basic feature test example.
public function testCheckProduct() { $response = $this->get('product'); $response->assertStatus(200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBasicFeatures()\n {\n return $this->doTheRealTest(false);\n }", "public function testExample()\n {\n }", "public function testBasicExample()\n {\n $this->visit('/')\n ->see('TROLOLOLO');\n }", "function test_sample() {\n\n\t\t$this->assertTrue( t...
[ "0.75703996", "0.7326855", "0.7060016", "0.70380056", "0.69854325", "0.69819707", "0.6968778", "0.69384074", "0.6893094", "0.6865566", "0.6839218", "0.6836121", "0.68062127", "0.6803488", "0.68033314", "0.67734396", "0.6747173", "0.67426485", "0.67172587", "0.67116183", "0.67...
0.0
-1
Constructor method for FindMeetingTimeCandidatesResponseMessageType
public function __construct(\ArrayType\EwsArrayOfMeetingTimeCandidate $meetingTimeCandidates) { $this ->setMeetingTimeCandidates($meetingTimeCandidates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setMeetingReminders($meeting_id,$chosen_time=false) {\n $mtg = Meeting::findOne($meeting_id);\n if ($chosen_time ===false) {\n $chosen_time = Meeting::getChosenTime($meeting_id);\n }\n // create attendees list for organizer and participants\n $attendees = arra...
[ "0.48409176", "0.46415326", "0.46238506", "0.46189728", "0.459876", "0.45932695", "0.44249666", "0.44214097", "0.44142398", "0.4409216", "0.43712234", "0.4356641", "0.43558082", "0.43494785", "0.4341607", "0.43356425", "0.4291168", "0.42818493", "0.4280207", "0.42656127", "0....
0.6646118
0
Enqueue scripts and styles
function calvero_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enqueue_scripts() {\n\t\t$this->styles();\n\t\t$this->scripts();\n\t}", "public function enqueueScripts() {\n\t\t\twp_enqueue_script('jquery');\n//\t\t\twp_enqueue_script('owl', self::asset(\"node_modules/owl.carousel/dist/owl.carousel.min.js\"), ['jquery'], '1.0.0', ' all');\n// wp_enqueue_...
[ "0.84234697", "0.82742506", "0.8254844", "0.8219376", "0.82153755", "0.8205327", "0.820173", "0.81967133", "0.8116241", "0.8116241", "0.8106494", "0.80856234", "0.808051", "0.80735797", "0.80656993", "0.80442953", "0.80377364", "0.8012059", "0.80067956", "0.7996983", "0.79703...
0.0
-1
Display navigation to next/previous pages when applicable
function calvero_content_nav( $nav_id ) { global $wp_query, $post; // Don't print empty markup on single pages if there's nowhere to navigate. if ( is_single() ) { $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function next() {\n if ($this->currentPage < $this->totalPage) {\n print '<li><a href=\"' . $this->url . '&page=' . ($this->currentPage + 1) . '\">&gt;</a></li>';\n }\n }", "abstract protected function setPreviousPage();", "public function list_pages() {\n\t\t$this->print_prev();\n\n\t\tif ...
[ "0.7237561", "0.7078976", "0.70148975", "0.700591", "0.6944309", "0.6763266", "0.6724295", "0.6657771", "0.6657771", "0.6627122", "0.6570699", "0.65706056", "0.6552235", "0.6455269", "0.6405863", "0.6384097", "0.63557094", "0.6351541", "0.634766", "0.6347223", "0.63387626", ...
0.0
-1
Template for comments and pingbacks. Used as a callback by wp_list_comments() for displaying the comments.
function calvero_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?> <li class="post pingback"> <p><?php _e( 'Pingback:', 'calvero' ); ?> <?php comment_author_link(); ?><?php edit_comment...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ghostpool_comment_template( $comment, $args, $depth ) {\r\n\r\n\tswitch ( $comment->comment_type ) :\r\n\tcase 'pingback' :\r\n\tcase 'trackback' :\r\n\t\t\r\n\t?>\r\n\r\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\" itemscope itemtype=\"http://schema.org/Comment\">\r\n\r\n\t\t<div...
[ "0.7316677", "0.6964057", "0.69519836", "0.681965", "0.6768409", "0.6735581", "0.67349035", "0.66827005", "0.66730416", "0.6658727", "0.66319704", "0.65822315", "0.65627444", "0.65619814", "0.65600204", "0.65505296", "0.6548833", "0.6527826", "0.6489724", "0.6489368", "0.6479...
0.6320915
50
ends check for calvero_comment() Register widgetized area and update sidebar with default widgets
function shape_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'shape' ), 'id' => 'sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'afte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function anipics_add_widget_area(){\n register_sidebar(array(\n 'id' => 'projet',\n 'name' => 'Photo gallery',\n 'description' => ' Apparait au centre',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h1>',\n 'after_title' => '<...
[ "0.71901685", "0.7148874", "0.7037574", "0.70273596", "0.7016282", "0.69845694", "0.6982371", "0.69762653", "0.6971091", "0.6956312", "0.6955987", "0.6915839", "0.6915346", "0.6898224", "0.6895815", "0.6884372", "0.68623924", "0.68318725", "0.6830272", "0.6789377", "0.678663"...
0.0
-1
Hydrators all data at once.
protected function hydrateAllData() { return $this->_stmt->fetchAll(PDO::FETCH_KEY_PAIR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function hydrate($data);", "function hydrate() : void;", "public function hydrate($data){\n foreach ($data as $key => $value){\n $method = 'set'.ucfirst($key);\n \n if (method_exists($this, $method)){\n $this->$method($value);\n ...
[ "0.7236003", "0.7202339", "0.7118955", "0.70619434", "0.69078255", "0.69006133", "0.67590785", "0.67182034", "0.6655463", "0.6588129", "0.65584165", "0.6549516", "0.6303413", "0.6219743", "0.61083543", "0.6077466", "0.60385567", "0.6026907", "0.6003825", "0.5986207", "0.59838...
0.67549247
7
Returns a rendered view.
public function renderView($view, array $parameters = array()) { return $this->controller->renderView($view, $parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render()\n\t{\n\t\treturn $this->viewFactory->make($this->view)\n\t\t\t->with( 'presenter', $this )\n\t\t\t->render();\n\t}", "abstract protected function renderView();", "public function render()\n {\n try {\n $this->build();\n } catch (\\Exception $e) {\n ...
[ "0.8140855", "0.7790519", "0.7767289", "0.76162785", "0.7494709", "0.747654", "0.7456515", "0.74486965", "0.72972715", "0.72965056", "0.7284353", "0.72119683", "0.7206516", "0.72023666", "0.7199349", "0.7184391", "0.7173318", "0.7162857", "0.71106654", "0.70996267", "0.706944...
0.0
-1
Returns true if the service id is defined.
public function has($id) { return $this->controller->has($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasService(string $id): bool\n {\n return isset($this->getServices()[$id]);\n }", "public function isService(string $serviceId): bool;", "public function has($id): bool\n {\n // decorate service identifier\n $decoratedId = $this->serviceIdDecorator->decorate($id);\...
[ "0.77505785", "0.7741814", "0.7675735", "0.7662306", "0.71190614", "0.7060176", "0.6848666", "0.6843727", "0.68127936", "0.6783198", "0.6751535", "0.6707439", "0.66986614", "0.6688981", "0.66340077", "0.65979433", "0.65260726", "0.6524459", "0.6519151", "0.65036356", "0.64715...
0.0
-1