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 |
|---|---|---|---|---|---|---|
Get child of a directory by name. | private function child_by_name(?int $parent_id, string $name, bool $throw=true): ?array {
$t = $this->replica->state->tree;
foreach($t->children($parent_id) as $child_id) {
$node = $t->find($child_id);
if($node && $node->meta->name == $name) {
return [$child_id, $... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getChild($name)\n {\n $children = $this->getChildren();\n foreach ($children as $child) {\n if ($name === $child->getName()) {\n return $child;\n }\n }\n\n throw new Sabre_DAV_Exception_FileNotFound(\n \"Node with name '... | [
"0.66824466",
"0.63746995",
"0.63458383",
"0.6005403",
"0.5772351",
"0.5617116",
"0.56039804",
"0.54759365",
"0.5471897",
"0.54141706",
"0.53768146",
"0.5376553",
"0.5326213",
"0.5319027",
"0.5310802",
"0.5290189",
"0.5218315",
"0.5194682",
"0.50995666",
"0.5063834",
"0.50486... | 0.5588165 | 7 |
retrieve a toplevel forest node (root, fileinodes, or trash) | private function toplevel($name) {
return $this->child_by_name(null, $name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_root()\n {\t\n\t\t$query = ee()->db->get_where( $this->tree_table, array('lft' => 1), 1 );\n\t\treturn ( $query->num_rows() ) ? $query->row_array() : FALSE;\n }",
"private function getRoot() {\n $statement = $this->getConn()->prepare('SELECT * FROM `' . $this->_table . '` where ' . $thi... | [
"0.69263345",
"0.67917013",
"0.67551285",
"0.6744625",
"0.6605519",
"0.65869933",
"0.65869933",
"0.6530329",
"0.63389844",
"0.6327342",
"0.62786424",
"0.6277464",
"0.6230852",
"0.6230852",
"0.6230852",
"0.6185556",
"0.6183423",
"0.6149112",
"0.61029935",
"0.606129",
"0.602098... | 0.6163998 | 17 |
retrieve root, fileinodes and trash top level forest nodes. | private function root() { return $this->toplevel("root"); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function findRootNodes()\n {\n return $this->findNodes();\n }",
"public function getTrees() {}",
"private function GetAllNodes(){\n $tree = array();\n try {\n $db = new SQLite3('mysqlitedb.db', SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE);\n $result = $d... | [
"0.61228055",
"0.60985446",
"0.5971322",
"0.5956617",
"0.5847108",
"0.5809036",
"0.57998794",
"0.57472044",
"0.57398665",
"0.5735058",
"0.5735058",
"0.56853783",
"0.566373",
"0.56478137",
"0.56040275",
"0.55566037",
"0.55566037",
"0.55566037",
"0.5555087",
"0.55022925",
"0.54... | 0.53283477 | 39 |
given a local ino, retrieve corresponding tree node | private function ino_to_local_entry(int $ino) {
// 1. find parent_id (uuid of fs_inode_entry) from parent_ino.
$local_inode = @$this->ino_inodes_local[$ino];
if(!$local_inode) {
throw new Exception("ino not found: $ino");
}
return $local_inode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function ino_to_tree_id(int $ino) {\n $entry = $this->ino_to_local_entry($ino);\n return $entry->tree_id;\n }",
"function getNodeId($nodeName)\n {\n $query = \"SELECT id FROM target WHERE name='$nodeName'\";\n // echo \"---- NODE QUEry=<$query>. DB=$this->dbName\\n\";\n ... | [
"0.7302514",
"0.5531075",
"0.552558",
"0.55157244",
"0.5511183",
"0.547065",
"0.54450077",
"0.54309994",
"0.5356697",
"0.53114605",
"0.52773046",
"0.5181475",
"0.5146064",
"0.51040626",
"0.5104014",
"0.50495464",
"0.50153023",
"0.50130045",
"0.49976793",
"0.49939358",
"0.4990... | 0.70427513 | 1 |
given a local ino, retrieve corresponding tree node ID | private function ino_to_tree_id(int $ino) {
$entry = $this->ino_to_local_entry($ino);
return $entry->tree_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function ino_to_local_entry(int $ino) {\n // 1. find parent_id (uuid of fs_inode_entry) from parent_ino.\n $local_inode = @$this->ino_inodes_local[$ino];\n if(!$local_inode) {\n throw new Exception(\"ino not found: $ino\");\n }\n return $local_inode;\n }",
... | [
"0.7005429",
"0.6393705",
"0.62078667",
"0.59493685",
"0.58931726",
"0.5886112",
"0.58189976",
"0.55625886",
"0.5536959",
"0.55292666",
"0.55063236",
"0.54537326",
"0.5427723",
"0.5405376",
"0.5367488",
"0.536076",
"0.533733",
"0.53335947",
"0.53012216",
"0.5285714",
"0.52823... | 0.8034423 | 0 |
true if replica stat's are equal and local inode counts match. | public function is_equal(filesystem $other) {
return count($this->ino_inodes_local) == count($other->ino_inodes_local) &&
count($this->uuid_inodes_local) == count($other->uuid_inodes_local) &&
$this->ino_counter == $other->ino_counter &&
$this->replica->state == $oth... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function test_fs_replicas() {\n // init filesystem, replica 1.\n $fs1 = new filesystem(new replica());\n $fs1->init();\n\n // init filesystem, replica 2.\n $fs2 = new filesystem(new replica());\n\n // get ino for /\n $ino_root = $fs1->lookup(\"/\");\n\n // create /home/bob\n $ino_home = ... | [
"0.60809237",
"0.571767",
"0.5504179",
"0.54387134",
"0.5366145",
"0.52950233",
"0.5289617",
"0.52098244",
"0.5092188",
"0.50590014",
"0.5054543",
"0.5041617",
"0.50117236",
"0.5001206",
"0.49773738",
"0.4973989",
"0.49282146",
"0.49228442",
"0.491227",
"0.48844996",
"0.48803... | 0.6348975 | 0 |
This test tries to sync two filesystems only by apply OpMove from replica1 to replica2. That doesn't (presently) work because replica1 also has some local state that does not get recreated by replica2 when applying the ops. Basically, this test demonstrates that the present design does not work for syncing two filesyst... | function test_fs_replicas() {
// init filesystem, replica 1.
$fs1 = new filesystem(new replica());
$fs1->init();
// init filesystem, replica 2.
$fs2 = new filesystem(new replica());
// get ino for /
$ino_root = $fs1->lookup("/");
// create /home/bob
$ino_home = $fs1->mkdir($ino_ro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function test_concurrent_moves_no_conflict() {\n $r1 = new replica();\n $r2 = new replica();\n\n // Setup initial tree state.\n $ops = [new op_move($r1->tick(), null, \"root\", $root_id = new_id()),\n new op_move($r1->tick(), $root_id, \"a\", $a_id = new_id()),\n new op_move($r1->... | [
"0.80616426",
"0.8045508",
"0.78977615",
"0.67848736",
"0.62344193",
"0.60945064",
"0.59420586",
"0.5662753",
"0.5563774",
"0.5520011",
"0.5514364",
"0.5431951",
"0.5392575",
"0.51366675",
"0.50090533",
"0.4991651",
"0.49770024",
"0.4942485",
"0.49317673",
"0.48817515",
"0.48... | 0.75197244 | 3 |
Gets the currently logged in user from the session. Returns NULL if no user is currently logged in. | public function getUser($defaultValue = null) {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_user() {\n\t\treturn ($this->logged_in()) ? $this->session->get($this->config['session_key'], null) : null;\n\t}",
"public static function getCurrentUser(){\r\n\t\treturn self::isLoggedIn() == true ? User::getUserById($_SESSION[\"id\"]) : null;\r\n\t}",
"private function getLoggedInUser()\n... | [
"0.8823619",
"0.8731397",
"0.85799825",
"0.8490602",
"0.8371665",
"0.83603567",
"0.8259398",
"0.8252049",
"0.81958693",
"0.8179946",
"0.817968",
"0.8142423",
"0.8120466",
"0.80750036",
"0.80644524",
"0.8025058",
"0.80103135",
"0.7972789",
"0.79711807",
"0.796179",
"0.79378694... | 0.0 | -1 |
Check if user has the role. | public function hasRole($user, string $role = 'login'): bool {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasRole(): bool\n {\n return isset($this->role);\n }",
"public function hasRole(string $role): bool;",
"function hasRole($role)\n{\n\treturn $this->loggedUser? $this->loggedUser->hasRole($role) : false;\n}",
"public function hasRole() {\n return $this->_has(2);\n }",
"f... | [
"0.8131786",
"0.8126035",
"0.8042169",
"0.7961833",
"0.781458",
"0.7724637",
"0.7707938",
"0.7685536",
"0.7666403",
"0.76437527",
"0.7627791",
"0.76234025",
"0.7584693",
"0.75823665",
"0.7554309",
"0.7552024",
"0.7534581",
"0.7522165",
"0.7515716",
"0.75036603",
"0.7480907",
... | 0.80954504 | 2 |
Logs a user in. | public function login($username, string $password, bool $remember = false, bool $force = false): ?bool {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function loginUser() {\n self::$isLoggedIn = true;\n $this->session->setLoginSession(self::$storedUserId, self::$isLoggedIn);\n $this->session->setFlashMessage(1);\n }",
"private function _logUserIn($inputs)\n\t{\n\t\tCraft::log('Logging in user.');\n\n\t\tif (craft()->userSession-... | [
"0.7451285",
"0.74393",
"0.73868906",
"0.7167026",
"0.7149051",
"0.71389085",
"0.7112503",
"0.7066624",
"0.7060725",
"0.70319885",
"0.70154446",
"0.6963597",
"0.6925791",
"0.6909397",
"0.68699414",
"0.6856665",
"0.6798509",
"0.6798164",
"0.6757682",
"0.6749167",
"0.67461044",... | 0.0 | -1 |
TODO: Implement __call() method. | public function __call($name, $arguments)
{
var_dump($name,$arguments);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __invoke()\n {\n }",
"public function call();",
"public function call();",
"public function __invoke()\n {\n\n }",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function call()\n {\n... | [
"0.7465695",
"0.74534816",
"0.74534816",
"0.73146445",
"0.72799796",
"0.72799796",
"0.72799796",
"0.72799796",
"0.71619594",
"0.6808789",
"0.6746007",
"0.67189497",
"0.67139494",
"0.67139494",
"0.66643625",
"0.6573642",
"0.65496063",
"0.65336317",
"0.65336317",
"0.65056145",
... | 0.6001283 | 71 |
Show the form for creating a new resource. | public function create()
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return view('admin.resources.create');\n }",
"public function create(){\n\n return view(... | [
"0.75948673",
"0.75948673",
"0.75863165",
"0.7577412",
"0.75727344",
"0.7500887",
"0.7434847",
"0.7433956",
"0.73892003",
"0.73531085",
"0.73364776",
"0.73125",
"0.7296102",
"0.7281891",
"0.72741455",
"0.72424185",
"0.7229325",
"0.7226713",
"0.7187349",
"0.7179176",
"0.717428... | 0.0 | -1 |
Store a newly created resource in storage. | public function store(Request $request)
{
$data=request()->validate([
'name'=>'string|required',
'role_id'=>'integer',
'dni'=>'string|size:8',
'email'=>'email|required',
]);
User::create([
'role_id'=> $data['role_id'],
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store($data, Resource $resource);",
"public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations... | [
"0.72865677",
"0.7145327",
"0.71325725",
"0.6640912",
"0.66209733",
"0.65685713",
"0.652643",
"0.65095705",
"0.64490104",
"0.637569",
"0.63736665",
"0.63657933",
"0.63657933",
"0.63657933",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.63424... | 0.0 | -1 |
Display the specified resource. | public function show(User $user)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Resource $resource)\n {\n // not available for now\n }",
"public function show(Resource $resource)\n {\n //\n }",
"function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id... | [
"0.8233718",
"0.8190437",
"0.6828712",
"0.64986944",
"0.6495974",
"0.6469629",
"0.6462615",
"0.6363665",
"0.6311607",
"0.62817234",
"0.6218966",
"0.6189695",
"0.61804265",
"0.6171014",
"0.61371076",
"0.61207956",
"0.61067593",
"0.6105954",
"0.6094066",
"0.6082806",
"0.6045245... | 0.0 | -1 |
Show the form for editing the specified resource. | public function edit(User $user)
{
$roles=Role::all(['id','display_name']);
return view('users.edit',compact('user','roles'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ... | [
"0.78550774",
"0.7692893",
"0.7273195",
"0.7242132",
"0.7170847",
"0.70622855",
"0.7053459",
"0.6982539",
"0.69467914",
"0.6945275",
"0.6941114",
"0.6928077",
"0.69019294",
"0.68976134",
"0.68976134",
"0.6877213",
"0.68636996",
"0.68592185",
"0.68566656",
"0.6844697",
"0.6833... | 0.0 | -1 |
Update the specified resource in storage. | public function update(Request $request, User $user)
{
$data=request()->validate([
'name'=>'string|required',
'role_id'=>'integer',
'dni'=>'string|size:8',
'email'=>'email|required',
]);
if ($request->password) {
$user->update([
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ... | [
"0.7425105",
"0.70612276",
"0.70558053",
"0.6896673",
"0.6582159",
"0.64491373",
"0.6346954",
"0.62114537",
"0.6145042",
"0.6119944",
"0.61128503",
"0.6099993",
"0.6087866",
"0.6052593",
"0.6018941",
"0.60060275",
"0.59715486",
"0.5946516",
"0.59400934",
"0.59377414",
"0.5890... | 0.0 | -1 |
Remove the specified resource from storage. | public function destroy(User $user)
{
$user->delete();
return redirect()->route('users.index')->withSuccess("El usuario {$user->name} fue eliminado" );
} | {
"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 |
Everytime the service call fails, increment the number of failures. | public function incrementFailures(): bool; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function incrementErrorCount();",
"public function increaseFailedAttemptsCount()\n {\n $this->failedAttemptsCount++;\n }",
"function incrementOfflineFails() {\n\t\t\t$numFails = $this->settings[\"numbervalidatefails\"];\n\t\t\tif ($numFails == \"\") {\n\t\t\t\t$this->updateSetting(\"numberv... | [
"0.7752025",
"0.7104863",
"0.69175553",
"0.66704667",
"0.66452307",
"0.6602998",
"0.6569537",
"0.6559374",
"0.651982",
"0.65142584",
"0.6465794",
"0.63345015",
"0.62893945",
"0.61700314",
"0.61354864",
"0.60970974",
"0.60760504",
"0.60430217",
"0.6014288",
"0.6009468",
"0.595... | 0.6836392 | 3 |
Display a listing of the resource. | public function home(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'home')->first();
$news = Post::latest()->take(5)->get();
$events = Event::latest()->take(5)->get();
return view('index', compact('post', 'news', 'events'));
} | {
"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 msg_from_dg(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'msg_from_dg')->first();
return view('msg_from_dg', compact('post'));
} | {
"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 institutional_presentation(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'institutional_presentation')->first();
return view('institutional_presentation', compact('post'));
} | {
"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 org_chart(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'org_chart')->first();
return view('org_chart', compact('post'));
} | {
"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 mission_vision_values(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'mission_vision_values')->first();
return view('mission_vision_values', compact('post'));
} | {
"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 history(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'history')->first();
return view('history', compact('post'));
} | {
"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 infrastructure(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'infrastructure')->first();
return view('infrastructure', compact('post'));
} | {
"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 legislation(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'legislation')->first();
return view('legislation', compact('post'));
} | {
"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 aggr_protocols(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'aggr_protocols')->first();
$partnerships = collect(Partnership::with('category')->get())->map(function($item){
return [
'id' => $item->id,
'na... | {
"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 social_wellfare(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'social_wellfare')->first();
return view('social_wellfare', compact('post'));
} | {
"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 social_support(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'social_support')->first();
return view('social_support', compact('post'));
} | {
"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 extracurricular_activities(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extracurricular_activities')->first();
return view('extracurricular_activities', compact('post'));
} | {
"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 health(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'health')->first();
return view('health', compact('post'));
} | {
"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 acad_calendar(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'acad_calendar')->first();
return view('acad_calendar', compact('post'));
} | {
"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 regulations(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'regulations')->first();
return view('regulations', compact('post'));
} | {
"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 edicts(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'edicts')->first();
return view('edicts', compact('post'));
} | {
"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 student_mobility(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'student_mobility')->first();
return view('student_mobility', compact('post'));
} | {
"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 education_det(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'education_det')->first();
return view('education_det', compact('post'));
} | {
"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 education_dgc(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'education_dgc')->first();
return view('education_dgc', compact('post'));
} | {
"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 education_teachers(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'education_teachers')->first();
return view('education_teachers', compact('post'));
} | {
"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 education_library_presentation(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'education_library_presentation')->first();
return view('education_library_presentation', compact('post'));
} | {
"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 education_library_rules(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'education_library_rules')->first();
return view('education_library_rules', compact('post'));
} | {
"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 scientific_research_aasr_center(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'scientific_research_aasr_center')->first();
return view('scientific_research_aasr_center', compact('post'));
} | {
"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 scientific_research_lec_cycles(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'scientific_research_lec_cycles')->first();
return view('scientific_research_lec_cycles', compact('post'));
} | {
"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 scientific_research_innovation_award(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'scientific_research_innovation_award')->first();
return view('scientific_research_innovation_award', compact('post'));
} | {
"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 scientific_research_events(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'scientific_research_events')->first();
return view('scientific_research_events', compact('post'));
} | {
"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 scientific_research_project_guide(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'scientific_research_project_guide')->first();
return view('scientific_research_project_guide', compact('post'));
} | {
"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 scientific_research_policy(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'scientific_research_policy')->first();
return view('scientific_research_policy', compact('post'));
} | {
"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 extension_services_policy(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_policy')->first();
return view('extension_services_policy', compact('post'));
} | {
"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 extension_services_trans_knowledge(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_trans_knowledge')->first();
return view('extension_services_trans_knowledge', compact('post'));
} | {
"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 extension_services_non_curricular_internships(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_non_curricular_internships')->first();
return view('extension_services_non_curricular_internships', compact('post'));
} | {
"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 extension_services_entrepreneurship_program(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_entrepreneurship_program')->first();
return view('extension_services_entrepreneurship_program', compact('post'));
} | {
"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 extension_services_olympiads(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_olympiads')->first();
return view('extension_services_olympiads', compact('post'));
} | {
"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 extension_services_employment_careers(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_employment_careers')->first();
return view('extension_services_employment_careers', compact('post'));
} | {
"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 extension_services_ltc(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_ltc')->first();
return view('extension_services_ltc', compact('post'));
} | {
"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 extension_services_cu_program(Request $request)
{
$post = Page::with('sections', 'sliders')->where('code', 'extension_services_cu_program')->first();
return view('extension_services_cu_program', compact('post'));
} | {
"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 isptecmedia(Request $request)
{
$posts = ISPTECMedia::filter($request->only('search'))
->latest()
->paginate(5)->withQueryString();
$latest_posts = ISPTECMedia::latest()->take(5)->get();
return view('isptecmedia', compact('posts', 'latest_posts'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re... | [
"0.7446777",
"0.736227",
"0.73005503",
"0.72478926",
"0.71631265",
"0.71489686",
"0.7131636",
"0.7105969",
"0.71029514",
"0.7101372",
"0.70508176",
"0.6995128",
"0.69890636",
"0.6934895",
"0.6900203",
"0.6899281",
"0.6891734",
"0.6887235",
"0.68670005",
"0.6849741",
"0.683052... | 0.0 | -1 |
Store a newly created resource in storage. j | public function storesubmitedcontent(Request $request)
{
DB::transaction(function () use ($request) {
$contentsubmission = ContentSubmission::create([
'title' => $request->title,
'category' => $request->category,
'name' => $request->name,
... | {
"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.7178853",
"0.67819184",
"0.6687476",
"0.66094834",
"0.6596175",
"0.6549892",
"0.6526514",
"0.6526514",
"0.6526514",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
"0.6507489",
... | 0.0 | -1 |
This class can be added as child only to Streamwide_Introspection_Method which doesn't set itself as a parent of the child, meaning that an instance of this class will never have a parent | public function setParent( Streamwide_Introspection_Composite_Interface $parent )
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct($parent) {\r\n parent::__construct($parent, 'invoke');\r\n }",
"public function __construct()\n {\n //to be extended by children\n }",
"protected function processParent(IReflection $parent, Stream $tokenStream)\n\t{\n\t\t// To be defined in child classes\n\t\t... | [
"0.6595307",
"0.59433913",
"0.5877253",
"0.5862638",
"0.56591415",
"0.56152594",
"0.560291",
"0.5589412",
"0.5583067",
"0.5582157",
"0.5521054",
"0.55173177",
"0.5515445",
"0.5513885",
"0.5489359",
"0.547169",
"0.54481554",
"0.54134643",
"0.5397555",
"0.5385925",
"0.53722125"... | 0.5064934 | 56 |
An instance of this class cannot be a method parameter, return value or error | public function setType( $type )
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function method()\n {\n\n }",
"public function method() {\n\t}",
"public function create()\n {\n throw new NotImplementedException();\n }",
"public function method();",
"public function method();",
"public function method();",
"public function method();",
"public function ex... | [
"0.66836953",
"0.6483904",
"0.6455636",
"0.63999355",
"0.63999355",
"0.63999355",
"0.63999355",
"0.63067335",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
"0.62954026",
... | 0.0 | -1 |
Construct the parent class | function __construct()
{
parent::__construct();
$this->load->model('user_model');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function __construct() {\r\n parent ::__construct();\r\n }",
"function __construct(){parent::__construct();}",
"public function construct()\n\t\t{\n\t\t}",
"protected abstract function __construct();",
"public function __construct(){\n\t\t/* calling parent construct */\n\t\tparent::__construct();... | [
"0.7643312",
"0.74787474",
"0.74146986",
"0.7409193",
"0.73898953",
"0.73898953",
"0.73697597",
"0.7348418",
"0.7304807",
"0.7286535",
"0.7263903",
"0.7253645",
"0.7250888",
"0.7242071",
"0.72346395",
"0.7217846",
"0.72123235",
"0.7200422",
"0.7196681",
"0.7184869",
"0.71745"... | 0.0 | -1 |
Users from a data store e.g. database | public function users_get()
{
// $users = [
// ['id' => 0, 'name' => 'John', 'email' => 'john@example.com'],
// ['id' => 1, 'name' => 'Jim', 'email' => 'jim@example.com'],
// ];
$id = $this->get( 'id' );
if ( $id === null )
{
$users = $th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function user() {\r\r\r\n\t\t$this->_dao = DB_DataObject::factory('Users');\r\r\r\n\t}",
"private function get_user_data()\n {\n $sql_query = \"select * from users\";\n $users = DB::select($sql_query);\n return $users;\n }",
"public function getUsers();",
"public function getUsers(... | [
"0.66895264",
"0.6674247",
"0.66375715",
"0.66375715",
"0.66375715",
"0.6632698",
"0.6632698",
"0.6598248",
"0.6598248",
"0.6598248",
"0.6598248",
"0.6487167",
"0.6467601",
"0.64530045",
"0.6424622",
"0.6421809",
"0.6421809",
"0.63342935",
"0.6304717",
"0.62866527",
"0.628576... | 0.5932056 | 76 |
Magic method for converting an object to a string. | public function __toString()
{
return (string) $this->message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function objectAsString($object);",
"public function objectToString($obj);",
"private static function objToStr($obj)\n {\n return method_exists($obj, '__toString') ? (string)$obj : get_class($obj) . '@' . spl_object_hash($obj);\n }",
"function toString ($object)\n{\n\treturn get_class($... | [
"0.82403433",
"0.81319857",
"0.7758182",
"0.7649948",
"0.75657123",
"0.75203985",
"0.73557496",
"0.721492",
"0.7170935",
"0.7062359",
"0.6975547",
"0.69601506",
"0.69601506",
"0.69601506",
"0.6926244",
"0.6902784",
"0.68270826",
"0.6811338",
"0.6811338",
"0.6811338",
"0.68113... | 0.0 | -1 |
Disable guarded array if creating new objects | public function setSkipGuarded($skip = true)
{
if ($skip && count($this->guarded)) {
$this->defaultGuarded = $this->guarded;
$this->guarded = [];
} else {
$this->guarded = $this->defaultGuarded;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getGuarded()\n {\n return $this->guarded === false\n ? []\n : $this->guarded;\n }",
"public function isGuarded()\n {\n return $this->guarded;\n }",
"public function getGuarded();",
"public function keepItemsInArrayCanUseClosure()... | [
"0.65131515",
"0.60556614",
"0.60292006",
"0.58722013",
"0.58119655",
"0.5698145",
"0.5698145",
"0.5681387",
"0.5681387",
"0.5611363",
"0.5611363",
"0.55928594",
"0.5579042",
"0.5579042",
"0.5500739",
"0.54388034",
"0.54219395",
"0.541735",
"0.541735",
"0.541735",
"0.541735",... | 0.56649584 | 9 |
Uncomment the below to wipe the table clean before populating | public function run()
{
// DB::table('policesignups')->truncate();
$policesignups = array(
);
// Uncomment the below to run the seeder
// DB::table('policesignups')->insert($policesignups);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clean(): void\n {\n $this->truncateJournalTable();\n $this->output(\"<success>Table {$this->internalTable} truncated</success>\");\n }",
"public function clean() {\n $this->data = \"\";\n $this->currentRow = 1;\n $this->curPosition = 0;\n }",
"private function getC... | [
"0.72845",
"0.7246547",
"0.7113251",
"0.70214254",
"0.70022357",
"0.69601506",
"0.69232076",
"0.68886465",
"0.687494",
"0.6865221",
"0.67039084",
"0.6687502",
"0.66790766",
"0.66769564",
"0.6674517",
"0.6666366",
"0.66458136",
"0.66273004",
"0.6609333",
"0.6593146",
"0.658352... | 0.0 | -1 |
Get list of unique fields. | public function getUniqueActiveFields(): array
{
return ['field', 'otherfield'];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getUniqeFields()\n\t{\n\t\treturn array('meetingid');\n\t}",
"public function uniquedata()\n {\n $required = self::config()->required_fields; //TODO: also combine with all ancestors of this->class\n $unique = [];\n $hasOnes = $this->hasOne();\n //reduce record to... | [
"0.747499",
"0.717189",
"0.6844661",
"0.6718805",
"0.66224754",
"0.6542607",
"0.64352566",
"0.6399557",
"0.63964283",
"0.63916385",
"0.63719267",
"0.6371753",
"0.63638735",
"0.6354911",
"0.634861",
"0.6311455",
"0.6302151",
"0.6298277",
"0.6291804",
"0.6288652",
"0.62648344",... | 0.7211656 | 1 |
Render icon by template | public static function icon($params)
{
$name = isset($params[0]) ? $params[0] : '';
$template = isset($params[1]) ? $params[1] : 'base/_icon.tpl';
return self::renderTemplate($template, [
'name' => $name
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function _renderIcon()\n {\n return !empty($this->_icon) ? '<i class=\"' . $this->_icon . '\"></i>' : '';\n }",
"static function icon($icon) {\n\t\treturn self::tag('i', 'glyphicon glyphicon-' . $icon);\n\t}",
"public abstract function render_pix_icon(renderer_base $output, pix_icon $icon)... | [
"0.7290025",
"0.6731128",
"0.6456609",
"0.6395131",
"0.6386907",
"0.63747764",
"0.63634074",
"0.6340896",
"0.6331907",
"0.6284307",
"0.6179238",
"0.60740733",
"0.6062905",
"0.6011117",
"0.59929127",
"0.59907794",
"0.59824675",
"0.5955866",
"0.59497607",
"0.5914404",
"0.590915... | 0.69961137 | 1 |
Build current url with required GET parameters | public static function buildUrl($params)
{
/** @var HttpRequestInterface $request */
$request = self::fetchComponent(HttpRequestInterface::class);
if ($request) {
$data = isset($params['data']) ? $params['data'] : [];
$query = $request->getQueryArray();
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function url()\r\n {\r\n return $this->get_base_url() . http_build_query($this->get_query_params());\r\n }",
"protected static function get_new_url()\n {\n return parse_url($_SERVER['REQUEST_URI'])['path'] . '?' . $_SERVER['QUERY_STRING'];\n }",
"function get_current_url() {\n ... | [
"0.73821956",
"0.72704273",
"0.7240689",
"0.7238629",
"0.71037394",
"0.70705056",
"0.7033035",
"0.6929706",
"0.69200855",
"0.68948627",
"0.6894579",
"0.6886055",
"0.68766373",
"0.6822219",
"0.68215984",
"0.68160695",
"0.6790336",
"0.6770909",
"0.6756915",
"0.6712185",
"0.6697... | 0.0 | -1 |
Uploads a file to location | function upload($path) {
$ok = false;
$this->uploadpath .= $path . '/';
if ($this->validate()) {
$this->filename = $this->params['form']['Filedata']['name'];
$ok = $this->write();
}
if (!$ok) {
header("HTTP/1.0 500 Internal Server Error"); //this should tell SWFUpload what's up
$t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function upload_file() {\n upload_file_to_temp();\n }",
"public function upload();",
"public function upload($file, $local_file);",
"public function upload()\n {\n App::import('Lib', 'Uploads.file_receiver/FileReceiver');\n App::import('Lib', 'Uploads.file_dispatcher/FileDispatcher... | [
"0.75979376",
"0.75442225",
"0.7241382",
"0.72078633",
"0.7200038",
"0.7185813",
"0.7140564",
"0.7125302",
"0.7096767",
"0.7060402",
"0.7050248",
"0.6927876",
"0.6927279",
"0.6925873",
"0.6908953",
"0.6891782",
"0.68663335",
"0.6850827",
"0.68356603",
"0.6822892",
"0.67903256... | 0.623412 | 78 |
finds a unique name for the file for the current directory | function findUniqueFilename($existing_files = null) {
// append a digit to the end of the name
$filenumber = 0;
$filesuffix = '';
$fileparts = explode('.', $this->filename);
$fileext = '.' . array_pop($fileparts);
$filebase = implode('.', $fileparts);
if( !eregi("jpeg|jpg|png|gif",$fileext) ){
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }",
"private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }",
"private function generateUni... | [
"0.75593954",
"0.75465727",
"0.75465727",
"0.75465727",
"0.75465727",
"0.75465727",
"0.75465727",
"0.7421704",
"0.7419106",
"0.7323037",
"0.7314081",
"0.7249635",
"0.7206965",
"0.7206958",
"0.7163543",
"0.71192443",
"0.70945585",
"0.6962792",
"0.6944971",
"0.69196206",
"0.684... | 0.6798807 | 23 |
moves the file to the desired location from the temp directory | function write() {
// Include libraries
if (!class_exists('Folder')) {
uses('folder');
}
$moved = false;
$folder = new Folder($this->uploadpath, true, 0777);
if (!$folder) {
$this->setError(1500, 'File system save failed.', 'Could not create requested directory: ' . $this->uploadpath);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function moveToTmpDir()\n\t{\n\t\tif($this->source instanceof UploadedFile) {\n\t\t\t$this->source->move($this->getTmpDir()->getRootPath());\n\t\t} else if(is_string($this->source)) {\n\t\t\tcopy($this->params['path'], $this->getTmpDir()->getRootPath() . '/' . $this->params['name']);\n\t\t}\n\t}",
"functi... | [
"0.7599046",
"0.72478086",
"0.71370053",
"0.6865253",
"0.6691312",
"0.65431577",
"0.65310234",
"0.6349244",
"0.62943053",
"0.6264736",
"0.6206321",
"0.61882454",
"0.61226296",
"0.60838103",
"0.6082316",
"0.60337794",
"0.5986514",
"0.5974254",
"0.5939931",
"0.5926685",
"0.5913... | 0.0 | -1 |
validates the post data and checks receipt of the upload | function validate() {
$post_ok = isset($this->params['form']['Filedata']);
$upload_error = $this->params['form']['Filedata']['error'];
$got_data = (is_uploaded_file($this->params['form']['Filedata']['tmp_name']));
if (!$post_ok){
$this->setError(2000, 'Validation failed.', 'Expected file upload fiel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function verifyPost()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'POST'\n && empty($this->post)\n && empty($this->files)\n && isset($_SERVER['CONTENT_LENGTH'])\n && $_SERVER['CONTENT_LENGTH'] > 0 ) {\n\n $maxSize = ini_get('post_max_size');\n\n ... | [
"0.7506143",
"0.7306994",
"0.7103445",
"0.69544554",
"0.68072027",
"0.68011403",
"0.6665905",
"0.66209584",
"0.6618249",
"0.65432394",
"0.65400326",
"0.6499689",
"0.64729905",
"0.64278793",
"0.6414973",
"0.63373697",
"0.6299794",
"0.6289786",
"0.62694323",
"0.6243412",
"0.623... | 0.7168975 | 2 |
parses file upload error code into humanreadable phrase. | function getUploadErrorMessage($err) {
$msg = null;
switch ($err) {
case UPLOAD_ERR_OK:
break;
case UPLOAD_ERR_INI_SIZE:
$msg = ('The uploaded file exceeds the upload_max_filesize directive ('.ini_get('upload_max_filesize').') in php.ini.');
break;
case UPLOAD_ERR_FORM_SIZE:
$msg =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_upload_error_message($error_code) {\n switch ($error_code) {\n case UPLOAD_ERR_OK:\n $error_message = lang('File uploaded successfully');\n break;\n \n case UPLOAD_ERR_INI_SIZE:\n $error_message = lang('The uploaded file exceeds the upload_max_filesize directive in... | [
"0.7758391",
"0.7631293",
"0.7395082",
"0.7352648",
"0.7288007",
"0.72413474",
"0.7226651",
"0.72228336",
"0.7053228",
"0.7047845",
"0.7041998",
"0.6895223",
"0.6846237",
"0.6753732",
"0.6731508",
"0.6630773",
"0.6569733",
"0.6552705",
"0.6507374",
"0.64691716",
"0.63845754",... | 0.6685272 | 15 |
sets an error code which can be referenced if failure is detected by controller. note: the amount of info stored in message depends on debug level. | function setError($code = 1, $message = 'An unknown error occured.', $debug = '') {
$this->errorCode = $code;
$this->errorMessage = $message;
if (DEBUG) {
$this->errorMessage .= $debug;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setError($message, $code)\n {\n $this->errorMsg\n = $this->errorMsg\n ? $this->errorMsg\n : $message;\n $this->errorIdentifier\n = $this->errorIdentifier\n ? $this->errorIdentifier\n : \"$this->moduleName / ... | [
"0.7832279",
"0.7753181",
"0.76046777",
"0.7274896",
"0.715935",
"0.70206666",
"0.68635154",
"0.686114",
"0.68537945",
"0.6839175",
"0.67791873",
"0.6759666",
"0.67230093",
"0.6699119",
"0.6651393",
"0.6636664",
"0.6607126",
"0.6603758",
"0.65847623",
"0.65840334",
"0.6582935... | 0.7302513 | 3 |
Perform sign up process. | public function signUp()
{
switch ($_SERVER['REQUEST_METHOD'])
{
case 'GET':
parent::view("Sign Up", "signup.php");
break;
case 'POST':
$newUser = new SignUpViewModel();
$newUser->setEmail($_POST['email']);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function sign_up()\n\t{\n\t\t$post = $this->input->post();\n\t\t$return = $this->accounts->register($post, 'settings'); /*this will redirect to settings page */\n\t\t// debug($this->session);\n\t\t// debug($return, 1);\n\t}",
"public function p_signup(){\n\t\tforeach($_POST as $field => $value){\n\t\t\tif... | [
"0.7345849",
"0.73162985",
"0.70593095",
"0.69968945",
"0.69467527",
"0.69442546",
"0.6936163",
"0.68931097",
"0.6863485",
"0.6817463",
"0.67973375",
"0.6774363",
"0.6771701",
"0.67567515",
"0.6718661",
"0.6707706",
"0.66762197",
"0.66762197",
"0.66753584",
"0.6653744",
"0.66... | 0.6805705 | 10 |
Run the database seeds. | public function run()
{
DB::table('book_types')->insert([
'book_id' => 1,
'type_id' => 1,
'price' => '188.65',
'pages' => 288,
'isbn10' => '0062674676',
'isbn13' => '978-0062674678',
'serial_cd' => null,
'duratio... | {
"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 |
/ Author: Anh Tran 101953626 Target: enquire.php Purpose: PHP used to process order from 'enquire.php' Created: 12/09/2018 Last updated: 12/10/2018 Credits: Clean up data | function sanitise_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function before_process() {\r\n global $response, $db, $order, $messageStack;\r\n\r\n $order->info['cc_owner'] = zen_db_prepare_input($_POST['bank_acct_name']);\r\n $order->info['cc_type'] = 'eCheck';\r\n $order->info['cc_number'] = zen_db_prepare_input($_POST['bank_aba_code'] . '-' . str_pad(sub... | [
"0.6324829",
"0.61118466",
"0.60359365",
"0.59408474",
"0.5861035",
"0.58268744",
"0.58128995",
"0.577165",
"0.57151985",
"0.5704473",
"0.56338316",
"0.5615491",
"0.5503522",
"0.5475466",
"0.54356676",
"0.543047",
"0.5419993",
"0.53952205",
"0.53781676",
"0.5296162",
"0.52807... | 0.0 | -1 |
Create a new aggregateMetricSpec. | public function post($args)
{
/** @var ApihelperComponent $apihelperComponent */
$apihelperComponent = MidasLoader::loadComponent('Apihelper');
$apihelperComponent->validateParams($args, array('producer_id'));
$apihelperComponent->requirePolicyScopes(array(MIDAS_API_PERMISSION_SCOPE_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createAggregate(\n $aggregateIdentifier,\n DomainEventMessageInterface $firstEvent\n );",
"private function buildAggregation()\n {\n $aggregation = new TermsAggregation('test_agg');\n $aggregation->setField('description');\n $aggregation2 = new RangeAggreg... | [
"0.49018076",
"0.46040216",
"0.45424724",
"0.44101572",
"0.4383036",
"0.42498538",
"0.42220205",
"0.420165",
"0.4197013",
"0.41755673",
"0.41584277",
"0.41441864",
"0.41441864",
"0.41269976",
"0.41112652",
"0.41109547",
"0.40939197",
"0.40472338",
"0.40448725",
"0.4022026",
"... | 0.0 | -1 |
Convert the given aggregateMetricSpec DAO to an array and prepend metadata. | protected function _toArray($aggregateMetricSpecDao)
{
$aggregateMetricSpecArray = array(
'_id' => $aggregateMetricSpecDao->getKey(),
'_type' => 'Tracker_AggregateMetricSpec',
);
return array_merge($aggregateMetricSpecArray, $aggregateMetricSpecDao->toArray());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _get_metadata_as_array($metadata) {\n $metadata_array = array();\n \n foreach ($metadata as $m) {\n if (isset($metadata_array[$m->label])) {\n if (is_array($metadata_array[$m->label])) {\n array_push($metadata_array[$m->label], $m->value);\n } else {\n ... | [
"0.57619125",
"0.5387322",
"0.52578187",
"0.52412575",
"0.52331215",
"0.522505",
"0.5111105",
"0.5110191",
"0.51079065",
"0.50746644",
"0.50337565",
"0.49966332",
"0.49876633",
"0.4982592",
"0.49466473",
"0.49128163",
"0.49025548",
"0.48987418",
"0.48888054",
"0.48871",
"0.48... | 0.72863734 | 0 |
the number of records available for navigation depends on the user level. The employee himself can only see one record (his own). | private function getSQLCondition() {
// the manager can see everyone in the department
// the admin and everybody else can see everyone in the company.
switch ($this->page->config['user_level']) {
case lu_manager:
case lu_employee:
case lu_admin:
$sql = 'WHERE 1 = 2';
break; //nobody below GM can... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function countEmployee(){\n\t\t\t\t\t return count($this->listeEmployee());\n\t\t\t\t\t }",
"public function getNumberOfRecords() {}",
"public function count(){\n\t\t$this->initRecordSet();\n\t\treturn $this->recordSetSize;\n\t}",
"public function record_count() {\r\n ... | [
"0.6681935",
"0.65824986",
"0.65086836",
"0.63401145",
"0.6324877",
"0.63080955",
"0.6287296",
"0.6237324",
"0.62048316",
"0.62048316",
"0.6162602",
"0.60606897",
"0.6054204",
"0.6041318",
"0.6014622",
"0.59894276",
"0.5944308",
"0.58977294",
"0.5892454",
"0.5887577",
"0.5875... | 0.0 | -1 |
need to parse all the POST data through various checkers using the data_columns. String length is not a problem, though. | public function checkData() {
// e.g. numbers must only have digits, e-mail addresses must have a "@" and a ".".
return $this->control->checkPOST($this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function ParsePostData() {}",
"public function parsePostData()\n {\n }",
"abstract public function parsePostData() : array;",
"private function processPostData() {\n\n if (isset($this->postDataArray['week']) && isset($this->postDataArray['year']))\n {\n\n $this->weekSele... | [
"0.6818312",
"0.66517156",
"0.6167456",
"0.6071666",
"0.60086644",
"0.60060287",
"0.59942406",
"0.5986947",
"0.5958739",
"0.59528434",
"0.5932354",
"0.58805263",
"0.5868518",
"0.58657575",
"0.58657295",
"0.5840437",
"0.5825142",
"0.5722623",
"0.5680706",
"0.56365705",
"0.5625... | 0.6327413 | 3 |
This header must be always in USASCII | public function setEncoding($encoding)
{
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCanBeEncoded()\n {\n $value = \"[#77675] New Issue:xxxxxxxxx xxxxxxx xxxxxxxx xxxxxxxxxxxxx xxxxxxxxxx xxxxxxxx, tähtaeg xx.xx, xxxx\";\n $res = Header::canBeEncoded($value);\n $this->assertTrue($res);\n\n $value = '';\n for ($i = 0; $i < 255; ++$i)\n ... | [
"0.69946504",
"0.6603817",
"0.6535022",
"0.6458076",
"0.63613373",
"0.6360484",
"0.6315589",
"0.6218422",
"0.6179385",
"0.60419637",
"0.6038768",
"0.5962153",
"0.5947779",
"0.5932633",
"0.59303796",
"0.59114623",
"0.59114623",
"0.58985394",
"0.5868906",
"0.5862538",
"0.584824... | 0.0 | -1 |
Set the content disposition. | public function setDisposition($disposition)
{
switch ($disposition) {
case 'inline':
case 'attachment':
break;
default:
throw new InvalidArgumentException(
sprintf(
'%s expects to be "inline" or ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setDisposition($disposition) {\n\t\t$this->disposition = $disposition;\n\t}",
"public static function getContentDisposition() {}",
"public abstract function getContentDisposition();",
"public function setContentDisposition($disposition, $filename)\n {\n $dispositionHeader = $this->h... | [
"0.694687",
"0.6634056",
"0.643888",
"0.63623464",
"0.6298853",
"0.6256165",
"0.61654216",
"0.60790247",
"0.59117264",
"0.58500105",
"0.5751759",
"0.5608511",
"0.5608511",
"0.56075597",
"0.5590752",
"0.5587459",
"0.5587459",
"0.5553547",
"0.5551817",
"0.54345644",
"0.53029454... | 0.6070586 | 8 |
Retrieve the content disposition. | public function getDisposition()
{
return $this->disposition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getContentDisposition() {}",
"public function getContentDisposition()\n\t{\n\t\t$contentDisposition = $this->get(\"Content-Disposition\");\n\t\tif ($contentDisposition !== null)\n\t\t{\n\t\t\t$parts = explode(\";\", $contentDisposition);\n\n\t\t\treturn trim($parts[0]);\n\t\t}\n\n\t\tretur... | [
"0.828817",
"0.81995887",
"0.7946416",
"0.7659985",
"0.7403866",
"0.6922285",
"0.67363137",
"0.6727324",
"0.63390934",
"0.6272044",
"0.603378",
"0.5835792",
"0.58188796",
"0.57812715",
"0.57637006",
"0.5732078",
"0.57161486",
"0.56941617",
"0.567758",
"0.5667802",
"0.5630162"... | 0.7693411 | 4 |
Add a parameter pair. | public function addParameter($name, $value)
{
$name = strtolower($name);
$value = (string) $value;
if (!HeaderValue::isValid($name)) {
throw new InvalidArgumentException('Invalid content-disposition parameter name detected');
}
if (!HeaderValue::isValid($value)) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addParam($name,$value)\n\t\t{\n\t\t\t$this->param[$name] = $value;\n\t\t}",
"public function addParam($key, $value)\n {\n $this->_params[$key] = $value;\n }",
"function addParam($name, $value) {\n if (!isset($this->params[$name])) {\n $this->setParam($name, $value... | [
"0.7152448",
"0.7064654",
"0.7060896",
"0.70542115",
"0.6832317",
"0.67013854",
"0.6616837",
"0.66039044",
"0.65102607",
"0.65068847",
"0.6469885",
"0.6448919",
"0.6433823",
"0.6393969",
"0.6356064",
"0.63529557",
"0.6326513",
"0.63074493",
"0.63003445",
"0.6284794",
"0.62305... | 0.51914394 | 100 |
Get a parameter by name. | public function getParameter($name)
{
$name = strtolower($name);
if (isset($this->parameters[$name])) {
return $this->parameters[$name];
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getParam($name) {\n if (isset($this->parameter[$name])) {\n return $this->parameter[$name];\n }\n }",
"public function getParam($name);",
"function get_parameter($name)\r\n {\r\n if (array_key_exists($name, $this->parameters))\r\n return $this->p... | [
"0.86368674",
"0.85698414",
"0.85641456",
"0.84794956",
"0.8332437",
"0.8322205",
"0.81541425",
"0.8142521",
"0.8104435",
"0.8088465",
"0.8057469",
"0.80327725",
"0.8028953",
"0.8028953",
"0.8028953",
"0.8018915",
"0.80011976",
"0.79990566",
"0.7998379",
"0.79971415",
"0.7985... | 0.7949045 | 25 |
Remove a named parameter. | public function removeParameter($name)
{
$name = strtolower($name);
if (isset($this->parameters[$name])) {
unset($this->parameters[$name]);
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeParameter($name)\n {\n $this->getParameters();\n unset($this->parameters[$name]);\n }",
"public function remove($parameter);",
"public function __unset($param)\r\n {\r\n $this->params_named->remove($param);\r\n }",
"public function removeParam($name)\n ... | [
"0.82805955",
"0.7920392",
"0.7805897",
"0.738567",
"0.73496985",
"0.7329075",
"0.7242711",
"0.72359115",
"0.71234727",
"0.71234727",
"0.7111278",
"0.70172524",
"0.70172524",
"0.70172524",
"0.70172524",
"0.70172524",
"0.70172524",
"0.6875968",
"0.67135435",
"0.6667692",
"0.66... | 0.7182739 | 8 |
Link your VC elements's folder | function vc_before_init_actions() {
if ( function_exists( 'vc_set_shortcodes_templates_dir' ) ) {
vc_set_shortcodes_templates_dir( get_template_directory() . '/vc-elements' );
}
require_once( get_template_directory() . '/vc-elements/my_post_slider.php' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function immedia_vc_before_init_actions() {\n\ninclude( plugin_dir_path( __FILE__ ) . 'vc-directory-element.php');\n\n}",
"function vc_before_init_actions() {\n \n // Require new custom Element\n require_once( get_stylesheet_directory().'/vc-elements/vc-child-home-slider.php' ); \n require_once( get_st... | [
"0.6140455",
"0.59649295",
"0.56523764",
"0.5638391",
"0.5519531",
"0.54613215",
"0.54513586",
"0.54446524",
"0.5433712",
"0.54241866",
"0.542357",
"0.54210687",
"0.54114443",
"0.53261906",
"0.5247608",
"0.5234319",
"0.5216533",
"0.51956105",
"0.5189781",
"0.51892",
"0.517627... | 0.0 | -1 |
Run the database seeds. | public function run()
{
Category::create([
'name' => 'Garrafones',
'description' => 'Descripción Garrafones',
]);
Category::create([
'name' => 'Insumos',
'description' => 'Descripción Insumos',
]);
Category::create([
... | {
"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 |
Clear all previous vars | public function addVars($form)
{
$this->_parser->clearAllVars();
$this->_parser->form = $form;
$app = JFactory::getApplication();
$db = JFactory::getDBO();
$dateFormat = str_replace('%', '', F2cFactory::getConfig()->get('date_format') . ' H:i:s');
$nullDate = $db->getNullDate();
$joomla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clearVars() {\n\t\t$this->_engine->clearAllAssign();\n\t}",
"private function clearvariables()\n {\n $this->pointer = 0;\n $this->index = 0;\n $this->imagedata = array();\n $this->imageinfo = array();\n $this->handle = 0;\n $this->parsedfiles = array()... | [
"0.81121385",
"0.79158586",
"0.784211",
"0.7645595",
"0.7581778",
"0.75516385",
"0.7506902",
"0.75064266",
"0.7485839",
"0.7473348",
"0.7461043",
"0.74526197",
"0.74505043",
"0.74421966",
"0.7433034",
"0.7433034",
"0.74244434",
"0.7412227",
"0.7401564",
"0.7395936",
"0.738994... | 0.0 | -1 |
Entry point for all webhook operations | public function indexAction()
{
$listToken = Mage::app()->getRequest()->getParam('t');
$data = $this->getInputStream();
$this->consumeEvents($listToken, $data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function webhook()\n {\n $this->paymentSettings = $this->getPaymentSettings();\n $payload = file_get_contents(\"php://input\");\n $signature = (isset($_SERVER['HTTP_X_PAYSTACK_SIGNATURE']) ? $_SERVER['HTTP_X_PAYSTACK_SIGNATURE'] : '');\n /* It is a good idea to log all events ... | [
"0.7183029",
"0.6798163",
"0.6792571",
"0.65838367",
"0.65535676",
"0.65399146",
"0.64454573",
"0.6403871",
"0.6397686",
"0.63255143",
"0.63252825",
"0.62925535",
"0.6242492",
"0.62073433",
"0.61905754",
"0.61767817",
"0.60834485",
"0.6049791",
"0.6032171",
"0.5922562",
"0.58... | 0.0 | -1 |
Consume the given events to update contacts in google. | public function consumeEvents($listToken, $eventsJson)
{
$listToken = filter_var($listToken, FILTER_SANITIZE_STRING);
$decoded = json_decode($eventsJson, true);
/** @var $lists Laposta_Connect_Model_Mysql4_List_Collection */
$lists = Mage::getModel('lapostaconnect/list')->getColle... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function processEventQueue()\n {\n if (!$this->googleClient)\n {\n try \n {\n $this->googleClient = $this->createGoogleConnection(); \n } \n catch (\\Exception $e) \n {\n $this->syncProblemNotification($... | [
"0.6081197",
"0.5670327",
"0.54933995",
"0.54729474",
"0.53366226",
"0.52564657",
"0.5168019",
"0.5082659",
"0.5068172",
"0.5060201",
"0.5052866",
"0.50492585",
"0.5019765",
"0.4999465",
"0.49768046",
"0.49679708",
"0.49531004",
"0.49329138",
"0.49324137",
"0.49183854",
"0.49... | 0.0 | -1 |
Retrieve date from the input stream | public function getInputStream()
{
$source = @fopen('php://input', 'r');
if (!is_resource($source)) {
throw new InvalidArgumentException('Expected parameter 1 to be an open-able resource');
}
$data = null;
while ($buffer = fread($source, 1024)) {
$d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function readDate()\n {\n $dateReference = $this->readInteger();\n\n $refObj = $this->getReferenceObject($dateReference);\n if($refObj !== false)\n return $refObj;\n\n //$timestamp = floor($this->_stream->readDouble() / 1000);\n $timestamp = new DateTime();\n... | [
"0.64104337",
"0.61943",
"0.6125219",
"0.59453756",
"0.57887244",
"0.5722822",
"0.5722822",
"0.5689002",
"0.5655203",
"0.5651336",
"0.56133425",
"0.56072915",
"0.5590573",
"0.55872107",
"0.5561022",
"0.55502325",
"0.55091226",
"0.5484507",
"0.54790753",
"0.54748726",
"0.54703... | 0.0 | -1 |
Submit a log entry | protected function log($message, $data = null)
{
Mage::helper('lapostaconnect')->log(
array(
'message' => $message,
'data' => $data,
)
);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function LogEntry($entry) {\n\t\tif ($this->_vars['log'] == 'echo') {\n\t\t\tflush();\n\t\t\techo $entry;\n\t\t} elseif($this->_vars['log'] == 'errors') {\n\t\t\ttrigger_error($entry);\n\t\t}\n\t\t$this->_log .= $entry;\n\t}",
"function postToLog($message) {\n\n\tglobal $log_file;\n\n\t// Get formatted... | [
"0.6261346",
"0.6083896",
"0.6024076",
"0.5983746",
"0.592885",
"0.58807546",
"0.58145785",
"0.58071023",
"0.5769876",
"0.57643425",
"0.57642245",
"0.573554",
"0.57186323",
"0.57056487",
"0.5698319",
"0.5665271",
"0.56351286",
"0.5625338",
"0.562444",
"0.5608652",
"0.5578467"... | 0.0 | -1 |
Consume an event from Laposta | protected function consumeEvent($event, Laposta_Connect_Model_List $list)
{
if (empty($event['type']) || $event['type'] !== 'member' || !isset($event['data'])) {
return $this;
}
if (!isset($event['data']['list_id']) || !isset($event['data']['member_id'])) {
return $th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function consumeEvent($event = null);",
"public function onEvent();",
"function event()\n {\n $this->load->library('service');\n $data = file_get_contents('php://input');\n $ret = array(\n 'out' => $this->service->handle('event', $data)\n );\n $this->out... | [
"0.7095668",
"0.68771863",
"0.6450573",
"0.6068666",
"0.6022814",
"0.5878104",
"0.586045",
"0.5812004",
"0.57465065",
"0.57465065",
"0.5740143",
"0.5684522",
"0.5684522",
"0.56244224",
"0.5610733",
"0.55903774",
"0.558764",
"0.5585721",
"0.5573259",
"0.55688536",
"0.55658704"... | 0.5463325 | 28 |
Methods Construct Returns connection | public function __construct($db_server, $db_username, $db_password, $db_name, $table, $condition=false)
{
// Set Internal Variables
$this->db_server = $db_server;
$this->db_username = $db_username;
$this->db_password = $db_password;
$this->db_name = $db_name;
$this->table = $table;
$this->c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct()\r\n\t{\r\n\t\t$conn= new connection();\r\n return $this->conn;\r\n }",
"function __construct() {\n $this->createConnection();\n }",
"private function __construct() {\r\n $this->dbName = self::$_dbname;\r\n $this->username = self::$_username;\r\n ... | [
"0.80526924",
"0.77259594",
"0.7710563",
"0.76854634",
"0.76388276",
"0.76192886",
"0.7615854",
"0.7602808",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
"0.75479066",
... | 0.0 | -1 |
Function To Transform MySQL Results To jQuery Calendar Json Returns converted json | public function json_transform($js = true)
{
while($this->row = mysqli_fetch_array($this->result, MYSQL_ASSOC))
{
// Set Variables Data from DB
$event_id = $this->row['id'];
$event_title = $this->row['title'];
$event_description = $this->row['description'];
$event_start = $this->row... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAppointmentsListJSON() {\nglobal $_LW;\n$output=[];\nforeach($_LW->dbo->query('select', 'id, title', 'livewhale_appointments', false, 'title ASC')->run() as $res2) { // loop through and add appointments\n\t$output[]=['id'=>$res2['id'], 'title'=>$res2['title']];\n};\nreturn json_encode($output);\... | [
"0.67366415",
"0.6401463",
"0.63382196",
"0.63203853",
"0.63108337",
"0.6265668",
"0.62243795",
"0.61696774",
"0.6156788",
"0.61491805",
"0.6116451",
"0.6115814",
"0.608021",
"0.60023546",
"0.5962656",
"0.5921226",
"0.59110713",
"0.59062266",
"0.57994103",
"0.57893246",
"0.57... | 0.7021728 | 0 |
This function updates event drag, resize from jquery fullcalendar Returns true | public function update($allDay, $start, $end, $id)
{
// Convert Date Time
$start = strftime('%Y-%m-%d %H:%M:%S', strtotime(substr($start, 0, 24)));
$end = strftime('%Y-%m-%d %H:%M:%S', strtotime(substr($end, 0, 24)));
if($allDay == 'false') {
$allDay_value = 'true';
} elseif($allDay == 'true... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function resize_event($resizeId, $resizeTitle, $startDate, $endDate, $resizeColor){\n\t\tif ( isset($_POST[$resizeId]) ){\n\t\t\t$id \t= $_POST[$resizeId];\n\t\t\t$title = $_POST[$resizeTitle];\n\t\t\t$start = $_POST[$startDate];\n\t\t\t$end \t= $_POST[$endDate];\n\t\t\t$color \t= $_POST[$resizeColor];\n\n\t\t\t... | [
"0.6170755",
"0.54354453",
"0.5387998",
"0.5275587",
"0.5241218",
"0.5051418",
"0.504692",
"0.50406575",
"0.49654463",
"0.49055523",
"0.49030975",
"0.4900804",
"0.47967204",
"0.47179615",
"0.466477",
"0.46574193",
"0.4645503",
"0.46106863",
"0.4602144",
"0.4559741",
"0.450466... | 0.0 | -1 |
This function updates events to the database Returns true | public function updates($id, $title, $description, $url)
{
// The update query
$query = sprintf('UPDATE %s
SET
title = "%s",
description = "%s",
url = "%s"
WHERE
id = %s
',
mysqli_real_escape_string($this->connection, $this->table),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateEventInDatabase(&$formvars){\r\n\t\tif(!$this->DBLogin()){\r\n\t\t\t$this->HandleError(\"Database login failed!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!$this->EnsureEventTable()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!$this->updateEventTable($formvars)){\r\n\t\t\t$this->HandleErr... | [
"0.7404636",
"0.70378256",
"0.69039536",
"0.67796755",
"0.6734898",
"0.6713149",
"0.6602663",
"0.65952724",
"0.65480095",
"0.6404779",
"0.640015",
"0.6359329",
"0.6278953",
"0.62566537",
"0.62495106",
"0.6240338",
"0.62355155",
"0.6209441",
"0.6204354",
"0.6200241",
"0.617317... | 0.0 | -1 |
This function adds events to the database Returns true | public function addEvent($title, $description, $start_date, $start_time, $end_date, $end_time, $color, $allDay, $url, $extra=false)
{
// Convert Date Time
$start = $start_date.' '.$start_time.':00';
$end = $end_date.' '.$end_time.':00';
// Checking
if(empty($url))
{
$url = 'false';
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function pushEvents ($e)\n\t\t{\n\t\t\t if ( self::chkOrgId () ) { /* Check main Id */\n\t\t\t\t $dbs = new DB ( $this->config['database'] );\n\t\t\t\t $c = $dbs->query (\"SELECT COUNT(*) AS C FROM tbl_events_record WHERE org_id = '\" . $this->c . \"'\");\n\t\t\t\t if ( ! $c[0]['C'] ) { /* Event not foun... | [
"0.7360152",
"0.7331752",
"0.7064151",
"0.6982781",
"0.6830418",
"0.679996",
"0.6785588",
"0.67130995",
"0.66547555",
"0.6611412",
"0.6593834",
"0.65847814",
"0.6579994",
"0.65775585",
"0.65764797",
"0.6549434",
"0.6531268",
"0.6512294",
"0.648801",
"0.6417618",
"0.6402654",
... | 0.0 | -1 |
Gets all Categories since version 1.4 Returns array | public function getCategories()
{
// Set default category in case the user do not have categories with events
$results = $this->categories;
asort($results);
$return = array_unique(array_filter($results));
if(count($return) == 0)
{
return false;
} else {
return $return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAllCategories();",
"function getAllCategories()\n {\n return $this->data->getAllCategories();\n }",
"public function getCategories() : array;",
"public function get_categories () {\n\t\treturn Category::all();\n\t}",
"public function getCategories();",
"public function get... | [
"0.8531883",
"0.84719044",
"0.8419109",
"0.83580023",
"0.8353047",
"0.8353047",
"0.8338258",
"0.83321434",
"0.8321939",
"0.82785213",
"0.8264174",
"0.82355285",
"0.8223289",
"0.8219341",
"0.8208088",
"0.82002515",
"0.81709176",
"0.81680906",
"0.8124223",
"0.8097688",
"0.80597... | 0.0 | -1 |
This function deletes event from database Returns true | public function delete($id)
{
// Delete Query
$query = "DELETE FROM $this->table WHERE id = $id";
// Result
$this->result = mysqli_query($this->connection, $query);
if($this->result)
{
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function delete(){\n\t\t$eventDet = $this->get_full_details();\n\t\t//print_r($eventDet);\n\t\t#unlink all images for the event\n\t\tif ($eventDet->news_image_logo) { \n\t\t\t//unlink($this->imgPath.$eventDet->news_image_logo);\n\t\t}\n\t\tif ($eventDet->news_photo1) { \n\t\t\tunlink($this->imgPath.$eventDet->news... | [
"0.77380955",
"0.7467017",
"0.7413709",
"0.73559767",
"0.73000276",
"0.7247399",
"0.72272116",
"0.714857",
"0.70839506",
"0.7027041",
"0.70236564",
"0.69831693",
"0.69433165",
"0.69147676",
"0.6873784",
"0.6856098",
"0.68141025",
"0.674421",
"0.67437047",
"0.66988945",
"0.668... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.