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 Individual Id Sku Hierarchy table Data //
public function updateTbldSkuHierarchyById ( $hierarchy_id, $data ) { $this->db->where( 'id', $hierarchy_id ); return $this->db->update( 'tbld_sku_hierarchy', $data ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateItemSubCategory()\n {\n }", "private function changesku(){\t \r\n\t $this->chartValue(); //adding to output\r\n\t $this->idleStHealthChk(); //adding to output\r\n\t}", "function update_tbllevel($level_id,$params)\n {\n $this->db->where('level_id',$level_id);\...
[ "0.5921233", "0.55760735", "0.5543882", "0.5524524", "0.5460642", "0.5426022", "0.5423431", "0.54173607", "0.5405218", "0.5395277", "0.5383643", "0.5378977", "0.53701013", "0.536224", "0.5361701", "0.5348429", "0.53216577", "0.5300968", "0.52959687", "0.5285785", "0.5280287",...
0.6477451
0
Delete Individual Id Sku Hierarchy table Data //
public function deleteTbldSkuHierarchyById ( $hierarchy_id ) { $this->db->where( 'id', $hierarchy_id ); $this->db->delete( 'tbld_sku_hierarchy' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hapus_data($npm){\r\n $where = array('npm_kd'=> $npm);\r\n $this->db->where($where);\r\n $this->db->delete($this->table_name);\r\n }", "function deleteSchool(){\n mysql_query(\"DELETE FROM school WHERE id='$this->schoolId'\") or die(mysql_error());\n \n // Delete...
[ "0.62733424", "0.62235725", "0.62157756", "0.62139976", "0.6106473", "0.61022407", "0.607078", "0.59924895", "0.59680104", "0.5967285", "0.5959872", "0.5956823", "0.5943167", "0.59360796", "0.5932611", "0.592903", "0.5920857", "0.5917502", "0.58952016", "0.58492196", "0.58338...
0.6052395
7
/ sku Hierarchy end / sku Hierarchy Element Start
public function getSkuHierarchyElements () { // $sql = "select t1.id as sku_hierarchy_element_by_id,t1.element_name,t1.element_code,t1.element_description,t1.element_category_id,t1.parent_element_id, // t2.id as parent_layer_id,t3.id,t3.layer_name as element_category, // (Select b....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_sitetree(&$massiv, $start, $level){\n\t\tglobal $web;\n\t\t\n\t\t$list \t= '';\n\t\t$class \t= '';\n\t\tif (!isset($massiv[$start])) return;\n\t\t\n\t\tif ($level == 1) {\n\t\t\t$class \t= 'sub';\n\t\t} elseif ($level == 2) {\n\t\t\t$class = 'subsub';\n\t\t}\n\t\t\n\t\tforeach($massiv[$start] as $key=...
[ "0.56494725", "0.537528", "0.49004683", "0.4899578", "0.48560148", "0.48519626", "0.48373234", "0.48091143", "0.4774365", "0.47695708", "0.4730076", "0.47124228", "0.47107628", "0.47100213", "0.46926615", "0.46922186", "0.4612582", "0.46087143", "0.46086264", "0.45995483", "0...
0.59179157
0
/ sku Hierarchy Element end / sku Type Start
public function getSkuTypes () { $this->db->select( '*' ); $query = $this->db->get( 'tbld_sku_type' )->result_array(); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSku();", "public function getSku();", "function get_sitetree(&$massiv, $start, $level){\n\t\tglobal $web;\n\t\t\n\t\t$list \t= '';\n\t\t$class \t= '';\n\t\tif (!isset($massiv[$start])) return;\n\t\t\n\t\tif ($level == 1) {\n\t\t\t$class \t= 'sub';\n\t\t} elseif ($level == 2) {\n\t\t\t$class ...
[ "0.51832384", "0.51832384", "0.5126006", "0.5083428", "0.5051348", "0.49378672", "0.49171", "0.48871616", "0.4880285", "0.48791653", "0.48661", "0.4829861", "0.48140955", "0.48014766", "0.4789938", "0.47875044", "0.47833332", "0.47145694", "0.46972987", "0.4678153", "0.463774...
0.0
-1
/ sky Type End / sku start/
public function getSkuName () { $sql = " SELECT t1.id,sku_name,sku_description,sku_code,sku_weight_id,sku_lpc,sku_volume,sku_launch_date,t8.sku_type_name, GROUP_CONCAT(t5.unit_name SEPARATOR '<br /><br />') AS unit,t2.quantity, GROUP_CONCAT(ROUND(t2.db_lifting_price,2) SEPARA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function changesku(){\t \r\n\t $this->chartValue(); //adding to output\r\n\t $this->idleStHealthChk(); //adding to output\r\n\t}", "function getSkus() {\n\techo \"Getting Skus </br>\";\n\t$response = getRequest('/api/sku');\n\tprintInfo($response);\n}", "public function getSku();", "public ...
[ "0.6040414", "0.5886506", "0.5355766", "0.5355766", "0.52503365", "0.5239037", "0.51626706", "0.5157741", "0.5147707", "0.5128393", "0.5109693", "0.5103479", "0.5023111", "0.49958763", "0.49940407", "0.48756325", "0.48499376", "0.48297203", "0.48259583", "0.48176807", "0.4779...
0.4525807
50
/ sku End/ / External sku start/
public function getExternalSkuData () { $sql = "SELECT t1.id,t1.sku_name,t1.sku_creation_date,t1.sku_description,t3.sku_active_status_name,t4.unit_name FROM `tbld_sku` as t1 inner join `tbli_sku_mou_price_mapping` as t2 on t1.id=t2.sku_id left join `tbld_sku_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function changesku(){\t \r\n\t $this->chartValue(); //adding to output\r\n\t $this->idleStHealthChk(); //adding to output\r\n\t}", "function getSkus() {\n\techo \"Getting Skus </br>\";\n\t$response = getRequest('/api/sku');\n\tprintInfo($response);\n}", "public function generate()\n {\n ...
[ "0.66697866", "0.6255671", "0.59873074", "0.57983744", "0.5670071", "0.56231505", "0.5606088", "0.5541013", "0.5502858", "0.5484087", "0.5484087", "0.54610896", "0.541938", "0.5357097", "0.5330703", "0.531216", "0.52789634", "0.5259147", "0.52298397", "0.5221661", "0.5214289"...
0.0
-1
/ DBHouse SKU Mapping
public function getDBHouseID ( $product_line_id ) { $this->db->select( 'dbhouse_id' ); $this->db->from( 'tbli_dbhouse_product_line_mapping' ); $this->db->where( 'product_line_id', $product_line_id ); $query = $this->db->get()->result_array(); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductSKU()\n {\n }", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::SKU;\n }", "public function getSku();", "public function getSku();", "public function getSKUPartsData() {\n $partsData = DB::table('part_number')->select('SKU', 'id')->...
[ "0.59674865", "0.59408355", "0.5776662", "0.5776662", "0.5775418", "0.57518893", "0.5717515", "0.56815773", "0.5626246", "0.5599588", "0.55876255", "0.5581125", "0.54886085", "0.5485359", "0.5438903", "0.54207534", "0.5413655", "0.5366685", "0.5311246", "0.53036743", "0.53026...
0.0
-1
/ SR SKU Mapping
public function getSRID ( $product_line_id ) { $this->db->select( 'emp_id' ); $this->db->from( 'tbli_db_house_emp_product_line_mapping' ); $this->db->where( 'pl_id', $product_line_id ); $query = $this->db->get()->result_array(); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductSKU()\n {\n }", "function generateSku(){\n\t\t$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t$sku = mt_rand(10000, 99999) . mt_rand(10000, 99999) . $characters[mt_rand(0, strlen($characters) - 1)];\n\t\treturn str_shuffle($sku);\n\t}", "public function setSku($sku);", "...
[ "0.58582574", "0.5853661", "0.58448863", "0.58376545", "0.579764", "0.5779383", "0.5779383", "0.5764133", "0.5730836", "0.56383586", "0.5626426", "0.5619818", "0.55911314", "0.5573953", "0.5527622", "0.5496251", "0.549089", "0.54848135", "0.54567075", "0.5446881", "0.54427326...
0.0
-1
/ Add Sku Unit
public function addSkuUnits ( $data ) { return $this->db->insert( 'tbld_unit', $data ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function changesku(){\t \r\n\t $this->chartValue(); //adding to output\r\n\t $this->idleStHealthChk(); //adding to output\r\n\t}", "public function setSku($sku);", "function fontunit($args) {\r\n\t\t$args['selections'] = array('px'=>'px','pt'=>'pt', 'em'=>'em');\r\n\t\t$args['multiple'] = fal...
[ "0.5584529", "0.5435871", "0.5255547", "0.51158816", "0.5105537", "0.5058601", "0.5003133", "0.4996606", "0.49886966", "0.49545717", "0.49364898", "0.49245793", "0.49234742", "0.49061763", "0.49061763", "0.4882671", "0.48621067", "0.48466876", "0.48177937", "0.48103306", "0.4...
0.5890436
0
/ Add SKU Packaging
public function addsku_packaging ( $data ) { return $this->db->insert( 'tbli_sku_mou_price_mapping', $data ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AddProduct () {\n $piece1 = '(';\n \t$piece2 = '';\n\t\t\n\t\tif(isset($SKU)) {\n\t\t\t$piece1 .= 'ProductSKU,';\n\t\t\t$piece2 .= \"'\" . $this->SKU . \"'\";\n $piece2 .= ',';\n\t\t}\n\t\telse {\n\t\t\techo \" \\n Error: SKU Field Empty \\n \";\n\t\t\treturn false;\n ...
[ "0.6094949", "0.58858764", "0.57368255", "0.5719166", "0.5696529", "0.56493306", "0.5614807", "0.5564492", "0.5545554", "0.5545529", "0.5544812", "0.5534833", "0.55290216", "0.5528978", "0.54499674", "0.54417497", "0.5406038", "0.5406038", "0.5389496", "0.53563946", "0.530549...
0.6438181
0
/ db houses start/
public function getAllDbHouses () { $this->db->select( '*' ); $this->db->from( 'tbld_distribution_house' ); $query = $this->db->get()->result_array(); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function db_startup(){\n\t\n\t}", "public function startDump() {\n\t\t// Get the details for the current database.\n\t\t$cmd = $this->getDatabaseCommand();\n\t\t// Run the command.\n\t\tSakeMoreHelper::runCLI($cmd);\n\t}", "private function initDatabase() {\n \n \n \n }", "public func...
[ "0.73081326", "0.700807", "0.68761647", "0.6732055", "0.66143495", "0.6566201", "0.6560385", "0.6556669", "0.6553532", "0.6531732", "0.6480305", "0.63717836", "0.6369448", "0.6322773", "0.63081336", "0.6264797", "0.6191507", "0.61467224", "0.61405784", "0.61405784", "0.614024...
0.0
-1
/ db houses end/ / inventory start/
public function insertInventory ( $data ) { return $this->db->insert( 'tbld_inventory', $data ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function manageinventory()\n\t\t{\n\t\t\t$stageDBO = DatabaseObjectFactory::build('Material');\n\t\t\t$arr = ['material_id','unit_price'];\n\t\t\t$materials = $stageDBO->getRecords($arr);\n\t\t\t\n\t\t\t$stageDBO = DatabaseObjectFactory::build('craft');\n\t\t\t$arr = ['craft_id','calculated_qoh'];\n\...
[ "0.5603414", "0.5541704", "0.5300339", "0.5249104", "0.520799", "0.5109058", "0.5102577", "0.50899875", "0.50768036", "0.5054634", "0.5050996", "0.5027616", "0.50144535", "0.5011416", "0.49986196", "0.49305484", "0.49125412", "0.49048203", "0.48784658", "0.48768386", "0.48719...
0.0
-1
/ inventory end / / unit start/
public function getUnitQtyByUnitId ( $id ) { $this->db->select( 'qty' ); $this->db->where( "id", $id ); $query = $this->db->get( 'tbld_unit' )->result_array(); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function outOperation(){\n $this->inventory->setQuantity($this->inventory->getQuantity() - $this->getQuantity());\n $this->type = \"OUT\";\n }", "public function getUnit();", "public function startPowerUnits() {\n\t\t\n\t}", "public function nextUnit(): string;", "public function de...
[ "0.56536716", "0.55817884", "0.54207534", "0.54072124", "0.5344792", "0.53400266", "0.531343", "0.5273264", "0.5256596", "0.5250887", "0.52453804", "0.52367294", "0.52356726", "0.5215593", "0.5166344", "0.5163123", "0.51569957", "0.5146612", "0.5143631", "0.5125425", "0.51094...
0.0
-1
Make the cat go into its house
public function goHome() { if ($this->_home->door->isOpen()) { $this->_home->letCatIn($this); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function letCatIn(Cat $cat) {\r\n\t\t$this->_cats[] = $cat;\r\n\t}", "function target_add_cat($cat)\n{\n\tif ($GLOBALS['VERBOSE']) pf('...'. $cat['name']);\n\n\tq('INSERT INTO '. $GLOBALS['DBHOST_TBL_PREFIX'] .'cat (id, name, view_order, cat_opt) \n\t VALUES('. (int)$cat['id'] .','. _esc($cat['name']) ....
[ "0.5962898", "0.54485714", "0.52690226", "0.5206642", "0.5142565", "0.5142565", "0.5006432", "0.49256963", "0.49181968", "0.49175054", "0.4891032", "0.48711708", "0.48673785", "0.48070306", "0.48015162", "0.47801065", "0.47066224", "0.46975952", "0.4666195", "0.46628284", "0....
0.0
-1
Make the cat go into a box
public function goInBox(Box $box) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function box()\n {\n echo \"<div style='height:54px;width:54px;background-color:{$this};color:{$this->black_or_white()};padding:3px;'>{$this}</div>\";\n }", "public function box()\n {\n }", "private function box( $title, $content ) {\n\t\t// @codingStandardsIgnoreLine\n\t\techo '<div ...
[ "0.63974315", "0.60132164", "0.5789087", "0.56640995", "0.5491566", "0.5467979", "0.54352826", "0.53861284", "0.52841055", "0.52230656", "0.52068084", "0.5181955", "0.51817244", "0.5164691", "0.5144654", "0.5078062", "0.5067036", "0.50340796", "0.502842", "0.5026403", "0.5023...
0.55986136
4
Uncomment the below to wipe the table clean before populating
public function run() { DB::table('colloques')->truncate(); $locations = [ [ 'name' => 'Aula des Jeunes-Rives', 'adresse' => 'Espace Louis-Agassiz 1, Neuchâtel', 'url' => '', 'map' => 'carte.jpg', ] ];...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clean(): void\n {\n $this->truncateJournalTable();\n $this->output(\"<success>Table {$this->internalTable} truncated</success>\");\n }", "public function clean() {\n $this->data = \"\";\n $this->currentRow = 1;\n $this->curPosition = 0;\n }", "private function getC...
[ "0.72845", "0.7246547", "0.7113251", "0.70214254", "0.70022357", "0.69601506", "0.69232076", "0.68886465", "0.687494", "0.6865221", "0.67039084", "0.6687502", "0.66790766", "0.66769564", "0.6674517", "0.6666366", "0.66458136", "0.66273004", "0.6609333", "0.6593146", "0.658352...
0.0
-1
Parses the received packet for problems and warnings.
abstract protected function ParsePacket( $packet );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parse()\r\n\t{\r\n\t\t// Suppress annoying notices/warnings\r\n\t\tset_error_handler(function() { /* Nothing */ }, E_NOTICE|E_WARNING);\r\n\r\n\t\t$structure = mailparse_msg_get_structure($this->resource);\r\n\t\t$this->parts = array();\r\n\t\tforeach ($structure as $part_id) {\r\n\t\t\t$part = ma...
[ "0.61026335", "0.56790835", "0.5665795", "0.5603168", "0.5578566", "0.55110675", "0.54981583", "0.5437744", "0.5359541", "0.5352917", "0.532419", "0.5294952", "0.5276526", "0.52681565", "0.5256551", "0.51810104", "0.51350474", "0.5113144", "0.5104576", "0.50874853", "0.508461...
0.6879847
0
Get the critical errors parsed from the packet
abstract public function GetProblems();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getError() {\n\t\t$error = array();\n\t\t$error['message'] = $this->err_message;\n\t\t$error['code'] = $this->err_code;\n\t\treturn $error;\n\t}", "public function getServerErrors()\r\n {\r\n $srvErrors = array();\r\n $errMessages = $this->getMessages();\r\n \r\n ...
[ "0.60501224", "0.6004456", "0.59612775", "0.5926329", "0.590088", "0.58378977", "0.5830883", "0.5805109", "0.57875836", "0.5786439", "0.57352185", "0.57293755", "0.5719893", "0.5702673", "0.5702673", "0.5702673", "0.5702673", "0.5689944", "0.56764746", "0.5672565", "0.5658401...
0.0
-1
Get the noncritical warnings parsed from the packet
abstract public function GetStatus();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWarnings(): array\n {\n return $this->warnings;\n }", "public function getWarnings(): array\n {\n return $this->warnings;\n }", "public function getWarnings()\n {\n return $this->_getChildrenByName('warning');\n }", "public function getWarnings() : ar...
[ "0.64089197", "0.64089197", "0.63970256", "0.63857704", "0.635125", "0.6252213", "0.62373614", "0.61978203", "0.60288775", "0.5987931", "0.5987931", "0.5987931", "0.5987931", "0.5987931", "0.5975825", "0.59542894", "0.59470135", "0.5942864", "0.5853626", "0.58166957", "0.5813...
0.0
-1
Runs all the fancy actions and filters to create our meta box.
public static function init() { add_action( 'add_meta_boxes', array( __CLASS__, 'createMetaBox' ) ); add_actioN( 'save_post', array( __CLASS__, 'saveMetaData' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildCustomPostWidgets()\n {\n // add_meta_box( $id, $title, $callback, $screen, $context, $priority, $callback_args );\n add_meta_box( 'cover_image_meta_box', 'Add an Image', array($this,'selectImageMetaBox'), 'playscripts', 'normal', 'high' );\n add_meta_box( 'cover_sound_meta_box', 'Add a Sou...
[ "0.6836924", "0.6822224", "0.6764596", "0.67598534", "0.6733694", "0.6673264", "0.6665321", "0.66421163", "0.66403085", "0.6625783", "0.66044825", "0.6590086", "0.6584424", "0.65734494", "0.6556748", "0.6538292", "0.652184", "0.65149", "0.65079796", "0.64951104", "0.64833194"...
0.6571844
14
Create the post meta box for our fields.
public static function createMetaBox() { add_meta_box( \WPDisablePage\Setup::PLUGIN_ID, // Metabox ID \WPDisablePage\Setup::PLUGIN_NAME, // Metabox Name array( __CLASS__, 'createView' ), // Metabox Callback apply_filters( strtolower( \WPDisablePage\Setup::PL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_meta_post_box() {\n\tif ( function_exists('add_meta_box') ) {\n\t\tadd_meta_box( 'new-meta-post-boxes', '<div class=\"icon-small\"></div> '.PEXETO_THEMENAME.' POST SETTINGS', 'new_meta_post_boxes', 'post', 'normal', 'high' );\n\t}\n}", "public function create_meta_box() {\n\t\tadd_meta_box( 'slid...
[ "0.81735677", "0.81513596", "0.80397046", "0.78426355", "0.78294206", "0.77826995", "0.7720374", "0.75726646", "0.7528612", "0.752779", "0.7497234", "0.74915934", "0.7480013", "0.74760693", "0.7469503", "0.7462559", "0.7439277", "0.74222654", "0.74053377", "0.73991024", "0.73...
0.7767739
6
Display's our meta box
public static function createView( \WP_Post $post ) { require( WPDisablePage_DIR . '/src/templates/admin/meta_box.phtml' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function display_meta_box() {\n\t\t\n\t\tinclude_once( 'views/q-and-a-admin.php' );\n }", "function rs_meta_box()\n{\n add_meta_box('rs_focus', 'Destaque na home', 'rs_focus', 'post', 'side');\n add_meta_box('rs_author', 'Autor', 'rs_author', 'post', 'side');\n add_meta_box('rs_author', 'Autor', 'rs...
[ "0.85132086", "0.7931869", "0.79127264", "0.7732039", "0.7731091", "0.76135564", "0.76056254", "0.7532186", "0.7525913", "0.74966204", "0.7403616", "0.7395427", "0.7389931", "0.7383388", "0.7367782", "0.7366811", "0.73558015", "0.7329221", "0.7288091", "0.7282485", "0.7270925...
0.0
-1
Save the post meta data from our plugin
public static function saveMetaData( $post_id ) { // Check to see if multiple items should flag so the data isn't saved if( !wp_verify_nonce( $_POST[self::NONCE_NAME], self::NONCE_ACTION ) ) { return; } // Set the data we want to be saved ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function save_meta() {}", "protected function save_meta() {\n\n\t\t// save all data in array\n\t\tupdate_post_meta( $this->post_id, APP_REPORTS_P_DATA_KEY, $this->meta );\n\n\t\t// also save total reports in separate meta for sorting queries\n\t\tupdate_post_meta( $this->post_id, APP_REPORTS_P_TOTAL_KE...
[ "0.809808", "0.7833368", "0.75237334", "0.74616605", "0.7355808", "0.72855973", "0.72277004", "0.72026795", "0.71884656", "0.7168112", "0.7140496", "0.71065354", "0.7099175", "0.70936835", "0.7083562", "0.7074082", "0.7069365", "0.70217687", "0.70125234", "0.6995267", "0.6983...
0.6798596
45
Obtiene los registro de la tabla de modas
function obtenerTemporal() { $sqlstr = "select `tmp_prod`.`id_product`, `tmp_prod`.`nombre`, `tmp_prod`.`cantidad`, `tmp_prod`.`price`, `tmp_prod`.`pricetot` from `tmp_prod`"; $tmp = array(); $tmp = obtenerRegistros($sqlstr); return $tmp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function tbl_permisos_modulos() {\r\n\t\t\t$this->permisos_modulo = $this->esquema->createTable('PERMISOS_MODULOS');\r\n\t\t\t$this->permisos_modulo->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de...
[ "0.7261502", "0.6815053", "0.67108047", "0.6636938", "0.66349256", "0.6580516", "0.6559903", "0.6435983", "0.64160293", "0.6367389", "0.6354693", "0.63404673", "0.629774", "0.6297591", "0.62668806", "0.6246525", "0.62382317", "0.6236082", "0.62318665", "0.6219244", "0.6190334...
0.0
-1
Seed the application's database.
public function run() { // $this->call(UsersTableSeeder::class); factory(App\User::class, 5)->create(); factory(App\Profile::class, 5)->create(); factory(App\Tweet::class, 5)->create(); factory(App\Reply::class, 5)->create(); DB::table('followers')->insert([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=...
[ "0.8064933", "0.7848158", "0.7674873", "0.724396", "0.7216743", "0.7132209", "0.70970356", "0.70752203", "0.704928", "0.699208", "0.6987078", "0.69839287", "0.6966499", "0.68990964", "0.6868679", "0.68468624", "0.68307716", "0.68206114", "0.6803113", "0.6803113", "0.6801801",...
0.0
-1
Run the database seeds.
public function run() { // Vaciamos la tabla chat Chat::truncate(); // Obtenemos todos los usuarios $users = User::all(); $var = 5; foreach ($users as $user) { // iniciamos sesión con cada uno JWTAuth::attempt(['email' => $user->email, 'passwo...
{ "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.80130625", "0.79795986", "0.79764974", "0.79524934", "0.7950615", "0.79505694", "0.7944086", "0.7941758", "0.7938509", "0.79364634", "0.79335415", "0.7891555", "0.78802574", "0.78790486", "0.7878107", "0.7875447", "0.78703815", "0.7869534", "0.7851931", "0.7850407", "0.784...
0.0
-1
Run the database seeds.
public function run() { $this->avatars = json_decode(file_get_contents(__DIR__ . '/avatars.json'), true); Model::unguard(); $this->faker = Faker\Factory::create(); DB::table('organisations')->delete(); DB::table('teams')->delete(); DB::table('users')->delete(); DB::t...
{ "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
Define the model's default state.
public function definition() { return [ 'department' => $this->faker->word, 'sector' => $this->faker->word, 'service' => $this->faker->jobTitle, 'person' => $this->faker->name, 'company' => $this->faker->company, 'final' => 0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultState()\r\n\t{\r\n\t}", "static function get_default_state();", "public function getDefaultUserState();", "private function setDefaultStates(): void\n {\n foreach ($this->arr_attributes as $strParamName) {\n $this->states[$strParamName] = $this->params->get($strParamNa...
[ "0.77757794", "0.72255844", "0.6857964", "0.67950636", "0.67661", "0.6433752", "0.64074224", "0.63712305", "0.61876214", "0.61864567", "0.6159088", "0.61543477", "0.6153316", "0.61428887", "0.6116904", "0.61084956", "0.6106097", "0.60391295", "0.60389197", "0.6019848", "0.598...
0.0
-1
Search the max Id
public static function AddNew($oFacturacion){ $query = " SELECT MAX(facturacionID) FROM crm_facturacion"; $result = parent::GetResult($query); $oFacturacion->facturacionID = parent::fetchScalar($result)+1; //$oFacturacion->varName = $oFacturacion->oFacturacion; //Insert data to table $q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getMaxId () {\n return Dao::queryValue(\"select max(id) from medicines where id < 10000000\");\n }", "private function queryMaxId(){\r\n $this->conexion->conectar();\r\n $consultaMaxId =\"SELECT (max(id_perfil)+1) AS id FROM perfil\";\r\n $queryId = $this->c...
[ "0.76988757", "0.7142699", "0.7117519", "0.67650896", "0.67588836", "0.67364836", "0.6734832", "0.66911215", "0.6688182", "0.6679954", "0.6633593", "0.65968275", "0.65738654", "0.655123", "0.6540852", "0.6527021", "0.6495591", "0.645384", "0.64463323", "0.6407183", "0.6398577...
0.0
-1
Update data to table
public static function UpdateCosto($Codigo,$costoTotal){ $query = "UPDATE crm_facturacion SET costoTotal = '$costoTotal' WHERE facturacionID=$Codigo"; return parent::Execute($query); //echo $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_a...
[ "0.7605804", "0.71007603", "0.7092073", "0.70888436", "0.7073323", "0.70580107", "0.70255905", "0.70205086", "0.7001686", "0.69665486", "0.69631714", "0.69492435", "0.69434565", "0.6877409", "0.6877409", "0.6876313", "0.6844399", "0.6838165", "0.68311304", "0.68266356", "0.68...
0.0
-1
Display a listing of the resource.
public function index() { try { $usuarioLogado = UsuarioController::retornaUsuarioLogado(); if(!$usuarioLogado->perfil->super_user) throw new \Exception('Você não possui permissão para acessar este recurso.'); $empresasCadastradas = self::listaTodasAsEmpr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Store a newly created resource in storage.
public function store(EmpresaPostOrUpdateRequestValidation $request) { DB::beginTransaction(); try{ $usuarioLogado = UsuarioController::retornaUsuarioLogado(); if(!$usuarioLogado->perfil->super_user) throw new \Exception('Você não possui permissão para acessa...
{ "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
Update the specified resource in storage.
public function update(EmpresaPostOrUpdateRequestValidation $request, $id) { DB::beginTransaction(); try{ $usuarioLogado = UsuarioController::retornaUsuarioLogado(); if(!$usuarioLogado->perfil->super_user) throw new \Exception('Você não possui permissão para ...
{ "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){ try { $usuarioLogado = UsuarioController::retornaUsuarioLogado(); if(!$usuarioLogado->perfil->super_user) throw new \Exception('Você não possui permissão para acessar este recurso.'); $empresa = Empresa::findOrFail($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.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853"...
0.0
-1
Restore the specified resource to storage
public function restore($id){ try { $usuarioLogado = UsuarioController::retornaUsuarioLogado(); if(!$usuarioLogado->perfil->super_user) throw new \Exception('Você não possui permissão para acessar este recurso.'); $empresa = Empresa::withTrashed()->findOrFail...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restore();", "public function restore() {}", "public function restore($id);", "public function restore($id);", "public function restore($id);", "public function restore($id);", "public function restore()\n {\n }", "public function restore()\n {\n //\n }", "public ...
[ "0.70306885", "0.7020332", "0.69441843", "0.69441843", "0.69441843", "0.69441843", "0.6861517", "0.68065375", "0.67169356", "0.6540009", "0.64836925", "0.6456305", "0.63944286", "0.6291426", "0.6185406", "0.61730397", "0.6169024", "0.61667275", "0.615217", "0.61463046", "0.61...
0.0
-1
get total count of patents
public function getTotal() { $response = $this->client->post( 'https://idf.intven.com/public_patent_listing.json', [ 'verify' => false, 'json' => [ "report_type" => "public_patent_listing", "queryFields" => new \stdClass(), "filters"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countMatches($pat) {\r\n $num = preg_match_all($pat, $this->contents, $matches);\r\n //var_dump($matches); // debug patterns\r\n return $num;\r\n }", "function count()\n {\n return $this->_matchesNum;\n }", "public function GetPatientsCount();", "public fu...
[ "0.7061345", "0.6556615", "0.6509231", "0.64331996", "0.6413745", "0.6413745", "0.6413745", "0.6399894", "0.6399894", "0.62185603", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", "0.6178579", ...
0.63939893
9
get all the patents
public function getAll() { $response = $this->client->post( 'https://idf.intven.com/public_patent_listing.json', [ 'verify' => false, 'json' => [ "report_type" => "public_patent_listing", "queryFields" => new \stdClass(), "filters" =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find_all() {\n $this->ensure_path_exists();\n $files = glob($this->glob_keys_pattern(), GLOB_MARK | GLOB_NOSORT);\n $return = array();\n if ($files === false) {\n return $return;\n }\n foreach ($files as $file) {\n $return[] = substr(b...
[ "0.6249042", "0.61362493", "0.6082216", "0.6031204", "0.57674956", "0.56607276", "0.5582528", "0.5582528", "0.55787194", "0.55692744", "0.5541438", "0.552661", "0.5483616", "0.5483616", "0.5480713", "0.54735243", "0.5457536", "0.5457536", "0.5456774", "0.5447329", "0.5446411"...
0.0
-1
Specify Model class name
public function model() { return Company::class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getModelName()\n {\n if (isset($this->options[\"type\"])) {\n $type = ucfirst($this->options[\"type\"]);\n $class = \"\\\\app\\\\models\\\\feeds\\\\\" . $type;\n if (class_exists($class)) {\n return $class;\n }\n }\n ...
[ "0.768929", "0.76618075", "0.7585344", "0.7583571", "0.7583571", "0.7542252", "0.75075734", "0.74778146", "0.74702877", "0.74578375", "0.74578375", "0.7453601", "0.7453601", "0.7447208", "0.7444998", "0.7435527", "0.74304074", "0.7416409", "0.74128395", "0.74125767", "0.74125...
0.0
-1
Boot up the repository, pushing criteria
public function boot() { $this->pushCriteria(app(RequestCriteria::class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initRepository(): void;", "public function init_repo() {\n\n\t\t\t// include the repository configuration\n\t\t\t$repos = include_once(CONFIGPATH . 'repositories.php' );\n\n\t\t\t// the $_GET['deploy'] parameter from request\n\t\t\t$requested_deploy = filter_input( \\INPUT_GET, 'deploy', \\FILTER...
[ "0.6122", "0.5905346", "0.57614845", "0.570109", "0.5699119", "0.56443775", "0.56443775", "0.5574267", "0.55617315", "0.5430829", "0.5423134", "0.5403888", "0.5380596", "0.53699553", "0.5349921", "0.5336064", "0.5313255", "0.52767074", "0.5240257", "0.5222584", "0.5185739", ...
0.0
-1
Returns routes to connect to the given application.
public function connect(Application $app) { $controllers = $app['controllers_factory']; $controllers->get('/autoEntree','App\Controller\EntreeController::autoCompleteEntree')->bind('entree.autoComplete'); $controllers->get('/getId','App\Controller\EntreeController::getId')->bind('entree.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function connect(Application $app)\n {\n /** @var \\Silex\\ControllerCollection $route */\n $route = $app['controllers_factory'];\n\n $route->get('/info', HelloController::class . '::getInfo');\n $route->get('/{name}', HelloController::class . '::getName');\n\n return $...
[ "0.6998856", "0.6915073", "0.6760365", "0.66096467", "0.64436364", "0.64282656", "0.6402604", "0.6392953", "0.6384791", "0.63411754", "0.6331039", "0.6327682", "0.6310386", "0.62962806", "0.62962806", "0.6250972", "0.6215056", "0.61082816", "0.60995054", "0.60995054", "0.6099...
0.57897943
33
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
function __construct(){ parent::__construct(); $this->load->library('session'); $this->load->database(); $this->load->helper('url'); $this->load->library('form_validation'); $this->load->helper('security'); $this->load->model('All_page'); $this->load->library('email'); $this->l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome...
[ "0.7654226", "0.74120015", "0.73941106", "0.731618", "0.7225734", "0.7225734", "0.71892303", "0.71651614", "0.71515816", "0.71449816", "0.7107295", "0.7076961", "0.70735484", "0.70390433", "0.7028994", "0.7028994", "0.7028994", "0.7028994", "0.7028994", "0.6972685", "0.696650...
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82678324", "0.8173564", "0.78118384", "0.7706353", "0.76816905", "0.7659159", "0.74858105", "0.7406485", "0.7298472", "0.7253435", "0.7196091", "0.7174443", "0.7016074", "0.6989523", "0.69837826", "0.69728553", "0.69640046", "0.69357765", "0.6897687", "0.689282", "0.687757...
0.0
-1
Show the application dashboard.
public function index() { //recupero o id do usuario logado $id_user = Auth::user()->id; //select * from users where id= id_passado $user = User::find($id_user); //busco os dados pela chave estrangeira $contact = Contatos::where('id_user',$id_user)->get(); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
fonction getIdTitulaire(num_complet_cpte) returns id_titulaire,id_cpte,num_complete_cpte t361
function getIdtitulaire($num_complete_cpte) { global $dbHandler,$global_id_agence; $db = $dbHandler->openConnection(); $sql = " SELECT id_cpte,id_titulaire,num_complet_cpte from ad_cpt where num_complet_cpte = '$num_complete_cpte' ; "; $result = $db->query($sql); if (DB::isError($result)) { $dbHandler->closeCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cargaIdUbicacion() {\n $dao = new PGDAO();\n $strSql = $this->COLECCIONMAPEOUBICA . $this->propiedad->getId_ubica();\n $arrayDatos = $this->leeDBArray($dao->execSql($strSql));\n $id = $arrayDatos[0]['zpubica'];\n return $id;\n }", "public static function C...
[ "0.63185626", "0.6189492", "0.6114586", "0.6114586", "0.61027193", "0.60682213", "0.6022981", "0.601698", "0.6016647", "0.6016647", "0.5983273", "0.5980345", "0.59797245", "0.59534144", "0.59474593", "0.59263945", "0.59200686", "0.5853078", "0.5848615", "0.5802443", "0.578616...
0.7821603
0
/ Cette PS bloque le compte $id_cpte
function blocageCompteInconditionnel ($id_cpte) { global $dbHandler,$global_id_agence; $db = $dbHandler->openConnection(); $sql = "SELECT etat_cpte FROM ad_cpt WHERE id_ag = $global_id_agence AND id_cpte = $id_cpte;"; $result=$db->query($sql); if (DB::isError($result)){ $dbHandler->closeConnection(false); s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlockForEdit($id)\n {\t\n \t$DB\t\t\t= Zend_Registry::get('front_db');\n\t\t$this->view->assign('form_action', '/skiner/block/edit/id/'.$id);\n\t\t//$sql\t= \"select * from `wbs_skin_block` where \".Application_Model_Pubcon::get(1000). \" and `id`='\".$id.\"'\";\n\t\t$sql\t= \"SELECT * FRO...
[ "0.6159074", "0.5798624", "0.57816863", "0.5773856", "0.5746534", "0.5709933", "0.5669744", "0.5667635", "0.56286716", "0.5545264", "0.55301195", "0.5518028", "0.5515942", "0.5489696", "0.5471519", "0.54623055", "0.545624", "0.54374224", "0.54228544", "0.5398787", "0.53611594...
0.72676164
0
/ Renvoie les infos sur une banque. S'il n'y a rien on renvoie NULL
function getInfosBanque($id_bqe=NULL,$id_ag=NULL) { global $dbHandler; $db = $dbHandler->openConnection(); $sql = "SELECT * FROM adsys_banque"; if ($id_bqe != NULL) { if ($id_ag == NULL) $sql .=" WHERE id_banque = $id_bqe"; else $sql .=" WHERE id_banque = $id_bqe and id_ag = $id_ag "; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculer_boucle($id_boucle, &$boucles) {\n\n\t// gerer les statuts si declares pour cette table\n\t/*\n\t$table_statut[nom_table][] = array(\n\t\t'champ'=>'statut', // champ de la table sur lequel porte le filtrage par le statut\n\t\t'publie'=>'publie', // valeur ou liste de valeurs, qui definissent l'ob...
[ "0.5836682", "0.57544816", "0.5717129", "0.56742936", "0.5671754", "0.5653974", "0.56488687", "0.56320333", "0.5631857", "0.5611364", "0.55320394", "0.5529355", "0.5501364", "0.5494666", "0.54777265", "0.54676735", "0.54242706", "0.5420637", "0.5415435", "0.540274", "0.539663...
0.67104536
0
Fonction pour verifier si un montant est des decimaux ex. 100.15 ... PARAM : mnt RETURN : BOOLEAN $hasDecimal
function hasDecimalMontant($mnt) { $hasDecimal = false; $mntIAP_Arrondie = ROUND($mnt); $diff = abs($mnt - $mntIAP_Arrondie); if ($diff > 0){ $hasDecimal = true; } return $hasDecimal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_decimal( $val )\n {\n return is_numeric( $val ) && floor( $val ) != $val;\n }", "public static function _decimal($value, $field, $min_decimal = 1, $max_decimal=null) {\n\t\t$regex = '/^-?[0-9]+\\.[0-9]{' . $min_decimal . ',' . $max_decimal . '}$/';\n\t\treturn (bool)preg_match($regex, $v...
[ "0.72571033", "0.66567105", "0.66440564", "0.65958655", "0.65188366", "0.64843667", "0.6460818", "0.6015678", "0.6007987", "0.59609187", "0.59336364", "0.586818", "0.5811101", "0.58083457", "0.57474077", "0.5738632", "0.56050223", "0.56050223", "0.5595157", "0.5590398", "0.55...
0.83072335
0
Retourner le solde du compte client
function getSoldeCpte($id_cpte) { global $dbHandler; global $global_id_agence; $db = $dbHandler->openConnection(); $sql = "SELECT solde "; $sql .= "FROM ad_cpt "; $sql .= "WHERE id_ag = $global_id_agence AND id_cpte = $id_cpte "; $result=$db->query($sql); if (DB::isError($result)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCliente();", "public function getSoldeClient($idClient) {\n return $this->clientManager->getSolde($idClient);\n }", "public function getClient() {}", "function afficherclient()\r\n\t{\r\n\t\t$sql=\"SElECT * From user\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry\r\n\t\t{\r\n\t...
[ "0.7216472", "0.692574", "0.6618754", "0.6503531", "0.6469285", "0.6469285", "0.64450175", "0.64238214", "0.64238214", "0.64238214", "0.63995165", "0.6317794", "0.6317053", "0.629139", "0.6279561", "0.62789464", "0.62676346", "0.6229504", "0.62244767", "0.6222611", "0.6189082...
0.0
-1
Send POST Request To Send New Message In Thread
function sendMessage() { $url = './sendMessages.php'; $data = array( 'session_id' => $_SESSION[ 'code' ], 'email' => $_POST[ 'email' ], 'message_text' => $_POST[ 'message' ], 'thread_id' => $_POST[ 'id' ] ); $options = array( 'http' => array( 'method' => 'POST', 'content' => http_build_query($da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postAction() {\n\t\t$this->sendMessage();\n\t}", "function sendRequest()\n\t\t{\n\t\t\t$stream = $this->getRequestStream();\n\t\t\t$stream->write( $this->getRequestString() );\n\t\t\t$stream->close();\n\t\t}", "public function postSend()\n {\n }", "public function sendPost(){\n\...
[ "0.6692927", "0.6465889", "0.6213722", "0.60436106", "0.6004042", "0.59809446", "0.59677315", "0.5885979", "0.585215", "0.5833294", "0.58284706", "0.5779115", "0.5779115", "0.5779115", "0.57677656", "0.5761235", "0.57610977", "0.5758346", "0.5729671", "0.5720278", "0.5714129"...
0.6164959
3
Provides form data from the serialized data.
public function unserialize(string $serializedData): array { $encodedFields = $this->serializer->unserialize($serializedData); if (!is_array($encodedFields)) { throw new \InvalidArgumentException('Unable to unserialize value.'); } $formData = []; foreach ($encod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_data()\n {\n return $this->form_data;\n }", "protected function loadFormData(){\n\t\t\n\t\t// Check the session for previously entered form data.\n\t\t$data = JFactory::getApplication()->getUserState('com_egoi.edit.egoi.data', array());\n\t\tif (empty($data)) {\n\t\t\t$data = $th...
[ "0.7283632", "0.70722795", "0.70615685", "0.7052837", "0.7052104", "0.705208", "0.7050787", "0.69223285", "0.69103456", "0.6905013", "0.6903118", "0.6901854", "0.68706316", "0.68694234", "0.6822843", "0.6821098", "0.6801335", "0.6778762", "0.67722744", "0.6766456", "0.6746303...
0.0
-1
Convert amount from to
public function convert($value, string $from, string $to): array { return Billingo::get('currency', [ 'from' => $from, 'to' => $to, 'value' => $value, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function convert($amount, Currency $currency);", "public function toMoney();", "function convertAmount($amount, $sourceCurrency, $destCurrency, $dateOfConversion) {\n\t$rateOfConversion = getExchangeRate($sourceCurrency, $destCurrency, $dateOfConversion);\n\treturn $amount * $rateOfConversion;\n}", "f...
[ "0.7254861", "0.722059", "0.70167464", "0.69451797", "0.68266636", "0.6663872", "0.6577384", "0.6502755", "0.64902455", "0.6337447", "0.63107127", "0.62476474", "0.622489", "0.61990684", "0.6190542", "0.6188009", "0.61852235", "0.61820865", "0.6163636", "0.61236054", "0.61224...
0.0
-1
passing negative even number
public function testIsEvenPassNegativeEVEN() { $this->assertTrue(isEven(-4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsEvenPassNegativeODD()\n {\n \t$this->assertFalse(isEven(-5));\n }", "public function clipEvenOdd() {}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "function check_even($n)\n{\n\tif ($n % 2 == 0) {\n\t\techo \"{$n} la so so chan\";\n\t}\n}", "pu...
[ "0.75627023", "0.67464066", "0.65400076", "0.6495227", "0.64641285", "0.6453166", "0.6413785", "0.6397312", "0.63316053", "0.6183513", "0.6163191", "0.6133107", "0.612251", "0.6113515", "0.6083003", "0.5966133", "0.5951523", "0.5935128", "0.5880874", "0.5804344", "0.5792571",...
0.75731874
0
passing negative odd number
public function testIsEvenPassNegativeODD() { $this->assertFalse(isEven(-5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsEvenPassNegativeEVEN()\n {\n \t$this->assertTrue(isEven(-4));\n }", "public function clipEvenOdd() {}", "function is_odd (int $value) : bool\n{\n return $value % 2 !== 0;\n}", "function odd_even($n) {\n $odd_even = fmod($n, 2);\n if($odd_even ==...
[ "0.7302539", "0.72618663", "0.68092835", "0.6776312", "0.6746858", "0.6690784", "0.6590767", "0.65474516", "0.654103", "0.6454552", "0.6357149", "0.6341215", "0.62869585", "0.6266048", "0.6253534", "0.6225314", "0.6204725", "0.6190281", "0.6145267", "0.61184764", "0.611672", ...
0.7691487
0
passing 2 ( 2 % 2)
public function testIsEvenPassTwo() { $this->assertTrue(isEven(2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fpb($a,$b){\n\t\treturn ($b == 0) ? ($a):( fpb($b, $a % $b) );\n\t}", "function check_even($n)\n{\n\tif ($n % 2 == 0) {\n\t\techo \"{$n} la so so chan\";\n\t}\n}", "function modulo( $value, $modulus ){\n return ( $value % $modulus + $modulus ) % $modulus;\n}", "function modulo() {\n static $modu...
[ "0.65400845", "0.649239", "0.6483335", "0.64039296", "0.637906", "0.63662434", "0.63043123", "0.62014955", "0.6171302", "0.6162165", "0.61577666", "0.61300176", "0.61105514", "0.61074984", "0.6085571", "0.60790926", "0.606005", "0.5934166", "0.59208596", "0.5917324", "0.59133...
0.6203706
7
passing zero, assuming that 0 is even number
public function testIsEvenPassZERO() { $this->assertTrue(isEven(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function makeOddEven() {\n\n\t\tif (JudgeView::$even > 0)\n\t\t{\n\t\t\tJudgeView::$even = 0;\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJudgeView::$even = 1;\n\t\t\treturn 1;\n\t\t}\n\n\t}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "public function testIsE...
[ "0.682325", "0.6682445", "0.6615996", "0.66006154", "0.659337", "0.6520555", "0.65199983", "0.64399946", "0.64177495", "0.63619536", "0.6321866", "0.6252898", "0.6220042", "0.61459035", "0.6125508", "0.61061996", "0.6103357", "0.59718966", "0.5924956", "0.5893173", "0.5875451...
0.75614387
0
passing not a number
public function testIsEvenPassString() { $this->assertFalse(isEven("fail")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_num($arg){ \n\tif (!(int)$arg) {\n\treturn false ;\n\t}\n\telse\n\t{\n\t\treturn true;\n\t}\n}", "public function numbers_only($value)\n{\n //return preg_match('/^([0-9]+)$/', $value);\n return ctype_digit(strval($value));\n}", "function isNum($s){return is_numeric($s) ? true : false;}", "f...
[ "0.73493993", "0.7197255", "0.691229", "0.6891081", "0.6802502", "0.6597168", "0.6586304", "0.6565467", "0.6563727", "0.6543548", "0.6534312", "0.65146464", "0.6512598", "0.64372224", "0.6421711", "0.6395302", "0.6342785", "0.63341045", "0.6330423", "0.62941706", "0.62776494"...
0.0
-1
/ Plugin Name: Praksa Plugin Description: (1) Protected Content Shortcode that displays the content to loggedin users only (2) Reverse Shortcode that displays the content in reverse order (3) Weather Shortcode that dispalys weather information for a given location Version: 1.0 Author: Lazar Zubic, Danica Misic License:...
function shortcode_weather_handler($atts) { $args = shortcode_atts(array('city' => '', 'country' => ''), $atts); $url = 'http://api.openweathermap.org/data/2.5/weather?q=' . $args['city'] . ',' . $args['country'] . '&APPID=e8a25e6e27e357bbb70b8cacfe652bff'; $json = file_get_contents($url); $data = json_decode($json...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpb_demo_shortcode() { \n \n // Things that you want to do. \n\n \n $message = 'Hello world!'; \n ob_start();\n \n // Output needs to be return\n if ( is_user_logged_in() )include(plugin_dir_path(__FILE__).'polarchart.php');\n $out = ob_get_clean();\n return $out;\n \n}", "fun...
[ "0.6938222", "0.6804665", "0.63952774", "0.632179", "0.62150407", "0.6105631", "0.60898495", "0.6051905", "0.6025761", "0.60142976", "0.60129946", "0.6012383", "0.5975537", "0.59635425", "0.5949158", "0.59021235", "0.588097", "0.58691406", "0.58316725", "0.5830765", "0.581898...
0.0
-1
Compile config information Lists developer config variables
protected function _compile_config() { $output = "\n\n"; $output .= '<fieldset id="ci_profiler_config" style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">'; $output .= "\n"; $output .= '<legend style="color:#000;">&nbsp;&nbsp;'.$this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testconfig_vars()\n\t{\n\t\t$vars = array ('sys_name',\n\t\t\t 'sys_user_reg_restricted',\n\t\t\t 'sys_require_accept_conditions',\n\t\t\t 'sys_project_reg_restricted',\n\t\t\t 'sys_use_private_project',\n\t\t\t 'sys_default_domain',\n\t\t\t 'sys_scm_tarballs_pat...
[ "0.6280962", "0.6214347", "0.5860661", "0.5859436", "0.58045435", "0.57924974", "0.57888675", "0.57886624", "0.5590653", "0.5568784", "0.55463225", "0.5545489", "0.5538961", "0.55326027", "0.5529021", "0.5523924", "0.5517575", "0.5516098", "0.55001366", "0.5478547", "0.546973...
0.6259492
1
Compile session userdata; NOTE: parent method modified from private > protected,
protected function _compile_session_data() { if ( ! isset($this->CI->session)) { return; } $output = '<fieldset id="ci_profiler_csession" style="border:1px solid #000;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">'; $output .= '<legend st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function loadSessionData();", "protected function loadUserData()\n {\n $this->userData = ($this->session->userData?:[]) + $this->userDataTemplate;\n }", "protected function createUserDataScript() {\n\t\t$cdata_user = '\n\t\t\t//<![CDATA[\n\t\t\t var cursorImageUrl = \"'.$this->...
[ "0.6300158", "0.62745667", "0.6120194", "0.60374725", "0.5937095", "0.5928759", "0.59046435", "0.5882418", "0.58820003", "0.58131766", "0.58114165", "0.57677424", "0.57572967", "0.5699838", "0.56920624", "0.569203", "0.5690582", "0.5688223", "0.56864864", "0.5679682", "0.5667...
0.6249719
2
Determine if the user is authorized to make this request.
public function authorize() { return $this->user()->can('create', MarEntry::class); }
{ "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 [ 'mars.*.medication_id' => 'required|integer|exists:medications,medication_id', 'mars.*.medical_record_number' => 'required|integer|exists:patients,medical_record_number', 'mars.*.stat' => 'boolean|nullable', 'mars....
{ "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
Migration UP: We have just installed the plugin and need to prepare all necessary data.
public function up() { // Client ID of Vimeo app Config::get()->create('VIMEO_CLIENT_ID', [ 'value' => '', 'type' => 'string', 'range' => 'global', 'section' => 'externalvideos', 'description' => 'Client-ID der in Vimeo erstellten App' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function run_install()\n {\n global $wpdb;\n\n // Create Base Table in mysql\n //$charset_collate = $wpdb->get_charset_collate();\n //require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n }", "public function up()\n {\n // This migration was removed,...
[ "0.7054103", "0.69983864", "0.6727485", "0.66107893", "0.658216", "0.65008986", "0.6474332", "0.6448922", "0.6446971", "0.643911", "0.6437631", "0.641112", "0.64091647", "0.63843197", "0.63840234", "0.63364834", "0.6325481", "0.631031", "0.6275752", "0.62509334", "0.61951697"...
0.0
-1
Migration DOWN: cleanup all created data.
public function down() { // Remove config entries. foreach (words('CLIENT_ID CLIENT_SECRET AUTHORIZATION_CODE ACCESS_TOKEN CALLBACK_URL') as $entry) { Config::get()->delete('VIMEO_' . $entry); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function tearDown(): void {\n $migration = include __DIR__.'/../database/migrations/create_all_visitors_tables.php.stub';\n $migration->down();\n\n $migrationTest = include __DIR__.'/Support/migrations/2023_01_12_000000_create_test_models_table.php';\n $migrationTest->down();\...
[ "0.8047985", "0.7574941", "0.75546914", "0.7432064", "0.74241656", "0.7399916", "0.72800314", "0.72680694", "0.72680694", "0.72680694", "0.72680694", "0.72680694", "0.72680694", "0.72672087", "0.72672087", "0.72672087", "0.72672087", "0.72672087", "0.72672087", "0.72672087", ...
0.0
-1
Create a new event instance.
public function __construct(Ticker $ticker) { $ticker->update_cachefile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEvent()\n {\n return new Event();\n }", "public function __create()\n {\n $this->eventPath = $this->data('event_path');\n $this->eventName = $this->data('event_name');\n $this->eventInstance = $this->data('event_instance');\n $this->eventFilter = ...
[ "0.8178475", "0.73455495", "0.67515916", "0.6665345", "0.66544545", "0.66479546", "0.6640835", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6543442", "0.64682955", "0.645909", "0.64520663", "0.6441302", "0.6438299", "0.63917476", "0.6371641", "0.6371641...
0.0
-1
Update Function. Called when changes are made in the admin panel.
function update($new_instance, $old_instance) { $instance = $old_instance; $instance['html_text'] = $new_instance['html_text']; return $instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updating()\n {\n # code...\n }", "public function update()\r\n {\r\n \r\n }", "protected function update() {}", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "public function actionUpdat...
[ "0.7614507", "0.7563618", "0.754938", "0.75257784", "0.75257784", "0.75115514", "0.75115514", "0.7510454", "0.7480381", "0.74770397", "0.7464042", "0.7453993", "0.74191177", "0.73998684", "0.739302", "0.739302", "0.73236394", "0.7304145", "0.72854984", "0.72854984", "0.723863...
0.0
-1
Form function. Used in dashboard to allow users to configure the widget.
function form($config) { $html_text = $config['html_text']; ?> <label for="<?php echo $this->get_field_id("html_text"); ?>"> <p>HTML Text: <textarea rows="5" cols="50" name="<?php echo $this->get_field_name("html_text"); ?>" id="<?php echo $this->get_field_id("html_text") ?>"> <?php echo $html_te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function form(){\n \t \tif($this->layoutWidgetInfo){\n \t\t$setting = json_decode($this->layoutWidgetInfo->setting, true);\n \t}\n\n \t//default option(type[text], cols[3-9], rows[1], label[$key], name[$key], value[$setting[$k]])\n \t//add option(class, id, stype, styleRow, required, placehold...
[ "0.72983557", "0.7258511", "0.71763337", "0.7030468", "0.69945043", "0.69556177", "0.69229543", "0.6896423", "0.68752253", "0.6854969", "0.6811243", "0.6791907", "0.67672986", "0.6753069", "0.67406726", "0.673091", "0.6725855", "0.67186713", "0.67148685", "0.6695795", "0.6690...
0.0
-1
Create a new controller instance.
public function __construct(){ // $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the application dashboard.
public function index(){ $types = Types::orderBy('name','asc')->get(); $cans = Answer::all(); $subscriber = Subscriber::all(); $ques = Question::latest()->paginate(15); return view('index' , compact('ques','cans','subscriber','types')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
If $mask is a string then convert it to an integer:
public static function print_UAC_flags($mask) { if (is_string($mask)) { $mask = intval($mask); } else if (!is_int($mask)) { // Else $mask is something weird: $msg = 'ActiveDirectory::print_UAC_flags: $mask is type ' . gettype($mask); echo($msg); throw new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function ip__mask__long_to_number($long_mask)\n\t{\n\t\t$num_mask = strpos((string)decbin($long_mask), '0');\n\t\treturn $num_mask === false ? 32 : $num_mask;\n\t}", "function mask2cidr($mask){\n\t$long = ip2long($mask);\n\t$base = ip2long('255.255.255.255');\n\treturn 32-log(($long ^ $base)+1,2);\n}", ...
[ "0.7413249", "0.66354764", "0.6598855", "0.6201869", "0.60969394", "0.59854996", "0.59123695", "0.58689016", "0.58289075", "0.5787843", "0.5563755", "0.55169636", "0.5509552", "0.54594845", "0.5323989", "0.5302388", "0.52908224", "0.5255941", "0.5239106", "0.5227094", "0.5216...
0.0
-1
revision 8bit unsigned int (C1)
public static function SID_to_string($value) { // count - 8bit unsigned int (C1) // 2 null bytes // ID - 32bit unsigned long, big-endian order $sid = @unpack('C1rev/C1count/x2/N1id', $value); $subAuthorities = []; if (!isset($sid['id']) or !isset($sid['rev'])) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readUInt8BE();", "public function readInt8();", "public function unsigned();", "function readUnsignedByte();", "public function readUInt8();", "public function readUInt8LE();", "public function writeUInt8($int) {}", "private function doGetBinaryBitsetLeInt()\n {\n $bin = \\p...
[ "0.5896087", "0.5819138", "0.57589936", "0.57454836", "0.5743211", "0.56359076", "0.56260526", "0.5603487", "0.56023747", "0.55546117", "0.5432854", "0.53854114", "0.5377897", "0.5366586", "0.53519934", "0.5324963", "0.5310146", "0.5267248", "0.52644235", "0.5247837", "0.5241...
0.0
-1
If sid is a packed, binary string:
public static function SID_to_userid($sid) { if (strncmp($sid, "S-", 2) != 0) { $sid = ActiveDirectory::SID_to_string($sid); // Make sid human-readable. } // sid is now a human-readable string: $fields = explode("-", $sid, 18); // 0 = 'S-' // 1 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sid2str($sid)\n {\n\t\t// 1 byte for the revision level\n\t\t// 1 byte for the number n of variable sub-ids\n\t\t// 6 bytes for identifier authority value\n\t\t// n*4 bytes for n sub-ids\n\t\t//\n\t\t// Example: 010400000000000515000000a681e50e4d6c6c2bca32055f\n\t\t// Legend: RRNNAAAAAAAAAAAA111111112...
[ "0.73459643", "0.65253156", "0.6186545", "0.61109334", "0.6099774", "0.60283256", "0.60158324", "0.5782683", "0.56836504", "0.5565672", "0.5545781", "0.5463649", "0.54077184", "0.53987527", "0.5383635", "0.5369754", "0.5345218", "0.5341759", "0.53354347", "0.5323726", "0.5313...
0.49906442
46
Display a listing of the resource.
public function index() { // $records = Payment::paginate(20); return view('payments.index', compact('records')); }
{ "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() { return view('payments.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
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $model = Payment::findOrFail($id); return view('payments.edit', compact('model')); }
{ "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.78557473", "0.76946205", "0.72731614", "0.7241571", "0.71700776", "0.70650244", "0.7052897", "0.698311", "0.69465625", "0.6944826", "0.69399333", "0.69286525", "0.69031185", "0.68969506", "0.68969506", "0.6878258", "0.6862812", "0.6859171", "0.68560475", "0.68436426", "0.6...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // $records = Payment::findOrFail($id); $records->update($request->all()); flash()->success(trans('admin.messageEdited')); return redirect(route('payment.index')); }
{ "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) { $record = Payment::findOrFail($id); if (!$record) { return response()->json([ 'status' => 0, 'message' => trans('admin.error') ]); } $record->delete(); return response()->json([ ...
{ "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
RADIO BUTTON CLASS FUNCTION: GET CHOICE
public static function getChoice($menuname) { // Check to see if a choice has been made previously or is a session variable if (!isset($_SESSION["$menuname"]) || $_SESSION["$menuname"] == "") { // no session var, see if in $_POST if (isset($_POST["$menuname"]) && $_POST["$menuname"] != -9999) { $choice =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_selected()\n {\n }", "public function getChoiceList()\n {\n return $this->choice;\n }", "public function getControl()\n {\n return \\Nette\\Forms\\Controls\\BaseControl::getControl()->checked($this->value);\n }", "public function getChoix()\n {\n return ...
[ "0.62056386", "0.6153048", "0.6015461", "0.5967789", "0.5944435", "0.5838395", "0.57818395", "0.5776747", "0.57742655", "0.57611233", "0.5703458", "0.56707716", "0.5669471", "0.5666462", "0.5646624", "0.5608753", "0.5606491", "0.55711174", "0.5524992", "0.55143297", "0.548645...
0.49633935
91
end of getChoice() FUNCTION: TEST AUTOSUBMIT
public static function testAutoSubmit($arg) { // Check to see if a argument possibly indicating auto-submitting if ($arg == 1 || $arg == "auto" || $arg == "submit") { $auto = 1; } // auto-submit else { $auto = 0; } return $auto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function chooseQuestionToAnswer() : void\n {\n $questionId = $this->console->choice(__('Please select question to answer:'), $this->options);\n $this->handleAnswer($questionId ? array_search($questionId, $this->options) : null);\n }", "public function testCreateSurveyQuestionChoice0()...
[ "0.6665399", "0.63650054", "0.63650054", "0.5918038", "0.5864034", "0.5847077", "0.57928026", "0.57539433", "0.5722745", "0.5704236", "0.5687776", "0.5652487", "0.5616292", "0.5616292", "0.5565221", "0.5550574", "0.55393887", "0.553933", "0.5530776", "0.55233335", "0.5481931"...
0.57927185
7
end of testAutoSubmit() FUNCTION: CREATE FROM ARRAY / This function creates a set of radio buttons from a hash array. This can be used to generate quick radio buttons, but there are some specialty sets below that are commonly used using those specialty sets should be even faster for common tasks. Autosubmit doesn't wor...
public static function createFromArray() { $args = func_get_args(); switch (count($args)) { case 2: $buttonset = $args[0]; $array = $args[1]; $auto = 0; // don't auto-submit break; case 3: $buttonset = $args[0]; $array = $args[1]; $atuo = DropDownList::testAutoSubmi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRadios($hiddenName, $outerIndex)\n{\n\t// Loop through and generate all radio buttons, giving unique names \n\tfor($i = 1; $i <= 4; $i++)\n\t{\n\t\t$id = \"radio\" . $outerIndex . $i;\n\t\t$name = \"radio\" . $outerIndex;\n\t\t\n\t\tif(isset($_REQUEST[$name]))\n\t\t\t$currentSelected = $_REQUEST[$na...
[ "0.5851053", "0.55911535", "0.5372921", "0.5343518", "0.5342001", "0.53135383", "0.5303237", "0.5252377", "0.5118637", "0.5106243", "0.5092101", "0.5055059", "0.5021198", "0.5008819", "0.49969587", "0.49287325", "0.49158427", "0.4912691", "0.4900946", "0.48587927", "0.4856847...
0.73485553
0
Estrutura da tabela fornecedores
public function up() { Schema::create('fornecedors', function (Blueprint $table) { $table->increments('id'); $table->string('cnpj', 20)->unique(); $table->string('nome', 45); $table->string('email', 45)->unique()->nullable(true); $table->string('te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTablas() {\r\n $tablas['inventario_equipo']['id']='inventario_equipo';\r\n $tablas['inventario_equipo']['nombre']='Inventario (equipo)';\r\n\r\n $tablas['inventario_grupo']['id']='inventario_grupo';\r\n $tablas['inventario_grupo']['nombre']='Inventario (grupo)';\r\n\r\n ...
[ "0.7211428", "0.7080428", "0.70710194", "0.705402", "0.70183194", "0.7014872", "0.7014872", "0.7014872", "0.7014872", "0.7014872", "0.7014872", "0.7014872", "0.69283265", "0.69040364", "0.68689007", "0.6837484", "0.6837484", "0.6817986", "0.6791694", "0.6749327", "0.6742793",...
0.0
-1
end constructor ==============================process work=============================== ==========Select Data=======
public function selectData(){ $query = "SELECT * FROM tbl_userinfo ORDER BY Id ASC"; $result = $this->conn->query($query) or die($this->conn->error.__LINE__); if ($result->num_rows > 0){ //fetch_row() or num_rows gives number of rows in db return $result; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n // if required data are received\n if(isset($_POST['resname']) && isset($_POST['ajx'])) {\n $_POST = array_map('trim', $_POST); // removes whitesapces\n\n // if $_POST['idop'] returns data from MySQL; else, if $_POST['sdata'], calls method to save data\n ...
[ "0.69302994", "0.68096316", "0.6462163", "0.6418216", "0.63574094", "0.6355634", "0.6337757", "0.63037443", "0.6303583", "0.629766", "0.62749726", "0.6241014", "0.62236476", "0.6221065", "0.62190926", "0.6218964", "0.6217489", "0.6213406", "0.6194933", "0.6189272", "0.6163814...
0.0
-1
end insertData check email,it is already used or not
function checkEmail($email){ $query = "SELECT Email FROM tbl_userinfo WHERE Email=$email LIMIT 1"; $result = $this->conn->query($query); if (var_dump($result) > 0){ return true; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateEmailUser(){\n $this->deleteDuplicateCode($this->_datPerson[personId]);\n $this->_code = rand(10000, 99999);\n $em = $this->getDoctrine()->getManager();\n $UserValidationEmail = new Uservalidationemail();\n $UserValidationEmail->setEmail($this->_datPerson...
[ "0.72509396", "0.6893395", "0.6872661", "0.6859085", "0.67865175", "0.674905", "0.66783077", "0.6655187", "0.6628223", "0.66266525", "0.6608445", "0.66011727", "0.6589726", "0.6510431", "0.6475248", "0.64663714", "0.64529324", "0.6449127", "0.64488244", "0.6434251", "0.643152...
0.0
-1
checkEmail method ==========Update data======= show one user data in the field
public function getUserById($userid){ $query = "SELECT * FROM tbl_userinfo WHERE Id=$userid LIMIT 1"; $query = $this->conn->query($query) or die($this->conn->error .__LINE__); $result = $query->fetch_assoc(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateEmail(){\n if(\n !empty($_POST['email'])){\n $email = $_POST['email'];\n $id = $_SESSION['userID'];\n $user = new User();\n $user->updateEmail($email, $id);\n }\n else {\n echo \"false\";\n }\n }", "public function checkEmail(){\n\t\t\t$use...
[ "0.74239326", "0.7019906", "0.70007783", "0.69351447", "0.6933731", "0.68637264", "0.68253183", "0.68219477", "0.68039876", "0.6784133", "0.6783265", "0.67646915", "0.67542595", "0.67457724", "0.67426395", "0.6697933", "0.6689515", "0.6686961", "0.66720647", "0.6669265", "0.6...
0.0
-1
end updateData ==========Delete data=======
public function deleteData($id){ $query = "DELETE FROM tbl_userinfo WHERE Id = $id "; $delete_row = $this->conn->query($query) or die($this->conn->error .__LINE__); header('Location:index.php'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteDataInfo()\n {\n $formPost=array();\n $formPost[deleted]=1;\n \n foreach($this->piVars['selectionList'] as $idVal)\n {\n $GLOBALS['TYPO3_DB']->exec_UPDATEquery($this->tableName,'uid='.$idVal,$formPost);\n }\n return $this->showListings()...
[ "0.72670215", "0.72336596", "0.7204665", "0.6931695", "0.68463385", "0.68048996", "0.6800154", "0.6780634", "0.67650974", "0.67378074", "0.6684948", "0.6660646", "0.66358405", "0.6611469", "0.65873945", "0.65822893", "0.65442866", "0.6527694", "0.6524066", "0.652321", "0.6502...
0.0
-1
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema): void { $this->addSql('CREATE TABLE bartender (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, date_of_birth DATE NOT NULL, is_verified TINYINT(1) NOT NULL, phone VARCHAR(255)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNE...
[ "0.80068773", "0.7915595", "0.7915595", "0.7915595", "0.7571971", "0.75615484", "0.75282776", "0.7498739", "0.7494303", "0.7453733", "0.7446836", "0.7435016", "0.7432123", "0.7427742", "0.7418007", "0.7378834", "0.73757184", "0.7369987", "0.7364234", "0.7352615", "0.732967", ...
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema): void { $this->addSql('ALTER TABLE order_line DROP FOREIGN KEY FK_9CE58EE1A45D7E6A'); $this->addSql('ALTER TABLE order_line DROP FOREIGN KEY FK_9CE58EE14584665A'); $this->addSql('ALTER TABLE shopping_line DROP FOREIGN KEY FK_A81DE8B74584665A'); $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo'...
[ "0.7951184", "0.7864657", "0.76075596", "0.7493609", "0.73215324", "0.72470677", "0.7188598", "0.7154839", "0.71546495", "0.71422315", "0.71353", "0.71218085", "0.71173203", "0.71046764", "0.7099773", "0.70818996", "0.7079426", "0.7073998", "0.7068778", "0.7066695", "0.705476...
0.0
-1
Finds user by [[email]]
public function getUser() { if ($this->_user === false) { $model = User::findIdentityByEmail($this->email); if ($model and ($model->role == User::ROLE_USER or $model->role == User::ROLE_ADMINISTRATOR)) { $this->_user = $model; } } return $this->_user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findUserByEmail($email);", "public function findUserByEmail($email);", "public function findUserByEmail($email);", "function get_user_by_email($email)\n {\n }", "public function getUserByEmail($email);", "public function fetchUserByEmail($email);", "public static function findUser...
[ "0.8166407", "0.8166407", "0.8166407", "0.8038051", "0.801395", "0.7942375", "0.7921375", "0.78417", "0.78288645", "0.7686924", "0.7680421", "0.7669739", "0.7669739", "0.7669739", "0.7669739", "0.76563156", "0.7625273", "0.7598056", "0.7595499", "0.75875545", "0.7578652", "...
0.0
-1
Montar mensagem de email
private function getMailMessage($model) { $message = Html::tag('p', "Prezado {$model->name},"); $message .= Html::tag('p', 'Uma solicitação para recuperação da senha foi realizada.'); $message .= Html::tag('p', 'Para prosseguir com a alteração, clique no link abaixo:'); $message .= Html::tag('p', Html::a('alte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function message()\n {\n return 'Endereço de email já cadastrado para essa lista.';\n }", "private function enviarEmail($msg)\n {\n // setando conteudo do email para avisos\n echo 'Envio email';\n }", "function envoyer_message_mail($values)\n{\n\t$mot = $GLOBALS['mot'];\...
[ "0.68306714", "0.6691328", "0.6551157", "0.6416334", "0.6345727", "0.6326955", "0.62928784", "0.6187843", "0.61786675", "0.61526144", "0.61498415", "0.61083126", "0.61032456", "0.6096293", "0.60931635", "0.60802287", "0.6075951", "0.6070162", "0.6061794", "0.6061042", "0.6054...
0.6122431
11
/\ Remove jQuery // jQuery UI \
function remove__jquery(&$scripts) { if ( !is_admin() ) { $scripts->remove( 'jquery' ); $scripts->remove( 'jquery-ui-core' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function faster_jquery_remove() {\n\n\twp_deregister_script( 'jquery' );\n\n}", "function remove_jquery_wordpress( $scripts ) {\n if ( !is_admin() ) {\n $script = $scripts->registered['jquery'];\n \n if ( $script->deps ) { \n $script->deps = array_diff( $scri...
[ "0.7260323", "0.6732453", "0.6726179", "0.64241177", "0.6321641", "0.6062501", "0.6060515", "0.60391295", "0.60380536", "0.59975517", "0.59745836", "0.59575576", "0.5925367", "0.59131294", "0.5815577", "0.57426333", "0.5717533", "0.57099456", "0.57041276", "0.56919074", "0.56...
0.7426778
0
PAYMENT_ID is not present for transaction in state PENDING
public function getTransactionReference() { if(isset($this->data['properties'])) { $properties = $this->data['properties']; $paymentIdProperty = array_filter($properties, function ($item) { return $item['name'] === 'PAYMENT_ID'; }); if (isset($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _processTransactionPaymentPending($parameters) {\n\t\t\tif (\n\t\t\t\t!empty($parameters['invoice_id']) &&\n\t\t\t\t!empty($parameters['user'])\n\t\t\t) {\n\t\t\t\t$invoice = $this->_call('invoices', array(\n\t\t\t\t\t'methodName' => 'invoice',\n\t\t\t\t\t'methodParameters' => array(\n\t\t\t\t\t...
[ "0.6285839", "0.62010187", "0.61955523", "0.607165", "0.6019416", "0.60160494", "0.59620863", "0.5952717", "0.5949377", "0.59358776", "0.59279317", "0.5916885", "0.5915947", "0.5866241", "0.5859362", "0.58528024", "0.5843547", "0.5838889", "0.5836518", "0.58341753", "0.581681...
0.0
-1
Displays a single StampTemplates model.
public function saveImage($previous_image = '') { $image = UploadedFile::getInstanceByName('image'); if ($image) { $file = pathinfo($image->name); $filename = uniqid().'.'.$file['extension']; $path = Yii::getAlias('@webroot').'/images/cliche_tpl/'; if(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($tname)\n {\n $template = DB::table('templates')->select('*')->where('tname', '=', $tname)->get();\n\n return view('/templates/show')->with('template', $template);\n }", "public function actionIndex()\n {\n $searchModel = new StampSearch();\n $dataProvide...
[ "0.64974713", "0.6432869", "0.6365219", "0.6319344", "0.6275215", "0.62341505", "0.6224029", "0.6217845", "0.62065744", "0.6145407", "0.6121373", "0.61200345", "0.6014555", "0.5983495", "0.5981059", "0.5958201", "0.5955724", "0.5954576", "0.59386134", "0.592498", "0.5920571",...
0.0
-1
Returns all possible values as an array.
protected static function toArray(): array { $class = static::class; if (!isset(static::$cache[$class])) { try { $reflection = new ReflectionClass($class); } catch (ReflectionException $e) { return []; } static::$cache[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getValues(): array\n {\n return array_values(self::getConstants());\n }", "public function values() : array;", "public function getValues(): array;", "public function getValues(): array;", "abstract public function values(): array;", "public function all(): array\n ...
[ "0.78824615", "0.7841605", "0.7832911", "0.7832911", "0.77369124", "0.77366287", "0.76764554", "0.7618575", "0.7567863", "0.7437732", "0.7410739", "0.73988205", "0.737462", "0.73731947", "0.7359006", "0.7326601", "0.7315242", "0.7305766", "0.7305766", "0.7263677", "0.7240095"...
0.0
-1
Get discussion of user clicked post.
public function get($post_id) { $this->authenticate(); $discussion_list = $this->discussion->get_diss_by_postid($post_id); if (!is_null($discussion_list)) { exit(json_encode([ 'flg' => TRUE, 'msg' => $discussion_list, 'cu' => $this->ses...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDiscussion(): Discussion\n {\n return $this->discussion;\n }", "function thediscussion() {\n\tglobal $discussions_index, $discussion, $discussions, $discussion_title;\n\t$discussion = $discussions[$discussions_index - 1];\n\treturn $discussion;\n}", "public function getParentRel...
[ "0.6718136", "0.6105188", "0.6050049", "0.5946357", "0.5853704", "0.57726634", "0.576964", "0.5721043", "0.5685334", "0.5679551", "0.56379455", "0.5592242", "0.5590112", "0.55869484", "0.55778825", "0.5546754", "0.55459607", "0.55362564", "0.5520714", "0.55119485", "0.5509614...
0.5356786
33
Get all unseen discussions. Use in notification.
public function get_unseen() { $this->authenticate(); $result = $this->discussion->get_unseen_discussions(); if (!is_null($result)) { exit(json_encode([ 'flg' => TRUE, 'msg' => $result ])); } else { exit(json_encode([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUnreadMessages(): Collection;", "public static function getLastDiscussions(){\n $sql = \"select * from discussions ORDER BY `id` DESC LIMIT 5\";\n return App::$db->query($sql);\n }", "public function get_list_unread(){\n\n\t\tuser_login_required();\n\n\t\t//Get the list of u...
[ "0.65681255", "0.6378681", "0.63406754", "0.6325844", "0.62785566", "0.6249371", "0.6220479", "0.61696243", "0.610331", "0.60896033", "0.60003984", "0.5989895", "0.5964396", "0.59434146", "0.59220237", "0.5888419", "0.58776474", "0.58678305", "0.5790014", "0.5775237", "0.5765...
0.8289016
0
$type :driver/passenger $token $userid:$did/$pid
function checkToken($type,$token,$userid){ if(trim($type) == '' || trim($token) == '' || trim($userid) == '' ){ return false; } if($type == DUDU_DRIVER){ $table = API_TABLE_PRE.'driver_token'; $conditionUseridColumn = 'did'; }elseif ($type == DUDU_PASSENGER){ $table = API_TABLE_PRE.'passenger_token'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function token()\n {\n\n\t\t$this->server->handleTokenRequest(OAuth2\\Request::createFromGlobals())->send();\n }", "function assignToken($domain,$accesslevel) {\n\n}", "function id() {\n\n if (!isset($_SERVER['HTTP_TRONGATETOKEN'])) {\n http_response_code(422);\n echo ...
[ "0.52005", "0.5192672", "0.517572", "0.5102558", "0.49687108", "0.49628517", "0.49388987", "0.49271074", "0.49133357", "0.4894184", "0.48705724", "0.4869508", "0.48468414", "0.484093", "0.48265132", "0.48259708", "0.4815378", "0.4810729", "0.48070914", "0.48057047", "0.480006...
0.48660868
12
Test when name is not set
public function testNoName() { $this->expectException('HttpSourceConfigException'); $this->Field->name(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function assertValidName() : void\n {\n InvalidDescriptorArgumentException::assertIsNotEmpty(\n $this->name,\n '#[Route.name] must contain a non-empty string.'\n );\n }", "function valid_name($name) {\r\n\tif (empty($name)) \r\n\t\treturn false;\r\n\telse\r\n\t\t...
[ "0.7126883", "0.7051787", "0.70507437", "0.70507437", "0.7032379", "0.7005613", "0.7003814", "0.69903255", "0.6954094", "0.6922928", "0.682972", "0.6669657", "0.6656195", "0.6620851", "0.6606527", "0.65667284", "0.65667284", "0.6566536", "0.6566536", "0.6566536", "0.6565861",...
0.71519655
0
Test map to name
public function testMapToName() { $name = 'some_name'; $otherName = 'other_name'; $this->Field->name($name); $this->assertSame($name, $this->Field->mapToName()); $this->Field->map(null, $otherName); $this->assertSame($otherName, $this->Field->mapToName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetAllNames()\n {\n $map = $this->driver->getAllNames();\n $this->assertCount(1, $map);\n $types = array(\n 'http://rdfs.org/sioc/ns#Post' => 'Test\\\\Midgard\\\\CreatePHP\\\\Model',\n );\n $this->assertEquals($types, $map);\n }", "public fu...
[ "0.5975919", "0.5895288", "0.5871153", "0.57848126", "0.5763042", "0.57526976", "0.57526976", "0.5728262", "0.5719286", "0.5699202", "0.56887025", "0.5680997", "0.5672517", "0.5656439", "0.5645749", "0.5645567", "0.5644338", "0.5644338", "0.5612955", "0.5545627", "0.55391526"...
0.66781116
0
Test default condition values
public function testDefaultValues() { $this->assertSame(null, $this->Field->mapToName()); list($callback, $mapToName) = $this->Field->map(); $this->assertSame(1, $callback(1)); $this->assertSame(null, $mapToName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero() {}", "public function globalVarConditionDoesNotMatchOnEmptyExpressionWithValueSetToZero() {}", "public function hasOnlyDefaultValues()\n {\n if ($this->deleted !== false) {\n return false;\n ...
[ "0.65667045", "0.6565172", "0.64244133", "0.6390833", "0.63700473", "0.63601315", "0.630049", "0.630049", "0.630049", "0.62985003", "0.6281332", "0.62689394", "0.62689394", "0.62689394", "0.62689394", "0.62689394", "0.62689394", "0.62689394", "0.62680167", "0.62648696", "0.62...
0.0
-1
Constructs a Page object.
function Page($page_content) { // Match the <head/> element. if (preg_match("#<head.*?>(.*?)</head>#si", $page_content, $match)) { $this->_head = $match[1]; // Match the <title/> element. if (preg_match("#<title.*?>(.*?)</title>#si", $this->_head, $match)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create()\n {\n $page = new Page();\n $page->site_id = \\Bazalt\\Site::getId();\n if (!\\Bazalt\\Auth::getUser()->isGuest()) {\n $page->user_id = \\Bazalt\\Auth::getUser()->id;\n }\n return $page;\n }", "static public function createPage()...
[ "0.7863502", "0.76566994", "0.7622293", "0.73614395", "0.70707375", "0.7052438", "0.7032932", "0.69520754", "0.6933178", "0.68760777", "0.68760777", "0.68760777", "0.6808639", "0.6803282", "0.67985314", "0.67133176", "0.66770965", "0.66646415", "0.6630307", "0.6587614", "0.65...
0.6228714
43