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
Elimina el carrito de un cliente
function EliminaEncabezadoPedido($CardCode){ if($this->con->conectar()==true){ return mysql_query("DELETE FROM `arquitect_bourne`.`ENC_PedidosSolicitados` WHERE `CardCode` = '" .$CardCode. "'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarCliente(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->arm...
[ "0.77980226", "0.73040485", "0.71599156", "0.70568985", "0.6905301", "0.69030756", "0.6878988", "0.6798161", "0.6786198", "0.6745999", "0.6724777", "0.6718513", "0.6674204", "0.66661656", "0.6661402", "0.6632", "0.6631669", "0.6615057", "0.65791965", "0.6568596", "0.6557621",...
0.0
-1
Obtiene el dia de entrega del pedido
function ObtieneDiaEntrega($NumPedido,$CodArti){ if($this->con->conectar()==true){ return mysql_query("SELECT * FROM `DET_PedidosSolicitados` WHERE `NumPedido` = '" .$NumPedido. "' and `NumPedido` = '" .$CodArti. "'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_taplicacion_procesos_fecha_desde(): string {\n return $this->taplicacion_procesos_fecha_desde;\n }", "public function getfechaentrega()\r\n {\r\n return $this->fechaentrega;\r\n }", "public function getFechaComentario()\n {\n return $this->fecha_comentario;\...
[ "0.6709419", "0.65539455", "0.655066", "0.6451325", "0.643929", "0.64337367", "0.6397999", "0.6282442", "0.6258859", "0.6096148", "0.6045415", "0.6036419", "0.60084575", "0.5984363", "0.59353817", "0.5933484", "0.5928284", "0.5927537", "0.59221894", "0.58958334", "0.5875179",...
0.0
-1
muestra el carrito de un cliente
function ObtieneDiaVisita($CardCode){ if($this->con->conectar()==true){ $Resultado = mysql_query("SELECT `DiaVisita` FROM `Cliente_Proveedores` WHERE `CardCode` = '".$CardCode."'"); if($Resultado){ while( $Articulos = mysql_fetch_array($Resultado) ) { $DiaVisita = $Articulos['DiaVisita...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCliente();", "public function getcliente()\r\n {\r\n return $this->cliente;\r\n }", "public function getNomeCliente(){/*Retorna o nome_cliente*/\n\t\t\treturn $this-> nome_cliente;\n\t\t}", "public function getIdcliente() {\n\t\t\t\treturn $this->id_cliente ?? \"Id do Cliente ...
[ "0.739257", "0.72925794", "0.7164855", "0.712227", "0.71154654", "0.70910746", "0.70649344", "0.7041795", "0.70335627", "0.70205545", "0.7004748", "0.69522804", "0.6882455", "0.68754077", "0.6823455", "0.6813117", "0.6778424", "0.6774241", "0.6763581", "0.67402273", "0.673992...
0.0
-1
Elimina el carrito de un cliente
function EliminaDetallePedido($NumPedido,$CodArti){ if($this->con->conectar()==true){ return mysql_query("DELETE * FROM `DET_PedidosSolicitados` WHERE `NumPedido` = '" .$NumPedido. "' and `NumPedido` = '" .$CodArti. "'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarCliente(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->arm...
[ "0.77980226", "0.73040485", "0.71599156", "0.70568985", "0.6905301", "0.69030756", "0.6878988", "0.6798161", "0.6786198", "0.6745999", "0.6724777", "0.6718513", "0.6674204", "0.66661656", "0.6661402", "0.6632", "0.6631669", "0.6615057", "0.65791965", "0.6568596", "0.6557621",...
0.0
-1
muestra el carrito de un cliente
function ObtieneNumPedido($CardCode){ try{ if($this->con->conectar()==true){ $NumPedido = mysql_query("SELECT MAX( NumPedido ) AS NumPedido FROM `ENC_PedidosSolicitados` WHERE `CardCode` = '" .$CardCode. "'"); if($NumPedido){ $Consecutivo = mysql_fetch_array($NumPedido); return $Consecuti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCliente();", "public function getcliente()\r\n {\r\n return $this->cliente;\r\n }", "public function getNomeCliente(){/*Retorna o nome_cliente*/\n\t\t\treturn $this-> nome_cliente;\n\t\t}", "public function getIdcliente() {\n\t\t\t\treturn $this->id_cliente ?? \"Id do Cliente ...
[ "0.739257", "0.72925794", "0.7164855", "0.712227", "0.71154654", "0.70910746", "0.70649344", "0.7041795", "0.70335627", "0.70205545", "0.7004748", "0.69522804", "0.6882455", "0.68754077", "0.6823455", "0.6813117", "0.6778424", "0.6774241", "0.6763581", "0.67402273", "0.673992...
0.0
-1
Elimina el carrito de un cliente
function EliminaCarrito($CardCode){ if($this->con->conectar()==true){ return mysql_query("DELETE FROM `Carrito` WHERE `CardCode` = '" .$CardCode. "'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarCliente(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->arm...
[ "0.77980226", "0.73040485", "0.71599156", "0.70568985", "0.6905301", "0.69030756", "0.6878988", "0.6798161", "0.6786198", "0.6745999", "0.6724777", "0.6718513", "0.6674204", "0.66661656", "0.6661402", "0.6632", "0.6631669", "0.6615057", "0.65791965", "0.6568596", "0.6557621",...
0.0
-1
Elimina un articulo del carrito de un cliente
function EliminaAunArticulo($Cod_Articulo,$CardCode){ if($this->con->conectar()==true){ return mysql_query("DELETE FROM `Carrito` WHERE `CardCode` = '" .$CardCode. "' AND `CodArticulo` = '".$Cod_Articulo."'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarCliente(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->arm...
[ "0.7065953", "0.6748302", "0.67217517", "0.6690003", "0.6649191", "0.6579007", "0.65606564", "0.65549356", "0.6548986", "0.6543675", "0.65331125", "0.65161234", "0.65058947", "0.6495071", "0.6491683", "0.6472106", "0.6452594", "0.64426535", "0.63995934", "0.63963586", "0.6395...
0.62719136
36
muestra el carrito de un cliente
function Muestra($CardCode){ if($this->con->conectar()==true){ return mysql_query("SELECT * FROM `Carrito` WHERE `CardCode` = '" .$CardCode. "'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCliente();", "public function getcliente()\r\n {\r\n return $this->cliente;\r\n }", "public function getNomeCliente(){/*Retorna o nome_cliente*/\n\t\t\treturn $this-> nome_cliente;\n\t\t}", "public function getIdcliente() {\n\t\t\t\treturn $this->id_cliente ?? \"Id do Cliente ...
[ "0.739257", "0.72925794", "0.7164855", "0.712227", "0.71154654", "0.70910746", "0.70649344", "0.7041795", "0.70335627", "0.70205545", "0.7004748", "0.69522804", "0.6882455", "0.68754077", "0.6823455", "0.6813117", "0.6778424", "0.6774241", "0.6763581", "0.67402273", "0.673992...
0.0
-1
Obtiene el rutero del cliente
function ObtieneRutero($CardCode){ if($this->con->conectar()==true){ return mysql_query("SELECT * FROM `Ruteros` WHERE `CardCode` = '".$CardCode."'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl_rhconsignadomovimentoservidorrubrica() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"rhconsignadomovimentoservidorrubrica\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function cliente_get(){\n\t\t$cliente_id...
[ "0.6497859", "0.6431488", "0.6402086", "0.6330557", "0.6167146", "0.6114095", "0.60623556", "0.60451484", "0.5959392", "0.5950218", "0.59458774", "0.59168184", "0.58844686", "0.58666867", "0.5855206", "0.5847075", "0.58439445", "0.5835566", "0.5835281", "0.5835281", "0.583528...
0.0
-1
Verifica si ya se ingreso en el rutero
function VerificaExisteEnRutero($CardCode,$ItemCode){ if($this->con->conectar()==true){ $ArtiRutero = mysql_query("SELECT COUNT (*) AS EXIST FROM `RUTEROS` WHERE `CardCode` = '".$CardCode."' and `ItemCode` = '".$ItemCode."'"); if($ArtiRutero) { $Exis = mysql_fetch_array($ArtiRutero); if(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isOk(){\n\n\t\treturn $this->status == $this::COD_STATUS_OK;\n\t\n\t}", "function check_response()\n {\n\n $sp_recepcion = new seguripagoRecepcionDiferido($this->sp_idSocio, $this->sp_key, $this->sp_modo);\n $data = $sp_recepcion->recibir();\n if(!...
[ "0.6289712", "0.6166524", "0.6143129", "0.6090868", "0.60089463", "0.59886575", "0.5973088", "0.5944217", "0.5935594", "0.5933255", "0.59277725", "0.59088", "0.5908095", "0.59048325", "0.5876983", "0.5876983", "0.58766216", "0.5872634", "0.5872156", "0.5867052", "0.5850836", ...
0.0
-1
muestra el carrito de un cliente
function IngresarARutero($CardCode,$ItemCode,$Descripcion){ if($this->con->conectar()==true){ //si no existe en la tabla de ruteros la inserta de loc ontrario no ahce nada if($this->VerificaExisteEnRutero($CardCode,$ItemCode)== 0) return mysql_query("INSERT INTO `Ruteros`(`CardCode`, `ItemCode`, `Descrpcio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCliente();", "public function getcliente()\r\n {\r\n return $this->cliente;\r\n }", "public function getNomeCliente(){/*Retorna o nome_cliente*/\n\t\t\treturn $this-> nome_cliente;\n\t\t}", "public function getIdcliente() {\n\t\t\t\treturn $this->id_cliente ?? \"Id do Cliente ...
[ "0.739257", "0.72925794", "0.7164855", "0.712227", "0.71154654", "0.70910746", "0.70649344", "0.7041795", "0.70335627", "0.70205545", "0.7004748", "0.69522804", "0.6882455", "0.68754077", "0.6823455", "0.6813117", "0.6778424", "0.6774241", "0.6763581", "0.67402273", "0.673992...
0.0
-1
Notifica ala gente de la creacion del pedido
function EnviaCorreoNotificadora($CardCode,$NumPedido, $Mensaje){ //obtiene el nombre del cliente que hizo el pedido if($this->con->conectar()==true){ $Resultado= mysql_query("SELECT `CardName` ,`SlpCode` ,`E_Mail` FROM `Cliente_Proveedores` WHERE `CardCode` = '" .$CardCode. "'"); if($Resultado) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return 'can`t create ';\n }", "public function creating()\n {\n # code...\n }", "public function crear()\n {\n //\n }", "public function create()\n {\n echo 'Estoy en en create';\n }", "public function GenerarPedidoCrecer($...
[ "0.65371835", "0.64810395", "0.6434641", "0.62866515", "0.6268191", "0.6237637", "0.6237637", "0.62004334", "0.61955976", "0.6170275", "0.6159835", "0.6144325", "0.6139756", "0.6121334", "0.6113545", "0.6093537", "0.605889", "0.6045887", "0.6043783", "0.6043542", "0.6032456",...
0.0
-1
FUNCIONES PARA DAR FORMATO A LOS NUMEROS
function formatcurrency($floatcurr, $curr = "USD") { $currencies['ARS'] = array(2,',','.'); // Argentine Peso $currencies['AMD'] = array(2,'.',','); // Armenian Dram $currencies['AWG'] = array(2,'.',','); // Aruban Guilder $currencies['AUD'] = array(2,'.',' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function peso_cesta_formato(){\r\n\t\t\t$p = $this->peso_cesta();\r\n\t\t\treturn number_format($p,2,\",\",\".\");\r\n\t\t}", "function dinheiroParaBr($valor) {\n \t$valor = number_format($valor, 2, ',', '.');\n \treturn $valor;\n}", "public function numberFormatDataProvider() {}", "function Can...
[ "0.6625482", "0.6444627", "0.6358628", "0.63574463", "0.635471", "0.6341763", "0.6262789", "0.62589103", "0.6202088", "0.61682343", "0.61603755", "0.6126979", "0.61212695", "0.611973", "0.61073154", "0.610305", "0.60902756", "0.6090158", "0.608609", "0.60354096", "0.60145277"...
0.0
-1
Display a listing of the resource.
public function index() { $transfers = Transfer::paginate(10); return view('backend.transfers.transfers_list', compact('transfers')); }
{ "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() { $accounts = Account::get(); return view('backend.transfers.create_transfer',compact('accounts')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { clock($request->all()); $rules = array( 'date' => 'required', 'fromAccountId' => 'required', 'toAccountId' => 'required', 'amount' => 'required', 'descrip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $transfer = Transfer::find($id); return view('backend.transfers.edit_transfer', compact('transfer')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $rules = array( 'description' => 'required|string|max:255', 'type' => 'required|in:goods, service', 'hsn' => 'required|regex:/\d{8}/', 'sku' => 'required|alpha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Return list of assets.
public function index(Request $request) { $user = Auth::user(); if (!$user->can('asset-read')) { return response()->json(['error' => 'Unauthorised'], $this->unauthorized); } $type = $request->query('type'); $assets = Asset::where('type_id', $type) ->with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_assets_all()\n {\n return $this->assets;\n }", "function Assets() {\r\n\t\t\treturn $this->QueryPublic( 'Assets' );\r\n\t\t}", "function tw_asset_list() {\n\n\t$assets = tw_app_get('tw_registered_assets');\n\n\tif (!is_array($assets)) {\n\t\t$assets = [];\n\t}\n\n\treturn $asse...
[ "0.8100875", "0.80230165", "0.8016524", "0.79783535", "0.78162605", "0.78162605", "0.7748213", "0.7685755", "0.76730025", "0.76420665", "0.75763917", "0.74352086", "0.737339", "0.7333998", "0.7240099", "0.7178343", "0.7155316", "0.7119871", "0.71034145", "0.6957274", "0.69407...
0.5898149
70
Store a new asset.
public function store(Request $request) { $user = Auth::user(); if (!$user->can('asset-create')) { return response()->json(['error' => 'Unauthorised'], $this->unauthorized); } $this->validate($request, [ 'name' => 'required', 'ticker' => 'required', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(AssetRequest $request)\n {\n $asset = new Asset($request->all());\n $asset->save()->saveImage();\n \n flash()->success('Success!', 'Asset has been created!');\n return redirect('assets');\n }", "public function store(AssetRequest $request)\n {\n ...
[ "0.7404902", "0.72014564", "0.7198392", "0.6847299", "0.64348835", "0.62753016", "0.62663674", "0.6243763", "0.6233236", "0.6231114", "0.61960495", "0.6180407", "0.61642593", "0.6124429", "0.60622555", "0.5988516", "0.5936438", "0.592809", "0.58675575", "0.5845467", "0.582244...
0.6791197
4
Display a listing of the resource.
public function index() { $user = auth()->user(); $ventas = Venta::with(['tipoVenta', 'detalleVentas'])->where(['estado' => 1])->get(); $user->breadcrumbs = collect([['nombre' => 'Cotizador', 'ruta' => null]]); return view('pages.cotizador.index', compact('ventas')); }
{ "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
Display a listing of the resource.
public function indexAdmin() { $user = auth()->user(); $user->breadcrumbs = collect([['nombre' => 'Cotizador', 'ruta' => null]]); return view('pages.cotizador.index_admin'); }
{ "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 allAdmin() { $user = auth()->user(); $productos = Venta::where('estado', 1)->get(); $arrProductos = array(); foreach ($productos as $producto) { $arrProductos[] = array( $producto->nombre, ($producto->estado) ? 'Activo' : ...
{ "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
Show the form for editing the specified resource.
public function edit(Venta $venta) { $venta = $venta->with(['tipoVenta', 'detalleVentas'])->find($venta->id); $tipoVenta = TipoVenta::all(); $venta->chk_multiplicar = ($venta->multiplicar == 1) ? 'checked' : ''; auth()->user()->breadcrumbs = collect([['nombre' => 'Cotizador', 'rut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(VentaRequest $request, Venta $venta) { $venta->nombre = $request->get('nombre'); $venta->precio_base = ($request->has('precio_base')) ? $this->decimalFormatBD($request->get('precio_base')) : null; if ($venta->mostrar_extra == 1) { $venta->descripcion_extr...
{ "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
Update the specified resource in storage.
public function detalleUpdate(Request $request, DetalleVenta $detalleVenta) { switch ($request->get('tipo_venta')) { case 1: $detalleVenta->valor_implementacion = $this->decimalFormatBD($request->get('inp_valor_implementacion')); $detalleVenta->valor_mantencion ...
{ "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
Resolves and returns activate strategy.
public function resolve(ModelInformationInterface $information);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStrategy();", "public function activate()\n {\n $this->isActive = true;\n return $this;\n }", "private static function single_activate() {\n\t\t// @TODO: Define activation functionality here\n\t}", "private static function single_activate() {\n\t\t// @TODO: Define activ...
[ "0.57996446", "0.5507355", "0.5502712", "0.5502712", "0.5453776", "0.5447875", "0.5442349", "0.54031086", "0.5272194", "0.5272194", "0.5272194", "0.5242907", "0.5220252", "0.52036345", "0.5181777", "0.51642925", "0.51642925", "0.51624143", "0.51321435", "0.51195693", "0.51020...
0.0
-1
Generate the parameters to use when render dashboard view.
public function index(string $id, array $context = []): array { $operationForm = $this->form->create(CreateOperationType::class); return [ 'wallet_id' => $id, 'position' => $this->getPositionPanel($operationForm), 'operation' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParamsToView();", "public static function get_parameters() {\n $r = array_merge(\n iform_map_get_map_parameters(),\n iform_report_get_minimal_report_parameters(),\n array(\n array(\n 'name' => 'downloadOwnDataOnly',\n 'caption' => 'Download own data o...
[ "0.64826035", "0.64055216", "0.6086743", "0.6069227", "0.60674614", "0.60576385", "0.6051238", "0.60296106", "0.5929624", "0.59282404", "0.58964515", "0.5848153", "0.58198047", "0.5807391", "0.5792908", "0.5785064", "0.5780741", "0.57454145", "0.57454145", "0.57454145", "0.57...
0.0
-1
Generate the parameters to use when render panel operation in the dashboard view.
protected function getOperationPanel(FormInterface $form): array { return [ 'entity_name' => 'operation', 'search_width' => '235px', 'form' => $form->createView(), 'fields' => [ [ 'name' => 'dateAt', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_parameters() {\n $r = array_merge(\n iform_map_get_map_parameters(),\n iform_report_get_minimal_report_parameters(),\n array(\n array(\n 'name' => 'downloadOwnDataOnly',\n 'caption' => 'Download own data only',\n 'description' => 'If ti...
[ "0.6100187", "0.5971384", "0.5949105", "0.5901366", "0.5876582", "0.5826999", "0.58166915", "0.5815034", "0.5659792", "0.5643734", "0.5628546", "0.56203085", "0.56015724", "0.55919707", "0.55825263", "0.5580178", "0.5534211", "0.55294216", "0.5525045", "0.5518244", "0.5483883...
0.0
-1
Generate the parameters to use when render panel position in the dashboard view.
protected function getPositionPanel(FormInterface $form): array { $stockNoteForm = $this->form->create(StockNoteType::class); return [ 'entity_name' => 'position', 'search_width' => '235px', 'form' => $form->createView(), 'fields' => [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPanel()\n {\n $this->_request = Zend_Controller_Front::getInstance()->getRequest();\n $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');\n $viewVars = $viewRenderer->view->getVars();\n $vars = '';\n if ($this->_request->isP...
[ "0.583635", "0.5806859", "0.57592756", "0.57310784", "0.57297343", "0.5680116", "0.5653496", "0.55759376", "0.5517511", "0.55134404", "0.5495995", "0.5480104", "0.54776883", "0.54769784", "0.5474652", "0.5470144", "0.5454228", "0.54128814", "0.5411167", "0.5397887", "0.537923...
0.0
-1
Generate the parameters to use when render panel dividend in the dashboard view.
protected function getPositionDividendPanel(): array { $positionDividendRetentionForm = $this->form->create(PositionDividendRetentionType::class); return [ 'entity_name' => 'position_dividend', 'search_width' => '235px', 'form' => $positionDividendRetent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDesignParams();", "public function getParameters() {\r\n $paramArray = array(\r\n 'optionsName' => $this->optionsName,\r\n 'userName' => $this->userName,\r\n 'isActive' => $this->isActive,\r\n 'activeMeasurement' => $this->activeMeasurement,\r...
[ "0.6011015", "0.59084225", "0.5765125", "0.57403845", "0.5702536", "0.5701159", "0.5690994", "0.5559121", "0.55481553", "0.5540313", "0.54797065", "0.5465413", "0.54220784", "0.53967685", "0.53846174", "0.5379291", "0.5361427", "0.5360805", "0.534812", "0.534812", "0.53384155...
0.53438437
20
Assert successful response from a controller action.
public function assertSuccessfulResponse(Client $client) { $this->assertTrue( $client->getResponse()->headers->contains( 'Content-Type', 'application/json' ) ); $response = static::$kernel->getContainer()->get('json.service')->decode($clie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function assertResponseOk()\n {\n $this->assertResponseStatusCode(200);\n }", "public function testIndexActionIsOk(){\n $this->dispatch('/administrator/manage-supplier');\n $this->assertResponseCode(200);\n }", "public function testIndexAction()\n {\n\n $res = $th...
[ "0.71904624", "0.70342696", "0.6898119", "0.6875961", "0.6859705", "0.6853898", "0.6853898", "0.6804831", "0.6689942", "0.66645855", "0.6651477", "0.6647248", "0.6605936", "0.65899456", "0.65840775", "0.6558053", "0.6544194", "0.65186334", "0.65152454", "0.6514818", "0.651035...
0.0
-1
Assert unsuccessful response from a controller action.
public function assertErrorResponse(Client $client) { $this->assertTrue( $client->getResponse()->headers->contains( 'Content-Type', 'application/json' ) ); $response = static::$kernel->getContainer()->get('json.service')->decode($client->g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function failAction()\n {\n //====================================================================//\n // Return Dummy Response\n return new JsonResponse(array('result' => 'Ko'), 500);\n }", "public function testIndexActionFail() : void\n {\n $this->di->request->setPos...
[ "0.74453276", "0.7327308", "0.7276924", "0.7061324", "0.69830847", "0.6898439", "0.68514746", "0.67127335", "0.6708525", "0.66874313", "0.66752297", "0.66735065", "0.6664252", "0.6590519", "0.6581912", "0.6568292", "0.65301496", "0.65275514", "0.64815146", "0.6478053", "0.646...
0.0
-1
Build a simulating tweet to see if it can be posted lately
private function simulateTweet() { return [ 'message' => request('custom_message'), 'link' => request('custom_link'), ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tweet() {\r\n\t\tif ($this->feed->tweet != 1 || $this->tweeted == 1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$this->save();\r\n\t\t$url = 'http://'.$_SERVER['HTTP_HOST'].$this->get_url();\t\r\n\t\t$tweet = text::limit_chars($this->feed->tweet_desc.' '.$this->title,118,'...',TRUE).' '.$url;\r\n\t\tzest::...
[ "0.655367", "0.628879", "0.62842625", "0.6260684", "0.58792454", "0.5857825", "0.58534455", "0.5851857", "0.581452", "0.5776776", "0.5753014", "0.5730937", "0.5623866", "0.5615089", "0.5580864", "0.55499816", "0.55090296", "0.5465936", "0.54640996", "0.5456615", "0.54376286",...
0.5408823
22
Display a listing of the resource.
public function index() { $campaigns = Campaign::all(); // If we have no videos, campaigns will not run without custom data $hasVideos = DB::table('videos')->count() > 0; // If we have no links, campaigns will not run without custom data $hasLinks = DB::table('links')->count(...
{ "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() { $websites = Website::getAvailable(); // Check if we still have websites available if (count($websites) > 0) { return view('campaigns.create', compact('websites')); } return back()->with('warning', 'You have no more websites available!');...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request, [ 'custom_message' => 'required_with:custom_link', 'custom_link' => 'required_with:custom_message', 'post_id' => 'required_if:type,like,retweet', ]); // Validate if tweet is valid (custom ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show(Campaign $campaign) { // }
{ "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(Campaign $campaign) { return view('campaigns.edit', compact('campaign')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Campaign $campaign) { $this->validate($request, [ 'custom_message' => 'required_with:custom_link', 'custom_link' => 'required_with:custom_message', 'post_id' => 'required_if:type,like,retweet', ]); // Validate if tw...
{ "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(Campaign $campaign) { $campaign->delete(); return redirect()->route('campaigns.index')->with('success', 'Campaign deleted succesfully!'); }
{ "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
Toggle campaign active state.
public function toggleActive(Campaign $campaign) { $campaign->toggleActive(); return back(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function active($id) {\n $result = false;\n if (self::exists($id)) {\n $result = EmailmarketingCampaign::find($id)->fill(['active'=>1]);\n $result->update();\n }\n return $result;\n }", "public function setActive() {}", "public function cl...
[ "0.62192756", "0.60850364", "0.6044792", "0.59919953", "0.5801004", "0.5722481", "0.56322944", "0.5617547", "0.5586583", "0.55706406", "0.55452085", "0.5527366", "0.5444551", "0.5444551", "0.54441315", "0.54335856", "0.54243225", "0.54231316", "0.54200155", "0.54200155", "0.5...
0.75640607
0
Listen for each logged message and attach it to the global span
protected function registerEvents(): void { Event::listen(MessageLogged::class, function (MessageLogged $e) { if( app()->bound('current-context') ) app('current-context')->log((array)$e); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function send_log() {\n MessageLogger::add_log($this->log);\n $this->log = \"\";\n }", "public function listen() {\n\t\t$fields = wp_parse_args( $_POST, array(\n\t\t\t'check' => '',\n\t\t\t'log-level' => '',\n\t\t\t'log-engine' => '',\n\t\t) );\n\n\t\tforeach ( $fields as &$single_...
[ "0.5802164", "0.5746172", "0.56538665", "0.56199497", "0.55980885", "0.5466589", "0.54457885", "0.5390057", "0.52129394", "0.5185783", "0.51718813", "0.5132242", "0.51280725", "0.5115929", "0.51121336", "0.50865436", "0.5080143", "0.5054437", "0.5054437", "0.50462013", "0.504...
0.5649857
3
It just returns one for the challenge
public function findByUser(Criteria $criteria): ?Account { $accounts = array_filter(parent::findAll(), function (Account $account) use ($criteria) { return $account->userId()->value() == $criteria->value(); }); return empty($accounts) ? null : array_pop($accounts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getChallengeId($challenge_name) {\n $challenges = challenges();\n foreach ($challenges as $challenge_id => $data) {\n if (preg_match('/'.$data['name'].'/i',$challenge_name)) {\n return $challenge_id;\n }\n }\n return false;\n}", "public function getChallenge()\n\t{\n...
[ "0.6619691", "0.6592669", "0.62603104", "0.6095342", "0.59434855", "0.5808168", "0.5735408", "0.57072943", "0.5655348", "0.5603718", "0.55994", "0.55984277", "0.55733883", "0.55632776", "0.55362314", "0.55061394", "0.5471782", "0.54436666", "0.5415226", "0.5406345", "0.537562...
0.0
-1
Get the appointment end time.
public function getEndAtAttribute(): string { $app_slot = $this->doctor->app_slot; return $this->start_at->addMinutes($app_slot)->toDateTimeString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndTime()\n {\n $time = $this->eventdatetime->endtime;\n\n if (empty($time)) {\n return $time;\n }\n\n if ($this->eventdatetime->isRecurring() &&\n isset($this->recurringdate) &&\n $this->recurringdate instanceof \\UNL\\UCBCN\\Event...
[ "0.7728677", "0.74287534", "0.7404173", "0.7392355", "0.73750335", "0.73750335", "0.73750335", "0.73750335", "0.73750335", "0.73750335", "0.73750335", "0.73750335", "0.7370909", "0.7342982", "0.7306177", "0.72935015", "0.72678596", "0.7233236", "0.7138491", "0.71171397", "0.7...
0.707454
25
Get the appointment color.
public function getColorAttribute(): string { if($this->isCompleted()) { $color = '#68d391'; } else if ($this->isCanceled()) { $color = '#fc8181'; } else if ($this->isMissed()) { $color = '#cbd5e0'; } else { $color = $this->doctor->colo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColor()\n {\n // Busca en esta clase la propiedad X\n return $this->color;\n }", "public function getColor() {\n //Busca en esta clase la propiedad x\n return $this->color;\n }", "public function getColor()\n {\n return $this->color;\n }", ...
[ "0.6934392", "0.68937725", "0.68509805", "0.68509805", "0.68509805", "0.68403655", "0.6833414", "0.6824269", "0.6783075", "0.67679685", "0.67555827", "0.6734506", "0.67217946", "0.66901886", "0.6688015", "0.6661775", "0.6661775", "0.66614974", "0.66451615", "0.66361386", "0.6...
0.68075037
8
Get the appointment editable attribute.
public function getIsEditableAttribute(): string { return ! $this->start_at->isPast() ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributeToEditProperty()\n {\n return Attribute::find($this->editAttributeId);\n }", "public function getCanEditAttribute()\n {\n // Are you the owner if the note?\n return Auth::id() == $this->user_id;\n }", "public function isEditable()\n {\n ret...
[ "0.7216312", "0.6701381", "0.65519154", "0.6269192", "0.60349554", "0.5992434", "0.5954967", "0.5918142", "0.5802015", "0.57624507", "0.575861", "0.57377726", "0.5716839", "0.56964016", "0.5682466", "0.56650215", "0.56617963", "0.5660485", "0.56221163", "0.55550575", "0.55479...
0.6928397
1
Determine if the appointment is completed.
public function isCompleted(): bool { return $this->status == 'completed'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasCompleted() : bool\n {\n return $this->completed_at !== null;\n }", "public function isDone()\n\t{\n\t $today = Carbon::now()->setTimezone('America/Los_Angeles')->startOfDay();\n\t return $today->gte($this->event_date->endOfDay());\n\t}", "public function is_complete() {\n...
[ "0.74457735", "0.7406386", "0.7360557", "0.7330628", "0.71770084", "0.7170402", "0.71540236", "0.7090529", "0.70676124", "0.70634145", "0.70328325", "0.69264334", "0.6848838", "0.68487585", "0.6789245", "0.6739417", "0.67117065", "0.6685741", "0.666158", "0.66484016", "0.6646...
0.7287728
4
Determine if the appointment is canceled.
public function isCanceled(): bool { return $this->status == 'canceled'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isCanceled()\n {\n return static::STATUS_CANCELED == $this->getStatus();\n }", "public function isCanceled()\n {\n return $this->stateData['canceled'];\n }", "public function canBeCanceled()\n\t{\n\t\t$flight_at = Carbon::createFromFormat('Y-m-d H:i:s', $this->flight_a...
[ "0.7763787", "0.7612273", "0.74654275", "0.731061", "0.72713053", "0.71372855", "0.7004523", "0.6984274", "0.6852371", "0.68481666", "0.6838992", "0.67065966", "0.66342235", "0.66126335", "0.6599292", "0.6537981", "0.65160793", "0.65000534", "0.6405564", "0.6261916", "0.62485...
0.7692145
1
Determine if the appointment is missed.
public function isMissed(): bool { return $this->status == 'missed'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isRedeemed() {\n // we get if it wasn't used yet\n return $this->getUsed_at() != '';\n }", "public function hasAlarmList()\n {\n return $this->alarm !== null;\n }", "private function checkEventDateNotDue(){\n $event = Event::find($this->id);\n $now = Carbon:...
[ "0.6312505", "0.58718836", "0.57855433", "0.5779899", "0.5610996", "0.56108636", "0.5557914", "0.5556666", "0.5538188", "0.55184186", "0.54848623", "0.54589576", "0.54332083", "0.53519076", "0.5348624", "0.5341566", "0.5259602", "0.52572244", "0.5256387", "0.5254475", "0.5239...
0.6984136
0
Determine if the appointment is pending.
public function isPending(): bool { return $this->status == 'pending'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPending()\n {\n return $this->status === self::STATUS_PENDING;\n }", "public function isPending()\n {\n return static::STATUS_PENDING == $this->getStatus();\n }", "public function isPending()\n\t{\n\t\treturn ($this->get('state') == self::STATE_PENDING);\n\t}", "fu...
[ "0.7820632", "0.7753319", "0.76995504", "0.74140424", "0.7403332", "0.73832333", "0.73604125", "0.7223761", "0.7208473", "0.7208302", "0.71049666", "0.70887125", "0.7031097", "0.6991954", "0.68370515", "0.6819077", "0.6746296", "0.6697734", "0.6582661", "0.6468816", "0.636055...
0.76557153
3
Run the database seeds.
public function run() { DB::table('product')->insert([ [ 'id' =>"1", 'nama_product' => "Kaos", ], ]); DB::table('cart')->insert([ [ 'id' =>"1", 'status' => "2", 'total_harga' => "20000", 'users' => "6", 'alamat_c...
{ "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
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Execute the console command.
public function handle() { $apTable = 'action_plan_tb'; $processRegion = 'process_region_tb'; $userTable ='users_tb'; $sale ='销售'; $service ='售后'; $finance = '金融'; $seniors = []; //高级区域经理 /* $saleSenior = DB::select("select DISTINCT region_id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
/ returns true if $name is a valid name for a whitelist file name or ip
function is_validwhitelistname($name) { if (!is_string($name)) return false; if (!preg_match("/[^a-zA-Z0-9\_\.\/]/", $name)) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_validwhitelistname($name) {\n\tif (!is_string($name))\n\treturn false;\n\n\tif (!preg_match(\"/[^a-zA-Z0-9\\.\\/]/\", $name))\n\treturn true;\n\n\treturn false;\n}", "public static function filename_valid($name) {\n return strlen($name) < 100 && preg_match(\"/^[a-z0-9 \\.-]+$/i\", $name) != 0;\n ...
[ "0.802819", "0.7714814", "0.7443486", "0.73640317", "0.7297015", "0.71925724", "0.71594346", "0.71534747", "0.7104145", "0.7102444", "0.7047936", "0.703362", "0.7030269", "0.6971984", "0.6816961", "0.6788382", "0.6780255", "0.67668587", "0.67611545", "0.6760311", "0.6720888",...
0.80172753
1
Construct a new merchant gateway
public function __construct() { // Load components required by this gateway Loader::loadComponents($this, array("Input", "Net")); // Load the language required by this gateway Language::loadLang("alipay", null, dirname(__FILE__) . DS . "language" . DS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PaymentGateway()\n\t\t{\n\t\t\t// exit(\"Cannot instantiate this class directly\");\n\t\t}", "public function inicializa(){\n $this->pasarela=new Braintree_Gateway([\n 'environment' => 'sandbox',\n 'merchantId' => '5rhrmyjvb8grrg3p',\n 'publicKey' => 'fxckz62h6j8g...
[ "0.66716826", "0.6384696", "0.6249484", "0.62149787", "0.6110789", "0.60577065", "0.6033565", "0.60211897", "0.59701854", "0.5967527", "0.59634644", "0.5953352", "0.5910391", "0.58746976", "0.5858993", "0.5858393", "0.5829891", "0.58226234", "0.58142745", "0.58082706", "0.580...
0.57635397
24
Returns the name of this gateway
public function getName() { return Language::_("Alipay.name", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGatewayTitle()\n {\n return GatewayInfo::niceTitle($this->Gateway);\n }", "public function getName()\n {\n return 'Global Alipay wap gateway';\n }", "public function getShortName()\n {\n return Helper::getGatewayShortName(get_class($this));\n }", "pub...
[ "0.789757", "0.78271747", "0.77719074", "0.7413362", "0.7209018", "0.71404654", "0.7117296", "0.70888937", "0.70888937", "0.70326006", "0.7013637", "0.68108606", "0.6804386", "0.6782293", "0.6782293", "0.6782293", "0.6782293", "0.6776135", "0.6768356", "0.6759676", "0.6757433...
0.0
-1
Returns the version of this gateway
public function getVersion() { return self::$version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_version() {\n return $this->version;\n }", "public function getVersion()\n {\n return $this->sendrequest('version', null);\n }", "function get_version() {\n\n\t\treturn $this->version;\n\n\t}", "public function get_version() {\n\t\treturn $this->version;\n\t}", "p...
[ "0.80273837", "0.7986565", "0.79862887", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7984941", "0.7972181", "0.7972181", "0.7960587", "0.7939388", "0.7932859", "0.7915621", "0.78928894", "0.7882056", ...
0.77891386
58
Returns the name and URL for the authors of this gateway
public function getAuthors() { return self::$authors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthorsUrl()\n {\n if ($listKey = Mage::getStoreConfig('komaks_newsedit/author/url_rewrite_list')) {\n return Mage::getUrl('', array('_direct'=>$listKey));\n }\n return Mage::getUrl('komaks_newsedit/author/index');\n }", "protected function getAuthorsLinks...
[ "0.7232514", "0.6843993", "0.6841136", "0.6792221", "0.67890143", "0.6710847", "0.66876364", "0.660574", "0.65559626", "0.6488526", "0.6444683", "0.6444683", "0.6444683", "0.64100224", "0.6408947", "0.63773805", "0.6357685", "0.6350904", "0.6340624", "0.6340624", "0.6340574",...
0.61262774
45
Return all currencies supported by this gateway
public function getCurrencies() { return array("CNY"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSupportedCurrencies()\n {\n return response()->json(Currency::all());\n }", "abstract protected function getSupportedCurrencies();", "function GetCurrencies()\n\t{\n\t\t$result = $this->sendRequest(\"GetCurrencies\", array());\t\n\t\treturn $this->getResultFromResponse($result);...
[ "0.8314283", "0.8284117", "0.8098432", "0.8052178", "0.7860705", "0.78384566", "0.77574855", "0.7678886", "0.7632688", "0.758929", "0.75632095", "0.7555622", "0.7549995", "0.7468307", "0.7434804", "0.73897815", "0.7360509", "0.73509765", "0.7276345", "0.7267775", "0.71429574"...
0.72079146
20
Sets the currency code to be used for all subsequent payments
public function setCurrency($currency) { $this->currency = $currency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCurrencyCode(){\n switch($this->Currency){\n case \"USD\": $this->CurrencyCode = 840;\n break;\n case \"EUR\": $this->CurrencyCode = 978;\n break;\n case \"AUD\": $this->CurrencyCode = 036;\n break;\n case \"CAD\": $this->CurrencyCode = 124;\n...
[ "0.7767778", "0.7531012", "0.72986704", "0.7068841", "0.7044449", "0.7044449", "0.6947241", "0.6930994", "0.686739", "0.6830694", "0.67050433", "0.6632512", "0.6523546", "0.6508826", "0.6498434", "0.6498434", "0.6472416", "0.6434767", "0.638117", "0.6335125", "0.6307704", "...
0.6407418
18
Create and return the view content required to modify the settings of this gateway
public function getSettings(array $meta=null) { $this->view = $this->makeView("settings", "default", str_replace(ROOTWEBDIR, "", dirname(__FILE__) . DS)); // Load the helpers required for this view Loader::loadHelpers($this, array("Form", "Html")); $this->view->set("meta", $meta); return $this->view->fet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function settings()\n {\n $this->authCheck();\n\n $settings = DB::table('site_settings')\n ->get();\n \n $settings=view('admin.settings')\n ->with('settings',$settings);\n\n return view('admin.master')\n ->with('main_content',$settings);\n }...
[ "0.68227154", "0.66946226", "0.66880304", "0.6672013", "0.663764", "0.65878123", "0.6552968", "0.65446997", "0.65239424", "0.6523007", "0.6517904", "0.6508338", "0.6467499", "0.6458464", "0.64416534", "0.6441652", "0.64204377", "0.6395173", "0.6390946", "0.6381431", "0.637005...
0.0
-1
Validates the given meta (settings) data to be updated for this gateway
public function editSettings(array $meta) { // Verify meta data is valid $rules = array( 'email' => array( 'valid' => array( 'rule' => array("isEmail", false), 'message' => Language::_("Alipay.!error.account_id.valid", true) ) ), 'pid' => array( 'valid' => array( 'rule' => array(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editSettings(array $meta)\n {\n // Verify meta data is valid\n $rules = array(\n 'user' => array(\n 'empty' => array(\n 'rule' => \"isEmpty\",\n 'negate' => true,\n 'message' => Language::_(\"Tpa...
[ "0.66619384", "0.59582204", "0.5904883", "0.5824981", "0.55977345", "0.5556374", "0.546992", "0.5460652", "0.544151", "0.5406278", "0.53988165", "0.5363083", "0.5358136", "0.53512156", "0.53455406", "0.5324636", "0.53238577", "0.5312618", "0.5295003", "0.52854896", "0.5272663...
0.6870661
0
Returns an array of all fields to encrypt when storing in the database
public function encryptableFields() { return array("key"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function encryptableFields()\n {\n return array(\"key\");\n }", "public function sensitiveFields(): array\n {\n return static::SENSITIVE_FIELDS;\n }", "public function getEncryptAttributes()\n {\n if (property_exists(get_called_class(), 'encrypt')) {\n retu...
[ "0.80287063", "0.6619617", "0.63983643", "0.6392238", "0.63796204", "0.63113254", "0.63083416", "0.6220117", "0.6115488", "0.60718364", "0.60633224", "0.6005806", "0.59667265", "0.5961733", "0.58526427", "0.5845258", "0.5839522", "0.5839522", "0.58386797", "0.5835589", "0.582...
0.8025748
1
Sets the meta data for this particular gateway
public function setMeta(array $meta=null) { $this->meta = $meta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMetaInfo($meta) {\n $this->meta = $meta;\n }", "public function setMetaData($metaData);", "protected function setup_metadata() {\n\t\tif ( $this->get_meta_type() ) {\n\t\t\t$this->fill( $this->get_metadata() );\n\t\t}\n\t}", "public function useMetaData()\n {\n $this->r...
[ "0.6649828", "0.64985114", "0.6410198", "0.63966197", "0.63807005", "0.63766277", "0.63766277", "0.6232787", "0.59565955", "0.5900994", "0.5884754", "0.5884619", "0.5872514", "0.58574915", "0.58542675", "0.58484244", "0.5787259", "0.57475007", "0.5735727", "0.57352954", "0.56...
0.5876482
12
Returns all HTML markup required to render an authorization and capture payment form
public function buildProcess(array $contact_info, $amount, array $invoice_amounts=null, array $options=null) { $this->view = $this->makeView("process", "default", str_replace(ROOTWEBDIR, "", dirname(__FILE__) . DS)); // Load the helpers required for this view Loader::loadHelpers($this, array("Form", "Html")); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tower_claims_form() {\n ob_start();\n include('template-parts/form-claim.php');\n $html = ob_get_contents();\n ob_end_clean();\n return $html;\n}", "public function payment_fields() {\n echo '<p><strong>Pay securely using your credit card</strong> <img src=\"' . plugins_url() . '/w...
[ "0.6831278", "0.6788915", "0.6484929", "0.64094156", "0.6340139", "0.6333488", "0.62982434", "0.6292532", "0.6280204", "0.62760043", "0.62127715", "0.6210137", "0.6208746", "0.6184255", "0.616453", "0.6113797", "0.6099813", "0.6097404", "0.6097157", "0.6053527", "0.60442746",...
0.0
-1
Validates the incoming POST/GET response from the gateway to ensure it is legitimate and can be trusted.
public function validate(array $get, array $post) { $backup = $post; $client_id = $this->ifSet($post['client_id']); unset($post['client_id']); unset($post['sign_type']); $sign = $post['sign']; unset($post['sign']); if ($this->checkSign($post, $sign) && $this->checkNotify($this->ifSet($post['notify_id']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check_response() {\n\n\t\t// To test in live mode ($_post)\n\t\t$post = ( file_get_contents( 'php://input' ) );\n\n\t\tif ( ! empty( $post ) ) {\n\t\t\tdo_action( 'valid-oyst-one-click-request', $post );\n\t\t\texit;\n\t\t}\n\t\tWC_Oyst_One_Click::log( 'Retour One Click vide', 'error' );\n\t\twp_di...
[ "0.6678901", "0.66498065", "0.6609963", "0.65545", "0.65222794", "0.6498234", "0.64888823", "0.6460682", "0.63734996", "0.63257587", "0.62860733", "0.62805676", "0.62755466", "0.6221119", "0.61744153", "0.6160997", "0.6155332", "0.61280286", "0.61273366", "0.6113991", "0.6111...
0.0
-1
Returns data regarding a success transaction. This method is invoked when a client returns from the nonmerchant gateway's web site back to Blesta.
public function success(array $get, array $post) { $backup = $get; unset($get[0]); unset($get[1]); $client_id = $this->ifSet($get['client_id']); unset($get['client_id']); unset($get['sign_type']); $sign = $get['sign']; unset($get['sign']); if ($this->ifSet($get['is_success']) == 'T' && $this->check...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSuccess();", "public function viewSuccessfulTransactions()\n {\n return $this->getSuccessfulTransactions(self::GATEWAY);\n }", "protected function successfulResponse(){\n return response()->json([\n 'ResultCode'=> 0,\n 'ResultDesc'=>'Transaction completed succ...
[ "0.7133406", "0.69798625", "0.6828248", "0.67694485", "0.67593855", "0.66722095", "0.66648996", "0.6640299", "0.6631771", "0.658675", "0.65101814", "0.6499094", "0.6447091", "0.643705", "0.64227873", "0.64056164", "0.6358123", "0.6290487", "0.628145", "0.62810165", "0.6223035...
0.5623324
94
Captures a previously authorized payment
public function capture($reference_id, $transaction_id, $amount, array $invoice_amounts=null) { $this->Input->setErrors($this->getCommonError("unsupported")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function record_subscription_payment() { }", "function _doCapt($oID, $amt = 0, $currency = 'USD') {\r\n global $db, $messageStack;\r\n\r\n //@TODO: Read current order status and determine best status to set this to\r\n $new_order_status = MODULE_PAYMENT_AUTHORIZENET_ECHECK_ORDER_STATUS_ID;\r\n ...
[ "0.66224873", "0.6606543", "0.6600139", "0.6593522", "0.6566402", "0.6420484", "0.6413922", "0.6350346", "0.6284637", "0.62540615", "0.62383956", "0.6233913", "0.6161857", "0.6145331", "0.61284083", "0.61207324", "0.6057181", "0.6042988", "0.60014755", "0.5990828", "0.598815"...
0.0
-1
Void a payment or authorization
public function void($reference_id, $transaction_id, $notes=null) { $this->Input->setErrors($this->getCommonError("unsupported")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function void(Varien_Object $payment)\n {\n //Proceed parent void method in case that registry value ops_auto_void is set\n if (true === Mage::registry('ops_auto_void')) {\n Mage::unregister('ops_auto_void');\n return parent::void($payment);\n }\n\n //Set...
[ "0.7107653", "0.7057634", "0.70034224", "0.69677293", "0.6938851", "0.6876599", "0.6847048", "0.6816612", "0.68006825", "0.67071784", "0.658099", "0.6527739", "0.65028083", "0.64541745", "0.6447634", "0.6403262", "0.6347522", "0.63318306", "0.63057965", "0.62625283", "0.61707...
0.0
-1
Serializes an array of invoice info into a string
private function serializeInvoices(array $invoices) { $str = ""; foreach ($invoices as $i => $invoice) $str .= ($i > 0 ? "|" : "") . $invoice['id'] . "=" . $invoice['amount']; return $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _serialize()\r\n {\r\n $values = array(count($this->_items));\r\n foreach ($this->_items as $item)\r\n {\r\n $itemArr = $item->asArray();\r\n foreach ($this->_struct as $key)\r\n {\r\n $values[] = is_null($itemArr[$key]) ? '--...
[ "0.6226235", "0.6195105", "0.6148415", "0.60845304", "0.60483354", "0.6029355", "0.59620446", "0.59481883", "0.5872718", "0.5832097", "0.58312666", "0.582704", "0.5809855", "0.58081114", "0.57989115", "0.5793982", "0.57879645", "0.5774986", "0.5703403", "0.5703403", "0.570340...
0.7760104
0
Unserializes a string of invoice info into an array
private function unserializeInvoices($str) { $invoices = array(); $temp = explode("|", $str); foreach ($temp as $pair) { $pairs = explode("=", $pair, 2); if (count($pairs) != 2) continue; $invoices[] = array('id' => $pairs[0], 'amount' => $pairs[1]); } return $invoices; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoiceData() : array\n {\n return $this->invoiceData ?? [];\n }", "public function unserialize($data) {}", "public function unserialize($serialized);", "public function unserialize($serialized);", "function toArray($str)\n\t{\n\t\t$tmpItemArr = array_filter(explode('-dlm-',...
[ "0.58446276", "0.58164907", "0.55956686", "0.55956686", "0.5583764", "0.5503695", "0.5478447", "0.54061204", "0.5403968", "0.53967184", "0.5388829", "0.53279144", "0.53137285", "0.53022486", "0.52948534", "0.5272036", "0.5265965", "0.52201927", "0.5211069", "0.5206928", "0.51...
0.71243894
0
Checks whether a transaction exists given the transaction ID from the gateway.
private function checkTransID($transaction_id, $client_id) { Loader::loadModels($this, array("Transactions")); $transaction = $this->Transactions->getByTransactionId($transaction_id, $client_id); if ($transaction) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isTransactionExist($transactionId)\n {\n if (strlen($transactionId) <= 3) {\n return false;\n }\n\n $insertOrder = $this->db->fetchRow(\n 'SELECT id FROM s_order WHERE transactionID = ? AND status != -1',\n [$transactionId]\n );\n\n ...
[ "0.7200531", "0.7042512", "0.66205716", "0.64848757", "0.63094985", "0.62719214", "0.6264995", "0.6262125", "0.6199911", "0.6195939", "0.6125707", "0.6125707", "0.61176383", "0.60681444", "0.6056931", "0.6028596", "0.59498864", "0.5935764", "0.5907497", "0.58823055", "0.58805...
0.69478405
2
Sign a array before send request to alipay
private function sign($fields) { $temp = array(); while (list ($key, $val) = each($fields)) { if ($key == "sign" || $key == "sign_type" || $val == "") continue; else $temp[$key] = $fields[$key]; } $fields = $temp; unset($temp); ksort($fields); reset($fields); $signString = ""; while (list ($key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sign(array $args);", "public function sign()\n {\n }", "public function signParams($params) {\n $signing = '';\n $values = array();\n\t\t$secret = $this->getSecret();\n ksort($params);\n foreach($params as $key => $value) {\n\t\t\t$signing .= $key . $value;\n\t...
[ "0.650623", "0.6380286", "0.6008258", "0.59996367", "0.5816415", "0.5702523", "0.5696951", "0.56477493", "0.5623285", "0.56228596", "0.5597926", "0.5552943", "0.5534877", "0.55162376", "0.5496291", "0.5493025", "0.54684865", "0.5455005", "0.5423705", "0.54172915", "0.53972", ...
0.5970519
4
Check array sign from alipay
private function checkSign($fields, $sign) { ksort($fields); reset($fields); $signString = ''; while (list ($key, $val) = each($fields)) { $signString .= $key . '=' . $val . '&'; } $signString = substr($signString, 0, count($signString) - 2); $signed = md5($signString . $this->ifSet($this->meta['key']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function verSign($array, $sign){\n if($sign == WxApi::genSign($array)){\n return true;\n }else{\n return false;\n }\n }", "public function getSigns();", "function verify () {\n// $aop->alipayrsaPublicKey='MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC...
[ "0.6652701", "0.62962973", "0.59627795", "0.59570324", "0.5901029", "0.5841826", "0.5828546", "0.5655168", "0.56427604", "0.55831355", "0.55776983", "0.55473113", "0.55456096", "0.5484807", "0.54798585", "0.54662544", "0.5455723", "0.54365903", "0.5424141", "0.54171866", "0.5...
0.54596305
16
Get options in "keyvalue" format
public function toArray() { return array( 'production' => Mage::helper('adminhtml')->__('Production'), 'staging' => Mage::helper('adminhtml')->__('Staging'), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "...
[ "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.74328315", "0.7415759", "0.7171282", "0.7171282", "0.7170338", ...
0.0
-1
Main entry point to the application
public function extract(Route $route, AdapterInterface $console) { $startUrl = $route->getMatchedParam('url'); $outputFile = $route->getMatchedParam('out'); $formatClass = '\\Scraper\\Format\\' . ucwords(strtolower($route->getMatchedParam('format'))); //we set the http client no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function main(){\n\t\t\t\n\t\t}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function main() {}", "public function ...
[ "0.75923234", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573", "0.74281573"...
0.0
-1
Get the whole table of books. Return array.
public function getBooks() { $sql = 'SELECT bookshop_books.id, bookshop_books.description, bookshop_books.booksName, bookshop_books.pubyear, bookshop_discounts.id AS discountsId, bookshop_disco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllBooks(){\n $query = \"SELECT * FROM Book;\";\n return $this->getBookDetail($query);\n }", "public function getBooks(){\n $sql = \"SELECT * FROM book;\";\n $res = mysqli_query($this->link, $sql);\n $books = mysqli_fetch_all($res);\n return $books;...
[ "0.7904977", "0.7724865", "0.7712345", "0.7419613", "0.72971034", "0.7237914", "0.71962816", "0.7193608", "0.7166071", "0.71002173", "0.70663714", "0.699025", "0.6963624", "0.6961018", "0.6955478", "0.6937702", "0.69031703", "0.6898518", "0.6853069", "0.6799621", "0.66558534"...
0.67358845
20
Get full information about the books where: /id(books). /false(null)/id(authors). /false(null)/false(null)/id(genres). Return array.
public function getBooksByParams($params) { list($arrParams['idBooks'], $arrParams['idAuthors'], $arrParams['idGenres'] ) = explode('/', $params['params'], 4); $sql = 'SELECT bookshop_books.id, bookshop_books.description, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getallBooks()\r\n {\r\n $sql = \"SELECT id, name, publisher, year,description FROM book\";\r\n $query = $this->db->prepare($sql);\r\n $query->execute();\r\n\r\n return $query->fetchAll();\r\n }", "public function getAllBooks(){\n $query = \"SELECT * FROM B...
[ "0.6956468", "0.69207734", "0.6865996", "0.68163604", "0.67515075", "0.67016655", "0.66374224", "0.65546006", "0.6543279", "0.65199596", "0.64313483", "0.6388893", "0.6381168", "0.6368061", "0.6358493", "0.6296615", "0.6286169", "0.62804884", "0.62764174", "0.6228084", "0.620...
0.63016033
15
" SELECT scores.id, scores.points, scores.game, users.username
public function snakeScores() { // FROM scores // INNER JOIN users ON scores.user_id=users.id // WHERE scores.user_id='$id'; // " $scores = Score::orderBy("points", "DESC") ->join('users','scores.user_id','=','users.id') ->where('game',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getScores()\n {\n $stmt = $this->DB->prepare(\"SELECT users.username, puzzles.id, puzzles.highscore_time FROM users JOIN puzzles ON users.id = puzzles.highscore_user_id\");\n $stmt->execute();\n // fetchall returns all records in the set as an array\n return $stmt->fe...
[ "0.6811333", "0.61994", "0.6098801", "0.58703226", "0.57878083", "0.57602865", "0.57115644", "0.56919664", "0.5658744", "0.56326944", "0.56109494", "0.5591835", "0.5538121", "0.5521449", "0.55121595", "0.5506633", "0.54980314", "0.5488794", "0.547878", "0.5452249", "0.5448223...
0.6006908
3
public static function insert_one_staff($chrID, $name, $id, $auth, $pass)
public static function insert_one_staff() { return parent::insert_to_columns(func_get_args()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addStaff($name, $cellphone, $store_id, $wechat_id)\n {\n $name = strip_tags($name);\n $cellphone = strip_tags($cellphone);\n $store_id = strip_tags($store_id);\n $wechat_id = strip_tags($wechat_id);\n $status = 'N';\n $description = 'wechat created staff...
[ "0.6768745", "0.66826344", "0.6612501", "0.65286213", "0.64290684", "0.6192696", "0.61830425", "0.60896575", "0.6061156", "0.60076153", "0.59817463", "0.5969473", "0.5959486", "0.5930204", "0.5925468", "0.59191656", "0.5914841", "0.5898428", "0.5882089", "0.5871063", "0.58628...
0.7104776
0
The end date and time of the item (in [ISO 8601 date format](
public function endDate($endDate) { return $this->setProperty('endDate', $endDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndDateTime();", "public function getDateTimeObjectEnd();", "public function getEndDateAndTime() {}", "public function getEnd_date() {\n\t\treturn $this->_end_date;\n\t}", "public function getEndDateTime()\n {\n return $this->endDateTime;\n }", "public function get_end_dat...
[ "0.7273195", "0.70835245", "0.6888372", "0.68717617", "0.68230295", "0.67797357", "0.67565393", "0.66900176", "0.6611201", "0.66067123", "0.65667653", "0.65667653", "0.65667653", "0.65667653", "0.65667653", "0.65576553", "0.6505448", "0.6476127", "0.6453115", "0.64466244", "0...
0.0
-1
The start date and time of the item (in [ISO 8601 date format](
public function startDate($startDate) { return $this->setProperty('startDate', $startDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateTimeObjectStart();", "public function getStartDateTime();", "public function getStartDateAndTime() {}", "public function getStartDate()\n {\n return $this->stringToDate((string) $this->json()->start_date);\n }", "public function date() {\n return $this->begin;\n ...
[ "0.73288393", "0.7173484", "0.6942839", "0.69411594", "0.6844922", "0.684201", "0.6826717", "0.6824359", "0.68055755", "0.6770171", "0.67701185", "0.67454726", "0.6716841", "0.6634189", "0.6624357", "0.6624357", "0.6624357", "0.6617639", "0.6617639", "0.6617639", "0.6617639",...
0.0
-1
DAFTAR FUNSI fungsi untuk menampilkan data $db = kelas database, $strDataID = ID data, jika ingin ditampilkan $arrInputData = array untuk menampung data
function getData($db, $strDataID = "") { global $words; global $arrData; if ($strDataID != "") { $strSQL = "SELECT t1.*, t2.employee_id, t2.id as id_employee, t2.employee_name, "; $strSQL .= "t3.section_name FROM hrd_employee_rating AS t1 "; $strSQL .= "LEFT JOIN hrd_employee AS t2 ON t1.id_employee =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function input_data($data,$table){\n\t\t$this->db->insert($table,$data);//menginputkan data ke database dengan function input_data\n }", "function saveData($db, &$strError)\n{\n global $error;\n $strError = \"\";\n (isset($_REQUEST['dataType'])) ? $strDataType = $_REQUEST['dataType'] : $strDataType = \"dep...
[ "0.71535707", "0.6730403", "0.67092437", "0.655833", "0.6457201", "0.6419566", "0.6404456", "0.6363915", "0.6310284", "0.6305591", "0.63031423", "0.6301943", "0.62943083", "0.62667507", "0.6240317", "0.62218153", "0.6216398", "0.6202339", "0.61926246", "0.61850446", "0.618385...
0.6381676
7
showData fungsi untuk menyimpan data
function saveData($db, &$strDataID, &$strError) { global $_REQUEST; global $_SESSION; global $error; global $messages; global $arrData; global $arrUserInfo; $strError = ""; $bolOK = true; $strToday = date("Y-m-d"); (isset($_REQUEST['dataEmployee'])) ? $strDataEmployee = $_REQUEST['dataEmployee'] : $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Data $data)\n {\n //\n }", "public function show($data)\n {\n }", "public static function showData() {\n\n\t\tforeach(self::$employee_array as $id => $employee) { // Pour chaque ligne on affiche chaque attribut correspondant au colonne du tableau\n\n\t\t\tif($employee->_...
[ "0.7435701", "0.7332886", "0.7250628", "0.7028514", "0.7014889", "0.6910163", "0.6863816", "0.6819001", "0.67287356", "0.6646815", "0.65934384", "0.65325785", "0.65040916", "0.6460516", "0.64593923", "0.6444549", "0.6410417", "0.6403099", "0.6384062", "0.63737494", "0.6353209...
0.0
-1
Generated from protobuf field string id = 1;
public function getId() { return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function id(): string;", "public function id(): string;", "function getId(){ return $this->toString(); }", "public function setId(string $id);", "abstract public function id(): string;", "public function id(): string\n {\n return $this->id;\n }", "public function id(): string\n {...
[ "0.651602", "0.651602", "0.64940196", "0.6486837", "0.6470575", "0.64663", "0.64663", "0.64663", "0.6433831", "0.63945806", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427"...
0.0
-1
Generated from protobuf field string id = 1;
public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function id(): string;", "public function id(): string;", "function getId(){ return $this->toString(); }", "public function setId(string $id);", "abstract public function id(): string;", "public function id(): string\n {\n return $this->id;\n }", "public function id(): string\n {...
[ "0.651602", "0.651602", "0.64940196", "0.6486837", "0.6470575", "0.64663", "0.64663", "0.64663", "0.6433831", "0.63945806", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427", "0.63534427"...
0.0
-1
Generated from protobuf field string name = 2;
public function getName() { return $this->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function big($name)\n {\n return $name;\n }", "public function getName(){ return $this->getField('name'); }", "public function get(string $name): FieldContract;", "function getName () {return $this->getFieldValue ('name');}", "public function id($name)\n {\n $keepIdx = preg_rep...
[ "0.5558608", "0.5493028", "0.54387426", "0.52227914", "0.51860124", "0.5155848", "0.515522", "0.5109678", "0.51054114", "0.5094769", "0.50945014", "0.5092645", "0.5087545", "0.5086789", "0.5086535", "0.508249", "0.5079723", "0.5072564", "0.50605875", "0.50334924", "0.5026924"...
0.0
-1
Generated from protobuf field string name = 2;
public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function big($name)\n {\n return $name;\n }", "public function getName(){ return $this->getField('name'); }", "public function get(string $name): FieldContract;", "function getName () {return $this->getFieldValue ('name');}", "public function id($name)\n {\n $keepIdx = preg_rep...
[ "0.5558608", "0.5493028", "0.54387426", "0.52227914", "0.51860124", "0.5155848", "0.515522", "0.5109678", "0.51054114", "0.5094769", "0.50945014", "0.5092645", "0.5087545", "0.5086789", "0.5086535", "0.508249", "0.5079723", "0.5072564", "0.50605875", "0.50334924", "0.5026924"...
0.0
-1
Generated from protobuf field float value = 3 [(.clarifai.api.utils.cl_show_if_empty) = true, (.clarifai.api.utils.cl_default_float) = 1];
public function getValue() { return $this->value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFloat() :float\n {\n return $this->value;\n }", "public function toFloat(): float\n {\n return (float) $this->getValue();\n }", "public static function float() {}", "public static function ensureFloat($value)\n\t{\n\t\treturn (float)$value;\n\t}", "public functi...
[ "0.6970579", "0.68162364", "0.6751137", "0.66860574", "0.66648984", "0.66509074", "0.6625258", "0.66208214", "0.6571159", "0.65699446", "0.6537298", "0.65270877", "0.64553636", "0.6454785", "0.64242107", "0.6411075", "0.6403424", "0.6379073", "0.6356541", "0.63458765", "0.633...
0.0
-1
Generated from protobuf field float value = 3 [(.clarifai.api.utils.cl_show_if_empty) = true, (.clarifai.api.utils.cl_default_float) = 1];
public function setValue($var) { GPBUtil::checkFloat($var); $this->value = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFloat() :float\n {\n return $this->value;\n }", "public function toFloat(): float\n {\n return (float) $this->getValue();\n }", "public static function float() {}", "public static function ensureFloat($value)\n\t{\n\t\treturn (float)$value;\n\t}", "public functi...
[ "0.6971153", "0.6817237", "0.6753457", "0.668557", "0.66646993", "0.6651361", "0.66255885", "0.6622285", "0.65734655", "0.6568036", "0.6539318", "0.6524646", "0.6458025", "0.64562476", "0.6425762", "0.64098775", "0.6377", "0.63541436", "0.63491553", "0.6329455", "0.6325907", ...
0.64035255
16
Generated from protobuf field .google.protobuf.Timestamp created_at = 4;
public function getCreatedAt() { return $this->created_at; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimestampCreated()\n {\n return $this->_getData(self::TIMESTAMP_CREATED);\n }", "public function createdAt();", "public function createdAt();", "public function createdAt() : \\DateTime;", "public function getCreate_at()\n {\n return $this->create_at;\n }", "p...
[ "0.71219796", "0.70921683", "0.70921683", "0.706917", "0.70633435", "0.70633435", "0.70519114", "0.7049046", "0.7042155", "0.7042155", "0.6990247", "0.6888413", "0.68680805", "0.6856611", "0.6837689", "0.6837689", "0.6837689", "0.6837689", "0.6794932", "0.67932063", "0.679320...
0.67791474
60
Generated from protobuf field .google.protobuf.Timestamp created_at = 4;
public function setCreatedAt($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->created_at = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimestampCreated()\n {\n return $this->_getData(self::TIMESTAMP_CREATED);\n }", "public function createdAt();", "public function createdAt();", "public function createdAt() : \\DateTime;", "public function getCreate_at()\n {\n return $this->create_at;\n }", "p...
[ "0.7122047", "0.7093382", "0.7093382", "0.707007", "0.70647174", "0.70647174", "0.7053288", "0.7048287", "0.6990356", "0.68882096", "0.6869416", "0.68582", "0.6838974", "0.6838974", "0.6838974", "0.6838974", "0.67965245", "0.6794526", "0.6794526", "0.6794526", "0.6794526", ...
0.7044992
9
Generated from protobuf field string language = 5;
public function getLanguage() { return $this->language; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function language(string $language);", "public function getFromLanguage(): string;", "public function language();", "public function language();", "public function getLanguage() {}", "public function getLangcode() {\n }", "protected function getLanguageParameter() {}", "public function getCod...
[ "0.73247045", "0.7031155", "0.69398534", "0.69398534", "0.65689653", "0.65227956", "0.6492628", "0.6441813", "0.6419333", "0.6419333", "0.64191", "0.6408763", "0.6377374", "0.6377374", "0.6377374", "0.6377374", "0.6377374", "0.6377374", "0.6369966", "0.6310889", "0.6309094", ...
0.60071814
57
Generated from protobuf field string language = 5;
public function setLanguage($var) { GPBUtil::checkString($var, True); $this->language = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function language(string $language);", "public function getFromLanguage(): string;", "public function language();", "public function language();", "public function getLanguage() {}", "public function getLangcode() {\n }", "protected function getLanguageParameter() {}", "public function getCod...
[ "0.73247045", "0.7031155", "0.69398534", "0.69398534", "0.65689653", "0.65227956", "0.6492628", "0.6441813", "0.6419333", "0.6419333", "0.64191", "0.6408763", "0.6377374", "0.6377374", "0.6377374", "0.6377374", "0.6377374", "0.6377374", "0.6369966", "0.6310889", "0.6309094", ...
0.6049179
42
Generated from protobuf field string app_id = 6;
public function getAppId() { return $this->app_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GET_APP_ID(){\n return \"7d0df388-f064-48eb-9092-27fbbf0a438e\";\n}", "public function getAppId() {\n return $this->app_id;\n }", "public function getID(): string {\n\t\treturn $this->appName;\n\t}", "public function getOGApplicationID();", "protected function getApplicationIdAttribut...
[ "0.6888273", "0.6821632", "0.67451316", "0.67272955", "0.6714343", "0.661704", "0.660079", "0.6591065", "0.65253997", "0.6504563", "0.64896774", "0.6487722", "0.6471144", "0.64584213", "0.64489675", "0.64374053", "0.64273554", "0.6423777", "0.6422799", "0.6422799", "0.6422799...
0.69075525
4
Generated from protobuf field string app_id = 6;
public function setAppId($var) { GPBUtil::checkString($var, True); $this->app_id = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public ...
[ "0.69075525", "0.69075525", "0.69075525", "0.69075525", "0.69075525", "0.69075525", "0.69075525", "0.6888273", "0.6821632", "0.67451316", "0.67272955", "0.6714343", "0.661704", "0.660079", "0.6591065", "0.65253997", "0.6504563", "0.64896774", "0.6487722", "0.6471144", "0.6458...
0.61320335
40
Generated from protobuf field string definition = 7;
public function getDefinition() { return $this->definition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefinition(): string {\n return \"`{$this->name}` {$this->type}\";\n }", "public function getDefinition()\n {\n return \"\";\n }", "function get_field_name( $str ){\n\t\treturn 'field-'.$this->id_base.'['.$this->number.']['.$str.']';\n\t}", "public function toString(...
[ "0.5623249", "0.5564602", "0.52095574", "0.5201477", "0.51185346", "0.5055083", "0.5047299", "0.503771", "0.50083566", "0.5005499", "0.4986761", "0.49650216", "0.49616835", "0.48984745", "0.48906916", "0.48851314", "0.48671302", "0.4865965", "0.48441464", "0.48306686", "0.482...
0.0
-1