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
Distributor Address for presentation
public function printDistributorAddress() { $str = '<address class="vcard">'; $str .= '<p>'; $str .= '<strong class="org">' . $this->name . '</strong>'; if ( ! empty($this->address)) { $str .= '<br><span class="adr">'; $str .= '<span class="street-address">' ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function address() { return ($this->address); }", "public function address(): string\n {\n return $this->address;\n }", "function viewAddress(){\r\n $payment = new managePaymentModel();\r\n $payment->cust_ID = $_SESSION['cust_ID'];\r\n return $payment->viewAddress();\r\n }"...
[ "0.64839643", "0.6309607", "0.62910753", "0.62617326", "0.6122346", "0.6106823", "0.60907793", "0.6065269", "0.60634726", "0.60541743", "0.60255396", "0.59778386", "0.59553933", "0.59094447", "0.59061325", "0.58745325", "0.58720684", "0.5855768", "0.5855768", "0.584866", "0.5...
0.80096704
0
Display a listing of the resource.
public function index() { return view('pages.friends'); }
{ "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) { // }
{ "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) { // }
{ "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 $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
Show the form for editing the specified User.
public function editProfile() { $user = Auth::user(); $data['employer'] = $user; $data['company'] = Company::where('user_id', $user->id)->first(); return $this->sendResponse($data, 'Employer retrieved successfully.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function edit() {\n\t\t// Make sure a user exists.\n\t\tif (empty($this->user)) {\n\t\t\t$_SESSION['title'] = 'Error';\n\t\t\t$_SESSION['data'] = array(\n\t\t\t\t'error' => 'The selected user was invalid.',\n\t\t\t\t'link' => 'management/users'\n\t\t\t);\n\t\t\tredirect(ABSURL . 'error');\n\t\t}\n\n\t\t/...
[ "0.82987076", "0.807014", "0.80538946", "0.78894466", "0.7888362", "0.78173184", "0.7793126", "0.77880865", "0.7757759", "0.7756244", "0.7726526", "0.77163297", "0.77137434", "0.76977724", "0.7694074", "0.7685219", "0.76846266", "0.765015", "0.7644359", "0.76420546", "0.76420...
0.0
-1
Bootstrap any application services.
public function boot() { View::composer('layouts.app', GitCommitComposer::class); View::composer('*', OnboardingComposer::class); }
{ "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
Display a listing of the resource.
public function index() { // }
{ "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
Store a newly created resource in storage.
public function store(Request $request) { $validator = Validator::make(request()->all(), [ 'title' => 'required|min:5', 'body' => 'required|min:10', 'category' => 'required', ]); try { $user = auth()->userOrFail(); } catch (\Tymon\JWTA...
{ "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
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
$sql = "SELECT m.id AS mid, m.display_label AS m_name, f.id AS fid, f.code, f.menu_name AS f_name, r.id AS rid, r.right_name AS r_name FROM
public function getAllRight(){ // admin_module m LEFT JOIN admin_menu f ON f.module_id = m.id // LEFT JOIN admin_right r ON r.menu_id = f.id"; $sql = "SELECT m.id AS mid, m.display_label AS m_name, f.id AS fid, f. CO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function select_modification_data($mid)\n\t{\n\t\tglobal $db;\n\t\n\t\t$sql = \"SELECT mods.*, g.made_year, g.id, images.*, user.username, user.user_avatar_type, user.user_allowavatar, user.user_avatar, images.attach_ext, images.attach_id, images.attach_file, cats.title as category_title, makes.make, models.model,...
[ "0.60787094", "0.5895437", "0.58847654", "0.57737136", "0.5765146", "0.5760141", "0.57255864", "0.5681123", "0.5676963", "0.5662733", "0.5618395", "0.55416584", "0.55343884", "0.55205977", "0.5516878", "0.55072755", "0.55049944", "0.5474555", "0.54688287", "0.54658234", "0.54...
0.5903446
1
Returns the root node.
public function findRootNode() { return $this->repository->findOneBy(array('lvl' => 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRootNode(){\n\t\tif(!$this->root_node) {\n\t\t\treturn null;\n\t\t}\n\t\treturn $this->root_node;\n\t}", "public function root() {\n $node = $this;\n while ($parent = $node->getParent())\n $node = $parent;\n return $node;\n }", "function getRoot() { return(...
[ "0.8349662", "0.80568385", "0.79198354", "0.79141134", "0.7775484", "0.7775484", "0.7759621", "0.7744004", "0.7737028", "0.76899964", "0.7668741", "0.7652649", "0.7618602", "0.7586496", "0.7519261", "0.7465442", "0.7431905", "0.7359621", "0.73455703", "0.7337951", "0.73342836...
0.76321787
12
Returns the Query Builder to select all nodes ordered as tree.
public function getNodeTreeQueryBuilder() { $qb = $this->repository ->createQueryBuilder('c') ->select('c, p') ->leftJoin('c.parent', 'p') ->orderBy('c.lft'); return $qb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodesQueryBuilder($parentId=null)\n {\n // Get class metadata\n $metadata = $this->getClassMetadata();\n\n // Create the query builder\n $queryBuilder = $this->_em->createQueryBuilder();\n\n $queryBuilder\n ->select('node')\n ->from($me...
[ "0.6490567", "0.6306455", "0.62454224", "0.59238976", "0.5892231", "0.58225065", "0.5818849", "0.57435685", "0.5618105", "0.55940264", "0.55886483", "0.55865026", "0.5550731", "0.5530019", "0.5510987", "0.5493688", "0.54929763", "0.5484383", "0.54810077", "0.5479525", "0.5448...
0.74920726
0
Returns ascendants of a given node filtered by published status.
public function findNodeAscendantsFilteredByPublished(NodeInterface $node, $published) { $qb = $this->getNodeAscendantsQueryBuilder($node); $qb->andWhere('c.published = :pub') ->setParameter('pub', $published); return $qb->getQuery()->getResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findNodePublishedDescendantsFilteredByDepth(NodeInterface $node, $depth = 1)\n {\n $qb = $this->getNodeDescendantsQueryBuilder($node);\n $qb->andWhere('c.published = true')\n ->andWhere('c.lvl - ' . $node->getLevel() . ' <= :d')\n ->setParameter('d', $depth);\...
[ "0.59303397", "0.5769526", "0.572744", "0.5537261", "0.5366998", "0.5162558", "0.5161066", "0.51442534", "0.5068894", "0.5001943", "0.49399307", "0.49125707", "0.4904975", "0.49000794", "0.48306423", "0.48306128", "0.4817847", "0.48056942", "0.48042446", "0.4794809", "0.47849...
0.72250086
0
Returns the Query Builder to select node ascendants.
public function getNodeAscendantsQueryBuilder(NodeInterface $node) { $qb = $this->getNodeTreeQueryBuilder(); $qb->where('c.lft <= :lft AND c.rgt >= :rgt') ->setParameter('lft', $node->getLeft()) ->setParameter('rgt', $node->getRight()); return $qb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodeTreeQueryBuilder()\n {\n $qb = $this->repository\n ->createQueryBuilder('c')\n ->select('c, p')\n ->leftJoin('c.parent', 'p')\n ->orderBy('c.lft');\n\n return $qb;\n }", "public function scopeDepthFirst(Builder $query): Builde...
[ "0.6466017", "0.628101", "0.60708696", "0.59080255", "0.58498013", "0.57561725", "0.57357436", "0.5719049", "0.566345", "0.56513584", "0.560418", "0.5572246", "0.55671185", "0.55293167", "0.5477672", "0.54699075", "0.5465625", "0.5457522", "0.5435523", "0.5435523", "0.5420072...
0.67854375
0
Returns all descendants of a given node up to a max depth.
public function findNodeDescendantsFilteredByDepth(NodeInterface $node, $depth = 1) { $qb = $this->getNodeDescendantsQueryBuilder($node); $qb->andWhere('c.lvl - ' . $node->getLevel() . ' <= :d') ->setParameter('d', $depth); return $qb->getQuery()->getResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function descendants() {\n\t\t$out = array();\n\t\t$this->get_descendants($out);\n\t\treturn $out;\n\t}", "function descendants() {\n\t\t/*\n\t\tget all children of this article\n\t\tfor each child, run the same query..\n\t\t*/\n\t\t$childs = $this->children();\n\t\t$subChilds = array();\n\t\tforeach ($childs as...
[ "0.64560384", "0.62986094", "0.62336975", "0.6187916", "0.60737133", "0.6002487", "0.59420776", "0.5940302", "0.57830787", "0.56825745", "0.5657909", "0.55984783", "0.55779237", "0.55075896", "0.55066925", "0.5479109", "0.5437518", "0.54170364", "0.5366091", "0.5362844", "0.5...
0.59633565
6
Returns all published descendants of a given node up to a max depth.
public function findNodePublishedDescendantsFilteredByDepth(NodeInterface $node, $depth = 1) { $qb = $this->getNodeDescendantsQueryBuilder($node); $qb->andWhere('c.published = true') ->andWhere('c.lvl - ' . $node->getLevel() . ' <= :d') ->setParameter('d', $depth); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function descendants() {\n\t\t/*\n\t\tget all children of this article\n\t\tfor each child, run the same query..\n\t\t*/\n\t\t$childs = $this->children();\n\t\t$subChilds = array();\n\t\tforeach ($childs as $oneChild) {\n\t\t\t$subChilds = array_merge($subChilds, $oneChild->descendants());\n\t\t}\n\t\t$childs = ar...
[ "0.66310877", "0.63920623", "0.63337016", "0.62532884", "0.6101387", "0.6012299", "0.5908668", "0.5723939", "0.572146", "0.5717808", "0.5685679", "0.5673765", "0.5603057", "0.5578016", "0.5547474", "0.5530859", "0.54630685", "0.5334598", "0.5241115", "0.5240817", "0.5232294",...
0.6382995
2
Returns the Query Builder to select node descendants.
public function getNodeDescendantsQueryBuilder(NodeInterface $node) { $qb = $this->getNodeTreeQueryBuilder(); $qb->where('c.lft > :lft AND c.rgt < :rgt') ->setParameter('lft', $node->getLeft()) ->setParameter('rgt', $node->getRight()); return $qb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodeTreeQueryBuilder()\n {\n $qb = $this->repository\n ->createQueryBuilder('c')\n ->select('c, p')\n ->leftJoin('c.parent', 'p')\n ->orderBy('c.lft');\n\n return $qb;\n }", "public function descendants($depth=null) {\n $db...
[ "0.6369904", "0.6067729", "0.60116416", "0.59157914", "0.5892921", "0.57832295", "0.5748616", "0.57383394", "0.5737618", "0.57343405", "0.5687902", "0.5665829", "0.56632423", "0.5636539", "0.5615965", "0.561082", "0.5604218", "0.56036675", "0.55853957", "0.5583348", "0.557832...
0.67344344
0
Returns the Query Builder to select all nodes that are not descendants of a given node.
public function getNodeNotDescendantsQueryBuilder(NodeInterface $node) { $qb = $this->getNodeTreeQueryBuilder(); $qb->where('c.lft < :lft OR c.rgt > :rgt') ->setParameter('lft', $node->getLeft()) ->setParameter('rgt', $node->getRight()); return $qb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newQueryWithoutRelationships();", "private function findNotSoldQuery() : QueryBuilder\n {\n return $this\n ->createQueryBuilder('p')\n ->where('p.sold = false')\n ->orderBy('p.created_at', 'ASC');\n }", "public function whereNotEq()\n {\n ...
[ "0.591824", "0.5860476", "0.5846658", "0.57491595", "0.5716643", "0.5701002", "0.5688973", "0.56481946", "0.5634945", "0.5625262", "0.55713594", "0.5530799", "0.548697", "0.5470394", "0.5470253", "0.54560655", "0.54117244", "0.5397437", "0.5389121", "0.53789645", "0.5346176",...
0.75435907
0
getUniqueID Genere un ID unique
function getUniqueID(){ return md5(uniqid(rand(), true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUniqueID() {\r\n\t\treturn $this->uniqueID;\r\n\t}", "public function getUniqueId();", "public function getUniqueId();", "public function getUniqueId();", "public function getUniqueID()\n {\n return $this->uniqueID;\n }", "public function getUniqueID()\n {\n return $thi...
[ "0.83989775", "0.83801484", "0.83801484", "0.83801484", "0.8329729", "0.8329729", "0.82325965", "0.81881756", "0.8179402", "0.80901086", "0.80776227", "0.8071184", "0.8066673", "0.80358744", "0.7965072", "0.7953185", "0.7942098", "0.7930546", "0.7911386", "0.7886457", "0.7880...
0.82959586
6
Verifie la synthase d'une adresse email
function VerifieAdresseMail($adresse) { $Syntaxe='#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$#'; if(preg_match($Syntaxe,$adresse)) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verifica_email ($email)\r\n{\r\n\t$retorno = true;\r\n\r\n\t/* Aqui estaria el codigo para verificar \r\n\tla direccion de correo */\r\n\r\n\treturn $retorno;\r\n}", "public function isEmail();", "function VerifierAdresseMail($adresse)\n{\n $Syntaxe='#^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,6}$#';\n if(pr...
[ "0.7680836", "0.7366296", "0.7073115", "0.7069872", "0.70673597", "0.7022338", "0.69694984", "0.6946072", "0.69309855", "0.6909898", "0.69006187", "0.68623626", "0.68402946", "0.68277824", "0.6825911", "0.6793025", "0.67902714", "0.6783987", "0.6756329", "0.67547417", "0.6754...
0.70046157
6
Foction facilitant l'envoie d'un mail a l aide de phpmailer
function sendEmail($destinataire, $expediteur, $sujet, $message, $messageHTML = '', $file = ''){ global $config; if( !ini_get('safe_mode') ){ set_time_limit(600); } // Si possible on augmente le tps d excution // Inclusion Class require_once ROOT_PATH . 'kernel' . DS . 'lib' . DS . 'class.phpmailer.php'; // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function smtp_enviar_email(){\n\n //inicializo a classe do PHPMailer\n $mail \t= \tnew PHPMailer();\n\n //defino os parametros que vou utilizar\n $body\t\t\t\t= $this->mensagem;\n $emailsender\t\t= $this->smtp_email;\n $nomesender\t\t\t= $this->enviadopo...
[ "0.7760264", "0.7721834", "0.76023", "0.7537048", "0.7529548", "0.74136144", "0.7401365", "0.73620343", "0.7350719", "0.73454493", "0.73387283", "0.7329737", "0.7326856", "0.73099226", "0.73072565", "0.7285685", "0.72438824", "0.7205533", "0.72015876", "0.71860605", "0.717040...
0.7297468
15
On verifie que le dossier existe
function getFilesInDir($dirname, $path_return = ''){ if( !is_dir($dirname) ){ return false; } // On ouvre le dossier $dir = opendir($dirname); // Init du tableau $files = array(); // On liste les fichier while($file = readdir($dir)){ if($file != '.' && $file != '..' && !i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dossier_existe($dossier)\n{\n $result = false;\n \n if(file_exists($dossier) && is_dir($dossier))\n $result = true;\n \n return $result;\n}", "public function existe (){\n\t\t$req = $this->bdd->prepare('SELECT COUNT(id) FROM `Article` WHERE id = ?');\n\t\t$req->execute(array($this-...
[ "0.7577755", "0.6664253", "0.63147485", "0.6289136", "0.62683094", "0.6214659", "0.6181334", "0.6050518", "0.6022837", "0.60127753", "0.5988909", "0.5922988", "0.5915625", "0.5908749", "0.5893933", "0.587872", "0.58780503", "0.5832779", "0.5819429", "0.58163875", "0.5814192",...
0.0
-1
Calcul l offset pour les requetes SQL Pour la page courante cette fonction est lien a la fonction getPagination
function getOffset($limit = 30){ if(isset($_GET['page'])) $current_page = $_GET['page']; else $current_page = 1; // Calcul du offset $offset = $current_page * $limit - $limit; return $offset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function calculateOffset() {\n $this->offset = ($this->currentpage - 1) * $this->limit;\n }", "private function getOffsetPaginacao()\n {\n if (!isset($this->filtros['pagina']) || !is_numeric($this->filtros['pagina'])) {\n return 0;\n }\n\n return (int)($this->filt...
[ "0.7509943", "0.7215283", "0.7015721", "0.6987117", "0.69842833", "0.6978349", "0.69593406", "0.6957629", "0.6935899", "0.6920727", "0.67876554", "0.67762125", "0.6764957", "0.67638093", "0.6714127", "0.66993743", "0.66770816", "0.6581128", "0.65735185", "0.65625846", "0.6521...
0.69235164
9
getChaine Genere une chaine aleatoire
function getChaine($long = 8){ $chaine = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $str = ''; for($u = 1; $u <= $long; $u++) { $nb = strlen($chaine); $nb = mt_rand(0,($nb-1)); $str .= $chaine[$nb]; } return $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChapeau();", "public function getNom();", "public function getChaine_id()\n {\n return $this->chaine_id;\n }", "public function getLieu(): string\r\n {\r\n return $this->Lieu;\r\n }", "function getChambrehospi(){\n return $this->chambre;\n }", "publi...
[ "0.7269542", "0.68788034", "0.685946", "0.67183954", "0.6679367", "0.6667835", "0.6498579", "0.6372938", "0.63711834", "0.6291786", "0.62608105", "0.62557226", "0.6230172", "0.61892766", "0.6182567", "0.6173766", "0.6173766", "0.61720693", "0.6156046", "0.6134509", "0.6108377...
0.61794394
15
Function permettant de savoir si le visiteur courant est un ROBOTS Code inspirer de phpBB3
function isBot(){ global $registry; $browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT']) : ''; $ip = (!empty($_SERVER['REMOTE_ADDR'])) ? (string) $_SERVER['REMOTE_ADDR'] : ''; $bot = false; if( !$bots = $registry->cache->get('bots_listes') ){ $bots = $regist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function niveau ($niveauCode, $niveauTexte)\n{\n if ($niveauCode = 1){\n \n }\n \n }", "public function codeRetrait()\n {\n $code_secret = $this->utils->securite_xss($_POST['codesecret']);\n $fkcarte = $this->utils->securite_xss($_POST['fkcarte']);\n ...
[ "0.59947467", "0.5970189", "0.56759983", "0.5612699", "0.5539542", "0.55346966", "0.54803103", "0.5475825", "0.54555166", "0.5440401", "0.5440198", "0.5416906", "0.5415136", "0.53656006", "0.53258526", "0.5294927", "0.52704793", "0.5236423", "0.5227336", "0.5224411", "0.52136...
0.0
-1
[0] = lat [1] = lon
function getDistance2pts($coord1, $coord2){ $r = 6366; $coord1[0] = deg2rad($coord1[0]); $coord1[1] = deg2rad($coord1[1]); $coord2[0] = deg2rad($coord2[0]); $coord2[1] = deg2rad($coord2[1]); $ds= acos(sin($coord1[0])*sin($coord2[0])+cos($coord1[0])*cos($coord2[0])*cos($coord1[1]-$coord2[1])); $dpr = $ds * $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function make_position( $lat, $lon )\n\t{\n\t\t$latdms = geo_param::make_minsec( $lat );\n\t\t$londms = geo_param::make_minsec( $lon );\n\t\t$outlat = intval(abs($latdms['deg'])) . \"&deg;&nbsp;\";\n\t\t$outlon = intval(abs($londms['deg'])) . \"&deg;&nbsp;\";\n\t\tif ($latdms['min'] != 0 or $londms['min'] != 0\n\t...
[ "0.64775723", "0.62478435", "0.6243719", "0.6192542", "0.6093774", "0.6090684", "0.6062934", "0.60463214", "0.6027536", "0.60140973", "0.59980077", "0.5987131", "0.598292", "0.59468174", "0.59453714", "0.59408784", "0.59397376", "0.5855697", "0.5816762", "0.58161503", "0.5789...
0.0
-1
Recupere la liste des themes valides dans le dossier
function getThemes(){ $result = array(); $handle = @opendir(ROOT_PATH . 'themes'); while (false !== ($f = readdir($handle))){ if ($f != "." && $f != ".." && $f != "CVS" && $f != "index.html" && !preg_match("`[.]`", $f)){ if( is_file(ROOT_PATH . 'themes' . DS . $f . DS . 'layout.tpl') ){ $result[] = $f; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_all_themes() {\r\n\t$themesPath = config(\"themes_dir\");\r\n\t$handle = opendir($themesPath);\r\n\t$themes = array();\r\n\twhile($folder = readdir($handle)) {\r\n\t\tif(substr($folder, 0, 1) != '.' and !preg_match(\"#\\.#\", $folder)) {\r\n\t\t\t$themes[$folder] = array();\r\n\t\t\t$theThemePath = $t...
[ "0.76157576", "0.7605128", "0.74128324", "0.7378275", "0.7374769", "0.73690134", "0.73346126", "0.7320223", "0.73143464", "0.72204834", "0.7198906", "0.7191098", "0.7150453", "0.7113567", "0.710315", "0.7091838", "0.7044176", "0.70166206", "0.70057607", "0.69694394", "0.69355...
0.6957138
20
Used to upgrade (rehash) the user's password automatically over time.
public function upgradePassword(UserInterface $user, string $newEncodedPassword): void { if (!$user instanceof User) { throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user))); } $user->setPassword($newEncodedPassword); $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_password()\n {\n }", "protected function changePassword() {}", "public function userPasswordUpdate() {\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n ...
[ "0.7278217", "0.7246388", "0.69614935", "0.6897919", "0.6891629", "0.68579644", "0.6855735", "0.6842724", "0.67941433", "0.6786965", "0.6777229", "0.67630225", "0.6754547", "0.67416", "0.6730419", "0.6711457", "0.6703955", "0.6691833", "0.66854537", "0.66777736", "0.66593385"...
0.0
-1
This isn't likely to stay the standard constructor, so we name it explicitly as a static function below
private function __construct($testInfo, &$pageData, $run, $cached) { $this->testInfo = $testInfo; $this->pageData = &$pageData; $this->run = intval($run); $this->cached = $cached ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final function __construct() {}", "final private function __construct() {}", "final private function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "protected final function __construct() {}"...
[ "0.82948166", "0.8243305", "0.8243305", "0.80123836", "0.80123836", "0.80123836", "0.7935023", "0.7874876", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918", "0.7873918",...
0.0
-1
Creates a TestResult instance from a pageResults array with all data about a run
public static function fromPageData($testInfo, &$pageData, $run, $cached) { return new self($testInfo, $pageData, $run, $cached); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run(&$results)\n {\n\n // BEGIN TEST\n $actual = \\Flexio\\Base\\Util::createPageRangeArray(\"\", 10);\n $expected = [];\n \\Flexio\\Tests\\Check::assertArray('A.1', '\\Flexio\\Base\\Util::createPageRangeArray(); invalid page input', $actual, $expected, $results);\n\...
[ "0.6327416", "0.61759984", "0.5825629", "0.5790857", "0.5728053", "0.5587384", "0.5505301", "0.5503491", "0.5499321", "0.54755384", "0.54367226", "0.5362593", "0.5329621", "0.5275675", "0.5274842", "0.52707654", "0.5251376", "0.517306", "0.5161618", "0.5160865", "0.51490915",...
0.504008
32
TODO: move implementation to this method
public function getVisualProgress() { return GetVisualProgress($this->testInfo->getRootDirectory(), $this->run, $this->cached ? 1 : 0, null, null, $this->getStartOffset()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "final private function __construct() {}", "final private function __construct() {}", "protected final function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "p...
[ "0.5734393", "0.55682063", "0.55682063", "0.5503339", "0.5485193", "0.5485193", "0.5485193", "0.5449028", "0.5449028", "0.54487437", "0.54264367", "0.540743", "0.5393745", "0.5393745", "0.5393745", "0.5393745", "0.5375642", "0.5375642", "0.5375642", "0.5375642", "0.5375642", ...
0.0
-1
TODO: move implementation to this method
public function getRequests() { $secure = false; $haveLocations = false; return getRequests($this->testInfo->getId(), $this->testInfo->getRootDirectory(), $this->run, $this->cached ? 1 : 0, $secure, $haveLocations, false, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "final private function __construct() {}", "final private function __construct() {}", "protected final function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "p...
[ "0.5734393", "0.55682063", "0.55682063", "0.5503339", "0.5485193", "0.5485193", "0.5485193", "0.5449028", "0.5449028", "0.54487437", "0.54264367", "0.540743", "0.5393745", "0.5393745", "0.5393745", "0.5393745", "0.5375642", "0.5375642", "0.5375642", "0.5375642", "0.5375642", ...
0.0
-1
TODO: move implementation to this method
public function getDomainBreakdown() { $requests = null; return getDomainBreakdown($this->testInfo->getId(), $this->testInfo->getRootDirectory(), $this->run, $this->cached ? 1 : 0, $requests); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "final private function __construct() {}", "final private function __construct() {}", "protected final function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "p...
[ "0.5734393", "0.55682063", "0.55682063", "0.5503339", "0.5485193", "0.5485193", "0.5485193", "0.5449028", "0.5449028", "0.54487437", "0.54264367", "0.540743", "0.5393745", "0.5393745", "0.5393745", "0.5393745", "0.5375642", "0.5375642", "0.5375642", "0.5375642", "0.5375642", ...
0.0
-1
TODO: move implementation to this method
public function getMimeTypeBreakdown() { $requests = null; return getBreakdown($this->testInfo->getId(), $this->testInfo->getRootDirectory(), $this->run, $this->cached ? 1 : 0, $requests); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "final private function __construct() {}", "final private function __construct() {}", "protected final function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "p...
[ "0.5734393", "0.55682063", "0.55682063", "0.5503339", "0.5485193", "0.5485193", "0.5485193", "0.5449028", "0.5449028", "0.54487437", "0.54264367", "0.540743", "0.5393745", "0.5393745", "0.5393745", "0.5393745", "0.5375642", "0.5375642", "0.5375642", "0.5375642", "0.5375642", ...
0.0
-1
Inserta a la taula
function insert() { $coche = new coches_model(); if (isset($_POST['insert'])) { $coche->setMarca ($_POST['marca']); $coche->setModelo ($_POST['modelo']); $coche->setFabricado ($_POST['fabricado']); $error = $coche->insertar(); if (!$error) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($tienda);", "abstract public function insert();", "public static function insert()\n {\n }", "function insertar($bd);", "public function insert($turmaDisciplina);", "public function insert() {\n \n }", "public function insert($perifericos);", "public function in...
[ "0.73580956", "0.6940087", "0.6884838", "0.6882144", "0.68577224", "0.6841094", "0.68328875", "0.68071985", "0.67966086", "0.6765925", "0.67630124", "0.6744094", "0.67049754", "0.6678639", "0.6649578", "0.6647999", "0.6647501", "0.659197", "0.6587217", "0.65766126", "0.657251...
0.0
-1
Elimina una fila de la taula
function delete() { if (isset($_GET['id'])) { $coche=new coches_model(); $id = $_GET['id']; $error = $coche->delete($id); if (!$error) { header( "Location: index.php?controller=coches&action=listado"); } else { echo $error; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarImagenSusQ($campo, $tabla, $idAsignacion)\n {\n $data=$this->analisisRiesgo->getNombreImagen($campo, $tabla, $idAsignacion);\n //Delete el nombre de la imagen de la base de datos\n $borrar=Array($campo => null);\n $this->analisisRiesgo->deleteImagen($borrar, $tabla, ...
[ "0.6244859", "0.61213934", "0.598869", "0.59085435", "0.5887818", "0.5803714", "0.57160234", "0.5656695", "0.56497943", "0.5624057", "0.56140876", "0.56051713", "0.55929357", "0.559276", "0.55890304", "0.5571644", "0.5555447", "0.55453396", "0.5542167", "0.55356807", "0.55191...
0.0
-1
Mostra els cotxes ordenats per marca
function ordmarca() { $coche=new coches_model(); //Uso metodo del modelo de coches $datos=$coche->ordmarca(); $titulo = "Listado de Coches ordenado"; //Cargar vista $this->view("coches_listado.phtml",array( "datos" => $datos, "Listado de Personas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function armaColeccionObligatorios() {\n $dao = new PGDAO();\n $result = array();\n $where = $this->strZpTprop();\n if ($where != '') {\n $colec = $this->leeDBArray($dao->execSql($this->COLECCIONZPCARACOBLIG . \" and tipoprop in (\" . $where . \")\"));\n } el...
[ "0.67039967", "0.6294754", "0.61812663", "0.5928388", "0.58239144", "0.5762358", "0.5701234", "0.56961536", "0.5670446", "0.5667803", "0.56558764", "0.5645068", "0.56385785", "0.56296915", "0.5628131", "0.5603426", "0.55878574", "0.5580825", "0.55696565", "0.556276", "0.55334...
0.0
-1
add each button here and on js page
function gwtb_register_buttons_editor($buttons) { array_push($buttons, "gwtb_button"); return $buttons; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function generateButtons() {}", "public function addsButtons() {}", "private function loadButtons()\n {\n $objAdd = $this->addButtonNew(_FEST);\n $objAdd->setInline();\n }", "function listButtons() {\n\t}", "protected function bind_action_buttons() {\n\t\t\t?>\n\t\t\t<script t...
[ "0.6805727", "0.6791367", "0.67140615", "0.6464968", "0.62158346", "0.6203956", "0.61998427", "0.61457044", "0.6142951", "0.61039", "0.61014557", "0.60954785", "0.6071498", "0.6068626", "0.6068626", "0.6068626", "0.6068626", "0.60683286", "0.60683286", "0.60683286", "0.606832...
0.0
-1
Display a listing of the resource.
public function __construct() { $this->middleware('adminakses'); }
{ "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() { $jk =['1'=>'Laki-laki','2'=>'Perempuan']; $userAvailable = User::where('role','guru')->doesntHave('guru')->get(); $agama = [1=>"Islam",2=>"Protestan",3=>"Katolik",4=>"Himdu", 5=>"Budha"]; $listUserAvailable = $userAvailable->pluck('username','id'); ...
{ "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(FormGuruRequest $request) { //return dd($request); $guru = new Guru(); $guru->nip = $request->nip; $guru->nama = $request->nama; $guru->tempat_lahir = $request->tempat_lahir; $guru->tgl_lahir = $request->tgl_lahir; $guru->agama = $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) { $guru = Guru::find($id)->load('user'); $jk = [1=>"Laki-laki",2=>"Perempuan"]; $agama = [1=>"Islam",2=>"Protestan",3=>"Katolik",4=>"Himdu", 5=>"Budha"]; return view('admin.guru.detailguru',compact('guru','jk','agama')); }
{ "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) { $guru = Guru::find($id); $jk =['1'=>'Laki-laki','2'=>'Perempuan']; $userAvailable = User::where('role','guru')->doesntHave('guru')->get(); $agama = [1=>"Islam",2=>"Protestan",3=>"Katolik",4=>"Himdu", 5=>"Budha"]; $listUserAvailable = $userAvailable...
{ "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(FormEditGuruRequest $request, $id) { $guru = Guru::find($id); $guru->nip = $request->nip; $guru->nama = $request->nama; $guru->jenis_kelamin = $request->jenis_kelamin; $guru->tempat_lahir = $request->tempat_lahir; $guru->tgl_lahir = $request->tg...
{ "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
Get the validation rules that apply to the request.
public function rules() { return [ 'name' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'email' => 'required|email', 'company_name' => 'nullable|string|min:2|max:255', 'company_job_title' => 'nullable|string|min...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Display a listing of the resource.
public function index() { $data = []; $data['cat'] = Careercat::all(); $data['job'] = Career::all(); $data['careerhead'] = Careerhead::find(1); return view('Backend.career.career',compact('data')); }
{ "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) { $career = new Career(); $career->title = $request->title; $career->company = $request->company; $career->experience = $request->experience; $career->vacancy = $request->vacancy; $career->education = $request->education...
{ "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) { // }
{ "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 $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
Display a listing of the resource.
public function index() { $categories = Category::/*select('id', 'root', 'name','slug')->*/where('root', 0)->get(); return view('backend.category.manage', compact('categories')); }
{ "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.ss
public function create() { $categories = Category::where('root', 0)->get(); return view('backend.category.create', compact('categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajou...
[ "0.73566353", "0.72992593", "0.7295698", "0.72891635", "0.71331674", "0.70913637", "0.7002496", "0.69729227", "0.6958176", "0.69219977", "0.68908817", "0.68908817", "0.68682015", "0.68479043", "0.6788473", "0.6784795", "0.6781398", "0.6754327", "0.67493963", "0.67361504", "0....
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $request->validate([ 'root' => 'required', 'name' => 'required|min:2|max:50|unique:categories', 'status' => 'required' ]); try { Category::create([ 'root' ...
{ "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) { $cat = Category::find($id); $categories = Category::where('root', 0)->get(); return view('backend.category.edit', compact('cat', 'categories')); }
{ "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 $request, $id) { $category = Category::find($id); $request->validate([ 'root' => 'required', 'name' => 'required|min:2|max:50|unique:categories,id,'.$id, 'status' => 'required' ]); try { ...
{ "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) { $cat = Category::where('root', $id)->get(); if (!count($cat)) { $category = Category::find($id); $category->delete(); setMessage('success', 'Yeh! A Category Has Been Successfully Deleted'); } else { setMessage(...
{ "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
Fonction qui ajoute une biographie
function addBio($bio, $db) { $query = $db->prepare("INSERT INTO Bio (Titre, Description) VALUES (?)"); $query->execute([$bio["Titre"], $bio["Description"]]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setBio($newBio){\n $this->bio = $newBio;\n }", "public function biography();", "public function add_information() \r\n {}", "public function add_information() \r\n {}", "function bio () {\n if (empty($this->bio_bio)) {\n if ( $this->page[\"Bio\"] == \"\" )...
[ "0.64594334", "0.5830039", "0.5721712", "0.5721712", "0.5541129", "0.55054057", "0.53822917", "0.52820754", "0.50951916", "0.50745076", "0.5067793", "0.50589174", "0.504512", "0.5044792", "0.5043552", "0.49954015", "0.49895394", "0.4983016", "0.49745274", "0.49745274", "0.494...
0.5992736
1
Fonction qui supprime une biographie
function deleteBio($id, $db) { $query = $db->prepare("DELETE FROM Bio WHERE ID_Bio = ?"); $query->execute([$id]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function biography();", "public function biographies() {\n\t\treturn $this->hasMany('App\\Biography');\n\t}", "function setBio($newBio){\n $this->bio = $newBio;\n }", "function bio () {\n if (empty($this->bio_bio)) {\n if ( $this->page[\"Bio\"] == \"\" ) $this->openpage (\"Bio\",\"pers...
[ "0.6617331", "0.5730785", "0.5728409", "0.5557957", "0.5525496", "0.54902905", "0.54855824", "0.5432753", "0.5420018", "0.53815264", "0.5299102", "0.5286776", "0.5284605", "0.5273999", "0.52690506", "0.52690405", "0.5262935", "0.52616805", "0.52616805", "0.52007574", "0.51914...
0.0
-1
Fonction qui modifie une biographie
function updateBio($bio, $db) { $req = $db->prepare("UPDATE Bio SET Titre = :Titre, Description = :Description WHERE ID_Bio = :ID_Bio"); $req->execute([ "Titre" => $bio['Titre'], "Description" => $bio['Description'], "ID_Bio" => $bio['ID_Bio'] ]); return $req; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setBio($newBio){\n $this->bio = $newBio;\n }", "public function biography();", "function bio () {\n if (empty($this->bio_bio)) {\n if ( $this->page[\"Bio\"] == \"\" ) $this->openpage (\"Bio\",\"person\");\n if ( $this->page[\"Bio\"] == \"cannot open page\" ) return array(); // no s...
[ "0.6360002", "0.6331177", "0.5881117", "0.5654905", "0.5587361", "0.54057914", "0.53914154", "0.53914154", "0.52967423", "0.5268672", "0.5268672", "0.52517444", "0.52434754", "0.52027476", "0.5201933", "0.51544875", "0.5101431", "0.5097522", "0.5077049", "0.5003239", "0.49801...
0.0
-1
Display a listing of the resource.
public function index() { $orders = Order::all()->sortBy('updated_at'); return view('admin.orders.index', compact('orders')); }
{ "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
Store a newly created resource in storage.
public function store(OrderStoreRequest $request) { $order = new Order(); $order->fill($request->all()); $order->products_json = $order->convertProductsJsonToOrder($request->products_json); $order->status = 'not paid'; $intent = $order->stripePay(); $order->payment =...
{ "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(Order $order) { $settings = Setting::where('title','currency') ->get() ->pluck('value', 'title'); $products = json_decode($order->products_json, true); return view('admin.orders.show', compact('order', 'products', 'settings')); }
{ "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
Remove the specified resource from storage.
public function destroy(Order $order) { $order->delete(); return redirect(route('orders.index')); }
{ "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
TODO: Implement init() method.
public function __construct($level = ILog::DEBUG, $config = []) { if(!in_array($level,ILog::LEVEL_ARR)) throw new ConfigException("$level not exists."); self::$_level = $level; self::$_config = array_merge(self::$_config,$config); self::$_file = self::$_config['dir']."...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "public function __init(){}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}",...
[ "0.9006209", "0.878049", "0.85603", "0.85603", "0.85603", "0.85603", "0.85603", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613", "0.8559613",...
0.0
-1
TODO: Implement write() method.
public function write($message) { if(!self::$_file_handle) $this->_init(); fwrite(self::$_file_handle, "[".self::$_level."]".$message."\n"); fclose(self::$_file_handle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function write();", "public function write();", "public function write();", "protected function _write() {}", "abstract protected function _write();", "public function write()\n {\n }", "function write()\n {\n }", "abstract public function write( $value );", "abstract...
[ "0.8649433", "0.8646907", "0.8646907", "0.8606725", "0.85408694", "0.80885327", "0.7593132", "0.7505934", "0.73740256", "0.7090101", "0.70632946", "0.7020453", "0.7020453", "0.7017237", "0.7017237", "0.7017237", "0.7000216", "0.6960262", "0.69449866", "0.6883285", "0.68110317...
0.0
-1
Note, this technically doesn't make sense but it's supported
public function test_getElementsById_should_return_matching_element() { $doc = '<html><p id="a"></p><p id="a"></p></html>'; $this->html->load($doc); $this->assertCount(2, $this->html->getElementsById('a')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "final private function __construct() {}", "final private function __construct() {}", "private function _i() {\n }", "private final function __construct() {}", "protected final function __construct() {}", "final private function __construct() { }", "final private ...
[ "0.54816073", "0.54265535", "0.54265535", "0.5389141", "0.5364506", "0.5312436", "0.52837914", "0.52837914", "0.52837914", "0.5247974", "0.52471226", "0.52471226", "0.52471226", "0.52471226", "0.52471226", "0.52471226", "0.52471226", "0.52471226", "0.52471226", "0.52471226", ...
0.0
-1
Amenities that belong to the property.
public function amenities() { return $this->belongsToMany('App\Models\Properties\Amenity'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function amenities()\n {\n return $this->belongsToMany(\n 'App\\Amenity', 'listing_amenities', 'listing_id', 'amenity_id'\n )->select(['id', 'title', 'icon']);\n }", "public function abilities()\n {\n return $this->belongsToMany(config('rinvex.fort.models.ability')...
[ "0.68743193", "0.5743877", "0.57319707", "0.5686096", "0.56854695", "0.5666088", "0.55952317", "0.5592784", "0.55508274", "0.5509109", "0.5484758", "0.5481894", "0.54407275", "0.54223764", "0.5367487", "0.53596133", "0.5349716", "0.5349716", "0.53317046", "0.5321251", "0.5315...
0.7736862
0
Utilities that belong to the property.
public function utilities() { return $this->belongsToMany('App\Models\Properties\Utility'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function properties();", "protected function getPropertyValue() {}", "function properties()\n {\n }", "abstract protected function get_properties();", "function _getProperties() ;", "abstract protected function getProperties();", "public function properties() { }", "p...
[ "0.70698804", "0.68451375", "0.6550483", "0.6547372", "0.63997716", "0.6310483", "0.62984264", "0.6080563", "0.6046093", "0.6044191", "0.6031563", "0.59869015", "0.5980095", "0.5947342", "0.5904871", "0.58989125", "0.5875703", "0.5853254", "0.58530176", "0.58528626", "0.58528...
0.0
-1
The type of property assigned.
public function type() { return $this->belongsTo('App\Models\Properties\Type'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_type()\n {\n return $this->get_default_property(self::PROPERTY_TYPE);\n }", "public function getType()\n {\n return $this->getProperty('type');\n }", "public function getType()\n {\n if (array_key_exists(\"type\", $this->_propDict)) {\n return ...
[ "0.7633802", "0.7095881", "0.70240945", "0.70240945", "0.66273123", "0.6594828", "0.65924567", "0.658126", "0.65543383", "0.65524626", "0.65408033", "0.6536106", "0.6535337", "0.65296245", "0.65188825", "0.65168726", "0.6481294", "0.6476667", "0.64649117", "0.6455731", "0.645...
0.0
-1
Images that belong to the property.
public function images() { return $this->HasMany('App\Models\Properties\Image')->orderBy('index', 'asc'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function images()\n {\n // Fetch all properties existing in the database\n $image = Image::all();\n\n // return list of properties;\n return $image;\n\n }", "public function images()\n {\n return $this->hasMany(PropertyImage::class,'property_id', 'id');\n }", "publ...
[ "0.7753699", "0.75020224", "0.69913745", "0.6940031", "0.6886569", "0.6886569", "0.6886569", "0.6886569", "0.6886569", "0.6886569", "0.68759936", "0.6831611", "0.68004197", "0.67716444", "0.6758385", "0.67130274", "0.66632813", "0.6661409", "0.6629661", "0.6628034", "0.662092...
0.7259165
2
Always unserialize coordinates attribute on retrieval.
public function getCoordinatesAttribute($coordinates) { return $coordinates != null ? unserialize($coordinates) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCoordinatesAttribute($coordinates)\n {\n $this->attributes['coordinates'] = serialize($coordinates);\n }", "public function serialize() {\n return array( \n 'lat' => $this->getLat(),\n 'lon' => $this->getLong()\n );\n }", "public function g...
[ "0.6557048", "0.5719965", "0.56663734", "0.56413805", "0.5551172", "0.55447596", "0.54303646", "0.5401764", "0.5382625", "0.5366854", "0.52941746", "0.5281055", "0.5281055", "0.5247889", "0.52467364", "0.5232397", "0.51980674", "0.5187305", "0.51868856", "0.5182701", "0.51769...
0.7251681
0
Always serialize coordinates attribute on storage.
public function setCoordinatesAttribute($coordinates) { $this->attributes['coordinates'] = serialize($coordinates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCoordinatesAttribute($coordinates)\n {\n return $coordinates != null ? unserialize($coordinates) : null;\n }", "public function serialize() {\n return array( \n 'lat' => $this->getLat(),\n 'lon' => $this->getLong()\n );\n }", "public functi...
[ "0.66904724", "0.6220539", "0.60584307", "0.5855384", "0.57794446", "0.5700593", "0.5584386", "0.5556558", "0.53686976", "0.53552014", "0.5322808", "0.5302561", "0.52963424", "0.52659845", "0.52596784", "0.5255756", "0.52545744", "0.52545744", "0.52489614", "0.52389276", "0.5...
0.69275486
0
Add property type value to query.
public function scopeWithType($query) { return $query->join('types', 'types.id', '=', 'properties.type_id') ->addSelect('types.name as type') ->addSelect('types.icon as type_icon'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeOfPropertyType($query, $type)\n {\n return $query->where('property_type_id', $type);\n }", "private function performTypeCasting(Collection\\Property\\Type $propertyType, &$value): void\n {\n // Additional type casting\n switch ($propertyType->getType()) {\n ...
[ "0.6099817", "0.57552767", "0.5656091", "0.554274", "0.5538237", "0.55146873", "0.5458061", "0.5362852", "0.53058255", "0.52917534", "0.5281052", "0.52542603", "0.5216672", "0.5216672", "0.5216672", "0.5216672", "0.5216672", "0.52119863", "0.5204589", "0.5187124", "0.5169798"...
0.4933097
43
Add city values to the query.
public function scopeWithCity($query) { return $query->join('cities', 'cities.id', '=', 'properties.city_id') ->addSelect('cities.name as city'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addCity($inputCity) {\n if($inputCity == '')\n return; \n $userCity = $this->cityName($inputCity); \n \n # always add Vacation qualities\n $this->perfectCity = array_merge($this->perfectCity, \n $this->cities[$userCity]['Vacation']...
[ "0.6598099", "0.6168265", "0.6144245", "0.6013897", "0.59520847", "0.5886002", "0.5808218", "0.5783881", "0.57461905", "0.56845284", "0.56721175", "0.5669777", "0.5631365", "0.5626093", "0.56158805", "0.56084245", "0.5608329", "0.55883825", "0.5551042", "0.55422324", "0.55410...
0.52126306
85
One to many relationship on the cities table.
public function city() { return $this->belongsTo('App\Models\Cities\City'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cities()\n {\n return $this->hasMany('App\\City');\n }", "public function cities()\n {\n return $this->hasMany('App\\City');\n }", "public function cities()\n\t{\n\t\treturn $this->hasMany('City');\n\t}", "public function cities(){\r\n return $this->hasMany('App\\...
[ "0.77895033", "0.77895033", "0.7664179", "0.7586", "0.7540093", "0.7405049", "0.73599833", "0.70142865", "0.6946445", "0.6938251", "0.66974854", "0.6624072", "0.66153616", "0.6605537", "0.65749604", "0.6564918", "0.6504827", "0.6482067", "0.6482067", "0.6480766", "0.64484245"...
0.6542984
16
Attach full city name to property.
public function location() { $city = $this->city; if ($city) { $subdivision = $city->subdivision; $country = $subdivision->country; $this->attributes['location'] = $city->name . ' ' . $subdivision->abbreviation . ', ' . $country->name; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function giveCity()\n {\n return \"Luanda minha CIDADE\";\n }", "public function getCityNameAttribute()\n {\n return $this->city->city;\n }", "public function getCityNameAttribute()\n {\n return $this->city->name;\n }", "protected function giveCity()\n\t{\n\t\...
[ "0.63906837", "0.6195338", "0.6177446", "0.61548555", "0.6044146", "0.5957114", "0.5931086", "0.59091157", "0.588481", "0.5863296", "0.5848821", "0.58161545", "0.5746712", "0.57146925", "0.56994116", "0.5654224", "0.5654224", "0.56534785", "0.5640592", "0.55993", "0.5580893",...
0.65257925
0
Attach ids of amenities that belong to the property.
public function amenityIds() { $this->attributes['amenityIds'] = $this->amenities->pluck('id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function amenities()\n {\n return $this->belongsToMany('App\\Models\\Properties\\Amenity');\n }", "public function amenities()\n {\n return $this->belongsToMany(\n 'App\\Amenity', 'listing_amenities', 'listing_id', 'amenity_id'\n )->select(['id', 'title', 'icon']);...
[ "0.59695023", "0.5592355", "0.5519928", "0.50788265", "0.4984267", "0.49646252", "0.49623868", "0.49561778", "0.49453518", "0.49078664", "0.48412922", "0.4839164", "0.48146242", "0.47847247", "0.4768297", "0.4761813", "0.4747934", "0.47055477", "0.46936214", "0.46753767", "0....
0.71790624
0
Attach ids of utilities that belong to the property.
public function utilityIds() { $this->attributes['utilityIds'] = $this->utilities->pluck('id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function utilities()\n {\n return $this->belongsToMany('App\\Models\\Properties\\Utility');\n }", "function set_properties_by_id () {\n\t\t$stm = DB::$pdo->prepare(\"select * from `generated_object` where `id`=:id\");\n\t\t$stm->bindParam(':id', $this->id);\n\t\t$stm->execute();\n\t\t$res = $...
[ "0.5778601", "0.5004662", "0.49143374", "0.47113052", "0.46814117", "0.46080622", "0.4601683", "0.45984155", "0.45729363", "0.45483688", "0.45133397", "0.45086017", "0.4493528", "0.44639462", "0.4408339", "0.4395268", "0.4361364", "0.43528295", "0.4346339", "0.4341085", "0.43...
0.7843064
0
One to many relationship on the users table.
public function user() { return $this->belongsTo('App\Models\Users\User'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function users() : BelongsToMany\n {\n return $this->belongsToMany(User::class);\n }", "public function users(): HasMany\n {\n return $this->hasMany(config('auth.providers.users.model'));\n }", "public function users(): BelongsToMany\n {\n return $this->belongsToMany(...
[ "0.73492706", "0.73168147", "0.728196", "0.72410446", "0.72238994", "0.72182703", "0.72066057", "0.72043824", "0.7183119", "0.7171709", "0.7146717", "0.71391946", "0.7121071", "0.71195304", "0.71195304", "0.71195304", "0.71165806", "0.71165806", "0.7114979", "0.71141523", "0....
0.0
-1
Reviews that belong to the property.
public function reviews() { return $this->HasMany('App\Models\Review'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReviews()\n {\n return $this->hasMany(Review::className(), ['CommissionID' => 'CommissionID']);\n }", "public function getReviews()\n {\n return $this->hasMany(Review::className(), ['callId' => 'callId']);\n }", "public function getReviews()\n {\n return $...
[ "0.678611", "0.6625766", "0.6580983", "0.648968", "0.64773065", "0.64627737", "0.64627737", "0.64627737", "0.64627737", "0.64627737", "0.63587517", "0.63587517", "0.63384396", "0.6316944", "0.6316581", "0.6289606", "0.6274415", "0.6258954", "0.62276095", "0.6165192", "0.61241...
0.5878795
32
Attach a total count of reviews that belong to the property.
public function reviewCount() { $this->attributes['review_count'] = $this->reviews()->selectRaw('count(*) as count')->pluck('count')[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reviewsCount()\n {\n return count($this->reviews);\n }", "private function _addReviewsCount(& $collection, $reviews_count_alias=\"sm_reviews_count\", $rating_summary_alias=\"sm_rating_summary\" ){\r\n\t\t$review_summary_table = Mage::getSingleton('core/resource')->getTableName('revie...
[ "0.6058389", "0.60511565", "0.6050394", "0.60294324", "0.59756404", "0.5807854", "0.57304347", "0.5450064", "0.5387524", "0.53737265", "0.53614694", "0.53075135", "0.5285351", "0.52675587", "0.5261194", "0.5230221", "0.52133733", "0.5199933", "0.5183468", "0.51664454", "0.515...
0.6973338
0
Attach image routes to property.
public function ImageRoutes() { $routes = []; foreach ($this->images as $image) { $routes[] = '/' . env('PROPERTY_IMAGE_DISK') . '/' . $image->filepath; } if (count($routes) == 0) { $routes[] = '/imgs/default_image.png'; } $this->image_routes ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function images()\n {\n return $this->hasMany(PropertyImage::class,'property_id', 'id');\n }", "public function add_rewrite_rule() {\n\t\t\tadd_rewrite_rule(\n\t\t\t\t'photo/([a-z0-9-_]+)/?', // ([^/]+)\n\t\t\t\t'index.php?attachment=$matches[1]',\n\t\t\t\t'top'\n\t\t\t);\n\t\t}", "public f...
[ "0.5714889", "0.5680359", "0.559291", "0.5586751", "0.54304624", "0.53598565", "0.5314433", "0.52572125", "0.51980245", "0.5182699", "0.5173096", "0.5112765", "0.5106167", "0.50788325", "0.5054979", "0.5043555", "0.50340104", "0.49982843", "0.49979964", "0.4987067", "0.498588...
0.70499086
0
Attach all necessary data to show property.
public function prepareShow() { $this->location(); $this->type; $this->amenityIds(); $this->utilityIds(); $this->reviewCount(); $this->user->location(); $this->user->profilePicture(); $this->user->reviewCount(); $this->reviews = $this->reviews(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show()\n {\n // carrega os dados no datagrid\n $this->onReload();\n //chama o metodo show da super classe\n parent::show();\n\n }", "protected function setDisplayData() {\n parent::setDisplayData();\n $this->template->setDisplayData( \"person_header\", $th...
[ "0.62103724", "0.61622417", "0.61457807", "0.6104522", "0.5991424", "0.5964789", "0.5963357", "0.59220153", "0.590709", "0.58708745", "0.58086276", "0.57778734", "0.57511103", "0.56778336", "0.5631176", "0.56188", "0.56188", "0.5602784", "0.5594011", "0.55711395", "0.5539801"...
0.6283189
0
Get the options for generating the slug.
public function getSlugOptions() : SlugOptions { return SlugOptions::create() ->generateSlugsFrom('title') ->saveSlugsTo('slug') ->doNotGenerateSlugsOnUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSlugOptions(): SlugOptions\n {\n return SlugOptions::create()->generateSlugsFrom('title')->saveSlugsTo('slug');\n }", "public function getSlugOptions() : SlugOptions\n {\n return SlugOptions::create()\n ->generateSlugsFrom('title')\n ...
[ "0.7788293", "0.7757069", "0.77118814", "0.77112377", "0.77112377", "0.7708376", "0.7708376", "0.76611114", "0.7645978", "0.76181304", "0.7614047", "0.7580652", "0.75619256", "0.75619256", "0.75546724", "0.75542575", "0.7544966", "0.75362414", "0.7533052", "0.7511007", "0.751...
0.77255535
2
Get the subdivision that belongs to the city of the property.
public function subdivision() { $city = $this->city; $this->subdivision = $city ? $city->subdivision : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_cities_origin() {\n $t_location = get_transient('wcis_location');\n return $t_location['cities'];\n }", "public function get_ville()\n {\n return $this->_ville;\n }", "public function getCity();", "public function getCity()\n {\n\n return $this->fv_city;\n ...
[ "0.6242184", "0.61974883", "0.61404765", "0.6077991", "0.6058759", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", ...
0.7613744
0
////////////////////////////////////////////////////////////////////////// REATE AN INSTANCE OF THE PUDL POSTGRESQL OBJECT //////////////////////////////////////////////////////////////////////////
public static function instance($data, $autoconnect=true) { return new pudlPgSql($data, $autoconnect); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ormObject();", "public function change()\n {\n $query = <<<'EOD'\n \ndrop FUNCTION paging_dbnamespace_column_prop_ext(text);\ndrop FUNCTION paging_dbnamespace_column_prop_ext(text,boolean);\ndrop FUNCTION paging_dbnamespace_column_prop_save(jsonb,text);\ndrop FUNCTION paging_tabl...
[ "0.5820716", "0.57878596", "0.5615562", "0.54403424", "0.5439083", "0.53703195", "0.5324208", "0.53176874", "0.5294178", "0.52876914", "0.52729756", "0.5256006", "0.52448475", "0.52423143", "0.52404803", "0.52360904", "0.52156484", "0.521515", "0.52087563", "0.5200004", "0.51...
0.0
-1
////////////////////////////////////////////////////////////////////////// CREATE A CONNECTION TO THE POSTGRESQL SERVER //////////////////////////////////////////////////////////////////////////
public function connect() { $auth = $this->auth(); $this->connection = @pg_connect( " host='" . $auth['server'] . "'" . " dbname='" . $auth['database'] . "'" . " user='" . $auth['username'] . "'" . " password='" . $auth['password'] . "'" . " connect_timeout='" . $auth['timeout'] . "'" . ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createConection(){\n\n\t\tglobal $db_host;\n\t\tglobal $db_usr;\n\t\tglobal $db_pwd;\n\t\tglobal $db_name;\n\t\tglobal $db_port;\n\n\t\treturn pg_connect('user='.$db_usr.' password='.$db_pwd.' host= '.$db_host.' dbname = '.$db_name.' port = '.$db_port);\n\t}", "private static function get_connect(){\n ...
[ "0.7810851", "0.72651434", "0.72038406", "0.71034694", "0.70919365", "0.7058086", "0.7037945", "0.7014107", "0.700387", "0.700387", "0.7002035", "0.6928738", "0.692087", "0.6908195", "0.68989146", "0.6871471", "0.6849338", "0.6846248", "0.68344164", "0.6831336", "0.682009", ...
0.7293275
1
////////////////////////////////////////////////////////////////////////// DISCONNECT FROM THE POSTGRESQL SERVER //////////////////////////////////////////////////////////////////////////
public function disconnect($trigger=true) { parent::disconnect($trigger); if (!$this->connection) return; pg_close($this->connection); $this->connection = NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _disconnect()\n {\n //\tDisconnect\n $this->_db->conn = null;\n $this->_db->clear();\n }", "protected function connectionDestruct()\t{}", "function db_disconnect()\n\t{\n\t\tpg_close($this->db_connection);\n\t}", "function disconnect(){\n\t\t$this->dbconn = null;\n...
[ "0.7102594", "0.6873625", "0.68614197", "0.68189", "0.6792601", "0.679082", "0.67660564", "0.67453796", "0.6735111", "0.67269146", "0.66798973", "0.66341996", "0.661089", "0.6593521", "0.65505385", "0.65417963", "0.6538087", "0.6517042", "0.65163743", "0.6486428", "0.6477521"...
0.0
-1
////////////////////////////////////////////////////////////////////////// ESCAPE AN IDENTIFIER //////////////////////////////////////////////////////////////////////////
public function identifier($identifier) { return ($this->connection) ? pg_escape_identifier($this->connection, $identifier) : pg_escape_identifier($identifier); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function escapeIdentifier($identifier){ }", "public abstract function escapeIdentifier($identifier);", "public function escapeIdentifier(string $value): string;", "public function quoteIdentifier($text);", "private function identifier()\n {\n // @codingStandardsIgnoreStart\n // Be c...
[ "0.72648704", "0.7113705", "0.69174135", "0.6501883", "0.6214111", "0.6102529", "0.5949056", "0.5721624", "0.56880367", "0.56687605", "0.56043524", "0.55257374", "0.5515918", "0.5494277", "0.54863787", "0.5481762", "0.54633504", "0.5446142", "0.54418564", "0.5431599", "0.5377...
0.0
-1
////////////////////////////////////////////////////////////////////////// ESCAPE A VALUE //////////////////////////////////////////////////////////////////////////
public function escape($value) { return ($this->connection) ? pg_escape_string($this->connection, $value) : pg_escape_string($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function escape($value) {}", "public function escape($value);", "public function escape($value);", "function esc($value)\n{\n return htmlentities($value);\n}", "protected function escape( $value )\n\t{\n\t\treturn e( $value );\n\t}", "public static function unescape($value) {}", "publi...
[ "0.72136223", "0.7184456", "0.7184456", "0.71226746", "0.685848", "0.65973955", "0.65824187", "0.65488416", "0.65473926", "0.6524048", "0.6352376", "0.6315807", "0.6272874", "0.6272874", "0.6214695", "0.61863494", "0.6180453", "0.61568373", "0.6143299", "0.6111721", "0.610916...
0.0
-1