Dataset Viewer
Auto-converted to Parquet Duplicate
query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
b3e60fb14c1060b79aea096060e52184
Returns the static model of the specified AR class.
[ { "docid": "42b5c838d92fc6430769ae648eea0d9e", "score": "0.0", "text": "public static function model($className=__CLASS__){\n\t\treturn parent::model($className);\n\t}", "title": "" } ]
[ { "docid": "b0057b95cf2481a9838c948c81d83bc7", "score": "0.72562826", "text": "public function as(string $class): Model\n {\n return $class::findOrFail($this->getKey());\n }", "title": "" }, { "docid": "073363dc113f71889d87b7e22db515e1", "score": "0.7241839", "text": "pu...
65e840c8f1b6d4da4d81597c187f6307
Get all data for a given id
[ { "docid": "352374bbfe0e280e8085d89e6f2b3bef", "score": "0.0", "text": "public static function getComment($id)\n {\n return (array)BackendModel::getContainer()->get('database')->getRecord('SELECT i.*, UNIX_TIMESTAMP(i.created_on) AS created_on,\n\t\t\t p.id AS product_id, p.title AS product_ti...
[ { "docid": "2a056fd9dfc7d1c7371c289e24a3021f", "score": "0.8203524", "text": "public function getData($id=null)\n {\n if($id !== null) {\n return $this->model->find($id);\n }\n return $this->model::all();\n }", "title": "" }, { "docid": "15d41566ca726fc2...
644d9059aada2185f5beaf4b925da6e0
Method to check whether this connector is enabled or not
[ { "docid": "8161a420c701a930112b9b904ed9a707", "score": "0.67880636", "text": "public function isEnabled()\n\t{\n\t\treturn $this->checkComponent('com_akeebasubs');\n\t}", "title": "" } ]
[ { "docid": "145b46a0473db5323c6f8134a8996e30", "score": "0.7731778", "text": "public function isConnectEnabled()\n {\n return craft()->charge_connect->getConnectEnabledStatus();\n }", "title": "" }, { "docid": "d5221e144a4f43462a5cc8010be3936a", "score": "0.7309763", "te...
d44768dc39112d55ad6be4f4262a68a5
The function checks if the product exists in $items and return the position in $items or 1 if the product doesn't exist.
[ { "docid": "e76a7bd35b4b395c60b3828f8b33ebc3", "score": "0.7808392", "text": "private function existsInItems($productName) {\n $pos = -1;\n if($this->numItems == 0)\n return $pos;\n $arr = $this->items;\n for($i = 0; $i < count($arr); $i++) {\n if($arr[$...
[ { "docid": "4bfd10837b90c84b5fdaa918cf8c0205", "score": "0.6641367", "text": "function check_item($product_item_id) {\r\n\t\r\n\t\t$products = $this->Session->read('Cart'); \r\n\t\tif (isset($products[$product_item_id])) {\r\n\t\t\treturn $products[$product_item_id];\r\n\t\t}\r\n\t\telse {\r\n\t\t\tretu...
514b245bbea54b68fcd2c3d5365f78c8
Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domainwide authority. (delegates.create)
[ { "docid": "9bdf4c082d1556110d1fb64f26c04664", "score": "0.4925558", "text": "public function create($userId, Delegate $postBody, $optParams = [])\n {\n $params = ['userId' => $userId, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('create', [$para...
[ { "docid": "75344a4ba96b58776058e713f6fcba4e", "score": "0.6018199", "text": "public function addDelegations() {\n $manager = $this->input->post('manager_id', TRUE);\n $delegate = $this->input->post('delegate_id', TRUE);\n if (($this->user_id != $manager) && ($this->is_hr === FALSE)...
0649df9976766086b17a0dbb6021cba0
We'll set the base value to whatever is in our Event Parameters
[{"docid":"75f75ecc2331d9872bf55f661eb0f86b","score":"0.46832326","text":"protected function ParseEv(...TRUNCATED)
[{"docid":"453a8c02c9d5c4e1835559f38dbcc3dc","score":"0.72171867","text":"function event_buffer_base(...TRUNCATED)
695c04b2527e3cb54e8ab27a5421a3c7
Add elements to form
[{"docid":"ec58e006e9f013e79810d6955b993057","score":"0.6057305","text":"public function definition((...TRUNCATED)
[{"docid":"446a67884fa68de219fb12845be0cca1","score":"0.7769082","text":"protected function addEleme(...TRUNCATED)
3c97210fa146e00b7efc6f9bd797ef19
get food item details
[{"docid":"b4dd50b7b9cf9043ec855c24e9fabfa9","score":"0.7255568","text":"public function getFoodItem(...TRUNCATED)
[{"docid":"23e3a1b071ced7250f67532b4e84750c","score":"0.7190272","text":"function item_get(){\n (...TRUNCATED)
39a082fcd98a7d62072e76981efb5728
Selected Un Read the specified resource from storage.
[{"docid":"289b8c64c98ba478b3fb3857df4dd0a2","score":"0.0","text":"public function selectedUnread(Re(...TRUNCATED)
[{"docid":"6f6cd93fc05e76993ef09e7e4fb7b8a6","score":"0.6138642","text":"public function unRead()\n (...TRUNCATED)
d01723bf272821476e9f3277983e3c0e
Returns HTTP Response headers
[{"docid":"4256fd3a6fcde148733003cec618e624","score":"0.74205357","text":"public function getHeaders(...TRUNCATED)
[{"docid":"517439460851a0196d49a2d726c72253","score":"0.87092555","text":"public function getRespons(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
80