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
must get incubation period from this and ...
public function __construct($victim) { $this->victimId = $victim->id; $this->disease = $victim->diseases; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriod() {}", "public function getPeriod();", "abstract protected function get_interval();", "static function getLifetime()\n {\n return new Am_Period(self::MAX_SQL_DATE);\n }", "public function getIncrementing();", "function obtenerPeriodoActual($conexion)\n{\n $anoActu...
[ "0.6753113", "0.6589556", "0.6134364", "0.583444", "0.56457555", "0.5626334", "0.5539664", "0.54743356", "0.54684734", "0.5467975", "0.5451581", "0.541998", "0.54100794", "0.5384997", "0.53394157", "0.5335455", "0.5325753", "0.5322742", "0.5322742", "0.5322742", "0.5322742", ...
0.0
-1
/ showNotes Serve the notes dashboard.
public function showNotes() { return view('notes-dashboard'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listNotesPage()\n {\n $notes = Note::select('id', 'note')->orderBy('id', 'desc')->get();\n foreach ($notes as $note) {\n $note->originalNote = $note->getOriginal('note');\n }\n\n return view('admin.listnotes', ['notes' => $notes]);\n }", "public functi...
[ "0.7586648", "0.75498664", "0.75498664", "0.7492066", "0.72034925", "0.72034925", "0.72034925", "0.72034925", "0.72034925", "0.7177322", "0.7157055", "0.7135483", "0.71336937", "0.7021882", "0.6959551", "0.6957335", "0.6912485", "0.67314005", "0.67012155", "0.6700624", "0.669...
0.8146852
0
/ getNotes Get all notes belonging to a user_id. Verifies ownership of user_id against user in session.
public function getNotes($user_id) { // Verify user against session if ( !isset($_SESSION['user_id']) || $_SESSION['user_id'] != $user_id) { $response = "error"; return $response; } $user = \App\Models\User::find($user_id); $notes = \App\Models\User::find($user_id)->notes; $respon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findNotesByUser(UserInterface $user);", "public function get_notes($id)\n {\n $this->db->select ('notes_id, note_title, note_content, note_date')\n ->where ('tbl_users_user_ID', $id);\n\n $result = $this->db->get ('tbl_notes');\n\n return $result;\n }", "public fu...
[ "0.77149844", "0.7519682", "0.7513956", "0.74537665", "0.72692925", "0.70584", "0.6970789", "0.676284", "0.66626036", "0.6661945", "0.66522515", "0.6593235", "0.6545869", "0.64458627", "0.63578063", "0.6272248", "0.62368256", "0.6203205", "0.6183898", "0.61711174", "0.6159737...
0.8481243
0
/ deleteNote Deletes a note based on the note's ID
public function deleteNote($id) { $note = \App\Models\Note::find($id); // Verify user against session $user_id = $note->user_id; if ( !isset($_SESSION['user_id']) || $_SESSION['user_id'] != $user_id) { $response = "error"; return $response; } $note->delete(); return response...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DeleteNote($note){\r\n $statement = new DeleteStatement(\"job_note\");\r\n\t\t\t$statement->where(\"id\", $note->getId());\r\n $statement->executeStatement();\r\n }", "function deleteNote(NoteInterface $note);", "public function deleteNote($noteID) {\n $sql = \"DELE...
[ "0.8174124", "0.8152727", "0.79196393", "0.78565", "0.7740544", "0.7735133", "0.7658299", "0.762025", "0.75019085", "0.7457625", "0.73661387", "0.7344581", "0.7300714", "0.7202451", "0.71097136", "0.71067804", "0.7063306", "0.69507635", "0.6902017", "0.6899935", "0.6835571", ...
0.78228796
4
/ editNote Edits a note's title and body.
public function editNote(Request $request,$id){ $note = \App\Models\Note::find($id); // Verify user against session $user_id = $note->user_id; if ( !isset($_SESSION['user_id']) || $_SESSION['user_id'] != $user_id) { $response = "error"; return $response; } $note->title = $request-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Note $note)\n {\n //\n }", "public function edit(TecnicNote $TecnicNote)\n {\n \n }", "public function editnote(Request $request, Note $note)\n {\n\n Note::where('id', '=', $request->id)\n ->update([\n 'title' => $request->title,\n ...
[ "0.8414705", "0.7915074", "0.76056266", "0.74378467", "0.74200344", "0.72463846", "0.72347724", "0.7033852", "0.7031743", "0.7031743", "0.6990008", "0.6956392", "0.6895081", "0.68190575", "0.6818797", "0.67946965", "0.66887563", "0.66047263", "0.6572095", "0.6562304", "0.6553...
0.68265706
13
/ saveNote Saves a brand new note.
public function saveNote(Request $request) { $note = \App\Models\Note::create($request->all()); // Verify user against session $user_id = $note->user_id; if ( !isset($_SESSION['user_id']) || $_SESSION['user_id'] != $user_id) { $response = "error"; return $response; } return respo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save(KnsprNote $note);", "public function saveNote(array $note);", "public function setNote($note);", "public function save()\n {\n\n $url = parse_url($this->params->url);\n $path = $url['path'];\n $note = new Note(array('url' => $path));\n $note->load();\n\n ...
[ "0.83454335", "0.7729073", "0.697553", "0.68953866", "0.68503076", "0.6614791", "0.66095835", "0.6603925", "0.64650977", "0.6356148", "0.6257381", "0.6253141", "0.6253115", "0.6226344", "0.6163769", "0.6151909", "0.61509985", "0.61213213", "0.6120648", "0.61052173", "0.605573...
0.6122344
17
Display a listing of the resource.
public function index() { $prosStudents = ProspectiveStudent::simplePaginate(5); return view('admin.prosStudent.index', compact('prosStudents')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('admin.prosStudent.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request, [ 'fullname' => 'required', // 'first_name' => 'required', // 'last_name' => 'required', 'gender' => 'required', 'email' => 'required | email', 'dob' => 'required | dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233183", "0.81894475", "0.6830127", "0.6498529", "0.6496276", "0.6469191", "0.64627224", "0.63619924", "0.6308743", "0.62809277", "0.6218707", "0.61915004", "0.617914", "0.6172935", "0.6137578", "0.6118736", "0.6107122", "0.6106576", "0.60931313", "0.60798067", "0.6046669...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $prosStudent = ProspectiveStudent::findOrFail($id); return view('admin.prosStudent.edit', compact('prosStudent')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $this->validate($request, [ // 'first_name' => 'required', // 'last_name' => 'required', 'fullname' => 'required', 'gender' => 'required', 'email' => 'required | email', 'dob' => 'required...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { //dd($id); $prosStudent = ProspectiveStudent::findOrFail($id); $prosStudent->delete(); return redirect()->route('prosstudent.index')->with('successMsg', 'Prospective Student Deleted Successfully!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Run the database seeds.
public function run() { for ($i = 0; $i < 5; $i++){ $editalUser = Factory::factoryForModel('EditalUser')->create(); $user = User::find($editalUser->user_id); foreach ($user->familias as $f){ DB::table('edital_user_familia')->insert( [ ...
{ "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.8014072", "0.7980389", "0.7977261", "0.79545176", "0.7951285", "0.7949779", "0.79447794", "0.79427236", "0.7938544", "0.7937133", "0.7933888", "0.7892658", "0.78813094", "0.7879304", "0.78790134", "0.7875582", "0.78718805", "0.7870327", "0.7851507", "0.78506047", "0.784165...
0.0
-1
Create a new notification instance.
public function __construct(User $user, $application) { $this->user = $user; $this->application = $application; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create($notification){\n }", "public static function createNotification($type, $eventid){\n\t\t$notification = new Notification; \n\t\t$notification->type = $type;\n\t\t$notification->eventid = $eventid;\n\t\t$notification->time = date('Y-m-d H:i:s');\n\t\t$notification->save();\n\t\tretu...
[ "0.8276063", "0.72309536", "0.7192113", "0.71250874", "0.7123231", "0.70414555", "0.6982398", "0.6982398", "0.6982398", "0.69165224", "0.6844303", "0.68205667", "0.6801263", "0.6776018", "0.6589725", "0.6531073", "0.6507233", "0.65047646", "0.6503655", "0.64437956", "0.641349...
0.0
-1
Get the notification's delivery channels.
public function via($notifiable) { return [WebhookChannel::class]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotificationChannels()\n {\n if (array_key_exists(\"notificationChannels\", $this->_propDict)) {\n return $this->_propDict[\"notificationChannels\"];\n } else {\n return null;\n }\n }", "public function getDistributionChannels();", "public func...
[ "0.78077316", "0.7333707", "0.7127785", "0.7089724", "0.7087921", "0.70300424", "0.69931364", "0.6973003", "0.6951073", "0.6927183", "0.68472975", "0.67785895", "0.6697527", "0.6530563", "0.65100604", "0.6496754", "0.6474866", "0.6446399", "0.643471", "0.6423392", "0.64229727...
0.0
-1
Get the webhook representation of the notification.
public function toWebhook($notifiable) { return [ 'type' => 'beta_notification', 'message' => $this->user->username . ' has just created a Beta Application. Click here to view the application: ' . route('admin.applications.show', $this->application), ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function webhook()\n {\n return $this->meetingRepository->webhook();\n }", "public function getDecodedWebhook() {\n return $this->decodedWebhook;\n }", "public function getWebhookInfo(){\n return $this->make_http_request(__FUNCTION__);\n }", "public function getNotific...
[ "0.7286365", "0.6495325", "0.6422673", "0.63111573", "0.62259024", "0.6203615", "0.61567265", "0.613993", "0.6105526", "0.60857826", "0.60328573", "0.602549", "0.6016591", "0.5934224", "0.59274966", "0.59274966", "0.59274966", "0.5924149", "0.5891058", "0.5890732", "0.5871610...
0.64150274
3
Gets a list of template packs.
protected function readTemplatePacks() { if ($this->items) { $sql = "SELECT pack.*, COUNT(template.templateID) AS templates FROM wcf".WCF_N."_template_pack pack LEFT JOIN wcf".WCF_N."_template template ON (template.templatePackID = pack.templatePackID) GROUP BY pack.templatePackID ORDER BY "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplateList() {\n\t\t$aArgs = func_get_args();\n\t\t$aRet = call_user_func_array( array( $this, 'getTemplates' ), $aArgs );\n\t\treturn implode( '|', $aRet );\n\t}", "public function getTemplates (){\n $dir = conf::pathHtdocs() . \"/templates\";\n $templates = file::getFileList(...
[ "0.6702066", "0.66720784", "0.64137053", "0.6387438", "0.6259804", "0.62138903", "0.6208592", "0.6207784", "0.61945754", "0.6194118", "0.61514205", "0.60846865", "0.6058789", "0.6031115", "0.60243315", "0.598843", "0.5973893", "0.59452254", "0.59452254", "0.59428704", "0.5919...
0.73900837
0
Initialize a Clock object
protected function setUp() { $this->clock = new Clock(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clock(): Clock\n {\n return new Clock($this);\n }", "function __construct() {\n\t\tparent::__construct(\n\t\t\t'truman_sign_clock_widget',\n\t\t\t__( 'Clock Widget', 'truman-digital-sign-theme' ),\n\t\t\tarray( 'description' => __( 'Shows a clock with time and date', 'truman-digital-...
[ "0.73730755", "0.6262436", "0.6189736", "0.6167958", "0.61181885", "0.61118263", "0.60874856", "0.608563", "0.6036883", "0.585689", "0.5680372", "0.56660527", "0.5627869", "0.55383646", "0.5522139", "0.54826415", "0.54784256", "0.54743814", "0.54743814", "0.54647344", "0.5418...
0.5835274
10
Unset Clock object upon test completion
protected function tearDown() { $this->clock = NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function endTest() {\n unset($this->CalendarRecursion);\n unset($this->CalendarInstance);\n unset($this->Activity);\n ClassRegistry::flush();\n }", "public function tearDown(): void\n {\n parent::tearDown();\n\n Carbon::setTestNow();\n }", "pro...
[ "0.6885377", "0.6410031", "0.6028772", "0.6018886", "0.6003369", "0.5978536", "0.59734637", "0.5957988", "0.59537435", "0.5939774", "0.5938053", "0.5906665", "0.59034204", "0.58951205", "0.5887584", "0.5864025", "0.5843657", "0.58366674", "0.5833876", "0.58322316", "0.5828574...
0.77385116
0
First test should return "I am a clock"
public function testIdentity() { $result = $this->clock->whatAmI(); $this->assertEquals("I am a clock", $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTime() {\n $time = mktime(16, 35, 0, 2, 26, 1988);\n\n $this->assertEquals('04:35PM', Format::time($time));\n }", "public function testGetTimelogsForContact()\n {\n\n }", "public function testGetTimelogs()\n {\n\n }", "public function testGetTimelogsForTask()\...
[ "0.6670211", "0.6573012", "0.65491575", "0.6408347", "0.6319548", "0.6286005", "0.6156907", "0.6148376", "0.5967477", "0.5947592", "0.5848811", "0.58363205", "0.57862633", "0.5779434", "0.5742246", "0.5734574", "0.5719342", "0.57187", "0.57108283", "0.5651302", "0.56319416", ...
0.7421176
0
countBells test 1 INPUT $startTime = '2:00'; $endTime = '3:00'; OUTPUT 5
public function testcountBells1() { $startTime = '2:00'; $endTime = '3:00'; $expected = 5; $actual = $this->clock->countBells($startTime, $endTime); $this->assertEquals($expected, $actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testcountBells2()\n {\n $startTime = '14:00';\n $endTime = '15:00';\n $expected = 5;\n $actual = $this->clock->countBells($startTime, $endTime);\n $this->assertEquals($expected, $actual);\n }", "public function testcountBells3()\n {\n $startTime ...
[ "0.7790364", "0.7621403", "0.7603109", "0.7588029", "0.60771894", "0.6008421", "0.58147156", "0.56051457", "0.55868965", "0.5571136", "0.55647606", "0.55629426", "0.55178624", "0.5490642", "0.5423775", "0.5423357", "0.54195696", "0.5384532", "0.53485453", "0.5302422", "0.5283...
0.794848
0
countBells test 2 INPUT $startTime = '14:00'; $endTime = '15:00'; OUTPUT 5
public function testcountBells2() { $startTime = '14:00'; $endTime = '15:00'; $expected = 5; $actual = $this->clock->countBells($startTime, $endTime); $this->assertEquals($expected, $actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testcountBells1()\n {\n $startTime = '2:00';\n $endTime = '3:00';\n $expected = 5;\n $actual = $this->clock->countBells($startTime, $endTime);\n $this->assertEquals($expected, $actual);\n }", "public function testcountBells6()\n {\n $startTime = ...
[ "0.7938107", "0.7747654", "0.76584184", "0.754889", "0.6273584", "0.59857875", "0.5693502", "0.56793624", "0.5645284", "0.5645057", "0.5602397", "0.55947053", "0.5564192", "0.5543236", "0.55367476", "0.54877734", "0.54670894", "0.5454421", "0.5451063", "0.5359433", "0.5358288...
0.7950683
0
countBells test 3 INPUT $startTime = '14:23'; $endTime = '15:42'; OUTPUT 3
public function testcountBells3() { $startTime = '14:23'; $endTime = '15:42'; $expected = 3; $actual = $this->clock->countBells($startTime, $endTime); $this->assertEquals($expected, $actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testcountBells1()\n {\n $startTime = '2:00';\n $endTime = '3:00';\n $expected = 5;\n $actual = $this->clock->countBells($startTime, $endTime);\n $this->assertEquals($expected, $actual);\n }", "public function testcountBells2()\n {\n $startTime = ...
[ "0.7876827", "0.7767855", "0.76352894", "0.7614312", "0.6194683", "0.60244524", "0.57191056", "0.5621343", "0.56185967", "0.5579207", "0.5575454", "0.5562479", "0.5531313", "0.5524129", "0.5461818", "0.54452014", "0.54303485", "0.54266065", "0.53864574", "0.5371251", "0.53679...
0.7789689
1
How many hours does a clock show?
public function testClockHours() { $ecpected = 12; $actual = $this->clock->$hours; $this->assertEquals($expected, $actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_time_hour() {\n return sprintf( '%02d', (int) edd_get_option( 'edd_commissions_payout_schedule_time_hr', '' ) );\n }", "public function hours() {\n //TODO prediction\n }", "function hour()\r\n {\r\n $value = $this->SecondsElapsed;\r\n\r\n $second...
[ "0.6782323", "0.672277", "0.6611634", "0.653615", "0.64358306", "0.63599664", "0.62748796", "0.6191699", "0.61898255", "0.6175197", "0.61529344", "0.61504066", "0.61149204", "0.6069272", "0.60525686", "0.600032", "0.5981866", "0.59788626", "0.5966237", "0.5957123", "0.5956892...
0.6527518
4
countBells test 4 INPUT $startTime = '23:00'; $endTime = '1:00'; OUTPUT 24
public function testcountBells4() { $startTime = '23:00'; $endTime = '1:00'; $expected = 24; $actual = $this->clock->countBells($startTime, $endTime); $this->assertEquals($expected, $actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testcountBells1()\n {\n $startTime = '2:00';\n $endTime = '3:00';\n $expected = 5;\n $actual = $this->clock->countBells($startTime, $endTime);\n $this->assertEquals($expected, $actual);\n }", "public function testcountBells2()\n {\n $startTime = ...
[ "0.7953166", "0.7868492", "0.7784326", "0.76086307", "0.6430962", "0.6139236", "0.5902495", "0.57978386", "0.5712412", "0.56961316", "0.5643836", "0.56295836", "0.5586447", "0.5575732", "0.5570984", "0.55343956", "0.5505528", "0.54813874", "0.54590386", "0.543743", "0.5389041...
0.7991111
0
countBells test 6 Test if both times are equal, treat it as if twentyfour hours will pass.
public function testcountBells6() { $startTime = '10:00'; $endTime = '10:00'; $expected = 166; $actual = $this->clock->countBells($startTime, $endTime); $this->assertEquals($expected, $actual); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testcountBells2()\n {\n $startTime = '14:00';\n $endTime = '15:00';\n $expected = 5;\n $actual = $this->clock->countBells($startTime, $endTime);\n $this->assertEquals($expected, $actual);\n }", "public function testcountBells4()\n {\n $startTime ...
[ "0.82436097", "0.8172033", "0.8000799", "0.76401615", "0.5961563", "0.5766871", "0.56648844", "0.5489633", "0.5463349", "0.5453981", "0.5389772", "0.53592867", "0.53119165", "0.5286622", "0.5282793", "0.52794605", "0.5277949", "0.5262326", "0.5261698", "0.51985437", "0.519650...
0.8255216
0
Set the metabox to always display, even when it has no fields.
public function setAlwaysDisplay( $ad = true ) { $this->_alwaysDisplay = $ad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function metabox() {\n\t\techo SimpleTags_Admin::getDefaultContentBox();\n\t}", "public function metaboxes()\n\t{\n\t\t$this->admin()->metaboxes();\n\t}", "public function disableHideMetaboxes()\n\t\t{\n\t\t\techo \"<style type='text/css'>label[for='\" . $this->_id . \"-hide'] { display: none; }<...
[ "0.6824733", "0.63388234", "0.6273073", "0.61604035", "0.611771", "0.6108951", "0.5849404", "0.5847074", "0.57807136", "0.5701044", "0.5664816", "0.5651596", "0.56207293", "0.5590396", "0.55867386", "0.5584118", "0.5561699", "0.55547136", "0.5535916", "0.55109686", "0.5510564...
0.0
-1
Add a tab to the metabox.
public function addTab( $tab, $index = false ) { if( $index === false ) { $this->_tabs->insert( $tab ); } else { $this->_tabs->insertAt( $tab, $index ); } return $tab; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_tab( $tab ) {\n $this->settings_tabs[] = $tab;\n\n return $this;\n }", "public function add( Tab $tab ): Tab {\n\t\treturn parent::set( $tab->get_id(), $tab );\n\t}", "protected function _addTab(\n TDProject_Core_Interfaces_Block_Widget_Tab $tab) {\n \t$this->addBlock($tab)...
[ "0.71151733", "0.6978347", "0.6905", "0.6701574", "0.6502319", "0.64703166", "0.6458676", "0.6395772", "0.6391549", "0.63236976", "0.62922823", "0.62161165", "0.6179675", "0.6161683", "0.6139258", "0.6114777", "0.6095323", "0.6082307", "0.60687786", "0.60071903", "0.59770817"...
0.6559317
4
Create a new metabox tab.
public function createTab( $title, $slug, $index=false ) { $tab = new THB_MetaboxTab( $title, $slug ); $this->addTab( $tab, $index ); return $tab; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createTabs() {}", "private function createTab()\n {\n try {\n if (LengowMain::compareVersion()) {\n $tabParent = new Tab();\n $tabParent->name[Configuration::get('PS_LANG_DEFAULT')] = 'Lengow';\n $tabParent->module = 'lengow';\n...
[ "0.7082443", "0.651926", "0.6407837", "0.6398475", "0.6373191", "0.63572496", "0.6355799", "0.6300519", "0.6284565", "0.6267357", "0.62672496", "0.61974084", "0.61974084", "0.61258566", "0.60911673", "0.60600996", "0.604063", "0.60337704", "0.5989618", "0.5982153", "0.5978101...
0.6629417
1
Add a container to the metabox.
public function addContainer( $container, $index = false ) { return $this->getTab( '_options_tab' )->addContainer( $container, $index ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addMetaboxes() {}", "public function addContainer(&$container)\n {\n parent::addContainer($container);\n \n if (ObjectIntrospector::isA($container, 'TabPage') && $this->activeTabPagePersistor->getValue() == '')\n $this->activeTabPagePersistor->setValue($containe...
[ "0.6718297", "0.6702796", "0.65368843", "0.6509748", "0.65028596", "0.63365394", "0.6243661", "0.62302494", "0.6187787", "0.6187787", "0.61656106", "0.61477613", "0.6131784", "0.612489", "0.6115411", "0.61144465", "0.60691196", "0.60223013", "0.5994847", "0.5972644", "0.59526...
0.60519594
17
Create a new fields container.
public function createContainer( $title, $slug, $index=false ) { return $this->getTab( '_options_tab' )->createContainer( $title, $slug, $index ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function createFields();", "abstract protected function createFields();", "protected function createFormFields() {\n\t}", "public function create_fields() {\n\t\tif ( count( $this->sections ) > 0 ) {\n\t\t\tforeach ( $this->fields as $k => $v ) {\n\t\t\t\t$method = $this->determine_method( $v...
[ "0.767499", "0.75487787", "0.7104006", "0.6853523", "0.6750752", "0.6711202", "0.6672643", "0.6654241", "0.649102", "0.646809", "0.6420512", "0.64027965", "0.6245627", "0.622891", "0.61955947", "0.6195421", "0.6171193", "0.6168905", "0.61678064", "0.61427647", "0.6129803", ...
0.0
-1
Create a new duplicable fields container.
public function createDuplicableContainer( $title, $slug, $index=false ) { return $this->getTab( '_options_tab' )->createDuplicableContainer( $title, $slug, $index ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_duplicate_fields($fields = array(), $parent_id = 0)\n{\n}", "abstract protected function createFields();", "public abstract function createFields();", "public function duplication($value = TRUE, $fields = array())\n {\n $this->_provider->duplication($value, $fields);\n return $t...
[ "0.624753", "0.6145237", "0.61396486", "0.6005771", "0.58641756", "0.5862885", "0.58347183", "0.58033276", "0.5592819", "0.55850637", "0.5571071", "0.5549673", "0.5547072", "0.55413437", "0.5529647", "0.5510982", "0.54914224", "0.54812837", "0.5462868", "0.5448393", "0.541862...
0.0
-1
Get the metabox tab fields containers.
public function getContainers() { return $this->getTab( '_options_tab' )->getContainers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function metabox(){\n\t\tif ($this->options('use_metabox')){\n\t\t\treturn array(\n\t\t\t\t'id' => $this->options('name').'_metabox',\n\t\t\t\t'title' => __($this->options('singular_name').' Fields'),\n\t\t\t\t'page' => $this->options('name'),\n\t\t\t\t'context' => 'normal',\n\t\t\t\t'priority...
[ "0.6859011", "0.6856228", "0.67007095", "0.6644312", "0.66294056", "0.6554838", "0.64986354", "0.6446725", "0.6436388", "0.6430829", "0.6391465", "0.6388531", "0.62939185", "0.6246513", "0.623329", "0.62321764", "0.6229016", "0.62222", "0.6192383", "0.6172652", "0.616805", ...
0.5805501
34
Get a metabox tab fields container by its slug.
public function getContainer( $slug ) { return $this->getTab( '_options_tab' )->getContainer( $slug ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function metabox(){\n\t\tif ($this->options('use_metabox')){\n\t\t\treturn array(\n\t\t\t\t'id' => $this->options('name').'_metabox',\n\t\t\t\t'title' => __($this->options('singular_name').' Fields'),\n\t\t\t\t'page' => $this->options('name'),\n\t\t\t\t'context' => 'normal',\n\t\t\t\t'priority...
[ "0.6219824", "0.61011446", "0.59922266", "0.5723239", "0.5701285", "0.55793786", "0.5515148", "0.5504085", "0.5399804", "0.53994924", "0.53844714", "0.53614366", "0.5348587", "0.5347112", "0.5345169", "0.5336028", "0.5330845", "0.5300717", "0.53004545", "0.52736574", "0.52563...
0.63341564
0
Get a metabox tab by its slug.
public function getTab( $slug ) { foreach( $this->_tabs as $tab ) { if( $tab->getSlug() == $slug ) { return $tab; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMetabox( $slug )\n\t{\n\t\treturn isset( $this->_metaboxes[( string ) $slug] ) ? $this->_metaboxes[( string ) $slug] : false;\n\t}", "public function getBySlug(string $slug);", "public function getPageBySlug($slug)\n {\n return $this->findOneBy(array('slug' => $slug));\n }", "p...
[ "0.6548058", "0.59527993", "0.5923917", "0.58874154", "0.581092", "0.5763104", "0.56834656", "0.56618106", "0.56618106", "0.5594112", "0.5581636", "0.55160314", "0.551114", "0.5475707", "0.54657066", "0.5464961", "0.5464961", "0.5464961", "0.5464961", "0.5464961", "0.5459085"...
0.7139707
0
Get the metabox tabs.
public function getTabs() { return $this->_tabs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function metabox_tabs() {\n\t\t$tabs = array(\n\t\t\t'vpn-general' => array(\n\t\t\t\t'label' => 'General',\n\t\t\t\t'icon' => 'dashicons-text',\n\t\t\t),\n\t\t\t'vpn-scripts' => array(\n\t\t\t\t'label' => 'Scripts',\n\t\t\t\t'icon' => 'dashicons-format-aside',\n\t\t\t),\n\t\t\t'vpn-promotions' => a...
[ "0.8287205", "0.752857", "0.7210512", "0.71752465", "0.7169767", "0.704058", "0.70309263", "0.69890857", "0.6913948", "0.66730154", "0.6547791", "0.6283648", "0.62319225", "0.61603034", "0.6135458", "0.6127408", "0.6122459", "0.60828656", "0.60721046", "0.6048926", "0.6005547...
0.70845234
5
Get the metabox post type.
public function getPostType() { return $this->_postType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function type() { return $this->post->post_type; }", "public static function get_post_type(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_post_type();\n }", "function tc_get_post_type() {\r\n global $post;\r\n\r\n if ( !isset($post) )\r\n return;\r\n \...
[ "0.7782287", "0.74383503", "0.73941356", "0.7316453", "0.72325605", "0.71699166", "0.71079636", "0.7025792", "0.6962204", "0.6955979", "0.6891002", "0.68227893", "0.68227893", "0.68159735", "0.6799693", "0.6735182", "0.6712479", "0.6706258", "0.6706258", "0.6706258", "0.67062...
0.69556177
10
Get the metabox slug.
public function getSlug() { return $this->_slug; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSlug()\n {\n return $this->__get(self::FIELD_SLUG);\n }", "public function get_slug() {\n\t\treturn $this->slug;\n\t}", "public function slug()\n\t{\n\t\treturn $this->slug;\n\t}", "public function get_slug()\n {\n return $this->slug;\n }", "public function getS...
[ "0.72124475", "0.68690884", "0.6868905", "0.6852305", "0.68192595", "0.68177533", "0.6816848", "0.6816848", "0.6816848", "0.6816848", "0.6798254", "0.6797756", "0.6797756", "0.6797756", "0.67523545", "0.67523545", "0.67523545", "0.67523545", "0.67523545", "0.67523545", "0.673...
0.6730209
22
Get the metabox title.
public function getTitle() { return $this->_title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitle()\r\n {\r\n return $this->m_title;\r\n }", "protected function getMetaTitle() {\r\n\t\treturn $this->metaTitle;\r\n\t}", "public function getMetaTitle()\n\t{\n\t\treturn $this->metaTitle ? $this->metaTitle : $this->getName();\n\t}", "public function metaTitle()\n\t{\n\t\...
[ "0.75212586", "0.74773794", "0.74288666", "0.74201864", "0.7388739", "0.73869735", "0.7352137", "0.73392564", "0.73377955", "0.73364323", "0.7331421", "0.7310629", "0.7303539", "0.728246", "0.7279436", "0.7276779", "0.72706795", "0.72692746", "0.72665834", "0.7250433", "0.724...
0.72242916
34
Check if the metabox has already been saved.
public function isAlreadySaved() { return $this->_alreadySaved == true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAlreadyInSave()\n {\n return $this->alreadyInSave;\n }", "public function isAlreadyInSave()\n {\n return $this->alreadyInSave;\n }", "public function isAlreadyInSave()\n {\n return $this->alreadyInSave;\n }", "public function isAlreadyInSave()\n {\n...
[ "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.6891282", "0.653351", "0.6445044", "0.62988615", "0.6247506", "0.62234575", "0.6154589", "0.60333365", "0.59868604", "0.59693813", "0.59482473", "0.5822844"...
0.75158954
0
Parse the metabox showing conditions.
private function parseMetaboxConditions() { foreach( $this->_conditions as $condition ) { if( !$condition ) { return '<style>#' . $this->_id . ' { display: none !important; }</style>'; } } return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display_conditions() {\n\t\t$output = '';\n\t\tforeach($this->conditions as $id => $set) {\n\t\t\tif(is_array($set)) {\n\t\t\t\t$ret = $this->do_set($set,$id.'_container');\n\t\t\t\tif(!$ret) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$output .= $ret;\n\t\t\t}\n\t\t}\n//echo '<pre>'.htmlentities($outp...
[ "0.59526193", "0.53614926", "0.523919", "0.5221911", "0.52041733", "0.5161571", "0.51588225", "0.51588225", "0.51588225", "0.49778008", "0.49752837", "0.49115595", "0.4904188", "0.48980242", "0.48862484", "0.4845856", "0.48385328", "0.48385328", "0.4770255", "0.4760105", "0.4...
0.7115626
0
Register the post type's metabox
public function register() { if( empty($this->_postType) ) { wp_die( 'Empty metabox post type.' ); } $all_empty = true; foreach( $this->getTabs() as $tab ) { if ( ! $this->_alwaysDisplay && $tab->getContainers()->size() == 0 ) { continue; } foreach ( $tab->getContainers() as $conta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_post_metabox( $id,$title,$post_type) {\r\n\t\t$this->has_post_meta = true;\r\n\t\tadd_meta_box( \r\n\t\t\t$id, \r\n\t\t\t$title, \r\n\t\t\tarray(&$this,'post_meta_builder'), \r\n\t\t\t$post_type, \r\n\t\t\t'normal', \r\n\t\t\t'high', \r\n\t\t\t$this->postmeta[$post_type][$id] \r\n\t\t);\r\n\t}",...
[ "0.79410565", "0.78033835", "0.76649076", "0.7625233", "0.76152015", "0.75833946", "0.7574575", "0.75581867", "0.7503565", "0.74845946", "0.7456414", "0.7438227", "0.74234104", "0.74123555", "0.74053186", "0.73705393", "0.73379433", "0.7326032", "0.73188895", "0.7314516", "0....
0.8091651
0
Do not allow users to hide custom created metaboxes.
public function disableHideMetaboxes() { echo "<style type='text/css'>label[for='" . $this->_id . "-hide'] { display: none; }</style>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function block_editor_meta_box_hidden_fields()\n {\n }", "public function hideMetaBoxes()\n {\n remove_meta_box( 'pageparentdiv', 'playscripts', 'side' );\n // for some odd reason this doesn't always work. Very annoying.\n remove_meta_box( 'postimagediv', 'playscripts', 'side' );\n }", "public...
[ "0.68516964", "0.6673961", "0.6576593", "0.6425449", "0.6394282", "0.63839227", "0.6335782", "0.6296765", "0.62667173", "0.62560076", "0.6243336", "0.6225512", "0.6193966", "0.60205024", "0.60059434", "0.5996338", "0.59871435", "0.59853846", "0.5979172", "0.5955382", "0.59418...
0.7478017
0
Set a mark that indicates that the metabox has already been saved.
public function setAlreadySaved() { $this->_alreadySaved = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setMark() {\n echo $this->promptMessage('choose_mark');\n $mark = $this->limitInput(array(self::X_MARK, self::O_MARK, self::QUIT_BUTTON));\n switch ($mark) {\n case self::X_MARK:\n ...
[ "0.63364536", "0.60807633", "0.6040339", "0.6030701", "0.58288324", "0.578333", "0.55385184", "0.55079323", "0.55079323", "0.55079323", "0.55079323", "0.55079323", "0.54358995", "0.5430935", "0.53939855", "0.53809553", "0.53659403", "0.53399897", "0.53316647", "0.5329666", "0...
0.7265603
0
Set the metabox showing conditions.
public function setConditions( $conditions ) { $this->_conditions = $conditions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_menu_item_criteres() {\n\treturn new icone_action('criteres',\"showHide('criteres','','show')\",'menu_criteres');\n\t\n}", "function display_conditions() {\n\t\t$output = '';\n\t\tforeach($this->conditions as $id => $set) {\n\t\t\tif(is_array($set)) {\n\t\t\t\t$ret = $this->do_set($set,$id.'_contain...
[ "0.56808996", "0.56169385", "0.5612794", "0.55524224", "0.54794335", "0.5423806", "0.5376647", "0.5340364", "0.5320613", "0.5302954", "0.5206974", "0.518125", "0.5178473", "0.51719457", "0.5126124", "0.5096026", "0.5074389", "0.50655776", "0.5038098", "0.5023653", "0.5008565"...
0.0
-1
Set the metabox position.
public function setPosition( $position ) { $this->_position = $position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPosition() {\n }", "public function setMenuItemPosition() {\n\t\t$this->itemPosition = array(\n\t\t\t'slider' => 4,\n\t\t\t'carousel' => 4,\n\t\t\t'testimonial' => 4,\n\t\t\t'portfolio' => 4,\n\t\t\t'options' => 1000\n\t\t);\n\t}", "public function testSetPosition ( ) {\n $this->mark...
[ "0.7007031", "0.6770717", "0.6524012", "0.6295729", "0.62940127", "0.6058832", "0.5984969", "0.5979212", "0.58840674", "0.5880712", "0.58364403", "0.5782262", "0.57638985", "0.57524395", "0.5728635", "0.56447744", "0.5644328", "0.5591638", "0.5591638", "0.5582443", "0.557916"...
0.59353626
8
Set the metabox post type.
public function setPostType( $postType ) { $this->_postType = $postType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_post_type($post_id = 0, $post_type = 'post')\n {\n }", "protected function set_type() {\n\n\t\t\t$this->type = 'kirki-editor';\n\n\t\t}", "function snax_mashshare_add_post_types_to_metaboxes( $metaboxes ) {\n\t$metaboxes[0]['pages'][] = 'snax_quiz';\n\treturn $metaboxes;\n}", "function reg...
[ "0.7238226", "0.6588266", "0.65659654", "0.6527148", "0.6500174", "0.64548445", "0.63647264", "0.62824863", "0.6278969", "0.61982906", "0.61687535", "0.61410284", "0.61385393", "0.61242956", "0.61237425", "0.61087465", "0.60822845", "0.6054742", "0.60426044", "0.60401934", "0...
0.6387311
6
Set the metabox priority.
public function setPriority( $priority ) { $this->_priority = $priority; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function metabox_prio() {\n return 'low';\n }", "function rankmath_metaboxes_priority(){\n \n return 'default';\n \n }", "function yoast_metaboxes_priority(){\n \n return 'default';\n \n }", "function wpseo_metabox_prio( $priority )\n {\n re...
[ "0.74527407", "0.71486557", "0.7045037", "0.67425776", "0.6664163", "0.66329664", "0.5983106", "0.5740871", "0.5715311", "0.56244594", "0.55448544", "0.5519691", "0.5519691", "0.54615957", "0.54460514", "0.5439876", "0.5394449", "0.53877395", "0.5383372", "0.53655595", "0.532...
0.5580707
10
Create the event listener.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRequestCreateListener($listener);", "public function onEvent();", "private function init_event_listeners() {\n\t\t// add_action('wp_ajax_example_action', [$this, 'example_function']);\n\t}", "public function listener(Listener $listener);", "protected function setupListeners()\n {\n ...
[ "0.65685207", "0.62875676", "0.6221792", "0.6197413", "0.61627764", "0.6129312", "0.6096226", "0.6056844", "0.6051069", "0.6041841", "0.596228", "0.596194", "0.5957539", "0.59439605", "0.58821785", "0.58821785", "0.5874665", "0.5864387", "0.5856076", "0.584338", "0.5824244", ...
0.0
-1
Parse post link and replace it with meta value.
function chocolife_external_permalink( $link, $post ) { //$meta = get_post_meta( $post->ID, 'syndication_permalink', TRUE ); $meta = get_field("news_link"); $url = esc_url( filter_var( $meta, FILTER_VALIDATE_URL ) ); return $url ? $url : $link; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function fetchLink($link, $post){\n\t\tif(strpos($link, 'youtube.com/watch')){\n\t\t\t$videoId = explode(\"watch?v=\", $link);\n\t\t\tif(count($videoId > 1)){\n\t\t\t\t$videoId = $videoId[count($videoId) -1];\n\n\t\t\t\t$post['assetType'] = 'yt_video';\n\t\t\t\t$post['assetImage'] = 'http://img.youtube.com...
[ "0.6268358", "0.6097411", "0.6038907", "0.5986823", "0.5971848", "0.594337", "0.5766461", "0.56988454", "0.56795526", "0.5647017", "0.5624851", "0.56118274", "0.558848", "0.5580265", "0.5579303", "0.55580777", "0.55434215", "0.5534763", "0.5532499", "0.5532499", "0.55057865",...
0.6233703
1
WD Modifications: Featured image slider is no longer full screen. More banner like, 300 pixels tall in desktop version. Use H3 in widgets instead of H1 for better SEO results JavaScript file added for more options Green changed to blue Removed "Powered By WordPress" from footer etc.
function remove_business_starter_widgets(){ unregister_sidebar( 'sidebar-1' ); unregister_sidebar( 'sidebar-2' ); unregister_sidebar( 'sidebar-3' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ThemeistsLogoShowcase()\n\t\t\t{\n\t\t\n\t\t\t\t//load_plugin_textdomain( self::locale, false, plugin_dir_path( dirname( dirname( __FILE__ ) ) ) . '/lang/' );\n\n\t\t\n\t\t\t\t$widget_opts = array (\n\n\t\t\t\t\t'classname' => 'ThemeistsLogoShowcase', \n\t\t\t\t\t'description' => __( 'A simple widget to s...
[ "0.66408235", "0.6628934", "0.65764725", "0.65531725", "0.655191", "0.65310925", "0.65065163", "0.6494426", "0.64939094", "0.64803886", "0.64501935", "0.64413685", "0.6438569", "0.6432856", "0.6399492", "0.63970006", "0.63775915", "0.63505995", "0.6336879", "0.63362604", "0.6...
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'title' => 'required|min:5|max:199', 'body' => 'required', 'thumbnail' => 'image|mimes:png,jpg,svg,jpeg|max:2048', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342797", "0.8013068", "0.79357624", "0.79257727", "0.7922943", "0.7903906", "0.7859204", "0.7789624", "0.7783409", "0.77624106", "0.773673", "0.7732383", "0.77094924", "0.7691624", "0.7684878", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.7682184", ...
0.0
-1
Creates an empty export instance
public function createExport();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function export();", "public function export();", "public function export();", "public function export();", "public function export();", "public function export()\n {\n }", "public function __construct(Export $export)\n {\n $this->export = $export;\n }", "public function exp...
[ "0.67919564", "0.67919564", "0.67919564", "0.67919564", "0.67919564", "0.6760279", "0.665389", "0.6554787", "0.6552386", "0.6454768", "0.64488727", "0.6442755", "0.6442109", "0.63983023", "0.62716216", "0.6259408", "0.6228091", "0.6222511", "0.62208074", "0.6213134", "0.62061...
0.79454106
0
Find an export by id
public function findExport($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exportById($id)\n {\n }", "public function findById(int $id)\n {\n return $this->entityManager->getRepository(Download::class)->find($id);\n }", "public function findAction($id);", "public function packingFind($id);", "public static function find($id);", "public static ...
[ "0.68567014", "0.65635383", "0.646961", "0.64337754", "0.6315502", "0.61182976", "0.60242724", "0.6020756", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203", "0.6016203",...
0.88124096
0
Find a user by the given criteria
public function findExportBy(array $criteria);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findUserBy(array $criteria);", "public function findUserBy(array $criteria);", "public function findUser($condition)\n {\n return $this->createUserQuery()->where($condition);\n }", "public function getByCriteria($criteria){\n $sql = \"SELECT * FROM user WHERE {$criteria}\"...
[ "0.79125994", "0.79125994", "0.7026674", "0.69093645", "0.683398", "0.683398", "0.6789196", "0.6789196", "0.6764304", "0.67580825", "0.6720456", "0.6698329", "0.6666803", "0.6660869", "0.6621161", "0.6619673", "0.65158844", "0.6509489", "0.6483348", "0.64700085", "0.64700085"...
0.0
-1
Find exports by the given criteria
public function findExportsBy(array $criteria, $orderBy = null, $limit = null, $offset = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findExportBy(array $criteria);", "public function findExports();", "public function findExport($id);", "abstract protected function query(Export $export);", "abstract public function getAvailableExports();", "public function exportWhere()\n\t{\n\t\t$keys_to_export = array(\n\t\t\t'id_food...
[ "0.7646258", "0.7147872", "0.65679437", "0.5858146", "0.57543933", "0.56303215", "0.5605202", "0.5394735", "0.5341211", "0.5279045", "0.52526855", "0.5186721", "0.5128331", "0.50866055", "0.50866055", "0.5031576", "0.49931377", "0.4989581", "0.49732548", "0.49572775", "0.4949...
0.74367046
1
Returns a collection with all exports
public function findExports();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getExportCollection()\n {\n // crea connessione mongodb\n $connectionString = 'mongodb://' . \n $this->mongoParam['username'] . ':' . $this->mongoParam['password'] . '@' .\n $this->mongoParam['server'] . '/' . $this->mongoParam['db'];\n $conn...
[ "0.78198963", "0.71626174", "0.64607227", "0.64435536", "0.64435536", "0.64435536", "0.64435536", "0.64435536", "0.64433295", "0.64100355", "0.6389295", "0.63684916", "0.63220185", "0.6318598", "0.6307601", "0.6305427", "0.6305427", "0.6305427", "0.6305427", "0.6302348", "0.6...
0.63279456
12
Returns the export's fully qualified class name
public function getClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getFullyQualifiedClassName() {\n $reflector = new \\ReflectionClass(get_called_class());\n return $reflector->getName();\n }", "protected function fullyQualifiedClassName(): string\n {\n return $this->fullNamespace() . '\\\\' . $this->name();\n }", "public f...
[ "0.7893394", "0.7794205", "0.75552136", "0.7455469", "0.7282085", "0.7243222", "0.7239233", "0.72322255", "0.72206765", "0.72049886", "0.7200637", "0.71524", "0.7150337", "0.7150337", "0.7150337", "0.7150337", "0.7127986", "0.71146125", "0.7101391", "0.7101391", "0.70939606",...
0.0
-1
Load fixture data user
public function load(ObjectManager $manager) { // Array of data for the fixture $usersData = array( array( 'username' => 'superman', 'email' => 'superman@user.sup', 'password' => 'sup', 'roles' => array('ROLE_ADMIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function loadUserFixtures()\n {\n include __DIR__ . '/../../../_files/adminUserFixtures.php';\n }", "public function _fixtures()\n {\n return [\n 'user' => [\n 'class' => UserFixture::className(),\n 'dataFile' => codecept_data_dir() . ...
[ "0.75053596", "0.7176572", "0.7013669", "0.69031966", "0.6614586", "0.6614528", "0.65941393", "0.6524029", "0.64610875", "0.6450042", "0.64295334", "0.62986416", "0.6252047", "0.62311286", "0.61843115", "0.61728495", "0.6158179", "0.61407155", "0.6034951", "0.6029332", "0.601...
0.6666704
4
Run the database seeds.
public function run() { // $items = [ [ 'name' => 'Imperial Salon', 'location_id' => 1, 'category_id' => 1, 'description' => 'We are making your hair awesome', 'service' => 'Haircut (man)', 'p...
{ "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.8014072", "0.7980389", "0.7977261", "0.79545176", "0.7951285", "0.7949779", "0.79447794", "0.79427236", "0.7938544", "0.7937133", "0.7933888", "0.7892658", "0.78813094", "0.7879304", "0.78790134", "0.7875582", "0.78718805", "0.7870327", "0.7851507", "0.78506047", "0.784165...
0.0
-1
Create or get user from social account
public function createOrGetUser($provider) { $providerUser = \Socialite::driver($provider)->user(); $account = SocialAccount::whereProvider($provider) ->whereProviderUserId($providerUser->getId()) ->first(); if ($account) { return $account->user; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createUserFromSocialite($user);", "public function createOrGetUser(Request $request)\n {\n $portal = $this->getUserInfo($request);\n\n // retrive account\n $account = SocialAccount::whereProvider('portal')\n ->whereProviderUserId($portal->{'id'})\n ->...
[ "0.76717234", "0.7068087", "0.7058115", "0.69822615", "0.67769223", "0.67634785", "0.67629206", "0.6654273", "0.6605464", "0.6601245", "0.6568657", "0.6567644", "0.6567644", "0.6567644", "0.6567644", "0.65487254", "0.6525146", "0.64971346", "0.6485395", "0.64805853", "0.64784...
0.70348406
3
Run the database seeds.
public function run() { // if (articles::count() == 0){ articles::create([ 'title' => 'Duis vehicula nunc dictum risus faucibus, ut dictum tellus adipiscing', 'text' => 'Vivamus ipsum eros, sollicitudin non neque nec, varius ultricies sem. Quisque leo jus...
{ "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
DO NOT CONSIDER MULTIPLE OR RELATIONSHIP!!!! $sql = "SELECT FROM `test` WHERE name = 'WIFI_1' Order by time DESC limit 1 ";//for $result = $conn>query($sql); $row = $result>fetch_assoc(); 1
function process_allof_str($normal_pre_req) { // echo "Example function.\n"; $normal_pre_req = str_replace(';', '', $normal_pre_req); $oneof_flag = strstr($normal_pre_req, 'ONE OF'); $allof_flag = strstr($normal_pre_req, 'ALL OF'); $allof_array = []; $oneof_array=[]; $count_one_of = 0; if (strlen($oneo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TinMoiNhat_BonTin() {\n // sap theo khoa chinh idTin\n //DESC de id giam dan\n //lay tin dau tien (tin thu 0), lay 1 tin\n $qr = \"\n SELECT * FROM tin\n ORDER BY idTin DESC\n LIMIT 1,4\n \";\n $connection = mysqli_connect('localhost','root','','khoaphamtraining');\n...
[ "0.6454344", "0.64187783", "0.63956124", "0.63847333", "0.6336385", "0.60244286", "0.5798758", "0.5773929", "0.5758101", "0.5754156", "0.57442296", "0.57296526", "0.5672207", "0.56698644", "0.5669518", "0.5657249", "0.5601141", "0.55496943", "0.5548972", "0.5548443", "0.55379...
0.0
-1
Renvoie le nom de la plateforme
protected function getPlateformeName() { return $this->plateforme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getName() {\n // Comprobamos si contiene algo la caja de texto\n if (isset($_POST['txtNewName'])) {\n // Con trim elemininamos cualquier espacio metido a más.\n $nombre = trim($_POST['txtNewName']);\n // función para pasar el nombre a minúsculas\n $nombre = strtolower($no...
[ "0.64185756", "0.6396761", "0.6347638", "0.6305113", "0.6300505", "0.6300505", "0.6300505", "0.6298424", "0.6298424", "0.6298424", "0.6267314", "0.6213049", "0.6213049", "0.6205563", "0.61630064", "0.61332643", "0.611526", "0.6102963", "0.60669065", "0.60215706", "0.60215706"...
0.74945843
0
Renvoie la configuration de la plateforme
protected function getPlateformeConfig() { return $this->config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadConfig(){\n\t\t\n\t\t$opt[] = [\n\t\t\t'method' => 'setFormParams',\n\t\t\t'value'=>$this->paramsLoad(3, \\sevian\\s::getReq('command_idx'), \\sevian\\s::getReq('unit_idx'))\n\t\t\t\n\t\t];\n\t\t$this->info = $opt;//$form->getInfo();\n\t}", "public function run()\n {\n $cfg = array(\...
[ "0.636154", "0.6341113", "0.62895864", "0.62663907", "0.62652236", "0.62629414", "0.6234327", "0.6166044", "0.6067151", "0.6066006", "0.60586715", "0.6043662", "0.6025195", "0.5994459", "0.59890157", "0.5981873", "0.5978416", "0.5977981", "0.5951465", "0.59417367", "0.5921942...
0.67114913
0
Renvoie le code du mode de paiement par CB
protected function getCodeModeDePaiement() { $table = $this->getDbManager()->get('Sbm\Db\System\Libelles'); return $table->getCode('ModeDePaiement', 'CB'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function b_code($code){\n \t$re = new DbManager();\n \t$book = $re -> code_book($code);\n \treturn $book ;\n }", "public function getCodeModele() {\n return $this->codeModele;\n }", "final function getCode();", "public function getCode() {}", "public function getCodebancque()\n {\n retu...
[ "0.62279075", "0.5990187", "0.57621324", "0.57218874", "0.5644606", "0.5638799", "0.56196356", "0.56118476", "0.560966", "0.5603606", "0.5592896", "0.5590757", "0.55829644", "0.5576152", "0.5576152", "0.5576152", "0.5576152", "0.5576152", "0.5576152", "0.55652493", "0.5565249...
0.6939403
0
Renvoie le code de la caisse
protected function getCodeCaisse() { $table = $this->getDbManager()->get('Sbm\Db\System\Libelles'); return $table->getCode('Caisse', 'DFT'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final function getCode();", "public function getCode() {\n\n $licence = '/*\n * Auto Generated Code for HomeNet\n *\n * Copyright (c) 2011 HomeNet.\n *\n * This file is part of HomeNet.\n *\n * HomeNet is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public...
[ "0.7017567", "0.6780629", "0.6758399", "0.6758399", "0.6758399", "0.6758399", "0.6758399", "0.6758399", "0.6754007", "0.6671532", "0.6651441", "0.657072", "0.65506184", "0.6507318", "0.6507318", "0.6507318", "0.6427193", "0.63314235", "0.63183886", "0.62891525", "0.6251207", ...
0.6565849
12
Add metaboxes for singlefood
function ir_register_food_metabox() { $prefix = 'ir_'; /** * Sample metabox to demonstrate each field type included */ $cmb_food = new_cmb2_box( array( 'id' => $prefix . 'food_metabox', 'title' => esc_html__( 'Component values', 'cmb2' ), 'object_types' => array( 'food', ), // Post type )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addMetaboxes() {}", "public function metaboxes()\n\t{\n\t\t$this->admin()->metaboxes();\n\t}", "public function add_meta_boxes()\n \t{\n \t\t// Add this metabox to every selected post\n \t\tadd_meta_box( \n \t\t\tsprintf('wp_plugin_template_%s_section', self::POST_TYPE),\n \t\t\t...
[ "0.8012924", "0.73003554", "0.69341725", "0.6897233", "0.67220974", "0.6699729", "0.66571623", "0.66248643", "0.6582401", "0.65697", "0.65688664", "0.6524824", "0.65148175", "0.6501964", "0.64659", "0.6447188", "0.6432879", "0.6425887", "0.6424033", "0.64047134", "0.639571", ...
0.6369206
21
Manually render a field column display.
function yourprefix_display_text_small_column( $field_args, $field ) { ?> <div class="custom-column-display <?php echo $field->row_classes(); ?>"> <p><?php echo $field->escaped_value(); ?></p> <p class="description"><?php echo $field->args( 'description' ); ?></p> </div> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fieldDisplay(): FieldDisplay;", "function column_display( $column ) {\n\t\tglobal $post;\n\t\tswitch ( $column ) {\n\t\tcase 'client_name':\n\t\t\tif ( get_post_meta( $post->ID, 'client_name', true ) )\n\t\t\t\techo get_post_meta( $post->ID, 'client_name', true );\n\t\t\tbreak;\n\t\tcase 'descrip...
[ "0.7059962", "0.6958023", "0.68331015", "0.68229085", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", "0.6816184", ...
0.7036813
1
Add metaboxes for singlepost
function ir_register_post_metabox() { global $post; $related_food_id = 0; if ( isset( $_GET['post'] ) ) { $related_food_id = get_post_meta( $_GET['post'], 'ir_related_food', true ); } $prefix = 'ir_'; /** * Sample metabox to demonstrate each field type included */ $cmb_post = new_cmb2_box( array( 'id' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function metaboxes()\n\t{\n\t\t$this->admin()->metaboxes();\n\t}", "public function add_meta_boxes()\n \t{\n\n \t\t// Add this metabox to every selected post\n \t\tadd_meta_box( \n \t\t\tsprintf('WP_Custom_Login_Profile_%s_section', self::POST_TYPE),\n \t\t\tsprintf('%s Information', ucword...
[ "0.80718267", "0.7958561", "0.7905715", "0.74339986", "0.73729384", "0.7287924", "0.72368675", "0.72339725", "0.7225989", "0.7223426", "0.7219713", "0.72196716", "0.7203484", "0.7197258", "0.7191029", "0.71728545", "0.7171", "0.7166859", "0.71480656", "0.713828", "0.7113409",...
0.0
-1
return $this>morphToMany('App\Place', 'placeable')>withPivot('place_name', 'title', 'intro', 'deep', 'comment');
public function places() { $p = $this ->morphToMany('App\Place', 'placeable') ->withPivot('id', 'place_id', 'placeable_type', 'placeable_id', 'deep', 'comment') ->using(Placeable::class); return $p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function places()\n {\n return $this->belongsToMany('App\\Models\\Admin\\Place\\Place');\n }", "public function objects() {\n \t// return call_user_func_array($this->belongsToMany('Object')->withPivot, static::$pivotColumns);\n return $this->belongsToMany('Object')\n ...
[ "0.72494346", "0.68421024", "0.6529764", "0.64798677", "0.6449216", "0.6425935", "0.6374937", "0.63660985", "0.63582", "0.6348674", "0.63026226", "0.62719196", "0.6235767", "0.62266904", "0.62138927", "0.6202758", "0.61768824", "0.61608773", "0.61602384", "0.61448675", "0.613...
0.75706804
0
Run the database seeds.
public function run() { DB::table('cities')->insert( ['name' => str_random(10) ] ); DB::table('cities')->insert( ['name' => 'split' ] ); DB::table('cities')->insert( ['name' => 'razanac' ] ); DB::table('cities')->insert( ['name' => 'zadar' ] ); DB::table('cities')->insert( ...
{ "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.8014072", "0.7980389", "0.7977261", "0.79545176", "0.7951285", "0.7949779", "0.79447794", "0.79427236", "0.7938544", "0.7937133", "0.7933888", "0.7892658", "0.78813094", "0.7879304", "0.78790134", "0.7875582", "0.78718805", "0.7870327", "0.7851507", "0.78506047", "0.784165...
0.0
-1
Gets the currently logged in user.
public function getCurrentUser() { if (!property_exists($this, 'currentUser')) { $this->currentUser = null; $uid = isset($_SESSION['uid']) ? $_SESSION['uid'] : false; if ($uid) { $this->currentUser = User::find($uid); } } return $this->currentUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLoggedInUser() {\n return $this->_user->getLoggedInUser();\n }", "public function GetCurrentUser()\n {\n return $this->userManager->getCurrent();\n }", "public function getCurrentUser()\n {\n $this->validateUser();\n\n if ($this->session->has(\"user\")...
[ "0.85585564", "0.85186386", "0.8475539", "0.844894", "0.82808536", "0.82723236", "0.8266299", "0.82199013", "0.82199013", "0.8205339", "0.8169144", "0.81546074", "0.8116375", "0.8112953", "0.81105494", "0.81019664", "0.80949444", "0.8086172", "0.80818105", "0.80786777", "0.80...
0.815724
11
Checks if a user is currently logged in.
public function isLoggedIn() { if (!property_exists($this, 'loggedIn')) { $this->loggedIn = false; $user = $this->getCurrentUser(); if ($user) { $pass = $_SESSION['pass']; $this->loggedIn = password_verify($pass, $user->password); } } return $this->loggedIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isLoggedIn()\n {\n return (bool)Users::getCurrentUser();\n }", "public function isUserLoggedIn() {\r\n\t\treturn ($this->coreAuthenticationFactory->isUserLoggedIn ());\r\n\t}", "public function isUserLoggedIn()\n {\n return (isset($this->session->sUserId) && !empty...
[ "0.8293189", "0.825508", "0.82508963", "0.8234174", "0.82080185", "0.82038194", "0.819742", "0.8163682", "0.8135206", "0.81293255", "0.81256485", "0.81018007", "0.8099972", "0.8082041", "0.8071132", "0.80705786", "0.80679244", "0.8062674", "0.8056616", "0.80438334", "0.804383...
0.7550652
97
Checks if a user is logged in. Redirects to login page if nobody is logged in.
public function checkLogin() { if (!$this->isLoggedIn()) { Router::getInstance()->redirect('login'); } return $this->getCurrentUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function redirect_when_logged() {\n $is_logged_in = AppAuthentication::is_logged_in();\n\n // If the user is already logged in we redirect to the default path of\n // his role.\n if ($is_logged_in) {\n $user_info = AppAuthentication::get_user_data();\n redirect_to_user_default_path($user_info...
[ "0.7935685", "0.79252285", "0.7878963", "0.7849462", "0.7808341", "0.78002685", "0.7767775", "0.77538973", "0.7737225", "0.7691615", "0.76436687", "0.7595066", "0.7537642", "0.75250924", "0.7519968", "0.75110674", "0.75016546", "0.74799275", "0.74503", "0.7423361", "0.7382443...
0.7057948
52
Metodo que define la relacion entre Category>Products
public function products(){ return $this->hasMany(Product::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function productByCategory($id)\n {\n \t\n }", "public function prod_list_by_category() {\n $url_cate = get_raw_app_uri();\n if (!empty($url_cate)) {\n $Product = new Product();\n $info = $Product->getProductByCategory($url_cate);\n $data['content'] = 'list...
[ "0.7163742", "0.688953", "0.67565954", "0.67385197", "0.6655302", "0.66274375", "0.6548645", "0.6482956", "0.6478918", "0.64338267", "0.6419959", "0.64161074", "0.6390495", "0.63654184", "0.63520306", "0.6339948", "0.6337067", "0.6326756", "0.63190836", "0.63155955", "0.62719...
0.0
-1
Change Method. More information on this method is available here:
public function change() { $this->table('countries') ->addColumn('name', 'string', [ 'default' => null, 'limit' => 64, 'null' => false, ]) ->addColumn('ori_name', 'string', [ 'default' => null, 'limit' => 64, 'null' => false, ]) ->addColumn('continent_id', 'integer', [ 'defa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function change();", "function change()\n {\n }", "public function change($changes);", "public function change()\n {\n echo '客户要求改变一个需求' . PHP_EOL;\n }", "public function change($options)\n\t{\n\n\t}", "public function setChanged()\n {\n\n $this->_changed = tr...
[ "0.84217495", "0.77721107", "0.7686793", "0.74927205", "0.7245604", "0.70412993", "0.6984869", "0.6883122", "0.68630093", "0.68287313", "0.68282807", "0.6820752", "0.68063927", "0.67938966", "0.67618406", "0.6757705", "0.65657175", "0.6544782", "0.65386945", "0.65318614", "0....
0.0
-1
Parse the network settings page
private function parseNetworks($objUser) { global $_ARRAYLANG; $availableProviders = \Cx\Lib\SocialLogin::getProviders(); foreach ($availableProviders as $index => $provider) { if (!$provider->isActive()) { unset($availableProviders[$index]); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function display_network_settings() {\n\t\twp_nonce_field( 'cjur-network-settings', 'cjur-network-settings-nonce' );\n\n\t\tdo_settings_sections( 'cjur-network-settings-page' );\n\t}", "public function network_config_page() {\n\t\trequire_once WPSEO_PATH . 'admin/pages/network.php';\n\t}", "publi...
[ "0.72646844", "0.65959096", "0.6171499", "0.58326817", "0.579032", "0.5725085", "0.5603935", "0.55970275", "0.5596541", "0.5585041", "0.5584309", "0.5565432", "0.5558386", "0.5545529", "0.5538863", "0.55284095", "0.5521502", "0.5463713", "0.5412116", "0.5400303", "0.5358372",...
0.0
-1
DHCP server add subnet.
function add($iface) { $this->_add_edit($iface, 'add'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function networkAdd($ipvar, $subnet){\n\t\t# $octetbit array is used in computing on how many '1' bits are in a specific octet of the IP address\n\t\t$octetbit = [128, 64, 32, 16, 8, 4, 2, 1];\n\n\t\t#To check which octet is the subnet mask located(in terms of count of 8),\n \t#which will help in computing for ...
[ "0.630979", "0.59423196", "0.58789194", "0.5854955", "0.5642866", "0.5421193", "0.52758896", "0.5245642", "0.52162373", "0.5182487", "0.5168595", "0.51371276", "0.5061889", "0.5056955", "0.50293684", "0.49974075", "0.49780065", "0.4971123", "0.49291348", "0.49133232", "0.4905...
0.0
-1
DHCP server delete subnet view.
function delete($iface) { $this->lang->load('dhcp'); $confirm_uri = '/app/dhcp/subnets/destroy/' . $iface; $cancel_uri = '/app/dhcp/subnets'; $items = array($iface . ' - ' . lang('dhcp_dhcp')); $this->page->view_confirm_delete($confirm_uri, $cancel_uri, $items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function destroy($iface)\n {\n try {\n $this->load->library('dhcp/Dnsmasq');\n \n $this->dnsmasq->delete_subnet($iface);\n $this->dnsmasq->reset(TRUE);\n\n $this->page->set_status_deleted();\n redirect('/dhcp/subnets');\n } catch (Exception...
[ "0.6741856", "0.6202219", "0.58431697", "0.5778033", "0.5552737", "0.5428738", "0.54147714", "0.5357392", "0.5339986", "0.5291946", "0.52326626", "0.5214437", "0.5194922", "0.5172071", "0.51681715", "0.5154211", "0.50551534", "0.5045336", "0.5015896", "0.5012315", "0.49923727...
0.69273627
0
Destroys DHCP server subnet.
function destroy($iface) { try { $this->load->library('dhcp/Dnsmasq'); $this->dnsmasq->delete_subnet($iface); $this->dnsmasq->reset(TRUE); $this->page->set_status_deleted(); redirect('/dhcp/subnets'); } catch (Exception $e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function deleteSubnet( $subnetID ){\n\t\t\tglobal $wpdb;\n\n\t\t\tglobal $switched;\n\t\t\tswitch_to_blog(1);\n\t\t\t\n\t\t\t$wpdb->query( $wpdb->prepare(\n\t\t\t\t\"DELETE FROM \".$wpdb->prefix.\"wps_subnets\n\t\t\t\tWHERE id = '%d'\",\n\t\t\t\t$subnetID\n\t\t\t) );\n\n\t\t\trestore_current_blog();\...
[ "0.5999652", "0.5602587", "0.55879855", "0.5200593", "0.516263", "0.50957024", "0.5056942", "0.5039685", "0.4944451", "0.49284953", "0.49180615", "0.49103948", "0.48604628", "0.4846279", "0.48204187", "0.47936264", "0.47891158", "0.4695959", "0.46936908", "0.4692789", "0.4692...
0.6734208
0
DHCP server edit subnet.
function edit($iface) { $this->_add_edit($iface, 'edit'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handle_put($target, $params, $body) {\n $result = array();\n $restart_nic = FALSE;\n $restart_dhcp = FALSE;\n $nic = current_nic();\n\n $addr = safe_array_get('addr', $body);\n if (!is_null($addr)) {\n $valid = sugar_valid_ip4($addr);\n if (!$valid) {\n return re...
[ "0.5744698", "0.55591923", "0.5551555", "0.5549149", "0.55329233", "0.54946864", "0.5439293", "0.5396617", "0.5373008", "0.53587335", "0.53214085", "0.5295203", "0.52042013", "0.5129526", "0.51279265", "0.50930804", "0.50834304", "0.5071166", "0.5052989", "0.50441664", "0.500...
0.0
-1
///////////////////////////////////////////////////////////////////////////// P R I V A T E ///////////////////////////////////////////////////////////////////////////// DHCP server common add/edit form handler.
function _add_edit($iface, $form_type) { // Load libraries //--------------- $this->load->library('dhcp/Dnsmasq'); $this->lang->load('dhcp'); // Set validation rules //--------------------- $this->load->library('form_validation'); $this->form_valida...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit()\n {\n $this->title = sprintf('%s: %s', _('Edit'), $this->obj->get('name'));\n unset($this->headerData);\n $this->attributes = array(\n array(),\n array(),\n );\n $this->templates = array(\n '${field}',\n '${inp...
[ "0.626785", "0.60536283", "0.5828579", "0.58136135", "0.5762051", "0.57211995", "0.5690881", "0.5672909", "0.56667525", "0.5653919", "0.5644392", "0.56437135", "0.5636675", "0.5626331", "0.5608877", "0.55976593", "0.5575544", "0.5573823", "0.5566496", "0.5548915", "0.5548566"...
0.7181706
0
Display a listing of the resource.
public function index() { // $data['users'] = User::get(); return view('welcome', $data); }
{ "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.7447426", "0.73628515", "0.73007894", "0.7249563", "0.7164474", "0.7148467", "0.71320325", "0.7104678", "0.7103152", "0.7100512", "0.7048493", "0.6994995", "0.69899315", "0.6935843", "0.6899995", "0.68999326", "0.6892163", "0.6887924", "0.6867505", "0.6851258", "0.6831236"...
0.0
-1
Show the form for creating a new resource.
public function create() { // return view('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) { // $rules = [ 'nomor_induk' => 'required|string|unique:users', 'nama' => 'required|string', 'alamat' => 'required', 'tanggal_lahir' => 'required|date', 'tanggal_bergabung' => 'required|date' ...
{ "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($nomor_induk) { // if($nomor_induk!=null) { $data['user'] = User::where('nomor_induk', $nomor_induk)->first(); return view('detail', $data); } else return redirect('/'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "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.78560394", "0.76944435", "0.7274738", "0.7242069", "0.7171281", "0.70639855", "0.7054131", "0.6983364", "0.69478005", "0.69461757", "0.69413805", "0.69277894", "0.690145", "0.68984276", "0.68984276", "0.68784773", "0.68642735", "0.68610847", "0.6857929", "0.684406", "0.683...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($nomor_induk) { // if($nomor_induk!=null) { $data['user'] = User::where('nomor_induk', $nomor_induk)->first(); $data['user']->delete(); return redirect('/'); } else return redirect('/'); }
{ "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
pretizena o kontrolu, jestli byla hodnota opravdu zadana v options
public function getValue() { try { $value = parent::getValue(); if (strlen($value) > 0) { if (!array_key_exists((string)$value, (array)$this->getOptions())) { throw new LBoxExceptionFormControl("$value: ". LBoxExceptionFormControl::MSG_FORM_CONTROL_VALUE_NOT_OPTION, LBoxExceptionFormControl::CODE_FORM_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function options();", "public function options();", "public function options();", "public function options();", "public function options();", "protected function get_options()\n\t{}", "public function options() {}", "abstract function options();", "function getOptions() ;", "protected func...
[ "0.72613066", "0.72613066", "0.72613066", "0.72613066", "0.72613066", "0.71345896", "0.7083198", "0.6962012", "0.6934162", "0.6877075", "0.687704", "0.687704", "0.6835018", "0.66093355", "0.6590709", "0.6577263", "0.6577263", "0.65758413", "0.6555942", "0.65462404", "0.651352...
0.0
-1
pretizena o kontrolu, jestli byla hodnota opravdu zadana v options
public function setValue($value = NULL) { try { if ($value && !array_key_exists($value, $this->options)) { throw new LBoxExceptionFormControl(LBoxExceptionFormControl::MSG_FORM_CONTROL_VALUE_NOT_OPTION, LBoxExceptionFormControl::CODE_FORM_CONTROL_VALUE_NOT_OPTION); } parent::setValue($value); } cat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function options();", "public function options();", "public function options();", "public function options();", "public function options();", "protected function get_options()\n\t{}", "public function options() {}", "abstract function options();", "function getOptions() ;", "protected func...
[ "0.726089", "0.726089", "0.726089", "0.726089", "0.726089", "0.71345204", "0.70826685", "0.6962327", "0.6934403", "0.6876732", "0.68766975", "0.68766975", "0.6834879", "0.66074157", "0.6590271", "0.657728", "0.657728", "0.6575855", "0.6555563", "0.65461475", "0.65139157", "...
0.0
-1
Calculate the holiday datetime for defined year and return it.
public function calculate( int $year ): \DateTime { $refDate = new DateTime( $year . '-12-24 00:00:00' ); $multiplier = 4 - $this->_adventDay; $refDate->modify( '-' . ( $refDate->getDayNumberOfWeek() + ( $multiplier * 7 ) ) . ' days' ); if ( 0 !== $this->_modifyDays ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_holidays($inc_year){\n\t//$year = date(\"Y\");\n\t$year = $inc_year;\n\n\t// $holidays[] = new Holiday(\"New Year's Day\", get_timestamp(\"$year-1-1\"));\n\t$holidays[] = new Holiday(\"Republic Day\", get_timestamp(\"$year-1-26\"));\n\t// $holidays[] = new Holiday(\"Labour Day\", ordinal_day(1, ...
[ "0.69561625", "0.6951806", "0.6826785", "0.6540133", "0.6462488", "0.6451407", "0.6447207", "0.63755596", "0.6332938", "0.6327886", "0.6201066", "0.61964434", "0.61730283", "0.60724235", "0.60103595", "0.6002728", "0.58549833", "0.58504105", "0.58391345", "0.5832619", "0.5730...
0.6059145
14
Get all the regions of country
public static function findAll( $countryid ) { return Doctrine_Query::create ()->from ( 'Regions s' ) ->where('s.country_id = ?', array($countryid)) ->orderBy('s.name') ->execute ( array (), Doctrine_Core::HYDRATE_ARRAY ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCountriesPerRegion();", "public static function get_all_regions() {\r\n $DB = new \\Nefuzz\\Php\\DBC();\r\n $result = ($DB)->query_to_array(\"\r\n SELECT *\r\n FROM regions;\r\n \",'',[]);\r\n $DB->quit();\r\n return $result;\r\n }", "public function getRegions() {\...
[ "0.7903392", "0.7782696", "0.7662441", "0.76123255", "0.7608062", "0.75489277", "0.7529003", "0.74997705", "0.7449707", "0.73814595", "0.7333836", "0.7246486", "0.7168686", "0.7033201", "0.69006836", "0.6895331", "0.68423885", "0.68405896", "0.6831059", "0.68093216", "0.68015...
0.6872928
16
Find a state by id
public static function find($id) { return Doctrine::getTable ( 'Regions' )->findOneBy ( 'region_id', $id ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findStateById($id) {\n $state = State::find($id);\n\n $result = array();\n foreach (request()->session()->get('languages') as $lang => $language) {\n foreach($this->translatedAttributes as $field) {\n $result[$lang . '_' . $field] = $state->getTranslat...
[ "0.6952702", "0.6849062", "0.6708004", "0.6674862", "0.6629438", "0.65590054", "0.65490085", "0.6543576", "0.6535497", "0.6529078", "0.6524736", "0.65186894", "0.6517762", "0.6517762", "0.6517762", "0.6517762", "0.6517762", "0.6517762", "0.6517762", "0.6517762", "0.6517762", ...
0.629867
50
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401075", "0.8377201", "0.8377201", "0.8344036", "0.8253612", "0.824826", "0.8212931", "0.8146173", "0.81110245", "0.80821866", "0.7991871", "0.7990792", "0.79829323", "0.7959539", "0.79514205", "0.7949228", "0.7925649", "0.7915602", "0.7900597", "0.789401", "0.78905416", ...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'firstName' => 'required|min:3|alpha', 'birthDate' => 'required|date', 'email' => 'required|email|unique:users,email', 'password' => 'required|min:6|confirmed', 'password_confirmation' => 'required|min:6', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Display a listing of the resource.
public function index() { $demandeurs = Demandeur::all(); $autorisations = AutorisationPassageSalle::orderByDesc('autorisation_passage_salles.created_at') ->join('demandeurs', 'autorisation_passage_salles.idDemandeur', '=', 'demandeurs.idDemandeur') ...
{ "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