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
Retrieve the auhtor for the given ID.
public function show($id) { if(empty(Author::find($id))) { return response()->json(['error' => 'Author does not exist'], 404); } return response()->json(Author::find($id), 200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function get_organization($id) {\n global $wpdb;\n return $wpdb->get_row(\n $wpdb->prepare('SELECT * FROM ai_organization WHERE id = %d', $id)\n );\n }", "public function obtener($id)\n {\n $this->db->join('Usuarios','Usuarios.u_id=Areas.a_director');\n ...
[ "0.6321544", "0.6223344", "0.6144375", "0.60622317", "0.59945923", "0.5919582", "0.5913875", "0.5896385", "0.58893764", "0.587488", "0.5869627", "0.58600587", "0.58398974", "0.5805913", "0.57924473", "0.57898706", "0.5782573", "0.57775927", "0.576191", "0.5742409", "0.5736252...
0.0
-1
Store a new author.
public function store(Request $request) { $this->validate($request, [ 'name' => 'required', 'email' => 'required|email|unique:authors', 'bio' => 'required', ]); $author = Author::create($request->all()); return response()->json($author, 201); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store_new_author()\n {\n $author = $this->dispatch( new StoreAuthor( $this->authorDataFormat ) );\n $this->assertTrue( $author->exists() );\n }", "function saveAuthorToMetadata($a_author = \"\")\n\t{\n\t\t$md =& new ilMD($this->getId(), 0, $this->getType());\n\t\t$md_life =& $...
[ "0.8141414", "0.7289865", "0.7005693", "0.6779516", "0.67061484", "0.6669707", "0.66429204", "0.6593916", "0.6593879", "0.6586489", "0.6566397", "0.6566397", "0.6549089", "0.6544887", "0.6543757", "0.6516128", "0.64697385", "0.64652336", "0.6448588", "0.6447467", "0.6436703",...
0.6097321
34
Update the given author.
public function update(Request $request, $id) { $author = Author::findOrFail($id); $this->validate($request, [ 'name' => 'required', 'email' => 'required|email', 'bio' => 'required', ]); $author->update($request->all()); return response()->json($author, 200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateAuthor() {\n $this->put('/api/author/3',\n ['first_name' => 'Karim'] )\n ->seeJson(['first_name' => 'Karim']);\n }", "function updateAuthor(&$author) {\n\t\t$returner = $this->update(\n\t\t\t'UPDATE authors\n\t\t\tSET\tfirst_name = ?,\n\t\t\t\tmiddle_name...
[ "0.8462203", "0.8005925", "0.78261405", "0.73645127", "0.73552096", "0.70964664", "0.709519", "0.70813674", "0.70813674", "0.705324", "0.7050435", "0.7039484", "0.6998898", "0.6991568", "0.6986155", "0.69636196", "0.69571453", "0.69389886", "0.6929387", "0.68639785", "0.68625...
0.5775721
72
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('CREATE TABLE pergunta (id INT AUTO_INCREMENT NOT NULL, questionario_id INT DEFAULT NULL, resposta_id INT DEFAULT NULL, descricao VARCHAR(255) NOT NULL, pontuacao INT NOT NULL, dica VARCHAR(255) NOT NULL, INDEX IDX_124A7194664E1225 (questionario_id), INDEX IDX_124A719479F97242 (resposta_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('CREATE TABLE pergunta_resposta (id INT AUTO_INCREMENT NOT NULL, pergunta_id INT NOT NULL, resposta_id INT NOT NULL, letra VARCHAR(10) NOT NULL, INDEX IDX_158F27FD3C763537 (pergunta_id), INDEX IDX_158F27FD79F97242 (resposta_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('CREATE TABLE questionario (id INT AUTO_INCREMENT NOT NULL, descricao VARCHAR(255) NOT NULL, pontuacao_total INT NOT NULL, tempo INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('CREATE TABLE resposta (id INT AUTO_INCREMENT NOT NULL, descricao VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('CREATE TABLE tentativa (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, questionario_id INT NOT NULL, dica_acionada TINYINT(1) NOT NULL, eliminar_acionado TINYINT(1) NOT NULL, pular_acionado TINYINT(1) NOT NULL, dobrar_acionado TINYINT(1) NOT NULL, desafio_acionado TINYINT(1) NOT NULL, pontuacao INT NOT NULL, INDEX IDX_DCAE46E0A76ED395 (user_id), INDEX IDX_DCAE46E0664E1225 (questionario_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('CREATE TABLE tentativa_resposta (id INT AUTO_INCREMENT NOT NULL, tentativa_id INT NOT NULL, pergunta_id INT NOT NULL, resposta_id INT DEFAULT NULL, respondida TINYINT(1) NOT NULL, acertou TINYINT(1) NOT NULL, pulou TINYINT(1) NOT NULL, usou_dica TINYINT(1) NOT NULL, INDEX IDX_EBC5128058EE7320 (tentativa_id), INDEX IDX_EBC512803C763537 (pergunta_id), INDEX IDX_EBC5128079F97242 (resposta_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, salt VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('ALTER TABLE pergunta ADD CONSTRAINT FK_124A7194664E1225 FOREIGN KEY (questionario_id) REFERENCES questionario (id)'); $this->addSql('ALTER TABLE pergunta ADD CONSTRAINT FK_124A719479F97242 FOREIGN KEY (resposta_id) REFERENCES resposta (id)'); $this->addSql('ALTER TABLE pergunta_resposta ADD CONSTRAINT FK_158F27FD3C763537 FOREIGN KEY (pergunta_id) REFERENCES pergunta (id)'); $this->addSql('ALTER TABLE pergunta_resposta ADD CONSTRAINT FK_158F27FD79F97242 FOREIGN KEY (resposta_id) REFERENCES resposta (id)'); $this->addSql('ALTER TABLE tentativa ADD CONSTRAINT FK_DCAE46E0A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); $this->addSql('ALTER TABLE tentativa ADD CONSTRAINT FK_DCAE46E0664E1225 FOREIGN KEY (questionario_id) REFERENCES questionario (id)'); $this->addSql('ALTER TABLE tentativa_resposta ADD CONSTRAINT FK_EBC5128058EE7320 FOREIGN KEY (tentativa_id) REFERENCES tentativa (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE tentativa_resposta ADD CONSTRAINT FK_EBC512803C763537 FOREIGN KEY (pergunta_id) REFERENCES pergunta (id)'); $this->addSql('ALTER TABLE tentativa_resposta ADD CONSTRAINT FK_EBC5128079F97242 FOREIGN KEY (resposta_id) REFERENCES resposta (id)'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNE...
[ "0.80066043", "0.7914959", "0.7914959", "0.7914959", "0.75719035", "0.7560778", "0.7527931", "0.74982595", "0.7493783", "0.74534315", "0.74463856", "0.7433922", "0.74311835", "0.7427006", "0.7417858", "0.73779964", "0.73755157", "0.73712873", "0.7363846", "0.735142", "0.73292...
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE pergunta_resposta DROP FOREIGN KEY FK_158F27FD3C763537'); $this->addSql('ALTER TABLE tentativa_resposta DROP FOREIGN KEY FK_EBC512803C763537'); $this->addSql('ALTER TABLE pergunta DROP FOREIGN KEY FK_124A7194664E1225'); $this->addSql('ALTER TABLE tentativa DROP FOREIGN KEY FK_DCAE46E0664E1225'); $this->addSql('ALTER TABLE pergunta DROP FOREIGN KEY FK_124A719479F97242'); $this->addSql('ALTER TABLE pergunta_resposta DROP FOREIGN KEY FK_158F27FD79F97242'); $this->addSql('ALTER TABLE tentativa_resposta DROP FOREIGN KEY FK_EBC5128079F97242'); $this->addSql('ALTER TABLE tentativa_resposta DROP FOREIGN KEY FK_EBC5128058EE7320'); $this->addSql('ALTER TABLE tentativa DROP FOREIGN KEY FK_DCAE46E0A76ED395'); $this->addSql('DROP TABLE pergunta'); $this->addSql('DROP TABLE pergunta_resposta'); $this->addSql('DROP TABLE questionario'); $this->addSql('DROP TABLE resposta'); $this->addSql('DROP TABLE tentativa'); $this->addSql('DROP TABLE tentativa_resposta'); $this->addSql('DROP TABLE user'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo'...
[ "0.79504126", "0.786382", "0.76066226", "0.7494023", "0.73207307", "0.72453755", "0.71876216", "0.71545076", "0.7153052", "0.7141973", "0.71357507", "0.7121533", "0.7115573", "0.710582", "0.7098136", "0.7080175", "0.7078857", "0.7073052", "0.7068457", "0.7066428", "0.7053525"...
0.0
-1
Tests a string literal in an action group
public function testGetStepsWithDefaultCase() { $entity = (new EntityDataObjectBuilder()) ->withDataFields(['field1' => 'testValue']) ->build(); $this->setEntityObjectHandlerReturn($entity); $actionGroupUnderTest = (new ActionGroupObjectBuilder())->build(); $steps = $actionGroupUnderTest->getSteps(null, self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'literal']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testStringActions() {\n\t\tRouter::connect('/login', ['controller' => 'sessions', 'action' => 'create']);\n\t\tRouter::connect('/{:controller}/{:action}');\n\n\t\t$result = Router::match(\"Sessions::create\");\n\t\t$this->assertIdentical('/login', $result);\n\n\t\t$result = Router::match(\"Posts::i...
[ "0.62764764", "0.6072664", "0.58614385", "0.5835428", "0.56331867", "0.5625111", "0.55956304", "0.5591387", "0.5558081", "0.5530192", "0.5401893", "0.5362032", "0.53499806", "0.5346619", "0.5319621", "0.53181386", "0.530861", "0.5278461", "0.5267445", "0.5175172", "0.5149816"...
0.0
-1
Tests a data reference in an action group, replaced by the user
public function testGetStepsWithCustomArgs() { $this->setEntityObjectHandlerReturn(function ($entityName) { if ($entityName == "data2") { return (new EntityDataObjectBuilder())->withDataFields(['field2' => 'testValue2'])->build(); } }); $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{arg1.field2}}'])]) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['arg1' => 'data2'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'testValue2']); // entity.field as argument $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{arg1}}'])]) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['arg1' => 'data2.field2'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'testValue2']); // String Data $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{simple}}'])]) ->withArguments([new ArgumentObject('simple', null, 'string')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['simple' => 'override'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'override']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function after_user_activate( $user_id, $user_data, $signup_meta ) {\n $group_id = !empty($_GET['group_id']) ? $_GET['group_id'] : $_POST['group_id'];\n \n if( absint( $group_id ) == $group_id ) {\n ld_update_group_access( $user_id, $group_id );\n }\n}", "function grp_actions($type, $gid) {\n ...
[ "0.56415707", "0.560767", "0.55470955", "0.5546388", "0.55276227", "0.551038", "0.5495411", "0.5478038", "0.54304695", "0.54186237", "0.53151965", "0.5307277", "0.53015924", "0.5266049", "0.5256501", "0.5240287", "0.5219782", "0.52105296", "0.51954484", "0.5177729", "0.515314...
0.0
-1
Tests a data reference in an action group replaced with a persisted reference.
public function testGetStepsWithPersistedArgs() { $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{arg1.field2}}'])]) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['arg1' => '$data3$'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => '$data3.field2$']); // Simple Data $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{simple}}'])]) ->withArguments([new ArgumentObject('simple', null, 'string')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['simple' => '$data3.field2$'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => '$data3.field2$']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function replace( $id, $data, $group = 'default', $expire = 0 ) {\n\t\tif ( $this->get( $id, $group ) === false ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->set( $id, $data, $group, $expire );\n\t}", "public function replace($key, $data, $group = 'default', $expire = 0)\n {\n $previousData = $this->g...
[ "0.57675016", "0.55514055", "0.547953", "0.54131246", "0.539861", "0.5332833", "0.53265536", "0.52373135", "0.5106801", "0.5098673", "0.5043351", "0.50211614", "0.5006713", "0.49993357", "0.4986347", "0.49563968", "0.4953056", "0.4942727", "0.49343452", "0.4926767", "0.489315...
0.4391592
89
Tests a data reference in an action group replaced with a data.field reference.
public function testGetStepsWithNoFieldArg() { $this->setEntityObjectHandlerReturn(function ($entityName) { if ($entityName == "data2") { return (new EntityDataObjectBuilder())->withDataFields(['field2' => 'testValue2'])->build(); } }); $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{arg1}}'])]) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['arg1' => 'data2.field2'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'testValue2']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_update_field_group($field_group)\n{\n}", "public function update_field_group($field_group)\n {\n }", "function acf_update_field_group( $field_group ) {\n\treturn acf_update_internal_post_type( $field_group, 'acf-field-group' );\n}", "function acf_flush_field_group_cache($field_group)\n{\n}...
[ "0.57966816", "0.5575952", "0.5446534", "0.53182226", "0.5272316", "0.5179195", "0.51724285", "0.5086318", "0.5066295", "0.50496334", "0.5048249", "0.5047149", "0.5033409", "0.502626", "0.4991798", "0.4972407", "0.4972036", "0.49545598", "0.49514204", "0.49490663", "0.4947825...
0.48057598
37
Tests a data reference in an action group resolved with its default state.
public function testGetStepsWithNoArgs() { $this->setEntityObjectHandlerReturn(function ($entityName) { if ($entityName == "data1") { return (new EntityDataObjectBuilder())->withDataFields(['field1' => 'testValue'])->build(); } }); $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{data1.field1}}'])]) ->build(); $steps = $actionGroupUnderTest->getSteps(null, self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'testValue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetData() {\r\n $action = $this->_action;\r\n $this->assertEquals(null, $action->getData());\r\n\r\n $action->setData(array());\r\n $this->assertEquals(array(), $action->getData());\r\n }", "public function testGetStepsWithDefaultCase()\n {\n $entity =...
[ "0.585288", "0.5543096", "0.53329015", "0.5300506", "0.52045625", "0.5021562", "0.49911073", "0.49374685", "0.4908047", "0.4897302", "0.4858217", "0.483455", "0.48013476", "0.4773542", "0.4728716", "0.47107366", "0.47061822", "0.47039708", "0.46993744", "0.46973863", "0.46814...
0.4987926
7
Tests a parameterized section reference in an action group resolved with user args.
public function testGetStepsWithParameterizedArg() { // Mock Entity Object Handler $this->setEntityObjectHandlerReturn(function ($entityName) { if ($entityName == "data2") { return (new EntityDataObjectBuilder())->withDataFields(['field2' => 'testValue2'])->build(); } }); // mock the section object handler response $element = new ElementObject("element1", "textArea", ".selector {{var1}}", null, null, true); $section = new SectionObject("testSection", ["element1" => $element]); // bypass the private constructor $sectionInstance = AspectMock::double(SectionObjectHandler::class, ['getObject' => $section])->make(); AspectMock::double(SectionObjectHandler::class, ['getInstance' => $sectionInstance]); $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects( [new ActionObject('action1', 'testAction', ['selector' => '{{section1.element1(arg1.field2)}}'])] ) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); // XML Data $steps = $actionGroupUnderTest->getSteps(['arg1' => 'data2'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['selector' => '.selector testValue2']); // Persisted Data $steps = $actionGroupUnderTest->getSteps(['arg1' => '$data2$'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['selector' => '.selector $data2.field2$']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isActionAllowed($section, $reference, $action = NULL) ;", "public function testGetStepsWithParameterizedSimpleArg()\n {\n // Mock Entity Object Handler\n $this->setEntityObjectHandlerReturn(function ($entityName) {\n if ($entityName == \"data2\") {\n ret...
[ "0.58181256", "0.55953324", "0.53428715", "0.5264419", "0.52022636", "0.51012194", "0.4941738", "0.48870313", "0.4838513", "0.47824267", "0.47665146", "0.4740185", "0.47240394", "0.47177273", "0.47083986", "0.46732798", "0.46647125", "0.46636122", "0.46594095", "0.46525747", ...
0.5897048
0
Tests a parameterized section reference in an action group resolved with user simpleArgs.
public function testGetStepsWithParameterizedSimpleArg() { // Mock Entity Object Handler $this->setEntityObjectHandlerReturn(function ($entityName) { if ($entityName == "data2") { return (new EntityDataObjectBuilder())->withDataFields(['field2' => 'testValue2'])->build(); } }); // mock the section object handler response $element = new ElementObject("element1", "textArea", ".selector {{var1}}", null, null, true); $section = new SectionObject("testSection", ["element1" => $element]); // bypass the private constructor $sectionInstance = AspectMock::double(SectionObjectHandler::class, ['getObject' => $section])->make(); AspectMock::double(SectionObjectHandler::class, ['getInstance' => $sectionInstance]); $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects( [new ActionObject('action1', 'testAction', ['selector' => '{{section1.element1(simple)}}'])] ) ->withArguments([new ArgumentObject('simple', null, 'string')]) ->build(); // String Literal $steps = $actionGroupUnderTest->getSteps(['simple' => 'stringLiteral'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['selector' => '.selector stringLiteral']); // String Literal w/ data-like structure $steps = $actionGroupUnderTest->getSteps(['simple' => 'data2.field2'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['selector' => '.selector data2.field2']); // Persisted Data $steps = $actionGroupUnderTest->getSteps(['simple' => '$someData.field1$'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['selector' => '.selector $someData.field1$']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetStepsWithParameterizedArg()\n {\n // Mock Entity Object Handler\n $this->setEntityObjectHandlerReturn(function ($entityName) {\n if ($entityName == \"data2\") {\n return (new EntityDataObjectBuilder())->withDataFields(['field2' => 'testValue2'])->bu...
[ "0.5803498", "0.5566526", "0.53851414", "0.5227098", "0.51804197", "0.50407124", "0.48020297", "0.4778006", "0.47397548", "0.47348225", "0.47177112", "0.46829703", "0.46779534", "0.4668429", "0.46591905", "0.4640222", "0.46230632", "0.46077523", "0.4570732", "0.4569551", "0.4...
0.6504436
0
Tests a data reference in an action group resolved with a persisted reference used in another function.
public function testGetStepsWithOuterScopePersistence() { $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([new ActionObject('action1', 'testAction', ['userInput' => '{{arg1.field1}}'])]) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $steps = $actionGroupUnderTest->getSteps(['arg1' => '$$someData$$'], self::ACTION_GROUP_MERGE_KEY); $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => '$$someData.field1$$']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkData($callable, $params = null, $group = null){\r\n \t\t$group = ($group) ? $group : $this->_options['defaultgroup'];\r\n \r\n \t\t// Get the storage handler\r\n \t\t$handler =& $this->_getStorage();\r\n \t\tif (!JError::isError($handler) && $this->_options['caching...
[ "0.55856687", "0.5303218", "0.5226912", "0.5214344", "0.5114084", "0.510651", "0.50734234", "0.50573486", "0.49922308", "0.49728733", "0.49337897", "0.4901503", "0.4877171", "0.48696864", "0.48554236", "0.48498982", "0.48407695", "0.482481", "0.47914854", "0.4770309", "0.4648...
0.56405944
0
Tests an action group with mismatching args.
public function testExceptionOnMissingActions() { $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $this->expectException(TestReferenceException::class); $this->expectExceptionMessageRegExp('/Arguments missed .* for actionGroup/'); $actionGroupUnderTest->getSteps(['arg2' => 'data1'], self::ACTION_GROUP_MERGE_KEY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionOnMissingArguments()\n {\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->withArguments([new ArgumentObject('arg1', null, 'entity')])\n ->build();\n\n $this->expectException(TestReferenceException::class);\n $this->expectExcep...
[ "0.6711915", "0.5943424", "0.5873942", "0.58558935", "0.58453363", "0.56876296", "0.56719136", "0.56472015", "0.5643773", "0.5631943", "0.55989444", "0.5559942", "0.5527703", "0.5479974", "0.5437495", "0.5410346", "0.5408815", "0.5405819", "0.54036486", "0.53920025", "0.53726...
0.7050148
0
Tests an action group with missing args.
public function testExceptionOnMissingArguments() { $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $this->expectException(TestReferenceException::class); $this->expectExceptionMessageRegExp('/Arguments missed .* for actionGroup/'); $actionGroupUnderTest->getSteps(null, self::ACTION_GROUP_MERGE_KEY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionOnMissingActions()\n {\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->withArguments([new ArgumentObject('arg1', null, 'entity')])\n ->build();\n\n $this->expectException(TestReferenceException::class);\n $this->expectExcepti...
[ "0.7223563", "0.6607539", "0.6257137", "0.6115341", "0.57558686", "0.5725823", "0.56694883", "0.5650369", "0.5647196", "0.5646793", "0.5584209", "0.557697", "0.5561265", "0.5554617", "0.54801255", "0.54650414", "0.5450285", "0.54251176", "0.54036295", "0.53963804", "0.5380207...
0.67242515
1
Tests the stepKey replacement with "stepKey + invocationKey" process filter Specific to actions that make it past a "require stepKey replacement" filter
public function testStepKeyReplacementFilteredIn() { $createStepKey = "createDataStepKey"; $updateStepKey = "updateDataStepKey"; $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([ new ActionObject( $updateStepKey, ActionGroupObject::STEPKEY_REPLACEMENT_ENABLED_TYPES[6], ['selector' => 'value'] ), new ActionObject( $createStepKey, ActionGroupObject::STEPKEY_REPLACEMENT_ENABLED_TYPES[7], ['selector' => 'value'] ) ]) ->build(); $result = $actionGroupUnderTest->extractStepKeys(); $this->assertContains($updateStepKey, $result); $this->assertContains($createStepKey, $result); $this->assertCount(2, $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testStepKeyReplacementFilteredOut()\n {\n $clickStepKey = \"clickStepKey\";\n $fillFieldStepKey = \"fillFieldStepKey\";\n $clickAction = \"click\";\n $fillFieldAction =\"fillField\";\n\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->wi...
[ "0.72146386", "0.5390567", "0.5371273", "0.5311302", "0.53003556", "0.5131763", "0.49525613", "0.48656347", "0.4828903", "0.47970685", "0.4785259", "0.47845724", "0.4775462", "0.47712243", "0.47585717", "0.47413877", "0.4722941", "0.47062543", "0.46786904", "0.46491084", "0.4...
0.7201753
1
Tests the stepKey replacement with "stepKey + invocationKey" process filter Specific to actions that make are removed by a "require stepKey replacement" filter
public function testStepKeyReplacementFilteredOut() { $clickStepKey = "clickStepKey"; $fillFieldStepKey = "fillFieldStepKey"; $clickAction = "click"; $fillFieldAction ="fillField"; $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([ new ActionObject($clickStepKey, $clickAction, ['selector' => 'value']), new ActionObject($fillFieldStepKey, $fillFieldAction, ['selector' => 'value']) ]) ->build(); $result = $actionGroupUnderTest->extractStepKeys(); $this->assertNotContains($clickStepKey, $result); $this->assertNotContains($fillFieldStepKey, $result); $this->assertCount(0, $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testStepKeyReplacementFilteredIn()\n {\n $createStepKey = \"createDataStepKey\";\n $updateStepKey = \"updateDataStepKey\";\n\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->withActionObjects([\n new ActionObject(\n ...
[ "0.71910894", "0.5436694", "0.5326946", "0.51743805", "0.5116195", "0.49828285", "0.49818963", "0.49506244", "0.48371398", "0.48229936", "0.48151606", "0.4800575", "0.47229818", "0.4705595", "0.46993807", "0.46828488", "0.46654025", "0.46615893", "0.46502796", "0.46337062", "...
0.74772835
0
This function takes a desired return for the EntityObjectHandler mock and performs set up of the mock for the duration of a single test case.
private function setEntityObjectHandlerReturn($return) { $instance = AspectMock::double(DataObjectHandler::class, ['getObject' => $return]) ->make(); // bypass the private constructor AspectMock::double(DataObjectHandler::class, ['getInstance' => $instance]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp()\n {\n $this->mock = m::mock('Eloquent', 'App\\User', $this->value);\n $this->object = new UserEntity($this->mock);\n }", "protected function _prepareMockObjects()\n {\n $this->requestMock = $this->getMockBuilder(\\Magento\\Framework\\App\\Request\\Http::cl...
[ "0.6571329", "0.6288633", "0.6287574", "0.61066675", "0.60748005", "0.600548", "0.59620893", "0.59560007", "0.5941131", "0.5935079", "0.5923942", "0.5920214", "0.5917649", "0.59144336", "0.59088993", "0.5873484", "0.5873246", "0.5869505", "0.58603555", "0.58421516", "0.584032...
0.6584198
0
Given a set of steps and an expected custom attribute value, this function performs a set of asserts to validate information such as step key and step attribute value.
private function assertOnMergeKeyAndActionValue($actions, $expectedValue, $expectedMergeKey = null) { $expectedMergeKey = $expectedMergeKey ?? ActionGroupObjectBuilder::DEFAULT_ACTION_OBJECT_NAME . self::ACTION_GROUP_MERGE_KEY; $this->assertArrayHasKey($expectedMergeKey, $actions); $action = $actions[$expectedMergeKey]; $this->assertEquals($expectedMergeKey, $action->getStepKey()); $this->assertEquals($expectedValue, $action->getCustomActionAttributes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function passes($attribute, $value)\n {\n\n\n }", "public function passes($attribute, $value)\n {\n $request = app(\\Illuminate\\Http\\Request::class);\n if (isset($request->quantity) || isset($request->new_item_quantity) || isset($request->item_quantity)) {\n if ( isset(...
[ "0.55683565", "0.5322462", "0.51976776", "0.5180135", "0.51663834", "0.5120124", "0.511801", "0.50988144", "0.50972587", "0.50633883", "0.5058652", "0.50252783", "0.5020123", "0.5006403", "0.4993948", "0.49757075", "0.49186218", "0.49123555", "0.48832652", "0.48544002", "0.48...
0.4723032
29
constructor para realizar la conexion
public function __construct(){ $this->conexion = new Conexion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n $this->conecta();\n }", "public function __construct()\n {\n $this->conn = new Conexion;\n }", "function __construct()\r\n\t{\r\n\t\t$this->conexion=new Conect();\r\n\t}", "public function __construct()\n {\n $this->conexion = Conexion::conec...
[ "0.841624", "0.8311075", "0.8252114", "0.82176703", "0.81662136", "0.8165178", "0.81444615", "0.81216776", "0.8061923", "0.8038903", "0.801864", "0.801864", "0.80055714", "0.799905", "0.78927773", "0.78900176", "0.78553885", "0.7852826", "0.78296715", "0.7825244", "0.7819913"...
0.7590818
48
Metodo set y get
public function __SET($att, $valor){ $this->$att = $valor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setY($y) {}", "public function setY($y);", "public function getY() {}", "public function getY() {}", "private function setY( $y )\n\t{\n\t\t$this->y = Args::int($y)->required()->min(0)->value();\n\t}", "public function getY();", "function SetY($y)\n\t\t{\n\t\t\t$this->x=$this->lMargin;\...
[ "0.6363728", "0.6136115", "0.6089541", "0.6089541", "0.6062137", "0.59562266", "0.58613324", "0.5780673", "0.5758664", "0.57502437", "0.56107354", "0.5470146", "0.5464834", "0.5464834", "0.5432925", "0.54275966", "0.5425754", "0.5396755", "0.53566086", "0.53531986", "0.530337...
0.0
-1
metodo para listar los usuarios
public function listarUsuarios(){ $sql = "SELECT U.IdUsuario, U.NombreCompleto, U.Usuario, U.Correo, U.Estado, U.IdRol, R.Rol FROM usuarios AS U INNER JOIN roles AS R ON U.IdRol = R.IdRol;"; $tabla = $this->conexion->getTable($sql); return $tabla; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ListarUsuarios()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios \";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}", "function listar_usuarios() {\n\t\t$query = \"SELECT colaboradores.*, colaboradores_permisos...
[ "0.78207797", "0.76048064", "0.76033914", "0.75726014", "0.7557005", "0.7498634", "0.749763", "0.7495554", "0.7481407", "0.74708736", "0.74682623", "0.746785", "0.7467094", "0.7442689", "0.743069", "0.7408872", "0.73743933", "0.7362525", "0.7352632", "0.73506176", "0.73305756...
0.68467873
91
metodo para listar los roles
public function listarRoles(){ $sql = "SELECT * FROM roles;"; $roles = $this->conexion->getTable($sql); return $roles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want ...
[ "0.83633816", "0.83633816", "0.83633816", "0.83633816", "0.81755066", "0.8131361", "0.8114498", "0.81133765", "0.8090614", "0.807609", "0.804459", "0.8039804", "0.8006764", "0.798572", "0.7983123", "0.7980903", "0.7970759", "0.7948706", "0.7948706", "0.7948706", "0.7865419", ...
0.77110887
26
metodo para insertar usuarios
public function insertarUsuario(){ $sql = "INSERT INTO usuarios(Usuario, Clave, NombreCompleto, Correo, IdRol, Estado) VALUES('{$this->usuario}','{$this->clave}','{$this->nombreCompleto}', '{$this->correo}','{$this->idRol}', '{$this->estado}');"; $res = $this->conexion->setQuery($sql); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert() {\n\t\t$this->insert_user();\n\t}", "function crearUsuario(){\n\t\t$params = array(\n\t\t\t':nombres' => $_POST['nombres'],\n\t\t\t':apellidos' => $_POST['apellidos'],\n\t\t\t':direccion' => $_POST['direccion'],\n\t\t\t':foto' => $_POST['foto'],\n\t\t\t':email' => $_POST['email'],\n\t\t\...
[ "0.74669296", "0.74242127", "0.73713857", "0.7251889", "0.7240292", "0.7210654", "0.7209995", "0.7209995", "0.71314096", "0.7110059", "0.71012497", "0.7093611", "0.7059105", "0.70265627", "0.7024429", "0.70104", "0.7003548", "0.7002281", "0.70022476", "0.70001376", "0.6999548...
0.6817806
38
metodo para editar usuario.
public function editarUsuario(){ $sql = "UPDATE usuarios SET Usuario = '{$this->usuario}', NombreCompleto = '{$this->nombreCompleto}', Correo = '{$this->correo}', IdRol = '{$this->idRol}' WHERE IdUsuario = '{$this->idUsuario}'"; $res = $this->conexion->setQuery($sql); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editar_usuario($id_usuario, $nombre, $apellido, $cedula, $telefono, $email, $direccion, $cargo, $usuario, $password1, $password2, $estado, $permisos)\n {\n\n $conectar = parent::conexion();\n parent::set_names();\n require_once(\"Usuarios.php\");\n $usuarios = new Usuarios();\n //ve...
[ "0.790183", "0.7828475", "0.7823068", "0.7779322", "0.7777758", "0.77514607", "0.7629311", "0.7566047", "0.7548709", "0.74989766", "0.74749464", "0.74551475", "0.74395186", "0.7435375", "0.74068046", "0.73974115", "0.7383274", "0.73637915", "0.7329798", "0.7320311", "0.731028...
0.7320282
20
metodo para cambiar estado del usuario
public function cambiarEstado(){ $sql = "UPDATE usuarios SET Estado = (CASE WHEN Estado = 1 THEN 0 ELSE 1 END) WHERE IdUsuario = '{$this->idUsuario}';"; $res = $this->conexion->setQuery($sql); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updatedUsuario()\n {\n // Notificamos al otro componente el cambio\n $this->emit('cambioUsuario', $this->usuario);\n }", "public function openUser()\n {\n $this->isUser = true;\n }", "function verificalogin(){\n if(!isset($this->session->datosusu)){\n re...
[ "0.6455207", "0.63300776", "0.63046795", "0.6186323", "0.61799073", "0.6153554", "0.61444426", "0.61425465", "0.60665756", "0.6041984", "0.60292757", "0.6024787", "0.6024632", "0.600542", "0.5988096", "0.5979015", "0.59667397", "0.59580386", "0.5947786", "0.59324056", "0.5920...
0.0
-1
metodo para eliminar usuario
public function eliminarUsuario(){ $sql ="DELETE FROM usuarios WHERE IdUsuario = '{$this->idUsuario}';"; $res = $this->conexion->setQuery($sql); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteUsuario(){\n $conexion = new Database();\n\t\tif ($this->codigo){\n $sql = sprintf('DELETE FROM agenda_usuario WHERE usuario_id = %d',\n $this->codigo);\n $conexion->exec( $sql );\n }\n }", "public function eliminarUsuario()\n {\n ...
[ "0.7947555", "0.7922452", "0.77157605", "0.7622332", "0.75866574", "0.7546615", "0.75427824", "0.7513886", "0.7512889", "0.74368805", "0.7381548", "0.73614705", "0.73560697", "0.73514766", "0.733505", "0.7331273", "0.7317113", "0.73118526", "0.73096913", "0.72904795", "0.7277...
0.7583335
5
crear metodo paar retornar los datos del usuario
public function getDatosUsuario(){ $sql = "SELECT * FROM usuarios WHERE Usuario = '{$this->usuario}' AND Clave='{$this->clave}';"; $data = $this->conexion->getTable($sql); $row = mysqli_fetch_assoc($data); return $row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function datos_usuario(){\n\t\t$data = json_decode(json_encode($_SESSION['USER']),true);\n\n\t\t$result = $this->_db->query(\"\n\t\tSELECT a.roleid FROM \".DB_PRE.\"role_assignments a, \".DB_PRE.\"context b \n\t\tWHERE a.userid = '$data[id]' AND a.contextid = b.id AND b.instanceid =\".ID_CURSO\n\t\t);\n\n\t...
[ "0.7569714", "0.74899966", "0.73902774", "0.73869604", "0.7370471", "0.7360455", "0.73283273", "0.73048264", "0.72857463", "0.72098", "0.7176482", "0.7169043", "0.716823", "0.71600366", "0.7152903", "0.713124", "0.7116144", "0.71130174", "0.71078575", "0.71045876", "0.7088740...
0.67342037
76
Run the database seeds.
public function run() { Reply::truncate(); $tickets = Ticket::all(); $faker = Faker::create(); Reply::create([ 'ticket_id' => $tickets[0]->id, 'user_id' => 1, 'name' => null, 'message' => $faker->paragraphs(3, true) ]); Reply::create([ 'ticket_id' => $tickets[4]->id, 'user_id' => 1, 'name' => null, 'message' => $faker->paragraphs(3, true) ]); Reply::create([ 'ticket_id' => $tickets[4]->id, 'user_id' => null, 'name' => $tickets[4]->name, 'message' => $faker->paragraphs(3, true) ]); }
{ "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
An English category name that is recommended for a product.
public function getCategoryName() { if (is_null($this->categoryName)) { /** @psalm-var ?string $data */ $data = $this->raw(self::FIELD_CATEGORY_NAME); if (is_null($data)) { return null; } $this->categoryName = (string) $data; } return $this->categoryName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function productCategoryName() {\n\t\treturn $this->generator->randomElement( static::$categories );\n\t}", "public function categoryName() {\n $categories = array(\n 'Fantasy',\n 'Technology',\n 'Thriller',\n 'Documentation',\n );\n\n retur...
[ "0.7914706", "0.74377656", "0.74061257", "0.73059916", "0.72884464", "0.72068703", "0.7170048", "0.7143993", "0.70875216", "0.7063811", "0.70516044", "0.70138085", "0.70138085", "0.70138085", "0.6877625", "0.68625176", "0.6844249", "0.6844249", "0.6834082", "0.68192506", "0.6...
0.6646814
23
Probability score for the category recommendation.
public function getConfidence() { if (is_null($this->confidence)) { /** @psalm-var ?float $data */ $data = $this->raw(self::FIELD_CONFIDENCE); if (is_null($data)) { return null; } $this->confidence = (float) $data; } return $this->confidence; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateProbabilities() {\r\n\t\tApp::import('Model', 'LilBlogs.NbWordfreq'); $this->NbWordfreq = new NbWordfreq();\r\n\t\t$freqTable = $this->NbWordfreq->table;\r\n\t\tif (!empty($this->NbWordfreq->tablePrefix)) $freqTable = $this->NbWordfreq->tablePrefix.$freqTable;\r\n \t// first update the word count...
[ "0.6382101", "0.5864762", "0.564101", "0.55721265", "0.55614066", "0.54149026", "0.5389419", "0.5271628", "0.5268445", "0.5262058", "0.5241159", "0.52387077", "0.5187566", "0.5184866", "0.5183988", "0.5182937", "0.51759905", "0.5130408", "0.51261747", "0.5113062", "0.5106066"...
0.0
-1
echo $idc . ' ' . $idp . ' ' . $newComment;
function validComment($newComment, $idc, $idp) { /* $oldComment = modifComment($oldComment); $newComment = modifComment($newComment); require('view/frontend/editCommentView.php');*/ validModifComment($newComment, $idc); header('Location: index.php?action=post&id=' . $idp); // echo $idp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildRecentComments($comments) {\n foreach($comments as $comment){\n echo \"<div class=\\\"panel-body\\\">\\n\n <p>$comment[1] on <a href=\\\"/phase5/pages/info.php?id=$comment[4]\\\">$comment[3]</a></p>\\n\n <p class=\\\"well\\\">$comment[0]</p>\\n\n ...
[ "0.6307052", "0.60484123", "0.58101135", "0.5808664", "0.5762372", "0.573787", "0.5729067", "0.5718034", "0.5692187", "0.5667434", "0.5600812", "0.5598895", "0.55894434", "0.55816674", "0.5576942", "0.5563469", "0.5555039", "0.55300665", "0.55117494", "0.5495308", "0.5487944"...
0.59546244
2
Buscar roles por nombre y ordenados por nombre.
public static function buscarPorNombre($nombreRol): array { $expresion = "/^[a-z_ ]{0,15}$/"; if (preg_match($expresion, mb_strtolower($nombreRol))) { $consulta = "SELECT * FROM vw_rol WHERE nombre LIKE '%{$nombreRol}%' ORDER BY nombre"; return Conexion::getInstancia()->seleccionar($consulta); } return array(0, "El nombre no cumple con el formato requerido"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function listarRoles(){\n\t\t\t$sql = \"SELECT CodRole,Nombre,Estado FROM role WHERE Estado='1' ORDER BY Nombre\";\n\t\t\treturn ejecutarConsulta($sql);\n\t\t}", "public function findRol...
[ "0.7423154", "0.7423154", "0.7423154", "0.7423154", "0.740639", "0.7295359", "0.70970446", "0.7069162", "0.70189154", "0.6864678", "0.68530214", "0.68354887", "0.68214023", "0.67871666", "0.67227626", "0.6659902", "0.6659902", "0.6659902", "0.6650611", "0.6620221", "0.6589718...
0.0
-1
Listar todos los roles ordernados por nombre. Selecciona el id y nombre de cada uno de los roles guardados.
public static function listarRoles(): array { $consulta = "SELECT * FROM rol ORDER BY nombre"; return Conexion::getInstancia()->seleccionar($consulta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listarRoles(){\n\t\t\t$sql = \"SELECT CodRole,Nombre,Estado FROM role WHERE Estado='1' ORDER BY Nombre\";\n\t\t\treturn ejecutarConsulta($sql);\n\t\t}", "public function listarRoles()\n {\n //return AutorizadorRol::all();\n\n $roles = AutorizadorRolAccion::join('autorizador_roles...
[ "0.7626586", "0.68903637", "0.6789378", "0.67386603", "0.67336816", "0.66068685", "0.65842694", "0.65399075", "0.6528065", "0.6501007", "0.64997554", "0.64497507", "0.64450026", "0.64397794", "0.643844", "0.643844", "0.643844", "0.643844", "0.6404932", "0.639373", "0.63833874...
0.73717165
1
Listar un resumen limitado de roles. Selecciona el id, nombre, cantidad de usuarios asociados y cantidad de permisos asociados para uno de los roles segun el limite establecido.
public static function listarResumenRoles($limite): array { if ($limite > 0) { $consulta = "SELECT * FROM vw_rol ORDER BY id DESC LIMIT {$limite}"; return Conexion::getInstancia()->seleccionar($consulta); } return array(0, "No se estableció un limite válido"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listarRoles(){\n\t\t\t$sql = \"SELECT CodRole,Nombre,Estado FROM role WHERE Estado='1' ORDER BY Nombre\";\n\t\t\treturn ejecutarConsulta($sql);\n\t\t}", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function indexRoles()\n ...
[ "0.7244106", "0.717365", "0.7018752", "0.70109254", "0.6955933", "0.693262", "0.693262", "0.693262", "0.693262", "0.69078493", "0.68993795", "0.6840279", "0.6819489", "0.67942625", "0.67924464", "0.678074", "0.6780577", "0.6772386", "0.6747796", "0.6741106", "0.67353255", "...
0.7205636
1
Returns the principal ID.
public function getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPrincipalId()\n {\n if (array_key_exists(\"principalId\", $this->_propDict)) {\n return $this->_propDict[\"principalId\"];\n } else {\n return null;\n }\n }", "public function getPrincipal() {\n return $this->principal;\n }", "public...
[ "0.8723103", "0.71026117", "0.7037248", "0.6959003", "0.69472176", "0.6811821", "0.6706177", "0.66861", "0.66861", "0.66861", "0.6676584", "0.6620191", "0.6615845", "0.6604509", "0.6588969", "0.658857", "0.6548947", "0.6541387", "0.6536758", "0.6523039", "0.65201414", "0.65...
0.0
-1
Sets the principal ID
public function setId($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPrincipalId($val)\n {\n $this->_propDict[\"principalId\"] = $val;\n return $this;\n }", "public function setPrincipalId(?string $value): void {\n $this->getBackingStore()->set('principalId', $value);\n }", "public function getPrincipalId()\n {\n if (ar...
[ "0.7764722", "0.74994487", "0.64850694", "0.63510585", "0.62395316", "0.615987", "0.6138809", "0.5984786", "0.58468956", "0.5838161", "0.58157444", "0.5782137", "0.5778441", "0.5761704", "0.57538056", "0.57513374", "0.57077646", "0.56931454", "0.56845754", "0.56813616", "0.56...
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Create a new notification instance.
public function __construct($from) { $this->from = $from; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create($notification){\n }", "public static function createNotification($type, $eventid){\n\t\t$notification = new Notification; \n\t\t$notification->type = $type;\n\t\t$notification->eventid = $eventid;\n\t\t$notification->time = date('Y-m-d H:i:s');\n\t\t$notification->save();\n\t\tretu...
[ "0.8276063", "0.72309536", "0.7192113", "0.71250874", "0.7123231", "0.70414555", "0.6982398", "0.6982398", "0.6982398", "0.69165224", "0.6844303", "0.68205667", "0.6801263", "0.6776018", "0.6589725", "0.6531073", "0.6507233", "0.65047646", "0.6503655", "0.64437956", "0.641349...
0.0
-1
Get the notification's delivery channels.
public function via($notifiable) { return [TwilioChannel::class]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotificationChannels()\n {\n if (array_key_exists(\"notificationChannels\", $this->_propDict)) {\n return $this->_propDict[\"notificationChannels\"];\n } else {\n return null;\n }\n }", "public function getDistributionChannels();", "public func...
[ "0.78077316", "0.7333707", "0.7127785", "0.7089724", "0.7087921", "0.70300424", "0.69931364", "0.6973003", "0.6951073", "0.6927183", "0.68472975", "0.67785895", "0.6697527", "0.6530563", "0.65100604", "0.6496754", "0.6474866", "0.6446399", "0.643471", "0.6423392", "0.64229727...
0.0
-1
Returns LocalizedException[] array to be compatible with current Implementation in Web API which relies on this behavior
public function getErrors();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExceptions();", "public function getErrorMessages()\n {\n $translator = Mage::helper('importexport');\n $messages = array();\n\n foreach ($this->_errors as $errorCode => $errorRows) {\n if (isset($this->_messageTemplates[$errorCode])) {\n $er...
[ "0.67616457", "0.6750641", "0.67473006", "0.65946", "0.6576876", "0.6571398", "0.6569079", "0.6530341", "0.65291256", "0.65291256", "0.6427181", "0.64034414", "0.6400445", "0.6387168", "0.6377751", "0.6346886", "0.6312215", "0.6303978", "0.62870264", "0.62740266", "0.62568307...
0.0
-1
Send JSON to the client.
public function testAction() { $reponse = new Reponse (); $reponse->data = $this->person->toArray (); // $input_arrays; // $this->societe->save(); $reponse->message = "TXT_PERSON_SENT"; $reponse->success = true; $this->render ( $reponse ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sendJson($json) {\n\t header('Content-Type: application/json');\n\t echo json_encode($json);\n\t}", "protected abstract function send($json);", "public function send()\n {\n $this->jsonManager->domain = $this->uri;\n $this->jsonManager->port = $this->port;\n ...
[ "0.7664531", "0.75291", "0.73974764", "0.72468185", "0.7103002", "0.7024999", "0.67069995", "0.6617192", "0.6598396", "0.6531163", "0.63269454", "0.63181686", "0.6216794", "0.61660963", "0.6148657", "0.6112344", "0.6028644", "0.6020143", "0.60155624", "0.60065454", "0.6005837...
0.0
-1
try to get the tag where the parent folder is specified
public function assetThumbnailListAction() { $parentFolder = $this->document->getElement ( "parentFolder" ); if ($parentFolder) { $parentFolder = $parentFolder->getElement (); } if (! $parentFolder) { // default is the home folder $parentFolder = Asset::getById ( 1 ); } // get all children of the parent $list = new \Asset\Listing (); $list->setCondition ( "path like ?", $parentFolder->getFullpath () . "%" ); $this->view->list = $list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParentFolder() {}", "public function getParentFolder() {}", "public function getParentFolder() {}", "public function parentTag(): ?string\n {\n return null;\n }", "function get_post_parent($post = \\null)\n {\n }", "public function find_parent_by_tag($tag)\r\n\t{\r\n...
[ "0.66096365", "0.66088873", "0.66088873", "0.6501534", "0.6483397", "0.6426884", "0.64138013", "0.63204235", "0.62081325", "0.616778", "0.61429715", "0.6059597", "0.6059597", "0.6053329", "0.60448045", "0.5935197", "0.5935197", "0.5935197", "0.5935197", "0.5935197", "0.593519...
0.0
-1
PHP will fatal error if we attempt to use the DateTime class without this being set.
public function getEventsAction() { date_default_timezone_set ( 'UTC' ); // Short-circuit if the client did not give us a date range. if (! isset ( $_GET ['start'] ) || ! isset ( $_GET ['end'] )) { die ( "Please provide a date range." ); } // Parse the start/end parameters. // These are assumed to be ISO8601 strings with no time nor timezone, like "2013-12-29". // Since no timezone will be present, they will parsed as UTC. $range_start = Object\Shift::parseDateTime ( $_GET ['start'] ); $range_end = Object\Shift::parseDateTime ( $_GET ['end'] ); $data [] = $range_start->toString ( \Zend_Date::ISO_8601 ); $data [] = $range_end->toString ( \Zend_Date::ISO_8601 ); // Parse the timezone parameter if it is present. $timezone = null; if (isset ( $_GET ['timezone'] )) { $timezone = new DateTimeZone ( $_GET ['timezone'] ); } // Read and parse our events JSON file into an array of event data arrays. $json = file_get_contents ( PIMCORE_LAYOUTS_DIRECTORY . '/assets/json/events.json' ); $input_arrays = new Object\Shift\Listing (); // json_decode($json, true); // Accumulate an output array of event data arrays. $output_arrays = array (); foreach ( $input_arrays as $event ) { // Convert the input array into a useful Event object // $event2 = Object\Shift::create($event->toArray()); // $event2->setKey(Pimcore_File::getValidFilename('New Name 10')); // $event2->setParentId(53); // $event2->save(); // $output_arrays['new'] = $event2 ; // $data[]= $event->getEnd()->toString(\Zend_Date::ISO_8601); // If the event is in-bounds, add it to the output if ($event->isWithinDayRange ( $range_start, $range_end )) { $output_arrays [] = $event->toCalendar (); } } // Send JSON to the client. $reponse = new Reponse (); $reponse->data = $output_arrays; // $input_arrays; $reponse->message = "TXT_SHIFTS_SENT"; $reponse->success = true; $this->render ( $reponse ); // echo json_encode($output_arrays); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDatetimeSetCorrectly()\n {\n $property = $this->logger_reflection->getProperty('datetime');\n $property->setAccessible(TRUE);\n\n $this->assertInstanceOf('Lunr\\Core\\DateTime', $property->getValue($this->logger));\n }", "public function load_calendar_datetime()\n\t...
[ "0.64267796", "0.63406694", "0.62272245", "0.6214801", "0.61862636", "0.6057291", "0.60356873", "0.60232806", "0.6001876", "0.5997865", "0.5952149", "0.59353924", "0.59353924", "0.5921118", "0.5902005", "0.5861967", "0.58305806", "0.5825474", "0.58052945", "0.58008504", "0.57...
0.0
-1
/ Returns the current cache client
public function getCacheClient() { if ($this->cacheClient) { return $this->cacheClient; } return $this->cacheClient = new CacheClient($this->cacheConnectionDsn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClient()\n\t{\n\t\treturn $this->redisClient;\n\t}", "public function getClient()\n {\n if (!$this->client) {\n $this->client = $this->createClient();\n $this->client->addCache($this->cachePool);\n }\n\n return $this->client;\n }", "public fun...
[ "0.7260233", "0.724409", "0.71030086", "0.69043005", "0.682955", "0.6823672", "0.6822708", "0.67673963", "0.67619896", "0.6756854", "0.67511517", "0.6738703", "0.6736963", "0.6727503", "0.67053026", "0.6704763", "0.6696726", "0.6694915", "0.6692241", "0.6680761", "0.6680061",...
0.80121833
0
Get the default properties of all feedback
public static function get_default_property_names($extended_property_names = array()) { return parent::get_default_property_names(array(self::PROPERTY_CONTENT_OBJECT_ID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_default_properties()\r\n {\r\n return $this->defaultProperties;\r\n }", "public function getDefaultProperties () {\n return array(\n 'deleted' => 0,\n 'published' => 1,\n 'active' => 1,\n 'only_check_permissions' => 0,\n 'checkCustomPermissions' => 0,\n ...
[ "0.7097628", "0.67619187", "0.66481405", "0.6602465", "0.6542237", "0.64325637", "0.6408378", "0.6332843", "0.6295338", "0.6287865", "0.6256248", "0.62404895", "0.62089264", "0.6194956", "0.61926645", "0.61790764", "0.6150747", "0.6130503", "0.6114488", "0.61141676", "0.61122...
0.0
-1
construct akan otomatis dijalankan apabila ada instance baru
public function __construct($name, $price, $image) { $this->name = $name; $this->price = $price; $this->image = $image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function construct() {\n\n }", "function _construct(){ }", "public function __construct() {\n // Aqui todo lo que se define para este constructor\n }", "protected function construct(){\n\n }", "function __construct(){\n\t\t// nowt much...\n\t}", "function _construct() {\n \t\n\t...
[ "0.75529087", "0.7505178", "0.7483625", "0.7436631", "0.7434678", "0.74184054", "0.74064755", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", "0.73802805", ...
0.0
-1
getter agar dapat mengakses kelas private
public function getName(){ return $this->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromDB() {}", "function readReal(){ \n\t\t$query = \"SELECT * FROM \" . $this->table_name . \" WHERE id=1 LIMIT 0,1\";\n\n\t\t$stmt = $this->conn->prepare( $query );\n\t\t$stmt->bindParam(1, $this->id);\n\t\t$stmt->execute();\n\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t$this->id = $ro...
[ "0.71949023", "0.66579574", "0.6623534", "0.65750515", "0.65725225", "0.654264", "0.6506629", "0.65035045", "0.6490499", "0.6387599", "0.63822025", "0.6380647", "0.6375793", "0.63609564", "0.6360659", "0.6356933", "0.63520235", "0.6349741", "0.6343569", "0.6329156", "0.632182...
0.0
-1
Assign slider to banners
protected function _afterSave(\Magento\Framework\Model\AbstractModel $object) { $this->saveBanners($object); $this->saveProducts($object); return parent::_afterSave($object); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSlider($slider=7){\n\t\t\t$this->slider = $slider;\n\t\t}", "public function slider($limit='0')\n\t{\n\t\tif(!$this->session->userdata('logged_in')){\n\t\t\tredirect('login');\n\t\t\t\n\t\t}\n\t\t$logged_in=$this->session->userdata('logged_in');\n\t\tif($logged_in['base_url'] != base_url()){\n\t\t$th...
[ "0.6413027", "0.6160981", "0.6077368", "0.6052392", "0.6042752", "0.6042281", "0.60197663", "0.6012841", "0.5995799", "0.5962827", "0.5950274", "0.5883838", "0.58270055", "0.5816112", "0.5802227", "0.5781496", "0.5778411", "0.57156", "0.5710932", "0.56792545", "0.56592065", ...
0.0
-1
Get banner ids to which specified item is assigned
public function lookupProductsIds($sliderId) { $connection = $this->getConnection(); $select = $connection->select()->from( $this->getTable('ibnab_owlslider_sliders_products'), 'product_id' )->where( 'slider_id = ?', (int)$sliderId ); return $connection->fetchCol($select); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemIds();", "public function itemids() {\n\t\t$q = SalesHistoryDetailQuery::create();\n\t\t$q->select(SalesHistoryDetail::get_aliasproperty('itemid'));\n\t\t$q->filterByOrdernumber($this->oehhnbr);\n\t\treturn $q->find()->toArray();\n\t}", "public function getItemIds()\n {\n $this...
[ "0.69403785", "0.64245325", "0.6424303", "0.62493527", "0.62007415", "0.6073584", "0.6047857", "0.5988404", "0.5966535", "0.59664315", "0.59664315", "0.58124655", "0.57867604", "0.57846314", "0.57607144", "0.5725071", "0.57203573", "0.57137054", "0.5690318", "0.5684902", "0.5...
0.0
-1
Get banner ids to which specified item is assigned
public function lookupBannersIds($sliderId) { $connection = $this->getConnection(); $select = $connection->select()->from( $this->getTable('ibnab_owlslider_sliders_banners'), 'banner_id' )->where( 'slider_id = ?', (int)$sliderId ); return $connection->fetchCol($select); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemIds();", "public function itemids() {\n\t\t$q = SalesHistoryDetailQuery::create();\n\t\t$q->select(SalesHistoryDetail::get_aliasproperty('itemid'));\n\t\t$q->filterByOrdernumber($this->oehhnbr);\n\t\treturn $q->find()->toArray();\n\t}", "public function getItemIds()\n {\n $this...
[ "0.69403785", "0.64245325", "0.6424303", "0.62493527", "0.62007415", "0.6073584", "0.6047857", "0.5988404", "0.5966535", "0.59664315", "0.59664315", "0.58124655", "0.57867604", "0.57846314", "0.57607144", "0.5725071", "0.57203573", "0.57137054", "0.5690318", "0.5684902", "0.5...
0.53465575
42
Process slider data before deleting
protected function _beforeDelete(\Magento\Framework\Model\AbstractModel $object) { $condition = ['slider_id = ?' => (int)$object->getId()]; $this->getConnection()->delete($this->getTable('ibnab_owlslider_sliders_banners'), $condition); return parent::_beforeDelete($object); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove()\n {\n $id = $this->input->post('id_slider'); // menangkap post dari form.php ketika edit data, dengan properties namenya adalah id_size\n $this->slider->delete($id); /* mengakses model size, lalu ke fungsi delete dengan parameter sebuah id */\n\n /* membuat array, y...
[ "0.669221", "0.6678323", "0.6666585", "0.6647402", "0.6456898", "0.63002646", "0.6024636", "0.60135365", "0.59168386", "0.5907212", "0.5871957", "0.5854564", "0.5852193", "0.5851042", "0.58006644", "0.5800276", "0.5776466", "0.5756322", "0.57377917", "0.56978333", "0.56758046...
0.0
-1
Connect to MPD server
public function connect($timeout = 30){ $this->connection = \stream_socket_client("tcp://$this->host:$this->port", $errno, $errstr, $timeout); if (!$this->connection) { echo "$errstr ($errno)<br />\n"; return; } $resp = fgets($this->connection, 1024); if(strncmp(MPDClient::OK, $resp, strlen(MPDClient::OK)) === 0){ if(strlen($resp) > strlen(MPDClient::OK)){ $this->mpdProtoVersion = substr($resp, strlen(MPDClient::OK)); } }else{ echo "Error connecting to MPD, No response\n"; fclose($this->connection); return; } if(isset($this->passwd)){ $this->send(MPDClient::PASSWORD.' '.$this->passwd); } //Read stats and status $this->updateState(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function connect() { \n\t\n\t\t// Look at the current instance and pull the options for said instance\n\t\t$options = self::get_instance(); \n\t\t$this->_mpd = new mpd($options['host'],$options['port'],$options['password']);\n\n\t\tif ($this->_mpd->connected) { return true; } \n\n\t\treturn false;\n\n\t}", ...
[ "0.72100955", "0.67200947", "0.6688605", "0.66860205", "0.6523335", "0.6515528", "0.6492286", "0.64142805", "0.6376998", "0.63415784", "0.62969965", "0.62872267", "0.6283951", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0.62791747", "0...
0.7104345
1
Send a command to mpd
protected function send($cmd){ $resp = []; //Clear any previous errors $this->error = ''; $cmd = $cmd."\n"; fwrite($this->connection, $cmd); while (!feof($this->connection)) { $line = fgets($this->connection, 1024); if(strncmp(MPDClient::OK, $line, strlen(MPDClient::OK)) === 0){ break; } if(strncmp(MPDClient::ERR, $line, strlen(MPDClient::ERR)) === 0){ $this->error = substr($line, strlen(MPDClient::ERR)); break; } array_push($resp, trim($line)); } return $resp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send($cmd) {\n $cmd = escapeshellarg($cmd);\n $cmd = sprintf(\"screen -S ts_%d -p 0 -X stuff %s%c\", $this->sid, $cmd, 13);\n ssh($cmd, $this->host);\n }", "function msgsrv_send ($target, $cmd, $content, $link) {}", "function sendCommand($cmd) \n { \n \n ...
[ "0.6895455", "0.64080966", "0.63814795", "0.6020841", "0.6015965", "0.60119283", "0.5976633", "0.5950566", "0.59503037", "0.58519864", "0.58519864", "0.58519864", "0.58519864", "0.58519864", "0.58201665", "0.58201665", "0.58201665", "0.58201665", "0.58201665", "0.58201665", "...
0.51659644
60
Set the current playback play, pause etc.
public function setPlayback($cmd, $params = []){ $cmdLine = $cmd." ". implode(' ', $params); $this->send($cmdLine); if(!empty($this->error)){ echo $this->error; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCurrentPlayer($player){\r\n $this->currentPlayer = $player;\r\n }", "public function play() {\n if ($this->getLigado() && !($this->getTocando())) {\n $this->setTocando(true);\n }\n }", "public function updateNowPlaying()\r\n\t{\r\n\t\t$this->batchScraper...
[ "0.65589255", "0.65317315", "0.6311168", "0.61975765", "0.5907432", "0.5904678", "0.58615655", "0.5794852", "0.57136136", "0.56510025", "0.56299025", "0.5622852", "0.5602241", "0.5478389", "0.5441109", "0.5407787", "0.5388129", "0.53508216", "0.53296375", "0.5308068", "0.5289...
0.6193976
4
Display a listing of the resource.
public function index() { if ('admin' != Auth::user()->username) { return Response::json(array('result'=>'failed','error_msg'=>'You do not have access to this page')); } $scopes = Scope::all() ; return View::make('scope.index',array('scopes'=>$scopes,'active'=>'scopes','nav_active'=>'scopes')) ;//转至系统权限管理页面 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store() { // }
{ "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.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.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($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($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
sets the required permissions of the navigation
public function setRequiredPermissions($permissions = array()) { $this->requiredPermissions = $permissions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __setNavRendererPerms() {\n\t\t$userPermission = array(\n\t\t\t'allowProxy' => false, \n\t\t\t'allowAdmin' => false\n\t\t);\n\n\t\tif($this->Auth->loggedIn()) {\n\t\t\t$user = array('model' => 'User', 'foreign_key' => $this->Auth->user('id'));\n\t\t\t$isSuper = $this->Acl->check($user, 'role/super...
[ "0.6807484", "0.6671099", "0.6471941", "0.64572895", "0.6446978", "0.63454884", "0.63454884", "0.63454884", "0.63454884", "0.63454884", "0.6305774", "0.6247079", "0.61264205", "0.60874796", "0.6045589", "0.60247946", "0.6024683", "0.60105395", "0.59882087", "0.5925689", "0.59...
0.5856186
29
determine if the menu is a drop down
public function isDropdown() { return $this->dropdown; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public func...
[ "0.7517986", "0.7517986", "0.7517402", "0.7517402", "0.7517402", "0.75169575", "0.75169575", "0.75169575", "0.75169575", "0.74934447", "0.6695153", "0.6656782", "0.66252035", "0.66081226", "0.6338886", "0.628152", "0.621831", "0.62165284", "0.6094535", "0.6076582", "0.5982561...
0.74125695
10
the label of the menu
public function getLabel() { return $this->label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menu_label()\n\t{\n\t\t$label = $this->p('menu_label')->text();\n\t\t$label = $this->render($label);\n\n\t\tif ( ! $label && $p = $this->p('title') ) {\n\t\t\t$label = $p->text();\n\t\t}\n\n\t\tif ( ! $label && $p = $this->p('name') ) {\n\t\t\t$label = $p->text();\n\t\t}\n\n\t\treturn $label;\n\t}"...
[ "0.8315228", "0.81985664", "0.78218484", "0.7588768", "0.7588768", "0.7502874", "0.74609715", "0.74482507", "0.73544335", "0.7326071", "0.73221505", "0.7302083", "0.7269052", "0.7221061", "0.71713895", "0.7146429", "0.7081851", "0.7058183", "0.7044115", "0.7032086", "0.701328...
0.0
-1
the icon of the menu
public function getIcon() { return $this->icon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_icon()\n {\n return 'eicon-nav-menu';\n }", "public function get_menu_icon() {\n\t\treturn 'gform-icon--akismet';\n\t}", "public function get_menu_icon() {\n\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\n\n\t}", "public function icon(): s...
[ "0.8474718", "0.82366705", "0.7769332", "0.76465166", "0.7626438", "0.76087695", "0.75570613", "0.7461263", "0.7461263", "0.74576277", "0.7365608", "0.733108", "0.7324433", "0.7318327", "0.7286427", "0.727601", "0.7245814", "0.72271657", "0.7217184", "0.7168878", "0.7168878",...
0.6913925
56
the required permissions of the menu
public function getRequiredPermissions() { return $this->requiredPermissions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function permissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function isMenu() {\n\t\t$groupId = $this->Session->read('UserAuth.User.user_group_id');\n\t\t\n\t\tApp::import(\"Model\", \"Use...
[ "0.7443708", "0.7443708", "0.7443708", "0.7443708", "0.7443708", "0.73184884", "0.7232795", "0.7090475", "0.7000019", "0.69724286", "0.69053465", "0.6860679", "0.6840959", "0.68005604", "0.676996", "0.6761293", "0.67384106", "0.67368174", "0.66741806", "0.66626114", "0.665733...
0.0
-1
Charge le contenu de la page velo bleu
function findKeyAndUriFromVeloWebsite() { $urlBase = $this->CI->config->item('UrlBase', 'velobleuconf'); $urlCarte = $this->CI->config->item('UrlCarteVeloBleu', 'velobleuconf'); $pageHTML = @file_get_contents($urlBase . $urlCarte); if(isset($http_response_header) && isValidHttpRequest($pageHTML, $http_response_header)) { // Trouve la variable mapdb et prend ce qui est contenu entre quotes pour connaitre son contenu $posMapDb = strpos($pageHTML, 'var mapdb'); $posQote1MapDb = strpos($pageHTML, "'", $posMapDb) + 1; $posQote2MapDb = strpos($pageHTML, "'", $posQote1MapDb); $varMapDb = substr($pageHTML, $posQote1MapDb, $posQote2MapDb - $posQote1MapDb); log_message('debug', 'found mapdb : ' . $varMapDb); $this->mapDb = $varMapDb; // Idem pour var networks $posNetworks = strpos($pageHTML, 'var networks'); $posQote1Networks = strpos($pageHTML, '"', $posNetworks) + 1; $posQote2Networks = strpos($pageHTML, '"', $posQote1Networks); $varNetworks = strtolower(substr($pageHTML, $posQote1Networks, $posQote2Networks - $posQote1Networks)); log_message('debug', 'found networks : ' . $varNetworks); $this->networks = $varNetworks; // Idem pour var mapdbkey $posMapdDbKey = strpos($pageHTML, 'var mapdbkey'); $posQote1MapDbKey = strpos($pageHTML, "'", $posMapdDbKey) + 1; $posQote2MapDbKey = strpos($pageHTML, "'", $posQote1MapDbKey); $varMapDbKey = substr($pageHTML, $posQote1MapDbKey, $posQote2MapDbKey - $posQote1MapDbKey); log_message('debug', 'found mapdbkey : ' . $varMapDbKey); $this->mapDbKey = $varMapDbKey; $this->jsonUrl = $this->getJsonUrl(); log_message('debug', 'found jsonUrl : ' . $this->jsonUrl); } else { $httpError = "Aucune information"; if(isset($http_response_header)) $httpError = getHttpError($http_response_header); log_message('error', 'Chargement des données contenant la clé impossible : ' . $httpError); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function affichePiedPage()\r\n\t\t{\r\n\t\t//appel de la vue du pied de page\r\n\t\trequire 'Vues/piedPage.php';\r\n\t\t}", "private function pagProbleem()\n\t{\n\t\t$pageOutput = $this->menu();\n\t\t$pageOutput.= $this->div('open', 'id=\"inhoud\"');\n\t\t$pageOutput.= $this->h1('full', '', 'Er is iets mi...
[ "0.7245893", "0.7229632", "0.68751216", "0.68130076", "0.665105", "0.66504794", "0.6621517", "0.65520936", "0.65520936", "0.6538041", "0.6490192", "0.6485912", "0.6485024", "0.64840966", "0.6473518", "0.6461627", "0.6457607", "0.6429142", "0.64167994", "0.6398942", "0.6393077...
0.0
-1
Estce que la ligue existe ?
function Action ($params) { if (roleExiste($params['role']) != 'XXX') { return __ERREURS__[roleExiste($params['role'])]; } // On récupère la liste des joueurs avec ce rôle $liste = getJoueursRole($params['role']); $retour = ""; for ($i = 0; $i < count($liste); $i++) { if ($retour != "") $retour .= " "; $retour .= "\n" . $liste[$i]['pseudo'] . " (" . $liste[$i]['hash'] . ")"; } return $retour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _exists() {\n // taky typ uz existuje ?\n $id = $this->equipment->getID();\n if ($id > 0) {\n $this->flash(\"Také vybavenie už existuje.<br/>Presmerované na jeho editáciu.\", \"error\");\n $this->redirect(\"ape/equipment/edit/$id\");\n }\n }", "fu...
[ "0.69145596", "0.6885861", "0.64912593", "0.6457515", "0.6370668", "0.63411576", "0.6312768", "0.6197188", "0.6142673", "0.61098075", "0.6099007", "0.6094129", "0.60878444", "0.60661495", "0.6060838", "0.6053702", "0.60518223", "0.601455", "0.5997253", "0.59501517", "0.593509...
0.0
-1
Run the database seeds.
public function run() { DB::table('statuses')->truncate(); // 既存データを削除する DB::table('statuses')->insert([ [ 'name' => '待機中', ], [ 'name' => '処理中', ], [ 'name' => '確認中', ], [ 'name' => '完了', ], [ 'name' => 'アーカイブ', ], ]); }
{ "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
store a debug trace
protected function debugLog($message) { if (null !== $this->logger) { $this->logger->addDebug($message); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function debugTrail() {}", "function mytrace($s)\r\n{\r\n\t// see constants.php for TRACE_ENABLED flag\r\n\t\r\n\t// turn off trace?\r\n\tif (isset($_REQUEST[QS_DEBUG]))\r\n\t{\r\n\t\tif ($_REQUEST[QS_DEBUG]==\"0\") \r\n\t\t{\r\n\t\t\t$_SESSION[QS_DEBUG]=\"\";\r\n\t\t} \r\n\t}\r\n\t\r\n\t// Turn ON...
[ "0.64978683", "0.61810005", "0.60624856", "0.6041433", "0.60140157", "0.59576386", "0.5903964", "0.5874636", "0.58283806", "0.58254945", "0.5791397", "0.57736063", "0.5769508", "0.57453126", "0.57261926", "0.57039815", "0.56733984", "0.5665265", "0.5655424", "0.5644402", "0.5...
0.0
-1
Display a listing of the resource.
public function index() { $table = roles::all(); return view('roles.index', ["table" => $table ]); }
{ "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('roles.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) { $validatedData = $request->validate([ 'nombre' => 'required|min:5|max:100', ]); $mRoles = new roles($request->all()); $mRoles->save(); // Regresa a lista de productos Session::flash('message', 'Rol creado!'); return Redirect::to('roles'); }
{ "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) { $modelo = roles::find($id); return view('roles.show', ["modelo" => $modelo]); }
{ "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) { $modelo = roles::find($id); return view('roles.edit', ["modelo" => $modelo]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $validatedData = $request->validate([ 'nombre' => 'required|min:5|max:100', ]); $mRoles = roles::find($id); $mRoles->fill($request->all()); $mRoles->save(); Session::flash('message', 'Rol actualizado!'); return Redirect::to('roles'); }
{ "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) { $mRoles = roles::find($id); $mRoles->delete(); Session::flash('message', 'Rol eliminado!'); return Redirect::to('roles'); }
{ "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
Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function model() {\n return parent::model(get_called_class());\n }", "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model($className=__CLASS__) { return parent::model($className); }", "public static function model($className=__CLA...
[ "0.75747544", "0.7529913", "0.72720546", "0.72709596", "0.72625434", "0.72126627", "0.7212249", "0.7132376", "0.7129236", "0.7129236", "0.71031755", "0.71031755", "0.71029925", "0.7075185", "0.7064606", "0.7064606", "0.7064606", "0.7064606", "0.7064606", "0.7064606", "0.70646...
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Execute the console command.
public function handle() { $name = $this->argument('name'); Lock::log($this, 'Attempting to free lock ' . $name); try { Lock::free($this->argument('name')); // only log a note since this is an expected event (but it is still an error as far as freeing the lock) } catch (\Illuminate\Database\QueryException $e) { Log::debug('Lock free already in progress...'); // Log::debug($e); return(Lock::ERROR); } catch (\Exception $e) { Log::error($e->getMessage() . " exception freeing lock ${name}: " . $e->getTraceAsString()); return(Lock::ERROR); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
Display a listing of the resource.
public function index() { $coffee_picks = DB::table('coffee_picks') ->select('members.name AS member') ->addSelect(DB::raw('COUNT(1) AS total')) ->addSelect('teams.name AS team') ->join('members', 'members.id', 'coffee_picks.member_id') ->join('teams', 'teams.id', 'members.team_id') ->groupBy('members.id') ->get(); return view('pages.dashboard', compact('coffee_picks')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Display a listing of the resource.
public function index() { $brands = Brand::all(); return view('backend.brands.index', compact('brands')); }
{ "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('backend.brands.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) { $name = $request->get('name'); $slug = \Illuminate\Support\Str::slug($request->get('name')).'-'.rand(1000, 9999); $query = Brand::insert(['name' => $name, 'slug' => $slug]); if ($query) { return redirect()->route('backend.brands.index')->with('success','Thêm thương hiệu thành công'); }else { return redirect()->route('backend.brands.index')->with('error','Thêm thương hiệu thất bại'); } }
{ "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($slug) { $brand = Brand::where('slug', $slug)->first(); return view('backend.brands.update', compact('brand')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $slug) { $name = $request->get('name'); $query = Brand::where('slug', $slug)->update(['name' => $name]); if ($query) { return redirect()->route('backend.brands.index')->with('success','Cập nhật thương hiệu thành công'); }else { return redirect()->route('backend.brands.index')->with('error','Cập nhập thương hiệu thất bại'); } }
{ "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) { $query = Brand::where('id', $id)->delete(); Product::where('brand_id', $id)->update(['brand_id' => 0]); if ($query) { return redirect()->route('backend.brands.index')->with('success','Xóa thành công'); } return redirect()->route('backend.brands.index')->with('error','Xóa thất bại'); }
{ "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
Specifies the access control rules. This method is used by the 'accessControl' filter.
public function accessRules() { return array( array('allow', 'actions'=>array('admin','view'), 'roles'=>array('reader', 'writer') ), array('allow', 'actions'=>array('create', 'update', 'delete'), 'roles'=>array('writer') ), array('deny', // deny all users 'users'=>array('*'), ), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admins only\n\t\t\t\t'users'=>Yii::app()->getModule('user')->getAdmins(),\n\t\t\t),\n\t\t\tarray('allow',\n\t\t\t\t\t\t/*'users' => array(\"?\"),*/\n 'expression' => array($this,'isLogedInOrHasKey'),\n ),\n\t\t\tar...
[ "0.7229873", "0.72012293", "0.70917755", "0.70844513", "0.708018", "0.708018", "0.70799863", "0.7072431", "0.7072431", "0.70660526", "0.7064439", "0.700873", "0.700494", "0.70015746", "0.69898736", "0.69839835", "0.6977239", "0.69746107", "0.6972772", "0.69703716", "0.6969545...
0.69986796
14
Displays a particular model.
public function actionView($id) { $model=Persona::model()->with(array('situacionEconomica', 'condicionesEspeciales', 'domicilio', 'solicitud'))->findByPk($id); if($model===null) throw new CHttpException(404,'La persona no se encuentra en el sistema.'); $this->render('view',array('model'=>$model)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionView() {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n }", "public function actionView()\n {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n...
[ "0.75535107", "0.7553186", "0.7542682", "0.7540008", "0.74330246", "0.74330246", "0.74330246", "0.74330246", "0.74330246", "0.73394006", "0.7160726", "0.71322334", "0.712746", "0.70615447", "0.7022298", "0.6983485", "0.69753826", "0.6958109", "0.6945592", "0.69437367", "0.694...
0.0
-1
Creates a new model. If creation is successful, the browser will be redirected to the 'view' page.
public function actionCreate() { $request = Yii::app()->request; $form = new PersonaForm("new"); if($request->isPostRequest) { $form->attributes = $request->getPost('PersonaForm'); if($form->validate()) { PersonaManager::savePersona($form); Yii::app()->user->setFlash('general-success', "$form->nombre $form->apellido ha sido creado."); $this->redirect('admin'); } } $this->render('create', array('model'=>$form)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n\t{\n\t\t//\n\t\t// if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n\t\t// try {\n\t\t// $model->save();\n\t\t// Yii::$app->session->setFlash('alert', [\n\t\t// 'body' => Yii::$app->params['cre...
[ "0.79603285", "0.7899161", "0.7867811", "0.75927806", "0.75313586", "0.7484811", "0.7460639", "0.7460639", "0.7460639", "0.7460639", "0.7448453", "0.74405783", "0.74379086", "0.74300754", "0.74082154", "0.7407433", "0.7383522", "0.7376161", "0.7331919", "0.7331402", "0.730417...
0.0
-1
Updates a particular model. If update is successful, the browser will be redirected to the 'admin' page.
public function actionUpdate($id) { $model=Persona::model()->with( array('condicionesEspeciales', 'situacionEconomica', 'situacionEconomica.situacionLaboral'))->findByPk($id); if($model===null) throw new CHttpException(404,'Esta intentando actualizar una Persona inexistente en el sistema'); $request = Yii::app()->request; if($request->isPostRequest) { $form = $model->dni != $request->getPost('PersonaForm')['dni'] ? new PersonaForm('dniUpdate') : new PersonaForm; $form->attributes = $request->getPost('PersonaForm'); $form->persona_id = $model->id; $form->id = $model->id; if($form->validate()) { PersonaManager::savePersona($form); Yii::app()->user->setFlash('general-success', "$form->nombre $form->apellido ha sido actualizado."); $this->redirect(Yii::app()->createUrl("persona/view") . '/' . $id); } } else { $form = new PersonaForm; $form->attributes = $model->attributes; $form->attributes = $model->situacionEconomica->attributes; $form->attributes = $model->situacionEconomica->situacionLaboral->attributes; $form->condicionesEspeciales = array_map(function($e){return $e->id;}, $model->condicionesEspeciales); } $this->render('update', array('model'=>$form)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n } else if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Y...
[ "0.7983803", "0.7602332", "0.7572668", "0.7508671", "0.7430232", "0.73916894", "0.73629904", "0.73629904", "0.73537153", "0.7338653", "0.7336464", "0.73334026", "0.73258513", "0.7273282", "0.7263827", "0.72186595", "0.7211433", "0.7210159", "0.72007036", "0.7195912", "0.71899...
0.0
-1
Deletes a particular model. If deletion is successful, the browser will be redirected to the 'admin' page.
public function actionDelete($id) { $persona = Persona::model()->with(array('titularidad', 'cotitularidad'))->findByPk($id); if (is_null($persona->titularidad) && is_null($persona->cotitularidad)) { $persona->delete(); } else { http_response_code(400); header('Content-type: application/json'); echo CJSON::encode(array('error'=>"No se puede eliminar la persona $persona->nombre $persona->apellido por estar vinculada a solicitudes.")); Yii::app()->end(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDelete()\r\n {\r\n $this->_userAutehntication();\r\n\r\n switch($_GET['model'])\r\n {\r\n /* Load the respective model */\r\n case 'posts': \r\n $model = Post::model()->findByPk($_GET['id']); \r\n ...
[ "0.7514145", "0.7507674", "0.7422083", "0.7376141", "0.7370852", "0.7282443", "0.7233768", "0.72136563", "0.718974", "0.7185", "0.7168924", "0.7166725", "0.7163782", "0.71252465", "0.70983034", "0.7008284", "0.70082265", "0.70079374", "0.6986316", "0.69688636", "0.6951888", ...
0.0
-1
Returns the data model based on the primary key given in the GET variable. If the data model is not found, an HTTP exception will be raised.
public function loadModel($id) { $model=Persona::model()->findByPk($id); if($model===null) throw new CHttpException(404,'The requested page does not exist.'); return $model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Residencebaseinfo::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model...
[ "0.6996049", "0.69626486", "0.6855551", "0.6704187", "0.66484696", "0.66410875", "0.6635331", "0.66255236", "0.66221076", "0.66171694", "0.66130376", "0.661131", "0.65576166", "0.6556155", "0.654081", "0.6540365", "0.653337", "0.65329456", "0.6527233", "0.65264654", "0.652222...
0.63764805
45
Mark this leaf as completed for a user.
public function markCompletedFor($a_user_id) { global $ilAppEventHandler; $ilAppEventHandler->raise("Services/Tracking", "updateStatus", array( "obj_id" => $this->getId(), "usr_id" => $a_user_id, "status" => ilLPStatus::LP_STATUS_COMPLETED_NUM, "percentage" => 100 )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mark_complete() {\n // Create record\n $this->timecompleted = time();\n\n // Save record\n if ($this->id) {\n $this->update();\n } else {\n $this->insert();\n }\n\n // Mark course completion record as started (if not already)\n ...
[ "0.68063885", "0.6559841", "0.63267815", "0.62253404", "0.59917057", "0.58770436", "0.58551323", "0.57687795", "0.5694659", "0.56599915", "0.56224483", "0.5597721", "0.5558037", "0.5512748", "0.54968286", "0.54931045", "0.54824984", "0.54628104", "0.5461529", "0.5454887", "0....
0.7415121
0
Returns the test database connection.
protected function getConnection() { if ($this->_connectionMock == null) { $this->_connectionMock = $this->getMock( 'Zend_Test_PHPUnit_Db_Connection', [], [new Zend_Test_DbAdapter(), "schema"] ); } return $this->_connectionMock; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConnection()\n\t{\n\t\treturn $this->createDefaultDBConnection(TEST_DB_PDO(), TEST_GET_DB_INFO()->ldb_name);\n\t}", "protected function getConnection()\n {\n require_once dirname(__FILE__) . '/bootstrap_pdo.php';\n return getConnectionToTestDB();\n }", "protected funct...
[ "0.8405055", "0.818261", "0.8097701", "0.7885442", "0.78112644", "0.7587071", "0.75766855", "0.75766855", "0.75739884", "0.75572073", "0.7518859", "0.7518859", "0.7518859", "0.7518859", "0.7518859", "0.7518859", "0.7518859", "0.7518859", "0.7518859", "0.75096536", "0.7502171"...
0.74655384
21
Returns the test dataset.
protected function getDataSet() { return new CompositeDataSet([]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDataSet()\n {\n return $this->createMySQLXMLDataSet(__DIR__ . '/../paczkolab_test.xml');\n }", "protected function getDataSet()\n {\n //Dataset TokenTest.xml has the minimal data we need to perform our tests\n $classFile = str_replace('.php', '.xml', __FILE__)...
[ "0.7723198", "0.7719603", "0.7709923", "0.7709923", "0.76564926", "0.74969155", "0.7416149", "0.7410265", "0.7383849", "0.7383849", "0.73000264", "0.7262511", "0.7208042", "0.7174706", "0.7144803", "0.70893824", "0.705882", "0.7034158", "0.70333415", "0.6942394", "0.6715493",...
0.61892724
33
/ This file is part of the LiveTest package. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
function getHtmlContent($curResult) { switch ($curResult->getStatus()) { case \LiveTest\TestRun\Result\Result::STATUS_SUCCESS : $content['css_class'] = 'result_success'; $content['message'] = $curResult->getMessage(); break; case \LiveTest\TestRun\Result\Result::STATUS_FAILED : $content['css_class'] = 'result_failed'; $content['message'] = $curResult->getMessage(); break; case \LiveTest\TestRun\Result\Result::STATUS_ERROR : $content['css_class'] = 'result_error'; $content['message'] = $curResult->getMessage(); break; default : $content['css_class'] = 'result_none'; $content['message'] = ''; break; } return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testServeChanges()\n {\n }", "public function testGetTrackingSources()\n {\n }", "public function testExample()\n {\n }", "public function testBasicTest()\n {\n\n }", "public function testInstance() { }", "public function preTest() {}", "public function testGetUn...
[ "0.6807251", "0.6716925", "0.6685993", "0.65673894", "0.65514505", "0.65147704", "0.648602", "0.64488566", "0.64487475", "0.64031833", "0.6380248", "0.63588065", "0.63585037", "0.63431805", "0.6333463", "0.6326372", "0.63088095", "0.6279083", "0.6274098", "0.62703747", "0.619...
0.0
-1
Accepts input from the command line.
public function readStdin($prompt, $valid_inputs, $default = '') { while(!isset($input) || (is_array($valid_inputs) && !in_array($input, $valid_inputs)) || ($valid_inputs == 'is_file' && !is_file($input))) { echo $prompt; $input = strtolower(trim(fgets(STDIN))); if(empty($input) && !empty($default)) { $input = $default; } } return $input; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function promptInput()\n {\n while ($this->run) {\n $this->valid = true;\n $input = readline('Enter a command : ');\n $this->handleInput($input);\n }\n }", "public function stdin();", "function is_input($arg)\n{\n\tif (mb_substr ($arg, 0, 8) === \"--i...
[ "0.6873208", "0.65231436", "0.6474971", "0.6204128", "0.60515654", "0.60236055", "0.6012309", "0.6003527", "0.5958324", "0.58908033", "0.58841646", "0.5875639", "0.5874265", "0.581882", "0.5817767", "0.5762", "0.57349926", "0.57343304", "0.5706909", "0.5706909", "0.56960154",...
0.53649855
61