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
Remove the specified resource from storage.
public function destroy(Request $request, $id) { $country = Country::findOrFail($id); $country->delete(); $request->session()->flash('danger', 'Country deleted from the database.'); return redirect()->route('admin.countries.index'); }
{ "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
indicates ASC or DESC
public function getSort() { return $this->sort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function publisher_getOrderBy($sort)\r\n{\r\n if ($sort == \"datesub\") {\r\n return \"DESC\";\r\n } else if ($sort == \"counter\") {\r\n return \"DESC\";\r\n } else if ($sort == \"weight\") {\r\n return \"ASC\";\r\n }\r\n}", "public function getSortOrder();", "public function ...
[ "0.70766985", "0.7051552", "0.7051552", "0.7051552", "0.6900853", "0.6900486", "0.6810814", "0.6762881", "0.6760198", "0.67590964", "0.67122966", "0.654588", "0.6534121", "0.6499739", "0.6495423", "0.6465736", "0.64362425", "0.6406368", "0.64058876", "0.6404613", "0.6396132",...
0.0
-1
Run the database seeds.
public function run() { DB::table('categories')->insert([ 'cat_name' => 'DSLR', ]); DB::table('categories')->insert([ 'cat_name' => 'Mirrorless', ]); DB::table('categories')->insert([ 'cat_name' => 'Lenses', ]); DB::table('categories')->insert([ 'cat_name' => 'Speedlights', ]); DB::table('categories')->insert([ 'cat_name' => 'Tripods', ]); }
{ "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.80140394", "0.7980541", "0.79775697", "0.79547316", "0.79514134", "0.79500794", "0.79444957", "0.794259", "0.79382807", "0.7937482", "0.7934376", "0.7892533", "0.7881253", "0.78794724", "0.7879101", "0.7875628", "0.787215", "0.7870168", "0.78515327", "0.7850979", "0.784195...
0.0
-1
Base composite pattern : A Node contains instances of itself. \ArrayObject is all right for that pattern
public function addNode(self $node) : self { $this->append($node); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getNewChildren(): array ;", "public function getChildren(): array;", "public function __construct($input)\n {\n $this->type = gettype($input);\n $types = array('object', 'array');\n\n if (!in_array($this->type, $types)) {\n $this->value = $inp...
[ "0.624063", "0.5700885", "0.5683667", "0.5617259", "0.560002", "0.55993694", "0.55747837", "0.55195546", "0.5508527", "0.5489932", "0.54553366", "0.5423928", "0.5420041", "0.53978455", "0.5395345", "0.5387947", "0.5367448", "0.5335978", "0.53347844", "0.53294957", "0.52770525...
0.0
-1
A node is displayable through __toString() Displays all its children
final public function __toString() { $ret = $this->getContent(); foreach ($this as $node) { $ret .= PHP_EOL . (string)$node; } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ToString()\n {\n if ( $this->Level == 0 )\n {\n // This is the root node, only walk through children\n $out = \"\";\n foreach($this->ChildNodes as $node)\n $out .= $node->ToString();\n }\n else\n {\n // Print node depending of it's type\n $indent = str_repea...
[ "0.70736414", "0.6942445", "0.68213433", "0.677516", "0.67311156", "0.6724975", "0.6720872", "0.67094123", "0.6638178", "0.6607054", "0.65930605", "0.65775317", "0.65398896", "0.65095794", "0.64452183", "0.6443773", "0.6377824", "0.63743883", "0.62876564", "0.62808686", "0.62...
0.7287501
0
Returns the content of the node without its children
abstract public function getContent() : string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function emptyNode() {\r\n\t\t\r\n\t\tforeach ($this as $node) $node->nodeValue = '';\r\n\t\t\r\n\t\treturn $this;\r\n\t}", "public function noContent()\n {\n return $this->factory->noContent();\n }", "function the_content_without_images() {\n\n $innerHTML = \"XX\";\n $html = \"\";\n\n /...
[ "0.6529196", "0.6478429", "0.6455268", "0.6412828", "0.6154205", "0.5983346", "0.5929184", "0.5873453", "0.5861097", "0.57997483", "0.5777165", "0.5763351", "0.5751558", "0.5662479", "0.56602407", "0.565209", "0.5644931", "0.56203353", "0.56187326", "0.55932736", "0.55932736"...
0.0
-1
Magic method to return the meta data like the post original fields.
public function __get($key) { if (!isset($this->$key)) { if (isset($this->term->$key)) { return $this->term->$key; } } return parent::__get($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function meta()\n {\n return array_merge(parent::meta(), [\n 'fields' => 'adasd'\n ]);\n }", "public function meta()\n {\n return $this->meta;\n }", "public function getMeta();", "public function getMeta();", "public function getMeta(){\n // $this->...
[ "0.7257629", "0.7206353", "0.7098498", "0.7098498", "0.70578384", "0.7052013", "0.7052013", "0.7037694", "0.6981776", "0.6936464", "0.6936464", "0.6936464", "0.6936464", "0.6936464", "0.69262695", "0.69262695", "0.68840396", "0.6820423", "0.6800883", "0.67910904", "0.6788359"...
0.0
-1
Creates a query builder which get the term neighbors in hierarchy for this term (same parent).
public function neighbors() { $parent = $this->parent; $exclude = $this->term_id; $query = static::where('term_id', '!=', $exclude); return $parent ? $query->where('parent', $parent) : $query->whereNull('parent'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodeTreeQueryBuilder()\n {\n $qb = $this->repository\n ->createQueryBuilder('c')\n ->select('c, p')\n ->leftJoin('c.parent', 'p')\n ->orderBy('c.lft');\n\n return $qb;\n }", "public function get_neighbors()\n\t{\n\t\t// get parent...
[ "0.5459179", "0.5322152", "0.5216854", "0.520977", "0.5110506", "0.510095", "0.50065535", "0.49941385", "0.49413258", "0.49358067", "0.48979303", "0.48816496", "0.4859124", "0.48404846", "0.4839154", "0.48387024", "0.48383516", "0.48220128", "0.4820134", "0.48043463", "0.4797...
0.7360482
0
/ / WP methods / Get the taxonomy labels.
public function getLabelsAttribute() { return (get_taxonomy($this->name))->labels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_get_taxonomy_labels($taxonomies = array())\n{\n}", "public function getTaxonomyTerms();", "public function getTaxonomy()\n {\n return ucwords(\\Present::unslug($this->taxonomy));\n }", "public function taxonomy();", "function kulam_get_custom_taxonomy_labels( $name, $singular ) {\...
[ "0.82675576", "0.7565901", "0.6956691", "0.68305755", "0.67615193", "0.6740723", "0.67178845", "0.67178845", "0.67178845", "0.6679489", "0.6631996", "0.6617115", "0.65822595", "0.6554932", "0.6554932", "0.6554932", "0.6554932", "0.6554932", "0.6554932", "0.6554932", "0.655493...
0.7698398
1
/ / Query builders / Get current taxonomy using wordpress magic function
public static function current() { $id = get_queried_object_id(); if (!$id) { return null; } return static::find($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_current_taxonomy() {\n\t\treturn $this->current_taxonomy;\n\t}", "private function get_taxonomy() {\n\t\treturn filter_input( INPUT_GET, 'taxonomy', FILTER_DEFAULT, array( 'options' => array( 'default' => '' ) ) );\n\t}", "public function getTaxonomy()\n {\n return $this->taxon...
[ "0.7723687", "0.7329178", "0.70972496", "0.70786154", "0.7057463", "0.705365", "0.69795793", "0.657515", "0.64557934", "0.63542736", "0.63478875", "0.6313966", "0.62756425", "0.62682074", "0.6265116", "0.62247974", "0.6185212", "0.616408", "0.61503977", "0.61465734", "0.61318...
0.0
-1
Display a listing of the resource.
public function index() { $records = AssetAssignment::all(); return $this->sendResponse(AssetAssignResource::collection($records), 'Records retrieved successfully.'); }
{ "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
Store a newly created resource in storage.
public function store(AssignmentRequest $request) { /** AssignmentRequest will automatically return all errors if validation failed */ $input = $request->validated(); $record = AssetAssignment::create($input); event(new AssignmentAlert(Auth()->user())); return $this->sendResponse(new AssetAssignResource($record), 'record created successfully.'); }
{ "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) { $record = AssetAssignment::find($id); if (is_null($record)) { return $this->sendError('Record not found.'); } return $this->sendResponse(new AssetAssignResource($record), 'Record retrieved successfully.'); }
{ "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
Update the specified resource in storage.
public function update(AssignmentRequest $request, $id) { $input = $request->validated(); $record = AssetAssignment::find($id); if (is_null($record)) { return $this->sendError('Record not found.'); } $record->update($input); return $this->sendResponse(new AssetAssignResource($record), 'Record Updated successfully.'); }
{ "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) { $record = AssetAssignment::find($id); if (is_null($record)) { return $this->sendError('Record not found.'); } $record->delete(); return $this->sendResponse(new AssetAssignResource($record), 'Record 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() { $scientificNames = []; $fileHandle = fopen(database_path("seeders/data/speclist.txt"), "r"); while (($line = fgets($fileHandle)) !== false) { $matches = []; preg_match("/N=(.*)/",$line, $matches); $scientificName = $matches[1] ?? null; if ($scientificName === null) { continue; } $beginningOfParenthesis = strpos($scientificName, "("); if ($beginningOfParenthesis) { $scientificName = substr($scientificName, 0, $beginningOfParenthesis); } $scientificNames[] = strtolower( trim($scientificName) ); } fclose($fileHandle); $scientificNames = array_unique($scientificNames); $existingWordsInDict = Kata::query()->get(["isi"])->pluck("isi")->toArray(); $intersectionList = array_intersect($scientificNames, $existingWordsInDict); foreach ($intersectionList as $key => $intersection) { unset($scientificNames[$key]); } $namesParts = []; foreach ($scientificNames as $scientificName) { $scientificName = trim($scientificName, "\t\n\r\0\x0B."); foreach (explode(' ', $scientificName) as $namePart) { $nonNumericCount = preg_match_all("/[^\p{L}]/ui", $namePart); if ($nonNumericCount === 0) { $namesParts[] = $namePart; } } } Kata::query()->insertOrIgnore( array_map(fn($name) => ["isi" => $name], $namesParts) ); }
{ "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
Boilerplate function for getting an API Mock class
protected function getAPIMock($apiClass='OCA\AppFramework\Core\API', array $constructor=array('appname')){ $methods = get_class_methods($apiClass); return $this->getMock($apiClass, $methods, $constructor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function getApiObjectClass();", "function fn_soneritics_kiyoh_get_api(): KiyohApi\n{\n $settings = new SoneriticsKiyohSettings;\n $api = new KiyohApi($settings->getHash());\n\n return $api;\n}", "abstract public function getMockBuilder($className): MockBuilder;", "public function get...
[ "0.69169813", "0.6352451", "0.629434", "0.6292968", "0.6276758", "0.6268383", "0.61782783", "0.6117507", "0.60899544", "0.5970323", "0.59428", "0.5913198", "0.5907986", "0.5898631", "0.5873744", "0.5871157", "0.5850308", "0.58207786", "0.5793158", "0.5776803", "0.57331014", ...
0.6642857
1
Created by PhpStorm. User: alexj Date: 10042016 Time: 17:34
function redirect($url, $statusCode = 303) { header('Location: ' . $url, true, $statusCode); die(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _i() {\n }", "private function __() {\n }", "private function j() {\n }", "final private function __construct(){\r\r\n\t}", "public function helper()\n\t{\n\t\n\t}", "final private function __construct() { }", "final private function __construct() { }", "final private fu...
[ "0.60557175", "0.6004872", "0.58650917", "0.5864734", "0.58008707", "0.57929885", "0.57929885", "0.57929885", "0.57340854", "0.5732353", "0.5708198", "0.56891024", "0.56891024", "0.56733996", "0.56569767", "0.56569767", "0.56520927", "0.5651739", "0.5651739", "0.5651739", "0....
0.0
-1
posso fare funzioni che eval va a chiamare
public function rec($num) { return 1 / $num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fnEval($x, $strEval){\n\t$resultado = 0;\n\t$strEval = str_replace(\"x\",\"(\".$x.\")\",$strEval);\n\teval(\"\\$resultado = \".$strEval.\";\");\n\tif($resultado ==0) {\n\t\t$resultado = \"0\";\n\t}elseif($resultado == \"\" || $resultado == \"-1.#IND\"){\n\t\t\t$resultado = \"NAN\";\n\t}\n\treturn $resulta...
[ "0.72005683", "0.6776201", "0.64313143", "0.6387554", "0.6387554", "0.6272502", "0.62422204", "0.59967965", "0.5971406", "0.59689814", "0.5872002", "0.5840776", "0.5821065", "0.5803378", "0.5784089", "0.5671005", "0.55601543", "0.55356044", "0.55129004", "0.55092424", "0.5465...
0.0
-1
CREATE A SESSION AND UPDATE IN MONGO
public function UserToken($randomStr = null, $online = false){ // UPDATE MONGO DB $online = ($online) ? 'online' : 'offline'; $mongo = new MongoDB\Driver\Manager(MONGO_CONNECT); $bulk = new MongoDB\Driver\BulkWrite; $bulk->update( [ 'id' => intval($this->Session->read('Auth.User.id'), 10), ], [ '$set' => [ 'userToken' => $randomStr, 'visibility' => $online, 'status' => $online, ], ] ); $mongo->executeBulkWrite(MONGO_DATABASE.'.users', $bulk); // UPDATE MYSQL DB $online = ($online) ? $randomStr : null; $this->User = ClassRegistry::init('User'); $this->User->id = $this->Session->read('Auth.User.id'); $this->User->saveField('login_token', $online); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function saveSession() {\n $connection = \\Drupal::database();\n $select = $connection->select('conreg_payment_sessions', 'S');\n $select->addField('S', 'paysessionid');\n $select->condition('S.payid', $this->payId);\n $select->condition('S.session_id', $this->sessionId);\n // We only want to save if...
[ "0.6130443", "0.58730024", "0.585787", "0.5848212", "0.57598346", "0.5742757", "0.5694043", "0.5692072", "0.56301326", "0.55071497", "0.5468164", "0.54680353", "0.5453752", "0.54107744", "0.5405953", "0.54050195", "0.5397282", "0.53329194", "0.5293373", "0.5280393", "0.527910...
0.0
-1
Display a listing of the resource.
public function index() { return view('contentmanagement::Facility.index') ->withFacilities($this->facility->getLatest()); }
{ "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('contentmanagement::Facility.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(StoreRequest $request) { $data = $request->except('attachment'); $imageFile = $request->attachment; if ($imageFile) { $extension = strrchr($imageFile->getClientOriginalName(), '.'); $new_file_name = "facility_" . time(); $attachment = $imageFile->move($this->destinationpath, $new_file_name.$extension); $data['attachment'] = isset($attachment) ? $new_file_name . $extension : NULL; } $facility = $this->facility->create($data); if ($facility) { return redirect()->route('admin.content-management.facilities.index') ->withSuccessMessage('Facility is added successfully.'); } return redirect()->back() ->withInput() ->withWarningMessage('Facility can not be added.'); }
{ "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.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0....
0.0
-1
Show the specified resource.
public function show() { // return view('contentmanagement::show'); }
{ "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 }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function show($id)\n {\n ...
[ "0.86625683", "0.8656298", "0.7061081", "0.7016237", "0.69712675", "0.693585", "0.6916958", "0.68928856", "0.6802355", "0.66791755", "0.6661057", "0.6640048", "0.66189003", "0.66071963", "0.6594754", "0.65945184", "0.65812767", "0.65802205", "0.6552344", "0.65498114", "0.6549...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { return view('contentmanagement::Facility.edit') ->withFacility($this->facility->find($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.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(UpdateRequest $request, $id) { $data = $request->except('attachment'); $facility = $this->facility->find($id); $imageFile = $request->attachment; if ($imageFile) { if (file_exists($this->destinationpath . $facility->attachment) && $facility->attachment != '') { unlink($this->destinationpath . $facility->attachment); } $extension = strrchr($imageFile->getClientOriginalName(), '.'); $new_file_name = "facility_" . time(); $attachment = $imageFile->move($this->destinationpath, $new_file_name.$extension); $data['attachment'] = isset($attachment) ? $new_file_name . $extension : null; } $facility = $this->facility->update($id, $data); if($facility){ return redirect()->route('admin.content-management.facilities.index') ->withSuccessMessage('Facility is updated successfully'); } return redirect()->back() ->withInput() ->withWarningMessage('Facility can not be updated.'); }
{ "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) { $facility = $this->facility->find($id); $previousAttachment = $facility->attachment; $flag = $this->facility->destroy($id); if ($flag) { if (file_exists($this->destinationpath . $previousAttachment) && $previousAttachment != '') { unlink($this->destinationpath . $previousAttachment); } return response()->json([ 'type' => 'success', 'message' => 'Facility is deleted successfully.' ], 200); } return response()->json([ 'type' => 'error', 'message' => 'Facility can not be deleted.', ], 422); }
{ "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
Determine whether the user can view the model.
public function manage(User $user, User $model) { return $user->is($model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isViewAllowed()\n {\n return $this->isAllowedAction('view');\n }", "public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') &&...
[ "0.74192244", "0.73926866", "0.73587644", "0.731265", "0.72216856", "0.72160876", "0.70797694", "0.70411503", "0.7034548", "0.6997131", "0.69464743", "0.68929696", "0.68870556", "0.6883539", "0.68338764", "0.68131477", "0.68131477", "0.6810962", "0.6809471", "0.68050355", "0....
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() { $request = request(); return [ // 'payment_id'=>[ 'required', function ($attribute, $value, $fail) { TypePayments::findOrFail($value); } ], 'worker'=>[ function ($attribute, $value, $fail) use($request) { $user=User::findOrFail($value); if($user->role==="user"){ $fail("este id no tiene permiso de worker"); } } ], 'monto'=>[ 'required', function($attribute,$value,$fail){ if(!is_numeric($value)){ $fail("El monto debe ser numerico"); } } ] ]; }
{ "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
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.83993316", "0.8375539", "0.8375539", "0.8342643", "0.8251967", "0.82460433", "0.82116765", "0.8145634", "0.81104577", "0.8082012", "0.7990385", "0.79879874", "0.7982323", "0.79598", "0.7950402", "0.7948058", "0.7924861", "0.791403", "0.7900065", "0.78929263", "0.7889438", ...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { $whs = new SWarehouse(); $location = new SLocation(); return [ 'code' => 'required', 'name' => 'required', 'whs_id' => 'required|exists:siie.'.$whs->getTable().',id_whs', ]; }
{ "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
Local to this controller only; affects all actions, as loaded in init:
public function init() { //$this->_helper->viewRenderer->setNoRender(true); $registry = Zend_Registry::getInstance(); $this->view->report_server = $registry->get('report_server'); $this->view->basePath = $registry->get('basepath'); $this->basePath = $registry->get('basepath'); $this->view->pathUPLD = $registry->get('pathUPLD'); $this->view->procPath = $registry->get('procpath'); $this->klasifikasi = 'cdr'; $this->klasifikasi_serv = Klasifikasi_Service::getInstance(); //$this->cabang_serv = Cabang_Service::getInstance(); $this->sso_serv = Sso_User_Service::getInstance(); $ssoklasifikasi = new Zend_Session_Namespace('ssoklasifikasi'); $this->iduser =$ssoklasifikasi->userid; // $this->view->namauser = $this->sso_serv->getDataUserNama($this->iduser); $this->Logfile = new logfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initializeController() {}", "public function init()\n {\n /* Initialize action controller here */\n }", "public function init()\n {\n /* Initialize action controller here */\n }", "protected function initializeAction() {}", "protected function initializeAction()...
[ "0.75581604", "0.72871983", "0.72871983", "0.7188777", "0.7187654", "0.7187654", "0.71781296", "0.7008648", "0.6946577", "0.6917168", "0.6881624", "0.6881624", "0.6881624", "0.6881624", "0.6881624", "0.6835926", "0.68160886", "0.6740656", "0.67155033", "0.6671791", "0.6659106...
0.0
-1
Install quote custom data
public function installQuoteData() { $quoteInstaller = $this->quoteSetupFactory->create( [ 'resourceName' => 'quote_setup', 'setup' => $this->setup ] ); $quoteInstaller ->addAttribute( 'quote', CustomFieldsInterface::CHECKOUT_PURPOSE, ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fastQuote_install() {\n require_once('fastQuote.settings.php');\n fastQuoteInstaller::install();\n\n rebuild_settings();\n}", "function install($data = '')\n {\n parent::install();\n }", "function install($data = '')\n {\n parent::install();\n }", "function install...
[ "0.69736654", "0.6714206", "0.6714206", "0.66782314", "0.66782314", "0.6571282", "0.6571282", "0.6571282", "0.6571282", "0.6571282", "0.65510887", "0.6327981", "0.6169283", "0.61365294", "0.6135494", "0.61118186", "0.6104212", "0.59939843", "0.5989338", "0.5975755", "0.593293...
0.84290344
0
Install sales custom data
public function installSalesData() { $salesInstaller = $this->salesSetupFactory->create( [ 'resourceName' => 'sales_setup', 'setup' => $this->setup ] ); $salesInstaller ->addAttribute( 'order', CustomFieldsInterface::CHECKOUT_PURPOSE, ['type' => Table::TYPE_TEXT, 'length' => '255', 'nullable' => true, 'grid' => false] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install($data='') {\r\n parent::install();\r\n }", "function install($data='') {\r\n parent::install();\r\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data='') {\n par...
[ "0.728193", "0.728193", "0.7153113", "0.7153113", "0.7073944", "0.7017336", "0.7017336", "0.7017336", "0.7017336", "0.7017336", "0.6849865", "0.6809988", "0.67987514", "0.67848814", "0.6744894", "0.6724681", "0.66995364", "0.66390264", "0.66146016", "0.65689033", "0.65605325"...
0.8170202
0
Show the form for creating a new resource.
public function create() { $this->data['categories'] = $this->categoryService->getAll(); return view('news.form', $this->data); }
{ "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(NewsRequest $request) { $catagories = explode(',', $request->categoryIds[0]); $attr = $request->except('image', '_token', 'inputCroppedPic', 'category', 'categoryIds'); try { if ($request->has('inputCroppedPic') && !is_null($request->inputCroppedPic)) { if (!File::exists($this->imageSavePath)) { File::makeDirectory($this->imageSavePath, 0775, true, true); } $destinationPath = $this->imageSavePath . $this->getDateFormatFileName('jpg'); Image::make($request->input('inputCroppedPic')) ->encode('jpg') ->save(public_path($destinationPath)); $attr['image'] = $destinationPath; } $news = $this->newsService->create($attr); $news->categories()->sync($catagories); return redirect()->route('news.index')->with('success', trans('news-portal.success-add')); } catch (\Exception $e) { return redirect()->back()->with('error', trans('news-portal.error')); } }
{ "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 view($id) { $this->data['news'] = $this->newsService->find($id); $this->data['categories'] = $this->categoryService->getAll(); return view('news.show', $this->data); }
{ "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) { $this->data['news'] = $this->newsService->find($id); $this->data['categories'] = $this->categoryService->getAll(); return view('news.form', $this->data); }
{ "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.7854417", "0.7692986", "0.72741747", "0.72416574", "0.7173436", "0.706246", "0.70551765", "0.698488", "0.6948513", "0.694731", "0.69425464", "0.6929177", "0.6902573", "0.6899662", "0.6899662", "0.6878983", "0.6865711", "0.6861037", "0.6858774", "0.6847512", "0.6836162", ...
0.0
-1
Update the specified resource in storage.
public function update(NewsRequest $request, $id) { $news = $this->newsService->find($id); $cat = explode(',', $request->categoryIds[0]); $catagories = array_diff($cat, array("")); $attr = $request->except('image', '_token', 'inputCroppedPic', 'category', 'categoryIds'); try { if ($request->has('inputCroppedPic') && !is_null($request->inputCroppedPic)) { $destinationPath = $this->imageSavePath . $this->getDateFormatFileName('jpg'); $path = public_path() . $news->logo; \File::delete($path); Image::make($request->input('inputCroppedPic')) ->encode('jpg') ->save(public_path($destinationPath)); $attr['image'] = $destinationPath; } $this->newsService->update($attr, $id); $news->categories()->sync($catagories); return redirect()->route('news.index')->with('success', trans('news-portal.success-update')); } catch (\Exception $e) { return redirect()->back()->with('error', trans('news-portal.error')); } }
{ "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(Request $request) { $this->newsService = $this->newsService->delete($request); if ($this->newsService) { return response()->json('status', 200); } else { return response()->json('status', 500); } }
{ "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
Build the data array for the query
function create( $obj ) { $data = array( 'user_id' => $obj->user_id, 'action_text' => $obj->action_text, 'action_created' => getNow() ); // Insert the data if ( $this->db->insert( 'actions', $data ) ) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getData(){\n\t\tdb::getAdapter();\n\t\t\n\t\t$counter=0;\n\t\t$arrayFieldQuery=array();\n\t\tforeach($this->fields as $field){\n\t\t\t$arrayFieldQuery[$field]=$this->types[$counter];\n\t\t\t$counter++;\n\t\t}\n\t\t\n\t\t$counter=0;\n\t\t$arrayFilters=array();\n\t\tforeach($this->filters as $filter...
[ "0.6671757", "0.6570964", "0.6548318", "0.65340304", "0.6513135", "0.6486798", "0.635759", "0.63257736", "0.63133955", "0.6231576", "0.62311006", "0.6219613", "0.62085176", "0.6172008", "0.61456954", "0.61347234", "0.61310714", "0.61298394", "0.6128094", "0.6112965", "0.60764...
0.0
-1
Get the enum as an collection formatted for a select.
public static function toSelectCollection(): Collection { return collect(self::toArray())->mapWithKeys(function ($value, $text) { return [ $value => [ 'text' => self::getDescription($value), 'value' => $value, ], ]; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomEnumFormatterCollection(): EnumFormatterCollection;", "public function getForSelect()\n {\n $options = [];\n\n foreach ($this->find() as $record) {\n $key = (string)$record->getId();\n $val = (string)$this->getRecordLabel($record);\n $opt...
[ "0.6633402", "0.6339101", "0.6264784", "0.61202663", "0.60775465", "0.58590674", "0.58587205", "0.58376265", "0.579897", "0.57632387", "0.5704434", "0.5704434", "0.5702993", "0.5681474", "0.56445247", "0.5626697", "0.5613102", "0.56119615", "0.5572823", "0.5530161", "0.551788...
0.6558187
1
Get the description for an enum value.
public static function getDescription($value): string { return static::getLocalizedDescription($value) ?? static::getKey($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusDescription($value)\n {\n $status = $this->getEveryStatus();\n\n if (isset($status[$value])) {\n return $status[$value];\n }\n\n return $status['D'];\n }", "public static function getDescription($value): string\n {\n switch ($value) ...
[ "0.729808", "0.6696256", "0.6622626", "0.66111773", "0.6537815", "0.6507612", "0.6460673", "0.643342", "0.63763815", "0.636937", "0.6343878", "0.62796587", "0.6253956", "0.6248732", "0.6213775", "0.61919093", "0.6179035", "0.6177627", "0.6158251", "0.6118068", "0.6096676", ...
0.70144653
1
Get the localized description if localization is enabled for the enum and if they key exists in the lang file.
protected static function getLocalizedDescription($value): ?string { $localizedStringKeys = [ static::getLocalizationKey().Str::snake(static::getKey($value)), static::getLocalizationKey().$value, ]; foreach ($localizedStringKeys as $key) { if (Lang::has($key)) { return __($key); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLocalizedDescription();", "public function getDesc_en()\n {\n return $this->desc_en;\n }", "function getDescription() {\n return lang('Some description');\n }", "protected function get_description()\n\t{\n\t\tif ( static::$titleLangPrefix and static::$descriptionLang...
[ "0.7494485", "0.6766009", "0.6745608", "0.6312405", "0.63109946", "0.61861503", "0.6131851", "0.6122489", "0.6122489", "0.6113962", "0.60734725", "0.6023037", "0.59964323", "0.5979908", "0.5979908", "0.594134", "0.5939062", "0.5939062", "0.5939062", "0.5939062", "0.5939062", ...
0.63227004
3
Get the default localization key.
public static function getLocalizationKey(): string { return 'base.'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function defaultLocale()\n {\n $locales = $this->app('locales');\n\n foreach ($locales as $locale)\n {\n if( isset( $locale['default'] ) )\n return $locale['key'];\n }\n\n return false;\n }", "protected static function getDefaultKey()\n ...
[ "0.76941293", "0.7581752", "0.754389", "0.75033206", "0.7021993", "0.6843685", "0.6799357", "0.67925346", "0.67925346", "0.67886865", "0.6669828", "0.6665372", "0.6647502", "0.6644404", "0.6528121", "0.6492235", "0.6453658", "0.64053786", "0.64050126", "0.63886935", "0.638630...
0.73683715
4
Check that the enum contains all values of the array.
public static function containsValues(array $values) { foreach ($values as $value) { if (! static::hasValue($value)) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function enumsHaveValues() : bool\n {\n foreach ($this->enums as $enum) {\n if ($enum->value !== null) {\n return true;\n }\n }\n\n return false;\n }", "public function getIsAllValuesValid(array $data)\n {\n foreach($data as $value...
[ "0.7101821", "0.6537375", "0.63164186", "0.63028234", "0.6227483", "0.60258675", "0.60254323", "0.59724826", "0.5969649", "0.5965525", "0.5953226", "0.59456277", "0.5936363", "0.59133005", "0.5913037", "0.5853697", "0.58303493", "0.5815495", "0.58020663", "0.58016866", "0.579...
0.53006625
95
Check that the enum contains all values of the array and throws an exception, if not.
public static function containsValuesOrFail(array $values, string $message = '') { if (! static::containsValues($values)) { throw new InvalidEnumValueException($message); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRejectsAnEnumWithIncorrectlyTypedValues()\n {\n /** @noinspection PhpUnhandledExceptionInspection */\n $enumType = newEnumType([\n 'name' => 'SomeEnum',\n 'values' => [['FOO' => 10]],\n ]);\n\n $this->expectException(InvariantException::cla...
[ "0.64770406", "0.6343876", "0.62652963", "0.60301703", "0.5991149", "0.5707614", "0.5705691", "0.5651775", "0.5609773", "0.55912817", "0.55842394", "0.55504596", "0.55375534", "0.55088985", "0.5469432", "0.54609114", "0.54570967", "0.5426988", "0.54261255", "0.5413678", "0.54...
0.60433775
3
Tests Transform_Unserialize_Serial>process() with a chain
public function testProcess_Chain() { $mock = $this->getMock('Q\Transform', array('process')); $mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue('a:2:{s:1:"a";a:1:{s:1:"c";s:3:"abc";}s:1:"d";s:1:"e";}')); $transform = new Transform_Unserialize_Serial(); $transform->chainInput($mock); $contents = $transform->process('test'); $this->assertType('Q\Transform_Unserialize_Serial', $transform); $this->assertEquals(array('a'=>array('c'=>'abc'), 'd'=>'e'), $contents); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n ...
[ "0.6494883", "0.6243429", "0.5968294", "0.5685148", "0.55904967", "0.543727", "0.5375368", "0.5365713", "0.52476954", "0.5242949", "0.51979697", "0.5149354", "0.5097645", "0.5097645", "0.5096598", "0.50465333", "0.5031752", "0.49766967", "0.49701434", "0.4945104", "0.49326783...
0.820725
0
Tests Transform_Unserialize_Serial>getReverse() with a chain
public function testGetReverse_Chain() { $mock = $this->getMock('Q\Transform', array('getReverse', 'process')); $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer')); $transform = new Transform_Unserialize_Serial(); $transform->chainInput($mock); $this->assertEquals('reverse of mock transformer', $transform->getReverse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n ...
[ "0.75660837", "0.66889006", "0.6677965", "0.6240784", "0.61688167", "0.61540484", "0.61508316", "0.61504894", "0.6074951", "0.59442", "0.59442", "0.59442", "0.59442", "0.591658", "0.59154224", "0.5853217", "0.58103627", "0.5676281", "0.5646193", "0.5595553", "0.5431423", "0...
0.7750612
0
Tests Transform_Unserialize_Serial>getReverse() with a chain
public function testGetReverse_ChainDouble() { $mock = $this->getMock('Q\Transform', array('getReverse', 'process')); $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer')); $transform1 = new Transform_Unserialize_Serial(); $transform2 = new Transform_Unserialize_Serial(); $transform2->chainInput($mock); $transform1->chainInput($transform2); $this->assertEquals('reverse of mock transformer', $transform1->getReverse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n ...
[ "0.77503055", "0.66885215", "0.6677177", "0.6240599", "0.6170473", "0.61553895", "0.61520016", "0.61476904", "0.607417", "0.5945706", "0.5945706", "0.5945706", "0.5945706", "0.59170383", "0.591687", "0.5853025", "0.5810367", "0.56759506", "0.56476384", "0.55959487", "0.543253...
0.75659686
1
/ Function: get factor from database Parameter: Atom1, Atom2, bond order, primary/secondary table Return: Factor
function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) { global $conn; global $PRIMARY_TB; // Check if all the parameters are valid if (!$Atom1) { die("Atom 1 is not specified."); } elseif (!$Atom2) { die("Atom 2 is not specified."); } elseif (!$BondOrder) { die("Bond order is not specified."); } $query_str = "SELECT Factor FROM $tb_name ". "WHERE (Atom1='$Atom1' AND Atom2='$Atom2')". "AND BondOrder=$BondOrder"; $result = $conn->query($query_str); // Everything is ok if ($result->num_rows == 1) { $row = $result->fetch_assoc(); return $row['Factor']; } // There is something wrong if ($BondOrder == 1) { $boName = "single"; } elseif ($BondOrder == 2) { $boName = "double"; } elseif ($BondOrder == 3) { $boName = "tripple"; } else { $boName = $BondOrder; } // If such bond DNE, print error if($result->num_rows == 0) { if ($tb_name == $PRIMARY_TB) { die("The $Atom1-$Atom2 $boName bond does not exist in the database."); } else { return 0; } } // If there are multiple entries if ($result->num_rows > 1) { die("There are multiple entries in the database of the $Atom1-$Atom2 $boName bond."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_factor_query($is_aromatic_ring) {\n\t\n\tglobal $PRIMARY_TB, $SECONDARY_TB, $l_0;\n\t\n\t$bonds = json_decode($_GET['json_query'], true);\n\t$sum = 0;\n\tforeach ($bonds as $bond) {\n\t\t// $bond has keys: Atom1, Atom2, BondOrder, Proximity\n\t\tif ($bond[\"Proximity\"] == 1) {\n\t\t\t$f = get_fac...
[ "0.58923936", "0.5406703", "0.52434677", "0.48543575", "0.4839819", "0.469212", "0.467898", "0.4612812", "0.45833796", "0.4533701", "0.4524233", "0.45230362", "0.4512122", "0.45047995", "0.44994777", "0.44635758", "0.4456885", "0.43951088", "0.43903002", "0.43697584", "0.4350...
0.80697685
0
/ For all of the associative arrays passed through $_GET if (Proximity == 1) get_factor($Atom1, $Atom2, $BondOrder, $primary_tb); get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); primary secondary is the number. else get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); Add everything together, and that is the answer.
function process_factor_query($is_aromatic_ring) { global $PRIMARY_TB, $SECONDARY_TB, $l_0; $bonds = json_decode($_GET['json_query'], true); $sum = 0; foreach ($bonds as $bond) { // $bond has keys: Atom1, Atom2, BondOrder, Proximity if ($bond["Proximity"] == 1) { $f = get_factor($bond["Atom1"], $bond["Atom2"], $bond["BondOrder"], $PRIMARY_TB); $l_char = "<i>L</i>"; } elseif ($bond["Proximity"] == 2) { $f = get_factor($bond["Atom1"], $bond["Atom2"], $bond["BondOrder"], $SECONDARY_TB); $l_char = "<i>l</i>"; } $sum += $f; if ($bond["BondOrder"] == 1) { $bond_char = "-"; } elseif ($bond["BondOrder"] == 2) { $bond_char = "="; } elseif ($bond["BondOrder"] == 3) { $bond_char = "&equiv;"; } echo "<p>".$l_char."<sub>".$bond["Atom1"].$bond_char.$bond["Atom2"]."</sub> = ".$f."</p>"; } if ($is_aromatic_ring == "true") { $sum += $l_0; echo "<p>l<sub>0</sub> = ".$l_0."</p>"; } echo "<h4>&beta; = ".($sum+1)."</h4>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) {\n\t\n\tglobal $conn;\n\tglobal $PRIMARY_TB;\n\t\n\t// Check if all the parameters are valid\n\tif (!$Atom1) {\n\t\tdie(\"Atom 1 is not specified.\");\n\t} elseif (!$Atom2) {\n\t\tdie(\"Atom 2 is not specified.\");\n\t} elseif (!$BondOrder) {\n\t\tdie(\"Bo...
[ "0.61645085", "0.51042414", "0.51036465", "0.50581944", "0.49472237", "0.4887124", "0.48491582", "0.4835526", "0.48137143", "0.48050368", "0.47986183", "0.4618553", "0.46162587", "0.45589066", "0.45555937", "0.45544058", "0.4539949", "0.4525036", "0.4499143", "0.44935155", "0...
0.71615887
0
Active navbar buttons,see layouts/master.blade.php /var $nav_act = [ 'main_class'=>'', 'about_class'=>'', 'prod_class'=>'', 'case_class'=>'', 'cont_class'=>'', ];
public function RootRequest() { return redirect('/main'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function active_nav_class($classes, $item){\n\tif (in_array('current-menu-item', $classes)) {\n\t\t$classes[] = 'active';\n\t}\n\treturn $classes;\n}", "function uk_active_nav_class( $class, $item ) {\n if (in_array( 'current-menu-item', $class )) {\n $class[] = 'uk-active';\n }\n return $class;\n}", "fu...
[ "0.6887104", "0.6791222", "0.67568517", "0.67440087", "0.6740277", "0.67091876", "0.6649607", "0.64601547", "0.63809305", "0.6322316", "0.62942463", "0.6153068", "0.6153068", "0.61060697", "0.6086877", "0.60507697", "0.60342175", "0.5997324", "0.59595984", "0.5950728", "0.594...
0.0
-1
Display a listing of the resource.
public function index() { $products = Product::all(); $status = $products->count() ? true : false; return response()->json([ 'data' => $products, 'status' => $status, ], 201); }
{ "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
Store a newly created resource in storage.
public function store(StoreProductRequest $request) { $attributes = ['front_image', 'back_image', 'left_image', 'right_image']; $product = Product::create(array_merge( $request->validated(), ['slug' => Str::slug($request->validated()['product_name'])], (new SaveImageService) ->saveImage($request, $attributes, $request->validated()['sku'], 'images/products/') ->get() )); $status = $product ? true : false; return response()->json([ 'data' => $product, 'status' => $status, 'message' => 'Product Added Successfully.', ], 201); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Update the specified resource in storage.
public function update(UpdateProductRequest $request, Product $product) { $attributes = ['front_image', 'back_image', 'left_image', 'right_image']; $status = $product->update(array_merge( $request->validated(), ['slug' => Str::slug($request->validated()['product_name'])], (new SaveImageService) ->saveImage($request, $attributes, $request->validated()['sku'], 'images/products/') ->get() )); $status = $product ? true : false; return response()->json([ 'status' => $status, 'message' => 'Product Updated Successfully.', ], 201); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
/cargar la variables de configuracion del sistema
public function get_bpm_config($VARIABLE){ $this->db->select('*'); $this->db->from('bpm_config'); $this->db->where('VARIABLE',$VARIABLE); $query = $this->db->get(); $variables = $query->result_array(); return $variables[0]['VALOR']; }
{ "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}", "static function set_config() {\n\t\tif ( file_exis...
[ "0.70113826", "0.6953043", "0.68566203", "0.68135315", "0.6785161", "0.6718433", "0.66201925", "0.65927285", "0.65632623", "0.6561061", "0.65418196", "0.65415996", "0.6540942", "0.65401965", "0.6534063", "0.65203375", "0.6510997", "0.65079504", "0.6471675", "0.6403806", "0.64...
0.0
-1
debemos elimnar todo lo modulos de estre isiairo para el modulo escogido
public function updateUserSubModulo($data,$id_modulo,$userUID,$ID_PERFIL){ $sql ="DELETE FROM user_menu_modulos where `id_modulo` = '".$id_modulo."' and `id_user` ='".$userUID."'"; $query = $this->db->query($sql); if(count($data)>0){ if($query){ //Carafar los modulo nuevos $i =0; foreach ($data as $key => $value) { $new["id_sud_modulo"] = $key; $new["id_user"] = $userUID; $new["id_modulo"] = $id_modulo; $new["fecha"] = date("Y-m-d H:i:s"); $new["estado"] = 1; $new["id_perfil"] = $ID_PERFIL; $this->db->insert('user_menu_modulos',$new); $i++; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl_reconhecimentocontabil() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"reconhecimentocontabil\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function getLinhaModulo($modulo, $limite) {\n $linha = ($modulo == 0) ? ...
[ "0.62510455", "0.6197957", "0.61818475", "0.61636746", "0.6104434", "0.60628235", "0.6056498", "0.6020311", "0.59976774", "0.59912866", "0.5982571", "0.5980318", "0.5974666", "0.5971448", "0.59324664", "0.59264183", "0.5907696", "0.58939946", "0.5883602", "0.5865074", "0.5864...
0.0
-1
check if a dir, other with do nothin
function del_dir($dir) { if(is_dir($dir)) { $dh = opendir($dir); while ($file = readdir($dh)) { # code... if($file != "." && $file != "..") { $full_path = $dir."/".$file; if (is_dir($full_path)) { # code... del_dir($full_path); } else { # code... unlink($full_path); } } } closedir($dh); //delete current dir if(is_dir($dir)) rmdir($dir); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function dirIsValid() {\n return is_dir($this->directory);\n }", "abstract function isdir($rempath = '.');", "protected function isDirectory() {}", "function privDirCheck($p_dir, $p_is_dir = \\false)\n {\n }", "private function checkDir()\n {\n $this->init = $this-...
[ "0.78799856", "0.76821053", "0.7652945", "0.7577442", "0.7565572", "0.7478006", "0.74039155", "0.74039155", "0.73160964", "0.7303019", "0.72861546", "0.72420305", "0.71611965", "0.71299016", "0.71299016", "0.71299016", "0.71299016", "0.7128377", "0.7120598", "0.71149075", "0....
0.0
-1
Run the database seeds.
public function run() { App\Buku::create([ 'sampul' => 'sampul.png', 'isbn' => '978-601-8520-93-1', 'judul' => 'Janshen', 'tahun_terbit' => 2017, 'id_penulis' => 1, 'id_penerbit' => 2, 'id_kategori' => 1, 'id_lokasi' => 1, 'harga' => 80000, 'jumlah' => 100, 'barcode' => '978-601-8520-93-1' ]); App\Buku::create([ 'sampul' => 'sampul.png', 'isbn' => '958-602-8121-93-3', 'judul' => 'RPUL Edisi Terbaru', 'tahun_terbit' => 2019, 'id_penulis' => 3, 'id_penerbit' => 4, 'id_kategori' => 3, 'id_lokasi' => 4, 'harga' => 30000, 'jumlah' => 100, 'barcode' => '958-602-8121-93-3' ]); App\Buku::create([ 'sampul' => 'sampul.png', 'isbn' => '921-332-8519-93-3', 'judul' => 'Akutansi Entitas Manufaktur', 'tahun_terbit' => 2019, 'id_penulis' => 4, 'id_penerbit' => 1, 'id_kategori' => 3, 'id_lokasi' => 4, 'harga' => 90000, 'jumlah' => 100, 'barcode' => '921-332-8519-93-3' ]); App\Buku::create([ 'sampul' => 'sampul.png', 'isbn' => '918-692-5419-32-3', 'judul' => 'Doraemon Canda', 'tahun_terbit' => 2004, 'id_penulis' => 5, 'id_penerbit' => 3, 'id_kategori' => 2, 'id_lokasi' => 3, 'harga' => 15000, 'jumlah' => 100, 'barcode' => '918-692-5419-32-3' ]); App\Buku::create([ 'sampul' => 'sampul.png', 'isbn' => '998-611-8329-66-3', 'judul' => 'Rentang Kisah', 'tahun_terbit' => 2017, 'id_penulis' => 6, 'id_penerbit' => 5, 'id_kategori' => 1, 'id_lokasi' => 1, 'harga' => 85000, 'jumlah' => 100, 'barcode' => '998-611-8329-66-3' ]); App\Buku::create([ 'sampul' => 'sampul.png', 'isbn' => '933-323-8898-32-4', 'judul' => 'Danur gerbang dialog', 'tahun_terbit' => 2015, 'id_penulis' => 1, 'id_penerbit' => 2, 'id_kategori' => 1, 'id_lokasi' => 1, 'harga' => 90000, 'jumlah' => 100, 'barcode' => '933-323-8898-32-4' ]); }
{ "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.80140394", "0.7980541", "0.79775697", "0.79547316", "0.79514134", "0.79500794", "0.79444957", "0.794259", "0.79382807", "0.7937482", "0.7934376", "0.7892533", "0.7881253", "0.78794724", "0.7879101", "0.7875628", "0.787215", "0.7870168", "0.78515327", "0.7850979", "0.784195...
0.0
-1
check if the user is already logged in
public function index() { //if yes redirect to the welcome page if ($this->session->userdata('logged_in')) { $this->load->view('main'); } //load the register page views $this->load->view('movimiento'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function user_already_logged() {\n echo \"Entro por user_already_logged\";\n return isset($this->session->userdata['logged_in']);\n }", "function is_already_authenticated()\n {\n /**\n * Checks is user already authenticated\n * If it's true, sends to main page\n...
[ "0.81896585", "0.8014224", "0.7977815", "0.79481876", "0.7930491", "0.7918163", "0.7910052", "0.7906859", "0.7906859", "0.78501827", "0.7827693", "0.78091764", "0.78016293", "0.78012025", "0.7792358", "0.7785407", "0.77846634", "0.7774868", "0.7760254", "0.77413875", "0.77407...
0.0
-1
Parse the given SimpleXmlElement to a Store entity.
public function parse(SimpleXMLElement $payload) { $store = (new Entities\Store()) ->setIdentifiers(new Collection([ 'ap21_id' => (integer) $payload->StoreId, 'ap21_code' => (string) $payload->Code, 'store_number' => (integer) $payload->StoreNo ])) ->setName((string) $payload->Name) ->setLine1((string) $payload->Address1) ->setLine2((string) $payload->Address2) ->setCity((string) $payload->City) ->setState((string) $payload->State) ->setPostcode((string) $payload->Postcode) ->setCountry((string) $payload->Country) ->setEmail((string) $payload->Email); return $store; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStoreId($store);", "public function parseEntity(XTemplate $xtpl, $oProduct) {\n\n }", "public function parse($model)\n\t{\n\t\t$parser = Mage::getModel($this->getParserModel(), $model);\n\t\tif ($this->getStoreId()) {\n\t\t\t$parser->setMageStoreId($this->getStoreId());\n\t\t}\n\t\t$parse...
[ "0.46587682", "0.46546042", "0.46254456", "0.46002588", "0.45970342", "0.4570146", "0.4570146", "0.45219913", "0.45195553", "0.4502184", "0.44990957", "0.44990957", "0.4487101", "0.44703007", "0.4409867", "0.43909898", "0.4382788", "0.43656608", "0.43631285", "0.43587038", "0...
0.72746474
0
Handle front end hooks
public function my_front_end_stuff() { add_action('wp_enqueue_scripts', array($this, 'myScripts')); // Don't load the filters if the display option is toggled to NONE! if(get_option('grimage_display_options') != "none") { //add_filter('the_content', array($this, 'replaceImagesWithGrimages')); add_filter('the_content', array($this, 'replaceImagesWithGrimagesTwo')); add_action('wp_head', array($this, 'hook_js')); add_action('wp_head', array($this, 'hook_css')); add_action('wp_footer', array($this, 'grimage_modal')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hook();", "private function public_hooks()\n\t{\n\t}", "public function hook() {\n\t\t// the WPML API is not included by default\n\t\trequire_once ICL_PLUGIN_PATH . '/inc/wpml-api.php';\n\n\t\t$this->hook_actions();\n\t\t$this->hook_filters();\n\t}", "private function hooks(): void {\n\t\t// ...
[ "0.73553926", "0.7351351", "0.7144857", "0.7142881", "0.6959278", "0.6947165", "0.6947165", "0.6907112", "0.6907112", "0.6906859", "0.6787915", "0.6769804", "0.6647995", "0.6636283", "0.6614996", "0.66040915", "0.65965945", "0.6595412", "0.6583879", "0.65798604", "0.6573805",...
0.0
-1
Enques my scripts (css and js).
public function myScripts() { //wp_register_script('angularjs',plugins_url('bower_components/angular/angular.min.js', __FILE__)); wp_enqueue_style('grimagecss', plugins_url('style.css', __FILE__)); //wp_enqueue_script('grimagescripts',plugins_url('/app.js',__FILE__)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function include_scripts(){\n\t\t//self::include_css();\n\t\tself::include_js();\n\t}", "public function loadScripts() {\n $graphcss = $this->getProperty('graphcss');\n $customcss = $this->getProperty('customcss');\n $loadjquery = $this->getProperty('loadjquery');\n\n $cssUrl =...
[ "0.8177206", "0.78772044", "0.78522444", "0.7757424", "0.7617622", "0.7596285", "0.75814486", "0.75814486", "0.75529563", "0.7548456", "0.7531649", "0.75290394", "0.75020283", "0.74744207", "0.7458399", "0.7454763", "0.7453838", "0.7452905", "0.7441865", "0.74111116", "0.7398...
0.74148273
19
Handle admin menu insertion
public function register_grimage_admin_menus() { add_options_page('Grimage settings', 'Grimage', 'manage_options', 'grimage_options', array($this, 'grimage_options_page')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_admin_menus()\n\t{\n\t}", "function procMenuAdminInsertItemForAdminMenu()\n\t{\n\t\t$requestArgs = Context::getRequestVars();\n\t\t$tmpMenuName = explode(':', $requestArgs->menu_name);\n\t\t$moduleName = $tmpMenuName[0];\n\t\t$menuName = $tmpMenuName[1];\n\n\t\t// variable setting\n\t\...
[ "0.7936905", "0.7687668", "0.7596544", "0.7561742", "0.7561742", "0.7561742", "0.74937963", "0.74486524", "0.7426101", "0.73887515", "0.7357174", "0.7341609", "0.7276958", "0.7222066", "0.7218996", "0.71982986", "0.719314", "0.7155845", "0.7146222", "0.71453667", "0.7116234",...
0.0
-1
The grimage options page.
public function grimage_options_page() { if (isset($_POST['facebook_appid'])) { if ($this->process_grimage_update_page($_POST)) { ?> <div class="notice notice-success is-dismissible"> <p>Done!</p> </div> <?php } } ?> <div class="wrap"> <h2>Grimage Settings</h2> <form name="grimage_form" method="post" action=""> <div style="margin-top:10px;"> <label for="display_option"><strong>Display Option:</strong></label> <input type="radio" name="display_option" value="none" <?php if(get_option('grimage_display_option') == 'none') echo "checked"; ?> /> None <small>(deactivate plugin)</small> <input type="radio" name="display_option" value="under" <?php if(get_option('grimage_display_option') == 'under') echo "checked"; ?> /> Under <small>(link will be displayed below posts.)</small> <input type="radio" name="display_option" value="over" <?php if(get_option('grimage_display_option') == 'over') echo "checked"; ?> /> Over <small>(link will be displayed on hover)</small> </div> <div style="margin-top:10px;"><label for="facebook_appid"><strong>Facebook AppID:</strong></label><br/> <input type="text" name="facebook_appid" placeholder="app id" id="facebook_appid" value="<?php if (get_option('grimage_facebook_appid')) echo get_option("grimage_facebook_appid"); ?>"/> </div> <div style="margin-top:10px;"> <label for="modalcontent"><strong>Modal Content</strong></label><br/> <textarea name="modalcontent" id="modalcontent" style="width:50%;height:400px;"><?php echo stripslashes(get_option('grimage_modalcontent')); ?></textarea> </div> <div style="margin-top:10px;"> <label for="grimage_fb_linktext"><strong>FB Link Text</strong></label><br/> <input type="text" name="grimage_fb_linktext" id="grimage_fb_linktext" style="" value="<?php echo stripslashes(get_option('grimage_fb_linktext')); ?>" /> </div> <div style="margin-top:10px;"> <label for="grimagecustomcss"><strong>Custom CSS</strong></label><br/> <textarea name="grimagecustomcss" id="grimagecustomcss" style="width:50%;height:400px;"><?php echo stripslashes(get_option('grimage_grimagecustomcss')); ?></textarea> </div> <div style="margin-top:10px;"> <button type="submit" class="button btn btn-primary">Update</button> </div> </form> </div> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_options_page() {\n print '<div class=\"wrap\">';\n screen_icon();\n printf( '<h2>%s</h2>', __( 'Instagram Settings', 'bii-instagram' ) );\n print '<form method=\"post\" action=\"options.php\">';\n settings_fields( 'bii_instagram' );\n do_settings_sections( 'bii-instagram' )...
[ "0.6849492", "0.6815114", "0.6809839", "0.678257", "0.65929335", "0.658276", "0.6555441", "0.65472525", "0.65136254", "0.6494048", "0.648386", "0.6408938", "0.639008", "0.6359193", "0.63338953", "0.6323065", "0.6285545", "0.6252929", "0.62474513", "0.6239306", "0.62075675", ...
0.6347083
14
The JS to get address to the header.
public function hook_js() { ?> <script>window.fbAsyncInit = function () { FB.init({ appId: '<?php echo get_option('grimage_facebook_appid');?>', xfbml: true, version: 'v2.6' }); }; (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) { return; } js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); (function ($) { $(document).ready(function () { function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } // bind it late for infinite scroll posts.... $('.grimage .clicker').on('click',function (e) { console.log('sharing this page...'+$(e.currentTarget).data('url')); var image_url = $(e.currentTarget).siblings('img').attr('src'); FB.ui({ method: 'share', href: $(e.currentTarget).data('url'), // title: 'This should be set in the meta headers..', picture: image_url, // caption: 'This should be set in the meta headers..', // description: 'This should be set in the meta headers..' }, function (response) { // Debug response (optional) //console.log(response); // Make sure the modal hasn't been shown in the last 7 days, and make sure the modal hasn't already been clicked like. if (getCookie('grimage_modal_shown') == "" && getCookie('grimage_modal_liked') == "") { setTimeout(function () { // click the modal button to show the modal :) //$('#show_grimage_modal').click(); $('.grimage_modal .grimage_modal-dialog').css('-webkit-transform', 'translate(0, 0)'); $('.grimage_modal .grimage_modal-dialog').css('-ms-transform', 'translate(0, 0)'); $('.grimage_modal .grimage_modal-dialog').css('transform', 'translate(0, 0)'); $('.grimage_modal .grimage_modal-dialog').css('top', '20%'); $('.grimage_modalclose').click(function (e) { e.preventDefault(); // User clicked the close button, so lets set a cookie to prevent the modal from popping up for a few days.. document.cookie = "grimage_modal_shown=true; expires=<?php echo date('D, d M Y', strtotime('+1 WEEK'));?> 12:00:00 UTC"; $('.grimage_modal').hide(); }); }, 500); } // end if hide modal... }); FB.Event.subscribe('edge.create', function (response) { document.cookie = "grimage_modal_liked=true; expires=<?php echo date('D, d M Y', strtotime('+1 YEAR'));?> 12:00:00 UTC"; //console.log('like button clicked!'); $('.grimage_modal').hide(); }); }); }); }(jQuery))</script> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeader();", "public function getHeader();", "public function getHeader();", "function get_header()\n\t{\n\t\treturn $this->header;\n\t}", "public function get_header() {\n $this->do_header();\n return $this->c_header;\n }", "function get_html_header();", "public function getHe...
[ "0.69037974", "0.69037974", "0.69037974", "0.6777701", "0.67034453", "0.66853344", "0.6625807", "0.6594744", "0.65431535", "0.65348583", "0.64414203", "0.6433912", "0.64235055", "0.64142215", "0.64064884", "0.6269155", "0.6269155", "0.6269155", "0.6269155", "0.6269155", "0.62...
0.0
-1
The modal CTA HTML which gets injected into the footer and launched after the grimage share dialog has been closed. Note:: Doesn't display if the cookie is set... see JS
public function grimage_modal() { ?> <!-- Modal --> <div class="grimage_modal" id="grimage_modal-one" aria-hidden="true"> <div class="grimage_modal-dialog"> <div class="grimage_modal-header"> <a href="#" class="btn-close grimage_modalclose" aria-hidden="true">×</a> <!--CHANGED TO "#close"--> </div> <div class="grimage_modal-body"> <?php echo stripslashes(get_option('grimage_modalcontent')); ?> </div> <div class="grimage_modal-footer"> </div> </div> </div> <!-- /Modal --> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NewModalFooter($settings) {\n $tabs = (isset($settings['tabs']) ? intval($settings['tabs']) : 6);\n $formID = (isset($settings['formid']) ? IdentifierStr($settings['formid']) : (isset($settings['form']) ? (is_array($settings['form']) ? IdentifierStr($settings['form']['id']) : IdentifierStr($settings...
[ "0.5999225", "0.5993367", "0.57731926", "0.57665884", "0.5684943", "0.56751865", "0.5595678", "0.5577895", "0.55568224", "0.5532182", "0.54983115", "0.5472154", "0.54664725", "0.54579914", "0.5448874", "0.5443759", "0.5439526", "0.5438382", "0.5437344", "0.54279864", "0.54087...
0.6117207
0
Get the instance as an array.
public function toArray() { $urls = []; $modelConfiguration = $this->getDisplay()->getModelConfiguration(); foreach ($this->locales as $locale) { if($locale == 'en') continue; $urls[] = [ 'text' => trans('admin.button.create', [ 'locale' => $locale, 'text' => $this->getDisplay()->getNewEntryButtonText() ]), 'url' => $modelConfiguration->getCreateUrl(['locale' => $locale]) ]; } return [ 'urls' => $urls, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function instanceToArray() : array{\n\n if(!method_exists(self::class,'instance')):\n return [];\n endif;\n\n return self::instance()->toArray();\n }", "public function toArray($instance): array;", "public function getAsArray();", "public function toArray() {\...
[ "0.85852945", "0.8148092", "0.8078163", "0.79248744", "0.7906661", "0.7836803", "0.7836803", "0.7836803", "0.7799238", "0.7780902", "0.7745101", "0.7713653", "0.77060854", "0.7674092", "0.7661095", "0.7654164", "0.7645176", "0.764169", "0.76324755", "0.76228744", "0.7599066",...
0.0
-1
Run the database seeds.
public function run() { // $category_restaurant = new CategoryRestaurant(); // $category_restaurant->name = "platos tipicos"; // $category_restaurant->slug = "platos_tipicos"; // $category_restaurant->save(); // $category_restaurant = new CategoryRestaurant(); // $category_restaurant->name = "comida china"; // $category_restaurant->slug = "comida_china"; // $category_restaurant->save(); // $category_restaurant = new CategoryRestaurant(); // $category_restaurant->name = "comida italiana"; // $category_restaurant->slug = "comida_italiana"; // $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida arabe"; $category_restaurant->slug = "comida_arabe"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida china"; $category_restaurant->slug = "comida_china"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida rapida"; $category_restaurant->slug = "comida_rapida"; $category_restaurant->status = true; $category_restaurant->save(); // $category_restaurant = new CategoryRestaurant(); // $category_restaurant->name = "restaurante de especialidades"; // $category_restaurant->slug = "restaurante_de_especialidades"; // $category_restaurant->status = true; // $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida francesa"; $category_restaurant->slug = "comida_francesa"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida gourmet"; $category_restaurant->slug = "comida_gourmet"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida italiana"; $category_restaurant->slug = "comida_italiana"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida japonesa"; $category_restaurant->slug = "comida_japonesa"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida libanesa"; $category_restaurant->slug = "comida_libanesa"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida local"; $category_restaurant->slug = "comida_local"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida mexicana"; $category_restaurant->slug = "comida_mexicana"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida peruana"; $category_restaurant->slug = "comida_peruana"; $category_restaurant->status = true; $category_restaurant->save(); $category_restaurant = new CategoryRestaurant(); $category_restaurant->name = "Comida tailandesa"; $category_restaurant->slug = "comida_tailandesa"; $category_restaurant->status = true; $category_restaurant->save(); }
{ "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
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
public function stok_barang($id_barang) { $jumlah_barang_masuk=0; $jumlah_barang_keluar=0; $sisa=0; $CI =& get_instance(); $CI->load->model('M_barang'); $masuk['barang_masuk']= $CI->M_barang->barang_masuk($id_barang); foreach($masuk['barang_masuk'] as $data){ $jumlah_barang_masuk= $data->barang_masuk; } $masuk['barang_keluar']= $CI->M_barang->barang_keluar($id_barang); foreach($masuk['barang_keluar'] as $data){ $jumlah_barang_keluar= $data->barang_keluar; } return $sisa=$jumlah_barang_masuk - $jumlah_barang_keluar; // echo "Masuk : $jumlah_barang_masuk <br> keluar : $jumlah_barang_keluar <br> sisa : $sisa"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome...
[ "0.7654609", "0.7413426", "0.7394598", "0.731692", "0.7227223", "0.7227223", "0.71899563", "0.7165393", "0.7151099", "0.7144871", "0.71078676", "0.7078446", "0.7074241", "0.70401293", "0.7029486", "0.7029486", "0.7029486", "0.7029486", "0.7029486", "0.697335", "0.6968791", ...
0.0
-1
Run the database seeds.
public function run() { DB::table('status')->insert([ 'slug' => Str::slug('Verificar'), 'name' => 'Verificar', ]); }
{ "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.80140394", "0.7980541", "0.79775697", "0.79547316", "0.79514134", "0.79500794", "0.79444957", "0.794259", "0.79382807", "0.7937482", "0.7934376", "0.7892533", "0.7881253", "0.78794724", "0.7879101", "0.7875628", "0.787215", "0.7870168", "0.78515327", "0.7850979", "0.784195...
0.0
-1
Register,Create User. GET|HEAD /register
public function register (RegisterAPIRequest $request) { $data = $request->all(); $user = User::create([ 'name' => $data['name'], 'email' => $data['email'], 'password' => Hash::make($data['password']), ]); return $this->sendResponse( array_merge($user->toArray(), ['token' => $user->createToken($user->email)->plainTextToken]), 'Registered successfully ' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register() {\n\t\tif ($this -> Auth -> loggedIn()) {\n\t\t\t$this -> Session -> setFlash('You are already registered.');\n\t\t\t$this -> redirect($this -> referer());\n\t\t}\n\t\tif ($this -> request -> is('post')) {\n\t\t\t$this -> User -> create();\n\t\t\t$data = $this -> request -> data;\n\t\t\t...
[ "0.7815844", "0.74200004", "0.74130434", "0.7387356", "0.72658485", "0.72625166", "0.72350025", "0.72223955", "0.7220533", "0.7193377", "0.71760166", "0.7158779", "0.71441233", "0.70691967", "0.7031413", "0.70298123", "0.7027911", "0.69663376", "0.6964116", "0.69639057", "0.6...
0.0
-1
Buscamos los grupos en los que el usuario pueda estar
function buscar_grupos($tipo_musica, $edad){ $sql = "SELECT id_grupo FROM grupos WHERE tipo_musica='$tipo_musica' AND edad_min<='$edad' AND edad_max>='$edad'"; $resultado = consulta($sql); return $resultado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function leerMisGrupos($entrada) {\n $grupos = [];\n $usuario = trim(filter_var($entrada, FILTER_SANITIZE_STRING));\n\n $con = crearConexion();\n\n $query = \"SELECT propietario, usuario, grupo, nombre, imagen, descripcion FROM usuario_grupo, grupo WHERE usuario = '$usuario' AND usuario_grupo.grupo = g...
[ "0.6895637", "0.6854564", "0.6827048", "0.659759", "0.6573698", "0.6488114", "0.6427531", "0.6318251", "0.62719995", "0.6241651", "0.62235266", "0.6219194", "0.62026584", "0.61738455", "0.616606", "0.6119411", "0.6066926", "0.6010595", "0.60060954", "0.59975594", "0.59895134"...
0.585894
27
Create a new controller instance.
public function __construct() { $this->middleware('auth'); $this->chart_js = new ChartJS(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Display a listing of the resource.
public function index() { $user_id = auth()->user()->id; $permissions = $this->getPermissions($user_id); $enum_category = $this->generateOptionsEnumDt(DrivingLicence::enum_category); $list_category = DrivingLicence::enum_category; $enum_country_expedition = $this->generateOptionsEnumDt(DrivingLicence::enum_country_expedition); $list_country_expedition = DrivingLicence::enum_country_expedition; $enum_state = $this->generateOptionsEnumDt(DrivingLicence::enum_state); $list_state = DrivingLicence::enum_state; $company_id = auth()->user()->company_id; $company = CompanyController::getCompanyByid($company_id); return view( 'admin.driving-licence.index', [ 'enum_category' => $enum_category, 'enum_country_expedition' => $enum_country_expedition, 'enum_state' => $enum_state, 'list_country_expedition' => $list_country_expedition, 'list_category' => $list_category, 'list_state' => $list_state, 'company_name' => ucwords(strtolower($company->company)), 'permissions' => $permissions, ] ); }
{ "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() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $data_input = $request->get('drivingLicence'); $validator = Validator::make( $data_input, [ 'licence_num' => 'required|max:255', 'country_expedition' => 'required|max:255', 'category' => 'required|max:255', 'state' => 'required|max:255', 'expedition_day' => 'required|max:255', 'expi_date' => 'required|max:255', 'driver_information_dni_id' => ['required', 'max:255', 'unique:driving_licence'] ], [ 'driver_information_dni_id.unique' => "Este conductor ya tiene una licencia asignada." ] ); $errors = $validator->errors()->getMessages(); // print_r($errors); foreach ($errors as $key => $value) { if (strpos($value[0], "conductor") !== FALSE) { $check_dni_information = DB::table('driving_licence')->select(DB::raw( 'driving_licence.licence_id, driving_licence.operation' ))->where($key, $data_input[$key])->first(); if($check_dni_information->operation != 'D'){ return response()->json(['errors' => $errors]); } $now = date("Y-m-d H:i:s"); $response = DrivingLicence::where($key, $data_input[$key])->update([ 'driver_information_dni_id' => $data_input['driver_information_dni_id'], 'licence_num' => $data_input['licence_num'], 'country_expedition' => $data_input['country_expedition'], 'category' => $data_input['category'], 'state' => $data_input['state'], 'expedition_day' => $data_input['expedition_day'], 'expi_date' => $data_input['expi_date'], 'operation' => 'U', 'date_operation' => $now, 'user_id' => auth()->id() ]); if ($response) { return response()->json(['response' => 'Información actualizada', 'errors' => []]); } else { return response()->json(['errors' => ['response' => 'No se pudo actualizar la información']]); } } } if (!empty($errors)) { return response()->json(['errors' => $errors]); } else { $driving_licence = DrivingLicence::create([ 'driver_information_dni_id' => $data_input['driver_information_dni_id'], 'licence_num' => $data_input['licence_num'], 'country_expedition' => $data_input['country_expedition'], 'category' => $data_input['category'], 'state' => $data_input['state'], 'expedition_day' => $data_input['expedition_day'], 'expi_date' => $data_input['expi_date'], 'user_id' => auth()->id() ]); if ($driving_licence->licence_num != "") { return response()->json([ 'success' => 'Información registrada.', 'errors' => $errors ]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { }
{ "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.7854417", "0.7692986", "0.72741747", "0.72416574", "0.7173436", "0.706246", "0.70551765", "0.698488", "0.6948513", "0.694731", "0.69425464", "0.6929177", "0.6902573", "0.6899662", "0.6899662", "0.6878983", "0.6865711", "0.6861037", "0.6858774", "0.6847512", "0.6836162", ...
0.0
-1
Update the specified resource in storage.
public function update(Request $request) { $now = date("Y-m-d H:i:s"); $data_updated = $request->all(); $field = $data_updated['fieldch']; $value = $data_updated['valuech']; if ($field == "expi_date") { $day_expedition = strtotime($data_updated['expedition_day']); $day_expiration = strtotime($value); if ($day_expiration <= $day_expedition) { return response()->json(['error' => ['response' => 'Las fecha de vencimiento no puede ser mayor a la fecha de expedición.']]); } } $response = DrivingLicence::where('licence_id', $data_updated['licence_id'])->update([ $field => $value, 'operation' => 'U', 'date_operation' => $now, 'user_id' => auth()->id() ]); if ($response) { return response()->json(['response' => 'Información actualizada', 'error' => []]); } else { return response()->json(['error' => ['response' => 'No se pudo actualizar la información']]); } }
{ "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(Request $request) { $data_delete = $request->all(); $delete = DrivingLicence::where('licence_id', $data_delete['licence_id'])->update(['operation' => 'D']); if ($delete) { return response()->json(['response' => 'Usuario eliminado', 'error' => '']); } else { return response()->json(['error' => 'No se pudo eliminar el usuario']); } }
{ "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
FUNCIONES DEL NUEVO FORMULARIOS //
public function validateInformation(Request $request){ $data_input = $request->get('drivingLicence'); // echo '<pre> licencia'; // print_r($data_input); // die; $message_error_expi_date = 'La fecha de vencimiento no puede ser menor a la de expedición'; $validator = Validator::make( $data_input, [ 'licence_num' => 'required|max:255', 'country_expedition' => 'required|max:255', 'category' => 'required|max:255', 'state' => 'required|max:255', 'expedition_day' => 'required|max:255', 'expi_date' => [new ValidateDate($data_input['expedition_day'],$message_error_expi_date),'required','max:255'], ], [ 'driver_information_dni_id.unique' => "Este conductor ya tiene una licencia asignada.", 'licence_num.required' => "El número de licencia es obligatorio.", 'category.required' => "La categoría de la licencia es obligatoria.", 'state.required' => "El estado de la licencia es obligatoria.", 'expedition_day.required' => "La fecha de expedición es obligatoria.", 'expi_date.required' => "La fecha de vencimiento es obligatoria.", ] ); $errors = $validator->errors()->getMessages(); // print_r($errors); // die; if (!empty($errors)) { return response()->json(['errors' => $errors]); }else{ return response()->json(['response'=>'','errors' => []]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ToonFormulierAfspraak()\n{\n\n}", "public function formulario()\n {\n //\n }", "abstract public function forms();", "public function valiteForm();", "private function generateFormConstantes()\n {\n $inputs = array();\n $inputs[] = array(\n 'type' => 'text',...
[ "0.7364065", "0.7265128", "0.71202123", "0.7035374", "0.6787507", "0.6729539", "0.66477644", "0.66382617", "0.66353154", "0.6630302", "0.6581236", "0.6545987", "0.6515746", "0.6477283", "0.6455043", "0.64368755", "0.64358157", "0.6431236", "0.6409139", "0.63840854", "0.637885...
0.0
-1
Autoload function, invoked by CSpeed extension
private function autoload($className) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function autoload()\r\n\t{\r\n\t\t\r\n\t}", "public static function AutoLoad(){\n spl_autoload_register(function ($file_name){\n $name = preg_replace('~(.*[\\\\\\\\]([A-Z]\\w+))~im', '$2', $file_name);\n MyAutoload::loadControllers($name);//'HomeController'\n MyAuto...
[ "0.77101", "0.75406206", "0.7396098", "0.7188045", "0.7158466", "0.7143164", "0.71152085", "0.7078386", "0.7049809", "0.7031795", "0.70269996", "0.70244336", "0.70203644", "0.7018349", "0.70131475", "0.7012806", "0.70007074", "0.6991195", "0.69249076", "0.6922115", "0.6900714...
0.6482788
90
Setting the alias which you want let the CSpeed to load the class file automatically
function setAlias($aliasKey, $aliasFullPath) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function classAlias() {}", "public function alias( $class, $alias );", "function alias();", "public function using($alias);", "public function setAlias($alias);", "public function setAlias(string $alias);", "public function getAlias()\n {\n return 'import';\n }", "public function ...
[ "0.7188206", "0.6968787", "0.66238093", "0.6570893", "0.64654356", "0.6434902", "0.6394989", "0.6382437", "0.63796896", "0.63678664", "0.62667835", "0.61643785", "0.61308163", "0.61300904", "0.61241716", "0.61151403", "0.61131465", "0.60710233", "0.60516363", "0.6046759", "0....
0.550313
69
Run the WEB MVC process
function run() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run(){\n $this->session->start();\n $this->request->prepareUrl();\n $this->file->require('App/index.php');\n list($controller,$method,$arguments) = $this->route->getProperRoute();\n }", "public function run()\r\n\t{\r\n\t\t$this->loadModule();\r\n\t\r\n\t\t$this->lo...
[ "0.7249254", "0.7087634", "0.70035666", "0.69698536", "0.6889921", "0.6860667", "0.6826756", "0.67993367", "0.6777337", "0.67622477", "0.67355067", "0.6728066", "0.6697686", "0.66827214", "0.6667218", "0.66598463", "0.6659179", "0.66485757", "0.6634652", "0.66341853", "0.6625...
0.0
-1
To use the Composer loade
function setComposerLoader($file) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getComposer();", "private static function composerAutoload(): void\n {\n self::require(ROOT . '/vendor/autoload.php');\n }", "function wp_default_packages_vendor($scripts)\n {\n }", "function wp_cli_app_basic_composer( $args, $assoc_args ) {\n\n\t//Check Composer is ...
[ "0.71935385", "0.67585266", "0.6530148", "0.6485115", "0.6470402", "0.6411774", "0.6373532", "0.6353142", "0.6147149", "0.6117851", "0.60970265", "0.60969216", "0.6079682", "0.60757715", "0.60659194", "0.6052237", "0.6014083", "0.5993471", "0.5979397", "0.5975139", "0.5975139...
0.6330981
8
Factory method for chain ability.
public static function create($content, $jsonOption = 0, $status = 200, $reason = '', array $headers = []) { return new static($content, $jsonOption, $status, $reason, $headers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function chain(PipeChainInterface $chain): PipeChainInterface;", "public function chain() {\n\t\t\treturn $this->chain;\n\t\t}", "public function startChain(){\n\t\treturn $this;\n\t}", "public function startChain(){\n\t\treturn $this;\n\t}", "protected function & returnToChain () {\n // Easi...
[ "0.62692463", "0.6258589", "0.60252357", "0.60252357", "0.5960822", "0.5766906", "0.57072955", "0.5624232", "0.5596343", "0.55671203", "0.5387671", "0.53612983", "0.5316159", "0.52899045", "0.5252863", "0.5251769", "0.52168506", "0.51975703", "0.51684535", "0.5149585", "0.503...
0.0
-1
Returns the wordpress database.
public function getWordpressDatabase(): wpdb { return $this->wpDatabase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getWPDB()\n\t{\n\t\tglobal $wpdb;\n\t\treturn $wpdb;\n\t}", "function getDatabase();", "private function getStagingDb()\n {\n return new \\wpdb($this->clone->databaseUser, $this->clone->databasePassword, $this->clone->databaseDatabase, $this->clone->databaseServer);\n }", "pub...
[ "0.7859304", "0.70852995", "0.7077932", "0.6968717", "0.6891741", "0.68723726", "0.68605936", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68001145", "0.67180413", "0.6708635", "0.6708635", "0.6686446", "0....
0.8324789
0
Returns the user group table name.
public function getUserGroupTable(): string { return $this->wpDatabase->prefix . self::USER_GROUP_TABLE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUsergroupsTable() : string\n\t{\n\t\treturn static::$usergroups_table;\n\t}", "protected function getRuleGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_rule_group')\n ->getMetaData()\n ...
[ "0.8697231", "0.7652109", "0.76379627", "0.752937", "0.74989116", "0.73160106", "0.7293503", "0.7084742", "0.70235115", "0.6982417", "0.6980866", "0.691531", "0.66813916", "0.66658306", "0.66650236", "0.6625764", "0.6617906", "0.6614103", "0.6558976", "0.65094286", "0.6504236...
0.8728481
0
Returns the user group table name.
public function getUserGroupToObjectTable(): string { return $this->wpDatabase->prefix . self::USER_GROUP_TO_OBJECT_TABLE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserGroupTable(): string\n {\n return $this->wpDatabase->prefix . self::USER_GROUP_TABLE_NAME;\n }", "protected function getUsergroupsTable() : string\n\t{\n\t\treturn static::$usergroups_table;\n\t}", "protected function getRuleGroupTableName()\n {\n return $this->get...
[ "0.8728481", "0.8697231", "0.7652109", "0.76379627", "0.74989116", "0.73160106", "0.7293503", "0.7084742", "0.70235115", "0.6982417", "0.6980866", "0.691531", "0.66813916", "0.66658306", "0.66650236", "0.6625764", "0.6617906", "0.6614103", "0.6558976", "0.65094286", "0.650423...
0.752937
4
Returns the last insert id.
public function getLastInsertId() { return $this->wpDatabase->insert_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_last_insert_id()\n\t\t{\n\t\t\treturn( $this->last_insert_id );\n\t\t}", "public static function getLastInsertId()\n {\n return self::$sql->lastInsertId();\n }", "public function getLastInsertID();", "protected function getLastID()\n {\n return $this->driver->getIns...
[ "0.91553587", "0.9139431", "0.9120462", "0.9092285", "0.9073566", "0.9073566", "0.9073566", "0.90323615", "0.9008361", "0.9000702", "0.89982074", "0.8997702", "0.89601016", "0.8959298", "0.8950552", "0.894956", "0.8944239", "0.89412373", "0.89397293", "0.89340246", "0.8924601...
0.89609003
12
Returns the current blog id.
public function getCurrentBlogId() { return $this->wpDatabase->blogid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_current_blog_id()\n {\n }", "function config_get_curr_blog_id () {\n\n\t\t global $current_blog;\n\n\t\t if ( isset( $current_blog ) ) {\n\n\t\t\t return $current_blog->blog_id;\n\t\t }\n\t\t else {\n\n\t\t\t return 1;\n\t\t }\n\t}", "public static function getSiteId()\n {\n return...
[ "0.8948581", "0.8301314", "0.8203324", "0.79924566", "0.7289102", "0.7280569", "0.7257452", "0.7106511", "0.7058306", "0.6932647", "0.68679166", "0.6647498", "0.66309077", "0.6602271", "0.659435", "0.6576548", "0.65586424", "0.6540486", "0.6509589", "0.64931023", "0.64872694"...
0.9044852
0
Returns the blogs table name.
public function getBlogsTable(): string { return $this->wpDatabase->blogs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->pr...
[ "0.77284396", "0.75868684", "0.7393831", "0.73450106", "0.732149", "0.73079574", "0.73074603", "0.72429895", "0.7208636", "0.7201507", "0.72009945", "0.71834207", "0.71639514", "0.7162835", "0.71408516", "0.7114206", "0.71066123", "0.70922893", "0.70774376", "0.7065394", "0.7...
0.8447861
0
Returns the posts table name.
public function getPostsTable(): string { return $this->wpDatabase->posts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t...
[ "0.8391971", "0.76689917", "0.75244534", "0.7472105", "0.73997366", "0.73837143", "0.73707664", "0.736646", "0.7357786", "0.73309463", "0.72773397", "0.7262333", "0.7258643", "0.7247659", "0.72397393", "0.72073734", "0.7192338", "0.71497434", "0.71406394", "0.7041003", "0.701...
0.8467165
0
Returns the term_relationships table name.
public function getTermRelationshipsTable(): string { return $this->wpDatabase->term_relationships; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTermTaxonomyTable(): string\n {\n return $this->wpDatabase->term_taxonomy;\n }", "public function getRelatedTableName()\n\t{\n\t\tif ($this->related) {\n\t\t\tif (\\App\\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {\n\t\t\t\treturn [$this->fieldModel->getTableName() . $this->...
[ "0.77853", "0.70976126", "0.7044314", "0.69772583", "0.6680528", "0.6655438", "0.6631901", "0.6583348", "0.6569672", "0.6517246", "0.6428351", "0.6422322", "0.6401839", "0.6369125", "0.6318498", "0.6302701", "0.63002574", "0.6297165", "0.62906045", "0.6226295", "0.62039226", ...
0.8608707
0
Returns the term_taxonomy table name.
public function getTermTaxonomyTable(): string { return $this->wpDatabase->term_taxonomy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTermRelationshipsTable(): string\n {\n return $this->wpDatabase->term_relationships;\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_na...
[ "0.7485152", "0.73360676", "0.72402406", "0.7171547", "0.70886636", "0.70872533", "0.70712566", "0.7019449", "0.69105506", "0.69039214", "0.68900436", "0.6882208", "0.6785168", "0.67687535", "0.6744322", "0.671576", "0.6705866", "0.66886663", "0.6676103", "0.66744536", "0.665...
0.8746074
0