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
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
Run the database seeds.
public function run() { $vader = DB::table('users')->insert([ 'username' => 'doctorv', 'email' => 'darthv@deathstar.com', 'password' => Hash::make('thedarkside'), 'first_name' => 'Darth', 'last_name' => 'Vader', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('users')->insert([ 'username' => 'goodsidesoldier', 'email' => 'lightwalker@rebels.com', 'password' => Hash::make('hesnotmydad'), 'first_name' => 'Luke', 'last_name' => 'Skywalker', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('users')->insert([ 'username' => 'greendemon', 'email' => 'dancingsmallman@rebels.com', 'password' => Hash::make('yodaIam'), 'first_name' => 'Yoda', 'last_name' => 'Unknown', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); }
{ "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
Return all employees as array so it is easier to display
public function findAllEmployeesAsArray() { return $this->createQueryBuilder('e') ->getQuery() ->getArrayResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function DisplayAll() {\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM employees \";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees[] = new Employee($row['Code']);\n\t\t\t}\n...
[ "0.8228653", "0.80621135", "0.8024984", "0.7933382", "0.7841179", "0.76505196", "0.76271236", "0.76209944", "0.75582683", "0.7542565", "0.7517745", "0.7419917", "0.7401478", "0.7297051", "0.725388", "0.7250832", "0.72376794", "0.72340286", "0.7232349", "0.7227829", "0.7224706...
0.8335281
0
Allows the class to be serialized with var_export (in the cache).
public static function __set_state($array) { return new self( $array['id'], $array['name'], $array['value'], $array['logo'], $array['logoLink'], $array['logoTooltip'], $array['valueSuffix'] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public abstract function se...
[ "0.6099293", "0.6099293", "0.6099293", "0.6099293", "0.6099293", "0.6099293", "0.6098045", "0.6098045", "0.5891127", "0.58855647", "0.5834022", "0.5834022", "0.5834022", "0.58309555", "0.5828057", "0.5828057", "0.5815728", "0.5685811", "0.5639621", "0.5639621", "0.56320596", ...
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(User $user) { // }
{ "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(User $user) { // }
{ "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, User $user) { // }
{ "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(User $user) { // }
{ "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 data by key.
public function getData(mixed $key = null) { if (!$key) { return (array) $this ?? []; } if (!isset($this->{$key})) { return null; } return $this->{$key}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getData($key);", "public function getData($key = null);", "public function get_data($key = '')\n\t{\n\t\tif($key)\n\t\t{\n\t\t\treturn $this->_data[$key];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->get_all_data();\n\t\t}\n\t}", "private function get($key)\n {\n return $this->data[...
[ "0.8787343", "0.83307153", "0.8127635", "0.8123139", "0.8041257", "0.79232097", "0.78443074", "0.7824801", "0.7796875", "0.77871007", "0.77467", "0.77376384", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", "0.7717838", ...
0.0
-1
Set data by key.
public function setData(string $key, mixed $value) { $this->{$key} = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($key, $data);", "public function set(string $key, $data);", "public function setData($data, $key = null);", "public function setDataByKey($key, $data)\n {\n $data = $this->hydrateIfJsonToArray($data);\n $this->data[$key] = $data;\n }", "public function set_data($key,...
[ "0.8585299", "0.8534769", "0.82256514", "0.81578314", "0.8072442", "0.8067496", "0.78681254", "0.78681254", "0.76917356", "0.75044817", "0.7485805", "0.7485449", "0.746926", "0.74497396", "0.7383421", "0.7383421", "0.7349877", "0.73400205", "0.7315959", "0.7306042", "0.729644...
0.0
-1
Clears DataObject from relations.
public function clearRelations(): DataObject { foreach ($this::RELATIONS as $relationKey => $relation) { unset($this->{$relationKey}); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Cle...
[ "0.72300476", "0.6901824", "0.68786913", "0.67584693", "0.67107135", "0.66384166", "0.6590225", "0.63975847", "0.6323429", "0.63040864", "0.6236526", "0.62162757", "0.6215434", "0.6214214", "0.6212965", "0.6196552", "0.6186993", "0.618044", "0.61779267", "0.6172707", "0.61717...
0.81464666
0
Returns an instance of this class.
public static function getInstance() { return Doctrine_Core::getTable('Domain'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function instance() {\n\t\treturn new self;\n\t}", "public function getInstance()\n {\n return $this;\n }", "public function instance() {\n\t\n\t\treturn $this;\n\t\n\t}", "public function getInstance(): self\n {\n return $this;\n }", "public static function getInsta...
[ "0.8422614", "0.8295301", "0.8285811", "0.81871045", "0.8143881", "0.8063351", "0.8063351", "0.8055489", "0.7950293", "0.793865", "0.7891774", "0.7880838", "0.7830038", "0.7828412", "0.7828412", "0.7828412", "0.7828412", "0.7828412", "0.7828412", "0.7825756", "0.780587", "0...
0.0
-1
Checks to see if the url in question (full url) has been white / blacklistsed
public function hasStatus($url, $status) { $parsed_url = parse_url($url); return ( $this->getQueryObject() ->select('id') ->from("Domain") ->where('hostname = ?', $parsed_url['host']) ->addWhere("domain_status = ?", $status) ->count() > 0) ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isWhitelisted( $url ) {\n global $whitelistregex;\n foreach( $whitelistregex as $wregex ) if( preg_match($wregex, $url) ) return true;\n return false;\n}", "function checkWhiteList($url = '')\n{\n global $modSettings;\n\n $whitelist = array_map('trim', explode(\"\\n\", $modSettings['redir...
[ "0.73673946", "0.724391", "0.7233416", "0.6958364", "0.68670064", "0.68289775", "0.6731448", "0.6653716", "0.6619557", "0.6619557", "0.66148746", "0.6608692", "0.6559239", "0.6550086", "0.6537593", "0.6529489", "0.65250295", "0.6500197", "0.64802873", "0.6477464", "0.6473724"...
0.0
-1
update + user diamond
function UPDATE_daimond_receiver($fb_id , $add_diamond) { include("config.php"); $UPDATE_daimond_receiver="update users set total_diamondd=total_diamondd+".$add_diamond." WHERE fb_id=".$fb_id; $res=mysqli_query($conn,$UPDATE_daimond_receiver); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateUser()\n {\n }", "public function testUpdateNetworkMerakiAuthUser()\n {\n }", "public function update():void\n {\n $id = $this->id;\n $first_name = $this->first_name;\n $last_name = $this->last_name;\n $image = $this->image;\n $user_ty...
[ "0.67736745", "0.64263725", "0.6308564", "0.630006", "0.6297729", "0.6277899", "0.6271029", "0.6260351", "0.6236814", "0.62189126", "0.61961114", "0.60983247", "0.60963875", "0.6093775", "0.6093451", "0.60708183", "0.6064547", "0.6049537", "0.60474795", "0.60061646", "0.59984...
0.5887424
34
user silver coin start
function get_user_silvercoin_byfb_id($fb_id) { include("config.php"); $qrry_get='SELECT total_silver_coin FROM `users` WHERE fb_id='.$fb_id; $total_silver_coin_data= mysqli_fetch_assoc(mysqli_query($conn,$qrry_get))['total_silver_coin']; return $total_silver_coin_data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start()\n\t{\n\t\t$this->score = 0;\n\t\t$this->won = false;\n\t\t$this->over = false;\n\t}", "function beginRound() {\n\n\t\t$this->console_text('Begin Round');\n\t\t$this->releaseEvent('onBeginRound', null);\n\t}", "function start();", "function start();", "public function activate()\n\t{\n\t\te...
[ "0.60577404", "0.5989449", "0.5845048", "0.5845048", "0.58261997", "0.5817401", "0.5799835", "0.5754831", "0.56363153", "0.5592621", "0.55919415", "0.5581299", "0.5574793", "0.5557161", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.55269545", "0.552...
0.0
-1
user silver coin close
function get_user_total_send_diamond($fb_id) { //remain task include("config.php"); $total_send_diamond="0"; //ubh_fb_id!=1 and $qrry_get='SELECT sum(ubh_gift_total_diamond) as total_send_diamond FROM `user_baggage_history` WHERE ubh_sender_fb_id='.$fb_id; $Data= mysqli_fetch_assoc(mysqli_query($conn,$qrry_get)); if($Data['total_send_diamond']){ $total_send_diamond=$Data['total_send_diamond']; } return $total_send_diamond; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Take_Gold($amount = 0) {\r\n\t\tglobal $character, $gameinstance;\r\n\t\tif(isset($amount) && is_numeric($amount) && $amount >= 0 && $amount <= $character['gold']) \r\n\t\t{\r\n\t\t\tdbn(__FILE__,__LINE__,\"update ${gameinstance}_characters set gold = gold - '$amount' where login_id = '$character[login_id...
[ "0.58076376", "0.5723389", "0.5723389", "0.569433", "0.5576624", "0.557301", "0.5457062", "0.5402846", "0.53809005", "0.53490853", "0.5333448", "0.53211117", "0.53026134", "0.52726454", "0.5264182", "0.5254209", "0.5243695", "0.5241722", "0.52211964", "0.52005786", "0.5190002...
0.0
-1
24_12_2020 21_12_2020 beans start
function exchange_diamond_to_beans_list() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $fb_id=$event_json['fb_id']; //$fb_id=$event_json['fb_id']; $qrry_get=" SELECT * FROM `exchange_diamond_to_beans` where edtb_status='Active' "; $res=mysqli_query($conn,$qrry_get); $daily_task_data_list=mysqli_fetch_all($res, MYSQLI_ASSOC); $custom_array=array(); foreach ($daily_task_data_list as $value) { # code... array_push($custom_array,$value); } if($custom_array){ $msg_out="Get exchange diamond to beans List"; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $custom_array); }else{ $msg_out="No Any Data Found In exchange diamond to beans"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function...
[ "0.6160046", "0.6105255", "0.6105255", "0.6104867", "0.61044973", "0.6103747", "0.6103747", "0.6103747", "0.6103747", "0.6103747", "0.6103747", "0.5967389", "0.5967389", "0.5967389", "0.58709514", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", "0.5765001", ...
0.0
-1
beans close withdrawal_request start
function create_user_withdrawal_request() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_amount']) || $event_json['uwr_amount']=="") { $msg_out="Validation Error uwr_amount Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_coin']) || $event_json['uwr_coin']=="") { $msg_out="Validation Error uwr_coin Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_payment_method']) || $event_json['uwr_payment_method']=="") { $msg_out="Validation Error uwr_payment_method Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_payment_method=$event_json['uwr_payment_method']; //'Bank Transfer' $uwr_bank_name=""; $uwr_account_type=""; $uwr_account_number=""; $uwr_ifsc=""; if($uwr_payment_method=="Bank Transfer") { if(!isset($event_json['uwr_bank_name']) || $event_json['uwr_bank_name']=="") { $msg_out="Validation Error uwr_bank_name Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_account_type']) || $event_json['uwr_account_type']=="") { $msg_out="Validation Error uwr_account_type Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_account_number']) || $event_json['uwr_account_number']=="") { $msg_out="Validation Error uwr_account_number Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_ifsc']) || $event_json['uwr_ifsc']=="") { $msg_out="Validation Error uwr_ifsc Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_bank_name=$event_json['uwr_bank_name']; $uwr_account_type=$event_json['uwr_account_type']; $uwr_account_number=$event_json['uwr_account_number']; $uwr_ifsc=$event_json['uwr_ifsc']; } //other $uwr_other =""; if($uwr_payment_method!="Bank Transfer") { if(!isset($event_json['uwr_other']) || $event_json['uwr_other']=="") { $msg_out="Validation Error uwr_other Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_other =$event_json['uwr_other']; } // if(!isset($event_json['uwr_name']) || $event_json['uwr_name']=="") { $msg_out="Validation Error uwr_name Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_contact']) || $event_json['uwr_contact']=="") { $msg_out="Validation Error uwr_contact Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['uwr_email']) || $event_json['uwr_email']=="") { $msg_out="Validation Error uwr_email Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $uwr_coin=$event_json['uwr_coin']; $uwr_amount=$event_json['uwr_amount']; $uwr_fb_id=$event_json['fb_id']; $uwr_name=$event_json['uwr_name']; $uwr_contact=$event_json['uwr_contact']; $uwr_email=$event_json['uwr_email']; $DATE_TIME=custom_current_date_time(); $qrry_get='INSERT INTO `user_withdrawal_request` (`uwr_fb_id`, `uwr_amount`, `uwr_coin`, `uwr_request_cr_date`,`uwr_bank_name`,`uwr_account_number`, `uwr_ifsc`, `uwr_account_type`, `uwr_other`, `uwr_payment_method`,`uwr_name`, `uwr_contact`, `uwr_email`) VALUES ("'.$uwr_fb_id.'","'.$uwr_amount.'","'.$uwr_coin.'","'.$DATE_TIME.'","'.$uwr_bank_name.'","'.$uwr_account_number.'","'.$uwr_ifsc.'","'.$uwr_account_type.'","'.$uwr_other.'","'.$uwr_payment_method.'","'.$uwr_name.'","'.$uwr_contact.'","'.$uwr_email.'")'; $res=mysqli_query($conn,$qrry_get)or die(mysqli_error($conn)); $lastid=mysqli_insert_id($conn); if($lastid) { $last_data =mysqli_fetch_assoc(mysqli_query($conn,"select * from user_withdrawal_request WHERE uwr_id = '$lastid' ")); //update beans $UPDATE_beans_user="update users set total_beans=total_beans-".$uwr_coin." WHERE fb_id=".$uwr_fb_id; mysqli_query($conn,$UPDATE_beans_user); $msg_out="Withdrawal Request Create Successfully"; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $last_data); }else{ $msg_out="Error In Withdrawal Request"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disposal($request);", "public function closeBooking(\\HttpRequest $objRequest, \\HttpResponse $objResponse): \\SuccessService {\r\n $objSuccessService = new \\SuccessService();\r\n $objLoginEmployee = LoginServiceImpl::instance()->checkLoginEmployee()->getEmployeeInfo();\r\n ...
[ "0.60128945", "0.5915525", "0.5848793", "0.58338434", "0.58338434", "0.58338434", "0.5831866", "0.58009416", "0.580036", "0.5782511", "0.5753405", "0.57518834", "0.56830794", "0.56599176", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0.56470925", "0....
0.0
-1
withdrawal_request close 21_12_2020 27_2_2021
function user_baggage_transfer() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['gift_id']) || $event_json['gift_id']=="") { $msg_out="Validation Error gift_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['gift_qty']) || $event_json['gift_qty']=="") { $msg_out="Validation Error gift_qty Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['send_to_fb_id']) || $event_json['send_to_fb_id']=="") { $msg_out="Validation Error send_to_fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ub_type_id']) || $event_json['ub_type_id']=="") { $msg_out="Validation Error ub_type_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ub_type']) || $event_json['ub_type']=="") { $msg_out="Validation Error ub_type Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $gift=get_gift($event_json['gift_id'] ); if($gift){ //$value['ubh_gift_icon']=$gift['gift_icon']; //$value['ubh_gift_animation_icon']=$gift['gift_animation_icon']; } else{ $msg_out="Gift Missing In Our record"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $ubh_sender_fb_id=$event_json['fb_id']; $ubh_fb_id=$event_json['send_to_fb_id']; $gift_qty=$event_json['gift_qty']; $ubh_type_id=$event_json['ub_type_id']; $ubh_type=$event_json['ub_type']; $giftid=$ubh_gift_id=$gift['gift_id']; $ubh_gift_title=$gift['gift_title']; $ubh_gift_coin_type=$gift['gift_coin_type']; if($ubh_gift_coin_type=="Silver"){ $sender_remain_total_slivercoin_data=get_user_silvercoin_byfb_id($ubh_sender_fb_id); $ubh_gift_coin =$gift['gift_diamond']; if($sender_remain_total_slivercoin_data < $ubh_gift_coin) { $msg_out="You have not sufficient Sliver Coin In Your wallet"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $ubh_gift_total_coin =$gift_qty*$ubh_gift_coin; } //check baggar gift if($ubh_gift_coin_type=="Diamond"){ $qrry_get_ub_gift=" SELECT *,(SELECT sum(ub_gift_remain_qty) as total_gift FROM `user_baggage` where ub_fb_id=$ubh_sender_fb_id and ub_gift_id =$giftid) as total_gift FROM `user_baggage` where ub_fb_id=$ubh_sender_fb_id and ub_gift_id =$giftid and ub_gift_remain_qty!=0 "; $user_baggage_res=mysqli_query($conn,$qrry_get_ub_gift); $user_baggage_data=mysqli_fetch_assoc($user_baggage_res); if($user_baggage_data){ if($user_baggage_data['total_gift']!=0){ if($user_baggage_data['total_gift'] < $gift_qty) { $msg_out="You have not sufficient gift quntity in baggage "; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); }else{ //ub_last_up_date $ub_id=$user_baggage_data['ub_id']; $UPDATE_user_bag="update user_baggage set ub_gift_remain_qty=ub_gift_remain_qty-".$gift_qty." WHERE ub_fb_id='".$ubh_sender_fb_id."' and ub_id=$ub_id"; $res=mysqli_query($conn,$UPDATE_user_bag); //echo " ok here"; //die; } }else{ echo 'come hrer'; die; } }else{ //e $msg_out="This gift not in your baggage"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $ubh_gift_coin =$gift['gift_diamond']; $ubh_gift_total_coin =0; } $DATE_TIME=custom_current_date_time(); $qrry_get='INSERT INTO `user_baggage_history1`( `ubh_fb_id`, `ubh_gift_id`, `ubh_gift_title`, `ubh_gift_diamond`, `ubh_gift_qty`, `ubh_gift_total_diamond`, `ubh_sender_fb_id`, `ubh_cr_date`,`ubh_type_id`,`ubh_type`) VALUES ("'.$ubh_fb_id.'","'.$ubh_gift_id.'","'.$ubh_gift_title.'","'.$ubh_gift_coin.'","'.$gift_qty.'","'.$ubh_gift_total_coin.'","'.$ubh_sender_fb_id.'","'.$DATE_TIME.'","'.$ubh_type_id.'","'.$ubh_type.'")'; $res=mysqli_query($conn,$qrry_get)or die(mysqli_error($conn)); $last_insertid = mysqli_insert_id($conn); if($last_insertid){ $msg_out="Send Gift To User Baggage Successfully"; if($ubh_gift_coin_type=="Silver"){ $d=UPDATE_remove_silvercoin_user($ubh_sender_fb_id , $ubh_gift_total_coin); } $sender_remain_total_slivercoin_data=get_user_silvercoin_byfb_id($ubh_sender_fb_id); $output=array( "code" => "200", "msg" => $msg_out ,"data" => $res , "sender_remain_slivercoin" =>$sender_remain_total_slivercoin_data ); }else{ $msg_out="Error In Send Gift To Baggage"; $output=array( "code" => "500", "msg" => $msg_out ); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function WithdrawConfirm(Request $request)\n {\n $user_balance = Auth::user()->balance;\n $user_balance -=$request->requested_amount;\n User::where('id', Auth::id())->update(['balance' => $user_balance]);\n\n $withdrawRequest = new WithdrawRequest();\n $withdrawRequest-...
[ "0.59991115", "0.5895767", "0.57898754", "0.57084244", "0.5663099", "0.56475", "0.5638155", "0.5431529", "0.5413326", "0.5367217", "0.53622586", "0.53597295", "0.5326175", "0.5296788", "0.5296642", "0.52909964", "0.52872086", "0.52243996", "0.52211595", "0.5204027", "0.519365...
0.0
-1
/31_1_2021 Ksbm Infotech Pvt. Ltd. Rekha
function hoster_user_make_admin_user_his_joined_live_room() { require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ulrd_id']) || $event_json['ulrd_id']=="") { $msg_out="Validation Error ulrd_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $fb_id=$event_json['fb_id']; $ulrd_id=$event_json['ulrd_id']; $DATE_TIME=custom_current_date_time(); $sql="SELECT count(*) as admin_user FROM `user_join_live_room_details` where ujlrd_ulrd_id=$ulrd_id and ujlrd_user_type='Admin'"; $admin_user=mysqli_fetch_assoc(mysqli_query($conn,$sql)); if($admin_user['admin_user']> 5){ $msg_out="Admin creation maximum limit is exceeded.!"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $update_sql='Update `user_join_live_room_details` set ujlrd_user_type="Admin" where ujlrd_status="0" and ujlrd_ulrd_id="'.$ulrd_id.'" and ujlrd_fb_id ="'.$fb_id.'"'; $res=mysqli_query($conn,$update_sql)or die(mysqli_error($conn)); if($res) { // $lasq='select * from user_join_live_room_details WHERE ujlrd_id="'.$ujlrd_id.'" and ujlrd_ulrd_id="'.$ulrd_id.'"'; $newdata ="";//mysqli_fetch_assoc(mysqli_query($conn,$lasq)); $msg_out="Admin created Successfully "; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $newdata); }else{ $msg_out="Error in Update Data"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __getRupiah()\r\n\t{\r\n\t\t$request = Requests::get('http://www.bca.co.id/id/biaya-limit/kurs_counter_bca/kurs_counter_bca_landing.jsp');\r\n\t\t\r\n\t\tpreg_match('(\\d\\d\\40\\w+\\40\\d\\d\\d\\d\\40/\\40\\d\\d:\\d\\d\\40\\w+)', $request->body, $data['date']);\r\n\t\tpreg_match_all('/\\<td style...
[ "0.62326396", "0.57022697", "0.56636375", "0.5628256", "0.5553272", "0.5445981", "0.54442084", "0.53781456", "0.5343832", "0.5332318", "0.53297305", "0.53120315", "0.5308467", "0.5300532", "0.52994335", "0.52903926", "0.5288032", "0.5281955", "0.52675205", "0.5260885", "0.524...
0.0
-1
user_live_room_pk_details status update 19_1_2021
function update_status_user_create_live_room_pk(){ require_once("config.php"); $input = @file_get_contents("php://input"); //$event_json = json_decode($input,true); $event_json = json_decode($input,true); if(!isset($event_json['fb_id']) || $event_json['fb_id']=="") { $msg_out="Validation Error fb_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } if(!isset($event_json['ulrpk_id']) || $event_json['ulrpk_id']=="") { $msg_out="Validation Error ulrpk_id Missing"; $output=array( "code" => "201", "msg" => $msg_out , "data"=> ""); print_r(json_encode($output, true)); exit(); } $fb_id=$event_json['fb_id']; $ulrpk_id=$event_json['ulrpk_id']; $DATE_TIME=custom_current_date_time(); $UPDATE_sql='update user_live_room_pk_details set ulrpkd_status=1 , ulrpkd_leave_at="'.$DATE_TIME.'", ulrpkd_leave_by_fb_id="'.$fb_id.'" WHERE ulrpkd_id="'.$ulrpk_id.'"'; $res=mysqli_query($conn,$UPDATE_sql)or die(mysqli_error($conn)); if($ulrpk_id) { $order_data =mysqli_fetch_assoc(mysqli_query($conn,"select * from user_live_room_pk_details WHERE ulrpkd_id = '$ulrpk_id' ")); $msg_out="Record Update Successfully"; $output=array( "code" => "200", "msg" => $msg_out ,"data" => $order_data); }else{ $msg_out="Error in Updte Data"; $output=array( "code" => "500", "msg" => $msg_out , "data"=> ""); } print_r(json_encode($output, true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateBookingStatus(){\n $command = Yii::$app->db->createCommand();\n $id= Yii::$app->request->bodyParams[\"booking2\"];\n\n try {\n $command->update('car', ['pendingTime' => 'on', 'inUse' => 'pending'], 'id = '.$id)->execute();\n } catch (Exception $e) {\...
[ "0.6710224", "0.6464089", "0.60707635", "0.60121477", "0.6002458", "0.599619", "0.5962396", "0.5917518", "0.59131336", "0.5853849", "0.5806405", "0.5791246", "0.578557", "0.57854795", "0.5757012", "0.5755382", "0.5747321", "0.57198405", "0.57089204", "0.5702322", "0.56964374"...
0.6790034
0
top funs > gift reciver
function get_topfans() { require_once("config.php"); $input = @file_get_contents("php://input"); $event_json = json_decode($input,true); //print_r($event_json); die; if(isset($event_json['fb_id'])) { $fb_id=htmlspecialchars(strip_tags($event_json['fb_id'] , ENT_QUOTES)); // $query2=mysqli_query($conn,"select *,sum(diamonds) as topdiamonds from view_top_fan as vtf where vtf.reciever_id='".$fb_id."' group by sender_id order by sum(diamonds) DESC limit 1")or die(mysqli_error()); $sql="SELECT SUM(UBH.ubh_gift_total_diamond) as total FROM `user_baggage_history` AS UBH JOIN users as U ON U.fb_id=UBH.ubh_fb_id WHERE UBH.ubh_fb_id='".$fb_id."' "; $total=mysqli_fetch_assoc(mysqli_query($conn,$sql))['total'];//or die(mysqli_error($conn)); if(!$total){ $total=0; } $sql="SELECT UBH.ubh_sender_fb_id as reciever_id , SUM(UBH.ubh_gift_total_diamond) as topdiamonds FROM `user_baggage_history` AS UBH JOIN users as U ON U.fb_id=UBH.ubh_fb_id WHERE UBH.ubh_fb_id='".$fb_id."' GROUP BY UBH.ubh_sender_fb_id order BY topdiamonds DESC"; $query=mysqli_query($conn,$sql)or die(mysqli_error($conn)); $array_out = array(); while($srow=mysqli_fetch_assoc($query)) { //print_r($srow); $row=array(); $sender_id=$srow['reciever_id']; $sql="SELECT * FROM users where `fb_id`='$sender_id'"; $query2=mysqli_query($conn,$sql); $row=mysqli_fetch_assoc($query2); $row['reciever_id']=$srow['reciever_id']; $row['topdiamonds']=$srow['topdiamonds']; $selected_value_explde_array=explode(',',$row['user_wear_badge']); $row['follow_Status']=get_follow_users_status($row['fb_id'], $fb_id); $row['vip_details']=get_user_vip_status($row['fb_id']); $row['user_level']=get_user_level($row['fb_id']); $row['user_live_level']=get_user_live_level($row['fb_id']); $row['user_total_send_diamond']=get_user_total_send_diamond($row['fb_id']); $row['user_total_received_diamond']=get_user_total_received_diamond($row['fb_id']); $row['user_followers']=get_user_followers_count($row['fb_id']); $row['user_following']=get_user_following_count($row['fb_id']); $row['user_hearts']=get_user_hearts_count($row['fb_id']); $row['user_post']=get_user_post_count($row['fb_id']); $guardian_shield=get_guardian_shields($row['fb_id']); if($guardian_shield){ $row['guardian_shields_status']="1"; $row['guardian_shields_details']=$guardian_shield; } $row['is_user_on_live_room']="0"; $row['user_on_live_room_data']=""; $is_user_on_live_room=get_user_on_hoster_live_room($row['fb_id']); if($is_user_on_live_room){ $row['is_user_on_live_room']="1"; $row['user_on_live_room_data']=$is_user_on_live_room; } $row['vip_details_icon'] =get_user_vip_status_icon($row['fb_id']); $row['user_level_icon']= get_user_level_icon($row['fb_id']); $row['user_family_level_icon']= get_user_family_level_icon($row['fb_id']); // $sresult = array_merge($srow,$row); array_push($array_out,$row ); // $array_out[]=$sresult; // $array_out[] =$row; /* array( "sender_id" => $row['sender_id'], "reciever_id" =>$row['reciever_id'], "diamonds" =>$row['topdiamonds'], "reciever_name" =>$row['sender_name'], "reciever_vip_status" =>$row['sender_vip_status'], "reciever_profile_pic" =>$row['sender_profile_pic'], "follow_Status" =>array ( "follow" => $follow, "follow_status_button" => $follow_button_status ) ); */ } $output=array( "code" => "200", "data" => array( 'total'=>$total, 'list' => $array_out)); print_r(json_encode($output, true)); } else { $array_out = array(); $array_out[] = array( "response" =>"Json Parem are missing"); $output=array( "code" => "201", "data" => $array_out); print_r(json_encode($output, true)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function top();", "function getToplist($limit=false, $extended=false) {\n static $toplist;\n $challenges = challenges();\n if (!$toplist) {\n $top = array();\n $lists = array();\n $info = array();\n foreach ($challenges as $challenge_id => $data) {\n if ($da...
[ "0.61778456", "0.60519046", "0.58193743", "0.5813828", "0.578711", "0.5782836", "0.57103056", "0.56449556", "0.5540786", "0.54816514", "0.544142", "0.54278797", "0.5414964", "0.5287006", "0.5278998", "0.5265269", "0.5190515", "0.5129964", "0.51084334", "0.5104772", "0.5098278...
0.48312652
45
Check whether the account is a checking account. Entry's extra1 attribute will be the cheque no.
public function isChecking($id) { return ($id==11201); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkAccount($account) {\n if (parent::checkAccount($account)) {\n // Do other subclass checking\n return true;\n }\n \n return false;\n }", "public function validate_account(){ \n\t\tif($this->data['Client']['account_holder'][0] != ''){...
[ "0.6508236", "0.6457467", "0.60543174", "0.59628904", "0.5713142", "0.56188416", "0.55738455", "0.5544236", "0.55243814", "0.5481169", "0.54359627", "0.54025245", "0.53617996", "0.53388584", "0.53217274", "0.5316378", "0.5302692", "0.5300694", "0.52953017", "0.5282216", "0.52...
0.0
-1
Get product packages as defined on product level or default from configuration
protected function getPackages($product, $simpleProductWeight) { $packages = array(); if($product->getData('temando_packaging_mode')) { //packaging defined - use it for($i=1; $i<=5; $i++) { $desc = $product->getData("temando_package_{$i}_description"); if($desc && !empty($desc)) { $packages[] = array( 'description' => $product->getData("temando_package_{$i}_description"), 'packaging' => $product->getData("temando_package_{$i}_type"), 'fragile' => $product->getData("temando_package_{$i}_fragile"), 'weight' => $product->getData("temando_package_{$i}_weight"), 'length' => $product->getData("temando_package_{$i}_length"), 'width' => $product->getData("temando_package_{$i}_width"), 'height' => $product->getData("temando_package_{$i}_height"), ); } } } //use defaults if empty if(empty($packages)) { $packages[] = $this->getDefaultPackage($product, $simpleProductWeight); } return $packages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPackages()\n {\n return $this->file->get(self::SETTING_PACKAGES);\n }", "public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }", "private function getAvailableSubpackages() {\n\t\t$availableSubpackages = array();\n\t\t$directories =...
[ "0.6181589", "0.61719364", "0.6045074", "0.59584373", "0.59383744", "0.5923415", "0.59168804", "0.59085757", "0.59079623", "0.5899286", "0.5886126", "0.5844112", "0.5832811", "0.57884926", "0.57549936", "0.5753364", "0.57510066", "0.5745688", "0.5743944", "0.5725652", "0.5695...
0.61558205
2
Get default package from configured values
protected function getDefaultPackage($product, $simpleProductWeight) { return array( 'description' => $product->getName(), 'packaging' => $this->getConfigData('defaults/packaging'), 'fragile' => $this->getConfigData('defaults/fragile'), 'weight' => $product->getWeight() ? $product->getWeight() : $simpleProductWeight, 'length' => $this->getConfigData('defaults/length'), 'width' => $this->getConfigData('defaults/width'), 'height' => $this->getConfigData('defaults/height') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPackage() {}", "abstract public function getPackage();", "function getDefaultModule()\n\t{\n\t\t$modules = ModuleComponentContainerAdapter::getAll( $this->dbConnection, \"IsDefault = 1 and (AppName LIKE '\".SoondaUtil::encodeHTML($this->config[\"appname\"]).\"' or AppName LIKE '\".$this->con...
[ "0.6571055", "0.65278476", "0.63079625", "0.6261967", "0.62408876", "0.62050027", "0.60639864", "0.6054709", "0.60540724", "0.60134476", "0.5989175", "0.5985479", "0.5929514", "0.5914323", "0.5914323", "0.58960205", "0.5895109", "0.58669084", "0.5866501", "0.58656716", "0.586...
0.58706856
17
Get simple product from parent configurable product
public function getSelectedSimpleFromConfigurable($product, $item) { if (!is_callable(array($product, 'getTypeInstance')) || !is_callable(array($product->getTypeInstance(), 'getUsedProducts'))) { return $product; } $selectedAttributes = array(); $_attributes = $item->getOptionByCode('attributes'); if (!$_attributes) { $_attributes = $item->getProductOptionByCode('info_buyRequest'); if ($_attributes && isset($_attributes['super_attribute'])) { $selectedAttributes = $_attributes['super_attribute']; } } else { $selectedAttributes = unserialize($_attributes->getValue()); } if (!count($selectedAttributes)) { return $product; } $_Product = false; foreach ($product->getTypeInstance()->getUsedProducts() as $childProduct) { $checkRes = true; foreach ($selectedAttributes as $attributeId => $attributeValue) { $code = $product->getTypeInstance()->getAttributeById($attributeId)->getAttributeCode(); if ($childProduct->getData($code) != $attributeValue) { $checkRes = false; break; } } if ($checkRes) { $_Product = $childProduct; break; } } if (!$_Product) { return $product; } return $_Product; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfigurableBySimple($idProduct);", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProduct();", "public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }", "public function getPro...
[ "0.693966", "0.68753296", "0.6782604", "0.6780061", "0.6592597", "0.6592458", "0.65876496", "0.6566668", "0.6566668", "0.6566668", "0.64918184", "0.6483138", "0.64762497", "0.6451072", "0.642542", "0.6417246", "0.64117086", "0.64117086", "0.64117086", "0.64117086", "0.6411708...
0.654798
10
Get product package parameters for temando
public function getProductTemandoParams() { $return = array('packaging_mode'); for($i=1; $i<=5; $i++) { $return[] = "package_{$i}_description"; $return[] = "package_{$i}_type"; $return[] = "package_{$i}_fragile"; $return[] = "package_{$i}_weight"; $return[] = "package_{$i}_length"; $return[] = "package_{$i}_width"; $return[] = "package_{$i}_height"; } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getExportModelParameters(Product $product)\n {\n $object = new \\ReflectionObject($product);\n $property = $object->getProperty('_parameters');\n $property->setAccessible(true);\n return $property->getValue($product);\n }", "public function getData()\n {\n ...
[ "0.66258353", "0.61609155", "0.6114301", "0.6007139", "0.59229124", "0.5877141", "0.58763975", "0.5849248", "0.5755074", "0.5755074", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.572348", "0.5685262", "0.56...
0.83408827
0
Returns applicable dynamic origin based on destination
public function getDynamicOrigin($postcode, $storeId = null) { return Mage::getSingleton('temando/warehouse')->getCollection()->getOriginByPostcode($postcode, $storeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrigin();", "public function getOrigin() {}", "public function getOrigin() {}", "public function getOriginAttribute(){\n if($origin = $this->getParam('origin')){\n return $origin;\n }\n else{\n return 0;\n }\n }", "public function getO...
[ "0.6758524", "0.6519141", "0.6516237", "0.63004035", "0.6249608", "0.6186907", "0.60588175", "0.60214883", "0.59936315", "0.5956334", "0.5901311", "0.58612067", "0.58322984", "0.57764333", "0.57764333", "0.5730243", "0.57128733", "0.57128733", "0.5699754", "0.5680876", "0.567...
0.56536573
21
Prepares returned packaging information from getQuotes request for save into database table
public function getSerializedPackagingFromApiResponse($anythings) { //Mage::log($anythings, null, 'anythings.log', true); if(!is_array($anythings->anything)) { $anythings->anything = array(0 => $anythings->anything); } $packages = array(); foreach($anythings->anything as $package) { $productCounts = array(); $customPackageDescription = isset($package->packagingDescription) ? $package->packagingDescription . ': ' : ''; isset($package->articles) ? $description = $customPackageDescription . $this->getPackagingDescription($package->articles, $productCounts) : $description = null; $packages[] = array( 'class' => $package->class, 'mode' => $package->mode, 'packaging' => $package->packaging, 'fragile' => $package->qualifierFreightGeneralFragile, 'distanceMeasurementType' => $package->distanceMeasurementType, 'weightMeasurementType' => $package->weightMeasurementType, 'length' => $package->length, 'width' => $package->width, 'height' => $package->height, 'weight' => $package->weight, 'quantity' => $package->quantity, 'packagingDescription' => isset($package->packagingDescription) ? $package->packagingDescription : '', 'description' => $description,//$this->getPackagingDescription(isset($package->articles) ? $package->articles : null) 'products' => $productCounts, ); } return serialize($packages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function installQuoteData()\n {\n $quoteInstaller = $this->quoteSetupFactory->create(\n [\n 'resourceName' => 'quote_setup',\n 'setup' => $this->setup\n ]\n );\n $quoteInstaller\n ->addAttribute(\n 'quote',...
[ "0.58062124", "0.557922", "0.55609536", "0.55609536", "0.55292815", "0.54991996", "0.54991996", "0.5444673", "0.54148513", "0.5404238", "0.5367681", "0.5342987", "0.5340452", "0.533207", "0.5329085", "0.5310853", "0.52900445", "0.5251016", "0.52497923", "0.5242114", "0.524167...
0.0
-1
Constructs package description from API getQuotes response (article) with consolidated quantities (ie 1x tshirt, 2x pants)
public function getPackagingDescription($articles, &$count = array()) { if($articles) { if(!is_array($articles->article)) { $articles->article = array(0 => $articles->article); } $tmp = array(); foreach($articles->article as $article) { if(array_key_exists($article->sku, $count)) { $count[$article->sku] += 1; } else { $count[$article->sku] = 1; } $tmp[$article->sku] = $count[$article->sku].'x '.$article->description; } return implode(',', array_values($tmp)); } return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _canadapostGetQuote() {\r\n\t$strXML = \"<?xml version=\\\"1.0\\\" ?>\";\r\n\r\n\t// set package configuration.\r\n\t$strXML .= \"<eparcel>\\n\";\r\n\t$strXML .= \" <language>\" . $this->language . \"</language>\\n\";\r\n\t$strXML .= \" <ratesAndServicesRequest>\\n\";\r\n\t$strXML .= \" ...
[ "0.6120256", "0.55053383", "0.51664585", "0.512536", "0.5107643", "0.5080049", "0.5076223", "0.5072831", "0.50718755", "0.50587404", "0.50523823", "0.50510806", "0.5034993", "0.5005698", "0.49957615", "0.4990377", "0.49871567", "0.49745357", "0.49557212", "0.49543577", "0.494...
0.5730308
1
Get values for individual items on order
public function getOrderItemValues($allItems) { $return = array(); if(!empty($allItems)) { foreach($allItems as $item => $values) { $qty = $values['qty']; $tot = $values['lineItemTotal']; $per1 = round($tot / $qty, 2); for($i = 1; $i <= $qty; $i++) { //if last then substract from total to balance out, otherwise use per1 split if($i == $qty) $return[$item][] = $tot - (($qty-1)*$per1); else $return[$item][] = $per1; } } } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder();", "public function getOrder(): array;", "protected function getOrderItemValues($item, $order, $itemInc=1 , $stockno) \...
[ "0.6520869", "0.6520869", "0.6520869", "0.6520869", "0.6520869", "0.6520869", "0.64839596", "0.63753355", "0.6269797", "0.6239158", "0.6228506", "0.6198794", "0.61777097", "0.6151377", "0.6148509", "0.6145855", "0.6144181", "0.6081957", "0.6055989", "0.6000095", "0.59549", ...
0.64944273
6
Get value of a package combined value of all items in this consolidated package
public function getConsolidatedPackageValue($products, $allItems) { if(is_null($this->_orderItemValues)) { $this->_orderItemValues = $this->getOrderItemValues($allItems); } $total = 0; if(!empty($products)) { foreach($products as $sku => $qty) { for($i = 1; $i <= $qty; $i++) { $val = array_pop($this->_orderItemValues[$sku]); if(!is_null($val)) $total += (float)$val; } } } return $total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function package() {\n\t\treturn $this->package;\n\t}", "private function packageFilter()\n {\n $packagesItems = $this->packageItems();\n foreach ($packagesItems as $item) {\n $entityId = $item->getData('entity_id');\n }\n\n $packageFilter[] = $this->filterBuilder...
[ "0.52693653", "0.5214378", "0.52136624", "0.52045447", "0.517181", "0.5077028", "0.50730354", "0.50366914", "0.50334644", "0.49897408", "0.49690583", "0.49688557", "0.49678406", "0.4940028", "0.49381188", "0.49381188", "0.49375528", "0.49107492", "0.49072695", "0.4904715", "0...
0.6173997
0
Create a new policy instance.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPolicy() {\n\t\tthrow new CmisNotImplementedException(\"createPolicy\");\n\t}", "public function testPolicyCanBeCreated()\n {\n $policy = factory(App\\Models\\Policy::class)->create([\n 'title' => 'Administrator',\n ]);\n\n $this->assertEquals($policy->tit...
[ "0.69238234", "0.63803977", "0.63180053", "0.6157489", "0.59963197", "0.5828844", "0.5753017", "0.5750766", "0.57240343", "0.5712267", "0.57120466", "0.5633073", "0.5629794", "0.5476492", "0.5414451", "0.536653", "0.5354097", "0.5354097", "0.5354097", "0.53313726", "0.5293763...
0.0
-1
only moderators can view moderation page
public static function show(){ return Auth::check() && Auth::user()->isAdmin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isModerator()\n {\n }", "public function isModerador(){ return false; }", "private function isNotModerator()\n {\n if (Auth::user() == null || Auth::user()->users_status != \"moderator\") {\n return true;\n }\n }", "public function testAccessWithModerator(...
[ "0.76452386", "0.7261019", "0.7098022", "0.70626557", "0.7000842", "0.6957744", "0.6912857", "0.6890111", "0.6875813", "0.6774686", "0.6739141", "0.6733475", "0.669187", "0.6689403", "0.6625679", "0.6583938", "0.6541505", "0.65337175", "0.6530123", "0.6497809", "0.64632916", ...
0.6142284
41
echo "Email :".$foto_email." ";
function alterFotoFisi($conexao, $foto_coment, $foto_nome, $foto_tel, $foto_cel, $foto_cpf, $foto_end, $foto_num, $foto_estado, $foto_cidade, $foto_email, $foto_especi, $foto_img,$foto_emp='', $foto_cep=''){ echo "<br/>Dentro do foto_especi: ".print_r($foto_especi)."<br/>"; $sql_update = sprintf(" update fotografo f, fotografo_fisico fs, localizacao_foto lf set f.foto_comentario = '%s', f.foto_img_perf = '%s', fs.foto_fisi_nome = '%s', fs.foto_fisi_tel = '%s', fs.foto_fisi_cel = '%s', fs.foto_fisi_cpf = '%s', lf.loca_end_foto = '%s',lf.loca_num_foto = '%s', lf.loca_estado_foto = %u, lf.loca_cidade_foto = %u, fs.foto_fisi_nome_emp = '%s', lf.loca_cep_foto = '%s' where f.foto_cod = fs.foto_cod and f.foto_cod = lf.foto_cod and fs.foto_fisi_email = '%s' ", $foto_coment, $foto_img,$foto_nome, $foto_tel, $foto_cel, $foto_cpf, $foto_end, $foto_num, $foto_estado, $foto_cidade, $foto_emp, $foto_cep, $foto_email); $resultado_update = mysqli_query($conexao, $sql_update) or die(mysqli_error($conexao)."<br/>".$sql_update); $resulUpEspeci = atualizarEspecialidadeFotografo($conexao,$foto_email,$foto_especi); if($resultado_update){ return true; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function teste($email){\n list($usuario, $dominio) = explode('@', $email);\n echo(($dominio));\n die('opa');\n }", "function get_profile_email($email){\r\n\t\r\n}", "public function email($email) {\n\t\n\t\n\t\n\t\treturn $email;\n\t\n\t}", "function getUserEmail($id_utente) {\...
[ "0.62283033", "0.594536", "0.59347975", "0.5903587", "0.5883652", "0.5826872", "0.565002", "0.565002", "0.56483376", "0.5617294", "0.5585516", "0.558309", "0.55813366", "0.55726314", "0.55668485", "0.55668485", "0.55668485", "0.55662894", "0.55662894", "0.5564007", "0.5551115...
0.0
-1
Run the database seeds.
public function run() { Location::truncate(); Location::insert($this->locations); }
{ "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
/ This file is responsible of mapping the type in Dspace to the equivalent type in ORCID. Parameters : $type : item type ( work ). Created by : Yasmeen Alsaedy institute : King Abdullah University of Science and Technology | KAUST Date : 7 October 2019 10:30 AM
function convertToORCIDWorkType($type) { global $ioi; $type = getValues($ioi, "SELECT `orcidField` FROM `mappings` WHERE `source` = 'dspace' AND sourceField = '$type' AND `entryType` = 'workType'", array('orcidField'), 'singleValue'); if(empty($type)) { $type = 'other'; } return $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setType(){\n switch($this->security){\n case 'H':\n case 'L':\n case '0.0':\n $typeId = 2; // k-space\n break;\n case 'A':\n $typeId = 3; // a-space\n break;\n default:\n ...
[ "0.60802364", "0.5843018", "0.57895386", "0.56398183", "0.56058216", "0.5594462", "0.55847037", "0.5557621", "0.55421543", "0.55088824", "0.55086017", "0.5508563", "0.5486671", "0.5486093", "0.5486093", "0.54793674", "0.5447359", "0.5447359", "0.5447359", "0.5447359", "0.5447...
0.6364823
0
/ wrapper para o retorno de getCampo que permite definir sem enumerar um switch (isso pode ser mais lento?)
protected function campos($coluna, $itens) { return $itens[$coluna]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _multiOptions($switch = '', $var = null) {\n\t\t$options = array('' => 'Select...');\n\n\t\tswitch($switch) {\n\t\t\tcase 'group_id':\n\t\t\t\t$goptions \t= Core_Acl_Roles::getGroupOptions();\n\t\t\t\t$options \t= $goptions;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn $options;\n\t}", "function find_cade...
[ "0.5559356", "0.5518372", "0.5336464", "0.5159771", "0.5024516", "0.5024139", "0.49873334", "0.49680614", "0.49659958", "0.49494338", "0.49416578", "0.49375835", "0.49267817", "0.48908454", "0.48825794", "0.48620865", "0.48429686", "0.48304135", "0.4811838", "0.4807702", "0.4...
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Get the console command arguments.
protected function getArguments() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getArgs()\n {\n return $this->meta[Cli::ARGS] ?? [];\n }", "private function getArguments() {\n return array_slice($argv, 1);\n }", "public function getArgs() {\n return $this->commandArgs;\n }", "public function getCommandLineArguments()\n {\n retur...
[ "0.7929734", "0.79042095", "0.7831461", "0.7587314", "0.75166816", "0.70980483", "0.7015334", "0.7015334", "0.7015334", "0.7015334", "0.7015334", "0.7011597", "0.7011597", "0.6969377", "0.6941954", "0.6919662", "0.69183534", "0.6889421", "0.6861143", "0.68576336", "0.6853908"...
0.6550134
78
Get the console command options.
protected function getOptions() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOptions() {\n return [\n ['env', null, InputOption::VALUE_OPTIONAL, 'The environment the command should run under.', null],\n ];\n }", "protected function getOptions()\n {\n return [\n ['command', null, InputOption::VALUE_OPTIONAL, 'The termi...
[ "0.7800682", "0.77591324", "0.751765", "0.7345173", "0.73404354", "0.7306238", "0.72790045", "0.7268271", "0.7237944", "0.71917665", "0.715652", "0.7155546", "0.7137", "0.71122515", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.71094...
0.70230496
63
Execute the console command.
public function fire() { if (!is_dir(base_path('vendor/angel'))) { $this->error('The vendor/angel directory does not exist.'); return; } $this->info('Publishing Angel package assets...'); chdir(base_path()); foreach (glob(base_path('vendor/angel/*')) as $dir) { if (!is_dir($dir)) { $this->error('Not a directory: ' . $dir); continue; } preg_match('/vendor\/(.+)/', $dir, $matches); $package = $matches[1]; $this->exec('php artisan asset:publish ' . $package); } $this->info('...all Angel package assets have been published.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
$full_url = $url.'?'.( $_SERVER['QUERY_STRING'] ? $_SERVER['QUERY_STRING'] : '1=1');
private function load_pagination($url, $total_rows, $show_rows, $offset, $cur_count, $sortby = null, $sortas = null){ $full_url = $url.'?1=1'; if($sortby) $full_url .= '&sortby='.$sortby; if($sortas) $full_url .= '&sortas='.$sortas; $page_data['links'] = self::get_pagination($full_url, $total_rows, $show_rows); $page_data['from_offset'] = $offset + 1; $page_data['to_offset'] = $offset + $cur_count; $page_data['total'] = $total_rows; $this->load->view('admin/pagination', $page_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extend_url(&$url, $append)\n{\n if (($append != '') && (strpos($url, '?' . $append) === false) && (strpos($url, '&' . $append) === false)) {\n $url .= ((strpos($url, '?') === false) ? '?' : '&') . $append;\n }\n}", "function addURLQuery($query){\n\t\t$query = \"?\".$query.\"&\";\n\t\tforeac...
[ "0.70151067", "0.67655206", "0.6722118", "0.6720354", "0.67138314", "0.6688218", "0.6679927", "0.664276", "0.66391605", "0.6609986", "0.65713614", "0.6569732", "0.6569312", "0.6563534", "0.6558533", "0.6555676", "0.65327966", "0.65245897", "0.65028787", "0.64941216", "0.64899...
0.0
-1
Display a listing of the resource.
public function index() { $Category = Category::with('products')->get(); return view('admin.categories.categories',compact('Category')); }
{ "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) { $this->validate($request, [ 'category_name' => 'required|string|max:255', 'category_description' => 'required|max:1000', 'shop_id' => 'required', ]); try { $Category= Category::create([ 'category_name'=>$request->category_name, 'category_description'=>$request->category_description, 'shop_id'=>$request->shop_id, 'position'=>1, ]); $Category = $request->all(); if($request->has('parent_id')){ if($Category['parent_id'] != 0) { $this->validate($request, [ 'parent_id' => 'required|exists:categories.id', ]); } else { $Category['parent_id'] = 0; } } return redirect()->route('categories.show',$request->shop_id)->with('flash_success', 'Category added!'); } catch (Exception $e) { return redirect()->route('categories.show',$request->shop_id)->with('flash_error', trans('form.whoops')); } }
{ "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) { $Category = Category::with('products')->where('shop_id',$id)->get(); if ($Category->isEmpty()) { $sid=Shop::latest()->first(); $id=$sid->id; return view('admin.categories.add_category',compact('id')); } return view('admin.categories.categories',compact('Category')); }
{ "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) { $category=Category::find($id); return view('admin.categories.edit_category',compact('category')); }
{ "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); $category->category_name=$request->get('name'); $category->category_description=$request->get('description'); $category->save(); return redirect()->route('categories.show',$category->shop_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) { $Category = Category::with('products')->where('id',$id)->first(); Category::destroy($id); return redirect()->route('categories.show',$Category->shop_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
Create a new DateRange object from start and end date as Ymd formatted strings
public static function fromYmd(string $start, string $end): DateRange { return new DateRange(JustDate::fromYmd($start), JustDate::fromYmd($end)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$beg...
[ "0.6808518", "0.6543902", "0.64143616", "0.62102777", "0.61962414", "0.6132356", "0.60825056", "0.60556024", "0.60520893", "0.6047223", "0.60471934", "0.60014397", "0.59789485", "0.5965888", "0.5922588", "0.5893837", "0.58787143", "0.5875287", "0.5864332", "0.5861786", "0.584...
0.7626535
0
Create a new DateRange object which is the intersection of $r1 and $r2 If $r1 and $r2 have no intersection and are totally separate, then this function returns null
public static function intersection(DateRange $r1, DateRange $r2): ?DateRange { $start = JustDate::latest($r1->start, $r2->start); $end = JustDate::earliest($r1->end, $r2->end); if ($start->isAfter($end)) { // There's no intersection return null; } return new DateRange($start, $end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function intersections(): self\n {\n $current = null;\n $isPreviouslyContained = false;\n $reducer = function (Sequence $sequence, Period $period) use (&$current, &$isPreviouslyContained): Sequence {\n if (null === $current) {\n $current = $period;\n\n ...
[ "0.59411556", "0.5741939", "0.5698685", "0.5618078", "0.542498", "0.5314924", "0.5284847", "0.52704847", "0.52466756", "0.52130294", "0.51295507", "0.5080017", "0.50422937", "0.4999948", "0.49621534", "0.49485636", "0.49474338", "0.4931763", "0.48952556", "0.48939675", "0.488...
0.7978074
0
Create a new DateRange object from start and end dates
public function __construct(JustDate $start, JustDate $end) { if ($start->isAfter($end)) { throw new InvalidArgumentException("Start date cannot be after end date"); } $this->start = clone $start; $this->end = clone $end; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$beg...
[ "0.7348077", "0.7264475", "0.7014908", "0.692878", "0.6863448", "0.6811478", "0.6756907", "0.6736324", "0.66860235", "0.6634026", "0.66281056", "0.6619495", "0.6506294", "0.64767903", "0.6465834", "0.6448261", "0.6442491", "0.64201474", "0.64168197", "0.6357456", "0.6343263",...
0.6027889
38
Create a new DateRange objects from start and end dates specified in any order The start date will be whichever of the 2 dates is earliest and the end date whichever of the 2 dates is latest.
public static function eitherWayRound(JustDate $a, JustDate $b): DateRange { return new DateRange(JustDate::earliest($a, $b), JustDate::latest($a, $b)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\n {\n $begin = new DateTime($startDate);\n $end = new DateTime($endDate);\n\n $interval = new DateInterval('P1D'); // 1 Day\n $dateRange = new DatePeriod($begin, $interval, $end);\n\n $range = [];\n for...
[ "0.6744965", "0.66312975", "0.66079134", "0.64106256", "0.63804626", "0.63755304", "0.6314844", "0.6313261", "0.63101333", "0.6197595", "0.6177915", "0.61579424", "0.6022557", "0.60070676", "0.5999849", "0.5997851", "0.59589565", "0.59581095", "0.59552455", "0.5939556", "0.59...
0.60257417
12
Getters start The start of the range end The end of the range span The number of nights between start and end (if start and end are same day, span is 0) num_nights Alias for span num_days The number of days in the range, including start end end (if start and end are same day, num_days is 1)
public function __get($name) { switch ($name) { case 'start': return $this->start; case 'end': return $this->end; case 'span': case 'num_nights': return JustDate::spanDays($this->start, $this->end); case 'num_days': return JustDate::spanDays($this->start, $this->end) + 1; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRangeStat($start, $end, $format = 'Y-m-d') {\n \t\tdate_default_timezone_set(\"Europe/London\");\n\t\t$start = new DateTime($start);\n\t\t$end = new DateTime($end);\n\t\t$invert = $start > $end;\n\n\t\t$dates = array();\n\t\t$dates[] = $start->format($format);\n\t\twhile ($start != $end) {\n\t\...
[ "0.5748783", "0.56996125", "0.5636681", "0.53718233", "0.5361785", "0.53574705", "0.535241", "0.5332663", "0.5289612", "0.52521354", "0.52178186", "0.5201913", "0.51948565", "0.5189284", "0.51684874", "0.51594234", "0.5156481", "0.51450175", "0.51291806", "0.51058835", "0.510...
0.48352253
46
Standard string representation is eg '20190421 to 20190425'
public function __toString(): string { return "{$this->start} to {$this->end}"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function to_s() {\n $format = \"%04d-%02d-%02d\";\n\n return sprintf($format, $this->year, $this->month, $this->day);\n }", "public function dateStartFriendly(): string\n {\n return Carbon::parse($this->date_start)->format('d-m-Y');\n }", "public function periodo() {\n ...
[ "0.61608994", "0.59721136", "0.5915222", "0.5894571", "0.58564264", "0.58255", "0.5786829", "0.5761231", "0.575104", "0.569902", "0.56972164", "0.5696928", "0.56856984", "0.5644756", "0.5642799", "0.56411785", "0.56219614", "0.5593442", "0.5591444", "0.55702615", "0.5539455",...
0.0
-1
Json representation is object with 'start' and 'end' properties
public function jsonSerialize(): array { return [ 'start' => (string) $this->start, 'end' => (string) $this->end, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function jsonSerialize()\n {\n $json = array();\n $json['endCursor'] = $this->endCursor;\n $json['hasNextPage'] = $this->hasNextPage;\n $json['hasPrevPage'] = $this->hasPrevPage;\n $json['startCursor'] = $this->startCursor;\n\n return $json;\n }", "functio...
[ "0.6889343", "0.6701645", "0.65143967", "0.5916348", "0.5827126", "0.5827126", "0.57765275", "0.5775196", "0.5738229", "0.5711419", "0.56690735", "0.56563604", "0.56383", "0.563226", "0.5625815", "0.5609264", "0.56091946", "0.5602312", "0.5602312", "0.5602312", "0.55724186", ...
0.7248712
0
Get a generator which yields each date in the range (inclusive of end points) as a JustDate object
public function each(): Generator { for ($day = $this->start; $day->isBeforeOrSameAs($this->end); $day = $day->nextDay()) { yield $day; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$beg...
[ "0.66048115", "0.6596961", "0.6564439", "0.6477591", "0.6415856", "0.6305754", "0.62014335", "0.6146952", "0.6097327", "0.6097279", "0.60624236", "0.60378176", "0.60150635", "0.5996371", "0.5979846", "0.5947383", "0.5938639", "0.58696723", "0.5834634", "0.58330446", "0.576676...
0.6547776
3
Get a generator which yields each date in the range (including start but not end) as a JustDate object
public function eachExceptEnd(): Generator { for ($day = $this->start; $day->isBefore($this->end); $day = $day->nextDay()) { yield $day; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetDates(DateRange $startingDates);", "public function dateRanges(): DateRangeCollection;", "public function each(): Generator\n {\n for ($day = $this->start; $day->isBeforeOrSameAs($this->end); $day = $day->nextDay()) {\n yield $day;\n }\n }", "function createDateRang...
[ "0.65252644", "0.64289784", "0.6407874", "0.63963753", "0.6190559", "0.60952073", "0.59726363", "0.59511846", "0.59027946", "0.58849245", "0.5857599", "0.58567137", "0.58363247", "0.58338344", "0.58246106", "0.5780961", "0.57710075", "0.57653433", "0.5744331", "0.5730962", "0...
0.6244009
4
Test whether a particular date lies within this range
public function includes(JustDate $date): bool { return $date->isAfterOrSameAs($this->start) && $date->isBeforeOrSameAs($this->end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inPeriod(\\DateTime $date)\n {\n return $date >= $this->startDate && $date <= $this->endDate;\n }", "function erp_check_date_range_in_range_exist( $start_date, $end_date, $user_date_start, $user_date_end ) {\n\n if ( erp_check_date_in_range( $start_date, $end_date, $user_date_star...
[ "0.7149054", "0.68700045", "0.68474436", "0.6845389", "0.6834923", "0.681338", "0.6753103", "0.6730053", "0.67276937", "0.6688882", "0.66369456", "0.65966123", "0.65866363", "0.654803", "0.6547873", "0.6501959", "0.6477576", "0.6398081", "0.6382084", "0.6350635", "0.6264802",...
0.6349823
20
Test whether a particular date range is completely contained within this range
public function contains(DateRange $range): bool { return $this->start->isBeforeOrSameAs($range->start) && $this->end->isAfterOrSameAs($range->end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_within_date_range( $time, $range_start, $range_end ) {\n\tif ( ! is_int( $range_start ) ) {\n\t\t$range_start = strtotime( $range_start );\n\t}\n\n\tif ( ! is_int( $range_end ) ) {\n\t\t$range_end = strtotime( $range_end );\n\t}\n\n\treturn $time > $range_start && $time < $range_end;\n}", "private fu...
[ "0.72426397", "0.7241391", "0.7008008", "0.68345153", "0.6767573", "0.67662233", "0.6749946", "0.67207533", "0.6711818", "0.66846484", "0.655969", "0.65348613", "0.6494709", "0.64334685", "0.6421759", "0.64104366", "0.6406525", "0.64023274", "0.63684803", "0.6358056", "0.6351...
0.74093854
0
Get a generator which splits the range into subranges The supplied callback function will be applied to each date in the range, and consecutive dates for which the callback returns equal values will be grouped together into a subrange. This function returns a generator which will yield each of these contiguous subranges in turn, together with the callback value. The yield values will be in the format of an array with 'value' and 'range' keys.
public function iterateSubRanges(callable $value_fn, array $opts = []): Generator { $backwards = (bool) ($opts['backwards'] ?? false); $step = $backwards ? -1 : 1; $end = $backwards ? $this->start : $this->end; $sub_range_start = $backwards ? $this->end : $this->start; $sub_range_end = $sub_range_start; $sub_range_value = $value_fn($sub_range_start); while (! $sub_range_end->isSameAs($end)) { $next_date = $sub_range_end->addDays($step); $next_value = $value_fn($next_date); if ($next_value != $sub_range_value) { // Value has changed yield [ 'range' => DateRange::eitherWayRound($sub_range_start, $sub_range_end), 'value' => $sub_range_value, ]; // Start a new current range $sub_range_start = $next_date; $sub_range_value = $next_value; } $sub_range_end = $next_date; } // Finish the current range yield [ 'range' => DateRange::eitherWayRound($sub_range_start, $sub_range_end), 'value' => $sub_range_value, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function split($interval)\n {\n $startDate = $this->startDate;\n $interval = static::filterDateInterval($interval);\n do {\n $endDate = $startDate->add($interval);\n if ($endDate > $this->endDate) {\n $endDate = $this->endDate;\n }\n ...
[ "0.5714152", "0.5714152", "0.5421245", "0.53541213", "0.5234432", "0.5207067", "0.5052191", "0.5005233", "0.49579906", "0.49086422", "0.48947716", "0.48820084", "0.48665294", "0.4858393", "0.48096666", "0.48081678", "0.47535062", "0.47512066", "0.4743403", "0.47252494", "0.47...
0.6914536
0
funcion que devuelve un strin recortado por un numero de caracteres definido
public function limitLetters($text){ $length = strlen($text); $res = ""; if($length < 108){ $res = $text; }else{ $res = substr($text, 0, 108); } return $res . ' ...'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NumeroInscripcion($primerdigito,$id)\n {\n $numero = $primerdigito.str_pad($id, 4, '0', STR_PAD_LEFT);\n $letra = '';\n $suma = 0;\n for ($i = 0; $i < 5; $i++) {\n $suma += substr($numero, $i, 1) * ($i + 1);\n }\n $letra = chr($suma % 11 + 65);\n ...
[ "0.61460227", "0.6073838", "0.59729135", "0.59469014", "0.58450615", "0.5823335", "0.58042073", "0.5799475", "0.57567513", "0.5755917", "0.5717347", "0.56664723", "0.5660881", "0.56582516", "0.5619271", "0.5604708", "0.5577423", "0.5539509", "0.5519369", "0.55184716", "0.5490...
0.0
-1
Funcion que obtiene los contratos que le intersan a un usuario
public function getNotificationsContracts($contracts, $contractIds, $userId){ $this->loadModel('UserInterestContract'); $interests = $this->UserInterestContract->find('all',array('conditions'=>array('UserInterestContract.users_id'=> $userId,'UserInterestContract.interest_contracts_id'=> $contractIds))); $result = Array(); foreach ($interests as $interest) { $result[] = $this->getContractByIdFromArray($contracts, $interest['UserInterestContract']['interest_contracts_id']); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function citas_usuariosCitas(){\n \t\n\t\t\t$resultado = array();\n\t\t\n\t\t\t$query = \" SELECT idUsuario, identificacion, nombre, apellido\n\t\t\t\t\t\tFROM tb_usuarios\";\n\t\t\t\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t ...
[ "0.63066316", "0.62016624", "0.6190762", "0.6128283", "0.61049354", "0.60437596", "0.60213524", "0.6012103", "0.59951425", "0.59916514", "0.5947525", "0.59437907", "0.59427106", "0.59170175", "0.59084624", "0.5877874", "0.58718514", "0.5857023", "0.5836436", "0.583037", "0.58...
0.0
-1
funcion que retorna un contrato por identificador
public function getContractByIdFromArray($contracts, $id){ foreach ($contracts as $contract) { if($contract['id'] == $id){ return $contract; break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContrato_id() {\n return $this->contrato_id;\n }", "public function obtenerID();", "public function getIdContrato()\n {\n return $this->id_contrato;\n }", "function ret_nome($idnome)\n {\n global $db;\n\t$sql=\"select nome from usuario where usuario=$idnome\";\n...
[ "0.65182364", "0.6483538", "0.643518", "0.63907146", "0.6241871", "0.6236071", "0.6160611", "0.6150025", "0.61463165", "0.61295164", "0.605295", "0.6037522", "0.60334814", "0.6020583", "0.60117054", "0.59658366", "0.5944561", "0.59200764", "0.59134305", "0.5906521", "0.590206...
0.0
-1
Identificadores de usuarios por interes de contratos
public function getUsersIdFromInterestContracts($usersInterestContracts){ $userIds = Array(); foreach ($usersInterestContracts as $uic) { $userIds[] = $uic['UserInterestContract']['users_id']; } return $userIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buscarUsuarios(){\n\t\t}", "private function usuarios(){\n\t\tif ($_SERVER['REQUEST_METHOD'] != \"GET\") {\n\t\t\t# no se envian los usuarios, se envia un error\n\t\t\t$this->mostrarRespuesta($this->convertirJson($this->devolverError(1)), 405);\n\t\t}//es una petición GET\n\t\t//se realiza la con...
[ "0.6851049", "0.6560019", "0.650718", "0.62987185", "0.62932223", "0.6285715", "0.6263644", "0.62054706", "0.6189452", "0.6187577", "0.6164722", "0.61436677", "0.61317044", "0.6101554", "0.6083329", "0.6070906", "0.60618585", "0.6041862", "0.60403645", "0.6009303", "0.6007213...
0.0
-1
Funcion que encuentra la relacion de a que usuarios les interesa el contrato actualizado
public function getUserInterestContractId($contractId){ $this->loadModel('UserInterestContract'); $relatedUsers = $this->UserInterestContract->find('all',array('conditions'=>array('UserInterestContract.interest_contracts_id' => $contractId))); $userInterestContractIds = Array(); foreach($relatedUsers as $relatedUser) { $userInterestContractIds[] = $relatedUser['UserInterestContract']['id']; } return $userInterestContractIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function atualizarUsuarios($idusuario, $nome, $email, $senha, $senha_confirma, $telefone, $dtnascimento, $habilitado, $idpermissao){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT count(*) as total from tbusuarios WHERE email = '$email' \";\n $sql = $this->conexao->query($sql);\n ...
[ "0.7542181", "0.73157036", "0.72649413", "0.7222712", "0.7188906", "0.71738124", "0.7152698", "0.70813257", "0.7032151", "0.70117617", "0.6958499", "0.69394314", "0.6936736", "0.6935509", "0.6935146", "0.6928697", "0.69242936", "0.6922534", "0.6913754", "0.6907868", "0.690032...
0.0
-1
Funcion que encuentra el ultimo historial de un contrato
public function findLastContractHistorial($interestContractsId){ $this->loadModel('ContractHistorial'); $foundContractHistorial = $this->ContractHistorial->find('first',array('order'=>'ContractHistorial.id DESC', 'conditions'=> array('ContractHistorial.interest_contracts_id' => $interestContractsId))); return $foundContractHistorial; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function defiva($subt,$saldoi,$pago){\n $pagoiva;\n $resto = $saldoi -$subt;\n if($resto >0){\n // queda iva por aplicar\n if($resto>$pago){$pagoiva=$pago;}else{$pagoiva=$resto;}\n }else{\n //todo a capital\n $pagoiva = 0;\n }\n return $pagoiva;\n}", "function historial(){\n\...
[ "0.60460377", "0.60078293", "0.59037125", "0.583352", "0.57549095", "0.574019", "0.570032", "0.56959665", "0.5610018", "0.559653", "0.55471116", "0.55453736", "0.5522972", "0.5453068", "0.5444373", "0.5436694", "0.54274774", "0.5416253", "0.5415556", "0.53967655", "0.5376084"...
0.0
-1
Si existe la sesion lo registraos en la base de datos como salida
function cerrarSesion() { if(isset($_SESSION[USER_SESSION])) { $fin = time(); $sid = $_SESSION[USER_SESSION]["sid"]; $sql = "update sq_sesion set fin=current_timestamp() where cod = '{$sid}'"; asgMng::query($sql); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function salvar(){\n \n\t\t/*\n\t\t\tReceber dados vindos do formulario.\n\t\t*/\n\n\t\t$login = $this->post(\"login\");\n\t\t$senha = $this->post(\"senha\");\n\t\t$senha = md5($senha);\n\t\t$tipo = 2;\n\n\t\t/*\n\t\t\tInserindo dados na tabela usuário.\n\t\t*/\n\t\t$campos = \"(login,senha,tipo)\";\...
[ "0.71754736", "0.7090055", "0.68557936", "0.6578735", "0.65174305", "0.646615", "0.645454", "0.63325536", "0.6293643", "0.62722385", "0.6165385", "0.61475617", "0.61447996", "0.6141844", "0.6110284", "0.61088765", "0.6095881", "0.6083986", "0.60812014", "0.608056", "0.6074276...
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return Auth::guard('admin')->check(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'category' => 'required|max:20', 'description' => 'required|max:50', ]; }
{ "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
your addon must extend lC_Addon / Class constructor
public function Support_Tickets() { global $lC_Language; /** * The addon type (store listing category) * valid types; payment, shipping, themes, checkout, catalog, admin, reports, connectors, inventory, other */ $this->_type = 'other'; /** * The addon class name */ $this->_code = 'Support_Tickets'; /** * The addon title used in the addons store listing */ $this->_title = $lC_Language->get('addon_catalog_supporttickets_title'); /** * The addon description used in the addons store listing */ $this->_description = $lC_Language->get('addon_catalog_supporttickets_description'); /** * The addon blurb used in the addons store listing */ $this->_blurb = $lC_Language->get('addon_catalog_supporttickets_blurb'); /** * The developers name */ $this->_author = 'ContributionCentral'; /** * The developers web address */ $this->_authorWWW = 'http://www.contributioncentral.com'; /** * The addon version */ $this->_version = '1.0.0'; /** * The Loaded 7 core compatibility version */ $this->_compatibility = '7.001.0.0'; // the addon is compatible with this core version and later /** * The addon image used in the addons store listing */ $this->_thumbnail = lc_image(DIR_WS_CATALOG . 'addons/' . $this->_code . '/images/logo.png'); /** * The addon enable/disable switch */ $this->_enabled = (defined('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS') && @constant('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS') == '1') ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init() {\n\t\tadd_filter('gb_addons', array(get_class(),'gb_merchant_meta_addon'), 10, 1);\n\t}", "public function __construct() {\n\n $this->admin_notices = array();\n add_action('admin_notices', array($this, 'notices_callback'));\n if (!$this->check_dependencies()) {...
[ "0.6614757", "0.6492445", "0.6481465", "0.6451345", "0.64448184", "0.6427025", "0.6371265", "0.63565636", "0.63398707", "0.63217723", "0.6318632", "0.6296143", "0.6276831", "0.6187692", "0.6187594", "0.61871684", "0.61851096", "0.61723584", "0.61709464", "0.61541915", "0.6146...
0.0
-1
Checks to see if the addon has been installed
public function isInstalled() { return (bool)defined('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasInstall();", "function is_installed()\n{\n return has_account() && has_meta();\n}", "public function is_installed() {\n\n }", "public function isInstalled(){\n return true;\n }", "protected function checkIfNoConflictingExtensionIsInstalled() {}", "function sloodle_i...
[ "0.76126766", "0.7502856", "0.7411276", "0.74011153", "0.7107814", "0.70921856", "0.7085542", "0.7076996", "0.70677644", "0.70325315", "0.7031371", "0.7025608", "0.69581217", "0.6900761", "0.68851346", "0.6883645", "0.68735737", "0.68677825", "0.6846862", "0.6833649", "0.6823...
0.680969
25
Return the configuration parameter keys array
public function getKeys() { if (!isset($this->_keys)) { $this->_keys = array('ADDONS_CATALOG_SUPPORT_TICKETS_STATUS'); } return $this->_keys; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeys() {\n\t\treturn $this->config->getKeys();\n\t}", "public function getParamKeys()\n {\n $array = array(\n \"controller\" => array(\n \"def_value\" => null,\n \"allow_null\" => false,\n \"filter\" => new PHPFrame_StringF...
[ "0.7611184", "0.759303", "0.73930305", "0.73437774", "0.72643197", "0.7080823", "0.706536", "0.70236325", "0.70132273", "0.70029926", "0.70029926", "0.70029926", "0.69999397", "0.6987623", "0.6979179", "0.6947565", "0.6911762", "0.690559", "0.69031054", "0.69031054", "0.68902...
0.6750259
26
Creates a new N1qlQuery instance directly from a N1QL DML.
static public function fromString($str) { $res = new CouchbaseN1qlQuery(); $res->options['statement'] = $str; $res->adhoc = true; return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function newQuery();", "protected function newInstance($query)\n {\n if ($this->common) {\n $class = \"Aura\\SqlQuery\\Common\";\n } else {\n $class = \"Aura\\SqlQuery\\\\{$this->db}\";\n }\n\n $class .= \"\\\\{$query}\";\n\n return new ...
[ "0.59979695", "0.59060246", "0.5843446", "0.58426446", "0.5802822", "0.57149905", "0.56897825", "0.56851864", "0.554644", "0.5507051", "0.5439355", "0.54346615", "0.54201585", "0.5399523", "0.5395473", "0.5366484", "0.5330676", "0.5316641", "0.5298395", "0.51259476", "0.51257...
0.5340676
16
Supply positional parameters for query. $query = CouchbaseN1qlQuery::fromString('SELECT FROM `travelsample` WHERE city=$1 LIMIT $2'); $query>positionalParams(array('New York', 3));
public function positionalParams($params) { $this->options['args'] = $params; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function query($q, $params = []);", "abstract function query($queryString, $page = 1);", "abstract public function Query( $query, $params );", "public function buildIndexParameters(array $arguments) {\n\t\tif (isset($arguments['query']) && $arguments['query'] instanceof \\TYPO3\\Flow\\Persist...
[ "0.6143902", "0.5793368", "0.5789914", "0.57484895", "0.56357944", "0.5523129", "0.54634607", "0.5336139", "0.53252417", "0.52956706", "0.5283587", "0.5266278", "0.5237528", "0.52259856", "0.5198508", "0.518308", "0.51702917", "0.5147398", "0.51376456", "0.5131449", "0.511072...
0.47856712
76
Supply named parameters for query. $query = CouchbaseN1qlQuery::fromString('SELECT FROM `travelsample` WHERE city=$city LIMIT $limit'); $query>namedParams(array('city' => 'New York', 'limit' => 3));
public function namedParams($params) { foreach ($params as $key => $value) { $this->options['$' . $key] = $value; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function query($q, $params = []);", "abstract function query($queryString, $page = 1);", "abstract public function Query( $query, $params );", "public function buildIndexParameters(array $arguments) {\n\t\tif (isset($arguments['query']) && $arguments['query'] instanceof \\TYPO3\\Flow\\Persist...
[ "0.5845094", "0.54652256", "0.54448855", "0.5398605", "0.5368937", "0.52734894", "0.5271273", "0.5221008", "0.5220223", "0.5122966", "0.51069784", "0.5096493", "0.50758916", "0.5056556", "0.50334895", "0.50334895", "0.50334895", "0.5032366", "0.50053895", "0.49961218", "0.498...
0.0
-1
Specify the consistency level for this query.
public function consistency($consistency) { if ($consistency == self::NOT_BOUNDED) { $this->options['scan_consistency'] = 'not_bounded'; } else if ($consistency == self::REQUEST_PLUS) { $this->options['scan_consistency'] = 'request_plus'; } else if ($consistency == self::STATEMENT_PLUS) { $this->options['scan_consistency'] = 'statement_plus'; } else { throw new CouchbaseException('invalid option passed.'); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n ...
[ "0.54391", "0.54391", "0.54391", "0.54391", "0.54391", "0.539124", "0.539124", "0.53371596", "0.53371596", "0.53371596", "0.53371596", "0.48485973", "0.471771", "0.46443698", "0.45958912", "0.45412344", "0.45077625", "0.44904783", "0.4417916", "0.44117102", "0.44077125", "0...
0.72178763
0
Specify whether this query is a onetime query, or if it if it should be prepared.
public function adhoc($adhoc) { $this->adhoc = !!$adhoc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_main_query()\n {\n }", "public function isPrepared();", "public function isPrepared();", "function isSQL() {\n\t\treturn $this->flagSQL;\n\t}", "private function isSelectQuery()\n\t{\n\t\treturn sizeof($this->selects) > 0;\n\t}", "public function isQueryable()\n {\n ...
[ "0.62132025", "0.5963333", "0.5963333", "0.57191944", "0.5574271", "0.55414736", "0.5422013", "0.53774524", "0.53589475", "0.53367025", "0.5310714", "0.5281376", "0.5254743", "0.52240187", "0.5216532", "0.5212526", "0.51900566", "0.51817244", "0.5171921", "0.5156452", "0.5150...
0.0
-1
Generates the N1QL object as it will be passed to the server.
public function toObject() { return $this->options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createQuery() ;", "static public function fromString($str) {\n $res = new CouchbaseN1qlQuery();\n $res->options['statement'] = $str;\n $res->adhoc = true;\n return $res;\n }", "protected function genQuery(){\n $secretKey = $this->store->getSecretAccessKey();\n ...
[ "0.5777307", "0.5546724", "0.53556037", "0.53152674", "0.53152674", "0.53152674", "0.53151816", "0.53073007", "0.5226906", "0.51508737", "0.5048628", "0.5005474", "0.5004466", "0.49930707", "0.49888346", "0.49442458", "0.49336052", "0.49266568", "0.49264377", "0.48870426", "0...
0.0
-1
Returns the string representation of this N1ql query (the statement).
public function toString() { return $this->options['statement']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString()\n {\n return \"is equivalent to the SQL query \". \\PHPUnit_Util_Type::toString($this->sql);\n }", "public function __toString(): string\n {\n $this->buildQuery();\n return $this->query;\n }", "public function __toString()\n {\n $query = '';...
[ "0.77558", "0.76190877", "0.7612805", "0.75188756", "0.75185144", "0.7500625", "0.74511397", "0.74171126", "0.74170387", "0.7396947", "0.7364301", "0.7364301", "0.7360879", "0.7357231", "0.73188484", "0.7301447", "0.7189828", "0.71619916", "0.7120991", "0.70652103", "0.705393...
0.7468743
6
Setup before running any test cases
public static function setUpBeforeClass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "...
[ "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "...
0.0
-1
Setup before running each test case
public function setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "...
[ "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "...
0.0
-1
Clean up after running each test case
public function tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public fu...
[ "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "...
0.0
-1
Clean up after running all test cases
public static function tearDownAfterClass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public fu...
[ "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.797683...
0.0
-1
Test case for addVendorComplianceSurvey Create a vendorComplianceSurvey.
public function testAddVendorComplianceSurvey() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVendorComplianceSurvey($body)\n {\n list($response) = $this->addVendorComplianceSurveyWithHttpInfo($body);\n return $response;\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function testAddVendorComplianceSurveyTag()\n {\n }", "...
[ "0.7047817", "0.6537694", "0.61607873", "0.6111061", "0.6014949", "0.60021234", "0.5973309", "0.5960863", "0.5832383", "0.5815311", "0.58092386", "0.58035237", "0.5728759", "0.5726923", "0.57082355", "0.5653393", "0.56231815", "0.55713123", "0.55346024", "0.5522425", "0.55224...
0.67274946
1
Test case for addVendorComplianceSurveyAudit Add new audit for a vendorComplianceSurvey.
public function testAddVendorComplianceSurveyAudit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addVendorComplianceSurveyAuditRequest($vendor_compliance_survey_id, $vendor_compliance_survey_audit)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n ...
[ "0.70903134", "0.6212814", "0.61721814", "0.6085663", "0.58962935", "0.57401407", "0.57172084", "0.570038", "0.56519437", "0.56224126", "0.55424285", "0.5507082", "0.5494336", "0.5437067", "0.53705806", "0.52649516", "0.5234765", "0.5205509", "0.5186142", "0.5152541", "0.5096...
0.68058395
1
Test case for addVendorComplianceSurveyFile Attach a file to a vendorComplianceSurvey.
public function testAddVendorComplianceSurveyFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addVendorComplianceSurveyFileRequest($vendor_compliance_survey_id, $file_name)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing ...
[ "0.7099123", "0.6453667", "0.6424213", "0.5979541", "0.5956533", "0.5840125", "0.5657401", "0.56251615", "0.5587976", "0.55585176", "0.5544165", "0.54320997", "0.5431144", "0.54178476", "0.5410682", "0.5382054", "0.5372956", "0.53595155", "0.5335313", "0.53324795", "0.5315624...
0.66960925
1
Test case for addVendorComplianceSurveyFileByURL Attach a file to a vendorComplianceSurvey by URL..
public function testAddVendorComplianceSurveyFileByURL() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddVendorComplianceSurveyFile()\n {\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n...
[ "0.64774317", "0.64061517", "0.62513965", "0.6089294", "0.6080073", "0.6044074", "0.6038264", "0.5878985", "0.5844206", "0.58036274", "0.5672194", "0.54980135", "0.5432378", "0.53772897", "0.53339636", "0.53320974", "0.5321754", "0.531954", "0.5303674", "0.5252528", "0.524145...
0.77354425
0
Test case for addVendorComplianceSurveyTag Add new tags for a vendorComplianceSurvey..
public function testAddVendorComplianceSurveyTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetVendorComplianceSurveyTags()\n {\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "protected function addVendorComp...
[ "0.7272383", "0.684376", "0.6710105", "0.6561944", "0.63787377", "0.6318094", "0.6198338", "0.61687243", "0.6005345", "0.5990046", "0.5942052", "0.5940935", "0.5906524", "0.58989793", "0.58268875", "0.5817135", "0.5784253", "0.57697695", "0.5754871", "0.5754049", "0.5744009",...
0.7894823
0
Test case for deleteVendorComplianceSurvey Delete a vendorComplianceSurvey.
public function testDeleteVendorComplianceSurvey() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n thro...
[ "0.6932628", "0.6759162", "0.6747259", "0.64157975", "0.63229185", "0.63229185", "0.60964894", "0.60964894", "0.60822535", "0.6078156", "0.6064927", "0.6064927", "0.5869132", "0.5758861", "0.5694972", "0.5688069", "0.5595517", "0.5561817", "0.5528854", "0.5476757", "0.5445683...
0.7542483
0
Test case for deleteVendorComplianceSurveyFile Delete a file for a vendorComplianceSurvey..
public function testDeleteVendorComplianceSurveyFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function testDeleteReplenishmentFile()\n {\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testDeleteExternalShipmentFile()\n {\n }", "public function testDeleteFile()\n {...
[ "0.7365383", "0.69776917", "0.6969207", "0.68709624", "0.6763314", "0.67562115", "0.6615763", "0.654256", "0.6489594", "0.6449828", "0.6433483", "0.63997024", "0.63997024", "0.63175905", "0.6317303", "0.6243808", "0.61395884", "0.61081845", "0.61081845", "0.6054983", "0.60257...
0.8609572
0
Test case for deleteVendorComplianceSurveyTag Delete a tag for a vendorComplianceSurvey..
public function testDeleteVendorComplianceSurveyTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function testDeleteReplenishmentTag()\n {\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "public function test_deleteLegacyLowst...
[ "0.75001514", "0.70544374", "0.7025557", "0.68971145", "0.6834549", "0.6813373", "0.6797553", "0.6786324", "0.67576134", "0.67004544", "0.66620636", "0.6638457", "0.66014445", "0.66011566", "0.66011566", "0.6531757", "0.6512446", "0.6496821", "0.6480844", "0.64776444", "0.647...
0.8647851
0
Test case for getDuplicateVendorComplianceSurveyById Get a duplicated a vendorComplianceSurvey by id.
public function testGetDuplicateVendorComplianceSurveyById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the...
[ "0.7375955", "0.67451006", "0.61819744", "0.57770336", "0.552282", "0.5482857", "0.5471979", "0.5366605", "0.51834106", "0.517411", "0.5128608", "0.51049936", "0.50872576", "0.50774026", "0.5064416", "0.50637686", "0.50333077", "0.5033139", "0.50024766", "0.49658948", "0.4956...
0.70179504
1
Test case for getVendorComplianceSurveyByFilter Search vendorComplianceSurveys by filter.
public function testGetVendorComplianceSurveyByFilter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVendorComplianceSurveyByFilter($filter = null, $page = null, $limit = null, $sort = null)\n {\n list($response) = $this->getVendorComplianceSurveyByFilterWithHttpInfo($filter, $page, $limit, $sort);\n return $response;\n }", "protected function getVendorComplianceSurveyByFi...
[ "0.65983975", "0.6440524", "0.60063905", "0.5990527", "0.5842516", "0.56278217", "0.5604441", "0.5356904", "0.5316118", "0.52802116", "0.52200514", "0.5216986", "0.51793104", "0.51576316", "0.5118981", "0.50689995", "0.5038304", "0.502875", "0.5018832", "0.50145", "0.49898386...
0.6682606
0
Test case for getVendorComplianceSurveyById Get a vendorComplianceSurvey by id.
public function testGetVendorComplianceSurveyById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required...
[ "0.72990334", "0.66549784", "0.6570494", "0.6318107", "0.5884129", "0.58448297", "0.58160836", "0.5800864", "0.57245636", "0.56908196", "0.5637148", "0.5480043", "0.54412645", "0.536774", "0.5337305", "0.5321364", "0.5270184", "0.5233059", "0.5178288", "0.5159211", "0.5132978...
0.6120303
4
Test case for getVendorComplianceSurveyFiles Get the files for a vendorComplianceSurvey..
public function testGetVendorComplianceSurveyFiles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVendorComplianceSurveyFilesRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the require...
[ "0.6860435", "0.66414535", "0.65964895", "0.6038706", "0.58677894", "0.5808163", "0.57320565", "0.5643674", "0.561282", "0.55950725", "0.55810714", "0.55452764", "0.55452764", "0.55452764", "0.5507607", "0.5507478", "0.550697", "0.550697", "0.550697", "0.55004233", "0.5469841...
0.6881038
0