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
Allow preinsert logic to be applied to row
public function _insert() { $this->notifyObservers(__FUNCTION__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function beforeInserting()\n {\n }", "public function insertRow($row);", "protected function beforeInsert()\n {\n }", "protected function afterInsertAccepting()\n {\n }", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n ...
[ "0.7007145", "0.6657182", "0.6554749", "0.6538644", "0.64149684", "0.64149684", "0.63400006", "0.63211316", "0.63029146", "0.6198176", "0.6192815", "0.61885804", "0.61443335", "0.6142744", "0.60965663", "0.60347295", "0.5967215", "0.59478086", "0.5947458", "0.59267515", "0.58...
0.0
-1
Allows postinsert logic to be applied to row.
public function _postInsert() { $this->notifyObservers(__FUNCTION__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _postInsert()\n\t{\n\t}", "protected function afterInserting()\n {\n }", "protected function afterInsert()\n {\n }", "protected function afterInsertAccepting()\n {\n }", "public function after_insert() {}", "protected function _insert()\n {\n \n }", "pr...
[ "0.7673658", "0.7196362", "0.7171806", "0.71128833", "0.6955235", "0.6626729", "0.6626729", "0.6540758", "0.65086454", "0.6499347", "0.6473286", "0.6462735", "0.638358", "0.63253045", "0.62360656", "0.6087291", "0.6075813", "0.60416967", "0.60378164", "0.60255736", "0.6013866...
0.65406346
8
Allow preupdate logic to be applied to row
public function _update() { $this->notifyObservers(__FUNCTION__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function beforeUpdating()\n {\n }", "protected function _preupdate() {\n }", "function prepare_update($rowindex) {\r\n foreach ($this->properties as $colvar=>$col) {\r\n if ($col->on_edit_callback != '') {\r\n $this->ds->{$colvar}[$rowindex] = eval($col->on_e...
[ "0.697865", "0.69745725", "0.6933497", "0.6844641", "0.66080767", "0.66080767", "0.6581803", "0.6564867", "0.64681506", "0.6433775", "0.6383628", "0.636981", "0.6303676", "0.6300327", "0.6290271", "0.6286377", "0.6281343", "0.6266917", "0.6252489", "0.62400335", "0.6224616", ...
0.0
-1
Allows postupdate logic to be applied to row.
public function _postUpdate() { $this->notifyObservers(__FUNCTION__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _postUpdate()\n\t{\n\t}", "protected function performPostUpdateCallback()\n {\n // echo 'updated a record ...';\n return true;\n }", "public function postUpdateCallback()\n {\n $this->performPostUpdateCallback();\n }", "public function postUpdateCallback()\...
[ "0.764369", "0.7096226", "0.6803936", "0.6803936", "0.65842867", "0.65068346", "0.6397124", "0.63328993", "0.62986314", "0.6209134", "0.61819917", "0.6180393", "0.6168594", "0.6160694", "0.61061835", "0.61061835", "0.6101452", "0.6099421", "0.60917586", "0.60811603", "0.60285...
0.5743428
50
Allow predelete logic to be applied to row
public function _delete() { $this->notifyObservers(__FUNCTION__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _predelete() {\n }", "protected function _preDelete() {}", "public function preDelete() { }", "function preDelete()\n {\n }", "protected function preDelete() {\n\t\treturn true;\n\t}", "public function onBeforeDelete();", "function beforeDelete() {\n\t\t\treturn $this->_dele...
[ "0.76999533", "0.7658419", "0.74922657", "0.7345435", "0.7160098", "0.68156314", "0.6791743", "0.675912", "0.6709964", "0.6648998", "0.6620292", "0.66029984", "0.65252066", "0.6511829", "0.651074", "0.6503655", "0.6390102", "0.6367624", "0.6354036", "0.6325667", "0.62965757",...
0.0
-1
Allows postdelete logic to be applied to row.
public function _postDelete() { $this->notifyObservers(__FUNCTION__); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _postDelete() {}", "protected function _postDelete() {}", "protected function _postDelete()\n\t{\n\t}", "protected function postDelete() {\n\t\treturn true;\n\t}", "protected function _postDelete()\n\t{\n\t\t//register events\n\t\t\\Base\\Event::trigger('user.delete',$this->id);\n\t\t//e...
[ "0.78720814", "0.7871951", "0.7701348", "0.69382507", "0.69176084", "0.6883885", "0.6865814", "0.6825337", "0.6759033", "0.6688874", "0.66051215", "0.65748626", "0.657291", "0.6556499", "0.6535632", "0.6519383", "0.6467252", "0.64639306", "0.6458847", "0.64209455", "0.6410352...
0.6180993
44
Get observers attached to this row
public static function getObservers() { $observers = self::$_observers; return $observers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function observers()\n {\n return $this->observers;\n }", "public function getObservers()\n {\n return $this->observers;\n }", "public function getObservers()\n {\n return $this->observers;\n }", "public function get_observers() : array\n\t{\n\t\treturn $this->_o...
[ "0.78559965", "0.74705446", "0.74705446", "0.6996944", "0.68374246", "0.62419736", "0.6213425", "0.61684084", "0.6099628", "0.6088177", "0.594256", "0.5937092", "0.5788808", "0.5774903", "0.5770698", "0.57029057", "0.570119", "0.57011217", "0.5700989", "0.5655671", "0.5584315...
0.710488
3
Add a static Observer object to the class
public static function attachStaticObserver(TA_Model_Observer_Interface $o) { array_push(self::$_observers, $o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function observers();", "function addObserver(Observer $observer_in) {\n $this->observers[] = $observer_in;\n }", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public functi...
[ "0.6833247", "0.67054194", "0.6472937", "0.6472937", "0.6472937", "0.64722073", "0.64722073", "0.64722073", "0.6366079", "0.619584", "0.61669123", "0.61455566", "0.6084249", "0.60706794", "0.5959561", "0.5883357", "0.5873043", "0.57347405", "0.5712314", "0.5692079", "0.563918...
0.7133692
0
Remove a static observer object from the class
public static function detachStaticObserver(TA_Model_Observer_Interface $o) { foreach (self::$_observers as $key => $observer) { if ($observer == $o) { self::$_observers[$key] = null; return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeObserver() {\n //$this->__observers = array();\n foreach($this->__observers as $obj) {\n unset($obj);\n }\n }", "protected function removeInstance() {}", "public static function remove() : void\n {\n static::clear();\n \n }", "stati...
[ "0.7610802", "0.708865", "0.67560804", "0.662963", "0.65068525", "0.63159585", "0.6248106", "0.61832315", "0.6081306", "0.6081306", "0.6025248", "0.60128707", "0.6003528", "0.5998771", "0.5979606", "0.59649056", "0.59577596", "0.59554034", "0.5944269", "0.5944269", "0.5881479...
0.6295088
6
Notify any observers use this if something happens the observers might be interested in
public function notifyObservers($method, $msg = null) { $observers = self::$_observers; // loop through observers and notify each available observer method foreach ($observers as $obs) { if (is_callable(array($obs, $method))) { $obs->$method($this, $msg); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function notify()\n {\n foreach ($this->observers as $obKey => $obValue) {\n $obValue->update($this);\n }\n }", "function notify()\n {\n foreach ($this->observers as $observer) {\n $observer->update($this);\n }\n }", "public func...
[ "0.81921875", "0.8186039", "0.8168171", "0.810597", "0.80442035", "0.79946303", "0.7989916", "0.7949516", "0.79406106", "0.77949536", "0.7767869", "0.7707903", "0.7449027", "0.7383375", "0.73534185", "0.73387027", "0.72073436", "0.7058341", "0.6774289", "0.6747729", "0.667761...
0.5822416
40
Verify the existence of the key.
private function verifyKey(array $readSpreadSheet): void { $keys = [ 'sheet_id', 'category_tag', 'read_type', 'use_blade', 'output_directory_path', 'definition_directory_path', 'separation_key', 'attribute_group_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function keyExists(string $key): bool;", "public static function exist($key) ;", "public function exist($key);", "public function exists($key): bool;", "public function exists(string $key): bool\n {\n }", "public function exists($key);", "public function has(string $key): bool {}", "publ...
[ "0.8191065", "0.78206205", "0.7818034", "0.7737714", "0.7706629", "0.7637137", "0.75851434", "0.7564888", "0.7493388", "0.7472187", "0.7465525", "0.7465525", "0.7444413", "0.74311393", "0.74311393", "0.74311393", "0.74311393", "0.74311393", "0.74311393", "0.74311393", "0.7421...
0.0
-1
Display a listing of the resource.
public function index($id) { $layanan = Layanan::where('id_layanan', $id)->get(); return view('public.pemesanan.index', compact('layanan')); }
{ "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() { // }
{ "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.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.717402...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $generate = new generateKode(); $kode = $generate->KodePemesanan(); $nominal = $request->input('total'); $sub = substr($nominal,-3); $sub2 = substr($nominal,-2); $sub3 = substr($nominal,-1); $tot...
{ "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(Pemesanan $pemesanan) { // }
{ "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(Pemesanan $pemesanan) { // }
{ "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, Pemesanan $pemesanan) { // }
{ "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.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445",...
0.0
-1
Remove the specified resource from storage.
public function destroy(Pemesanan $pemesanan) { // }
{ "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
verify decision return properties with default DecideOptions
public function verifyDecisionProperties(): void { $decision = $this->userContext->decideForKeys(FLAG_KEYS); $this->printDecisions($decision, "Check that the following decisions' properties are expected"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyDecisionProperties(): void\n {\n $decision = $this->userContext->decide(FLAG_KEY);\n\n $this->printDecision($decision, \"Check that the following decision properties are expected for user $this->userId\");\n }", "public function testWithVariationsOfDecideOptions(): void\...
[ "0.6884443", "0.6582804", "0.6464693", "0.6014043", "0.5980335", "0.59020895", "0.5901666", "0.5810843", "0.5728704", "0.5728704", "0.57277966", "0.57088506", "0.56850916", "0.56738955", "0.56359315", "0.5608676", "0.560469", "0.5578333", "0.5542859", "0.55338025", "0.5479393...
0.6825259
1
test decide w all options: DISABLE_DECISION_EVENT, ENABLED_FLAGS_ONLY, IGNORE_USER_PROFILE_SERVICE, INCLUDE_REASONS, EXCLUDE_VARIABLES (will need to add variables)
public function testWithVariationsOfDecideOptions(): void { $options = [ OptimizelyDecideOption::INCLUDE_REASONS, // OptimizelyDecideOption::DISABLE_DECISION_EVENT, // OptimizelyDecideOption::ENABLED_FLAGS_ONLY, // ⬅️ Disable some of your flags // Optimizel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWithVariationsOfDecideOptions(): void\n {\n $options = [\n OptimizelyDecideOption::INCLUDE_REASONS,\n // OptimizelyDecideOption::DISABLE_DECISION_EVENT,\n // OptimizelyDecideOption::ENABLED_FLAGS_ONLY, // ⬅️ Disable some of your flags\n /...
[ "0.7441389", "0.54870343", "0.53214437", "0.5320809", "0.5290275", "0.52787566", "0.52784187", "0.5264936", "0.52579516", "0.52253395", "0.521929", "0.51509714", "0.5128793", "0.5097066", "0.50656307", "0.5056115", "0.50507647", "0.5033698", "0.4955682", "0.4951509", "0.49355...
0.70403206
1
verify in logs that impression event of this decision was dispatched
public function verifyLogsImpressionsEventsDispatched(): void { // 💡️ Be sure that your FLAG_KEYS array above includes A/B Test eg "product_version" $logger = new DefaultLogger(Logger::DEBUG); $localOptimizelyClient = new Optimizely(datafile: null, logger: $logger, sdkKey: SDK_KEY); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyLogsImpressionsEventsDispatched(): void\n {\n // 💡️ Create a new flag with an A/B Test eg \"product_version\"\n $featureFlagKey = 'product_version';\n $logger = new DefaultLogger(Logger::DEBUG);\n $localOptimizelyClient = new Optimizely(datafile: null, logger: ...
[ "0.7668425", "0.6778277", "0.6778277", "0.6554328", "0.6554328", "0.6009658", "0.55407953", "0.55402875", "0.5365371", "0.5317638", "0.5304101", "0.5304101", "0.5301933", "0.5125348", "0.5078407", "0.5042903", "0.50420034", "0.5029171", "0.5015953", "0.5008906", "0.49963698",...
0.7510679
1
verify on Results page that impression even was created
public function verifyResultsPageInYourProjectShowsImpressionEvent(): void { print "Go to your project's results page and verify decisions events are showing (5 min delay)"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyLogsImpressionsEventsDispatched(): void\n {\n // 💡️ Create a new flag with an A/B Test eg \"product_version\"\n $featureFlagKey = 'product_version';\n $logger = new DefaultLogger(Logger::DEBUG);\n $localOptimizelyClient = new Optimizely(datafile: null, logger: ...
[ "0.6249699", "0.6068109", "0.60492015", "0.5945385", "0.56744397", "0.56206983", "0.52456534", "0.52308804", "0.51702756", "0.5156005", "0.502122", "0.49999642", "0.4976467", "0.497505", "0.49684155", "0.496407", "0.49478167", "0.49362057", "0.4935828", "0.49255764", "0.49190...
0.70249856
1
verify that decision listener contains correct information
public function verifyDecisionListenerWasCalled(): void { // Check that this was called during the... $onDecision = function ($type, $userId, $attributes, $decisionInfo) { print ">>> [$this->outputTag] OnDecision: type: $type, userId: $userId, attribut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyDecisionProperties(): void\n {\n $decision = $this->userContext->decide(FLAG_KEY);\n\n $this->printDecision($decision, \"Check that the following decision properties are expected for user $this->userId\");\n }", "public function verifyDecisionProperties(): void\n {\n ...
[ "0.65480614", "0.62806135", "0.5491631", "0.5322595", "0.523217", "0.5229661", "0.52165985", "0.51994663", "0.5197485", "0.51791364", "0.51481986", "0.51348776", "0.5130494", "0.51180595", "0.5099238", "0.50958705", "0.50893104", "0.50893104", "0.50893104", "0.50893104", "0.5...
0.7961968
1
verify that invalid flag key is handled correctly
public function verifyAnInvalidFlagKeyIsHandledCorrectly(): void { $logger = new DefaultLogger(Logger::ERROR); $localOptimizelyClient = new Optimizely(datafile: null, logger: $logger, sdkKey: SDK_KEY); $userId = 'user-' . mt_rand(10, 99); $localUserContext = $localOptimizelyClient->c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsValidKeyWithInvalidKey() \n {\n $result = $this->fileCache->isValidKey('');\n $expected = FALSE;\n\n $this->assertEquals($expected, $result);\n }", "function check_element_validity($key,$opt){\n\n if (preg_match(STARTCHARRGX, $key) === 1 ) { //check first ...
[ "0.67659914", "0.640581", "0.6379434", "0.63693994", "0.6341779", "0.6326382", "0.6140762", "0.6140514", "0.6055783", "0.59930325", "0.5917794", "0.59130347", "0.5889435", "0.5886992", "0.5781108", "0.57391214", "0.5704403", "0.5701161", "0.5697768", "0.5682411", "0.56671363"...
0.7583321
1
Get all categories assigned to an entry
public function get_category_posts($entry_id = NULL, $status = NULL) { $where = array( 'entry_id' => ($entry_id ?: ee()->publisher_lib->entry_id), 'publisher_status' => ($status ?: ee()->publisher_lib->status), 'publisher_lang_id' => ee()->publisher_lib->lang_id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function categories() {\n $db = Db::getInstance();\n $req = $db->query('SELECT * FROM category');\n return $req->fetchAll(PDO::FETCH_ASSOC);\n }", "public static function getCategories()\n\t{\n\t\treturn Category::getAll();\n\t}", "public function getCategories();", "pub...
[ "0.7403302", "0.72930247", "0.72022516", "0.72022516", "0.7193086", "0.7186631", "0.7161313", "0.71498054", "0.7139634", "0.7131217", "0.71290493", "0.71271586", "0.71183014", "0.71118075", "0.70756656", "0.70631963", "0.70564336", "0.70491827", "0.704857", "0.70473343", "0.7...
0.0
-1
Save assigned categories to an entry
public function save_category_posts($entry_id, $meta, $data) { $categories = array(); // Channel:Form/Safecracker if (isset($data['categories'])) { $categories = $data['categories']; } // Normal Entry Save elseif (isset($data['revision_post']['cat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lm_save_category() {\n\t@copy(LM_CDATA, LM_CBACKUP);\n\t$id = isset($_POST['category-id']) ? intval($_POST['category-id']) : null;\n\t$cid = isset($_POST['category-cid']) ? intval($_POST['category-cid']) : time();\n\t$arr = array('cid'=>$cid, 'name'=>safe_slash_html($_POST['category-name']));\n\tif (funct...
[ "0.7105386", "0.657624", "0.65236574", "0.64653856", "0.6462581", "0.6461511", "0.6438404", "0.62992126", "0.61338675", "0.596923", "0.59471154", "0.59307206", "0.5913978", "0.58563083", "0.5843725", "0.5817443", "0.58066255", "0.57915413", "0.57899785", "0.5787178", "0.57641...
0.6716348
1
First delete all category assignments for this entry.
private function _save_category_posts($entry_id, $publisher_save_status, $categories = array()) { ee()->db->where('publisher_status', $publisher_save_status) ->where('publisher_lang_id', ee()->publisher_lib->lang_id) ->where('entry_id', $entry_id) ->delete('pu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function clearCategories() {\n $sql = \"DELETE FROM project_category WHERE project_id = %d\";\n $sql = sprintf($sql, $this->id);\n self::$connection->execute($sql);\n }", "public function clearCategories() {\n\t\t$this->quizCategoriesTable->deleteWhere('quizId', $this->id);\n\t}",...
[ "0.65797263", "0.648564", "0.6411816", "0.6224246", "0.61792797", "0.586514", "0.58278584", "0.5687127", "0.5651581", "0.56162715", "0.5612332", "0.55711657", "0.55596244", "0.5538181", "0.55321044", "0.54771346", "0.5421295", "0.5410044", "0.5398949", "0.5396658", "0.5395332...
0.0
-1
Handle multi_entry_category_update. There is no hook in EE so we only trigger this if the $_POST is correct. Thanks to Mark Croxton for contributing this.
public function multi_entry_category_update() { // Does the user have permission? if ( !ee()->publisher_helper->allowed_group('can_access_content')) { show_error(lang('unauthorized_access')); } $entries = ee()->input->post('entry_ids', TRUE); $cat_ids ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multi_entry_category_update()\n\t{\n\t\tif ( ! $this->cp->allowed_group('can_access_content'))\n\t\t{\n\t\t\tshow_error($this->lang->line('unauthorized_access'));\n\t\t}\n\n\t\tif ($this->input->get_post('entry_ids') === FALSE OR $this->input->get_post('type') === FALSE)\n\t\t{\n\t\t\treturn $this->dsp->n...
[ "0.8170923", "0.6424623", "0.6291664", "0.62079436", "0.61742085", "0.6161012", "0.6133668", "0.61207837", "0.60949314", "0.6066736", "0.605513", "0.6037569", "0.5997986", "0.59850764", "0.5982726", "0.5980113", "0.5979108", "0.59551746", "0.5931074", "0.5929418", "0.589933",...
0.7950188
1
MCP Methods Get a specific category, and optionally all translations for it.
public function get($cat_id = FALSE, $status = PUBLISHER_STATUS_OPEN, $translations = FALSE) { if ( !$cat_id) { show_error('$cat_id is required. publisher_category.php->get()'); } if ($translations) { // TODO: turns out I never used this... Doesn't ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory();", "public function getCategory();", "public function getCategory() {}", "public function getTranslations( ?string $category = null ) : array;", "function get_Category()\n {\n try {\n return $this->mCategory;\n }catch(Exception $e){\n $th...
[ "0.6765036", "0.6765036", "0.67195314", "0.658613", "0.651059", "0.63749427", "0.63533765", "0.6295764", "0.6261291", "0.6197481", "0.619715", "0.6110495", "0.60551274", "0.60551274", "0.6053155", "0.6050581", "0.60484713", "0.6034503", "0.6032081", "0.600723", "0.599439", ...
0.60872656
12
Get all categories optionally by group with no translations, just category data.
public function get_all($group_id = FALSE, $status = PUBLISHER_STATUS_OPEN) { ee()->db->where('site_id', ee()->publisher_lib->site_id); if (is_numeric($group_id)) { ee()->db->where('group_id', $group_id); } $qry = ee()->db ->order_by('cat_name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_categories_by_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\n\t\t// start hook\n\t\t$vars = $this->_hook('get_categories_by_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->cha...
[ "0.73190933", "0.6857694", "0.6663516", "0.6623863", "0.6621396", "0.6543463", "0.6534717", "0.64489543", "0.6350637", "0.6350637", "0.62522966", "0.6251714", "0.6215646", "0.617186", "0.61637235", "0.6155696", "0.6131653", "0.6130057", "0.6129755", "0.61287165", "0.61115795"...
0.62082994
13
Grab specific category group, and optionally return only the group ID
public function get_group($group_id = FALSE, $return_id = FALSE) { // If no category group was specified, get the first one found. // This is used in the CP Category management landing page. if (is_numeric($group_id)) { $qry = ee()->db->where('group_id', $group_id) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_category_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\t\t\n\t\t// start hook\n\t\t$vars = $this->_hook('get_category_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->channel_d...
[ "0.76983947", "0.7062646", "0.70292354", "0.695643", "0.66145825", "0.65348166", "0.64825004", "0.64241004", "0.63876474", "0.63750595", "0.63022715", "0.6279023", "0.62195444", "0.6212036", "0.6205768", "0.6111761", "0.6104808", "0.60837454", "0.6052708", "0.6052708", "0.605...
0.7079017
1
Grab all category groups for the current site
public function get_groups() { $qry = ee()->db->where('site_id', ee()->publisher_lib->site_id) ->order_by('group_name', 'asc') ->get('category_groups'); $groups = array(); if ($qry->num_rows()) { foreach ($qry->result() as $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_categories_by_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\n\t\t// start hook\n\t\t$vars = $this->_hook('get_categories_by_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->cha...
[ "0.7119901", "0.6809501", "0.6809501", "0.67347866", "0.67156607", "0.666446", "0.66382635", "0.65982777", "0.6537011", "0.6509248", "0.64859027", "0.64859027", "0.634545", "0.6305408", "0.6305408", "0.6297586", "0.6297586", "0.62926996", "0.625669", "0.6234821", "0.62307227"...
0.71832263
0
Get all groups and categories in each group
public function get_by_group($formatted = FALSE) { $groups = $this->get_groups(); $categories = $this->get_all(); $grouped = array(); foreach ($groups as $group_id => $group) { $grouped[$group_id] = array( 'value' => $group_id, 'la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_categories_by_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\n\t\t// start hook\n\t\t$vars = $this->_hook('get_categories_by_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->cha...
[ "0.7382708", "0.73814744", "0.7122814", "0.7009775", "0.7009775", "0.6850642", "0.68419325", "0.6830812", "0.67784166", "0.67660433", "0.675087", "0.675087", "0.67475903", "0.6679037", "0.6604056", "0.6584548", "0.65528756", "0.65378827", "0.65378827", "0.6508747", "0.6508747...
0.6247995
35
MCP ONLY Get all the translations for a category, and optionally return only a specific lang_id.
public function get_translations($cat_id = FALSE, $group_id = FALSE, $status = PUBLISHER_STATUS_OPEN, $lang_id = FALSE) { if ( !$cat_id) { show_error('$cat_id is required. publisher_category.php->get_translations()'); } if ( !$group_id) { show_error('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTranslationByLanguage();", "public function getLanguages($category_id = NULL, $language_name = NULL)\n {\n global $conn;\n if (!isset($conn))\n {\n $this->connect();\n }\n\n if (is_null($language_name) && is_null($category_id))\n {\n ...
[ "0.687502", "0.6645714", "0.65657455", "0.6527444", "0.63609296", "0.60629493", "0.6013262", "0.5933166", "0.5875027", "0.57991856", "0.57625335", "0.575892", "0.57574594", "0.5754433", "0.5742737", "0.57411486", "0.57222575", "0.5719788", "0.5713194", "0.57118034", "0.570499...
0.71551293
0
Get the categories for the current language
public function get_current($by_group = FALSE) { if ( !ee()->publisher_setting->enabled()) { return array(); } // @todo - cache if(FALSE) { } else if (isset(ee()->session->cache['publisher']['all_categories'])) { if ($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_categories() {\n\t\treturn array( 'listeo' );\n\t}", "public function getCategories();", "public function getCategories();", "public function categories() {\n\t\treturn $this->terms('category');\n\t}", "public function get_categories() {\n\t\treturn $this->terms('category');\n\t}", "p...
[ "0.76523465", "0.7600018", "0.7600018", "0.7546649", "0.75337875", "0.75304896", "0.75304896", "0.75304896", "0.75152665", "0.7503382", "0.74649966", "0.7422397", "0.7393241", "0.7376749", "0.7356804", "0.73505765", "0.73505765", "0.7322605", "0.7317796", "0.7301508", "0.7299...
0.0
-1
Get first category group
public function get_first_group() { return ee()->db->select('MIN(group_id) AS group_id') ->get('category_groups') ->row('group_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFirstCategory() {\r\n\t\treturn $this->newsItem->getFirstCategory()->getTitle();\r\n\t}", "private function _getFirstCategoryLevel()\n\t{\n\t\tif (!$this->_firstCategoryLevel) {\n\t\t\t$this->_firstCategoryLevel = intval($this->getVar('category_first_level', 1));\n\t\t}\n\t\treturn $this->_...
[ "0.6992908", "0.65998644", "0.6392275", "0.6311134", "0.62993157", "0.6292467", "0.6182475", "0.6125688", "0.60287684", "0.60007143", "0.5900196", "0.58980006", "0.5866777", "0.5863748", "0.5858644", "0.58394516", "0.58335835", "0.58314127", "0.58232695", "0.57744443", "0.576...
0.8117068
0
Grab all the custom fields for a category
public function get_custom_fields($group_id = FALSE) { // Default fields $fields = array( // Return the Image field first so we can float it in the view. 'cat_image' => (object) array( 'field_name' => 'cat_image', 'field_label' => 'Image' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllCustomFields()\n\t{\n\t\t$fields = $this->CustomFields->indexBy('field_name');\n\n\t\t$cache_key = \"ChannelFieldGroups/{$this->getId()}/\";\n\t\tif (($field_groups = ee()->session->cache(__CLASS__, $cache_key, FALSE)) == FALSE)\n\t\t{\n\t\t\t$field_groups = $this->FieldGroups;\n\t\t}\n\n\t\t...
[ "0.68171626", "0.66885823", "0.6568583", "0.6500657", "0.64871895", "0.6476785", "0.643758", "0.6403181", "0.6403181", "0.6352187", "0.6352187", "0.63201135", "0.6286337", "0.62459534", "0.6243046", "0.6232388", "0.6188691", "0.61799073", "0.6174262", "0.6167261", "0.6121792"...
0.70938337
0
Save a category and all entered translations
public function save_translation($translation, $status) { // ------------------------------------------- // 'publisher_category_save_start' hook // if (ee()->extensions->active_hook('publisher_category_save_start')) { $translation = ee()->extensions->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lm_save_category() {\n\t@copy(LM_CDATA, LM_CBACKUP);\n\t$id = isset($_POST['category-id']) ? intval($_POST['category-id']) : null;\n\t$cid = isset($_POST['category-cid']) ? intval($_POST['category-cid']) : time();\n\t$arr = array('cid'=>$cid, 'name'=>safe_slash_html($_POST['category-name']));\n\tif (funct...
[ "0.7781562", "0.7128285", "0.70075434", "0.6983991", "0.6893051", "0.6889632", "0.6873338", "0.6818383", "0.66717714", "0.66317505", "0.65260947", "0.6466519", "0.640044", "0.6383923", "0.63679296", "0.63310856", "0.63252336", "0.6300671", "0.6255443", "0.62531996", "0.622221...
0.6135744
25
See if a draft exists for a requested category
public function has_draft($cat_id, $language_id = FALSE) { // Get by current language or a requested one? $language_id = $language_id ?: ee()->publisher_lib->lang_id; $where = array( 'cat_id' => $cat_id, 'publisher_status' => PUBLISHER_STATUS_DRAFT, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None')\n {\n }", "public function cate_exists() {\n\t\t$category_name = trim($this->input->post ( 'category_name' ));\n\n\n\t\t$edit_id = $this->input->post ( 'edit_id' );\n\t\t$where = array ( 'category_name' => trim ( $category_name )...
[ "0.6410271", "0.6308579", "0.62689185", "0.62643653", "0.61226237", "0.61004084", "0.61004084", "0.61004084", "0.60864604", "0.6063833", "0.59904146", "0.5868327", "0.5829884", "0.5709518", "0.57029325", "0.55906355", "0.5565072", "0.5559128", "0.55590665", "0.55541635", "0.5...
0.66792125
0
Search by a translated url_title, and return the default language version of it.
public function get_default_url_title($url_title, $return = 'url_title') { // First see if its a Cat URL Indicator translation if ($seg = $this->_get_default_cat_url_indicator($url_title)) { return $seg; } $cache_key = 'get_default_url_title/cat'. $url_title .'/'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLanguageFromUrl(string $url);", "abstract public function get_language_url($language = null, $url = null);", "function loadContentEnglish($where, $default='') {\n // Sanitize it for security reasons\n $content = filter_input(INPUT_GET, $where, FILTER_SANITIZE_STRING);\n $default = filter_...
[ "0.61352044", "0.60453653", "0.5912318", "0.5887892", "0.58520335", "0.57546294", "0.5693313", "0.56768495", "0.5669532", "0.56693906", "0.563123", "0.55944204", "0.54889673", "0.54722184", "0.5399911", "0.5374761", "0.53701484", "0.5348924", "0.5316287", "0.53082323", "0.528...
0.6164824
0
Search for a default url_title, and return the translated version of it.
public function get_translated_url_title($url_title, $lang_id_from = NULL, $lang_id_to = NULL) { $lang_id_from = $lang_id_from ?: ee()->publisher_lib->prev_lang_id; $lang_id_to = $lang_id_to ?: ee()->publisher_lib->lang_id; // If we're in the middle of a language switch, I don't care wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTitleFromUrl($url, $default = '')\n {\n if (!empty($default)) {\n return $default;\n }\n\n preg_match('/<title>(.+)<\\/title>/', @file_get_contents($url), $matches);\n\n if (empty($matches)) {\n return $url;\n }\n\n return mb_...
[ "0.698318", "0.6873713", "0.6548498", "0.6530517", "0.62364787", "0.6072061", "0.6068971", "0.6061084", "0.5953399", "0.5827173", "0.5798541", "0.57955325", "0.5781925", "0.5777224", "0.57352084", "0.5724192", "0.5709532", "0.5691777", "0.5687567", "0.5687567", "0.5687567", ...
0.54274994
67
Search for the default Cat URL Indicator segment based on the currently translated segment.
private function _get_default_cat_url_indicator($url_title) { foreach (ee()->publisher_model->languages as $lang_id => $language) { if ($language['cat_url_indicator'] == $url_title) { return ee()->publisher_model->languages[ee()->publisher_lib->default_lang_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultURLSegment()\n {\n return $this->generateURLSegment(\n _t(\n 'SilverStripe\\CMS\\Controllers\\CMSMain.NEWPAGE',\n 'New {pagetype}',\n [\n 'pagetype' => $this->i18n_singular_name()\n ]\n ...
[ "0.53501505", "0.5228517", "0.5163586", "0.5127393", "0.5069319", "0.4969884", "0.49285695", "0.48433638", "0.4810713", "0.48093724", "0.4749071", "0.46752492", "0.46630478", "0.4662474", "0.46541166", "0.46516436", "0.46339652", "0.462695", "0.46196583", "0.45948422", "0.457...
0.5442984
0
Search for the translated version of a Cat URL Indicator segment. Takes a segment, and sees if it exists in the languages array. If it does, return the translated version of it from the requested language
private function _get_translated_cat_url_indicator($str, $lang_id_from = NULL, $lang_id_to = NULL) { $from_language = ee()->publisher_model->languages[$lang_id_from]; $to_language = ee()->publisher_model->languages[$lang_id_to]; if ($from_language['cat_url_indicator'] == $str) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function findTranslationId($segment)\n {\n return array_search($segment, (array) $this->trans());\n }", "public function getLanguageFromUrl(string $url);", "public static function translate($input = null, $casing = null, $scan_bundles = false)\r\n\t{\r\n\r\n\t\t// Defaults\r\n\t\tif (strle...
[ "0.5604929", "0.5416463", "0.5253464", "0.49420857", "0.49232253", "0.49037632", "0.49037632", "0.49037632", "0.48873144", "0.4858703", "0.47926423", "0.47646707", "0.47542813", "0.47526997", "0.46980676", "0.46759644", "0.46690223", "0.46371606", "0.46225125", "0.46145132", ...
0.5209089
3
Get the current cateogry reserved category word.
public function get_cat_url_indicator() { if(isset(ee()->publisher_model->current_language['cat_url_indicator']) && ee()->publisher_model->current_language['cat_url_indicator'] != '') { return ee()->publisher_model->current_language['cat_url_indicator']; } re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory()\n {\n return \"Injection Flaws\"; //See category.php for list of all the categories\n }", "public static function getCategory()\n {\n return self::$category;\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "publi...
[ "0.71971595", "0.7196051", "0.70822376", "0.70822376", "0.70822376", "0.7017728", "0.6988207", "0.69708556", "0.69260186", "0.6912472", "0.6896427", "0.68930423", "0.6873917", "0.6863673", "0.684672", "0.68096", "0.6789635", "0.67117554", "0.6699043", "0.66979045", "0.6637381...
0.6634513
22
See if a translation exists for the requested category
public function has_translation($data, $language_id = FALSE) { return TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function category_exists() {\n\t\t$users_name = trim($this->input->post ( 'category_name' ));\n\n\t\t$where = array ('category_name' => trim ( $users_name ));\n\t\t\n\t\t$result = $this->Mydb->get_record ( 'category_id', $this->table, $where );\n\t\tif (! empty ( $result )) {\n\t\t\t$this->form_validation->...
[ "0.6547997", "0.6489683", "0.64836377", "0.64222354", "0.6324979", "0.6221469", "0.6196649", "0.61543757", "0.6046865", "0.6046182", "0.6012702", "0.59357196", "0.5923772", "0.5906664", "0.58937204", "0.58692455", "0.5863791", "0.58507186", "0.58064294", "0.5799449", "0.57878...
0.6255262
5
After installation migrate all existing data to the Publisher tables
public function migrate_data($entry_ids = array(), $where = array(), $delete_old = FALSE) { // Delete old rows. delete() resets the where(), so reset them. if ($delete_old && !empty($where) && !empty($entry_ids)) { ee()->db->where_in('entry_id', $entry_ids) ->dele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function migrate_db() {\r\n \r\n // $migrater->create_migrations_table();\r\n // $migrater->build_schema();\r\n }", "public function migrate() {}", "public function migrateDb();", "public function migrate()\n\t{ \n\t\t(new MigratorInterface)->migrate();\n\t}", "public function migra...
[ "0.7127602", "0.67704934", "0.67459655", "0.6691139", "0.66507757", "0.66355306", "0.6624413", "0.6605965", "0.6597763", "0.6481162", "0.64573586", "0.6447139", "0.6413748", "0.6400397", "0.6264884", "0.6250992", "0.62434053", "0.62201613", "0.6197998", "0.61958283", "0.61751...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "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() { // }
{ "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) { $id_news_reply = 0; if (empty($request->content)) { $id_news_reply = DB::table('news_replies')-> insertGetId(array( 'id_news' => $request->id_news, 'id_user' => $request->id_user, 'title' => $request...
{ "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.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.63416...
0.0
-1
Display the specified resource.
public function show(NewsReplie $newsReplie) { // }
{ "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(NewsReplie $newsReplie) { // }
{ "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, NewsReplie $newsReplie) { // }
{ "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(NewsReplie $newsReplie) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853"...
0.0
-1
Run the database seeds.
public function run() { // $elementosListas = [ [ 'nombre' => "Cedula Ciudadania", 'elemento_lista_id' => "CC", 'tipo_lista_id' => "TI" ], [ 'nombre' => "Tarjeta Identidad", 'elemento_lista_id' => "TID", ...
{ "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
escape function for raw output
function escape ($val, $charset = 'UTF-8') { return htmlspecialchars ($val, ENT_QUOTES, $charset); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function quote_escaped()\n {\n }", "public static function escape($value) {}", "public static function escape($som) {}", "public function escape($value);", "public function escape($value);", "abstract protected function _escape($s);", "public function escape($text);", "public ...
[ "0.7332233", "0.7320718", "0.722189", "0.72135085", "0.72135085", "0.71891326", "0.7147687", "0.7128982", "0.71140856", "0.7081674", "0.6987865", "0.6987865", "0.6857306", "0.68418974", "0.68311906", "0.67990595", "0.6778695", "0.6777687", "0.67619854", "0.6748499", "0.674391...
0.61884874
65
function to render the template
function template ($file, $data) { extract ($data); require ($file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderTemplate();", "protected function render_template()\n {\n }", "protected function render_template()\n {\n }", "protected function render_template()\n {\n }", "protected function render_template()\n {\n }", "public function rend...
[ "0.9134647", "0.88696486", "0.8867497", "0.8867497", "0.8867497", "0.79228926", "0.789643", "0.7788052", "0.77876306", "0.77876306", "0.77584356", "0.77584356", "0.770545", "0.76896447", "0.76896447", "0.76896447", "0.76896447", "0.76896447", "0.76896447", "0.76896447", "0.76...
0.0
-1
Login page If the user didn't supply the right login info, show them to a login form. Also, display $message to them in the form of an error.
function printLoginPage($message = null) { require_once("pageTop.php"); echo ' <title>voipSMS: Login</title> </head> <body class="text-center">'; include_once('header.php'); // Login form echo ' <form class="container py-2 my-2 rounded" action="login.php" method="POST"> <h1 class="h3 font-weight-normal"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function login_form($message=''){\n\n $templateData = array(\n 'page' => 'login',\n 'page_title' => 'Login'\n );\n\n $this->template->load('template', 'login_screen', $templateData);\n\n }", "public function login()\n {\n if(isset($_SESS...
[ "0.7471234", "0.7200397", "0.7130963", "0.70469415", "0.69884235", "0.69494724", "0.69230264", "0.6865112", "0.6861763", "0.6852303", "0.6802287", "0.6781478", "0.6698171", "0.66771", "0.66744596", "0.6666361", "0.66572887", "0.66539264", "0.6651607", "0.6644794", "0.66274804...
0.6910822
7
Attempt to login the user
function loginUser() { session_start(); require_once("sql/dbQueries.php"); // Fetching user data from login data $userData = getUserFromLogin($_POST['vms_email'], $_POST['userPassword']); if($userData == False) { printLoginPage("The login information supplied is not valid."); return; } else { // Saving th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function attemptLogin($user){\n\n }", "public function p_login() {\n\n\t\t# Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks)\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\n\t\t# Hash submitted password so we can compare it against one in the db\n\t\t$_P...
[ "0.8041084", "0.77819216", "0.7772398", "0.77598476", "0.77309424", "0.77141815", "0.7709712", "0.7697268", "0.7628049", "0.76142603", "0.76135373", "0.76091796", "0.7588018", "0.7561892", "0.7548732", "0.7545111", "0.7526027", "0.7510918", "0.749527", "0.7487664", "0.7478204...
0.0
-1
Creates a HTTP client instance.
private static function createClient(array $configs) { return new Client($configs['api_key'], $configs['endpoint']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createHttpClient()\n {\n $stack = HandlerStack::create();\n\n $middleware = new Oauth1([\n 'consumer_key' => $this->consumerKey,\n 'consumer_secret' => $this->consumerSecret,\n 'token' => $this->token,\n 'token_secret' ...
[ "0.78919286", "0.75736254", "0.75091976", "0.74694526", "0.7462994", "0.7448011", "0.74359226", "0.7368756", "0.7222828", "0.71914047", "0.7151726", "0.71417373", "0.7137571", "0.71261", "0.7101699", "0.71003145", "0.70142365", "0.6986139", "0.69821954", "0.6976581", "0.69392...
0.0
-1
Create an Application instance.
private static function createApplication(array $application) { return new Application( $application['root_directory'], isset($application['version']) ? $application['version'] : '', isset($application['context']) ? $application['context'] : array() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createApplication(): Application\n {\n return new Application;\n }", "public function createApplication()\n {\n return $this->app = new Application(__DIR__);\n }", "public function createApplication()\n {\n $app = new Application(\n $_ENV['APP_BASE...
[ "0.8838951", "0.8393173", "0.83666795", "0.8065296", "0.8020398", "0.7998664", "0.7920922", "0.79152054", "0.7831785", "0.77648735", "0.75002044", "0.7455812", "0.73494726", "0.72766393", "0.7267437", "0.72483045", "0.72132975", "0.7177787", "0.716703", "0.71284527", "0.71151...
0.7370816
12
Encerrar a sess?o do usu?rio e redirecionar para a p?gina de login
public function logout() { $session_key = $this->getSessionKey(); if ($this->Session->valid() && $this->Session->check($session_key)) { $ses = $this->Session->read($session_key); if (!empty($ses) && is_array($ses)) { $this->Session->delete($ses...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verificar_login()\n {\n if (!isset($_SESSION['usuario'])) {\n $this->sign_out();\n }\n }", "function usuario_autenticado() {\n\n if (!revisar_usuario()) {\n header('Location:login.php?user=paciente');\n exit();\n }\n}", "public function loginUsuario($...
[ "0.67499024", "0.66614926", "0.65676844", "0.65343386", "0.65327966", "0.65325856", "0.652679", "0.64687973", "0.64659995", "0.6440434", "0.64241284", "0.64235526", "0.64089704", "0.63879555", "0.6358569", "0.63473326", "0.63448554", "0.6338781", "0.6335519", "0.6323981", "0....
0.0
-1
Efetua a instancia??o da classe Model
public function _instanciar_model() { $Model = ClassRegistry::init('Autenticacao.' . $this->config['model_usuario']); return $Model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this ->model = $this ->makeModel($this ->model());\n }", "function __construct () {\n\t\t$this->_model = new Model();\n\t}", "public function model() {\n require_once \"../app/models/model.php\";\n $this->model = new Model($this->db);\n }", "...
[ "0.80193174", "0.8005423", "0.7882268", "0.7790446", "0.7694262", "0.76793605", "0.76793605", "0.76712567", "0.75983024", "0.75983024", "0.75803226", "0.7571385", "0.75544435", "0.7550826", "0.754674", "0.75459206", "0.7541064", "0.7541064", "0.7541064", "0.7541064", "0.75375...
0.71847
51
Atualiza os dados de sess?o do usu?rio logado
public function _atualiza_usuario_sessao($row) { $session_key = $this->config['prefixo_sessao'] . '.' . $this->config['hashkey'] . '.' . $this->config['model_usuario']; $ses = $this->Session->read($session_key); $row = $row["{$this->config['model_usuario']}"]; $ses = arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveUsuario(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_usuario SET usuario = \"%s\" password = \"%s\" WHERE usuario_id = %d',\n $this->usuario,\n $this->password,\n $this->codigo);\n ...
[ "0.7282858", "0.671208", "0.65712005", "0.6548097", "0.6518177", "0.6453015", "0.6430746", "0.64189696", "0.63864267", "0.6355001", "0.63537407", "0.63127524", "0.6289298", "0.6287329", "0.6285953", "0.62531877", "0.62486", "0.62477535", "0.6234281", "0.62164235", "0.6203251"...
0.6621825
2
Retorna o hash de $str de acordo com o algortimo definido na configura??o
public function _hash($str) { switch ($this->config['algoritmo_criptografia']) { case 'sha1': return ($str == '') ? '' : sha1($str); break; case 'crypt': return crypt($str); break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function hash($str)\n\t{\n\t\treturn hash($this->config['hash_method'], $str);\n\t}", "public function hash($str)\n\t{\n\t\treturn hash($this->_config['hash_method'], $str);\n\t}", "function getHash($str)\n{\n\treturn hash('sha256', $str);\n}", "public function hash($str)\n\t{\n\t\t// on some serve...
[ "0.71996737", "0.7061308", "0.6919904", "0.67925525", "0.6655747", "0.65481097", "0.6514853", "0.64912003", "0.6231753", "0.62079966", "0.6176047", "0.61236596", "0.6118815", "0.60848767", "0.6081343", "0.6071801", "0.6018405", "0.59719974", "0.59462076", "0.59116787", "0.590...
0.7244635
0
Passa dos dados do componente para a view para ser usada pelo helper
public function _dados_para_view() { $data = get_object_vars($this); unset($data['controller']); unset($data['components']); unset($data['Session']); unset($data['RequestHandler']); $this->controller->set('seguranca_data', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function componente()\n {\n $logoEmpresa = DB::table('empresas')\n ->select('logo_empresa', 'nombre_corto')\n ->get();\n return view('/cliente/nuevaCita', ['logoEmpresa' => $logoEmpresa]);\n }", "public function Parametros_Equipos_C(){\n\t\treturn view('Administra...
[ "0.64018166", "0.6277896", "0.61775315", "0.6136609", "0.61081576", "0.59985346", "0.59883815", "0.5897379", "0.58642536", "0.5805795", "0.57831776", "0.5771163", "0.5744384", "0.57136357", "0.5704334", "0.5697538", "0.5683776", "0.56585383", "0.56460506", "0.56453615", "0.56...
0.60554636
5
Passa as configura??es do componente para a view para ser usada pelo helper
public function _config_para_view() { $this->controller->set('ControleAcessoConfig', $this->config); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getViewComponent();", "public function actionConfig()\r\n\t{\r\n $this->layout = 'table_scroller';\r\n $model = new UserRrhh;\r\n\r\n $this->render('config',array(\r\n 'model'=>$model\r\n ));\r\n\t}", "public function configuracion()\n {\n $usuar...
[ "0.6310901", "0.6207613", "0.60912395", "0.60407805", "0.600658", "0.59511584", "0.5931364", "0.5891508", "0.5820077", "0.58165723", "0.58055013", "0.5796077", "0.5765872", "0.57508284", "0.57245326", "0.5723973", "0.5722933", "0.568104", "0.5664576", "0.56618834", "0.5643895...
0.61629796
2
Trata as rotas prefixadas do cake
public function _tratar_rotas_prefixadas($controller, $action) { $routing_prefixes = Configure::read('Routing.prefixes'); //Existe prefixos if (!empty($routing_prefixes)) { //Verifica para cada prefixo se a action come?a por ele foreach ($routing_prefi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prefixKey($prefix);", "public function getPrefix() {}", "public function setPrefix() {\n\t}", "public function test_insertPrefix()\n\t{\n\t}", "public function test_updatePrefix()\n\t{\n\t}", "abstract protected function prefixName($name);", "abstract protected function prefixName($name...
[ "0.6350855", "0.627416", "0.62089014", "0.61696035", "0.61504", "0.6112454", "0.6112454", "0.6103464", "0.60672075", "0.6065091", "0.6062989", "0.60589224", "0.60589224", "0.60018784", "0.597183", "0.5880728", "0.5869474", "0.57809645", "0.57745206", "0.57655174", "0.57380486...
0.6194791
3
Informa se $page ? a p?gina atual
public function _eh_pagina_atual($page) { if ($page == "") { return false; } App::import('Core', 'Inflector'); $controller = strtolower(Inflector::underscore($this->controller->name)); $action = strtolower($this->controller->action); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function page(int $page) {\n $matches = $this->_model->getPageInfos($page);\n if ($matches) {\n $total = $this->_model->getNbrPictures();\n if ($total === -1) {\n $prevpage = false;\n $nextpage = false;\n $this->render(\"Genera...
[ "0.74521303", "0.7036258", "0.7021914", "0.6851767", "0.6776831", "0.6775344", "0.6749771", "0.6741889", "0.6513543", "0.65113264", "0.65113264", "0.6486096", "0.6456228", "0.643402", "0.6428776", "0.6426694", "0.64214206", "0.6414553", "0.63872814", "0.6385145", "0.6384978",...
0.60244346
68
Informa se as restri??es definidas possuem alguma dos prefixos
public function restricoes_possuem_rotas_prefixadas() { $routes = Configure::read('Routing.prefixes'); foreach ($this->restricoes as $restriction) { if (in_array($restriction, $routes)) { return true; } } return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPrefixes();", "public function getPrefix() {}", "abstract public function getPrefix(): string;", "public function getPrefix();", "public function getPrefix();", "function rest_get_url_prefix()\n {\n }", "function getPrefixes() {\n return array(\"from\" => \"froms\", \"subject\"...
[ "0.70628846", "0.7056692", "0.69820374", "0.69389015", "0.69389015", "0.69381607", "0.6771489", "0.67323786", "0.67189294", "0.66852945", "0.664125", "0.65949154", "0.65881336", "0.6540308", "0.65234166", "0.6521488", "0.6470314", "0.64640635", "0.6428032", "0.64152956", "0.6...
0.7110509
0
Verifica se a a??o atual possui alguns dos prefixos configurados
public function eh_rota_prefixada() { $routes = Configure::read('Routing.prefixes'); if (count($routes)) { $a = $this->controller->action; foreach ($routes as $route) { $strpos = strpos($a, $route . '_'); if ($strpos === 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _prefix($prefix = 'admin') {\n\t\tif (isset($this->params['prefix']) && $this->params['prefix'] == $prefix) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function hasPrefix()\n\t{\n\t\treturn $this->prefix !== null;\n\t}", "public function testGetPrefix(): void\n {\n $alias ...
[ "0.7624216", "0.68902284", "0.6775881", "0.657002", "0.6561076", "0.6547678", "0.6493175", "0.6419347", "0.635548", "0.63531095", "0.63486814", "0.6325512", "0.62164026", "0.62093496", "0.6204222", "0.6151084", "0.6125214", "0.6122928", "0.6119998", "0.60728985", "0.60599166"...
0.6863991
2
Create or retrieve a service instance based on requested type
public static function getServiceLayer($type, $mode = '') { $type = $type . $mode; if (!isset(self::$services[$type])) { throw new ServiceNotFoundException('Service of type "' . $type . '" not found'); } elseif (is_callable(self::$services[$type])) { $service = self:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getServiceInstance()\n {\n $s = self::getServiceType();\n switch ($s) {\n case 0:\n http_response_code(404);\n exit();\n case 1:\n return new RCFaxClient();\n break;\n case 2:\n ...
[ "0.6992154", "0.664597", "0.60909927", "0.60727274", "0.6068896", "0.60342455", "0.6007003", "0.6006743", "0.6004208", "0.59864926", "0.5977827", "0.5974282", "0.5972596", "0.59707654", "0.58591837", "0.5832644", "0.571881", "0.5714859", "0.5704318", "0.5673764", "0.5660704",...
0.5858806
15
Set the service layer instance for the given type
public static function setServiceLayer($type, $service, $mode = '') { $type = $type . $mode; self::$services[$type] = $service; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setService(){\n if($this->getRecord()->getRecordType() === \"yt\"){\n $this->service = new YoutubeService();\n }\n if($this->getRecord()->getRecordType() === \"gm\"){\n $this->service = new GoogleMapService();\n }\n }", "public function setClas...
[ "0.6481874", "0.6216244", "0.6152679", "0.57389146", "0.56784296", "0.56774443", "0.56186455", "0.56133044", "0.5586003", "0.55498165", "0.5509799", "0.5507854", "0.550776", "0.54718435", "0.54533345", "0.5452731", "0.5450716", "0.5442827", "0.5442827", "0.5437661", "0.54244"...
0.68155515
0
Create an new DAO model based on requested model type
public static function getDao($model, $options = []) { if (!isset(self::$instances[$model])) { $dao = substr_replace($model, '\\Dao\\', strrpos($model, '\\'), 1); $instance = new $dao($options); $instance->setModelName($model); self::$instances[$model] = $in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function createModel($type)\n {\n $className = 'app'.d_S.'models'.d_S.ucfirst($type).\"Model\";\n if($className!=NULL)\n {\n return new $className($type);\n }\n else\n {\n echo \"$className Not Found!\";\n }\n }", "public ...
[ "0.70645475", "0.6865346", "0.6845526", "0.6450564", "0.6404483", "0.6363523", "0.6342498", "0.62740594", "0.62740594", "0.62611127", "0.6224647", "0.6217143", "0.6192727", "0.6181056", "0.6127018", "0.61152554", "0.60786146", "0.6075744", "0.6073326", "0.6042072", "0.6028411...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "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() { // }
{ "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) { // }
{ "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(StatusOrder $statusOrder) { // }
{ "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(StatusOrder $statusOrder) { // }
{ "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, StatusOrder $statusOrder) { DB::beginTransaction(); try { $statusOrder->order_id = $request->order_id; $statusOrder->process_order_id = $request->process_order_id; $statusOrder->update(); // DB::table('user_stat...
{ "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(StatusOrder $statusOrder) { // }
{ "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
restsearchservice.php longdesc LICENSE: This source file is subject to version 4.0 of the Creative Commons license that is available through the worldwideweb at the following URI:
function sigorigval($origval,$origerr,$numplaces){ //Math from Noah McLean at MIT $x=round($origval*pow(10,(($numplaces-1)-floor(log10(2*$origerr))))) * pow(10,((floor(log10(2*$origerr))))-($numplaces-1)); return($x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function rest_search() {\n\t\t// return json elements here\n\t}", "public function search() {\r\n\t\t$mintURL = $this->Configuration->findByName('Mint URL');\r\n\t\t$queryURL = $mintURL['Configuration']['value'];\r\n\t\t$query = '';\r\n\t\tif (isset($this->params['url']['query'])) {\r\n\t\t\t$query = $th...
[ "0.7561279", "0.67975795", "0.664306", "0.65720814", "0.6391867", "0.63458365", "0.6212787", "0.62100136", "0.6183537", "0.61503804", "0.6137931", "0.61332023", "0.61228967", "0.61128926", "0.6091", "0.6075503", "0.60692763", "0.6060482", "0.6054722", "0.6052283", "0.60426337...
0.0
-1
Math from Noah McLean at MIT
function sigerrval($origerr,$numplaces){ $x=round(2*$origerr*(pow(10,(($numplaces-1)-floor(log10(2*$origerr)))))) * pow(10,(floor(log10(2*$origerr)))-($numplaces-1)); return($x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tinhchuvihinhtron($r){\n $bk = 3.14 * 2 * $r;\n return $bk;\n}", "function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}", "function evclid($name1, $name2, $film1, $film2, $t)\n{\n $res = sqrt( \n\tpow($t->$name1->$film1 - $t->$name2->$film1,2 )\n\t+ pow ($t->$name1->...
[ "0.6490454", "0.6201972", "0.6160381", "0.6133771", "0.60785586", "0.6018784", "0.6006412", "0.59337264", "0.59232515", "0.59186137", "0.5848588", "0.58387154", "0.5792689", "0.5772175", "0.5746004", "0.5744475", "0.5688037", "0.5672046", "0.5667053", "0.5666641", "0.5665748"...
0.0
-1
Math from Noah McLean at MIT
function sigaloneval($origerr,$numplaces){ $x=round($origerr*(pow(10,(($numplaces-1)-floor(log10($origerr)))))) * pow(10,(floor(log10($origerr)))-($numplaces-1)); return($x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tinhchuvihinhtron($r){\n $bk = 3.14 * 2 * $r;\n return $bk;\n}", "function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}", "function evclid($name1, $name2, $film1, $film2, $t)\n{\n $res = sqrt( \n\tpow($t->$name1->$film1 - $t->$name2->$film1,2 )\n\t+ pow ($t->$name1->...
[ "0.6490454", "0.6201972", "0.6160381", "0.6133771", "0.60785586", "0.6018784", "0.6006412", "0.59337264", "0.59232515", "0.59186137", "0.5848588", "0.58387154", "0.5792689", "0.5772175", "0.5746004", "0.5744475", "0.5688037", "0.5672046", "0.5667053", "0.5666641", "0.5665748"...
0.0
-1
Complete the password grant
public function completeFlow() { $app = app(); // Get the required params $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); if (is_null($clientId)) { throw new Exception\InvalidRequestException('client_id'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function grant() {\r\n\t\t\r\n\t\t$this->OAuth2->handleGrantRequest();\r\n\t\t\r\n\t}", "public function setpassword(){\n\t\t$args = $this->getArgs();\n\t\t$out = $this->getModel()->getUserDataByRenewToken(UserController::getRenewTokenHash($args[\"GET\"][\"token\"]));\n\t\tinclude 'gui/template/UserTempla...
[ "0.6438145", "0.64218736", "0.62794644", "0.60153645", "0.59932023", "0.5979064", "0.5963596", "0.59288883", "0.58523136", "0.58102155", "0.58082896", "0.58004934", "0.57927346", "0.57895255", "0.5770633", "0.5758352", "0.5735433", "0.5727354", "0.572296", "0.5637568", "0.563...
0.0
-1
Construct new TypeSpec from binary data.
public function __construct(DataStream $data) { $this->type = $data->readShort(); switch ($this->type) { case self::CUSTOM: $this->customTypename = $data->readString(); break; case self::COLLECTION_LIST: case self::COLLECTION_SET: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_from_binary_data($data);", "public static function createFromBuffer($raw_binary_data, $name = null)\n {\n // TODO: Convert to \"is_buffer\" or \"is_binary\" once available (PHP 6)\n if (!is_string($raw_binary_data)) {\n throw new InvalidArgumentException('Expect...
[ "0.63814074", "0.5564252", "0.5224507", "0.5201576", "0.50803155", "0.5019443", "0.4960203", "0.4960203", "0.48229623", "0.48113853", "0.47528282", "0.4749227", "0.47139454", "0.4708914", "0.46942207", "0.45897645", "0.4503111", "0.4495447", "0.44623482", "0.44459543", "0.441...
0.5771705
1
Get binary representation for type.
public function getType() { return $this->type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBinary()\n {\n return $this->get(self::_BINARY);\n }", "public function getBinary();", "function getBinaryType() {return $this->_binarytype;}", "public function encode(AbstractType $type): string;", "public function getRawType(): string\n {\n return $this->rawTy...
[ "0.71028745", "0.69462323", "0.6941539", "0.6628479", "0.6428427", "0.6384725", "0.63289857", "0.629773", "0.62261975", "0.6174196", "0.6139619", "0.6031414", "0.599707", "0.59877485", "0.58817524", "0.587844", "0.5865317", "0.5830405", "0.5829734", "0.5820817", "0.5819362", ...
0.0
-1
Get key type (applies for maps).
public function getKeyType() { return $this->keyType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_key_type() {\n return 0;\n }", "public function getKeyType();", "public function keyType(): ?string;", "public function getKeyType(): string\n {\n return 'string';\n }", "public function getKeyType()\n {\n return 'string';\n }", "public function getKeyTyp...
[ "0.81791925", "0.7667091", "0.7639854", "0.71320474", "0.6989893", "0.6989893", "0.6989893", "0.67017", "0.6682409", "0.66455775", "0.6620695", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.655...
0.81701165
1
Get value type (applies for collections).
public function getValueType() { return $this->valueType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getType()\n {\n return $this->_value->getType();\n }", "public function getValueType();", "protected static function getType($value) {\n\t\t\tif ($value === NULL) {\n\t\t\t\t$result = 'NULL';\n\t\t\t} elseif (is_array($value)) {\n\t\t\t\t$result = 'array';\n\t\t\t} elseif (is_scala...
[ "0.82146835", "0.79093343", "0.7845173", "0.7620993", "0.75549376", "0.747043", "0.7385503", "0.7340929", "0.73177654", "0.7292176", "0.7279202", "0.718916", "0.7186143", "0.71443343", "0.708916", "0.7086009", "0.7060031", "0.7060031", "0.7060031", "0.7060031", "0.7060031", ...
0.7833288
3
Get textual representation of type, as used in CQL.
public function __toString() { switch ($this->type) { case self::COLLECTION_LIST: $valueType = (string) $this->valueType; return "list<$valueType>"; case self::COLLECTION_SET: $valueType = (string) $this->valueType; retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function typeAsString()\n {\n switch ($this->_type) {\n case self::TYPE_INTEGER:\n $str = 'INTEGER';\n break;\n\n case self::TYPE_FLOAT:\n $str = 'FLOAT';\n break;\n\n case self::TYPE_VARCHAR:\n ...
[ "0.7935685", "0.7934859", "0.7860343", "0.78304315", "0.74473387", "0.7297825", "0.72775054", "0.72467786", "0.72267425", "0.72267425", "0.72253203", "0.719396", "0.719396", "0.719396", "0.7131777", "0.7112696", "0.71093065", "0.70767015", "0.70767015", "0.7065634", "0.702674...
0.6704878
73
Run the database seeds.
public function run() { // $site_us = new Locale_site(); // $site_us->id = 1; // $site_us->locale = 'en'; // $site_us->guid_title = 'Rock climbing In Georgia'; // $site_us->guid_description = 'Rock climbing in Georgia is a developing sport, but the country h...
{ "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
Get the login form
public function getLoginForm() { if (is_null($this->_form)) { $this->_form = new \Foundation\Form; $this->_form->setCSRFToken($this->_controller->getCSRFToken()); $this->_form->setAction($this->_controller->path("login")); $field = $this->_form->newField(); $field->setLegend('Select ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLoginForm();", "public function getFormLoginPage();", "public function get_login_form() {\n $this->do_login_form();\n return $this->c_arr_login_form;\n }", "public function getLoginForm() {\n\t\tif($this->loginForm) return $this->loginForm;\n\t\t//si no entonces se inicializa y se r...
[ "0.90570664", "0.8379977", "0.8372617", "0.8151223", "0.8061772", "0.8061772", "0.8039768", "0.7965553", "0.7800659", "0.77562165", "0.77459735", "0.7674884", "0.7662959", "0.76601464", "0.7624714", "0.759607", "0.7593487", "0.7530753", "0.7530694", "0.7513565", "0.748988", ...
0.77045846
11
User Account Info Page [logged in?]
public function info() { $data = array(); if ($this->user->is_logged_in()) { $this->user->get_user($this->user->getMyId()); $data['user'] = $this->user; } $this->load->view('account/account_info', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loggedin() {\n $this->checkAccess('user',false,false);\n\n $template = new Template;\n $user = new User($this->db);\n\n //get user details\n $user->getByEmail($this->f3->get('SESSION.email'));\n $this->f3->set('user', $user);\n\n //get user followers\n ...
[ "0.73454934", "0.71608096", "0.7129549", "0.71237254", "0.69842905", "0.696578", "0.6953128", "0.6926733", "0.687448", "0.67931473", "0.675132", "0.6699616", "0.6661584", "0.6658045", "0.6650993", "0.66439354", "0.6643903", "0.66413444", "0.66325027", "0.66321415", "0.6631127...
0.78777677
0
Displays the current progress and Steps done/ to be done.
public function progress() { $data = array(); if (!$this->user->is_logged_in()) { redirect("/account/info"); } $this->user->get_user($this->user->getMyId()); $data['user'] = $this->user; $data['current'] = str_replace('overview', 'play', $this->user->get_next...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function showProgress()\n {\n $allQuestions = $this->questionRepository->list(['id', 'question']);\n $this->transformProgressList($allQuestions);\n\n $this->console->info( ' ************ Your progress is ************');\n\n foreach ($this->progress as $option) {\n ...
[ "0.75575596", "0.7044762", "0.6753969", "0.64469326", "0.64225984", "0.640198", "0.63812846", "0.6318462", "0.6296183", "0.6282982", "0.62557954", "0.62289554", "0.61976266", "0.61645347", "0.61196804", "0.61053854", "0.60718536", "0.60505325", "0.6045323", "0.60347486", "0.5...
0.70732975
1
User Picks an Avatar Separately now
public function avatar() { $data = array(); if (!$this->user->is_logged_in()) { redirect("/account/info"); } $this->user->get_user($this->user->getMyId()); $data['user'] = $this->user; $this->load->helper('form'); $this->load->library('form_validatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionAvatar()\n {\n $players=Player::find()->active()->all();\n foreach($players as $player)\n {\n $robohash=new \\app\\models\\Robohash($player->profile->id,'set1');\n $image=$robohash->generate_image();\n if(get_resource_type($image)=== 'gd')\...
[ "0.70023024", "0.688273", "0.6747269", "0.6501792", "0.64527416", "0.63555056", "0.6314505", "0.6301981", "0.62796444", "0.6186766", "0.6168689", "0.6125713", "0.6122509", "0.61195284", "0.61110526", "0.610642", "0.6095513", "0.60889924", "0.60870713", "0.608177", "0.6077544"...
0.6639116
3
User Picks an Avatar Separately now
public function profile_complete() { $data = array(); if (!$this->user->is_logged_in()) { redirect("/account/info"); } $this->user->get_user($this->user->getMyId()); $data['user'] = $this->user; $this->load->view('account/profile_complete', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionAvatar()\n {\n $players=Player::find()->active()->all();\n foreach($players as $player)\n {\n $robohash=new \\app\\models\\Robohash($player->profile->id,'set1');\n $image=$robohash->generate_image();\n if(get_resource_type($image)=== 'gd')\...
[ "0.70023024", "0.688273", "0.6747269", "0.6639116", "0.6501792", "0.64527416", "0.63555056", "0.6314505", "0.6301981", "0.62796444", "0.6186766", "0.6168689", "0.6125713", "0.6122509", "0.61195284", "0.61110526", "0.610642", "0.6095513", "0.60889924", "0.60870713", "0.608177"...
0.0
-1
Interested page allows users to sign up to be contacted
public function interested() { if ($this->user->is_logged_in()) { $this->session->set_flashdata('login', 'already_logged_in'); redirect('account/'); } $this->load->helper('form'); $this->load->library('form_validation'); $this->form_validation->set_error_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _signUpPageRequested()\n {\n $this->utility->redirect('signup');\n }", "public function onSignUp()\n {\n $data = post();\n $data['requires_confirmation'] = $this->requiresConfirmation;\n\n if (app(SignUpHandler::class)->handle($data, ...
[ "0.7082398", "0.68792564", "0.6831655", "0.68097335", "0.665257", "0.6623255", "0.6605127", "0.65552413", "0.6510237", "0.64957774", "0.6473126", "0.6436043", "0.638036", "0.63757384", "0.6365833", "0.63474023", "0.6334867", "0.6302438", "0.629012", "0.6289079", "0.6278242", ...
0.6173542
31
Forcably logged out due to idleness
public function timeout() { $this->user->logout(); $this->session->sess_create(); $this->session->set_flashdata('logged_out', 'logged_out'); redirect('', 'refresh'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logoff() {}", "public function logoff() {}", "public function logoff() {}", "public function logoff();", "function logOutOnTimeout() {\n\t\tglobal $POSHWEBROOT;\n\t\t\n\t\tLogger::logAction(Logger::LOGOUT_ACTION, array('msg'=>'session was too old'));\n\t\t\n\t\tsession_destroy();\n \tses...
[ "0.71865857", "0.7186461", "0.7185969", "0.7050248", "0.7033858", "0.6855602", "0.68308175", "0.68216264", "0.6801203", "0.6768715", "0.6603127", "0.65940446", "0.65900296", "0.65101", "0.6460797", "0.6432696", "0.64112425", "0.63645446", "0.63523585", "0.6319613", "0.6319116...
0.6418147
16
Validation function for Zip Code
public function _validate_zipcode($zip) { $state = $this->user->get_state_from_zip($zip); if ($state != '') { return true; } $this->form_validation->set_message('_validate_zipcode', i18n('zipcode_not_found')); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateUSAZip($zip_code)\n\t\t\t{\n\t \t\tif(preg_match(\"/^([0-9]{5})(-[0-9]{4})?$/i\",$zip_code))\n\t \t\t\treturn true;\n\t \t\telse\n\t \t\t\t return false;\n\t\t\t}", "function is_zip ($zipcode = \"\")\r\n \t{\r\n \t\tif(empty($zipcode))\r\n \t\t{\r\n \t\tretur...
[ "0.7933685", "0.78354853", "0.7706438", "0.76262736", "0.75493795", "0.7174282", "0.70434016", "0.6973166", "0.68261147", "0.669255", "0.6688768", "0.6684849", "0.6601482", "0.6594676", "0.6544151", "0.65030885", "0.6493323", "0.6465881", "0.6451635", "0.6444327", "0.64317554...
0.74683386
5
Validation function for IP addresses NOTE: Currently Disabled!!
public function _validate_ip_address($value, $field) { return true; $ip = $this->input->ip_address(); if ($this->input->valid_ip($ip)) { return $this->user->is_unique_ip($ip); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validIpDataProvider() {}", "function f_validateIP($ip)\r\n{\r\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) {\r\n return false;\r\n }\r\n return true;\r\n}", "function isValidIP($ip_addr){\n ...
[ "0.8327009", "0.7958213", "0.7889945", "0.7873872", "0.78446645", "0.7762244", "0.7722794", "0.7699491", "0.7677301", "0.7654686", "0.7635507", "0.76251787", "0.7584109", "0.7502457", "0.7458022", "0.74509156", "0.74391925", "0.74285203", "0.742537", "0.734235", "0.7318938", ...
0.6799297
41
FIXME: remove before go Live
public function restart() { if ($this->user->is_logged_in()) { $this->user->restart_player(); } redirect("/account/info"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __() {\n }", "public function helper()\n\t{\n\t\n\t}", "private function _i() {\n }", "private function public_hooks()\n\t{\n\t}", "private function init()\n\t{\n\t\treturn;\n\t}", "private function __construct()\t{}", "final function velcom(){\n }", "final privat...
[ "0.60248435", "0.5887128", "0.5711608", "0.5708151", "0.5703574", "0.56949675", "0.5674075", "0.56648934", "0.5649609", "0.56222856", "0.5600922", "0.5586279", "0.55619925", "0.55205923", "0.55205923", "0.55205923", "0.55205923", "0.5520481", "0.55201346", "0.55201346", "0.55...
0.0
-1